Re: [nodejs] Re: Buffer.indexOf'

2012-12-17 Thread rootslab
Hi Mikeal, after some tests/benchmarks on these algorithms with js: - brute force - quick seacrh - boyer moore and tuned boyer moore I think that could be possible to add a js implementation for Buffer.indexOf. The fastest algorithm for small patterns is Boyer-Moore in usual cases, but I think

[nodejs] how to create session in nodejs using expressjs

2012-12-17 Thread ayaz ali
hello every one : i get this error while putting value in session C:\Program Files\nodejs\chatingLoginExp\node_modules\express\node_modules\connect\lib\middleware\session.js:262 var secured = cookie.secure (req.connection.encrypted || req.connec ^

[nodejs] how to create session in nodejs using expressjs

2012-12-17 Thread ayaz ali
hello every one : i get this error while putting value in session C:\Program Files\nodejs\chatingLoginExp\node_modules\express\node_modules\connect\lib\middleware\session.js:262 var secured = cookie.secure (req.connection.encrypted || req.connec ^

Re: [nodejs] new framework for json apis

2012-12-17 Thread Jake Verbaten
I used the word 'on' in onRequest(), onJson() and onBody(), but those are not really for streams or even general events and should only ever have 1 handler/listene req.on(end, handler) is an event that only happens once and and will only have a single handler in most cases. Just make request,

[nodejs] Re: Architecture of a scalable push notification service

2012-12-17 Thread josh
Redis might not be optimal for my case since it store everything in memory and i might be in a situation where apple server is not available and many failed messages will be saved in memory very quickly. also, if I plan to keep those messages for reporting etc, i should store it in a more

[nodejs] Re: Clogged connection pool - connections opened/closed all at once

2012-12-17 Thread Michael Hart
Jonathon - are you saying that you're seeing behaviour where you're trying to make 10 requests simultaneously, and Request #11 is only started after Request #1-10 have completed? I don't see this behaviour. For example: var http = require('http') function httpCall(i) {

[nodejs] How can I distribute my own node.js module using npm?

2012-12-17 Thread Andy Green
Is there any way to distribute node.js modules using npm? If I created a .js file called my-custom-module.js, how could I allow other users to install it using the command sudo npm install my-custom-module? -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: Maybe of interest: Why we need a NodeJS application server or: writing boilerplate code considered harmful

2012-12-17 Thread panyasan
I looked at Meteor and at first thought that it might be a good fit. However, as I said in my post, I want to stick with the NodeJS model of doing things and not use a completely different (synchronous) paradigm. But that (as well as not wanting to use RoR) my personal choice, nothing I need

Re: [nodejs] How can I distribute my own node.js module using npm?

2012-12-17 Thread José F . Romaniello
You need a package.json, and then you can do npm publish. https://npmjs.org/doc/json.html A handy way to write the json file is to start with: npm init this will ask you some question and then generate a package.json file for you. BTW, in node.js modules are installed locally by default, so

Re: [nodejs] Re: Maybe of interest: Why we need a NodeJS application server or: writing boilerplate code considered harmful

2012-12-17 Thread Kevin Jones
On Monday, December 17, 2012 10:52:06 AM UTC, panyasan wrote: What I find interesting to debate is if your general claim (each project is radically different) really is true for everybody. It is true for you of course, and probably for the majority of people posting here. But when I look

Re: [nodejs] How can I distribute my own node.js module using npm?

2012-12-17 Thread Angel Java Lopez
And you need to have an user account it npm (easy steps, if I could do it, everyone can ;-) (user, password, email, AFAIR). Then, you can add your user to every machine you are working on. For global install, take into account that you could add some commands (in two flavors, shell script AND

Re: [nodejs] Re: Maybe of interest: Why we need a NodeJS application server or: writing boilerplate code considered harmful

2012-12-17 Thread klru...@gmail.com
I was looking at a similar decision albeit on a much smaller scale but with quite a lot of existing non js backend software. In my eternal quest for simplicity eventually I decided to rewrite it all using Zappjs which is a sort of wrapper with express, node, socketio, coffeescript,

Re: [nodejs] Re: Maybe of interest: Why we need a NodeJS application server or: writing boilerplate code considered harmful

2012-12-17 Thread panyasan
Am Montag, 17. Dezember 2012 12:24:56 UTC+1 schrieb Kevin Jones: Today though I wonder if you looking for the wrong answer, is the new application server not a PaaS API? Definitely what I am looking for looks more like an API than one of the old Java App Servers. It becomes increasingly

Re: [nodejs] new framework for json apis

2012-12-17 Thread Gregg Caines
req.on(end, handler) is an event that only happens once and and will only have a single handler in most cases. Just make request, json and body events and make your $ thing an event emitter. I think you've sold me on that. Good points. CRUDCollection (its annoying to rename your concepts a

Re: [nodejs] how to create session in nodejs using expressjs

2012-12-17 Thread Ryan Schmidt
On Dec 17, 2012, at 03:45, ayaz ali khatri.ayaz...@gmail.com wrote: i get this error while putting value in session C:\Program Files\nodejs\chatingLoginExp\node_modules\express\node_modules\connect\lib\middleware\session.js:262 var secured = cookie.secure

Re: [nodejs] Architecture of a scalable push notification service

2012-12-17 Thread Ryan Schmidt
On Dec 17, 2012, at 03:58, josh wrote: also, if I plan to keep those messages for reporting etc, i should store it in a more persistent DB. Redis has persistence. http://redis.io/topics/persistence -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Using ForeverAgent

2012-12-17 Thread Mikeal Rogers
Voxer has done some work to pull out ForeverAgent and improve it, they may or may not have published it already as a standalone module. Once it's published as a module I'll probably migrate request over to using it instead of an internal implementation. On Dec 15, 2012, at December 15,

Re: [nodejs] Using ForeverAgent

2012-12-17 Thread Dan Shaw
Here's the Voxer module: https://github.com/ceejbot/keep-alive-agent We're using this in production under Poolee ( https://github.com/dannycoates/poolee ), our HTTP pool and load balancer. Daniel Shaw @dshaw On Mon, Dec 17, 2012 at 12:40 PM, Mikeal Rogers mikeal.rog...@gmail.comwrote: Voxer

Re: [nodejs] new framework for json apis

2012-12-17 Thread shaun etherton
Hey Gregg FWIW. I like it so far and have started to use it. I'm mainly experimenting with it at this point, but your framework is a good fit for what i was looking for. Thank you. On Tuesday, 18 December 2012 at 2:06 AM, Gregg Caines wrote: req.on(end, handler) is an event that only

Re: [nodejs] new framework for json apis

2012-12-17 Thread Gregg Caines
Very cool, Shaun... Feel free to give me a shout anytime if you have questions, or find bugs. G On Mon, Dec 17, 2012 at 3:55 PM, shaun etherton shaun.ether...@gmail.comwrote: Hey Gregg FWIW. I like it so far and have started to use it. I'm mainly experimenting with it at this point, but

Re: [nodejs] new framework for json apis

2012-12-17 Thread Jake Verbaten
The problem of how do I write a generic request handler but still let the user decide how to handle errors is frustratingly hard. The best solution I have come up with is. router.addRoute(/thing, require(route-handler)({ error: myErrorFramework })) which is annoying at best. you hard couple the

[nodejs] how to create session in nodejs using expressjs

2012-12-17 Thread Darren
These examples will probably help you: https://github.com/visionmedia/express/blob/master/examples/cookie-sessions/index.js https://github.com/visionmedia/express/blob/master/examples/cookies/app.js -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Cluster Child Forking

2012-12-17 Thread Casey Huggins
I am curious if anyone has encountered an issue I am currently dealing with in the Node Cluster module. Following the guide, I have code that looks like this: *if* (cluster.isMaster) { console.log(require('util').inspect(process.env)); *var* workerCount =

[nodejs] Nodejs Chat Popup for private messaging

2012-12-17 Thread ayaz ali
hello everyone i have developed chat appusing express and socket.io which is currently chat rooms based i want to extend it now for private chat like facebook or gtalk, i have searched but only find php based example and i need an example which is independent of any other language like php any

[nodejs] Re: Nodejs Chat Popup for private messaging

2012-12-17 Thread Ket
It's not easy to achieve what you want with javascript alone. I would use PHP for this project. On Tuesday, December 18, 2012 1:36:44 PM UTC+7, ayaz ali wrote: hello everyone i have developed chat appusing express and socket.io which is currently chat rooms based i want to extend it now for

[nodejs] Re: Nodejs Chat Popup for private messaging

2012-12-17 Thread ayaz ali
thanks for reply my problem is that i have to integrate it in my existing application which is in java -- 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

[nodejs] Re: Nodejs Chat Popup for private messaging

2012-12-17 Thread Charlie Circle
I don't get it, why is javascript alone so hard? Why do you need php for it? Php is not suitable for chat since it's not good at IO. You can check our example, https://github.com/NetEase/chatofpomelo Private chat is as easy as group chat. On Tuesday, December 18, 2012 3:11:57 PM UTC+8,

[nodejs] best distributed multi-writer, single-reader store?

2012-12-17 Thread Floby
this might be stupid but can't you use a queue? -- 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