[00:00] avex: i am looking for a node web analytics app. i have seen hummingbird but can anyone point me towards something else? [00:01] micheil: hmm, observer.no.de? [00:01] micheil: it's "closed source", but a node.js powered analytics app that is awesome [00:02] avex: i tried it earlier, but it has a 500 error [00:02] avex: great error page! [00:02] micheil: hmm.. [00:02] micheil: I'll mention it to the developer when I see him tomorrow. [00:03] liveink has joined the channel [00:03] chris-tina has joined the channel [00:03] tokumine has joined the channel [00:06] [[zzz]] has joined the channel [00:07] shanez_ has joined the channel [00:07] gregmoreno has joined the channel [00:10] jscheel has joined the channel [00:10] jscheel has joined the channel [00:10] kmwallio has joined the channel [00:12] Lingerance: ryanrolds: What does Cast do? [00:13] mynameisbender has joined the channel [00:13] ryanrolds: It's a deployment system. http://cast-project.org [00:13] Lingerance: Ready.js? [00:13] DennisRasmussen has joined the channel [00:14] willwhite has joined the channel [00:14] jmoyers: blech [00:14] jmoyers: automatic linting [00:14] dreamdu5t: Those headers lack contrast, yuck. [00:15] Sami_ZzZ has joined the channel [00:15] StanlySoManly has joined the channel [00:17] ryanrolds: It handles deployment to servers. It allows you bundle and version you app, put it on one or more of your servers. Has a client and rest api for managing the bundles and the resulting services. [00:17] b52: how do upgrade all packages i installed using npm? [00:18] maxogden: b52: if you have a package.json you can just do 'npm install' [00:18] sean___ has joined the channel [00:18] maxogden: which is to say, you should have a package.json [00:18] sean___: Hey guys, i just got an error [00:19] jmoyers: ACTION waits [00:19] jmoyers: ACTION for the error [00:19] dylang has joined the channel [00:19] sean___: 1 second [00:19] maxogden: haha [00:19] maxogden: sleep(1000) [00:19] maxogden: oh wait [00:20] maxogden: npm install node-fiber [00:20] maxogden: phew now i can block [00:20] StanlySoManly has joined the channel [00:20] b52: maxogden: ? [00:20] maxogden: :D [00:20] b52: i want to upgrade all packages in my node_modules [00:20] sean___: "/home/Sean/node/wscript:228: error: could not configure a cxx compiler!" [00:20] maxogden: b52: i would recommend using a package.json to manage your dependencies [00:20] mAritz: b52: npm update [00:21] Lingerance: sean___: Usually that means you don't have g++ or a C++ compiler. [00:21] b52: i simply want to update a package but "npm update " doesnt do the trick [00:21] dreamdu5t: You may have installed it globally, in which case you might need to do npm update -g [00:21] ryanrolds: sean___: What OS? [00:22] b52: http://paste.pocoo.org/show/481392/ but 2.2.0 is the current stable one [00:22] sean___: Windows 7 [00:22] sean___: hmm im sure i installed g++ when setting up cygwin [00:23] jmoyers: sean___ linux vm ;-)? [00:23] te-brian2 has joined the channel [00:23] blaenk has joined the channel [00:23] blaenk has joined the channel [00:24] sean___: How do i install npm? I just got the error 'npm not found' [00:24] ryanrolds: sean___: http://npmjs.org/ [00:24] StanlySoManly has joined the channel [00:25] JaKWaC_ has joined the channel [00:25] b52: mAritz maxogden why doesnt update work? [00:26] EagleCoder has joined the channel [00:27] issackelly_ has joined the channel [00:27] mAritz: b52 not sure, but might be because it's extraneous [00:27] sean___: Wait, do i install node before NPM? [00:28] mAritz: yes [00:29] b52: what does extraneos mean? [00:29] davidbanham has joined the channel [00:29] dgathright has joined the channel [00:29] mAritz: b52: that it's not required by any package.json or dependency [00:29] mAritz: but i don't really think that's it [00:29] mAritz: tried npm install mongoose@2.2.0 ? [00:30] b52: i added mongoose to packaes json, now the update thingy works [00:30] jmoyers: b52 whats the problem? https://gist.github.com/1238777 [00:30] b52: its still werid though [00:30] jmoyers: update works just fine for me [00:31] b52: not if i got a package.json and the package to update is extraneous [00:31] mAritz: it should though [00:32] dreamdust has joined the channel [00:32] darshanshankar has joined the channel [00:33] tmcw has joined the channel [00:33] jmoyers: it doesn't [00:33] zeade has joined the channel [00:33] b52: thats the point [00:33] mAritz: really? [00:33] mAritz: :( [00:34] jmoyers: looking at the code, sec [00:34] micheil has joined the channel [00:35] tmcw has joined the channel [00:37] amigojapan has joined the channel [00:37] daneroo has joined the channel [00:38] JaKWaC has joined the channel [00:38] daneroo has left the channel [00:38] daneroo has joined the channel [00:39] jarjar500 has joined the channel [00:39] daneroo: can I use dnode on cloudfoundry (without foregoing the use of websockets ?) [00:39] zeade has joined the channel [00:40] pizthewiz has joined the channel [00:40] davidascher has joined the channel [00:41] daneroo: or better which socet.io transports can be used on node.js at cloudfoundry.com ? [00:42] kimico has joined the channel [00:42] darshanshankar: daneroo: not websockets [00:42] darshanshankar: you'll have to explicitly disable it [00:42] mandric has joined the channel [00:42] daneroo: ok, because websocket uses another port right ? [00:43] julioj has joined the channel [00:43] darshanshankar: daneroo: no its more complicated than that. web socket thru proxies is the issue [00:44] jmoyers: mAritz b52 looks intentional to me https://github.com/isaacs/npm/blob/master/lib/outdated.js#L105-111 [00:44] jmoyers: not sure about the semantics, but i'd expect that too [00:44] daneroo: ok, can you point me to something practical to get up on that: I'd like dnode (socket.io) on cloudfoundry, and later behind an apache reverse proxy. ? any pointers ? [00:44] boltR has joined the channel [00:45] mike5w3c_ has joined the channel [00:46] b52: why do you expact that "npm update MY_PACKAGE" only updates the package if its a dependency your youve listed it in your package.json? you can install it wouthout listing it there so you should be able to update it without listing it [00:47] darshanshankar: daneroo: we're about to write a blog post about how to run nowjs (which uses socket.io) on cloudfoundry. I imagine you can follow some of the same steps to get dnode running on cloudfoundry [00:47] random123 has joined the channel [00:47] b52: doesnt look like intuitive behaviour to me [00:47] JakeyChan has joined the channel [00:47] darshanshankar: for socket.io, if you write a basic socket.io app and just explicitly enable xhr-polling, you should be able to get it running on CF [00:47] daneroo: darshanshankar: that sounds fantastic: who is WE ? [00:48] darshanshankar: we = @nowjsteam [00:48] jmoyers: i wouldn't expect it, i was saying i would expect the opposite [00:48] jmoyers: im making a patch right now :P [00:48] DennisRas has joined the channel [00:48] b52: oh ok, my fault [00:49] darshanshankar: daneroo: one of our open source projects, nowjs, is a lot like dnode. the blog post will tell you how to get up and running on CF [00:49] daneroo: ok, i'm follwing you. thanks for the help [00:49] darshanshankar: sure! [00:51] infynyxx has joined the channel [00:52] AvianFlu has joined the channel [00:53] MooGoo: is it possible to use node's v8 without actually loading any of node [00:56] CarterL has joined the channel [00:57] bnoordhuis: MooGoo: sure, v8 compiles to a lib or a simple shell [00:58] davidascher has joined the channel [00:59] JakeyChan has joined the channel [00:59] daneroo: darshanshankar: can you do 'rooms' with nowjs ? [00:59] blueadept: tjholowaychuk: you know of a good JSON validator that works in tandem with mongoose? i'm having trouble with commonjs-utils.validate [01:00] skm has joined the channel [01:00] djQuery has joined the channel [01:00] sean___: When installing Node with the /configure command I got another error: [01:00] gregmoreno has joined the channel [01:00] djQuery: grr tring to get node running on fresh ubuntu box and having troubles installing npm [01:01] sean___: Checking for library util : 0 [main] python 5692 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\_functools.dll to same address as parent: 0x360000 != 0x3E0000 [01:01] djQuery: Cannot find module graceful-fs [01:02] matyr has joined the channel [01:03] albertosheinfeld has joined the channel [01:03] bnoordhuis: sean___: it's a cygwin bug [01:04] EyePulp has joined the channel [01:06] jtrudeau has joined the channel [01:07] sean___: So i cant install? [01:08] meso has joined the channel [01:09] bnoordhuis: sean___: you'll have to some digging, maybe upgrade cygwin [01:11] Isaiah has joined the channel [01:13] JSManiacs has joined the channel [01:13] smus has joined the channel [01:16] towski has joined the channel [01:16] smus_ has joined the channel [01:16] bingomanatee_: Anyone feel like playing in a foursquare meetup? [01:17] ckpcw has joined the channel [01:18] ckpcw has left the channel [01:19] cody-- has joined the channel [01:22] cody-- has joined the channel [01:23] ion-_ has joined the channel [01:24] ion-_: there a way to make a require re-load from disk? [01:24] k1ttty has joined the channel [01:25] jmoyers: b52 https://github.com/isaacs/npm/pull/1452 - this fixes it, we'll see if it lands [01:26] cody-- has joined the channel [01:26] enhydra has joined the channel [01:26] sivy has joined the channel [01:28] JaKWaC_ has joined the channel [01:29] bnoordhuis: ion-_: require.cache [01:30] ion-_: bnoordhuis: thanks [01:30] ion-_: dunno how i missed that [01:30] ion-_: obv it doesnt work for builtin libs :P [01:30] ion-_: cool [01:31] bnoordhuis: the built-in libs are not read from disk, they're rolled into the node binary [01:32] anoop has joined the channel [01:32] ion-_: right [01:34] jtrudeau has joined the channel [01:34] daneroo has joined the channel [01:35] bnoordhuis: dutch noders (those of you who are awake): http://news.ycombinator.com/item?id=3029822 [01:36] bnoordhuis: ACTION is going [01:37] boehm has joined the channel [01:37] mynyml has joined the channel [01:39] McMAGIC--Copy has joined the channel [01:39] Murvin has joined the channel [01:40] nerdy_ has joined the channel [01:41] Murvin: if my mongo is disconnect or down.. even I turn it back on, it still disconnect. any way to auto reconnect? [01:41] harthur has joined the channel [01:42] albertosheinfeld has joined the channel [01:42] tylerstalder has joined the channel [01:43] ambroff has joined the channel [01:44] dominictarr: rauchg, 3rdeden: is there any docs available on how socket.io works over the different transports? [01:44] cjm has joined the channel [01:45] fxspark has joined the channel [01:46] fxspark: Hi all, i'm having trouble installing npm for node. Are there any other package mangers I can use instead? [01:47] dominictarr: there is one written in python, but npm should work. [01:47] dominictarr: what platform are you on? [01:48] fxspark: Linux centos [01:48] dominictarr: use npm [01:48] Murvin: wat's the error [01:48] fxspark: I described the issue here: https://github.com/isaacs/npm/issues/1448 [01:48] fxspark: but haven't been resolved yet. Need to get up and running soon [01:48] dominictarr: curl npmjs.org/install.sh | sudo sh ? [01:49] Murvin: sudo both [01:49] djQuery: got it workin now [01:49] fxspark: Yeah, tried all that. No luck. [01:50] StanlySoManly has joined the channel [01:51] dominictarr: oh that is a weird one... [01:51] fxspark: :( [01:52] diorahman has joined the channel [01:52] StanlySoManly has joined the channel [01:52] apoc has joined the channel [01:52] dominictarr: it looks like there is some thing wrong with /tmp [01:52] dominictarr: ls /tmp ? [01:53] fxspark: Is there a pastebin i can use.. the result is gonna be very long [01:53] dominictarr: no, scratch that. [01:54] fxspark: k.. what could be wrong with /tmp [01:54] dominictarr: it says it expectei that error [01:54] dominictarr: no, tmp is ok. [01:54] rootslab has joined the channel [01:55] sub_pop has joined the channel [01:55] dominictarr: the trace was confusing, because it listed an error, but actually it expected that error. [01:55] Aikar: does npm support any "update notice", something you can define that if a user upgrades from 2.x to 3.x for example print to screen? [01:55] fxspark: I do have two tmp directories.. one at /tmp and other at /root/tmp [01:56] dominictarr: fxspark: are you experiences at JS or are you just new to node and stuff? [01:56] jesusabdullah: Aikar: Listen to the changes feed off the couch? [01:56] jesusabdullah: Aikar: You might be able to do that with hook.io already [01:56] jesusabdullah: and then make some sort of notification hook [01:56] Aikar: jesusabdullah: lol, i meant as a way to alert people who npm update your module of breaking changes [01:56] jesusabdullah: Ah [01:57] fxspark: i'm not an expert with js, just know my way around it to get things done. But I really like what I can do with node [01:57] dominictarr: also, github.com/iriscouch/follow [01:57] matyr_ has joined the channel [01:57] Aikar: ie "npm update foo" prints "[npm] foo - WARNING: Upgrading from v2.x to v3.x requires you change your code. do this: xxx" [01:57] dominictarr: okay cool, cos I think you are gonna have to dive into npm and log the command it's trying to run [01:58] dominictarr: then see if you can run it manually [01:58] dominictarr: npm ERR! tar -cvf - execvp(): No such file or directory [01:58] jesusabdullah: Oh, I see what you mean [01:58] dominictarr: need to know what that if meant to be. [01:58] Aikar: v8 seems really random on performance... sometimes my benchmark can run faster than the time before. keep making tiny tweaks trying to see how they impact but the performance isnt constant :( [01:58] jesusabdullah: You could make it an included script [01:58] Aikar: yeah but how would you know their previous version? [01:58] d0k has joined the channel [01:59] fxspark: what does mean? [01:59] jesusabdullah: Aikar: Before you install it scan the old package.json with your script [01:59] jesusabdullah: fxspark: Sounds like somebody saying, "insert a big list of files here" [01:59] dominictarr: I think it's removing the details of your computer from the log, since that is private. [01:59] Aikar: jesusabdullah: lol sounds doable but seems like it would be a neat npm feature [02:00] fxspark: oh ok.. makes sense [02:00] jesusabdullah: Yeah, totes. Hey, maybe you can get it integrated into npm afterwards [02:00] jesusabdullah: fxspark: Yeah, elided means baleeted [02:00] jesusabdullah: http://definefor.me/elide/ [02:00] Aikar: upgradeNotices: { "2.x:3.x": "Do this for upgrade from 2 to 3", "1.x:3.x": "do this for 1 to 3"} [02:01] jesusabdullah: I think "changelog" would make more sense [02:01] matyr has joined the channel [02:01] jesusabdullah: Print all the changelogs between your current version and old version [02:01] fxspark: Thanks s jesusabdullah [02:01] Aikar: that would require the person to A) know theres a change log in the npm module they just installed, B) actually read it [02:01] jesusabdullah: fxspark: I do what I can [02:01] brianseeders has joined the channel [02:01] jesusabdullah: Aikar: Yeah? So? [02:02] jesusabdullah: That doesn't sound that hard to me [02:02] Aikar: im asking for a forced message to the user lol [02:02] fxspark: and thanks dominictarr [02:02] Aikar: print in red "your code is now broke, do this to fix it" is gonna let them know immmed [02:02] jesusabdullah: I know you are [02:02] jesusabdullah: so, you have a preinstall script [02:02] fxspark: I guess I'll wait for isaacs to respond [02:02] jesusabdullah: which you can do with npm [02:03] jesusabdullah: that scans the current package.json and the original package.json, and checks the "changelog" field of the latest one [02:03] jesusabdullah: and then echoes all of the relevant changelogs [02:03] dominictarr: fxspark: it will be pretty simple to the bit that is eliding and turn it off [02:03] jesusabdullah: and then installs the package [02:03] dominictarr: grep elid ./npm [02:04] dominictarr: you will need to clone isaacs/npm [02:04] jesusabdullah: Oh, Aikar, you can mitigate that problem by using major.breaking.x versions only [02:04] dominictarr: grep elid ./npm -r [02:04] jesusabdullah: ie, "dependencies": { "myPackage": "v1.2.x" } [02:05] fxspark: dominictarr: what does that command do? sorry, pretty new to linux.. hence my troubles [02:05] dominictarr: grep searchs for a string in files [02:06] dominictarr: it will return you all the files with the string elid [02:06] fxspark: oh thanks [02:07] dominictarr: i gotta good, but good luck. [02:07] broofa_ has joined the channel [02:07] fxspark: thanks dominictarr [02:09] dreamdust has joined the channel [02:10] jonrohan has joined the channel [02:13] Crshman has joined the channel [02:13] Crshman: How do I convert the data from a readable stream to a string that I can work on? [02:13] Crshman: http://nodejs.org/docs/v0.4.12/api/child_processes.html#child.stdout [02:15] tizzo-afk has joined the channel [02:15] broofa has joined the channel [02:16] parshap: are any headers or body required for a valid http 404 response? [02:17] dreamdust: Um… 404 should have a body IIRC [02:17] ecin has joined the channel [02:18] ceej has joined the channel [02:18] mAritz: I'm looking for a node.js project. Preferable small open source projects that are desperate for more people and are game related. PM me! :) [02:20] skm has joined the channel [02:21] ap3mantus has joined the channel [02:22] ceej has joined the channel [02:22] smus has joined the channel [02:22] davidascher has joined the channel [02:23] minorblend has joined the channel [02:24] reid has joined the channel [02:25] matyr_ has joined the channel [02:26] parshap: mAritz: how's your linear algebra and interest in writing collision detection code? [02:29] ako has joined the channel [02:30] skm has joined the channel [02:33] cpetzold has joined the channel [02:34] EagleCoder has joined the channel [02:36] Nuck: Moving from EJS to handlebars.js, because I can't write a bike with no handlebars. [02:36] jesusabdullah: handlebars.js? [02:36] Nuck: Only thing I hate is the wretched highlighting on handlebars... [02:37] Nuck: Or handlebar w/e [02:37] Nuck: jesusabdullah: Mustache-variant [02:37] jesusabdullah: Is it good? [02:37] Nuck: It's got dot notation and better syntaxes IMHO [02:37] jesusabdullah: I happend to be looking for a good mustache template for node [02:37] jesusabdullah: right now [02:37] jesusabdullah: Little side project [02:37] Nuck: jesusabdullah: http://handlebarjs.com/ I think [02:38] Nuck: Nope there's an s in there [02:38] Nuck: http://handlebarsjs.com/ THAT [02:38] jesusabdullah: OKAY FINE [02:39] perezd has joined the channel [02:39] murilobr has joined the channel [02:39] jesusabdullah: This will work. [02:39] jesusabdullah: I'll work on that *after* I help move this couch! [02:40] Nuck: Gonna add a helper function for outputting an unescaped string, just a function wrapper around the unescaped string type [02:40] Nuck: `new Handlebars.SafeString(result)` [02:40] sechrist2 has joined the channel [02:40] jesusabdullah: hmm [02:42] Nuck: Yeah, I can map it so it is just {{#unsafe foo}} [02:42] Nuck: And be done [02:43] Nuck: jesusabdullah: There's also HBS, which wraps handlebars into express's stuff [02:44] Nuck: I'm studying that right now, to figure out how to map stuff over [02:47] e6nian has joined the channel [02:47] matyr has joined the channel [02:48] metellus has joined the channel [02:48] khrome_ has joined the channel [02:49] darinc has joined the channel [02:50] smus has joined the channel [02:52] JakeyChan has joined the channel [02:54] fxspark has left the channel [02:57] dshaw_ has joined the channel [02:58] kenperkins has joined the channel [03:01] JaKWaC has joined the channel [03:02] sdboyer has joined the channel [03:02] sdboyer has joined the channel [03:03] JaKWaC_ has joined the channel [03:04] jj0hns0n_ has joined the channel [03:04] cognominal_ has joined the channel [03:05] matyr_ has joined the channel [03:05] seebees1 has joined the channel [03:05] cying has joined the channel [03:05] torsd has joined the channel [03:06] maushu_ has joined the channel [03:07] killfill has joined the channel [03:07] patcito has joined the channel [03:07] RushPL has joined the channel [03:07] avalanche123 has joined the channel [03:07] _sorensen_ has joined the channel [03:07] headz has joined the channel [03:07] JP has joined the channel [03:08] djQuery has joined the channel [03:08] pct has joined the channel [03:08] Isaiah has joined the channel [03:08] KrooniX has joined the channel [03:08] [diecast] has joined the channel [03:08] [diecast] has joined the channel [03:08] [diecast] has joined the channel [03:08] dcelix has joined the channel [03:09] davve has joined the channel [03:09] matti has joined the channel [03:09] matti has joined the channel [03:09] rmzg has joined the channel [03:09] finsken has joined the channel [03:09] parshap has joined the channel [03:09] franck34 has joined the channel [03:09] AD7six has joined the channel [03:09] PrgmrBill has joined the channel [03:09] PrgmrBill has joined the channel [03:09] rtward has joined the channel [03:09] mediacoder has joined the channel [03:09] Gruni has joined the channel [03:09] txxt has joined the channel [03:09] Brian` has joined the channel [03:09] ion-_ has joined the channel [03:09] boxysean has joined the channel [03:09] rick_h_ has joined the channel [03:09] zemm has joined the channel [03:09] twinshadow has joined the channel [03:09] pdonald has joined the channel [03:09] rgmarcha has joined the channel [03:09] daed has joined the channel [03:09] termie has joined the channel [03:09] termie has joined the channel [03:09] Jalava has joined the channel [03:10] eboyjr has joined the channel [03:10] tmm1 has joined the channel [03:10] threedaymonk has joined the channel [03:11] mrkurt has joined the channel [03:11] sstephenson has joined the channel [03:11] JaKWaC has joined the channel [03:12] a11235 has joined the channel [03:12] ossareh has joined the channel [03:13] CIA-109 has joined the channel [03:13] fez_ has joined the channel [03:13] perezd has joined the channel [03:14] heavysixer has joined the channel [03:14] [tm] has joined the channel [03:14] neshaug has joined the channel [03:16] kbni has joined the channel [03:18] jesusabdullah: Nuck: I don't use express much these days, actually [03:18] ericw_ has joined the channel [03:18] Nuck: jesusabdullah: Ah [03:18] kflorence has joined the channel [03:18] Nuck: Well, I do [03:18] jesusabdullah: I know you do! [03:18] jesusabdullah: :) [03:18] Nuck: Ugh, but my layout isn't working ;~; [03:19] devongovett has joined the channel [03:20] silky has joined the channel [03:20] hasenj has joined the channel [03:20] Shrink has joined the channel [03:20] CIA-109: libuv: 03Ben Noordhuis 07master * r8f617b9 10/ src/unix/fs.c : unix: darwin < 10.6 does not have fdatasync, use fsync - http://git.io/qKjdIQ [03:20] addisonj has joined the channel [03:21] er1c_ has joined the channel [03:21] rudolfrck has joined the channel [03:21] m1k3l has joined the channel [03:21] Guest18468 has joined the channel [03:22] arpunk has joined the channel [03:22] cpetzold has joined the channel [03:23] JaKWaC has joined the channel [03:24] harthur has joined the channel [03:24] CIA-109: node: 03Ben Noordhuis 07master * rfcba145 10/ (deps/uv/README.md deps/uv/src/unix/fs.c): uv: upgrade to 8f617b9 - http://git.io/oeYp9A [03:24] zemanel has joined the channel [03:25] julioj has joined the channel [03:27] ralph has joined the channel [03:28] tk has joined the channel [03:29] ericw_: Anyone has got socket.io websocket working with cygwin? [03:29] e6nian has joined the channel [03:29] e6nian: can I access the npm via proxy? [03:30] pizthewiz_ has joined the channel [03:31] dgathright has joined the channel [03:33] jaequery has joined the channel [03:33] ohtogo has joined the channel [03:35] e6nian has joined the channel [03:36] e6nian: npm sever is down?? [03:36] darinc: Worked for me. I just installed several hook.io related packages. [03:37] darinc has left the channel [03:37] e6nian: sucks in china [03:38] dash has joined the channel [03:38] dash: howdy. any of y'all know of libraries for emitting VT100/ANSI terminal escape sequences? [03:39] Spion_ has joined the channel [03:41] kkszysiu has joined the channel [03:43] abiii has joined the channel [03:43] abiii: is there a way to synchronously spawn a child_process? [03:43] janetz has joined the channel [03:43] gxdssoft has joined the channel [03:48] albertosheinfeld has joined the channel [03:52] innociv has joined the channel [03:54] jesusabdullah: abiii: To what end? [03:54] jesusabdullah: I'm guessing not. I can't imagine that being a good idea [03:54] jesusabdullah: No offense [03:55] abiii: jesusabdullah: i like writing shell scripts in node. i'd really like to have long list of sequential commands and not deal with callbacks [03:55] abiii: i think it's a perfectly valid use case actually [03:55] abiii: that's part of the reason why all the fs/path functions generally have Sync counterparts [03:58] jesusabdullah: but these programs have a streaming interface themselves [03:58] jesusabdullah: I guess you could buffer all the output [03:59] jmoyers has joined the channel [04:00] matyr has joined the channel [04:00] EyePulp has joined the channel [04:00] innociv: Damn it. Trying to track how many people are in room without patching socket.io is giving me problems. ;/ http://pastebin.com/LLjzER5Y Channel.leave is getting called multiple times and putting it into negative numbers. I suppose because both socket.on('disconnect', function () { Channel.leave(socket); }); is being called and socket.on('boardunsub', function(name){ Channel.leave(socket); }); [04:00] T0aD: is there any way to get the former function parameter in the callback ? [04:00] innociv: ;/ I guess I can do an extend on socket.io functions?.. [04:01] innociv: I'm weary of directly editing the socket.io javascript. [04:01] abiii: jesusabdullah: yeah, i can buffer. but i'd rather write a();b(); rather than a(function(){b();}); [04:01] T0aD: im just trying out node, testing by stat() a bunch of files, and Id like to know what are the names of the files that are finished [04:01] d0k_ has joined the channel [04:02] Dulak has joined the channel [04:02] andrewfff has joined the channel [04:02] abiii: T0aD: what's a former function parameter? [04:03] bnoordhuis: abiii: there's probably going to be a sync spawn in 0.6 [04:03] T0aD: well for fs.stat() that would be the filename with relative path [04:03] abiii: bnoordhuis: awesome! know any npm modules that already support it? or patches? [04:04] T0aD: like : fs.stat(filename, function(err, res) { // how to get filename value back here ? }); [04:04] bnoordhuis: abiii: sorry, no [04:08] julioj: T0aD: if your call to fs.stat is in the same closure as where you define the filename it should be able to access it from within the callback. Is what I'm thinking. [04:09] T0aD: i can try to define the filename just before to see [04:10] T0aD: but wouldnt it be the last name all the time ? [04:11] Sly__ has joined the channel [04:11] T0aD: hmm yeah seems so, sounds logical [04:11] dash: hmm. any of you seen this before? https://github.com/mattijs/node-terminal/ [04:11] dash: trying to decide if it's worthwhile [04:12] abiii: bnoordhuis: hmm, guess i'll just write one then. should be as simple as fork/waiting right? [04:13] bnoordhuis: abiii: yes [04:15] matyr has joined the channel [04:15] jesusabdullah: abiii: You might be able to write it concisely by using program1.stdout.pipe(program2.stdin) [04:15] julioj: T0aD: I think if your code pattern is set up right (aynchronous-wise) you should be fine with setting the filename just before the fs.stat(). [04:15] jesusabdullah: a bunch [04:16] T0aD: nope doesnt work but im reading some code where it should work calling another function and passing my filename as a parameter [04:17] T0aD: im really not used to that way of doing things ;) [04:17] JakeyChan: hi ? [04:17] FireFly has joined the channel [04:17] JakeyChan: how to use socket.io send message to server ??? [04:17] JakeyChan: socket.send() ? [04:18] julioj: T0aD: tell me about it, lol. I am constantly scratching my head trying not to get lost in async-madness :-) [04:18] ion-_: ;D [04:18] T0aD: julioj, hehe :) you're discovering it too ? [04:21] julioj: T0aD: oh yeah, i think it might be getting through my thick skull finally tho [04:21] T0aD: :) [04:22] dash: it's a pity async design has been so unpopular (or at least poorly taught) for so long [04:22] dash: glad to see it coming back [04:23] dash: though it'd be nice if node had deferreds. =| [04:25] amigojapan has joined the channel [04:25] davidbanham has joined the channel [04:25] jtsnow has joined the channel [04:27] T0aD: im still not convinced its a universal solution but i found some places where i could benefit from it [04:32] e6nian has joined the channel [04:32] e6nian has joined the channel [04:36] devaholic: any mongoosers around? [04:36] devaholic: 'Invalid atomic update value for $set. Expected an object, received object' [04:36] devaholic: y u no upsert :( [04:39] fangel has joined the channel [04:39] bolden has joined the channel [04:39] ion-_: lol [04:40] ditesh|cassini has joined the channel [04:40] luxigo has joined the channel [04:40] JaKWaC has joined the channel [04:41] cody--: does anyone use the self contained windows binaries for node? [04:43] shiawuen has joined the channel [04:44] luxigo: probably [04:44] luxigo: possibly maybe [04:44] luxigo: does it answer the question ? [04:45] cody--: im trying to run my app and im getting "Error: Cannot find module 'socket.io-client'" [04:46] luxigo: on windows i had to put modules in a node_modules directory at the same level than the .exe [04:47] luxigo: i dont know if setting the NODE_PATH environment variable is relevant [04:47] devaholic: dont you need socket.io-node [04:47] luxigo: no [04:47] shiawuen_ has joined the channel [04:48] luxigo: if it's an internal module maybe it's not implemented yet [04:48] luxigo: winsuck sock [04:48] cpetzold has joined the channel [04:48] devaholic: woot [04:49] devaholic: i can into upsert [04:50] tmzt: in mongoose? [04:51] devaholic: yea [04:51] devaholic: means i can update stuff without having to read from the db first now [04:52] devaholic: which is how it should be, imo [04:52] cody--: I tried adding a node_modules dir to the bin directory but go the same error [04:56] luxigo: node_modules dir is for external modules, sockets is internal [04:56] shiawuen has joined the channel [04:56] jmoyers: luxigo uuuh [04:57] jmoyers: socketio is definitely not in core [04:57] luxigo: i dont know... try google nodejs "Error: Cannot find module 'socket.io-client" [05:00] jmoyers: cody-- do you have npm successfully installed on windows? [05:00] jmoyers: is that even possible these days? [05:00] cody--: not possible currently [05:00] jmoyers: node looks for a node_modules directory in the current scripts directly [05:01] jmoyers: you've tried that already? [05:01] jmoyers: *directory [05:01] Lingerance: though it'd be nice if node had deferreds. =| <-- like setTimeout? [05:02] cody--: ya that dir exsist [05:02] Lingerance: luxigo: socket.io is _not_ a node internal module. [05:03] wink_ has joined the channel [05:03] luxigo: again .. did you try google nodejs "Error: Cannot find module 'socket.io-client" ?... seems your not the only one having this problem [05:04] jmoyers: that is not helpful [05:04] Lingerance: Oh, sorry, I thought you were the one with the issue, misread. [05:05] Predominant has joined the channel [05:06] devaholic: mwahaha [05:10] ion-_: 0/quit [05:11] bobfun has joined the channel [05:11] zanes has joined the channel [05:12] jacobolus has joined the channel [05:15] gnuanu has joined the channel [05:17] sivy has joined the channel [05:19] khrome_ has joined the channel [05:19] knifed has joined the channel [05:22] c4milo1 has joined the channel [05:22] stagas_: jmoyers: I use npm v0.3.18 it installs and works in cygwin [05:22] metellus has joined the channel [05:24] innociv: So what happens if you socket.leave('foo') when socket is not in foo? Is there no callback or anything? [05:25] c4milo1 has joined the channel [05:25] cody--: im not using cygwin, trying to use the self-compiled binaries [05:31] innociv: I'm pretty sure I have at least 0.7. Probably 0.8. I installed socket.io from npm but I have no method "clients" when trying this: http://stackoverflow.com/questions/6563885/socket-io-how-do-i-get-a-list-of-connected-sockets-clients [05:31] innociv: oh it's sockets. oops [05:32] stagas_: cody--: you can run the native binaries in cygwin [05:32] cody--: im not usings cygwin [05:33] jzacsh: does ayone know what happened with the keylogger crap in this channel earlier today? [05:33] stagas_: why not it's a better shell [05:34] jzacsh: i have this in my status window in irssi, apparently from the node.js channel... http://dpaste.de/e59yA/raw/ [05:35] _sorensen_ has joined the channel [05:35] Lingerance: jzacsh: Just some bots, they aren't here anymore. [05:36] jzacsh: hmf. first time i've ever seen that. [05:36] jzacsh: #node.js channel must be extra popular.. [05:36] Lingerance: I don't think the bots join based on popularity [05:37] Lingerance: Meh [05:37] Peniar has joined the channel [05:38] bobfun has left the channel [05:39] ap3mantus has joined the channel [05:39] ap3mantus has joined the channel [05:40] tmzt: Lingerance: of course they do, it's a the coming of awareness [05:40] cody--: hmm wierd that express works and socket.io dosnt [05:41] albertosheinfeld has joined the channel [05:42] gxdssoft has joined the channel [05:46] Nuck: Why is there no JSperf for Node.js modules? [05:46] jzacsh: Lingerance: well I say that based on the fact that I've kept my irc client logged in 24hrs a day for the past year or so to 4 or more channels and this is the first time I've seen that in my status [05:47] mjr_ has joined the channel [05:49] AvianFlu has joined the channel [05:51] amigojapan has joined the channel [05:51] k1ttty has joined the channel [05:53] nerdy_ has joined the channel [05:57] ecin has joined the channel [05:58] cody--: got it to work [05:58] cody--: :D [05:58] cody--: in my apps node_modules dir I had to download the src for each module from github [06:00] amigojapan has joined the channel [06:00] creationix has joined the channel [06:00] dshaw_ has joined the channel [06:01] creationix: mjr_: we'd better talk here instead. I'll bet many people follow both of us on twitter [06:01] mjr_: ha [06:01] mjr_: Well, those results are truly fascinating. [06:02] creationix: indeed, that's why I did the work to find out [06:02] mjr_: Do you have a sense for whether it is the bare pointer to strings thing or the cross-language serialization that costs more? [06:02] halfhalo: you guys are crazy. [06:02] kbni has joined the channel [06:02] mjr_: halfhalo: true statement [06:03] mjr_: or at least, truthy statement [06:03] kawaz_home has joined the channel [06:03] AvianFlu: OMG I know you guys! internet friends FTW [06:03] mjr_: awww, internet friends are so precious [06:04] creationix: halfhalo: I get bored if I don't do something crazy atleast weekly [06:04] meso has joined the channel [06:04] halfhalo: hah [06:04] mjr_: Of course, I've met AvianFlu at his apartment in SF, and he bought me dinner, so I think we've transitioned that relationship. [06:04] creationix: and halfhalo shared my cube for 6 weeks [06:04] halfhalo: yup [06:05] mjr_: What a small internet world this is [06:05] AvianFlu: and I hung out with creationix at summer camp! [06:05] AvianFlu: node.js ftw [06:05] halfhalo: silly internet! [06:05] mjr_: Anyway creationix, I hope you can get some useful insight into how to make node faster from this research. [06:05] creationix: mjr_: yeah, I'm trying to remove v8 from the equation and see just how fast node's architecture is [06:06] dash: i wonder what ever happened to spidernode [06:06] creationix: mjr_: also lua adds the ability to do true fibers and threads in a way that makes sense [06:06] mAritz: I'm looking for a node.js project. Preferable small open source projects that are desperate for more people and are game related. PM me! :) [06:06] creationix: in case we want to experiement with slightly modified node architectures [06:06] mjr_: surely fibers doesn't actually make anything faster. [06:06] dash: creationix: is that a drawback or a benefit? :) [06:06] mjr_: Not 2X faster. [06:07] creationix: and I'm not using fibers or threads in my benchmark [06:07] mjr_: dash: it never actually worked right. it's a great idea though, IMO, and I hope Mozilla finishes it. [06:07] jonrohan has joined the channel [06:07] mjr_: brb, for some reason we bought bunnies, and I must go play with them. [06:07] AvianFlu: I hope fibers don't make things faster XD [06:07] dash: mjr_: yeah. it'd be nice to use gpsee and node together :) [06:07] creationix: AvianFlu: no, if anything they will slow stuff down [06:07] creationix: having multiple execution stacks [06:08] AvianFlu: I'd figure [06:08] creationix: but the threads are nice [06:08] creationix: they share nothing just like node processes in cluster [06:08] m1k3l has joined the channel [06:08] dash: creationix: that doesn't sound much like threads then :) [06:08] dash: sounds more like erlang processe [06:08] dash: s [06:09] creationix: I'm pretty sure they are actual pthreads [06:09] creationix: or something like that [06:09] creationix: multi-core ftw, but no sharing [06:09] creationix: shared multi-core is nasty stuff [06:09] AvianFlu: I seem to remember reading that your average *nix can handle more processes at once than it can threads [06:09] creationix: that could be, but I don't plan on having a high number of either [06:10] dash: yeah there needs to be a good term for "shares nothing at the language level but implemented with threads and limited sharing/message passing in the native-code runtime" [06:10] creationix: just a thread/process per core [06:10] dash: because "threads" and "processes" both suggest things different from that :) [06:10] creationix: lua is a strange language [06:11] creationix: but the C bindings are really fun [06:11] dash: taaaables [06:11] creationix: I like them better than V8 C++ [06:11] creationix: nil is especially strance [06:11] creationix: *strange [06:14] jetienne has joined the channel [06:14] `3rdEden has joined the channel [06:15] creationix: mAritz: sorry I drowned your question, but it is late here in California [06:16] creationix: mAritz: I could use help on node-webgl if you're into C++ and openGL [06:16] Predominant has joined the channel [06:17] AvianFlu: v8 c++ is all templates, and templates are strange voodoo [06:17] blueadept: would anyone know why this objSize function is not working? http://pastie.org/private/3eyodbsrconscoxvsgffbq [06:17] creationix: AvianFlu: true 'dat [06:18] creationix: blueadept: not sure, but that's terrible slow [06:18] creationix: blueadept: if you have ES5 (like in node) just use Object.keys [06:18] creationix: it's super fast [06:18] dash: any of you guys done terminal output stuff in node? looking for some nice terminal escape sequence stuff in js [06:18] creationix: Object.keys(obj).length [06:18] blueadept: ah thats right [06:18] blueadept: ty [06:18] creationix: dash: like color? [06:18] dash: creationix: cursor management and color [06:18] AvianFlu: dash: http://github.com/substack/node-charm [06:19] dash: creationix: (I am writing a text editor. :) [06:19] creationix: dash: node's repl does a fair amount [06:19] creationix: you can dig into that [06:19] creationix: utils.inspect has color [06:19] AvianFlu: also http://github.com/Marak/colors.js [06:19] AvianFlu: those two should help [06:19] creationix: text editor sounds like fun [06:20] dash: AvianFlu: hmmmh no license =/ [06:20] Marak: hi creationix , admiring your crazy projects over here [06:20] Marak: :-) [06:20] dash: aah colors.js does. [06:20] SubStack: dash: https://github.com/substack/node-charm/blob/master/package.json#L30 [06:20] dash: ok great [06:20] Marak: keep up the great work creationix! you rock [06:20] dash: SubStack: yeah i saw that, but that's not exactly the same thing as an actual license [06:20] SubStack: pfft [06:21] SubStack: DRY [06:21] dash: SubStack: i'm not sure you could get a lawyer to understand the concept ;) [06:21] _baton_ has joined the channel [06:21] SubStack: that's why we don't tell the lawyers! [06:22] saesh has joined the channel [06:22] creationix: Marak: :) [06:22] dash: SubStack: oh well. i kinda need to make sure my ass is covered on this one [06:22] dash: anyway looks like i can steal some ideas if nothing else [06:22] Xano has joined the channel [06:25] creationix: btw, luanode has color too http://creationix.com/luacolor3.png [06:25] creationix: :) [06:25] SubStack: creationix: hah you have the same PS1 colorscheme as I do [06:25] luke`_ has joined the channel [06:25] creationix: SubStack: I just use the stock debian color one [06:26] creationix: uncomment a line in stock ubuntu [06:26] SubStack: maybe that's where I got the idea from >_< [06:26] SubStack: it's odd because my bashrc has carried over from 5 system, 3 of which no longer exist [06:28] creationix: heh, #lua is dead tonight [06:28] creationix: it's a smaller community than javascript [06:28] JaKWaC has joined the channel [06:28] creationix: they are fairly active during the day though, and mostly in brazil [06:29] creationix: speaking of late, I've got to get some sleep. Now that my benchmark is out in the wild, I can sleep in peace. [06:29] jvdev has joined the channel [06:29] creationix: g'night everyone [06:31] stisti has joined the channel [06:33] albertosheinfeld has joined the channel [06:34] dshaw_: night [06:35] chjj: damn 20k requests per sec, not bad! [06:40] jetienne: (hmm no issue with ubuntu PS1 on mac ? i got issue with uparrow when i come back in bash history ?) [06:40] jetienne: improper redraw [06:41] jetienne: creationix/substack: above [06:42] tmzt: anybody have a reall good ftp clienti n node? [06:44] chjj: tmzt: https://github.com/joyent/node/wiki/modules#wiki-tcp [06:44] chjj: looks like a few of them [06:44] tmzt: wonder if there's one that can handle a filename call back and process things differently if different filenames are found [06:45] tmzt: looking, thanks [06:45] dash: tmzt: people still use FTP? [06:45] kenperkins: what's ftp [06:45] tmzt: dash: yes, and ftps [06:46] dash: tmzt: that makes me sad. :( [06:47] tmzt: at least I get to do something with node again [06:47] tmzt: been in php land [06:47] chjj: scary place ^ [06:48] dash: true [06:48] JaKWaC has joined the channel [06:48] tmzt: now I have to remember how to do anything [06:48] tmzt: uh [06:48] chjj: must come back to mother node, and father v8 [06:50] githogori has joined the channel [06:51] tmzt: guess I should use npm to install this time [06:51] tmzt: what version of node is recommened now? [06:52] chjj: 0.4.12 if you want something stable [06:52] chjj: 0.5.7 if you want to live dangerously [06:52] tmzt: what does express 2.0/connect 1.0 like best? [06:53] chjj: 0.4.12 probably [06:53] tmzt: ok [06:56] JaKWaC_ has joined the channel [06:58] innociv: Yeah probably 0.4.12. [06:58] innociv: even = stable odd = unstable, dev [07:01] dorje has joined the channel [07:02] kenperkins: i feel the need to share some lolcats [07:02] albertosheinfeld has joined the channel [07:04] Margle has joined the channel [07:08] davidbanham has joined the channel [07:10] herbySk has joined the channel [07:13] hynek has joined the channel [07:21] metellus has joined the channel [07:21] ditesh|cassini has joined the channel [07:28] twinshadow has left the channel [07:28] whitman has joined the channel [07:28] ptlo has joined the channel [07:31] SamuraiJack has joined the channel [07:33] andrewthemerry has joined the channel [07:34] andrewthemerry: anyone know if it's possible to upload a file directly to a db (i.e. not store it temporarily on the app sever)? [07:34] andrewthemerry: i'm really green and getting nowhere with this concept [07:37] paulbaumgart has joined the channel [07:37] context has joined the channel [07:37] Druide has joined the channel [07:38] btipling has joined the channel [07:39] rphillips has joined the channel [07:41] rmzg: andrewthemerry: Of course it is [07:41] rmzg: I'm not 100% sure why you'd bother [07:41] rmzg: But sure. [07:41] kenperkins: lol [07:41] andrewthemerry: well, I'm using nodester and i feel bad about writing shit to their servers [07:41] andrewthemerry: that's why I bother [07:42] madsleejensen has joined the channel [07:42] andrewthemerry: i've been looking at formidable but I'm not sure how to pick apart the "automatically writes to disk" part [07:43] rmzg: andrewthemerry: File data is sent over a socket. [07:43] rmzg: Read it. [07:43] rmzg: Store it in ram! [07:43] andrewthemerry: OOOOOHHH. You know... [07:43] andrewthemerry: thank you :-) [07:43] andrewthemerry: told you I'm green [07:45] Wa has joined the channel [07:46] jetienne: http://www.spreaker.com/page#!/show/node_js_conference?autoplay=true node.js conf nodejsconflit live (in italian for now) [07:49] isaqual has joined the channel [07:50] caffine has joined the channel [07:53] cpetzold has joined the channel [07:56] jetienne has joined the channel [07:57] maciej_ has joined the channel [07:58] DrMcKay_: are we having some netsplit? [07:58] jetienne: DrMcKay_: it may be :) [07:58] andrewthemerry: wots a netsplit? [07:58] DrMcKay_: on holmes there are like 4 people in #node.js [07:59] kenperkins: eh [07:59] kenperkins: 5 [07:59] DrMcKay has joined the channel [08:00] sfoster has joined the channel [08:00] DrMcKay_: that's me from hitchcock ^^ [08:00] kenperkins: fun times [08:01] mehlah has joined the channel [08:04] DrMcKay_: wait, those channels get merged together with modes and ops, right? [08:04] DrMcKay_: sounds like security fail [08:05] medice: networks usually handle those just fine [08:06] bicranial has joined the channel [08:07] DrMcKay_: good, because I'm op of #nodejitsu right now and I don't want it to stay that way [08:09] AvianFlu: DrMcKay_, ???? [08:09] DrMcKay_: AvianFlu: on holmes.freenode.net I'm op of #nodejitsu [08:09] medice: http://docs.dal.net/docs/netsplits.html [08:09] AvianFlu: must be empty [08:10] Marak: fucking netsplits [08:10] Marak: DrMcKay_: is anyone else in there? [08:10] AvianFlu: you're not in the #nodejitsu that I'm in [08:10] Marak: DrMcKay_: can you set the topic? [08:10] DrMcKay_: Marak: no, I'm the only one [08:10] DrMcKay_: Marak: yes [08:10] DrMcKay_: I think so [08:10] medice: are you sure it's freenode you are using [08:10] DrMcKay_: yes, it is [08:11] DrMcKay_: Marak: what topic should I set? [08:11] Marak: DrMcKay_: just set warning that netsplit [08:12] [AD]Turbo has joined the channel [08:13] DrMcKay_: "Netsplit, try reconnecting. Nodejitsu loves you."? [08:14] wmage has joined the channel [08:14] chjj: mmm, node beats rails in less than 800 watchers [08:15] jetienne: http://www.spreaker.com/page#!/show/node_js_conference?autoplay=true node.js conf nodejsconflit live ( 3rdeden will talk) [08:15] jetienne: in english now [08:15] jetienne: btw what happened tyo node spdy ? [08:15] wmage: jetienne: is that audio stream only? [08:15] jetienne: wmage: yep [08:15] andrewthemerry: does setting uploadDir = process.env.TMP write to ram instead of disk? [08:15] andrewthemerry: with formidable? [08:16] chjj: andrewthemerry: no [08:16] jetienne: tmp = /tmp usually [08:16] chjj: andrewthemerry: i dont think formidable would ever hold files in memory, that would be pretty nuts [08:16] jetienne: you can mount a ram disk tho and set TMP [08:17] DrMcKay_: not a ramdisk, tmpfs [08:17] onethirtyfive has joined the channel [08:17] DrMcKay_: (you would have to mkfs on a ramdisk, tmpfs handles that) [08:17] jetienne: isnt that a ram disk ? [08:17] andrewthemerry: yikes [08:17] DrMcKay_: jetienne: ram disk is just a block device, tmpfs is a file system [08:18] jetienne: DrMcKay_: ok so is tmpfs a ram disk ? [08:18] zomgbie has joined the channel [08:18] DrMcKay_: jetienne: tmpfs is like a ramdisk formatted, it's stored in ram and has a file system [08:18] jetienne: DrMcKay_: ok [08:19] DrMcKay_: and ramdisk by itself has no file system [08:19] kenperkins: http://www.clipboard.com/clip/LR0qOLfpAllnd16K [08:19] kenperkins: haha [08:19] jetienne: (ok i know the diff between fs anf block device :) [08:19] andrewfff has joined the channel [08:20] kenperkins: anyone on nodejitsu btw [08:20] andrewthemerry: DrMcKay_: so trying to write to ram instead of disk is probably a black hole of time [08:21] kenperkins: what, pray tell, are you ever writing to your store [08:21] kenperkins: even rather [08:21] jetienne: andrewthemerry: considere that on linux if you [08:22] andrewthemerry: kenperkins: i'm using formidable to handle file uploads, but I realized it writes the file to /tmp, and I'd rather it go straight to a non-local db [08:22] jetienne: andrewthemerry: additionnalty the kernel is caching disk operation. So if the file remains only a small amount of time on the filesystem, it may never reach the dsisk [08:22] andrewthemerry: kenperkins: but i'm really green and this is a huge problem for me [08:23] andrewthemerry: jetienne: aaah see i was wondering how necessary that write to /tmp was [08:24] jetienne: andrewthemerry: my personnal policy is to optimize only when you got perf problem. "prematture optimisation is the root of all evils" - knuth i like this sentence [08:24] andrewthemerry: jetienne: i definitely feel that [08:25] 77CAAH8XG has joined the channel [08:25] OmidRaha has joined the channel [08:25] lemon-tree has joined the channel [08:26] rmzg: andrewthemerry: Find the code in formidable that says "write( filename, data, data_length );" and then have it do something else [08:27] andrewthemerry: rmzg: looking now [08:28] plov has left the channel [08:30] andrewthemerry: rmzg: i don't see that code anywhere [08:30] andrewthemerry: rmzg: the writes just handle buffers [08:30] andrewthemerry: rmzg: i'll keep looking [08:31] Country has joined the channel [08:32] blueadept: would anyone know how i might be able to loop though params.amount and params.cc.cvc in this example? http://pastie.org/private/zjlaqxj8nfcjedch0t8fng - the issue i'm having is getting params.amount to = sanitize for instance, because otherwise params.amount is set to the actual variable and not setting the field [08:33] innociv has joined the channel [08:35] onethirtyfive has left the channel [08:36] cognominal has joined the channel [08:37] rmzg: andrewthemerry: At the risk of being obvious here, if the code is creating a file on disk, then there must exist code somewhere in it that has the data and then writes it [08:38] liar has joined the channel [08:39] andrewthemerry: rmzg: it's okay, I don't mind obvious. it seems to write the data as it receives it. the readme says i can modify the "fileBegin" event if i'm unsatisfied with how the tmp directory is generated, but I haven't found that event yet [08:42] andrewthemerry: rmzg: "this.emit('fileBegin', part.name, file);" in incomingform.js is all I can find [08:42] albertosheinfeld has joined the channel [08:43] gkmngrgn has joined the channel [08:44] andrewthemerry: rmzg: simple, eh? [08:44] rmzg: That does seem like the right step [08:45] jbpros has joined the channel [08:45] rurufufuss has joined the channel [08:45] DrMcKay_ has joined the channel [08:48] ph^ has joined the channel [08:49] davidbanham has joined the channel [08:50] Esteb has joined the channel [08:51] alphahydrae has joined the channel [08:51] alphahydrae has left the channel [08:52] temp02 has joined the channel [08:54] alphahydrae has joined the channel [08:57] Twelve-60 has joined the channel [08:58] andrewthemerry: rmzg: how can i change the upload path so that it goes to ram? [08:59] rmzg: ER [08:59] andrewthemerry: rmzg: yeah, that's where I'm at [08:59] rmzg: andrewthemerry: Merely by virtue of being 'uploaded' it's already in ram [08:59] rmzg: Look [09:00] rmzg: His computer opens a socket to your server. It transmits the file data. Your server opens the socket and reads the file data. Your library then copies this file data to a file and then sends you the filename [09:03] andrewthemerry: rmzg: i don't really see that happening. i'm really green [09:04] andrewthemerry: rmzg: also getting late for me, not trying to be difficult [09:05] andrewthemerry: rmzg: basically I don't see how the file is stored without a path [09:05] andrewthemerry: rmzg: the whole file is not read into a buffer and then written to disk [09:06] andrewthemerry: rmzg: as far as I can tell [09:06] JakeyChan: ? [09:07] JakeyChan: who sent me file ??? [09:07] andrewthemerry: JakeyChan: which file? [09:08] Nuck: Is it possible to use Stylus *with* braces? [09:08] Nuck: And colons [09:08] Nuck: But still take advantage of Stylus's features in that style? [09:08] descipher has joined the channel [09:09] kkaefer: is there anything else I have to link against when writing a node 0.5.x c++ extension? [09:09] kkaefer: I'm getting lots of v8 linking errors [09:10] zeiris has joined the channel [09:10] kkaefer: Undefined symbols for architecture x86_64: [09:10] kkaefer: "v8::String::NewSymbol(char const*, int)", referenced from: [09:10] kkaefer: ... [09:10] Nuck: kkaefer: IDK anything about C++, but I know that in 0.5.5 they pushed libuv out for all OSes [09:10] Nuck: So you might hafta do something with libuv [09:11] kkaefer: yeah, I don't think it's related to libuv [09:11] Nuck: (apparently all previous native modules *will* be broken, gauranteed) [09:11] Nuck: Then I dunno [09:11] Nuck: I don't know C++ [09:11] innociv has joined the channel [09:11] Wizek has joined the channel [09:13] mc_greeny has joined the channel [09:14] confoocious has joined the channel [09:15] andrewthemerry: rmzg: I appreciate your help. Sorry I can't seem to generate anything useful from it. [09:15] rmzg: ACTION shrugs [09:15] rmzg: I'm not reading the code so the best I can do is offer general pointers [09:15] rmzg: andrewthemerry: I can assure you that at some point, the contents of the uploaded file must exist in memory [09:16] rmzg: And then it must be written to the file [09:16] andrewthemerry: rmzg: parts at a time [09:16] andrewthemerry: rmzg: not all at once [09:16] rmzg: Ok, yes [09:16] rmzg: But that's the same effect [09:17] rmzg: Instead of writing it to the file, parts at a time, either accumulate it all in ram, or write it to your store. [09:17] Marak: info: Confirming user andrewthemerry [09:17] Marak: info: User andrewthemerry confirmed [09:17] Marak: oops [09:17] andrewthemerry: my confirmation! [09:18] rmzg: haha [09:18] Marak: wait, where am i [09:18] andrewthemerry: Marak: yes I am this green [09:18] Marak: andrewthemerry: :-D join #nodejitsu if you need help or visit http://cheatsheet.nodejitsu.com/ [09:19] andrewthemerry: Marak: thanks man, that link says it's not running btw [09:19] Marak: andrewthemerry: jesusabdullah is pushing an update RIGHT now i bet [09:19] Marak: andrewthemerry: refresh now [09:19] Marak: ohh, hes doing it agian [09:19] Marak: lol [09:20] Marak: jesus! [09:20] andrewthemerry: Marak: this has been a religious experience [09:22] Marak: jesusabdullah is deploying cheatsheet as speak, i think hes been drinking! [09:22] chjj has joined the channel [09:23] jesusabdullah: I have not! [09:24] Marak: okay, http://cheatsheet.nodejitsu.com/ is up now [09:24] jesusabdullah: \o/ [09:24] Marak: jesusabdullah: well, in that case, maybe you SHOULD HAVE [09:24] Marak: >.> [09:24] Marak: <.< [09:25] rmzg: When in doubt [09:25] rmzg: drink [09:26] meso has joined the channel [09:26] jesusabdullah: hah [09:27] kkaefer: haha, fail [09:27] kkaefer: ../deps/sqlite-autoconf-3070701/sqlite3.h:4725: error: previous declaration of ‘typedef struct sqlite3_module sqlite3_module’ [09:27] kkaefer: so I can't name my module "sqlite3"? [09:28] jj0hns0n has joined the channel [09:28] __doc__ has joined the channel [09:30] tomtomaso has joined the channel [09:31] Frippe has joined the channel [09:33] ph^ has joined the channel [09:33] shipit has joined the channel [09:35] rendar has joined the channel [09:35] fly-away has joined the channel [09:36] andrewthemerry has joined the channel [09:38] andrewthemerry has joined the channel [09:40] astrolin has joined the channel [09:40] zemanel has joined the channel [09:40] andrewthemerry: anyone using webchat.freenode.net? [09:41] ossareh has joined the channel [09:43] titanese has joined the channel [09:43] k1ttty has joined the channel [09:44] andrewthemerry: nm, I need to use /join channel instead of /join #channel [09:45] mraleph has joined the channel [09:46] wmage has joined the channel [09:52] titanese has left the channel [09:54] titanese has joined the channel [09:54] titanese has left the channel [09:56] uchuff has joined the channel [09:57] unomi has joined the channel [10:00] titanese has joined the channel [10:01] tmedema has joined the channel [10:01] tmedema: os.totalmem() - os.freemem() says that I am using 2.1GB of RAM while Ubuntu's System Monitor says I'm using 1.3GB of RAM. Why the difference? [10:03] tmedema: totalmem is correct, but freemem is not. [10:13] madsleejensen has joined the channel [10:16] knifed has joined the channel [10:16] dominictarr has joined the channel [10:17] hebz0rl has joined the channel [10:19] ossareh has joined the channel [10:23] jomoho has joined the channel [10:23] kkaefer: in what situations would net_uv.js' bind() return -1? [10:24] stonebranch has joined the channel [10:24] ilikeit has joined the channel [10:28] Guest89021 has joined the channel [10:30] titanese has left the channel [10:32] joeytwiddle has joined the channel [10:34] liveink has joined the channel [10:34] liveink_ has joined the channel [10:35] megalomix has joined the channel [10:35] megalomix: hi [10:35] wao: eah [10:35] max_dev has joined the channel [10:38] ohtogo has joined the channel [10:41] wmage has joined the channel [10:43] blup has joined the channel [10:44] tmedema: http://groups.google.com/group/nodejs/browse_thread/thread/475989832ab36936 [10:47] markwubben has joined the channel [10:48] cha0s has joined the channel [10:56] JakeyChan has joined the channel [10:56] mklappstuhl has joined the channel [10:57] Nuck: Yeah I think I'm gonna at least try Stylus, LESS is getting clunky, it's not very "object-oriented", it's just designed for easy DOM-mirroring style [10:57] Nuck: ACTION goes to sleep  [10:58] chjj: should totally try my css preprocessor [10:58] Nuck: chjj: Haha what's it called and does it have it's own domain? [10:58] chjj: it tries to follow the standards that are being dreamt up for nested rules, etc [10:58] Nuck: If not stfu nobody cares :P [10:58] chjj: it follows standards though :) [10:59] chjj: https://github.com/chjj/csslike [10:59] Nuck: Gotta have a domain to be taken seriously. :P [10:59] xerox: (doesn't) [11:00] xerox: but at least some examples :x [11:00] chjj: dont need examples, it uses tab atkins editor's drafts for the syntax [11:01] chjj: @trait/@mixin/@var/next rules, etc [11:01] chjj: nested rules* [11:01] Nuck: Yeah you need examples [11:01] Nuck: Or at least a link thereto [11:01] chjj: go read the spec, youre going to have to in a little while anyway [11:01] chjj: once it becomes a standard [11:01] xerox: ok let's say [11:01] Nuck: No I'll just study *examples* [11:01] xerox: at least a link to the thing you're mentioning [11:02] Nuck: I don't read specs [11:02] Nuck: They're boring [11:02] Nuck: ACTION reads more exciting things [11:02] Nuck: But anyways it's 4 am I should sleep [11:02] chjj: http://www.xanthir.com/blog/b4AD0 [11:02] Nuck: Naught [11:03] chjj: http://www.xanthir.com/blog/b4Av0 [11:03] xerox: there in the README :) [11:03] chjj: the rest are on tab's blog as well [11:03] Nuck: [[Standard disclaimer - this is a personal draft, and is not endorsed by the CSSWG.]] [11:03] chjj: not yet [11:03] Nuck: … [11:03] xerox: go to sleep [11:03] chjj: but if you actually read the www-style mailing list you might have a better sense of whats going on [11:03] Nuck: So there's technically no standard [11:04] chjj: this is how standards are proposed [11:04] chjj: tab is helming this, it will most likely become a standard, if there is ever to be variables, mixins, nested rules, etc - this is the one to follow [11:05] chjj: thats why i wrote my css preprocessor, because i wanted one that was more in line with css [11:06] Nuck: chjj: Meh I'll prolly stick to Stylus simply because the transparent mixins and a few other things [11:06] openpercept has joined the channel [11:07] chjj: thats fine, i didnt expect you to use it [11:07] Nuck: I do wish CSS were more like an object oriented language [11:07] chjj: i was more serious about it when i wrote it than you think though [11:07] Nuck: chjj: I do find it interesting though [11:07] chjj: i hope it never becomes that way, its a declarative language [11:07] Nuck: I'm sure you were haha [11:07] megalomix: guys, how can i use TLS 1.2 ? i read that TLS 1.0 is buggy [11:07] megalomix: i need to use that certificate for my website with node [11:08] Nuck: chjj: Aye but it's working on what is generally a ton of objects, as in the DOM [11:08] chjj: youre looking at it the wrong way if you think that, the DOM is incredibly divorced from css [11:08] Nuck: so it should reflect the logical objectical structure [11:08] chjj: css was created to work on any kind of tree structure, its not necessarily for the dom [11:09] chjj: in fact, the css specs dont even mention html/dom or anything, they simply say, "the host language" [11:09] Nuck: chjj: Who cares what it works on, nothing else uses it :V [11:09] chjj: the dom is at fault here, not css [11:09] chjj: the dom is *unbelievably* divorced from css [11:10] Nuck: I want the OOCSS concepts taken and applied to a CSS preprocessor [11:10] chjj: the css view module was a salvaging of all the proprietary dom properties created by microsoft in the 90s, its awful, the dom needs to change, not css [11:11] Nuck: chjj: CSS is more likely to change than dom is [11:11] chjj: likely to change in certain ways [11:11] chjj: remains to be seen whether it will change in the way youre referring to [11:11] Nuck: I believe that OOCSS is what CSS *should* have been [11:11] chjj: i hope it doesnt, that would be a gigantic step in the wrong direction [11:12] rootslab has joined the channel [11:12] Nuck: A basic object oriented setup [11:12] chjj: by the way, youre also wrong about nothing else using css [11:12] Nuck: chjj: Orly? [11:12] chjj: gtk3 uses css for themes [11:12] chjj: they butchered it, but they still use it [11:12] Nuck: Oh, don't they also use XML or something as the windows tho? [11:12] chjj: no [11:13] chjj: the windows are created using gtk [11:13] chjj: the actual library [11:13] chjj: in C, or whatever language has a binding to it [11:13] astropirate has joined the channel [11:13] Nuck: Oh okay [11:13] Nuck: ACTION shrugs [11:13] Nuck: Sleep time [11:13] Frippe_ has joined the channel [11:13] TheJH has joined the channel [11:13] TheJH has joined the channel [11:13] chjj: night [11:14] amigojapan has joined the channel [11:14] TheJH: chjj, good noon :D [11:15] chjj: TheJH: why do you live 6 hours in the future? thats crazy [11:16] astropirate: is stratagem a difficult word to remember? [11:18] NetRoY has joined the channel [11:19] ohtogo has joined the channel [11:20] sharkbird has joined the channel [11:23] pickels has joined the channel [11:24] FireyFly|n900 has joined the channel [11:25] N0va` has joined the channel [11:25] boehm has joined the channel [11:27] christopherdb has joined the channel [11:28] dominictarr has joined the channel [11:32] christopherdb: any nodejitsu peeps in this channel? [11:34] grekko has joined the channel [11:39] saesh_ has joined the channel [11:40] deedubs has joined the channel [11:40] wmage: astropirate: strategem would be easier [11:41] astropirate: wmage, but that would be an incorrect spelling [11:42] wmage: astropirate: I'm not a native english speaker, didn't know that stratagem was even a word :-) [11:42] astropirate: haha ok [11:50] threepointone has joined the channel [11:53] broofa has joined the channel [11:54] ecin has joined the channel [11:54] innociv has joined the channel [11:54] descipher has joined the channel [11:58] syrio has joined the channel [11:58] Tiller has joined the channel [11:58] syrio has left the channel [11:58] Tiller: Hi! [11:58] syrio has joined the channel [11:59] _64k has joined the channel [11:59] syrio has left the channel [11:59] navaru has joined the channel [11:59] Tiller: Is there any known problem with socket.io using firefox 6.0.2 on windows? =/ [12:00] Vennril has joined the channel [12:01] om has joined the channel [12:01] dgathright has joined the channel [12:01] herbySk has joined the channel [12:02] TheJH: Tiller, you might want to ask in #socket.io if nobody here knows it [12:03] Tiller: There is nobody alive in #socket.io :] [12:04] TheJH: Tiller, maybe you should wait for `3rdEden to come online (unfortunately, I don't know his timezone) [12:04] DrMcKay: I think it's GMT+01 or +02 [12:05] DrMcKay: Tiller: it doesn't work [12:05] DrMcKay: Tiller: FF 6 had some problems with implementing hybi07 or hybi10 [12:05] DrMcKay: Tiller: you should be able to get it working with Chrome 15 [12:06] TheJH: DrMcKay, shouldn't the fallback mechanisms always work? [12:06] reid has joined the channel [12:06] Tiller: So it's socket.io related ? [12:06] DrMcKay: TheJH: the problem is that FF seems to report/act like it implements it fully [12:07] DrMcKay: (I think, FF codebase is full of shit) [12:07] DrMcKay: (and I mean, really) [12:08] TheJH: Tiller, I think it's the fault of Firefox because it says that it can do stuff that it can't do as well as the fault of socket.io because it runs head-first in the same wall again and again [12:08] Tiller: DrMcKay: What do you advise me? To continue my project like if that bug doesn't exists, or to search a fix? [12:08] TheJH: "Here's a door." - "OK, lemme try... OUCH! That was a wall! Well, lemme try again..." [12:09] deedubs has joined the channel [12:09] DrMcKay: Tiller: socket.io works in FF 8.0, so it should work in FF 6.0 soon [12:09] DrMcKay: TheJH: :D [12:09] DrMcKay: Tiller: it's fine when it works in Chrome 15 [12:10] Tiller: Well, I'll update my chrome so. Because I've v13, and socket.io is not working :[ [12:10] TheJH: DrMcKay, we need a "sane-retry" lib :D - it should support fail after x tries, exponential/linear backoff, warning callback, ... [12:13] Tiller: Oh sh*t~ Lastest chrome stable version is 14 [12:13] Tiller: and socket.io doesn't work with v14 [12:13] DrMcKay: Tiller: try 15, it's really stable [12:14] DrMcKay: and yes, I know it's called unstable. [12:14] DrMcKay: TheJH: good idea [12:14] Brandon_R has joined the channel [12:14] Brandon_R: Hello guys [12:17] DrMcKay: sup Brandon_R [12:17] Brandon_R: not much [12:17] Brandon_R: just thinking what to do [12:18] swearos has joined the channel [12:18] lvjunqi_ has joined the channel [12:20] Brandon_R: what you up to? programming anything cool? [12:22] cjm has joined the channel [12:24] broofa has joined the channel [12:26] tomtomaso has joined the channel [12:28] robi42 has joined the channel [12:29] razielgn has joined the channel [12:29] ruchir has joined the channel [12:29] tomtomaso has joined the channel [12:30] ruchir: hi all [12:30] ruchir: which is best mysql driver for node? [12:30] jarek has joined the channel [12:30] jarek has joined the channel [12:32] Brandon_R: hi [12:32] scott_gonzalez has joined the channel [12:33] stisti has joined the channel [12:34] ruchir: mysql driver anyone? [12:34] Brandon_R: define best? [12:35] unomi has joined the channel [12:36] dexter_e has joined the channel [12:38] ruchir: fastest [12:38] ruchir: i tried node-mysql from felixge but performance is bad compared to apache [12:39] Brandon_R: did you try this one? [12:39] Brandon_R: https://github.com/sidorares/nodejs-mysql-native [12:42] OmidRaha has joined the channel [12:44] ruchir: not yett, currently testing http://sannis.github.com/node-mysql-libmysqlclient [12:44] ruchir: is nodejs-mysql-native best? [12:47] Brandon_R: it looks like it [12:47] Brandon_R: s fully featured [12:47] ruchir: i see [12:47] ruchir: i'll try it shortly [12:47] Brandon_R: what are you trying to make? does using mysql over mongodb provide an advantage? [12:48] Frippe__ has joined the channel [12:48] ruchir: not familiar with mongodb [12:48] ruchir: is it better? [12:48] Brandon_R: it depends on what you want to build [12:49] Brandon_R: if you want to store a large amount of documents then it will be faster [12:50] ruchir: trying to build a mobile app and i think node will be good as server [12:50] ruchir: obviously there will be lots of users being a mobile app [12:50] ruchir: so analyzing db performance [12:52] mklappstuhl has joined the channel [12:55] k1ttty has joined the channel [12:55] Brandon_R: kool [12:56] gkmngrgn has joined the channel [12:56] Raynos: Anyone managed to create functions with prototype chains without abusing __proto__ ? [12:58] heavysixer has joined the channel [13:00] c4milo1 has joined the channel [13:02] pen has joined the channel [13:04] bshumate has joined the channel [13:05] Venom_X has joined the channel [13:05] DrMcKay: Interesting find #12: on Saturdays, pizza is always delivered by the same guy [13:07] N0va` has joined the channel [13:08] ruchir: testing started with 1000 sim. requests using native node-mysql [13:10] aconbere has joined the channel [13:10] ruchir: Error: EADDRNOTAVAIL, Cannot assign requested address [13:10] ruchir: getting this [13:12] necrodearia has joined the channel [13:17] ruchir: any idea? [13:20] julioj has joined the channel [13:21] jldbasa has joined the channel [13:23] julioj: morning everyone [13:26] rfay has joined the channel [13:26] Atm0z has left the channel [13:27] b52: what is a simple system vor good console logging? [13:27] ruchir: console.log ? [13:27] tahu has joined the channel [13:27] Margle has joined the channel [13:27] b52: somethin with more beauti [13:28] mklappstuhl: hey, I want to save some data that has some kind of schema in node-dirty [13:28] ruchir: Error: EADDRNOTAVAIL, Cannot assign requested address [13:28] ruchir: anyone know how to fix it ? [13:29] ruchir: getting when doing stress testing of nodejs-mysql-native [13:29] mklappstuhl: can you recommend me a way to do this? (e.g. maintain a a structure in my data withouth having a schema based db) [13:31] Remoun has joined the channel [13:32] ecin has joined the channel [13:32] innociv has joined the channel [13:32] descipher has joined the channel [13:33] avih has joined the channel [13:33] Peniar has joined the channel [13:33] _64k has joined the channel [13:34] tylerstalder has joined the channel [13:34] spcshpopr8r has joined the channel [13:38] pickels has joined the channel [13:39] ErikCorryV8: ruchir: http://www.toptip.ca/2010/02/linux-eaddrnotavail-address-not.html [13:39] ErikCorryV8: I guess you already read that, since it's the top hit on Google [13:40] ErikCorryV8: You have too many sockets open. [13:41] julioj: I have a pretty basic question. When writing a function that has a callback argument, I have been using process.nextTick to execute the users callback function, however, I've also seen it where callback() is called whenever the function is needed. Which one is better? I'm thinking process.nextTick, anyone have a different opinion. [13:41] freewil: anyone know of a good oauth2 provider lib? [13:41] ruchir: ErikCorryV8: I have increased ulimit [13:42] ruchir: and this issue doesnt happen with other mysql drivers for nodejs [13:43] jakehow has joined the channel [13:44] ruchir: hmm trying to increase [13:44] ruchir: but not reflecting :( [13:45] TheFuzzball has joined the channel [13:45] maushu has joined the channel [13:48] ph^ has joined the channel [13:49] ErikCorryV8 has joined the channel [13:50] Lemon|mbp has joined the channel [13:50] ErikCorryV8: ruchir: Here is an interesting link: http://aleccolocco.blogspot.com/2008/11/ephemeral-ports-problem-and-solution.html [13:50] astrolin has joined the channel [13:52] ecin has joined the channel [13:52] openpercept has joined the channel [13:52] innociv has joined the channel [13:52] descipher has joined the channel [13:53] DrMcKay: anyone from LearnBoost here? [13:53] DrMcKay: or: what was aheckmann's IRC handle? [13:54] Brandon_R has joined the channel [13:54] Brandon_R: hi [13:54] edwardmsmith has joined the channel [13:54] Brandon_R: any cool projects need testing? [13:55] madsleejensen has joined the channel [13:56] dexter_e has joined the channel [13:58] dexter_e: Simple file upload setup.. Recommendations anyone? [14:00] Brandon_R: how about [14:00] DennisRasmussen has joined the channel [14:00] ruchir: not getting how to solve this error [14:00] murilobr has joined the channel [14:00] ruchir: just at time of 3000 connections getting this exception [14:01] DrMcKay: ruchir: code? [14:03] ruchir: DrMcKay: http://pastebin.com/YrdZujAk [14:04] torsd has joined the channel [14:05] DrMcKay: ruchir: everything looks fine, you're testing it under some enormous load or something? [14:05] samstarling has joined the channel [14:05] spcshpop` has joined the channel [14:05] samstarling: Hi guys, wondering if I could get a quick bit of node help [14:06] DrMcKay: samstarling: sure :) [14:06] rjack has joined the channel [14:06] samstarling: I'm getting this error: [14:06] TomY has joined the channel [14:06] ruchir: DrMcKay: yes using ab2 -r -n 100000 -c 1000 http://127.0.0.1:8000/ [14:07] Brandon_R: i have a question about that code ruchir [14:07] ruchir: ? [14:07] DrMcKay: ruchir: 100000 requests, 1000 at once? [14:07] ruchir: yep [14:07] Brandon_R: putting the db connect code inside the create server. does it have to recreate the connection tot he db on every request? [14:07] DrMcKay: ruchir: what's your `ulimit -n`? [14:08] ruchir: open files (-n) 1000000 [14:08] zomgbie has joined the channel [14:08] DrMcKay: wow [14:08] samstarling has joined the channel [14:08] samstarling: Sorry, got disconnected [14:08] samstarling: The error is "Error: EACCES, Permission denied" [14:08] ruchir: Brandon_R: I think so [14:08] samstarling: And my code is this: https://gist.github.com/f9cce67e7016d6010fbe [14:09] samstarling: Works fine if I sudo it, but that's not really an option as I'm deploying it to Heroku (so it gets the same error there) [14:09] Brandon_R: wouldn't it be better to put it outside and just have the query variable inside the create server function? [14:09] DrMcKay: ruchir: when does this error get thrown? [14:09] ruchir: when around 3000 requests processed [14:09] razielgn has joined the channel [14:09] DrMcKay: samstarling: on Unix systems only root can open ports < 1024 [14:10] ruchir: Brandon_R: You mean to maintain persistent connection to db? [14:10] ruchir: will it perform better? [14:10] jmar777 has joined the channel [14:10] DrMcKay: samstarling: use some reverse proxy, like nginx [14:10] samstarling: Ah, OK [14:10] DrMcKay: ruchir: and yes, persistent connection is a must here [14:10] Brandon_R: i will have to benchmark it [14:10] Brandon_R: oh [14:10] samstarling: So no way to get it to run on port 80 on Heroku I guess? [14:10] DrMcKay: samstarling: no, why not? [14:11] Brandon_R: start db connection when entire app starts, query db for each client and close db when entire app closes? [14:11] Brandon_R: is that better? [14:11] DrMcKay: samstarling: I haven't tried heroku yet, but there should be a way to get it going [14:12] samstarling: DrMcKay: OK, thanks [14:12] DrMcKay: samstarling: (also, on Heroku, isn't your account root by default?) [14:12] ruchir: so moving closee and open code outside create server? [14:13] DrMcKay: ruchir: yes, try it [14:13] ruchir: Error: Socket is not writable [14:13] ruchir: i guess i'm doing it wrong [14:14] ruchir: http://pastebin.com/GP9sPJ8u [14:14] ruchir: seems proper? [14:15] willwhite has joined the channel [14:16] Brandon_R: you have the db close function [14:16] Brandon_R: it will run [14:16] ruchir: i;m getting Error: Socket is not writable [14:17] Brandon_R: remember the code runs from beginning to end [14:17] schwab has joined the channel [14:17] Brandon_R: so the db close function will run before a client is served [14:17] jmar777: i'm trying to install node-crawler via `npm install crawler`. it has a dependency on qunit, so it's trying to install quinit@0.2.5pre, rather than quinit's latest stable. quinit@0.2.5pre requires node > 0.5, however, and i'm at 0.4.9 [14:17] ruchir: oops [14:17] ruchir: so where it shouold be?? [14:17] gxdssoft has joined the channel [14:18] Brandon_R: inside an event [14:18] Brandon_R: when the app closes, it closes the db [14:18] jmar777: is there a way i can specify which version of a dependency to install with npm? [14:18] Brandon_R: yeah [14:18] N0va` has joined the channel [14:18] Brandon_R: = [14:19] ruchir: Brandon_R: not sure where exactly [14:19] Brandon_R: hum [14:19] Brandon_R: got it [14:19] Frippe has joined the channel [14:19] Brandon_R: use pipe [14:20] Brandon_R: so you can close it from the cmd line [14:20] Brandon_R: then exit the nodejs server [14:20] TheJH: jmar777, http://npmjs.org/doc/json.html#dependencies [14:20] ruchir: i'm new to nodejs so that is bouncing over my head :D [14:20] ruchir: checking how to use pipe [14:20] ruchir: i think i can use process..end [14:20] Brandon_R: try it [14:21] shanez_ has joined the channel [14:21] ruchir: ok that worked :) [14:22] ruchir: now trying to test again ;) [14:22] ruchir: yay no crash :D [14:22] ruchir: thx Brandon_R for the hints [14:22] CrisO has joined the channel [14:23] pixel13 has joined the channel [14:23] ruchir: wow results drastically better now :) [14:24] ruchir: but i think its not fair comarison yet [14:24] joshkehn has joined the channel [14:24] ruchir: as in php mysql connecction is opened and closed on every request [14:25] ruchir: testing with mysql_pconnect now [14:25] TheJH: ruchir, well, but as it's a relatively inherent limitation of php, I'd say it's fair :D [14:25] pixel13 has left the channel [14:26] TheJH: ruchir, huh, not an inherent limitation? well, there's always something to learn... [14:26] guest919234 has joined the channel [14:26] EagleCoder has joined the channel [14:26] Brandon_R: lol [14:26] Brandon_R: nodejs is the new php :P [14:27] Brandon_R: you can do pretty much the same thing in a newer way [14:27] Brandon_R: well [14:27] Brandon_R: different way i should say [14:28] ruchir: hmm php still creating multiple connections so may be bad results still [14:28] markwubben has joined the channel [14:28] TheFuzzball has joined the channel [14:29] kuebk^ has joined the channel [14:29] razielgn has joined the channel [14:29] xy has joined the channel [14:31] guest919234 has joined the channel [14:31] jmar777: TheJH: thanks - maybe I missed it, but isn't that just for defining your own package.json? I'm hoping for something like `npm install crawler -dep quinit@<@0.2.5` (obviously a made up syntax there, but the idea being that i qualify the dependency version) [14:32] TheJH: jmar777, I don't think that's possible, but you can install crawler and then go into node_modules/crawler and do npm install quinit@0.2.5, I think [14:32] ruchir: interestingly nodejs doesnt have any requests failing whereas apache does :) [14:32] Brandon_R has joined the channel [14:33] ruchir: ok as moving connect and disconnect outof http server has improved the performance a lot [14:34] ruchir: but there should be handling of mysql disconnect and retry of connection [14:34] TheFuzzb_ has joined the channel [14:34] ruchir: hmm dont' see such events [14:35] willwhite has joined the channel [14:36] Brandon_R: humm [14:37] ruchir: interesting, i stopped mysql and refreshed page but node script didnt crash [14:37] replore_ has joined the channel [14:37] replore has joined the channel [14:37] DrMcKay: ruchir: I bet that driver does caching [14:38] jmar777: TheJH: thanks for the help [14:38] ruchir: DrMcKay: yeah may be :) [14:38] guest919234 has joined the channel [14:38] TheJH: jmar777, does it work? [14:38] ruchir: i wonder what happens if it starts again [14:39] Brandon_R: what app are you trying to build again ruchir [14:39] TheJH: DrMcKay, why did you bot login with a guest nick? [14:39] jmar777: TheJH: about to give it a try [14:39] TheJH: *your bot [14:39] TheJH: DrMcKay, was it even yours? [14:39] ruchir: now it crashed :) [14:39] zomgbie has joined the channel [14:39] ruchir: Brandon_R well currently just playing around ;) [14:39] Brandon_R: oh [14:39] ruchir: but final app will be mobile app for restaurants [14:40] guest919234 has joined the channel [14:40] TheJH: DrMcKay, ping [14:40] ruchir: the difference is now i dump rows to console [14:40] ruchir: so yes need to put reconnect [14:41] TheJH: ah, understood, someone here is playing around with DrMcKays bot code? [14:41] guest919234 has joined the channel [14:43] ruchir: DrMcKays is bot? [14:43] joshkehn: ruchir: No [14:43] DrMcKay: TheJH: huh? [14:43] ruchir: :D [14:44] broofa has joined the channel [14:44] DrMcKay: TheJH: nodebot is specific to node-irc library [14:44] guest919234 has joined the channel [14:44] EvRide has joined the channel [14:44] DrMcKay: so, it's just someone using node-irc [14:44] TheJH: DrMcKay, ah, I thought the "nodebot" was specific to your bot [14:44] TheJH: sorry [14:44] ruchir: can someone guide me to good document of exception handling in node? [14:45] DrMcKay: TheJH: np [14:45] _asm_ has joined the channel [14:45] TheJH: ruchir, http://docs.nodejitsu.com/articles/errors/what-are-the-error-conventions [14:45] guest919234 has joined the channel [14:45] ruchir: TheJH: thx [14:45] murilobr has joined the channel [14:46] TheJH: ruchir, this might also be of interest for you: http://nodejs.org/docs/latest/api/process.html#event_uncaughtException_ [14:46] _asm_: Is there a preferred build system for node projects? [14:46] ruchir: hmm so we can pass err as first arg to any function? [14:47] guest919234 has joined the channel [14:47] DrMcKay: !ping [14:47] dmkbot: DrMcKay, pong [14:47] ruchir: TheJH: that';s cool :) [14:47] DrMcKay: Y U NO REPORT GH ISSUES? [14:47] TheJH: ruchir, it's more a convention [14:48] sharkbird has joined the channel [14:48] TheJH: ruchir, also, not every function, jszt callbacks [14:48] TheJH: *just [14:48] guest919234 has joined the channel [14:49] yuwang has joined the channel [14:49] ruchir: yeah i mean callbacks [14:50] xerox: help. how do I do a post request for a
[14:50] xerox: I'm using this https://github.com/mikeal/request and the example at the bottom of the page is similar [14:50] guest919234 has joined the channel [14:50] xerox: but also different, in that the content is application/json not form-data [14:50] xerox: anybody knows? [14:50] ruchir: dinner time [14:51] marcello3d has joined the channel [14:51] ruchir: i really appreciate help from Brandon_R, DrMcKay & TheJH [14:51] guest919234 has joined the channel [14:51] indexzero has joined the channel [14:51] ruchir: seems i'm gonna use node for more and more apps going forward :) [14:51] ruchir: its impressive [14:52] Brandon_R: same [14:53] guest919234 has joined the channel [14:55] Xano has joined the channel [14:57] jmar777: TheJH: got it properly installed now. getting some immediate ETIMEDOUT errors though that crawler borks on, but i think that's unrelated to the install [14:57] jmar777: TheJH: thanks again for the help. i might scratch crawler for now and try directly with Apricot [15:00] Country has joined the channel [15:00] julioj has joined the channel [15:00] spcshpop` has joined the channel [15:01] dylang has joined the channel [15:01] cognominal has joined the channel [15:02] locksfree has joined the channel [15:03] anveo has joined the channel [15:04] nyuszika7h has joined the channel [15:05] anveo has joined the channel [15:06] broofa: require.paths question: My app auto-requires modules it finds in a 'plugins' directory. How do I make modules in the app available to the plugin modules? (e.g. the app has a './commands' module. How would a plugin require that, since it's in a different directory and that path won't work. Keeping in mind that require.paths is deprecated.) [15:07] broofa: ... I'd like to avoid forcing the plugins do use contorted relative paths like, '../../lib/commands'. :P [15:07] dexter_e has joined the channel [15:07] broofa: do use -> to use [15:07] guest919234 has joined the channel [15:08] cody-- has joined the channel [15:08] cody--: hi [15:08] abjorn has joined the channel [15:08] Brandon_R: hello [15:10] tbranyen: broofa: ben_alman wrote a separate require function thats global that allows him to require relatively [15:10] tbranyen: sec [15:10] tbranyen: https://github.com/cowboy/node-grunt/blob/master/lib/grunt/grequire.js [15:10] Frippe has joined the channel [15:11] max_dev has joined the channel [15:11] jtrudeau has joined the channel [15:12] iFire has joined the channel [15:13] iFire has joined the channel [15:13] Circlefusion has joined the channel [15:17] sfoster_ has joined the channel [15:18] broofa: tbranyen - cool, thx. yeah, that's kinda the direction I was heading. 'not convinced this is better than a mutable require.paths tho'. :/ [15:18] tbranyen: broofa: agreed, not sure why it's being deprecated [15:18] tbranyen: tbqh [15:20] bnoordhuis has joined the channel [15:20] cognominal has joined the channel [15:21] Brandon_R: hey guys [15:21] dexter_e: anyone recommend a file upload module? [15:21] Brandon_R: do you still have the google scrolling thing on the search page? [15:22] Brandon_R: control the search results with the arrow keys [15:22] Cromulent has joined the channel [15:22] heavysixer has joined the channel [15:23] devongovett has joined the channel [15:23] TheJH: Brandon_R, huh? what search page? [15:24] Brandon_R: the results page [15:24] cying has joined the channel [15:24] TheJH: Brandon_R, what results page? [15:24] Brandon_R: the google search results page [15:24] TheJH: ah [15:24] Brandon_R: you know how you could scroll each individual result with the arrow keys? [15:24] Brandon_R: how do i turn it back on [15:25] TheJH: Brandon_R, mhm, doesn't work here anymore either [15:25] Brandon_R: when i finally got used to it they turn it off lol [15:31] Brandon_R has joined the channel [15:32] pyrotechnick has joined the channel [15:32] Lemon|mbp has joined the channel [15:34] pyrotechnick: Milestone v0.6 - Due in 23 days :O [15:35] pyrotechnick: <3 [15:35] Spion has joined the channel [15:35] NetRoY has joined the channel [15:38] mraleph has joined the channel [15:38] DrMcKay: pyrotechnick: sauce? [15:39] smtlaissezfaire has joined the channel [15:39] pyrotechnick: github issues [15:39] pyrotechnick: i assume it's correct, it seems about right based on the past [15:39] pyrotechnick: it has come around quickly, it will be nice to have ssl improvements in stable [15:40] ecin has joined the channel [15:40] pyrotechnick: it will be a nice time for node :) [15:40] innociv has joined the channel [15:40] descipher has joined the channel [15:40] pyrotechnick: plus windows [15:41] DrMcKay: ah, I haven't seen this feature before [15:41] DrMcKay: looks nice [15:41] pyrotechnick: the milestones? [15:41] DrMcKay: yeah [15:42] pyrotechnick: when github xeroxed lighthouse they got those [15:42] infynyxx has joined the channel [15:43] liar has joined the channel [15:44] willwhite has joined the channel [15:45] MooGoo: alias xerox=cp [15:45] jaequery has joined the channel [15:45] DrMcKay: MooGoo: lol [15:46] joshkehn has joined the channel [15:46] MooGoo: helps us oldtimers feel more comfortable [15:47] madsleejensen has joined the channel [15:47] DrMcKay: I like `alias :q=exit` [15:49] murilobr has joined the channel [15:49] eee_c has joined the channel [15:49] deedubs has joined the channel [15:49] MooGoo: lol [15:49] MooGoo: I have that problem often [15:50] MooGoo: leaving random :wq's in things not vim [15:51] _64k has joined the channel [15:51] apejens: mraleph: here is the backtrace from gdb: https://gist.github.com/2f73524cc831a629a7c1 not sure how useful most of it is :p [15:52] hasenj has joined the channel [15:52] Sorella has joined the channel [15:52] mraleph: apejens: ah oh [15:52] mraleph: apejens: hmm [15:52] ttpva has joined the channel [15:53] daed has joined the channel [15:53] apejens: mraleph: perhaps I could compile a node with more debug-info? [15:53] apejens: or somehow make the rest make more sense? [15:53] mraleph: apejens: this looks like a crash I've recently fixed [15:53] apejens: ahh [15:53] brianseeders has joined the channel [15:53] mraleph: apejens: at least superficialy [15:53] apejens: I'm on 0.4.9 [15:53] mraleph: apejens: ok. let me find a patch for you. [15:54] Slayterson has joined the channel [15:55] apejens: mraleph: cool [15:55] mraleph: apejens: try applying this http://code.google.com/p/v8/source/detail?r=9145 [15:55] piscisaureus has joined the channel [15:56] toopay has joined the channel [15:56] mraleph: apejens: it's two line fix spaces-inl.h [15:57] mraleph: apejens: I can't guarantee that this will fix the problem, but at least we will exclude one known bug. [15:58] apejens: mraleph: yeah, and I can't exactly reproduce it conclusivly, so it might be another 2 weeks for a backtrace :p [15:58] apejens: mraleph: anything I can enable to make the trace more useful next time? since I'm compiling a new node [15:59] apejens: debug I presume will help? [15:59] mraleph: apejens: debug will make it more "readable" and debuggable but it might not necessary help :-) [16:00] Frippe has joined the channel [16:00] apejens: well, doesn't hurt much, other than perhaps performance a bit? [16:00] knifed has joined the channel [16:00] apejens: will --gdb or --profile help? [16:00] openpercept has joined the channel [16:00] mraleph: apejens: perf will go down the toilet on the debug build [16:00] apejens: well, doesn't matter, it isn't critical [16:00] sivy has joined the channel [16:01] mraleph: apejens: so the most helpful would be to explore the memory where it crashed. [16:01] apejens: can the core dump help? [16:01] nickf has joined the channel [16:01] apejens: I'm a bit of a noob on this, so sorry for lame questions [16:01] mraleph: yes, it'll help. [16:02] mraleph: but first apply the patch. [16:02] mraleph: if my guts feeling is correct it'll fix it. [16:02] chance- has joined the channel [16:02] apejens: okies :) [16:02] chance-: anyone using hamljs? [16:02] apejens: I still have the old core i you want it [16:03] dexter_e: Anyone using formidable ? [16:03] nickf: hi all -- just wondering if anyone could help me with using wheat [16:03] d0k has joined the channel [16:03] markwubben has joined the channel [16:03] nickf: i've got all the libraries and the howtonode.org code, but i don't know how to launch it [16:04] chance-: have you installed node? [16:04] apejens: nickf: do you have more than one js-file? [16:04] apejens: nickf: if not, chances are "node " might work, given you have node installed [16:04] nickf: yep i have node [16:04] ryanrolds has joined the channel [16:05] nickf: and i've cloned howtonode.org and installed the deps with "npm install" [16:05] nickf: but then, no idea. [16:05] nickf: i also installed wheat globally (npm install wheat -g) [16:05] chance-: nickf : in the root of the folder there should be at least 1 js file [16:05] chance-: probably something called like app.js or server.js [16:06] chance-: i havent seen wheat or what you're talking about [16:06] nickf: 1 sec, i'll get the links to their repos [16:06] chance-: but you'll want to run the command "node app.js" or whatever file is in the root directory (server, app, whatever) [16:06] nickf: Wheat: https://github.com/creationix/wheat/ [16:06] apejens: node server/server.js might be it [16:07] apejens: if it is the howtonode-thing you are trying to run [16:07] nickf: howtonode: https://github.com/creationix/howtonode.org [16:07] nickf: ah yes i see the server/server.js now [16:08] apejens: mraleph: ok, deployed a patched version, we'll see how it goes :) [16:08] mraleph: apejens: great [16:09] nickf: i've run "node server/server.js" and now http://localhost:8080/ comes back with "Not Found", but it looks like it's actually being served by node [16:09] mraleph: apejens: btw, just do check, did you do a clean rebuild? [16:09] mraleph: apejens: sometimes it just ignore updates and does not rebuild [16:09] apejens: mraleph: make distclean, ./configure, make, make test, make install [16:10] mraleph: apejens: cool [16:10] NetRoY has joined the channel [16:10] chance-: nickf: looks like it's expecting a /howtonode [16:10] chance-: so try localhost:8080/howtonode [16:10] nerdy_ has joined the channel [16:11] unomi has joined the channel [16:11] chance-: nickf: if you are looking to get started with node, i'd recommend picking an express starter app personally [16:11] apejens: mraleph: thanks for the help :) [16:11] chance-: especially if you are coming from rails or asp.net mvc [16:11] chance-: or sinatra [16:11] mraleph: apejens: np [16:12] nickf: @chance, thanks - i'm kinda interested in a really lightweight blogging platform like wheat [16:12] CarterL has joined the channel [16:12] chance-: nickf : understood [16:12] nickf: :) [16:13] DrMcKay: how do I access flash messages in express? [16:13] chance-: alright, any ideas as to why hamljs is puking when it parses: %script{:src => "/public/javascripts/modernizr-1.5.min.js"} [16:13] chance-: :/ [16:13] DrMcKay: I want to display them in a template [16:13] chance-: =messages() [16:13] nickf: requesting localhost:8080/howtonode logs this to the terminal: Error: ENOENT, No such file or directory '/home/nick/dev/howtonode.org/articles/howtonode.markdown' [16:13] nickf: [16:14] nickf: but visiting locahost:8080/a-file-which-does-exist ... doesn't work :-\ [16:14] freeformz has joined the channel [16:15] mehlah has joined the channel [16:15] DrMcKay: chance-: not really, it's undefined [16:15] chance-: DrMcKay : what do you mean? [16:16] DrMcKay: chance-: messages is undefined, if you've responded to me [16:16] nickf: could anyone explain what this variable is?"process.env.JOYENT" [16:17] chance-: DrMcKay : ah, i thought you were responding to me ;x [16:18] chance-: messages: require('express-messages'), [16:18] chance-: messages() [16:18] chance-: in the view [16:18] chance-: should do it [16:18] chance-: er [16:18] DrMcKay: chance-: thanks :) [16:18] chance-: DrMcKay if you are using express, i believe messages: require('express-messages') in your app.js or wherever you are defining your settings [16:19] chance-: and then messages() in the view [16:19] chance-: that's how mine is setup and it works [16:19] McMAGIC--Copy has joined the channel [16:19] chance-: yep, np [16:19] chjj: nickf: i think its part of joyent's secret plan to take over the world using node.js [16:19] nickf: haha [16:21] michaeldeol has joined the channel [16:21] mandric has joined the channel [16:22] jonrohan has joined the channel [16:22] KaL has joined the channel [16:23] deedubs has joined the channel [16:23] kennberg has joined the channel [16:26] jacobolus has joined the channel [16:26] MUILTFN has joined the channel [16:27] patcito has joined the channel [16:27] CIA-109: node: 03Ben Noordhuis 07master * rd157131 10/ (lib/buffer.js test/simple/test-buffer.js): [16:27] CIA-109: node: buffers: handle bad length argument in constructor [16:27] CIA-109: node: Coerce fractional, negative and non-numeric length arguments to numbers. [16:27] CIA-109: node: Fractional numbers are rounded up, negative numbers and non-numeric values [16:27] CIA-109: node: are set to zero. - http://git.io/IH5Ycw [16:29] jro_ has joined the channel [16:29] jbrokc has joined the channel [16:30] jbrokc: so if I wanted to add a parameter to an https.request's options object, is there a better way to do it than just tacking something like `path: '/' + '?' + key + '=' + value` ? [16:30] r04r has joined the channel [16:30] r04r has joined the channel [16:32] jbrokc: also, i'm a frontend developer so if that's a super dumb question then let me know. [16:32] CIA-109: node: 03Ben Noordhuis 07v0.4 * rf6bce20 10/ (lib/buffer.js test/simple/test-buffer.js): [16:32] CIA-109: node: buffers: handle bad length argument in constructor [16:32] CIA-109: node: Coerce fractional, negative and non-numeric length arguments to numbers. [16:32] CIA-109: node: Fractional numbers are rounded up, negative numbers and non-numeric values [16:32] CIA-109: node: are set to zero. - http://git.io/h5UaMQ [16:35] bnoordhuis: jbrokc: require('url').format [16:35] jbrokc: bnoordhuis: wow, perfect. thanks! [16:36] DrMcKay: bnoordhuis: that ~~ just rounds the number, right? [16:36] MooGoo: it truncates [16:36] _64k has joined the channel [16:36] rjack has joined the channel [16:36] bnoordhuis: yes, and it coerces non-numeric values to 0 [16:36] bnoordhuis: and NaN too [16:37] bnoordhuis: v8: ~~NaN [16:37] v8bot_: bnoordhuis: 0 [16:37] MooGoo: more like floors it [16:37] DrMcKay: v8: Math.round(NaN) [16:37] v8bot_: DrMcKay: NaN [16:37] bnoordhuis: hence the ~~ :) [16:37] DrMcKay: v8: NaN | NaN [16:37] v8bot_: DrMcKay: 0 [16:37] DrMcKay: v8: NaN & NaN [16:37] v8bot_: DrMcKay: 0 [16:37] MooGoo: v8: +NaN [16:37] v8bot_: MooGoo: NaN [16:37] joshkehn: v8: ~~NaN [16:37] v8bot_: joshkehn: 0 [16:37] DrMcKay: bnoordhuis: OK :) [16:37] joshkehn: v8: parseInt(null) [16:37] v8bot_: joshkehn: NaN [16:38] joshkehn: v8: isNaN(null) [16:38] v8bot_: joshkehn: false [16:38] joshkehn: Woot. [16:39] TheJH: v8: isNaN(+null) [16:39] v8bot_: TheJH: false [16:39] TheJH: v8: +null [16:39] v8bot_: TheJH: 0 [16:39] TheJH: v8: parseInt("null") [16:39] v8bot_: TheJH: NaN [16:41] DrMcKay: yay, JavaScript weirdness <3 [16:41] jbrokc: bnoordhuis: I'm writing the options object manually with each value in https.request. should I just use the url module to get th eparameter and then tack that onto the end of the path: key for the { options } object? [16:42] wbednarski has joined the channel [16:43] albertosheinfeld has joined the channel [16:43] bnoordhuis: jbrokc: not 100% sure what you mean but i suppose so [16:43] jbrokc: bnoordhuis: yeah that was really ambiguous, sorry [16:44] bnoordhuis: jbrokc: i suspect you mean this? options.path = '/x/y/z' + url.format({query:{foo:42, bar:"baz"}}) [16:44] N0va` has joined the channel [16:44] jbrokc: bnoordhuis: pretty much EXACTLY that. like, mindreading [16:45] jbrokc: so you use the format method and just gave it an object ohh i get it [16:46] deedubs has joined the channel [16:47] jbrokc: bnoordhuis: are you sure url.format({query: takes an object and not a string? [16:48] jbrokc: becuase it's value is just a string [16:48] bnoordhuis: jbrokc: i'll bet you a sixpack [16:49] jbrokc: bnoordhuis: what about the :search key. same thing? [16:50] bnoordhuis: jbrokc: if it accepts an object? no [16:50] meandi has joined the channel [16:50] anoop has joined the channel [16:50] jbrokc: yeah - alright then. thanks for your help! [16:55] jbrokc: bnoordhuis: can I modify the path to the request inside of the request block? ie even after options is passed https://gist.github.com/4ff9ebd16a678d5066e3 [16:56] bnoordhuis: jbrokc: you mean if you can reuse your options object? yes [16:56] jonrohan has joined the channel [16:56] hidden has joined the channel [16:56] jbrokc: bnoordhuis: i mean modify it from within the block. how would I go about reusing it though? hasn't the request been made? [16:57] alvaro_o has joined the channel [16:57] ryanRT has joined the channel [16:57] bnoordhuis: jbrokc: what would modifying it from within the callback accomplish? [16:57] skm has joined the channel [16:58] Lemon|mbp has joined the channel [16:58] jbrokc: bnoordhuis: nothing i guess. so I should just plunk it onto the options object before making the request - duh [17:01] nickf: thanks for the help, see you all again soon [17:01] nickf has left the channel [17:03] JakeyChan has joined the channel [17:03] jvdev has joined the channel [17:05] shipit has joined the channel [17:05] cha0s has joined the channel [17:05] cha0s has joined the channel [17:07] jmoyers has joined the channel [17:08] SamuraiJack has joined the channel [17:14] jonrohan has joined the channel [17:15] tjholowaychuk has joined the channel [17:15] julioj has joined the channel [17:17] jbrokc: bnoordhuis: is there a way to suppress url.format({query:{foo:bar}}) to not include the ? in ?foo=bar ? [17:17] dshaw_ has joined the channel [17:18] bnoordhuis: jbrokc: url.format({query:{foo:'bar'}}).slice(1) ? [17:18] binaryjohn has joined the channel [17:18] TheJH: jbrokc, the require("querystring") core module is intended for that, I think [17:19] TheJH: jbrokc, require("querystring").encode({foo: "bar"}) => "foo=bar" [17:22] normanrichards has joined the channel [17:23] jbrokc: i'm mostly just trying to send something simple to my iphone with the http://developer.appnotifications.com/p/user_notifications.html api but unforunately I can't tell if the url should look like /account/notifications.json?user_credientals=sekret¬ification%5Bmessage%5D=poopee or what cause I keep getting nothing https://gist.github.com/c792d758ccb1442135dd [17:24] anoop has joined the channel [17:24] jbrokc: nevermind - it needed to be a POST instead. ;_; [17:26] paulwe has joined the channel [17:26] PuffTheMagic: i need some help with the tty module [17:26] PuffTheMagic: i've used tty to create an instance of /bin/sh [17:27] PuffTheMagic: when i send it a command, it seems like I get back both the command i entered and the output of the command [17:27] PuffTheMagic: how do I stop it from sending the command [17:28] losing has joined the channel [17:28] TheJH: PuffTheMagic, I think that's just how sh works when you spawn it on a tty - after all, a user wants to be able to read what he types. What are you trying to do? [17:29] PuffTheMagic: im making a term app [17:29] TheJH: PuffTheMagic, a "term app"? [17:29] PuffTheMagic: the thing is, the command doesnt get sent until the user presses return, but before that the text is already on screen on a normal console [17:30] PuffTheMagic: TheJH, a terminal application for webos [17:30] PuffTheMagic: using nodejs and canvas [17:30] dgathright has joined the channel [17:30] TheJH: PuffTheMagic, then you should change the way your webos terminal application works [17:30] julioj: coooool [17:30] TheJH: PuffTheMagic, it should send every keypress immediately and only print what the server sends [17:30] PuffTheMagic: hmm ok [17:30] PuffTheMagic: wasnt thinking about that [17:30] anoop has joined the channel [17:30] TheJH: PuffTheMagic, what about when the user enters a password? [17:30] chance- has joined the channel [17:30] PuffTheMagic: good call [17:31] Nuck: hehe I'm gonna go with LESS CSS simply because it [17:31] Nuck: it's CSS-ier than Stylus [17:31] MooGoo: unless local echo is on [17:31] tjholowaychuk: pff [17:31] Nuck: (and because that tmbundle lacks :-; insertion) [17:31] tjholowaychuk: stylus is more css-ier :p [17:31] tjholowaychuk: haha [17:31] Nuck: tjholowaychuk: Well, I like my : to be matched with a ; [17:31] julioj: i'm making a cli for the little database i wrote on node.js, there are probably better ways of writing this cli, but i'm just gonna step off with this and see where it gets me [17:31] tjholowaychuk: border-radius: 10px 5px as a mixin vs @some ugly(shit, here) [17:31] Nuck: I hate the lack of those in Stylus :P [17:31] tjholowaychuk: Nuck you can do that [17:31] tjholowaychuk: it supports both [17:32] Nuck: tjholowaychuk: Yes, but the tmbundle doesn't insert the ; for me :P [17:32] tjholowaychuk: hahaha [17:32] Nuck: And that, my friend, is a dealbreaker. [17:32] tjholowaychuk: nice reason [17:32] freewil has joined the channel [17:32] freewil has joined the channel [17:32] Nuck: tjholowaychuk: Well it's true :P [17:34] Brandon_R has joined the channel [17:34] Brandon_R: hi [17:34] Brandon_R: what [17:34] Brandon_R: s up guys [17:34] chance-: is stylus basically saas? [17:34] tjholowaychuk: nope [17:34] g4: has anyone some experience with mongodb from node.js and can recommend a library to use? Is mongoose the best one or should I look somewhere else? [17:34] chance-: is stylus to sass what jade is to haml? [17:34] chance-: g4 yea, mongoose is pretty easy to get rolling with [17:34] tjholowaychuk: stylus supports traditional css syntax and the sass-ish indentation syntax [17:35] tjholowaychuk: and a lot of things sass does not support [17:35] chance-: hmph, i never bothered around w/ sass [17:35] chance-: if it supports traditional css syntax, i may go ahead [17:35] Nuck: tjholowaychuk: I dig the transparent stuff in Stylus, but it's kinda hard when the syntax for a variable is rather hard to make highlight [17:35] chance-: and check it out* [17:35] tjholowaychuk: Nuck $foo [17:35] tjholowaychuk: you can prefix if you like [17:35] tjholowaychuk: but you dont have to [17:36] Nuck: tjholowaychuk: Does the tmBundle handle $vars right? [17:36] tjholowaychuk: not sure if it does right now, no reason it couldnt though [17:36] tjholowaychuk: trivial thing to add [17:37] g4: chance-: ok, thanks :) [17:37] Nuck: tjholowaychuk: I might steal the :-; matching from LESS and roll some stuff I want in [17:37] Nuck: LESS is great on a small scale, but nested rules suck for object-oriented CSS [17:38] chance-: g4 : if you are new to mongodb in general, http://www.mongly.com/ is a great resource [17:38] PuffTheMagic: TheJH, thanks for the tips, that def fixed one of my issues [17:38] chance-: it's interactive tutorial is fun, pretty easy to get the basics down [17:38] tjholowaychuk: LESS doesn't really do enough to warrant using a preprocessor [17:39] tjholowaychuk: css alone is less ugly [17:39] ShonM has joined the channel [17:39] scott_gonzalez has joined the channel [17:39] Nuck: tjholowaychuk: I dig the style, I'll give it that. But the .rounded-corners is kinda... meh [17:39] Nuck: I like the transparent mixins you have in Stylus [17:39] tjholowaychuk: sass/stylus > less [17:39] tjholowaychuk: in almost every way [17:40] Nuck: I already did my CSS in LESS, but it's not hard to change, seeing as LESS compiles quite wonderfully [17:40] tjholowaychuk: less has the one benefit of being small enough to use in the browser with ease [17:40] tjholowaychuk: that's about it [17:40] g4: chance-: thanks! I find mongo pretty easy to grasp, but I will look through that site. [17:41] Nuck: tjholowaychuk: I personally prefer the CSS-style syntax, and the nested concept seemed alright at first, but it's just prohibitive for an OOCSS setup [17:41] g4: also impressed by speed. Only issue I have some trouble with is the async nature of node.js. Not used to do nested async operations [17:41] Nuck: I'm honestly fine with the @ for variables [17:41] anoop has joined the channel [17:41] thinkt4nk has joined the channel [17:42] ShonM: does anyone know if there's an easy way to package dependencies? [17:42] ShonM: ACTION is a noob :) [17:42] g4: e.g. request->callback->mongosave->callback. I guess there are some libraries to help me out in node.js, but not looked at them yet [17:42] jondot has joined the channel [17:42] Nuck: ShonM: Package dependencies? Why not just use package.json and use npm install? [17:43] jondot: hey guy, i'm trying to understand how setTimeout works in node.js in terms of threads - if node is single threaded, how does that happen in the background? [17:43] ShonM: Nuck: let's say i don't have access to npm [17:44] Nuck: ShonM: Well, for compiled modules it'll be hell, but for JS modules, just use the node_modules folder [17:44] Nuck: I highly recommend using npm to install the modules originally [17:44] aho has joined the channel [17:44] ShonM: thanks Nuck, i'll do that. didn't want to blow up my repo but hey :P [17:44] chance-: hmm, stylus does look interesting.. [17:44] Nuck: ShonM: Well, most people should have NPM >_> [17:45] Nuck: Because, well, it's NPM. [17:45] chance-: not sure it'd save me a lot fo time though [17:45] Nuck: Anyone who has it is sad [17:45] chance-: Nuck : unless they are on windows [17:45] dshaw_ has joined the channel [17:45] Nuck: chance-: Stylus looks interesting because of the transparent mixins to me [17:45] ShonM: Nuck: i do have it, but i'm deploying to more than 10 locations and don't want to use npm in all of them, and also don't want to symlink. if that makes any sense [17:45] tjholowaychuk: chance- you save time when background: linear-gradient(...) expands to all the vendor variants and a node-canvas generated gradient image :) [17:45] tjholowaychuk: and several other little things [17:45] chance-: Nuck : yea, just watched a video and he covered that [17:46] Nuck: tjholowaychuk: How do you mixin with linear-gradient D: [17:46] chance-: i'm just not crazy about the syntax [17:46] Nuck: That's a rough one [17:46] tjholowaychuk: ex: "absolute: top 5px left 10px" [17:46] tjholowaychuk: vs 3 props [17:46] tjholowaychuk: Nuck ? [17:46] Nuck: tjholowaychuk: There's like 12 syntaxes for that [17:46] tjholowaychuk: yeah [17:46] Nuck: All *completey* different [17:46] tjholowaychuk: Nuck: https://github.com/visionmedia/nib/blob/master/lib/nib/gradients.styl [17:46] ShonM: Nuck: is there a way i could slim down my node_modules folder…? [17:46] tjholowaychuk: all in-stylus [17:47] Nuck: ShonM: AFAIK, not really, there's a reason most people just use npm [17:47] ShonM: Nuck: thanks :) [17:47] shipit has joined the channel [17:47] Nuck: tjholowaychuk: Wow. [17:47] Nuck: That's pretty amazing. [17:48] chance-: woah, nice [17:48] tjholowaychuk: some of them I augment [17:48] tjholowaychuk: like [17:48] tjholowaychuk: border-radius: top 5px [17:48] tjholowaychuk: border-radius: top 5px bottom 10px [17:48] dorje has joined the channel [17:48] tjholowaychuk: overflow: ellipsis [17:49] tjholowaychuk: etc [17:49] tjholowaychuk: https://github.com/visionmedia/nib/blob/master/lib/nib/positions.styl [17:49] philjackson has joined the channel [17:49] chance-: niiice [17:49] tjholowaychuk: it's infinitely more flexible than the other two [17:49] philjackson: Hi, can someone recommend a package which allows me to verify a complex data structure? [17:49] tjholowaychuk: just a lot younger [17:50] chance-: can you add ; to the end? [17:50] chance-: or are you forced to use their syntax? [17:50] tjholowaychuk: yup [17:50] tjholowaychuk: no you can use css [17:50] tjholowaychuk: i'll find an example [17:51] tjholowaychuk: https://github.com/LearnBoost/stylus/blob/master/test/cases/css.selectors.styl [17:51] EhevuTov has joined the channel [17:51] tjholowaychuk: https://github.com/LearnBoost/stylus/blob/master/test/cases/css.if.styl [17:51] chance-: oh, cool.. nested selectors [17:51] tjholowaychuk: you can make the mixins and control structures more css-like as well [17:51] tjholowaychuk: if desired [17:52] chance-: word, i'll give it a try [17:52] chance-: thanks man [17:52] tjholowaychuk: and small things like "color + 50%" == "lighten(color, 50%)" [17:53] avih has joined the channel [17:57] jtsnow has joined the channel [18:00] avih has joined the channel [18:02] devongovett has joined the channel [18:02] astrolin has joined the channel [18:04] willwhite has joined the channel [18:04] avih has joined the channel [18:04] EhevuTov has joined the channel [18:06] kmiyashiro has joined the channel [18:06] Nuck: tjholowaychuk: Stylus sounds really nice, though I hate the syntax [18:06] tjholowaychuk: use the css syntax lol [18:07] Nuck: tjholowaychuk: Is everything CSS-syntax-ready? [18:07] tjholowaychuk: they are identical internally [18:07] tjholowaychuk: you can use both in the same file even if you really wanted [18:07] Nuck: tjholowaychuk: Haha hopefully nobody does that [18:08] Nuck: But what's the syntax for loops and whatnot? [18:08] Nuck: For () {}? [18:08] dreamdust has joined the channel [18:08] tjholowaychuk: yup parens and braces are optional [18:08] stonebranch has joined the channel [18:09] Nuck: tjholowaychuk: Are parens and braces just all removed before parsing? [18:10] tjholowaychuk: they're context sensitive so it's in the parser [18:10] Nuck: tjholowaychuk: So it does pay attention to them? [18:11] tjholowaychuk: Nuck yes [18:11] tjholowaychuk: https://github.com/LearnBoost/stylus/blob/master/lib/parser.js#L560 [18:18] kmiyashiro: can you use sass nesting in stylus? [18:18] tjholowaychuk: yeah [18:18] tjholowaychuk: if by sass nesting you mean nesting [18:19] ShonM: i like stylus, but i'm on php. gotta stick with sass :/ [18:19] Lemon|mbp has joined the channel [18:20] micheil has joined the channel [18:20] mynyml has joined the channel [18:21] pizthewiz has joined the channel [18:23] zastaph has joined the channel [18:24] petrjanda has joined the channel [18:27] stagas: I'm doing some scraping and I randomly get these hex chars: ef bf bd ef bf bd this has happened more than once on more than one places is this a bug? [18:27] stagas: v0.4.11 [18:28] anatoo has joined the channel [18:28] petrjanda: Hello guys, please can someone give me a hint in util.pump usage? I try to store req body to file. I managed to stream data, however it fails to work using pump method and I am wondering why http://pastie.org/2585443 [18:28] robhawkes has joined the channel [18:32] AvianFlu: I'm pretty sure pump is deprecated [18:32] AvianFlu: try stream.pipe instead [18:33] escii has joined the channel [18:33] binaryjohn has joined the channel [18:35] stagas: hm must be a bug in the sax parser [18:36] unomi has joined the channel [18:37] wbednarski has joined the channel [18:37] TheJH: stagas, which one are you using? [18:38] knifed has joined the channel [18:38] ShonM: express isn't compatible with 0.5.x? damn. [18:38] chance- has joined the channel [18:38] tjholowaychuk: ShonM tons of stuff will break with 0.5.x right now [18:38] DrMcKay: basic functionality works, tho [18:39] ShonM: tjholowaychuk: i'm going back to 0.4.12, it was just apt-get in ubuntu fetched 0.5.x by default [18:39] topaxi has joined the channel [18:39] tjholowaychuk: ah [18:39] tjholowaychuk: dont apt-get node [18:39] tjholowaychuk: it's simple to install from source [18:39] stagas: TheJH: xml2js which apparently uses isaac's sax-js [18:39] ShonM: tjholowaychuk: noted, thanks :) [18:39] DrMcKay: ShonM: use nvm [18:40] DrMcKay: ShonM: https://github.com/creationix/nvm [18:40] ShonM: DrMcKay: trying to keep my server lightweight so imaging doesn't take forever [18:40] ShonM: otherwise i would. for now from source works fine. [18:41] vidi has joined the channel [18:41] DrMcKay: ShonM: what imaging? and nvm is just a single bash script [18:41] ShonM: DrMcKay: like a backup of the entire server [18:41] djcoin has joined the channel [18:42] DrMcKay: ShonM: ah, OK [18:42] ShonM: that's a brilliant script though, wow. [18:42] tjholowaychuk: lol [18:43] stagas: TheJH: gonna try xml2json which uses node-expat [18:43] ShonM: now i have to figure out how to clean up after a package in os x :/ [18:43] stonebra_ has joined the channel [18:47] robotmay has joined the channel [18:49] MooGoo: just drag it to the trash can fer sure [18:49] robi42 has joined the channel [18:49] khrome_ has joined the channel [18:49] DrMcKay: how does optimist handle --option-with-this-funny-char? [18:50] alex___ has joined the channel [18:50] alex___: hola [18:50] MooGoo: it just assumes everything will work out fine [18:50] petrjanda: AvianFlu: thx for info, didnt know that (docs sais "experimental") [18:50] DrMcKay: MooGoo: :D [18:50] blup has joined the channel [18:50] gxdssoft has joined the channel [18:51] _64k has joined the channel [18:53] stagas: TheJH: found the error, wasn't sax, it was node :) [18:53] stagas: apparently if I don't res.setEncoding('utf8') before it doesn't do proper conversion to string [18:53] tjholowaychuk: stagas that's not a bug [18:53] quackquack has joined the channel [18:53] tjholowaychuk: it's just giving you Buffers.. [18:54] stagas: tjholowaychuk: yeah, but I was using superagent and I was expecting res.text to be utf8 :) [18:54] TheJH: stagas, nearly everything in node gives you buffers unless you specify an encoding [18:55] TheJH: stagas, and that's good [18:55] hermanjunge has joined the channel [18:55] TheJH: stagas, at least most of the core stuff (fs, net, http) [18:55] tjholowaychuk: stagas yeah it should be, toString() defaults to utf8 [18:55] tjholowaychuk: and im just concatenating [18:56] tjholowaychuk: gotta finish the node stuff soon :( gah [18:56] tjholowaychuk: no time [18:56] stagas: tjholowaychuk: apparently that doesn't happen correctly, I tried array concat and string += in the raw agent and both didn't work [18:56] Dracko has joined the channel [18:56] stagas: tjholowaychuk: it only works with res.setEncoding('utf8') [18:57] Dracko: Hello, i need some help integrating ruby with javascript, anybody knows a library that can decode Marshal encoding [18:57] tjholowaychuk: > new Buffer('test') [18:57] tjholowaychuk: [18:57] tjholowaychuk: > new Buffer('test').toString() [18:57] tjholowaychuk: 'test' [18:57] tjholowaychuk: should work [18:57] stagas: hm yeah but what if the buffer has a half utf8 char [18:57] stagas: and you toString() it you miss it [18:58] hermanjunge: tjholowaychuk good to see you [18:58] stagas: then you += the other chunk string with the partial utf8 char again [18:58] stagas: so this error happens [18:58] hermanjunge: I'm writing a snippet to dump a list of names from a txt into redis [18:58] hermanjunge: to read the file lines I'm using lazy [19:00] meandi2 has joined the channel [19:00] hermanjunge: https://gist.github.com/1239704 [19:00] tjholowaychuk: stagas good point [19:00] tjholowaychuk: bug on my part then :) [19:00] stagas: tjholowaychuk: res.setEncoding('utf8') everything man from now on! :) [19:00] tjholowaychuk: im an ascii man [19:01] tjholowaychuk: haha [19:01] fxspark has joined the channel [19:02] hermanjunge: How can you work the asynchron-ness of ussing require('connect-redis').client.set ?? [19:03] fxspark has left the channel [19:03] tjholowaychuk: ? [19:04] ShonM: anyone know how to clean up after one of these? https://sites.google.com/site/nodejsmacosx/ in order to switch to using nvm [19:04] tjholowaychuk: i dont get it [19:05] scott_gonzalez has joined the channel [19:07] stagas: tjholowaychuk: hey I was about to open an issue! :P [19:07] tjholowaychuk: haha [19:07] tjholowaychuk: that's what i get for not having node tests yet [19:08] stagas: npm too plzz [19:09] kkaefer has left the channel [19:09] stagas: nah bugs are more fun when you discover them in practice :P [19:10] tjholowaychuk: one sec i'll release [19:12] Wizek_ has joined the channel [19:12] tjholowaychuk: the new multipart hasn't been tested too well yet [19:12] tjholowaychuk: i was going to use formidable to test [19:12] tjholowaychuk: but formidable breaks on some things [19:12] stagas: thx! [19:13] hellp has joined the channel [19:13] CarterL has joined the channel [19:13] marcello3d has joined the channel [19:15] robotmay has joined the channel [19:17] Lemon|mbp has joined the channel [19:18] Andrevan has joined the channel [19:22] jamesd has joined the channel [19:24] micheil has joined the channel [19:25] deakblue has joined the channel [19:26] cpetzold has joined the channel [19:29] avih has joined the channel [19:29] cpetzold has joined the channel [19:30] siculars has joined the channel [19:32] KaL has joined the channel [19:33] harthur has joined the channel [19:33] hermanjunge has joined the channel [19:33] JaKWaC has joined the channel [19:34] d_low has joined the channel [19:34] d_low has joined the channel [19:35] rootslab has joined the channel [19:35] ctevie has joined the channel [19:36] ctevie: hey guys. I'm looking for a pointer creating images with node. any hints on that? [19:36] Sorella has joined the channel [19:39] avih has joined the channel [19:40] d_low: i feel like there should be an option via the interface to kill running processes [19:41] Nuck: ctevie: Node-canvas [19:41] d_low: oops wrong window [19:42] isaacs has joined the channel [19:43] MrNibbles has joined the channel [19:43] tylerstalder has joined the channel [19:43] smathy has joined the channel [19:43] dreamdust has joined the channel [19:43] devongovett has joined the channel [19:44] shipit has joined the channel [19:45] confoocious has joined the channel [19:46] misterinterrupt has joined the channel [19:47] pt_tr has joined the channel [19:47] blah has joined the channel [19:47] jesusabdullah: YOU're the wrong window! [19:47] fangel has joined the channel [19:48] avih has joined the channel [19:49] ShonM: how would i get the server IP in node? [19:50] deakblue: I looked this up recently and the recommendation was shelling-out with 'sys' and ifconfig (linux). [19:50] aoberoi has joined the channel [19:51] scott_gonzalez has joined the channel [19:52] TheJH: ShonM, deakblue, http://nodejs.org/docs/latest/api/os.html#os.getNetworkInterfaces [19:52] MooGoo: require('os').getNetworkInterfaces() in .5 :/ [19:52] MooGoo: yar [19:52] MooGoo: but not in .4 [19:52] ShonM: aha, thanks [19:53] jtsnow has joined the channel [19:53] deakblue: oh, nice, that's a lot better. [19:53] ShonM: too bad i'm on 0.4.9 :P [19:53] MooGoo: hm [19:53] Venom_X has joined the channel [19:55] JaKWaC has joined the channel [19:55] ctevie: Nuck: thx, will look into it [19:56] infynyxx has joined the channel [19:56] dgathright has joined the channel [19:57] abjorn has joined the channel [19:57] avih has joined the channel [19:58] devongovett has joined the channel [19:59] nyuszika7h has left the channel [20:00] fxspark has joined the channel [20:00] skm has joined the channel [20:00] Brian` has joined the channel [20:01] m1k3l has joined the channel [20:04] losing has joined the channel [20:04] avih has joined the channel [20:04] slickplaid: Is there any estimated stable (0.6.x) node.js release date? Or is it ready when it's ready? :D [20:04] MrNibbles has joined the channel [20:06] MooGoo: pretty sure its within a month [20:08] pizthewiz has joined the channel [20:09] ShonM: swell. then i can have my server ip >:D [20:09] jbpros has joined the channel [20:09] MooGoo: then you have to wait for all your modules to fix themselves for .6 [20:09] slickplaid: we'll do it live [20:10] fxspark has left the channel [20:10] MooGoo: of course [20:10] slickplaid: (╯°□°)╯︵ ┻━┻ [20:10] _64k has joined the channel [20:10] MooGoo: had no idea bill oreilly had a smilie [20:11] slickplaid: haha [20:11] slickplaid: t(-_-t) <-- bill [20:12] KaL has joined the channel [20:13] MooGoo: he's always so mad [20:14] smus has joined the channel [20:15] ShonM: i guess i could make a request to a php script to get the server ip for now...? [20:15] MooGoo: I'm going to pretend you didnt just say that [20:16] joshkehn: ShonM: Reasonable compromise. [20:16] ShonM: MooGoo: *for now [20:16] ShonM: at least until the latest stable version can tell me the server ip [20:16] MooGoo: I've lost faith in humanity yet again [20:16] MooGoo: jsut call ifconfig [20:16] slickplaid: ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' [20:17] TheJH: ShonM, you maybe could also use a piece of wire you just found on the ground to fix a million-dollars-worth computer, but it somehow feels weird [20:17] MooGoo: you dont want to be loading PHP and all its dependances and all its extensions [20:17] MooGoo: ever [20:17] MooGoo: for any reason [20:17] smathy has joined the channel [20:17] ShonM: slickplaid: gonna try that one [20:18] slickplaid: :) [20:18] ShonM: MooGoo: my primary app is written in php, it's no bother to me. i'm using node in place of long-polling. that's all [20:21] MooGoo: is this node running as a server? [20:21] MooGoo: what about server.address()? [20:22] ShonM: yes as a server. i'm new to node (as of today) so, i would have to ask then; what is the definition for the server var? [20:22] MooGoo: http://nodejs.org/docs/v0.4.12/api/net.html#server.address [20:25] isaqual has joined the channel [20:26] igl has joined the channel [20:29] fatjonny has joined the channel [20:29] Dulak has joined the channel [20:30] normanrichards has joined the channel [20:30] jmoyers has joined the channel [20:34] ShonM: MooGoo: that returns 0.0.0.0 for me :/ [20:36] MooGoo: lol [20:36] MooGoo: sounds like a bug [20:37] ShonM: on 0.4.9 [20:37] Lingerance: I think that just returns what the server is listening on. [20:37] MooGoo: is it listening [20:37] Lingerance: Yeah, it returns what you told it. [20:38] jtsnow has joined the channel [20:38] James__ has joined the channel [20:39] schwab has joined the channel [20:39] tk has joined the channel [20:40] crescendo|laptop has joined the channel [20:40] crescendo|laptop has joined the channel [20:42] knirhs has joined the channel [20:43] MooGoo: you dont have to specify an interface for createServer to work [20:43] cpetzold has joined the channel [20:49] diamonddog has joined the channel [20:51] knirhs has joined the channel [20:52] jonrohan has joined the channel [20:52] Frippe has joined the channel [20:54] jtrudeau has joined the channel [20:54] FireFly|n900 has joined the channel [20:54] FireFly|n900 has joined the channel [20:55] jtrudeau has joined the channel [20:55] MooGoo: is there a way to use node's v8 directly? [20:55] MooGoo: without compilng v8 seperatly [20:55] MooGoo: plz excuse my spelling... [20:56] sgupta has joined the channel [20:58] heavysixer has joined the channel [20:59] knifed has joined the channel [20:59] Lemon|mbp has joined the channel [21:01] jesusabdullah: What do you mean MooGoo? Aren't you using v8 directly? [21:01] MooGoo: without loading any of node [21:01] brokenjames has joined the channel [21:02] jesusabdullah: Ah [21:02] jesusabdullah: What's your use case ooc [21:02] MooGoo: eval bot [21:02] jesusabdullah: ah [21:02] joshkehn: Anyone know if there is a `mkdir -p` available in node's fs package? [21:02] MooGoo: since runInNewContext isnt quite secure enough [21:02] jesusabdullah: It's not? [21:02] MooGoo: nope [21:02] jesusabdullah: why come? [21:02] MooGoo: some crazy hackers here found a way to escape the context [21:02] MooGoo: get access to process [21:02] MooGoo: etc [21:03] tizzo has joined the channel [21:03] MooGoo: not that it was trivial to do so [21:03] TheJH: MooGoo, it was trivial :D [21:04] TheJH: ACTION is not crazy :( [21:04] JaKWaC has joined the channel [21:05] hermanjunge has joined the channel [21:05] TheJH: MooGoo, did you see my node pull request for a more secure runInNewContext? [21:05] MooGoo: most people who spend 75% of their time idleing on irc are crazy [21:06] MooGoo: yea [21:06] TheJH: MooGoo, I can't guarantee that it's completely secure, but I think it's relatively good [21:06] TheJH: idleing as "stares at the screen without doing anything" or as in "while coding"? [21:07] MooGoo: both [21:07] TheJH: :D [21:07] TheJH: what about "in school"? [21:07] TheJH: s/in/at/ [21:07] MooGoo: school eh [21:07] MooGoo: I dont remember what that was like [21:08] schwab has joined the channel [21:08] MooGoo: back in my days teachers tended to get pissed if you brought a computer into class [21:08] knirhs has joined the channel [21:08] MooGoo: and I usualy skipped it anyways [21:09] CollinTMiller has joined the channel [21:10] mehlah has joined the channel [21:10] CollinTMiller: how seriously is the "unstable" label on 0.5.x mean to be taken? I'm running into npm modules that require >=0.5.0 [21:10] MooGoo: are you running any of the other 90% of modules that break in .5? [21:11] CollinTMiller: I can't even get npm to build on 0.5.7 [21:11] CollinTMiller: I'm just trying to see if I should be somewhat, or very frustrated by people specifying >=0.5.0 [21:12] MooGoo: they most certinly have versions that work on .4 [21:12] MooGoo: and .6 is stable and not too far off [21:14] djQuery: I am doing something like jsfiddle.net and wondering how they generate those unique ids such as d9GVc [21:15] MooGoo: math [21:16] MooGoo: usually [21:16] devongovett has joined the channel [21:17] TheJH: djQuery, just use UUIDs :) [21:17] MooGoo: >> (+new Date).toString(16) [21:17] MooGoo: v8 (+new Date).toString(16) [21:17] v8bot_: MooGoo: v8 is no longer supported (except in PM). Try v8: or v8> [21:17] TheJH: !@djQuery npm search uuid [21:17] jhbot: djQuery, packages (short format): uuid-lib, data-uuid, idea, uuid.js, uuid, uuid-pure, ossp-uuid, node-uuid, node-mug, dirty-uuid, hat [21:17] MooGoo: v8: (+new Date).toString(16) [21:17] v8bot_: MooGoo: "1329d4c95af" [21:17] MooGoo: hex gives it that UID flavor [21:17] kkaefer has joined the channel [21:18] kkaefer: so instead of eio_custom, I'm supposed to use uv_queue_work now? [21:18] TheJH: v8: Math.floor(Math.random()*0xfffff).toString(16) [21:18] v8bot_: TheJH: "3f5df" [21:18] TheJH: v8: Math.floor(Math.random()*0xfffff).toString(16) [21:18] v8bot_: TheJH: "e5f0b" [21:18] smus has joined the channel [21:19] TheJH: djQuery, an alternative if such short ids are ok, too - but you might want longer ones for security if you want to support private posts or so [21:21] dominictarr has joined the channel [21:22] mandric has joined the channel [21:23] hakunin has joined the channel [21:26] dylang has joined the channel [21:26] djQuery: thanks guys [21:29] dshaw_ has joined the channel [21:29] x0ack13 has joined the channel [21:31] parshap has joined the channel [21:34] dgathright has joined the channel [21:38] kmiyashiro has joined the channel [21:39] bnoordhuis: kkaefer: yes [21:39] kkaefer: ok [21:39] kkaefer: is there a RAII convenience type or do I have to do that myself? [21:40] bnoordhuis: kkaefer: not really [21:40] kkaefer: ok [21:40] bnoordhuis: but you can use something like this as inspiration: https://github.com/bnoordhuis/node/compare/issue1330-2 [21:40] HenryTrollins has joined the channel [21:40] kkaefer: yeah [21:40] tauren has joined the channel [21:40] Brandon_R has joined the channel [21:41] bnoordhuis: container_of is what makes it sexy [21:41] bnoordhuis: ACTION <3 container_of [21:41] Brandon_R: hello [21:41] kkaefer: I've been using https://github.com/developmentseed/node-sqlite3/blob/master/src/statement.h#L82-101 in the past [21:43] SubStack: I haven't used anything resembling RAII outside of C [21:43] SubStack: or C++ rather [21:43] Cromulent has joined the channel [21:43] Fabryz has joined the channel [21:43] SubStack: which leads me to conclude that it's more about working around a shortcoming than something inherent to API design [21:44] cying has joined the channel [21:44] NewCoder has joined the channel [21:45] Brandon_R: what's up guys [21:49] misterinterrupt has joined the channel [21:49] misterinterrupt: I am wondering about patterns for implementing models in express.js that use node-redis, anyone have any projects that might help me get an idea? [21:50] Brandon_R: nope [21:50] NetRoY has joined the channel [21:50] Brandon_R: how are regular models implemented? [21:50] SubStack: however you like! [21:50] sgupta has joined the channel [21:51] deakblue: So there's a RedisStore backend within socket.io. Do I tell socket.io to use redis somewhere? [21:52] matyr has joined the channel [21:52] kkaefer: bnoordhuis: btw, I'm working on https://github.com/kkaefer/node-cpp-modules in case you're curious [21:53] kkaefer: would love to have you look over to make sure I'm showing the libuv usage correctly [21:53] Brandon_R: anyone going to js conf? [21:53] bnoordhuis: kkaefer: sure, let me know when you're finished [21:55] misterinterrupt: @deakblue https://github.com/LearnBoost/socket.io/blob/master/package.json it seems to be responsible for its dependencies. You'll definitely need to run redis itself though. [21:56] max_dev has joined the channel [21:56] jmoyers_ has joined the channel [21:56] knirhs has joined the channel [21:57] rfay has joined the channel [21:58] deakblue: @misterinterrupt sure, I mean, I have redis running, in fact I'm subscribing to keys through socket.io. [21:58] deakblue: @misterinterrupt but then it occured to me that if socket.io was backed by redis, well, I could just publish thnings directly through redis out to the socket.io channels. [21:59] deakblue: @misterinterrupt I'm just not clear where socket.io decides to use redis or the memory store, is it automatic? [22:00] jtsnow has joined the channel [22:09] indexzero has joined the channel [22:11] ttpva has joined the channel [22:12] misterinterrupt: @deakblue I am not sure either, but I am also interested in it ;) looks like you can io.set('store', ) see this: https://github.com/dshaw/socket.io-redis/blob/master/examples/simple.js [22:13] LuckySMack has joined the channel [22:14] deakblue: @misterinterrupt I just dropped a message on the socket.io google group, your example looks something like what I was expecting [22:15] misterinterrupt: @deakblue I rememeber there is a stackoverflow example of redis pubsub with socket.io.. [22:15] matyr_ has joined the channel [22:15] deakblue: @misterinterrupt I think I found that, but I think it's where he's calling up redis directly. I actually ended up doing the same thing. [22:16] deakblue: @misterinterrupt But then I thought, wait, if socket.io is using redis, why am I creating a redis client and subscriving to it if socket's doing that anyway [22:16] deakblue: ? [22:18] Sorella has joined the channel [22:18] misterinterrupt: the advantage of the transport options? [22:19] CIA-109: libuv: 03Ben Noordhuis 07c-ares * r94dbbee 10/ (45 files in 10 dirs): c-ares: upgrade to 1.7.5 - http://git.io/k8DXfg [22:19] CIA-109: libuv: 03Ben Noordhuis 07c-ares * r6eb32aa 10/ src/uv-common.c : [22:19] CIA-109: libuv: common: fix includes [22:19] CIA-109: libuv: Don't rely on c-ares to pull in the headers for inet_addr, net_pton and [22:19] CIA-109: libuv: inet_ntop. c-ares 1.7.4 did but 1.7.5 does not. - http://git.io/Xwiaug [22:20] tk has joined the channel [22:20] towski has joined the channel [22:20] brokenjames has joined the channel [22:20] misterinterrupt: I see what you mean, though, these kinds of questions have been on my mind, regarding connections to redis and app design in general [22:21] spathi^ has joined the channel [22:22] deakblue: I did something like this (server side): [22:22] deakblue: http://pastebin.com/m7S2LB6U [22:22] gxdssoft has joined the channel [22:22] deakblue: So the client (browser) can then just subscribe to something in redis at any point [22:23] ttpva has joined the channel [22:24] alibapcyk has joined the channel [22:24] deakblue: @misterinterrupt and it works fine. But then I was wondering if I was going through unnecessary indirection. [22:24] misterinterrupt: yeah like if you set up the redis store, you could lose that redis client code? [22:24] CIA-109: node: 03Eric Lovett 07v0.4 * rf9fec3a 10/ lib/net.js : net: callback to socket.write should always be called asynchronously - http://git.io/fsGnqA [22:25] deakblue: @misterinterrupt PRECISELY! [22:25] avih has joined the channel [22:26] alibapcyk: Hey, I have a quick node related question if I may, it's pretty simple... [22:26] deakblue: @misterinterrupt on the other side of the redis fence, I plan to have a server that publishes made changes to couchdb. So end-clients can sign-up to watch for a sb change. [22:27] deakblue: * "publishes changes made" * [22:27] alibapcyk: Basically on the server side, I want to perform an ajax request, I'm used to doing this using jquery on the client side, but here I am on the server and I'm clueless [22:27] misterinterrupt: check out this https://github.com/LearnBoost/socket.io/blob/master/lib/manager.js [22:27] misterinterrupt: search on 'store' [22:27] jtsnow has joined the channel [22:28] bnoordhuis: alibapcyk: you want to do a http request? require('http').request() [22:28] djQuery: anyone got a tutorial that walks through creating a simple http server\website kinda thing? [22:29] deakblue: @misterinterrupt Yes, I see it. So if I override that to RedisStore, that might be where I change it. [22:29] alibapcyk: bnoordhuis Thanks, new it'd be easy [22:29] alibapcyk: knew* [22:29] murilobr has joined the channel [22:29] ckknight has joined the channel [22:29] jonrohan has joined the channel [22:30] bnoordhuis: djQuery: http://nodejs.org/ <- there's an example on the home page [22:31] ilikeit has joined the channel [22:31] misterinterrupt: seems like that's the direction, yeah [22:32] djQuery: bnoordhuis: well I ment a little more complicated than that lol, an example that actualy has parsing request vars login etc [22:32] ilikeit: could someone recommend a good place in the world to live as a tech developer? [22:32] deakblue: @misterinterrupt giving it a try now, let ya know in a bit [22:32] djQuery: ilikeit: well all the jobs I have had got moved to india [22:33] misterinterrupt: I don't know the interface for Store, but the Store.js and Manager.js as well as dshaw's project are all good starts [22:33] smtlaissezfaire has joined the channel [22:33] misterinterrupt: nice! [22:33] ilikeit: djQuery: i doubt I could compete with the locals if I moved there.. [22:34] ilikeit: djQuery: so san francisco isn't a good option? [22:34] matyr has joined the channel [22:34] crescendo|laptop has joined the channel [22:35] crescendo|laptop has joined the channel [22:36] ctevie has left the channel [22:37] MooGoo: if you're willing to move anywhere in the world [22:37] MooGoo: just look for a job [22:37] MooGoo: and move when you get it [22:38] AvianFlu: MooGoo++ [22:38] v8bot_: AvianFlu has given a beer to MooGoo. MooGoo now has 5 beers. [22:38] ilikeit: MooGoo: it would be for a startup [22:38] MooGoo: I'd highly recomend against such things [22:38] MooGoo: but thats me [22:38] MooGoo: any big city really [22:38] ilikeit: MooGoo: i live in London [22:39] ilikeit: MooGoo: but there's not really the same tech startup community i've heard about there being in san francisco [22:39] MooGoo: I wouldnt worry about it [22:40] MooGoo: startups are startups [22:40] MooGoo: if it goes beyond that... [22:40] MooGoo: and a big if at that [22:40] AvianFlu: people with the money to invest in companies have the money for plane tickets [22:40] ilikeit: but how would i meet them? [22:40] MooGoo: irc [22:40] MooGoo: maybe [22:40] MooGoo: phone [22:41] MooGoo: there's no need to have everyone be in the same location [22:41] konobi: london... that shithole? [22:41] hdon has joined the channel [22:41] MooGoo: britian has really gone downhill [22:41] MooGoo: apparently [22:42] ilikeit: lol [22:42] konobi: europe in general has it seems [22:42] ilikeit: the countries that were hardest hit by the recession [22:42] ilikeit: greece for example [22:43] tizzo-afk has joined the channel [22:43] ilikeit: london's not that bad, I'm just interested in moving somewhere and would like to be near a tech community [22:43] MooGoo: how's germany doing? [22:43] ilikeit: haven't been but hear it's gone down hill [22:44] ilikeit: that said [22:44] MooGoo: is it 2011 or 1933 [22:44] MooGoo: I'm not sure [22:44] ilikeit: all my friends from the states say they hate it there [22:44] MooGoo: they hate living in the US? [22:44] ilikeit: yeah [22:45] tomtomaso has joined the channel [22:45] MooGoo: do they hate living in general [22:45] ilikeit: or they've moved to London and they don't like the states [22:45] ilikeit: lol [22:45] ilikeit: i take it you love the states? [22:45] MooGoo: no...but it aint bad [22:45] paulwe has joined the channel [22:45] konobi: i'll never live in london again [22:45] MooGoo: certinly not much differnt than any other western country [22:45] ilikeit: which part are you in, if you don't mind me asking? [22:45] MooGoo: unless you spend 24 hours a day reading blogd [22:45] MooGoo: s [22:45] MooGoo: in which case everything is shit [22:46] MooGoo: east coast [22:46] ilikeit: konobi: where are you now? [22:46] MooGoo: living != getting worked up about politics [22:46] alibapcyk: I'm from Cambridge UK [22:46] alibapcyk: and travel to London daily [22:46] alibapcyk: Hasn't really gone downhill [22:46] alibapcyk: hasn't changed much at all [22:46] konobi: vancouver [22:47] MooGoo: but I dont like big cities in general [22:47] MooGoo: nor commuting [22:47] eee_c has joined the channel [22:48] ilikeit: yeah, me either [22:49] ilikeit: i've lived in London my whole life, want to try something different [22:49] ilikeit: brazil sounds promising [22:49] deakblue: @misterinterrupt I set the store to redis, started-up and my redis server lit-up with connections. Haven't quite figured out what's open yet. [22:50] MooGoo: I'm not much of a globe trotter... [22:50] MooGoo: english is my only and forever language [22:50] ilikeit: MooGoo: do you have a passport? [22:50] MooGoo: lol [22:50] MooGoo: I've never left the country [22:50] MooGoo: not even canada [22:50] ilikeit: ... [22:50] MooGoo: I went to flordia once I think [22:50] ilikeit: that's east coast right? [22:50] MooGoo: yes [22:50] konobi: MooGoo: it's like the states... but nicer =0) [22:50] ilikeit: xD [22:51] ilikeit: have you been to Vegas? [22:51] MooGoo: brazill or flordia [22:51] MooGoo: cause no one likes flordia [22:51] harthur has joined the channel [22:51] MooGoo: I dont like planes either [22:51] MooGoo: i have issues [22:51] ilikeit: but there's a whole world out there to see! [22:52] MooGoo: thats what the woman keeps saying [22:52] ilikeit: take a boat or a cruise or something lol [22:52] brianseeders has joined the channel [22:52] MooGoo: yea [22:52] MooGoo: boats [22:52] MooGoo: I like boats [22:52] MooGoo: I've heard bad things about brazils aviation industry [22:52] konobi: alaska's supposed to be nice for a cruise [22:52] ilikeit: yeah or Somalia [22:53] ilikeit: :P [22:53] MooGoo: cruise from the north east to alaska? [22:54] MooGoo: well if you live in alaska you get free oil money [22:54] misterinterrupt: @deakblue fun! [22:54] arch119 has joined the channel [22:54] konobi: there's always barrow =0) [22:55] MooGoo: if you dont mind commuting, PA is nice in the country [22:55] MooGoo: cept for the stupid liquor laws [22:55] deakblue has joined the channel [22:56] ilikeit: in case anyone's interested i found this link on best countries for startups: http://money.cnn.com/galleries/2008/smallbusiness/0809/gallery.best_countries_for_business.smb/index.html [22:56] arch119: Hi guys, a quick question, can we use the node.gyp file in the root dir to create a xcode project under osx? [22:57] MooGoo: oh singapore [22:57] ilikeit: it's from 2008 so i don't know how relevant it still is [22:57] kkaefer: ACTION hopes for https://gist.github.com/c1fe38c5e6ef84f48ca1 to be possible sometime soon [22:58] MooGoo: singapore seems like a nice place....and everyone speaks such proper english [22:59] willwhite has joined the channel [22:59] SubStack: maybe the US should set up special economic zones like china [22:59] SubStack: then the bay area could have its own immigration system [22:59] SubStack: that wasn't totally asinine [22:59] ilikeit: lol [22:59] Nuck: Ugh [23:00] Nuck: Why is Stylus' tmBundle so shitty [23:00] JaKWaC has joined the channel [23:01] MooGoo: "special ecnomic zones" [23:01] SubStack: maybe the bay area could finagle its way out of sox regulaations too [23:01] deakblue: @misterinterrupt Ok, I can't seem to send messages to any socket.io channels, but seems to make sense in principle. I'm going to use the manual redis code for now and wait for a newsgroup response. Many thanks for the help, signing-off now. [23:01] SubStack: silly overbroad reporting requirements are pouring money down the drain [23:01] MooGoo: are those like zones where the government doesnt tax and regulate you into the ground [23:01] MooGoo: those sound nice [23:01] SubStack: pretty much [23:02] sh1mmer has joined the channel [23:02] MooGoo: we could call them constitution zones [23:02] MooGoo: where the constituiton applys [23:02] SubStack: the constitution applies too many places, that's the problem [23:03] ilikeit: i think in the end i'm just going to go by this http://www.askmen.com/top_10/travel_200/210b_travel_top_ten.html [23:03] SubStack: makes it hard to experiment when federal laws apply everywhere [23:03] arch119: Any ideas about this? 'Undefined variable library in deps/http_parser/http_parser.gyp while loading dependencies of node.gyp while trying to load node.gyp' [23:04] MooGoo: I always thought the constitution limited the power of fed laws [23:04] MooGoo: but im just insane [23:04] SubStack: anyhow, node [23:05] jvdev has joined the channel [23:05] ilikeit: SubStack: on that topic [23:06] newsbad_com has joined the channel [23:06] ilikeit: SubStack: could you recommend libraries for async? [23:06] Nuck: Somebody make me a LESS that has transparent mixins. [23:06] SubStack: ilikeit: I recommend you write your own. [23:06] SubStack: it's fun times [23:06] Nuck: I love LESS's syntax, but I hate the lack of transparent mixins [23:06] slickplaid: we're call it MORE [23:06] MooGoo: middle_east = require('crypto'); //Government fine [23:06] SubStack: here's one I wrote: http://github.com/substack/node-seq [23:07] slickplaid: and it'll be chocolate flavored [23:07] ilikeit: SubStack: i suppose i'll learn exactly wtf is going on if i do that [23:07] matyr_ has joined the channel [23:07] jtsnow has joined the channel [23:07] SubStack: ilikeit: step is also a good one to start with https://github.com/creationix/step [23:07] Nuck: SubStack: I personally find async to be the best [23:07] ilikeit: SubStack: thanks [23:07] ShonM: there's just no good, cross-platform way to get the server ip in node 0.4.9 [23:08] Nuck: yeah there is [23:08] SubStack: Nuck: a lot of people say that, but I don't get it [23:08] Nuck: Just test against whatismyip.org or something [23:08] ShonM: an entire request :/ [23:08] SubStack: good thing node doesn't bundle a flow control lib giving it undue weight [23:08] MooGoo: that sounds like a terrible solutionj [23:08] SubStack: so we can experiment in userspace [23:09] Nuck: SubStack: async is great because it doesn't focus on flow control [23:09] davidbanham has joined the channel [23:09] Nuck: It focuses on providing async loops and whatnot [23:09] SubStack: Nuck: seq is a bit like that [23:10] SubStack: except more chainable [23:10] Nuck: SubStack: See, that's flow control [23:10] SubStack: with less combinators [23:10] Nuck: Too heavy for me [23:10] Nuck: I just use async because it's code I'd have to write myself otherwise [23:10] SubStack: Nuck: there is a section on the async readme that says "control flow" [23:10] SubStack: it's pretty much the same sort of stuff [23:11] Nuck: SubStack: Yes, way down there [23:11] Nuck: The stuff I never use [23:11] SubStack: it's just a different way of packaging [23:11] Nuck: SubStack: Not really. It's a difference in the focuses [23:11] Nuck: async's focus is not on control flow, it's on the loops and such [23:12] Nuck: control flow is there as a "well, if you want it, here it is" [23:13] MooGoo: that sounds like a nice feature there [23:13] Nuck: MooGoo: I don't use it [23:13] Nuck: I mostly just use the for loop and a few others [23:14] Nuck: I think I use parallel for my async recursive dependency resolver [23:14] Nuck: And only because to do anything else would be a fucking hell [23:14] Nuck: (I know; I tried) [23:15] MooGoo: you get used to it eventually [23:15] MooGoo: sometimes fighting the urge to indent makes worlds of difference [23:16] Wa has joined the channel [23:17] Nuck: MooGoo: I don't care about indentation [23:17] Nuck: In fact, it's part of how I read Node code. [23:18] Nuck: Fuckit, I'm sticking with LESS [23:18] chiyam has joined the channel [23:18] Nuck: I'm just unwrapping my nesting [23:18] idefine has joined the channel [23:18] Nuck: Well, for the most part [23:18] racar has joined the channel [23:18] Nuck: I'll renest a couple pieces, but only where it's an element of an object [23:21] sam350 has joined the channel [23:22] jhbot has joined the channel [23:22] Raynos: Anyone want to recommend a service [23:22] Raynos: which will run unit tests on N browsers on the cloud for me [23:22] joshkehn: Raynos: Sure [23:22] Raynos: (paid or free) [23:22] joshkehn: Ah [23:22] joshkehn: Hrm. [23:22] maxogden: Raynos: talk to SubStack [23:23] joshkehn: Browserling comes to mind. [23:23] Raynos: I know about browserling [23:23] Raynos: I dont think it has an API [23:23] joshkehn: http://browserling.com/contact [23:23] joshkehn: Shoot them an email. [23:23] Raynos: im sure there were a bunch of awesome things cocming out of nodeknockout [23:23] Raynos: for this testing [23:24] SubStack: Raynos: want a demo? [23:24] SubStack: Raynos: we've got a prototype for automated testing [23:24] SubStack: it's amazing [23:25] Raynos: SubStack: I've seen browserling it's awesome [23:25] Raynos: I'm thinking of hooking up my unit testing library with a cli [23:25] SubStack: yes [23:25] SubStack: that is exactly what we have built [23:25] Raynos: which just pipes it into a service (browserling) that runs all my tests for me [23:25] SubStack: check the pm ;) [23:26] SubStack: it's just a simple HTTP PUT [23:27] Raynos: I see, awesome tthings [23:33] cody-- has joined the channel [23:34] cody-- has joined the channel [23:34] EagleCoder has joined the channel [23:36] Oi has joined the channel [23:38] riven has joined the channel [23:38] riven has joined the channel [23:40] schwab has joined the channel [23:42] newsbad_com has joined the channel [23:43] reid has joined the channel [23:49] diorahman has joined the channel [23:55] jwcooper has joined the channel [23:59] jtsnow has joined the channel [23:59] matyr has joined the channel