[nodejs] JSLint or not?

2012-02-20 Thread Evgeny Bogdanov
Hi I've been always using it, then I saw sequelize project that does not use ; at all. I kinda liked it, but did not switch. Lately, I've been reading on Go language that made me think again. They don't use ;, and enforce a specific style, which is completely fine with me if () { // on the

[nodejs] an error for split

2012-02-20 Thread leiyun wang
TypeError: Cannot call method 'split' of undefined at new anonymous (/usr/local/lib/node_modules/connect/lib/ utils.js:132:19) at Object.anonymous (/home/nodejs/chat/app.js:10:20) at Module._compile (module.js:441:26) at Object..js (module.js:459:10) at Module.load

[nodejs] Re: an error for split

2012-02-20 Thread mscdex
On Feb 20, 5:04 am, leiyun wang wanglei...@gmail.com wrote: TypeError: Cannot call method 'split' of undefined     at new anonymous (/usr/local/lib/node_modules/connect/lib/ utils.js:132:19)     at Object.anonymous (/home/nodejs/chat/app.js:10:20) This is not very helpful. Can you post your

[nodejs] Re: JSLint or not?

2012-02-20 Thread fent
Feels free to use jslint/hint in your code if that adheres to your style. But don't go trying to correct others' style with it. Different coding styles are accepted by others as long as they have good reasoning behind them. Omitting semicolons can make code look cleaner, there's less to type,

Re: [nodejs] Re: Node.js shuts down when I logout of SSH

2012-02-20 Thread Axel Kittenberger
I run my node servers in a 'screen'. This also keeps me the last console output, I can simply kill it with reattaching the screen and hitting ctrl+c. etc. Only drawback, it doesn't autostart on reboot. On Sun, Feb 19, 2012 at 1:26 PM, Angelo Chen angelochen...@gmail.com wrote: a quick solution

Re: [nodejs] Re: JSLint or not?

2012-02-20 Thread Jorge
On Feb 20, 2012, at 11:47 AM, fent wrote: Feels free to use jslint/hint in your code if that adheres to your style. But don't go trying to correct others' style with it. Different coding styles are accepted by others as long as they have good reasoning behind them. Omitting semicolons can

[nodejs] Re: JSLint or not?

2012-02-20 Thread Christopher Jeffrey
I say not. We need to free more js developers from the your code is only good if you use jslint myth. On Feb 20, 3:47 am, Evgeny Bogdanov evgeny.bogda...@gmail.com wrote: Hi I've been always using it, then I saw sequelize project that does not use ; at all. I kinda liked it, but did not

[nodejs] Re: using upstart

2012-02-20 Thread Angelo Chen
Hi, Thanks for sharing the script, that works. one thing, say your app will connect to redis like those using coffee- resque, it will try to connect to redis-server once loaded, and yet at that time, redis is not yet ready, so you got those exceptions, putting this might not be absolute sure it

Re: [nodejs] Re: using upstart

2012-02-20 Thread Diogo Resende
On Mon, 20 Feb 2012 03:44:44 -0800 (PST), Angelo Chen wrote: Hi, Thanks for sharing the script, that works. one thing, say your app will connect to redis like those using coffee- resque, it will try to connect to redis-server once loaded, and yet at that time, redis is not yet ready, so you

[nodejs] Re: Vim Plugins for JS Devs [Was: Node.js IDE review]

2012-02-20 Thread Evgeny Bogdanov
Big thanks for this super-nice wiki! -- 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. To post to this group, send email to

[nodejs] Re: JSLint or not?

2012-02-20 Thread Alexey Petrushin
CoffeeScript FTW ;) -- 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. To post to this group, send email to nodejs@googlegroups.com

[nodejs] Re: JSLint or not?

2012-02-20 Thread Dave Clements
personally I think there's safety in JSLint, Crockford's experience and research have led him to the conclusions he's made for the JSLint rules, his decisions are less about style (i.e. what looks nice to me), and more about the minimization of human error with clearer expression of programmer

[nodejs] Re: Node version 0.6.11 (stable)

2012-02-20 Thread tracker1
+1 for adding an install path option for the installer... Would also suggest making the add to path environment variable a checkbox option (recommeded) and pre-checked. Worth noting, is the path isn't quoted when it's added to the environment, and should be.. C:\Program Files (x86)\nodejs\

Re: [nodejs] Free nodejs services

2012-02-20 Thread Raffaele Sena
VMWare CloudFoundry also offer node.js hosting but I am not sure of what their free plan allows you to do. -- Raffaele On Mon, Feb 20, 2012 at 9:54 AM, Jann Horn jannh...@googlemail.com wrote: 2012/2/20 Peng Yu pengyu...@gmail.com: Hi, To set a nodejs service without setting up a website

Re: [nodejs] Re: Node version 0.6.11 (stable)

2012-02-20 Thread C. Mundi
+1 Best practice for Windows Installer MSI is to use a property called INSTALLDIR. That is a useful convention for running msiexec in quiet mode for unattended installs. On Feb 20, 2012 11:31 AM, tracker1 mygro...@tracker1.info wrote: +1 for adding an install path option for the installer...

Re: [nodejs] Free nodejs services

2012-02-20 Thread Jeremy Darling
Here are some I've played with. Takes a while to get invites, and in the case of cloudno.de can be painful if you don't understand GIT very well (I'm still learning), but it seems the better option IMHO so far http://cloudno.de/ https://no.de/ - Jeremy On Mon, Feb 20, 2012 at 12:31 PM,

Re: [nodejs] Free nodejs services

2012-02-20 Thread Nuno Job
Y U NO JITSU? :) Check out nodejitsu.com. Sign up and come by #nodejitsu at freenode to get invited. :) Deploying works like thins: jitsu deploy and jitsu works a lot like npm, so it will be really easy for you to learn. Nuno Nuno On Mon, Feb 20, 2012 at 10:02 PM, Jeremy Darling

[nodejs] fs module watch function

2012-02-20 Thread Mark Volkmann
The docs for the watch function in the fs module contain this: *Warning:* Providing filename argument in the callback is not supported on every platform (currently it's only supported on Linux and Windows). Even on supported platforms filename is not always guaranteed to be provided. Therefore,

[nodejs] Re: fs module watch function

2012-02-20 Thread Bert Belder
On Feb 21, 3:10 am, Mark Volkmann r.mark.volkm...@gmail.com wrote: The docs for the watch function in the fs module contain this: *Warning:* Providing filename argument in the callback is not supported on every platform (currently it's only supported on Linux and Windows). Even on supported

[nodejs] Re: JSLint or not?

2012-02-20 Thread P. Douglas Reeder
Crockford's JSLint is designed for occasional use, to nudge programmers toward better code. It's neither designed for nor works well as a routine part of your toolchain. Miller's JavaScript Lint (http://www.javascriptlint.com/) is configurable for your project's style, and is a part of my

Re: [nodejs] Free nodejs services

2012-02-20 Thread Murali Rama Krishnan
and more than that, heroku allows custom domain mapping; provides lots of addons to your app like Amazon RDS for Free, On Tue, Feb 21, 2012 at 8:33 AM, Murali Rama Krishnan scanmur...@gmail.comwrote: I guess heroku works just awesome... On Tue, Feb 21, 2012 at 3:40 AM, Nuno Job

Re: [nodejs] Free nodejs services

2012-02-20 Thread Murali Rama Krishnan
I guess heroku works just awesome... On Tue, Feb 21, 2012 at 3:40 AM, Nuno Job nunojobpi...@gmail.com wrote: Y U NO JITSU? :) Check out nodejitsu.com. Sign up and come by #nodejitsu at freenode to get invited. :) Deploying works like thins: jitsu deploy and jitsu works a lot like npm,

[nodejs] shared lib built with node-waf not working with node v0.6.11 on Mac OS X

2012-02-20 Thread Stephen Bannasch
I updated from node v0.6.10 to 0.6.11 on MacOS X 10.6.8 and contextify started reporting that the contextify.node shared library doesn't work with node. More details: https://github.com/brianmcd/contextify/issues/19 Seems like a strange problem ... When I updated from v0.6.10 to 0.6.11 the

Re: [nodejs] Free nodejs services

2012-02-20 Thread Anand George
Now it's possible to run different version of node.js on Heroku. Check this http://www.scoop.it/t/nodejs-code/p/1210329655/run-multi-version-of-node-js-on-heroku Anand On Tue, Feb 21, 2012 at 8:37 AM, Murali Rama Krishnan scanmur...@gmail.comwrote: and more than that, heroku allows custom

Re: [nodejs] Free nodejs services

2012-02-20 Thread Gary Katsevman
Can't believe no one has mentioned https://no.de/ yet. Run by joyent. free micro-plans. -- Gary Katsevman Computer Science Undergraduate Northeastern University gkatsev.com On Tue, Feb 21, 2012 at 00:59, Anand George mranandgeo...@gmail.com wrote: Now it's possible to run different version of