[nodejs] Re: Using OpenVG APIs from node on the raspberry pi.

2012-09-03 Thread Luis Reis
Hi again, I've found a solution to this problem, so, for anyone interested in running node with OpenVG / OpenGL ES on the Raspberry Pi: The problem with EGL initialization is that it messes up V8 contexts. I've found out that if EGL is initialized before V8 boots, everything seems to run

Re: [nodejs] [libuv] thread, uv_loop_new and uv_accept dangerous cocktail

2012-09-03 Thread Zhang Hu
Hi guys, Thanks for your swift replies. I checked the source codes of Stud which Shripad K mentioned. The design of Stud (simillar with Nginx) is what I want for our TCP frontend service. Parent process binds/listens a socket, child processes run event loops. Then we can benifit event loop and

Re: [nodejs] Multiplayer game instances.

2012-09-03 Thread Aldis Andrejevs
hi, please read documentation.. Socket.IO and Node.JS.. and you will be good to go ;) On Sun, Sep 2, 2012 at 9:00 PM, tas pas tproto...@gmail.com wrote: Hello, I'm creating a facebook two player checkers game. Till now, I'm handling the communication between each two players per room using

[nodejs] Re: How to aggregate streams? (multiplexer/demultiplexer)

2012-09-03 Thread Oleg Efimov (Sannis)
Aggregate is available in https://github.com/Obvious/pipette. понедельник, 3 сентября 2012 г., 13:44:24 UTC+4 пользователь lbdremy написал: Hello, I'm wondering, does someone know a module that is able to aggregate multiple streams into 1. For example you give it 3 readable streams and

Re: [nodejs] uv_mutex_lock seems to be failing in tight loop

2012-09-03 Thread Ben Noordhuis
On Mon, Sep 3, 2012 at 4:44 AM, Navaneeth KN navaneet...@gmail.com wrote: This makes perfect sense and it works well. But I am wondering why everything was working when I add a delay ? Pure luck. It would've crashed eventually, you were writing to deallocated memory. -- Job Board:

[nodejs] [ANN] AwsSum v0.10.0

2012-09-03 Thread Andrew Chilton
Hi everyone, I'm proud to release a new version of AwsSum to help you get more out of Node.js + Amazon Web Services. This release contains lots of bug fixes and some infrastructure changes for the future. They can be found on the new docs website for AwsSum (still new with plenty more to add in

Re: [nodejs] How to aggregate streams? (multiplexer/demultiplexer)

2012-09-03 Thread Jake Verbaten
https://github.com/dominictarr/mux-demux MuxDemux is fantastic. However what your asking for is not a multiplexer. 3 readable streams into one stream: var newStream = through() stream1.pipe(newStream) stream2.pipe(newStream) stream3.pipe(newStream) write to one into 3 var

[nodejs] Unload entire module

2012-09-03 Thread Bradley Meck
How do people unload entire modules after they are done using them, we have some very long running apps we are trying to reduce the footprint on and unloading certain modules seems to be a good start. For example if we could eventually end up with something like: require.unload('nconf') after

[nodejs] Turn buffers into one sprite

2012-09-03 Thread Patrik Lythell
Hey guys, Question about the fs API: I'm trying to create one big sprite img out of several buffers. Right now what I've been able to do is create one image out of every buffer with fs.writeFile(name, buffer1) etc. and then use the node-spritesheet module to create one image out of them all.

[nodejs] what is nodeportal ???

2012-09-03 Thread Sameer Sharma
Hello all, I am from java background searching for any cms in nodejs. I got this https://github.com/saggiyogesh/nodeportal. Have anyone gone through this project as not too much documentation is there. -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] How to make node.js HMac sha1 with salt work with microsoft sha1?

2012-09-03 Thread kenny
Hi All, I have to work with microsoft database and using node.js, but I cannot make the hash value of the generated node.js to be the same as the one in the microsoft sql database? Is there anyways to do it? Also is there any library that can generate the same hash value? My company want to

[nodejs] [ANN] Charlatan first release.

2012-09-03 Thread Eugene Shkuropat
Hello. I have released first version of Charlatan[1] - native javascript port of ruby's Faker. Generate fake data such as names, addresses and so on. Most of rules stored in localization files, some of them composite. For example, in an english locale fake name might be written in 3 different

Re: [nodejs] Unload entire module

2012-09-03 Thread Ben Noordhuis
On Mon, Sep 3, 2012 at 9:02 PM, Bradley Meck bradley.m...@gmail.com wrote: How do people unload entire modules after they are done using them, we have some very long running apps we are trying to reduce the footprint on and unloading certain modules seems to be a good start. For example if we

Re: [nodejs] Unload entire module

2012-09-03 Thread Marcel Laverdet
we have some very long running apps we are trying to reduce the footprint on and unloading certain modules seems to be a good start To be honest, that doesn't sound like a very good start. If your long applications have a growing footprint then you are leaking memory somewhere. Cleaning up

Re: [nodejs] Unload entire module

2012-09-03 Thread Scott González
On Mon, Sep 3, 2012 at 4:49 PM, Ben Noordhuis i...@bnoordhuis.nl wrote: require.unload('nconf') after the configuration phase of startup. delete require.cache['nconf']? Wouldn't this get pretty tricky with dependency trees? -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Unload entire module

2012-09-03 Thread Rick Waldron
I'd be less worried about savings caps and more worried about losing implied references. I'm certainly interested in knowing how this works out for you. Rick On Mon, Sep 3, 2012 at 4:57 PM, Marcel Laverdet mar...@laverdet.com wrote: we have some very long running apps we are trying to reduce

[nodejs] emit('data') best practice

2012-09-03 Thread Mike Nichols
When issuing a redis command which expects a multi-bulk reply but the key does not exist, one may receive the following: +OK *0 The redis docs say If the specified key does not exist, the key is considered to hold an empty list and the value 0 is sent as multi bulk count. It seems like it is

[nodejs] Re: Pure Node.js or C++ for mathematic

2012-09-03 Thread MikeB_2012
Another angle: convert an existing C++ fuzzy logic library into javascript and then use that with node. To do that use 'emscripten' (https://github.com/kripken/emscripten). Essentially the process is C++ - LLVM - javascript. I just came across this from this article at 'I Programmer':

[nodejs] Re: emit('data') best practice

2012-09-03 Thread tjholowaychuk
IMO if the idea behind streams are to act like pipes then data events should only be raw data aka Buffers (strings too I guess), if it's a non-stream then whatever I guess On Monday, 3 September 2012 15:44:55 UTC-7, Mike Nichols wrote: When issuing a redis command which expects a multi-bulk

[nodejs] Re: emit('data') best practice

2012-09-03 Thread Mike Nichols
Thanks for your response. I guess my question is whether to emit a 'data' event when there isn't any raw data, but the underlying reply from redis is considered to be an 'empty list'. The zen semantic in me asks 'is the absence of datadata' . :) But seriously, it just feels like a

Re: [nodejs] Re: emit('data') best practice

2012-09-03 Thread Jake Verbaten
A way to solve this is open an issue on the repository. You'll get one concrete answer. On Mon, Sep 3, 2012 at 9:29 PM, Mike Nichols nichols.mik...@gmail.comwrote: Thanks for your response. I guess my question is whether to emit a 'data' event when there isn't any raw data, but the underlying

[nodejs] Re: what is nodeportal ???

2012-09-03 Thread Yogesh Agrawal
Hi Sameer, Thanks for reviewing nodeportal. I am developing this application. Nodeportal is inspired from Liferay, by which I am trying to bring java portlet api to node js. However it might not be the complete implementation of portlet api. Beta is going to be released soon, currently I am busy