[00:01] avih has joined the channel [00:02] azend has joined the channel [00:03] mdel_ has joined the channel [00:03] xtianw has joined the channel [00:07] poincare101 has joined the channel [00:08] poincare101: Hi everyone. I was looking through the Node Code, and I noticed that there was this bit going on with this.headers = this.headers || {} [00:08] poincare101: what would that do? Would that set this.headers to {} if its this.headers isn't true? [00:09] maxogden: s/this.headers isn't true/this.headers isn't truthy/ [00:09] aioue has joined the channel [00:10] tilgovi has joined the channel [00:11] killing-joke: poincare101, i use that idiom in other languages to mean "if there are pre-existing 'headers', use those. if 'headers' is nil, then we need to create some, so initialize 'headers' with this empty (whatever)" [00:12] killing-joke: poincare101, but be warned, i just started learning JS this weekend. [00:12] codygray has joined the channel [00:13] avih has joined the channel [00:13] killing-joke: mostly, that statement at or near the top makes the code safer for re-entry. if i call the func again, i preserve my earlier headers. on the first pass through the code, i initialize and populate 'headers' [00:13] jesusabdullah: I can explain [00:13] killing-joke: yes, please [00:13] jesusabdullah: js or falls through [00:13] jesusabdullah: so, if this.headers exists it's truthy [00:13] mrryanjohnston has joined the channel [00:13] bwinton has joined the channel [00:14] jesusabdullah: and the result of this.headers || {} is this.headers [00:14] jesusabdullah: but, if this.headers is falsey, it returns the second one [00:14] jesusabdullah: or, {} [00:14] jesusabdullah: so the reason it does that is to make sure this.headers is defined so that you can do something like, [00:14] jesusabdullah: if (this.headers.foobar) { ... } [00:14] jesusabdullah: if you try to access (undefined).foobar it'll explode on you [00:15] jesusabdullah: hence the need to set this.headers to {} if necessary [00:15] killing-joke: good explanation [00:15] jesusabdullah: so, like you said XD [00:15] jesusabdullah: I came from python, which doesn't roll that way [00:15] jesusabdullah: it sounds like ruby might? [00:16] killing-joke: i will tell you after i learn it well enough to write code like that. :D [00:16] jesusabdullah: based on you saying 'nil' I'm guessing your background is ruby these days :P [00:16] killing-joke: hah! [00:18] AAA_awright: jesusabdullah: If this.headers is truthy, it exists, but of course not necessarily the other way around... [00:19] jesusabdullah: AAA_awright: If it's an object it should be truthy, I meant. You're right in that existence is only a necessary condition for truthiness and not a sufficient one. [00:19] aioue has joined the channel [00:19] jesusabdullah: ("necessary condition" and "sufficient condition" are amongst my favorite pieces of jargon.) [00:20] devaholic: catb0t \o [00:20] catb0t: o nna gain EVEN [00:21] codygray has joined the channel [00:23] Sorella has joined the channel [00:24] aioue has joined the channel [00:25] beriberikix has joined the channel [00:26] aioue has joined the channel [00:26] wereHamster: are there any good exception handling libraries that store exceptions in a database (instead of sending them to getexceptional etc)? [00:28] beriberikix: I got an old version of node on a mac that I can't uninstall [00:28] beriberikix: make uninstall does nothing - and tips to delete it? [00:28] grampajoe: Is hashlib not installable through npm? [00:29] aioue has joined the channel [00:30] wookiehangover has joined the channel [00:31] towski has joined the channel [00:31] aioue has joined the channel [00:31] flat has joined the channel [00:31] avih has joined the channel [00:33] astrobunny has joined the channel [00:35] mbrevoort has joined the channel [00:36] aioue has joined the channel [00:36] Skaag has joined the channel [00:36] Me1000 has joined the channel [00:40] josh_k has joined the channel [00:43] cmr has joined the channel [00:43] davidban_ has joined the channel [00:44] CIA-109: node: 03Ryan Dahl 07isolates2 * r9432a12 10/ (6 files in 4 dirs): [00:44] CIA-109: node: Join all threads at end of main thread [00:44] CIA-109: node: Require reorganizing the isolates somewhat. [00:44] CIA-109: node: Add a very simple test. (+17 more commits...) - http://git.io/1mzJpA [00:45] avih has joined the channel [00:46] te-brian2 has joined the channel [00:48] aioue has joined the channel [00:48] codygray has joined the channel [00:52] josephg has joined the channel [00:52] aioue has joined the channel [00:52] coderzach has joined the channel [00:54] k1ttty has joined the channel [00:55] aioue has joined the channel [00:55] Me1000 has joined the channel [00:58] windsurf_ has joined the channel [00:58] avih has joined the channel [00:59] aioue has joined the channel [01:00] jerrysv has joined the channel [01:00] JaKWaC has joined the channel [01:01] mike5w3c_ has joined the channel [01:04] neoesque has joined the channel [01:04] josh-k has joined the channel [01:04] jerrysv has joined the channel [01:05] aioue has joined the channel [01:05] YouDontMeanMuch has joined the channel [01:06] davidbanham has joined the channel [01:07] brianseeders has joined the channel [01:07] avih has joined the channel [01:08] sechrist_ has joined the channel [01:09] bwinton has left the channel [01:09] poincare101 has left the channel [01:10] scottschecter has joined the channel [01:13] aioue has joined the channel [01:13] davidban_ has joined the channel [01:16] crescendo has joined the channel [01:16] crescendo has joined the channel [01:17] aioue has joined the channel [01:18] TN has joined the channel [01:20] jrogers has joined the channel [01:20] avih has joined the channel [01:21] langworthy has joined the channel [01:23] aioue has joined the channel [01:25] langworthy has joined the channel [01:25] caycep has joined the channel [01:25] catshirt has joined the channel [01:25] caycep: am i a bad person if i would rather stick w/ vim than switch to emacs? [01:26] cmr: Nope [01:26] cmr: Use whatever editor you're comfortable with. [01:27] cmr: And don't let the zealots sway you :) [01:27] tbranyen: caycep: vim > emacs forever and always [01:28] Dmitrijus: oh yes! [01:28] caycep: always thought it might be a good idea to learn both but for some reason never found the time to sit down and understand emacs [01:28] tbranyen: nah you'll confuzzle your brain [01:28] caycep: although the random insult generator that was bundled with it was amusing for 30 seconds [01:29] augustl: the only thing that matters is that you don't use vi, obviously [01:29] cmr: Or nano. [01:30] SubStack: any editor can do the job [01:30] avih has joined the channel [01:30] SubStack: EXCEPT FOR NANO FUCK THAT THING [01:30] jklabo has joined the channel [01:31] topaxi: use ed! [01:31] acuster has joined the channel [01:31] caycep: nano was like simpletext but no mouse buttons [01:31] caycep: actually when i said vim, i should really learn vim > vi [01:32] tbranyen: meh they are virtually identical [01:32] SubStack: I want to learn ed so I can whip it out during a presentation [01:32] tbranyen: i use vi and vim interchangeably seems everything i know is based in vi [01:32] SubStack: and pretend like it's no big thing [01:32] cmr: SubStack: That would be pretty badass [01:33] cmr: vim and vi are not virtually identical [01:33] cmr: Most of the features I use besides navigation are not in vi [01:34] tbranyen: cmr: i was speaking from my own experience, in which vi *is* virtually identical [01:37] aioue has joined the channel [01:38] windsurf_ has joined the channel [01:38] fr0ggie has joined the channel [01:38] fr0ggie: Anywhere i can get references for libuv? [01:39] avih has joined the channel [01:39] caycep: i need to learn the fancy jump/move/replace command thingies [01:40] windsurf_ has joined the channel [01:40] icewhite has joined the channel [01:43] windsurf_: Any suggestions for app architecture for a socket.io web app? [01:44] jklabo has joined the channel [01:46] nicholasf has joined the channel [01:47] jarek__ has joined the channel [01:47] Destos has joined the channel [01:47] wiwillia has joined the channel [01:47] wiwillia: teespring.com/nodejs -> 3 more till it tips! [01:52] bstahlhood: wiwillia: reserved one [01:52] wiwillia: bstahlhood awesome! [01:52] avih has joined the channel [01:52] bstahlhood: just need one more [01:52] bfishe200 has joined the channel [01:53] testing has joined the channel [01:53] bfishe200: is there a bug in node [01:53] bfishe200: where gettimezoneoffset = 0? [01:53] bfishe200: in the browser it is returning correctly for me [01:53] bfishe200: but not in node [01:53] xicubed_ has joined the channel [01:54] bfishe200: date.gettimezoneoffset = 0 [01:54] ditesh|cassini has joined the channel [01:55] gigafied has joined the channel [01:55] tilgovi_ has joined the channel [01:55] tilgovi_ has joined the channel [01:56] CarterL has joined the channel [01:57] rick_ has joined the channel [01:57] mike5w3c has joined the channel [01:57] wiwillia: bstahlhood woohoo! It tipped [01:58] bstahlhood: cool :) [02:02] caioketo has joined the channel [02:02] _baton__ has joined the channel [02:02] bfishe200: comeon anyone know the answer [02:02] bfishe200: if we dont have the right timezone our missiles will launch incorrectly so someone tell me [02:03] wingie: bfishe200: lol [02:04] rhdoenges has joined the channel [02:04] tmm1 has joined the channel [02:05] madhums has joined the channel [02:06] mitc0185 has joined the channel [02:07] cmr: Speaking of vim, what do you all use for syntax highlighting, indentation, etc? I've never found something really satisfactory. [02:07] redir_ has joined the channel [02:07] mitc0185: cmr do you have anything in your vimrc? [02:07] cmr: mitc0185: I have bunches of things in my vimrc [02:08] mitc0185: syntax on? [02:08] cmr: Yep [02:08] mitc0185: but you're not getting syntax highlighting? [02:08] mitc0185: what filetype? [02:08] cmr: I am, I just don't like it. [02:08] cmr: ;P [02:08] aalvarez has joined the channel [02:08] caycep has joined the channel [02:08] flip_digits has joined the channel [02:09] mitc0185: cmr :help colo [02:09] YouDontMeanMuch: anybody have issues installing and running ncurses?: npm install ncurses [02:09] YouDontMeanMuch: builds correctly, but says its missing "ncurses_addon", is this on my machine only? [02:09] windsurf_ has joined the channel [02:09] mitc0185: cmr: I've always liked colorscheme koehler [02:10] cmr: mitc0185: I really like xoria256 (With some modifications to make some of the colors a bit more saturated) [02:10] YouDontMeanMuch: i didn't see anything in the node-ncurses issue queue on github, just wanted to make sure before filing one [02:10] bfishe200: how do i get post data in node.js [02:10] mitc0185: http://pastebin.com/FDweJsTQ is how I have my indenting set up [02:10] cmr: YouDontMeanMuch: It's building [02:11] YouDontMeanMuch: it builds correctly for me but if i do node> require('ncurses') [02:11] YouDontMeanMuch: it shows that error, you getting the same? [02:11] cmr: I'll tell you when it finishes. [02:11] YouDontMeanMuch: oh ty very much [02:13] bfishe200: how do i retrieve post data in node with express [02:13] mde_: Wow, I'm actually still logged on here. [02:13] bfishe200: post is in the time form of time=5 [02:14] mde has joined the channel [02:14] cmr: mitc0185: My main issue is handling of line continuation and especially indentation of objects within function calls/indenting callbacks. I have to do it manually. I guess it's mostly because I don't know how to write my own indentation script [02:14] cmr: YouDontMeanMuch: I get an assertion error, "Assertion `handle->InternalFieldCount() > 0' failed." [02:15] YouDontMeanMuch: what os you using? [02:15] ChaoWang has joined the channel [02:15] cmr: Linux, Debian unstable [02:15] YouDontMeanMuch: oh, you got that from the build? [02:15] cmr: No, when I go to require('ncurses') [02:15] YouDontMeanMuch: eh, sigh [02:16] gregmoreno has joined the channel [02:16] YouDontMeanMuch: using osx [02:16] YouDontMeanMuch: i'll try on my linux machine, thanks again [02:16] cmr: np [02:16] IrishGringo has joined the channel [02:18] luxigo has joined the channel [02:18] tomlion has joined the channel [02:18] avih has joined the channel [02:18] gregmoreno has joined the channel [02:19] gregmoreno has joined the channel [02:20] gregmoreno has joined the channel [02:24] samsonjs has joined the channel [02:25] grampajoe: Can I assume command line options will always start at process.argv[2]? [02:25] cmr: Yes [02:25] cmr: Actually. [02:26] jakehow has joined the channel [02:26] cmr: Yes. [02:26] slajax: Has anyone here any experience with uploading really large (50GB) files to S3 via nodejs? [02:26] wingie: jezz [02:27] wingie: grampajoe: yepp [02:27] grampajoe: cmr, wingie, wonderful, thanks [02:28] syoyo__ has joined the channel [02:28] joshkehn has joined the channel [02:28] joshkehn has left the channel [02:29] jomoho2 has joined the channel [02:29] samsonjs has joined the channel [02:30] avih has joined the channel [02:31] Ownatik has joined the channel [02:31] jimt has joined the channel [02:32] gregmoreno has joined the channel [02:33] ChaoWang has joined the channel [02:33] gregmoreno has joined the channel [02:35] mikzz has joined the channel [02:37] dudeinthemirror has joined the channel [02:37] yogurt_truck has joined the channel [02:38] flat has joined the channel [02:39] grampajoe: Is there a way to pass command line arguments to a script through npm start/run-script? [02:39] dudeinthemirror: does anybody use / know of a process monitoring npm ? (trying to replace god http://god.rubyforge.org/) [02:42] slajax: dudeinthemirror - do you mean something like forever or monit? [02:43] slajax: monit is probably the best option I know of for process monitoring / alerts etc [02:43] JianMeng has joined the channel [02:43] dudeinthemirror: yes. Are they the only choices at this point [02:43] dudeinthemirror: ah OK, I'll take a look, thx much [02:45] dudeinthemirror: @grampajoe - not sure if this is helping with your question, but I'm using 'optimist' for parsing command line arguments [02:45] Hosh has joined the channel [02:45] caolanm has joined the channel [02:45] yuwang has joined the channel [02:45] towski has joined the channel [02:46] postwait has joined the channel [02:48] kazupon has joined the channel [02:49] ciss has joined the channel [02:50] a_suenami has joined the channel [02:50] ryan_stevens has joined the channel [02:51] kishoreyekkanti has joined the channel [02:55] wingie: how do i "npm link" a lib globally? [02:55] wingie: since i need to use the CLI binary [02:55] wingie: it says npm link shouldnt be used for global packages [02:55] frabcus has joined the channel [02:56] christoffe has joined the channel [02:56] spathi has joined the channel [02:56] torm3nt has joined the channel [02:58] sechrist has joined the channel [03:01] nassosdim has joined the channel [03:06] JakeyChan has joined the channel [03:09] BillyBreen has joined the channel [03:10] cody-- has joined the channel [03:11] marcello3d: huh. http://www.nytimes.com/aponline/2011/12/18/world/asia/AP-AS-Korea-Kim-Jong-Il.html?_r=1 [03:11] tbranyen: yea [03:11] tbranyen: pretty nuts [03:12] ChrisMatthieu: Wow! I think his son is next in line for the position, right? [03:13] tbranyen: yeah the video gamer [03:16] langworthy has joined the channel [03:21] avih has joined the channel [03:25] dreamdust has joined the channel [03:25] jacobolus has joined the channel [03:25] codygray has joined the channel [03:25] avih has joined the channel [03:26] blup has joined the channel [03:27] yenz: wow [03:27] CPartridge has joined the channel [03:28] tomlion_ has joined the channel [03:28] coderzach: yeah [03:29] mikeal has joined the channel [03:32] Me1000 has joined the channel [03:35] devongovett has joined the channel [03:35] brianloveswords has joined the channel [03:38] josephg has joined the channel [03:38] fr0ggie: Is there some better documentation than a 1423 line header file for libuv? [03:38] amigojapan has joined the channel [03:39] brainproxy: anyone know how to get mikeal's watch to not barf on the symlinks that emacs auto creates (emacs creates them as part of its "interlocking" logic) [03:39] secoif has joined the channel [03:39] maxogden: use vim [03:39] maxogden: ACTION trollface [03:39] secoif has joined the channel [03:41] brainproxy: maxogden: I do use vim ... was contemplating a switch, at least for awhile ... just betting my bearings in emacs land [03:41] brainproxy: *getting my... [03:42] ChrisPartridge: brainproxy: it only barfs on those symlinks? and not other symlinks? [03:42] gavin_huang has joined the channel [03:42] maxogden: brainproxy: doesnt watch just depend on some other module anyway? did you open a ticket or check for existing ones/ [03:43] Wizek has joined the channel [03:43] maxogden: ahh it uses fs.watchFile [03:44] brainproxy: maxogden: yes, I opened an issue [03:45] brainproxy: ChrisPartridge: I've not had problems before this, but will experiment... [03:45] Vennril has joined the channel [03:46] ShinyDarkness has joined the channel [03:48] m00p has joined the channel [03:51] Jay has joined the channel [03:52] bfishe200 has joined the channel [03:53] e6nian has joined the channel [03:54] r04r has joined the channel [03:54] r04r has joined the channel [03:56] jocafa has joined the channel [03:58] srijan4 has joined the channel [03:59] YouDontMeanMuch has joined the channel [03:59] r04r has joined the channel [04:00] [[zz]] has joined the channel [04:00] enos_feedler has joined the channel [04:00] ChrisMatthieu has joined the channel [04:01] simoon has joined the channel [04:02] simoon: hi node.js I'm just testing my express/redis app: http://abovesobelow.com:8888/ [04:03] cmr: simoon: pretty neat [04:03] simoon: thanks, lemme know if you run into any bugs [04:03] raincole has joined the channel [04:03] simoon: It's still a young project :P [04:04] cmr: Less padding-top [04:05] r04r has joined the channel [04:05] simoon: ah ok cmr [04:06] ChrisPartridge: simoon: using the up/down arrays to flip the card scrolls the browser, might want to cancel that native event [04:07] simoon: ACTION adds to TODO list [04:07] cmr: simoon: Using h2 instead of h1 for the card's content would be better, maybe even h3 [04:07] mdel__ has joined the channel [04:08] simoon: I'll probably style the text inside the card with a custom size, thanks I need to add that to the TODO as well [04:08] cmr: It's not a matter of size, it's a matter of the semantics of the html tags. [04:08] simoon: Ohhhhhh! [04:08] cmr: The style is just fine :) [04:08] simoon: ok, well it shouldn't be an Hx [04:09] simoon: at all then [04:09] simoon: its not a header ;P [04:09] simoon: I should probably span id=xyz [04:09] simoon: and style it that way [04:09] simoon: but thanks [04:10] r04r has joined the channel [04:11] dr0id has joined the channel [04:12] cmr: Using window.location.hash to reference the card in the deck would be nice. Also, using the name of the deck as part of the url is really odd, at least user/deck. The problem is that all deck names then have to be unique. [04:13] simoon: that's true, I may re-engineer that [04:13] cmr: Yeah, bad things happen when I try to add a duplicate-named deck. [04:14] cmr: POST instead of GET for creating decks, maybe. GET doesn't really make sense for making something. [04:14] simoon: nod [04:14] cmr: (These are really small nitpicks, tell me to stop whenever) [04:14] stefpb has joined the channel [04:14] simoon: no, I like the duplicate deck title problem [04:14] r04r has joined the channel [04:15] ryan_stevens has joined the channel [04:15] cmr: When viewing deck list, having the deck name be larger and more prominent, as well as to the left of the controls, would be better. Possibly use a heavily styled