[00:00] TooTallNate: OSX, https://gist.github.com/ea710c6cb44bdae444f0 [00:01] TooTallNate: gzip and tar are the default versions [00:02] mikeal has joined the channel [00:03] isaacs: TooTallNate: that's odd. [00:03] isaacs: TooTallNate: can you download http://registry.npmjs.org/npm/-/npm-1.0.13.tgz? [00:04] TooTallNate: yes, very odd. and 'tar xzvf' extracts the file fine [00:04] TooTallNate: cloning, and 'make install' worked, however... [00:04] Nican has joined the channel [00:06] zeade: TooTallNate: the one-liner npm install didn't work for me on OSX either, I ended up using the MacPorts version [00:06] bajeczka has joined the channel [00:07] TooTallNate: zeade: thanks, yes very strange. Hopefully isaacs can figure it out [00:07] TooTallNate: I thought you used a mac though, isaacs? [00:07] tauren: anyone here using jade? I know how to precompile jade templates into javascript functions. But how can I save these compiled functions to a file so that I load them into a browser? I'd rather do that then run jade client-side. [00:07] Cover|Work: joyent is a solaris shop [00:07] zeade: whoa... [00:07] Cover|Work: might also depend on osx version [00:08] TooTallNate: tauren: usually, you'd execute the jade template repeadedly [00:08] TooTallNate: *repeatedly [00:08] quackquack: tjholowaychuk: could I see an example model using mongodb w/o mongoose? [00:08] tjholowaychuk: quackquack i dont touch that stuff [00:08] tjholowaychuk: mongodb doesn't have models [00:08] tjholowaychuk: it's just documents [00:08] tjholowaychuk: there's no restriction in form, that's up to you [00:08] quackquack: so you dont use a model in your code? [00:08] Marak has joined the channel [00:09] ichilton has joined the channel [00:09] tjholowaychuk: we use mongoose [00:09] Marak: tbranyen: https://github.com/nodejitsu/http-server [00:09] tauren: TooTallNate: right -- so wouldn't it make sense to precompile them into javascript and serve them as javascript functions to the client? [00:09] Marak: tbranyen: npm install http-server -g [00:09] quackquack: isnt mongoose for building models? [00:09] ParadoxQuine: tjholowaychuk: is there a way to get more verbose (or just more) errors out of express configuration? i often try to use a compiler (say, for coffeescript) and it silently does nothing [00:09] sudhirjonathan has joined the channel [00:10] TooTallNate: quackquack: Schema's is the wording [00:10] TooTallNate: and just look at the mongoose examples in the repo [00:10] brianseeders has joined the channel [00:10] TooTallNate: it's really straightforward [00:10] ParadoxQuine: anyone know the name of the project that lets you edit CSS and refreshes it in your browser automatically. it used node for the serverside watching.. [00:11] quackquack: TooTallNate: I am looking at it but their arent any validation examples [00:11] tbranyen: Marak: tht wasn't three hours bro [00:11] tbranyen: felt like an eternity [00:11] TooTallNate: what do you mean validation? that's what defining the types is for? [00:11] riven has joined the channel [00:11] riven has joined the channel [00:11] severla has joined the channel [00:11] Marak: tbranyen: i think i have a image for this [00:11] quackquack: TooTallNate: like making sure an email is an email, or a username is long enough [00:12] TooTallNate: oh ok [00:12] bajeczka has joined the channel [00:12] bitwise_: my quick writeup on debugging. i might need to get deeper on the actual node debug environment but it seems node-inspector is easier to use: http://tumblr.com/x4o315z5v2 [00:12] TooTallNate: then use schema.path('prop').set(function() {...}) [00:12] TooTallNate: quackquack: [00:12] severla: tjholowaychuk: script(src:"path") --> this syntax not yet supported? i mean : instead of = for attrs [00:12] TooTallNate: ^ [00:13] tjholowaychuk: severla it was removed [00:13] xerox: where does one put the form inputs names and values in a POST request with this? https://github.com/mikeal/request [00:13] severla: :S [00:13] tjholowaychuk: : is gets in the way of namespacing [00:13] Cover|Work: too haml like [00:13] severla: yeah [00:13] xerox: beats me [00:13] quackquack: TooTallNate: sorry, i'm confused, what does the path method do [00:13] severla: cool change anyway ... thou i've got to change dozens of files [00:13] bitwise_: xerox: in the body parameter [00:14] tjholowaychuk: severla i might end up adding an option, we have lots using : as well [00:14] xerox: bitwise_: and how does one encode it? [00:14] TooTallNate: quackquack: https://github.com/LearnBoost/mongoose/blob/master/docs/validation.md [00:14] cjm has joined the channel [00:14] bitwise_: request({uri:'', body:'param1=foo¶m2=fee'}) [00:15] xerox: bitwise_: ah like that, what if you have newlines in one of the parameter's value, because it is a textarea? [00:15] bitwise_: and the callback at the end [00:15] quackquack: okay, so once you validate it and get an error, how do you identify which validation threw the error [00:15] xerox: and other not url-friendly symbols as well [00:15] bitwise_: good q [00:15] xerox: mmm [00:15] Murvin: isaacs: I'm still working on the sample and testing it (for socket issue). I will post the code tmr. [00:16] isaacs: Murvin: sweet :) [00:16] jscheel has joined the channel [00:16] jscheel has joined the channel [00:16] quackquack: TooTallNate: is there any way to identify the failing validation on a save? [00:17] TooTallNate: quackquack: If an error happens, your Model#save callback receives it. [00:17] johnnywengluu: could someone explain what fs and buffer is: fs.writeSync(fd, buffer, offset, length, position) [00:17] quackquack: right, but how do I know which field the error was on [00:17] johnnywengluu: cant get it by reading the doc [00:17] Murvin: isaacs: because not only there is one major issue I mentioned, but some other things I observed. I will also write it up in details. :) [00:17] TooTallNate: there's probably some property on the error object, I'm not sure to be honest [00:18] tbranyen: woot making stuffed shells [00:18] tjholowaychuk: stuffed shells? [00:18] quackquack: TooTallNate: this is the output http://www.pastie.org/2080287 [00:19] ngs has joined the channel [00:19] TooTallNate: quackquack: so the `errors` property then [00:19] tbranyen: tjholowaychuk: egg whites and ricotta mixed with asiago and romano stuffed into shell pasta and baked with red sauce and mozzarella [00:19] TooTallNate: anything in that object had failed validation [00:19] tjholowaychuk: haha [00:19] quackquack: but how do I know which validation it fails if there are more than one? [00:20] TooTallNate: tbranyen: sounds good! [00:20] quackquack: w/o regex matching the message, cause thats sort of a hack :P [00:20] tbranyen: another stuffed shell is cat /dev/urandom [00:20] TooTallNate: the message only says 'Validation failed' [00:20] TooTallNate: there's nothing useful there :p [00:20] TooTallNate: How about doing : "Object.keys(err.errors)" [00:21] TooTallNate: That'll give you an array of the properties that failed validation [00:21] quackquack: how do I know if the error on the username was because it was too short or it had a space in it? [00:22] TooTallNate: I guess passing a _useful_ err string to the validate() function (3rd arg) [00:22] quackquack: ! i didnt know their was a 3rd arg. can you point me to some docs on that? [00:24] pyrony has joined the channel [00:24] TooTallNate: it's in that doc page [00:24] hermanjunge: Hey! question: Where do you find LOGS of the irc conversations? by day? [00:24] infynyxx has left the channel [00:24] quackquack: are you sure? I only see 2 args [00:25] Roelven has joined the channel [00:25] quackquack: function(v, fn) and 'my error type' [00:25] ParadoxQuine: anyone here use vogue and express (with stylus) together? [00:25] TooTallNate: quackquack: oh yeah, well it's the second arg then [00:25] ParadoxQuine: i'm having trouble getting vogue to work with stylus [00:25] tjholowaychuk: what's vogue [00:26] quackquack: but I would have to parse the second arg out, it is embedded in the message in Validator...failed for path email [00:26] ParadoxQuine: tjholowaychuk: it auto-reloads css changes without a refresh [00:27] TooTallNate: quackquack: hhmmm, idk if there's a way to do that short of parsing the string, unfortunately [00:27] zeade: are there persuasive marketecture (marketing numbers blah blah + architecture design) on competitive advantages of node.js vs other platforms? for instance if i was sold on using JS as a language why not use spidermonkey guts? [00:28] tjholowaychuk: ParadoxQuine hmm i've seen smaller solutions that should be better [00:28] tjholowaychuk: can't remember the names though [00:28] joshthecoder has joined the channel [00:28] tjholowaychuk: no need for socket.io etc though lol [00:28] tjholowaychuk: that's overkill [00:28] tjholowaychuk: x10000 [00:28] quackquack: TooTallNate: well, thanks! [00:28] SubStack: zeade: there are not [00:29] bitwise_: in node debugger why do i break on lines internal to node? [00:29] ParadoxQuine: hmm i will look around, this is the only thing i've seen that does that kind of instant css reloading [00:29] dyer has joined the channel [00:29] brettgoulder has joined the channel [00:29] tjholowaychuk: ParadoxQuine nah that's super overkill one sec [00:29] bitwise_: right at this var: (function (exports, require, module, __filename, __dirname) { var express [00:29] TooTallNate: http://david.dojotoolkit.org/recss.html [00:29] SubStack: zeade: but starting with the conclusion and then working backwards to arrive at an argument taints the whole endeavor anyways [00:30] quackquack: tjholowaychuk, ParadoxQuine: there otta be a chrome plugin to do the css reload, though I dont know its name [00:30] igl has joined the channel [00:30] zeade: SubStack: not sure I understand what you mean by that [00:30] tjholowaychuk: you can just reload on a timeout, unless you are super fast or super slow at editing it's fine IMO [00:30] tjholowaychuk: and it's like 3 lines [00:30] tjholowaychuk: vs overkill [00:30] _Sorensen has joined the channel [00:31] LukeGalea_ has joined the channel [00:31] hermanjunge: SubStack: Hi, Do you know a way to access logs of past irc conversations? [00:31] kruckenb has joined the channel [00:32] MooGoo: open ur logs in notepad [00:32] MooGoo: search for stuff [00:32] kersny: http://nodejs.debuggable.com/ [00:33] hermanjunge: Thanks kersny [00:33] hermanjunge: for other rooms, there are not logs available from freenode.net doing some commands? [00:33] TooTallNate: quackquack: you should open a Mongoose Issue describing your situation. That functionality should be there IMO [00:34] chapel: tjholowaychuk: what is your canvas image crop/resizer? [00:34] quackquack: TooTallNate: alright, I will. im afraid I will have a rough time explaining it though :P [00:34] tjholowaychuk: chapel not sure what you mean [00:34] chapel: was it you? [00:34] ParadoxQuine: quackquack, tjholowaychuk: true, though if i could have it update the css without reloading the page it makes it much easier to edit popups and overlays, etc [00:34] tjholowaychuk: chapel we use GM in LearnBoost [00:34] tjholowaychuk: for right now [00:34] chapel: gm? [00:35] tjholowaychuk: but we could use node-canvas [00:35] TooTallNate: you could use node-canvas for simple image resizing though, easy [00:35] chapel: what about cropping? [00:35] tjholowaychuk: ParadoxQuine: yeah, you can do that with an interval as well [00:35] quackquack: TooTallNate: oh! someone beat me to it: https://github.com/LearnBoost/mongoose/issues/368 [00:35] tjholowaychuk: with little trouble [00:35] tjholowaychuk: and involving no SS stuff [00:35] tjholowaychuk: no point IMO [00:35] __tosh has joined the channel [00:36] TooTallNate: quackquack: oh nice! [00:36] Nexxy has joined the channel [00:37] chbrown has joined the channel [00:38] CodyGray has joined the channel [00:39] CodyGray has left the channel [00:39] ParadoxQuine: tjholowaychuk: how should i go about debugging my silently failing attempt to auto-compile my coffeescript client-side code to js? i have this in app.configure [00:39] tjholowaychuk: not using coffeescript [00:40] ParadoxQuine: http://pastie.textmate.org/private/aoi1bsty56ydd2zprld3zq [00:40] tjholowaychuk: im not helping with that :p sorry [00:40] k1ttty has joined the channel [00:40] ParadoxQuine: lol what's wrong with coffeescript? [00:40] tjholowaychuk: i have no clue what it does [00:40] tjholowaychuk: i didnt even add that to the compiler [00:40] tjholowaychuk: so it may or may not work [00:41] MooGoo: coffeescript isnt that great [00:41] jscheel_ has joined the channel [00:41] jscheel_ has joined the channel [00:41] ParadoxQuine: i'm not sure why one would choose js over it though, other than purism [00:41] bitwise_: any idea why i would get "Cannot POST" when I try to curl to a local express server? [00:41] gtramont1na has joined the channel [00:42] tjholowaychuk: ParadoxQuine because you dont run into problems like you are right now [00:42] tjholowaychuk: bitwise_ 404 [00:42] MooGoo: some people dont like languages that try to be like python [00:42] bitwise_: ah youre right [00:43] xerox: bitwise_: turns out [00:43] ParadoxQuine: yea, but you spent time dealing with superfluous syntax and cumbersome foreach loops, so it's a tradeoff [00:43] newy_ has joined the channel [00:43] xerox: no special encoding is necessary [00:43] tjholowaychuk: ParadoxQuine nope, all automated, i rarely write constructs... [00:43] bitwise_: tjholowaychuk: this is all i have in my server https://gist.github.com/1030650 [00:43] MooGoo: or I could spend time learning a useless language that does nothing really [00:43] MooGoo: all coffeescript has over js is concise function literal syntax [00:43] tjholowaychuk: -> is lame [00:43] bitwise_: and my curl: curl http://127.0.0.1:3001/post-logger -d "foo=fa" [00:44] ParadoxQuine: tjholowaychuk: do you use snippets and such then instead? [00:44] MooGoo: coffeescript really only appeals to people who for whatever reason never liked JS in the first place [00:44] neoesque has joined the channel [00:44] xerox: bitwise_: just use http://www.postbin.org/ [00:44] tjholowaychuk: ParadoxQuine yeah, I don't ever type "function", or loops, or conditionals, etc [00:44] xerox: :))) [00:45] tjholowaychuk: MooGoo agreed [00:45] beriberikix: isaacs: is npm search a couchapp [00:45] beriberikix: ? [00:45] MooGoo: tjholowaychuk you use some kind of preprocessor? [00:46] aaronblohowiak has joined the channel [00:46] isaacs: beriberikix: yes. [00:46] ParadoxQuine: tjholowaychuk: what's your editor? [00:46] isaacs: beriberikix: the npm registry is a couchapp [00:46] tjholowaychuk: MooGoo nope [00:46] tjholowaychuk: ParadoxQuine: usually TM [00:46] bitwise_: thats slick thanks xerox [00:46] ParadoxQuine: tjholowaychuk: is there an enhancement to the node.js bundle? I found that, so far, tm is pretty short on node.js snippet collections afaik [00:47] tjholowaychuk: ParadoxQuine I haven't updated that in a longggg time, too lazy [00:47] xerox: bitwise_: no problem! :D [00:48] kriskowal has joined the channel [00:48] jasong_at_apache has joined the channel [00:48] bitwise_: doesnt fix my problem (request can't be found in my test app) but oh well [00:48] ParadoxQuine: haha, so you just make your own snippets then? [00:48] xerox: : ( [00:49] mandric has joined the channel [00:49] zivester has joined the channel [00:50] bitwise_: in the repl require( 'request' ) works great, when i expresso file.js it barfs [00:50] ParadoxQuine: i'm going to see what i can do to better the tm node.js support once i finish this project. if whoever owns the node.js bundle wants to fix the "run" command for node 0.4.x that would be great though, since I don't know how to fix that myself [00:50] patrickarlt has joined the channel [00:51] xandrews has joined the channel [00:51] xerox: I don't know what is expresso sorry [00:51] xerox: a mistype of espresso xD [00:51] isaacs: xerox: it's a test runner that express uses [00:52] erictj: @tjholowaychuk: In Express, can you get the next available port at the OS level by calling app.listen(0); ? [00:52] tjholowaychuk: haha it's a really poorly named / misspelled test framework [00:52] bitwise_: heres the test im trying to run https://gist.github.com/1030658 [00:52] tjholowaychuk: erictj yeah [00:52] tjholowaychuk: erictj same as node's http.Server [00:52] erictj: awesome, so app.address() will get me that the port? [00:52] cjus has joined the channel [00:53] tjholowaychuk: erictj yeah app.address().port [00:53] erictj: rad, thx! [00:53] xerox: o [00:53] bitwise_: the magic is the exports.test* [00:53] davidbanham has joined the channel [00:53] CodyGray has joined the channel [00:53] tonymilne has joined the channel [00:56] bitwise_: seems like expresso should have access to the libs that are npm installed sholdnt it? [00:57] davidwalsh has joined the channel [00:58] avalanche123 has joined the channel [00:58] xerox: does it have any documentation bitwise_ [00:59] Lorentz has joined the channel [00:59] NuckingFuts|Away has joined the channel [01:01] bitwise_: yeah, read it. i even tried -I /usr/local/lib/node still thinks request is not defined [01:01] mike5w3c has joined the channel [01:02] chbrown has joined the channel [01:02] skm has joined the channel [01:03] copongcopong has joined the channel [01:03] sioked has joined the channel [01:04] ekryski has left the channel [01:04] bengl_ has joined the channel [01:05] Lorentz_ has joined the channel [01:05] deedubs has joined the channel [01:06] PeterPeterPeter has joined the channel [01:06] PeterPeterPeter: when i run node in terminal.. how do I terminate the instance [01:06] _Sorensen: ctrl C for windows [01:07] PeterPeterPeter: ctrl+x seems to keep the server alive [01:07] PeterPeterPeter: i'm using a mac [01:07] xerox: ^C [01:07] tjholowaychuk: PeterPeterPeter ^C == SIGINT [01:07] xerox: kill..toolate [01:07] bitwise_: ive been having to ^Z for some reason [01:07] tbranyen: ctrl d or bust [01:07] Emmanuel__ has joined the channel [01:07] bitwise_: and kill -9 %1 [01:08] PeterPeterPeter: thank you [01:08] PeterPeterPeter: ^c did it [01:08] PeterPeterPeter: i was press ^x before [01:08] PeterPeterPeter: pressing [01:09] Emmanuel__: hey, anybody knows if there is a special trick to post JSON data with Node to php ? I can't pass it in the url (too big), and I didn't manage to have it work any other way [01:09] Emmanuel__: I've been blocked with that for like a day :) [01:10] gerard0 has joined the channel [01:11] erictj has joined the channel [01:11] binaryjohn has joined the channel [01:11] tonymilne: Emmanuel__: use POST? [01:11] Emmanuel__: here is a sample of the code : http://pastebin.com/3WvZQSbq [01:12] Emmanuel__: and in my php script, I've got empty arrays for $_POST and $_REQUEST [01:12] Emmanuel__: there must be a stupid noob error here, but I couldn't spot it [01:12] dguttman has joined the channel [01:12] prettyrobots has joined the channel [01:13] bentruyman has joined the channel [01:13] PeterPeterPeter: what's wrong with that? [01:13] bitwise_: options.body = postData [01:13] Emmanuel__: bitwise_: will try that [01:13] bitwise_: i dont see a request.end in the docs [01:13] bitwise_: ah wait im looking at the request module. not http.request [01:15] Emmanuel__: should I urlencode the body ? [01:15] mundanity has joined the channel [01:16] matyr_ has joined the channel [01:17] hij1nx_ has joined the channel [01:17] Emmanuel__: -> error 400 [01:19] copongcopong1 has joined the channel [01:19] dyer has joined the channel [01:19] dyer has joined the channel [01:19] machine5 has joined the channel [01:22] jhurliman: is there another node.js besides node-crawler? node-crawler is broken in at least a half dozen ways [01:23] Swimming_bird has joined the channel [01:25] alek_br has joined the channel [01:26] Emmanuel__: and that sucks, because the only documentation I can find is about getting POST content with node [01:26] jherdman has joined the channel [01:26] ditesh|cassini has joined the channel [01:26] brianseeders has joined the channel [01:29] Marak has joined the channel [01:29] Marak: can someone do a sanity check for me [01:29] Marak: npm install http-server -g [01:30] jherdman has joined the channel [01:30] fson has joined the channel [01:31] Marak: please [01:31] quackquack: what is the error you are getting? [01:32] perlmonkey2 has joined the channel [01:33] JoshC1 has joined the channel [01:34] perlmonkey2: anyone have some google-able words for what I'm looking for, which is the best pattern for maintaining state with dnode callbacks. [01:34] ditesh|cassini: Marak, installation was ok. [01:34] Marak: ditesh|cassini: when you start http-server? [01:34] Marak: any errors? [01:35] Sidnicious|Home has joined the channel [01:35] jpstrikesback1 has joined the channel [01:36] matyr has joined the channel [01:36] tjholowaychuk: Marak seems fine [01:36] ianward has joined the channel [01:36] abraxas has joined the channel [01:36] Marak: thanks tjholowaychuk [01:38] arlolra has joined the channel [01:38] TooTallNate has joined the channel [01:39] ditesh|cassini: Marak, works out of the box. [01:39] davidbanham has joined the channel [01:39] mynyml has joined the channel [01:39] Marak: ditesh|cassini: awesome thanks [01:40] KingJamool has joined the channel [01:40] ditesh|cassini: Marak, tho, if something else has grabbed on to port 8080, it doesn't seem to capture the error event and naturally dies. [01:41] arlolra: is it possible to spawn a process, not care about its output and have it go on even when your process exits? [01:41] Marak: ditesh|cassini: no binding error? [01:42] Destos has joined the channel [01:43] ditesh|cassini: Marak, nope. [01:44] Marak: you don't see, Marak-Squiress-MacBook-Pro:dev maraksquires$ http-server Starting up http-server, serving . on port: 8080 events.js:45 throw arguments[1]; // Unhandled 'error' event ^ Error: EADDRINUSE, Address already in use [01:45] ditesh|cassini: Marak, sorry, yes, i see that. [01:45] Marak: :p [01:45] matyr_ has joined the channel [01:46] newy_ has joined the channel [01:47] jscheel_ has joined the channel [01:48] samsonjs has joined the channel [01:52] langworthy has joined the channel [01:53] sivy has joined the channel [01:54] chbrown has joined the channel [01:54] DTrejo has joined the channel [01:55] DTrejo_ has joined the channel [01:55] marcello3d has joined the channel [01:56] marcello3d: allo [01:56] _Sorensen: hey [01:57] marcello3d: what's new in nodeland? [01:58] gavin_huang has joined the channel [01:58] _Sorensen: well, not much for me [01:58] _Sorensen: SubStack is working on node-burrito and stackedy [01:58] _Sorensen: i'm still fiddling with a OSS chat app [01:58] _Sorensen: Marak is working on hook.io [01:58] marcello3d: node little donkey? D: [01:58] _Sorensen: and thats all i know :) [01:59] marcello3d: what does that do? [01:59] _Sorensen: which [01:59] marcello3d: node burrito [01:59] _Sorensen: you'll have to look, i'm not entirely positive. but its a 'wrapping' library [01:59] _Sorensen: burrito wraps! [02:00] _Sorensen: https://github.com/substack/node-burrito [02:01] CodyGray has joined the channel [02:01] CodyGray has left the channel [02:01] jacter has joined the channel [02:01] jerrysv has joined the channel [02:02] jtsnow has joined the channel [02:02] piscisaureus_ has joined the channel [02:03] broofa has joined the channel [02:03] jacobolu_ has joined the channel [02:03] mstapp has joined the channel [02:03] dremoor has joined the channel [02:04] marcello3d: thanks for the link [02:04] marcello3d: sleep time for me :D [02:04] cjm has joined the channel [02:05] josephholsten has joined the channel [02:06] _Sorensen: hehe, np, g'night [02:08] a_meteorite has joined the channel [02:08] nannto has joined the channel [02:09] anatoo has joined the channel [02:09] dremoor has joined the channel [02:11] dremoor has left the channel [02:11] merne has joined the channel [02:12] copongcopong has joined the channel [02:12] k1ttty has joined the channel [02:13] Corren has joined the channel [02:14] dremoor has joined the channel [02:15] tk has joined the channel [02:16] jpstrikesback has joined the channel [02:16] arlolra has left the channel [02:18] tk: guess mikeal isnt around? forget if he uses his name as his nick on here or not... [02:19] chbrown: Question about websites with http.createServer: as far as I can tell, you have to start listening to request.on('data', ...) on the very first event that createServer starts; if you start listening in some callback down the line, you'll probably not get any data. But what if I check for the authority of the requesting user within a callback-calling database lookup, and don't want to start listening for data until I have certified th [02:19] chbrown: is logged in? [02:20] Tobsn: hu? [02:21] Tobsn: the further down is probably a scope issue [02:21] Tobsn: authority is what? http auth? [02:21] Tobsn: you still have to accept the request to know what was sent [02:21] chbrown: Tobsn: no, a mongodb lookup. [02:21] Tobsn: still a scope issue [02:21] chbrown: Right, and I'm fine accepting the request. [02:22] Tobsn: but? [02:22] chbrown: But— it seems like a security hole if I start listening for posted data from just any connection. Somebody could launch a lot of streams of data, megabytes each, and since my server has to capture it all, it'd be trivial to max out the memory allotted to my server instance. [02:22] chbrown: Easiest DDoS ever. [02:23] Tobsn: lol [02:23] Tobsn: welcome to the internet [02:23] hdon has joined the channel [02:25] skm has joined the channel [02:26] chbrown: The best solution I've been able to think up so far is to have my req.on('data', ...) listening function periodically check that the request has not yet been refused authentication. [02:27] chbrown: Once the request has failed authentication, it would set request.stop = true, and my listening function would stop as soon as it saw that field had been set. [02:27] sourcode has joined the channel [02:28] asobrasil has joined the channel [02:28] Tobsn: you can chunk it [02:28] Tobsn: listen on body [02:29] Tobsn: for a stream [02:29] Tobsn: and check the bytes sent so far [02:29] Tobsn: but for plain HTTP... well thats how the intertubes work. [02:29] Tobsn: you cant tell how big it is before its uploaded [02:29] Tobsn: or requested etc. [02:30] Tobsn: but for a GET request, browsers only support up to around 1000 chars, if you try that over curl... no clue. [02:30] Tobsn: also if your RAM is full it will start swapping [02:31] Tobsn: if you have 250GB in your server someone needs to send you POST data worth the space on your disk to really freeze up the system [02:31] Tobsn: and i rather believe that the requests will just get dropped [02:31] davidwalsh has joined the channel [02:32] jslatts has joined the channel [02:32] fmeyer has joined the channel [02:33] dguttman has joined the channel [02:35] vanecgs has joined the channel [02:35] chbrown: True. I could set client_max_body_size in my nginx server setting to something reasonable, like 10MB. But if I'm running on a little 500MB RAM linode, it'd only take a pretty stout uplink from one client to curl-POST me 10MB streams at a concurrency of 50 to use up all that RAM. [02:36] Lorentz: There are some things that just needs some more RAM. [02:36] mwhooker has joined the channel [02:37] Tobsn: youre using nginx above node? [02:37] arpegius has joined the channel [02:37] chbrown: At the moment, yes. [02:38] Tobsn: okay [02:38] Tobsn: i got the best solution for you [02:38] Tobsn: purge whatever was in your brain about this "issue" you think you might run into, dont waste your time thinking about it and concentrate on building an app. [02:41] chbrown: Oh, okay. [02:42] philtor has joined the channel [02:43] zeade has joined the channel [02:46] overra has joined the channel [02:48] piscisaureus has joined the channel [02:48] kawaz has joined the channel [02:49] jamescarr__: marak [02:51] shirro has joined the channel [02:52] jacobolus has joined the channel [02:54] Aria has joined the channel [02:54] Lorentz has joined the channel [02:56] fakewaffle has joined the channel [02:57] fakewaffle: hi [02:57] Me1000 has joined the channel [02:58] ChrisPartridge has joined the channel [02:58] nubusaurelius has joined the channel [03:00] dguttman has joined the channel [03:01] Nexxy has joined the channel [03:04] Emmanuel__ has joined the channel [03:10] langworthy has joined the channel [03:11] jslatts has joined the channel [03:13] boaz has joined the channel [03:13] mbrevoort has joined the channel [03:14] rchavik has joined the channel [03:14] rchavik has joined the channel [03:17] Corren has joined the channel [03:18] jacter has left the channel [03:22] Sidnicious has joined the channel [03:22] Sidnicious has joined the channel [03:22] CodyGray has joined the channel [03:22] CodyGray has left the channel [03:23] bartt has joined the channel [03:26] sirdancealot has joined the channel [03:27] puffpio has joined the channel [03:29] paul_k has joined the channel [03:29] ap3mantus has joined the channel [03:29] adelcambre has joined the channel [03:31] copongcopong has joined the channel [03:32] gkatsev: http://www.nodecloud.org/ [03:33] rpj8 has joined the channel [03:34] rpj8: hey guys. I bugged #javascript with no luck. I'm attempting to call timer from within itself like so: http://jsfiddle.net/apkHs/1/ [03:34] rpj8: why does it give me the error that it's not amethod of that object? [03:35] gkatsev: rpj8: the `this' inside the function isn't the `this' you think it is [03:35] jamescarr__: is there a mailer module that uses jade templates? [03:35] kruckenb has joined the channel [03:35] tonymilne: you could use jade templates to generate a string, no? [03:36] jamescarr__: yeah, I'm doin that for now [03:36] rpj8: gkatsev: hmph. well crap. how do I get to what I think it is? [03:36] jamescarr__: just wondering if I was re-inventing the wheel any [03:36] tonymilne: rpj8: should you use setInterval? (what are you actually trying to do?) [03:37] jhurliman: jamescarr__, i don't think so, had to write my own helper method that uses express-style jade templating [03:37] chbrown: rpj8: something like: http://jsfiddle.net/apkHs/2/ [03:37] rpj8: tonymilne: I'm creating a timer whose values will be send over a websocket to the client. And yes I do need setTimeout [03:38] rpj8: chbrown: ohhhhhhh [03:38] rpj8: oh oh [03:38] gkatsev: :) [03:38] rpj8: is that because it gets set to the this.time function? [03:38] rpj8: wait [03:38] rpj8: I kind of know what's going on. [03:39] Me1000 has joined the channel [03:39] tonymilne: this is the function in the context of the function being run after 1000 milliseconds. [03:39] dguttman has joined the channel [03:39] Ainaldo has joined the channel [03:40] rpj8: tonymilne: yes i figured it was one of those goofy things. [03:40] tonymilne: you know setInterval? [03:40] clee has joined the channel [03:40] rpj8: it's kind of hard to wrap my head around [03:40] rpj8: tonymilne: we've been acquainted ;) [03:40] tonymilne: good. Do you think this would be a good case for setInterval + clearInterval? [03:40] rpj8: tonymilne: mmmm I don't think so, really. [03:40] tonymilne: lol. ok. [03:41] rpj8: I mean, maybe, but it intuitively makes sense for my script. [03:41] rpj8: since i'm sending data back to the client every 1 second anyway as a timer. [03:41] rpj8: it's meant to be in a game sort-of format [03:42] tonymilne: yep, so, my point is - if you're doing it at a set interval, e.g. 1 second... then use setInterval.. vs if the seconds timeout is arbitrarily changing, then use setTimeout. [03:42] tonymilne: but anywhoo, each to their own. [03:42] madzak has joined the channel [03:42] tim_smart: rpj8: A cleaner implementation http://jsfiddle.net/zsxAQ/1/ [03:42] tk has joined the channel [03:42] rpj8: tonymilne: ah I do see what you mean now. [03:43] gkatsev: I'll go with tim_smart's approach. [03:44] chrisdickinson: ACTION seconds gkatsev  [03:44] gkatsev: tim_smart: though, why not just call countdown._tick only if seconds > 0? Rather than returning on <= 0? [03:44] rpj8: i mean, I won't lie, I understand that's a more impressive piece of code, but what makes mine poop while that one's pretty cool [03:44] rpj8: ? [03:44] rpj8: i'm still pretty new to js [03:45] Draggor: is there a url that actually names the version inside of node-latest.tar.gz? [03:45] tim_smart: rpj8: Using prototypes will reduce the function reference count on the heap [03:46] rfay has joined the channel [03:46] tim_smart: I.e. Creating functions in the constructor means it will make a new timer function everytime you call 'new' [03:47] adelcambre has joined the channel [03:47] rpj8: tim_smart: but aren't you doing that in `var countdown = new Countdown(5)'? [03:47] rpj8: oh wait [03:48] rpj8: do you mean because you can call .start multiple times from the same object? [03:48] gkatsev: rpj8: the actual ._tick and .start function don't get recreated. Since they live on the prototype [03:48] matjas has joined the channel [03:48] sleek has joined the channel [03:48] gkatsev: rpj8: you should read eloquentjavascript.net [03:48] rpj8: oh [03:48] rpj8: ah alright. I will add that to my reading list :) [03:49] rpj8: thank you all for your help. I need sleep now though. [03:49] rpj8: This channel is quite wonderful, btw. [03:49] soulless has joined the channel [03:49] soulless: hi [03:49] tonymilne: five! [03:49] tim_smart: rpj8: Wait a sec, there is a flaw in your countdown [03:49] gkatsev: http://ihighfive.com/ [03:49] rpj8: tim_smart: hm? [03:50] soulless: could someone point me to the right url to install node.js??? [03:50] tim_smart: rpj8: Code coming [03:50] rpj8: soulless: nodejs.org [03:50] soulless: when I try the installation tutorial it says: remote HEAD refers to nonexistent ref, unable to checkout. [03:50] rpj8: tim_smart: kay :) [03:52] _jgr has joined the channel [03:53] Krytoss has joined the channel [03:53] chrisdickinson: soulless: i like https://gist.github.com/791890#file_use_nave.sh [03:54] chrisdickinson: (once everything is done, type ``nave use 0.4.7`` and it'll install v0.4.7 of node.) [03:54] riven` has joined the channel [03:56] soulless: mmm thanks, anyway I found how to do it with apt-get [03:56] soulless: :D [03:56] gkatsev: that's a really old version [03:56] gkatsev: don't use it [03:56] gkatsev: soulless: ^ [03:56] AvianFlu has joined the channel [03:56] soulless: :S [03:57] Dinosaurus has joined the channel [03:57] Badababuba has joined the channel [03:57] mawkor2 has joined the channel [03:57] mawkor2: hiyaz [03:58] Tonselitis: how can i list all network devices w/ node [03:58] mawkor2: dnode is awesome [03:58] Aria: Tonselitis: system-dependent. [03:58] mawkor2: what do you recommend though to prevent someone from doing something evil though? [03:58] gkatsev: don't let them access to your box? [03:59] gkatsev: :P [03:59] Tonselitis: hmm ok [03:59] rpj8: tim_smart: i gotta hit the hay. I'm sorry. I will leave my terminal up though, so just ping me with my name :) Thank you so much for your help. I will read through eloquent [03:59] newy_ has joined the channel [03:59] tim_smart: Cool [04:00] rpj8: oh and thanks again to everyone else in here. [04:01] dguttman has joined the channel [04:02] mawkor2: like DNode.connect(6060, function (remote) { remote.someMethod(5, function (result) { while(true) { var sayings = ['give you up', 'let you down', 'run around'] for (var idx in sayings) { sys.puts('never gonna' + sayings[idx]); } sys.puts('and hurt you'); }; }); }); [04:02] mawkor2: j/w [04:02] Tonselitis: whats your question [04:03] mawkor2: that would be bad [04:03] mawkor2: DNode allows remote invocation calls [04:03] mawkor2: from client to server [04:03] mawkor2: so, I run some infinite loop [04:03] mawkor2: thats bad [04:04] ChrisPartridge: running an infinite loop is bad. [04:04] Tonselitis: Aria do you know if there is any equivalent to python's tty flush [04:04] josephholsten has joined the channel [04:04] Tonselitis: equiv to sys.stdout.flush() [04:04] Aria: Dunno. What's python's tty flush? [04:04] Aria: What's that do? [04:05] Tonselitis: clears output [04:05] Tonselitis: so like [04:05] Aria: "clears"? [04:05] Tonselitis: if you're printing a progress bar [04:05] mawkor2: causing a server to run an infinite loop spitting stuff to the console just by running client javascript (very easy) is worse [04:05] Tonselitis: instead of having 1000 printed, it is all same line [04:05] Tonselitis: well that's the outcome [04:05] Tonselitis: i don't know mechnically what it does :) [04:05] Aria: Writes a \r? [04:06] wookiehangover has joined the channel [04:06] mawkor2: ok maybe this is a little over people's heads [04:06] Tonselitis: \r is a newline no? [04:07] mawkor2: \n [04:07] Tonselitis: printing \r adds like [04:07] Tonselitis: 8 blank lines or so :P [04:07] sudhirjonathan has joined the channel [04:08] AvianFlu: \r is a carriage return, \n is a newline; windows uses [04:08] AvianFlu: \r\n [04:08] AvianFlu: for newlines [04:08] Tonselitis: ye [04:08] chrisdickinson: Tonselitis: process.stdout.flush( [04:08] DelvarWorld has joined the channel [04:08] Tonselitis: anyways printing \r does a newline in my bash prompt :O [04:08] Tonselitis: oh [04:08] Tonselitis: k :) [04:08] chrisdickinson: *process.stdout.flush() [04:09] mawkor2: even worse, say I write my clientside function to do this [04:09] mawkor2: node.fs.rmdir('/'); [04:09] Tonselitis: seemingly no effect chrisdickinson [04:09] chrisdickinson: Tonselitis: boo. [04:10] __jgr has joined the channel [04:10] chrisdickinson: Tonselitis: if your debug output is getting cut off, try console.error. [04:10] mawkor2: so I can just delete your entire file structure just by running some javascript [04:10] mawkor2: cool [04:10] zeade has joined the channel [04:10] mawkor2: with DNode [04:10] DelvarWorld: anyone have a good tutorial for session based authorization with express [04:11] Tonselitis: chrisdickinson the issue is trying to get a nice progress bar that doesn't print 1 billion times :D [04:11] Tonselitis: well [04:11] Tonselitis: 1 billion lines [04:11] chrisdickinson: Tonselitis: gotcha :) [04:12] jesusabdullah: I've seen stuff on how to make a progress bar in other languages [04:12] chrisdickinson: and process.stdout.write('.'); process.stdout.flush(); still buffers the output? [04:12] jesusabdullah: you may find that useful [04:12] chrisdickinson: or are you mixing console.log / util.puts with process.stdout.write? [04:13] Tonselitis: i was using sys.puts [04:13] chrisdickinson: Tonselitis: that would be my next guess (though, of course, it's just a guess.) [04:13] jerrysv: jesusabdullah: where you at? [04:13] Corren: is there a way to run a bash script from node [04:13] Aria: Corren: child_process [04:13] jesusabdullah: jerrysv: Bremerton! [04:13] Corren: ty [04:13] srid has joined the channel [04:13] srid has joined the channel [04:14] jesusabdullah: I checked out Seattle yesterday, just taking it easy today [04:14] Tonselitis: console.log = function (d) { [04:14] Tonselitis: process.stdout.write(d + '\n'); [04:14] Tonselitis: }; [04:14] Tonselitis: :P [04:14] jesusabdullah: buddy's last day of work is Friday night so we're gonna cruise South early-ish Saturday [04:14] jerrysv: jesusabdullah: how do you feel about hair of the dog brewery? [04:14] chrisdickinson: Tonselitis: but note the lack of an immediate flush [04:14] jesusabdullah: I've never heard of it! [04:14] jesusabdullah: Sounds fun :D [04:14] jerrysv: poor you! [04:15] jesusabdullah: Poor me?! Nowai [04:15] jesusabdullah: :P [04:15] Tonselitis: it appears to just not give a newline [04:15] Tonselitis: hehe [04:16] Krytoss: just gotta say [04:16] jerrysv: http://www.ratebeer.com/brewers/hair-of-the-dog-brewing-company/94/ [04:16] rabidewok: ive been coding php for ages [04:16] jerrysv: poor you :) [04:16] chrisdickinson: Tonselitis: what's expected? [04:16] rabidewok: and node is reenergizing me [04:16] mawkor2: same [04:16] rabidewok: i didn't even realize how much the damn thing was sucking the life out of me [04:17] Tonselitis: chrisdickinson for it to replace the current line [04:17] Tonselitis: i think [04:17] chrisdickinson: Tonselitis: oh! that's different. [04:17] Tonselitis: like overwrite the current line [04:17] mawkor2: PHP is an evil soul sucking demon from this nasty place called planet Rasmus [04:17] chrisdickinson: flush in both python and node just flush the buffered output to the screen, no matter what it is [04:17] mawkor2: j/k rasmus is cool [04:17] mawkor2: but his small library got out of control [04:18] Tonselitis: 1 sec [04:18] cconstantine has joined the channel [04:18] Tonselitis: i might be retarded :) [04:18] mawkor2: because people couldn't code back then [04:18] rabidewok: i work at a startup whose site was built by idiot contractors, four months now i've been keeping it afloat - we're getting close to a rebuild which is going to be in php - that's not really something i can change - but ive got a plan for introducing node as a glue layer in front of it [04:18] mawkor2: and kept adding junk [04:18] mawkor2: do it man [04:18] rabidewok: use that as the thin edge of the wedge [04:18] Tonselitis: okay chrisdickinson i am/was retarded :) [04:18] Tonselitis: you print the \r before the end of the line derp [04:18] mawkor2: tell him pubsub doesn't work in PHP [04:19] mawkor2: or sockets [04:19] mawkor2: or chat [04:19] mawkor2: or streaming [04:19] mawkor2: or RMI [04:19] rabidewok: new sites going to be built on symfony2... i'm thinking that i'll fire up a pair of projects to translate doctrine models into backbone, and likewise for twig templates into javascript powered versions [04:19] mawkor2: even though u have to be very very careful with that [04:19] chrisdickinson: Tonselitis: good to know! [04:19] mawkor2: ugghghhg [04:19] Tonselitis: xD <- newb [04:20] rabidewok: you can do sockets and chat in php [04:20] mawkor2: tell him [04:20] rabidewok: but goddamn does it ever take some hoop jumping [04:20] mawkor2: they couldn't even spell symphony right how are they going to make a programming language [04:20] mawkor2: no it's polling [04:20] mawkor2: you can't do sockets in php [04:20] rabidewok: yeah you can [04:21] mawkor2: u can make a wrapper for a c++ socket lib [04:21] mawkor2: but your PHP is still polling [04:21] rabidewok: i played around with setting up a flash socket/js bridge to a php daemon [04:21] rabidewok: it works [04:21] rabidewok: not fun, but works :p [04:22] rabidewok: it also ends up one big blocking mess [04:22] chrisdickinson: Tonselitis: cool, yeah, i got it to work too. [04:22] rabidewok: anyway off to do the express tut [04:22] deedubs: Great Scott I've got it man!! Lets argue about php functionality in #node.js Excellent.... [04:22] rabidewok: just wanted to say hi really [04:22] rabidewok: planning on getting active :) [04:23] chrisdickinson: Tonselitis: p.s., thanks, i learned something new tonight about \r! https://gist.github.com/53c04b26768ab7d357be [04:23] Tonselitis: yay [04:23] _jgr has joined the channel [04:25] SubStack: mawkor2: dnode functions only run on the side they are defined [04:25] SubStack: there's no security problem [04:26] SubStack: if you try to rm -rf in a callback it will run on your own computer :P [04:26] jerrysv: substack: did you like bailey's? [04:28] tim_smart: rpj8: http://jsfiddle.net/zsxAQ/9/ [04:28] boehm has joined the channel [04:28] tonymilne: Yuusss, time diffing for precision setTimeout calls ;) [04:29] brownies has joined the channel [04:30] shirro has left the channel [04:30] mawkor2: but if you accept a function from the server side that is defined by the client side [04:30] mawkor2: it being bidirectional and all... [04:31] bradleymeck__ has joined the channel [04:32] mawkor2: see the danger now? [04:32] mawkor2: i mean, if you are careful on the server side you should be fine [04:33] mawkor2: just don't run any functions that are passed from the client [04:33] rabidewok: or if you trust the client ;) [04:33] mawkor2: however then it's not really bi-directional [04:33] mawkor2: yeah... [04:33] rabidewok: so...basically if you're writing an application for yourself [04:33] tonymilne: i dont trust myself! [04:33] mawkor2: haha [04:33] framlin: lol [04:33] rabidewok: lol [04:34] josephholsten has joined the channel [04:34] mawkor2: i mean if you are careful with permissions on your server and set up roles properly maybe its fine [04:34] mawkor2: but you should consider all the evil cases [04:35] rabidewok: and there will be many [04:35] rabidewok: i dont know if you could deploy a system that'd let you sleep at night [04:35] mawkor2: or you could VM your server and have some snapshot backups every so often [04:36] mawkor2: just to be safe [04:36] jcummins has joined the channel [04:36] SubStack: mawkor2: there's no problem, functions run on the side they are defined on full stop [04:36] jamescarr__: hmmm... is there a good module for session storage in mongodb with express? [04:36] spcshpopr8tr has joined the channel [04:37] jcummins: Is it possible to create a git dependency? I have a local git repo that I'd like to depend on, but I don't want to publish it. [04:37] jcummins: err, I guess I should preface, this is an npm question :/ [04:38] spcshpopr8tr: good morning #node.js [04:38] spcshpopr8tr: please help...don't know what I'm seeing here or why: http://pastie.org/2081015 [04:40] jamescarr__: I think something is going down with the npm server [04:40] jamescarr__: I cannot npm install either [04:40] jamescarr__: shit [04:41] jamescarr__: please please please let this not be an issue. Teaching a node class tomorrow am [04:41] jamescarr__: and it makes extensive use of npm ;) [04:41] spcshpopr8tr: wow...where are you teaching a node class? [04:42] CodyGray has joined the channel [04:42] CodyGray has left the channel [04:43] swaj has joined the channel [04:45] jesusabdullah: jcummins: You can write a module and not publish it, but I don't think you get auto-install---that is, I think you must install it yourself. [04:45] jesusabdullah: or npm link or whatevs [04:46] jamescarr__: at my workplace... it's to help prep for the half day workshop I'm doing at uberconf next month [04:46] jerrysv: or set up a copy of npm locally, publish to it [04:47] jcummins: jesusabdullah: Yeah, I was afraid you were going to say that. `node link` seems like a hack. I wish I could list a git repo as a dependency. That'd be awesome. [04:47] caolanm has joined the channel [04:47] jesusabdullah: Hey, I may be wrong! [04:47] jerrysv: jcummins: copy the npm repository, publish there, use that authoritatively, npm install [04:48] daed has joined the channel [04:48] jamescarr__: isaacs might need to add some validation. I think the error is due to invalid UTF-8 text [04:48] jcummins: jerrysv: Sounds like a good idea. [04:48] jamescarr__: someone probably published something with foolish content in it ;) [04:48] jamescarr__: in the package.json [04:50] zeade has joined the channel [04:51] jamescarr__: damn! [04:51] Hinton has joined the channel [04:51] jamescarr__: whats the npm couchdb server? [04:51] spcshpopr8tr: so we're scewed until someone figures out what package(s) are jacked? [04:51] skm has joined the channel [04:52] rabidewok: oh [04:52] harth has joined the channel [04:52] rabidewok: is this why i couldn't install express earlier [04:52] jamescarr__: pretty much [04:52] rabidewok: i thought it was cuz this computer is windows [04:52] shirro has joined the channel [04:52] jamescarr__: this happens often with maven [04:52] jamescarr__: thats why we usually mirror maven central internally [04:53] jamescarr__: I guess I should start mirroring npm as well [04:54] mawkor2: you can install it on windows [04:54] mawkor2: if you are too lazy to roll ubuntu or mint [04:54] mawkor2: like me lol [04:55] mawkor2: well I need photoshop or else I would use Ubuntu for everything [04:55] mynyml has joined the channel [04:55] mawkor2: Gimp has a different color table and doesn't import colors from photoshop correctly [04:55] mawkor2: sucks [04:55] Aria: Huh. [04:56] Aria: Color table, or interpretation of color spaces? [04:56] mawkor2: color space mapping yeah [04:57] CrypticSwarm has joined the channel [04:57] mawkor2: it used a 3 dimensional matrix and does a range estimate because 6 doesn't map exactly [04:58] mawkor2: rgb might work though [04:58] mawkor2: but then u have to force all your designers to use RGB for everyhting [04:58] huhlig-dc has joined the channel [04:58] mawkor2: and who uses RGB anyway [04:59] mawkor2: just simple math [04:59] Tonselitis: real men use LAB [04:59] mawkor2: math is hard [05:00] Tonselitis: anyone use google music [05:01] devrim has joined the channel [05:02] meso_ has joined the channel [05:03] jslatts: does anyone know if jasmine unit tests run in parallel when run via the jasmine-node module? [05:03] mawkor2: opera had iCloud like 3 years ago [05:03] mawkor2: lol [05:05] mawkor2: http://unite.opera.com/application/472/ [05:05] mawkor2: love how apple introduces their new exciting and totally unique and only possible through the great minds of apple products [05:05] mawkor2: that they rip off from others [05:05] mawkor2: as usual [05:06] darshanshankar has joined the channel [05:06] Tonselitis: u mad? [05:06] jslatts: does anyone know if jasmine unit tests run in parallel when run via the jasmine-node module? [05:06] jslatts: whups [05:06] jslatts: wrong window [05:07] mawkor2: i wonder if chrome is going to have something like opera unite with their music service, anyone know? [05:07] mawkor2: thats why I brought it up lol [05:07] mawkor2: compete with iCloud [05:07] Tonselitis: dunno [05:07] mawkor2: in a browser [05:07] indutny: hey guys! [05:07] mawkor2: opera's been doing it already for a while [05:07] Tonselitis: they do want to expand their store [05:08] indutny: checkout this : http://blog.indutny.com/ - Node.js Rockstar blog [05:08] Tonselitis: no [05:08] Tonselitis: i refuse [05:09] mawkor2: nice Ilike it! [05:09] mawkor2: <-- russian too (well 1/2) [05:09] adam- has joined the channel [05:10] Croms has joined the channel [05:10] mawkor2: whats mapchat? [05:11] matyr has joined the channel [05:11] mawkor2: I might want to use that... http://www.showzi.info/ [05:11] mawkor2: its a local event finder app and trying to think of cool things to add to it [05:11] mawkor2: for social aspect [05:12] Tonselitis: u meen 4 square? [05:13] Tonselitis: :) [05:13] mawkor2: i made some event heuristic using NLP for scrubbing data from eventful to get search data for youtube videos which is pretty coolbut I need more [05:13] mawkor2: it's a map application mainly, it would be cool to have some foursquare like stuff [05:13] mawkor2: and it's for future events, not present time checkins [05:13] mawkor2: the problem with foursquare is it's always in the 'now' [05:14] mawkor2: no future planning [05:14] mawkor2: or really good discovers [05:14] mawkor2: discovery [05:14] mawkor2: im going for a more kind of media mashup of events [05:15] hackband has joined the channel [05:16] Tonselitis: well [05:16] Tonselitis: it does have explore and you can mark stuff todo xD [05:16] zackattack has joined the channel [05:17] Croms: Morning. Does anybody here know the use of the 'filename' argument in the VM / Script API objects? [05:17] mawkor2: events are different than restaurants/bars [05:17] mawkor2: foursquare is for places that arenot transient [05:18] DelvarWorld: is it ok to use watchFile on a directory? [05:18] MengZhang has joined the channel [05:18] mawkor2: events are transient [05:18] mawkor2: this is for events [05:19] jslatts: DelvarWorld: yes [05:19] ezl- has joined the channel [05:19] Emmanuel__: any problem with npm installation ? [05:21] Emmanuel__: for me the downloaded file is "not a valid gzip file" [05:21] FMJag has joined the channel [05:22] konobi has joined the channel [05:23] mikeal has joined the channel [05:23] meder has joined the channel [05:23] FMJag has joined the channel [05:25] mscdex: Croms: it lets you identify the script as if it were loaded from an actual file [05:25] mscdex: Croms: any string will do [05:26] Skola has joined the channel [05:27] AvianFlu has joined the channel [05:27] markwubben has joined the channel [05:28] Kami_ has joined the channel [05:31] fangel has joined the channel [05:31] vipaca has joined the channel [05:31] vipaca has joined the channel [05:32] ivan has joined the channel [05:34] ivan has joined the channel [05:35] Croms: mscdex: So it doesn't actually get or set any data from a specified file or anything? It's just a visual aid? [05:35] mscdex: yes, because you're creating a script object manually [05:35] mscdex: so it has no idea where the code came from [05:36] mscdex: so the filename is shown in stack traces [05:36] mscdex: so make it something useful :) [05:36] jamescarr__: Emmanuel__, npm is broken at the moment [05:36] jamescarr__: I think the rep is having issues [05:36] Croms: mscdex: Thanks dude. I understand now. [05:37] jamescarr__: http://registry.npmjs.org/ [05:37] jamescarr__: {error: "ucs", reason: "{bad_utf8_character_code}"} [05:37] AvianFlu has joined the channel [05:39] Emmanuel__: jamescarr__: ok, it's not just me then [05:44] Corren has joined the channel [05:47] pyrony has joined the channel [05:48] matyr has joined the channel [05:48] cjm has joined the channel [05:50] Xano has joined the channel [05:57] Marak has joined the channel [05:59] Me1000 has joined the channel [06:01] sudhirjonathan has joined the channel [06:01] timemachine3030 has joined the channel [06:01] ph^ has joined the channel [06:01] gozala has joined the channel [06:02] CodyGray has joined the channel [06:03] jacobolus has joined the channel [06:05] galaxywatcher has joined the channel [06:06] mhausenblas has joined the channel [06:07] mhausenblas_ has joined the channel [06:07] __doc__ has joined the channel [06:09] Me1000 has joined the channel [06:09] AvianFlu has joined the channel [06:10] kbni has joined the channel [06:10] kbni: greetings [06:11] tuhoojabotti: mornin' [06:11] Me1000 has joined the channel [06:16] eirikb has joined the channel [06:16] eirikb: npm having issues? [06:16] indutny: hey, node.js guys! if you're indifferent to node.js destiny - upvote please http://news.ycombinator.com/item?id=2664450 ! [06:17] jesusabdullah: I did not know you had a blog! [06:17] indutny: jesusabdullah: just created ;) [06:18] indutny: going to write article every monday [06:19] indutny: node.js news, coding tips and etc [06:19] zackattack has joined the channel [06:19] jesusabdullah: Good luck! [06:19] jesusabdullah: Upboated [06:19] indutny: jesusabdullah: thank you! [06:19] mscdex: upboated? [06:19] jesusabdullah: Indeed! [06:19] indutny: mscdex: http://news.ycombinator.com/item?id=2664450 [06:19] indutny: :) [06:19] matyr_ has joined the channel [06:19] SamuraiJack has joined the channel [06:19] jesusabdullah: Because an up arrow looks kinda like a sail on a sailboat---at least, I believe where the term came from [06:20] jesusabdullah: /r/circlejerk yo [06:20] indutny: hehe :) [06:20] mscdex: ACTION shakes a fist at hn [06:20] jesusabdullah: CURSE YOU PAUL GRAHAM [06:23] Marak: jesusabdullah: haters gonna hate on HN [06:23] capsl_ has joined the channel [06:23] jesusabdullah: Yeah, no joke [06:23] Marak: where are the klout guys, do any of them idle in here? [06:23] jesusabdullah: I need to find that macro again [06:24] Marak: jesusabdullah: take klout influence data + social bookmarking site with paid moderators = win [06:24] jesusabdullah: I think I saved it? [06:24] jesusabdullah: klout? [06:24] Marak: thats a multi-million dollars idea, go execute [06:24] Marak: www.klout.co [06:24] Marak: errr [06:24] Marak: www.klout.com [06:24] jesusabdullah: that sounds interesting [06:24] pquerna: can we talk about map projections [06:24] jesusabdullah: NO [06:24] jesusabdullah: because MAP PROJECTIONS are DIFFICULT [06:24] pquerna: https://github.com/silentrob/Robinson-Projection [06:25] pquerna: okay, cool [06:25] jesusabdullah: whoawhoawha [06:25] pquerna: yes [06:25] jesusabdullah: I only use Albers Equal Area projections [06:25] pquerna: yes, this is what you think it is [06:25] jesusabdullah: and gnomonic projections [06:25] pquerna: its fucking awesome :-/ [06:25] eirikb: http://registry.npmjs.org/ ? [06:25] eirikb: That doesn't seem good [06:25] sgimeno has joined the channel [06:26] jesusabdullah: Albers projections are often used for Alaska maps because of our extreme latitude I think [06:26] skm has joined the channel [06:26] jesusabdullah: gnomonic ones are cool because straight lines are great circles [06:26] jesusabdullah: which makes sense for certain geometry problems, such as "how many stream crossings are there over this great circle?" [06:26] sh1mmer has joined the channel [06:27] jesusabdullah: I actually think it's neat stuff! It's just kind of a pain to work with [06:27] jesusabdullah: Map projections are hard. Let's go shopping! [06:27] romanb has joined the channel [06:27] pquerna: yes. [06:28] pquerna: i just want to draw missles firing between countries dammit [06:28] meso_ has joined the channel [06:30] madzak: eirikb: looks like npm :( [06:31] baoist has joined the channel [06:31] Emmanuel__ has joined the channel [06:31] ewdafa has joined the channel [06:32] simenbrekken has joined the channel [06:33] AvianFlu has joined the channel [06:33] eirikb: isaacs was active 5 hours ago, and it's like 23:30 over where he lives? Might be down a while then :/ [06:33] sudhirjonathan has joined the channel [06:34] jacobolus has joined the channel [06:37] teemow has joined the channel [06:38] MonsieurLu has joined the channel [06:38] blueadept has joined the channel [06:38] `3rdEden has joined the channel [06:39] MonsieurLu has left the channel [06:39] ghost has joined the channel [06:42] mjr_ has joined the channel [06:43] arpegius has joined the channel [06:46] matyr has joined the channel [06:47] topaxi has joined the channel [06:50] Warez-BB has joined the channel [06:51] DelvarWorld has joined the channel [06:51] hellp has joined the channel [06:52] Xano has joined the channel [06:53] cachemoney has joined the channel [06:53] amerine has joined the channel [06:53] bitwise_ has joined the channel [06:54] mike5w3c_ has joined the channel [06:55] jbpros has joined the channel [06:55] cpolis has joined the channel [06:56] ph^ has joined the channel [06:56] mike5w3c_ has joined the channel [06:57] groom has joined the channel [06:58] vdemedes has joined the channel [06:58] vdemedes: hello [06:58] tuhoojabotti: Hey [06:58] Tobsn has joined the channel [06:58] vdemedes: how to limit, offset in Mongoose? [06:59] vdemedes: Model.find({ field : 'test' }, [], { skip : 0, limit : 5}, fn); [06:59] replaca has joined the channel [06:59] vdemedes: gives me all records [06:59] vdemedes: not just 5 [07:00] vdemedes: anyone? [07:03] cachemoney: don't pass in limit: 5 ? [07:03] vdemedes: cachemoney: I want it to return only 5 documents, not all [07:03] charlesyin has joined the channel [07:04] cachemoney: oh [07:05] matyr_ has joined the channel [07:06] yozgrahame has joined the channel [07:06] cachemoney: yeah, that should be returning just 5 records [07:06] cachemoney: try removing skip: 0 [07:07] coreb has joined the channel [07:07] simenbrekken has joined the channel [07:07] nannto has joined the channel [07:08] janzert has joined the channel [07:09] sshaginyan has joined the channel [07:10] jacobolus has joined the channel [07:11] giby has joined the channel [07:11] __tosh has joined the channel [07:12] swistak has joined the channel [07:12] fangel has joined the channel [07:12] vdemedes: cachemoney: it does not work [07:13] Marak: fuck i cant figure out how to unit test hook.io [07:13] Marak: and i just ran into an eventemitter2 bug that got me stuck for like 2hours [07:13] Marak: fuuuuuuu [07:14] cachemoney: is pubsub.io out yet? [07:16] ChrisPartridge: Marak: deep breaths [07:16] Marak: ChrisPartridge: im drawing the line, fuck you functionality, im gonna make stability work [07:17] Marak: still dont know how to test using anything but the system itself [07:17] Marak: if i can get it stable enough, self testing is an option [07:17] Marak: but this EE2 bug was just rage [07:17] NuckingFuts|Away: EventEmitter2? [07:18] janzert: any idea on how long it normally takes for registry.npmjs.org to come back to life when it is returning errors? or is it such a rare event there isn't an established history? :} [07:18] EyePulp has joined the channel [07:18] Marak: janzert: is it down? [07:19] niftylettuce: equivalent of filter/ms-filter in Stylus/nib? [07:19] niftylettuce: mixin fo thiz? [07:19] niftylettuce: this* [07:19] janzert: Marak: yes it is returning unicode errors for any request [07:19] Marak: Nuck: github.com/hij1nx/EventEmitter2 [07:19] Marak: janzert: woah, when did that happen? [07:20] Marak: mikeal: any ideas on npm being down? [07:20] janzert: From the github issue tracker issues it looks like it started about 2 hours ago [07:20] janzert: with about 5 bugs filed since then that look like a direct result of it [07:20] AvianFlu: search is returning no results, too [07:20] janzert: https://github.com/isaacs/npm/issues [07:21] AvianFlu: i.e. search.npmjs.org [07:21] CodyGray has joined the channel [07:21] Nuck: Uh-oh [07:21] ShreeKavi has joined the channel [07:21] Nuck: That's not good [07:21] CodyGray has left the channel [07:21] cachemoney: ACTION blames LulzSec [07:21] NuckingFuts: cachemoney: Oh noes, they'll publish our dox! [07:22] cachemoney: LOL [07:22] Marak: im ringing the bat phone [07:22] Epeli: Any one having this kind of errors? http://pastie.org/2081459 [07:22] cachemoney: you mean the ones that say how we have secret agents in the rails core team? [07:22] AvianFlu: yes Epeli [07:22] AvianFlu: we're on it [07:22] AvianFlu: and by "we" I mean "people above my pay grade" [07:22] Epeli: AvianFlu: ah, cool [07:22] NuckingFuts: cachemoney: No, the code documentation :P [07:23] fly-away has joined the channel [07:23] NuckingFuts: As in dox, written by tj :P [07:23] emattias has joined the channel [07:23] fangel has joined the channel [07:23] cachemoney: server: 'CouchDB/1.1.0 (Erlang OTP/R14B)' [07:24] Marak: of course npm goes down when one of our projects is on frontpage on HN [07:24] cachemoney: they expose a couchdb server to the world? [07:24] Marak: :-D [07:24] aliem has joined the channel [07:24] Marak: cachemoney: why not? [07:24] NuckingFuts: Marak: lol maybe you've got cause and effect backwards >P [07:24] Marak: NuckingFuts: ahahah [07:24] cachemoney: dunno, feels like putting mysql or something for the world to access [07:24] Skola: could any coffeescript sensei check this little piece of code for bad practices? http://hpaste.org/47904 [07:24] newy_ has joined the channel [07:25] gausby has joined the channel [07:25] NuckingFuts: Marak: HN is big enough to take down a site just like Digg and Reddit. [07:25] NuckingFuts: :P [07:25] Skola: yes, HN = lurkfest [07:25] Marak: i doubt it was that [07:25] cachemoney: Marak: what project? [07:26] Marak: cachemoney: just something simple: https://github.com/nodejitsu/http-server [07:26] cachemoney: ah, saw that earlier today [07:27] tomtomaso has joined the channel [07:27] thoolihan has joined the channel [07:27] e6nian has joined the channel [07:28] e6nian: npm install/search/info not working here. [07:28] e6nian: what about your areas [07:29] AvianFlu: e6nian it's being worked on [07:29] matyr has joined the channel [07:29] e6nian: AvianFlu: ok, so the service is down now ? [07:31] niftylettuce: any browserify folk online? [07:31] swistak has joined the channel [07:31] AvianFlu: e6nian: yes, it's not your internet [07:31] niftylettuce: in a package.json file, how might one include multiple sub-js plugins that go along with a main js plugin? [07:31] romanb has joined the channel [07:33] matyr has joined the channel [07:34] stagas: niftylettuce: put them in a lib/ dir where your main script is. then require('foo/lib/bar') works if that's what you want [07:34] e6nian: niftylettuce: what's you point? is it a dependence problem? [07:34] Garo_ has joined the channel [07:35] Garo_: Is registry.npmjs.org down? [07:35] cachemoney: Garo_: yes [07:35] confoocious has joined the channel [07:35] confoocious has joined the channel [07:35] bergie has joined the channel [07:35] Garo_: cachemoney: thanks for confirming [07:35] [AD]Turbo has joined the channel [07:36] niftylettuce: chapel: holler if you're still up [07:36] [AD]Turbo: hi there [07:37] djcoin has joined the channel [07:37] herbySk has joined the channel [07:37] galaxywatcher has joined the channel [07:38] gozala has joined the channel [07:38] charlesyin has joined the channel [07:38] CStumph_ has joined the channel [07:39] Cstumph has joined the channel [07:39] Cstumph has left the channel [07:39] svenlito has joined the channel [07:39] Cstumph has joined the channel [07:42] niftylettuce: stagas: well, the main one is a node_module, and I took the code and wrapped it in a "module.exports = function(jQuery) {}" [07:42] SubStack: ahoy niftylettuce [07:42] littlebiged has joined the channel [07:43] niftylettuce: SubStack: heyo, I'm working with something ch@pel did with me, but hes afk so maybe you can give a hand [07:43] niftylettuce: SubStack: we have plugins like jWYSIWYG, jquery-color, and a jquery color picker etc etc [07:44] niftylettuce: SubStack: up until jwysiwyg, each plugin was in its own js file, but jwysiwyg has several sub-plugins for things like including links, file manager, image uploader, inside the wysiwyg [07:44] niftylettuce: https://raw.github.com/akzhan/jwysiwyg see /controls folder [07:45] niftylettuce: heres my package.json file http://pastie.org/private/h35ruxazqzkkl4jdky39ta [07:46] niftylettuce: the browserify.js is just the "main" wrapped with what I said at 03:41 EST [07:46] SubStack: you can specify a base in your browserify field in your package.json [07:46] SubStack: so you can require('module/submodule') [07:46] matyr_ has joined the channel [07:46] niftylettuce: no way [07:47] SubStack: https://github.com/substack/dnode/blob/master/package.json#L34-L40 [07:48] niftylettuce: SubStack: that includes all files in the base? [07:48] niftylettuce: oh this is slick. [07:49] uchuff has joined the channel [07:49] SubStack: best to use browserify@0.5.2 also, 1.0 has some bugs right now [07:50] SubStack: and now I have some time to fix them! [07:50] niftylettuce: SubStack++ [07:50] v8bot: niftylettuce has given a beer to SubStack. SubStack now has 37 beers. [07:51] NuckingFuts: ACTION wants to build a lackrack [07:51] tuhoojabotti: Soon SubStack is too drunk to fix the bugs! [07:51] SubStack: nah I had a bunch of scotch earlier, sobering up as the night goes on [07:52] AvianFlu: SubStack on Scotch! [07:52] SubStack: free scotch even! [07:52] SubStack: best kind [07:52] idefine has left the channel [07:52] AvianFlu: ROLL A ROCK DOWN A HILL ME LADDIE! [07:52] NuckingFuts: Everyone knows programmers work better when buzzed :P [07:52] tuhoojabotti: NuckingFuts: It's the ballmer peak [07:52] NuckingFuts: Yuppers [07:52] NuckingFuts: tuhoojabotti: I'm too young to experience it though :( [07:53] tuhoojabotti: Me too. [07:53] NuckingFuts: Hell, I can't even smoke for a couple more months. [07:53] pickels has joined the channel [07:53] Marak: looks like npm down till am maybe [07:53] eirikb: Ballmer peak? [07:53] tuhoojabotti: I wouldn't even want to. [07:53] tuhoojabotti: http://xkcd.com/323/ [07:53] niftylettuce: Marak: ddos or bug? [07:53] NuckingFuts: I don't wanna smoke [07:53] fangel has joined the channel [07:53] tuhoojabotti: eirikb: ^ [07:53] NuckingFuts: But I would totally drink a beer as a program or something [07:53] Marak: niftylettuce: i would assume bug [07:53] eirikb: tuhoojabotti: Yeah, that was what I referred to [07:53] Marak: niftylettuce: or server change [07:54] eirikb: tuhoojabotti: Didn't see you mention it :/ [07:54] tuhoojabotti: Yeah. :P [07:54] niftylettuce: SubStack: will "base" and "browserify" do the same thing? [07:54] eirikb: It wasn't a question to your statement, but a questioning statement to the conversation... I'll be on my way I think :D [07:54] NuckingFuts: Instead, I just chug copious amounts of Oregon Chai [07:55] NuckingFuts: And down bagfuls of chips [07:55] niftylettuce: SubStack: http://pastie.org/private/xlv3pleogbcobnk3rdpwg [07:55] NuckingFuts: (I'm fucked if my metabolism slows XD) [07:55] tuhoojabotti: eirikb: I got ya :D [07:55] niftylettuce: i gatta r3ad up on this, been spending too much time on frontends :/ [07:55] msucan has joined the channel [07:56] NuckingFuts: ACTION yawns and goes to sleep [07:56] robhawkes has joined the channel [07:56] a_meteorite: Sleep is for weaklings! [07:56] tuhoojabotti: I'm at work [07:57] NuckingFuts: It's 1 AM [07:57] NuckingFuts: So I ought to be working ;-) [07:57] tuhoojabotti: It's 11 AM [07:57] NuckingFuts: tuhoojabotti: The world runs on Pacific time :P [07:57] NuckingFuts: We have the silicon valley [07:57] NuckingFuts: So suckit. [07:57] a_meteorite: everything happens in california [07:57] tuhoojabotti: We have Nokia! [07:57] vdemedes has left the channel [07:57] tuhoojabotti: ":D" [07:57] andree has joined the channel [07:57] NuckingFuts: PDT 4 LIFE [07:58] NuckingFuts: tuhoojabotti: What country? [07:58] tuhoojabotti: NuckingFuts: Take a guess. [07:58] tuhoojabotti: don't google [07:58] NuckingFuts: ACTION can't recall where Nokia comes from :/ [07:58] tuhoojabotti: Haha [07:58] NuckingFuts: Denmark or something, right? [07:58] a_meteorite: Switzerland [07:58] tuhoojabotti: I read about a study that showed that most nokia users in the usa don't know where it comes from [07:58] NuckingFuts: Sweden? [07:58] tuhoojabotti: eww [07:58] tuhoojabotti: NuckingFuts-- [07:58] v8bot: tuhoojabotti has taken a beer from NuckingFuts. NuckingFuts now has -1 beers. [07:59] tuhoojabotti: Finland! ofc [07:59] NuckingFuts: tuhoojabotti: Is some assembly required? [07:59] NuckingFuts: :P [07:59] NuckingFuts: I'd love to see an Ikea cell phone XD [07:59] eirikb: Finland? [07:59] tuhoojabotti: Assembly is a finnish lan-party [07:59] a_meteorite: Swiss... Finnish... same thing! [07:59] niftylettuce: itd be made particle b0ard [07:59] tuhoojabotti: or demoscene [07:59] Tobsn: lol [07:59] tuhoojabotti: I don't like/use nokia phones though. [07:59] Tobsn: looks like a lot of americans are still online at 1am ;) [07:59] niftylettuce: a_meteorite: not same thing mate ^.^, but from a darwin standpoint you are correct [07:59] NuckingFuts: tuhoojabotti: Oh right, finland, you're like... Europe's Canada, right? [08:00] NuckingFuts: Where you make some cool shit but nobody cares about you. [08:00] Tobsn: thats the first time i ever heard that [08:00] tuhoojabotti: They make cool shit in Canada? :O [08:00] NuckingFuts: Delicious maple syrup [08:00] tuhoojabotti: Tobsn: Yeah, me too. [08:00] Tobsn: they make cool shit in finland? [08:00] tuhoojabotti: Tobsn: No. [08:00] NuckingFuts: And lulzy riots [08:00] tuhoojabotti: Well if you like Angry Birds :D [08:00] Tobsn: well [08:00] NuckingFuts: Tobsn: Nokias are hardy motherfuckers. [08:00] Tobsn: if you say so hehe [08:01] NuckingFuts: I threw one across a stream, bounced off two rocks and plopped into the water. And it *still* worked. [08:01] tuhoojabotti: Nokia 3310, the best phone ever [08:01] Tobsn: it was back then also the most returned phone [08:01] tuhoojabotti: Takes all the beating you have for it [08:01] NuckingFuts: Now I've got my iPhone :P [08:01] Tobsn: buddy of mine had a cellphone shop [08:01] Tobsn: nokia exchange/return rate was WAY above all he told us once [08:01] tuhoojabotti: http://i.zdnet.com/blogs/nostalgia_nokia_3310.png [08:01] NuckingFuts: And these earbuds which break with a single drop of sweat [08:01] Tobsn: i had a S35 [08:01] Tobsn: best phone ever [08:02] Tobsn: had it for 7 years [08:02] chllx has joined the channel [08:02] tuhoojabotti: I bet it couldn't run node! [08:02] Tobsn: 2000 to 2007 [08:02] NuckingFuts: "Billy the bookcase says hello, and so does a table whose name is ingo, and this chair is a ladder-back birch, but his friends call him karl" [08:02] Tobsn: i still have it too... [08:02] NuckingFuts: Damnit JoCo [08:03] NuckingFuts: Your music is too catchy. [08:03] Tobsn: i should get it and plug in my at&t card [08:03] Tobsn: and just retire my iphone for a week [08:03] NuckingFuts: I have an iPhone 5 [08:03] NuckingFuts: Erm, 4 [08:03] janzert has left the channel [08:03] Tobsn: and? [08:03] Tobsn: who doesnt? [08:03] NuckingFuts: So I can't put my card in old phones [08:03] jhurliman has joined the channel [08:03] Tobsn: obviously [08:04] tuhoojabotti: I have HUAWEI U8800. [08:04] NuckingFuts: tuhoojabotti: lolololol [08:04] tuhoojabotti: NuckingFuts: I bought a cheap Android to use ssh. ;) [08:04] NuckingFuts: My brother has an Android. He had to do crazy shit to upgrade, and when he upgraded, the backup corrupted [08:04] tuhoojabotti: But this is better than I expected [08:04] NuckingFuts: Oh, and he hates the new version [08:04] Tobsn: http://i.imgur.com/tqSUf.jpg [08:04] tuhoojabotti: NuckingFuts: Crazy shit + linux ♡ [08:05] NuckingFuts: it actually had some shitty changes which I agree with him were awful [08:05] tuhoojabotti: NuckingFuts: Now, go to bed! [08:05] NuckingFuts: ACTION really ought to >_> [08:05] Tobsn: i go to, enough jquery headache. [08:05] tuhoojabotti: jquery<3 [08:05] NuckingFuts: $(<3) [08:05] rio{ has joined the channel [08:05] Tobsn: btw. jquery masonry is amazing. [08:06] NuckingFuts: masonry? [08:06] Tobsn: http://masonry.desandro.com/index.html [08:06] Tobsn: isotope.metafizzy.co <- thats build up on it [08:07] NuckingFuts: Tobsn: Looks like a jQuery version of Windows Mobile 7's tiles [08:07] tuhoojabotti: :P [08:08] Tobsn: http://masonry.desandro.com/demos/infinite-scroll.html [08:08] Tobsn: resize to small window [08:08] Tobsn: and keep scrolling [08:08] __tosh has joined the channel [08:08] Tobsn: http://masonry.desandro.com/demos/adding-items.html [08:08] Tobsn: thats fun too [08:08] `3rdEden: npm still broken? [08:08] indutny: `3rdEden: try clearing DNS cache [08:08] NuckingFuts: Tobsn: Can I just use random pixel values on that shit? [08:09] `3rdEden: Or did i fuck up my package.json.. (Error: ucs {bad_utf8_character_code}: policyfile) [08:09] NuckingFuts: Or does it hafta be right [08:09] Marak: `3rdEden: I think i see a meme image coming from this [08:09] S1kx: `3rdEden: no i get the same error [08:09] NuckingFuts: NPM is down AFAIK [08:09] Tobsn: NuckingFuts, yeah [08:09] `3rdEden: NPM Y U NO WORK? Marak? [08:09] charlesyin has joined the channel [08:09] NuckingFuts: Tobsn: I may apply this to my art site, because having shit more freeform would differentiate my style. [08:10] Tobsn: lol [08:10] Tobsn: good, for your style [08:10] Tobsn: n8 [08:10] fangel has joined the channel [08:10] NuckingFuts|Away: `3rdEden: BECAUSE YOU TOUCH YOURSELF AT NIGHT [08:10] NuckingFuts|Away: Oooooh, impeccable timing. [08:10] tuhoojabotti: NuckingFuts|Away: Away now, also make that nickchange dissappera [08:11] Tobsn: http://hitlr.de/channel/Node.js [08:11] Tobsn: just gonna leave this here [08:11] NuckingFuts|Away: tuhoojabotti: nouaway [08:11] indutny: oh, bad bad npm [08:11] tuhoojabotti: NuckingFuts|Away: It's enough to see the away message in whois [08:12] Marak: `3rdEden: i cant think of anything good, i dont want to diss npm [08:12] Marak: :-D [08:12] indutny: Marak: lets create our own npm [08:12] indutny: Marak: with blackjack... [08:12] Marak: indutny: that was my idea, but i dont want to encourage people to do that lol [08:13] Marak: i guess fuck it [08:13] indutny: Marak: lets make distributed npm! [08:13] tuhoojabotti: clouds! [08:13] indutny: it will run inside bitcoin system [08:13] techwraith has joined the channel [08:13] NuckingFuts|Away: lol i still can't comprehend bitcoin [08:13] indutny: so to publish module you'll need to mine blocks [08:13] niftylettuce: SubStack: [08:13] Garo_: indutny: :D [08:14] indutny: that will prevent creation of stupid short modules [08:14] tuhoojabotti: Minecraft style [08:14] NuckingFuts|Away: Tobsn: hitlr.de? That site is lulzy [08:14] Garo_: so with npm+bitcoin, the devs would need to mine for new modules? [08:14] Tobsn: its lulz btw. not lulzy [08:14] indutny: Garo_: yeah [08:14] Tobsn: i know, i spend a fortune on lulz.com [08:14] Tobsn: n8. [08:14] techwraith: Why would we limit module creation? [08:14] techwraith: lol [08:15] sfoster has joined the channel [08:15] tuhoojabotti: Tobsn: I'm famous! [08:15] Tobsn: techwraith, ask apple [08:15] tuhoojabotti: Tobsn: No make it go away! [08:15] tuhoojabotti: now* [08:15] Marak: indutny: http://i.imgur.com/HsMXr.png lol! just kidding! [08:15] NuckingFuts|Away: Tobsn: It is in the state of being entertaining or having lulz [08:15] __sri has joined the channel [08:15] Tobsn: just that it doesnt exist [08:15] indutny: Marak: +1 [08:15] tuhoojabotti: Marak++ [08:15] v8bot: tuhoojabotti has given a beer to Marak. Marak now has 2 beers. [08:16] e6nian: what's here http://hitlr.de/channel/Node.js? [08:16] indutny: tuhoojabotti: that wasn't a command :) [08:16] techwraith: Marak: we're going to do that at Yammer actually (well, we'll host a copy anyway) [08:16] indutny: but yeah [08:16] indutny: Marak-- [08:16] v8bot: Marak is getting too many beers. Don't let Marak get drunk! [08:16] cryptix has joined the channel [08:16] Marak: ahaha my grammer is borked on that ohh well [08:16] indutny: techwraith-- [08:16] v8bot: indutny has taken a beer from techwraith. techwraith now has 0 beers. [08:16] techwraith: :( [08:16] Marak: techwraith: nice [08:16] Marak: techwraith++ [08:16] v8bot: techwraith is getting too many beers. Don't let techwraith get drunk! [08:16] Marak: techwraith++ [08:16] v8bot: techwraith is getting too many beers. Don't let techwraith get drunk! [08:16] Marak: techwraith++ [08:16] v8bot: techwraith is getting too many beers. Don't let techwraith get drunk! [08:16] Marak: !insult v8bot [08:16] indutny: Marak: speaking like yoda [08:16] Marak: meh, back to real work [08:16] techwraith: Fuck dude, I'm gonna get drunk if you keep that up [08:17] Marak: i made tests for hook.io, got a few going so far [08:17] NuckingFuts|Away: Marak++ [08:17] v8bot: NuckingFuts|Away has given a beer to Marak. Marak now has 1 beers. [08:17] glenjamin has joined the channel [08:17] indutny: Marak: This is not a NPM repository you're looking ofr [08:17] indutny: s/ofr/for [08:17] NuckingFuts|Away: techwraith: Don't worry, you can get drunk even by techwraith-- :P [08:17] NuckingFuts|Away: techwraith-- [08:17] v8bot: NuckingFuts|Away has taken a beer from techwraith. techwraith now has -1 beers. [08:17] romainhuet has joined the channel [08:17] NuckingFuts|Away: techwraith-- [08:17] v8bot: techwraith is getting too many beers. Don't let techwraith get drunk! [08:17] Emmanuel__ has joined the channel [08:17] infynyxx has joined the channel [08:18] NuckingFuts|Away: OH NOES YOU'RE GETTING TOO MANY BEERS... As in... Negative beers. Fucking lightweight. [08:18] Skola has joined the channel [08:19] tuhoojabotti: Perhaps I should bring my own bot here [08:19] Cstumph: Wow. Skills [08:19] adrianmg has joined the channel [08:19] techwraith: Hey negative beers have a lot of negative alcohol in them! [08:19] tuhoojabotti: antimatter [08:19] Cstumph: mmmmm, negahol [08:19] saurabhverma has joined the channel [08:19] techwraith: v8bot++ [08:19] v8bot: techwraith has given a beer to v8bot. v8bot now has 28 beers. [08:20] Cstumph: More taste. less filling [08:20] techwraith: damn drunk bots [08:20] hackband has joined the channel [08:20] mikl has joined the channel [08:20] mikl has joined the channel [08:21] apoc has joined the channel [08:22] JakeyChan has joined the channel [08:22] ChrisPartridge has joined the channel [08:22] Esteb has joined the channel [08:22] asdf22 has joined the channel [08:23] saschagehlich has joined the channel [08:23] e6nian: techwraith++ [08:23] v8bot: e6nian has given a beer to techwraith. techwraith now has 0 beers. [08:24] e6nian: techwraith++ [08:24] v8bot: techwraith is getting too many beers. Don't let techwraith get drunk! [08:24] stonebranch has joined the channel [08:24] tuhoojabotti: .help [08:24] e6nian: e6nian++ [08:24] v8bot: e6nian: Don't cheat! You can't give a beer to yourself. [08:24] e6nian: techwraith++ e6nian-- [08:24] jacter has joined the channel [08:25] Marak: v8: console.log(this.arguments.callee) [08:25] v8bot: Marak: TypeError: Cannot read property 'callee' of undefined [08:25] Marak: v8: console.log(arguments.callee) [08:25] v8bot: Marak: function (code){ var res try{res… [08:25] jhurliman has joined the channel [08:25] herbySk has joined the channel [08:25] tomtomaso has joined the channel [08:25] jbpros has joined the channel [08:25] konobi has joined the channel [08:25] Swimming_bird has joined the channel [08:25] tyler-iphone has joined the channel [08:25] Guest28566_ has joined the channel [08:25] rudebwoy has joined the channel [08:25] highermath_away has joined the channel [08:25] whoops has joined the channel [08:25] cognominal_ has joined the channel [08:25] levi501d has joined the channel [08:25] voodootikigod has joined the channel [08:25] mlangenberg has joined the channel [08:25] chrisdickinson has joined the channel [08:25] ysynopsis has joined the channel [08:25] [tm] has joined the channel [08:25] Marak: v8: console.log(arguments.callee.toString()) [08:26] v8bot: Marak: "function (code){\nvar res\ntry{res=eval(code)}\ncatch(e){return e.name+': '+e.message}\nif(console.out.length)return console.out.join('\n')\nreturn pp(res)\n}" [08:26] Marak: oops [08:26] Emmanuel__: the internet is collapsing [08:26] Emmanuel__: first, npm [08:26] Emmanuel__: then split [08:26] Emmanuel__: then [08:26] Emmanuel__: thne profit ! [08:26] Marak: v8: arguments.callee.res = "asd"; console.log(arguments.callee.toString()) [08:26] v8bot: Marak: "function (code){\nvar res\ntry{res=eval(code)}\ncatch(e){return e.name+': '+e.message}\nif(console.out.length)return console.out.join('\n')\nreturn pp(res)\n}" [08:27] e6nian: Emmanuel__: npmjs.org is down now. [08:27] tbassetto has joined the channel [08:27] Marak: v8: arguments.callee.code = function(){ console.log('bad');}; console.log(arguments.callee.toString()) [08:27] v8bot: Marak: "function (code){\nvar res\ntry{res=eval(code)}\ncatch(e){return e.name+': '+e.message}\nif(console.out.length)return console.out.join('\n')\nreturn pp(res)\n}" [08:27] leahculver has joined the channel [08:27] leahculver has joined the channel [08:27] Emmanuel__: e6nian: omagad [08:27] Emmanuel__: it's happening [08:28] squeese has joined the channel [08:28] a_meteorite: woah [08:29] techwraith: Anyhoo, thanks for the beer, I'm off to do that thing people keep telling me about... I think it's called sleep? [08:29] a_meteorite: sleep does not exist, it is merely an illusion [08:29] e6nian: Emmanuel__: so we just wait for the maintance. [08:29] sudhirjonathan has joined the channel [08:30] PeterPeterPeter has joined the channel [08:30] apoc has joined the channel [08:30] quijote has joined the channel [08:30] techwraith: a_meteorite: That's what I thought, it's recently come to my attention that it's actually possible. [08:31] a_meteorite: wouldn't be surprised if we live in a virtually constructed world [08:31] a_meteorite: ala the matrix [08:32] mikl has joined the channel [08:32] mikl has joined the channel [08:34] jhurliman has joined the channel [08:34] herbySk has joined the channel [08:34] tomtomaso has joined the channel [08:34] jbpros has joined the channel [08:34] konobi has joined the channel [08:34] Swimming_bird has joined the channel [08:34] tyler-iphone has joined the channel [08:34] Guest28566_ has joined the channel [08:34] rudebwoy has joined the channel [08:34] highermath_away has joined the channel [08:34] whoops has joined the channel [08:34] cognominal_ has joined the channel [08:34] levi501d has joined the channel [08:34] voodootikigod has joined the channel [08:34] mlangenberg has joined the channel [08:34] chrisdickinson has joined the channel [08:34] ysynopsis has joined the channel [08:34] [tm] has joined the channel [08:35] apoc has joined the channel [08:36] jbpros has joined the channel [08:38] hkjels_ has joined the channel [08:39] mAritz has joined the channel [08:39] bzinger has joined the channel [08:39] blackpawn_ has joined the channel [08:39] blackpawn_: anybody awake? :) [08:40] tuhoojabotti: No [08:40] blackpawn_: :) [08:40] tuhoojabotti: See, I'm at work. [08:40] blackpawn_: simple question perhaps... i run node-waf build and successfully build an add on (node-canvas) but can't figure out the steps to get it installed nicely so scripts can require it [08:41] d0k has joined the channel [08:41] blackpawn_: so the canvas examples work cuz they require with a relative path but doing straight up require('canvas') does not work [08:43] blup has joined the channel [08:45] skoom has joined the channel [08:46] matyr has joined the channel [08:46] eirikb has left the channel [08:47] blackpawn_: oh wait think i know [08:49] blackpawn_: yeps, just had to copy the whole thing over into node search path, had though node-waf did that [08:51] hasenj has joined the channel [08:54] blackpawn_: wooohoo so happy! \o/ [08:55] skohorn has joined the channel [09:02] emattias_ has joined the channel [09:02] jamey-uk has joined the channel [09:02] jamey-uk: Is anyone else getting connect errors when trying to install anything using npm right now? [09:03] Yoric has joined the channel [09:03] blackpawn_: yeah npm is hosed right now [09:03] blackpawn_: had to just install node-canvas manually which took forever cuz hadn't ever not used npm before hehe [09:04] hybsch has joined the channel [09:04] matyr_ has joined the channel [09:05] mAritz1 has joined the channel [09:06] jamey-uk: blackpawn_: i've just been having a couple of days of problems using npm at all, quite frustrating [09:06] jamey-uk: do you know if there are any mirrors or is it just one server that hosts the registry? [09:06] blackpawn_: on github there's a bunch of open issues on it.. sounds like just one server and it needs to be restarted [09:07] Arenstar has joined the channel [09:07] AAA_awright has joined the channel [09:07] jamey-uk: which issue page is that? i wonder if i can offer some server hosting [09:08] Flobblebobble has joined the channel [09:08] blackpawn_: https://github.com/isaacs/npm/issues [09:08] tuhoojabotti: :D [09:10] jamey-uk: tuhoojabotti: was that at me? :D [09:10] tuhoojabotti: All of you! :D [09:10] Xano has joined the channel [09:10] riven has joined the channel [09:11] blackpawn_: thanks tuhoojabotti ! [09:11] tuhoojabotti: No problem<3 [09:12] jamey-uk: I guess because it's 2 in the morning where Isaac is... [09:13] tuhoojabotti: It's 12 PM here [09:13] jamey-uk: where's here? [09:13] indutny: Y U THINK U NO NODE.JS? HAVE QUESTIONS - ASK NODE.JS ROCKSTAR! http://blog.indutny.com/ [09:13] tuhoojabotti: Should I change my nick to tuhoojabotti-fi? :D [09:13] tuhoojabotti: indutny: You look younger than me, and I'm 17. :D [09:13] jamey-uk: Ahh, two hours ahead of me :) [09:14] tuhoojabotti: It must be the beard. [09:14] indutny: tuhoojabotti: that's old photo [09:14] tuhoojabotti: jamey-uk: Yes, I'm used to living in the future. [09:14] jamesbroad has joined the channel [09:14] tuhoojabotti: indutny: I be you don't like me cuz I'm not smart. :3 [09:15] jamey-uk: indutny: I second that! [09:15] indutny: tuhoojabotti: yeah, but you can read my blog every week, and I guarantee that you'll get smarter! [09:15] indutny: up to 25% smarter, actually! [09:15] indutny: lol :D [09:15] jamey-uk: scientifically proven [09:15] tuhoojabotti: clinically proven? [09:16] indutny: jamey-uk: tuhoojabotti: proven by experiments on whales [09:16] tuhoojabotti: Okay. [09:16] tuhoojabotti: Sounds legit to me. [09:16] jamey-uk: oh the blubber [09:17] tuhoojabotti: indutny: I don't like the looks of your main site [09:17] tuhoojabotti: And it's invalid!! [09:17] tuhoojabotti: omg [09:17] indutny: tuhoojabotti: I'll change it soon, that's really old one [09:17] cryptix: oh well.. npm registry is down.. [09:17] tuhoojabotti: :P [09:17] indutny: better make redirect from it to blog [09:17] cryptix: do i try to fiddle around it or wait until its up again and wait the module testing i wanted to do? [09:17] indutny: cryptix: it's down [09:18] tuhoojabotti: indutny: My site is more simple http://dev.tuhoojabotti.com/index/ [09:18] tuhoojabotti: (W.I.P.) [09:18] cryptix: indutny: i know.. but you can install modules from their github repo somehow i read [09:18] tuhoojabotti: Hmm [09:18] tuhoojabotti: the server stalls again [09:18] indutny: cryptix: yeah, you can clone them into node_modules fodler [09:18] tuhoojabotti: I wonder what that is [09:18] indutny: s/fodler/folder [09:18] indutny: but that won't work with all modules [09:19] jeremyselier has joined the channel [09:19] tuhoojabotti: indutny: Syntax error, missing ending / [09:19] indutny: tuhoojabotti: where? [09:19] indutny: tuhoojabotti: on your site? :D lol [09:19] tuhoojabotti: indutny: But yeah, tell me why does my server stop responding after a while! [09:19] tuhoojabotti: It's like I don't visit the site for a day then I visit it and it works and soon after that boom [09:19] jamey-uk: I've just been spending the last 5 minutes manually cloning missing modules... [09:20] jensn has joined the channel [09:20] tuhoojabotti: indutny: indutny> s/fodler/folder <- line 1 [09:20] jamey-uk: 'npm ls' to see what you're missing, then cd into node_modules, git clone [git://url/goes/here/] [09:20] jamey-uk: et voila [09:20] Marak: lol tomorrow morning is gonna suck for izs [09:20] indutny: Marak: lets spam his email [09:20] Marak: indutny: bad indutny [09:20] Marak: that is not rockstar! [09:21] jamey-uk: Marak: will it be a lot more work than just restarting the server and closing those tickets then? [09:22] indutny: jamey-uk: it's couchdb, actually [09:22] jamey-uk: tuhoojabotti: your server redirects me to /index/ but then it gives no response... [09:23] tuhoojabotti: jamey-uk: Yes well I know. [09:23] jamey-uk: indutny: what needs to be restarted? [09:23] tuhoojabotti: The redirect is apache ;D [09:23] jamey-uk: is it a forever redirect or something? [09:23] indutny: jamey-uk: Probably, couchdb. [09:23] tuhoojabotti: jamey-uk: It's like I don't visit the site for a day then I visit it and it works and soon after that boom [09:23] tuhoojabotti: stops responding [09:23] tuhoojabotti: No idea why [09:23] tuhoojabotti: Help me chaps [09:24] tuhoojabotti: Obviously I'm at work and can't fix it right now [09:24] jamey-uk: What's it hosted on? [09:24] tuhoojabotti: jamey-uk: A servr [09:24] tuhoojabotti: server* [09:24] jamey-uk: …what kind of server, what sort of software aside from Apache [09:24] tuhoojabotti: Well lot's of software [09:24] tuhoojabotti: it's not my own [09:25] tuhoojabotti: It's a shared ssh, mainly used for irc shells ;D [09:25] tuhoojabotti: http://www.kapsi.fi/english.html [09:25] jamey-uk: do you have anything else hosted on there? sounds like maybe the server's overloaded [09:25] Marak: okay, added some tests to hook.io, would love help improving these, https://github.com/Marak/hook.io/tree/master/tests [09:25] matyr has joined the channel [09:25] Murugaratham has joined the channel [09:25] tuhoojabotti: jamey-uk: Well the load doesn't seem too high to me. [09:26] tuhoojabotti: And this happens often [09:26] jamey-uk: have you checked the logs? [09:26] tuhoojabotti: jamey-uk: Logs show nothing out of ordinary [09:26] Mrfloyd has joined the channel [09:26] tuhoojabotti: I'll try something else then [09:27] jamey-uk: well, it's working again now [09:27] tuhoojabotti: Not anymore :D [09:27] jamey-uk: "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." [09:27] tuhoojabotti: Yeah. [09:27] tuhoojabotti: That's from the htaccess [09:27] tuhoojabotti: I guess [09:27] tuhoojabotti: I proxy specific requests to ndoe [09:27] tuhoojabotti: node* [09:27] tuhoojabotti: fuu [09:28] tuhoojabotti: now my internet connection is down [09:28] tuhoojabotti: (DNS that is) [09:28] jamey-uk: hmm, it just seems like there's a pretty serious problem with that [09:28] jamey-uk: try changing to Google's public DNS or OpenDNS maybe? [09:28] tuhoojabotti: It's not only my connection [09:28] tuhoojabotti: damn router [09:28] shinuza has joined the channel [09:29] dtan has joined the channel [09:30] hellp has joined the channel [09:30] tuhoojabotti: jamey-uk: Try now :P [09:30] jamey-uk: eh, so your router's DNS is playing up, or your ISP's, or further down the line? [09:30] jamey-uk: yep, seems to work properly now :) but if it's this intermittent I'd talk to Kapsi [09:30] tuhoojabotti: I added it as a new window to my screen ;D [09:31] tuhoojabotti: Perhaps I can access it when it stalls again [09:32] tuhoojabotti: jamey-uk: Like what you see? :D [09:32] fangel has joined the channel [09:33] indutny: Marak: We should find a Node.js Batman [09:34] Marak: fuck i just tried to install npm out of habit [09:34] jamey-uk: indutny: what requirements is there for such a Batman? [09:35] jamey-uk: tuhoojabotti: yeah it's an unusual site, feels very hack-ery [09:35] indutny: jamey-uk: no superpowers, but saving people [09:35] jamey-uk: weird, your friend is from somewhere where I went to school, and he's just a few years older than me [09:35] jamey-uk: tuhoojabotti: sorry, that was to you [09:35] `3rdEden: Does it come with a free bat mobile indutny? [09:35] unlink has joined the channel [09:35] unlink has joined the channel [09:35] jamey-uk: indutny: I'm always keen to save people… I'm assuming here we mean with npm-related woes [09:36] zeade has joined the channel [09:36] tuhoojabotti: jamey-uk: Is that a good or a bad thing? :D [09:36] tuhoojabotti: And the dns problems is at ISP [09:37] jamey-uk: tuhoojabotti: it's just a weird coincidence, I reckon he probably actually went to the same school as me too [09:37] jamey-uk: tuhoojabotti: what OS are you on? [09:37] tuhoojabotti: what [09:37] jamey-uk: what what? [09:37] tuhoojabotti: about school [09:37] Emmanuel__: is npm back ? [09:37] tuhoojabotti: what friend? [09:37] tuhoojabotti: :D [09:38] tuhoojabotti: ah [09:38] tuhoojabotti: Mike? [09:38] jamey-uk: yep! [09:38] blackpawn_: hmm anyone know good way to throttle file i/o so i don't get the EMFILE too many open files error? i'm using async apis writing hundreds of files... [09:38] jamey-uk: sorry, should've been clearer there [09:38] tuhoojabotti: jamey-uk: Ask him. :P [09:38] tuhoojabotti: He should be online at his blog now :D [09:38] hugdubois has joined the channel [09:39] jamey-uk: Just signed onto his guest chat :) [09:40] tuhoojabotti: Yay! [09:40] tuhoojabotti: 8.8.8.8<3 [09:40] tuhoojabotti: :P [09:40] jamey-uk: yeah, I know, right… damn Google [09:40] tuhoojabotti: back to browsing@work [09:40] jamey-uk: so easy to remember [09:40] AvianFlu: can anybody give me specifics on what causes an EPIPE? [09:41] tuhoojabotti: jamey-uk: Say hi if he answers. :P [09:42] jamey-uk: yep, talking to him now. he completely went to the exact same school as I did :P [09:42] tuhoojabotti: :D [09:43] tuhoojabotti: The world is small [09:43] pradeepto has joined the channel [09:44] tuhoojabotti: jamey-uk: you didn't answer my question, is the hack-ery thing good or bad? [09:44] jamesbroad has joined the channel [09:44] hojberg has joined the channel [09:44] jamey-uk: tuhoojabotti: ooh sorry, haha, yeah it just depends what the purpose of the site is ;) [09:44] tuhoojabotti: jamey-uk: Isn't it clear? :D [09:45] jamey-uk: Oh yeah :) [09:45] tuhoojabotti: "I must because I can" [09:45] neshaug has joined the channel [09:45] jamey-uk: I like that philosophy [09:45] tuhoojabotti: Some don't. :/ [09:45] tuhoojabotti: That's why I have that site :D [09:45] tuhoojabotti: The old one doesn't work without js that is [09:45] tuhoojabotti: so I chose to move the js to the server ;D [09:45] tuhoojabotti: mostly [09:46] ineation has joined the channel [09:48] tuhoojabotti: jamey-uk: Did you say hi from me? :D [09:48] jamey-uk: yep :) [09:49] tuhoojabotti: höhö [09:50] ditesh|cassini has joined the channel [09:50] eldar has joined the channel [09:52] ineation has joined the channel [09:52] marvin_ has joined the channel [09:55] jamesbroad has joined the channel [09:57] `3rdEden: npm should be back up again [09:57] jpstrikesback has joined the channel [09:57] `3rdEden: Fuck yeah [09:57] cryptix: indeed :D [09:57] `3rdEden: I just pinged the couchbase guys [09:58] `3rdEden: Y U NO FIX [09:58] `3rdEden: and the fixed it :$ [09:58] S1kx: almost [09:58] S1kx: Error: {{noproc,{gen_server,call,[<0.223.0>,{add,<0.228.0>}]}}, [09:58] `3rdEden: atleast I can push my packages again [09:58] cryptix: haha great [09:58] paul_k has joined the channel [09:59] Bonuspunkt: i really hope someone make the couchdb guys stop the name changing [09:59] `3rdEden: I can also install again [09:59] `3rdEden: yeh its quite fun [10:00] Bonuspunkt: Couchbase Single Server had been previously known as Couchbase Server 1.1.0 [10:00] `3rdEden: couchdb, coucheone, couchbase, iriscloud :D [10:00] Xano has joined the channel [10:00] Bonuspunkt: couch.io [10:00] `3rdEden: oh yeh [10:00] `3rdEden: missed that one :p [10:01] Bonuspunkt: are they doing just ripoffs or whats the point of the namechanging [10:02] `3rdEden: exposure [10:02] `3rdEden: ;D [10:02] `3rdEden: You now know about couchdb, more than would know about any other system [10:04] arnebert has joined the channel [10:07] rjack has joined the channel [10:07] rio{ has joined the channel [10:07] blackpawn_: hmmm node.js seems to die on batch file processing... after 250 files or so ti dies with Error: EMFILE, Too many open files [10:07] blackpawn_: the files aren't still open though unless it's slow to GC or something... [10:08] Mrfloyd has joined the channel [10:08] Marak: blackpawn_: maybe increase your FD limit? [10:08] rjack: Hello. I'm trying to drop myself in the REPL having the names local to the module visible from within the REPL. Something like this: http://pastebin.com/ZqKqXHH0 Is this possible? [10:09] Marak: blackpawn_: try: ulimit -n [10:09] blackpawn_: thanks Marak i'll try that! [10:09] Marak: rjack: you prob want this pattern: https://github.com/Marak/hook.io-repl/blob/master/repl [10:10] Marak: i inject hook class into repl context [10:10] Marak: same idea [10:10] jamey-uk: ACTION is pretty happy npm is back up [10:10] stonebranch has joined the channel [10:10] Marak: blackpawn_: you need to increase ulimit, also you might benefit from a rate limiter on your control flow, as to not saturate the machine with too many file i/o at once [10:10] blackpawn_: oh are you kidding npm is back? haha if only 4 hours ago [10:11] blackpawn_: marak i haven't been able to figure out how to rate limit since there's no sleep API or anything like that [10:11] blackpawn_: it's all async input feeding async output... [10:11] Marak: blackpawn_: its not hard, i think there are some libs that do this, i cant remember [10:11] rjack: Marak: thanks [10:11] meso_ has joined the channel [10:11] Marak: blackpawn_: if you cant dynamically scale up your processes, you need to rate limit [10:12] Marak: blackpawn_: but just up your ulimit, i bet it will hold [10:12] blackpawn_: yeah running again with 1024 instead of 256 ulimit [10:12] Marak: blackpawn_: and TRIPLE check you are closing FDs ( both file i/o and http requests...) [10:12] Marak: req.end() will kill you [10:12] Marak: if i remember right, its been a while since ive seen that error in our stack [10:12] Marak: :-) [10:12] Marak: rjack: did that work? [10:14] jomoho has joined the channel [10:17] Marak: `3rdEden: i had nothing to do with it, http://i.imgur.com/TizA1.png [10:21] blackpawn_: Marak: ah i was missing a writeStream .end() call.. running again with 256 limit to see if it works nicely now [10:22] meso_ has joined the channel [10:22] blackpawn_: woohoo! worked [10:24] voodootikigod_ has joined the channel [10:24] whoops_ has joined the channel [10:24] Guest28566_ has joined the channel [10:25] blackpawn_: node is quite rad ^_^ [10:26] Marak: blackpawn_: :-) [10:26] igl: o rly [10:26] Marak: node.js support channel is open for business [10:26] igl: ACTION serves pie [10:26] matyr_ has joined the channel [10:26] tuhoojabotti: ACTION serves PI [10:27] Marak: blackpawn_: i hit ulimit issues SOOO many times when we first started github.com/nodejitsu/node-http-proxy [10:27] Marak: never again! [10:27] springify has joined the channel [10:28] blackpawn_: hehe [10:28] mahna has joined the channel [10:32] matyr has joined the channel [10:33] FireFly has joined the channel [10:33] AvianFlu has joined the channel [10:34] Skola: fairly trivial question, but I've been wondering _how much code_ to put on one line in javascript and coffeescript [10:34] Skola: I mean, within a 79 char limit of course [10:35] Skola: but even if something can be written on one line, is it desirable to always give certain code it's own line? [10:35] blackpawn_: well just put one statement on line that limits things plenty [10:36] rpj8 has joined the channel [10:36] blackpawn_: is that what you mean? [10:36] Skola: yeah [10:37] Skola: but how about this coffeescript [10:37] Skola: if data.url is url then pushHref $links_first [10:37] _jgr has joined the channel [10:37] matyr_ has joined the channel [10:38] blackpawn_: i'm not familiar with coffeescript but i usually split my if statements into two lines [10:38] blup: that's the beauty of coffeescript [10:38] blackpawn_: mainly to amke it easy to set breakpoint when the branch is taken [10:38] leahculver has joined the channel [10:38] leahculver has joined the channel [10:39] Skola: yeah that makes sense blackpawn [10:39] Skola: and yes blup, I agree [10:39] k1ttty has joined the channel [10:39] Skola: but I want to make sure my quest for nice looking code doesn't make my code unreadable for others : D [10:40] Skola: here's a more extreme example [10:40] Skola: if active then $.post '/deactivate/' + ($e.attr 'name'), (x) -> $e.class() [10:41] Skola: I'm used to haskell where this conciseness is ok [10:41] Skola: but it might make others go wtf [10:43] mikl has joined the channel [10:44] blackpawn_: hehe looks good to me [10:44] boehm has joined the channel [10:44] Skola: alright :) [10:44] Yoric has joined the channel [10:45] revolunet: hi [10:45] tuhoojabotti: hoi [10:46] Skola: there are some cases where I have my doubts though [10:46] Skola: like: [10:46] Skola: _(string.replace /[^a-zA-Z0-9| ]/g, '').words().join('_') [10:46] Skola: I mean, it does exactly what it should, but maybe it's not so readable [10:46] gustavowt has joined the channel [10:47] jonaslund: is _ a magic token like in perl ? [10:48] Skola: no it's underscore.js [10:48] Skola: should have mentioned [10:48] tuhoojabotti: What does that do? :o [10:49] Skola: it changes "Some#*@&@*#&__ fucked up String" to "Some_fucked_up_String" [10:49] AvianFlu has joined the channel [10:49] fcambus has joined the channel [10:49] Skola: but the fact that you need to ask makes me wonder whether it's readable enough [10:49] tuhoojabotti: ok. [10:50] Skola: I use it to get url-friendly titles in this case [10:50] tuhoojabotti: That's useful! [10:50] tuhoojabotti: though I use - [10:50] tuhoojabotti: :P [10:50] Skola: ja I should probably use -, it's nicer [10:50] tuhoojabotti: achso [10:51] Garo_: yay, npm has been fixed :) [10:51] tuhoojabotti: Garo_: old [10:51] jpstrikesback has left the channel [10:51] Skola: jaso [10:51] Skola: speak German then? [10:51] jamey-uk: it'd be good if someone could change the topic of the room to say that npm is up again [10:51] tuhoojabotti: Skola: http://dev.tuhoojabotti.com/best-of/#the-best-of-project <- - is much nicer [10:52] tuhoojabotti: :P [10:52] Skola: yeah tuhoo you're right [10:52] tuhoojabotti: Skola: Ich spreche deutsch, aber nicht so gut [10:52] Skola: : D [10:52] tuhoojabotti: Studied for like 6 years [10:52] tuhoojabotti: Forgot everytng -> profit [10:52] Skola: und Koreanisch? [10:52] Skola: :D:D [10:53] tuhoojabotti: finnish, english, swedish (damn finland for force teaching that shit, no offence (okay some offence) to swedes) and a bit german [10:53] tuhoojabotti: Skola: Annyeong Haseyo! [10:53] tuhoojabotti: That's hi in korean [10:53] Skola: haha :D [10:54] jonasen has joined the channel [10:54] Skola: I speak Dutch, English, and decent French and German [10:54] tuhoojabotti: lul [10:54] tuhoojabotti: ":D" [10:55] Skola: :[] [10:55] tuhoojabotti: It was funny when I learnt that word's meaning [10:55] Skola: hahaha [10:55] tuhoojabotti: then combine lul nub which is dutch and french [10:55] tuhoojabotti: I think [10:55] tuhoojabotti: quite common phrase [10:55] Skola: nub? :D [10:56] tuhoojabotti: no it's english [10:56] Skola: like newb? [10:56] tuhoojabotti: noob -> nub [10:56] Skola: hah [10:56] Skola: lelznoob [10:56] Skola: was a term I used in a different era [10:56] tuhoojabotti: but yeah [10:57] tuhoojabotti: oh well [10:57] tuhoojabotti: I prefer english anyways [10:57] Skola: moi aussi : ) [10:57] Skola: I prefer it over Dutch [10:57] tuhoojabotti: wut [10:57] tuhoojabotti: moi = hi in finnish [10:58] Skola: yeah [10:58] tuhoojabotti: but aussi dunno [10:58] Skola: it's me in French [10:58] Skola: aussi = too [10:58] jonaslund: tuhoojabotti: haista minun routsalainen perse [10:58] tuhoojabotti: ok [10:58] tuhoojabotti: jonaslund: I'm not into that kind of stuff. [10:59] tuhoojabotti: Don't take my small pun too seriously now. [10:59] jonaslund: just wanted to justify your offence :P [10:59] swistak has joined the channel [10:59] tuhoojabotti: ;) [10:59] tuhoojabotti: That's not even correct finnish [10:59] tuhoojabotti: so your offence kinda failed [10:59] Croms: Can anyone recommend a template engine that does embedded js and includes that actually works? [10:59] Cstumph: sucer mon couilles sil vout plait? [10:59] tuhoojabotti: but it's acceptavle [10:59] Skola: perkele vittu [10:59] jonaslund: what part did i get wrong ? [10:59] tuhoojabotti: Skola-- [10:59] v8bot: tuhoojabotti has taken a beer from Skola. Skola now has -1 beers. [11:00] tuhoojabotti: jonaslund: it's ruotsalaista persettä(ni) [11:00] rudolfrck: Anyone here used net.Socket? I can't get socket.setNoDelay() to work.. [11:00] jonaslund: (I learned to speak finnish somewhat as a kid but never learned it formally in any way) [11:00] tuhoojabotti: ni = mine [11:00] Skola: Croms ejs doesn't work? [11:00] Skola: or jade? [11:00] jonaslund: tuhoojabotti: ahh [11:00] charlesyin has joined the channel [11:01] jetienne has joined the channel [11:01] tuhoojabotti: ruotsalainen perse = swedish ass and ruotsalaista persettä = part of an swedish ass. :D [11:01] tuhoojabotti: anyways [11:01] prettyrobots has joined the channel [11:01] jonaslund: for better or worse i mostly speak english with my finnish cousins [11:02] tuhoojabotti: better. [11:02] tuhoojabotti: :D [11:02] jonaslund: apart from one that wants to keep her Swedish fresh [11:02] tuhoojabotti: You tell them to smell you ass too? [11:02] jonaslund: (While i myself would prefer talking finnish to keep up my memory) [11:02] jonaslund: not really :D [11:02] tuhoojabotti: :P [11:02] jonaslund: just random victims on irc [11:02] tuhoojabotti: Sounds about right [11:03] Cstumph has left the channel [11:03] Croms: Skola: Need something simpler. [11:03] tuhoojabotti: Croms: Templates? [11:03] tuhoojabotti: ah [11:03] tuhoojabotti: no [11:04] tuhoojabotti: no wait yes [11:04] tuhoojabotti: :D [11:04] tuhoojabotti: he left :o [11:04] Cstumph has joined the channel [11:04] Croms has joined the channel [11:05] confoocious has joined the channel [11:05] confoocious has joined the channel [11:05] Cstumph has left the channel [11:05] asabil has joined the channel [11:07] jonaslund: On one hand in a big chan like this it's nice to not have to see all joins/parts/quits but it can be very annoying when people disappear mid-conv [11:07] tuhoojabotti: jonaslund: Well I use tab-complete so it's not such a big deal [11:07] tuhoojabotti: I sent him query ;) [11:07] sirdancealot has joined the channel [11:08] jonaslund: i was more thinking of if you're writing a long reply and by the time you've sent it he quit halfway through [11:08] tuhoojabotti: jonaslund: That's why I don't bother writing long replies. ;) [11:09] leonh: jonaslund: I remember there was a plugin for irssi to hide join/parts of users idle for an amount of time so that you only see join/parts of people actually talking. [11:09] Skola: must find this [11:09] Skola: :P [11:10] leonh: I find irssi a pain to use [11:10] leonh: but yeah, it's got a plugin or script for everything [11:10] Skola: I should set up my aliases again [11:10] Skola: if you've got those setup it's pretty nice [11:12] fermion has joined the channel [11:13] jtrudeau has joined the channel [11:15] tiagoa has joined the channel [11:15] Croms: jonaslund: My laptop ran out of juice. [11:16] jonaslund: Croms: it wasn't anything personal, just an observation of the chanmodes in here [11:17] zum has joined the channel [11:18] mendel_ has joined the channel [11:18] blup: where did kohai go? [11:18] Croms: Most clients can hide that stuff though, right? [11:18] tuhoojabotti: blup: Idk I ignored him :D [11:19] Croms_ has joined the channel [11:19] aurynn has joined the channel [11:20] Skola: yes Croms, but the trick is to hide only idler's joins/parts [11:21] cachemoney has joined the channel [11:21] Skola: otherwise you keep talking mid-convo to folks whose laptop ran out of juice :D [11:23] FIQ has joined the channel [11:23] zum has joined the channel [11:24] Croms: My sincerest apologies. ;—) Got some good help from tuhoo. Many thanks. [11:24] sorens3n has joined the channel [11:25] tuhoojabotti: :) [11:25] kuya: does anyone use vows and tobi? if i have a batch with more than one test in it i get a ECONNREFUSED error, with just one test it works as exepcted [11:27] gnuanu has joined the channel [11:27] fayce has joined the channel [11:27] Mowmow has joined the channel [11:28] neoesque has joined the channel [11:28] Mowmow has left the channel [11:29] AvianFlu has joined the channel [11:30] charlesyin has joined the channel [11:33] dtan has left the channel [11:33] cognominal_ has joined the channel [11:35] sirdancealot has joined the channel [11:35] ditesh|cassini has joined the channel [11:36] mendel_ has joined the channel [11:36] gavin_huang has joined the channel [11:38] indutny: kohai is sleeping [11:39] p6 has joined the channel [11:40] charlesyin_ has joined the channel [11:41] paznicul has joined the channel [11:42] p_nitsch has joined the channel [11:42] confoocious has joined the channel [11:43] ngs has joined the channel [11:44] skm has joined the channel [11:48] jonaslund: with the fishes [11:49] tuhoojabotti: why does everybody shorten my nick as tuhoo anyways :D [11:49] tuhoojabotti: I guess I have to add it to hilites [11:51] Skola has joined the channel [11:52] CIA-104: node: 03Ryan Dahl 07master * r312ed83 10/ lib/net_uv.js : Support eof in net_uv - http://bit.ly/ipV2aU [11:52] CIA-104: node: 03Ryan Dahl 07master * r710f8e2 10/ (5 files in 2 dirs): Add --use-uv command-line flag to use libuv backend - http://bit.ly/kYQrch [11:52] ryah: :) [11:53] fairwinds has joined the channel [11:53] AvianFlu has joined the channel [11:54] tk has joined the channel [11:54] Bwen has joined the channel [11:55] tiagoa: morning [11:56] tiagoa: i'ts possible install npm without internet connection? [11:56] cwo has joined the channel [11:57] tojochacko has joined the channel [11:57] Bwen: I have a class that inherits from EventEmitter, I have put an this.emit('newClient') in the "socket.io.on('connection') function, which is a class method.. I cant do this.emit() in that method? the emit doesnt get triggered... any ideas? [11:57] Wizek has joined the channel [11:57] Bwen: tiagoa: npm is a remote package installer as far as I am concerned so ... no :P [11:57] ebaxt has joined the channel [11:58] sourcode has joined the channel [11:58] gozala has joined the channel [11:58] tiagoa: thanks [11:58] Bwen: tiagoa: nothing stoping you from installing all the packages you need and then going offline or in an intranet [11:59] ianward has joined the channel [11:59] STUPIDWIFI has joined the channel [11:59] sixtus42 has joined the channel [12:01] tiagoa: i've tried to install socket.io and it not worked [12:01] Bwen: with an internet connection? [12:01] tiagoa: without [12:01] `3rdEden: tiagoa was this before, during or after the NPM couchdb crash [12:01] `3rdEden: o [12:02] Bwen: tiagoa: install it WITH an internet connection THEN you can go offline [12:02] Bwen: npm fetchs the package ON the internet to install it locally [12:02] tiagoa: but the computer cannot connect with internet [12:03] Bwen: ohhh i'm sure it can with a lil effort [12:04] tiagoa: can I a move an installed npm from an computer to other? [12:04] Bwen: I dont see why not :) [12:05] eldar_ has joined the channel [12:05] tiagoa: I'll try [12:05] Bwen: since npm install everything local to your project (current dir), you can make your project on a computer then zip the folder and transfert it [12:06] njsENTH has joined the channel [12:06] njsENTH: Hello [12:06] tiagoa: yeah maybe i'll do this [12:06] njsENTH: can Node.js scale for very big websites? [12:06] CIA-104: node: 03Ryan Dahl 07master * r52b517c 10/ (5 files in 4 dirs): [12:06] CIA-104: node: Revert "Add --cov code coverage option" [12:06] CIA-104: node: This can be done in user space. EG https://github.com/cloudkick/whiskey [12:06] CIA-104: node: This reverts commit da9b3340ebb7501ebb8a2896d2c259ffabdab340. [12:06] CIA-104: node: This reverts commit b4ff36a41b242c0b379d3c27fb30818de54fe2d4. [12:06] CIA-104: node: Conflicts: [12:06] CIA-104: node: src/node.cc - http://bit.ly/kpHbQQ [12:06] Bwen: hullo there njsENTH, do you have the password? [12:07] paul_k has joined the channel [12:07] miccolis has joined the channel [12:07] dremoor: is there any active MS SQL module that is somewhat stable? [12:08] Druide_ has joined the channel [12:08] njsENTH: wow [12:08] njsENTH: why should you want to use such a thing? [12:08] k1ttty has joined the channel [12:08] dremoor: it pays the bills [12:08] njsENTH: I see [12:08] Bwen: njsENTH: hehe i'm just kidding :P [12:08] njsENTH: ah Bwen I thought you are a bot [12:09] Bwen: njsENTH: personally I havent used nodejs for big scale website, but I dont why it wouldnt scale well. Depending on how you build your server [12:09] Bwen: and what the website is [12:10] Yoric has joined the channel [12:10] njsENTH: github.com for ex? [12:11] Bwen: njsENTH: whats nice about nodejs, that I find, is that its efficient. Its not bulked down with features and thus you can specialize it for specific needs or web site [12:11] mendel__ has joined the channel [12:11] xandrews has joined the channel [12:12] Skola has joined the channel [12:13] k1ttty has joined the channel [12:14] thalll has joined the channel [12:15] mehlah has joined the channel [12:16] aabt has joined the channel [12:16] ianward has left the channel [12:16] Skola: could a fairly inexperienced coder contribute to node somehow? [12:16] AvianFlu: of course! [12:16] AvianFlu: go make a github account [12:16] Skola: have one [12:17] bergie has joined the channel [12:17] AvianFlu: find some projects that look fun and learn to use them [12:17] davve: can you make good coffee? [12:17] AvianFlu: play with some APIs you're interested in [12:17] Skola: sure, if you like triple espresso's [12:18] Skola: yeah AvianFly, I'll have a look [12:18] lukegalea: morning all. Does anyone know of a Node.js tool to inline CSS for sending emails? (ie: The Node equivelent of this ruby project: https://github.com/alexdunae/premailer) [12:20] Bwen: inline CSS for sending emails? that just didnt compute, to me... [12:20] tojochacko has joined the channel [12:20] lukegalea: Bwen: If you just toss a style tag at the top of an html email, gmail, etc will ignore. [12:20] lukegalea: probably because you could mess up their page. [12:21] ph^ has joined the channel [12:21] lukegalea: but if you put all your styles in each element's style=xxx then it's fine. [12:21] k1ttty has joined the channel [12:21] lukegalea: http://stackoverflow.com/questions/4894081/compile-css-into-html-as-inline-styles [12:21] Bwen: so basicly you want a tool to modify your well sorted CSS and put it inline your HTML email tags [12:22] Bwen: that could be done in any language... [12:22] bnoordhuis has joined the channel [12:22] nphase-work has joined the channel [12:22] Bwen: once you have your Email HTML in a file, just have node send it and parse the markers [12:23] Bwen: and if its so important, why not just create your Email HTML with inline styles in the first place ... [12:23] lukegalea: I'm rendering the emails using express... and the email content itself is dynamic, so the template could have inline styles but the I would have to put ugly raw styles into the dynamic templates themselves to do that.. [12:23] lukegalea: bu [12:23] lukegalea: t [12:23] lukegalea: t [12:23] lukegalea: hat [12:24] lukegalea: eek. sorry. [12:24] Skola: : D [12:24] lukegalea: Anyway, Bwen: that's probably my best option. [12:24] lukegalea: Bwen: thanks for talking it through with me. [12:24] Bwen: lukegalea: why create so much Overhead just to be "proper" ... [12:24] Bwen: create your HTML with inline styles... that HOW you want it anyway... [12:25] hkjels_: That probably involves changing your workflow. I'm pretty sure I've seen a solution for your issue lukegalea, but no address comes to mind [12:25] lukegalea: Bwen: Not so much about being proper as being maintainable. [12:25] dixel has joined the channel [12:26] ngs has joined the channel [12:26] Bwen: lukegalea: why because you are going to use that HTML Email as a web page? you just said it... HTML Email requires inline styles [12:26] fangel has joined the channel [12:26] JoshC1 has joined the channel [12:26] dixel: Hello everybody! [12:26] Bwen: i'm pretty sure there are tools out there that does JUST THAT... maintain HTML Emails with a UI [12:26] Bwen: dixel: password required! [12:26] lukegalea: I think a good compromise is to store my nice jade & sass email templates and as a pre-deploy step, compile those into an inlined template for the layout and just live with ugly inlined templates for the dynamic bodies of the emails. [12:26] Bwen: lukegalea: omg yo uhad to mention jade ... :( [12:27] lukegalea: Bwen: not a fan eh? [12:27] dixel: How to properly convert v8::String to const char *? [12:27] ngs has joined the channel [12:27] bnoordhuis: dixel: String::Utf8Value s(str) [12:27] CIA-104: node: 03Ryan Dahl 07master * re697cfb 10/ lib/net_uv.js : net_uv: shim up more methods - http://bit.ly/mNTKkS [12:27] bnoordhuis: dixel: or String::AsciiValue, depending on your needs [12:27] hkjels_: http://stackoverflow.com/questions/4521557/automatically-convert-style-sheets-to-inline-style/4521740#4521740 [12:27] hkjels_: solution [12:27] bnoordhuis: dixel: then dereference it: *s [12:28] hkjels_: not a node solution, but you can probably port it [12:28] hkjels_: http://stackoverflow.com/questions/791070/what-tools-to-automatically-inline-css-style-to-create-email-html-code [12:28] hkjels_: many solutions [12:29] bradleymeck__ has joined the channel [12:29] bentruyman has joined the channel [12:30] Bwen: I have a class that inherits from EventEmitter, I have put an this.emit('newClient') in the "socket.io.on('connection') function, which is a class method.. I cant do this.emit() in that method? the emit doesnt get triggered... any ideas? http://pastie.org/2082394 (code was trimed a bit, code doesnt run for obvious reasons) [12:30] llrcombs: Node.js shouldn't have memory leaks, right? [12:30] llrcombs: garbage collection and all [12:30] lukegalea: hkjels_: Nice! Thanks. [12:31] gustavowt has joined the channel [12:31] dixel: bnoordhuis, *(String::AsciiValue(str)) would be right? [12:31] hkjels_: lukegalea: You are welcome. [12:32] bnoordhuis: dixel: yes, you don't even need the parentheses [12:32] kulor-uk has joined the channel [12:32] tojochacko has joined the channel [12:32] bnoordhuis: dixel: beware of C++ life cycle issues though [12:32] bnoordhuis: dixel: the object goes out of scope (is destructed) almost directly after it's created [12:33] bnoordhuis: dixel: (depending on where you use that construct) [12:33] dixel: hmmm... that's why I recieved empty strings sometimes [12:34] dixel: bnoordhuis, V8 destructs string or AsciiValue object? [12:34] Skola has joined the channel [12:35] dixel: bnoordhuis, I use it in binding to convert function arguments to char* [12:35] bnoordhuis: dixel: v8 destructs nothing but the usual C++ scoping rules apply to the AsciiValue instance [12:35] replore has joined the channel [12:35] bnoordhuis: dixel: this almost never works as you would expect -> foo(String::Utf8Value(str)); [12:36] edude03 has joined the channel [12:36] gustavowt: hello guys, I'm using mysql-db and I need to get the result of a query and store in a global variable, but I'm not getting, someone help me? [12:36] lukstr: bnoordhuis: depends on foo [12:36] vipaca has joined the channel [12:36] vipaca has joined the channel [12:36] gustavowt: db-mysql* [12:37] lukstr: also this was a good morning read: http://s3.mrale.ph/nodecamp.eu [12:37] tojochacko_ has joined the channel [12:38] MattJ has joined the channel [12:38] cognominal_ has joined the channel [12:39] tojochacko__ has joined the channel [12:40] ryan0x2 has joined the channel [12:41] clip has joined the channel [12:41] bibabot has joined the channel [12:41] AvianFlu has joined the channel [12:42] clip: hi! i'm wondering how to include content depending on an id, like switch case in php... what is the most simple solutioN? [12:42] tom__ has joined the channel [12:42] dixel: bnoordhuis, thx very much, it helped! [12:42] bnoordhuis: dixel: you're welcome :) [12:42] tojochacko has joined the channel [12:43] `3rdEden: lukstr the talk was even better than the slides ^_^ [12:43] robhawkes has joined the channel [12:43] hkjels_: clip: you have switch in javascript to [12:44] jbergstroem has joined the channel [12:44] hkjels_: http://www.w3schools.com/js/js_switch.asp [12:45] Lorentz has joined the channel [12:45] prettyrobots has joined the channel [12:45] matyr has joined the channel [12:46] skohorn has joined the channel [12:46] lukstr: `3rdEden: I was going to say, I imagine the talk was good. Anyone have it recorded? [12:46] ShreeKavi has left the channel [12:47] clip: hkjels_, and it's alright to use it, to load content from external files? [12:47] `3rdEden: lukstr it's not recorded [12:47] bnoordhuis: `3rdEden: well... i saw a number of people record it on their phones [12:48] lukstr: `3rdEden bnoordhuis : audio would be good enough for me :) [12:49] `3rdEden: bnoordhuis: I thought they where making pictures [12:49] bnoordhuis: lukstr: i didn't tape (hah, tape!) anything myself but perhaps someone in the channel will step up [12:49] bnoordhuis: did anyone record pquerna's talk about selene? i missed that one [12:49] matyr_ has joined the channel [12:49] `3rdEden: bnoordhuis yeah same [12:50] `3rdEden: I heared it was a epic session [12:50] lukstr: we need a nodecamp in Canada :( [12:51] gustavowt: hello guys, I'm using mysql-db and I need to get the result of a query and store in a global variable, but I'm not getting, someone help me? [12:51] bnoordhuis: gustavowt: it helps if you have a gist or pastie of your code [12:51] riven has joined the channel [12:51] riven has joined the channel [12:52] gustavowt: bnoordhuis, ok, one momment please [12:53] Nican has joined the channel [12:53] mike5w3c_ has joined the channel [12:54] devrim has joined the channel [12:55] tim_smart: ryah: Looks nice and clean :) [12:55] xandrews has joined the channel [12:55] tim_smart: libuv is pretty hot tbh [12:56] AvianFlu has joined the channel [12:56] gustavowt: bnoordhuis, http://pasteit.com/293 [12:57] gustavowt: the commands variable is a global variable, but i can not store the rows result in the variable [12:58] bnoordhuis: gustavowt: do you get an error? [12:58] gustavowt: no, if a execute console.log(rows) the same return a correct result [12:58] bnoordhuis: gustavowt: this line -> console.log(commands) <- is probably wrong, it runs at a time when your callback hasn't executed yet [12:58] brolin has joined the channel [12:59] dyer has joined the channel [12:59] dyer has joined the channel [12:59] gustavowt: this line return empty {} [12:59] bnoordhuis: gustavowt: precisely my point [13:00] gustavowt: but as I run back, not in the execute ()? [13:00] gustavowt: callback() [13:00] gustavowt: * [13:01] riven has joined the channel [13:01] riven has joined the channel [13:01] AaronMT has joined the channel [13:02] charlesyin has joined the channel [13:02] davidsklar has joined the channel [13:03] hkjels__ has joined the channel [13:04] hkjels: clip: are you making a web app? [13:04] hkjels: there's no issue with using a switch statement as long as you take precautions. [13:05] hkjels: Meaning, don't blindly trust user-input [13:05] jlecker has joined the channel [13:06] bnoordhuis: gustavowt: i don't know what you mean [13:08] gustavowt: bnoordhuis, perform the function is not the function that stores the result in variable rows? [13:08] niftylettuce has joined the channel [13:08] trotter has joined the channel [13:11] teemow has joined the channel [13:12] gustavowt: bnoordhuis, the only thing I need is just to store the result of this variable in a global variable, and then to work with the same [13:13] sioked has joined the channel [13:13] stagas has joined the channel [13:14] coleGillespie has joined the channel [13:15] bnoordhuis: gustavowt: i don't think you quite grasp how asynchronous i/o works [13:15] avalanche123 has joined the channel [13:16] prettyrobots has joined the channel [13:16] bnoordhuis: gustavowt: that global var isn't populated until your query callback runs - which it hasn't when line #31 is executed [13:17] baoist has joined the channel [13:18] clifton has joined the channel [13:18] piscisaureus has joined the channel [13:19] ap3mantus has joined the channel [13:19] gustavowt: bnoordhuis, has nothing, it returns an empty object ->{ }<- [13:20] bnoordhuis: gustavowt: i don't think we're on the same page [13:21] gustavowt: line #31, console.log(commands); [13:21] davidwalsh has joined the channel [13:21] bnoordhuis: gustavowt: yes, i already explained that - twice [13:22] thomblake has joined the channel [13:23] broofa: In interactive node interpreter, how do you terminate a multi-line statement? e.g. :http://pastie.org/2082607 [13:24] tuhoojabotti: broofa: I never understood how those worked. [13:24] tuhoojabotti: :P [13:25] broofa: tuhoojabotti how what worked? node's multi-line support, or multi-line strings in JS? :) [13:25] tuhoojabotti: multiline interactive interpreters [13:25] tuhoojabotti: tried python one :D [13:25] devdazed has joined the channel [13:26] Xano has joined the channel [13:27] rfay has joined the channel [13:30] niftylettuce: oo the boogie man! [13:30] boaz has joined the channel [13:30] p_nitsch has joined the channel [13:31] p_nitsch has joined the channel [13:31] Poetro has joined the channel [13:32] davidbanham has joined the channel [13:33] gtramont1na has joined the channel [13:34] broofa: tuhoojabotti looks like it's a bug. Node should auto-detect when you a line is complete and just run it for you, but sometimes it gets "stuck". ".break" will get you unstuck. E.g. http://pastie.org/2082641 [13:35] broofa: (found this by looking at lib/repl.js source) [13:35] tuhoojabotti: Ok. [13:35] mendel_ has joined the channel [13:35] seemann has joined the channel [13:36] AvianFlu has joined the channel [13:36] lenard_alm has joined the channel [13:36] lenard_alm has left the channel [13:38] hugdubois has joined the channel [13:38] trotter has joined the channel [13:39] charlesyin has joined the channel [13:40] temp01 has joined the channel [13:40] tbassetto has joined the channel [13:41] rafaelgarcia has joined the channel [13:41] JJMalina has joined the channel [13:44] dremoor: . [13:44] Nakamura has joined the channel [13:46] asobrasil has joined the channel [13:46] matyr has joined the channel [13:47] Corren has joined the channel [13:47] charlesyin has joined the channel [13:47] dtan_ has joined the channel [13:47] pjacobs has joined the channel [13:48] dtan_ has left the channel [13:48] arpegius has joined the channel [13:48] EyePulp has joined the channel [13:49] dtan_ has joined the channel [13:50] matjas has joined the channel [13:50] tuhoojabotti: So, what's the best imagegick replacement for node? :P [13:51] `3rdEden: nodecanvas [13:51] tuhoojabotti: I just need to generate thumbs [13:52] xerox: call convert [13:52] `3rdEden: o [13:52] xerox: :))) [13:52] `3rdEden: indeed [13:52] `3rdEden: using a child process [13:52] xerox: underage labor [13:52] tuhoojabotti: hmm? [13:53] stagas has joined the channel [13:53] Skola: :D [13:53] xerox: they make good thumbnails because they have tiny hands [13:53] Skola: lol [13:53] Skola: some jokes are so terrible that they become funny :[] [13:53] naneau has joined the channel [13:54] tuhoojabotti: indeed [13:55] else- has joined the channel [13:56] niftylettuce has joined the channel [13:57] jslatts has joined the channel [13:58] bbttxu has joined the channel [13:58] charlesyin_ has joined the channel [13:58] mhausenblas_ has joined the channel [13:58] brianseeders has joined the channel [13:59] gtramont1na has joined the channel [14:00] jetienne: tj isnt there, evil. anybody familiar with move.js ? http://visionmedia.github.com/move.js/ how to cancel a move [14:00] jetienne: cancel/stop [14:00] dtan__ has joined the channel [14:01] Swimming_bird has joined the channel [14:02] Aphelion has joined the channel [14:02] Aphelion has joined the channel [14:02] _yps has joined the channel [14:03] vipaca has joined the channel [14:04] jamey-uk has left the channel [14:05] _yps: hey! I have a problem and googling it doesnt seems to help. For some reason console.log and process.stdout.write don't write more than 1024 char a time. [14:05] _yps: I'm on OS X Snow leo. [14:05] nibblebot has joined the channel [14:06] _yps: process.stdout.write(o.length+"\n"); [14:06] _yps: process.stdout.write(o); [14:06] _yps: prints: [14:06] naneau has joined the channel [14:06] _yps: 3241 [14:06] _yps: [some text truncated to exactly 1024 chars] [14:06] _yps: what am I doing wrong? [14:07] tuhoojabotti: weird [14:08] _yps: yeap, weird [14:08] ryanfitz has joined the channel [14:08] nonnikcam has joined the channel [14:12] edjafarov has joined the channel [14:12] jtsnow has joined the channel [14:13] barodeur has joined the channel [14:14] Destos has joined the channel [14:15] matyr has joined the channel [14:19] mynyml has joined the channel [14:20] matyr_ has joined the channel [14:21] colinclark has joined the channel [14:23] azeroth_ has joined the channel [14:23] akashiraffee1 has joined the channel [14:24] akashiraffee1 has left the channel [14:24] BrianTheCoder has joined the channel [14:25] ebaxt has joined the channel [14:27] mapleman has joined the channel [14:27] matyr has joined the channel [14:28] hebz0rl has joined the channel [14:28] xandrews has joined the channel [14:28] fyskij has joined the channel [14:30] johnnywengluu: is there a way to write formatted json strings to a file? [14:30] tuhoojabotti: fs? [14:30] unlink has joined the channel [14:30] unlink has joined the channel [14:30] tuhoojabotti: JSON.stringify and save it [14:30] pifantastic has joined the channel [14:30] akashiraffee1 has joined the channel [14:31] akashiraffee1 has left the channel [14:31] tuhoojabotti: johnnywengluu: http://nodejs.org/docs/v0.4.8/api/fs.html :P [14:31] rfay has joined the channel [14:31] Cover|Work: anyone know of a way in node to "detach" a child process from its parent process? [14:32] cerisier has left the channel [14:32] copongcopong has joined the channel [14:33] Cover|Work: i.e. the parent can die, but the child keeps running [14:33] sonnym has joined the channel [14:33] ryah: Cover|Work: have the child ignore SIGHUP [14:33] ryah: process.on('SIGHUP', function() { }); [14:34] Cover|Work: ok thank you [14:36] zmbmartin: is there a truncate method or helper in jade? [14:37] Cover|Work: truncate? [14:43] Bradleymeck has joined the channel [14:44] bentruyman has joined the channel [14:44] Tidwell_ has joined the channel [14:45] tmpvar has joined the channel [14:46] RORgasm has joined the channel [14:49] quackquack has joined the channel [14:50] baudehlo has joined the channel [14:51] dipser has joined the channel [14:51] rvb has joined the channel [14:51] cStumph_ has joined the channel [14:52] dipser has joined the channel [14:53] montylounge has joined the channel [14:53] pifantastic has joined the channel [14:56] rauchg has joined the channel [14:57] Wizek has joined the channel [14:57] cStumph_ has joined the channel [14:57] JoshC1 has joined the channel [14:59] gazumps has joined the channel [14:59] thejh has joined the channel [15:00] kris_ has joined the channel [15:03] cStumph_ has joined the channel [15:03] Determinist: any way for me to redirect stdout to a file? [15:03] Determinist: from within a node script, that is [15:03] Determinist: stdout and stderr [15:04] Cover|Work: make a write stream to the file [15:04] Determinist: Cover|Work: could you be more specific please? [15:04] prettyrobots_ has joined the channel [15:04] cStumph_ has joined the channel [15:05] Cover|Work: http://nodejs.org/docs/v0.4.8/api/all.html#fs.createWriteStream [15:05] matyr has joined the channel [15:05] Determinist: Cover|Work: and how would this override the default write stream? [15:05] Cover|Work: and then process.stdout.on('data', function(data){yourWriteStream.write(data)}) [15:06] skohorn has joined the channel [15:06] Determinist: Cover|Work: can't i just process.stdout = MyWriteStream; ? [15:07] Cover|Work: haven't tried it, but i doubt it will work [15:07] Determinist: Cover|Work: ty [15:07] quackquack: Can someone familiar with Mongoose explain why I am getting "undefined is not a function" when I add a `methods` key to the model? [15:08] jvduf has joined the channel [15:08] Cover|Work: or maybe not hmm [15:08] Cover|Work: testing ... [15:08] necropsychronaut has joined the channel [15:08] rendez has joined the channel [15:09] matyr_ has joined the channel [15:09] Skola: I've had about 4 heart attacks today from starting to watch a JSConf video with my volume at a normal level [15:09] Cover|Work: ok i guess process.stdout = MyWriteStream; does work [15:09] Cover|Work: and mine doesn't :( [15:09] rendez: hi plp [15:09] quackquack: Skola: where is the jsconf video? [15:10] Skola: I'm watching 2010 vids but [15:10] Skola: http://blip.tv/jsconf [15:10] jvduf has joined the channel [15:10] Skola: has 2 from '11 [15:10] lhsys has joined the channel [15:10] quackquack: o, ok [15:10] Skola: the one by Jeremy Ashkenas is nice [15:10] CStumph has joined the channel [15:10] CIA-104: node: 03Ryan Dahl 07master * rdc0556c 10/ lib/net_uv.js : net_uv: Implement end(), destroySoon() - http://bit.ly/jF4DqC [15:11] dtan_ has joined the channel [15:11] tylerflint has joined the channel [15:11] Determinist: oh [15:11] Determinist: crap [15:11] Determinist: i'm lagging [15:11] KrisJordan: Question regarding .3->.4 and NPM upgrade. Transitioning some code that relied on require('module/file'); -- where module was an NPM installed module and file was a file in its lib/ dir. With the new node_modules this no longer resolves. What's the best practice for requiring/addressing a file within an NPM package? [15:12] fattytuna has joined the channel [15:12] fattytuna has left the channel [15:12] lhsys has left the channel [15:12] colinclark has joined the channel [15:13] Determinist: am i here? [15:13] Skola: you are [15:13] Cover|Work: are you where? [15:13] Determinist: here :P [15:13] Determinist: freenode is being naughty again [15:14] Determinist: or maybe my connection is [15:14] mikl has joined the channel [15:14] mikl has joined the channel [15:15] tylerflint: (new to node) Is there a defacto testing library for node? [15:15] tyrrvk has left the channel [15:15] jakehow has joined the channel [15:16] fyskij has joined the channel [15:16] dtan_ has left the channel [15:16] Cover|Work: tylerflint: vows is pretty common [15:16] simenbrekken has joined the channel [15:16] dtan_ has joined the channel [15:17] Cover|Work: also, kyuri which is like Cucumber for node [15:17] tylerflint: that looks great, thanks [15:17] slickplaid: espresso? [15:17] Skola: you mean de facto standard (not trying to be an ass) [15:18] Skola: also look at jasmine [15:18] confoocious has joined the channel [15:18] confoocious has joined the channel [15:18] Skola: and slickplaid you mean expresso :[] [15:18] rendez: Question: I am working on an FTP client and I've managed to PUT (stor) a file and its content using the datasocket.write(buffer) method, but I am having trouble to ending that transfer and getting any events from it :S [15:18] BillyBreen has joined the channel [15:18] rendez: https://gist.github.com/4f05f9f681eddd074d52 [15:19] jacter has joined the channel [15:20] philtor has joined the channel [15:20] fattytuna has joined the channel [15:21] mahna: tylerflint: Also nodeunit, whiskey [15:21] mscdex: rendez: i'm curious, why are you using a buffer instead of a stream? [15:22] rendez: because stream works, but the contents are not from a file, so I would have to save a temp file just to create the readStream [15:22] mscdex: where is the data coming from? [15:22] rendez: a XHR put request [15:22] Cover|Work: mscdex: i love how you make my cd-rom work in dos [15:23] mscdex: rendez: i'd think you should be able to use that stream [15:23] softdrink has joined the channel [15:23] mscdex: rendez: are you using node-formidable or ? [15:23] rendez: mscdex: how do you mean exactly? [15:23] newy_ has joined the channel [15:23] rendez: no, I'm using jsDAV [15:24] rendez: so the idea is to pipe the streams right? [15:24] swistak has joined the channel [15:26] rendez: mscdex: this could work me thinks https://github.com/samcday/node-stream-buffer [15:26] rendez: I just didn't expect stream.write() to NOT work out the events [15:26] pifantastic has joined the channel [15:26] matyr has joined the channel [15:27] fly-away has joined the channel [15:27] mscdex: i'm not familiar with webdav, but i know for a regular file submission via post or xhr, node-formidable should be able to do stream incoming files [15:27] benmills has joined the channel [15:28] benmills: Did npm recently add the -d flag? [15:28] rendez: mscdex: it's not an upload, it's plain data [15:28] rendez: this is why the only way is Fs.createWriteStream [15:28] rendez: which I'm trying to avoid :P [15:28] mscdex: rendez: ah ok [15:28] briznad has joined the channel [15:28] raidfive has joined the channel [15:28] mscdex: rendez: kinda sucks that webdav doesn't allow streaming? [15:29] mscdex: or maybe it's a limitation of jsdav [15:29] rendez: I am not sure [15:29] rendez: I'll let you know when I find something :) [15:32] jj0hns0n has joined the channel [15:32] tmpvar has left the channel [15:34] zeade has joined the channel [15:36] wookiehangover has joined the channel [15:36] dtan_: hey everyone, i'm new to nodejs and just have been following some basic tutorials [15:36] benmills has left the channel [15:36] dtan_: but i want to know, which frameworks have people been using to serve up web pages [15:37] dtan_: i've mainly seen express and geddy [15:38] dtan_: what would your recommendation be? [15:39] newy_: express [15:39] dtan_: why's that newy? [15:39] context: express is the 'the' framework [15:39] JoshC1 has joined the channel [15:39] context: or the 'in' framework [15:39] jvduf has joined the channel [15:39] dtan_: the defacto standard at this point? [15:40] context: sure [15:40] context: i dont like the word 'standard' though ;) [15:40] bradleymeck__ has joined the channel [15:40] dtan_: well that's why i put "defacto" before it =) [15:40] bshumate has joined the channel [15:40] bshumate has joined the channel [15:40] CodyGray has joined the channel [15:40] dtan_: kinda like how jquery is the defacto standard for a js lib since everyone and their mother use heh [15:41] CodyGray has left the channel [15:41] dtan_: ok, so express would be good to serve up web pages ? [15:42] springmeyer has joined the channel [15:42] febits has joined the channel [15:43] mscdex: dtan_: pretty much [15:43] sh1mmer has joined the channel [15:43] JakeyChan has joined the channel [15:43] dtan_: k cool i'll give it a go then [15:43] JakeyChan: hi, who knows http://nodester.com/ ? [15:44] ekryski has joined the channel [15:44] mAritz has joined the channel [15:44] jamey-uk has joined the channel [15:44] fcambus has joined the channel [15:44] _dave_h_d has joined the channel [15:44] colinclark has joined the channel [15:45] ekryski: Hey guys. Does anyone know how to require modules that are nested inside of other modules? [15:45] junkee[] has joined the channel [15:45] nphase has joined the channel [15:45] nphase has joined the channel [15:45] colinclark_ has joined the channel [15:46] ryanfitz has joined the channel [15:46] ekryski: The way that npm sets it up when modules are installed they are nested in the file structure. You must be able to avoid making them a flat file structure. [15:47] stephank has joined the channel [15:47] Skola has joined the channel [15:47] junkee[]: how do i convert a v8::Number to a double in c++? [15:47] qbert has joined the channel [15:47] dtan_: could you try this ekryski: require("module/nested_module")? [15:48] qbert: what does require() actually do ? [15:48] tbranyen: junkee[]: i'm thinking something with ToValue [15:48] devinus has joined the channel [15:48] dtan_: @qbert, from what i understand it pulls in dependencies to that are then available for you to use in your script [15:48] junkee[]: tbranyen: x->Value() is not working, no ToValue method. [15:49] ekryski: dtan: nope that doesn't work. [15:50] dtan_: hmm not sure, i just started learning node a couple of weeks ago so i'm not exactly the most "educated" about this heh [15:50] tbranyen: junkee[]: urgh i feel like i've done this before too [15:50] tbranyen: junkee[]: V8 EXPORT double Value () const [15:51] tbranyen: looks like it returns a double [15:51] ekryski: that's ok. I've only been playing with it for 6 months. I didn't think that would work but I thought it wouldn't hurt to try anyway [15:51] junkee[]: tbranyen: got it. NumerValue. But it is not in the cos though. [15:51] Yuffster_work has joined the channel [15:51] tbranyen: junkee[]: NumberValue? [15:51] cyberian2 has joined the channel [15:51] junkee[]: tbranyen: jup.. dont know why but it seems working [15:51] hij1nx has joined the channel [15:51] tbranyen: junkee[]: weird i'm trying to find that method/property in the docs [15:51] cyberian2: anyone know the best way of running node on port 80 in debian [15:51] jamey-uk: Does anyone know how to get the flash messages showing in templates using Express? [15:52] sreeix has joined the channel [15:52] tbranyen: cyberian2: authbind is useful [15:52] tbranyen: there are a bunch of guides on getting it working [15:52] ekryski: anyone else have a suggestion on how to require nested modules? [15:52] cyberian2: tbranyen: thanks... i'll check it out [15:52] kuya: anyone know when pubsub.io is being released? i want to see it! [15:52] tbranyen: cyberian2: once its set up you can do authbind node server.js [15:52] rendez: mscdex: hey [15:52] tuhoojabotti: Wohoo [15:52] tuhoojabotti: Finally at home! [15:52] tuhoojabotti: Time to get to real work (tm) [15:52] mscdex: rendez: yep? [15:53] dtan_: does Express recognize changes to js files or do you need to restart the server per each change? [15:53] cyberian2: tbranyen: i saw two prominent solutions....proxying with nginx, and start as root and change user [15:53] tbranyen: cyberian2: authbind is easier than both [15:53] tbranyen: imo [15:53] cyberian2: tbranyen: cool it sounds like it [15:53] cyberian2: tbranyen: from the name it sounds like the latter [15:54] rendez: mscdex: I got it working! https://gist.github.com/4f05f9f681eddd074d52 [15:54] rendez: basically is one-time stream write, with EOF [15:54] ekryski: dtan_: express usually recognizes it but if you make changes to app itself you need to restart the server. I usually just restart it anyway or test all my changes on another server and then move to my production one. [15:54] rendez: seems to trigger the right events [15:55] thalll has joined the channel [15:55] rendez: I now will have to find out how big of chunks can the FTP server receive at once [15:55] hojberg has joined the channel [15:55] dtan_: ekryski: that's what i figured [15:57] herbySk has joined the channel [15:57] mscdex: rendez: any size [15:57] rendez has left the channel [15:57] rendez has joined the channel [15:57] rendez: I see [15:57] tylerflint has left the channel [15:58] mscdex: rendez: the problem is having a very large buffer on the client side, that's why streams are preferrable [15:58] rendez has left the channel [15:58] yozgrahame has joined the channel [15:59] rendez has joined the channel [15:59] rendez: mscdex: right [15:59] rendez: but it will timeout when clock > 50000 ms [16:00] rendez: so that's the biggest you can PUT in the ftp server as a user [16:00] chunhao: is there something like sprintf in nodejs? [16:00] rendez: nodejs timeout is 50000ms isn't it? [16:00] rendez: chunhao, not natively [16:00] Cover|Work: chunhao: no, you have to concatenate with + [16:00] ekryski: Does anyone know how require nested modules without making the module directory structure use symlinks? [16:00] jamey-uk: dtan_: use node-dev (npm install node-dev) [16:00] _Sorensen has joined the channel [16:01] jamey-uk: Does anyone know how to get session flash messages working with Express? I just can't seem to detect/show them in the template :( [16:01] infynyxx has joined the channel [16:01] jamey-uk: dtan_: it will automatically restart the server when it detects changes to your app.js file, e.g. "node-dev app.js" [16:03] rendez has left the channel [16:04] mscdex: chunhao: there's always the sprintf from phpjs.org if nothing else [16:04] patrickarlt has joined the channel [16:04] chunhao: thanks [16:05] chunhao: I've been able to use console.log('%s', string_var) though [16:05] chunhao: is that just special to console.log? [16:05] devinus: php.js....wtf [16:05] jtsnow has joined the channel [16:05] caolanm has joined the channel [16:06] mscdex: chunhao: i believe so [16:06] mscdex: there's also this: https://github.com/280north/narwhal/blob/master/packages/narwhal-lib/lib/printf.js [16:06] igl: devinus: xD [16:06] sub_pop has joined the channel [16:07] ekryski: jamey-uk: Sorry I haven't gotten there yet. [16:07] jamey-uk: ekryski: with the flash messages? [16:07] ekryski: ya. I've wanted to try it out but haven't had time yet [16:07] qbert: devinus, huh ? [16:07] jamey-uk: ekryski: yeah, there's quite a bit of old or conflicting documentation on the web for it :/ [16:08] ekryski: jamey-uk: Ya I've started to notice that about a few of the modules out there. [16:08] jamey-uk: Yeah, most infurating… and then npm was down for yesterday and today, so happy it's back [16:09] ekryski: the best thing you can do to help the community though is when you figure it out do a quick readme writeup and submit it as a pull request on github. [16:09] CIA-104: node: 03Ryan Dahl 07master * rf6ce86a 10/ lib/net_uv.js : net_uv: Export Socket and Stream - http://bit.ly/iE141h [16:09] jerrysv has joined the channel [16:10] ekryski: I've been doing a lot of work with mongoose lately so I'm making notes on some of the syntax changes. [16:11] Skola: have there been any lately? [16:13] wavded has joined the channel [16:13] ekryski: I'm not sure lately… but a little while back I was having trouble with doing descending sorts because there are a bunch of different options you can use [16:14] mandric has joined the channel [16:14] postwait has joined the channel [16:14] postwait: hello. how do I turn of SSL_v2 when I setup an https server in node? [16:16] mscdex: postwait: you can only disable it at compile time with v0.4 head branch [16:17] postwait: dammit, the part of my patch wasn't integrated? [16:17] kbni has joined the channel [16:17] mscdex: postwait: huh? [16:17] kbni: Greetings [16:17] perezd has joined the channel [16:17] kbni: I know I asked this the other day, but I forgot, and also forgot to enable logging... can someone point me to a find-like library for node? [16:17] postwait: i had upstream pulls to fix all that -- looks like not all of it went into 0.4 [16:17] postwait: some only went into master. [16:17] TooTallNate has joined the channel [16:18] bogomips2_ has joined the channel [16:18] mscdex: postwait: afaik 0.4 and master got the same patch and that is a compile time option to disable ssl v2 [16:18] postwait: But there are about 30 other flag options too [16:18] dtan_: jamey-uk: cool, thanks for the tip [16:19] postwait: And the constants patch exposing was accepted, I think. [16:19] postwait: no reason that can't be done at context creation time. [16:19] wavded has left the channel [16:21] bogomips2_: hi to everyone. i would replace my php webscoket server with a solution nodejs based. i installed latest version and npm. with npm i have installed npm install websocket-server@latest. When i try to run basic ws server example i get a path error http://pastebin.com/XiRcFPM4 [16:21] bogomips2_: someone can help me ? [16:24] aheckmann has joined the channel [16:24] tjholowaychuk has joined the channel [16:25] srid has joined the channel [16:26] amerine has joined the channel [16:27] qbert: bogomips2_, what does your require line look like, and where did you i sntall websocket-server ? [16:27] sirganya has joined the channel [16:27] Bwen: anyone knows why I never get my "Emit" events but I get the console logs in this example http://pastie.org/2082394 ? [16:28] pyrony has joined the channel [16:28] lackac has joined the channel [16:29] qbert: Bwen, I had the same issue - I fixed by calling client.newClient() instead [16:29] qbert: of using emitter [16:29] Bwen: so you didnt find why? :( [16:29] jscheel: wow, new site hasn't even been up for 24 hours and it's already been the subject of a dos attack and other attempts to get into unsecured pages (that don't exist since I shut down plesk and am just running node) [16:30] xerox: is it OK-practice to require('..') inside functions, instead of at the top of a module? [16:30] gustavowt: i needo to execute system calls on node server script, someone can indicate a tool? [16:31] xerox: gustavowt: system calls that are not already covered by node? [16:31] Bwen: qbert: I think I know why... 2mins [16:31] Cover|Work: xerox: should be ok, as long as you don't keep references to it alive outside scope [16:31] cyberian2: tbranyen: I've installed authbind and created the file /etc/authbind/byport/80 and chmodded it to have executable permission by my user but it still gives me ENOENT [16:31] Cover|Work: it depends on what's in require [16:32] gustavowt: xerox, idont konw, how i use this? [16:32] qbert: Bwen, good please share [16:32] bogomips2_: qbert, i used npm install websocket-server@latest i don't know the real path .. i think /usr/local/... [16:32] xerox: Cover|Work: hmm ok [16:32] adrianmg has joined the channel [16:32] prettyrobots has joined the channel [16:33] qbert: bogomips2_, the NPM installs dependencies at the project level so I would check where it actually is [16:33] qbert: the new npm rather [16:33] qbert: what version are you using ? [16:33] Cover|Work: for example, express does a require() inside the functions to load the template engines [16:34] broofa has joined the channel [16:34] Cover|Work: but it also caches it so it doesn't need to re-require it [16:35] DTrejo has joined the channel [16:35] xerox: Cover|Work: sounds good [16:36] sub_pop has joined the channel [16:36] tuhoojabotti: Doesn't require have internal cache? [16:36] dtan_: does express have a mongodb connection by default or is that something that needs to be built after installation? [16:37] bogomips2_: node v0.4.8, npm 1.0.13 [16:37] Cover|Work: tuhoojabotti: it does, but i think it runs the required module each time and returns the result [16:37] Bwen: qbert: I was testing... its not what I though.. hmmm.. this is bugging me :@ [16:37] tuhoojabotti: Dunno [16:37] Cover|Work: a = require("a"); b = require("b") should become two separate objects [16:37] bergie has joined the channel [16:37] Cover|Work: if the module needs that [16:37] topaxi has joined the channel [16:37] qbert: bogomips, yeah that installs at the project level unless you specify --global , I'd make sure that it gets installed at your project root dir [16:38] qbert: dtan_, no you need the native driver, mongoose , mongolian, theres a lot of wrappers [16:38] Cover|Work: but in the case of the template engines like jade, etc. they work fine as a singleton, so there is no need to instantiate a new object and take up more memory [16:38] DTrejo has joined the channel [16:38] matyr_ has joined the channel [16:38] dtan_: qbert: which would you recommend? [16:38] qbert: Cover|Work, tuhoojabotti , Id be interested to no if require does any caching, please share if you find out :) [16:39] tuhoojabotti: qbert: Well I read the api docs and it says it does [16:39] qbert: dtan_, I use mongolian because its the closes to the mongo shell, but if you need ORM stuff you might want Mongoose, as far as I know its the most mature [16:39] tuhoojabotti: That's all I know. [16:39] Cover|Work: i know for a fact that it does cache [16:39] qbert: tuhoojabotti, lol ok thanks [16:39] qbert: <-- needs to rtfm [16:40] ekryski: dtan_: I'm with qbert on that one. There are some syntactical quirks in mongoose that don't line up with the mongo shell syntax but it is the most mature [16:40] Cover|Work: if you require a file, and while that process is running, change the file and re-require it to another object, it won't load the changed file, and simply re-require the old object [16:41] dtan_: ekryski, qbert: so you guys are saying that mongolian uses similar syntax to the default mongodb shell and that is why you guys mainly like it over mongoose? [16:42] willwhite has joined the channel [16:43] ekryski: dtan_: I personally use mongoose (and that's what I would recommend) because it is the most mature. I haven't really used mongolian but I know that some of mongoose's syntax is slightly different. For the most part it follows the mongo shell conventions. [16:43] Tidwell_: I'm getting an "Unterminated String Constant" error in ie8 when using socket.io - anyone experienced this before? [16:44] dtan_: gotcha [16:44] Cover|Work: Tidwell_: usually get that error if you have a newline in a string [16:44] gustavowt: someone already used child_proccess [16:44] gustavowt: ? [16:45] Cover|Work: String constants (when evaluated from source) cannot have literal newlines [16:45] Cover|Work: they must be escaped newline characters [16:45] erictj has joined the channel [16:45] Cover|Work: or escaped at the end of the line with \ [16:45] dingomanatee has joined the channel [16:46] bogomips: qbert, i do npm install --global websocket-server@latest and i get websocket-server@1.4.03 /usr/local/lib/node_modules/websocket-server [16:46] bogomips: i must write full absolute path inside require ? [16:46] js[fn] has joined the channel [16:47] Cover|Work: wow, crazy ass font [16:48] Cover|Work: makes me like Comic Sans [16:48] bogomips: qbert, ok with full path it works fine .. thanks [16:48] k1ttty has joined the channel [16:48] Cover|Work: oops wrong window [16:48] Cover|Work: bogomips: not necessarily, it must begin with a '.' to interpret it as a relative path [16:49] tuhoojabotti: You guys already using document.webkitHidden? ;) [16:49] tuhoojabotti: I sure am [16:49] tuhoojabotti: No more polling to server when tab is in the bg :P [16:49] matyr has joined the channel [16:49] steffkes has joined the channel [16:50] cyberian2: tbranyen: nevermind. i had to reconnect to SSH after adding my user to a group for it to take effect [16:50] Cover|Work: tuhoojabotti: is there an ie/ff equivalent? [16:50] tuhoojabotti: Cover|Work: Don't think so. [16:50] rfay has joined the channel [16:50] samsonjs has joined the channel [16:51] tuhoojabotti: But the site should work fine on those browsers too [16:51] tuhoojabotti: ofc useless polling [16:51] tuhoojabotti: It's a new feature on Chrome 13 [16:51] tuhoojabotti: veta [16:51] tuhoojabotti: beta* [16:51] Cover|Work: oic [16:51] sirganya: I'm having some trouble with base64 :( I'm trying to proxy an image from couchdb thru node. The image is stored in base64 in couchdb and if I log the response data to the console and decode it, it looks ok. But the browser can't see it. The mime-type is correct and the length is correct and the images appear if I connect directly to couchdb but I'm a but lost as to how I'm garbling it, any help would be appreciated. [16:51] Cover|Work: any idea if it's in safari? [16:52] Cover|Work: sirganya: what are you converting base64 to? [16:52] xerox: tuhoojabotti: cool [16:52] tuhoojabotti: xerox: Yes indeed. :P [16:53] tuhoojabotti: xerox: I can change the slogan on my site when the tab is reopened. ;D [16:53] Cover|Work: if you're converting it to a string to be output, then utf-8 will add some extra characters for invalid values [16:53] xerox: hehe [16:53] Cover|Work: it needs to stay as a buffer [16:53] boehm has joined the channel [16:53] xerox: tuhoojabotti: does it count new windows of the browser, where each window has only a tab, and your site is on a window that has not the focus? [16:53] tuhoojabotti: wat [16:54] sirganya: Cover|Work: nothing, I think, I'm just trying to pass the data thru directly. [16:54] xerox: if a browser has two windows, only one window can be focused at a time [16:54] tuhoojabotti: xerox: alindeman [16:54] tuhoojabotti: 19:54 < sirganya> Cover|Work: nothing, I think, I'm just trying to pass the da [16:54] tuhoojabotti: huh [16:54] tuhoojabotti: failpaste [16:54] xerox: hehe [16:54] tuhoojabotti: xerox: http://code.google.com/intl/fi/chrome/whitepapers/pagevisibility.html [16:54] xerox: does it count the tab as hidden if it is just unfocused [16:54] tuhoojabotti: there [16:54] qbert: tuhoojabotti, cool find [16:54] xerox: ah here it is [16:55] tuhoojabotti: qbert: Thanks to twitter. ;D [16:55] mjr_ has joined the channel [16:55] xerox: whose twitter [16:56] tuhoojabotti: chromiumdev [16:56] tuhoojabotti: I think [16:57] kriskowal has joined the channel [16:57] josephholsten has joined the channel [16:59] tmpvar has joined the channel [16:59] duncanbeevers has joined the channel [16:59] tmpvar: hola [17:00] mikeal has joined the channel [17:00] sirganya: Cover|Work: so I should stream it to the client? [17:00] josephholsten has joined the channel [17:00] Cover|Work: if at any time it becomes used as a string, it will get corrupted [17:01] Cover|Work: if it's a raw buffer, then stream that to the client directly, yes [17:01] sirganya: right so have a data += chunk thing goin on, thanks for the help [17:01] sirganya: that's my mistake [17:01] shinuza has joined the channel [17:03] sioked has joined the channel [17:05] Remoun has joined the channel [17:05] matyr has joined the channel [17:07] Country has joined the channel [17:08] rudebwoy has joined the channel [17:08] samsonjs has joined the channel [17:08] amerine has joined the channel [17:08] aheckmann has joined the channel [17:08] caolanm has joined the channel [17:08] _Sorensen has joined the channel [17:08] philtor has joined the channel [17:08] dtan_ has joined the channel [17:08] Destos has joined the channel [17:08] JJMalina has joined the channel [17:08] hugdubois has joined the channel [17:08] teemow has joined the channel [17:08] FireFly has joined the channel [17:08] pradeepto has joined the channel [17:08] jhurliman has joined the channel [17:08] konobi has joined the channel [17:08] tyler-iphone has joined the channel [17:08] levi501d has joined the channel [17:08] mlangenberg has joined the channel [17:08] chrisdickinson has joined the channel [17:08] ysynopsis has joined the channel [17:08] [tm] has joined the channel [17:08] aheckmann has joined the channel [17:09] hugdubois_ has joined the channel [17:09] arpegius has joined the channel [17:09] matyr has joined the channel [17:09] abraham has joined the channel [17:10] AndyDawson has joined the channel [17:11] edjafarov_ has joined the channel [17:14] nightshift has joined the channel [17:14] BillyBreen has joined the channel [17:16] rudebwoy has joined the channel [17:16] samsonjs has joined the channel [17:16] amerine has joined the channel [17:16] caolanm has joined the channel [17:16] _Sorensen has joined the channel [17:16] philtor has joined the channel [17:16] dtan_ has joined the channel [17:16] Destos has joined the channel [17:16] JJMalina has joined the channel [17:16] teemow has joined the channel [17:16] pradeepto has joined the channel [17:16] jhurliman has joined the channel [17:16] konobi has joined the channel [17:16] tyler-iphone has joined the channel [17:16] levi501d has joined the channel [17:16] mlangenberg has joined the channel [17:16] chrisdickinson has joined the channel [17:16] ysynopsis has joined the channel [17:16] [tm] has joined the channel [17:16] bbttxu has joined the channel [17:16] AndyDawson has joined the channel [17:17] salamon21 has joined the channel [17:17] salamon21 has left the channel [17:17] lukegalea has joined the channel [17:18] ph^ has joined the channel [17:18] salamon21 has joined the channel [17:19] AntelopeSalad has joined the channel [17:20] jamey-uk has joined the channel [17:20] Destos has joined the channel [17:21] harth has joined the channel [17:21] jakeg has joined the channel [17:24] jvduf has joined the channel [17:24] pyrony has joined the channel [17:25] brianmario has joined the channel [17:26] jameson has joined the channel [17:28] FireFly has joined the channel [17:28] Cleer has joined the channel [17:29] wookiehang0ver has joined the channel [17:29] whoops has joined the channel [17:30] Swizec has joined the channel [17:32] martyziff has joined the channel [17:33] wookiehangover has joined the channel [17:34] CrabDude has joined the channel [17:35] willwhite has joined the channel [17:36] swistak has joined the channel [17:37] bradleymeck__ has joined the channel [17:37] tiagoa has joined the channel [17:38] mAritz has joined the channel [17:39] `3rdEden has joined the channel [17:40] Nothus has joined the channel [17:41] Determinist: erm [17:42] Determinist: any way to check if a process is running in node? i have the PID [17:42] tjholowaychuk: null signal [17:42] tjholowaychuk: 0 [17:43] tjholowaychuk: it's still busted in ChildProcess#kill() though [17:43] aliem has joined the channel [17:43] stephank has joined the channel [17:43] xerox: ps | grep pid :x [17:44] tjholowaychuk: in node [17:45] wadey has joined the channel [17:45] aliem has joined the channel [17:46] Nothus: any way to catch all connection errors? it looks like not all errors are using .emit() [17:46] Bonuspunkt: ClientResponse does not support pipe? D: http://nodejs.org/docs/latest/api/http.html#http.ClientResponse [17:46] addisonj: anyone deployed anything interesting to cloud foundry? [17:47] gkmngrgn has joined the channel [17:47] aperiodic has joined the channel [17:47] prettyrobots has joined the channel [17:48] squeese: does npm delete excisting folder if excists when: npm install module ? [17:49] kbni: for different versions? I believe not [17:49] kbni: it should be a symlink [17:49] maushu has joined the channel [17:49] dtan_ has joined the channel [17:50] p_nitsch_ has joined the channel [17:50] squeese: I had my own folder with same name as a module I installed, my shit's all gone >< [17:51] squeese: oh wow, gut punch galore [17:51] Nexxy has joined the channel [17:51] Nexxy has joined the channel [17:53] squeese: yai, dropbox has history - ok, Im buying an dropbox account :) [17:54] briznad1 has joined the channel [17:54] dtan_: i'm using express, but how do you offload stuff away from the main app.js file? [17:54] CIA-104: node: 03Ryan Dahl 07master * r95b409c 10/ (291 files in 24 dirs): [17:54] CIA-104: node: Upgrade libuv. [17:54] CIA-104: node: Also remove c-ares since it's included in libuv now. [17:54] CIA-104: node: libuv version b7b7df090ca285e53eb51bf518c4e5064876596 - http://bit.ly/lJ6ULx [17:54] dtan_: in terms of the app.get(url, cb) method [17:54] replore_ has joined the channel [17:55] dtan_: i would imagine that you wouldn't want all your app.get's to be in that one app.js file, right? [17:56] tjholowaychuk: dtan_ lots of different techniques you can use [17:56] tjholowaychuk: check out some of the examples [17:56] qbert: dtan_, if you dont specify a path to get() it will just read from the filesystem, so you dont have to specify a path for everything [17:56] tjholowaychuk: "route-separation", "mvc", etc [17:56] Murvin has joined the channel [17:59] bartt has joined the channel [17:59] dtan_: thanks, tjholowaychuk, i installed it with npm so i didn't see the examples folder and dind't really see the "fork me on github" link since i was perusing the docs [18:00] Fodi69 has joined the channel [18:00] Cover|Work: ACTION spoons express [18:00] Cover|Work: cause spooning leads to forking [18:01] jamey-uk: does anyone know how to limit the file upload size using connect-form or node-formidable? [18:02] Fodi69: hi, socket.io has a new version (v0.7) on its master branch, and it has two examples, had anyone tried these examples? are they working? [18:04] Skola: this might be a stupid question, but there must be an "alias" or better way of removing a substring besides string.replace("something", "") ? [18:05] confoocious has joined the channel [18:05] context: anyone here running fbsd? whats the config file pkg_add / ports looks at for packages/updating etc [18:05] Fodi69: Skola: you can write a regexp :D [18:06] Skola: ja but for basic substring removal it's a bit overkill [18:07] Fodi69: Skola: if you want, you can write a function for yourself [18:07] dgathright has joined the channel [18:07] Skola: sure [18:07] Skola: rmStr = (string, substring) -> string.replace(substring, '') [18:07] Fodi69: yeah. [18:07] Fodi69: thats the answer [18:07] jamey-uk: how do I cancel or abort a file upload? [18:07] Skola: but it's so basic [18:07] Skola: feels a bit silly [18:07] Cover|Work: is .replace really that difficult to use? [18:08] Skola: no but why REPLACE something when one wants to REMOVE something [18:08] uchuff has joined the channel [18:08] Skola: it's just not elegant [18:08] Skola: I don't mind that much, but just surprised [18:08] Fodi69: Skola: you name your function remove, and atach it to the String object. [18:08] Cover|Work: it's multi-functional [18:08] Cover|Work: just like splice() is used to remove stuff, but also insert too [18:09] Skola: ja it's just bad design [18:09] Skola: replacing is not the same as removing [18:09] Skola: simple as that :p [18:09] bnoordhuis has joined the channel [18:09] Cover|Work: if the methodology is similar, then it's more efficient and DRYer to put them in the same function [18:11] Skola: the millions of string.replace("lulz", "") that have been typed are just a waste [18:11] Fodi69: Skola: you can always write your own function for that and you can name it anything [18:11] Skola: it's stupid [18:11] Skola: yeah I will try to get this into underscore.string [18:11] reid has joined the channel [18:11] etaty has joined the channel [18:11] tjholowaychuk: it's elegant to not provide a shit ton of built-ins [18:11] tjholowaychuk: just sucks that js is so fucked [18:12] tjholowaychuk: that we cant really add more [18:12] tjholowaychuk: in a nice way [18:12] tjholowaychuk: because people freak [18:12] Fodi69: agree [18:12] Skola: well [18:13] Skola: string.replace("lulz") [18:13] Skola: should then maybe do this [18:13] eazyigz has joined the channel [18:14] Fodi69: I think all two parameters are required [18:14] Skola: yeah [18:14] Fodi69: extend String with your own logic [18:14] chrisdickinson: i'd love to see some refinement libraries [18:14] Fodi69: you are free to do that [18:15] jakeg: Fodi69: socket.io 0.7 chat example was working for me the other day. don't do npm install socket.io though as that installs 0.6.* as 0.7 isn't out yet [18:15] Cover|Work: ACTION submits String.prototype.remove to harmony [18:15] jakeg: though apparently it'll be out by the end of the weekend :) [18:15] Skola: maybe it doesn't have to be in JS itsself [18:16] Skola: but ja, it should be made straightforward [18:16] eazyigz: Hello, what mechanism or library can I use in order to do sync function chaining inside a for loop? I am calling a function within a for loop - which itself has several for loops. [18:16] Skola: I'll ask the underscore.string guys :[] [18:16] bitwise_ has joined the channel [18:16] Cover|Work: sync function chaining? [18:17] AvianFlu has joined the channel [18:17] eazyigz: Cover|Work: i guess sync for loops (that call functions inside) [18:17] matyr_ has joined the channel [18:17] Skola: chrisdickinson yeah me too [18:17] Skola: underscore makes me very happy [18:18] AAA_awright has joined the channel [18:18] tjholowaychuk: ew [18:18] Fodi69: eazyigz: you can add a callback for each function, than when it's done, it can call that callback, than in that callback you can count, how many times it was called [18:19] PeterPeterPeter has joined the channel [18:19] bitwise_ has joined the channel [18:19] Skola: you don't like _.js tj? [18:19] willwhite has joined the channel [18:19] Skola: or 'ew'ing at something else? [18:19] eazyigz: Fodi69: thanks [18:19] tjholowaychuk: that stuff is rarely useful to me [18:20] Skola: made my transition from Haskell a bit smoother [18:20] tjholowaychuk: stuff like flattening arrays, stripping nulls etc is usually just a flaw in how you build thw array etc [18:20] tjholowaychuk: so kinda lame [18:20] dshaw_ has joined the channel [18:20] tjholowaychuk: super trivial stuff to write regardless [18:20] tjholowaychuk: i wouldnt use the whole lib [18:20] lukegalea has joined the channel [18:21] Cover|Work: agreed [18:21] Skola: I tend to use only a couple of them [18:21] Skola: (functions) [18:21] chrisdickinson: tjholowaychuk: it's a lot more helpful in-browser than out. [18:21] dremoor has left the channel [18:21] Cover|Work: i like the concepts, but using the lib, i'd rather have a simple 'utils' module of my own that does the same [18:21] chrisdickinson: (i was initially allergic to it, myself, but it's a nice wrapper around extending builtin prototypes) [18:22] ryan0x2 has joined the channel [18:22] chrisdickinson: e.g., _([1,2,3]).forEach, _(fn).bind, etc. though i'm leaning towards es5shim now. [18:22] tjholowaychuk: yeah that shit's ugly [18:23] ryan0x2 has joined the channel [18:23] langworthy has joined the channel [18:23] Cover|Work: for ie compatibility, yeah, extending prototypes much cleaner [18:23] fly-away has joined the channel [18:23] chrisdickinson: tjholowaychuk: yeah, but there's not a lot of better ways to get that functionality in IE. in node, i'm totally with you on that one, but if it's gotta work IE7+... [18:24] sharkbone has joined the channel [18:25] niftylettuce has joined the channel [18:26] unlink has joined the channel [18:26] unlink has joined the channel [18:27] blup has joined the channel [18:27] pt_tr has joined the channel [18:28] jakeg has joined the channel [18:31] Nican has joined the channel [18:33] sioked has joined the channel [18:35] AvianFlu has joined the channel [18:35] tiagoa_ has joined the channel [18:35] ezmobius has joined the channel [18:36] usepidgin has joined the channel [18:36] newy_ has joined the channel [18:36] usepidgin: so I've been hearing a lot about node.js, and whoa, 678 people here. My question is, can node.js be used as an MVC framework? I'm looking for a higher level framework than the I/O one that Wikipedia says node.js provides. [18:37] jakeg: usepidgin: yes [18:37] tjholowaychuk: usepidgin it can be used for whatever you want, if you can find the module or build it yourself [18:38] dtan_: usepidgin: tj just pointed me to this: https://github.com/visionmedia/express/tree/master/examples/mvc [18:38] tilgovi has joined the channel [18:38] tilgovi has joined the channel [18:40] ager has joined the channel [18:40] binaryjohn has joined the channel [18:41] niftylettuce has joined the channel [18:41] dtan_: in express, how can you pass a specific port and path for the server to listen to? [18:41] darshanshankar has joined the channel [18:41] tjholowaychuk: dtan_ takes the same arguments as node's http.Server#listen() [18:41] postwait has joined the channel [18:41] usepidgin: jakeg: thanks, looking... [18:41] dtan_: cool thanks tj [18:41] usepidgin: BTW, Wikipedia wants to delete the NPM article: http://en.wikipedia.org/wiki/Node_Package_Manager [18:42] dtan_: good catch usepidgin, it's a pain in the ass to get a page back onto wikipedia once they ahve deleted it [18:42] systemfault: Well... If you look at the content... [18:43] martyziff has joined the channel [18:43] postwait_ has joined the channel [18:43] jesusabdullah: Is it weird that I don't rocked the linkedins? [18:43] jesusabdullah: Are they worthwhile? [18:44] tbranyen: i have never used linked in after creating my account [18:44] tjholowaychuk: i removed mine [18:44] tjholowaychuk: when people started adding me [18:44] tjholowaychuk: and i remembered i had an account [18:44] ekryski: I rarely use it too. [18:45] systemfault: Hmm, so I'm not alone to think it's useless.. [18:45] niftylettuce has joined the channel [18:45] ekryski: hence why their stock price plummeted so badly [18:45] coreb has joined the channel [18:45] drudge: only have a linkedin if you want numerous messages form recruiters [18:45] dtan_: it's good if you're freelancing ina big city though [18:45] Skola: it's useful depending on what branch you're in [18:46] drudge: from* [18:46] jesusabdullah: I see. [18:46] jesusabdullah: I suspected as much! [18:46] jesusabdullah: I might freelance some, but NOT YET [18:47] saurabhverma1 has joined the channel [18:47] wookiehang0ver has joined the channel [18:48] Fodi69 has left the channel [18:48] wereHamster has joined the channel [18:48] eldar has joined the channel [18:48] AvianFlu has joined the channel [18:49] aliemmo has joined the channel [18:49] kersny has joined the channel [18:50] swaj: are there any good node.js web frameworks that don't pollute the global namespace? [18:50] Cover|Work: swaj: which ones do? [18:51] Aco- has joined the channel [18:51] jakeg: swaj: umm, blah = require('blah'); saves you from global namespace conflicts, right? [18:51] Nomon has joined the channel [18:52] Cover|Work: not if module 'blah' has a varWithoutVar= in the source [18:52] OSInet has joined the channel [18:52] optixx has joined the channel [18:52] indutny has joined the channel [18:52] tjholowaychuk: he could be referring to express from like a year and a half ago [18:52] tjholowaychuk: in some article or something [18:52] swaj: I was looking at this: http://ccnmtl.columbia.edu/compiled/reviewed/nodejs_frameworks_review.html [18:52] KingJamool has joined the channel [18:52] swaj: but it's dated [18:52] devinus: when is node going to start using Crankshaft? [18:53] swaj: so I was looking for something a little more up to date [18:53] jakeg: Cover|Work: true [18:53] tjholowaychuk: swaj that's not really relevant anymore [18:53] tjholowaychuk: swaj at all [18:53] tjholowaychuk: haha [18:53] tjholowaychuk: and it was wrong even for the time [18:53] Cover|Work: node --crankshaft [18:53] briznad has joined the channel [18:53] dtan_: tjholowaychuk: when i start an express server, is this how i would pass in the port and host info: express.createServer({ port: port, hostname: host }) [18:53] tjholowaychuk: dtan_ nope [18:54] tjholowaychuk: dtan_ app.listen(port, host) [18:54] zorzar has joined the channel [18:54] dtan_: ah [18:54] tjholowaychuk: like all the examples show [18:54] jakeg: var app = express.createServer(); [18:54] jakeg: app.listen(1337); [18:54] drudge: express has so many examples [18:54] dtan_: oops hah [18:55] sioked has joined the channel [18:55] dtan_: just started node shit a couple weeks ago so getting used to all this [18:55] devinus: it looks like Node's v8 dep is starting to fall behind http://code.google.com/p/v8/source/browse/branches/bleeding_edge/ChangeLog?r=7951 [18:55] CodyGray has joined the channel [18:55] CodyGray has left the channel [18:56] ekryski: dtan_ look at the express website. http://expressjs.com/guide.html [18:56] [1]qbert has joined the channel [18:56] c4milo has joined the channel [18:56] ekryski: it's probably the best reference [18:56] Cover|Work: node is on 3.1.8 i think, stable i think is 3.2.10, latest release is 3.3.x something [18:56] dtan_: ekryski - i've been going through it....slowly [18:56] OSInet has joined the channel [18:57] swaj: I'm watching a video of Guillermo having some demo bugs [18:57] ekryski: ya. It can be a bit confusing. Sometimes I still get a little confused with middleware routing [18:57] devinus: Cover|Work: yeah, stable uses crankshaft by default [18:57] devinus: :( [18:57] Cover|Work: ooh [18:57] dtan_: i'm not even really familiar with the middleware stufff [18:58] Cover|Work: well compile it with bleeding-edge [18:58] Cover|Work: see how that works out for you [18:58] devinus: Cover|Work: doubt it will work! [18:58] devinus: i'd expect a ton of things to break [18:58] jakeg: dtan_: used npm yet? [18:58] dtan_: jakeg ya [18:58] bitwise_: anyone know why im getting a 404 when i curl to my server? http://pastie.org/2083973 [18:58] devinus: which is prob why ryah / joyent hasn't done it in awhile [18:58] jakeg: you'd have had a hell of a time trying that earlier - the servers were all borked [18:59] dtan_: ya i heard they were down or something yesterday or the day beofre [18:59] insin has joined the channel [18:59] bitwise_: I see the logger show the request come through but its returning 404 even though the path is made in the .get call [18:59] roidrage has joined the channel [19:00] buhrmi1 has joined the channel [19:00] mattly_ has joined the channel [19:01] jbpros_ has joined the channel [19:01] Skola: are there any comprehensive documents/guides on node TDD workflow? [19:01] jacobolus has joined the channel [19:01] Aco- has joined the channel [19:01] optixx has joined the channel [19:01] tjholowaychuk has joined the channel [19:02] SethX has joined the channel [19:02] spetrea has joined the channel [19:02] zorzar has joined the channel [19:02] raidfive has joined the channel [19:03] jakeg: bitwise_: what URL are you trying to get? i ran your code and got a JSON error thing. just console.log(response) instead [19:03] asdf22_ has joined the channel [19:04] usepidgin: hm. even with MVC frameworks, development looks a bit low-level for what I need. Is there a web development framework that already has things like "display this toaster notification" or "fetch the input from this nice login form into the database", with prebuilt modular login forms and notifications etc., so I won't have to rewrite all the HTML and CSS for this often-used modules? [19:04] Cover|Work: a framework that outputs the css? [19:04] jakeg: usepidgin: not that i know of. u want like PHP's drupal, right? [19:05] Cover|Work: i mean that has html / css built-in? [19:05] devinus: usepidgin: if Express isn't good enough for you, i'd recommend checking out Ruby on Rails or Django [19:05] Skola: there is a CMS [19:05] Skola: don't know what it's called [19:05] Cover|Work: calipso [19:05] Skola: ya that [19:05] Cover|Work: it needs mongo [19:05] ager has left the channel [19:05] Skola: ah right, which is an objection? (I missed it) [19:05] usepidgin: Cover|Work: yes, something modular, say that lets me easily manipulate ExtJS-like objects [19:06] dtan_: has anyone used calipso? [19:06] bitwise_: jakeg: thanks i dont know why but its working now. [19:06] Cover|Work: just if you like and use mongo already [19:06] bbttxu has joined the channel [19:06] usepidgin: jakeg: basically, I want to avoid reinventing the basic layout wheel [19:06] jakeg: bitwise_: remember when you edit a node app, you ned to restart it to see the changes in the browser. rather than "node app.js" run "node-dev app.js" to get it to auto-restart [19:07] Cover|Work: i mean most cms' have a single database type deal [19:07] jakeg: and install node-dev with "npm install -g node-dev" [19:07] bitwise_: ohh cool [19:07] bitwise_: good tip [19:07] Cover|Work: but if they're written on php, mysql is pretty much the go-to db [19:07] usepidgin: this SO question is about auto-restarting node.js: http://stackoverflow.com/questions/5195447/how-does-a-node-js-mvc-work/5200177#5200177 [19:07] dtan_: ya i just installed node-dev today [19:07] dtan_: works great [19:07] sudhirjonathan has joined the channel [19:07] Cover|Work: so less of an issue [19:07] jakeg: others may be able to suggest better alternatives to node-dev. i think there's run.js and others as well, though node-dev works for me [19:07] jesusabdullah: What's node-dev? [19:08] Skola: it's like nodemono [19:08] Skola: nodemon* [19:08] jesusabdullah: huh! [19:08] erictj has left the channel [19:08] Skola: restarts your app when it detects changes to your code [19:08] usepidgin: MySQL is so inferior to PostgreSQL, but everyone just uses it without looking at things like http://www.wikivs.com/wiki/MySQL_vs_PostgreSQL [19:08] jakeg: restarts node when you edit a source file. so ctrl+s your source, f5 in browser, as per eg php [19:08] ghost has joined the channel [19:08] tjholowaychuk: can anyone ping registry.npmjs.org [19:09] tjholowaychuk: with success? [19:09] DTrejo_ has joined the channel [19:09] tjholowaychuk: even in SFO it's slow as fuck for me [19:09] usepidgin has left the channel [19:09] bitwise_: timeout tjholowaychuk [19:09] Skola: 5 packets transmitted, 0 packets received, 100.0% packet loss [19:09] tjholowaychuk: k, same for me [19:09] addisonj: ACTION reports the same [19:09] davve: +1 [19:09] jesusabdullah: Yeah, not doing so great here in Bremerton either [19:09] jakeg: same here [19:09] tuhoojabotti: :D [19:09] bitwise_: guess thats why node-dev isnt installing [19:09] johnnywengluu has joined the channel [19:10] bitwise_: ;) [19:10] tjholowaychuk: it's odd because im sitting beside aaron, his traceroute identical to mine, timing out [19:10] jakeg: lol [19:10] tjholowaychuk: but npm is working ok for him [19:10] tjholowaychuk: slow but not as slow [19:10] jakeg: really need some npm mirrors. are there any? [19:10] tjholowaychuk: mine is like 20x slower [19:10] jakeg: and npm needs to better tell you what's going on. does it have verbose output? [19:10] Cover|Work: npm --verbose [19:10] dtan_: npm is working for me fine [19:11] brfelipe has joined the channel [19:11] Skola: yes worked with it all day [19:11] tjholowaychuk: https://gist.github.com/1032069 [19:11] tjholowaychuk: SO slow [19:11] Skola: npm info stylus version 0.19s user 0.05s system 39% cpu 0.608 total [19:12] AvianFlu has joined the channel [19:12] tjholowaychuk: wtFFfff [19:12] tjholowaychuk: traceroute: https://gist.github.com/1032067 [19:12] tjholowaychuk: does not look happy [19:13] drudge: i blame canada [19:13] tjholowaychuk: im not in canada [19:13] tjholowaychuk: haha [19:13] drudge: i still blame canada [19:13] tjholowaychuk: i blamed canada last time but im in sfo right now [19:13] tjholowaychuk: k me too [19:13] dtan_: hah [19:13] KingJamool has joined the channel [19:13] mikey_p: works fine here (in portland) although ping is failing [19:14] drudge: it's lightning fast for me in NY [19:14] leahculver has joined the channel [19:14] leahculver has joined the channel [19:14] systemfault: Heh.. at least this time, you have a reason to blame canada ;) [19:15] mapleman has joined the channel [19:16] bitwise_: my 404 is back. does express do that sometimes? [19:16] tjholowaychuk: only if you dont have route or middleware responding to the request [19:16] sh1mmer: tjholowaychuk: how long are you around? [19:16] Skola: no bitwise_, it's not supposed to [19:16] tjholowaychuk: sh1mmer i leave tomorrow morning [19:17] bitwise_: no middleware.. just a simple .get mapping [19:17] sh1mmer: tjholowaychuk: coffee, lunch, drinks, etc? [19:17] mikeal has joined the channel [19:17] tjholowaychuk: sh1mmer you're at joyent now right? [19:17] tjholowaychuk: we were trying to get a hold of ryan [19:17] jakeg: bitwise_: what does the console say? is node still running without errors? [19:17] sh1mmer: tjholowaychuk: for the last 6mo [19:17] tjholowaychuk: but i guess he's not there :D [19:17] asdf22 has joined the channel [19:17] sh1mmer: tjholowaychuk: he's in Europe [19:17] sirdancealot has joined the channel [19:18] bitwise_: jakeg: "POST /post-logger HTTP/1.1" 404 - [19:18] tjholowaychuk: aaron and nathan haven't seen the office there so we were going to drop by some time today [19:18] tjholowaychuk: bitwise_ this might help a bit https://github.com/visionmedia/express-trace [19:18] tjholowaychuk: you can curl that url, and it will show you what middleware/routes it goes through [19:19] tjholowaychuk: or at very worst you can use node's debugger to step through [19:20] rfay has joined the channel [19:20] bitwise_: ok, thx. when i node debug app.js, I type run but it stops at the first line of my app. is that expected? step commands seem to go deeper into node's internal workings [19:21] tjholowaychuk: you can use the debugger keyword [19:21] tjholowaychuk: and continue to that point [19:21] tjholowaychuk: not sure if node's can set break points while running, haven't tried [19:21] tjholowaychuk: im sure it can [19:21] bitwise_: i didnt set any breakpoints though and its still stopping in some arbitrary lines [19:22] tbranyen: tjholowaychuk: was messing with using the lastIndex property of the regex object and doesn't seem to be any way to use that in a parser, since all regexes need to be global and cannot use ^ [19:22] dtan_: does nodejs support all the console methods you can use in the browser? [19:22] tjholowaychuk: tbranyen yeah i came across that quickly [19:22] tjholowaychuk: and realized itwas not at all what i wanted [19:22] jakeg: dtan_: http://nodejs.org/docs/latest/api/all.html [19:22] tjholowaychuk: dtan_ most [19:22] tbranyen: tjholowaychuk: well i mean if it could work with ^ then it would be perfect [19:23] tjholowaychuk: yeah exactly [19:23] jakeg: http://nodejs.org/docs/latest/api/all.html#console [19:23] tjholowaychuk: we need that offst [19:23] tjholowaychuk: offset* [19:23] tbranyen: yep [19:23] dtan_: cool thanks guys [19:23] tbranyen: urgh [19:23] tbranyen: so much for that [19:23] tjholowaychuk: cant be hard to get that in the spec [19:23] tjholowaychuk: not like it's a breaking change [19:23] tjholowaychuk: and it would be a few lines to implement [19:23] martyziff has joined the channel [19:23] tbranyen: heh yeah but that would start a tangent about some weird ass ruby syntax to do the same thing [19:23] tjholowaychuk: just check bounds and increment the damn pointer [19:24] tjholowaychuk: huh? [19:24] tbranyen: i'm scared to bring anything up to es.next [19:24] brfelipe: ive been trying to create a chat app using node and socket.io. The chat detects someone is online, but if i send a message, the message is not broadcasted. I wonder what i am doing wrong: http://pastebin.com/2LTtVTwd [19:24] tjholowaychuk: just have /^re/.exec(str, offset) [19:24] tbranyen: oh shit yeah that'd be even nicer [19:24] patcito has joined the channel [19:24] jakeg: brfelipe: probabably socket.io version problem [19:25] kbni has joined the channel [19:25] jakeg: npm install socket.io gets you 0.6; docs at github are for 0.7; incompatible api [19:25] ezl_ has joined the channel [19:25] tjholowaychuk: would solve many a slow parser [19:26] brfelipe: jakeg: oh! thz! ima try that! [19:26] jvduf has joined the channel [19:26] eazyigz has joined the channel [19:26] jakeg: see also #socket.io [19:27] eazyigz: i am trying to use seq with node.js. It isn't executing the second seq. [19:27] eazyigz: what am I doing wrong? [19:27] bitwise_: ok so the 404 only seems to appear when i POST. GET req's work fine [19:27] eazyigz: Seq() .seq(function() { console.log("first"); }) .seq(function() { console.log("second"); }) ; [19:27] tbranyen: using tabs? [19:28] jakeg: bitwise_: d'oh! app.get() is for get app.post() is for post!!! [19:29] bitwise_: yep, just figured that one out hehe [19:31] piscisaureus_ has joined the channel [19:31] Marak has joined the channel [19:31] zackattack has joined the channel [19:32] bbttxu has joined the channel [19:33] brfelipe: jakeg: so.. to update my npm install of socket.io, i just have to clone the git repo on the /node_modules/socket.io/ folder? [19:34] springmeyer has joined the channel [19:34] jakeg: brfelipe: "npm rm socket.io && git clone https://github.com/LearnBoost/Socket.IO-node.git socket_07 [19:34] jakeg: you can't npm install 0.7 yet at all, thus the git clone [19:35] bitwise_: brfelipe: you can cd to your cloned dir and do npm install [19:35] jamey-uk has left the channel [19:35] jakeg: bitwise_: to install socket.io-client yeah, not socket.io [19:35] jakeg: afaik [19:35] bitwise_: anything with a package.json i think [19:36] jakeg: yeah, but socket.io 0.7 isn't tagged on npm yet [19:36] jakeg: so only way to install it is via git clone [19:36] `3rdEden: ^ it's not released yet thats why :p [19:36] `3rdEden: HOWEVER [19:36] `3rdEden: socket.io-client is in npm, with version 0.7 :$ [19:36] `3rdEden: we like to mess with your mind. [19:37] brfelipe: jakeg: cloned it. so now i just have to fix the require line, right? [19:37] jakeg: yup so "git clone https://github.com/LearnBoost/Socket.IO-node.git socket_07 && cd socket_07 && npm install ." then require('./socket_07') until 0.7 is on npm [19:38] prettyrobots_ has joined the channel [19:38] KingJamool has joined the channel [19:39] brfelipe: jakeg: its installing. thz :D [19:41] jakeg: woot [19:41] brfelipe: jakeg: worked! :D and it comes with debugging info... now i know why its not working x] thz dude! [19:42] jakeg: no worries, got me stuck for at least an hour a week ago [19:42] jbpros has joined the channel [19:42] brfelipe: jakeg: messages were being ignored cuz they were outside the namespace :D [19:43] fyskij has joined the channel [19:45] AvianFlu has joined the channel [19:46] cjus has joined the channel [19:47] techwraith has joined the channel [19:48] arpegius_ has joined the channel [19:48] sveimac has joined the channel [19:49] OSInet has left the channel [19:49] Fodi69 has joined the channel [19:50] Bwen has left the channel [19:51] WallyDater has joined the channel [19:51] Swimming_bird has joined the channel [19:52] fs_ has joined the channel [19:54] fs_: Good evening, I am new to node so I hope it's okay that I ask some newbie questions. I am trying to setup a test environment and found something called jessie which uses jasmine.js. The guides tell me to use the jessie [options] command to run the specs. But now npm installed jessie inside node_modules so if I do jessie in the root of my project my shell doesn't know about it. [19:54] fs_: So I was wondering how can I tell my shell about jessie? [19:54] mike5w3c has joined the channel [19:55] dtan_: fs_ are there any install instructions for jessie? [19:55] kersny: fs_: one option is to `npm install jessie -g` which will install it globally and put it in your path [19:55] blueadept: how do you cache views with express? [19:56] fs_: Is there some option to install them into a virtual environment the way Python does it? [19:56] localhost has joined the channel [19:57] fs_: So that I can easily throw away environments when I mess something up. [19:57] shinuza has joined the channel [19:57] zmbmartin: blueadept: I believe it does by default in production [19:57] zmbmartin: I thought I read that [19:57] Warez-BB has joined the channel [19:58] blueadept: i might have to [19:58] darshanshankar has joined the channel [19:58] Calvin has joined the channel [19:58] blueadept: working on a large sitemap here [19:58] blueadept: about 15k entries per page [19:59] saurabhverma has joined the channel [19:59] Corren has joined the channel [19:59] blueadept: see some lag in console, but i'll just render it out and see what happens [19:59] eb4890 has joined the channel [20:00] zmbmartin: Yeah try it I pretty sure I read that caching happens by default in production. But I have been known to be wrong ;) [20:00] __tosh has joined the channel [20:02] martyziff has joined the channel [20:03] pquerna: "I don't always use intergers, but when I do they only have 2^53 percision" [20:03] cjus has joined the channel [20:04] jameson has joined the channel [20:04] infynyxx has left the channel [20:04] infynyxx has joined the channel [20:06] tbranyen: tjholowaychuk: http://i.imgur.com/ZLgPv.png [20:06] tbranyen: fuck [20:09] arpegius_ has joined the channel [20:09] Swimming_bird has joined the channel [20:10] KingJamool has joined the channel [20:11] charleyd has joined the channel [20:11] felipellrocha has joined the channel [20:11] briznad has joined the channel [20:11] DTrejo has joined the channel [20:12] broofa has joined the channel [20:12] tobias has joined the channel [20:12] sveimac has joined the channel [20:15] jmoyers has joined the channel [20:15] kbni has joined the channel [20:15] kbni: :S [20:20] mandric has joined the channel [20:20] dall has joined the channel [20:20] dall: hello [20:22] pplante has joined the channel [20:22] romanb has joined the channel [20:22] pquerna: hi [20:25] rook2pawn has joined the channel [20:25] migimunz has joined the channel [20:25] Skola: github's fucked [20:26] Skola: or my browser is [20:26] bitwise_: shame that even nasa.gov requires www prefix for its site to work [20:26] chiyam has joined the channel [20:26] Skola: like when I go to https://github.com/contact I get a contact form for whatever repo I've been browsing [20:26] Skola: even when I land on that page after clicking the contact link in a general context [20:27] bitwise_: i so want a hires pic of this http://www.bbc.co.uk/news/science-environment-13783877 [20:27] swaj: Skola: works for me. [20:27] Skola: or is this _A FEATURE_ [20:27] _mdp has joined the channel [20:27] xerox: feature [20:27] Skola: lol [20:28] Skola: no infacttt [20:28] Skola: I even get this when going to support.github.com/.../18-rights-to-use-the-github-logo [20:28] Skola: (from google [20:28] xerox: ) [20:28] Skola: http://support.github.com/discussions/site/18-rights-to-use-the-github-logo [20:28] Skola: this [20:29] Skola: or is this just a broken subpage [20:29] vipaca has joined the channel [20:29] vipaca has joined the channel [20:29] swaj: that takes me to a contact form [20:29] jakehow has joined the channel [20:29] swaj: lol [20:29] Skola: ah ja [20:29] S1kx has joined the channel [20:29] xerox: a better question is: who cares? [20:29] Skola: not really a better question [20:30] Skola: I mean you're closing my parentheses for me [20:30] spetrea has joined the channel [20:30] swaj: he's also named for a price-gouging printer manufacturer :P [20:30] zpao: Skola: it's not a contact form for the repo, it just has a message that if you have an issue with the last repo you looked at, you should contact the owner [20:31] Skola: yeah zpao : ) [20:31] swaj: that's what I see, too. [20:31] scoates: back [20:31] swaj: it's saying "hey don't whine at us about that crap, contact the repo owner" --- although I would hope most people actually using github would understand that... [20:32] Skola: swaj, you'd be surprised ;p [20:32] optixx has joined the channel [20:32] link- has joined the channel [20:32] dtan_: OT: http://www.youtube.com/watch?v=Gi4xDtMW-2U [20:32] blackpawn_ has joined the channel [20:33] Skola: wtf douchebags [20:34] brettgoulder has joined the channel [20:35] plyons has joined the channel [20:35] sonnym has joined the channel [20:36] plyons: struggling with a basic express.js + stylus setup if anyone cares to have a look. http://stackoverflow.com/questions/6391044/basic-express-stylus-setup-question-getting-enoent [20:38] max_dev has joined the channel [20:38] Guest84030: so [20:38] zemanel has joined the channel [20:39] Tobsn: my neighbour college girls wifi is unsecured [20:39] Tobsn: im on their router [20:39] Tobsn: anyone a better SSID name idea than "The Girls" [20:39] Skola: nice you've just incriminated yourself [20:39] Tobsn: not really [20:40] Skola: yarly [20:40] Skola: :[] [20:40] Tobsn: give me a SSID [20:40] Tobsn: thats more important [20:40] broofa has joined the channel [20:41] Tobsn: lol one of the girls computer is her name [20:41] Tobsn: just found her on FB [20:41] softdrink: stalker [20:41] Skola: aren't you the hacker [20:41] Skola: teach me [20:41] Tobsn: http://profile.ak.fbcdn.net/hprofile-ak-snc4/173961_100000204865828_466744_n.jpg [20:42] Tobsn: superior hacker skills [20:42] dtan_: stalkbook [20:42] Tobsn: connect wo open wifi, look into connected computer list, use google [20:42] EyePulp: scary [20:42] Tobsn: *to [20:42] Tobsn: yep [20:42] Skola: lol creep [20:42] Tobsn: :D [20:42] slickplaid: dang it, sniped on the stackoverflow answer :D [20:42] Skola: why do _we_ need to know all this? [20:42] `3rdEden: Tobsn you sell? [20:42] Tobsn: because i need a good SSID! [20:42] Tobsn: how much? [20:43] `3rdEden: 10 camels [20:43] Skola: :D [20:43] Tobsn: SOLD! [20:43] Tobsn: now someone give me a funny SSID [20:43] Tobsn: something like "if i catch you i'll cut you like apig" [20:43] Tobsn: or something [20:43] Tobsn: hehe [20:43] `3rdEden: I bought wife! [20:43] Tobsn: you lucky guy [20:44] Tobsn: make much love and make many children [20:44] slickplaid: I've always liked the "FBI SURVEILLANCE VAN #324" as SSIDs :D [20:44] Tobsn: hmm [20:44] Tobsn: that works the other way around [20:44] Tobsn: but im on their router [20:44] Tobsn: so it should be something that makes them go " HU?" [20:44] Tobsn: or horny [20:44] Tobsn: depends [20:44] EyePulp: "Not Hacked By Your Creepy Neighbor" [20:44] slickplaid: find out if it's linksys, if so exploit it and put dd-wrt on it :D [20:45] Tobsn: Greetings your creepy neighbor [20:45] Tobsn: thats good [20:45] Tobsn: dlink [20:45] Tobsn: WBR-2310 [20:45] Tobsn: i wish i could reroute their traffic and replace all images with meatspin [20:45] Tobsn: that would be the most glorious day [20:45] slickplaid: http://www.phenoelit-us.org/dpl/dpl.html [20:46] saschagehlich has joined the channel [20:46] Tobsn: slickplaid, you missed something, im looking for a good SSID for THEIR router [20:46] Tobsn: im already on it [20:46] Tobsn: way ahead of you ;) [20:46] slickplaid: oh :D [20:46] slickplaid: ACTION l3r [20:46] slickplaid: i'm full of fail today [20:46] Skola: Oceanside HoHouse [20:47] Tobsn: hmm [20:47] Tobsn: not bad at all [20:47] mscdex: .talk skola [20:47] Calvin: skola , yeah yeah, it worked in incognito mode talk [20:47] Tobsn: its not oceanside tough [20:47] Tobsn: probably oceanside pop [20:47] Skola: .talk Calvin [20:47] Calvin: talk next Tuesday [20:47] slickplaid: "I hacked your router and all I got was your facebook page, home phone number and internet history." [20:47] Tobsn: haha [20:47] mendel_ has joined the channel [20:47] Skola: !insult Tobsn [20:47] Tobsn: her name is jamie [20:47] Tobsn: i think im gonna change it to "jamie is a guys name right?" [20:47] Tobsn: haha [20:48] Skola: HAHAHAHA [20:48] slickplaid: jamie is a walrus [20:48] Skola: TEARS IN MY EYES [20:48] Skola: THATS SO FUNNY [20:48] hij1nx has joined the channel [20:48] Skola: except it's not [20:48] Tobsn: well depends [20:48] Tobsn: what would freak you out the most if you see someone changed your SSID? [20:48] kbni: asdasd [20:48] mscdex: .talk Tobsn [20:48] Calvin: Tobsn it's not that I'm having a strange problem, when I forget to read the docs [20:48] Tobsn: right now their SSID is "The Girls" [20:49] mscdex: .talk Marak [20:49] Calvin: Marak I did once too talk [20:49] mscdex: heh [20:49] slickplaid: you should probably just don your trenchcoat with nothing else and just go over there and introduce yourself. [20:49] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/c_8k.png [20:49] Marak: sup Calvin [20:49] Calvin: sup sista [20:50] Marak: hey sista hoo sista Calvin [20:50] Calvin: sista hoo sista Calvin [20:50] Marak: Calvin: What is the square root of 144? [20:50] Calvin: square root of this it would be the most important thing to understand pub sub ould either What [20:50] Skola: Calvin Calvin [20:50] Marak: you gotta connect him to wolframe alpha for questions [20:50] Marak: thats slated for kohai [20:50] rauchg: haha Tobsn good find [20:50] mscdex: oh jeez, the internets is soon to be filled with tons of new tlds [20:50] rauchg: mscdex .js ? [20:50] Tobsn: rauchg, im on their router, i need a good SSID to change it to [20:51] mscdex: no, brand names [20:51] mscdex: like .apple or .marlboro [20:51] Tobsn: ah, i just found her whole house in a picture [20:51] mscdex: .js would be cool though [20:51] Nedry has joined the channel [20:51] Tobsn: http://profile.ak.fbcdn.net/hprofile-ak-snc4/186064_738368763_1427384_n.jpg [20:51] jerrysv: tobsn: "surveillance" [20:51] Tobsn: those are "The Girls" [20:51] Tobsn: 1992. holy shit. [20:51] Marak: ill allow it [20:52] slickplaid: lol [20:52] Tobsn: i should just set up a router here, name it "The Girls" and catch their traffic... hehe [20:52] Tobsn: and turn off theirs [20:52] havenn has joined the channel [20:52] Skola: or you could get laid sometime [20:52] Tobsn: they already saw me [20:52] Marak: Tobsn: Creepster [20:52] Tobsn: they already know who i am [20:53] dtan_: lol @marak [20:53] Skola: they know who you are [20:53] mscdex: .talk creepster [20:53] Calvin: creepster talk [20:53] Skola: your neightbours? [20:53] yozgrahame has joined the channel [20:53] Tobsn: im the guy who rents out the whole house and drives a big bmw convertible [20:53] Skola: no kidding [20:53] Tobsn: ;) [20:53] slickplaid: I still think the trenchcoat idea is best [20:53] Skola: _impressed_ [20:53] mscdex: .talk lol [20:53] Calvin: talk yesterday, about programming literacy lol [20:53] Marak: .talk node.js [20:53] Calvin: nodejs modules for that on the second is fast because uses talk [20:53] Tobsn: problem is im 10 years older ;) [20:53] alek_br_ has joined the channel [20:53] Marak: Tobsn: I don't think that's the problem. [20:54] Skola: .talk autistic [20:54] Calvin: autistic talk [20:54] mscdex: .talk age [20:54] Calvin: talk age [20:54] slickplaid: Looks like jailtime is in your future. [20:54] EyePulp: heh [20:54] dtan_: tobsn - as long as they're legal, no harm done [20:54] Tobsn: slickplaid, theyare at college [20:54] Skola: .talk disabled [20:54] Calvin: disabled it by reading the contents of Buffer when doing things in javascript it looks rather dead talk [20:54] mscdex: .talk jail [20:54] Calvin: talk creepster [20:54] Tobsn: 1991 is jamies birthday [20:54] dtan_: my rule is , 21+ [20:54] EyePulp: yeah, spying and hacking their wifi is totally acceptable, legally. [20:54] dtan_: at least in the states [20:54] Tobsn: yep [20:54] Skola: lol [20:54] glenjamin has joined the channel [20:54] Skola: my rule is 21+ [20:54] slickplaid: 1991 is old enough to be legal? jesus i'm getting old [20:54] Skola: must be a playa [20:54] dtan_: ha [20:54] dtan_: i now [20:54] Tobsn: slickplaid, right? crazy. [20:54] dtan_: know* [20:55] jhurliman has joined the channel [20:55] Tobsn: technically legal is 1995, thats pretty crazy [20:55] mscdex: .talk pmita prison [20:55] Calvin: prison pmita [20:55] mscdex: heh [20:55] Tobsn: they werent even 10 when the xbox 360 came out [20:55] Tobsn: hehe [20:56] slickplaid: http://imgur.com/gallery/Nx7iJ [20:56] Skola: excites you much? [20:56] Tobsn: not really [20:56] Skola: so true that [20:56] Tobsn: i still dont have a good SSID [20:56] Marak: "I READ YOUR EMAILS" [20:56] Tobsn: so the two machines connected are jamie and allie [20:56] Marak: Serious creepster status. [20:57] Tobsn: "IM YOUR FATHER" [20:57] Tobsn: hehe [20:57] Skola: lol [20:57] mscdex: .talk hacks [20:57] Calvin: hacks to get the functions on the homepage [20:57] slickplaid: "CANT WAIT UNTIL YOU FALL ASLEEP TONIGHT" [20:57] Tobsn: "jamie, allie, I KNOW WHAT YOU DID LAST SUMMER!" [20:57] mscdex: .talk node [20:57] Calvin: talk creepster [20:57] mscdex: haha [20:57] Tobsn: "IM WATCHING YOU RIGHT NOW" [20:57] EyePulp: "HOW DO YOU FEEL ABOUT DATING LONELY OLDER DUDES WHO ARE TOTALLY COMPENSATING" [20:57] Skola: .talk socially challenged [20:57] Calvin: challenged a rapper to rhyme a word I find kohai annoying socially [20:57] mscdex: why are you obsessed with creepsters Calvin? [20:57] Calvin: creepsters obsessed [20:58] Skola: hahaha [20:58] Tobsn: hehe [20:58] EyePulp: =P [20:58] Marak: [13:58] challenged a rapper to rhyme a word I find kohai annoying socially [20:58] Calvin: challenged a rapper to rhyme a word with orange and he has a recursive version of jquery's socially [20:58] Marak: LOL [20:58] Skola: :D:D ja Marak hah [20:58] Marak: [13:59] challenged a rapper to rhyme a word with orange and he has a recursive version of jquery's socially [20:58] Calvin: challenged a rapper to rhyme a word with orange and he has a symlink to recursive [20:58] Tobsn: "NEXT TIME YOU YELL LIKE A BITCH AT 4AM IN THE MORNING ILL COME DOWN AND GIVE YOU SOMETHING TO YELL ABOUT" [20:58] Tobsn: hehe [20:58] Marak: [13:59] challenged a rapper to rhyme a word with orange and he has a symlink to recursive [20:58] Calvin: challenged a rapper to rhyme a word I find how to construct objects recursive [20:59] glenjamin_ has joined the channel [20:59] Tobsn: "i can hear you having sex!" [20:59] mscdex: .talk sex [20:59] Calvin: talk to people using photoshop sex [20:59] mscdex: haha [20:59] Cleer has left the channel [20:59] dtan_: ok, a question about node - if i run a functoin that gets some data, can i return a json object of methods, like you normally would in the browser? or would that be considered "blocking"? [20:59] Tobsn: .talk dont talk [20:59] Calvin: talk skola [20:59] Skola: "Calvin's in your interwebz" [20:59] Calvin: interwebz Calvin's [20:59] Tobsn: omg [21:00] EyePulp: Calvin vies with kohai for uselessness, but I think Calvin's taking the lead. [21:00] Calvin: uselessness , but can be also due to lack of documentation and a ssign a Calvin's [21:00] Tobsn: you guys are obsessed with a bot that isnt even that funny hehe [21:00] Skola: you talk about obsessed? [21:00] Skola: GTFO SON [21:00] Tobsn: lol [21:00] dtan_: ha [21:00] Tobsn: i just need a SSID! [21:00] Tobsn: calvin SSID! [21:00] Calvin: SSID name idea [21:00] Tobsn: ... [21:00] mscdex: .talk ssid [21:00] Calvin: talk age [21:00] Skola: I told you [21:00] Tobsn: hes not very helpful [21:00] Skola: "Calvin's in your interwebz" [21:00] Calvin: interwebz Calvin's [21:00] Skola: as SSID [21:00] glenjamin has left the channel [21:00] Tobsn: oooh [21:00] Tobsn: hmm [21:00] Tobsn: k [21:01] mscdex: Calvin knows a good ssid [21:01] Calvin: knows why that package is in node_modules behavior was to install node to doing 'for i had zero to begin with [21:01] EyePulp: "YOUR BLINDS MAKE IT HARD TO WATCH YOU" [21:01] fakewaffle has joined the channel [21:01] Tobsn: LOl [21:01] Tobsn: okay thats pretty good [21:01] mscdex: use "nodejsrules" as the ssid! [21:01] Tobsn: yeah [21:01] Tobsn: no. [21:01] Tobsn: hehe [21:01] EyePulp: great - this is a contest I do not want to win. [21:01] fakewaffle: how do a merge two objects, like jQuery.extend()? [21:01] mscdex: me either [21:01] Tobsn: you just did sir [21:01] Skola: "DON'T ASK ANYONE TO CHECK YOUR IPLOG" [21:02] mscdex: fakewaffle: i use jquery's extend, yeah [21:02] Skola: Tobsn [21:02] fakewaffle: for node though? [21:02] Tobsn: well its america, they probably call the cops right after i changed it [21:02] EyePulp: "YOU SNORE" [21:02] Skola: Is it ok if I msg them on facebook? [21:02] mscdex: fakewaffle: yeah, except i tweaked it a bit [21:02] Tobsn: skola, not really [21:02] fakewaffle: can you share? [21:02] mscdex: fakewaffle: you could probably remove stuff that's cross-browser related though [21:02] dtan_: lol skola [21:02] Skola: But I think it would be funny [21:02] Skola: many lulz to be had [21:02] Tobsn: hehe [21:02] Tobsn: just dont get me sued ;) [21:03] Tobsn: or shot [21:03] dtan_: tobsn - can of worms [21:03] Skola: "the guy with the BMW convertible" right? [21:03] EyePulp: heh [21:03] dtan_: haha [21:03] Tobsn: lol [21:03] dtan_: and he rents to you? [21:03] Tobsn: yeah, there is only one bmw in this college neighbourhood [21:03] Skola: actually this BMW is big lies [21:03] EyePulp: ooh - if you're the landlord, you are really asking for an article on fark right now. [21:03] Tobsn: so that would be pretty spot on [21:03] Skola: so I'd frame another guy [21:04] Tobsn: EyePulp, lol no, they are in the house build onto mine [21:04] kuroir has joined the channel [21:04] Tobsn: like 3 or 4 girls in one house [21:04] Skola: epic [21:04] EyePulp: tobsn: I see a reality show in the making [21:04] kuroir: Hello, I just noticed that fs.watchFile on mac takes around 3-6 seconds to detect a file change. Is there anyway to make it faster? [21:04] Skola: it doesn't for me kuroir [21:05] Tobsn: aaah fuck, SSID to long eyepulp [21:05] Tobsn: YOUR BLINDS MAKE IT HARD TO WATC [21:05] kuroir: it varies, it can be from 1 to 5 seconds. [21:05] kuroir: I mean, it's not instant. [21:05] Skola: OPEN YOUR BLINDS [21:05] Skola: kuroir perhaps your write process takes a while? [21:05] mikeal1 has joined the channel [21:06] mandric has joined the channel [21:06] kuroir: It shouldn't it's a relatively simple script to watch source files and merge them (coffeescript) [21:06] EyePulp: "YOURE A HEAVY SLEEPER" [21:06] Skola: I CAN SMELL YOUR .. [21:07] Skola: to quote H Lecter [21:07] fakewaffle: mscdex: any drawbacks to using Object.create(defaults, optios); ? [21:07] jbergstroem has joined the channel [21:07] EyePulp: "IT RUBS THE LOTION ON ITS SKIN" [21:08] EyePulp: yeah, just go for the completely creepy angle that guarantees police involvement. forget subtlety. [21:08] kuroir has left the channel [21:08] devrim has joined the channel [21:09] Skola: agreed, the creepier the better [21:09] Skola: will make for nice fb convo [21:09] slickplaid: "WHY U NO WEAR CLOTHES?" [21:09] Skola: ? [21:09] Skola: Y U NO WEAR NO CLOTHES* [21:10] puffpio has joined the channel [21:10] sirdancealot has joined the channel [21:10] bbttxu has joined the channel [21:10] Tobsn: hehe [21:11] Tobsn: it rubs the lotion on its skin is nice [21:11] fakewaffle: what chanel am i in? [21:11] Tobsn: i think im gonna change "The Girls" into "The Gurls" [21:11] Tobsn: little change, says a lot [21:12] sirganya: Cover|Work: I'm still having trouble proxyin that image from couchdb [21:12] merne has joined the channel [21:13] themiddleman_itv has joined the channel [21:13] isaacs has joined the channel [21:13] dtan_: can you use json objects in jade? [21:14] dtan_: so if i have an array of json objects, i can grab a property when i iterate through the array? [21:14] Skola: ya [21:14] Skola: afaik* [21:14] dtan_: like items.forEach(function(item) { item.name }) [21:15] dtan_: assuming item has a name prop [21:15] Skola: not like that [21:15] Skola: more like [21:15] Skola: - each item in items [21:15] tjholowaychuk: yeah [21:15] tjholowaychuk: that ^ [21:15] Skola: #{name} [21:15] tjholowaychuk: - each val, key in objOrArray [21:16] `3rdEden: Tobsn it doesn't matter how old you are, I buy all 3 of them for 10 camels ea [21:16] TheFuzzball has joined the channel [21:16] blup has joined the channel [21:16] dtan_: ok, let me give it shot, was following the examples in the github wiki page [21:16] Tobsn: hehe [21:16] Skola: it should have the syntax I just described in the wiki as wel [21:16] Skola: well* [21:16] zmbmartin has joined the channel [21:17] dtan_: haven't seen that syntax, only what i posted above [21:17] Skola: look at the examples [21:17] Skola: @ github [21:17] Skola: /examples [21:17] dtan_: ah there we go [21:17] dtan_: i see it now [21:17] dtan_: ok [21:18] sirganya: I'm trying to proxy an image from couchdb thru node using this code. https://gist.github.com/1032371 but the data is getting mangled somewhere along the way. Anyone care to take a look? [21:18] TheFuzzball has joined the channel [21:19] Warez-BB has joined the channel [21:19] Warez-BB: okay done [21:19] Warez-BB: wtf? [21:19] madzak has joined the channel [21:20] Skola: lol [21:20] Skola: pretty l33t name you had there bro [21:20] T0bsn: yeah idk [21:20] T0bsn: im on their irc server [21:20] T0bsn: but never set my nick to it [21:20] T0bsn: weird [21:20] Skola: on _their_ irc server? [21:20] T0bsn: anyway, i changed the SSID to "Hey Girls!" and now the router doesnt show up anymore [21:20] T0bsn: hehe [21:21] T0bsn: i think i broke it [21:21] Skola: oh god [21:21] T0bsn: yeah thats pretty bad [21:21] Skola: should you be programming? [21:21] pjacobs has joined the channel [21:21] T0bsn: i bet the ! killed it [21:22] Skola: it shouldn't [21:23] Tobsn has joined the channel [21:23] Tobsn: yeah, fuck, their router is gone [21:23] Tobsn: haha [21:23] Skola: congrats [21:23] Tobsn: well, anyway, back to work. [21:23] dtan_: hahaha [21:23] dtan_: aight thanks for the help today everyone, i'll be back on here again no doubt =) [21:23] dtan_: quittin' time [21:24] topaxi has joined the channel [21:25] Skola: these new tld's are giant bullshit [21:25] lor__ has joined the channel [21:25] piscisaureus has joined the channel [21:26] techwraith: Hey guys, any idea what the best way to read a 1mil+ line file, line by line is? [21:27] techwraith: Make that 3.5 million [21:28] EyePulp: techwraith: is each line one character long? [21:28] techwraith: lol, no [21:28] Warez-BB has joined the channel [21:28] Warez-BB: seriously [21:29] aliem has joined the channel [21:29] techwraith: Node can't hold the whole thing in memory at once... [21:29] T0bsn: techwraith, cat pipe script line by line [21:29] kruckenb has joined the channel [21:29] T0bsn: cat file | yourscript.js [21:30] techwraith: T0bsn: And then use stdin? [21:30] T0bsn: one sec i have an example [21:30] T0bsn: https://gist.github.com/953219 [21:30] T0bsn: i use that on my nodes to push the access logs off to a central mongodb db [21:31] alek_br has joined the channel [21:31] T0bsn: that should give you a pretty clear idea how it works ;) [21:32] techwraith: Thanks [21:32] T0bsn: np [21:32] xerox: what is that? [21:33] T0bsn: lighttpd supports pipes in the access log [21:33] T0bsn: accesslog.filename = "|/path/to/log.js" [21:33] bosphorus has joined the channel [21:33] xerox: what does one know about the chunks [21:34] xerox: coming in to the callback [21:34] hellp has joined the channel [21:35] T0bsn: i pipe the access log to that script - the script gets invoked by lighttpd once on start and stays running awaiting chunks over stdin. everytime there is something coming in i parse it and save the accesslog data to localhost mongodb db logs collection access, where localhost port is a mongos daemon connected with the 9 node mongodb "cluster" i have running [21:35] T0bsn: the chunk is the text [21:35] T0bsn: echo "lala" | ./script.js [21:35] T0bsn: "lala" would be the chunk [21:35] themiddleman_itv has joined the channel [21:36] T0bsn: its pretty sweet. [21:36] T0bsn: ;) [21:37] xerox: T0bsn it is always all the text? [21:37] xerox: so it is not a chunk xD [21:37] T0bsn: sortof [21:37] T0bsn: if the line is longer than some number it will chunk it i think [21:37] T0bsn: not sure [21:38] T0bsn: i think it only says "chunk" cause its from an example [21:38] xerox: the number is pretty large I guess [21:38] T0bsn: and im kinda sure it will break it up if its longer [21:38] T0bsn: yeah should be like 4kb [21:38] xerox: good to know [21:38] T0bsn: i think 4kb is the normal EOL limit or something [21:38] T0bsn: cant remember [21:40] viewsrc has joined the channel [21:40] tauren: I've got a json file that I'm sending to the client using express: res.sendfile(__dirname+'/data/test.json'); [21:40] tauren: is there a simple way to wrap that file output with a jsonp function? [21:41] T0bsn: read it in, wrap around the jsonp stuff, return the string [21:41] Remoun has joined the channel [21:41] tauren: T0bsn: thanks, totally new to node here. what do I use to read it in? [21:42] xerox: fs.readFile [21:42] T0bsn: fs [21:42] tauren: ok, thanks [21:42] dtan has joined the channel [21:42] Skola: why are you sending it that way? [21:42] Skola: just curious [21:42] T0bsn: http://nodejs.org/docs/v0.4.8/api/fs.html [21:42] liquidproof has joined the channel [21:42] T0bsn: http://nodejs.org/docs/v0.4.8/api/fs.html#fs.readFile [21:43] xerox: all.html is the best page [21:43] xerox: http://nodejs.org/docs/v0.4.8/api/all.html [21:43] tauren: Skola: just making a quick server to test a client-side widget that grabs data from jsonp. [21:43] tauren: using jsonp that is. [21:44] T0bsn: fs.readFile(__dirname+'/data/test.json, function (err, data) {if(!err){ res.send( 'function complete(){'+data+'}' ) }}); [21:44] T0bsn: or something like that [21:44] T0bsn: dont know how express sends out strings [21:44] T0bsn: also dont know how jsonp looks like :P [21:44] hij1nx has joined the channel [21:44] tauren: jsonpFunc({json:"goes here"}); [21:44] Nomon has joined the channel [21:44] baoist has joined the channel [21:45] T0bsn: oh yeah right, and you have to have that function on your side and you get the stuff overt the args [21:45] tauren: T0bsn: thanks for the help [21:45] T0bsn: i remember [21:45] T0bsn: np [21:45] xerox: pretty cool [21:45] adambeynon has joined the channel [21:47] T0bsn: does anyone know what that memory card slit is on the imac? [21:47] postwait has joined the channel [21:48] xerox: memory card eh [21:48] T0bsn: ah [21:48] T0bsn: SDXC [21:48] liquidproof has joined the channel [21:48] xerox: never heard of it [21:48] T0bsn: yeah they come up with all those crazy names behind SD [21:49] T0bsn: http://www.sdcard.org/developers/tech/sdxc [21:49] T0bsn: up to 2TB? hu? [21:49] havenn has joined the channel [21:49] DTrejo: T0bsn: it's for your memory bulge, you put it in there [21:49] mikeal has joined the channel [21:49] T0bsn: yeah but what format is that? [21:49] T0bsn: i need an adapter for micro SD [21:49] liquidproof has joined the channel [21:50] p_nitsch has joined the channel [21:50] xerox: whoa [21:50] DTrejo: T0bsn: if it fits, it was made to be [21:50] T0bsn: microSD is super mini tiny, the slot on the iMac is like 8 times bigger [21:50] DTrejo: it might be able to accept multiple formats [21:50] DTrejo: multiple sizes [21:50] xerox: look up the specs page [21:50] Guest6992 has joined the channel [21:50] xerox: tech specs [21:50] xerox: it'll say [21:51] T0bsn: OMG [21:51] T0bsn: http://www.askmefast.com/How_to_transfer_data_from_micro_sd_card_to_iMac-qna707761.html [21:51] T0bsn: left top video [21:51] T0bsn: "chat with me live!" [21:51] T0bsn: wtf [21:51] xandrews has joined the channel [21:54] mendel__ has joined the channel [21:55] nathan has joined the channel [21:57] qbert has joined the channel [21:57] tauren: anyone know if application/javascript or application/x-javascript should be used as the content type for JSONP responses? I've found conflicting info. [21:58] kevwil has joined the channel [21:58] jslatts has joined the channel [21:58] Sidnicious|Home has joined the channel [21:58] ap3mantus has joined the channel [21:59] newy_ has joined the channel [21:59] boogyman has joined the channel [22:00] sveimac has joined the channel [22:00] sveimac has joined the channel [22:01] __sorin__ has joined the channel [22:01] wookiehangover has joined the channel [22:02] T0bsn: x-javascript i would say [22:02] xandrews has joined the channel [22:04] unomi has joined the channel [22:05] tk has joined the channel [22:07] kmiyashiro has joined the channel [22:07] JoshC1 has joined the channel [22:08] nathan has joined the channel [22:08] pekim_ has joined the channel [22:09] dingomanatee: Now that Prototype is up to 1.7, how do I get the 1.6 docs? [22:11] tauren: T0bsn: ok, thanks [22:11] T0bsn: dingomanatee hehe [22:13] nathan has joined the channel [22:14] ngs has joined the channel [22:15] nathan has joined the channel [22:15] xerox: isn't prototype dead? [22:15] alek_br has joined the channel [22:15] Murvin: isaacs: are you here? [22:15] isaacs: Murvin: what's up? [22:16] Murvin: isaacs: I have uploaded the files and explanation. please see gist.github.com/1032413 [22:16] sharkbone: anyone can help? http://pastebin.com/PrhJVGus [22:16] Murvin: :) [22:16] arpegius has joined the channel [22:16] sharkbone: i tried to install node on a new machine and got this [22:16] tauren: can someone explain how express app.params work? I see that they are doing conversion from string to int, etc. but when are they used? [22:17] sharkbone: though i installed the mysql module for node [22:17] tauren: I'm looking at this example: https://github.com/visionmedia/express/blob/master/examples/params/app.js [22:17] isaacs: Murvin: what was the issue link? [22:17] tauren: i mean app.param, not app.params. [22:17] sharkbone: i did i have tried this npm install node-mysql [22:17] Murvin: isaacs: issue link is https://github.com/joyent/node/issues/1176 [22:18] isaacs: thanks [22:18] arpegius has joined the channel [22:18] Murvin: isaacs: I have also put down details of the problem, and how I test it in https://gist.github.com/1032413 [22:18] isaacs: k [22:19] Murvin: isaacs: thanks. :) [22:19] xandrews has joined the channel [22:19] asobrasil has left the channel [22:20] bentruyman has joined the channel [22:20] Murvin: isaacs: I can reproduce the problem many times this morning (and over last couple days). let me know if there is problem get the code running. :) [22:20] rpj8 has joined the channel [22:20] rpj8: good afternoon [22:20] isaacs: k [22:21] eguest309 has joined the channel [22:21] eguest309 has left the channel [22:24] zackattack has joined the channel [22:24] DTrejo: hey guys, what's that spec that says you should use success:true in your json if it worked? [22:24] copongcopong has joined the channel [22:24] DTrejo: or something like that [22:25] bitwise_ has joined the channel [22:26] shirro has joined the channel [22:26] squeese has joined the channel [22:26] sveimac has joined the channel [22:27] asdf22 has joined the channel [22:27] v0idless- has joined the channel [22:30] dyer has joined the channel [22:30] dyer has joined the channel [22:32] blup has joined the channel [22:34] davidwalsh has joined the channel [22:34] tjholowaychuk has joined the channel [22:38] context- has joined the channel [22:38] tauren: I'm setting the content type like this: res.contentType('application/x-javascript') [22:39] tauren: but chrome inspector says it is being sent as application/octet-stream [22:39] tauren: same when I use applcation/javascript [22:39] themiddleman_itv has joined the channel [22:39] tauren: any ideas why the content type I'm specifying isn't being sent? [22:40] xandrews has joined the channel [22:40] themiddleman_itv has joined the channel [22:40] mikeal has joined the channel [22:41] context-: did you already send stuff ? [22:41] context-: octet-stream is for streaming [22:41] context-: i think [22:42] sub_pop has joined the channel [22:42] tk: mikeal: you around? [22:43] tjholowaychuk has joined the channel [22:43] themiddleman_itv has joined the channel [22:43] tauren: context-: no, here's the coffeescript: https://gist.github.com/1032527 [22:43] sharkbone: http://pastebin.com/PrhJVGus can anybody help please? [22:44] Sorella has joined the channel [22:44] tjholowaychuk: has anyone else had issues with node leaking fds? [22:44] infynyxx has left the channel [22:45] context-: an ipad (which it looks like iOS5 sdk makes references) will have resolution of 2048x1536 [22:45] context-: now imagine putting that sort of resolution on a 13" or 15" macbook [22:45] context-: thats a HUGE amount of pixels [22:45] context-: oops. wrong room [22:45] systemfault: Haha [22:46] systemfault: Interesting nonetheless [22:46] Bonuspunkt: 'd love that [22:47] techwraith: Is there a url at nodejs.org that always points to the latest docs? [22:47] ctide: anyone familiar w/ connect-form / formidable? is there some events i need to watch for or something in error cases? [22:48] ctide: it's never calling my callback function :( [22:48] shinuza: techwraith: http://nodejs.org/docs/latest/api/ [22:48] techwraith: shinuza: thanks [22:49] xerox: is there a way to circumvent require('...') module caching [22:49] xerox: to make sort of dynamic plugins [22:49] tbranyen: xerox: you can remove it from the cache yeah [22:49] shinuza: sharkbone: you sure you have mysql installed? [22:49] xerox: tbranyen: cool [22:50] xerox: ACTION rubs hands [22:50] markwubben has joined the channel [22:50] tbranyen: xerox: require.cache [22:50] ryanfitz has joined the channel [22:51] xerox: tbranyen: excellent [22:51] xerox: I should be careful about dependencies? [22:53] tbranyen: xerox: i have no idea what you're doing [22:54] slaskis has joined the channel [22:54] tbranyen: but i doubt you'll break anything [22:54] xerox: I mean if require('a') does require('b') inside, should I delete b from the cache as well [22:54] perlmonkey2 has joined the channel [22:54] tbranyen: if you want to refresh b as well [22:54] tbranyen: yeah [22:54] xerox: what if module 'c' also does require('b') [22:55] alek_br has joined the channel [22:55] xerox: :/ [22:55] tbranyen: then it loads b [22:55] tbranyen: if its not in the cache [22:55] Tobsn has joined the channel [22:55] xerox: yes [22:55] xerox: but then it expects it to be there [22:55] slaskis: xerox: i've had issues with that once, race conditions because variables was not set when b was loaded by c for example [22:55] tbranyen: what does? [22:55] xerox: and I remove it for hot-reloading a [22:55] xerox: c [22:55] xerox: boo... :( [22:55] eb4890 has joined the channel [22:55] tbranyen: xerox: you aren't destroying the object when you set the cache to undefined... [22:56] xerox: so the cache is just used by require, not by module c [22:56] xerox: to access stuff in b [22:56] tbranyen: xerox: the cache is only used with the function require... if its in there it returns that object, if its not it loads it from the fs [22:56] tbranyen: if you remove something from teh cache you aren't going to break anything [22:56] xerox: then it should work [22:56] xerox: ACTION crosses fingers [22:56] xerox: ok : ) [22:57] xerox: tbranyen++ [22:57] v8bot: xerox has given a beer to tbranyen. tbranyen now has 1 beers. [22:57] xerox: 1 beers [22:57] tbranyen: woot time to get a buzz going [22:57] softdrink has joined the channel [22:57] jerrysv: tbranyen++ [22:57] v8bot: tbranyen is getting too many beers. Don't let tbranyen get drunk! [22:57] jerrysv: there? [22:57] xerox: lol [22:57] xerox: slaskis: maybe you were doing something different then? [22:58] brownies has joined the channel [22:59] slaskis: xerox: haha, sorry i just realized i missed the beginning of you conversation :P [23:00] qbert: what are the dangers with eval ? [23:00] qbert: code injection ? [23:00] dyer has joined the channel [23:00] dyer has joined the channel [23:01] xerox: slaskis: hehe no problem [23:01] xerox: tbranyen: works like a charm [23:01] tbranyen: xerox: nice! [23:02] tbranyen: qbert: yeah and accidentally leaking globals and its slow [23:02] tbranyen: qbert: well slow in cases when you could use something else [23:02] tbranyen: like eval('myobj.'+someproperty) is dumb compared to myobj[someproperty] [23:04] AdonisSMU has joined the channel [23:04] xerox: that's extreme [23:04] AdonisSMU: Hello how is everyone doing? [23:04] qbert: right, in my case its because I want to reduce code, it's much less code to write eval('client.' + someFunctionName ) , then to actually call client.someFunctionName() everywhere its needed [23:04] jensn: Awesome. [23:04] xerox: f a n t a s t i c [23:04] AdonisSMU: am I allowed to ask a question [23:04] qbert: tired [23:05] qbert: AdonisSMU, you just did [23:05] jensn: AdonisSMU: And you are encouraged to ask at least one more. [23:05] qbert: true ask away [23:05] AdonisSMU: Ok I am trying to install Node.js [23:05] jakeg has joined the channel [23:06] AdonisSMU: on my Mac and I keep getting an error [23:06] AdonisSMU: that says [23:06] AdonisSMU: could not install the file /usr/local/bin/node-waf [23:06] AdonisSMU: make *** [install] Error 1 [23:06] AdonisSMU: How do I fix this error [23:07] AdonisSMU: or install this file properly [23:07] qbert: sudo make install ? [23:07] p_nitsch has joined the channel [23:08] AdonisSMU: ohhh wow that worked [23:08] AdonisSMU: *scratches head [23:08] AdonisSMU: WOW! [23:08] AdonisSMU: ok [23:08] AdonisSMU: Thank you so much! [23:08] tbranyen: sudo is a magically command [23:08] AdonisSMU: I don't know why I didn't try that sooner [23:09] AdonisSMU: but I'm an airhead sometimes. [23:09] qbert: you going to SMU ? [23:09] qbert: as in souther methodist university ? [23:09] AdonisSMU: I graduated. I am actually working for a big company [23:09] qbert: using node ? [23:10] AdonisSMU: and I want to get ahead of everyone else on using Node.js [23:10] tbranyen: ha good idea [23:10] AdonisSMU: Yeah so it's an attempt to get ahead at work among other thigns [23:10] postwait has joined the channel [23:10] ArvinJA has joined the channel [23:11] ArvinJA: Ok, so I've installed node.js on Windows, how do I get node.io working? [23:11] ArvinJA: I've figured out that I should use npm [23:11] Tobsn: lol [23:11] Marak has joined the channel [23:11] Tobsn: the sudo one was funny [23:11] ArvinJA: But I don't really know how npm works, at all. Does it fetch things from some mirror? [23:11] Marak: nodejitsu powering twitter wall! http://www.youtube.com/watch?v=zgEDO-CkFps [23:12] Marak: huzaah! [23:12] isaacs: ArvinJA: npm help registry [23:12] isaacs: ArvinJA: it fetches from the registry [23:12] aurynn has joined the channel [23:12] aurynn has left the channel [23:12] AdonisSMU: I graduated from SMU [23:12] AdonisSMU: as in Southern Methodist University [23:12] xerox: Marak: what's that? [23:12] AdonisSMU: with a degree in finance [23:12] ArvinJA: isaacs, "No manual entry for registry" [23:12] ArvinJA: Seems like I have no manual entries [23:12] Marak: xerox: twitter hq! [23:12] qbert: Marak, yeah what is that [23:12] Marak: in sf! [23:13] Tobsn: http://www.youtube.com/watch?v=O1Mh9Dmv35A&NR=1 <- lol? isaacs you need to color up [23:13] Tobsn: hehe [23:13] xerox: Marak: no what is in the monitor haha [23:13] Marak: http://space-tweet.nodejitsu.com/ [23:13] Marak: visualization [23:13] xerox: what does it visualize [23:13] tbranyen: haha badass [23:13] Marak: https://github.com/fat/space-tweet [23:13] Marak: there you go [23:14] pen has joined the channel [23:14] qbert: nice! [23:15] xerox: haha [23:15] xerox: what makes a tweet good or bad [23:15] AdonisSMU: Ok I am going to play with this for a bit but thanks again guys for your help. :D [23:15] AvianFlu has joined the channel [23:15] AdonisSMU: I will be back for sure! [23:15] qbert: AdonisSMU, grats on the graduation [23:15] AdonisSMU: Thanks! [23:16] ArvinJA: I guess I should code node.js on linux huh? [23:16] amerine has joined the channel [23:16] Tobsn: little jquery question... lets say i execute a .get() within a method in a class, kinda like var x = { exec:function(){ $.get( url, function(data){ blah } ); } } is it possible to use this. within the .get callback? [23:16] qbert: I do it on both [23:16] Tobsn: or rather javascript question [23:16] llrcombs: 2 part thing: [23:16] ArvinJA: qbert, yeah, but it seems like a hassle to get node.io working on wiundows [23:17] ArvinJA: I don't even know where to begin [23:17] ArvinJA: Since I am not familiar with how any of this works [23:17] qbert: Tobsn, depends on what this you want, usually do var self = this; , somewhere and call self.blah(); [23:17] jmoyers: Tobsn not usually by default [23:17] ArvinJA: There are straightforward guidelines for linux though [23:17] llrcombs: 1. I'm working on a Node.js HTTP server, is there any way to get the stats of all files in a directory? [23:17] qbert: ArvinJA, yes def easier on nux [23:17] llrcombs: 2. CREEPY IMAGES using the script this'll be used in: http://wzom.tk/images/Makeup/ [23:17] qbert: *nix [23:17] tbranyen: Tobsn: so much wrong terminology in there, but you'd need to assign this to another variable [23:17] jmoyers: Tobsn var me = this, as qbert said, the other way is to use Function.bind [23:18] Tobsn: hmm [23:18] qbert: jmoyers, I see var me = this; alot, is that the convention ? [23:18] qbert: naming it me I mean [23:18] tbranyen: var that = this; is probably more convention [23:18] jmoyers: self is reserved i think [23:18] tbranyen: jmoyers: nah its not [23:18] jmoyers: that = this also [23:18] tbranyen: its just used in firefox to refer to teh current window [23:18] tbranyen: but its def overridable [23:18] tbranyen: and def not reserved in v8 [23:19] Tobsn: var x = { exec:function(){ var t = this; $.get( url, function(data){ t.parse( data ); } ); }, parse:function(data){} } [23:19] Tobsn: like that? [23:19] jmoyers: well right [23:19] jmoyers: self being window [23:19] tbranyen: Tobsn: t would equal teh function [23:19] Tobsn: im never sure about this within callbacks [23:19] jmoyers: seems like something you'd want to avoid [23:19] tbranyen: jmoyers: why? its just a circular reference [23:19] sonnym has joined the channel [23:19] tbranyen: and if you aren't leaking globally [23:19] tbranyen: no biggie [23:19] Tobsn: so the only way to get to parse() within the exec is to call it from outside? [23:19] Tobsn: x.parse() ? [23:20] tbranyen: Tobsn: or this.parse() [23:20] jmoyers: i suppose [23:20] Tobsn: tbranyen, how? [23:20] Tobsn: this wouldnt exist within the callback? [23:20] tbranyen: if you call a function off an obj like obj.function `this` inside the function will be the object [23:20] nibblebot has joined the channel [23:20] jmoyers: nah [23:20] jmoyers: not in the case of jquery .get [23:20] Tobsn: yeah i dont think so either [23:20] jmoyers: he's talking about nested functions [23:20] Tobsn: this would be just undefined [23:20] tbranyen: jmoyers: we already went over that [23:20] jmoyers: you'd have to bind [23:21] tbranyen: you don't need bind [23:21] Tobsn: var x = { exec:function(){ var t = this; $.get( url, function(data){ this.parse( data ); } ); }, parse:function(data){} } [23:21] Tobsn: i already know that would break [23:21] Tobsn: this is undefined [23:21] tbranyen: Tobsn: thats not what you asked [23:21] Tobsn: hu? [23:21] tbranyen: t.parse [23:21] Tobsn: oh [23:21] Tobsn: i see [23:21] tbranyen: you assigned this to t [23:22] broofa has joined the channel [23:22] Tobsn: var x = { exec:function(){ $.get( url, function(data){ ???.parse( data ); } ); }, parse:function(data){} } [23:22] Tobsn: i guess x.parse() would be the only way [23:22] tbranyen: Tobsn: are you trolling me [23:22] Tobsn: at least thats how im normally doing it [23:22] tbranyen: I just told you [23:22] tbranyen: t.parse [23:22] tbranyen: ... [23:22] tbranyen: i hate talking to walls [23:22] jmoyers: you can do that.. or bind. [23:22] Tobsn: you just said that relates to the function [23:22] jmoyers: if you want this to refer to the right thing [23:23] Tobsn: any benefits with bind? [23:23] jmoyers: $.get( url, _.bind(function(data){ this.parse(data); }, this); ); [23:23] jmoyers: other than it not looking like horses ass? [23:23] jmoyers: not really [23:23] Tobsn: hmm [23:23] Tobsn: _ ? [23:24] zivester_ has joined the channel [23:24] jmoyers: thats just from underscore, Function.bind is in the latest versions of ecma, no? [23:24] tbranyen: Yea [23:24] tbranyen: not x-browser yet [23:24] jmoyers: underscore wraps it for compat [23:24] Tobsn: hmm [23:24] jmoyers: so does, for instance, prototype [23:24] tbranyen: seems bad to bring in underscore unnecessarily [23:24] tbranyen: just for bind [23:24] Tobsn: yeah [23:24] jmoyers: isn't it in jquery directly yet? [23:24] Tobsn: dont think so [23:24] tbranyen: jmoyers: oh yeah [23:24] tbranyen: proxy [23:24] tbranyen: good call [23:24] atmos has joined the channel [23:24] jmoyers: ^ [23:25] techwraith: http://api.jquery.com/jQuery.proxy/ [23:25] jmoyers: such a weird example [23:25] jmoyers: but yes [23:25] Tobsn: yeah that example is weird [23:25] tauren: req.params.name seems to be truncated by one character when this runs: https://gist.github.com/1032582 [23:25] techwraith: Yes, very weird [23:26] tauren: request of http://localhost:4000/site/index.html results in name = 'index.htm' [23:26] tjholowaychuk: tauren that's a weird combo [23:26] Tobsn: so proxy does binding like underscore does? [23:26] tjholowaychuk: tauren just use * [23:26] tbranyen: whats weird about the example? [23:26] tjholowaychuk: or use :name(*) [23:27] tauren: tjholowaychuk: how do I get the value of * ? [23:27] tjholowaychuk: *:name is a soak and a :name [23:27] jmoyers: its using an object literal [23:27] tjholowaychuk: not * named "name" [23:27] niftylettuce has joined the channel [23:27] tjholowaychuk: req.params[0] [23:27] tjholowaychuk: or with :name(*) req.params.name [23:27] jmoyers: then reapplying this, essentially using it like .call [23:27] tjholowaychuk: :whatever(some regexp here) [23:27] jmoyers: when the real example is to do something with .get, for instance -- its not a way i'd use it in the real world [23:27] tauren: tjholowaychuk: so I want to get the whole path, not just one parameter. so using :name(*) will do that? [23:28] tjholowaychuk: yup [23:28] tbranyen: jmoyers: the point is binding context, not using call [23:28] tauren: ok, thanks [23:28] tjholowaychuk: more or less a named capture group [23:28] tbranyen: call invokes a function [23:28] tbranyen: they are not invoking anything [23:28] Tobsn: how would proxy pass on args? [23:28] tbranyen: Tobsn: you know there is a jQuery support channel right? [23:28] tbranyen: #jquery [23:28] tbranyen: its very good [23:28] Tobsn: god youre a square hehe [23:29] tbranyen: i'm in a #node.js channel helping you with jquery... i suppose that does make me a square [23:29] postwait has joined the channel [23:29] Tobsn: okay, if thats cleared, how do you pass on args with proxy? [23:29] Tobsn: ;) [23:29] techwraith: Tobsn: He's got a point ;) [23:29] Tobsn: techwraith, c'mon ;) [23:30] niftylettuce has joined the channel [23:30] Tobsn: techwraith, remember the question you asked an hours ago and i pointed you to my gist? that correct answer wouldve been in #linux :P [23:30] techwraith: Tobsn: But I was looking for a node way to do it ;) [23:30] Tobsn: hate it when people are so anal about topics in channels... [23:31] techwraith: Tobsn: I don't think you can pass args into a proxy, it just gets whatever args are passed to it. [23:31] Tobsn: thx [23:31] techwraith: (in that weird click example anyways) [23:31] aheckmann_ has joined the channel [23:32] AvianFlu has joined the channel [23:32] tbranyen: techwraith: if you can make a better example i'll change it! [23:33] Tobsn: the examples in the comments are a tiny bit better [23:34] prettyrobots has joined the channel [23:35] alek_br has joined the channel [23:35] jmoyers: its not that big idea [23:35] jmoyers: err idea? BRAIN DYING [23:35] jmoyers: friday [23:35] jmoyers: its not a big deal, rather [23:36] jmoyers: i just don't see people using object literals as controllers, and applying bind to click handlers in some other context [23:36] jmoyers: for instance, backbone or spine or some such, they use event delegation or something, and have a controller which proxies events off whatever view (jquery etc) [23:37] jmoyers: i think its fine for conveying what it does [23:37] [[zz]] has joined the channel [23:39] xandrews has joined the channel [23:39] insin has joined the channel [23:41] mandric has joined the channel [23:43] raidfive has joined the channel [23:49] xerox: .bind(...) is the most wonderful thing [23:50] jhurliman: anyone know of a library that can take a freeform(ish) input string and convert it to a Date or timestamp? i need to handle a variety of formats like "June 12, 2001", "06/12/2001", etc [23:50] darshanshankar has joined the channel [23:50] copongcopong1 has joined the channel [23:51] rook2pawn has joined the channel [23:52] spcshpopr8r has joined the channel [23:52] alek_br has joined the channel [23:53] chapel: v8: new Date('June 12, 2001"); [23:53] v8bot: chapel: SyntaxError: Unexpected token ILLEGAL [23:53] xerox: ILLEGAL [23:53] chapel: !!! [23:53] chapel: v8: new Date('June 12, 2001'); [23:53] v8bot: chapel: Tue Jun 12 2001 00:00:00 GMT-0400 (EDT) [23:53] Tobsn: anyone ever worked with the bing api? [23:54] MooGoo: proceede directly to jail [23:54] SubStack: ACTION arrests xerox  [23:54] chapel: v8: new Date('06/12/2001'); [23:54] v8bot: chapel: Tue Jun 12 2001 00:00:00 GMT-0400 (EDT) [23:54] chapel: jhurliman: look at that [23:54] xerox: ACTION resists [23:54] chapel: built right into javascript [23:54] SubStack: for generating illegal tokens [23:54] MooGoo: what's the punishment for that [23:54] xerox: ACTION grumbles [23:54] chapel: php purgatory [23:54] MooGoo: oh ... god [23:54] MooGoo: no [23:55] MooGoo: you've gone too far [23:55] jhurliman: chapel, thanks [23:55] jhurliman: didn't realize the JS date parser did that [23:55] MooGoo: although... [23:55] sh1mmer has joined the channel [23:55] sh1mmer: ¡hey [23:55] MooGoo: php's strtotime() is way more fliexble than javascripts new Date parser [23:55] sh1mmer: does anyone know how to get full access to the JS stack during runtime [23:56] sh1mmer: not just the current call stack [23:56] jhurliman: sh1mmer, ¡ʎǝɥ yourself [23:56] MooGoo: throw an exception? [23:56] sh1mmer: I've been playing with the debugging but I can't figure it out [23:56] SubStack: sh1mmer: how much trickery are you willing to tolerate? [23:56] sh1mmer: SubStack: lots [23:56] SubStack: sh1mmer: http://github.com/substack/node-stackedy [23:56] sh1mmer: debugging memory leaks [23:56] MooGoo: arguments.callee.caller [23:56] chapel: SubStack: the master of js trickery [23:56] SubStack: uses node-burrito! [23:57] MooGoo: ok... [23:57] sh1mmer: I have a suspicion based on some dtrace futzing around but I'm trying to go deeper! [23:57] sh1mmer: INCEPTION [23:57] MooGoo: so SubStack, master of JS trickery....how would I write a node extension that would expose the scope chain to JS code [23:57] SubStack: scope chain? [23:57] MooGoo: yea [23:57] MooGoo: like Rhino's __parent__ [23:57] Vertice_ has joined the channel [23:57] Vertice_ has joined the channel [23:58] konobi: HandleScope scope; [23:58] SubStack: not sure how that works. describe? [23:58] SubStack: ACTION has only js trickery, no v8 trickery [23:58] nathan has joined the channel [23:58] MooGoo: __parent__ exposes the local varible scope of the calling function as an object [23:59] niftylettuce has joined the channel [23:59] SubStack: MooGoo: well if you execute something in a vm.runInNewContext() you can send in a context [23:59] SubStack: so you could do [23:59] konobi: SubStack: http://izs.me/v8-docs/classv8_1_1Context.html