[00:00] rhdoenges: I'm just trying to write a local one. The FB realtime api requires me to set up a domain for them to push to. [00:01] rhdoenges: I'm trying to do something similar to https://github.com/jugyo/earthquake [00:01] rhdoenges: but for facebook. [00:01] mdeboard: It's like twitter, but for facebook [00:02] rhdoenges: :'( [00:02] mdeboard: Random aside, nothing personal, I don't even know what earthquake is. [00:02] micheil: rhdoenges: try using localtunnel? [00:03] Jakwac has joined the channel [00:03] micheil: rhdoenges: also, as for the realtime graph API, it requires people authorize your app, and you have to request for offline access [00:05] Pathin_ has joined the channel [00:05] rhdoenges: micheil: localtunnel might be useful. I'll use your library if I decide to use the realtime api. [00:05] micheil: I wouldn't recommend using polling. [00:06] brimster has joined the channel [00:07] rhdoenges: localtunnel looks manageable, actually. [00:07] rhdoenges: it'll just eat up cpu, right? [00:07] rhdoenges: (polling, that is) [00:08] micheil: it'll eat up bandwidth and cpu cycles, yes [00:09] micheil: hmm.. time to figure out how to build a HTTP long-poll server [00:10] AntelopeSalad has joined the channel [00:10] rhdoenges: also I am officially reanaming ajax to ajaj. [00:10] rhdoenges: *renaming [00:11] ggg: ajaj? [00:12] micheil: asynchronous javascript and json [00:14] k1ttty has joined the channel [00:14] Pathin_ has joined the channel [00:15] mwhooker has joined the channel [00:16] hippich has joined the channel [00:16] hippich has joined the channel [00:17] brolin has joined the channel [00:20] micheil: burg: any luck? [00:22] Aria has joined the channel [00:22] zackattack has joined the channel [00:22] burg: micheil, i think so. i didn`t get that error anymore, but i have to test it more to be shure [00:23] micheil: can you share your code at all? [00:24] Pathin_ has joined the channel [00:26] [[zzz]] has joined the channel [00:27] Sorella_ has joined the channel [00:33] mrmanager has joined the channel [00:34] Pathin_ has joined the channel [00:35] [[zz]] has joined the channel [00:37] mykul has joined the channel [00:38] bosphorus_ has joined the channel [00:41] isaacs has joined the channel [00:43] steffan has joined the channel [00:44] Pathin_ has joined the channel [00:47] Murvin has joined the channel [00:47] Murvin: any use connect-cluster? [00:47] Murvin: i mean. anyone use? [00:47] vikstrous1 has joined the channel [00:48] migimunz has joined the channel [00:52] boterham has left the channel [00:54] Pathin_ has joined the channel [00:54] avalanche123 has joined the channel [00:54] zeade has joined the channel [00:56] arpegius has joined the channel [00:58] unlink has joined the channel [01:03] Pathin_ has joined the channel [01:05] JohnnyL has joined the channel [01:06] josephboyle has joined the channel [01:10] socketio\test\86 has joined the channel [01:10] AndyDawson has joined the channel [01:10] AntelopeSalad_ has joined the channel [01:12] Bwen has joined the channel [01:12] dyer has joined the channel [01:12] dyer has joined the channel [01:13] Bwen: anyone can point me to a good url for making javascript object usuable on both server and client? :) [01:13] Pathin_ has joined the channel [01:14] Druide_ has joined the channel [01:14] MooGoo: what does that mean exactly [01:14] copongcopong has left the channel [01:14] ggg: ... [01:14] ggg: copy and paste [01:14] Bwen: like if I make a module for nodejs I can reuse it on the client... [01:15] MooGoo: usualy, if you are not using any node specific features [01:15] Bwen: but isnt the "module.exports" not gonna work on the client side? [01:15] MooGoo: make it work [01:15] F1LT3R has joined the channel [01:15] MooGoo: all node does is wrap your module in function(module, exports, require) { ... your code ... } [01:15] mikey_p has left the channel [01:16] mikey_p has joined the channel [01:17] carpeliam: has anybody had any success with websockets + haproxy? i'm getting the following error: https://gist.github.com/1047117 [01:17] micheil: yeah, I do know that you can use haproxy with websockets, but I can't tell you how. [01:19] carpeliam: I only get "EXCEPTION: TypeError: Argument must be a string" in the node output when the client is using websockets through a proxy [01:19] mikeal has joined the channel [01:19] micheil: carpeliam: all I know is that it's possible, I don't know how it's done. [01:19] carpeliam: Bwen: check out browserify [01:20] micheil: I know we do it at pusher.com, but I couldn't tell you how, I've never wanted to devel into that side of things [01:20] forzan has joined the channel [01:20] Bwen: carpeliam: looking into it now, thx :D [01:22] dyer_ has joined the channel [01:22] dyer_ has joined the channel [01:23] Pathin_ has joined the channel [01:24] cha0s has joined the channel [01:24] cha0s has joined the channel [01:28] theCole has joined the channel [01:29] brimster has joined the channel [01:30] theCole_ has joined the channel [01:31] avalanche123 has joined the channel [01:31] pHcF has joined the channel [01:32] Melkor_ has joined the channel [01:32] josephboyle has joined the channel [01:33] Pathin_ has joined the channel [01:37] afeld has joined the channel [01:40] brianloveswords has joined the channel [01:42] Pathin_ has joined the channel [01:43] avalanche123 has joined the channel [01:45] skm has joined the channel [01:48] mynyml has joined the channel [01:48] CodyGray has joined the channel [01:49] CodyGray has left the channel [01:49] sh1mmer has joined the channel [01:49] darshanshankar has joined the channel [01:49] rhdoenges has joined the channel [01:52] levi501d has joined the channel [01:52] Pathin_ has joined the channel [01:53] nornagon has joined the channel [01:53] adrianmg: does anyone knows how to open a public port in Mac os to test node.js app? [01:53] nornagon: How can I get my http server to accept ipv6 connections? [01:53] threshold has joined the channel [01:57] ceej has joined the channel [02:01] cafesofie has joined the channel [02:01] Pathin_ has joined the channel [02:01] mikeal has joined the channel [02:02] tswicegood: adrianmg: you shouldn't need to do much (anything?) to allow incoming connections to your Mac, the bigger issue is getting your router and/or ISP to allow those incoming connections to reach it [02:03] Prometheus: binding to 0.0.0.0 at an appropriate port should be enough, provided your router forwards to it [02:03] Prometheus: adrianmg: if you only need a brief moment for it to be open to the world, I recommend trying out showoff.io w/ the above [02:04] adrianmg: you are right tswicegood [02:04] adrianmg: wrong question sorry :) [02:06] wilmoore has joined the channel [02:10] CodyGray has joined the channel [02:10] CodyGray has left the channel [02:11] Pathin_ has joined the channel [02:15] gtramont1na has joined the channel [02:15] boehm has joined the channel [02:18] mike5w3c has joined the channel [02:19] avalanche123 has joined the channel [02:21] Pathin_ has joined the channel [02:21] Draggor: How would I execute the bash line "echo asdf > something.txt" using the child_process.spawn method? [02:22] wookiehang0ver has joined the channel [02:22] xeodox has joined the channel [02:23] Emmanuel__ has joined the channel [02:24] hybsch has left the channel [02:25] Nuck: Yay! Got mah logo for mah art site done :D [02:27] adrianmg has joined the channel [02:28] mhooks has joined the channel [02:30] Horofox has joined the channel [02:30] mhooks_ has joined the channel [02:30] Druide_ has joined the channel [02:30] Pathin_ has joined the channel [02:32] josephboyle has joined the channel [02:37] gazumps has joined the channel [02:40] Pathin_ has joined the channel [02:42] niftylettuce has joined the channel [02:42] tokumine has joined the channel [02:43] niftylettuce: Nuck: \o [02:44] angrymango has joined the channel [02:46] cafesofie has joined the channel [02:47] marcello3d has joined the channel [02:48] marcello3d: anyone having npm publish errors? [02:48] marcello3d: getting: [02:48] marcello3d: npm ERR! Failed PUT response 500 [02:48] marcello3d: npm ERR! Error: EXIT {{badmatch,{error,{bad_return_value,{os_process_error,{exit_status,1}}}}}, [02:48] Druide_ has joined the channel [02:50] Pathin_ has joined the channel [02:50] Emmanuel__: naaah [02:50] Emmanuel__: not again [02:50] Emmanuel__: I have npm install error [02:51] Emmanuel__: (actually installing npm) [02:51] marcello3d: isaacs: npm publish down? [02:51] isaacs: Yeah, I'm seeing this: [02:51] isaacs: Internal routing error [02:51] isaacs: Sorry, we cannot connect to the intended server. [02:52] isaacs: We have just been notified of this problem. We will correct it as soon as possible. [02:52] isaacs: Feel free to contact us if you have any questions: support@iriscouch.com [02:52] marcello3d: ok, yea, I just updated from npm@1.0.6 to 1.0.15 and now I'm getting that error [02:52] marcello3d: what's the "right" way to update npm? [02:52] isaacs: marcello3d: curl | sh [02:52] marcello3d: I feel like it's great at updating your modules, but not so great at updating itself :) [02:52] isaacs: marcello3d: should work fine in 1.0.14 and higher [02:53] marcello3d: yea, the lack of security of that approach bothers me slightly [02:53] marcello3d: so now I've just git cloned the https repo and installing it with sudo make install [02:54] marcello3d: what does that error mean though, is that my npm client, the npm registry, or couch, or? [02:54] Emmanuel__: it's just the npm server, no ? [02:54] gootdude has joined the channel [02:54] marcello3d: is iriscouch the host for registry.npmjs.org? [02:54] Emmanuel__: it's not even related to the software [02:54] isaacs: yes [02:54] isaacs: brb [02:54] marcello3d: ok [02:55] marcello3d: guess I'll try tomorrow [02:55] marcello3d: oh wow, now all of npm is down [02:55] marcello3d: http://search.npmjs.org/ too [02:59] Pathin_ has joined the channel [03:00] isaacs: yep, looks like iriscouch is having some issues at the moment. [03:00] isaacs: http://isaacs.iriscouch.com/ [03:01] vegard_ has joined the channel [03:01] Bonuspunkt has joined the channel [03:01] LiamMagee has joined the channel [03:02] Corren has joined the channel [03:02] rudebwoy has joined the channel [03:08] Pathin_ has joined the channel [03:10] caolanm has joined the channel [03:11] niftylettuce: isaacs: can't we get a paid solution through community donations? [03:12] bingomanatee has joined the channel [03:12] isaacs: niftylettuce: if you wanna set up a registry, and you can do a better job keeping it up than iriscouch, i will happily tell everyone who uses npm about it :) [03:12] ianbishop has joined the channel [03:12] ianbishop has left the channel [03:12] isaacs: back up :0 [03:12] isaacs: :) [03:12] ianbishop has joined the channel [03:13] niftylettuce: isaacs: i wasn't suggesting that (u do a damn good job) [03:13] isaacs: no, it's all JasonSmith. [03:13] isaacs: i'm crap at ops. [03:14] sh1mmer: people that are like, "squirrel", are not good at ops [03:15] mixrecords has joined the channel [03:18] adrianmg has joined the channel [03:18] adrianmg has left the channel [03:18] Pathin_ has joined the channel [03:19] empt has left the channel [03:20] mikeal has joined the channel [03:20] fr0stbyte has joined the channel [03:21] mykul has joined the channel [03:23] johnnywengluu: is there a way to have partials for ejs? [03:24] johnnywengluu: maybe im using the wrong word .. but a template i can reuse in other templates [03:27] tbranyen: johnnywengluu: sounds like a partial to me [03:27] johnnywengluu: tbranyen: then partial it is [03:28] tbranyen: i'm not sure, but you could always add rendered nested template to a variable in the context [03:28] johnnywengluu: true [03:28] aelaguiz has joined the channel [03:28] abraham has joined the channel [03:28] tbranyen: if you can't find any official way of doing it [03:28] Pathin_ has joined the channel [03:31] johnnywengluu: doesn't seem like there is an official way of doing it [03:31] johnnywengluu: but that was kinda neat .. just using rendered strings in "locals" [03:32] sh1mmer: you can do partials in ejs [03:32] sh1mmer: it's in the docs [03:33] eventual- has joined the channel [03:33] charleyd has joined the channel [03:36] hippich has joined the channel [03:36] kmiyashiro has joined the channel [03:36] johnnywengluu: sh1mmer: https://github.com/visionmedia/ejs where? [03:37] sh1mmer: oh [03:37] sh1mmer: maybe it's in the express docs [03:37] sh1mmer: I think it's the partial() call [03:37] johnnywengluu: yeah its in the express .. so it has nothing to do with ejs i guess [03:38] Pathin_ has joined the channel [03:41] mhausenblas has joined the channel [03:42] cjm has joined the channel [03:48] andrewfff has joined the channel [03:48] Pathin_ has joined the channel [03:49] cha0s has joined the channel [03:49] CodyGray has joined the channel [03:49] CodyGray has left the channel [03:52] aelaguiz: so in a native extension I'm trying to delete the c++ object which is ObjectWrap'd but doing so always results in this exception: virtual node::ObjectWrap::~ObjectWrap(): Assertion `handle_.IsNearDeath()' failed. [03:52] JoshC1 has joined the channel [03:52] aelaguiz: looking at the ObjectWrap code it seems to me like there is an outstanding reference to this object, which causes the destructor to throw. Anyone know about this? [03:54] rhdoenges has joined the channel [03:58] Pathin_ has joined the channel [03:58] swilson06 has joined the channel [04:01] mhooks has joined the channel [04:05] butu5 has joined the channel [04:06] cjm has joined the channel [04:07] Pathin_ has joined the channel [04:08] phiggins has joined the channel [04:09] tim_smart has joined the channel [04:10] balaa has joined the channel [04:11] gozala has joined the channel [04:14] kriszyp has joined the channel [04:16] isaacs: SubStack: does traverse have some fancy doohickey for walking data structures like this? https://gist.github.com/1047236 [04:17] Pathin_ has joined the channel [04:17] isaacs: SubStack: so, what i need to do is walk through it following the "friends" strings as if they were links to root[that-string] [04:18] SubStack: isaacs: nope, you'll have to write something yourself [04:18] SubStack: oh wait [04:19] SubStack: you could transform them such that they actually are links back to the relevant node [04:19] isaacs: yeah, but i don't want them to be [04:19] isaacs: because i want to be able to send just one or two of them over dnode without having dnode send the full census bureau every time [04:19] isaacs: you might have like 100 of these spanning the globe or something [04:19] isaacs: millions, even [04:19] isaacs: on every stopwatch [04:20] SubStack: isaacs: dnode knows how to send cyclical references [04:20] SubStack: also you can transform something without modifying the original [04:21] isaacs: SubStack: right, but if you have : a = {}; b = {a:a}; and send b without sending a? [04:21] isaacs: i might just have to write something to do bfs/dfs following the strings [04:21] SubStack: why wouldn't that work? [04:21] SubStack: I don't see what the problem is [04:22] isaacs: so, if you have a cyclic object, you end up sending the whole cycle. i wanna not send "friends" when i send one of those records. [04:22] isaacs: but do send the strings. [04:23] isaacs: so i can either transform the data structure into something else to walk it, or just deal with it. i'm gonna just deal with it, i think. [04:23] SubStack: seems like you can just write a few transforms [04:25] isaacs: Object.keys(society).forEach(function (r) { r.friends = r.friends.reduce(function (friends, f) { friends[f] = society[f]; return friends }) }) [04:26] isaacs: er, Object.keys(society).forEach(function (r) { r = society[r]; r.friends = r.friends.reduce(function (friends, f) { friends[f] = society[f]; return friends }) }) [04:26] Pathin_ has joined the channel [04:28] hydra35 has joined the channel [04:32] mapleman has joined the channel [04:35] hydra35 has left the channel [04:36] Pathin_ has joined the channel [04:36] AvianFlu has joined the channel [04:37] brimster___ has joined the channel [04:40] butu5: i written a stupidly simple app using node js and mongo.. my first app :) [04:41] butu5: simply collecting all the vedios into one page nothing more... regarding node js related topic [04:41] butu5: http://codesnipr.com/nodejs [04:41] dgathright has joined the channel [04:42] blup has joined the channel [04:44] temp01 has joined the channel [04:45] Pathin_ has joined the channel [04:45] Corren has joined the channel [04:45] carpeliam has joined the channel [04:47] amerinese has joined the channel [04:48] CodyGray has joined the channel [04:48] CodyGray has left the channel [04:48] CStumph has joined the channel [04:50] rhdoenges has joined the channel [04:52] Me1000 has joined the channel [04:55] Pathin_ has joined the channel [04:55] Me1000 has joined the channel [04:55] unomi has joined the channel [05:03] dget has joined the channel [05:04] Pathin_ has joined the channel [05:07] darshanshankar has joined the channel [05:09] dgathright has joined the channel [05:09] tahu has joined the channel [05:09] caolanm has joined the channel [05:10] dgathright_ has joined the channel [05:14] Pathin_ has joined the channel [05:15] sudhirjonathan has joined the channel [05:20] jakehow has joined the channel [05:20] jamescarr_ has joined the channel [05:22] hippich has joined the channel [05:22] hippich has joined the channel [05:23] Pathin_ has joined the channel [05:25] andrewfff has joined the channel [05:28] jtsnow has joined the channel [05:30] LiamMagee has joined the channel [05:33] Pathin_ has joined the channel [05:34] ditesh|cassini has joined the channel [05:37] mrsrikanth has joined the channel [05:38] dget has joined the channel [05:39] dshaw_ has joined the channel [05:40] hippich has joined the channel [05:42] Pathin_ has joined the channel [05:47] tbranyen: urgh its so annoying that this !== global in a module [05:48] bene has joined the channel [05:52] dilvie has joined the channel [05:52] Pathin_ has joined the channel [05:52] temp01 has joined the channel [05:52] dilvie: hi noders =) [05:52] mhausenblas has joined the channel [05:55] rhdoenges: hi :) [05:56] hush2 has joined the channel [06:00] niftylettuce: butu5++ [06:00] v8bot: niftylettuce has given a beer to butu5. butu5 now has 1 beers. [06:00] niftylettuce: butu5: thats nice :) [06:01] Pathin_ has joined the channel [06:02] namdq has joined the channel [06:03] othiym23 has joined the channel [06:04] Emmanuel__ has joined the channel [06:09] justicefries has joined the channel [06:11] Pathin_ has joined the channel [06:13] tyler-iphone: is there a coffeescript to coffeescript reverse translator? [06:13] tyler-iphone: i mean javascript to coffeescript [06:14] steffkes has joined the channel [06:14] Prometheus: I think I saw one floating around somewhere [06:17] othiym23: if I have something printing "execvp(): No such file or directory" from deep in the guts of my code, is there a way I can get Node / child_process.js to tell me which program it couldn't find? [06:17] othiym23: I've been trying to use node's tracing options and dtruss with little success [06:17] AAA_awright: Nuck: Is it better than DA's mascot thing? [06:18] elek has joined the channel [06:18] shoebed has joined the channel [06:20] Pathin_ has joined the channel [06:28] ParadoxQuine has joined the channel [06:28] rhdoenges: tyler-iphone: http://ricostacruz.com/js2coffee/ [06:29] tyler-iphone: rhdoenges: thnx [06:29] rhdoenges: tyler-iphone: what are you using it for? [06:29] rhdoenges: just curious. [06:29] tyler-iphone: rhdoenges: using it to convert other peoples js to coffeescript so i can hack on it in cofeescript before i convert back to JS [06:29] niftylettuce: SubStack: browserify uses closures? [06:29] hush2 has joined the channel [06:30] Pathin_ has joined the channel [06:30] niftylettuce: SubStack: re-learning a few things, trying to understand this all [06:30] niftylettuce: SubStack: erm, well "modules" [06:30] tyler-iphone: also since coffeescript passes jslint strict mode [06:30] tyler-iphone: it can clean up shitty js [06:30] confoocious has joined the channel [06:30] niftylettuce: tyler-iphone: your slider rocks btw [06:31] tyler-iphone: niftylettuce: slider? [06:31] niftylettuce: tyler-iphone: the on/off checkbox [06:31] rhdoenges: tyler-iphone: makes sense [06:31] mikeal has joined the channel [06:31] tyler-iphone: niftylettuce: on what? [06:32] niftylettuce: tyler-iphone: nvm thought u were tdreyno [06:32] rhdoenges: ACTION scratches his head [06:32] TomY has joined the channel [06:32] rhdoenges: ah. [06:32] tyler-iphone: my normal nick is brendaneich [06:33] temp02 has joined the channel [06:38] mikl has joined the channel [06:38] mikl has joined the channel [06:39] thejh has joined the channel [06:39] Pathin_ has joined the channel [06:41] bingomanatee: how inefficient are very sparse arrays? [06:41] bingomanatee: say if uyou had a value at 1000, 2000, 3000.... [06:42] josephboyle has joined the channel [06:43] tyler-iphone: associate array or normal array? [06:43] bingomanatee: normal [06:43] __doc__ has joined the channel [06:49] Pathin_ has joined the channel [06:52] LowValueTarget has joined the channel [06:56] iffy|x200 has joined the channel [06:57] dilvie: oi. [06:58] dilvie: JavaScript is a great language. I understand the attraction to coffeescript syntax -- but I think a lot could get lost in translation converting back and forth... [06:58] Pathin_ has joined the channel [07:00] pquerna: bingomanatee: it doens't fill them in if you just access them directly [07:00] pquerna: bingomanatee: but many methods may cause the array to get filled in/inefficient [07:01] pquerna: bingomanatee: see http://code.google.com/p/v8/issues/detail?id=1451 for some examples [07:02] abraham has joined the channel [07:04] AAA_awright: bingomanatee: According to the spec there's no reason it would be more inefficent than any other Object [07:05] AAA_awright: An Array is just an Object that uses "0", "1", "2", etc, as the key name, and defines a number of functions to operate on them [07:05] AAA_awright: Engines can and do optimize this of course, but I'm not sure if it's harmed with very sparce arrays... [07:05] socketio\test\80 has joined the channel [07:06] AAA_awright: bingomanatee: Also note that a single arr[3000] key will make arr.length=3001 [07:08] Pathin_ has joined the channel [07:09] socketio\test\35 has joined the channel [07:13] fly-away has joined the channel [07:17] Pathin_ has joined the channel [07:20] bene has left the channel [07:20] chjj: hmm, im starting to like comma-first style for some reason [07:21] dibber has joined the channel [07:24] davidbanham has joined the channel [07:27] Pathin_ has joined the channel [07:29] Nuck: I can haz question about Express. [07:29] Nuck: How do I deal with files being PUT? [07:31] angrymango has joined the channel [07:31] boehm has joined the channel [07:32] chjj: could you explain in more detail? is the file being uploaded raw in the request body? [07:32] SamuraiJack has joined the channel [07:32] Nuck: chjj: However a file upload form deals with files? [07:33] Nuck: I'm honestly not sure on how to deal with it. [07:33] Nuck: Prolly gonna be using $.ajax too >_> [07:34] mhauri has joined the channel [07:34] amerinese has joined the channel [07:35] chjj: Nuck: youll need a multipart parser [07:35] chjj: formidable is a popular one [07:35] Nuck: https://github.com/visionmedia/connect-form [07:35] Nuck: Using formidable behind the scenes :D [07:36] chjj: right, well its just a middleware for formidable [07:36] Nuck: exactly what I needed :D [07:36] Nuck: MiddleWare is so awesome. [07:36] d0k has joined the channel [07:36] Pathin_ has joined the channel [07:37] Nuck: I'd built a middleware system before, I just didn't know at the time that it was a pretty common thing, and it was called middleware. [07:39] niftylettuce: Nuck: http://i51.tinypic.com/30ht07r.png I'm thinking of animating Nyan cat in terminal [07:39] deoxxa has joined the channel [07:39] deoxxa: https://github.com/christkv/node-mongodb-native/blob/master/lib/mongodb/cursor.js#L124 [07:39] deoxxa: ACTION facepalms [07:39] Nuck: niftylettuce: DOITDOITDOIT [07:39] AAA_awright: Nuck: Multipart file parsing is a PITA [07:40] deoxxa: been trying to figure out why my callback wasn't firing for like 45 minutes now [07:40] AAA_awright: I've done it, there's not many good *and fast* libraries for it [07:40] niftylettuce: okay [07:40] niftylettuce: Nuck: I'll do it tonight [07:40] niftylettuce: Nuck: give me an hr [07:40] niftylettuce: starting NOW [07:40] niftylettuce: nya nya nyaaaa [07:40] deoxxa: incidentally, hello #node [07:40] Nuck: AAA_awright: Well, I'm sorta an art site, so I kinda gotta do that lol [07:41] niftylettuce: Nuck: gonna call it "nyancat.js" [07:41] niftylettuce: Nuck: Hahahah! [07:41] AAA_awright: Nuck: I adapted https://github.com/felixge/node-formidable [07:42] Nuck: AAA_awright: https://github.com/visionmedia/connect-form is middleware formidable [07:42] shajith_ has joined the channel [07:42] Nuck: And it's got the visionmedia name on it, therefore it's good :D [07:43] AAA_awright: Nuck: Is it fasst? [07:44] socketio\test\08 has joined the channel [07:46] Pathin_ has joined the channel [07:47] c-spencer has joined the channel [07:48] Nuck: AAA_awright: I'm assuming, since it's based on the same thing you used [07:48] Nuck: plus tj's stamp is on it [07:49] Badababuba has joined the channel [07:52] ryan[WIN] has joined the channel [07:52] Nuck: I miss the old logging of NPM :( [07:53] Nuck: The new one isn't as colorful [07:53] deoxxa: hmm [07:53] deoxxa: this mongodb-native library is a bit fragile [07:53] Nuck: deoxxa: Howso? [07:53] Nuck: I use the mongodb-native and I've never had it have trouble :/ [07:53] deoxxa: i've managed to get it to a state where it doesn't call my callback somehow [07:54] Nuck: deoxxa: gist the code and we (or at least I) can take a look :P [07:54] deoxxa: throwing a bunch of debug statements inside Cursor::toArray suggests that .each is failing to call the callback [07:54] deoxxa: hokay [07:54] niftylettuce: hmm [07:54] Nuck: ::? [07:54] Nuck: ACTION giggles [07:54] niftylettuce: Nuck: it looks like sys got replaced with util [07:54] niftylettuce: Nuck: but Marak's colors.js is for sys [07:54] niftylettuce: Nuck: I'm sure I can rew0rk [07:55] Nuck: niftylettuce: many versions ago it was. Just replace the one line of "require('sys') with require('utils') [07:55] Nuck: I actually have my own colorful logging lib that I use. [07:55] Pathin_ has joined the channel [07:56] niftylettuce: Nuck: then I use utils.puts or sys.puts [07:56] niftylettuce: Nuck: ? [07:56] niftylettuce: Nuck: oh nvm [07:56] Nuck: lolk [07:56] niftylettuce: Nuck: >.< n00b moment [07:57] niftylettuce: ACTION has nyancat on looop http://www.youtube.com/watch?v=QH2-TGUlwu4 [07:57] niftylettuce: Nuck: how can I detect terminal width/height? [07:57] niftylettuce: Nuck: (client side) [07:58] Nuck: niftylettuce: Client side? [07:58] deoxxa: https://gist.github.com/1047384 [07:58] Nuck: What do you mean client-side? [07:58] deoxxa: probably want to look at like 124 [07:59] niftylettuce: Nuck: (e.g. my terminal is 80 col by 24 right now) [07:59] Nuck: niftylettuce: Okay, so you just want terminal size? [08:00] niftylettuce: Nuck: tputs cols is the command [08:00] niftylettuce: Nuck: :) :) :) [08:01] MichealBenedict has joined the channel [08:01] deoxxa: Error: Illegal sort clause, must be of the form [['field1', '(ascending|descending)'], ['field2', '(ascending|descending)']] << this is the error i get with just the query/fields [08:01] Nuck: niftylettuce: require('tty').getWindowSize(1)[0] is width, and [1] is height [08:02] mykul has joined the channel [08:02] Nuck: I *think* [08:02] niftylettuce: Nuck: damn let me try [08:02] Nuck: yup it works [08:03] niftylettuce: Nuck: I was gonna use exec() LOL [08:03] Nuck: I think I may have it backwards >_> [08:03] niftylettuce: Nuck: tryna do a shell script [08:03] Nuck: but it works [08:03] ikoosh has joined the channel [08:03] Nuck: And that's what matters :P [08:03] dgathright has joined the channel [08:04] Nuck: niftylettuce: I made a console lib of my own. It provided functions for all the movement and other such codes, and then it had an object which had colors. [08:04] niftylettuce: Nuck++ [08:04] v8bot: niftylettuce has given a beer to Nuck. Nuck now has 4 beers. [08:04] niftylettuce: Nuck: animation is about ready :)! [08:04] Nuck: niftylettuce: YAY! [08:05] niftylettuce: Nuck: just gotta do some math now :) [08:05] Pathin_ has joined the channel [08:05] niftylettuce: Nuck: I'mm gonna spend all night to make this perfect if I have to [08:05] Nuck: lol [08:05] niftylettuce: Nuck: I will become internet sensation in node community for it >< [08:05] niftylettuce: credit due where credit due (Nuck for the f**ks) ? [08:05] Nuck: niftylettuce: lol you will LD [08:06] Nuck: XD [08:06] niftylettuce: WOO OOWOO [08:06] niftylettuce: NYAN ANIMATION WORKIN [08:06] Druide_ has joined the channel [08:06] niftylettuce: Nuck: want a screenshot? [08:06] deoxxa: Nuck: in your use of mongodb-native, have you encountered any issues regarding specifying a field list? [08:06] deoxxa: that seems to be where i'm coming undone [08:06] Nuck: deoxxa: Honestly, I cannot figure out what the fuck you're doing. You're using functions which aren't in mine. [08:07] deoxxa: really? ._. [08:07] Nuck: VERY yes. [08:07] deoxxa: such as? [08:07] Nuck: niftylettuce: And to you too [08:07] Nuck: deoxxa: getCollection, getClient [08:07] Nuck: I do client.open [08:07] Nuck: And db.collection [08:07] deoxxa: getClient is related to mongo-pool [08:07] Nuck: ah [08:07] Nuck: No clue what that is. [08:08] Nuck: But perhaps that's fucking you in the ass? [08:08] deoxxa: getCollection is regular old mongodb-native though [08:08] deoxxa: don't think so, everything else seems to operate fine [08:08] deoxxa: seems to be a very specific thing to break [08:08] Nuck: deoxxa: Must be a synonym there [08:08] Nuck: deoxxa: It's called a glitch [08:08] Nuck: People fuck up [08:08] springify has joined the channel [08:08] Nuck: glitches tend to appear in the less-noticed parts [08:08] deoxxa: but at that point i'm working with a regular mongodb-native Db object, as far as i know [08:08] coyoteux has joined the channel [08:09] coyoteux has left the channel [08:09] deoxxa: mongo-pool just keeps a collection of Db objects around [08:09] Nuck: deoxxa... WHY? [08:09] sudhirjonathan has joined the channel [08:09] niftylettuce: Nuck: I need utils, i triedn pm install utils and not work? [08:09] niftylettuce: tried npm* [08:09] niftylettuce: Nuck: is npm down [08:09] Nuck: niftylettuce: That's because utils isn't a module [08:10] Nuck: ACTION snickers [08:10] deoxxa: because connection establishment would be like 50% of my request time for the most part [08:10] niftylettuce: Nuck: oh boy [08:10] deoxxa: does mongodb-native do pooling on its own..? [08:10] Nuck: deoxxa: No, but couldn't you just have a single connection OUTSIDE the HTTP server? [08:11] mhauri has joined the channel [08:11] Nuck: And then have it get teh connection established before starting your HTTP server? [08:11] Nuck: niftylettuce: utils is part of Node. [08:11] deoxxa: i could, but then i'd only be able to run one query at a time, no? [08:12] deoxxa: i.e. there's no query multiplexing in mongo's wire protocol as far as i know [08:12] Nuck: deoxxa: I don't know, actually. That's a good question. But with Node's async setup, it shouldn't cause any major problems. [08:12] Nuck: It can send off the query and wait for a response [08:12] Nuck: And send another one first [08:12] Nuck: I'm not bothering with my website, TBH. [08:13] deoxxa: ah, but you see, then i end up pegging one core at 100% and the other 15 get to sit around chilling [08:13] Nuck: deoxxa: What? It'll be that way no matter what [08:13] Nuck: That's how Node works [08:13] Nuck: It's single-core [08:13] deoxxa: node isn't where most of the work is being done [08:14] deoxxa: most of the processing is happening inside mongodb [08:14] deoxxa: i.e. node is pretty much just providing a thin http layer into mongodb, not doing a ton of processing on its own [08:15] Nuck: deoxxa: So one request to the database is stuck on one core? [08:15] Pathin_ has joined the channel [08:15] Nuck: Well, I dunno then. [08:15] Nuck: I'm confused by your code, because it's nothing like what I'm used to :P [08:15] deoxxa: noted [08:15] xeodox has joined the channel [08:16] deoxxa: the reason i'm using the callbacks for getCollection etc is so i can get proper error messages should anything go wrong [08:16] deoxxa: unless there's another way to do so? [08:16] niftylettuce: Nuck: this is like the most fun I've had with node yet [08:16] niftylettuce: Nuck: :)! [08:18] Nuck: deoxxa: Why would you NOT use callbacks? Are you new to async? [08:19] deoxxa: you... were suggesting just before that i not use getCollection et al [08:19] deoxxa: so i can pose the same question to you [08:19] Nuck: I was suggesting using regualr mongo-native [08:19] jacobolus has joined the channel [08:19] deoxxa: at that point, i am [08:19] Nuck: deoxxa: Not from what I can tell :/ [08:20] MichealBenedict_ has joined the channel [08:20] Nuck: deoxxa: And I suggest using the async form of collection.find [08:20] deoxxa: ok, imagine that instead of mongo.getClient(function(client) { ... }); it's (new Db(...)).open(function(client) { ... }); [08:21] Nuck: deoxxas: The not using async could be a problem too [08:21] Nuck: At line 128 [08:21] Nuck: You should ALWAYS use async. [08:21] low-b has joined the channel [08:22] Nuck: I didn't even know mongodb-native could do non-async, but I should slap christkv for it. [08:22] deoxxa: that is async [08:22] deoxxa: cursor.toArray is when the database call is made [08:22] fr0stbyte has joined the channel [08:22] deoxxa: because it calls cursor.each which calls cursor.nextObject etc etc [08:23] deoxxa: the if (!cursor) { ... } part just catches possible construction errors [08:24] Nuck: deoxxa: This is not. [08:24] Nuck: "var cursor = collection.find(report.query, report.fields, {});" [08:24] Nuck: That waits until it returns a cursor [08:25] liar has joined the channel [08:25] Nuck: And such [08:25] Yoric has joined the channel [08:25] Nuck: You should do async to get your cursor [08:25] Pathin_ has joined the channel [08:25] deoxxa: i was before, but i was still getting the same errors [08:25] deoxxa: it's nice that you're picking out all these "problems" for me, but i'm still left with that last callback never firing [08:26] apanda has joined the channel [08:26] deoxxa: so the net gain has been nearly 0 so far [08:26] deoxxa: :( [08:26] Nuck: deoxxa: Refresh my memory as to which one isn't being called? [08:26] deoxxa: the one in toArray(function() { ... }); [08:26] deoxxa: line 139 [08:26] deoxxa: it simply never fires [08:27] deoxxa: despite getting to that point just fine [08:27] Nuck: deoxxa: I assume you checked by putting some indicator at the start of that function, to make sure it's not some of the code within it? [08:27] deoxxa: yep [08:27] mikeal has joined the channel [08:27] deoxxa: https://github.com/christkv/node-mongodb-native/blob/master/lib/mongodb/cursor.js#L112 << throwing some debug statements in here at various places points to .each not working as it should [08:28] `3rdEden has joined the channel [08:29] Nuck: deoxxa: Looking at that, there's no place it could die and NOT send back to your callback. [08:29] deoxxa: exactly [08:29] deoxxa: and here i am [08:30] deoxxa: with that callback not firing [08:30] Nuck: You need somebody way better at this than I am. Like, you need a crazy-ass professional. [08:30] Nuck: Hell, you need christkv. [08:30] deoxxa: perhaps so [08:30] deoxxa: unfortunately however, in around 12 hours this is being demoed to a client :( [08:31] deoxxa: thanks, marketing department [08:31] Nuck: deoxxa: Only thing I can think of is that perhaps the .toArray function isn't being called? [08:31] Nuck: But by the sounds of it you already checkeD? [08:31] deoxxa: nope, i put a bunch of console.log()'s in there [08:31] deoxxa: and it definitely gets called [08:31] deoxxa: then as soon as it hits the .each part, it goes dead [08:32] deoxxa: i think there's something very far down that's broken in a very subtle way [08:32] Nuck: deoxxa: Did you check the each function? [08:32] deoxxa: not yet [08:33] deoxxa: figured i was doing something obvious that was wrong [08:33] deoxxa: this discussion has lead me to believe the exactly opposite though [08:33] Nuck: deoxxa: I suggest just keep digging deeper with the logging and you'll eventually find it. [08:33] deoxxa: *exact [08:33] deoxxa: yeah [08:33] Nuck: Follow the stack :D [08:33] Nuck: niftylettuce: How's it coming, and when do I get a screenshot? [08:34] Nuck: AAA_awright: ugh, this thing does NOT look like Middleware to me. [08:34] ph^ has joined the channel [08:34] Pathin_ has joined the channel [08:34] Nuck: IT looks like a failed abortion. [08:35] Nuck: Has anyone here used connect-form? [08:35] Nuck: And can you tell me if it's a normal MiddleWare? [08:35] Nuck: meh, I'll just try it. Can't hurt. [08:36] niftylettuce: Nuck: soon, i'm perfecting the animation [08:36] Nuck: niftylettuce: YAY! [08:36] niftylettuce: Nuck: NYANYNYANANYANYNYANNYNa [08:36] Nuck: niftylettuce: Sorry, can't hear you over my Beirut :P [08:37] deoxxa: looks like the callback style cursor acquisition is being deprecated anyway, Nuck [08:37] deoxxa: https://github.com/christkv/node-mongodb-native/blob/master/lib/mongodb/collection.js#L583 [08:39] deoxxa: oh there we go, managed to work around it [08:40] deoxxa: instead of passing just an array of fields, i put it into an object under the key "fields" [08:40] deoxxa: it looks like it's an issue with the .find() argument trickery [08:40] fr0stbyte has joined the channel [08:40] herbySk has joined the channel [08:40] deoxxa: which is understandable, that's an incredibly complex set of rules there ._. [08:43] ay has joined the channel [08:44] Pathin_ has joined the channel [08:44] cognominal has joined the channel [08:45] niftylettuce: Nuck: I need to find a way to optimize it [08:45] niftylettuce: Nuck: so terminal's memory has the next line ready before it prints it [08:45] niftylettuce: Nuck: hmm [08:45] niftylettuce: e.g. if you did a loop from 1 to 10, each time printing a really long string [08:46] niftylettuce: Nuck: I guess it looks okay for now [08:49] sylvinus has joined the channel [08:51] ay: Hi. Are there any functionality to time out stuff in javascript/node.js? Like alarm in perl? For running external scripts and have them terminated if they run for say more than 3 minutes... [08:52] xeodox has joined the channel [08:54] Pathin_ has joined the channel [08:56] hybsch has joined the channel [08:59] jensn has joined the channel [09:01] niftylettuce: Nuck: WOOO HOOO!!!! [09:03] Pathin_ has joined the channel [09:04] jbpros has joined the channel [09:05] niftylettuce: Nuck: when I add in the cat to overlay background is when it gets exciting [09:06] sudhirjonathan has joined the channel [09:06] Nuck: niftylettuceSHOWITFAGT [09:07] Nuck: niftylettuce [09:07] Nuck: COME ON [09:07] niftylettuce: i have to screen record somehow [09:07] pickels has joined the channel [09:08] sorensen: ... [09:08] niftylettuce: hang on let me add in rainbow colors then ill push to github for public [09:08] sorensen: what project is this? [09:08] confoocious has joined the channel [09:09] niftylettuce: sorensen: I'm making nyancat for node.js [09:09] romanb has joined the channel [09:09] niftylettuce: Nuck: hey maybe you can help here [09:09] niftylettuce: Nuck: I need to add custom colors b/c Marak's are limiting me [09:10] sorensen: wasnt there something just released like this? [09:10] sorensen: rainbow thing following your mouse [09:11] niftylettuce: sorensen: this is terminal animation for nyancat im making [09:11] sorensen: ah nice [09:11] sorensen: lol [09:11] niftylettuce: sorensen: I got basic animation done I just need colors [09:11] niftylettuce: Nuck: [09:11] sorensen: just for shits and giggles? [09:11] niftylettuce: ACTION nods [09:12] shoebed has joined the channel [09:13] Pathin_ has joined the channel [09:14] thejh has joined the channel [09:14] Nuck: niftylettuce: You can't get mroe colors [09:15] Nuck: niftylettuce: not without doing some crazy shit and enableing x11-colors [09:15] niftylettuce: Nuck: I want a basic orange [09:15] Nuck: niftylettuce: You're limited to the 16 ANSI colors [09:15] niftylettuce: Nuck: i can't :/? [09:15] Nuck: Lemme look a sec >_> [09:15] Nuck: niftylettuce: http://en.wikipedia.org/wiki/ANSI_colors#Colors [09:18] niftylettuce: Nuck: ty [09:19] niftylettuce: N?uckinfinite loop with node.js? use of timer or? [09:19] Nuck: niftylettuce: no problem. [09:19] niftylettuce: Nuck: ** best approach for infinite loop? [09:19] niftylettuce: to call nyancat() [09:19] sorensen: while(1) [09:19] aliem has joined the channel [09:19] Nuck: niftylettuce: I'd suggest doing a while loop, since it'd give you the fastest. [09:19] Nuck: Yeah, what sorensen said [09:20] __tosh has joined the channel [09:20] Charuru has joined the channel [09:21] sorensen: though [09:21] sorensen: you might want a control signal of some sort to stop it [09:21] Nuck: well, yeah [09:21] Nuck: niftylettuce: Handle SIGINT too :P [09:22] jomoho has joined the channel [09:22] niftylettuce: Nuck: ? [09:22] Nuck: niftylettuce: You ought to lsiten for a signal interrupt and exit on that [09:23] niftylettuce: user can just CTRL+C [09:23] niftylettuce: u mean like if user hits any key? [09:23] Nuck: Taht's SIGINT [09:23] Pathin_ has joined the channel [09:23] Nuck: SIGINT is Ctrl+C [09:23] niftylettuce: Nuck: craft me the code [09:24] Nuck: niftylettuce: process.on('SIGINT', process.exit); [09:25] etaty has joined the channel [09:29] aron_ has joined the channel [09:30] jacekp has joined the channel [09:31] niftylettuce: okay [09:32] niftylettuce: Nuck: k [09:32] niftylettuce: i got rainbow working [09:32] niftylettuce: Nuck: but i have to fix colors with a function/algorithm somehow [09:32] niftylettuce: Nuck: so colors stay on the same line [09:33] niftylettuce: Nuck: http://i53.tinypic.com/30cbzf6.png [09:33] Pathin_ has joined the channel [09:33] niftylettuce: Nuck: animation works perfect [09:33] niftylettuce: Nuck: I can add it nyanpoptart once i figure out this height coloring thing [09:35] christkv has joined the channel [09:35] sorensen: lol [09:35] niftylettuce: i think i have to use modulus [09:35] niftylettuce: i mean [09:35] niftylettuce: Math.floor [09:35] sorensen: is this out of lack of something else to do? [09:36] sorensen: im amused by it, but cant think of any possible reason to use it [09:36] niftylettuce: no its because I haven't done anything truly "fun" and for myself before [09:36] niftylettuce: everyone else contributes [09:36] niftylettuce: I use other's modules/packages etc [09:36] niftylettuce: I never give back [09:36] niftylettuce: so im going to give back a few laughs [09:36] sorensen: hehe [09:36] pickels has joined the channel [09:36] sorensen: yeah i know the feeling [09:37] niftylettuce: sorensen: i worked nonstop this past week [09:37] niftylettuce: sorensen: constant. it sucked [09:37] niftylettuce: sorensen: up till 9am last night >< [09:37] Xano has joined the channel [09:37] sorensen: on other things? [09:37] sorensen: or this [09:37] niftylettuce: sorensen: yeah client projects [09:37] niftylettuce: sorensen: ones that im underpaid for [09:37] niftylettuce: :'( [09:37] sorensen: i also know that feeling [09:38] aliem has joined the channel [09:39] sorensen: started putting all my free time into this: http://184.106.208.74:8080/ [09:40] sorensen: which is somewhat relevant to Marak's request: http://blog.nodejitsu.com/ten-node-apps-that-need-to-exist [09:40] sorensen: though it really just seems to be a good waste of time [09:40] sorensen: the docs are killing me.... http://sorensen.github.com/aebleskiver [09:40] sorensen: :( [09:41] sorensen: ripped the documentcloud look for lack of imagination [09:41] niftylettuce: sorensen: lol :) [09:41] niftylettuce: sorensen++ [09:41] v8bot: niftylettuce has given a beer to sorensen. sorensen now has 0 beers. [09:42] Charuru: anyone here uses termkit [09:42] sorensen: lol thanks [09:42] Pathin_ has joined the channel [09:44] Nuck: niftylettuce: didja see MY designs? [09:44] sorensen: strange [09:44] Nuck: C: [09:44] sorensen: first time i've seen that redis error [09:45] niftylettuce: Nuck: no? [09:45] sorensen: the joyent server doesnt play nice with cluster [09:45] sorensen: sockets always ending :( [09:46] piscisaureus has joined the channel [09:46] Nuck: niftylettuce: http://drbl.in/bvRZ [09:46] sorensen: nifty: have you seen JSONloops? [09:46] niftylettuce: I think what im trying to do is impossible [09:47] niftylettuce: sorensen: no [09:47] pen has joined the channel [09:47] simenbrekken has joined the channel [09:48] sudhirjonathan has joined the channel [09:49] niftylettuce: Nuck: damn infinite loop not working [09:51] Nuck: niftylettuce: NOES! [09:51] mehlah has joined the channel [09:52] Pathin_ has joined the channel [09:53] sorensen: ahahhaa [09:54] sorensen: i love CandyKeys [09:54] sorensen: mad fun [09:54] niftylettuce: grrr wtf loop [09:54] niftylettuce: I think i need a timer [09:55] niftylettuce: infintie loop crashes terminal [09:55] Nuck: niftylettuce: Then setInterval [09:57] mendel_ has joined the channel [09:58] niftylettuce: Nuck: I get an error when I do setInterval(nyancat(), 3000); [09:59] niftylettuce: Nuck: ypeError: number is not a function [09:59] Nuck: niftylettuce: Take off the parens after nyancat [09:59] Nuck: You'r running the function and passing the response [10:00] Multiply has joined the channel [10:00] niftylettuce: Nuck: ? [10:00] niftylettuce: Nuck: return setInterval(...); ? [10:00] Nuck: niftylettuce: functions are variables [10:00] Nuck: setInterval(nyancat, 3000); [10:01] Nuck: No parens after nyancat [10:01] niftylettuce: Nuck: what about function nyancat() {...} [10:01] niftylettuce: Nuck: I need the () [10:01] Nuck: niftylettuce: because you're defining it. [10:01] niftylettuce: Nuck: but when I run with setInterval(nyancat, 3000); I get no output, but if i just run nyancat(); i do? [10:02] Nuck: niftylettuce: Did you wait 3 seconds? [10:02] niftylettuce: Nuck: yes [10:03] niftylettuce: Nuck: okay so when I just do nyancat; it doesnt give me any output [10:03] niftylettuce: Nuck: but if I take off the function() wrapper it works [10:03] niftylettuce: Nuck: as soon as I wrap it with a function it effs [10:03] Nuck: niftylettuce: gist the code, sounds like a minor syntax error [10:04] Mrfloyd has joined the channel [10:06] Wizek has joined the channel [10:09] niftylettuce: Nuck: I should just have the function call itself once its done [10:09] Nuck: niftylettuce: That could work, in theory. [10:11] niftylettuce: Nuck: if I have nyancat() {...} and call nyancat() outside of it [10:11] niftylettuce: Nuck: it still f's [10:12] Nuck: niftylettuce: gist it, it's prolly a tiny mistake in syntax [10:14] niftylettuce: Nuck: i just made a public repo [10:14] niftylettuce: Nuck: so once we fix this ill commit and add u to credits [10:14] niftylettuce: Nuck: here is gist [10:15] mc_greeny has joined the channel [10:15] niftylettuce: I guess i should js lint it too [10:16] Nuck: niftylettuce: hurry and gist i wanna go to sleep :P [10:16] Arkkis: I set my text editor to both run jslint and node.js with a keypress [10:17] niftylettuce: Nuck: I PM'd you it [10:17] Arkkis: makes me write cleaner code [10:17] niftylettuce: Arkkis: gedit?? [10:17] Arkkis: sublime text 2 [10:18] niftylettuce: Nuck: new PM with cleaned up a little [10:20] niftylettuce: Nuck: any luck? [10:20] aron_ has joined the channel [10:22] djcoin has joined the channel [10:22] daglees has joined the channel [10:23] TheFuzzball has joined the channel [10:26] markwubben has joined the channel [10:27] topaxi has joined the channel [10:27] devuo has joined the channel [10:28] mike5w3c has joined the channel [10:29] niftylettuce: how to combine string with itself x times [10:29] niftylettuce: ? [10:30] thalll has joined the channel [10:30] jacekp has joined the channel [10:31] stagas: niftylettuce: new Array(x).join(string) [10:31] skm has joined the channel [10:32] niftylettuce: stagas++ [10:32] v8bot: niftylettuce has given a beer to stagas. stagas now has 1 beers. [10:32] coreb has joined the channel [10:40] Croms has joined the channel [10:46] tuhoojabotti has joined the channel [10:52] topaxi has joined the channel [10:52] JoshC1 has joined the channel [10:58] augustl: https://github.com/briancavalier/when.js works in both node and browsers, right? [11:01] augustl: with that said, looking for promise libraries that works for both node and browsers, that has test, and that is in npm [11:02] awenkhh has joined the channel [11:05] augustl: there seems to be no such thing [11:07] cognominal has joined the channel [11:07] augustl: https://github.com/kriskowal/q looks promising [11:09] eyesUnclouded has joined the channel [11:10] sethetter has joined the channel [11:10] niftylettuce: introducing nyancat.js @ https://github.com/niftylettuce/nyancat.js [11:11] kuya has joined the channel [11:13] niftylettuce: stagas: thx for array help [11:13] RC1140: niftylettuce, that is sweet [11:13] robi42 has joined the channel [11:14] tim_smart has joined the channel [11:15] Ramosa has joined the channel [11:15] niftylettuce: RC1140: tyvm =) [11:15] niftylettuce: someone should put it on digg/reddit/hackernews [11:15] niftylettuce: i promoting node.js ;) [11:16] igl1 has joined the channel [11:17] stagas: niftylettuce: lol stagasSpaces :P [11:17] niftylettuce: stagas: ;) [11:17] path[l] has joined the channel [11:21] iMiksu has joined the channel [11:22] mendel_ has joined the channel [11:23] kuya: with dnode if you return an object in a remote function with functions attached - how can that object ever be removed from memory? ie the server might have a function like return { foo: function() { ... } }; ill be able to call ret.foo() on the client which is nice, but i dont see how that object can now ever be free'd because we dont know if the client has no references to it [11:23] nornagon has joined the channel [11:24] mendel__ has joined the channel [11:27] beejeebus has joined the channel [11:35] XaKBoOT has joined the channel [11:35] jacekp has joined the channel [11:35] mendel_ has joined the channel [11:37] necrodearia has joined the channel [11:38] niftylettuce: stagas: check out the latest, i added nice ascii art at the end =) [11:38] tahu has joined the channel [11:38] fg3 has joined the channel [11:39] desdur has joined the channel [11:39] tahu has joined the channel [11:42] stagas: niftylettuce: ha, nice :) [11:42] jungly has joined the channel [11:43] jacekp has joined the channel [11:43] fangel has joined the channel [11:44] tahu has joined the channel [11:44] razvandimescu has joined the channel [11:45] razvandimescu: #nodejs [11:45] XaKBoOT has left the channel [11:46] razvandimescu has left the channel [11:46] razvandimescu has joined the channel [11:48] razvandimescu: has anybody around used vows? [11:48] pen has joined the channel [11:48] Ramosa: installation guide mentions a couple of places that nodejs will not run stable and is hard to build on windows.. however Ryan mentions in the introduction video that it will improve.. So, what's the status? [11:49] razvandimescu: as this returns an error, i think it's a bug: http://pastebin.com/855wZ6zY [11:51] Bwen has joined the channel [11:52] junkee[] has joined the channel [11:54] Schmallon has joined the channel [12:00] febits[0] has joined the channel [12:00] davidbanham has joined the channel [12:01] _jgr has joined the channel [12:01] adrianmg has joined the channel [12:02] febits[1] has joined the channel [12:03] sethetter has joined the channel [12:04] jakeg has joined the channel [12:07] kriszyp has joined the channel [12:08] niftylettuce has joined the channel [12:08] gozala has joined the channel [12:11] cjm has joined the channel [12:14] eyesUnclouded has joined the channel [12:15] hackband has joined the channel [12:17] dipser has joined the channel [12:21] cjm has joined the channel [12:22] skm has joined the channel [12:26] TomH__ has joined the channel [12:27] Knifed has joined the channel [12:27] azeroth_ has joined the channel [12:27] ts__ has joined the channel [12:28] MichealBenedict has joined the channel [12:30] mendel_ has joined the channel [12:32] boterham has joined the channel [12:34] okuryu has joined the channel [12:35] zippoxer has joined the channel [12:35] Country has joined the channel [12:36] m00p has joined the channel [12:38] justinw312 has joined the channel [12:42] root____1 has joined the channel [12:42] justinw312: What is a good library that implements classical inheritance in JS in an efficient manner? [12:43] justinw312: Something intended for server side would be even better, since I don't need any dom manipulation [12:45] ts__: justinw31 you can try class.js [12:45] ts__: by TJ [12:45] justinw312: I did see the website for that, but I wasn't sure how mature/supported it was. [12:46] RC1140 has joined the channel [12:46] thejh has joined the channel [12:46] justinw312: Oh, I do like that it provides some basic data structures, too. [12:48] dnunes has joined the channel [12:48] justinw312: Taking a second look, this looks like a good solution assuming it's somewhat mature and stable. [12:52] hackband has joined the channel [12:55] Knifed has joined the channel [12:59] iMiksu has joined the channel [13:00] sharkbird has joined the channel [13:05] Knifed has joined the channel [13:06] TomH__ has left the channel [13:07] Ramosa: justinw312, I use mootools [13:08] justinw312: Does that include a lot of dom stuff, though? [13:08] eyesUnclouded has joined the channel [13:08] mapleman has joined the channel [13:08] Ramosa: well it changes whole js, including dom.. where jquery just changes dom [13:08] justinw312: I'll look into the syntax of that as well, but I really like the simple data structures I saw with js.class [13:09] Ramosa: i dont like that js has to be changed in the first place [13:09] Ramosa: but.. can't find something better [13:09] Ramosa: prototyping and closures not for me [13:10] justinw312: Yeah, and trying to cram classical inheritance on top of JS has always struck me as doing it wrong. [13:11] jetienne: http://www.sequelizejs.com somebody is using this ? is sequelizejs good in the field ? [13:11] sylvinus: imho jresig's inheritance code is not so bad and makes code clearer for the devs [13:12] blippedxd has joined the channel [13:12] sylvinus: btw i've ported it to node.js using Object.create if it interests someone.. [13:12] eventii has joined the channel [13:14] justinw312: I've been using a pattern pretty much straight out of JS:the good parts, with the object having a closure of private methods/properties, and returning a public interface which has access to the closure. [13:14] justinw312: But I wanted to see whatelse was out there [13:14] Mrfloyd has joined the channel [13:14] junkee[]: nice, my add-on gets a segmentation fault signal but if I it run with gdb everything works fine -.- [13:15] JoshC1 has joined the channel [13:15] justinw312: and the pattern I'm using doesn't have pretty/intuitive support for super methods [13:16] sylvinus: justinw312: http://ejohn.org/blog/simple-javascript-inheritance/ [13:18] febits has joined the channel [13:18] blippedxd has joined the channel [13:21] sethetter has joined the channel [13:25] eventii has left the channel [13:26] MarkMenard has joined the channel [13:26] xandrews has joined the channel [13:26] marcello3d has joined the channel [13:30] devuo has joined the channel [13:34] unomi has joined the channel [13:35] jakeg has joined the channel [13:36] bpierre has joined the channel [13:37] MattJ has joined the channel [13:38] sub_pop has joined the channel [13:40] JoshC1 has joined the channel [13:41] theCole has joined the channel [13:41] ceej has joined the channel [13:45] aelaguiz has joined the channel [13:46] jvduf has joined the channel [13:46] maushu has joined the channel [13:46] openpercept has joined the channel [13:46] blippedxd has joined the channel [13:50] jetienne: http://www.sequelizejs.com a lair cool [13:50] jetienne: seems to be nice i meant [13:56] junkee[]: ehhhm. I've a very wired behaviour with arguments in Emit (c++) [13:57] jarek has joined the channel [13:57] jarek has joined the channel [13:57] riven has joined the channel [13:57] riven has joined the channel [13:58] FIQ has joined the channel [13:59] Guest89564 has joined the channel [13:59] Guest89564 has joined the channel [13:59] mapleman1 has joined the channel [14:00] huge_ has joined the channel [14:05] sethetter has joined the channel [14:06] Knifed_ has joined the channel [14:07] wilmoore has joined the channel [14:08] huge_: Hi guys. my env: node v0.4.8 and npm v1.0.14, I tried to install yui3 which depends on yui3-core, however, I got a error mesg cannot find module './build/yui/yui-debug.js' while require('yui3-core') in node-repl [14:08] huge_: any ideas? [14:15] cognominal has joined the channel [14:15] codejunkie has joined the channel [14:15] dyer_ has joined the channel [14:15] dyer_ has joined the channel [14:16] justicefries has joined the channel [14:23] svenlito has joined the channel [14:24] josephboyle has joined the channel [14:27] mrmanager has joined the channel [14:28] Corren has joined the channel [14:29] eyesUnclouded has joined the channel [14:29] MarkMenard has joined the channel [14:32] mapleman1 has joined the channel [14:32] TomY has joined the channel [14:35] Plouj- has joined the channel [14:37] TheFuzzball has joined the channel [14:37] hwinkel has joined the channel [14:39] c4milo1 has joined the channel [14:45] Knifed_ has joined the channel [14:46] cronopio has joined the channel [14:49] mehlah has joined the channel [14:50] ikoosh has joined the channel [14:50] pckt has joined the channel [14:54] Charuru has joined the channel [14:55] bpierre has joined the channel [14:57] hwinkel has joined the channel [14:58] hybsch has joined the channel [14:59] al3xnull has joined the channel [15:00] avalanche123 has joined the channel [15:01] ikoosh has joined the channel [15:02] Swizec has joined the channel [15:03] c4milo1 has joined the channel [15:03] bentruyman has joined the channel [15:08] Corren has joined the channel [15:10] aliem has joined the channel [15:12] dget has joined the channel [15:16] mehlah_ has joined the channel [15:18] blup has joined the channel [15:20] tk has joined the channel [15:21] raidfive has joined the channel [15:21] Mark_Mcs has joined the channel [15:24] unomi has joined the channel [15:25] boogyman has joined the channel [15:26] F1LT3R has joined the channel [15:28] Sorella has joined the channel [15:32] theCole has joined the channel [15:33] jakeg has joined the channel [15:34] sharkbone has joined the channel [15:38] jakeg has joined the channel [15:41] tomb has joined the channel [15:42] mynyml has joined the channel [15:43] sethetter has joined the channel [15:46] bentruyman has joined the channel [15:53] unomi has joined the channel [15:54] josephboyle has joined the channel [15:54] thejh has left the channel [15:57] kuhrt has joined the channel [15:57] AvianFlu has joined the channel [15:57] thejh has joined the channel [16:00] Corren has joined the channel [16:00] __tosh has joined the channel [16:01] kuhrt has joined the channel [16:01] MarkMenard has joined the channel [16:02] MarkMenard_ has joined the channel [16:04] heavysixer has joined the channel [16:05] awenkhh has joined the channel [16:05] pHcF has joined the channel [16:06] jtrudeau has joined the channel [16:07] yoav1 has joined the channel [16:08] felixge has joined the channel [16:08] felixge has joined the channel [16:08] felixge: herbySk: hi, yt? [16:10] blippedxd has joined the channel [16:13] pt_tr has joined the channel [16:14] t|f has joined the channel [16:16] augustl: is there a way to build the .tar.gz of a npm package locally? [16:17] brolin has joined the channel [16:17] augustl: I want to build it and then inspect it to see if I set up my "files" property correctly [16:17] amerinese has joined the channel [16:18] AvianFlu has joined the channel [16:19] augustl: in my package.json I have "files": ["lib","LICENSE"] but the resulting package still includes all the files in the folder [16:20] seyz has joined the channel [16:20] zeade has joined the channel [16:21] augustl: anyone? [16:28] dyer has joined the channel [16:28] dyer has joined the channel [16:29] augustl: just found "npm build", it isn't in the list when running "npm" with no arguments. [16:29] augustl: npm build doesn't seem to do anything though [16:30] augustl: perhaps build is for building C++ stuff [16:30] arpunk has joined the channel [16:31] dyer has joined the channel [16:31] dyer has joined the channel [16:31] augustl: ..anyone? :) [16:32] bronson has joined the channel [16:33] dyer has joined the channel [16:34] savid has joined the channel [16:36] augustl: so, I'm looking for ways to debug why my "files" property in package.json doesn't work as I expect. All the files in the project are included when I npm publish. [16:37] huge_ has left the channel [16:38] augustl: hmm, https://github.com/isaacs/npm/issues/1062 [16:41] augustl: odd, even if I have node_modules/* in my .npmignore, everything in node_modules is still added to the npm package [16:43] augustl: seems like my .npmignore file is ignored by npm :) [16:43] augustl: I wonder why [16:43] bradleymeck_ has joined the channel [16:49] bwinton has joined the channel [16:52] iffy|x200 has joined the channel [16:53] c4milo1 has joined the channel [16:55] febits has joined the channel [16:57] vikstrous has joined the channel [16:57] figital has joined the channel [16:59] root_____ has joined the channel [17:04] yoav1 has joined the channel [17:05] markstory has joined the channel [17:06] zemanel has joined the channel [17:06] gazumps has joined the channel [17:08] aron_ has joined the channel [17:08] zemanel has joined the channel [17:09] Swimming_bird has joined the channel [17:09] jakeg has joined the channel [17:09] jakehow has joined the channel [17:10] arlolra has joined the channel [17:10] niftylettuce has joined the channel [17:13] ryan[WIN] has joined the channel [17:14] balaa has joined the channel [17:14] josephboyle has joined the channel [17:15] Yoric has joined the channel [17:17] Chunk has joined the channel [17:17] yoav1 has joined the channel [17:17] Chunk has left the channel [17:18] pkrumins: bacon strips [17:20] hij1nx has joined the channel [17:20] AvianFlu: pkrumins: win [17:21] jungly has joined the channel [17:22] yoav1 has joined the channel [17:23] figital has joined the channel [17:24] cjm has joined the channel [17:25] christkv has joined the channel [17:25] onr: how to update all modules via npm? [17:27] Swizec_ has joined the channel [17:27] saschagehlich has joined the channel [17:28] ts__ has joined the channel [17:29] isaacs has joined the channel [17:29] isaacs: augustl: the node_modules folder is handled "specially" by npm [17:30] augustl: isaacs: I have development dependencies as git submodules in node_modules [17:30] augustl: npm wont' let me do that? [17:30] isaacs: augustl: anything in there that's a) not a listed dependency, or b) on the bundledDependencies list, will be included [17:30] isaacs: augustl: that's fine [17:30] isaacs: augustl: you should probably list them as devDependencies, though [17:31] augustl: I see [17:31] isaacs: all of npm's deps are git submodules [17:31] yoav1 has joined the channel [17:31] isaacs: (it's not as if i could use npm to install htem, without npm :) [17:31] fson__ has joined the channel [17:33] onr: aha. isaacs how to update all modules via npm? [17:33] saschagehlich: `3rdEden: did guillermo already respond to your socket.data stuff? [17:34] catshirt has joined the channel [17:34] `3rdEden: saschagehlich nope [17:35] `3rdEden: I haven't seem him online this weekend saschagehlich [17:35] saschagehlich: `3rdEden: goddamnit... i need this :D [17:35] saschagehlich: is it safe yet? so can I use it for beatquest? [17:35] CodyGray has joined the channel [17:35] `3rdEden: "it passes the unit test suite" [17:35] `3rdEden: ;D [17:35] jtsnow has joined the channel [17:35] saschagehlich: :D [17:35] `3rdEden: I'm gonna push 1 more commit [17:35] saschagehlich: well, I'll check it out and put it into production [17:35] `3rdEden: and it should be stable enough [17:35] `3rdEden: :p [17:36] saschagehlich: okay [17:36] saschagehlich: ping me when you're done [17:36] alexandere has joined the channel [17:37] `3rdEden: saschagehlich: ping [17:37] `3rdEden: ;D [17:37] saschagehlich: lol [17:37] junkee[]: `3rdEden: on what are you working? [17:37] saschagehlich: okay, I'll check it out tonight ;) [17:38] `3rdEden: junkee[] access to headers + ip + auth data for socket.io [17:38] junkee[]: `3rdEden: nice ;) [17:38] isaacs: onr: npm update [17:38] `3rdEden: saschagehlich okay I'll get started on authenticion per namespace now:) [17:38] isaacs: onr: or npm update -g to update the global ones. if you're on npm <1.0.13, you should reinstall npm first (this is fixed now) [17:39] saschagehlich: didn't try the authentication stuff yet [17:39] `3rdEden: saschagehlich it's pretty handy if you have realtime stuff in a dashboard that only logged in users are allowed to access [17:40] onr: isaacs: ah, thank you [17:40] `3rdEden: and per namespace auth would allow you to have a dedicated namespace for admin stuff, you might want to stream im real time stats on your webpage if you are logged in as `developer` for example [17:41] isaacs: onr: you can also specify a package name to just update instances of that thing [17:41] isaacs: onr: ie, npm update connect [17:41] pen has joined the channel [17:41] niftylettuce has joined the channel [17:41] TomY has joined the channel [17:42] Brad__ has joined the channel [17:42] brianseeders has joined the channel [17:43] saschagehlich: `3rdEden: at the moment I'm doing that stuff on my own... client.logged_in / client.admin etc.... crappy stuff [17:43] saschagehlich: s.io 0.7 makes my code so much cleaner :P I'll be back in an hour or so, have to clean up that mess here [17:43] saschagehlich: l8er! [17:43] onr: isaacs: it works properly after upgrading from 1.0.10 to 1.0.15, thanks [17:44] isaacs: kewl [17:45] onr: isaacs: are you planning to implement something like download stats into registry? [17:45] AntelopeSalad_: is there a reasonable way to tell socket.io "hey, whenever xxx key gets updated in redis, fire some event"? [17:45] isaacs: onr: people keep asking for it. maybe some day, i dunno. probably gonna try to incentivize something other than "number of GET requests" [17:46] ts___ has joined the channel [17:46] niftylettuce: any input? https://github.com/niftylettuce/nyancat.js [17:48] augustl: what's the best way to publish npm libs that have multiple authors? [17:48] isaacs: augustl: npm owner add [17:48] isaacs: augustl: npm help owner [17:48] augustl: cool [17:48] isaacs: it'd be neat to have groups and stuff, but meh. this is pretty easy [17:49] isaacs: security tends to get less secure as it takes on more features. [17:49] liar has joined the channel [17:49] junkee[]: wuhuu! can play .ogg file with node-gstreamer :D [17:49] augustl: was thinking more about the "author" field in package.json btw [17:51] c4milo1 has joined the channel [17:54] zippoxer: problem with gb: typing gb -R prints an error: http://www.pastie.org/2125457 [17:54] sylvinus has joined the channel [17:55] Xano has joined the channel [17:55] zippoxer: lol oops... wrong ch [17:55] ashish has joined the channel [17:56] hackband has joined the channel [17:56] ashish: What is the estimated release date for native windows port of nodejs ? [17:57] yoav1 has joined the channel [17:58] eldar has joined the channel [17:58] tbranyen: ashish: i hear it will coincide with the release of a dance with dragons [18:01] iMiksu has joined the channel [18:01] Charuru has joined the channel [18:01] vikstrous has joined the channel [18:02] riven has joined the channel [18:02] riven has joined the channel [18:03] sudhirjonathan has joined the channel [18:03] mpoz2 has joined the channel [18:06] amerine has joined the channel [18:06] sethetter has left the channel [18:08] jakeg has joined the channel [18:08] zippoxer has left the channel [18:11] rauchg has joined the channel [18:11] Wizek has joined the channel [18:12] AaronMT has joined the channel [18:12] jakehow has joined the channel [18:14] Palats has joined the channel [18:16] vikstrous1 has joined the channel [18:16] aron_ has joined the channel [18:17] AvianFlu has joined the channel [18:17] TooTallNate has joined the channel [18:18] nodee has joined the channel [18:19] duckspeaker has joined the channel [18:20] yoav1 has joined the channel [18:24] achristianson has joined the channel [18:25] tilgovi has joined the channel [18:26] raidfive has joined the channel [18:39] yoav1 has joined the channel [18:40] martyziff has joined the channel [18:41] aliem has joined the channel [18:42] Corren has joined the channel [18:42] kmiyashiro has joined the channel [18:43] postwait has joined the channel [18:43] kmiyashiro has joined the channel [18:43] amerinese has joined the channel [18:44] mange has joined the channel [18:44] mandric has joined the channel [18:45] Swizec has joined the channel [18:49] BigWookie has left the channel [18:49] TomY has joined the channel [18:50] ay: does javascript/node.js have something similar to alarm in perl? Timing out stuff, usually externall executes etc...? [18:50] ay: http://perldoc.perl.org/functions/alarm.html [18:52] ay: or timing out a read from a socket after connect if you have not recived any data for say 5 seconds [18:52] springify has joined the channel [18:54] martyziff has left the channel [18:55] socketio\test\33 has joined the channel [18:55] jbpros has joined the channel [18:55] supster has joined the channel [18:56] AvianFlu has joined the channel [18:57] Swimming_bird has joined the channel [18:58] mange has joined the channel [18:58] socketio\test\86 has joined the channel [18:59] postwait: ay: nothing blocks [18:59] yoav1 has joined the channel [19:00] postwait: ay: so you don't time things out... instead you can setTimeout [19:00] postwait: ay: to run some action in the future (like to give up on reading data) [19:00] iffy|x200 has joined the channel [19:03] tauren has joined the channel [19:03] ay: postwait: Nothing blocks is fine, but say I want to do run a shellscript from node.js (...) but if that script takes more than 10 seconds i want to kill it... can i use seTimeout for that? [19:04] postwait: ay: yes [19:05] xeodox has joined the channel [19:05] kreddor has joined the channel [19:05] AvianFlu has joined the channel [19:07] iFire has joined the channel [19:08] jonaslund has joined the channel [19:08] bnoordhuis has joined the channel [19:10] topaxi has joined the channel [19:11] avalanche123 has joined the channel [19:11] blippedxd has joined the channel [19:12] dibber has joined the channel [19:13] rpj8 has joined the channel [19:14] jsq has joined the channel [19:15] sylvinus has joined the channel [19:17] kreddor has joined the channel [19:20] vyvea has joined the channel [19:20] kriszyp has joined the channel [19:21] jacekp has joined the channel [19:25] simenbrekken has joined the channel [19:25] dguttman has joined the channel [19:26] bsstoner has joined the channel [19:26] mange has joined the channel [19:26] qrux has joined the channel [19:27] qrux has left the channel [19:34] dguttman has joined the channel [19:34] dilvie has joined the channel [19:40] jhurliman has joined the channel [19:41] Corren has joined the channel [19:45] kbni has joined the channel [19:45] patcito has joined the channel [19:46] thejh has joined the channel [19:46] rhdoenges has joined the channel [19:49] darshanshankar has joined the channel [19:50] mehlah has joined the channel [19:50] dgathright has joined the channel [19:50] Mrfloyd has joined the channel [19:51] elpinguino has joined the channel [19:51] shimondoodkin has joined the channel [19:53] xeodox has joined the channel [19:54] insin has joined the channel [19:57] vyvea_ has joined the channel [19:59] qrux1 has joined the channel [20:02] Corren has joined the channel [20:03] dilvie: Static is a reserved word in javascript. Express uses it. My express apps don't pass lint. ); [20:06] themiddleman has joined the channel [20:06] jacekp has joined the channel [20:09] jslatts has joined the channel [20:09] bentruym_ has joined the channel [20:09] willwhite has joined the channel [20:09] jslatts has joined the channel [20:10] Swimming_bird has joined the channel [20:11] vyvea_ has joined the channel [20:12] FIQ has joined the channel [20:13] sorensen: i think that comes from connect [20:15] mape: They changed their api to it some time ago [20:16] jbroman: If you care that much, you could always do express['static'](…) instead of express.static(…). Though I think JSLint should be used to make code cleaner, not adhere rigidly to a set of preordained rules. [20:17] ay: What is the best irc-client library for node.js? It's quite a few.... [20:19] sorensen: heh, id like to know too [20:19] sorensen: was searching the other day and found a dozen or so [20:23] LiamMagee has joined the channel [20:25] `3rdEden: jslint bitches way to much [20:26] xeodox has joined the channel [20:29] martyziff has joined the channel [20:31] hybsch has left the channel [20:34] martyziff has left the channel [20:35] jtsnow has joined the channel [20:35] piscisaureus has joined the channel [20:35] springify has joined the channel [20:38] chjj: jslint is fail [20:39] junkee[] has joined the channel [20:40] igl: people bitch too much about jslint [20:40] igl: ^^ [20:41] AvianFlu has joined the channel [20:41] jensn: People bitch too much. [20:41] chjj: i think its fair, jslint bitches too much about nothing [20:42] Bonuspunkt: jslint has a good parts [20:42] chjj: lol [20:42] Bonuspunkt: just dont use all [20:42] igl: lol [20:43] Bonuspunkt: options [20:43] igl: i will write a book: JSLint the good parts. [20:43] chjj: that will be a rather short book [20:43] hij1nx has joined the channel [20:43] igl: paperback you know [20:44] jensn: Pamphlet? [20:44] pquerna: 8x11 [20:44] igl: it will have lots of images [20:44] pquerna: piece. of. paper. [20:44] pquerna: maybe 140 character tweet? [20:44] systemfault: You could write JSLint: The annoying parts [20:45] pquerna: Javascript: Why aren't you just using Go? [20:45] chjj: images, screenshots of jslint spitting out: "wtf your vars arent at the top" [20:46] hij1nx_ has joined the channel [20:49] Renegade001 has joined the channel [20:49] m3nt0r^aw has joined the channel [20:50] junkee[] has left the channel [20:53] mehlah_ has joined the channel [20:53] Plouj has joined the channel [20:54] prettyrobots has joined the channel [20:56] ts__ has joined the channel [20:56] McMAGIC--Copy has joined the channel [20:57] sfragis has joined the channel [20:58] dilvie: jslint has a lot of good parts. [20:59] tbranyen: jshint has even more [20:59] dilvie: vars at the top is very good policy [20:59] pifantastic has joined the channel [20:59] dilvie: tbranyen: true that! [20:59] MooGoo: lol [20:59] dilvie: I like to do things that jslint complains about. [20:59] slickplaid: I just wonder if jslint's author ever gets death threats [20:59] MooGoo: crockford is the ultimate JS troll [20:59] dilvie: he deserves medals, not death threats. [20:59] tbranyen: http://skilldrick.co.uk/wp-content/uploads/2011/06/crockford.jpg [21:00] tbranyen: MooGoo: I think David Mark owns that title [21:00] dilvie: He's done a lot to improve code quality. [21:00] MooGoo: Governer of the Niger State? [21:00] MooGoo: that's what wikipedia told me [21:01] jvduf has joined the channel [21:01] tbranyen: MooGoo: Read comp.lang.javascript sometime [21:02] MooGoo: maybe later [21:02] tbranyen: you'll have plenty of opportunities to get some valium there [21:03] MooGoo: I prefer oxys [21:03] MooGoo: and amphetamines [21:03] MooGoo: oxys for after the amphetamines [21:06] noahcrowley has joined the channel [21:06] incon has joined the channel [21:07] noahcrowley: hey... installing node for the first time, was wondering if it'd be OK to install to ~/Applications/ instead of creating ~/local/ under OS X [21:08] `3rdEden: noahcrowley why would you do that for [21:09] Swimming_bird has joined the channel [21:09] `3rdEden: it's not like grep is also located @ ~/Applications [21:09] noahcrowley: because I don't have a ~/local/ folder and would prefer to keep the number of directories to a minimum [21:11] yoav1 has joined the channel [21:12] noahcrowley: I wouldn't mind putting node in /usr/local/ either, but I feel like a ~/local/ directory isn't part of OS X convention [21:13] gtramont1na has joined the channel [21:14] `3rdEden: noahcrowley it installs to /usr/local by default [21:15] Ravatar has joined the channel [21:15] gtramont1na: Hey all, qq. I have some dependencies specified in my package.json and some of those must be installed globally. Is there a way for me to say that 'jake', for example, has to be installed with '-g'? In the package.json file? [21:15] sethetter has joined the channel [21:16] iffy|x200: quick question: does anyone know where the default redis config is? IE: when I run redis-server, which config does it use? [21:17] noahcrowley: the instructions seem to indicate that it installs to ~/local rather than /usr/local on OS X [21:17] eldar has joined the channel [21:19] sh4wn has joined the channel [21:19] hasenj has joined the channel [21:21] avalanche123 has joined the channel [21:22] leahculver has joined the channel [21:22] seawise: can any1 give me US HTTPS proxy? [21:22] seawise: want to get info Turntable.fm [21:23] mixrecords has joined the channel [21:24] josephboyle has joined the channel [21:24] cafesofie has joined the channel [21:25] blup has joined the channel [21:27] jungly_ has joined the channel [21:27] bosphorus has joined the channel [21:27] Renegade001 has joined the channel [21:27] aliem has joined the channel [21:28] swilson06: figured some might enjoy this: http://brendaneich.com/2011/06/new-javascript-engine-module-owner/ [21:30] mange has joined the channel [21:32] mwhooker has joined the channel [21:35] romanb has joined the channel [21:35] kmiyashiro has joined the channel [21:36] MattJ has joined the channel [21:39] romanb_ has joined the channel [21:39] sivy has joined the channel [21:40] Nuck has joined the channel [21:41] mixrecords has joined the channel [21:41] gleicon has joined the channel [21:42] H2S04 has joined the channel [21:42] zackattack has joined the channel [21:43] sh1mmer has joined the channel [21:43] sh1mmer has joined the channel [21:46] pquerna: sh1mmer: hey [21:47] zanst has joined the channel [21:47] sh1mmer: hi [21:52] adrianmg has joined the channel [21:53] abraham has joined the channel [21:53] Knifed has joined the channel [21:54] Country has joined the channel [21:56] evilcelery has joined the channel [22:01] amaudy has joined the channel [22:02] Plouj- has joined the channel [22:02] jacekp has joined the channel [22:06] H2S04 has joined the channel [22:06] skm has joined the channel [22:08] bene has joined the channel [22:09] bene has left the channel [22:11] Corren has joined the channel [22:12] Wa has joined the channel [22:13] ParadoxQuine has joined the channel [22:14] aelaguiz has joined the channel [22:16] wilmoore has joined the channel [22:20] bene has joined the channel [22:21] unlink has joined the channel [22:21] unlink has joined the channel [22:21] riven has joined the channel [22:21] riven has joined the channel [22:21] avalanche123 has joined the channel [22:24] bene has left the channel [22:24] chjj has joined the channel [22:26] mynyml has joined the channel [22:26] jtrudeau has joined the channel [22:26] Yoric has joined the channel [22:29] t|f has joined the channel [22:29] low-b has joined the channel [22:31] niftylettuce: http://news.ycombinator.com/item?id=2699295 (might help expand node.js community, showing users possibilities...) [22:32] niftylettuce: even though it doesnt do much at all lmao. [22:32] Prometheus: niftylettuce: pretty sure that'll just give someone a seizure =P [22:32] Prometheus: (I haven't run it, just assuming colors change/flash etc.) ;) [22:33] Bonuspunkt: has it sound? :D [22:33] niftylettuce: Prometheus: no it won't, but if you did marak's color.inverse it would give you a seizure [22:33] niftylettuce: contrast isn't bad [22:33] niftylettuce: Bonuspunkt: idk how to do that [22:33] niftylettuce: Bonuspunkt: so i linked to video instead :'( [22:36] Nexxy: ACTION sighs [22:37] Nexxy: this is why we can't have nice things [22:37] Nexxy: nyancat.js -_- [22:37] nornagon has joined the channel [22:37] niftylettuce: Nexxy: what do u mean [22:38] Nexxy: http://bit.ly/ky4CmQ [22:38] chjj: obfuscated urls are evil [22:39] Nexxy: chjj, http://bit.ly/myJO4b [22:39] jameson has joined the channel [22:39] binaryjohn has joined the channel [22:39] hassox has joined the channel [22:39] chjj: im going to curl that url out of spite, just to get the real url [22:40] Prometheus: chjj: throw a + in the end and thou shall receive ;) [22:40] Nexxy: ^ [22:40] catphive has joined the channel [22:42] mikeal1 has joined the channel [22:46] adnam has joined the channel [22:48] cha0s has joined the channel [22:48] cha0s has joined the channel [22:50] iFire` has joined the channel [22:50] newy_ has joined the channel [22:51] wao has joined the channel [22:59] ggg: I can't find any good, concise and simple article on proper ways to design a mongoDB, any suggestions?? [23:00] k1ttty has joined the channel [23:02] materialdesigner has joined the channel [23:03] tahu has joined the channel [23:08] jacobolus has joined the channel [23:10] Wizek_ has joined the channel [23:12] JustCute has joined the channel [23:13] RushPL has joined the channel [23:15] al3xnull has joined the channel [23:20] Mrfloyd has joined the channel [23:21] mwhooker has joined the channel [23:24] ChrisPartridge has joined the channel [23:25] james78 has joined the channel [23:25] james78 has left the channel [23:25] davidbanham has joined the channel [23:28] tauren: is there a standard library for parsing and formatting dates? I've used functions in date.js, jquery-ui-datepicker, and fullcalendar clientside, but what about on server? [23:28] Brian` has joined the channel [23:28] tauren: i need to convert a date string retrieved from json in a rest call to a JS date object [23:29] tauren: and I need to display JS date objects with formats like "MM/dd/yyyy" or whatever. [23:30] dnunes: tauren: Your best bet is to transfer the date as timestamps and do a new Date(timestamp); [23:30] dnunes: tauren: Then, just get the data with the Date class' methods. [23:31] dnunes: tauren: I don't know any standard lib, but it would be very nice to have a "create_from_format" and "date" functions like in PHP. [23:31] tauren: dnunes: but timestamps don't deal with timezone offsets at all. so i'd have to include another json attribute for timezone. and some rest endpoints don't give dates in timestamp format. [23:31] prettyrobots has joined the channel [23:31] KingJamool has joined the channel [23:32] tauren: I'm getting dates like '2011-06-04T05:08:00+08:00' (ISO8601 format) [23:32] iffy|x200 has joined the channel [23:32] Ravatar: this script extends the Date object for better formatting [23:32] Ravatar: http://blog.stevenlevithan.com/archives/date-time-format [23:32] dnunes: tauren: You can serialize the dates always on UTC. But you're right about having to keep another "control" variable to undo the timezone convertion. [23:33] tauren: Ravatar: have you used that script, or did you just google and find it? [23:33] rpj8 has joined the channel [23:33] Ravatar: i needed something similar and had a stackoverflow bookmark that referenced it [23:33] Ravatar: did you search there? [23:34] tauren: ok, thanks [23:34] tauren: i've looked on SO for client-side handling a while back [23:34] tauren: i should look again for node specific date libraries [23:35] xerox: tauren: please share your findings [23:35] xerox: :) [23:35] balaa has joined the channel [23:36] niftylettuce: https://github.com/mockko/livereload does something like this exist for node? [23:36] Ravatar: you could just module-ize this http://www.datejs.com/ [23:36] dnunes: niftylettuce: You have some "monitors", like nodemon. [23:37] dnunes: niftylettuce: I'm using forever + a custom-built python script to monitor my files in the current project, but nodemon seems nice. [23:37] Ravatar: in fact: https://github.com/kcbanner/datejs [23:37] Prometheus: niftylettuce: I've actually wondered that also [23:37] niftylettuce: I dont need to restart server [23:37] niftylettuce: only refresh browser [23:37] Prometheus: niftylettuce: it'd be easy enough to create one, if it doesn't [23:37] stagas: date json deserialization https://github.com/stagas/jsondate [23:37] willwhite has joined the channel [23:37] dnunes: niftylettuce: O.o [23:37] zeade has joined the channel [23:38] dnunes: niftylettuce: Are you changing server code and refreshing the browser? [23:38] Prometheus: niftylettuce: I believe livereload just uses websockets [23:38] tauren: xerox: http://stackoverflow.com/questions/2218564/discrepancy-in-json-stringify-of-date-values-in-different-browsers [23:38] tauren: http://stackoverflow.com/questions/4903722/working-with-timezones-and-daylight-savings-time-in-javascript [23:38] Prometheus: when it detects a change in the file hierarchy its watching, it sends a refresh to the browser [23:38] niftylettuce: well im also looking to try to find a way to do live Styl editing in Chrome [23:38] niftylettuce: but it seems easiest solution is just an auto-refresh on .styl or .js file changes [23:38] Prometheus: niftylettuce: might want to watch http://www.youtube.com/watch?v=N8SS-rUEZPg :> [23:39] Prometheus: oh [23:39] Prometheus: nvm then [23:39] dnunes: niftylettuce: If you need to refresh your browser, you don't need a solution for node. There are already some projects that refresh scripts/styles upon changes. [23:39] niftylettuce: Prometheus: yea i stay up to date with irish's work [23:39] Prometheus: dnunes: well he did point to one right there :) [23:39] Prometheus: there's also xrefresh which is pretty much the same thing [23:39] adrianmg has left the channel [23:40] cjm has joined the channel [23:41] tauren: Ravatar: I've used DateJS before client-side, but had some issues with it. the primary one being that it is enormous. [23:41] niftylettuce: I wonder if tjholowaychuk has thought of live .styl editing in chrome [23:42] niftylettuce: or a listener for css changes to do "styl -C $style.css $style.styl [23:42] Prometheus: niftylettuce: it probably has a watch [23:42] Prometheus: command* [23:42] niftylettuce: Prometheus: oh it does, but i mean for live editing [23:42] Prometheus: live editing? [23:42] DTrejo has joined the channel [23:42] Prometheus: just hook up livereload or xrefresh + watch command and you're set [23:42] niftylettuce: live edit CSS and it auto saves/converts to Styl [23:42] Prometheus: it's not "instant" [23:42] Prometheus: oh [23:42] niftylettuce: might save some time [23:42] Prometheus: dunno, seems more trouble than it's worth [23:43] Prometheus: seems like* [23:43] Prometheus: there's no autosaving for chrome's dev tools anyway [23:43] Prometheus: (they specifically said that in the presentation) [23:43] [[zz]] has joined the channel [23:45] niftylettuce: Prometheus: yeah i thought it didn't exist and just confirmed [23:46] niftylettuce: http://open-juve.blogspot.com/2011/06/connect-gedit-to-firebug.html i wonder if this could be ported to chrome fairly easily [23:47] niftylettuce: Prometheus: you can right click "Save As" though [23:47] piscisaureus has joined the channel [23:48] niftylettuce: Prometheus: from resources tab in inspector [23:48] Prometheus: niftylettuce: yes, but that is manual [23:48] Prometheus: you can't do it automagically [23:48] Prometheus: i.e. you can't say "Save on change" [23:49] Prometheus: niftylettuce: I'm not really sure what you are trying to get at, though [23:50] Prometheus: I think it's far easier to just edit the stylus/sass/less files on your local machine via your favorite editor while running a watch command on the files and livereload on the dirs [23:50] Prometheus: I usually don't edit things from the browser, or if I do, I just copy them over without always saving the file [23:51] Prometheus: I don't see why you would want to copy the whole screen.css (or what have you) file over and convert it [23:51] Prometheus: you'd just lose hierarchy [23:51] niftylettuce: Prometheus: yeah [23:51] unomi has joined the channel [23:51] niftylettuce: Prometheus: i was just stating, that it is possible to rtclick save [23:52] swistak has joined the channel [23:52] Prometheus: oh yeah, I know :) [23:54] Prometheus: I learned a lot from that video I posted earlier [23:54] Prometheus: about chrome dev tools [23:57] philtor has joined the channel [23:57] cafesofie has joined the channel [23:59] bnoordhuis has joined the channel [23:59] tim_smart has joined the channel