Re: [nodejs] Writing 500kb of JSON

2012-10-27 Thread dolphin278
Check https://github.com/dominictarr/JSONStream On 28.10.2012, at 7:02, "P. Douglas Reeder" wrote: > One of the things my app needs to do is write a large JSON file to disk. > Currently, it's implemented naively: > > writeStream = fs.createWriteStream(process.cwd() + > "/staticRoot/alb

Re: [nodejs] recommended flow control library?

2012-05-26 Thread dolphin278
Like what? On 27.05.2012, at 1:55, Jarka wrote: > Well there are programming cases where you can not use async way. > > On Saturday, 26 May 2012 22:59:17 UTC+3, Tim Caswell wrote: > I recommend not using one, but if you prefer to have a library for this, > async is the most popular and quite

Re: [nodejs] Node.js IDE for iPad

2012-04-08 Thread dolphin278
You can use ssh-client for iPad, and then vi/emacs :) On 08.04.2012, at 11:03, Ryan Schmidt wrote: > I currently write code using a plain text editor (TextWrangler) on a > 5-year-old MacBook Pro. As I ponder eventual upgrades to this configuration, > I wonder if anybody has had any experience

Re: [nodejs] Use modules as plugins

2012-02-27 Thread dolphin278
Your plugin developer could require your base prototype in their code, tune it up with own logic, and return as module.exports object - it's wide adopted pattern. On 27.02.2012, at 5:20, 0x80 wrote: > Hi there, > > I'm about to port some code to nodejs and it involves some sort host > with a

Re: [nodejs] Re: parseInt bug

2012-02-23 Thread dolphin278
They are busy with their spaceship-size configuration files, so we safe :) On 23.02.2012, at 18:30, Lothar Pfeiler wrote: > I still wonder, if it's cool to have such a big discussion on how to > convert a string into an integer, or if all the java developers laugh > at us. :-) > > On Feb 23, 5:

Re: [nodejs] Re: actual request ip address instead of 0.0.0.0?

2012-02-08 Thread dolphin278
Indeed, in case of other web server in front of your application you should look how to pass smth like REMOTE_HOST or REMOTE_ADDR (CGI variables) to your application. On 08.02.2012, at 20:05, deitch wrote: > Chances are you have a Web server fronting your requests (Apache/ > Nginx), which has