[00:00] isaacs: also, adduser needs to tell you which server you're authing against. [00:00] captain_morgan: cool [00:01] captain_morgan: hopefully I can have something else by Monday, I'm back to work Tuesday [00:01] captain_morgan: You all still doing office hours on Fridays? [00:01] Brandon has joined the channel [00:01] Brandon: Hey guys [00:01] Brandon: what's up [00:01] captain_morgan: or specifically, is the office open Fridays [00:02] isaacs: this is going to have to be reviewed pretty carefully, so it might take a little while to get implemented [00:02] isaacs: captain_morgan: we do office hours on wednesdays these days [00:02] captain_morgan: yeah, I knew that would be the case [00:03] captain_morgan: ahh damn, I am working tue,wed,thur now [00:03] Brandon: I'm going a project for psychology class [00:03] Brandon: How's node coming along guys? [00:05] nphase has joined the channel [00:05] jscheel has joined the channel [00:05] jscheel has joined the channel [00:06] gaYak has joined the channel [00:07] another_syrio has joined the channel [00:10] simenbrekken has joined the channel [00:10] djbell has joined the channel [00:11] ilikeit has joined the channel [00:12] dennisjbell has joined the channel [00:13] enmand has joined the channel [00:14] digman543 has joined the channel [00:16] tiagobutzke has joined the channel [00:17] okuryu has joined the channel [00:17] Circlefusion has joined the channel [00:18] matt4447: is there a way to remove the registration of a schema + model using mongoose so that I can reregisister it? [00:20] martin_sunset has joined the channel [00:25] SamuraiJack has joined the channel [00:25] OneOfOne has joined the channel [00:25] OneOfOne has joined the channel [00:27] captain_morgan has joined the channel [00:29] thisandagain has joined the channel [00:31] azeroth_ has joined the channel [00:32] Mokona has joined the channel [00:32] bradleymeck has joined the channel [00:32] CIA-48: node: 03Igor Zinkovsky 07 * r8498ee0 10/ test/simple/test-fs-symlink.js : make simple\test-fs-symlink.js work on windows - http://git.io/QhGc6g [00:32] mikeric has joined the channel [00:33] dmitrig01 has joined the channel [00:39] gavin_huang has joined the channel [00:40] danjx has joined the channel [00:40] ryanfitz has joined the channel [00:41] guillermo has joined the channel [00:43] deedubs has joined the channel [00:43] CarterL has joined the channel [00:43] wilmoore has joined the channel [00:44] jtsnow has joined the channel [00:46] polotek has joined the channel [00:47] Circlefusion has joined the channel [00:49] dimroc has joined the channel [00:50] neurodrone has joined the channel [00:51] shajith_ has joined the channel [00:51] shajith_ has left the channel [00:52] mandric has joined the channel [00:59] cody-- has joined the channel [01:01] Tobsn has joined the channel [01:01] CIA-48: libuv: 03Ben Noordhuis 07 * rec825ff 10/ (8 files in 5 dirs): unix: add TCP keepalive and no-delay control knobs - http://git.io/pa2xQQ [01:01] Tobsn: is someone in here using the 4sq or yelp api? [01:02] JakeyChan has joined the channel [01:02] CIA-48: node: 03Ben Noordhuis 07 * r82f2bfb 10/ (9 files in 5 dirs): uv: upgrade to ec825ff - http://git.io/8xoarQ [01:02] CIA-48: node: 03Ben Noordhuis 07 * r9710a21 10/ (lib/net.js src/tcp_wrap.cc src/tcp_wrap.h): net: bring back .setNoDelay() and .setKeepAlive() - http://git.io/vuHOPw [01:08] drudge has joined the channel [01:09] CIA-48: node: 03Ryan Dahl 07 * r493d3b9 10/ (7 files in 6 dirs): (log message trimmed) [01:09] CIA-48: node: Merge remote branch 'origin/v0.4' [01:09] CIA-48: node: Conflicts: [01:09] CIA-48: node: ChangeLog [01:09] CIA-48: node: Makefile [01:09] CIA-48: node: deps/libev/wscript [01:09] CIA-48: node: doc/index.html [01:09] CIA-48: node: 03Ben Noordhuis 07 * r401c073 10/ (9 files in 5 dirs): uv: upgrade to ec825ff - http://git.io/xh9TWw [01:09] CIA-48: node: 03Ben Noordhuis 07 * rac379b3 10/ (lib/net.js src/tcp_wrap.cc src/tcp_wrap.h): net: bring back .setNoDelay() and .setKeepAlive() - http://git.io/Ku2qvQ [01:13] ryah: http://nodejs.org/dist/v0.5.10/node-v0.5.10rc2.tar.gz please test [01:14] ej_ has joined the channel [01:16] hipsterslapfight has joined the channel [01:18] cjm has joined the channel [01:18] digman543 has joined the channel [01:21] mike5w3c has joined the channel [01:21] EhevuTov has joined the channel [01:23] jimt_ has joined the channel [01:23] smtlaissezfaire has joined the channel [01:24] smathy has joined the channel [01:24] danjx: 0.5.10 running fine so far [01:27] CIA-48: libuv: 03Ben Noordhuis 07 * r2dd0282 10/ src/win/tcp.c : [01:27] CIA-48: libuv: win: fix function prototype [01:27] CIA-48: libuv: Mea culpa. - http://git.io/gz6GVA [01:29] bnoordhuis: danjx: thanks [01:31] jtsnow has joined the channel [01:32] aguynamedben has joined the channel [01:33] kenperkins has joined the channel [01:34] kriszyp has joined the channel [01:35] AvianFlu has joined the channel [01:37] luke` has joined the channel [01:39] n8ji has joined the channel [01:39] lukejohn has joined the channel [01:40] danjx: nice, 0.5.10 also fixes a fork() problem I had on MacOS [01:42] mikeal has joined the channel [01:42] CIA-48: libuv: 03Bert Belder 07 * r45882e0 10/ src/win/tty.c : win: flush output buffer before doing a console reset - http://git.io/0rT_SA [01:42] CIA-48: libuv: 03Bert Belder 07 * r66f3925 10/ (src/win/winapi.h src/win/winsock.h): Fix MinGW build - http://git.io/xEaM0Q [01:42] CIA-48: libuv: 03Bert Belder 07 * r179f475 10/ src/win/fs.c : [01:42] CIA-48: libuv: win: fix fs__readdir buffer overflow bug [01:42] CIA-48: libuv: Thanks Runner Mei for pointing this out. Closes GH-224. - http://git.io/0d6BiA [01:45] CIA-48: node: 03Ben Noordhuis 07 * rdd6faa5 10/ (5 files): uv: upgrade to 179f475 - http://git.io/cNx_HA [01:46] aguynamedben has left the channel [01:49] shanez has joined the channel [01:49] ryah: please test http://nodejs.org/dist/v0.5.10/node-v0.5.10rc3.tar.gz [01:49] tuhoojabotti: No [01:49] tuhoojabotti: It's almost 5 am [01:54] AAA_awright: Or we can just pull from Git [01:55] AAA_awright: Who uses tarballs and patches anymore [01:55] maletor has joined the channel [02:00] AAA_awright: ryah: Which commit is that anyways? `make test` on master throws 3 errors, for test-https-foafssl, test-debugger-repl, and throw_non_error [02:00] AAA_awright: This is... Linux tesla 2.6.39-gentoo-r3 #2 SMP Sun Oct 16 18:45:10 EDT 2011 i686 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz GenuineIntel GNU/Linux [02:00] ryah: http://nodejs.org/dist/v0.5.10/node.exe [02:02] dthompso99 has joined the channel [02:02] jtsnow has joined the channel [02:02] dthompso99 has left the channel [02:02] tuhoojabotti: I just used node.exe for the first time [02:02] tuhoojabotti: to send udp packets [02:03] russfrank: cool [02:04] julioj has joined the channel [02:05] jarek has joined the channel [02:05] Cheery: assuming Math.random is giving me uniform distribution.. how do I verify that it stays uniform if I stretch it over a range and select a sample? [02:07] miccolis has joined the channel [02:07] slifty_corsair has joined the channel [02:07] AAA_awright: Cheery: integers or floating point, or what? [02:08] Cheery: AAA_awright: Math.random is floating point, but I'd need to select a number between 38, and 76 [02:08] wao: tuhoojabotti: where are you from, moscow? [02:09] tuhoojabotti: wao: Close but no cigar. [02:09] tuhoojabotti: wao: I'm in Helsinki (Capital of Finland) [02:09] tuhoojabotti: But [02:09] AAA_awright: Inclusive? Math.floor(Math.random()*39)+38 [02:09] wao: thats gmt+3?! [02:09] tuhoojabotti: I'm in a demoscene event, which's theme is communism :D [02:09] wao: ahm [02:10] Cheery: AAA_awright: Math.random() might give you 1.0, which would give me index 77 [02:10] tuhoojabotti: we haz daylight saving time [02:11] tuhoojabotti: it means that we shift our timezone by 1 hour depeding on the season [02:11] AAA_awright: Cheery: Math.random is guarenteed to be less than 1 last I checked [02:11] tuhoojabotti: Is it? [02:12] jerrysv has joined the channel [02:12] AAA_awright: ACTION checks ECMAScript spec [02:12] Cheery: AAA_awright: [0, 1) uuuh [02:12] Cheery: you were right [02:12] CIA-48: node: 03Ryan Dahl 07 * r220e61c 10/ (5 files in 3 dirs): Bump version to v0.5.10 - http://git.io/sG7JZw [02:13] thalll has joined the channel [02:13] AAA_awright: Yeah: Returns a Number value with positive sign, greater than or equal to 0 but less than 1, chosen randomly or pseudo randomly with approximately uniform distribution over that range, using an implementation-dependent algorithm or strategy. This function takes no arguments. [02:15] AAA_awright: Now the kicker is how many bits of randomness can I pull from that before it's not uniform anymore [02:15] AAA_awright: That's undefined [02:16] CIA-48: node: 03Ryan Dahl 07 * r9b808c2 10/ src/node_version.h : Now working on v0.5.11 - http://git.io/yVB-dw [02:16] Cheery: my friend, that you could possibly deduce out from IEE floating point specification [02:17] Cheery: assuming it uses whole granularity those provide on their random number implementation [02:19] AAA_awright: If it uses all 52 bits of fraction that's quite a bit, but somehow I doubt it [02:19] scott_gonzalez has joined the channel [02:19] davidwalsh has joined the channel [02:20] AAA_awright: I produce one Buffer character per Math.random() myself, but two or three seems possible [02:21] Cheery: I wonder another thing about web audio API.. whether I can just drop the AudioSourceNode after I've used it [02:21] Tobsn has joined the channel [02:22] AAA_awright: `make test` on master on i686 gives me 6 errors [02:23] bnoordhuis: AAA_awright: check out the crypto.pseudoRandomBytes() function in 0.5.x [02:23] bnoordhuis: ACTION is off for beers [02:23] AAA_awright: ... Or that! [02:23] AAA_awright: I forgot about the fantastic cyrpto library [02:25] ceej has joined the channel [02:25] willwhite has joined the channel [02:25] piscisaureus has joined the channel [02:26] towski has joined the channel [02:26] Cheery: it's sort of cool to crunch your whole processing power when webaudio takes a nte. :) [02:29] ajaymaru has joined the channel [02:31] twist has joined the channel [02:32] boehm has joined the channel [02:32] Vennril2 has joined the channel [02:32] jocafa has joined the channel [02:33] paul_k has joined the channel [02:35] sdwrage has joined the channel [02:36] charde has joined the channel [02:38] bartt has joined the channel [02:39] LTC has joined the channel [02:39] AAA_awright_ has joined the channel [02:40] LTC has joined the channel [02:41] AAA_awright_ has joined the channel [02:43] AAA_awright: Who runs github.com/martynsmith/node-irc [02:43] chjj: i think martyn smith does [02:44] chjj: says it right there ;) [02:44] jkridner has joined the channel [02:46] polotek has joined the channel [02:46] AAA_awright: chjj: I was hoping they hung out in IRC [02:47] AAA_awright_ has joined the channel [02:47] AAA_awright: huh [02:48] AAA_awright_ has joined the channel [02:48] N0va has joined the channel [02:49] mrryanjohnston has joined the channel [02:49] LTC has joined the channel [02:49] AAA_awright: Excuse my test, the client was dying but only when joining this channel, turns out it's a case error if I send it to #Node.js versus #node.js [02:50] JSManiacs has joined the channel [02:50] jocafa has joined the channel [02:51] yozgrahame has joined the channel [02:51] piscisaureus_ has joined the channel [02:52] sdwrage has left the channel [02:53] AAA_awright: Looks like that was fixed in https://github.com/martynsmith/node-irc/commit/549d62f09974ef92c2aa5f1183d38e26e3ee12a0 neat... maybe [02:53] AAA_awright: (What I was using a version that old? No way, I just cloned that) [02:54] AAA_awright: Ooh. Oh wow. It was using my version from really-really-old npm. [02:55] mikeal has joined the channel [02:57] Excedrin has joined the channel [02:58] scott__ has joined the channel [02:58] AAA_awright_ has joined the channel [02:58] kenperkins has joined the channel [02:59] ryanfitz has joined the channel [02:59] AAA_awright: Hah, the +o killed it. [03:00] Me1000 has joined the channel [03:00] AAA_awright: a_meteorite: ^ [03:00] tiagobutzke has left the channel [03:02] yuwang has joined the channel [03:02] jarek has joined the channel [03:02] jarek has joined the channel [03:04] dmitrig01 has joined the channel [03:05] vidi has joined the channel [03:05] vidi has joined the channel [03:06] jimt has joined the channel [03:07] MUILTFN has joined the channel [03:08] a_meteorite: AAA_awright: Hmm? [03:08] Kunda has joined the channel [03:09] AAA_awright: a_meteorite: Look at AAA_awright_ dying when +o was set [03:09] kickingvegas has left the channel [03:09] a_meteorite: Oh [03:09] a_meteorite: Well... that sucks :| [03:10] AAA_awright_ has joined the channel [03:11] AAA_awright: This looks better [03:11] AAA_awright: Who names their IRC channels with a capital letter anyways [03:11] AAA_awright: Stupid capital letters always breaking software programs [03:11] a_meteorite: should preserve case, no? [03:12] AAA_awright: I just reverted commit 549d62f099 and it works better how [03:12] AAA_awright: *now [03:12] Corren has joined the channel [03:12] AAA_awright: Which makes no sense, it was supposed to improve stability :p [03:12] a_meteorite: AAA_awright: But there are more recent commits [03:12] jimt has joined the channel [03:12] AAA_awright: revert not reset [03:12] AAA_awright: Whatever that commit did, do the opposite [03:12] euforic has joined the channel [03:13] AAA_awright: And introduce as a new commit [03:14] Excedrin: channel names are not case sensitive [03:14] Kunda has joined the channel [03:14] AvianFlu has joined the channel [03:15] djbell has joined the channel [03:16] AAA_awright: But yet they have case [03:16] Excedrin: join messages just repeat whatever the client sent [03:16] AAA_awright: And you want to preserve the case that the server uses [03:16] AAA_awright: Not on Freenode [03:16] kriszyp has joined the channel [03:17] AAA_awright: I send #node.js and I get back #Node.js [03:18] diogogmt has joined the channel [03:20] fearphage has joined the channel [03:20] hwhwhwhw has joined the channel [03:20] Excedrin: it's not consistent, this channel behaves that way, but others don't [03:20] hwhwhwhw has left the channel [03:21] pid_ has joined the channel [03:22] Excedrin: anyway, is there any way to use http connect method with node.js http.createServer? seems no [03:22] Peniar has joined the channel [03:23] a_meteorite: Is it safe to call write multiple times on a socket without waiting for drain event to be fired? [03:23] a_meteorite: Docs seem to imply it's not safe for streams [03:23] a_meteorite: No info if the same is true for sockets [03:23] Excedrin: http://pastebin.com/Ej7xf1zU for example [03:25] miccolis has joined the channel [03:28] mikeal has joined the channel [03:31] rchavik has joined the channel [03:31] smtlaissezfaire has joined the channel [03:35] perezd has joined the channel [03:36] jimt_ has joined the channel [03:36] jarek__ has joined the channel [03:38] AAA_awright: a_meteorite: Posted a bug report we'll see what maintainer says [03:42] dmitrig01 has joined the channel [03:42] [[zz]] has joined the channel [03:42] thalll has joined the channel [03:43] jstash has joined the channel [03:44] dmitrig01 has joined the channel [03:48] riven has joined the channel [03:48] riven has joined the channel [03:49] mikeycgto has joined the channel [03:49] mikeycgto has joined the channel [03:51] drudge has joined the channel [03:53] mikeric has joined the channel [03:54] Tobsn: omg [03:54] Tobsn: restify [03:54] Tobsn: is awesome. [03:55] reid has joined the channel [03:56] Corren has joined the channel [03:57] Spion_ has joined the channel [03:58] metellus has joined the channel [03:59] tilgovi has joined the channel [04:01] dget has joined the channel [04:03] marcello3d has joined the channel [04:03] vicapow has joined the channel [04:04] bombworm has joined the channel [04:05] tiagobutzke has joined the channel [04:06] jarek__ has joined the channel [04:06] ttpva has joined the channel [04:08] matt4447_ has joined the channel [04:11] ryanallenbobcat has joined the channel [04:11] jtsnow has joined the channel [04:12] yuwang has joined the channel [04:12] neoesque has joined the channel [04:14] ryanallenbobcat has left the channel [04:14] vrtak-cz has joined the channel [04:15] CarterL has joined the channel [04:17] vrtak-cz: hi all [04:17] vrtak-cz: i have a problem with Date in node 0.4.12 see code and output http://pastebin.com/ChBNC8gz [04:18] thalll has joined the channel [04:19] Dmitrijus has joined the channel [04:19] vrtak-cz: anyone know what is this? [04:20] lightcap has joined the channel [04:24] olegp has joined the channel [04:25] brianseeders has joined the channel [04:26] lightcap has joined the channel [04:28] torsd has joined the channel [04:28] Tobsn: whats the issue? [04:32] NHQ has joined the channel [04:33] sveisvei has joined the channel [04:33] NHQ: what is the hard way to manage node versions? [04:36] Tobsn: mkdir [04:41] lightcap has joined the channel [04:42] maqr has joined the channel [04:42] DTrejo has joined the channel [04:43] DTrejo: curious, why did jspp.io get taken down other than me thinking it was an april fool's joke? [04:46] brantwynn has joined the channel [04:48] DTrejo: anyone have experience with the node_redis library here? [04:49] DTrejo: I'm having an issue where I set an EXPIREAT [04:49] DTrejo: and then I get the TTL [04:49] DTrejo: and it is not in seconds [04:49] DTrejo: but it's a timestamp [04:49] DTrejo: but it's a wierd timestamp too [04:50] Nuck: DTrejo: I'm using *a* Redis adapter for node [04:50] Nuck: The one that's suggested by Redis' site [04:50] DTrejo: right [04:50] DTrejo: I think that is node_redis [04:50] matt4447 has joined the channel [04:50] DTrejo: are you using hiredis as well? or just the JS version? [04:50] Nuck: Just the JS version [04:50] DTrejo: hmm ok [04:50] Nuck: Calling out to C code is horrible overhead [04:50] DTrejo: I will try disabling hiredis and seeing if I have the same issue [04:51] DTrejo: it said it was more performant! it lied to me! [04:51] DTrejo: still the same error :| [04:51] Tobsn: for some reason redis libs for node suck [04:51] Tobsn: weird. [04:51] DTrejo: heh [04:51] Nuck: Tobsn: Yeah, it's irking me [04:51] DTrejo: mjr is not online erg [04:51] Tobsn: weird ha? [04:51] Tobsn: everytime i want to use redis i give up on it [04:52] Tobsn: thats going on since 1.5 years now [04:52] DTrejo: what about the node libs is wierd? [04:52] Tobsn: idk [04:52] DTrejo: I mean, more docs would be nice I suppose [04:52] Tobsn: i surpress those feelings [04:52] DTrejo: tho all the calls are pretty similar [04:52] DTrejo: dunno [04:52] Tobsn: whats weird, i never had problems with mongodb [04:52] Tobsn: nor socket.io [04:53] Tobsn: and that stuff by concept is more complicated than a redis socket [04:53] Nuck: I'm having issues with two database connections to two different databases on the same redis server (0 and 1), and the entries in 1 are populated at startup, but they eventually disappear despite no TTL settings [04:53] Tobsn: hu? [04:53] Nuck: only stuff in DB 1 have TTL [04:53] Tobsn: you run two redis instances? [04:53] Nuck: Err, DB 0 [04:53] Nuck: Tobsn: No, one instance, two DBs [04:54] Tobsn: the fuck? [04:54] Nuck: I believe it's, uh, SELECT 1 [04:54] Nuck: I think [04:54] Tobsn: hmm [04:54] Tobsn: wanna bet one overwrites the second when you SELECT [04:54] Tobsn: it smells a lot like purging [04:54] Nuck: yeah there we go [04:54] DTrejo: redis can have more than one DB inside a single redis? [04:54] Nuck: Tobsn: Nope, two completely separate connections :/ [04:54] DTrejo: I didn't see that written anywhere [04:54] Nuck: DTrejo: Yep [04:54] lightcap has joined the channel [04:54] Tobsn: DTrejo, seems like it [04:55] Nuck: DTrejo: SELECT 0-10 IIRC [04:55] brantwynn has left the channel [04:55] Tobsn: oh [04:55] Nuck: DTrejo: SELECT is fully documented on the Redis site [04:55] Tobsn: maybe 0 gets converted into an empty string [04:55] DTrejo: oh, ok [04:55] Tobsn: make sure you do "0" [04:55] Nuck: No, the databases work fine [04:55] Nuck: Both work independently [04:55] Nuck: And gloriously [04:55] Tobsn: hmm [04:55] Tobsn: still sounds like purging/overwriting [04:55] Nuck: But for some reason, the second database disappears over time [04:56] Tobsn: database disapears means what? [04:56] DTrejo: wierd [04:56] Tobsn: the whole file is gone? [04:56] Tobsn: or its just empty? [04:56] DTrejo: even worse problems than I'm having lol [04:56] Nuck: Tobsn: I thought TTL leakage for a while, but I don't set the TTL on the whole database, jsut keys :/ [04:56] Nuck: Tobsn: DB 1 is just empty when the client tries to pull data again :/ [04:56] Tobsn: if its completely empty [04:56] Tobsn: there is something worse going on [04:56] Tobsn: check the file size [04:56] Tobsn: like the file on the file system [04:57] Nuck: I don't know where Redis stores its shit [04:57] Tobsn: see config file [04:57] Nuck: Might all be in one file? [04:57] Tobsn: /opt somewhere i guess [04:57] Nuck: The other database is fine [04:57] Tobsn: maybe [04:57] Nuck: Completely unaffected [04:57] TomY has joined the channel [04:57] Tobsn: but i would guess it has two files [04:57] Tobsn: container0 container1 [04:57] Tobsn: that would be the only reason two create databases [04:57] Tobsn: to separate the written files [04:57] mikeric has joined the channel [04:58] Tobsn: hmm or namespacing or something [04:58] Tobsn: but def. check the files [04:58] Tobsn: if those suddenly have 0 size or just meta data something kills your content [04:58] Nuck: I don't know WTF is going on :S [04:58] Tobsn: lern how to find it out ;) [04:58] Tobsn: write yourself a script that checks the filesize and content of redis every 5 minutes ;) [04:58] Tobsn: and pump in test data until it breaks [04:59] Tobsn: but i bet its just some stupid typo you accidently put in [04:59] Tobsn: like i said "SELECT " + DB where DB = 0 vs. DB = "0" [04:59] Tobsn: its always shit like that [05:00] Nuck: Tobsn: wat [05:00] Nuck: WTF driver uses raw access o_O [05:00] Tobsn: who knows idk which driver you use ;) [05:00] Tobsn: like i said, test everything and make sure your code is 100% correct [05:00] Nuck: I'm doing tagslist.select(1); and tagscache.select(0); [05:00] Tobsn: so [05:01] Tobsn: tagscache.select(0) does that always work? [05:01] cjm has joined the channel [05:01] Nuck: Tobsn: hmmm? [05:01] Nuck: select 0 is a valid thing [05:01] Nuck: 0 is the default [05:01] Nuck: I actually don't bother :P [05:01] Tobsn: what if you do select("0") [05:01] Nuck: Since it's always on 0 [05:01] Nuck: Tobsn: Nope, doesn't matter [05:01] Nuck: JS will coerce [05:01] Tobsn: it seems so odd to do select(0) [05:01] Nuck: Anyways [05:01] Tobsn: kinda scares me for some reason [05:01] Nuck: Tobsn: No, that's how things work [05:02] Nuck: You're just crazy :) [05:02] Tobsn: im just overly scared of 0 [05:02] Tobsn: ;) [05:02] DTrejo: ACTION blurg [05:02] Tobsn: fyi, if you watch malcom in the middle on netflix, its 16:9 and sometimes you see people standing on the side outside 4:3 [05:03] Tobsn: or a camera crane or a light etc. [05:03] Tobsn: very funny. [05:04] CIA-48: node: 03koichik 07 * r7e2d799 10/ doc/index.html : docs: fix typo - http://git.io/godBfA [05:04] CIA-48: node: 03Nathan Rajlich 07 * rbdb9d09 10/ lib/repl.js : [05:04] CIA-48: node: Print out `undefined` on the REPL when returned. [05:04] CIA-48: node: util.inspect() has a special case for "undefined", so it's nice to be able to [05:04] CIA-48: node: distinguish visually that undefined is the result of an expression. - http://git.io/-ddUCA [05:04] CIA-48: node: 03koichik 07 * red744ec 10/ ChangeLog : docs: remove #1914 from Changelog. - http://git.io/RzfZnw [05:04] jimt has joined the channel [05:04] Tobsn: and whats the deal with .io domains? [05:07] lightcap has joined the channel [05:07] a_meteorite: Is it safe to call write multiple times on a socket without waiting for drain event to be fired? [05:07] a_meteorite: Docs seem to imply it's not safe for streams [05:07] a_meteorite: No info if the same is true for sockets [05:08] Tobsn: should be fine [05:08] Tobsn: just overdo it and see what happens [05:08] a_meteorite: I wish it were safe for streams... maybe it is and the docs are just lying :) [05:08] Tobsn: try it [05:09] LTC has joined the channel [05:12] DTrejo: https://github.com/mranney/node_redis/issues/144 [05:12] DTrejo: Tobsn, Nuck [05:12] DTrejo: ^ [05:13] Tobsn: unix timestamp are seconds? [05:13] DTrejo: blorg [05:13] DTrejo: wait [05:14] DTrejo: Returns the remaining time to live of a key that has a timeout. This introspection capability allows a Redis client to check how many seconds a given key will continue to be part of the dataset. [05:14] Tobsn: ah i see [05:14] Tobsn: yeah just read it [05:14] DTrejo: so it shold be something like 30 [05:14] Tobsn: take that timestamp [05:14] DTrejo: err [05:14] Tobsn: substract now [05:14] DTrejo: 20 [05:14] Tobsn: wanna bet? [05:14] Tobsn: ;) [05:14] DTrejo: let me try that [05:14] Nuck: https://github.com/mranney/node_redis/issues/134 [05:15] Nuck: Winsome. [05:15] Nuck: I wanna just say "yes. Use a callback." [05:15] DTrejo: give him a code sample too :) [05:15] joshkehn has joined the channel [05:16] Tobsn: dont be haters... if you never worked with events stuff its hard to understand [05:16] mikeric has joined the channel [05:16] Tobsn: :P [05:16] DTrejo: Nuck: nope :( [05:16] DTrejo: err, Tobsn [05:16] DTrejo: it doesn't [05:16] Tobsn: depends [05:16] DTrejo: Tobsn: I will gist you [05:17] Tobsn: what if you have 10 things that have to be finished to fire one functions [05:17] AAA_awright: Anyone know of a SOCKS client? [05:17] DTrejo: Tobsn: https://gist.github.com/1305667 [05:17] Tobsn: whats the output? [05:17] Tobsn: AAA_awright, no clue sorry [05:18] Tobsn: AAA_awright, https://gist.github.com/1127459 [05:18] AAA_awright: Thanks [05:18] Tobsn: http://lmgtfy.com/?q=node.js+SOCKS+Proxy [05:18] Tobsn: first result [05:19] AAA_awright: I already looked [05:20] Tobsn: DTrejo, if you dont set a TTL it might just spits out now() [05:20] Tobsn: try setting it 5 minutes in the future in the set() and substract and see if its anywhere near 300 [05:20] DTrejo: hmm ok [05:20] DTrejo: it's a negative # : [05:21] DTrejo: number [05:21] Tobsn: lol [05:21] DTrejo: yea [05:21] Tobsn: how much? [05:21] DTrejo: -1318860890 [05:21] DTrejo: oh wait [05:21] DTrejo: nvm [05:21] DTrejo: one sec! [05:21] Tobsn: is ttl var or is the result? [05:21] Tobsn: if you set it to 5min? [05:22] AphelionZ has joined the channel [05:22] Tobsn: (like i said, all redis libs are weird) [05:22] Tobsn: in php 3 years ago i ended up writing my own wrapper... [05:22] Tobsn: just saying... [05:22] Tobsn: ;) [05:23] DTrejo: just updated it [05:23] DTrejo: the gist [05:23] DTrejo: let me see, hmm [05:23] cjm has left the channel [05:23] dubenstein has joined the channel [05:24] Tobsn: wait now i cant follow [05:24] Tobsn: you know what you should do? [05:24] Tobsn: nah im losing it lol [05:25] zilch_ has joined the channel [05:25] DTrejo: wait tell me! [05:25] ninjapig has joined the channel [05:26] DTrejo: even if it makes no sense [05:26] Tobsn: for some reason i thought for a second maybe the callback doesnt have the updated ttl yet set by expireat [05:26] Tobsn: but that would defeat the purpose of the callback itself [05:26] DTrejo: lol yes [05:26] Tobsn: well if i were you [05:26] Tobsn: i would do cases [05:27] Tobsn: one where you set the ttl directly with set() if thats possible [05:27] Tobsn: and another one where you set the expireat and check the ttl a second later [05:27] maletor has joined the channel [05:27] Tobsn: with a timeout [05:27] Tobsn: just to be _sure_ [05:27] Tobsn: its not a expireat callback issue [05:27] Tobsn: oh AND [05:27] Tobsn: use the redis client in a shell to check it directly [05:28] fzzzy has joined the channel [05:28] Tobsn: 3 ways to check the sanity of the whole process [05:28] DTrejo: the one on redis.io? [05:28] DTrejo: is that enough? [05:28] Tobsn: the one that comes with redis [05:28] Tobsn: redis-client [05:28] Tobsn: i think [05:28] dubenstein has joined the channel [05:28] DTrejo: ll [05:28] DTrejo: kk [05:28] Tobsn: redis-cli [05:29] Tobsn: # redis-cli -v [05:29] Tobsn: redis-cli 2.2.13 [05:29] Tobsn: ha [05:29] Tobsn: never done that [05:29] Tobsn: thats actually pretty neat [05:29] DTrejo: it works int he CLI [05:29] DTrejo: in the CLI [05:30] daithi44_ has joined the channel [05:30] DTrejo: get the same issue with expire [05:31] martin_sunset_ has joined the channel [05:31] Tobsn: redis 127.0.0.1:6379> TTL help [05:31] Tobsn: (integer) 170 [05:31] Tobsn: redis 127.0.0.1:6379> TTL help [05:31] Tobsn: (integer) 169 [05:31] Tobsn: yep [05:31] DTrejo: OH WAIT [05:31] DTrejo: expireat does work [05:31] DTrejo: err [05:31] DTrejo: expire [05:31] DTrejo: but for some reason expireat does not [05:31] DTrejo: whatevs [05:31] DTrejo: grr [05:31] DTrejo: lifes a mess [05:32] dshaw_ has joined the channel [05:32] Tobsn: console.log( new Date().getTime() + 400e3 ) [05:32] Tobsn: see what that outputs [05:33] Nuck: v8> new Date().getTime() + 400e3 [05:33] purr: Nuck: (number) 1319262006431 [05:33] v8bot_: Nuck: [05:33] DTrejo: ignore me lol, let me make sure I'm not doin anything dumb [05:33] dubenste1n has joined the channel [05:33] Tobsn: just btw. [05:34] Tobsn: redis 127.0.0.1:6379> TTL help [05:34] Tobsn: (integer) -1 [05:34] Tobsn: redis 127.0.0.1:6379> GET help [05:34] Tobsn: (nil) [05:34] DTrejo: yea I think expireat [05:34] vicapow has joined the channel [05:34] Tobsn: you know what now - -1 is? [05:35] Tobsn: its one second off and the timestamp is negative [05:37] lyte has joined the channel [05:38] DTrejo: - -1 is 1 [05:38] DTrejo: what/ [05:38] DTrejo: expireat acts wierd still [05:38] DTrejo: err, ttl returns correc tthing with expire [05:38] DTrejo: and not with expireat [05:38] martinciu has joined the channel [05:38] Tobsn: hehe [05:38] joshkehn has left the channel [05:38] DTrejo: so yea [05:38] Tobsn: so expireat is borked? [05:38] DTrejo: gonna leave that issue up [05:39] DTrejo: I think so [05:39] Tobsn: look into the lib what it does [05:39] DTrejo: it's autogenerated code [05:39] DTrejo: so yea [05:39] Tobsn: hmm? [05:39] DTrejo: I suppose I could [05:39] Tobsn: what module is it? [05:39] DTrejo: node_redis is a super simple wrapper [05:39] martinciu has joined the channel [05:39] DTrejo: npm docs node_redis [05:40] DTrejo: OMG MY TESTS PASS NOW [05:40] DTrejo: yay [05:40] Tobsn: lol [05:40] Tobsn: delete that key with redis-cli [05:40] Tobsn: and try it again [05:41] DTrejo: I delete it at the start of my tests [05:41] Tobsn: use a different key [05:41] DTrejo: why? [05:41] Tobsn: just to be sure [05:41] fangel has joined the channel [05:41] Tobsn: hmm yeah i see what that lib does [05:42] Tobsn: expireat should work i guess [05:42] Tobsn: maybe the int is too big [05:42] Tobsn: idk [05:42] Tobsn: whatever hehe [05:42] DTrejo: oh really [05:42] DTrejo: WOW [05:42] Tobsn: broken again? [05:44] DTrejo: Tobsn: I'm into realm of tired enough that I can't code competently [05:44] DTrejo: so I'm giong to come back to this another day [05:44] Tobsn: hehe [05:45] Tobsn: 22:45 in socal ;) [05:45] zilch_: at https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 , ".json" is mentioned in the "Module System" sub section of "Added" section. What are exactly new feature !! [05:46] Tobsn: idk what that means [05:46] Tobsn: or what you want to ask [05:46] Tobsn: but now i want to know it too [05:47] DTrejo: 1:46 in providence RI [05:47] DTrejo: am [05:47] DTrejo: it means you can require('hello.json') I bet [05:47] Tobsn: ooooh [05:47] Tobsn: well thats a pretty unimportant change i guess [05:47] DTrejo: yea [05:48] Tobsn: man i like restify... [05:48] Tobsn: now i just need to find out how to wrap that in some sort of handler [05:50] DTrejo: make it mvccpprvpr [05:50] DTrejo: pattern [05:50] DTrejo: I hear it's a good pattern [05:50] SubStack: more letters [05:50] Tobsn: mvccpvc [05:50] Tobsn: yeah [05:50] SubStack: I don't like patterns. [05:50] SubStack: what is the pattern for that [05:50] SubStack: idlp [05:51] Tobsn: stripes [05:51] Tobsn: im sure its stripes [05:51] _dc has joined the channel [05:55] [[zz]] has joined the channel [05:56] chrislorenz has joined the channel [05:58] DTrejo: hot new pattern: pcp [05:59] ambroff has joined the channel [06:02] HT has joined the channel [06:02] CIA-48: node: 03seebees 07 * rbe4576d 10/ (lib/url.js test/simple/test-url.js): [06:02] CIA-48: node: url.resolveObject(url.parse(x), y) == url.parse(url.resolve(x, y)); [06:02] CIA-48: node: added a .path property = .pathname + .search for use with http.request [06:02] CIA-48: node: And tests to verify everything. [06:02] CIA-48: node: With the tests, I changed over to deepEqual, and I would note the comment on the test [06:02] CIA-48: node: ['.//g', 'f:/a', 'f://g'], which I think is a fundamental problem [06:02] CIA-48: node: This supersedes pull 1596 - http://git.io/dk8lpg [06:02] CIA-48: node: 03seebees 07 * r005d607 10/ (10 files in 2 dirs): (log message trimmed) [06:02] CIA-48: node: http.request(url.parse(x)) [06:02] CIA-48: node: http2.js [06:02] CIA-48: node: protocols object to store defaults for http and https, and use as a switch for supported protocols. [06:02] CIA-48: node: options.hostname > options.host > 'localhost' [06:02] CIA-48: node: if I have an options.auth element and I do not have an Authorization header, I do basic auth. [06:02] CIA-48: node: http.request collapses to new ClientRequest since the defaults are handled by the protocol object [06:03] isaacs has joined the channel [06:03] CIA-48: node: Documentation update [06:03] CIA-48: node: http.markdown [06:03] CIA-48: node: note options now align with url.parse [06:03] CIA-48: node: added note that hostname is preferred over host. [06:03] CIA-48: node: added auth [06:03] CIA-48: node: added not that setting an explicit Authorization header will override basic authentication with 'auth' [06:03] CIA-48: node: 03seebees 07 * r216570b 10/ (11 files in 3 dirs): Lint - http://git.io/GiRFtA [06:04] k1ttty has joined the channel [06:04] mikeric has joined the channel [06:06] zilch_: DTrejo, it means you can require('hello.json') I bet ... was that for me [06:06] zilch_: ? [06:06] DTrejo: yep [06:08] bogomips2_ has joined the channel [06:08] DTrejo: cheers all [06:08] isaacs: zilch_: yes, you can require("foo.json") [06:11] wilmoore has joined the channel [06:12] zilch_: isaacs, that good ... I mean handy :) [06:12] zilch_: thanks for the proposal and implementation :) [06:16] dnjaramba has joined the channel [06:16] zilch_: For me the biggest addition is https://github.com/joyent/node/blob/d2698d182271c77bc5bca44a9cee625d9372301f/doc/api/cluster.markdown [06:17] zilch_: but I just wonder can I replace my super cool cluster.js with that !! [06:18] zilch_: cluster.js happens to do so much beside just taking advantage of multicores !! [06:19] saikat has joined the channel [06:24] Arkantos has joined the channel [06:25] mikeric has joined the channel [06:27] zilch_: Will I be missing something if I continue to use cluster.js instead of taking advantage of new core feature ? [06:27] zilch_: I love the telnet console , stats and other goodies cluster provides !! [06:28] zilch_ has joined the channel [06:29] brimster has joined the channel [06:30] zilch_: Instead of writing res.send(400) and res.send(500) ... isn't it be wise to write res.send(BAD_REQUEST) and res.send(INTERNAL_SERVER_ERROR) ? [06:31] zilch_: and do we have a module that already has defined such "const" ? [06:31] secoif has joined the channel [06:31] zilch_: creating such module is trivial but would like to use what community as already using as custom !! [06:34] matyr has joined the channel [06:39] zilch_: did I asked a irrelevant question ? [06:48] dget has joined the channel [06:49] shykes_ has joined the channel [06:51] jonaslund: isaacs: hmh, is there host affinity for cluster ? [06:56] xiaojj has joined the channel [06:57] xiaojj: 尼玛 [06:59] zilch_ has joined the channel [07:01] lyte has joined the channel [07:01] lyte has joined the channel [07:02] kenperkins: is there a way to output cache based on sessions? [07:03] ninjapig has joined the channel [07:03] ninjapig has joined the channel [07:06] alessioalex has joined the channel [07:07] andrewfff has joined the channel [07:08] mikeric has joined the channel [07:08] zilch_: kenperkins, which cache ? [07:08] kenperkins: tbh, I'm not sure it was a well-formed question [07:08] kenperkins: currently our app is entirely stateless as the HTML is concerned (all ui is done dynamically) [07:09] kenperkins: I'm prototyping code that composites the page for each request [07:09] kenperkins: and I was trying to figure out if you could cache the output based on the session id for example [07:10] thalll has joined the channel [07:10] Lingerance: With a custom caching system yes. AFAICT there aren't any that do that OoB as there's no standard session system. [07:11] kenperkins: which makes sense [07:11] Lingerance: Just store the cached files like: ${SID}/${FILE} [07:12] kenperkins: ugh, 72r/sec when compositing the page :S [07:12] Lingerance: Then make sure you prune it ASAP because you're also going to have a massive cache. [07:12] Lingerance: (Which is another reason it isn't done much) [07:13] mike5w3c_ has joined the channel [07:14] kenperkins: egads [07:14] kenperkins: nginx in front of node caching the response: (not composited per request) 11k rps [07:14] kenperkins: node compositing each request: 70 rps [07:14] dubenstein has joined the channel [07:15] Lingerance: Yup [07:15] kenperkins: that's not gonna fly, suggestion [07:15] dubenste1n has joined the channel [07:16] simenbrekken has joined the channel [07:17] bnoordhuis has joined the channel [07:19] kab3wm has joined the channel [07:22] saesh has joined the channel [07:24] Morkel has joined the channel [07:27] cw3de has joined the channel [07:27] digman543 has joined the channel [07:29] lzskiss has joined the channel [07:29] lzskiss: aloha [07:30] cw3de: hi [07:30] cw3de: anyone noticed the time warp on the node.js front page "2011.10.10 v0.5.21 (unstable) " ? [07:31] Dregond has joined the channel [07:32] dnjaramba has joined the channel [07:34] Nuck: cw3de: Huh? [07:34] Nuck: 2011/10/10 was about 12 days ago o_O [07:35] Nuck: What's odd? [07:35] __tosh has joined the channel [07:35] cw3de: My guess is, someone (Tyah?) mixed the date and the version [07:35] piscisaureus__ has joined the channel [07:35] cw3de: Tyah=Ryah [07:36] kenperkins: hot [07:36] cw3de: Look at the download section on http://nodejs.org/ [07:36] kenperkins: Lingerance: turns out I can have nginx include cookie values as part of cache key :) [07:37] markwubben has joined the channel [07:39] meso has joined the channel [07:39] bradleymeck has joined the channel [07:40] zeade has joined the channel [07:41] Stephen has joined the channel [07:42] Stephen: Thoughts on the compression libraries? [07:42] Stephen: Need one to operate on WebSockets or an RPC server [07:42] Swizec has joined the channel [07:45] meandi has joined the channel [07:46] d0k has joined the channel [07:48] rgl has joined the channel [07:50] meandi has joined the channel [07:51] bwinton has joined the channel [07:53] rendar has joined the channel [07:53] piscisaureus___ has joined the channel [07:57] domo has left the channel [07:57] loob2 has joined the channel [07:57] fly-away has joined the channel [08:00] martinciu_ has joined the channel [08:02] Druid_ has joined the channel [08:03] synkro has joined the channel [08:05] cw3de1 has joined the channel [08:06] cw3de has left the channel [08:07] perezd_ has joined the channel [08:07] aah has joined the channel [08:09] q_no has joined the channel [08:17] anon has joined the channel [08:18] Frippe has joined the channel [08:20] torsd has joined the channel [08:22] lzskiss has joined the channel [08:23] dubenstein has joined the channel [08:25] SoulRaven has joined the channel [08:26] tlynn has joined the channel [08:30] ph^ has joined the channel [08:33] kenperkins has joined the channel [08:35] Arkantos has joined the channel [08:42] piscisaureus____ has joined the channel [08:47] synkro has joined the channel [08:48] cognominal___ has joined the channel [08:49] Xano has joined the channel [08:49] Marak: does anyone want to try `curl ohh.io` [08:49] Marak: or `curl ohh.io/flames` [08:50] bergie has joined the channel [08:50] azeroth_ has joined the channel [08:52] maligree has joined the channel [08:52] cognominal_ has joined the channel [08:53] vkareh has joined the channel [08:53] arcanis has joined the channel [08:55] mmalecki has joined the channel [08:58] herbySk has joined the channel [08:59] jerrysv has joined the channel [08:59] k1ttty has joined the channel [09:01] ditesh|cassini has joined the channel [09:01] aliem has joined the channel [09:02] JakeyChan has joined the channel [09:03] markwubben has joined the channel [09:06] another_syrio has joined the channel [09:07] dshaw_ has joined the channel [09:08] tylerstalder has joined the channel [09:08] herbySk has joined the channel [09:10] `3rdEden has joined the channel [09:10] robashton has joined the channel [09:13] tlynn has joined the channel [09:16] tlynn_ has joined the channel [09:19] jbpros has joined the channel [09:23] stagas has joined the channel [09:24] Cromulent has joined the channel [09:26] tlynn_ has joined the channel [09:28] markwubben has joined the channel [09:28] dshaw_ has joined the channel [09:32] webjay has joined the channel [09:33] jomoho has joined the channel [09:33] xy has joined the channel [09:34] adrianmg has joined the channel [09:35] AphelionZ has joined the channel [09:35] cyrilmengin has joined the channel [09:36] tlynn_ has joined the channel [09:38] __doc__ has joined the channel [09:40] TomY has joined the channel [09:41] ninjapig has joined the channel [09:41] ninjapig has joined the channel [09:47] rgl: how do I shutdown node? I'm just running a single http server, and call close() on it. but still, the node process does not terminate. [09:48] mmalecki: process.exit() [09:49] rgl: ah thx :) [09:53] robhawkes has joined the channel [09:54] neerolyte has joined the channel [09:54] jerrysv has joined the channel [09:57] Renegade001 has joined the channel [09:57] TomY: rgl, mmalecki: seeing the same thing in 0.5.9 & 0.5.10. Is that new behaviour - that you have to explictly exit? [09:58] wmage has joined the channel [09:58] mmalecki: hm, wait, you're closing a server and app is still running? [09:58] ixti has joined the channel [09:58] mmalecki: actually, it's weird [09:58] mmalecki: code example? [09:58] TomY: ACTION makes a simple test case [09:59] cw3de: closing a http listener does work for me [09:59] TomY: the code i have is quite complex. When I run it in the debugger, watchers is empty [09:59] TomY: probably something in my code, will dig into it [10:00] Arkantos has joined the channel [10:01] xy has left the channel [10:02] mmalecki: works for me, I think [10:02] jakobdamjensen has joined the channel [10:02] V1 has joined the channel [10:05] mikeric has joined the channel [10:06] cw3de has left the channel [10:06] cw3de has joined the channel [10:06] thalll has joined the channel [10:08] N0va has joined the channel [10:08] tomgallacher has joined the channel [10:09] dnjaramba has joined the channel [10:10] rgl: how can I html encode some text to include in a html response? [10:11] robhawkes has joined the channel [10:13] TomY: ACTION found the problem in my code [10:18] jbpros has joined the channel [10:19] jldbasa has joined the channel [10:22] tuhoojabotti: rgl: With some javascript? [10:22] tuhoojabotti: that doesn't seem like a node.js problem to me [10:22] rgl: yes. in a node http server handler. [10:22] adrianmg: Anyone with an iphone? -.- [10:23] rgl: tuhoojabotti, you are saying that node does not ship with a htmlencode function at all? [10:24] Lingerance: To close node without process.exit() you need to close every socket and timeout/interval among other things. (From my experience) [10:25] tuhoojabotti: rgl: escape function? [10:25] tuhoojabotti: it's not related to node at all :u [10:25] rgl: tuhoojabotti, escape is URI encoding. [10:25] tuhoojabotti: right [10:25] mraleph has joined the channel [10:26] Lingerance: escape != URI encoding normally. [10:26] tuhoojabotti: true [10:26] Lingerance: node has encodeURI() though [10:26] rgl: I see. [10:27] rgl: well, JS is a mess for encoding a simple html string :( [10:27] Lingerance: Why are you encoding HTML anyways? [10:27] rgl: I mean, the stock functions do not even seem to have HTML encoding at all :( [10:27] rgl: for emiting HTML from a HTTP handler [10:27] Lingerance: Because 99% of people don't need that [10:28] rgl: what do you mean? [10:28] Lingerance: You shouldn't need to encode HTML if that's what gets sent back. [10:28] tuhoojabotti: rgl: http://search.npmjs.org/#/node-html-encoder [10:28] tuhoojabotti: That's why we have modules. [10:28] rgl: for example, I want to HTML encode the result of util.inspect(process.env) at http://pastie.org/2739760 [10:29] MonsieurLu has joined the channel [10:32] zilch_ has joined the channel [10:32] markwubben has joined the channel [10:32] rgl: tuhoojabotti, ah thx! [10:33] rgl: OMG ... its GPL :( [10:34] tuhoojabotti: find another one. [10:34] riven has joined the channel [10:34] riven has joined the channel [10:34] rgl: I will. thx! [10:35] Arkantos has joined the channel [10:35] chjj: js really needs macros or function inlining or something [10:35] chjj: ...whos with me! [10:35] dbrain has joined the channel [10:36] Lingerance: Not I [10:36] Lingerance: Of course you could always just feed your js through cpp or something. [10:36] chjj: i guess technically it does have function inlining, but you dont have control over it [10:37] jetienne has joined the channel [10:37] tomgallacher has left the channel [10:38] dbrain: hey, does anyone know if its possible to use hook.io to handle an event once no matter how many hooks are listening for it? (e.g. in the logger example, if i run 5 logger hooks i only want one log message written to file) [10:39] cl0udy has joined the channel [10:40] cw3de has left the channel [10:41] liar has joined the channel [10:44] tomgallacher_ has joined the channel [10:45] k1ttty has joined the channel [10:45] d0k_ has joined the channel [10:45] tilgovi has joined the channel [10:45] tilgovi has joined the channel [10:45] Vierstern has joined the channel [10:46] N0va has joined the channel [10:47] briemens has joined the channel [10:48] jakobdamjensen has joined the channel [10:55] blup has joined the channel [10:56] matyr has joined the channel [10:57] lyte has joined the channel [10:57] lyte has joined the channel [11:04] mape has joined the channel [11:06] martin_sunset has joined the channel [11:07] martinciu has joined the channel [11:08] mmalecki has joined the channel [11:09] vindice has joined the channel [11:13] zilch_: with new cluster feature in node 0.6 is there something which I can't do with cluster.js [11:13] mraleph has joined the channel [11:14] zilch_: I feel cluster.js provides much more features then spawning !! e.g telnet admin console and stats !! [11:14] tauren has joined the channel [11:20] rev087 has joined the channel [11:20] zilch_ has joined the channel [11:23] stagas has joined the channel [11:23] NetRoY has joined the channel [11:24] netlemur has joined the channel [11:25] maushu has joined the channel [11:27] neurodrone has joined the channel [11:30] boehm has joined the channel [11:32] AdAlpha has joined the channel [11:33] stagas has joined the channel [11:33] saesh has joined the channel [11:34] lyte has joined the channel [11:34] lyte has joined the channel [11:35] azeroth_ has joined the channel [11:36] EvRide has joined the channel [11:36] MonsieurLu has left the channel [11:36] whitman has joined the channel [11:37] xhr has joined the channel [11:41] replore has joined the channel [11:41] replore_ has joined the channel [11:41] Swizec has joined the channel [11:42] stagas has joined the channel [11:45] Kunda has joined the channel [11:45] EvRide1 has joined the channel [11:48] dbrain has joined the channel [11:55] jakobdamjensen has joined the channel [11:55] wbednarski has joined the channel [11:56] tlynn has joined the channel [11:56] jkridner has joined the channel [11:56] jkridner has joined the channel [11:58] stagas has joined the channel [11:59] Wizek_ has joined the channel [12:01] jonaslund: rgl: as long as it isn't GPL v3 or AGPL you really don't need to worry as long as you are just running a server [12:01] EvRide has joined the channel [12:01] jonaslund: (or are gonna use it clientside) [12:05] mmalecki: rgl: what are you looking for? [12:06] LTC has joined the channel [12:08] zilch_ has joined the channel [12:09] rgl: I managed to just create an htmlEncode function myself. [12:09] rgl: it just does a text.replace("&", "&").replace("<", "<") [12:10] pid_ has joined the channel [12:11] jbpros has joined the channel [12:12] hetkat has joined the channel [12:14] yuwang has joined the channel [12:14] hetkat: hi, situation: I look up a set of ids in my database, for each id I then want to look up related data and append that to a list, then send the list to the client. Each database call takes a callback which is called with the result. question: how can I implement this functionality without creating functions within a loop (which my editor highlights in 'bad' red) [12:15] adrianmg has left the channel [12:15] chjj: rgl: that wont work, you need to do .replace(/&/g, ...), etc [12:17] chjj: hetkat: you want an async loop? [12:17] hetkat: i guess, i want to start a lot of things in a loop and handle each thing finishing and then handle when all have finished [12:18] hetkat: but without creating functions within the loop [12:19] chjj: hetkat: what is "a lot of things"? [12:19] hetkat: several database calls [12:19] chjj: you probably want to write an async loop function [12:20] paul_k has joined the channel [12:23] deoxxombie: rgl: check out ent [12:24] chjj: hetkat: take a look at https://github.com/caolan/async if you want an example of how async loops work [12:24] chjj: hetkat: or you can use it [12:25] hetkat: cool thanks [12:28] bolden has joined the channel [12:28] zilch_ has joined the channel [12:29] topaxi has joined the channel [12:31] wbednarski has joined the channel [12:35] fairwinds has joined the channel [12:39] rgl: chjj, oh indeed! thx! [12:39] EvRide has joined the channel [12:39] yuwang has joined the channel [12:40] rgl: deoxxombie, got an URL for that? I didn't find anything relevant on google :( [12:40] deoxxombie: `npm install ent' [12:40] jbpros has joined the channel [12:40] AphelionZ has joined the channel [12:41] rgl: I don't have npm (I'm on windows, and npm does not work here) [12:41] rgl: http://search.npmjs.org/#/ent :) [12:41] deoxxombie: yep, that'll do it :) [12:46] DennisRasmussen has joined the channel [12:53] Marak: piscisaureus: curl ohh.io/flames [12:53] Marak: ftw [12:53] Marak: lol [12:55] brianloveswords has joined the channel [12:57] neerolyte has joined the channel [12:57] erichynds has joined the channel [12:57] pHcF has joined the channel [12:57] alexdoom has joined the channel [12:58] slajax has joined the channel [13:00] einaros: Marak: someone appears to have too much spare time [13:01] Marak: einaros: that was my have fun on friday night project! [13:01] Marak: :-D [13:01] nodtem66 has joined the channel [13:01] mmalecki: einaros: joys of working at nodejitsu ;) [13:01] zilch_ has joined the channel [13:03] einaros: how does one go about monetizing ansi flames exactly? [13:03] mmalecki: Marak: you accidentally indutny in your tweet [13:03] Marak: einaros: mmalecki it totally exposed gnarly memory leak too in new deploy, sorting it out now [13:03] indutny: mmalecki: huh? [13:03] mmalecki: indutny: typo in your screen name [13:04] mandric has joined the channel [13:04] c4milo has joined the channel [13:04] Marak: mmalecki: im not cogent this morning [13:04] Marak: i should have been sleeping hours ago, memory leaks will do that to you [13:05] Marak: drinking coffee now [13:05] einaros: Marak: well I shouldn't be one to judge, seeing as I spent just about all of thursday keeping a server up through the hackernews load for wire.2x.io [13:05] Cromulent has joined the channel [13:05] lzskiss has joined the channel [13:05] Marak: einaros: how many dependencies for that server do you manage? :-D [13:06] mmalecki: Marak: don't drink too much of it. that's what I did yestarday [13:06] einaros: long story short, running that particular linux box under hyper-v was an epically bad idea [13:06] mmalecki: I woke up with cramps in my legs [13:07] mmalecki: einaros: hyper-v? seriously? [13:07] Marak: einaros: ohh wait, you were the guy who switched to windows? [13:08] einaros: mmalecki: don't ask [13:08] einaros: Marak: well I sort of had to, since the only box I had handy with 100mbit full duplex + low latency and the required open ports was a windows box [13:08] cognominal_ has joined the channel [13:09] mikeric has joined the channel [13:09] mmalecki: Marak: I will write this car animation later today. gotta finish one pretty cool project with AvianFlu :-) [13:09] Marak: einaros: what kinda of latency were you getting before and after the switch? [13:10] einaros: Marak: before, good question -- will have to measure that. after: open two browsers against wire.2x and see for yourself [13:10] einaros: you'd have the added latency from whereever to norway, though [13:10] einaros: but it's currently running node 0.5.9 on windows [13:10] Marak: einaros: you dont have a status page? [13:11] Marak: einaros: like http://wsping.nodejitsu.com/ or http://wander.nodejitsu.com/status [13:11] Marak: ahhh i see, upper left [13:11] Marak: getting pretty good [13:12] einaros: hmm, you're drawing on that grid now? [13:12] Marak: no [13:12] einaros: try that [13:13] einaros: right well latency in this regard would be the roundtrip time from client->socket.io server->other client on same location [13:13] Marak: it seems fast [13:13] einaros: not as much server response time, seeing as the page is currently hosted by one of my other node boxes [13:13] einaros: fast for an unstable node running on windows across the pond at least [13:14] martinciu has joined the channel [13:17] gut4 has joined the channel [13:21] DennisRas has joined the channel [13:21] scott_gonzalez has joined the channel [13:22] mmalecki_ has joined the channel [13:23] mike5w3c has joined the channel [13:24] Mokona has joined the channel [13:25] cw3de has joined the channel [13:26] mmalecki has joined the channel [13:27] EvRide has joined the channel [13:27] [Sou|Raven] has joined the channel [13:28] [Sou|Raven] has joined the channel [13:29] [Sou|Raven] has joined the channel [13:29] EvRide has joined the channel [13:30] pickels has joined the channel [13:35] markwubben has joined the channel [13:36] _unary has joined the channel [13:36] schwab has joined the channel [13:37] zilch_ has joined the channel [13:39] HardPhuck has joined the channel [13:44] slajax has joined the channel [13:45] pokoli has joined the channel [13:47] cjm has joined the channel [13:48] deedubs has joined the channel [13:49] Xano has joined the channel [13:53] garrensmith has joined the channel [13:54] pokoli has joined the channel [13:58] Alexanderrrrrr has joined the channel [13:58] Alexanderrrrrr: I installed html2jade and jade with "npm install [module]", ran npm install -d. But still when trying to run html2jade I get "Cannot find module jade". Can't find it on Google. [14:00] metellus has joined the channel [14:01] ryanfitz has joined the channel [14:04] pHcF has joined the channel [14:06] markwubben has joined the channel [14:08] kriszyp has joined the channel [14:10] Mokona has joined the channel [14:11] Sorella has joined the channel [14:16] socketio\test\27 has joined the channel [14:18] socketio\test\04 has joined the channel [14:18] chjj has joined the channel [14:24] willwhite has joined the channel [14:25] igl has joined the channel [14:25] joseph73 has joined the channel [14:27] joseph73: Hi all. I installed node a couple of months ago and felt it was time to update my installation. However, git pull gives "https://github.com/ry/node.git/info/refs not found: did you run git update-server-info on the server?". Help please [14:27] anoop has joined the channel [14:27] ashb: joseph73: need to do a git remote update to change the repo [14:27] ashb: https://github.com/joyent/node [14:28] joseph73: Ah [14:28] joseph73: thanks [14:28] ohtogo has joined the channel [14:29] joseph73: ashb, running "git remote update" gives me the same error [14:29] ashb: remote set-url sorry [14:30] ashb: remote set-url origin [14:30] ashb: most likely [14:30] joseph73: there's "push" and "add", suppose it doesn't matter [14:31] piscisaureus____ has joined the channel [14:35] joseph73: ashb, forgot to say thanks. Thanks :) [14:36] ashb: np [14:36] kriszyp has joined the channel [14:37] deedubs: SubStack: SP? http://testling.com/docs/#writing-tests -> 'You can just use tar use stdout for output so...' [14:39] CarterL has joined the channel [14:40] stagas has joined the channel [14:41] zemanel has joined the channel [14:41] CIA-48: node: 03koichik 07 * r00aa893 10/ (4 files): docs: improvement fs, http and https - http://git.io/Rjye2Q [14:43] jtsnow has joined the channel [14:46] `3rdEden has joined the channel [14:47] DarkGrey has joined the channel [14:49] ej_ has joined the channel [14:50] chrispercol has joined the channel [14:51] jtsnow has joined the channel [14:51] chrispercol: hi is anyone using nginx...my node works find and nginx works fine but when I put them together I get some strange behaviour...pages loads but when I hit refresh it hangs for 10-15s? [14:53] blup has joined the channel [14:54] Frippe has joined the channel [14:55] bnoordhuis has joined the channel [14:57] zemanel has joined the channel [14:57] jakehow has joined the channel [14:57] MonsieurLu has joined the channel [14:57] kriszyp has joined the channel [14:59] kenperkins has joined the channel [15:00] ej_ has joined the channel [15:02] jacobwg has joined the channel [15:04] lzskiss has joined the channel [15:05] pixel13 has joined the channel [15:05] pixel13 has left the channel [15:05] Corren has joined the channel [15:08] davidwalsh has joined the channel [15:10] meandi2 has joined the channel [15:12] cody-- has joined the channel [15:14] Kunda has joined the channel [15:15] maligree has joined the channel [15:16] jacobolus has joined the channel [15:17] gxdssoft has joined the channel [15:18] flamboz has joined the channel [15:20] willwhite has joined the channel [15:22] davidwalsh has joined the channel [15:23] markwubben has joined the channel [15:23] superjudge has joined the channel [15:24] mAritz has joined the channel [15:25] bnoordhuis has joined the channel [15:26] gxdssoft has joined the channel [15:28] towski has joined the channel [15:29] cody__ has joined the channel [15:33] Corren has joined the channel [15:34] stagas has joined the channel [15:36] fra000 has joined the channel [15:36] mraleph has joined the channel [15:38] isaacs has joined the channel [15:40] NetRoY has joined the channel [15:41] Spion has joined the channel [15:41] MonsieurLu has joined the channel [15:45] mikeal has joined the channel [15:45] vkareh has joined the channel [15:46] MetaVolutioN has joined the channel [15:48] mandric has joined the channel [15:49] ninjapig has joined the channel [15:49] ninjapig has joined the channel [15:49] cl0udy_ has joined the channel [15:51] okCPU has joined the channel [15:52] ilikeit has joined the channel [15:53] okCPU: is redis or memcached the popular choice for node architecture? [15:57] N0va has joined the channel [15:57] ryanfitz has joined the channel [15:59] saikat has joined the channel [15:59] stagas has joined the channel [16:00] mikeycgto has joined the channel [16:00] mikeycgto has joined the channel [16:00] maligree has joined the channel [16:01] OneOfOne: okCPU: depends on what you want to do? [16:01] OneOfOne: okCPU: you can use mysql if you need to [16:01] kenperkins has joined the channel [16:01] OneOfOne: okCPU: i personally prefer mongodb [16:02] Alexanderrrrrr has joined the channel [16:02] Alexanderrrrrr: I'm having a problem getting html2jade working. http://pastebin.com/NmiRuLJP [16:03] Swizec has joined the channel [16:04] nerdy_ has joined the channel [16:05] toopay has joined the channel [16:06] dubenstein has joined the channel [16:09] mikeycgto has joined the channel [16:09] mikeycgto has joined the channel [16:09] zkirill has joined the channel [16:10] zkirill: what's the criteria for evaluating whether to go with node.js for your project? [16:13] mikeycgto has joined the channel [16:13] maletor has joined the channel [16:13] fairwinds: hi. was reading about pulling private code from repos as module dependencies with npm which looks quite good. The article I read highlighting this speaks only for syntax for referencing a git repository. Anyone know if this works with svn as well [16:14] fairwinds: ie. "dependencies": { "private-repo": "git+ssh://git@github.com:my-account/node-private-repo.git#v0.0.1", } [16:15] alessioalex: svn? [16:16] alessioalex: why would you use.. svn? [16:16] fairwinds: subversion resos [16:16] fairwinds: repos [16:16] alessioalex: yes I know [16:16] alessioalex: don't think it works with svn, but you better use git anywayz [16:17] cjm has joined the channel [16:18] fairwinds: alessioalex: I use subversion for my scm [16:18] EhevuTov has joined the channel [16:18] [[zzz]] has joined the channel [16:25] Alexanderrrrrr: I'm having a problem getting html2jade working. http://pastebin.com/NmiRuLJP [16:26] toopay has joined the channel [16:27] aah: who wins if I define a signal handler and I require a module that also requires a signal handler? [16:27] aah: how about process.onUncaughtException? [16:28] mape: If I want spawn a python script using child_process, shouldn't it emit data if I print "test \n\r\n\r" in the python script [16:28] aah: ooh, java-y. on('uncaughtException',... I mean. [16:28] k1ttty has joined the channel [16:29] mikeal has joined the channel [16:30] bnoordhuis has joined the channel [16:30] gxdssoft has joined the channel [16:31] chrispercol: anyone using nginx? my node.js and nginx work ok individually but when I proxy node through nginx it takes 20s to load a page...any thoughts? [16:32] rurufufuss has joined the channel [16:33] Vennril has joined the channel [16:33] slifty_corsair has joined the channel [16:34] mmalecki has joined the channel [16:36] Mokona has joined the channel [16:36] Wa has joined the channel [16:37] xerox: chrispercol: check the logs? [16:37] chrispercol: been there...nothing to suggest a problem [16:39] fairwinds: chrispercol: am using this combo without problems [16:40] chrispercol: fairwinds: I'll post my nginx config if you don't mind having a look [16:40] fairwinds: k [16:41] fairwinds: what version of node are you running btw [16:41] chrispercol: 0.4.12 [16:41] zkirill has joined the channel [16:42] fairwinds: k, on my servers I am 0.4.9 atm but am upgrading in a day or two [16:42] chrispercol: pastebin.com/eVYeFAZ4 [16:42] fairwinds: k, give me a sec [16:42] chrispercol: ta [16:47] mrpy has joined the channel [16:47] mrpy: . [16:47] mrpy: hey everyone [16:47] mrpy: anyone got https://github.com/kuchumovn/node-js-development-mode to work? [16:47] meandi has joined the channel [16:48] pandeiro has joined the channel [16:48] mrpy: on node 5.10 I am getting throw e; // process.nextTick error, or 'error' event on first tick -> TypeError: Cannot call method 'indexOf' of undefined [16:49] mrpy: researched few more options on windows but all seem largely outdated [16:50] EvRide has joined the channel [16:50] mrpy: hmm... looks like i'm back to php [16:50] mynyml has joined the channel [16:51] fairwinds: chripercol: I don't see anything wrong there. My servers are set up quite similar except all ssl. I am just using server instances as opposed to using upstream but what you have should be fine [16:52] fairwinds: my stuff is serving well over ssl [16:52] chrispercol: there's something odd going on but I can't get to the bottom of it [16:53] fairwinds: are you sure it is not the app? [16:53] fairwinds: or something else [16:53] markwubb_ has joined the channel [16:53] chrispercol: the app works grand on it's own...I've tried with and without express [16:54] fairwinds: you mean locally? [16:54] fairwinds: or on the server [16:55] chrispercol: locally all is good...I'm starting to wonder if the problem is related to the fact node is behind my router and I'm going out and back again [16:55] thinkt4nk has joined the channel [16:56] fairwinds: not sure I understand. I guess one thing I don't do myself is listen to all interfaces. ie. 0.0.0.0 [16:57] dimroc has joined the channel [16:57] `3rdEden has joined the channel [16:57] fairwinds: either just loopback at 127.0.0.1 or a specific ip [16:57] fra000 has left the channel [16:57] fairwinds: on my servers it is always a specific ip [16:58] fairwinds: an internal one [16:58] avdg has joined the channel [16:59] chrispercol: that's what it is...I'm testing my app through http://domain.com on a pc on the same local network the domain.com is pointing to and nginx is proxying to node...just tried page on cellular network and don't experience sames problems [16:59] saikat has joined the channel [17:00] zilch_ has joined the channel [17:00] fairwinds: ah [17:01] chrispercol: thanks for looking at my config... [17:01] fairwinds: np [17:01] criswell has joined the channel [17:02] adnasa has joined the channel [17:02] devongovett has joined the channel [17:02] gxdssoft has joined the channel [17:04] EhevuTov has joined the channel [17:05] hipsterslapfight has joined the channel [17:06] bnoordhuis has joined the channel [17:06] herbySk has joined the channel [17:08] broersa has joined the channel [17:08] zkirill has joined the channel [17:10] gxdssoft has joined the channel [17:15] nibblebot has joined the channel [17:17] Me1000 has joined the channel [17:17] i42n has joined the channel [17:18] i42n has joined the channel [17:19] ttpva has joined the channel [17:19] strevat has joined the channel [17:19] confoocious has joined the channel [17:19] confoocious has joined the channel [17:20] martin_sunset has joined the channel [17:21] Cev has joined the channel [17:22] AvianFlu has joined the channel [17:22] ryanallenbobcat has joined the channel [17:25] knifed has joined the channel [17:26] dgathright has joined the channel [17:28] smtlaissezfaire has joined the channel [17:29] githogori has joined the channel [17:29] meandi2 has joined the channel [17:31] JakeyChan has joined the channel [17:32] zkirill has joined the channel [17:33] wasabista has joined the channel [17:33] zkirill has joined the channel [17:34] TomY has joined the channel [17:34] pickels has joined the channel [17:38] brianseeders has joined the channel [17:38] cjm has joined the channel [17:38] strevat has joined the channel [17:39] daneroo has joined the channel [17:39] tylerstalder has joined the channel [17:39] Rob_ has joined the channel [17:39] dmitrig01 has joined the channel [17:39] saikat has joined the channel [17:40] daneroo: dnode question: can a simple node client connect to a dnode instrumented http server directly ? [17:40] flamboz has joined the channel [17:42] dubenstein has joined the channel [17:43] dubenstein has joined the channel [17:44] i42n has joined the channel [17:47] DPGame has joined the channel [17:48] WarheadsSE has joined the channel [17:48] zivester has joined the channel [17:48] WarheadsSE: Hey guys... :p ryah : Download reads "2011.10.10 v0.5.21 (unstable)" [17:48] WarheadsSE: OOps? [17:49] kenperkins has joined the channel [17:49] sonnym has joined the channel [17:49] cw3de: just a timewarp ;-) [17:49] DPGame: how performant is a array-"query" in an array with 320 subarrays and 180 subarrays per subarray? [17:50] DPGame: could it be slow with so huge amont of data? [17:50] ayaz has joined the channel [17:50] freewil has joined the channel [17:50] DPGame: every array[sub][sub2] is an object [17:50] freewil has joined the channel [17:53] DPGame: ACTION is rebooting his pc [17:54] chrixian has joined the channel [17:55] Corren has joined the channel [17:56] patcito has joined the channel [17:58] nibblebot has joined the channel [18:00] EhevuTov: DPGame, I'd think it would be O(1) if you already know the path, else it sounds like O(n^n) if you're just searching with no algorithm [18:01] WarheadsSE: Indexing in some way might be a goof idea. [18:01] WarheadsSE: *good [18:04] fzzzy has joined the channel [18:05] neurodrone has joined the channel [18:05] dmitrig01 has joined the channel [18:06] daneroo has joined the channel [18:06] cjm has joined the channel [18:07] daneroo: I'm trying to do node-to-node communications through dnode, any pointers ? [18:07] mmalecki: daneroo: hook.io [18:08] ank has joined the channel [18:09] daneroo: mmaleki, any chance I could do dnode-style rmi through that ? [18:09] daneroo: mmaleki, wow, thanks look exactly like what i was liooking for! [18:10] mmalecki: daneroo: :) [18:10] hetkat has joined the channel [18:11] DPG has joined the channel [18:11] DPG: how can i run "terminal" (ubuntu 11.10, kde) ... [18:12] markwubben has joined the channel [18:13] Corren has joined the channel [18:13] Corren: morning [18:14] jhurliman has joined the channel [18:16] Renegade001 has left the channel [18:18] dgathright has joined the channel [18:20] Cheery: baudehlo: are you there? :) [18:21] Morkel has joined the channel [18:23] AvianFlu: I just installed node v0.5.10 as my main node install. Everybody else should too. [18:24] AvianFlu: force-test everything! [18:25] WarheadsSE: :) [18:25] isaacs has joined the channel [18:26] WarheadsSE: ACTION hopes it cmpiles nicely on ARM [18:26] daneroo has joined the channel [18:26] Cheery: oh well. :) [18:27] jbpros has joined the channel [18:30] Dregond has joined the channel [18:31] herbySk has joined the channel [18:32] daneroo has joined the channel [18:34] Lingerance has joined the channel [18:35] daneroo has joined the channel [18:36] shaysm has joined the channel [18:38] cw3de has left the channel [18:41] liar has joined the channel [18:42] maletor has joined the channel [18:43] stagas has joined the channel [18:45] daneroo has joined the channel [18:46] Sorella has joined the channel [18:47] captain_morgan has joined the channel [18:47] herbySk has joined the channel [18:47] metellus has joined the channel [18:51] dmitrig01 has joined the channel [18:52] daneroo has joined the channel [18:52] kiffin_ has joined the channel [18:52] kiffin_: which is the latest stable release of node and how to git it? [18:53] quackquack has joined the channel [18:53] Cheery: http://nodejs.org/#download [18:53] gxdssoft has joined the channel [18:54] kiffin_: is it also compatable with latet version of npm? [18:55] Cheery: npm must be compatible with it [18:55] kiffin_: Cheery: thx [18:56] gxdssoft has joined the channel [18:58] dthompso99 has joined the channel [18:59] __tosh has joined the channel [19:00] ceej has joined the channel [19:08] stagas has joined the channel [19:08] boogyman has joined the channel [19:08] boogyman has joined the channel [19:09] Margle has joined the channel [19:13] mike5w3c_ has joined the channel [19:16] nodeuser has joined the channel [19:17] nodeuser: hi, I use socketio, when a user connects (.on('connection')), I put the socket in an array; if node.js restarts, the clients seem to reconnect but the .on('connection') is not fired, so the array remains empty [19:17] nodeuser: is there any way to refill the array? [19:18] alessioalex: yes [19:18] alessioalex: wait for the users to reconnect [19:18] alessioalex: if they leave their browsers open, they'll reconnect once the server is up again [19:18] gxdssoft has joined the channel [19:18] alessioalex: may take 30 seconds or so, depends [19:18] ayaz has joined the channel [19:18] nodeuser: on the server I see the reconnection, but it seems like .on('connect') is not fired [19:19] nodeuser: I'll try again [19:19] smathy has joined the channel [19:19] BulletBob has joined the channel [19:19] gut4 has joined the channel [19:20] AvianFlu: hey isaacs, I'm getting https://gist.github.com/1306384 while using npm programmatically in 0.5.10 [19:20] nodeuser: thanks, I see, never mind :P [19:20] AvianFlu: that line is require('tty') [19:20] AvianFlu: which still exists... and now I'm confused [19:20] nerdy_ has joined the channel [19:21] gxdssoft has joined the channel [19:25] pHcF has joined the channel [19:25] Frippe has joined the channel [19:28] PeeterHome has joined the channel [19:28] maushu has joined the channel [19:30] PeeterHome: Hello, I'm a rather newbie to Node.js. Been fiddling around with it & express js and I don't see a simple to include user managment package (signup / login / user groups). [19:30] PeeterHome: Could someone point me in the right direction @ what to google for? [19:30] Cheery: user management package... funny name [19:31] p1d has joined the channel [19:31] wrongle has joined the channel [19:31] Cheery: PeeterHome: I guess there wouldn't be such thing. but I can introduce some ideas to do it. [19:32] PeeterHome: There isn't a built package for user registration/login? Damn >.< [19:32] gartenstuhl has joined the channel [19:32] Cheery: probably not. but I can recheck [19:34] PeeterHome: hmm [19:34] PeeterHome: found this https://github.com/ciaranj/connect-auth [19:34] PeeterHome: Any idea if connect modules can be used with express js? [19:35] towski has joined the channel [19:36] jhurliman has joined the channel [19:36] voodootikigod_ has joined the channel [19:37] Cheery: PeeterHome: to be exact.. do you just look for a way to store information about user accounts or are you looking for a thing that handles HTTP Digest? [19:37] smathy: I have an "event style programming" sort of question. I know this code is wrong, but I just hacked it up quickly to give you an idea of what I'm trying to work through: https://gist.github.com/1306400 [19:38] gxdssoft has joined the channel [19:39] smathy: The question is really, how can I block? :) Although, more generally, how can I deal with these situations where I want to do something AFTER a bunch of non-blocking calls have been run? [19:40] Cheery: there may be a command which allows that.. but are you sure you want to block? [19:40] smathy: No, not sure I want to block at all :) I just can't work out how else to code: "do this after doing all these other things" [19:41] Cheery: you could make the in_foobar_queue take one or two functions that are called if you find the thing in queue :) [19:41] smathy: Cheery… sure, but I also want an "else" case. [19:41] Cheery: well. one that is called when it matches and another called when it doesn't [19:41] smathy: Cheery… ie. I want to do something different if the thing isn't found in the queue (sorry, that's not clear from my code). [19:42] Cheery: it is very well [19:42] avih has joined the channel [19:42] Cheery: many async code written in node.js this way has that property of having error handler. :) [19:42] voodootikigod_: does anyone know why expresso is no longer including -I / --include when running node 0.5.x? [19:42] voodootikigod_: and or if it is something that will be fixed? [19:42] smathy: Cheery… but how to get the "if it doesn't" thing with non-blocking calls? [19:43] smathy: ...I suppose I'd just have to have queue_array.length nested functions? [19:43] Skipants has joined the channel [19:43] smathy: Each only being called if the value is not found, to check the next value? [19:44] Cheery: yeah. it looks similar to manifest -pattern. :) [19:44] smathy: ...and I guess this is where things like Tame come into their own. [19:45] Cheery: Tame? [19:45] smathy: http://tamejs.org/ [19:47] Cheery: yep [19:47] Cheery: there would be lot to say about the complicatedness async code has caused into javascript [19:47] Cheery: and how the language doesn't just stand on it. :) [19:49] Cheery: await in tamejs is equivalent to that manifest pattern btw. [19:49] Cheery: smathy: in games and such you want to load game resources all at once.. and get rid of them later when you think they aren't useful. [19:49] smathy: It's funny because that TameJS structure immediately reminds me of synchronized blocks in thread programming. It's like there are problems where blocking is just necessary (or at least: far simpler). [19:50] Cheery: well.. async programming is way to go and way much more cooler than threads. :) [19:50] zemanel has joined the channel [19:51] Cheery: but here you start to have a need for the concept of continuation, hard. [19:52] Cheery: and not only simple continuations but handling if/else as a branch in your continuation flow. [19:52] wmage has joined the channel [19:52] smathy: Right. [19:52] Cheery: program flow needs to split, join again later.. or do whatever damn it needs to do. :) [19:53] avih_ has joined the channel [19:53] jhurliman has joined the channel [19:54] deedubs has joined the channel [19:54] Cheery: another thing is that we could almost declare exceptions dead in javascript and node.js [19:54] Skipants has joined the channel [19:54] Cheery: there's an excellent reason why. [19:55] miccolis has joined the channel [19:56] skampy has joined the channel [19:56] gxdssoft has joined the channel [19:56] devongovett has joined the channel [19:57] avih has joined the channel [20:01] iivvoo has joined the channel [20:03] martin_sunset has joined the channel [20:03] kriszyp has joined the channel [20:03] PeeterHome: Cheery: This is more or less all I wanted @ http://nodetuts.com/tutorials/26-starting-with-everyauth.html#video [20:03] versicolor has joined the channel [20:03] fzzzy has joined the channel [20:05] Cheery: okay [20:08] ryanrolds_w has joined the channel [20:10] eddyb has joined the channel [20:11] Cheery: PeeterHome: so you were looking for multiplexed password solution. :) [20:11] skampy has left the channel [20:11] PeeterHome: Well, for starters any solution would've worked [20:11] PeeterHome: But that's better as I can expand on it easily when I need to provide more authentication methods [20:12] boltR has joined the channel [20:12] Cheery: I've not liked this way of authentification.. but well it seems to have become a norm. [20:12] PeeterHome: Why dont you like it? [20:13] pickels has joined the channel [20:13] Cheery: it's vulnerable to whatever third party you're using to authentificate from. [20:14] ryanfitz has joined the channel [20:15] Cheery: but in other ways it's nice sort of to be able to authenticate from another service [20:17] eddyb: ok... so... node use waf for building? [20:17] eddyb: yepp [20:18] eddyb: and the license is...? [20:19] ceej has joined the channel [20:19] eddyb: weird enough, the license is there, but I have no idea what type it is XD [20:20] Charuru has joined the channel [20:23] sharkbird has joined the channel [20:24] eddyb: the question is... [20:24] eddyb: can I reuse code in node while keeping node's license and pointing to the authors, in my own project? [20:26] eddyb: hmm, what is more "superior" right now? [20:26] eddyb: waf or gyp? [20:28] fangel has joined the channel [20:29] shift_ has joined the channel [20:31] zemanel has joined the channel [20:32] hetkat has left the channel [20:33] Sorella_ has joined the channel [20:34] schwab has joined the channel [20:35] cody-- has joined the channel [20:40] mandric has joined the channel [20:42] scottschecter has joined the channel [20:44] mikeal has joined the channel [20:46] konobi: eddyb: node is MIT... v8 is BSD [20:46] eddyb: konobi: thanks [20:46] eddyb: konobi: any idea on my other questions [20:47] _dc has joined the channel [20:47] metellus has joined the channel [20:47] blup has joined the channel [20:48] eddyb: ? [20:48] EvRide has joined the channel [20:49] voodootikigod_ has joined the channel [20:49] eddyb: right now I see only two options, waf and gyp. thanks a good thing, scons and cmake would've made four options and two is enough for me [20:50] eddyb: wait, why is scons mentioned in wscript? [20:50] eddyb: really? [20:50] konobi: scons == wscript [20:50] eddyb: wait, what? [20:50] eddyb: then waf is...? [20:51] konobi: http://en.wikipedia.org/wiki/Waf [20:51] materialdesigner has joined the channel [20:51] eddyb: I hope I won't have brain damage tomorrow morning [20:52] eddyb: lucky me [20:53] eddyb: konobi: nope, scons is used for v8 only [20:53] eddyb: now, gyp [20:53] konobi: eddyb: waf sits atop scons [20:53] eddyb: really? [20:54] konobi: waf is a PITA... so ryan decided to move to gyp... v8 is moving that way too i believe [20:55] eddyb: YES [20:55] eddyb: ok, that is good news [20:55] eddyb: PsITA must die [20:55] RexM has joined the channel [20:56] eddyb: konobi: for the record, what I'm doing is taking my framework written atop v8 and reproducing node's API in it [20:56] eddyb: only the C++ code will be different (and quite smaller on my side) [20:56] rendar: gyp? [20:57] eddyb: konobi: any ideas what state is windows in? [20:57] eddyb: not supported, barely supported? [20:57] konobi: supported [20:57] konobi: 0.5 -> 0.6 [20:57] eddyb: with visual c++? [20:57] RexM: If I have multiple domains pointed at the same application ex: .domain.com, how do I figure out the domain that's being requested? currently if I look at request.url, it's just / [20:57] konobi: yup... hence use of gyp [20:57] eddyb: my approach requires C++11, so I'm trying to stick with mingw [20:57] sh1mmer has joined the channel [20:57] eddyb: it served me well in the past [20:58] rendar: why gyp instead of scons? [20:58] eddyb: I may beat node at windows availability :P [20:58] Margle has joined the channel [20:58] eddyb: konobi: ok, I got to go. thanks for the info [20:58] eddyb: night guys [20:59] dmitrig01 has joined the channel [20:59] PeeterHome has joined the channel [21:02] konobi: eddyb: http://nodejs.org/#download # see the "native windows executable" [21:03] boltR has joined the channel [21:05] konobi: RexM: it's a header [21:06] RexM: thanks, i'll start looking in the headers [21:06] konobi: RexM: there's also the connect-vhost middleware [21:07] Squeese has joined the channel [21:07] jimt has joined the channel [21:07] thisandagain has joined the channel [21:08] dgathright has joined the channel [21:10] gut4 has joined the channel [21:11] DennisRasmussen has joined the channel [21:12] pHcF has joined the channel [21:14] mikeal has joined the channel [21:14] joshkehn has joined the channel [21:15] gxdssoft has joined the channel [21:17] mikeric has joined the channel [21:18] boogyman has left the channel [21:20] maligree has joined the channel [21:20] strevat has joined the channel [21:23] scott_gonzalez has joined the channel [21:24] socketio\test\36 has joined the channel [21:25] vicapow has joined the channel [21:29] rhdoenges has joined the channel [21:30] aguynamedben has joined the channel [21:31] mikeric has joined the channel [21:33] Circlefusion has joined the channel [21:35] OneOfOne: how evil is it to patch a global object in a module? [21:35] OneOfOne: (for example to provide Function.extend [21:35] OneOfOne: global.Function.prototype.extend = function() {..... } [21:38] jldbasa has joined the channel [21:45] mmalecki: OneOfOne: kittens die. [21:45] mikeal has joined the channel [21:45] OneOfOne: mmalecki: nooo not kittens noooo :( [21:46] mmalecki: OneOfOne: myModule.functionExtend(, parameters) is way better [21:47] githogori has joined the channel [21:51] TomY: OneOfOne, I kinda like the way underscore does it: http://documentcloud.github.com/underscore/#styles [21:54] kriszyp has joined the channel [21:55] mraleph has joined the channel [21:55] nerdy_ has joined the channel [21:55] shaysm has left the channel [21:56] LTC has joined the channel [21:56] Aria has joined the channel [21:57] shaysm has joined the channel [21:57] shaysm has joined the channel [22:03] briemens has joined the channel [22:03] dmitrig01 has joined the channel [22:04] marcello3d has joined the channel [22:07] tylerstalder has joined the channel [22:07] dget has joined the channel [22:07] boltR has joined the channel [22:11] dmitrig01 has joined the channel [22:12] kriszyp has joined the channel [22:13] ryanfitz has joined the channel [22:14] joshkehn has left the channel [22:15] thisandagain has joined the channel [22:18] jimt_ has joined the channel [22:18] EhevuTov has joined the channel [22:19] voodootikigod_ has joined the channel [22:20] mape: anyone tried fs.watch on large dirs? [22:21] ryanfitz has joined the channel [22:21] mape: or is it just a bad idea? [22:22] Tobsn: mape, i would look into the source and see how they do it [22:22] Tobsn: i have it open here but i cant find watch [22:23] mape: I assume they just add a watch for every single file in the dir [22:23] Tobsn: https://github.com/joyent/node/blob/master/lib/fs.js#L662 [22:23] Tobsn: its all around this area [22:24] Tobsn: but i cant find it in the C code [22:25] dgathright has joined the channel [22:25] Tobsn: https://github.com/joyent/node/blob/master/src/fs_event_wrap.cc [22:25] Tobsn: i guess its that [22:26] Aria: It uses inotify on Linux. [22:26] Aria: https://github.com/joyent/libuv/blob/master/src/unix/linux.c [22:26] Aria: The real code is in libuv. [22:26] Tobsn: aaah [22:27] Aria: The strict separation is win. They've done a bang-up job with libuv. [22:27] Aria: It's got a great API, and it's lowered the surface area and variety of Node's API. [22:27] deedubs1 has joined the channel [22:27] mape: Aria: but am I better of sticking to using find to get info on changed files in a huge dir rather then using the new fs.watch? [22:27] amiller has joined the channel [22:28] Aria: What's 'huge'? [22:28] rayfinkle: is there a specific unit testing framework that has a notable advantage over the others? [22:28] rayfinkle: \ [22:28] Aria: inotify scales pretty high. [22:28] mape: seems heavier to add a watcher to all files, plus it wouldn't find new files? [22:28] Tobsn: what is it looking out for when watching a directory? [22:28] mape: changes [22:28] Aria: You watch directories to find new files. [22:28] smathy has joined the channel [22:28] Tobsn: on time of directory? [22:28] mape: https://github.com/mape/node-hotcode [22:28] mape: looking to updating that to use fs.watch [22:28] jimt has joined the channel [22:29] Aria: How big is 'huge' ? [22:29] Tobsn: oh [22:29] Tobsn: yeah go for it [22:29] Tobsn: thats never "huge" [22:29] Tobsn: just check for all .js files [22:29] Aria: Oh. Yeah. [22:29] Aria: That's tiny by inotify standards. [22:29] Tobsn: yep [22:29] mape: neat [22:29] Tobsn: large would be file pointer limit large hehe [22:29] brianseeders has joined the channel [22:29] mape: now I just have to get it working with the latest version of node on my debian server :S [22:30] Tobsn: and even if you start watching all modules in a HUGE project you maybe have a couple hundred files [22:30] Tobsn: maybe 1000+ but thats it [22:30] deedubs1 has left the channel [22:30] Tobsn: now someone tell me what kind of module i can plug on top of restify to handle all the functions better ;) [22:30] chilts: rayfinkle: I think it's all about personal preference, but I like node-tap : https://github.com/isaacs/node-tap [22:31] rayfinkle: man there are a lot of them for node [22:31] Aria: tap is awesome. [22:31] chilts: it seems like it [22:31] chilts: but yeah, I've used tap in my old Perl days and knew I liked it then [22:32] chilts: I find all the others to be quite big, and I just want something simple that works [22:32] Aria: Yeah. Tap then. [22:32] chilts: and that I know the surface area of :) [22:32] Aria: vows is awesome, but big and doesn't output tap. [22:32] Aria: "big" .. still small, but bigger than tap. [22:32] chilts: do people use vows more for testing web apps? [22:33] chilts: that might be a random and non-applicable question :) [22:33] strevat has joined the channel [22:33] jaminja has joined the channel [22:34] Aria: Nah. [22:34] Aria: Just for people who prefer the 'behavioral' style. [22:34] mape: Tobsn: 5582 files :S in a wordpress project with svn initiated [22:34] Tobsn: still good [22:35] AvianFlu: 5582 reasons I don't use wordpress or svn! XD [22:35] mape: AvianFlu: Some employers don't care :) [22:35] mape: And solving problems for people that are hurting is more fun [22:36] einaros: hrm, is there a good and up-to-date websocket client for node atm? [22:36] digman543 has joined the channel [22:36] yozgrahame has joined the channel [22:37] ej__ has joined the channel [22:37] deedubs has joined the channel [22:37] Tobsn: nobody here ever worked with restify? [22:38] AvianFlu: lol true mape [22:39] aeo has joined the channel [22:40] aeo: So I'm getting the error "FATAL ERROR: JS Allocation failed - process out of memory" [22:40] aeo: It's not coming with any sort of stack trace or anything like that. :/ [22:40] aeo: Do you guys know how one goes about fixing this sort of thing? [22:41] monokrome: aeo: V8 ran out of RAM to work with. It has a hard coded memory limit. [22:41] aeo: monokrome: I realize this. It means there's probably a memory leak in my code. Do you know how I should go about finding it? [22:41] aeo: Most Node errors come with a stack trace which makes it relatively easy. [22:41] aeo: This one doesn't. :/ [22:42] Tobsn: strace [22:42] Tobsn: maybe [22:42] monokrome: Is it a memory leak, or are you just doing something that uses a lot of memory? [22:44] AvianFlu: that's the gentler form of an infinite loop [22:44] Aria: strace won't show memory much. Valgrind is the tool for that, but that's a pain. [22:44] AvianFlu: the other being "max call stack size exceeded" [22:44] perezd has joined the channel [22:44] AvianFlu: node-inspector and v8-profiler would be better, probably [22:45] aeo: monokrome: My guess is a memory leak. I can't think of anything that uses _tons_ of memory. [22:45] AvianFlu: so what's the application trying to do? [22:45] aeo: AvianFlu: Simulate a Pokemon battle. :P [22:46] AvianFlu: nice. [22:46] jacobolus has joined the channel [22:46] deedubs: I actually think that's what ryah was initially hoping node would one day accomplish [22:47] AvianFlu: aeo, is this happening right away? [22:47] AvianFlu: or after a while [22:47] aeo: AvianFlu: It's after a while [22:47] aeo: Fairly rarely. [22:47] aeo: Usually another part of my code crashes and I discover a bug in my code [22:48] aeo: But every once in a while it runs out of memory before that happens [22:49] aeo: My code isn't exactly the most optimized thing in the world. [22:49] AvianFlu: yeah, you be leakin' memory [22:49] aeo: But I can't imagine 10 or so users and 2 battles is enough to run out of memory [22:49] aeo: No matter how badly optimized my code is [22:49] AvianFlu: the approach that would take the least thinking: put a console.log next to places where you're making a new one of something [22:49] AvianFlu: see if you're accidentally doing something a whole lot [22:50] AvianFlu: see if there are places you can delete something [22:50] AvianFlu: the word 'new' in a tight loop, for example, would bear looking at [22:50] einaros: I don't think I've ever managed to leak memory in js [22:51] aeo: The word "new" happens when someone connects, and when someone creates a battle. I'm pretty sure that's it. [22:51] aeo: You know [22:51] aeo: I just realized [22:52] aeo: The console's been spamming "possible memory leak detected" [22:52] aeo: You'd think I would've made the connection that my running out of memory has to do with that [22:52] perezd has joined the channel [22:52] einaros: hehe [22:52] dhasenan_ has joined the channel [22:52] Tobsn: aeo, strace? [22:52] aeo: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxLi [22:52] aeo: steners() to increase limit. [22:53] DPGame has joined the channel [22:53] dmitrig01 has joined the channel [22:53] Tobsn: aeo [22:53] Tobsn: http://serverfault.com/questions/88997/how-can-i-determine-the-cause-of-an-apparent-memory-leak-in-my-apache-php-based [22:53] aeo: Tobsn: http://pastebin.com/FkWDihdg [22:54] aeo: is an example error message [22:54] aeo: It's been happening in socket.io [22:54] Tobsn: strace [22:54] aeo: So I've had no idea how to deal with it [22:54] Tobsn: its a command [22:54] aeo: Where does it go? [22:54] DPGame: if anybody have to store variables in the client, use localStorage ... its easy and great :D [22:54] Tobsn: strace node app.js [22:54] Tobsn: its a command [22:54] Tobsn: ;) [22:54] Tobsn: linux [22:54] Tobsn: it traces your whatever [22:54] monokrome: DPGame: just remember a fallback for old browsers! :) [22:55] Tobsn: see the stackoverflow article [22:55] einaros: aeo: the xhr bits of socket.io may very well leak. what happens if you poke it through websockets? [22:55] aeo: einaros: What do you mean? [22:55] DPGame: mono yes, but if i have to use canvas i could use localStorage ;D [22:55] einaros: (although the leak is probably you adding event listeners you aren't cleaning up) [22:55] Tobsn: aeo, another one: http://tstarling.com/blog/2010/06/measuring-memory-usage-with-strace/ [22:55] DPGame: every browser which supports canvas supports localStorage... i think [22:55] einaros: aeo: meaning: try chrome 14+, do the same and see if it works [22:55] aeo: einaros: I'm supposed to clean up event listeners? :S This explains a lot. [22:56] aeo: einaros: Well, I mean, I can't guarantee what browsers my users use. :S [22:56] einaros: aeo: well that depends. if what you are listening on is permanent, while the listening party is transient: yes you have to clean it up [22:56] einaros: otherwise the reference from the listened-upon to the listener will keep the listener alive [22:56] einaros: and the gc will never collect it [22:57] aeo: http://dev.pokemonshowdown.com/data/battle-server.js [22:57] aeo: This is my app.js, can you tell me if I'm using event listeners correctly? :S [22:57] einaros: aeo: regarding the xhr bits, I don't really know how they act. but I've used socket.io extensively, and I built a couple of the websocket parsers there, so I know that most of it is fine [22:58] DPGame: aeo there is a big security issue - i think [22:58] einaros: ACTION hits the sack [22:59] DPGame: the http seems to be able to access every file on your server [22:59] DPGame: *http-server [22:59] aeo: DPGame: Oh? [23:00] DPGame: try http://server.com/../../examplefile [23:00] aeo: What do you mean? The /data/ directory of my server? The app is open-source... [23:00] DPGame: no [23:00] aeo: ...oh [23:00] DPGame: every file on your server^^ [23:00] aeo: DPGame: Oh. :S That code was copy/pasted from socket.io [23:01] ph^ has joined the channel [23:01] aeo: I don't actually serve any files except socket.io.js [23:01] DPGame: aeo yes [23:01] aeo: I'd delete that code entirely, except I don't know what socket.io does with it. :S [23:01] DPGame: but on the server are other files [23:01] DPGame: and you can access all of them... [23:02] DPGame: on your whole hdd [23:02] aeo: wait [23:02] aeo: wait [23:02] aeo: what [23:03] aeo: how? [23:03] aeo: Which server? [23:03] aeo: What is "server.com"? [23:03] DPGame: your node.js server which serves the files [23:04] aeo: It's not doing that for me... [23:04] DPGame: sure? [23:04] aeo: Pretty sure. [23:04] DPGame: request = require('request'); function handler (req, res) { fs.readFile(__dirname + '/index.html', function (err, data) { if (err) { res.writeHead(500); return res.end('Error loading index.html'); } res.writeHead(200); res.end(data); }); } [23:04] tuhoojabotti: gist.github.com [23:05] tuhoojabotti: That's over 3 lines, also a mess. [23:05] aeo: Yeah, that code serves up __dirname + '/index.html' [23:05] aeo: Not "any file" [23:05] aeo: Or am I missing something? :S [23:05] DPGame: -.-'' fail :X [23:06] DPGame: sry for wasting your time :> [23:06] DPGame: '/index.html' haven't read this -.-'' [23:06] DPGame: why it serves index.html? [23:07] aeo: Because it was copy/pasted from socket.io [23:07] aeo: Because socket.io has horrible documentation [23:07] postwait has joined the channel [23:07] aeo: So all I can do is copy/paste their example code [23:08] DPGame: you don't have to serve the index.html file via node.js [23:08] aeo: I don't actually have an index.html file [23:09] aeo: So do I just do [23:09] DPGame: oh :D [23:09] aeo: require('http').createServer() [23:09] aeo: then? [23:09] DPGame: wait a second [23:09] aeo: and then io = require('socket.io').listen(app) ? [23:09] DPGame: need to look for my code on my extern hdd [23:09] marcello3d has joined the channel [23:10] DPGame: var socketIO = require('socket.io'); [23:11] DPGame: server.sockets.on ...... [23:11] DPGame: server = socketIO.listen(port); [23:12] neurodrone has joined the channel [23:14] aeo: DPGame: http://dev.pokemonshowdown.com/data/battle-server.js [23:15] aeo: Like this? [23:15] joshkehn has joined the channel [23:15] DPGame: should work [23:15] joshkehn has left the channel [23:15] DPGame: yes [23:15] DPGame: try removing the old code and the require(http) [23:16] DPGame: http://dev.pokemonshowdown.com/data/pokedex-mini.js <--- what the fuck xD [23:17] aeo: lol "This page is in Czech" [23:17] aeo: DPGame: That's the table for animated pokemon sprites. [23:17] aeo: It has a weird name. :S [23:18] DPGame: why there are so many sprites already? [23:18] stagas has joined the channel [23:18] wilmoore has joined the channel [23:18] cognominal_ has joined the channel [23:18] aeo: DPGame: What do you mean? [23:19] lyte has joined the channel [23:19] DPGame: i thought the game couldn't be called "game" yet [23:20] aeo: DPGame: err, it's fully working, other than crashing from memory leaks [23:20] DPGame: i thought it's in beginning development [23:20] DPGame: how long did you hack this game? [23:22] kylefox has joined the channel [23:22] kylefox has left the channel [23:22] DPGame: and how it detects my username if i reload the window? [23:23] chilts: wtf, DPGame is kicking my ass [23:23] chilts: I think [23:23] DPGame: :P [23:23] DPGame: first time playing pokemon xD [23:23] chilts: no idea what I was doing [23:24] ej_ has joined the channel [23:25] AAA_awright: http://dev.pokemonshowdown.com/data/pokedex.js is cooler [23:26] AAA_awright: DPGame: er, ^ [23:26] DPGame: :O [23:26] AAA_awright: aeo: Is that your project? [23:27] dmitrig01 has joined the channel [23:27] wbednarski has joined the channel [23:27] DPGame: chilts left .... [23:27] chilts: sorry :) [23:27] chilts: gotta get my node js library to Amazon SES workign :) [23:27] chilts: ACTION has done SNS, SQS and SimpleDB [23:28] lyte has joined the channel [23:28] lyte has joined the channel [23:28] chilts: will do S3 and EC2 soon :) [23:29] DPGame: understood no word [23:31] DPGame: no matter.... gtg now .. bye@all [23:32] mike5w3c has joined the channel [23:36] joshkehn1 has joined the channel [23:36] CarterL has joined the channel [23:36] joshkehn2 has joined the channel [23:38] stagas has joined the channel [23:40] digman543 has joined the channel [23:42] mmalecki has joined the channel [23:44] aeo: AAA_awright: Yep, that's my project. [23:45] joshkehn2 has left the channel [23:48] stagas has joined the channel [23:48] joshkehn has joined the channel [23:52] neerolyte has joined the channel [23:52] joshkehn has left the channel [23:52] shaysm has left the channel [23:52] sh1mmer has joined the channel [23:53] dmitrig01 has joined the channel [23:58] gxdssoft has joined the channel [23:59] dget has joined the channel [23:59] Tobsn: good simple middleware?