Re: [nodejs] Re: How do I link bootstrap to node.js?

2013-03-14 Thread Joshua Holbrook
I wrote https://github.com/jesusabdullah/node-ecstatic for this kind of stuff, there are a bunch of code samples and a bin script for quickly serving static assets from a folder. Flatiron was using it when I worked at Nodejitsu so it's fairly well-tested. --Josh On Thu, Mar 14, 2013 at 1:14 AM,

[nodejs] Unable to install socket.io

2013-03-14 Thread Bhushan N.N
I am trying to install socket.io and I get this message npm install socket.io https://lh5.googleusercontent.com/-EMb8MP8FLgU/UUGlU_kIskI/BhE/KjQOZ3sIkCM/s1600/socket.png -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: How do I link bootstrap to node.js?

2013-03-14 Thread greelgorke
meteor isn't node. it uses node as container, but introduces it's own programming model and principles, own apis and even own package manager. it's not helpful in the context of this topic. surely one can find the meteor idea interesting and move to it, but then it's another mindset, event

[nodejs] nodejs(express) with redis and socketio

2013-03-14 Thread ramesh laxmisetti
In my application i am using RedisStore for storing session. using below code app.use(express.session({ store: new RedisStore({host:'system ip address', port:6379, prefix:'chs-sess'}), secret: 'lolcat', key : sid })); but I can't understand below things 1. where this value stored(means

Re: [nodejs] nodejs(express) with redis and socketio

2013-03-14 Thread Phil Jackson
Hey, ramesh laxmisetti laxmisettiram...@gmail.com writes: In my application i am using RedisStore for storing session. using below code app.use(express.session({ store: new RedisStore({host:'system ip address', port:6379, prefix:'chs-sess'}), secret: 'lolcat', key : sid })); but I

[nodejs] Heads up for 0.10: fs methods now all require callbacks

2013-03-14 Thread Matt
Discussion here: https://github.com/joyent/node/issues/5005 If you've ever done something like: fs.unlink(file); // don't care if it works or not This won't work in v0.10.0 any more. If you want to ignore errors you need to pass in an empty callback. Just wanted to post a heads-up here as

[nodejs] documents/second instead of seconds/document

2013-03-14 Thread wizard113
Just wanted to give out some thanks to all the core folks who landed v0.10.0. My results using it so far are nothing short of awesome. My app is using node.io, and gets clobbered constantly by problematic web pages. Even monit and an internal kill timer could not keep it going. I implemented

[nodejs] Re: Unable to install socket.io

2013-03-14 Thread mscdex
On Mar 14, 6:24 am, Bhushan N.N bhushan...@gmail.com wrote: I am trying to install socket.io and I get this message npm install socket.io https://lh5.googleusercontent.com/-EMb8MP8FLgU/UUGlU_kIskI/Bh... `npm install socket.io` should skip compilation for the ws module if you do not

[nodejs] Re: Unable to install socket.io

2013-03-14 Thread Bhushan N.N
I am a newbie and just started of reading the *Node Up and Running *book I am running *npm install socket.io* from command prompt. However, if I ignore the error being displayed, the examples still seem to work. Thank you Bhushan On Thursday, 14 March 2013 19:03:58 UTC+5:30, mscdex wrote: On

Re: [nodejs] Heads up for 0.10: fs methods now all require callbacks

2013-03-14 Thread Ben Noordhuis
On Thu, Mar 14, 2013 at 2:16 PM, Matt hel...@gmail.com wrote: Discussion here: https://github.com/joyent/node/issues/5005 If you've ever done something like: fs.unlink(file); // don't care if it works or not This won't work in v0.10.0 any more. If you want to ignore errors you need to

Re: [nodejs] Heads up for 0.10: fs methods now all require callbacks

2013-03-14 Thread Matt
I still think the documentation should be updated to reflect that callbacks are no longer optional. They are only optional if the call succeeds, which you can't really know ahead of time. On Thu, Mar 14, 2013 at 10:43 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Thu, Mar 14, 2013 at 2:16 PM,

[nodejs] Re: documents/second instead of seconds/document

2013-03-14 Thread Bradley Meck
Can't seem to click on the link (404ish style page saying missing or not shared). -- -- 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

Re: [nodejs] Heads up for 0.10: fs methods now all require callbacks

2013-03-14 Thread Matt
Ah, missed that - my bad :) On Thu, Mar 14, 2013 at 11:01 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Thu, Mar 14, 2013 at 3:58 PM, Matt hel...@gmail.com wrote: I still think the documentation should be updated to reflect that callbacks are no longer optional. They are only optional if

[nodejs] StreamWrap: Aborting due to unwrap failure at ../src/stream_wrap.cc:125

2013-03-14 Thread Chris Scribner
StreamWrap: Aborting due to unwrap failure at ../src/stream_wrap.cc:125 I'm seeing this error after upgrading to node v0.10. I haven't debugged into it yet, but does anyone have any details about that error? Thanks, Chris -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] StreamWrap: Aborting due to unwrap failure at ../src/stream_wrap.cc:125

2013-03-14 Thread Ben Noordhuis
On Thu, Mar 14, 2013 at 4:10 PM, Chris Scribner scr...@gmail.com wrote: StreamWrap: Aborting due to unwrap failure at ../src/stream_wrap.cc:125 I'm seeing this error after upgrading to node v0.10. I haven't debugged into it yet, but does anyone have any details about that error? Thanks,

Re: [nodejs] StreamWrap: Aborting due to unwrap failure at ../src/stream_wrap.cc:125

2013-03-14 Thread Chris Scribner
Cool, thanks! -- -- 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 To

Re: [nodejs] Buggy ES3 Code: Never Again!

2013-03-14 Thread AJ ONeal
And jquery now uses use strict too! AJ ONeal (317) 426-6525 On Wed, Mar 13, 2013 at 4:49 PM, AJ ONeal coola...@gmail.com wrote: FYI: grunt-init gruntplugin uses 'use strict'; for all grunt plugins. Yay! That's what we need to see more of! It would be nice if npm init would follow suit (or

Re: [nodejs] Buggy ES3 Code: Never Again!

2013-03-14 Thread Rick Waldron
On Wed, Mar 13, 2013 at 10:19 PM, AJ ONeal coola...@gmail.com wrote: Rick: I'm just thinking of the children here. I don't think you should have to be an expert to be a beginner. I'm vehemently pro technology that gets us closer to the goal of just being able to sit down and do stuff well.

Re: [nodejs] Raft - Open-Source PaaS

2013-03-14 Thread Nick Middleweek
Anyone?... On 10 March 2013 22:01, Nick Middleweek n...@middleweek.co.uk wrote: Hi, I'm after a cloud provider for hosting NodeJS apps that supports CI, perhaps in a similar way to CloudBees supports Java/ CI/ Git, etc. I'm not claiming to be an expert with CloudBees, in fact I'm far from

Re: [nodejs] Buggy ES3 Code: Never Again!

2013-03-14 Thread Scott González
On Thu, Mar 14, 2013 at 12:19 PM, AJ ONeal coola...@gmail.com wrote: And jquery now uses use strict too! Actually, we had to back that out. https://github.com/jquery/jquery/commit/0e2977583c0455eda940a28b2499cad2cbf24ee4 http://bugs.jquery.com/ticket/13335 -- -- Job Board:

Re: [nodejs] Re: documents/second instead of seconds/document

2013-03-14 Thread Mark Hahn
I couldn't view it because I don't want to sign up for google docs. On Thu, Mar 14, 2013 at 8:02 AM, Bradley Meck bradley.m...@gmail.comwrote: Can't seem to click on the link (404ish style page saying missing or not shared). -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: documents/second instead of seconds/document

2013-03-14 Thread Mark Hahn
I meant google+ On Thu, Mar 14, 2013 at 10:46 AM, Mark Hahn m...@hahnca.com wrote: I couldn't view it because I don't want to sign up for google docs. On Thu, Mar 14, 2013 at 8:02 AM, Bradley Meck bradley.m...@gmail.comwrote: Can't seem to click on the link (404ish style page saying

Re: [nodejs] Buggy ES3 Code: Never Again!

2013-03-14 Thread Rick Waldron
On Thu, Mar 14, 2013 at 1:29 PM, Scott González scott.gonza...@gmail.comwrote: On Thu, Mar 14, 2013 at 12:19 PM, AJ ONeal coola...@gmail.com wrote: And jquery now uses use strict too! Actually, we had to back that out. Important to note that we are not happy about this at all. Rick

Re: [nodejs] Re: [ANN] then-redis - A small, promise-based Redis client for node.js

2013-03-14 Thread Edgar Veiga
Hi Michael! I've been working on a proof of concept, regarding minimal clients for redis! So far I've reached 56 LOC. Obviously this isn't for use in production :) Thanks for your post, it gave me the final motivation for creating a public repo. Here's the code:

[nodejs] node-miniredis

2013-03-14 Thread Edgar Veiga
Just a proof of concept regarding the use of Proxy objects! A minimal redis client: https://github.com/eveiga/node-miniredis Best regards, Edgar Veiga -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You

Re: [nodejs] node-miniredis

2013-03-14 Thread Arunoda Susiripala
This is super awesome. Can some one please do some benchmarks. On Thu, Mar 14, 2013 at 11:54 PM, Edgar Veiga edgarmve...@gmail.com wrote: Just a proof of concept regarding the use of Proxy objects! A minimal redis client:

Re: [nodejs] Buggy ES3 Code: Never Again!

2013-03-14 Thread Mikeal Rogers
I feel so great about the fact that node.js will never have something backed out because it breaks asp.net ajax postbacks :) -Mikeal On Mar 14, 2013, at 11:09AM, Rick Waldron waldron.r...@gmail.com wrote: On Thu, Mar 14, 2013 at 1:29 PM, Scott González scott.gonza...@gmail.com wrote:

Re: [nodejs] Buggy ES3 Code: Never Again!

2013-03-14 Thread Rick Waldron
On Thu, Mar 14, 2013 at 2:56 PM, Mikeal Rogers mikeal.rog...@gmail.comwrote: I feel so great about the fact that node.js will never have something backed out because it breaks asp.net ajax postbacks :) It's rage inducing. Rick -Mikeal On Mar 14, 2013, at 11:09AM, Rick Waldron

Re: [nodejs] Raft - Open-Source PaaS

2013-03-14 Thread Tim Dickinson
Hey sorry for the delay. I don't think Raft is at the stage when you would want to use it. The post I made was really just to see what the community thought about the project. There are no stable versions of raft. The most text/docs/info your going to find about raft right now is this post.

[nodejs] Missing execSync in NodeJS

2013-03-14 Thread Sebi
Many functions in NodeJS have a Sync pendant to the non-blocking functions. Why is there no blocking pendant in the child_process module? I've giving up as I tried to iterate over a directory and call for every file child.exec how should my app now, that every process completed his task?

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Angel Java Lopez
I don't sure I understand your issue. But there is an example that iterate over a directory, to run test files https://github.com/laverdet/node-fibers/blob/master/test.js On Thu, Mar 14, 2013 at 5:32 PM, Sebi sebastian.tild...@googlemail.comwrote: Many functions in NodeJS have a Sync pendant

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Scott González
There are tons of modules to help with asynchronous code. https://npmjs.org/package/async is pretty popular. If you end up in callback hell, you're probably not designing your code properly. Take some time to look at various modules and find one with a style that you like. On Thu, Mar 14, 2013

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Arnout Kazemier
I have been using https://github.com/arturadib/shelljs for my execSync needs. Works quite well for building command line application in node that doesn't require concurrency ;) On Thursday, March 14, 2013 at 9:40 PM, Scott González wrote: There are tons of modules to help with asynchronous

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Sebi
Okay, but I think there should be an execSync like they do it in almost every other module. My oppertunity is, that every developer should have the ability to choose if he goes the async or syncronously way. Regards, Seb Am Donnerstag, 14. März 2013 21:40:08 UTC+1 schrieb Scott González:

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Sebi
Thank you, I know that there is already a module called exec-sync. I only posted that here, to inform the devlopers of nodejs, that it could be useful to attach some function in nodejs, that does that synchronously. Some function like this: stdout = execSync('ls ./mypath'); Am Donnerstag, 14.

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Mikeal Rogers
That's a great oppertunity? but it's not in line with the structure and goals of node.js. Node has synchronous file operations. The reason it has sync file operations is that there are many cases where you actually **want** to stop the entire server until you get back data from the filesystem

[nodejs] Re: Missing execSync in NodeJS

2013-03-14 Thread greelgorke
var filesInProgress = 0, fancyCallback = allDone = function(){ // boom} files.forEach( function(filename){ filesInProgress++ exec('ls '+filename,function(err, stdout, stderr){ filesInProgress--; //do something with it if(filesInProgress === 0) allDone();

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Tim Smart
Callback hell is a place you decide to go on your own. I'm not following you down there... Here is an alternative example made in callback heaven, where we embrace asyncronous control flow like our first-born: var async = require('async-array').async var fs= require('fs') var

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Sebi
But, what should you do if you can't serve anything after all sub-processes have completed where work? Am Donnerstag, 14. März 2013 22:02:11 UTC+1 schrieb Mikeal Rogers: That's a great oppertunity? but it's not in line with the structure and goals of node.js. Node has synchronous file

[nodejs] Re: Missing execSync in NodeJS

2013-03-14 Thread Sebi
But, what should you do if you can't serve anything after all sub-processes have completed their work? Am Donnerstag, 14. März 2013 22:02:11 UTC+1 schrieb Mikeal Rogers: That's a great oppertunity? but it's not in line with the structure and goals of node.js. Node has synchronous file

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Dick Hardt
I think you meant to say you can't serve anything *until* a sub-process has completed its work I've been using Node for CLI scripting, and a synchronous exec would be nice to have just like the synchronous file IO is nice to have. -- Dick On Mar 14, 2013, at 2:22 PM, Sebi

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Sebi
Sorry, yes I've meant *until*. Yes that's the second thing in CLI scripting. It's hard to write CLI Applications if you have only the async option. I know it, because I've tried to write a readline-application and the sync apps looking cleaner for me. I think I'm not the only person, who must

[nodejs] Re: Missing execSync in NodeJS

2013-03-14 Thread Bradley Meck
https://github.com/joyent/node/issues/1167 - stdio options need to be specced out still. -- -- 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] Re: Missing execSync in NodeJS

2013-03-14 Thread Sebi
OMG, so old and nobody has done something yet. Am Donnerstag, 14. März 2013 22:48:46 UTC+1 schrieb Bradley Meck: https://github.com/joyent/node/issues/1167 - stdio options need to be specced out still. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: npm pack fails on osx with 0.10.0 node

2013-03-14 Thread anywho
I downgraded because of other issues, but it would be nice to get confirmation that it's not just me :/ -- -- 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

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Dan Milon
On 03/14/2013 11:02 PM, Mikeal Rogers wrote: That's a great oppertunity? but it's not in line with the structure and goals of node.js. Node has synchronous file operations. The reason it has sync file operations is that there are many cases where you actually **want** to stop the entire

[nodejs] Re: Missing execSync in NodeJS

2013-03-14 Thread Bruno Jouhier
Callbacks are easy (*). Sync calls are an abomination in node.js. Unfortunately we cannot get rid of the ones that are already there. But we should not add more. (*) Some claim that they are easy for us humans. I find them too painful for humans but still easy because they can be mechanically

[nodejs] Re: Missing execSync in NodeJS

2013-03-14 Thread Sebi
Hope that no process completes before fileInProgress is set to two! Race-Conditions... Am Donnerstag, 14. März 2013 22:05:10 UTC+1 schrieb greelgorke: var filesInProgress = 0, fancyCallback = allDone = function(){ // boom} files.forEach( function(filename){ filesInProgress++

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Bradley Meck
Most real world use cases for this are not for performance, they are for shelling out to utilities, the alternatives are hideous as we found in nsh : https://github.com/AvianFlu/nsh/wiki/nsh -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: npm pack fails on osx with 0.10.0 node

2013-03-14 Thread anywho
now I'm getting it with the old version so something else must be going on. On Thursday, March 14, 2013 3:06:29 PM UTC-7, anywho wrote: I downgraded because of other issues, but it would be nice to get confirmation that it's not just me :/ -- -- Job Board: http://jobs.nodejs.org/ Posting

Re: [nodejs] Missing execSync in NodeJS

2013-03-14 Thread Isaac Schlueter
Patch welcome. https://github.com/joyent/node/issues/1167 On Thu, Mar 14, 2013 at 3:33 PM, Bradley Meck bradley.m...@gmail.com wrote: Most real world use cases for this are not for performance, they are for shelling out to utilities, the alternatives are hideous as we found in nsh :

Re: [nodejs] Re: [ANN] then-redis - A small, promise-based Redis client for node.js

2013-03-14 Thread Michael Jackson
;) That's a clever use of Proxy! If you want to get *ultra* tiny, check out Pieter Noordhuis' own node client that is tucked away in the node-hiredis repo: https://github.com/pietern/hiredis-node/blob/master/hiredis.js Anyway, pretty awesome what you can do with a simple protocol and some

Re: [nodejs] [ANN] then-redis - A small, promise-based Redis client for node.js

2013-03-14 Thread Rick Waldron
That Proxy API is dead, very soon it will be replaced by the direct Proxy spec. Rick On Thursday, March 14, 2013, Michael Jackson wrote: ;) That's a clever use of Proxy! If you want to get *ultra* tiny, check out Pieter Noordhuis' own node client that is tucked away in the node-hiredis