Re: [nodejs] throught2 : what did I do wrong

2015-01-18 Thread Shripad K
chunk. toString().toUpperCase(); Strings are immutable. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this

Re: [nodejs] Re: Node JS hosting service in Europe

2012-10-09 Thread Shripad K
I'll be hosting one pretty soon (by end of this week). It will be hosted in Cloudsigma (Zurich). Will ping you when I push the app into production. On Tue, Oct 9, 2012 at 10:56 AM, Karl klru...@gmail.com wrote: Don't know what Pubnub does but low cost hosters in Europe are OVH (France,kimserve

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Shripad K
I'm sorry I don't have Windows running to test it on. Can you write multiple constructors/methods of varying types? How does TypeScript translate this code to equivalent JS code? constructor (message: string) { this.greeting = message; } constructor (message: number) { this.greeting = message;

Re: [nodejs] TypeScript and node.js

2012-10-01 Thread Shripad K
() { return this.num; } } On Tue, Oct 2, 2012 at 8:16 AM, Shripad K assortmentofso...@gmail.comwrote: I'm sorry I don't have Windows running to test it on. Can you write multiple constructors/methods of varying types? How does TypeScript translate this code to equivalent JS code

Re: [nodejs] Re: What Editor / OS / Dev enviroment do you use?

2012-09-22 Thread Shripad K
I use Sublime Text 2, MacOSX primarily. Ubuntu VM + vim/ST2 again for testing. On Sat, Sep 22, 2012 at 5:27 PM, Ilya Sh. ilya.shaisulta...@gmail.comwrote: Ubuntu 12.04 x64 with Gnome Shell, WebStorm 5. Local mongo, redis. -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: Crockford : Ynode : I would fork node.js

2012-09-18 Thread Shripad K
On Tue, Sep 18, 2012 at 10:34 PM, Isaac Schlueter i...@izs.me wrote: First of all, saying I would fork node is just an absurdly dated thing to even say as if it's meaningful. There are 2,452 forks of node right now. It's silly to say that you WOULD fork node, if you currently can, and

Re: [nodejs] Re: Anonymous functions garbage collection

2012-09-14 Thread Shripad K
Why not use recursive functions? var a = getInitialData(); function doSomething(el, i) { if(i a.length) { /* do something non-blocking here*/ doSomething(a[i+1], i+1); } } doSomething(a[0], 0); On Sat, Sep 15, 2012 at 12:00 AM, dhruvbird dhruvb...@gmail.com wrote: Hello

Re: [nodejs] net.createServer

2012-09-08 Thread Shripad K
On Sat, Sep 8, 2012 at 12:51 PM, Shripad K assortmentofso...@gmail.comwrote: On Fri, Sep 7, 2012 at 7:05 PM, Mark Volkmann r.mark.volkm...@gmail.comwrote: I don't doubt you. I just want to see that documented somewhere or clearly see how that is enforced in the code. I have looked

Re: [nodejs] Net.js - socket.write equivalent of java command writeShort() writeByte() writing JSON object to socket

2012-09-07 Thread Shripad K
Should be buf.writeInt32LE/buf.writeInt32BE. Docs for Buffer: http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_writeint32le_value_offset_noassert On Fri, Sep 7, 2012 at 6:20 PM, Neha Jatav neha.ja...@gmail.com wrote: Hi Ben, Thanks for the quick response. I am getting the following

Re: [nodejs] Re: Is it a good idea for me to learn node.js?

2012-08-30 Thread Shripad K
Rails is a framework on top of Ruby. So you can't compare Rails to Node.JS. You can do CRUD with Node.JS. You can do in Nodejs everything that can be done in Ruby. Only the default paradigm is different. One is synchronous, blocking and the other is asynchronous, non-blocking by default. You can

Re: [nodejs] Re: Is it a good idea for me to learn node.js?

2012-08-29 Thread Shripad K
On Wed, Aug 29, 2012 at 3:54 PM, ANIKET KADAM aniketkadam1...@gmail.comwrote: please please provide me a link about HTTP 1.1 API www.w3.org/Protocols/rfc2616/rfc2616.html On Wed, Aug 29, 2012 at 3:16 PM, Abramovick wandah...@gmail.com wrote: if your going make a website u obviously

Re: [nodejs] [libuv] thread, uv_loop_new and uv_accept dangerous cocktail

2012-08-29 Thread Shripad K
Ngninx/Stud fork()s and the child runs the event loop; the parent just does a bind(). Since stud uses libev you can also look at the implementation in stud: https://github.com/bumptech/stud/blob/master/stud.c#L1822 https://github.com/bumptech/stud/blob/master/stud.c#L1853

Re: [nodejs] [libuv] thread, uv_loop_new and uv_accept dangerous cocktail

2012-08-29 Thread Shripad K
for libuv). Shripad K On Thu, Aug 30, 2012 at 2:30 AM, Mathieu Garaud mathieu.gar...@gmail.comwrote: Hi Zhang, I implemented Ben's solution but I faced exactly the same issue. I mean even if I pass uv_stream_t over the pipe using uv_write2 the stream is still attached to the wrong event loop

Re: [nodejs] Re: How would you solve this: how many minutes connected

2012-08-21 Thread Shripad K
You can do this perhaps (If persistence is not a major requirement): When socket connects fetch from DB the stored points and store it in an object (perhaps a global object with the key being the unique ID of the user). Then for each message relayed to the server from client (be it upvote or from

Re: [nodejs] Non-blocking wrapper for a blocking library

2012-08-20 Thread Shripad K
On Mon, Aug 20, 2012 at 7:23 PM, Navaneeth KN navaneet...@gmail.com wrote: Hello, Thanks for responding. On Monday, 20 August 2012 17:37:55 UTC+5:30, Shripad K wrote: Hello Navaneeth, One cannot ascertain from the JS code whether the call is going to block the event loop

Re: [nodejs] Being both event-driven servers, why node.js needs async code where Nginx doesn't?

2012-08-15 Thread Shripad K
rudimentary. But I think it should give you more clarity. Shripad K. On Wed, Aug 15, 2012 at 4:39 PM, Krishna Guda kris...@syntactice.comwrote: ** think I could clarify a few things here. Some of the observations/assertions made are incorrect. Anyways, my 2 cents (corrections response). 1

Re: [nodejs] Re: Can you build a CMS in 14 days? $10,000 Prize

2012-07-14 Thread Shripad K
I have to agree with @Joseph. Its okay to say that something doesn't look legit (maybe because it doesn't sound professional/pricing issues). These finer points could have been discussed over a personal mail to Joseph and not publicly. But dragging it even after clarification from Joseph is

Re: [nodejs] Re: Can you build a CMS in 14 days? $10,000 Prize

2012-07-14 Thread Shripad K
). The answer won't change. If you take the former route, then it will get personal, your day will be sour and you might lose a potential good acquaintance. On Sat, Jul 14, 2012 at 1:08 AM, Shripad K assortmentofso...@gmail.comwrote: I have to agree with @Joseph. Its okay to say that something

Re: [nodejs] Re: Can you build a CMS in 14 days? $10,000 Prize

2012-07-14 Thread Shripad K
me, I might end up being wrong anyways :) I just felt the commenters (not you alone) were a bit harsh on him (Except for Tim). I googled him and it seems like he has posted a job offer for the first time. On Sat, Jul 14, 2012 at 1:39 AM, Shripad K assortmentofso...@gmail.comwrote: On Sat, Jul 14

Re: [nodejs] Evil threads [ANN] Threads a GoGo

2012-03-08 Thread Shripad K
Can you give an example as to how you would emulate require() via thread.load() ? if a module has inner requires (which it probably will) it would throw up ReferenceError(s). Btw really cool module. :) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: