[00:00] sh1mmer: is it also url encoded? [00:00] unlink has joined the channel [00:00] al3xnull has joined the channel [00:01] Determinist: no, something else. [00:01] Determinist: looks like it's some binary stuff, not utf-8 [00:01] k1ttty has joined the channel [00:01] Determinist: oh, haha, i'm a retard. sorry guys. scratch that stuff above. [00:05] nodss has joined the channel [00:05] felipellrocha has joined the channel [00:06] Ra-id-Dead has joined the channel [00:06] nodss: In process of doing a conf on node in my city and I would like to invite some key node people, Can somebody tell me what would be some good people for speakers etc. [00:08] davidbanham has joined the channel [00:09] Determinist: nodss: well, check out the list of node people who were speakers in the last jsConf, it should give you an idea. [00:09] nodss: great thanks [00:09] tbranyen: nodss: i consider myself the key to node [00:09] tbranyen: feel free to invit eme [00:10] Determinist: :D [00:10] jerrysv: nodss: what's your city? [00:11] Ra-is-Dead has joined the channel [00:12] brfelipe: this node app (http://pastebin.com/EQnh2ffW) connects to the server and works on a single browser. if i open it in two browsers, they dont talk to each other... why? im using socket.io [00:14] tshpaper has joined the channel [00:16] eddanger has joined the channel [00:18] Bwen: brfelipe: try #socket.io I am no expert but I dont think thats how you use it... switch socket.emit for socket.send? and take off chat? its not on.('chat') but really on.('message') [00:21] jmoyers: brfelipe you're looking for client.broadcast() on line 14 [00:21] brfelipe: Bwen: yeah. it used to be socket.send until socket.io .7 i think... i still dnt get why the switch, or the difference between send and emit... but on('chat) is also .7... [00:21] jmoyers: also, you're looking for client.send() in the client side code for submit [00:21] Bwen: oh okay.. [00:22] jmoyers: ah -- could be that the api has changed [00:22] jmoyers: but thats been my understanding for a while [00:22] devrim has joined the channel [00:23] ryanfitz has joined the channel [00:24] AvianFlu has joined the channel [00:25] brfelipe: jmoyers: yeah. they just released .7 the other day... so i switched to that... but even on .6, i still could get both browsers to talk to each other... even thou everything else works :\ [00:25] jmoyers: broadcast sends to all clients [00:26] [[zz]] has joined the channel [00:26] jmoyers: you're emitting on a client object only, also [00:26] jmoyers: even via the 0.7 api [00:26] jmoyers: you're after something like: io.sockets.emit('this', { will: 'be received by everyone'); [00:26] jmoyers: on the server side [00:26] rchavik has joined the channel [00:27] azeroth_ has joined the channel [00:27] brfelipe: jmoyers: Bwen: sockets.broadcast.emit() did it :] [00:28] rchavik has joined the channel [00:28] jmoyers: good good [00:29] brfelipe: jmoyers: but it seems it sends to all browsers but the one that sent the packet :p weird... [00:29] jmoyers: i'd imagine thats expected [00:30] jmoyers: append your chat on the client side on the way out [00:33] brfelipe: jmoyers: id figure .emit would broadcast to everyone, including yourself, and .broadcast.emit to everyone but yourself... i guess you do .emit to send the user who sent the packets some feedback? [00:34] socketio\test\35 has joined the channel [00:35] sbisbee has joined the channel [00:36] dtan has joined the channel [00:36] abraxas has joined the channel [00:36] bartt has joined the channel [00:37] Ra-is-Dead: log [00:37] materialdesigner has joined the channel [00:37] isaacs: Ra-is-Dead: http://nodejs.debuggable.com/ [00:38] sioked has joined the channel [00:38] dhasenan has joined the channel [00:39] goatslacker has joined the channel [00:41] hippich_ has joined the channel [00:42] copongcopong has joined the channel [00:42] hippich_ has joined the channel [00:42] AvianFlu has joined the channel [00:43] tmpvar has joined the channel [00:44] aah has joined the channel [00:45] hippich_ has joined the channel [00:46] aah: possibly silly question. am I going to run into any issues with a 10-million key hash / object? Trying to decide between doing work in in a DB vs. in-memory. [00:46] sorensen: uh [00:47] hippich_ has joined the channel [00:47] sorensen: the issues will be with your environments capabilities i think [00:47] xerox: key/value storage is precisely made for that [00:47] hippich has joined the channel [00:47] aah: hrrm. xerox has a good point. I'll use redis. [00:48] aah: forgot it existed. :P [00:48] aah: ty! [00:48] xerox: xD [00:48] xerox: yw [00:48] mjr_: aah: V8 will get really slow if you add 10M properties to an object. [00:48] mjr_: Redis / memcache is the way to go for this. [00:49] mjr_: Or get a C++ module to hold it. [00:50] amerine has joined the channel [00:53] Xano has joined the channel [00:54] STUPIDWIFI has joined the channel [00:55] boogyman has joined the channel [00:56] mandric has joined the channel [00:56] brianloveswords has joined the channel [00:58] dividinglimits has joined the channel [00:59] marcello3d has joined the channel [01:00] dguttman_ has joined the channel [01:00] neoesque has joined the channel [01:02] Nuck: Wow, I may have a new text editor >_> [01:02] Nuck: Sublime Text is lookin' sexy thus far [01:05] hunterloftis has joined the channel [01:06] sioked has joined the channel [01:08] marcello3d: hallo [01:09] tmpvar has joined the channel [01:10] JackDanger has joined the channel [01:10] dshaw_ has joined the channel [01:11] devrim has joined the channel [01:12] JianMeng has joined the channel [01:12] Nuck: damnit [01:12] Nuck: This editor would be PERFECT [01:12] Nuck: If it didn't lack code folding [01:12] hunterloftis has joined the channel [01:13] Nuck: but woah damn it's made up for it in 3 lines of code. [01:13] hunterloftis: What are everyone's thoughts on designing a purely RESTful API-based web app? (vs a stateful, session-based, traditional rails-y app) [01:13] Nuck: hunterloftis: I'm doing a RESTful web app right now [01:13] mcluskydodallas has joined the channel [01:14] Nuck: Though it *does* have state [01:14] Nuck: In the form of loggedin [01:14] hunterloftis: Nuck: So am I - I mean entirely restful though. The client http server and the API http server can be separated [01:14] cha0s has joined the channel [01:14] broofa has joined the channel [01:14] Nuck: hunterloftis: client HTTP server? [01:14] cha0s has joined the channel [01:14] hunterloftis: Nuck: Yeah ditto, only the auth token is stored on the client server [01:14] Nuck: I'm confused. [01:14] hunterloftis: Nuck: Yeah, basically the API is totally separate from the app server [01:14] defeated: hunterlofti: this is how I build all of my web apps [01:15] hunterloftis: Nuck: so the app server is a client of the API [01:15] Nuck: hunterloftis: Oh, I don't have an app server really [01:15] Nuck: Though I will build one shortly after launch [01:15] Nuck: We're doing full AJAX [01:15] hunterloftis: defeated: I'm interested in the positives/negatives, etc [01:15] Nuck: But I'm gonna add fallbacks within a week of launch or so [01:15] hunterloftis: Nuck: Ditto, everything is 100% ajax (data-wise) [01:15] Nuck: hunterloftis: I mean the client loads directly off my API server [01:16] defeated: hunterlofti: mostly positives in my experience, it enforces good practices (state === bad, imo) [01:16] Nuck: I don't have any "state" [01:16] defeated: hunterlofti: if you were trying to go full on crazy REST, HATEOAS style, it can get a bit complex [01:16] Nuck: But I have logging in [01:16] hunterloftis: defeated: that's what I've been finding as well. Starting a new project now and considering whether to duplicate the API architecture [01:16] Nuck: And that's the extent of my statefulness. [01:16] Nuck: And it's not required except where something modifies a page on the server, which is done via POST [01:17] Nuck: or PUT or DELETE [01:17] defeated: hunterlofti: But I'm more pragmatic when it comes to HATEOAS than some RESTful adherents [01:17] hunterloftis: defeated: Ours is also a predetermined REST system, there's no figuring out by different clients how shit works. I think that's insane for most practical applications [01:17] hunterloftis: Nuck - yeah same [01:17] defeated: hunterlofti: other benefit is your web app is just another app, if you want to add mobile or desktop apps, it's easy to do [01:17] hunterloftis: defeated: Yeah exactly [01:18] hunterloftis: defeated: On the other hand, it relies very heavily on JS... but these days, I'm wondering if that even matters [01:18] Nuck: hunterloftis: I'm gonna have Facebook-esque fallbacks [01:18] defeated: hunterlofti: if it became a problem you could always use node to push the js to the server ;) [01:19] Nuck: Where the server wil generate the HTML and serve it if they don't have JS, otherwise, the links will be interrupted by JS and served via AJAX [01:19] Nuck: The JS will also handle rewriting the URL and such [01:19] coyo: question :: are there any good books on node.js ? [01:19] defeated: would love to chat more, but must step away for a bit now~ [01:19] coyo: o/ [01:19] hunterloftis: defeated: cheers [01:19] coyo: cya defeated [01:19] coyo: hey all, how be? [01:20] Nuck: coyo: Books? Prolly not. [01:20] JackDanger: coyo: http://visionmedia.github.com/masteringnode/ [01:20] Nuck: Nobody uses books anymore. [01:20] Nuck: JackDanger: It's all about the ebooks, right? [01:20] JackDanger: And if that's too basic for you, just fork it and add more :) [01:20] coyo: JackDanger: thanks! [01:21] coyo: you saved me 50 bucks [01:21] Nuck: JackDanger: lmao great advice [01:21] coyo: epub <3 [01:21] Nuck has joined the channel [01:23] sioked has joined the channel [01:24] isaacs_ has joined the channel [01:24] CStumph has joined the channel [01:28] dwasp has joined the channel [01:28] Adron has joined the channel [01:29] Dreamer3: hmmm [01:30] johnnywengluu: fs.unlink() is for removing a file? [01:30] gavin_huang has joined the channel [01:30] jacter has joined the channel [01:31] dwasp has left the channel [01:31] skm has joined the channel [01:32] coyo: ACTION yawns sleepily [01:36] jbc has joined the channel [01:36] jbc: so, um, total newbie with an obvious question [01:37] Aikar: how do you 'rauthenticate' to npm again? [01:37] isaacs: just run `npm adduser` again [01:37] isaacs: Aikar: ^ [01:37] Aikar: it asked me for user/email then said npm ERR! adduser Error: unauthorized Name or password is incorrect [01:37] isaacs: Aikar: you may need to reset the password. [01:37] Aikar: i just upgraded npm when the problem started [01:37] infynyxx has joined the channel [01:37] Aikar: :/ [01:37] Aikar: it worked last night [01:37] isaacs: Aikar: http://admin.npmjs.org/reset [01:38] Aikar: npm upgrade broke it [01:38] isaacs: Aikar: oh, ok, then it might be the _authCrypt thing? [01:38] isaacs: Aikar: remove that line from the .npmrc file, and then try to adduser [01:38] jbc: say I want to make a webapp with many, many small ajax requests - is there a way to pipe them through a persistent connection and so avoid all the setup/teardown? [01:38] isaacs: Aikar: if that breaks, then reset the pw [01:38] Aikar: so remove the _auth = line? [01:38] isaacs: ACTION heading out, email if you stay stuck [01:38] isaacs: yeah [01:39] isaacs: Aikar: if you reset the password and remove the _auth line, then you're literally starting over fresh. [01:39] isaacs: Aikar: as in, then the record is gone from the _users db [01:39] isaacs: Aikar: do you have any caps or funny chars in your un/pw? [01:39] Aikar: no [01:39] isaacs: i think : is the only thing that doesn't work in teh pw [01:39] isaacs: but the un has to be lowercase now [01:39] Aikar: i dont even really know what my pw is.. lol [01:39] isaacs: ok. yeah, you'd get a different error anyhow. [01:39] isaacs: heh. then definitely reset it :) [01:40] isaacs: ok, i'm out. [01:40] cha0s has joined the channel [01:40] cha0s has joined the channel [01:41] xandrews has joined the channel [01:41] Aikar: confirm email page isnt loading now ;( [01:42] Poetro has left the channel [01:42] Determinist: oh, ffs [01:42] Determinist: any of you guys ever used crypto verifiers with an openssl public key and a signature? [01:44] zivester has joined the channel [01:46] fairwinds has joined the channel [01:46] newy_ has joined the channel [01:48] charleyd has joined the channel [01:49] Aikar: damnit i have no idea what password i used and the reset password thing is broken [01:49] George4 has joined the channel [01:50] smtlaissezfaire has joined the channel [01:50] elpinguino has joined the channel [01:51] tmpvar has joined the channel [01:51] hunterloftis: With express, how do you guys like to handle errors in controllers? I've seen some example of someone doing like... next(new Error('stuff')) or something... [01:53] ericbarnes has joined the channel [01:58] bentruyman has joined the channel [02:02] sorensen: anyone know how to name a section in docco? [02:05] soulofpeace has joined the channel [02:05] ezl_ has joined the channel [02:05] soulofpeace has left the channel [02:05] Emmanuel__ has joined the channel [02:05] mike5w3c has joined the channel [02:08] sweetd has joined the channel [02:09] George4: Hi does anyone know of a good example of running a https server using node? I found some examples but they are using a setsecure method which has been deprecated. I fail at google :( [02:09] jesusabdullah: sorensen: #Section-name ? I believe it uses markdown [02:09] ngs has joined the channel [02:09] George4: i am particularly looking for an example of running faye with node.js on ssl [02:10] sorensen: yeah, just thought there might be a cli way to name the sections based on folders [02:10] sorensen: in RE: to the menu's it makes [02:10] kersny: George4: http://nodejs.org/docs/v0.4.8/api/https.html for https, not sure about faye on top of that [02:11] George4: oh thank you :) [02:12] kawaz_air has joined the channel [02:14] seawise: guys, with socket.io v.0.7 w/ channels support is Faye still a thing to be used? [02:14] caiges has joined the channel [02:15] sioked has left the channel [02:16] George4: re: seawise I would also love to know everyone's opinion. I implemented Faye several months ago but I never look into using socket.io directly. Curious to what everyone thinks about Faye vs. just using Socket.io. [02:16] plutoniix has joined the channel [02:17] seawise: I have worked with socket.io v 0.6 and very excited it finally have channels support [02:17] seawise: have not worked w/ Faye though [02:17] jhurliman: can jade do date formatting in a template? [02:17] seawise: but socket.io is very easy [02:17] AvianFlu has joined the channel [02:18] jesusabdullah: sorensen: iirc docco doesn't have a lot of feats. "quick and dirty" is a good description of what it is/does [02:19] sorensen: hehe, yep [02:19] caolanm has joined the channel [02:19] abraham has joined the channel [02:20] hosh_work has joined the channel [02:24] jerrysv has joined the channel [02:25] dyer has joined the channel [02:25] dyer has joined the channel [02:25] Aikar: https://gist.github.com/1041762 - how can i fix/improve this? I want to define getter that when requested, loads data and then sets the value and removes the getter. just if i call global[x] = blah it goes into infinite loop in the setter :/ [02:25] k1ttty has joined the channel [02:26] JoshC1 has joined the channel [02:29] ericbarnes: I am trying to install on a mac and running configure throws this error - http://dl.dropbox.com/u/2880058/Picture%206.png [02:29] ericbarnes: Anyone have any ideas what I am missing? [02:29] AvianFlu has joined the channel [02:30] avalanche123 has joined the channel [02:32] Lorentz: hoxy is pretty cool [02:32] Lorentz: but how to (ab)use it... [02:34] unomi has joined the channel [02:34] fizx has joined the channel [02:35] newy_ has joined the channel [02:36] ryan0x2_ has joined the channel [02:36] brianc has joined the channel [02:36] brianc: oh god [02:36] brianc: i some how blew up my npm account [02:36] brianc: cannot publish anymore [02:36] brianc: life is shit [02:36] Lorentz: D: [02:37] brianc: when I go to the "confirm" link to confirm resetting the account [02:37] brianc: it just loads and loads but never finishes [02:37] brianc: on the admin.npm.org site [02:38] pyrotechnick has joined the channel [02:38] pyrotechnick: SubStack: ping [02:39] hlindset has joined the channel [02:39] hlindset has joined the channel [02:40] wilmoore has joined the channel [02:40] nuba has joined the channel [02:42] techwraith has joined the channel [02:42] mapleman has joined the channel [02:43] ryanfitz has joined the channel [02:43] Aikar: brianc: same affecting me [02:44] Aikar: upgraded npm from the RC to latest (been inactive lately) and now my password doesnt work [02:45] jakehow has joined the channel [02:45] zivester has joined the channel [02:46] jtsnow has joined the channel [02:46] brianc: Aikar: good to know I'm not the only one [02:46] brianc: Aikar: maybe we need isaacs or another npm master to help us [02:47] brianc: Aikar: I can't publish to any of the packages I own. I went through the password reset thing to no avail [02:47] pyrotechnick: it's not that hard…dont use HEAD lol [02:48] brianc: pyrotechnick: either it's too late or the problem isn't related to using HEAD because I'm on 1.0.6 and can't publish anything [02:48] mwhooker has joined the channel [02:49] pyrotechnick: i can [02:49] brianc: pyrotechnick: awesomeness for you [02:49] pyrotechnick: i mean i can on 1.0.6 but i havent done it for a while? want me to test? maybe it's the registry [02:49] pyrotechnick: let me update something [02:49] brianc: pyrotechnick: muchas gracias. :) [02:50] brianc: the weird thing is i reset my password...and went back through the `npm adduser` stuff...still can't publish packages I used to own [02:50] pyrotechnick: hmm [02:51] fakewaffle has joined the channel [02:51] pyrotechnick: isabel:courier pyrotechnick$ npm publish [02:51] pyrotechnick: npm WARN Sending authorization over insecure channel. [02:51] pyrotechnick: isabel:courier pyrotechnick$ npm -v [02:51] pyrotechnick: 1.0.6 [02:52] brianc: daaaang! [02:52] pyrotechnick: want me to try master? [02:52] brianc: aww that's okay [02:52] brianc: I dunno what I did. :( [02:52] pyrotechnick: just try reinstall [02:52] brianc: I'm sad in my heart though...I might need to talk to someone who owns the registry and ask them what's the dealy [02:53] hkjels_ has joined the channel [02:53] Aikar: brianc: gotta edit ~/.npmrc to comment out the _auth line [02:53] pyrotechnick: aha! [02:53] Aikar: brianc: howd you get password reset to work? :( [02:54] pyrotechnick: it is broken... [02:54] brianc: i clicked the link and it timed out [02:54] brianc: so i kept re-sending the password reset email [02:54] brianc: and clicking link [02:54] brianc: until eventually it worked [02:54] brianc: but only sorta [02:55] brianc: hmm....perhaps I try to bug isaacs tomorrow during the day [02:57] pyrotechnick: yeah it's definately broken > 1.0.6 somewhere [02:57] pyrotechnick: ill try master [02:58] omni5cience_ has joined the channel [02:59] bitwise_ has joined the channel [02:59] xandrews has joined the channel [02:59] brianc: i really can't remember my old npm password [02:59] brianc: maybe the password i used to use to publish is different? [03:00] brianc: resetting my account works okay [03:00] brianc: I go to "admin.npm.org" and then I fill out the form [03:00] brianc: i get the email [03:00] brianc: click the link [03:00] brianc: and then I can re-create my account with `npm adduser` [03:00] dipser_ has joined the channel [03:00] brianc: after this process...cannot publish packages I used to own [03:01] joshthecoder has joined the channel [03:02] brianc: *shrug* will look at it tomorrow I guess... :) [03:02] deedubs has joined the channel [03:03] pyrotechnick: admin doesnt resolve for me [03:03] pyrotechnick: lol the reset form isnt working for me says it cant find my username [03:03] pyrotechnick: something is broken [03:04] kruckenb has joined the channel [03:04] AvianFlu has joined the channel [03:04] boehm has joined the channel [03:06] brianc: haha [03:06] brianc: woo!! [03:06] brianc: well thanks for looking pyrotechnick :) [03:06] pyrotechnick: what [03:06] brianc: sarcasitic woo!! sorry [03:06] pyrotechnick: ahh lol [03:06] pyrotechnick: why does isaacs expose salt/hash here [03:06] pyrotechnick: http://registry.npmjs.org/-/user/org.couchdb.user:isaacs [03:07] pyrotechnick: seems bad [03:07] dmcquay has joined the channel [03:08] Corren has joined the channel [03:10] chrisdickinson: brianc: i've been writing an ORM library for node, and i just wanted to say thanks (again?) for node-pg (it's pretty awesome!) [03:10] brianc: chrisdickinson: awesomeness. I've been writing an ORM too! where's your repo? Would love to collaborate [03:11] chrisdickinson: brianc: https://github.com/chrisdickinson/ormnomnom/tree/feature%2Frewrite [03:11] brianc: ohh i saw this in the npm registry [03:11] chrisdickinson: it's got an eye towards being really nice to use in coffeescript [03:11] brianc: but it has no /test folder and my heart broke into a million pieces [03:11] newy_ has joined the channel [03:11] chrisdickinson: https://gist.github.com/1035178 [03:12] chrisdickinson: i'm working on that now, actually :) [03:12] brianc: ah sweet [03:12] chrisdickinson: it's currently passing my (meager) test suite using your node-postgres and developmentseed's sqlite3 [03:13] brianc: this is all I got so far really....https://github.com/brianc/keeper/blob/master/test/sql.js [03:13] brianc: it's a whole 4 days old. haha [03:13] chrisdickinson: nice [03:13] brianc: it's very database centric [03:13] brianc: hence the "R" in oRm [03:13] bitwise_: any suggestions on a good json inspector from an external server req [03:14] chrisdickinson: brianc: definitely; mine's patterned after django's orm, which is a little bit further from the metaphorical action :) [03:14] willwhite has joined the channel [03:15] chrisdickinson: the other bit i want to put together is a nice migration library for ormnomnom. i've got some ideas, but the big missing piece is having a library that can register commands / and have other libraries register themselves with those commands [03:16] Determinist: ACTION yells into the sky [03:16] Determinist: openssl support on node is making me want to kill puppies [03:16] AvianFlu has joined the channel [03:16] brianc: chrisdickinson: yeah I still trying to figure that out too [03:16] brianc: chrisdickinson: i kinda thinking orm should just be a way to add plugins to a "model" definition [03:17] brianc: chrisdickinson: so you can add a "migration" plugin, a "sql storage" plugin, a "relationship" plugin, "validation"...etc... [03:17] chrisdickinson: interesting! [03:17] brianc: chrisdickinson: because what would be nice is adding a "ajax storage" plugin in the browser & you can use same domain object logic [03:17] materialdesigner has joined the channel [03:17] jamescarr: hey, how can I get something by the most recent timestamp using mongoose? [03:18] brianc: chrisdickinson: but I dunno if this will ever get off the ground. just doing basic now for a client project [03:18] chrisdickinson: brianc: so your ORM would work both in-browser and out (that would be cool) [03:18] chrisdickinson: my fork of codysoyland's pieshop aims to do something like that, but it's designed for talking to django-tastypie (an API... API) [03:18] brianc: chrisdickinson: that's the long-term dream. reuse business logic on both sides (or the parts you want to "plug in" on both sides) and have storage mechanism be swapable. not sure it's possible [03:18] bartt has joined the channel [03:19] chrisdickinson: brianc: the only problem with ormnomnom working in that fashion (thus far) is that i'm using Object.defineProperty to create aliased field names [03:19] chrisdickinson: (for instance, any primary key field is automatically aliased to `pk` on model instances) [03:20] brianc: chrisdickinson: that's cool though. sometimes you gain by doing something tailored to 1 environment. I was thinking about having fields define getter & setter methods "get('fieldName')" and "set('fieldName')" [03:20] chrisdickinson: i'm probably not going to really-for-true release ormnomnom until i half at least the documentation coverage that node-pg has (not to mention test coverage), though [03:20] brianc: chrisdickinson: but I think I might just not do dirty-tracking [03:20] brianc: chrisdickinson: haha thanks. :) [03:20] brianc: b [03:21] chrisdickinson: np :) [03:21] chrisdickinson: my long term goal is that ormnomnom should "swallow" as many async/callback-y bits as possible [03:22] chrisdickinson: so that between it and my template library, I can write code in a fairly natural way that looks "blocking", but really is just a sleight of hand passing around event emitters. [03:22] \sega has joined the channel [03:23] brianc: that's groovies [03:23] brianc: I need to get node-postgres working with libuv...that's gonna be a long weekend [03:23] chrisdickinson: (for instance, https://gist.github.com/1035178#L9, i'm passing a full-fledged async query into a creation query that's also async, without having to worry about binding listeners or callbacks) [03:24] chrisdickinson: oof. yeah. [03:24] chrisdickinson: i've gotta head for now -- definitely keep in touch re: orm stuff, and keep up the good work! [03:24] brianc: peace! [03:24] brianc: I like the .schema thing you did [03:26] patrickarlt has joined the channel [03:27] Horofox has joined the channel [03:29] AvianFlu has joined the channel [03:29] dnunes has joined the channel [03:30] willwhite has joined the channel [03:32] Badababuba has joined the channel [03:32] fakewaffle has joined the channel [03:35] tbranyen has joined the channel [03:36] Corren has joined the channel [03:38] brianc: anyone recommend a good logging module? [03:39] niftylettuce: chapel++ [03:39] v8bot: niftylettuce has given a beer to chapel. chapel now has 13 beers. [03:39] Krytoss has joined the channel [03:39] upstream has left the channel [03:39] brianc: winston is ish don't thinkso [03:40] Nuck: I need a simple way to generate an identifier. [03:41] ericbarnes has left the channel [03:41] Nuck: Actually nevermind [03:41] brianc: Math.random(1,103913810938) [03:41] pyrotechnick: id ++; [03:41] unlink: Nuck: check out the BSON spec... [03:41] brianc: brianc++ [03:41] v8bot: brianc: Don't cheat! You can't give a beer to yourself. [03:41] brianc: v8bot-- [03:41] v8bot: brianc has taken a beer from v8bot. v8bot now has 28 beers. [03:42] brianc: PWND [03:42] jamescarr: hey, anyone using mongoose able to tell me how to do a findOne and get the most recent based on a date property like arrival? [03:42] jamescarr: I tried {$orderBy: {arrival:1}} but no dice [03:44] indexzero has joined the channel [03:45] sorensen: uhhhh [03:46] sorensen: i should know this [03:46] jamescarr: fucking failure man [03:46] jamescarr: thats what this makes me feel like :) [03:46] sorensen: sort: [['created',-1]] [03:46] sorensen: one moment... [03:47] jamescarr: I saw that on a stackoverflow post [03:47] jamescarr: still no dice :S [03:47] brianc: anyone notice google's github repo searching is major a major failure recently? [03:47] AvianFlu has joined the channel [03:48] sorensen: Model.find({}, [], [['created', -1]], function(error, docs) { [03:48] sorensen: query, fields, sort [03:48] jamescarr: oh wait [03:48] jamescarr: +1 [03:48] jamescarr: not -1 [03:48] sorensen: do what you want [03:48] sorensen: i get the most recent using -1 [03:49] jamescarr: hmmm [03:49] jamescarr: one sec [03:49] felipellrocha has joined the channel [03:50] jamescarr: I get an error :( [03:50] jamescarr: one sec [03:50] Aria has joined the channel [03:51] pt_tr has joined the channel [03:51] jamescarr: https://gist.github.com/1041866 [03:51] gibybo has joined the channel [03:51] hippich: http://bit.ly/k1Xi8d [03:51] mscdex_ has joined the channel [03:53] jamescarr: this seems to get me the most recent: Lead.find({}, [], {sort:[['arrival',-1]]}, this.callback); [03:53] jamescarr: thanks for your help [03:53] sorensen: :) [03:53] jamescarr: ugh... here's my problem though... [03:53] jamescarr: find will sort it [03:54] jamescarr: but I want to do a findOne [03:54] sorensen: hmm [03:54] jamescarr: and when I do findOne I get the older one [03:54] sorensen: look at the docs =\ [03:54] sorensen: i dunno [03:54] joshthecoder has joined the channel [03:54] jamescarr: yeah, the docs are spotty there. I sent an email on the mailing list [03:56] Nican_ has joined the channel [03:56] hdon has joined the channel [03:58] jamescarr: oh well... I'll just find and return the first one :-P [04:00] Horofox has left the channel [04:01] rpj8 has joined the channel [04:01] Lorentz: Hmm, a nodejs based rtorrent web interface. [04:02] rpj8: hey guys. still trying to deploy my stuff to nodester. i'm getting 1TypeError: Argument must be a string [04:02] rpj8: in the nodester logs [04:02] rpj8: when I try to connect on a websocket in google chrome [04:02] rpj8: works fine locally on chrome + firefox [04:02] rpj8: works on nodester only on firefox. [04:02] rpj8: anyone else run into this? [04:06] indexzero: rpj8: nodester is very out of date [04:07] indexzero: I wrote node-http-proxy, which they use as their reverse proxy [04:07] indexzero: and the version they maintain in nodester is now incompatible with node > 0.4 [04:07] indexzero: https://github.com/nodester/nodester/blob/master/lib/3rdparty/node-http-proxy.js [04:07] rpj8: orly. [04:07] rpj8: welp. [04:07] indexzero: rpj8: Yes, proxying websockets is nontrivial. We've been working hard at it in node-http-proxy [04:07] indexzero: but only the latest tags support it stabley [04:08] rpj8: gotcha. so if I'm not mistaken you're part of nodejitsu? [04:08] indexzero: indeed [04:08] rpj8: :) [04:08] rpj8: i'm learning my node.js celebs [04:08] indexzero: lol [04:08] rpj8: slowly but surely [04:08] rpj8: i'll request an invite at nodejitsu [04:08] indexzero: now there's something I thought I would hear associated with my name [04:09] indexzero: rpj8: the best way to get an invite is to hang out in the #nodejitsu irc room [04:09] rpj8: well do [04:09] indexzero: rpj8: you on github? [04:09] rpj8: yep: https://github.com/rjohnston [04:09] rpj8: nothing spectacular though, tbh [04:10] rpj8: but i'm getting there :) still a javascript newbie [04:10] indexzero: cool, I've got some friends in Pitt [04:10] mykul has joined the channel [04:10] indexzero: we're in NYC mostly [04:10] indexzero: nodejitsu that is [04:10] rpj8: ah sweet [04:10] marcello3d: indexzero: are there any good nyc node meetups? [04:14] marcello3d: alright. falling asleep. catch you all later! [04:15] jamescarr: just so you know [04:16] jamescarr: indexzero is a super hero ;) [04:16] indexzero: jamescarr: my super power is not sleeping [04:16] jamescarr: hehehehe [04:16] indexzero: marcello3d: http://www.meetup.com/nodejs/ [04:16] mrryanjohnston: woof. [04:16] jamescarr: more mongodb peeps... is the appropriate way to reference another doucment in a document to use an ObjectId? [04:17] mrryanjohnston: I should really be sleeping [04:20] abraham has joined the channel [04:21] confoocious has joined the channel [04:22] George4 has left the channel [04:24] jamescarr: damn [04:24] jamescarr: this time of night == empty chat rooms :( [04:27] iffy|x200: hmm [04:27] iffy|x200: does anyone have nodeJS library recommendations for authenticating with Facebook? [04:28] dspree has joined the channel [04:28] dspree has joined the channel [04:30] Charuru has joined the channel [04:35] abraxas has joined the channel [04:36] blueadept has left the channel [04:36] bitwise_ has joined the channel [04:37] vikstrous has joined the channel [04:40] bitwise_: hey im trying to pass res.send as a callback, but getting a TypeError... anyone know why this wouldnt work? https://gist.github.com/89de53ebbef60663351f [04:41] zeade has joined the channel [04:42] bitwise_: the error: https://gist.github.com/0edc5e7084ffb7e95094 [04:42] pastak_ has joined the channel [04:43] mapleman has joined the channel [04:44] hkjels_ has joined the channel [04:44] jacobolus has joined the channel [04:46] hoax__ has joined the channel [04:46] Skola has joined the channel [04:47] unomi has joined the channel [04:49] jamescarr: iffy|x200, I have been using mongoose-auth [04:49] jamescarr: so far so good [04:50] iffy|x200: jamescarr, thanks for the rec! i'll look into it [04:50] iffy|x200: appreciate it [04:56] _jgr has joined the channel [04:57] CodyGray has joined the channel [04:57] AvianFlu has joined the channel [04:58] CodyGray has left the channel [05:00] mrmanager has joined the channel [05:00] kmiyashiro: how the hell do you make IE accept application/json [05:00] kmiyashiro: keeps trying to download it [05:03] madzak has joined the channel [05:06] dnunes: kmiyashiro: You do not. [05:06] dnunes: kmiyashiro: :) [05:06] kmiyashiro: I heard if you unset the charset, it accepts it [05:06] kmiyashiro: can't figure out how to do that right in express [05:06] dnunes: kmiyashiro: I mean... what do you expect a browser to do with some json chunk of text? [05:07] joshthecoder has joined the channel [05:09] konobi: well, it's not a chunk of text... it's a chunk of json =0) [05:09] Guest86655 has joined the channel [05:10] pyrotechnick has joined the channel [05:10] davidban_ has joined the channel [05:11] SubStack: pyrotechnick: pongify [05:11] SubStack: *ity [05:11] xeodox has joined the channel [05:14] havenn has joined the channel [05:17] davidbanham has joined the channel [05:20] wbw72 has joined the channel [05:21] saurabhverma has joined the channel [05:22] squeese has joined the channel [05:23] smtlaissezfaire has joined the channel [05:23] jamescarr: anyone using redis store in express? [05:24] DelvarWorld has joined the channel [05:25] colin_ has joined the channel [05:25] DelvarWorld: this isn't node, but how come when in my bashrc I do function bob { export BOB=true } and that function is run, BOB isn't true anywhere else in the bashrc file [05:27] dominictarr has joined the channel [05:32] mcavage has joined the channel [05:33] saurabhverma1 has joined the channel [05:33] _jesusabdullah: Perhaps the function closes over BOB? [05:33] _jesusabdullah: I'm not very good at bash [05:34] SubStack: DelvarWorld: you have to source it [05:34] SubStack: using the source command or with . [05:34] brianseeders has joined the channel [05:34] SubStack: to export environment variables into the environment [05:35] SubStack: or you can eval() it in bash [05:35] DelvarWorld: as in resource the whole file? [05:35] DelvarWorld: re-source* [05:35] SubStack: ... [05:36] SubStack: DelvarWorld: http://bash.cyberciti.biz/guide/Source_command [05:36] bitwise_: i have a module that uses mikael's request module, and when i run the page twice there is a variable that erroneously gets concatenated multiple times inside my exported function. is this a pitfall of modules? [05:36] SubStack: oh wait! hmm [05:37] DelvarWorld: SubStack: I have a function that's in my shell, like PS1="\$(funcName)" and that is function funcName { export BOB=true } [05:37] mhausenblas has joined the channel [05:37] DelvarWorld: but when I do echo $BOB it's not true [05:38] DelvarWorld: basically i'm trying to make a variable that sets to true / false depending on if you're in a git repo [05:38] DelvarWorld: so that other functions can use it [05:38] SamuraiJack has joined the channel [05:39] AvianFlu has joined the channel [05:39] sridatta has joined the channel [05:39] akshatj has joined the channel [05:39] 16SAAL5F6 has joined the channel [05:39] 16SAAL5F6 has joined the channel [05:39] akshatj has joined the channel [05:40] kbni has joined the channel [05:41] jtsnow has joined the channel [05:42] Aphelion has joined the channel [05:42] pyrotechnick: SubStack: ping [05:42] pyrotechnick: you're back! [05:42] ambroff has joined the channel [05:44] Dreamer3: does onExit still work? [05:44] Dreamer3: i can't figure out how to use it [05:46] newy_ has joined the channel [05:49] SubStack: pyrotechnick: it's true [05:51] eventii has joined the channel [05:51] pyrotechnick: have you thought anymore about syncing prims in dnode? [05:53] SubStack: pyrotechnick: I haven't had a project that would benefit from synchronization primitives [05:53] SubStack: you could always hack something up as a supplementary plugin though [05:54] pyrotechnick: i have been ;) my other question is can what is exposed be manipulated once the connections are established [05:55] socketio\test\26 has joined the channel [05:56] Dreamer3: hmmm [05:56] Dreamer3: so i can't do IO on exit? [05:56] JoshC1 has joined the channel [05:56] mscdex_: Calvin: synchronization primitives [05:56] Calvin: synchronization primitives [05:56] mscdex_: :D [05:56] Dreamer3: how would i do something like read in 20 files async and then concat them at the end? [05:57] mscdex: Dreamer3: have the files in an array and just keep calling the same function that reads the file for each file in the array [05:57] mscdex: when you've reached the end of the array, concat them [05:57] Dreamer3: errr [05:57] Dreamer3: the files are read async [05:58] mscdex: i know :) [05:58] Dreamer3: when ir ead the end of the array the files are still loading [05:58] Dreamer3: i'm stuffing an array [05:58] mscdex: no, only go on to the next file in the list once you have finished the current file [05:58] Dreamer3: i'm asking how to do it async [05:58] Dreamer3: i want to load all the files at once [05:58] Nuck has joined the channel [05:59] mscdex: you want to concatenate them in order right? [05:59] Nuck: ACTION has dcided to try out irssi [05:59] Lorentz: irssi is good stuff. [06:00] Lorentz: Remember to run it inside screen or dtach etc [06:00] Dreamer3: mscdex: the array preservers the order [06:02] Nuck has joined the channel [06:04] Nuck: Fuck irssi [06:04] Nuck: It is a piece of shit. [06:04] _jesusabdullah: Incorrect. [06:04] davidbanham: LimeChat ftw. Not nearly as flexible as irssi, but goddamn it's pretty. [06:05] _jesusabdullah: mirc, I'm happy for you and I'm-a let you finish, but irssi is the best irc client of all time! [06:05] Nuck: mIRC FTW [06:05] sorensen: lol [06:05] sorensen: FTL [06:05] Nuck: ACTION is running mIRC + SysReset (I dig the autojoin mods and such) [06:06] davidbanham: mIRC was the first thing I ever "programmed" in. Writing a chatroom helper bot WAY back in the day. [06:06] mscdex: Dreamer3: something like this: https://gist.github.com/f1a68f839201c2d6a6e4 [06:06] sorensen: how old is mIRC? [06:06] Nuck: davidbanham: Wow, that's pretty nice :D [06:06] Nuck: sorensen: Fucking ancient [06:06] Nuck: But it's updated [06:06] sorensen: i feel i've been using it since i was 12 [06:06] sorensen: and i'm 24 now [06:07] Nuck: '[10:59] [Nuck VERSION reply]: mIRC v7.1 Khaled Mardam-Bey [06:07] davidbanham: sorensen: 1995 according to Wikipedia. [06:07] sorensen: ahahhaa [06:07] sorensen: then i have lol [06:07] Nuck: So it's damn near as old as the public internet XD [06:07] sorensen: well [06:07] Nuck: Didn't the internet open to commerce in 1994? [06:08] sorensen: i think it was before that [06:08] goatslacker has joined the channel [06:08] Nuck: though companies had had sites for years before [06:08] Nuck: But most were tech industry [06:08] davidbanham: I would have picked it up around 1998 I'd say. [06:08] temp01 has joined the channel [06:08] Nuck: I picked it up... a few years ago :P [06:08] Dreamer3: mscdex: thanks, interesting [06:08] sorensen: hehe [06:08] Nuck: Before that, I didn't get on IRC much, and when I did, I used ChatZilla. [06:08] sorensen: i used irc before anything [06:08] Nuck: It's only recently, with Node.js, that I got back onto IRC. [06:09] sorensen: ^++ [06:09] Nuck: And now it's my fifteenth home on the web. <3 [06:09] sorensen: same here [06:09] Nuck: But 3rd in my heart. [06:09] davidbanham: You know, the mIRC scripting language doesn't actually look as horrible as I remember it being. - http://en.wikipedia.org/wiki/MIRC_scripting_language [06:09] sorensen: bah, i need to get back to writing docs [06:09] sorensen: sad thing to do in your spare time [06:09] sorensen: for something that will probably never take off [06:10] catshirt has joined the channel [06:10] mscdex: Nuck: sorensen: http://www.youtube.com/watch?v=99smfEQW8sA [06:10] sorensen: lmfao [06:10] sorensen: i feel insulted [06:11] sorensen: i hate you [06:11] sorensen: that link is grandma approved [06:11] sorensen: :D [06:11] mscdex: :-D [06:11] davidbanham: "If we crave live interaction, we can have typewritten conversations in chat rooms" [06:12] sorensen: dont tell me thats from the video [06:12] squeese has joined the channel [06:12] sorensen: ACTION shoots self [06:12] sorensen: holy shit i remembered the command [06:12] sorensen: i couldnt think of it for months [06:12] sorensen: and suddenly in my drunken state i just typed it out without thinking [06:12] davidbanham: sorensen: 0:56 [06:13] sorensen: never gonna do it [06:13] Dreamer3: mscdex: wait, isn't that still doing is sequentially? [06:13] sorensen: never gonna give you up [06:13] sorensen: ... [06:13] Dreamer3: mscdex: each successful reads just triggers the next operation [06:13] mscdex: Dreamer3: yes [06:13] Dreamer3: so not at all what i asked how to do :) [06:14] mscdex: Dreamer3: erm.... how do you intend to concatenate them in order then? [06:14] Dreamer3: order isnt' important [06:14] mscdex: Dreamer3: any of the reads can finish at any time [06:14] Dreamer3: well it is, but they are stuffed in the array by index [06:14] mscdex: what is stuffed in the array? [06:15] Dreamer3: contents[items.indexOf(item)] = item.contents() [06:15] Dreamer3: etc [06:15] Dreamer3: so when finished contents holds everything in order [06:15] colin_ has left the channel [06:15] ph^ has joined the channel [06:15] mscdex: ok, so an object [06:15] jacter has joined the channel [06:15] Dreamer3: but i'm trying to figure out how to catch whena ll processing is finished [06:15] LiamMagee has joined the channel [06:16] mscdex: Dreamer3: just have a local counter [06:16] Nuck: mscdex: That video is fucking awesome. [06:16] Dreamer3: hmmm [06:19] sorensen: im going to try and convince the office to watch it [06:19] tk has joined the channel [06:19] sorensen: as a follow up to the ancient erlang video we watched [06:19] sorensen: :D [06:20] Nuck: sorensen: linky? C: [06:21] sorensen: lol i dont have it [06:21] sorensen: they found it [06:21] sorensen: h/o [06:21] Nuck: damn [06:21] sorensen: http://www.youtube.com/watch?v=uKfKtXYLG78 [06:21] sorensen: ahahahhaa [06:21] sorensen: you have to watch it [06:21] sorensen: 'hello mike' [06:21] sorensen: 'hello dave' [06:21] Dreamer3: grrr [06:22] sorensen: its a comedy [06:22] Dreamer3: the file read is behind a file stat operation [06:22] Dreamer3: this is insane [06:22] sorensen: i love it [06:22] Dreamer3: i guess i can just count that as an op [06:22] sorensen: oh i love chrome [06:22] sorensen: y + tab and i'm searching youtube [06:22] sorensen: but then again, if i deault to duckduckgo [06:22] sorensen: !python logging will search the docs [06:22] Dreamer3: hmmm [06:23] Dreamer3: still not working [06:23] Dreamer3: grrr [06:23] mscdex: Dreamer3: https://gist.github.com/f1a68f839201c2d6a6e4 [06:23] mykul: lol this guy falls asleep after every sentence [06:23] mscdex: something like that? [06:23] vpereira1 has joined the channel [06:23] davidbanham: sorensen: I want that guy's glasses. I would be the greatest hipster of all time. [06:23] Dreamer3: i need a dynamic counter [06:24] Dreamer3: well wait [06:25] Dreamer3: nope doesn't work because compile can be called multiple times inside itself when the interator is on it's last time thru [06:25] Dreamer3: so i'm tryiung to use a processing counter [06:25] mscdex: huh? [06:26] mape_ has joined the channel [06:27] kawaz_home has joined the channel [06:27] mscdex: Dreamer3: i'm not sure what you mean, the code snippet i linked to doesn't work? [06:27] Dreamer3: http://pastie.textmate.org/private/yqkxcmgcqxwo7pqbmlmwa [06:27] Dreamer3: sorry, it's CS [06:27] sonnym has joined the channel [06:27] mscdex: eek coffeescript [06:27] Dreamer3: already that is pretty ugly [06:28] Dreamer3: trying to fix the compiler without rewriting all of it [06:28] Dreamer3: when you do a join it jsut writes out thee file 20 times inside the loop if you are concating 20 files [06:28] clvv has joined the channel [06:28] Dreamer3: but that doesn't work so well if you want to print the output to console [06:28] svenlito has joined the channel [06:28] mwhooker has joined the channel [06:28] Dreamer3: so i need to wait until all the files are loaded, THEN concat and compile [06:29] mscdex: ok, and the snippet i provided should allow you to do that... [06:29] Dreamer3: my count must be off somehow on the processing as it's stuck in an infinite loop... but it's also pretty ugly [06:29] mscdex: :S [06:29] mscdex: what is this compiler for anyway? [06:29] Dreamer3: coffee script [06:29] mscdex: :o [06:30] xeodox has joined the channel [06:30] Dreamer3: the issue is the compile funciton can be called multiple times inside it's last loop [06:30] Dreamer3: since it can load in entire dirs [06:30] Dreamer3: so inside it you never really can be sure you're processing the last thing, well not as easily as in your example [06:31] mcavage has joined the channel [06:34] amerine has joined the channel [06:34] Dreamer3: i never did love recursion :) [06:34] mt3ck has joined the channel [06:35] Nuck: sorensen: Do they refer to C++ as "high-level"? [06:35] Nuck: ... [06:35] Nuck: Wow. [06:36] hkjels_ has joined the channel [06:36] vikstrous has joined the channel [06:39] alexandere has joined the channel [06:39] dguttman has joined the channel [06:39] `3rdEden has joined the channel [06:40] niftylettuce has joined the channel [06:41] Dreamer3: how can i write a sleep or delay? [06:41] Dreamer3: i think while () is blocking [06:41] Dreamer3: well i have a condition [06:42] Dreamer3: hmmm [06:42] AvianFlu: Nuck: C++ IS high-level - it has objects. [06:42] Dreamer3: http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/ [06:42] Dreamer3: ok this is helpful [06:45] jvduf has joined the channel [06:46] Lorentz: Sleep is also blocking, no? [06:47] mscdex: sleep and blocking are bad words in here [06:47] TomY has joined the channel [06:48] Dreamer3: well i understand now i can't do what i thought i could :) [06:48] saurabhverma has joined the channel [06:48] mscdex: heh [06:48] Dreamer3: i can't loop and wait for processing to complete [06:48] Dreamer3: because i'm the only thing running [06:49] indutny: http://c624878.r78.cf2.rackcdn.com/meme-1.0.png [06:49] mscdex: you can, but it's not sync [06:49] Dreamer3: if i do that the while loop hangs forever :) [06:49] Dreamer3: because i assume the other stuff can't run [06:49] Dreamer3: since there is only one thread [06:50] unlink has joined the channel [06:50] unlink has joined the channel [06:50] dgathright has joined the channel [06:50] simenbrekken has joined the channel [06:52] Dreamer3: ha [06:52] Dreamer3: works [06:52] Dreamer3: but it's a mess [06:53] Dreamer3: i have exists -> stat -> readFile [06:53] Dreamer3: and since you never knew where it could be i have to increment processing before/after each item [06:53] Dreamer3: then inside readFile at the bottom i check for 0 [06:54] Dreamer3: http://pastie.textmate.org/private/pdbevoeex1yq9jdye8zgw [06:55] groom has joined the channel [06:55] SoreGums has joined the channel [06:56] Dreamer3: other suggestions? [06:57] shiawuen has joined the channel [06:57] SoreGums: what is the best way to search a list of domains looking to see if this email address matches a domain? ["domain1","domain2"], u@domian1 = true, u@domain3 = false. should i substring after the @ and use that if(domains[substring]) ? [06:58] Dreamer3: SoreGums: split the string and then sompare against the array of domains [06:58] Dreamer3: SoreGums: indexOf? [06:58] dall has joined the channel [06:58] dall: hello everybody [06:58] SoreGums: Dreamer3: cool, thanks [06:59] vikstrous has joined the channel [06:59] jamescarr: TypeError: Cannot read property '_methods' of undefined [06:59] jamescarr: F ME [07:00] topaxi has joined the channel [07:01] goatslacker has joined the channel [07:04] emattias has joined the channel [07:06] ts__ has joined the channel [07:06] vpereira has joined the channel [07:06] AvianFlu has joined the channel [07:06] xeodox has joined the channel [07:08] dgathright has joined the channel [07:10] ablomen has joined the channel [07:11] Druide_ has joined the channel [07:14] SoreGums: Cannot find module 'tcp' - have things changed since ppl were requiring tcp? [07:14] fangel has joined the channel [07:15] stephank has joined the channel [07:16] djcoin has joined the channel [07:17] SoreGums: found it, tcp is a legacy module now [07:17] cognominal has joined the channel [07:19] liar has joined the channel [07:22] butu5 has joined the channel [07:23] Nuck: SoreGums: What do we use now? [07:23] mendel_ has joined the channel [07:24] Multiply has joined the channel [07:24] Skola has joined the channel [07:24] SoreGums: nuck: actually, it is totally gone... i'm looking. [07:24] catphive has joined the channel [07:25] nodenews has joined the channel [07:25] ShreeKavi has joined the channel [07:26] cummingscm has joined the channel [07:26] cummingscm: . [07:27] nodenews has joined the channel [07:27] cummingscm: . [07:27] AvianFlu has joined the channel [07:29] neshaug has joined the channel [07:29] Yoric has joined the channel [07:30] romanb has joined the channel [07:31] adambeynon has joined the channel [07:31] Nuck: ryah: Did you nerf TCP sockets in Node? [07:31] Nuck: Or is this person loony [07:32] McMAGIC--Copy has joined the channel [07:32] Nuck: Oh nevermind [07:32] Nuck: SoreGums: require('net') [07:35] [AD]Turbo has joined the channel [07:36] [AD]Turbo: hi there [07:36] vjvjftft has joined the channel [07:37] markwubben has joined the channel [07:38] JoshC1 has joined the channel [07:38] chenosaurus has joined the channel [07:38] andree has joined the channel [07:38] chenosaurus: yo [07:39] hackband has joined the channel [07:39] chenosaurus: who's awake? [07:39] tuhoojabotti: \o [07:41] xsyn has joined the channel [07:42] hwinkel has joined the channel [07:43] mendel_ has joined the channel [07:43] uchuff has joined the channel [07:44] mehlah has joined the channel [07:46] beawesomeinstead has joined the channel [07:46] beawesomeinstead has joined the channel [07:46] beawesomeinstead has joined the channel [07:46] unomi has joined the channel [07:46] mape has joined the channel [07:46] Tobsn: http://mac.github.com/ [07:46] Tobsn: neat. [07:46] easternbloc has joined the channel [07:46] chunhao has joined the channel [07:47] svenlito has joined the channel [07:47] mraleph has joined the channel [07:47] Nomon has joined the channel [07:47] sriley has joined the channel [07:47] beriberikix has joined the channel [07:48] mendel__ has joined the channel [07:49] metadaddy has joined the channel [07:49] ncb000gt has joined the channel [07:50] shinuza has joined the channel [07:52] mscdex: http://linux.github.com/ [07:52] mscdex: not neat. [07:52] mattly has joined the channel [07:52] roidrage has joined the channel [07:52] indutny has joined the channel [07:52] voodootikigod has joined the channel [07:52] tuhoojabotti: Aye [07:54] unlink has joined the channel [07:54] unlink has joined the channel [07:54] Tobsn: mscdex, mac is linux [07:54] Tobsn: :P [07:55] tuhoojabotti: Not quite... [07:55] Tobsn: oh shut up [07:55] Tobsn: its a bash, thats linux i dont care if it comes from bsd [07:55] Tobsn: ;) [07:55] atiti has joined the channel [07:55] tuhoojabotti: I don't care about the origins. [07:55] tuhoojabotti: It's forever a mac [07:56] RC^TAB has joined the channel [07:56] Tobsn: its just a very fancy GUI on top of a linux kernel [07:56] _ralph has joined the channel [07:56] bradwright has joined the channel [07:56] whoops has joined the channel [07:56] fly-away has joined the channel [07:56] k1ttty has joined the channel [07:58] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/1b1e.png [07:58] atiti has left the channel [07:59] atiti_ has joined the channel [07:59] Tobsn: monitor left [07:59] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/8r87.png [07:59] Tobsn: monitor right [07:59] Tobsn: its just a fancy linux [07:59] tuhoojabotti: Lol why 2 shots? [07:59] tuhoojabotti: Also why only 2 monitors. ;) [07:59] Tobsn: hehe two is enough, 27" and 22" [08:00] Tobsn: 27" is a lot of space [08:00] Tobsn: two screenshots because it takes two for each mointor one [08:00] Tobsn: no idea why [08:00] tuhoojabotti: Tobsn: http://picplz.com/user/tuhoojabotti/pic/6gntw/ Three is pure win. :D [08:01] Tobsn: hehe [08:01] phpnode: hey, anyone know why i'd be getting 12 requests/second when i use node to query an elastic search instance on the same box, if i hit either separately i get at least 200 requests/ second, but combine them and i get 12 :( [08:01] Tobsn: way too much space [08:01] mike5w3c_ has joined the channel [08:01] leahculver__ has joined the channel [08:01] tuhoojabotti: Tobsn: No it's good [08:01] Tobsn: phpnode, sounds like a resolving issue [08:01] SoreGums: 27" w/ 1080p res has shit space ;) best quoting res over size. 2560x1600*2 is ftw ;) [08:01] phpnode: Tobsn: both are 127.0.0.1 [08:02] slicky: Does anyone have an example on limiting upload speeds with node (from server to client)? http uploads [08:02] Tobsn: http://dl.dropbox.com/u/1656816/Mobile%20Photo%20May%205%2C%202010%203%2012%2023.jpg [08:02] Tobsn: thats in my old house [08:02] slicky: which i suppose would be downloads to the client :D [08:02] Tobsn: now im in SD but looks pretty much the same [08:02] Tobsn: in my old office i had a badass hackintosh... 16 core machine with 32gb ram [08:03] Tobsn: now i have a mac mini with 8gb ram, latest SSD and external mirrored raid dirve for OS images over parallels [08:03] Tobsn: over firewire [08:03] adambeynon has joined the channel [08:03] Tobsn: takes ~10 seconds to start up 8 windows instances at the same time [08:03] Tobsn: (full bootup * 8) [08:03] Tobsn: :D [08:03] cummingscm has left the channel [08:04] phpnode: my ssd has made no difference to my life :( [08:04] phpnode: maybe 10 seconds faster to boot [08:04] adnam has joined the channel [08:05] aliem has joined the channel [08:05] Tobsn: in macs [08:05] Tobsn: its nuts [08:05] Tobsn: you go from fast to instant [08:05] slicky: same with linux and windows [08:05] Tobsn: photoshop loads complete with dialog under a second [08:05] tbassetto has joined the channel [08:05] tuhoojabotti: Indeed [08:05] phpnode: it's my fault for running win7 [08:05] slicky: been amazing and extremely noticible so far for me [08:05] Tobsn: oh yes [08:05] tuhoojabotti: phpnode: Which ssd? [08:05] Tobsn: i spend 400 bucks on a 64gb ssd hehe [08:05] phpnode: tuhoojabotti: a cheap one, and that's probably the problem, a corsair something [08:05] rauchg: phpnode [08:06] rauchg: i just bought [08:06] tuhoojabotti: I bought Vertex 2 and it's fast. [08:06] rauchg: a vertex 3 [08:06] rauchg: you just made me sad [08:06] Tobsn: uh [08:06] Tobsn: vertex [08:06] tuhoojabotti: phpnode: Yeah cheap ones don't get you far. :D [08:06] Tobsn: my work mini mac is def. faster than my imac at home [08:06] phpnode: this is actually my second, the first one died within 3 months, the cheap ones can't handle being on 24/7 [08:06] Tobsn: and in pure CPU and GPU power the imac should be 8 times faster at least [08:07] Tobsn: thats another thing i like with macs [08:07] jetienne has joined the channel [08:07] Tobsn: the instant on from hibernation [08:07] context- has joined the channel [08:07] mgc has joined the channel [08:07] johnnywengluu has joined the channel [08:07] jbpros has joined the channel [08:08] Tobsn: OSX Lion is supposed to be able to be turned off completely and boot back into the last app states [08:08] phpnode: can anyone see why there might be a slow down in this very simple code, it's driving me nuts :( https://gist.github.com/1040963 [08:09] RC^TAB has joined the channel [08:09] Tobsn: so if that same script runs somewhere else its 50 times faster? [08:09] Tobsn: did you tried to use the php drivers? [08:10] Tobsn: i mean all those "drivers" are wrappers for a http request anyway [08:10] __doc__ has joined the channel [08:10] phpnode: i've not tried on another box, but it doesn't make a difference whether i hit elasticsearch or a dummy node instance, it's stuck at 12 requests / second, if i remove that request i get 400+, if i hit elastic directly i get 200+ [08:11] tauren has joined the channel [08:11] Tobsn: erm [08:11] Tobsn: remove what request? [08:11] Tobsn: the elastic http req? [08:11] phpnode: yeag [08:11] gozala has joined the channel [08:11] Tobsn: so node itself answers 400+ without anything [08:11] jetienne: phpnode: put ip address instead of hostnames [08:11] Tobsn: oh yeah [08:11] Tobsn: see [08:11] Tobsn: you said its 127.0.0.1 [08:12] jetienne: phpnode: remove the remote access.. focus only on LAN transfert. this make it simlpler to diagnostic the issue [08:12] phpnode: i've tried using 127.0.0.1, same thing :( [08:12] Tobsn: also you might just totally dumb time the stuff with curl [08:12] Tobsn: time curl http... [08:13] jetienne: try with ab [08:13] phpnode: i'm using ab [08:13] Tobsn: did you doctor around with the node script? [08:13] Tobsn: remove the elastic write() and elastic.end() [08:13] jetienne: just to put it clearly 'nothing is hardcoded clamped at 12 req/s in node.js" :) [08:13] JoshC2 has joined the channel [08:13] Tobsn: lol yes it is [08:14] Tobsn: node.js only allows up to 12 req/sec [08:14] Tobsn: ;) [08:14] phpnode: jetienne: lol i know, it's just a crazy thing :) [08:14] Tobsn: its throttled for your pleasure [08:14] herbySk has joined the channel [08:14] phpnode: hehe [08:14] phpnode: 12reqs/sec should be enough for anyone [08:14] jetienne: phpnode: what happen to the cpu while you do the ab ? [08:14] duncanbeevers has joined the channel [08:14] DTrejoAFKarchive has joined the channel [08:14] eventualbuddha has joined the channel [08:14] dnyy has joined the channel [08:14] jetienne: 0% ? 100% ? [08:15] jetienne: 12req is so low... i bet this is dns [08:15] phpnode: jetienne: about 70% [08:15] jetienne: duh [08:15] Tobsn: hmm [08:15] Tobsn: thats weird [08:15] Tobsn: oh wait [08:15] jetienne: 70% for 12req ? [08:15] Tobsn: is that the elastic search? [08:15] jetienne: comeon what is it you dont tell us ? [08:15] m00p has joined the channel [08:15] Tobsn: phpnode, 70% only the node instance? [08:15] jetienne: on a 300$ netbook i got like 1000req/s [08:15] Tobsn: yeah [08:15] Tobsn: with 1% usage [08:16] papandreou has joined the channel [08:16] phpnode: jetienne: seriously, this is an almost blank ubuntu box, it's running a few other processing but nothing is under load [08:16] jetienne: no with 100% :) [08:16] Tobsn: hehe [08:16] phpnode: * processes [08:16] jetienne: phpnode: what top is showing [08:16] Tobsn: there is your problem [08:16] Tobsn: you might try the real redhat and not just the duct tape version ;) [08:16] phpnode: hehe [08:17] phpnode: i doubt that's the problem though [08:17] jetienne: phpnode: what top is showing [08:17] Tobsn: copy paste top to pastebin [08:17] phpnode: will do, one sec [08:17] jetienne: hmmm [08:18] Tobsn: (anohter reason to use mac, you got grabbox) [08:18] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/~six.png [08:18] Tobsn: :D [08:18] phpnode: https://gist.github.com/1042142 [08:18] Tobsn: java? [08:19] phpnode: that'd be elasticsearch i presume [08:19] Tobsn: thats your elastic search [08:19] Tobsn: yep [08:19] roblarter has joined the channel [08:19] Tobsn: so elastic is the issue [08:19] phpnode: ok, but let me paste the results when i hit a dummy node instance instead [08:19] jetienne: :) [08:19] jetienne: well read the top [08:19] Tobsn: but it still doesnt make sense that external it would be faster on the same box [08:19] jetienne: no need to go further [08:19] jetienne: kill all the 4 first processes [08:19] Tobsn: hehe [08:20] Tobsn: whats vino? [08:20] jetienne: well just the first 100% [08:20] jetienne: i think this is a gnome desktop stuff. dunno the details [08:20] jetienne: (for vino) [08:21] Tobsn: how do i sort by cpu in top again? [08:21] Tobsn: j? [08:21] jetienne: https://groups.google.com/forum/#!topic/vglug/FleWydRB-Kw [08:21] jetienne: Vino is a remote desktop system for GNOME. [08:21] Tobsn: ah [08:21] phpnode: wtf, maybe it is elastic search... [08:21] Tobsn: hehe [08:21] Tobsn: yeah [08:21] Tobsn: maybe [08:21] phpnode: i swear i tested this last night [08:21] adambeynon has joined the channel [08:21] Tobsn: hehe [08:21] jhurliman: hmm lots of date libraries for node. any suggestions? relative times ("12 minutes ago") and custom string formatting are a plus [08:21] phpnode: i must have been tired [08:22] jetienne: new Date() ? :) [08:22] Tobsn: jhurliman, i got a tiny one [08:22] phpnode: but i set it to hit a dummy node instance and now it's 1400 req/sec [08:22] jetienne: jhurliman: i would use one of the front end one. they got many [08:22] jhurliman: jetienne, i don't think it supports either of those things [08:22] footyfish has joined the channel [08:22] Tobsn: jetienne. http://dev.explore.cm/ open source see s2t() [08:22] matthijs has joined the channel [08:22] Tobsn: erm [08:22] jetienne: phpnode: fixed by magic :) [08:22] Tobsn: jhurliman [08:22] Tobsn: i meant [08:22] mange has joined the channel [08:22] jhurliman: Tobsn, thanks [08:22] Tobsn: but something is broken with it i think [08:22] jacter has joined the channel [08:22] ivanfi has joined the channel [08:23] phpnode: so now the question is, how do i stop node from swamping elastic search [08:23] Tobsn: also it takes the local browser timezone and brings it to UTC because the seconds im feeding it is UTC [08:23] Tobsn: if you see that theres a bug let me know ;) [08:23] Tobsn: but there you have an idea how its done [08:24] Tobsn: no wait a minute [08:24] Tobsn: that function is broken [08:24] Tobsn: see second one [08:24] Tobsn: wtf? [08:24] tanepiper has joined the channel [08:24] Tobsn: yeah, i mean the big one not that one liner, i think i left that in there by accident [08:25] AvianFlu has joined the channel [08:25] romainhuet has joined the channel [08:26] SoreGums: working on a simple smtpd to spilt traffic between two smtp servers - have updated the ancient smtpd.js to work w/ 0.4.8 - w/ accepting email only for specified domains :) man node is so accessible for writing this sort of code :) [08:26] v0idless-_ has joined the channel [08:27] Tobsn: jhurliman, http://easydate.parshap.com/ thats where i stole it [08:27] jhurliman: cool [08:27] Tobsn: ;) [08:27] Tobsn: like i said, if you find the bug in my simple one, lemme know hehe [08:27] Tobsn: cause i always get the same dates back for some reason [08:28] Tobsn: but you rather take the full lib, cause if you use it client side it has live updates [08:28] pyrotechnick has joined the channel [08:28] wilken has joined the channel [08:28] pyrotechnick has left the channel [08:29] phpnode: arg this is so weird, if i hit elastic search directly java doesn't even appear in top, but hit it through node and java eats the cpu, wtf is going on! [08:29] hkjels_ has joined the channel [08:30] aron_ has joined the channel [08:30] confoocious has joined the channel [08:31] kersny has joined the channel [08:31] bengl_ has joined the channel [08:32] DelvarWorld: v8: "a".link("hello.com") [08:32] v8bot: DelvarWorld: "a" [08:32] DelvarWorld: v8: this.prototype [08:32] v8bot: DelvarWorld: undefined [08:33] DelvarWorld: v8: typeof Infinity [08:33] v8bot: DelvarWorld: "number" [08:33] pickels has joined the channel [08:33] DelvarWorld: v8: Infinity instanceof Number [08:33] v8bot: DelvarWorld: false [08:33] Tobsn: phpnode, directly? [08:33] Tobsn: how many concurrent? [08:33] jetienne: v8: "a".link("hello.com") [08:33] v8bot: jetienne: "a" [08:33] shinuza has joined the channel [08:33] jetienne: hue ? [08:33] Tobsn: because with node you might just fire all at once [08:33] jetienne: what is this [08:33] Tobsn: its the V8 bot [08:33] stagas: jetienne: String prototype functions [08:34] Tobsn: v8: console.log('lala'); [08:34] v8bot: Tobsn: "lala" [08:34] jetienne: stagas: for .link() ? in js ? [08:34] Tobsn: :D [08:34] DelvarWorld: javascript has some fucked up string funcitons that no one would know about [08:34] DelvarWorld: v8: "a".bold() [08:34] v8bot: DelvarWorld: "a" [08:34] Tobsn: oh yeah [08:34] Tobsn: it has that build in [08:34] jetienne: this is funky :) [08:34] Tobsn: i just read about that a week ago [08:34] phpnode: Tobsn: i think this comes down to an inefficient elastic search query [08:34] Tobsn: v8: 'test'.link(); [08:34] v8bot: Tobsn: "test" [08:34] Tobsn: v8: 'test'.link('http://google.com'); [08:34] v8bot: Tobsn: "test" [08:35] Tobsn: v8: 'test'.link('http://google.com').bold(); [08:35] v8bot: Tobsn: "test" [08:35] Tobsn: v8: 'test'.link('http://google.com').bold().blink(); [08:35] v8bot: Tobsn: "test" [08:35] Tobsn: :D [08:35] tuhoojabotti: luls [08:35] DelvarWorld: v8: "penis".small() [08:35] v8bot: DelvarWorld: "penis" [08:35] tuhoojabotti: v8: "lol".link("#") [08:35] v8bot: tuhoojabotti: "lol" [08:35] tuhoojabotti: heh [08:35] Tobsn: 'shit'.strong() [08:36] Tobsn: v8; 'shit'.strong(); [08:36] Tobsn: v8: 'shit'.strong(); [08:36] v8bot: Tobsn: TypeError: Object shit has no method 'strong' [08:36] Tobsn: ha [08:36] Tobsn: v8: 'test'.style(); [08:36] v8bot: Tobsn: TypeError: Object test has no method 'style' [08:36] Tobsn: v8: 'test'.script(); [08:36] v8bot: Tobsn: TypeError: Object test has no method 'script' [08:36] Tobsn: v8: 'test'.title(); [08:36] v8bot: Tobsn: TypeError: Object test has no method 'title' [08:36] Tobsn: v8: 'test'.span(); [08:36] v8bot: Tobsn: TypeError: Object test has no method 'span' [08:36] Tobsn: only oldschool markup [08:37] DelvarWorld: v8: return{} [08:37] v8bot: DelvarWorld: SyntaxError: Illegal return statement [08:37] Tobsn: v8: return []; [08:37] v8bot: Tobsn: SyntaxError: Illegal return statement [08:37] Tobsn: v8: return {x:123}; [08:37] v8bot: Tobsn: SyntaxError: Illegal return statement [08:37] LiamMagee has joined the channel [08:37] tuhoojabotti: Tobsn: spam? [08:37] kulor-uk has joined the channel [08:37] DelvarWorld: v8: function bob() { return{} } bob(); [08:37] v8bot: DelvarWorld: {} [08:37] Tobsn: v8: a={x:123};return a; [08:37] v8bot: Tobsn: SyntaxError: Illegal return statement [08:37] tuhoojabotti: query pl0x [08:38] blup has joined the channel [08:38] Bonuspunkt: v8:a={x:123};a [08:38] v8bot: Bonuspunkt: {x:123} [08:38] Tobsn: ah no function no return [08:38] JoshC1 has joined the channel [08:38] DelvarWorld: v8: function bob(){bob()}; bob(); [08:38] v8bot: DelvarWorld: RangeError: Maximum call stack size exceeded [08:39] DelvarWorld: v8: Array(10000).join('test'); [08:39] v8bot: DelvarWorld: "testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttes [Output truncated...] [08:39] Bonuspunkt: how do i cancel a clientResponse - i make a http.get - and its a huge resonse and i dont want any further data [08:39] eldios has joined the channel [08:40] CS3 has joined the channel [08:41] AvianFlu has joined the channel [08:41] stagas: Bonuspunkt: try res.destroy() [08:42] __tosh has joined the channel [08:42] Bonuspunkt: stagas thx, its not in the docu? [08:42] thalll has joined the channel [08:42] steffkes has joined the channel [08:43] stagas: Bonuspunkt: it's a Stream, so it's here http://nodejs.org/docs/latest/api/streams.html [08:44] markwubben has joined the channel [08:47] sridatta has joined the channel [08:48] mpoz2 has joined the channel [08:52] dominictarr has joined the channel [08:54] k1ttty has joined the channel [08:55] Tobsn: if i add new stuff to the DOM and i want to apply stuff to it over jquery... somehow jquery doesnt find the new stuff... anyone an idea? [08:55] Xano has joined the channel [08:55] philhawksworth has joined the channel [08:56] phpnode: Tobsn: you have to allow time for the elements to appear in the dom, jQuery doesn't do it syncronously, try wrapping it in a setTimeout(..., 20) [08:57] Tobsn: hmm [08:57] adrianmg has joined the channel [08:57] Tobsn: lemme see if tmpl() or appendto() has something [09:00] LiamMagee has joined the channel [09:01] pomodoro has joined the channel [09:03] jetienne: (btw jquery does it in sync, this is the dom which may not reflect the change imediatly. so i depends on the browser and the functions you use) [09:03] phpnode: ah that's good to know, thanks [09:05] darshanshankar has joined the channel [09:05] Tobsn: yeah this is weird [09:05] Tobsn: i got it working btw. [09:05] Tobsn: with var x = $.tmpl().appendto(); [09:05] Tobsn: x.find('select').myfunc() [09:05] Tobsn: BUT [09:06] Tobsn: why would Date() add a month? [09:06] jeremyselier has joined the channel [09:07] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/zr5l.png [09:07] Tobsn: original date, regex'd from that string, data passed to Date.UTC(); and the resulting Date object.toUTCString() [09:07] Tobsn: it adds a month [09:07] Tobsn: 6 != "Jul" [09:09] bnoordhuis has joined the channel [09:11] adambeynon has joined the channel [09:12] Dreamer3: how are oyu getting that back into a date? [09:12] Dreamer3: guess i'm not sure what i'm looking at [09:12] Dreamer3: does dateutc start months at 0? [09:13] AvianFlu has joined the channel [09:13] christkv has joined the channel [09:13] Dreamer3: looks like it [09:13] Dreamer3: month 0-11 [09:14] aliem has joined the channel [09:15] angrymango has joined the channel [09:15] Tobsn: DAMNIT! [09:15] Tobsn: youre so right [09:15] Tobsn: but i just changed the whole thing to Date.parse(string) and that just got rid off all the string shit [09:15] Tobsn: .... [09:15] Tobsn: :D [09:16] Tobsn: http://dev.explore.cm/#q=iphone+sales&l=/news [09:16] Tobsn: pretty dates. [09:18] Tobsn: btw. huge problems with OSX: no "float on top" default option [09:19] plutoniix has joined the channel [09:19] Tobsn: http://infinite-labs.net/afloat/ [09:19] Tobsn: only third party solutions [09:19] Tobsn: i wonder why that is [09:19] devuo has joined the channel [09:19] sshaginyan has joined the channel [09:20] Tobsn: ha thats the same guy who made the "mover" iOS app [09:25] plutoniiix has joined the channel [09:26] sshaginy1n has joined the channel [09:26] LutherAnon has joined the channel [09:27] copongcopong has left the channel [09:27] hybsch has joined the channel [09:27] junkee[] has joined the channel [09:29] Nuck: "If you write a JScript to which you will never want to apply default execution host settings when you run it, you can create an individual Windows script host or .wsh file that specifies custom execution host settings for the script." [09:29] Nuck: That's a line from this "Learn Js in a weekend" book [09:30] jhurliman has joined the channel [09:32] adnam has joined the channel [09:32] lorinc has joined the channel [09:35] philhawksworth has left the channel [09:36] cwo has joined the channel [09:37] H2S04 has joined the channel [09:38] CS3 has left the channel [09:41] t|f has joined the channel [09:41] copongcopong has joined the channel [09:43] knirhs has joined the channel [09:43] jomoho has joined the channel [09:45] nsolsen has joined the channel [09:45] hojberg has joined the channel [09:45] sshaginyan has joined the channel [09:46] kulor-uk has joined the channel [09:48] Minos has joined the channel [09:49] eldar has joined the channel [09:50] madzak has joined the channel [09:52] d0k has joined the channel [09:53] skm has joined the channel [09:56] adambeynon has joined the channel [09:57] plutoniix has joined the channel [09:58] bnoordhuis has joined the channel [09:58] xeodox has joined the channel [09:59] rio{ has joined the channel [10:01] CStumph has joined the channel [10:03] sjbreen`` has joined the channel [10:04] nannto___ has joined the channel [10:04] descipher_ has joined the channel [10:06] tbassetto has joined the channel [10:06] nannto has joined the channel [10:08] thalll has joined the channel [10:08] Shrink has joined the channel [10:14] Tobsn: interesting [10:14] Tobsn: if your twitter account is very old [10:14] Tobsn: and you never linked a profile pic [10:14] Tobsn: http://static.twitter.com/images/default_profile_normal.png [10:15] Tobsn: twitter links over their API to a very old image that doesnt exist anymore [10:17] LiamMagee has joined the channel [10:17] MonsieurLu has joined the channel [10:18] deedubs has joined the channel [10:20] path[l] has joined the channel [10:21] hkjels_ has joined the channel [10:21] madzak has joined the channel [10:22] mendel_ has joined the channel [10:26] MonsieurLu has left the channel [10:26] liquidproof has joined the channel [10:27] mendel_ has joined the channel [10:31] skm has joined the channel [10:34] S2kx has joined the channel [10:34] Nuck: Ooooookay! [10:34] Prism has joined the channel [10:35] Bonuspunkt: stagas++ [10:35] v8bot: Bonuspunkt has given a beer to stagas. stagas now has 0 beers. [10:35] vpereira: any reason, why after that i build a module with node-waf build, the module doesn't exist ? [10:36] Bonuspunkt: thx works like a charm [10:36] Nuck: Bonuspunkt: lol you made them hit 0 [10:36] Nuck: poor stagas [10:36] tuhoojabotti: No negative alcohol for him [10:36] Nuck: Anyways, anyone know a good modularization system? [10:36] jbpros has joined the channel [10:36] Nuck: I want to have my API load modules [10:37] Nuck: So /module/:module/ would load up a thing and render the result into a JSON object [10:37] vpereira: ach [10:37] Nuck: Specifically, it would load a module's EJS file [10:37] vpereira: fucking .wafpickle [10:37] Nuck: Would I just have it render a specific file based on the param [10:42] hdon has joined the channel [10:42] andrewfff has joined the channel [10:42] vpereira: just as tip [10:42] juha___ has joined the channel [10:42] vpereira: node.js 0.5.0 broke some external modules [10:43] vpereira: i've got some problems with the evented loop [10:43] vpereira: so 0.5 is unstable [10:43] junkee[]: vpereira: c++? [10:43] Nuck: No shit [10:43] vpereira: junkee[]: yup [10:43] Nuck: odd numbers are always unstable [10:43] Nuck: even numbers are stable, odd numbers are unstable. [10:43] Nuck: It's how ryan does the versioning. [10:43] vpereira: Nuck: yeah yeah, but some random guy said yesterday "php is unstable" [10:44] Nuck: vpereira: PHP is. [10:44] Nuck: Well, not really [10:44] Nuck: It's just shitty [10:44] junkee[]: jup. but node have not even reached v1.0 [10:44] liberum_ has joined the channel [10:45] Nuck: junkee[]: fuck, it's more reliable than a PHP server though. [10:45] Nuck: By a large margin. [10:45] vpereira: junkee[]: yeah, i mean, he wanted to say that maybe 0.5 is unstable but well php is unstable and people still using [10:45] vpereira: Nuck: yeah right, if you can C++ [10:45] Nuck: vpereira: Huh? [10:45] vpereira: no shit, until now, i wrote more C++ than node.js [10:45] Nuck: I'm serious. [10:45] vpereira: ops, more C++ than JS [10:45] Nuck: vpereira: I don't even KNOW C++! [10:45] tuhoojabotti: I've made some C++ :3 [10:46] vpereira: Nuck: i don't believe that you are using node.js :) [10:46] Nuck: vpereira: Well, I am. [10:46] tuhoojabotti: But not for node, not yet. :P [10:46] Nuck: I use Express [10:46] Skola: not hardcore enough Nuck [10:46] Skola: too mainstream [10:46] vpereira: Nuck: ok, me too, but i needed an LDAP stuffs [10:46] junkee[]: I am working on gstreamer in node. So I'm doing JS and C++ [10:46] Tobsn: if i output a string and chrome console shows me ["string"] thats a string right? [10:46] Nuck: Skola: I'm not as hipster as you :P [10:46] vpereira: then a ipc communication [10:46] Skola: no I'm pretty mainstream too so fa [10:46] Skola: r [10:46] vpereira: but i just want to use the express as well :-) [10:47] codehugger has joined the channel [10:48] junkee[]: Tobsn: seems like an array. Can u expand it? [10:48] Tobsn: i was confused too but var x = 'lala'; console.log(x); shows ["lala"] [10:48] Tobsn: i cant expand no [10:48] Tobsn: it def is a string [10:48] Tobsn: but i cant do comparison on it [10:48] vpereira: Tobsn, for me its an array [10:48] Tobsn: if( obj.string == 'something' ) doesnt match [10:49] vpereira: x[0] ? [10:49] Tobsn: hmm [10:49] junkee[]: will print l [10:49] Popsicle has joined the channel [10:49] mAritz has joined the channel [10:49] Tobsn: if i do log(obj.string) it returns ["string"] wouldnt it return [0] => "string" if its in array? [10:50] Tobsn: it def. is a string, its the twittr api and im using data.results[i].profile_image_url [10:50] Jason|Server has joined the channel [10:50] Cockroach has joined the channel [10:50] junkee[]: try toString() [10:50] vpereira: or [10:50] Tobsn: uh good idea [10:50] Fairy has joined the channel [10:50] vpereira: x instanceof String [10:51] vpereira: (x instanceof String) == true [10:51] ditesh|cassini has joined the channel [10:51] Tobsn: k im gonna check [10:51] Tobsn: btw. http://dl.dropbox.com/u/1656816/Screenshots/o9~x.png [10:52] tuhoojabotti: Wut :D [10:52] Tobsn: yeah, spam [10:52] Tobsn: im having two guys spamming me at the moment [10:52] tuhoojabotti: I can do that too! [10:52] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/wv25.png [10:53] roblarter has joined the channel [10:53] Nuck: Tobsn: Is that on here? [10:53] Nuck: Can I spam them back? C: [10:54] Nuck: I'll confuse them by spamming the same message back [10:54] Nuck: FUCKING YES [10:54] Nuck: [03:54] wait what [10:54] tuhoojabotti: Nuck: Yes it is. [10:54] Nuck: [03:54] no stop spamming [10:55] tuhoojabotti: :Dd [10:55] Nuck: ACTION cries of laughter [10:55] tuhoojabotti: bash.org material [10:55] Nuck: tuhoojabotti: fucking win right there. [10:55] Nuck: They started back up and I just spammed right back XD [10:55] FireFly|n900: Haha [10:55] tuhoojabotti: Nucking fin [10:55] Tobsn: and it stopped [10:55] tuhoojabotti: wait what [10:56] Nuck: I'm tempted to go onto their IRC and spam them through a proxy :P [10:57] Tobsn: uh [10:57] Tobsn: k-lined [10:57] tuhoojabotti: Who got k-lined? [10:57] Tobsn: Cockroach has left IRC (K-Lined) [10:57] Mrfloyd has joined the channel [10:57] tuhoojabotti: Ok. :) [10:57] Tobsn: both [10:57] tuhoojabotti: Nice [10:57] fairwinds has joined the channel [10:57] Tobsn: fuck already 4am [10:57] Tobsn: i hate my sleeping schedule [10:57] tuhoojabotti: No [10:57] tuhoojabotti: 14 [10:58] tuhoojabotti: 13:57 [10:58] jetienne: Tobsn: there is a ted talk on this [10:58] Tobsn: on what? [10:58] Tobsn: sleeping schedules? [10:58] jetienne: http://www.ted.com/talks/rives_on_4_a_m.html <- Tobsn look at that and go to sleep :) [10:58] Tobsn: about how artificial light fucks up your sleep pattern? hehe [10:59] ts__ has joined the channel [11:01] Nuck: Tobsn: http://dl.dropbox.com/u/32738349/lulz.png [11:01] vpereira: how can i add a function that i will use in a controller, i'm speaking about express here? should i just add it to my app.js? any best practice? [11:01] Tobsn: hehe [11:02] xsyn has joined the channel [11:02] tuhoojabotti: Nuck: Lulz [11:03] AvianFlu has joined the channel [11:04] Nuck: I love how THEY get pissed at ME for spamming [11:04] tuhoojabotti: YES [11:08] Tobsn: jetienne, hehe thats nice [11:08] Tobsn: its because 4am just sucks [11:08] Tobsn: if you sleep 7 hours its 11am [11:08] Tobsn: you already missed half a work day basically [11:08] kulor-uk has joined the channel [11:08] Tobsn: its also to early to go to work so you have to go to sleep or push through [11:08] Tobsn: but than you get super sleepy in a couple hours [11:08] Tobsn: 4am just sucks. [11:08] tuhoojabotti: I'm at work [11:08] tuhoojabotti: still 2 hours to go :D [11:08] Nuck: Tobsn: Inorite [11:09] jetienne: Tobsn: :) [11:09] tuhoojabotti: then mid-summer-leave [11:09] Nuck: I'm debating just pulling an all-nighter at this point [11:09] Tobsn: mostly i just push through like 10am [11:09] Tobsn: and go to bed [11:09] tbassett has joined the channel [11:09] Nuck: Then I can fall asleep when they're looking at my wisdom teeth lol [11:09] Tobsn: and hope nothing terrible is happening at work when im not there [11:10] Tobsn: btw. the toString() isnt working [11:10] Tobsn: i still cant compare [11:11] Tobsn: if( d.results[i].profile_image_url.toString() == 'http://twitter.com/images/default_profile_normal.png' ) { [11:11] Tobsn: never matches, but that string is in there [11:12] avalanche123 has joined the channel [11:12] Nuck: Tobsn: You sure? Try console.logging it? [11:12] jbpros has joined the channel [11:12] Tobsn: no wait [11:12] Tobsn: i think i made a mistake [11:12] Tobsn: no im not [11:13] Tobsn: they use both [11:13] Tobsn: static.twitter.com an twitter.com [11:13] temp01 has joined the channel [11:13] Tobsn: and in my first test was a twitter.com and now its static.twitter.com [11:13] Tobsn: thats why its not matching [11:13] Tobsn: wtf. twitter [11:13] Nuck: Tobsn: that's silly [11:13] Tobsn: its silly to begin with [11:13] Tobsn: because they have old profiles with 404 profile pictures [11:14] Nuck: Tobsn: I posted that pic of my logs on deviantART chat, and somebody used an online chat site to login [11:14] Nuck: IT'sm empty [11:14] Nuck: The room is empty. [11:14] Nuck: or wait [11:14] Nuck: Sounds like there's idlers [11:15] Tobsn: sounds like there's idlers <- ? lol. [11:15] christkv has joined the channel [11:15] Nuck: I'm trying to find out if they're bots. [11:15] Tobsn: lol [11:15] descipher_ has joined the channel [11:15] Nuck: None of the nicks we saw :P [11:15] Tobsn: maybe just some stupid mirc script thing [11:16] Nuck: I ought to go to sleep lol [11:16] Nuck: Maybe I can sleep thorugh my wisdom teeth appointment 8D [11:16] kr_ke has joined the channel [11:17] socketio\test\85 has joined the channel [11:17] igl1 has joined the channel [11:17] hdon has joined the channel [11:18] unomi has joined the channel [11:18] Gruni has joined the channel [11:18] Nuck: 04:16:30 AM dotcomboy17? :slow: [11:18] Nuck: 04:16:38 AM JASON [11:18] Nuck: 04:16:39 AM I FOUND JASON [11:18] Nuck: lol [11:18] Nuck: That made me giggle. [11:19] materialdesigner has joined the channel [11:20] temp02 has joined the channel [11:20] Tobsn: hmm i think i pull through [11:22] Tobsn: i wonder if theres a walmart around here thats open 24/7 [11:22] Tobsn: i think im gonna get F3AR and something to drink :P [11:22] Nuck: Tobsn: Grab me some coffee whle you're out :P [11:23] zeade has joined the channel [11:23] eyesUnclouded has joined the channel [11:25] Tobsn: 10 miles [11:25] Tobsn: is the next superstore [11:25] Tobsn: wtf. [11:25] Tobsn: thats like 18 km [11:25] Tobsn: and its in oceanside [11:25] Tobsn: i probably get shot [11:26] CStumph has joined the channel [11:26] Tobsn: how odd would it be if a guy walks in at 5am, buying two bottles of piere and F3AR [11:28] Tobsn: http://www.appleinsider.com/articles/11/06/22/apple_coo_spotted_at_china_mobile_hq_spurring_rumors_of_an_iphone_deal.html [11:29] swilson06: how do i do var a = [ i .. i+10 ];? ie, an array from i to i + 10 [11:29] Tobsn: thats funny... you know why they didnt had iphones in china for a long time? a friend of mine worked for china mobile and he said that apple came in and wanted them to sell it and told them how much they get per sold phone and china mobile basically kicked them out and apple was pissed about how they acted [11:29] Tobsn: hehe [11:29] Tobsn: swilson06, to create it? [11:29] Tobsn: var x = new array(10) [11:29] Tobsn: i guess [11:30] Tobsn: var a = new array((i+10)) [11:30] Tobsn: ? [11:30] swilson06: i guess what i'm looking for is a slice [11:30] kbni: Math.range [11:30] Tobsn: oh yeah [11:31] swilson06: yeah, Math.range looks right, thanks [11:32] micheil has joined the channel [11:33] stride: that won't change that your array indices start at 0 [11:33] micheil: ryah: you about? [11:33] micheil: hmm.. 4.30am, probably not. [11:33] swilson06: yeah, i guess i just need another for loop and push.... ugh (coming from perl :) ) [11:33] temp01 has joined the channel [11:33] Tobsn: http://www.appleinsider.com/articles/11/06/22/broad_multitouch_patent_granted_to_apple_seen_as_huge_blow_to_rivals.html [11:33] Tobsn: hehe funny. [11:34] micheil: anybody know much about the implementation reasoning in lib/net_uv.js? [11:34] Tobsn: swilson06, what exactly are you trying to do? [11:34] swilson06: playing with mongo and just thought something should work that didn't.... [11:34] CStumph has joined the channel [11:35] FireFly has joined the channel [11:36] swilson06: ie, javascript won't do [ 1 .. 10 ] like perl does for me... just need to get around the differences i guess [11:36] skm has joined the channel [11:37] temp01 has joined the channel [11:38] Tobsn: oh i see [11:38] Tobsn: but why would you need that for mongo? [11:38] Skola has joined the channel [11:39] xandrews has joined the channel [11:43] swilson06: just playing with their tutorial. like i said, just playing and i just got used to being able to say go from x .. y and got curious what that would be in js [11:43] swilson06: ... but, like i said, just playing. no application right now. [11:44] micheil: swilson06: if you want integers from x -> y, like ruby and perl, you'd need to use a loop of some sort, yes. [11:44] swilson06: and, the work around is obvious: for( var i = 1; i<10; i++) { var a.push(i); }; or something like that [11:46] swilson06: in perl, not exactly: perl -e 'my @i = ( 1 .. 10 ); print @i, "\n";' [11:46] swilson06: 12345678910 [11:47] drostie has joined the channel [11:47] samal has joined the channel [11:47] swilson06: but, like i said, just differences i'll have to get used to :) [11:47] tuhoojabotti: Perl :S [11:47] sshaginyan has joined the channel [11:47] tuhoojabotti: Too pear-shaped [11:48] stride: coffeescript has something for those ranged for's I believe [11:51] Tobsn: again [11:51] Tobsn: var a = new array(10) should do that [11:51] Tobsn: i think [11:51] Tobsn: yep [11:51] Tobsn: just checked it [11:51] Tobsn: var arr = new Array(10); [11:51] Tobsn: creates empty array with 10 elements [11:52] tuhoojabotti: v8: var a=new Array(10); a; [11:52] v8bot: tuhoojabotti: [] [11:52] tuhoojabotti: :/ [11:52] Tobsn: it does it in browserside js [11:52] tuhoojabotti: Depends on browser then I guess. :D [11:53] Tobsn: nope [11:53] Tobsn: thats all browsers [11:53] Tobsn: thats part of the array object [11:54] tuhoojabotti: How come v8 not then? :u [11:54] tuhoojabotti: or v8bot :P [11:54] aklt has joined the channel [11:54] swilson06: Tobsn: you missed it - i filled an array with numbers from 1 to 10: http://pastebin.com/MKVpgpyq [11:54] swilson06: not an empty array... [11:54] zemanel has joined the channel [11:54] Tobsn: oh okay [11:55] Kester: v8: var a=new Array(10); a.length; [11:55] v8bot: Kester: 10 [11:55] Tobsn: v8: var a = [];for( i in new Array(10) ) { a.push(i); } [11:55] v8bot: Tobsn: undefined [11:55] Tobsn: :P [11:55] Bradleymeck has joined the channel [11:56] shiawuen has joined the channel [11:56] Tobsn: v8: var a = [];for( i in new Array(10) ) { a.push(i); } console.log(a); [11:56] v8bot: Tobsn: [] [11:56] Tobsn: hmm [11:56] devrim has joined the channel [11:57] Tobsn: v8: var a = [];for( i in (new Array(10)) ) { a.push(i); } console.log(a); [11:57] v8bot: Tobsn: [] [11:58] Tobsn: v8: var a = new Array(10);for( i in a ) { a[i]=i; } console.log(a); [11:58] v8bot: Tobsn: [] [11:58] Tobsn: but that should work [12:00] Tobsn: var a=new Array(10);for(i in a){a[i]=i;} [12:00] Tobsn: i like that. pretty short [12:01] azeroth_ has joined the channel [12:01] devuo_ has joined the channel [12:01] azeroth_ has left the channel [12:01] swilson06: thanks. it was just a curiosity on syntax / features [12:02] FIQ has joined the channel [12:03] Tobsn: curious [12:04] fermion has joined the channel [12:05] FIQ has joined the channel [12:05] Tobsn: oh no you were right nevermind [12:06] Kester has joined the channel [12:06] FIQ has joined the channel [12:07] christkv has joined the channel [12:07] swilson06: v8: var a = []; for( var i = 0; i< 10; i++) { a.push( i ); } console.log(a); [12:07] v8bot: swilson06: [0,1,2,3,4,5,6,7,8,9] [12:07] Bonuspunkt: v8: while(1) [12:07] v8bot: Bonuspunkt: SyntaxError: Unexpected end of input [12:07] Bonuspunkt: v8: while(1); [12:07] v8bot: Bonuspunkt: Error: Timeout [12:07] Naked has joined the channel [12:07] al3xnull_ has joined the channel [12:08] FIQ has joined the channel [12:08] oscarkilhed has joined the channel [12:08] wica has joined the channel [12:08] quackslike has joined the channel [12:10] swilson06: (if anyone cares, i messed up my for loop above so it didn't exactly mimmic my perl - var i = 1; i <= 10; i++ ) [12:10] pomodoro has joined the channel [12:12] mike5w3c has joined the channel [12:12] davidbanham has joined the channel [12:13] unomi has joined the channel [12:13] jbpros has joined the channel [12:13] hkjels_ has joined the channel [12:19] kriszyp has joined the channel [12:19] okuryu has joined the channel [12:19] tiagoa has joined the channel [12:21] addisonj has joined the channel [12:22] Tobsn: man [12:22] Tobsn: ask.com is ugly [12:22] F1LT3R has joined the channel [12:22] \sega has joined the channel [12:22] Tobsn: http://www.ask.com/pictures?qsrc=167&o=10639&l=dir&q=24%20hour%20grocery [12:23] Tobsn: thats just terrible [12:23] Tobsn: god damn text ads all over the place [12:23] Vertice has joined the channel [12:27] Tobsn: hahaaha, i was looking at the images and how nice they order justified and was wondering how they do the margins [12:27] Tobsn: so i assumed its just an array [12:27] Tobsn: erm table [12:27] Tobsn: no, they update the margin-right's while you resize [12:27] Tobsn: hehe [12:28] Tobsn: a resize event for margins [12:28] Tobsn: haha. nice. [12:28] addisonj has joined the channel [12:28] Bwen has joined the channel [12:31] wlkh has joined the channel [12:31] pifantastic has joined the channel [12:31] RC^TAB has left the channel [12:33] sonnym1 has joined the channel [12:33] phpnode: whats the easiest way to selectively gzip content depending on browser support, i had a look at compress but i can't find any usage examples anywhere [12:33] fumanchu182 has joined the channel [12:34] bsstoner has joined the channel [12:34] Tobsn: https://github.com/nateps/connect-gzip [12:34] descipher has joined the channel [12:34] phpnode: awesome, thanks [12:34] tuhoojabotti: I made my own [12:34] tuhoojabotti: :u [12:35] mpoz2 has joined the channel [12:37] ezl_ has joined the channel [12:40] eyesUnclouded has joined the channel [12:42] fangel has joined the channel [12:45] Tobsn: erm [12:46] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/prvt.png [12:46] Tobsn: ads by twitter? [12:46] tuhoojabotti: Should I use connect instead of making my own http server? :D [12:46] Tobsn: yes [12:46] tuhoojabotti: Why :/ [12:46] Tobsn: im not answering that :P [12:46] deedubs: tuhoojabotti: none of us is as smart as all of us? [12:47] tuhoojabotti: I didn't get that question. [12:47] Tobsn: http://www.businessinsider.com/its-on-hulu-hires-morgan-stanley-to-help-with-sale-2011-6 [12:47] Tobsn: haha, hulu sucks. [12:48] brianseeders has joined the channel [12:48] deedubs: tuhoojabotti: Are you better than these people https://github.com/senchalabs/connect/contributors [12:48] jakehow has joined the channel [12:48] stride: hm. that gzip module uses one process per request? isn't that slowing things down? [12:48] deedubs: tuhoojabotti smarter, than alll of the combined? [12:49] tuhoojabotti: deedubs: You can't combine smart-ness like that :u [12:49] tuhoojabotti: And I'm not doing this for work, I'm working for teh lulz. [12:49] deedubs: if your doing it for the lulz why not solve a problem that isn't well solved [12:49] stride: for sony's it security? [12:50] Tobsn: hmm i shouldnt have sold lulz.com [12:50] tuhoojabotti: deedubs: I'm not that smart. :o [12:50] Lorentz: nodejs torrent client [12:51] unomi has joined the channel [12:51] aabt has joined the channel [12:52] tuhoojabotti: That connect seems hard to use. ":D" [12:52] whitman has joined the channel [12:52] tuhoojabotti: I'm not serving static files anyways [12:53] stride: it's not like connect itself is witchcraft you couldn't do on your own tuhoojabotti but it really isn't necessary to reinvent the wheel there (imho) [12:53] stride: static files? that's just one of the middleware modules, you're free to not use that [12:53] v0idless- has joined the channel [12:53] Tobsn: http://www.google.com/images/twitter.png [12:53] tuhoojabotti: Too little examples :P [12:54] deedubs: Tobsn: What are you implying haha [12:54] stride: seriously? [12:54] Tobsn: deedubs, nothing ;) [12:55] thomblake has joined the channel [12:56] deedubs: tuhoojabotti: Write connect middleware that uses redis-pubsub to push requests on a stack of queues that progressively render parts of the request and then assemble the response and return it [12:56] tuhoojabotti: Yes. [12:56] tuhoojabotti: That's exactly what I'll do! [12:56] deedubs: sounds full of lulz to me [12:57] tuhoojabotti: But now I'm off to home [12:57] tuhoojabotti: -> [12:57] quackslike: so are we up to Node 0.5 yet [12:57] quackslike: i've been AFK for a while.. [12:57] phpnode: just installed it a few seconds ago [12:57] quackslike: k [12:57] Renegade001 has joined the channel [12:58] xandrews has joined the channel [12:59] hunterloftis has joined the channel [12:59] hunterloftis has joined the channel [12:59] Tobsn: i like how the google realtime search shows "Twitter" under each single tweet [13:00] Tobsn: like that wouldnt be clear [13:00] quackslike: woooo http://mac.github.com/ [13:00] AaronMT has joined the channel [13:01] whitman: I'm trying to compile master on CentOS 5.6, ./configure fails at "Checking for function pthread_create : not found" yet a colleague next to me logged into the same server, same checkout revision and it configures fine (doesn't compile but that's another matter) [13:01] andrewfff has joined the channel [13:01] Mrfloyd has joined the channel [13:03] Poetro has joined the channel [13:03] asobrasil has joined the channel [13:04] davidsklar has joined the channel [13:06] michaeltwofish has joined the channel [13:07] arpegius has joined the channel [13:07] jlecker has joined the channel [13:07] jtsnow has joined the channel [13:09] michaeltwofish: Can I ask newb questions here? [13:10] Plouj: hi [13:10] jetienne: quackslike: just trying it. it doesnt do much [13:10] jetienne: quackslike: like git clone and thats it [13:10] vegard has joined the channel [13:11] kmiyashiro has joined the channel [13:12] jetienne: such thing on tablet could be nice [13:13] davidbanham: michaeltwofish: Yep. [13:13] michaeltwofish: davidbanham: Ta. [13:14] sshaginyan has joined the channel [13:14] michaeltwofish: I'm trying to get https://github.com/jperras/nerdie running. I've used npm to install all the modules it says it needs, and they're shown in npm ls. But when I run it I get Error: Cannot find module 'codepad'. [13:15] michaeltwofish: v0.5.0-pre. [13:15] michaeltwofish: But I upgraded from a much older version. [13:16] davidbanham: npm install codepad ? [13:16] michaeltwofish: davidbanham: Yup, did that. And it's listed in nerdie/node_modules and by npm ls. [13:17] swilson06: anyone do ssl with connect? [13:17] ivanfi has left the channel [13:17] davidbanham: michaeltwofish: Did you get any build errors the first time you tried to install? [13:17] defeated: try using 0.4.8, behavior on 0.5.0-pre is pretty sketchy atm, it's under active development [13:17] zmbmartin has joined the channel [13:17] swilson06: i've got it working with require(https) but i can't figure out how to do this with connect? [13:17] wilken has joined the channel [13:18] michaeltwofish: davidbanham: Nope, I've had no build errors. [13:18] samal has left the channel [13:18] michaeltwofish: defeated: Ok, understood. I pal of mine has just got it working on his server :/ [13:19] defeated: michaeltwof: ahh, in that case I dunno. Just from watching the mailing list, almost every problem people have had under 0.5.0-pre has been solved by using 0.4.8. I know it's not the best solution (akin to, "did you try rebooting") ;) [13:20] michaeltwofish: Fair enough :) [13:20] kzh has joined the channel [13:20] davidbanham: swilson06: Not certain, but I think the syntax might be the same as with express. http://expressjs.com/guide.html#creating-an%20https%20server [13:22] Tobsn: omg [13:22] colinclark has joined the channel [13:22] Tobsn: github for mac is nice [13:22] fermion has joined the channel [13:23] Tobsn: oh stackoverflow added "improve this answer" like quora does [13:23] Tobsn: haha [13:23] Tobsn: nice. [13:23] swilson06: davidbanham: cool. [13:24] swilson06: ACTION looksees [13:24] michaeltwofish: How does node know where to look for modules? [13:25] socketio\test\26 has joined the channel [13:25] Tobsn: its always looking in node_modules [13:26] bazookatooth has joined the channel [13:26] michaeltwofish: I have /usr/local/lib/node_modules and nerdie/node_modules. [13:27] EyePulp has joined the channel [13:28] azeroth_ has joined the channel [13:28] michaeltwofish: Ok. I should have looked at http://nodejs.org/api/modules.html#loading_from_node_modules_Folders. [13:28] swilson06: grrr, hate asking a question and finding the docs on their page: http://senchalabs.github.com/connect/connect.html [13:28] Tobsn: michaeltwofish [13:28] Tobsn: https://github.com/joyent/node/blob/master/lib/module.js#L189-215 [13:28] swaj has joined the channel [13:28] Yoric has joined the channel [13:28] davidbanham: michaeltwofish: I had problems with the redis bits of winston failing to build through npm. I "solved" it by installing it globally with -h. Maybe worth a shot? [13:28] Tobsn: also all the other stuff around it [13:29] Tobsn: -g you mean? [13:29] Tobsn: michaeltwofish, the folders are always depending on where your script is [13:29] Tobsn: app.js and at the same level node_modules [13:29] Tobsn: if its further down you have to include that in the path [13:30] Tobsn: anyway, brb [13:31] michaeltwofish: davidbanham: I think you're right that -g would work. [13:32] azeroth__ has joined the channel [13:32] davidbanham: Yes, sorry meant -g. Finger slip. [13:32] michaeltwofish: I knew what you meant :) [13:33] defeated has joined the channel [13:33] michaeltwofish: nerdie seems to be loading plugins from a plugins directory. One of the plugins is looking for codepad. node might be looking for modules relative to the plugin rather than the main script. [13:33] ksheurs has joined the channel [13:33] broofa has joined the channel [13:34] edude03 has joined the channel [13:34] michaeltwofish: But it's too late to follow the source right now :) [13:34] fangel has joined the channel [13:35] ben_alman_ has joined the channel [13:36] gleicon has joined the channel [13:36] adambeynon has joined the channel [13:37] bradley has joined the channel [13:37] rfay has joined the channel [13:39] brianseeders has joined the channel [13:40] micheil: hmm.. no felixge [13:40] cbibler_ has joined the channel [13:41] bentruyman has joined the channel [13:41] michaeltwofish has left the channel [13:41] Yoric has joined the channel [13:42] willwhite has joined the channel [13:42] paznicul has joined the channel [13:42] mandric has joined the channel [13:42] sharkbone has joined the channel [13:43] micheil: ryah: line 191~ of net_uv.js is a bit strange. In one part you're like "try not to slice the buffer if you don't need to" but like, two lines above if there's a decoder you always slice the buffer. [13:45] sharkbird has joined the channel [13:45] unlink has joined the channel [13:45] unlink has joined the channel [13:45] sharkbird has left the channel [13:45] Yoric has joined the channel [13:46] mcavage has joined the channel [13:46] sharkbird has joined the channel [13:47] brolin has joined the channel [13:48] JoshC1 has joined the channel [13:50] avalanche123 has joined the channel [13:50] Sorella has joined the channel [13:50] avalanche123 has joined the channel [13:53] [[zz]] has joined the channel [13:53] kruckenb has joined the channel [13:54] fangel has joined the channel [13:54] jslatts has joined the channel [13:54] mapleman has joined the channel [13:55] rauchg has joined the channel [13:57] jtrudeau has joined the channel [13:58] F1LT3R_ has joined the channel [13:59] t|f has joined the channel [13:59] heavysixer has joined the channel [14:00] quackquack has joined the channel [14:00] JJMalina has joined the channel [14:00] catshirt has joined the channel [14:00] adambeynon has joined the channel [14:04] ditesh has joined the channel [14:05] hkjels_ has joined the channel [14:09] jscheel has joined the channel [14:09] jscheel has joined the channel [14:09] andrewfff has joined the channel [14:10] wlkh has joined the channel [14:10] RevoOf has joined the channel [14:13] ryanfitz has joined the channel [14:14] sivy has joined the channel [14:14] jtsnow has joined the channel [14:15] EyePulp: anyone using linode? [14:17] dtan has joined the channel [14:17] Lorentz: What about them? [14:18] c4milo has joined the channel [14:20] nibblebot has joined the channel [14:20] SamuraiJack has joined the channel [14:20] perlmonkey2 has left the channel [14:21] Swimming_bird has joined the channel [14:22] lukegalea: hey everyone. I found a great way to make the Node REPL easier to use (side-stepping async for quick admin jobs). http://www.ideaforge.org/blog/?p=17 [14:22] lukegalea: really simple and man did it make things easier for me last night. Thought I'd dust off an old blog and share ;) [14:23] sharkbird: has anyone gotten express running on a Joyent no.de SmartMachine? I have tried all the suggestions listed on the website, and have had no luck. [14:23] hackband has joined the channel [14:26] softdrink has joined the channel [14:26] luke` has joined the channel [14:27] bronson has joined the channel [14:28] cryptix has joined the channel [14:29] springmeyer has joined the channel [14:30] v0idless- has joined the channel [14:30] adrianmg has joined the channel [14:32] fangel has joined the channel [14:35] jslatts: sharkbird: it runs fine for me, whats the issue? [14:36] Corren has joined the channel [14:36] sharkbird: jslatts: I have got it to build, but when I point my browser at it, I get a unable to connect message. This app runs fine on my other host. [14:37] jslatts: are you running on port 80? [14:37] aron_ has joined the channel [14:37] sharkbird: jslatts: no, I will try that quick though [14:37] eyesUnclouded has joined the channel [14:38] jslatts: i thought I recalled that joyent required that, but looking through their docs, it doesnt seem so [14:39] jslatts: http://oldwiki.joyent.com/node:faq#what-ip-and-port-do-i-need-to-bind-my-node-http-server [14:39] Throlkim has joined the channel [14:39] sharkbird: jslatts: That worked. Thankyou [14:40] jslatts: no problem [14:40] jtsnow has joined the channel [14:40] k1ttty has joined the channel [14:40] Throlkim has left the channel [14:40] sshaginyan has joined the channel [14:40] sharkbird: jslatts: is that just for express? I had the basic server.js running on other ports, and accepting connections. [14:41] eazyigz has joined the channel [14:41] andrewfff has joined the channel [14:41] jmalina has joined the channel [14:41] jslatts: sharkbird: I actually don't know. I am sifting through their docs right now. obviously socket.io connects back on a different port as well [14:42] jmalina has joined the channel [14:43] entigo has joined the channel [14:43] JJMalina has joined the channel [14:43] adelgado has joined the channel [14:44] jslatts: sharkbird: I can't seem to find any explanation. You might post in their forums. And then let me know when you find out the answer :) [14:44] sharkbird: Sounds good. Thanks again for the help! [14:45] seawise_ has joined the channel [14:45] francesco has joined the channel [14:45] francesco has left the channel [14:45] eazyigz: what is the simplest way to make a GET request from node.js? Akin to curl. I tried url.parse and http.createClient, but I'm not sure I'm doing it right... [14:45] roblarter has joined the channel [14:46] jscheel: eazyigz: I just use restler (npm install restler) [14:47] eazyigz: cool, i'll try it [14:47] defeated: request is another good option: https://github.com/mikeal/request [14:48] eazyigz: i'll check that one out too [14:48] roblarter has left the channel [14:49] adambeynon has joined the channel [14:49] xsyn has joined the channel [14:51] Elise001 has joined the channel [14:51] Elise001: hi bot. I like the idea of bots. Miss you Curtis, also. [14:53] wilken has joined the channel [14:54] Elise001: Hi. [14:57] bentruyman has joined the channel [14:58] kmiyashiro has joined the channel [14:59] sh1mmer has joined the channel [14:59] F1LT3R has joined the channel [15:00] phpnode has joined the channel [15:00] replore_ has joined the channel [15:01] sh1mmer: It's office hours! [15:02] dguttman has joined the channel [15:04] sh1mmer has joined the channel [15:04] seidos has joined the channel [15:05] akshatj has joined the channel [15:06] sub_pop has joined the channel [15:08] wilmoore has joined the channel [15:09] akshatj has joined the channel [15:09] akshatj has joined the channel [15:11] RORgasm has joined the channel [15:12] jj0hns0n has joined the channel [15:12] kulor-uk has joined the channel [15:13] edude03 has left the channel [15:13] tmpvar has joined the channel [15:14] ianward has joined the channel [15:15] swilson06: is there something i need to do in order to get express app.set( 'views', __dirname + '/static' ); to work? it can't find static/index.html ...? [15:16] Mrfloyd_ has joined the channel [15:16] briznad has joined the channel [15:16] yorick has joined the channel [15:16] yorick: are there any scgi modules? [15:17] cryptix: swilson06: drop the static [15:18] swilson06: what do you mean? [15:18] cryptix: swilson06: you just tell express where to look at your filesystem level. its not a pre/postfix for the http request [15:18] kmiyashiro: just index.html [15:19] cryptix: a file like index.html in the static folder can be access by http://localhost:port/index.html [15:19] cryptix: at* [15:19] swilson06: so, app.set('views', __dirname ); will default to ./static/? [15:19] brianc has joined the channel [15:19] pjacobs2 has joined the channel [15:19] cryptix: no the app.set(...) tells node/express where the static files should reside [15:20] MikhX has joined the channel [15:20] brianc: can anyone here help me with an npm account access problem? [15:20] swilson06: right, and i've got ./static/index.html but it isn't finding it [15:20] cryptix: swilson06: whith what url do you request it? [15:20] broofa has joined the channel [15:20] swilson06: host:port/index.html [15:21] cryptix: oh well [15:21] wlkh has left the channel [15:21] cryptix: you want a static provider not the view engine [15:21] brianc: I cannot push new versions of any of my packages [15:21] brianc: I've reset my password etc... [15:21] cryptix: swilson06: sorry my fault [15:21] brianc: still giving me authentication errors [15:21] sh1mmer: brianc: it seems to have been working slowly [15:22] sh1mmer: brianc: you should check with isaacs when he's online [15:22] swilson06: ah, let me go back to the docs.... guess i missed something. thanks [15:22] cryptix: swilson06: you want app.use(express.static(__dirname + '/static')); [15:22] brianc: sh1mmer: roger that. thank you sir. [15:22] swilson06: oh, thanks [15:22] cryptix: swilson06: 'views' is for template langs like jade and stuff [15:23] baudehlo has joined the channel [15:23] swilson06: oh, i thought the app.set( 'view engine', 'html' ) did that... ok [15:24] kruckenb has joined the channel [15:24] cryptix: swilson06: you would have to set up a route and call res.render(file) but its a kind backwords approach i guess [15:25] cryptix: swilson06: express.static should take care of that with less hassle :) [15:26] brianc: swilson06: definitely want to use express.static. It can set content expires headers and so on for you [15:26] brianc: swilson06: if you wanna get really wild you should check this out: https://github.com/mape/connect-assetmanager [15:27] dmcquay has joined the channel [15:28] patrickgamer has joined the channel [15:28] devrim has joined the channel [15:29] mikeal has joined the channel [15:29] pomodoro has joined the channel [15:31] sourcode has joined the channel [15:34] andrewfff has joined the channel [15:36] dguttman has joined the channel [15:38] adambeynon has joined the channel [15:39] mcavage has joined the channel [15:41] adrianmg has joined the channel [15:41] brianc: anyone recommend a good logging library for node.js? There seem to be a few & I was wondering if anyone's had experience using any to good effect in a production system [15:45] caolanm has joined the channel [15:46] tbranyen: http://news.ycombinator.com/item?id=2688263 << if you find it interesting you may put thought in upvoting :3 [15:47] edsu: brianc: also interested in that question, if you find something I'd be interested to hear what it is [15:47] patrickarlt has joined the channel [15:48] bingomanatee has joined the channel [15:49] qrux has joined the channel [15:49] bingomanatee: what is the best way in node to determine if an object is an instance of a given function (""class") [15:50] iFire` has joined the channel [15:51] softdrink: if (foo instanceof Bar)... [15:52] ryanfitz has joined the channel [15:52] hojberg has joined the channel [15:52] xsyn has joined the channel [15:52] newy_ has joined the channel [15:52] bingomanatee: thx [15:52] bradley has joined the channel [15:52] caolanm has joined the channel [15:54] patrickgamer has left the channel [15:55] Yuffster_work has joined the channel [15:55] dguttman has joined the channel [15:57] hkjels_ has joined the channel [15:59] sh1mmer has joined the channel [16:00] dyer has joined the channel [16:00] dyer has joined the channel [16:01] eresair has joined the channel [16:01] davidwalsh has joined the channel [16:01] davidsklar has joined the channel [16:01] beawesomeinstead has joined the channel [16:02] Dreamer3 has joined the channel [16:04] kmiyashiro has joined the channel [16:04] nannto has joined the channel [16:06] sub_pop has joined the channel [16:06] infynyxx has joined the channel [16:07] eddanger has joined the channel [16:10] daleharvey has joined the channel [16:11] tmpvar has joined the channel [16:12] Tidwell has joined the channel [16:12] tjholowaychuk has joined the channel [16:13] jbergstroem has joined the channel [16:14] Shrink has joined the channel [16:14] Shrink has joined the channel [16:15] kawaz_air has joined the channel [16:16] migimunz has joined the channel [16:16] mekwall has joined the channel [16:17] jakehow has joined the channel [16:18] hybsch has joined the channel [16:18] dtan_ has joined the channel [16:19] lukstr: ryah: congrats on the MS support, hard to come by :) [16:20] chapel: lukstr: link? [16:20] lukstr: chapel: http://blog.nodejs.org/2011/06/23/porting-node-to-windows-with-microsoft%E2%80%99s-help/ [16:21] chapel: thats awesome [16:21] lukstr: ( not that I'll ever use it :D ) [16:21] lukstr: but for project traction it's great [16:21] chapel: same, but its a huge step, and means some big players are taking notice [16:21] tbranyen: lukstr: especially if they rig up way to include node easier in visual studio [16:21] tbranyen: to directly compile into projects [16:22] tbranyen: native windows apps written with a node driver [16:22] tbranyen: that would be slick [16:22] lukstr: well there was talk of moving away from waf [16:22] tbranyen: yeah i followed the issue, not enough incentive yet tho it seems [16:22] tbranyen: libgit2 just moved from waf to cmake [16:22] lukstr: but I think it's a resource constraint thing [16:22] lukstr: ugh why cmake? [16:22] tbranyen: one thing that sucks is that now you need to have cmake installed... [16:22] PhilK has joined the channel [16:22] tbranyen: cmake has a nice tui [16:22] stephank has joined the channel [16:23] tbranyen: autoconf nothx [16:23] mekwall has joined the channel [16:23] systemfault: cmake is still the best... [16:23] systemfault: And works everywhere. [16:23] systemfault: unlike autotools [16:23] TooTallNate has joined the channel [16:23] bene has joined the channel [16:23] mrmanager has joined the channel [16:24] matyr_ has joined the channel [16:25] Tobsn has joined the channel [16:25] dipser has joined the channel [16:25] Corren has joined the channel [16:25] Wizek has joined the channel [16:25] mrryanjohnston-e has joined the channel [16:25] Tobsn: anyone an idea why jquery bbq and template wouldnt work with IE8? [16:25] CoverSlide: wonder if they can package cmake with the windows build [16:25] systemfault: They could [16:26] socketio\test\67 has joined the channel [16:26] mrryanjohnston-e: anyone here running an irc bot with node.js? [16:26] CoverSlide: also, what would they be using for compiling .node's? [16:26] adambeynon has joined the channel [16:27] sh1mmer: mrryanjohnston: bocoup do [16:27] systemfault: CoverSlide: If possible, visual C++ (cl.exe) [16:27] tbranyen: Tobsn: completely wrong channel bro [16:27] systemfault: Depends on the code.. [16:27] tbranyen: sh1mmer: we use gf3's bot [16:27] tbranyen: https://github.com/gf3/protobot [16:28] bingomanatee: v8bot: 2 ^ 400 [16:28] v8bot: bingomanatee: Use v8: to evaluate code or "`v commands" for a list of v8bot commands. [16:28] chapel: mrryanjohnston-e sh1mmer kohai [16:28] chapel: `v git kohai @ mrryanjohnston-e [16:28] v8bot: mrryanjohnston-e: nodejitsu/kohai - GitHub - https://github.com/nodejitsu/kohai [16:28] bingomanatee: v8: 2 ^ 400 [16:28] v8bot: bingomanatee: 402 [16:28] maushu has joined the channel [16:29] confoocious has joined the channel [16:29] CoverSlide: i wonder if we're approaching the point where we'd need a flag for windows-supported packages in npm? [16:29] bingomanatee: v8: Math.pow(2, 400) [16:29] v8bot: bingomanatee: 2.5822498780869086e+120 [16:29] bingomanatee: v8: Math.pow(2, 100) [16:29] v8bot: bingomanatee: 1.2676506002282294e+30 [16:30] isaacs has joined the channel [16:30] adambeynon has joined the channel [16:30] AvianFlu has joined the channel [16:30] CoverSlide: and just the man to ask ... [16:30] jasonfb has joined the channel [16:31] dshaw_ has joined the channel [16:31] wilken has joined the channel [16:31] bingomanatee: I am calculating all possible paths to reach a point in a +/- 10 grid with up to 30 steps [16:31] darshanshankar has joined the channel [16:31] CoverSlide: isaacs: any idea if there would need to be any changes to npm to support windows builds? [16:31] bingomanatee: I'm in the millions after 11 steps ... its going to be pretty huge [16:31] Xano has joined the channel [16:32] Cleer has joined the channel [16:33] qrux has left the channel [16:33] yozgrahame has joined the channel [16:34] swilson06: anyone use ejs with express. i'm having issues finding examples...? [16:34] nannto__ has joined the channel [16:34] BillyBreen has joined the channel [16:35] tjholowaychuk: swilson06 there is an example in the repo (ps we have the #express channel now :)) [16:35] tjholowaychuk: I think there's a few examples in the repo using ejs but one is called "ejs" [16:35] eladb has joined the channel [16:35] devrim has joined the channel [16:35] azend has joined the channel [16:36] mikeal has joined the channel [16:37] highermath_away has joined the channel [16:38] mekwall_ has joined the channel [16:39] swilson06: cool. thanks [16:39] sendark has joined the channel [16:39] sendark: hi there. What's a good node module to get the twitter streaming api? [16:41] sh1mmer has joined the channel [16:41] CrabDude has joined the channel [16:42] amerine has joined the channel [16:44] sendark: options.bodyStream and options.responseBodyStream is deprecated. You should now send the request object to stream.pipe() [16:44] sendark: is this an issue with twitter-node? [16:44] dguttman has joined the channel [16:46] Nican_ has joined the channel [16:47] wilmoore has joined the channel [16:47] slaskis has joined the channel [16:47] niftylettuce has joined the channel [16:49] zeropx has joined the channel [16:51] AvianFlu has joined the channel [16:51] sjbreen`` has joined the channel [16:52] zeropx has joined the channel [16:53] robi42 has joined the channel [16:54] willwhite has joined the channel [16:55] junkee[] has left the channel [16:55] zeropx: Has anyone worked with the lescss on os x? I am having trouble getting the command line working. using NPM I installed less and it says its installed, works if I create a file.js with require to less and parses it. But I can't get command line running. Any help would be really appreciated. [16:55] perezd has joined the channel [16:55] devrim has joined the channel [16:55] isaacs: zeropx: npm install less -g [16:55] isaacs: zeropx: -g for global installs to use cli program.s no -g for local installs, for require() [16:56] matyr has joined the channel [16:57] Sorella has joined the channel [16:57] jarek has joined the channel [16:57] zeropx: isaacs: thanks, that worked beautifull! [16:57] mrryanjohnston-e: is there anice big svg version of the node.js logo? [16:58] CoverSlide: there should be [16:58] isaacs: CoverSlide: yeah, there probably will have to be changes to npm to support windows native builds [16:59] ts__ has joined the channel [17:00] CoverSlide: yeah. i assumed that would be necessary [17:00] isaacs: CoverSlide: not huge changes, i don't think [17:00] isaacs: CoverSlide: at least, not for 1.0 [17:00] isaacs: CoverSlide: probably gonna have to implement the bin links differently, and the `npm link` command might not work ever. [17:00] PhilK has joined the channel [17:01] isaacs: but most of hte child proc and fs stuff isn't changing too drastically, and that's really what npm uses mostly. [17:01] kmiyashiro has joined the channel [17:01] CoverSlide: also what about c/++ packages [17:01] isaacs: CoverSlide: oh, well, you'll have to have a build toolchain [17:01] swaj: windows 7 can do folder symlinks... there's a special command for it. They call it junction. [17:01] isaacs: CoverSlide: we will have to take a more serious look at prebuilds [17:01] tbranyen: swaj: thats not just 7 [17:01] CoverSlide: any idea how that's gonna play out? [17:01] Max-Might has joined the channel [17:01] isaacs: swaj: right, but npm mostly does file symlinks when it does symlinks. [17:02] CoverSlide: actually vista/7 do have symlinks [17:02] shajith_ has joined the channel [17:02] CoverSlide: pre-vista used junctions [17:02] isaacs: sure. [17:02] Bonuspunkt: file symlinks needs admin-priv [17:02] swaj: isaacs: junctions work on files and folders [17:02] isaacs: from what i've heard, win7 might Just Work. [17:02] harth has joined the channel [17:02] isaacs: i wouldn't be super surprised. [17:02] tbranyen: windows 7 just working? i'm already shocked at the notion [17:02] isaacs: we may need to implement "fs.symlink" and "fs.readlink" in terms of junctions on windows [17:03] isaacs: yet to be seen [17:03] isaacs: tbranyen: ha. i mean npm on windows 7 ;) [17:03] saurabhverma has joined the channel [17:03] tbranyen: wouldn't that be nice :D, bundle an msi installer for node and npm [17:03] isaacs: fer reals! [17:04] RevoOf has left the channel [17:04] tmedema has joined the channel [17:05] shapeshed has joined the channel [17:05] tmedema: I have a question regarding cluster. The feature list mentions "workers commit suicide when master dies" : how is this a feature? Isn't it a bad thing that the whole cluster goes down when a single process (the master) dies? [17:05] tmedema: It seems against the whole point of setting up a cluster of processes. [17:05] baudehlo: your master sits there and does nothing. [17:06] baudehlo: the children do all the work. [17:06] liquidproof has joined the channel [17:06] baudehlo: so no, that's a feature. Otherwise you get zombies. [17:06] CoverSlide: and then you'd need to get your shotgun [17:06] Yoric has joined the channel [17:07] tmedema: baudehlo: zombies? I figured the master would set it's state in something like redis, so that childs detect a master's death and respawn it, after which the master can continue with the saved state [17:07] tmedema: but if the master does nothing, I assume the chances of it dying are minimal [17:07] baudehlo: tmedema: this is just how Unix works. [17:07] tmedema: dieing ? [17:07] CoverSlide: the master shouldn't be too heavy, there shouldn't be anything that would kill it [17:07] CoverSlide: well, it can [17:08] AvianFlu has joined the channel [17:08] CoverSlide: but i mean there shouldn't be a shitload of buggy logic for it to error out, it should just be a simple monitor for the children [17:08] baudehlo: it's how ever multi-process "thing" in unix works. Probably Windows too, but I don't know Windows. [17:08] vegard has joined the channel [17:08] tmedema: alright [17:09] seidos has joined the channel [17:09] Metroknow1 has joined the channel [17:09] CoverSlide: you can have another process monitor the master to make sure it runs forever [17:09] tmedema: Another question about cluster, does it also help in setting up multiple servers (nodes)? Eg. by providing a management console, to control the nodes from a central place? [17:10] tbassetto has joined the channel [17:10] tmedema: CoverSlide: I see, thanks for the help. [17:10] ceej has joined the channel [17:11] abraham has joined the channel [17:12] sshaginyan has joined the channel [17:12] PhilK has joined the channel [17:12] `3rdEden has joined the channel [17:12] Elise001: Hi I'm back. [17:13] Elise001: Trying to decide whether to attend the Ruby koans meeting at Carnegie Mellon Sillicon Valley or go bowling tonight. I am in a bowling league. [17:14] Poetro1 has joined the channel [17:14] Elise001: One of the guys on my bowling team is an engineering tech. [17:14] bazookatooth has joined the channel [17:14] baudehlo: tmedema: no it doesn't provide that. [17:14] sridatta has joined the channel [17:15] baudehlo: that would be wonderful, but it's a LOT of work. [17:15] iffy|x200 has joined the channel [17:15] baudehlo: plus the problem is everyone's environment is different... [17:15] baudehlo: some people start their daemons via init.d, some via runit, some via daemontools, etc... [17:16] baudehlo: and management in most places has to be done over ssh, which adds another layer of complexity. [17:16] CoverSlide: rc.d ! [17:16] bartt has joined the channel [17:16] tmpvar has joined the channel [17:16] Elise001: I want to know more about this sort of thing. [17:17] tmedema: baudehlo: true, but then again it's a very much wanted feature, especially for bigger companies that wish to achieve high availability for services running on node [17:17] tmedema: hopefully one will invest in such system, the open source way of course ;) [17:18] CoverSlide: yes, 'twould be nice [17:18] baudehlo: well I think nodejitsu open sourced their system for this. [17:18] Poetro has joined the channel [17:18] baudehlo: https://github.com/nodejitsu/haibu [17:19] shapeshed has joined the channel [17:19] tjholowaychuk: tmedema: missed all that. yeah, ideally master would just never die, but it's obviously still pretty new code so it does happen [17:19] tjholowaychuk: it's best to still have external tools like monit [17:19] tjholowaychuk: that are battle tested to monitor master [17:19] baudehlo: or just use runit/daemontools [17:20] xsyn has joined the channel [17:20] MarcinM has joined the channel [17:20] tmedema: tjholowaychuk: alright, what about bidirectional monitoring? in other words, the master does not just monitor childs, but childs also monitor the master (and respawn it if needed, restoring state) [17:20] tmedema: I guess that could get quite complicated though :) [17:20] trotter has joined the channel [17:21] puffpio has joined the channel [17:21] baudehlo: it's impossible. [17:21] baudehlo: you can't change the process hierarchy. [17:21] baudehlo: you can't spawn a parent. [17:21] tjholowaychuk: you could spawn a new master and kill off the old orphaned children [17:21] Horofox has joined the channel [17:21] baudehlo: true. [17:21] tjholowaychuk: but im more interested in just having master not die [17:21] tjholowaychuk: haha [17:21] baudehlo: well kinda... [17:21] tjholowaychuk: that's how it works on restart [17:21] tjholowaychuk: you'll have two masters for a moment [17:22] tmedema: Ah, I did not know that linux only allows hierarchical process structures, so it does not allow for "independent" processes, that do not have parents [17:22] baudehlo: it doesn't use exec? [17:22] CoverSlide: how about call the first one master, the second one blaster [17:22] tjholowaychuk: tmedema you can, if you SIGKILL master you'll still have the orphaned children working [17:22] bitwise_ has joined the channel [17:22] baudehlo: but they will be zombies [17:22] baudehlo: unless you make the children of init. [17:23] stride: CoverSlide: and call the whole thing thunderdome.js? [17:23] CoverSlide: exactly [17:23] baudehlo: s/the/them/ [17:23] stride: CoverSlide: sounds great [17:23] tmedema: I see, thanks for elaborating on that [17:23] stride: two processes in, one process out [17:23] tjholowaychuk: they are just orphaned not zombies [17:23] baudehlo: hmm, I guess node has no equivalent of exec. [17:23] MarcinM has left the channel [17:23] baudehlo: that's kinda annoying. [17:24] Max-Might has left the channel [17:24] baudehlo: ACTION notes it under the list of missing API methods [17:24] tmedema: baudehlo: about haibu, it says "haibu is the open-source node.js project for spawning and managing several node.js applications on a single server" : sounds like it is much like cluster, for a "single server" [17:25] tmedema: it's talking about managing applications, not nodes/servers [17:25] baudehlo: yeah but they have haibu balancer which does some sort of multi server thingy [17:25] baudehlo: *shrug* I don't know much about it. [17:25] CoverSlide: cluster just pre-forks a single app on a single server [17:25] baudehlo: and I don't do web :) [17:26] quackquack: whats the best screen scraping library for nodejs? [17:26] CoverSlide: haibu is for managing multiple apps [17:26] tjholowaychuk: baudehlo for example depending on the plugins you use (since they will break during IPC) if you SIGKILL master [17:26] tjholowaychuk: the children can still serve the site [17:26] tjholowaychuk: haha [17:26] tjholowaychuk: kinda lame but hey [17:26] baudehlo: tjholowaychuk: yeah I need to experiment with it and see what happens with Haraka. [17:27] FireFly has joined the channel [17:27] baudehlo: like whether it will let a child finish handling all it's current clients? [17:27] jerrysv has joined the channel [17:27] H2S04 has joined the channel [17:27] tjholowaychuk: cluster lets the remaining connections close but there's a tweakable timeout [17:27] Murvin has joined the channel [17:27] tjholowaychuk: you'll still have the new master accepting new connections [17:27] tjholowaychuk: with the new code [17:27] bentruyman has joined the channel [17:28] bshumate has joined the channel [17:28] jerrysv: good morning nodejs! [17:28] CoverSlide: so it just disconnects the listener? and lets the event loop finish? [17:28] baudehlo: "new code" - as in a new release coming or ? [17:28] lmorchard has joined the channel [17:28] thalll has joined the channel [17:28] CoverSlide: baudehlo: when it's reloaded after a code change [17:29] CoverSlide: using the reload() plugin [17:29] baudehlo: oh right. I don't enable that feature. [17:29] tjholowaychuk: no no reload() [17:29] tjholowaychuk: doesnt matter [17:29] baudehlo: wouldn't work for Haraka anyway. [17:29] CoverSlide: yeah, i only use it for dev, not prod [17:29] tjholowaychuk: on a USR2 it will restart [17:29] tjholowaychuk: the config / app [17:29] Murvin: bnoordhuis: I discover something more about the socket problem. please see my update in gist. :) [17:29] baudehlo: Haraka loads plugins via vm [17:30] temp01 has joined the channel [17:30] baudehlo: so deleting the require.cache won't do anything for plugins [17:31] tjholowaychuk: this doesnt do anything with require.cache [17:31] baudehlo: the reload() plugin doesn't? [17:31] tjholowaychuk: it's a new process [17:31] tjholowaychuk: nope [17:31] baudehlo: ok, but still... [17:31] baudehlo: it doesn't know when plugin files change. [17:31] tjholowaychuk: reload() is the same as USR2 but it checks for changes [17:31] tjholowaychuk: yeah [17:32] baudehlo: I guess I could make it look in the right dir if reload is in cluster_modules [17:33] socketio\test\27 has joined the channel [17:33] baudehlo: still, it's email. It doesn't care if you take it down for a bit. [17:33] swaj: tjholowaychuk: question for you. I have a CSS file that I'm serving up with express using the static connect. I noticed that any changes I made wouldn't be served for this file until I moved it out and back into the folder. Browser refresh did nothing... is there something I might have missed? I literally had to mvoe the file out, Refresh browser to get the 404, and move it back in again [17:33] swaj: to get the changes to be picked up. [17:33] tjholowaychuk: reload() is more for development [17:33] swaj: the weird part is that other CSS files work fine, it was just this single file. [17:34] tjholowaychuk: but for a graceful restart you just signal cluster [17:34] patrickarlt_ has joined the channel [17:34] tjholowaychuk: swaj hm... that doesn't make sense [17:34] CoverSlide: express.static is a connect plugin. i think there's a cache option for it [17:34] tjholowaychuk: nope not anymore [17:34] CoverSlide: no? [17:34] tjholowaychuk: there's maxAge for http caching [17:34] tjholowaychuk: but not memory caching [17:35] swaj: tjholowaychuk: yeah it boggled me. I would think a browser refresh should cause the file to get reloaded, but I didn't know if there was something I might have missed. [17:35] tjholowaychuk: strange [17:35] baudehlo: shift-refresh? [17:35] tjholowaychuk: that used to be an issue when maxAge was not defaulted to 0 [17:35] CoverSlide: cache clear [17:36] CoverSlide: new browser? [17:36] baudehlo: also sniff the connection (http headers or whatever) and see what is being requested/sent. [17:36] sreeix has joined the channel [17:36] tbranyen: def sounds like a cache issue [17:36] swaj: it persisted accross browser sessions -- I even used different browsers. [17:36] swaj: firefox, chrome, didn't matter [17:37] CoverSlide: omgwtfbbq [17:37] CoverSlide: ff5 already released? [17:37] Ian_Corne: yes [17:37] tbranyen: CoverSlide: they switched to a new release schedule months ago [17:37] tjholowaychuk: swaj messed, can you reproduce it with just static()? [17:38] tmedema: What storage solution should I use to share a scalable application's state inbetween servers (in the same datacenter), redis? [17:38] CoverSlide: are they doing the chrome thing and upping the number whenever they feel like it? [17:38] swaj: tjholowaychuk: I'll try it when I get home tonight. I'll see if I can get it to do it again. If necessary I'll give you SSH into my box if you want to try and poke at it once I get it reproduced. [17:38] tiagoa has joined the channel [17:39] ambroff has joined the channel [17:39] systemfault: CoverSlide: They juste woke up IHMO, Mozilla has been sleeping for too long. [17:39] blup has joined the channel [17:39] swaj: was on my MBP :P [17:39] swaj: I'm at work on Windows 7 atm T_T [17:39] CoverSlide: i noticed arch updated it, but it seems windows didn't, had to do manual update. strange cause i thought they were switching to silent updates [17:41] tbranyen: CoverSlide: you're an arch user too? [17:41] CoverSlide: yes [17:41] tbranyen: :D [17:41] tbranyen: I'm almost a year strong using it on server, laptop, home desktop, work desktop [17:42] abraham has joined the channel [17:43] alessio_alex has joined the channel [17:43] CoverSlide: yeah i got it on my server, lappy [17:44] CoverSlide: on my home desktop the wife wanted windows though :( [17:44] tmedema: arghhh! [17:45] dguttman has joined the channel [17:45] matyr_ has joined the channel [17:46] mrryanjohnston-e: CoverSlide: Instlal Ubuntu ;) [17:46] bartt has joined the channel [17:46] mrryanjohnston-e: CoverSlide: or, even better, archlinux + gnome [17:47] H2S04 has joined the channel [17:47] boaz has joined the channel [17:47] CoverSlide: i did have ubuntu on there, but she made me change it to windows [17:47] mscdex: use a windows-like theme [17:47] mscdex: :-D [17:47] mrryanjohnston-e: :( [17:48] mrryanjohnston-e: i'm sorry for your loss, CoverSlide [17:48] tmedema: I wonder, is archlinux any good for a production server? Or is it not made for stability / safety? [17:48] mrryanjohnston-e: i would have been a jerk and just been like "i don't know how to install windows" [17:48] CoverSlide: haha [17:48] mrryanjohnston-e: tmedema: depends [17:48] Bonuspunkt: considerd using a vm? ^^ [17:48] mrryanjohnston-e: tmedema: they have a stable kernel release [17:48] wilken has joined the channel [17:48] mrryanjohnston-e: but everything else is bleeding edge [17:48] mrryanjohnston-e: so it depends on what you have on it. [17:48] tmedema: alright, think I will stick with ubuntu server edition [17:48] mrryanjohnston-e: though I must admit I've very very very rarely, if ever, had a crash [17:48] hkjels_ has joined the channel [17:48] mrryanjohnston-e: :) [17:49] mscdex: archlinux: the distro for st.louis users [17:49] mrryanjohnston-e: if you ever switch to arch though let me know. i'd be interested [17:49] mrryanjohnston-e: in knowing how well it holds up in prod [17:49] CoverSlide: i tend to do daily updates, and reboot on kernel update [17:49] CoverSlide: so i do see my fair share of issues [17:49] tmedema: sure ;) [17:49] alexandere has joined the channel [17:49] CoverSlide: plus i jump in and out of testing [17:50] tbranyen: the only issue i've had is upgrading mysql and having the config changed [17:50] tbranyen: no other issues luckily with updates in the past year [17:50] CoverSlide: but it holds up really well even then [17:50] CoverSlide: i get impatient with updates sometimes [17:51] brianloveswords has joined the channel [17:51] CoverSlide: with scala and perl, after i didn't see any update i ended up editing the pkgbuild from svn and building the package myself [17:52] CoverSlide: one thing i love about arch [17:52] mrryanjohnston-e: ^ [17:52] mrryanjohnston-e: =1 [17:52] saurabhverma has joined the channel [17:52] mrryanjohnston-e: +1** [17:52] mrryanjohnston-e: i literally forget sometimes and don't upgrade for months [17:52] CoverSlide: although the perl update did fuck it up a bit [17:52] mrryanjohnston-e: that's a bad idea, btw. you shouldn't do that [17:52] CoverSlide: not on prod [17:52] CoverSlide: just for fun [17:52] CoverSlide: im a bit ocd when it comes to updates [17:53] tbranyen: i wanted to write an aur wrapper in node [17:53] tbranyen: haven't done it yet tho [17:53] Shrink has joined the channel [17:54] mrryanjohnston-e: tbranyen: ooo that'd be pretty cool [17:54] boaz has joined the channel [17:54] tbranyen: npm install aur type of dealio [17:54] CoverSlide: but anyway, an update-every-6-months distro like ubuntu i don't have the patience for [17:55] tmedema: I wonder, if node ships to Windows, if it'll have potential for commercial windows applications. I guess one problem is that the application's source has to be included, so anyone could copy the source. [17:56] CoverSlide: is node gpl? [17:57] sweetd_ has joined the channel [17:57] tmedema: Hmm, didn't think about licenses [17:57] CoverSlide: or do you mean the js source? [17:57] tmedema: CoverSlide: yes [17:57] tmedema: https://github.com/joyent/node/blob/master/LICENSE [17:57] CoverSlide: hmm [17:57] daleharvey: does anyone have an emacs mode that does indentation "the node way" [17:58] CoverSlide: daleharvey: try js3-mode [17:58] swaj: node itself is MIT'ed it appears [17:58] swaj: but its deps are various licenses [17:59] markwubben has joined the channel [17:59] tmedema: swaj: would it be possible to bundle and package the entire thing to resell it, with default deps? [17:59] tmedema: if so, that would create a market for windows applications build with node in the future [17:59] Bonuspunkt: openssl [18:00] swaj: everything but OpenSSL within node is either BSD or MIT licensed, so yes [18:00] tmedema: alright, so then there only is the "source availability" problem [18:00] bradley has joined the channel [18:00] swaj: well MIT/BSD licenses are not copyleft [18:00] swaj: you could close it up and sell it all you want [18:01] swaj: just have to leave credit/copyright notices in tact [18:01] swaj: intact* [18:01] tmedema: aye [18:01] swaj: you have no obligation to release your contributions [18:01] tmedema: swaj: no, but node.exe would need to interpret the code [18:01] tmedema: thus it has to be included in a raw way in some place [18:02] swaj: sure [18:02] daleharvey: sweet, thats better, thank CoverSlide [18:02] saikat has joined the channel [18:02] daleharvey: now I need to make jshint not warn about bad line breaks :P [18:02] Mrfloyd has joined the channel [18:03] mcluskydodallas has joined the channel [18:05] matyr has joined the channel [18:07] sweetd_: daleharvey: white: false ? not sure if it includes line breaks but maybe [18:07] aliem has joined the channel [18:09] Shrink has joined the channel [18:09] Shrink has joined the channel [18:09] daleharvey: well I wrote an emacs plugin for jshint and forgot to add a thing to add global options [18:10] daleharvey: so I need to fix that, just disabling for now [18:10] tmedema: daleharvey: thanks for mentioning jshint, didn't know about it [18:10] PeterPeterPeter has joined the channel [18:11] tbranyen: jshint is great [18:12] hij1nx has joined the channel [18:13] unlink has joined the channel [18:13] unlink has joined the channel [18:13] jscheel_ has joined the channel [18:14] adambeynon has joined the channel [18:15] Aria has joined the channel [18:16] bitwise_ has joined the channel [18:17] Murvin: bnoordhuis: hey, did you get my message earlier? :) [18:20] dyer has joined the channel [18:20] dyer has joined the channel [18:20] [[zz]] has joined the channel [18:24] yozgrahame has joined the channel [18:25] hosh_work has joined the channel [18:25] deedubs has joined the channel [18:25] matyr has joined the channel [18:26] Vertice has joined the channel [18:28] mertimor has joined the channel [18:29] daleharvey: time for the annoying question [18:29] jbpros has joined the channel [18:29] mrmanager has joined the channel [18:29] darshanshankar has joined the channel [18:29] daleharvey: is there any facility in node to restart the node process when you edit the code? [18:30] djcoin has joined the channel [18:30] eddanger has joined the channel [18:32] JJMalina: daleharvey: yes, https://github.com/remy/nodemon [18:35] H2S04 has joined the channel [18:36] erictj has left the channel [18:36] blup has joined the channel [18:37] daleharvey: cool thanks [18:38] KingJamool has joined the channel [18:38] jhurliman has joined the channel [18:39] AntelopeSalad has joined the channel [18:42] sandropadin has joined the channel [18:43] nayrb has joined the channel [18:46] unomi has joined the channel [18:46] FireFly|n900 has joined the channel [18:48] creationix has joined the channel [18:50] Mrfloyd has joined the channel [18:50] mendel_ has joined the channel [18:50] adambeynon has joined the channel [18:51] tmpvar has joined the channel [18:51] patrickarlt has joined the channel [18:53] yorick: https://gist.github.com/1043282 if anyone is interested :) [18:53] yorick: scgi server :) [18:53] yorick: SubStack: I love you [18:53] level09 has joined the channel [18:53] joshthecoder has joined the channel [18:54] level09: join socket.io [18:54] level09: oops [18:54] alessio_alex: daleharvey you can also use Cluster to auto-restart your app [18:54] yorick: / [18:54] level09: :DD [18:55] jerrysv: has anyone completed a fastcgi client for node? [18:56] `3rdEden: level09 free advertisement ;) [18:56] level09: :D [18:56] yorick: jerrysv: I think not [18:56] level09: its all node in the end :) [18:56] ezmobius has joined the channel [18:57] jarek has joined the channel [18:57] jarek has joined the channel [18:57] jerrysv: yorick: i'm thinking trying to keep all webservices under one roof [18:57] yorick: jerrysv: and what is wrong with scgi? :) [18:58] creationix has left the channel [18:59] devrim has joined the channel [18:59] saikat has joined the channel [19:00] yozgrahame1 has joined the channel [19:01] supster has joined the channel [19:01] dspree has joined the channel [19:02] v0idless- has joined the channel [19:02] jerrysv: yorick: does it support existing legacy php apps? [19:03] chiyam has joined the channel [19:04] lukegalea: jerrysv: You can always toss an nginx proxy in front and have it serve both your php and node stuff [19:04] lukegalea: we use php, ruby, node and erlang [19:05] lukegalea: and a single nginx in front of them all make them all feel like they are under one roof :) [19:05] CoverSlide: who is we? [19:05] jerrysv: lukegalea: pass through for websockets is one of the big gains i'm hoping to get, as well as lowering the overhead and learning curve for our ops group [19:05] patcito has joined the channel [19:05] techwraith has joined the channel [19:05] lukegalea: You were hoping to run websockets in Apache? [19:06] jerrysv: lukegalea: no, i'm hoping to eliminate apache from the mix completely [19:06] mikey_p: alternatively you could look into using something like mongrel2 [19:06] jerrysv: lukegalea: and use node like you are using nginx, as the primary dispatcher [19:07] mikey_p: that's probably not the best use for node [19:07] lukegalea: jerrysv: aah.. so you aren't trying to run node on apache, you want to run php on node. I get it. Neat idea. But no experience with that ;) Sorry. [19:07] mikey_p: it's fast, but it's not nginx, or mongrel fast [19:07] eldar has joined the channel [19:07] jerrysv: mikey_p: thanks, will take a look into that [19:08] jerrysv: lukegalea: exactly -- it's apache replacement time, but we move in 5 year increments, i want our next 5 years to have a good scaleable stack [19:08] hij1nx_ has joined the channel [19:08] focusaurus has joined the channel [19:08] CoverSlide: what about cherokee? [19:08] jacekp has joined the channel [19:08] mikey_p: what about it? [19:08] CoverSlide: where it fits speed-wise [19:08] mikey_p: it's neat, but I don't think it significantly varies from the apache way of doing things does it? [19:09] reid has joined the channel [19:09] raZer_ has joined the channel [19:09] CoverSlide: not really [19:09] mikey_p: i thought it's main features were it's web based gui configuration? [19:09] mikey_p: it's hard to find real info about cherokee performance and scaling [19:09] eddanger has joined the channel [19:10] CoverSlide: it does have a nice little web ui, but i see a lot of benchmarks from them comparing them to nginx [19:10] jacekp: hi, is there a way to get command line params that node was started with, from within node? [19:10] CoverSlide: probably not the most objective [19:11] mikey_p: even nginx doesn't interest me that much, as it still requires fastcgi or another webserver and proxying requests [19:11] CoverSlide: jacekp: process.argv[] [19:11] daleharvey: jacekp: process.argv [19:11] CoverSlide: w00t! [19:11] jacekp: perfect thanks [19:11] CoverSlide: true [19:12] catphive: is it possible to eval code within the context of another module? [19:12] srid has joined the channel [19:12] catphive: maybe something like with(module) { eval("mycode"); } [19:12] catphive: the context of this question, is that this would be used in a javascript IDE [19:13] MooGoo: what exactly do you want to do? [19:13] catphive: incrementally add things to modules [19:13] junkee[] has joined the channel [19:13] catphive: this is for swank-js [19:13] CoverSlide: you can add values to the exported object [19:13] MooGoo: module.newfunction = function() { stuff } ? [19:13] catphive: yes [19:14] catphive: if possible, I'd like to be able to replace unexported values as well [19:14] CoverSlide: just us fs.readFile [19:14] _Sorensen has joined the channel [19:14] CoverSlide: otherwise, i don't know how you'd have access to exported values [19:14] CoverSlide: *unexported [19:15] MooGoo: you want to modify the source code of a module? [19:15] MooGoo: that's what it sounds like [19:16] catphive: I want to be able to evaluated new code in the context of a module [19:16] catphive: so that I can modify it without restarting the process [19:17] MooGoo: you want access to the scope of a required() module? [19:17] CoverSlide: the module gets cached anyway, any successive calls to a module will result in the same object returned as the first one [19:17] catphive: right, I want to modify the cached module [19:17] MooGoo: do you just want to be able to hotload modules? [19:17] insin has joined the channel [19:17] MooGoo: so you can reload them without restarting node [19:18] CoverSlide: it would be a nice feature but afaik not supported [19:18] MooGoo: there are modules out there for that [19:18] catphive: not so much reloading the module, I want to keep its existing state [19:18] MooGoo: or you can just delete the proper key in the require file cache [19:18] CoverSlide: i think they just restart node transparently [19:18] MooGoo: nah [19:18] MooGoo: I mean I wrote one myself, it just reads teh file and evals it [19:18] MooGoo: that's what require does [19:19] raZer_: how can we write a c or c++ module for node js? Most of the modules are written in Java Script itself.. But I have seen some having c support. Does node's require() also loads the c programs? [19:19] mike5w3c has joined the channel [19:19] MooGoo: catphive, you cant really access the scope of any arbitrary js functio [19:19] MooGoo: n [19:19] MooGoo: that's why they call it private [19:19] CoverSlide: yeah you can roll your own if you want [19:19] Aria: raZer_: Yes, it does -- they're generally .node files, a shared object in whatever form your OS expects. [19:19] catphive: maybe I need to look at how require looks [19:19] catphive: works [19:20] MooGoo: require loads the specified file as a string, wraps it in (function(exports, require, module) { ...code...})(exports, require, module) [19:20] MooGoo: runs it that way [19:20] MooGoo: also caches [19:21] raZer_: hmm.. i was wondering if it is possible to use libraries written for node that are CommonJs compatible to use for my custom v8 program [19:21] defeated: raZer_: Here's some slides from nodeconf that talk about how to build a native extension: http://marcorogers.com/nodeconf-2011/node_addons_presentation.html [19:21] catphive: interesting [19:21] raZer_: i wrote a simple require .. that works but now interested in doing the same for c library.. wondering how node does it [19:21] raZer_: wonderful... ill look at that [19:22] CoverSlide: oo me likey [19:22] MooGoo: I still want to find out how to write a node/v8 extension that exposes the scope chain [19:22] CoverSlide: the chrome bookmark syncing totally replaces my need for delicious / stumbleupon / etc [19:23] CoverSlide: Probably have to modify the runtime [19:23] MooGoo: have to do something tricky [19:23] MooGoo: I'd hope it doesnt involve changing the source of v8 [19:23] raZer_: hmm.. ill keep posting my findings somewhere and link it here .. may be people can give feedback.. [19:23] CoverSlide: just slip it into a pull request [19:23] MooGoo: the scope chain is a real JS internal object [19:24] CoverSlide: ryah will never know [19:24] xeodox has joined the channel [19:25] jga023 has joined the channel [19:25] junkee[]: v8 people, where you are? [19:27] kriszyp has joined the channel [19:28] malkomalko has joined the channel [19:28] baudehlo: in #v8 probably [19:29] hij1nx_ has joined the channel [19:29] tenumm has joined the channel [19:29] catphive: btw anyone know where require is defined in node js code base? [19:30] mhilmi has joined the channel [19:30] malkomalko: silly question... on the filesystem.. where is node's source code. If I wanted to look at assert.js.. where the heck does it put it? :) [19:30] CoverSlide: in src/lib [19:30] CoverSlide: for the require()able modules [19:30] CoverSlide: i mean /lib [19:31] CoverSlide: malkomalko: where did you get node from [19:31] malkomalko: installed via npm [19:31] malkomalko: ... /usr/local/Cellar/node/ [19:31] malkomalko: but not finding it [19:31] CoverSlide: you ca install node from npm? [19:31] AvianFlu: MooGoo: v8 object handles keep track of their scope, all that stuff is in the v8 docs [19:31] tenumm: Hello Noders - I am trying to return the JS object via Handle Attachment::getNamedProperty(v8::Local property, const AccessorInfo& info) {//return attachment object }. How I can do that withoutconst Arguments &args) [19:31] CoverSlide: doesn't npm require node? [19:31] CoverSlide: malkomalko: you need to download the source [19:32] malkomalko: figured [19:32] malkomalko: thanks [19:32] CoverSlide: and in the source, there is a /lib directory [19:32] tilgovi has joined the channel [19:32] tilgovi has joined the channel [19:33] CoverSlide: somehow those are predefined in the environment and requireable on demand within the runtime [19:33] adambeynon has joined the channel [19:34] junkee[]: tenumm: What is an attachment? Cant find it in the docs. [19:34] seidos has joined the channel [19:35] saikat has joined the channel [19:37] dyer has joined the channel [19:37] dyer has joined the channel [19:37] wlkh has joined the channel [19:38] sshaginyan has joined the channel [19:38] jacobolus has joined the channel [19:39] adambeynon has joined the channel [19:39] wlkh: can anyone point me towards a tutorial on how to update my npm library because of the module deprecation? [19:39] bradley has joined the channel [19:39] wlkh: "package.json: 'modules' object is deprecated" [19:40] hkjels_ has joined the channel [19:40] CoverSlide: remove the modules object? [19:41] fwg: npm help json [19:41] shoebat has joined the channel [19:41] wlkh: thx [19:42] hlindset has joined the channel [19:42] hlindset has joined the channel [19:42] wlkh: that's what I was looking for. [19:43] hwinkel has joined the channel [19:44] xeodox has joined the channel [19:46] coreb has joined the channel [19:46] sh1mmer has joined the channel [19:47] junkee[]: I need help with v8. anyone who knows about it? [19:47] tbranyen: junkee[]: just ask' [19:48] jerrysv: junkee[]: someone will [19:49] seawise: can give V8 developer contact [19:50] seawise: guy that developed that huge thing in Google black science labs! [19:50] willwhite has joined the channel [19:51] junkee[]: When c++ creates a new instance with constructor_template->GetFunction()->NewInstance() it calls the constructor but how can i determine if the constructor is called from c++ and when it is called from JS? [19:52] bnoordhuis: junkee[]: why would you care? [19:52] CoverSlide: why would it matter? [19:52] junkee[]: because I want to create a GstElement if it is called from JS and I dont want to create it when I call it from c++ [19:52] willwhit_ has joined the channel [19:53] hwinkel1 has joined the channel [19:54] bnoordhuis: junkee[]: look at how node_buffer.cc provides c++-only constructors [19:54] bnoordhuis: junkee[]: but also consider reconsidering your approach :-) [19:55] Horofox: ive set up a server in linode and when i run a node.js script that i have, it just closes... [19:55] Horofox: and it runs well on my pc [19:56] dguttman_ has joined the channel [19:56] Horofox: (other node.js apps run well on my linode server, just that script that dont work) [19:56] Horofox: any guesses? [19:56] path[l] has joined the channel [19:58] hwinkel has joined the channel [19:58] tbranyen: Horofox: well with no errors... [19:59] tbranyen: hard to guess [19:59] Horofox: tbranyen: no errors, it just like, closes [19:59] ryanfitz has joined the channel [19:59] tbranyen: start commenting out code till it works? [19:59] Horofox: it's the Inotify "test" script [19:59] tbranyen: i don't know what that is [19:59] tbranyen: binding to libinotify or something? [19:59] Horofox: yes. [20:00] Horofox: https://github.com/c4milo/node-inotify [20:00] Horofox: it works on my pc [20:00] Horofox: but don't work on my server. [20:00] mraleph has joined the channel [20:00] junkee[]: bnoordhuis: thanks. found something usefully [20:00] tbranyen: might be a dumb question but did you install inotify? [20:00] mendel__ has joined the channel [20:00] Horofox: it comes installed with linux :) [20:01] tbranyen: Horofox: hmm pretty sure i had to install that, maybe i didn't [20:01] Horofox: but i did install stuff like inotify tools and so on(even tho i dont need it) [20:01] tbranyen: or i'm thinking of some other notification tool [20:01] tbranyen: i'll give it a shot here [20:01] devrim has joined the channel [20:01] gozala has joined the channel [20:01] bnoordhuis: tbranyen: inotify_*() are syscalls but there are cli inotify tools [20:01] bnoordhuis: tbranyen: inotifywatch and inotifywait to be precise [20:02] baudehlo: did you do something silly like install node v0.5.0? [20:02] Horofox: yea [20:02] Horofox: but on my pc it works. [20:02] baudehlo: don't do that. [20:02] Horofox: with node 0.5 [20:02] baudehlo: I stand by what I said. [20:03] jameson has joined the channel [20:03] tbranyen: yeah i dunno why people use unstable versions and wonder why stuff isn't working [20:03] c4milo: Horofox: hum, do you have some gist to take look at? [20:03] sharkbone: is there anyway i can parse a huge text file (3gig) from linux to php array [20:04] Horofox: c4milo: oh, a celebrity here! [20:04] Horofox: wait [20:04] c4milo: Horofox: node-inotify hasn't been tested with node 0.5.x since it is still an unstable version, you might run into weird issues [20:04] Horofox: oh [20:04] baudehlo: tbranyen: until I changed it, the install instructions recommended pulling git HEAD. [20:04] hwinkel1 has joined the channel [20:05] c4milo: Horofox: the latest stable version of node is 0.4.8 [20:05] tbranyen: baudehlo: so what, the instructions could tell me to stick my hand in a blender [20:05] tbranyen: its still not a good idea ;-) [20:05] josephboyle has joined the channel [20:05] Horofox: c4milo: it feels strange because it runs ok in local, but not in my server. [20:05] baudehlo: right now there needs to be a big red flashing warning sign on HEAD that says DO NOT USE THIS, EVER [20:05] Horofox: c4milo: both with the same node versions and so on [20:06] tbranyen: baudehlo: well presumably someone uses it to test [20:06] tbranyen: i want to try my git bindings in HEAD [20:06] baudehlo: node core developers, sure. [20:06] tbranyen: see what happens other than frying my cpu [20:06] baudehlo: but it's horribly unstable right now. [20:06] shajith_ has joined the channel [20:06] tbranyen: yeah no doubt with all that libuv stuff going on [20:06] c4milo: Horofox: would you please tell me what's the issue? [20:06] geoffeg_ has joined the channel [20:06] hwinkel2 has joined the channel [20:07] c4milo: Horofox: I just saw you mentioned node-inotify [20:07] Horofox: c4milo: when i run it on my pc, it runs. [20:07] baudehlo: Horofox: honestly it doesn't matter if it works somewhere on 0.5.0, just downgrade to v0.4.8 and *then* see if it works, and check here again. [20:07] baudehlo: 0.5.0 is broken. Things are guaranteed not to work. [20:07] Horofox: c4milo: but when i try to run it on my server, it stops. [20:08] Horofox: c4milo: and yea, it's the inotify sample. [20:08] willwhite has joined the channel [20:08] Horofox: the example of use that is on your github [20:08] c4milo: Horofox: any exception? [20:08] Horofox: c4milo: none, it just closes, like... [20:08] Horofox: root@li159-108:/home/thi/thi# node node_thumb.js root@li159-108:/home/thi/thi# [20:09] baudehlo: Horofox: this points to an event loop problem, which points to you not following the advice I gave, because v0.5.0's event loop is undergoing massive changes right now. [20:09] Horofox: instead of running properly [20:09] Horofox: baudehlo: but it works on my pc with the same node version!!! [20:09] baudehlo: so what? [20:09] Horofox: baudehlo: that's strange? [20:09] baudehlo: it's obviously different somehow. [20:10] baudehlo: compiled different, things installed different, OS different. [20:10] jerrysv: horofox: same node version, same os version, same kernel version, same version of every single library? [20:10] sh1mmer has joined the channel [20:10] hunterloftis has left the channel [20:10] eddanger has joined the channel [20:10] Horofox: jerrysv: no. [20:10] c4milo: Horofox: does you server have the same Linux distribution as your desktop? [20:10] jerrysv: horofox: then try 0.4.8 :) [20:11] c4milo: Horofox: exactly :) [20:11] baudehlo: Horofox: I'm just saying, if it breaks on v0.4.8 at least you're not sending someone on a wild goose chase looking for breakage. [20:11] thalll has joined the channel [20:11] Horofox: c4milo: yes, my desktop distribution is ubuntu 11.04 and the server is ubuntu 10.04 [20:11] c4milo: Horofox: that's a big difference [20:11] Horofox: baudehlo: i'm going to try with 0.4.8 then [20:11] jerrysv: horofox: that's a pretty big difference, that's a lot of variables. how about eliminating a couple of those? [20:12] mikeal has joined the channel [20:12] Horofox: c4milo: it's strange because it feels that it's just inotify related because node.js runs well on both. [20:12] Horofox: c4milo: is there any way to check if inotify is alright on both systems? [20:12] c4milo: Horofox: what does it run well? [20:13] c4milo: Horofox: they only way to know if it runs well is if you have a service running for weeks and it continues working well. [20:13] jerrysv: horofox: it could be, there may be some part of inotify that does not play well with the latest kernel, or some latest lib, and bleeding edge node [20:13] Horofox: c4milo: i have a ~1k loc server using like 15 libs and i'm only having a problem in the inotify part [20:13] gkmngrgn has joined the channel [20:13] Horofox: c4milo: so i tried to run the inotify sample and it didn't run. [20:14] Horofox: so it's probably a problem with inotify in my server, but how to fix it? [20:14] tbranyen: jerrysv: i'm on a pretty latest kernel [20:14] tbranyen: worked alright here [20:14] jerrysv: tbranyen: i was just pointing out all of the possible variables :) [20:14] tbranyen: yeah just saying [20:14] tbranyen: on .39 and its alright [20:15] tbranyen: i dunno when arch is gonna pick up 3 [20:15] Horofox: jerrysv: probably... i'm going to take a look at everything [20:15] Horofox: jerrysv: going to begin by downgrading my node.js version [20:16] shinuza has joined the channel [20:16] baudehlo: doesn't inotify require some sort of daemon running? [20:17] baudehlo: I seem to recall. [20:17] Horofox: that's what i want to know... [20:17] c4milo: Horofox: that's a good way to start with. You can also use process.on('uncaughtException', function(e) {}) to catch the exception that it's throwing [20:17] bnoordhuis: baudehlo Horofox: no [20:17] c4milo: baudehlo: nop [20:18] c4milo: baudehlo: inotify is a kernel library, the kernel itself sends to you the fs events [20:18] Horofox: damn everything looks so pretty in my pc :( [20:18] baudehlo: ah ok. Then inotify had a predecessor that did? [20:19] baudehlo: fam? [20:19] baudehlo: ACTION is used to BSDs and kqueue which works for file change notification natively [20:20] c4milo: baudehlo: the predecessor was dnotify [20:20] Horofox: c4milo: node-inotify is awesome btw! [20:20] bnoordhuis: baudehlo: predecessor to inotify was dnotify but that was also a kernel API [20:20] Horofox: c4milo: :) [20:20] devrim has joined the channel [20:20] c4milo: baudehlo: bnoordhuis there is a new one "fanotify" [20:20] baudehlo: where does fam fit into this then? [20:21] c4milo: Horofox: tks [20:21] bnoordhuis: c4milo: correct - but i don't think you'll find it in any production kernels yet [20:21] tk: the most annoying bastardized abbreviation in the world [20:21] copongcopong has joined the channel [20:21] c4milo: bnoordhuis: yeah, it's in production now [20:22] c4milo: bnoordhuis: after .35 [20:22] devsundar has joined the channel [20:22] c4milo: bnoordhuis: let me double check [20:22] piscisaureus has joined the channel [20:23] bnoordhuis: c4milo: let me rephrase that as 'kernels your distro supplies' [20:23] c4milo: bnoordhuis: sorry it's after .36 [20:23] hwinkel has joined the channel [20:24] c4milo: bnoordhuis: I can be wrong but I think ubuntu 11.04 comes with .38 [20:24] c4milo: :) [20:25] bnoordhuis: c4milo: most people will still be running 10.04 lts [20:25] bnoordhuis: and don't get me started on rhel [20:25] jerrysv: especially 4.x [20:26] c4milo: bnoordhuis: true, most sane people use lts [20:27] AvianFlu has joined the channel [20:27] arlolra has joined the channel [20:28] bnoordhuis: as an anecdote: at a previous job we had a rule that we could use any linux kernel api - provided it had been stable for at least four years :-/ [20:28] adambeynon has joined the channel [20:28] bnoordhuis: that's about the time frame you can expect for a new feature to be rolled out in all distros... [20:28] joshthecoder has joined the channel [20:28] baudehlo: be thankful - our servers are still on Red Hat 8. [20:29] jerrysv: we're on centos 4.2/4.3 [20:29] jerrysv: on the "newer" stuff [20:29] baudehlo: our servers don't even have epoll. [20:29] bnoordhuis: hah :) [20:29] Drop2 has joined the channel [20:29] baudehlo: it's bloody shocking. [20:29] bnoordhuis: i admit defeat - can't top that [20:30] jerrysv: rh8, yeah, a little old :) [20:30] slicky: epoll came out, what, sometime right after the american revolution? [20:30] Aria: Wow, baudehlo. [20:30] Aria: Time to get new servers running RHEL6 and then virtualize the old ones. [20:30] baudehlo: I admit, upgrading OS is hard. [20:31] mrmanager has joined the channel [20:31] baudehlo: we have 2500 servers in 14 data centres, so it's a LOT of work. [20:31] baudehlo: but jeez. [20:31] Aria: Heh. Yeah. [20:32] tjholowaychuk: baudehlo jesus lol who is "we"? [20:32] cafesofie has joined the channel [20:32] bnoordhuis: baudehlo: ah wait, i can one-up you [20:32] bnoordhuis: until recently i maintained a server that ran debian potato [20:32] bnoordhuis: imaged in 2001 [20:32] baudehlo: Symantec.cloud [20:32] CALCIUM has joined the channel [20:32] tjholowaychuk: baudehlo cool :D [20:32] bnoordhuis: mysql 3.23, apache 1.32 (not even 1.33) [20:33] baudehlo: we do have a plan to upgrade. [20:33] Drop2: oh yeah you are so fucked up [20:33] baudehlo: but it's like 3 months of QA etc. [20:33] bnoordhuis: fun fact: when the disks were finally spun down, they wouldn't come back up again - the ball bearings were too worn [20:34] baudehlo: hah yeah I've had that happen on kit. [20:35] jarek has joined the channel [20:35] jarek has joined the channel [20:35] jerrysv: what happened to horofox? did 0.4.8 fix it? [20:35] CALCIUM: Hi there. I'm having a very hard time getting Flash to connect to a Socket.IO socket in a nodejs app. I'm guessing it has to do with flash socket policy stuff, but I've been at it all day and can't get it working. Any ideas? Flash says "Error #2048" [20:36] CALCIUM: I'm running everything localhost.... the web app serving the swf is on 3000, and the nodejs app is running on port 8080 [20:36] CALCIUM: and i even setup express to run on 843 to return a policy file [20:36] romanb has joined the channel [20:37] hydrozen: any ideas? [20:37] pquerna: http://jobs.nodejs.org/a/jbb/job-details/513799 [20:37] trumpetmic has joined the channel [20:37] hydrozen: or examples? [20:38] jerrysv: hydrozen: you are using socket.io? [20:39] hydrozen: yes [20:39] hydrozen: thing is, it's hard to know what Flash is trying to request [20:39] hydrozen: i think the request to the socket security is pretty transparent [20:39] jerrysv: hydrozen: socket.io should automatically start up on port 843 as well, to serve the policy file, you shouldn't need to do that [20:39] hydrozen: ah yes? [20:40] jerrysv: hydrozen: let socket.io handle all of that for you [20:40] squeese has joined the channel [20:40] hydrozen: well, at first i didnt care about the policy file [20:40] hydrozen: and it still didnt work [20:41] jerrysv: hydrozen: and you're using on the client side? [20:42] gde33 has joined the channel [20:43] hydrozen: jerrysv: yes, but the js is required even if open the socket through Flash? [20:43] aabt has joined the channel [20:43] DrBlast has joined the channel [20:44] jerrysv: hydrozen: it will serve it for you, deal with the correct location of the policy file, and handle the heartbeat negotiation with the server for you [20:44] blup has joined the channel [20:44] jerrysv: socket.io has its own heartbeat system [20:45] zivester has joined the channel [20:45] hydrozen: how will it serve it for me on the client side? shouldnt the policy file be on the remote nodejs server? [20:46] xerox: pquerna: if you wrote that you should correct the typo [20:46] jerrysv: hydrozen: it is on the remote nodejs server, the same one serving up the javascript file [20:46] F1LT3R has joined the channel [20:46] DrBlast: Hello All, I am having a problem with async calls in loops. A pain in butt. [20:47] jarek_ has joined the channel [20:47] DrBlast: Basically I have the following: http://pastie.org/2112964 [20:47] pquerna: xerox: didn't write it... but guess i should find someone to fix it :-/ [20:47] tbranyen: I don't always want high concurrency, but when I do, I use a runtime that only uses one core. [20:47] tbranyen: best tweet ever [20:48] cognominal has joined the channel [20:48] pt_tr has joined the channel [20:48] jarek has joined the channel [20:48] tenumm: junkee: Attachment is my custom C++ Object so its defined more line Attachment: public ObjectWrap [20:49] hydrozen: jerrysv: I'm not sure I get what you are saying. I've downloaded a copy of the client side socket.io, and installed it on my rails app that i run locally. I'm only loading the socket.io.min file [20:49] tenumm: junkee[]: Attachment is my custom C++ Object so its defined more line Attachment: public ObjectWrap [20:50] hydrozen: jerrysv: and thats what I load on the client side... even though my feeling is I don't need to load that js file since i want to use Flash to connect to the socket [20:50] jerrysv: hydrozen: socket.io is a client/server solution, meant to be run as part of node.js [20:50] coreb1 has joined the channel [20:50] Drop2: http://chetansurpur.com/blog/2010/10/why-node-js-is-totally-awesome.html [20:50] jerrysv: hydrozen: if you're just looking for a flash fallback for a rails site, you may be going down the wrong path [20:51] omes has joined the channel [20:51] willwhite has joined the channel [20:53] jslatts has joined the channel [20:53] hydrozen: jerrysv: well, they use Flash as a Flashback for browsers that dont support sockets. [20:53] hydrozen: so im guessing i could just use flash to connect to the socket.io socket on the nodejs side [20:54] hydrozen: we're buldling a flash app that requires socket connections, I thought nodejs would be perfect for this on the server side [20:54] hydrozen: flashback == fallback [20:54] Yuffster_work has joined the channel [20:54] jerrysv: rauchg: you around? [20:54] `3rdEden: hydrozen sure, its possible [20:55] `3rdEden: but you need to work with the protocol on top of Socket.io [20:55] jerrysv: hydrozen: possible, but socket.io adds a heartbeat every few seconds [20:55] `3rdEden: and you need to make sure you connect with our flashsocket policy file server [20:55] madmike1029 has joined the channel [20:55] hydrozen: `3rdEden: which server is this [20:55] `3rdEden: hydrozen socket.io uses > https://github.com/gimite/web-socket-js as flash fallback [20:56] MatthewS has joined the channel [20:56] `3rdEden: there are some flashfiles in there that will allow you to create your own websocket connect [20:56] `3rdEden: + it handles flash policy file requests [20:56] puffpio has joined the channel [20:56] tenumm: Hello Noders - I am trying to return the JS object via Handle Attachment::getNamedProperty(v8::Local property, const AccessorInfo& info) {//return attachment object }. How I can do that ? [20:56] madmike1029 has left the channel [20:56] jerrysv: hydrozen: and the heartbeat is in the format: ~h~[\d+] [20:56] `3rdEden: there is also a old flashsocketio project that is build ontop of socket.io 0.6 [20:56] `3rdEden: with support of the protocl of 0.6 [20:56] `3rdEden: so you can take alook at that and see how its implemented [20:57] `3rdEden: https://github.com/simb/FlashSocket.IO [20:57] hydrozen: ok [20:57] hydrozen: but so [20:57] hydrozen: im guessing it might be simpler [20:57] hydrozen: for the Flash to raise javascript events [20:58] jbpros has joined the channel [20:58] hydrozen: and so i would use javascript for the sockets on the client side [20:58] `3rdEden: probalby, if you dont' want to go through all the trouble of building your own flash implementation of the socket.io protocol [20:58] hydrozen: and send messages to the Flash file to do shit [20:59] sfragis has joined the channel [20:59] tenumm: Noders any clue how to return JS Object via "Handle Attachment::getNamedProperty(v8::Local property, const AccessorInfo& info) {//return attachment object }" [21:00] `3rdEden: hydrozen so, do you still need you question posted onthe socket.io google groups [21:00] jerrysv: tenumm: maybe with a v8:object ? http://bespin.cz/~ondras/html/classv8_1_1Object.html [21:00] `3rdEden: as it's still pending :) [21:01] elijah has joined the channel [21:01] springmeyer has joined the channel [21:02] dtan has joined the channel [21:03] tenumm: jerrysv: Thanks. Are there any example of using that? I learned from the examples that you can return JS object via "Handle BusAttachment::New(const Arguments &args) { attachment->Wrap(args.This()); return args.This()} [21:03] hydrozen: `3rdEden: hehe maybe not. But so you are positive that to get Flash to talk to the socket I'm going to have a hard time because its not the same as other sockets? [21:03] tenumm: jerrysv: But with above example we don't have args as an argument passed to function [21:03] jerrysv: tenumm: sadly, no. i've only returned the standards: string, buffer, null, undefined [21:03] `3rdEden: Well hydrozen I tested the flashsocket (that we bundle with socket.io as one of the fallbacks) and it works like a charm [21:03] willwhit_ has joined the channel [21:03] seidos has joined the channel [21:04] hydrozen: This guy had it working... http://www.giantflyingsaucer.com/blog/?p=952 [21:04] hydrozen: but I'm guessing that's because he's using the basic sockets? [21:04] TroyMG has joined the channel [21:04] hydrozen: `3rdEden: yeah, i mean, worst case, i can just use externalInterface and talk to my flash app via javascript. [21:04] tenumm: jerrysv: ahh! I see. Even more sadly I can't find example in modules doing similar thing [21:05] `3rdEden: hydrozen he uses XMLSocket [21:05] `3rdEden: our flashfallback uses FlashSocket [21:05] daleharvey: mikeal: hitting a weird problem with request - http://pastie.org/2113039 [21:05] dgathright has joined the channel [21:05] `3rdEden: theres a big difference between the both of those [21:05] daleharvey: any external requests get that error, any requests to localhost work [21:06] hydrozen: `3rdEden: using FlashSocket instead would work? or there'd still be a need to implement a lot of stuff to get it working? [21:06] hydrozen: because if its too complicated, i'll just have a javascript interface on top of my flash app [21:06] Yoric has joined the channel [21:06] mikeal: weird [21:06] `3rdEden: hydrozen why don't you copy the code from https://github.com/simb/FlashSocket.IO [21:06] mikeal: i wonder if that is due to the last fix i took [21:06] mikeal: what are you doing daleharvey? [21:07] bnoordhuis: tenumm: accessors are wrappers around properties, not functions, so there are no arguments [21:07] `3rdEden: it has swc and ac files ready to be used [21:07] pjacobs: `3rdEden, you seem up to speed with socket.io. Do you have an opinion on sessions and socket.io? I have an app I'm working on that could use sessions at the socket layer. [21:07] daleharvey: writing a data adapter type thing for couch, I just have a database with a bunch of jobs specified, and node goes and checks the job queue, fetches data, and chucks it in couch [21:07] `3rdEden: pjacobs I actually just created a pull request for that a couple of hours ago [21:07] `3rdEden: that will allow you to read out the header [21:08] `3rdEden: of a connection [21:08] `3rdEden: So you can just check cookie headers etc [21:08] `3rdEden: It should probably land with Socket.IO 0.7.3 [21:08] `3rdEden: which we hopefully will release soon :p [21:08] pjacobs: I'll check it out. Thanks [21:09] daleharvey: {worker: "fetchpage", opts: {uri: "http://google.com"}, ttl:5*60*1000, destination: scraped} [21:09] `3rdEden: pjacobs this is the pull req btw: https://github.com/LearnBoost/Socket.IO-node/pull/286 [21:10] daleharvey: will screenscape google.com every 5 minutes and put the results in /scraped, writing ones for screenscaping / twitter / rss / github api, possibly email when i get round to it [21:10] Horofox: c4milo: just to let you know... i downgraded my node version to 0.4.9pre [21:10] Horofox: c4milo: and... it works. [21:10] Charuru: oh yay [21:10] Charuru: thanks for the pull :) [21:10] mehlah has joined the channel [21:10] `3rdEden: Charuru: ;D [21:11] c4milo: Horofox: cool [21:11] c4milo: Horofox: I'm glad to hear that :) [21:11] Charuru: well actually thanks for everything in socket.io and all [21:11] tenumm: bnoordhuis: Thanks. In that case how I can return a custom JSObject (in my case Attachment) if a call is made to new property. for example if I do myObject[newproperty] = {JSON} (in C++ I will take this JSON and create corresponding C++ Object) and when you do "var returnObject = bus[newproperty] " I need that C++ object back as JS object" [21:11] dshaw_ has joined the channel [21:11] eddanger has joined the channel [21:12] daleharvey: but in term of code that breaks, I can literally put that code ^ in a module by itself and get the same error [21:12] bnoordhuis: tenumm: do you have an ObjectTemplate for your Attachment class? if so, invoke its NewInstance() method [21:12] Charuru: what do people think about [21:12] fairwinds has joined the channel [21:12] Charuru: https://github.com/socketstream/socketstream [21:12] supster has joined the channel [21:12] jslatts has joined the channel [21:12] xeodox has joined the channel [21:12] `3rdEden: I think its quite cool, but I don't like the coffeescript stuff ;) [21:12] jerrysv: horofox: congrats! [21:13] Charuru: yeah I don't dig the coffeescript either [21:13] jarek has joined the channel [21:13] jarek has joined the channel [21:13] Charuru: I don't like jquery templates either [21:14] blup has joined the channel [21:14] systemfault: What's wrong with coffeescript? [21:14] systemfault: I'm thinking of using it :P [21:14] mikeal: daleharvey: i figured it out [21:14] Horofox: jerrysv: :))) [21:14] btipling has joined the channel [21:15] tenumm: bnoordhuis: so for ObjectTemplate you mean something similar to init method ( http://syskall.com/how-to-write-your-own-native-nodejs-extension ) ? [21:16] tenumm: bnoordhuis : what we pass as target handle ? [21:16] tjholowaychuk: Charuru looks pretty decent [21:16] tjholowaychuk: haven't looked at the code yet, CS kinda makes that hard :( [21:16] tjholowaychuk: but looks like a good start [21:17] tenumm: bnoordhuis : New method in that also takes "Arguments &args" as argument :( [21:17] hydrozen: `3rdEden: i'll have a look! thx for the help [21:17] daleharvey: sweet that was quick [21:17] Charuru: yeah I'm excited about it, i'm working on something very similar [21:17] thejh has joined the channel [21:17] bnoordhuis: tenumm: no, look here: https://github.com/bnoordhuis/node-iconv/blob/cbc472a/iconv.cc#L234 <- that's how you create an ObjectTemplate [21:18] bnoordhuis: tenumm: and here is how you instantiate it: https://github.com/bnoordhuis/node-iconv/blob/cbc472a/iconv.cc#L165 [21:18] thejh: mikeal, are you here? [21:18] mikeal: daleharvey: fix is pushed to npm [21:18] mikeal: thejh: yup [21:18] Charuru: I'm trying to decide whether I should build on top of it, or just steal what I need [21:18] Charuru: hmm [21:18] bnoordhuis: tenumm: and note how the JS object is glued to the C++ object here: https://github.com/bnoordhuis/node-iconv/blob/cbc472a/iconv.cc#L26 [21:18] daleharvey: got it, works for me now, cheers [21:19] mikeal: that was a really bad bug [21:19] Murvin: bnoordhuis: i know where in the code in http.js causing socket problem. [21:19] tenumm: bnoordhuis : Thanks. I will check that out. [21:19] bnoordhuis: Murvin: do tell [21:19] daleharvey: heh probably my fault for making you push it earlier, sorry :P [21:19] thejh: mikeal: cloned your "request" repo and tried the first example in the readme - didn't work for me, failed with "This request has been piped before http.request() was called." [21:19] Murvin: bnoordhuis: i will post it up in gist [21:19] msilverman2 has joined the channel [21:20] thejh: mikeal: also tried an older version (1.9.0), that one seemed to work better [21:20] mikeal: thejh: just fixed that :) [21:20] th has left the channel [21:20] mikeal: pull down the latest version [21:20] mcavage has left the channel [21:20] mikeal: i pushed it like 3 minutes ago [21:20] thejh: mikeal: wow, cool :D [21:21] msilverman2: Hey TJ: We're using tobi and we are trying to click on an li element (we're using some jQuery menu stuff). Is there any way to do that with Tobi? [21:21] hij1nx_ has joined the channel [21:21] msilverman2: Hey tjholowaychuk: We're using tobi and we are trying to click on an li element (we're using some jQuery menu stuff). Is there any way to do that with Tobi? [21:21] tjholowaychuk: msilverman2 it doesn't run the client-side js [21:22] thejh: mikeal: hmm, I think that this leak (https://gist.github.com/974752) could well be caused by your library, I'm currently looking at it [21:24] msilverman2: tjholowaychuk: ok. thanks. [21:24] devrim has joined the channel [21:24] piscisaureus has joined the channel [21:24] unomi has joined the channel [21:25] yogurt_truck has joined the channel [21:26] TheFuzzball has joined the channel [21:26] joshthecoder has joined the channel [21:26] Drop2: http://www.reddit.com/r/programming/comments/i7esd/microsoft_working_with_joyent_and_the_node/ [21:27] systemfault: Win! [21:28] aliem has joined the channel [21:28] euforic has joined the channel [21:28] rixius has joined the channel [21:30] bnoordhuis: HN thread: http://news.ycombinator.com/item?id=2688270 [21:30] bnoordhuis: i suppose the logical next step is a decent mssql driver [21:30] Murvin: bnoordhuis: already post. I think that's bug. gist.github.com/1032413 [21:31] rixius: what's the suggested IRC bot/client? [21:31] bazookatooth: write ur own [21:31] topaxi has joined the channel [21:32] rixius: bazookatooth: I'd rather use and read someone elses worka nd improve upon it if I so choose? I for one am not an expert on the IRC Spec [21:32] tyler-iphone: anyone know how i return a struct in c++ extension? [21:32] tyler-iphone: it doesn't seem like v8 has a struct structure ironically [21:32] AvianFlu: rixius: http://github.com/nodejitsu/kohai [21:32] jerrysv: oh, heya tyler [21:32] Corren has joined the channel [21:32] hkjels_ has joined the channel [21:32] tyler-iphone: jerrysv: JERRY!! :) [21:33] thejh has left the channel [21:33] bnoordhuis: tyler-iphone: scroll up a little, look for my replies to tenumm [21:33] tyler-iphone: bnoordhuis: ok [21:34] bnoordhuis: tyler-iphone: that is assuming you want to return a C++ struct to JS land [21:36] rixius: AvianFlu: Thanks [21:37] tyler-iphone: bnoordhuis: i do, thnx [21:37] rixius has left the channel [21:38] bnoordhuis: Murvin: i don't follow your logic: "if # of socket in the connection pool is already max out, then there is no way to garbage collect it. so, even there is no socket running, it still has that many sockets in the pool. Thus, you can't use it even socket is free. and it will stuck there. " [21:39] creationix has joined the channel [21:39] creationix has left the channel [21:39] pjacobs has joined the channel [21:40] caolanm has joined the channel [21:41] tuhoojabotti: How should I join a list using "and" as the last separator? :D [21:41] dbhas2 has joined the channel [21:42] tuhoojabotti: Or should I just replace the last , to and [21:42] zmbmartin has joined the channel [21:42] tjholowaychuk: tuhoojabotti check the length, if you have enough values pop, join, append [21:42] tuhoojabotti: Seems hard-ish :D [21:44] davidbanham has joined the channel [21:44] materialdesigner has joined the channel [21:45] unlink has joined the channel [21:45] unlink has joined the channel [21:45] jerrysv: v8: a = [1,2,3,4]; a.slice(0,-1).join(', ') + ', and' + a.pop(); [21:45] v8bot: jerrysv: "1, 2, 3, and4" [21:45] jerrysv: v8: a = [1,2,3,4]; a.slice(0,-1).join(', ') + ', and ' + a.pop(); [21:45] v8bot: jerrysv: "1, 2, 3, and 4" [21:45] tuhoojabotti: Oh yeah, slice :D [21:45] tuhoojabotti: thanks :P [21:45] uchuff has joined the channel [21:45] tuhoojabotti: Too long time since I last played with python lists :P [21:46] jerrysv: v8bot++ [21:46] v8bot: jerrysv has given a beer to v8bot. v8bot now has 29 beers. [21:46] tuhoojabotti: but since when it's , and and not just and? :D [21:46] Murvin: bnoordhuis: i will rewrite it.. give me a moment [21:46] tuhoojabotti: jerrysv: Fine! :P [21:46] tuhoojabotti: jerrysv++ [21:46] v8bot: tuhoojabotti has given a beer to jerrysv. jerrysv now has 2 beers. [21:47] jerrysv: woo! [21:47] tbranyen: tbranyen\00++ [21:47] tyler-iphone: #node.js-- [21:47] tbranyen: damn :-/ [21:47] jerrysv: v8: console.log('v8bot++') [21:47] v8bot: jerrysv: "v8bot++" [21:48] jerrysv: damn [21:48] dguttman has joined the channel [21:49] tuhoojabotti: It even works. :) [21:49] pjacobs: `3rdEden, thanks for that pull-request link. I'm a bit new to git, do you recommend I get your fork, or do you think guille will take your pull-request? [21:49] jerrysv: tuhoojabotti: some people believe ", and" is more correct [21:50] `3rdEden: pjacobs rauchg will probably pull it soon after code review [21:50] digiwano: kind of a uk/us english thing isnt it [21:50] `3rdEden: and it should land in socket.io 0.7.3 pjacobs [21:50] tuhoojabotti: jerrysv: It's Engrish I'm speaking! [21:50] walkingeyerobot: "oxford comma" [21:50] tuhoojabotti: I'm speaking finnish. [21:50] tuhoojabotti: In english, so it's and not , and [21:50] tuhoojabotti: :) [21:51] jerrysv: oxford comma, serial comma, series comma, harvard comma, all the same [21:51] entigo has left the channel [21:51] pjacobs: `3rdEden, cool. Looking forward to that [21:52] softdrink: oxford comma is what i was taught in elementary school [21:52] malkomalko: tjholowaychuk: anyway to grab the requested route in route middleware? the referrer isn't set until it reaches the final callback [21:52] pjacobs: `3rdEden, so would io.set / io.get be the way to access session variables? [21:52] raZer_ has joined the channel [21:52] softdrink: let's just leave off "and", so it will be more programmery. [21:52] softdrink: hehe [21:53] tjholowaychuk: malkomalko req.route [21:53] pjacobs: `3rdEden, looking at the manager.test.js [21:53] kuhrt has joined the channel [21:53] tuhoojabotti: http://tuhoojabotti.com/r/prsc/ie_3.png (844x168) works :D [21:54] `3rdEden: pjacobs yes [21:54] Murvin: bnoordhuis: I revised my explanation [21:54] Murvin: bnoordhuis: please take a look. [21:54] skm has joined the channel [21:54] pjacobs: `3rdEden, fantastic [21:54] malkomalko: was that from a later version? [21:55] malkomalko: I don't see that anywhere right now [21:55] `3rdEden: pjacobs: we also have a socket.io channel btw #socket.io ;) [21:55] tjholowaychuk: malkomalko yeah pretty recent [21:55] malkomalko: undefined method.. IncomingMessage has no defined method route [21:55] `3rdEden: So feel free to ask more question there, as I'm going to bed :p [21:55] malkomalko: ahh ok [21:55] Murvin: bnoordhuis: let me know if my explanation is clear. :) [21:57] STUPIDWIFI has joined the channel [21:57] bnoordhuis: Murvin: you mean that connections are leaked, depleting the http agent's pool from usable connection objects? [21:58] devrim has joined the channel [21:58] herbySk has joined the channel [21:59] Murvin: bnoordhuis: Yes. usable connection objects are not avialable if the socket.length >= maxSockets. it just issue errors. i think it should do a socket._cycle() when the max is reach [21:59] jacekp has joined the channel [22:00] Murvin: bnoordhuis: i think it is intentionally to keep the socket open in the pool for performance. but once it hits the max, it won't cycle anymore. just stop working. [22:02] bnoordhuis: Murvin: could you update the issue with your conclusions? [22:02] bnoordhuis: Murvin: and thanks for taking the time to investigate, of course :) [22:03] shinuza has joined the channel [22:05] Murvin: bnoordhuis: sure. I am doing a test now and see if I do this._cycle() will help the crashing problem. However, I think there is still a leak, so, some sockets will not be able to recycle even it is not doing anything. [22:05] spasquali has joined the channel [22:05] fg3 has joined the channel [22:05] spasquali has left the channel [22:05] bnoordhuis: Murvin: i noticed that valgrind complains about memory being leaked on the http tests in the suite [22:06] bnoordhuis: Murvin: memory == objects, so it wouldn't surprise me if in some edge cases resources aren't being reclaimed [22:07] Murvin: bnoordhuis: :) is the complains in Issues? [22:08] Aria has joined the channel [22:08] bnoordhuis: Murvin: you mean the valgrind error log? no [22:09] bnoordhuis: Murvin: i haven't had the time to delve in deeper - could be that it's just v8 / node being shut down too fast to reclaim the objects [22:09] al3xnull has joined the channel [22:10] steffan has joined the channel [22:11] Sorella has joined the channel [22:11] Murvin: bnoordhuis: is there a destroyAll() to destroy all sockets? and start fresh? lol [22:12] eddanger_ has joined the channel [22:12] slloyd has joined the channel [22:14] samsonjs has joined the channel [22:15] mike5w3c has joined the channel [22:15] sshaginyan has joined the channel [22:16] Aria has joined the channel [22:18] Drop2: missgeburt [22:19] incon has joined the channel [22:19] Drop2: dir sollte man die nulle abtrennen und dich dann ankoten [22:28] replore_ has joined the channel [22:29] dve has joined the channel [22:33] charleyd has joined the channel [22:34] point9repeating has joined the channel [22:35] skm has joined the channel [22:36] TooTallNate has left the channel [22:36] TooTallNate has joined the channel [22:36] prettyrobots has joined the channel [22:38] patrickarlt has left the channel [22:39] JJMalina has joined the channel [22:41] Xano has joined the channel [22:42] caolanm has joined the channel [22:42] bluebit has joined the channel [22:43] jarek has joined the channel [22:43] jarek has joined the channel [22:44] ryan0x2 has joined the channel [22:45] markwubben has joined the channel [22:47] isaacs_ has joined the channel [22:47] jtsnow has joined the channel [22:49] isaacs__ has joined the channel [22:49] JJMalina has joined the channel [22:50] copongcopong has joined the channel [22:51] angrymango has joined the channel [22:51] cnu has joined the channel [22:51] softdrink has joined the channel [22:53] Badababuba has joined the channel [22:56] sjbreen`` has joined the channel [22:56] saikat_ has joined the channel [22:58] sendark has joined the channel [22:58] catshirt has joined the channel [22:59] hojberg has joined the channel [22:59] isaacs_ has joined the channel [23:01] justinTNT has joined the channel [23:02] mike5w3c has joined the channel [23:02] catshirt has joined the channel [23:05] fairwinds has joined the channel [23:06] sh1mmer has joined the channel [23:06] dget has joined the channel [23:06] sh1mmer: does anyone know where NativeModule is defined? [23:06] sh1mmer: I can't find it [23:08] rauchg: sh1mmer [23:08] sh1mmer: rauchg! [23:08] rauchg: https://github.com/joyent/node/blob/v0.4/lib/module.js#L22 [23:08] tjholowaychuk: sh1mmer node.js [23:08] tjholowaychuk: src/node.js [23:08] fson_ has joined the channel [23:08] ezmobius_ has joined the channel [23:09] sh1mmer: tjholowaychuk: yeah I'm looking at that [23:09] sh1mmer: rauchg: is right it's in module, but I can't see how it gets loaded into Node.js [23:09] eddanger has joined the channel [23:09] sh1mmer: node.js [23:10] sh1mmer: ACTION goes to read Load again [23:10] tjholowaychuk: in node.js it has a conditiona checking for 'native_module' and returns NativeModule [23:10] tjholowaychuk: conditional* [23:11] skm has joined the channel [23:11] cafesofie has joined the channel [23:13] sh1mmer: I see it. I'm an idiot. [23:16] nrub has joined the channel [23:16] StephenFalken has joined the channel [23:16] nrub: <--- Will work for food [23:16] Renegade001 has joined the channel [23:17] perezd_ has joined the channel [23:18] jtsnow_ has joined the channel [23:19] devrim has joined the channel [23:21] wbw72 has joined the channel [23:21] Bradleymeck has joined the channel [23:22] Nuck has joined the channel [23:23] xeodox has joined the channel [23:24] hkjels_ has joined the channel [23:26] angrymango has joined the channel [23:26] davidbanham has joined the channel [23:27] dynamicpulse has joined the channel [23:29] JohnnyL has joined the channel [23:29] JohnnyL: jesus, there where only 350 people in here a month ago. [23:30] xerox: growth! [23:31] JohnnyL: 1) node.js 2) ?? 3) growth! [23:32] raZer_: now how many? [23:32] dynamicpulse: might be because of recent press http://www.theregister.co.uk/2011/06/23/microsoft_putting_node_js_on_windows_azure/ [23:32] JohnnyL: You hear me talkin' Hillybilly boy?! I ain't thru with you by damned site... Imma git medeval. [23:32] JohnnyL: Yeah I had seen that today. [23:35] xeodox has joined the channel [23:37] mike5w3c_ has joined the channel [23:38] JohnnyL: sorry, thats my Marcellus Wallace impersonation. [23:39] jarek has joined the channel [23:39] Drop2: boah leute ich habe gerade gefurzt. da lauft euch der geifer aussem maul wa [23:40] dguttman_ has joined the channel [23:42] Cleer has joined the channel [23:44] AvianFlu has joined the channel [23:45] dguttman has joined the channel [23:46] joshontheweb has joined the channel [23:46] flskdflskdfj has joined the channel [23:47] kmiyashiro has joined the channel [23:51] hassox has joined the channel [23:52] jarek has joined the channel [23:52] jarek has joined the channel [23:53] joshthecoder has joined the channel [23:53] tayy has joined the channel [23:56] k1ttty has joined the channel [23:56] ditesh|cassini has joined the channel [23:57] sonnym has joined the channel [23:58] dguttman_ has joined the channel [23:58] avalanche123 has joined the channel [23:59] angrymango has joined the channel