[00:00] amerine has joined the channel [00:00] spcshpopr8r: ...er, not "shell", but you know...the node REPL [00:00] jesusabdullah: right [00:01] jesusabdullah: spcshpopr8r: are you typing csv() first? [00:01] spcshpopr8r: yeah [00:01] MrNko has joined the channel [00:01] cconstantine: bnoordhuis, ok, I built d8, but I donk't see it anywhere [00:01] jesusabdullah: Because what you're doing isn't some separate .thing1(), .thing2() [00:01] cconstantine: bnoordhuis, well, lots of compiling happening [00:01] jesusabdullah: It's csv().thing1().thing2() [00:01] cconstantine: happened [00:01] jesusabdullah: know what I mean? [00:02] bnoordhuis: cconstantine: it's probably in deps/v8 but a `find -name d8` will find it [00:02] matyr has joined the channel [00:02] spcshpopr8r: jesusabdullah: yeah...I tried that, all on one line and didn't have much luck... [00:02] spcshpopr8r: ...is it that the REPL can't handle the newlines prior to the chaining? [00:02] cconstantine: bnoordhuis, nope [00:02] skm has joined the channel [00:03] jesusabdullah: spcshpopr8r: Maybe? [00:03] apanda has joined the channel [00:03] cconstantine: bnoordhuis, not anywhere in the node tree [00:03] bnoordhuis: cconstantine: give me a few minutes, i'll see if i can remove d8 from the equation [00:03] jesusabdullah: It could also be that this particular library is broken or something for all I know [00:03] jesusabdullah: What kinda errors are you getting, anyway? [00:03] bnoordhuis: haha, ryan broke the build [00:03] bnoordhuis: cconstantine: ^ it'll be a little longer [00:03] andrewfff has joined the channel [00:04] spcshpopr8r: jesusabdullah: I'll reproduce [00:04] cconstantine: bnoordhuis, ok, thanks [00:05] lluad has joined the channel [00:05] mendel_ has joined the channel [00:05] slickplaid: .. encodeURIComponent('//') [00:05] catb0t: '%2F%2F' [00:05] CarterL has joined the channel [00:06] spcshpopr8r: jesusabdullah: ah hell...it's working...I think I just needed to publicly embarrass myself in order to fix it [00:07] spcshpopr8r: sometimes that's all it takes [00:07] spcshpopr8r: thanks, jesusabdullah [00:07] slickplaid: life is a learning process :D [00:08] prettyrobots has joined the channel [00:08] jesusabdullah: spcshpopr8r: Right on. Don't worry, I'm embarrassing myself left and right every day. ;) [00:10] ironlad has joined the channel [00:10] pquerna has joined the channel [00:10] z6Dabrata has joined the channel [00:11] robotarmy has joined the channel [00:11] pquerna has joined the channel [00:11] Rox_ has joined the channel [00:12] Rox_: Has anybody here used Zombie.js a lot? Seeing some URL encoding issues. [00:12] greg has joined the channel [00:13] Vertice has joined the channel [00:14] spcshpopr8r has left the channel [00:16] jtrudeau has joined the channel [00:17] mailtruck has joined the channel [00:17] dgathright has joined the channel [00:17] replore has joined the channel [00:17] replore_ has joined the channel [00:18] dreamdust has joined the channel [00:19] cconstantine: bnoordhuis, I got the profile analyzer to run and give a report [00:19] cconstantine: but the report says nothing: no ticks [00:19] cconstantine: (0 ticks, 0 unaccounted, 0 excluded) [00:19] WRAz: http://dynamicuserinterace.whenraptorsattack.c9.io/3d/ - Using dnode to send game objects back and forth to the client. [00:20] WRAz: (only works in latest chrome on not linux :( ) [00:20] indexzero has joined the channel [00:21] cconstantine: bnoordhuis, http://pastebin.com/2FzG9FP1 is now I start/stop the profiler [00:21] cconstantine: s/now/how [00:21] robertfw has joined the channel [00:21] WRAz: oh, zombie.js looks nice [00:22] WRAz: we were evaluating headless browsers @ work for a bit, but they didn't consider zombie.js [00:22] WRAz: I'll bring it up to our QA engineer [00:23] mendel_ has joined the channel [00:23] bnoordhuis: cconstantine: i think suspend/resume in v8's profiler is broken atm [00:23] mecablaze has joined the channel [00:23] bnoordhuis: cconstantine: at least with the v8 in master it is [00:23] zivester has joined the channel [00:24] cconstantine: even in 0.4.11? (I'm on 0.4.10) [00:24] cconstantine: bnoordhuis, is there something else I can use? [00:24] rbuck has joined the channel [00:25] progme has joined the channel [00:25] hermanjunge has joined the channel [00:25] davidbanham has joined the channel [00:26] indexzero has joined the channel [00:26] bnoordhuis: cconstantine: maybe node-inspector with v8-profiler [00:26] bnoordhuis: i've no personal experience with it though [00:26] guidocalvano has joined the channel [00:27] mecablaze: is it possible to get all of the niceties of a module (i.e. globals within the module, without worry of collision with the outer scope), but define it in the same file as that one that is going to use it? [00:27] cconstantine: bnoordhuis, yeah, I saw you wrote node-profiler [00:28] Rox_ has left the channel [00:28] cconstantine: bnoordhuis, and the profiler in node-inspector is listed as very experimental :( [00:29] Ratty_: mecablaze: You can wrap your stuff in a self-executing function: (function() { .. stuff here.. })(); [00:30] mecablaze: Ratty_, ah. splendid idea. thanks! [00:30] luke` has joined the channel [00:31] aconbere has joined the channel [00:31] tylerstalder has joined the channel [00:31] hermanju_ has joined the channel [00:32] hermanjunge has joined the channel [00:33] liar has joined the channel [00:33] postwait has joined the channel [00:33] slifty has joined the channel [00:34] hermanjunge has joined the channel [00:35] luke`_ has joined the channel [00:39] mbthomas has joined the channel [00:39] k1ttty has joined the channel [00:39] Drakonite2 has joined the channel [00:39] cconstantine: does anyone know what happens if a setInterval function takes longer than the given interval to execute? [00:40] mrchess: wat do u mean [00:40] cconstantine: I have a fairly compute heavy method in a setInterval [00:40] mrchess: like you set it for 500ms but the execution takes longer? [00:40] mrchess: oh [00:40] cconstantine: yeah [00:40] jj0hns0n has joined the channel [00:41] mrchess: wouldn't that cause a memory leak? [00:41] cconstantine: nothing blocking, just very compute heavy [00:41] mrchess: and freeze your browser? [00:41] cconstantine: server [00:41] mrchess: or server [00:41] mrchess: since its executing the fn faster than it can complete it [00:41] mrchess: it will just keep executing it [00:41] mrchess: despite its stilln ot finished [00:42] cconstantine: but they won't overlap [00:42] mrchess: you should just put a flag in your interval to tell it not to execute if it is still getting run [00:42] Ratty_: If the function blocks the thread then it won't execute again until the previous execution has finished [00:43] cconstantine: mrchess, but I thought node was single-threaded [00:43] Ratty_: Only 1 thing can run at a time. [00:43] StanlySoManly has joined the channel [00:43] Ratty_: You're so manly, stan. [00:44] mrchess: yea i guess Ratty_ is right [00:45] mendel_ has joined the channel [00:45] StanlySoManly has joined the channel [00:46] broofa has joined the channel [00:46] ag_ has joined the channel [00:47] mrchess: that's an interesting problem to have though [00:48] skunkape: what does the mongoose documentation (Model.findOne) mean by "fields to hydrate"? [00:48] floorpi has joined the channel [00:49] mrchess: cconstantine: http://stackoverflow.com/questions/1976405/setinterval-and-long-running-functions [00:49] Nuck has joined the channel [00:50] tmzt_: skunkape: try #mongoosejs [00:50] Nuck: Anyone here built a pretty large app on Node + Express? [00:50] StanlySoManly has joined the channel [00:51] mrchess: cconstantine: it's weird though because shouldn't that mean it just gets trapped in the interval if they start executing back to back? *shrug* [00:51] Nuck: Because I'm looking at the techniques I have for splitting into files, and they are getting unwieldy [00:51] ag_: Hello everyone. I've tried #mongoosejs but no one was responding. I'm working on a schema that is throwing an error, it looks like it has to do with my arrays. Can anyone take a look? http://pastebin.com/QA2wFV96 [00:52] cconstantine: mrchess, yeah [00:53] mendel_ has joined the channel [00:53] montylounge has joined the channel [00:55] jeromegn_ has joined the channel [00:56] skunkape: ag_, depending on your application layout, you may need to export that Model [00:56] Kami_ has joined the channel [00:57] criswell has joined the channel [00:57] montylounge has left the channel [00:57] ag_: skunkape, I've been using it in the global scope so that I can split files without having to module.export stuff. It has been working fine until I introduced this model. [00:58] skunkape: is the model in a seperate file than the main app? [00:58] Ratty_: globals are icky [00:58] montylounge has joined the channel [00:59] ag_: skunkape, I think it has to do with the nesting of arrays and mongoose trying to parse it as an "Mongoose object" [01:00] devongovett has joined the channel [01:00] skunkape: ag_, we need to see more of you application layout. if the model is in a seperate file, you may just need to add "exports.BoothModel = BoothModel; [01:00] ag_: Lines 5 - 14 are what's in the actually file. The other lines are in my main node server file. [01:01] Nexxy has joined the channel [01:01] SuMarDi has joined the channel [01:02] ag_: skunkape, since there is no 'var' in front of BoothModel, it is in the global scope once the file is "require"-d so I can access it in any other file. [01:02] rbuck has joined the channel [01:02] MrNko has joined the channel [01:03] skunkape: ag_ show me more code. I don't want to play guessing games [01:04] blup has joined the channel [01:05] ag_: skunkape, it honestly has nothing to do with the code layout. I know it is the schema, and the "Slots" array that is causing the problem. If I remove "Slots" from the schema everything works fine. [01:05] neoesque has joined the channel [01:06] JaKWaC has joined the channel [01:07] ag_: skunkape, here is the error I get. I think mongoose is trying to interpret my object as a "Mongoose object". http://pastebin.com/HENtHFkK [01:07] sidorares has joined the channel [01:08] reid has joined the channel [01:08] jhurliman has joined the channel [01:09] jhurliman: anyone know of an FNV hash implementation in JS? [01:09] enhydra has joined the channel [01:09] enhydra has joined the channel [01:10] Kami_ has joined the channel [01:10] Cromulent has joined the channel [01:10] skunkape: ag_, is 'name' supposed to be 'Name'? [01:10] mynyml has joined the channel [01:11] a_suenami has joined the channel [01:12] skunkape: ag_, try console.log(util.inspect(name)). If you are trying to collect data in the "model" file and pass it to the "controller", this will not work as expected. Your collection will be exported as a Model. you must handle the files inside of the callback. [01:13] mendel_ has joined the channel [01:13] Drakonite has joined the channel [01:13] mavus: skunkape, what's wrong with console.dir? :) [01:13] ag_: skunkape, I think it's just setting to lowercase. I think mongoose sees the { Name: ... } in "Slots" and thinks it's the mongoose type object, and since there is no 'name' it's throwing the error. [01:15] skunkape: ag_, what does array.js:40:22 look like? [01:16] ag_: skunkape, That's mongoose's files... I guess I could look it up but that's not my code. [01:16] scwoodal has joined the channel [01:16] skunkape: what about this: Booth.js:1:77 [01:16] hermanjunge has joined the channel [01:17] jaequery has joined the channel [01:18] ag_: skunkape, "Booth.js" is what my original code was. I've updated it to clarify http://pastebin.com/QA2wFV96 [01:19] skunkape: ag_, you may want to restructure your model. Create two seperate Schema. See the example close to the top of here: http://mongoosejs.com/docs/embedded-documents.html [01:19] facorreia: I just implemented an integration test of a simple RESTful API with vows-is. https://github.com/fernandoacorreia/pintura-blog/blob/master/test/test.js [01:19] infynyxx has joined the channel [01:20] hermanjunge: irc question [01:20] hermanjunge: how do i keep a channel open [01:20] hermanjunge: if everyone gets out, the channel closes, and even me (the creator) have to be invited... [01:21] hermanjunge: ... unless I type / msg ChanServ recover [01:21] hermanjunge: anybody? [01:21] bnoordhuis: hermanjunge: eggbot [01:21] jaequery: hi [01:21] hermanjunge: eggbot? [01:21] bnoordhuis: hermanjunge: yes [01:21] hermanjunge: how's that? [01:22] bnoordhuis: hermanjunge: it's a bot that keeps the channel open and auto-ops you when you join [01:22] bnoordhuis: maybe freenode has such facilities built in [01:23] skunkape: ag_, try this http://pastebin.com/ur7A8Pdz [01:23] hermanjunge: bnoordhuis, Know how I get eggbot? [01:23] bnoordhuis: hermanjunge: download it, it's open source and run it from a shell on some server [01:24] hermanjunge: my channel is in freenode [01:24] brianseeders has joined the channel [01:25] wmage has joined the channel [01:25] enhydra has joined the channel [01:26] nerdy has joined the channel [01:27] abraxas has joined the channel [01:28] yept has joined the channel [01:31] jaequery has joined the channel [01:32] mrchess has joined the channel [01:32] Kami_ has joined the channel [01:33] tiemonster has left the channel [01:33] mendel_ has joined the channel [01:34] H4ns` has joined the channel [01:34] CarterL has joined the channel [01:35] blup has joined the channel [01:36] prettyrobots has joined the channel [01:37] newbie_ has joined the channel [01:37] Gojohnnyboi has joined the channel [01:37] newbie_: Hi [01:38] tuhoojabotti: HEllo [01:40] rajivn has joined the channel [01:40] zemanel has joined the channel [01:40] ckpcw has joined the channel [01:41] rajivn has joined the channel [01:41] d0k has joined the channel [01:42] torsd has joined the channel [01:42] newbie_: Does anyone can help me? I got a problem while installing nodejs [01:42] gxdssoft has joined the channel [01:43] euforic has joined the channel [01:44] jheusala: newbie_: just ask? [01:44] newbie_: I got a an Error : error....Make:***[program] error 1 [01:44] zemanel has joined the channel [01:45] newbie_: I'm installing nodejs on cygwin [01:45] jheusala: there's probably a debug log? I don't recall what it was named [01:46] bengrue has joined the channel [01:46] newbie_: Should i check that log to find out what's going on? [01:47] Charuru has joined the channel [01:49] __sorin__ has joined the channel [01:49] wmage: newbie_: there's gotta be more output [01:50] fairwinds has left the channel [01:51] jj0hns0n has joined the channel [01:51] mrryanjohnston: Anyone want to try out the new version of RPSNode with me? :) [01:51] mrryanjohnston: I'll just leave this here: http://rpsnode.nodejitsu.com/ [01:52] JakeyChan has joined the channel [01:54] mrryanjohnston: woahzerz, seems it has some bugs to work out :p [01:54] odyniec has joined the channel [01:56] jesster7 has joined the channel [01:56] newbie_: Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} [01:56] jesster7 has left the channel [01:56] tmzt_: \/wi 41 [01:56] mavus: mrryanjohnston, sweet [01:57] Emmanuel has joined the channel [01:57] bnoordhuis: newbie_: can you gist the full build log? [01:59] mrryanjohnston: mavus: thanks :3 [01:59] mendel_ has joined the channel [02:00] zentooo_ has joined the channel [02:00] MrNko has joined the channel [02:00] JumpMast3r has joined the channel [02:00] __sorin__ has joined the channel [02:01] yuwang has joined the channel [02:01] Druid_ has joined the channel [02:03] mailtruck has joined the channel [02:04] willwhite has joined the channel [02:05] toopay has joined the channel [02:05] jamesarosen has joined the channel [02:05] pNstK has joined the channel [02:05] __sorin__ has joined the channel [02:06] rajivn has left the channel [02:06] losing has joined the channel [02:07] zackattack has joined the channel [02:07] Tobias| has joined the channel [02:09] abjorn has left the channel [02:11] skm has joined the channel [02:13] Nuck: debating switching to mongolian [02:13] toopay has joined the channel [02:13] Nuck: Simply so I can make my startup code sync [02:13] Nuck: Any comments on Mongolian vs. mongo-native? [02:14] euforic: how do you get jade to parse text inside of a script(type='text/template') tag instead of keeping it as plain text? [02:14] TooTallNate has joined the channel [02:14] n42 has joined the channel [02:14] Nuck: I love mongo-native, I really do, but Mongolian's callbacks-only-when-needed would allow for simpler startup code. I'm just not sure if it's ready for primetime or not? [02:15] sebastia_ has joined the channel [02:16] sebasti__ has joined the channel [02:16] AvianFlu_ has joined the channel [02:17] sebastia_ has joined the channel [02:17] jeromegn: Nuck: What about mongo-skin? https://github.com/guileen/node-mongoskin never tried it, but it looks interesting. [02:20] slifty has joined the channel [02:21] mendel_ has joined the channel [02:22] Nuck: jeromegn: Oooh, I forgot about that one [02:22] Nuck: ACTION likey [02:23] godzirra has joined the channel [02:23] jeromegn: I'm neck deep in Mongoose, but I'd like at some point to check out alternatives that are closer to the metal [02:24] wmage: mongo-skin looks very cool [02:25] Nuck: I agree >_> [02:25] toopay has left the channel [02:25] Nuck: It looks like a nice thin layer around the raw mongo, which is just my cup o' tea [02:25] Nuck: I love thin layers [02:25] Nuck: Well, thin-feeling [02:25] wmage: yeah mongodb-native is awkward [02:25] alexh has joined the channel [02:26] n42 has joined the channel [02:26] jokil has joined the channel [02:26] sridatta has joined the channel [02:26] nimstr has joined the channel [02:27] Gojohnnyboi has joined the channel [02:27] igl has joined the channel [02:27] jchris has joined the channel [02:28] jacobolus has joined the channel [02:28] captain_morgan has joined the channel [02:29] sebastia_ has joined the channel [02:29] robotarmy has joined the channel [02:31] jro_ has joined the channel [02:32] euforic: how would you build handlebars templates in jade ? [02:33] alexh has joined the channel [02:35] caolanm has joined the channel [02:38] Marak: is anyone working on a node.js based IDS? [02:38] deedubs has joined the channel [02:39] mendel_ has joined the channel [02:41] tkalaw has joined the channel [02:42] Croms has joined the channel [02:45] ckpcw has joined the channel [02:47] toki_kanno has joined the channel [02:47] euforic: Anyone here? [02:47] tuhoojabotti: No. [02:47] tuhoojabotti: You're forever_alone.png [02:48] euforic: You wouldn't happen to know how to get jade to parse text after a template script tag would you ? [02:48] tuhoojabotti: No. [02:48] tuhoojabotti: That's why I didn't answer. [02:48] euforic: lol thanks [02:48] jerrysv has joined the channel [02:49] Destos has joined the channel [02:49] ChrisPartridge: Marak: probably wouldnt be too difficult to do something with node-pcap [02:50] Marak: ChrisPartridge: what about something a little more high level, like http only [02:50] boehm has joined the channel [02:50] Marak: for blocking spam requests [02:51] Nuck: Marak: A rate-limiting algorithm over the HTTP layer? [02:51] Nuck: If you find one, tell me, I'm currently looking for one too :D [02:51] Nuck: tuhoojabotti: I love how you used .png instead of .jpeg there :P [02:51] tuhoojabotti: Obviously. [02:51] BillyBreen has joined the channel [02:51] Nuck: Seriously, JPEG sucks [02:51] tuhoojabotti: Heaters gonna heat. [02:52] mendel_ has joined the channel [02:52] Nuck: tuhoojabotti: You can't see it, but I just facepalmed. [02:52] tuhoojabotti: ;D [02:52] Nuck: So, mongoskin is sweet [02:52] tuhoojabotti: Nuck: Send me a video! [02:52] tuhoojabotti: pic is enough though. [02:52] Nuck: I'm able to cut back on so much of my code too [02:52] tuhoojabotti: remember .png. [02:53] mikey_p: mongoskin? [02:53] Nuck: tuhoojabotti: I lack a camera. My laptop webcam shows nothing but a solid black screen :P [02:53] Nuck: mikey_p: Futures layer around mongo-native [02:53] shipit has joined the channel [02:53] mikey_p: ACTION kinda likes mongoose [02:53] tuhoojabotti: Nuck: Didn't the instructions told you to open the webcam cover _before_ using it? [02:53] tkalaw has left the channel [02:54] rchavik has joined the channel [02:54] Nuck: tuhoojabotti: It's a laptop webcam, they don't HAVE covers :P [02:54] tuhoojabotti: Mine does. ;) [02:54] Nuck: It's fucking HP, it just broke [02:54] Nuck: Like everything else HP puts out [02:54] tuhoojabotti: Eww. [02:55] jamescarr has joined the channel [02:55] tuhoojabotti: In finnish hp stands for helvetin paska -> Nucking piece of shit [02:55] chanceusc has joined the channel [02:57] jamescarr: anyone use selqualize? [02:57] jamescarr: frak [02:57] jamescarr: sequelize [02:57] qbert has joined the channel [02:57] chanceusc: james, you aren't from sc by any chance are you? [02:58] jamescarr: no [02:59] chanceusc: didn't think so, but there's a james carr here so i figured id ask [02:59] przemoc has joined the channel [03:00] yept has joined the channel [03:02] Emmanuel has joined the channel [03:03] kriszyp has joined the channel [03:04] Aphelion has joined the channel [03:05] ChrisPartridge: Marak: if your just looking at http, why not do some magic with node-http-proxy? [03:05] Marak: that was the idea [03:05] Marak: middleware [03:06] CarterL has joined the channel [03:07] sridatta has joined the channel [03:07] jokil has joined the channel [03:07] jamescarr: sequelize doesnt even work? [03:08] jamescarr: Error: deprecated: use mysql.createClient() instead [03:08] jamescarr: any version [03:08] wookiehangover has joined the channel [03:09] dmkbot: *http.js parser uses "this" and fails* reported by chowey: https://github.com/joyent/node/issues/1614 [03:10] hornairs has joined the channel [03:11] qbit_ has joined the channel [03:12] jamescarr: sigh [03:12] jamescarr: yeah [03:12] jamescarr: so, are there any other good Mysql ORMs? [03:13] nickaugust has left the channel [03:14] Nuck: ewww fuck MySQL [03:14] Nuck: ACTION vomits on jamescarr [03:14] Nuck: Mongo 4 life [03:14] scott_gonzalez has joined the channel [03:14] Ratty_: Jimmy Carr, the famours comedian? [03:14] chanceusc: Nuck: it happens, chill [03:15] Stephen has joined the channel [03:15] ChrisPartridge: jamescarr: i had no luck with sequelize either, ended up just working with node-mysql [03:15] Nuck: chanceusc: Dude, learn to take a joke ;) [03:15] Nuck: Jeebus [03:15] jamescarr: Nuck, yeah yeah yeah> forgive me if I don't feel like spending the next 2 months migrating his site over to mongodb when what I am working on is only a 2 day task [03:15] jamescarr: with an existing large mysql db [03:15] Nuck: jamescarr: Then work in MySQL [03:15] jamescarr: ChrisPartridge, yeah [03:15] Nuck: I don't really get why people feel the need to make databases do things they're not supposed to do [03:15] chanceusc: nuck: hah, i'm a bit edgy cause i had to fight off 2 people bitching about the fact we had to keep sql around for a bit longer [03:15] jamescarr: ChrisPartridge, it stinks. Sequelize looks nice too [03:16] Stephen: SubStack: Why didn't you mention you were on a podcast [03:16] te-brian2: Looking for a good control-flow library.. is async the defacto or are there other good ones out ther? [03:16] mendel_ has joined the channel [03:16] Stephen: :-P [03:16] Nuck: Stephen: What podcast? [03:16] Stephen: http://nodeup.com/ [03:16] jamescarr: Nuck, oh, like fetching a number of results? [03:16] Nuck: Ah NodeUp [03:16] autojack_ has joined the channel [03:16] blueadept: lol i like that logo [03:16] blueadept: that needs to be the new logo [03:17] Stephen: If you have another Node podcast, or other source you'd like to reference me to, please post it [03:17] elliottcable: Is there a built-in/fast way to serialize a hash into request parameters? [03:17] autojack_: hey there.. im trying to get the sqlite3 module to work. but whenever i use the run method it craps out and tells me the following: [03:17] autojack_: node: symbol lookup error: /root/lf/node_modules/sqlite3/lib/sqlite3_bindings.node: undefined symbol: sqlite3_db_mutex [03:17] Nuck: elliottcable: Pretty sure there's a query string compiler? [03:17] elliottcable: oh, ignore me. querystring :D [03:17] autojack_: any thoughts? [03:17] Stephen: Also: Looking for a great JSON compression module which has a quick decompress in firefox [03:18] chanceusc: ah yea, definitely a nice logo [03:18] abiii has joined the channel [03:18] Stephen: autojack_: Did you install via npm or git? [03:18] Nuck: Stephen: Compression? [03:18] autojack_: npm [03:18] Nuck: JSON is JSON, it's a pretty specific thing [03:18] Stephen: global or local? [03:18] Nuck: You can't really compres that [03:18] autojack_: im using the latest sqlite3 [03:18] elliottcable: jesus, abiii nearly gave me a heart attack [03:18] autojack_: SQLite version 3.7.7.1 [03:19] elliottcable: I thought I was looking at another channel (my own); and I have an ex named “Abi.” I was like, HOW DID SHE FIND ME HERE!? [03:19] abiii: elliottcable: who's this? [03:19] Stephen: autojack_: no, i mean did you npm install -g sqlite3 or npm install sqllite3 [03:19] elliottcable: abiii ⁓ nah, nobody you know. [03:19] elliottcable: abiii ⁓ your /join just freaked me out. Didn’t realize I was looking at #Node.js instead of #elliottcable >,> [03:19] autojack_: i have tried both.. same problem [03:19] Stephen: Nuck: JSON is text, highly compressible, see UglifyJS [03:19] abiii: elliottcable: lol [03:19] Stephen: Or gzip, or whatever [03:19] tk has joined the channel [03:20] Nuck: Stephen: JSON is a specific syntax [03:20] jamescarr: ChrisPartridge, hmmm... I actually got Sequelize working. Had to clone the repo vs. using the module [03:20] Stephen: Just looking for experiences or favorites [03:20] jamescarr: I mean, using the npm module [03:20] Stephen: Nuck: I know what JSON is [03:20] Nuck: gzipping, sure, but as for compressing it in JS, not happening [03:20] Stephen: Nuck: There are many ways to compress it, say common property name substitution with libraries that now how to reconstruct each [03:21] autojack_: stephen: no thoughts? [03:21] Nuck: Stephen: The moment you do that, it stops being JSON [03:21] Nuck: JSON is *very* specific [03:21] Stephen: autojack_: You might try removing then using git, that's always my first try [03:21] jamesarosen has joined the channel [03:21] Stephen: Nuck: Yes... I know that.... [03:21] Stephen: I don't care [03:21] Nuck: Like how all keys *need* to be quoted :P [03:21] fairwinds has joined the channel [03:21] autojack_: and compiling manually? [03:21] Nuck: Stephen: JSON.stringify is probably about as optimal as you're gonna get :P [03:22] Stephen: If it can be read on both ends and decompressed to standard json, or parsed into an object, I'm good. [03:22] Stephen: Nuck: Nevermind man. I'm not quite sure you understand where I'm going. Thanks for the help though [03:22] Stephen: autojack_: Yeah, just be sure to get the dependencies [03:22] Nuck: Most JS compressors aren't designed to compress strings, they're designed to compress JavaScript, usually through variable name replacements, etc. [03:23] necrodearia has joined the channel [03:24] Nuck: UglifyJS is mostly through renaming things (but it does a damn good job of it) with a bunch of other tiny optimizations [03:24] nimstr has joined the channel [03:25] Stephen: Nuck: JSON compressor: http://stevehanov.ca/blog/index.php?id=104 [03:25] kitt has joined the channel [03:25] kitt has joined the channel [03:27] hij1nx has joined the channel [03:27] Stephen: Hmm... also, I seem to remember some JSON replacement that started with an M, but I can't seem to find it on the modules page anymore [03:29] vidi has joined the channel [03:29] fitzgen has joined the channel [03:29] autojack_: stephen: doo dee doo. it's compiling ;) [03:30] JumpMast3r has joined the channel [03:30] fitzgen has joined the channel [03:30] Stephen: :-) [03:30] Stephen: You did uninstall the npm version, right? [03:30] autojack_: im about to [03:30] autojack_: oh. i already did [03:30] autojack_: duh [03:31] autojack_: so now that it is compiled.. how to i get it to work. i havent tried compiling a module myself yet [03:31] Stephen: Git should have instructions [03:32] jerrysv: Stephen: msgpack [03:32] Stephen: jerrysv: Yup, found it like 2 seconds before you post [03:32] Stephen: You are awesome [03:32] Stephen: autojack_: require the built module [03:32] jerrysv: ha. i type slowly [03:33] Stephen: jerrysv: Thanks [03:33] Stephen: I suppose I should call it a "serialization library" [03:33] autojack_: stephen: it just says do the normal configure, make [03:33] jerrysv: true, but so is json [03:33] jerrysv: with other languages [03:34] autojack_: it compiled fine.. how do i get it shimmied into the global nodejs namespace? [03:34] sebastianedwards: have you looked at bison.js? [03:35] tomtomaso has joined the channel [03:36] binaryjohn_ has joined the channel [03:37] MrNko has joined the channel [03:37] jerrysv: has anyone benchmarked gzip libraries? [03:37] toopay has joined the channel [03:38] Stephen: autojack_: you have to require the built module [03:38] toopay has left the channel [03:38] Stephen: autojack_: just like you would a js file [03:39] tylerstalder has joined the channel [03:39] autojack_: yeah. but cant i put it somewhere special so that i can just require sqlite3? [03:39] autojack_: nm. i think i got it [03:39] arthurd has joined the channel [03:39] jamescarr: hmmm... can you use new(require('foo')) with ctor arguments? [03:40] Spion_ has joined the channel [03:40] mendel_ has joined the channel [03:40] autojack_: it fucking worked! [03:40] autojack_: l( [03:40] autojack_: ;) [03:40] autojack_: shit.. im so excited that i cant type [03:40] autojack_: stephen ftw [03:41] godzirra: Hrm. If I'm accessing a url called my-url?Digits=1, shouldn't Digits be available in req.params.Digits? [03:42] jamescarr: fuck yeah [03:42] cronopio has joined the channel [03:42] vipaca has joined the channel [03:42] vipaca has joined the channel [03:43] jamescarr: https://gist.github.com/1185397 (RESTful interface to legacy db in 18 lines of code) [03:44] hij1nx has joined the channel [03:44] slifty has joined the channel [03:44] godzirra: wtf. I'm doing something wrong and I don't understand what. [03:45] autojack_: has anyone tried building a spanning tree of nodes? [03:45] autojack_: that is sortof what im doing at the moment [03:45] autojack_: or what i plan to do now that i have a working database [03:46] racar: With npm can i update package to a specific version of just update to the most recent one ? I have a weird issue with node-mysql ... when i'm doing require('mysql') i got {} printed on my screen and nothing else. ( node 0.4.10 and mysql 0.9.4 ) [03:46] losing has joined the channel [03:49] ditesh|cassini has joined the channel [03:50] chovy has joined the channel [03:51] at133 has joined the channel [03:53] godzirra: Can anyone tell me why my req.params.digits isn't working on this example? http://pastie.org/2463652 [03:54] ChrisPartridge: godzirra: app.use(express.bodyParser()); [03:54] godzirra: What does that do? [03:54] zackattack has joined the channel [03:55] ChrisPartridge: godzirra: ensures the body of the request gets parsed [03:55] godzirra: huh. okay. Let me try that. Thank you. [03:55] at133: Hi, this is node/mongo question. When using the mongo native driver I create a record with a time entry using new Date() with the minutes, seconds and milliseconds zeroed out. I then try to find that record using the same date but I get no results. Do I have to do something different to the Date object to search on it? [03:56] godzirra: ChrisPartridge: Still tels me my params are undefined. [03:57] ChrisPartridge: godzirra: did you put that line inside app.configure ? [03:57] godzirra: I did. [03:57] joshthecoder has joined the channel [03:57] godzirra: And then I restarted. [03:57] RushPL has joined the channel [03:58] temp02 has joined the channel [03:59] scwoodal: godzirra, you need to add /test/:digits to your route [04:00] robotarmy has joined the channel [04:00] godzirra: But I want it to parse /test?digits=1 [04:00] godzirra: If I do /test/:digits that's not going to correctly parse, is it? [04:02] smathy has joined the channel [04:02] jamescarr has joined the channel [04:03] matyr has joined the channel [04:04] godzirra: scwoodal: yes, no? [04:04] Destos has joined the channel [04:06] mykul|Home has joined the channel [04:06] scwoodal: godzirra: trying to find the answer, I've never messed with a GET requests passed in via ?digits=1, i've always used the /test/:digits format [04:06] mendel_ has joined the channel [04:06] godzirra: Yeah, Its returning from an API I have no control over. [04:06] salsadiablo has joined the channel [04:06] eastender has joined the channel [04:07] jamescarr: anyone hosting a large site backed by iris couch or mongoHQ? [04:07] jamescarr: by large, I'm thinking about 100Gigs of data [04:07] jamescarr: maybe more [04:08] devongovett has joined the channel [04:14] perezd has joined the channel [04:15] incredimike: I can't get knox to PUT a file properly ;/ [04:15] incredimike: I always get AssertionError: true == false .. somehow [04:15] ironlad has joined the channel [04:15] meso has joined the channel [04:15] springmeyer has joined the channel [04:15] chjj: you know, i almost kind of like node's primitive Buffer interface more than v8 typed arrays [04:15] chjj: ive become to used to it [07:28] nodelog has joined the channel [07:29] janne has joined the channel [07:29] lmorchard has joined the channel [07:30] ChrisPartridge: bai [07:30] SvenDowideit has joined the channel [07:30] meso___ has joined the channel [07:31] davidbanham has joined the channel [07:33] [AD]Turbo has joined the channel [07:35] jacobolus has joined the channel [07:35] pandark_ has joined the channel [07:35] [AD]Turbo: hi there [07:36] tuhoojabotti: Hello. [07:36] andree has joined the channel [07:36] jorenl_: If I define variables here: io.sockets.on('connection', function (socket) { ***here*** }); will they be specific for one socket and available for other anonymous functions I bind to socket.IO events there? [07:36] tuhoojabotti: local? [07:36] jorenl_: tuhoojabotti: yes I guess [07:36] stagas has joined the channel [07:37] tuhoojabotti: They will be specific for each new connection [07:37] tuhoojabotti: new anonymous function [07:37] tuhoojabotti: new variables [07:37] tuhoojabotti: :U [07:37] jorenl_: tuhoojabotti: ok, and when is this 'connection' event triggered [07:38] phluffy has joined the channel [07:38] phluffy has joined the channel [07:38] jorenl_: just when someone connects? [07:38] tuhoojabotti: Exactly. [07:38] jorenl_: so, once per user? [07:38] tuhoojabotti: Guess so. [07:38] Drakonite has joined the channel [07:39] jorenl_: then what's the point of this socket.set/get('var', callback); [07:40] bergie has joined the channel [07:40] jorenl_: should I use that instead of vars local to the anonymous function bound to 'connection' [07:40] jetienne: 2 var in 2 anonymous functions [07:40] jetienne: they arent shared [07:40] tuhoojabotti: Yeah [07:41] jorenl_: ok I'll just try something. If it crashes on 'undefined' I'll have to do something better :) thanks for the quick help [07:42] tuhoojabotti: lulz [07:42] booo has joined the channel [07:43] radiodario has joined the channel [07:45] navaru: jetienne: http://jsperf.com/crockford-s-parts-pattern-vs-backbone-js-extend-model -- is this how it should be? [07:45] mraleph has joined the channel [07:46] matyr has joined the channel [07:46] jorenl_: k, it works. So an anonymous function 2 declared inside anonymous function 1 shares function 1's locals [07:47] mpavel has joined the channel [07:51] whitman has joined the channel [07:52] fangel has joined the channel [07:53] apanda has joined the channel [07:53] tyfighter has joined the channel [07:54] tylerstalder has joined the channel [07:55] uchuff has joined the channel [07:56] ceej has joined the channel [07:56] levi501d has joined the channel [08:02] gkatsev has joined the channel [08:03] a_suenami has joined the channel [08:05] Druid_ has joined the channel [08:08] tomb has joined the channel [08:08] _kud has joined the channel [08:12] DrMcKay has joined the channel [08:12] aaronmcadam has joined the channel [08:12] mikeal has joined the channel [08:13] Khol has joined the channel [08:13] chia has joined the channel [08:14] FireFly has joined the channel [08:14] markwubben has joined the channel [08:14] shipit has joined the channel [08:16] eresair has joined the channel [08:19] pickels has joined the channel [08:19] anubhaw has joined the channel [08:19] bergelmir has joined the channel [08:19] felixhummel has joined the channel [08:19] bergelmir has joined the channel [08:19] jacobolus has joined the channel [08:19] apejens has joined the channel [08:20] jeremyselier has joined the channel [08:20] aude has joined the channel [08:21] brianseeders has joined the channel [08:22] fangel has joined the channel [08:22] huskyr has joined the channel [08:23] _kud_ has joined the channel [08:24] robhawkes has joined the channel [08:25] zackattack has joined the channel [08:26] hellp has joined the channel [08:26] jacobolu_ has joined the channel [08:26] walkingeyerobot has joined the channel [08:27] digiwano has joined the channel [08:27] abraxas: Anyone with LearnBoost's cluster experience? I'm trying to achieve something that seems impossible at first sight, but appears like such a common problem… I'd love to get some input from someone. [08:29] sveisvei has joined the channel [08:29] mavus has joined the channel [08:30] eldios has joined the channel [08:30] febits has joined the channel [08:30] apejens has joined the channel [08:31] Jalava has joined the channel [08:33] floorpi has joined the channel [08:34] mykul|Home has joined the channel [08:36] sebastia_: abraxas: what's your question? [08:37] sveisvei: npmregistry having troubles, or is it me again :P [08:37] sveisvei: ? [08:37] bartt has joined the channel [08:37] abraxas_ has joined the channel [08:37] azeroth__ has joined the channel [08:37] abraxas_: I would like to have my workers not be instantly ready to accept connections. They have a setup phase when they spawn, and I would like the master to wait for that to be complete. [08:39] kawaz_home has joined the channel [08:39] DrMcKay: !up? registry.npmjs.org [08:39] k1ttty has joined the channel [08:39] dmkbot has joined the channel [08:39] DrMcKay: !up? registry.npmjs.org [08:39] dmkbot: DrMcKay, host up (status code: 200) [08:40] DrMcKay: sveisvei: ^ [08:40] sveisvei: garr, thanx :) [08:45] simenbrekken has joined the channel [08:46] wenbert has joined the channel [08:46] webben has joined the channel [08:46] mehlah has joined the channel [08:47] cosmincx has joined the channel [08:47] DrMcKay: yeah, great. [08:47] TheJH has joined the channel [08:47] TheJH has joined the channel [08:47] Margle_ has joined the channel [08:47] DrMcKay: error handling may be important for a bot -.- [08:48] dmkbot has joined the channel [08:48] mehlah_ has joined the channel [08:49] rgmarcha has joined the channel [08:49] TheJH: MEEEH! Now I went to the school and back (1h total), just to be told that there are no lessons for the whole age group. gnarf. [08:49] e6nian has joined the channel [08:51] sfoster has joined the channel [08:51] jorenl_: TheJH: haha, I have to leave for school in about 2 hours [08:51] aude_ has joined the channel [08:52] Yoric has joined the channel [08:54] kulor-uk has joined the channel [08:55] phiggins has joined the channel [08:55] DrMcKay: TheJH: hah [08:56] DrMcKay: TheJH: we've started school just today :/ [08:56] TheJH: jorenl_, school starts at 13:00 for you? [08:56] Epeli has joined the channel [08:57] emattias has joined the channel [08:57] jorenl_: TheJH: 1) how do you know my timezone :P 2) Today, yes at 13.30. Normally at 8.20 but it's the first day today and apparently they want to introduce the 1st year students to the school before noon [08:57] __tosh has joined the channel [08:57] DrMcKay: jorenl_: timezone is easy to find out :) [08:58] TheJH: jorenl_, /whois says your provider is from belgium. we're in the same timezone [08:58] jorenl_: right xD [08:58] DrMcKay: what he said ^^ [08:58] DrMcKay: yeah, I find it a bit creepy too [08:58] TheJH: well, /whois on me won't tell you my timezone :D [08:59] cosmincx has joined the channel [08:59] DrMcKay: TheJH: you sneaky bastard... :D [08:59] TheJH: ACTION haz wikipedia cloak [08:59] kulor-uk has joined the channel [08:59] DrMcKay: my employer was a bit terrified when I got him a test account in my app with his city and country listed [09:00] AvianFlu: lulz [09:00] AvianFlu: DrMcKay++ [09:00] v8bot_: AvianFlu has given a beer to DrMcKay. DrMcKay now has 2 beers. [09:00] catb0t: DrMcKay now has 1 beer [09:00] sinusss has joined the channel [09:00] DrMcKay: but, after all, it's good when your boss is a bit afraid of you ;) [09:01] TheJH: hehe [09:01] jobim: That's why I bring my samurai sword to work. [09:01] TheJH: jobim, did you read snow crash? [09:01] DrMcKay: jobim: that's one of the ways :D [09:01] jorenl_: why can't I /whois --' [09:02] TheJH: jorenl_, ? [09:02] Cromulent has joined the channel [09:02] jorenl_: TheJH: Yeah I'm using ubuntu empathy and for some reason it says 'Unknown command'. [09:03] jobim: TheJH: No! Should I? [09:03] TheJH: jobim, the samurai sword Hiro Protagonist always has with him is cool, but R.E.A.S.O.N. is cooler :D [09:03] Cromulent has joined the channel [09:03] raphael-p has joined the channel [09:03] raphael-p: hi all [09:04] jobim: TheJH: Cryptonomicon is one of my favorite books though. :) [09:04] raphael-p: has anyone ever experienced a "/usr/bin/ld: cannot find -luv" error while `make`ing node.js? [09:04] TheJH: jobim, I like it. american continent, near future. the USA don't exist anymore. the protagonist has two samurai swords, is a hacker and his normal job is pizza delivery for the mafia [09:05] jobim: Haha. :D [09:05] DrMcKay: TheJH: now I have to read it [09:05] DrMcKay: TheJH: you've read original or translation? [09:05] TheJH: DrMcKay, german translation [09:05] DrMcKay: raphael-p: Linux or Cygwin? [09:06] TheJH: raphael-p, what does "ld --version" say? [09:06] raphael-p: linux [09:06] bartt has joined the channel [09:06] DrMcKay: oh, wait, what? [09:07] DrMcKay: paypal.com fails because of certificate? [09:07] raphael-p: $ ld --version >> GNU grep 2.6.3 [09:07] jomoho has joined the channel [09:07] raphael-p: sorry alias [09:08] raphael-p: TheJH: ld version is GNU ld (GNU Binutils for Ubuntu) 2.21.0.20110327 [09:08] _bat has joined the channel [09:08] DrMcKay: TheJH: ordered :) [09:08] DrMcKay: TheJH: TODO.unshift('Snow Crash'); [09:08] cjheath has joined the channel [09:09] TheJH: DrMcKay, the paypal cert is for www.paypal.com only, not for paypal.com [09:09] DrMcKay: TheJH: yeah, I figured it out [09:10] DrMcKay: TheJH: still, it's weird [09:10] TheJH: raphael-p, hmm, no idea [09:10] raphael-p: TheJH: ok, i'll investigate [09:10] TheJH: raphael-p, I use fedora and have 2.21.51.0.6-6.fc15 20110118 [09:11] raphael-p: btw, why isn't there a CMakeList.txt file in deps/uv/ (while there are equivalent files in other deps/*/) [09:11] raphael-p: ? [09:12] markwubben has joined the channel [09:13] abraxas: Does anyone know what the NodeJS docs mean by "setsid, if set true, will cause the subprocess to be run in a new session." in the section on child_process.spawn() ? [09:13] abraxas: What is this session? [09:13] Layke2 has joined the channel [09:13] wnoronha has joined the channel [09:14] hackband has joined the channel [09:15] Bennito has joined the channel [09:17] wnoronha: I have an application that calls a JSON api, formats it and returns back the information as HTML. Since the JSON API is very slow ~500ms. Node keeps getting blocked. Is there a recommended work around? [09:18] abraxas: wnoronha: what makes it that slow? [09:18] abraxas: wnoronha: is the json api a third party api? not yours? [09:18] Layke2 has joined the channel [09:18] wnoronha: abraxas, its a 3rd party api [09:18] Stephen: wnoronha: You're calling the JSON api asynchronously and it's freezing node? [09:19] abraxas: wnoronha: that shouldn't be able to block your node [09:19] Stephen: wnoronha: I agree with abraxas [09:19] wnoronha: Let me do a simple paste of the code [09:19] richdel has joined the channel [09:19] mykul|Home has joined the channel [09:19] TomY has joined the channel [09:20] mykul|Home has joined the channel [09:20] _kud has joined the channel [09:20] Layke3 has joined the channel [09:21] mykul|Home has joined the channel [09:21] mykul|Home has joined the channel [09:22] StevenSoroka has joined the channel [09:22] mykul|Home has joined the channel [09:22] raphael-p has left the channel [09:22] Slashbunny has joined the channel [09:22] MrNko has joined the channel [09:27] wnoronha: https://gist.github.com/16d436b626eba882198b [09:28] wnoronha: So what happens is the user hits the url, i do a http.get(options, function(..)) once I get the data I send it back to the user [09:29] wnoronha: Since the 3rdparty guy takes 500ms + to respond my performance drops [09:30] wnoronha: Would it be advisable to run more node instances of the app (i think it would be a bad idea) [09:31] DrMcKay has joined the channel [09:33] abraxas: You never seem to close your http request [09:33] abraxas: When you send stuff back, instead of send(body), call end(body) [09:33] huskyr has joined the channel [09:33] abraxas: or does app take care of that? [09:35] wnoronha: abraxas, I was under the assumption that when you use http.request you need to manually close the connection but http.get does it for you [09:35] sbrekken has joined the channel [09:35] wnoronha: The app is built on expressjs [09:36] abraxas: Right, I've never used express, so I'm not sure how that deals with http responses. [09:36] abraxas: So never mind that part, I guess... [09:36] abraxas: Other than this, your code looks absolutely fine. This should (will) not block your node. [09:37] devaholic has joined the channel [09:38] devaholic: anyone here using mongoose? [09:38] DrMcKay: devaholic: I've used it a bit [09:38] wnoronha: devaholic, ditto [09:38] devaholic: kewl [09:39] devaholic: i made a blog post [09:39] devaholic: http://tomblobaum.tumblr.com/post/9660916981/mongoose-js-help-with-underscore-js-mixins-for-node-js [09:39] devaholic: thoughts? [09:40] jorenl_: what's that ---^ [09:40] pct has joined the channel [09:40] devaholic: net split [09:40] joshontheweb has joined the channel [09:40] jorenl_: devaholic: which is... [09:41] wnoronha: abraxas, so my code does not block, so i need to figure out how to serve more requests [09:41] wnoronha: since everything drops to like 40-50 req per second [09:41] wnoronha: jorenl_, netsplit [09:41] devaholic: freenode couldnt keep everyone connected [09:41] tobmaster has joined the channel [09:42] wnoronha: jorenl_, http://en.wikipedia.org/wiki/Netsplit [09:42] ollie has joined the channel [09:42] charleso has joined the channel [09:42] aude_ has joined the channel [09:42] abraxas has joined the channel [09:42] eldios has joined the channel [09:42] mikeal has joined the channel [09:42] phluffy has joined the channel [09:42] brainproxy has joined the channel [09:42] jamesduncan has joined the channel [09:42] necrodearia has joined the channel [09:42] alexh has joined the channel [09:42] luke` has joined the channel [09:42] pquerna has joined the channel [09:42] galaxywatcher has joined the channel [09:42] rachelderp has joined the channel [09:42] CrypticSwarm has joined the channel [09:42] adelgado has joined the channel [09:42] wang has joined the channel [09:42] eboyjr has joined the channel [09:42] JorgeRuiz has joined the channel [09:42] deoxxa has joined the channel [09:42] [Null] has joined the channel [09:42] ircretary has joined the channel [09:42] JKarsrud has joined the channel [09:42] Leonidas has joined the channel [09:42] ByteCrunch has joined the channel [09:42] FearOfMusic has joined the channel [09:42] Tellnes has joined the channel [09:42] chrisbuchholz has joined the channel [09:42] olegp has joined the channel [09:42] flipperWhip has joined the channel [09:42] crodas has joined the channel [09:42] couchquid has joined the channel [09:42] pdonald has joined the channel [09:42] meder has joined the channel [09:42] Will| has joined the channel [09:42] iFire has joined the channel [09:42] tbranyen has joined the channel [09:42] duckspeaker has joined the channel [09:42] hotspants has joined the channel [09:42] boxysean has joined the channel [09:42] ajpiano has joined the channel [09:42] naneau has joined the channel [09:42] Guest18468 has joined the channel [09:42] nub has joined the channel [09:42] geoffeg has joined the channel [09:42] gbot2 has joined the channel [09:42] persson has joined the channel [09:42] MikeW has joined the channel [09:42] kei has joined the channel [09:42] sstephenson has joined the channel [09:42] Kester has joined the channel [09:42] DrPizza has joined the channel [09:43] mrkurt_ has joined the channel [09:43] rhutchison_ has joined the channel [09:43] a11235 has joined the channel [09:43] mikegerwitz has joined the channel [09:43] mikegerwitz has joined the channel [09:43] __doc__ has joined the channel [09:43] eboyjr has joined the channel [09:43] unmanbearpig has joined the channel [09:44] jorenl_: and that's a netburst? :P [09:44] ivanfi has joined the channel [09:44] DrMcKay: jorenl_: it's called netsplit, I think [09:44] phluffy: [09:44] jorenl_: yes but wikipedia says it's a netburst when they all rejoin :P [09:45] abraxas: wiki sensei is always right [09:45] mac^ has joined the channel [09:45] mac^: hello [09:47] wnoronha: https://gist.github.com/4a4ea86fb61104440e44 [09:48] MUILTFN has joined the channel [09:48] mac^: I use socket.io, I tried an example (chat) and everything works fine, but when I copied whole html and js from output file to another file and ran it - it cannot connect [09:48] mac^: why it goes that way? [09:49] mac^: what's wrong? [09:49] junkee[] has joined the channel [09:50] wnoronha: jorenl_, it used to be worst than this. one of the reasons every one moved oftc [09:50] jorenl_: wnoronha: oftc? [09:50] Newky: wnoronha: can I ask why the two seperate servers? [09:51] wnoronha: abraxas, have a look at the paste if you can, [09:51] wnoronha: Newky, they load balance all their users [09:52] FireyFly|n900 has joined the channel [09:52] wnoronha: Newky, they have some 25 servers [09:53] wnoronha: across EU and US [09:53] abraxas: wnoronha: and you're claiming this is blocking your node? as in.. blocking it from accepting any new connections? [09:53] devaholic: wnoronha DrMcKay tl;dr i wrote some helper functions for using mongoose on the frontend, wondering if they are actually helpful for other people [09:53] mcepl has joined the channel [09:53] wnoronha: jorenl_, oftc is another network like freenode [09:53] devaholic: err not *on* the frontend but with your frontend [09:54] mcepl has joined the channel [09:55] mcepl has joined the channel [09:55] abraxas: Does a Cluster Master instance actually do any work based on http requests, like the Workers? Or is all the incoming traffic always redirected to workers? [09:55] incon has joined the channel [09:55] wnoronha_ has joined the channel [09:56] wnoronha_: whops got unplugged [09:56] wnoronha_: abraxas, well i get really pathetic req/ps [09:57] wnoronha_: so the following guys have to kinda wait a bit [09:57] cp42 has joined the channel [09:58] wnoronha_: I guess im a bit confused. let me dig in and read some more docs [09:58] abraxas: wnoronha_: that's odd… I can only suggest you turn send() into end(), but it may be an express feature to use send(), I don't know. [09:58] abraxas: sounds odd tho.. [09:59] Newky: abraxas: from what I've read of express docs, they use just send() [09:59] abraxas: okay [10:03] wnoronha_: any what this is something i'll figure out, so what do most of you guys use to ensure your app keeps running on production? [10:03] wnoronha_: I use capistrano + node-cluster [10:03] wnoronha_: pondering if i should use god or monit [10:04] wnoronha_: ACTION reminds me of the days when rails kept going down [10:04] devaholic: wnoronha_ there are a number of projects to help with that [10:04] devaholic: i like forever [10:05] industrial: great, getting a Error: Invalid field name, exception. but I dont know what field. [10:05] industrial: with mongoose [10:05] wnoronha_: ah i was toying with forever [10:05] industrial: when trying to save a model [10:05] azeroth_ has joined the channel [10:05] devaholic: do you have an invalid character? [10:06] montylounge has joined the channel [10:06] industrial: field name, it says [10:06] Bennito: ACTION hehe [10:06] industrial: but I'm passing in (what seems) the exact schema fields [10:06] devaholic: what is the schema? [10:06] devaholic: gist it [10:07] industrial: I can't, but I'll figure it out. [10:10] abraxas: wnoronha_: doesn't cluster already take care of this? [10:11] wnoronha_: Yes, it does take away a lot of pain [10:12] wnoronha_: Just need to hook it up properly to capistrano [10:12] wnoronha_: so after the deploy is does it can shutdown the old app and restart a new one [10:13] christophsturm has joined the channel [10:16] broofa has joined the channel [10:16] mike5w3c has joined the channel [10:16] Bennito: Hi, I want to host a few node.js apps on my VPS (every app has it own domain)...What should I install? [10:17] wnoronha_: Bennito, nodejs + nginx [10:17] wnoronha_: nodejs + clusterjs + nginx [10:18] Bennito: wnoronha_: Thanks a lot, I will give it a try [10:19] wnoronha_: There is a bunch of docs on virtual hosts and nginx [10:19] wnoronha_: Bennito, http://wiki.nginx.org/NginxVirtualHostExample [10:20] booo has joined the channel [10:20] Bennito: wnoronha_: Thanks, it looks good :-) [10:21] tshpaper has joined the channel [10:21] wnoronha_: industrial, are you using replica set in mongoose? [10:25] sveisvei has joined the channel [10:25] necrodearia has joined the channel [10:29] rbuck has joined the channel [10:29] jbrokc has joined the channel [10:31] adrianmg has joined the channel [10:33] matyr_ has joined the channel [10:36] Raynos has joined the channel [10:36] bolden has joined the channel [10:38] rendar has joined the channel [10:40] sanjeevkb has joined the channel [10:40] sanjeevkb has left the channel [10:42] pietern has joined the channel [10:42] wnoronha_ has joined the channel [10:43] jakehow__ has joined the channel [10:43] jakehow_ has joined the channel [10:43] jakehow has joined the channel [10:44] fangel has joined the channel [10:44] marksoper has joined the channel [10:45] bogomips has joined the channel [10:46] kulor-uk has joined the channel [10:47] ttpva has joined the channel [10:49] RushPL_ has joined the channel [10:52] k1ttty has joined the channel [10:53] agnat has joined the channel [10:54] okuryu has joined the channel [10:58] misterm: I'm trying to install npm, but the install script keeps hanging [10:58] pt_tr has joined the channel [10:59] misterm: I noticed ~2 hours ago someone else mentioned similar troubles, it just hangs on fetching from registry.npm... but it seems to be up [10:59] clu3 has joined the channel [11:01] pietern has joined the channel [11:01] misterm: it's on a vm, I'v installed npm on the same configuration plenty of times with no trouble...well if anyone has any insight ping me I guess, I'll keep investigating [11:01] romainhuet has joined the channel [11:02] misterm: sveisvei: if you're still around ^^ [11:03] sveisvei: misterm: it was strange, now its working... at least if I use sudo [11:04] sveisvei: after I used sudo [11:05] misterm: sveisvei: what was happening for you before? [11:06] phiggins has joined the channel [11:06] sveisvei: misterm: couldnt download from registry [11:07] sveisvei: npm ERR! failed to fetch https://registry.npmjs.org/connect/-/connect-1.7.0.tgz [11:07] misterm: sveisvei: ah, I see you get an actual error [11:07] misterm: sveisvei: for me it just hangs [11:08] sveisvei: Seams strange with "/-/" [11:08] sveisvei: try installing one program, and you will most likely get output after a while [11:08] sveisvei: but sudo fixed it for me at least, dunno what it was [11:09] misterm: I ran it with sudo [11:09] misterm: sorry, what do you mean installing one program? [11:09] sveisvei: "npm install express" [11:09] sveisvei: but you cant install, whole diff problem :P [11:10] sveisvei: sorry, didnt read first line :P [11:10] misterm: sveisvei: yea I just saw earlier you were talking about having trouble connecting so I thought it might be related [11:10] sveisvei: misterm: Tried the git pull method here : https://github.com/isaacs/npm#readme ? [11:10] depy: anyone knows some good independent tool for JS (browser) unit tests ? [11:11] misterm: sveisvei: yea that's my next step [11:13] _kud has joined the channel [11:14] fermion has joined the channel [11:15] rbuck has joined the channel [11:15] phiggins has joined the channel [11:17] MrNko has joined the channel [11:17] MUILTFN has joined the channel [11:18] Aiden has joined the channel [11:21] misterm: sigh, this seems to hang too [11:24] FireFly|n901 has joined the channel [11:25] bnoordhuis has joined the channel [11:27] TheJH has joined the channel [11:27] TheJH has joined the channel [11:29] postwait has joined the channel [11:30] ph^ has joined the channel [11:30] TheJH: is there a pure-JS, streaming JSON parser? [11:35] tuhoojabotti: Do not stream json :( [11:37] wmage has joined the channel [11:37] marksoper has joined the channel [11:38] balupton has joined the channel [11:38] davidbanham: I need to dynamically generate a file that people can download. I know I can fs.write, res.sendfile and then fs.unlink when I'm done, but is there a good way of doing it with a stream so that I never have to touch the filesystem? Generating and sending the file on the fly? I'm using express, if it matters. [11:41] irae_ has joined the channel [11:41] stride: isn't the response object a stream you can just set the appropriate headers on and then pump your input stream to? [11:42] davidbanham: I'm pretty sure there are ways to do that, but what data do I need to generate in order to make a browser accept it as a text file? What are the appropriate headers? Does it need to be binary or something? [11:43] iivvoo: content-type: text/plain [11:43] iivvoo: or do you want a save-as to popup? [11:44] stride: that'd be the Content-Disposition header [11:44] davidbanham: iivvoo: Yes, I'd like the browser to recognise that it needs to save it as a file to disk. [11:44] davidbanham: stride: Ahh, yes. I've heard of that, thanks. I'll look into it further. [11:45] micheil has joined the channel [11:46] vojto has joined the channel [11:46] dmkbot: *configure doesn't check for libz on Cygwin* reported by nponeccop: https://github.com/joyent/node/issues/1598 [11:49] jheusala: is there any way to route every event from one socket.io to another? [11:50] jhbot has joined the channel [11:51] fairwinds has joined the channel [11:51] jheusala: except implementing listeners for them all of course [11:51] stride: jheusala: socket.broadcast.emit [11:51] TheJH: what's a good DB to import the WL cables.csv into for quick indexes, full-text-search and so on? grep|sed|sort|uniq -c is too slow... [11:51] jheusala: stride: but I only must send it to two of them, not all [11:51] bergie has joined the channel [11:52] s1985 has joined the channel [11:52] TheJH: (and yes, the cables.csv with all cables, including the unreleased ones, is available, as far as I can see) [11:52] stride: jheusala: it only has capabilities for one or all iirc, everything else you'd have to do yourself. though I'm not sure if there's some pumping mechanism [11:53] jheusala: EventEmitter2 had a wildcard-thing (for hook.io) but I guess socket.io doesn't use it [11:54] s1985: hey folks [11:54] jheusala: I could of course just redirect those clients to their own socket io path [11:55] gautema has joined the channel [11:55] replore has joined the channel [11:56] replore_ has joined the channel [11:56] eee_c has joined the channel [11:56] spcshpopr8r has joined the channel [11:56] JasonSmith: Is there a tool in NPM to compile a Node package into something the browser can run? I have a modest one. Should I replace it with the real deal, or is this the real deal? [11:56] s1985 has left the channel [11:57] spcshpopr8r: JasonSmith: browserify? [11:58] DrMcKay: TheJH: Mongo [11:58] spcshpopr8r: I don't know if that'll do...only brushed across it in my own wanderings [11:58] DrMcKay: TheJH: but wait, I think they've released them in some DB format [11:58] scott_gonzalez has joined the channel [11:58] JasonSmith: spcshpopr8r: I saw that earlier today. I wish the overview were more accessible [11:59] TheJH: DrMcKay, it's not an official WL release - in fact, WL tried to get some time by orging people not to publish the password [11:59] TheJH: *urging [11:59] DrMcKay: TheJH: I have a .sql file here [12:00] z6Dabrata has joined the channel [12:00] TheJH: DrMcKay, then maybe someone reuploaded it as SQL... [12:00] DrMcKay: TheJH: but it can take ages to insert it [12:00] dylang has joined the channel [12:00] TheJH: mmmhm... [12:00] brianseeders has joined the channel [12:01] DrMcKay: TheJH: write a simple parser in C/node and use Mongo [12:01] booo has joined the channel [12:01] TheJH: DrMcKay, what could I use for full-text-search? [12:01] DrMcKay: TheJH: (.sql is 1.6 GB, I will try to insert it) [12:01] DrMcKay: TheJH: Mongo does full text search [12:01] TheJH: oh, cool :) [12:04] Vertice has joined the channel [12:04] DrMcKay: TheJH: but I will try to insert it with few DBs, just to benchmark [12:05] FireFly|n900 has joined the channel [12:05] davidbanham: If anyone was curious, it turns out to be simpler than expected to let a user download a dynamically generated file without touching the filesystem. https://gist.github.com/1186032 [12:05] schwab has joined the channel [12:05] __sorin__ has joined the channel [12:08] al3xnull has joined the channel [12:08] guidocalvano has joined the channel [12:08] duckspeaker has joined the channel [12:08] mc_greeny has joined the channel [12:08] tmedema has joined the channel [12:08] CarterL has joined the channel [12:09] fangel has joined the channel [12:09] tmedema: Damn, I just found out EventEmitter2 isn't made for compatibility in browsers. :x [12:09] tmedema: "var isArray = Array.isArray;" [12:09] TheJH: DrMcKay, for fulltext indexing with mongo, I have to attach a keyword array to the document, right? [12:10] SamuraiJack has joined the channel [12:11] mailtruck has joined the channel [12:12] yept has joined the channel [12:12] DrMcKay: TheJH: yeah, but it can be done in JS, while inserting [12:14] TheJH: DrMcKay, ok, what do I take for node->mongo communication? [12:14] DrMcKay: TheJH: I've probably confused you, Mongo doesn't do fulltext search all by itself [12:14] sylvinus has joined the channel [12:14] DrMcKay: TheJH: you can take mongoose, but that's an overkill [12:15] mcepl has joined the channel [12:15] DrMcKay: TheJH: use mongo-native, or whatever it's called [12:15] TheJH: DrMcKay, http://www.mongodb.org/display/DOCS/Full+Text+Search+in+Mongo deconfused me :D [12:15] TheJH: ok [12:15] TheJH: what does mongoose do? [12:15] DrMcKay: TheJH: mongoose is an ORM [12:15] TheJH: ah, ok [12:15] DrMcKay: (if ORM still applies to NoSQL) [12:16] TheJH: DrMcKay, how does this look? https://github.com/milewise/mongode [12:16] DrMcKay: whoops. [12:17] DrMcKay: I'm running out of space on /var :D [12:17] tuhoojabotti: lol [12:17] DrMcKay: yeah, inserting 1,6 GB of SQL wasn't a good idea [12:17] tuhoojabotti: Make love not /var. [12:17] DrMcKay: tuhoojabotti: :D [12:17] |Freeman| has joined the channel [12:17] DrMcKay: I think I will have to delete my FTP files for this to complete [12:18] DrMcKay: ah, no [12:18] DrMcKay: 200 MB left [12:18] den512 has joined the channel [12:18] TheJH: meeeh, stupid irc library breaks on ident with special chars (like pipes) :/ [12:18] jobim: damn /var/oracle keeps filling up [12:18] DrMcKay: psql took 7 min and 50 s to complete [12:19] abraxas has joined the channel [12:19] lunks has joined the channel [12:20] fangel has joined the channel [12:20] PrgmrBill has joined the channel [12:20] PrgmrBill has joined the channel [12:22] DrMcKay: never mind, I will benchmark it later [12:23] DrMcKay: TheJH: which library? [12:23] geoffeg has joined the channel [12:24] TheJH: DrMcKay, irc-js [12:24] DrMcKay: TheJH: use node-irc :) [12:24] TheJH: DrMcKay, actually, it got fixed, I think... [12:25] sneakyness_wk has joined the channel [12:27] bnoordhuis: http://www.antipope.org/charlie/blog-static/2011/09/zombies.html <- that's why i like charlie stross: credible zombies [12:28] scott_gonzalez has joined the channel [12:28] arthurd has joined the channel [12:30] schwab has joined the channel [12:31] guidocalvano has joined the channel [12:31] ceej has joined the channel [12:31] hij1nx has joined the channel [12:31] DrMcKay: bnoordhuis: am I a bad person if I though it's about processes? [12:32] bnoordhuis: DrMcKay: no, just a nerd [12:32] albertosheinfeld has joined the channel [12:32] bshumate has joined the channel [12:32] bshumate has joined the channel [12:32] DrMcKay: bnoordhuis: uff. I feel better now. [12:33] mikl has joined the channel [12:34] DrMcKay: oh, I love it when people respond with "+1" when I ask about implementation details... [12:34] squeese has joined the channel [12:38] fumanchu182 has joined the channel [12:38] jtsnow has joined the channel [12:40] maushu has joined the channel [12:41] eldios: can any web designer answer the following question: why is addressing a DOM element using a chain "element.class" construct better than using the id ? [12:41] mcepl: eldios: I am not a web designer, but I think the answer is "It isn't" ;) [12:41] eldios: cause I'm looking at css-tricks.com videos and I'm continously thinking.. why does he avoids using id when it could be that simple? [12:42] misterm: eldios: it's not "better" per se...they're for different things [12:42] davidbanham: eldios: That's a contentious point. There are a lot of people saying you should never ever use ids, then there are a lot of people saying "Well what the fuck else are they for? Why wouldn't you?" [12:42] H4ns: eldios: id's are often less modular, as they need to be unique across a page. [12:42] aaronmcadam: eldios ids are much faster [12:42] eldios: oh flame war... there we go =) now I like it [12:42] misterm: eldios: if you mean in terms of css, yes some people think you shouldn't use ids in your styles [12:43] aaronmcadam: why? [12:43] eldios: H4ns, can you explain that a lil' deeper? [12:43] eldios: if anyone have actual reason.. just spit'em out now =) [12:43] aaronmcadam: well DOM getElBy... [12:43] aaronmcadam: is much faster because obv there is only one instance of an id on a page [12:43] misterm: it's a separation of concerns thing, classes better represent styling information [12:43] aaronmcadam: for generic styling yeah [12:44] aaronmcadam: but you can run into specificity problems with only using class selectors [12:44] eldios: but all-in-all you're exactly wanting to reach *THAT* particoular element.. which *is* unique in the page..so.. why not use its id? [12:44] aaronmcadam: yes you should be [12:44] H4ns: eldios: all ids across a page must be unique. if you combine modules from multiple sources on one page and they use overlapping ids, the css will probably not work. using classes is no guarantee against clashes, but they are often less likely to occur. [12:44] aaronmcadam: in js anyway [12:45] davidbanham: For me, the approach is "Use classes for things that make sense to use classes, use id's for things that make sense to use ids" [12:45] mcepl: ACTION would add that one of root of his disgust over jQuery are calls like $("#someid"); [12:45] aaronmcadam: eh? [12:45] eldios: mcepl, why don't you like that? [12:45] eldios: H4ns, that makes sense [12:45] ph^ has joined the channel [12:45] eldios: +1 [12:45] eldios: thanks for your opinion [12:46] aaronmcadam: eldios: http://addyosmani.com/blog/jquery-performance-tips-2011/ [12:46] aaronmcadam: that goes over selector performance [12:46] misterm: yea, I think we're talking specifically in stylesheets though [12:47] misterm: in js code it wouldn't be a consideration [12:47] aaronmcadam: he was askin bout dom at one stage [12:47] mcepl: because it translates (in best case, I suspect much worse in most cases) to document.querySelector("#someid") which is horrible. [12:47] eldios: mm... yeah I was aware of performance issues of DOM-walking of jquery... [12:47] aaronmcadam: what's horrible about that [12:47] eldios: DOM-traversing.. [12:47] bradleymeck has joined the channel [12:47] eldios: mcepl, go on... I'm so ignorant about what you're trying to reach... [12:48] eldios: why is that horrible? enlighten us [12:48] misterm: mcepl: also, what do you propose instead? [12:48] mcepl: getElementById as $DEITY intended [12:48] eldios: lulz [12:49] mcepl: because it is horribly slow, you are bringing whole CSS selector machinery (in better cases compiled in C++, in most cases I am afraid in javascript). [12:49] misterm: mcepl: $("#id") will translate to document.getElementById("id") [12:49] jetienne has joined the channel [12:49] aaronmcadam: yeah [12:49] H4ns: "horribly slow" my ass [12:49] eldios: ahahah [12:49] aaronmcadam: fud [12:49] misterm: mcepl: but I agree that when people use jQuery they tend to think they need to use jQuery for every little thing [12:49] misterm: which is often not the case [12:49] phiggins has joined the channel [12:50] aaronmcadam: it takes time for people to learn that yes [12:50] kdng-tr7 has joined the channel [12:50] eldios: so.. resuming.. [12:50] eldios: 1) ids possible collision between different pages [12:50] aaronmcadam: so yeah, in jq, it's id, then element, then class, then pseudo for performance [12:51] davidbanham: I tend to use an awful lot of jquery because I know very little about the gotchas of different browsers, and I know that if I'm using jquery someone else has figured out that it's going to work in all platforms. [12:51] eldios: 2) $('#ids') is terribly slow and badly implemented [12:51] eldios: all agree? [12:51] aaronmcadam: no [12:51] H4ns: eldios: no. [12:51] aaronmcadam: that's fud [12:51] mcepl: eldios: in how many cases you don't have IDs generated and yet still you combine mutliple pages together? [12:51] xerox has joined the channel [12:52] kdng-tr7 has left the channel [12:52] eldios: not many since I'm a n00b but I suppose that PROs does that quite often if you don't wat to use a framework [12:52] eldios: *suppose* [12:52] mcepl: if real pros combine multiple pages (or parts of the pages, to be exact) they should generate IDs (and probably they use some CMS anyway). [12:52] guidocalvano has joined the channel [12:52] eldios: so... leaving 2 out cause it's quite controversary... we'll keep #1 [12:52] eldios: all agree? [12:53] bradleymeck: anyone know how to get the pubkey that was used during ssh auth from .sshrc? [12:53] aaronmcadam: it's pretty obvious [12:53] aaronmcadam: that #1 [12:53] agnat_ has joined the channel [12:53] eldios: aaronmcadam, it wasn't to me till mcepl said that.. as I previously said I'm still learning in this field [12:53] eldios: so any hint is appreciated... like this one [12:53] aaronmcadam: bradleymeck: ~/.ssh/id_rsa.pub [12:54] sreeix has joined the channel [12:54] misterm: eldios: it's not that you should never use ID's it's that you shouldn't use them in styling...and that's only what some people believe [12:54] H4ns: bradleymeck: you mean you want to know which key has been used? [12:54] aaronmcadam: well anything that needs to be unique would have the potential to collide [12:54] bradleymeck: aaronmcadam i have multiple pubkeys for this user. H4ns yes. [12:54] aaronmcadam: ah soz [12:54] Glenjamin: warning, warning: premature optimisation alert! [12:54] Glenjamin: don't worry about selector speed until you've profiled. Applies to JS and CSS [12:54] eldios: Glenjamin, AHAHAHAH [12:54] H4ns: bradleymeck: you'll have to set some environment variable in the authorized_keys file for each key. there is no built-in way [12:55] aaronmcadam: i think it's more of an academic general question [12:55] H4ns: bradleymeck: (i must admit that it was a while ago when i had and solved that problem, but that approach worked) [12:55] eldios: Glenjamin, is only a question I had in mind cause I'm seeing videos from css-tricks and he ALWAYS use classes in a much fancy way than he could de using one freaking id [12:55] eldios: that's it [12:55] Glenjamin: id makes sense for some thing [12:55] vikstrous_ has joined the channel [12:55] FireFly has joined the channel [12:55] Glenjamin: like menu, or site logo [12:56] Glenjamin: anything that only appears once [12:56] aaronmcadam: the main areas of the page [12:56] eldios: yes.. he used classes for those too -_-" [12:56] aaronmcadam: then resusable styles should be classes [12:56] aaronmcadam: reusable* [12:56] FireyFly|n900 has joined the channel [12:56] Glenjamin: there's nothing to gain or lose by using class="menu" instead of id="menu" [12:56] bradleymeck: H4ns should work, just hand thought about that approach, yay for thinking of hard solution when easy ones work [12:56] eldios: and that's why I asked myself "what the heck?!?" [12:57] mcepl: ACTION has to admit being influenced by fact that 100% of his code is meant to be completely non-portable [12:57] kriszyp has joined the channel [12:57] eldios: Glenjamin, ok.. nothing to loose.. all in all it's quite similar till 1M visist per day [12:57] H4ns: "please write $foo, but IT MUST NOT BE PORTABLE" [12:57] eldios: it was only to understand wtf was going on =) [12:57] al3xnull has joined the channel [12:57] mcepl: H4ns: most of it are Firefox add-ons [12:58] mcepl: that's what I meant [12:58] H4ns: ah, ok. fair enough. [12:58] eldios: ok.. tnx pals.. back to vid now [12:58] eldios: l8r [13:00] kevwil has joined the channel [13:01] Glenjamin: there's no requirement that the JS in firefox addons has to be non portable [13:01] Glenjamin: the IRC lib for ChatZilla can *i think* still run on rhino [13:01] AaronMT has joined the channel [13:02] mcepl: yes, that was sloppy wording ... I meant that I don't have to care about portability. [13:02] hybsch has joined the channel [13:03] mehlah has joined the channel [13:03] MrNko has joined the channel [13:04] test has joined the channel [13:05] eldios: he just said in the vid that you "must be 1000% sure that there's only oe element when using an id" [13:05] eldios: then probably is a web designer paranoid of future restyling =) [13:06] Glenjamin: meh [13:06] Glenjamin: if you want it to validate, sure [13:06] Glenjamin: but it's not like the page will break :D [13:06] FleetFox has left the channel [13:06] N0va has joined the channel [13:07] davidbanham: So at some point in the future your page fails to validate or breaks or something. So you fix it. Big deal. [13:07] baudehlo: bradleymeck: can you link me to that change to Haraka you did? I wanted to benchmark it. [13:07] mehlah has joined the channel [13:08] __tosh has joined the channel [13:08] test: installed node, trying node test.js -> recieve segm. fault (test.js has hello world example code) [13:08] ludicco has joined the channel [13:09] Creap: Is there some script monitor for coffee, like nodemon? [13:09] ludicco: Hello everybody [13:09] davidbanham: test: Can you show us the full error? gist.github.com [13:09] ludicco: on question [13:09] ludicco: it seems HTTPS doesn't handles request.write('content') [13:09] ludicco: it is sending null [13:09] c4milo has joined the channel [13:10] test: console returns Segmentation fault [13:10] test: now in test.js have only console.log('Server running at http://127.0.0.1:1337/'); [13:10] davidsklar has joined the channel [13:10] test: still same error [13:11] davidbanham: test: Please paste the entire error into a gist. Go to gist.github.com then share the link with us. [13:12] Glenjamin: also, exact version of OS and NodeJS [13:12] postwait has joined the channel [13:13] al3xnull has joined the channel [13:14] rc1 has joined the channel [13:15] ezflashback has joined the channel [13:15] ezflashback: hi everyone [13:15] ezflashback: i want to edit the css of a modul on my page [13:15] ezflashback: i replaced the widget.js and edited the css paths inside [13:15] ezflashback: when i use the my custom widget.js the links escape [13:15] ezflashback: http://www.be-broke.com/ ... at the bottom of the page ... the twitter modul [13:15] ezflashback: do you have any idea, whats wrong in my customized widget.js? [13:16] fangel has joined the channel [13:17] devongovett has joined the channel [13:19] test: https://gist.github.com/1186145 [13:20] malkomalko has joined the channel [13:21] Poetro has joined the channel [13:21] Poetro has joined the channel [13:21] thinkt4nk has joined the channel [13:21] davidbanham: test: The idea is usually that you just put whole errors, snippets of code etc into gists, then discuss them here. [13:22] davidbanham: test: Try re-building node. If it's segfaulting there's something pretty fundamentally wrong. [13:22] micheil has joined the channel [13:23] Wizek has joined the channel [13:23] mehlah has joined the channel [13:24] test: ok, will try to rebuilt. There is no more errors, always get only this one-row segm. fault, during building no errors occured. [13:25] rbuck has joined the channel [13:25] willwhite has joined the channel [13:25] cha0s has joined the channel [13:25] cha0s has joined the channel [13:26] tmedema: With express, what's more appropriate? req.socket.setTimeout or req.connection.setTimeout ? [13:27] Metal3d has joined the channel [13:28] ksheurs has joined the channel [13:30] mcepl: Creap: you mean some implementation of https://www.ietf.org/rfc/rfc2324.txt ? [13:31] phiggins has joined the channel [13:32] Glenjamin: heh, ietf cert expired last week [13:34] ezflashback: can anyone help me please? [13:34] DennisRasmussen has joined the channel [13:36] malletjo: With flow, can i do this : for each file ; read it , parse it with sax , when completed do 10k mysql queries, when all completed, do next file ? [13:36] incon has joined the channel [13:37] Glenjamin: Quick survey: what do people use for async control flow? [13:37] jro_ has joined the channel [13:37] malletjo: step or flowjs [13:37] Glenjamin: i'm doing an intro to node talk soon - intending to talk about async [13:38] Glenjamin: async the lib, not the style [13:38] Sembiance: Glenjamin: I *love* step: https://github.com/creationix/step [13:38] davidbanham: ezflashback: You'd probably be better off asking in a frontend development channel. This channel is for nodejs. [13:38] pagameba has joined the channel [13:38] industrial: and I looove Seq https://github.com/substack/node-seq [13:39] Webpro123 has joined the channel [13:39] Sembiance: industrial: I was just scrolling up my irssi client to find that link so I could say "someone yesterday said they loved xyz" [13:40] industrial: Sembiance: I was also answering Glenjamin [13:40] Bennito: ezflashback: Can you show the whole code of the widget? [13:40] Sembiance: industrial: I know, I was just saying that I was in the process of finding your previous answer to me, so I could share it with him :) [13:40] mhausenblas has joined the channel [13:41] Glenjamin: hrm, i'm not a fan of the seq-style syntax [13:41] Sembiance: industrial: whatcha working on now a days? anything cool/fun? just curious :) [13:41] Glenjamin: the rest seem reasonable, but no clear advantages over async [13:41] mhausenblas has left the channel [13:41] jelveh has joined the channel [13:41] jelveh: a [13:42] skipper_ has joined the channel [13:42] kulor-uk has joined the channel [13:43] Sembiance: You know, this 'which control flow library should i use' question comes up a lot. I think maybe I should come up with a simple scenario, and then code it up in several of the different control flow libraries and make a blog post or github gist out of it so people can see how they all compare, syntax wise [13:43] Sembiance: just need to come up with a good scenario [13:44] Glenjamin: Sembiance: i'd say there's a number of common scenarios [13:45] Glenjamin: 1) run these async funcs in series, tell me when done [13:45] wilmoore has joined the channel [13:45] Glenjamin: 2) run these async funcs in parallel, tell me when done [13:45] Glenjamin: 3) run this async func on each item in this array, tell me when done [13:45] Glenjamin: 4) run this async func on each item in this array, one at a time, tell me when done [13:45] Glenjamin: 3 and 4 might reduce to 1 and 2 [13:45] rbuck has joined the channel [13:46] pagameba1 has joined the channel [13:47] pandeiro has joined the channel [13:48] ezflashback has left the channel [13:48] jzaksh has left the channel [13:48] JumpMast3r has joined the channel [13:51] jj0hns0n_ has joined the channel [13:51] Sembiance: Glenjamin: Yes, but I was looking for a common, relatable task that one might perform. such as looking up ABC from a database and doing XYZ to them, or maybe something with reading files from a disk or something else [13:52] dmkbot: *v0.5.5/node-186364e.exe: listen UNKNOWN * reported by ellisgl: https://github.com/joyent/node/issues/1621 [13:52] slyphon has joined the channel [13:52] Sembiance: Glenjamin: identifying something simple for those async functions to be, something everyone can easily understand as a common task so that they can focus on the actual async code rather than determining what it's trying to do [13:53] tk has joined the channel [13:53] Glenjamin: Sembiance: i see. How about application initialisation: [13:54] Glenjamin: Connect to 2 databases and an AMQP queue in parallel, each connection has multiple steps. start some sort of worker when done [13:55] ph^_ has joined the channel [13:55] StevenSoroka has left the channel [13:56] sonnym has joined the channel [13:56] objectiveous has joined the channel [13:57] necrodearia has joined the channel [13:57] reid has joined the channel [14:00] mit: hi all [14:01] reid_ has joined the channel [14:01] reid_ has joined the channel [14:01] zmbmartin has joined the channel [14:02] matyr has joined the channel [14:02] pagameba has joined the channel [14:02] stalled has joined the channel [14:06] kuebk has joined the channel [14:06] kuebk: jo [14:06] bartt has joined the channel [14:07] smtlaissezfaire has joined the channel [14:07] brolin has joined the channel [14:08] fangel has joined the channel [14:10] jgornick has joined the channel [14:10] kuebk: hello [14:10] mikl has joined the channel [14:10] kuebk: is anyone experiencing npm problems with latest node? [14:10] bnoordhuis: kuebk: yes, it's a known issue [14:10] bnoordhuis: if with latest you mean master [14:10] kuebk: yea [14:10] rbuck has joined the channel [14:10] kuebk: freshly cloned [14:11] bnoordhuis: kuebk: git checkout v0.4.11 [14:11] bnoordhuis: 0.5.x are the unstable/dev releases [14:11] kuebk: yea i know they are unstable [14:11] kuebk: but npm works fine under 0.5.4 [14:11] bnoordhuis: only they're even more unstable than usual right now :) [14:11] kuebk: ah ok [14:12] bartt1 has joined the channel [14:12] kuebk: thx bnoordhuis [14:14] jtsnow has joined the channel [14:14] hackband has joined the channel [14:16] marksoper has joined the channel [14:16] hornairs has joined the channel [14:16] JJMalina has joined the channel [14:17] bartt has joined the channel [14:17] Cromulent has joined the channel [14:18] softdrink has joined the channel [14:18] gkatsev: http.request is how to do XHR from node? [14:19] eldios: no.. is how to do HTTP request.. as it suggest :P [14:19] fermion has joined the channel [14:19] gkatsev: :) [14:19] Sembiance: gkatsev: I use https://github.com/mikeal/request [14:19] nimstr has joined the channel [14:19] jetienne has joined the channel [14:20] gkatsev: Sembiance: looks cool. I want something like this: "request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))" [14:20] fermion has joined the channel [14:20] jetienne has joined the channel [14:21] stagas has joined the channel [14:21] gautema has joined the channel [14:21] EvRide has joined the channel [14:21] Sembiance: gkatsev: well, there you go then ;) [14:21] roflmaoer has joined the channel [14:22] gkatsev: yep, installing it now. [14:22] roflmaoer: yo all [14:22] kmiyashiro has joined the channel [14:22] roflmaoer: i wan to read an 1 megabyte file with the fs module and it saz "ENOEXEC not enough storage to process this command" [14:22] roflmaoer: wtf? [14:22] Orion- has joined the channel [14:22] fson_ has joined the channel [14:23] bnoordhuis: roflmaoer: ENOEXEC? [14:23] bnoordhuis: wtf indeed [14:23] CarterL has joined the channel [14:23] bnoordhuis: can you gist your code? [14:23] bartt has joined the channel [14:23] roflmaoer: bnoordhuis: yes [14:23] roflmaoer: gist? what does that mean lad? [14:24] bnoordhuis: roflmaoer: pastie, pastebin [14:24] roflmaoer: aaa [14:24] roflmaoer: sorry [14:24] roflmaoer: fs.readFile('xyfile', 'binary', function (err, data) { console.log(data); } ); [14:24] slifty has joined the channel [14:24] bnoordhuis: roflmaoer: with what version of node is this? [14:24] roflmaoer: and the filepath is correct if the file is small some bytes it gets opened [14:24] roflmaoer: well methinks latest, on windows [14:25] bnoordhuis: does `node -v` say 0.5.5? [14:25] roflmaoer: gona check minute [14:25] roflmaoer: yep [14:25] roflmaoer: v.0.5.5 [14:25] nibblebot has joined the channel [14:26] roflmaoer: saz sg about tty_win32.js and shite [14:26] bnoordhuis: probably a bug [14:26] roflmaoer: :( [14:26] bnoordhuis: can you open an issue at joyent/node? [14:26] roflmaoer: so unhappy + i fear its my fault [14:26] roflmaoer: or sumtin [14:26] bnoordhuis: well, if it's just fs.readFile, it should work [14:26] bnoordhuis: we're adding windows support but it's not complete yet [14:26] bnoordhuis: or bug free for that matter [14:27] [[zz]] has joined the channel [14:27] roflmaoer: i just test drive and develope in windows production environment gona b linx [14:28] phiggins has joined the channel [14:28] roflmaoer: im aint no advanced user man sorry i dont even know how to open an issue but i will look after it :D [14:28] roflmaoer: just not now [14:28] roflmaoer: :D [14:28] roflmaoer: im gona open this bastard file whatever it takes [14:28] bartt1 has joined the channel [14:29] torsd has joined the channel [14:29] roflmaoer: bnoordhuis so you are a developer? [14:29] roflmaoer: bnoordhuis that's nice [14:29] bnoordhuis: roflmaoer: yeah, i'm a committer [14:29] roflmaoer: bnoordhuis well congrat i really enjoy node :) [14:30] bnoordhuis: thanks :) [14:30] gqlewis has joined the channel [14:30] roflmaoer: bnoordhuis if my monetary situation gets better im gona put my money where my mouth is ;) [14:30] bnoordhuis: roflmaoer: in what way? [14:30] roflmaoer: bnoordhuis i mean i will support the project [14:31] bnoordhuis: roflmaoer: oh, no worries - i'm employed by joyent as is half of the core team [14:31] amigojapan has joined the channel [14:31] tomh has joined the channel [14:31] tomh has joined the channel [14:32] gkatsev: the other half have their own projects/companies/whatever [14:32] roflmaoer: bnoordhuis nice one :) okay im gona fukof :-) leve ya work. cheers [14:32] tuhoojabotti: rofl. [14:33] roflmaoer: you gona pay royaltiz man [14:33] roflmaoer: thats not how it werks [14:33] roflmaoer: stoling half of my name. [14:33] roflmaoer: without paying a dime man [14:33] roflmaoer: :-) [14:33] tuhoojabotti: Maoer. [14:33] roflmaoer: OMFG my lawyer will reach ya [14:33] roflmaoer: trust me [14:33] tuhoojabotti: I'm illegally distributing parts of your nick. [14:33] gkatsev: flmao. [14:33] roflmaoer: peoplaz [14:33] bartt has joined the channel [14:34] roflmaoer: hey [14:34] roflmaoer: calm down [14:34] tuhoojabotti: You know what day tomorrow is? [14:34] gkatsev: friday? [14:34] roflmaoer: pretty sure it is written in a calendar or sumtin [14:34] roflmaoer: check it [14:34] bnoordhuis: sleep off hangover day? [14:34] roflmaoer: its a useful invention [14:34] roflmaoer: LOOOL. [14:34] gkatsev: bnoordhuis: is that your fridays, generally? [14:35] bnoordhuis: gkatsev: yes [14:35] ishupa has joined the channel [14:35] BillyBreen has joined the channel [14:35] gkatsev: fun [14:35] bnoordhuis: most other days of the week too, truth be told [14:35] tuhoojabotti: Which country was IRC invented in? [14:35] roflmaoer: :D [14:35] gkatsev: lol [14:35] roflmaoer: IRC? it was defo IRAK [14:35] mynyml has joined the channel [14:35] roflmaoer: thats what I stands for [14:35] MrNko has joined the channel [14:35] arnee has joined the channel [14:35] tuhoojabotti: Right. [14:35] roflmaoer: Irak chat. [14:35] roflmaoer: or sumtin [14:36] gkatsev: tuhoojabotti: finland [14:36] roflmaoer: yea chattin in a sauna is fun [14:36] gkatsev: according to wikipedia. [14:36] markbao_ has joined the channel [14:36] tuhoojabotti: roflmaoer: Have you ever been to a sauna? [14:36] roflmaoer: tuhoojabotti yep [14:37] tuhoojabotti: Finnish sauna? [14:37] roflmaoer: tuhoojabotti arent everyone [14:37] roflmaoer: tuhoojabotti noo unfortunately not [14:37] roflmaoer: tuhoojabotti :D [14:37] roflmaoer: tuhoojabotti y? [14:37] tuhoojabotti: you have no idea. ;) [14:37] tuhoojabotti: roflmaoer: I AM finnish. [14:37] tuhoojabotti: duh [14:37] roflmaoer: about the chatting part? :D [14:37] roflmaoer: aaaa [14:37] roflmaoer: :D :D [14:37] roflmaoer: nice [14:37] roflmaoer: im from hungary. [14:37] tuhoojabotti: I don't think my ircing devices like the heat/moisture combination. [14:37] roflmaoer: they saz our language is pretty identical [14:37] tuhoojabotti: Not true at all. [14:38] roflmaoer: ye [14:38] roflmaoer: i realized [14:38] roflmaoer: watched finnish tv who [14:38] tuhoojabotti: Same heritage [14:38] roflmaoer: show [14:38] roflmaoer: could not fkin understand a fkin word [14:38] roflmaoer: but maybe its just my linguistic skillz [14:38] tuhoojabotti: No even perkele, puukko, viina? [14:38] tuhoojabotti: ;D [14:38] roflmaoer: heck knowz [14:38] bnoordhuis: tuhoojabotti: both mongolian bastard offspring? [14:38] roflmaoer: what are those? [14:38] gxdssoft has joined the channel [14:38] roflmaoer: bnoordhuis that was rude [14:39] bnoordhuis: roflmaoer: okay, scrap the bastard bit [14:39] bartt1 has joined the channel [14:39] bnoordhuis: but the rest is true though? [14:39] roflmaoer: bnoordhuis no worriez im not being a pussy :D [14:40] dmkbot: *tests failed on RHEL4 * reported by tojocky: https://github.com/joyent/node/issues/1595 [14:40] roflmaoer: bnoordhuis dunno man every decade they say sg different but we are defo from the east [14:40] ph^ has joined the channel [14:40] pietern has joined the channel [14:41] roflmaoer: btw im franly a mix of polish, jew, hungarian, american blood [14:41] roflmaoer: full of nations everyone hates [14:41] roflmaoer: :D [14:41] tuhoojabotti: I'm finnish. [14:41] tuhoojabotti: Everybody likes finns. [14:41] tuhoojabotti: ":D" [14:41] roflmaoer: you are alcoholics [14:41] roflmaoer: :D [14:41] roflmaoer: arent ya? [14:41] tuhoojabotti: Not me. [14:41] roflmaoer: talk about stereotypes lol [14:41] roflmaoer: :D [14:41] tuhoojabotti: ":D" [14:41] yhahn has joined the channel [14:41] tuhoojabotti: viina = booze [14:41] tuhoojabotti: for that matter. [14:41] roflmaoer: like vine? lol finnish is closer to german languages then [14:42] roflmaoer: :D [14:42] tuhoojabotti: not vine. [14:42] tuhoojabotti: vodka :D [14:42] tuhoojabotti: koskenkorva [14:42] roflmaoer: LOOOL. [14:42] roflmaoer: whiskey is for man vodka is for cats [14:42] roflmaoer: men* [14:42] roflmaoer: russians would kill me for that sentence :P [14:42] fangel has joined the channel [14:42] gkatsev: they would [14:43] tuhoojabotti: Your cat would [14:43] tuhoojabotti: :u [14:43] roflmaoer: nooo i have to cats [14:43] gkatsev: the cat will be dead, unfortunately. [14:43] roflmaoer: neither of them is violent [14:43] roflmaoer: two* [14:43] tuhoojabotti: Linus is also finnish [14:43] ishupa: member:roflmaoer its ok, russian drink wiskey to, not only vodka [14:43] ishupa: fk [14:43] roflmaoer: ishupa :D are you from russia? [14:44] gkatsev: they drink whatever is available [14:44] ishupa: yep [14:44] roflmaoer: hehe i fkin love your kind [14:44] bnoordhuis: tuhoojabotti: it just goes to show that the most famous fin is an obscure geek [14:44] roflmaoer: you are the most crazy peeps on planet [14:44] roflmaoer: frankly [14:44] tuhoojabotti: We have angry birds, perkele! [14:44] aheckmann has joined the channel [14:44] Sembiance: roflmaoer: who are the crazies? [14:44] roflmaoer: Sembiance russianz [14:44] roflmaoer: arent they? [14:44] ishupa: roflmaoer: ty [14:44] ishupa: -) [14:44] roflmaoer: look at the youtube widz :D [14:44] tuhoojabotti: What's wrong in being obscure geek anyways? :( [14:44] roflmaoer: =) [14:45] jkj_: there seems to be pro russians.. at least one: http://fpsrussia.com/ [14:45] sub_pop has joined the channel [14:45] bartt has joined the channel [14:45] ishupa: thats just u2b vids man [14:45] roflmaoer: arent everything on youtube is real? [14:45] roflmaoer: they TRICKED me [14:45] roflmaoer: :D [14:45] jkj_: roflmaoer: sorry. not everything in youtube is real, but in television yes ;) [14:46] roflmaoer: aaa, back to TV then my government was right about it [14:46] roflmaoer: TV is much more real then internetz [14:46] ishupa: not everything on irc is real [14:46] ishupa: -) [14:46] roflmaoer: not everything is real even in real life [14:46] dmkbot: *UDP max packet size..* reported by rootslab: https://github.com/joyent/node/issues/1623 [14:46] aliem_ has joined the channel [14:46] roflmaoer: you are living in the matrix [14:46] roflmaoer: but dont stress yerself about it [14:46] tuhoojabotti: Take the blue pill. [14:46] DrMcKay: you guys obviously forgot about poles :) [14:47] roflmaoer: machinz having a good time eating out your flesh [14:47] roflmaoer: poles? [14:47] bnoordhuis: DrMcKay: that's what the whole world has been trying to do for decades [14:47] roflmaoer: polish peepz? [14:47] DrMcKay: bnoordhuis: lol [14:47] roflmaoer: my grandpa is from poland [14:47] roflmaoer: waz [14:47] roflmaoer: lol [14:47] roflmaoer: i never knew him [14:48] JSManiacs has joined the channel [14:48] roflmaoer: so did everyone see that crazy russian vid [14:48] roflmaoer: ima gona link it in [14:48] roflmaoer: wait for it [14:48] roflmaoer: its gona be [14:48] roflmaoer: legen... [14:48] roflmaoer: ..dary [14:48] gkatsev: you missed a part "wait for it" [14:49] pickels has joined the channel [14:49] mcepl has left the channel [14:49] roflmaoer: http://www.youtube.com/watch?v=Gbgyy04_OV0 [14:49] roflmaoer: yea i fucked it but it wuz intentional man [14:49] gkatsev: lol [14:49] tuhoojabotti: http://i44.tinypic.com/2pqrez9.png related [14:49] roflmaoer: i love the youpube comments =) [14:49] malletjo: Hello folks, i have some huge process and i want them in sync mode. As far as i know , i can't know when the process is completed ( parse xml + mysql queries) . The only way i found it to start a child process and add "exit" event on it. So its working perfectly. The problem is since its all separated process , i can't do a big mysql transaction but only one for each process. Can't find a way to do both , any ideas ? [14:49] Deegie has joined the channel [14:50] DrMcKay: tuhoojabotti: we actually had one guy in space [14:50] Glenjamin: malletjo: why do you say you can't know when the process is completed? [14:50] tuhoojabotti: DrMcKay: So did we. [14:50] tuhoojabotti: :U [14:50] bartt1 has joined the channel [14:50] tuhoojabotti: Kind of. [14:51] malletjo: Glenjamin, well how can i know when all my queries are completed ( when my queue is == 0 ? ) [14:51] Glenjamin: well you get a callback on query completion [14:51] wilmoore has joined the channel [14:51] malletjo: indeed [14:51] jzacsh has joined the channel [14:51] jzacsh has joined the channel [14:51] Glenjamin: so what's the problem? [14:52] _PalmerEk_ has left the channel [14:52] malletjo: me , obviously j/k [14:53] ishupa: anybody here using node.js in production? [14:53] tuhoojabotti: Oh [14:53] tuhoojabotti: bedtime [14:53] Yoric has joined the channel [14:53] ironlad has joined the channel [14:53] ncb000gt: ishupa: I was at my previous employer [14:53] dmkbot has joined the channel [14:53] vicapow has joined the channel [14:54] vicapow: anyone know how I can validate an input before the 'set' modifier is applied? [14:54] vicapow: in mongoose? [14:54] pickels: Anybody listened to a good podcast lately? Doesn't have to be node specific. [14:55] malletjo: Glenjamin, check this scenario : open xml file , read first object , add query , read next object add query ... until it's done. Since all "add queries" are async , i can't really know when they all are completed ( except check in the queue if any exist .. or store a counter and --counter when i'm in the callback [14:55] gkatsev: pickels: I listen to several. What content do you want? [14:55] Glenjamin: malletjo: what are you adding the query to? [14:56] bartt has joined the channel [14:56] roflmaoer: how can i open the file if fs is buggy on windows? [14:56] ToXiC has joined the channel [14:56] malletjo: insert into db ( stuff from XML ) ?!? not sure to understand your question [14:56] roflmaoer: any examply of that stream thingie i have read about [14:56] roflmaoer: ? [14:57] malletjo: i could use callback( callback ( callback ( callback ( .. HEY ITS COMPLETED ) ) ) ) , but i'mt not lot of stuff are async [14:58] Glenjamin: malletjo: https://github.com/caolan/async#queue [14:58] mikl has joined the channel [14:59] Glenjamin: create a queue for each xml file, add each query as a worker to this queue, when finished parsing the xml file add a drain event to the queue which signals completion to the caller [15:00] wnoronha_ has joined the channel [15:00] bnoordhuis: .. Date() + 42 [15:00] catb0t: 'Thu Sep 01 2011 11:00:31 GMT-0400 (EDT)42' [15:00] Guest17932: hey i need help to create a pub sub real time messaging system [15:00] bnoordhuis: doesn't make sense [15:00] bnoordhuis: javascript... [15:01] Guest17932: @bnoordhuis are u ref to my query? [15:01] jkj_: really love this event driven programming world... everything is so comfy [15:01] malletjo: Glenjamin, sounds good i really need to put all queries into queue , i assuming its using a counter like i was talking about. [15:01] Yuffster_work has joined the channel [15:01] bartt1 has joined the channel [15:01] bnoordhuis: Guest17932: no, check 2 lines up [15:02] Guest17932: k cool :) [15:02] DrMcKay: umm... I've though that it would implicitely convert to int [15:02] MrNko has joined the channel [15:02] DrMcKay: .. Date() [15:02] catb0t: 'Thu Sep 01 2011 11:03:01 GMT-0400 (EDT)' [15:03] DrMcKay: .. new Date() [15:03] catb0t: Thu, 01 Sep 2011 15:03:07 GMT [15:03] DrMcKay: .. new Date() + 42 [15:03] catb0t: 'Thu Sep 01 2011 11:03:10 GMT-0400 (EDT)42' [15:03] DrMcKay: wut? [15:03] __sorin__ has joined the channel [15:03] smtlaissezfaire has joined the channel [15:03] Glenjamin: .. 42 + new Date() [15:03] catb0t: '42Thu Sep 01 2011 11:03:33 GMT-0400 (EDT)' [15:03] Glenjamin: hrm [15:03] losing has joined the channel [15:03] mcepl has joined the channel [15:03] Yuffster_work has joined the channel [15:03] DrMcKay: wait, how did it work in my bot? [15:03] DrMcKay: I'm pretty sure I did + and - on dates [15:04] tuhoojabotti: Good night ya'll. [15:04] bnoordhuis: .. +(new Date()) + 42 [15:04] catb0t: 1314889457057 [15:04] Glenjamin: > node -e "new Date() + 42" [15:04] bnoordhuis: DrMcKay: like that probably [15:04] Glenjamin: Thu Sep 01 2011 16:04:05 GMT+0100 (BST)42 [15:04] dmkbot: *Avoid buffer overrun with 'binary' encoding* reported by koichik: https://github.com/joyent/node/issues/1624 [15:04] bnoordhuis: sleep tight, tuhoojabotti [15:04] tuhoojabotti: It's 1800, time to sleep. :P [15:04] DrMcKay: bnoordhuis: true [15:05] DrMcKay: what the hell?! [15:05] DrMcKay: GitHub is going nuts [15:05] Glenjamin: anyway [15:05] DrMcKay: ah, no [15:06] DrMcKay: they fucked up timezones again :< [15:06] fitzgen has joined the channel [15:06] Glenjamin: use Date.now() [15:07] pizthewiz has joined the channel [15:08] DrMcKay: correct me if I'm wrong, but if someone commited just now, it should be displayed as "just now", right? [15:08] geetarista has joined the channel [15:08] slyphon has joined the channel [15:08] dmkbot: *v0.5.5/node-186364e.exe: listen UNKNOWN * reported by ellisgl: https://github.com/joyent/node/issues/1621 [15:09] DrMcKay: and how come it reports every issue change? [15:09] DrMcKay: this is too much for me, I quit. [15:09] dmkbot: *Don't eval the command in the REPL twice when an Error is thrown.* reported by TooTallNate: https://github.com/joyent/node/issues/1622 [15:09] DrMcKay: yeah, shut the fuck up! [15:10] springmeyer has joined the channel [15:10] Aikar: /wrist [15:10] springmeyer has left the channel [15:11] jiggliemon has joined the channel [15:11] Glenjamin: DrMcKay: i'd expect the API to always return a time, "Just now" would be in the HTML view layer [15:13] dezmozz has joined the channel [15:13] bnoordhuis: DrMcKay: i like it [15:13] ryanfitz has joined the channel [15:13] Cromulent has joined the channel [15:13] DrMcKay: Glenjamin: no, it's about time of commits [15:13] fatjonny has joined the channel [15:13] DrMcKay: Glenjamin: I could commit now and you would see "2 hours ago", because I'm in +0200 [15:13] eldios: oh.. for the guys who partcipated before in the ID vs CLASS matter ---> http://css-tricks.com/818-the-difference-between-id-and-class/ [15:14] Guest17932 has left the channel [15:14] DrMcKay: bnoordhuis: yeah, but "since" parameter [15:14] DrMcKay: bnoordhuis: well, it may be useful [15:14] DrMcKay: I don't know. [15:14] Glenjamin: that's handled by "[log] date = relative" in git config i think [15:14] dezmozz: need help with pub/sub and redis [15:15] DrMcKay: Glenjamin: but each commit date has a timezone info anyway, right? [15:15] DrMcKay: Glenjamin: they could, like, use it or something [15:15] Glenjamin: the actual commit *i'd assume* is stored as a timestamp, that bit is just formatting by git-log [15:16] CIA-69: node: 03Nathan Rajlich 07master * rcf24f56 10/ lib/repl.js : repl: don't eval twice when an Error is thrown - http://git.io/2Z1YwQ [15:16] eldios: loved the Barcodes and Serial Numbers analogy [15:17] rednul has joined the channel [15:17] Sembiance: dezmozz: I use redis, but not pub/sub with it, sorry. [15:17] DrMcKay: Glenjamin: I'd go and check it, but I'm depressed at the moment [15:17] sebastia_ has joined the channel [15:17] Sembiance: dezmozz: there is a #redis chan too, depending on how much your problem lies with redis vs node.js [15:18] chaz has joined the channel [15:18] Glenjamin: DrMcKay: git show --format=raw [15:18] Glenjamin: timestamp + timezone [15:19] DrMcKay: Glenjamin: yeah, I just grepped my repo [15:19] dezmozz: Sembiance: its more abt node.js thn abt redis..because I have to deal with asynchrony with redis [15:20] mendel_ has joined the channel [15:20] gazumps has joined the channel [15:20] JSManiacs has joined the channel [15:20] gxdssoft has joined the channel [15:21] maushu: Removed functions in the manual should be strikethrough. [15:21] gkatsev: hm... I installed the reqeust module globally, but node is saying it can't find it :( [15:21] lluad has joined the channel [15:21] shanebo has joined the channel [15:21] DrMcKay: someone should make a banner about node_modules. [15:21] phiggins has joined the channel [15:22] DrMcKay: gkatsev: run npm link in your project directory if your project has a package.json [15:22] Metal3d has joined the channel [15:23] gkatsev: it's just weird because other modules I installed globally worked... [15:24] bnoordhuis: maushu: we take patches [15:24] adambeynon has joined the channel [15:24] DrMcKay: every library should link to that image Marak posted [15:25] progme has joined the channel [15:25] gkatsev: DrMcKay: linking worked. Though, shouldn't it work without linking if it's installed globaly? [15:25] Marak: what did i do [15:25] DrMcKay: Marak: "we take pull requests" [15:25] Glenjamin: installing globally is usually a bad idea [15:25] robertfw has joined the channel [15:25] gkatsev: pics or it didnt happen [15:25] gkatsev: ? [15:26] rootslab has joined the channel [15:26] brianc has joined the channel [15:27] jetienne_ has joined the channel [15:28] DrMcKay: this: https://a248.e.akamai.net/assets.github.com/img/22c441253ceb9b12e34661df039a9fe176d796f4/687474703a2f2f692e696d6775722e636f6d2f43516870412e6a7067 [15:28] fangel has joined the channel [15:28] temp01 has joined the channel [15:28] RenJuan has joined the channel [15:29] Orion-: Any opinion on what's the best mongodb driver for node ? for me best would mean lightweight and fast . What's your opinion ? [15:29] RenJuan: not from me Orion- [15:29] febits has joined the channel [15:29] gkatsev: DrMcKay: hehe [15:30] lukegalea has joined the channel [15:30] Orion-: Ok RenJuan so what's the best mongodb driver for you ? [15:30] gkatsev: hm... weird, node didn't throw an error when it tried to access the fs module without being required [15:30] RenJuan: I haven't used mongodb Orion- [15:30] Metal3d has joined the channel [15:31] fairwinds: hi, has anyone done anything more serious with chat. I am interested in this functionality but wish to isolate to groups without running additional servers. Is there an implementation that does this? [15:31] tjholowaychuk has joined the channel [15:31] Orion-: Oh so your opinion was really informative indeed :) [15:31] RenJuan: Orion-, as I entered as you asked, it seemed polite to respond. [15:32] Orion-: RenJuan: And I thank you for that :) [15:32] RenJuan: np [15:33] alnewkirk has joined the channel [15:34] Stephen has left the channel [15:34] jakehow has joined the channel [15:34] jakehow__ has joined the channel [15:34] jakehow_ has joined the channel [15:34] Metal3d has joined the channel [15:34] tmpvar has joined the channel [15:35] lukegalea: Hey guys :) I just posted a Show HN for my NodeJS diabetes management app. Would love some up votes if you guys are interested. http://news.ycombinator.com/item?id=2950332 [15:35] Venom_X has joined the channel [15:36] eazyigz has joined the channel [15:36] Spion_ has joined the channel [15:38] jkj_: lukegalea: cool [15:38] jesusabdullah: DIABEETUS [15:38] cosmincx has joined the channel [15:38] jesusabdullah: lukegalea: Neat idea! [15:38] Marak: lolwtf [15:38] Marak: which one of you guys made this: http://i.imgur.com/Whgxd.png [15:38] lukegalea: thanks! My wife's diabetic. We couldn't find anything that met her needs so I built it :) [15:38] Marak: thats some hateful shit, even for hackernews [15:39] Marak: lol [15:39] jesusabdullah: lukegalea: Nice [15:39] DrMcKay: lukegalea: nice, my friend is diabetic, I will surely show it to him [15:39] jasong_at_apache has joined the channel [15:39] lukegalea: DrMcKay: Thanks. Is he type 1 or type 2? [15:40] DrMcKay: lukegalea: 2 [15:40] jesusabdullah: Marak: Wow, that's well researched [15:40] Marak: jesusabdullah: i mean not really [15:40] Marak: jesusabdullah: i dont see any scientific data [15:40] jesusabdullah: Well [15:40] jesusabdullah: That's true [15:40] jesusabdullah: I mean, it's anecdotal [15:41] Marak: and like all the stuff at the bottom could be easily proved or disproved i would think [15:41] jesusabdullah: but it's still way more time than I would've put into it [15:41] lukegalea: DrMcKay: Cool. I put a lot of effort into the Type 1 stuff, even though it's less than 5% of the population just because there isn't much out there in the way of apps for type 1, but he should be happy from a type 2 perspective too. [15:41] Marak: i would have personally gone with mspaint rage faces i think [15:41] Marak: this looks like a total photoshop job [15:42] Metal3d has joined the channel [15:42] jesusabdullah: yeah [15:42] stephank has joined the channel [15:42] jesusabdullah: i would've just textfiled it [15:42] Glenjamin: i personally ignore all the startup talk and just read the dev/tech articles [15:42] DrMcKay: lukegalea: you may think about some way of communication with glucometers [15:42] vicapow: any suggestions on debugging a redirect loop? [15:43] DrMcKay: lukegalea: he's working on this kind of stuff [15:43] madsleejensen has joined the channel [15:43] ryanfitz has joined the channel [15:43] Marak: lets figure out where this came from [15:44] Marak: http://pastebin.com/qKZFsZpd [15:44] lukegalea: DrMcKay: : Ya. Don't think that'll work using pure HTML5. I wanted to make it accessible to non-ios folks, but I might later make a native app for android and iOS to do tighter hardware integration. [15:44] Marak: http://twitter.com/#!/RKHilbertSpace/status/105150225454333953 [15:44] Marak: there we go [15:44] Metal3d has joined the channel [15:45] al3xnull has joined the channel [15:45] Marak: http://www.linkedin.com/pub/brandon-smietana/12/898/163 ? [15:45] Marak: internet detectived [15:45] softdrink: ACTION punches Apple in the face [15:45] DrMcKay: Marak: :D [15:45] Marak: Specialties [15:45] Marak: Technology Strategy, Business Strategy, Software Project Management, Machine Learning, Semantic Web Technologies, Mathematical Finance, Natural Language Processing [15:46] Marak: :p [15:46] frega has joined the channel [15:46] DrMcKay: Marak: mail him [15:46] Marak: hrmmm [15:46] DrMcKay: Marak: when he responds, you'll know where he lives [15:46] Marak: lol [15:46] Marak: i dont think i care that much [15:47] Renegade001 has joined the channel [15:47] Marak: i care just enough for 5 minutes of googling [15:47] DrMcKay: Marak: then call him and harass him [15:47] synkro has joined the channel [15:47] DrMcKay: Marak: or just breath loudly [15:47] iammerrick has joined the channel [15:47] Marak: maybe we could start a meetup [15:47] DrMcKay: (I think I know why my social relations fail) [15:47] Marak: of people who dont like HN [15:48] markwubben has joined the channel [15:48] ivanfi has left the channel [15:49] Destos has joined the channel [15:49] kulor-uk has joined the channel [15:50] iammerrick: Is there an article somewhere about how to organize your modules etc to build something to the size of learnboost or github? I'm finding it quite challenging to build apps of that size on node.js because I'm n00b like that. [15:50] Marak: iammerrick: nodejitsu has one in the pipeline for how we do it [15:51] Marak: id recommend looking through http://github.com/nodejitsu for an idea of structure, all our apps should follow the same conventions [15:51] scott_gonzalez has joined the channel [15:51] iammerrick: Marak: awesome. thank you. [15:51] Marak: we've prob got > 200 modules across the team [15:51] iammerrick: Marak: Thats great, so glad to hear it, thanks again for the link. [15:52] zgryw has joined the channel [15:52] Marak: jesusabdullah: i tweeted that link, that ought to be fun [15:52] bradleymeck has joined the channel [15:52] ironlad has joined the channel [15:53] Glenjamin: Marak: any particular reason to choose /lib/.js/ + /lib// over /lib/index.js and /lib/ ? [15:53] CoinOpeBoy has joined the channel [15:53] Marak: Glenjamin: prob for composition of larger projects which have multiple libraries [15:53] Marak: and are not npm deps [15:54] tjholowaychuk: Glenjamin ypically you have ./index.js as well so you can just clone a repo and require() it etc [15:54] tjholowaychuk: typically* [15:54] tjholowaychuk: but some people dont [15:54] Glenjamin: i'd use package.json for that purpose [15:54] Marak: tjholowaychuk: derp, use the right attribute in package.json [15:54] tjholowaychuk: so you have to require('./foo/lib/foo') [15:54] Marak: no, you use the 'main' property in package.json [15:54] tjholowaychuk: meh [15:54] Marak: and require('foo') [15:54] Marak: dont tell me how my libraries work [15:54] tjholowaychuk: no reason to couple to npm [15:54] tjholowaychuk: for that [15:54] tjholowaychuk: https://github.com/visionmedia/node-http-proxy/commit/8cf6d7c111aee11fa49dde98d02780ebd68fee6c [15:54] Glenjamin: it's not an npm thing [15:54] tjholowaychuk: i can tell you [15:54] Glenjamin: it's in node/modules [15:54] tjholowaychuk: that you have a massive hole there [15:55] Marak: o noes [15:55] hij1nx has joined the channel [15:55] Marak: some call IEFT [15:55] ajohnson1 has joined the channel [15:55] Glenjamin: tjholowaychuk: http://nodejs.org/docs/latest/api/modules.html#folders_as_Modules [15:55] abraxas has joined the channel [15:55] jaequery has joined the channel [15:55] phiggins has joined the channel [15:56] DrMcKay: Marak, tjholowaychuk: should I post it to Hacker News :p ? [15:56] kevwil has joined the channel [15:56] tjholowaychuk: Glenjamin convention > package.json imo for that sort of thing [15:56] tjholowaychuk: if people stuck with ./index.js we wouldnt need that [15:56] tjholowaychuk: this just turns into ruby's gem [15:56] tjholowaychuk: where everything is a mess [15:57] Glenjamin: tjholowaychuk: package.json *is* the convention [15:57] tjholowaychuk: it is now yeah [15:57] caolanm has joined the channel [15:57] wilmoore has joined the channel [15:58] jesster7 has joined the channel [15:58] wnoronha_ has joined the channel [15:58] nXqd has joined the channel [15:59] cognominal_ has joined the channel [16:00] DrMcKay: I don't quite like it, after all package.json is a npm stuff [16:00] omolina has joined the channel [16:00] Marak: package.json is from commonjs [16:00] tjholowaychuk: it's kinda useless we already have the lookup logic [16:00] tjholowaychuk: and npm test etc [16:00] tjholowaychuk: is stupi [16:01] tjholowaychuk: i dont want npm to run my tests [16:01] tjholowaychuk: nor do i want to require npm to run tests [16:01] Glenjamin: having a standard way to define how to run tests is fine [16:01] Marak: tjholowaychuk: sounds like someone is upset for having to conform to other peoples conventions [16:01] Marak: tjholowaychuk: i think i have a meme image for this [16:01] tjholowaychuk: Glenjamin make test [16:01] tjholowaychuk: its been done for years lol [16:01] Glenjamin: except i don't want to write a makefile, i want to use a rakefile [16:01] zastaph has joined the channel [16:01] Glenjamin: or ant [16:01] Glenjamin: or whatever [16:01] tjholowaychuk: ahahahaha [16:02] tjholowaychuk: ACTION headdesk [16:02] Cromulent has joined the channel [16:02] Glenjamin: npm test just runs the test command defined in package.json [16:03] mcepl: does anybody have any ideas about https://github.com/laverdet/node-fibers/issues/33 ? [16:04] robi42 has joined the channel [16:05] apejens has joined the channel [16:05] wookiehangover has joined the channel [16:05] kohai has joined the channel [16:06] Marak: hey kohai , how is it going [16:06] Marak: !insult truthy values [16:06] kohai: truthy values is a wombat-loving heifer-puncher! [16:07] adambeynon has joined the channel [16:07] Glenjamin: what's wrong with truthy values? [16:08] mike5w3c_ has joined the channel [16:08] smathy has joined the channel [16:09] Styles has joined the channel [16:09] rfay_ has joined the channel [16:09] Marak: Glenjamin: http://docs.nodejitsu.com/articles/javascript-conventions/what-are-truthy-and-falsy-values [16:09] DrMcKay: mcepl: https://github.com/isaacs/rimraf/blob/1.0.3/rimraf.js#L43 [16:09] DrMcKay: mcepl: it has to be a bug in npm, I hope this will help you to track it down [16:10] Glenjamin: Marak: i know what they are, i assumed your !insult was a statement against their use [16:10] Marak: i didnt say it [16:10] Marak: :p [16:11] rrkhissamov has joined the channel [16:12] kohai: @JavaScriptAtSO Node.js alone or as a companion to another server tool http://t.co/CrZNXal [16:15] JaKWaC has joined the channel [16:15] alvaro_o has joined the channel [16:16] Styles has joined the channel [16:16] eventualbuddha has joined the channel [16:16] dexter_e has joined the channel [16:18] JaKWaC has joined the channel [16:19] nphase has joined the channel [16:20] apanda has joined the channel [16:21] malkomalko has joined the channel [16:22] eignerchris has joined the channel [16:22] eastender has joined the channel [16:22] kohai: @maraksquires http://t.co/gbbxu5S is looking better everyday , more updates coming this afternoon! [16:23] DrTeggy has joined the channel [16:24] blup has joined the channel [16:25] Yuffster_work has joined the channel [16:26] S1r10n has joined the channel [16:27] DrMcKay: kohai should resolve shortened links, discuss. [16:27] openpercept has joined the channel [16:28] jesusabdullah: I'd like it to resolve t.co links [16:28] Draggor: great, another tweeting bot to ignore? [16:28] DrMcKay: jesusabdullah: yes [16:28] jesusabdullah: DrMcKay: It's the same tweeting bot that's been around for, idk [16:28] jesusabdullah: a long time [16:28] jesusabdullah: er [16:29] Draggor: whee tab completion [16:29] jesusabdullah: Draggor: I meant you. >:O [16:29] Draggor: I figured :3 [16:29] jesusabdullah: hehe [16:29] Draggor: I wonder if my client is going screwy on capitalization? [16:29] Draggor: I did ignore it when it first showed up [16:29] Draggor: ...or it off'd itself, because it's telling me I have nothing in my ignore list [16:29] Raynos: I released a neat library for managing propertydescriptors and someone mentioned that I should post it to the node ML. Is that self advertisements or helping the community? I can't tell what the "guidelines" are [16:30] DrMcKay: ah, resolving those should be easy [16:30] DrMcKay: it already looks for URLs [16:30] S1r10n: hi... can someone help me with redirecting stdout to a file? so far I got it working using this: http://pastebin.com/tpNvgv2a but I hardly understand what I'm even doing there... (stole most of it here: http://groups.google.com/group/nodejs/browse_thread/thread/46face6b50a1f7ae?pli=1 ) [16:30] kohai: @d3x7r0 @igama and I'll keep working on my projects with Node.JS and CouchDB. Still hope to go to @codebits to discuss it a bit with awesome folks [16:30] jtrudeau has joined the channel [16:31] kohai: @AzharBandeAli So tired of reading about node.js everywhere. And so so so so SOOOOO tempted to end my 'side project' hiatus early! [16:31] JJMalina has joined the channel [16:32] jmalina has joined the channel [16:32] Draggor: Someone make kohai say something [16:32] squeese has joined the channel [16:32] gqlewis has joined the channel [16:33] Marak: kohai has a rate limiter , so hes more quiet when the room is talking [16:34] chrislorenz has joined the channel [16:34] Draggor: meh, in theory that filter should do it [16:34] Draggor: no idea why that got blasted [16:34] trentm has joined the channel [16:34] chapel: !insult filters [16:34] kohai: filters actually looks rather nice today. [16:35] Draggor: Ahh, sweet silence [16:35] DrMcKay: longurl.org has a decent API for unshortening [16:36] ironlad has joined the channel [16:36] DrMcKay: I will do it. tomorrow. [16:36] al3xnull has joined the channel [16:36] JamesS_ has joined the channel [16:37] kitt has joined the channel [16:37] kohai: @bigsanchen Creating a quick Todo listing app on Windows using IIS7, Node.js and Mongodb - amazedsaint's… http://t.co/FXKzpQ9 [16:37] DrMcKay: of course if unshortening them makes sense [16:37] severb has joined the channel [16:37] DrMcKay: does it? [16:37] severb: Did anyone managed to scale socket.io out of the box? [16:38] DrMcKay: yeah, I knew it doesn't [16:38] DrMcKay: but hey! it actually makes even better sense [16:38] dezmozz has joined the channel [16:38] DrMcKay: does twitter shorten urls to other shorteners? [16:39] JSManiacs has joined the channel [16:39] booo has joined the channel [16:39] TooTallNate has joined the channel [16:39] DrMcKay: Marak: kohai only looks for 'node.js'? [16:39] japj has joined the channel [16:41] anubhaw has joined the channel [16:42] TomY has left the channel [16:44] broofa has joined the channel [16:44] DrMcKay: no, wait, kohai actually tries to unshorten [16:45] Poetro_ has joined the channel [16:45] Poetro_ has joined the channel [16:45] isaacs has joined the channel [16:47] captain_morgan has joined the channel [16:48] kohai: @sleparc This Time, You’ll Learn Node.js | Nettuts+ http://j.mp/pXODJN (via Instapaper) [16:49] madsleejensen has joined the channel [16:49] Glenjamin: it's funny how you focus on different features depending on your background [16:50] Glenjamin: there's a whole big section on the REPL in that link, I'm working on a node intro and i'd forgotten about the repl entirely [16:50] Glenjamin: coming from python/ruby you take it for granted [16:50] jakehow__ has joined the channel [16:50] jakehow_ has joined the channel [16:50] jakehow has joined the channel [16:51] amerine has joined the channel [16:51] cha0s has joined the channel [16:51] cha0s has joined the channel [16:51] kitt has joined the channel [16:51] dmkbot: *ClientResponse should emit 'end' event after ClientRequest::abort* reported by wildchild: https://github.com/joyent/node/issues/1409 [16:51] kohai: @TylerGalpin Any node.js gurus interested on working on a cool project, with great folks, for equity - hit me up! [16:51] jiggliemon: This 'step' and 'flow-js' stuff doesn't feel natureal [16:52] jiggliemon: *natural [16:53] Glenjamin: jiggliemon: tried async? I find it doesn't try to be too fluent with it's calling syntax - so i prefer it [16:53] Marak: jiggliemon: async is the way to go [16:53] Marak: !help async [16:53] jiggliemon: I'm going to look at it. [16:53] Marak: dammit [16:53] Glenjamin: https://github.com/caolan/async [16:53] jiggliemon: Cause this is too awkward. [16:53] pt_tr has joined the channel [16:54] japj: DrMcKay: I sense a !help patch coming to dmkbot from Marak [16:54] jiggliemon: Does this really make working with async javascript easier? [16:54] jiggliemon: any of these projects? [16:55] Marak: jiggliemon: async does, yes [16:55] Marak: jiggliemon: but really, code structure does [16:55] DrMcKay: japj: :D [16:55] adambeynon has joined the channel [16:55] DrMcKay: but yeah, I should write a help thing [16:55] Marak: jiggliemon: if you find yourself in a place with 8 nested callbacks in one method scope, you dun goofed [16:55] DrMcKay: well, it's generally on my TODO list [16:55] Marak: jiggliemon: you should have methods no longer then 15 lines and 2 nested callbacks, max [16:56] Marak: for the most part... [16:56] JumpMast3r has joined the channel [16:56] jiggliemon: Marak: That's what im thinking.. And these pseudo-async libs only mask your goofs [16:56] DrMcKay: methods shouldn't be longer than your screen is [16:56] jiggliemon: And it's just to load files async instead of sync. [16:56] jiggliemon: I don't know if there's even value in that [16:57] mpavel has left the channel [16:57] jiggliemon: *read [16:57] Marak: jiggliemon: sync loads block your process [16:57] severb has left the channel [16:57] Marak: jiggliemon: which will nuke your concurrency [16:57] fitzgen has joined the channel [16:58] Marak: i use sync loads all the time, for init stuff or one person scripts [16:58] Marak: its great [16:58] Marak: i use a bunch of sync loads on app init [16:58] kenperkins has joined the channel [16:58] Marak: but not inside anything that requires concurrency [16:59] shiawuen has joined the channel [17:00] mrsrikanth has joined the channel [17:00] felixhummel has joined the channel [17:01] seebees has joined the channel [17:01] JJMalina has joined the channel [17:02] shiawuen: Hi, is there a thread of common problem for installing node on the mailing list? [17:02] kohai: @doristchen Running node.js with IIS on windows is cool. See more at http://t.co/dchd5UA [17:03] jackbrown has joined the channel [17:03] te-brian has joined the channel [17:03] zentooo has joined the channel [17:03] greg has joined the channel [17:03] shiawuen: having problem to get node running on Lion =\ [17:03] CrypticSwarm has joined the channel [17:04] zentooo has joined the channel [17:05] dezmozz: is it possible to store an object as a message in redis and publish it ? #noob [17:05] zentooo has joined the channel [17:06] __main__ has joined the channel [17:06] tylerstalder has joined the channel [17:06] ryanj has joined the channel [17:06] zentooo has joined the channel [17:06] Marak: need help with beat, http://somethingcoded.nko2.nodeknockout.com/ [17:06] zentooo has joined the channel [17:06] amerine has joined the channel [17:07] mlb- has joined the channel [17:08] kohai: @fdiotalevi @gicappa no no, usual stuff for me. I was in their team only for the node.js knockout last week [17:08] cjroebuck has joined the channel [17:09] kohai: @_felipera @nmartignole @mandubian web layer is a node.js and #playframework #scala combo. elasticsearch hbase hadoop etc. some great tech at @klout! [17:10] guidocalvano has joined the channel [17:10] guidocalvano: does anyone know if I can store the class of an object in one of its members in C++ ? [17:11] bradleymeck has joined the channel [17:11] adrianmg has joined the channel [17:11] cha0s has joined the channel [17:11] cha0s has joined the channel [17:11] tmpvar: guidocalvano, do you mean c++ class or prototype? [17:11] guidocalvano: C++ class [17:11] mikaelg has joined the channel [17:12] guidocalvano: node::ObjectWrap automatically casts from and to a void* [17:12] Yuffster_work has joined the channel [17:12] StanlySoManly has joined the channel [17:12] kohai: @jstackhouse Check out Node Knockout for the latest and best in node.js apps. then vote for @publicclass's nouveau Pong http://t.co/a6udb4F #hint [17:12] pandeiro: can someone tell me what's wrong with this function? Do I have a race condition with the downloading/writing to file? http://sprunge.us/ZbGH?js [17:13] mikaelg: howdy everyone [17:13] navaru has joined the channel [17:13] MrNko has joined the channel [17:14] JSManiacs: pandeiro: what is it doing wrong? [17:14] TheJH: pandeiro, not sure about what writing to a file before it's opened will do [17:14] TheJH: pandeiro, maybe it gets buffered, but I'm not sure [17:14] jerrysv has joined the channel [17:14] pandeiro: JSManiacs: TheJH: it has been working fine but just now it produced an error that the file wasn't there in /tmp/ [17:14] pandeiro: (when my callback tried to do something with it) [17:14] guidocalvano: if I want to call function bound to some object, a function which is bound to the parent type of that object, it fails because if the bound object is unwrapped, it is cast from void* to its parent class. [17:15] guidocalvano: this fails because it can't find the member function anymore [17:15] wadey has joined the channel [17:15] pandeiro: should i spool it somehow instead of just doing stream.end() on res's 'end' event? [17:15] TheJH: pandeiro, I see no place where it waits for anything with the file [17:15] wilmoore has joined the channel [17:16] guidocalvano: if I could somehow make the parent class functions know they are really operating on a child class object, then I can cast without worries [17:16] TheJH: pandeiro, you have a problem if your HD is very busy and the whole write gets buffered in PAM, I think [17:16] TheJH: *RAM [17:16] JSManiacs: panderio: I would at least call 10 stream = fs.createWriteStream(filepath); before you make the request [17:16] vidi has joined the channel [17:17] dmkbot: *url.resolveObject should return the same object as url.parse* reported by seebees: https://github.com/joyent/node/issues/1596 [17:17] JSManiacs: but I guess it really doesn't matter [17:17] pandeiro: TheJH: JSManiacs: ok thanks, I am trying to parse your advices :) [17:17] TheJH: pandeiro, wrap your callback call in a listener on streams event 'close' [17:17] pandeiro: yeah because i just tested it again and it worked for a slightly smaller file... [17:18] hydrozen has joined the channel [17:19] pandeiro: TheJH: is that as simple as stream.on('close', function() { [callback] }) ? right there in the same place? [17:19] chovy: how should i strip ../../../foo.txt of a relative filename path? [17:19] chovy: the ../../../ [17:19] TheJH: pandeiro, mhm, should work [17:20] TheJH: chovy, you have a base path, right? [17:20] pandeiro: TheJH: JSManiacs: cheers, much appreciated [17:21] spcshpopr8r has left the channel [17:21] TheJH: chovy, use require('path').join('/var/www/', '../../etc/passwd') or something like that to get the actual path [17:21] TheJH: !admin eval require('path').join('/var/www/', '../../etc/passwd') [17:21] jhbot: /etc/passwd [17:21] indexzero has joined the channel [17:21] TheJH: chovy, the check whether the resulting path starts with your base path [17:22] TheJH: s/the check/then check/ [17:22] TheJH: chovy, also, if you're dealing with filesystem stuff, fail early if there are nullbytes in the user-upplied path - they can do nasty stuff [17:23] DrMcKay: TheJH: but your patch? [17:23] TheJH: chovy, oh, and make sure that the base path ends with a slash, or I can access /var/wwwfoo/file if I'm only allowed to access stuff in /var/www [17:23] vidi has joined the channel [17:23] hackband has joined the channel [17:24] TheJH: DrMcKay, was never pulled [17:25] trotter has joined the channel [17:26] DrMcKay: TheJH: gah, why? [17:26] TheJH: DrMcKay, hang on, I'll put a link to PHPs fix in there [17:26] TheJH: that should speed things up :D [17:26] DrMcKay: TheJH: :D [17:27] scott_gonzalez has joined the channel [17:27] smtlaissezfaire has joined the channel [17:28] prettyrobots has joined the channel [17:29] dmkbot: *fs: no nullbytes in paths* reported by thejh: https://github.com/joyent/node/issues/1493 [17:29] TheJH: DrMcKay, ah, now he also alerts when you just add comments? [17:30] dannycoates has left the channel [17:31] anaio has joined the channel [17:31] jchris has joined the channel [17:31] gkmngrgn has joined the channel [17:32] localhost has joined the channel [17:32] Aikar: if only bash had a .replace( lol [17:32] Aikar: mt [17:32] kohai: @tjanczuk #nodejs + #iisnode +#mongodb in IIS on Windows http://t.co/n2ORp5S [17:32] al3xnull_ has joined the channel [17:33] broofa_ has joined the channel [17:33] l8nite has joined the channel [17:34] brianseeders has joined the channel [17:34] DrMcKay: Aikar: it's possible [17:34] chovy: TheJH: the problem is this: var filename = path.join(process.cwd(), uri); [17:34] DrMcKay: Aikar: https://github.com/tomas/skull [17:34] ajohnson1 has joined the channel [17:35] Daegalus: are tehre any other beginner tutorials besides nodebeginner and nodeguide? [17:35] chovy: uri could be '../../../../../etc/passwd' and it will actually read that file. I want to limit the files to be served to the cwd(). [17:35] chovy: /home/web/htdocs/../../../../../etc/passwd is a valid path. [17:35] TheJH: !admin eval process.cwd() [17:35] jhbot: /home/jann/gitty/nodebot [17:35] l8nite: chovy! [17:35] l8nite: long time no see man [17:35] chovy: lol [17:35] chovy: holy crap [17:36] chovy: what's up l8nite ! [17:36] apanda has joined the channel [17:36] l8nite: not much, running into an out-of-memory issue installing npm [17:36] l8nite: came here for some guru-advice [17:36] chovy: debian? [17:36] l8nite: ubuntu [17:36] chovy: hmm [17:37] chovy: how are you installing it? [17:37] smtlaissezfaire has joined the channel [17:37] l8nite: cloned git repo and make install [17:37] TheJH: chovy, try this: `var cwd = process.cwd(); if (cwd[cwd.length-1] !== '/') cwd += '/'; if (filename.indexOf(cwd) !== 0) return throwThatEvilGuyOut()` [17:37] JaKWaC has joined the channel [17:37] chovy: l8nite: i just did this curl http://npmjs.org/install.sh | sh [17:37] fmoga has joined the channel [17:37] chovy: http://howtonode.org/introduction-to-npm [17:37] l8nite: here's the output I'm getting: http://pastebin.com/vt86P23Q [17:38] l8nite: seems like maybe the installer needs more than my available memory :/ [17:38] TheJH: chovy, but that's not enough, you have to handle nullbytes! [17:38] TheJH: chovy, do you know the term "poison null byte"? [17:39] dgathright has joined the channel [17:39] chovy: TheJH: I think i need to strip '(../)+' off uri with a regex. [17:39] cognominal___ has joined the channel [17:39] fmoga: hi, anyone using cluster with node? [17:40] l8nite: chovy: using install.sh has the same issue [17:40] l8nite: FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory [17:40] TheJH: chovy, well, http://server/folder/../file should be allowed, right? [17:40] l8nite: oh well, I don't really need npm I guess [17:40] chovy: l8nite: don't know, nice -n 20 maybe? [17:40] chovy: reminds me of the wedirect days. [17:40] TheJH: l8nite, and I guess you're wrong :D [17:40] DrMcKay: l8nite: sounds like an issue with your system [17:41] l8nite: TheJH: :P [17:41] l8nite: DrMcKay: any advice? [17:41] DrMcKay: didn't stdlibc++ fail hard lastly? [17:41] albertosheinfeld has joined the channel [17:41] slifty has joined the channel [17:41] DrMcKay: no, it was glibc [17:41] chovy: TheJH: doesn't need to be, I won't be using relative paths like ../ [17:41] kohai: @anddoutoi Watching @_macke_ doing #1337 #ninja stuff with #Netduino && #nodejs && #socketio @tretton37 HQ. Awesomeness personified. [17:42] TheJH: chovy, also, if you should ever put that code on a windows system, it'll be exploitable [17:42] zcopley has joined the channel [17:42] matyr_ has joined the channel [17:42] chovy: TheJH: how so? [17:42] DrMcKay: l8nite: I don't know [17:43] TheJH: chovy, this is a valid windows path: C:/foo/..\otherfolder/file.txt [17:43] mikaelg: hey, does anybody know what parameter to use to specify a passphrase when setting up an https server? I have cert and key, but I don't know what to call the passphrase [17:43] DrMcKay: chovy: windows is shit [17:43] DrMcKay: chovy: (and what TheJH said) [17:43] chovy: it's a valid unix path too...but i don't care because i'll never have ../../ in my client side code. [17:43] abraxas has joined the channel [17:43] DrMcKay: chovy: but users can modify it [17:43] `3rdEden has joined the channel [17:43] chovy: DrMcKay: yeah. [17:43] TheJH: chovy, but your server will be exploitable if you put it on a windows machine [17:43] chovy: why? [17:44] davidsklar has joined the channel [17:44] chovy: oh. because they could put ..\otherfolder [17:44] TheJH: chovy, because windows treats slash like backslash and your regex doesn't [17:44] TheJH: chovy, exactly [17:44] chovy: it'll never go on windows. [17:44] TheJH: chovy, :D [17:44] isaacs: l8nite: npm doesn't work on node stable [17:44] isaacs: l8nite: get node 0.4.x [17:44] _dc has joined the channel [17:44] guillermo has joined the channel [17:44] TheJH: chovy, also, http://server/.. could give access to a parent directory listing, right? [17:45] chovy: TheJH: no [17:45] TheJH: chovy, and don't forget that someone could enter an absolute path [17:45] dexter_e has joined the channel [17:45] TheJH: chovy, why? [17:45] chovy: absolute is fine. [17:45] TheJH: chovy, /etc/passwd is fine? [17:46] chovy: no, it gets appeneded to the cwd() so it would become /web/htdocs/etc/passwd and yield a 404 [17:47] chovy: l8nite: i installed npm on 4.11 and then upgraded node to 5.x and it still works. [17:47] shiawuen: TheJH: chovy: will this works? https://gist.github.com/1186754 [17:47] TheJH: chovy, does your server interpret file extensions? [17:47] isaacs: chovy: 0.5.5 is ok. master is not. [17:47] isaacs: sorry, sorry, when i said "doesn't work on node stable", i meant "doesn't work on node master" [17:47] isaacs: d'oh [17:47] isaacs: l8nite: ^ [17:47] rc1 has joined the channel [17:47] isaacs: *^_^* [17:49] captain_morgan has joined the channel [17:49] TheJH: shiawuen, it's, under certain conditions, not sufficient if you're using file extensions to determine MIME types, I think [17:49] kohai: @PhilCox Just pushed the code for my Node.js project, findthatrobot.com to GitHub http://t.co/divzKPZ [17:50] kohai: @thedumontster deploy your #nodejs project to #heroku with full support! just in time for my birthday - t/y - http://t.co/NvJfvfx [17:50] hermanjunge has joined the channel [17:50] TheJH: shiawuen, do you know what I'm talking about? [17:50] l8nite: isaacs: oh, so I need to downgrade? [17:50] isaacs: l8nite: just use a release version, not master [17:51] shiawuen: TheJH, not quite =P [17:51] l8nite: cool, will try that. thanks [17:51] skunkape has joined the channel [17:51] shiawuen: didn't detecting file extension and prevent access the password file are 2 different case? [17:52] TheJH: shiawuen, well, they somewhat overlap. how about "make sure that the password file can only be accessed with its real extension"? [17:52] TheJH: meh, password file is bad example [17:52] TheJH: "make sure that the text file can only be accessed with its real extension" [17:53] TheJH: shiawuen, http://groups.google.com/group/nodejs/browse_thread/thread/51f66075e249d767/57143fb09a772a05 [17:53] shiawuen: haha, looks like I missed some context [17:54] TheJH: shiawuen, I don't know whether this is a real need of chovy, but I think that you should be overzealous when doing fs stuff [17:54] TheJH: because it's easy to get stuff wrong [17:54] TheJH: like with RPC [17:55] patrickgamer has joined the channel [17:55] TheJH: shiawuen, demo of the wrong file extension problem: https://gist.github.com/84464a405a7018066428 [17:56] patrickgamer has left the channel [17:57] Dave has joined the channel [17:57] shiawuen: wow, you can do that? [17:57] patcito has joined the channel [17:57] broofa has joined the channel [17:57] robi42 has joined the channel [17:58] smtlaissezfaire_ has joined the channel [17:58] TheJH: shiawuen, in PHP, in Java, in nodejs. [17:58] TheJH: shiawuen, but PHP fixed it a short while ago :D [17:59] shiawuen: I'm from frontend, so not a common problem that I face [17:59] shiawuen: now I learn new things :D [18:00] kohai: @werdelin Our chief hacker Sly from basno.com is battling in a node.js hackathon and almost winning. Vote him up plz http://j.mp/qctsyx. Cool project [18:00] kohai: @jalbertbowdenii botriot looks fun - node.js looks even more fun - http://m0t.go.ly [18:00] CarterL has joined the channel [18:00] l8nite: isaacs: thanks, that solved it. [18:01] XniX23 has joined the channel [18:01] vicapow has joined the channel [18:01] pquerna: isaacs: https://github.com/racker/node-elementtree/ [18:01] isaacs: pquerna: yeah, i saw, that's neat :) [18:01] MrNko has joined the channel [18:01] isaacs: it's cool to see little xml utils built up on top of sax-js [18:02] isaacs: have you seen xml2js? i've used it in a few little scripts i threw together. [18:02] isaacs: it's pretty nice [18:02] daveespionage has joined the channel [18:03] dexter_e: Maybe a noob question but : Are there still reasons to learn templating with delimiters once stuff like JSDOM is out and lets us just do browser-server consistently ? [18:03] abiii has joined the channel [18:04] sebasti__ has joined the channel [18:04] jesusabdullah: dexter_e: I don't think it's clear that the DOM-based approach has "won" if that's what you're asking [18:05] pickels has joined the channel [18:05] kylefox has joined the channel [18:05] dexter_e: jesusbdullah: Yeah I suppose that is what I'm asking [18:05] DrMcKay: dexter_e: render client-side [18:05] JSManiacs: dexter_e: I agree with you… I feel everyone is on crazy pills. I don't necessaily think JSON dom is the end all- cause it didn't do easy templating like Jade or mustach [18:05] JSManiacs: but I'm not sure why people use both [18:05] jesusabdullah: well [18:06] dexter_e: and more specifically are there some obvious things that delimiters are still necessary for? [18:06] jesusabdullah: I think DOM-based approaches are a really good idea [18:06] jesusabdullah: Honestly, templates kinda suck [18:06] pquerna: isaacs: yeah. [18:06] JSManiacs: jesusabdullah: dexter_e: Hey… So I sent this link to substack yesterday http://jsfiddle.net/ryanstevens/mwFXM/ [18:06] jesusabdullah: but the current DOM solutions can be unweildy sometimes---I mean, setting up a jsdom with jquery and then having to use jquery to build your thing? [18:06] jesusabdullah: Could be a lot easier. [18:07] JSManiacs: its a (non) open source templating engine I wrote at my last company [18:07] Marak: hey isaacs did you see that npm preserve thing? http://nodeknockout.com/teams/preservation-society , that essentially opens up a MITM problem for my npm creds right? [18:07] JSManiacs: exposing some examples in JSFiddle [18:07] isaacs: Marak: yeah [18:07] Marak: smells like all 2s for me [18:07] isaacs: Marak: if you trust them, then use em :) [18:07] jesusabdullah: JSManiacs: Nice, reminds me a little bit of weld at first glance [18:07] JSManiacs: jesusabdullah: So my idea is to use this DOM baed templating engine in Node with JSDOM [18:07] Marak: i dont even trust you isaacs [18:07] Marak: :p [18:07] isaacs: Marak: i mean, it's just a caching forward proxy for an npm registry, which is kind of a neat product. [18:07] dexter_e: JSManiacs: Thats pimpin [18:07] JSManiacs: jesusabdullah: This is @ryan_stevens by the way [18:08] Marak: isaacs: not oss though right? [18:08] jesusabdullah: I figured! :D [18:08] JSManiacs: it was good hanging last night [18:08] isaacs: Marak: i could see that being really useful for, like, putting registries in other countries or whatever. [18:08] isaacs: running on-demand mirrors. [18:08] jesusabdullah: Yeah, it was a good time! [18:08] Marak: its a hosted npm service [18:08] isaacs: Marak: they're gonna os it, i'm sure [18:08] Marak: you know that? [18:08] isaacs: i talked to them last night [18:09] isaacs: yeah, they want anyone to run this anywhere. [18:09] dexter_e: On top of just the fact that JSDOM lets us skip doubling up functionality for client and server , we get the unbelievable bonus of NO foreign syntax or speciality characters for string insertion. [18:09] JSManiacs: jesusabdullah: dexter_e: So the value aadd of this templating system is it can be used in Node, and the instructions are carried through and can be reused by the front end. [18:09] dexter_e: JSManiacs: Diggin in [18:09] isaacs: Marak: and eventually even use this as a private registry, so that you publish to it, and it doesn't "put back", and only has the packages you actually use in your org, fetching the official ones on demand. [18:09] isaacs: it's kind of an awesome idea, i think. [18:09] addisonj__ has joined the channel [18:10] dexter_e: XML name space syntax right? [18:10] Marak: distributed npm [18:10] l8nite has left the channel [18:10] dexter_e: whoa! distributed npm , trippy [18:10] JSManiacs: dexter_e: Yeah, so that is once again a non opened sourced library (served from a public domain). It is wrapped around a WdigetManger, which isn't what I'm trying to show here as so much as the templating system. [18:13] dexter_e: So back to the noob question: Are there obvious reasons to use delimiter based templates over JSDOM ? [18:13] isaacs: dexter_e: speed. [18:13] isaacs: dexter_e: also, separation of concerns [18:13] marksoper has joined the channel [18:14] tbranyen: using jsdom wat [18:14] dexter_e: Double whammy [18:14] al3xnull_ has joined the channel [18:14] tbranyen: that sounds like a bad idea [18:14] isaacs: dexter_e: plus, the dom is a stupid pile of stupid jerks. [18:14] isaacs: jsdom is neat. [18:14] kohai: @kuryaki Joyent and Cloud9 Partner to Provide Ready-to-Deploy Node.js http://t.co/4s7qrr5 [18:14] isaacs: but the dom itself is kind of gross [18:14] dexter_e: whats jerks ? [18:14] dexter_e: like people? [18:14] chapel: you could use weld [18:14] isaacs: dexter_e: yeah, in a pile. that's what the dom is made of. [18:14] chapel: which uses jsdom I believe [18:14] isaacs: :) [18:14] dexter_e: HAHHAhhaha [18:15] kohai: @curtischambers my jQuery shirt gets way more compliments than my node.js shirt. I guess I'm into node before it goes mainstream? #hipsterhacker [18:15] dexter_e: well it seems most JSDOM tutorials use jQuery anyway, so I'm more referring to the abstraction of delimiters into pure js code [18:15] jhurliman has joined the channel [18:16] patrickgamer has joined the channel [18:16] patrickgamer has left the channel [18:16] ajohnson1: any recommendations for an MVC framework? [18:16] incon has joined the channel [18:16] FiveLemon has joined the channel [18:16] tbranyen: ajohnson1: there were some attempts to bring backbone in [18:17] DrMcKay: wait, there are node.js shirts? [18:17] tbranyen: not sure how good they are [18:17] mikeal has joined the channel [18:17] tbranyen: but might be worth investigating [18:17] tbranyen: DrMcKay: i got a vintage node.js shirt [18:17] mikeal1 has joined the channel [18:17] ajohnson1: tbranyen: thanks [18:17] JSManiacs: ajohnson1: backbone works great in Node. But you still have to use a templating engine for its views [18:17] DrMcKay: tbranyen: where did you get it? [18:17] ajohnson1: JSManiacs: thanks [18:18] tbranyen: JSManiacs: uh saying it works great is a huge stretch [18:18] tbranyen: it can work [18:18] tbranyen: out of the box? no [18:18] tbranyen: without writing some serious abstracts? no [18:18] DrMcKay: ajohnson1: maybe knockout.js? [18:18] DrMcKay: ajohnson1: it's not even MVC [18:18] JSManiacs: ajohnson1: the library works. Its still up to the dev to implement it in a scalable fashion [18:18] DrMcKay: ajohnson1: but worth trying [18:18] ajohnson1: DrMcKay: thanks [18:18] tbranyen: JSManiacs: it doesn't though... you need to hack at things like views to get them to even run [18:19] tbranyen: setting _ensureElement to a nop [18:19] tbranyen: overriding Sync [18:19] tbranyen: etc [18:19] bnoordhuis has joined the channel [18:19] ajohnson1: only starting so lots of questions, but that begs the follow up question: a good templating engine [18:19] tbranyen: mine [18:19] tbranyen: ^_^ [18:20] tbranyen: https://github.com/tbranyen/combyne.js << take a look at it, its pretty opinionated you might not even like it [18:20] localhost has joined the channel [18:20] ajohnson1: tbranyen: yeah just found your repo :) [18:20] perezd has joined the channel [18:21] whitman has joined the channel [18:22] ajohnson1: lots of templating options out there [18:23] tbranyen: yep [18:23] chovy: shiawuen: that works perfectly, thanks. [18:23] kohai: @NodeJSAtSO Getting large hex integers into my MySQL database with node.js http://t.co/D92Fjij [18:23] Orion- has joined the channel [18:24] shiawuen: chovy: you are welcome :) [18:24] creationix has joined the channel [18:24] dmkbot: *explained how url.format works (`search` trumps `query`, etc)* reported by coolaj86: https://github.com/joyent/node/issues/1625 [18:25] apanda has joined the channel [18:25] AvianFlu has joined the channel [18:27] DrMcKay: I know! [18:28] DrMcKay: the bot can easily report other issues [18:28] phiggins has joined the channel [18:29] mjr_ has joined the channel [18:29] constantx has joined the channel [18:29] creationix has left the channel [18:32] dexter_e: JSManiacs: How does your template system know which part of the tag to insert ( src or href , text ) [18:32] Bennito: Why should I pay attention to Knockout or Backbone? [18:34] mrchess has joined the channel [18:34] smtlaissezfaire has joined the channel [18:35] JSManiacs: by default, it does an innerHTML replace [18:35] dmkbot: *A more robust util.isDate() function.* reported by TooTallNate: https://github.com/joyent/node/issues/1615 [18:35] tjholowaychuk: Bennito because it's fun to complicate simple things [18:35] JSManiacs: but, its shorthand for another command which would get test="Set(innerHTML: val)" [18:36] Bennito: tjholowaychuk: Funny :-) [18:36] JSManiacs: dexter_e: Sorry, just replied, but forgot to reply to your name [18:37] dmkbot: *url.parse().host should not contain auth* reported by isaacs: https://github.com/joyent/node/issues/1626 [18:37] djazz has joined the channel [18:37] isaacs: dmkbot: nice! [18:37] isaacs: :) [18:37] DrMcKay: ACTION is proud [18:39] kohai: @bmonizzle Apache in node.js form, think about it! [18:40] shapeshed has joined the channel [18:40] tylerstalder has joined the channel [18:40] JSManiacs: dexter_e: Here's a slightly different example where you can set text fields from templates http://jsfiddle.net/ryanstevens/rTnzc/ [18:40] al3xnull_ has joined the channel [18:41] marksoper has joined the channel [18:42] kohai: @apapadimoulis Node.js for IIS: huge step forward for JavaScript as a Windows Server language. Several steps back for software development. [18:42] einaros: hah [18:43] JSManiacs: kohai: That's pretty funny. I can't remember the last time I ran into a hard core JS / Node dev that runs IIS [18:43] kohai: I am Kohai, semi-useful communications-facilitating pseudointelligence! [18:43] jackbrown: Hey, does anyone know where I can download the 'socket.io-client' file? It doesn't seem to be included in the git distrib for Socket.io? [18:44] einaros: jackbrown: sure it is [18:44] einaros: jackbrown: check the dist folder [18:44] ceej has joined the channel [18:44] einaros: socket.io.js [18:44] Kingdutch has joined the channel [18:45] __sorin__ has joined the channel [18:45] `3rdEden: jackbrown npm install socket.io-client? [18:45] Murvin has joined the channel [18:45] godzirra has joined the channel [18:46] `3rdEden: jackbrown also https://github.com/LearnBoost/Socket.IO/wiki/How-do-I-serve-the-client [18:46] jackbrown: I'm running Node.exe on Windows [18:46] mailtruck has joined the channel [18:46] `3rdEden: ACTION steps away slowly [18:46] captain_morgan has joined the channel [18:46] mrchess: ^ [18:46] DrMcKay: ACTION gets his defuse set [18:46] einaros: ACTION covers `3rdEden with an invisibility blanket [18:46] Murvin: tjholowaychuk: hi. i have a question about express.session will it remove the old or expire data in the Datastore? [18:46] eastender has joined the channel [18:47] tjholowaychuk: Murvin the Store implementation is in charge of that, but usually yeah [18:47] DrMcKay: if anyone wants to comment any issue, wait a sec [18:47] tjholowaychuk: redis/memory etc all expire, i cant speak for the others [18:47] DrMcKay: (now lets hope it won't blow up) [18:47] squeese: you intelligent human beings, whats is [sic] in quotes abbrevation for? [18:47] dmkbot has joined the channel [18:48] DrMcKay: now you can comment some issue [18:48] jamesaro_ has joined the channel [18:48] DrMcKay: (or do whatever with it) [18:48] joshontheweb has joined the channel [18:49] Murvin: tjholowaychuk: i see. thanks.. I'm using connect-mongo. i think it should, right? [18:49] tjholowaychuk: no clue [18:50] dezmozz has left the channel [18:50] `3rdEden: =D [18:50] jackbrown: what is socket.io-client, is it a .js file which should be included with the distributable? [18:50] `3rdEden: jackbrown depends on what you want to do [18:50] einaros: jackbrown: feel free to join us in #socket.io [18:50] jro has joined the channel [18:51] `3rdEden: what ^ said [18:51] jackbrown: ok thanks [18:51] einaros: even windows noders are welcome in #socket.io. that's how kind hearted `3rdEden is. worth taking note of. [18:51] vikstrous__ has joined the channel [18:51] tbranyen: windows.exe [18:51] DrMcKay: tbranyen: virus detected [18:52] DrMcKay: what?! [18:52] vaheh has joined the channel [18:52] dmkbot has joined the channel [18:52] dmkbot has joined the channel [18:53] context: haha [18:53] DrMcKay: ACTION takes killall hammer [18:53] gquental has joined the channel [18:53] dmkbot has joined the channel [18:53] Croms has joined the channel [18:53] baudehlo: woot, got tls working in Haraka [18:53] `3rdEden has joined the channel [18:54] einaros: ACTION considers taking bets on how long dmkbot will stay connected [18:54] __sorin__ has joined the channel [18:54] DrMcKay: this is me: [18:55] mrchess: wait a sec is 0.7 == 0.8 now? [18:55] DrMcKay: .. 0.7 == 0.8 [18:55] catb0t: false [18:55] matyr has joined the channel [18:55] dmkbot has joined the channel [18:55] zackattack has joined the channel [18:55] CIA-69: libuv: 03Igor Zinkovsky 07master * r22197eb 10/ (include/uv-private/uv-win.h src/win/fs.c test/test-fs.c): windows: include _stat struct into uv_fs_t - http://git.io/WqZ6VA [18:55] mrchess: why the bump in minor #? [18:55] al3xnull has joined the channel [18:55] mrchess: due to hybi10 support? [18:56] einaros: mrchess: someone got carried away [18:56] einaros: might have been me, with ridiculous fixes and re-fixes [18:56] smtlaissezfaire has joined the channel [18:56] context: mrchess: just to confuse everyone [18:57] context: im not upgrading until 4.13 [18:57] mrchess: o.O [18:57] tylergillies has joined the channel [18:57] tylergillies has joined the channel [18:57] einaros: in all fairness, though, it's not just hybi10 [18:57] DrMcKay: ah! [18:57] einaros: it's hybi 07->12 ... although admittedly just because of draft compatibility [18:57] dmkbot has joined the channel [18:57] mcepl has joined the channel [18:57] dgathright has joined the channel [18:57] einaros: DrMcKay: stop betting on your own bot disconnecting, it's unfair to the rest of us [18:57] dmkbot has joined the channel [18:58] dmkbot has joined the channel [18:58] ctide: there are people who don't have dmkbot ignored? [18:58] DrMcKay: einaros: should work now :) [18:59] zgryw has joined the channel [18:59] djazz has left the channel [18:59] einaros: ctide: haven't gotten around to implementing ignores :( [19:00] bnoordhuis: https://github.com/popular/watched <- only 9 more, people! [19:00] DrMcKay: bnoordhuis: I was going to remind you about that [19:00] DrMcKay: bnoordhuis: you were supposed to change the topic ;) [19:00] DrMcKay: ctide: it can actually get quite useful [19:00] DrMcKay: ctide: and that flood was a bad hotfix [19:01] mrchess: einaros: wait so is 0.8 essentially 0.7.12? or is it so different it is 0.8 now and 0.7 is its own thing? [19:03] einaros: mrchess: all sound questions, but best directed at rauchgggg [19:04] kohai: @olegpodsechin The issues I've run into when working on Common Node for #nodejs http://t.co/PDCdtBg /cc @tlrobinson @izs @ryah [19:04] mrchess: einaros: okie. [19:05] kohai: @dodothelast please vote for my realtime raytracing approch in #nodejs for the #48hours #nodeknockout #contest http://t.co/qJIkPWO [19:05] dmkbot: *A more robust util.isDate() function.* reported by TooTallNate: https://github.com/joyent/node/issues/1615 [19:06] DrMcKay: and we're actually still alive. [19:06] rauchgggg: mrchess [19:06] rauchgggg: yes [19:06] jerrysv: bnoordhuis: just watched with my work github account, that should help [19:06] rauchgggg: the only reason it's .8 is because [19:06] rauchgggg: at the time of release [19:06] bnoordhuis: jerrysv: cool :) [19:06] rauchgggg: no.de didnt support the new protocols [19:06] DrMcKay: ah, it should report in color [19:07] rauchgggg: and i didnt want people to upgrade and their apps breaking [19:07] rauchgggg: but yeah, you should upgrade to 0.8 [19:07] mrchess: rauchgggg: i see [19:07] bluesmoon has joined the channel [19:08] mailtruck has joined the channel [19:08] adrianmg has left the channel [19:08] dmkbot has joined the channel [19:08] chjj: ohohohoh [19:08] chjj: its gonna happen today [19:08] bluesmoon: hi folks... [19:08] chjj: node is 6 watchers away from beating jquery [19:09] chjj: gonna happen today [19:09] chjj: ! [19:09] bluesmoon: I'm running some scalability tests against an http server I have [19:09] kohai: @godzirra @jimmyjacobson @chrismatthieu @twilio @nodester I'll have to check out nodester. I've been using @nodejitsu and its pretty nice. [19:09] chjj: ah, kohai is back! [19:09] bluesmoon: right now just testing to see if I can actually run the test, so test and server both running on the same box [19:09] bluesmoon: using ab to run the test [19:10] madsleejensen has joined the channel [19:10] godzirra: And I got mega beeps is it triggered my name in multiple channels. ;) [19:10] bluesmoon: and I've tried concurrency levels of 10, 20, 50 and 100, and it always breaks down around 16400 requests [19:10] bluesmoon: ie, node just stops passing connections on to my handler [19:11] bluesmoon: any idea what's so special about 16400? [19:11] bluesmoon: my first instinct was that since both client and server are on the same box, I'd probably have twice as many sockets open [19:11] bluesmoon: and that's around 32768 [19:11] bluesmoon: but I have no idea how to verify [19:11] V1 has joined the channel [19:11] bluesmoon: any ideas? [19:12] blup has joined the channel [19:13] chjj: AH [19:13] chjj: it happened [19:13] MarkMenard has joined the channel [19:13] `3rdEden has joined the channel [19:13] chjj: node has beat jquery in watchers [19:13] chjj: finally [19:13] chjj: all is right in the world [19:14] chjj: now just need to be rails [19:14] chjj: beat* [19:14] DrMcKay: bnoordhuis: topic :) [19:14] bnoordhuis: we're still 7 behind [19:14] DrMcKay: bnoordhuis: no, check the repos [19:14] chjj: no were not [19:14] chjj: node is 9,004, jquery is 9k flat [19:14] bnoordhuis: wow [19:14] chjj: :) [19:14] bnoordhuis: fuck yeah! [19:15] chjj: haha [19:15] rfay has joined the channel [19:15] bluesmoon: anyone? [19:15] synkro has joined the channel [19:16] chjj: wow, getting more watchers by the second [19:16] chjj: it doesnt usually update that quick [19:16] kohai: @jcallico This node.js sample reminded me of CGI programming 15 years ago. Is this were we are headed, back to our roots? http://t.co/UQkFGKh [19:16] DrMcKay: bluesmoon: it may be the sockets [19:17] DrMcKay: bluesmoon: strace? [19:17] bluesmoon: strace on node? [19:17] mehlah has joined the channel [19:17] bluesmoon: I'm on MacOSX, no strace here [19:17] mraleph has joined the channel [19:17] voodootikigod has joined the channel [19:18] DrMcKay: bluesmoon: ah... well, it may be number of sockets [19:18] bluesmoon: k [19:18] voodootikigod: anyone know of a way to make expresso not run async between test [19:18] bluesmoon: let me try dtrace [19:18] kohai: @jerrysievert congrats #nodejs for becoming the 2nd most watched on github, surpassing #jquery. [19:18] voodootikigod: trying to test against db and need to reset db before each test is run [19:19] jerrysv: kohai++ [19:19] v8bot_: jerrysv has given a beer to kohai. kohai now has 1 beers. [19:19] DrMcKay: jerrysv: RT'd ;) [19:19] CarterL1 has joined the channel [19:19] jerrysv: DrMcKay++ [19:19] v8bot_: jerrysv has given a beer to DrMcKay. DrMcKay now has 1 beers. [19:19] catb0t: DrMcKay now has 1 beer [19:20] kohai: @ryah #nodejs passes jquery in number of github watchers http://t.co/C6BiEgx [19:20] TheJH: DrMcKay, importing cables with 200 per second into mongo - and that doesn't even include indexes :( [19:20] JSManiacs: kohai: Sweet… Node's only 1000-ish away from taking #1! [19:20] kohai: I am Kohai, semi-useful communications-facilitating pseudointelligence! [19:21] DrMcKay: TheJH: wut?! I though Mongo was fast on insertions [19:21] isaacs: you're next, rails! [19:21] TheJH: DrMcKay, my node script is the limiting factor, I guess [19:21] TheJH: well, 20 minutes one time is ok, I guess [19:22] AvianFlu: I'm gonna be so happy when node passes rails [19:22] DrMcKay: TheJH: Postgres did it in 2 minutes or so [19:22] aoberoi has joined the channel [19:22] AvianFlu: ACTION will troll that day, both great and small [19:22] TheJH: DrMcKay, your script probably is faster :D [19:22] caolanm has joined the channel [19:22] DrMcKay: AvianFlu: btw, what was your idea on tailing? [19:22] DrMcKay: TheJH: no, it was psql :D [19:22] AvianFlu: you mean, how to tail a log file? [19:22] DrMcKay: AvianFlu: yup [19:23] Cromulent has joined the channel [19:23] brolin has joined the channel [19:23] DrMcKay: AvianFlu: I thought you wanted to do it "backwards" [19:23] wilmoore has joined the channel [19:23] AvianFlu: I suggested you do a stat, get the size in bytes, and then use fs.createReadStream and pass the byte range at the end that you want [19:24] DrMcKay: AvianFlu: but I would still need to read whole file, right? [19:24] kohai: @alespinoza Installing and Running node.js applications within IIS on Windows - Are you mad? - Scott Hanselman http://t.co/A2YKtJL [19:24] DrMcKay: also, this ^ [19:24] AvianFlu: DrMcKay, as I understand it, no [19:24] einaros: what - no shameless 'over 9000' reference? [19:24] kohai: @NodeKohai @ryah cool, we beat a client-side library, which is totally unrelated - now we just have to beat the reason that you started node for :D [19:24] DrMcKay: AvianFlu: wait, how? [19:24] AvianFlu: cause you get file size, and then you say, gimme a read stream, from (end of file - n bytes) to (end of file) [19:25] AvianFlu: you don't read the whole file on a stat, do you? [19:25] DrMcKay: AvianFlu: ah, just read it in chunks? [19:25] AvianFlu: when you call fs.createReadStream [19:25] chjj: einaros: ah, good call [19:25] AvianFlu: you can pass in options [19:25] AvianFlu: two of which are "start" and "end" [19:25] chjj: einaros: i wouldve said over 9000 maybe if i had thought of it [19:25] DrMcKay: yes [19:25] bluesmoon: so when I try to dtrace it, it runs through to 50000 connections [19:26] AvianFlu: to give it the file position [19:27] DrMcKay: yes, but still, you have to know where to start, don't you? [19:27] Twitter has joined the channel [19:27] AvianFlu: that's why you get the file size [19:27] DrMcKay: (or you can read chunks) [19:27] AvianFlu: decide how much you want to tail [19:27] Aikar: anyone familiar with mikaels "request" module? I'm having trouble POSTing data. [19:27] AvianFlu: and set the end position to length - distance [19:27] Dreamer3 has joined the channel [19:27] Aikar: request.post({uri: url, body: querystring.stringify(postData)}, myCb); [19:27] DrMcKay: start = length - distance [19:28] TheJH: AvianFlu, DrMcKay, are you converting every single basic unix command to node now? [19:28] Aikar: printing $_SERVER on a PHP endpoint shows method=post but no post data shows up [19:28] baudehlo has joined the channel [19:28] AvianFlu: TheJH: try to stop me. [19:28] DrMcKay: TheJH: we're one step away from nXorg [19:28] cpetzold has joined the channel [19:28] TheJH: AvianFlu, :D [19:28] bpr has joined the channel [19:28] robertfw has joined the channel [19:28] DrMcKay: Aikar: $_SERVER doesn't return POST data [19:28] TheJH: DrMcKay, that'd be interesting [19:29] vipaca has joined the channel [19:29] vipaca has joined the channel [19:29] Aikar: DrMcKay: depending on config it does, but even $_POST is blank [19:29] DrMcKay: AvianFlu: but still, we're talking lines here [19:29] robi42 has joined the channel [19:29] Aikar: i printed the string i passed to body, "foo=bar" [19:30] AvianFlu: approximate and newline-delimit? [19:30] mynameisbender has joined the channel [19:30] DrMcKay: AvianFlu: ah, I thought you have some magic method to read exactly n lines [19:31] AvianFlu: maybe take a look at the readline module [19:31] TheJH: DrMcKay, I'd just read 1K blocks from the end until I've got what I want or so [19:31] DrMcKay: AvianFlu: yeah, I guess I will have to do some approximate [19:31] AvianFlu: you could probably make a pretty smart guess of average bytes in a line [19:32] DrMcKay: 80 or average or first few lines [19:32] Aikar: DrMcKay: any idea on what im doing wrong? [19:32] kohai: @olegpodsechin Common Node hit 50 followers at the same time as #nodejs hit 9000 - it's a sign http://t.co/0FbeHnA [19:32] kohai: @nddrylliog @NodeKohai listen, I know you're running node.js, but couldn't you actually reply instead of just mentioning? [19:33] TheJH: ACTION throws a large kichen knife at mongo. GRAAH! [19:33] baudehlo has joined the channel [19:33] kohai: @dshaw Rails, we're coming for you next. :) #nodejs http://t.co/08J2uPN [19:33] TheJH: "ERROR: mmap failed with out of memory. You are using a 32-bit build and probably need to upgrade to 64" [19:33] eee_c1 has joined the channel [19:33] ryah: TheJH: ? [19:33] TheJH: ryah, mongodb problem, not exactly node related [19:33] mailtruck has joined the channel [19:34] DrMcKay: Aikar: querystring.stringify outputs correct data for sure? [19:34] DrMcKay: ryah: TheJH just stole next 1.6 GB of secret diplomatic cables, nothing big [19:34] Aikar: it returned the string "foo=bar" [19:34] Aikar: which to my knowledge is properly formatted url format data.. [19:34] DrMcKay: Aikar: it is [19:35] TheJH: DrMcKay, "stole"? I just downloaded a torrent from WL together with 50 other people... [19:35] DrMcKay: TheJH: meh, not what I meant [19:35] DrMcKay: TheJH: *next* is the keyword here [19:36] TheJH: DrMcKay, huh? "next"? [19:36] DrMcKay: you've stolen next portion of secret cables [19:36] TheJH: ACTION wonders about whether DrMcKay wants to imply that I'd have access to US systems [19:37] DrMcKay: yes :p [19:37] grekko has joined the channel [19:37] caolanm has joined the channel [19:37] abravo has joined the channel [19:37] TheJH: uhm... yes... uhm, wait, there's channel logging, right? no, no, can't imagine how you got that idea! [19:38] TheJH: DrMcKay, but seriously, what should I take if mongo is out? [19:38] tbranyen: log this *pastes 150 lines of horrible js* [19:38] DrMcKay: umm, sorry, my sister was just randomly hitting my keyboard, what did we finish at? [19:38] bpr has left the channel [19:38] DrMcKay: TheJH: try Postgres [19:39] TheJH: DrMcKay, does it have full-text-search? [19:39] DrMcKay: TheJH: LIKE, '%' and stuff [19:39] DrMcKay: TheJH: but there's a torrent with sql already, want it? [19:39] TheJH: DrMcKay, uhm... but that's super-slow, right? [19:40] TheWulf has joined the channel [19:40] DrMcKay: TheJH: search or insertion? [19:40] TheJH: DrMcKay, search [19:40] phiggins has joined the channel [19:40] DrMcKay: TheJH: this torrent actually has a search column in SQL [19:40] DrMcKay: TheJH: give me a sec [19:40] DrMcKay: s/column/table/ [19:41] JamesS_ has left the channel [19:41] TheJH: DrMcKay, ah, search table [19:41] adrianmg has joined the channel [19:41] Croms_ has joined the channel [19:41] TheJH: DrMcKay, ok, that should work. I was just thinking, I could probably also do it in couch... [19:41] TheWulf: hey guys... are there docs anywhere on installing nodejs globally (the same way apt-get does) from the github source instead of having a local install? i'm not on linux too often [19:42] TheJH: TheWulf, make install? [19:42] kohai: @FGRibreau Just updated the Brin.gr's homepage with real-time statistics http://t.co/uKa9kcT #redis #nodejs [19:42] DrMcKay: TheJH: yes, it does [19:42] TheWulf: TheJH: does that not install it locally in ~/local/node? [19:42] DrMcKay: TheJH: format is a bit weird, though [19:43] TheJH: TheWulf, I don't think so... but I might be wrong [19:43] dmkbot: *Addon docs should be more thourough.* reported by camellia0x: https://github.com/joyent/node/issues/1313 [19:44] DrMcKay: TheJH: make install installs in /usr/local [19:44] blup has joined the channel [19:44] DrMcKay: and well, that should go in bold :/ [19:44] TheJH: DrMcKay, that's weird [19:44] TheJH: DrMcKay, what should be bold? [19:44] DrMcKay: (*[a-Za-z.]*) [19:45] DrMcKay: I mean, title [19:45] TheJH: DrMcKay, well, put it in \x02 [19:45] TheWulf: DrMcKay: thanks. would you know how I can make that into a global install from the source without having to use apt-get? I want to get the latest version as a global install [19:46] TheJH: !admin eval "\x02hello DrMcKay\x02" [19:46] jhbot: hello DrMcKay [19:46] kohai: @TedC Interesting how .Net MVC3 handles jQuery from version to version. Node.js kicks MS ass. [19:46] mikeal has joined the channel [19:46] DrMcKay: TheJH: yeah, I know it works, I've got problems with my deploy script [19:46] jtsnow_ has joined the channel [19:47] DrMcKay: TheWulf: git clone it, ./configure; make; sudo make install [19:47] al3xnull has joined the channel [19:47] TheWulf: DrMcKay: thanks. simple enough. slowly increasing my linux knowledge! [19:47] DrMcKay: TheWulf: :) [19:48] aheckmann has joined the channel [19:48] dmkbot has joined the channel [19:49] maushu has joined the channel [19:49] aconbere has joined the channel [19:50] DrMcKay: should be ok now [19:50] dmkbot has joined the channel [19:50] spasquali has joined the channel [19:51] spasquali has left the channel [19:51] kohai: @nodejsbook the collaborative documenation project for #nodejs from @nodejitsu is a great idea http://t.co/fIYQphE [19:51] dnyy has joined the channel [19:51] Kingdutch has joined the channel [19:53] kohai: @lazywithclass I'm trying to coordinate two funxs, 1st retrieves a tweet, 2nd retrieve user and populates tweet. Wondering if this is idiomatic #nodejs btw [19:53] brianc has joined the channel [19:54] MrNko has joined the channel [19:54] kohai: @polotek If you need even more proof that #nodejs is the future, here you go. http://t.co/IPv3MxY Beating jquery, right behind rails. [19:56] SebastianFlyte has joined the channel [19:58] Aikar: DrMcKay: hmm, have to manually specify content-type: application/x-www-form-urlencoded to POST that way [19:59] DrMcKay: Aikar: I haven't thought about that, sorry [19:59] prettyrobots has joined the channel [19:59] Aikar: seems like that should be a default when using request.post [19:59] DrMcKay: Aikar: well, it should [20:00] jdonley83 has joined the channel [20:02] navaru has joined the channel [20:02] andref__ has joined the channel [20:03] parshap has joined the channel [20:03] Martin____ has joined the channel [20:03] ronnieboy has joined the channel [20:03] blup has joined the channel [20:04] mikeal: sup [20:04] Nuck has joined the channel [20:04] abiii has joined the channel [20:05] kohai: @RobBlackwell Blogged: Why Node.js is important for Windows #Azure http://t.co/qmOSNcZ [20:07] dmkbot: Added some win32 platform functions reported by Skomski: https://github.com/joyent/node/issues/1617 [20:07] Nuck: DrMcKay: You should format the issue messages with COLORS! [20:07] Nuck: Like on CIA-69 [20:08] al3xnull_ has joined the channel [20:08] bshumate has joined the channel [20:08] bshumate has joined the channel [20:09] navaru has left the channel [20:09] kohai: @jQueryBot via @ifandelse ryah: #nodejs passes jquery in number of github watchers http://t.co/BzETNFC [20:09] akujin has joined the channel [20:10] kohai: @eazel7 @sebarenzi I'll try to find you a video where the node.js team explains its experience. they encountered limitations. [20:10] stelleg has joined the channel [20:10] Nuck: 7Skomski *3Added some win32 platform functions14https://github.com/joyent/node/issues/1617 [20:11] Nuck: Like that, DrMcKay [20:11] Nuck: or something like that [20:11] ramba has joined the channel [20:11] Nuck: The best bots are the ones which stand out when they send sudden messages ;) [20:12] Nuck: bnoordhuis: OMG WE BEAT JQUERY? [20:12] Nuck: Next goal, BEAT RAILS! [20:12] ecin has joined the channel [20:12] Ratty_: But I get paid to do rails [20:12] tbranyen: i get paid to do jquery [20:12] Ratty_: You poor bugger [20:12] Nuck: Ratty_: Then hurry up n' learn NodeJS ;) [20:13] Ratty_: I know NodeJS. It just doesn't do everything we need (unless I write all that stuff myself) [20:13] tbranyen: true, working with scalable technology does kind of get boring [20:13] ramba has left the channel [20:13] Nuck: Ratty_: Well get a-writing :P [20:13] Ratty_: I'll put it on my list [20:14] Nuck: tbranyen: jQuery is scalable but not all that maintainable [20:15] Nuck: All we need is 1050 more members and we will have overtaken Rails [20:15] dmkbot: A more robust util.isDate() function. reported by TooTallNate: https://github.com/joyent/node/issues/1615 [20:16] EvanDotPro has joined the channel [20:17] gazumps has joined the channel [20:19] wadey has joined the channel [20:19] chjj: Nuck: yeah, were on our way there ;) [20:21] kohai: @NodeKohai I am kohai. [20:21] dshaw_ has joined the channel [20:22] Daegalus: What would be better to use? Connect, Express, or manually write my own routing/rest stuff. This is for a private api for a backend for a game project I am doing. Nothing outside the game clients and internal use will know the api or use it, and its very specific. [20:23] Nuck: Daegalus:Real time or no? [20:24] Daegalus: I real time. Its rpg like game with a turn-based battle system. So partially real time? [20:24] Daegalus: i think real time* [20:24] tjholowaychuk: Daegalus express doesnt add any overhead on connect, so your question really should be just raw node vs {connext,express} [20:24] Daegalus: the clients will be on mobile platforms. So it will be from smartphones/tablets. [20:26] DrTeggy has joined the channel [20:26] AvianFlu has joined the channel [20:26] Nuck: Dude [20:26] Nuck: Fucking ANDROID IN SPACE [20:26] Daegalus: ? [20:26] chjj: you fuck androids from space? [20:27] Daegalus: Anyways, any advice on what route I should go. I guess i want as real time as possible. There will be a lot of calls on the api for information, turns, and actually processing of the games functions (its almost like a mmo) [20:27] apanda has joined the channel [20:27] _sorensen_: i would use express [20:28] tjholowaychuk: Daegalus in reality, you'll most likely end up re-creating everything connect/express do anyway [20:28] tjholowaychuk: as far as responding with json etc [20:28] tjholowaychuk: but if you only have a few end-points bypassing routing with a simple switch would help a little [20:28] Nuck: Seriously, Express is AWESOME [20:28] Nuck: If it's turn-based, use a RESTful API [20:28] Daegalus: It will be a RESTful api [20:28] Nuck: With JSON responses [20:29] Daegalus: yup [20:29] Nuck: Daegalus: Well then, Express is ideal for that [20:29] Aikar: var oCipher = crypto.createCipher('des-cbc', sSecretKey) var sCipherText = oCipher.update(sData, 'ascii') sCipherText += oCipher.final() [20:29] trotter has joined the channel [20:29] Nuck: Express is ideal for anything that involves HTTP routing [20:29] Nuck: Because tjholowaychuk is awesome like that. [20:29] Aikar: anyone see anything wrong with this to mimic PHP: mcrypt_encrypt(MCRYPT_DES, $sSecretKey, $sData, MCRYPT_MODE_CBC, $this->sInitialValue); ? [20:29] Daegalus: ok, cool, just wanted to clarify to make sure. WE are ramping up developement and I just learned about Node.js and we did some testing, and it will outdo what we can do with Python atm, so we are deciding on a design switch to write the entire backend in Node.js [20:30] Aikar: oh... i see that codes using an IV and im not [20:30] Nuck: Speaking of which, Express > jQuery UI according to the same list that says Node > jQuery LD [20:30] Nuck: :D [20:30] eastender has joined the channel [20:30] chjj: Aikar: why you posting php all up in my grill? [20:30] _sorensen_: ol [20:31] Nuck: 124 more watchers and Express will beat Jekyll [20:31] rendar: what is the purpose of "libuv" ? i have opened the dir and there is only the libev directory into that.. [20:31] Aikar: chjj: cause im trying to convert PHP code to node :P [20:31] chjj: its a compatibility layer [20:31] chjj: @rendar [20:31] Bennito: Express is AWESOME! [20:31] rendar: chjj: to port node to other platforms? [20:31] chjj: rendar: it fixes certain cross-platform compatibility things [20:32] Daegalus: I kinda wish Bitbucket was a bit more popular than it is now, because i so much prefer Hg over Git, but all the fun stuff happens on Github [20:32] chjj: yeah, it wraps libev in order to compile on all platforms [20:32] rendar: chjj: i see, so for now libev is the main thing to "port" for having cross-platform [20:32] rendar: i see [20:32] kohai: @S4RK just when i thought node.js was awesome.. now.js comes along with a "magic box" #nice #tech [20:32] chjj: Aikar: ! [20:32] chrisdickinson: Daegalus: http://repocracy.com/ for a really quick online way to convert git->hg and back. (shameless self plug.) [20:32] DrMcKay: Nuck: I will [20:32] chjj: Aikar: i tried to do that once and ended up writing stuff from scratch [20:33] kohai: @NuckChorris So, #nodejs > #jquery according to @github. 1050 more watchers and we'll beat #rails too. If you're on github but don't follow node, doit! [20:33] tomtomaso has joined the channel [20:33] chjj: lol i love how twitter just exploded [20:33] Nuck: lol [20:33] chjj: i had my eye on node last night, i knew it was going to beat jquery either today or tomorrow [20:33] Daegalus: chrisdickinson: Great site btw, but I know aobut stuff like hg push git+hg type stuff, and so on. I just dont want to do all that conversion/etc with every push/pull/etc. [20:33] TheJH: kohai, don't spread the opinion that nowjs was cool, please! [20:34] chjj: i check to day and its only a few watchers behind, and i get all excited [20:34] Bennito: kohai: I will! [20:34] kohai: I am Kohai, semi-useful communications-facilitating pseudointelligence! [20:34] TheJH: kohai, let that evil thoughts remain in the dark caves of twitter [20:34] Aikar: chjj: well im trying to write code to call back to a PHP endpoint, so it HAS to match the encryption :P [20:34] Nuck: Bennito: IT's just retweeting me in IRC [20:34] chrisdickinson: Daegalus: you can set up web hooks using repocracy on bitbucket and github so you can just push to bitbucket, I do believe. [20:34] Nuck: chjj: Now we start placing bets on when it'll beat Rails. [20:34] chovy: i'm using websockets on the client side, since it's supposed to be bi-directional, I can do source.send("HELLO WORLD"); but how do I receive this on the server side in Nodejs? [20:34] Nuck: It's gonna happen eventually [20:34] defunctzombie has joined the channel [20:34] Bennito: Nuck: So, I will! :-) [20:34] chrisdickinson: (that said, it's been a while and that may not work anymore. but, maybe worth a try.) [20:34] chjj: Nuck: i dont care when, as long as it does ;) [20:35] chovy: i currently am pushing events with http module. [20:35] chjj: Nuck: actually, soon would be good though [20:35] Nuck: This last refresh, they gained 2 watchers, we gained 5. [20:35] defunctzombie: I am having build problems building the latest master [20:35] Nuck: Fuck yeah [20:35] defunctzombie: I just did a basic ./configure [20:35] defunctzombie: and make fails with [20:35] Nuck: I should make a countdown using socket.io :P [20:35] chjj: Nuck: yeah, i think all the tweets are actually helping a lot [20:35] `3rdEden: socket.iooooo [20:35] defunctzombie: ../src/node.cc:214:55: error: ‘uv_default_loop’ was not declared in this scope [20:35] `3rdEden: ACTION woke up again [20:36] Daegalus: chrisdickinson: I just read that, that could be awesome. Thank you. Blah, Githug even looks nicer than BItBucket. [20:36] CoverSlide has joined the channel [20:36] chjj: githug? i am interested [20:36] Daegalus: lol [20:36] bluesmoon: githug is a bithub [20:36] Nuck: Somebody make a GM script that adds a Hug button to Github [20:36] Daegalus: well when Github supports hg, they can rename to GitHug [20:37] TheJH: Daegalus, I think gh already supports hg [20:37] willwhite has joined the channel [20:38] Bennito: ACTION just started to watch node on GH [20:38] Daegalus: I think it supports it in a HG -> Git conversion fashion, I mean of full Hg support [20:38] Nuck: Mercurial sucks [20:38] Nuck: Git is better [20:38] sivy has joined the channel [20:38] slifty has joined the channel [20:38] Daegalus: haha [20:38] Daegalus: eh, both have their merits, i prefer hg [20:38] CoverSlide: they're abput equal [20:39] Daegalus: I dont mind using git, but all my repos are already Hg, and I dont feel like onverting [20:39] Nuck: Yes, but Git succeeded where Mercurial couldn't: it got popularity almost overnight [20:39] Nuck: And it replaced SVN very quickly [20:39] CoverSlide: Mercurial came after git, didn't it? [20:39] chjj: Bennito: +1 for watching, -1 for not watching already, so +0 [20:39] Daegalus: Because it had backing and word of mouth from Linus (who wrote it) and it was promoted through all open source projects instantly because of that [20:39] Nuck: If it did, then MErcurial just sucks >_> [20:40] rbuck has joined the channel [20:40] Nuck: Daegalus: It was also github that helped [20:40] Aikar: anyone good with the crypto functions? im getting Error: CipherInitIv error when i pass a 10 char long value to it? [20:40] chjj: it took me a little while to fall in love with git, but now im head over heels [20:40] CoverSlide: Nuck: tell me exactly why Mercurial sucks? [20:40] Nuck: A very high-quality git hosting site [20:41] Daegalus: According to Wikipedia, Mercurial was started a few days after Git, when everyone wanted to move away from Bitkeeper in 2005 [20:41] Bennito: chjj: Thanks :-D :-D [20:41] Nuck: Yeah, I thought they were about the same time [20:41] Aikar: oh didnt see the errors printing [20:41] Nuck: So it was a fair fight there [20:41] chjj: i think mercurial was actually one of the few revision control systems linus was okay with? [20:41] Daegalus: Just git had Linus as a spokesperson [20:41] CoverSlide: yeah github definitely helped git adoption [20:41] Nuck: Except Git got more support [20:41] shapeshed has joined the channel [20:41] kohai: @CTaylor5150 Creating a quick Todo listing app on Windows using IIS7, Node.js and Mongodb by Anoop Madhusudanan http://t.co/qU8kVpE #tech #nodejs [20:41] Daegalus: and github exploded because Hg took forever to get a github equivalent [20:41] CoverSlide: Mercurial has bitbucket, but it's not nearly as popular [20:41] Nuck: First we had Linus supporting us, then we had Github [20:42] chjj: yeah, git had a really quick path to success [20:42] CoverSlide: Linus is quoted as saying if Mercurial came first he would have no reason to create git [20:42] Daegalus: CoverSlide: ya, thats what Ive found, since I use bitbucket. Upside, Bitbucekt allows private repos for free [20:42] chjj: i kinda feel bad for everything else [20:42] smathy: ...and really inconsistent commands and options, so all the CVS people felt comfortable ;) [20:42] fmeyer has joined the channel [20:42] chjj: they had no chance =/ [20:42] slifty has joined the channel [20:42] Nuck: chjj: Git has served us well, though [20:43] chjj: Nuck: i never said it didnt [20:43] Daegalus: Ya, i guess Mercurial's timing was just a few days too late [20:43] chjj: Nuck: im just saying, i kind of feel bad for other systems, they had no chance [20:43] Nuck: Daegalus: Nah, it probably wouldn't have mattered [20:43] Nuck: Git was Linus's project [20:43] Nuck: He helped set it up, IIRC [20:43] Daegalus: Well im refering to what CoverSlide said, about if Mercurial came first, they wouldnt have bothered with git [20:43] ryanfitz_ has joined the channel [20:44] Nuck: Git only won because of support. If MErcurial had gotten that support, it would've won [20:44] DrMcKay: I'm not sure, git feels way better for me [20:44] aglemann has joined the channel [20:45] Daegalus: ya, well, it is what it is. I have nothing against git, its a great DVCS, I just like Hg a tad more. I like the way it works a bit better. Its pure preference here [20:45] DrMcKay: although, I haven't had many experience with hg [20:46] aglemann: question with npm.. i have a template bundled in the package, how do i get the path to that template? using relative paths with fs seems to be looking in the module that's referencing the package, not in the package itself?! [20:46] DrMcKay: but, after all, it was git there are some people using svn and happy [20:46] Daegalus: chrisdickinson: well Repocracy just died on me. I put my repo up, tried to claim it with twitter, then when it went back to repocracy from twitter, i get 500s on everthing [20:46] Marak: anyone wanna help me test this for NKO? http://driv.in/py1AXFw [20:46] chrisdickinson: Daegalus: agh. Sorry. I need to take some time and fix that back up again ): [20:46] isaacs: aglemann: fs.blah(path.resolve(__dirname, "../blah")) [20:47] Daegalus: chrisdickinson: np :) just informing you of the bug. [20:47] Bennito: Nuck: Can kohai work on a Jabber server or is it IRC only? [20:47] jaequery: anyone here dealt with the new facebook javascript sdk? with the oauth2? [20:47] defunctzombie: ryah: unable to build the latest nodejs master (using ubuntu natty) is this known? [20:48] CIA-69: libuv: 03Igor Zinkovsky 07master * r716e8ea 10/ src/win/tcp.c : windows: fix issue with SetFileCompletionNotificationModes on 64bit xp - http://git.io/scVmLA [20:48] Bennito: defunctzombie: What went wrong? I have Natty and everything was OK. [20:49] bjy has joined the channel [20:50] aglemann: tky isaacs - worked perfectly! [20:50] isaacs: np [20:50] dmkbot: v0.5.5/node-186364e.exe: listen UNKNOWN  reported by ellisgl: https://github.com/joyent/node/issues/1621 [20:50] defunctzombie_ has joined the channel [20:50] defunctzombie_: Bennito: ../src/node.cc:214:55: error: ‘uv_default_loop’ was not declared in this scope [20:51] robi42 has joined the channel [20:51] guidocalvano has joined the channel [20:51] defunctzombie_: Bennito: did you build with cmake or ./configure && make? [20:51] Bennito: defunctzombie: ./configure and make [20:51] defunctzombie_: same [20:52] Bennito: defunctzombie_: https://gist.github.com/579814 [20:52] Bennito: the first one [20:52] matyr_ has joined the channel [20:53] _kud has joined the channel [20:53] jerrysv: ha. that last xss hurt my browser [20:53] bartt has joined the channel [20:55] Aikar: https://gist.github.com/a7223865be12ef78739b - can anyone help me figure out why this doesnt work? [20:57] brianc has joined the channel [20:57] defunctzombie_: Bennito: ill give it a try [20:57] Bennito: defunctzombie_: Yeah and let me know then. [20:57] japj: Marak: ooh noo... rick is there too! [20:57] eldios has joined the channel [20:58] Daegalus: Well I just pushed my only public repo from BitBucket to Github [20:58] kohai: @tlrobinson Really lame that NPM installs into a directory called "node_modules". It could be so much more than a Node.js package manager. [20:59] Marak: jerrysv: was that you that did the "fear the script injection" alert? or was that in the source code [20:59] Marak: im a little busy to read it all [20:59] CoverSlide: whoa someone let kohai back in? [20:59] jerrysv: marak: i didn't do the fear message, but that triggered me to start messing with the title [21:00] Marak: !part kohai [21:00] kohai has left the channel [21:00] mxp has joined the channel [21:00] Marak: who? [21:00] mxp: hey guys [21:00] mxp: http://maxpert.tumblr.com/post/9677133069/node-on-nails [21:01] jerrysv: not sure who did the first message nor the fear [21:01] mxp: Let me know if I missed any of node love http://maxpert.tumblr.com/post/9677133069/node-on-nails [21:01] rex_fernando has joined the channel [21:01] jerrysv: and now someone keeps rickrolling [21:02] fitzgen has joined the channel [21:02] tbranyen: mxp: idgi [21:03] ttpva has joined the channel [21:04] hybsch has joined the channel [21:05] devinus has joined the channel [21:05] CoverSlide: anyone else playing with gmail offline? [21:07] defunctzombie_: Bennito: that seems to have worked [21:08] defunctzombie_: Bennito: thanks, gonna look into why my git clone wasn't working [21:09] DrMcKay has joined the channel [21:10] Bennito: defunctzombie_: You´re welcome :-) [21:12] defunctzombie_: Bennito: however, that is the latest released, not the latest master (which is what I was trying to build) [21:12] jamesarosen has joined the channel [21:13] dgathright has joined the channel [21:13] Bennito: defunctzombie_: You wanted 0.4.x and not 0.5.x? [21:14] defunctzombie_: I wanted 0.5.6-pre :) [21:14] robi42 has joined the channel [21:15] CIA-69: libuv: 03Ryan Dahl 07master * r2e60358 10/ (src/unix/fs.c test/test-fs.c test/test-list.h): Add test for uv_fs_fstat, implement on unix. - http://git.io/Z92F1w [21:16] CIA-69: node: 03Ryan Dahl 07master * r3efcbad 10/ (6 files in 4 dirs): [21:16] CIA-69: node: Upgrade libuv to 2e60358 [21:16] CIA-69: node: Fixes #1621. - http://git.io/AFIzpg [21:17] abjorn has joined the channel [21:17] mynameisbender has joined the channel [21:17] mbthomas has joined the channel [21:21] Marak: http://playbossman.com/play/friends anyone? [21:22] mendel_ has joined the channel [21:23] _sorensen_: lol [21:23] yhahn: argl [21:23] yhahn: i think you passed me [21:24] defunctzombie_: so if we are using node 0.5.5 and use UDP.. how are we supposed to run our things? always with --use-uv? [21:24] bnoguchi has joined the channel [21:24] Daegalus: I beat you all <3 [21:24] DrMcKay: Marak: that's a cool game :D [21:24] defunctzombie_: this doesn't work for automated tests (unless there is an environ variable that can set this?) [21:24] bradleymeck: it always says i won? [21:24] _sorensen_: success [21:24] _sorensen_: pretty sure i won that one [21:25] Daegalus: Says I won [21:25] Daegalus: I was the only one in thw in area [21:25] _sorensen_: LIES! [21:25] _sorensen_: lol [21:25] _sorensen_: oh maybe [21:25] mrryanjohnston: question: are you guys able to log in here: http://rpsnode.nodejitsu.com/ [21:25] k1ttty has joined the channel [21:25] mrryanjohnston: I'm experiencing problems on my one box but not the other. [21:25] V1 has joined the channel [21:26] Bennito: defunctzombie_: So, download the version you want from GH and try the same with it. [21:26] Marak: yeah it is [21:26] Daegalus: Anyways, fun game, but it easily gets out of syn with others [21:26] Daegalus: sync* [21:27] DrMcKay: I haven't seen anyone else running [21:28] Daegalus: I see people run at first [21:28] Daegalus: then they all freeze [21:28] Daegalus: and i pass them [21:28] Daegalus: and then i win [21:28] defunctzombie_: Bennito: well.. there is where I get the problems :) (trying a full clean clone now again) [21:28] chovy: mrryanjohnston: works here. [21:29] mrryanjohnston: chovy: what's your os? [21:29] sammmy has joined the channel [21:29] sammmy: what is joyent? [21:29] mrryanjohnston: sammmy: the node.js deathstar [21:29] DrMcKay: I also always win :< [21:29] chjj: sammmy: an evil corporation determined to rule the world!! [21:29] DrMcKay: mrryanjohnston++ [21:29] catb0t: mrryanjohnston now has 1 beer [21:29] v8bot_: DrMcKay has given a beer to mrryanjohnston. mrryanjohnston now has 2 beers. [21:29] DrMcKay: chjj++ [21:29] catb0t: chjj now has 1 beer [21:29] v8bot_: DrMcKay has given a beer to chjj. chjj now has 4 beers. [21:29] synkro_ has joined the channel [21:29] godzirra has joined the channel [21:29] mrryanjohnston: thx bro [21:29] Daegalus: chjj++ [21:29] v8bot_: chjj is getting too many beers. Don't let chjj get drunk! [21:29] catb0t: chjj now has 1 beer [21:29] chjj: ACTION is drunk [21:30] jesusabdullah: At this hour?? ;) [21:30] jesusabdullah: chjj: east coast? [21:30] mrryanjohnston: ACTION pokes chovy [21:30] chjj: midwest :( [21:31] chjj: 4:31pm here, not so bad! [21:31] MrNko has joined the channel [21:31] fairwinds has joined the channel [21:32] tomaw has joined the channel [21:32] DrMcKay: what? there's no reddit post about our huge success? [21:32] chovy: mrryanjohnston: mac [21:32] mrryanjohnston: chovy: thanks [21:32] tomaw has joined the channel [21:32] Bennito: chjj: 11:32 PM here [21:32] chjj: our huge success speaks for itself, dont need a reddit post to diminish its sacredness [21:33] chovy: what success is that? [21:33] CStumph has joined the channel [21:33] DrMcKay: chjj: fair enough [21:33] DrMcKay: chovy: topic ^ [21:33] chjj: chovy: https://github.com/popular/watched [21:33] chjj: see for yourself ;) [21:34] jbrokc has joined the channel [21:34] sammmy: So it's a hosting platform for node.js? [21:34] mikeal has joined the channel [21:34] chovy: watch++ [21:34] v8bot_: chovy has given a beer to watch. watch now has 1 beers. [21:35] chjj: sammmy: we already told you, its the node.js deathstar, why does it need more explanation? [21:35] tbranyen has joined the channel [21:35] sammmy: chjj: lol. I'm not sure what that means. [21:35] chovy: wow, node is head of jquery [21:35] chjj: chovy: that is the success were referring to ;) [21:36] Nuck: Heh, I just created a socket.io-based counter for Github's watchers [21:36] chovy: i'm surprised. [21:36] sammmy: what do you mean head? [21:36] Nuck: It lists the difference between us and Rails, updating every 17 seconds (according to my math, approximately 5000 times a day) [21:36] chovy: sammmy: ahead [21:36] sammmy: chovy: oh. Ahead as in more users? [21:36] chovy: yeah [21:37] sammmy: how do you know that? [21:37] chovy: more wawtchers [21:37] chjj: more watchers, i dont think more users yet [21:37] Nuck: oh, that's too often >_> [21:37] chjj: worldwide, jquery probably still wins in that area [21:37] chovy: probably. [21:37] chjj: but more watchers on github ;) [21:37] pizthewiz has joined the channel [21:37] tomaw has joined the channel [21:38] sammmy: oh I see; github [21:38] DrMcKay: quick, make github accounts! [21:38] robertfw has joined the channel [21:38] DrMcKay: usernames: node-watcher-[0000-1000] [21:39] jzacsh has joined the channel [21:39] dylang has joined the channel [21:42] chjj: DrMcKay: not cool [21:42] chjj: :( [21:42] chjj: i might just take a beer from you [21:42] chjj: to drink it [21:42] sammmy: MongoDB is weird to get used to when you already know MySQL [21:42] abravo has joined the channel [21:42] chjj: i think mongo is weird to get used to from any point of view [21:43] Marak: anyone wanna test http://the-indecisives.nko2.nodeknockout.com/ with me? [21:43] chjj: ugly json query syntax [21:43] sammmy: probably true, though I wouldn't know cause I already am familiar with mysql [21:43] sammmy: chjj do you use mongo or sql? [21:43] sammmy: or other [21:44] chjj: sammmy: it depends on when you meet me, back in the day i championed using sqlite for *everything*, then i came to node and started messing around with mongo, now im messing around with redis [21:45] DrMcKay: Marak: I don't even know what's goind on [21:45] sammmy: redis? I thought that's more...lightweight. [21:45] Marak: me nither [21:45] Marak: im sorrting it out [21:45] matyr has joined the channel [21:46] chjj: sammmy: redis is a sex machine [21:46] sammmy: I like sex [21:46] sammmy: But sex isn't really persistent. [21:46] DrMcKay: chjj: btw, I've seen this kind of accounts for real, it was some about some adverts and things [21:46] DrMcKay: sammmy: neither is Redis [21:46] sammmy: unless you're charlie sheen [21:46] chovy: is jade the most popular template engine? [21:46] chjj: DrMcKay: im sure theyre around [21:47] sammmy: if redis isn't persistent, then how is it good for database storage? [21:48] ian____ has joined the channel [21:48] Nexxy: chovy, I prefer EJS [21:48] DrMcKay: nah, shooting each other doesn't give me any points [21:49] DrMcKay: neither does shooting myself [21:49] sammmy: if redis is in-memory, isn't there a risk of data loss if your server goes down/ [21:49] sammmy: ? [21:49] DrMcKay: sammmy: of course there is [21:50] sammmy: DrMcKay: THEN HOW IS THAT USEFUL FOR YOUR PRIMARY DATABASE? [21:50] Nexxy: OH MY GOD LOUD NOISES [21:50] matyr_ has joined the channel [21:50] sammmy: sorry, capslock [21:50] defunctzombie_: npm doesn't work on the latest master [21:50] Nexxy: sammmy, use it for your sessions [21:50] DrMcKay: sammmy: it isn't [21:50] Nexxy: sammmy, use riak (or mongo) for your data store [21:50] DrMcKay: Nexxy++ [21:50] catb0t: Nexxy now has 1 beer [21:50] v8bot_: DrMcKay has given a beer to Nexxy. Nexxy now has 4 beers. [21:51] Nexxy: DrMcKay, :) thanx [21:51] chjj: sammmy: calm down, damn. im just listing my love affairs with databases, im not giving you a list of stuff you should use in production for ever app you write [21:51] _sorensen_: lol [21:51] defunctzombie_: isaacs: does npm work on the latest master for you? [21:51] _sorensen_: i prefer mongo for persistance [21:51] sammmy: CHJJ: I KNOW! [21:51] DrMcKay: Nexxy: we're using redis as session storage at relief1 [21:51] sammmy: damn it.. [21:51] Nexxy: sammmy, you'll have to excuse chjj (he's the devil) [21:51] _sorensen_: redis has some very good uses though [21:51] apanda has joined the channel [21:51] _sorensen_: i use it for all my pubsub mechanics [21:51] ian____: why? [21:51] isaacs: defunctzombie_: no, require("fs") is busted. [21:51] _sorensen_: and sessions [21:51] chjj: ACTION is not the devil [21:51] isaacs: defunctzombie_: use a release [21:51] Nexxy: I love how mongo holds onto your data for up to 3 seconds before it gets around to writing it to disk [21:51] isaacs: defunctzombie_: you mean master of node, right? [21:52] Nexxy: soooo reliable [21:52] defunctzombie_: isaacs: indeed, same thing I am experiencing :) just wanted to make sure it wasn't just me [21:52] defunctzombie_: isaacs: yea [21:52] bnoguchi has joined the channel [21:52] isaacs: Nexxy++ [21:52] catb0t: Nexxy now has 1 beer [21:52] v8bot_: isaacs has given a beer to Nexxy. Nexxy now has 5 beers. [21:52] sammmy: chjj: I was talking about persistent data storage modules, not session storage ones. [21:52] isaacs: Nexxy: because no server ever crashed within a 3 second window. [21:52] isaacs: Nexxy: that's virtually instantaneous [21:52] devongovett has joined the channel [21:53] sammmy: isaacs: if you have a write the database every 3 seconds, I'm pretty sure you'll lose some data. [21:53] Nexxy: basically [21:54] Nexxy: don't use mongo for anything important :) [21:54] _sorensen_: sammy: http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis [21:54] chjj: sammmy: you must learn to accept webscale [21:54] chjj: sammmy: web...scale [21:54] sammmy: chjj: is that like dragon scales or...? [21:54] chjj: ACTION hypnotizes sammmy with webscale [21:55] sammmy: O.o [21:55] isaacs: sammmy: not quite what i was talking about... [21:55] isaacs: sammmy: more like, i write to db, [ THREE SECOND WINDOW ], now data is on disk [21:55] isaacs: if the server (or, even, the process) crashes in that 3 second window, you're done. [21:56] vns has joined the channel [21:56] sammmy: isaacs: by "you're done" do you mean ALL data is lost or only the data being written? [21:56] Marak: http://nko2-forward.herokuapp.com/game/f343d829-420a-300a-795b-116c29c1b9fd come play! [21:56] softdrink: all the data in the universe is gone. [21:57] CIA-69: node: 03Karl Skomski 07master * r65c2763 10/ src/platform_win32.cc : [21:57] CIA-69: node: Added some win32 platform functions [21:57] CIA-69: node: Fixes #1617 - http://git.io/B3h5Mg [21:57] chjj: softdrink++ [21:57] catb0t: softdrink now has 1 beer [21:57] v8bot_: chjj has given a beer to softdrink. softdrink now has 1 beers. [21:57] chjj: the space-time continuum breaks [21:57] chjj: if mongo crashes [21:57] isaacs: sammmy: at least the data being written [21:57] isaacs: sammmy: or rather, the data that you'd assumed was already written. [21:57] isaacs: and had stopped caring about, because, of course, it's in the db [21:57] isaacs: and your proc manager restarts mongo, and all is well [21:58] sammmy: chjj: I'm glad to know that mongo hasn't had such an event so far. Pretty robust so far. [21:58] caolanm has joined the channel [21:58] isaacs: and then a month later, you realize that 0.3% of your transactions are missing, and you don't know which 0.3% [21:58] topaxi has joined the channel [21:58] isaacs: welcome to data recovery hell. [21:58] sammmy: isaacs: sounds like you don't use mongoDB [21:58] isaacs: sammmy: no, i think it's great. [21:58] isaacs: there are a lot of cases where losing 1% of your data is fine. [21:58] isaacs: (really) [21:59] isaacs: if you care about statistical relevance, losing a random 1% (or even 10% or 20%) is usually ok [21:59] isaacs: as long as it's distributed evenly [21:59] DrMcKay: meh, I've never been good at Tetris [21:59] mecablaze has joined the channel [21:59] chjj: i quickly grew to hate json flavored query syntax, i dont know why [21:59] sammmy: isaacs: I don't think any data loss is good at all. [21:59] sammmy: Marak: game doesn't work for meh [21:59] DrMcKay: Marak: it has few bugs, I was able to move my piece after it dropped [21:59] isaacs: but, like all tools, you have to know its strengths and weaknesses. i worry that a lot of people are using mongo for cases it's not really designed to handle, and they wont' find out until they're under production load. [22:00] Marak: yeah i dont understand those game mechanics at all [22:00] isaacs: sammmy: but all analysis is, in some form, "data loss" [22:00] mecablaze: is there a standard way of waiting for a set of asynchronous tasks to complete? i.e. a set of asynchronous fs.unlink's [22:00] sammmy: isaacs: analysis? Maybe I'm not understanding what you mean. [22:00] chjj: mecablaze: yes, it depends on how you want to do it though [22:00] chjj: mecablaze: in serial or parallel? [22:01] DrMcKay: mecablaze: caolan/async on github [22:01] Bennito: ACTION just bought Meet Node.js from Peepcode [22:01] Charuru has joined the channel [22:01] caolanm: mecablaze: learn how to do it once, then just use this http://github.com/caolan/async [22:01] caolanm: ;) [22:02] mecablaze: chjj, what do you mean by serial or paralell? [22:02] chjj: yes, good to at least learn it [22:02] isaacs: sammmy: well, when you ask yourself "how many chairs are in this room", you lose some data about the room in order to focus on the question at hand. [22:02] DrMcKay: and better to use [22:02] isaacs: sammmy: for a lot of tasks, capturing data quickly is more important than capturing every shred of data. [22:02] socketio\test\15 has joined the channel [22:02] isaacs: sammmy: let's say you're watching markets for trends, or analyzing the twitter public stream to figure out where fires are happening, etc. [22:03] chjj: mecablaze: theres 2 ways to iterate over a set of async actions, you can either start them all at once, or wait for one to complete before starting the next iteration [22:03] isaacs: or just tracking clicks on a website [22:03] isaacs: sammmy: losing some data is better than slowing down the pipeline [22:03] DrMcKay: sammmy: but after all, you wouldn't want to end up without a room when asking about chairs ;) [22:03] chjj: mecablaze: parallel is faster, but serial will guarantee everything finishes in order [22:03] DrMcKay: isaacs++ [22:03] catb0t: isaacs now has 1 beer [22:03] v8bot_: DrMcKay has given a beer to isaacs. isaacs now has 2 beers. [22:03] chjj: mecablaze: since youre just deleting a bunch of files, the order probably doesnt matter [22:04] mecablaze: chjj, if I don't care about order, could i just have each callback set a boolean to true in a list and when all the booleans in the list are true, then proceed? [22:04] mecablaze: Or is that a "naive approach" [22:04] sammmy: isaacs: sure you lose the data you don't need when _retrieving_ data, but when preserving data, you generally would like to keep what's important; if someone cancels a reaccuring bill on their account and we don't record that, well that's not good. [22:05] chjj: mecablaze: a parallel loop would look like this: var i = obj.length; obj.forEach(function() { ... if (!--i) callback(); }); [22:05] sammmy: DrMcKay: my point exactly. [22:05] isaacs: sammmy: yeah, that's why i would be very careful about using mongo for tracking data where every single bit counts. [22:05] DrMcKay: sammmy: that's why we have clusters and sharding (one of many reasons) [22:05] joshthecoder has joined the channel [22:05] mrdoodles has joined the channel [22:05] isaacs: sammmy: you *can* configure and tune it to be more fault-tolerant, but it's not hte default, and most people don't. [22:05] mrdoodles: has anyone seen thuds??? http://coreh.github.com/nide/ [22:05] chjj: mecablaze: you decrement the variable every iteration, and once it hits 0, execute the callback [22:05] DrMcKay: but, generally, what isaacs said [22:05] mrchess has joined the channel [22:05] Nuck: Once I make this countdown sexier, I'm gonna post it for all to see :P [22:05] mrdoodles: I've actually switched to ti …. [22:05] phiggins has joined the channel [22:06] chjj: mecablaze: you can actually see how its done in caolan's module im sure [22:06] DrMcKay: when it comes to being 100% sure, I would go for Couch or some SQL DB [22:06] mrdoodles: as an editor. what I'm trying to figure out, is where this node module is so i can change the coffee script theme [22:06] chjj: mecablaze: go check out the code [22:06] isaacs: sammmy: on the other side of the spectrum, there's riak, which is slow and generally a pita, but does do a *very* good job about keeping every single piece of data you ever tell it, unless you thermite the boxes. [22:06] mrdoodles: if you use -g on a module where does it install to? [22:06] mecablaze: chjj, will do. thanks for the tips! [22:07] DrMcKay: mrdoodles: $prefix/lib/node_modules [22:07] DrMcKay: mrdoodles: prefix is usually /usr/local [22:08] mike5w3c_ has joined the channel [22:08] ryah: isaacs: well - you should qualify your slow [22:08] ryah: isaacs: it doesn't have secondary indexes - so if you need that functionality it's bad [22:09] ryah: *your use of 'slow' [22:09] isaacs: ryah: true that [22:09] isaacs: it's also a litle bit of a cpu hog [22:10] ryah: isaacs: that's probably because we're continuously running map reduce jobs :) [22:10] n42 has joined the channel [22:10] isaacs: ryah: no, even turning that service off, it sits there using half a cpu at idle [22:10] ryah: huh - that sucks [22:11] skunkape has joined the channel [22:12] isaacs: the map-reduce work does indeed cause some serious global warming, though [22:12] jesusabdullah: What are you MR-ing? [22:12] isaacs: jesusabdullah: ....stuff. [22:13] isaacs: jesusabdullah: the list of ports mapped for ssh do no.de zones. [22:13] isaacs: map-reduce in riak is definitely costly. secondary indexes would be nice, but i don't know what goes into adding that in riak's design, of course. [22:14] chovy: anyone have an example of a user registration form with nodejs and mongodb? [22:15] freewil: hehe map-reduce work and global warming in the same sentence is laughable to this bitcoin miner :) [22:15] isaacs: haha [22:15] n42: is there any way to take a string and convert to a symbol? like: var foo = "bar"; console.log(symbolOf("foo")) => "bar" [22:15] jesusabdullah: When I hear mapreduce I usually think hadoop [22:15] isaacs: bitcoins are definitely bad for the environment [22:15] huskyr has joined the channel [22:15] hybsch has joined the channel [22:15] JSManiacs: isaacs: Just out of curiosity, do you write you MR functions in javascript or erlang? [22:15] jesusabdullah: Also bad for the environment: outdoor heat lamps [22:16] jesusabdullah: Just sayin' [22:16] isaacs: n42: eval? [22:16] n42: duh! [22:16] n42: thanks. [22:16] isaacs: JSManiacs: javascript. [22:16] jesusabdullah: with riak? [22:16] Dreamer3 has joined the channel [22:16] jesusabdullah: or what? [22:16] isaacs: jesusabdullah: yeah [22:16] jesusabdullah: ah [22:16] isaacs: jesusabdullah: and with couchdb, too [22:16] jesusabdullah: :o cool! [22:16] isaacs: jesusabdullah: i do all my m-r with js [22:16] jesusabdullah: I want to play with mapreduce AND couch, so [22:16] jesusabdullah: that's good [22:17] isaacs: i do dig the api for map-reduce in riak. [22:17] jesusabdullah: I think I think about MR wrong, though [22:17] isaacs: it's kinda nice. couch's is kind of wonky [22:17] n42: well, actually, eval is kind of a security risk [22:17] jesusabdullah: in that when I think of distributed stuff like MR, my mind automatically goes to, "we can run SO many physics simulations!" [22:17] isaacs: n42: absolutely :) [22:17] n42: I know in Ruby you can do "foo".intern which will return :foo [22:17] isaacs: n42: why do you need it? [22:17] jesusabdullah: which actually would be pretty cool to do [22:18] isaacs: n42: can you put it in an object, instead? [22:18] navaru has joined the channel [22:18] navaru has left the channel [22:18] chjj: n42: yeah, it sounds like you could be doing things differently [22:18] isaacs: n42: like, obj["foo"] = "bar"; function getSymbolOf(x) { return obj[x] } [22:18] n42: yeah I feel like I could too [22:18] isaacs: n42: when you see eval(), it means your'e probably doing something at least mostly wrong [22:18] n42: yup [22:18] jesusabdullah: What are these symbols? [22:19] n42: in Ruby, you can use a symbol to represent an object -- it's a literal, :foo always equals :foo [22:19] jesusabdullah: sure [22:19] n42: while "foo" is an instance of a string and might not always equal another "foo" string [22:19] jesusabdullah: but in javascript? [22:19] jesusabdullah: hmm [22:19] yept has joined the channel [22:19] n42: but you can define a function named "foo" and reference it with :foo [22:20] n42: this is all Ruby of course [22:20] n42: I'm just not that familiar with JS/Node [22:20] jesusabdullah: ah [22:20] jesusabdullah: I just reference a function with its name [22:21] n42: basically, I'm trying to peak at an object's value and I might not know what the object is named [22:21] lightcap has joined the channel [22:21] jesusabdullah: Interesting [22:21] brainproxy: n42: javascriptgarden.info is a helpful resource, especially for someone who's already familiar with prog'ing concepts [22:21] n42: I don't think there's anyway to get an objet representing the local scope, is there? [22:22] matyr has joined the channel [22:22] n42: brainproxy: thanks, I'll check it out [22:23] chjj: n42: no, but you shouldnt need to do that [22:23] _sorensen_: isaacs: whats the learning curve like for riak? [22:23] n42: I think I'm just spoiled by Ruby [22:23] n42: gonna reevaluate what I'm trying to do [22:24] brainproxy: n42: javascript only has function scope [22:24] aheckmann has joined the channel [22:25] sivy has joined the channel [22:25] AvianFlu has joined the channel [22:26] Cromulent has joined the channel [22:26] kiffness has joined the channel [22:27] n42: it's worth noting that NodeJS has made me appreciate the beauty of JavaScript.. [22:27] hybsch has joined the channel [22:27] n42: quickly becoming a favorite [22:27] jiggliemon has left the channel [22:27] brainproxy: n42: you might also look into CoffeeScript [22:28] n42: actually, I have.. but I am a bit conflicted about it [22:28] lmorchard has joined the channel [22:28] tbranyen: same [22:28] n42: the auto variable scope makes me uncomfortable.. I haven't run into issues but it still irks me a bit [22:28] brainproxy: i was for awhile too [22:29] n42: also, I haven't figured it out but somehow I keep breaking block comments [22:30] albertosheinfeld has joined the channel [22:30] hybsch has joined the channel [22:30] brainproxy: n42: in JS? [22:30] n42: CoffeeScript [22:30] hybsch has left the channel [22:31] n42: I think it has something to do with leading whitespace; is that allowed? [22:31] brainproxy: let me see [22:31] chjj: n42: are you learning coffeescript before javascript? [22:32] chjj: i would recommend going the other way around [22:32] n42: nah, I first started writing in JavaScript and then discovered CoffeeScript [22:32] n42: but there are certain things that I may have missed before switching [22:32] tjholowaychuk: n42 stick with js you'll actually get jobs [22:32] tjholowaychuk: and learn to appreciate the good things, and *actually* learn the bad things [22:33] n42: I constantly compile the coffeescript into JS to see what's going on, though [22:33] DrMcKay: tjholowaychuk++ [22:33] catb0t: tjholowaychuk now has 1 beer [22:33] v8bot_: DrMcKay has given a beer to tjholowaychuk. tjholowaychuk now has 2 beers. [22:33] DrMcKay: JS itself is good enough [22:33] n42: yeah, I can appreciate that [22:33] n42: for sure [22:33] brainproxy: n42: leading whitespace in block comments seems to have some gotchas [22:34] DrMcKay: and seriously, I've never felt a desire to pack it into anything else [22:34] tjholowaychuk: js already has too much syntactic crap [22:34] tjholowaychuk: more is not a good thing [22:34] n42: I'm not planning on sticking with CoffeeScript, but it's helping me bridge from Ruby to JS [22:34] _sorensen_: its kinda like learning jade before learning html [22:35] tbranyen: or learning javascript before assembly [22:35] Daegalus: WAIT, you are supposed to learn HTML before Jade? CRUD *goes back to the drawing board* [22:35] tbranyen: i mean who does that [22:35] _sorensen_: though not a good enough of a comparison [22:35] brainproxy: i agree with that; i don't think learning coffee first would have been a good approach for me [22:35] _sorensen_: i learned assembly first! :P [22:35] tmpvar: i dont think it matters as long as you keep learning [22:36] apanda has joined the channel [22:36] brainproxy: but being fairly well versed in JS, I appreciate coffee and other tools that work to encapsulate things in plain JS that can get clunky [22:36] n42: true, I'm not the kind of person to just read syntax, accept it and move on [22:36] tjholowaychuk: n42 yeah exactly, language features are what people should care about [22:36] tjholowaychuk: not syntax [22:36] CIA-69: libuv: 03Ryan Dahl 07master * r9f932f9 10/ (src/unix/fs.c test/test-fs.c test/test-list.h): add test fs_chmod, implement uv_fs_fchmod and uv_fs_chmod on unix - http://git.io/RRXAIg [22:36] aheckmann has joined the channel [22:36] tjholowaychuk: anyone with ragel/lemon can write a layer on some other language [22:37] tjholowaychuk: we need cooler features in js [22:37] tjholowaychuk: and typeof null != 'object' [22:37] tbranyen: :3 [22:37] chjj: v8 implemented that actually [22:37] icey has joined the channel [22:37] tbranyen: null.null = null; [22:37] chjj: it was in a commit a little while ago [22:37] tjholowaychuk: chjj really? [22:37] tjholowaychuk: sweet [22:37] tbranyen: what is it now? [22:37] tbranyen: just null? [22:37] brainproxy: tjholowaychuk: well i guess harmony will get here eventually :/ [22:37] icey has left the channel [22:37] mraleph: under the flag [22:37] shanebo: anybody running node on linux? if so what distro is recommended? [22:38] softdrink: i use coffeescript the same way i use haml/sass/stylus/whatever [22:38] kiffness_ has joined the channel [22:38] tbranyen: shanebo: i run it on arch, can install via the package manager which is nice [22:38] brainproxy: shanebo: I get by fine with ubuntu server [22:38] n42: using CentOS but I'd prefer not to be.. [22:38] brainproxy: I like to use nvm for easy install/update of node and npm [22:38] Marak: beat time anyone? http://sponoders.nko2.nodeknockout.com/#/rooms/djmarak [22:38] shanebo: and each of you are running multiple node apps on one server just fine? [22:39] chjj: tjholowaychuk: https://github.com/v8/v8/commit/332187ca6db93bd582445bfb10128c817f5b87d6 [22:39] tbranyen: yeah, i dunno why that'd be an issue [22:39] trotter has joined the channel [22:39] chjj: theres another commit somewhere i think [22:39] brainproxy: shanebo: sure; but if you're looking for a deployment solution you might consider something like haibu [22:39] chjj: but its there [22:39] mraleph: chjj: under the --harmony_typeof [22:40] chjj: yeah [22:40] kiffness has joined the channel [22:40] tjholowaychuk: mraleph oh yeah i wanted to ask you yesterday, how cheap are the isolates? [22:41] Marak: beat time anyone? http://sponoders.nko2.nodeknockout.com/#/rooms/djmarak [22:41] mraleph: chjj: http://code.google.com/p/v8/source/detail?r=8876 [22:41] mraleph: tjholowaychuk: not cheap. [22:41] tjholowaychuk: mraleph ah ok thanks [22:41] nibblebo_ has joined the channel [22:41] mraleph: it's whole new v8 instance. [22:41] prettyrobots has joined the channel [22:42] mraleph: that depends what are you planning to use them for [22:42] _dc has joined the channel [22:42] shanebo: brainproxy any experience with haibu? [22:42] tjholowaychuk: yeah i guess if they are long-lived it's not a huge deal [22:43] brainproxy: shanebo: no, not yet, but the idea of it makes sense to me and its on my radar screen for a larger project [22:43] shanebo: brainproxy I was looking at this for multiple apps: http://coolaj86.info/articles/vhosts-with-nodejs.html [22:44] brainproxy: tjholowaychuk's cluster provides some similar facilities i think [22:44] arthurd has joined the channel [22:44] tjholowaychuk: the examples use connect's vhost [22:44] mraleph: tjholowaychuk: yes. but as they share nothing — a problem of duplication will arise. [22:45] brainproxy: i mean cluster w/ respect to haibu; the coolaj86.info thing shows connect's vhost in action [22:45] mraleph: but it might not be a problem at all. especially if you create like isolate per core and do some processing... [22:46] kiffness has joined the channel [22:46] Sorella has joined the channel [22:46] shanebo: so which is better for a smaller few projects? [22:47] tjholowaychuk: shanebo if you're fine with managing them as one unit go with connect's vhost [22:47] tjholowaychuk: if you want to manage them separately use node-http-proxy [22:47] tjholowaychuk: or nginx etc [22:47] usoban has joined the channel [22:47] scwoodal has joined the channel [22:48] shanebo: tjholowaychuk, one unit meaning I'd have to fire all apps from a single server.js file? [22:48] wilmoore has joined the channel [22:48] tjholowaychuk: shanebo yeah, connect's vhost() middleware is.. just middleware haha, everything is still in one process [22:48] tjholowaychuk: the apps act as callbacks [22:48] shanebo: tjholowaychuk and nginx won't bottleneck with node? [22:48] MrNko has joined the channel [22:49] slickplaid: tjholowaychuk will bottleneck... he's a big bottleneck [22:49] tjholowaychuk: shanebo use haproxy then [22:49] tjholowaychuk: but you said "small" [22:49] tjholowaychuk: so [22:49] tjholowaychuk: :p [22:49] shanebo: true story [22:51] usoban: anybody has a clue why the same buffer would have different hashes with crypto.createHash('sha1') and hashlib.sha1() ? [22:51] bnoguchi has left the channel [22:52] ncb000gt: Question, when did, version number, node-waf start putting builds into build/Release (or otherwise) and is there a pattern I can follow for my modules? [22:52] ncb000gt: I presume it's not something completely new but I've had my head in a hole while 0.5.x has been dev'd [22:53] hij1nx has joined the channel [22:55] chjj: usoban: are you sure hashlib accepts buffers? [22:55] chjj: usoban: im looking at the code, it looks like it only takes strings [22:56] usoban: yeah i've been wondering about that earlier ... [22:56] [[zzz]] has joined the channel [22:56] ncb000gt: Looks like the default->Release change happened on 8/23 [22:56] ncb000gt: in case anyone cares [22:57] usoban: but i also get different hash with java, so I don't know what i'm doing wrong :D [22:57] ncb000gt: in 879eb162806884 [22:59] shanebo has joined the channel [22:59] halfhalo: sooo… anyone have any suggestions for something similar to socket.io but with node clients? Ideally something that could talk over either tcp or udp (or others) seamlessly. I looked at faye, but from what I saw it broadcasts all messages to all clients whom are listening, which is not what I want. [22:59] aoberoi has joined the channel [23:02] JaKWaC: hook.io ? [23:04] JaKWaC: halfhalo: Have you looked at hook.io? [23:04] mavus has joined the channel [23:06] halfhalo: I have a little, but I don't think it will work. my clients are going to, for the most part, be mobile devices and I think hook.io is not appropriate for running on them. [23:06] shanebo: tbranyen, you're using this? http://www.archlinux.org/ and it allows for installation via npm? [23:06] halfhalo: I'm just really not wanting to write my own layer right now [23:07] tbranyen: shanebo: arch linux package manager is pacman [23:07] isaacs: halfhalo: use dnode [23:08] isaacs: halfhalo: dnode does RPC over any random stream [23:08] isaacs: tcp, tls, socket.io, process stdout/stdout, anythign [23:08] isaacs: er, stdin/stdout [23:08] ryanfitz has joined the channel [23:08] soapyillusions has joined the channel [23:09] meso has joined the channel [23:10] halfhalo: isaacs: yeah, i know (I was playing with the dnode-protocol to make something similar to the threads module on 0.5.x earlier). The problem with dnone is it still makes me write a tcp/udp server/client layer which I don't want to do. buuutttt… looks like I will have to. [23:10] dshaw_ has joined the channel [23:10] isaacs: halfhalo: there's a tcp client and server in node already [23:10] blup has joined the channel [23:10] jobject has joined the channel [23:11] halfhalo: yup. but for what I'm doing I need to almost invisibly switch/connect/etc between that and udp, and maybe some other form of transport [23:11] misterm has joined the channel [23:11] vidi: is there a way to do a sync blocking http get request? [23:12] isaacs: vidi: no [23:12] slifty has joined the channel [23:12] AvianFlu: vidi: bash [23:12] aoberoi has joined the channel [23:12] AvianFlu: XD [23:13] dmkbot: Addon docs should be more thourough. reported by camellia0x: https://github.com/joyent/node/issues/1313 [23:15] aoberoi has joined the channel [23:16] vidi: i was going to use curl [23:17] vidi: trying to get the app to make a get request to get config before continuing [23:17] markwubben has joined the channel [23:18] sonnym has joined the channel [23:20] micheil has joined the channel [23:21] euforic has joined the channel [23:22] yhahn has left the channel [23:22] cjheath_ has joined the channel [23:23] skm has joined the channel [23:23] kiffness has joined the channel [23:24] jesusabdullah: Any y'all know of a good way to time execution of programs in the shell? [23:24] blup_ has joined the channel [23:24] cjheath_ has joined the channel [23:24] Kami_ has joined the channel [23:24] micheil has joined the channel [23:24] TooTallNate: jesusabdullah: cron? [23:25] jesusabdullah: No, I mean, to time how long something runs before it breaks [23:25] jesusabdullah: or rather, before it terminates [23:26] TooTallNate: jesusabdullah: like running a server for a set amount of time? [23:26] jesusabdullah: Sure [23:26] TooTallNate: and then closing it after i.e. an hour? [23:26] jesusabdullah: No, like [23:26] jesusabdullah: I want to know how long a terminating program takes to run [23:27] jesusabdullah: like, performance testing, but I don't have a javascript function or something, I have an executable [23:27] Murvin: tjholowaychuk: hi.. how to change the session cookie name ? I want to use something other than connect.sid.. [23:27] TooTallNate: time node script.js [23:27] jesusabdullah: time? [23:27] jesusabdullah: a'ight [23:27] TooTallNate: yup, time [23:27] tjholowaychuk: Murvin http://senchalabs.github.com/connect/middleware-session.html [23:27] jesusabdullah: Thanks dawg [23:28] TooTallNate: np [23:28] Murvin: tjholowaychuk: cool. thanks. hahah i saw it long time ago and can't remember where it is. thanks [23:29] chjj: i kinda hoped #jquery wouldve been devestated by their loss today, i dont think anyone has even mentioned it yet =( [23:30] kiffness_ has joined the channel [23:30] Ratty_: Loss of what? [23:31] jesusabdullah: Ratty_: node is now the 2nd most watched project on github [23:31] jesusabdullah: we knocked jquery into third sometime today [23:31] chjj: Ratty_: https://github.com/popular/watched [23:31] Ratty_: Oh sweet [23:31] jesusabdullah: yeah, I know right? XD [23:31] slifty has joined the channel [23:32] Ratty_: Catching up to rails [23:32] socketio\test\10 has joined the channel [23:33] jesusabdullah: indeed [23:33] jesusabdullah: Now if only there were as many node programmers as rails types [23:33] tjholowaychuk: jesusabdullah they are all coming to node now [23:34] Ratty_: There's literally zero Node jobs in this country [23:34] tjholowaychuk: and django ppl [23:34] jesusabdullah: Maybe it's just me but it seems like number of watchers and number of actual users have very litte correlation [23:34] chjj: yeah, they see node starting to beat rails and decide to switch ;) [23:34] jesusabdullah: Ah, but a lot of django and rails people are probably gonna be pretty conservative [23:34] jesusabdullah: and ateful on javascript [23:35] tjholowaychuk: that's why they use CS [23:35] tjholowaychuk: they dont care to learn js [23:35] tjholowaychuk: or want to [23:35] cpetzold has joined the channel [23:35] kiffness has joined the channel [23:35] jesusabdullah: I suppose so! [23:36] jesusabdullah: I'm not sure coffeescript is much "better" though [23:36] Ratty_: I never learned CS [23:36] m_ has joined the channel [23:36] tjholowaychuk: and rakefiles instead of makefiles etc [23:36] tjholowaychuk: just because you can [23:36] tjholowaychuk: i guess [23:36] tjholowaychuk: haha [23:36] chjj: i think thats a good thing maybe, you dont see node coders switch over to ruby and write a js to ruby compiler [23:36] chjj: because once you go node, you dont go back, or something [23:36] dshaw_1 has joined the channel [23:37] chrisdickinson: ACTION tucks his exploratory python javascript runtime under the rug. [23:37] chrisdickinson: ACTION whistles. [23:37] chjj: haha [23:37] chrisdickinson: (at work I use python, and I've been really spoiled by being able to test both the client side and server side code with a single test runner.) [23:37] chrisdickinson: (due to node.) [23:39] Kami_ has joined the channel [23:39] replore has joined the channel [23:39] replore_ has joined the channel [23:42] jerrysv: curious if anyone can tell me the best templating engine, nosql database, and mvc framework would be for this pet project that i'm working on? [23:42] Destos has joined the channel [23:42] jerrysv: it also needs to be compatible with vbscript, so something nice and modern should do the trick just fine. [23:42] Daegalus: well you need to give us details on the project if you want someone to help. [23:42] joeytwiddle has joined the channel [23:42] slifty has joined the channel [23:43] jerrysv: the project is a new dotcom, with a potential number of users between the hundreds and the millions [23:43] jerrysv: so, it's gotta, you know, scale. [23:43] wmage has joined the channel [23:43] shipit has joined the channel [23:45] dscape: Anyone knows of a cat blocker app for mac? [23:45] dscape: like prevent my cat from screwing with my source code by randomly deciding its a good time to jump on my laptop? [23:45] tjholowaychuk: dscape haha [23:45] jerrysv: sudo mv /bin/cat /bin/blocked? [23:45] tjholowaychuk: i need a ferret one [23:46] jerrysv: sudo mv /bin/ferret /bin/blocked [23:46] raydeo` has joined the channel [23:47] chjj: cat cat > /dev/null [23:47] jerrysv: dscape: tjholowaychuk: in all actuality, i'm pretty sure i've seen one before [23:47] skunkape has joined the channel [23:47] jerrysv: and i *thought* it was on os x [23:47] dscape: jerrysv: they constantly break my code [23:47] dscape: good thing is its normally easy to find [23:48] jerrysv: dscape: mine keeps clicking on things on my ipad, should get her mittens [23:48] dscape: kitten mittens [23:48] dscape: ahah [23:49] jesusabdullah: My parakeet thinks it's okay to walk all over laptop keyboards [23:49] Nuck: http://peterlejeck.tk:3030/ DONE. [23:49] jesusabdullah: Haven't been able to get him to do any different [23:49] Nuck: Wait [23:49] jesusabdullah: luckily he's so light he usually can't press the buttons down even standing on them [23:49] jerrysv: jesusabdullah: can he suggest an mvc/templating language/nosql db for me? [23:50] Nuck: Okay, NOW it works. [23:50] Destos has joined the channel [23:50] Nuck: http://peterlejeck.tk:3030/ is a countdown to us surpassing Rails. [23:51] jesusabdullah: jerrysv: I think all he can really suggest is chewing on paper, pooping everywhere and yelling "BIRD BIRD BIRD BIRD" [23:51] Nuck: with realtime updates [23:51] Nuck: Though, I need to throttle it down more [23:51] jerrysv: ok, so what you're saying is that i can solve all of my issues with this "bird" app? [23:51] CarterL has joined the channel [23:52] eee_c has joined the channel [23:52] mrryanjohnston: would you guys consider this a "good" countdown timer: https://gist.github.com/1187601 [23:52] Nuck: Pulling straight off github's api [23:52] mrryanjohnston: If not, why? [23:52] reid has joined the channel [23:52] mrryanjohnston: tim_smart showed me a much more complicated solution a while back but I never understood why it was way better [23:53] Kami__ has joined the channel [23:53] Nuck: Somebody watch the node repo for me, I wanna see if it updates right :P [23:53] mrryanjohnston: Nuck: hahhhh, that's aweseom [23:53] Nuck: mrryanjohnston: I used it as a chance to learn Socket.io [23:53] Nuck: The CSS is complete and utter shit [23:54] mrryanjohnston: ACTION shrugs [23:54] Nuck: But I just wanted to whip it out quickly :P [23:54] mrryanjohnston: I wasn't lookin at it [23:54] mrryanjohnston: sooo you're good! [23:54] MrNko has joined the channel [23:54] Nuck: It flashes a bit with each actual update, but the server sends off an update every 86.5 seconds (5000 times a day, if I'm right) [23:54] jvolkman: mrryanjohnston: pretty sure you've got a syntax error there.. [23:54] Nuck: It just checks if it works [23:54] Nuck: jvolkman: The first line? [23:55] Nuck: It's a pretty nasty bit of code, IMO [23:55] jvolkman: not closing the if block [23:55] Nuck: Lines 2 and 5 don't work well :V Also, you're right. [23:55] Nuck: Well, I should rephrase that, lines 2 and 5 look nasty to me [23:55] jvolkman: why not just set the interval for 1000 * seconds? [23:55] Nuck: I smell noob-killing magic lol [23:56] CrisO has joined the channel [23:56] Nuck: jvolkman: I'm assuming because he wants to display the timer [23:56] mrryanjohnston: jvolkman: oh woops [23:56] mrryanjohnston: sorry [23:56] mrryanjohnston: I kinda threw that together hastily [23:56] eee_c has joined the channel [23:56] tim_smart: mrryanjohnston: I can't remember :p [23:57] mrryanjohnston: tim_smart: I still have the code ;) [23:57] mrryanjohnston: nevrar forget [23:57] tim_smart: mrryanjohnston: Oh I remember, because setTimeout / setInterval is not perfect [23:57] tim_smart: So you have to double check after long peroids with a timestamp if you want super accurate timeouts [23:58] jvolkman: right. your callback will be called sometime at or after the number of milliseconds you provide [23:58] creationix has joined the channel [23:58] mrryanjohnston: I see [23:58] creationix: I have a question about "node_modules" and different platforms [23:59] creationix: I want to bundle binaries with my app, but run it in more than one architecture [23:59] mrryanjohnston: (kinda) [23:59] creationix: isaacs: can npm help with that? [23:59] mrryanjohnston: Is it just imperfect all across the boards, or do browsers do it differently. [23:59] isaacs: what? [23:59] isaacs: oh, architecture... um... no.