[00:00] [[zz]] has joined the channel
[00:01] marcello3d: sweet. bson serializer/parser is working :)
[00:01] marcello3d: only 320 lines of code
[00:03] k1ttty has joined the channel
[00:04] rvb has joined the channel
[00:04] carpeliam has joined the channel
[00:04] TheCoreh: marcello3d: woah, awesome! does it work on a browser env too?
[00:05] marcello3d: it might, if you have a Buffer implementation
[00:05] telemachus: TheCoreh++
[00:05] v8bot: telemachus has given a beer to TheCoreh. TheCoreh now has 1 beers.
[00:05] telemachus: Posting issues works :)
[00:05] marcello3d: working on some unit tests. I'm sure this is full of bugs :)
[00:06] marcello3d: but I can both serialize and deserialize the two examples from http://bsonspec.org/#/specification
[00:07] TheCoreh: telemachus: ? haha
[00:07] TheCoreh: thanks haha
[00:07] TheCoreh: telemachus++
[00:07] v8bot: TheCoreh has given a beer to telemachus. telemachus now has 1 beers.
[00:08] telemachus: Now if I can only remember how to drink the beer...
[00:08] NuckingFuts has joined the channel
[00:09] christkv has joined the channel
[00:10] abrookins has joined the channel
[00:10] dominictarr: Marak: https://developer.mozilla.org/En/Core_JavaScript_1.5_Guide:Creating_New_Objects:Defining_Getters_and_Setters
[00:10] TheCoreh: TheCoreh-- ?
[00:10] TheCoreh: TheCoreh--
[00:10] v8bot: TheCoreh: Don't cheat! You can't give a beer to yourself.
[00:10] jbrokc has joined the channel
[00:11] TheCoreh: telemachus--
[00:11] v8bot: TheCoreh has taken a beer from telemachus. telemachus now has 0 beers.
[00:11] JoshC1 has joined the channel
[00:11] TheCoreh: haha
[00:11] TheCoreh: sorry about that
[00:11] TheCoreh: telemachus++
[00:11] v8bot: telemachus is getting too many beers. Don't let telemachus get drunk!
[00:13] NuckingFuts: ACTION yawns a "good afternoon"
[00:13] mwhooker has joined the channel
[00:14] mscdex: node.js rules!
[00:14] Marak has joined the channel
[00:14] Marak: DTrejoAFKarchive: where you at
[00:15] SubStack: found a bug in detective >_<
[00:15] seawise has joined the channel
[00:15] SubStack: but at least this is in its own module now
[00:16] Marak: sherlock nomes?
[00:16] skm has joined the channel
[00:18] skoom has joined the channel
[00:19] skm has joined the channel
[00:20] skm has joined the channel
[00:22] tonymilne has joined the channel
[00:26] ivanzhao has joined the channel
[00:26] ivanzhao has left the channel
[00:26] oscarkilhed has joined the channel
[00:31] andrewfff has joined the channel
[00:31] Benny_ has joined the channel
[00:32] robboyle has joined the channel
[00:34] isaacs has joined the channel
[00:35] unomi has joined the channel
[00:36] wookiehangover has joined the channel
[00:37] xerox: SubStack: hey
[00:37] xerox: v8: 1+1
[00:37] v8bot: xerox: 2
[00:37] boogyman has joined the channel
[00:38] xerox: v8: 'some "string with "quotes and stuff"" here now'.match(/".*"|\S+/g)
[00:38] v8bot: xerox: ["some","\"string with \"quotes and stuff\"\"","here","now"]
[00:38] xerox: :D
[00:39] v0idless-_ has joined the channel
[00:41] mbrochh has joined the channel
[00:42] mbrochh: hey guys... totally new to node.js. stupid question: Is it possible to query MySQL or Postgres DBs from Node and still have it all asynchronous?
[00:42] andrewfff has joined the channel
[00:42] niftylettuce has joined the channel
[00:43] isaacs: mbrochh: yeah
[00:43] xerox: ah no it is bugged SubStack, sigh
[00:43] isaacs: mbrochh: npm search mysql
[00:43] montylounge has joined the channel
[00:43] jmoyers has joined the channel
[00:43] mbrochh: kewl
[00:43] xerox: v8: 'aa "bb" ff gg "hh ii"'.match(/".*"|\S+/g)
[00:43] v8bot: xerox: ["aa","\"bb\" ff gg \"hh ii\""]
[00:49] tiglionabbit has joined the channel
[00:49] fatblueduck: http://pastebin.com/aVqpfstt
[00:49] fatblueduck: does anyone here know how to use mongoose?
[00:49] fatblueduck: it seems I'm able to connect to mongodb
[00:50] neoesque has joined the channel
[00:50] fatblueduck: but I'm not able to retrieve or save any information using node/express
[00:50] SubStack: xerox: you should probably just write a parser
[00:50] SubStack: or you can use node-burrito
[00:51] SubStack: if it's valid javascript
[00:52] xerox: not an easy parser
[00:53] jacter has joined the channel
[00:53] xerox: I just found a quote that makes my endeavor a bit problematic: «One of the well known limitations of Regular Expressions (regex) is that they cannot count balanced pairs of parenthesis.»
[00:54] oscarkilhed has joined the channel
[00:55] boehm has joined the channel
[00:57] jmoyers: thats the point
[00:58] jmoyers: thats why you don't 'parse' xml with regex -- it doesn't do well with arbitrary nesting, at all
[00:58] isaacs: SubStack: sodn is coming along
[00:58] telemachus: xerox: Sort of a version of this issue? http://xrl.us/bf4jh6
[00:58] jmoyers: ZALGO COMES
[00:58] telemachus: :)
[00:58] telemachus: Exactly
[00:59] telemachus: Always my first thought now whenever I hear/see parsing + regex
[00:59] jmoyers: heh
[00:59] jmoyers: my favorite piece out of that
[00:59] jmoyers: the
will not hold!
[00:59] telemachus: It's very, very well done. Actually the whole thread has some really nice touches...
[00:59] fatblueduck has left the channel
[00:59] mbrochh has left the channel
[01:00] telemachus: For example "Common mistake, you want to set the BecomeSelfAwareAndKillUsAll flag to false."
[01:01] isaacs: SubStack: got some race conditions when closing the connection before the handshake is done
[01:01] isaacs: i think i need to abstract out the whole network-knowledge bit
[01:02] jscheel has joined the channel
[01:02] jscheel has joined the channel
[01:02] sh1mmer has joined the channel
[01:03] brianng has joined the channel
[01:03] __sorin__ has joined the channel
[01:03] __sorin_1 has joined the channel
[01:03] justinw312 has left the channel
[01:05] fatblueduck has joined the channel
[01:05] cafesofie has joined the channel
[01:07] kruckenb has joined the channel
[01:07] SubStack: isaacs: could keep some state around, hasSaidGoodbye
[01:07] jacter1 has joined the channel
[01:07] SubStack: and then reinterpret conn.on('end', fn) events accordingly based on if the remote has said goodbye
[01:07] isaacs: SubStack: yeah, but if it closes before the hello is done, then the "i'm closing" message doesn't get received properly
[01:08] SubStack: right
[01:08] SubStack: send back an ack?
[01:08] SubStack: with a timeout
[01:08] isaacs: i'm trying to start with the edge cases and then color the insides.
[01:08] isaacs: i'm definitely going to have to handle other-node knowledge smarter anyhow
[01:09] isaacs: just sending the whole network each time is crazy costly
[01:09] SubStack: maybe you could copy how routers do it
[01:09] SubStack: bgp
[01:09] marcello3d: oi
[01:09] SubStack: or dns-style propagation
[01:09] isaacs: SubStack: there's some interesting papers on gossip protocols that ryah's turned me on to
[01:09] marcello3d: v8: typeof (/hello/gi)
[01:09] v8bot: marcello3d: "function"
[01:14] slloyd has joined the channel
[01:16] marcello3d: is it safe to do new Function(X) where X is untrusted? (assuming you don't run the function)
[01:16] marcello3d: or will new Function(X) potentially run code immediately
[01:18] Emmanuel__ has joined the channel
[01:21] tim_smart has joined the channel
[01:25] jacter has joined the channel
[01:25] avalanche123 has joined the channel
[01:26] Benny_: What's your guys fav DB to go with Node?
[01:26] fatblueduck: i've been having plenty of trouble with mongoose/mongodb
[01:27] Determinist has joined the channel
[01:27] marcello3d: is there a way to use apply with a constructor? e.g. I want to dynamically call new Function()
[01:29] ajoe47 has joined the channel
[01:29] saschagehlich has joined the channel
[01:30] ditesh|cassini has joined the channel
[01:31] marcello3d: nm, got a solution
[01:33] smtlaissezfaire has joined the channel
[01:36] abraxas has joined the channel
[01:39] patcito_ has joined the channel
[01:42] Remoun has joined the channel
[01:43] Benny_: fatblueduck: trouble with setup? or is it crashing?
[01:44] NuckingFuts has joined the channel
[01:44] NuckingFuts: ACTION yawns loudly
[01:45] abraham has joined the channel
[01:45] marcello3d: bah
[01:45] marcello3d: assert.deepEquals doesn't handle functions :(
[01:46] Emmanuel__ has joined the channel
[01:47] SubStack: traverse.deepEqual does
[01:47] siculars has joined the channel
[01:47] SubStack: probably I'll change the deepEqual thing to graphEqual though
[01:49] fatblueduck: Benny_ mongoose is unable to retrieve values from a mongodb connection that it did not itself insert
[01:50] fatblueduck: or perhaps i was just unsuccesful in finding answers to this problem
[01:51] fatblueduck: either way its been a nuisance to me
[01:53] k1ttty has joined the channel
[01:56] Marak: rauchg: there we go, http://twitpic.com/5e3ikz
[01:58] marcello3d: substack: does traverse do fuzzy function matching?
[02:01] brimster has joined the channel
[02:02] levi501d has joined the channel
[02:02] Swizec: marcello3d fuzzy function matching?
[02:03] marcello3d: for example, new Function("return 5") !== function() { return 5 }
[02:03] SubStack: marcello3d: it just checks the refs
[02:03] SubStack: using ===
[02:04] jacter has joined the channel
[02:04] marcello3d: gotcha
[02:05] marcello3d: I guess my test use case is pretty rare, anyway
[02:05] Greyscale has joined the channel
[02:06] Benny_: what u guys think about : http://www.ape-project.org/ ? demos look neat
[02:06] gavin_huang has joined the channel
[02:10] avalanche123 has joined the channel
[02:11] mynyml has joined the channel
[02:12] isaacs has joined the channel
[02:17] edude03 has joined the channel
[02:17] levi501d has joined the channel
[02:24] abrookins has joined the channel
[02:26] Benny_ has joined the channel
[02:26] sourcode has joined the channel
[02:26] CodyGray has joined the channel
[02:26] sechrist has joined the channel
[02:27] andrenkov has joined the channel
[02:27] andrenkov has joined the channel
[02:28] fatblueduck has left the channel
[02:28] \sega has joined the channel
[02:29] marcello3d: effing hate node.js useless error traces
[02:29] marcello3d: node.js:134
[02:29] marcello3d: throw e; // process.nextTick error, or 'error' event on first tick
[02:29] marcello3d: ^
[02:29] marcello3d: TypeError: Object ,0,
[02:29] marcello3d: what the hell does that even mean
[02:30] Benny_: haha at least it doesnt say "null exception error"
[02:32] vikstrous1 has joined the channel
[02:33] _fat has joined the channel
[02:33] Aphelion has joined the channel
[02:33] Aphelion has joined the channel
[02:34] brainproxy: suggestions for HTML5 slide-maker tool/helper thing?
[02:36] febits has joined the channel
[02:36] grandy has joined the channel
[02:38] grandy: hello, i am trying to use express-session-redis and getting a strange error, would anyone mind taking a look at the trace?
[02:38] F1LT3R has joined the channel
[02:39] grandy: correction, trying to use this approach and it's not working: https://github.com/visionmedia/express/blob/master/examples/session/redis.js
[02:40] rvb has joined the channel
[02:42] CodyGray has left the channel
[02:45] grandy: the trace says: Cannot read property 'session' of undefined
[02:45] grandy: anyone have any ideas? sorry i'm new to node
[02:47] smtlaissezfaire has joined the channel
[02:49] rpj8: in javascript, is there a way to do pointer-like variables where you have "foo = bar = null" and when you do `foo = 3`, then `bar === 3` ?
[02:50] JakeyChan has joined the channel
[02:51] isaacs has joined the channel
[02:52] SubStack: v8: var foo = {}; var bar = foo; foo.x = 10; bar
[02:52] v8bot: SubStack: {x:10}
[02:52] mbrevoort has joined the channel
[02:52] SubStack: rpj8: there's no way to do that with regular variables though, only through objects
[02:52] rpj8: SubStack: I knew about referencing a (static) object
[02:52] rpj8: ah ok
[02:52] rpj8: that's what I was asking then
[02:52] rpj8: thank you!
[02:54] _jgr has joined the channel
[02:55] rpj8: javascript isnt' so bad once you get the hang of it.
[02:55] ExsysTech has joined the channel
[02:55] rpj8: really once you get the whole context thing down it gets easier.
[02:56] brainproxy: SubStack: know of a node.js powered tool for making html5 based slides?
[02:56] brainproxy: I'm on the hunt; most of what I'm finding is ruby and python stuff
[02:56] SubStack: negative
[02:57] SubStack: I make my slides in latex
[02:57] Benny_: Joyent seems much more expensive than Amazon EC2?
[02:57] brainproxy: SubStack: there's a joke in there about vaseline or ky, but I'm not going to go there
[02:58] Twelve-60 has joined the channel
[02:58] abraham has joined the channel
[02:59] bazookatooth has joined the channel
[03:00] vikstrous has joined the channel
[03:01] seangaffney has joined the channel
[03:02] galaxywatcher has joined the channel
[03:04] ajoe47 has joined the channel
[03:08] blaenk has joined the channel
[03:08] blaenk has joined the channel
[03:08] Xano has joined the channel
[03:09] mike5w3c has joined the channel
[03:12] andrenkov has joined the channel
[03:12] andrenkov has joined the channel
[03:15] jacter has joined the channel
[03:15] jslatts has joined the channel
[03:18] kruckenb has joined the channel
[03:18] ngs has joined the channel
[03:19] __sorin__ has joined the channel
[03:19] amerine has joined the channel
[03:21] rauchg has joined the channel
[03:24] __sorin_1 has joined the channel
[03:28] brettgoulder has joined the channel
[03:28] copongcopong has joined the channel
[03:30] akshatj has joined the channel
[03:31] ajoe47 has joined the channel
[03:34] xandrews has joined the channel
[03:39] infynyxx has joined the channel
[03:40] mykul has joined the channel
[03:43] Aria has joined the channel
[03:47] avalanche123 has joined the channel
[03:48] unlink has joined the channel
[03:48] unlink has joined the channel
[03:48] kawaz_air has joined the channel
[03:49] saschagehlich has joined the channel
[03:50] oscarkilhed has joined the channel
[03:51] elpinguino has joined the channel
[03:53] confoocious has joined the channel
[03:56] hle has joined the channel
[04:00] marcello3d has joined the channel
[04:01] CodyGray has joined the channel
[04:02] CodyGray has left the channel
[04:05] NuckingFuts: With the Session MiddleWare on ExpressJS, how would I signify that a user is logged-in?
[04:05] NuckingFuts: As in, what should I use when a user logs in?
[04:06] adnam: req.session.isLoggedIn = true; ?
[04:07] rpj8: NuckingFuts: if (req.session.username)
[04:07] rpj8: :)
[04:07] NuckingFuts: rpj8: So I should just shove the username in a setting in it? That seems simple enough :D
[04:08] rpj8: NuckingFuts: Sometimes the simplest approach is best
[04:08] NuckingFuts: rpj8: Such is generally the case :P
[04:09] NuckingFuts: I just wasn't sure if there was a simpler solution lol
[04:09] jamescarr has joined the channel
[04:09] jamescarr: hey what is the readline module for?
[04:09] jamescarr: looking for some examples of using it
[04:12] smtlaissezfaire has joined the channel
[04:12] darshanshankar has joined the channel
[04:13] zeade has joined the channel
[04:15] grandy: hello, i'm using express and it appears that multiple routes are being called even though i am not calling next() ... anyone know what might be going on?
[04:18] adnam: ah, i've had that problem
[04:18] adnam: now what was it
[04:18] adnam: grandy: are you using a "*" route?
[04:19] grandy: adnam: i am using one defined as get('/:varname'
[04:19] grandy: is that equivalent to a wildcard?
[04:19] grandy: i assumed since this was defined below the more specific one that it would not be called
[04:20] adnam: two wild guesses, /:varname resolves to *, * is called even if earlier routes match
[04:21] grandy: adnam: hmm, ok interesting, i guess i can just add a bit more chars to the route :)
[04:21] adnam: you might wanna verify if that's correct
[04:22] marcello3d: mongolian bison is looking pretty good :D
[04:22] grandy: :)
[04:24] matjas has joined the channel
[04:25] jerrysv has joined the channel
[04:26] temp01 has joined the channel
[04:27] isaacs has joined the channel
[04:30] boehm has joined the channel
[04:36] Yuffster_ has joined the channel
[04:36] dguttman has joined the channel
[04:38] NuckingFuts: I should get cards that say "I'm CTO, fucker." to match Mark Zuckerberg's "I'm CEO, bitch." cards :P
[04:45] jamescarr has joined the channel
[04:49] JakeyChan: is there have good node.js tools to diff the all the files content in the folder?
[04:50] jslatts_ has joined the channel
[04:50] JakeyChan: the folder have same files but the files content is not the same
[04:51] framlin: theres a good unix-tool for .. called diff ... ;)
[04:51] JakeyChan: no node.js tools ?
[04:51] Mrfloyd has joined the channel
[04:53] vptr has joined the channel
[04:54] philtor has joined the channel
[04:55] vptr: I"m new to node.js and poking around with its functionality.. so here's a random question.. is there any ability to have mutable strings via node.js (i.e. v8)?
[04:55] sreeix has joined the channel
[04:56] dguttman has joined the channel
[04:58] NuckingFuts: vptr: Practically anything that C++ can do, Node can do, it's just a question whether you can do it right now ;)
[04:59] ctide has joined the channel
[04:59] NuckingFuts: Ugh
[04:59] vptr: ah k.. that's right.. so it's not limited by v8?
[04:59] NuckingFuts: vptr: I'm not sure on the details, TBH.
[04:59] vptr: i spose im unfamiliar with the interaction b/w node and v8
[05:00] NuckingFuts: But I do know that you can extend NodeJS through C++
[05:00] NuckingFuts: OR is it C?
[05:00] NuckingFuts: ACTION is forgetful
[05:00] vptr: k.. so seems there isn't something obvious out there to answer my q.. that's knowledge enough thanks
[05:00] vptr: i believe it's via C++
[05:00] meso_ has joined the channel
[05:01] vptr: given the c10k premise of node i figured ye olde garbage collection would be a problem for it
[05:01] vptr: i.e. since it handles high load most frameworks tend to experience problems when the garbage collector runs out of idle time and just blocks the app in order to clean
[05:02] NuckingFuts: vptr: As I understand, the load isn't actually that heavy in msot cases.
[05:03] NuckingFuts: NodeJS threads I/O, but beyond that is primarily single-threaded.
[05:03] NuckingFuts: So the main process is designed to run fast and then stya idle.
[05:04] yozgrahame has joined the channel
[05:04] NuckingFuts: And since it's based on v8, I'd assume when it "runs fast", it does so with style.
[05:04] NuckingFuts: And by style, I mean extreme fucking speed.
[05:04] NuckingFuts: :P
[05:05] chrisdickinson: NuckingFuts: one thing to note is that it's also relying on library authors to do whatever they have to do as fast as they can, and barring that, splitting the work up into iterations that release back to the event loop when possible
[05:06] hugdubois has joined the channel
[05:07] stebeee has joined the channel
[05:08] stebeee: hello, sending a jquery command to a client though websocket will just work or?
[05:09] hermanjunge has joined the channel
[05:09] Guest28566_ has joined the channel
[05:09] vptr: NuckingFuts: thanks.. yeah makes sense.
[05:10] hermanjunge: Hi, I'm looking for some literature or examples of using nodejs for distributed systems
[05:11] vptr: hermanjunge: you didn't find any references on the wiki
[05:11] vptr: ?
[05:11] F1LT3R has joined the channel
[05:11] vptr: https://github.com/joyent/node/wiki/Resources
[05:11] Nexxy has joined the channel
[05:11] Nexxy has joined the channel
[05:12] meso_ has joined the channel
[05:12] svend has joined the channel
[05:12] mwhooker has joined the channel
[05:14] gkmngrgn has joined the channel
[05:14] hermanjunge: vptr: yes
[05:15] seivan has joined the channel
[05:15] roozed has joined the channel
[05:15] amerine has joined the channel
[05:16] seivan: Not sure if this is a redis or a node question; 5 servers subscribing and publishing to a channel. How do you keep things synchronized? Maybe server 1 processes the data faster than server 2?
[05:18] Aria: How synchronized do you need it?
[05:19] cachemoney has joined the channel
[05:20] copongcopong has joined the channel
[05:20] Remoun has joined the channel
[05:20] fr0stbyte has joined the channel
[05:21] sh1mmer has joined the channel
[05:22] stebeee: hello, sending a jquery command to a client though websocket will just work or?
[05:24] dguttman has joined the channel
[05:25] dgathright has joined the channel
[05:28] cachemoney: stebeee: sending a command to client? you mean rpc?
[05:28] stephank has joined the channel
[05:31] dominictarr has joined the channel
[05:32] stebeee: cachemoney, like sending a jquery command from the server to the client with nodejs websocket
[05:33] temp01 has joined the channel
[05:33] cachemoney: stebeee: what do you mean by "jquery command"?
[05:33] cachemoney: stebeee: you might be looking for this: https://github.com/substack/dnode
[05:34] jakeg has joined the channel
[05:35] fr0stbyte has joined the channel
[05:36] skm has joined the channel
[05:36] benny__ has joined the channel
[05:39] StephenFalken has joined the channel
[05:42] isaqual has joined the channel
[05:43] zeade has joined the channel
[05:43] Skola has joined the channel
[05:46] darshanshankar has joined the channel
[05:49] skoom has joined the channel
[05:49] coreb has joined the channel
[05:51] stebeee: cachemoney, like anything '$("div.contentToChange p.thirdparagraph").hide("slow");'
[05:51] cachemoney: stebeee: you run that on the client-side
[05:52] mandric has joined the channel
[05:53] stebeee: i know, but what if it doesnt already exist on the client side and i need to send it there?
[05:55] rchavik has joined the channel
[05:56] aus has joined the channel
[05:57] mynyml has joined the channel
[05:57] cachemoney: stebeee: wrap it in a function on the client and use dnode to call it from the server
[05:57] dguttman has joined the channel
[05:59] aliem has joined the channel
[06:02] Marak has joined the channel
[06:02] Marak: this api is killing me
[06:02] Marak: https://gist.github.com/1035185
[06:02] fangel has joined the channel
[06:02] Marak: needs to get fixed ahhhhh
[06:04] anyaMairead has joined the channel
[06:07] SamuraiJack has joined the channel
[06:07] zomgbie has joined the channel
[06:07] brimster has joined the channel
[06:08] kbni has joined the channel
[06:10] kriskowal has joined the channel
[06:10] brimster_ has joined the channel
[06:10] mraleph has joined the channel
[06:11] simenbrekken has joined the channel
[06:11] hojberg has joined the channel
[06:13] anatoo has joined the channel
[06:13] dgathright has joined the channel
[06:14] anatoo has joined the channel
[06:17] josephboyle has joined the channel
[06:17] tauren has joined the channel
[06:17] hassox has joined the channel
[06:23] gausby has joined the channel
[06:23] marknel has joined the channel
[06:23] marknel: hello all :)
[06:24] marknel: I've just been doing some work on my Node/Socket.IO server and it seems that Safari refuses to connect (9 times in 10) Chrome/FF work fine. member:I'm using Socket.IO version 0.6.3. Any thoughts or common problems that would cause this?
[06:25] cachemoney: try the latest 0.6.x for both the server and client
[06:25] cachemoney: 0.6.18 i think
[06:25] marknel: this is already the case
[06:25] marknel: i'll double check the server
[06:26] marknel: client: 0.6.3
[06:26] marknel: server: 0.6.18
[06:27] marknel: node: 0.4.8
[06:27] Murvin has joined the channel
[06:27] muhqu has joined the channel
[06:28] dominictarr has joined the channel
[06:28] zomgbie has joined the channel
[06:29] cachemoney: marknel: are any errors being logged on safari's console?
[06:29] marknel: nothing
[06:30] marknel: and calling socket.connected returns false
[06:31] cachemoney: pastebin your code
[06:31] ph^ has joined the channel
[06:32] isaacs: sweet, sodn auto-reconnects like a champion now.
[06:34] marknel: what in particular are you looking for cachemoney? I can't send my entire code
[06:35] cachemoney: well you're not giving enough info to help you
[06:35] cachemoney: you could debug it in safari yourself
[06:35] davidbanham has joined the channel
[06:36] marknel: yeah sorry, I know that kinda shoots myself in the foot. I've been trying to debug
[06:36] marknel: through teh console directly
[06:37] marknel: watching teh server logs
[06:37] marknel: when i call safari doesn't even try to connect apparently
[06:37] marknel: *when i call connect
[06:38] cachemoney: debug the scripts
[06:38] fangel has joined the channel
[06:38] marknel: kk
[06:38] marknel: :)
[06:38] pen has joined the channel
[06:40] abraham has joined the channel
[06:40] `3rdEden has joined the channel
[06:41] jacter has joined the channel
[06:41] hojberg has joined the channel
[06:42] kbni: where is setMaxListeners set?
[06:43] jacobolus has joined the channel
[06:43] cachemoney: kbni: on any EventEmitter
[06:44] kbni: cachemoney: and if this occured due to a bunch of fs.watchfile?
[06:46] dall has joined the channel
[06:46] dall: hello
[06:47] cachemoney: kbni: you're reaching a listeners limit by doing that?
[06:47] kbni: yes
[06:48] cachemoney: kbni: have you tried fs.setMaxListeners(0)
[06:48] kbni: does not exist
[06:49] grandy: argh anyone know jade pretty well?
[06:49] ToXiC has joined the channel
[06:49] simenbrekken has joined the channel
[06:49] cachemoney: yeah, not too familiar with node internals
[06:49] kbni: thanks anyways :)
[06:50] cachemoney: kbni: what about fs.watchFile.setMaxListeners(0) ?
[06:50] ngs has joined the channel
[06:50] Spion has joined the channel
[06:50] Guest74998: hey can someone help me with setting up redis for session store??
[06:50] kbni: doesn't exist either
[06:50] Skola: I'm now using express for my blog
[06:51] Skola: but I want to build something more lean and bare bones
[06:51] Skola: just for the sake of learning
[06:51] Skola: what should I be looking at?
[06:51] grandy: can anyone tell me why the ol is rendering as a sister to p.features and not a child?
[06:51] grandy: https://gist.github.com/15293f393638d0b4b389
[06:52] cachemoney: kbni: i dont think this is possible without modifying the source for fs.watchFile :/
[06:52] Skola: grandy lemme check :[]
[06:52] kbni: 1yeah
[06:53] H2S04 has joined the channel
[06:54] Skola: grandy
[06:54] Skola: the same problem happens with ul
[06:54] Skola: I can verify
[06:54] kbni: process.binding('fs')
[06:55] Skola: but are ul/ol allowed to be children of p?
[06:55] cachemoney: kbni: that works?
[06:55] mraleph has joined the channel
[06:55] tomtomaso has joined the channel
[06:55] Skola: as per the html spec?
[06:55] kbni: no :(
[06:55] cachemoney: Skola: yes
[06:55] cachemoney: i think
[06:55] Skola: I think so too
[06:56] grandy: whoah
[06:56] dtan_: hey guys, i got a question about reading in a directory with files in it
[06:56] grandy: i thought they were too... so you're saying it's either that jade is enforcing the spec or that it's a bug?
[06:56] Skola: yes grandy
[06:56] Skola: I'll try to find what the spec says
[06:57] grandy: Skola: wow ok
[06:57] cachemoney: grandy: is this html5
[06:57] grandy: cachemoney: yes
[06:57] Skola: the thing is: lists are block elements
[06:57] grandy: Skola: ahh
[06:57] NuckingFuts|mobi has joined the channel
[06:57] dtan_: i've been able to get the list with require('fs') and going through the directory, but i can only get the list to show up when my "findFiles" method is within whichever file I am running my site on
[06:57] TomY has joined the channel
[06:58] grandy: Skola: strange, i would still think it could go inside p
[06:58] saurabhverma has joined the channel
[06:58] Skola: yeah I would think so too
[06:58] dtan_: if i try to offload the "findFiles" functionality into a separate file and do a require('./lib/findFiles')
[06:58] dtan_: i don't get the list showing up after that
[06:58] Skola: but remember, browsers let you get away with a lot of bullshit html
[06:58] NuckingFuts|mobi: Ugh I need to go get "nuck" deregistered :P
[06:58] dtan_: does anyone know why this would happen ?
[06:58] NuckingFuts|mobi: Skola: ah good ol tag soup
[06:59] dominictarr has joined the channel
[06:59] cachemoney: http://dev.w3.org/html5/spec/Overview.html#the-ul-element
[06:59] NuckingFuts|mobi: Delicious too :D
[06:59] cachemoney: i don't think you could have it inside a
[06:59] Skola: there you go
[06:59] Skola: browsers will let you
[06:59] niftylettuce has joined the channel
[06:59] jvduf has joined the channel
[06:59] niftylettuce: chapel++
[06:59] v8bot: niftylettuce has given a beer to chapel. chapel now has 11 beers.
[06:59] NuckingFuts|mobi: Browsers accept anything
[07:00] grandy: that's wild
[07:00] Skola: semantically it's not correct to put a list inside a paragraph, depending how you look at it
[07:00] cachemoney: end the paragraph, put the list, then start another paragraph
[07:00] grandy: Skola: yeah at first i thought it wasn't correct then i thought that i might write: today i'll go to the store, the restaurant and the club
[07:00] NuckingFuts|mobi: I could be sending a picture with text/html, and it'd try to parse it as tag soup lol
[07:01] grandy: one could feasibly mark that up in a list and color each destination differently or something
[07:01] isaqual has joined the channel
[07:01] Skola: hm yeah grandy, I understand
[07:02] NuckingFuts|mobi: Fuck
, use or
:P
[07:02] tuhoojabotti: html<3
[07:02] Skola: no :P
[07:02] NuckingFuts|mobi: Or better yet, use
[07:02] tuhoojabotti: NuckingFuts|mobi: Now a mobi nick, when will this all end?!
[07:02] Skola: use section! : )
[07:02] tuhoojabotti: html5<33
[07:03] NuckingFuts|mobi: Tuhoojabotti: iphone
[07:03] Skola: I'm not even being ironic
[07:03] Skola: grandy you could use
[07:03] Skola: :[]
[07:03] NuckingFuts|mobi: Skola: suuuuuuure. Fucking hipster.
[07:03] Skola: though you should probably use a
with linebreaks : p
[07:03] tuhoojabotti: If he also wants to use html5 and shim on ie :P
[07:04] Skola: yeah of course :D
[07:04] tuhoojabotti: Yes IE<333
[07:04] Skola: I break ie with pleasure
[07:04] NuckingFuts|mobi: So I hear ie can have circular doms
[07:04] NuckingFuts|mobi: Is it true?
[07:04] Skola: circular doms, whatsdis
[07:04] Skola: :[]
[07:04] tuhoojabotti: Yes?
[07:04] NuckingFuts|mobi: An infinite poop in the dom
[07:05] Skola: yep sounds about right
[07:05] NuckingFuts|mobi: Lol poop I meant loop
[07:05] Skola: :D
[07:05] tuhoojabotti: Why not
[07:05] NuckingFuts|mobi: Freudian slip ;)
[07:05] grandy: Skola: i keep being tempted to use section everywhere
[07:05] grandy: it's the new div
[07:05] Skola: could you show me (maybe /msg) your page?
[07:06] Skola: or does it only live on your dev box atm?
[07:06] NuckingFuts|mobi: Ewww I wouldnt I like my divs tyvm
[07:06] Skola: divs are crap
[07:06] Skola: and should be avoided at all cost
[07:06] tuhoojabotti: :O
[07:07] tuhoojabotti: I use lol -tags
[07:07] tuhoojabotti: for teh lulz
[07:07] Skola: I wish html wasn't so fucking shit
[07:07] tuhoojabotti: I wish Skola would stop shiting fuck
[07:08] tuhoojabotti: I mean
[07:08] Skola: !insult tuhoojabotti
[07:08] Skola: what, where's Calvin when you need him
[07:08] Calvin: where's the docs it seems fine
[07:08] tuhoojabotti: This is backend channel, stop complaining about frontend problems. :P
[07:08] NuckingFuts: pssssh! I use
s a LOT
[07:08] Skola: sure
[07:08] ivanzhao has joined the channel
[07:08] grandy: skola, lives on my dev box
[07:08] groom has joined the channel
[07:08] Skola: ok
[07:09] NuckingFuts: They're my general-purpose block-level node :P
[07:09] NuckingFuts: Them and spans
[07:09] grandy: Skola: but i appreciate your interest in helping/explaining tremendously
[07:09] NuckingFuts: Spans aren't block-level though
[07:09] crayzee has left the channel
[07:09] unomi: well, programming directly to the the DOM ( hopefully in an improved incarnation ) does seem like a desirable situation
[07:09] Skola: np
[07:10] andree_ has joined the channel
[07:10] ivanzhao: hello, are there any good node/javascript meet-ups in the Bay Area?
[07:11] unomi: never understood all this 'progressive enhancement' / 'graceful degradation' fetishm
[07:11] tuhoojabotti: Anyone coming to Assembly Summer 2011 to Finland? ;P
[07:11] Nedry has joined the channel
[07:11] framlin: unomi: if there is a good normalization-layer on top of the dom to code against ...
[07:11] topaxi has joined the channel
[07:11] tuhoojabotti: unomi: You wouldn't want your site to break on IE5!!!
[07:12] tuhoojabotti: ":D"
[07:12] ivanzhao: framlin: isn't that jquery + js?
[07:12] framlin: ivanzhao: where is the "Bay Area"?
[07:12] stebeee: how to watch websocket data in firebug?
[07:12] tuhoojabotti: framlin: The Finland's bay
[07:12] Skola: unomi us geeks should drag the rest of the world by the hairs to where we want to take the web
[07:12] unomi: framlin: nod - but that doesn't quite go far enough, you still have the performance overhead of 'rendering to html'
[07:12] __tosh has joined the channel
[07:12] NuckingFuts: ivanzhao: There's fucking MILLIONS in SF bay area.
[07:12] framlin: ivanzhao: yes, I think so ... maybe YUI3, too, but I din't use it
[07:12] Skola: but unfortunately the rest of the world pays us
[07:12] NuckingFuts: I've seen like 50 in the last month, I shit you not.
[07:13] NuckingFuts: There's JSBBQ (any more planned there?)
[07:13] ivanzhao: NuckingFuts: ah any good one you would recommend?
[07:13] NuckingFuts: ivanzhao: NEver been.
[07:13] NuckingFuts: I live in Central Valley, sadly
[07:13] NuckingFuts: (plus I'd feel so out-of-place, 100% sober and underage :P)
[07:13] framlin: unomi: overhead compared to what?
[07:14] uchuff has joined the channel
[07:14] NuckingFuts: I can't wait to turn 21.
[07:14] NuckingFuts: And at the same time, I want to take it slow lol
[07:14] unomi: framlin: compared to programming the browser 'directly'
[07:15] unomi: framlin: admittedly, you can get close to that via canvas / webGL - which is probably one of the reasons that they are so goddamn fast
[07:15] framlin: unomi: what do you mean by 'programming directly'?
[07:15] framlin: ahh, I see
[07:15] SubStack: NuckingFuts: what's keeping you from moving down by the bay?
[07:16] FIQ has joined the channel
[07:16] NuckingFuts: SubStack: Costs
[07:16] NuckingFuts: I'm not exactly rich :S
[07:16] NuckingFuts: And I don't have a car
[07:16] NuckingFuts: Or an income
[07:16] darshanshankar has joined the channel
[07:16] desdur has joined the channel
[07:17] NuckingFuts: hell, I ain't even got my LICENSE
[07:17] Marak has joined the channel
[07:17] SubStack: ACTION has some spare rooms in oak towne
[07:17] Marak: SubStack: what do you think of this hook.worker() API? https://gist.github.com/1035252
[07:17] Marak: its a party at the stack haus
[07:17] NuckingFuts: lawl
[07:17] NuckingFuts: SubStack: Wasn't isaac over there yesterday? :P
[07:17] SubStack: NuckingFuts: I don't have a car anymore either, but I'm a short walk from the BART
[07:17] SubStack: yeps
[07:17] isaacs: NuckingFuts: yeah
[07:18] ablomen has joined the channel
[07:18] NuckingFuts: Heh
[07:18] isaacs: SubStack: edge cases are getting less edgy
[07:18] NuckingFuts: I wanna spend my 20's in the bay area
[07:18] isaacs: SubStack: next step is to implement gossip
[07:18] NuckingFuts: Sounds like fun times.
[07:18] NuckingFuts: I'd just get tired of it after a while, retire and relax up in Portland
[07:18] NuckingFuts: Be an old hipster up there
[07:19] SubStack: isaacs: groovy
[07:19] isaacs: it is!
[07:19] NuckingFuts: I'll be 90 years old and still wearing a Fedora
[07:19] SubStack: NuckingFuts: back up your stuff and hop on a bus!
[07:19] isaacs: had to realize that connection.stream is a stream, so you can flush() it
[07:19] NuckingFuts: And I'll still rock it 8D
[07:19] SubStack: *pack
[07:19] ivanzhao has left the channel
[07:19] ivanzhao has joined the channel
[07:19] NuckingFuts: SubStack: lol I've never had a job, I have no savings, and I have no chances of living on my own right now XD
[07:19] isaacs: NuckingFuts: i met you irl at some point, right?
[07:20] NuckingFuts: isaacs: nup
[07:20] isaacs: NuckingFuts: or am i thinking of someone else?
[07:20] isaacs: oh, ok
[07:20] NuckingFuts: I've never met any of you guys :D
[07:20] isaacs: yeah, you need to be here if you're a programmer.
[07:20] NuckingFuts: isaacs: Yeah
[07:20] NuckingFuts: I know
[07:20] SubStack: NuckingFuts: you'll have such an easy time finding a job here
[07:20] NuckingFuts: But it's hard to find a job in these tough times.
[07:20] isaacs: the two common ways to do that are to either get some seed money and do a startup, or get a job at a Big Dumb Corp
[07:20] dtan_: can someone explain to me why i can get a list of files from a directory while running a function in my main app.js file but why I can't get that same list of files if i offload that functionality into another file in my ./lib direcory?
[07:20] NuckingFuts: SubStack: No license, no experience, and still 17? Doubt it.
[07:20] isaacs: NuckingFuts: if you know javascript, you can get a job.
[07:21] tuhoojabotti: Wohoo!
[07:21] isaacs: NuckingFuts: oh, nvm, dude, go to college or something. you only have like 10 years to do that, before it starts seeming creepy
[07:21] tuhoojabotti: Wait, I already have a job.
[07:21] jakeg has joined the channel
[07:21] NuckingFuts: isaacs: lolololol
[07:21] NuckingFuts: Fuck college
[07:21] NuckingFuts: I'm enrolled at Modesto Junior College
[07:21] tuhoojabotti: I'm 17 :3
[07:21] temp01 has joined the channel
[07:21] Marak: gotta get me some of that internet money ehh
[07:21] NuckingFuts: I can have sex with 16-year-old girls and it's only a MISDEMEANOR
[07:22] NuckingFuts: :P
[07:22] Marak: i hear they got that internet money in california
[07:22] tuhoojabotti: NuckingFuts: You're 17?
[07:22] SubStack: that's what I hear too
[07:22] NuckingFuts: I'm debating switching majors to programming
[07:22] NuckingFuts: tuhoojabotti: Aye
[07:22] isaacs: don't be so quick to dismiss the opportunity to be around a gillion people at the hottest and most hormonal point in their lives, and have it be socially acceptable to drink and party a lot of the time.
[07:22] cryptix has joined the channel
[07:22] NuckingFuts: isaacs: Parties in modesto mostly involve meth
[07:22] NuckingFuts: So no thanks
[07:22] grandy has joined the channel
[07:22] isaacs: ew
[07:22] NuckingFuts: We're known as METHdesto.
[07:22] SubStack: javascript party!
[07:22] NuckingFuts: Because we have too many methlabs
[07:23] Skola: FUUU Atlantic Ocean
[07:23] Skola: I want to get over to the other side of it asap
[07:23] isaacs: that's why oakland is so nice. it's so easy to get pot, the harder drugs are less of a problem.
[07:23] NuckingFuts: We USED to be the largest producer of MEth in all of America.
[07:23] NuckingFuts: isaacs: lawl Oakland?
[07:23] tuhoojabotti: Finland<3
[07:23] NuckingFuts: I'd NEVER move there.
[07:23] NuckingFuts: Oakland is a scary place.
[07:23] isaacs: why not? it's nice.
[07:23] tuhoojabotti: I saw Pendulum live!
[07:23] NuckingFuts: They call the amberlamps on you
[07:23] tuhoojabotti: ;D
[07:23] NuckingFuts: Cuz they leakin
[07:23] isaacs: amberlamps?
[07:23] SubStack: NuckingFuts have you ever been here? :p
[07:24] NuckingFuts: SubStack: Yes, it's a pretty ghetto-ass town
[07:24] NuckingFuts: :P
[07:24] kbni: NuckingFuts: you should know how to make meth then
[07:24] isaacs: yeah, it's a really really nice town to live in.
[07:24] SubStack: oakland is disappointingly safe
[07:24] kbni: NuckingFuts: you will be the life of the party
[07:24] isaacs: there are a few shit parts
[07:24] SubStack: but pleasantly cheap
[07:24] NuckingFuts: ACTION giggles at kbni
[07:24] tuhoojabotti: http://www.youtube.com/watch?v=rnwjOT8ztmg <- I was there front row ;D
[07:24] NuckingFuts: I saw an epic hobo in Berkeley today
[07:24] NuckingFuts: We went to north bay
[07:24] Skola: lol
[07:24] sgimeno has joined the channel
[07:24] Skola: TUHOO PERKELE
[07:24] NuckingFuts: And the guy was watching sports through a window
[07:24] tuhoojabotti: It was crazyyy
[07:24] SubStack: NuckingFuts: what are you doing in berkeley?
[07:24] Skola: this is a backend channel son
[07:24] Skola: :D
[07:24] tuhoojabotti: They called us crazy shit motherfuckers
[07:25] NuckingFuts: But we swore he was getting into a VERY heated debate with a window.
[07:25] kbni: Say I have enough memory to keep my entire website cached in-memory for each of my node process, is there any reason not to do that?
[07:25] jbpros has joined the channel
[07:25] djcoin has joined the channel
[07:25] kbni: removing the file system lookups should speed it right the fuck up, right?
[07:25] tuhoojabotti: Skola: Just call me tuhis
[07:25] isaacs: i will say that we have some of the most awesome homeless people in oakland.
[07:25] Skola: :[]
[07:25] tuhoojabotti: or use tab-completion
[07:25] isaacs: like HazzaFrazza and FistyCent
[07:25] dtan_: nm found my problem....using __dirname screwed me up
[07:25] NuckingFuts: SubStack: We'd gone to Vallejo to see the pirate festival (people had told us it was good, it wasn't), and so we spent the day in Berkeley
[07:25] isaacs: the two guys who work my neighborhood
[07:25] NuckingFuts: We had wanted to hit up the Cheese Board but nah
[07:26] isaacs: HazzaFrazza says "Hazza frazza cigarette?" and FistyCent says "Fisty cent?"
[07:26] NuckingFuts: isaacs: What about the Vietnam vet with the shirt that says "I AM A MOTHERFUCKER"
[07:26] isaacs: NuckingFuts: never seen him
[07:26] isaacs: NuckingFuts: i heard your dad's a mother fucker
[07:26] isaacs: (it's how most of us got here)
[07:27] NuckingFuts: isaacs: No, he's a crossdresser :S
[07:27] NuckingFuts: ACTION vomits
[07:27] isaacs: NuckingFuts: nice.
[07:27] SubStack: and increasingly, test tube babies
[07:27] Skola: http://www.quickmeme.com/meme/1imb/#by=sp
[07:27] isaacs: SubStack: oh, right. i was actually limiting my comment because of the 400 or so bots in this room.
[07:28] SubStack: can't wait until that is the norm
[07:28] grandy: ok one last jade question...
[07:28] NuckingFuts: 53 years old, has a huge-ass gut, and dresses up in teeny-bopper short-shorts.
[07:28] SubStack: Calvin: robospawn
[07:28] Calvin: robospawn
[07:28] NuckingFuts: My family has something severely wrong with it.
[07:28] isaacs: SubStack: really? i'm not sure i trust artificial insemination.
[07:28] cwo has joined the channel
[07:28] grandy: suppose i have a paragraph and i want to put some of its contents in a span... i can't figure out how to break out of the span but stay in the paragraph...
[07:28] seivan has joined the channel
[07:28] NuckingFuts: Happy father's day. OR wait, do I celebrate on Mothers' day?
[07:28] romanb has joined the channel
[07:28] isaacs: SubStack: not that evolution is great, but we shouldn't throw the baby out with the bathwater.
[07:28] Skola: span lulz
[07:29] Skola: | more lulz
[07:29] NuckingFuts: isaacs: Also, http://knowyourmeme.com/memes/epic-beard-man
[07:29] SubStack: isaacs: I mean we can start playing gods more
[07:29] SubStack: selecting lulzy traits
[07:29] NuckingFuts: That's in Oakland.
[07:29] ChrisPartridge has left the channel
[07:29] isaacs: oh, well, of course.
[07:29] JoESanche_z has joined the channel
[07:29] NuckingFuts: That man is a motherfucker.
[07:29] grandy: Skola: hah ok wow. maybe time to use a different template engine
[07:29] isaacs: i mean, we definitely should get better about making our kids smarter and healthier and all that.
[07:30] Skola: grandy there might be another way
[07:30] Skola: to write it inline
[07:30] Skola: not sure, haven't had a need for it
[07:30] isaacs: maybe we could give them "genetic" "mutations" so that they can control the weather, or magnetism, or turn into pure energy.
[07:30] Skola: but there might be, check github wiki/readme
[07:30] copongcopong has joined the channel
[07:30] NuckingFuts: grandy: Fuck that shit, and just use EJS lol
[07:30] NuckingFuts: It's what I did :P
[07:30] grandy: Skola: been reading it and not seeing this sort of case addressed...
[07:31] SubStack: ACTION naturally selects isaacs
[07:31] grandy: NuckingFuts: i think i might do that
[07:31] kbni: hey neat
[07:31] kbni: I found and instance where ; is required for node to work
[07:32] Skola: grandy I agree though that it starts to look ugly real fast
[07:32] grandy: i would have assumed that it had the same semantics as haml but slightly cleaner syntax, but i guess when you remove the special character from haml's tag methods you lose information
[07:33] isaacs: aww, thanks
[07:33] isaacs: srsly, though, in oakland you really don't have to worry about any serious violence, unless you talk shit to a bart cop.
[07:33] isaacs: those mother fuckers will murder you and get away with it.
[07:34] SubStack: they must have trouble recruiting, being so reviled and all
[07:35] isaacs: i dunno.
[07:35] isaacs: i find that a little surprising. i mean, people seem to dig killing, on the whole. removing the legal ramifications seems like a powerful incentive.
[07:35] NuckingFuts: isaacs: http://www.youtube.com/watch?v=lQJFv9SMSMQ
[07:35] NuckingFuts: Watch it.
[07:35] NuckingFuts: AC Transit Bus Fight
[07:36] SubStack: I retract my speculation.
[07:36] isaacs: NuckingFuts: yeah
[07:36] NuckingFuts: You seen that?
[07:36] isaacs: SubStack: maybe they dislike the idea of killing, so once it's clear that that's what it's about, they're not so into it.
[07:36] kriskowal has joined the channel
[07:36] boehm has joined the channel
[07:36] adambeynon has joined the channel
[07:37] NuckingFuts: I saw a black guy from the 90's up in Vallejo
[07:37] NuckingFuts: HE had a boom box on his shoulder
[07:37] bosphorus has joined the channel
[07:37] [AD]Turbo has joined the channel
[07:37] swistak has joined the channel
[07:37] NuckingFuts: And was blasting it, wearing a wife-beater and ripped up ghetto jeans
[07:37] SubStack: NuckingFuts: you should ride the bart sometime
[07:37] [AD]Turbo: hi there
[07:37] isaacs: NuckingFuts: yeah, i've never seen epic beard man
[07:37] NuckingFuts: SubStack: I have.
[07:37] NuckingFuts: Bart is AMAZINGLY clean.
[07:37] isaacs: (i mean, irl)
[07:37] isaacs: NuckingFuts: ???
[07:37] NuckingFuts: (though I hate the stations in SF)
[07:37] isaacs: compared to what? a pile of feces?
[07:38] NuckingFuts: I have a sever fear of heights.
[07:38] Skola has joined the channel
[07:38] isaacs: carpet. on a subway.
[07:38] isaacs: bad idea.
[07:38] _jgr has joined the channel
[07:38] NuckingFuts: isaacs: Meh, it's a lot cleaner than our buses.
[07:38] Skola: did my last message get through grandy ? : p
[07:38] jomoho has joined the channel
[07:38] SubStack: I bet it made sense in the 50s when everybody wore suits and fancy hats
[07:38] Skola: you can use inline html for your spans
[07:38] NuckingFuts: And we've got one of the top 10 best bus systems supposedly :S
[07:38] Skola: | this is part of a p.
[07:38] isaacs: ACTION will never think of a modesto bus the same way again
[07:38] isaacs: ACTION or probably ever again
[07:39] grandy: Skola: ahh ok just got it
[07:39] grandy: Skola: interesting... that's not too bad
[07:39] NuckingFuts: isaacs: MAX buses are horrible. We have people MASTURBATING on the bus
[07:39] NuckingFuts: I've had two friends see it
[07:39] NuckingFuts: One had it happen to them twice
[07:39] Skola: not the bus' fault :[]
[07:39] isaacs: NuckingFuts: meh. as long as you don't get the semen on any orifice or open wound, you're fine.
[07:40] isaacs: NuckingFuts: there's flesh eating bacteria in the bart seats. (not exaggerating)
[07:40] NuckingFuts: The frist time they rode a bus, a man was fondling his nutsack on the bus. The other time, my friend Brittnie was on the bus, and suddenly the man next to her whipped it out
[07:40] NuckingFuts: isaacs: lolwat?
[07:40] Skola: lol
[07:40] isaacs: SubStack: yeah, the original pitch was that it had "as many seats as a 747" or some shit
[07:40] isaacs: ACTION wears gloves on the bart
[07:40] NuckingFuts: isaacs: You've gotta be joking :S
[07:40] NuckingFuts: isaacs: I usually stand, though, TBH
[07:40] NuckingFuts: I don't even bother with the bars either
[07:41] isaacs: it's not so bad, unless there's a SPORTS
[07:41] isaacs: when the SPORTS is happening, omg, it's bad.
[07:41] NuckingFuts: isaacs: Ewwww sports events cause shit yeah :V
[07:41] NuckingFuts: ESPECIALLY in Oakland
[07:41] isaacs: lots of large warm moist orange mammals.
[07:41] NuckingFuts: Raiders fans are fucking rabid.
[07:41] isaacs: nono, ti's the sf
[07:41] isaacs: giants
[07:41] isaacs: their stadium is right off the embarcadero stop
[07:42] NuckingFuts: isaacs: Ah true
[07:42] isaacs: so i get to ride the train through the tunnel with all the sportsers
[07:42] PhilK has joined the channel
[07:42] NuckingFuts: I dig bart's speed though
[07:42] NuckingFuts: I hate their stations
[07:42] SubStack: sportlings
[07:42] isaacs: hahah
[07:42] NuckingFuts: But on calm days, it's not so bad.
[07:42] NuckingFuts: Busy days it's just a pain in the ass
[07:42] SubStack: all that prime real estate along the pier, devoted to generating pseudorandom numbers
[07:42] isaacs: my only other complaint about hte bart, besides the humans and their flesh eating bacterias, is that they hate bikes at rush hour.
[07:43] isaacs: other than that, it's really a pretty ok system.
[07:43] SubStack: yeah I wish bart had dedicated bike racks like MAX
[07:43] NuckingFuts: isaacs: fuggin hippy :P
[07:43] SubStack: or even fucking caltrain
[07:43] NuckingFuts: MAX?
[07:43] SubStack: portland's transit system
[07:43] NuckingFuts: OH RIGHT
[07:43] NuckingFuts: Fuck yeah
[07:43] NuckingFuts: Portland FTW
[07:44] SubStack: portland is smart in that their lightrail and bus system are managed by the same peeps
[07:44] isaacs: nice
[07:44] NuckingFuts: SubStack: I wanna live my life in Portland, but experience the Silicon Valley first :P
[07:44] `3rdEden: isaacs is there a way to delete the npm config?
[07:44] isaacs: the bus system in san diego was pretty nice for bikes. they had a rack in the front of every bus
[07:44] CStumph: 1,1I miss the max after moving here, did not know how spoiled I was
[07:44] NuckingFuts: So I aim to be in Bay area at 20-21
[07:44] msucan has joined the channel
[07:44] NuckingFuts: Then ten years later, move to Portland
[07:45] isaacs: 3rdEden: npm config delete blahdeebloop
[07:45] `3rdEden: ah
[07:45] NuckingFuts: Assuming that's feasible :/
[07:45] NuckingFuts: PRolly not lol
[07:45] Bj_o_rn has joined the channel
[07:45] NuckingFuts: But the cost of living would be so much lower
[07:45] `3rdEden: thanks isaacs, the `npm config set global true` got annoying ;)
[07:45] isaacs: 3rdEden: or just remve the ~/.npmrc file if you like
[07:46] NuckingFuts: How long will the JavaScripters market remain in SF?
[07:46] Skola: what's a more lightweight option for mvc apps than express?
[07:46] NuckingFuts: I'm curious :P
[07:46] NuckingFuts: I'd dig having my 21st in a big city :D
[07:47] NuckingFuts: Get so wasted I wake up with a hot chick and a pineapple 8B
[07:47] NuckingFuts: And no recollection of what happened
[07:47] swistak has joined the channel
[07:47] NuckingFuts: Speaking of hot chicks... I still need to call this girl... Yay for being underage C:
[07:48] sshaginyan_ has joined the channel
[07:48] sshaginyan_: Please does anyone know of a nice mvc example with express?
[07:48] ivanzhao: Skola: express is pretty lightweight
[07:49] kawaz_air has joined the channel
[07:49] NuckingFuts: Express is just fucking AWESOME.
[07:49] NuckingFuts: I don't care if it's lightweight or heavyweight, it's amazing.
[07:49] mc_greeny has joined the channel
[07:49] sshaginyan_: I've checked the examples and found a mvc example but had as no model...
[07:49] NuckingFuts: I've learned so much about shit that it can do that I didn't realize when I first started using it. It's so heavy it's light :P
[07:50] dominictarr has joined the channel
[07:50] NuckingFuts: sshaginyan: Use a database?
[07:50] NuckingFuts: ACTION shrugs
[07:50] sshaginyan_: yes
[07:50] sshaginyan_: mysql-native
[07:50] NuckingFuts: ACTION vomitd
[07:50] NuckingFuts: Sorry, SQL makes me gag.
[07:51] Bj_o_rn has left the channel
[07:51] NuckingFuts: What's the room to get a nick cleared from nickserv?
[07:51] dtan_: member:sshaginyan: you can try this: https://github.com/alexyoung/nodepad/
[07:51] sshaginyan_: NuckingFuts: I have no choice
[07:51] CStumph: I used https://github.com/Techwraith/Node-Base-App to get familiarized initially myself
[07:51] dtan_: but not using mysql afaik
[07:51] sshaginyan_: afaik...?
[07:51] NuckingFuts: MongoDB 4 LIFE
[07:51] dtan_: afaik = as far as i know
[07:52] NuckingFuts: Has anyone gotten Ryan's face tattooed on their chest yet?
[07:52] CStumph: gives you a starting point, already had CRUD/posts so you can sort of feel it out from there.
[07:52] NuckingFuts: I'm sorta curious.
[07:52] ShreeKavi has joined the channel
[07:52] hkjels: There's nothing wrong with sql, but in most cases a simple key => value store is all that's needed
[07:52] hkjels: mongo is defiantly a good choice
[07:53] NuckingFuts: I like MongoDB because it feels like I'm just working with natural JSON
[07:53] NuckingFuts: But with queries :D
[07:53] hkjels: You kind of are
[07:53] sshaginyan_: hkjels: I'm using database for a data mining project
[07:54] hkjels: k. Meaning you have a lot of counters
[07:54] sshaginyan_: yes
[07:54] hkjels: sql is a better choice then
[07:55] sshaginyan_: I was actually gana go with oracle
[07:55] sshaginyan_: but was expensiv
[07:55] hkjels: k, never tried
[07:56] sshaginyan_: hkjels: Have you heard of codeigniter for php, looking for something similar in node
[07:56] hybsch has joined the channel
[07:56] hkjels: sure
[07:56] emattias has joined the channel
[07:56] tbassetto has joined the channel
[07:57] sshaginyan_: googled the hell out "node.js mvc" but couldn't find anything stable
[07:57] sshaginyan_: hkjels: Any suggestions?
[07:57] hkjels: well. Node is a wip
[07:57] hkjels: I would recommend express
[07:58] NuckingFuts: I concur with hkjels
[07:58] sshaginyan_: wip?
[07:58] sshaginyan_: sorry new :)
[07:58] hkjels: It has'nt got the same mvc pattern as codeigniter, but it's fairly stable and easy to get aquatinted with
[07:58] alabala123 has joined the channel
[07:59] hkjels: work in progress.. Many of the projects are in an early stage
[07:59] sshaginyan_: hkjels: I see
[07:59] hkjels: but a lot of projects are stable, fast and scalable
[07:59] hkjels: so no worries
[08:00] ExsysTech has joined the channel
[08:00] robhawkes has joined the channel
[08:01] sshaginyan_: hkjels: just one more question I've been using express and came across express.bodyDecoder now bodyParser I know this is from connect but have no idea what it does
[08:01] hkjels: You should have a look at express, jade, stylus & perhaps socket.io if you'd want that live sugar
[08:01] sshaginyan_: I am currently using express + jade will look at socket.io
[08:01] TomY has joined the channel
[08:01] NuckingFuts: SubStack, isaacs: Do you see this big boom in JS lasting a couple more years? :/
[08:02] hkjels: It parses your headers
[08:02] hkjels: making posts into json and so on
[08:02] isaacs: NuckingFuts: yes.
[08:02] isaacs: NuckingFuts: it'll last as long as the web.
[08:02] NuckingFuts: Because I've got loose ends to tie up 'round here, plans to figure out, etc., but I'd really like to someday head over to the bay :D
[08:02] hkjels: it's just a middleware that you don't have to think about, but should have there to ease the workflow
[08:03] NuckingFuts: isaacs: lol but NodeJS is causing a huger boom :P
[08:03] NuckingFuts: Hell, in a year, I might not even NEED to find work 8D
[08:03] sshaginyan_: hkjels: thanks so much
[08:03] NuckingFuts: I may have made my own work lol
[08:03] hkjels: sshaginyan_: your welcome
[08:04] NuckingFuts: If everything is just as keikakku (TL note: keikakku means "planned")
[08:04] SubStack: NuckingFuts: javascript has the network effects on its size and also isn't so terrible
[08:04] SubStack: *side
[08:05] NuckingFuts: SubStack: I agree. Hence why I'm building a social network on it lol
[08:05] NuckingFuts: I expect it will scale gracefully like a Node app should :B
[08:06] Esteb has joined the channel
[08:06] adambeynon has joined the channel
[08:06] NuckingFuts: I'm starting to feel stressed though :S
[08:07] NuckingFuts: I'm just one guy
[08:07] NuckingFuts: And my client-side development is sorta lacking right now on this project...
[08:07] NuckingFuts: So I'm worried I might not meet my 2-month deadline
[08:07] Skola has joined the channel
[08:08] NuckingFuts: Shit. I need to ignore this.
[08:08] markwubben has joined the channel
[08:08] NuckingFuts: I can't get stressed.
[08:09] NuckingFuts: ACTION slaps himself
[08:09] bosphorus has joined the channel
[08:09] tuhoojabotti: ACTION also slaps NuckingFuts
[08:09] NuckingFuts: Anyone else wanna participate?
[08:09] NuckingFuts: tuhoojabotti++
[08:09] v8bot: NuckingFuts has given a beer to tuhoojabotti. tuhoojabotti now has 1 beers.
[08:09] tuhoojabotti: wohoo
[08:09] NuckingFuts: Thankies C:
[08:09] tuhoojabotti: My first beer
[08:09] NuckingFuts: lawl
[08:09] tuhoojabotti: Thanks to you.
[08:09] NuckingFuts: `beers
[08:09] tuhoojabotti: I wonder were I can switch it to coke.
[08:09] tuhoojabotti: :D
[08:09] NuckingFuts: Fuck you too, v8bot.
[08:10] NuckingFuts: v8: commands
[08:10] v8bot: NuckingFuts: ReferenceError: commands is not defined
[08:10] NuckingFuts: ACTION frowns at v8bot
[08:10] tuhoojabotti: Relax
[08:10] sshaginyan_: lol
[08:10] tuhoojabotti: listen to some pendulum
[08:10] tuhoojabotti: ;)
[08:10] NuckingFuts: tuhoojabotti: Nah, Beirut and Yes.
[08:10] NuckingFuts: That's how I code ;)
[08:11] NuckingFuts: Beirut for the nighttime sessions, Yes & Arcade Fire during the day
[08:11] aliem has joined the channel
[08:11] NuckingFuts: (mostly)
[08:11] Skola has joined the channel
[08:11] tuhoojabotti: I don't want to know more.
[08:11] tuhoojabotti: About your nighttime sessions
[08:11] NuckingFuts: tuhoojabotti: IT'S WHERE i MASTURBATE FURIOUSLY.
[08:11] tuhoojabotti: NuckingFuts: http://www.youtube.com/watch?v=TGbwL8kSpEk This is how I roll. ;D
[08:12] tuhoojabotti: Also dubstep.
[08:12] sshaginyan_: guys for music try thesixyone.com
[08:12] sshaginyan_: http://www.thesixtyone.com/
[08:12] tuhoojabotti: omg so web2.0
[08:12] sshaginyan_: I know
[08:12] tuhoojabotti: Oh it's a LINK!
[08:12] tuhoojabotti: I was wating for something cool to happen
[08:12] NuckingFuts: sshaginyan: OMG T61
[08:13] NuckingFuts: I LOVED THAT SITE
[08:13] sshaginyan_: lol
[08:13] NuckingFuts: Theeeeeeeeeeen... They got the new design.
[08:13] NuckingFuts: RAC, man.
[08:13] NuckingFuts: Best.
[08:13] NuckingFuts: Remixes.
[08:13] NuckingFuts: Ever.
[08:13] tuhoojabotti: sshaginyan_: No speakers @ work. :/
[08:13] sshaginyan_: :(
[08:13] tuhoojabotti: sshaginyan_: I sure hope that site works on my phone!
[08:14] sshaginyan_: I does on my android
[08:14] tuhoojabotti: "No Network Connection" fuuuu
[08:14] NuckingFuts: sshaginyan_: Doubti s :S
[08:14] tuhoojabotti: Ah now 3G<3
[08:14] NuckingFuts: It's flash-based
[08:14] NuckingFuts: So not on an iPhone
[08:14] tuhoojabotti: nuub
[08:14] tuhoojabotti: it works
[08:14] tuhoojabotti: Android<3
[08:14] sshaginyan_: Guys I want to share an idea with you.. maybe it's already been implemented ...idk
[08:14] NuckingFuts: FUCK U
[08:15] tuhoojabotti: NuckingFuts: Maybe later, I'm at work.
[08:15] dtan_: lol
[08:15] tuhoojabotti: sshaginyan_: It's not so good, because it has lyrics you know
[08:15] sshaginyan_: tuhoojabotti: lol
[08:15] tuhoojabotti: Background music with lyrics is a no go
[08:15] NuckingFuts: tuhoojabotti: I VOMATED
[08:15] sshaginyan_: I agree
[08:16] tuhoojabotti: Korean is fine because I don't know it. ;D
[08:16] tuhoojabotti: So I can't focus on it
[08:16] tuhoojabotti: you know
[08:16] mscdex: Calvin: node.js rules
[08:16] Calvin: nodejs 's docs are all there
[08:16] tuhoojabotti: It doesn't activate the speech areas :D
[08:16] mscdex: ha!
[08:17] mscdex: Calvin has android
[08:17] Calvin: android apps
[08:17] mscdex: Calvin would never own an iphone
[08:17] Calvin: iphone its the koran, the other half still thinks request is working out my ideal development stack would
[08:17] sshaginyan_: Okay here is my idea.....bare with me..... Universal API search engine...has something like this been done before?
[08:17] mscdex: :D
[08:17] mscdex: sshaginyan: yes
[08:17] sshaginyan_: where?
[08:17] mscdex: wait, what do you mean?
[08:18] dominictarr: hmm. sounds interesting... how would it work?
[08:18] sshaginyan_: c++/c, php, javascript, java, python, lisp
[08:18] NuckingFuts: sshaginyan: It exists. Has for like... 10 years. Lemme grab a link for you.
[08:18] NuckingFuts: ..
[08:18] Calvin: 14undefined
[08:18] NuckingFuts: http://google.com/
[08:18] sshaginyan_: documentation in a sigle search engine
[08:18] NuckingFuts: That's it
[08:18] Skola: ja very funny
[08:18] sshaginyan_: no not google
[08:18] sshaginyan_: lol
[08:18] newy_ has joined the channel
[08:18] sshaginyan_: anyone?
[08:18] Skola: but google unfortunately also contains links to shitty articles by disabled sysadmins
[08:19] mscdex: oh, i thought you meant a site that lists various web apis
[08:19] hassox has joined the channel
[08:19] NuckingFuts: Skola: You mean webmasters
[08:19] Skola: sshaginyan I'm not sure what the extra value would be for something like that
[08:19] mscdex: programmableweb.com is good for that
[08:19] dominictarr: sshaginyan_: can you elaborate on what you mean?
[08:19] Skola: although I'd prolly use it
[08:19] sshaginyan_: for instance everyone knows "strstr" but I want to know how many languages have the same exact function with what kind of parameters
[08:19] NuckingFuts: indexOf
[08:20] Skola: you have rosettacode
[08:20] sshaginyan_: for search by parameters instead of function name
[08:20] Skola: or something
[08:20] NuckingFuts: Oh yeah rosettacode
[08:20] Skola: but that could use a better search api
[08:20] sshaginyan_: I am currently using BeautifulSoup to do this
[08:20] sshaginyan_: nut want to use node for server/client side with autocomplete
[08:21] sshaginyan_: anything like this been done before?
[08:21] NuckingFuts: I just answered "how will I parse this list" with the Hoeky Pokey.
[08:21] NuckingFuts: I am a horrible person.
[08:21] mscdex: sounds kind of hokey
[08:22] sshaginyan_: :)
[08:22] mscdex: Calvin does the hokey pokey
[08:22] Calvin: hokey pokey
[08:22] mhauri has joined the channel
[08:22] NuckingFuts: Calvin puts his right foot in.
[08:22] Calvin: right now, it T NOW how to capture that puts
[08:22] NuckingFuts: Calvin taks his right foot out.
[08:22] Calvin: right after zynga got HUGE taks
[08:22] NuckingFuts: Calvin puts his left foot in, and he shakes it all about.
[08:22] Calvin: shakes a fist about
[08:22] NuckingFuts: lawl
[08:23] adrianmg has joined the channel
[08:23] temp02 has joined the channel
[08:23] mscdex: Calvin was having a seizure
[08:23] Calvin: seizure having
[08:23] unlink has joined the channel
[08:23] unlink has joined the channel
[08:23] Skola: Calvin Calvin
[08:23] Skola: sure go ahead an ignore me Calvin
[08:23] Calvin: ignore those
[08:23] mscdex: .talk skola
[08:23] Calvin: skola i will have to be done per call talk
[08:24] mscdex: .lol
[08:24] mscdex: fun times
[08:24] mscdex: .talk y2k
[08:24] Calvin: talk to the markdown filter y2k
[08:25] Skola: .talk Calvin
[08:25] Calvin: talk about expectations for the job'
[08:25] NuckingFuts: Fuck the hand, talk to the markdown filter
[08:25] mscdex: .talk nuckingfuts
[08:25] Calvin: nuckingfuts it's ok to use your brain to make the object is still around at least
[08:25] Skola: hahaha
[08:25] NuckingFuts: Calvin: I USE IT DAILY. FOR 5 MINUTES.
[08:25] Calvin: MINUTES to clean out that it's a complex protocol DAILY
[08:25] Skola: :D
[08:25] gozala has joined the channel
[08:25] Skola: hahaa
[08:26] mscdex: Calvin is the first step in Skynet becoming self-aware.
[08:26] Calvin: selfaware becoming
[08:26] hackband has joined the channel
[08:26] shinuza has joined the channel
[08:26] NuckingFuts: mscdex: Sounds more like he's dumbing it down
[08:26] papandreou has joined the channel
[08:26] mscdex: Calvin.js
[08:26] Calvin: Calvinjs
[08:29] nsolsen has joined the channel
[08:31] blup has joined the channel
[08:31] bosphorus_ has joined the channel
[08:32] asabil has joined the channel
[08:35] newy_ has joined the channel
[08:35] NuckingFuts: ACTION yawns
[08:36] NuckingFuts: How do you guys deal with people under 21 at the JS things? There's so much beer D:
[08:36] NuckingFuts: Just turn a blind eye? :P
[08:37] Skola: as if they're gonna babysit you :D
[08:37] SubStack: usually
[08:37] ekes: 21! It's 16 here :-P
[08:38] CStumph: It's the venue's responsibility... *shrug*
[08:38] tuhoojabotti: ekes: You're a good guy.
[08:38] temp01 has joined the channel
[08:39] NuckingFuts: CStumph: I was thinking the same thing XD
[08:39] eldios has joined the channel
[08:40] NuckingFuts: Skola: Very valid point. I was just wondering if they were crazy enough to toss 19-year-olds beers right at the dor XD
[08:40] NuckingFuts: So can anyone confirm or deny the Ballmer Point?
[08:41] tuhoojabotti: Peak?
[08:41] framlin: NuckingFuts: if you are 17, you should use your brain 17 minutes a day ...
[08:41] NuckingFuts: framlin: fuck that noise, I can't count that high in 5 minutes, sorry.
[08:41] NuckingFuts: tuhoojabotti: Yes, the baller peak
[08:41] NuckingFuts: *ballmer
[08:42] tuhoojabotti: It's on xkcd
[08:42] tuhoojabotti: It must be for real.
[08:42] CStumph: It's got validity with me, but It's such a delicate balance :/
[08:42] NuckingFuts: It actually wouldn't surprise me.
[08:42] framlin: oh, I see, thats a serious problem, I didnt want to discriminate against you
[08:42] framlin: ;)
[08:43] CStumph: harumph
[08:43] NuckingFuts: I'm gonna estimate the rate of beer-drinking based on v8bot's limit
[08:44] NuckingFuts: So the ballmer point is 1 beer a minute
[08:44] tuhoojabotti: NuckingFuts: Good luck with that.
[08:44] NuckingFuts: lawl
[08:44] tuhoojabotti: See if you're still alive tomorrow.
[08:44] hojberg has joined the channel
[08:44] tuhoojabotti: (Good song btw)
[08:45] NuckingFuts: tuhoojabotti: I'm not a drinker
[08:45] tuhoojabotti: Still Alive<3
[08:45] NuckingFuts: My dad was an alcoholic. It'll take a bit for me to get used to booze.
[08:45] herbySk has joined the channel
[08:45] NuckingFuts: :/
[08:45] NuckingFuts: God, my dad ruined everything for me D:
[08:46] tuhoojabotti: Sounds bad dude.
[08:46] NuckingFuts: He was a huge wine-drinker
[08:46] NuckingFuts: Never beat us, mind you
[08:46] tuhoojabotti: Mind taken.
[08:46] tuhoojabotti: No wait
[08:46] NuckingFuts: tuhoojabotti: ARE YOU MENTOK?
[08:46] NuckingFuts: THE MIND-TAKER?
[08:47] tuhoojabotti: CAPSLOCK
[08:47] CStumph: <-- was going to say that
[08:47] CStumph: too slow
[08:47] NuckingFuts: Who posted the korean shit earlier?
[08:47] tuhoojabotti: I'll go ask my bot what's mentok.
[08:47] tuhoojabotti: NuckingFuts: \o
[08:47] NuckingFuts: Because I just watched it.
[08:47] NuckingFuts: And all I can say is WHATTHEFUCK
[08:47] tuhoojabotti: Oh, oh oh oh
[08:47] tuhoojabotti: :D
[08:47] CStumph: http://www.youtube.com/watch?v=yC4jZKSU8G4
[08:48] tuhoojabotti: X-Mobot> Muntok or, more commonly, Mentok is a town in the Indonesian province of Bangka-Belitung, Indonesia. – http://href.fi/8h1
[08:48] tuhoojabotti: damn it
[08:48] tuhoojabotti: X-Mobot> Mentok the Mind-Taker is a fictional alien in the 1960s television program Birdman and the Galaxy Trio. – http://href.fi/7qu
[08:48] tuhoojabotti: worked ;)
[08:48] tuhoojabotti: Ha
[08:48] CStumph: :D
[08:48] NuckingFuts: tuhoojabotti: I loled at the first result
[08:48] tuhoojabotti: the links fails though.
[08:48] tuhoojabotti: damn href
[08:49] jonaslund has joined the channel
[08:50] tuhoojabotti: Still waiting for my buddy to make an api for his shortener. ;)
[08:50] NuckingFuts: tuhoojabotti: What powers the shortner?
[08:50] tuhoojabotti: The internet!
[08:50] NuckingFuts: If you say Ruby imma punch you.
[08:50] tuhoojabotti: No idea.
[08:51] tuhoojabotti: He knows Node though.
[08:51] NuckingFuts: so, I'm writing my own mongo-session storage stuff
[08:51] NuckingFuts: Because I want to control my database finely
[08:51] tuhoojabotti: But tuh.is domain is so expencive now I can't use my own shortener!!
[08:51] tuhoojabotti: or make one
[08:51] NuckingFuts: I still wish I could get leje.ck
[08:52] NuckingFuts: But nooooooo those fuckers over at .cock want me to lodge a cock in my name.
[08:52] NuckingFuts: ACTION flips the bird at .co.ck
[08:52] Skola: le?
[08:52] Skola: so hipster
[08:52] NuckingFuts: Skola: huh?
[08:52] NuckingFuts: I could also get chorr.is theoretically >_>
[08:53] NuckingFuts: SPEAKING OF WHICH
[08:53] NuckingFuts: ACTION needs to get "Nuck" freed up
[08:54] ewdafa has joined the channel
[08:55] adambeynon has joined the channel
[08:56] Nuck: 8D may have a new nick
[08:56] langworthy has joined the channel
[08:57] Nuck: I much prefer this nick over my long NuckingFuts
[08:57] ExsysTech has joined the channel
[08:57] bosphorus has joined the channel
[08:57] tuhoojabotti: Wohoo
[08:58] tuhoojabotti: Now just drop the stupid |-ends
[08:58] Nuck: Just waiting for the guys in #freenode to free it up in the services
[08:59] Nuck: tuhoojabotti: My Mobile will remain as |mobile
[08:59] tuhoojabotti: fufufu
[08:59] Nuck: But my main I will stop awaying on
[09:00] tuhoojabotti: Why can't you just use a proper shell? :/
[09:00] blup: is there a way of parsing pdf/word documents into html with js?
[09:00] frodenius: blup㇀ no
[09:00] tuhoojabotti: frodenius: What unheavenly character is that?
[09:01] tuhoojabotti: Can't see it with DejaVu
[09:01] tuhoojabotti: :P
[09:01] tuhoojabotti: Perhaps it's the encoding.
[09:01] CStumph has joined the channel
[09:01] Nuck: IT looks like a wierd angled dash to me :S
[09:01] frodenius: well yes ofc it is
[09:01] tuhoojabotti: IRC<3
[09:01] frodenius: your utf-8 support sucks
[09:01] tuhoojabotti: No
[09:01] tuhoojabotti: I use utf-8 from irc and iso sth to irc
[09:01] frodenius: wait, what?
[09:02] tuhoojabotti: wtf-8 input, ISO8859-15 output
[09:02] jeremyselier has joined the channel
[09:02] tuhoojabotti: Like from irssi to screen to my term
[09:02] miloshadzic has left the channel
[09:03] papandreou: tuhoojabotti: Y U NO WTF-8 :)
[09:03] kbni: hmn
[09:03] frodenius: so, what aspect of "your utf-8 support sucks" is wrong then
[09:03] devaholic has joined the channel
[09:03] tuhoojabotti: I dunno
[09:03] tuhoojabotti: I just work here.
[09:03] tuhoojabotti: I followed a guide. :3
[09:04] tuhoojabotti: My output is just recoded to ISO8859-15 otherwise I use wtf-8.
[09:04] tuhoojabotti: that's all.
[09:05] bzinger has joined the channel
[09:05] tuhoojabotti: And I can surely see most weird chars here.
[09:06] tuhoojabotti: Like kana and hangul
[09:06] tuhoojabotti: even äöå!
[09:06] tuhoojabotti: :P
[09:06] tuhoojabotti: This is too silent now. :o
[09:09] mike5w3c_ has joined the channel
[09:09] jensn has joined the channel
[09:10] vpereira has joined the channel
[09:10] kulor-uk has joined the channel
[09:10] vpereira: sorry, but can i compile by hand a npm that is faling tu build?
[09:11] tuhoojabotti: We were just having a silent moment.
[09:11] Nuck: Impossible. NPM does not fail. :P
[09:11] Nuck: lol
[09:11] vpereira: oh yeah
[09:11] vpereira: and looks like something wrong with the package, since it cannot find c-ares
[09:11] vpereira: and the c-ares is there
[09:12] vpereira: or it cannot find a header file, that is dear.
[09:12] vpereira: there
[09:12] vpereira: maybe somebody can try to install he package and see it happens as well https://github.com/jeremycx/node-LDAP
[09:12] vpereira: i'm running linux, i do have other packages installed
[09:13] markwubben has joined the channel
[09:16] CStumph has joined the channel
[09:18] Shrink has joined the channel
[09:18] martyziff has joined the channel
[09:18] Nuck: oy vey
[09:18] Nuck: #freenode is a tad slower than I recall
[09:18] tuhoojabotti: I was there once
[09:18] Nuck: Then again, it's 2AM California time
[09:18] tuhoojabotti: Waited 2 years to get permissions on a chan
[09:19] rio{ has joined the channel
[09:19] Nuck: tuhoojabotti: I'm waiting for them to clear this nick for me :S
[09:19] tuhoojabotti: bureaucracy<3
[09:19] Nuck: lol
[09:19] Nuck: They can just clear it, AFAIK
[09:20] tuhoojabotti: Nuck: Well channel rights needs more stuff
[09:20] tuhoojabotti: also there were 2 applications :D
[09:21] path[l] has joined the channel
[09:21] tuhoojabotti: both for the same cause but caused some misunderstanding
[09:21] tuhoojabotti: :P
[09:22] Skola: sittin in the sun
[09:22] Skola: coding
[09:22] vpereira: in the install proceed from github, as normal, user, is that possible that it's missing some step?
[09:22] Skola: triple espresso
[09:22] Skola: life's good :[]
[09:23] tuhoojabotti: Skola: You boxhead
[09:23] tuhoojabotti: The coffee here is piss
[09:23] tuhoojabotti: :/
[09:23] Skola: :/
[09:23] vpereira: like a npm not finding c-ares/ares.h :-/
[09:24] vpereira: ACTION miss brew install node :-(
[09:24] Yoric has joined the channel
[09:25] cachemoney has joined the channel
[09:26] Nuck: tuhoojabotti: Damnit. I might be waiting for a staffer. Not really sure :S
[09:26] tuhoojabotti: luls
[09:27] tuhoojabotti: Nuck: Just spam the voice ppl. ;)
[09:27] tuhoojabotti: voiced*
[09:28] __tosh has joined the channel
[09:28] mikeal has joined the channel
[09:29] Nuck: tuhoojabotti: I'm gonna check the on-call list
[09:29] Nuck: And spam those people ;)
[09:30] tuhoojabotti: Just spam.
[09:30] cachemoney: spam?
[09:30] tuhoojabotti: ham
[09:31] Nuck: CRAM
[09:31] Nuck: IT IN.
[09:31] Nuck: YOUR.
[09:31] tuhoojabotti: mouth
[09:31] Nuck: [noun]
[09:31] tuhoojabotti: mmmm...
[09:31] Nuck: ACTION crams it in tuhoojabotti's mouth
[09:31] tuhoojabotti: nom nom nom
[09:32] Nuck: tuhoojabotti: OUCH MY PENIS
[09:32] Nuck: WHY WOULD YOU DO THAT
[09:32] Nuck: OH GOD WHY DID I DO THAT
[09:32] Nuck: D:
[09:32] cachemoney: wtf?
[09:32] tuhoojabotti: ACTION slaps Nuck around with his penis
[09:32] tuhoojabotti: cachemoney: He's NuckingFuts.
[09:35] Nuck: okey yay
[09:35] neurone-1337 has joined the channel
[09:35] Nuck: And I now have it registered
[09:36] Nuck: Right as I was going to leave, a staffer came in and dealt with it for me :D
[09:36] tuhoojabotti: I know
[09:36] simenbrekken: I've deployed an express app to EC2 (vanilla linux) and I'm wondering how I can keep my creation running for ever, any tips?
[09:39] S1kx has joined the channel
[09:39] zeade has joined the channel
[09:41] framlin: simenbrekken: seems to be difficult after the earth has fallen into the sun in ... *some* years .. ;)
[09:41] simenbrekken: framlin: without that concern then ;)
[09:43] vpereira: simenbrekken: they are not so in help mode today ;-)
[09:43] vpereira: simenbrekken: http://howtonode.org/deploying-node-upstart-monit
[09:43] vpereira: simenbrekken: that is what you need
[09:43] simenbrekken: vpereira: it's fine, the hell that is monday should be shared among everyone
[09:43] adambeynon has joined the channel
[09:44] Nuck: simenbrekken: It's barely started for me :P
[09:44] Nuck: I've got a full night sleep before MY monday megins
[09:44] Nuck: *begins
[09:44] Nuck: Actually
[09:44] Nuck: Quite UNful
[09:45] simenbrekken: vpereira: thanks for the link, looks like what I need (sans the whole sun issue)
[09:46] MonsieurLu has joined the channel
[09:47] NuckingFuts|mobi has joined the channel
[09:49] NuckingFuts has joined the channel
[09:49] simenbrekken has joined the channel
[09:51] Nuck has joined the channel
[09:57] fiscus has joined the channel
[09:57] wereHamster: simenbrekken: http://thechangelog.com/post/6637623247/forever-node-js-daemon-manager
[09:59] simenbrekken: wereHamster: sweet, even better!
[10:01] wereHamster: simenbrekken: another option is perp (http://b0llix.net/perp/), a more generic process supervisor
[10:02] mvta has joined the channel
[10:03] Nuck|mobile has joined the channel
[10:04] Nuck|mobile: Can you hear me now?
[10:04] Nuck|mobile: Good.
[10:04] Nuck: okay I am HAPPEH
[10:04] tuhoojabotti: asd
[10:04] Nuck: I gots mah two nicks I need registered up
[10:04] Nuck: Linked to my account
[10:04] tuhoojabotti: Why use stupid nick extensions?
[10:05] mvta has left the channel
[10:05] Nuck: Got my iPhone automatically identifying, etc.
[10:05] Nuck: tuhoojabotti: Because I need a second nick?
[10:05] Nuck: Hurrdurr?
[10:05] tuhoojabotti: Why?
[10:05] tuhoojabotti: Oh wait
[10:05] Nuck: tuhoojabotti: Because it's my phone
[10:05] tuhoojabotti: you had no shell, poor boy.
[10:05] Nuck: No shell?
[10:05] Nuck: I don't use shell clients anyways
[10:05] tuhoojabotti: I can use this nick from everywhere.
[10:05] Nuck: I *could*
[10:05] tuhoojabotti: It's useful.
[10:05] Nuck: I do have a VNC client
[10:05] Nuck: And I have an SSH client
[10:05] Nuck: But I'd rather not bother
[10:06] MonsieurLu has left the channel
[10:06] KingJamool has joined the channel
[10:06] tuhoojabotti: Instead you play with multiple nicks. :D
[10:06] Nuck: (though it's tempting what with them requiring SASL now)
[10:06] tuhoojabotti: That's bothering enough
[10:06] simenbrekken: wereHamster: forever works like a charm on ec2, thanks!
[10:08] Druide_ has joined the channel
[10:10] Nuck: ACTION yawns
[10:10] Nuck: Naight
[10:10] Nuck: Seeyall in about 8 hours
[10:10] Nuck: At least
[10:10] tuhoojabotti: Farewell
[10:10] Nuck: Haevn't gotten more than 6 in a few days so I'll probably be more like 12 hours XD if my family doesn't wake me first
[10:10] boaz has joined the channel
[10:10] tuhoojabotti: ok.
[10:13] simenbrekken has joined the channel
[10:14] andi5 has joined the channel
[10:15] LiamMagee has joined the channel
[10:15] mAritz has joined the channel
[10:17] infynyxx has joined the channel
[10:17] fyskij has joined the channel
[10:20] Nuck|mobile has joined the channel
[10:21] FireFly has joined the channel
[10:21] Nuck|mobile: Ugh this irc app is ugly
[10:21] tuhoojabotti: Nuck|mobile: irssi<3
[10:22] tuhoojabotti: Irssi ConnectBot<3
[10:23] fermion has joined the channel
[10:26] parse has joined the channel
[10:26] christkv has joined the channel
[10:28] parse: I'm using Express, mustache as rendering engine. Does anyone know a good way to hook into my locals that's being rendered so I can always access them in the layout, like the :before-filter in Rails. I need them on every page, and to hook them into each locals: feels kinda stupid.
[10:31] adambeynon has joined the channel
[10:33] F1LT3R has joined the channel
[10:34] fly-away has joined the channel
[10:35] larssmit has joined the channel
[10:38] temp01 has joined the channel
[10:46] fiscus has joined the channel
[10:46] Vertice has joined the channel
[10:47] CIA-104: node: 03Sam Shull 07master * rb057770 10/ wscript :
[10:47] CIA-104: node: Fixes #1204. Add missing headers files to include
[10:47] CIA-104: node: This commit fixes install of required dependencies for native
[10:47] CIA-104: node: extensions. - http://bit.ly/jquyU0
[10:49] CIA-104: node: 03Ryan Dahl 07v0.4 * rfeb26d6 10/ src/node_file.cc : Fixes #1203. Add missing scope.Close to fs.sendfileSync - http://bit.ly/iH48yg
[10:49] dtan has joined the channel
[10:52] CIA-104: node: 03Ryan Dahl 07v0.4 * rd627083 10/ lib/http.js : Fixes #1187. Support multiple 'link' headers - http://bit.ly/kQLaHU
[10:54] Tobsn has joined the channel
[10:54] Tobsn: rauchg, you there?
[10:54] materialdesigner has joined the channel
[10:55] thalll has joined the channel
[10:57] marknel has left the channel
[10:58] Poetro has joined the channel
[10:58] smtlaissezfaire has joined the channel
[11:02] aurynn has joined the channel
[11:02] smtlaissezfaire has joined the channel
[11:07] andrewfff has joined the channel
[11:10] ryah: Aikar: yt?
[11:16] igl1 has joined the channel
[11:17] t|f has joined the channel
[11:18] bingomanatee_ has joined the channel
[11:18] bingomanatee_: hi there
[11:19] tuhoojabotti: Hello.
[11:19] bingomanatee_: did an interesting experiment
[11:19] Bwen has joined the channel
[11:19] bingomanatee_: I wanted to see how many uinique paths there were if you took N steps on a grid (Horiz or Vertical) and never retraced a grid point.
[11:20] adambeynon has joined the channel
[11:20] xastey has joined the channel
[11:20] tiagoa has joined the channel
[11:20] bkozal has joined the channel
[11:20] bingomanatee_: Turns out that the number of unique paths increases by roughly 3 for every increase in the number of steps.
[11:20] smtlaissezfaire has joined the channel
[11:20] eldar has joined the channel
[11:21] Bwen: I take larger steps than others though
[11:22] bingomanatee_: for instance if you allow the walker to take between 1 and 10 steps the total number of unique variations is 25,572.
[11:22] ph^ has joined the channel
[11:32] CIA-104: node: 03Ben Noordhuis 07master * r5c38163 10/ test/simple/test-os.js : Fixes #1197. Fix failing os.getNetworkInterfaces() test in test-os.js - http://bit.ly/jwWpZQ
[11:39] jonasen has joined the channel
[11:40] k1ttty_ has joined the channel
[11:40] _mql has joined the channel
[11:42] fairwinds has joined the channel
[11:44] larssmit has joined the channel
[11:45] larssmit has left the channel
[11:47] bosphorus has joined the channel
[11:48] CIA-104: node: 03koichik 07v0.4 * rd6ec8f6 10/ (src/node.js test/simple/test-eval-require.js):
[11:48] CIA-104: node: Fix -e/--eval can't load module from node_modules
[11:48] CIA-104: node: With -e or --eval, require() can load module using relative path.
[11:48] CIA-104: node: node -e 'require("./foo")'
[11:48] CIA-104: node: But it can't load module from node_modules directory.
[11:48] CIA-104: node: node -e 'require("foo")'
[11:48] CIA-104: node: Fixes #1196. - http://bit.ly/kfryMx
[11:49] kawaz_air has joined the channel
[11:51] __doc__ has joined the channel
[11:51] ts__ has joined the channel
[11:52] elpinguino has joined the channel
[11:54] ph^_ has joined the channel
[11:54] micheil has joined the channel
[11:55] jonasen has joined the channel
[11:56] Yoric has joined the channel
[11:56] xandrews has joined the channel
[11:57] dtan has joined the channel
[11:58] jacter has joined the channel
[12:00] mc_greeny has joined the channel
[12:04] leon_ has joined the channel
[12:04] djcoin has joined the channel
[12:04] DRagonRage: hi, im getting an error trying to clone node from git... # git clone --depth 1 http://github.com/joyent/node.git Initialized empty Git repository in /root/node/.git/ error: The requested URL returned error: 403 warning: remote HEAD refers to nonexistent ref, unable to checkout.
[12:05] DRagonRage: any ideas?
[12:05] DRagonRage: git:// seems to work ^_%
[12:06] liar has joined the channel
[12:08] mc_greeny has joined the channel
[12:08] sharkbone has joined the channel
[12:09] adambeynon has joined the channel
[12:09] bosphorus has joined the channel
[12:10] mandric_ has joined the channel
[12:10] JianMeng has joined the channel
[12:11] kulor-uk has joined the channel
[12:13] bentruyman has joined the channel
[12:13] jbergstroem: the buildbots are kind of.. offline? :(
[12:13] jbergstroem: well, most of them
[12:17] unlink has joined the channel
[12:18] sjbreen has joined the channel
[12:19] MattJ has joined the channel
[12:21] tiagoa has joined the channel
[12:23] eb4890 has joined the channel
[12:27] kollapse has joined the channel
[12:28] vpereira: there is any way to call the express command and pass as argument to use it as default haml?
[12:28] kbni has joined the channel
[12:28] vpereira: and sass
[12:28] vpereira: ?
[12:28] kollapse: Hi. Any good Nginx+Node.js guides ?
[12:28] tuhoojabotti: ass
[12:29] mc_greeny has joined the channel
[12:29] tuhoojabotti: kollapse: Real men use no guides!
[12:32] swistak: kollapse, depending on usage
[12:32] kollapse: swistak: Well I'm trying to code a website in node.js (been hearing good thing about it) as opposed to PHP.
[12:32] swistak: either use guide for nginx + mongrel (with nginx as upstream proxy) setup is basically the same
[12:33] swistak: what you need nginx for basically?
[12:33] chjj: real men use node.js without nginx
[12:33] chjj: !
[12:34] vpereira: wtf
[12:34] kollapse: swistak: Well static content of course ....
[12:34] kollapse: Images, htmls, CSS, fonts etc.
[12:35] tuhoojabotti: script
[12:35] lukegalea: kollapse: I have that set up.
[12:35] sonnym has joined the channel
[12:35] brianseeders has joined the channel
[12:35] chjj: eh, someone needs to write a sendfile method for the http module
[12:35] lukegalea: kollapse: I'll post my config.
[12:36] lukegalea: kollapse: there's no one guide that I know of.
[12:36] xerox: chjj: it's easy
[12:36] chjj: easy?
[12:36] xerox: there is an example on node-request I think
[12:36] xerox: read, pump
[12:37] chjj: im talking about sendfile, no reads, no writes, just sendfile
[12:37] Bwen: chjj: how do you send a file if you dont want to read it? O.o
[12:37] lukegalea: kollapse: Are you comfortable setting up cluster to host the node stuff?
[12:37] swistak: kollapse, it's not really obvious - it's much easier to use connect/express middleware
[12:37] lukegalea: If so: let's assume you've got cluster up and running on port 3000
[12:38] ngs has joined the channel
[12:38] chjj: ...sendfile
[12:38] kollapse: lukegalea: Hmm. Well for this particular case I'm just using one single server.
[12:38] lukegalea: how many processors?
[12:38] hellp has joined the channel
[12:38] Sembiance: :)
[12:38] Bwen: chjj: what do you think that method does? it actualy opens the file and send its content ...
[12:38] swistak: kollapse, then don't bother wih nginx
[12:39] kollapse: swistak: I have PHP sites as well... need it to redirect to PHP-fpm
[12:39] chjj: yeah, but theres no userspace reads to my understanding
[12:39] lukegalea: kollapse: ya, I'm only using nginx so it will work as a load balancer.. and while I'm at it I have it do GZIP and server static..
[12:39] swistak: Bwen, chjj: it does this on much lower level, content of file is streamed through DMA straight to the socket
[12:39] chjj: yes, thats what im saying
[12:39] chjj: it does it at the kernel level
[12:39] chjj: its more efficient
[12:39] xerox: o
[12:39] swistak: kollapse, the simply add upstream server on domain, - you can use nginx + mongrel example on nginx website
[12:40] kollapse: Understood, I'll look into it. Thanks
[12:40] duckspeaker has joined the channel
[12:40] chjj: the thing is, if you used sendfile over http, data would get written directly to the sockets file descriptor, and it would bypass all the node sugar, node wouldnt know when to send the headers, it would know to emit a drain event, etc
[12:41] chjj: wouldnt know to end the response, you would have to do it all by hand
[12:41] lukegalea: kollapse: https://gist.github.com/1035547
[12:42] kollapse: Thanks lukegalea.
[12:42] lukegalea: kollapse: but seriously: use cluster even for one server. You want to run as many node instances as you have processors.
[12:42] lukegalea: and cluster will do that for you by default
[12:44] jonasen has joined the channel
[12:45] shinuza has joined the channel
[12:45] jscheel has joined the channel
[12:45] jscheel has joined the channel
[12:46] bradleymeck__ has joined the channel
[12:49] Arenstar has joined the channel
[12:51] cronopio has joined the channel
[12:51] Arenstar: Hello all... i have a 3 node cluster with RF=3 on 0.8.0.. If i kill a node, remove the data, restart it.. and run nodetool repair.. im seeing the data being duplicated across the whole cluster.. if i use 0.7.6, and do exactly the same test, there is no problem.. i believe there is a huge bug in 0.8
[12:54] adrianmg has joined the channel
[12:55] ebaxt has joined the channel
[12:55] jlecker has joined the channel
[12:56] jeremyselier has joined the channel
[12:56] xandrews has joined the channel
[12:57] CIA-104: node: 03Ryan Dahl 07master * rd0a9e64 10/ lib/net_uv.js : net_uv: Don't add listenerCallback when null - http://bit.ly/irT2k2
[12:57] jvduf has joined the channel
[12:57] ShreeKavi has left the channel
[12:57] adambeynon has joined the channel
[12:57] AaronMT has joined the channel
[13:02] abrookins has joined the channel
[13:04] kollapse has left the channel
[13:05] JJMalina has joined the channel
[13:07] Arenstar: Hello all... i have a 3 node cluster with RF=3 on 0.8.0.. If i kill a node, remove the data, restart it.. and run nodetool repair.. im seeing the data being duplicated across the whole cluster.. if i use 0.7.6, and do exactly the same test, there is no problem.. i believe there is a huge bug in 0.8
[13:07] zmbmartin: Having trouble with jade partial --> https://gist.github.com/1035574 I keep getting listing_photo is undefined ?
[13:08] unomi has joined the channel
[13:08] ianward has joined the channel
[13:13] avalanche123 has joined the channel
[13:14] sharkbone has joined the channel
[13:15] jonasen has joined the channel
[13:15] asobrasil has joined the channel
[13:15] RC1140 has joined the channel
[13:16] robhawkes has joined the channel
[13:16] Tobsn: anyone an idea Socket.IO Error: Trying to encode as JSON, but JSON.stringify is missing. why im getting this in IE?
[13:17] tuhoojabotti: It has no JSON
[13:17] tuhoojabotti: :o
[13:17] BillyBreen has joined the channel
[13:18] hebz0rl has joined the channel
[13:18] Tobsn: hmm
[13:18] `3rdEden: Socket.io doens't include JSON.js for you Tobsn
[13:18] Tobsn: oh i see
[13:18] `3rdEden: btw we have a #socket.io channel
[13:18] `3rdEden: :)
[13:18] Tobsn: ha
[13:18] Tobsn: just found that issue yeah
[13:18] Tobsn: http://code.google.com/p/socketio-java/source/browse/src/com/glines/socketio/examples/chat/json.js?r=ac980540b490434d2ecce8c35531dab49642a764
[13:18] Tobsn: can i use that thing?
[13:19] __sorin__ has joined the channel
[13:20] Tobsn: well i guess yes
[13:21] Wizek has joined the channel
[13:23] kruckenb has joined the channel
[13:23] jslatts_ has joined the channel
[13:24] `3rdEden: Tobsn I think there are some issue with that
[13:24] `3rdEden: o
[13:24] `3rdEden: wait
[13:24] `3rdEden: nvm
[13:24] `3rdEden: :$
[13:24] Tobsn: jesus
[13:24] Tobsn: thank god
[13:24] Tobsn: i already built that into everything just now
[13:24] `3rdEden: XD
[13:25] `3rdEden: sorry Tobsn <3
[13:25] Tobsn: and its on S3
[13:25] Tobsn: :D
[13:25] Tobsn: yes
[13:25] Tobsn: works
[13:25] Tobsn: NICE
[13:25] tuhoojabotti: np
[13:25] tuhoojabotti: It was just missing on IE right?
[13:26] vpereira1 has joined the channel
[13:26] Tobsn: yep
[13:26] Tobsn: also
[13:26] Tobsn: fuck you IE.
[13:26] tuhoojabotti: I won :)
[13:26] adrianmg has joined the channel
[13:26] Tobsn: thing is
[13:26] Tobsn: i thought i tested the socket.io part in IE before
[13:26] Tobsn: but i never used a json obj
[13:26] Tobsn: looks like i missed that
[13:27] al3xnull_ has joined the channel
[13:27] Tobsn: man IE sucks so much
[13:27] Tobsn: you guys wanna see my secret project? ;)
[13:28] tuhoojabotti: No.
[13:28] dtan has joined the channel
[13:28] Tobsn: ok
[13:29] dtan: hey, i'm trying to render markdown in express, and I've followed these directions: http://stackoverflow.com/questions/6358166/how-can-i-render-markdown-in-express-js-jade-template
[13:29] dtan: but i'm getting plain html output on the page so you can see the tags and all, does anyone know what might be the culprit?
[13:29] tuhoojabotti: Tobsn: No srsly, yes.
[13:29] tuhoojabotti: Where is it?
[13:29] Tobsn: http://explore.cm/
[13:30] tuhoojabotti: Google ripoff? :3
[13:30] `3rdEden: tuhoojabotti it's bing api
[13:30] tuhoojabotti: eww
[13:30] tuhoojabotti: Even worse google ripoff ;D
[13:31] Tobsn: hehe you have no idea...
[13:31] Tobsn: ;)
[13:31] tuhoojabotti: They see me bingin' they hatin'
[13:31] Tobsn: god damn autocomplete is fucked up in IE
[13:31] Tobsn: i hate that shit
[13:31] Tobsn: god damn IE
[13:31] unomi: .. whatever you do don't search for "node"
[13:31] Calvin: SyntaxError: Unexpected identifier
[13:32] replore has joined the channel
[13:32] tuhoojabotti: Tobsn: There's no autocomplete.
[13:32] Tobsn: yeah there is
[13:32] tuhoojabotti: Nice ajax, but no history!
[13:32] tuhoojabotti: use hashbangs or html5 history api like I do. ;)
[13:32] Tobsn: shut up
[13:33] davidsklar has joined the channel
[13:33] Tobsn: you really think i dont want to do that
[13:33] tuhoojabotti: http://dev.tuhoojabotti.com/index/#hello-world <- tell me if your browser crashes when you click teh slogan :D
[13:33] Tobsn: ...
[13:33] Tobsn: anyway
[13:33] tuhoojabotti: It crashes chrome here
[13:33] Tobsn: that took me 2 weeks to build
[13:33] dtan: my chrome seems to work fine
[13:33] Tobsn: and it wasnt the page
[13:33] tuhoojabotti: dtan: Version?
[13:33] dtan: i get some animated text fading in and out
[13:33] dtan: 12.x
[13:34] dtan: mac osx
[13:34] dtan: 10.6.7
[13:34] mikl has joined the channel
[13:34] mikl has joined the channel
[13:34] Tobsn: tuhoojabotti, dont you say that like 5 times a week that one of your pages is crashing chrome
[13:34] Tobsn: and than it isnt
[13:34] Tobsn: only like a 3 year old beta
[13:34] dtan: 12.0.742.100
[13:34] tuhoojabotti: Tobsn: I don't remember.
[13:34] tuhoojabotti: dtan: Latest stable I presume?
[13:34] Tobsn: someone said that like 3 times before
[13:34] jtrudeau has joined the channel
[13:34] tuhoojabotti: Tobsn: I demand logs.
[13:34] dtan: member:tuhoojabotti - i believe so, i have the auto update on
[13:34] Tobsn: check debuggable
[13:34] unomi: tuhoojabotti: doesn't crash 12.0.742.91 (87961) Chromium
[13:35] brolin has joined the channel
[13:35] tuhoojabotti: 12.0.742.100 here too and freezes
[13:35] tuhoojabotti: also experienced some weirdness on the rendere
[13:35] tuhoojabotti: renderer*
[13:35] tuhoojabotti: perhaps it's the site I tried to open earlier that messed it up
[13:36] thomblake has joined the channel
[13:36] tuhoojabotti: some 3D canvas fractals
[13:36] tuhoojabotti: I think
[13:36] tuhoojabotti: or webgl
[13:36] tuhoojabotti: it didn't even laod
[13:36] tuhoojabotti: load*
[13:36] m1258 has joined the channel
[13:37] c4milo has joined the channel
[13:37] tuhoojabotti: But I'm in the middle of some work so I can't reboot chrome :3
[13:37] tuhoojabotti: :[] if you don't mind.
[13:39] dtan: anyone have success rendering markdown in express?
[13:39] micheil has joined the channel
[13:39] tuhoojabotti: Well now the website I work on gives Runtime Errors :S
[13:39] adrianmg has joined the channel
[13:39] unlink has joined the channel
[13:39] unlink has joined the channel
[13:41] Tobsn: how do i remove that stupid border IE creates around buttons if you focus on a form?
[13:41] Tobsn: i cant remember...
[13:42] tuhoojabotti: hmm
[13:42] tuhoojabotti: it was sth like :target
[13:42] tuhoojabotti: or sth
[13:42] tuhoojabotti: :D
[13:42] dtan: :focus { border: 0 }
[13:42] dtan: i think
[13:42] tuhoojabotti: ah focus
[13:42] tuhoojabotti: yeah
[13:42] dtan: but then that's not good for keyboard controls
[13:42] tuhoojabotti: border: 50px solid red
[13:43] Tobsn: :focus {outline:none;}
[13:43] tuhoojabotti: yes
[13:44] devrim: hey guys has anyone played with var mongodb = require("../lib/mongodb");
[13:44] devrim: ?
[13:44] tuhoojabotti: :focus{text-decoration:blink} <- dtan better?
[13:44] dtan: hahah
[13:44] devrim: var mongo = new mongodb.MongoDB(); throws undefined is not a function
[13:44] devrim: at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
[13:44] devrim: https://github.com/orlandov/node-mongodb
[13:44] Tobsn: hmm nah that didnt work
[13:45] adambeynon has joined the channel
[13:45] tuhoojabotti: Tobsn: The button is like 1 px taller than the search box.
[13:45] tuhoojabotti: annoys me.
[13:47] Tobsn: zomg
[13:47] Tobsn: this is unbelievable
[13:47] Tobsn: onfocus="this.blur()"
[13:47] Tobsn: doesnt work either
[13:47] tuhoojabotti: lol.
[13:47] tuhoojabotti: Tobsn: Blur your mind
[13:47] tuhoojabotti: Use IE
[13:48] colinclark has joined the channel
[13:48] ezl has joined the channel
[13:49] lupomontero has joined the channel
[13:49] willwhite has joined the channel
[13:49] gustavowt has joined the channel
[13:50] gustavowt: Hello, somebody knows how do I use (child process). synchronous exec mode?
[13:51] gustavowt: (child_process).exec*
[13:51] pquerna: there isn't a sync version in 0.4 yet?
[13:51] CIA-104: node: 03Ryan Dahl 07master * r02699a3 10/ (lib/child_process.js src/node.js): net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var - http://bit.ly/jOe5iE
[13:51] gustavowt: im dont find it
[13:52] bentruyman has joined the channel
[13:53] softdrink has joined the channel
[13:53] pandeiro has joined the channel
[13:55] criswell has joined the channel
[13:56] sioked has joined the channel
[13:57] `3rdEden: you don't
[13:57] gustavowt: :/
[13:57] dug_ has joined the channel
[13:58] gustavowt: you konw someone to do that
[13:58] gustavowt: ?
[13:58] sweet has joined the channel
[13:58] `3rdEden: write your own blocking implementation :)?
[14:01] sweet has left the channel
[14:02] gustavowt: i did not want you to say this
[14:02] gustavowt: :D
[14:02] bazookatooth has joined the channel
[14:05] sledge has joined the channel
[14:05] `3rdEden: ;D
[14:05] liquidproof has joined the channel
[14:05] `3rdEden: Or just learn to go async :p
[14:06] sridharr has joined the channel
[14:06] jonasen has joined the channel
[14:07] Tobsn: http://www.bing.com/search?q=linkification-ext
[14:07] bshumate has joined the channel
[14:07] Tobsn: interesting
[14:07] tuhoojabotti: Why?
[14:07] jslatts has joined the channel
[14:08] Swimming_bird has joined the channel
[14:09] tuhoojabotti: Tobsn: you site reminds me of the great online translation site that used google translator api
[14:11] tuhoojabotti: http://www.frengly.com :P
[14:11] sendark has joined the channel
[14:11] sendark: Hi, i'm doing http requests and my server crashes when it gets a connection refused. I've tried to bind the 'error' event on the request but it still crashes
[14:11] seyz has joined the channel
[14:12] dmcquay has joined the channel
[14:13] sendark: here is my code http://pastebin.com/cqwywQu8
[14:15] AntelopeSalad has joined the channel
[14:15] clifton has joined the channel
[14:16] boaz has joined the channel
[14:17] squeese has joined the channel
[14:18] sendark: ok cheers for the response avalanche
[14:18] sendark: for your info i found the answer
[14:18] hybsch has joined the channel
[14:18] sendark: i was trying to bind the event to the request, it has to be bound to the connection object
[14:19] sendark: http://rentzsch.tumblr.com/post/664884799/node-js-handling-refused-http-client-connections <-- at the bottom
[14:19] zeade has joined the channel
[14:20] pita has joined the channel
[14:20] pita: Is there something like a clone function in v8 javascript? I wanna copy a object
[14:22] thalll has joined the channel
[14:23] dtan: pita - you try this: http://stackoverflow.com/questions/5055746/cloning-an-object-in-node-js
[14:23] dtan: ?
[14:23] rio{: pita: no
[14:23] cbibler_ has joined the channel
[14:25] sivy has joined the channel
[14:26] baoist has joined the channel
[14:29] infynyxx has joined the channel
[14:30] ditesh|cassini has joined the channel
[14:31] mbrevoort has joined the channel
[14:32] Yuffster has joined the channel
[14:32] sharkbone has joined the channel
[14:33] pifantastic has joined the channel
[14:34] adambeynon has joined the channel
[14:34] sreeix has joined the channel
[14:37] shinuza: dtan: pita: extending Object === bad idea
[14:37] mid9commander has joined the channel
[14:37] dtan: shinuza - i just grabbed it from stackoverflow, i didn't really look at the solution heh
[14:37] shinuza: should have :p
[14:37] dtan: i just saw it worked for someone else
[14:37] mid9commander: why is npm such a piece of shit
[14:38] dtan: you say tomato, i say potato =P
[14:38] dtan: i've had good luck with npm
[14:38] mid9commander: it works intermittenly
[14:38] mid9commander: without giving any proper explanation of why
[14:38] dtan: as i've heard the over the past week or so
[14:38] dtan: but i have yet to experience that *knock on wood*
[14:38] mid9commander: oh boy
[14:39] mid9commander: you should upgrade to the latest and "greatest"
[14:39] mid9commander: on one terminal it works "ok"
[14:39] mid9commander: and then I open another
[14:39] mid9commander: and it gives me this
[14:39] mid9commander: npm ERR! TypeError: Cannot call method 'substr' of undefined
[14:39] mid9commander: npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/load-package-defaults.js:45:23
[14:39] mid9commander: npm ERR! at Array.map (native)
[14:39] mid9commander: npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/load-package-defaults.js:44:33
[14:39] mid9commander: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11)
[14:39] mid9commander: npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/find.js:29:7
[14:39] mid9commander: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11)
[14:39] mid9commander: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11)
[14:39] mid9commander: npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/find.js:29:7
[14:39] mid9commander: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11)
[14:39] mid9commander: npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11)
[14:39] mid9commander: npm ERR! Report this *entire* log at:
[14:39] shinuza: pastebin please
[14:39] tuhoojabotti: lool
[14:40] dtan has joined the channel
[14:40] dtan: sorry missed those last comments, app froze up and quit
[14:40] mid9commander: http://pastebin.com/QcsDEYcM
[14:40] mid9commander: sorry about that
[14:41] dtan: hmm ya not sure, and you don't need to sudo when you install npm stuff?
[14:41] mid9commander: and even when it is working, meaning when it installs mongodb native driver properly
[14:41] mid9commander: I did sudo
[14:41] dtan: oh
[14:41] mid9commander: does that cause problem?
[14:41] dtan: which versino of npm?
[14:41] mid9commander: 1.0.13
[14:42] dtan: na should make it work better, depending on how locked down your machine is
[14:42] mid9commander: I probably should downgrade
[14:42] dtan: maybe
[14:42] dtan: i have 1.0.10
[14:42] mid9commander: cool, I will downgrade
[14:42] dtan: is 1.0.13 a pre release?
[14:42] shinuza: mid9commander: you should try `sudo npm config set loglevel info` if you want more output
[14:42] mid9commander: not really
[14:42] shinuza: dtan: no
[14:42] mid9commander: it is a stable
[14:42] dtan: ok
[14:42] dtan: might want to report that as a bug then
[14:42] mid9commander: ok, and that is just one of the problem
[14:42] llrcombs: I'm having trouble with child_process.spawn with customFds
[14:43] mid9commander: even when it was working and installs mongodb native driver properly
[14:43] mid9commander: the require('mongodb') doesn't even work
[14:43] llrcombs: I'm trying to redirect stdout to an HTTP ServerResponse
[14:43] mid9commander: so seems to me downgrade is the way to go
[14:43] llrcombs: and stdin to an HTTP ServerRequest
[14:43] dtan: mid9commander: npm install mongodb?
[14:43] llrcombs: I just get stdout to console and stdin from... I dunno where, haven't tested
[14:43] mid9commander: I did
[14:43] dtan: hmmm
[14:43] mid9commander: yes npm install mongodb
[14:44] mid9commander: and npm ls shows the proper mongodb package installed
[14:44] dtan: you try using a middleware like connect-mongodb?
[14:44] mid9commander: nope
[14:44] mid9commander: I don't think that is necessary
[14:44] dtan: that *might* be better, but i'm not sure
[14:44] bradleymeck__ has joined the channel
[14:44] mid9commander: anyway, I think the latest version of npm is just whacked, seriously, no offense meant
[14:45] dtan: i just started getting into nodejs earlier this month, so my knowledge base is limited but i've used connect-mongodb and it seemed to work ok
[14:45] llrcombs: any suggestions?
[14:45] dtan: mid9commander - no skin off my back heh
[14:46] xastey has joined the channel
[14:46] dtan: lrcombs: do you have any code ?
[14:46] llrcombs: dtan: sure, lemme git commit this...
[14:46] colinclark has joined the channel
[14:46] dtan: k
[14:47] dtan: not sure if i can help out though if you read my earlier comment
[14:47] febits has joined the channel
[14:48] llrcombs: ah, well, I'll post a link anyhow
[14:48] dtan: sure
[14:48] llrcombs: https://github.com/11rcombs/nttpd
[14:48] llrcombs: in main.js
[14:49] llrcombs: line 142
[14:49] llrcombs: I'm adding CGI support for the next version, and it's not done yet
[14:49] dtan: k looking at it
[14:50] llrcombs: but I'm still getting stdout to... stdout, rather than the ServerResponse
[14:50] dtan: and are you getting some sort of error? or just a blank output?
[14:50] llrcombs: I'm getting lines to the console and the request never gets any data or terminates
[14:50] jonaslund: anyone here speaking portugeese ?
[14:50] llrcombs: here, lemme pastebin my test .cgi
[14:50] jonaslund: maybe it's portugese ..?
[14:51] llrcombs: http://pastebin.com/3WYprtNK
[14:52] llrcombs: that should give the user-agent "TEST" with a 200 status code and content-type "plain"
[14:52] Skola has joined the channel
[14:52] llrcombs: *text/plain
[14:52] llrcombs: but it goes to the console instead of the UA
[14:52] jakehow has joined the channel
[14:53] dtan: so the response to `var process = spawn(...)` should be stored in process?
[14:53] llrcombs: no
[14:53] llrcombs: spawn is async
[14:53] dtan: gotcha
[14:53] llrcombs: I'm not sure if anything ends up in process at all
[14:53] llrcombs: lemme check
[14:54] dtan: you try the examples int eh docs?
[14:54] llrcombs: also, new .cgi, because I fscked up my HTTP syntax in the old one: http://pastebin.com/eCXaZ7pd
[14:54] geekbuntu has left the channel
[14:54] llrcombs: there aren't examples for customFds
[14:54] slaskis: jonaslund: google's portuguese is decent
[14:54] rfay has joined the channel
[14:54] rworth has joined the channel
[14:54] jonaslund: *facepalm*
[14:54] jonaslund: yeah for my purpose that is actually perfect :)
[14:54] dtan: not sure if this is an issue or not
[14:55] slaskis: jonaslund: haha
[14:55] dtan: but process is in teh global namespace
[14:55] llrcombs: oh yeah, process gets an object with loads of stuffs
[14:55] llrcombs: oh, yeah
[14:55] dtan: so that could be an issue
[14:55] llrcombs: there might be something to that
[14:55] llrcombs: lemme try changing the var
[14:55] FireFly|n900 has joined the channel
[14:55] jonaslund: slaskis: look at the newspaper title in this picture.. http://www.aftonbladet.se/sportbladet/fotboll/landslagsfotboll/article13198762.ab
[14:56] llrcombs: nah, no change
[14:56] dtan: ok
[14:56] llrcombs: but nice catch, I don't like polluting global
[14:56] dtan: well, try keeping it as a different name
[14:56] dtan: then try this
[14:56] llrcombs: but I think the var statement kept that from happening
[14:56] llrcombs: .pipe?
[14:56] dtan: var newProcess = spawn(...);
[14:56] dtan: newProcess.stdout.on('data', function (data) {
[14:56] dtan: console.log('stdout: ' + data);
[14:56] dtan: });
[14:56] dtan: newProcess.stderr.on('data', function (data) {
[14:56] dtan: console.log('stderr: ' + data);
[14:56] dtan: });
[14:56] dtan: newProcess.on('exit', function (code) {
[14:56] dtan: console.log('child process exited with code ' + code);
[14:56] dtan: });
[14:57] jonaslund: slaskis: (without ads) http://gfx.aftonbladet-cdn.se/image/13199109/787/normal/e1c54598bfcba/bildspel1.jpg
[14:57] Tidwell has joined the channel
[14:57] dtan: if you look at the docs
[14:57] dtan: http://nodejs.org/docs/v0.4.8/api/all.html#child_process.spawn
[14:58] slaskis: jonaslund: what about it?
[14:58] Tidwell: so, does anyone know - does socket i.o makes its socket connection over the same port that the http server is serving from?
[14:58] slaskis: besides being a totally insane city
[14:58] tsenga has joined the channel
[14:58] tbranyen: Tidwell: socket.io uses many different methods... some use the same port
[14:58] dtan: there seems to be an example of customFds being mapped
[14:58] tbranyen: websocket does not
[14:58] jonaslund: slaskis: the guy is reading a paper named "hora"
[14:58] tbranyen: flash socket probably does not
[14:58] llrcombs: dtan: 1. pastebin
[14:58] jonaslund: apperantly means time in portugese
[14:58] dtan: k oops
[14:58] llrcombs: 2. I did something similar, I used .pipe()
[14:58] ts__: does socket.io have a irc channel?
[14:58] slaskis: jonaslund: haha, yeah it does
[14:58] llrcombs: it works!
[14:59] dtan: with which? .pipe()? or what i pointed to?
[14:59] Tidwell: tbranyen: im running into an issue where I'm putting a node process behind netscalar and need to open ports for websocket/flash socket - any way i can figure out what ports it is using?
[14:59] `3rdEden: ts__ #socket.io
[14:59] ts__: Tidwell use tcpdump or webkit inspector
[15:00] sub_pop has joined the channel
[15:00] ts__: thanks `3rdEden
[15:00] llrcombs: dtan: .pipe()
[15:00] tbranyen: Tidwell: websocket runs on a particular port iirc
[15:00] dtan: gotcha
[15:00] tbranyen: maybe you can look it up
[15:00] tbranyen: on google
[15:00] tbranyen: the googles
[15:01] pjacobs has joined the channel
[15:01] llrcombs: oh, and everybody collectively: question: how does one force Node.js to NOT send implicit headers, because one is going to send those headers oneself?
[15:02] path[l] has joined the channel
[15:02] gazumps has joined the channel
[15:04] junkee[] has joined the channel
[15:04] necromancer has joined the channel
[15:05] kkaefer: llrcombs: you could use a plain socket connection and handle http yourself
[15:05] kkaefer: not sure that's a good idea though
[15:05] llrcombs: kkaefer: that sounds like a bad idea, yeah
[15:06] llrcombs: 'cause I'm piping the stdout of a CGI script to the response, and that stdout contains the headers I want sent
[15:06] thejh has joined the channel
[15:07] llrcombs: if this isn't possible, I'll just write event scripts that parse the HTTP stuff and uses writeHead and such at the first \n\n
[15:08] vipaca has joined the channel
[15:09] nodenews has joined the channel
[15:10] nibblebot has joined the channel
[15:11] addisonj: i don't see whats wrong with just using a socket... http is mostly just the headers on top of a socket, now if you need to parse a response or something, thats more difficult
[15:11] addisonj: err, response = client request
[15:13] llrcombs: yeah, I do
[15:13] mid9commander has left the channel
[15:13] level09 has joined the channel
[15:13] llrcombs: I'm going to use .on("data" now
[15:14] avalanche123 has joined the channel
[15:14] jamey-uk has joined the channel
[15:15] level09: http://pastie.org/2096329
[15:15] level09: SOS
[15:15] level09: :DD
[15:16] llrcombs: lolpolling
[15:16] llrcombs:
[15:16] llrcombs: ouch, parsing stdout is hard!
[15:16] jamey-uk: I'm having trouble getting POST data back using Express, can anyone help me? https://gist.github.com/1035801 ~line 87
[15:16] level09: any guides on how to use monit to monitor forever which in turn monitors socketio soerver ?
[15:17] mike5w3c has joined the channel
[15:17] addisonj: why would you want to monit forever?
[15:18] hosh_work has joined the channel
[15:18] addisonj: jamey-uk, what isn't working?
[15:18] gsmcwhirter has joined the channel
[15:19] jamey-uk: addisonj: I can't get a POST parameter through called driver, trying to access it at req.body.driver but req.body is undefined. I put the bodyParser() line above the connect-form declaration near the top. But I don't know why it isn't working.
[15:21] briznad has joined the channel
[15:21] addisonj: hrm... try putting your cookieParser and session behind bodyParser
[15:22] level09: addisonj: forever is not reliable
[15:22] level09: it crashes
[15:22] addisonj: or below i should say
[15:22] addisonj: really? been using it for a few weeks, no crashes
[15:22] level09: addisonj: maybe not handling 30K concurrent connections
[15:22] alabala123: hello, pool up ?
[15:24] jamey-uk: addisonj: I just tried putting those below bodyParser(), it didn't work, then below the connect-form call, that didn't work either :( would methodOverride() be affecting it? I'm not sure how this works
[15:24] AntelopeSalad has joined the channel
[15:24] JoshC1 has joined the channel
[15:24] addisonj: whats your form look like?
[15:24] tjholowaychuk has joined the channel
[15:25] jamescarr_ has joined the channel
[15:26] sjbreen has joined the channel
[15:27] rworth has joined the channel
[15:28] vdemedes has joined the channel
[15:28] vdemedes: Hello!
[15:28] iffy|x200 has joined the channel
[15:29] jamey-uk: addisonj: ah! it's because I had enctype set to multipart/form-data, copied from my previous upload form. But then how do I do file uploads and regular POST data in the same form? :/
[15:29] dguttman has joined the channel
[15:29] vdemedes: Guys, rescue me! Sometimes I just die in this async madness
[15:29] vdemedes: http://pastie.org/2096382
[15:30] llrcombs: OK, hopefully ditching that plan
[15:30] vdemedes: addThought function gets called with the same ID, but not Message
[15:30] vdemedes: why?
[15:30] llrcombs: anyone got any idea how you can force node _not_ to implicitly write headers?
[15:31] abraham has joined the channel
[15:31] addisonj: jamey-uk, you wrap it req.form.complete, which returns to a callback with a 3 parametsrs, err, fields, files, the fields parameter contains the array of fields
[15:31] Qbix1 has joined the channel
[15:31] Qbix1: hey guys
[15:31] jamey-uk: s
[15:31] jamey-uk: oops, sorry
[15:31] dtan: vdemedes: try wrapping Importer.addThought(....) in a self instantiating function
[15:31] Qbix1: You'll be happy to know we are now using Node.js for all our sharding needs :)
[15:31] Qbix1: hehe
[15:31] vdemedes: dtan: (function(){}) ?
[15:31] jamey-uk: addisonj: so basically I should just the connect-form syntax for both types of form?
[15:32] dtan: ya
[15:32] vdemedes: ok, I'll try
[15:32] vdemedes: thanks
[15:32] dtan: np
[15:32] Qbix1: that's sharding not sharting :)
[15:32] boogyman has joined the channel
[15:32] addisonj: if its multipart, then yes, express doesn't parse those like a normal form
[15:32] dtan: vdemedes: make sure you do () after the {}
[15:32] overra has joined the channel
[15:32] dtan: so it will instantiate
[15:32] vdemedes: dtan: yeah, I know
[15:32] dtan: k, just wasnt' in the cod you pasted up there
[15:32] dtan: code*
[15:33] pt_tr has joined the channel
[15:33] vdemedes: dtan: same thing
[15:33] gkmngrgn has joined the channel
[15:33] vdemedes: dtan: id is the same across all function calls, however message is changing
[15:33] drudge: if i need to resolve netbios names from an IP, how should i go about implementing that in node
[15:33] dtan: can you update your pastie with your new code?
[15:33] zhami has joined the channel
[15:33] brettgoulder has joined the channel
[15:34] dtan: that sounds kinda dirty hah
[15:34] vdemedes: dtan: http://pastie.org/2096382
[15:34] philhawksworth has joined the channel
[15:34] dtan: vdemedes: sorry, wrap it inside the for loop
[15:35] dtan: not inside the prototype
[15:35] vdemedes: ok, np
[15:35] bradley has joined the channel
[15:35] dtan: vdemedes: http://pastie.org/2096407
[15:36] vdemedes: dtan: http://pastie.org/2096382
[15:36] vdemedes: dtan: is it ok? or your pastie is different?
[15:37] samsonjs has joined the channel
[15:37] philhawksworth has left the channel
[15:38] jzacsh has joined the channel
[15:38] jzacsh has joined the channel
[15:38] dtan: oh i didn't realize you're defining the prototype twice for facebook
[15:38] vdemedes: dtan: because it does not solve the problem
[15:38] vdemedes: dtan: no no no
[15:38] vdemedes: dtan: that's my bad
[15:39] dtan: ok
[15:39] dtan: so which one are you going with?
[15:39] dtan: first or second?
[15:39] vdemedes: dtan: http://pastie.org/2096382
[15:39] vdemedes: dtan: most interesting thing is that, message is different every time, but ID not
[15:39] dtan: ya kinda strange
[15:40] vdemedes: ID is the same across all queries
[15:40] vdemedes: message is different
[15:40] vdemedes: I just dont know what's happening
[15:40] dtan: have you tried outputting just the message object to the console ot see what is coming back?
[15:40] vdemedes: dtan: why do I need that? I see what got inserted to MySQL
[15:41] dtan: just another way of checking the data integrity
[15:41] vdemedes: vdemedes: do you think plain SQL queries will save me?
[15:41] broofa has joined the channel
[15:41] vdemedes: dtan: because I think yes
[15:41] zmbmartin: tjholowaychuk: does express have anything built in for csrf?
[15:41] tjholowaychuk: zmbmartin not built in nope
[15:41] vdemedes: zmbmartin: no
[15:41] tjholowaychuk: easy middleware though
[15:42] dtan: vdemedes: not sure about normal sql calls
[15:42] dguttman has joined the channel
[15:42] vdemedes: dtan: why not? I can write them without ActiveRecord-like interface
[15:42] vdemedes: I will try now
[15:42] dtan: well just b/c i don't know sql well =)
[15:42] dtan: or at all really heh
[15:42] caolanm has joined the channel
[15:43] vdemedes: :-)
[15:43] zmbmartin: jade partials anyone see anything I am doing wrong --> https://gist.github.com/1035574 I am getting a listing_photo undefined?
[15:44] broofa_ has joined the channel
[15:44] liquidproof has joined the channel
[15:45] drudge: zmbmartin: != partial('ind_listing', listing_photo) should be != partial('ind_listing', {listing_photo: listing_photo})
[15:45] rfay has joined the channel
[15:45] philtor has joined the channel
[15:45] jakehow has joined the channel
[15:46] mapleman has joined the channel
[15:47] tjholowaychuk: zmbmartin you will get "ind_listing" for that
[15:47] tjholowaychuk: it guesses the name based on the filename
[15:47] path[l] has joined the channel
[15:47] tjholowaychuk: also partial('ind_listing', [a,b,c,d])
[15:47] tjholowaychuk: will render them all
[15:47] tjholowaychuk: so no need for the - each there
[15:47] zmbmartin: ok thanks guys
[15:48] dtan: tjholowaychuk, i wasn't thinking about it, but i deleted your site reference from one of the "companies using node.js" github pages
[15:49] dtan: b/c when i clicked on the link, just got a bunch of pop ups after that
[15:49] tjholowaychuk: dtan ah, that's ok, vision-media? that site is long gone
[15:49] dtan: haha ok
[15:49] dtan: i was like wtf, how is this site on here
[15:49] CoverSlide has joined the channel
[15:49] kawaz_air has joined the channel
[15:50] kawaz_ai_ has joined the channel
[15:51] kruckenb has joined the channel
[15:51] sh1mmer has joined the channel
[15:51] jamey-uk: addisonj: do I even need bodyParser() if I've got connect-form, or does it depend on it?
[15:52] zomgbie has joined the channel
[15:52] addisonj: not sure ;)
[15:52] jtsnow has joined the channel
[15:52] tjholowaychuk: jamey-uk nope you dont need it, though they should play nice together
[15:53] jamey-uk: I just tried to use connect-form with my POST route and get this error: "TypeError: Cannot call method 'complete' of undefined"
[15:53] tjholowaychuk: hmm..
[15:53] bene has joined the channel
[15:53] tjholowaychuk: maybe formidable changed
[15:53] tjholowaychuk: not sure
[15:53] isaacs has joined the channel
[15:54] kriskowal has joined the channel
[15:54] jamey-uk: https://gist.github.com/1035865 line 130 works, but the POST on line 81 comes back with that error, I guess it must be something simple that I'm not doing in the same way?
[15:55] jamescarr has joined the channel
[15:55] jamescarr: hey I have an npm related question. If my app is written in coffeescript (don't hate) should I specify coffee as the engine in package.json?
[15:56] stephank has joined the channel
[15:56] etaty has joined the channel
[15:56] hojberg has joined the channel
[15:56] ch009861 has joined the channel
[15:56] isaacs: jamescarr: you may, but really, you should probably either: a) list coffee-script as a dep, and have a main js file that does require("coffee-script"); require("./my-main-file.coffee")
[15:57] isaacs: jamescarr: or b) list coffee-script as a devDependency, and have a prepublish script that does `cake build` and converts all your .coffee files to js
[15:57] RORgasm has joined the channel
[15:57] Corren has joined the channel
[15:58] bene has joined the channel
[15:58] jamescarr: isaacs, this is actually a website written in coffee. I'm guessing there is a performance boost if I run cake and convert them all to js during deployment?
[15:59] jamey-uk: I'm using connect-form/formidable, on one of my POST routes req.form is as expected, but on the new one req.form is undefined. What am I doing wrong?
[15:59] sp has joined the channel
[15:59] sp: isaacs: hi
[16:00] grandy has joined the channel
[16:01] abraham has joined the channel
[16:02] Fodi69 has joined the channel
[16:03] cachemoney has joined the channel
[16:03] hdon- has joined the channel
[16:04] ryanfitz has joined the channel
[16:04] softdrink has joined the channel
[16:05] jerrysv has joined the channel
[16:05] jerrysv: good morning #node.js
[16:05] christkv has joined the channel
[16:05] cachemoney: morning
[16:05] jamey-uk: okay, figured it! bodyParser() seems to stop non-file upload POSTs from coming through…
[16:05] bronson has joined the channel
[16:06] tuhoojabotti: http://www.tuhoojabotti.com/r/share/kaenny.jpg I wonder if Pendulum will pay for this
[16:06] dtan: afternoon over here, cachemoney
[16:06] tuhoojabotti: They obviously caused it.
[16:06] tjholowaychuk: jamey-uk yeah if req.body is defined connect-form will ignore it
[16:06] tjholowaychuk: so you can use both
[16:06] jamey-uk: eh, sorry I don't follow… as soon as I removed the bodyParser() my faulty .post() route worked… how does that mean they will work together?
[16:07] CoverSlide: any way to truly daemonize a process using only child_process?
[16:07] cachemoney: dtan: eastern US?
[16:07] dtan: yup
[16:07] cachemoney: california :)
[16:07] dgathright has joined the channel
[16:07] dtan: i figured heh
[16:07] dtan: sf?
[16:07] ivanzhao has joined the channel
[16:07] cachemoney: LA for the summer
[16:07] dtan: gotcha
[16:07] cachemoney: although it's 59 degrees outside right now
[16:07] jamarparris has joined the channel
[16:07] robot_jesus has joined the channel
[16:07] dtan: hehe
[16:07] dtan: i like that weather though
[16:08] dtan: i gotta run though, bbl
[16:08] dtan: lunch time = freelance work hehe
[16:09] jamey-uk: tjholowaychuk: yeah, I tried console.log()'ing req.body and req.form and both are undefined for that POST. It works for the file upload POST, but as soon I remove the .bodyParser() line that undefined POST works as expected… so I don't understand how bodyParser() is going to be compatible with connect-form here...?
[16:09] tjholowaychuk: hmm
[16:09] tjholowaychuk: if bodyParser was below
[16:09] DarylM has joined the channel
[16:09] ctide: ah, i was trying ot figure this out on friday actually
[16:09] tjholowaychuk: that could be why
[16:09] tjholowaychuk: well
[16:09] cachemoney: is bodyParser even documented
[16:09] tjholowaychuk: hmm not sure
[16:09] tjholowaychuk: yeah
[16:10] ctide: using oauth2-server which expected connect-form
[16:10] ctide: and it was just empty always
[16:10] tjholowaychuk: cachemoney it's in connect
[16:10] cachemoney: tjholowaychuk: ah
[16:10] jamey-uk: yeah I tried to read that documentation, can anyone find anything that documents thsi?
[16:10] jamey-uk: this*
[16:10] ctide: i couldn't
[16:10] jamey-uk: yeah, it's kinda annoying
[16:10] tjholowaychuk: feel free to write some :p
[16:11] ch009861: So I've asked this question out on the Google Group before: How many concurrent, outbound HTTP requests (e.g. to an API) are too many? Is there a good benchmark or tool to figure out the best number?
[16:11] slaskis: tjholowaychuk: if i want to write an ast extension for jade, should i just override jade.Parser.prototype.parse with my AST modifications or would you recommend any other way?
[16:11] adambeynon has joined the channel
[16:11] jamey-uk: okie doke :P i'm not very experienced with writing docs, I'm not exactly sure programmatically how it works ;)
[16:11] tjholowaychuk: slaskis you can inherit from the compiler and pass { compiler: whatever }
[16:12] tjholowaychuk: slaskis so if you're using express and want that compiler all the time app.set('view options
[16:12] tjholowaychuk: ', { compiler: ... })
[16:12] mandric has joined the channel
[16:12] slaskis: tjholowaychuk: ooh, yeah that's much nicer
[16:12] slaskis: less hacky
[16:12] vpereira1: does anybody here already worked with the module https://github.com/jeremycx/node-LDAP
[16:12] tjholowaychuk: I'd like to make it pluggable eventually instead of the compiler thing
[16:12] tjholowaychuk: but works for now
[16:13] vpereira1: the simpleBind method simple not work
[16:13] vpereira1: with ruby-ldap works but with node-LDAP doesn't :-(
[16:13] Kryt has joined the channel
[16:13] slaskis: tjholowaychuk: yeah i saw your .use() 'issue'
[16:14] slloyd has joined the channel
[16:14] Tidwell: tbranyen: in case you care - with socket.io - after looking with netstat & tcpdump it looks like its always 80 on the server and seems to be "whatever is open above 56000" on the client
[16:14] Destos has joined the channel
[16:15] Skola: tj, are there restrictions on which src/dest dirs I can use when compiling coffeescript with express.compiler?
[16:15] Poetro has joined the channel
[16:16] Skola: or should I just not compile it this way?
[16:16] eresair has joined the channel
[16:16] tbranyen: Tidwell: ah cool
[16:17] tjholowaychuk: Skola can't remember how I implemented it off hand but I believe you need the same dir structure
[16:17] tjholowaychuk: dest will basically mirror src
[16:17] Skola: rgr
[16:17] __sorin__ has joined the channel
[16:18] tjholowaychuk: coffeescript might want a custom one for more complicated stuff
[16:18] ch009861 has left the channel
[16:18] Skola: right, I have multiple dirs right now for .coffee : client-side and server-side
[16:18] Skola: might be better if I compile it another way
[16:18] tjholowaychuk: yeah maybe
[16:19] clintandrewhall has joined the channel
[16:19] sveimac has joined the channel
[16:19] kriskowal has joined the channel
[16:19] mitko has joined the channel
[16:19] ewdafa has joined the channel
[16:20] newy_ has joined the channel
[16:20] ivanzhao: Skoia: don't think coffeescript supports multiple directories
[16:20] Skola: you mean the express.compiler?
[16:21] ivanzhao: oh I mean coffeescript compiler
[16:21] Skola: oh ok
[16:21] tjholowaychuk: Skola it wont pick up on nested changes well if that's the problem you are having
[16:21] ivanzhao: the coffee ---compile --watch thing ....
[16:21] tjholowaychuk: for stylus I wrote a separate middleware to map the imports etc
[16:21] tjholowaychuk: so it's 100% hands-off
[16:21] tjholowaychuk: watchers are no fun :(
[16:22] ivanzhao: Skoia: i wrote this primitive bash thing that does the job
[16:22] ivanzhao: Skola: #!/bin/bash
[16:22] ivanzhao: trap 'kill $(jobs -p)' SIGUSR1
[16:22] ivanzhao: function startEnviroment {
[16:22] ivanzhao: echo 'Start Developing Enviroment'
[16:22] ivanzhao: compass watch ./static/style &
[16:22] ivanzhao: coffee --watch --compile *.coffee &
[16:22] ivanzhao: coffee --watch --compile ./static/script/*.coffee &
[16:22] ivanzhao: }
[16:22] ivanzhao: function startServer {
[16:22] ivanzhao: supervisor -w . app.coffee &
[16:22] ivanzhao: }
[16:22] ivanzhao: for arg in "$@"
[16:22] ivanzhao: do
[16:22] ivanzhao: case "$arg" in
[16:22] ivanzhao: -e) startEnviroment
[16:22] ivanzhao: ;;
[16:22] jamescarr: AHHHH!!!
[16:22] jamescarr: make him stop!
[16:22] Skola: :P
[16:22] jamescarr: :)
[16:22] Skola: thanks :D
[16:22] ivanzhao: damn it got cut. too long. sorry guys : (
[16:22] tbranyen: fail.
[16:22] sth: gist.github.com
[16:23] CoverSlide: `paste
[16:23] gbot2: Paste links, not code. Some sites you can use: | http://www.webdevout.net/test | http://erxz.com/pb/ | http://pastebin.parentnode.org/ | Please do not use pastebin.com, the reasons are many. See `pastebin.
[16:23] ivanzhao: Skola: wait let me paste it to git
[16:23] CoverSlide: `paste @ ivanzhao
[16:23] gbot2: ivanzhao: Paste links, not code. Some sites you can use: | http://www.webdevout.net/test | http://erxz.com/pb/ | http://pastebin.parentnode.org/ | Please do not use pastebin.com, the reasons are many. See `pastebin.
[16:23] ivanzhao: sth: yes
[16:23] Skola: thanks, cool
[16:23] sp: `pastebin
[16:23] gbot2: Please do not use pastebin.com. There are problems with syntax highlighting and font sizes that make it hard to read, and copy/paste includes line numbers. Consider using http://www.webdevout.net/test which allows you run the code in your browser to help with debugging.
[16:23] Skola: I am a bit OCD about adding my compiled .js to repo
[16:23] tbranyen: compiled?
[16:23] Skola: I mean
[16:23] Skola: compiled .coffee
[16:23] tbranyen: minified?
[16:23] tbranyen: oh
[16:23] Skola: soz
[16:24] jonaslund: ummmm
[16:24] jonaslund: who has gbot2 or who can edit those pages ?
[16:24] jonaslund: www.erxz.com has expired
[16:25] Yoric has joined the channel
[16:25] Skola: tjholowaychuk do you care if I improve coffeescript compiler support for express?
[16:26] yozgrahame has joined the channel
[16:26] tjholowaychuk: Skola I dont really want to modify that middleware anymore, it will probably be removed for the next major release of connect
[16:26] tjholowaychuk: they all vary too much
[16:26] Skola: ok
[16:26] zmbmartin: I am doing an ajax call and req.session is not in the req. Do I need to do something in my ajax call to provide that
[16:26] zmbmartin: this is in express
[16:27] jamescarr: tjholowaychuk, any recommendations for a persistent session store for express?
[16:27] sp has left the channel
[16:27] ivanzhao: Skola: here you go guys: https://gist.github.com/1035933
[16:27] tjholowaychuk: jamescarr connect-redis
[16:27] tjholowaychuk: redis is rad for sessions
[16:27] jamescarr: my latest issue is redeployments log off my users :)
[16:27] jamescarr: thanks
[16:27] amerine has joined the channel
[16:27] Skola: cheers ivanzhao!
[16:27] jamescarr: tjholowaychuk, cool. I looked into the mango one and it seems out of date
[16:27] jamescarr: *mongo
[16:28] tjholowaychuk: yeah im not sure it was every updated
[16:28] eventualbuddha_ has joined the channel
[16:28] Arenstar has joined the channel
[16:28] jamescarr: I thinkit was a one off someone created for their needs and never needed it again
[16:28] aliem has joined the channel
[16:29] zmbmartin: tjholowaychuk: do I need to do anything to get req.session in ajax requests. I am doing an ajax call but req.session is not in req?
[16:30] bene has joined the channel
[16:32] nibblebot has joined the channel
[16:33] elpinguino_ has joined the channel
[16:36] jamey-uk has left the channel
[16:37] DTrejo has joined the channel
[16:37] Arenstar84 has joined the channel
[16:37] andrewfff has joined the channel
[16:38] patrickarlt has joined the channel
[16:39] indutny: hey devs! I'm trying to figure out if it's save to call multiple fs.write at once for one file opened in 'a+' mode
[16:39] Skola: I don't think it is
[16:39] Skola: overwrite eachother etc
[16:39] Skola: I _think_
[16:39] bazookatooth has joined the channel
[16:39] cryptix: i think so too
[16:40] Skola: I ran into that when writing cli tool
[16:40] Skola: had to go synchronous
[16:40] cryptix: if you want to append stuff over and over you should consider streams
[16:40] davidwalsh has joined the channel
[16:41] Tobsn has joined the channel
[16:41] jerrysv: idutny: i went sync
[16:42] kruckenb has joined the channel
[16:42] Tobsn has joined the channel
[16:43] creationix has joined the channel
[16:44] espressive_ has joined the channel
[16:45] espressive_: Hi there all
[16:45] andrewfff has joined the channel
[16:45] samsonjs has joined the channel
[16:45] dominictarr has joined the channel
[16:46] espressive_: Is there a specific way in which a new module for Nodejs should be written that differs from general JS development? If so, is there some place you can point me to where I can learn more?
[16:46] Skola: http://howtonode.org/how-to-module
[16:46] wilmoore has joined the channel
[16:47] espressive_: awesome, thanks FireFly
[16:47] Skola: I'm gonna assume I have a new name
[16:48] newy_ has joined the channel
[16:49] chr0x101 has joined the channel
[16:49] svend: I'm getting a "ETIMEDOUT, Connection timed out" error. I'm calling http.get() and have a "res.on('error'," function defined. Shouldn't this catch the timeout?
[16:50] FireFly: Skola, apparently
[16:51] FireFly|n900 has joined the channel
[16:51] Skola: it's not a bad name
[16:51] TooTallNate has joined the channel
[16:53] creationix has left the channel
[16:53] isaqual has joined the channel
[16:54] vpereira1: any LDAP module for node.js that works?
[16:54] jtrally has joined the channel
[16:55] mundanity has joined the channel
[16:56] rfay has joined the channel
[16:56] bosphorus has joined the channel
[16:57] febits[0] has joined the channel
[16:57] gozala has joined the channel
[16:58] dguttman has joined the channel
[16:58] dguttman has joined the channel
[16:58] mahna has joined the channel
[16:59] rworth has joined the channel
[16:59] adambeynon has joined the channel
[16:59] rio{ has joined the channel
[17:01] `3rdEden has joined the channel
[17:01] JoshC1 has joined the channel
[17:01] dve has joined the channel
[17:01] bentruyman has joined the channel
[17:02] dguttman_ has joined the channel
[17:02] bpierre has joined the channel
[17:02] boaz has joined the channel
[17:03] dguttman_ has left the channel
[17:04] bru has joined the channel
[17:04] bpierre: Hi, does anybody ever had problems with the daemon module?
[17:05] elpinguino has joined the channel
[17:05] bpierre: My app is freezing when I use it, but I can’t isolate the problem…
[17:05] CoverSlide: freezing?
[17:05] drudge: anyone working on samba bindings?
[17:05] __tosh has joined the channel
[17:05] bpierre: CoverSlide: Yes, 100% CPU, no response
[17:06] CoverSlide: does your app run fine without daemonize?
[17:06] CoverSlide: er daemon
[17:06] bpierre: It seems related to static() middleware (it works when I comment it), and the usage of fillText() with the canvas module (same, works when it’s commented)
[17:06] bpierre: Yes
[17:07] bpierre: I tried with a setTimeout before daemon.daemonize(), it works until the function is called
[17:07] tjholowaychuk: bpierre if daemonize uses forks
[17:07] tjholowaychuk: you could get unexpected results
[17:07] CoverSlide: daemon uses fork()
[17:07] junkee[]: Anyone familiar with v8?
[17:07] tjholowaychuk: ah
[17:07] andrewfff has joined the channel
[17:07] tjholowaychuk: then yeah
[17:07] bpierre: Yes
[17:07] wlkh has joined the channel
[17:07] tjholowaychuk: expect messed up shit
[17:08] CoverSlide: i'd like to figure out how to daemonize processes using child_process
[17:08] taf2: you might like to check out my messing with fork here: https://github.com/taf2/fork.node
[17:09] taf2: specifically here: https://github.com/taf2/fork.node/blob/master/src/fork.cc#L67
[17:09] harth has joined the channel
[17:09] ajoe47 has joined the channel
[17:09] vpereira1: any working LDAP module?
[17:10] bpierre: Do you know any alternative to daemon? I’m just trying to stop my app in a clean way to save data
[17:10] taf2: bpierre, yeah... what i linked to...
[17:10] taf2: https://github.com/taf2/fork.node/blob/master/lib/tiamat/daemon.js
[17:11] newy_ has joined the channel
[17:11] bpierre: taf2: oh ok, I will check it out, thanks!
[17:12] taf2: if you're just wanting a forking server... try tiamat :)
[17:12] chr0x101 has joined the channel
[17:12] atsuya has joined the channel
[17:12] mraleph has joined the channel
[17:13] mraleph: junkee[]: yes.
[17:13] taf2: bpierre, let me know if it works for you
[17:14] bru: hello world! speaking of forking daemons, low priority question: any way to do it the apache way -> prefork and pass the request fd to the child? I quickly looked for a way to do it, but had no luck
[17:14] junkee[]: mraleph: nice, I try to make some bindings for gstreamer but I am stuck atm.
[17:14] taf2: bru, i think that's what i'm doing in https://github.com/taf2/fork.node ?
[17:15] tjholowaychuk: bru cluster?
[17:15] taf2: cluster passes it through an env var ?
[17:15] mraleph: junkee[]: whats the problem?
[17:15] bru: taf2: thx! I'll have a look right now :)
[17:15] sechrist has joined the channel
[17:16] robboyle has joined the channel
[17:16] robboyle has left the channel
[17:16] mwhooker has joined the channel
[17:17] thalll has joined the channel
[17:17] junkee[]: mraleph: when you call gstreamer.Element(...); it creates a c++ class and a new gstreamer element. But when i do something like gstreamerElement.getProperty("child"); I create a new c++ class and wrap the child element in it. When the underlying gstreamer element is the same, the js objects are different, though.
[17:18] siculars has joined the channel
[17:18] trotter has joined the channel
[17:18] nibblebot: anyone using nodeunit encounter an issue with using setUp? it says 'undone tests' but I see no way of running done() for the setUp method
[17:18] sioked has joined the channel
[17:18] jetienne has joined the channel
[17:18] junkee[]: mraleph: hard to explain. I could send you the link to the github repo.
[17:19] jerrysv: isaacs: you around by any chance?
[17:19] reid has joined the channel
[17:19] Country has joined the channel
[17:19] ianward1 has joined the channel
[17:19] mraleph: junkee[]: I kinda understand, but I don't see a problem. Do you want to produce the same JS wrappers from the same native objects?
[17:20] junkee[]: mraleph: yeah, exactly.
[17:20] isaacs: jerrysv: a little
[17:20] mraleph: junkee[]: just have a map somewhere that maps native objects to wrappers. is there a problem with that?
[17:20] junkee[]: mraleph: i tried that but itt doesnt work expected
[17:20] abraham has joined the channel
[17:21] jerrysv: isaacs: any idea why i'd suddenly be getting 'TypeError: Cannot call method 'filter' of undefined' on an npm update?
[17:21] mraleph: junkee[]: hmm. what happened?
[17:21] junkee[]: mraleph: it returns allways the current function and i dont udnerstand why.
[17:21] isaacs: jerrysv: because you're using version 1.0.10, which has a bug where empty or non-existent "bin" directories in a package will cause it to throw
[17:21] isaacs: jerrysv: just reinstall
[17:21] mraleph: junkee[]: same function? can you show me the code?
[17:21] jerrysv: isaacs: awesome, thanks!
[17:22] junkee[]: mraleph: https://github.com/swick/node-gstreamer/blob/master/src/base.cc the addRef/getReff functions will be interesting
[17:23] mwhooker has joined the channel
[17:23] mraleph: junkee[]: oh. you can't deal with handles like this.
[17:24] mraleph: junkee[]: there are two types of handles in V8: Local handles and Persistent.
[17:24] junkee[]: mraleph: mhh.. why I need the presistent?
[17:24] mraleph: junkee[]: Local handles basically live on the stack and a valid only while their parent HandleScope is alive.
[17:24] junkee[]: mraleph: okay. I understand
[17:25] mraleph: junkee[]: as soon as you leave that HandleScope all Local handles are garbage
[17:25] mraleph: junkee[]: you should put weak persistent handles into your map
[17:25] Rotham has joined the channel
[17:25] junkee[]: mraleph: weak? Is it something special?
[17:25] markwubben has joined the channel
[17:27] mraleph: junkee[]: well maybe you don't want weak but you should consider using them :-) if you have some object O and you have Persistent handle that refers to it then O will not die while that handle is alive.
[17:28] Yoric has joined the channel
[17:28] junkee[]: mraleph: you're right. but how do I convert a handle to a weak persistent?
[17:28] dve: is there anything built into node for rounding numbers to specified deciaml palces?
[17:28] mraleph: weak persistent handles are different. if V8 sees that only weak persistent handles refer to object that object will be GCed and you weak persistent handle will get a callback notifing you about it
[17:28] dgathright has joined the channel
[17:28] indutny: mraleph: oh, you're here too?
[17:28] tbranyen: dve: nope but there is in v8/javascript
[17:28] tbranyen: dve: toFixed
[17:28] dve: does that round or just trim?
[17:28] tbranyen: dve: try it and see
[17:28] dmcquay has joined the channel
[17:29] mraleph: junkee[]: see methods of Persistent class. You can make new pers. handle with Persistent::New and make it weak with MakeWeak.
[17:29] mraleph: indutny: yep.
[17:29] junkee[]: mraleph: thank you veeery much :)
[17:29] mraleph: indutny: I am interested in profiling your code but I don't have time ATM :-)
[17:29] AvianFlu has joined the channel
[17:29] indutny: mraleph: haha :)
[17:29] uchuff has joined the channel
[17:30] dve: tbranyen: perfect, thanks
[17:30] mraleph: indutny: is there something strange about the profile you get yourself?
[17:30] indutny: mraleph: Have you seen previous benchmark result?
[17:30] MonsieurLu has joined the channel
[17:30] tbranyen: dve: no worries
[17:30] indutny: mraleph: nothing strange, but probably I'm missing something
[17:30] MonsieurLu has left the channel
[17:30] mraleph: indutny: well I see some graphs on project's page.
[17:31] indutny: mraleph: I think that it can work better
[17:31] indutny: mraleph: 600 writes per second isn't to much for it
[17:31] indutny: mraleph: probably GC is killing it
[17:32] mraleph: indutny: oh you said a magic word, let me just take a quick look :-)
[17:32] indutny: mraleph: hahaha :) yeah, GC is a black magic
[17:32] tauren has joined the channel
[17:32] indutny: mraleph: it's intentionally working with Buffers
[17:32] indutny: mraleph: so probably they're getting GC too often
[17:33] mraleph: indutny: is it on npm or I have to clone your repo?
[17:33] indutny: mraleph: or I can't understand that pikes on benchmark plot
[17:33] indutny: mraleph: better clone
[17:33] sh1mmer has joined the channel
[17:33] indutny: mraleph: and you can run node test/fs-basic-benchmark.js
[17:34] indutny: mraleph: but you'll need to install vows and etc locally, `npm install` in node-index folder should be enough
[17:34] Guest71546 has joined the channel
[17:34] topaxi has joined the channel
[17:35] junkee[]: indutny: what are you talking about?
[17:35] indutny: junkee[]: about https://github.com/indutny/node-index
[17:35] indutny: mraleph: oh, you should install npm install node-uuid too
[17:35] Guest71546 has joined the channel
[17:35] Cleer has joined the channel
[17:36] indutny: mraleph: it's endless benchmark
[17:36] indutny: btw
[17:36] jerrysv: indutny: what happens when you use judy arrays instead?
[17:37] jerrysv: for in-memory storage of the btrees, i mean
[17:37] indutny: jerrysv: judy arrays?
[17:37] bpierre: taf2: require() paths do not seem to be updated? https://github.com/taf2/fork.node/blob/master/lib/tiamat.js
[17:37] indutny: ok,node-index.bench0puwB6U5S
[17:37] indutny: ahh
[17:37] indutny: http://en.wikipedia.org/wiki/Judy_array
[17:38] jerrysv: indutny: https://github.com/JerrySievert/node-judy
[17:38] indutny: jerrysv: hehe, you're good at promoting yourself. First - asking questions, then answering them ;)
[17:38] junkee[]: mraleph: What are the parameters in Persistent::MakeWeak for?
[17:39] indutny: jerrysv: I'm not sure about that, but you can write your module for it
[17:39] STUPIDWIFI has joined the channel
[17:39] mraleph: junkee[]: documentation should be pretty comprehensive. one is callback the other is arbitrary data that will be passed to callback
[17:39] indutny: jerrysv: because I don't want native dependency for node-index
[17:40] mraleph: junkee[]: callback is invoked when V8's GC determines that object became weakly reachable and is about to die
[17:40] jerrysv: indutny: not really trying to promote, but was curious -- it helps solve the gc slow-downs, which is where a lot of the gain came from
[17:40] bene1 has joined the channel
[17:40] indutny: jerrysv: ok, thank you! I'll see if I can use it
[17:40] jlecker has joined the channel
[17:40] rabidewok has joined the channel
[17:41] junkee[]: mraleph: Now I understand. I have to remove it from the map when the callback is called.
[17:41] unlink has joined the channel
[17:41] mraleph: junkee[]: exactly. and Clear and Dispose the persistent handle
[17:42] mraleph: indutny: looks like you are spending quite some time in JSON parsing.
[17:42] indutny: mraleph: yeah
[17:42] cognominal has joined the channel
[17:42] indutny: mraleph: all tree pages are JSON
[17:42] indutny: looks like I had better results when I was concatenated buffers
[17:42] indutny: hm...
[17:42] indutny: wtf
[17:43] indutny: multiple fs.write seems to be much slower than Buffer concatenation
[17:43] taf2: bpierre, hrm... what do you mean?
[17:43] eazyigz has joined the channel
[17:43] eazyigz: Hello, I have set express to serve static content like this: app.use(express.static('./public'));
[17:44] eazyigz: but no css or images are being served
[17:44] mraleph: indutny: that all I can say ATM :-)
[17:44] eazyigz: what did i do wrong??
[17:44] langworthy has joined the channel
[17:44] zmbmartin: tjholowaychuk: if I set a app.error page for 500 isn't that supposed to be showed? I am getting the standard express 500 error?
[17:45] dtan: zmbmartin: what does the error say exactly?
[17:45] Skola: well the standard error has a stacktrace
[17:45] bpierre: taf2: tiamat/config.js does not exists? (sorry if I am wrong, I’m quite a noob)
[17:45] dtan: eazigz: try doing app.use(express.static(__dirname + '/public'))
[17:46] bpierre: taf2: anyway, if I require('tiamat'), I get an error: Cannot find module 'tiamat/server.js'
[17:47] dtan: bpierre, do you have your package.json file defined in your module?
[17:47] taf2: bpierre, i've been using it as the tiamat command... installing as npm install -g tiamat
[17:47] eazyigz: dtan: that didn't work either
[17:47] zmbmartin: dtan: I am expecting the error I just want to use a custom 500 page
[17:47] taf2: i'm checking now about requiring it like that
[17:48] dtan: right zmbmartin, but like skola said, did you get a stack trace?
[17:48] bpierre: taf2: Oh ok, I tried to run it from my start.js script
[17:48] indutny: mraleph: hehe :)
[17:48] dtan: zmbmartin: if so, can you put that in a pastie for us to look at?
[17:48] indutny: mraleph: reverting one commit
[17:48] Poetro has joined the channel
[17:49] bpierre: taf2: I will try it with the command now
[17:49] dtan: bpierre - what's your directory structure look like when you are calling that method?
[17:49] newy_ has joined the channel
[17:49] bpierre: I call the require() from /scripts/start.js
[17:49] indutny: mraleph: what about GC time?
[17:49] indutny: mraleph: is it high?
[17:49] bpierre: And the node modules are in /
[17:49] mraleph: does not seem to be
[17:49] dtan: bpierre, ok, so is your public folder in the scripts folder?
[17:50] indutny: hm...
[17:50] indutny: so it's slow only because of JSON.parse? :)
[17:50] bpierre: dtan: My application folder?
[17:50] zmbmartin: dtan: Skola https://gist.github.com/1036114
[17:50] junkee[]: mraleph: sorry that I bother you buuut, in the v8 docs it says the callback is "typedef void(* v8::WeakReferenceCallback)(Persistent< Value > object, void *parameter)". Why is this "void Base::deleteRef(Persistent< Value > object, void *obj)" not working then?
[17:51] tjholowaychuk: zmbmartin are you throwing
[17:51] mraleph: there might be other reasons. unfortunately profile is vague because of the inability to deal with VDSO
[17:51] romainhuet has joined the channel
[17:51] mraleph: junkee[]: is your method static?
[17:51] Calvin has joined the channel
[17:51] zmbmartin: tjholowaychuk: yes next(new Error())
[17:51] tjholowaychuk: should be fine
[17:51] tjholowaychuk: unless you have errorHandler() etc
[17:51] junkee[]: mraleph: It cant. I have to change the private map?!
[17:51] dtan: bpierre, i think that where you are setting your static folder is usually relative to where it is being called from
[17:51] tjholowaychuk: that will take precedence
[17:52] tjholowaychuk: because it's defined first
[17:52] dtan: so if you don't have "scripts/public" it won't work
[17:52] junkee[]: mraleph: sry, it can. I can pass this as void*
[17:52] mraleph: junkee[]: well you can't pass a pointer to a non-static member as a pointer to a function. yep you should use void* to pass your object
[17:53] bpierre: dtan: Oh ok sorry, static() works fine when I do not use daemon, so it’s not the problem
[17:53] zmbmartin: tjholowaychuk: ok that was it. I didn't remove errorHandler() thanks
[17:53] ceej has joined the channel
[17:53] bpierre: dtan: It’s the callback on the readFile() in the static middleware which is never called
[17:53] bpierre: dtan: I specify a path to static()
[17:53] qrux has joined the channel
[17:54] dtan: do you get any sort of stack trace error ?
[17:54] bpierre: No… Just a big freeze
[17:54] dtan: not even in your cli?
[17:55] bpierre: It’s really weird, I can resolve the problem by removing the static() middleware, or removing the fillText() in the canvas module…
[17:55] indutny: mraleph: yeah, after reverting that I got 1000 writes per second! :)
[17:56] bpierre: Nope, stdout is logged in a file, and I got nothing, just CPU 100%
[17:56] taf2: bpierre, i'm about to head to a meeting for about an hour... did you get tiamat working?
[17:56] F1LT3R has joined the channel
[17:56] bpierre: taf2: Not yet, but I’ll keep you informed!
[17:57] dtan: weird
[17:57] taf2: i definitely see an issue with the require ('tiamat.js') but the command line version should be working...
[17:57] dtan: can you post your start.js file?
[17:57] cognominal_ has joined the channel
[17:57] kmiyashiro has joined the channel
[17:58] bpierre: dtan: Yes, but it’s really simple, all I do is to call my app
[17:58] mscdex: noooo Calvinnnn!
[17:58] Calvin has joined the channel
[17:58] dtan: hmm
[17:58] sourcode has joined the channel
[17:58] dtan: has this worked before?
[17:58] mscdex: Calvin: where did you think you were going?
[17:58] mscdex: :(
[17:59] MooGoo: give calvin a minute
[17:59] sshaginyan_ has joined the channel
[17:59] mscdex: heh
[17:59] MooGoo: im breaking him
[17:59] mscdex: :O
[17:59] MooGoo: sometimes I really wonder how I can write code so bad
[17:59] bpierre: dtan: http://www.pastie.org/2097068
[17:59] eazyigz has joined the channel
[18:00] bpierre: dtan: Yes, it works perfectly without the daemon.daemonize() call
[18:00] Calvin: where you look at the solution heh think
[18:00] Calvin: minute , I forgot to check before committing
[18:00] bpierre: dtan: I tried a setTimeout() just before calling daemon.daemonize(), and it works, until this function is called
[18:00] eazyigz: Hello, in express in am doing: app.use(express.static(require('path').resolve(__dirname + '/public')));
[18:00] eazyigz: And in my html page:
[18:00] eazyigz: but it doesn't work!
[18:01] eazyigz: i cannot figure this out
[18:01] vdemedes has left the channel
[18:01] wadey has joined the channel
[18:01] tjholowaychuk: eazyigz GET /layout.css
[18:01] bpierre: eazyigz: Try /layout.css
[18:01] dtan: +1
[18:02] dtan: hmm not sure about your problem bpierre, i've never dealt with daemon before
[18:02] eazyigz: bpierre, tjholowaychuk: thanks
[18:02] eazyigz: that works
[18:02] STUPIDWIFI has joined the channel
[18:02] bpierre: dtan: Ok, no problem, thanks for your time :-)
[18:02] dtan: eazyigz - just think of public as your root folder for your assets
[18:02] dtan: hehe sorry i couldn't be more of a help bpierre
[18:03] v0idless- has joined the channel
[18:03] cryptix has joined the channel
[18:03] eazyigz: dtan: will this work for any sub-folders I place under public?
[18:03] dtan: ya
[18:04] eazyigz: or do i have to add additional configurations?
[18:04] dtan: just as if it were a regular web server structure
[18:04] dtan: once you set your static public folder, you can just add folders and files to the public folder
[18:04] dtan: so if you have public/css, public/js
[18:04] eazyigz: ok, cool
[18:04] dtan: you can just do src="js/...", href="/css/...."
[18:05] dtan: err, src="/js/..."
[18:05] junkee[]: mraleph: You're the hero of my day :) I got it!
[18:06] mraleph: junkee[]: \m/
[18:06] mraleph: junkee[]: glad it helped.
[18:07] tiglionabbit has joined the channel
[18:07] theycallmeswift has joined the channel
[18:07] junkee[]: mraleph: Always when I start coding in c/c++ I realise why I love JS so hard.
[18:08] tbranyen: lol
[18:08] theycallmeswift: Anyone know how I can deal with gzipped api data using node?
[18:09] tbranyen: mraleph: does google have internal unreleased documentation for v8?
[18:09] tbranyen: j/w
[18:09] indutny: upvote please http://news.ycombinator.com/item?id=2675260
[18:09] Fodi69 has joined the channel
[18:09] tbranyen: should i read it first and decide if i want to upvote it?
[18:09] cagdas has joined the channel
[18:09] mscdex: theycallmeswift: with a gzip module?
[18:10] mraleph: tbranyen: you ask tricky questions that I don't know how to answer :-)
[18:10] indutny: mraleph: upvote? ;) http://news.ycombinator.com/item?id=2675260
[18:10] theycallmeswift: mscdex: the main one is no longer maintained (all the tests fail) and the others don't seem to support uncompressing
[18:11] jacobolus has joined the channel
[18:12] indutny: jerrysv: can you upvote please? http://news.ycombinator.com/item?id=2675260
[18:12] mraleph: indutny: I should say you are pretty aggressive in promoting yourself :-)
[18:12] dguttman has joined the channel
[18:13] jerrysv: indutny: done
[18:13] dguttman has joined the channel
[18:13] indutny: jerrysv: thanks
[18:13] tbranyen: i would have upvoted, but its coffeescript :(
[18:13] mraleph: haha
[18:13] tjholowaychuk: doh
[18:13] indutny: mraleph: hehe :) sometimes
[18:13] mraleph: blasphemy :-)
[18:14] STUPIDWIFI has joined the channel
[18:14] mraleph: I meant coffeescript is blasphemy
[18:14] pietern has joined the channel
[18:14] mscdex: theycallmeswift: did you try this fork: https://github.com/egorich239/node-compress
[18:14] tbranyen: mraleph: pretty much why most people don't get answered prayers... i only talk to god in aramaic
[18:15] tbranyen: don't think he understand english
[18:15] tbranyen: s*
[18:15] indutny: mraleph: hahaha :)
[18:16] indutny: mraleph: that's all about praying someone
[18:16] indutny: mraleph: but I want to code
[18:16] sweet has joined the channel
[18:16] mscdex: theycallmeswift: if nothing else, you could always spawn the 'gzip' command-line utility
[18:17] mraleph: I think blasphemy is inadequate replacement for russian "ересь" which is much richer in it's meaning (not related to religion) :-)
[18:17] jbroman has joined the channel
[18:17] F1LT3R has joined the channel
[18:18] indutny: mraleph: ахахах ) ну да. Честно говоря, это был просто эксперимент :) Хотелось попробовать coffeescript в делел
[18:18] sweet has joined the channel
[18:18] sh1mmer: Anyone know how to dump the currently running stack out of a node process. I want to get all the anonymous global variables as well as the current call stack
[18:18] sh1mmer: and I haven't been able to figure out a way to do it
[18:18] mraleph: sh1mmer: anonymous variables? what is that?
[18:18] CoverSlide: new Error().stack
[18:18] mscdex: (new Error()).stack ?
[18:19] mscdex: or console.trace() i think
[18:19] sh1mmer: mraleph: non-named functions or whatever...
[18:19] theycallmeswift: mscdex: doesn't compile and was abandoned 6-7 months ago :/
[18:20] theycallmeswift: mscdex: gzip command line it is haha
[18:20] sweet has left the channel
[18:20] cognominal has joined the channel
[18:20] chrisdickinson: sh1mmer: a = {}; Error.captureStackTrace(a); a.stack
[18:22] jhurliman has joined the channel
[18:22] ph^ has joined the channel
[18:23] BillyBreen has joined the channel
[18:23] jbroman: The docs suggest that vm.runInNewContext is dangerous for untrusted code (which makes some sense), but it's vague about what exactly this untrusted code would be able to do. Where can I find out what the problems with it actually are, and how I could run untrusted JavaScript (ideally in-process, though if necessary I could obviously just spawn a separate process running node or v8).
[18:24] sh1mmer: Those all give me a stack trace, but what I actually want is the entire current context enumerated
[18:24] sh1mmer: all the variables
[18:24] willwhite has joined the channel
[18:24] mscdex: theycallmeswift: oh, that build error is easily fixable, one sec
[18:24] sh1mmer: particularly objects without a named reference
[18:25] swistak: jbroman, are you sure it's about runInNewContext?
[18:26] swistak: AFAIK this is safest method to eval code in node.js
[18:26] jbroman: swistak: "To prevent accidental global variable leakage, vm.runInNewContext is quite useful, but safely running untrusted code requires a separate process."
[18:26] jbroman: I'm sure it's much much safer than "eval", but this sentence alludes to other problems with it.
[18:27] theycallmeswift: mscdex: sure. Thanks for the help
[18:27] swistak: jbroman, I've played around with different means of running code in node.js and it generally have great isolation
[18:27] jakeg has joined the channel
[18:28] swistak: this is probably something we call 'reinforcing your ass with steel plating' (very bad translation), basically if there should be any bug in vm itself
[18:28] puffpio has joined the channel
[18:28] swistak: running it using vm.runInNewContext will give the mailcious code the same priviledges the server running it has
[18:29] jbroman: swistak: My hope was that by not exposing require and other dangerous things, the untrusted code could not touch that stuff. :P
[18:29] swistak: so to add additional safety it's usually recommended to run such code in separate process with owner set to user without any rights
[18:29] jbroman: (Also, it would be nice to be able to enforce a time limit on subscripts.)
[18:29] CoverSlide: what's the filename attribute in the vm.* functions do?
[18:29] CoverSlide: argument*
[18:29] swistak: CoverSlide, makes prettier stack traces
[18:29] [[zz]] has joined the channel
[18:29] jbroman: CoverSlide: AFAICT, it's mostly for stack traces.
[18:30] CoverSlide: oic
[18:30] swistak: if you have code you're evaling saved in a file, you can pass it and it'll print it in stack trace instead of eval:xx:xx
[18:30] sshaginyan_ has joined the channel
[18:30] swistak: very usefull for debuging
[18:31] RORgasm_ has joined the channel
[18:31] sshaginyan_ has joined the channel
[18:31] PeterPeterPeter has joined the channel
[18:33] mscdex: theycallmeswift: https://github.com/mscdex/node-compress
[18:34] marienz_ has joined the channel
[18:35] RORgasm has joined the channel
[18:36] kruckenb has joined the channel
[18:37] arpegius has joined the channel
[18:37] zhami has joined the channel
[18:39] mendel_ has joined the channel
[18:40] dnolen has joined the channel
[18:40] anno^da has joined the channel
[18:41] theycallmeswift: mscdex: I'm getting this error http://www.pastie.org/2097282
[18:42] theycallmeswift: mscdex: I moved the compress-bindings.node file into the demos directory, but still nothing
[18:42] mscdex: theycallmeswift: oh, i guess you have to copy the compress-bindings.node to lib/compress/
[18:42] kmiyashiro: what should I do with NODE_ENV if my host doesn't support setting that?
[18:42] kmiyashiro: in express
[18:45] CoverSlide: process.env['NODE_ENV'] ?
[18:46] binaryjohn has joined the channel
[18:46] Murvin has joined the channel
[18:46] patcito has joined the channel
[18:46] theycallmeswift: mscdex: Getting there. Now It's hanging after it creates a gzip object http://www.pastie.org/2097302
[18:46] tjholowaychuk: process.env.NODE_ENV=
[18:46] tjholowaychuk: or
[18:46] tjholowaychuk: app.set('env', 'whatever') .. though that kinda defeats the purpose
[18:47] Murvin: isaacs: Hi hi.. did you have the chance to try running the script and repo the socket problem? :)
[18:47] fly__ has joined the channel
[18:47] fly-away has joined the channel
[18:47] CoverSlide: goddammit
[18:47] CoverSlide: a back-end dev just screwed with my css and fucked the whole page
[18:47] CoverSlide: beb
[18:48] bentruyman has joined the channel
[18:49] RORgasm has joined the channel
[18:49] sweet has joined the channel
[18:50] sweet has left the channel
[18:51] rfay_afk has joined the channel
[18:51] Xano has joined the channel
[18:52] dgathright has joined the channel
[18:54] prettyrobots has joined the channel
[18:54] path[l] has joined the channel
[18:55] anno^da has joined the channel
[18:56] luke` has joined the channel
[18:58] deedubs has joined the channel
[18:58] baoist_ has joined the channel
[18:58] deedubs_ has joined the channel
[18:59] gustavowt: its possible execute jquery commands on node server?
[19:00] jj0hns0n has joined the channel
[19:00] Murvin has joined the channel
[19:00] CoverSlide: which jquery commands?
[19:00] jerrysv: gustavowt: yes, jsdom :)
[19:00] Murvin: isaacs: sorry. i was logged out.. so, did you repo the problem?
[19:01] gustavowt: CoverSlide, i need to use $.each
[19:01] harth has joined the channel
[19:01] gustavowt: jerrysv, thanks
[19:01] CoverSlide: gustavowt: use yourArray.forEach()
[19:01] gustavowt: WOW
[19:01] gustavowt: :D
[19:03] romanb has joined the channel
[19:03] xijhing has joined the channel
[19:04] gustavowt: CoverSlide, dont work
[19:05] jerrysv: wow?
[19:05] CoverSlide: gustavowt: how are you using it?
[19:06] gustavowt: yourArray.forEach()
[19:06] mavin|gone has joined the channel
[19:06] CoverSlide: if you are doing $.each(yourArray, function(){/* code to be executed*/})
[19:06] dmose has joined the channel
[19:06] CoverSlide: oh are you using it on an array or an objecT?
[19:07] gustavowt: an object
[19:07] gustavowt: :D
[19:07] gustavowt: work from this mode
[19:07] gustavowt: var jq = requir(jquery)
[19:07] gustavowt: jq.each(object,function)
[19:07] CoverSlide: on object you would have to do for(var i in obj){}
[19:09] gustavowt: CoverSlide, could even use this way, the problem is I have a code in the middle of child_process.exec
[19:09] jetienne: do i need to pay for xcode to run nodejs on mac ?
[19:09] alabala123 has joined the channel
[19:10] Gabi_Purcaru has joined the channel
[19:10] gustavowt: CoverSlide and how it is necessary to use asynchronous data object in callback exec, and he always brings the latest comment
[19:10] digiwano: not if you can find a precompiled copy?
[19:10] wao: eh, there is older xcode avail. isnt?
[19:10] digiwano: compiling it yourself you'd need Xcode though
[19:11] digiwano: iduno, i just bought xcode for the $5 because
[19:11] wao: also, there are nodejs binaries I think
[19:11] digiwano: its $5
[19:11] tjholowaychuk: you're $5
[19:11] tjholowaychuk: :p
[19:11] herbySk has joined the channel
[19:11] CoverSlide: i think you could probably get SL version for free
[19:12] tjholowaychuk: starbucks costs more than xcode
[19:12] tjholowaychuk: but i bet they still rake in a lot of $$$
[19:12] jetienne: just got a 1.2k euro mac... and it doesnt have hw accelerated webgl... couch
[19:12] jetienne: tjholowaychuk: starbuck doesnt keep your credit card info
[19:13] jetienne: i would love to pay 10 time that but in cash
[19:13] digiwano: go pick up a $10 itunes giftcard anywhere?
[19:14] zmbmartin: do you only need csrf on post or post, put, and delete? I was just looking at the express-csrf and it only applies to post requests
[19:14] tjholowaychuk: zmbmartin generally anything manipulating data
[19:14] jetienne: digiwano: you can buy license with that §
[19:14] jetienne: ?
[19:14] EyePulp has joined the channel
[19:14] gsmcwhirter: zmbmartin, well not delete probably since there is no body data (unless I am remembering wrong)
[19:14] zmbmartin: tjholowaychuk: ok thanks. I was thinking that.
[19:14] mscdex: theycallmeswift: hmm, i think something is funky with the binding design or something, i'll look into it later tonight
[19:14] EyePulp: yo ho ho
[19:14] digiwano: jetienne: mac app store is just like the ios app store, you can totally go just on gc's rather than cc
[19:15] jetienne: digiwano: ?
[19:15] digiwano: yes
[19:15] gustavowt: CoverSlide, worked perfectly with jq.each. Thanks for attention
[19:15] jetienne: what are you talking about §
[19:16] EyePulp: crikey - lots of activity on socket.io lately.
[19:17] jetienne: https://sites.google.com/site/nodejsmacosx/
[19:17] zhami has joined the channel
[19:17] witold has joined the channel
[19:17] witold: hi guys
[19:17] shinuza has joined the channel
[19:18] darshanshankar has joined the channel
[19:18] simenbrekken has joined the channel
[19:19] m00p has joined the channel
[19:20] Dreamer3 has joined the channel
[19:21] mscdex: .talk EyePulp
[19:21] Calvin: EyePulp , lol process lol talk
[19:21] witold has joined the channel
[19:22] digiwano: jetienne: that works too :)
[19:22] saschagehlich has joined the channel
[19:22] hellp has joined the channel
[19:23] mscdex: .talk jetienne
[19:23] Calvin: jetienne iknow I also saw that bug me
[19:23] piscisaureus_ has joined the channel
[19:23] EyePulp: great, the world's most useful bot rides again.
[19:23] blup has joined the channel
[19:23] mscdex: :D
[19:23] heavysixer has joined the channel
[19:24] adambeynon_ has joined the channel
[19:24] Max-Might has joined the channel
[19:24] prettyrobots has joined the channel
[19:25] ryan0x2 has joined the channel
[19:25] jetienne: mscdex: ?
[19:25] jetienne: i just wish i could have a good webgl on this box macbook pro
[19:25] mscdex: jetienne: it's just a bot ;-)
[19:25] jetienne: ah ok :)
[19:26] MooGoo: calvin has feelings just like u and me
[19:26] Calvin: feelings about it and was hoping I won't hafta use a binary search to find an answer, numerous answers to what i already switched from windows to see if i have installed and e way just
[19:26] harth_ has joined the channel
[19:26] theycallmeswift: mscdex: thank you, I would appreciate that
[19:29] sreeix has joined the channel
[19:29] sirdancealot has joined the channel
[19:31] supster has joined the channel
[19:31] insin has joined the channel
[19:32] mahna: Can npm's search (or similar) command output version info in its results?
[19:34] bosphorus has joined the channel
[19:37] charleyd has joined the channel
[19:40] kevwil has joined the channel
[19:40] trotter has joined the channel
[19:41] briznad has joined the channel
[19:41] mahna: So if I run 'npm search socket.io,' for example, it would show me which version I'm looking at.
[19:42] aliem has joined the channel
[19:44] CoverSlide: npm view socket.io
[19:44] bentruyman has joined the channel
[19:44] CoverSlide: and | grep latest
[19:45] darren has joined the channel
[19:46] mahna: Ah, that's what I was looking for. I saw 'find' but it seems equivalent to 'search.' Thanks.
[19:46] sirdancealot has joined the channel
[19:51] bartt has joined the channel
[19:53] elpinguino has joined the channel
[19:53] adrianmg has joined the channel
[19:54] pen has joined the channel
[19:54] broofa has joined the channel
[19:55] \sega has joined the channel
[19:55] tilgovi has joined the channel
[19:55] tilgovi has joined the channel
[19:56] sharkbone has joined the channel
[19:56] jhurliman: i have a server that occasionally needs to run web crawling tasks. i'd like to run the tasks in separate contexts so they have no chance of taking down the whole server if one of them dies or has a problem. i also need to receive a stream of log data back while the task is running, and get a chunk of data back from the task when it completes (takes a few hours on average)
[19:57] jhurliman: i'm trying to figure out if vm.runInNewContext() is a good fit or whether i should spawn new processes
[19:57] mde has joined the channel
[19:57] orls has joined the channel
[19:58] kkaefer: when binding a server to 0.0.0.0, how do I get the IP the client actually connected to?
[19:58] jhurliman: with vm.runInNewContext(), is there a way to receive a stream of log data while the task is running, or is it designed for running a piece of code and fetching the result at completion only?
[19:58] christkv has joined the channel
[19:58] jhurliman: kkaefer, doesn't 0.0.0.0 mean it's listening on all available interfaces?
[19:59] kkaefer: yes
[19:59] jhurliman: so you want an array of every network interface?
[19:59] kkaefer: no
[19:59] kkaefer: when a client connects to the node server
[19:59] jbroman: jhurliman: He wants the local address of a particular socket.
[19:59] jhurliman: oh sorry, misread. the client. i have a helper method for that hold on
[19:59] mAritz has joined the channel
[19:59] kkaefer: jbroman: yes
[20:00] ebaxt has joined the channel
[20:00] CoverSlide: what about socket.remoteAddress ?
[20:00] jbroman: kkaefer: I haven't checked; does socket.address() do what you want?
[20:00] jbroman: (or does it return "0.0.0.0"?
[20:00] jbroman: )
[20:00] v0idless- has joined the channel
[20:00] kkaefer: CoverSlide: that's the client's address
[20:00] CoverSlide: oh read it wrong
[20:00] jhurliman: kkaefer, https://gist.github.com/1036434
[20:01] jbroman: jhurliman: I think that's also remote address.
[20:01] jslatts has joined the channel
[20:01] jbroman: He wants the local address (i.e. he wants to identify which IP was used since he bound to multiple).
[20:01] jhurliman: got it
[20:01] eldar has joined the channel
[20:01] jhurliman: sorry, don't know that one off the top of my head
[20:02] __tosh has joined the channel
[20:03] kkaefer: jbroman: doh, thanks
[20:03] kkaefer: didn't think about .address()
[20:03] jbroman: kkaefer: Yeah, just checked and it appears to do what you want.
[20:03] mahna: socket.address()?
[20:03] kkaefer: yes
[20:03] mAritz has joined the channel
[20:03] aurynn has joined the channel
[20:04] ebaxt has joined the channel
[20:04] kruckenb has joined the channel
[20:04] aurynn has left the channel
[20:05] charleyd has joined the channel
[20:05] ebaxt has left the channel
[20:05] mAritz has joined the channel
[20:08] squeese has joined the channel
[20:09] jhurliman: found the answer to my earlier question. you can use the sandbox object in vm.runInNewContext() to fire callbacks in the original script. example: https://gist.github.com/1036456
[20:11] prettyrobots has joined the channel
[20:11] zmbmartin: tjholowaychuk: why would the req.session info not be available in a ajax post?
[20:11] flou has joined the channel
[20:11] sirdancealot has joined the channel
[20:12] tjholowaychuk: zmbmartin that's not a lot of info to go on
[20:12] tjholowaychuk: haha
[20:12] tjholowaychuk: so im not sure
[20:12] tjholowaychuk: guessing something funky with your middleware setup or something
[20:12] tjholowaychuk: dunno
[20:12] tjholowaychuk: cookie issues
[20:13] zmbmartin: tjholowaychuk: I am trying to use uploadify and I have it working but when trying to add csrf check there is no req.session.csrf in the post to check against. It is working fine on my other routes
[20:14] tjholowaychuk: hm
[20:14] tjholowaychuk: check out the header
[20:14] tjholowaychuk: do you get cookies?
[20:14] zmbmartin: tjholowaychuk: yes lastAccess and cookie are there in session but that is it
[20:14] zmbmartin: my session user or csrf is not
[20:15] tjholowaychuk: yeah, but I meant the http header, I bet it's creating a new session per ajax request (for whatever reason)
[20:16] zmbmartin: oh I see. ok well I will implement the csrf a little differently then.
[20:16] zmbmartin: thanks
[20:17] tjholowaychuk: could be the cookie path
[20:17] kriskowal has joined the channel
[20:17] Determinist: is there any way for me to check if a process is running if i have the pid?
[20:17] tjholowaychuk: that would be my guess
[20:17] tjholowaychuk: Determinist process.kill(pid, 0)
[20:17] tjholowaychuk: null signal
[20:18] Determinist: tjholowaychuk: no side effects?
[20:18] tjholowaychuk: you will get ESRCH or w/e
[20:18] tjholowaychuk: if it fails
[20:18] Determinist: w/e?
[20:18] tjholowaychuk: whatever
[20:18] Determinist: oh, jeez
[20:18] tjholowaychuk: haha sorry
[20:18] Determinist: k, cool, thanks
[20:20] devrim has joined the channel
[20:20] ngs has joined the channel
[20:20] jakeg has joined the channel
[20:21] jvduf has joined the channel
[20:21] Determinist: tjholowaychuk: btw, ever run into a situation where express fails sending out responses after a while? like... have an express based server up for several days and at some point it'll start complaining about socket not being writable?
[20:21] puffpio has joined the channel
[20:21] blup has joined the channel
[20:21] tjholowaychuk: Determinist hmm nope not personally no
[20:21] Determinist: tjholowaychuk: i keep bumping into this recently. can't find any reason for it to happen
[20:22] tjholowaychuk: weird, feel free to send a gist next time if you have a stack trace
[20:22] Determinist: tjholowaychuk: will do, thanks
[20:23] pjacobs2 has joined the channel
[20:23] sridatta has joined the channel
[20:24] dtan: hey everyone, the jade template engine for express, does it basically function the same as these docs: http://scalate.fusesource.org/documentation/jade-syntax.html
[20:25] tjholowaychuk: dtan the jade readme is the place to look
[20:25] tjholowaychuk: that thing differs a bit
[20:25] dtan: k, thanks tj
[20:26] euforic has joined the channel
[20:27] euforic has left the channel
[20:27] robot_jesus: dtan's jumping right in :)
[20:27] euforic has joined the channel
[20:27] dtan: robot_jesus - that's what you gotta do
[20:27] duncanm has joined the channel
[20:27] dtan: i racked my brain soooo much over the weekend to try to get up to speed on nodejs stuff
[20:28] duncanm: anyone using phantomjs here?
[20:28] STUPIDWIFI has joined the channel
[20:29] Determinist: tjholowaychuk: how would i catch the response from process.kill(pid, 0) ?
[20:29] tjholowaychuk: Determinist try { process.kill(..); all good } catch (err) { oh noes, it's dead }
[20:29] euforic: Anyone know of a node mysql module that supports Sprocs
[20:30] Determinist: tjholowaychuk: aha, gotcha, thanks
[20:30] dtan: tjholowaychuk is there no section on partials in the jade readme?
[20:31] eldar has joined the channel
[20:31] mAritz has joined the channel
[20:32] CoverSlide: partials is an express thang
[20:32] dtan: ah, thanks coverslide
[20:32] tjholowaychuk: dtan yup that's just a local passed by express
[20:33] dtan: tjholowaychuk you mean when you do the render(template, { locals here })?
[20:33] tjholowaychuk: express adds it to the locals
[20:33] tjholowaychuk: you dont have to
[20:34] dtan: hmm ok i'll take a look at the docs to see if i can make sense of this
[20:34] Druide_ has joined the channel
[20:37] ryanfitz has joined the channel
[20:39] hackband has joined the channel
[20:39] edude03 has joined the channel
[20:40] mde has joined the channel
[20:40] pifantastic_ has joined the channel
[20:43] jameson has joined the channel
[20:43] jameson: is there a major different between using
[20:43] jameson: for (var i in obj)
[20:43] jameson: and Object.keys(obj).forEach(function (key){...
[20:45] gustavowt: quit
[20:45] CoverSlide: /join ##javascript
[20:45] svenlito has joined the channel
[20:47] bnoordhuis has joined the channel
[20:48] ksheurs has joined the channel
[20:48] djcoin has joined the channel
[20:49] shapeshed has joined the channel
[20:49] fly-away has joined the channel
[20:54] adrianmg has joined the channel
[20:55] mraleph has joined the channel
[20:55] mde has joined the channel
[20:55] alek_br has joined the channel
[20:55] euforic_ has joined the channel
[20:56] timemachine3030 has joined the channel
[20:56] euforic__ has joined the channel
[20:57] wadey: jameson: yes, Object.keys() only shows attributes on that object instance, not inherited attributes
[20:58] coreb has joined the channel
[20:58] wadey: for (i in ...) will include inherited attributes
[20:58] xerox: good guide: https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects#Enumerating_all_properties_of_an_object
[20:59] xerox: great guide actually
[20:59] xerox: couldn't do without
[21:00] LiamMagee has joined the channel
[21:01] mde has joined the channel
[21:02] omni5cience_ has joined the channel
[21:03] eldar has joined the channel
[21:04] ianward has joined the channel
[21:05] xicubed has joined the channel
[21:05] xicubed has left the channel
[21:06] atsuya has joined the channel
[21:06] jslatts has joined the channel
[21:09] dmcquay has joined the channel
[21:10] mc_greeny has joined the channel
[21:11] dall has joined the channel
[21:11] dall: hello
[21:11] bnoordhuis: hi dall
[21:12] dall: hi bnoordhuis
[21:13] mkrecny has joined the channel
[21:13] jakeg has joined the channel
[21:14] Lorentz has joined the channel
[21:14] bradley has joined the channel
[21:14] matyr has joined the channel
[21:14] mkrecny: how r people handling nested http query params on GET requests ?
[21:15] keikubo has joined the channel
[21:16] wadey: https://github.com/visionmedia/node-querystring is pretty nice, and what Express / Connect uses
[21:17] jameson: wadey, xerox: thx for the tip!
[21:17] tbranyen: where teh eff is Marak i actually want to compliment him on code he wrote
[21:17] xerox: jameson: my pleasure
[21:17] dguttman_ has joined the channel
[21:17] jameson: wadey, xerox: but for basic object/array is it not safe to use for(i in ?)
[21:18] xerox: no
[21:18] jameson: tbranyen: at #nodejitsu probably :P
[21:18] mkrecny: wadey: using express right now - not working for nested params
[21:18] kuya_ has joined the channel
[21:18] tjholowaychuk: mkrecny req.query
[21:18] tjholowaychuk: it's already parsed for you
[21:19] mkrecny: for sure but doesn't represent nested params properly
[21:19] tjholowaychuk: hmm it should, unless there's a bug, which is also possible
[21:20] edude03 has joined the channel
[21:20] jameson: xerox: so, if I should stick to Object.keys if I want to scroll through an object like it was a dictionary huh
[21:20] xerox: no
[21:20] xerox: Object.getOwnPropertyNames
[21:20] mkrecny: i'll get back to you - haven't deeply yet
[21:21] mkrecny: *deeply investigated
[21:21] CStumph has joined the channel
[21:21] pifantastic has joined the channel
[21:22] Wizek has joined the channel
[21:22] nphase has joined the channel
[21:22] nphase has joined the channel
[21:24] maushu has joined the channel
[21:25] rpflo has joined the channel
[21:25] iFire` has joined the channel
[21:25] shapeshed has joined the channel
[21:25] philtor has joined the channel
[21:27] devrim has joined the channel
[21:27] amerine has joined the channel
[21:27] jameson: enumerable property -> things that evaluate to true?
[21:28] jameson: truthy items?
[21:28] tbranyen: jameson: no
[21:28] tbranyen: things that are enumerable
[21:29] n000b has joined the channel
[21:29] mscdex: .talk tbranyen
[21:29] Calvin: tbranyen , of ester has talk
[21:30] ezl_ has joined the channel
[21:30] piscisaureus has joined the channel
[21:31] tbranyen: mscdex: wat
[21:31] mavin has joined the channel
[21:32] mkrecny: tj ; still no luck with the nested params - do you have any tests or samples i can look at to see how u typically handle this?
[21:33] tjholowaychuk: mkrecny node-querystring has examples / tests
[21:33] eazyigz has joined the channel
[21:34] elpinguino has joined the channel
[21:34] mkrecny: cheers
[21:34] eazyigz: Hi, I am having a hard time wrapping my head around Node's async style. When I call a function, it returns right away! How can I make it return ONLY AFTER it completes some logic??
[21:35] jbroman: eazyigz: The idea is that you try to avoid doing that.
[21:35] CoverSlide: don't call the function
[21:35] piscisaureus has joined the channel
[21:35] CoverSlide: just pass the function name as a parameter
[21:35] CoverSlide: argument sorry
[21:35] eazyigz: CoverSlide: argument to what? Another function?
[21:35] CoverSlide: functions are variables too
[21:35] EyePulp: eazyigz: can you paste an example someplace?
[21:35] jbroman: Look at the underlying *reason* you're trying to use synchronous logic – in many cases, you can simply do that in your callback.
[21:36] eazyigz: jbroman: the biggest challenge for me is to understand how to return a value from a function - ONLY AFTER it is computed by the function...
[21:36] jbroman: For example, if you want to read some data and then print it, rather than reading it to a variable and then printing it, you ask for it to be read and provide a function which will be called once the data is available (and in that function, your print it).
[21:36] Nuck has joined the channel
[21:36] CoverSlide: eazyigz: you can't return a value from an asynchronous call
[21:37] devrim has joined the channel
[21:37] EyePulp: eazyigz: show an example of one that makes no sense to you, and perhaps we can explain it
[21:37] jbroman: eazyigz: http://pastebin.com/cHgwGHEF is a trivial example; if there's an example that's troubling you we may be more helpful
[21:38] eazyigz: EyePulp: here is my funtion
[21:38] eazyigz: http://pastie.org/2098165
[21:38] pifantastic has joined the channel
[21:39] sub_pop has joined the channel
[21:39] jbroman: eazyigz: the idea is to rewrite to call a callback instead of returning. e.g. http://pastie.org/2098173
[21:39] mkrecny: getImpressions should take a callback as a second param
[21:39] mkrecny: the call that callback inside the annonymous callback supplied to the mongo call
[21:40] sirdancealot has joined the channel
[21:40] jbroman: whoops, made a mistake there
[21:40] lakkris has joined the channel
[21:40] EyePulp: eazyigz: http://pastie.org/2098178
[21:40] dmcquay has joined the channel
[21:41] F1LT3R_ has joined the channel
[21:41] Nican_ has joined the channel
[21:41] Skola_ has joined the channel
[21:41] EyePulp: mkrecny: you were describing while I was coding.
[21:41] EyePulp: =P
[21:41] alnewkirk|com has joined the channel
[21:42] igl has joined the channel
[21:42] adelcamb1e has joined the channel
[21:42] infynyxx1 has joined the channel
[21:43] jameson: so someone took charlie's chair
[21:43] jameson: or my chair
[21:43] FMJaggy has joined the channel
[21:43] sdboyer_ has joined the channel
[21:43] bene has joined the channel
[21:43] dguttman_ has joined the channel
[21:43] tobmaster has joined the channel
[21:44] azend_ has joined the channel
[21:44] tchype has joined the channel
[21:44] joelperras has joined the channel
[21:45] Mrfloyd has joined the channel
[21:45] eazyigz: EyePulp: I am looking at your snippet. The callback itself throws an error: " Unexpected token function"
[21:45] eazyigz: wait... sorry
[21:45] eazyigz: i misunderstood that
[21:45] EyePulp: ACTION never said he *tested* the code
[21:45] temp02 has joined the channel
[21:45] marvin__ has joined the channel
[21:46] mikey_p_ has joined the channel
[21:46] antti_s2_ has joined the channel
[21:46] EyePulp: forgot a closing parens at the end of the call
[21:47] anatoo_ has joined the channel
[21:47] sivy has joined the channel
[21:48] Croms has joined the channel
[21:48] V1 has joined the channel
[21:49] mraleph1 has joined the channel
[21:49] taurenx has joined the channel
[21:49] newy has joined the channel
[21:49] sbrekken has joined the channel
[21:49] eazyigz: EyePulp: what I'm trying to understand, in your snippet, the function will always return 0
[21:49] ph^_ has joined the channel
[21:49] jacobolu_ has joined the channel
[21:50] luke`_ has joined the channel
[21:50] cryptix1 has joined the channel
[21:50] jvduf_ has joined the channel
[21:50] BillyBreen1 has joined the channel
[21:50] jbroman: eazyigz: Just remove the return statement.
[21:50] CoverSlide: asynchronous callbacks shouldn't return anything
[21:50] Aphelion_ has joined the channel
[21:50] Aphelion_ has joined the channel
[21:50] dingomanatee_ has joined the channel
[21:50] jbroman: Returning nothing is correct for most asynchronous things.
[21:50] mkrecny_ has joined the channel
[21:50] jtrally has joined the channel
[21:50] rpflo has joined the channel
[21:50] gkmngrgn has joined the channel
[21:51] bpierre has joined the channel
[21:51] bosphorus has joined the channel
[21:51] eazyigz: jbroman: but then it doesn't return anything
[21:51] sioked has joined the channel
[21:51] abraham has joined the channel
[21:51] arpegius has joined the channel
[21:51] jbpros has joined the channel
[21:51] jbroman: It "returns" by calling the callback.
[21:51] zmbmartin: tjholowaychuk: can I query the session myself?
[21:51] jbroman: It doesn't have anything meaningful to return when it is initially called. Any logic that would use the return value should be placed in the callback or something called from the callback.
[21:52] EyePulp: eazyigz: getImpressions shouldn't "return" anything - it simply calls a function when it's done with it's results.
[21:52] ezmobius has joined the channel
[21:52] mahna has joined the channel
[21:52] CoverSlide: eazyigz: look at like 2
[21:52] eazyigz: EyePulp: should the callback itself return anything?? Or do I have to resort to just setting global variables?
[21:52] CoverSlide: er 13
[21:52] EyePulp: the function you call is the next step or code to run with the "return"
[21:52] EyePulp: nothing returns anything
[21:52] EyePulp: (that sounds weird)
[21:53] eazyigz: EyePulp: so return statements in Node.js aren't needed?
[21:53] wlkh has joined the channel
[21:53] eazyigz: I mean, I just need to set values that I can use in a different function
[21:53] CoverSlide: the second argument of getImpressions, `cb` gets run on line 13 with the output of client.collection.
[21:53] jbroman: eazyigz: They're less common than in many languages. Certainly not non-existent, though.
[21:53] EyePulp: eazyigz: sure they are, but they aren't needed in some async situations.
[21:53] tchype: anyone in the room use TextMate with node.js? i wasn't really satisfied with what i saw with Dr. Nic's original bundle, so i made some modifications this weekend. anyone wanna try it out?
[21:53] EyePulp: tchype: I use that combo
[21:53] tchype: it gives you a fully formatted Run window, like the Ruby run command
[21:54] eazyigz: EyePulp: I can resort to setting a global variable, but I thought that is bad practice.... Maybe its good practice?
[21:54] CoverSlide: eazyigz: and on line 22 is were you tell it what to do with the `impressions` variable
[21:54] CoverSlide: eazyigz: you don't need global variables with closures
[21:54] CoverSlide: this isn't C
[21:54] EyePulp: eazyigz: No one ever said that was good. You haven't explained what you're trying to do.
[21:54] jbroman: eazyigz: Your program may need to be refactored if you feel compelled to use global variables. What the best approach is depends on your situation. Closure variables are often one, function parameters are often one, etc.
[21:54] Xano has joined the channel
[21:55] jbpros has joined the channel
[21:55] tchype: EyePulp: interested in trying it out? http://github.com/InfoSpace/javascript-node.tmbundle
[21:55] EyePulp: tchype: sure, I'll take a look. thanks.
[21:55] jbpros has joined the channel
[21:55] tchype: thanks. let me know what you think about the Cmd+R changes :-)
[21:55] puffpio has joined the channel
[21:56] duncanbeevers has joined the channel
[21:56] mkrecny_: eazyigz: this is also valid and might make it easier to grok return callback(data)
[21:56] philtor has joined the channel
[21:56] eventualbuddha has joined the channel
[21:56] ezl_ has joined the channel
[21:56] dall: hey guys do you think HttpRequestXML will die when html 5 will come? i'm using socket.io, i like the project....at the moment they support, flash, web socket, xhr polling, jsonp polling, in the next months all the method will die for Web socket (html 5) what do you think?
[21:56] tchype: EyePulp: especially try it out with a syntax error...thanks again!
[21:56] eazyigz: EyePulp: what I am trying to do is have a main function that sets values to be passed to an ejs template. So each one of those values is determined by a different function. That is the approach I wanted to tak.
[21:56] zorzar has joined the channel
[21:56] EyePulp: tchype: I never have syntax errors. my code is always perfect.
[21:56] EyePulp: =)
[21:57] eazyigz: But apparently, functions don't return values like I thought they did in other programming languages
[21:57] bnoordhuis has joined the channel
[21:57] indutny has joined the channel
[21:57] Aria has joined the channel
[21:57] tchype: EyePulp: me too...it's just to help all those other poor souls out ;-p
[21:57] SebastianFlyte has joined the channel
[21:57] taf2 has joined the channel
[21:57] jbroman: dall: There's no magic day when HTML5 will simply "come". And XMLHttpRequest is still useful: not everything needs a bidirectional socket.
[21:57] EyePulp: tchype: heh.
[21:57] niftylettuce has joined the channel
[21:57] mkrecny_: eazyigz: you can if function is not IO bound like your example is
[21:57] rpj8 has joined the channel
[21:57] jtrudeau has joined the channel
[21:57] joeytwiddle has joined the channel
[21:57] robotblake has joined the channel
[21:58] xijhing has joined the channel
[21:58] robot_jesus has joined the channel
[21:58] eazyigz: mkrecny_: so if my function is IO bound, then what is another approach I can take?
[21:58] Nomon has joined the channel
[21:58] mkrecny_: eazyigz: the callback approach discussed above
[21:58] mkrecny_: eazyigz: or observer pattern
[21:58] bentruyman has joined the channel
[21:58] mAritz has joined the channel
[21:59] EyePulp: what's it called when you chain a bunch of async calls in series (other than awkward in mixed company)?
[21:59] beriberikix: Thoughts on building an ESB on node.js? Anyone working on it?
[21:59] Aria: ESB?
[22:00] dall: jbroman, you are right...but without websocket a long polling communication will create a lot of http request, i think it not really improve the load of the server
[22:00] dall: no?
[22:00] beriberikix: Enterprise Service Bus
[22:00] Bwen has joined the channel
[22:00] eazyigz: mkrecny_: yeah, I thought of resorting to EventEmitters. But being that I'm just passing values to an EJS template, maybe I should just set property values on a global object
[22:00] Aria: Aah. Totally doable, beriberikix.
[22:00] Nuck: Mornin' forks.
[22:00] jbroman: dall: Web Sockets are useful for some things, but I don't expect them to completely replace XHR. They will just become progressively more supported (and thus more useful) over time.
[22:01] Aria: dall: http requests don't have to be super heavy.
[22:01] Nuck: Well, afternoon, but it's my equivalent of a morning
[22:01] roidrage has joined the channel
[22:01] __tosh has joined the channel
[22:01] beriberikix: Aria: I think the non-blocking behavior would be amazing, but I'm wondering about data mediation
[22:01] Nuck: ACTION noms on Dave's Killer Bread
[22:01] rworth has joined the channel
[22:01] beriberikix: Transforming lots of data = not so great in a Scripting language
[22:02] Aria: beriberikix: hy?
[22:02] Aria: er. Why?
[22:02] Nuck: God it's weird to see my new nick... it's so... short.
[22:02] Mrfloyd has joined the channel
[22:02] EyePulp: eazyigz: that's an option, but there are better ways. A lot of times it depends on what sort of structure and data re-use you're shooting for. It might be worthwhile for you to write some small parts first to get comfortable with the callback style.
[22:02] Aria: (also: separate processes!)
[22:02] dall: Aria, sure, are not heavy but, to send a message i have to open a new tcp connection, and then again and again...it's not very good for me
[22:02] Aria: dall: Sure. But it's doable.
[22:02] mkrecny_: a/s/l
[22:02] dall: Aria, doable?
[22:02] EyePulp: heh
[22:02] Aria: Yeah. It's not prohibitive.
[22:03] beriberikix: Aria: Crazy memory usage
[22:03] eazyigz: EyePulp: thanks for the help
[22:03] catshirt has joined the channel
[22:03] materialdesigner has joined the channel
[22:03] CoverSlide: last I heard IE team had no interest in implementing web sockets
[22:04] Nuck: CoverSlide: MEh, I doubt they'll resist.
[22:04] Aria: beriberikix: Is it? (Why so bad? V8's not horrible ...)
[22:04] Nuck: Aria: Yeah, v8 is UNHORRIBLE
[22:04] Nuck: v8++
[22:04] v8bot: Nuck has given a beer to v8. v8 now has 3 beers.
[22:04] slickplaid: hmm
[22:04] EyePulp: eazyigz: be aware that using in-memory globals is a bad choice if you want to do higher traffic loads, as the memory isn't shared if you use something like "cluster" to run multiple workers. consider storing to a redis/mongo DB backend.
[22:04] iFire has joined the channel
[22:04] dall: Aria, so it's good for you?
[22:05] Nuck: dall: It's the v8 engine, of COURSE it's good for you!
[22:05] CoverSlide: only if we web dev start using them explicitly instead of using socket.io
[22:05] Nuck: It asbolutely does NOT cause cancer.
[22:05] beriberikix: Aria: Agreed V8 is unhorrible, ESB typically transforms huge XML files with lots of Nesting and transformation rules
[22:05] CStumph has joined the channel
[22:05] Aria: Yeah, it's reasonable. It's a linear factor of expense. Not as good as pure TCP, but if it's not available, there's no point in throwing up one's hands.
[22:05] beriberikix: I could see writing the mediation piece in C++
[22:06] Aria: beriberikix: So offload that into separate processes. Why have it all in core at once anyway?
[22:06] eazyigz: EyePulp: I will if I end up working with a lot of data. But this is a simple analytics dashboard, and the data won't change frequently
[22:06] CoverSlide: as long as we let older browsers use older technologies the longer it will take for new technologies to be adopted
[22:06] Nuck: beriberikix: Fuck XML, use JSON :P
[22:06] CoverSlide: YOU can make the difference !!!
[22:06] Aria: Also, that.
[22:06] hunterloftis has joined the channel
[22:07] beriberikix: Nuck: That's why you do a transformation :P Legacy* in, JSON out
[22:07] Nuck: CoverSlide: Actually, if we threaten their families it can go faster :P
[22:07] xandrews has joined the channel
[22:07] pifantastic has joined the channel
[22:07] nibblebot has joined the channel
[22:07] hdon- has joined the channel
[22:07] PhilK has joined the channel
[22:07] Nexxy has joined the channel
[22:07] lukegalea has joined the channel
[22:07] Yuffster_work has joined the channel
[22:07] zpao has joined the channel
[22:07] robinhoode has joined the channel
[22:07] apanda has joined the channel
[22:07] Minos has joined the channel
[22:07] CoverSlide: holy shit
[22:07] CoverSlide: botflood?
[22:07] Nuck: Ah fuck, did we have a netsplit earlier?
[22:07] jbroman: CoverSlide: netsplit?
[22:07] hunterloftis: Hey guys, trying to use .find() with a custom query in Mongoose ORM... need to convert a string _id to an ObjectId object, but not sure from the mongoose docs how that is accomplished
[22:08] Nuck: beriberikix: XML to JSON is probably better in a browser, TBH
[22:08] CoverSlide: usually notices if there is ...
[22:08] Nuck: Though there might be higher-end XML parsers in NodeJS too
[22:08] beriberikix: Nuck: An ESB is for server2server
[22:08] CoverSlide: or e4x !!!
[22:08] CoverSlide: any idea when that gets to v8?
[22:09] Nuck: e4x?
[22:09] Aria: Not likely to, from what I've heard.
[22:09] CoverSlide: yeah
[22:09] Nuck: The embedded XML bullshit?
[22:09] CoverSlide: although sm has it
[22:09] CoverSlide: ecma4xml
[22:09] Aria: Yeah
[22:09] CoverSlide: so it will probably be in nodemonkey/spidernode
[22:09] beriberikix: node-expat is written in C and is suppose to be the fastest
[22:09] dall: guys, out of curiosity, is it better to estabilish a persistent communication...like TCP (irc)....or have many http connection that unload the server for few milliseconds? (only a curiosity)
[22:09] beriberikix: https://github.com/astro/node-expat
[22:09] thoolihan has joined the channel
[22:10] Murvin has joined the channel
[22:10] Nuck: ewwwwwwwwwwwwwwwwwwwwwww
[22:10] Nuck: Fuck E4X
[22:10] groom has joined the channel
[22:10] Nuck: That's that thing that makes multiline strings by app.use(require('stylus').middleware({ src: __dirname + '/public' }));
[23:09] zmbmartin: how do I add nib to that?
[23:10] isaacs: llrcombs: if you set the content-length it won't do that. also, if you set the transfer-encoding yourself, it won't
[23:10] wadey has joined the channel
[23:10] isaacs: llrcombs: it *has* to do that in order to stream data, though, because otherwise the receiving end won't know when it's through or how to separate chunks.
[23:10] isaacs: llrcombs: the status code is set when you do writeHead(200)
[23:10] isaacs: llrcombs: maybe what you really want is just a tcp server?
[23:10] llrcombs: I'm running cgi
[23:11] tjholowaychuk: zmbmartin http://learnboost.github.com/stylus/docs/js.html
[23:11] markwubben has joined the channel
[23:11] isaacs: ew
[23:11] tjholowaychuk: the "use()" method
[23:11] llrcombs: it sends its own response codes and headers
[23:11] isaacs: llrcombs: ok
[23:11] llrcombs: most requests are regular HTTP, and I use node's methods
[23:11] isaacs: llrcombs: well, you know, http and cgi are not the same protocol, exactly
[23:11] isaacs: afaik
[23:11] llrcombs: but I want to support legacy cgi modules until they're rewritten
[23:11] llrcombs: isaacs: CGI scripts operate over HTTP
[23:11] isaacs: ok...
[23:12] llrcombs: CGI's just how the web server works with the script
[23:12] timemachine3030 has joined the channel
[23:12] isaacs: llrcombs: right. so, are you writing cgi scripts, or node programs?
[23:12] isaacs: or a node program that has to talk to cgi scripts?
[23:12] llrcombs: the latter
[23:12] isaacs: ok
[23:13] jacobolus has joined the channel
[23:13] devrim has joined the channel
[23:13] llrcombs: oh, wait
[23:13] llrcombs: it looks like the server still has to send the status code (usually 200)
[23:14] llrcombs: but the script sends the headers (though the server can add to them)
[23:14] llrcombs: so what I really need is for node not to stick \r\n\r\n after its own headers
[23:15] jerrysv: llrcombs: or better yet. parse the response from the cgi script, grab the headers, and add them correctly with node, then return the rest of the body
[23:15] isaacs: llrcombs: isn't there a node-cgi program floating around that can do this?
[23:15] isaacs: llrcombs: yeah, what jerrysv said
[23:15] sridatta has joined the channel
[23:16] llrcombs: jerrysv: I considered that, but parsing headers out is painful!
[23:16] isaacs: llrcombs: yep.
[23:16] jerrysv: how is it painful? search for the first \r\n\r\n, anything before that is headers. split on ':'
[23:16] isaacs: llrcombs: also, node's writeHead does some fancy stuff based on what the client can handle.
[23:16] isaacs: jerrysv: there are a few more edge cases.
[23:16] llrcombs: what isaacs said
[23:17] jerrysv: llrcombs: https://github.com/TooTallNate/node-cgi
[23:17] llrcombs: already there
[23:17] jerrysv: isaacs: yeah, edge cases, but unless llrcombs has an unlimited number of scripts to run, those edge cases can be known and worked around
[23:17] jerrysv: it's not like he's going into it blind :)
[23:17] isaacs: suresure
[23:17] llrcombs: I'm distributing this
[23:17] llrcombs: ot
[23:17] llrcombs: it's in npm
[23:20] tswicegood: has anyone seen an IRC library in Node that can handle SSL connections?
[23:20] k1ttty has joined the channel
[23:21] christkv_ has joined the channel
[23:21] jacobolus has joined the channel
[23:22] samsonjs has joined the channel
[23:22] hassox has joined the channel
[23:22] dylang has joined the channel
[23:24] tswicegood: ahh -- Google finally turned something up --- looks like node-irc does
[23:26] Nuck: Why do session stores for Connect need to extend connect.session.Store?
[23:27] tjholowaychuk: Nuck because u inherit some methods from it's proto
[23:27] Nuck: tjholowaychuk: I do?
[23:27] Nuck: Which ones?
[23:28] tjholowaychuk: there's Store#regenerate() and Store#createSession() right now
[23:28] tjholowaychuk: nothing huge
[23:28] andi_ has joined the channel
[23:28] Nuck: tjholowaychuk: Ah cool
[23:28] ryanfitz has joined the channel
[23:32] Melkor_ has joined the channel
[23:33] ezl_ has joined the channel
[23:34] Nuck: Ugh I'm gonna hafta use a LOT of curry to make this work with Mongo
[23:34] tjholowaychuk: there used to be one that worked just fine
[23:34] tjholowaychuk: it's basic GET/SET stuff
[23:35] Nuck: tjholowaychuk: I know, but using it with async stuff and using a single connection, etc.
[23:35] tjholowaychuk: connect-redis is async
[23:35] Nuck: All my get and set stuff would hafta be nested a few callbacks deep.
[23:35] Nuck: tjholowaychuk: Yeah, and async with this is pretty easy (since it's using callbacks), but the using a single connection is a bit harder
[23:36] Nuck: Since Mongo-native uses callbacks to make connections async and such
[23:36] tjholowaychuk: i dont get the problem :s
[23:36] tjholowaychuk: just have one connection open
[23:36] tjholowaychuk: leave it open
[23:36] Swizec has joined the channel
[23:37] Nuck: tjholowaychuk: Well, for that, I need to have all my get and set functions generated in a callback
[23:37] ezl_ has joined the channel
[23:37] konobi has joined the channel
[23:37] puffpio has joined the channel
[23:37] Nuck: I might just use a pre-built mongo-session system, and just tweak it to fit my needs
[23:38] pradeepto has joined the channel
[23:40] perlmonkey2 has joined the channel
[23:40] F1LT3R has joined the channel
[23:41] replore has joined the channel
[23:41] tekky has joined the channel
[23:41] ExsysTech has joined the channel
[23:41] Nuck: The fuck? This module can't even use a username/password for the db.
[23:41] Nuck: That's retarded.
[23:42] tjholowaychuk: ?
[23:43] CodyGray has joined the channel
[23:43] Nuck: ah found a better one
[23:43] CodyGray has left the channel
[23:44] sivy has joined the channel
[23:45] tmpvar has joined the channel
[23:47] bartt has joined the channel
[23:48] CodyGray has joined the channel
[23:50] liar has joined the channel
[23:52] mikey_p: Nuck: you using connect-session-mongo or express-session-mongo?
[23:52] mikey_p: express-session-mongo looked more up to date, but I haven't tried it yet
[23:53] dylang has joined the channel
[23:54] \sega has joined the channel
[23:56] buzzomatic has joined the channel
[23:57] buzzomatic: Hi guys, is there any function in any module that can take "paths" like: ./some-dir/* and expand that into an array of paths?
[23:58] infynyxx has joined the channel