[00:00] xerox_ has joined the channel [00:00] a11235 has joined the channel [00:00] sstephenson has joined the channel [00:00] xerox_ has joined the channel [00:00] a11235 has joined the channel [00:00] sstephenson has joined the channel [00:00] Dulak: oh that's just lovely [00:00] CiRlE has joined the channel [00:00] xerox_ has joined the channel [00:00] a11235 has joined the channel [00:00] a11235 has joined the channel [00:00] sstephenson has joined the channel [00:00] a11235 has joined the channel [00:00] sstephenson has joined the channel [00:01] xerox_ has joined the channel [00:01] a11235 has joined the channel [00:01] sstephenson has joined the channel [00:01] xerox_ has joined the channel [00:01] a11235 has joined the channel [00:01] sstephenson has joined the channel [00:01] a11235 has joined the channel [00:01] sstephenson has joined the channel [00:01] a11235 has joined the channel [00:01] xerox_ has joined the channel [00:01] sstephenson has joined the channel [00:02] a11235 has joined the channel [00:02] sstephenson has joined the channel [00:02] a11235 has joined the channel [00:02] sstephenson has joined the channel [00:02] a11235 has joined the channel [00:02] sstephenson has joined the channel [00:02] Darren has left the channel [00:02] a11235 has joined the channel [00:02] sstephenson has joined the channel [00:02] Darren has joined the channel [00:03] a11235 has joined the channel [00:03] sstephenson has joined the channel [00:03] Darren has left the channel [00:03] a11235 has joined the channel [00:03] sstephenson has joined the channel [00:03] a11235 has joined the channel [00:03] sstephenson has joined the channel [00:03] a11235 has joined the channel [00:03] jbrokc has joined the channel [00:03] sstephenson has joined the channel [00:04] a11235 has joined the channel [00:04] sstephenson has joined the channel [00:04] a11235 has joined the channel [00:04] sstephenson has joined the channel [00:04] schwab has joined the channel [00:04] a11235 has joined the channel [00:04] sstephenson has joined the channel [00:04] a11235 has joined the channel [00:04] sstephenson has joined the channel [00:04] jacobolus has joined the channel [00:04] drderidder has joined the channel [00:05] a11235 has joined the channel [00:05] sstephenson has joined the channel [00:05] a11235 has joined the channel [00:05] sstephenson has joined the channel [00:05] CiRlE has joined the channel [00:05] jacobolus has joined the channel [00:05] a11235 has joined the channel [00:05] sstephenson has joined the channel [00:05] a11235 has joined the channel [00:05] sstephenson has joined the channel [00:06] a11235 has joined the channel [00:06] sstephenson has joined the channel [00:06] a11235 has joined the channel [00:06] sstephenson has joined the channel [00:06] a11235 has joined the channel [00:06] sstephenson has joined the channel [00:06] jbpros has joined the channel [00:06] a11235 has joined the channel [00:06] sstephenson has joined the channel [00:07] a11235 has joined the channel [00:07] sstephenson has joined the channel [00:07] mmalecki: can someone please stop this fucking flood? thank you. [00:07] a11235 has joined the channel [00:07] sstephenson has joined the channel [00:07] a11235 has joined the channel [00:07] sstephenson has joined the channel [00:07] a11235 has joined the channel [00:07] sstephenson has joined the channel [00:08] a11235 has joined the channel [00:08] sstephenson has joined the channel [00:08] a11235 has joined the channel [00:08] sstephenson has joined the channel [00:08] darren has joined the channel [00:08] a11235 has joined the channel [00:08] sstephenson has joined the channel [00:08] a11235 has joined the channel [00:08] sstephenson has joined the channel [00:09] a11235 has joined the channel [00:09] idanbeck has joined the channel [00:09] sstephenson has joined the channel [00:09] Juan77 has joined the channel [00:09] a11235 has joined the channel [00:09] sstephenson has joined the channel [00:09] shenlok has joined the channel [00:09] a11235 has joined the channel [00:09] sstephenson has joined the channel [00:09] vkareh has joined the channel [00:09] a11235 has joined the channel [00:09] sstephenson has joined the channel [00:10] a11235 has joined the channel [00:10] sstephenson has joined the channel [00:10] a11235 has joined the channel [00:10] shenlok: so, the install guide for node says to do the usual ./configure, make, [sudo] make install [00:10] sstephenson has joined the channel [00:10] shenlok: yet make install doesn't work [00:10] a11235 has joined the channel [00:10] CiRlE has joined the channel [00:10] sstephenson has joined the channel [00:10] shenlok: anyone got any tips for a newbie? [00:10] a11235 has joined the channel [00:10] sstephenson has joined the channel [00:11] a11235 has joined the channel [00:11] sstephenson has joined the channel [00:11] mmalecki: bnoordhuis: poke [00:11] eliasp: shenlok: don't do this... either install it locally or use your distributions package manager [00:11] mmalecki: piscisaureus: poke [00:11] a11235 has joined the channel [00:11] sstephenson has joined the channel [00:11] mmalecki: isaacs: poke [00:11] a11235 has joined the channel [00:11] sstephenson has joined the channel [00:11] bnoordhuis: shenlok: what error do you get? [00:11] a11235 has joined the channel [00:11] _unary has joined the channel [00:11] sstephenson has joined the channel [00:11] shenlok: heh [00:11] shenlok: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [00:11] makeInstallBot: shenlok: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [00:12] shenlok: well [00:12] a11235 has joined the channel [00:12] mmalecki: bnoordhuis: can you ban *.steadfast.net? [00:12] shenlok: there we go [00:12] sstephenson has joined the channel [00:12] drderidder has left the channel [00:12] a11235 has joined the channel [00:12] sstephenson has joined the channel [00:12] bnoordhuis: mmalecki: hrm, just turn off enter/leave notifications [00:12] shenlok: latest stable it is [00:12] a11235 has joined the channel [00:12] sstephenson has joined the channel [00:12] brianseeders has joined the channel [00:12] bnoordhuis: i don't want to ban innocent people [00:12] idanbeck has joined the channel [00:12] a11235 has joined the channel [00:12] sstephenson has joined the channel [00:13] a11235 has joined the channel [00:13] bradleymeck: sstephenson has some history here, wonder whats causing that for him [00:13] sstephenson has joined the channel [00:13] a11235 has joined the channel [00:13] sstephenson has joined the channel [00:13] a11235 has joined the channel [00:13] sstephenson has joined the channel [00:13] fairwinds has joined the channel [00:13] replore has joined the channel [00:13] wojohowitz has joined the channel [00:13] a11235 has joined the channel [00:13] mmalecki: is it him? https://twitter.com/#!/sstephenson [00:13] replore_ has joined the channel [00:13] sstephenson has joined the channel [00:14] a11235 has joined the channel [00:14] sstephenson has joined the channel [00:14] a11235 has joined the channel [00:14] zpao has joined the channel [00:14] sstephenson has joined the channel [00:14] a11235 has joined the channel [00:14] sstephenson has joined the channel [00:14] hswolff has joined the channel [00:14] a11235 has joined the channel [00:14] sstephenson has joined the channel [00:15] ohtogo has joined the channel [00:15] sstephenson has joined the channel [00:15] sstephenson has joined the channel [00:15] CiRlE has joined the channel [00:15] sstephenson has joined the channel [00:15] sstephenson has joined the channel [00:16] sstephenson has joined the channel [00:16] sstephenson has joined the channel [00:16] sstephenson has joined the channel [00:16] sstephenson has joined the channel [00:17] sstephenson has joined the channel [00:17] adrianmg has joined the channel [00:17] sstephenson has joined the channel [00:17] adrianmg has left the channel [00:17] sstephenson has joined the channel [00:17] mandric has joined the channel [00:17] sstephenson has joined the channel [00:18] sstephenson has joined the channel [00:18] sstephenson has joined the channel [00:18] sstephenson has joined the channel [00:19] sstephenson has joined the channel [00:19] ignacioiglesias has joined the channel [00:19] sstephenson has joined the channel [00:19] bnoordhuis: remind me to remove it tomorrow [00:20] alejandromg: what's wrong with you sstephenson... [00:20] alejandromg: lol [00:20] CiRlE has joined the channel [00:20] bnoordhuis: could be a network problem on his side [00:20] mmalecki: bnoordhuis: do you want a bot for that :D ? [00:21] alejandromg: haha bots FTW! [00:21] alejandromg: yeah maybe that's the problem [00:21] isaacs: mmalecki: poked [00:21] isaacs: what's up? [00:22] mmalecki: isaacs: nothing now, sorry to interrupt [00:22] isaacs: oh, np [00:22] mmalecki: isaacs: (dat flood ^) [00:23] igl1 has joined the channel [00:23] bnoordhuis: i wonder what would happen if i banned *!*@* [00:24] isaacs: "We had a problem with floods, so bnoordhuis boiled the ocean away." [00:24] jsurfer has joined the channel [00:25] te-brian has joined the channel [00:25] Aria has joined the channel [00:25] mmalecki: bnoordhuis: try ;) [00:25] CiRlE has joined the channel [00:25] petrjanda has joined the channel [00:25] MatthewS has joined the channel [00:30] CiRlE has joined the channel [00:32] joemccann has joined the channel [00:32] shaggydog97 has joined the channel [00:32] Draco_ has joined the channel [00:34] koo0 has joined the channel [00:34] ryanfitz has joined the channel [00:35] Juan77 has joined the channel [00:35] CiRlE has joined the channel [00:37] phiggins has joined the channel [00:38] karlbrigh has joined the channel [00:40] CiRlE has joined the channel [00:41] ekryski_ has joined the channel [00:41] fzzzy has joined the channel [00:42] bradleymeck has joined the channel [00:44] neoesque has joined the channel [00:44] aoberoi has joined the channel [00:44] neurodrone has joined the channel [00:45] TheLifelessOne has left the channel [00:45] CiRlE has joined the channel [00:45] sdwrage has joined the channel [00:45] seebees has left the channel [00:46] seebees has joined the channel [00:46] joshkehn has joined the channel [00:47] Bonuspunk: did you really ban *!*@* ? [00:48] Bonuspunk: usually leads to no more joins and everybody without voice cant talk [00:48] tbranyen: huh what do you mean "usually" [00:48] Bonuspunk: dont know for sure about the voice thing [00:49] coderzach has joined the channel [00:49] jellosea: how do i close all sockets from a htpp server [00:49] jellosea: http [00:49] jellosea: server.close() doesn't seem to close all the open connections [00:50] stantona has joined the channel [00:50] deedubs: are people using anything for there closed source CI atm? jenkins? [00:50] CiRlE has joined the channel [00:50] coderzach: what's atm? [00:52] deedubs_ has joined the channel [00:52] schwab has joined the channel [00:52] stantona_ has joined the channel [00:53] pifantastic has joined the channel [00:53] pifantastic: bradleyg: ping [00:53] stantona_ has joined the channel [00:55] deadmau5 has joined the channel [00:55] CiRlE has joined the channel [00:57] raincole has joined the channel [00:57] raincole_ has joined the channel [00:58] avih has joined the channel [01:00] CiRlE has joined the channel [01:01] vkareh has joined the channel [01:03] davidbanham has joined the channel [01:05] pauls1 has joined the channel [01:05] CiRlE has joined the channel [01:06] TN has joined the channel [01:07] kazupon has joined the channel [01:08] mike5w3c has joined the channel [01:08] joshsmith has joined the channel [01:10] avih has joined the channel [01:10] CiRlE has joined the channel [01:11] shanebo has joined the channel [01:14] eeemsi has joined the channel [01:15] k1ttty has joined the channel [01:15] CiRlE has joined the channel [01:15] jzacsh has joined the channel [01:15] jzacsh has joined the channel [01:16] cjm has left the channel [01:17] jellosea: can someone help me please i need to close all open connections [01:17] jellosea: in my node process [01:17] eeemsi: chjj: building nodejs with -j4 takes not that much time ;) [01:18] rchavik has joined the channel [01:18] rchavik has joined the channel [01:19] bstahlhood has joined the channel [01:20] CiRlE has joined the channel [01:24] idl3 has joined the channel [01:24] alejandromg: Guys a node.js not related question: How can I make a jump list(index) with markdown... [01:25] CiRlE has joined the channel [01:27] soapyillusions has joined the channel [01:27] enmand has joined the channel [01:28] satyr has joined the channel [01:28] jldbasa has joined the channel [01:29] francisl has joined the channel [01:29] rails_noob has joined the channel [01:30] CiRlE has joined the channel [01:35] CiRlE has joined the channel [01:35] tommyvyo has joined the channel [01:37] tjholowaychuk has joined the channel [01:38] ditesh|cassini has joined the channel [01:40] bstahlhood_ has joined the channel [01:40] jellosea: how do i get a server to stop listening on a port [01:41] idl3_ has joined the channel [01:41] bstahlhood_ has joined the channel [01:44] jaequery has joined the channel [01:44] matin has joined the channel [01:44] matin: hello [01:44] chrisvwebdev has joined the channel [01:44] matin: can someone advise me in picking hardware for a local node server? [01:45] chrisvwebdev has left the channel [01:45] shaggydog97 has joined the channel [01:46] CiRlE has joined the channel [01:46] Emmanuel has joined the channel [01:46] robertj: matin, doing anything particular with it? [01:46] matin: it's replacing my pentium 4 256 mb ram pos of a server [01:46] matin: from a long time ago [01:47] schwab has joined the channel [01:47] robertj: well err, I mean anything is gonna be better than that [01:47] matin: I'm planning on using the new one for node.js + php application development [01:47] matin: haha true [01:47] robertj: unless your doing something special it's not going to matter [01:47] robertj: I have a linode that does me just fine [01:48] matin: linode? [01:48] robertj: so i'd say the cheapest thing that has dual power supplies and onboard raid 1 [01:48] robertj: xen virtual hosting [01:48] alejandromg: yeah! If your apps doesn't use to much memory, a small instance is ok.. [01:49] schwab has joined the channel [01:49] matin: oh i just wanted something at home [01:49] robertj: if you do use memory then your solution is easy: buy gobs of ram or take a performace hit and get a ssd and use virtual memory [01:50] robertj: if your internet conneciton isn't good consider a netbook [01:50] matin: lol [01:50] matin: i used a netbook this summer [01:50] robertj: so? it's gonna save you $5/mo on power [01:50] matin: i no longer trust acer netbooks [01:50] paulwe has joined the channel [01:50] matin: the screen got melted to the keyboard [01:50] robertj: dude they are all made in the same burmese sweatshop or whatever [01:51] robertj: make backups, buy a new one when it catches on fire and falls over [01:51] jellosea: i'm calling server.close() but node is still listening on the port, how do i fix this? [01:51] matin: lol benefit of living in an apartment, no utility bills :) [01:51] gavin_huang has joined the channel [01:51] icewhite has joined the channel [01:51] matin: i was actually thinking of making a server [01:52] robertj: buy something virus infested on craigslist for $30 and clean it up [01:52] jryans has joined the channel [01:52] CiRlE has joined the channel [01:52] adnasa has joined the channel [01:53] ChaoWang has joined the channel [01:53] matin: lol [01:54] robertj: someone on craiglist will have a laptop with a broken PC [01:54] robertj: err LCD [01:54] dgathright has joined the channel [01:54] matin: i was planning on just getting everything from newegg [01:54] abraxas has joined the channel [01:54] stantona has joined the channel [01:55] danbeam has left the channel [01:55] robertj: so err, is it safe to say a Proxy is _not_ kosher for a context? [01:56] jellosea: is there an unlisten function for a server [01:56] matin: robertj, http://mailinator.com/displayemail.jsp?email=nodejshw&msgid=6019577 [01:57] robertj: I'd go with 8gigs if you aren't pinched for cash [01:57] robertj: 4 is certainly fine [01:57] stantona has joined the channel [01:58] robertj: also if your not needing the sapce i'd look at an 80 gig ssd if you want some pep [01:59] robertj: http://www.fatwallet.com/forums/hot-deals/1143879/ [01:59] robertj: $80 after rebate [02:00] monokrome has joined the channel [02:01] matin: lol [02:01] matin: did i forget to add a HD? [02:01] matin: I'm so bad with hardware [02:02] yuwang has joined the channel [02:02] k1ttty has joined the channel [02:03] robertj: that's an incredible rebate [02:03] robertj: I bought the 120 gig drive for $200 a few weeks back [02:04] matin: to be quite honest [02:05] matin: I'm pretty scrapped for money [02:05] matin: as I'm a student [02:05] jryans_ has joined the channel [02:05] hostsamurai has joined the channel [02:06] tbranyen: matin: you think you're strapped for cash now? [02:06] tbranyen: wait till you graduate [02:06] tbranyen: those student loans will be like winning the lottery [02:06] bstahlhood_ has joined the channel [02:06] matin: haha [02:06] tbranyen: only instead of getting positive money, you get negative [02:06] davidascher has joined the channel [02:06] gkatsev: tbranyen: I dont have any student loans :P [02:06] matin: im not in college [02:06] gkatsev: not anymore [02:06] tbranyen: eat it [02:07] tbranyen: matin: hs? [02:07] gkatsev: and I haven't graduated yet. [02:07] asoltys has joined the channel [02:07] matin: yup [02:07] robertj: matin, you in the states? [02:07] tbranyen: gkatsev: lucky sob [02:07] gkatsev: :P [02:07] tbranyen: matin: thats cool, i didn't even know what irc was in high schol [02:07] gkatsev: paid them all off in full [02:07] a_suenami has joined the channel [02:07] matin: robertj ye [02:08] tbranyen: gkatsev: thats really good considering your school [02:08] tbranyen: 40kish a year right? [02:08] gkatsev: yeah [02:08] gkatsev: a bit less, really [02:08] gkatsev: but we paid most of it ourselves [02:08] matin: tbranyen, haha thanks, I'm trying to pay my own college expenses [02:08] tbranyen: yea rit was 42k a year >_> [02:08] gkatsev: I only had like 14k in loans to pay off [02:08] matin: and eventually move to SF or boston [02:08] gkatsev: and thankfully, co-oped helped [02:08] phiggins has joined the channel [02:09] matin: so anyway [02:09] robertj: matin, if you wanna do computers unless you want to go into academia or math-type research go to a cheap state school, keep living with your aprents, and get a job while your in college [02:09] gkatsev: tbranyen: going to get such a huge check from the goverment in may. :D [02:09] matin: can someone help me find a good deal on new egg or somewhere [02:09] robertj: i did a year of community college instead of my senior year in high school and graduated in 2.5 yrs after my hs graduation [02:09] Sorella has joined the channel [02:09] matin: robertj, I'm going to major in aerospace engineering [02:10] JakeyChan has joined the channel [02:10] Drakonite has joined the channel [02:10] gkatsev: tbranyen: I lived at home also. it's like 40K just for tuition with another 10k for room+board [02:10] matin: at prob UVA if i don't get into MIT/stanford [02:10] MartinodF has joined the channel [02:10] robertj: matin, you certian thats what you want to do with your life and you willing to claw your way over 9/10 folks who are in it for the cash? [02:10] gkatsev: well, more like 36K [02:10] matin: i've already done internships with NASA [02:10] Aria has joined the channel [02:11] matin: and I'm taking 5 APs as a junior :P [02:11] robertj: as lonog as you know for certain thats what you want to do and that you can hang with the big dogs don't be afraid to spend the big bucks to go to the best schools but if you have a shred of doubt go cheap [02:12] matin: I'm just not too good with hardware [02:12] matin: i typically focus on coding [02:12] gkatsev: CS is software [02:12] matin: i know [02:12] matin: i was talking about figuring out what to get to make a node/php server [02:13] tbranyen: drop the php and you're golden [02:13] robertj: just something cheap, seriously, it doesn't matter one iota [02:13] skunkape has joined the channel [02:13] gkatsev: matin: just get a free account from joyent. but it depends on what you want to do with the server. [02:13] matin: I'm using nodejitsu [02:13] teadict: what's missing for a complete development (ignore alternatives of the same functionality)?: http://paste.ubuntu.com/753248/ [02:14] matin: but I'm coding an ssh/command executor [02:14] robertj: 99% of your stuff will run a-ok on anything, the other 1% will hit a bottleneck that is application specific and it will be obvious what you should buy mroe of when you have it [02:14] matin: in node [02:14] matin: which is meant to be installed on each person's own server [02:14] matin: but the main reason i need it [02:14] robertj: and then you spend $5k on 128 gigs of ram and off you go [02:14] matin: is to host my php application [02:14] gkatsev: get a VPS? [02:15] matin: which i plan on getting VC funding for [02:15] matin: but i don't want to waste the money on a VPS [02:15] robertj: you could also look int an amazon EC2 micro instance [02:15] maxogden: i'd buy a 'i got vc for ram' tshirt [02:15] gkatsev: can't say it's really wasting... [02:15] jsurfer has joined the channel [02:15] gkatsev: also, prgmr is really cheap [02:15] nicholasf: ec2 micro instances grind when you type ls -ltrh in the /tmp dir [02:16] nicholasf: too low on resources [02:16] matin: i'd rather be able to hold on to my own server [02:16] robertj: gkatsev, I've been very happy with linode for my stuff [02:16] robertj: i've got one personal linode and 2 i use for work [02:16] jocafa has joined the channel [02:17] gkatsev: robertj: yeah, linode is good. prgmr is life half price. though, apparently, the prices went up by like a dollar or two since the last time I looked [02:17] robertj: when I was in highschool I had a shell on a Microsoft box [02:17] robertj: I'm afraid those days are probably gone [02:17] gkatsev: and I guess there is also 2host, which is, um... idk. it's cheap but idk how good it is. tmzt uses it [02:17] materialdesigner has joined the channel [02:18] matin: should i just get a bare bone or something? [02:18] matin: even though i don't know wtf that is haha [02:18] gkatsev: bare bones mean you can change out parts and shit [02:18] robertj: matin, it probably means no disk drives and no optical drives [02:18] Destos has joined the channel [02:18] gkatsev: anyway, if you want to keep the server in your house, you might as well just basically build a desktop. [02:19] matin: alright [02:19] matin: gkatsev, how do i do that [02:19] gkatsev: get a case a motherboard some HDDs a nic. [02:19] robertj: for most purposes a server is the same hardware as a desktop but you want RAID 1 and a redundant PSU [02:19] robertj: gkatsev, don't get a nic [02:19] gkatsev: lol [02:19] matin: robertj, sadly i don't know what RAID is [02:19] matin: i've heard of it [02:20] robertj: gkatsev, the $200 NICs Dell sells have the same ethernet chipset that comes on-board on almost all their kit and it's probbalyb the same almost everwhere else [02:20] davidascher has joined the channel [02:20] pauls1 has joined the channel [02:20] gkatsev: robertj: yeah, nic is probably not needed. but my desktop needed a wireless nic. [02:20] matin: nic? [02:20] robertj: matin, you get 2 disk drives and they show up as one so if one dies the other keeps working [02:20] gkatsev: network interface controller [02:20] robertj: aka network card [02:20] matin: ah ok [02:21] matin: any estimate for how much a basic server [02:21] matin: would cost me [02:21] gkatsev: RAID Redundant Array of Independent Disks http://en.wikipedia.org/wiki/RAID [02:21] robertj: matin, seriously buy the cheapest thing you can with 2 gigs of ram off craigs list and just back it up and buy another when it breaks [02:21] gkatsev: matin: how much money do you want to spend [02:21] gkatsev: ? [02:21] robertj: how much linux experience do you have? [02:21] gkatsev: you could probably pull one off [02:21] stantona has joined the channel [02:22] matin: i have some linux experience [02:22] gkatsev: robertj: that doesn't matter. he can learn as he goes along. [02:22] matin: i was planning on sticking with ubuntu [02:22] gkatsev: assuming he is willing to learn. [02:22] robertj: ok, because if you don't have much that makes linode a much better idea because you can wipe and restart in like 5 min [02:22] matin: i am [02:22] matin: i've gotten better robertj :) [02:22] jaequery has joined the channel [02:22] matin: gkatsev i was planning on a max of ~$250 [02:23] robertj: do you have a nice desktop already? If so you can host your own virtual server with virtual box or vmware server [02:23] Aria: $250 won't get you good power supplies. [02:23] brianloveswords has joined the channel [02:23] matin: lol actually i dont [02:23] Aria: But it will get you a performing machine in a cheaptastic case. [02:23] gkatsev: one time, I reinstalled linux on my desktop 3 times in the span of like 30 minutes [02:23] matin: im on a lapto [02:23] matin: laptopp [02:23] gkatsev: matin: can you spare double that? [02:23] robertj: OK screw that, buy yourself a nice desktop and install virtualbox or libvirt on it depending on your preferred desktop of choice [02:23] robertj: (or a nice laptop, either will work) [02:23] matin: well I'm on a macbook [02:23] matin: pro [02:23] robertj: how much ram you got? [02:24] matin: that's why my cash for the server was diluted [02:24] gkatsev: I would go with a desktop, they can be beefier for the same price [02:24] matin: on my mac? [02:24] robertj: yes [02:24] mcluskydodallas has joined the channel [02:24] matin: 4 gb [02:25] Aria: I do all my development on a Mac with 2GB RAM. [02:25] intabulas has joined the channel [02:25] matin: but i was planning on getting a basic server [02:25] matin: to leave on [02:25] matin: all day [02:25] robertj: put the $80 SSD in, buy an external drive to backup your vms, and buy a copy of whatever virtualization solution you like [02:25] Aria: Virtual machines are a tad sluggish but very workable. I have a virtual server with plenty of resources for $50/mo, and I've a $200 machine (nettop) on my home cable connection that I can test stuff on. [02:25] ryanfitz has joined the channel [02:25] tjholowaychuk has joined the channel [02:26] matin: Aria what kind of machine [02:26] matin: or if i could get exact specs [02:26] tbranyen: Aria: weird i've always found my VMs to be almost indistinguishable from a host os [02:26] matin: because I'm trying to get anything i need to get [02:26] matin: before the days over :P [02:26] nodebiscut has joined the channel [02:26] gkatsev: also, what you want to get for the server changes depending on what you want to use it for exactly. [02:26] matin: right now i have [02:26] matin: http://mailinator.com/displayemail.jsp?email=nodejshw&msgid=6019577 [02:26] matin: but i think i forgot a HD [02:26] Aria: matin: my home server is 1.6ghz Atom. 2GB RAM. Macbook Air, 2GB RAM, 128GB SSD. [02:26] robertj: Aria, in my experience slow vms are 100% due to disk io almost always, that's why I suggested he grab a ssd [02:27] Aria: robertj: That depends on the VM. But yes. [02:27] matin: wait you're using a macbook air as a server? [02:27] gkatsev: matin: make sure the case can fit a micro atx mobo. [02:27] matin: micro atx mobo? [02:27] Aria: No, that's my dev machine. [02:28] Aria: Motherboard. [02:28] gkatsev: matin: motherboard. in the mailinator link, you posted [02:28] robertj: Aria, at work the only reason I didn't put in an SSD was that ram is so cheap when you have all those slots that it didn't make sense [02:28] Aria: Yeah. Same here. [02:28] gkatsev: the mobo you chose is a micro ATX [02:28] Aria: I've got 8GB at work. [02:28] robertj: so instead i just have so much ram the disks really never get to spin + 1gig nvram [02:28] gkatsev: so, make sure the case can house it. [02:28] Aria: Almost every case can manage microatx [02:28] matin: oh [02:28] robertj: 64 on my virt server [02:28] gkatsev: Aria: yes, it probably can, but better double check before hand. [02:28] matin: i have no idea how to check anything lol [02:28] AD7six has joined the channel [02:29] matin: http://www.newegg.com/Product/Product.aspx?Item=N82E16811192070 [02:29] Aria: matin: That's a cheap machine, but very workable. It's nothing special, and certainly not server-quality reliability. Great for a dev machine you can just rebuild if it dies. [02:29] matin: thats the case [02:29] maxogden: sysadmin: can't be that hard! [02:29] gkatsev: matin: check the specs. [02:29] Aria: And that's a MicroATX case. [02:29] robertj: As a student you don't want reliability, you want to learn to back up [02:29] gkatsev: yes, that case is good [02:29] matin: ok [02:29] matin: so do i get a HD? [02:29] robertj: when buying a case the main thing you want is for it to come with a good PSU typically [02:29] gkatsev: HDD? [02:29] sdwrage has joined the channel [02:30] Aria: Yeah, you'd need a hard disk. [02:30] robertj: matin, if you can at all afford that $80 and can get your parents to use an AMEX so that you can quality for the rebate get that SSD [02:30] Aria: robertj: Or to be so cheap you can replace the PSU without thinking ;-) [02:30] matin: that bundle is from new egg's complete solution [02:30] Aria: Honestly, if I were just starting to develop? I'd go to the local computer junk store and buy whatever's $100. [02:30] robertj: If you can wait and don't mind non-intel stuff, Raspberry pi will be available in January in a good qty [02:31] robertj: Aria, I recommended a laptop with a broken LCD off craiglist [02:31] gkatsev: Aria: I wish there was a good local computer store around here :( [02:31] gkatsev: here being boston [02:31] matin: lol Aria where i am [02:31] WarheadsSE: and you can run Arch Linux ARM on it [02:31] matin: there is pretty much only BestBuy, Microcenter [02:31] CiRlE has joined the channel [02:32] matin: and i guess radioshack if you count selling netbooks [02:32] CarterL has joined the channel [02:32] matin: shit i just went up to 282 [02:32] tshpaper has joined the channel [02:33] michaelhartau has joined the channel [02:33] matin: i added [02:33] matin: http://www.newegg.com/Product/Product.aspx?Item=N82E16822148767 [02:33] WarheadsSE: I have those powering my pogoplugs... [02:34] EvRide has joined the channel [02:34] niclone has joined the channel [02:34] Aria: matin: Seriously? No local junk shop? What city? [02:34] gkatsev: http://www.newegg.com/Product/Product.aspx?Item=N82E16822148681 that's pretty awesome [02:34] robertj: matin, that $80 SSD is unbelievably fast compared to that drive if you don't mind the loss of capacity [02:34] matin: mclean [02:34] gkatsev: robertj: I just bought an SSD. can't wait. [02:35] matin: i don't need TOO much space [02:35] matin: my main focus is price [02:35] gkatsev: you can never have enough space [02:35] matin: >.> [02:35] gkatsev: also, 2TB for $99 is CHEAP [02:35] gkatsev: oh, it's a 5900 RPM drive :/ [02:35] matin: relatively I'm sure it is [02:36] WarheadsSE: bought a 3TB for 99.. ty BF.. [02:36] matin: but i don't need 2TB >.> [02:36] jellosea: i'm calling server.close() but node is still listening on the port, how do i fix this? [02:36] gkatsev: WarheadsSE: heh, where at? [02:36] WarheadsSE: BestBuy [02:36] gkatsev: nice [02:36] WarheadsSE: Seagate GoFlex Desk, USB 3.0, 3TB [02:36] gkatsev: ah, external [02:36] gkatsev: still really good [02:36] WarheadsSE: yeah, but it's not for me [02:37] matin: hows this one [02:37] matin: http://www.newegg.com/Product/Product.aspx?Item=N82E16822148783 [02:37] WarheadsSE: my laptop is running the momentusXT 500gb [02:37] Aria: matin: you might check out http://groups.freecycle.org/McLean-ViennaVAFreecycle/description [02:37] clu3 has joined the channel [02:37] gkatsev: I dont think I like recertified HDDs :/ [02:37] WarheadsSE: ACTION frr... IDE? [02:38] abraxas: alright…. who broke https://github.com/joyent/node/wiki/modules ? [02:38] gkatsev: abraxas: git blame [02:38] WarheadsSE: abraxas .. i've seen that nick around somewhere.. [02:38] perezd_ has joined the channel [02:39] robertj: anyone want to talk about serious sandboxing? [02:39] gkatsev: matin: I would go with this one: http://www.newegg.com/Product/Product.aspx?Item=N82E16822148767 [02:39] matin: idk free cycle looks sketchy -.- [02:40] TN: don't think you can git blame the wiki? [02:40] gkatsev: the wiki is a git repo [02:40] Dulak: yeah, cuz people giving away free stuff is sketchy [02:40] abraxas: in any case, there's wiki history [02:40] Aria: matin: Freecycle's a good organization. Lots of cast-offs, lots of cheap or free stuff. Great for getting started. [02:40] gkatsev: yes, was just going to mention that [02:40] ChaoWang: test [02:40] abraxas: seems people are switching it between textile and markdown [02:40] robertj: also 2 broken computers = 1 working computer [02:41] matin: well my mom probably wouldn't approve [02:41] matin: and since i don't have a car [02:41] matin: free cycle is not viable >.> [02:41] gkatsev: matin: I would do the freecycle thing. just if the machine you get comes full of coke, just call the cops, give it to them and return the device. :> [02:41] robertj: ask them if they could drop it off at school? [02:41] joshwnj has joined the channel [02:41] matin: or i could keep the coke [02:41] matin: sell the coke [02:41] Aria: Sad. [02:41] Aria: .oO(Bike.) [02:41] matin: then call the cops [02:41] matin: profit? [02:42] Dulak: yeah mom will approve the sale of the coke, but not getting free stuff. [02:42] gkatsev: lol, no [02:42] matin: haha [02:42] pauls1 has joined the channel [02:42] Aria: Freecycle's also good community. People to help, chat stuff out with. [02:42] matin: nah i think i'd rather stay with newegg [02:42] pauls1: pauls1++ [02:43] truedat101 has joined the channel [02:43] gkatsev: also, some of the stuff on newegg can sometimes be cheaper other places, like amazon. [02:44] Aria: Yeah. Though Newegg's usually within 10% in my experience. [02:45] Tobsn has joined the channel [02:45] gkatsev: yeah, perhaps [02:45] gkatsev: but that's still 10% [02:45] piscisaureus_ has joined the channel [02:45] robertj: if your gonna go super cheap hit up pricewatch [02:45] Aria: ACTION shrugs. My time is usually worth more than that. And it's all negated if I have to return things. Doubly so to multiple people. [02:45] gkatsev: I got my SSD from amazon for $150 where as on newegg it just went up to $175. [02:46] pita has joined the channel [02:46] igl: o.O [02:46] igl: i have so much hardware stores in my city [02:46] dennisjbell has joined the channel [02:46] Aria: Hehe. Me too. [02:46] pita: Hi, I'm completly new to write tests. Can anyone recommend a good starting of what to read and how to learn it? [02:47] visudo has joined the channel [02:47] matin: now I'm so confused lol [02:47] matin: I'm not sure what to do [02:47] Aria: Hehe. I think it doesn't matter much. You can develop on just about any hardware. [02:48] Aria: (and in fact, working with constrained hardware keeps you efficient.) [02:48] robertj: seriously, buy a http://www.raspberrypi.org/ a month from now [02:48] Aria: (Since if it runs fast one at a time in 64mb, then it'll run REALLY fast 100 at a time in 64GB) [02:48] Aria: But yes. Raspberry Pi is neat hardware. [02:48] matin: what's that [02:48] Aria: And cheap. [02:49] matin: what's raspberry pi [02:49] matin: the more i look at their blog [02:49] matin: the more confused i get lol [02:49] gkatsev: see the FAW [02:49] gkatsev: FAQ, even [02:50] joshwnj: raspberripi looks so nice [02:50] gkatsev: Aria: but is it really going to be $25 and $35? [02:50] matin: lol i just saw that [02:50] robertj: they will be out in Jan [02:50] joshwnj: so cheap, worth getting one even if u don't need it :P [02:50] robertj: there will be teaser amounts avaialble in Dec [02:50] gkatsev: I think they will probably be double that. [02:50] gkatsev: but that's still really cheap [02:51] robertj: gkatsev, i'd expect $50 when you kit it out [02:51] towski has joined the channel [02:51] torm3nt has joined the channel [02:51] gkatsev: like the OLPC wanted to be $100 but ended up $200. and even then, you had to pay $400 to get one because the other gets donated. which is ok. [02:51] robertj: It's gonna be < $50 the end [02:51] Osvaldo has joined the channel [02:51] robertj: the cost is $35, and your gonna have to buy a power adapter and a case if you want one [02:51] robertj: and an sd card [02:52] gkatsev: runs well off of 4xAA, lol [02:52] fivetwentysix has joined the channel [02:52] Aria: gkatsev: Sure seems to be. ARM /is/ cheap, and it's not many parts. [02:52] fivetwentysix: How would you do BDD with a socket.io app? [02:52] robertj: Raspberry pi is being sold at a profit [02:53] trotter has joined the channel [02:53] matin: poo pi looks sexy [02:54] Aria: pita: I use the "tap" module (thanks, isaacs) and just try to think through test cases. Nothing magic. "how would I tell if this is working? Okay, I'll check that. How would it look if it didn't work? I'll check that too." [02:54] qmx: robertj: they started selling it? [02:54] freewil has joined the channel [02:54] freewil has joined the channel [02:54] piscisaureus_ has joined the channel [02:54] robertj: the factory is building the first 10k test run if and if that works out there will be a second 10k batch with non-design process tweaks, and when that is worked out I think it's gonna get shipped to a higher volume factory for the real meat and potatoes production runs [02:54] isaacs: Aria: built-in coverage coming *very* soon. [02:54] matin: ok guys [02:54] robertj: qmx, no, the first 10k will be available before christmas but they are gonna basically be a lottery getting one [02:54] matin: i have a potentially very stupid question [02:55] isaacs: Aria: so you'll be able to get nice reports on whether there are parts missing in your tests. [02:55] matin: it says that it supports linux [02:55] dennisjbell has joined the channel [02:55] robertj: qmx, first come first serve, my guess is that there store is gonna go down hard [02:55] gkatsev: matin: i have a ptentially very stupid answer [02:55] Aria: Coverage? ROCK. [02:55] isaacs: Aria: a coworker of mine here at joyent is doing that. [02:55] matin: is ubuntu covered under debian? [02:55] davidbanham: Are there any oauth client libraries that do RSA signing? I need to interact with the xero.com api [02:55] gkatsev: matin: no [02:55] gkatsev: matin: it specifically says that ubuntu doesn't work yet [02:55] qmx: robertj: haha, It will be a DDOS [02:55] Aria: matin: Ubundu and debian are different, for sure. [02:55] matin: ... [02:55] tjholowaychuk: isaacs ooo pure-js cov? [02:55] tjholowaychuk: i can ditch jscov? [02:55] gkatsev: and yes, ubuntu != debian [02:55] matin: oops [02:55] matin: lol [02:55] Osvaldo has left the channel [02:55] gkatsev: ubuntu is a superset of debian [02:56] boehm has joined the channel [02:56] Aria: Derivative. Not superset. [02:56] Aria: In fact, it's a subset. [02:56] Aria: (mostly) [02:56] robertj: ubuntu is no longer debian, it used to be back at warty for all practical purposes, now it aint [02:56] gkatsev: yeah, I guess now it's fairly different [02:57] isaacs: tjholowaychuk: yeah, he's wiring up run-for-cover to node-tap [02:57] matin: so [02:57] isaacs: tjholowaychuk: with reports and stuff [02:57] tjholowaychuk: isaacs will it be generic enough for other libs to use? [02:57] matin: are there any notable differences between debian and ubuntu [02:57] gkatsev: Aria: but didn't ubuntu add to debian so, so, ubuntu would be a superset of debian? [02:57] isaacs: tjholowaychuk: i don't know [02:57] tjholowaychuk: we could really use that [02:57] tjholowaychuk: and finally ditch jscov [02:57] matin: and which one would be best for node.js + php [02:57] isaacs: tjholowaychuk: you can probably tie into runforcover now [02:57] JakeyChan has joined the channel [02:57] matin: I'm thinking about buying two pi's [02:57] gkatsev: does node compile on arm? [02:58] matin: wait, so i can't run node on raspberry pi? [02:58] tjholowaychuk: isaacs true i guess it doesn't really even need to be something built into a test framework at all [02:58] tjholowaychuk: now that i think about it [02:59] matin: hey tjholowaychuk [02:59] Aria: Node works on arm [02:59] tjholowaychuk: matin heyy [02:59] matin: this is kinda a random question, how old are you? [02:59] isaacs: tjholowaychuk: the work is happening here: https://github.com/kusor/node-tap [02:59] Aria: gkatsev: Adding to does not imply superset. They also removed a lot, changed a lot. They're divergent. [02:59] tjholowaychuk: matin 24 [02:59] matin: ah ok [02:59] tjholowaychuk: isaacs cool thanks i'll check it out [02:59] Aria: matin: 29. [02:59] Aria: Wait, 30. [02:59] isaacs: matin: 32 [02:59] matin: lol aria make up your mind [02:59] matin: :D [03:00] rails_noob has joined the channel [03:00] nerdy_ has joined the channel [03:00] Aria: I just did! [03:00] mandric has joined the channel [03:00] matin: wait so is it confirmed [03:00] Aria: Now I'm set for another 10 months. [03:00] matin: does node.js work on raspberry? [03:00] perezd has joined the channel [03:00] djbell has joined the channel [03:00] matin: haha ok aria [03:01] Aria: raspberry isn't out yet. [03:01] isaacs: the problem is that the human brain measures time relatively, so the older you get, the smaller the years ae. [03:01] isaacs: *are [03:01] Aria: But v8 works on arm, it works on the palm pre -- so I expect it'll get there real fast. [03:01] isaacs: the difference between 30 and 35 is quite a bit less than the difference between 6 and 7 [03:01] wookiehangover: tjholowaychuk: but the real question is, can you grow a neck-beard? [03:02] tjholowaychuk: ahahaha [03:02] tjholowaychuk: that IS the real question [03:02] matin: alright [03:02] wookiehangover: the length of a programmer's neckbeard should always be equated to their knowledge of C [03:02] Aria: What about us girls? [03:02] wookiehangover: samwe [03:02] matin: thanks for showing me raspberry [03:03] Gazler has joined the channel [03:03] smathy has joined the channel [03:05] davidascher has joined the channel [03:05] rushed has joined the channel [03:06] gkatsev: matin: I'm 22. [03:06] gkatsev: Aria: there are girls who know C? [03:06] wookiehangover: gkatsev: lol yes [03:07] wookiehangover: I have at least 1 working for me ATM [03:07] gkatsev: news to me. :> [03:07] Dmitrijus: girls knowing c? awesome! [03:08] BillyBreen has joined the channel [03:08] isaacs: i know a lot of extremely expert c programmers who do not have neckbeards. [03:08] gkatsev: same. [03:08] perezd_ has joined the channel [03:08] secoif: isaacs clearly imposters. [03:08] isaacs: though, men with poor grooming are certainly over-represented in the programmer population. [03:08] wookiehangover: but you can admit that its a positive stereotype, tho, right? [03:08] isaacs: which is unfortunate on a lot of levels. [03:09] wookiehangover: its all stallman's fault [03:09] wookiehangover: excuse me, GNU/stallman [03:09] isaacs: yes, stallman is the paradigm of that. [03:09] isaacs: hahahh [03:09] gkatsev: lol [03:09] JakeyChan: is there any node module that like php GD library ? [03:09] isaacs: GNU/Toechew [03:09] Aria: JakeyChan: node-canvas among others. [03:09] wookiehangover: isaacs: gross! [03:09] boltR has joined the channel [03:09] JakeyChan: Aria: great! [03:09] gkatsev: it's true :/ [03:10] wookiehangover: JakeyChan: imagemagick [03:10] robertj: isaacs, down here in GA all the good programmers I know tend to be fairly well groomed [03:10] wookiehangover: not node specific, but I'm sure there's an adapter [03:10] secoif: JakeyChan you probably want http://aheckmann.github.com/gm/ [03:10] JakeyChan: COOL!! [03:11] Aria: JakeyChan: npm search image [03:11] wookiehangover: secoif +1 [03:11] isaacs: also, some of us guys just don't have a lot of facial hair. no need to discriminate. [03:11] JakeyChan: node is awesome ! [03:11] robertj: isaacs, all the dirty hippies are living with their parents and unemployed and all the commie professors have retired [03:11] JakeyChan: thanks the module author! [03:11] gkatsev: node is #1. just see github [03:11] wookiehangover: robertj: here in boulder its a much different story... [03:11] icewhite has joined the channel [03:11] robertj: and the rest of us are busy undoing the work of thick-rimmed-glasses wearing consultants [03:12] wookiehangover: ACTION wears thick rimmed glasses and owns a consulting company... [03:12] robertj: too busy to fix your code right now! [03:12] wookiehangover: lol [03:12] luoluoluo has joined the channel [03:15] cjm has joined the channel [03:17] benvie: I'm pretty sure Stallman is the inventor of the neckbeard [03:18] dgathright has joined the channel [03:18] smathy: According to him, I'm sure too. [03:18] gkatsev: apparently, Nero sported a neckbeard. So, can't say that he did. [03:21] rails_noob has joined the channel [03:22] jaequery has joined the channel [03:23] marcello3d has joined the channel [03:23] matin has joined the channel [03:24] stantona has joined the channel [03:24] jerrysv has joined the channel [03:25] Abnormal has joined the channel [03:26] stantona has joined the channel [03:27] michaelhartau: has anyone here done any work with hadoop from node? [03:28] shaggydog97_ has joined the channel [03:29] Wizek has joined the channel [03:29] michaelhartau: seems to be a basic example of connecting to streaming here: https://gist.github.com/993388 [03:30] harthur has joined the channel [03:32] guybrush: whats the pendant to process.env.HOME on win? [03:32] guybrush: its just undefined :/ [03:32] fivetwentysix: Any one here want to pair with me and help me get a project started? /msg me your hourly rate please if you're interested [03:36] shipit has joined the channel [03:38] JasonSmith: mikeal: YT? Quick question while I'm making another patch for request [03:41] Darrow has joined the channel [03:41] raenger has joined the channel [03:41] guybrush: ah i see.. process.platform === "win32" and process.env.USERPROFILE [03:41] ekryski has joined the channel [03:42] maletor has joined the channel [03:42] ecin has joined the channel [03:42] suzuken has joined the channel [03:44] k1ttty has joined the channel [03:46] AvianFlu has joined the channel [03:47] fairwinds: hmm. Error: UNKNOWN, Unknown error on fs.rmdir ? [03:47] fairwinds: that's not so helpful [03:49] MatthewS has joined the channel [03:50] tjholowaychuk: fairwinds haha yeah i think they're still missing a few [03:51] joshwnj` has joined the channel [03:54] sheng_ has joined the channel [03:55] davidascher has joined the channel [03:57] perezd has joined the channel [03:58] r04r has joined the channel [03:58] mattrobenolt has joined the channel [03:59] mattrobenolt: Hey, any way to get the filename out of the error object? I can get error.stack, but error.fileName is undefined. [03:59] mattrobenolt: I COULD parse the stack trace to get the filename, but I'm just wondering if there's a reason why it isn't being populated correctly. [04:00] Aria: fileName? I've never seen that before. [04:00] Aria: What systems do fill that in? [04:01] mattrobenolt: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error [04:01] Aria: "non-standard" is code for "someone in Firefox added this." [04:01] mattrobenolt: I mean, I know it's Mozilla's reference, but wasn't sure how it was handled in V8. I couldn't find anything really according to them. [04:01] Aria: Yeah, V8 mostly follows the ECMA spec. [04:01] Aria: Which is a painfully boring read. And a terrible reference. [04:02] amigojapan has joined the channel [04:02] mattrobenolt: Yeah, that's kinda what I assumed. Either way, is there a simple way to just grab the filename from the error? [04:02] Aria: No. Parse the stack. [04:02] mattrobenolt: What's actually building the stack? Is that internal to V8, I'm assuming? [04:02] Aria: Yeah. [04:02] Aria: "new Error()" builds the stack. [04:03] mattrobenolt: Lame. Alright, thanks. [04:03] r04r has joined the channel [04:03] r04r has joined the channel [04:03] idanbeck has joined the channel [04:03] Me1000 has joined the channel [04:03] Aria: Yeah. Sad. I'd love to see better cross-browser Error objects. [04:03] Aria: cross-runtime, even [04:04] mattrobenolt: I'm working on porting Sentry/Raven to Node.js, and Javascript Error handling is severely lacking compared to Python, haha [04:04] Aria: Yes, it is. For better and worse. [04:04] mandric has joined the channel [04:05] kenperkins has joined the channel [04:06] mikeal: JasonSmith: sure [04:07] mattrobenolt: Is there a better way of resolving the current directory? I'm doing: require('path').resolve('.') [04:07] mattrobenolt: Any shortcut instead of doing '.' ? [04:07] r04r has joined the channel [04:07] r04r has joined the channel [04:07] tjholowaychuk: mattrobenolt process.cwd() [04:08] mattrobenolt: Oh shit. There we go. [04:08] mattrobenolt: Now what scope will cwd resolve to? The base directory that the script was running from? Or will it be the base directory of any of the files loaded in? [04:08] Aria: The process's current directory. [04:09] mattrobenolt: Nice! [04:10] ChrisPartridge has joined the channel [04:11] JasonSmith: mikeal: The only thing I didn't catch was your definition of "http forwarding." Do you mean piping? [04:11] ovaillancourt has joined the channel [04:11] mikeal: no [04:11] mikeal: 302 [04:11] mikeal: request follows http redirects [04:11] JasonSmith: Oh man, I always turn that off. But yeah totally. Thanks [04:12] JasonSmith: I'll write up a test case [04:12] JasonSmith: your unit tests are awesome. They aren't node-tap, but they are awesome. [04:12] r04r has joined the channel [04:12] r04r has joined the channel [04:12] mikeal: i started those before tap existed [04:12] JasonSmith: Also, my patches will be in coffeescript. So. There's that. [04:12] jesusabdullah: XD [04:13] mikeal: right..... [04:13] dshaw_ has joined the channel [04:13] mikeal: i hope you like cursing in your github messages [04:13] mikeal: :) [04:13] tommyvyo has joined the channel [04:15] jerrysv has joined the channel [04:16] mattrobenolt: var fileName = err.stack.split('\n')[1].match(/^.*?\((.*?):\d+:\d+\)$/)[1].replace(process.cwd()+'/', ''); [04:16] mattrobenolt: That should do it. :) [04:16] torm3nt has joined the channel [04:17] Kunda has joined the channel [04:17] r04r has joined the channel [04:17] r04r has joined the channel [04:18] mattrobenolt: The only time I see that erroring is when running from the repl since it doesn't have a filename. [04:18] Aria: Yeah. [04:21] issackelly_ has joined the channel [04:21] ohtogo has joined the channel [04:24] mattrobenolt: tjholowaychuk: You familiar with Sentry from the Python world? [04:24] tjholowaychuk: nope [04:24] davidascher has joined the channel [04:24] mattrobenolt: It's written by Disqus, and it's a global error logger, but right now it's geared towards Python only. [04:24] dshaw_ has joined the channel [04:24] JakeyChan: hi ? question about code design [04:25] tjholowaychuk: mattrobenolt im not very familar with any py stuff [04:25] mattrobenolt: It runs on another server completely, and hooks directly into Python's logger so it kicks out stack traces and everything over to this external system, which you can log into their GUI and browse around all the errors. [04:25] mattrobenolt: It supports throttling, sampling, etc. [04:26] mattrobenolt: I'm writing a Node version of the client and a Connect middleware. [04:26] JakeyChan: I need data that is returned by asynchronous, when fetched data, I use callback to tell caller data is ready and caller can get the data, but in the callback, caller still need another data that also is returned by asynchronous; [04:27] stantona has joined the channel [04:27] JakeyChan: http://shinetech.com/thoughts/articles/139-asynchronous-code-design-with-nodejs- [04:27] JakeyChan: I read it [04:27] JakeyChan: but not found answer [04:28] JakeyChan: dependencie [04:28] mattrobenolt: tjholowaychuk: Here's the dashboard of Sentry with a traceback from Node: http://a.yfrog.com/img683/2290/86892183.png [04:28] pita has left the channel [04:28] josephg has joined the channel [04:29] secoif: JakeyChan you might find something in this library that will help you https://github.com/caolan/async [04:29] secoif: JakeyChan specifically 'parallel' [04:29] mattrobenolt: And each message logged in Sentry has a UUID associated with it, so you can spit that error number out on a 500 page so it can be referenced to the exact stack trace in Sentry. [04:30] JakeyChan: secoif: but it's not good solution I think. we need perfect design, not use module to append our project [04:30] deedubs has joined the channel [04:31] secoif: JakeyChan what's the problem with adding a module? [04:31] EyePulp has joined the channel [04:32] JakeyChan: team build project together, you want to them learn this module when start to do work ? [04:32] JakeyChan: I don't make it sense :) [04:32] sfoster has joined the channel [04:32] JakeyChan: forget it, let me find in google [04:32] martin_sunset has joined the channel [04:33] jerrysv has joined the channel [04:33] luke` has joined the channel [04:34] pcaulagi has joined the channel [04:35] cgray has joined the channel [04:35] kazupon has joined the channel [04:36] ChaoWang has joined the channel [04:36] secoif: JakeyChan I thought that too, but the additional overhead of writing your own code to handle that is more effort than it's worth [04:36] secoif: imo. [04:37] jaequery has joined the channel [04:37] secoif: JakeyChan plus it reduces stylistic differences between coders, they just use async instead of everyone rolling their own solution [04:39] TheCode has joined the channel [04:39] dgathright has joined the channel [04:39] tommyvyo has joined the channel [04:41] visudo has joined the channel [04:43] rachet: How woud you guys refactor this: http://pastie.org/2936949 ? [04:43] JaKWaC has joined the channel [04:43] Aria: I wouldn't. [04:43] Aria: Too short to bother. [04:43] rachet: well.. I'm trying to just organize it in a way to remove that repetition there [04:44] Aria: I might use a hash and a loop. But probably not. [04:44] jj0hns0n has joined the channel [04:46] ph^ has joined the channel [04:46] yjovian has joined the channel [04:46] tomlion has joined the channel [04:48] rwasielewski has joined the channel [04:48] konobi: ryah: ping [04:49] chrislorenz has joined the channel [04:50] jerrysv has joined the channel [04:52] MatthewS has joined the channel [04:52] mct has left the channel [04:54] munichlinux has joined the channel [04:55] socketio\test\76 has joined the channel [04:55] xeodox: How do I pass local variables down so that my javascript can use them? [04:55] mattrobenolt: Is it possible to determine the hostname that was connected through Node? Like, to build back out the full url that was requested. [04:57] SubStack: mattrobenolt: I usually use req.headers.host [04:57] SubStack: but that's only required in http/1.1 [04:57] mattrobenolt: Ahh, makes sense. [04:57] mattrobenolt: I was looking for something on the actual connection socket. [04:58] ambroff has joined the channel [04:58] mattrobenolt: Where can I pull the port number and protocol from? [04:59] r04r has joined the channel [04:59] r04r has joined the channel [04:59] stantona has joined the channel [05:00] mattrobenolt: Ok, port comes through with request.headers.host. [05:00] drwonoski has joined the channel [05:00] mattrobenolt: How can I determine which protocol? http or https [05:01] SubStack: there are some hackish ways [05:01] SubStack: var proto = req.socket.encrypted ? 'https' : 'http' [05:01] SubStack: or some such [05:01] davidbanham has joined the channel [05:01] tilgovi has joined the channel [05:01] tilgovi has joined the channel [05:01] mattrobenolt: That's simple enough. [05:01] mattrobenolt: I'm writing a middleware for Connect, so I'm trying to be as generic as possible. [05:02] mattrobenolt: There should be a simple method to just return the absolute url off of request. :) [05:02] mattrobenolt: req.build_absolute_url() [05:02] SubStack: write a module for it [05:02] SubStack: it's not always possible is the problem [05:03] mattrobenolt: In what situations wouldn't it be possible? I'm just curious. [05:03] SubStack: when the host header hasn't been sent [05:03] drwonoski: anyone help me out with node? [05:03] mattrobenolt: Right, but how often is that, really? I think it can make it's best guess, and let it fail silently if no host can be found. [05:04] SubStack: http/1.1 requires the host header [05:04] drwonoski: i keep getting an error and cant figure out how to fix it [05:04] r04r has joined the channel [05:04] mattrobenolt: The only way I know if to make a request without a host is through a raw socket of some sort. Telnet, etc. [05:04] Milos_ has joined the channel [05:04] SubStack: sure just return undefined [05:04] SubStack: but it can happen [05:04] SubStack: drwonoski: gisting the code and the error helps [05:05] mattrobenolt: Oh, I know it can. I spent a while debugging a weird error we were getting in a Django app because a bot was making direct socket requests without setting a host. [05:05] SubStack: gist or your favorite paste site [05:05] mattrobenolt: But I've never seen legitimate traffic come through without it. ;) [05:05] rails_noob has joined the channel [05:06] ryan_stevens has joined the channel [05:06] brianc has joined the channel [05:06] joshsmith: gist or it didn't happen [05:06] brianc: SubStack: just tiding up this script i have here…i'll throw it up on the githubs asap [05:06] SubStack: sweet [05:07] rfw has joined the channel [05:07] drwonoski: https://gist.github.com/1403521 [05:08] brianc: SubStack: your 2 libraries work wonderfully together. my little script is pretty much "simplest thing that can possible work" coupled with kinda "convention" based directories, but it makes pushing to production a no-brainer. i heard about them on nodeup [05:08] zilch_ has joined the channel [05:08] Abnormal has joined the channel [05:09] mattrobenolt: SubStack: req.socket.encrypted will always be set, correct? [05:09] smathy: drwonoski… you wrote your JS in RTF format. [05:09] mattrobenolt: Just potentially the host header may be missing. [05:09] r04r has joined the channel [05:09] avalanche123 has joined the channel [05:09] brianc has left the channel [05:10] brianc has joined the channel [05:10] SubStack: mattrobenolt: it's undefined when in http mode [05:11] mattrobenolt: Awesome, that's fine then. [05:11] SubStack: I would just console.dir(req) with a test https server to be sure [05:11] mattrobenolt: So we're just looking at something like this: https://gist.github.com/1403530 [05:11] mattrobenolt: Would solve MOST situations. [05:14] r04r has joined the channel [05:14] davidban_ has joined the channel [05:17] mindbender1 has joined the channel [05:17] Aaron_ has joined the channel [05:18] mindbender1: I tried 'make install' and it returned '`make install` is not implemented yet. Bug bnoordhuis about it in #node.js' [05:18] makeInstallBot: mindbender1: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [05:18] r04r has joined the channel [05:19] eee_c has joined the channel [05:20] drwonoski: iupdated it [05:20] drwonoski: still getting the error [05:20] drwonoski: oh wait [05:20] drwonoski: nvm [05:22] mattrobenolt: Is there a consensus on naming convention for Node libraries? node-* or *-node? [05:22] mattrobenolt: I see it both ways, and I have repositories published both ways. It's annoying, haha [05:23] r04r has joined the channel [05:25] Wizek has joined the channel [05:25] zilch_ has joined the channel [05:26] stantona has joined the channel [05:27] t0mmyvyo has joined the channel [05:28] r04r has joined the channel [05:29] SubStack: brianc: good stuff [05:30] brianc: <3 [05:30] JasonSmith: Sorry guys, I tripped over a cable. About 3 minutes of npm downtime just now :( [05:30] brianc: is so nice to remove all deployment friction [05:30] brianc: just push and POOF new code [05:30] brianc: i only using it for really small things right now [05:30] brianc: and the process mgmt and environment variables handled by upstart [05:30] jakehow has joined the channel [05:31] SubStack: brianc: next I want to hook these libraries to bouncy [05:31] SubStack: so I can git deploy a branch and it will spin up a branch instance on a subdomain [05:31] brianc: but the git integration into node is cool. plus pushover is kinda like a tiny UI-free github embedded in your node server [05:32] visudo has joined the channel [05:32] brianc: substack: yes that is awesome. [05:33] SubStack: and then I can swap the routing table at runtime to have zero-downtime deploys [05:33] SubStack: or feature branches [05:33] SubStack: or heterogeneous feature-managed sticky sessions [05:33] SubStack: continuous deployment woo [05:33] r04r has joined the channel [05:33] styol has joined the channel [05:33] brianc: so awesome. I need to look into the bouncy routing table. I only looked at it the day you deployed it [05:34] brianc: Substack yeah a lot of the stuff you talked about on nodeup sounded awesome and I think if its approached correctly could kind of "bring continuous deployment to the masses" like you said [05:34] SubStack: I basically want a box that lets me do continuous deployment the node way [05:34] SubStack: yep! [05:34] MatthewS has joined the channel [05:34] brianc: so sweet [05:34] brianc: I must sleep now [05:35] brianc: I drove to dallas and back this weekend and listened to 5 nodeup episodes in a row [05:35] SubStack: 5! [05:35] brianc: I'm beat tired [05:35] brianc: 5! [05:35] SubStack: you should tweet at @nodeup about this node-auto-deploy [05:35] brianc: peace [05:35] brianc has left the channel [05:35] brianc has joined the channel [05:35] brianc: kk i will [05:36] styol has joined the channel [05:36] mike5w3c has joined the channel [05:37] stonebranch has joined the channel [05:38] zilch_ has joined the channel [05:38] styol has joined the channel [05:38] ryanfitz has joined the channel [05:38] r04r has joined the channel [05:41] OmidRaha has joined the channel [05:42] yumike has joined the channel [05:43] isaacs has joined the channel [05:43] rails_noob has joined the channel [05:43] r04r has joined the channel [05:44] idl3 has joined the channel [05:44] wolftankk has joined the channel [05:46] bulatshakirzyano has joined the channel [05:48] r04r has joined the channel [05:49] Shrink has joined the channel [05:52] ecin has joined the channel [05:54] r04r has joined the channel [05:54] r04r has joined the channel [05:55] abraxas: what do people here use for data validation? any popular libraries? [05:55] pimetrai has joined the channel [05:57] Martz has joined the channel [05:57] joeytwiddle has joined the channel [06:00] EvRide has joined the channel [06:00] brianloveswords has joined the channel [06:01] cache_za has joined the channel [06:01] wereHamster: validating what? [06:02] fangel has joined the channel [06:02] abraxas: variables, user input [06:02] abraxas: making sure certain properties exist and are well formatted [06:03] localhost has joined the channel [06:04] abraxas: just saw a nice one called "amanda", looks pretty good [06:04] abraxas: but if there's anything else popular out there, i'd love to hear about it [06:05] ecin_ has joined the channel [06:07] dezmaeth has joined the channel [06:07] dezmaeth: hey guys, im triying to get forever working but it fails everytime i start a script [06:07] jacobolus has joined the channel [06:07] dezmaeth: and using nohup i get this error : TypeError: Object [object Object] has no method 'cursorTo' [06:08] dezmaeth: but if i start using just node , works perfectly [06:08] dezmaeth: the script requires socket.io module [06:08] dezmaeth: any clues? not much info on this on google [06:09] monokrome: Since they're asyncronous, if I do four writes to a file - do they arrive in order? [06:10] abraxas: monokrome: i'm not sure, but i suggest you use callbacks accordingly [06:10] monokrome: ? [06:10] zilch_ has joined the channel [06:10] abraxas: monokrome: ? :) [06:10] jjd has joined the channel [06:11] monokrome: "use callbacks accordingly" seems a bit vague [06:11] dezmaeth: any other way to set as background process a node script ? without forever, that just fails miserably ? [06:11] jackbean has joined the channel [06:11] abraxas: monokrome: if you're using asynchronous filesystem api, you'll want to probably use the callback of each operation to spawn the next operation. [06:12] jjd has joined the channel [06:12] monokrome: abraxas: Sure, if that's possible. It's not in this case. [06:12] dezmaeth: monokrome: filesystems are usually on first in first out basis, so i presume it will require callbacks [06:12] abraxas: monokrome: how's that? [06:12] pitlimit has joined the channel [06:12] monokrome: abraxas: Because it's the same callback over and over again [06:12] pitlimit: If I call a function can I be certain there are no race conditions on shared structures? [06:13] sdwrage has joined the channel [06:13] abraxas: pitlimit: yes, javascript is a single thread eventloop [06:14] abraxas: pitlimit: hence no need to protect your variables with mutexes [06:14] ecin_ has joined the channel [06:14] ecin_ has joined the channel [06:15] chrislorenz has joined the channel [06:15] dezmaeth: again , anyway to run node as a server that ITS NOT forever ? that shit just fails [06:15] abraxas: monokrome: i don't know your situation, but .. my gut tells me it's not safe.. [06:16] amigojapan has joined the channel [06:16] monokrome: abraxas: And it's also a prototype, and a cake build step, and not for production [06:16] monokrome: So, I'm not too worried. [06:16] abraxas: monokrome: as far as i know, nodejs has a thread pool to do these kind of operations, and if you have 2 writes on 2 separate threads, you can't say for sure in which order the cpu ends up scheduling the writes. [06:16] monokrome: I'll rewrite it once I know it works. [06:16] ecin has joined the channel [06:16] monokrome: abraxas: They're coming in in proper order for now [06:17] abraxas: monokrome: i think it will work fine 99.x% of the time :) [06:17] abraxas: if that's good enough in your case.. why not :) [06:17] monokrome: prototype, being rewritten, and not for production? It's okay for now. [06:18] monokrome: I think it'll be fine unless some OS schedules the I/O unusually [06:18] cognominal has joined the channel [06:19] Heisenmink has joined the channel [06:20] abraxas: well, like i said, if both operations are being pushed on a separate thread, all guarantees go out the window [06:20] monokrome: They're not [06:20] abraxas: a system under heavy load may become funky [06:20] luke` has joined the channel [06:20] abraxas: how do you know? [06:20] monokrome: Because this is node? [06:20] abraxas: node internally has a thread pool for these kinds of operations [06:20] abraxas: if the OS provides no async way to do certain operations, node pushes them on a thread pool [06:20] isaacs: it's awesome when npm's test fails, because it says "This is most likely a problem with the npm package, and not npm itself" [06:21] isaacs: then it tells me to contact the author [06:21] monokrome: abraxas: Well, it's working :) [06:21] yuwang_ has joined the channel [06:21] zilch_ has joined the channel [06:23] tiagobutzke has left the channel [06:25] monokrome: woohoo [06:25] monokrome: prototype works [06:26] beseku: Hey all. I'm coming to Node from Rails and before that PHP/CodeIgniter. I'm messing about with the express framework, (with the resourceful routing monkey patch) so I have my routing/controllers and views worked out. Whats the done thing in terms of moddeling data/databases in Node.js? Is there an Active Record style implementation? [06:27] SamuraiJack has joined the channel [06:27] beseku: I'd rather work with MySQL as we have a server built for databases, but this whole thing is experimental so other opinions are welcomed. [06:28] smgt has joined the channel [06:28] abraxas: beseku: i don't know about ORM, but you definitely want to use the node-mysql library (there are a bunch of mediocre alternatives out there that you'll want to ignore) [06:29] abraxas: beseku: https://github.com/felixge/node-mysql [06:29] davidbanham has joined the channel [06:29] beseku: Yeah, I saw that and guessed it was the default lib. No libraries for modelling this data? [06:30] tommyvyo has joined the channel [06:30] ryan_stevens has joined the channel [06:30] avalanche123 has joined the channel [06:30] chrislorenz has joined the channel [06:31] k1ttty has joined the channel [06:33] rails_noob has joined the channel [06:35] felixge has joined the channel [06:36] zilch_ has joined the channel [06:37] scrogson has left the channel [06:37] secoif: beseku http://toolbox.no.de/search?q=orm [06:39] gigawatt has joined the channel [06:40] neilk_ has joined the channel [06:41] gigawatt_ has joined the channel [06:42] beseku: secoif: thats grand, thankyou [06:45] beseku: Looks like node-mysql and node-orm are what I am looking for. Any experience with these? [06:45] zilch_ has joined the channel [06:45] simenbrekken has joined the channel [06:45] Margle has joined the channel [06:46] secoif: beseku nah. I've only used mongoose, and played with jugglingdb (which does support mysql). [06:47] secoif: beseku i think if you're going to use an orm, design your system so you can swap it out later [06:47] secoif: beseku as in, don't lean on the orm's functionality too much [06:47] kishoreyekkanti has joined the channel [06:48] beseku: That makes sense, I wasn;t planning on doing anything extraordinary, but didn;t want to write boilerplate myself is all. [06:48] luoluoluo has joined the channel [06:49] jskulski has joined the channel [06:50] stantona has joined the channel [06:50] secoif: beseku sure. just try keep your orm-infected models solely about saving/loading/validating data, and put any other functionality above it. [06:52] jacobolus has joined the channel [06:53] dust-- has joined the channel [06:54] smgt has joined the channel [06:57] jellosea_ has joined the channel [06:57] jellosea_: when i do server.close() , the close event never gets emitted, and netstat shows me that my process is still listening on the port. how do i really close it? whats stopping it from getting closed? [06:58] zilch_ has joined the channel [06:58] maxogden: .end() ? [07:01] AAA_awright has joined the channel [07:01] Drakonite has joined the channel [07:01] jellosea_: server.end()? [07:02] jellosea_: maxogden: i dont think server has that method [07:02] mattrobenolt has left the channel [07:04] bosphorus has joined the channel [07:08] braoru has joined the channel [07:12] raincole has joined the channel [07:13] mikeal has joined the channel [07:14] skm has joined the channel [07:15] keltus has joined the channel [07:17] pizthewiz has joined the channel [07:18] Wizek has joined the channel [07:19] cryptix has joined the channel [07:21] Marko has joined the channel [07:22] zilch_ has joined the channel [07:25] mayfield has joined the channel [07:25] mayfield has left the channel [07:27] p1d has joined the channel [07:27] kmox83 has joined the channel [07:27] pimetrai has joined the channel [07:28] secoif: isaacs: so rimraf works really well; a misconfigured test case just rimraffed my whole project into oblivion :D [07:29] secoif: including my .git dir, so anything not pushed just ate the dirt. ahh well, that'll teach me. [07:29] maxogden: lol [07:30] Xano has joined the channel [07:31] __doc__ has joined the channel [07:31] mediacoder has joined the channel [07:32] visudo has joined the channel [07:34] secoif: ACTION invests in setting up timemachine [07:34] jellosea_: when i do server.close() , the close event never gets emitted, and netstat shows me that my process is still listening on the port. how do i really close it? whats stopping it from getting closed? [07:34] luxigo has joined the channel [07:35] ciju has joined the channel [07:36] fangel has joined the channel [07:37] luke` has joined the channel [07:40] zilch_ has joined the channel [07:40] neshaug has joined the channel [07:40] OmarDolaimy has joined the channel [07:41] jaequery has joined the channel [07:41] zilch_ has joined the channel [07:42] mange has joined the channel [07:42] ph^ has joined the channel [07:44] Shrink has joined the channel [07:44] robotmay has joined the channel [07:46] mange_ has joined the channel [07:48] simenbrekken has joined the channel [07:49] mraleph has joined the channel [07:50] Morkel has joined the channel [07:50] groom has joined the channel [07:50] thalll has joined the channel [07:53] bosphorus has joined the channel [07:54] CIA-109: node: 03seebees 07v0.6 * raab958b 10/ (2 files in 2 dirs): [07:54] CIA-109: node: OutgoingMessage.prototype.write does not take Array [07:54] CIA-109: node: Changed the type checking for OutgoingMessage.prototype.write so it only accepts string and Buffer. [07:54] CIA-109: node: And test. [07:54] CIA-109: node: Fixes #2162 [07:54] CIA-109: node: Fixes #2208 - http://git.io/rQocKw [07:54] rwasielewski has joined the channel [07:54] aoberoi has joined the channel [07:54] aoberoi has left the channel [07:55] chrislorenz has joined the channel [07:55] mechanicles has joined the channel [07:56] mechanicles: Hi all [07:56] bibabot has joined the channel [07:57] mechanicles: how to install 'npm install path/to/node-mongodb-native' ? here what is the path to? Please help... [07:57] zilch_ has joined the channel [07:58] hipsters_ has joined the channel [07:58] hackband has joined the channel [07:59] emattias has joined the channel [08:00] garrensmith: mechanicles: what are you trying to do? [08:01] mechanicles: I just installed mongodb using npm install, now I want to install node-mogodb-native. [08:01] tomlion has joined the channel [08:01] bibabot has joined the channel [08:02] mechanicles: I'm going through steps of the install in https://github.com/christkv/node-mongodb-native [08:02] gut4 has joined the channel [08:03] mechanicles: garrensmith: ^ [08:04] garrensmith: mechanicles: if you do npm install mongodb what will install it. [08:04] rendar has joined the channel [08:04] garrensmith: s/what/that [08:06] davidbanham has joined the channel [08:09] mechanicles: garrensmith: not getting you. [08:09] codygray has joined the channel [08:09] garrensmith: mechanicles: npm install mongodb - that is all you need. the next line in the readme is if you want the latest code from his master branch and not the latest release [08:11] raphdg has joined the channel [08:12] petrjanda has joined the channel [08:13] mechanicles: garrensmith: ohh okay thanks. [08:14] zilch_ has joined the channel [08:16] ablomen has joined the channel [08:16] burningdog has joined the channel [08:17] ditesh|cassini has joined the channel [08:18] teknopaul has joined the channel [08:19] jsurfer has joined the channel [08:20] sindresorhus has joined the channel [08:22] JumpMast3r has joined the channel [08:22] whitman has joined the channel [08:22] alessioalex has joined the channel [08:23] paulwe has joined the channel [08:25] Swizec has joined the channel [08:27] kuebk has joined the channel [08:28] uchuff has joined the channel [08:28] nicholasf has joined the channel [08:29] zilch_ has joined the channel [08:29] sechrist has joined the channel [08:29] michaelhartau has joined the channel [08:30] jomoho has joined the channel [08:31] clu3 has joined the channel [08:31] kmox83 has joined the channel [08:32] joshwnj`: quit [08:33] joshwnj`: bah :P [08:33] joshwnj` has left the channel [08:36] kmox83_ has joined the channel [08:36] vvo has joined the channel [08:37] [AD]Turbo has joined the channel [08:37] loob2 has joined the channel [08:37] [AD]Turbo: hi there [08:38] Margle has joined the channel [08:39] zen_ has joined the channel [08:39] benlyng has joined the channel [08:42] dannyamey has joined the channel [08:42] bergie has joined the channel [08:43] JakeyChan has joined the channel [08:43] jbpros has joined the channel [08:44] Swizec_ has joined the channel [08:45] abadr has joined the channel [08:47] abadr: Trying to install CoffeeScript on Ubuntu 11.10. Did apt-get install npm, apparently successfully, but then get this error when installing CS: http://pastebin.com/5qFsGj7i [08:48] alessioalex: npm install coffee-script -g [08:48] salva has joined the channel [08:49] ivanfi has joined the channel [08:49] levi501d has joined the channel [08:49] Marko has joined the channel [08:50] abadr: That seems to have worked. Is this a bug in CS's installation instructions, or some different version issue? [08:50] ppcano has joined the channel [08:50] jryans has joined the channel [08:51] zilch_ has joined the channel [08:51] `3rdEden has joined the channel [08:51] Druid_ has joined the channel [08:52] adrianF has joined the channel [08:52] abadr: @alessioalex [08:53] tomlion has joined the channel [08:53] alessioalex: ? [08:53] ryan_stevens: `3rdEden: Hey. have you ever heard of anyone using your node-hashring in production? [08:53] ryan_stevens: looks pretty solid [08:53] alessioalex: that's the way to install [08:54] `3rdEden: ryan_stevens i'm using it in my memcached driver [08:54] icebox has joined the channel [08:54] marlun has joined the channel [08:54] marlun has joined the channel [08:54] abadr: thankss [08:54] Emmanuel has joined the channel [08:54] `3rdEden: And that is beein used in production [08:55] stonebranch has joined the channel [08:56] zilch_ has joined the channel [08:56] abadr: alessioalex: just FYI, the problem was that ubuntu installs an old version of NPM that doesn't support the -g flag [08:56] ryan_stevens: I'm trying to understand HashRing.generateRing a little bit better [08:56] ryan_stevens: `3rdEden ^ [08:56] ryan_stevens: *question brewing* (one sec) [08:56] alessioalex: oh... [08:57] ryan_stevens: `3rdEden: how does https://github.com/3rd-Eden/node-hashring/blob/master/lib/hashring.js#L96 relate to the bit shifting your doing in hashValue [08:58] pksunkara: Hey guys, a silly question but no trolling [08:58] jryans has joined the channel [08:58] pksunkara: What is node.js not good for? [08:59] `3rdEden: ryan_stevens it's used to give the server more keys based on the weight [09:00] `3rdEden: because if you have a server with 100gb mem and another of 40gb you want to distribute more keys to that 100gb beast [09:01] ryan_stevens: ok [09:01] mauritslamers_ has joined the channel [09:01] emattias has joined the channel [09:02] qFox has joined the channel [09:03] jackbean has joined the channel [09:03] sean510 has joined the channel [09:04] hipsters_ has joined the channel [09:04] davidbanham has joined the channel [09:05] abadr has left the channel [09:05] zilch_ has joined the channel [09:06] marlun has joined the channel [09:06] ag4ve has joined the channel [09:06] sean510: the node install guide claims libssl-dev comes installed on osx [09:06] garrensmith has joined the channel [09:06] sean510: doesn't seem to be the case on my lion box [09:06] Margle has joined the channel [09:07] jimt has joined the channel [09:07] andriy has joined the channel [09:07] nils_r has joined the channel [09:08] mediacoder has joined the channel [09:08] CiRlE has joined the channel [09:08] zenith111 has joined the channel [09:08] zilch_ has joined the channel [09:09] ace has joined the channel [09:09] ace: hi noders [09:09] ace: alert("how are you?"); [09:09] sylvinus has joined the channel [09:09] SubStack: ahoy! [09:10] Bonuspunk: ReferenceError: alert is not defined :P [09:10] ryan_stevens: alert = console.log //if you must [09:11] ace: :) [09:11] alessioalex: hey [09:11] ace: i m a noob in JS :) i just have 15y in c++ [09:11] TomY has joined the channel [09:12] ryan_stevens: ha, I was curious, and I gess you can't reassign alert with console.log, chrome a least freaked out when I tried to invoke it [09:12] robotmay has joined the channel [09:12] ace: does it make sense to use node.js to create a classic website without need of ajax/event driven stuff? [09:13] jellosea_: when i do server.close() , the close event never gets emitted, and netstat shows me that my process is still listening on the port. how do i really close it? whats stopping it from getting closed? [09:14] ryan_stevens: `3rdEden: Just curious, but I was wonder if there was a reason why CRC32 is the default algorithm [09:14] zilch_ has joined the channel [09:15] djcoin has joined the channel [09:15] marlun has joined the channel [09:16] ryan_stevens: `3rdEden: I'm really not trying to troll btw. My admin and I really want to use your module for a production memcache proxy- but we're seeing issue with the md5 implementation [09:17] eldios has joined the channel [09:17] zomg: ace: probably easier to just use something like apache if that is the case [09:17] Heisenmink has joined the channel [09:18] rio{ has joined the channel [09:19] pyparadigm has joined the channel [09:19] icebox: pksunkara: http://nodeguide.com/convincing_the_boss.html [09:19] robhawkes has joined the channel [09:20] ace: zomg: just in term of classic website, apache/ning is faster? [09:20] pksunkara: icebox: I am just a student [09:20] pksunkara: I want to see what more there is to develop in nodejs [09:20] pyparadigm has joined the channel [09:20] RichardBronosky has joined the channel [09:20] Emmanuel` has joined the channel [09:20] marlun has joined the channel [09:20] Esteb has joined the channel [09:21] adrianF has joined the channel [09:21] davidbanham has joined the channel [09:22] icebox: pksunkara: http://nodejs.org/codeconf.pdf [09:22] pksunkara: Thanks icebox [09:24] zilch_ has joined the channel [09:24] eldios has joined the channel [09:24] markwubben has joined the channel [09:25] herbySk has joined the channel [09:25] garrensmith has joined the channel [09:26] adambeynon has joined the channel [09:26] icebox: pksunkara: the latest roadmap - http://groups.google.com/group/nodejs/browse_thread/thread/79504e62223f3bf0 [09:27] Nuck has joined the channel [09:28] cosmincx has joined the channel [09:28] Neil has joined the channel [09:28] cognominal_ has joined the channel [09:28] torsd has joined the channel [09:29] jimmysparkle has joined the channel [09:30] aaronmcadam has joined the channel [09:31] Diaoer has joined the channel [09:31] holly has joined the channel [09:31] metaverse has joined the channel [09:31] booyaa: morning [09:32] madhums has joined the channel [09:33] holly: Hello , does the node.js still support UDP broadcast? I call the dgram.setBroadcast(flag) and the the errror 'not yet implemented' @ v0.6.3 [09:33] `3rdEden: ryan_stevens crc32 provides a more dense distribution [09:33] `3rdEden: and it's faster then md5 [09:35] kuebk: hi [09:35] kuebk: is there a possibility to do some kind of logger [09:35] kuebk: which I have in a.js [09:35] kuebk: and require it in b.js [09:36] kuebk: and in b I call it a.log [09:36] zilch_ has joined the channel [09:36] augustl: kuebk: sure, module.exports will be the same object every time and you're free to put anything you want in it [09:36] kuebk: and a.log the filename and line where it was called? [09:36] kuebk: augustl: that's not really what I want to do;p [09:37] augustl: __dirname, __filename [09:37] icebox: kuebk: http://nodejs.org/docs/v0.6.3/api/all.html#cycles [09:37] kuebk: nah that's not what I want [09:38] kuebk: I would like to do a logger tool [09:38] kuebk: so [09:38] kuebk: when I do something like console.log [09:38] kuebk: anywhere [09:38] kuebk: it will automatically logs filename and line [09:38] kuebk: and I don't want to pass them as arguments [09:38] npa has joined the channel [09:39] polymar has joined the channel [09:39] svnlto has joined the channel [09:40] kuebk: that would require inspecting call stack [09:40] kuebk: is that possible? [09:40] garrensmith has joined the channel [09:40] tobias has joined the channel [09:41] zilch_ has joined the channel [09:42] torsd: https://github.com/flatiron/winston [09:42] systemfault has joined the channel [09:43] fly-away has joined the channel [09:43] zilch_ has joined the channel [09:44] augustl: kuebk: not other than throwing an exception afaik [09:44] augustl: kuebk: probably possible/easy with c++ [09:44] kuebk: augustl: that's what I thought :( [09:45] vguerra has joined the channel [09:46] dgathright has joined the channel [09:48] HardPhuck has joined the channel [09:49] MrBenn has joined the channel [09:49] jessedijkstra has joined the channel [09:50] secoif: kuebk you can access a stack just by creating a new Error() [09:50] secoif: kuebk var stack = new Error().stack [09:51] mikeal1 has joined the channel [09:52] zilch_ has joined the channel [09:53] garrensmith has joined the channel [09:55] TheJH_phone has joined the channel [09:55] jimt_ has joined the channel [09:55] ph^ has joined the channel [09:55] secoif: kuebk actually console.trace() will also give you a stack trace [09:56] zilch_ has joined the channel [09:56] augustl: ooh [09:56] kuebk: oh [09:56] kuebk: lol [09:56] kuebk: didn't know that [09:56] kuebk: thank you secoif [09:57] secoif: np [09:57] kuebk: it prints to stderr [09:57] kuebk: but that not a problem [09:57] kuebk: tyvm [09:58] augustl: woot, console.trace() prints instead of returns? [09:58] akihito_s has joined the channel [09:59] secoif: http://nodejs.org/docs/v0.6.3/api/all.html#console.trace [10:00] zomg: ace: I don't really know, it should be plenty fast. It's definitely easier to get started though [10:00] secoif: also note the console.time/endTime really handy when you want to do simple performance [10:00] secoif: …testing. [10:00] anderson has joined the channel [10:00] CodeRarity has joined the channel [10:00] sneak has joined the channel [10:00] sneak has joined the channel [10:00] augustl: kuebk, secoif heh, the implementation sucks [10:01] augustl: https://github.com/joyent/node/blob/master/lib/console.js#L57 [10:01] secoif: augustl ? [10:02] secoif: augustl working with what they've got [10:02] augustl: just saying there's no point using console.trace() [10:02] anderson: hello, I wrote a simple UDP client/server. [10:02] madhums has joined the channel [10:02] davidbanham has joined the channel [10:02] augustl: since it doesn't do anytging special [10:02] anderson: but I cannot receive any message from client. [10:02] anderson: any suggestion ? [10:03] jellosea_ has joined the channel [10:03] zomg: anderson: firewall, routing, incorrect code, wrong port, wrong listener, wrong ip address... [10:03] zomg: oh, could also be that you network cable is not plugged in... [10:03] TheJH_phone: anderson, sure the server is bound and listening? [10:03] anderson: test in localhost [10:03] zomg: or your computer is off... [10:03] zomg: =) [10:03] anderson: yes, the server is bound and listening. [10:03] rurufufuss has joined the channel [10:04] anderson: firewall ? [10:04] aesptux has joined the channel [10:04] zomg: What I am saying is, your description is vague [10:05] secoif: augustl why use node? it doesn't do anything special. just use c/c++. [10:05] jhurliman has joined the channel [10:05] anderson: firewall is off. [10:05] sylvinus has joined the channel [10:05] augustl: secoif: you missed my point [10:05] anderson: so any other ? [10:06] jldbasa has joined the channel [10:06] anderson: my code is from http://nodejs.org/docs/v0.3.1/api/dgram.html [10:07] augustl: 0.3.1 :D [10:07] zomg: Only slightly dated [10:07] zomg: =) [10:08] hellp has joined the channel [10:08] anderson: yes. [10:09] anderson: but I found the new v0.6.3 document and code. [10:09] anderson: the same. [10:09] anderson: any UDP tool for Mac ? [10:09] vguerra_ has joined the channel [10:10] anderson: I want to test UDP client/server using UDP tool . [10:12] augustl: show us some code, perhaps [10:16] anderson: server code: http://dpaste.com/663237/ [10:16] braoru has joined the channel [10:16] anderson: client code: http://dpaste.com/663238/ [10:17] anderson: null [10:17] anderson: wrote 11 bytes to socket. [10:18] burningdog has left the channel [10:19] marlun has joined the channel [10:19] marlun has joined the channel [10:21] jimmysparkle has joined the channel [10:21] davidbanham has joined the channel [10:21] d0k has joined the channel [10:21] shipit has joined the channel [10:22] pandeiro has joined the channel [10:23] saurabh has joined the channel [10:24] zilch_ has joined the channel [10:27] serroba has joined the channel [10:28] aliem has joined the channel [10:30] anderson_ has joined the channel [10:30] k1ttty_ has joined the channel [10:31] markwubben has joined the channel [10:31] booyaa: anderson: udp tool? is that the name of the app? or you want something that analyses udp traffic? [10:31] OmidRaha has joined the channel [10:31] tuhoojabotti has joined the channel [10:32] JakeyChan_ has joined the channel [10:33] zilch_ has joined the channel [10:33] secoif: augustl probably ;) [10:34] booyaa: anderson: try wireshark [10:38] k1ttty has joined the channel [10:39] flat has joined the channel [10:41] flat: Hi folks, I'm doing a require('child_process').exec to a program in a subdirectory of the one my node.js is in, and sometimes -- about 10% to 20% of the time, it's giving me this error: { [Error: Command failed: /bin/sh: undefined: command not found [10:41] flat: ] killed: false, code: 127, signal: null } [10:41] flat: Any thoughts? [10:42] wereHamster: 'undefined' is indeed not a command [10:42] wereHamster: sounds like a bug in your code [10:42] booyaa: variable's not getting a value? [10:42] flat: Ah, sure -- I thought it was telling me /bin/sh is not a command! [10:42] flat: But that makes sense -- I'll check it out. [10:42] booyaa: might want to test that variable using typeof (sorry if i'm teaching granny) [10:45] jomoho has joined the channel [10:45] sindresorhus has joined the channel [10:46] zilch_ has joined the channel [10:46] flat: Heh. Gotta love stupid mistakes. So easy to fix. [10:46] booyaa: flat ftw! [10:47] kazupon has joined the channel [10:48] boehm has joined the channel [10:49] sjltaylor has joined the channel [10:52] eeemsi: hi [10:52] dubenstein has joined the channel [10:53] fermion has joined the channel [10:54] eeemsi: while reading stuff on http://npmjs.org often a "tl;dr:" appears [10:55] mmalecki: eeemsi: yeah [10:56] zilch_ has joined the channel [10:58] SoulRaven has joined the channel [10:59] mindbender1 has joined the channel [11:00] rails_noob has joined the channel [11:01] k1ttty has joined the channel [11:02] vinz has joined the channel [11:02] tomlion_ has joined the channel [11:05] adrianmg has joined the channel [11:05] TomY_ has joined the channel [11:07] okuryu has joined the channel [11:12] davidbanham has joined the channel [11:13] robi42 has joined the channel [11:14] mrtazz has left the channel [11:14] mrtazz has joined the channel [11:14] adrianmg has left the channel [11:15] jankeromnes has joined the channel [11:18] Wizek has joined the channel [11:19] andree has joined the channel [11:28] stonebranch has joined the channel [11:28] zilch_ has joined the channel [11:30] Margle has joined the channel [11:31] christophsturm has joined the channel [11:31] christophsturm: is there a howto how to do zero downtime reloads with node cluster? [11:32] martin_sunset has joined the channel [11:32] Ryzer has joined the channel [11:34] bradleyg has joined the channel [11:34] dubenstein has joined the channel [11:34] zilch_ has joined the channel [11:35] stonebra_ has joined the channel [11:37] mike5w3c has joined the channel [11:38] jankeromnes: I had to reset my smartmachine on no.de, FAQ said delete and provision new. Now I have "The free no.de service is currently at full capacity" when I try to provision new. Any idea when it will be back? [11:38] TheNumb has joined the channel [11:38] pickels_ has joined the channel [11:38] piscisaureus_ has joined the channel [11:39] mmalecki: piscisaureus_: hey, you there? [11:39] zilch_ has joined the channel [11:40] josh-k has joined the channel [11:40] Wizek has joined the channel [11:41] arcanis has joined the channel [11:45] martin_sunset has joined the channel [11:47] zomg: Hmm, my node app is spiking CPU use a lot lately.. 0-40% CPU [11:47] zomg: Seems I need to optimize something [11:47] CIA-109: node: 03Bert Belder 07v0.6 * r6ed721a 10/ (deps/uv/src/win/core.c deps/uv/src/win/req.c): Upgrade libuv to fce90652ed38ab0925131ed141972354a494933b - http://git.io/zcK8pQ [11:47] mendel_ has joined the channel [11:50] hackband has joined the channel [11:51] sgimeno has joined the channel [11:53] alnewkirk has left the channel [11:53] TomY has joined the channel [11:54] bosphorus has joined the channel [11:57] robhawkes has joined the channel [11:57] sylvinus_ has joined the channel [12:02] vereteran has joined the channel [12:03] lzskiss has joined the channel [12:05] TomY has joined the channel [12:05] JakeyChan has joined the channel [12:06] markwubb_ has joined the channel [12:06] pickels__ has joined the channel [12:07] rio{ has joined the channel [12:07] pavel__ has joined the channel [12:08] ph^ has joined the channel [12:08] dubenstein has joined the channel [12:08] aliem has joined the channel [12:09] Wizek has joined the channel [12:10] sylvinus has joined the channel [12:11] mehtryx has joined the channel [12:13] kishoreyekkanti_ has joined the channel [12:13] phiggins has joined the channel [12:13] fairwinds has joined the channel [12:13] kishoreyekkanti has joined the channel [12:15] Kunda has joined the channel [12:15] akihito_s has joined the channel [12:15] duschendestroyer has joined the channel [12:15] dinesh_ has joined the channel [12:15] k1ttty has joined the channel [12:16] hipster__ has joined the channel [12:16] Aragorn_Guardian has joined the channel [12:16] cryptix has joined the channel [12:16] cryptix: anybody having problems with the npm included with node 0.6.3 [12:16] duschendestroyer: hey guys. is there a workaround for the broken npm bundled with 0.6.3? [12:17] cryptix: heh looks like im not alone [12:17] cryptix: it worked on osx for me but it appears broken on linux [12:17] tonymilne has joined the channel [12:17] Aragorn_Guardian: what is the most used mvc framework to work with node? [12:18] duschendestroyer: maybe it's a conflict with files from earlier versions of npm [12:18] Aragorn_Guardian: in nodeguide there are onli expresso and fab [12:19] tonymilne: expresso == test framework, you might mean express. [12:19] tonymilne: you should use express + mongoose (mongodb), in my opinion. [12:19] Wizek has joined the channel [12:19] tonymilne: then just pick a templating module, like jade / els, etc. [12:19] tonymilne: *ejs [12:20] Aragorn_Guardian: tonymilne: thanks... 8) [12:20] zomg: I'm using express+mongoose+ejs, works pretty nicely [12:20] tonymilne: same ^ [12:20] Aragorn_Guardian: is stable enough to run in a prodution server? [12:20] tonymilne: yeah, so node 0.4.12 is stable. [12:20] cryptix: duschendestroyer: i ran npm uninstall npm -g before installing node 0.6.3 [12:20] Aragorn_Guardian: stable and secure... [12:20] tonymilne: 0.5.* are unstable [12:21] tonymilne: and 0.6.* are stable again. [12:21] cryptix: duschendestroyer: what other files could there be? [12:21] duschendestroyer: i don't know [12:21] tonymilne: meaning things are open to change, node api wise. [12:21] duschendestroyer: that's why I'm here [12:21] wereHamster: duschendestroyer: reinstall the system [12:22] Aragorn_Guardian: thanks...gonna try these.. 8) [12:22] pksunkara: Anybody here who can explain why video encoding and other high level computations are discouraged in node.js? [12:22] mehtryx has left the channel [12:22] pksunkara: Is it because it will take too much time compared to C and C++ [12:23] pksunkara: or there is much deeper reason for this? [12:23] tonymilne: Aragorn_Guardian if you handle errors thrown and you add something like upstart + monit to ensure your node process stays running, you'll be fine in production. Also maybe checkout forever by indexzero. [12:24] zomg: pksunkara: my assumption would be the same, but don't really know for sure [12:24] Aragorn_Guardian: tonymilne: nice... [12:25] svnlto has joined the channel [12:26] icebox: pksunkara: generally speaking, any long running... due to event loop approach [12:26] pksunkara: icebox: any material I can read up to understand more about this ^ [12:28] icebox: pksunkara: http://nodejs.org/ two slides and vide at the bottom [12:28] pksunkara: thnx icebox [12:29] topaxi_: pksunkara: handling binary data in js isn't nice too [12:29] JumpMast3r has joined the channel [12:29] topaxi_: there are tools which make it better than plain js, but still [12:29] pksunkara: topaxi_: How does C do it? [12:29] topaxi_: suxx :> [12:29] icebox: topaxi_: well... with node-binary I enjoyed :) [12:30] topaxi_: yeah there are some awesome binary frameworks / libs out there :D [12:30] Aragorn_Guardian: and about security? how restrict access? there are something like sessions? [12:30] topaxi_: but i read somewhere, that the jsmad devs had some issues with precision [12:31] cjm has joined the channel [12:31] kazupon has joined the channel [12:31] topaxi_: Accuracy [12:31] topaxi_: The output from jsmad is NOT representative of the output quality of libmad itself. jsmad hasn't been tested for ISO/IEC 11172-4 computational accuracy requirements compliance. JavaScript number crunching has always been a bad idea, and we're aware of that - we've done it to push the limits of what is being done with JavaScript, much in the spirit of pdf.js [12:31] aliem has joined the channel [12:32] topaxi_: not sure if you can hack around this problem :) [12:33] rwasiele_ has joined the channel [12:33] stagas has joined the channel [12:35] fairwinds: looking for something to test whether file is symbolic link in api [12:37] tuhoojabotti: http://nodejs.org/docs/v0.6.3/api/fs.html#fs.stat ? [12:37] icebox: pksunkara: generlly speaking you can find a few info at https://github.com/joyent/node/wiki/Resources [12:37] tuhoojabotti: no [12:37] tuhoojabotti: lstat [12:37] saurabh has joined the channel [12:37] tuhoojabotti: http://nodejs.org/docs/v0.6.3/api/fs.html#fs.Stats [12:38] MrNibbles has joined the channel [12:39] shanebo has joined the channel [12:40] tomlion has joined the channel [12:40] Morkel has joined the channel [12:40] fairwinds: lstat is what I was look for, thanks [12:41] ppcano has joined the channel [12:43] xy has joined the channel [12:44] cognominal___ has joined the channel [12:44] ppcano has joined the channel [12:45] Sami_ZzZ has joined the channel [12:47] amigojapan has joined the channel [12:47] Kunda has left the channel [12:48] pandeiro has joined the channel [12:50] neurodrone has joined the channel [12:51] jarek has joined the channel [12:53] nephics has joined the channel [12:54] dubenstein has joined the channel [12:56] jondot has joined the channel [12:58] tonymilne has left the channel [12:58] jomoho has joined the channel [12:59] appr has joined the channel [12:59] sjltaylor_ has joined the channel [13:00] ppcano has joined the channel [13:00] Swizec has joined the channel [13:00] eviltwin_ has joined the channel [13:01] scott_gonzalez has joined the channel [13:02] poincare101 has joined the channel [13:02] gtramontina_ has joined the channel [13:03] francisl has joined the channel [13:05] devongovett has joined the channel [13:06] mehtryx has joined the channel [13:06] bradleyg has joined the channel [13:06] CiRlE has joined the channel [13:06] brianseeders has joined the channel [13:06] dezmaeth has joined the channel [13:07] vvo has joined the channel [13:08] MrNibbles has joined the channel [13:08] dezmaeth: hey, i have problems with forever, im using npm to install it ,but when it runs , it gets this error, ive google it a lot but nothing http://pastebin.com/8Jkfwzxm [13:11] dezmaeth: any clues? [13:11] Marko has joined the channel [13:12] poincare101 has left the channel [13:14] mehtryx has left the channel [13:16] robi42 has joined the channel [13:17] Wizek has joined the channel [13:22] joshsmith_ has joined the channel [13:22] zilch_ has joined the channel [13:23] jarek has joined the channel [13:23] nmtmason has joined the channel [13:23] jondot: can anyone recommend crop/resize library for node? [13:23] stagas has joined the channel [13:25] Benn2 has joined the channel [13:25] cgfuh has joined the channel [13:25] stonebranch has joined the channel [13:26] bradleyg has joined the channel [13:26] kulor-uk has joined the channel [13:27] kulor-uk has joined the channel [13:27] erichynds has joined the channel [13:28] jscheel has joined the channel [13:29] kulor-uk has joined the channel [13:29] Heisenmink has joined the channel [13:30] mange has joined the channel [13:32] dubenstein has joined the channel [13:32] JakeyChan_ has joined the channel [13:33] piscisaureus__ has joined the channel [13:33] bradleyg: desmaeth: it's a known issue - https://github.com/nodejitsu/forever/issues/179 [13:33] fumanchu182 has joined the channel [13:36] subbyyy has joined the channel [13:38] cryptix has joined the channel [13:38] bnoordhuis has joined the channel [13:38] jpdery has joined the channel [13:40] mange has joined the channel [13:40] bergie has joined the channel [13:40] burningdog has joined the channel [13:40] MartinodF has joined the channel [13:40] eee_c has joined the channel [13:41] bnoordhuis has joined the channel [13:43] cosmincx has joined the channel [13:45] ditesh|cassini has joined the channel [13:46] iBooyaa has joined the channel [13:47] jtrudeau has joined the channel [13:48] enmand has joined the channel [13:51] rails_noob has joined the channel [13:53] nerdy_ has joined the channel [13:54] sechrist has joined the channel [13:58] AaronMT has joined the channel [13:58] andriy has joined the channel [13:58] ohtogo has joined the channel [13:58] zilch_ has joined the channel [13:59] mange_ has joined the channel [14:00] Alex has joined the channel [14:00] tuhoojabotti: :) [14:00] braoru has joined the channel [14:00] Ryzer has left the channel [14:01] lyte has joined the channel [14:01] lyte has joined the channel [14:01] Alex has left the channel [14:06] hij1nx has joined the channel [14:06] zilch_ has joined the channel [14:07] robi42 has joined the channel [14:08] stagas has joined the channel [14:09] kishoreyekkanti_ has joined the channel [14:10] lukegalea has joined the channel [14:13] colinclark has joined the channel [14:14] burningdog_ has joined the channel [14:14] Heisenmink_ has joined the channel [14:15] bosphorus has joined the channel [14:16] lyte_ has joined the channel [14:16] stantona has joined the channel [14:16] madhums has joined the channel [14:17] zilch_ has joined the channel [14:17] braoru has joined the channel [14:18] duschendestroyer has left the channel [14:19] stantona has joined the channel [14:20] thalll has joined the channel [14:21] ignacioiglesias has joined the channel [14:23] ignacioiglesias: Hi everybody. [14:23] tuhoojabotti: Hello!!1 [14:23] enmand_ has joined the channel [14:23] ignacioiglesias: I just sent this to #socket.io but it doesn't seem to be much people actually chatting in there [14:23] ignacioiglesias: I was wondering if somebody has ran into the "TypeError: Cannot convert null to object at DELETE (native)" error. [14:23] marcello3d has joined the channel [14:24] ignacioiglesias: (had run?) [14:26] zivester has joined the channel [14:26] deedubs has joined the channel [14:27] pickels_ has joined the channel [14:27] pickels__ has joined the channel [14:28] ritch has joined the channel [14:28] ritch has left the channel [14:28] tih-ra has joined the channel [14:28] CarterL has joined the channel [14:29] echobucket has joined the channel [14:33] JasonJS has joined the channel [14:34] Draco_ has joined the channel [14:34] cryptix: meh.. the broken npm is annoying.. [14:34] arcanis has joined the channel [14:35] tuhoojabotti: broken cloud9 is nasty [14:35] Draco_ has joined the channel [14:36] ovaillancourt has joined the channel [14:36] enmand_ has joined the channel [14:36] bnoordhuis has joined the channel [14:36] rwasiele_ has joined the channel [14:36] mendel_ has joined the channel [14:36] josh-k has joined the channel [14:36] christophsturm has joined the channel [14:36] michaelhartau has joined the channel [14:36] joeytwiddle has joined the channel [14:36] AD7six has joined the channel [14:36] pandark_ has joined the channel [14:36] koo3 has joined the channel [14:36] hotspants has joined the channel [14:36] sstreza has joined the channel [14:36] FMJaggy has joined the channel [14:36] mattp_ has joined the channel [14:36] mattijs has joined the channel [14:36] minerale has joined the channel [14:36] zilch_ has joined the channel [14:36] braoru has joined the channel [14:36] vvo has joined the channel [14:37] rails_noob has joined the channel [14:37] pauls1 has joined the channel [14:37] robi42 has joined the channel [14:37] kriszyp3 has joined the channel [14:38] soapyillusions has joined the channel [14:38] cognominal_ has joined the channel [14:38] davidsklar has joined the channel [14:39] lduros has joined the channel [14:41] davidcoallier has joined the channel [14:41] davidcoallier has joined the channel [14:41] k1ttty has joined the channel [14:45] lazyshot has joined the channel [14:45] echobucket has joined the channel [14:46] Poetro has joined the channel [14:46] Poetro has joined the channel [14:52] cryptix: feels like monday 2.0 [14:53] ignacioiglesias: Any idea on the socket.io thing? [14:53] zilch_ has joined the channel [14:55] ceej has joined the channel [14:55] mendel_ has joined the channel [14:56] gtramontina has joined the channel [14:56] jakehow has joined the channel [14:57] sylvinus has joined the channel [14:57] josh-k has joined the channel [14:57] brianc has joined the channel [14:58] crab has joined the channel [14:58] iFire has joined the channel [14:59] wereHamster: cryptix: is that right after sunday 1.8? [14:59] crab: should "set prefix = ~/.node_modules" make "npm install less" install to ~/.node_modules/less? (node 0.6.3, npm 1.1.0-alpha-2) [14:59] thinkt4nk has joined the channel [14:59] aakour has joined the channel [14:59] fairwinds has joined the channel [14:59] crab: (i ask because it doesn't, it still installs to ~/node_modules (no .)) [15:00] thomblake has joined the channel [15:00] SirFunk has joined the channel [15:00] thomblake has left the channel [15:00] codygray has joined the channel [15:00] zz_roger_raymond has joined the channel [15:00] lzskiss has joined the channel [15:02] tvw has joined the channel [15:02] visudo has joined the channel [15:02] vkareh has joined the channel [15:02] wenbert has joined the channel [15:05] reupertdonglebot has joined the channel [15:05] chrisvwebdev has joined the channel [15:06] fatjonny has joined the channel [15:06] reupertdonglebot: I'm looking to get a better handle on how streams work, any modules I should check out to see it implemented well? [15:06] robi42 has joined the channel [15:06] Juan77 has joined the channel [15:07] tih-ra has joined the channel [15:08] tih-ra: crab: sorry I`m mean npm install -d [15:08] brianc: reupertdonglebot: the node core file stream, stdio stream, and socket stream [15:09] Cromulent has joined the channel [15:09] Venom_X has joined the channel [15:10] cronopio has joined the channel [15:11] fuzzled has joined the channel [15:11] Vennril has joined the channel [15:11] fuzzled: hey everyone, i've been working with node for a while now. i've never had this problem though, cannot find module, even when it is npm install'd and visible inside of node_modules/ [15:12] joshkehn has joined the channel [15:12] npa has joined the channel [15:12] fuzzled: is there anything that i could be overlooking? [15:13] aliem has joined the channel [15:13] WarheadsSE has joined the channel [15:13] tih-ra: fuzzled: it in node_modules/ inside your project older? [15:13] augustl: fuzzled: what do you `require`? [15:13] tih-ra: older = folder [15:13] tih-ra: dont forger require [15:13] fuzzled: inside of my project/node_modules/ [15:13] tih-ra: ) [15:13] fuzzled: hah [15:14] OmidRaha has joined the channel [15:14] fuzzled: let me gist it [15:14] tih-ra: var module = require('module') [15:15] fuzzled: yeah no i get it, i meant beyond basics. i've written a bunch of modules. [15:15] zilch_ has joined the channel [15:15] fuzzled: i've just never not been able to require a module that i can visibly see in node_modules/ [15:16] fuzzled: https://gist.github.com/1405130 [15:19] ben_alman has joined the channel [15:20] tih-ra: fuzzled: are you mongodb started? [15:20] joshkehn: fuzzled: Can you require it at the repl? [15:20] fuzzled: ahh yeah - [15:20] jarek has joined the channel [15:20] jarek has joined the channel [15:21] gut4 has joined the channel [15:21] zheneva has joined the channel [15:21] fuzzled: you think that it is an issue with mongodb connect not firing first or? [15:22] tih-ra: is depend mongodb@0.9.6-19 and nodeunit@0.5.1 [15:23] tih-ra: Can you require it at the repl? [15:23] fuzzled: I'm wondering if when i went from 0.4..12 to 0.6.0 my require paths were corrupted? [15:23] tih-ra: var short = require("../lib/short"); [15:24] tih-ra: fuzzled: in short has no index.js [15:25] fuzzled: tih-ra: got it thanks :P [15:25] fuzzled: (when i updated short to < 7.0.0 engine i changed the main entry point [15:25] tih-ra: fuzzled: Welcome!) [15:25] fuzzled: ACTION face palm [15:25] Morkel has joined the channel [15:26] eddyb has joined the channel [15:26] fuzzled: i wanted to scream tih-ra "but my unit tests are passing!" :P [15:26] eddyb: so, any idea what code highlighting libraries for js are out there? [15:26] crab: tih-ra: what about npm install -d? [15:28] mike5w3c has joined the channel [15:29] dilvie has joined the channel [15:29] darren has joined the channel [15:30] tih-ra: crab: you need add less to package.json in your project folder [15:30] tih-ra: and after make npm install -d [15:31] fuzzled: i've always wondered why people think it's "cool" to fork a project … then not contribute :P [15:31] aconbere has joined the channel [15:31] CIA-109: node: 03Ben Noordhuis 07master * ra033261 10/ configure : build: DRY configure script - http://git.io/c08L8A [15:33] eddyb: it's so cool npm registry has about 5 packages per library type [15:33] eddyb: the cooler the library is, the more implementations it has [15:33] hannibal has joined the channel [15:33] mattrobenolt has joined the channel [15:35] kishoreyekkanti has joined the channel [15:35] OmidRaha has left the channel [15:35] mattrobenolt: Any safe async way to do this: https://gist.github.com/e088935c4af5dfa7389e [15:36] joshkehn: Sure [15:36] joshkehn: Do an async read, collect each file, callback [15:36] mattrobenolt: Right, I guess I'm just trying to wrap my logic around the recursive callbacks needed in the async calls. [15:36] eddyb: mattrobenolt: have a counter [15:37] joshkehn: There shouldn't be any recursion. [15:37] joshkehn: var num_files = files.length; [15:37] eddyb: var callbacksLeftToGet = files.length; [15:37] aheckmann has joined the channel [15:37] joshkehn: if (--num_files === 0) { // callback } [15:37] eddyb: decrease it with every callback got [15:37] eddyb: if zero, call main callback [15:37] eddyb: joshkehn: heh [15:37] mattrobenolt: But that won't retain order. [15:37] mattrobenolt: Well, guaranteed to retain order. [15:38] tih-ra: I finished the beta version of my module (alleup) Flexible way to resize and upload images to Amazon S3 or file system storages for Node.js (https://github.com/tih-ra/alleup). Is Possible to add different versions of the same image in cropped or resized variants. And now if there is willing to Contributors, you are welcome. I plan to add a upload not only image but other types of files with a prior processing on the server. [15:38] joshkehn: mattrobenolt: You could pass an order to the callback function and slot it into an array to maintain order. [15:38] mattrobenolt: joshkehn: I'm basically trying to do this: [15:38] mattrobenolt: fs.readFile(file[0], function(){ [15:38] mattrobenolt: fs.readFile(file[1], ...) [15:38] mattrobenolt: }) [15:38] jbpros has joined the channel [15:38] secoif: is there any way to get the current users home path from node? [15:39] eddyb: mattrobenolt: have function callback(){readnext(callback);} [15:39] joshkehn: mattrobenolt: Why are you doing that? [15:39] wereHamster: env.HOME [15:39] wereHamster: secoif: ^^^ [15:39] mattrobenolt: joshkehn: Ahh, I see. Is that really the best way? [15:39] eddyb: process.env.HOME [15:39] joshkehn: Better then recursively reading files. [15:39] eddyb: mattrobenolt: from what I know, yes [15:39] secoif: wereHamster eddyb thanks guys [15:39] pifantastic has joined the channel [15:39] mattrobenolt: joshkehn: I'm writing a stacktrace parser, and I'm reading in each file of the stacktrace to determine the lines of context. [15:39] brianloveswords has joined the channel [15:40] mattrobenolt: So for each frame of the stack, I'm reading in the file, grabbing the lines around the error. [15:40] mattrobenolt: So each file read needs to be directly associated with a frame of the stack. [15:40] joshkehn: Okay… so why can't you async read them? [15:40] joshkehn: I don't see an issue with that really. [15:41] mattrobenolt: I can, I'm just having trouble with the logic to read all the files recursively. [15:41] joshkehn: mattrobenolt: Async, not recursive [15:41] mattrobenolt: Here's basically what I have now: https://gist.github.com/fd02f52c7151eaf61a69 [15:42] fmeyer has joined the channel [15:42] mattrobenolt: So I'm looping over each line of the stacktrace, getting the filename the error spawned from. Then reading it in, parsing the appropriate lines, then moving to the next. [15:42] mattrobenolt: My background is Python, so this async stuff is a little odd to get ahold of. [15:42] mattrobenolt: And ignore the callback, it's not really doing anything. [15:43] joshkehn: lines.forEach(function (line) { [15:43] joshkehn: var file = extractFileName(line); [15:43] joshkehn: readFileForLine(line, file); [15:43] maboo has joined the channel [15:43] joshkehn: }); [15:43] JasonJS: Is there a significant difference between function foo() {} and foo = function () {} ?? [15:44] joshkehn: JasonJS: Yes [15:44] cypherblue has joined the channel [15:44] joshkehn: One is a named function, the other is a anonymous function assigned to a variable. [15:44] sylvinus has joined the channel [15:44] eddyb: named functions, apart from being named, can be called from inside the function with that name [15:44] visudo has joined the channel [15:44] joshkehn: mattrobenolt: readFileForLine would async read the file and push it into a map where you have { line : file_contents } [15:45] joshkehn: eddyb: arguments.callee ? [15:45] joshkehn: Anonymous recursion FTW [15:45] burningdog has joined the channel [15:45] eddyb: don't use arguments, please :) [15:45] mattrobenolt: Then how do I call the master callback? [15:45] joshkehn: mattrobenolt: Inc a counter [15:45] mattrobenolt: haha, that recursive is what's killing my brain right now. [15:45] joshkehn: It's not recursive. [15:45] joshkehn: Don't think of it as recursive. [15:45] joshkehn: ;) [15:45] burningdog has left the channel [15:46] joshkehn: eddyb: Only if you don't know what you're doing. ;) [15:46] eddyb: so var x = function foo(a){if(!a)foo(1);}; x();/* works */ foo();/*fails*/ [15:46] joshkehn: Honestly I've never had to use arguments.callee [15:46] JasonJS: joshkehn: I get that, but when I'm defining a callback function that I'm going to be providing to another async function, does it matter which I use? [15:46] BillyBreen has joined the channel [15:46] eddyb: joshkehn: I heard they're getting removed or something [15:46] jerrysv has joined the channel [15:46] joshkehn: eddyb: Only in the harmony / ES next junk [15:46] joshkehn: I don't agree with much (if anything) they are proposing. [15:46] joshkehn: So I ignore it. [15:47] joshkehn: JasonJS: Not really [15:47] joshkehn: JasonJS: Though the named functions will give much better stacktraces [15:47] eddyb: JasonJS: also, you can name and assign a function [15:47] mattrobenolt: I think I get it. One minute. [15:48] eddyb: I've been (almost) always doing this: [15:48] eddyb: Class.prototype.do = function do(){}; [15:48] joshkehn: JasonJS: You can also name inline functions fs.readFile(…, function file_read () {}) [15:48] eddyb: since I learned that the name appears in the stacktrace [15:48] joshkehn: eddyb: That's a great style to embrace. [15:48] joshkehn: I do that for all my stuff as well. [15:48] Neil has joined the channel [15:48] ryanfitz has joined the channel [15:48] JasonJS: joshkehn: That was my understanding as well - I just recall watching some video (Crockford I believe) speaking to the differences and I couldn't recall if there was a significant reason to go one way or another [15:49] eddyb: you believe Crockford? [15:49] cgray has joined the channel [15:49] JasonJS: eddyb: I believe he understands how JS works - I don't agree with a lot of his 'standards' [15:50] ignacioiglesias: Not sure if this may help: http://stackoverflow.com/questions/103598/why-was-the-arguments-callee-caller-property-deprecated-in-javascript [15:50] crab has left the channel [15:52] mattrobenolt: Ok, almost there: https://gist.github.com/fd02f52c7151eaf61a69 [15:53] geekbri has joined the channel [15:53] mattrobenolt: That reads them all, and it works fine. Just now they're out of order. [15:53] willwhite has joined the channel [15:53] joshkehn: Instead of saying frames.push [15:53] joshkehn: Say frames[line_number] [15:54] mattrobenolt: Ohhh, I was unaware that you could shove into arbitrary indexes like that in js. [15:54] Me1000 has joined the channel [15:54] mattrobenolt: js is crazy, haha [15:54] joshkehn: var arbitrary = Math.random() * 10000 | 0; [15:54] joshkehn: frames[arbitrary] = 'JS!'; [15:55] mattrobenolt: That's convenient. [15:55] SamuraiJack has joined the channel [15:55] mattrobenolt: So that's what you meant by keeping a counter. [15:55] mattrobenolt: My "i". [15:55] joshkehn: Ja [15:55] eddyb has joined the channel [15:55] eddyb has joined the channel [15:56] Raynos: Does node have -o and -e options? [15:56] mandric has joined the channel [15:56] stantona has joined the channel [15:56] issackelly_ has joined the channel [15:56] chrislorenz has joined the channel [15:57] soapyillusions has joined the channel [15:57] wereHamster: what would those do? [15:58] CoverSlide: -e executes the next argument as a string [15:58] jj0hns0n has joined the channel [15:58] CoverSlide: not sure about -o, maybe output to a file? [15:59] Raynos: -o and -e are ways to point stdout and stderr to places [15:59] Raynos: ndoe doesnt support them [15:59] briancray has joined the channel [15:59] Raynos: its a C thing [15:59] mmalecki: Raynos: piping does [15:59] Raynos: but piping works for stdout [15:59] CoverSlide: and stderr [15:59] jakehow has joined the channel [15:59] Raynos: do I need to pipe std err somewhere? [15:59] mmalecki: node script.js >stdout 2>stderr [15:59] mattrobenolt: Boom. All works. :) [15:59] Raynos: I see is 2> stderr ? [15:59] CoverSlide: yes [15:59] mmalecki: yeah [15:59] clithe has joined the channel [16:00] confoocious has joined the channel [16:00] confoocious has joined the channel [16:00] tomlion has joined the channel [16:01] Raynos: I have a linux box (sshvm) and I have a server on port 8080 and have port 80 forwarded by iptables [16:01] braoru has joined the channel [16:01] neurodrone has joined the channel [16:01] Raynos: but the ip on port 80 wont work :( [16:01] Raynos: How do I debug that? [16:02] clithe: Hello! I'm using mongodb driver with mongoose on the top and i was wondering if a conneciton to Mongo is persistent? And if not, do i have to handle the reconnection routine or mongoose does it by itself? [16:02] plutoniix has joined the channel [16:02] Draco_ has joined the channel [16:02] bnoordhuis: Raynos: `nc -l 127.0.0.1 8080` - do you see something when a client connects on port 80? if not, your redirect rule is faulty [16:02] wenbert has joined the channel [16:03] Raynos: nc isnt a command and I cant apt-get install it [16:03] stantona has joined the channel [16:03] simenbrekken has joined the channel [16:03] bnoordhuis: Raynos: netcat [16:03] Raynos: Thanks [16:04] ivanfi has left the channel [16:04] Raynos: I dont see any information for either connecting to port 80 (which does nothing) or connecting to port 8080 directly [16:04] mattrobenolt: joshkehn: Is there a better way of getting the index of a forEach loop instead of wrapping everything inside another closure? [16:05] jerrysv: !mdc array [16:05] jerrysv: hm. guess that doesn't work. [16:06] Diaoer has joined the channel [16:06] joshkehn: mattrobenolt: Sure [16:06] joshkehn: var i = 0; [16:06] mattrobenolt: I'm doing this: https://gist.github.com/fd02f52c7151eaf61a69 [16:06] joshkehn: array.forEach(function () { [16:06] joshkehn: i += 1; [16:06] ohtogo has joined the channel [16:06] jelveh has joined the channel [16:06] wereHamster: Raynos: how is -e/-o a 'C thing'? [16:07] mattrobenolt: Right, but then to preserve that "i" for the async calls, I need to wrap it in a closure. [16:07] joshkehn: forEach might actually give you the index [16:07] joshkehn: One sec [16:07] joshkehn: Ja, I know what you're doing. ;) [16:07] mattrobenolt: I know .each() in jQuery does, but that's not Javascript specific. [16:07] Raynos: wereHamster: I don't know, I'm pretty sure I used it with a C program. I can't remember when/where I used it. [16:07] joshkehn: mattrobenolt: .forEach(function (item, index, array) [16:07] joshkehn: That's the argument order [16:08] joshkehn: > [1, 2, 3].forEach(function () { console.log(arguments); }) [16:08] joshkehn: { '0': 1, '1': 0, '2': [ 1, 2, 3 ] } [16:08] joshkehn: { '0': 2, '1': 1, '2': [ 1, 2, 3 ] } [16:08] joshkehn: { '0': 3, '1': 2, '2': [ 1, 2, 3 ] } [16:08] sindresorhus has joined the channel [16:08] wereHamster: Raynos: there are lots of C programs. Those that I wrote certainly don't support that [16:08] Raynos: wereHamster: Ignore me, I think I forgot where that came from [16:08] mattrobenolt: Oh shit, so just lines.forEach(function(line, index) [16:08] bnoordhuis: Raynos: node supports -e btw [16:08] joshkehn: Oui [16:08] mattrobenolt: Yep, that makes it simpler. [16:08] alvaro_o has joined the channel [16:08] CoverSlide: for most scripting languages -e would mean 'execute' [16:08] Raynos: -e is for eval. I was looking for > and 2> :) [16:08] CoverSlide: er 'eval' [16:09] jerrysv: mattrobenolt: have you checked out mdn? [16:09] mattrobenolt: No, what's that? [16:09] jerrysv: aha! let me tell you [16:09] jerrysv: try a google search for mdn array [16:09] mattrobenolt: Oh, Mozilla Developer Network? [16:09] jerrysv: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array [16:09] CoverSlide: mozilla developer network [16:09] joshkehn: mattrobenolt: https://developer.mozilla.org/en/JavaScript [16:09] mattrobenolt: Yeah, I've used that. [16:10] joshkehn: Best place to start looking for anything. [16:10] jerrysv: absolutely [16:10] mattrobenolt: It's just tricky sometimes when you don't know WHAT to look for. [16:10] scottschecter has joined the channel [16:10] mattrobenolt: You have to think differently for Node, and it's getting into that groove. [16:11] mattrobenolt: I guess it's more than async patterns that it takes a while getting used to. [16:11] MatthewS has joined the channel [16:11] mattrobenolt: Here's mostly finished code, just haven't done any error handling: https://gist.github.com/fd02f52c7151eaf61a69 [16:11] pandeiro has joined the channel [16:13] jtr__ has joined the channel [16:14] seebees1 has joined the channel [16:14] mattrobenolt: Generates a nice formatted stack: https://raw.github.com/gist/fd02f52c7151eaf61a69/cd17cb3ceb29f2bfb8560acabfb9ad92a71e94d9/gistfile1.js [16:15] rauchg has joined the channel [16:15] Raynos: Is there any demand for writing detailed tutorial about setting up a blog using node, express, couchdb & friends? [16:16] scttnlsn has joined the channel [16:17] seebees1 has left the channel [16:17] fangel has joined the channel [16:18] gtramontina has joined the channel [16:19] boltR has joined the channel [16:19] jaequery has joined the channel [16:19] themiddleman_itv has joined the channel [16:19] secoif: so, is there a simple way to perform environment variable substitution on a string? [16:20] kuya has joined the channel [16:21] joshkehn: Raynos: YABE? [16:21] joshkehn: I wouldn't think so. [16:21] fuzzled: is there currently a tool/site to up vote/downvote a pull request ? i.e., we see a lot of +1 on comments etc on github but ... [16:21] secoif: Raynos write a post on anything but a blog. using node for a blog is like using a spaceship as a towel rack. Sure, it can do it but it's not exactly the most sexy application of the tool. [16:22] fuzzled: secoif: yeah but it's kind of like the hello world of apps [16:22] joshkehn: fuzzled: It's still dumb. [16:22] fuzzled: and like hello world, its used to demonstrate features and a gentle intro vs. a practical application [16:22] MatthewS has joined the channel [16:22] joshkehn: Here's the difference. [16:22] joshkehn: Hello world is a few lines [16:22] joshkehn: A blog is much more. [16:23] yenz: +1 [16:23] yenz: Raynos: do it [16:23] fuzzled: +1, true. [16:23] scttnlsn: Number(x) vs. parseInt(x)...what's the difference? [16:23] wereHamster: secoif: string.replace ? [16:23] wereHamster: scttnlsn: vs ~~x [16:24] secoif: scttnlsn Number(x) will try convert any object to a number eg the string "0.2" -> the number 0.2 [16:24] joshkehn: Blogging engines themselves are dumb ideas. [16:24] secoif: parseInt will force it to an integer [16:24] secoif: ie [16:24] joshkehn: Using Node to write one is downright impractical. [16:24] Xano has joined the channel [16:24] secoif: parseInt('0.2') == 0 [16:25] secoif: I don't even think blog is something node is particularly strong at, so it's not showcasing it's best side [16:25] fuzzled: joshkehn: really? i guess that you don't come from "the practical world" [16:25] vereteran has joined the channel [16:25] scttnlsn: thanks [16:25] josh-k has joined the channel [16:25] jacobolu_ has joined the channel [16:25] joshkehn: fuzzled: I'm not sure what you mean. [16:25] fuzzled: my company isn't building a blog, but we use a blogging engine, for our company blog. [16:26] joshkehn: Point/ [16:26] fuzzled: its not like we're writing blogging engines in node :P [16:26] JakeyChan has joined the channel [16:26] secoif: I still don't understand [16:26] joshkehn: fuzzled: I'm a little fuzzy [16:27] secoif: scttnlsn you should use the node repl [16:27] secoif: scttnlsn to try these things out [16:27] joshkehn: Can you clarify how your company using a blogging engine relates to writing a tutorial for creating a blogging engine in node? [16:27] secoif: scttnlsn got to your commandline and type node [16:27] secoif: scttnlsn and play [16:28] secoif: scttnlsn and hope you don't throw any errors after you've spent 3 minutes setting up testing vars [16:28] yenz: aggro tuesday [16:28] dezmaeth: i got errors with forever on /director/lib/director/router.js:28:9 [16:28] secoif: wereHamster i guess that's pretty simple eh [16:28] secoif: wereHamster thanks [16:29] CoverSlide: you know who likes blogging engines? HITLER ! (--force Godwin) [16:29] fuzzled: "joshkehn: Blogging engines themselves are dumb ideas." [16:29] fuzzled: you mean a nodes blogging engine - [16:29] fuzzled: nodejs* [16:29] Raynos: joshkehn: secoif: I know, it's not very exciting but I wanted to write a blog from scratch, and I have done and I use it. And it might be useful to tell people what I learned about doing that [16:29] joshkehn: Raynos: Point out the those things. [16:30] Raynos: its not so much about writing a blog more about "here's how I've written a website with node" [16:30] fuzzled: Raynos: you should write one on writing a module with proper unit tests [16:30] dezmaeth: ok , so i got the "TypeError: Cannot call method 'reset' of undefined", i've trying uninstalling node, npm, everything, reinstalling, installing older versions, everything, wtf? [16:30] joshkehn: Sure, fine. Just don't start from the blogging engine standpoint. [16:30] Raynos: fuzzled: well I do plan to rewrite the blog step by step with 100% unit test coverage and focus on doing this TDD [16:30] secoif: fuzzled it's simple. don't write a line of production code that doesn't already have a test for it [16:30] joshkehn: fuzzled: I think all blog “engines” suck to some degree. [16:30] dezmaeth: i am asking on the wrong place? [16:30] Raynos: Its not a blog engine, its a website [16:31] joshkehn: secoif: That doubles your time to market [16:31] joshkehn: Test where it's helpful, not always. [16:31] dezmaeth: this is the full error [16:31] dezmaeth: https://gist.github.com/1402515 [16:31] fuzzled: and joshkehn as Raynos says its a website, a blog engine is a big piece of software [16:31] joshkehn: Otherwise you test for tests sake. [16:31] secoif: joshkehn that halves the time you spend fucking around after you launch [16:31] CoverSlide: write the test first [16:31] fuzzled: +1 CoverSlide [16:31] Raynos: joshkehn: I test for refactoribility [16:31] fuzzled: BDD [16:31] Raynos: I mean I dont do 100% test coverage of my units [16:31] isaacs: dezmaeth: can you gist the code that oyu're seeing that in? [16:31] Raynos: but I have tested my entire http api and it really helps [16:32] joshkehn: secoif: Completely depends on what you're changing. [16:32] isaacs: dezmaeth: the smaller the reproducible example, the bette. [16:32] isaacs: *better [16:32] jsurfer has joined the channel [16:32] Srirangan has joined the channel [16:32] pimetrai has joined the channel [16:32] secoif: joshkehn sure, you dont' need tests for your Readme [16:32] Raynos: joshkehn: is it more valuable to talk about the highlights of what I've learned then to write a tutorial of how to write a similar website from scratch? [16:32] secoif: Raynos spot on [16:32] joshkehn: Raynos: I believe so. [16:32] joshkehn: That would be perfect. [16:33] hij1nx has joined the channel [16:33] CoverSlide: what if my README is error-prone? [16:33] kenperkins has joined the channel [16:33] joshkehn: CoverSlide: if [[ ! -e README ]]; then echo "Unable to find readme"; exit; fi [16:34] secoif: I wish people had test coverage on the examples they put in the readme [16:34] Raynos: Also for reference, source code is there : https://github.com/Raynos/raynos-blog [16:34] secoif: nothing more frustrating than using a library where the examples break [16:34] CoverSlide: agreed [16:34] TheJH has joined the channel [16:34] joshkehn: secoif: I would rather just see a good examples folder with tests. [16:34] joshkehn: I don't trust the examples in README's [16:34] jerrysv: travisci for readme's [16:34] jocafa has joined the channel [16:35] Raynos: I expect readmes to work [16:35] ekryski has joined the channel [16:35] Raynos: I expect tests to exist and examples to exist where relevant [16:35] kuebk has left the channel [16:35] secoif: joshkehn agreed. but you can't just rename your test suite with a .md extension and be done with it [16:35] kishoreyekkanti has joined the channel [16:36] secoif: whe i'm evaluating a package, need to do so in <30 seconds [16:36] joshkehn: secoif: The TDD people would have you believe that's a good and proper way to do it. [16:36] secoif: <10 [16:36] felixge has joined the channel [16:36] felixge has joined the channel [16:36] Raynos: secoif: hence the nodejitsu style title tiny description example [16:36] secoif: and example should work [16:36] yenz: joshkehn: provided the tests are written fluently enough [16:36] secoif: anyway [16:36] secoif: back to work [16:36] tjholowaychuk has joined the channel [16:36] mansoor-s has joined the channel [16:37] dezmaeth: isaacs: https://gist.github.com/1405435 [16:37] Srirangan: ACTION is tired on Java, Scala and the over engineering done in the JVM world [16:37] Srirangan: ACTION is looking for a Node.js job [16:37] dezmaeth: isaacs: im just using the example found in http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever [16:37] joshkehn: Srirangan: Where are you located? [16:38] mmalecki: dezmaeth: what's up? [16:38] dezmaeth: isaacs: it fails whatever script i try to run [16:38] dezmaeth: mmalecki: hey [16:38] Srirangan: joshkehn, New Delhi .. willing to relocate if needed [16:38] vereteran has joined the channel [16:38] mmalecki: dezmaeth: can you gist the log? [16:39] dezmaeth: i'ts on the gist, right after the code https://gist.github.com/1405435 [16:39] dezmaeth: mmalecki: after // this is giving error : [16:39] fuzzled: ls [16:39] kenperkins: o/ [16:40] yenz: kenperkins: sup [16:40] kenperkins: just getting back into things after vacation :) [16:40] yenz: kenperkins: me too [16:40] yenz: *highfive* [16:40] kenperkins: indeed [16:40] mmalecki: dezmaeth: can you clone forever and try it with bin/forever? [16:40] kenperkins: so much to do, so little time [16:41] dezmaeth: mmalecki: sorry the noob question , how do i do that? [16:42] mmalecki: dezmaeth: git clone https://mmalecki@github.com/nodejitsu/forever.git [16:42] Draco_ has joined the channel [16:42] dmojoryder has joined the channel [16:42] CIA-109: node: 03Ben Noordhuis 07isolates * rf867220 10/ (src/node.cc src/node.h): core: isolate-ify (+6 more commits...) - http://git.io/p9NH6Q [16:43] elevenarms has joined the channel [16:43] ryanseddon has joined the channel [16:43] iaincarsberg has joined the channel [16:44] matjas has joined the channel [16:44] matjas has joined the channel [16:44] matjas has joined the channel [16:44] tanepiper has joined the channel [16:44] dezmaeth: mmalecki: k, error changed, now it says that i dont have the module async, should i install it? [16:45] brianc: dezmaeth: you might not be interested...but if you're on debian or ubuntu you could easily use upstart to manage your node process. this will help in the event of a reboot as well. [16:45] mmalecki: dezmaeth: npm install [16:45] mmalecki: brianc: and forever can start services as well [16:45] caolanm has joined the channel [16:45] brianc: mmalecki: what starts forever? [16:46] mmalecki: brianc: https://github.com/nodejitsu/forever/tree/master/lib/forever/service [16:46] dezmaeth: mmalecki: ok , did the npm install on forever/bin folder, failed with the same error when i try to run it [16:46] mmalecki: this may explain it better [16:47] JKarsrud has joined the channel [16:47] Kai` has joined the channel [16:47] mmalecki: dezmaeth: cd forever [16:47] dezmaeth: brianc: how can i do it using debian ? im on lenny [16:47] brianc: mmalecki: i not saying forever is bad, i just used upstart myself to great success. I will check forever out now...probably useful [16:47] mmalecki: dezmaeth: make sure you're in the directory with package.json [16:47] mmalecki: brianc: fair enough :). I'm just saying that forever can do that [16:48] necromancer has joined the channel [16:48] dezmaeth: :/home/forever/bin# ./forever start /home/forever/simple.js just trows me the same error on the gist [16:48] JaKWaC has joined the channel [16:49] Cromulent has joined the channel [16:49] mmalecki: ah, ok [16:49] mmalecki: that's weird, it shouldn't [16:49] kenperkins: so is there a more authoritative recommendation on managing to specific versions of npm packages in production? [16:49] mmalecki: what's your node version and OS? [16:49] colinclark has joined the channel [16:49] dezmaeth: node v0.6.1 [16:49] kenperkins: ACTION currently manages production with a tarball of packages and avoids npm entirely [16:50] ralph has joined the channel [16:50] dezmaeth: OS debian lenny [16:50] cgfuh has joined the channel [16:50] mmalecki: kenperkins: http://blog.nodejitsu.com/package-dependencies-done-right [16:50] isaacs: kenperkins: tarball's fine. [16:50] isaacs: kenperkins: that's what npm does, after all :) [16:50] mmalecki: it's more general introduction tho [16:50] beawesomeinstead has joined the channel [16:50] kenperkins: heh from charlie :P [16:50] colinclark_ has joined the channel [16:50] yenz: kenperkins: i just point my package.json deps at exact version #'s [16:50] kenperkins: he was in our office last month debating some npm virtues with Gary [16:50] dezmaeth: brianc: all i need is to start a node process and be able to close SSH that im using and the process to continue [16:51] isaacs: kenperkins: npm is a set of tools, which you can use however you like, really. some people find it useful to use some aspects of npm in production, others find it easier to use something like chef to just push things into place, etc. [16:51] olegp has joined the channel [16:51] isaacs: kenperkins: use whatever works. [16:51] isaacs: kenperkins: npm's primary use-case is to make development easier. [16:51] kenperkins: thx for the comment [16:51] kenperkins: that's what we do: use puppet to push a "blessed" tarball to our node boxes [16:51] kenperkins: wasn't sure if state of the art was better than that ;) [16:51] heatxsink has joined the channel [16:52] strax has joined the channel [16:52] kenperkins: (I believe we had a similar conversation a few months ago, wasn't sure if it had progressed) [16:52] smathy has joined the channel [16:52] dezmaeth: mmalecki: maybe this helps, i tried runing the process using nohup node simple.js and got this from the out line events.js:48 throw arguments[1]; // Unhandled 'error' event [16:52] isaacs: kenperkins: you could, of course, go full-on with npm. run your own private registry, and do installs from that, so you only push "blessed" packages into it. [16:52] brianc: dezmaeth: you could use tmux or screen for that :p [16:52] isaacs: kenperkins: and maybe even set up a build/staging server that listens on teh _changes feed, and automatically installs and tests on each push [16:53] mmalecki: dezmaeth: kind of unrelated [16:53] tomh has joined the channel [16:53] kenperkins: sounds neato, and lots of work, but maybe worth the effort once it's all rolling [16:53] mmalecki: dezmaeth: let me dive into it [16:53] JasonSmith has joined the channel [16:53] dezmaeth: mmalecki: k [16:53] pksunkara has joined the channel [16:53] TheDeveloper has joined the channel [16:53] kenperkins: any blog posts or others extolling the virtues about said approach? [16:53] isaacs: kenperkins: yeah, i think this year, the npm client will be pretty much done (feature-wise, it's there, but there's a lot of cleanup to do yet), and we can focus on making more of those things easier. [16:53] metadaddy has joined the channel [16:53] fangel has joined the channel [16:54] isaacs: kenperkins: the "npm for the enterprise" thing isn't really fully baked yet. [16:54] enmand has joined the channel [16:54] isaacs: kenperkins: it would make sense if you were a couch and npm expert. but if puppet works for you, that's cool. [16:54] isaacs: you should still publish your open source stuff to the npm registry, and use it for development [16:54] kenperkins: we're not really "enterprise" yet, but with only 5 of us, we're trying to have as much automation in place as possible [16:54] kenperkins: we [16:55] kenperkins: we've talked a fair bit about generalizing a bunch of our internal stuff into npm packages [16:55] Raynos has joined the channel [16:55] kenperkins: for distro into the registry [16:55] jeremyselier has joined the channel [16:55] jyp has joined the channel [16:55] kenperkins: time.....cest la vie. [16:56] dnyy has joined the channel [16:56] else1 has joined the channel [16:56] eldios: what's wrong with this code---> http://pastebin.com/vPgx7VYk? [16:56] RedSofa has joined the channel [16:56] eldios: also is it ugly in your opinion? [16:56] chunhao_ has joined the channel [16:57] eldios: or better.. is it unbelieably ugly? :P [16:57] a11235 has joined the channel [16:57] brianc: eldios: first thing wrong is the pastebin wont open [16:57] eldios: lol [16:57] eldios: aaah [16:57] eldios: http://pastebin.com/vPgx7VYk [16:58] pizthewiz has joined the channel [16:58] eldios: the ? at the end could probably screw the link [16:58] jmeed has joined the channel [16:58] whoops has joined the channel [16:59] trotter has joined the channel [16:59] criswell has joined the channel [17:00] eldios: well it's encouraging that no-one is blaming at me.. probably the error is not that evident [17:01] dezmaeth: brianc: how do u use tmux ? and what is it exactly? [17:01] tiglionabbit has joined the channel [17:01] owenb has joined the channel [17:01] eldios: is a terminal multiplexer [17:02] CoverSlide: it's like gnu screen [17:02] eldios: think of it as a .. terminal splitter [17:02] CoverSlide: but better [17:02] eldios: yes exactly [17:02] eldios: better is a bit strong maybe.. it's more complex and thus more powerful probably [17:02] majek has joined the channel [17:03] eldios: I still fine screen faster and easier.. then good enough for daily usage [17:03] echobucket has joined the channel [17:03] Prism has joined the channel [17:03] brianc: yeah screen == tmux pretty much for day to day use [17:03] eldios: find* [17:03] CoverSlide: i only use screen because tmux won't compile on cygwin, and i need cygwin for some things [17:04] brianc: dezmaeth: basically you start screen/tmux and it gives you a console. you do whatever you want in that console. when you disconnect SSH the console stays running because screen/tmux is running as a service in the background [17:04] brianc: dezmaeth: once you SSH back into the box you can "reattach" to your open console in screen/tmux [17:04] brianc: dezmaeth: all your apps you started are still running. note: don't do production deployment like this. [17:04] eldios: I forgot to tell that the error my pastebin code give is --> RangeError: Maximum call stack size exceeded [17:04] CoverSlide: you're probably recursing too much [17:05] eldios: I am.. simply cannot understand why/how/where/when.. [17:05] eldios: oh..I have a suspect :) [17:05] blitzMN has joined the channel [17:05] CoverSlide: perhaps newSize never gets to 0 [17:05] Hosh has joined the channel [17:06] dscape has joined the channel [17:06] brianc: when all else fails, console.log everythaaaang [17:07] eldios: I'm console.log-ing and it was pretty sick XD [17:07] footyfish has joined the channel [17:08] nym has joined the channel [17:09] anveo has joined the channel [17:09] djMax has joined the channel [17:09] smathy has joined the channel [17:09] djMax: one of my ejs views is just printing the code rather than running, but others are working fine. Ideas? [17:10] willwhite has joined the channel [17:10] bradwright has joined the channel [17:10] avalanche123 has joined the channel [17:10] mmalecki: eldios: I once console.log'd whole core http.js to find out why websockets won't work in node-http-proxy [17:10] TheJH: brianc, hmm? node-inspector ftw :) [17:11] mmalecki: and printf'd half of ryah's http-parser [17:11] TheJH: mmalecki, huh? Isn't it nginx's parser? [17:11] adrianF has joined the channel [17:11] eldios: XD [17:11] niftylettuce has joined the channel [17:12] Poetro_ has joined the channel [17:12] boltR has joined the channel [17:12] mmalecki: TheJH: https://github.com/joyent/node/tree/master/deps [17:12] fzzzy has joined the channel [17:12] devongovett has joined the channel [17:12] GrizzLyCRO has joined the channel [17:13] TheJH: !@mmalecki git context joyent/node deps/http_parser/http_parser.c 2 [17:13] johnnywengluu has joined the channel [17:13] jhbot: mmalecki, 1 /* Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev [17:13] jhbot: mmalecki, 2 * [17:13] jhbot: mmalecki, 3 * Additional changes are licensed under the same terms as NGINX and [17:13] djMax: this is really confusing. Not sure why ejs just won't run on this file. [17:13] Mithgol has joined the channel [17:13] daleharvey has joined the channel [17:13] mmalecki: TheJH: yeah, it's likely. we often steal code, don't we? [17:13] TheJH: mwahaha :) [17:13] jxson has joined the channel [17:14] dilvie has joined the channel [17:14] brianc: TheJH: node-inspector ftw always [17:14] brianc: that thing is the bomb [17:14] brianc: did you write it? [17:14] lmatteis has joined the channel [17:14] TheJH: brianc, no :D [17:14] brianc: I was showing a coworker how 'cool' node is and he said 'well, how do you debug it?' and I showed him node-inspector [17:14] brianc: he's now learning node. ha [17:15] te-brian has joined the channel [17:15] mmalecki: yeah, it's sweet [17:15] mmalecki: I'm just not used to debugging in this way, really [17:15] sfoster has joined the channel [17:16] dezmaeth: brianc: wow, it's awesome! it worked! [17:16] robb1e_ has joined the channel [17:17] brianc: dezmaeth: what did? [17:17] dezmaeth: tmux [17:17] dezmaeth: so , now how do i return from disconnection? [17:17] brianc: dezmaeth: yeah tmux is the bomb. recommend reading up on it a bit. it will chaaaange yo liiiife [17:17] brianc: when you SSH back in [17:17] brianc: type 'tmux att' [17:17] dezmaeth: k perfect [17:17] brianc: for "tmux reattach to the last session" [17:17] herbySk has joined the channel [17:17] _dc has joined the channel [17:17] mattly has joined the channel [17:18] brianc: type 'Ctrl-T + c' for the best thing evar [17:18] dezmaeth: cool , there it is [17:18] brianc: or wait, Ctrl-a + c [17:18] dezmaeth: T plus C? [17:18] brianc: my escape char is different [17:18] salazr_ has joined the channel [17:18] brianc: control-lower-case-a and then lower-case-c [17:18] dezmaeth: a plus c [17:18] maletor has joined the channel [17:19] FMJaggy: i had a problem using the inspector with a script that hot reloads the server on file changes, does anyone have a setup for that? [17:19] dezmaeth: brianc: ok , it closed? [17:19] Mithgol: Hi everyone, I have a question. The https://github.com/rbranson/node-ffi engine provides an ability to call for an arbitrary C routine in any library, which is almost as awesome as js-ctypes for Firefox. Wrapper modules on JavaScript with zero C / C++ code. But there is no Windows port for node-ffi, or is there? I guess libffi was never Win32-ported. [17:19] CoverSlide: I doubt it would be [17:20] CoverSlide: i'm not sure if there are any windows ports for compiled modules yet [17:20] CoverSlide: or if that's even supported yet [17:22] joshkehn has left the channel [17:23] Mithgol: The whole system suddenly feels like Firefox. For two reasons. First, everything is javascriptable. Second, most of the platform's power resides in extension modules. [17:23] djMax: So I have an ejs file with contents: "<%=FOO%>" and nothing else. And it prints <%=FOO%>. WTF? [17:25] christophsturm has joined the channel [17:25] IrishGringo has joined the channel [17:25] rwasielewski has joined the channel [17:25] christophsturm: is there a way to turn off the The "sys" module is now called "util" warning? [17:25] CoverSlide: djMax: just a guess here, but maybe try putting spaces before and after FOO [17:25] MatthewS has joined the channel [17:26] djMax: it's something more insidious. If I render the view I use for a working controller, it also renders the code instead [17:26] seebees has left the channel [17:27] strmpnk has joined the channel [17:27] mike5w3c_ has joined the channel [17:27] djMax: gross gross gross. Express (or ejs) renders the code if you have a local called "open" [17:27] tjholowaychuk: ? [17:28] mmalecki: christophsturm: no [17:28] tjholowaychuk: ejs has an option for open / closing things [17:28] mmalecki: christophsturm: port your module/harass other authors [17:28] djMax: res.render('myview', {locals:{open:1}}); will render the code of myview [17:28] gregpascale has joined the channel [17:28] CoverSlide: christophsturm: change all 'sys' to 'util'. easy breezy. and tell the module author [17:28] tjholowaychuk: djMax res.render('foo', { open: '{{' }) with ejs is an option [17:28] laprice has joined the channel [17:28] garann has joined the channel [17:28] tjholowaychuk: and close [17:28] djMax: but in "locals"? [17:29] tjholowaychuk: locals: {} is legacy [17:29] bosphorus has joined the channel [17:30] hackband has joined the channel [17:30] stephank has joined the channel [17:30] christophsturm: i get it only for third party modules and it gets a bit annoying [17:31] jackbean has joined the channel [17:31] sechrist has joined the channel [17:32] eldios: ok .. code fixed --> http://pastebin.com/DbjrKkHk now problem is that msgObj['DATA'] is undefined O_o [17:32] eldios: if I check it at line 4 (before returning it) content is there.. [17:32] eignerchris has joined the channel [17:33] eldios: but outside the func, looks like nothing gets return-ed [17:33] eldios: *_* [17:33] eldios: sorry [17:33] eldios: I pasted the wrong version [17:33] eldios: gimme a second XD [17:33] CiRlE has joined the channel [17:34] echobucket has joined the channel [17:34] lauxley has joined the channel [17:34] githogori has joined the channel [17:34] stagas: tjholowaychuk: this thing with the local var names merging with other stuff break my apps! :P [17:34] johnnywengluu: isaacs: hey .. is it possible to have supervisor run "mocha" everytime the files changes? [17:35] dshaw_ has joined the channel [17:35] johnnywengluu: so I can trigger the tests when I save something [17:35] eldios: http://pastebin.com/budbCS9F [17:35] tjholowaychuk: stagas the .render() options? [17:35] stagas: tjholowaychuk: the most recent one was that I was using __() for i18n and you used __ in there in the new express [17:35] perezd has joined the channel [17:36] tjholowaychuk: hahaha [17:36] tjholowaychuk: i changed jade to use __ [17:36] tjholowaychuk: because people were using _() [17:36] johnnywengluu: tjholowaychuk: could watching file changes be integrated in mocha? [17:36] tjholowaychuk: there's no end [17:36] tjholowaychuk: johnnywengluu yeah [17:36] johnnywengluu: so tests are run when files are changed [17:36] CoverSlide: i use __, please use ___ [17:36] tjholowaychuk: the watcher thing in 0.6.x [17:36] tjholowaychuk: seems broken [17:36] CoverSlide: :p jk [17:36] johnnywengluu: ah [17:36] springmeyer has joined the channel [17:36] tjholowaychuk: stagas but yeah it's either that or res.render(view, null, { options }) [17:36] colinclark_ has joined the channel [17:36] johnnywengluu: I guess it will make its way to mocha sooner or later then [17:37] eldios: CoverSlide, any hint on why return does not return var content but leave it undefined? [17:38] gut4 has joined the channel [17:39] CoverSlide: odd [17:39] eldios: indeed [17:40] eldios: tjholowaychuk can you please give a 30 seconds read here --> http://pastebin.com/budbCS9F [17:40] eldios: var on line 4 does not return anything.. [17:40] eldios: if I check it there content is correct [17:40] tjholowaychuk: === 0, is it a string? [17:40] eldios: but if I check it outside the recursive function I get undefined [17:40] eldios: no [17:40] eldios: it's 0 [17:40] eldios: number 0 [17:40] eldios: inte [17:40] eldios: int [17:41] eldios: but that's not the problem.. I already changed it [17:41] Epeli has joined the channel [17:41] reid has joined the channel [17:42] anveo has left the channel [17:43] Swimming_Bird has joined the channel [17:43] petrjanda has joined the channel [17:44] tomlion has joined the channel [17:44] stagas: eldios: in 20 should you be doing return parseData... ? [17:44] SamuraiJack has joined the channel [17:44] Swimmin__ has joined the channel [17:47] Carter has joined the channel [17:47] eldios: lemme see [17:47] dshaw_ has joined the channel [17:48] CoverSlide: yeah you should be returning [17:48] eldios: stagas, no that's the recursive part [17:48] eldios: where? [17:48] CoverSlide: didn't notice that at first [17:48] eldios: at 20? [17:48] eldios: I am returning at 4 [17:48] CoverSlide: if you're recursing you need to return [17:48] CoverSlide: otherwise the first function will not return anything [17:48] eldios: the first function will call itself [17:49] CoverSlide: it will call itself but it doesn't retain the value to be returned to its caller [17:49] eldios: oh [17:49] eldios: mm [17:49] eldios: works now [17:49] eldios: thank you guys [17:49] eldios: didn't catch that concept =) [17:50] jimmysparkle has joined the channel [17:50] eldios: cya. thanks again \o/ [17:52] interrupt has joined the channel [17:52] GrizzLyCRO: is it normal that i do not see any .js file beside node/express native ones and my main app.js in node-inspector ? [17:53] diogogmt has joined the channel [17:53] eviltwin_ has joined the channel [17:53] eddyb: https://github.com/yui/yui3/blob/master/src/yui/README.nodejs.md [17:54] eddyb: what good is an UI lib [17:54] eddyb: inside node? [17:54] CoverSlide: probably works on jsdom [17:54] davidascher has joined the channel [17:55] tih-ra: Hey all! I finished the beta version of my module (alleup) Flexible way to resize and upload images to Amazon S3 or file system storages for Node.js (https://github.com/tih-ra/alleup). Is Possible to add different versions of the same image in cropped or resized variants. And now if there is willing to Contributors, you are welcome. I plan to add a upload not only image but other types of files with a prior processing on the se [17:55] tih-ra: rver. [17:55] tih-ra: Live test here: http://alleuptest.herokuapp.com/ [17:55] sfoster has joined the channel [17:55] ryan_stevens has joined the channel [17:55] scttnlsn has joined the channel [17:56] ecin_ has joined the channel [17:56] fuzzled has joined the channel [17:57] fuzzled: is there a way to stop this super aggressive error message from appearing? The "sys" module is now called "util". It should have a similar interface. [17:57] sh1mmer has joined the channel [17:57] hipsters_ has joined the channel [17:57] CoverSlide: edit the module [17:58] tjholowaychuk: fuzzled you're kinda forced to grep your deps to find them [17:58] CoverSlide: if it isn't yours, edit it anyway, and make a pull request [17:58] fuzzled: yeah :/ [17:59] christophsturm: yeah, and edit it again each time you run npm install :P [17:59] mmalecki: sys should be removed, really. [17:59] fuzzled: yeah +1 [17:59] mmalecki: christophsturm: there's this fork thing [17:59] tjholowaychuk: yeah I would rather have it break [17:59] tjholowaychuk: so we get a stack trace [17:59] tjholowaychuk: mmalecki++ [17:59] catb0t: mmalecki now has 1 beer [18:00] scttnlsn_ has joined the channel [18:00] stagas: or make a sys module that exports util :P [18:00] idanbeck has joined the channel [18:00] CoverSlide: or downgrade to 0.4.x [18:01] christophsturm: does it search node_path before it searches node_modules? [18:01] scttnlsn_ has joined the channel [18:01] fuzzled: ACTION forking away [18:01] maletor has joined the channel [18:02] aelien27 has joined the channel [18:04] patcito has joined the channel [18:04] jsurfer has joined the channel [18:05] Margle has joined the channel [18:05] boltR has joined the channel [18:06] airhorns has joined the channel [18:07] TooTallNate has joined the channel [18:09] JumpMast3r has joined the channel [18:10] appinsanity-mike has joined the channel [18:11] aelien27: can anyone offer any advice on debugging / inspecting a hanging spawned child_process? [18:12] TheJH: aelien27, is it a node process? [18:13] kickingvegas has joined the channel [18:13] aelien27: TheJH: no, it's actually an executable command-line ruby script [18:13] aelien27: i spit the command to stdout before running it, and the spat command runs fine in a login shell [18:13] aelien27: i don't know how to verify the environment in which node runs the command, though [18:14] jerrysv has joined the channel [18:14] dgathright has joined the channel [18:15] colinclark has joined the channel [18:16] __t has joined the channel [18:17] lazyshot has joined the channel [18:19] mcluskydodallas has joined the channel [18:20] jstash has joined the channel [18:22] CIA-109: node: 03Ben Noordhuis 07v0.6 * r5fea005 10/ lib/sys.js : sys: print stack trace if NODE_DEBUG=sys - http://git.io/UG6a7A [18:22] bnoordhuis: tjholowaychuk: ^ [18:22] tjholowaychuk: yay :D [18:23] idanbeck has joined the channel [18:24] simenbrekken has joined the channel [18:24] noazark has joined the channel [18:25] jbpros has joined the channel [18:27] mcluskydodallas has joined the channel [18:27] newb2 has joined the channel [18:27] newb2: Is express-on-railway the best scaffolding out there for express? [18:27] newb2: Anyone have any other recommend alternatives? [18:27] joshsmith has joined the channel [18:27] Marko has joined the channel [18:27] tjholowaychuk: "best" is kinda subjective [18:28] noazark: I've been wondering, what previous server-side techs have the node.js devs (you) come from? [18:28] newb2: well, at the moment it looks like the only option really. [18:28] newb2: that ive seen. [18:29] tjholowaychuk: there are more than a few [18:29] tjholowaychuk: at least like 10 [18:29] newb2: which is your favorite ? [18:29] tjholowaychuk: none [18:29] bnoordhuis: noazark: enterprise java! [18:29] newb2: fair enough. [18:29] tjholowaychuk: because I haven't tried any :) [18:29] pksunkara: newb2: github.com/pkumar/nodejs-starter [18:30] noazark: bnoordhuis: hot damn! [18:31] bnoordhuis: noazark: half kidding really, also wrote tons of c, c++, python, php, etc. [18:31] mattrobenolt has joined the channel [18:32] eee_c has joined the channel [18:32] mattrobenolt: Any way to debug the raw http.request? [18:32] mattrobenolt: I'm trying to POST some data, and none of the data is being written. THe request is made, but no data coming through. [18:33] N0va` has joined the channel [18:34] strmpnk has joined the channel [18:35] GrizzLyCRO: got node-inspector running :) [18:35] newb2: So I guess a better question, which scaffolding framework would people recommend for prototyping a simple admin ui? [18:35] insin has joined the channel [18:35] neshaug has joined the channel [18:36] GrizzLyCRO: ok, new question, is it normal that i cant see more than script with same name in node-inspector? [18:36] towski has joined the channel [18:36] mattrobenolt: Nevermind, got it. It had an issue with not specifying Content-Length and the default Transfer-Encoding. [18:37] flat has joined the channel [18:37] tomlion has joined the channel [18:37] CIA-109: node: 03eddy_me08@yahoo.com 07master * reda1538 10/ Makefile : [18:37] CIA-109: node: build: regenerate out/Makefile from within the main Makefile [18:37] CIA-109: node: Fixes #2147. - http://git.io/IlFV4A [18:37] CIA-109: node: 03Ben Noordhuis 07isolates * rd4f1972 10/ (src/node.cc src/node.h): core: isolate-ify (+6 more commits...) - http://git.io/n4mR9w [18:37] ohtogo has joined the channel [18:38] eddyb: my patch got trough :) [18:38] franciscallo has joined the channel [18:39] GrizzLyCRO has left the channel [18:39] GrizzLyCRO has joined the channel [18:40] `3rdEden has joined the channel [18:40] robotmay has joined the channel [18:42] gut4 has joined the channel [18:42] petrjanda has joined the channel [18:42] stantona has joined the channel [18:46] eldar has joined the channel [18:46] jbpros has joined the channel [18:46] raja has joined the channel [18:48] stagas has joined the channel [18:49] idanbeck has joined the channel [18:49] hackband has joined the channel [18:50] kitt has joined the channel [18:50] kitt has joined the channel [18:50] AvianFlu has joined the channel [18:52] liar has joined the channel [18:52] jxson has joined the channel [18:53] stantona has joined the channel [18:53] AvianFlu_ has joined the channel [18:54] jbpros has joined the channel [18:55] piscisaureus__ has joined the channel [18:55] stantona has joined the channel [18:55] shinuza has joined the channel [18:57] XOXO1 has joined the channel [18:57] makeInstallBot has joined the channel [18:58] smathy has joined the channel [18:59] ecin has joined the channel [18:59] stantona has joined the channel [19:00] pifantastic has joined the channel [19:00] tih-ra_ has joined the channel [19:01] CarterL has joined the channel [19:01] brianc: newb2: i don't know of any scaffolding framework [19:02] neilk_ has joined the channel [19:03] jelveh has joined the channel [19:04] trose has joined the channel [19:07] Me1000 has joined the channel [19:07] ryanj has joined the channel [19:07] mansoor-s: newb2, the only framework for node that does scaffolding is geddy [19:07] mansoor-s: *that i know of [19:08] harthur has joined the channel [19:08] willwh has joined the channel [19:08] tjholowaychuk: newb2 you could easily generate something based on mongoose or whatever you're using [19:09] boltR has joined the channel [19:10] bengrue has joined the channel [19:10] fuzzled has joined the channel [19:11] joshsmith has joined the channel [19:11] nphase has joined the channel [19:11] jxson_ has joined the channel [19:12] lzskiss has joined the channel [19:12] hipsters_ has joined the channel [19:12] joshsmith: anyone here using everyauth + mongooseauth? [19:12] louissmit has joined the channel [19:12] smathy has joined the channel [19:13] Kunda has joined the channel [19:13] dubenstein has joined the channel [19:13] xeodox has joined the channel [19:13] hij1nx has joined the channel [19:13] geekbri has joined the channel [19:14] franciscallo has joined the channel [19:14] lzskiss: yo [19:15] joshsmith: agh I see what my problem is [19:16] joshsmith: mongoose is v 1.0.16 for me for some reason [19:16] joshsmith: how do I install the latest? [19:16] fairwinds has joined the channel [19:16] joshsmith: ah there we go [19:16] joshsmith: @version [19:17] blissdev has joined the channel [19:17] saesh has joined the channel [19:17] chrisvwebdev has joined the channel [19:17] tablackmore has joined the channel [19:18] chrisvwebdev has left the channel [19:18] maushu has joined the channel [19:18] mcluskydodallas has joined the channel [19:19] dubenstein has joined the channel [19:19] fermion has joined the channel [19:20] strmpnk has joined the channel [19:20] strmpnk has joined the channel [19:21] brianc1 has joined the channel [19:21] tablackmore: Semicolons? Why are so many coders not using semicolons when coding js for node. [19:22] Raynos: Whats a good xml builder library for 0.6 ? [19:22] paulwe has joined the channel [19:22] tjholowaychuk: tablackmore it really doesn't matter [19:23] tjholowaychuk: just a preference for some [19:24] neurodrone has joined the channel [19:24] mcluskydodallas has joined the channel [19:24] stagas: tablackmore: less visual clutter [19:24] smgt has joined the channel [19:24] salva has left the channel [19:25] tablackmore: tjholowaychuk But the problems with auto semicolon insertion still exist even in the mighty node v8 world right? [19:25] tjholowaychuk: if you're lame and dont understand the grammar sure [19:25] tjholowaychuk: it's really not hard to figure out [19:25] tablackmore: OK I see [19:26] tablackmore: No just wondering as I'm teaching to javascript newbs at the moment [19:26] stantona has joined the channel [19:29] chilts: tablackmore: I'd suggest my one :) http://search.npmjs.org/#/data2xml [19:29] chilts: though it's less of a builder, more of a straight conversion [19:29] chilts: ACTION didn't like the others [19:30] chilts: Raynos: oopse, that was for you :) ^^^ [19:30] Raynos: does it work on 0.6 :D [19:30] joshsmith has joined the channel [19:30] chilts: works fine with what I've used it for so far [19:31] mikeal has joined the channel [19:31] smathy has joined the channel [19:31] mcluskydodallas has joined the channel [19:31] jacobolu_ has joined the channel [19:32] Wizek has joined the channel [19:32] jomoho has joined the channel [19:33] teknopaul: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [19:33] makeInstallBot: teknopaul: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [19:34] teknopaul: cheers makeInstallBot [19:34] muszek has joined the channel [19:34] mmalecki: makeInstallBot++ [19:35] mmalecki: (it's mine, btw) [19:36] r1ngzer0 has joined the channel [19:36] teknopaul: i rate irc more and more every day :) [19:36] maboo has left the channel [19:37] willwh: teknopaul: irc is oldschool and winning :p [19:37] willwh: all these hipster kids that have no idea it exists ;D [19:37] teknopaul: :) [19:37] teknopaul: another great Finnish invention, i hear [19:38] muszek: hi... newbie question. I want to use Stylus (https://github.com/LearnBoost/stylus). When I install it with nmp, do I do it as root and it's installed system-wide? or do I install it as a regular user? where does it go then? [19:38] GrizzLyCRO: you need root if you install with -g (global) [19:38] muszek: GrizzLyCRO: should I? [19:38] GrizzLyCRO: if you install normally, you install in current folder(at least i think so, i am newbie too) [19:38] GrizzLyCRO: i have no idea [19:39] muszek: ok, I'll try locally first [19:39] muszek: thanks [19:39] tablackmore has joined the channel [19:39] tjholowaychuk: muszek -g if you want the stylus executable [19:39] tjholowaychuk: or local to your app if you want to use the middleware etc [19:39] GrizzLyCRO: np, sorry if i misinformed you, i spent less than 5 hours with node :) [19:40] MatthewS has joined the channel [19:40] muszek: tjholowaychuk: thanks [19:40] mange has joined the channel [19:42] mdel_ has joined the channel [19:42] mdel_: hey all.. anyone try to install node on medaitemple gs? [19:43] mikeal has joined the channel [19:44] jesster7 has joined the channel [19:44] martin_sunset has joined the channel [19:44] jesster7 has left the channel [19:45] ben_alman has joined the channel [19:45] jesusabdullah: What's a mediatemple gs? [19:45] tomh has joined the channel [19:46] mdel_: grid-service hosting plan [19:46] mdel_: fairly minimal... im getting an error installing 0.4.12 with nvm [19:46] mdel_: Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} [19:47] zeade has joined the channel [19:47] salva has joined the channel [19:48] stantona has joined the channel [19:49] aioue has joined the channel [19:49] sechrist has joined the channel [19:51] rachet: netsplit? [19:52] npa has joined the channel [19:52] mmalecki: irccloud having some problems [19:52] mmalecki: I can imagine few devs shitting their pants right now [19:52] pauls1: node cloudfiles question… would anyone happen to know why i'm getting "Invalid protocol" on a bucket creation? api key there, "client.authorized" gets set to true after setAuth()., host is set to the UK server.. any ideas? [19:53] ben_alman_ has joined the channel [19:54] liar has joined the channel [19:55] stantona has joined the channel [19:55] TheDeveloper has joined the channel [19:55] lzskiss has joined the channel [19:55] eeemsi: just a little question -> i want to see things others wrote via console.log() in http://pastebin.com/B4QsGgeV .how do i do that [19:56] stantona has joined the channel [19:57] ljackson: eeemsi whats not printing that you wish to see? [19:57] ben_alman_ has joined the channel [19:57] fatjonny has joined the channel [19:57] bradleyg has joined the channel [19:58] eeemsi: if someone connects via telnet the person can write whatever the person would like to. i want to see that if i write node ugly_chat.js [19:59] jondot has joined the channel [19:59] ljackson: so you wish to see the value from on('data' event appears you already have console.log(d) there on line 13 ? [19:59] samstefan_ has joined the channel [20:00] jondot: hi guys. i was reading some node.js projects' code, and i notice many projects shell out. for example to remove a file many projects exec 'rm'. or call some binary to achieve a certain functionality that I typically see within a language's stdlib. why is that? [20:00] ljackson: eeemsi tho you prob don't want it in your loop to see it n-1 socket times [20:00] eeemsi: ljackson: the problem is that that prints instead of asdf [20:01] ljackson: eeemsi Buffer object has a toString method just call that [20:01] Fabryz has joined the channel [20:02] ljackson: eeemsi but I would move the console.log outside of the for loop and add who sent the data :P [20:02] zorzar has joined the channel [20:02] mansoor-s has joined the channel [20:03] jeremyselier has joined the channel [20:03] eeemsi: ljackson: thats the next step ;) [20:03] robi42 has joined the channel [20:03] owenb has joined the channel [20:03] jyp has joined the channel [20:04] metadaddy has joined the channel [20:04] salazr_ has joined the channel [20:04] jondot: anyone? [20:04] jldbasa has joined the channel [20:04] grampajoe has joined the channel [20:05] benlyng has joined the channel [20:05] lyte has joined the channel [20:05] lyte has joined the channel [20:05] vervain has joined the channel [20:07] ljackson: jondot maybe they are unaware that the node.js fs library is async ? [20:07] tiglionabbit has joined the channel [20:07] iaincarsberg has joined the channel [20:07] jimmysparkle has joined the channel [20:08] strax has joined the channel [20:08] Samane has joined the channel [20:08] Samane: Hello, [20:08] Samane: I've found an really interesting game named e-Sim. There you can be a soldier, politic, journalist, or businesman. Furthermore, you can play for your own country!! [20:08] Samane: There is my reflink (sorry about that, but if you use my reflink you'll get additional 2 gold): [20:08] Samane: http://e-sim.org/lan.25797/ [20:08] Samane: I want to hear what do you think about this game! [20:08] Samane: P.S. It's free [20:08] innociv_: " Object function EventEmitter() { } has no method 'setMaxListeners'" from "require('events').EventEmitter.setMaxListeners(50);" [20:08] innociv_: What. [20:08] beawesomeinstead has joined the channel [20:08] innociv_: Same with require('events').setMaxListeners(50); [20:09] insin has joined the channel [20:09] eeemsi: ljackson: another idea? [20:09] ljackson: innociv_, you want to change the global max listeners ? or on a instance of an object that inherits from EventEmitter ? [20:09] innociv_: Global max listeners [20:09] ljackson: eeemsi what ya got [20:10] ljackson: innociv_, you look at node.js library source ? what version you working on [20:11] jondot: ljackson: i just thought maybe this is the way to do things and stay out of the event loop [20:11] ljackson: jondot, the fs module is async so as long as you have a callback it won't effect the event loop [20:11] chapel: innociv_: as far as I can tell, setMaxListeners is only for an instance of EE [20:12] jondot: ljackson: can i show you the chunk of code i was reading? [20:12] ljackson: innociv_, that is what it is EventEmitter.prototype.setMaxListeners = function(n) { [20:12] ljackson: jondot sure whats the PB [20:12] sriley has joined the channel [20:13] mc_greeny has joined the channel [20:13] johnnywengluu has joined the channel [20:13] jondot: https://github.com/dawanda/node-imageable/blob/master/lib/image-magick.js [20:13] jondot: ^^ ljackson [20:13] eeemsi: ljackson: now it prints everything with a new line - i wanted to have some fun with ascii art ^^ [20:13] jondot: looks like he downloaded files using curl, rm'd a bit and 'mkdir'ed a bit aswell. [20:13] ljackson: eeemsi, lol really? [20:13] garrensmith has joined the channel [20:14] jondot: i accept that imagemagick is done using shell exec. i've seen this many times also in ruby. [20:14] eeemsi: its just for fun ;) [20:14] braoru has joined the channel [20:15] djbell has joined the channel [20:15] ljackson: jondot, yeah since he is shelling out to the imagemagick library rather than using a native binding the author just used the same shell wrappers rather than the fs module [20:15] lzskiss has joined the channel [20:15] innociv_: ljackson, 0.6.something [20:15] __t has joined the channel [20:16] ljackson: jondot more like what is your use case and deps, but as a general rule use the fs module for file manip rather than a shell command :) [20:16] truedat101 has joined the channel [20:16] koo2 has joined the channel [20:16] innociv_: I don't really get it. I'm looking at http://nodejs.org/docs/v0.6.1/api/events.html#emitter.setMaxListeners [20:16] ljackson: innociv_, yeah must change it on the instance of the object with EE [20:16] jondot: ljackson: i'm going to re-implement this with a subset of the functionality (because its not maintained so much). do you think i should shell out or should have this be done with stdlib? [20:16] innociv_: EE? [20:16] ljackson: innociv_, EventEmitter [20:17] Doidel__ has joined the channel [20:17] innociv_: What is emitter.setMaxListeners() for then? [20:17] ljackson: jondot I would do everything possible with the nodejs stdlib, include the network io or anything else [20:17] ambroff has joined the channel [20:17] innociv_: If not to actually set the max listeners. [20:17] innociv_: globally. [20:17] jondot: ok, cool. [20:17] jmeed has joined the channel [20:17] ljackson: innociv_, well it is EventEmitter.prototype.setMaxListeners = function(n) { [20:18] innociv_: What would be in the function?... [20:18] ljackson: innociv_, which means it is a method of an instance with that prototype and not a static method [20:18] JasonSmith has joined the channel [20:18] ljackson: innociv_, see the source for how it works it clearly shows that it is setting this._maxListeners = n; which would require an instance to have "this" [20:18] dnyy has joined the channel [20:18] innociv_: I'm confused. Why is there a doc on this that says that you can instance emitter and set that function to increase the max emitters, but it doesn't actually increase the max emitters? [20:19] ljackson: innociv_, it does [20:19] ljackson: innociv_, but only on the new object that extends or is an EventEmitter [20:19] Doidel__: Hello guys. What's that: Same websites, two domains (dev and live server) but always the same nodejs server. When I establish a connection from the dev server I can emit and receive messages. Doing that with the live server website (but with same socket.io stuff) I get a connection & heartbeats, but I can't emit data. What could that be? [20:19] ljackson: Doidel__, firewall ? [20:20] Doidel__: same nodejs server. same client [20:20] mattrobenolt has left the channel [20:20] Doidel__: => no [20:20] ljackson: Doidel__, well HB would clear a FW true... [20:20] Doidel__: it's actually everything the same, just that I call the socket.emit from another domain [20:20] ljackson: Doidel__, oh! [20:20] ljackson: Doidel__, you allowing for crossdomain javascript ? [20:20] Doidel__: but from that other domain I can connect and send and receive heartbeats [20:21] Doidel__: the dev server already is another domain, so: yes. [20:21] Doidel__: and I also use the same port [20:21] Doidel__: as said, it's all the same... [20:21] ljackson: Doidel__, I forget where but depending on what your browser is negotiating it could be a flash policy [20:21] blissdev has joined the channel [20:21] Doidel__: I tried with 4 different browsers. It's everywhere the same [20:22] niftylettuce has joined the channel [20:22] jondot: any idea why imagemagick doesn't have native node.js bindings? is it because its leaky? is there anything else anyone prefers? [20:23] ljackson: Doidel__, you sure the event is being emitted over socket.io ? that is try a tcpdump/wireshark ? [20:23] tih-ra has joined the channel [20:23] zomg: btw has anyone tried socket.io based sites on the iOS browser? [20:24] Doidel__: it's not. well, I directly call socket.emit() e.g. with firebug, that seems to work. I get no error. But the server debug logs show me that nothing was received [20:24] whoops has joined the channel [20:24] Doidel__: except the heartbeats [20:24] trose has joined the channel [20:24] zomg: I recently tried it but it seemed to not work, could've been some other issue though since I didn't look into it that much [20:24] ljackson: jondot, mostly i would guess because the lib is not fun to work with the API can be hell and nodejs is mostly if not all c++ so the wrapper would spend a lot of time dealing with the c layer, tho long time since I looked at IM [20:25] ljackson: Doidel__, well only think I can say is pastebin something we can look at cause it sounds like a subtle bug :P [20:25] raincole has joined the channel [20:25] Doidel__: ok [20:25] Doidel__: will do [20:25] ljackson: Doidel__, you sure your listing to the exact event name on the server side ? no typos or side effects of dev vs prod in event name...etc.? [20:26] Doidel__: 1:1 copy [20:26] neurodrone has joined the channel [20:26] Doidel__: it's really copy, paste :) [20:26] Doidel__: I'll make a pastebin [20:26] jondot: ljackson: i'm also wondering. how acceptable is this when the web process spawns such shell processes to do its work? i've seen it on various problems, but since i'm relatively new to this stack i don't have a good intuition. it feels dirty [20:26] Doidel__: but thanks already for your assistance [20:26] ljackson: Doidel__, humm well lets see what it looks like I guess, copy and paste can be the death of code [20:27] ljackson: jondot, it is the Unix way (tm) but yeah not really the node.js way i guess like anything I guess don't abuse shell processes for both security and sanity [20:28] lmatteis has joined the channel [20:28] jondot: i understand [20:28] liar has joined the channel [20:28] robb1e_ has joined the channel [20:29] remysharp has joined the channel [20:30] lzskiss has joined the channel [20:31] eeemsi: ljackson: thx again ^^ [20:31] jondot: ljackson: some more of shelling out here: http://www.hacksparrow.com/using-node-js-to-download-files.html --why?? [20:31] Doidel__: ljackson: http://pastebin.com/HYgA6kXs [20:31] Doidel__: tell me if you need more info [20:32] pifantastic has joined the channel [20:32] Cromulent has joined the channel [20:32] salva has joined the channel [20:32] Doidel__: (or you want direct access to the site where you can test it yourself) [20:33] ljackson: eeemsi no prob [20:34] ljackson: Doidel__, what code is listing on the server for the 'setdata' and 'areachange' events ? [20:34] synkro has joined the channel [20:34] salva has left the channel [20:34] Kunda has joined the channel [20:34] Doidel__: I can paste it in a minute... but as said, it all works with the dev website/domain. [20:35] clithe has joined the channel [20:35] ljackson: Doidel__, also it looks like your emitting before you get a connection I bet it is being sent but lost, so the dev site has less connect latancy than the prod site and causes this [20:35] Doidel__: might be, but then he should still notify me (in debug) that he got a message when I send one manually [20:36] ljackson: Doidel__, unless it jacks up the connection try changing it to map_hero_movesocket.on('connect', function(){ ... your emits [20:37] Doidel__: http://pastebin.com/ahTXBJyB [20:37] Doidel__: ok I'll try [20:37] mdel_: what about dreamhostps... can I listen on a port there? [20:38] tellnes has left the channel [20:38] tanepiper has joined the channel [20:38] ljackson: jondot, humm looks like it is just how to do it 3 diffrent ways, again depends on your use case... if you were going to be downloading 3G iso's I think I would use exec and curl also, :) [20:38] xcoderzach has joined the channel [20:39] necromancer has joined the channel [20:40] Doidel__: ljackson: Did it. Nothing changed, but it doesn't hurt either so I'll just leave it... ^^ [20:40] matjas has joined the channel [20:40] xcoderzach has joined the channel [20:40] xcoderzach has joined the channel [20:40] ljackson: Doidel__, k seems odd, you say this works as expected in dev but not prod using the same node.js instance ? [20:40] jtsnow has joined the channel [20:41] Doidel__: yes [20:41] Doidel__: exactly [20:41] dubenstein has joined the channel [20:41] ljackson: Doidel__, so what is the variables on dev vs prod ? [20:42] Doidel__: well, I checked the socket so far. it's the same. And as said, the connection gets established and heartbeats are shared. [20:42] mansoor-s has joined the channel [20:42] Doidel__: Do you have a specific var in mind? [20:42] piscisaureus_ has joined the channel [20:42] ljackson: Doidel__, same browser, same tcp, same http server, same proxy/lb ...etc ? environmental variables [20:43] Doidel__: ah. yes :) it's exactly the same. [20:43] Doidel__: same pc i.e. same client. [20:43] Doidel__: same node.js instance. [20:43] ljackson: Doidel__, what makes it dev vs prod then ? [20:44] k1ttty has joined the channel [20:44] Doidel__: well, the website (which sends the emit) is not the same. [20:44] Doidel__: well it is the same, just coming from another server. [20:44] ljackson: another domain on the same server or a diff server ? [20:45] Doidel__: uhm ^^ how can I explain... Website a) is the same like b). a) uses the node.js server. b) (which is the same as a) ) uses the node.js server too. Both do the same. Both use the same node.js server. [20:45] Doidel__: different server [20:45] JasonJS has joined the channel [20:45] jxson has joined the channel [20:46] ljackson: Doidel__, do you load socket.io.js from the same domain each time ? [20:46] Doidel__: yes [20:46] Doidel__: Do you want access to the non-working live server? ^^ [20:46] Doidel__: I have a test account [20:46] jellosea: is there some way to list the open connections that node has? [20:46] ljackson: Doidel__, well I guess that is about all we can do eh ? [20:47] Doidel__: ^^ [20:47] djcoin has joined the channel [20:47] ljackson: jellosea, if you are on a flavor of unix checkout the process's /proc//fd directory [20:47] chia has joined the channel [20:48] eddyb: yeeeee - c9 has now node native module support [20:48] ljackson: jellosea, if you know the port you can use ss or netstat on a unix variant also [20:49] boltR has joined the channel [20:49] piscisaureus_ has joined the channel [20:50] Doidel__: ljackson: I wrote you a pm [20:50] ixti has joined the channel [20:50] jondot: anyone knows where temporaryfile moved to? [20:51] jondot: i've looking at a slideshow that uses fs.openTempoararyFile [20:51] __t1 has joined the channel [20:51] smathy has joined the channel [20:52] JasonJS has joined the channel [20:53] ljackson: jondot, i don't know for sure but I bet openTemp is a open get fd then unlink type thing so you won't see the file on disk, but code has a ref to it [20:53] jondot: i didn't find openTemp.. where is it supposed to be? [20:53] robertothais has joined the channel [20:54] StanlySoManly has joined the channel [20:55] orangevinz has joined the channel [20:55] McMAGIC--Copy has joined the channel [20:55] Destos has joined the channel [20:57] koo2 has joined the channel [20:57] tdegrunt has joined the channel [20:58] orangevinz has left the channel [20:58] orangevinz has joined the channel [20:58] dscape has joined the channel [20:59] zivester has joined the channel [21:01] mcluskydodallas has joined the channel [21:04] raphdg has joined the channel [21:04] nrdb has joined the channel [21:05] dantalizing has joined the channel [21:05] lohengreen has joined the channel [21:05] mehtryx has joined the channel [21:07] nrdb: just built version 0.6.3 when I run 'make test' it says "[01:06|% 100|+ 298|- 2]: Done " which I presume means that two test failed... is this correct? .... is there anything I can do about it? [21:07] pifantastic has joined the channel [21:07] orangevinz has left the channel [21:07] orangevinz has joined the channel [21:08] postwait has joined the channel [21:09] ljackson: jondot, looks like they extented fs or that is old method not in 0.6.x [21:10] churp has joined the channel [21:10] jbpros has joined the channel [21:12] ljackson: Doidel__, fyi I have had problems with nodejs and socket.io past about 8k conncurent, would be a good problem to have with your game but still something to keep in mind.... [21:12] fzzzy has joined the channel [21:12] Doidel__: ok, thanks for the hint :) [21:13] Doidel__: you added another server? [21:13] orangevinz: quelqu'un parle francais pour une question svp ? [21:13] stantona has joined the channel [21:13] spcshpopr8r has joined the channel [21:14] ljackson: Doidel__, well no ditched socket.io and went with custom protocol over 443 but node.js socket.io still for portal interactions.... But still use socket.io for other projects...etc. Thx Btw re-email :P [21:15] smathy has joined the channel [21:15] ryanfitz has joined the channel [21:15] Doidel__: oh... wow, I hope I don't have to do that oO [21:15] Doidel__: np ^^ [21:16] Doidel__: oh yeah, everything running fine and smoothly now :D ace! [21:16] ljackson: Doidel__, would use the cluster module but it doesn't play well with socket.io yet.... and I didn't have time for it [21:17] `3rdEden: ^ RedisStore backend solves that [21:17] ljackson: Doidel__, cluster is bad ass tho as it spwans n-1 node's for number of cores [21:17] Doidel__: hmm ok... well, might take a while until I reach 8000 anyway ^^ [21:17] benlyng has joined the channel [21:17] koo2 has joined the channel [21:17] Doidel__: ah oO hmm [21:17] ljackson: `3rdEden, solves what scaling past 8k ? [21:17] stantona_ has joined the channel [21:17] `3rdEden: multiple servers / process issues [21:17] mraleph has joined the channel [21:18] ljackson: `3rdEden, no it falls over from what I have found so far :P [21:18] ljackson: `3rdEden, at the scales I needed at least [21:18] devaholic has joined the channel [21:19] gr-eg has joined the channel [21:19] ljackson: `3rdEden, also the auth code in socket.io doesn't have a hook into a distributed store like redis yet so it isn't quite the fix for this issue [21:19] mrtazz has left the channel [21:19] hij1nx has joined the channel [21:20] Raynos has joined the channel [21:20] Raynos: chilts: a few questions [21:20] pimetrai has joined the channel [21:20] Raynos: How does data2xml output an xml node? [21:21] havenn has joined the channel [21:21] teknopaul: all: any recommendations for a logging module? [21:21] koo3 has joined the channel [21:22] Raynos: node server > file [21:22] tjholowaychuk: Raynos++ [21:22] catb0t: Raynos now has 1 beer [21:23] jbpros has joined the channel [21:23] teknopaul: I headrd it said that error logging is syncronous while console.log() is not is that still the case [21:24] teknopaul: I kinda want to be able to turn on and off debug as a minimum [21:24] smathy has joined the channel [21:24] TheJH: teknopaul, use the comment-based switch [21:24] teknopaul: ?? [21:24] tilgovi has joined the channel [21:24] tilgovi has joined the channel [21:26] Raynos: Anyone want to recommend good xml build for node.js [21:26] TheJH: teknopaul, if I remember correctly: https://gist.github.com/1406582 [21:26] TheJH: someone showed me that one many years ago :) [21:26] context: wth [21:27] MrNibbles has joined the channel [21:27] context: var DEBUG = 0; // replace with a 1 for debug; [21:27] TheJH: context, naaah, too easy :D [21:27] context: i no rite [21:27] teknopaul: hmmm [21:27] lazyshot has joined the channel [21:27] TheJH: context, also, this allows you to enable/disable whole blocks of code :) [21:27] context: createServer() and give the server 10 seconds to telnet to that ip/port to enable debug mode [21:27] tjholowaychuk: teknopaul https://github.com/visionmedia/debug [21:28] teknopaul: I could grep the JS fiels and put // on the front too :) [21:28] TheJH: context, do you know this one for stressing that there's a negation? :D !!!!! [21:28] orangevinz: Anyone can tell me if there is a limit of users for socket.io, or if it just depends of the sever ? And how much users you ever handled ? [21:28] context: thejh: huh? well.. do you want debug mode or to comment blocks of code [21:28] TheJH: orangevinz, if nobody here knows, ask in #socket.io [21:29] TheJH: context, nah, I was just looking for an opportunity for a WTF [21:29] context: heh [21:29] teknopaul: tjholowaychuk: that looks like the sort of thing I'm loking for [21:29] teknopaul: cheers [21:29] ljackson: orangevinz, just was talking about that.... in my testing with socket.io ws:// only I could do around 8k with 2Ghz core [21:30] tjholowaychuk: teknopaul in our lib we use // debug: foo bar %s, baz [21:30] tjholowaychuk: etc [21:30] tjholowaychuk: but [21:30] vguerra has joined the channel [21:30] tjholowaychuk: when you can execute an empty function millions of times per second [21:30] TheJH: context, I remembver someone asking me how to jump in his code. "well, sure, you need a do{}while(false) loop and a 'break' statement" :D [21:30] tjholowaychuk: it's not really a big deal [21:30] TheJH: (and yes, I know, only works forward [21:31] TheJH: ) [21:31] context: thejh: yeah, but at that point they should probably reconsider rewriting some stuff [21:31] lzskiss: hey [21:31] context: who needs functions! i use goto: in all my C code [21:31] context: kk time to head out [21:31] lzskiss: what do u think how mouch stable the 0.6 on the windows? [21:31] strmpnk has joined the channel [21:32] TheJH: context, yes, I know. I was only feeling that I could say that because there were two other people who'd correct me anyway :D [21:32] context: heh [21:32] lzskiss: i would like to show a presentation wtih the node.js and the customer wanna see on win [21:32] lzskiss: anybody using node.js on win? [21:33] slifty has joined the channel [21:33] Lingerance: Me [21:34] Renegade001 has joined the channel [21:34] CoverSlide: anyone using it for serious work and not just playing around with it? [21:34] cryptix_ has joined the channel [21:35] Lingerance: On Windows? [21:35] lzskiss: every experience interesting for me [21:36] cjm has joined the channel [21:36] jsurfer_ has joined the channel [21:36] ryanrolds_w has joined the channel [21:37] bingomanatee_: CoverSlide: a fair number of mobile developers rely on it to handle SS operations [21:37] lzskiss: on windows [21:37] jsurfer__ has joined the channel [21:37] bingomanatee_: Anyone who wants to run server side code on Windows should be avoided. They are liable to make other worse decisions later on. [21:37] WarheadsSE: lzskiss, what about windows? [21:38] WarheadsSE: bingomanatee_, careful with such borad statements [21:38] bingomanatee_: Is anybody doing serious Ruby development on Windows? [21:38] bingomanatee_: Or PHP? [21:38] WarheadsSE: ruby? wtf, crap. [21:38] bingomanatee_: Or Python? [21:38] WarheadsSE: if you are using python for web pages you need shot. [21:38] WarheadsSE: >:) [21:38] CoverSlide: well i know some people who use php on windows [21:38] benvie: to be fair, node actualls performs well on Windows while those generally don't [21:38] josh-k has joined the channel [21:38] joshsmith: how do I hardcode the NODE_ENV variable locally? [21:39] lzskiss: more compaines using win2008 R2 in intranet [21:39] joshsmith: rather than passing it in each time I run the app [21:39] CoverSlide: maybe a little java [21:39] WarheadsSE: benvie, actually, I load tested a GNTP server on windows, with 50 clients sending messages, @ 1 second, offset intervals [21:39] CoverSlide: but mostly on windows it's .net or nothing [21:39] WarheadsSE: used about 5% cpu on a C2D 3.0 Win7 [21:40] bingomanatee_: Environment variables are environmental. You don't screw with them locally - but you can alter the code that relies on them. [21:40] benvie: yeah that's another thing. If you're using Windows in that capacity it's usually part and parcel with the .net buyin [21:40] lzskiss: nice performance [21:40] sriley: er why would you think that python isnt good for web pages...? [21:40] WarheadsSE: Im just being an ass. [21:40] bingomanatee_: "WarheadsSE: if you are using python for web pages you need shot." -- is this the guy who warned me against broad generalizations? [21:41] WarheadsSE: I personally dont like python because it makes people lazy. [21:41] bingomanatee_: Why yes it is! [21:41] lzskiss: i dont wanna using win2008R2 but cutomers wants:) [21:41] lzskiss: ergo i will be show the node.js can run fast on win:D [21:41] lzskiss: if possible [21:41] lzskiss: :D [21:41] Dulak: bingomanatee_: What? env vars are there precisely so you can control code execution without touching the code itself [21:41] benvie: the first big thing for Windows was a way to make it work with IIS [21:41] benvie: so that's the target generally [21:41] chrisvwebdev has joined the channel [21:41] joshsmith: I mean I call `NODE_ENV=development node app.js` on the command line [21:41] WarheadsSE: lzskiss, yes it runs pretty well, the only concern atm is binary-link bits [21:42] CoverSlide: noone's arguing windows can't handle node, it's just that with windows you give up a lot of the nice modularity of unix and get tons of overhead that has nothing to do with your project unless it runs on iis [21:42] bingomanatee_: you can set env variables on the command line - that is basic bash. [21:42] joshsmith: I want to be able to just call `node app.js` and have the NODE_ENV automaticaly set to dev [21:42] WarheadsSE: benvie, wasn't there a specific node & iss project? [21:42] CoverSlide: process.env.NODE_ENV = 'development' [21:42] GrizzLyCRO: WarheadsSE: any reason why you believe python is bad for web dev? [21:42] benvie: yeah that's what I mean [21:42] truedat101 has joined the channel [21:42] CoverSlide: there is a node + iss project [21:43] WarheadsSE: Again GrizzLyCRO I was just being an ass, to piss [21:43] benvie: an IIS module for integrating with Node was the first Windows thing to come into existence [21:43] CoverSlide: it works farily well too [21:43] stantona has joined the channel [21:43] tjholowaychuk: chuck NODE_ENV in a startup script [21:43] sriley: joshsmith: why not put that in your bash profile then? [21:43] tjholowaychuk: easy as pie [21:43] GrizzLyCRO: ah lol, ok :) [21:43] bingomanatee_: Also a significant amount of the modules that have been developed for node exploit unix so where you can ghet the root language running, you are kind of being short sighted in that you are limiting some of your ability to exploit the source code of the modules that are built on node. [21:43] joshsmith: sriley: ah, duh [21:43] jskulski has joined the channel [21:43] dust-- has joined the channel [21:43] WarheadsSE: I can code in way too many languages, and personally don't like python, because it makes peple all too often lazy [21:43] lzskiss: hmm [21:43] bingomanatee_: As well as the likelihood that everyone on IRC will make fun of you every time you ask a question -- and won't have the background to help you. [21:43] chrisvwebdev has left the channel [21:43] lzskiss: modules is important thing yep [21:43] torm3nt has joined the channel [21:44] benvie: I will say that at this point most of the native modules that I've had to use were either already ported to windows or it was as simple as compiling them using the windows path [21:44] sriley: not sure what you mean by lazy [21:44] CoverSlide: i don't see how python makes people lazy [21:44] lzskiss: batteries included:D [21:44] bingomanatee_: DjanD'oh! [21:44] benvie: and that'll get better when the route to compiling on windows is built out with gyp [21:44] sriley: theres nothing wrong with using a framework to build a site [21:45] WarheadsSE: CoverSlide, I can't back up that statement, just an observation really of people i know/have met that know python, and can't pick up any other language for crap [21:45] Hamms has joined the channel [21:45] sriley: you can say that about most languages [21:45] joshsmith_ has joined the channel [21:46] WarheadsSE: If you brain is stuck in one language, and not able to make use of meta-programming/algorithms, you weren't taugh right in the first place I guess [21:46] bartt has joined the channel [21:46] lazyshot_ has joined the channel [21:46] WarheadsSE: ACTION points at Perl, once you get past the fear factor [21:46] orangevinz has left the channel [21:46] WarheadsSE: ACTION is notably also a Perl Monger. [21:46] badlearner1 has joined the channel [21:47] sriley: i doubt its that they cant write any other, language, just that theyve not had the need [21:47] lazyshot_ has joined the channel [21:47] WarheadsSE: no... most honeslty cant [21:47] WarheadsSE: tool for the job and all that. [21:47] CoverSlide: it's not that far a leap to go from python to ruby [21:47] badlearner1: Hello, Is starting out to build a photo/video sharing site on Javascript/node.js a good idea 'versus' Python/Django? [21:48] sriley: but also generalisations like that also include java devs only know how to over engineer, php is all written by kids, etc [21:49] WarheadsSE: lol [21:49] WarheadsSE: sriley, I've written in all of them, and php can be good and bad, java can be clean yet robust, as for the kids.. yeah..... [21:49] benvie: I think that Java one is true though ;)' [21:50] benvie: http://codegolf.stackexchange.com/questions/3994/write-a-code-golf-problem-in-which-java-wins [21:50] CoverSlide: java itself can't be anything but over-engineered [21:50] benvie: makes me laugh heartily [21:50] CoverSlide: too verbose [21:51] tlynn has joined the channel [21:51] sriley: well its not java unless you only have 1 method per class, per file, per directory, and that class must implement 5 design patterns ;) [21:51] badlearner1: Hello, is starting out to build a photo/video sharing site on Javascript/node.js a good idea 'versus' Python/Django? [21:52] WarheadsSE: badlearner1, if you plan on having the sharing site actually host the videos, don't host them from within node.js. [21:52] WarheadsSE: It can, but was not meant for that. [21:53] badlearner1: WarheadsSE: I can have the videos served from a separate Nginx or lighttpd server. [21:54] truedat101 has joined the channel [21:54] vervain: badlearner1... if your comparison is currently nodejs vs django... then I'm going to assume you are not super framework savey... so I'd point you at Django... been around longer... more tools... decent community. [21:54] badlearner1: I am worried about performance [21:54] xing has joined the channel [21:54] sriley: personally im waiting for node to get some more robust frameworks before writing a site in node [21:54] benvie: then you have come to the right place [21:54] joshgillies has joined the channel [21:54] badlearner1: I heard node.js is great versus Django and Rails [21:54] CoverSlide: then you must write it in C [21:55] badlearner1: C takes too much time in development [21:55] benvie: or write it in C, that also [21:55] vervain: Ya... not to mention... pre-optimization being the root of all evil. ;-) [21:55] sriley: performance isnt a problem in almost any language, how you write the code however is [21:55] WarheadsSE: screw C! best performance.... ASM! [21:55] Dmitrijus: ;]]]] [21:55] badlearner1: + if I have to learn javascript anyway for the front-end stuff... so... [21:55] benvie: that's a large benefit [21:55] Dmitrijus: WarheadsSE: actually, i would consider C faster than, well, ASM [21:55] vervain: Screw ASM... build a proprietary processor... you could prototype in FPGA if you have to. [21:55] vervain: :-) [21:55] sriley: for example youtube is python [21:56] WarheadsSE: Dmitrijus, that deponds on the optimizations, and proper use of compiler flags, as ... .. ... [21:56] benvie: not everything is portable between front and back end, but the language knowledge is, and a lot of stuff works on both out of the box [21:56] Dmitrijus: vervain: been there, done that :) [21:56] WarheadsSE: hmm, yes, vervain : http://www.picocomputing.com/ [21:56] benvie: I'm a personal fan of LOLCODE for the hard tasks [21:57] badlearner1: I know that YouTube and Picasa use Python, but not everywhere. They make have actually turned most/all of the intensive parts to Python [21:57] skm has joined the channel [21:57] badlearner1: sorry, to C++ [21:57] Dmitrijus: WarheadsSE: yes, indeed :) there is also stuff like opencl and cuda ;) [21:57] tomlion has joined the channel [21:57] benvie: if you're encoding shit then you're going to want to use cuda or opencl for sure [21:58] WarheadsSE: Dmitrijus, I know one of the primary developers, one of those boxes will crack cities worth of GSM.. [21:58] sriley: yes but thats what you would have to do with any language [21:58] shinuza has joined the channel [21:58] benvie: yeah that's not a language decision, it's a hardware one [21:58] WarheadsSE: :) oh, I kno0w [21:58] CoverSlide: i doubt the cdn's for youtube and picasa are running off of python [21:58] WarheadsSE: *know [21:58] CoverSlide: i could be wrong though [21:58] WarheadsSE: doubt that was well [21:58] Revernd has joined the channel [21:58] benvie: they could easily be using it for various parts of the stack [21:58] benvie: reddit uses python no? [21:59] badlearner1: ye, pylons framework [21:59] sriley: er id very much hope the cdns werent using any scripting language for serving static files [21:59] benvie: oh yeah that part [22:00] badlearner1: So, plz tell me. If I am going to use a separate Nginx/lighttpd server for storing, encoding and serving videos, but javascript and node.js for everything else, including the fron-end for videos (player etc), would it be great? [22:00] michaelhartau has joined the channel [22:01] badlearner1: greater than Python or Ruby -- Django/Rails? [22:01] vervain: There is no possible way we can answer that question. [22:01] sriley: ruby probably, python... not really [22:01] CoverSlide: node is good [22:01] badlearner1: in terms of loading/serving time for pages, images and videos, number of simultaneous connections etc [22:01] ChrisPartridge has joined the channel [22:01] CoverSlide: but a lot of the performance has to do with how you handle the server [22:02] vervain: badlearner1 - you are optimizing in totally the wrong place. [22:02] seebees has joined the channel [22:02] lazyshot has joined the channel [22:02] dgathright_ has joined the channel [22:02] insin: badlearner1, how many users do you have? [22:02] badlearner1: 0 [22:02] shinuza: badlearner1: images and videos should not be a nodejs job [22:02] CoverSlide: then it will work flawlessly [22:02] badlearner1: :D [22:02] slifty has joined the channel [22:02] shinuza: ahah [22:03] shinuza: but in all seriousness you don't have to worry about perf now [22:03] Me1000 has joined the channel [22:03] shinuza: if you do your job properly you will be able to switch whenever you want [22:03] michaelhartau has joined the channel [22:04] badlearner1: okay [22:04] sriley: node doesnt really bring anything new in terms of performance, its really about how you write your code [22:04] EvRide has joined the channel [22:04] vervain: badlearner1 - Do you or your team have any previous programming experience at all? [22:04] Sorella has joined the channel [22:04] badlearner1: no [22:04] CoverSlide: ah [22:04] badlearner1: that's the reason why I am trying to be careful [22:04] vervain: Then you can't go far wrong with Python. [22:04] sriley: the reason its good for a number of reasons is that its drilled in to people that you dont ever block while waiting for the db to respond etc [22:04] devongovett has joined the channel [22:04] insin: Yeah, Python just shot to the top of the list :) [22:04] sriley: you can do that in any language, and yes even php [22:04] WarheadsSE: Wait, no prior programming experience at all ? [22:05] badlearner1: correct [22:05] StanlySoManly has joined the channel [22:05] WarheadsSE: ACTION facepalm [22:05] WarheadsSE: I can't beleive I am going to say this.. but Python. [22:05] CoverSlide: so trying to teach him async programming as well ... [22:05] CoverSlide: Python +1 [22:05] insin: badlearner1, did you watch The Social Network in the last 5 days? [22:06] CoverSlide: hahaha [22:06] badlearner1: :D no, I watched it long before that [22:06] sriley: badlearner1: dont expect to knock up a site that will perform well any time soon [22:06] insin: I'm not even kidding! :) Seen a bunch of people landing on IRC after watching it [22:06] Sorella: ACTION always recommends Racket and Htdp for teaching. Specially if the person has no programming experience. [22:06] CoverSlide: or just do PHP, get a godaddy account [22:07] CoverSlide: do some drupal dealie [22:07] CoverSlide: no coding necessary [22:07] cjm has joined the channel [22:07] badlearner1: Are there no performance benefits between Python vs Javascript on the server side? [22:07] appr has joined the channel [22:07] CoverSlide: v8 is fast [22:08] AvianFlu: badlearner1, if the word "performance" comes into your mind again in the next three months, you're doing it wrong [22:08] CoverSlide: depends though on the job [22:08] Sorella: PiPy is also fast eh [22:08] Sorella: or PyPy, iunno. [22:08] AvianFlu: if you're afraid to have to learn more than one language, you're not going to master one language [22:08] sdwrage has joined the channel [22:08] badlearner1: oh [22:08] CoverSlide: which doesn't make sense [22:08] WarheadsSE: But does [22:08] sriley: infact id recommend python, due to then having to learn more than one langage :) [22:09] CoverSlide: unless you don't count the spin up time [22:09] CoverSlide: because pypi would have to spin up CPython initially anyway [22:10] badlearner1: okay, thanks a lot for all the advise. [22:10] WarheadsSE: You're going to have spinup no matter what, but that shouldnt be his concern ATM. [22:11] WarheadsSE: hell, PHP on IIS with FastCGI & caching from Zend is pretty damn performant when done right.. which is reare. [22:11] CoverSlide: and if the parsing is done slower in C than on the interpreted side, then that seems to be a problem with the C side [22:11] WarheadsSE: *rare [22:11] EvRide has joined the channel [22:11] jelveh has joined the channel [22:12] WarheadsSE: ACTION gets a laugh when he realizes why haXe & nano have a point. [22:12] CoverSlide: you mean neko? [22:12] WarheadsSE: ACTION facepalm [22:12] WarheadsSE: yes, nekop [22:13] WarheadsSE: the GNTP spec is my "learning tool" [22:13] WarheadsSE: I did it in Perl, then in haXe/neko, and now in Node.JS [22:13] WarheadsSE: although this is the firt time I've written the full server side as well. [22:14] CoverSlide: does GNTP have binary headers? [22:14] albertosh has joined the channel [22:14] WarheadsSE: If you transmit, say, icons, or encrypted messages, yes [22:14] CoverSlide: oic [22:15] WarheadsSE: If you never bother with encryption or resources, you're good. [22:15] konobi: node-ctypes ftw [22:15] CoverSlide: because i see that being easier in perl than with node [22:15] WarheadsSE: I did it in raw buffers [22:15] sfoster_ has joined the channel [22:15] WarheadsSE: oh, it was "fun" [22:15] joshsmith: does anyone here use mongo-auth? [22:17] appr has joined the channel [22:17] imarcusthis has joined the channel [22:18] WarheadsSE: although CoverSlide I was happy to see the hex transliterations in native buffers object. [22:20] adrianmg has joined the channel [22:20] bnoordhuis has joined the channel [22:21] boltR has joined the channel [22:21] tomh has joined the channel [22:21] adrianmg has left the channel [22:22] JaKWaC has joined the channel [22:25] Renegade001 has joined the channel [22:25] quackslike has joined the channel [22:25] sente has joined the channel [22:25] hellp has joined the channel [22:27] sente: hi guys, I keep failing at installing node.js on an ubuntu box, I've tried a few various from https://gist.github.com/579814 and I keep running into issues, the specific error being: '{task: cxx node_zlib.cc -> node_zlib_5.o}' -- full log is here: http://sprunge.us/DKHG [22:27] sente: can someone please help out? [22:31] ryanrolds_w: sente: Distro? [22:31] ryanrolds_w: Look like you're missing the zlib dev package. [22:31] stantona has joined the channel [22:32] bradleyg has joined the channel [22:32] nicholasf has joined the channel [22:34] McMAGIC--Copy has joined the channel [22:35] ekryski has joined the channel [22:35] tonymilne has joined the channel [22:36] slurp1 has joined the channel [22:37] jstash has joined the channel [22:38] neurodrone_ has joined the channel [22:38] JanLi has joined the channel [22:39] mikeal has joined the channel [22:39] slurp1 has joined the channel [22:40] jacobolus has joined the channel [22:40] piscisaureus_: test [22:41] jbpros has joined the channel [22:41] Renegade001 has joined the channel [22:42] quackquack has joined the channel [22:42] piscisaureus_: test [22:42] mmalecki: piscisaureus_: we can't hear you. [22:42] isaacs has joined the channel [22:43] piscisaureus_: mmalecki: TEST TEST TEST TEST [22:43] shaggydog97 has joined the channel [22:43] mmalecki: piscisaureus_: WHAT?! [22:44] slurp1 has joined the channel [22:45] tonymilne has joined the channel [22:45] piscisaureus_: mmalecki: 8,04TEST04 [22:45] CoverSlide: monster's misbehaving, planet's needing saving, situation's grave and I'll form the head [22:45] majek has joined the channel [22:45] Kunda has joined the channel [22:45] airhorns: tjholowaychuk: planning on adding browser side support for the `grep` option in mocha? if i made a pull request would you look at it? [22:45] shinuza has joined the channel [22:45] mmalecki: piscisaureus_: oh, it's fine now [22:46] stride: mmalecki: it's marked red. that can't be right [22:46] tjholowaychuk: airhorns yeah i figured we could just add ?grep= [22:46] mmalecki: piscisaureus_: now you have to speak like this forever, sorry [22:46] tjholowaychuk: airhorns but yup! that would be great [22:46] airhorns: tjholowaychuk: that was my plan, awesome [22:46] piscisaureus_: 04mmalecki: I am afraid so, my irc client is so buggy that I can't possibly change the text to normal again [22:46] enmand has joined the channel [22:47] mmalecki: piscisaureus_: haha, let me guess, trillian? [22:47] CoverSlide: 0,4Sweet [22:47] mandric has joined the channel [22:47] AvianFlu: 14 I'm right there with you. [22:47] eee_c has joined the channel [22:47] AvianFlu: 12I'm right there with you. [22:47] ryanrolds_w has joined the channel [22:47] mmalecki: piscisaureus_: use irssi [22:47] chilts: ditto :) [22:47] dilvie: you guys are so lucky I don't have ops. ;) [22:48] __t has joined the channel [22:48] RobWC has joined the channel [22:48] mmalecki: yeah, it was trillian. [22:48] piscisaureus_ has joined the channel [22:48] mcluskydodallas has joined the channel [22:49] slurp1 has joined the channel [22:49] piscisaureus_: mmalecki: I am not that masochistic [22:49] piscisaureus_: mmalecki: but I will stop now because otherwise I'll get kicked [22:50] dilvie: I know it's not super popular, but I really like ChatZilla. [22:50] slurp1 has joined the channel [22:50] stride: ACTION shivers [22:50] konobi: irssi++ [22:50] CoverSlide: irssi is all anyone needs [22:50] konobi: piscisaureus_: i've got my eye on you.... [22:51] konobi: =0)' [22:51] dilvie: irssi doesn't grok JavaScript. =) [22:51] stride: I just noticed I don't have rainbow.pl on this box. meh. [22:51] piscisaureus_: @konobi: let's do a kick shootout... 3 ... 2 ... 1 ... [22:52] albertosh: ^6 aa [22:52] stonebranch has joined the channel [22:53] kiilo has joined the channel [22:53] jsurfer has joined the channel [22:55] tomlion_ has joined the channel [22:56] devaholic has joined the channel [22:57] jerrysv has joined the channel [22:57] hij1nx has joined the channel [22:58] mmalecki: piscisaureus_: hey, while you're here, bnoordhuis said that you don't like my pull request about TLS options, can you explain more? [22:59] piscisaureus_: mmalecki: well, Ben presented me 2 options and I told him I like one better than the other [22:59] piscisaureus_: mmalecki: I didn't know that one of them was yours [23:00] ryanrolds_w: sente: Get that issue sorted out? [23:00] piscisaureus_: mmalecki: I am not fond of macro magic, so if all builds are going to use __thread then I'd rather have that explicit [23:00] JanLi: So, I cannto get require('plates') to work, anyone with the pacience to walk me through this? I know this is terribly beginner stuff, but keeps me from doing more interesting stuff... [23:01] piscisaureus_: mmalecki: but I think we should use the macro magic patch for a while so we can compare non-tls vs tls performance [23:01] piscisaureus_: mmalecki: I think that in the end I like to have all state in a struct though. But no hurry. [23:02] mmalecki: piscisaureus_: not sure we're talking about the same thing, let me link you [23:02] sente: ryanrolds_w: not yet, I had to a phone call 1 min after joining the chan [23:02] JanLi: http://pastie.org/2941309 [23:02] sente: ryanrolds_w: i'll trouble shoot shortly, thanks for inquiring though [23:02] mmalecki: piscisaureus_: https://github.com/joyent/node/pull/1983 [23:02] JanLi: I have the impression there is something wromg with my setup... [23:03] piscisaureus_: mmalecki: aah heh - I was talking about the Thread Local Storage stuff that I was discussing with Ben today [23:03] piscisaureus_: lol [23:04] ryanrolds_w: sente: Cool, it really did look like you're missing the zlib headers (devel package). [23:04] skm has joined the channel [23:05] medice has joined the channel [23:05] mmalecki: piscisaureus_: haha, no problem :). so, opinions on that? [23:06] medice: bnoordhuis: sudo make install told me to bug you about it [23:06] medice: i've done my duty [23:06] bnoordhuis: medice: can you post the literal message? [23:06] medice: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [23:06] makeInstallBot: medice: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [23:06] bnoordhuis: hurray for makeInstallBot :) [23:06] mmalecki: :) [23:07] sente: ryanrolds_w: Linux version 3.0.4-linode38 (root@build.linode.com) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #1 SMP Thu Sep 22 14:59:08 EDT 2011 [23:08] piscisaureus_: mmalecki: Koichi speaks my thoughs: https://github.com/joyent/node/pull/1983#issuecomment-2592915 [23:08] piscisaureus_: we need a consistent api [23:08] Xano_ has joined the channel [23:08] CoverSlide: agreed [23:09] mmalecki: piscisaureus_: ok, so tls.connect should accept host option? [23:10] piscisaureus_: mmalecki: no it's more that tls.connect and net.connect should have be similar [23:10] sente: ryanrolds_w: what exactly do i need to install for the devl package? [23:10] piscisaureus_: s/have be/be/ [23:10] bnoordhuis: isaacs: [pid 31606] execve("./build-wrapper", ["./build-wrapper"], [/* 122 vars */]) = -1 EACCES (Permission denied) <- why does this happen when i do `npm install buffertools` [23:10] bnoordhuis: isaacs: when i download and unpack the tarball, the build-wrapper script *is* executable [23:10] Renegade001 has joined the channel [23:11] bnoordhuis: this happens with the bundled npm btw [23:11] isaacs: bnoordhuis: because of the bug i just fixed this morning :) [23:11] mmalecki: piscisaureus_: ok, I'll look into it [23:11] bnoordhuis: isaacs: oh, okay - never mind then :) [23:11] isaacs: bnoordhuis: the latest in my tar-js branch on github works on linux. [23:11] isaacs: just trying to work out why it's still borked in some ways on windows [23:12] isaacs: i'm getting EACCES any time i try to stat a symlink [23:12] johnnywengluu: tjholowaychuk: I still have problems with mocha throwing it's own errors instead of the original one [23:12] piscisaureus_: mmalecki: if you can change net.connect to *also* take an options object it should be fine. Ryan should weigh in too, when he's back. [23:12] joshkehn1 has joined the channel [23:12] isaacs: this is reading the npm source from my Mac host in a VMware windows 7 [23:12] joshkehn1 has left the channel [23:12] tjholowaychuk: johnnywengluu open issues [23:12] isaacs: er, windows server something, rather [23:13] isaacs: this used to work fine, but i changed the version of os x (lion) and also the version of vmware, so it's anyone's guess why it's not working [23:13] isaacs: bnoordhuis: ^ [23:13] isaacs: ryah will be happier if i just make npm symlink-free anyway :) [23:13] isaacs: he has a problem with them [23:14] ryanrolds_w: sente: Try installing zlib1g-dev with your preferred package manager [23:14] Tuller has joined the channel [23:14] bnoordhuis: isaacs: oh, from the rob pike school of philosophy? [23:14] isaacs: bnoordhuis: i guess [23:14] medice: currently switching from virtualbox to vmware becouse of symlink [23:14] isaacs: bnoordhuis: i also have to add a flag to make it not do any proprietary tar extended headers. [23:15] isaacs: since ancient garbage-tar can't handle them [23:15] bnoordhuis: isaacs: you think you'll make it before thursday? i just told someone it'll be fixed :) [23:15] brianseeders has joined the channel [23:15] isaacs: hahah [23:15] isaacs: yes. [23:15] isaacs: it's almost there [23:15] markwubben has joined the channel [23:16] isaacs: also: dude, seriously? we *need* to have travis-ci building node. [23:16] isaacs: it's just so trivial to set up [23:16] mmalecki: I just wanted to propose it :) [23:16] truedat101 has joined the channel [23:16] isaacs: and it's already helped speed up this process with npm. [23:16] mmalecki: josh-k: ^ [23:16] bnoordhuis: we have buildbots, only no one ever looks at them [23:16] isaacs: yeah [23:16] jldbasa has joined the channel [23:16] bnoordhuis: but i'm all for CI [23:16] isaacs: a build bot no one looks at is only slightly less useful than not having a build bot. [23:16] CoverSlide: will it build on multiple architectures? [23:16] mmalecki: bnoordhuis: travis can harass people in IRC [23:16] josh-k: :) [23:17] isaacs: mmalecki: so, the linux-only thing, it needs to have other operating systems. [23:17] bnoordhuis: mmalecki: that's a useful feature... i think [23:17] isaacs: the emails are fantastic. [23:17] josh-k: CoverSlide: we are working towards that goal [23:17] perezd: anyone here working with node_redis? [23:17] mmalecki: isaacs: yeah, I think we'll have OS X soon (?) [23:18] josh-k: isaacs: we do plan to support other archs, it will just take a little bit of time [23:18] isaacs: josh-k: you all should try to work out some deal with joyent to use smartos and vm's [23:18] isaacs: josh-k: other architectures are nice, but OS is another vector [23:18] josh-k: i would love that [23:18] josh-k: but they never got back to me [23:18] josh-k: after two emails [23:18] isaacs: we use jenkins internally. [23:18] isaacs: i'm trying to sow the seeds of dissent. [23:18] isaacs: maybe have an open source riot. [23:19] isaacs: :) [23:19] mmalecki: haha [23:19] josh-k: haha [23:19] isaacs: what's the behind-the-firewall story with travis? [23:19] isaacs: can you install it on your own build machine pretty easily? [23:19] quackquack: i dont think so, isaacs [23:20] isaacs: we haev a lot of stuff that jenkins builds that isn't pubic [23:20] isaacs: *public, either [23:20] josh-k: isaacs: not yet sorry [23:20] josh-k: isaacs: we are working towards that as well [23:20] josh-k: including hosted ci for people who don't want to run travis [23:20] josh-k: running travis requires lots of moving parts [23:20] isaacs: interesting [23:20] isaacs: yeah, i can see that [23:20] perezd: "node_redis command queue state error. If you can reproduce this, please report it." [23:20] isaacs: from the outside, it seems easy, though :) [23:20] perezd: this sounds bad [23:21] josh-k: everything will remain oss, but a hosted setup makes more sense [23:21] josh-k: hahaha [23:21] josh-k: well, its kinda easy, but not at the same time [23:21] mmalecki: I mean, frontend is one repo and it's easy to set up [23:21] mmalecki: building vms we use is also easy [23:22] mmalecki: but connecting all the stuff not really [23:22] josh-k: mmalecki: web, hub, workers, vms, rabbitmq, postgres, websockets [23:22] mmalecki: yeah [23:22] josh-k: and soon there will be another bit for listening to github pings [23:22] hipsters_ has joined the channel [23:22] josh-k: so yes, will be make it easier [23:24] ryan_stevens has left the channel [23:24] insin has joined the channel [23:25] Tobsn has joined the channel [23:27] skm has joined the channel [23:28] Arro has joined the channel [23:29] Arro: this error's got me stumped: Object function EventEmitter() { } has no method 'on' [23:30] bnoordhuis: Arro: what version of node? [23:30] Arro: 0.6.2 [23:30] Arro: http://pastebin.com/7NnMtS6v [23:31] bnoordhuis: Arro: it's a bug in your code - the EventEmitter class itself has no on method, only instances of [23:31] CoverSlide: Arro: var myObject = new EventEmitter(); myObject.on(/* your code here */) [23:34] sh1mmer has joined the channel [23:34] cgray_ has joined the channel [23:35] rioter has joined the channel [23:36] rioter has joined the channel [23:36] joeytwiddle has joined the channel [23:36] mike5w3c has joined the channel [23:36] Arro: bnoordhuis and CoverSlide : that did it. thanks. [23:37] visudo has joined the channel [23:37] sh1mmer has joined the channel [23:38] AvianFlu_ has joined the channel [23:39] isaacs has joined the channel [23:41] petrjanda has joined the channel [23:42] neurodrone has joined the channel [23:42] vkandy has joined the channel [23:43] schwab has joined the channel [23:43] kenperkins has joined the channel [23:44] xcoderzach has joined the channel [23:44] Yoon has joined the channel [23:45] Xano has joined the channel [23:45] AaronMT has joined the channel [23:45] marcello3d has joined the channel [23:46] EvRide1 has joined the channel [23:47] lmorchard has joined the channel [23:47] tonymilne has joined the channel [23:49] isaacs_ has joined the channel [23:50] zackattack has joined the channel [23:50] qmx: this makes me sad => http://twitter.com/NodeJsCommunity/status/141538426024501248 [23:50] qmx: node is awesome because it's awesome [23:50] qmx: there's no need to FUD like this [23:50] subbyyy has joined the channel [23:51] Emmanuel` has joined the channel [23:51] htoothrot has joined the channel [23:52] tjholowaychuk: those ibm articles are always so brutal [23:52] maxogden: qmx: every single ibm.com article are horrible [23:52] maxogden: is* [23:52] xcoderzach has joined the channel [23:52] dubenstein has joined the channel [23:53] qmx: this is making a disservice to node, as java has reactor-based concurrency since old ages :P [23:53] kabro has joined the channel [23:54] blup has joined the channel [23:54] josh-k has joined the channel [23:54] Emmanuel` has joined the channel [23:54] colinclark_ has joined the channel [23:55] thalll has joined the channel [23:55] dreamdust has joined the channel [23:56] dreamdust has left the channel [23:56] quackslike: is there any standard attributes for an Error object? [23:57] quackslike: for example if i want to say errr = new Error("something") then errr.whatever=['foo'] [23:57] quackslike: or is it context based and not really standard? [23:58] quackslike: I cant see any reference for Error in the docs [23:58] tjholowaychuk: Error is v8 not node [23:58] quackslike: oh [23:59] cgray__ has joined the channel [23:59] boltR has joined the channel [23:59] quackslike: hmm