[11:25] nodelog has joined the channel
[11:28] garrensm_ has joined the channel
[11:29] malkomalko has joined the channel
[11:29] enmand has joined the channel
[11:31] TimTim` has joined the channel
[11:33] graeme_f has joined the channel
[11:35] umren has joined the channel
[11:36] M1l3n1um has joined the channel
[11:38] Joeysomo has joined the channel
[11:41] garrensmith has joined the channel
[11:42] rlidwka has joined the channel
[11:42] Vespakoen has joined the channel
[11:43] alippai_ has joined the channel
[11:44] alippai_: hello, how do I setup a express "router" to serve static HTML-s without the extension? eg. /about -> /about.html
[11:44] alippai_: if a url does not exist
[11:47] ovnicraft has joined the channel
[11:47] wankdanker has joined the channel
[11:47] Vennril has joined the channel
[11:48] fangel has joined the channel
[11:51] Juan77 has joined the channel
[11:54] erichynds has joined the channel
[11:56] jkridner has joined the channel
[11:56] Renegade001 has joined the channel
[11:56] shinuza has joined the channel
[11:57] FIQ has joined the channel
[11:58] Vennril has joined the channel
[12:04] Vespakoen has left the channel
[12:05] jimmysparkle has joined the channel
[12:06] tomnewmann has joined the channel
[12:07] alexmai has joined the channel
[12:09] heavysixer has joined the channel
[12:10] advatar has joined the channel
[12:11] brianseeders has joined the channel
[12:12] vkareh has joined the channel
[12:12] jarek has joined the channel
[12:12] jarek has joined the channel
[12:18] theBrettman: I wonder why cloud9 went with azure instead of smartos?
[12:19] advatar has joined the channel
[12:20] jamescarr has joined the channel
[12:22] stagas has joined the channel
[12:23] hipsterslapfight: theBrettman: ms are giving heavy discounts/training/advertising/etc for high-profile users of azure at the moment, they're really pushing it - that could've been a consideration
[12:24] n26 has joined the channel
[12:24] Cromulent has joined the channel
[12:27] garrensm_ has joined the channel
[12:28] k1ttty has joined the channel
[12:29] rendar has joined the channel
[12:32] dodo has joined the channel
[12:32] arvidkahl has joined the channel
[12:33] advatar has joined the channel
[12:33] heavysixer has joined the channel
[12:34] fumanchu182 has joined the channel
[12:34] fumanchu182 has joined the channel
[12:36] subbyyy has joined the channel
[12:37] RLa: any idea how much customers they lost after recent 7-hour downtime?
[12:38] Poetro has joined the channel
[12:38] Poetro has joined the channel
[12:39] icebox has joined the channel
[12:40] Poetro has joined the channel
[12:40] Poetro has joined the channel
[12:42] Jippi has joined the channel
[12:43] miccolis has joined the channel
[12:44] c4milo has joined the channel
[12:45] xbayrockx has joined the channel
[12:46] aheckmann has joined the channel
[12:49] koo3 has joined the channel
[12:49] koo4 has joined the channel
[12:51] spcshpopr8r has joined the channel
[12:51] TheDudeKnows has joined the channel
[12:51] hipertracker has joined the channel
[12:53] madhums has joined the channel
[12:58] AaronMT has joined the channel
[12:58] mAritz has joined the channel
[12:58] insin has joined the channel
[12:59] kyonsalt has joined the channel
[13:01] M1l3n1um has joined the channel
[13:03] whaley has joined the channel
[13:05] rauchg has joined the channel
[13:07] dannyamey has joined the channel
[13:08] advatar has joined the channel
[13:09] fairwinds has joined the channel
[13:10] briancray has joined the channel
[13:10] kwmiebach has joined the channel
[13:12] lazyshot has joined the channel
[13:13] emattias_ has joined the channel
[13:17] pickels has joined the channel
[13:17] capelio has joined the channel
[13:17] robo has joined the channel
[13:17] SamHasler has joined the channel
[13:18] lduros has joined the channel
[13:19] n26 has joined the channel
[13:20] codycraven has joined the channel
[13:20] Swizec has joined the channel
[13:22] booo has joined the channel
[13:24] bondar has joined the channel
[13:25] theCole has joined the channel
[13:26] tmike has joined the channel
[13:26] pendlepants has joined the channel
[13:26] pendlepa1ts has joined the channel
[13:27] umren has joined the channel
[13:29] aslant has joined the channel
[13:30] sphinxxx has joined the channel
[13:32] dthompso99 has left the channel
[13:34] miccolis has joined the channel
[13:34] andrehjr has joined the channel
[13:35] akshayms has joined the channel
[13:35] booyaa: dudes.. mqtt is just an implementation of message queues? or is it something different? context: http://mqtt.org
[13:36] icebox has joined the channel
[13:36] EyePulp has joined the channel
[13:37] tmike: Good morning folks.
[13:37] vam3c has joined the channel
[13:38] okuryu has joined the channel
[13:40] rwaldron has joined the channel
[13:42] c4milo has joined the channel
[13:43] hipertracker has joined the channel
[13:44] artusrocha has joined the channel
[13:45] pgte has joined the channel
[13:46] c4milo has joined the channel
[13:48] _dave_h_d has joined the channel
[13:48] kurtzhong has joined the channel
[13:48] pdodde has joined the channel
[13:48] crutex has joined the channel
[13:48] _dave_h_d: hi all anyone using dynamo? and anyone knows what this is: ResourceNotFoundException: Requested resource not found
[13:49] _dave_h_d: the full line is actually: com.amazonaws.dynamodb.v20111205#ResourceNotFoundException: Requested resource not found
[13:49] pdodde has joined the channel
[13:51] skm has joined the channel
[13:52] bkaney has joined the channel
[13:52] _rockbot_ has joined the channel
[13:53] CromeDome has joined the channel
[13:54] colinclark has joined the channel
[13:55] akshayms_ has joined the channel
[13:57] baudehlo has joined the channel
[13:58] scrumlord has joined the channel
[14:00] davidsklar has joined the channel
[14:00] ceej has joined the channel
[14:01] ank has joined the channel
[14:02] trotter has joined the channel
[14:02] rektide: where can i get docs for the json node api docs?
[14:03] josh-k has joined the channel
[14:03] rektide: http://nodejs.org/docs/latest/api/documentation.html#documentation_json_output is pretty ambiguous about what it is i'm supposed to accept/expect/consume
[14:03] baudehlo: do you want: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/JSON ?
[14:05] Edy has joined the channel
[14:05] CIA-102: node: 03Yoshihiro Kikuchi 07master * rc450ac3 10/ doc/api/buffer.markdown : docs: fix using legacy api in the buffer doc - http://git.io/zm1YYQ
[14:06] garrensmith has joined the channel
[14:06] thomblake has joined the channel
[14:07] swmcc has joined the channel
[14:07] joshsmith has joined the channel
[14:08] rektide: baudehlo: i know json, i'm looking for docs on the node documentation that comes in json form
[14:08] thomblake has left the channel
[14:08] tmike: rektide: it comes in .markdown form
[14:09] RLa: i think dox generates docs in json form
[14:09] mAritz: you go to an url like http://nodejs.org/docs/latest/api/modules.json and get json?! what do you mean with "what it is supposed to accept/expect/consume?"
[14:10] RLa: but it uses jsdoc annotations which i think are not used in node source but i'm not sure about it
[14:10] mAritz: oh, you want to use the same stuff for your own documentatin?
[14:11] bic2k has joined the channel
[14:11] RLa: https://github.com/visionmedia/dox
[14:11] rektide: https://github.com/joyent/node/commits/json-api-docs is the source
[14:13] rwaldron has joined the channel
[14:13] spcshpopr8r has left the channel
[14:16] infynyxx has joined the channel
[14:16] theCole has joined the channel
[14:17] conancat has joined the channel
[14:17] jdeibele has joined the channel
[14:17] kwmiebach has joined the channel
[14:19] umren has joined the channel
[14:19] satyr has joined the channel
[14:22] jocafa has joined the channel
[14:24] piscisaureus_ has joined the channel
[14:25] bergie__ has joined the channel
[14:27] theCole has joined the channel
[14:31] jetienne_ has joined the channel
[14:31] JSONB has joined the channel
[14:31] yawNO has joined the channel
[14:32] diva has joined the channel
[14:33] FilipeDias has joined the channel
[14:36] ohtogo has joined the channel
[14:36] sreeix has joined the channel
[14:37] capelio: having coffee. going to talk a quick walk, stretch the legs. what do i think to tell the waitress? "afk a few". *sigh*
[14:40] sechrist has joined the channel
[14:40] mattgifford has joined the channel
[14:43] jocafa: capelio: that shall be tweeted.
[14:43] jocafa: "twote"?
[14:43] illourr has joined the channel
[14:43] illourr: morning fellows
[14:43] CarlosC has joined the channel
[14:43] jocafa: mornin
[14:44] capelio: jocafa: can I get a link? reason enough to sign up for twitter finally. :)
[14:45] pendlepants has joined the channel
[14:45] jocafa: https://twitter.com/#!/joshfaul/status/179216098586144769
[14:46] capelio: jocafa: thanks
[14:46] jocafa: np hehe
[14:47] SamHasler has left the channel
[14:47] gde33 has joined the channel
[14:48] adambeynon has joined the channel
[14:48] savudin has joined the channel
[14:48] kevwil has joined the channel
[14:50] bizniz98 has joined the channel
[14:51] Venom_X has joined the channel
[14:51] hipsterslapfight has joined the channel
[14:53] jaha has joined the channel
[14:56] emattias has joined the channel
[14:56] bnoordhuis has joined the channel
[14:56] pradeepbv has joined the channel
[14:57] tmcw has joined the channel
[14:57] chrisinajar has joined the channel
[14:57] staar2 has joined the channel
[14:57] staar2: hello
[14:59] stbuehler has joined the channel
[14:59] eirikb has left the channel
[15:00] idoru has joined the channel
[15:00] raphaelT__ has joined the channel
[15:02] mmalecki: pkrumins: bought two vim t-shirts, thanks for making them!
[15:02] raphaelT__ has joined the channel
[15:03] theBrettman has joined the channel
[15:04] fcambus has joined the channel
[15:04] colinclark has joined the channel
[15:05] colinclark_ has joined the channel
[15:05] level09 has joined the channel
[15:05] mAritz: staar2: hello
[15:05] mmalecki has joined the channel
[15:08] sorensen__ has joined the channel
[15:08] brainproxy: anybody know a node lib/util for working w/ post-build/test notifications from Travis?
[15:10] isaacs has joined the channel
[15:10] MartinCleaver has joined the channel
[15:10] MartinCleaver has joined the channel
[15:10] sangsok has joined the channel
[15:11] rwaldron has joined the channel
[15:12] AndreasMadsen has joined the channel
[15:13] jscheel has joined the channel
[15:14] themiddleman_itv has joined the channel
[15:14] AviMarcus has joined the channel
[15:16] Topcat has joined the channel
[15:17] slloyd has joined the channel
[15:17] Brandon_R has joined the channel
[15:17] Brandon_R: hi
[15:18] FIQ has joined the channel
[15:19] madhums has joined the channel
[15:19] BillyBreen has joined the channel
[15:20] tzm has joined the channel
[15:20] Swizec has joined the channel
[15:20] tzm has left the channel
[15:21] aheckmann has joined the channel
[15:22] jetienne has joined the channel
[15:22] argami has joined the channel
[15:24] tjholowaychuk has joined the channel
[15:25] joshfinnie has joined the channel
[15:25] redir has joined the channel
[15:26] n26 has joined the channel
[15:30] r04r has joined the channel
[15:32] cosmincx has joined the channel
[15:32] Destos has joined the channel
[15:33] rtgibbons has joined the channel
[15:34] Destos has joined the channel
[15:35] ningu has joined the channel
[15:35] r04r has joined the channel
[15:36] plutoniix has joined the channel
[15:37] perezd has joined the channel
[15:37] arduix has joined the channel
[15:37] jzacsh has joined the channel
[15:37] jzacsh has joined the channel
[15:38] Spion has joined the channel
[15:39] broofa has joined the channel
[15:40] khrome has joined the channel
[15:41] r04r has joined the channel
[15:41] ditesh|cassini has joined the channel
[15:42] kurtzhong has joined the channel
[15:43] Vespakoen has joined the channel
[15:43] _akshayms has joined the channel
[15:43] Wizek_ has joined the channel
[15:44] rick- has joined the channel
[15:45] aspecto has joined the channel
[15:45] eresair has joined the channel
[15:46] ianl` has joined the channel
[15:47] r04r has joined the channel
[15:47] stagas: how do I kill npm's cache
[15:48] blueadept has joined the channel
[15:49] stagas: nvm
[15:49] Brandon_R: hi
[15:49] Cromulent has joined the channel
[15:49] Brandon_R: stages
[15:51] beakybal4 has joined the channel
[15:51] beakybal4: hi
[15:51] Zzaichik has joined the channel
[15:51] Marak has joined the channel
[15:51] beakybal4: :O
[15:51] beakybal4: Marak:
[15:51] jxie has joined the channel
[15:51] beakybal4: Marak: as in, the real marak?
[15:51] r04r has joined the channel
[15:51] beakybal4: also, i'm trying (and failing) to install npm
[15:52] isaacs: stagas: npm cache clean
[15:52] isaacs: stagas: or rm -rf ~/.npm probably
[15:52] beakybal4: :O it's isaacs
[15:52] beakybal4: sec, i'll pastie my log :3
[15:52] Marak: 0.6.12 is Segmentation fault for me, badly
[15:52] Marak: wtfbbq
[15:52] beakybal4: o.0
[15:53] bnoordhuis: Marak: details?
[15:53] mmalecki: I came up with this handy thingie `rm -rf ~/.npm /tmp/{.,}npm*` for purging the cache
[15:53] Marak: isaacs: yeah, a bunch of people have had that npm problem. rm -rf the npm dir usually works
[15:53] steveoh has joined the channel
[15:53] isaacs: Marak: which npm problem?
[15:53] ianl` has joined the channel
[15:53] Marak: isaacs: can't find module / can't find folder / referencing old npm versions
[15:54] steveoh has left the channel
[15:54] beakybal4: here
[15:54] Marak: isaacs: saw it a few times over the weekend
[15:54] beakybal4: npm ERR! message failed to fetch from registry: opts
[15:54] beakybal4: npm ERR! node -v v0.6.12
[15:54] beakybal4: npm ERR! npm -v 1.1.4
[15:54] isaacs: hm
[15:54] beakybal4: I cloned from the github
[15:54] ph^ has joined the channel
[15:54] isaacs: beakybal4: what are you trying to do?
[15:54] beakybal4: isaacs: install npm
[15:54] Marak: bnoordhuis: i'm trying to run one of our CLI tools which does a bunch of fs operations. i'm assuming i gotta pop open the debugger to get you a dump or something?
[15:54] bnoordhuis: Marak: yes please
[15:54] bnoordhuis: preferably from a debug build
[15:54] isaacs: beakybal4: you have node 0.6.12 already? it comes with it
[15:54] beakybal4: isaacs: yep
[15:54] pkrumins: mmalecki: awesome!
[15:55] arduix has joined the channel
[15:55] isaacs: beakybal4: so, why not just use the npm that gets installed along with node?
[15:55] beakybal4: isaacs: I couldn't use the .sh script, your site didn't resolve from my box, but does from my home. weird.
[15:55] beakybal4: >.<
[15:55] brainss has joined the channel
[15:55] beakybal4: ACTION face desks
[15:55] isaacs: beakybal4: how did you install node?
[15:55] skm has joined the channel
[15:55] Renegade001 has joined the channel
[15:55] beakybal4: i thought....
[15:56] beakybal4: ... never mind.
[15:56] beakybal4: i thought it was separate :p
[15:56] isaacs: beakybal4: yeah, the npm website/docs don't make this clear yet.
[15:56] Marak: bnoordhuis: i'll get that now, give me a few minutes, its been a while since i've done this
[15:56] beakybal4: isaacs: neither does the node website :(
[15:56] eds has joined the channel
[15:56] isaacs: beakybal4: updates coming soon to that :)
[15:56] beakybal4: haha, to help noobs like me! :p
[15:56] micheil: hmm.. what was that node app that was a http client.. sort of like wget, but with better support for json?
[15:56] beakybal4: every other time, someone's done it for me, I didn't realise :p
[15:56] raphaelT_ has joined the channel
[15:56] Marak: micheil: http-client ?
[15:56] Marak: micheil: cloudheads thing
[15:57] mmalecki: http-console
[15:57] r04r has joined the channel
[15:57] mmalecki: use http-console2, I maintain it
[15:57] beakybal4: Marak: are you the guy that did the node rap? :)
[15:57] Marak: beakybal4: sure
[15:57] beakybal4: :O
[15:57] Marak: beakybal4: i do many raps
[15:57] mmalecki: I got to removing require.paths and require('sys')
[15:57] beakybal4: :D
[15:57] mertimor has joined the channel
[15:57] phoochka has joined the channel
[15:58] aheckmann has joined the channel
[15:58] bnoordhuis: Marak: can you do a `backtrace full`?
[15:59] pkrumins: Marak: you want this shirt http://teespring.com/hjkl
[15:59] pizthewiz has joined the channel
[15:59] gde33 has joined the channel
[15:59] beakybal4: isaacs: i get another error :(
[15:59] beakybal4: sec
[16:00] beakybal4: isaacs: http://pastie.org/3578461 :(
[16:00] isaacs: beakybal4: please run with -ddd
[16:00] micheil: hmm.. getting an npm error on both http-console and http-console2: https://gist.github.com/2022961
[16:00] micheil: isaacs: ^^
[16:00] beakybal4: isaacs: ok, running
[16:01] mmalecki: micheil: npm install http-console2 -f
[16:01] isaacs: npm ERR! Refusing to delete: /usr/local/bin/http-console not in /usr/local/lib/node_modules/http-console
[16:01] isaacs: npm ERR! File exists: /usr/local/bin/http-console
[16:01] isaacs: npm ERR! Move it away, and try again.
[16:01] isaacs: micheil: ^
[16:01] micheil: oh, wait. yeah
[16:01] beakybal4: isaacs: seems "stuck" on npm http GET https://registry.npmjs.org/twitter
[16:01] isaacs: move away the offending file, or --gangsta it
[16:01] TheFuzzball has joined the channel
[16:01] beakybal4: uhh
[16:01] beakybal4: something's happened
[16:01] beakybal4: sec
[16:01] isaacs: beakybal4: can you make outbound requests with node?
[16:02] isaacs: at all?
[16:02] micheil: isaacs: sorry, misread the error message there.
[16:02] beakybal4: isaacs: it's doing more stuff now
[16:02] isaacs: beakybal4: ok
[16:02] isaacs: beakybal4: maybe it's just slow?
[16:02] beakybal4: seems to be getting dependancies :3
[16:02] TheFuzzball has joined the channel
[16:02] beakybal4: yeah, last time it errored after like 1 minute
[16:02] beakybal4: ok error
[16:02] r04r has joined the channel
[16:02] Marak: pkrumins: can i just pay pal 10 dollars instead? i dont want a shirt
[16:02] Marak: pkrumins: :-)
[16:03] jdeibele has joined the channel
[16:03] beakybal4: http://pastie.org/3578476
[16:03] Marak: pkrumins is gonna get a new car with all this tshirt money. hustling
[16:03] beakybal4: heh :)
[16:03] kitt has joined the channel
[16:03] caolanm has joined the channel
[16:03] beakybal4: isaacs: either your server sucks, or my server sucks
[16:03] beakybal4: isaacs: most likely mine, since i'm paying under $20 a year for it :p
[16:03] beakybal4: works now o.0
[16:04] beakybal4: fast o.0
[16:04] beakybal4: weird ._.
[16:04] isaacs: beakybal4: rad :)
[16:04] beakybal4: isaacs: :)
[16:04] beakybal4: isaacs: coming from an 18 year old, no one says that anymore :P
[16:04] isaacs: beakybal4: me and mjr_ are the only old guys keeping "rad" alive, I think
[16:05] beakybal4: heh :)
[16:05] mmalecki: that's rad!
[16:05] beakybal4: ask Marak though, he's the gangsta rapper in the room :p
[16:06] beakybal4: WHY DID THEY HAVE TO CHANGE EXPRESS >.<
[16:06] beakybal4: \rage
[16:06] mmalecki: beakybal4: huh?
[16:06] beakybal4: bodydecoder
[16:07] beakybal4: they changed it to bodyParser
[16:07] mmalecki: because software changes?
[16:07] r04r has joined the channel
[16:07] beakybal4: meh
[16:07] tjholowaychuk: beakybal4 like a year ago..
[16:07] beakybal4: mhm
[16:07] r04r has joined the channel
[16:07] jarek has joined the channel
[16:09] AntelopeSalad: you got my hopes up beaky, i thought tj pushed 3.x to npm today or something
[16:09] beakybal4: heh :p
[16:09] beakybal4: sorry :(
[16:09] beakybal4: i'm not really into node that much, i'm just a samplecodefag :(
[16:10] postwait has joined the channel
[16:11] rtgibbons has joined the channel
[16:11] sechrist_ has joined the channel
[16:11] geetarista has joined the channel
[16:12] r04r has joined the channel
[16:13] kenperkins has joined the channel
[16:13] arthabaska has joined the channel
[16:13] michaelmartinez has joined the channel
[16:13] sharkbird has joined the channel
[16:14] CarterL has joined the channel
[16:14] devongovett has joined the channel
[16:14] mlmorg has joined the channel
[16:15] _ritch has joined the channel
[16:17] r04r has joined the channel
[16:17] r04r has joined the channel
[16:17] miccolis has left the channel
[16:18] arduix has joined the channel
[16:18] tuhoojabotti: lulz
[16:18] tuhoojabotti: you must dive head first
[16:18] jeffbcross has joined the channel
[16:19] beakybal4: ikr :)
[16:19] ekryski has joined the channel
[16:19] beakybal4: actually
[16:19] beakybal4: anyone want some work for some publicity? :)
[16:19] beakybal4: I'm organising a UK based tech meetup
[16:19] sharkbird has joined the channel
[16:20] micheil has joined the channel
[16:20] stafamus has joined the channel
[16:20] beakybal4: and we want something to search the twitter stream for our hashtag, then display the image linked in the tweet on the screen
[16:20] beakybal4: but don't want to run into the api limit :(
[16:20] sharkbird has joined the channel
[16:21] blueadept has joined the channel
[16:21] philips has joined the channel
[16:21] AD7six: anwyays
[16:21] AD7six: oops wrongwindow
[16:23] r04r has joined the channel
[16:24] yaymukund has joined the channel
[16:24] orlandovftw has joined the channel
[16:24] FredrIQ has joined the channel
[16:25] ohtogo has left the channel
[16:25] beakybal4: no one want the work? :(
[16:25] sh1mmer has joined the channel
[16:25] tuhoojabotti: too much work already
[16:26] beakybal4: mmk :(
[16:26] rauchg has joined the channel
[16:26] umren has joined the channel
[16:27] dbro has joined the channel
[16:27] insin: phoning local shops to see which ones accept payment in publicity ;) Have you looked at ntwitter? Shouldn't be a big deal with it
[16:28] beakybal4: insin: you'd be surprised :) thanks, i'll look into it :)
[16:28] maletor has joined the channel
[16:28] r04r has joined the channel
[16:28] redir has joined the channel
[16:29] sreeix has joined the channel
[16:29] Wizecoder has joined the channel
[16:30] _dave_h_d has joined the channel
[16:30] _dave_h_d: hi all, what is the best way of creating a unique (auto-increment) type key in node for no-sql databases?
[16:32] insin: which ones? "no-sql" covers a lot of ground. Redis, for example has an INCR command
[16:32] beakybal4: okok
[16:32] dshaw_ has joined the channel
[16:32] beakybal4: I have it spewing the tweets into the console
[16:33] beakybal4: now how do I get them to the consumer?
[16:33] beakybal4: socket.io right?
[16:33] aspecto has left the channel
[16:33] beakybal4: the sample code for that didn't work :(
[16:33] beakybal4: (from the front page)
[16:35] nikdo has joined the channel
[16:35] MrTopf has joined the channel
[16:36] r04r has joined the channel
[16:36] r04r has joined the channel
[16:36] pizthewiz has joined the channel
[16:36] _dave_h_d: insin: dynamo as well as cassandra
[16:37] jocafa: tjholowaychuk: thoughts on cmake?
[16:37] tjholowaychuk: jocafa wish we didn't need anything like that
[16:37] jtsnow has joined the channel
[16:37] tjholowaychuk: scripts to build build scripts
[16:37] tjholowaychuk: code smell
[16:37] beakybal4: :3
[16:37] HansLander has joined the channel
[16:38] jocafa: agreed
[16:38] jocafa: but still… opinion?
[16:38] wingie: is that template engines purpose :)
[16:38] tjholowaychuk: I dont really have one
[16:38] t0mmyvyo has joined the channel
[16:38] jocafa: fair enough
[16:40] vkandy has joined the channel
[16:41] joshthecoder has joined the channel
[16:41] ed209 has joined the channel
[16:42] r04r has joined the channel
[16:42] r04r has joined the channel
[16:42] lz has joined the channel
[16:42] arduix has joined the channel
[16:43] rklancer has joined the channel
[16:43] jorenl_ has joined the channel
[16:43] iangreenleaf has joined the channel
[16:43] Avanine has joined the channel
[16:44] RobWC has joined the channel
[16:44] RobWC has left the channel
[16:45] dephex has joined the channel
[16:45] alvaro_o has joined the channel
[16:46] HansLander has left the channel
[16:46] nikdo has joined the channel
[16:47] cezary_ has joined the channel
[16:48] mattgifford has joined the channel
[16:48] Swizec has joined the channel
[16:48] TooTallNate has joined the channel
[16:48] shapeshed has joined the channel
[16:48] r04r has joined the channel
[16:49] fatjonny has joined the channel
[16:49] nikdo: a
[16:49] mattgifford has joined the channel
[16:50] mattgifford has joined the channel
[16:50] baudehlo has joined the channel
[16:50] Edy: b
[16:51] isaacs: c
[16:51] scanf: d
[16:51] stagas: new maptail http://live.stagas.com:3333/ https://github.com/stagas/maptail
[16:52] beakybal4: c-c-c-combo breaker!
[16:53] r04r has joined the channel
[16:54] simenbrekken has joined the channel
[16:54] beakybal4: can someone help me with socket.io please?
[16:54] beakybal4: i'm serving socket.io.js from socket.io itself
[16:54] jj0hns0n has joined the channel
[16:54] chapel: beakybal4: socket.io.js is served directly from socket.io
[16:54] chapel: yes
[16:55] beakybal4: but when trying to open a socket i get errors in chrome
[16:55] chapel: there are other ways to do it, like cdn, or manually
[16:55] chapel: is socket.io listening on an express or http server?
[16:55] sammmy has joined the channel
[16:55] beakybal4: chapel: yeah, was just clarifying, since the cdn js is outdated (i think)
[16:55] beakybal4: uhh
[16:55] beakybal4: i'll pastie it all
[16:56] der| has joined the channel
[16:56] beakybal4: server: http://pastie.org/private/jy5pyzlw1ihsqoklvmpva
[16:56] jetienne has joined the channel
[16:57] beakybal4: http://pastie.org/private/ybhepro4ganxfqad39g
[16:57] beakybal4: client ^^
[16:57] arvidkahl has joined the channel
[16:58] tornad has joined the channel
[16:58] beakybal4: chapel: it's on a separate server, if that helps
[16:59] chapel: what are the errors?
[16:59] sammmy: Hmm.. Using Express, how would I display a login page (login layout) if the user isn't logged in and a home page (home layout) if they are for the '/' route?
[16:59] beakybal4: chapel: http://pastie.org/3578835
[16:59] garrensm_ has joined the channel
[16:59] beakybal4: chapel: red cross circle thing, i think it's a 404
[16:59] r04r has joined the channel
[17:00] beakybal4: chapel: nothing in the server
[17:00] beakybal4: chapel: it serves the static content, then does nothing, it's like they're not talking to each other after that
[17:00] chapel: hmm, well notice its trying to connect to undefined/socket.io
[17:01] beakybal4: chapel: but I define socket
[17:01] beakybal4: or have I gone full retard?
[17:01] benvie: you never go full retard
[17:02] chapel: var socket = new io.Socket('http://server', {port: 3000})
[17:02] beakybal4: benvie: ikr :(
[17:02] TheJH has joined the channel
[17:02] chapel: try that
[17:02] EhevuTov has joined the channel
[17:02] chapel: actually, it should be var socket = io.connect('http://server', {port: 3000}) I believe
[17:02] chapel: looking at the socket.io docs
[17:02] benvie: it's a good thing thst undefined coerces into the word "undefined" because that's a useful thing
[17:03] chapel: benvie: javascript never throws errors!
[17:03] chapel: coerce all the things
[17:03] jimmysparkle has joined the channel
[17:03] benvie: indeed, never wrong so this should just work
[17:03] benvie: path on the back and go home, it already works
[17:04] arduix has joined the channel
[17:04] gde33 has joined the channel
[17:04] r04r has joined the channel
[17:04] beakybal4: hmmm
[17:05] gr-eg has joined the channel
[17:05] beakybal4: chapel: no errors this time!
[17:05] beakybal4: warn - websocket connection invalid
[17:05] beakybal4: but that in the server logs
[17:05] gr4yscale has joined the channel
[17:05] Saul has joined the channel
[17:06] isao has joined the channel
[17:06] beakybal4: uhhh sec :3
[17:07] trotter has joined the channel
[17:08] simenbrekken has joined the channel
[17:08] kurtzhong_ has joined the channel
[17:08] thalll has joined the channel
[17:08] bindr has joined the channel
[17:09] adamkittelson has joined the channel
[17:09] garrensmith has joined the channel
[17:10] khrome has joined the channel
[17:10] r04r has joined the channel
[17:10] ryanrolds_w has joined the channel
[17:11] trotter has joined the channel
[17:12] cosmincx has joined the channel
[17:12] joshsmith has joined the channel
[17:13] Saul has joined the channel
[17:15] beakybal4: ugh
[17:15] pgte has joined the channel
[17:15] tmike: hgu
[17:15] beakybal4: chapel: it's not sending any data :(
[17:15] blueadept has joined the channel
[17:15] springmeyer has joined the channel
[17:16] chapel: still saying websocket connection invalid?
[17:16] sammmy: Is there an automatic way to refresh my app when a change has been made to my app.js file?
[17:16] beakybal4: chapel: nope, just doesn't send any data
[17:16] chapel: is it making the connection
[17:16] beakybal4: yeah
[17:16] beakybal4: i get headbeats
[17:16] beakybal4: *heartbeats
[17:17] beakybal4: chapel: and no tweets are getting spewed into the console either
[17:17] beakybal4: :/
[17:17] sammmy: I remember I had this setup a while back with 0.4.0 and cygwin. I think I was using another command line tool to run my app.
[17:17] r04r has joined the channel
[17:17] r04r has joined the channel
[17:18] AntelopeSalad: is there a way to make mocha report the test duration for each test rather than only the total duration at the end?
[17:18] insin: sammmy: forever, nodemon, likely more...
[17:18] bartt has joined the channel
[17:18] tjholowaychuk: AntelopeSalad depends on the reporter itself, some do, the dom one doesn't yet but it will
[17:18] YoY has joined the channel
[17:19] AntelopeSalad: i'm using it server side with 'spec'
[17:19] chapel: beakybal4: so no tweets are coming in
[17:19] chapel: you should test by sending your own messages/events
[17:19] beakybal4: chapel: no tweets are getting to the client
[17:19] AntelopeSalad: i set the slow variable to something really fast (5) and both of my tests take 20ms to do but neither of them show the duration
[17:20] der| has left the channel
[17:20] AntelopeSalad: i'm using 0.14.1 btw
[17:20] beakybal4: chapel: hmm, ok :)
[17:20] tjholowaychuk: AntelopeSalad I have spec only showing them when they're slow-ish
[17:20] rickibalboa has joined the channel
[17:20] tjholowaychuk: which you can alter with --slow
[17:21] AntelopeSalad: yeah i have slow set to 5 atm , is there some hidden low cap preventing it from dropping below a certain value?
[17:21] akshayms_ has joined the channel
[17:22] sammmy: insin: ty.
[17:22] tjholowaychuk: 5ms isnt much try setting it to the 20 or something
[17:22] advatar has joined the channel
[17:22] AntelopeSalad: no matter what i set it to, the tests never report the time -- i've tried 5/20/50/100
[17:22] tjholowaychuk: hm
[17:23] AntelopeSalad: i'll pastebin my setup -- one sec
[17:23] patcito has joined the channel
[17:23] tjholowaychuk: AntelopeSalad http://f.cl.ly/items/233o1K1w2w1K462n0V24/Screen%20Shot%202012-03-12%20at%2010.23.07%20AM.png
[17:23] tjholowaychuk: works for me
[17:23] diogogmt has joined the channel
[17:24] bartt has joined the channel
[17:24] r04r has joined the channel
[17:24] dwhittle has joined the channel
[17:24] Saul has joined the channel
[17:24] AntelopeSalad: http://pastebin.com/736jXcNC
[17:25] franciscallo has joined the channel
[17:25] tjholowaychuk: AntelopeSalad neither of those look like they should be taking long at all
[17:25] tjholowaychuk: try a timeout etc
[17:25] beakybal4: chapel: the tweets are deffo coming in
[17:25] chapel: okay
[17:25] _baton_ has joined the channel
[17:25] beakybal4: i don't think the 'connection' event is happening
[17:25] sammmy: Where's the #expressjs channel?
[17:25] daveman_tn2 has joined the channel
[17:25] AntelopeSalad: 2 tests complete (21ms)
[17:25] dgathright has joined the channel
[17:25] tjholowaychuk: sammmy #express
[17:25] sammmy: Thanks tj. ;P
[17:26] beakybal4: chapel: server side code: http://pastie.org/private/xhbsc89nqvqnbh4ddj0u8a
[17:26] tjholowaychuk: AntelopeSalad that's not just the test-case duration, that's including mocha's internals
[17:26] tjholowaychuk: the entire run duration not just the sum of test-case duration
[17:26] beakybal4: chapel: client side code: http://pastie.org/private/520unbacckcqdirwk2cqw
[17:26] n26 has joined the channel
[17:27] AntelopeSalad: ok, it works
[17:27] AntelopeSalad: i set the slow to 1 and now it's showing
[17:27] beakybal4: chapel: are they mismatched?
[17:27] chapel: beakybal4: you don't have client send on server
[17:27] AntelopeSalad: 4ms and 2ms respectively
[17:27] beakybal4: chapel: the client doesn't need to talk back
[17:28] beakybal4: chapel: just needs to accept the data it's given :3
[17:28] beakybal4: so yeah i'll take that bit out :)
[17:28] beakybal4: was it confusing it? :S
[17:29] benvie: I don't think that would cause an issue
[17:29] pizthewiz has joined the channel
[17:29] beakybal4: mmk
[17:29] beakybal4: it's out, still doing the same thing
[17:29] benvie: hmm
[17:29] r04r has joined the channel
[17:29] benvie: so I see you have a connection event with has a client passed in
[17:30] jsurfer has joined the channel
[17:30] benvie: and then I never see that client referenced anywhere else
[17:30] benvie: oh wit
[17:30] benvie: nevermind there it is
[17:31] Axsuul has joined the channel
[17:31] torless has joined the channel
[17:32] staar2 has joined the channel
[17:32] rklancer has joined the channel
[17:32] benvie: oh this is a npm 0.4.x thing eh
[17:32] benvie: er node
[17:32] beakybal4: 0.6
[17:32] beakybal4: v0.6.12
[17:32] beakybal4: ^^ output from node -v
[17:33] benvie: hmm ntwitter wants 0.4.x when I attempt to install via npm
[17:33] benvie: which may be an issue for you
[17:33] githogori has joined the channel
[17:33] Draco_ has joined the channel
[17:33] beakybal4: benvie: if i comment out the io/client related stuff, it works fine
[17:33] beakybal4: i console.log to my hearts content
[17:33] benvie: oh ok
[17:33] _baton__ has joined the channel
[17:34] beakybal4: but if i put all the io/client related stuff back, no dice.
[17:34] initohen has joined the channel
[17:35] n26 has left the channel
[17:35] initohen: is the url class deprecated these days?
[17:35] initohen: it doesn't look very flexible/useful
[17:35] beakybal4: benvie: chapel: io.on('connection',function(client) is never getting called 0.0
[17:35] benvie: io.sockets.on('connection', function (socket) {
[17:35] beakybal4: that must be client related right?
[17:35] tmcw has joined the channel
[17:35] tmike: initohen: the url class is lovely
[17:36] benvie: try adding the io.sockets.on
[17:36] benvie: instead of io.on
[17:36] arduix has joined the channel
[17:36] beakybal4: mmk
[17:36] beakybal4: okokokoko
[17:36] tmike: Also I believe it's used as the basis for the http class, among others.
[17:36] retornam has joined the channel
[17:36] Saul has joined the channel
[17:36] tmike: Or at least a component of teh http class
[17:36] benvie: since socket.io is actually harnessing multiple transports
[17:36] initohen: oh, i was on a really old version of the documentation
[17:36] beakybal4: i get the tweet console.logged
[17:37] initohen: thanks google
[17:37] beakybal4: but
[17:37] beakybal4: nothing is recieved
[17:37] crutex has joined the channel
[17:37] crutex has joined the channel
[17:37] beakybal4: by the client
[17:37] uchuff has joined the channel
[17:37] sammmy: Does nodemon actually restart the application to where all non-persistent data is gc?
[17:37] initohen: oh nope. yeah, it's just very simple; i can see the advantage, just wanted to know if i was missing something before i replace it in this code :)
[17:37] benvie: oh yeah so
[17:38] benvie: let's see
[17:39] benvie: try client.emit('tweet', tweet)
[17:39] benvie: or something like that
[17:39] beakybal4: mmk
[17:39] benvie: I don't know if socket.io wants you using send directly
[17:39] perezd_ has joined the channel
[17:40] initohen: one other question then: is there a particular reason that http.request and https.request are separate? or can you call http.request with an https url?
[17:40] benvie: instead of emitting and letting it do the actual sending
[17:40] beakybal4: benvie: error
[17:40] beakybal4: http://pastie.org/private/8ici8oqmzbwhyk8wx7ytcq
[17:40] benvie: hmm
[17:41] benvie: well it worked then
[17:41] RLa: initohen, you mean using same code/handler for accepting both http and https.request? yes
[17:41] benvie: I mean it got to the point where it tried to send out the tweet
[17:41] beakybal4: yeah
[17:41] _baton_ has joined the channel
[17:42] benvie: I think that's a client error. Is the client code up somewhere?
[17:42] beakybal4: sure, sec i'll pm if you want the actual server?
[17:42] benvie: it needs to be doing something like
[17:42] ditesh|cassini has joined the channel
[17:42] benvie: io.on('tweet', handler)
[17:42] gr4yscale has joined the channel
[17:42] benvie: er
[17:43] benvie: yeah that's right
[17:43] benvie: socket.on('tweet', handler)
[17:43] beakybal4: yeah
[17:43] Juan77 has joined the channel
[17:43] beakybal4: it does that
[17:44] benvie: just rereading to see if I'm missing something obvious
[17:44] beakybal4: uhh
[17:45] beakybal4: i think i may have gone over the request limit for twitter >.<
[17:45] wendall911 has joined the channel
[17:45] benvie: hah
[17:45] beakybal4: actually
[17:45] beakybal4: no, cos it gets the tweet, then poops.
[17:45] beakybal4: technical term of the day: "poops"
[17:45] benvie: ok show me updated code if you can
[17:46] beakybal4: sure, sec
[17:46] benvie: to what you have there now
[17:46] beakybal4: server: http://pastie.org/private/r95vhqizom8xwq84d9rg
[17:46] benvie: ok too mant m's =D
[17:46] benvie: client.emit
[17:47] beakybal4: client: http://pastie.org/3579141
[17:47] beakybal4: 0.0
[17:47] achiu has joined the channel
[17:47] beakybal4: lolderp
[17:47] joaquin_win_ has joined the channel
[17:47] franciscallo1 has joined the channel
[17:47] beakybal4: :p
[17:47] benvie: i don't always herp
[17:47] benvie: but I I do herp, I derp
[17:47] beakybal4: zomg
[17:47] gr4yscal_ has joined the channel
[17:47] beakybal4: it works
[17:47] beakybal4: :D
[17:47] beakybal4: ACTION hugs benvie
[17:47] beakybal4: :3
[17:47] benvie: awesome, there you go!
[17:48] beakybal4: <333
[17:48] benvie: socket.io I think was workig at a higher level than you expected
[17:48] beakybal4: mm :3
[17:48] benvie: in that you are getting straight into business logic emiting app events
[17:48] benvie: not sockets level stuff like "send"
[17:48] beakybal4: yeah :3
[17:49] konobi: mikeal: ever seen "FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() length exceeds max acceptable value" with request ?
[17:49] beakybal4: this is the firs thing i've done in sockets.io
[17:49] beakybal4: :D
[17:49] beakybal4: hence my derpyness :3
[17:49] conancat has joined the channel
[17:49] benvie: I haven't done a whole lot with it, otherwise I probably would have seen it sooner. Sort of same thing here
[17:49] beakybal4: heh :)
[17:49] benvie: where I was like "oh wait this is emiting stuff"
[17:50] beakybal4: not emmitting stuff
[17:50] beakybal4: xD
[17:50] benvie: yeah hah
[17:50] rklancer has joined the channel
[17:50] benvie: emmit is a guy who invented a time machine
[17:50] beakybal4: if you want credit, what's your website/twitter so I can link to it? :)
[17:51] benvie: https://github.com/Benvie =D
[17:51] kevwil has joined the channel
[17:51] benvie: twitter would be __benvie__ also
[17:51] kevinswiber has joined the channel
[17:52] beakybal4: :D
[17:52] beakybal4: noted :3
[17:52] beakybal4: much <3 for your help :')
[17:52] benvie: no prob, have fun streaming the twits ;)
[17:52] beakybal4: heh thanks :D
[17:52] AdamGoodrich has joined the channel
[17:53] benvie: oh was this gun.io? I have an account on there too, I guess that might be appropriate
[17:53] benvie: hah
[17:53] bizniz98 has joined the channel
[17:53] benvie: I have a profile I mean
[17:53] benvie: not that i have anything to do with it
[17:54] langworthy has joined the channel
[17:54] benvie: but I did fill it out anyway!
[17:54] beakybal4: I just meant something that you'd want people to see :3
[17:54] benvie: hey
[17:55] benvie: I put heart into that profile
[17:55] boltR has joined the channel
[17:55] beakybal4: for others I have contact sites and portfolio sites and such :)
[17:55] kickingvegas has joined the channel
[17:55] benvie: yeah
[17:55] beakybal4: also, are you UK based? :)
[17:55] shadowshell has joined the channel
[17:56] benvie: I'm US based but the hours on which I do magic are not time zone bound
[17:56] beakybal4: ahh
[17:56] beakybal4: dw then
[17:56] beakybal4: it's a UK event, probably would be a fair bit of trouble getting you over here :p
[17:56] drpdrp has joined the channel
[17:56] benvie: hah yeah, that issue comes up a lot cause I'm not on the west coast either
[17:57] beakybal4: ahh :/
[17:57] benvie: so I'm basically as good as at the north pole
[17:57] beakybal4: heh :p
[17:57] beakybal4: you east or central? :)
[17:57] benvie: north carolina isn't the worst place to be
[17:57] beakybal4: ACTION doesn't know his US states :(
[17:58] benvie: oh hah
[17:58] benvie: EST
[17:58] aheckmann has joined the channel
[17:58] beakybal4: ah :p
[17:58] benvie: so it's like the middle
[17:58] kevinswiber: GMT -05:00
[17:58] benvie: 5 hours over the pond, 3 to the west
[17:58] beakybal4: :3
[17:58] beakybal4: ahh :)
[17:58] kevinswiber: Oh, wait, there's daylight savings time now...
[17:58] benvie: er the middle of the two
[17:58] benvie: NC is on the atlantic
[17:58] benvie: oh yeah that just happened
[17:58] beakybal4: :)
[17:59] benvie: hmm so we're DST now I think? -3
[17:59] benvie: -4
[17:59] kevinswiber: Yes.
[17:59] initohen: does url.resolve actually fetch the page?
[17:59] kevinswiber: I'm in Michigan, a state that recognizes the insanity of DST and the global benefit of chili-covered hot dogs.
[18:00] mmalecki: chili-covered hot dogs!
[18:00] benvie: require('url') is a string library onl
[18:00] benvie: same with path
[18:00] benvie: it formats the strings then you have to feed them into stuff like http
[18:00] stephank has joined the channel
[18:00] benvie: or breaks them into objects
[18:00] dshaw_ has joined the channel
[18:00] initohen: ah ok
[18:00] initohen: then i still have to figure out where it's fetching the page :\
[18:00] benvie: url + dns would do actual resolving
[18:01] Country has joined the channel
[18:01] kindbeard has joined the channel
[18:01] _shadowshell has joined the channel
[18:02] EvRide has joined the channel
[18:03] _akshayms has joined the channel
[18:04] benvie: does brogramming discourage platform divisiveness? We need less haters
[18:04] fumanchu182 has joined the channel
[18:05] mmalecki: windows hater reporting in!
[18:05] benvie: reddit is filled with you people
[18:06] benvie: yeah I said it, YOU PEOPLE
[18:06] TheFuzzball has joined the channel
[18:06] mmalecki: benvie: r/progrramming is filled with idiots :)
[18:06] mmalecki: r/programming, even!
[18:06] benvie: r/javascript though even!
[18:06] benvie: http://www.reddit.com/r/javascript/comments/qqplw/i_accidentally_the_whole_30000_lines_of_windows/
[18:06] benvie: look at that hate
[18:07] mmalecki: dude. I got downvoted to oblivion for hating on backward compatibility
[18:07] benvie: I thought the js people would be understanding
[18:07] MartinCleaver has joined the channel
[18:07] MartinCleaver has joined the channel
[18:07] benvie: (as long as it wasn't coffeescript)
[18:08] mmalecki: lol
[18:08] nerdfiles1 has joined the channel
[18:08] nerdfiles1 has left the channel
[18:08] beakybal4: :3
[18:08] beakybal4: ugh
[18:09] beakybal4: stupid access control origin >.<
[18:09] benvie: oh yeah that's a fun one
[18:09] benvie: but wait
[18:09] beakybal4: i'm using the longurl api
[18:09] lohkey has joined the channel
[18:10] beakybal4: which works fine if i use it in php
[18:10] benvie: this is happening on the server though, shouldn't be an CORS stuff right?
[18:10] beakybal4: should i do a proxy or something? >.<
[18:10] beakybal4: oh no, client
[18:10] benvie: wait what's the path here?
[18:10] beakybal4: thinking of using a php thing
[18:10] beakybal4: uhh
[18:10] beakybal4: twitter --> server --> client
[18:10] benvie: yeah that's what I thought
[18:10] beakybal4: i was gonna do all the data processing on the client side
[18:11] chadskidmore has joined the channel
[18:11] benvie: yeah except yuo can't pull twitter directly to the client at your domain
[18:11] beakybal4: ohhh, no i wasn't gonna do that
[18:11] beakybal4: see i've pulled the url from the tweet
[18:11] lohkey: i thought twitter has some JSONP support
[18:11] beakybal4: that was easy enough
[18:11] benvie: does it? Maybe
[18:12] lohkey: yeah, i use it on my blog iirc
[18:12] beakybal4: no i'm expanding the short url
[18:12] beakybal4: *now
[18:12] benvie: oh I see
[18:12] benvie: so you're expanding the url on the client and that's the issue
[18:13] beakybal4: yeah
[18:13] benvie: which is the same thing, needs jsonp or they need to have CORS set up
[18:13] beakybal4: think i'll use php and do it server side :3
[18:13] benvie: or you do it on the backend
[18:13] benvie: you could process it in the node part =D
[18:13] rwaldron has joined the channel
[18:14] beakybal4: I guess :p
[18:14] benvie: there's a good chance they have a CORS thing set up so you can do it all legit like on the client
[18:14] sorensen__ has joined the channel
[18:14] CarterL: has anyone read Up and Running with node.js?
[18:15] beakybal4: uhh
[18:15] benvie: longurl has a jsonp api
[18:15] beakybal4: benvie: so I include cors
[18:16] beakybal4: then what? o.0
[18:16] benvie: well jsonp here so in your client app
[18:16] relling has joined the channel
[18:16] beakybal4: getCors(url,data,hander)
[18:16] benvie: well what is on the client? What sort of frameworks or libs or what are you working with
[18:16] beakybal4: ?
[18:16] beakybal4: jquery currently
[18:16] dnyy has joined the channel
[18:16] beakybal4: but I can add more
[18:16] benvie: ok that works
[18:16] beakybal4: bandwidth isn't an issue
[18:17] benvie: $.get('http://api.longurl.org/v2/services?=', { format: theformat })
[18:17] benvie: also it needs a header apparently, so one sec
[18:19] beakybal4: this is after i've included CORS, right? :3
[18:19] benvie: no disregard that
[18:19] benvie: cors is what replaces jsonp so if they're using jsonp it doesn't matter
[18:19] beakybal4: oh, kk
[18:19] beakybal4: cos i was using .getJSON and it failed :(
[18:20] benvie: just checking jquery's api for setting a custom header
[18:22] benvie: ok aside from that this is closer to what you need
[18:22] jxson has joined the channel
[18:22] benvie: $.getJSON('http://api.longurl.org/v2/expand?callback=?', { url: theUrl, format: theformat })
[18:22] benvie: $.getJSON('http://api.longurl.org/v2/expand?callback=?', { url: theUrl, format: theformat }, callbackHere)
[18:23] qbert has joined the channel
[18:23] qbert: whats the most mature templating engine out there for node ?
[18:24] benvie: er I guess you can skio the format param since that's json by default
[18:24] mattgifford has joined the channel
[18:24] qbert: express compliant*
[18:24] baudehlo: templating engines are never mature. They keep evolving until they can send email and wash your baby's bottom.
[18:24] kevinswiber: Mature as in old or mature as in highest level of activity?
[18:24] beakybal4: mmk lets try that benvie :3
[18:24] benvie: er no you do have to specify json
[18:24] vbabiy has joined the channel
[18:24] orlandovftw has joined the channel
[18:24] kevinswiber:
<%= wash(baby_ass); %>
[18:25] jetienne has joined the channel
[18:25] beakybal4: benvie: same error :(
[18:25] qbert_ has joined the channel
[18:25] johnmdonahue has joined the channel
[18:25] djQuery has joined the channel
[18:25] kevinswiber: qbert_: I know a lot of folks using jade.
[18:25] nicholas_ has joined the channel
[18:25] kevinswiber: (Because it's _popular_ in Express. No other reason.)
[18:25] Wizek has joined the channel
[18:25] qbert_: highest level of activity - ok I'll check it out
[18:25] benvie: function expandURL(url, callback){ $.getJSON('http://api.longurl.org/v2/expand?callback=?', { url: url, format: 'json' }, callback) }
[18:26] djQuery: anyone got a code completion plugin for sublimetext2?
[18:28] beakybal4: benvie: :D
[18:28] beakybal4: w
[18:28] benvie: oops I guess you need this
[18:28] benvie: $.getJSON('http://api.longurl.org/v2/expand?callback=?', { url: theUrl, format: 'json', 'user-agent': 'Application-Name' }, callbackHere)
[18:28] beakybal4: works :D
[18:28] MartinCleaver_ has joined the channel
[18:28] MartinCleaver_ has joined the channel
[18:28] qbert_: kevinswiber, yeah I dont like the feel of jade for some reason, thunder looks more my speed
[18:28] benvie: oh I guess they don't actually check the user-agent then
[18:29] fangel has joined the channel
[18:29] beakybal4: heh :3
[18:29] jkridner_ has joined the channel
[18:29] kevinswiber: qbert_: Why thunder? Just curious.
[18:29] mikedeboer has joined the channel
[18:30] qbert_: kevinswiber, meh mostly because of the tags and = are familiar to me, the rest of it is just javascript evaluation. I'm looking for something simple though
[18:31] baudehlo has joined the channel
[18:32] aslant has joined the channel
[18:32] k1ttty has joined the channel
[18:32] Draco_ has joined the channel
[18:32] beakybal4: ah
[18:33] akshayms_ has joined the channel
[18:33] beakybal4: so benvie, as you may have seen the object returned is long-url
[18:33] yawNO has joined the channel
[18:34] beakybal4: benvie: which i can't get to :(
[18:34] beakybal4: benvie: as if i put var url=data.long-url;
[18:34] benvie: one sec I lost the page
[18:34] beakybal4: benvie: it fails cos javascript doesn't like "-" in it's var names :(
[18:35] benvie: hmm
[18:35] ProjectMoon has joined the channel
[18:35] spcshpopr8r has joined the channel
[18:35] benvie: gimme an example url to expand
[18:35] kmiyashiro_ has joined the channel
[18:35] beakybal4: http://bit.ly/900913
[18:35] beakybal4: you should get google.com :3
[18:36] patcito has joined the channel
[18:36] ProjectMoon: does anyone here have a no.de smartmachine and have issues getting npm to download a very few recursive dependencies (connect 1.8.5 specifically)
[18:36] benvie: their docs are dumb and don't actually show the response
[18:36] ProjectMoon: ?
[18:36] adrianF has joined the channel
[18:36] beakybal4: benvie: it returns a long-url object
[18:37] benvie: oh here we go
[18:37] kitt has joined the channel
[18:37] benvie: function expandURL(url, callback){ $.getJSON('http://api.longurl.org/v2/expand?callback=?', { url: url, format: 'json' }, function(a,b){ callback(a['long-url']) }) }
[18:38] mlmorg has left the channel
[18:38] beakybal4: <333
[18:38] Phoenixz has joined the channel
[18:38] benvie: doesn't handle errors though!
[18:39] beakybal4: benvie: ah
[18:39] beakybal4: benvie: what if there's an error 400?
[18:39] Vespakoen has joined the channel
[18:39] benvie: you'll want to expand it a little bit
[18:39] beakybal4: like there is if the short url isn't short but a long one nohomo
[18:39] benvie: to check what 'a' is in the response
[18:40] blup has joined the channel
[18:40] Phoenixz: I have a very weird node exception.. Same code string.replace('%key%', variable), on server gives an exception String.prototype.replace called on null or undefined, but on my dev computer no problem.. I checked the string, its a string with content.. I checked variable, its undefined.. okay, I make the variable "undefined" on my dev computer, still no error.. What might this be?
[18:40] benvie: oh it errors correctly kind of
[18:41] mundanity has joined the channel
[18:41] zodiak has joined the channel
[18:41] benvie: when I put in a url that doesn't exist apparently the service simply makes it for me
[18:41] ProjectMoon: Phoenixz: maybe swallowing exception
[18:41] sammmy: My views are acting all quirky. I have an HTML5 doctype, . Maybe I'm missing the mime-type? Doesn't Express server the appropriete mime-type for me?
[18:41] benvie: which isn't exactly helpful
[18:42] beakybal4: o.0
[18:42] aabt has joined the channel
[18:42] sammmy: Looks like it's sending the right content-type..
[18:42] Phoenixz: ProjectMoon: a what?
[18:42] ProjectMoon: Phoenixz: where there is an error but it does not get raised
[18:43] robi42 has joined the channel
[18:43] Phoenixz: ProjectMoon: Errr.. And that happens how? Maybe an error level filter, like PHP? (strict, warning, notice, etc) ?
[18:43] ProjectMoon: Phoenixz: wait, you made the variable undefined or "undefined"
[18:43] benvie: expandURL('http://bit.ly/fakeurl', function(url){ console.log(url) })
[18:44] benvie: lol
[18:44] Phoenixz: ProjectMoon: With replicating this, it does not make sense.. IF "string" is undefined, it does not have a method replace().. But replace on a string has no problem with replacing with NULL or undefined..
[18:44] benvie: http://bit.ly/fakeurl is the url
[18:44] Phoenixz: ProjectMoon: undefined
[18:44] beakybal4: benvie: I still get http://pastie.org/3579498 randomly >.<
[18:44] sammmy: nevermind. Figured it out.
[18:44] Phoenixz: string.replace('foo', undefined); is, so far, no problem...
[18:44] benvie: oh so I think first off
[18:45] benvie: you need to have an actual client.on('error', logOrSomething)
[18:45] benvie: so it can propagate errors to you
[18:45] Phoenixz: "foobar".replace('foo', undefined); gives me undefinedbar...
[18:45] ProjectMoon: Phoenixz: yeah
[18:45] benvie: and then you can get to what the actual error source is
[18:45] beakybal4: mmk ;3
[18:45] kevinswiber: sammmy: Define "all quirky."
[18:45] ProjectMoon: Phoenixz: are there different versions of node? maybe strict mode?
[18:45] Hanspolo has joined the channel
[18:46] sammmy: kevinswiber: nevermind. I figured it out. xP
[18:46] benvie: that would go directly after the io.socket.on line
[18:47] Phoenixz: ProjectMoon: versions are the same.. How can I check strict mode?
[18:47] benvie: oh also you might need another one
[18:47] beakybal4: benvie: much <3 :3
[18:47] IrishGringo has joined the channel
[18:47] benvie: one for the twit stream too so in THERE
[18:47] beakybal4: benvie: brb dinner, can you pm this all to me? :3
[18:47] benvie: in the twit.stream
[18:48] benvie: you also need stream.on('error', logger)
[18:48] beakybal4: benvie: PMz
[18:48] beakybal4: benvie: it to meh
[18:48] beakybal4: benvie: cos I brb ;3
[18:48] benvie: sure
[18:48] beakybal4: <3
[18:48] beakybal4: brb
[18:48] ProjectMoon: Phoenixz: well, apparently strict mode doesn't matter for this case. it's enabled by "use strict"; at the top of a script
[18:48] ProjectMoon: Phoenixz: but replace does not throw that error in strict mode
[18:48] Vespakoen has joined the channel
[18:49] Phoenixz: ProjectMoon: is that not documented or something? Google gives nothing on that
[18:49] ProjectMoon: Phoenixz: are you using String.prototype.replace.call/apply, or just str.replace('stuff', 'otherstuff'). ECMAScript strict mode is what you would google for
[18:49] Phoenixz: ProjectMoon: the error does not even make sense... It says that I used replace on an undefined or null variable.. But If a variable is null or undefined, it does not have replace() method..
[18:50] ProjectMoon: Phoenixz: yeah i know
[18:50] Phoenixz: ProjectMoon: Just string.replace (well, its object.otherobject.string.replace())
[18:50] ProjectMoon: Phoenixz: i reproduced it by calling it via prototype
[18:50] ProjectMoon: TypeError: String.prototype.replace called on null or undefined
[18:50] ProjectMoon: via String.prototype.replace.call(null, 'asdf', 'adsf');
[18:51] ProjectMoon: Phoenixz: maybe using a shim that overrides string replace and then calls it via prototype internally for some reason?
[18:51] argami has joined the channel
[18:51] gy4e8d has joined the channel
[18:52] redir has joined the channel
[18:52] graeme_f has joined the channel
[18:53] doug has left the channel
[18:53] AvianFlu has joined the channel
[18:53] ProjectMoon: is anyone having issues deploying npm packages to no.de? when i deploy mine it fails to download 2 recursive dependencies
[18:53] disappearedng has joined the channel
[18:54] isaacs: ProjectMoon: which dependencies?
[18:54] sechrist_: isaacs: is there a defined retention for the npm repo?
[18:54] ProjectMoon: isaacs: full output is here https://gist.github.com/2023799
[18:54] ProjectMoon: isaacs: but
[18:54] jarek has joined the channel
[18:54] ProjectMoon: isaacs: connect-mongo 0.1.7 and express 2.5.8
[18:55] jarek: Hi
[18:55] Maxani has joined the channel
[18:55] jarek: is it possible to compile Node.js without support for SSL?
[18:55] ProjectMoon: isaacs: connect 1.8.5 just seems to randomly be skipped, along with a mongodb dependency under connect-mongo. downloads fine on my own machine though
[18:55] Eruadan has joined the channel
[18:55] mraleph has joined the channel
[18:55] sechrist_: jarek: if I recall, it used to not compile it in if it didn't see the openssl-dev package, but there's probably a flag
[18:56] jarek: google says there is "--without-ssl" option
[18:56] jarek: but when I run "./configure -without-ssl" I'm getting:
[18:56] jarek: waf-light: error: no such option: -w
[18:56] tmike: jarek: --
[18:56] isaacs: jarek: two --
[18:57] Phoenixz: ProjectMoon: weird.. I narrowed it down to this... string.replace('foobar', undefined); Causes crash on server, nothing on local dev machine.. both same node versions..
[18:57] jarek: isaacs: thanks, it works :)
[18:57] materialdesigner has joined the channel
[18:57] jarek: will WebSockets work without SSL?
[18:58] bingomanatee_: way to bury the lead
[18:58] spolu has joined the channel
[18:58] muddo has joined the channel
[18:59] ProjectMoon: Phoenixz: what version?
[18:59] Marak_ has joined the channel
[19:00] qbert_: anyone know if mustaches works with express ?
[19:01] ProjectMoon: Phoenixz: you should probably just not pass undefined/null into string.replace. javascript's type conversion is very weird and it is better to keep that beast under control than to let it run wild
[19:01] lohkey: you should be able to get just about any template language to work with express qbert_
[19:01] lohkey: it's all adaptor based
[19:03] ryanrolds_w_ has joined the channel
[19:03] gr4yscale has joined the channel
[19:03] cezary__ has joined the channel
[19:04] akuiraz has joined the channel
[19:04] gr4yscal_ has joined the channel
[19:06] akuira has joined the channel
[19:07] qbert_: lohkey, I can't seem to get anything working actually, does this look right http://pastebin.com/jkyQ3aiE ?
[19:08] qbert_: then I just hit, localhost/printTemplate.html -- its not getting evaluated just prints out <% if ( true) %> , etc
[19:08] theCole has joined the channel
[19:09] ashtuchkin has joined the channel
[19:09] akuiraz has joined the channel
[19:09] kevwil has joined the channel
[19:10] mAritz has joined the channel
[19:11] joshfinnie has joined the channel
[19:12] jarek_ has joined the channel
[19:12] rickibaloba` has joined the channel
[19:12] `3rdEden has joined the channel
[19:14] boltR has joined the channel
[19:14] theBrettman has joined the channel
[19:15] akuira has joined the channel
[19:15] ashtuchkin: Guys need your opinion on what should be the default behavior of Backbone Model#fetch: https://github.com/documentcloud/backbone/issues/1069
[19:15] theBrettman_ has joined the channel
[19:16] kwmiebach has joined the channel
[19:16] benvie: .. 'catb0t wake up'
[19:17] erichynds has joined the channel
[19:18] mikeal has joined the channel
[19:19] FACEFOX has joined the channel
[19:20] theBrettman has joined the channel
[19:20] pgte has joined the channel
[19:21] joaquin_win_ has joined the channel
[19:21] automata has joined the channel
[19:22] pgte has joined the channel
[19:22] robi42 has joined the channel
[19:22] crutex has joined the channel
[19:22] crutex has joined the channel
[19:24] harthur has joined the channel
[19:25] Shelly has joined the channel
[19:25] Shelly: hi.. anybody here?
[19:25] ProjectMoon: Shelly: maybe
[19:25] dekroning has joined the channel
[19:26] Shelly: why thi error everywhere?
[19:26] Shelly: TypeError: Cannot call method 'toString' of undefined
[19:26] floriank: depends :P
[19:26] Maxani has joined the channel
[19:26] nicholasf: hrm, I'm having trouble installing webkit-server. It needs QT bindings installed but doesnt say how to get them: https://github.com/tristandunn/webkit-server
[19:26] Shelly: xml2js, xml2json, njst
[19:26] nicholasf: anyone done this?
[19:26] Shelly: whats wrong?
[19:26] ProjectMoon: Shelly: it means it is trying to call toString() on a reference that does not exist
[19:26] Shelly: node v0.6.12
[19:26] topfunky has joined the channel
[19:27] nicholasf: hey topaxi
[19:27] nicholasf: topfunky, rather
[19:27] Shelly: a know what it means...
[19:27] benvie: oh the toString error
[19:27] Shelly: a dont know why
[19:27] topfunky: nicholasf: Hey!
[19:27] benvie: it happens when you have objects witha null prototype
[19:27] benvie: because internally js is trying to call obj.toString
[19:27] nicholasf: topfunky: we met briefly when you were in Melbourne a while ago :)
[19:27] Shelly: benvie hmm maybe
[19:27] Karmaon has joined the channel
[19:27] benvie: and since it has no prototyp and you didn't give a toString function
[19:27] Shelly: but i install via npm xml2js
[19:27] topfunky: nicholasf: Cool. Great city.
[19:27] benvie: it has no path to victory
[19:27] Shelly: and run simple example
[19:28] benvie: Object.create(null)+''
[19:28] benvie: oh not of the error
[19:28] benvie: well that's the cause of it, one way or another
[19:28] benvie: as to where it's happening, that's the more specific problem
[19:28] benvie: but that's the cause of it
[19:28] topfunky: "npm search mocha" just hangs. Am I using it correctly?
[19:28] ningu has joined the channel
[19:28] chadskidmore has joined the channel
[19:29] topfunky: argh...just very slow
[19:29] tjholowaychuk: topfunky it's just super slow
[19:29] topfunky: ok
[19:29] nicholasf: does anyone here have everyauth tests running on their systen? I can't hunt down the right qt bindings lib for webkit-server ...
[19:29] ningu: if I have nginx sending requests to my node.js app, can I have nginx also gzip compress the node app's responses?
[19:29] tjholowaychuk: not sure why
[19:29] topfunky: also, I can't get mocha to run tests in subdirectories of "test". Is there a way?
[19:29] theCole has joined the channel
[19:29] tjholowaychuk: topfunky it just accepts a "dumb" list of files
[19:29] tjholowaychuk: so you can use whatever globs you need
[19:29] topfunky: ok, cool
[19:30] Shelly: benvie what your vers of node?
[19:30] Shelly: u havve anything from xml2js, xml2json, njst ?
[19:30] benvie: a dev one but that's a general js problem
[19:30] Shelly: can chck?
[19:30] akuira85 has joined the channel
[19:30] benvie: xml2js was it?
[19:30] benvie: the module name
[19:30] Shelly: xml parser
[19:30] Cromulent has joined the channel
[19:30] stafamus has joined the channel
[19:30] Shelly: yeap.. module name
[19:30] benvie: ooh generally
[19:31] ningu: I have gzip working on nginx in general for its static requests, but it seems to not do it once it hands off the response to node
[19:31] Shelly: its baaaaaaaaad
[19:31] Marak has joined the channel
[19:31] Shelly: node from off site, lib from npm
[19:31] benvie: yeah sec
[19:32] ningu: and apparently it's possible to do so, but I can't figure out how
[19:32] Shelly: result - lolerror
[19:32] Shelly: maybe install trunk version?
[19:33] benvie: hmm
[19:33] vam3c has joined the channel
[19:33] ningu: oh, duh. I think I know what I did wrong.
[19:33] insin: wow, "please write the tests and docs for my web framework"
[19:34] benvie: I had used a module that had better results converting xml to js but can't find it in my list
[19:34] ningu: insin: ?
[19:34] insin: mailing list
[19:35] Qalqi has joined the channel
[19:35] Shelly: benvie magick?)
[19:35] benvie: I think that last `npm update -f` I did may have been ill-advised
[19:35] pizthewiz_ has joined the channel
[19:36] benvie: since things...are missing
[19:36] benvie: but that's what I get
[19:36] Shelly: but u think what bad modules?
[19:37] benvie: maybe or it's bad xml
[19:37] Saul has joined the channel
[19:37] benvie: either way it's bad error handling or it's broken
[19:37] akuira has joined the channel
[19:37] Shelly: one sec
[19:37] Shelly: last check
[19:37] benvie: there's multiple libraries for this task at least
[19:38] disappearedng has joined the channel
[19:38] argami has joined the channel
[19:38] disappearedng has joined the channel
[19:38] Shelly: lol
[19:39] Shelly: fs.fileRead return undefined data
[19:39] Shelly: hmm
[19:39] CarterL: so when you are doing somethign like http.createServer(function(req, res){...}); the function is like a parameter and inside of that, it has its own parameters?
[19:39] benvie: fs.readFile
[19:39] theBrettman_ has joined the channel
[19:39] benvie: that would do it
[19:39] benvie: it actually is trying to do
[19:39] Shelly: yeap
[19:39] benvie: null.toString()
[19:39] Shelly: __dirname + filename
[19:39] benvie: essentially
[19:39] Shelly: im stupid
[19:40] Shelly: thx a lot from snowing russia ;)
[19:40] theCole has joined the channel
[19:40] benvie: I know how the snow can warp reality
[19:40] context: carterl: function can have parameters
[19:41] CarterL: context: yes
[19:42] ningu: nm I figured out my nginx thing. had to do with mime types :)
[19:42] CarterL: context: i didn't know that you could have a function as a parameter hehe
[19:42] context: carterl: its a callback. thats how most of JS works.
[19:42] loffe has joined the channel
[19:42] context: carterl: never used jquery ?
[19:42] CarterL: context: no
[19:43] context: oh.
[19:43] context: even C lets you pass functions as paramteres
[19:43] kitt has joined the channel
[19:43] kitt has joined the channel
[19:43] CarterL: it's been a long time since I've programmed C
[19:45] brianleroux has joined the channel
[19:45] larsschenk1 has joined the channel
[19:45] Eruadan: javascript is nice, it can create some really deep layer abstractions
[19:45] st_luke has joined the channel
[19:45] floriank has left the channel
[19:45] akuira85 has joined the channel
[19:45] thinkt4nk has joined the channel
[19:49] mikedeboer has joined the channel
[19:50] vmliu has joined the channel
[19:50] _baton_ has joined the channel
[19:50] CIA-102: node: 03isaacs 07master * ra10cfba 10/ (lib/module.js test/simple/test-module-loading.js): module: remove 'exited', replace 'children' array - http://git.io/8R2-6Q
[19:50] CIA-102: node: 03Łukasz Walukiewicz 07master * r677c2c1 10/ (lib/url.js test/simple/test-url.js): Ignore an empty port component when parsing URLs. - http://git.io/ElEYZg
[19:50] zackattack has joined the channel
[19:50] jomoho2 has joined the channel
[19:51] muddo has joined the channel
[19:53] panchot has joined the channel
[19:53] Skaag has joined the channel
[19:54] dobber has joined the channel
[19:54] qbert_: how would I change the open/close tags for ejs using express ?
[19:55] qbert_: nevermind :)
[19:56] shadowshell has joined the channel
[19:56] MrTopf has joined the channel
[19:56] Swizec has joined the channel
[19:58] fomatin has joined the channel
[19:58] topfunky: I wish more shells could do globs like test/**/*
[19:58] robi42 has joined the channel
[19:58] rtgibbons has joined the channel
[20:01] pizthewiz has joined the channel
[20:01] tmcw has joined the channel
[20:01] Fuu has joined the channel
[20:01] harthur has joined the channel
[20:02] initohen\ has joined the channel
[20:02] cjheath has joined the channel
[20:02] deedubs: anyone using Vagrant and node have an solution to getting around compiled modules
[20:02] gzmask has joined the channel
[20:03] gzmask: how do I execute function by its name in a string without eval in NodeJS when I don't have the window object?
[20:04] Saul has joined the channel
[20:06] ningu: gzmask: I don't think you can do that if it isn't attached to a particular object... not sure, though
[20:06] context: gzmask: how do you "not have" the window object?
[20:06] adamkitt_ has joined the channel
[20:06] context: its accessible everywhere
[20:06] ningu: context: erm, not server-side
[20:06] gzmask: I got "ReferenceError: window is not defined"
[20:06] ningu: gzmask: try global[foo]
[20:06] context: object[your_string](params...);
[20:07] mikedeboer has joined the channel
[20:07] ningu: yes, the point is he doesn't have an object
[20:07] ningu: it's at the top level
[20:07] gzmask: global works :D =b
[20:07] context: id say he needs to rethink what he is doing...
[20:07] mehlah_ has joined the channel
[20:08] ProjectMoon: context: yes
[20:08] ProjectMoon: should probably at least use an object to collect all the functions, instead of putting them in the global space
[20:09] AviMarcus has joined the channel
[20:09] indexzero has joined the channel
[20:09] slloyd has joined the channel
[20:09] akuiraz has joined the channel
[20:10] gzmask: I see, thanks. I will use an object instead of global
[20:10] ProjectMoon: var funcs = {}; funcs.myfunc = function() { ... }
[20:10] ProjectMoon: etc
[20:10] topfunky: deedubs: Did you try "npm rebuild" to recompile?
[20:11] Eruadan: I was reading yesterday that node for beginners book, and i realized what node really is. It's not about only js in the server or programming web applications, it's almost another paradigm. crazy stuff.
[20:11] deedubs: topfunky: yeah but it just seems awkward to have to ssh into the machine and rebuild the packages
[20:11] riverraid has joined the channel
[20:12] deedubs: topfunky: is it weird your IRC messages are in your voice in my head?
[20:12] ningu: Eruadan: well, basically node provides a library and environment so js can be used server side to do things other scripting languages do
[20:12] topfunky: deedubs: You could use a script: ssh me@machine.com "cd app && npm rebuild"
[20:12] topfunky: deedubs: heh
[20:12] CarterL: Eruadan: do you like that book?
[20:12] ningu: I don't know if it's really a new paradigm -- it's new for js, true
[20:13] whitman has joined the channel
[20:14] Eruadan: it's a new paradigm in a sense that you not going to make a forum with node, you want to make something that uses it's capabilities
[20:14] Eruadan: CarterL, yes and no
[20:15] initohen\: the order of keys in objects is undefined in javascript, so does that mean that i can never count on http.request placing the supplied headers in the order i specify them?
[20:15] Eruadan: i like the general idea of the book, but i think he got lost a bit in the examples
[20:15] fomatin has joined the channel
[20:15] sechrist_: well the asynchronous stuff has been around as long as interactive UIs have
[20:15] joshontheweb has joined the channel
[20:15] sechrist_: but the syntax obviously is different
[20:16] CarterL: Eruadan: i see
[20:16] ningu: Eruadan: I don't know, I like js and what node offers so I'm liable to code up a simple site with it too, but I take your point
[20:16] tmike: initohen\: the spec doesn't define it, but the major engines implement keys with insertion order
[20:16] initohen: i guess it's more a question of "have they stated an intent"
[20:16] initohen: because it's bad form to rely on something that may change in the future :)
[20:16] tmike: I read somewhere today that they're looking to spec it AS order of insertion in ES6
[20:17] initohen: nice
[20:17] initohen: hopefully so!
[20:17] tmike: don't take my word for it though
[20:17] ningu: initohen: no, it's not undefined, is it? I thought collection order was predictable based on what order the keys had been added
[20:17] initohen: anyway, all i have to do is not upgrade node for a while
[20:17] ningu: initohen: but if you mean in a browser I wouldn't rely on that
[20:17] ProjectMoon: ningu: it is undefined
[20:17] redir has joined the channel
[20:17] sechrist has joined the channel
[20:17] ProjectMoon: ningu: using for in loop will iterate differently independent of order of insertion
[20:17] ProjectMoon: ran into it before
[20:18] umren has joined the channel
[20:18] ningu: ProjectMoon: that's not the same
[20:18] Eruadan: ningu, that is cool, it probably let's you get a lot of experience with it.
[20:18] ningu: for ... in is not guaranteed to be in any order
[20:18] ningu: which doesn't mean there is no order
[20:18] mandric has joined the channel
[20:19] ProjectMoon: ningu: well how else would you iterate over them with the base language (e.g. no iterator provided by the library/framework)?
[20:19] initohen: grr, any of you familiar with coffeescript?
[20:19] ProjectMoon: guess you could use Object.keys
[20:19] ProjectMoon: but i don't know if that produces the keys in any specific order
[20:19] initohen: i'm just trying to remove null keys from an object but :\
[20:19] yaymukund: initohen: a bit, but see #coffeescript
[20:20] initohen: nobody answered in there :)
[20:20] yaymukund: oh
[20:20] Eruadan: but what i meant, is that now i don't see ror and php being replaced by node. most things on the web do not need such power, just sayin....
[20:20] initohen: google is being hard to search for this term too
[20:20] initohen: i see that delete is what i want, but it doesn't seem to work according to the demo code on the site
[20:20] JmZ has joined the channel
[20:21] ningu: ProjectMoon: I'm not sure, actually, but I use several things where the code is sensitive to the order
[20:21] yaymukund: initohen: delete works for me in coffee -i. can you send a gist?
[20:22] initohen: is there something wrong with 'delete @foo[key] for key in @foo' ?
[20:22] initohen: er, besides it deleting everything haha
[20:22] sechrist: if order is important and it's a linear increment, i++ has always kept my loops in order :)
[20:22] sechrist: and using the index
[20:22] soapyillusions has joined the channel
[20:22] ProjectMoon: sechrist: i think this is for things that are not integer indices
[20:22] sechrist: and if it's a dictionary I usually just use object.keys()
[20:23] sechrist: but the order there might be unpleasant
[20:23] zanes has joined the channel
[20:23] ProjectMoon: initohen: that should work. what about it is not working?
[20:23] initohen: i put console.log(@foo) and the object printed still contains the null keys
[20:23] initohen: (when @foo[key] is null)
[20:24] yaymukund: initohen: it deletes all the others?
[20:24] initohen: nope
[20:24] yaymukund: initohen: (the non-nulls)
[20:24] yaymukund: initohen: yeah. it doesnt delete any of em if I run it in coffee -i
[20:24] initohen: :|
[20:24] ProjectMoon: well what does it do
[20:24] ProjectMoon: when you print instead
[20:24] ProjectMoon: is it actually hitting all the keys?
[20:24] initohen: prints the unaltered object apparently
[20:24] ProjectMoon: well i mean print each key
[20:25] ProjectMoon: if it prints all the keys (including null values) it should delete them all too
[20:25] ProjectMoon: welll
[20:25] ProjectMoon: you are deleting the values
[20:25] initohen: ha, you're correct
[20:25] CarlosC has joined the channel
[20:25] initohen: it doesn't loop it at all
[20:25] initohen: it's for arrays only i guess
[20:25] yaymukund: initohen: yes. for key in object doesnt work.
[20:25] argami has joined the channel
[20:26] joshfinnie has joined the channel
[20:26] yaymukund: oh
[20:26] ProjectMoon: initohen: read the comprehensions docs
[20:26] yaymukund: initohen: you want for key of object
[20:26] ProjectMoon: ^
[20:26] initohen: i worked it out :)
[20:26] initohen: i was trying to ... comprehend the comprehension docs
[20:26] LuckySMack has joined the channel
[20:27] initohen: they're very cute but not that informative if you are looking for a specific piece of information
[20:27] initohen: anyway, yay! now i can get back to writing actual javascript
[20:27] initohen: thanks for the help
[20:27] yaymukund: no problem.
[20:27] akshayms_ has joined the channel
[20:27] argami has joined the channel
[20:28] sechrist: is the topic supposed to be like lil wayne saying he is music?
[20:28] sechrist: heh
[20:28] Juan77 has joined the channel
[20:28] tmike: I don't know what that is.
[20:28] muddo has joined the channel
[20:29] sechrist: he has a tattoo that claims "I am music"
[20:29] tmike: I see
[20:29] epokmedia has joined the channel
[20:32] devongovett has joined the channel
[20:32] yawNO has joined the channel
[20:33] argami_ has joined the channel
[20:33] RocketJSquirrel has joined the channel
[20:34] hackband has joined the channel
[20:38] disappearedng has joined the channel
[20:38] booo has joined the channel
[20:40] argami__ has joined the channel
[20:41] PPaul has joined the channel
[20:41] PPaul: hey guys, i'm having a problem with npm + executing scripts via 'sh filename'
[20:41] MerlinDMC has joined the channel
[20:42] PPaul: i install couchapp via this site's instructions https://github.com/mikeal/node.couchapp.js
[20:42] PPaul: it works fine, but my shell script breaks
[20:42] PPaul: shell script can't find couchapp
[20:42] FACEFOX has joined the channel
[20:43] topfunky: where is couchapp located? Does "which couchapp" return a path?
[20:43] pthrash has joined the channel
[20:43] topfunky: Or is it in node_modules/couchapp ....
[20:43] pthrash: q/quit
[20:45] PPaul: /usr/local/bin/couchapp
[20:45] PPaul: same output when i use sh
[20:46] PPaul: i think there is a symlink to my home folder though
[20:46] PPaul: and when i use 'sh' it can't see my home folder (does this sound right?)
[20:46] RLa: yes
[20:46] PPaul: i somehow had this working before
[20:47] PPaul: just upgraded node + npm and now things are broken
[20:47] gzmask has joined the channel
[20:47] PPaul: need to understand how to fix my mess
[20:47] RLa: debug what PATH is when script should execute
[20:48] PPaul: bash: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
[20:49] PPaul: i had some $PATH stuff at the bottom of my .bachrc file that i deleted (thought that i didn't need it)... maybe this could be the problem
[20:50] PPaul: but, it's not part of the install instructions
[20:51] jetienne has joined the channel
[20:51] topfunky: g
[20:51] topfunky: arg
[20:51] topfunky: wrong window
[20:53] ryanrolds_w has joined the channel
[20:53] spolu has joined the channel
[20:55] dephex has joined the channel
[20:55] piscisaureus_ has joined the channel
[20:57] PPaul: this is my setup https://gist.github.com/2024631
[20:58] umren_ has joined the channel
[20:59] vmliu has joined the channel
[21:00] riverrai_ has joined the channel
[21:01] rtgibbon_ has joined the channel
[21:02] PPaul: i killed the symlink and copied the couchapp dir over it, but i still get errors
[21:03] sandfox has joined the channel
[21:04] adamkittelson has joined the channel
[21:05] kevwil has joined the channel
[21:05] _baton_ has joined the channel
[21:06] rwaldron has joined the channel
[21:06] dilvie has joined the channel
[21:06] akasha has joined the channel
[21:07] misza222 has joined the channel
[21:07] theBrettman has joined the channel
[21:08] peregrine81 has joined the channel
[21:09] Vainoharhainen has joined the channel
[21:10] netbyte has joined the channel
[21:11] qbert__ has joined the channel
[21:11] boltR has joined the channel
[21:11] netbyte: Hi
[21:11] PPaul: hi
[21:12] adambeynon has joined the channel
[21:12] Skaag_ has joined the channel
[21:12] thinkt4nk has joined the channel
[21:12] Karmaon: is node more cpu or memory intensive?
[21:13] spacesuit has joined the channel
[21:14] jetienne: Karmaon: yes and no
[21:14] eboy has joined the channel
[21:14] jetienne: Karmaon: this question cant be answered
[21:14] PPaul: does node solve the halting problem?
[21:14] eboy: Is there some way to setKeepAlive on a "tls" connection?
[21:14] eboy: PPaul: No.
[21:15] initohen: i wrote a program to solve the halting problem
[21:15] initohen: unfortunately it halted before completion
[21:15] PPaul: awesome!
[21:15] PPaul: damn
[21:15] eboy: The halting problem is already solved. It's proven impossible.
[21:15] PPaul: i need to solve the halting problem for my thesis
[21:15] gzmask: Can I do this... A.prototype.run = func1; a = new A(); loop(a.run); A.prototype.run = func2; //then a.run switches to behaviour of func2
[21:15] eboy: Is there some way to setKeepAlive on a "tls" connection?
[21:16] PPaul: gzmask you just made an insecure program
[21:16] stonebranch has joined the channel
[21:16] PPaul: way to go!
[21:16] josh-k has joined the channel
[21:16] gzmask: PPaul: why so?
[21:16] PPaul: you are changing the behaviour of a function
[21:16] PPaul: how is the user supposed to trust that?
[21:16] initohen: pfft
[21:16] gzmask: PPaul: that's the point of my game, it's a livecoding game
[21:16] initohen: users are supposed to trust programs, programs can't trust the user
[21:16] initohen: :P
[21:16] PPaul: oh
[21:17] gzmask: a.run is running in a sandbox anyways
[21:17] PPaul: i think prototype may cause problems
[21:17] PPaul: you can do a.run = ...
[21:17] PPaul: instead of a.prototype.run
[21:17] gzmask: PPaul: it's not even changing to run on func2 using prototype.run = func2
[21:18] PPaul: i think you can do this
[21:18] PPaul: with what you wrote
[21:18] jetienne has joined the channel
[21:18] gzmask: PPaul: what if they are in a string and I eval them?
[21:18] spacesuit has joined the channel
[21:19] PPaul: you can do this without prototypes and save yourself headaches
[21:19] PPaul: make a factory function
[21:19] PPaul: you want to eval shit now?
[21:19] PPaul: you can eval, though
[21:20] PPaul: factory function pattern is better IMO
[21:20] PPaul: easier to TEST too
[21:20] PPaul: TEST TEST TEST
[21:20] gzmask: PPaul: but still needs to be eval right?
[21:20] PPaul: yes
[21:20] PPaul: unless you want to code your own eval?
[21:20] _baton__ has joined the channel
[21:21] PPaul: you are asking for your program to get hacked
[21:21] gzmask: PPaul: bascially, yea
[21:21] kevwil has joined the channel
[21:21] PPaul: eval non-valid JS
[21:21] PPaul: or malicious JS
[21:21] langpavel has joined the channel
[21:22] PPaul: in this case, i really recommend you stay away from prototypes
[21:22] gzmask: PPaul: that's why I am writing another jail for the whole Node process
[21:22] PPaul: cool
[21:22] PPaul: sandbox to jail
[21:23] jsurfer has joined the channel
[21:23] PPaul: wait a sec, i'll give you a video on secure JS
[21:23] Daegalus: benvie: you around?
[21:23] PPaul: http://www.infoq.com/presentations/Secure-Mashups-in-ECMAScript-5
[21:24] lupomontero has joined the channel
[21:25] samBiotic has joined the channel
[21:26] rauchg has joined the channel
[21:26] hipsterslapfight has joined the channel
[21:26] level09 has joined the channel
[21:26] lohkey has joined the channel
[21:26] benvie: yeah
[21:26] benvie: Daegalus: hey
[21:27] joshsmith has joined the channel
[21:27] vmliu has joined the channel
[21:28] aheckmann has joined the channel
[21:29] Daegalus: benvie: I was curious, are you going to work more on the chrome-nodium bindings? I think thats a valuable project, especially for web game makers.And is the plan to contribute it to Tide?
[21:30] tornad has joined the channel
[21:30] M1l3n1um has joined the channel
[21:31] eboy: Is there some way to setKeepAlive on a "tls" connection?
[21:31] Cromulent has joined the channel
[21:32] bnoordhuis: eboy: the CryptoStream object has a .setKeepAlive() method that proxies the call to the underlying net.Socket object
[21:32] thetristan has joined the channel
[21:33] eboy: bnoordhuis: But not the CleartextStream object which tls.connect() returns?
[21:33] bicranial has joined the channel
[21:34] bnoordhuis: eboy: CleartextStream inherits from CryptoStream
[21:34] _baton_ has joined the channel
[21:34] heavysixer has joined the channel
[21:34] tttthet has joined the channel
[21:34] bnoordhuis: eboy: oh, i remember... that method was added quite recently
[21:34] eboy: bnoordhuis: I have node v0.6.12
[21:35] bnoordhuis: yeah, it's only in master - commit 78db1873
[21:35] gzmask: PPaul: I can see why you are against prototype. but I am using a second level of prototype to make the first level prototype untouchable, but yeah, users can still prototype on prototype thus I 'll need massive regular expression in my program. Might be good to give up prototype
[21:35] eboy: It exists on net.createConnection streams in my version.
[21:35] theCole has left the channel
[21:36] iangreenleaf: caolanm: When using async's waterfall, is it possible/advisable to modify the array of tasks while it's in the middle of processing?
[21:36] bnoordhuis: eboy: yes, but not on tls.CryptoStream
[21:36] PPaul: function factories of functions
[21:36] eboy: bnoordhuis: Thanks!
[21:36] relling has joined the channel
[21:36] PPaul: modify?
[21:36] PPaul: LOL
[21:37] bnoordhuis: eboy: you can cherry-pick the commit, it should apply cleanly
[21:37] iangreenleaf: I want to: see if db exists -> if so, destroy -> either way, create
[21:37] PPaul: spin up another async process
[21:37] caolanm: iangreenleaf: there isn't a test for it, put it that way
[21:37] iangreenleaf: caolanm: k :)
[21:37] qjcg has joined the channel
[21:38] daleharvey: mikeal: are you gonna be working on pouchdb / want me to send pull requests, or shall we just wait until it fully works?
[21:38] enmand has joined the channel
[21:38] iangreenleaf: Yeah, I can handle this with a little more effort on my part, was just hoping there was a good way I could do it all at one level of async.
[21:39] caolanm: iangreenleaf: don't try to be too clever, break things up into smaller parts
[21:39] konobi: caolanm: any luck on that parallel feature?
[21:39] mikeal: daleharvey: it's broken now
[21:39] caolanm: konobi: no, I should really do that
[21:39] mikeal: if you make it pass more tests, i'll take a pull req
[21:39] daleharvey: mikeal: it works!
[21:40] mikeal: ok, then i'll definitely take the pull req :)
[21:40] benvie: Daegalus: yeah I am
[21:40] daleharvey: heh, there is a few of them
[21:40] ningu: caolanm: does parallel just do everything all at once immediately (more or less) or is there an attempt at balancing simultaneous actions?
[21:40] benvie: Daegalus: I've been talking stuff like a brick at a time
[21:41] k1ttty has joined the channel
[21:41] caolanm: ningu: everything at once
[21:41] benvie: Daegalus: I'm working on updating node-ffi to use a more workable foundation for marshalling data to and from C
[21:41] caolanm: ningu: konobi was just asking about a feature to limit how many parallel operations it performs
[21:41] ningu: ah, ok -- that's what I was wondering
[21:42] ningu: and forEach is parallel, right? so if I have 1000 db entries and do forEach and save each one, that would be a big hit
[21:42] daleharvey: mikeal: 54 commits pull requested :P
[21:42] caolanm: ningu: there's forEachLimit which works in parallel but with a concurrency limit
[21:42] Daegalus: benvie: thats awesome. I wish I could help, but I am not that good with C or bindings. But I am of great support to what you are doing. It sounds amazing
[21:42] benvie: Daegalus: which is the foundation for bindings to CEF or Chromium content client, both of which are relatively complex things because they involve a lot of complex entities
[21:42] ningu: ah, right
[21:42] ningu: I just didn't think about it till now so I didn't check the docs yet
[21:42] lmorchard has joined the channel
[21:42] mikeal: damn
[21:42] mikeal: you went to town :)
[21:43] caolanm: ningu: I intend to add a generic way to manage the number of parallel operations for any function working in parallel soon
[21:43] ningu: cool
[21:43] daleharvey: some of them may offend you, sorry :P
[21:43] ningu: my usage isn't heavy enough to matters, but it's something I've wondered
[21:43] ningu: to matter*
[21:43] benvie: Daegalus: that work is happening here https://github.com/Benvie/reified
[21:43] caolanm: daleharvey: you using pouchdb for something?
[21:43] ningu: since I don't really know how mongo reacts to things like that
[21:43] benvie: Daegalus: I'm getting close to where I want it to be and then I'm going to move up to the next brick
[21:43] daleharvey: caolanm: planning to, when its working
[21:44] caolanm: daleharvey: I've had some ideas recently that might make use of it too, glad to see you're taking on the baton
[21:44] Daegalus: benvie: thanks for the link, I will keep an eye on it. Ive been following the Tide transition group, and all the conversation there is getting me excited for various project ideas
[21:45] ningu: hrm... pouchdb is a couchdb-like database stored client-side?
[21:45] Sadin has joined the channel
[21:45] mikeal: daleharvey: merged
[21:45] benvie: yeah the thing with them is they have an existing base to work from
[21:45] mikeal: daleharvey: did you see couchie?
[21:45] benvie: so I think they're kind of hamstrung in how big a movement can be made to smoething liek this
[21:45] Sadin: guys can anyone tell me what im doign wrong when trying to run a new express app https://gist.github.com/d7dc198add7db11501d6
[21:45] daleharvey: sweet, thanks
[21:45] caolanm: mikeal: you still working on couchapps as browser extensions?
[21:45] benvie: so I plan to continue working on my thing as I have until i at least get a baseline to build a real platform on top o
[21:46] larsschenk1 has left the channel
[21:46] jeffbcross has joined the channel
[21:46] benvie: maybe that would be something to build the next iteration ofe Tide on, depending how fast they move and how long it takes me to figure it out
[21:46] daleharvey: mikeal: nah, thats kinda what I wanted, then I figured out I would prefer a full couch that replicates
[21:46] robi42 has joined the channel
[21:46] mikeal: we're using couchie in our app as a cache
[21:46] lohkey has joined the channel
[21:46] ningu: Sadin: did you specify a host to bind to as well as a port in listen()?
[21:47] mikeal: we actually don't want full replication, we only want to hold the latest stuff by your current location
[21:47] Sadin: ningu ummm one sec let me show you my app.js file
[21:47] ningu: that would help
[21:47] mikeal: caolanm: not right now, max was a little but instead went really deep in to node
[21:47] mikeal: fronting couchapps with node to extend them
[21:48] daleharvey: mobile futon did something similiar, not quite as much but I just memoised anything that couch returned
[21:48] Sadin: ningu https://gist.github.com/2024927
[21:48] caolanm: mikeal: right, thats the rewriter project max has on github
[21:49] augustl: I have a path to a npm package. Are there APIs in node or npm to get all the dependencies from that package?
[21:49] augustl: something a bit more future proof than fs.readFile on package.json and manual traversal would rock :)
[21:49] isaacs: augustl: require("pkg-name/package.json")
[21:50] ningu: Sadin: app.address() must be not populated yet for some reason
[21:50] ningu: Sadin: just pass the port directly to console.log()
[21:50] Sadin: ningu okay
[21:50] ningu: or change it to not show it, whatever
[21:50] mikedeboer has joined the channel
[21:51] JJMalina has joined the channel
[21:51] Skaag has joined the channel
[21:51] augustl: isaacs: ah
[21:51] daleharvey: the touchdb stuff is helping me figure out the replication cases etc, right now I am just going to carry on porting all the couch tests that make sense, and code stuff until they all pass
[21:52] isaacs has joined the channel
[21:53] ekryski has joined the channel
[21:53] augustl: isaacs: I still need to manually concat dependencies, devDependencies, etc?
[21:53] isaacs: augustl: yeah.
[21:54] augustl: allright, tnx
[21:54] isaacs: augustl: but you could do fs.readdir() on its nodE_modules folder, and require() each package.json from there
[21:54] Eruadan has joined the channel
[21:54] kevwil has joined the channel
[21:54] isaacs: augustl: or glob("**/node_modules/*/package.json", function (er, files) { files.forEach(require(
[21:55] isaacs: "./" + file).version) }) })
[21:55] isaacs: augustl: if you install glob :)
[21:55] jsurfer has joined the channel
[21:56] ningu: how is ** different from *?
[21:56] ningu: ah I see
[21:56] augustl: isaacs: I just need it for top level packages :)
[21:57] MrTopf has joined the channel
[21:57] isaacs: augustl: kewl
[21:57] augustl: ningu: any number of subfolders
[21:57] isaacs: ningu: where "0" is a number :)
[21:57] augustl: dependencies, devDependencies and optionalDependencies - that'
[21:57] isaacs: ningu: so **/foo.js matches ./foo.js
[21:57] augustl: that's all of them?
[21:57] isaacs: augustl: for now, yeah :)
[21:57] augustl: allright
[21:57] daniel` has joined the channel
[21:57] isaacs: augustl: optionalDependencies are kind of an interesting one.
[21:57] isaacs: augustl: what's your use case for doing this?
[21:58] augustl: isaacs: I'm writing a developer util for devs of busterjs.org (the project not the website)
[21:58] isaacs: interesting
[21:58] jeffbcross has left the channel
[21:58] ningu: isaacs: yeah, was just reading the docs, although I wouldn't have quite realized that :)
[21:58] augustl: it consists of 20 or so packages. So I'm writing an util that reads the package.json for all of the buster projects, reads out the deps, and "npm install"-s deps that aren't buster packages
[21:59] joshsmith has joined the channel
[21:59] augustl: then I add the folder with all the buster projects to NODE_PATH
[21:59] augustl: and the bin folder of the top level project, "buster", to PATH
[21:59] augustl: hopefully it'll work fine :)
[22:01] augustl: does https://github.com/isaacs/npm/blob/master/doc/api/install.md take version numbers, or just package names?
[22:01] mikeal: daleharvey: i think touchdb and couchbase are redefining the replication semantics a bit
[22:01] mikeal: like, in a good way tho
[22:01] isaacs: augustl: it takes whatever npm takes.
[22:01] isaacs: augustl: so, pkgname, pkgname@version-number, pkgname@tag, pkgname@git-or-http-url, git-or-http-url, etc.
[22:01] augustl: isaacs: ah
[22:02] mikeal: far too much of Apache CouchDB's internals have crept in to the replication semantics
[22:02] ningu: isaacs: do you happen to know if there's anything like semver for ruby?
[22:02] augustl: I now have an object of all the dependencies in the form of {"foo": "1.2.3"} and so on, I guess I need to transform that manually?
[22:02] dambalah has joined the channel
[22:02] augustl: seems simple enough though, key + "@" + value
[22:02] isaacs: augustl: yes.
[22:02] isaacs: ningu: i don't know, no
[22:02] isaacs: ningu: but i imagine there is something like it.
[22:02] daleharvey: I know theres a few changes, like if you create 2 identical documents and replicate, they will conflict in touchdb but not in apache
[22:03] kevwil has joined the channel
[22:03] isaacs: ningu: i mean, rubygems and bundler do it *somehow*
[22:03] ningu: isaacs: because homebrew on os x is braindead about version comparisons, it seems... I thought I might go bug them to use whatever it is :)
[22:03] ningu: `brew outdated` for me returns: perl (5.14.2 < 5.14.1)
[22:04] daleharvey: I dont think they are dramatically changed in touchdb, couchbase is entirely different though
[22:04] cjheath has joined the channel
[22:05] augustl: interesting, I can't require npm out of the box
[22:05] graeme_f has joined the channel
[22:05] ningu: augustl: can npm require itself out of a paper bag?
[22:05] jjido has joined the channel
[22:05] augustl: :D
[22:06] yaymukund: npm install npm
[22:07] arturadib: npm install node
[22:07] andrehjr has joined the channel
[22:07] caioketo has joined the channel
[22:07] AAA_awright: Whatever happened to emerge world?
[22:07] eirikb has joined the channel
[22:08] qjcg has joined the channel
[22:09] riverraid has joined the channel
[22:11] ningu: emerge as a transitive verb always bothered me.
[22:11] dubenstein has joined the channel
[22:11] eirikb: Hello. I got a hackish module that parses a protocol, but data length sent to module is kinda random. I don't think it's very nice to have it as a singleton because of that, suggestions? This is the code: https://github.com/eirikb/weechat.js/blob/master/protocol.js
[22:11] r04r has joined the channel
[22:11] michaelhartau has joined the channel
[22:12] rtgibbons has joined the channel
[22:13] Gazzou has joined the channel
[22:13] isaacs: augustl: yes, you need to install or link it locally to require() it
[22:13] isaacs: augustl: because it's a global module
[22:14] FACEFOX has joined the channel
[22:15] GJdan has joined the channel
[22:16] meso_ has joined the channel
[22:16] _ritch has joined the channel
[22:17] harthur has joined the channel
[22:17] artusrocha has joined the channel
[22:18] augustl: isaacs: is it possible to tell "install" to not install optional dependencies of dependencies?
[22:19] andrehjr has joined the channel
[22:19] augustl: cli or api, doesn't matter
[22:19] jacobolus has joined the channel
[22:22] bvmount has joined the channel
[22:22] tmcw has joined the channel
[22:23] eirikb: This is what I ended up doing: https://github.com/eirikb/weechat.js/blob/master/protocol.js (https://github.com/eirikb/weechat.js/compare/b05f4c25ac...2caf6fd546) comments?
[22:27] markwubben has joined the channel
[22:27] te-brian has joined the channel
[22:28] te-brian2: I noticed this issue has not been resolved yet: https://github.com/visionmedia/express/issues/997 .. but .. is there a standard method to generate an absolute url within an express app?
[22:29] marktraceur has joined the channel
[22:29] isaacs: augustl: no.
[22:29] isaacs: augustl: it'll try to install all optional dependencies. it just won't blow up if they fail.
[22:29] marktraceur: Hey folks, does anyone know where to find help for the native mongodb driver?
[22:29] CIA-102: node: 03Nathan Rajlich 07master * r9701f1c 10/ src/node.cc : process: expose the zlib version in use in process.versions - http://git.io/K5jN7w
[22:30] marktraceur: (I mean on IRC, because the documentation has failed me)
[22:30] CIA-102: node: 03Ben Noordhuis 07master * r531eba1 10/ src/node_zlib.cc :
[22:30] CIA-102: node: zlib: fix include of zlib.h
[22:30] CIA-102: node: Including may lead to false positives when the user specifies a bad
[22:30] CIA-102: node: path in `./configure --shared-zlib --shared-zlib-includes=/path/to/zlib`. If
[22:30] CIA-102: node: a zlib.h exists somewhere on the system include path (common on UNIX systems),
[22:30] CIA-102: node: the compiler will include that instead, possibly leading to header mismatch
[22:30] CIA-102: node: errors that are hard to debug. - http://git.io/8N3kIQ
[22:30] augustl: isaacs: ah, I see
[22:31] jj0hns0n has joined the channel
[22:32] jimt has joined the channel
[22:34] ph^ has joined the channel
[22:35] andrehjr has joined the channel
[22:35] EyePulp has joined the channel
[22:35] thetristan has joined the channel
[22:36] sammmy: How could I go about running multiple websites on one server?
[22:37] leny has joined the channel
[22:38] akshayms has joined the channel
[22:38] brianseeders has joined the channel
[22:38] tmcw: sammmy: use ports
[22:38] tmcw: and then nginx to proxy subdomains or domains to them
[22:39] augustl: sammmy: multiple node http servers on one port, you mean?
[22:39] sammmy: augustl: yeah
[22:39] augustl: what tmcw said :)
[22:39] sammmy: hmm let me think about it
[22:39] mintbridge_ has joined the channel
[22:40] augustl: you need some sort of proxy
[22:40] augustl: a http or tcp proxy that is
[22:41] leny has left the channel
[22:41] sammmy: Well. I was thinking of using node to somehow route requests to either my Apache/PHP or my Node app.
[22:41] mintbridge_ has joined the channel
[22:41] sammmy: Depending on which domain was used with the request.
[22:41] wilmoore has joined the channel
[22:43] tmcw: you can also use apache, and just virtualhosts for that.
[22:43] erichynds has joined the channel
[22:44] qbert__: thats what I do
[22:44] mintbridge_ has joined the channel
[22:44] qbert__: wait how did my name get an extra underscore, some ass is registering all the qbert names :S
[22:45] springmeyer has left the channel
[22:45] enmand has joined the channel
[22:45] mintbridge_ has joined the channel
[22:46] mxbtty has joined the channel
[22:46] CarterL: Eruadan: so, do you not like how on nodebeginner.org, he has the server, index, router, requestHandlers are setup?
[22:46] brandwe has joined the channel
[22:48] abrams has joined the channel
[22:48] marktraceur: CarterL, to inject myself into your conversation, I happen to like that setup :)
[22:50] joshwines has joined the channel
[22:50] tjholowaychuk has joined the channel
[22:51] dodo has joined the channel
[22:52] initohen: grawr
[22:52] initohen: i finally managed to keep the buffer returned by http.request and now i can't gunzip it
[22:52] CarterL: marktraceur: cool
[22:52] CarterL: marktraceur: I'm a newb so idk what's best
[22:53] shinuza has joined the channel
[22:53] initohen: no error and it returns null
[22:53] st_luke has joined the channel
[22:54] Eruadan: CarterL, i like very much the beginning, when he refactor the server file and explains how node works with the callback function. I think the rest is ok, but when he is in the midlle of the examples. not sure where exactly, he looses a bit the thinking and he has too much assumptions in my view, about the background of the reader, if he is experienced or not , or if he knows php, ruby or etc...
[22:54] Eruadan: he could follow the refactor example, the whole book..more direct
[22:55] CarterL: yes, i recall that portion
[22:55] Eruadan: do you understand me?
[22:55] Eruadan: mm, k
[22:56] Eruadan: but it's a very good start
[22:56] CarterL: i have done some php and played around with RoR/django a few years ago, so its not completely foreign
[22:57] Eruadan: me too, i can read php and ruby a bit, altough the language i really know, is javascript(i've been studying), so i like very much the first of book, with the code refactoring example
[22:57] CarterL: what do you recommend after this one?
[22:58] Eruadan: nonot sure, i would had to rethink about it
[22:58] Eruadan: it made me freak out a bit to be honest
[22:59] Eruadan: but that's cauze i'm a beginner to programming in a general way
[22:59] CarterL: in a good way or wet your pants like freak out?
[22:59] Eruadan: i think ^^
[22:59] Eruadan: freak out
[22:59] Eruadan: out
[23:00] CarterL: i'm in the same boat you are then
[23:00] Eruadan: ^^
[23:01] pendlepa1ts has joined the channel
[23:01] andrehjr has joined the channel
[23:02] francisl has joined the channel
[23:02] tmike has joined the channel
[23:03] gorekee has joined the channel
[23:05] brianleroux has joined the channel
[23:06] theBrettman has joined the channel
[23:08] joshgillies has joined the channel
[23:08] AviMarcus has joined the channel
[23:09] paulwe has joined the channel
[23:09] tedsuo has joined the channel
[23:09] harthur has joined the channel
[23:10] eirikb has left the channel
[23:11] Eruadan has joined the channel
[23:11] Eruadan: CarterL, that book was ery good to make me see that the rabbit hole goes under, it made me see the new paradigm(the way i see node now). I have derby.js installed, and i have already an app example running, i guess it will be my weekend hobby, till i find some good idea for an async app, but slowly. for now
[23:11] baudehlo has joined the channel
[23:12] carlyle has joined the channel
[23:12] tedsuo: in npm, is there any way to see all the packages that are dependent upon a certain package?
[23:13] CarterL: Eruadan: cool
[23:13] CarterL: never heard of derby
[23:13] slug_ has joined the channel
[23:14] Eruadan: hehe, i went to node modules page on github, and i checked all frameworks o.O
[23:14] rauchg has joined the channel
[23:15] slug_: has anyone brought the directfb v8 bindings into node? I google and searched github, but nothing showed up
[23:15] Eruadan: i think this is my true vocation, a researcher, i can spend hours researching ...
[23:15] CarterL: :) same!
[23:16] isaacs: tedsuo: that's on the search page, actually
[23:16] Eruadan: hehe, by i knew derby you don't ;p
[23:16] CarterL: Eruadan: now, i want to do
[23:16] CarterL: sure, can't know everything hehe
[23:16] isaacs: tedsuo: search.npmjs.org/#/npm
[23:16] isaacs: http://search.npmjs.org/#/npm
[23:16] NuLLedge has joined the channel
[23:16] lee__ has joined the channel
[23:17] Eruadan: true, that's far to many modules to evaluate still, i just checked the frameworks o.O
[23:17] Eruadan: there is far*
[23:17] Eruadan: too*
[23:17] tedsuo: isaacs: nice!
[23:18] initohen: wtf
[23:19] initohen: i just got done reading a big blog about how 'deflate' as a content-encoding was goofed up (raw data vs zlib header'd)
[23:19] initohen: and that gzip was preferred because it didn't have that problem
[23:19] relling has joined the channel
[23:19] initohen: but apparently google is sending headerless gzipped data?
[23:20] ningu: derby looks quite interesting
[23:20] ningu: maybe a bit young yet
[23:20] ningu: but a cool idea
[23:20] joshontheweb has joined the channel
[23:21] TheFuzzball has joined the channel
[23:23] acmeyer9 has joined the channel
[23:24] acmeyer9: i am trying to start out on nodejs and was wondering what the best framework for it is
[23:25] reprisal: framework for what?
[23:25] shinuza has joined the channel
[23:25] smgt has joined the channel
[23:26] ningu: he can't hear you
[23:26] boltR has joined the channel
[23:26] reprisal: touche
[23:27] eirikb has joined the channel
[23:28] eirikb: What is the best way to sanitize text I send to my app using socket.io? I'm thinking require('validator').sanitize(myString).xss().entityEncode()
[23:29] Joeysomo has joined the channel
[23:29] AviMarcus: reprisal, that's a side-benefit to starting responses with attempting to highlight them with tab-completion.
[23:29] Joeysomo has joined the channel
[23:30] mehlah_ has joined the channel
[23:31] boltR has joined the channel
[23:32] MartinCleaver_ has joined the channel
[23:32] Venom_X has joined the channel
[23:32] jeffhorton has joined the channel
[23:32] akuiraz has joined the channel
[23:32] bondar has joined the channel
[23:33] thetristan has joined the channel
[23:33] st_luke has joined the channel
[23:33] sandfox has joined the channel
[23:33] mikeal has joined the channel
[23:34] yawNO has joined the channel
[23:34] jgaui has joined the channel
[23:34] tjholowaychuk has joined the channel
[23:34] reprisal: AviMarcus: why do things the easy way when you can do them awkwardly instead?
[23:35] AviMarcus: heh. I think my node.js code is starting to look akward and I didn't even hit 100 lines.
[23:35] peregrine81 has joined the channel
[23:35] AviMarcus: meh, new style. for an async event watcher, it's pretty cool.
[23:36] ningu has joined the channel
[23:36] AviMarcus: k, 'night
[23:36] urlisse has joined the channel
[23:37] initohen has joined the channel
[23:37] miccolis has joined the channel
[23:38] ningu has joined the channel
[23:38] _olouv_ has joined the channel
[23:39] colinwd has joined the channel
[23:40] Draggor has joined the channel
[23:43] tomnewmann has joined the channel
[23:44] _dave_h_d has joined the channel
[23:44] _dave_h_d: hi all i am new to node
[23:44] harthur has joined the channel
[23:44] _dave_h_d: is there a npm which is jquery like which gives me these utility type functions such us inarray
[23:45] yaymukund: _dave_h_d: are you looking for underscorejs?
[23:45] kmiyashiro has joined the channel
[23:45] _dave_h_d: yaymukund: i am not sure :-)
[23:45] _dave_h_d: is that a j query clone for node?
[23:45] yaymukund: _dave_h_d: you can use jquery with node. what are you trying to do?
[23:46] springmeyer_ has joined the channel
[23:46] konobi: how about jquery
[23:46] _dave_h_d: konobi: i tried but it gives me Segmentation fault: 11
[23:46] konobi: npm install jquery?
[23:46] _dave_h_d: yup
[23:46] _dave_h_d: i did
[23:47] _dave_h_d: and it gives me the above when i try and require it
[23:47] _dave_h_d: i put this line in jquery = require('jquery');
[23:47] enmand has joined the channel
[23:47] _dave_h_d: and i get the above
[23:47] _dave_h_d: installation went fine
[23:48] ningu: _dave_h_d: what version of node are you using?
[23:48] ningu: node -v
[23:48] _dave_h_d: v0.6.11
[23:49] _dave_h_d: ningu: i guess i shall try to upgrade it?
[23:50] peregrine81 has joined the channel
[23:50] bnoordhuis: that jquery module is pure js, right? that shouldn't crash...
[23:52] Vespakoen has joined the channel
[23:52] JSONB has joined the channel
[23:53] mikeric has joined the channel
[23:53] Draggor has joined the channel
[23:54] _dave_h_d: bnoordhuis: well it seems to have
[23:54] _dave_h_d: i will upgrade and see what happens
[23:54] IrishGringo has joined the channel
[23:55] ningu: _dave_h_d: yeah, I'm really confused about the segfault on a stable version of node
[23:55] ningu: so I don't really know what to say
[23:55] ningu: _dave_h_d: what os are you on?
[23:55] _dave_h_d: lion
[23:56] ningu: hmm
[23:56] ningu: and you built from source or used the .pkg?
[23:57] ningu: I built noce v0.6.11 and .12 from source on lion and had no issues
[23:57] ningu: node*
[23:57] MrTopf has joined the channel
[23:58] Draggor has joined the channel
[23:58] _rockbot_ has joined the channel
[23:58] _dave_h_d: ningu: hmmm actually i cannot remember
[23:58] blup has joined the channel
[23:59] RobWC has joined the channel
[23:59] _dave_h_d: i am upgrading via ports
[23:59] RobWC has left the channel