[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:
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