[00:00] Nuck: Hmm [00:00] tk has joined the channel [00:00] daleharvey: heh I ported a little angular thing to a couchapp ages ago - https://github.com/daleharvey/angular-couch-demo [00:00] Nuck: Can I just append onto a buffer? [00:00] daleharvey: I need to try out backbone, I have just got too use to my little microframework thing, big things like backbone scare me [00:01] htoothrot has joined the channel [00:01] r04r has joined the channel [00:01] Nuck: Is it possible to just do buf += data with Buffers? [00:02] ben1mal: @daleharvey - so that was you [00:02] tk has joined the channel [00:02] tbranyen: daleharvey: but its so tiny! [00:06] Nexxy: Nuck, not that I'm aware of [00:06] Nexxy: without something like buffertools [00:10] boaz: daleharvey: backbone.js + couchapp = !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Sw000n! [00:11] rendar_ has joined the channel [00:11] CStumph has joined the channel [00:11] voieducode has joined the channel [00:11] Cromulent has joined the channel [00:11] r04r has joined the channel [00:12] daleharvey: heh yeh that seems to be the consensus , next couchapp I do I will throw away my stuff and try it out [00:12] Cromulent has joined the channel [00:13] daleharvey: but before that I have to finish my current ones, for which I finally get to spend a little more time with node [00:13] replore_ has joined the channel [00:13] replore has joined the channel [00:13] AndrewX192 has joined the channel [00:15] thoolihan has joined the channel [00:15] Nuck: fuck couch [00:15] Nuck: Mongo 4 lyfe [00:15] Dmitrijus: hmm [00:16] Dmitrijus: i really like mongodb, but i also really like couchdb, just for different tasks :) [00:16] Nuck: Mongo is like SQL for JSON [00:16] Nuck: It's fucking awesome [00:16] Dmitrijus: yep [00:17] JaKWaC has joined the channel [00:18] r04r has joined the channel [00:19] TooTallNate: drudge: you're the linkinus dev, ya? [00:20] smathy has joined the channel [00:20] muk_mb has joined the channel [00:20] hlindset has joined the channel [00:21] muk_mb: hey guys [00:21] chapel: TooTallNate: yeah he is [00:21] muk_mb: is express still the module-of-choice to get started with? [00:21] tjholowaychuk: muk_mb if you're new to node, start with node [00:22] TooTallNate: muk_mb: are you writing an HTTP server? [00:22] tjholowaychuk: see what it offers and then go from there [00:22] jtsnow has joined the channel [00:22] muk_mb: I'm not entirely new to node, but it has been a little while [00:23] tjholowaychuk: ah, well as long as you have an idea of where the abstractions lay you should be good [00:24] rbuck_ has joined the channel [00:25] mrdoodles: Nuck: I'm with you on mongo [00:25] mrdoodles: mongo/mongoose. [00:25] stephenjudkins has left the channel [00:25] mrdoodles: compiling couch is a 45 minute on a fast iMac. [00:25] r04r has joined the channel [00:25] r04r has joined the channel [00:26] mrdoodles: night. [00:27] replor___ has joined the channel [00:27] replore__ has joined the channel [00:27] ben1mal: konobi: node-profile is not owned by node [00:27] jetienne has joined the channel [00:28] daleharvey: $time make clean && make dev [00:28] daleharvey: real 1m39.780s [00:28] daleharvey: user 1m30.242s [00:28] daleharvey: heh, gone [00:31] r04r has joined the channel [00:32] ceej has joined the channel [00:35] astropirate has joined the channel [00:38] bdm has joined the channel [00:39] enmand has joined the channel [00:40] zomgbie has joined the channel [00:41] amigojapan has joined the channel [00:42] jaequery has joined the channel [00:43] theCole has joined the channel [00:45] Daegalus has joined the channel [00:46] Daegalus: Nuck: Hey, you suggested Mongly as a Admin UI for mongo. Thoguh I dont see where I can use it outside of their tutorial [00:46] tjbot has joined the channel [00:47] jaequery: any mootools devs in here? [00:47] TooTallNate: how can I compile Jade? [00:47] TooTallNate: how to express? [00:47] jetienne has left the channel [00:47] tjholowaychuk: tjbot you there? [00:47] tjbot: tjholowaychuk: what? [00:47] tjholowaychuk: tjbot you suck [00:47] tjbot: tjholowaychuk: sorry? [00:48] Daegalus: TooTallNate: use jade.compile(data), data being the file/string of jade [00:48] TooTallNate: Daegalus: thanks :p I was testing tjbot though :p [00:48] tjbot: TooTallNate: sorry? [00:48] Daegalus: oh... my bad [00:48] TooTallNate: haha [00:48] boogyman has joined the channel [00:48] Daegalus: I WAS JUST TRYING TO HELP, GOSH!!!! :P [00:49] brianseeders has joined the channel [00:49] jaequery: is express good? [00:49] Daegalus: yes [00:49] tjholowaychuk: jaequery it sucks [00:49] jaequery: now i got mixed answers [00:49] bicranial has joined the channel [00:50] trotter_ has joined the channel [00:50] dshaw_ has joined the channel [00:50] tjbot has joined the channel [00:51] tjholowaychuk: how do you create error pages with express [00:51] tjbot: tjholowaychuk: there's http://expressjs.com/guide.html#error-handling [00:54] ako has joined the channel [00:55] patcito has joined the channel [00:55] [[zz]] has joined the channel [00:58] kriszyp has joined the channel [01:00] jakehow has joined the channel [01:00] jakehow_ has joined the channel [01:00] jakehow__ has joined the channel [01:01] JaKWaC has joined the channel [01:01] teknopaul has joined the channel [01:01] wookiehangover has joined the channel [01:02] jellosea has joined the channel [01:02] jellosea: i keep getting the AttributeError: 'NoneType' object has no attribute 'copy' error when trying to do npm install [01:02] jellosea: anyone know what the problem is? [01:02] teknopaul1 has joined the channel [01:03] mike5w3c has joined the channel [01:04] abravo: i agree with tjholowaychuk. express is potentially the worst code ever created [01:04] Sidnicious has joined the channel [01:05] ji0n has joined the channel [01:06] langworthy has joined the channel [01:09] joshkehn has joined the channel [01:09] joshkehn: I'm playing with weld (https://github.com/hij1nx/weld) [01:10] joshkehn: Is it possible to alter dom attributes like href or id? [01:10] nibblebot: why were all the modules removed from node wiki? [01:13] zhujo01 has joined the channel [01:14] random123: The categorization of thr Node wiki modules page was nice, the only thing comparable in the npm is Tags, which are really disorganized [01:14] zhujo01 has joined the channel [01:15] random123: I think it would be nice if the npm counted downloads and you can see most popular [01:15] random123: And it has some real categorization with oversight [01:15] random123: as a way to navigate [01:15] Utkarsh has joined the channel [01:16] random123: the tags would work with oversight as well, or even oversight by user participation instead of individual authors [01:17] Daegalus has joined the channel [01:18] random123: but the only way of usefully navigating the npm currently is either, searching up a specific package or seeing Depended On ranking, Most popular by downloads would be better than that particular case though [01:20] Daegalus has joined the channel [01:24] tjholowaychuk: abravo evaaa [01:24] tjholowaychuk: random123 it doesnt count downloads yet? [01:24] tjholowaychuk: is there a reason why? [01:25] Daegalus has joined the channel [01:25] enhydra has joined the channel [01:26] daleharvey: whats everyones favourite tools for monitoring http traffic on osx [01:26] tjholowaychuk: i agree though, it would help give you a better idea for quality, or even to check github watchers i dunno [01:26] daleharvey: I can never stick with wireshark [01:27] abraxas has joined the channel [01:27] abraxas: dlg: bring it on [01:28] abraxas: oops, that was 12 hours ago [01:28] dlg: heh [01:28] dlg: thats ok [01:29] Drakonite has joined the channel [01:29] dlg: https://github.com/dgwynne/node-fwd-http-proxy [01:29] dlg: proxy.js leaks until it dies [01:29] joshkehn: charles isn't too bad [01:30] joshkehn: daleharvey: http://www.charlesproxy.com/ [01:30] boehm has joined the channel [01:30] daleharvey: cool thanks [01:31] daleharvey: I have decided I dont want a proxy, I want something where I can just run "tail -f somedomain.com" and get the traffic logs [01:31] random123: tjholowaychuk: I don't know, I wanted to find out which packages were most popular, so sort by downloads, but couldn't find the functionality? [01:31] daleharvey: im kinda hoping it already exists, but if not sounds like a fun yak to shave [01:32] tjholowaychuk: random123 maybe it's hard/not possible with couch unless you have some layer in front [01:32] drudge: TooTallNate: yeah man [01:32] Daegalus has joined the channel [01:32] tjholowaychuk: not sure exactly what npm is doing [01:32] TooTallNate: drudge: you got a place for bug reports? [01:32] tjholowaychuk: kiwi had it back in the day, seemed pretty useful [01:32] drudge: TooTallNate: Help > Report a bug [01:32] Nexxy: asking people about their preferred packages is more objective than download count IMO [01:33] TooTallNate: drudge: cool, thanks [01:33] drudge: thanks for reporting [01:33] TooTallNate: ACTION DUH! [01:33] tjholowaychuk: Nexxy moar annoying though [01:33] tjholowaychuk: and you might get feedback from 2 or 3 people [01:33] Nexxy: I AM NOT! ;< [01:34] Nexxy: alternatively, you could just get that 1800 number up and running and we can all call you instead [01:34] Sidnicious has joined the channel [01:35] dshaw_ has joined the channel [01:35] TooTallNate: drudge: done [01:35] H4ns` has joined the channel [01:36] luke` has joined the channel [01:36] drudge: TooTallNate: which version? [01:37] TooTallNate: drudge: 2.4/25011, sorry forgot to include that [01:37] luke`_ has joined the channel [01:37] random123: Nexxy: Thats the point of finding what is most popular though, it sort of implies an opinion of the populous of people looking for packages [01:37] drudge: TooTallNate: which version did you grab, direct or app store? [01:37] random123: Nexxy: ie What people are using [01:37] TooTallNate: drudge: direct [01:38] Nexxy: random123, all I'm saying is that an endorsement/vote is more reliable than d/l count [01:38] Nexxy: :) [01:38] random123: Nexxy: Well they could put a voting feature in the NPM as well [01:38] Nexxy: do I hear a pull request? [01:39] tjholowaychuk: Nexxy not really though, because the downloads initially are most likely going to be from word of mouth as well [01:39] tjholowaychuk: votes could be worse in some ways [01:40] neoesque has joined the channel [01:40] Nexxy: clearly this calls for some sort of scoring algorithm! [01:40] tjholowaychuk: boom! [01:40] random123: It seems GitHub "Watches" are the relative equivalent for instance, interestingly they don't actually count downloads either. But many people use something they do not Watch, download count is something that is an accurate and happens gracefully and consistent [01:40] ayo has joined the channel [01:41] cognominal_ has joined the channel [01:42] tjholowaychuk: random123 i guess it would suck if you have someone deploying 100s of times a week etc causing the downloads to go up [01:43] Nexxy: the only reason I mentioned votes is that I could foresee great libs being passed up for others that have more downloads [01:43] Nexxy: simply because they have broader uses [01:43] tjholowaychuk: Nexxy sure [01:43] tjholowaychuk: but can you not see marak bitching about every lib? [01:43] tjholowaychuk: haha [01:43] avalanche123 has joined the channel [01:43] tjholowaychuk: or similar people [01:43] Nexxy: what's he bitching about? ;o [01:43] tjholowaychuk: it'll be skewed regardless [01:44] Nexxy: I think this calls for a board certified peer reviewed NPM ranking system [01:44] random123: That is a good point, you would want some way to find unique downloads [01:45] Nuck has joined the channel [01:45] jakehow__ has joined the channel [01:45] jakehow_ has joined the channel [01:45] jakehow has joined the channel [01:45] random123: that could probably work with the npm by unique computers [01:45] Nexxy: then there's the issue of whether you reset the download count for every version bump or not [01:45] toki_kanno_ has joined the channel [01:45] Nexxy: if you don't; you reward those that release small patches more often [01:46] TooTallNate has joined the channel [01:46] kiffness has joined the channel [01:46] PalmerEk_ has joined the channel [01:47] random123: you could use mac address to uniquely identify [01:47] random123: and not worry about versions [01:47] random123: inflating the count [01:47] Nexxy: that just seems unnecessarily resource intensive [01:48] tjholowaychuk: npm is already slow [01:48] tjholowaychuk: dont want to slow it down [01:48] tjholowaychuk: more [01:48] tjholowaychuk: i guess [01:48] random123: It shouldn't be slow, unless bandwidth is the issue [01:48] tjholowaychuk: some kind of quality thing would be nice though but i guess people should just review libs before using them on github [01:48] jheusala: is this kind of library done already? Express-style middleware SQL framework: https://gist.github.com/1199537 [01:49] Nexxy: tjholowaychuk, I like ubuntu's software center rating system [01:49] jacobolu_ has joined the channel [01:49] Nexxy: it's pretty generic but it's integrated nicely and allows for feedback [01:49] JumpMast3r has joined the channel [01:50] Nexxy: 1-5 stars, download count, user-scored feedback [01:50] broofa has joined the channel [01:50] random123: I would guess if there was a restful API, it just curls it on download, passing package_id, mac_address, on the other end, if that mac_address has already downloaded then do not up count [01:51] random123: maybe take 40ms [01:51] Nexxy: but who's responsible for that giant sack of MAC addresses? [01:51] Nexxy: just think of the liability! [01:52] steffan_ has joined the channel [01:52] random123: I don't think mac address really allows you to know anything important [01:52] random123: Its just a hardware signature on the nic [01:53] febits has joined the channel [01:54] Nexxy: I was speaking more to the aspect of upkeep [01:54] daleharvey: is Matt Ranney / mrannry around these parts? [01:55] random123: I'm guessing there would be 10K - 50K macs, and that itself would be a useful count, ie the ammount of computers using the NPM [01:56] a_suenami has joined the channel [01:56] random123: mass exodus? [01:57] yorick has joined the channel [01:58] 16WAADVVC has joined the channel [01:58] abraxas has joined the channel [01:58] kon_ has joined the channel [01:58] odyniec has joined the channel [01:58] cjm has joined the channel [01:58] dguttman has joined the channel [01:58] blueadept has joined the channel [01:58] boaz has joined the channel [01:58] FireyFly|n900 has joined the channel [01:58] Sami_ZzZ has joined the channel [01:58] temp01 has joined the channel [01:58] slaskis has joined the channel [01:58] WRAz has joined the channel [01:58] lmorchard has joined the channel [01:58] dleonardi has joined the channel [01:58] iFire has joined the channel [01:58] SuMarDi has joined the channel [01:58] rook2pawn has joined the channel [01:58] fezzle has joined the channel [01:58] jeremyselier has joined the channel [01:58] sapht has joined the channel [01:58] kloeri has joined the channel [01:58] riven has joined the channel [01:58] a11235 has joined the channel [01:58] mrkurt has joined the channel [01:58] Nexxy: lol [01:58] amiller has joined the channel [01:58] Nexxy: if your client excess floods after a netsplit, you're doing it wrong ;/ [01:58] wookiehangover has joined the channel [01:59] nevir has joined the channel [02:01] febits has joined the channel [02:02] wolftankk has joined the channel [02:03] daleharvey: anyone use ncap recently? doesnt seem to install for me [02:04] daleharvey: its possible its my newbiness with npm - http://pastebin.me/7196eac60458315190146dfb380eedbd [02:04] dmkbot: joyent/node: Hamms: querystring.stringify can't deal with nested objects - https://github.com/joyent/node/issues/1665 [02:05] boaz has joined the channel [02:07] replore_ has joined the channel [02:07] replore has joined the channel [02:07] jellosea: i keep getting the AttributeError: 'NoneType' object has no attribute 'copy' error when trying to do npm install [02:07] jellosea: rather, no such environment: default [02:09] mjijackson has joined the channel [02:09] d0k has joined the channel [02:09] mjijackson: DBAA! [02:10] agoole has joined the channel [02:10] jamesd: mjijackson, quit using that foul language in here... [02:10] agoole: where do I get access to nodejs version 5.0 ? I can't use express with 5.6 [02:10] mjijackson: agoole: depends on how you installed it. [02:10] jellosea: whats the npm error so such enivornment: default? [02:10] mjijackson: agoole: did you install from source? [02:11] agoole: mjijackson: my first install was from git [02:11] captain_morgan has joined the channel [02:11] agoole: mjijackson: I ended up doing a make uninstall [02:11] mjijackson: agoole: you can simply checkout the revision you want and rebuilt. [02:11] agoole: mjijackson: from git as well ? [02:12] stepheneb has joined the channel [02:12] mjijackson: agoole: run git tag -l to see a list of all the tags [02:12] mjijackson: then use git checkout to checkout the revision you need to use, and rebuild. [02:12] jrbran_ has joined the channel [02:13] agoole: mjijackson: cool thank you [02:13] mjijackson: some people recommend using nvm, but i've always found this method to be the simplest. [02:13] jellosea: whats the npm error so such enivornment: default? [02:13] mjijackson: jellosea: i don't understand your question. [02:13] jellosea: how do i set node path [02:13] jellosea: for npm? [02:13] mjijackson: jellosea: use $NODE_PATH environment variable [02:14] jellosea: path to the bin? [02:14] drewolson has joined the channel [02:14] jellosea: when i try and install something with npm i get an error saying no such environment: default [02:14] mjijackson: jellosea: the $NODE_PATH is the require path that node searches for when you use require [02:14] Peniar has joined the channel [02:15] jellosea: okay thats not the issue then, i thought it was [02:15] jellosea: i can't install anything iwth npm anymore [02:15] jellosea: i dont know why it was working before [02:15] mjijackson: jellosea: i'm not sure why npm can't find your default environment. [02:15] jellosea: it keeps giving me the error "no such enviornment: default [02:15] Croms has joined the channel [02:15] losing has joined the channel [02:16] cjheath has joined the channel [02:16] bartt has joined the channel [02:16] mjijackson: i would try reinstalling npm [02:16] mjijackson: the default environment should be there always. [02:16] mjijackson: if it's gone, it must have somehow been borked. [02:16] SuMarDi has joined the channel [02:16] jellosea: i reinstalled npm [02:17] mjijackson: can you put the full error output on a gist somewhere? [02:17] mjijackson: gist.github.com [02:18] mjijackson_ has joined the channel [02:18] bartt has joined the channel [02:18] replore_ has joined the channel [02:18] replore has joined the channel [02:18] CarterL has joined the channel [02:19] jellosea: yeah [02:19] jellosea: one sec [02:19] jellosea: http://pastie.org/2494983 [02:21] WarriorSl has joined the channel [02:21] willwhite has joined the channel [02:21] mrdoodles has joined the channel [02:22] mrdoodles: hey everyone, - i've never had this happen before, if i have a third party api sending me a string of json. i can always json.parse then res.send(parsed); .. is that a shorthand form with express? [02:25] jellosea: does anybody know what the problem si ? [02:25] jellosea: http://pastie.org/2494983 [02:27] steffan__ has joined the channel [02:28] kiffness has joined the channel [02:30] chrislorenz has joined the channel [02:30] kiffness has joined the channel [02:30] SamWhited has joined the channel [02:31] noodlehaus has joined the channel [02:31] agoole: can someone give me a quick hand with git and nodejs > [02:31] agoole: ? [02:31] mrryanjohnston: agoole: sup [02:31] mrryanjohnston: agoole: just ask :) [02:31] bartt has joined the channel [02:31] agoole: mrryanjohnston: I need nodejs version 5.0, but I'm a noob and not sure how to switch git to that version [02:31] febits has joined the channel [02:32] SamWhited: agoole: Do you mean 0.5? [02:32] RyanW: git checkout v0.5.0 [02:32] RyanW: 5.5 is latest though [02:32] RyanW: git checkout v0.5.5 [02:33] RyanW: To list them: git tag [02:33] agoole: just git tag the git address to the repo ? [02:33] kiffness has joined the channel [02:33] RyanW: No, you have to clone it first: git clone git://github.com/joyent/node.git [02:33] RyanW: then: cd node; git tag [02:34] SamWhited: You also probably want to make a new branch to stage your changes on (since v0.5.5 is a tag, not a branch) [02:35] agoole: I don't want to make changes, I just needed to downgrade to be able to install express [02:35] SamWhited: Ah, nevermind then. [02:35] agoole: the express in npm didn't run on the latest [02:35] replore_ has joined the channel [02:35] replore has joined the channel [02:37] Croms has joined the channel [02:38] agoole: Thanks for the quick help with git [02:38] agoole: I couldn't find any mention about having to clone it first [02:38] CarterA has joined the channel [02:41] CarterA: ryan, you around? [02:41] kiffness_ has joined the channel [02:41] CarterA: *ryah [02:41] human has joined the channel [02:44] piscisaureus: CarterA: ryah is at nodeconf [02:44] CarterA: …that would make some sense. [02:45] CarterA: Didn't realize that was this week. [02:45] kiffness has joined the channel [02:47] piscisaureus: agoole: if you have problems with express use node 0.4.11 [02:47] piscisaureus: agoole: the 0.5 branch is unstable [02:48] kiffness has joined the channel [02:48] piscisaureus: agoole: and if you have problems with git, just grab the tarball from http://nodejs.org/#download [02:48] wilmoore has joined the channel [02:49] jspiros has joined the channel [02:50] rurufufuss has joined the channel [02:54] Daegalus has joined the channel [02:54] Daegalus: Wooo, got ipv6 working on my router/network [02:56] hkjels_ has joined the channel [02:56] dexter_e_ has joined the channel [02:56] dexter_e has joined the channel [02:57] vidi has joined the channel [02:59] agoole: piscisaureus: thank you, I checked out a previous version and got express working, [02:59] agoole: piscisaureus: but thanks for the heads up about the branch being unstable, [02:59] agoole: piscisaureus: good to know when we're about to build a server on it [02:59] agoole: hahah [03:00] piscisaureus: agoole: that's fine, but don't be surprised if node 0.5/master blows up in your face :-) [03:00] agoole: haha [03:00] piscisaureus: agoole: the rule is that 0.odd versions are unstable and 0.even versions are stable [03:00] agoole: I think we'll downgrade to a stable version, we are running a linode machine for it, [03:00] agoole: so we'd rather use git [03:01] agoole: but thanks for the heads up [03:02] brainproxy: agoole: you might want to look into nvm [03:02] brainproxy: makes installing/switching between different versions of node a breeze [03:05] CarterA: What are the other options for node version managers? I seem to remember them being a ton of them. [03:05] brainproxy: i think there are mainly two now, could be mistaken though [03:05] Daegalus has joined the channel [03:05] brainproxy: Caswell's nvm [03:05] CarterA: nvm and ...? [03:06] brainproxy: and isaacs' tool, trying to remember the name [03:06] brainproxy: (don't use it myself) [03:06] CarterA: ah, nave [03:06] tmzt: n ? [03:06] brainproxy: ah, that's right [03:07] Daegalus has joined the channel [03:07] CarterA: ah, so nave uses subshells [03:08] CarterA: So I think I'll go with nvm [03:08] dylang has joined the channel [03:10] willwhite has joined the channel [03:10] springmeyer has joined the channel [03:11] kiffness has joined the channel [03:11] Daegalus has joined the channel [03:12] jamescarr_ has joined the channel [03:14] CrypticSwarm has joined the channel [03:14] Daegalus has joined the channel [03:15] kiffness has joined the channel [03:16] Daegalus has joined the channel [03:19] slyphon has joined the channel [03:20] eazyigz has joined the channel [03:21] kiffness has joined the channel [03:22] chjj has joined the channel [03:27] ditesh|cassini has joined the channel [03:28] kiffness_ has joined the channel [03:30] dexter_e has joined the channel [03:30] dexter_e_ has joined the channel [03:32] kiffness has joined the channel [03:34] teknopaul has joined the channel [03:35] brokenjames has joined the channel [03:35] teknopaul1 has joined the channel [03:35] Spion_ has joined the channel [03:37] kiffness_ has joined the channel [03:38] gerard0 has joined the channel [03:38] JakeyChan has joined the channel [03:40] ryanjarv has joined the channel [03:40] kiffness_ has joined the channel [03:41] RyanW: Too many Ryans [03:43] kiffness_ has joined the channel [03:44] jvdev has joined the channel [03:47] admc has joined the channel [03:48] kiffness_ has joined the channel [03:52] kiffness_ has joined the channel [03:53] skratool has joined the channel [03:56] mac^ has joined the channel [04:00] Nuck: heh, you guys convinced me last night to give Ubuntu another chance [04:00] Nuck: ACTION is backing up his shit [04:02] toxico has joined the channel [04:03] tuhoojabotti: \o [04:03] tuhoojabotti: ubuntu would be nice if it worked. [04:03] Nuck: lol [04:03] Nuck: I need a tolerable UI, so I figure I'll start with Ubuntu and work from there [04:03] tmzt: tuhoojabotti: on? [04:04] tuhoojabotti: tmzt: gtx590 + 3 monitors. :D [04:04] Nuck: Not to mention I need to dual-boot with Windows, and Ubuntu does that exceptionally [04:04] Nuck: And there's the fact that I'm so accustomed to Aptitude too [04:04] tuhoojabotti: Can't get twinview with SLI, and xinerama phails [04:05] tuhoojabotti: dualboot is nice yeah [04:05] Nuck: Anyways, I hear there are better window managers, what would you guys suggest? [04:05] tuhoojabotti: unity<33 [04:06] Nuck: There any built on Node.js yet? :P [04:06] PalmerEk_ has left the channel [04:06] Nuck: There any window managers that will get me warmed up to the Apple concept of a dock? [04:07] tuhoojabotti: eww [04:07] tuhoojabotti: There are docks [04:07] Nuck: I'm gonna switch to Mac when I have money [04:08] tuhoojabotti: I prefer to use computers, not toys. [04:08] tuhoojabotti: :u [04:08] Nuck: Good reason not to use XP, not a good reason to avoid Mac. [04:09] Nuck: Well, maybe Lion [04:09] Nuck: But not pre-Lion [04:09] Nuck: Or the next version, which I predict will be named Ceiling Cat [04:09] tuhoojabotti: looongcat [04:09] tuhoojabotti: right, off to school [04:09] Nuck: After Ceiling Cat is gonna be Nyan Cat [04:10] yhahn has joined the channel [04:11] rmzg has joined the channel [04:11] Nexxy: Nuck, docky/gnome-do [04:12] rmzg: Hey, anyone have any advice for getting node.js to install on a powerpc architecture? [04:12] Nexxy: http://do.davebsd.com/wiki/Docky [04:13] AAA_awright: Haven't heard of Docky, Gnome Do requires a metric shitton of dependencies last time I tried it iirc [04:13] Nuck: Nexxy: mmmm, I love their External Links, they knew I was looking for "Essay writing" [04:14] Nexxy: ya I just noticed that lol [04:15] Nuck: Linux window managers don't seem to recognize that I want them to make love to my eyes :'( [04:15] redphive has joined the channel [04:15] tmzt: Nuck: that's what enlightenment is for [04:15] tmzt: also beryl (part of compiz now) [04:16] k1ttty has joined the channel [04:16] tbranyen: ew [04:16] tbranyen: simplicity [04:16] tbranyen: pls [04:16] tbranyen: :-) [04:16] Lorentz: e17 is sweeet [04:16] Nuck: I vomited at enlightenment [04:16] rmzg: Exception: supported architectures are arm, ia32, x64 but NOT 'powerpc'. [04:16] AAA_awright: Oh com eon [04:17] Lorentz: Nuck: Maybe you mean e16 [04:17] Lorentz: which was still sweet, just not so much as e17 is now [04:17] sebastianedwards has joined the channel [04:17] Nuck: Lorentz: Eh, I jsut looked up the wikipedia page? [04:18] Nuck: says it's 17 [04:18] Nuck: And it's fugly [04:18] Lorentz: >2009 [04:18] jtsnow has joined the channel [04:19] cronopio has joined the channel [04:19] Lorentz: Although admittably the gradient-ish theme hasn't changed that much. [04:19] rmzg: Anyone have any idea about powerpc and node.js? [04:19] Nexxy: lol [04:19] Nexxy: Nuck, you realize E is the WM, not the theme? [04:19] Nuck: True [04:19] Nexxy: k [04:20] Nuck: But the default theme generally shapes the other themes [04:20] tbranyen: Nuck: http://sharefilewith.me/u/e1444a.png [04:20] tbranyen: :D [04:20] Lorentz: E is technically more than just WM these days [04:20] Nuck: So I can get a general idea of what to expect from other themes for it [04:20] Nexxy: ROFL timecube [04:21] CStumph has joined the channel [04:21] Nuck: Nexxy: I'm rofling at the browser [04:21] Nuck: *Opera* [04:21] tbranyen: opera owns, sorry you don't know any better :-/ [04:22] Nuck: Chrome > Firefox > IE [04:22] Nuck: Opera doesn't even count [04:22] Nuck: It's no longer in the top 5 [04:22] Nexxy: I would take opera over IE [04:22] caffine has joined the channel [04:22] tbranyen: Opera is like in between Chrome and a browser that hasn't been invented yet that is better than everything else [04:22] Nuck: It's powerful, but it reminds me of the era of the Application Suite [04:22] blkcat: mmm, chrome. [04:23] Nuck: Probably because even years after Application Suites died, Opera remains [04:23] Nexxy: O mouse gestures were amazing [04:23] tbranyen: i paid damn good money for opera back in the day [04:23] Nuck: And then it wnet free and you raged? [04:23] tbranyen: i intend on getting my monies worth [04:24] Nexxy: no, I commended them for that [04:24] Nuck: Opera is a VERY good browser [04:24] Nuck: I'll admit that [04:24] Nexxy: oh that was to tbranyen ;P [04:24] Nuck: It's the most standards-compliant [04:24] Aiden_ has joined the channel [04:24] Nuck: And it's extremely stable [04:24] Nexxy: are you talking about presto? [04:24] Nuck: And it's pioneering in UI [04:25] Nuck: However, Opera is not exactly cutting-edge when it comes to CSS3 or HTML5 [04:25] tbranyen: its not? [04:25] tbranyen: say whaaaat [04:25] Nexxy: it has all the -o- variants I've needed [04:26] StanlySoManly has joined the channel [04:26] Nuck: By the time every modern browser had 90% of the CSS3 stuff built (webkit was at 99%), they were just starting [04:26] tbranyen: so what? thats old [04:26] Nuck: Webkit is always cutting-edge on that [04:26] tbranyen: modern opera is what you should be commenting on [04:26] Nuck: Mostly because they *invent* everything [04:26] tbranyen: shit changes every month [04:26] Nuck: tbranyen: They showed they lagged [04:26] tbranyen: and? [04:26] tbranyen: so did mozilla [04:26] tbranyen: they are working on catching up as well [04:26] Nuck: Yeah, and I no longer use Firefox either [04:26] tbranyen: and safari is even worse [04:27] Nuck: But Firefox was at least partaking in the standards [04:27] strangedude has joined the channel [04:27] Nuck: Mozilla and Apple were two of the biggest players in CSS3's development [04:27] Nuck: I'm pretty sure they were both cofounders of WHATWG [04:28] tbranyen: feels like i'm wearing, nothing at all [04:28] Nuck: tbranyen: Are you naked? [04:30] jojohess has joined the channel [04:33] alnewkirk has joined the channel [04:33] zcopley has joined the channel [04:33] xicubed has joined the channel [04:33] kmiyashiro: anyone know why browserify addEntry executes each file in a closure? [04:33] mrtazz has joined the channel [04:33] StanlySoManly1 has joined the channel [04:33] H4ns` has joined the channel [04:33] halfhalo_ has joined the channel [04:33] vidi has joined the channel [04:33] hermanjunge has joined the channel [04:34] halfhalo has joined the channel [04:34] dmkbot: joyent/libuv: erickt: Fix uv_getaddrinfo to accept custom data. - https://github.com/joyent/libuv/issues/156 [04:38] gavin_huang has joined the channel [04:38] seutje has joined the channel [04:40] StanlySoManly has joined the channel [04:43] slifty has joined the channel [04:45] ecin has joined the channel [04:51] JakeyChan has joined the channel [04:53] JaKWaC has joined the channel [04:54] fangel has joined the channel [04:55] StanlySoManly has joined the channel [04:55] jhurliman has joined the channel [04:55] steffan_ has joined the channel [04:55] caffine has joined the channel [04:58] vns has joined the channel [04:59] joshthecoder has joined the channel [05:03] firebus has joined the channel [05:04] theCode has joined the channel [05:05] JumpMast3r has joined the channel [05:07] firebus has left the channel [05:09] rmzg: So [05:09] den512 has joined the channel [05:09] rmzg: Anyone have any ideas how to get node.js running on a powerpc debian box? [05:09] aguynamedben has joined the channel [05:11] muk_mb has left the channel [05:13] chovy has joined the channel [05:14] garrensmith has joined the channel [05:17] harthur has joined the channel [05:19] rmzg: Exception: supported architectures are arm, ia32, x64 but NOT 'powerpc'. [05:19] rmzg: This is making me sad! [05:23] tylergillies has joined the channel [05:23] tylergillies has joined the channel [05:23] tylergillies has joined the channel [05:24] pwk0 has joined the channel [05:24] Kai`_ has joined the channel [05:24] bradwright has joined the channel [05:24] mattly has joined the channel [05:25] justicefries has joined the channel [05:25] ajsie has joined the channel [05:26] indutny has joined the channel [05:26] tanepiper has joined the channel [05:27] ajsie has joined the channel [05:28] niftylettuce has joined the channel [05:28] Kai`_ has joined the channel [05:28] indutny has joined the channel [05:29] Marak has joined the channel [05:29] hkjels has joined the channel [05:29] gavin_huang has left the channel [05:29] TokyoDan has joined the channel [05:33] Daegalus: anyone know off the top of their head how to parse a string to an integer or double? [05:33] owenb has joined the channel [05:33] Daegalus: preferably integer [05:33] sivy has joined the channel [05:35] JSManiacs has joined the channel [05:36] caffine has joined the channel [05:38] JSManiacs has joined the channel [05:38] dguttman has joined the channel [05:39] tmzt: Daegalus: parseInt or parseFloat [05:39] sh4wn has joined the channel [05:39] MUILTFN has joined the channel [05:39] tmzt: shoudl throw an exception if not valid I think [05:39] tmzt: or be NaN donn't rmember which [05:39] Daegalus: ok, cool thanks tmzt [05:40] k1ttty has joined the channel [05:41] Pe_Ell has joined the channel [05:41] zeade has joined the channel [05:42] Pe_Ell: sup, so npm install socket.io fails... anyone think they could help? https://gist.github.com/1199854 [05:42] isaqual has joined the channel [05:42] tylergillies has joined the channel [05:42] tylergillies has joined the channel [05:42] tylergillies has joined the channel [05:43] boltR has joined the channel [05:45] stonebranch has joined the channel [05:47] JasonSmith has joined the channel [05:48] MrTopf has joined the channel [05:48] _ralph has joined the channel [05:49] kiffness has joined the channel [05:54] FireFly|n900 has joined the channel [05:54] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [05:54] amerine has joined the channel [05:55] whoops has joined the channel [05:56] zomgbie has joined the channel [05:57] joshkehn has joined the channel [05:59] JoeCA has joined the channel [05:59] phluffy has joined the channel [05:59] aguynamedben has joined the channel [05:59] phluffy has joined the channel [05:59] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [06:00] JoeCA: Hi all [06:00] joshkehn: Hi JoeCA [06:00] JoeCA: Are you guys familiar with G-WAN [06:00] JoeCA: I was reading and found this thread http://forum.gwan.com/index.php?p=/discussion/346/proxying-to-node.js/p1 [06:01] JoeCA: they use V8 with Gwan, and they talk about comparing it to node, ... and it is 2- 9 times faster than NodeJS [06:01] Nexxy: where have I heard that before [06:01] JoeCA: scroll down to the bottom [06:01] Nexxy: oh yes, every stacked benchmark ever [06:01] ryanfitz has joined the channel [06:02] Nexxy: at what point do we reach "fast enough"? [06:02] JoeCA: there is never fast enough .... [06:02] joshkehn: Someone benched some shitty Java code against Node with similar results. [06:02] JoeCA: if i can run a webserver from my cell phone , why not? :) [06:02] stephank has joined the channel [06:02] joshkehn: There are lies, damn lies, statistics, and then benchmarks. [06:02] joshkehn: Why would you want to run a web server from your cell phone? [06:03] Nexxy: to serve content? [06:03] Nexxy: on the go? [06:03] Nexxy: it seems like a fairly obvious answer to me [06:03] JoeCA: as small as my cell phone :P [06:03] joshkehn: To whom? [06:03] joshkehn: That's the fairly obvious question to me. [06:03] Nexxy: are you new to the internet? [06:03] Nexxy: lol [06:03] JoeCA: in case of a disaster , [06:04] JoeCA: create a mesh network on the fly , [06:04] joshkehn: How if you said to create a on-the-fly mobile server for pooling images or whatnot that would sound doable. [06:04] JoeCA: and serve usefill info, first aid , maps , routes ... [06:04] Nexxy: lol [06:04] FireyFly|n900 has joined the channel [06:04] nevir has left the channel [06:04] joshkehn: Stuff dreams are made of. [06:04] joshkehn: Good dreams mind you. [06:04] Nexxy: pretty sure dreams are made of DMT [06:04] Nexxy: but whatever you say [06:05] rmzg: Let's be honest, cellphones are roughly 5 times faster than the first computers that ran Apache [06:05] joshkehn: Hah. Did you read that in a comic / image panel recently? [06:05] rmzg: I'm pretty sure tehy can manage it [06:05] joshkehn: Handle sure. [06:05] Nexxy: joshkehn, me? [06:05] JoeCA: anyways, I was curious about the design of the node HTTP webserver ... [06:05] meso has joined the channel [06:05] joshkehn: Nexxy: Yes. [06:05] slifty has joined the channel [06:05] rmzg: On an unrelated note, how do I install node on this ppc machine? [06:05] Nexxy: lol [06:05] joshkehn: Nexxy: I read that recently somewhere and was wondering if you read the same one. [06:06] joshkehn: rmzg: By replacing the PPC chips with Intel ones? ;) [06:06] Nexxy: I learned of DMT on something like erowid many moons ago [06:06] brainproxy: if you could build some discovery/routing mechanisms into it, the principle could be used to build out a mesh network on the fly which could, say, link phones behind an otherwise firewalled network into the open Internet [06:06] JoeCA: yes, [06:06] joshkehn: Looks like V8 doesn't run on PPC so Node won't either. [06:06] Nexxy: so something like http://www.open-mesh.com/ only for cellies? [06:06] joshkehn: rmzg: --^ [06:06] rmzg: SAD FACE [06:07] JoeCA: there is already a project for that routing discover thing ... [06:07] brainproxy: i imagine the idea might be controversial in say .. ahem .. mainland china [06:08] Nexxy: or, you know... anywhere [06:08] JoeCA: back to Node [06:09] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [06:09] boaz has joined the channel [06:11] brannig has joined the channel [06:11] JoeCA: "Thanks for demonstrating the real gap between Node.js and G-WAN + Javascript." [06:13] ttpva has joined the channel [06:14] ptlo has joined the channel [06:14] mraleph has joined the channel [06:15] hellp has joined the channel [06:15] Nexxy: lol [06:15] chjj has joined the channel [06:17] fangel_ has joined the channel [06:18] jetienne has joined the channel [06:19] astropirate has joined the channel [06:19] SamuraiJack has joined the channel [06:21] rchavik has joined the channel [06:22] TheFuzzball has joined the channel [06:23] mikedeboer has joined the channel [06:24] raphdg has joined the channel [06:25] hkjels_ has joined the channel [06:25] noodlehaus has joined the channel [06:27] Daegalus: Nuck, how do you use mongly outside of the tutorial? [06:31] chjj has joined the channel [06:31] Skola has joined the channel [06:31] aguynamedben has joined the channel [06:32] sebastianedwards has joined the channel [06:34] sebastianedwards has joined the channel [06:38] simenbrekken has joined the channel [06:38] knifed has joined the channel [06:38] Pe_Ell has left the channel [06:42] akujin has joined the channel [06:43] avalanche123 has joined the channel [06:44] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [06:45] emattias has joined the channel [06:46] chjj has joined the channel [06:46] ph^ has joined the channel [06:47] robotmay has joined the channel [06:49] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [06:50] replore has joined the channel [06:52] perezd has joined the channel [06:53] liar has joined the channel [06:54] mike5w3c_ has joined the channel [06:54] thalll has joined the channel [06:54] meso has joined the channel [06:55] bradwright has joined the channel [06:56] `3rdEden has joined the channel [06:56] xerox has joined the channel [06:56] erikano has joined the channel [06:57] replore has joined the channel [06:57] replore_ has joined the channel [06:58] Kai`_ has joined the channel [06:58] groom has joined the channel [07:00] ajsie has joined the channel [07:00] Frippe has joined the channel [07:00] chovy has joined the channel [07:01] tanepiper has joined the channel [07:01] daleharvey has joined the channel [07:02] whoops has joined the channel [07:02] captain_morgan has joined the channel [07:02] tomh has joined the channel [07:03] fangel has joined the channel [07:04] JKarsrud has joined the channel [07:04] xerox: anybody uses kue? [07:05] stagas has joined the channel [07:05] _ralph has joined the channel [07:06] ap123 has joined the channel [07:06] footyfish has joined the channel [07:07] mraleph has joined the channel [07:07] yokoaway has joined the channel [07:07] Nomon has joined the channel [07:09] shiawuen has joined the channel [07:09] zomgbie has joined the channel [07:10] jacobolus has joined the channel [07:10] bradwright has joined the channel [07:12] nevir has joined the channel [07:14] DTrejo has joined the channel [07:15] roidrage has joined the channel [07:15] felixhummel has joined the channel [07:15] sriley has joined the channel [07:15] luke` has joined the channel [07:15] ablomen has joined the channel [07:16] iaincarsberg has joined the channel [07:16] ncb000gt has joined the channel [07:18] christophsturm has joined the channel [07:19] indutny has joined the channel [07:19] chunhao_ has joined the channel [07:20] beawesomeinstead has joined the channel [07:20] duncanbeevers has joined the channel [07:22] mikedeboer has joined the channel [07:24] zomgbie has joined the channel [07:24] daglees has joined the channel [07:24] daglees has joined the channel [07:26] hybsch has joined the channel [07:26] fiq_ has joined the channel [07:27] JasonSmith has joined the channel [07:29] bergelmir has joined the channel [07:29] mattly has joined the channel [07:30] bergelmir has joined the channel [07:31] dob_ has joined the channel [07:32] ivanfi has joined the channel [07:32] dob__ has joined the channel [07:33] hackband has joined the channel [07:34] anubhaw has joined the channel [07:34] mehlah has joined the channel [07:34] jeremyselier has joined the channel [07:34] romainhuet has joined the channel [07:35] blissdev has joined the channel [07:35] [AD]Turbo has joined the channel [07:35] [AD]Turbo: hi there [07:35] Hosh has joined the channel [07:35] fly-away has joined the channel [07:36] TheJH_phone has joined the channel [07:36] cjheath_ has joined the channel [07:37] dscape has joined the channel [07:37] sivy has joined the channel [07:37] anubhaw: I am invoking process.exit(1) on uncaughtException event. But my node process doesn't exit. my understanding of process.exit() is that It should exit node process no matter what. are there any cases where it might not exit and wait for already running requests to complete ? [07:37] pwk0 has joined the channel [07:37] SebastianFlyte has joined the channel [07:38] niftylettuce has joined the channel [07:39] JKarsrud_ has joined the channel [07:39] owenb has joined the channel [07:39] thejh has joined the channel [07:39] thejh has joined the channel [07:40] thejh has joined the channel [07:40] thejh has joined the channel [07:40] xerox: anubhaw [07:40] xerox: you need to do something like process.reallyEdit [07:40] xerox: *reallyExit [07:40] xerox: I saw it somewhere [07:40] justicefries has joined the channel [07:41] kelsin has joined the channel [07:41] __doc__ has joined the channel [07:43] tylergillies has joined the channel [07:43] tylergillies has joined the channel [07:43] tylergillies has joined the channel [07:43] nym has joined the channel [07:43] uchuff has joined the channel [07:44] andree has joined the channel [07:44] anubhaw: xerox: got it , It worked :) . Reasoning mentioned here http://visionmedia.github.com/masteringnode/book.html under head process.exit() . Thanks for help [07:44] xerox: : ) [07:44] xerox: no problem [07:47] savage- has joined the channel [07:48] lmatteis has joined the channel [07:48] bergie has joined the channel [07:49] sylvinus has joined the channel [07:50] Marak has joined the channel [07:51] _kud has joined the channel [07:52] TokyoDan has joined the channel [07:52] chjj_ has joined the channel [07:53] random123 has joined the channel [07:55] ph^ has joined the channel [07:55] Aiden_ has joined the channel [07:56] luckyfish has joined the channel [07:56] luckyfish: test [07:56] seebees1 has joined the channel [07:57] luckyfish: so many people [07:57] shapeshed has joined the channel [07:58] Druid_ has joined the channel [08:01] adambeynon has joined the channel [08:02] seebees has joined the channel [08:03] mpavel has joined the channel [08:03] cosmincx has joined the channel [08:05] cjheath has joined the channel [08:05] Skola: I've not been paying attention to the community for a month or two, has there been any work on db packages? [08:06] Skola: well any promising work anyhow [08:09] robhawkes has joined the channel [08:09] neoesque has joined the channel [08:09] SebastianFlyte has joined the channel [08:13] cosmincx has joined the channel [08:13] aaronmcadam has joined the channel [08:16] jetienne_ has joined the channel [08:16] mendel_ has joined the channel [08:17] markwubben has joined the channel [08:17] algopats has joined the channel [08:17] jf0x has joined the channel [08:17] dnyy has joined the channel [08:18] _aron has joined the channel [08:19] algopats has joined the channel [08:20] robotmay has joined the channel [08:21] jbpros has joined the channel [08:22] TomY has joined the channel [08:23] sfoster has joined the channel [08:24] v3ctR has joined the channel [08:25] hkjels_ has joined the channel [08:27] cpetzold has joined the channel [08:28] Isaiah has joined the channel [08:28] algopats has joined the channel [08:28] jetienne has joined the channel [08:29] andree has joined the channel [08:30] DJBouche_ has joined the channel [08:31] tmm1 has joined the channel [08:31] johnhamelink has joined the channel [08:31] sugyan has joined the channel [08:31] nigelb has joined the channel [08:31] kulor-uk has joined the channel [08:31] tomilaine has joined the channel [08:31] neshaug has joined the channel [08:34] meso has joined the channel [08:34] cjheath has joined the channel [08:35] ttpva has joined the channel [08:37] Jippi has joined the channel [08:37] jhurliman has joined the channel [08:38] Margle has joined the channel [08:38] booo has joined the channel [08:38] gaYak has joined the channel [08:39] eldios has joined the channel [08:40] cryptix has joined the channel [08:40] gde33 has joined the channel [08:42] TokyoDan has joined the channel [08:43] madsleejensen has joined the channel [08:45] fangel has joined the channel [08:45] adambeynon has joined the channel [08:46] wbednarski has joined the channel [08:46] knifed_ has joined the channel [08:48] _kud_ has joined the channel [08:48] Creap: I'm considering cloning a bunch of Underscore.js functions, but instead of passing data to the function you pass a key to for instance a redis database, each would use smembers or hgetall depending on what type of data is at the key. Does that make sense, is there some other similar interface already for some other db? [08:52] aaronmcadam has joined the channel [08:54] johnhamelink has joined the channel [08:54] theCode has joined the channel [08:55] ap123 has joined the channel [08:56] Nuck|mobile has joined the channel [08:57] ap123: I am using express and I want to have a reverse proxy for some urls (but not all). How do I do that? [08:59] sylvinus has joined the channel [09:02] v3ctR has joined the channel [09:03] bzinger has joined the channel [09:04] markwubben has joined the channel [09:06] vns_ has joined the channel [09:07] Lartsa has joined the channel [09:07] _aron has joined the channel [09:08] ablomen_oops has joined the channel [09:10] luke` has joined the channel [09:11] naneau has joined the channel [09:14] theCode has joined the channel [09:15] sonnym has joined the channel [09:17] sh4wn has joined the channel [09:20] fangel has joined the channel [09:21] robinduckett: morning all [09:21] hlindset has joined the channel [09:23] meso has joined the channel [09:24] johnhame_ has joined the channel [09:28] sylvinus has joined the channel [09:31] irahgel has joined the channel [09:38] TheJH_phone has joined the channel [09:40] astropirate: Good morning Noders [09:41] radiodario has joined the channel [09:42] garrensmith: can I style a input size in css? [09:42] garrensmith: well I mean set not style [09:42] rmzg: What? [09:43] garrensmith: I have a group of input elements in my form and I want to group set their size to 25 [09:43] garrensmith: not quite node related I know [09:43] radiodario: size as in char length? [09:43] garrensmith: sorry I'm talking on the frontend in the html [09:43] radiodario: or size as in width? [09:43] radiodario: i.e. in chars or in pixels? [09:43] garrensmith: length [09:43] garrensmith: chars [09:44] radiodario: well not sure but why don't you just do a $('#inputid').val().length check? [09:44] FireFly|n900 has joined the channel [09:44] MrTopf has joined the channel [09:44] radiodario: and say alert('eh dude your input is way too long why don't you just like, shorten it or something? Jeez!'); [09:45] garrensmith: radiodario: no worries I sorted it. thanks [09:46] radiodario: so how did you sort it? [09:46] hackband has joined the channel [09:48] pt_tr has joined the channel [09:49] andrewfff has joined the channel [09:50] cryptix has joined the channel [09:51] Glenjamin: not strictly nodeJS, but anyone around familiar with semver - I kinda want to have the version number in 'master' be x.x.x-dev or similar to indicate its higher than the last release but lower than the next somehow [09:51] Glenjamin: any recommendations for what to use in this case? [09:52] Nuck has joined the channel [09:52] cryptix: it should be v0.5.6-pre right now [09:53] Lartsa has joined the channel [09:54] nardoo has joined the channel [09:54] Raynos has joined the channel [09:54] cryptix: Glenjamin: take a look at src/node_version.h and NODE_VERSION_IS_RELEASE [09:55] adrianmg has joined the channel [09:55] radiodario: cheers for telling us how you did it, garrensmith [09:56] burningdog has joined the channel [09:56] garrensmith: radiodario: I deleted it and explicity set the size in the inpputs :-) [09:56] radiodario: ok man [10:00] cjroebuck has joined the channel [10:01] agnat has joined the channel [10:02] kulor-uk has joined the channel [10:04] CrypticSwarm__ has joined the channel [10:04] Glenjamin: cryptix: the problem with that is that according to semver pre > beta > alpha [10:05] shiawuen has joined the channel [10:11] k1ttty has joined the channel [10:12] versicolor has joined the channel [10:14] fermion has joined the channel [10:17] bicranial has joined the channel [10:19] `3rdEden has joined the channel [10:20] luckyfish: test [10:20] Raynos has left the channel [10:22] meandi has joined the channel [10:22] thalll has joined the channel [10:22] `3rdEden has joined the channel [10:23] luckyfish has left the channel [10:24] sebastianedwards has joined the channel [10:25] cryptix: Glenjamin: ok i see what you mean. i was just trying to give a hint where the -pre string comes from [10:25] wolftankk: http://www.youtube.com/watch?v=F6k8lTrAE2g [10:25] versicolor has joined the channel [10:25] cryptix: can somebody confirm the windows build failing at test-fs-utimes? [10:26] Glenjamin: the suffix is sorted by ascii, so i could cheat by using capitals :D [10:27] Glenjamin: beta > alpha > PRE > DEV [10:28] cryptix: Glenjamin: yeah that would make more sense :) [10:29] zomgbie has joined the channel [10:32] booo has joined the channel [10:36] Shrink has joined the channel [10:36] Cromulent has joined the channel [10:36] theCole has joined the channel [10:38] v3ctR has joined the channel [10:40] spasquali has joined the channel [10:41] N0va` has joined the channel [10:41] v3ctR has joined the channel [10:43] simenbrekken: I just upgraded npm and I'm not noticing it installing everything to ./node_modules, is this intended or have I screwed up somewhere? [10:44] tomb: simenbrekken: it'll install to ./node_modules unless you pass the "-g" flag for global [10:44] simenbrekken: tomb: aha, I guess that's the "major change" I noticed somewhere [10:49] mrdoodles has joined the channel [10:49] mrdoodles: morning everyone [10:52] _aron has joined the channel [10:55] Frippe has joined the channel [10:56] _kud has joined the channel [10:56] kuebk has joined the channel [10:56] v3ctR has joined the channel [10:58] ecin has joined the channel [11:00] dylang has joined the channel [11:01] mikl has joined the channel [11:03] toki_kanno_ has joined the channel [11:07] jetienne has joined the channel [11:08] bzinger has joined the channel [11:08] christophsturm has joined the channel [11:08] icebox has joined the channel [11:10] jetienne: with socket.io, how to close the connection server side ? i was using ioClient.connection.destroy(); but i cant find a current version of it ? [11:10] junkee[] has joined the channel [11:12] Shrink has joined the channel [11:13] shiawuen has joined the channel [11:15] jetienne: with socket.io, how to reduce the amount of debug dumped ? [11:16] thoolihan has joined the channel [11:17] onre has joined the channel [11:18] onre: hi folks. i'm mostly new to node.js and i've written a small program that calculates certain percentages out of a large pedigree tree. it performs way better than the php version did, but i still wonder if i could make it faster. i've tried profiling it and looks like i'm spending 66% of time in garbage collector, if i read the profiling output correctly [11:19] thalll has joined the channel [11:21] nforgerit has joined the channel [11:23] fairwinds has joined the channel [11:25] icebox has joined the channel [11:26] mc_greeny has joined the channel [11:26] secoif_ has joined the channel [11:27] Metal3d has joined the channel [11:28] mrdoodles has joined the channel [11:30] v3ctR has joined the channel [11:31] nforgerit has joined the channel [11:31] toki_kanno_ has joined the channel [11:33] yept has joined the channel [11:37] shiawuen_ has joined the channel [11:37] augustl: how do I check if an arbitrary object is a Buffer? `foo instanceof Buffer` doesn't seem to work. [11:37] stepheneb has joined the channel [11:37] augustl: nvm, it does [11:37] nforgerit has joined the channel [11:39] onre: i think i should somehow refactor my code to avoid spending 2/3 of time in garbage collector. the code is very recursion-heavy because of the nature of the calculation i'm performing... is there possibly a document describing techniques for making things easier for the gc, or something? [11:39] brianseeders has joined the channel [11:40] pickels has joined the channel [11:41] enmand has joined the channel [11:41] v3ctR has joined the channel [11:41] eviltwin_ has joined the channel [11:42] sirdancealot has joined the channel [11:42] eviltwin_: can anyone offer advice on getting connect to work with node.js v0.5.5? [11:43] eviltwin_: npm fails saying requirements are Required: {"node":">= 0.4.1 < 0.5.0"} [11:44] stagas_ has joined the channel [11:44] ditesh|cassini has joined the channel [11:47] ablomen: eviltwin_, afaik it wont, i remember them saying theyll wait for the next stable verion (0.6) [11:47] NegativeK has joined the channel [11:47] eviltwin_: bleh bleh bleh... I wanted to use it in a project that needs SNI :( [11:48] ablomen: eviltwin_, you don't want to use 0.5 versions for production anyway [11:48] eviltwin_: ablomen: more a toy than production at this stage :) [11:48] anubhaw has joined the channel [11:48] ablomen: ah ok [11:50] v3ctR has joined the channel [11:50] replore has joined the channel [11:50] eviltwin_: ablomen: silly question but is there an eta on v0.6 or is it more a case of "when it's done"? [11:51] shiawuen_ has joined the channel [11:52] jomoho has joined the channel [11:53] replore_ has joined the channel [11:58] jetienne has joined the channel [11:58] scott_gonzalez has joined the channel [12:00] replore has joined the channel [12:00] replore_ has joined the channel [12:00] mendel_ has joined the channel [12:00] postwait has joined the channel [12:02] shiawuen has joined the channel [12:03] kriszyp has joined the channel [12:04] ablomen: eviltwin_, i have no idea [12:06] markwubben has joined the channel [12:07] replore has joined the channel [12:07] replore_ has joined the channel [12:08] cole_gillespie has joined the channel [12:09] Skomski has joined the channel [12:09] shiawuen has joined the channel [12:12] Raynos2 has joined the channel [12:13] jtrudeau has joined the channel [12:14] dmkbot has joined the channel [12:15] Deegie has joined the channel [12:15] ph^ has joined the channel [12:18] ceej has joined the channel [12:19] v3ctR has joined the channel [12:22] al3xnull has joined the channel [12:22] booo has joined the channel [12:22] johnhamelink has joined the channel [12:24] jbpros has joined the channel [12:24] _kud has joined the channel [12:25] MUILTFN has joined the channel [12:25] m00p has joined the channel [12:25] Sorella has joined the channel [12:28] schwab has joined the channel [12:28] fumanchu182 has joined the channel [12:30] JakeyChan has joined the channel [12:34] Aiden has joined the channel [12:34] adambeynon has joined the channel [12:34] cryptix: eviltwin_: from the amount of failing tests on windows i presume at least one maybe two month befor 0.6.. [12:37] simenbrekken has joined the channel [12:38] topaxi has joined the channel [12:38] sneakyness has joined the channel [12:39] temp01 has joined the channel [12:41] noodlehaus has joined the channel [12:43] matti has joined the channel [12:43] skript has joined the channel [12:44] boaz has joined the channel [12:44] eviltwin_: cryptix: thanks. Unfortunately SNI support in the tls client is required for what I've got brewing so I guess I'll just have to live on unstable for now... unless there's any chance of it being backported (I assume not) [12:44] dmkbot: joyent/node: cryptix: test-fs-utimes - debug assertion fails on win32 - https://github.com/joyent/node/issues/1666 [12:47] AaronMT has joined the channel [12:48] jmiller_ has joined the channel [12:48] bnoordhuis has joined the channel [12:49] jtsnow has joined the channel [12:50] SoulRaven has joined the channel [12:51] thalll has joined the channel [12:51] isaqual has joined the channel [12:51] Glenjamin has joined the channel [12:52] hl7Guy has joined the channel [12:55] igl has joined the channel [12:56] mike5w3c_ has joined the channel [12:57] baudehlo has joined the channel [12:58] Croms has joined the channel [12:58] dmkbot has joined the channel [12:58] pibi has joined the channel [12:58] pibi has left the channel [13:01] rfay has joined the channel [13:01] agnat has joined the channel [13:03] CarterL has joined the channel [13:05] EyePulp has joined the channel [13:07] DennisRasmussen has joined the channel [13:07] _kud has joined the channel [13:09] Skomski has joined the channel [13:09] balupton has joined the channel [13:10] astropirate has joined the channel [13:13] lukegalea has left the channel [13:14] astropirate: A question about the module system: If you modify the Object object in one module, will it affect the Object object in others? [13:15] xerox: try? [13:15] astropirate: dont have node seupt [13:15] astropirate: on my currentmachine [13:15] xerox: it's p easy [13:16] xerox: https://github.com/joyent/node/wiki/Installation [13:16] Raynos: astropirate: it does [13:16] astropirate: The reason why i ask is because i'm really liking Sugarjs [13:16] astropirate: i don't want to include it in EVERY single file that i'm working on [13:17] pietern has joined the channel [13:18] Glenjamin: astropirate: if you modify the object yes [13:18] versicolor has joined the channel [13:18] Raynos: astropirate: sugar extends prototypes so thats a global extension anyway [13:18] Glenjamin: but not if you assign to it [13:18] shiawuen has joined the channel [13:18] postwait has joined the channel [13:19] astropirate: Raynos: it doens't extend prototype jsut the Object object and other built in types [13:19] Raynos: It does extend the prototypes :\ [13:19] astropirate: nope [13:19] hellp has joined the channel [13:19] Raynos: 'abcdefgh'.split(/[bdf]/); How else would it do that [13:20] astropirate: it ads a method to the String object [13:20] astropirate: Raynos: http://sugarjs.com/native [13:20] astropirate: doesn't add it to the String.prototype object [13:20] jamescarr__ has joined the channel [13:20] mikl has joined the channel [13:21] Raynos: It does add it to String.prototpye [13:21] der-basti has joined the channel [13:21] Raynos: It just doesn't augment Object.prototype [13:22] Raynos: Because sugar corrupts global state (prototypes) you can just include it once [13:23] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [13:26] der-basti has joined the channel [13:27] astropirate: Raynos: You are right :) [13:27] astropirate: i had to look into the code to know what you meant [13:28] _aron has joined the channel [13:28] Raynos: Well its a simple matter of printing "String.prototype.add" and testing it [13:28] shiawuen_ has joined the channel [13:28] astropirate: i know you CAN do that i didn't know thats what sugar did [13:29] fangel has joined the channel [13:30] dlg has left the channel [13:32] thomblake has joined the channel [13:34] thomblake has left the channel [13:35] robotmay has joined the channel [13:37] N0va has joined the channel [13:38] amigojapan has joined the channel [13:38] ph^ has joined the channel [13:39] JakeyChan_ has joined the channel [13:40] Raynos: Theres nothing wrong with doing that, thats the only way you get the sugarjs API [13:40] Raynos: personally I dont need it, ES5 is enough [13:40] pNstK has joined the channel [13:40] dezmozz has joined the channel [13:40] skm has joined the channel [13:41] human has joined the channel [13:41] JumpMast3r has joined the channel [13:41] Nuck has joined the channel [13:42] willwhite has joined the channel [13:42] ryanfitz has joined the channel [13:43] shiawuen has joined the channel [13:43] idea-squirrel has joined the channel [13:45] pen_ has joined the channel [13:48] sneakyness_wk has joined the channel [13:48] dmkbot: joyent/node: cryptix: test-fs-utimes - debug assertion fails on win32 - https://github.com/joyent/node/issues/1666 [13:48] justmoon has joined the channel [13:49] Poetro has joined the channel [13:49] hybsch has joined the channel [13:50] Vertice has joined the channel [13:54] nforgerit has joined the channel [13:55] jbpros has joined the channel [13:56] slyphon has joined the channel [13:56] jetienne has joined the channel [13:57] stepheneb has joined the channel [13:58] ph^_ has joined the channel [13:59] industrial: I don't understand http://senchalabs.github.com/connect/middleware-static.html [13:59] industrial: you give it a local directory name [13:59] Venom_X has joined the channel [13:59] industrial: but where is the route/server path ? [13:59] industrial: e.g. where do i access those files its serving [14:00] willwhit_ has joined the channel [14:00] arthurdebert has joined the channel [14:01] Raynos: you route by name [14:01] Raynos: "/css/site.css" for public/css/site.css [14:02] industrial: I don't understand [14:02] Raynos: Look at the static example [14:02] Raynos: on express [14:02] Glenjamin: industrial: unless you specify otherwise when adding the middleware, it's at / [14:03] vlapan has joined the channel [14:03] industrial: app.use(express.static(__dirname + '/public', { maxAge: oneYear })); ? [14:03] vikstrous_ has joined the channel [14:03] industrial: Glenjamin: yes, so I want it under /static, how do I do that [14:03] Raynos: https://github.com/senchalabs/connect/blob/master/examples/static.js [14:03] wolftankk has joined the channel [14:03] eazyigz has joined the channel [14:03] Raynos: app.use("/static", express.static...) [14:03] industrial: kay [14:03] geoKe has joined the channel [14:04] geetarista has joined the channel [14:04] eazyigz: does anybody know where I can find examples on using Mongoose? Their github page has practically no examples. And LearnBoost's examples are incorrect [14:04] esmevane has joined the channel [14:04] icebox has left the channel [14:04] yept has joined the channel [14:04] dnjaramba has joined the channel [14:04] Raynos: eazyigz: search for modules and websites building on top of mongoose, otherwise read the source [14:05] Croms: https://github.com/joyent/node/wiki/modules http://www.youtube.com/watch?v=GqH21LEmfbQ [14:06] Nuck: That shitty documentation is why I ditched Mongoose originally [14:06] dnjaramba has joined the channel [14:06] Nuck: But honestly, it's not my style anyways [14:07] skipper_ has joined the channel [14:07] brianc has joined the channel [14:08] dnjaramba has joined the channel [14:08] Raynos: I dont use mongodb so thats cool [14:08] Raynos: the API is a pain in the ass. Couch & redis are nicer to use [14:08] Nuck: Oh, I would say the opposite [14:08] eazyigz: Raynos: thanks. Unfortunately my problem is compounded by the fact that I am forced to use CoffeeScript [14:08] Nuck: Mongo is what happens when you apply SQL to JSON [14:08] Nuck: And it's a glorious thing [14:09] industrial: Mongoose is still being built actively [14:09] industrial: If you find documentation lacking, find out how it works and YOU document it. [14:09] eazyigz: i have no issue with Mongo. I have a hard time using Mongoose with node.js [14:09] industrial: eazyigz: #mongoose [14:09] Nuck: industrial: The author should document it. That's what I always say. [14:09] industrial: err, #mongoosejs [14:09] Raynos: eazyigz: ew why would you be forced to use cs? [14:09] ap123 has joined the channel [14:09] industrial: Nuck: the author is everyone that is comitting, documentation is also commits [14:10] industrial: (yay open source) [14:10] eazyigz: Raynos: that is the direction our CTO decided to take the company [14:10] dnjaramba has joined the channel [14:10] Raynos: Nuck: yes they should but if the community helps then the project grows [14:10] industrial: I'm pushing for CS here :P [14:10] Nuck: industrial: I expect he who writes the source code is he who documents the source code [14:10] Nuck: industrial: Why the fuck would you do that? [14:10] Nuck: CS is horrible [14:10] Raynos: eazyigz: guess you'll have to learn it, its not that bad [14:10] Nuck: Hideous language [14:11] industrial: sticks and stones, your opinion, etc [14:11] Nuck: Not nearly as elegant as JavaScript [14:11] Raynos: CS isn't that bad. It's like comparing VB & C# [14:11] Raynos: Sure C# is better but VB is not that bad [14:11] Nuck: Raynos: Yeah, you'd never use VB for anything SERIOUS, though [14:11] Nuck: That's the difference [14:11] industrial: Nuck: guess you dont like python and ruby either then [14:11] Nuck: People are using CS for serious projects [14:11] Raynos: Nuck: VB.NET and C#.NET are feature equivelant [14:11] Raynos: it's just personal preference [14:11] Glenjamin: CS != python or ruby [14:12] Raynos: CS and JS are feature complete, its personal preference [14:12] industrial: yes it is, greatly influenced. [14:12] Nuck: industrial: You caught me. [14:12] Glenjamin: its like the most annoying bits of each combined [14:12] shiawuen has joined the channel [14:12] Nuck: Raynos: CS and JS are not the same features [14:12] Nuck: CS provides classical inheritance [14:12] Nuck: JS provides prototyped inheritance [14:12] dnjaramba has joined the channel [14:12] Nuck: There's an obvious divide there [14:12] Glenjamin: eugh, why are people always trying to do classical in JS [14:12] Raynos: Nuck: lies. [14:12] Raynos: You dont have to use classical OO in CS [14:12] Raynos: although I also hate classical OO emulation [14:12] Glenjamin: util.inherits is all you need [14:12] Nuck: Glenjamin: My sentiments exactly [14:12] industrial: lies indeed, CS compiled TO js so it is always prototypal inheritance [14:13] Raynos: ew util.inherits :( [14:13] Nuck: industrial: Nope, CS has classical emulation [14:13] Raynos: Use object.create [14:13] Raynos: Nuck: you dont have to use it [14:13] Raynos: Avoid `class` like its poison [14:13] Glenjamin: util.inherits uses object.create [14:13] industrial: I'd rather have a proper OO implemented in JS [14:13] Glenjamin: but also sets constructor [14:13] topaxi has joined the channel [14:13] Nuck: Raynos: Sure, but it's a language feature, so people will use it [14:13] Nuck: And that's bad [14:13] aaronmcadam: CS does lotsa crazy stuff with __super__ [14:14] Raynos: Nuck: I agree. CS is silly [14:14] Nuck: Because, ya know, *classical emulation* [14:14] eee_c has joined the channel [14:14] Nuck: CS is a well-meaning idea [14:14] Nuck: But they took it so far [14:14] aaronmcadam: I bought the book on CS I'm gonna reserve my initial judgements until i dig in [14:14] Raynos: Nuck: but ES6 might have class :( [14:14] Nuck: It's like they wanted to redo everything from scratch [14:14] dnjaramba has joined the channel [14:14] Raynos: What are we going to do if ES6 does classical OO/ [14:14] FireFly|n900 has joined the channel [14:15] Glenjamin: https://github.com/joyent/node/blob/master/lib/util.js#L455 <- all you need for "classes" in 10 lines [14:15] industrial: rejoice, Raynos. [14:15] Nuck: Raynos: I'm not a fan of Harmony. Never have been, never will be [14:15] Nuck: JS is prototypical [14:15] Nuck: It's built around that [14:15] Nuck: You can't just add classes [14:15] aaronmcadam: i don't think harmony will come to fruition for a long time [14:15] Nuck: It really doesn't work like that [14:15] Raynos: Well harmony has some nice things, just classical OO is an abomination [14:15] aaronmcadam: yeah, that's silly [14:15] Raynos: I also dont like util.inherits [14:15] Glenjamin: why not? [14:15] Nuck: I do yearn for classical OO [14:16] Nuck: But JS is prototypical and I accept that [14:16] Raynos: I use object.create directly : http://raynos.github.com/vows-fluent/docs/vows-fluent.html [14:16] aaronmcadam: hehe prototypical :) [14:16] Raynos: And I like inheriting from objects not functions. [14:16] Glenjamin: Raynos: i could take or leave .super_, but setting constructor properly is great [14:16] industrial: I prefer Lua's OO model (metatables) [14:16] Raynos: `new` and `.prototype` are evil aswell [14:16] industrial: to JS [14:16] Raynos: Glenjamin I dont need the constructor property, I dont use constructors [14:16] Glenjamin: it's crockford in disguise! [14:16] Nuck: Raynos: new *is* evil [14:16] Glenjamin: why? [14:16] Nuck: But prototypes are faster in V8 [14:17] Raynos: You dont need it [14:17] Nuck: By a HUGE margin [14:17] Nuck: Something like 10x faster [14:17] Raynos: Ugh micro optimisation [14:17] Nuck: With lower memory footprint [14:17] aaronmcadam: yeah new is awful [14:17] aaronmcadam: literals ftw [14:17] Nuck: So for something with many instances, I'm gonna use prototypes [14:17] davve: um [14:17] davve: just be sure to delete [14:17] Glenjamin: i dont *need* higher order functions, but i still use them [14:17] davve: if you use new [14:17] dnjaramba has joined the channel [14:17] Sorella: Nuck, how is `new' evil? It's just a keyword, it does no evilness. [14:17] Nuck: However, I'll use a function for something that'll have a few things [14:17] Glenjamin: why would i not use new and prototype? [14:17] Sorella: s/keyword/operator/ [14:17] davve: if you [14:18] davve: re worried about gc [14:18] Raynos: Sorella: it has a java API [14:18] Raynos: you don't need the new keyword [14:18] Nuck: Sorella: It misbehaves a lot, like it breaks with natives [14:18] herbySk has joined the channel [14:18] Raynos: You should be using Object.create instead [14:18] Sorella: that is true, you could just use Object.create [14:18] Sorella: I like new with constructors though, they look nice :3 [14:18] Raynos: new encourages classical OO [14:18] Raynos: I dont use constructors, I use factories. [14:18] Sorella: Raynos, heh, it doesn't. [14:19] Nuck: davve: Once I stop referencing an object that I built from a prototype, it should be GC'd. [14:19] MrTopf has joined the channel [14:19] replore has joined the channel [14:19] replore_ has joined the channel [14:19] Glenjamin: aside from syntax, what's the difference? [14:19] Sorella: Raynos, object literals don't let me code like this: https://gist.github.com/1174881 =/ [14:19] Cromulent has joined the channel [14:19] davve: aye, it should be [14:19] davve: you never know :P [14:19] Raynos: Sorella my eyes, they bleed [14:19] Nuck: davve: I trust Google ;) [14:19] Sorella: Raynos, haha. [14:19] DennisRasmussen has joined the channel [14:20] dnjaramba has joined the channel [14:20] Sorella: Though I don't go with long prototypical chains, just use traits instead. [14:21] Nuck: I just wish I had the *syntax* of class-based setups, even if we remained with prototypical inheritance [14:21] Glenjamin: you can only do traits with copying though, no? [14:21] Nuck: It's just that prototypes are so fucking wordy [14:21] dylang has joined the channel [14:21] Sorella: Glenjamin, yeah. Traits on the prototype directly though, not on a per-instance basis. [14:21] sonnym has joined the channel [14:21] Sorella: so I don't have as much overhead. [14:21] mehtryx has joined the channel [14:22] Glenjamin: Nuck: i can sorta see that, especially when doing non-enumerable methods [14:22] Sorella: Nuck, you can have a sorta-class-based syntax with constructors. [14:22] Nuck: I want a block that acts as a closure, mostly [14:22] Nuck: Sorella: Yeah, but it's not nearly as efficient [14:22] Sorella: Object.create is what's awful. defineProperties should use a friendlier syntax. [14:22] Glenjamin: https://github.com/glenjamin/nodespec/blob/master/lib/example-group.js is my preferred method of defining "classes" [14:23] sivy has joined the channel [14:23] Nuck: Oh hup gotta go walk to school [14:23] bodisiw has joined the channel [14:23] Raynos: Sorella: fixed it : https://gist.github.com/1200687 [14:24] Sorella: Glenjamin, looks a little too verbose eh [14:24] Raynos: Traits is a pain in the ass. Use pd : https://github.com/Raynos/pd [14:25] Sorella: Raynos, :3 [14:25] Sorella: I don't have closured prototypes that way though, and no function hoisting. [14:25] Sorella: ACTION really likes hoisting. [14:25] Raynos: No you dont want closured prototypes >_< [14:25] Raynos: Use one or the other [14:26] jrbran_ has joined the channel [14:26] Sorella: I don't mean Cockford's closure OO, just that I can define little helper functions directly in the prototype immediately invoked function instead of defining it on the outter scope. [14:26] malletjo has joined the channel [14:27] Raynos: I dont see the point [14:27] Raynos: isn't that arbitary style preference [14:27] brianc: howdy [14:27] jakehow__ has joined the channel [14:27] jakehow_ has joined the channel [14:27] jakehow has joined the channel [14:27] brianc: I been workin' on a module to build sql statements...anyone interested in putting some mysql or sqlite syntax into it? https://github.com/brianc/node-sql/blob/master/test/dialect-tests.js [14:28] smtlaissezfaire has joined the channel [14:28] Sorella: pd does look nice though. [14:28] Sorella: Raynos, yep, just style preference. [14:28] Sorella: It lets me organise my code the way I see fit, rather than the way the parser will read it. [14:28] Glenjamin: Sorella: which part do you consider verbose? [14:28] hackband has joined the channel [14:28] Raynos: Glenjamin propertydescriptors are verbose as hell [14:29] Glenjamin: can't disagree there [14:29] Raynos: Oh the code was verbose not pd [14:29] Sorella: Glenjamin, most of it, I'd say. [14:29] Glenjamin: you prefer assigning an object literal to the prototype? [14:29] Raynos: I prefer object literals myself [14:29] Raynos: but then again I have small objects and mix them together [14:30] Raynos: My object literals dont tend to get larger then the screen height so its manageable [14:30] Sorella: Glenjamin, yep. I also prefer functions over getters/setters. [14:30] Sorella: but eh, that's a matter of personal styles, methinks. [14:30] Glenjamin: mm [14:31] Glenjamin: When its an API thats going to be used a fair bit, i'd rather the API code be a bit more verbose than the caller be more verbose [14:31] Sorella: Glenjamin, you can have conciseness in both sides, though :3 [14:31] Raynos: Also ew jsdoc ;) [14:31] Raynos: or whatever that is [14:31] Glenjamin: it's natural docs [14:32] Glenjamin: because i couldn't find anything better [14:32] Glenjamin: and i'd like to keep my docs next to my methods [14:32] Raynos: I use docco [14:32] Raynos: and hand written API docs [14:32] herbySk has joined the channel [14:32] Glenjamin: hand written api docs puts too much distance between docs and code for my taste [14:32] jetienne_ has joined the channel [14:32] Sorella: I used to use docco, but some aspects of it really bugged me. [14:32] aaronmcadam: isn't it easier to get docs out of sync if u hand write em [14:32] Sorella: Like not being able to define custom blocks. [14:32] Raynos: docco and multiple files really dont work [14:33] Raynos: aaron: my docs and comments are always out of sync :P [14:33] Illusioneer has joined the channel [14:33] aaronmcadam: lol [14:33] Raynos: You want to know what it does, here's the code \o/ [14:33] Sorella: Raynos, haha [14:33] Glenjamin: i'm not really on board with docco, reading code and reading docs are two separate use cases [14:33] Illusioneer has left the channel [14:33] Raynos: Glenjamin but that depends what docs is [14:34] Sorella: Glenjamin, I like literate programming, only I think it should describe WHY the code does something, people usually describe what the code does =/ [14:34] Raynos: there is the code and there is the high level API overview [14:34] Raynos: You need both [14:34] Glenjamin: this lib has a public API, which has the docs - the implementation details are just that, and are free to change wildly [14:34] Raynos: docco just annotates the code so its more readable [14:34] Vertice has joined the channel [14:35] Raynos: I agree we need an API documentation solution [14:35] Glenjamin: be more verbose, then you wont need so much annotation :p [14:35] Raynos: but natural docs & jsdoc dont work [14:35] Raynos: Glenjamin: I dont need documentation, other people do ;) [14:35] Glenjamin: we were brainstorming some ideas with DrMcKay the other day [14:35] Raynos: Like for example, [14:35] Raynos: the connect, express & npm source code is a pain to grok [14:35] Raynos: If that was annotated it would be easier [14:35] Glenjamin: then it's bad code :p [14:35] Sorella: I found natural docs actually interesting. [14:36] dguttman has joined the channel [14:36] Glenjamin: naturaldocs was the best solution i found [14:36] Raynos: I hate API definitions in my code, is all [14:36] Sorella: but I'd prefer much something written in javascript, so I could freely extend it to my likings. [14:36] Raynos: The best solution is hand made documentation [14:36] Glenjamin: because it didn't attempt to parse the source too much [14:36] cjroebuck has joined the channel [14:36] Glenjamin: except as you already said [14:36] Glenjamin: its out of sync [14:36] Glenjamin: naturaldocs is halfway between [14:37] Glenjamin: and i'd be happy to contribute to a NodeJS aware implementation of something similar [14:37] versicolor has joined the channel [14:38] zomgbie has joined the channel [14:38] fatjonny has joined the channel [14:38] JakeyChan has joined the channel [14:39] Glenjamin: i see what you mean about npm :o [14:39] Glenjamin: https://github.com/isaacs/npm/blob/master/npm.js#L129 [14:40] Glenjamin: but imo verbosity and clarity in code is better than annotating everything with comments [14:40] havenn has joined the channel [14:41] havenn has joined the channel [14:41] Sorella: Glenjamin, I like conciseness and clarity better :3 [14:41] Sorella: you can be clear about the intent of the code without being verbose. [14:42] Glenjamin: i guess i mean explicit more than verbose [14:42] Sorella: Glenjamin, ah, yes :3 [14:44] JakeyChan has joined the channel [14:44] niftylettuce: fs.readDir with regex? i thought there was an optional filter you could apply easily -- anyone know how? [14:44] Glenjamin: i should probably do some sugar for non-enumerable prototype methods [14:44] niftylettuce: didnt see it in the docs [14:45] niftylettuce: figured it out [14:45] CoverSli1e has joined the channel [14:45] ryan0x2 has joined the channel [14:45] Sorella: Glenjamin, I've started a documentation toolkit in JavaScript that's something between docco and Natural Docs. Really early stages though, and I'm more worried in integrating it all in Emacs' org-mode. [14:46] Glenjamin: fn(target, method, dfn) = Object.defineProperty(target, method, { get: dfn }) - not sure what i'd call the module though [14:46] Glenjamin: Sorella: any WIP i can look at? [14:46] Sorella: Glenjamin, it would be interesting having a pre-processor for some of the stuff coming in ES6. The new property descriptor literal is better iirc [14:47] Glenjamin: I'm thinking that because there's such a wide array of definition styles (as we just demonstrated), declaring the signature in the docblock is going to be better than trying to parse it [14:47] Sorella: Glenjamin, currently there's only a draft syntax spec on github. https://raw.github.com/killdream/calliope/master/docs/source/syntax/blocks.org [14:47] vipaca has joined the channel [14:47] vipaca has joined the channel [14:48] robertfw has joined the channel [14:48] TheJH has joined the channel [14:48] TheJH has joined the channel [14:49] Sorella: Glenjamin, the actual syntax for blocks looks like this: https://github.com/killdream/black/blob/master/src/list.js#L41 [14:49] Glenjamin: not a huge fan of the ///////, but i like the general approach :) [14:51] Sorella: Glenjamin, well, the slashes after the heading text are optional. The starting ones define the heading nesting. [14:51] CoverSlide: yeah eww to multiple slashes [14:51] CarterL has joined the channel [14:52] fangel has joined the channel [14:52] CoverSlide: better just to parse a big /* */ block [14:52] kertz has joined the channel [14:53] d3x7r0 has joined the channel [14:53] Sorella: CoverSlide, I never liked the syntax for multiline comments in JS. But perhaps I'm a bit spoiled because I don't need to type the slashes in Emacs :3 [14:53] navaru has joined the channel [14:53] eiro has joined the channel [14:53] eiro: hello [14:54] Sorella: It makes easier for telling apart code blocks from documentation blocks too, imho [14:54] Glenjamin: thats what syntax highlighting is for [14:55] CoverSlide: that's what rtfs is for [14:56] Raynos: Glenjamin my issue is that your inline documentation in your code is noise [14:56] Raynos: and makes reading your code a pain in the ass [14:56] Raynos: Theres a clear mental seperation between code & API docs in my head and I dont like reading them at the same time [14:56] Glenjamin: i can sorta see that [14:56] CoverSlide: good point, Raynos [14:57] Glenjamin: its the same reason i don't like docco, but from the other side :p [14:58] socialhack has joined the channel [14:59] nforgerit has joined the channel [15:00] aelien27 has joined the channel [15:00] ag4ve has joined the channel [15:00] dguttman has joined the channel [15:00] Raynos: Glenjamin: the reason I like docco is because its seperate [15:00] Raynos: I can read only the right hand side and ignore all comments [15:00] joshkehn has joined the channel [15:00] Raynos: I cant just ignore comments block when reading in a top to bottom way [15:00] Glenjamin: but not while you're editing the file [15:00] Sorella: Raynos, well, I do agree with you, but when I'm reading source, I also want the code to contain basic pieces of information like: "why that code is there? Is a function pure? Is it dependant on anything else besides the apparent things, like the time it's called?"; 2. I dislike reading comments that go directly inside the function. I think it really deviates from the reading of how something is being performed. [15:00] Glenjamin: which is the bit you don't like about mine [15:00] dylang: anybody try hosting images from mongodb via express? I want to make sure i get caching (client and server) right. [15:00] Raynos: I guess so [15:00] Raynos: But I know my code, so its cool [15:00] joshkehn1 has joined the channel [15:00] Raynos: we need documentation for other people [15:00] Sorella: I'd rather have a simple function to name a long or difficult to follow operation. [15:01] Raynos: you read docs, you dont edit them [15:01] Glenjamin: you have to keep it easy to write though, or they fall out of sync and become useless [15:01] gazumps has joined the channel [15:01] Raynos: True [15:01] skm has joined the channel [15:01] jtsnow has joined the channel [15:01] Illusioneer has joined the channel [15:02] Raynos: I think docco is good enough, although I dont do enough with the comments [15:02] Raynos: my comments are fake high level descriptions [15:02] Raynos: I need to go punch vows-is because that source code is unreadable [15:02] kmiyashiro has joined the channel [15:02] joshkehn has joined the channel [15:02] kevwil has joined the channel [15:02] Raynos: Sorella: https://github.com/killdream/black/tree/master/docs [15:02] BillyBreen has joined the channel [15:02] Raynos: Where are those hosted [15:02] nevir has joined the channel [15:03] Sorella: Raynos, github. [15:03] Sorella: on the gh-pages branch [15:03] Raynos: Thats a dead link for me [15:03] BillyBreen has joined the channel [15:03] Raynos: http://killdream.github.com/black [15:04] sonnym has joined the channel [15:04] RORgasm has joined the channel [15:05] Sorella: Raynos, well, that should be it, but apparently github is having some problems with serving that eh [15:05] tylerstalder has joined the channel [15:06] Raynos: but yeah if anyone has a good documentation solution that doesnt annoy my code and is good to read let me know o/ [15:07] Sorella: Raynos, I've actually written the docs for Black separately, using markdown and Hyde. [15:07] TheFuzzball has joined the channel [15:07] lgl has joined the channel [15:07] piscisaureus has joined the channel [15:07] Raynos: Yeah thats what I would suggest aswell [15:08] Raynos: its just a pain to keep them in sync [15:08] Raynos: I know my docs are out of sync [15:08] gxdssoft has joined the channel [15:08] CoverSlide: do like perl does [15:08] JSManiacs has joined the channel [15:08] CoverSlide: add all documentation to the bottom of the script [15:08] Glenjamin: might as well be a different file at that point [15:09] agoole: once I've started node, if I've made a mistake, how do I stop it ? [15:09] ablomen: CoverSlide, but that's because all the perl code is on one line anyway [15:09] FireFly has joined the channel [15:09] Glenjamin: Sorella: the gh-pages branch appears to be a normal branch, not a servable static site [15:09] CoverSlide: agoole: Ctrl-C [15:09] FireFly has joined the channel [15:10] iammerrick has joined the channel [15:10] Sorella: Glenjamin, afaik, gh-pages are a normal branch, with at least a index.html page [15:10] CoverSlide: take my love, take my land, take me where i cannot stand ... [15:10] Sorella: well, you don't need a index.html iirc [15:11] agoole: CoverSlide: oops, guess I was trying to kill a process which wasn't mine...bhaha. [15:11] hlindset has joined the channel [15:11] hlindset has joined the channel [15:12] langworthy has joined the channel [15:12] batok has joined the channel [15:12] Glenjamin: Sorella: my understanding is the gh-pages branch is supposed to be just the static pages you want serving [15:13] Glenjamin: hence why http://killdream.github.com/black doesn't work [15:13] mynyml has joined the channel [15:13] Sorella: Glenjamin, nope, you can put anything on it. [15:13] Sorella: in fact, you can make you whole repo a gh-pages branch [15:14] Glenjamin: oh, it's working again [15:14] Glenjamin: wasn't serving a minute ago [15:14] Sorella: yeah, I rebuilt it and pushed to github again. [15:15] Glenjamin: ah [15:15] ryanfitz has joined the channel [15:16] junkee[] has joined the channel [15:17] thalll has joined the channel [15:18] guillermo has joined the channel [15:20] dpritchett has joined the channel [15:20] mikeal has joined the channel [15:20] slifty has joined the channel [15:20] cronopio has joined the channel [15:20] rho has joined the channel [15:22] captain_morgan has joined the channel [15:22] harthur has joined the channel [15:23] christophsturm has joined the channel [15:24] Croms_ has joined the channel [15:26] ttpva has joined the channel [15:27] hornairs has joined the channel [15:27] cronopio: Hi noders!!! [15:27] CoverSlide: hi cronopio !!! [15:28] NeCkEr has joined the channel [15:30] jakehow_ has joined the channel [15:30] jakehow has joined the channel [15:30] jakehow__ has joined the channel [15:30] Raynos: Sorella: purple, what were you thinking? [15:31] JSManiacs has joined the channel [15:32] CoverSlide: he likes purple [15:32] CoverSlide: and he's a doll-lover too [15:32] DrMcKay has joined the channel [15:33] Sorella: Raynos, I wanted to go with pink, it was sold-out though =/ [15:33] tjholowaychuk has joined the channel [15:34] pizthewiz has joined the channel [15:34] Raynos: doll lover .-. [15:35] Raynos: Why did I need to be told that? [15:35] fangel has joined the channel [15:35] halcyon918 has joined the channel [15:36] CoverSlide: I felt it was related to his liking of purple [15:36] Sorella: not really a doll-lover in general. I'm just into BJDs. [15:36] context: best topic ever ! [15:37] v3ctR has joined the channel [15:37] tylerstalder has joined the channel [15:37] Raynos: Sorella: punch gh-pages : http://killdream.github.com/orpheos [15:37] pixel13 has joined the channel [15:38] pixel13 has left the channel [15:38] jj0hns0n has joined the channel [15:39] Raynos: Sorella: https://github.com/killdream/orpheos -.- why is there no source code. That's just frustrating [15:39] Glenjamin: DDD [15:39] Glenjamin: Documentation Driven Development [15:39] Sorella: Raynos, It's still in planning phase. I'm currently designing the non-hierarchical filesystem. [15:39] Sorella: Glenjamin, haha, kinda like that. [15:40] tylerstalder has joined the channel [15:40] kenperkins has joined the channel [15:40] CoverSlide: and why are you hosting it on bitbucket instead of gh? [15:41] wilmoore has joined the channel [15:41] Sorella: CoverSlide, I was hosting it on bitbucket because working with hg-git wasn't going that well, I've moved back to github though. [15:42] CrypticSwarm__ has joined the channel [15:42] Sorella: (and yes, I don't use git) [15:42] kmiyashiro: why is setting foo.prototype = new bar(); wrong? [15:42] kmiyashiro: something about the constructor [15:43] CoverSlide: what's wrong with that? [15:43] FireFly|n900 has joined the channel [15:43] Glenjamin: if the constructor does something or takes args, it might error [15:45] Sorella: kmiyashiro, you're executing the constructor, and you *REALLY* don't want that. [15:45] CoverSlide: it would have to depend on what bar() is. I personally use `foo.prototype = Object.create(bar.prototype)` when I can [15:45] Glenjamin: util.inherits for me :) [15:45] kmiyashiro: right, Object.create doesn't execute the constructor [15:45] kmiyashiro: but all the answers on stack overflow and most of the internet say to do that [15:46] CoverSlide: if you're not on ES5 you don't have much choice [15:46] Glenjamin: they're generally from before Object.create, and they have to worry about browser compat [15:46] kmiyashiro: but there's a polyfill for Object.create, isn't there? [15:47] caolanm has joined the channel [15:47] CoverSlide: the polyfill executes the constructor anyway [15:47] Glenjamin: Object.create = function(src) { var f = function(){}; f.prototype = src; return new f() }; [15:47] Raynos: kmiyashiro its wrong because :(. Use object.create [15:47] Glenjamin: CoverSlide: doens't have to [15:48] kmiyashiro: Glenjamin: but isn't that executing the constructor? [15:48] Raynos: Really you want var foo = Object.create(bar, { ... }) [15:48] CoverSlide: oh right [15:48] CoverSlide: personally haven't used the polyfill myself [15:48] vikstrous__ has joined the channel [15:48] Glenjamin: kmiyashiro: nope, it creates a new empty constructor and steals the prototype of the original [15:48] Raynos: using `.prototype` and constructors is also iffy [15:48] Sorella: kmiyashiro, if you're in Node.js, you don't need to worry about ES5 support. If you need to support shitty IE browsers, just include es5-shim.js and save your sanity. [15:48] CoverSlide: Raynos: we're talking about foo being the `class`, not the `instance` [15:49] socialhack has joined the channel [15:49] CoverSlide: so that from there you can do `var baz = Object.create(foo.prototype)` [15:49] kmiyashiro: ic [15:50] kulor-uk has joined the channel [15:50] Raynos: CoverSlide: they are the same thing [15:50] Glenjamin: Raynos: not pre ES5 [15:50] socialhack_ has joined the channel [15:50] kmiyashiro: ACTION confused [15:50] Raynos: Glenjamin: lies. __proto__ [15:51] Glenjamin: gtfo :( [15:51] smtlaissezfaire_ has joined the channel [15:51] Glenjamin: new > __proto__ [15:51] kmiyashiro: what? [15:51] Raynos: ES3 you do var foo = {}; foo.__proto__ = bar [15:51] softdrink has joined the channel [15:51] ph^ has joined the channel [15:51] Raynos: Same thing, there is no class-instance relationship. But this is noise [15:51] Sorella: var foo = {__proto__: bar} [15:51] Sorella: but meh Python [15:51] Glenjamin: __proto__ is evil [15:51] Glenjamin: for example: https://github.com/caolan/nodeunit/blob/master/lib/assert.js#L96 [15:52] Raynos: Glenjamin: it's bloody evil, don't use it :P [15:52] Glenjamin: breaks AssertionError.call [15:52] Raynos: kmiyashiro: http://raynos.org/blog/4/Doing-Object-Oriented-JavaScript [15:52] Glenjamin: even if i agreed that new was evil, which I don't - i'd still use new over __proto__ [15:52] Spion_ has joined the channel [15:52] CoverSlide: well in ES6 we'll have true classes [15:53] Raynos: Glenjamin: I agree [15:53] Raynos: CoverSlide: no :( [15:53] Raynos: We don't want true classes, we want prototypical OO [15:53] Raynos: and a better API, because Object.create & Object.defineProperties are a pain in the ass [15:53] sub_pop has joined the channel [15:54] Draggor: Class based OO is evil [15:54] Raynos: s/we/I/ [15:54] Glenjamin: they're fit for purpose imo [15:54] Glenjamin: anyone know if there's an issues page for github itself? [15:54] socialhack has joined the channel [15:54] Raynos: Glenjamin: https://github.com/github [15:54] Raynos: Pick a related thing, complain there [15:55] softdrink: sooooooo what does everyone think of Ender? [15:55] CoverSlide: Ender is meh [15:55] kmiyashiro: Raynos: why would you define properties of your new object with Object.create? [15:55] softdrink: valid opinion [15:55] softdrink: why meH? [15:55] Glenjamin: it's the github file show page =/ [15:55] softdrink: hehe [15:56] kmiyashiro: instead of afterward with foo.prototype.bar = [15:56] Raynos: Why use ender when you have browserify [15:56] Raynos: They both solve the same problem, browserify just does it better [15:56] Sorella: ES6 won't have classes, it'll have classical sugar for prototypical OO. [15:56] CoverSlide: i dunno, don't have time to tweak little micro frameworks. I'd rather just add jquery and be done with it [15:56] Sorella: which is still bad eh [15:56] Raynos: Sorella: evil. [15:56] softdrink: jquery is way too much for my current project [15:57] Sorella: the Prototypes as "Classes" proposal looked good, but apparently they're not going with it =/ [15:57] Sorella: because "we need to support people who think JS has classical OO. It's easier for them." [15:57] Raynos: kmiyashiro: because you have objects and you inherit from objects, also style [15:57] socialhack has joined the channel [15:57] eignerchris has joined the channel [15:57] softdrink: ಠ_ಠ [15:57] Raynos: Sorella: thats murderous rage. We dont want people who think JS has classical OO [15:58] Raynos: We will suffer for it [15:58] Glenjamin: people who don't know javascript should learn it before writing it [15:58] kmiyashiro: Raynos: I get the style part, but doesn't foo.prototype.bar = x still allow other objects to inherit bar from foo? [15:58] tjholowaychuk: they already suffer and ignore the language as it is [15:58] softdrink: that's like saying "We want to crap all over C so that Java developers feel more at home." [15:58] Glenjamin: just like *every other programming language ever* [15:58] CoverSlide: I think 75% of web devs do think that JS has classical OO [15:58] Sorella: Glenjamin, my feelings exactly. [15:59] DrMcKay: *ekhm* Python *ekhm* [15:59] aaronmcadam: i wouldn't say that [15:59] japj has joined the channel [15:59] Glenjamin: what about python? [15:59] Sorella: Which is why I like Racket better, they don't need to include shit directly in the language because you can just write your own on top of it. [15:59] CoverSlide: no language is abused nearly as much as js though [16:00] DrMcKay: Glenjamin: it doesn't fit into all other languages [16:00] DrMcKay: it's OO is quite similar to JS one, I think [16:00] bwinton: CoverSlide: Well, perl gives it a run for its money in that department… [16:00] joshkehn: CoverSlide: PHP abused pretty hard. [16:00] Sorella: CoverSlide, I also think PHP and Perl lead the way there. [16:00] DrMcKay: joshkehn: he said "language". PHP, well... [16:00] Glenjamin: nah, python has classical OO but with no private/protected [16:00] onre: i tend to abuse JS but i know i'm doing it [16:01] onre: does that make it any better :p [16:01] joshkehn: JavaScript is abused insofar as the browser is concerned. [16:01] Sorella: And CoffeeScript, a little. [16:01] Glenjamin: plus python has well defined multiple inheritance semantics [16:01] DrMcKay: Glenjamin: but you still get that power you have in JS, but not in other languages [16:01] joshkehn: Maybe it's the Java in me, but I've never found a need for multiple inheritance. [16:01] tjholowaychuk: Glenjamin multiple inheritance would be sweet [16:02] tjholowaychuk: everyone is too focused on js being more trendy though [16:02] tjholowaychuk: instead of adding useful features [16:02] Sorella: joshkehn, I've always found mixins/traits are far better than multiple inheritance. [16:02] Sorella: s/are// [16:02] joshkehn: Sorella: I agree with you there. [16:02] aaronmcadam: hmm yeah mixins are nice [16:02] joshkehn: tjholowaychuk: You mean add useful features to the language? [16:02] Glenjamin: there's no real difference in python's case [16:02] aaronmcadam: what do u think of decorators in py? [16:02] tjholowaychuk: joshkehn yeah, brendan & friends are extremely unfocused, the language is going to shit [16:02] DrMcKay: aaronmcadam: decorators <3 [16:02] Sorella: aaronmcadam, decorators are nice. You can almost mimic them in JS. [16:02] tjholowaychuk: with stupid things like proxies [16:02] aaronmcadam: :D [16:03] aaronmcadam: yeah I read a post about how to implement em [16:03] butu5 has joined the channel [16:03] DrMcKay: tjholowaychuk: proxies? [16:03] Glenjamin: they're probably not needed in JS because you have proper anonymous functions [16:03] joshkehn: I think one of the most beautiful things about JavaScript is it's flexibility. I was not impressed with the harmony project's goals at all or Brendan's projections for the language development. [16:04] tjholowaychuk: joshkehn 100% agree [16:04] socialhack_ has joined the channel [16:04] tjholowaychuk: almost none of it is necessary, we should be scaling back the garbage not adding more of it [16:04] Sorella: joshkehn, yeah. the only think I still miss in JS are macros though. But I don't think they quite work with the C syntax. [16:04] dpritchett has joined the channel [16:04] CoverSlide: js just needs simple additions [16:04] TheJH: Sorella, I built macros :) [16:04] joshkehn: tjholowaychuk: I'm with you there. [16:04] Sorella: TheJH, for JS? [16:04] CoverSlide: block scoping and destructuring assignment would be nice additions [16:05] nevir has joined the channel [16:05] havenn has joined the channel [16:05] butu5 has joined the channel [16:05] Sorella: CoverSlide, agreed. Destructuring assignment is specially nice for require calls. [16:05] joshkehn: CoverSlide: I like the destructuring, but block scoping would wreck it. [16:05] Glenjamin: destructuring assignment = splat operator? [16:05] joshkehn: I prefer the functional scoping. [16:05] Glenjamin: or a, b = [1,2] [16:05] TheJH: Sorella, macros file example: https://github.com/thejh/node-cempl8/blob/master/macros , source example: https://github.com/thejh/node-cempl8/blob/master/test.js+ , compilation: https://github.com/thejh/node-cempl8/blob/master/test.js [16:06] indutny: Hey devs! [16:06] indutny: Please test this: https://github.com/joyent/node/pull/1667 [16:06] indutny: It would be nice to hear feedback from you! [16:06] indutny: tl;dr : new debugger API [16:06] CoverSlide: well there are cases where block scoping would be useful [16:06] Glenjamin: is this something that should be in core? [16:07] Sorella: joshthecoder, I think he meant just including `let', not changing the semantics. [16:07] nevir has left the channel [16:07] Sorella: which I see no problem. [16:07] indutny: Glenjamin: I hope so [16:07] CoverSlide: yes, `let` not wrecking `var` [16:07] joshkehn: CoverSlide: There are cases where everything would be useful. The problem is making rampant core language changes without fixing what is already broken. [16:07] indutny: Glenjamin: That's not high-level [16:08] al3xnull has joined the channel [16:08] Glenjamin: my gut feeling is that core should be a low-level api and high level apis are for the community [16:08] smathy has joined the channel [16:08] DrMcKay: Glenjamin++ [16:08] v8bot_: DrMcKay has given a beer to Glenjamin. Glenjamin now has 2 beers. [16:08] catb0t: Glenjamin now has 1 beer [16:09] Glenjamin: also, does this break backwards compat? [16:10] joshkehn: Block level scoping? [16:10] joshkehn: Probably. [16:10] Glenjamin: no, the debugger changes [16:10] Glenjamin: but i think i see what this is doing now [16:10] esmevane has joined the channel [16:10] joshkehn: Opps, missed that part of the conversation. [16:11] indutny: Glenjamin: nope [16:11] _aron has joined the channel [16:11] Glenjamin: indutny: this is replacing the "node debug script.js", not "node --debug", right? [16:11] indutny: right [16:11] indutny: debugger is high-level anyway [16:11] indutny: I just rewrote it [16:11] indutny: partially [16:11] Glenjamin: i'm with you now [16:12] DrMcKay: yeah, fuck -.- [16:12] DrMcKay: I fucked up badly with fixing my bot [16:12] DrMcKay: does anyone know when did he quit and didn't come back? [16:12] wookiehangover has joined the channel [16:12] TheJH: DrMcKay, chat logs are at nodejs.debuggable.com or so [16:13] indutny: DrMcKay: what is his name? [16:13] ben_alman has joined the channel [16:13] yogurt_truck has joined the channel [16:13] DrMcKay: indutny: dmkbot [16:13] aaronmcadam: it's so annoying when bots are offline [16:13] DrMcKay: TheJH: I'll check it out, thanks [16:13] TheJH: !admin eval "alive" [16:13] jhbot: alive [16:13] TheJH: :) [16:14] indutny: kohai? :) [16:14] dmkbot has joined the channel [16:14] DrMcKay: it's him ^ [16:14] nibblebot has joined the channel [16:14] TheJH: indutny, I don't think kohai is configured to be here [16:14] CoverSlide: dmkbot++ [16:14] v8bot_: CoverSlide has given a beer to dmkbot. dmkbot now has 2 beers. [16:14] catb0t: dmkbot now has 1 beer [16:14] CoverSlide: fuck [16:14] CoverSlide: MooGoo [16:15] CoverSlide: too many bots in here [16:15] dguttman has joined the channel [16:15] kawaz_h has joined the channel [16:15] DrMcKay: umm... [16:15] DrMcKay: he didn't even quit? [16:15] Glenjamin: SubStack: are there any plans to add some documentation to rowbit? An IRC bot with tight dnode integration seems like it'd be good for automating some workflow tasks around the office - but i couldn't really see how to work it [16:15] Sorella: TheJH, nice :3 still looks weird though. The good thing about Lisp macros is that they blend so well in the language. [16:17] CoverSlide: seems to just do the same thing as kohai [16:17] CoverSlide: kohai uses hook.io which uses dnode [16:17] MooGoo: .give CoverSlide bots [16:17] catb0t: MooGoo gave 1 bots to CoverSlide, CoverSlide now has 1 bots [16:17] Glenjamin: ah [16:17] Glenjamin: so it should be pretty easy to interact with a kohai from various external sources [16:17] CoverSlide: .. or maybe it doesnt [16:17] catb0t: SyntaxError: Unexpected identifier [16:18] CoverSlide: thought it did [16:18] Glenjamin: someone told me it was build on hook.io, but it's not in the deps [16:18] DrMcKay: TheJH: you think I can use your fix for my bot? [16:18] DrMcKay: TheJH: (that with recurse) [16:19] BrianTheCoder has joined the channel [16:19] TheJH: DrMcKay, should work [16:20] _kud has joined the channel [16:20] dob_ has joined the channel [16:20] DrMcKay: TheJH: right after you compromise it for 5th time :D ? [16:20] TheJH: DrMcKay, :D [16:22] mac^ has joined the channel [16:22] Nuck has joined the channel [16:22] MavJS has joined the channel [16:26] halcyon918: Hey folks, I was playing with the VM module yesterday and something I noticed was that the object created in the parent context to represent the VM doesn't seem to be an EventEmitter so I can't attach listeners to it from within the VM (this.on(...))... I'd like to be able to pass messages into the VM by emitting events that the code within the VM can act on... what would be a good alternative? [16:27] mrdoodles has joined the channel [16:28] Glenjamin: pass an eventemitter into the context? [16:28] willwhite has joined the channel [16:28] prettyrobots has joined the channel [16:29] Draggor: halcyon918: You're given 3 streams that you can hook into [16:29] Tobbe has joined the channel [16:29] gr-eg has joined the channel [16:29] Glenjamin: thats childprocess, isnt it? [16:29] Draggor: ...I might be a wee bit tired [16:29] halcyon918: Glenjamin: I did try that, and it works, but I wasn't sure if that was the prescribed way to do it [16:31] Tobbe: Is Isaac around? [16:31] Tobbe: (of npm fame) [16:32] Raynos: Tobbe: user list says no [16:32] Tobbe: Raynos: what nick does he usually use in here? [16:33] langworthy has joined the channel [16:33] jesusabdullah: Tobbe: He goes by isaacs, and unfortunately you came at an awkward time [16:34] jesusabdullah: since a lot of the node people are at a conference right now, including isaacs [16:34] jesusabdullah: :v [16:34] Raynos: isaacs [16:34] Raynos: Which conference? [16:34] ronnieboy has joined the channel [16:34] nibblebot: caolanm: trying to use nimble.each() for parallel foreach, do you have an example of this? [16:35] Glenjamin: its a conference held solely to debate what url.parse().protocol should return [16:35] jesusabdullah: Raynos: Nodeconf summercamp [16:35] Raynos: Glenjamin: That's a mediocre in joke [16:35] jesusabdullah: Glenjamin: No, that was just one of the talks [16:35] jesusabdullah: Actually, we're usually quite good at not bikeshedding too hard [16:35] yozgrahame has joined the channel [16:36] caolanm: nibblebot: _.each([1,2,3], function (num, cb) { ... cb(); }, callback); [16:36] davidsklar has joined the channel [16:36] `3rdEden has joined the channel [16:36] nibblebot: caolanm: got it thanks [16:37] caolanm: nibblebot: ok, give me a shout if you have any problems [16:37] bogomips has joined the channel [16:37] eee_c has joined the channel [16:37] addisonj: hrm... anyone have vim js indentation that does comma first style? [16:37] Cromulent has joined the channel [16:38] radiodario: nope sorry man. [16:38] radiodario: maybe google? [16:38] vaheh has joined the channel [16:39] joshkehn: addisonj: Depends on which kind of comma first indentation you are shooting for. [16:39] tbranyen: how would it know you wanted to comma first opposed to a normal tab [16:39] tbranyen: i'm confused [16:39] skm has joined the channel [16:40] Draggor: yeah the vim indent I have, once you correct it once, it gets it the rest of the way [16:40] eiro has left the channel [16:40] tbranyen: Draggor: yea i think thats default [16:40] JSManiacs has joined the channel [16:40] joshkehn: Draggor: That's auto-indent matching, correct? [16:40] Draggor: I think that's off of the smart indent feature [16:40] yozgrahame has joined the channel [16:40] addisonj: joshkehn, objects and var declrations [16:41] addisonj: Draggor, this what you talking about? http://www.vim.org/scripts/script.php?script_id=3081 [16:41] dgathright has joined the channel [16:42] Draggor: addisonj: set smartindent [16:42] Draggor: that, and the standard JS syntax that vim comes with [16:42] Sorella_ has joined the channel [16:45] mundanity has joined the channel [16:45] addisonj: i thought I had tried that, but seems to be working better now [16:45] zastaph has joined the channel [16:47] maushu has joined the channel [16:47] addisonj: ah, thats it, the one thing I don't like is that I have to manually indent on var one, two, three; but once I do indent the first one i get matching afterwards [16:47] skm has joined the channel [16:47] addisonj: thanks for the tips though, off to class [16:48] misterm has joined the channel [16:49] petrjanda has joined the channel [16:50] tomtomaso has joined the channel [16:50] icebox has joined the channel [16:52] greg has joined the channel [16:53] simon1: hi, i am trying to use a redis store for storing session information, but for some reason it does not work. I've tried the default memory store as well, but the session information does not stay in the session between requests. anyone run into this problem? [16:54] simon1: in an app.post I do, req.session.someid = some.id; then in some other app.get i do if req.session.someid, but the if never evals to true. [16:54] tjholowaychuk: simon1 sounds like a cookie issue [16:54] dnyy has joined the channel [16:54] simon1: i have the cookieparser set. [16:54] simon1: is there anything else i need to do for enabling cookies? or is thsi some browser issue? [16:55] idefine has joined the channel [16:55] springmeyer has joined the channel [16:55] aguynamedben has joined the channel [16:56] algopats has joined the channel [16:56] human has joined the channel [16:58] springmeyer has left the channel [17:00] jbpros has joined the channel [17:01] eignerchris_ has joined the channel [17:01] mpavel has left the channel [17:02] nibblebot: caolanm: both nimble and async short circuit async foreach if any iteration fails, right? [17:03] malletjo has joined the channel [17:03] caolanm: nibblebot: right, although if the steps are executing in parallel it's too late to stop them [17:03] caolanm: nibblebot: it just means it'll call the callback on the first error, without waiting for the others to finish [17:04] nibblebot: caolanm: right so the return status of those that finish later is unknown [17:04] caolanm: nibblebot: right [17:05] caolanm: the results just get thrown away, because it's already considered as failed [17:06] V1 has joined the channel [17:06] simon1: perhaps it is a path problem [17:06] cjm has joined the channel [17:06] V1 has joined the channel [17:06] amerine has joined the channel [17:07] StanlySoManly has joined the channel [17:09] simon1: nope. i want to bash my head into this monitor. [17:09] tylerstalder has joined the channel [17:10] TooTallNate has joined the channel [17:12] eignerchris has joined the channel [17:12] stagas has joined the channel [17:12] simon1: oh. the VM's date was monday......... so the cookie was already expired on creation. sigh. [17:14] alvaro_o has joined the channel [17:14] chrislorenz has joined the channel [17:15] jamesd: simon1, .join #bash [17:16] jamesd: er /join [17:16] wadey has joined the channel [17:16] vidi has joined the channel [17:17] der-basti has joined the channel [17:17] simon1: jamesd: ok. why though? [17:17] vidi has joined the channel [17:17] simon1: oh. heh [17:18] meandi2 has joined the channel [17:19] luke` has joined the channel [17:20] sirdancealot has joined the channel [17:21] stagas has joined the channel [17:23] dnyy has joined the channel [17:23] SebastianFlyte has joined the channel [17:24] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [17:26] ckpcw has joined the channel [17:27] JaKWaC has joined the channel [17:27] nitinb has joined the channel [17:27] jmiller_ has joined the channel [17:28] petrjanda has joined the channel [17:28] felixhummel has joined the channel [17:28] r5 has joined the channel [17:29] wilmoore has joined the channel [17:29] tylerstalder has joined the channel [17:29] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [17:30] `3rdEden has joined the channel [17:30] harthur has joined the channel [17:32] patcito has joined the channel [17:32] neilk_ has joined the channel [17:34] pquerna: https://github.com/dustin/labrea [17:34] stagas has joined the channel [17:34] `3rdEden has joined the channel [17:35] DrMcKay: pquerna: cool! [17:36] eee_c has joined the channel [17:37] adambeynon has joined the channel [17:37] Nuck has joined the channel [17:40] stagas has joined the channel [17:43] Nuck: stagas and piscisaureus should merge to form stagasaureus [17:43] pandeiro has joined the channel [17:43] piscisaureus: Nuck: eh? [17:43] cjm has joined the channel [17:43] Nuck: piscisaureus: It's a dinosaur [17:44] Nuck: A stegasaurus [17:44] piscisaureus: Nuck: unless stagas is a hot chick I don't feel like merging [17:45] Nuck: piscisaureus: I think stagas will be whatever you want him to be (cough cough hooker cough cough) [17:45] piscisaureus: Nuck: also piscisaureus is a fish [17:45] piscisaureus: a him [17:45] piscisaureus: oh that's a nono anyway [17:45] Nuck: lol [17:46] JaKWaC has joined the channel [17:46] Nuck: piscisaureus: c'mon, you know you want his bar() in your foo() [17:46] Nuck: foo(bar()) [17:46] aconbere has joined the channel [17:47] captain_morgan has joined the channel [17:47] stagas has joined the channel [17:47] confoocious has joined the channel [17:52] brianc has joined the channel [17:52] robertfw has joined the channel [17:52] ctide: does npm itself remove old versions or do the maintainers do that? [17:54] robotmay has joined the channel [17:55] kriszyp has joined the channel [17:55] bnoordhuis: ctide: the maintainers [17:55] ctide: ok, thanks [17:56] Raynos: Nuck: you make bad jokes. [17:57] stagas has joined the channel [17:58] der-basti has joined the channel [17:58] tomtomaso has joined the channel [17:58] kylefox has joined the channel [17:58] zeiris has joined the channel [17:59] MrTopf_ has joined the channel [18:02] yumike has joined the channel [18:02] ap123 has left the channel [18:03] NetRoY has joined the channel [18:03] jchris has joined the channel [18:03] yumike has joined the channel [18:04] jhurliman has joined the channel [18:04] dylang has joined the channel [18:04] losing has joined the channel [18:04] dguttman has joined the channel [18:04] fangel has joined the channel [18:05] paulwe has joined the channel [18:06] mjijackson has joined the channel [18:06] nitinb has joined the channel [18:08] dshaw_ has joined the channel [18:10] sivy_ has joined the channel [18:10] olauzon has joined the channel [18:12] perezd has joined the channel [18:13] ryanj has joined the channel [18:13] EvRide has joined the channel [18:14] ryanj has joined the channel [18:15] stagas has joined the channel [18:16] chovy has left the channel [18:17] mjijackson_ has joined the channel [18:17] dshaw_1 has joined the channel [18:18] nitinb has joined the channel [18:19] sylvinus has joined the channel [18:23] necrodearia has joined the channel [18:24] wilmoore has joined the channel [18:25] stagas_ has joined the channel [18:27] ericmuyser has joined the channel [18:27] FuzzYspo0N has joined the channel [18:27] FuzzYspo0N: aloha [18:30] japj: bnoordhuis: what did I see? are you dabbling in php too? [18:30] bnoordhuis: japj: yep, wave of the future [18:30] bnoordhuis: it's a side project of piscisaureus and me just to see if we can [18:30] bnoordhuis: and maybe write some php <-> libuv bindings along the way [18:31] bassui has joined the channel [18:31] deedubs has joined the channel [18:31] brianseeders has joined the channel [18:32] FuzzYspo0N: anyone here used node.js on heroku (with SSL on the piggyback SSL setup?) [18:34] adrianmg has left the channel [18:35] mehtryx has left the channel [18:35] brion has joined the channel [18:35] brion has joined the channel [18:36] Aiden has joined the channel [18:36] Frippe has joined the channel [18:38] mbrevoort has joined the channel [18:39] mikeal has joined the channel [18:39] markwubben has joined the channel [18:40] AAA_awright_ has joined the channel [18:41] yozgrahame has joined the channel [18:41] smtlaissezfaire has joined the channel [18:41] devongovett has joined the channel [18:43] dshaw_ has joined the channel [18:46] sylvinus has joined the channel [18:46] SubStack: HELLO FRIENDS [18:46] Raynos: HELLO SUBSTACK [18:46] stagas has joined the channel [18:46] Raynos: IS IT CAPS DAY [18:47] SubStack: MAYBE [18:48] maushu_ has joined the channel [18:49] joshkehn: Maybe it's no-caps day. [18:49] TheJH: !admin eval "hello substack, caps'ed greetings from me, too".toUpperCase() [18:49] jhbot: HELLO SUBSTACK, CAPS'ED GREETINGS FROM ME, TOO [18:49] trotter has joined the channel [18:50] mraleph has joined the channel [18:51] Raynos: Is it a popular thing to write a bot? [18:51] stelleg has joined the channel [18:51] Sorella: Raynos, apparently. [18:51] Raynos: Should I write one? [18:51] Sorella: ##javascript used to have 4 or 5 [18:52] Sorella: Raynos, that's asking "Do I care about trends?" [18:52] tjbot has joined the channel [18:53] Raynos: Well it was a more as is writing a bot a fun challenge [18:53] dshaw_ has joined the channel [18:53] stagas_ has joined the channel [18:53] Raynos: I'll write one that just sends MrMcKay funny messages periodically [18:53] TheJH: Raynos, it's a cool thing to brag about in IRC because everyone has to look at your live demos :D [18:54] TheJH: Raynos, ah, I've got something for that... [18:54] Raynos: !admin mckay [18:54] jhbot: you're not my admin [18:54] Gregor: My bot is the best bot. It is better than the rest ... bots. [18:54] TheJH`: !admin mckay [18:54] jhbot: you're not my admin [18:54] mike5w3c_ has joined the channel [18:55] TheJH: !admin eval global.raynos = setInterval(function(){irc.privmsg('Raynos', 'flood ping')}, 10000) [18:55] jhbot: [object Timer] [18:56] Raynos: ;_; [18:56] TheJH: !admin eval clearInterval(global.raynos) [18:56] jhbot: undefined [18:57] TheJH: Raynos, I can even add new commands to my bot this way :D [18:58] gilesgoatboy has joined the channel [18:58] jesster7 has joined the channel [18:58] `3rdEden has joined the channel [18:58] synkro has joined the channel [18:58] broofa has joined the channel [18:59] gilesgoatboy: npm question - npm install script drops npm.js in ~/.npm/npm/1.027/package/bin/npm.js, but `which npm` == /usr/local/bin/npm -- common mistake? seen this before? I can probably just alias it but it's annoying [18:59] gilesgoatboy: (and very possibly the fault of the machine I'm using) [19:00] Sorella: npm.js !== npm [19:00] Sorella: it's probably a symlink no? [19:00] Draggor: I should do another release of my bot [19:00] Draggor: fix some of the plugin stuff [19:01] russell has joined the channel [19:01] gilesgoatboy: like the system failed to do a symlink? I did the install via the canonical shell script. however I think you may be wrong -- I just did blahblahblah/npm.js install jasmine-node and got jasmine-node installed [19:01] gilesgoatboy: or I may not understand the sense in which you mean that npm.js != npm [19:02] yumatov has joined the channel [19:02] Draggor: TheJH: Where's the bot src? [19:03] Sorella: gilesgoatboy, "npm.js" and "npm" are two different files, for any self-respecting Unix system. [19:03] gilesgoatboy: hrm, ok, well, I'm on OS X if it helps [19:03] Sorella: I don't know about OS/X [19:03] stepheneb has joined the channel [19:04] gilesgoatboy: when I use the npm which "which npm" refers to, it complains about not being able to find that file [19:04] gilesgoatboy: in fact I misreported my error -- sorry -- it complains that npm.js is not in some weird place it's looking for it [19:04] gilesgoatboy: anyway I got it working, but gracias [19:04] dgathright has joined the channel [19:06] derf_ has joined the channel [19:06] jetienne has joined the channel [19:06] MrNko has joined the channel [19:08] gilesgoatboy has left the channel [19:08] dEPyHome has joined the channel [19:09] derf_ has left the channel [19:10] derffred has joined the channel [19:10] bassui has left the channel [19:10] tilgovi has joined the channel [19:10] tilgovi has joined the channel [19:10] derffred: how should a path for fs.readdir be written? [19:11] stepheneb has joined the channel [19:13] eazyigz has joined the channel [19:13] derffred: ahnm [19:15] al3xnull has joined the channel [19:15] stagas has joined the channel [19:16] Circlefusion has joined the channel [19:17] jacobolus has joined the channel [19:18] cronopio has joined the channel [19:19] Frippe has joined the channel [19:20] stagas_ has joined the channel [19:20] boaz has joined the channel [19:21] vidi has joined the channel [19:22] nevir has joined the channel [19:22] zeade has joined the channel [19:22] gwoo has joined the channel [19:23] gwoo has joined the channel [19:26] CarterL has joined the channel [19:26] lvijay has joined the channel [19:29] navaru has left the channel [19:30] hkjels has joined the channel [19:31] der-bast_ has joined the channel [19:31] hybsch has joined the channel [19:32] lvijay has left the channel [19:32] hkjels has joined the channel [19:33] der-bast_ has joined the channel [19:34] lvijay has joined the channel [19:34] lvijay has left the channel [19:35] hkjels has joined the channel [19:35] stagas has joined the channel [19:36] wookiehang0ver has joined the channel [19:36] ben_alman has joined the channel [19:38] tlocalhos has joined the channel [19:39] wbednarski has joined the channel [19:39] der-bast_ has joined the channel [19:40] sonnym has joined the channel [19:41] TheJH: Draggor, https://github.com/thejh/nodebot [19:43] CoinOpeBoy has joined the channel [19:45] stagas has joined the channel [19:46] Raynos: TheJH why is the bot in cs but not the server :\ [19:48] `3rdEden: because it's a CS toy language and a bot is a toy, servers aren't toys Raynos ;$ [19:48] nibblebot: With node-seq, how could i return from a callback and exit from the Seq()'s parent context? [19:48] nevir has left the channel [19:49] stagas has joined the channel [19:50] Raynos: `3rdEden++ [19:50] v8bot_: Raynos has given a beer to `3rdEden. `3rdEden now has 1 beers. [19:50] catb0t: `3rdEden now has 1 beer [19:50] tjholowaychuk: there's another stupid language now too [19:50] termie has joined the channel [19:50] termie has joined the channel [19:50] tjholowaychuk: https://github.com/ravelsoft/node-jinjs/tree/ [19:50] tjholowaychuk: whatever .co is [19:50] Raynos: tj: more stupid languages? ;_; [19:50] Deegie has joined the channel [19:50] DrMcKay: WHAT?! [19:50] tjholowaychuk: was looking forward to having a "complete" django-ish template engine for people [19:51] tjholowaychuk: but it's written in some dumb language [19:51] halcyon918: If I have an object (call it A) that needs to emit an event for another object (call it B ) to receive... do I need to have a reference to B within A and call B.emit(...) or as long as A is an EventEmitter, A.emit(...) will result in B receiving the event (assuming it's registered for that event name)? [19:51] DrMcKay: tjholowaychuk: I see [19:51] Raynos: tj: http://satyr.github.com/coco/ [19:51] DrMcKay: but this language is just a mindfuck for me [19:51] tjholowaychuk: great [19:52] tjholowaychuk: coffeescript dialects now haha [19:52] tjholowaychuk: ACTION dies inside [19:52] TheJH: tjholowaychuk, coco is much better :) [19:52] DrMcKay: ACTION gets a rope [19:52] DennisRasmussen: unix russian roulette :P http://i.imgur.com/bUnNG.png [19:52] TheJH: ACTION likes coffeescript, but likes coco even more [19:52] tbranyen: Added pipe operator: f! => g _ => _ = f!; g _ [19:52] tbranyen: wtf [19:52] tbranyen: is this moon language [19:52] DrMcKay: jheusala: node-unit? [19:52] TheJH: DennisRasmussen, :D [19:52] Raynos: black magic [19:53] paul0 has joined the channel [19:53] DrMcKay: DennisRasmussen: lol'd [19:53] joshkehn: WTF is coco? [19:53] Raynos: halcyon918: You need `A.emit("ev", data)` in A and `A.on("ev", cb)` in B [19:53] Daegalus: some JS addon from what im seeing [19:53] DrMcKay: DennisRasmussen: I've seen that, but with rm -rf [19:53] FuzzYspo0N has left the channel [19:53] tjholowaychuk: people should stop writing libs with these stupid things [19:53] tjholowaychuk: write your app with it if you want [19:53] tjholowaychuk: but fuck [19:53] tjholowaychuk: seriously [19:53] joshkehn: https://github.com/satyr/cup/blob/gh-pages/cup.co [19:54] Raynos: Why do they do this? [19:54] DrMcKay: = -> ? [19:54] Daegalus: Hell, I am writing an app and prefer to stick to pure JS/Node, [19:54] TheJH: tjholowaychuk, why not? you can always read the compiled output, it's human-readable :D [19:54] tjholowaychuk: i dont want to read stupid compiled output, if i contribute to something [19:54] tjholowaychuk: i want to write js [19:54] liquidproof has joined the channel [19:54] Raynos: TheJH: I dont want to compile your source [19:54] tjholowaychuk: not some fucking coco crap [19:54] Daegalus: https://github.com/satyr/coco#readme [19:54] tjholowaychuk: Raynos that too [19:54] Draggor: tjholowaychuk: What if I did a dialect that just adds 3 basic things? [19:54] c4milo has joined the channel [19:54] Raynos: Dont write dialects [19:54] tjholowaychuk: i dont want Cakefiles and god damn jakefiles and coffeescript compilers [19:54] Draggor: tjholowaychuk: a JS dialect, not a CS one [19:54] Raynos: Write libraries and utilities [19:54] TheJH: DrMcKay, `=` is assign, `->` is like `function(){` [19:55] joshkehn: Don't write dialects. [19:55] DrMcKay: I will make a COBOL to JavaScript compiler [19:55] Raynos: If you want to write anything, write me my ES6 -> ES5 transpiler [19:55] wilmoore has joined the channel [19:55] Raynos: One thats absolutely loyal to ES:Harmony [19:55] Draggor: JS is missing destructuring, macros, and shorthand for function(){} [19:55] CoverSlide: Raynos: you mean traceur? [19:55] Raynos: I can tolerate that [19:55] joshkehn: Why do you need a shorthand for function () {} ? [19:55] joshkehn: What's wrong with it? [19:55] Raynos: CoverSlide: traceur is google's toy. It's not neutral [19:55] `3rdEden: I'm so gonna port Coldfusion to Node, so I can write my code in XML! [19:55] CoverSlide: hahaa [19:55] tjholowaychuk: `3rdEden yay! [19:55] tjholowaychuk: haha [19:55] TheJH: joshkehn, it's so damned long. [19:55] joshkehn: Dead god. Typing. The horror! [19:55] guybrush: the thing with all those compilers and dialects and stuff is, that the community gets splitted [19:55] Draggor: I like coffeescript's shorthand for function [19:55] guybrush: imho [19:56] joshkehn: Imagine typing 15 characters. That must really suck. [19:56] Raynos: joshkehn I want to write something terser, function() is verbose [19:56] Daegalus: Imma port Assembly to JS, then write a C compiler for it in XML, and then write a Node dialect ontop of this in C# [19:56] sdolard has joined the channel [19:56] CoverSlide: ACTION quotes from the book of Marak [19:56] joshkehn: Let's write an APL to JS compiler then. [19:56] joshkehn: You can be as terse as you want. [19:56] Raynos: Needing a terser function is all about one line functions [19:56] sdolard: Hi, is console.log() async? [19:56] CoverSlide: "You've got a problem with JavaScript's syntax, so you added a compiler step. Now you've got two problems" [19:56] DrMcKay: sdolard: no [19:56] Raynos: sdolard: yes [19:56] Raynos: sdolard: LIES [19:56] sdolard: :D [19:56] DrMcKay: :D [19:57] softdrink: i like how in jscocoa you can do ƒ as shorthand [19:57] tjholowaychuk: CoverSlide <3 nice quote haha [19:57] Draggor: I can appreciate that :3 [19:57] Raynos: I mean DrMcKay: LIES [19:57] CoverSlide: console.log is async [19:57] tjholowaychuk: if programmers cant get passed syntax [19:57] addisonj: snippets seem like a good way to avoid typing function... [19:57] tjholowaychuk: you have a big issue [19:57] CoverSlide: console.error is sync [19:57] DrMcKay: tjholowaychuk++ [19:57] v8bot_: DrMcKay has given a beer to tjholowaychuk. tjholowaychuk now has 3 beers. [19:57] tjholowaychuk: hate on features etc not syntax [19:57] sdolard: is there's a way to have it sync? [19:57] joshkehn: Could probably do something with sys [19:57] Raynos: sdolard: use console.error [19:57] joshkehn: @sdolard [19:57] softdrink: tjholowaychuk: y u no tell me about move.js? i reeeaaallyyyy needed something like that. [19:58] dmkbot has joined the channel [19:58] tjholowaychuk: softdrink haha it's hiding in the dark [19:58] sdolard: thanks [19:58] Raynos: tjholowaychuk: why you no advertise all your modules, I always find them _after_ i need them [19:58] joshkehn: sdolard: http://nodejs.org/docs/v0.5.5/api/process.html#process.stderr A writable stream to stderr. Writes on this stream are blocking. [19:58] DrMcKay: tjholowaychuk: yeah, we need billboards all over the world! [19:58] addisonj: ACTION has just started looking a tj's github before looking elsewhere ;) [19:59] softdrink: i'm tempted to fork and add matrix support [19:59] sivy has joined the channel [19:59] CoverSlide: tjholowaychuuk.com is chock full of info, and stays pretty up to date [19:59] yumike has joined the channel [19:59] Raynos: D [19:59] Raynos: Dont forget visionmedia [19:59] CoverSlide: * tjholowaychuk.com [20:00] arthurdebert has joined the channel [20:00] sdolard: Thansk a lot [20:00] dylang_ has joined the channel [20:00] jerrysv has joined the channel [20:00] Daegalus: holy shit, move.js is awsome and exactly what I needed. WHY YOU NO ADVERTISE?! [20:00] tjholowaychuk: ACTION wish I didn't name my github after a totally dead freelance company name haha [20:01] tjholowaychuk: [20:01] tbranyen: haha [20:01] tbranyen: tjholowaychuk: you can rename it? [20:01] tbranyen: and watch everything breka [20:01] booo has joined the channel [20:01] tjholowaychuk: im sure the github guys could for me but yeah changing a ton of links would not be fun [20:01] tjholowaychuk: unless they can redirect [20:01] tjholowaychuk: i dunno [20:01] DrMcKay: tjholowaychuk: they don't :( [20:01] tjholowaychuk: damn [20:01] joshkehn: Create a new account. [20:01] Wa has joined the channel [20:01] joshkehn: Fork everything [20:02] joshkehn: Then edit the README's of the old account to say point to the new account. [20:02] blkcat: nono, pull a _why [20:02] guybrush: i bet everyone who cares will update their readers and stuff [20:02] Raynos: what is visionmedia? [20:02] blkcat: pull everything down and change your name [20:02] tbranyen: optomotrist venture [20:02] tjholowaychuk: Raynos my old company (4 or 5 years ago?) [20:03] tjholowaychuk: i have a ton of stuff tied to it, email etc [20:03] tjholowaychuk: sucks [20:03] DrMcKay: tjholowaychuk: step 0: find a random github guy [20:03] DrMcKay: tjholowaychuk: step 1: get a gun [20:03] tjholowaychuk: haha [20:03] DrMcKay: tjholowaychuk: you know what to do next [20:03] joshkehn: Gun should be step 0 [20:03] DrMcKay: joshkehn: ah, true, dependency [20:03] Raynos: "Hey github guy, wait here whilst I go buy a gun to kidnap you with" [20:03] joshkehn: Raynos: LOL [20:04] DrMcKay: I guess I wouldn't make a good package manager [20:04] sebastianedwards has joined the channel [20:05] bogomips has joined the channel [20:05] guybrush: wow move.js is like tween.js [20:05] guybrush: just for css3, pretty cool [20:06] softdrink: as for all the broken links, just search-and-replace on the internets. [20:06] softdrink: ¬¬ [20:07] Daegalus: Ya, most of my project atm uses tjholowaychuk's stuff. Express, Jade, now move.js. All that is left is a mongodb driver and I will be entirely reliant on his stuff [20:07] guybrush: dont forget stylus! [20:07] joshkehn: cat http://internet/ | sed s/visionmedia/tjh/g > new_internet [20:08] guybrush: not knowing about stylus is a pretty huge knowledge gap.. [20:08] JKarsrud: anyone know why a view in in express suddenly wouldn't use the set layout? [20:08] Raynos: Meh you dont need to _use_ all of his stuff [20:08] `3rdEden: tjholowaychuk not alot people cared when we changed socket.io's repo names. What you could do after the move is re-register than account and create `dummy` repositories with README files [20:08] `3rdEden: like https://github.com/learnboost/socket.io-node does [20:08] tjholowaychuk: `3rdEden hmm yeah maybe, a lot of work i guess [20:09] tjholowaychuk: Raynos of course not lol [20:09] tjholowaychuk: MUST USE MY STUFF WITH EXPRESS [20:09] tjholowaychuk: RIGHT MEOW [20:09] wdperson has joined the channel [20:09] JaKWaC has joined the channel [20:09] tjholowaychuk: JKarsrud hmm what's the render() call look like? [20:10] cjm has joined the channel [20:10] JKarsrud: res.render('auth/signup', { locals: { somelocalshere }}); [20:10] JKarsrud: works on all other views [20:10] JKarsrud: :/ [20:10] slik has joined the channel [20:10] tjholowaychuk: interestingggg... hmm [20:10] JKarsrud: tjholowaychuk: http://pastie.org/2499122 [20:11] JaKWaC has joined the channel [20:11] tjholowaychuk: ps locals:{} isnt required anymore [20:11] tjholowaychuk: just { title: .. } etc is fine [20:11] CoverSlide: JKarsrud: is there a `layout` variable in that particular view? [20:11] Renegade001 has joined the channel [20:11] Daegalus: Raynos: I dont, but I do, i like his stuff. And now that someone mentioned Stylus. I can completely template 100% of my forum system using Jade/Stylus [20:12] Hunter_ has joined the channel [20:12] JKarsrud: tjholowaychuk: right, I recently switched from stache to EJS for templating, so it's just in there for that.. [20:12] JKarsrud: CoverSlide: nope, but there isn't in any of the other views either [20:12] Raynos: Dont get me wrong [20:12] upstream has joined the channel [20:12] Daegalus: And now I found lingo, which will help me with i18n [20:12] Raynos: Out of all the module authors I know, I find tjs stuff the most reliable [20:12] JKarsrud: this one works; http://pastie.org/2499130 [20:12] jheusala: DrMcKay: there should be some kind of Node Module directory. Hard time finding good modules. :-P [20:12] slik: hello, i have a problem: i'm trying to write simple websocket server, the problem is in line 55 there https://gist.github.com/1201590 , socket.write just doesn't work (browser don't get response), any ideas why ? [20:12] Raynos: I just dont like anything with significant whitespace [20:13] tjholowaychuk: jheusala there is [20:13] tjholowaychuk: the wiki [20:13] jheusala: tjholowaychuk: there is just a link to search.npmjs.org [20:13] kimico has joined the channel [20:14] CoverSlide: jheusala: https://github.com/joyent/node/wiki/modules [20:14] jheusala: http://eirikb.github.com/nipster/ this looks a bit better [20:14] kevwil has joined the channel [20:14] CoverSlide: oh thats nice too [20:14] liquidproof has joined the channel [20:14] JKarsrud: olol [20:14] al3xnull has joined the channel [20:14] JKarsrud: I found out the problem [20:14] CoverSlide: you should also be able to filter by last commit [20:15] jheusala: CoverSlide: hmm strange, this morning when I googled 'node.js wiki modules' I got a wiki page with just single link to search.npmjs.org... [20:15] JKarsrud: it does use the layout, I just failed to notice because there was a lack of styling that was more important :D [20:15] softdrink: ACTION punches MDC [20:15] JKarsrud: missed a / infront of css, making the path to the CSS file all wrong :D [20:16] JKarsrud: ACTION is stupid for not having checked my console [20:16] jbpros has joined the channel [20:16] Daegalus: tjholowaychuk: thanks for providing so many reliable modules. [20:16] guyfawkes303 has joined the channel [20:16] tjholowaychuk: Daegalus np [20:16] jheusala: nipster looks *very* nice [20:17] Raynos: Does anyone have any recommendation for finding node.js hackers within a local radius? [20:17] Sorella: Raynos, ask in the channel if anyone lives near you? [20:18] Sorella: You might want to define the maximum radius though. [20:18] Raynos: Bath/Bristol, UK. [20:18] Raynos: maximum radius < 1 earth radius o/ [20:19] uchuff: Raynos: thinking of taking the gf to longleat, worthwhile? [20:19] slik has left the channel [20:19] mc_greeny has joined the channel [20:19] Raynos: uchuff: never visited longleat [20:19] No9 has joined the channel [20:19] cconstantine_: is it possible to have a global in the main js file (where require.main == module) that is available to files loaded as modules? [20:19] uchuff: damn, np [20:20] uchuff: Raynos: can you search linkedin for that specificity [20:20] rfay has joined the channel [20:20] uchuff: also do they need to be local? so much coding is done remotely these days [20:20] CoverSlide: cconstantine_: yes [20:21] zed0_: Raynos: Try the university computer society? [20:21] squeese has joined the channel [20:21] cconstantine_: CoverSlide, I'm having a hard time with it. I have a 'var epoc = new Date();' at the top of my main script and I can't access it in a module [20:22] Raynos: cconstantine_: yes `global.data_is_global = 42` [20:22] CoverSlide: cconstantine_: modules run in their own context [20:22] losing has joined the channel [20:22] Raynos: uchuff: I'm trying to organise a meetup [20:22] CoverSlide: so var will make the variable local [20:22] uchuff: ah ok [20:22] uchuff: cool [20:22] CoverSlide: although it's not a good idea to have global variables anyway [20:23] uchuff: do it monday/tuesday and i might pop down if i do end up going to longleat [20:23] cconstantine_: Raynos, that did it [20:23] uchuff: lol [20:23] Raynos: uchuff: If I wanted a hacker team it doesnt need to be local ;) [20:23] cconstantine_: CoverSlide, oh I know [20:23] cconstantine_: CoverSlide, this is for debugging purposes [20:23] nakkor has joined the channel [20:23] Raynos: cconstantine_ I forgot the GLOBALS ARE EVIL [20:23] cconstantine_: CoverSlide, I have a non-returning function... somewhere that is killing my server every 20 minutes or so [20:24] Sorella: ACTION didn't know Crockford went by a different name on IRC :3 [20:24] nibblebot: anyone using node-seq, how can i bypass the remaining sequences of callbacks without throwing an error? [20:25] stisti has joined the channel [20:25] sid3k has joined the channel [20:25] ydef has joined the channel [20:25] cconstantine_: CoverSlide, do you happen to know of a way to kill a stack that is taking too long? [20:25] Raynos: Sorella: Look here. good coding practice is good coding practice [20:25] nakkor1 has joined the channel [20:26] sfoster has joined the channel [20:26] tmcw has joined the channel [20:27] ydef: so with modules, let's say express, I see lots of repetitive "app.get(...)" when I'd like, a la Sinatra, to write just the "get()". What's the approved way to import all of the functions of a module? [20:27] tbranyen: ydef: heh you could use with [20:27] tbranyen: xD [20:27] kriszyp has joined the channel [20:27] knifed has joined the channel [20:27] tbranyen: with(app) { get(function() { } } [20:27] tjholowaychuk: ydef not without it being a reasonable hack no [20:27] tbranyen: actually wouldn't be a bad place for with [20:27] joshkehn: tbranyen: For the sake of sanity, do not use with. [20:28] ydef: i'm open to hacks. it's just so ugly :( [20:28] tjholowaychuk: ydef dont write js [20:28] joshkehn: What's ugly about app.get? [20:28] tjholowaychuk: if you think it's ugly [20:28] ydef: ( to me; I know it doesn't matter ) [20:28] tbranyen: joshkehn: there is a time and place for everything [20:28] joshkehn: You could say [20:28] tjholowaychuk: IMO unifiying the beginning of a line looks good [20:28] joshkehn: (function () { this.get(…);}.bind(app)()) [20:28] tbranyen: for(var i in app) { this[i] = app[i]; } [20:28] tbranyen: woot [20:29] CoverSlide: except that this is more characters than app [20:29] Sorella: Raynos, true. Though people don't have that much problems with globals in Common Lisp =/ [20:29] joshkehn: But then you still have `this` hanging off the front. [20:29] CoverSlide: go the jquery route [20:29] joshkehn: CoverSlide: Chaining? [20:29] CoverSlide: (function($){$.get()})(app) [20:30] joshkehn: Meh. [20:30] tjholowaychuk: you could do app\n\n.get()\n\n.get() etc [20:30] tjholowaychuk: but yeah, dont do that [20:30] joshkehn: Still more characters then app.get [20:30] Sorella: var get = app.get, post = app.post, ... [20:31] ydef: sorella -- yeah, for everything in exports [20:31] Raynos: tbranyen you get shot for recommending with [20:31] Sorella: or... wait, I guess you need to call it in the right object? Not familiar with express. [20:31] Draggor: I take it with is not like a let in lisp [20:31] tbranyen: Raynos: sorry i'm not scared of language concepts :) [20:31] CoverSlide: var get = app.get.binf(app) [20:31] tbranyen: Raynos: its like saying never use == [20:31] CoverSlide: s/binf/bind/ [20:31] mendel_ has joined the channel [20:31] tbranyen: or ++i i++ [20:31] Sorella: Draggor, no. [20:32] Draggor: That's unfortunate [20:32] tbranyen: its like saying its too confusing to put () on the outside of (function() { }) instead of (function(){}()); [20:32] Raynos: tbranyen: never use == [20:32] Raynos: Seriously. Dont do it [20:32] CoverSlide: some weird people like to use void function(){} [20:32] tbranyen: Raynos: sounds like you've been brainwashed and don't know why :-p [20:32] Raynos: I do know why [20:32] CoverSlide: `void function(){}()` [20:32] Raynos: I hate type coercion [20:32] tbranyen: there are perfectly valid reasons to use == [20:32] Raynos: In the browser yes [20:33] Raynos: in node, no [20:33] Sorella: CoverSlide, I'm one of the weird ones who like void function =/ [20:33] tbranyen: anywhere [20:33] hackband has joined the channel [20:33] joshkehn: Raynos: What's wrong with coercion if you are aware of it? [20:33] hydrozen has joined the channel [20:33] Raynos: with is bad for readability, end of. It's also murders the JIT [20:33] tbranyen: (obj == null) will test for undefined/null, (typeof obj == "whatever") [20:33] tbranyen: in both cases [20:33] Raynos: joshkehn: I dont know all the rules of by heart [20:33] tbranyen: == is fine [20:33] tbranyen: typeof will ALWAYS return a string [20:33] tbranyen: it can't not [20:33] CoverSlide: == is fine if you do want to catch all falsy values [20:33] Sorella: type coercion is awesome. It's also faster than === for objects of same type, according to jsperf. [20:33] ydef: heh ... so you could write a little utility function, abusing eval, to accomplish var n = require(thing)[n] for all of exports. [20:33] tbranyen: speed is a non concern to me [20:33] Raynos: tbranyen: but why not use === in the latter case? [20:34] joshkehn: Sorella: On which JS engines? [20:34] tjholowaychuk: tbranyen haha yeah i always laugh a little when i see typeof + === [20:34] Raynos: === is slightly faster, its more readable, its less ambigious [20:34] joshkehn: tbranyen: Speed is always a concern. [20:34] Sorella: joshkehn, dunno, it was posted on ##javascript a while ago. I think v8 or SM [20:34] tbranyen: lol [20:34] Sorella: but meh, microoptimisations. [20:34] tbranyen: yes i am going to care about == over === [20:34] tbranyen: i have no life [20:34] xiagox has joined the channel [20:34] joshkehn: If I'm comparing to something I will use ===, even with typeof [20:34] joshkehn: If I'm checking truth I'll use if (foo) and if (!foo) [20:35] Raynos: I just dont see a reason to prefer == [20:35] tbranyen: thats fine, its just dumb to tell other people to not do what youre insecure about [20:35] tbranyen: you sound like crockford :-p [20:35] joshkehn: If I'm coding with others I'll be explicit on truth if (typeof foo === 'undefined' || foo === null) [20:35] Sorella: If I'm comparing values, I'll use ==. If I'm comparing data structures, I'll use ===. Everyone wins that way. [20:35] tbranyen: joshkehn: thats excessive [20:35] tbranyen: and unecessary [20:35] joshkehn: tbranyen: Sure is! [20:35] Sorella: foo == null [20:35] tjholowaychuk: [] == false and !![] == true ftw [20:35] Raynos: I agree that == null is the only exception [20:35] tbranyen: tjholowaychuk: ha i love that one [20:35] Sorella: no need for typeof if you know the variable exists. [20:36] Raynos: But you should avoid allowing input that can be both null & undefined [20:36] Raynos: that's just bad API design [20:36] joshkehn: But when you're writing code that is being read by other people who have no clue what is true or false it makes sense to be as verbose as possible. [20:36] Sorella: Raynos, well, blame it on the guys who wrote ECMAScript specs. [20:36] Raynos: eich: why do you do this? [20:36] Sorella: there was no need for both null and undefined in the first place. [20:36] Sorella: just nil would be fine. [20:36] freeformz has joined the channel [20:36] CoverSlide: I think it should be called `None` [20:36] joshkehn: Sorella: nil? [20:37] Raynos: nil is used in LISP [20:37] dilvie has joined the channel [20:37] CoverSlide: and objc [20:37] joshkehn: null is standard. [20:37] cjm has joined the channel [20:37] tbranyen: Sorella: lua ftw :p [20:37] CoverSlide: actually everyone should use (void*)0 [20:38] aguynamedben has joined the channel [20:38] joshkehn: $ node [20:38] joshkehn: > (void*)0 [20:38] joshkehn: ... [20:38] joshkehn: ... [20:38] Sorella: tbranyen, have never really done anything in Lua. Will probably learn it now that I'm using awesome though. [20:38] joshkehn: Doesn't seem to like it. [20:38] Sorella: try (void 0) [20:38] tbranyen: Sorella: awesome gave me too much trouble [20:38] tbranyen: with window hinting [20:38] tbranyen: always had gaps with rxvt-unicode [20:39] Sorella: ACTION uses gnome-terminal [20:39] joshkehn: $ node [20:39] joshkehn: > (void 0) [20:39] joshkehn: > if ((void 0)) { console.log('true'); } [20:39] joshkehn: > if (!(void 0)) { console.log('true'); } [20:39] joshkehn: true [20:39] joshkehn: > [20:39] joshkehn: On the topic of void, does it have any reason for being in JS? [20:39] TheJH: joshkehn, shorter "undefined" for minifiers :D [20:39] Sorella: joshkehn, I'm not sure if it has a reason to be in JS, as I wonder with many other features, but it has uses. [20:40] Sorella: like coercing a function declaration to function expression, so you can call it. [20:40] CoverSlide: Click <-- use for void [20:40] joshkehn has joined the channel [20:40] Raynos: joshkehn: do you think JS was not written in 3 weeks? [20:40] joshkehn: Sorry about that. Machine kernal panic'ed [20:40] Sorella: CoverSlide, javascript:SOMEFUNCTION(),0 [20:41] Sorella: optimised! [20:41] CoverSlide: yay! [20:41] Sorella: I'm not sure 0 works though. [20:41] joshkehn: I know it was written in 3 weeks. I'm saying what was the purpose of including it. [20:41] TheJH: Sorella, how about !1 ? [20:41] Raynos: Some other language has a void operator? [20:41] Sorella: Raynos, C [20:41] CoverSlide: Java [20:41] joshkehn: “What does void do in JavaScript?” [20:41] joshkehn: Better question. [20:42] Sorella: joshkehn, evaluates an expression, then returns undefined. [20:42] CoverSlide: evaluates to undefined [20:42] Sorella: so, void ::= "void" → undefined [20:42] JJMalina has joined the channel [20:42] freeformz has joined the channel [20:44] Sorella: TheJH, might work, unless it expects undefined to cancel replacing the document by the evaluation of those commands, rather than false{,y} [20:44] stagas has joined the channel [20:48] smtlaissezfaire has joined the channel [20:49] DrMcKay: jheusala: there is, at node.js GH wiki [20:49] ydef: aha. easy as pie ... in coffeescript, imp=(exprts, us) -> us[k] = exprts[k] for k of exprts; imp require(thing), this; thanks, I think it was tbranyen -- i was trying to walk modules via .parent, from within the required module, instead of just passing in 'this' ... duh [20:49] Insekticid: Have you seen Noderb? [20:50] DrMcKay: Insekticid: don't tell me that rb stands for Ruby. [20:50] DrMcKay: it actually does. [20:50] CoverSlide: oh cheezus [20:50] Insekticid: DrMcKay: yap [20:50] DrMcKay: so, we have a node.php [20:50] joshkehn: And a Node.c [20:50] DrMcKay: some weird ass port to Rhino [20:50] Insekticid: DrMcKay: Node ported to Ruby [20:50] Sorella: ...really? [20:50] Sorella: node.php? [20:51] joshkehn: https://github.com/davidcoallier/node-php [20:51] Sorella: The world is really beyond salvation =/ [20:51] DrMcKay: Sorella: because of bnoordhuis [20:51] joshkehn: “Be worried, be very worried. The name NodePHP takes its name from the fact that we are effectively turning a nice Node.js server into a FastCGI interface that interacts with PHP-FPM.” [20:51] joshkehn: “Yes this goes against all ideas and concepts of Node.js” [20:51] DrMcKay: I meant: https://github.com/bnoordhuis/phode [20:51] bnoordhuis: we renamed it :) [20:51] bnoordhuis: node.php is too much typing [20:52] Insekticid: DrMcKay: I just saw Noderb on my friend's twitter. He is the creator :-) I mean, I like the idea :-) [20:52] DrMcKay: bnoordhuis: it's still PHP, you won't hide it. [20:52] joshkehn: What is gypi? [20:52] kkaefer: also saw http://acquia.com/resources/acquia-tv/conference/bring-real-time-interactivity-drupal-nodejs-integration-0 today [20:52] tbranyen: node.net [20:52] DrMcKay: Insekticid: I'll check it out later :) [20:52] bnoordhuis: joshkehn: a gyp file [20:52] bnoordhuis: joshkehn: before you ask, gyp is a build system :) [20:52] DrMcKay: oh, there's no Python port! [20:52] DrMcKay: I will make one! [20:52] joshkehn: Someone get on that. [20:52] Insekticid: DrMcKay: Nice :-) hehe, python port :-D [20:52] joshkehn: bnoordhuis: …. Okay. [20:53] DrMcKay: no, there is something like that [20:53] Sorella: DrMcKay, there's Twisted though [20:53] DrMcKay: but it's on second Google page for 'node python', so it doesn't count [20:53] DrMcKay: Sorella: Tornado <3 [20:53] eee_c has joined the channel [20:53] bnoordhuis: DrMcKay: if you want a worthwhile project, there's no python bindings for libuv yet [20:53] Insekticid: Insekticid: Btw, my friend said, that he is going to speak about Noderb on RuPy :-) [20:54] Insekticid: omg [20:54] Insekticid: DrMcKay: Btw, my friend said, that he is going to speak about Noderb on RuPy :-) [20:54] DrMcKay: bnoordhuis: I thought about that one day [20:54] DrMcKay: bnoordhuis: I will write it then :) [20:54] synkroBBQ has joined the channel [20:54] Sorella: An even more worthwhile thing would be fixing the last issues that are still making Enlightenment DR17 look like it's gonna be released only after Duke Nukem Forever 2. [20:54] mehlah has joined the channel [20:54] bnoordhuis: DrMcKay: i set up a skeleton project a while ago [20:54] DrMcKay: Insekticid: great :) [20:54] bnoordhuis: DrMcKay: i can send it over if you like [20:55] DrMcKay: bnoordhuis: yes, please :) [20:56] CoverSlide: awesome [20:56] DrMcKay: Insekticid: and are you coming? [20:56] bnoordhuis: DrMcKay: hmm, i might've deleted it [20:56] dgathright has joined the channel [20:57] DrMcKay: bnoordhuis: take your time, I won't be able to really start it until end of the week or so, anyway [20:57] bnoordhuis: DrMcKay: do you have someplace i can push it to? [20:58] freeformz has joined the channel [20:58] DrMcKay: bnoordhuis: I'll create a GH repo, if you're fine with that [20:58] bnoordhuis: DrMcKay: sure [20:58] Insekticid: DrMcKay: probably yes. Do you know about any cheap place for sleeping? :-) [20:58] joshkehn: Insekticid: Park benches? [20:58] DrMcKay: bnoordhuis: it has any specific name? [20:58] stagas_ has joined the channel [20:59] Insekticid: joshkehn: Hehe, thanks :-D [20:59] bnoordhuis: DrMcKay: i very imaginatively called it libuv-py [20:59] yumike has joined the channel [20:59] tmedema has joined the channel [20:59] DrMcKay: Insekticid: there's a hotel quite near the conference center [20:59] DrMcKay: Insekticid: or I could try to get you a couch here, at my home [21:00] tmedema: Can anyone tell me why my console's output is not showing in Node Inspector even though I launch node inspector with --fwd-io ? [21:00] wookiehangover has joined the channel [21:01] Insekticid: DrMcKay: I will think about it, thanks :-) [21:01] DrMcKay: bnoordhuis: git@github.com:mmalecki/libuv-py.git [21:02] DrMcKay: Insekticid: but nothing sure, it kind of depends on my parents [21:02] r04r has joined the channel [21:02] bnoordhuis: DrMcKay: pushed! [21:02] DrMcKay: bnoordhuis: thank you thank you thank you! :) [21:02] Insekticid: DrMcKay: Yeah, I understand :-) But thank you anyway [21:03] bnoordhuis: DrMcKay: you won't thank me anymore when you see the quality of the code >:) [21:03] CoverSlide: is there a ruby port of libuv? [21:03] bnoordhuis: CoverSlide: no [21:04] DrMcKay: bnoordhuis: I see no dragons, looks good [21:04] CoverSlide: hows libuv compare to libev? [21:04] fson_ has joined the channel [21:04] DrMcKay: but there still may be some raptors on their way here [21:04] wink_: about a letter difference [21:04] bnoordhuis: CoverSlide: for one, it works performantly on windows [21:05] bnoordhuis: DrMcKay: oh yes, there's goto statements in there [21:05] DrMcKay: bnoordhuis: I see [21:05] DrMcKay: I will compile it and check what happ... *aaaaa!* [21:05] bnoordhuis: ACTION <3 goto [21:06] sebastia_ has joined the channel [21:06] DrMcKay: bnoordhuis: no, seriously, it's fine when you know how to use it [21:06] CoverSlide: ares is a dep for libuv? [21:06] DrMcKay: my programming teacher says it's the root of the evil [21:06] tjholowaychuk: goto is sweet [21:07] bnoordhuis: DrMcKay: he's read too much dijkstra [21:07] smtlaissezfaire has joined the channel [21:07] DrMcKay: bnoordhuis: or too litle kernel code [21:08] simenbrekken has joined the channel [21:08] wbednarski has joined the channel [21:09] neilk_ has joined the channel [21:09] bnoordhuis: CoverSlide: yes, and bundled [21:10] r04r has joined the channel [21:10] TheJH: poor goto for js: do { ... break; ... } while (false); [21:11] prettyrobots has joined the channel [21:11] TheJH: (and for java, too) [21:11] tomtomaso has joined the channel [21:11] CoverSlide: there are labels in js [21:11] CoverSlide: but they are rarely used [21:11] CoverSlide: and even more rarely used correctly [21:12] Sorella: ACTION has never seen any use case for labels in JS [21:12] joshkehn: No [21:12] Sorella: plus {break,continue}