[00:00] tjholowaychuk: i'll see if i can repro [00:00] akihito_s has joined the channel [00:00] johnnywengluu: tjholowaychuk: ok wait [00:00] andrewnelder has joined the channel [00:01] andrewnelder: Question -- I want to make a website that is powered by node.js. I would like to make all feedback appear in real-time. Does anyone have any recommendations on where to get started? [00:02] CIA-109: node: 03Bert Belder 07v0.6 * rd51a0c3 10/ deps/uv/src/win/error.c : Upgrade libuv to 45b976a - http://git.io/MIJr0Q [00:03] johnnywengluu: tjholowaychuk: im sorry it was my mistake .. forgot that I added _done_ in the callback thus having to call it [00:03] tjholowaychuk: ah [00:03] jbrokc_ has joined the channel [00:04] scottschecter has joined the channel [00:05] johnnywengluu: so cool you are testing mocha with mocha [00:06] tjholowaychuk: most test frameworks test themselves with themselves [00:06] tjholowaychuk: self-hosting is a nice side-effect of flexibility [00:06] johnnywengluu: and compile themselves with themselves [00:06] johnnywengluu: its like traveling back in time and kill yourself [00:06] tjholowaychuk: not in the case of the DOM, which is just retarded, adding getters/proxies for bad api decisions [00:06] tjholowaychuk: is lame [00:06] tjholowaychuk: but hey [00:07] stantona has joined the channel [00:08] akihito_s has joined the channel [00:08] markwubben has joined the channel [00:08] pyrony has joined the channel [00:11] johnnywengluu: tjholowaychuk: you should be there and help them with the decisions :) [00:12] tjholowaychuk: meh [00:12] tjholowaychuk: it'll get worse before it gets better [00:12] tjholowaychuk: maybe in a few years [00:12] adrianmg has joined the channel [00:13] adrianmg has left the channel [00:13] jbrokc_ has joined the channel [00:13] `3rdEden has joined the channel [00:14] bogomips2__ has joined the channel [00:16] zomgbie has joined the channel [00:22] stantona has joined the channel [00:23] jbrokc_ has joined the channel [00:24] eastc has joined the channel [00:24] eastc: anyone here [00:25] ryanfitz has joined the channel [00:26] CIA-109: node: 03Bert Belder 07reviewme * r236b217 10/ test/simple/test-fs-chmod.js : [00:26] CIA-109: node: Fix issues with test-fs-chmod [00:26] CIA-109: node: - The test simultaneously chmods and fchmods the same file. [00:26] CIA-109: node: - On windows, it leaves behind a fixture in read-only mode, [00:26] CIA-109: node: which causes test-fs-fsync to fail. - http://git.io/Gas9jQ [00:28] lars- has joined the channel [00:28] CIA-109: node: 03Bert Belder 07v0.6 * r236b217 10/ test/simple/test-fs-chmod.js : [00:28] CIA-109: node: Fix issues with test-fs-chmod [00:28] CIA-109: node: - The test simultaneously chmods and fchmods the same file. [00:28] CIA-109: node: - On windows, it leaves behind a fixture in read-only mode, [00:28] CIA-109: node: which causes test-fs-fsync to fail. - http://git.io/Gas9jQ [00:29] zemanel_ has joined the channel [00:30] plutoniiix has joined the channel [00:30] Juan77 has joined the channel [00:31] jstash has joined the channel [00:32] pandeiro has joined the channel [00:33] jbrokc_ has joined the channel [00:34] rchavik has joined the channel [00:34] diogogmt has joined the channel [00:35] deedubs: anyone with pegjs experience? [00:36] tjholowaychuk: peg/leg [00:36] tjholowaychuk: but no pegjs :( [00:36] deedubs: … arrrr [00:36] tjholowaychuk: what's the issue? [00:37] deedubs: trying to add Regex support to https://github.com/dmajda/pegjs/blob/master/examples/json.pegjs [00:37] deedubs: want to be able to do {"name": /Dan/} [00:37] AAA_awright_0 has joined the channel [00:37] tjholowaychuk: i would just be lame and do / -> / [00:37] tjholowaychuk: haha [00:41] ryanfitz has joined the channel [00:41] jimubao has joined the channel [00:44] jbrokc_ has joined the channel [00:47] konobi: anyone know how to force npm to install to a specific prefix? [00:47] ekryski_ has joined the channel [00:49] mmalecki: konobi: npm install whatever --prefix /dir [00:49] konobi: npm itself [00:49] gavin_huang has joined the channel [00:50] konobi: ie: the install.sh =0) [00:50] mmalecki: ah, no idea then [00:50] konobi: bnoordhuis: ? [00:51] deedubs: tjholowaychuk: Got it! smashed part of javascript.pegjs together with json.pegjs [00:52] binaryjohn has joined the channel [00:52] hoofed has joined the channel [00:52] tjholowaychuk: deedubs ah good call [00:52] yuwang has joined the channel [00:52] ChrisPartridge: konobi: there used to be an example on the npm wiki afaik [00:52] deedubs: parsing mongoose query objects that are being written by browser clients [00:52] marcostoledo has joined the channel [00:53] jbrokc_ has joined the channel [00:54] riven has joined the channel [00:54] riven has joined the channel [01:01] purr has joined the channel [01:01] Epeli has joined the channel [01:01] stantona has joined the channel [01:03] brianseeders has joined the channel [01:04] gtramontina has joined the channel [01:04] jbrokc_ has joined the channel [01:05] IrishGringo has joined the channel [01:06] konobi: ah ha... npm_config_prefix=/root/local/npm sh install.sh [01:06] CIA-109: libuv: 03Bert Belder 07reviewme * r3a50f8f 10/ src/win/getaddrinfo.c : Win: fix uv_getaddrinfo error reporting - http://git.io/150iLQ [01:06] stantona has joined the channel [01:09] CIA-109: libuv: 03Bert Belder 07v0.6 * r3a50f8f 10/ src/win/getaddrinfo.c : Win: fix uv_getaddrinfo error reporting - http://git.io/150iLQ [01:10] stantona has joined the channel [01:11] toopay has joined the channel [01:11] forzan has joined the channel [01:11] secoif has joined the channel [01:13] ChrisPartridge: konobi: thats the one, where did you find that? looks like all the wiki has changed etc [01:13] konobi: ChrisPartridge: RTFSFTMFW! [01:14] CIA-109: node: 03Bert Belder 07v0.6 * r95eb729 10/ deps/uv/src/win/getaddrinfo.c : Upgrade libuv to 3a50f8f - http://git.io/rx4C4g [01:17] bartt has joined the channel [01:17] bartt has joined the channel [01:17] bartt has joined the channel [01:18] bartt has joined the channel [01:18] bartt has joined the channel [01:18] bartt has joined the channel [01:19] bartt has joined the channel [01:19] bartt has joined the channel [01:19] bartt has joined the channel [01:19] stantona has joined the channel [01:23] Emmanuel` has joined the channel [01:24] conntrack has joined the channel [01:25] conntrack has joined the channel [01:25] jbrokc_ has joined the channel [01:27] hoofed has left the channel [01:30] k1ttty has joined the channel [01:32] jbrokc_ has joined the channel [01:33] stantona has joined the channel [01:34] indexzero has joined the channel [01:36] ekryski has joined the channel [01:36] abraxas has joined the channel [01:41] replore_ has joined the channel [01:41] replore has joined the channel [01:42] marcostoledo has joined the channel [01:42] plutoniix has joined the channel [01:43] Klaus_Dieter: that one is nice as well: -DENABLE_DEBUGGER_SUPPORT -I/mnt/data/build/node/node-v0.6.2/deps/v8/src /mnt/data/build/node/node-v0.6.2/deps/v8/src/func-name-inferrer.cc [01:43] Klaus_Dieter: /usr/bin/g++ -o obj/release/gdb-jit.o -c -march=armv5t -mfloat-abi=soft -fno-rtti -fno-exceptions -march=armv5t -mfloat-abi=soft -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -Wno-abi -pedantic -mfloat-abi=softfp -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -march=armv5t -mfloat-abi=soft -DCAN_USE_VFP_INSTRUCTIONS -DUSE_EABI_HARDFLOAT=0 -DV8_TARGET_ARCH_ARM -DENABLE_GDB_JIT_INTERFACE -DENABLE_DEBUGGER_SUPPORT -I/m [01:43] Klaus_Dieter: /mnt/data/build/node/node-v0.6.2/deps/v8/src/gdb-jit.cc:1109:2: error: #error Unsupported target architecture. [01:43] Klaus_Dieter: any ideas? [01:43] jbrokc__ has joined the channel [01:43] stantona has joined the channel [01:44] zemanel has joined the channel [01:44] konobi: Klaus_Dieter: install without debug support? [01:44] Klaus_Dieter: when running configure without --gdb it builds but then running node fails [01:44] Klaus_Dieter: "invalid instruction" is the error [01:45] secoif has joined the channel [01:45] Klaus_Dieter: and I am assuming that it is failing when trying to use the fpu [01:48] cjm has joined the channel [01:49] stantona has joined the channel [01:51] thepatr1ck has joined the channel [01:53] jbrokc_ has joined the channel [01:55] stantona has joined the channel [01:55] icewhite has joined the channel [01:55] a_suenami has joined the channel [02:04] jbrokc__ has joined the channel [02:04] bradleymeck has joined the channel [02:06] mike_miller has joined the channel [02:07] mike_miller: Is there a good equivalent to ActiveRecord for node.js? I need an ORM that supports operations similar to migrations, HABTM relationships, and transactions. Does anything fit the bill for node.js? [02:08] tiagobutzke has joined the channel [02:10] secoif has joined the channel [02:10] CIA-109: node: 03Bert Belder 07v0.6 * r232e8e1 10/ test/fixtures/echo.js : Fix test-stdin-from-file - http://git.io/TUAvJQ [02:12] luoluoluo has joined the channel [02:14] jbrokc_ has joined the channel [02:14] mikeric has joined the channel [02:15] labuser has joined the channel [02:17] Kunda has joined the channel [02:20] piscisaureus__ has joined the channel [02:21] secoif has joined the channel [02:21] apoc has joined the channel [02:23] stantona has joined the channel [02:23] labuser has joined the channel [02:27] frkout has joined the channel [02:29] langworthy has joined the channel [02:29] k1ttty has joined the channel [02:30] r1ngzer0 has joined the channel [02:32] Raynos: I wrote a post about reasons to use node.js.(http://raynos.org/blog/19/5-Solid-reasons-to-use-node.js) Does anyone have a comment about where I might be wrong / misleading / spreading misinformation? [02:33] jbrokc__ has joined the channel [02:34] secoif has joined the channel [02:35] r1ngzer0 has joined the channel [02:38] davidascher has joined the channel [02:43] stantona has joined the channel [02:43] jbrokc_ has joined the channel [02:44] boltR has joined the channel [02:44] davidascher has joined the channel [02:47] johnnywengluu: Raynos: its pretty solid [02:50] frkout_ has joined the channel [02:54] jbrokc__ has joined the channel [02:54] Draco_ has joined the channel [02:56] enmand has joined the channel [03:01] MUILTFN has joined the channel [03:02] codygray has joined the channel [03:04] jbrokc has joined the channel [03:05] catshirt has joined the channel [03:05] kejun has joined the channel [03:05] kejun has left the channel [03:07] mike5w3c has joined the channel [03:07] kawaz_air has joined the channel [03:07] draz has joined the channel [03:07] TN has joined the channel [03:08] rails_noob has joined the channel [03:08] draz: peeps [03:08] brokenjames has joined the channel [03:09] draz: im looking to pass as "locals" variables to Jade a key and value, where the key is a dynamic string [03:09] draz: is that possible? [03:09] draz: I've been getting an error [03:09] draz: im sending a request for a few queries, each with a different name, and they come back at different times. So there's no guarantee of a particular order [03:10] thepatr1ck: tried: locals = {}; locals[variable that would give you the key] = value; ? [03:10] draz: therefore, when I send the "locals", my JSON has the name of the resultset embedded in a name [03:10] draz: thepatrick -- yes, I did [03:10] draz: did not work [03:11] draz: I get the response in the form of [03:11] kejun has joined the channel [03:11] draz: resFB.data[0].name [03:11] draz: that should be my key [03:12] draz: and the value should be something like resFB.data[0].resultSet [03:12] draz: so I wanted to put resFB.data[0].name as my key, hoping that it will take the actual value out [03:12] AD7six has joined the channel [03:13] draz: but it sortta makes sense that it doesnt work [03:13] draz: however, I'm wondering whether there IS a way around it [03:13] draz: to actually get the value and not the literal string [03:14] draz: locals: { getMyValue(resFB.data[0].name : resFB.data[0].resultSet } [03:14] draz: something like that [03:15] draz: sorry, getMyValue(resFB.data[0].name) etc [03:15] shipit has joined the channel [03:16] spathi has joined the channel [03:16] lyte has joined the channel [03:17] EhevuTov has joined the channel [03:19] draz_ has joined the channel [03:20] draz: i guess it's more of a javascript question [03:21] draz: though Im asking because there might be a better way to pass variables into Jade, so... [03:21] confoocious has joined the channel [03:21] confoocious has joined the channel [03:21] CIA-109: libuv: 03Igor Zinkovsky 07v0.6 * rcfa4112 10/ src/win/fs.c : windows: make uv_fs_stat use open + fstat to support long paths - http://git.io/Jvx0jw [03:23] cronopio has joined the channel [03:24] towski has joined the channel [03:25] phiggins has joined the channel [03:25] binaryjohn has joined the channel [03:25] thepatr1ck has joined the channel [03:25] tonymilne has joined the channel [03:26] codygray has joined the channel [03:27] plutoniix has joined the channel [03:28] Destos has joined the channel [03:28] jaf0 has joined the channel [03:28] jaf0: hey guys, [03:31] amigojapan has joined the channel [03:31] jjjsss has joined the channel [03:33] jimt has joined the channel [03:33] jbrokc_ has joined the channel [03:34] zemanel has joined the channel [03:36] indexzero has joined the channel [03:36] JakeyChan has joined the channel [03:39] phiggins has joined the channel [03:40] towski_ has joined the channel [03:42] zivester has joined the channel [03:43] Aria has joined the channel [03:43] jbrokc_ has joined the channel [03:46] CIA-109: node: 03Igor Zinkovsky 07v0.6 * r3195809 10/ deps/uv/src/win/fs.c : update libuv to cfa4112950b1f897fda7 - http://git.io/JaCANw [03:46] koo5 has joined the channel [03:49] Kunda has joined the channel [03:52] idl3 has joined the channel [03:52] jxie has joined the channel [03:53] jbrokc_ has joined the channel [03:56] lyte_ has joined the channel [03:57] saikat has joined the channel [03:57] fairwinds has joined the channel [03:58] fraanky has joined the channel [03:59] Destos has joined the channel [04:02] bearnard has joined the channel [04:03] dreamdust has joined the channel [04:04] jbrokc_ has joined the channel [04:04] jrogers has joined the channel [04:07] masch: i'm looking for a tool that does proper syntax highlighting on the server side with line numbering [04:11] CarterL has joined the channel [04:11] lyte has joined the channel [04:13] jbrokc_ has joined the channel [04:19] JakeyChan: hi ? node mysql question, [04:19] JakeyChan: when close the mysql connect ? [04:19] JakeyChan: I use the mysql client like that: [04:20] JakeyChan: var client = mysql.createClient(); [04:20] JakeyChan: app.get('' , function () {// use client here, but didn't release it }); [04:20] JakeyChan: is it right ? [04:22] pixel13 has joined the channel [04:23] RIA has joined the channel [04:23] pixel13 has left the channel [04:23] JakeyChan: I don't know where to release mysql client [04:26] Aria: When you're done with it. That's the question: when ARE you done with it? [04:26] Aria: You probably want some basic pooling: Make several connections, use a free one when a request comes in, return it to the pool when you're done using it. [04:27] mike_miller has joined the channel [04:30] pixel13 has joined the channel [04:30] pixel13 has left the channel [04:33] ryanfitz has joined the channel [04:33] jbrokc_ has joined the channel [04:34] munichlinux has joined the channel [04:37] martin_sunset has joined the channel [04:42] tonymilne has joined the channel [04:43] elevenarms has joined the channel [04:50] mikeric has joined the channel [04:50] jtsnow has joined the channel [04:52] JakeyChan: Aria: [04:52] Aria: 'ey [04:53] JakeyChan: when request is coming, use client to query data and send data with response [04:54] jbrokc_ has joined the channel [04:55] JakeyChan: but I didn't release the client, [04:55] JakeyChan: so when request coming again, I don't need to re-connect mysql database again [04:55] JakeyChan: is it good ? [04:55] JakeyChan: this means connect mysql only once [04:55] caolanm has joined the channel [04:58] mike5w3c has joined the channel [04:58] BillyBreen has joined the channel [05:01] adrianmg has joined the channel [05:01] adrianmg has left the channel [05:05] joaquin_win_ has joined the channel [05:05] schwab has joined the channel [05:11] stonebranch has joined the channel [05:15] sreeix has joined the channel [05:19] devongovett has joined the channel [05:20] stantona has joined the channel [05:21] mikeric has joined the channel [05:22] mike5w3c has joined the channel [05:22] jtsnow has joined the channel [05:27] joshsmith has joined the channel [05:28] josh9 has left the channel [05:29] stantona has joined the channel [05:30] elevenarms has joined the channel [05:30] AAA_awright: What's the shortcut to set a breakpoint in source code? [05:31] tbranyen: debugger; [05:32] AAA_awright: I thought it was all caps, really? [05:33] tbranyen: nope [05:34] AAA_awright: tbranyen: That doesn't seem to be doing it, anything where you don't have to be attached? [05:34] AAA_awright: If I could attach I wouldn't be using it :p [05:34] langworthy has joined the channel [05:35] AAA_awright: Eh whatever, I can click Go after I run --debug-brk [05:36] jacobolus has joined the channel [05:37] ekryski has joined the channel [05:40] andrewnelder has joined the channel [05:42] codygray has joined the channel [05:43] sstephenson_ has joined the channel [05:44] sreeix has joined the channel [05:44] CarterL has joined the channel [05:46] idl3 has joined the channel [05:46] yumike has joined the channel [05:50] joaquin_win_ has joined the channel [05:56] dshaw_ has joined the channel [05:57] plutoniix has joined the channel [05:58] chadskidmore has joined the channel [06:00] jacobolus has joined the channel [06:01] lemonad has joined the channel [06:01] ditesh|cassini has joined the channel [06:02] localhost has joined the channel [06:04] xetorthio has joined the channel [06:06] Blorb has joined the channel [06:09] kejun has joined the channel [06:13] saurabh has joined the channel [06:16] Blorb has joined the channel [06:18] twolfson has joined the channel [06:21] kejun has joined the channel [06:23] cjheath has joined the channel [06:25] zemanel has joined the channel [06:25] smgt has joined the channel [06:29] innociv__ has joined the channel [06:32] HT has joined the channel [06:34] jlilly has joined the channel [06:35] cjheath_ has joined the channel [06:39] binaryjohn has joined the channel [06:39] Youdaman has joined the channel [06:42] jacobolu_ has joined the channel [06:44] buu has joined the channel [06:44] Youdaman has left the channel [06:44] beseku has joined the channel [06:45] idl3 has joined the channel [06:45] harthur has joined the channel [06:45] beseku has joined the channel [06:47] luke` has joined the channel [06:49] JakeyChan has joined the channel [06:50] braoru has joined the channel [06:54] Margle has joined the channel [06:54] davidascher has joined the channel [06:58] SamuraiJack has joined the channel [06:58] garrensmith: morning [06:59] tahu has joined the channel [07:01] andrewnelder has joined the channel [07:04] replore_ has joined the channel [07:04] replore has joined the channel [07:05] jbrokc_ has joined the channel [07:05] meso has joined the channel [07:08] ph^ has joined the channel [07:09] beseku has joined the channel [07:11] replore__ has joined the channel [07:11] replor___ has joined the channel [07:12] jlilly has left the channel [07:12] davidascher has joined the channel [07:14] ph^ has joined the channel [07:14] jbrokc_ has joined the channel [07:15] herbySk has joined the channel [07:17] simenbrekken has joined the channel [07:17] binaryjohn has joined the channel [07:19] luoluoluo has joined the channel [07:23] _dc has joined the channel [07:25] racar has joined the channel [07:25] felixge has joined the channel [07:25] felixge has joined the channel [07:26] TheCode has joined the channel [07:27] dust-- has joined the channel [07:28] kejun has joined the channel [07:31] WhiteHorse has joined the channel [07:37] bemson has joined the channel [07:37] bemson: I have some questions about publishing a module that has plugins? [07:38] bemson: I have the platform code, then packages that extend them, then a default package that _should_ be used with the platform [07:39] bemson: My library is called Flow, should I publish Flow-platform and Flow-core packages? [07:39] bemson: In other words, should I publish an npm module for each package that extends this platform? [07:40] robotmay has joined the channel [07:40] kejun has joined the channel [07:41] jldbasa has joined the channel [07:41] bemson: How do folks do it with jquery plugins do it? Does the module code just run and not export anything - since it augments the jquery namespace that's already loaded? [07:42] mytrile has joined the channel [07:44] chjj: whats jquery? [07:45] stonebranch has joined the channel [07:45] Marak: bemson: you should publish a new module for every plugin [07:46] Marak: bemson: unless there is no reason to [07:46] zilch_ has joined the channel [07:46] bemson: Marak: I'm beginning to understand that… [07:46] Marak: bemson: the best reason would be external deps. if its just all JS code with shared deps, there is little point [07:47] zilch_: I am getting the only specific ip address in my logs for the service I am running on EC2 [07:47] Marak: for instance, winston is a multi-transport logger [07:47] oleyb has joined the channel [07:47] Marak: but we have winston-mongodb module for the mongo transport [07:47] gripir has joined the channel [07:47] zilch_: The IP is 10.170.15.235 always [07:47] Marak: since it requires a mongodb driver [07:47] bemson: Marak: I'm confused about exporting things, like the namespace a plugin augments - would each plugin use exports to export the namespace it augments? [07:48] Marak: bemson: then you should use https://github.com/flatiron/broadway [07:48] bemson: Marak: thx, taking a look [07:48] Marak: super lightweight plugin system [07:49] gripir: hi, does anyone know how to install mongodb for windows? (npm install mongodb doesnt work till now) [07:49] Marak: i use this in a bunch of places [07:50] zilch_ has joined the channel [07:50] thalll has joined the channel [07:50] WhiteHorse has joined the channel [07:50] groom has joined the channel [07:51] jacobolus has joined the channel [07:51] cjheath has joined the channel [07:52] cjheath has joined the channel [07:53] jesusabdullah: Yeah, broadway ended up being like instantly useful [07:53] bemson: Has anyone used broadway to write a browser/node platform? My code is not node specific - in fact, I'm porting it to work with node [07:55] beevits has joined the channel [07:55] djcoin has joined the channel [07:56] simenbrekken has joined the channel [07:57] neshaug has joined the channel [07:57] emattias has joined the channel [07:57] jomoho has joined the channel [08:01] Morkel has joined the channel [08:01] meso has joined the channel [08:04] plutoniiix has joined the channel [08:04] shinuza has joined the channel [08:05] mange_ has joined the channel [08:06] hipsterslapfight has joined the channel [08:10] saurabh has joined the channel [08:11] dilvie has joined the channel [08:13] piscisaureus__ has joined the channel [08:13] mjr_ has joined the channel [08:14] zilch_: I am using the http-node-proxy and amazon load balancer, and using req.headers["x-forwarded-for"] to get the IP address [08:14] SuMarDi has joined the channel [08:14] zilch_: but the IP address is always 10.170.1.23 [08:15] zilch_: what could be the reason ? [08:15] zomg: amazon's load balancer possibly assigning an incorrect ip address to the header? [08:17] npa has joined the channel [08:17] mjr_: zilch_: can you dump all of req.headers and see if they put it somewhere else? [08:18] mehlah has joined the channel [08:20] mytrile has left the channel [08:20] tonymilne has joined the channel [08:22] zilch_: hey mjr_ longtime ! [08:22] p1d has joined the channel [08:22] zilch_: yup I guess that's all I can do [08:23] fangel has joined the channel [08:23] dust-- has joined the channel [08:23] jbrokc_ has joined the channel [08:24] woeye has joined the channel [08:26] zilch_ has joined the channel [08:26] broofa has joined the channel [08:28] jimt_ has joined the channel [08:28] mjr_: I'm beat, time to stop staring at the screen for a while. [08:29] mjr_: I just popped in to say how awesome node is. Has not let us down in production, even with some pretty huge growth. [08:29] tonymilne: Anyone use redis with express/connect for session storage? [08:29] tonymilne: I've set it up, but disconnected my redis server (while express is still listening) [08:29] tonymilne: Getting Error: Redis connection to 127.0.0.1:6379 failed - ECONNREFUSED, Connection refused - as you might expect, [08:30] tonymilne: anyone got a good solution to having redis auto-reconnect? [08:30] N0va` has joined the channel [08:30] mjr_: redis does auto-reconnect [08:30] mjr_: but not if your server is down [08:30] whotemp has joined the channel [08:30] tonymilne: yeah, i restart it. :) [08:30] tonymilne: is there a setting or is this default behaviour? [08:31] whotemp has left the channel [08:31] mjr_: it has a retry backoff, so if its down for awhile, the retry delay might grow [08:31] svnlto has joined the channel [08:31] mjr_: But node_redis should reconnect once the server comes back [08:31] mjr_: Im still tuning the reconnect behavior and timing. [08:31] braoru has joined the channel [08:32] mjr_: There are many knobs you can change if you like. The might not all be well documented. [08:32] tonymilne: Hmm, weird - seems to just crash my server and not reconnect. [08:32] tonymilne: to be fair, i haven't really looked at the docs enough [08:33] mjr_: Sorry I can't help you right now. It does try to reconnect though, as long, but it sounds like you've got some other problem. [08:33] mjr_: Good luck. [08:33] jbrokc_ has joined the channel [08:34] Neil_ has joined the channel [08:34] Epeli has joined the channel [08:35] Wizek has joined the channel [08:35] incon has joined the channel [08:35] andrewfff has joined the channel [08:36] sfoster has joined the channel [08:36] whitman has joined the channel [08:38] [AD]Turbo has joined the channel [08:38] neoesque has joined the channel [08:38] [AD]Turbo: hi there [08:39] arcanis has joined the channel [08:40] jbpros has joined the channel [08:43] kmox83 has joined the channel [08:45] shapeshed has joined the channel [08:45] mikeal has joined the channel [08:46] burningdog has joined the channel [08:48] ivanfi has joined the channel [08:49] adrake_ has joined the channel [08:51] grekko has joined the channel [08:51] grekko has joined the channel [08:54] jbrokc_ has joined the channel [08:56] Druid_ has joined the channel [08:56] copongcopong has left the channel [08:57] kuebk has joined the channel [08:57] qFox has joined the channel [09:00] mpavel has joined the channel [09:00] andrewfff has joined the channel [09:02] poincare101 has joined the channel [09:03] hipsterslapfight has joined the channel [09:03] poincare101: Does an application count as realtime if I'm just doing an AJAX request to the server to check for updates every few seconds? [09:04] pksunkara: poincare101: near realtime [09:04] zilch_ has joined the channel [09:04] jbrokc_ has joined the channel [09:05] CIA-109: libuv: 03Bert Belder 07v0.6 * rb4698d4 10/ src/win/fs.c : Strip trailing whitespace - http://git.io/4gqtNg [09:05] CIA-109: libuv: 03Bert Belder 07v0.6 * ra2f090f 10/ (include/uv.h src/win/getaddrinfo.c): Win: get rid of UV_EAINONAME, use UV_ENOENT instead - http://git.io/c-0bdA [09:05] vvo has joined the channel [09:06] nils_r has joined the channel [09:07] mendel_ has joined the channel [09:08] JakeyChan_ has joined the channel [09:08] pyrony has joined the channel [09:10] djcoin has joined the channel [09:10] tonymilne has joined the channel [09:10] mange_ has joined the channel [09:11] riven has joined the channel [09:11] riven has joined the channel [09:12] CIA-109: libuv: 03Bert Belder 07v0.6 * r01f64f6 10/ (include/uv.h src/win/getaddrinfo.c): Win: get rid of UV_EAINONAME, use UV_ENOENT instead - http://git.io/c38dJw [09:12] shinuza has joined the channel [09:13] ditesh|cassini has joined the channel [09:13] goibhniu has joined the channel [09:13] bergie has joined the channel [09:14] mange_ has joined the channel [09:15] interrupt has joined the channel [09:19] mpavel has left the channel [09:22] CIA-109: node: 03Author: Igor Zinkovsky 07v0.6 * r1f16a7b 10/ (5 files in 3 dirs): Enable long paths on windows - http://git.io/GBsVWw [09:22] CIA-109: node: 03Bert Belder 07v0.6 * r5b014e0 10/ src/node_file.cc : Fs: use strncmp instead of memcmp for comparing strings - http://git.io/8vKFNQ [09:22] CIA-109: node: 03Bert Belder 07v0.6 * ra056ef1 10/ (3 files in 2 dirs): Upgrade libuv to 01f64f6 - http://git.io/Ktf4Ng [09:23] markwubben has joined the channel [09:24] eldios has joined the channel [09:27] swaj has joined the channel [09:27] swaj has joined the channel [09:27] interrupt has joined the channel [09:28] OneOfOne has joined the channel [09:29] sreeix has joined the channel [09:30] Nopik has joined the channel [09:31] CIA-109: node: 03Bert Belder 07v0.6 * rb480cfa 10/ test/pummel/testcfg.py : Make the pummel test runner not crash on windows when a directory is locked - http://git.io/FDvYtg [09:31] zilch_ has joined the channel [09:32] robotmay has joined the channel [09:32] Margle has joined the channel [09:34] Nopik has left the channel [09:35] benlyng_ has joined the channel [09:38] beseku: Hey all. Am trying to use Express 2.5.1 with embeded coffeescript (eco) but the layout won't yield the body contents. Am I missing something obvious? [09:38] beseku: Always '500 ReferenceError: body is not defined' [09:39] darrylhebbes has joined the channel [09:39] adambeynon has joined the channel [09:41] booyaa: beseku: you might have to wait till later on today, us guys will be asleep [09:41] beseku: heh, its nearly the end of the day in Tokyo, I'll wait til morning :) [09:44] booyaa: yeah if you were lucky some west coasters might have been awake, but only the die hards ;) [09:45] mike5w3c has joined the channel [09:45] booyaa: beseku: don't forget post some sample code on the node google group too [09:45] booyaa: i find i get answers or pointers when i wake up [09:45] jomoho has joined the channel [09:47] cosmincx has joined the channel [09:47] beseku: I might pop it up on Stackoverflow, I get a better response rate there ... thought it might be more immediate here, but forgot timezones ;( [09:47] josh-k has joined the channel [09:48] eldios: booyaa.. lulz.. nice nick :) [09:49] shapeshed: shinuza pastie of the code? [09:50] hackband has joined the channel [09:51] shapeshed: sorry beseku - can you link up a code snippet or the Stack Overflow post? [09:52] mehlah has joined the channel [09:52] booyaa: eldios: :P [09:52] mehlah has joined the channel [09:53] mYkon has joined the channel [09:54] mYkon: can someone help me with the "require" function in nodejs on windows... ? [09:54] ryah: mYkon: sure [09:54] mYkon: ive installed nodejs on c:\nodejs [09:54] mYkon: also c:\nodejs\node_modules [09:55] mYkon: i try var express = require('express') [09:55] TomY has joined the channel [09:55] mYkon: that works fine [09:55] mYkon: var memStore = require('connect/middleware/session/memory'); [09:55] mYkon: error: cannt find module [09:56] mYkon: but ive got the module in C:\nodejs\node_modules\connect\lib\middleware\session [09:56] mYkon: NODE_PATH is set to c:\nodejs [09:56] ryah: mYkon: require doesn't work globally [09:56] mYkon: why it works for express module? [09:56] ryah: mYkon: oh - set NODE_PATH to C:\nodejs\node_modules [09:56] ryah: i think that should work [09:56] mYkon: ok [09:56] mYkon: mom [09:56] mYkon: no whait [09:57] mYkon: NODE_PATH has to point to the node.exe folder i think [09:57] mYkon: ? [09:57] mYkon: ive also tryed to host my project under c:\nodejs\projects\myproject [09:57] mmalecki: mYkon: no [09:57] Frippe_ has joined the channel [09:58] mYkon: so the loader should try to search in the parent folders [09:58] mYkon: ok i switch [09:58] robhawkes has joined the channel [09:58] mmalecki: ryah: hey, why don't you enable https://github.com/blog/964-all-of-the-hooks ? my bot is currently fucked. [09:59] ryah: mmalecki: ? [09:59] ryah: mmalecki: do i need to do something? [09:59] mmalecki: ryah: IRC hook can now print issues here [09:59] ryah: http://nodejs.org/dist/v0.6.3/node-v0.6.3-rc3.msi <-- please test [10:00] madhums has joined the channel [10:00] mYkon: when i switch NODE_PATH to c:\nodejs\node_modules i have to start node with c:\nodejs\node.exe (as i thought) and the error still exists [10:00] eldios: woo ryah o/ go go go! [10:00] mYkon: require('connect/middleware'); = error not found [10:00] mYkon: reuqire('connect');works fine [10:01] mYkon: i think the loader of nodejs has a problem with subfolders in windows [10:01] mmalecki: ryah: you have to enable it here http://developer.github.com/v3/repos/hooks/ [10:01] ryah: mYkon: don't reach inside packages like that - we don't really suppor tit [10:02] eldios: ryah installed and launched correctly in win7 x64 Virtualbox VM.. [10:02] eldios: still that's pretty aggressive (no questions about where to install? rly?) [10:02] ryah: eldios: no one has asked for that yet [10:03] ryah: mmalecki: i dont see how to turn it on [10:03] buttface has joined the channel [10:03] eldios: yeah ryah I'm not a windows user, so don't mind my request.. still as a sysadmin I'd say that I expected the usual PATH requests of any windows install after the first "forward".. [10:04] blup has joined the channel [10:05] saurabh has joined the channel [10:05] Marak: ryah: would you tweet http://nodejs-vs-ror.nodejitsu.com/ ? node.js is about to beat RoR as most popular lib on github... [10:05] Marak: not...that...we've...been...tracking it or anything [10:05] Marak: :-) [10:05] mmalecki: not at all [10:06] ryah: Marak: i prefer to allow it to happen naturally :) [10:07] Marak: a volcano eruption is a natural thing [10:07] Marak: when pressure has been increasing steadily over time [10:07] Marak: :-D [10:07] mmalecki: lol [10:08] mmalecki: ryah: to enable these issue hooks you have to send out a patch request for the IRC hook. http://developer.github.com/v3/repos/hooks/ [10:08] Marak: noobs should follow node anyway, reading the activity stream will make you smart [10:08] mmalecki: ryah: but I don't think we even have IRC hook enabled [10:09] booyaa: Marak: totes like epicmealtime smart [10:09] booyaa: bacon bacon bacon [10:10] secoif has joined the channel [10:10] aliem has joined the channel [10:11] CIA-109: node: 03Bert Belder 07v0.6 * r2335c4b 10/ ChangeLog : Strip trailing whitespace in changelog - http://git.io/B-oh9A [10:11] CIA-109: node: 03Bert Belder 07v0.6 * rfdcfbd6 10/ (ChangeLog doc/index.html src/node_version.h): Bump version to v0.6.3 - http://git.io/aSTfjA [10:12] mYkon: how can i pass a variable on the commandline to node? node app.js FOO=BAR [10:12] jacobolus has joined the channel [10:12] mYkon: i try to load the files with absolute paths on windows [10:13] mrtazz has left the channel [10:13] akihito_s has joined the channel [10:13] satyr has joined the channel [10:14] booyaa: mYkon: have you tried using process.env to nab the value via env variable? [10:14] booyaa: or use process.argv [10:14] booyaa: which i suspect is what you want [10:15] mYkon: process.argv is useful thx [10:16] booyaa: okay brah you gotta start googling this shit for yourself k? [10:16] booyaa: ;) [10:16] Margle has joined the channel [10:16] RushPL has joined the channel [10:17] mYkon: im on a windows machine, everything i google is working fine... ...on linux [10:17] mYkon: ... [10:17] mYkon: :) [10:18] booyaa: man had a minor freak out. tried going lightweight with my ipad. got textastic as my editor. stuck my repos on dropbox. [10:18] chilts: heh, I just 'watched' node to get the count higher :) [10:19] booyaa: tried to edit a readme.md then i couldn't get textastic to update on dropbox. turns out i must've create another directory with the same name on dropbox that wasn't git'd [10:20] booyaa: going to setup guard this weekend to watch for file changes in dropbox repos and commits them if there's a commit.md file [10:20] booyaa: obviously not committng the commit.md itself that would be to yo-dawg [10:21] stagas has joined the channel [10:22] louissmit has joined the channel [10:23] CIA-109: node: 03Bert Belder 07v0.6 * rb159c6d 10/ (4 files in 3 dirs): Bump version to v0.6.3 - http://git.io/XEyEXg [10:24] npa has left the channel [10:25] mYkon has left the channel [10:26] vguerra has joined the channel [10:26] JanLi has joined the channel [10:26] __doc__ has joined the channel [10:28] briancra_ has joined the channel [10:30] Emmanuel` has joined the channel [10:30] secoif has joined the channel [10:33] shinuza has joined the channel [10:37] sreeix has joined the channel [10:38] lzskiss has joined the channel [10:38] elliotdenk has joined the channel [10:38] alessioalex has joined the channel [10:38] TeddyMurray_ has joined the channel [10:39] TeddyMurray_: hey, im having trouble getting nodejs to work on windows [10:39] TeddyMurray_: i tried typing node in cmd prompt but its unavailable [10:39] alessioalex: TeddyMurray_: [10:39] alessioalex: I can help [10:39] TeddyMurray: awesome :D [10:39] alessioalex: so, here are the steps: [10:39] alessioalex: 1) Download the Node msi and install node [10:40] alessioalex: 2) Download npm's alpha 2 from here: http://npmjs.org/dist/ and extract everything into C:\Program Files\nodejs (I think, the node.js folder, same level with node.exe) [10:40] mYkon_ has joined the channel [10:40] alessioalex: 3) Go into that folder from the command line and type the following 2 commands: [10:40] alessioalex: set path=%PATH%;%CD% [10:40] alessioalex: setx path "%PATH%" [10:40] alessioalex: also I think you should probably have Git installed too [10:41] alessioalex: if you don't [10:41] ryah: that sounds like a lot of steps [10:41] alessioalex: after that, you have node and npm available on you cmdline everywhere [10:41] alessioalex: hey @ryah [10:41] elliotdenk: Hi, anyone using node on FreeBSD? Why is "node" on ports still V0.4.12 even if there is this updating note from 2011-03-18 that "www/node" and "www/node-devel" were merged into "www/node"? ("www/node-devel" is V0.6.2) [10:42] bogomips has joined the channel [10:42] alessioalex: is something else faster? (asking because I don't know) [10:42] alessioalex: TeddyMurray: resources -> http://www.hacksparrow.com/install-node-js-and-npm-on-windows.html [10:42] TeddyMurray: thanks alessioalex im following your instructions now ill let you know how it goes :) [10:42] alessioalex: TeddyMurray: I've installed on both Windows 7 and Windows XP just yesterday [10:42] alessioalex: 100% works perfectly [10:43] alessioalex: I actually got Express and Socket.io working [10:43] TeddyMurray: cool, what do you use nodejs for? [10:43] TeddyMurray: i want to write a browser chat room using websocket in html5 [10:43] alessioalex: you can use Node for a lot of things [10:43] alessioalex: TeddyMurray: http://blog.nodejs.org/2011/10/04/an-easy-way-to-build-scalable-network-programs/ [10:43] alessioalex: or: http://venturebeat.com/2011/08/16/linkedin-node/ [10:44] aesptux has joined the channel [10:44] syoyo_ has joined the channel [10:44] shinuza: TeddyMurray: for that you should take a look at socket.io [10:44] rskuja has joined the channel [10:45] alessioalex: TeddyMurray: shinuza is right, you should probably take a look at Socket.IO (websocket abstraction) and Express (web framework). In the future, use Redis for scaling [10:46] TeddyMurray: i feel a bit in over my head lol [10:46] Wizek has joined the channel [10:46] riven` has joined the channel [10:46] TeddyMurray: never worked with web sockets before, terminology is daunting [10:46] shinuza: TeddyMurray: Try socket.io first, play with it [10:46] mYkon_: @ryah: ModuleLoader on Windows: http://pastebin.com/9ChdZeis [10:47] shinuza: TeddyMurray: ever worked with a web framework like symphony, django, flask, etc...? [10:47] TeddyMurray: hehe never [10:47] TeddyMurray: ive heard of django though [10:47] shinuza: it would have been a great introduction because the basics are really the same [10:47] shinuza: but start with socket.io nonetheless [10:48] TeddyMurray: okay i will, the code sample on their site seems easy enough [10:48] shinuza: That's what I was thinking about [10:48] ph^ has joined the channel [10:49] shinuza: alessioalex: What Redis client do you use? [10:49] robi42 has joined the channel [10:49] riven has joined the channel [10:49] whitman: When using Readline to create a prompt, is there a way to clear the current line so that if I do console.log('whatever'); the readline prompt isn't on the same line? [10:49] alessioalex: shinuza: I think node-redis [10:49] alessioalex: the one that's used by Socket.IO and express-redis [10:50] jacobrask: I do some I/O in an object constructor, is it weird to instantiate a new object with MyObject(name, callback) and callback is called from without the constructor with callback(err, new this) ? [10:51] jacobrask: s/without/within/ [10:51] shinuza: whitman: I think you need to print a \r char [10:51] shinuza: alessioalex: /me looks at express-redis [10:52] shinuza: alessioalex: you meant connect-redis? [10:52] alessioalex: yes sorry [10:52] alessioalex: connect-redis, for session management [10:53] tonymilne: jacobrask you could do that or emit something when the object you constructed is ready for use. [10:53] satyr has joined the channel [10:54] akihito_s has joined the channel [10:54] tonymilne: jacobrask or buffer any actions made on the object - it all depends on how the object is going to be used. [10:55] markwubben has joined the channel [10:58] jacobrask: ok, I mostly use callbacks in the rest of my code rather than events, so for consistency a callback makes the most sense. it's also important that any actions happen in a known order [10:58] aaronmcadam has joined the channel [10:59] galaxywatcher has joined the channel [10:59] shinuza: for concistency I vote for callback(err, this) [10:59] piscisaureus__ has joined the channel [10:59] shinuza: (why "new this" btw?) [11:00] icewhite has joined the channel [11:00] jbpros has joined the channel [11:00] mange__ has joined the channel [11:02] mange__ has joined the channel [11:03] plutoniix has joined the channel [11:03] Andrejejew has joined the channel [11:03] jacobrask: shinuza: I'll probably do an instanceof check or something and do it conditionally, haven't thought it through completely yet, the callback is passed from a client application and I don't want them to be able to forget new or something silly like that [11:04] maushu|work has joined the channel [11:05] boltR has joined the channel [11:05] Andrejejew: hi, i have 4 server machines (192.168.0.5, 192.168.06, 192.168.0.7, 192.168.0.8) they are on local network, and i'd like to load-balance the request, what i mean: always connect to 192.168.0.5, and this will forward your request to one of the remaining 3 servers, and i'm thinking in websocket [11:07] Andrejejew: and yes of course, if i was forwarded to the 192.168.0.7 and my friend is on the 192.168.0.8, be able to send data to him [11:08] TeddyMurray has left the channel [11:09] ircdearia has joined the channel [11:09] fson_: can I somehow wait for an asynchronous operation to complete in node? [11:10] fson_: I need to call an async function (less compiler) in a build script that must be synchronous [11:11] RushPL has joined the channel [11:11] shinuza has joined the channel [11:11] zomg: fson_: don't think so but why does it need to be synchronous? [11:11] tonymilne: Andrejejew Nodejitsu's http-proxy will help. [11:13] fson_: zomg: I'm doing it inside require extension function, that doesn't have callback but returns the result [11:13] jbrokc_ has joined the channel [11:15] jldbasa has joined the channel [11:16] fson_: zomg: that is, I'm assigning the function to require.extensions['.less'], so it should be synchronous [11:17] zomg: fson_: yeah can't really help you there, but perhaps someone else has a solution [11:20] npa has joined the channel [11:24] jbrokc_ has joined the channel [11:26] npa has joined the channel [11:26] npa has left the channel [11:26] stagas has joined the channel [11:29] tonymilne has joined the channel [11:30] interrupt has joined the channel [11:31] harthur has joined the channel [11:34] jbrokc_ has joined the channel [11:35] CIA-109: node: 03Bert Belder 07master * rcffd0bb 10/ (171 files in 62 dirs): [11:35] CIA-109: node: Merge branch 'v0.6' [11:35] CIA-109: node: Conflicts: [11:35] CIA-109: node: Makefile [11:35] CIA-109: node: src/node_version.h [11:35] CIA-109: node: test/simple/test-http-response-no-headers.js (+17 more commits...) - http://git.io/jeBSOQ [11:35] bnoordhuis has joined the channel [11:36] k1ttty has joined the channel [11:37] tvw has joined the channel [11:38] lzskiss has joined the channel [11:38] joeytwiddle has joined the channel [11:39] secoif has joined the channel [11:44] CIA-109: node: 03Bert Belder 07v0.6 * r3a16064 10/ src/node_version.h : Now working on v0.6.4 - http://git.io/xWDbbg [11:45] jbrokc_ has joined the channel [11:47] CIA-109: libuv: 03Bert Belder 07master * r35fa2a6 10/ (6 files in 2 dirs): Merge branch 'v0.6' (+8 more commits...) - http://git.io/8opqyQ [11:52] xhr has joined the channel [11:53] dannyamey has joined the channel [11:53] zilch_ has joined the channel [11:54] tshpaper has joined the channel [11:54] thalll has joined the channel [11:57] jacobolus has joined the channel [11:58] flaleite has joined the channel [11:59] SoulRaven has joined the channel [11:59] tonymilne has left the channel [12:04] Draco_ has joined the channel [12:05] jbpros has joined the channel [12:06] stagas has joined the channel [12:07] tonymilne has joined the channel [12:08] nmtmason has joined the channel [12:09] Juan77 has joined the channel [12:09] strax: seriously [12:09] strax: what do you all use for XML parsing? [12:09] strax: I've searched for, what, three weeks and o3-xml is the best pick [12:09] strax: ... yet it doesn't support 0.6 [12:09] simenbrekken has joined the channel [12:12] neshaug has joined the channel [12:14] mehtryx has joined the channel [12:15] phiggins has joined the channel [12:17] Lingerance: strax - A bunch of things don't support 0.6 [12:17] strax: Lingerance: I know, I know [12:17] strax: just wondering if anyone knows of a parser that supports it? [12:17] Lingerance: Which is why a bunch of people are still on 0.4 [12:20] zilch_ has joined the channel [12:21] braoru has joined the channel [12:22] stantona has joined the channel [12:23] d0k has joined the channel [12:28] zilch_ has joined the channel [12:29] vvo has joined the channel [12:32] mehtryx has left the channel [12:32] gtramontina has joined the channel [12:33] Xano has joined the channel [12:34] garrensmith has joined the channel [12:37] saurabh has joined the channel [12:37] rev087 has joined the channel [12:40] fairwinds has joined the channel [12:41] xy has joined the channel [12:43] booyaa: strax: dom or sax? [12:43] lyte has joined the channel [12:43] lyte has joined the channel [12:44] booyaa: wow search is broken on npmjs.org o3 is missing for an "xml" search [12:45] booyaa: yet you type o3 and it appears [12:45] shinuza has joined the channel [12:46] torsd has joined the channel [12:47] phiggins has joined the channel [12:49] strax: booyaa: dom, preferably with xpath [12:50] rio{ has joined the channel [12:50] kimico has joined the channel [12:50] strax: i'm thinking that maybe I'll have to resort to forking it, updating package.json by hand(which they didn't commit to the repo) and referencing the git repo from my project's package.json [12:50] strax: :( boo [12:50] stantona has joined the channel [12:51] jbpros has joined the channel [12:51] paq has joined the channel [12:52] mange_ has joined the channel [12:54] plutoniiix has joined the channel [12:56] kriszyp3 has joined the channel [12:56] fff has joined the channel [12:57] saschagehlich has joined the channel [12:57] Wizek has joined the channel [12:58] fff has left the channel [12:59] neurodrone has joined the channel [12:59] zilch_: This is with respect to getting a original IP address to sit in your logs and everywhere else [13:00] zilch_: I was using the header x-forwared-for to get that IP address [13:00] knite has joined the channel [13:01] zilch_: before the request arriving at the actual node http server - the request passes through the Amazon Load Balance and then the http reverse proxy [13:01] zilch_: Earlier it was used to work .. that is I always got the IP address of the client [13:01] zilch_: now it is confirmed that amazon is not attaching an header [13:02] jacobolus has joined the channel [13:03] eduardoleon has joined the channel [13:04] eduardoleon: Hello. [13:04] mehtryx has joined the channel [13:05] xetorthio has joined the channel [13:05] ioNull has joined the channel [13:06] strax: hi [13:08] adrianmg has joined the channel [13:08] adrianmg has left the channel [13:09] zilch_: anybody has faced the situation [13:10] eduardoleon: Hello. I am trying to implement a batch server using node.js. I would like my batch programs to run concurrently whenever that is possible. However, since node.js does not do multithreading, currently my only alternative would be using child processes, which would be expensive if many simultaneous requests are made. Are there any plans to include multithreading support in node.js anytime soon? [13:11] poincare101 has joined the channel [13:11] mehtryx has left the channel [13:12] Locke23rus has joined the channel [13:14] enmand has joined the channel [13:14] Glenjamin: you could have a worker pool [13:14] Glenjamin: and distribute amongst the pool [13:16] janx has joined the channel [13:18] eduardoleon: Glenjamin: I read about the "cluster" module in the documentation. However, what I read there seems to imply each worker process is independent in the sense information cannot be shared between those processes once they have been created. [13:18] broofa has joined the channel [13:19] Glenjamin: 0.6 provides child_process.fork [13:19] Glenjamin: which gives you a bi-directional communication channel [13:20] JakeyChan has joined the channel [13:20] Glenjamin: i'm unsure if the cluster module does that by default [13:20] eduardoleon: Glenjamin: Thank you. I will read about it. [13:21] eduardoleon: Glenjamin: Oh, wonderful; child_process has standard I/O support. Thank you very much. [13:28] djcoin has joined the channel [13:29] whitman: ryah, you available for a quick question? [13:30] fmeyer has joined the channel [13:32] criswell has joined the channel [13:33] ph^_ has joined the channel [13:33] innociv_ has joined the channel [13:34] galaxywatcher has joined the channel [13:36] tiagobutzke has joined the channel [13:37] shapeshed has joined the channel [13:38] interrupt has joined the channel [13:39] paq has joined the channel [13:44] booyaa: cd ~/.pornstash [13:44] amigojapan has joined the channel [13:44] booyaa: damn wrong window [13:45] mange_ has joined the channel [13:46] stagas has joined the channel [13:47] shapeshed: is the plan to deprecate people installing npm themselves with node 0.6.3? [13:48] saurabh has joined the channel [13:48] mmalecki: can I disable npm installation when doing make install? [13:48] mmalecki: if so, how? [13:49] mmalecki: bnoordhuis: poke poke. TLS options. [13:49] N0va` has joined the channel [13:53] shapeshed: what do people feel about npm being shipped with core? [13:53] mmalecki: shapeshed: I don't like it, but if it's good for n00bs, then I guess it's ok [13:54] jbrokc_ has joined the channel [13:54] jankeromnes has left the channel [13:54] shapeshed: yeah I know other projects have shipped package managers with installers but not the core [13:55] shapeshed: seems it will place more burden on release cycles if there are bugs [13:55] zilch_ has joined the channel [13:55] mmalecki: shapeshed: yes. [13:56] mmalecki: shapeshed: there are few other reasons I don't like it [13:56] mmalecki: like, you don't need npm to use node. [13:57] malkomalko has joined the channel [13:57] shapeshed: other projects are actually moving core libraries out to packages out to allow faster releases and agility [13:57] shapeshed: the core maintainer just bumps versions [13:57] mmalecki: shapeshed: yeah [13:57] shapeshed: but they can be overridden by installing a newer version [13:58] shapeshed: if there is a bug or patch [13:58] lyte_ has joined the channel [13:58] mmalecki: also, I want to install npm myself. now I have to tell node to gtfo with installing it [13:58] mmalecki: and I have no real idea hwo. [13:58] mmalecki: *how [13:58] pksunkara: lol [13:59] AaronMT has joined the channel [13:59] shapeshed: sounds like a feature / issue that would make sense [13:59] shapeshed: although if you install npm after 0.6.3 wouldn't your system use your locally installed version? [14:00] remysharp: shapeshed: ha - you're in here, asking exactly what I was thinking of asking, probably for the exact same reasons :) [14:01] shapeshed: :-) [14:01] mmalecki: shapeshed: rt'ed, btw [14:02] remysharp: shapeshed: so is it that npm gets installed automatically then? [14:02] mmalecki: remysharp: yes >.< [14:03] shapeshed: remysharp: yes [14:04] shapeshed: there no option which I suggest should be added [14:04] c4milo has joined the channel [14:04] shapeshed: but it seems an odd call to me to ship it with the core at all [14:05] remysharp: shapeshed: thing is - or that I've found - npm needed to be reinstalled to latest when I upgraded node [14:05] shapeshed: that's true [14:05] remysharp: playing devil's advocate - it ensures the two are n'sync - bye bye by--- sorry, yeah, in sync. [14:06] rurufufuss has joined the channel [14:06] shapeshed: ha ha [14:07] mmalecki: context? [14:07] mmalecki: ah, lol [14:07] shapeshed: accept that there are issues between npm and node versions [14:07] shapeshed: my beef is more architectural [14:07] remysharp: if npm is to ruby what gems are -- seems to be okay - or certainly a core tool you'd want with node [14:08] shapeshed: I guess I'm more of the opinion that small tools that you pull together are better than one big monolithic one [14:08] mmalecki: but you still can use node without npm [14:08] mmalecki: shapeshed++ [14:08] catb0t: shapeshed now has 1 beer [14:09] remysharp: I agree - on both counts, but adding npm doesn't equate monolithic - or yet it doesn't! :) [14:09] remysharp: but yeah, is it a slippery slope? [14:10] shapeshed: for me yes [14:10] shapeshed: npm is a great project but work in progress, especially for windows support [14:10] shapeshed: it is going to mean a new node release is triggered for each npm release [14:11] shapeshed: this is slower all round [14:11] wereHamster: shapeshed: I agree with you, don't think adding npm to node was a good decision :-/ [14:11] mmalecki: remysharp: node had a very, very strong border between core and userland from it's beginnings [14:11] cfd has joined the channel [14:11] mmalecki: remysharp: now it all just disappeared because we want more people here. [14:11] mmalecki: I really don't want it to sound hipsterish, but if they can't install npm, they better stay out. [14:12] fly-away has joined the channel [14:12] shapeshed: I'm all for helping new users if that is the point [14:12] shapeshed: but no need to couple them so tightly in my view [14:12] mmalecki: I believe that it was the point. [14:13] booyaa: being able to install npm is indicative(sp) of what your npm overall experience is gonna be like [14:13] criswell has joined the channel [14:13] mmalecki: booyaa: yes. [14:13] booyaa: don't mean the competency of the user, i mean their dev tools. if you can't compile npm, stop, fix it. otherwise you ain't getting further. [14:13] booyaa: unless of cause npm starts to ship prebuilt mods [14:14] remysharp: I don't agree - compiling code manually is one thing - writing JS on the server is a very different thing [14:14] shapeshed: that's not great for a front end JS dev picking up node [14:14] colinclark has joined the channel [14:14] pyrony has joined the channel [14:14] remysharp: I still hear about devs that are "afraid" of the terminal - if you're going to hit install and perm issues just getting npm installed, you're going to be put off [14:15] shapeshed: yes [14:15] mmalecki: remysharp++ [14:15] catb0t: remysharp now has 1 beer [14:15] eldios: how can I get the binary representation of a buffer? [14:15] eldios: toString(2)? [14:15] remysharp: if you can lube that process up, and sling it down the dirty hole, then that's a good thing - that way the user sticks coding rather than server debugging [14:15] remysharp: ACTION I need to work on my metaphors [14:15] wereHamster: I have one dev who uses windows, and getting to install node and especially npm was a huge PITA in the past. So I think for him this move does have advantages. But I'd rather prefer node alone, wand install npm myself [14:15] booyaa: remysharp: yeah *shudders* [14:15] lyte has joined the channel [14:16] RushPL has joined the channel [14:17] jacobolus has joined the channel [14:22] sfoster has joined the channel [14:22] c4milo has joined the channel [14:22] jrogers has joined the channel [14:25] deedubs has joined the channel [14:26] mmalecki: yeah, so. https://github.com/isaacs/npm/issues/1785 [14:29] eduardoleon has joined the channel [14:31] remysharp: I've had that happen too - but before 0.6.3 [14:31] remysharp: when npm did a self update and fucked up - it would remove itself [14:31] remysharp: I tested tanepiper's command and got the same result [14:31] remysharp: I put npm back in by doing `make install` on the 0.6.3 directory - and it just put npm back [14:31] tanepiper: oh hey remy, long time no see [14:32] remysharp: tanepiper: the money I paid for Harry's invisibility cloak paid off then. [14:32] tanepiper: yea, make install wouldn't work for me ( bnoordhuis !) but nave works fine installing it [14:32] tanepiper: :p [14:33] mmalecki: bnoordhuis: pokey pokey again. TLS options. [14:33] remysharp: tanepiper: running `npm up -g` consistently nukes npm, but if I give it a module to update, it works fine: `sudo npm up -g inliner` [14:34] tanepiper: remysharp: i saw you updated the jQuery API Air app recently we worked on a few years ago, it was random to see it on my twitter feed :) [14:34] tanepiper: yea, same results here on macos anyway [14:34] remysharp: tanepiper: nope - I've not touched it in years [14:34] tanepiper: oh someone must have then :) [14:34] remysharp: :) [14:35] remysharp: yeah, I keep getting people asking me to Yuhada's one too (or however you spell that name!) [14:35] remysharp: I remind them that I don't have the keys (plus - massive change to the docs API == @rem steering clear) [14:36] tanepiper: yea, i haven't touched in a while - pretty much sticking to browsers these days, we have enough stuff to remember there :p At least I'm getting back to doing jQuery stuff :) Updating my JQUI password meter this week [14:36] shapeshed: I'm using n (http://bit.ly/f3kl58) to install 0.6.3 on Lion. both node and npm install fine [14:37] tanepiper: shapeshed: yea they install fine, but it's trying to do a update on all global modules that nukes it [14:37] shapeshed: ah right [14:38] remysharp: shapeshed: I like 'n' but it's a total bitch to google the url when you've forgotten it [14:40] JasonJS has joined the channel [14:41] shapeshed: yeah! I also FAIL at spelling / googling TJ Holowaychuk [14:41] shapeshed: he can't be just one man surely with the amount he pumps out [14:42] remysharp: I assumed one was TJ, the other Holoway, and the other Chuk - it figures on how they're able to produce so much [14:43] jbrokc_ has joined the channel [14:44] shapeshed: sounds like a 70's cop show [14:44] remysharp: ACTION groan, I wish I hadn't let the client make me do this project in PHP... [14:44] socketio\test\92 has joined the channel [14:44] tanepiper: yea, it's now my day job remysharp - i feel you pain :( [14:45] remysharp: I'm half considering re-writing it all for node - better for the long run (of my sanity) [14:45] Kami_ has joined the channel [14:45] nebiros: tanepiper: remysharp: +1, php is so ugly, but pay the bills :) [14:45] ultramagnus has left the channel [14:46] shapeshed: remysharp YES [14:46] hipsterslapfight: php *was* my day job, the boss doesn't know i'm using node yet :v [14:46] tanepiper: nebiros: yea - i got one node project out here, and I did pretty much nodejs for the year before it [14:46] hipsterslapfight: ahh, the joys of having such a simple title as 'senior web developer' [14:46] shapeshed: although node isn't right for EVERYTHING IN DA WHOLE UNIVERSE use cases [14:46] Poetro has joined the channel [14:46] Poetro has joined the channel [14:46] tanepiper: but i am interviewing for two jobs next week, a lot of JavaScript (although not necessarily nodejs) [14:47] deedubs: sénor web developer is more fun [14:47] nebiros: tanepiper: nice :) [14:47] remysharp: shapeshed: you're right, but PHP isn't right for pretty much everything [14:47] shapeshed: I'm hoping to get the go ahead to rewrite a Rails JSON API in Node [14:47] hipsterslapfight: i like it deedubs, i might have to change my business cards [14:47] remysharp: Yahoo folk keep telling me the site is all PHP [14:47] remysharp: but it's not said like a badge of honour [14:47] shapeshed: there's a lot of PHP at Yahoo I think [14:47] deedubs: hipsterslapfight: Yeah that was my title at the last company I worked for [14:48] remysharp: it's like they're amazed they pulled it off - worried to turn their back for a moment in case it turns in to some raging beast and eats all the developers for lunch [14:48] shapeshed: it is a problem for selling node though [14:48] shapeshed: there aren't that many devs about [14:49] shapeshed: and if the bus factor on the project is 1 then PHP/Ruby/Python are a better choice [14:49] nebiros: shapeshed: at least isn't java :P [14:49] remysharp: shapeshed: seriously, I struggled to get recommendations for PHP devs [14:49] hipsterslapfight: ugh java [14:49] hipsterslapfight: all my apps i write have to call a java backend [14:49] diogogmt has joined the channel [14:50] remysharp: ahh, java. all those setters, and getters, and spagetti - oo - lunch! [14:50] shapeshed: all busy or just crap? [14:50] hipsterslapfight: speaking of which, anybody in the UK looking for a well-paid senior java developer job? :v [14:50] bnoordhuis: mmalecki: reviewing... keep in mind that it can't land in v0.6 (but it can in master) [14:50] remysharp: crap [14:50] deedubs: an experienced dev should be able to pick up node pretty quickly. It's not rails and there isn't 100,000 lines of 'magic' behind the scenes of every node.js app [14:50] mmalecki: bnoordhuis: I'll allow it. [14:50] remysharp: shapeshed: your guys were the only people actually recommended. [14:50] bnoordhuis: hipsterslapfight: define 'well-paid' [14:50] bnoordhuis: mmalecki: well, i'm glad you do :) [14:50] mmalecki: bnoordhuis: ;) [14:50] nebiros: hipsterslapfight: I work like 2 years just with java, struts ans jsf all the day :'( [14:50] hipsterslapfight: bnoordhuis: i think it's around £40-50k, so not 'badly-paid' :v [14:51] hipsterslapfight: you may have to move to scotland though ... [14:51] sfoster_ has joined the channel [14:51] bnoordhuis: hipsterslapfight: i think i'll pass on this one then :) [14:51] hipsterslapfight: hah [14:51] mmalecki: I laught when I see someone working with PHP. [14:51] mmalecki: I shouldn't, probably [14:52] hipsterslapfight: i have to go back to php next week to start some maintenance on an older project [14:52] hipsterslapfight: not looking forward to it after spending the last 2 months in node-land [14:52] dannyamey has joined the channel [14:53] mmalecki: bnoordhuis: hey, you've been looking for some js & web conference, right? [14:53] mmalecki: bnoordhuis: http://summit.meetjs.pl/ [14:54] bnoordhuis: mmalecki: what is this "web" you speak of? is it what i see when i start lynx? [14:54] bnoordhuis: (actually, i never run lynx - i curl everything) [14:55] mmalecki: bnoordhuis: kids these days. I use nc only. [14:55] buttface has joined the channel [14:55] stinnes has joined the channel [14:55] bnoordhuis: well... i wrote patches for curl so i'm kind of biased [14:56] vvo has joined the channel [14:56] mmalecki: bnoordhuis: I forgive yoy [14:57] mmalecki: *you [14:57] benja-M- has joined the channel [14:57] mmalecki: bnoordhuis: anyway, this conference is super-cool. I know you want to speak there. [14:57] OneOfOne has joined the channel [14:57] OneOfOne has joined the channel [14:57] polymar has joined the channel [14:58] hipsterslapfight: i wonder if i can convince my boss to send me to it mmalecki - he just went to a conference in boston so i don't see why not - what's the weather like in poland in january? :v [14:58] mmalecki: hipsterslapfight: I think it snows [14:59] kkszysiu_ has joined the channel [14:59] hipsterslapfight: tempting [14:59] mmalecki: anyone from Poland here? does it snow here in January? [14:59] mmalecki: gah, let me google that. [15:00] mmalecki: (yeah, I know I live here) [15:00] seebees has joined the channel [15:00] atourino has joined the channel [15:01] mmalecki: hipsterslapfight: yeah, it snows. but it's really lovely! [15:01] felix___ has joined the channel [15:02] hipsterslapfight: mmalecki: it's okay, i like the snow! haven't had any here this year yet and i'm missing it [15:03] mmalecki: hipsterslapfight: you should be fine, then :). ping me if your boss lets you come here [15:04] mmalecki: also, I think I'll be speaking there. I've submitted my talk. [15:04] jbrokc_ has joined the channel [15:04] hipsterslapfight: i'll definitely ask him about it mmalecki - i'll let you know if it goes ahead [15:04] mmalecki: hipsterslapfight: great! :) [15:04] boogyman has joined the channel [15:05] mmalecki: bnoordhuis: btw, have you seen http://nodejs-vs-ror.nodejitsu.com/ ? [15:08] lyte has joined the channel [15:08] lyte has joined the channel [15:09] cosmincx has joined the channel [15:11] deedubs has joined the channel [15:12] deedubs: hmm attempting to install smartos in virtualbox seemingly kernel panic'd osx [15:12] uchuff has joined the channel [15:14] jbrokc_ has joined the channel [15:14] chjj has joined the channel [15:14] aoberoi has joined the channel [15:15] jimt has joined the channel [15:15] jbrokc__ has joined the channel [15:17] benja-M- has left the channel [15:17] harthur has joined the channel [15:17] codygray has joined the channel [15:18] luoluoluo has joined the channel [15:18] jstash has joined the channel [15:19] Andrejejew has joined the channel [15:19] hellp has joined the channel [15:19] shinuza has joined the channel [15:20] diogogmt has joined the channel [15:21] ShinyDarkness has joined the channel [15:21] Morkel has joined the channel [15:22] lyte has joined the channel [15:22] lyte has joined the channel [15:23] zilch_ has joined the channel [15:23] booyaa: mmalecki: dude i noticed that http://nodejs-vs-ror.nodejitsu.com/ doesn't render the watcher left text. just get black squares [15:23] booyaa: on my iphone 3gs [15:23] booyaa: do you want a screenshot? [15:24] jbrokc_ has joined the channel [15:24] mmalecki: booyaa: sure, please [15:25] booyaa: sure will twitter pic to ya [15:25] mmalecki: thanks [15:25] daneroo has joined the channel [15:25] daneroo has left the channel [15:25] booyaa: mmm i wonder my if cell network providers screwed up. looks like a partially loaded jquery (just enabled the console) [15:25] booyaa: how do you force reload on ios safari? [15:26] mmalecki: no idea, I don't have an iPhone [15:26] mmalecki: clear the cache maybe? [15:26] booyaa: i had some similar stuff happen on my laptop, it wouldn't load docs.nodejitsu.com. that too was tether on my iphone. yeah will do that. [15:27] calimaborges has joined the channel [15:28] mmalecki: booyaa: oh, I remember that [15:30] booyaa: just cleared everything still happening, sending screenshots. i wonder if o2 are doing some caching and it's broke [15:31] booyaa: k done, i also did a screenshot of the js console if it's any use... [15:32] hipsterslapfight: i know some mobile providers do caching on their end [15:32] andrew91831 has joined the channel [15:33] andrew91831: hey guys im a complete node beginner here [15:33] andrew91831: how do i install node ? [15:33] andrew91831: it cloned the node branch, but now it says i need a cxx compiler [15:33] ShinyDarkness has left the channel [15:33] ShinyDarkness has joined the channel [15:33] booyaa: what distro? [15:34] confoocious has joined the channel [15:34] confoocious has joined the channel [15:34] jbrokc_ has joined the channel [15:36] plutoniiix has joined the channel [15:37] MrNko has joined the channel [15:37] mmalecki: booyaa: hm, I see [15:38] d_low has joined the channel [15:38] d_low has joined the channel [15:38] booyaa: mmalecki: let me know if the js console will be useful got that too. only complains about jquery [15:38] buttface_ has joined the channel [15:38] mmalecki: booyaa: it's pretty weird. these numbers are rendered by jQuery, so it *should* work [15:39] interrupt has joined the channel [15:40] JakeyChan has joined the channel [15:40] ovaillancourt has joined the channel [15:40] booyaa: yeah it's fine on ffx. will try it at home with xcode's iphone simulator. if it renders there then i know it's with the network provider (inclined to think tis already) [15:41] booyaa: yup google seems to think o2 are tampering... [15:41] booyaa: http://stuartroebuck.blogspot.com/2010/07/mobile-proxy-cache-content-modification.html [15:42] jacobolus has joined the channel [15:42] booyaa: arseholes [15:42] mmalecki: booyaa: sue them [15:42] hipsterslapfight: wow that's pretty bad [15:42] gde33 has joined the channel [15:42] hipsterslapfight: looks like i'm not getting an iPhone on o2 this christmas like i was planning :v [15:43] pickels_ has joined the channel [15:43] jstash: bundling npm is big news! good move [15:44] tbranyen: jstash: absolutely [15:44] tbranyen: +1 [15:44] jbrokc_ has joined the channel [15:44] cosmincx has joined the channel [15:44] V1 has joined the channel [15:45] bnoordhuis: https://github.com/popular/watched <- yay, 11K+ watchers! [15:45] stantona has joined the channel [15:45] mmalecki: bnoordhuis: http://nodejs-vs-ror.nodejitsu.com/ [15:45] bnoordhuis: mmalecki: yes, that's where i saw it :) [15:45] mmalecki: bnoordhuis: please fasten your seatbelts. we're skyrocketing. [15:46] bnoordhuis: now to stymie bootstrap... [15:46] syoyo has joined the channel [15:47] mmalecki: bnoordhuis: they won't reach us. [15:47] sambao21 has joined the channel [15:48] stantona has joined the channel [15:49] dannyamey has joined the channel [15:49] tiagobutzke has joined the channel [15:49] _baton_ has joined the channel [15:49] amigojapan has joined the channel [15:51] AvianFlu has joined the channel [15:52] hkjels has joined the channel [15:53] jimmysparkle has joined the channel [15:53] bradleyg has joined the channel [15:54] CIA-109: node: 03Ben Noordhuis 07master * r1cf13bc 10/ common.gypi : [15:54] CIA-109: node: build: compile with -D__DARWIN_64_BIT_INO_T on OS X [15:54] CIA-109: node: Fixes a struct stat size mismatch on 64 bits machines that made Node crash with [15:54] CIA-109: node: a EXC_BAD_ACCESS on startup. [15:54] CIA-109: node: Fixes #2061 for gyp builds. Solution proposed by Paddy Byers. - http://git.io/5doHwQ [15:54] JakeyChan: express [15:54] JakeyChan: question [15:54] JakeyChan: Error: Can't set headers after they are sent. [15:54] andrew91831: am i able to learn node.js with little experience, i know my jquery well but thats about it [15:54] JakeyChan: why I have this issue when use send() method of response [15:54] jbrokc_ has joined the channel [15:54] saschagehlich has joined the channel [15:55] `3rdEden: Success! My 4 year has been introduced to VIM :) [15:55] `3rdEden: 4year old* [15:55] AvianFlu: WIN. [15:55] `3rdEden: next step in node [15:55] mmalecki: `3rdEden: !!! [15:56] satyr has joined the channel [15:56] `3rdEden: ;D [15:56] jperras has joined the channel [15:56] `3rdEden: You can never start to early with things like this [15:56] jstash: `3rdEden: hmm, should start my 3yo on that track [15:56] jstash: angry birds is like vim, right? [15:57] `3rdEden: yup [15:57] jstash: coo. [15:57] monokrome has joined the channel [15:57] tomlion has joined the channel [15:58] mendel_ has joined the channel [16:05] idl3 has joined the channel [16:07] wereHamster: `3rdEden: what does 'introduced' mean? [16:07] topaxi: explaining ALL keybindings and commands!!1 [16:07] topaxi: ;D [16:07] `3rdEden: yup [16:07] `3rdEden: he already knows how switch between normal and insert mode + he can close vim :D [16:08] lyte has joined the channel [16:08] lyte has joined the channel [16:09] saschagehlich has joined the channel [16:10] JakeyChan_ has joined the channel [16:10] braoru has joined the channel [16:10] wereHamster: not that difficult :P [16:10] seebees: by "switch" do you mean he can go from insert to normal or that he can go both ways? [16:13] CarterL has joined the channel [16:14] jbrokc_ has joined the channel [16:15] Epeli has joined the channel [16:17] [Sou|Raven] has joined the channel [16:17] [Sou|Raven] has joined the channel [16:18] eb4890 has joined the channel [16:18] [Sou|Raven] has joined the channel [16:19] [Sou|Raven] has joined the channel [16:20] tomlion has joined the channel [16:25] Aria has joined the channel [16:26] SoulRaven has joined the channel [16:26] SoulRaven has joined the channel [16:26] bradleymeck has joined the channel [16:26] SoulRaven has joined the channel [16:26] SoulRaven has joined the channel [16:26] Renegade001 has joined the channel [16:28] eldios: http://nodeguide.com/style.html#extending-prototypes [16:29] eldios: Do not extend the prototypes of any objects, especially native ones. There is a special place in hell waiting for you if you don't obey this rule. [16:29] TheJH has joined the channel [16:29] eldios: AHAHAH [16:29] eldios: felixge, can you please put numbers in front of rules in your marvellous guide? :) [16:29] eldios: so that I can refer to rule ### when LOL-ling with friends : [16:29] eldios: :P [16:29] felixge: eldios: I was thinking of updating it a little soonish [16:29] felixge: so yeah [16:29] felixge: :) [16:30] eldios: \o/ [16:30] felixge: would linkable headlines work as well? [16:30] felixge: In case I add / remove rules those would continue to work [16:30] eldios: works.. still going back to TOC when using section title was a bit misleading [16:31] subbyyy has joined the channel [16:31] eldios: I had to do a double-jump to copy the link here and go back where I was reading.. not a big problem, still a bit confusing @_@ [16:35] samsonjs has joined the channel [16:37] tjholowaychuk has joined the channel [16:38] eldios: felixge, also while reading the "beginner guide" I noticed you spoke about the usage of the whole exports, not saying anything about the "selective" require [16:38] eldios: say var inspect= require('util').inspect ; [16:38] eldios: as an example [16:38] felixge: I'll revisit everything [16:38] felixge: when updating [16:38] eldios: oh [16:38] felixge: to see if it makes sense [16:38] eldios: ok [16:38] felixge: ) [16:38] felixge: :) [16:38] adrianF has joined the channel [16:38] felixge: so yeah [16:38] felixge: noted [16:39] eldios: ok.. I'll stop bothering you :P [16:39] nerdfightBot has joined the channel [16:39] nerdfightBot: Only 105 watchers left (node.js has 11032 watchers and Ruby on Rails has 11137 watchers)! [16:40] nerdfightBot has left the channel [16:41] mmalecki: you guys want nerdfightBot here :D ? [16:43] jarek has joined the channel [16:43] jarek has joined the channel [16:47] SoulRaven has joined the channel [16:47] zemanel has joined the channel [16:48] necromancer: hey is it possible to use a github repo as a dependency in package.json? [16:48] bradleyg: i'm trying to detect what protocol i'm using (http/https) (in expressjs) req.url doesn't seem to return the full url but just the path. i've inspected req but could find no reference? [16:49] AvianFlu: necromancer, yes [16:49] AvianFlu: put the url in where you'd otherwise put the version [16:49] nerdfightBot has joined the channel [16:49] nerdfightBot: Only 103 watchers left (node.js has 11033 watchers and Ruby on Rails has 11136 watchers)! [16:49] nerdfightBot has left the channel [16:49] AvianFlu: bradleyg, I'm pretty sure there's like, req.protocol or something [16:49] necromancer: thanks AvianFlu [16:50] jtsnow has joined the channel [16:50] AvianFlu: necromancer, I'm not completely sure, though [16:52] joshsmith has joined the channel [16:52] necromancer: yeah it errored :O [16:52] ShinyDarkness has left the channel [16:55] ShinyDarkness has joined the channel [16:57] ShinyDarkness has left the channel [16:58] nerdfightBot has joined the channel [16:58] nerdfightBot: Only 100 watchers left (node.js has 11036 watchers and Ruby on Rails has 11136 watchers)! [16:58] reid has joined the channel [16:59] colinclark has joined the channel [17:02] nerdfightBot: Only 100 watchers left (node.js has 11036 watchers and Ruby on Rails has 11136 watchers)! [17:02] igl1 has joined the channel [17:03] reid has joined the channel [17:04] ovaillancourt has joined the channel [17:04] nerdfightBot has joined the channel [17:04] nerdfightBot: Only 99 watchers left (node.js has 11037 watchers and Ruby on Rails has 11136 watchers)! [17:05] nerdfightBot has left the channel [17:06] bradleyg: AvianFlu, me too, can't find anything related to protocol in the req... [17:06] AvianFlu: I'm probably just thinking of some guy's code [17:06] AvianFlu: or maybe it's in the url module [17:07] bradleyg: even with nodes native http module i can't seem to get it from the req [17:07] tjholowaychuk: bradleyg in 3x we have req.secure, but 2x is just regular node stuff [17:07] tjholowaychuk: which doesn't really give you anything too nice [17:07] tjholowaychuk: req.connection.encrypted i believe [17:09] shapeshed has joined the channel [17:10] caolanm has joined the channel [17:10] xetorthio has joined the channel [17:12] bradleyg: tjholowaychuk, cheers, i'll just check if that object exists [17:13] mmalecki: bnoordhuis: have you reviewed? [17:13] jbrokc_ has joined the channel [17:14] Charuru has joined the channel [17:14] TooTallNate has joined the channel [17:16] shinuza has joined the channel [17:16] pcaulagi has joined the channel [17:17] cgray has joined the channel [17:17] kmwallio has joined the channel [17:18] jbrokc_ has joined the channel [17:18] pcaulagi: I want to read documents from couchdb. Which library/project should I use? There seem to be several projects for connecting to couch from node [17:19] k1ttty has joined the channel [17:20] saesh has joined the channel [17:23] langworthy has joined the channel [17:23] jbrokc__ has joined the channel [17:25] stephank has joined the channel [17:26] slaskis has joined the channel [17:26] chjj: TheJH: shame on you [17:26] diogogmt has joined the channel [17:26] chjj: thejh started watching joyent/node November 25, 2011 [17:26] kmwallio has left the channel [17:28] TheJH: chjj, :D [17:29] mandric has joined the channel [17:29] ekryski has joined the channel [17:29] chjj: on the other hand, were less than 100 away from passing rails [17:29] ekryski has joined the channel [17:29] davidascher has joined the channel [17:30] nerdfightBot has joined the channel [17:30] slaskis has joined the channel [17:30] TheJH: pcaulagi, just read or also write? [17:30] pcaulagi: TheJH: read and write [17:30] pcaulagi: TheJH: read would be the first step [17:31] TheJH: pcaulagi, might concurent modifications to the same document happen? [17:31] pcaulagi: TheJH: no, mostly write once [17:32] TheJH: pcaulagi, no opportunity for shamelessly advertising for my very small couchdb helper libraries cool retry feature with modification replay :( [17:33] TheJH: pcaulagi, well, you might want to have a look at cradle. it works for just writing and creating documents, but don't try to do concurrent writes with it :/ [17:33] pcaulagi: TheJH: what would that be? [17:33] TheJH: pcaulagi, mine is called "relax": https://github.com/thejh/node-relax [17:34] CiRlE has joined the channel [17:34] TheJH: pcaulagi, when you do concurrent writes with cradle, it behaves like a bulldozer. "huh, what, someone modified the document? yup, acknowledge the fact to the DB and overwrite all changes that happened in the meantime" [17:35] TheJH: WROOOM, BULLDOZED! [17:35] pixel13 has joined the channel [17:35] pixel13 has left the channel [17:35] showcase has joined the channel [17:36] nerdfightBot: Only 93 watchers left (node.js has 11045 watchers and Ruby on Rails has 11138 watchers)! [17:36] pcaulagi: TheJH: thanks, I am looking at relax now. [17:37] pcaulagi: TheJH: why did you say cradle? [17:37] TheJH: pcaulagi, because it's the most popular couchdb client lib for node [17:37] fmeyer has joined the channel [17:38] pcaulagi: TheJH: ah, ok [17:38] mmalecki: which doesn't mean the best one [17:38] mmalecki: I guess as a maintainer I should do something about it [17:38] TheJH: mmalecki, huh, what? [17:38] flexd has joined the channel [17:39] insin has joined the channel [17:39] mmalecki: TheJH: that array thing [17:39] Roman__ has joined the channel [17:40] mmalecki: TheJH: you have that screenshot around? [17:40] Renegade001 has joined the channel [17:41] patcito has joined the channel [17:41] goibhniu has left the channel [17:41] TheJH: mmalecki, the cradle one? one sec, grepping chatlogs... [17:42] Roman__: Hello guys! I've started with nodejs yesterday and there's something I couldn't find in the docs or on google. I have: [17:42] Roman__: var area = 0; [17:42] Roman__: socket.on('areachange', function(data) { [17:42] TheJH: http://i.imgur.com/3drwp.png [17:42] Roman__: removeSocketFromArea.bind(this)(); [17:42] Roman__: }); [17:42] Roman__: ... and a function in global scope .... [17:42] Roman__: function removeSocketFromArea() { [17:42] Roman__: if (area != 0) { [17:42] Roman__: ... [17:42] TheJH: Roman__, stop [17:42] Roman__: } [17:42] Roman__: } [17:42] Roman__: Since V8 provides bind(), why do I get a "area is not defined" in the rebound function? [17:42] koo3 has joined the channel [17:43] TheJH: Roman__, because "this" inside of the callback is nothing usable [17:43] TheJH: Roman__, it's the global context [17:44] Roman__: hmm oO ah [17:44] Roman__: how could I solve my problem then [17:44] TheJH: Roman__, errm, wait. your snippet just doesn't make sense to me. [17:44] nerdfightBot: Only 91 watchers left (node.js has 11049 watchers and Ruby on Rails has 11140 watchers)! [17:44] jimmysparkle has left the channel [17:45] pcaulagi has joined the channel [17:45] Roman__: why? I have an anonymous function which provides data. I want to execute the "removeSocketFromArea" in the scope I have within this anonymous function. Is that wrong? [17:45] maushu has joined the channel [17:46] torsd has joined the channel [17:46] ryanfitz has joined the channel [17:46] Renegade001 has joined the channel [17:47] Roman__: "area" is within an unreachable scope for "removeSocketFromArea" if it isn't bound. I could reference all the vars I use as parameters, but I didn't really want to do that... The goal is to have access with this function to these "inner" variables, like "area". [17:47] Swizec has joined the channel [17:49] shapeshed has joined the channel [17:49] Roman__: ACTION silence [17:50] Roman__: Does silence mean it's completely weird what I want to do, or that more information has to be provided? oO [17:50] Aria: I'm having trouble reading your post, for one. Use a gist, please! [17:50] Roman__: gist..? uhm.. ok I'll google it [17:51] Aria: http://gist.github.com/ [17:51] Aria: Rule of thumb: Anything over 2 lines in IRC, paste in a pastebin like that. Gist is one of the best ones. [17:51] subbyyy has joined the channel [17:52] ecin has joined the channel [17:52] nerdfightBot: Only 90 watchers left (node.js has 11050 watchers and Ruby on Rails has 11140 watchers)! [17:52] Roman__: ok [17:54] parshap has joined the channel [17:54] ecin_ has joined the channel [17:54] Roman__: https://gist.github.com/1394072 [17:57] seebees: Roman__ is area at line 16 the same as var area = 0 at line 6? [17:57] Roman__: help definitely appreciated... (may also be a reference where I should look, since I wasn't successful with google...) [17:57] Roman__: yes [17:57] Roman__: should be [17:57] seebees: why not: [17:57] Roman__: that's why I bind [17:57] Roman__: why what not? [17:57] Roman__: why it's not bound? I don't know [17:57] seebees: removeSocketFromArea.call(this, data)? [17:57] Roman__: that works? [17:57] Roman__: ok I'll try [17:58] seebees: Roman__ it would pass data to removeSocketFromArea and run in the socket context. [17:58] hipsterslapfight has joined the channel [17:58] Roman__: that's just what I need. Let me try :) [18:01] Aredridel has joined the channel [18:02] Roman__: hmm ok that's weird oO I need 10 mins to debug. I'll come back to you. [18:03] hkjels has joined the channel [18:04] arcanis has joined the channel [18:04] stephank has joined the channel [18:04] jbpros has joined the channel [18:06] kishoreyekkanti has joined the channel [18:06] kitt has joined the channel [18:07] RedSofa has joined the channel [18:07] Roman__: updated it to https://gist.github.com/1394072, it still is undefined :S [18:08] seebees: Roman__ area is not in scope for removeSocketFromArea() [18:08] furkan has joined the channel [18:10] seebees: Roman__: https://gist.github.com/1394102 [18:10] Roman__: but that's what I wanted to achieve [18:10] jpdery has joined the channel [18:10] RedSofa: t [18:10] Roman__: data? data isn't needed [18:11] Roman__: "this" should be enough, since "area" is not part of "data" [18:12] Roman__: What I wanted is that the function could directly access area. The correction you made is adding a parameter. [18:12] Roman__: Which definitely would work this way, but it's not what I wanted ^^ [18:13] fmeyer has joined the channel [18:13] ShinyDarkness has joined the channel [18:13] seebees: Roman__ ok, then you need to put remove.. inside [18:14] Roman__: that's what I tried. By binding. Since rebinding would put the function "inside" the current scope [18:14] Roman__: but that didn't work... [18:14] mmalecki: bnoordhuis: *pokey* *pokey*. [18:14] seebees: https://gist.github.com/1394102 [18:15] Roman__: ah. hmm [18:15] Roman__: this. area is now a copy of area, since it's an integer, right? [18:15] Roman__: I'd have to have a reference.. [18:15] seebees: yes [18:15] Roman__: but the idea is not bad. [18:15] Margle has joined the channel [18:16] seebees: or you could do something crazy... [18:16] nerdfightBot: Only 89 watchers left (node.js has 11053 watchers and Ruby on Rails has 11142 watchers)! [18:16] Roman__: hmm however I guess "area" as parameter is still better than "this.area = area" [18:17] seebees: Roman__ if you need it back then just return it... [18:17] jocafa has joined the channel [18:17] pksunkara: Roman__: Did you start watching github.com/joyent/node [18:18] Roman__: nah what's that [18:18] seebees: Roman__ just do me a favor and go to github and watch it. [18:18] galaxywatcher has joined the channel [18:18] hydrozen has joined the channel [18:18] Roman__: Oo [18:19] Roman__: There's no "watch" button aroun [18:19] Roman__: ^^ [18:19] pksunkara: did you login to github? [18:19] seebees: you need to create a github account [18:19] Roman__: oh! [18:19] Roman__: found it [18:19] Roman__: well then. parameters I guess is the summary [18:20] Roman__: thanks a million times for your help seebees :) +1 for you. [18:20] nerdfightBot: Only 87 watchers left (node.js has 11055 watchers and Ruby on Rails has 11142 watchers)! [18:20] Andrejejew has joined the channel [18:20] seebees: np. [18:20] seebees: 87 left... [18:20] yumike has joined the channel [18:21] mmalecki: does Ruby on Rails have a channel :D ? [18:21] devongovett has joined the channel [18:21] pksunkara: #rails [18:21] mmalecki: technically, I could put nerdfightBot there :D [18:22] seebees: what does it say when node has more watchers? [18:22] seebees: you need to future proof neardfightBot [18:22] SamuraiJack has joined the channel [18:22] mmalecki: seebees: https://gist.github.com/1393940 [18:23] pksunkara: mmalecki: don't do it [18:23] mmalecki: pksunkara: I won't [18:24] pksunkara: Do it after we win [18:24] kishoreyekkanti has joined the channel [18:25] mmalecki: lol [18:25] robotmay has joined the channel [18:25] AvianFlu: if you put that bot in rails, it will probably provoke a follower boost for rails [18:25] AvianFlu: so, counterproductive [18:25] mmalecki: AvianFlu++ [18:25] mmalecki: strategic thinking! [18:25] seebees: but what if we have a war and everyone came? [18:26] blup has joined the channel [18:26] richardr1 has joined the channel [18:26] pksunkara: that's what I meant minus the explanation [18:31] reid has joined the channel [18:32] fairwinds has joined the channel [18:32] aoberoi has joined the channel [18:32] knite has joined the channel [18:33] jbrokc_ has joined the channel [18:34] plutoniiix has joined the channel [18:36] nerdfightBot: Only 84 watchers left (node.js has 11058 watchers and Ruby on Rails has 11142 watchers)! [18:36] EvRide has joined the channel [18:37] piscisaureus__ has joined the channel [18:37] whitman has joined the channel [18:39] langworthy has joined the channel [18:40] nerdfightBot: Only 82 watchers left (node.js has 11061 watchers and Ruby on Rails has 11143 watchers)! [18:40] cgray has joined the channel [18:42] TheFuzz__ has joined the channel [18:42] Draco_ has joined the channel [18:42] brianseeders has joined the channel [18:43] dmwuw has joined the channel [18:43] Roman__ has left the channel [18:43] jbrokc__ has joined the channel [18:44] stagas has joined the channel [18:44] nerdfightBot: Only 80 watchers left (node.js has 11064 watchers and Ruby on Rails has 11144 watchers)! [18:44] jonaslund has joined the channel [18:44] martin_sunset has joined the channel [18:45] pksunkara: !starttweets [18:45] mmalecki: pksunkara: not this channel [18:45] pksunkara: oops [18:45] jtrudeau has joined the channel [18:46] adrianmg1 has joined the channel [18:48] nerdfightBot: Only 74 watchers left (node.js has 11069 watchers and Ruby on Rails has 11143 watchers)! [18:49] jgallen23 has joined the channel [18:49] MatthewS has joined the channel [18:49] mmalecki: w00t! [18:50] Xano has joined the channel [18:52] nerdfightBot: Only 71 watchers left (node.js has 11072 watchers and Ruby on Rails has 11143 watchers)! [18:53] nerdfightBot has joined the channel [18:53] nerdfightBot: Only 70 watchers left (node.js has 11072 watchers and Ruby on Rails has 11142 watchers)! [18:54] mmalecki: Andrejejew: lol [18:54] mmalecki: Andrejejew: you need to be on admin list to do that [18:54] mmalecki: Andrejejew: like that: [18:55] nerdfightBot has joined the channel [18:55] nerdfightBot: Only 69 watchers left (node.js has 11072 watchers and Ruby on Rails has 11141 watchers)! [18:55] mmalecki: forever will bring him up. [18:55] Dulak has joined the channel [18:55] cgray has joined the channel [18:57] Raynos: Hey guys :) [18:57] Raynos: Does anyone have any recommended techniques for unit testing routing that requires a session / logged in user? [18:58] TheJH: Raynos, uh, async test frameworks? [18:58] Raynos: can you point me to a test framework that handles session faking for me? [18:58] TheJH: Raynos, ah, no [18:58] dhasenan has joined the channel [18:59] cgray has joined the channel [18:59] Raynos: Currenlty up just using request to test the HTTP [18:59] Aredridel: zombie is good for this stuff [19:00] Raynos: anyone know how request handles cookies? [19:00] mmalecki: Raynos: someone wrote a cookie store for it, I think [19:01] mmalecki: Raynos: check out latest commits [19:01] Raynos: Theres a cookie store build into request [19:01] Raynos: Ill see whether logging in makes the problem magically go away [19:01] jellosea_ has joined the channel [19:03] adrianmg1 has left the channel [19:06] vkandy: guys whats the best way to kill master? I am running express with 0.6.2 and multiple workers are spawned. should i keep track of the master pid? [19:06] wereHamster: I'll contribute one watcher as well! [19:06] pksunkara: *ALL* Start watching github.com/joyent/node [19:06] nerdfightBot: Only 68 watchers left (node.js has 11076 watchers and Ruby on Rails has 11144 watchers)! [19:07] CarterL has joined the channel [19:08] jhurliman has joined the channel [19:09] fmeyer has joined the channel [19:10] andrewfff has joined the channel [19:10] EvanDotPro has joined the channel [19:10] nerdfightBot: Only 66 watchers left (node.js has 11078 watchers and Ruby on Rails has 11144 watchers)! [19:10] rope has joined the channel [19:12] bergie has joined the channel [19:14] CiRlE has joined the channel [19:14] EvanDotPro: i had an npm user registered with uppercase characters... reset the account, and it only let me register the name with lowercase now, but it says the lowercase version of my name doesn't have access to a package i have published in npm [19:14] nerdfightBot: Only 62 watchers left (node.js has 11082 watchers and Ruby on Rails has 11144 watchers)! [19:15] Aria: Doh! File an issue with isaacs, EvanDotPro [19:17] MatthewS has joined the channel [19:17] tlynn has joined the channel [19:18] bjy has joined the channel [19:18] idl3_ has joined the channel [19:18] Marko_ has joined the channel [19:18] nerdfightBot: Only 60 watchers left (node.js has 11084 watchers and Ruby on Rails has 11144 watchers)! [19:19] redsofa: Add one more watcher... I love node.js :-) [19:19] Dulak: you have to add yourself, go to github and click the watch button on the node repo [19:19] diogogmt has joined the channel [19:20] shapeshed has joined the channel [19:22] nerdfightBot: Only 58 watchers left (node.js has 11086 watchers and Ruby on Rails has 11144 watchers)! [19:23] dubenstein has joined the channel [19:24] saschagehlich has joined the channel [19:24] jbrokc_ has joined the channel [19:24] baudehlo: tjholowaychuk: has anyone done connection limiting in cluster? [19:24] fbartho has joined the channel [19:25] tjholowaychuk: i believe felix has with transloadit [19:25] tomyan has joined the channel [19:26] baudehlo: ACTION should look into how the stats plugin tracks connection numbers [19:26] nerdfightBot: Only 54 watchers left (node.js has 11090 watchers and Ruby on Rails has 11144 watchers)! [19:27] mmalecki: 54 fucking watchers! told ya we'll skyrocket today! [19:27] cgray has joined the channel [19:27] mmalecki: and bnoordhuis still hasn't reviewed my pull request, btw [19:27] mmalecki: bnoordhuis: *poke*. [19:27] brianseeders has joined the channel [19:27] mmalecki: he's dead, probably [19:29] seebees has joined the channel [19:29] tregalman has joined the channel [19:30] nerdfightBot: Only 51 watchers left (node.js has 11093 watchers and Ruby on Rails has 11144 watchers)! [19:32] tomyan has joined the channel [19:33] yumike has joined the channel [19:33] alejandromg has joined the channel [19:33] rskuja: :) thats gonna be nice moment [19:34] jbrokc__ has joined the channel [19:34] nerdfightBot: Only 49 watchers left (node.js has 11095 watchers and Ruby on Rails has 11144 watchers)! [19:35] rskuja: just call your mom and tell what to do :D [19:36] Renegade001 has joined the channel [19:37] jhurliman has joined the channel [19:37] EvanDotPro: heh, that was surprisingly difficult to fully explain: https://github.com/isaacs/npm/issues/1787 [19:38] nerdfightBot: Only 47 watchers left (node.js has 11097 watchers and Ruby on Rails has 11144 watchers)! [19:40] theCole has joined the channel [19:40] tomyan has joined the channel [19:42] nerdfightBot: Only 46 watchers left (node.js has 11099 watchers and Ruby on Rails has 11145 watchers)! [19:44] marcello3d has joined the channel [19:44] jbrokc_ has joined the channel [19:46] bengrue has joined the channel [19:46] nerdfightBot: Only 45 watchers left (node.js has 11100 watchers and Ruby on Rails has 11145 watchers)! [19:47] Dulak: somebody should make that thing time aware, it's getting a bit annoying [19:48] mehlah has joined the channel [19:48] herbySk has joined the channel [19:49] mmalecki: Dulak: every 4 minutes, I can change it if you want [19:49] mmalecki: Dulak: 8 minutes is OK? [19:49] pksunkara: Dulak: And it will only emit if there [19:49] lemonad has joined the channel [19:50] pksunkara: is a change to the difference [19:50] Dulak: Probably, it's just a liittle annoying to see the bot talking more than the people. It's a slow day though so it's a non-issue [19:50] nerdfightBot has joined the channel [19:50] nerdfightBot: Only 43 watchers left (node.js has 11103 watchers and Ruby on Rails has 11146 watchers)! [19:50] Raynos: @mmalecki I suggest emit at 40, 30, 20, 10, 5, 4,3,2,1, WIN [19:52] mmalecki: Raynos: that's a bit of a hassle. I'll just bump it to 6 minutes [19:53] joeytwiddle has joined the channel [19:54] nerdfightBot: Only 39 watchers left (node.js has 11107 watchers and Ruby on Rails has 11146 watchers)! [19:54] tlynn has joined the channel [19:54] jbrokc__ has joined the channel [19:54] jacobolus has joined the channel [19:55] rauchggg: mmalecki it's just an `if` [19:55] rauchggg: :P [19:56] joeytwiddle has joined the channel [19:56] mmalecki: rauchggg: haha, I know :P [19:57] mmalecki: rauchggg: I don't think it makes any sense tho [19:58] nerdfightBot: Only 35 watchers left (node.js has 11112 watchers and Ruby on Rails has 11147 watchers)! [19:58] bradleymeck has joined the channel [19:59] bradleymeck: does anyone have a good example of using SNI to proxy to a server? [20:00] mmalecki: rauchggg: also, we'll surpass ror before I finish coding that :D [20:01] Aria has joined the channel [20:02] nerdfightBot: Only 31 watchers left (node.js has 11115 watchers and Ruby on Rails has 11146 watchers)! [20:02] boltR has joined the channel [20:02] Marko_ has joined the channel [20:06] nerdfightBot: Only 25 watchers left (node.js has 11122 watchers and Ruby on Rails has 11147 watchers)! [20:07] st_luke has joined the channel [20:07] ovaillancourt has joined the channel [20:07] TheJH has joined the channel [20:08] jarek has joined the channel [20:09] johnnywengluu: great article http://pragprog.com/magazines/2011-08/decouple-your-apps-with-eventdriven-coffeescript [20:10] nerdfightBot: Only 22 watchers left (node.js has 11128 watchers and Ruby on Rails has 11150 watchers)! [20:10] alejandromg: Oh Damm it. I'm going to miss the moment when node.js beats ror :( [20:14] nerdfightBot: WARNING! We moved back to 22 watchers. (node.js: 11130, ror: 11152 [20:15] Renegade001 has joined the channel [20:17] mraleph has joined the channel [20:18] nerdfightBot: Only 20 watchers left (node.js has 11132 watchers and Ruby on Rails has 11152 watchers)! [20:19] Brozilla has joined the channel [20:20] jomoho has joined the channel [20:21] nerdfightBot has joined the channel [20:21] nerdfightBot: Only NaN watchers left (node.js has undefined watchers and Ruby on Rails has undefined watchers)! [20:21] ovaillancourt: oh [20:22] ovaillancourt: :( [20:22] jtsnow has joined the channel [20:23] nerdfightBot has joined the channel [20:23] nerdfightBot: Only 16 watchers left (node.js has 11137 watchers and Ruby on Rails has 11153 watchers)! [20:24] jellosea: i have a node 'script' that starts a server when i run it, but i also want to be able to export that object by using require. problem is that when i require it in another file, it automatically executes the server start function that i have at the end of the file. how do i stop this? [20:24] jbrokc_ has joined the channel [20:24] AvianFlu: jellosea, put the start stuff in a function that you export [20:24] TooTallNate: jellosea: you can test that the script is the "main" script [20:24] AvianFlu: instead of just in the outermost scope [20:25] TooTallNate: jellosea: check `require.main` [20:25] jellosea: AvianFlu: how do i get it to run that start stuff when i just do node myServer.js [20:26] seebees: but that will only work if you are watching github.com/joyent/node [20:26] AvianFlu: jellosea, you want to be able to run it AND require it? then you need `require.main` like TooTallNate says [20:26] TooTallNate: jellosea: if (require.main === module) { ... start server... } [20:26] AvianFlu: ^^ [20:26] jellosea: ah, i see [20:26] jellosea: thanks :D [20:26] TooTallNate: np [20:27] avih_ has joined the channel [20:27] nerdfightBot: Only 14 watchers left (node.js has 11139 watchers and Ruby on Rails has 11153 watchers)! [20:27] jomoho2 has joined the channel [20:29] shinuza has joined the channel [20:29] idl3 has joined the channel [20:31] jimmy___ has joined the channel [20:31] jimmy___ has left the channel [20:34] jbrokc__ has joined the channel [20:34] alnewkirk has joined the channel [20:35] sstephenson_ has joined the channel [20:35] nerdfightBot: Only 12 watchers left (node.js has 11141 watchers and Ruby on Rails has 11153 watchers)! [20:35] Renegade001 has joined the channel [20:37] motill has joined the channel [20:39] chunhao_: what happens if an infinite loop is run in the vm module? [20:39] ovaillancourt: Do the node static file serving modules offer good performance or I should stick with good ol' lighttpd nginx and co? [20:39] wereHamster: chunhao_: what do you think happens? [20:39] Raynos: 12 o/ [20:39] chunhao_: it just runs? [20:40] wereHamster: chunhao_: the infinite loop just runs, yes [20:40] wereHamster: chunhao_: it finishes in infinite time [20:40] wereHamster: what happens in any other programing language [20:40] wereHamster: ? [20:40] chunhao_: well, is there a way to stop something in the vm module after it's started? [20:40] TheJH: chunhao_, no [20:40] TheJH: chunhao_, you need a seperate process for that [20:40] chunhao_: ok [20:41] chunhao_: thanks [20:41] TheJH: chunhao_, in node v0.7/0.8, isolates support will be added,w hich will allow doing the same in another thread or so [20:41] TheJH: (as far as I know) [20:41] chunhao_: ah, awesome [20:42] mraleph: technically V8 always had interruption support (you can interrupt JavaScript execution from another thread). but node.js does not expose that functionality. [20:43] nerdfightBot: Only 7 watchers left (node.js has 11147 watchers and Ruby on Rails has 11154 watchers)! [20:47] Marko has joined the channel [20:47] nerdfightBot: Only 2 watchers left (node.js has 11153 watchers and Ruby on Rails has 11155 watchers)! [20:47] seebees: woot! [20:47] mmalecki: OH SHIT SO CLOSE [20:48] mmalecki: ryah: poke poke [20:48] TheJH: 05NOW ALL GO INTO #rails AND MAKE A BIG BARTY! [20:48] seebees: I have 2 developers [20:48] mmalecki: bnoordhuis is dead/drunk [20:48] seebees: but they are at lunch... [20:48] TheJH: mmalecki, I think http://nodejs-vs-ror.nodejitsu.com went down :D [20:49] pksunkara: YAY! I am the one who made nodejs > ror :D [20:49] ovaillancourt: lol [20:50] mmalecki: FUCK GITHUB API FUCKED SOMETHING UP [20:50] mmalecki: it can't even start! [20:50] mmalecki: back up [20:50] jacobrask: wfm [20:51] EhevuTov has joined the channel [20:51] dinesh_ has joined the channel [20:51] nerdfightBot: EPIC WIN! We have 3 more watchers than Ruby on Rails (node.js has 11158 watchers and Ruby on Rails has 11155 watchers)! [20:51] Aria: Wow. That was fast. [20:51] cha0s has joined the channel [20:52] Marak: :-D [20:52] felixge has joined the channel [20:52] CiRlE has joined the channel [20:52] _dc has joined the channel [20:52] pksunkara: !tweet Most Watched repository on github. github.com/joyent/node [20:52] TheJH: ryah, Marak, SubStack, someone here who wants to put something in the topic? :) [20:52] TheJH: pksunkara, kohai isn't here :D [20:52] boltR has joined the channel [20:52] mmalecki: piscisaureus_: piscisaureus__ ryah bnoordhuis LETS PARTY! [20:53] pksunkara: FUUUUUUUCK [20:54] TheJH: ACTION wants gh to rebuild https://github.com/popular/watched now :( [20:54] elliottcable: lol [20:55] jldbasa has joined the channel [20:55] mmalecki: and all the caches shall be refreshed! [20:55] shinuza has joined the channel [20:56] Brozilla: nice one, congratz [20:56] iBooyaa has joined the channel [20:57] mikeric has joined the channel [20:59] mmalecki: cache rebuilt! https://github.com/popular/watched [21:00] TheJH: mmalecki, :) [21:00] marcello3d has joined the channel [21:01] CarterL has joined the channel [21:01] saschagehlich has joined the channel [21:03] WarheadsSE has joined the channel [21:03] nerdfightBot: EPIC WIN! We have 4 more watchers than Ruby on Rails (node.js has 11166 watchers and Ruby on Rails has 11162 watchers)! [21:03] elliottcable: okay, a good time to stop that bot I think [21:04] mmalecki: yeah, definitely [21:04] pksunkara: mmalecki: make it once per hour [21:04] pksunkara: we don't know if ror will start a campaign or not [21:04] mraleph: why people are obsessed with watchers? [21:04] jbrokc_ has joined the channel [21:04] pksunkara: it's fun in our boring lives :P [21:04] mmalecki: mraleph: it's lulzy [21:04] mmalecki: mraleph: internet/geek points! [21:06] jtsnow has joined the channel [21:07] Draco_ has joined the channel [21:10] ShinyDarkness has joined the channel [21:11] vkandy has joined the channel [21:11] ShinyDarkness has joined the channel [21:12] thax has joined the channel [21:13] mmalecki: oh, bnoordhuis is alive [21:13] joshthecoder has joined the channel [21:15] boltR has joined the channel [21:15] c4milo has joined the channel [21:16] ramitos has joined the channel [21:17] FearOfMusic has joined the channel [21:18] mmalecki: bnoordhuis: poke poke. I'm never gonna give you up with this pull request. [21:18] itayneeman has joined the channel [21:18] apanda has joined the channel [21:18] itayneeman: Hey [21:18] apanda has left the channel [21:19] itayneeman: Anyone here? [21:19] mmalecki: itayneeman: sup? [21:20] itayneeman: I'm wondering regarding some odd behavior I'm seeing in 0.6 [21:20] itayneeman: on OS X [21:20] itayneeman: if I do var stdin = process.stdin [21:20] itayneeman: then the process exit handler never gets called [21:20] itayneeman: and the process never exits [21:20] mmalecki: itayneeman: it's a known bug [21:20] itayneeman: good to know [21:20] itayneeman: is there a bug number? [21:21] mmalecki: no, there was mine pull request which had a test [21:21] mmalecki: look for self-termination (search it) [21:21] mmalecki: bnoordhuis: Never gonna let you down [21:22] itayneeman: yeah, I saw some issues referencing it [21:22] itayneeman: Do you have any idea if it plans to be fixed? [21:22] mmalecki: (I'll just slowly keep rickrolling him until he gets to my pull request) [21:22] mmalecki: itayneeman: I'd say, bug bnoordhuis. [21:22] mmalecki: bnoordhuis: hey, when are you going to fix this stdin issue? [21:23] mmalecki: itayneeman: like that ^ [21:23] bnoordhuis: mmalecki: actually, piscisaureus voiced some concerns about it being inconsistent with other APIs (probably net.Server) [21:23] mmalecki: bnoordhuis: which one? tls or stdin? [21:23] itayneeman: bnoordhuis: I'm running into it when I make a clone of the process object for vm.runInNewContext purposes [21:23] bnoordhuis: mmalecki: tls [21:24] bnoordhuis: itayneeman: yes, known bug [21:24] mmalecki: bnoordhuis: ok, feel free to close it/elaborate. I can fix it. [21:24] itayneeman: bnoordhuis: is there any suggested workaround? [21:24] jbrokc_ has joined the channel [21:24] bnoordhuis: mmalecki: i'll let you bug piscisaureus about it now :) [21:25] bnoordhuis: itayneeman: no [21:25] mmalecki: bnoordhuis: you're a sneaky bastard, my fine sir. [21:25] itayneeman: bnoordhuis: unfortunate :) [21:26] mmalecki: piscisaureus_: heeeey :D [21:26] bnoordhuis: itayneeman: we'll fix it some day, it's kind of tricky to get right without breaking other things [21:26] itayneeman: bnoordhuis: any ideas what the timeline for a fix is? Just want to know when I should be on the lookout :) [21:26] itayneeman: bnoordhuis: I see. [21:26] itayneeman: well, that definitely puts a wrinkle in things :) [21:27] bnoordhuis: itayneeman: https://github.com/joyent/node/issues/2175 <- this is tangentially related btw, the fix for that issue potentially may also fix what you're seeing [21:29] itayneeman: bnoordhuis: OK. But there is no ETA, and right now, automatic exit won't happen if somebody happens to use process.stdin. [21:29] itayneeman: bnoordhuis: and there is no way for me to manually invoke it, since I don't nkow when everything is done (no more queued events) [21:30] bnoordhuis: itayneeman: that is correct [21:31] SamuraiJack has joined the channel [21:31] jldbasa has joined the channel [21:32] josh_k has joined the channel [21:33] mmalecki: bnoordhuis: what are we afraid to break, exactly?? [21:33] mmalecki: *? [21:34] bnoordhuis: mmalecki: `make test-all` [21:34] smgt has joined the channel [21:34] mmalecki: bnoordhuis: awesome. something more specific? [21:34] mmalecki: I don't understand how unreferencing stdin could break tests. [21:34] mmalecki: if it does, tests are bad. [21:35] bnoordhuis: mmalecki: maybe, but someone needs to review the affected tests [21:35] xhr has joined the channel [21:35] bnoordhuis: (that's a hint btw) [21:35] mmalecki: not like I know shit about them, but really. lets keep it sane. [21:35] mmalecki: bnoordhuis: OH. [21:36] Morkel has joined the channel [21:36] Sorella has joined the channel [21:36] st_luke has left the channel [21:36] mmalecki: bnoordhuis: hey, I have an awesome idea. [21:36] mmalecki: bnoordhuis: I'll review the tests which are broken by unreferencing stdin. [21:37] shinuza has joined the channel [21:37] bnoordhuis: mmalecki: that's an awesome idea [21:38] AvianFlu: ahahahhahahaha [21:38] boltR has joined the channel [21:40] EuroNerd has joined the channel [21:42] GrizzLyCRO has joined the channel [21:43] EuroNerd: I'm new to node.js, so I have a silly question: Does node.js run only in response to client requests, or can it be made to run some code continuously by itself? [21:44] pksunkara: EuroNerd: It can run by itself [21:44] maxogden: EuroNerd: yes and yes [21:44] EuroNerd: But like really continuously, without some CRON trickery? [21:45] maxogden: EuroNerd: node is one global event loop. its really good at idling [21:46] maxogden: EuroNerd: ive had a node server running for months listening to a remote couchdb using https://github.com/iriscouch/follow [21:46] EuroNerd: Well, I was aiming for more than idling. Specifically, I'm thinking of a not-so-massive MMORPG server. ;) So I'd like the game world to keep running (bots wandering around and stuff) regardless of whether any players are connected. [21:47] devongovett has joined the channel [21:47] pksunkara: nodejs is especially good for games ;) [21:47] mandric has joined the channel [21:48] jgornick has joined the channel [21:48] EuroNerd: OK, thanks guys. [21:48] Margle has joined the channel [21:49] maxogden: EuroNerd: ill alpha test! [21:49] maxogden: but only if i can fork the repo and add my own sprite [21:49] EuroNerd: lol, ok :) [21:51] N0va` has joined the channel [21:51] EuroNerd: One last question: Since node.js is an interpreted language, and assuming my little game server one day grows too heavy... (Which is easy to imagine - just build a big world and let tons of AI characters wander around and you don't need any players at all to kill it. ;)) ...Well, in that situation, what would you recommend for writing the next gen server? [21:51] EuroNerd: [Lotsa pie in the sky here, I know ;)] [21:51] maxogden: first gen: write in node [21:51] maxogden: second gen: rewrite 4 more times in node [21:52] maxogden: if you do it right you wont just have one little game server [21:52] maxogden: but a scalable cluster of game servers [21:52] EuroNerd: Yeah, probably asking on a node.js channel "what should I replace node.js with" is not a good idea. ;) [21:52] EuroNerd: good point [21:54] jbrokc_ has joined the channel [21:55] josh-k has joined the channel [21:56] siculars has joined the channel [21:57] mekwall has joined the channel [21:58] GrizzLyCRO: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [21:58] bnoordhuis: GrizzLyCRO: you have [21:58] GrizzLyCRO: i know! :) [21:58] Morkel: GrizzLyCRO: use the installer [21:58] GrizzLyCRO: linux mint 11 [21:59] EhevuTov has joined the channel [21:59] GrizzLyCRO: which one is recommended? [21:59] bnoordhuis: GrizzLyCRO: you don't want to use master right now, do a `git checkout v0.6.3` [21:59] GrizzLyCRO: bnoordhuis: thanks :) [22:00] piscisaureus__ has joined the channel [22:00] GrizzLyCRO: why you all talkative, what is easy framework to start with? [22:00] GrizzLyCRO: [are all...] [22:01] deedubs: express? [22:01] GrizzLyCRO: from what i can see around the web, express is popular, and i intend to play with socket.io and mongodb [22:01] deedubs: depends on what kind of framework [22:01] deedubs: express, socket.io, mongoose, [22:01] GrizzLyCRO: ok, thanks that is what i had in mind [22:01] GrizzLyCRO: i only thought to use nowjs [22:01] deedubs: no [22:01] deedubs: learn socket.io [22:02] GrizzLyCRO: i will use socket.io, but can you elaborate [22:02] deedubs: better to learn on the ground level [22:02] bradleyg has joined the channel [22:03] GrizzLyCRO: is relationship between socket.io vs nowjs something like IE6 AJAX vs jquery ajax? [22:03] siculars has joined the channel [22:03] deedubs: nowjs uses socket.io [22:04] GrizzLyCRO: i know [22:04] GrizzLyCRO: i just dont know how much it simplifies it [22:04] GrizzLyCRO: for example, some really long time ago, i wrote different ajax functions for each browser [22:04] jbrokc_ has joined the channel [22:04] GrizzLyCRO: and recently started web dev, and was surprised how easy is to make ajax call with jquery [22:05] deedubs: socket.io gives you a standard api to web sockets across all browsers [22:05] deedubs: including those that do not natively support them [22:05] deedubs: nowjs leverages that to make 2-way RPC easier [22:05] GrizzLyCRO: ah nvm, from what i can see socket.io is simple enough to use [22:05] jbpros has joined the channel [22:06] grampajoe has joined the channel [22:06] GrizzLyCRO: sorry for bugging with dumb details before reading docs :) [22:06] nodokodo has joined the channel [22:09] boaz has joined the channel [22:10] Kunda has joined the channel [22:11] nodokodo: opinions/pointers on 'best practice' 3rd party api consumer modules? can't seem to find a 'definitive' way of doing it (a little abstract but hopefully someone knows what i mean) [22:12] nodokodo: node-github looks kinda clean? [22:13] r1ngzer0 has joined the channel [22:13] FransWillem has joined the channel [22:14] FransWillem: Is there any way to get the current modules full filename? [22:15] nodokodo: FransWillem: [22:15] nodokodo: console.log(__filename); [22:15] nodokodo: oops :P [22:16] FransWillem: Ah thanks :) [22:16] FransWillem: Was looking in the modules and process section of the docs and they never mentioned that [22:16] nodokodo: it's only like practically the first thing in the manual... [22:16] nodokodo: globals [22:17] robinhoode has joined the channel [22:18] tomyan has joined the channel [22:19] jankeromnes has joined the channel [22:21] jacobolus has joined the channel [22:23] jellosea: why is parseInt('08') = 0? [22:24] jellosea: same with parseInt('09') [22:24] jhurliman has joined the channel [22:24] seebees: parseInt('09', 10); [22:24] Aria: Because 08 isn't valid octal. [22:25] jellosea: yeah [22:25] jellosea: weird stuff [22:27] Typo has joined the channel [22:28] Aria: Not that weird. It supports base 8 10 and 16. [22:28] Aria: Traditionally in programming languages, leading zero is octal. [22:28] AvianFlu: and the radix is technically a required parameter [22:30] robinhoode: Anyone familiar with socket.io? How do I set the path for the socket? [22:30] robinhoode: There used to be a method to do something like "io.setPath('/chat/socket.io/')", but that's gone now. [22:30] MatthewS has joined the channel [22:32] stantona has joined the channel [22:32] Marko has joined the channel [22:32] Marko: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [22:33] bnoordhuis: Marko: `git checkout v0.6.3` - we're changing build systems in the master branch [22:34] ShinyDarkness_ has joined the channel [22:35] mmalecki: bnoordhuis: you should write an IRC bot. [22:35] Marko: ok, thanks [22:37] GrizzLyCRO: bnoordhuis: why dont add temp message saying "THIS WONT WORK NOT; git checkout xxxx" [22:37] GrizzLyCRO: or something int that style [22:39] mmalecki: GrizzLyCRO: to have people actually bug him [22:40] mmalecki: GrizzLyCRO: I'd work 10x better with thousands of mad users on my back :D [22:40] GrizzLyCRO: well if i was doing some big changes to make system, i would not appreciate ping on irc every couple of minutes :) [22:42] Vennril has joined the channel [22:42] Juan77 has joined the channel [22:43] AvianFlu: GrizzLyCRO, people should be using point releases for real-world usage, bottom line - trying to compile from master at a random moment can be dangerous [22:44] AvianFlu: as in this case :D [22:44] AvianFlu: but people certainly don't seem to get that memo all the time [22:44] GrizzLyCRO: i think that master should always be at least compileable [22:44] samsonjs has joined the channel [22:44] mmalecki: GrizzLyCRO: ++ [22:44] GrizzLyCRO: i mean, some bugs may be in there, but it is main branch [22:45] GrizzLyCRO: there should be "new installer" branch or something [22:45] bengrue has joined the channel [22:45] bradleyg has joined the channel [22:47] GrizzLyCRO: btw on totally unreleated topic, did anyone here use gevent (python) [22:47] mraleph has joined the channel [22:48] maushu has joined the channel [22:48] bradleyg has left the channel [22:50] bradleyg has joined the channel [22:50] idefine has joined the channel [22:51] davidascher has joined the channel [22:51] stantona has joined the channel [22:51] idefine has left the channel [22:53] colinclark_ has joined the channel [22:59] jocafa has joined the channel [22:59] r1ngzer0 has joined the channel [23:00] GrizzLyCRO has joined the channel [23:00] tommyvyo has joined the channel [23:03] jbrokc_ has joined the channel [23:13] kmox83 has joined the channel [23:14] jbrokc_ has joined the channel [23:17] davidbanham has joined the channel [23:19] MatthewS has joined the channel [23:19] diogogmt has joined the channel [23:20] tanepiper: anyone else having issues building 0.6.3 on windows ? [23:22] tanepiper: oh nvm [23:22] mmalecki: tanepiper: you decided to use Linux? [23:22] tanepiper: no, and i do use linux on the server, but i like having node on windows too because i can actually write useful scripts [23:24] aliem has joined the channel [23:24] jbrokc_ has joined the channel [23:24] theCole has joined the channel [23:27] uchuff has joined the channel [23:28] chrislorenz has joined the channel [23:29] ShinyDarkness has joined the channel [23:32] aliem has joined the channel [23:34] swaj: is there a way to make the connect csrf ignore certain URL's? i.e., I have a webhook receiver and I don't want to validate those urls [23:35] ryanfitz has joined the channel [23:35] MatthewS has joined the channel [23:35] shinuza has joined the channel [23:35] Wizek has joined the channel [23:35] jtsnow has joined the channel [23:41] phiggins has joined the channel [23:41] Marak: deedubs: when did nowjs finally give up and start using socket.io? [23:42] plutoniiiix has joined the channel [23:43] neurodrone has joined the channel [23:44] fangel has joined the channel [23:44] robotmay has joined the channel [23:44] stantona has joined the channel [23:48] kriskowal has joined the channel [23:48] aliem has joined the channel [23:48] enmand has joined the channel [23:55] flexd2 has joined the channel [23:56] WarheadsSE_ has joined the channel [23:58] piscisaureus__ has joined the channel