[00:00] akter_ has joined the channel [00:00] avih has joined the channel [00:01] context: thefuzzball: doubtful [00:03] MooGoo: sure, polling [00:04] gtramontina has joined the channel [00:05] flip_digits has joined the channel [00:06] cognominal has joined the channel [00:07] TheJH: TheFuzzball, as long as the hard disk stays the same and just the OS changes, you might want to consider putting some hook functions into the harddisk's firmware [00:07] akter has joined the channel [00:08] stalled has joined the channel [00:10] brianloveswords has joined the channel [00:10] akter has joined the channel [00:11] vvo has joined the channel [00:11] akter has joined the channel [00:12] descipher has joined the channel [00:13] sharkbird has joined the channel [00:13] sharkbird_ has joined the channel [00:14] sreeix has joined the channel [00:15] avih has joined the channel [00:15] storrgie has joined the channel [00:16] dwhittle has joined the channel [00:16] CIA-109: node: 03Ryan Dahl 07master * rd85c85a 10/ doc/api/addons.markdown : Change 'real example' in addon doc - http://git.io/I9j8GQ [00:16] CIA-109: node: 03Ryan Dahl 07master * re4731f8 10/ (3 files in 3 dirs): Upgrade V8 to 3.8.2.1 - http://git.io/v4s1WQ [00:16] CIA-109: node: 03Ryan Dahl 07master * rc2d9e62 10/ (11 files in 7 dirs): [00:16] CIA-109: node: Merge remote branch 'origin/v0.6' [00:16] CIA-109: node: Conflicts: [00:16] CIA-109: node: deps/v8/src/version.cc - http://git.io/_X9kRA [00:16] indexzero has joined the channel [00:17] kriszyp has joined the channel [00:17] criswell has joined the channel [00:19] sharkbird has joined the channel [00:20] jskulski has joined the channel [00:23] pvorb has joined the channel [00:23] akter has joined the channel [00:24] hasenj has joined the channel [00:25] pvorb has left the channel [00:25] akter has joined the channel [00:27] sharkbird has joined the channel [00:27] plutoniix has joined the channel [00:28] [[zz]] has joined the channel [00:29] sreeix has joined the channel [00:30] sreeix has joined the channel [00:30] TheJH: huh, "import" is a reserved keyword? [00:31] hotroot: Writing an ascii-art captcha system. Never knew anything could be this boring [00:32] jesusabdullah: That sounds kinda fun to me [00:33] hotroot: Well right now I'm copy-pasting lines from an ascii art site into letter arrays [00:33] hotroot: Copy/paste the array start code, copy paste the line from the site, next line, next line, next line, next line, rinse, repeat. [00:33] KyleXY: hotroot: that's actually a rather cool idea, [00:34] hotroot: I stole it from some blog site =P [00:34] KyleXY: you should open source the end result :p [00:34] hotroot: Sure =) [00:34] jesusabdullah: hotroot: Look at asciimo and figlet fonts [00:34] hotroot: The problem though is that once someone maps all the letters... [00:35] base698 has joined the channel [00:35] gigafied has joined the channel [00:35] NStojan has joined the channel [00:35] hotroot: Although making it an array, and thus posting the first line from all the chosen letters, then newline, then the next line at least makes it a bit harder [00:35] base698: Anyone know how to set the timeout for express.js? We have a massive upload that exceeds 2 minutes. [00:35] hotroot: I'm thinking of doing it where I misspell a word in ascii-art-text, and then they have to spell it the right way. [00:35] base698: there is the socket object on request and response, but it's not documented [00:37] hotroot: jesusabdullah: I have a good font, using contrast, so I don't have to fuck about with whitespace [00:37] hotroot: All the letters are 5 lines 5 characters long, blanks filled in with [00:37] hotroot: dots [00:38] hotroot: Err, 5 x 7 I mean [00:38] towski has joined the channel [00:39] Kifah has joined the channel [00:39] avih has joined the channel [00:39] DTrejo has joined the channel [00:41] DTrejo has joined the channel [00:48] rwaldron has joined the channel [00:51] avih has joined the channel [00:54] ryan_stevens has joined the channel [00:54] kriszyp has joined the channel [00:59] jocafa has joined the channel [01:03] idiotic_idioms has joined the channel [01:04] fomatin has joined the channel [01:04] MrMaksimize has joined the channel [01:05] criswell has joined the channel [01:09] avih has joined the channel [01:10] jbrokc has joined the channel [01:12] kriszyp has joined the channel [01:13] pantherhead has joined the channel [01:13] Destos has joined the channel [01:14] c4milo has joined the channel [01:14] isufy has joined the channel [01:15] towski has joined the channel [01:18] satyr has joined the channel [01:23] k1ttty has joined the channel [01:23] pantherhead: test [01:24] pantherhead: join #pantherhead [01:24] pantherhead: sorry [01:24] avih has joined the channel [01:27] lwille has joined the channel [01:31] perezd has joined the channel [01:31] TheMoonMaster has joined the channel [01:31] mara has left the channel [01:33] cognominal_ has joined the channel [01:33] subbyyy has joined the channel [01:35] c4milo has joined the channel [01:35] avih has joined the channel [01:39] plutoniiix has joined the channel [01:40] willwhite has joined the channel [01:40] draginx: Whats the recommended library for postgres? I want a full ORM too :S [01:43] CIA-109: node: 03Ryan Dahl 07master * r48a9a2d 10/ lib/http.js : Add deprecation message for http.Client - http://git.io/xbC6xA [01:45] wilmoore has joined the channel [01:46] nateweiss has joined the channel [01:46] avih has joined the channel [01:48] idiotic_idioms has joined the channel [01:49] mattgifford has joined the channel [01:51] sharkbird has joined the channel [01:52] [[zz]] has joined the channel [01:59] avalanche123 has joined the channel [02:00] Squeese has joined the channel [02:02] sharkbird has joined the channel [02:02] cjm has joined the channel [02:03] ShinyDarkness has joined the channel [02:04] rurufufuss has joined the channel [02:05] kriszyp has joined the channel [02:07] gavin_huang has joined the channel [02:08] sharkbird has joined the channel [02:08] nixer1102 has joined the channel [02:10] djbell has joined the channel [02:12] draginx: does nodejs use less memory than ruby? [02:13] purr has joined the channel [02:14] enmand has joined the channel [02:14] criswell has joined the channel [02:16] andrew12: that's a relative question [02:16] gigafied has joined the channel [02:16] jacobolu_ has joined the channel [02:16] andrew12: depends on what you're using it for [02:16] kurtzhong has joined the channel [02:17] draginx: andrew12: A webapp… uhm… similar to farmville I suppose (except not in flash and not as "animated") [02:17] raincole has joined the channel [02:18] andrew12: but i just fired up node's repl and irb and node's using 9.2MB and ruby is using 10.6MB [02:18] Libra102 has joined the channel [02:18] draginx: ah [02:18] zodiak: draginx, if you can, I would probably RAD in rails, and then splinter off the internal API to node.js when you need to [02:18] draginx: RAD? [02:18] hotroot: To convert an array of letters to a word do you just var word = array.join("");? [02:18] andrew12: and i just did it again and now node is using 10.7 and ruby 10.2 [02:19] zodiak: rapid application development = RAFD [02:19] zodiak: s/FD/D/ [02:19] andrew12: so.. it depends :p [02:19] skm has joined the channel [02:19] draginx: zodiak: ah I see :) [02:21] dudeinthemirror has joined the channel [02:21] TimTimTim has joined the channel [02:22] hotroot: If anyone is still on who care(d/s) about my text captcha system I wrote, here it is [02:22] hotroot: https://gist.github.com/1515980 [02:23] gigafied has joined the channel [02:25] Lingerance: hotroot: No offense but I'm pretty sure a bot can read that just fine. [02:25] dudeinthemirror has joined the channel [02:29] plutoniix has joined the channel [02:33] blup has joined the channel [02:33] DTrejo has joined the channel [02:34] sreeix has joined the channel [02:37] mrryanjohnston has joined the channel [02:40] pauls1_: anyone know how to handle ECONNREFUSED with a dnode client->server failed connection? [02:41] jskulski has joined the channel [02:42] srijan4 has joined the channel [02:44] CarterL has joined the channel [02:46] avih has joined the channel [02:47] jldbasa has joined the channel [02:49] Vennril has joined the channel [02:50] ryan_stevens has joined the channel [02:54] gigafied has joined the channel [02:55] pandeiro has joined the channel [02:58] satyr has joined the channel [03:01] overra_ has joined the channel [03:03] Typo has joined the channel [03:05] mattgifford has joined the channel [03:07] eastc has joined the channel [03:08] boltR has joined the channel [03:09] hotroot: Lingerance: It's 100% text, no matter what I do a sophisticated bot can read it [03:09] Lingerance: Which makes it fairly pointless. [03:09] Lingerance: ... and not a CAPTCHA [03:09] hotroot: Lingerance: It's the step before adding a small logic test though. It's 1000x easier for a bot to read plaintext then having to write an analyzer for that [03:10] hotroot: CAPTCHA is flawed in and of itself. Bots can do fairly well even at the main ones [03:12] mattgifford has joined the channel [03:12] jesusabdullah: I like the one where it asks, "which square is the kitty in?" [03:12] Skaag has joined the channel [03:13] dharmesh has joined the channel [03:13] hotroot: I saw a real tough as shit one where you have to move the capitals to each country [03:13] hotroot: And other stuff like that, mixed in together [03:16] dmonty has joined the channel [03:16] jesusabdullah: It has to be something people can do easy but bots can't [03:16] hotroot: Yeah, I'm going to use the CAPTCHA letters in a little logic puzzle or something [03:16] jesusabdullah: Yeah, but bots can do logic puzzles [03:16] hotroot: Depends on the puzzle [03:16] avih has joined the channel [03:16] jesusabdullah: Ask them something only a HUMAN would know ;) [03:17] Lingerance: Don't do a quit, those are easy to break once the programmer gets a few answers they only need to handle a lookup table. [03:17] hotroot: Yeah, but it has to be something randomizable, so I don't have to add new questions every day [03:17] Lingerance: quiz* [03:18] hotroot: I'm also probably going to do a 5 second timout after each failed captcha [03:18] hotroot: Err, logic puzzle [03:18] hotroot: No point in timeouts if they analyze every letter for the word recognition part [03:19] dudeinthemirror: hi, anyone using Linkinus ? [03:19] snuglepuss has joined the channel [03:20] cognominal has joined the channel [03:24] abraxas has joined the channel [03:25] IrishGringo has joined the channel [03:25] zezikaro has joined the channel [03:25] zezikaro: hi, i currently have nodejs version 0.1.96 [03:25] zezikaro: is there an easy way to update it to the newest [03:26] hotroot: zezikaro: I think it's just npm update [03:28] hotroot: zezikaro: If that's not it though, sorry, I just uninstall and reinstall from source [03:28] zezikaro: how can i uninstall? [03:28] zezikaro: i didn't use apt-get D: [03:28] hotroot: Lemme check, just did it [03:28] avih has joined the channel [03:28] zezikaro: haha perfect thanks [03:29] hotroot: I think what I did was I first uninstalled npm like this "npm uninstall npm" [03:30] zezikaro: i don't have npm [03:30] hotroot: npm comes with node [03:30] hotroot: Unless you have a copy that predates that? [03:30] zezikaro: i followed this [03:30] zezikaro: http://www.codediesel.com/linux/installing-node-js-on-ubuntu-10-04/ [03:30] zezikaro: i currently have nodejs version 0.1.96 :O [03:31] hotroot: Try running "npm" and see what happens [03:31] thelifelessone has joined the channel [03:31] zezikaro: No command 'npm' found, did you mean: [03:31] thelifelessone: Hi, I'm looking for a good web-framework. [03:31] hotroot: Okay, here's what I'm getting from SO, and I think this is how I did it [03:31] thelifelessone: I've had a look at express, but I'm not a fan of it. [03:31] hotroot: thelifelessone: Expressjs [03:31] thelifelessone: hotroot: heh. [03:32] thelifelessone: so yeah. [03:32] hotroot: zezikaro: Run "which node" will return something like /path/bin/node. [03:32] hotroot: Run cd /path (/path being the path 'which node' returned) [03:32] thelifelessone: hotroot: is there anything other than expressjs? [03:32] hotroot: zezikaro: Then "rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1" [03:32] zezikaro: can't i do make uninstall [03:33] zezikaro: or something [03:33] hotroot: It's only 3 commands =P [03:33] zezikaro: i don't know where i wget/unziped it though lol [03:33] arthur_kalm has joined the channel [03:33] hotroot: That's why you do which node [03:33] Sami_ZzZ has joined the channel [03:33] hotroot: thelifelessone: I'm pretty new to node, my first project I'm on right now is a telnet game, so I don't know much about browser stuff in node [03:33] thelifelessone: I see. [03:34] thelifelessone: Well thanks. I guess I'll have another look at expressjs. [03:34] hotroot: thelifelessone: Maybe give express a second looking over, it's pretty much the #1 web framework from what I've seen [03:34] thelifelessone has left the channel [03:34] hotroot: 0.o [03:34] thelifelessone has joined the channel [03:34] thelifelessone: I always seem to leave when someone says something. [03:34] hotroot: lol [03:34] thelifelessone: indeed. [03:34] hotroot: thelifelessone: 'Maybe give express a second looking over, it's pretty much the #1 web framework from what I've seen' [03:34] thelifelessone: Alrighty! [03:34] thelifelessone: thanks. :) [03:34] hotroot: np [03:34] hotroot: good luck [03:35] thelifelessone: I'll just, y'know, sit here for a moment... Just in case... [03:35] hotroot: =P [03:35] hotroot: I idle in this room, it's nice [03:36] thelifelessone has left the channel [03:39] eastc has joined the channel [03:39] Vennril has joined the channel [03:40] mrluc has joined the channel [03:41] mrluc has left the channel [03:42] jimt has joined the channel [03:47] kriszyp has joined the channel [03:49] frogstarr78 has joined the channel [03:50] satyr has joined the channel [03:50] snuglepuss: socket.io should work with a windows client correct? [03:51] qbit_: yes - it has a flash fallback for clients that don't have socketiegoodness [03:53] hotroot: A windows client? 0.o [03:53] hotroot: You mean internet explorer? [03:53] dinarcon has joined the channel [03:55] qbit_: ACTION assumed so :D  [03:55] snuglepuss: the socket get fails in firefox and chrome, works fine in linux. ill double check my code [03:58] frogstarr78 has joined the channel [03:59] luke` has joined the channel [03:59] bigma has joined the channel [04:00] brianseeders has joined the channel [04:00] bshumate has joined the channel [04:00] bshumate has joined the channel [04:01] bigma: Hey, Good evening. I have a question about NPM update. trying to update Coffeescript from version 1.1.2 to latest. Run the command in terminal npm update coffee-script it did not work. Could anybody help me? [04:01] avih has joined the channel [04:02] bigma: So does my node. trying to update from 0.6.1 to the latest. Thanks [04:03] falk_ has joined the channel [04:04] criswell has joined the channel [04:05] Wizek has joined the channel [04:05] amigojapan has joined the channel [04:07] ger^kallisti has joined the channel [04:11] mike5w3c_ has joined the channel [04:13] devongovett has joined the channel [04:13] WarheadsSE__ has joined the channel [04:14] pauls1 has joined the channel [04:14] fomatin_ has joined the channel [04:16] dmwuw has joined the channel [04:16] fcoury_ has joined the channel [04:16] dwhittle has joined the channel [04:16] Jalava has joined the channel [04:16] bradwright has joined the channel [04:16] m4rcs_ has joined the channel [04:16] bradwright has joined the channel [04:17] frogstarr78 has joined the channel [04:17] VesQ has joined the channel [04:17] tmm1 has joined the channel [04:18] justinTNT has joined the channel [04:19] vereteran has joined the channel [04:20] jskulski has joined the channel [04:20] sharkbird has joined the channel [04:20] satyr has joined the channel [04:20] sharkbird_ has joined the channel [04:22] justinTNT: G'day, any node hackers coming here from japan? [04:22] kazupon has joined the channel [04:22] bartt1 has joined the channel [04:23] _janne has joined the channel [04:24] sharkbird has joined the channel [04:24] a_meteorite has joined the channel [04:24] a_meteorite has joined the channel [04:25] ben_alman has joined the channel [04:26] bbenvie has joined the channel [04:27] sharkbird has joined the channel [04:28] dilvie_ has joined the channel [04:31] bogomips2_ has joined the channel [04:31] RichardBronosky_ has joined the channel [04:31] Daegalus has joined the channel [04:32] mike5w3c_ has joined the channel [04:33] flower has joined the channel [04:33] gavin_huang has joined the channel [04:34] dantaliz1ng has joined the channel [04:34] rpj8 has joined the channel [04:36] tmm1 has joined the channel [04:36] cognominal has joined the channel [04:37] a_meteorite has joined the channel [04:40] MrMaksimize has joined the channel [04:44] Shaunzie has joined the channel [04:45] k1ttty has joined the channel [04:45] sreeix has joined the channel [04:45] a_meteorite: Is there any good cluster libraries for v0.6? [04:45] a_meteorite: I know it's built-in, but something that makes it... nicer like cluster did would be nice [04:46] jesusabdullah: a_meteorite: https://github.com/learnboost/cluster [04:46] jesusabdullah: AWW YEAH [04:46] a_meteorite: (yes, you may have seen this same question a few times before - but so far no responses... hoping there's someone here now that knows more about it) [04:46] secoif has joined the channel [04:46] jesusabdullah: a_meteorite: [04:46] a_meteorite: jesusabdullah: not compatible with v0.6 last I checked [04:46] jesusabdullah: I can't actually vouch for that libary :( [04:47] jesusabdullah: REALLY?! [04:47] jesusabdullah: oh my [04:47] a_meteorite: unless things changed [04:47] jesusabdullah: ihnfi dude [04:47] a_meteorite: I know, I really like that lib too [04:47] jesusabdullah: Try figuring out why it breaks on oh-six [04:47] jesusabdullah: and fix it [04:47] jesusabdullah: imo [04:47] jesusabdullah: Sometimes it's an easy fix [04:47] jesusabdullah: other times it's awkward [04:48] jesusabdullah: ask mmalecki! He's like the resident expert at nodejitsu at 0.4-0.6 conversions [04:48] a_meteorite: I think it needs substantial work because of the way processes got changed [04:48] a_meteorite: Or something [04:48] a_meteorite: cl [04:48] jesusabdullah: Well, he'd know that too [04:48] a_meteorite: cluster uses some clever pipe stuff [04:48] jesusabdullah: he's hacked a lot on forever trying to make it do its thing in 0.6 [04:49] a_meteorite: Hm, okay [04:51] shiawuen has joined the channel [04:52] cognominal has joined the channel [04:54] frogstarr78 has joined the channel [04:54] htoothrot has joined the channel [04:57] yozgrahame has joined the channel [05:01] jp_ has joined the channel [05:02] confoocious has joined the channel [05:02] confoocious has joined the channel [05:08] jaitaiwan has joined the channel [05:10] mattgifford has joined the channel [05:17] mandric has joined the channel [05:23] willwhite has joined the channel [05:24] jakehow has joined the channel [05:30] vol4ok has joined the channel [05:35] amigojapan has joined the channel [05:38] vol4ok has joined the channel [05:46] tuhoojabotti: merry xmas [05:48] idiotic__ has joined the channel [05:49] metalball2 has joined the channel [05:50] jgornick has joined the channel [05:51] DTrejo has joined the channel [05:54] dthompso99 has joined the channel [05:54] addisonj has joined the channel [05:55] postmodern has joined the channel [05:55] postmodern: hello, how do i have a callback trigger, when one-line of text has been received by a TCP Socket [05:56] TheDahv has joined the channel [05:57] TheDahv: Has anybody tried using the heroku build packs to deploy an application using a 0.6.x version of node? [05:59] TheDahv has joined the channel [05:59] TheDahv: Oops, accidentally closed out of irssi [06:00] jaequery has joined the channel [06:01] pizthewiz has joined the channel [06:05] flip_digits has joined the channel [06:06] neurodrone has joined the channel [06:09] ChrisMatthieu has joined the channel [06:24] kurtzhong_ has joined the channel [06:24] ablegreen has joined the channel [06:24] ablegreen: hi [06:24] andrew12: hi [06:24] ablegreen: what are some examples of io bound operations? [06:25] andrew12: what do you mean by 'io bound'? [06:25] ablegreen: io operations [06:26] andrew12: that's still pretty vague [06:26] andrew12: reading a file would be one example [06:26] ablegreen: ah okay [06:26] andrew12: i think :p [06:27] ablegreen: well node.js is good for fast i/o operations right? [06:27] ablegreen: what are some problems that node.js fix? [06:27] andrew12: well that's a side effect of it being completely event-driven [06:28] ablegreen: ah [06:28] andrew12: it can easily handle thousands of connections [06:28] ablegreen: yeah but if they are cpu bound then it's slow [06:29] andrew12: it'll be as slow as anything else [06:29] ablegreen: i read an article in which it's slower than python, etc. [06:30] ablegreen: when it comes to cpu operations [06:30] andrew12: then don't use it for cpu bound stuff :p [06:30] andrew12: it's designed for network stuff [06:31] andrew12: you don't have to use it for everything [06:31] ablegreen: ah okay [06:31] ablegreen: what are most people using it for? [06:31] ablegreen: can you cite some real world examples [06:31] andrew12: there's 4 right front and center on http://nodejs.org/ [06:31] andrew12: 5 if you include the example [06:32] andrew12: well 6.. there's 2 examples :p [06:32] ablegreen: those examples are just simple webservers [06:32] ablegreen: i don't think people are creating hello world servers :P [06:33] kurtzhong_ has joined the channel [06:33] ablegreen: basically what i'm wondering is [06:33] ablegreen: what makes node.js better than say python or something? [06:33] hij1nx has joined the channel [06:33] k1ttty has joined the channel [06:34] Shaunzie: I wouldn't say node is better than python. [06:34] Shaunzie: they are designed for two different purposes. [06:34] Shaunzie: python is general purpose, but node is specifically targeted and doing network stuff asynchronously [06:34] andrew12: apples and oranges :) [06:34] ablegreen: what are asynchronous connections? [06:35] jaitaiwan has joined the channel [06:35] Shaunzie: asynchronous = doing many things at the same time [06:35] ablegreen: ah i see [06:35] ablegreen: like...many operations at once? [06:36] andrew12: like talking to two separate completely irrelevant to each-other sockets [06:36] ablegreen: i see [06:36] andrew12: (they can be relevant.. but that's just an example :p) [06:36] ablegreen: gotcha [06:36] a_meteorite: very much apples and oranges... node.js is a framework/library/software system/what-have-you, python is a language [06:36] a_meteorite: python has its own async libs [06:36] a_meteorite: h [06:37] a_meteorite: o [06:37] a_meteorite:  [06:37] a_meteorite: howev [06:37] a_meteorite: er [06:37] ablegreen: how is that different from an apache server...it can handle multiple connections at once too, right? [06:37] andrew12: right, but they're not as good at async stuff as node.. at least not in my experience [06:37] a_meteorite: however, javascript's paradigm really suits the async model well [06:37] andrew12: ablegreen: apache is a webserver, node is a platform for building network applications. [06:37] a_meteorite: they're not. they don't perform as well and it just doesn't feel natural. [06:38] andrew12: yeah [06:38] andrew12: i played with network stuff in ruby for a while [06:38] a_meteorite: and javascript is the language of the web, meaning it fits well for server apps for many reasons [06:38] andrew12: IO.select is annoying. [06:38] ablegreen: i see [06:38] jesusabdullah: If you want to compare node to something pythonic, compare it to twisted [06:38] jesusabdullah: except that twisted sucks balls [06:38] ablegreen: or tornado [06:38] andrew12: indeed [06:38] ablegreen: twisted seems old and outdated [06:39] ablegreen: what makes a web server "non-blocking"? [06:39] a_meteorite: ablegreen: as for what is node good at... well, our little start-up is using it for everything [06:40] ablegreen: i see [06:40] a_meteorite: http://magnode.org/ is our biggest ambition probably (sorry, no usable releases yet), and our soon-to-launch IRC bouncing service (http://chat.bzfx.net/) [06:41] brianseeders has joined the channel [06:41] a_meteorite: and some other stuff, all node.js... we love it [06:41] ablegreen: i see [06:41] ablegreen: it loos good [06:42] ablegreen: looks* [06:42] cognominal_ has joined the channel [06:42] ablegreen: but [06:42] ablegreen: how is it different from any other cms [06:42] Shaunzie: developed using nodejs? :D [06:43] a_meteorite: magnode? well, its main goal is semantic. data in, say, drupal is not semantic. and yeah, it's all node.js. [06:43] Shaunzie: why did you put nginx in front of it though? [06:43] ablegreen: ah okay [06:43] Shaunzie: are you trying to avoid running node as root? [06:43] a_meteorite: http://magnode.org/doc has lots of info [06:44] andrew12: a_meteorite: just signed up for the irc bouncer beta :p [06:44] a_meteorite: andrew12: awesome :) be awaret though, we won't be sending out any stuff for a few more weeks at least [06:44] CarterL has joined the channel [06:45] ablegreen: andrew12, what are you using node.js for? [06:45] a_meteorite: Shaunzie: we like nginx, plus it lets us proxy to a cluster and whatnot. [06:46] andrew12: ablegreen: nothing yet, but i've played an IRC and twitter streaming library [06:46] andrew12: and bitcoinjs [06:46] vrs has joined the channel [06:46] a_meteorite: we want to play with bitcoinjs more [06:46] ablegreen: do you browse the darkweb [06:46] andrew12: no [06:46] vrs: can I somehow influence how deep console.log expands objects? [06:47] a_meteorite: ablegreen: the darkweb? like freenet or tor? [06:47] andrew12: vrs: i've wondered that... I usually just do something like console.log(JSON.stringify(object, null, 2) [06:47] ablegreen: a_meteorite: yes [06:47] andrew12: ) [06:48] andrew12: ablegreen: i've played with tor and i2p, but haven't really used them [06:48] a_meteorite: I'm a supporter of tor, don't use it much though [06:48] isufy has joined the channel [06:48] andrew12: i have no need to use it :p [06:48] ablegreen: same [06:48] ablegreen: torrents are for amateurs [06:48] ablegreen: :P [06:48] andrew12: tor isn't bittorrent... [06:48] Shaunzie: LOL! [06:49] ablegreen: people use tor while torrenting [06:49] andrew12: so? [06:49] andrew12: the FBI uses tor too [06:49] ablegreen: most people use tor for torrenting? [06:49] ablegreen: yes? [06:49] andrew12: nope [06:49] ablegreen: what for then? [06:50] andrew12: i don't know, it's anonymous [06:50] ablegreen: you don't know... [06:50] ablegreen: okay. [06:50] ablegreen: lol [06:50] zodiak: ablegreen, I use it to keep my browsing at work 'anonymous'/private [06:50] a_meteorite: don't use tor for torrenting, please [06:50] zodiak: I don't want/need/desire my work to see my private gmail [06:51] Knifed has joined the channel [06:51] gigafied has joined the channel [06:51] Gekz: why is tor being discussed here [06:51] ablegreen: we were talking about bitcoinjs [06:51] ablegreen: then deepweb [06:51] ablegreen: then tor [06:51] andrew12: good question [06:51] Gekz: oh god [06:51] Gekz: all of those things [06:51] Gekz: so much suck [06:51] Shaunzie: lmao! [06:51] andrew12: oh god [06:52] andrew12: this channel [06:52] Gekz: why not enter the room with "I am a tinfoiler fanboi, help me masturbate" [06:52] andrew12: so much opinions [06:52] Gekz: because now, he has achieved climax [06:52] Gekz: and you all helped him [06:52] ablegreen: i just came [06:52] andrew12: ._. [06:52] Gekz: point proven. [06:53] ablegreen: so gekz, what are you using node.js for? [06:53] Gekz: who said I use node.js [06:53] andrew12: ok now you're being creepy [06:53] ablegreen: what are you here for then? [06:53] Gekz: what does it matter to you sir [06:54] Gekz: I'm a spy from the ruby corporation [06:54] andrew12: lol [06:54] Gekz: I'm here hellbent on destroying the node complex. [06:54] a_meteorite: be gone with yourself! [06:54] ablegreen: just curious what people are using node.js for [06:54] ablegreen: i'm trying to find a reason to use it [06:54] Gekz: why use a spoon [06:55] Gekz: all cutlery is used for eating, yet we have like 50 different spoons for different meals [06:55] andrew12: why are we on irc on christmas eve? [06:55] andrew12: 'TIS THE SEASON [06:55] Shaunzie: cause we are geekly [06:55] Gekz: I already had sex today [06:55] Gekz: so I'm waiting for a christmas party [06:55] Gekz: also I am making a font [06:55] Shaunzie: having sex with yourself doesn't count -.- [06:55] Gekz: fonts don't afraid of anything nor care for our concept of time. [06:55] Gekz: Shaunzie: u jell [06:55] Gekz: y [06:55] a_meteorite: I will be here christmas day too [06:55] ablegreen: gekz: i'm looking for specific reasons to use node.js [06:56] a_meteorite: having nothing better to do does that [06:56] Gekz: ablegreen: on a serious note, I'm yet to find a single reason [06:56] Gekz: I've used node.js, but I can't see any reason to use it other than "I am a webdev that knows only javascript and some PHP, might as well" [06:56] Gekz: I have enough languages under my belt to not need node.js, and I'm yet to find a situation where it would make my life easier [06:57] Gekz: I haven't had to make anything highly asynchronous yet [06:57] a_meteorite: Gekz: then you're wrong. I know C++, Python, Ruby, Java, PHP. [06:57] Gekz: but if I do, I'll probably use node [06:57] context: Anyone know any good books for CouchDB or MongoDB that would be "similar" to the Riak Handbook. [06:57] a_meteorite: node.js makes not only async a joy, but IO/networking a bigger joy. [06:57] Shaunzie: lets not start comparing cock sizes… >.> [06:57] Gekz: a_meteorite: I don't do either of those things very often [06:58] Gekz: the networking part, I'm yet to see evidence that it's easier than say, Python [06:58] Gekz: I'm willing to be proven wrong [06:58] context: Have sex or WebDAV? [06:58] Gekz: context: almost always sex. [06:58] context: Web dev* [06:58] context: Shame. [06:58] Gekz: webdev can wait [06:58] Gekz: people die. [06:58] a_meteorite: *WebDAV [06:58] jesusabdullah: I always think, "webDAVE" [06:59] fangel has joined the channel [06:59] Shaunzie: isn't webdav dead? ._. [06:59] Gekz: wapdev [06:59] jesusabdullah: dead? Naw [06:59] jesusabdullah: just not popular [06:59] Gekz: a_meteorite: can you show me an example of IO and networking in node [06:59] Shaunzie: isn't that the something as dead? lol [07:00] e6nian has joined the channel [07:00] jesusabdullah: naw [07:00] jesusabdullah: My media player shares jams over the lan using webdav [07:00] captain_morgan has joined the channel [07:00] wedtm has joined the channel [07:01] Shaunzie: I'd just use spotify ._. [07:01] Gekz: one of the main things stopping me from using node.js that I recall is that it doesnt have very nice support for XML documents [07:01] a_meteorite: Gekz: our start-up is making an IRC bouncing service using node http://chat.bzfx.net/ [07:01] a_meteorite: lots of IO and networking [07:01] jesusabdullah: Gekz: look at isaac's sax parser [07:01] jesusabdullah: I hear it's pretty boss [07:01] Gekz: I don't need to parse [07:01] Gekz: I need to build. [07:02] jesusabdullah: That doesn't sound so hard [07:02] andrew12: parsing sax.. kinky [07:02] a_meteorite: there are plenty of other apps and libraries out there that are predisposed to node [07:02] Gekz: it's harder than other languages [07:02] Gekz: a_meteorite: I dont see the code here [07:02] andrew12: hard sax? [07:02] Knifed_ has joined the channel [07:02] a_meteorite: Gekz: yeah, you won't [07:02] jesusabdullah: Basically, it's like this: Node doesn't have a big standard library, which means you're gonna have to go to userspace to get your xml tools [07:02] context: MongoDB the definitive guide. Anyone read that? [07:02] jesusabdullah: but that's okay! [07:02] p6 has joined the channel [07:02] jesusabdullah: Because chances are there is at least one half-decent library out there that'll do what you want [07:02] Gekz: then your link is useless to me, because I'm asking for an example of the _code_ [07:02] Gekz: I care little for your product [07:03] a_meteorite: Gekz: you asked for an example, next time be more specific :) [07:03] dwhittle has joined the channel [07:03] jesusabdullah: What're you looking for an example of? ooc [07:03] Gekz: we're in a coding channel on freenode. [07:03] context: Wait. Stop feeding the trolls [07:03] Gekz: jesusabdullah: io and networking code in javascript [07:04] a_meteorite: Gekz: there are plenty of other apps and libraries out there that are predisposed to node [07:04] context: Gekz: Then why are you here? [07:04] Gekz: context: clearly discussing coding [07:04] ablegreen: what's the difference between asynchronous IO and multithreading? [07:04] jesusabdullah: Gekz: There are a lot of people that come here asking for examples of "real world" usage as proof that node isn't some really obscure thing that makes itself sound less so [07:04] jesusabdullah: Does that make sense? [07:04] context: It sounds like you want proof of why you should use node [07:04] Gekz: jesusabdullah: I'm not asking for that reason though [07:04] Gekz: I'm trying to see how it's meant to be used [07:04] context: If you dont want to use it then dont use it [07:04] jesusabdullah: Gekz: But oyu can see why someone would think maybe you did? [07:04] Gekz: yes, I can [07:05] jesusabdullah: groovy [07:05] Gekz: I'm not asking for the why [07:05] Gekz: I'm asking for the how [07:05] a_meteorite: express framework [07:05] a_meteorite: mongodb drivers [07:05] Gekz: I want to know how using node can improve my workflow [07:05] Gekz: syntactically. [07:05] a_meteorite: there are lots of cool libs out there [07:05] paera has joined the channel [07:05] a_meteorite: google is your friend [07:05] context: Gekz: Why not just play with it? Spend this weekend and write something in it and see if you like it? [07:05] jesusabdullah: How about a full open-source app, guys? [07:06] Shaunzie: @ablegreen http://tinyurl.com/76eoejk [07:06] Gekz: context: I've written multiple programs in it actually [07:06] context: We can argue for the rest of our lives why node is good or bad. In the end it's still a bunch of retards arguing instead of getting anything done [07:06] Gekz: I'm not arguing about whether it's good or bad you douchebag [07:06] Gekz: I think it is good. [07:06] ablegreen: we're not arguing why node is bad... [07:06] Gekz: I just haven't seen how I can use it properly. [07:06] jesusabdullah: Gekz: fwiw here's a little app I wrote https://github.com/jesusabdullah/DNSlookup/blob/master/bin/server [07:06] ablegreen: we're wondering why it's being used.... [07:07] jesusabdullah: Gekz: live site at http://dnslookup.nodejitsu.com [07:07] Gekz: jesusabdullah: github didn't want to syntax highlight [07:07] Gekz: this gives me a sad [07:07] context: Gekz: Then the best way for that is to probably look at other libraries and open source apps [07:07] Gekz: context: which is why I'm here, asking for _good_ examples [07:07] jesusabdullah: Gekz: It's cause there's no extension [07:07] a_meteorite: Gekz: https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node [07:07] Gekz: jesusabdullah: just noticed. [07:07] jesusabdullah: Yeah [07:08] a_meteorite: There you go. Lots of cool stuff there. [07:08] jesusabdullah: I'm trying to think of some REALLY COOL, polished OSS project that uses node [07:08] Gekz: / Trim off http:// cause I think people will do this [07:08] Gekz: haha [07:08] jesusabdullah: s/project/webapp [07:08] Gekz: they always bloody do jesusabdullah [07:08] jesusabdullah: there are TONS of libraries [07:08] Gekz: or add extra slashes [07:08] jesusabdullah: tons and tons and tons [07:08] context: Gekz: If you didn't get any right away than no one knows of any off the top of their head or don't want to google for you [07:08] lwille has joined the channel [07:08] jesusabdullah: but a lot of the apps are closed source because, I mean, that's our business model y'know? [07:08] Gekz: context: your vagina is so very loud, relax. [07:08] ablegreen: that site doesn't explain why they are using nodejs as opposed to alternatives a_meteorite [07:08] jesusabdullah: But yeah, I'd suggest looking at express [07:08] context: Heh [07:09] jesusabdullah: Whoa now, no trollin' [07:09] jesusabdullah: keep it civil [07:09] jesusabdullah: ಠ_ಠ [07:09] context: Express. And railways.js [07:09] a_meteorite: ablegreen: that's not the point of the list [07:09] jesusabdullah: Oh, Gekz, check out this project: https://github.com/hookio [07:09] jesusabdullah: Each of the hooks are self-contained servers :) [07:09] context: Gekz: I think the best way to improve your workflow is to find libs that jive with your style of workflow. And combining them [07:10] Gekz: ooh event emitter [07:10] context: Express is the most obvious choice. Find an MVC framework you like. A messaging lib. Etc etc [07:10] Gekz: this amuses me [07:12] Gekz: I'm not looking for a web framework. [07:12] ablegreen: why use express when you have asp.net, django, etc. [07:12] context: Hi. Examples. [07:12] Gekz: ablegreen: well, asp.net is commercial. [07:12] ablegreen: oh right. mvc's in javascript [07:12] ablegreen: i get it [07:13] Shaunzie: o.o [07:13] a_meteorite: ablegreen: javascript on the server, the same language as the client, can be quite advantageous [07:13] Gekz: so I guess the thing that node does better than most alternatives is its handling of async [07:13] ablegreen: agreed [07:13] sreeix has joined the channel [07:14] context: Im so confused right now. [07:14] AAA_awright: What are the "alternatives"? [07:14] context: You have written a few apps in node and haven't read the API docs enough to know what event emitter is? [07:14] idiotic_idioms has joined the channel [07:15] AAA_awright: PHP isn't just a scripting language, it also ships with a large set of libraries for using the filesystem and whatnot. Javascript has no such functions, Node.js provides those. [07:15] Shaunzie: I've written a couple apps in node and have read more than 20% of the documentation :D [07:15] AAA_awright: READ ALL THE DOCUMENTATION [07:15] context: ablegreen: why use django or asp.net when you have grails and rails and j2ee and seaside and catalyst and etc etc etc [07:15] a_meteorite: Shaunzie: 20%? Um [07:15] Shaunzie: PHP = annoying pos >.> [07:15] a_meteorite: The docs is not that much, read it all [07:15] jesusabdullah: 20% is a start guys, don't be hatin' [07:15] ablegreen: context: because i like python more than java? [07:16] a_meteorite: Really, the docs are a work of art [07:16] idiotic__ has joined the channel [07:16] context: Ive read docs I dont think I will ever touch any time soon [07:16] Shaunzie: @ a_meteorite I know :). I read what I need when I need it [07:16] jesusabdullah: It's not like I've sat down and read them straight through [07:16] jesusabdullah: that's hard to do, man! [07:16] ablegreen: aaa_awright: thank you, you just provided the clearest answer here so far [07:16] context: ablegreen: I was trying to point out the total absurdity of our comment. [07:16] a_meteorite: I should just make AAA_awright my spokesman [07:16] a_meteorite: Oh, wait, he already kinda is [07:16] AAA_awright: :p [07:17] AAA_awright: I do the best with what I have [07:17] ablegreen: context: nobody pointed out that they like javascript better [07:17] context: Shaunzie: Im the same way. Tough I peruse when im bored. Never know what you might find. ;) [07:17] a_meteorite: disclaimer: me and him work together :P [07:17] AAA_awright: I have http://nodejs.org/docs/latest/api/all.html#crypto.createCipher open right now, that link should be bookmarked: [07:17] AAA_awright: http://nodejs.org/docs/latest/api/all.html [07:17] Shaunzie: @context I do too :3 [07:17] context: Who cares what we like? This isnt #whatlanguageisbestest [07:18] JaKWaC has joined the channel [07:18] Shaunzie: @AAA_awright that would be part of the 20% that I read lol [07:18] ablegreen: context: it's not about which language is the best... [07:18] context: ... This pointing out how absurd your comment is. [07:18] context: Anyway. [07:18] Shaunzie: I hate crypto though… it kinda annoys [07:18] a_meteorite: Is crypto ever fun? [07:19] a_meteorite: Probably only for Bruce Scheiner [07:19] Shaunzie: I like it in PHP, as much as I hate PHP… sha1('blah'); [07:20] AAA_awright: It's a nice compromise between performance and simplicity [07:20] context: this is the h [07:20] context: oops [07:21] context: attempting to use the split keyboard on iPad [07:21] AAA_awright: It's only three times as complex... var c=require('crypto').createHash('sha512'); c.update(data); (repeat to append data)... c.hash() [07:22] andrew12: crypto isn't suppoed to be fun [07:22] andrew12: supposed8 [07:22] andrew12: supposed* [07:22] andrew12: .-. [07:23] addisonj has joined the channel [07:23] admc has joined the channel [07:23] idefine has joined the channel [07:23] Shaunzie: yah… I just create a utility function to sha1 [07:23] context: what andrew12 said. haha [07:23] context: so no recommendations for books on mongo or couch? [07:24] AAA_awright: Shaunzie: You can do that, it'll be a three line function, but you lose the ability to stream data into the hash function. You want to stream data instead of buffer it if at all possible to save memory. [07:24] ablegreen: context: check amazon? [07:25] context: yeah I was looking at reviews. figured id see if anyone has read any. I like hearing from people. :x [07:25] Shaunzie: O.o [07:25] jyp_cloud has joined the channel [07:25] andrew12: yaaaaay netsplit [07:25] Shaunzie: wow… that was epic [07:25] context: wow. irccloud? [07:25] AAA_awright: LOL [07:25] context: iPad doesn't show host names. [07:25] AAA_awright: a_meteorite: Note of things not to let happen [07:26] andrew12: this client doesn't either [07:26] sriley has joined the channel [07:26] ablegreen: context: download the ebooks illegally, skim each one, then decide which to buy?? [07:26] a_meteorite: AAA_awright: I don't see how we can prevent netsplits? [07:26] Shaunzie: or just get a safari books account? [07:26] AAA_awright: a_meteorite: That wasn't a netsplit. [07:26] a_meteorite: Oh, irccloud. Hah. [07:26] context: Shaunzie: but I heart my kindle [07:26] andrew12: ablegreen: ... didn't you just say earlier that torrents are for amateurs? and now you're telling someone to download something illegally? [07:27] chunhao_ has joined the channel [07:27] andrew12: irccloud? [07:27] strax has joined the channel [07:27] context: nm [07:27] garann has joined the channel [07:27] Shaunzie: you can use safari books with kindle [07:27] context: wool [07:27] ablegreen: andrew12: i meant torrents are for amateurs compared to other types of illegal downloading... [07:27] context: wooooo. I might have to check that out Shaunzie. thnx [07:27] terite has joined the channel [07:28] a_meteorite: andrew12: our soon-to-be competitor, who won't really be able to compete :) [07:28] pusewicz_ has joined the channel [07:28] AAA_awright: It'll be epic. [07:29] iaincarsberg has joined the channel [07:29] heatxsink has joined the channel [07:29] andrew12: is yours going to have a web ui too? [07:29] andrew12: oh wait, that's exaclty what it said [07:29] andrew12: hm [07:29] boehm has joined the channel [07:29] andrew12: is it also going to have a bnc sort of function.. so i can connect from my client like normal? [07:29] AAA_awright: Epic. [07:29] AAA_awright: andrew12: All the things you could ever want to do with Node.js [07:30] andrew12: I can run my own node.js on your server?! :p [07:30] context: a_meteorite: will it disco mass amounts of people off irc at minimum once a week? [07:30] romainhuet has joined the channel [07:30] tylergillies has joined the channel [07:30] AAA_awright: Not epic failures, which you just saw. [07:30] Hosh has joined the channel [07:30] lmatteis has joined the channel [07:30] mattly has joined the channel [07:31] a_meteorite: context: no [07:31] andrew12: oh that's what that was [07:31] andrew12: now i understand [07:31] andrew12: heh [07:31] salazr_ has joined the channel [07:31] TheDeveloper has joined the channel [07:31] metadaddy has joined the channel [07:31] context: a_meteorite: URL? I wouldn't mind checking it out. I used irccloud for a short bit. I can't knowingly use a product that annoys people as much as it annoys me watching part/join floods [07:31] andrew12: context: then turn them off :P [07:31] a_meteorite: context: beta coming in the next few weeks, http://chat.bzfx.net/ [07:31] matjas has joined the channel [07:31] matjas has joined the channel [07:31] matjas has joined the channel [07:32] ablegreen: what does an irc bouncer do [07:32] necromancer has joined the channel [07:32] TheMoonMaster has joined the channel [07:32] a_meteorite: we have some special sauce to prevent what you just saw, not sure if we should say... [07:32] cognominal has joined the channel [07:32] andrew12: is it called scaling? [07:32] a_meteorite: yeah [07:32] a_meteorite: and it involves a proxy on reliable servers [07:32] andrew12: the secret ingredient [07:32] AAA_awright: It also filets [07:32] a_meteorite: many filets [07:33] andrew12: I need some sort of node project to work on [07:33] JKarsrud has joined the channel [07:33] context: a_meteorite: you should bump me to the top of the list. ;) [07:33] andrew12: because i'm like OMG NODE IS SOO COOL but I can't come up with anything to do with it without giving up pretty quickly [07:34] Shaunzie: @andrew12 port NLTP to node? :D :D :D [07:34] context: ablegreen: google and Wikipedia can tell you what an irc bouncer id [07:34] a_meteorite: context: there's few enough people signed up that anyone signing up now will be in the first beta round :) [07:34] context: is* [07:34] Shaunzie: and by NLTP i mean NLTK... [07:34] andrew12: HTCPCP? [07:34] context: pcp huh? [07:34] andrew12: Hyper Text Coffee Pot Control Protocol [07:34] jayniz has joined the channel [07:34] jayniz has joined the channel [07:34] jayniz has joined the channel [07:34] wilmoore_ has joined the channel [07:35] context: does that have the LSD extension? [07:35] andrew12: ACTION sighs [07:35] Gekz: Shaunzie: NLTK does a lot of stupid shit [07:35] Gekz: its Punkt tokeniser uses pickles. [07:36] Gekz: so if you try to use the same tokeniser between versions, it breaks hard. [07:36] beawesomeinstead has joined the channel [07:36] Shaunzie: it does a lot of things good :D [07:36] Gekz: sif not dynamically rebuild it [07:36] lupomontero has joined the channel [07:36] svnlto has joined the channel [07:36] Shaunzie: or at least good enough that I don't mind using it >.> [07:36] Gekz: yes, I had to port parts of it from Python 2 to Python 3. [07:36] Gekz: I know more about it than I wish I did. [07:36] fcuk has joined the channel [07:36] Gekz: it would be nice to have that in javascript [07:36] Shaunzie: O.O [07:36] andrew12: let's write a Terraria or a Minecraft server in node [07:37] Gekz: lolno [07:37] Shaunzie: @andrew12 lets not and say we did :D [07:37] andrew12: if only that worked [07:37] a_meteorite: I started to embark on re-writing the bzflag server in node [07:37] Shaunzie: lol :3 [07:37] a_meteorite: I lost motivation since bzflag was dying... [07:37] alessioalex has joined the channel [07:37] andrew12: someone needs to convert this to node: https://developer.valvesoftware.com/wiki/Steam_Condenser [07:37] _th_n has joined the channel [07:37] Gekz: now I go to some boring christmas party [07:37] Gekz: yay not drinking [07:38] Outsider__ has joined the channel [07:38] micrypt has joined the channel [07:38] Shaunzie: ew… wtf.... [07:38] Shaunzie: why no drinking? [07:38] Shaunzie: booze is one of the best parts of xmas... [07:38] a_meteorite: I'm missing out [07:38] Gekz: can't drink and drive [07:38] Shaunzie: yes you can [07:38] Gekz: not on my license I can't. [07:38] Shaunzie: you can't do it well [07:39] Shaunzie: but you can still do it… technically >.> [07:39] ablegreen: bzflag is awesome [07:39] Gekz: anyway, goodbye [07:39] a_meteorite: ablegreen: it is [07:39] a_meteorite: maybe I will pick up enough motivation to work on it again [07:39] a_meteorite: I have many gripes with bzfs [07:39] ablegreen: did you look at the source code [07:40] a_meteorite: oh, very much so [07:40] confoocious has joined the channel [07:40] confoocious has joined the channel [07:40] a_meteorite: we reverse engineered the porotocol [07:40] ablegreen: i don't understand any of it [07:40] ablegreen: but then i don't know c++ [07:40] a_meteorite: the protocol isn't documented at all, it's just implemented [07:40] a_meteorite: well bzflag's C++ is horrible C++ [07:40] Shaunzie: O.o [07:40] a_meteorite: please never ever use it as an example of good C++ [07:40] Shaunzie: oh wait… I Read that wrong [07:40] Shaunzie: nvm >.> [07:41] Cromulent has joined the channel [07:41] AAA_awright: Also there's more profitable stuff than BZFlag [07:41] a_meteorite: yeah [07:41] AAA_awright: Not to say there's no BZFlag in my future [07:41] admc has joined the channel [07:41] a_meteorite: we got started thanks to bzflag [07:41] thelifelessone has joined the channel [07:41] AAA_awright: I haven't played in a while... [07:41] thelifelessone: anyone know a good tutorial for express.js? [07:42] thelifelessone: (I've already had a look at the documentation) [07:42] andrew12: http://expressjs.com/guide.html [07:42] dubenstein has joined the channel [07:42] thelifelessone: andrew12: I've already had a look at that. [07:43] clarkfischer: Anyone heard of this TAJS thing? Static type analysis for JS. [07:43] andrew12: there's also a channel called #express [07:43] clarkfischer: thelifelessone: that's pretty thorough, what are you having trouble with? [07:43] Shaunzie: https://github.com/visionmedia/express/tree/master/examples [07:43] Shaunzie: those suck less [07:43] Shaunzie: example code > tutorials :D [07:43] thelifelessone: clarkfischer: I'm kinda hoping to find something on building large applications with it. [07:44] clarkfischer: Well, what specifically? [07:44] thelifelessone: clarkfischer: what kind of applications? [07:44] clarkfischer: "something" on building large applications with it? [07:44] clarkfischer: I mean, what's something? [07:44] thelifelessone: a tutorial / guide / checklist, whatever. [07:45] thelifelessone: Just something to tell me what *not* to do. [07:45] clarkfischer: er…. [07:45] clarkfischer: e [07:45] clarkfischer: ns [07:45] clarkfischer: u [07:45] clarkfischer: re [07:45] thelifelessone: I'm still kinda new to node.js, and I've never built anything large-scale before. [07:45] clarkfischer: whoa, sorry, client err. Ensure asynchronicity, spawn multiple processes [07:46] thelifelessone: ... yeah... [07:46] Fabryz has joined the channel [07:46] dscape has joined the channel [07:46] ncb000gt has joined the channel [07:46] clarkfischer: Well, what are your concerns? [07:46] thelifelessone: that I'll do something wrong and it'll perform poorly. [07:47] clarkfischer: I mean, it's sort of the same as all web development [07:47] thelifelessone: or that I'll incorrectly use the module, leading to security issues. [07:47] madhums has joined the channel [07:47] Shaunzie: fear-less, code-more [07:47] jesusabdullah: I'd worry more about keeping a large project organized [07:47] dubenstein has joined the channel [07:47] thelifelessone: I'm used to client-side JavaScript, *maybe* a quick PHP script on the backend. [07:47] thelifelessone: and it's always been personal stuff, never production [07:47] clarkfischer: Make sure that you perform expensive operations as sparingly as possible [07:48] thelifelessone: Yeah. [07:48] clarkfischer: Testing is nice [07:48] Shaunzie: thelifelessone: just learn as you go [07:48] clarkfischer: Some tools measure performance as well [07:48] jesusabdullah: Don't worry about perf until you need to [07:48] jesusabdullah: srsly [07:48] Shaunzie: mistakes are useful cause you can learn from them [07:48] thelifelessone: I see. [07:48] clarkfischer: You can always refactor [07:49] Shaunzie: the paralysis of analysis is a big problem.. If you spend too much time worrying about what not to do, you won't do anything. [07:53] Shaunzie: I love how I spend more time reading code rather than reading documentation … #fail -.- [07:54] ryanseddon has joined the channel [07:54] andrew12: me too [07:54] andrew12: i hate reading code -.- [07:54] tanepiper has joined the channel [07:54] andrew12: especially javascript [07:54] tomh has joined the channel [07:54] Nomon__ has joined the channel [07:55] robb1e_ has joined the channel [07:55] tiglionabbit has joined the channel [07:55] Raynos has joined the channel [07:55] Shaunzie: I don't hate reading code, I just hate reading code when the documentation has all the information i need ._. [07:55] context: write coffee script [07:55] andrew12: context: not everybody codes in coffeescript [07:55] context: I hate reading code written by people that don't care about what they were doing [07:55] Shaunzie: wait why write coffee script when you can write in java script? [07:55] andrew12: me too [07:56] andrew12: because javascript is hard to read... [07:56] andrew12: well.. it's hard to figure out what someone was trying to do [07:56] Shaunzie: yah… javascript programers tend to suck and documenting their code….. [07:57] andrew12: that's not what i'm saying [07:57] andrew12: when you see function blarg() { [07:57] andrew12: it's not obvious that that is a constructor, and that you're supposed to do new blarg() rather than just blarg() [07:58] deoxxa: i don't want to generalise here, but everyone who makes generalisations is an idiot and should be disregarded [07:58] andrew12: for example [07:58] andrew12: ok, i'm out for the night... :P [07:58] FG has joined the channel [07:58] Shaunzie: Well you can just make that clear in documentation [07:59] Shaunzie: * This is a constructor [07:59] andrew12: Shaunzie: for someone elses code?... [07:59] andrew12: coffeescript actually has a class thing [07:59] andrew12: so you can do [07:59] andrew12: class blarg [07:59] andrew12: constructor: -> [07:59] andrew12: whatever [07:59] andrew12: ACTION gone [07:59] thelifelessone has left the channel [08:00] Shaunzie: That's cool, but I just choose to document well :-/ [08:00] deoxxa: what's that? you want to use a variable name you've already used in coffeescript? LOL NO [08:00] liar has joined the channel [08:00] luke`_ has joined the channel [08:00] deoxxa: programmers are too stupid to be given that ability apparently [08:01] andrew12: there's a lot of hate in this channel [08:01] Shaunzie: its cause it's xmas [08:01] Shaunzie: ish [08:01] deoxxa: stressful times [08:01] deoxxa: i wonder if there's some kind of fireworks or something in tokyo this evening [08:01] context: like I said. write coffee script. half your complaints just disappeared [08:01] deoxxa: i could use some good old fashioned explosions [08:02] clarkfischer: context: what about debugging? [08:02] Knifed__ has joined the channel [08:02] deoxxa: who needs debugging when you have meaningful whitespace?! [08:02] context: what about it? do it [08:03] wmage has joined the channel [08:03] context: deoxxa: heh. yeah I hate the white space stuff. (not that I don't like indenting. im a freak about it.) I enjoy seeing a closing } myself. BUT I find coffee saves a bit of time over vanilla js [08:04] zodiak: yeah, but debugging in coffeescript is.. jst .. painful [08:04] context: and code is easier to read [08:04] FG has joined the channel [08:04] deoxxa: coffeescript is actually pretty cool in places [08:04] ralph has joined the channel [08:04] deoxxa: list comprehension is a welcome addition [08:04] clarkfischer: coffeescript has some nice features [08:04] jeremyselier has joined the channel [08:04] daleharvey has joined the channel [08:04] clarkfischer: but it just seems weirdly synthetic to be coding in a language atop javascript [08:04] context: zodiak. I haven't had much problems yet though im still learning shit. I haven't heard it being that hard to debug though [08:04] clarkfischer: when i know javascript [08:04] screenm0nkey has joined the channel [08:04] owenb has joined the channel [08:04] strmpnk has joined the channel [08:04] deoxxa: if it was a little more opt-out-able i'd be all over it in a heartbeat [08:04] duncanbeevers has joined the channel [08:05] context: opt out able? [08:05] deoxxa: like if i could just use parts of it [08:05] deoxxa: but that's not entirely practical [08:05] clarkfischer: debugging is only complicated when node tells you there's an error on line 25 (js file) and the actual error is on like 19 (coffee file) [08:06] deoxxa: though in saying that, the various js functional libraries provide pretty much all the cool stuff i'd want to nab from coffeescript [08:07] context: deoxxa: seen kaffiene [08:08] context: ? I meant [08:08] ircdearia has joined the channel [08:08] context: deoxxa: it adds a bit to js and still allows js code too [08:09] disappearedng has joined the channel [08:10] disappearedng: hey guys quick question [08:10] disappearedng: any one familiar with integrating node.js with rails? [08:10] deoxxa: i've integrated pancakes with a diesel engine before [08:10] deoxxa: is that similar? [08:10] bogomips2_ has joined the channel [08:10] MrMaksimize has joined the channel [08:10] context: ... [08:12] Shaunzie: wait… why would you want to integrate node and rails? [08:12] clarkfischer: I agree with Shaunzie [08:12] deoxxa: jya jyaaaan [08:13] clarkfischer: And I'm not even sure of a case where that would be applicable [08:13] disappearedng: well cause I am a rails developer [08:13] disappearedng: and I want to do a little project that invovles a lot of real time stuff [08:13] zodiak: disappearedng, yes, basically, build a json API in node and asset pipeline/html/etc in rails [08:13] disappearedng: and fyi rails is not exactly good for this [08:13] disappearedng: oh ok cool yeah that was what I was asking then [08:13] deoxxa: s/this$/anything/ [08:14] zodiak: disappearedng, totally do-able, and the API scales better than the rails side ;) [08:14] Shaunzie: node.js was birthed out of Ryhan Dahl's annoyance/hatred for Ruby and Rails… [08:14] mowen has joined the channel [08:14] disappearedng: ok then where does the business logic go then? [08:14] zodiak: disappearedng, into the node side [08:14] dubenstein has joined the channel [08:14] disappearedng: does it go to node.js or stays inside rails? like don't I need an engine for something like that then? [08:15] deoxxa: actually, at work we have a PHP/node setup [08:15] Shaunzie: wait… huh? [08:15] zodiak: engine ? no, the rails does (almost) everything across the API [08:15] blissdev has joined the channel [08:15] deoxxa: PHP does our CMS crap, serves the HTML for the node application and communicates with a session API for the node application [08:15] whoops has joined the channel [08:15] olegp has joined the channel [08:15] zodiak: deoxxa, sounds similiar to our setup :) [08:16] BruNeX has joined the channel [08:16] disappearedng: Oh sorry I get it [08:16] nym has joined the channel [08:16] bradwright has joined the channel [08:16] Shaunzie: @deoxxa I hate PHP with a deafening passion. [08:16] disappearedng: so all the business logic stays inside node but rails just serves the page [08:16] deoxxa: Shaunzie: you and me both, man [08:16] Shaunzie: mostly cause of the Zend Framework .... [08:16] zodiak: disappearedng, yup, and all the assets etc. [08:16] deoxxa: actually, Symfony2 makes PHP not so bad [08:16] disappearedng: best book about node.js/ [08:16] Shaunzie: The Zend Framework robbed me of my innocence… I've been violated ._. [08:16] zodiak: deoxxa, kinda like saying pencillin makes the clap 'not so bad' [08:17] deoxxa: and Shaunzie, ZF as a framework is awful, but as a collection of libraries it's at times kind of useful [08:17] deoxxa: zodiak: what, scratching is kind of satisfying sometimes [08:17] deoxxa: you know like when you have a mosquito bite or something [08:17] zodiak: disappearedng, there are a lot of free books out there.. it's pretty easy to pickup if you know jquery/prototype [08:18] zodiak: deoxxa, sounds like a plan .. the scratching part that is ;) [08:18] ablegreen has left the channel [08:18] deoxxa: heh [08:18] zodiak: php is.. jst.. yeah. not my cup of tea (sorry :) [08:18] disappearedng: yeah I am a pro in jquery [08:18] Shaunzie: @disappearedng there aren't a lot of books for node yet. It's still too new, but there are a lot of books that explain how to develop using Javascript. [08:18] Shaunzie: like the internals of Javascript how shit works and such [08:19] dubenstein has joined the channel [08:19] deoxxa: disappearedng: i started by messing about with the built-in libraries for HTTP doing silly web scraping stuff, it took about half an hour of playing with it before i "got" how it worked (having done nearly no JS before) [08:20] disappearedng: yeah actually I wanted to go node for a long time [08:20] disappearedng: now that I am doing real time app [08:20] deoxxa: disappearedng: so you might want to just put aside a couple of hours on a weekend (or holidays that you hopefully have!) to play with it [08:20] disappearedng: yup this holiday =) [08:20] deoxxa: \o/ [08:20] disappearedng: I want to launch by 1st Jan [08:21] Shaunzie: O.o [08:21] deoxxa: ha, ambitious [08:21] deoxxa: not impossible though [08:21] deoxxa: best of luck [08:21] disappearedng: nah otherwise once I start work I am gonna be really tight on time [08:21] Shaunzie: ok… can someone tell me why the ejs package for express didn't include all of the helper functions? [08:22] andrew12: because ejs sucks [08:22] andrew12: ACTION ducks [08:22] Shaunzie: it's better than jade :D [08:22] Shaunzie: that's all that matters to me :3 [08:22] andrew12: mustache ftw [08:22] Emmanuel has joined the channel [08:22] Shaunzie: bleh apples and oranges [08:23] andrew12: ... not really [08:23] braoru has joined the channel [08:23] gkatsev: you can compare apples and oranges. you just need to use a spectrometer. [08:23] andrew12: lol [08:23] Shaunzie: @gkatsev +1 [08:23] deoxxa: i'm wanting to play with that hogan.js from twitter [08:23] gkatsev: :D [08:23] deoxxa: it look pretty neat [08:23] gkatsev: hoag is mustache plus stuff [08:23] deoxxa: i like the idea of standalone compiled templates [08:23] gkatsev: hogan [08:23] deoxxa: yeah [08:25] dubenstein has joined the channel [08:26] pksunkara_ has joined the channel [08:27] fcoury has joined the channel [08:27] sveisvei has joined the channel [08:27] justicefries has joined the channel [08:28] deoxxa: i'm using dust at the moment, but it's dead in the water [08:28] deoxxa: i kind of miss having filters and some of the stuff from twig [08:30] tuhoojabotti: I'm using dust but it's broken [08:30] deoxxa: oh? how so? [08:30] tuhoojabotti: won't run on 0.6.x [08:30] deoxxa: oh really [08:30] deoxxa: that's a worry [08:30] tuhoojabotti: It seems like a simple problem [08:30] tuhoojabotti: but the repo is unactive [08:30] gigafied has joined the channel [08:30] tuhoojabotti: I think I'm going to switch to hogan and mustache [08:31] deoxxa: is it that require.paths thing? [08:31] tuhoojabotti: hmm [08:31] deoxxa: there's a pull request open that fixes that iirc [08:31] tuhoojabotti: Yeah [08:31] deoxxa: but yeah, the project is stalled [08:32] tuhoojabotti: Last commit from June [08:32] tuhoojabotti: But there could be an active fork [08:33] tuhoojabotti: such as: https://github.com/stanislavfeldman/dust.js [08:33] Kifah has joined the channel [08:38] Dmitrijus has joined the channel [08:38] cognominal has joined the channel [08:39] endangeredmassa has joined the channel [08:40] cmwelsh has joined the channel [08:40] mmalecki has joined the channel [08:40] JasonSmith has joined the channel [08:40] kazupon has joined the channel [08:40] remysharp has joined the channel [08:43] thalll has joined the channel [08:43] snearch has joined the channel [08:44] stagas has joined the channel [08:51] mnutt has joined the channel [08:52] Hamms has joined the channel [08:53] stagas has joined the channel [08:54] `3rdEden has joined the channel [08:55] k1ttty has joined the channel [08:58] josephg has joined the channel [08:59] josephg: woo - chipmunk-js (chipmunk physics library) is in npm [08:59] josephg: :D [08:59] josephg: ACTION bets its really broken [08:59] josephg: Compared to the original C code, its 3-7 times slower. [09:00] josephg: does anyone know how I should be efficiently implementing my 2d vector library? [09:00] HT has joined the channel [09:01] josephg: currently every vector is on the heap, and in a 5 second benchmark test I'm allocating 20 million vectors. [09:01] aliem has joined the channel [09:03] mattgifford has joined the channel [09:07] megalomix has joined the channel [09:07] megalomix: hello everybody [09:07] megalomix: Merry Christmas :) [09:08] Shaunzie: merry merries and shit! :D [09:09] mmalecki: merry code! [09:09] megalomix: :) [09:09] mmalecki: time to do some random hacks [09:10] mmalecki: so, who wants vi-like navigation on reddit? [09:10] Emmanuel has joined the channel [09:10] megalomix: guys, is it possible to "merge" an object? I Mean....... if I have an object like obj = {'a':1, 'b':2} can I do merge(obj, {'a':10} ) and it sobstitute the 'a' value without setting obj.a = 10 obj.b = 20 etc etc [09:11] mmalecki: megalomix: yeah, there are modules doing that [09:11] mmalecki: nothing built-in [09:11] megalomix: ah ok [09:11] megalomix: thanks [09:11] dubenstein has joined the channel [09:15] megalomix: guys something like: http://api.jquery.com/jQuery.extend/ [09:15] Shaunzie: I use underscore.js for that [09:15] megalomix: or maybe it only extend without modify already existing properties [09:16] Shaunzie: http://documentcloud.github.com/underscore/#extend [09:16] dubenste1n has joined the channel [09:17] megalomix: Shaunzie, btw for node there is not [09:17] megalomix: i need to develop a simpl emodule [09:22] jimt has joined the channel [09:22] herbySk has joined the channel [09:22] dubenstein has joined the channel [09:23] context: or ignore Shaunzie advice. [09:24] context: megalomix: he is saying underscore.js has an extend method. you could use that and not write your own [09:24] context: night all. [09:25] JaKWaC has joined the channel [09:27] dubenstein has joined the channel [09:29] skylamer` has joined the channel [09:30] dwhittle has joined the channel [09:30] jbpros has joined the channel [09:30] hackband has joined the channel [09:31] tuhoojabotti: Hmm, I wonder what I'm doing wrong because hogan returns me a string with numbers :D [09:32] gigafied has joined the channel [09:32] aisoftware has joined the channel [09:32] liar has joined the channel [09:35] githogori has joined the channel [09:37] jbpros has joined the channel [09:37] d0k has joined the channel [09:39] hackband has joined the channel [09:47] slaskis has joined the channel [09:48] dr0id has joined the channel [09:50] fly-away has joined the channel [09:53] CarterL has joined the channel [09:57] k1ttty has joined the channel [09:57] mowen has left the channel [09:58] mc_greeny has joined the channel [10:01] shiawuen has joined the channel [10:02] jbpros has joined the channel [10:03] slaskis has joined the channel [10:04] Frippe has joined the channel [10:05] mara has joined the channel [10:06] slaskis_ has joined the channel [10:07] shockie has joined the channel [10:07] tuhoojabotti: asd [10:07] jbpros has joined the channel [10:09] dubenstein has joined the channel [10:09] gigafied has joined the channel [10:12] mike5w3c_ has joined the channel [10:15] shinuza has joined the channel [10:17] lzskiss has joined the channel [10:19] luke` has joined the channel [10:20] V1 has joined the channel [10:22] kaine has joined the channel [10:25] __doc__ has joined the channel [10:26] michaelhartau has joined the channel [10:27] robhawkes has joined the channel [10:28] stagas has joined the channel [10:28] isufy has joined the channel [10:32] stagas has joined the channel [10:37] fangel has joined the channel [10:45] josh-k has joined the channel [10:45] aliem has joined the channel [10:47] stagas has joined the channel [10:48] liar has joined the channel [10:50] jetienne has joined the channel [10:52] jomoho has joined the channel [10:53] chilts: 7 mins to Christmas :) [10:53] a_meteorite: chilts: where in the world are you? [10:54] michaelhartau has joined the channel [10:55] jetienne_ has joined the channel [10:55] chilts: a_meteorite: New Zealand [10:55] chilts: we're almost the first ... Fiji and a few south pacific islands beat us [10:55] a_meteorite: ah, well merry christmas. 3am christmas eve here still. [10:55] chilts: heh, thanks :) [10:56] chilts: you're up late! [10:56] a_meteorite: yes [10:56] a_meteorite: I'm a night owl [10:56] chilts: Merry Christmas to everyone here (for each and every one of the next 24hrs) :) [10:56] a_meteorite: :) [11:01] dwhittle has joined the channel [11:01] dubenstein has joined the channel [11:02] neilk_ has joined the channel [11:02] pandeiro has joined the channel [11:02] stagas has joined the channel [11:04] satyr has joined the channel [11:06] dubenstein has joined the channel [11:10] christophsturm has joined the channel [11:11] ixti has joined the channel [11:11] dubenstein has joined the channel [11:12] k1ttty has joined the channel [11:12] k1ttty has joined the channel [11:13] admc has joined the channel [11:15] hipsters_ has joined the channel [11:16] dubenstein has joined the channel [11:16] dubenste1n has joined the channel [11:19] lzskiss has joined the channel [11:20] pandeiro has joined the channel [11:21] pyparadigm has joined the channel [11:21] dubenstein has joined the channel [11:21] dubenste1n has joined the channel [11:23] xy has joined the channel [11:23] rendar has joined the channel [11:25] nassosdim has joined the channel [11:26] Morkel has joined the channel [11:26] dubenstein has joined the channel [11:29] Squeese has joined the channel [11:30] dubenstein has joined the channel [11:31] jaitaiwan has joined the channel [11:32] dubenstein has joined the channel [11:35] TheJH has joined the channel [11:35] mraleph has joined the channel [11:35] dubenste1n has joined the channel [11:36] pandeiro has joined the channel [11:37] LeMike has joined the channel [11:37] dubenstein has joined the channel [11:37] stagas has joined the channel [11:40] dubenste1n has joined the channel [11:42] stagas has joined the channel [11:43] d0k_ has joined the channel [11:49] tomyan has joined the channel [11:49] cognominal_ has joined the channel [11:53] koo0 has joined the channel [11:54] liar has joined the channel [11:57] dubenstein has joined the channel [11:57] koo3 has joined the channel [11:58] caioketo: Someone got a good example how to convert byte array to string (or array) so I can change byte protocol to string protocol in node.js? [11:59] deoxxa: caioketo: (new Buffer(bytes)).toString() might work? [11:59] deoxxa: there's probably a better way though, wait for someone to shoot me down [11:59] deoxxa: ACTION waits patiently [12:00] caioketo: but, it will make the byte array into a string... [12:00] josephg: .. console.log((function(){return arguments.callee.caller.toString()})()) [12:00] catb0t: Exception: ReferenceError: console is not defined [12:00] caioketo: but how can I get in the client js the value of each char? [12:00] josephg: .. (function(){return arguments.callee.caller.toString()})() [12:00] catb0t: Exception: TypeError: Cannot call method 'toString' of null [12:01] deoxxa: > how to convert byte array to string [12:01] deoxxa: > but, it will make the byte array into a string [12:01] deoxxa: isn't that what you wanted? [12:02] chrisumbel has joined the channel [12:02] lwille has joined the channel [12:02] andrew12: .. new Buffer([1, 2, 3, 4]).toString() [12:02] catb0t: Exception: ReferenceError: Buffer is not defined [12:02] andrew12: fine [12:03] deoxxa: .. Buffer [12:03] catb0t: Exception: ReferenceError: Buffer is not defined [12:03] deoxxa: huh :/ [12:03] andrew12: if Buffer is not defined then why would that work [12:03] andrew12: heh [12:03] deoxxa: was just wondering! [12:06] jbpros has joined the channel [12:08] deoxxa: this will also work, but is a bit silly: [12:08] deoxxa: .. [97,98,99].map(function(b) { return String.fromCharCode(b); }).join("") [12:08] catb0t: "abc" [12:08] Cromulent has joined the channel [12:10] satyr has joined the channel [12:16] synkro has joined the channel [12:17] stagas has joined the channel [12:22] tcurdt has joined the channel [12:25] jxie_ has joined the channel [12:28] SamuraiJack has joined the channel [12:28] mansoor has joined the channel [12:29] maushu has joined the channel [12:31] caioketo: but i need to convert, int16, int32 too [12:32] caioketo: the byte array is not just string (ascII).... [12:35] criswell has joined the channel [12:39] shinuza has joined the channel [12:42] V1 has joined the channel [12:52] butu5 has joined the channel [12:54] butu5: npm install redis is breaking? npmv1.1.0-alpha-2 and nodev0.6.3 [12:56] Morkel has joined the channel [12:57] FG_ has joined the channel [12:57] jetienne has joined the channel [12:59] maushu has joined the channel [13:03] fairwinds has joined the channel [13:03] kyonsalt has joined the channel [13:08] spolu has joined the channel [13:08] churp has joined the channel [13:10] butu5 has left the channel [13:10] `3rdEden has joined the channel [13:11] pig has joined the channel [13:12] k1ttty has joined the channel [13:12] koo5 has joined the channel [13:14] piscisaureus_ has joined the channel [13:17] piscisaureus__ has joined the channel [13:22] RLa has joined the channel [13:26] Druid_ has joined the channel [13:33] swhit has joined the channel [13:33] IrishGringo has joined the channel [13:36] eeemsi_: did someone try to replicate isaacs registry from isaacs.iriscouch.com without ending up in endless {"error":"json_encode","reason":"{bad_term,{nocatch,{invalid_json,<<>>}}}"} messages? [13:40] eastc has joined the channel [13:46] jxie has joined the channel [13:48] subbyyy has joined the channel [13:49] shinuza has joined the channel [13:49] mikl has joined the channel [13:50] towski has joined the channel [13:51] caolanm has joined the channel [13:52] nickp has joined the channel [13:53] Sorella has joined the channel [13:55] jomoho2 has joined the channel [13:56] braoru has joined the channel [13:56] purr has joined the channel [13:57] purr has joined the channel [14:01] dubenstein has joined the channel [14:04] stagas has joined the channel [14:04] tmedema has joined the channel [14:04] tmedema: Is there a JSDom alternative for node 0.6.6 on windows 7? [14:10] shinuza has joined the channel [14:13] stagas has joined the channel [14:14] mikedeboer has joined the channel [14:17] Druide_ has joined the channel [14:23] k1ttty has joined the channel [14:23] stagas has joined the channel [14:26] FG has joined the channel [14:26] shiawuen has joined the channel [14:26] pickels_ has joined the channel [14:41] lollybot has joined the channel [14:43] stagas has joined the channel [14:44] fomatin has joined the channel [14:44] _unary has joined the channel [14:46] madhums has joined the channel [14:46] yorick has joined the channel [14:49] malkomalko has joined the channel [14:51] c4milo has joined the channel [14:53] stagas has joined the channel [14:53] chrisumbel has joined the channel [14:57] MrMaksimize has joined the channel [14:59] shanez has joined the channel [15:00] megalomix has joined the channel [15:00] megalomix: hello [15:00] megalomix: someone use EJS ? [15:00] Lingerance: Does EJS have a slightly longer name? [15:01] megalomix: i have a problem.... i need to set "checked" in a checkbox if it were set previously but i can do it inline with EJS [15:01] megalomix: Lingerance, no, it is a template engine [15:01] megalomix: (express.js) [15:01] Lingerance: Ah (asking because I work with ExtJS) [15:02] megalomix: i should do: <% if (cond) { %> <%= "checked" %> <% } %> [15:02] megalomix: it is not very very good [15:02] ger^kallisti has joined the channel [15:03] heavysixer has joined the channel [15:03] Lingerance: checked="checked" BTW [15:03] megalomix: yes [15:05] Lingerance: Eitherway, if I had an array of checkboxes to generate, I'd have the checked meta-data in said list: [{value: 'x', name: 'foo'}, {value: 'y', name: 'bar', checked: true}, {value: 'z', name: 'baz', checked: true}] like so. [15:05] spolu has joined the channel [15:06] Lingerance: (Not sure if you're already doing that with "cond") [15:06] k1ttty has joined the channel [15:07] megalomix: ok i need to check [15:07] megalomix: Lingerance, one question.... [15:07] megalomix: how to check if a variable exists? I mean if i do: if(something) { ... } [15:07] megalomix: but i didn't decleare "something" [15:07] megalomix: i get an error [15:07] megalomix: how to prevent it ? [15:07] Lingerance: 'undefined' == typeof something [15:08] kurtzhong has joined the channel [15:08] megalomix: ok [15:10] deedubs has joined the channel [15:11] V1 has joined the channel [15:12] siddhion has joined the channel [15:14] shinuza has joined the channel [15:15] siddhion: hello. i just tried installing node by `git clone https://github.com/joyent/node.git`, then `cd node`, then `./configure` and then `make && make install` but I got the error mkdir -p /usr/local/include/node/ [15:15] siddhion: mkdir: cannot create directory `/usr/local/include/node/': Permission denied make: *** [install] Error 1`. Then I went ahead and added `sudo` to every command and still I get this same error. How come? [15:17] Lingerance: siddhion: make && sudo make install [15:17] Lingerance: ACTION is too tired to explain why [15:17] siddhion: Lingerance, ok [15:18] neurodrone has joined the channel [15:18] siddhion: Lingerance, yeah that did the job. : ) [15:19] siddhion: Lingerance, thanks! [15:21] pilgo: How can I get the NODE_ENV value from a node app? [15:21] Lingerance: process.env.NODE_ENV [15:22] chrisumbel has joined the channel [15:23] chrisumbel_ has joined the channel [15:24] storrgie has joined the channel [15:26] amigojapan has joined the channel [15:28] jetienne has joined the channel [15:29] cognominal has joined the channel [15:29] MrMaksimize has joined the channel [15:32] aaronmcadam has joined the channel [15:35] salva has joined the channel [15:36] pilgo: Lingerance: Thanks! [15:37] pilgo: I'm using a shared host and doing the following raises and eaddrinuse exception: app.listen 80, "x.x.x.x" [15:37] pilgo: Can I attach the process to a domain instead? [15:38] stagas has joined the channel [15:39] Lingerance: No. You bind to an IP/port pair [15:39] Lingerance: I would suggest getting a VPS instead [15:41] fomatin has joined the channel [15:44] swhit: you probably can't bind port 80 as non-root [15:44] Lingerance: That too [15:44] thax has joined the channel [15:44] lzskiss has joined the channel [15:45] chrisumbel has joined the channel [15:46] megalomix: can I optimize it? https://gist.github.com/1517578 [15:48] Lingerance: You can't loop? [15:49] pilgo: Lingerance: I already have a VPS but have another domain running from a cherokee webserver [15:50] megalomix: Lingerance, I can but i have to set differenti title, different classes and check if it selected or not (page.tab) [15:50] Cromulent has joined the channel [15:52] megalomix: Lingerance, https://gist.github.com/1517587 someting like that? [15:53] siddhion: when I do define a variable like `var a = 5;` in the node REPL, the next line that is printed reads `undefined`. Then when I do `a` I get `5` on the next line. Finally, when I do `.clear` and then do `a` I still get `5`. How come I am seeing `undefined`? And why does `.clear` not clear the context like it should? [15:54] Lingerance: o = [{class: 'first', url: '/', text: 'aaa'}, {class: 'second', url: 'bbb.html', text: 'bbb'}, {class: 'third', url: 'ccc.html', text: 'ccc'}, {class: 'fourth', url: 'ddd.html', text: 'ddd'}] [15:54] Lingerance: [15:54] Lingerance: megalomix: ^ [15:54] tbranyen: siddhion: that happens in all javascript repls [15:55] megalomix: yes [15:55] megalomix: i try [15:55] swhit: pilgo: if cherokee is running on port 80 you won't be able to bind it from node too [15:55] siddhion: tbranyen, the printing of `undefined`? or `.clear` not clearing the context like it should? [15:55] tbranyen: siddhion: clear() should never clear context [15:55] tbranyen: and the printing of undefined happens everywhere, yes [15:55] pilgo: swhit: Right, right, so I'm just trying to figure out a way to do it [15:56] swhit: pilgo: run node on a different port? or proxy the connection (nginx, haproxy)? [15:56] kriszyp has joined the channel [15:56] pilgo: swhit: I'm thinking it may be easier to run node on a different port [15:57] siddhion: tbranyen, ok because I am following a tutorial video where the tutor does `.clear` and then tries to see if the variable still exists and it does not. He gets a ReferenceError [15:57] tbranyen: .clear on what? [15:57] siddhion: tbranyen, he is using node v0.4.5 [15:57] tbranyen: oh [15:58] siddhion: tbranyen, when you are in the REPL, you define a variable and then run `.clear` to clear that variable from memory. [15:58] siddhion: tbranyen, that is what he did and it worked. i don't know why it is not working for me. [15:59] jomoho has joined the channel [15:59] Lingerance: File a BR [15:59] siddhion: Lingerance, what is a BR? [15:59] tbranyen: siddhion: yeah its probably what Lingerance said, its a bug [15:59] siddhion: bug report [15:59] siddhion: ok [16:00] Lingerance: Bug Report [16:00] CarterL has joined the channel [16:00] siddhion: thanks [16:00] siddhion: ok will do [16:00] siddhion: the best way is at Github right? [16:00] siddhion: i guess so, i see 437 issues there now. looks like its the right place [16:02] skm has joined the channel [16:03] megalomix: Lingerance, perfect!! : [16:03] megalomix: :) [16:03] megalomix: !!! [16:06] mikl has joined the channel [16:09] FG has joined the channel [16:11] synkro has joined the channel [16:13] toabi has joined the channel [16:14] tomgallacher has joined the channel [16:18] toabi has left the channel [16:19] mike5w3c has joined the channel [16:21] siddhion has joined the channel [16:22] siddhion: hi again, I have 0.7.0-pre installed. does 'pre' mean it is unstable? [16:23] ant0no has joined the channel [16:23] andrew12: it means prerelease [16:24] `3rdEden has joined the channel [16:24] siddhion: andrew12, ahh thought so. hmm. so this would not be the best way to learn node.js i take it. [16:25] siddhion: been running into bug after bug [16:25] siddhion: actually jsut two bugs with the REPL [16:25] andrew12: what are the bugs? [16:26] andrew12: siddhion: also, what OS are you on? [16:26] V1 has joined the channel [16:26] siddhion: andrew12, first bug has to do with .clear not working https://github.com/joyent/node/issues/2413 I am on Ubuntu. [16:26] siddhion: I have to state that in the BR [16:27] siddhion: ok its updated now. [16:28] `3rdEden has joined the channel [16:28] cognominal has joined the channel [16:29] andrew12: I would wget http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz && tar xzf node-*.tar.gz && cd node-* && ./configure && make && make install [16:29] andrew12: that'll give you 0.6.6 [16:29] mattgifford has joined the channel [16:31] siddhion: andrew12, thanks. now should I uninstall 0.7.0-pre first? [16:31] andrew12: probably [16:31] andrew12: you'll have to run that bit as root on ubuntu probably [16:31] andrew12: or at least do sudo make install instead of make install [16:32] kyonsalt: I always got 500 TypeError "" has no method'call' for haml on node.js. But I can check the haml render by node command line. [16:33] sharkbird has joined the channel [16:36] tomgallacher has joined the channel [16:36] Lingerance: siddhion: To be fair, .clear doesn't work in 0.6.0 either, also any minor number that's odd means it's unstable/dev. [16:38] cody-- has joined the channel [16:39] flip_digits has joined the channel [16:40] siddhion: Lingerance, ok so the next stable release will be 0.8.0 then [16:41] siddhion: Lingerance, so are you saying it is not worth downgrading? [16:43] Rob has joined the channel [16:43] chrisumbel has joined the channel [16:43] Lingerance: No, I'm saying the bug is present in 0.6.0, and you should be on an even numbered minor version. [16:43] NetRoY has joined the channel [16:43] louissmit has joined the channel [16:44] Lingerance: I suggest you use the latest stable, which is 0.6.6 [16:45] siddhion: Lingerance, ok I just downloaded the .tar.gz . How do you suggest I uninstall 0.7.0-pre ? [16:46] shapeshed has joined the channel [16:46] rwaldron has joined the channel [16:48] piscisaureus_ has joined the channel [16:48] wumpus__ has joined the channel [16:49] Lingerance: You can install over it, just delete the directories /usr/include/node and /usr/lib/node/wafadmin [16:51] wumpus__: hello guys [16:52] siddhion: Lingerance, thanks. [16:52] siddhion: wumpus__, hi [16:55] siddhion: Lingerance, I dont have those directories but when I do `which node` I get /usr/local/bin/node so I guess that is the one that's got to go. Any other dirs I should remove? [16:55] larsschenk has joined the channel [16:55] Lingerance: siddhion: Just add /local after /usr on the two I listed [16:55] larsschenk has left the channel [16:58] stagas has joined the channel [16:58] JakeyChan has joined the channel [16:58] ninjatux2k has joined the channel [16:59] siddhion: Lingerance, I am only finding a 'node_modules' dir under /usr/local/lib which contains 'npm'. I can't find the wafadmin dir [17:00] Lingerance: Don't worry then [17:00] wumpus__: im trying to code something like "trivia quiz" using socket.io but i have no idea on how to find out which socket got the correct solution first [17:00] siddhion: Lingerance, cool. all done. thanks : ) [17:00] wumpus__: if two client send the correct solution at the exact same time what happen? [17:01] mansoor: the world ends [17:02] probst has joined the channel [17:04] shiawuen has joined the channel [17:05] herbySk has joined the channel [17:05] `3rdEden: wumpus__ you are not multi threaded [17:05] `3rdEden: so that is not an issue [17:05] `3rdEden: one message will always be processed before the other [17:06] wumpus__: so using a flag is enought? [17:07] probst: Hi guys! I am on a RedHat system (and RedHat beginner) trying to install node.js. Running ./configure; gmake … gives me termio.h is missing. Any ideas? Thanks! https://gist.github.com/069316993d64aee13e74 [17:07] `3rdEden: yes [17:07] Lingerance: probst: Use a package [17:07] probst: My system neither has yum or apt installed [17:07] Lingerance: rpm [17:07] probst: Lingerance: cool [17:08] probst: Lingerance: all rpm's I can find are version 0.4 while node is at .6? [17:09] wumpus__: i mean if i set a flag to "1" on the first message, the next message will find it with value "1" even if the two messages are very close? [17:09] wumpus__: or even if they are triggered at the same time? [17:09] TimTim has joined the channel [17:09] probst: Lingerance: sorry, found more rpm's. [17:09] captain_morgan has joined the channel [17:10] Lingerance: wumpus__: There's no multi-threading, so no race conditions [17:10] Lingerance: One event will only fire after the last was processed [17:11] wumpus__: awsome [17:11] wumpus__: thank you Lingerance [17:11] marcello3d has joined the channel [17:11] FG has joined the channel [17:13] louissmit has joined the channel [17:13] RLa: how is one supposed to use os module? i want to check if i'm running on windows [17:14] teadict: readin' the API? [17:14] RLa: hm, i figured it out, i need var os = require('os'); [17:14] monokrome has joined the channel [17:14] shinuza has joined the channel [17:14] marcello3d: anyone know the url to that live markdown preview node.js webapp ? [17:15] teadict: http://nodejs.org/docs/latest/api/os.html#os.platform [17:15] RLa: previously i tried just require('os') and var os = require('os').os; [17:15] teadict: .platform [17:16] RLa: also, anyone know more complex examples about using jake? [17:16] teadict: what's jake? [17:16] teadict: oh [17:16] RLa: i'm currently investigating way to replace my ant build scripts [17:17] teadict: as in make, CLEVER [17:17] RLa: i have lot of non-java projects where ant does not make much sense [17:17] RLa: i really like javascript tho [17:18] RLa: i can use javascript in ant too, with rhino, but i'm sick of tools complexity [17:19] teadict: rhinos are complex, yes [17:19] RLa: i would need to rewrite some of my custom ant tasks but i hope it will not be hard [17:21] marshall has joined the channel [17:24] TheMoonMaster has joined the channel [17:24] jbpros has joined the channel [17:25] SteveDekorte has joined the channel [17:27] _baton_ has joined the channel [17:29] hipster__ has joined the channel [17:30] dilvie has joined the channel [17:30] subbyyy has joined the channel [17:30] booo has joined the channel [17:30] booo: is there a way to set the header field servername globally in express? [17:31] crypto425 has joined the channel [17:31] booo: something like app.setHeader("ServerName", "fooo")? [17:31] trodrigues: hi guys. i was trying to install a package that seems to have a dependency on glob 2.1, which is the latest version, but it doesn't seem to find it. it fails with this output: https://gist.github.com/1517860 [17:31] trodrigues: could this be a problem with the npm register not being aware about this package version? [17:32] FG has joined the channel [17:32] trodrigues: oh and here's the package.json from the package i'm trying to install https://github.com/busterjs/buster-glob/blob/master/package.json [17:32] RLa: teadict, any idea what are possible results of os.platform()? [17:32] RLa: manual does not say it [17:34] hij1nx has joined the channel [17:35] Rob has joined the channel [17:35] MUILTR has joined the channel [17:37] buu has joined the channel [17:37] trodrigues: ok, ignore that. seems to be related to the fact that i was using node 0.4.12 [17:41] maletor has joined the channel [17:41] lzskiss has joined the channel [17:42] V1 has joined the channel [17:43] stagas has joined the channel [17:43] `3rdEden has joined the channel [17:43] maletor_ has joined the channel [17:44] jakehow has joined the channel [17:44] abraxas has joined the channel [17:45] koo3 has joined the channel [17:47] captain_morgan has joined the channel [17:47] cjroebuck has joined the channel [17:48] Shaunzie has joined the channel [17:49] marcello3d: my buffalo vs mongodb-native benchmark results are ridiculous [17:49] brianseeders has joined the channel [17:50] Cromulent has joined the channel [17:50] Lingerance: In what way? [17:51] nickadeemus2002 has joined the channel [17:52] nickadeemus2002 has left the channel [17:52] RLa: in javascript, '\n' will create newline or string containing \ and n? [17:52] defunctzombie has joined the channel [17:52] addisonj has joined the channel [17:52] RLa: i know that double quotes will do that but single quotes as well? [17:52] systemfault: escape the \ ? [17:52] systemfault: js> "lol\\nlol"; [17:52] purr: systemfault: (string) 'lol\\nlol' [17:52] systemfault: Hmm [17:53] systemfault: The bot here must escape those already :) [17:53] ugur has joined the channel [17:53] ugur: hi [17:53] ugur: hi [17:54] RLa: good idea, i can test on repl [17:54] ger^kallisti has joined the channel [17:54] RLa: no, i cannot [17:54] ugur: hop [17:55] RLa: > 'a\nb' [17:55] RLa: 'a\nb' [17:55] marcello3d: Lingerance: just a lot faster than I expected considering no optimization [17:55] Lingerance: console.log('a\nb') [17:55] Lingerance: marcello3d: Which is faster? [17:55] marcello3d: buffalo [17:55] Lingerance: ORLY? [17:55] marcello3d: cleaning up the output and I'll post a gist [17:55] marcello3d: and the benchmarks [17:55] Lingerance: Is it one of those ORM-crap things? [17:56] RLa: Lingerance, any idea why it puts undefined on the last line [17:56] Lingerance: If not I'll probably look into switching to it. [17:56] marcello3d: no [17:56] Lingerance: RLa: because console.log() doesn't return anthing [17:56] RLa: oh, i get it [17:56] marcello3d: it's an alternative to mongodb-native [17:56] Lingerance: Excellent [17:56] marcello3d: but right now I'm just benchmarking the raw serialization/deserialization [17:56] RLa: heh, i'm still not getting doc-oriented database [17:57] RLa: isn't there very few apps where you can use them [17:57] Lingerance: ACTION uses them to store files [17:58] marcello3d: Lingerance: look here: https://github.com/marcello3d/node-mongolian [17:58] marcello3d: Lingerance: the master branch is still using mongodb-native for the serialization/deserialization, but all the connection and command logic is written from scratch [17:58] Lingerance: Oh, cool [17:59] marcello3d: Lingerance: the buffalo branch is using my new serialization/deserialization code from https://github.com/marcello3d/node-buffalo [17:59] Lingerance: ReplicaSet support? [17:59] marcello3d: yes [17:59] marcello3d: main thing it doesn't have yet is connection pooling [18:00] marcello3d: which also means no things like slaveOk requests yet [18:00] Lingerance: You need a connection pool to handle being disconnected from the master right? [18:01] Lingerance: Right now that's an issue I'm having [18:01] marcello3d: no [18:01] marcello3d: connection is pool is for performance [18:01] marcello3d: because the server uses single threads per connection [18:03] marcello3d: it'll all come eventually, but no promises are being made :) [18:03] Lingerance: So you have auto-reconnect working then? [18:04] marcello3d: yes [18:04] Lingerance: Sold. [18:04] marcello3d: it generally connects on demand, but it will reconnect if it sees a connection loss [18:04] marcello3d: though there are lots of weird edges cases around that, so it'd be nice to have a proper test framework to ensure it's working right [18:04] fomatin: hey guys, does anyone here use mixpanel? [18:06] marcello3d: Lingerance: honestly the main advantage of mongolian should be the API [18:06] _unary has joined the channel [18:07] koo3 has joined the channel [18:07] Lingerance: I've worked with enough painful APIs that so long as the feature is documented somewhere I'm fine with it. [18:13] draginx has joined the channel [18:13] draginx: How can I server files statically with nginx in a nodejs app? [18:13] jesusabdullah: http://www.reddit.com/r/Python/comments/np1z9/coffeescript_for_python_programmers/ [18:13] jesusabdullah: amusing ^^ [18:13] Lingerance: draginx: Just make nginx serve them [18:14] jesusabdullah: "Why coffeescript?" "Cause javascript is more confusing than python" [18:14] draginx: Lingerance: let me give it a try :D [18:14] jesusabdullah: and I'm like, "man if you think javascript is confusing you'll definitely want to steer clear of coffee" [18:14] marcello3d: alright, pushed the benchmark: https://github.com/marcello3d/node-buffalo/commit/2f0d25d3af3bd54110ade620be1a5dd77d3c05ba [18:14] marcello3d: results here: https://gist.github.com/68ebca1985f0a5b991af [18:14] jesusabdullah: It's not like cs makes "this" go away [18:19] marcello3d: oh snap, I'm using an old version of mongodb-native [18:19] marcello3d: I should re-run the tests [18:20] Leemp has joined the channel [18:21] JaKWaC has joined the channel [18:21] draginx: Lingerance: http://pastie.org/private/gad4rxug5cqbujnrspnmiq any idea what could be wrong? [18:23] Lingerance: draginx: No idea, my /static/ is only two lines though [18:24] Lingerance: index index.html index.htm; [18:24] Lingerance: root /src/http/ [18:24] p1d has joined the channel [18:25] mikedeboer has joined the channel [18:25] draginx: Lingerance: is ur root inside the /static/ block? [18:25] Lingerance: Yes [18:26] Lingerance: Also mine is just location /static/ { [18:26] Lingerance: I don't know what the ~ does [18:27] dshaw_ has joined the channel [18:29] probst has joined the channel [18:29] koo3 has joined the channel [18:31] tomgallacher has joined the channel [18:34] patcito has joined the channel [18:34] tomgallacher has left the channel [18:34] marcello3d: https://gist.github.com/68ebca1985f0a5b991af updated with mongodb@0.9.7-2-5, but it doesn't seem to change things [18:34] hipsters_ has joined the channel [18:38] confoocious has joined the channel [18:38] confoocious has joined the channel [18:39] sh1mmer has joined the channel [18:39] FG has joined the channel [18:41] pauls1 has joined the channel [18:41] probst has left the channel [18:43] draginx: is supervisor a replacement for forever? [18:44] systemfault: Then I must be "Supervisor Alone" then... [18:44] gavin_hu_ has joined the channel [18:44] FG has joined the channel [18:45] draginx: lol [18:48] MUILTR has joined the channel [18:54] andrew12: hah [18:54] TimTim has joined the channel [18:57] blueadept has joined the channel [18:57] blueadept has joined the channel [18:58] blueadept: does a flash hd use less power than a regular drive? [18:58] blueadept: i would think so [18:58] blueadept: interested in the ratio though [18:58] andrew12: completely OT [18:58] blueadept: yeah i know [18:58] andrew12: plus i have no idea [18:58] blueadept: will take to #hardware [18:59] andrew12: I didn't know there was a #hardware [18:59] blueadept: me either [18:59] blueadept: hah [19:00] CarterL has joined the channel [19:02] criswell has joined the channel [19:04] `3rdEden has joined the channel [19:04] devongovett has joined the channel [19:05] jbrokc has joined the channel [19:10] chrisumbel_ has joined the channel [19:11] TheJH has joined the channel [19:12] blueadept: who here is going to the node summit? [19:12] tomgallacher has joined the channel [19:13] koo0 has joined the channel [19:13] shinuza has joined the channel [19:15] Shaunzie: I'd love to… but I doubt my boss would send me ._. [19:17] `3rdEden: blueadept me ;o [19:18] blueadept: I want to go personally, but my company is a rails operation. I want to try to loop into my work somehow, eventually we're going to build an api which I want to do in node.js [19:18] blueadept: `3rdEden: awesome, I'm going to pull the trigger on a ticket before the end of the year [19:19] josh-k has joined the channel [19:20] blueadept: I have a really good feeling about node.js, I can't miss up talking with some of the best in the field [19:20] TimTim has joined the channel [19:21] agnat_ has joined the channel [19:25] blueadept: `3rdEden: you live in the bay area? [19:25] `3rdEden: bugfree i'm from the netherlands [19:25] `3rdEden: o [19:25] `3rdEden: wrong tab [19:25] `3rdEden: blueadept i'm from the Netherlands :p [19:25] mast3rof01 has joined the channel [19:26] blueadept: wow, that's going to be a long flight [19:27] Shaunzie: ZOMG! O.o [19:27] `3rdEden: blueadept 11h flight [19:28] `3rdEden: but well worth it :D [19:28] blueadept: very cool to hear [19:29] JaKWaC has joined the channel [19:29] blueadept: btw, huge Armin van Buuren fan [19:29] blueadept: listening to him right now [19:31] NetRoY has joined the channel [19:33] captain_morgan has joined the channel [19:33] Brandon_R has joined the channel [19:33] Brandon_R: hey guys [19:33] willwhite has joined the channel [19:33] Brandon_R: what do you guys think about java? [19:34] Brandon_R: is it cool? [19:34] systemfault: I like it. [19:34] systemfault: But... Are you talking about Java or Javascript^ [19:34] systemfault: ? [19:35] blueadept: Java is a good language [19:35] blueadept: Scala would probably be the better choice though for any current or future projects [19:35] systemfault: Meh... [19:35] systemfault: It takes more than a few nice toys to make a language good. [19:36] blueadept: well its good in that it's versatile [19:36] systemfault: That's my problem with it... It's too versatile [19:36] blueadept: ^ [19:36] blueadept: thats the downside [19:36] blueadept: if you want to do really simple web apps, its huge overkill [19:37] caioketo: hi there [19:37] blueadept: if you want to build something to spec with 1 million options [19:37] pandeiro has joined the channel [19:37] blueadept: Java is for you! [19:38] pandeiro has joined the channel [19:38] Brandon_R: is java fast? [19:39] insin: define fast [19:39] blueadept: it can be [19:39] piscisaureus_ has joined the channel [19:39] systemfault: Brandon_R: Java is the fastest you can get without going native. [19:40] systemfault: (C/C++) [19:40] defunctzombie has joined the channel [19:40] Brandon_R: fast as in it can execute over 9000 lines of code per second [19:40] insin: I used the Play framework to build a proof of concept webapp in wotk and I didn't even feel like killing myself until I got to the template layer - that's astounding for a Java framework, in my experience [19:40] Sorella: What do you guys mean? Java is the language of the future! It'll get closures in 2013, no other language has those... right? [19:40] insin: s/wotk/work/ [19:40] malkomalko has joined the channel [19:41] Sorella: omgoverninethousand. [19:41] Sorella: And sure, Java is beast executing code. [19:41] Sorella: (though you can also execute 9000 lines of brainfuck code per second) [19:42] caioketo: java is faster then c#? [19:43] systemfault: Probably... but C# as a language is nicer [19:43] Brandon_R: doesn't clojure have clojures? [19:43] caioketo: i love c# [19:43] caioketo: =D [19:43] Brandon_R: c# is native on windows am i right? [19:43] Brandon_R: c# is beautiful [19:43] systemfault: no... vm [19:43] systemfault: like java [19:44] insin: this would be dynamite if it wasn't so obvious... [19:45] Sorella: CLR > JVM. Discuss. [19:45] Brandon_R: clr is closer to being native than a vm [19:45] mmalecki: node.js, discuss. [19:45] blueadept: ^ [19:45] Shaunzie: +1 [19:45] mast3rof0 has joined the channel [19:45] blueadept: anyone use the cluster functionality a lot in the new 0.6 branch? [19:45] Brandon_R: i do [19:46] Brandon_R: i don't see why not to use it [19:46] Shaunzie: I'm still using v0.4.12 ._. [19:46] Shaunzie: I should really upgrade >.> [19:46] blueadept: what's it like? if a process hits 100%, it just clicks over data to a new process automatically? [19:47] subbyyy has joined the channel [19:47] blueadept: because that's the bring up someone always makes, "oh one thread, what happens when?X" [19:47] monokrom_ has joined the channel [19:48] blueadept: been at the new job, so haven't been able to dive into the new node upgrades, but next month i'll be trailblazing after wook to take another stab at the startup dream [19:48] liar has joined the channel [19:48] blueadept: probably wont need the cluster functionality though, since native async works fine for the type of stuff i do. no cpu heavy shiz [19:49] blueadept: although, later on this year I want to get into more CPU heavy stuff, so clustering may be a lifesave [19:51] Brandon_R: hey i have a question [19:51] jacobolus has joined the channel [19:51] Brandon_R: any new language i read about they keep saying it's not good for computational heavy apps [19:51] Brandon_R: node.js, erlang, etc [19:51] Brandon_R: what language IS good for mathematical apps? [19:52] systemfault: c++ and fortran [19:52] gkatsev: python is pretty good [19:52] gkatsev: the math.py and science.py are pretty complete [19:52] insin: assembly, magnets [19:53] Shaunzie: O.o erlang is new? [19:53] gkatsev: clearly you need to write directly in machine code [19:53] Brandon_R: so [19:53] Shaunzie: erlang is old… like 20 years old or something like that... [19:53] Brandon_R: write the code in c++ and write a binder to it in node? [19:53] gkatsev: you can do that [19:53] gkatsev: a native plugin for node [19:54] Brandon_R: i always wonder [19:54] Shaunzie: http://www.erlang.org/course/history.html [19:54] Brandon_R: why does these new languages not perform well in computational apps? [19:54] Brandon_R: aren't they written on top of c/c++ so the performance should be the same [19:54] Brandon_R: plus the time it takes to intepret it [19:55] Brandon_R: interpret [19:55] jacobolu_ has joined the channel [19:55] mmalecki: Brandon_R: it doesn't work like that, really [19:55] mmalecki: there are many factors, like JIT [19:56] Brandon_R: i need to get a foundation in theoretical foundations more [19:56] Shaunzie: O.o [19:56] Brandon_R: like data structures, and big o notations etc [19:56] gkatsev: wikipedia is your friend [19:56] blueadept` has joined the channel [19:56] Shaunzie: gkatsev: +1 [19:57] Brandon_R: youtube has plenty of videos on this [19:57] Brandon_R: from random people to professors at mit and stanford explaining it lol [19:57] Brandon_R: anyone here "real" computer scientists? [19:57] Brandon_R: like knows the theorye tc [19:58] jaitaiwan has joined the channel [19:59] insin: I have a Diploma in the Theorye of "Real" Computer Science right here [19:59] gkatsev: I'm going to graduate with a BS in CS next year. [19:59] Shaunzie: Meh… I dropped out after taking all the fun classes [19:59] gkatsev: heh [19:59] Shaunzie: Who needs school when you have iTunesU [19:59] Shaunzie: wooo that rhymed O.o [19:59] blueadept`: ^ [19:59] Brandon_R: lol [20:00] blueadept`: CS is very distributed these days [20:00] Brandon_R: it's weird because you take the boring classes first [20:00] zezikaro has left the channel [20:00] Shaunzie: I'm making a tshirt stat! [20:00] Shaunzie: @Brandon_R not always. My intro to CS classes were pretty fun cause the professor was awesome [20:00] blueadept`: in what other industry can you watch youtube videos and practically become a full fledged expert in your field? [20:00] gkatsev: same [20:01] blueadept`: its sort of the only industry you can do it in [20:01] Shaunzie: @blueadept` porn? [20:01] blueadept`: ^ [20:01] blueadept`: that as well [20:01] blueadept`: good point [20:01] Shaunzie: :D [20:01] gkatsev: stanford's online courses are great. and MIT is going to do MITx [20:02] Shaunzie: yah in a few years you'll probably be able to just take all your degree on line, and pay a university to give you a degree x3 I'll wait for that [20:02] blueadept`: Brandon_R: you doing a lot of machine learning, statistical analysis type stuff? [20:02] Brandon_R: nope [20:02] Brandon_R: physics/mathematics [20:02] blueadept`: hardcore [20:02] Brandon_R: i just come on here because i like node [20:02] bbenvie: ever seen iTunesU [20:02] boltR has joined the channel [20:02] Brandon_R: i don't have itunes [20:02] bbenvie: well it's free [20:02] bbenvie: as is iTunesU [20:02] Brandon_R: mit opensourceware is pretty cool [20:03] bbenvie: you can already get the education you would in a university you just don't get the degree [20:03] bbenvie: yeah it's basically all those types of thigns collected in one spot [20:03] bbenvie: standford, mit, etc. [20:03] Brandon_R: if i put mit/stanford/harvard online material together, i could get a real good foundation in physics before i go to college [20:03] bbenvie: you have to pay the cash to get the piece of paper [20:03] bbenvie: but you can learn all you want [20:03] blueadept`: well degrees are a social singal, it will be interesting to see what other social signals emerge from the internet as we go forward [20:03] Brandon_R: yep [20:03] Brandon_R: with khancademy etc [20:03] blueadept`: stackoverflow is a good signal for techical adeptness [20:03] Brandon_R: this will have to change [20:04] blueadept`: khan as well [20:04] Shaunzie: Yah… I know of a guy who managed to skip his undergrad and get a PHD… luck bastard >.< [20:04] sdwrage has joined the channel [20:04] Brandon_R: maybe make schools more research based and learn material at home [20:04] Shaunzie: I still don't know how he did it ._. [20:04] bbenvie: yeah I consider github and stackoverflow as the more important bits I include in a resume [20:04] Brandon_R: research + tests in school, learn the stuff at home [20:04] blueadept`: github go me my current job [20:04] blueadept`: no hr bs, just right to the source [20:04] Brandon_R: what university did u go to? [20:05] blueadept`: me? [20:05] blueadept`: didn't graduate here buddy [20:05] blueadept`: i got not time for debt [20:05] bbenvie: github keeps track of exactly what YOU did, and makes it easy to look through it. Stackoverflow shows exactly what YOU are able to write [20:05] blueadept`: debt is for the birds [20:05] bbenvie: a degree is an amorphous non-specific thing [20:05] blueadept`: ^ [20:06] blueadept`: i'm going back to school though, going to get something out of my comfort range [20:06] blueadept`: in the mean time I can pay for my schooling with my job! imagine that [20:06] bbenvie: companies talk about how it's hard to judge say a newly minted gradute [20:06] bbenvie: or even many hires, it's hard to see [20:06] bbenvie: because you have no way to see their actual capability, just a general potential [20:07] blueadept`: stackoverflow/github is the clearly the future [20:07] blueadept`: open source commits [20:07] bbenvie: yeah [20:07] blueadept`: stuff like that [20:07] systemfault: Yes and no.. [20:07] mmalecki: github++ [20:07] systemfault: I did a lot of personal projects in my life... none of them are on github. [20:08] Brandon_R: hey guys [20:08] systemfault: And I don't waste my life on SO [20:08] bbenvie: for programming absolutely, this type of job is one that can be tracked to an extremely specific point and people who can provide that are going to be much easier to judge and more desirable [20:08] systemfault: Hiring people is always a hit or miss.. [20:08] bbenvie: if you're ever at a point where you're being compred to someone else [20:08] bbenvie: then that stuff is the factor [20:09] mmalecki: I got hired via pull requests [20:09] systemfault: Some of the best people I've hired don't have "loud mouths" and are not overselling themselves. [20:09] mmalecki: got few e-mails because of my github account [20:09] bbenvie: a while back I realized that. I had done the same stuff, had a ton of personal projects that were cool and would impress but they were locked away somewhere [20:09] mmalecki: it's definitely a win. [20:09] DTrejo has joined the channel [20:09] tbranyen: mmalecki: github is my resume [20:09] bbenvie: so I made a point to make sure all the stuff I've done since is a place I can point to it [20:09] systemfault: When it's written "outstanding developer" on their CV... now I'm afraid. [20:10] bbenvie: if it's just a personal repo full of misc stuff [20:10] mmalecki: tbranyen: yes [20:11] Cromulent has joined the channel [20:11] Brandon_R: we really have to take a step back and judge what college is for [20:12] Brandon_R: "college is for everyone" needs to go [20:12] pluc has joined the channel [20:12] tbranyen: Brandon_R: i'm sad i went [20:12] Skaag has joined the channel [20:12] tbranyen: one of many regrets [20:12] Brandon_R: how much did you pay? [20:12] tbranyen: a looot [20:12] tbranyen: still paying [20:12] tbranyen: ~60k in loans for 42k a year x 4 years [20:12] gary42 has joined the channel [20:12] Brandon_R: wtf [20:12] Brandon_R: which college did you go to? [20:12] tbranyen: RIT [20:12] mattgifford has joined the channel [20:12] Brandon_R: is it a good college? [20:13] tbranyen: its well respected in the tech community sure [20:13] Brandon_R: did you finish? [20:13] tbranyen: yea [20:14] Brandon_R: what did you major in? [20:14] tbranyen: IT with concentrations in web dev and databases i think [20:14] tbranyen: in hindsight CS would have been more useful [20:15] Brandon_R: cool [20:15] Brandon_R: how much are you making now? [20:15] brianloveswords has joined the channel [20:17] boltR has joined the channel [20:18] tbranyen: Brandon_R: almost enough =) [20:19] Brandon_R: # [20:19] Shaunzie: that's like asking a woman her bra size.... [20:19] Shaunzie: you're not supposed to do that lol [20:19] insin: one meelion dollars *pinky* [20:20] TheFuzzball: You're not supposed to ask women their bra sizes? Oops... [20:20] Brandon_R: i don't talk to women [20:20] Shaunzie: O.O [20:20] Brandon_R: so i wouldn't know :P [20:20] Shaunzie: what's wrong with you... [20:21] Brandon_R: forever alone socially awkward good guy penguin here [20:21] Shaunzie: O.o [20:21] Shaunzie: You need to drink more. [20:22] Shaunzie: Beer is programming food [20:22] Shaunzie: and love makin food! :D [20:22] sharkbird has joined the channel [20:22] mmalecki: Shaunzie++ [20:22] TheFuzzball: I like making cookies, and Fajitas :) [20:22] Shaunzie: If you get drunk enough, chances are you will get laid, though I can't make guarantee on gender.... [20:23] mmalecki: haha [20:23] mmalecki: thankfully *that* never happened to me [20:23] CarterL has joined the channel [20:24] Brandon_R: who here has never been laid before? [20:24] tkaemming has joined the channel [20:24] BillyBreen has joined the channel [20:24] mmalecki: lolwtf? [20:24] josephmoniz has joined the channel [20:24] Shaunzie: @Brandon_R scroll up to my comment about bra sizes :D [20:24] Brandon_R: check this out - https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc3/24158_1379501043464_1110054433_31143120_446819_n.jpg [20:25] mmalecki: I don't think I want to click that [20:25] TheFuzzball: wft [20:25] Shaunzie: yah…….. [20:25] Shaunzie: pedo shit.... [20:25] mmalecki: wtf. [20:25] Brandon_R: that's not pedo [20:26] TheFuzzball: It's pretty pedo [20:27] Shaunzie: changing subject… so I hate forms… In every fuckin language forms suck…. [20:27] Shaunzie: <.< [20:27] TheFuzzball: Better than cin :) [20:27] Shaunzie: I like cin [20:27] TheFuzzball: ACTION sighs [20:27] Shaunzie: lol [20:28] TheFuzzball: POST and GET is alright. It's usually easy enough to do stuff. [20:28] gary42 has left the channel [20:29] Shaunzie: I'm fine with handling the data, it's just the view that pisses me off. [20:29] Shaunzie: I hate HTML [20:29] Shaunzie: with a passion [20:29] djbell has joined the channel [20:29] Shaunzie: It pains me to have to use it ._. [20:29] TheFuzzball: You're doing it wrong :) [20:29] fzzzy has joined the channel [20:29] Shaunzie: That's what she said :( [20:29] Shaunzie: lol [20:29] TheFuzzball: Semantic HTML + CSS can be a pleasure, you just have to know what you're doing. [20:30] TheFuzzball: If you're trying to use HTML for style you're up shit creek. [20:30] Brandon_R: can you guys clone facebook timeline? [20:30] Shaunzie: It's not so much styling as it's cleanly separating display and business logic [20:30] Brandon_R: that looks like some pretty serious html [20:30] systemfault: semantic html rocks because it makes styling easier :P [20:31] tbone_ has joined the channel [20:31] TheFuzzball: It also makes reading the HTML easier :) [20:31] Shaunzie: who reads HTML O.O [20:31] systemfault: (different tags = easier to target elements without adding tons of classes) [20:31] TheFuzzball: I hate all of this

Hay!


I really don't know what I'm doing, can someone help me?

[20:31] tbone_: hi all. quick question. I'm writing an install script through chef for node.js. what's the best way to test if node exists on a system? [20:32] systemfault: Eww.. a
[20:32] Shaunzie: which node? [20:32] TheFuzzball: systemfault++ [20:32] catb0t: systemfault now has 1 beer [20:32] Brandon_R: object oriented css [20:32] Brandon_R: discuss [20:32] Brandon_R: functional css [20:32] Sorella_ has joined the channel [20:32] Shaunzie: @Brandon_R what's to discus? It's better than the alternative [20:32] Shaunzie: :D [20:33] systemfault: Isn't oocss the abomination that girl did at facebook? [20:33] TheFuzzball: I wish CSS3 has support for variables and parent selectors :( [20:33] systemfault: What was her name.... nicole sullivan? [20:33] Shaunzie: https://github.com/stubbornella [20:33] Shaunzie: ? [20:34] TheFuzzball: She's ugly... [20:34] Shaunzie: Google = Stalker friendly x3 [20:34] Shaunzie: I'd do her... [20:34] systemfault: She's yet another proof that women sucks at computer science. [20:34] Shaunzie: er… no [20:34] Brandon_R: it's easier to stalk people on facebook than google [20:34] Shaunzie: My boss is a she and she programs better than me… and that rhymed again [20:34] Brandon_R: because they are on facebook [20:35] Shaunzie: spokeo.com = true stalker shite [20:35] Shaunzie: it creeps me out ... [20:35] skunkape has joined the channel [20:35] Brandon_R: i am going to kill myself [20:35] Brandon_R: brb [20:36] draginx: lmao [20:36] TheFuzzball: heh [20:36] Sorella_: systemfault, gender doesn't quantify talent on X, but I get it you're trolling :3 [20:36] systemfault: Sorella_: I'm somehow trolling... [20:36] systemfault: Sorella_: Still, there's a voice in my head telling me that there's no genius female programmer :( [20:36] TheFuzzball: Someone name 3 women that have contributed massively to technology. Go. [20:37] Brandon_R: can girls program? [20:37] Sorella_: Me. [20:37] systemfault: TheFuzzball: Liskov, ADA... I don't know :/ [20:37] Shaunzie: um Ada [20:37] Sorella_: And iunno. [20:37] Brandon_R: did you guys see the girl that interviewed pquerna on vimeo?> [20:37] Brandon_R: that biach is hotttttt [20:37] Brandon_R: here http://vimeo.com/33248104 [20:37] systemfault: See... women sucks at CS :'( [20:38] systemfault: They rock in pretty much any other field though.. [20:38] Brandon_R: physics? [20:38] Brandon_R: mathematics? [20:38] Sorella_: systemfault, b-but m-me :< [20:38] TheFuzzball: Ada was a mathematician [20:38] systemfault: Sorella_: You're male afaik :/ [20:38] systemfault: I think... [20:38] systemfault: Not sure anymore! [20:38] systemfault: :'( [20:38] Brandon_R: who here is happily married? [20:39] draginx: Trick question! No one is happily married :o [20:39] Brandon_R: i need to ask some questions [20:39] RLa: lol [20:39] systemfault: Brandon_R: I'm married... does that count. [20:39] Brandon_R: my wife might be cheating on me [20:39] TheFuzzball: Is Lain a female name? [20:39] Sorella_: Brandon_R, so much neckbeard. [20:39] Brandon_R: what's that? [20:39] Sorella_: the vimeo video. [20:39] Brandon_R: lol [20:39] cognominal_ has joined the channel [20:39] Brandon_R: can you image if pquerna and that girl had sex [20:40] Shaunzie: Brandon_R: Most programmers are married to their hands… Me, I'm married to my MacBook pro… true story [20:40] Sorella_: systemfault, yeah, I'm male =/ [20:40] Sorella_: unfortunately. [20:40] Brandon_R: same here [20:40] Brandon_R: what do you mean by hands? [20:40] systemfault: Shaunzie: Good. [20:40] Brandon_R: masterbating or work? [20:40] systemfault: Both? [20:40] systemfault: :/ [20:40] TheFuzzball: Masturbating can be work, I suppose... [20:40] Brandon_R: is ryah going out with anyone? [20:40] Shaunzie: scientifically speaking, masterbating is working [20:40] Shaunzie: >.> [20:40] Brandon_R: work is force times distance [20:41] Brandon_R: there is no net distance [20:41] Brandon_R: since youa re going up and down [20:41] TheFuzzball: Distance is low, so not that much work. [20:41] Brandon_R: so there is no work [20:41] pauls1: Brandon_R: i don't think that's correct [20:42] pauls1: Brandon_R: because work talks about the point of application of force [20:42] pauls1: which changes when you're spanking the monkey [20:42] Brandon_R: ik [20:42] Brandon_R: it's technically force dot distance [20:42] Brandon_R: D*F*cosx [20:43] pauls1: good thing it's not sinx [20:43] Brandon_R: why lol [20:44] shapeshed has joined the channel [20:44] pauls1: so that christians can do it too! [20:44] pauls1: just being silly [20:45] TheFuzzball: If it were sinx Christians would find it hotter. [20:45] eeemsi_: ACTION wishes everyone a mery xmas [20:45] systemfault: Christm...what? [20:45] Sorella_: ACTION doesn't celebrate xmas [20:45] systemfault: Nobody is christian anymore.. [20:45] TheFuzzball: systemfault I beg to differ. [20:45] Sorella_: and this talk really has gotten weird [20:45] pauls1: Sorella_++ [20:46] systemfault: All hypocrites.. Xmas is the holiday of stores.. [20:46] pluc has joined the channel [20:46] systemfault: And alcohol. [20:46] Sorella_: ACTION is christian eh [20:46] TheFuzzball: All holidays are holidays of alcohols. [20:47] swanky has joined the channel [20:47] TheFuzzball: Sorella_ Which denomination of Christian? [20:47] Sorella_: protestant. [20:47] herbySk has joined the channel [20:47] Shaunzie: do you protest? sorry bad pun ._. [20:47] TheFuzzball: Which type of protestant? [20:48] systemfault: Protests wall street.. [20:48] dilvie has joined the channel [20:48] systemfault: I'm born s-catholic. [20:48] pauls1: ACTION has no religion, believes the existence of god, but has never found a religious teaching that was helpful to living people [20:48] jergason has joined the channel [20:49] snearch has joined the channel [20:49] abraxas has joined the channel [20:49] mmalecki: I'm an atheist [20:49] TheFuzzball: If there is a God, (which is doubtful,) it won't be anything like the gods in religious teachings. [20:49] mmalecki: TheFuzzball++ [20:49] catb0t: TheFuzzball now has 1 beer [20:50] mmalecki: I somehow like christmas, tho [20:50] pauls1: TheFuzzball: what do you indicate by the term god? definitely important to define the term concretely if any questions about the matter are to be confirmed by evidences [20:50] pauls1: Christmas++ [20:50] pauls1: means people buy more and we get bonuses ;P [20:50] mmalecki: :D [20:50] mmalecki: gifts! [20:51] systemfault: True. [20:51] tbranyen: the way i see gifting: "If you bought a gift for someone, its probably because you're making up for treating them like shit all year" [20:51] Sorella_: TheFuzzball, I don't knowz of such fine-grained classifications. [20:51] `3rdEden has joined the channel [20:51] mmalecki: tbranyen: lol, makes partial sense [20:51] Dmitrijus: tbranyen: so what? better to at least try to make up than just treating them like shit all year :) [20:51] TheFuzzball: Christmas wasn't anything to do with Christianity in the first place anyway, it was hijacked by Christians to move the pagans to Christianity. [20:52] systemfault: Hmm [20:52] pauls1: like Jesus' teaching was hijacked by the church.. [20:52] pauls1: which no longer has his teaching.. [20:52] TheFuzzball: Which is why it's understandable that "Christmas" isn't about God anymore, it's about consumerism. [20:52] systemfault: TheFuzzball: Then Jesus's birth isn't celebrated on dec 25th? [20:52] Sorella_: TheFuzzball, heh, it has never been about God :3 [20:52] Dmitrijus: ;] [20:52] TheFuzzball: systemfault It is, but Jesus wasn't born in December. [20:52] tbranyen: Dmitrijus: haha [20:53] Vennril has joined the channel [20:53] Sorella_: afaik, it was just to tone down a pagan thingie or something. [20:53] systemfault: TheFuzzball: :) [20:53] pauls1: all, gotta go take care of my friend's cat and get something to eat! ttyl [20:53] Dmitrijus: christmas is about meeting your relatives! :) [20:53] brianloveswords has joined the channel [20:53] tbranyen: Dmitrijus: and the realization that your family is fucked? [20:53] systemfault: Dmitrijus: I agree [20:54] systemfault: My family is fucked.. [20:54] systemfault: Seriously fucked I'd say.. [20:54] TheFuzzball: All families are. [20:54] Dmitrijus: tbranyen: my family is okay! :) [20:54] mmalecki: I hate my family. I met up with few friends today, had a beer and some gifts [20:54] githogori has joined the channel [20:55] cognominal has joined the channel [20:55] chrisumbel has joined the channel [20:55] kristsk has joined the channel [20:56] TheFuzzball: I don't hate my family, but I do recognise they're strange. [20:56] tilgovi has joined the channel [20:56] tilgovi has joined the channel [20:56] swanky: cant get connect-mongodb working, TypeError: Cannot call method 'findOne' of null, config is app.use(express.session({ .., store: new mongoStore({ db: 'sessions'}), ..})); [21:00] vol4ok has joined the channel [21:00] draginx has left the channel [21:01] DTrejo_ has joined the channel [21:01] jacobolus has joined the channel [21:02] captain_morgan has joined the channel [21:03] stagas has joined the channel [21:04] Brandon_R: ok guys it's true [21:04] boltR has joined the channel [21:04] Brandon_R: my wife has been cheating on me [21:04] Brandon_R: we just talked [21:05] pluc has joined the channel [21:05] kristsk: o_O [21:06] Brandon_R: yeah [21:06] Brandon_R: i don't know what to do [21:07] abraxas has joined the channel [21:07] kristsk: do you have kids? [21:08] Brandon_R: yes [21:08] FG has joined the channel [21:09] Brandon_R: 4 [21:09] Brandon_R: 5 month, 1 year, 2.5 year and 8 years [21:09] swanky: where can i get some node.js help? [21:09] DTrejo: here [21:10] DTrejo: but I don't know about mongo in conjunction with express as a session store, apologies swanky [21:10] CarterL: Brandon_R: If you feel want to salvage the marriage, find a counselor [21:10] swanky: DTrejo its all good [21:11] tbranyen: Brandon_R: you'll probably have a healthier relationship if you don't look for answers in an irc chat room for javascript development [21:11] mmalecki: Brandon_R: uhm, 5 months and 1 year? [21:11] tbranyen: CarterL: +1 [21:12] Brandon_R: 1 year, about 4 months [21:13] mmalecki: but it's impossible? or I derped at maths [21:13] Lingerance: So... you had conception a few days after the last one came out? [21:14] tbranyen: a christmas miracle [21:14] TheFuzzball: Or… He's just had his kids before getting married. [21:14] Lingerance: What? [21:15] kristsk: impossibru! [21:15] Lingerance: I'm talking about the 1y4m + 5m children's age difference [21:15] cclarke has joined the channel [21:15] CarterL: Brandon_R: seriously, seek counselling.... [21:15] mmalecki: *this*: http://imgur.com/r/atheism/mfYNW [21:15] cclarke_ has joined the channel [21:15] Brandon_R: just deleted my facebook [21:16] Brandon_R: calling my lawyer now and will hit the gym later [21:16] kristsk: why did she confess, if you dont mind me asking. [21:16] cclarke__ has joined the channel [21:16] Brandon_R: i was playing angry birds on her iphone and got a text friom the guy [21:16] Brandon_R: asked her about it and she spilled [21:18] TheFuzzball: Up for a shitty Christmas then :( [21:18] cclarke has joined the channel [21:18] Brandon_R: yep :( [21:19] erikzaadi has joined the channel [21:19] kristsk: angry birds be damned? [21:20] Tom____ has joined the channel [21:20] purr has joined the channel [21:21] purr has joined the channel [21:21] tbone_ has joined the channel [21:21] Brandon_R: i'll be doing some programming to get the stress off [21:21] cclarke_ has joined the channel [21:21] Shaunzie has joined the channel [21:22] Tom____: I have a simple Java program that reads from stdin and outputs to stdout, but how do I make node write to its stdin before it closes? See https://gist.github.com/1518382 for both java and node.js code. [21:23] Lingerance: child_process [21:24] rurufufuss has joined the channel [21:24] Tom____: Lingerance: did you even look at my code? [21:24] Lingerance: My browser is slow right now, I answered the question as it was phrased [21:24] cclarke has joined the channel [21:25] Brandon_R: sockets [21:25] Tom____: Lingerance: ah well, you'll see from the code that I am using child processes. [21:25] tab1293 has joined the channel [21:25] Tom____: When I run it the child process simply closes and so does the node app, with an empty return. [21:25] Lingerance: So, child.write() isn't doing anything? [21:26] Tom____: Lingerance: I don't know, any way to test? [21:26] Tom____: Lingerance: I am using child.stdin.write, not child.write [21:28] Lingerance: Tom____: Because the program doesn't exist in the path (I'm fairly certain) [21:28] tab1293: does this look like valid JSON? http://pastebin.com/Eukz5CUQ [21:29] Lingerance: You want to give it java as the command, the rest of that stuff should be .split(' ') into args (the second param) [21:29] maxogden: tab1293: you can test by pasting it into chrome developer tools console [21:29] Lingerance: Tom____: That looks valid [21:30] Lingerance: JSON.parse() handles it just fine [21:30] Tom____: Lingerance: Ok, I added them as args. Interestingly enough the program now does not quit, and keeps running forever -- but there is no output either. [21:31] cclarke has joined the channel [21:31] Tom____: I updated the gist. [21:32] Lingerance: Does the Java program expect an EOL? [21:32] Tom____: Lingerance: not really sure, did you see https://gist.github.com/1518382 ? [21:32] malkomalko has joined the channel [21:32] Skaag has joined the channel [21:33] Lingerance: Yeah [21:35] Tom____: Lingerance: I'm not sure to be honest, I am not experienced with Java. I only created this simple Java command line interface to interact with node.js [21:36] Lingerance: Try closing child.stdin when the write has been completely [21:36] Lingerance: completed* [21:36] benop has joined the channel [21:37] Tom____: Lingerance: that makes the child terminate, and no output is returned [21:37] Lingerance: ... you just added one line after the .write() didn't you? [21:38] Lingerance: If so "when the write has been completed" is the important bit. [21:38] Tom____: Lingerance: I added child.stdin.once('drain', function() { child.stdin.end(); }); [21:38] cclarke has joined the channel [21:39] AAA_awright: Is there an efficent, non-cryptographic hash library that ships with Node.js? [21:39] Lingerance: Confirmed that this doesn't fire before .write() happens? [21:39] AAA_awright: Or am I gonna have to use MD5 [21:39] Lingerance: No. [21:39] Lingerance: BTW, MD5 is cryptographic [21:40] Tom____: Lingerance: yes, because the attachment is after .write [21:41] Tom____: Lingerance: https://gist.github.com/1518382 [21:41] cclarke has joined the channel [21:44] Lingerance: Add a debug output on the Java that repeats what it got as input? [21:44] Thrawn has joined the channel [21:45] AAA_awright: Lingerance: It's not secure but it's far more efficent than SHA* (SHA1 also walk-don't-run-to-the-nearest-emergency-exit insecure) [21:46] Shaunzie has joined the channel [21:46] Gekz: CRC [21:46] thesimpleton has joined the channel [21:47] Lingerance: AAA_awright: Yeah, you don't want crypto hashes to be fast though. Just implement CRC or similar [21:47] andrew12: hmm.. what was that windows code editor that looked like awesome? [21:47] RLa: Tom____, why not create web service on java side and use it? [21:47] Lingerance: pnotepad [21:47] andrew12: no [21:47] Tom____: RLa: because I don't know how to create a web service with java, whereas a command line utility should be simple [21:47] slaskis has joined the channel [21:48] thesimpleton has left the channel [21:48] AAA_awright: Lingerance: If you don't want crypto hashes to be fast you use something like pbkdf2 [21:48] RLa: Tom____, with jersey it should be trivial [21:48] Lingerance: You did test the Java thing by piping curl http://yahoo.com into it, right? [21:48] andrew12: sublime [21:48] mattgifford has joined the channel [21:49] Tom____: Lingerance: no, but I tested that node managed to get the html body [21:49] Lingerance: k, test the Java program with curl [21:49] boltR has joined the channel [21:50] RLa: make sure you send line ends on node side, java has no unbuffered console io [21:51] akter has joined the channel [21:52] josh-k has joined the channel [21:52] gde33 has joined the channel [21:52] RLa: Tom____, first bind sderr handler [21:52] bla_ has joined the channel [21:53] Tom____: Lingerance: I'm trying to debug with the java app but node does not return any of the java's stdout so I cannot see debug messages like System.out.println("INPUT TEXT: " + inputText); [21:53] Tom____: RLa: ok [21:53] RLa: maybe java doesn't like some arguments and it complains to sdterr [21:54] bla_ has left the channel [21:55] madhums has joined the channel [21:55] Tom____: RLa: getting "stderr: CreateProcessW: De bestandsnaam of -extensie is te lang." in stderr [21:55] Tom____: it is dutch for "The file name or extension is too long." [21:55] kanzure has joined the channel [21:55] kadnare has joined the channel [21:56] c4milo has joined the channel [21:57] Tom____: Seems awkward, how can it be too long? [21:57] kadnare: I have a piece of code that seems to work fine but it doesn't call the callback correctly, nor does it print any statements I have in it. Can someone please take a look? [21:57] kadnare: http://hastebin.com/sFn5KimUJQ.js [21:57] jnbek has joined the channel [21:57] stagas has joined the channel [21:58] cclarke has joined the channel [21:58] Gregor has joined the channel [21:58] Tom____: RLa: ignore that, that was because of some debug I added, it now gives something else-- one sec. [21:59] willwhite has joined the channel [21:59] KiNgMaR has joined the channel [22:00] stonebranch has joined the channel [22:00] booo has joined the channel [22:01] jspiros has joined the channel [22:02] freeformz has joined the channel [22:02] kaine has left the channel [22:03] cclarke has joined the channel [22:03] meandi3 has joined the channel [22:03] jergason has joined the channel [22:04] Tom____: So, for some reason the xerses.jar does not seem to arrive at the classpath of the java program [22:04] KyleXY has joined the channel [22:05] mikedeboer has joined the channel [22:06] Tom____: RLa: ok, I feel ashamed. There was a typo : xderces should be xerces. Because I forgot to bind to stderr I did not know. [22:06] Tom____: Everything works great now. Thanks everyone. [22:08] FG has joined the channel [22:08] `3rdEden has joined the channel [22:12] iRoj has joined the channel [22:16] jbrokc has joined the channel [22:18] PureRumble has joined the channel [22:18] jakehow has joined the channel [22:18] jergason has joined the channel [22:18] kadnare has joined the channel [22:19] AndreasMadsen has joined the channel [22:19] kadnare: I figured it out, but I had to wrap my callback and automatically invoke it. [22:19] mike5w3c has joined the channel [22:20] cclarke has joined the channel [22:20] kadnare: Is there an equivalent of window.location.reload() in node? [22:22] kadnare: How can I reload the current page in node? [22:22] caioketo: im recruting good developers for my new game project... if anyone interested [22:22] jergason: kadnare: there is no "page" in node [22:22] Thrawn has left the channel [22:23] jergason: kadnare: you seem to be confused about something [22:23] hipsters_ has joined the channel [22:24] kadnare: I tried redirecting back to the same page I'm currently at, but a 301 status code doubles elements on the page, and a 200 status code just prints a link. [22:24] cclarke has joined the channel [22:24] FG has joined the channel [22:26] AndreasMadsen has joined the channel [22:27] caioketo: where can I find some good dev that want to have some fun developing a game? [22:28] t0mmyvyo has joined the channel [22:29] kadnare: How can I just call the same url that I'm currently at? Is there a way to do that in node? [22:29] tahu has joined the channel [22:31] dwhittle has joined the channel [22:32] kadnare: Sigh, it's the holidays so I guess it's going to be a little slow. [22:32] dharmesh has joined the channel [22:35] kriszyp has joined the channel [22:39] PureRumble has joined the channel [22:39] Leemp has joined the channel [22:40] Lingerance: caioketo: hmm? [22:40] chrisumbel has joined the channel [22:41] TheMoonMaster: Is there a way I can modify a sockets write method to always append "\r\n"? [22:42] mmalecki: TheMoonMaster: yes, monkey-patching [22:42] mmalecki: but don't [22:42] TheMoonMaster: Why not? [22:42] TheMoonMaster: Not for the whole package, just for a single instance. [22:42] mmalecki: it's bad. monkey-patching is an awful technique [22:42] TheMoonMaster: I use Ruby, I'm not new to monkey-patching. :P [22:42] mmalecki: oh my. [22:43] Lingerance: sock.write = (function(cb) { var self = this; return function() { arguments[0] += '\r\n'; return cb.apply(self, Array.prototype.slice.call(arguments, 0)) } })(sock.write) [22:43] Lingerance: It's better to just extend the class though. [22:44] TheMoonMaster: Why would it be better to extend the class? [22:44] Lingerance: Actually, what I just pasted won't have the correct value for "this" [22:45] Lingerance: Because it's proper OOP? [22:45] TheMoonMaster: I only need it for one instance, otherwise I don't need \r\n on everything. [22:46] benop has joined the channel [22:47] gigafied has joined the channel [22:48] mfncooper has joined the channel [22:51] postwait has joined the channel [22:55] AndreasM_ has joined the channel [23:02] cclarke has joined the channel [23:04] deedubs has joined the channel [23:04] SubStack: beep boop [23:05] pauls1 has joined the channel [23:05] JaKWaC has joined the channel [23:07] Swimming_Bird has joined the channel [23:08] mmalecki: SubStack: hey [23:08] willwhite has joined the channel [23:10] TheFuzzball: Does anyone here use choreographer? [23:11] mmalecki: SubStack: I've a question about pushover, do you have a second? [23:12] isufy has joined the channel [23:14] c4milo has joined the channel [23:17] mmalecki: SubStack: actually, I'll just ask. if I want to perform anything asynchronous before I call repos.handle(req, res), I should buffer the incoming stream, right? [23:19] cclarke has joined the channel [23:19] deedubs has joined the channel [23:20] cha0s has joined the channel [23:20] cha0s has joined the channel [23:22] SubStack: mmalecki: that sounds right [23:23] cclarke_ has joined the channel [23:23] stalled has joined the channel [23:24] harthur has joined the channel [23:25] cclarke has joined the channel [23:25] dharmesh has joined the channel [23:27] cclarke has joined the channel [23:28] FG has joined the channel [23:28] piscisaureus_ has joined the channel [23:31] kriszyp has joined the channel [23:31] AndreasMadsen has joined the channel [23:33] malkomalko has joined the channel [23:39] kriszyp2 has joined the channel [23:40] secoif has joined the channel [23:41] subbyyy1 has joined the channel [23:42] michaelhartau has joined the channel [23:43] mattgifford has joined the channel [23:44] Brandon_R has joined the channel [23:44] Brandon_R: hey guys [23:44] Brandon_R: coding anything cool? [23:45] cclarke has joined the channel [23:45] cmr: Brandon_R: After I fix my system I'm continuing work on a polldaddy type site. [23:45] Brandon_R: sweet [23:45] Brandon_R: what problems are your system having? [23:45] Shaunzie has joined the channel [23:46] Brandon_R: which is better [23:46] cmr: No idea yet. Just got home, turns out the power died, machine went down unclean and *something* isn't working in the boot sequence. Currently debugging. [23:46] Brandon_R: this http://pcpartpicker.com/p/3cgv or a mac pro + monitor [23:46] Brandon_R: both sould be about the same price [23:46] cmr: Brandon_R: This isn't ##hardware [23:47] mmalecki: hello, programming. I hate you. [23:48] neurodrone has joined the channel [23:49] k1ttty has joined the channel [23:49] cclarke has joined the channel [23:50] TheFuzzball: mmalecki Well, programming hates you too. [23:50] mmalecki: TheFuzzball: yeah, I know man [23:51] AndreasMadsen has joined the channel [23:52] TheFuzzball: node has been pretty nice to me though, a very easy language to be sure :) [23:54] Brandon_R: do you mean javaascript [23:54] Brandon_R: not agan [23:54] jakehow has joined the channel [23:55] neurodrone has joined the channel [23:56] TheFuzzball: I do :) [23:56] TheFuzzball: I was expecting node to be really hard to figure out, but it's been amazing. So happy :) [23:56] tk has joined the channel [23:57] TheFuzzball: I have rewritten an API that I did in PHP in node and it's only taken me 2 days, without any prior experience of node. [23:57] dekz has joined the channel [23:58] gigafied has joined the channel [23:58] cmr: TheFuzzball: Most programming environments are pretty easy to figure out after you've learned how to program.