Re: [nodejs] Why is node-gyp written in python?

2014-02-17 Thread Alex Kocharin
16.02.2014, 21:36, "Aria Stewart" : > On Sun, Feb 16, 2014 at 04:50:53PM +0100, Kevin Ingwersen wrote: > >>  GYP is quite awesome indeed. It just lacks a few small things. >>  It runs on Python 2.7, and to get Py on windows, youre gonna have to suffer >> a nice flood of download material. I just

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-17 Thread Alexandre Kirszenberg
No, `secureConnection` is never fired. On Monday, February 17, 2014 9:58:02 PM UTC+1, Fedor Indutny wrote: > > Wait, are you connecting with a plain text socket to it? `connection` > event emits raw TCP socket, does `secureConnection` happen at all? > > On Mon, Feb 17, 2014 at 6:31 PM, Alexandre

Re: [nodejs] module/addon to access any C/C++ library in JS

2014-02-17 Thread Liam Breck
I'm working on a design for a library-access scheme that places the library and glue code in a separate process, and passes JSON via domain-sockets. This should be a LOT easier to work with than the V8 api. If anyone's interested in details, feel free to get in touch. On Mon, Feb 17, 2014 at 7:21

Fwd: [nodejs] module/addon to access any C/C++ library in JS

2014-02-17 Thread Patrick Mueller
On 2/12/14 2:20 PM, Liam wrote: On Wednesday, February 12, 2014 3:18:41 AM UTC-8, Peter Tribble wrote: > > On Wed, Feb 12, 2014 at 11:00 AM, Liam wrote: > >> Is anyone aware of a module which would allow most C/C++ libraries to be >> accessed from node.js apps with minimal work? >> > > That soun

Re: [nodejs] Why is node-gyp written in python?

2014-02-17 Thread Alex Kocharin
 16.02.2014, 14:12, "Gagle" :I mean, it's a very huge dependency. Node.js can be installed in any system with low resources. If python were a 5MB dependency, it's ok, but python also depends on sqlite. Don't you think that node-gyp could be rewritten itself in node.js? I know it's a hard work but f

Re: [nodejs] vm module API breakage in 0.11

2014-02-17 Thread Tim Cuthbertson
Raised: https://github.com/joyent/node/issues/7140 On Thursday, February 6, 2014 7:37:34 PM UTC+11, Nathan Rajlich wrote: > > Probably try creating an issue on the issue tracker. > > > On Thu, Feb 6, 2014 at 12:18 AM, Arnout Kazemier > > > wrote: > >> Running in the exact same issues with my own

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-17 Thread Fedor Indutny
Wait, are you connecting with a plain text socket to it? `connection` event emits raw TCP socket, does `secureConnection` happen at all? On Mon, Feb 17, 2014 at 6:31 PM, Alexandre Kirszenberg wrote: > var https = require('https'); > var fs = require('fs'); > > var server = https.createServer({ >

Re: [nodejs] Re: browserify based firebird client using webtcp

2014-02-17 Thread Denys Khanzhyiev
I think you should create file exportfb.js: window.fb = require('node-firebird'); and then browserify exportfb.js > browser-index.js then try exmaple w/o line var fb = require("node-firebird"); 2014-02-17 18:45 GMT+02:00 Adrian Marius Popa : > I forgot the example > > > https://github.co

[nodejs] Re: Simple server script using express doesn't set Content-Type when sending files

2014-02-17 Thread David Karr
On Thursday, February 13, 2014 6:04:10 PM UTC-8, David Karr wrote: > > I've written a simple server script that is intended to be used as a tool > for front-end developers to shorten their dev cycle. It serves all local > files, but proxies calls to a web service to an external domain. It use

[nodejs] Re: browserify based firebird client using webtcp

2014-02-17 Thread Adrian Marius Popa
I forgot the example https://github.com/mariuz/node-firebird/blob/master/lib/examples/browser_client.html and the webtcp server https://github.com/mariuz/node-firebird/tree/master/lib/examples On Monday, February 17, 2014 6:15:46 PM UTC+2, Adrian Marius Popa wrote: > > It is just a skeleton fo

[nodejs] browserify based firebird client using webtcp

2014-02-17 Thread Adrian Marius Popa
It is just a skeleton for the moment using WebTCP http://artemyankov.com/tcp-client-for-browsers/ I have run browserify index.js > browser-index.js https://github.com/mariuz/node-firebird/blob/master/lib/browser-index.js Implemented a web client example https://github.com/mariuz/node-firebird/c

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-17 Thread Babu Subramanian
Danke schön! Babu Subramanian +91 98452 02337 On Mon, Feb 17, 2014 at 4:07 PM, greelgorke wrote: > Nothing forbids Instagram to show the most head of the image stream of an > account, without js turned on. but atm. you see nothing on instagram w/o > js. try http://instagram.com/p/ka4Ya0l6Wx/#

[nodejs] Re: A little problem with child_process

2014-02-17 Thread greelgorke
you can either, implement a communication protocoll with your C++ code or just send it a kill signal http://nodejs.org/api/child_process.html#child_process_child_kill_signal you should also consider, that a child_process IS a process with all it's footprint and, most important for you, a startu

[nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-17 Thread Alexandre Kirszenberg
var https = require('https'); var fs = require('fs'); var server = https.createServer({ key: fs.readFileSync('private.pem'), cert: fs.readFileSync('public.pem') }); server.on('connection', function(socket) { socket.on('data', function(chunk) { console.log(chunk.toString()); }); })

[nodejs] A little problem with child_process

2014-02-17 Thread Rmx haha
I am making a game here. It will be free and I am choosing nodejs as it's server. I am not very new with Javascript. I've coded some easy client side Javascript for about 1.5 years but server side coding with javascript sure is very different from the client side. so I have to learn more about

Re: [nodejs] JS function and variable problem

2014-02-17 Thread AlainM
And please remember that couchdb works with "eventual consistency", ot does not allways guaranty that read after write os allways in sync Angel Java Lopez escreveu: >Umm... I don't use CouchDB, nano module. But it looks as a callback >problem. You are running CouchRead() inmmediately AFTER Couc

Re: [nodejs] Can NODE disconnect the hosting server from the internet?

2014-02-17 Thread Alan Hoffmeister
Something like this? require('child_process').spawn('ifdown', ['eth0']) -- Att, Alan Hoffmeister 2014-02-17 1:44 GMT-03:00 affiszervmention < affiszervmentionesterlionga...@gmail.com>: > [image: affisz] > * affiszervmention

[nodejs] Re: JS function and variable problem

2014-02-17 Thread Reiko Nötzold
its not running led with get led example is from package "udoo" var udoo = require('udoo'); var led10=udoo.outputPin(10); udoo.reset() led10.set(true); led10.set(false); but i unterstand now the "cb" a little bit Do you have a other idea for led10? Thanks :-) -- -- Job Board: http://jobs.node

Re: [nodejs] Re: JS function and variable problem

2014-02-17 Thread Angel Java Lopez
My first attempt: to start socket.io listening ONLY after retrieving the initial values from DB (I presume your led data can be retrieved via ledxx.get(), If this code works, then you could refactor a bit, to a clear initialization, now all the code is inside a "big" callback. But, baby steps ;-)

Re: [nodejs] JS function and variable problem

2014-02-17 Thread Reiko Nötzold
Am Montag, 17. Februar 2014 11:25:46 UTC+1 schrieb ajlopez: > > Umm... I don't use CouchDB, nano module. But it looks as a callback > problem. You are running CouchRead() inmmediately AFTER CouchWrite(), but > this function has still pending to call its own callbacks. > > So, a quick alternativ

[nodejs] Re: JS function and variable problem

2014-02-17 Thread Reiko Nötzold
io.sockets.on('connection', function (socket) { socket.emit('fromserver', {sw1:?,sw2:?,swt3:?}); socket.on('fromclient', function (data) { CouchDBWrite(); //? if (data.l10==true) led10.setHigh(); if (data.l10==false) led10.setLow(); if (data.l11==true) led11.setHigh(); if (data.l11

[nodejs] Re: JS function and variable problem

2014-02-17 Thread Reiko Nötzold
thanks is running and can you help me by socket.io? Button/Switches change in Browser the LED is set and is running. My next Goal to write the states in CouchDB and set the Buttons On/Off with the Values in CouchDB after first start. Client.js var socket = io.connect(); $('input[type="check

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-17 Thread greelgorke
Nothing forbids Instagram to show the most head of the image stream of an account, without js turned on. but atm. you see nothing on instagram w/o js. try http://instagram.com/p/ka4Ya0l6Wx/# with js turned of. Am Montag, 17. Februar 2014 09:00:54 UTC+1 schrieb Babu Subramanian: > > Thanks guys f

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-17 Thread Angel Java Lopez
About they at least should let me see what they are, before i allow them script execution." Maybe, a section on your home page to be displayed if JavaScript is not supported. An static file, describing your app. A video demo? Another "bigger" option: to have at least partially functionality imple

Re: [nodejs] JS function and variable problem

2014-02-17 Thread Angel Java Lopez
Umm... I don't use CouchDB, nano module. But it looks as a callback problem. You are running CouchRead() inmmediately AFTER CouchWrite(), but this function has still pending to call its own callbacks. So, a quick alternative approach (not tested): var couchdb = require('nano')('http://localhost:5

[nodejs] JS function and variable problem

2014-02-17 Thread Reiko Nötzold
Hi, i developed in node.js and CouchDB and have a problem with "function" and local/global variables. My Code write and read in CouchDB, is running. But when both CouchWrite(); and CouchRead(); "Switches = undefined" CouchWrite(); "or" CouchRead(); is running. var couchdb = require('nano')('ht

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-17 Thread Babu Subramanian
Thanks guys for the responses! >>Content-driven apps like Pinterest, Instagram etc. should be usable without js. may be not fully usable, but they at least should let me see what they are, before i allow them script execution. I thought you made a case for HTML without js. Is it possible to elabor