Re: [nodejs] socket.io-servicebus

2013-04-05 Thread Luke Arduini
neat On Friday, April 5, 2013, Glenn Block wrote: > Hey all > > We just published a module for allowing you to scale out socket.io in the > cloud using Azure Service Bus: > https://github.com/windowsazure/socket.io-servicebus > > It gives you a store that you can just plug into your socket.io app

Re: [nodejs] socket.io-servicebus

2013-04-05 Thread Dan Shaw
That's awesome, Glenn. It's great to see new Socket.io Store implementations. Daniel Shaw @dshaw On Thursday, April 4, 2013, Glenn Block wrote: > Hey all > > We just published a module for allowing you to scale out socket.io in the > cloud using Azure Service Bus: > https://github.com/windowsaz

[nodejs] Re: Brumba Web application builder for Node.js and MongoDb

2013-04-05 Thread danparn
I prefer to keep them for two reasons: 1. It happened to new module versions to break the application. I want to be sure the posted version is running. 2. Installing and running node is very simple, but managing modules and npm not. That could exclude newbies to test/use the application. Brumba s

Re: [nodejs] Brumba

2013-04-05 Thread danparn
I apologize, I forgot to mention to use demo user and demo (or just d) password for every application. Users/permissions are not yet implemented. For the next commit I will create a default admin user and brumba password. Sorry, Dan On Friday, April 5, 2013 12:25:31 AM UTC+2, blake wrote: > > l

Re: [nodejs] Re: Brumba Web application builder for Node.js and MongoDb

2013-04-05 Thread Oleg Slobodskoi
To ensure nobody will break your code, npm has this "shrinkwrap" feature. On larger projects its recommended to: 1. use explicit dependencies versions: f.e. 0.1.6 instead of 0.1.x 2. use npm shrinkwrap The side effect is you need to update versions manually, but this is the price for being abl

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Nicolas Grilly
On Friday, April 5, 2013 5:40:54 AM UTC+2, Forrest L Norvell wrote: > However, putting everything in try/catch/finally clauses is expensive > (i.e. they can't be fully optimized by V8). > I'm not sure to get your point about try/catch/finally being expensive. It looks like that in Node.js curre

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Nicolas Grilly
On Friday, April 5, 2013 5:40:54 AM UTC+2, Forrest L Norvell wrote: > Realistically speaking, there's no way to write a general "async finally" > in Node. Side effects are just too pervasive, and while if you're careful > you can ensure that resources are properly cleaned up, it's not a problem

[nodejs] Declarative JS with Functional Programming Tools

2013-04-05 Thread Azer Koçulu
Hi All. I've created a guide for writing declarative JS. It's located here; https://github.com/azer/declarative-js Thoughts & ideas are welcome. Best Azer -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You rec

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Alexey Kupershtokh
Thanks. I'll try it shortly. BTW, why do you not using winston anymore? Using anything better instead? четверг, 4 апреля 2013 г., 19:31:48 UTC+7 пользователь Dan Milon написал: > > See https://github.com/danmilon/winston-graylogger > > But I ended up moving away from winston, so I don't use it an

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Dan Milon
IMO it's too bloated and does way too much. I tried to write a patch once and it was a mess. Also it's not actively maintained. We're running an internal fork of Jog (visiomedia/jog) for now. On 5 Απρ 2013, at 12:36 μ.μ., Alexey Kupershtokh wrote: > Thanks. I'll try it shortly. > BTW, why do

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Alexey Kupershtokh
Have you made it able to send data to the Graylog2 in your fork? пятница, 5 апреля 2013 г., 16:58:19 UTC+7 пользователь Dan Milon написал: > > IMO it's too bloated and does way too much. I tried to write a patch once > and it was a mess. Also it's not actively maintained. We're running an > inte

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Dan Milon
Yes. I'll try to release it during the weekend if you'd like. On 5 Απρ 2013, at 1:03 μ.μ., Alexey Kupershtokh wrote: > Have you made it able to send data to the Graylog2 in your fork? > > пятница, 5 апреля 2013 г., 16:58:19 UTC+7 пользователь Dan Milon написал: >> >> IMO it's too bloated an

[nodejs] www, firefox and connect sessions

2013-04-05 Thread Yuri Karadzhov
On Windows and Linux the problem with connect (express) sessions occurs while using Firefox. Firefox have different session cookies for domain.com and www.domain.com - this cause problems with authentication. Do anyone know how to fix it? -- -- Job Board: http://jobs.nodejs.org/ Posting guid

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Alexey Kupershtokh
I would appreciate this. Thanks in advance. On Fri, Apr 5, 2013 at 5:25 PM, Dan Milon wrote: > Yes. > > I'll try to release it during the weekend if you'd like. > > On 5 Απρ 2013, at 1:03 μ.μ., Alexey Kupershtokh < > alexey.kupersht...@gmail.com> wrote: > > Have you made it able to send data to

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Angel Java Lopez
Hi! Umm... a totally newbie to Tornado, but after browsing the code, they are "dancing the conga" ;-) to have such behavior. See https://github.com/facebook/tornado/blob/master/tornado/stack_context.py and how its wrap function is used at: https://github.com/facebook/tornado/blob/master/tornado/

Re: [nodejs] Clever Cloud - Host your nodejs apps in the easiest way ever, with auto-scaling

2013-04-05 Thread Adrien Cretté
Yes, it would be great and really interesting ! Le jeudi 4 avril 2013 21:10:50 UTC+2, Oleg Slobodskoi a écrit : > > does somebody want to write a comparison between nodejs-cloud, nodejitsu > and heroku for node in terms of: > > - prices > - flexibility > - easy to use > - restrictions > - perform

[nodejs] Re: www, firefox and connect sessions

2013-04-05 Thread Yuri Karadzhov
I found the solution here http://stackoverflow.com/questions/7074509/how-do-i-make-my-sessions-last-cross-subdomain-in-node-js-express -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message beca

[nodejs] node js and java intgration

2013-04-05 Thread harish bramhananda
hi all i a m new geek to node js. is there any way i can access the classes of java using node js. or method to access the service or response of another web app like struts using node js. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailin

[nodejs] HTML5 Multiplayer Kit

2013-04-05 Thread pauli . jokela
Hi, I represent Eerie Studios (subsidiary of Didstopia), an indie game development studio. We've been developing an easy to use solution for HTML5 game developers to get their games multiplayer ready and we've come up with a solution that uses NodeJS and Socket.IO and is compatible with virtua

[nodejs] Best way to setup configurable job on a recurring basis in Node.js

2013-04-05 Thread Tamara Hills
I'm trying to setup a job queuing mechanism where I enter jobs into a queue. After some delay period, I want to process the job and either put it back on the queue or not. What's the best library for this? I've looked at several and all seem to be backed by redis. I tried kue and had issues

Re: [nodejs] node js and java intgration

2013-04-05 Thread yogesh agrawal
https://github.com/nearinfinity/node-java On Fri, Apr 5, 2013 at 10:34 AM, harish bramhananda wrote: > hi all > > i a m new geek to node js. is there any way i can access the classes of > java using node js. > or method to access the service or response of another web app like struts > using nod

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Ben Noordhuis
On Fri, Apr 5, 2013 at 10:56 AM, Nicolas Grilly wrote: > On Friday, April 5, 2013 5:40:54 AM UTC+2, Forrest L Norvell wrote: >> >> Realistically speaking, there's no way to write a general "async finally" >> in Node. Side effects are just too pervasive, and while if you're careful >> you can ensur

Re: [nodejs] Job management in Node

2013-04-05 Thread Jatin Patel
Essentially, it's a set of complex calculation that needs to be done every 10 minutes. Every 10 minutes, it would go and check for specific info (updated) in the db and then do the complex calculation. I didn't wanted to use setTimeout() as I thought it wasn't ideal way to handle this - someth

[nodejs] 0 downtime deploy module

2013-04-05 Thread Pedro Teixeira
I'm trying to do 0 downtime deploys of a process that has cluster workers listening on a shared server handle. I want to be able to do 0-downtime master process restart also, which the core cluster module doesn't let me do easily (I'd have to pass the server handle around explicitly and not use

Re: [nodejs] 0 downtime deploy module

2013-04-05 Thread Arnout Kazemier
The easiest way would just be to spin up a new server with your code and once it's all working fine and dandy point your load balancers to the new server and have the old server die off. On Friday 5 April 2013 at 15:30, Pedro Teixeira wrote: > I'm trying to do 0 downtime deploys of a process t

Re: [nodejs] Job management in Node

2013-04-05 Thread Arnout Kazemier
"crontab" On Friday 5 April 2013 at 15:15, Jatin Patel wrote: > Essentially, it's a set of complex calculation that needs to be done every 10 > minutes. Every 10 minutes, it would go and check for specific info (updated) > in the db and then do the complex calculation. I didn't wanted to use

Re: [nodejs] node js input

2013-04-05 Thread Ryan Schmidt
On Apr 5, 2013, at 00:45, Adva wrote: > i added a textBox like this: > > label Name: > input(in) > > but now i want to tke the input from the user (=to take the input in the > textBox). > why i can not do this? I have no idea what you're asking. You'll need to provide a lot more information

[nodejs] Re: socket.io-servicebus

2013-04-05 Thread Glenn Block
Thanks Daniel! We've been wanting it get this out there for a long time, we're glad we finally got it done :-) On Friday, April 5, 2013, Dan Shaw wrote: > That's awesome, Glenn. It's great to see new Socket.io Store > implementations. > > Daniel Shaw > @dshaw > > > On Thursday, April 4, 2013, Gle

[nodejs] nodejs compiles fine but 100% test fail

2013-04-05 Thread Mario Zimmermann
Hello all, I try to install nodejs on a Linux machine without root privileges in a local directory: ./configure --prefix=/nfs/ccs/local make The compilation runs fine without any issues. But a 'make test' gives 100% failure. Calling node -v node -h gives the exptected output, but every ot

[nodejs] Video broadcasting with Node.js

2013-04-05 Thread ALex Sh
*Hi there.* I'm new in node.js. Actually I'm PHP developer and using Yii framework and I need special functionality on my site with Node. The main idea is that every user should have abbility to create a video+voice(+chat as additional option) conference, and other users can join this confere

Re: [nodejs] nodejs compiles fine but 100% test fail

2013-04-05 Thread Ben Noordhuis
On Fri, Apr 5, 2013 at 4:02 PM, Mario Zimmermann wrote: > Hello all, > > I try to install nodejs on a Linux machine without root privileges in a > local directory: > > ./configure --prefix=/nfs/ccs/local > make > > The compilation runs fine without any issues. But a 'make test' gives 100% > failur

[nodejs] Re: nodejs compiles fine but 100% test fail

2013-04-05 Thread mscdex
On Apr 5, 10:54 am, Ben Noordhuis wrote: > Upgrade your gcc, 4.1 is positively ancient and known buggy. > > 4.2 is the minimum supported version but realistically you should > compile with 4.5 or newer. Yes, newer compiler versions are ideal. I bet he's compiling on RHEL/ CentOS 5.x. I do this re

[nodejs] Re: nodejs compiles fine but 100% test fail

2013-04-05 Thread Mario Zimmermann
Thanks for the replies so far. I will try again with a newer version of gcc. `which node` gives exactly what you (and me) expect: /nfs/ccs/local/bin/node Mario Am Freitag, 5. April 2013 17:03:29 UTC+2 schrieb mscdex: > > On Apr 5, 10:54 am, Ben Noordhuis wrote: > > Upgrade your gcc, 4.1 is po

[nodejs] Re: Video broadcasting with Node.js

2013-04-05 Thread Mikkel Wilson
You're in _slightly_ the wrong group. You can absolutely do this with node.js as the server component, but that's not required. The server is only required to pass some handshake info between peers and that could be implemented in PHP. What you're really looking for is WebRTC. http://www.webrtc

[nodejs] Server Timestamp

2013-04-05 Thread Tolgay Toklar
Hi How can I get server timestamp in nodejs ? (Like a php time() function) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group.

Re: [nodejs] Server Timestamp

2013-04-05 Thread Arnout Kazemier
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date On Friday 5 April 2013 at 17:56, Tolgay Toklar wrote: > Hi > > How can I get server timestamp in nodejs ? (Like a php time() function) > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > http

Re: [nodejs] Server Timestamp

2013-04-05 Thread Herman Junge
console.log(new Date()).getTime(); On 4/5/13 12:56 PM, Tolgay Toklar wrote: Hi How can I get server timestamp in nodejs ? (Like a php time() function) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received

Re: [nodejs] Server Timestamp

2013-04-05 Thread Trygve Lie
var timestamp = +new Date(); Trygve On Fri, 2013-04-05 at 08:56 -0700, Tolgay Toklar wrote: > Hi > > How can I get server timestamp in nodejs ? (Like a php time() > function) > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Maili

Re: [nodejs] Server Timestamp

2013-04-05 Thread Dan Milon
If all you need is time elapsed since epoch, you dont wanna do that. Nor `+new Date()`. They are way more expensive than a plain `Date.now()`. https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now On 05/04/2013 07:02 μμ, Herman Junge wrote: > console.log(new Date(

Re: [nodejs] ZeroMQ Libraries

2013-04-05 Thread Michael Schoonmaker
@Stephan - The primary goal was to take _inspiration_ from the streams2 API to build an ideally easy-to-understand, easy-to-control binding to ZeroMQ. A big deal for me was straightforward handling of EAGAIN, a nemesis to previous iterations of the private project using these libraries. @Alexey -

[nodejs] How to call MakeCallBack of an addon from another thread

2013-04-05 Thread Jerry Yin
Hi, I want to make a program like below. thread1 nodejs with an addon, let's say addon1 exposed an method start to call MakeCallBack. thread2 call the addon1's method. It will cause the Handle Scope Error. Are there any way to solve this? to call from another thread and get the correct Handle

[nodejs] ECONNRESET since update to Node 0.10

2013-04-05 Thread Jochen Delabie
Since we updated from Node 0.8 to Node 0.10 we're seeing these errors: { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' } Error: read ECONNRESET at errnoException (net.js:878:11) at TCP.onread (net.js:539:19) I know this error was previously ignored b

Re: [nodejs] Re: Brumba Web application builder for Node.js and MongoDb

2013-04-05 Thread Duncan Wilkie
Thanks for noting shrinkwrap, that's new to me; and pretty awesome. — Sent from Mailbox for iPhone On Fri, Apr 5, 2013 at 9:46 AM, Oleg Slobodskoi wrote: > To ensure nobody will break your code, npm has this "shrinkwrap" feature. > On larger projects its recommended to: > 1. use explicit depend

[nodejs] Re: Video broadcasting with Node.js

2013-04-05 Thread ALex Sh
Thanks. I'll go check it. But I'd like to add real time chat also. And I think it would be better if only one user inside coference can broadcast video, other watch it and, if necessary, they ask him a questions via chat. It would be great if there's a possibility of broadcaster to capture curr

Re: [nodejs] Re: Brumba Web application builder for Node.js and MongoDb

2013-04-05 Thread Martin Wawrusch
To add to that: npm outdated shows you a list of outdated npms in your package.json And there is police (npm install -g police) which does the same, in a bit different way. On Fri, Apr 5, 2013 at 11:04 AM, Duncan Wilkie wrote: > Thanks for noting shrinkwrap, that's new to me; and pretty aweso

Re: [nodejs] Re: Video broadcasting with Node.js

2013-04-05 Thread Martin Wawrusch
You can use socket.io for chat, there are dozens of examples out there. Regarding video, WebRTC is the way to go if you have some control of the browsers used. On Fri, Apr 5, 2013 at 11:04 AM, ALex Sh wrote: > Thanks. I'll go check it. But I'd like to add real time chat also. And I > think it wo

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Nicolas Grilly
On Friday, April 5, 2013 6:49:31 AM UTC+2, Isaac Schlueter wrote: > I'd argue that throws in Ruby and Python are not safe, either! > It looks like we agree on the fact that there is nothing fundamentally different in the way `throw` works in JavaScript as a language compared to Python and Ruby

Re: [nodejs] Re: Brumba Web application builder for Node.js and MongoDb

2013-04-05 Thread Duncan Wilkie
Need to spend some more time reading about all the npm features. — Sent from Mailbox for iPhone On Fri, Apr 5, 2013 at 7:07 PM, Martin Wawrusch wrote: > To add to that: > npm outdated shows you a list of outdated npms in your package.json > And there is police (npm install -g police) which does

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Nicolas Grilly
On Friday, April 5, 2013 2:17:53 PM UTC+2, Ben Noordhuis wrote: > Isaac already explained it a few posts up. I'll replicate his example > here for posterity: > > function doSomething(array) { > for (var i = 0; i < array.length; i++) { > mightThrow(array[i]); > } > } > > I

[nodejs] Re: Server Timestamp

2013-04-05 Thread Tolgay Toklar
Thanks for answers. But there is a problem: Php time() function returns 10 digit number.Javascript Date.now() function returns 13 digit number.How can I resolve this problem ? I can't do process on numbers. 5 Nisan 2013 Cuma 18:56:49 UTC+3 tarihinde Tolgay Toklar yazdı: > > Hi > > How can I get

Re: [nodejs] Re: Server Timestamp

2013-04-05 Thread Dan Milon
Read the documentation. Date.now(), Date#getTime(), etc return the number of milliseconds since epoch. Whereas php's time() returns seconds. Hence the 3 digit difference. Math.round(Date.now() / 1000) That converts from ms to s. On 05/04/2013 09:56 μμ, Tolgay Toklar wrote: > Thanks for ans

Re: [nodejs] Re: Server Timestamp

2013-04-05 Thread Arnout Kazemier
nonono, you heard him he can't process on the numbers. On Friday, April 5, 2013 at 9:02 PM, Dan Milon wrote: > Math.round(Date.now() / 1000) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this mess

[nodejs] Re: Server Timestamp

2013-04-05 Thread Tolgay Toklar
Thank you so much to everybody :) Math.round(Date.now() / 1000) This code resolved my problem. 5 Nisan 2013 Cuma 18:56:49 UTC+3 tarihinde Tolgay Toklar yazdı: > > Hi > > How can I get server timestamp in nodejs ? (Like a php time() function) > -- -- Job Board: http://jobs.nodejs.org/ Posting

Re: [nodejs] ECONNRESET since update to Node 0.10

2013-04-05 Thread Isaac Schlueter
Without seeing anything except an error message, I can't really answer that except to say that some net.Socket object is trying to read(), and getting an ECONNRESET error. Someone sent someone else a RST packet, and instead of ignoring it, Node is emitting an error because of it, like it ought to

Re: [nodejs] streams API changes

2013-04-05 Thread Isaac Schlueter
That is a very complicated interface you're proposing. Also, your objectMode changes break the current symmetry, where the return value from read() is a valid argument to write(). Consider a chain of 5 objectMode passthrough streams piped to one another. You'd write {} and get [{}] out t

Re: [nodejs] node js input

2013-04-05 Thread Adva
i added a input in node js (=textBox). and now i'm trying to read what the user wrote in this textBox. how can i do this? בתאריך יום שישי, 5 באפריל 2013 16:40:41 UTC+3, מאת ryandesign: > > > On Apr 5, 2013, at 00:45, Adva wrote: > > > i added a textBox like this: > > > > label Name: > > inpu

Re: [nodejs] Best way to setup configurable job on a recurring basis in Node.js

2013-04-05 Thread Mark Hahn
I use CronJob On Thu, Apr 4, 2013 at 7:38 PM, Tamara Hills wrote: > I'm trying to setup a job queuing mechanism where I enter jobs into a > queue. After some delay period, I want to process the job and either put > it back on the queue or not. > > What's the best library for this? I've looked

Re: [nodejs] How to call MakeCallBack of an addon from another thread

2013-04-05 Thread Mark Hahn
How are you using threads in node? On Fri, Apr 5, 2013 at 9:42 AM, Jerry Yin wrote: > Hi, > > I want to make a program like below. > > thread1 nodejs with an addon, let's say addon1 exposed an method start to > call MakeCallBack. > thread2 call the addon1's method. > > It will cause the Handle

Re: [nodejs] How to call MakeCallBack of an addon from another thread

2013-04-05 Thread Michael Schoonmaker
Jerry, Are you talking about building a native module, since you refer to Handles and threads? On Fri, Apr 5, 2013 at 1:42 PM, Mark Hahn wrote: > How are you using threads in node? > > > On Fri, Apr 5, 2013 at 9:42 AM, Jerry Yin wrote: >> >> Hi, >> >> I want to make a program like below. >> >> t

Re: [nodejs] node js input

2013-04-05 Thread Michael Schoonmaker
Adva, I'm not sure you understand what this mailing list is for. There are no text boxes in Node, which is a server-side Javascript environment. http://nodejs.org/api/ On Fri, Apr 5, 2013 at 1:37 PM, Adva wrote: > i added a input in node js (=textBox). > and now i'm trying to read what the user

Re: [nodejs] node js input

2013-04-05 Thread Thomas Shinnick
No, really, we have no idea what you want to ask. You mention "textbox". That sounds like something written using HTML that runs in the web browser, like FireFox or Chrome or Internet Explorer. node.js runs on the server running programs written in Javascript language. There is no "textbox" i

[nodejs] Re: How to call MakeCallBack of an addon from another thread

2013-04-05 Thread Bert Belder
You can only call V8 APIs from the main thread - so the HandleScope error is expected. Typically you would use an uv_async_t handle to wake up the main thread. Then in the async callback you'd call any javascript callbacks. - Bert . Friday, April 5, 2013 6:42:40 PM UTC+2, Jerry Yin wrote: > >

Re: [nodejs] Node.js documentation about domains: what makes "throw" special in JS compared to Python/Ruby?

2013-04-05 Thread Forrest L Norvell
Ultimately this is a design question, and what you as developer are comfortable with. Almost none of this discussion is particularly tied to Node, above and beyond the fact that try-catch and throw don't work well in Node's style of async, callback-driven programming, where a function is being invo

Re: [nodejs] streams API changes

2013-04-05 Thread Andrew Hart
I've not yet needed streams which include null and undefined, but it seems a shame to exclude them when everything else is available. That's the main thing I'm trying to solve. With the changes to push I'm trying to separate concerns (one method for one purpose), remove magic values (undefined a

Re: [nodejs] Job management in Node

2013-04-05 Thread Daniel Rinehart
You might want to look at: https://github.com/mattpat/node-schedule -- Daniel R. [http://danielr.neophi.com/] On Fri, Apr 5, 2013 at 9:15 AM, Jatin Patel wrote: > Essentially, it's a set of complex calculation that needs to be done every > 10 minutes. Every 10 minutes, it would go and check

[nodejs] DTrace on Mac OS X

2013-04-05 Thread Daniel Rinehart
Can someone confirm my understanding. While Mac OS X supports dtrace you can't build node 0.10 with DTrace support enabled. I can use something like https://github.com/chrisa/node-dtrace-provider to add custom DTrace providers for userland code but won't get anything about the node runtime. Thank y

[nodejs] Re: How to call MakeCallBack of an addon from another thread

2013-04-05 Thread Jerry Yin
Thank you all. I'm working on uv_async_send now. On Saturday, April 6, 2013 5:35:01 AM UTC+8, Bert Belder wrote: > > You can only call V8 APIs from the main thread - so the HandleScope error > is expected. > > Typically you would use an uv_async_t handle to wake up the main thread. > Then in th

Re: [nodejs] Re: [ANN] GrayGelf: Fully compliant Graylog2/GELF client and server

2013-04-05 Thread Michael Hart
We're using bunyan[1] and gelf-stream[2] - bunyan is quite lightweight and used by Joyent and a number of other services. [1] https://github.com/trentm/node-bunyan [2] https://github.com/mhart/gelf-stream On Friday, 5 April 2013 20:36:21 UTC+11, Alexey Kupershtokh wrote: > > Thanks. I'll try it