[00:00] marcello3d: sub: looks cool [00:00] sholmes: Hey, so I need help finding a good VPS that's cheap but good. [00:00] mikedeboer has joined the channel [00:00] SubStack: cidd: why jsonp when you can socket.io? [00:00] sholmes: I'll upgrade later, I just need something to get me started. [00:00] geoffeg: sholmes: i love linode [00:00] sholmes: I need one that's easy and quick to setup [00:00] sholmes: geoffeg, cheaper ;P [00:00] geoffeg: damn, linode is pretty cheap :) [00:00] sholmes: under $10 [00:00] sholmes: linode is $20 [00:00] Bloudermilk: sholmes: Rackspace Cloud or Slicehost are my personal favs [00:00] cidd: SubStack: I'm registering a browser session to make sure socket.io is secure [00:01] sholmes: fanaticalVPS is 10 bucks [00:01] geoffeg: find a friend with a machine on their home DSL/internet line [00:01] spaceinvader: SubStack: the pictures are really fun [00:01] SubStack: tehe [00:01] mscdex: geoffeg: you're using the result of require() wrong i think [00:01] SubStack: cidd: I think guillermo got ssl working with socket.io recently [00:01] mscdex: geoffeg: require() returns an object [00:01] sholmes: geoffeg: haha, well it can't be something flimsy like that. I need it to at least handle some traffic. [00:02] geoffeg: alright, i shall play [00:02] sholmes: Anyone here use fanaticalVPS or 2host? [00:02] cidd: SubStack: he did...nice [00:03] mscdex: geoffeg: also you're better off only calling readdirSync once [00:04] geoffeg: mscdex: yea, i coded that part up piecemeal :) [00:04] eventi: sholmes: i need at least $20 [00:04] sholmes: I need to be able to host a LAMP stack for now, then I'll get node on there. [00:04] sholmes: eventi: why do you need at least that? [00:04] MikeMakesIt has joined the channel [00:05] eventi: beer [00:05] eventi: and bandwidth, and headaches [00:06] jchris has joined the channel [00:06] eventi: that said, an ec2 micro instance is dirt cheap, but it'll crash when you compile node [00:06] tanepiper: eventi: i got node to compile fine, but it was SLOOOOOOOW [00:06] eventi: lol [00:07] tanepiper: that was on the free instance [00:07] eventi: I kept starting on a micro, then going to get coffee, and it'd reboot [00:07] aurynn: Reasons I pay for a Linode slice :) [00:08] eventi: beg for another $10 and get RSC or slicehost or something [00:08] marcello3d: <- uses slicehost [00:08] eventi: ACTION does too [00:09] eventi: love the chat support [00:09] aurynn: I seem to recall linode having chat support [00:09] sholmes: EC2 is Amazon web service? [00:09] eventi: yeah [00:10] spaceinvader: this irc is on an ec2 [00:10] spaceinvader: but it doesn't do much else [00:11] eventi: i have a metric buttload of cloud machines instances... and you seriously get what you pay for [00:11] sholmes: I thought this IRC is on freenode.net? [00:11] sholmes: Anyway, I can't do Amazon cause it's too far out of my comfort zone. [00:12] eventi: then the smallest slicehost [00:12] eventi: I think $24/month [00:12] sholmes: I'm used to managing a localhost, would it be similar to managing that? [00:12] sholmes: Slicehost is 20 a month [00:12] eventi: dead simple [00:12] eventi: sell some cookies [00:13] aurynn: linode is $20/m [00:13] sholmes: eventi: well, when I say managing my localhost I mean installing WampServer on my Windows machine. haha [00:13] eventi: my daughter just made a killing [00:13] eventi: sholmes: lol [00:13] sholmes: It shouldn't be much different installing a LAMP stack on a linux VPS right? [00:14] marcello3d: just install debian or ubuntu or whatever, and you can install everything with aptitude [00:14] eventi: i see - i don't think you'll get easy, cheap and fast [00:14] sholmes: well, what could possibly come with the cheap part? [00:14] marcello3d: $20/m for your own "dedicated" server is pretty cheap ;) [00:14] eventi: frontpage [00:15] sholmes: I know 2host is dirt cheap. [00:15] mscdex: you'd be surprised at recent dirt prices [00:15] marcello3d: honestly, if you can afford a cell phone, you can probably afford dedicated server hosting [00:15] marcello3d: if you can't, find another hobby ;) [00:15] eventi: sholmes: cookies man - GOLDMINE!! [00:15] sholmes: haha, I'm not paying my cell bills :P [00:16] marcello3d: setup port forwarding [00:16] marcello3d: dynip it up [00:16] mscdex: you can get some pretty cheap prepaid cell phone usage [00:16] mscdex: :p [00:16] marcello3d: run everything on your computer [00:16] sholmes: marcello3d: host my site from my laptop? :\ [00:16] marcello3d: you wouldn't be the first person [00:16] spaceinvader: sholmes: how old are you? [00:16] sholmes: nah, I would need a upgrade from my ISP. [00:17] eventi: sholmes: my first job at an ISP I used to dev the sites in my desktop [00:17] sholmes: spaceinvader: old enough, ;P [00:17] spaceinvader: i used to run sites from my uni dorm [00:17] spaceinvader: http://users.aber.ac.uk/tam9/tmp/rack.jpg [00:17] eventi: yup - I think you need something a little simpler though [00:17] blueadept has left the channel [00:17] marcello3d: macmini colo [00:17] marcello3d: that's what you want [00:17] Aria: ++ [00:18] eventi: ++ [00:18] Aria: And there's also tilaa.nl, good folks. [00:18] ysynopsis has joined the channel [00:18] marcello3d: you can get a mac mini for like $500 right? [00:18] marcello3d: cheap :D [00:18] riven has joined the channel [00:18] Beretta_V: you can find "virtual dedicated server" for 9€/m for a test/dev server it's ok [00:18] eventi: that's $490 more than he has [00:18] sholmes: I know a guy who uses linode, if he could do it, I'm sure I could. But if only they had one for $10, that would be perfect. [00:19] sholmes: spaceinvader: that's pretty awesome, but I'm not technically savvy enought yet to be able to manager my own hardware. [00:19] Aria: Tilaa €8,95 to start. That's close. [00:20] pt_tr has joined the channel [00:21] marcello3d: bah [00:21] marcello3d: mongodb-native seems buggy as hell [00:21] marcello3d: does anyone actually use it? [00:21] jacksonmills has joined the channel [00:21] jacksonmills has left the channel [00:21] lukegalea has joined the channel [00:22] geoffeg: mscdex: got it working, thanks! [00:22] mscdex: cool :) [00:23] edude03 has joined the channel [00:23] geoffeg: i'm happily surprised by the amount of existing code already out there for node.js [00:23] geoffeg: a github and google search usually gives me the code i want, or something close enough [00:24] mscdex: yeah [00:26] WarriorSl has joined the channel [00:26] mynyml has joined the channel [00:27] geoffeg: for instance, SubStack's dnode looks like it should fit the bill for what i was about to code up [00:28] Guest56466 has joined the channel [00:31] blueadept has joined the channel [00:32] MrTopf has joined the channel [00:32] lukegalea has joined the channel [00:36] jimt has joined the channel [00:40] dguttman has joined the channel [00:40] ossareh has joined the channel [00:41] softdrink has joined the channel [00:43] cognominal has joined the channel [00:45] lukegalea has joined the channel [00:47] jimt_ has joined the channel [00:48] DTrejo has joined the channel [00:49] DTrejo: hello everyone [00:50] DTrejo: nech2011.com had at least 5 of the 20 of the projects done in node.js [00:50] DTrejo: we've definitely gained mindshare among the youngins, like myself [00:54] Dreamer3 has joined the channel [00:54] Dreamer3: hmm [00:54] Dreamer3: can i not do a require from the console? [00:54] Dreamer3: i just get "..." [00:55] DTrejo: var h = require('http') [00:55] DTrejo: like that? [00:55] lukegalea has joined the channel [00:55] Dreamer3: ah [00:55] Dreamer3: needed the () [00:56] Dreamer3: the eco examples must all be coffeescripty [00:56] DTrejo: mm [00:56] DTrejo: yeah I haven't dabbled with coffeescript yet [00:57] EricL has joined the channel [00:59] tmzt: sholmes: I really like my 2host bit.ly/tmzt2host 5usd/month [01:00] sholmes: tmzt, idk about 2host. I've heard they had bad support and uptime. [01:01] sholmes: g2g get food [01:01] sholmes: bbl [01:01] sholmes: thanks for all the suggestiions guys [01:04] Dreamer3: hmm [01:04] Dreamer3: coffee can't seem to compile the newer util.coffee from eco [01:08] lukegalea has joined the channel [01:08] ion- has joined the channel [01:09] Dreamer3: weird [01:10] Dreamer3: it can't take the weird quoting [01:18] Ricket has joined the channel [01:20] Ricket: Hello! In the docs for the net module, event data says "See the section on Readable Socket for more information" - where is the section on readable socket? [01:20] softdrink has joined the channel [01:20] srid has joined the channel [01:21] mies has joined the channel [01:21] mies has joined the channel [01:23] lukegalea has joined the channel [01:23] eee_c has joined the channel [01:24] cidd: anyone know why using helpers in express to get the session in socket doesn't work anymore? https://gist.github.com/739526 [01:25] marcello3d has joined the channel [01:25] marcello3d: what do people use to debug node.js? [01:27] cidd: gives back Cannot read property 'session' of undefined on line 22 [01:27] briznad has joined the channel [01:28] DTrejo: marcello3d: depends on what you need, what level of debugging are you looking for? [01:30] mynyml: marcello3d: $ node debug file.js [01:30] ion- has joined the channel [01:31] mynyml: anyone know what's up with error messages not being flushed from stdout? https://gist.github.com/824049 [01:32] DTrejo: marcello3d: list of debugging utils: https://github.com/ry/node/wiki/modules ctrl-f 'debug' [01:32] Me1000 has joined the channel [01:32] DTrejo: marcello3d: in particular: https://github.com/dannycoates/node-inspector [01:33] lukegalea has joined the channel [01:34] nornagon: What's the nodejs equivalent of python's "if __name__ == '__main__'" ? [01:34] marcello3d: graphical debugging :) [01:34] marcello3d: node debug is a bit too old school for my tastes [01:35] srid_ has joined the channel [01:35] abraham has joined the channel [01:35] Dreamer3: hmm [01:35] Dreamer3: feeling stupid [01:35] softdrink: if (__filename == process.argv[1]) <— something i have in an old node file [01:35] Dreamer3: can't even get the simple eco example to work without blowing up [01:35] Dreamer3: > eco.render("",{"five":5}) [01:35] Dreamer3: TypeError: Object has no method 'join' [01:36] Dreamer3: well i had an actual template in there before :) [01:37] marcello3d: gonna try this node inspector [01:37] nornagon: softdrink: does that work even if it's #!? [01:37] marcello3d: does it work alright? [01:37] DTrejo: marcello3d: I haven't used it, but I've heard good things [01:37] softdrink: heck if i know hehe [01:38] marcello3d: how do you guys work around this on npm: [01:38] marcello3d: npm ERR! failed to link bins [01:38] marcello3d: npm ERR! install failed Error: EACCES, Permission denied '/usr/local/bin/node-inspector@0.1.6' [01:38] marcello3d: I don't want to sudo npm all the time [01:38] marcello3d: (cause it complains about that, too) [01:39] Remoun has joined the channel [01:39] spaceinvader: if you install node to a user writable prefix you never need to sudo npm [01:39] Dreamer3: damn [01:39] Dreamer3: same error if i run it under coffee [01:39] marcello3d: this is /usr/local/bin though, not the node folder [01:40] marcello3d: the npm docs don't really tell me anything [01:41] plyons has joined the channel [01:41] tc77 has joined the channel [01:41] plyons: anyone here familiar with node.js + express + coffeekup specifically how express partials work? [01:43] chewbranca has joined the channel [01:43] Dreamer3: grrr [01:43] mscdex: nornagon: process.mainModule contains information about 'main' [01:43] JamesCH has joined the channel [01:44] Dreamer3: just wanted to play around a few minutes and nothing at all works [01:44] jamescarr has joined the channel [01:45] JamesCH: hey, guys, im really new to node, so excuse this question if it seems dumb, but i cant seem to connect mongoose to mongodb. anyone have experience with this? [01:45] braddunbar has joined the channel [01:45] nornagon: mscdex: which of its fields do i check? [01:46] lukegalea has joined the channel [01:46] braddunbar: anyone else having trouble with connect bodyDecoder decoding spaces as '+'? [01:47] mscdex: nornagon: actually, you could check if module.parent === null [01:47] mscdex: if that's true, it's the main module [01:47] mscdex: that'd be one way [01:47] pauls has joined the channel [01:47] srid: express' res.render uses the previous `locals` variables for subsequent renderings (effectively rendering the same page despite using different parameters). has anyone faced this problem? [01:48] nonnikcam has joined the channel [01:48] polyrhythmic has joined the channel [01:48] nornagon: mscdex: appears to be undefined, rather than null [01:48] JamesCH: Anything more specific though. im getting Object function Mongoose() {…} has no method 'connect'. perhaps things are not installed properly [01:48] mscdex: nornagon: hrm... maybe it's a 0.3/0.4 thing then [01:48] srid: maybe I should ask this: is express expected to work on node 0.4? [01:49] iFire has joined the channel [01:50] mscdex: nornagon: yeah looks like 0.2.x uses undefined instead of null for the parent property [01:50] mraleph has joined the channel [01:50] nornagon: i'm using v0.3.7 [01:50] mscdex: i'm not sure when it was changed [01:50] nornagon: ok :) [01:50] mscdex: but either way just do: if (module.parent) // main module [01:51] nornagon: cheers :) [01:51] mscdex: er [01:51] mscdex: wait [01:51] mscdex: if (!module.parent) // main module [01:51] mscdex: :p [01:52] nornagon: if you stackoverflow, I asked there: http://stackoverflow.com/questions/4981891/node-js-equivalent-of-pythons-if-name-main [01:52] nornagon: otherwise i'll add the answer myself :) [01:52] mscdex: feel free [01:52] Tidwell has joined the channel [01:53] iFire has joined the channel [01:54] jamesarosen has joined the channel [01:54] Ond: gives back Cannot read property 'session' of undefined on line 22 [01:54] Ond: Yep, I get the same. [01:54] Ond: And I don't know why. [01:54] JamesCH has left the channel [01:55] okuryu has joined the channel [01:56] Ond: We'll have to save that one for tj [01:56] Dreamer3: anyone using brew/npm/eco? [01:56] Ond: npm? What's that [01:57] pauls: i'm using brew+npm but not eco [01:57] pauls: Dreamer3 [01:57] Dreamer3: node package manager [01:58] Dreamer3: i can't get eco to require and seems like some weird path issue [01:58] Dreamer3: it finds eco.js but not the library files inside "eco" [01:58] Ond: Just about everyone uses npm now [01:58] themiddleman has joined the channel [01:58] Dreamer3: http://pastie.org/1557832 [01:59] Dreamer3: ./eco/compiler.coffee script is the relative path from eco.js [01:59] Dreamer3: seems like ti should work [01:59] marcello3d: anyone know what log framework socket.io is using? [01:59] sholmes has joined the channel [02:00] marcello3d: it's making messages like: [02:00] marcello3d: 12 Feb 20:53:18 - Your node instance does not have root privileges. This means that the flash XML policy file will be served inline instead of on port 843. This will slow down initial connections slightly. [02:00] marcello3d: 12 Feb 20:53:18 - socket.io ready - accepting connections [02:01] mjr_ has joined the channel [02:01] spaceinvader: isn't that just util.debug("message") [02:01] pastak has joined the channel [02:02] Ond: sys.log [02:02] pastak: hello.plz,help me. i tried to make node.js on cygwin but it happened error [02:03] pauls: Dreamer3 can't say i've used eco before, but the package may be broken. have you tried downloading and manually including? [02:03] pauls: pastak: can you use pastie.org to show us the error? [02:03] Dreamer3: the github says the package is solid [02:03] Ond: util.log is what it actually uses [02:03] Dreamer3: the github, rofl [02:03] Dreamer3: it says you can install via rpm [02:04] Dreamer3: oh wow [02:04] Dreamer3: raw source has the same issue, wtf [02:04] Dreamer3: it's not loading the subfiles [02:05] pastak: i pasted error http://pastie.org/1557841 [02:05] webr3 has left the channel [02:06] darvvin has joined the channel [02:08] mscdex: pastak: are you sure you unpacked the tarball correctly? [02:09] pastak: yes unpaked. [02:10] lukegalea has joined the channel [02:11] mscdex: and deps/v8/src/accessors.cc exists? [02:12] mw_ has joined the channel [02:12] mw_ has joined the channel [02:12] plyons: anyone have an example they can point me at of successfully using express partials? [02:12] ivan has joined the channel [02:12] plyons: I'm trying but I keep hitting a ReferenceError with self not defined coming from within view.js in express [02:14] pastak: mscdex: yes it exists [02:14] jimt has joined the channel [02:16] mscdex: i dunno then... unless there's some kind of funky permission problem somehow [02:16] mscdex: i didn't have any issues building 0.4.0 on cygwin [02:16] mscdex: with gcc4 [02:17] braddunbar: apparently connect uses qs for bodyDecoder - and qs@0.0.3 decodes '+' incorrectly in forms - qs@0.0.5 does the trick though [02:20] Yuffster has joined the channel [02:20] pastak: i use gcc4... i try more. thx [02:22] sonnym has joined the channel [02:23] dspree has joined the channel [02:26] clarkfischer has joined the channel [02:26] Dreamer3: anyone using npm and eco? [02:27] jakehow has joined the channel [02:29] lukegalea has joined the channel [02:29] squarebio has joined the channel [02:31] jimt has joined the channel [02:32] zzak has joined the channel [02:32] zzak has joined the channel [02:35] vilsonvieira has joined the channel [02:36] Dreamer3 has joined the channel [02:37] Dreamer3: wow [02:39] mscdex: ? [02:40] lukegalea has joined the channel [02:42] Dreamer3: my kernel was whacked [02:42] Dreamer3: it just paniced in node [02:42] Dreamer3: now my github checkout of eco works, but the package still doesn't [02:42] Dreamer3: weird [02:44] warz has joined the channel [02:47] Dreamer3: kind of weird the package can't work [02:50] Dreamer3: anyone have any idea? [02:50] srid: "Simplier HTTP client API with connection pools." from http://nodejs.org/v0.4_announcement.html - but I don't see anything related to connection pools in the API docs. [02:50] ossareh has joined the channel [02:53] srid: I suppose that is what the 'Agent' is for. http://nodejs.org/docs/v0.4.0/api/all.html#http.Agent [02:53] [[zz]]: ACTION is away: หนีห่างจากคีบอด [02:58] jimt has joined the channel [02:58] lukegalea has joined the channel [03:00] skm has joined the channel [03:07] jimt has joined the channel [03:08] yhahn has joined the channel [03:10] jamesaro_ has joined the channel [03:11] Dreamer3: wtf [03:11] Dreamer3: wtf [03:11] Dreamer3: wtf [03:11] Dreamer3: i removed npm, removed all the libs, reinstalled, same thing [03:11] lukegalea has joined the channel [03:14] ossareh_ has joined the channel [03:14] apoc: is it possible to stop the program after starting the repl console? [03:17] jotaru has joined the channel [03:21] mike5w3c has joined the channel [03:21] FISH_Spray has joined the channel [03:21] lukegalea has joined the channel [03:22] jimt has joined the channel [03:26] benatkin has joined the channel [03:27] jakehow has joined the channel [03:30] Dreamer3: ok so half my assertations fail [03:30] Dreamer3: that can't be good [03:30] johnnywengluu: how do you generate a random UUID (the same for couchdb) with node? [03:30] Dreamer3: then running tests [03:32] DoNaLd` has joined the channel [03:32] lukegalea has joined the channel [03:32] ossareh_ has joined the channel [03:33] davidc_ has joined the channel [03:33] davidc_ has joined the channel [03:33] boaz has joined the channel [03:33] NuckingFuts has joined the channel [03:33] dguttman has joined the channel [03:33] Dreamer3: unbelievable [03:33] Dreamer3: it's the single last line of util messing everything up [03:34] NuckingFuts: So, I think I'm still having issues with NodeJS 0.4.0 and Cygwin. [03:34] NuckingFuts: I'm gonna try again but it may still fail. [03:35] marcello3d: oh man [03:35] marcello3d: cygwin [03:35] marcello3d: never liked it [03:36] NuckingFuts: Yeah I agree [03:36] NuckingFuts: but Node runs better on Cygwin than on MinGW still [03:36] NuckingFuts: Though the porting to MinGW is looking wonderful [03:40] spaceinvader: despite how counterproductive it sounds, is it possible to run node w/express as a CGI [03:40] spaceinvader: I'd like to run it on my university's webserver [03:40] jimt has joined the channel [03:42] softdrink has joined the channel [03:45] Dreamer3: anyone else? [03:45] Dreamer3: is eco not packaged right? [03:45] Dreamer3: i don't understand the package structure [03:45] spaceinvader: https://github.com/pufuwozu/node-cgi/blob/master/cgi.js [03:45] spaceinvader: oh wow [03:46] WarriorSl_ has joined the channel [03:46] heavysixer has joined the channel [03:47] lukegalea has joined the channel [03:47] Dreamer3: trying to figure out this npm wrapper junk [03:48] yozgrahame has joined the channel [03:48] micheil: Dreamer3: ? [03:49] Dreamer3: http://dl.dropbox.com/u/3144563/Screenshots/y07mgxxyeo9p.png [03:49] Dreamer3: ick [03:49] bartt has joined the channel [03:51] kriskowal has joined the channel [03:52] marcello3d: is there a framed version of this? http://nodejs.org/docs/v0.4.0/api/index.html [03:52] marcello3d: and/or searchable [03:54] Dreamer3: http://nodejs.org/api/all.html [03:54] Dreamer3: apple-F [03:54] perlmonkey2 has joined the channel [03:55] NuckingFuts: I want to see future NodeJS api things like the old Node.JS 0.2.6 [03:55] ajnasz has joined the channel [03:55] NuckingFuts: That API listing was godly. [03:56] jameshome_ has joined the channel [03:56] spaceinvader: yeah what happened to it [03:57] Ond: You should write the layout you'd like to see and show it to ryah [03:57] spaceinvader: presumably there was a script or similar to generate the old api listing [03:57] muk_mb has joined the channel [03:57] lukegalea has joined the channel [03:58] JimBastard has joined the channel [03:58] JimBastard: soo sleepy [03:58] JimBastard: must not sleep [03:58] spaceinvader: http://nodejs.org/docs/v0.3.0/api.html [04:01] marcello3d: node-inspector is badass [04:02] marcello3d: yea, the 0.3.0 layout is great [04:03] marcello3d: though the colors are terrible [04:03] marcello3d: http://nodejs.org/api/all.html is a bit difficult, as well [04:04] throughnothing has joined the channel [04:06] zorzar has joined the channel [04:09] \\\\\\\\\\\\\\\ has joined the channel [04:10] \\\\\\\\\\\\\\\: http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4http://w [04:10] \\\\\\\\\\\\\\\: http://www.youtube.com/watch?v=u6xLofgHXp4 [04:10] \\\\\\\\\\\\\\\: http://www.youtube.com/watch?v=u6xLofgHXp4http://www.youtube.com/watch?v=u6xLofgHXp4 [04:10] \\\\\\\\\\\\\\\: http://www.youtube.com/watch?v=u6xLofgHXp4 [04:10] \\\\\\\\\\\\\\\: http://www.youtube.com/watch?v=u6xLofgHXp4 [04:10] \\\\\\\\\\\\\\\: http://www.youtube.com/watch?v=u6xLofgHXp4 [04:10] ossareh_ has joined the channel [04:11] ManhattanSnob has joined the channel [04:12] kriskowal has joined the channel [04:12] jetheredge has joined the channel [04:14] marcello3d: how do you deal with longs in node.js? [04:15] torvalamo: there's no built in bigint type in js, so you'll have to use a third party module of some sort [04:15] marcello3d: ok [04:16] marcello3d: looks like node-mongodb-native uses google's Long [04:16] marcello3d: but their gridfs code doesn't actually handle it correctly [04:17] wao: uii [04:18] marcello3d: wow, my alt tab launcher is messed up [04:18] marcello3d: one of the icons is a white square (different app each time) [04:18] marcello3d: and it randomly adds and removes programs [04:18] mscdex: :S [04:18] NuckingFuts: long? [04:18] NuckingFuts: ACTION doesn't subclassify numbers that much [04:19] NuckingFuts: The most I worry about is float, double, or int [04:19] marcello3d: long is usually used for file sizes and times [04:19] marcello3d: and in the case of mongodb, it's used for filesizes in gridfs [04:20] marcello3d: not a big deal in java/scala land, but could be problematic here [04:20] torvalamo: it's not that long itself is wanted, it's that a regular int just doesn't cut it in some cases [04:20] torvalamo: for NuckingFuts [04:21] marcello3d: well, and js only has double [04:21] marcello3d: which is a superset of int, but not long [04:21] NuckingFuts: lol that's why I don't deal much beyond int and double lol [04:22] NuckingFuts: Because I am primarily a JS coder :P [04:22] NuckingFuts: Also, I just discovered JSDoc. I am documenting the shit out of my code now lol [04:22] torvalamo: it's not about the language, it's about the app [04:22] torvalamo: if you app needs large numbers, then you need long (or bigger) [04:23] NuckingFuts: scientific notation storage XD [04:23] marcello3d: that's what double is [04:23] NuckingFuts: orly? [04:23] marcello3d: base 2, not 10 [04:23] tmpvar has joined the channel [04:23] marcello3d: https://secure.wikimedia.org/wikipedia/en/wiki/IEEE_754-2008 more than you'd ever want to know [04:24] jdub: that url should come with a helmet warning [04:24] marcello3d: actually [04:24] marcello3d: this article is more interesting: https://secure.wikimedia.org/wikipedia/en/wiki/Floating_point [04:24] torvalamo: that's the standard which js doesn't use [04:25] torvalamo: but was suggested for ecma 4 [04:25] torvalamo: and then scrapped [04:25] NuckingFuts: It's rather annoying to me that computers are inaccurate like this lol [04:25] torvalamo: because of backwards compatibiliry [04:25] torvalamo: t [04:25] marcello3d: do they use 1985? [04:25] NuckingFuts: People talk about how computers don't make mistakes. [04:25] NuckingFuts: Well... They're full of shit. [04:25] torvalamo: computers don't make mistakes [04:25] jdub: not true [04:25] marcello3d: https://secure.wikimedia.org/wikipedia/en/wiki/IEEE_754-1985 [04:26] jdub: computers don't make mistakes: they do exactly what you tell them to do [04:26] Aria: Ever met a gamma ray? [04:26] ossareh_ has joined the channel [04:26] jdub: if that happens to be stupid... c'est la vie [04:26] Aria: Single bit errors are very common. [04:26] NuckingFuts: Computers do exactly what you tell them to... Within their precision. [04:27] NuckingFuts: There's always issues. [04:27] NuckingFuts: Especially wiht numbers. [04:27] Ond: They do exactly what you tell them to. [04:27] marcello3d: oh boy [04:27] Ond: The fault of imprecision or computer error is not the computer's. [04:27] torvalamo: ** On two occasions I have been asked, – "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" In one case a member of the Upper, and in the other a member of the Lower House put this question. I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. [04:27] marcello3d: node.philosophy [04:27] mscdex: gamma rays caused unintended acceleration in Toyotas! [04:27] mscdex: :p [04:28] NuckingFuts: Like how trying to convert 2.2250738585072011e-308 to a double in older PHP causes massive assfuckage. [04:28] NuckingFuts: Computers do have issues. [04:28] jdub: NuckingFuts: you told the computer to use php/javascript/java/etc [04:28] NuckingFuts: Just mostly in implementations lol [04:28] mscdex: SKYNET! [04:28] mscdex: rise of the asynchronous machines [04:29] NuckingFuts: mscdex: I'm all for that lol [04:29] marcello3d: "call us back when you take over the world" [04:29] NuckingFuts: RISE UP NODEJS RISE *muwahahaha* [04:29] NuckingFuts: marcello3d: Oh god. I feel like such a nerd now. Damnit, Jimmy. [04:30] marcello3d: is it possible to implement your own stream? http://nodejs.org/docs/v0.4.0/api/streams.html#readable_Stream [04:30] torvalamo: everything is possible [04:30] marcello3d: uh huh [04:31] marcello3d: can I overload operators? [04:31] NuckingFuts: do the impossible, think the unthinkable. Row Row, fight the powah. [04:31] Aria: Quite possible. [04:31] Aria: No, you can't. [04:31] NuckingFuts: Damnit, moot, and your forced meems. [04:31] torvalamo: but if that was a rhetorical question, then I think the answer is no.. [04:31] NuckingFuts: *memes [04:31] Aria: Not without hacking V8 ;-) [04:31] marcello3d: ok [04:31] marcello3d: then I should perhaps ask [04:31] marcello3d: how would I go about implementing my own stream? [04:32] torvalamo: look at streams.js or whatever [04:32] torvalamo: stream [04:32] NuckingFuts: Goddamnit. Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} [04:32] torvalamo: tcp.js [04:32] torvalamo: and so on [04:32] NuckingFuts: And the solution on the wiki isn't helping. [04:32] torvalamo: it's all there [04:33] NuckingFuts: Probalby because of this: [04:33] NuckingFuts: $ echo $SHELL [04:33] NuckingFuts: ./bin/bash [04:33] NuckingFuts: Had to add a dot. damnit, mIRC [04:33] marcello3d: wow [04:33] marcello3d: mIRC still exists? [04:34] NuckingFuts: marcello3d: Well, yeah. It's still one of the bigger clients on Windows :/ [04:34] jdub: marcello3d: node.js == zombo.com [04:34] NuckingFuts: Google for "Windows IRC client": (1) mIRC (2) XChat (3) Babbel [04:35] NuckingFuts: That's excluding non-client results [04:35] NuckingFuts: Like other lists [04:35] marcello3d: node.js power zombo.com? D: [04:35] marcello3d: *powers [04:37] torvalamo: it powers a lot of things [04:37] ossareh_ has joined the channel [04:37] jdub: marcello3d: no, i meant metaphorically [04:37] NuckingFuts: WTF is zombo.com :| [04:37] marcello3d: zombo.com is history [04:38] marcello3d: ok [04:38] marcello3d: I need to reboot. my computer is really fuct up [04:38] marcello3d: like woah fuct up, I can't even upload the screenshot of how screwed up chrome is right now [04:38] beta__ has joined the channel [04:40] sholmes has joined the channel [04:40] marcello3d has joined the channel [04:40] MatthewMueller has joined the channel [04:41] blueadept has joined the channel [04:41] mattly has joined the channel [04:42] MatthewMueller: Hey all, [04:43] MatthewMueller: I'm looking for a good way of taking in a .json file that includes functions, parsing it, then rewriting it back to a json file still including the function code as strings. Does anyone know a good way of doing this>? [04:45] marcello3d: json doesn't allow functions... [04:45] NuckingFuts: MatthewMueller: Convert functons to strings shouldn't be hard >_> [04:46] jdub: looks like my FIN_WAIT2 issue might be an https client problem... :-( [04:46] jdub: https://github.com/ry/node/issues/issue/664 [04:47] MatthewMueller: NuckingFuts: So once I have a JSON object, converting the functions it contains to a string isn't hard? [04:47] MatthewMueller: NuckingFuts: Could you please enlighten me if that's the case? [04:47] marcello3d: you should be able to call toString() on the function [04:47] marcello3d: to get the string version [04:48] MatthewMueller: marcello3d: Hm.. okay I'll try that out - thanks! [04:48] sudoer has joined the channel [04:50] MatthewMueller: marcello3d: God that's sexy - thanks! [04:50] marcello3d: ;) [04:50] NuckingFuts: lol [04:50] NuckingFuts: toString is quite a godly thing [04:51] MatthewMueller: why doesn't JSON.stringify(....) include functions then? [04:51] chapel: ryah: I am still having issues using https client to upload stuff :( [04:51] ossareh_ has joined the channel [04:51] NuckingFuts: Can somebody who managed to build NodeJS 0.4.0 on Cygwin toss me node.exe? [04:51] marcello3d: because json doesn't support functions [04:51] NuckingFuts: It won't build for me :V [04:51] NuckingFuts: Keeps failing, and nothing seems to fix it. [04:51] dgathright has joined the channel [04:52] chapel: ryah: 0.4.0 and it works on small file, but once they are a certain size it just exits out, like it doesn't even happen [04:52] marcello3d: I think there's a method you can pass to stringify that lets you filter objects [04:52] marcello3d: if that's the case, you could convert functions to strings on the fly, yourself [04:52] marcello3d: obviously once they're strings you have no way of knowing they're supposed to be functions again [04:52] NuckingFuts: marcello3d: eval each one XD [04:52] NuckingFuts: lolbadpractices [04:53] MatthewMueller: hahah actually I'm passing it back through the [04:59] chapel: well [04:59] chapel: you should look at dnode [04:59] NuckingFuts: but what is the question? "What do you get when you multiply five times nine?" [04:59] chapel: http://github.com/substack/node-dnode [05:00] MatthewMueller: chapel: oo la la. I'll check it out - I'm trying to get it working with backbone.js fyi [05:00] chapel: https://github.com/substack/dnode [05:00] chapel: I have it working with dnode [05:00] chapel: well for the most part, backbone and dnoe [05:00] chapel: dnode [05:01] chapel: still have a few things to do on client to smooth it out, but its really easy to override the Backbone.sync and have it handle dnode functions [05:01] ossareh_ has joined the channel [05:01] MatthewMueller: chapel: This looks great - would you have any resources or code I could check out or no? [05:01] MatthewMueller: also have you been able to consolidate your views too? [05:02] chapel: consolidate? in what way? [05:02] chapel: well atm, my code is rough, but I could gist up a snippet that gives you an idea [05:03] MatthewMueller: chapel: anything would be great. I'm trying to get this done tonight - I have a good idea how to do it now, but this looks more promising for the future [05:03] chapel: yeah dnode is awesome [05:04] chapel: it handles exactly what you are talking about [05:10] sholmes: Hey, does anyone know what the ramifications are if I purchase a VPS with servers located in Germany? [05:11] sholmes: Does my business fall under German laws? [05:11] MatthewMueller: chapel: So this kind of looks like a wrapper for socket.io. I can see this being really useful, but I'm not picturing how to have one set of models this way. [05:11] sholmes: Is having a US based business with a Germany server have bad latency issues? [05:11] chapel: MatthewMueller: it is more than a wrapper for socket.io [05:12] chapel: it does use socket.io for a lot of its stuff [05:12] sholmes: Sorry for asking these questions here, but I don't know of any other more friendly IRC channels. If you don't want me asking these of topic questions, I understand. [05:12] chapel: but most of the 'magic' is not related to socket.io [05:12] chapel: sholmes: its cool, and servers in germany are going to have a higher latency, but it really depends on what you are doing if it will matter [05:13] sholmes: I'm going to be doing a lot of real-time stuff with Node, such as chat etc. [05:13] MatthewMueller: chapel: yah, so it calls functions over the wire. I'm looking to have models on my client and server, but client can't have all the same functions and properties as the server [05:13] sholmes: If it's like a second delay latency, I'm sure I can live with that. [05:13] sholmes: for now. [05:14] uho has joined the channel [05:14] lukegalea has joined the channel [05:14] MatthewMueller: chapel: Maybe I'm just not seeing the big picture though.. [05:15] sholmes: But, I'm talking about legal stuff. Will I have to comply with the German government? [05:15] sholmes: That's the biggest thing that would concern me. [05:16] chapel: MatthewMueller: well how I have it setup is I create a function that takes the args I need to get model/s and send that to the remote dnode function on the server, which then returns the model/s [05:16] sholmes: If it was legal in Germany to take owner ship of any business/service located in Germany, could they just go ahead and take my site? [05:16] chapel: another way I did it was to send the db functions over to the client, and use them directly there [05:17] chapel: sholmes: I honestly don't know [05:17] marcello3d: sholmes: paranoid much? [05:18] sholmes: marcello3d: haha. I guess that is paranoia. But I really would like to play this safe. [05:18] marcello3d: get a lawyer if it's a real concern [05:18] MatthewMueller: chapel: Oh I gotcha. Hm.. I'll look into that approach - thanks a lot. [05:18] marcello3d: put everything on an encrypted drive [05:18] chapel: just know that it wont send out prototyped functions by default [05:18] chapel: you have to explicitly send those [05:18] chapel: there are a lot of approaches [05:18] marcello3d: and only allow manual unlocking at boot [05:18] MatthewMueller: chapel: sounds good, yah [05:19] sholmes: have you guys ever bought a server out source? [05:19] sholmes: off shore I mean [05:19] Aria: I have a VPS in Europe, and one here in the US [05:20] marcello3d: sholmes: germany could be invaded by russian [05:20] sholmes: Aria, which pare of Europe? [05:20] marcello3d: and the russians could take your server hostage [05:20] Aria: the Netherlands. [05:20] sholmes: they could take the server all they want. [05:20] sholmes: I'll still have the code [05:20] Aria: marcello3d: You forgot poland!! [05:20] marcello3d: and demand money for its safe return [05:20] sholmes: What I'm wondering is if they could take the code. [05:21] marcello3d: they'll hack the server and sell all your code on the russian black market [05:21] sholmes: lol [05:21] marcello3d: it's simple [05:21] marcello3d: no one wants your code [05:21] sholmes: The could never take the domain I suppose. [05:21] sholmes: So even if they took the code, and I built a brand, they couldn't take the brand. [05:22] marcello3d: if you're making money [05:22] marcello3d: get your own server [05:22] Aria: Depending on the domain, and the laws around that. [05:22] marcello3d: if this is such a big deal to you [05:22] ossareh_ has joined the channel [05:22] sholmes: marcello3d: it's not a *big deal*. I'm just curious about this. [05:22] sholmes: Never thought about it before, so that's why I asked here. [05:22] Aria: the ways a hostile government can screw with you are endless. [05:23] sholmes: I think's fine for now. Later I can get an on shore server once I expand. [05:23] Aria: The ways a non-hostile government will screw with you are much more limited, and they generally stick to taking things used for something they consider illegal. [05:23] Aria: However, governments are ham-fisted, and do things like back a truck up to a server room and say "We want it all. The warrant says we get it all." [05:24] marcello3d: you might actually be safer with code outside of the country than in the country [05:24] marcello3d: when it comes down to governments ;) [05:24] sholmes: marcello3d: why do you say that? [05:24] Aria: Well, the FBI /did/ seize a whole roomful of servers this year from a network center in chicago. [05:24] marcello3d: because it becomes an international issue [05:24] marcello3d: if either government tries to get involved [05:25] lukegalea has joined the channel [05:25] sholmes: and what does it being international do for me? [05:25] sholmes: start wars? lol [05:25] marcello3d: yes [05:25] sholmes: Awesome! My site would get so much publicity from that! [05:25] Aria: Nah, it means you're involved with international law. Which could be for or against you depending on treaties involving commerce between the two countries. [05:25] sholmes: Darn. No mortal conflict then... [05:26] marcello3d: just think how much code you could have written in the last 20 minutes of thinking about this [05:26] sholmes: If anything happens, the best bet is to get a lawyer. [05:26] sholmes: Good poing marcello3d. I should just *do it*. [05:27] sholmes: ACTION closes subject [05:27] spaceinvader: hmm [05:27] jotaru has joined the channel [05:27] sholmes: sounds to me like it's fine getting a german server [05:28] sholmes: and I have nothing to be concerned with, realistically [05:28] spaceinvader: if i have [ {a: 1, ...} , {a: 2, ...} ] what kind of reduce function do i want on the array to get 3 [05:29] plyons has left the channel [05:29] ossareh_ has joined the channel [05:30] JimBastard: fucking hack event with kegs [05:30] JimBastard: now im drunk [05:30] spaceinvader: haha [05:30] JimBastard: thank god for hij1nx and tmpvar , they are our only hope [05:31] marcello3d: how does this look? https://gist.github.com/824478 [05:31] JimBastard: looks like code, hiyoooo [05:31] abraham has joined the channel [05:31] marcello3d: english much? [05:31] marcello3d: that sort bit is probably wrong [05:31] Aria: A untwisted non-maze of code, all different? [05:32] ossareh_ has joined the channel [05:32] marcello3d: trying to make a custom stream [05:32] spaceinvader: modules.map(function(a) { return a.credits }).reduce(function(a,b) { return a + b }) [05:32] jamesaro_ has joined the channel [05:32] spaceinvader: O_o [05:33] spaceinvader: i think maybe just iterating and having an extra variable might be more efficient.. [05:39] softdrink has joined the channel [05:40] Tim_Smart has joined the channel [05:40] marcello3d: it works :D [05:41] marcello3d: updated: https://gist.github.com/824478 [05:42] zlipp has joined the channel [05:43] lukegalea has joined the channel [05:44] MatthewMueller: hey guys - is there anything wrong with intercepting