[nodejs] Vim support for html5

2012-02-19 Thread Peng Yu
Hi, Although this vim question is not directly related with node, it is relevant. http://groups.google.com/group/nodejs/browse_thread/thread/c5fe809d3cf9ca72 The above thread mentioned some vim plugins. I currently use https://github.com/othree/html5.vim/blob/master/indent/html.vim for indentin

[nodejs] Free nodejs services

2012-02-20 Thread Peng Yu
Hi, To set a nodejs service without setting up a website myself, could anybody recommend some free services? I see Amazon EC2, I'm wondering if there are any other alternative free services? And what would recommend? http://cuppster.com/2011/05/12/diy-node-js-server-on-amazon-ec2/ Regards, Peng

[nodejs] Where is NODE_ENV documented

2012-03-18 Thread Peng Yu
Hi, I'm not able to find where NODE_ENV is documented and what it is for. Could anybody point me where the document is? Regards, Peng -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because

[nodejs] {} pairing problem in vim ({ is in regex)

2012-03-18 Thread Peng Yu
Hi, I installed several plugins (I don't I installed all) at https://github.com/joyent/node/wiki/Vim-Plugins But vim fails to recognize '{' in /.../ should be ignored for pairing, which leads to error in {} pairs (shortcut % in vim). I'm not sure which vim plugin should handle this special case.

[nodejs] Is file closing explicitly needed after fs.readFileSync()?

2019-10-23 Thread Peng Yu
I'd like to fs.writeFileSync() to the same file after reading its content by fs.readFileSync(). It is not clear to me whether fs.closeSync() (or any other file closing function) is needed between writeFileSync() and readFileSync() according to the documentation. Would you please let me know? Th

Re: [nodejs] Re: Is file closing explicitly needed after fs.readFileSync()?

2019-10-24 Thread Peng Yu
uot;) > console.log(data.toString()) > > var newdata = "some new data timestamp:"+new Date() > console.log("starting write...") > fs.writeFile("./test.txt", newdata, (err)=>{ > if (err) {console.log(err); return;} > console.log(&qu