[00:00] volts: hello, can someone help me out with a small issue ? [00:01] jtsnow has joined the channel [00:02] criswell has joined the channel [00:02] mandric has joined the channel [00:02] volts: i cant figure out how to close a connection for a simple http server written in node [00:02] davidban_: volts: The etiquette here is just to go ahead and ask. If someone knows the answer, they'll respond. If no-one does, then no-one will. So shoot! [00:02] davidban_: Oh, timing. [00:03] elevenarms has joined the channel [00:03] volts: thnx davidban [00:03] davidban_: volts: I'm guessing you're after res.end ? Post your code in a gist and it might be clearer. [00:03] volts: right after res.end() i would like to close the connection from the server side [00:04] volts: closest i have gotten is to include 'Connection': 'close' in the http header responce [00:04] mjr_ has joined the channel [00:04] jskulski has joined the channel [00:04] davidban_: So you specifically don't want to allow keep-alive? Would forcing it back to http1.0 instead of http 1.1 do it? [00:05] volts: yeah i dont want any keep alive at all [00:05] volts: ive also tried just removing keep alive from the header, no luck there [00:06] diogogmt|2 has joined the channel [00:06] volts: i can try forcing http1.0 [00:06] elevenarms has joined the channel [00:06] volts: ty for the sugguestion, ill try that now [00:06] davidbanham: No worries. Having a look at the docs I'm not actually sure there's a way to do it. [00:06] thepatr1ck: you could try req.connection.end() (sends a FIN packet) or req.connection.destroy(), though those might not do what I'm expecting them to [00:07] volts: ty thepatr1ck, ill try that too. Do i have to add anything to get connection to be defined ? [00:07] thepatr1ck: req.connection should just be there according to the docs [00:08] davidbanham: Yeah looks like it goes directly to the socket. - http://nodejs.org/docs/v0.6.2/api/http.html#request.connection [00:09] volts: thanks alot, ill try the 2 things suggested and get back to you guys. [00:09] Juan77 has joined the channel [00:15] stantona has joined the channel [00:15] MUILTFN has joined the channel [00:16] volts: @thepatr1ck, thank you very much works perfectly =D [00:16] justinTNT has joined the channel [00:17] volts: used res.end('my responce here'); then a call to req.connection.end(); and it closed the connection just like i wanted [00:18] volts: thanks again guys, you rule [00:18] replore has joined the channel [00:18] replore_ has joined the channel [00:18] dnyy has joined the channel [00:20] brainproxy: tjholowaychuk: saw a retweet about Mocha last night and was looking it over .. reminded me a lot of jasmine, and am curious if you took what you liked from jasmine and went your own direction, of they're just coincidentally similar [00:20] brainproxy: *or if they're.. [00:20] tjholowaychuk: brainproxy jasmine was based on my jspec, which were both pretty much based on rspec [00:21] brainproxy: tjholowaychuk: oh, okay, didn't realize that, cool [00:21] tdubellz has joined the channel [00:21] tjholowaychuk: but that was ages ago, jspec was the first "real" open-source project I make [00:21] tjholowaychuk: made* [00:24] lyte has joined the channel [00:24] lyte has joined the channel [00:24] samBiotic has joined the channel [00:27] plutoniix has joined the channel [00:28] wookiehangover has joined the channel [00:29] MUILTFN has joined the channel [00:34] scott_gonzalez has joined the channel [00:34] adrianF has joined the channel [00:35] meso has joined the channel [00:36] deoxxa has left the channel [00:37] perezd has joined the channel [00:39] jomoho2 has joined the channel [00:39] jamescarr has joined the channel [00:40] konobi: rspec-- # WAFPITA [00:40] Squeese has joined the channel [00:41] postwait has joined the channel [00:41] phiggins has joined the channel [00:41] gavin_huang has joined the channel [00:42] EvRide has joined the channel [00:42] vsync_ has joined the channel [00:42] _unary has joined the channel [00:43] jerrysv has joined the channel [00:45] caolanm has joined the channel [00:47] jimubao has joined the channel [00:49] cgray has joined the channel [00:49] jocafa has joined the channel [00:49] divramodn has joined the channel [00:50] mikeal has joined the channel [00:53] volts: have a good one everybody, im out of here. Thnx again for the help thepatr1ck and davidban. [00:53] volts has left the channel [00:54] trotter has joined the channel [00:55] stantona has joined the channel [00:56] mandric has joined the channel [00:57] lyte_ has joined the channel [01:05] _dc has joined the channel [01:06] CIA-109: node: 03Bert Belder 07reviewme * rdf2fa94 10/ (lib/path.js src/node.cc): Windows: correctly resolve drive-relative paths (+33 more commits...) - http://git.io/Pod3_g [01:07] ecin has joined the channel [01:08] yorick has joined the channel [01:10] vkandy: guys, i have a multiple machines running express on nodejs .. a load balancer routes traffic to all nodes. now i have some scheduled operations for which i am using scheduler on all nodes. [01:10] vkandy: but i'd like them to "communicate" with each other so that only a SINGLE node in the cluster performs certain scheduled operations. -- like a distributed mutex sort f thing [01:11] vkandy: i thought i'd use multicasting but looks like it's not completely implemented in 0.6.2 ... can anyone suggest other ideas? [01:12] idl3 has joined the channel [01:13] dgathright has joined the channel [01:13] Aria: Poor man's multicast, where you connect some subset of the n nodes together with TCP pipes or UDP communication, and when you get a quorum, assume the decision's made. [01:14] racar has joined the channel [01:14] vkandy: i'd have to know ips and ports upfront then .. [01:14] Aria: Yep. [01:14] npa has joined the channel [01:14] Aria: Or: implement the multicast stuff ;-) [01:14] vkandy: :) [01:15] vkandy: i thought of using xmpp .. and subscribing all nodes ... u think that takes up cpu more than required? [01:15] trcarden has joined the channel [01:15] EvRide1 has joined the channel [01:18] jmar777 has joined the channel [01:18] Destos has joined the channel [01:20] CIA-109: node: 03Bert Belder 07v0.6 * rcbcf4fe 10/ src/node.cc : Don't die when arguments are passed to process.cwd() - http://git.io/hMsBVg [01:20] Aria: That's decent, but that requires a central node to coordinate. [01:21] Aria: If your XMPP is reliable, yay! [01:21] Aria: It's not CPU that's really the problem most of the time, it's either network bandwidth or CAP problems. [01:21] bLiNdRaGe has joined the channel [01:21] Aria: (or latency) [01:21] CIA-109: node: 03Bert Belder 07reviewme * r48e4b7d 10/ (lib/path.js src/node.cc): Windows: correctly resolve drive-relative paths - http://git.io/F0pwJQ [01:21] idl3 has joined the channel [01:21] llrcombs: will the built-in https implementation support non-standard methods? [01:21] bLiNdRaGe: anyone have an idea why this fails? http://pastebin.com/AATE5AtN [01:22] llrcombs: (e.g. ACE /ace ) [01:22] bLiNdRaGe: it says can't find ev.h, but find shows it in /usr/include/libev [01:22] finsken_ has joined the channel [01:22] Wa has joined the channel [01:22] perezd: so nodejs [01:22] perezd: thats a thing [01:22] perezd: what OSes are people deploying into production for node? [01:22] Lingerance: Linux. [01:22] perezd: Lingerance: what led you to that [01:22] perezd: did you consider solaris or others [01:22] a_meteorite: perezd: all Linux here [01:22] Lingerance: Solaris is dying. [01:22] bLiNdRaGe: or if anyone knows a better library for md5 in node.js [01:22] Lingerance: BSD was a pain last time I had to deal with it. [01:22] perezd: was curious in terms of performance which OS might have the best kernel setup for node's characteristics [01:22] a_meteorite: Linux interoperates well, and provides the best performance I imagine [01:22] a_meteorite: It was a natural choice for us. [01:22] a_meteorite: Though I have considered trying FreeBSD. [01:23] vkandy: Aria: i think that makes sense. i'll just use static ips and ports .. thanks [01:23] Aria: SmartOS, Linux, MacOS and FreeBSD are all common [01:24] Aria: And Windows. Windows, Linux and SmartOS are probably the best tuned, though they're all pretty good. [01:24] Aria: bLiNdRaGe: That fails because it's looking for libev directly which is now private. IT needs to be ported to libuv. [01:25] vkandy: why is solaris dying? 10 was just released [01:25] vkandy: or was it 11?? [01:25] Aria: bLiNdRaGe: However, the built-in md5 should do fine for you. [01:25] Aria: 11. [01:25] Aria: Oracle's doing their best to kill it like they do everything, but with the open Solaris codebase out there, Illumos and now SmartOS are making some waves. [01:25] bLiNdRaGe: what's the built in? can i call it as md5() ? [01:25] Aria: bLiNdRaGe: require('crypto') [01:26] bLiNdRaGe: google's not turning up anything on node.js + md5 other than hashlib [01:26] perezd: I was looking into smartos [01:26] perezd: not sure if I can run that on EC2 [01:26] bLiNdRaGe: ahhhh mustve missed that one [01:26] bLiNdRaGe: thanks aria [01:26] Lingerance: vkandy - OpenSolaris is gone, I see no future in a UNIX that has no ability for people to just pick up the free version and try it out. [01:27] konobi: perezd: nah... it's not really possible to run any of the opensolaris based distros on EC2 [01:27] perezd: konobi: I was seeing a few [01:27] jmar777 has joined the channel [01:27] perezd: konobi: http://aws.amazon.com/search?searchPath=amis&searchQuery=opensolaris&x=0&y=0 [01:27] konobi: perezd: older versions... yes... but the xen dom support is gone for the most part in newer builds [01:27] perezd: including smartos? [01:28] konobi: yup... it's based on a much newer version [01:28] perezd: konobi: if I am running a nodejs production application, would you recommend looking more closely at BSD or Linux [01:28] konobi: although i did hear someone saying that OI was possible... look for bdha's blog [01:28] Aria: What sort of application? What sort of deployment requirements? [01:29] lee_ has joined the channel [01:29] konobi: perezd: Joyent employee... i'd go for SmartOS or FreeBSD for dtrace capabilities [01:29] perezd: I know you are :) [01:29] Aria: Hehe. dtrace ++ [01:29] perezd: konobi: I really wish I understood how to use dtrace with node more effectively [01:30] dgathright has joined the channel [01:30] jskulski has joined the channel [01:30] konobi: perezd: ahl did a bunch of great introduction to dtrace slides that are worth going over [01:30] perezd: konobi: link? [01:30] konobi: then you can start looking into the nodejs dtrace probes and you can even add your own with node-libdtrace [01:30] konobi: perezd: 2 secs [01:31] perezd: yeah, it seems really helpful [01:31] konobi: perezd: there's also the dtrace book, which is great [01:31] perezd: yeah, I need a bridge to nodejs [01:31] perezd: so I understand how to apply it to that case [01:31] vkandy: this is the first time i hear about smartos .. i am reading http://smartos.org/ but is it a UNIX? [01:32] perezd: vkandy: its a solaris [01:32] vkandy: ah ok [01:33] CIA-109: node: 03Bert Belder 07reviewme * r65a14aa 10/ (lib/path.js src/node.cc): Windows: correctly resolve drive-relative paths - http://git.io/z_wqTg [01:33] icewhite has joined the channel [01:33] vkandy: i assume nodejs works on smartos then? coz it was a pain to get it working on solaris express [01:33] dgathright_ has joined the channel [01:33] Aria: Joyent does develop SmartOS ;-) [01:34] vkandy: desktop or server? [01:34] vkandy: i'll try that on a vm [01:34] konobi: perezd: can't find it off hand [01:34] bLiNdRaGe: last question, is there a way to pass variables in res.redirect(url) (express) ? [01:35] perezd: vkandy: yeah, smartmachine/joyent uses those [01:35] tjholowaychuk: bLiNdRaGe #express [01:35] konobi: vkandy: node comes preinstalled on SmartOS [01:35] konobi: =0) [01:35] bLiNdRaGe: heh, thanks [01:35] perezd: :( [01:35] a_suenami has joined the channel [01:35] craigm has joined the channel [01:35] vkandy: even better! :) [01:35] abraxas has joined the channel [01:36] perezd: which event system does the BSD kernel use? [01:36] perezd: epoll? [01:36] perezd: kqueue? [01:36] _unary has joined the channel [01:36] heavysixer has joined the channel [01:37] igl: mmh neat. run node directly within notepad++ console and open the stdout as a file [01:39] CIA-109: node: 03Bert Belder 07v0.6 * r86fba38 10/ (lib/path.js src/node.cc): Windows: correctly resolve drive-relative paths - http://git.io/SPRQNg [01:39] Aria: BSD uses kqueue. [01:41] _unary_ has joined the channel [01:42] Aria: llrcombs: No, you'd have to patch the parser to handle custom methods, I believe. That said, that's not that hard. [01:42] Clinteger has joined the channel [01:43] brianseeders has joined the channel [01:43] jxson has joined the channel [01:48] onlytracks has joined the channel [01:49] tomlion has joined the channel [01:49] ChrisPartridge: Mocha looks pretty awesome tjholowaychuk [01:49] tjholowaychuk: ChrisPartridge thanks! [01:50] ditesh|cassini has joined the channel [01:51] heavysixer has joined the channel [01:51] seanbeausoleil has joined the channel [01:55] piscisaureus__ has joined the channel [01:56] marcostoledo has joined the channel [01:56] lyte has joined the channel [01:56] lyte has joined the channel [01:57] heavysixer has joined the channel [01:57] jesusabdullah: Oh fuck yeah, robot unicorn shirt in the suppacamp group photo [01:58] Clinteger has left the channel [01:59] torsd has joined the channel [02:00] llrcombs: Aria: what if ACE is exactly like POST, but with a different name? [02:04] jaequery has joined the channel [02:04] k1ttty has joined the channel [02:04] Aria: llrcombs: How would node know that? [02:04] Aria: (there's nothing in the HTTP spec that says "unknown methods are parsed just like POST and have the same semantics") [02:08] Aria: Hrm. I think the term 'DSL' needs to die in a fire. How about we call them '[foo] domain language' as a start? [02:09] dhasenan has joined the channel [02:11] lee_: specific domain language [02:12] tiagobutzke has joined the channel [02:12] Aria: Even that, ew. Tell me what domain! [02:12] Aria: Otherwise you're just using it as a substitute for 'language' [02:15] thepatr1ck has joined the channel [02:16] jxson has joined the channel [02:16] konobi: SQL is a DSL... all the ruby "dsl" stuff is just wankery [02:17] jmar777 has joined the channel [02:18] Aria: Yes. [02:18] Aria: I think often what people mean by DSL is actually either 'language' or more often 'vocabulary' [02:19] jerrysv has joined the channel [02:20] davidascher has joined the channel [02:20] SuMarDi has joined the channel [02:21] k1ttty has joined the channel [02:21] xeodox has joined the channel [02:23] RyanW has joined the channel [02:24] jerrysv has joined the channel [02:25] piscisaureus__ has joined the channel [02:26] xeodox has left the channel [02:28] stelcheck has joined the channel [02:32] ecin has joined the channel [02:33] neilk_ has joined the channel [02:33] davidascher has joined the channel [02:34] Emmanuel has joined the channel [02:34] davidascher has joined the channel [02:35] hotch has joined the channel [02:35] xeodox has joined the channel [02:35] xeodox: Has anyone used "async" module? [02:36] joshsmith has joined the channel [02:36] ryanfitz has joined the channel [02:36] appinsanity-mike has joined the channel [02:37] llrcombs: Aria: Node doesn't know that; I understand that. Lemme rephrase: whow would I go about coding for a new request method (ACE, in this case), which is identical to POST? [02:37] adwong has joined the channel [02:37] llrcombs: technically, the differences are that the request body begins with magic number 0xAACCEE02 and the rest of the body is always DEFLATE'd, but I'm coding for handling that in my request listener [02:38] hotch: hey guys, I'm running some test series, and they are all torn down with vows upon end, but during … so if i have var app = http.createServer, how can i tear down app / kill it? [02:38] Kunda has joined the channel [02:39] thepatr1ck has joined the channel [02:39] RyanW: If I'm making an npm module named 'foo' and I want users to be able to include subfolders like: require('foo/bar'), what do I need to add to my package.json? [02:40] hotch: RyanW: nothing... [02:40] RyanW: Hmz [02:40] richardr has joined the channel [02:40] hotch: more in-depth? [02:40] RyanW: I can only include what I've set as "main" [02:41] hotch: ahh [02:41] hotch: inside of main .. [02:42] hotch: exports.whatever = require("./lib/whatever").whatever; [02:42] hotch: whatever.js => exports.whatever = function() P [02:42] hotch: { [02:42] RyanW: But doesn't that mean you do: require('foo').whatever ? [02:42] hotch: no [02:42] RyanW: oh [02:43] RyanW: I'll give it a try, cheers. [02:43] hotch: so var myModule = require("myModule"); [02:43] hotch: then i need myModule.funcWhateverSomething() [02:43] hotch: kk [02:44] lyte has joined the channel [02:44] RyanW: Didn't work. [02:45] RyanW: It showed up as: require('foo').bar but not require('foo/bar') [02:47] avalanche123 has joined the channel [02:47] adwong has joined the channel [02:47] adwong has joined the channel [02:48] adwong has joined the channel [02:48] seebees has joined the channel [02:48] jacobolus has joined the channel [02:49] Aria: llrcombs: Modify the http parser, copy and paste the POST section -- it's in C, but not insane. [02:49] llrcombs: ack, I have to modify the C? [02:50] adwong has joined the channel [02:52] llrcombs: surely there's an easier way? [02:53] seebees: anyone having trouble running a script built from master? [02:53] seebees: OSX 10.6 [02:53] seebees: ./out/Release/node ./test/simple/test-sometest.js [02:53] seebees: Segmentation fault [02:54] seebees: *sadness* [02:54] Aria: llrcombs: Not currently -- though if someone wants to make it extensible, I bet there's an intelligent conversation to be had on it. [02:54] Aria: llrcombs: The HTTP parser is above all simple and fast. But it is offloaded to C. [02:55] jocafa has joined the channel [02:56] llrcombs: well, where can I find the code, and how can I put the modded version in a module? [02:56] Aria: IT's in node's source tree -- look in src/ [02:57] Aria: And in a module is likely a bit harder, you'd have to clone a lot. I'd suggest contributing the support upstream. [02:57] Aria: (Why are you using a custom HTTP verb?) [02:57] llrcombs: Aria: I'm not. Siri is. [02:58] seebees: anyone? [02:58] yebyen has joined the channel [02:58] seebees: anyone build from master recently? [02:58] yebyen: does anyone build node.js on Debian GNU/FreeBSD? [02:58] llrcombs: Siri's guzzoni protocol uses a custom HTTPS verb called ACE [02:58] yebyen: should be almost the same except uname is GNU/FreeBSD which usually trips up most toolchains [02:59] konobi: llrcombs: the http parser is interruptible though... so you can wait for the body... inspect the start and then do something different based upon it [02:59] llrcombs: konobi: how? [02:59] llrcombs: I'm not even getting a request event [02:59] konobi: RTS [02:59] co_dh has joined the channel [02:59] konobi: oh... custom method?! [02:59] llrcombs: yep [02:59] yebyen: i am uessing that nobody does because it doesn't build [03:01] konobi: llrcombs: as a client or server? [03:01] llrcombs: konobi: server [03:01] Aria: llrcombs: Oh, fun. But I bet that's uncontroversial enough to just accept a patch to node. But that's my guess. [03:01] mikeal has joined the channel [03:01] llrcombs: Aria: so what, should I file a bug report on github and ask for nonstandard request methods to be treated like POST? [03:02] Aria: Looks like the weird-ass content-length handling is going to be bizarre though [03:02] Aria: No, you should ask for ACE specifically. [03:02] Aria: POST is not a sane default. [03:02] llrcombs: does it even send a content-length header? [03:02] Aria: According to http://geeknizer.com/siri-protocol-cracked-explained/, it's not POST-like, particularly. [03:02] Aria: And it sends Content-Length: 2000000000 [03:03] llrcombs: which I think is safe to just ignore [03:03] Aria: yeah. But you're starting to get into "this isn't HTTP" territory. [03:03] llrcombs: I just figured I'd treat it like POST because it's closer to that than any of the other methods [03:03] Aria: Yeah, it's different though. IT has its own quirks. [03:04] llrcombs: what's really the difference between this and chunked POST? [03:04] Aria: No chunks? [03:04] konobi: llrcombs: you're using http server directly? [03:04] Aria: The broken content-length? [03:04] Aria: https://github.com/substack/node-parsley might be useful to you. [03:04] towski has joined the channel [03:04] llrcombs: Aria: it keeps sending additional data on the same connection [03:05] jldbasa has joined the channel [03:05] Aria: And I might be wrong in that node's parser doesn't take unknown methods. Interesting. [03:05] llrcombs: the content-length is probably there because it wants everything to continue working until the client closes the connection [03:05] konobi: it will say it's unknown... but it still has it available... as to what happens once it hits the js part, i'm unsure [03:05] Aria: Yeah. So they're basically making a tunnel protocol over HTTP. [03:05] llrcombs: (the same connection is used until Siri is closed, and raw audio is transmitted) [03:05] RyanW: I have a npm module named 'foo', in my package.json I have 'main' set to : lib/foo. If I use the module I can require('foo') to get what I set as 'main', but I can't use require('foo/bar') to get at 'lib/foo/bar'. What do I need to add to package.json to make that work? [03:06] Aria: Interesting tactic. I think I'd use the raw TCP socket in node, and then use parsley. [03:06] Aria: RAther than Node's HTTP parser. [03:06] llrcombs: HTTPS, that is [03:06] Aria: HTTPS is just HTTP with TLS ;-) [03:06] Aria: Same parser. [03:06] konobi: llrcombs: you're using require('hhtp') not something like express or connect, right? [03:06] llrcombs: yeah, but still... [03:06] llrcombs: konobi: right [03:07] davidedwardclark has joined the channel [03:07] llrcombs: and the http builtin parser ignores nonstandard methods [03:07] chrisvwebdev has joined the channel [03:07] chrisvwebdev has left the channel [03:08] MatthewS has joined the channel [03:08] llrcombs: so, TLS server and parsley, or should I just ask for a patch? [03:08] konobi: llrcombs: https://github.com/joyent/node/blob/master/lib/http.js#L86-93 [03:08] llrcombs: konobi: what about those lines? [03:09] scott_gonzalez has joined the channel [03:10] llrcombs: Aria says the HTTP parser is c now [03:10] mandric has joined the channel [03:10] konobi: that's where the http library is interacting with the c parser [03:11] towski has joined the channel [03:12] llrcombs: hmm [03:13] llrcombs: I don't see anything there that should be chucking out unknown methods... [03:13] konobi: llrcombs: i'd suggest asking for a patch that has something like '_orig_method' that is available when it's an "unknown_method_sym" so you can still access it [03:13] llrcombs: but I'm definitely getting connection events, but not request events [03:14] llrcombs: am I missing the bit where it chucks out nonstandard requests? [03:16] llrcombs: why the fuck did Apple decide to use HTTP for this!? [03:17] SteveDekorte has joined the channel [03:18] BillyBreen has joined the channel [03:18] seebees: no love? make test-all against master works for everyone? [03:18] SteveDekorte: are there docs on the node.js Date object? [03:18] onlytracks has joined the channel [03:19] konobi: SteveDekorte: MDN [03:19] SteveDekorte: I've poked around in here but can't find it: http://nodejs.org/docs/v0.4.1/api/ [03:20] SteveDekorte: konobi: ? [03:20] konobi: SteveDekorte: or you can read the ECMAScript 262 spec [03:20] seebees: SteveDekorte: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date [03:21] jimubao has joined the channel [03:21] konobi: llrcombs: running with debug() might help work out where it's falling out [03:21] SteveDekorte: > new Date().UTC() [03:21] SteveDekorte: TypeError: Object Wed Nov 23 2011 19:21:28 GMT-0800 (PST) has no method 'UTC' [03:21] konobi: SteveDekorte: it's a javascript object... [03:22] konobi: one that's in the base javascript langauge [03:22] towski has joined the channel [03:22] hoofed has joined the channel [03:22] SteveDekorte: yeah, I got that - I thought it might be missing something [03:23] SteveDekorte: it turns out it just has a badly design API :) [03:23] konobi: SteveDekorte: http://bit.ly/tmPZjK [03:23] towski has joined the channel [03:23] konobi: =0P [03:23] Aria: llrcombs: My guess? Apple went with HTTP to cross proxies. [03:24] llrcombs: hmm [03:24] llrcombs: makes sense, I guess [03:24] Aria: Yeah. [03:24] SteveDekorte: konobi: if that gives your life meaning, then you're welcome :) [03:24] yank has joined the channel [03:25] llrcombs: SteveDekorte: that one was actually lmgtfy-worthy [03:25] llrcombs: I see a lot of abuses of lmgtfy; that was not one of them [03:25] sstephenson_ has joined the channel [03:26] towski has joined the channel [03:26] Aria: One of these days I'm going to have to write a site that aggregates all kinds of JS docs. [03:26] konobi: llrcombs: =0) [03:26] Aria: And lets us annotate MDN docs with things that V8 doesn't do. [03:27] dingomanatee: jiggle? [03:27] torsd has joined the channel [03:27] towski has joined the channel [03:27] llrcombs: Aria: they show when things are non-standard [03:28] konobi: SteveDekorte: yes... but now you know how to google for useful docs on base javascript objects and their methods =0) [03:28] Aria: Yes. But the problem with standards is there's so many to choose from! [03:28] davidascher has joined the channel [03:28] llrcombs: trufax... [03:29] konobi: i keep forgetting to add MDN to my google searches for javascript stuff... and then i land in a world or horribleness [03:29] MUILTFN has joined the channel [03:29] llrcombs: W3Schools? [03:29] SteveDekorte: my apologies, I've just gotten so used to dealing with things node doesn't support that I've taken it as a working assumption... [03:30] llrcombs: roasted [03:31] konobi: that's why we have libraries =0) [03:31] konobi: s/libraries/npm/ [03:31] SteveDekorte: konobi: I wish I could find one that works... [03:31] mike5w3c has joined the channel [03:31] konobi: SteveDekorte: windows user? [03:32] SteveDekorte: konobi: OSX [03:32] konobi: huh... most of the time they work for me on OSX [03:32] SteveDekorte: admittedly, I've only tried to use 3 and did eventually get one working [03:33] llrcombs: what type of libs are you talking about? [03:33] SteveDekorte: here's one from today https://github.com/chrisa/node-rsa/issues/1 [03:34] seebees: SteveDekorte:can you build master on OSX right now? [03:34] SteveDekorte: sudo port install node installed 0.6.2 [03:35] konobi: SteveDekorte: and you have XCode installed? [03:35] SteveDekorte: konobi: yes [03:35] konobi: huh... there's a bunch or crypto stuff in core... is that not sufficient [03:36] nicholasf: noob js question [03:36] nicholasf: is there an API online anywhere for Ecmascript 5? [03:36] llrcombs: I think you need an argument for that, SteveDekorte [03:36] SteveDekorte: konobi: doesn't support RSA encryption or keygen, only signing [03:36] nicholasf: nm, found something similar [03:37] llrcombs: that, or you should be using createRsaKeypair instead of just RsaKeypair [03:37] konobi: SteveDekorte: 2 secs [03:37] dr0id has joined the channel [03:38] dr0id has joined the channel [03:38] SteveDekorte: also tried node-nacl, it doesn't specify the algorithms of formats for it's (very few) functions [03:39] llrcombs: node-TableSalt? [03:39] onlytracks has joined the channel [03:39] konobi: hhhmmm.. nope... just node-ssh-agent it seems... thought we had some other library for node-http-signature [03:41] SteveDekorte: then I tried a bunch of 'pure' JS RSA code from the web, so far everything I've found depends on browser specific BigInt support [03:41] adamstantonvan has joined the channel [03:41] SteveDekorte: and node doesn't appear to have that [03:42] Aria: What, like http://www-cs-students.stanford.edu/~tjw/jsbn/jsbn.js ? [03:43] jbraffoul has joined the channel [03:43] SteveDekorte: yeah [03:44] SteveDekorte: try to run it on node [03:45] konobi: http://search.npmjs.org/#/bigint [03:46] SteveDekorte: konobi: is it compatible? [03:47] llrcombs: http://search.npmjs.org/#/bignumber [03:47] llrcombs: BigInts AND RSA [03:47] llrcombs: also, have you tried my suggestion for node-rsa? [03:47] boltR has joined the channel [03:49] rachet has joined the channel [03:49] konobi: bignumber == node-rsa ? [03:49] llrcombs: no, it's jsbn for Node [03:49] rachet: have any of you ever had your session being re-created when use res.send in express? [03:51] konobi: llrcombs: yeah, but look at the repo [03:52] SteveDekorte: llrcombs: yeah TypeError: Object # has no method 'createRsaKeypair' [03:52] konobi: how about passing it some arguments? [03:52] SteveDekorte: llrcombs: there are lots of bigint implementations, the question is whether it's compatible [03:52] arpunk has joined the channel [03:52] dexter_e has joined the channel [03:52] konobi: https://github.com/chrisa/node-rsa/blob/master/test/test.js [03:52] rachet: whenever I try pulling stuff out of GridFS and sending it to the client, I end up starting a new session [03:53] konobi: of course it's also possible it's just not compatible with 0.6.0 [03:53] SteveDekorte: konobi: yes, the test code fails for me, I've emailed the author and he's looking at it [03:53] rachet: http://pastie.org/2912358 [03:53] mikeal has joined the channel [03:53] konobi: ah... kk [03:54] konobi: SteveDekorte: yeah... the 0.6 crossover will trip you up on modules for a while [03:54] rachet: that's what I'm using to get the file to the browser ^ [03:55] konobi: rachet: tried the coffeescript channel? [03:55] grampajoe has joined the channel [03:55] SteveDekorte: it would be great if node just added RSA encryption and key gen support to crypto [03:55] rachet: konobi: no, I figured this is more of an express.js/node.js question [03:56] konobi: rachet: looks like linenoise to me [03:56] konobi: =0P [03:56] rachet: konobi: I'll convert it to regular JS [03:56] lyte_ has joined the channel [03:56] konobi: SteveDekorte: tried patching? [03:57] rachet: http://pastie.org/2912369 there ya go [03:57] rachet: not many comments because I've been putzing with random stuff [03:58] SteveDekorte: konobi: I may, but I wanted to explore the options first - I'm not getting paid to do what I'm working on and my time is limited :/ [03:58] meso has joined the channel [03:58] jrogers has joined the channel [03:59] matomesc has joined the channel [03:59] EyePulp has joined the channel [03:59] konobi: SteveDekorte: *shrug* it seems like a worthy goal [04:01] SteveDekorte: konobi: a worthy goal would be adding coroutines to node :) [04:01] k1ttty has joined the channel [04:01] konobi: crypto.createCipher ? [04:01] konobi: SteveDekorte: troll!!! [04:02] konobi: =0P [04:02] sdwrage has joined the channel [04:03] SteveDekorte: konobi: no, I really want coroutines - I'm not mentioning it to create drama [04:05] konobi: *shrug* i have no idea why... i haven't seen a need yet [04:06] towski has joined the channel [04:06] thepatr1ck has joined the channel [04:06] SteveDekorte: konobi: then maybe you should remove all the "sync" versions of the fs methods? [04:06] ryan_stevens has joined the channel [04:06] SteveDekorte: konobi: actually, do you use any sync methods? [04:06] konobi: they're useful for while starting up the process (reading config file, etc) [04:07] SteveDekorte: konobi: it seems you have found a need then :) [04:07] konobi: but once i hit the event loop proper... i don't [04:08] towski has joined the channel [04:08] SteveDekorte: konobi: ok, now imagine all the methods in the system were async [04:08] konobi: the other place is stuff that doesn't need to be performant... like shell script equivalents [04:09] pquerna: Marak: http://rackspacesfolaunch.eventbrite.com/ [04:09] SteveDekorte: konobi: would programing be easer or harder? [04:09] konobi: but that's laziness [04:09] pquerna: Marak: you should come [04:09] pquerna: Marak: i don't want to be bored [04:09] Marak: pquerna: im there [04:09] pquerna: perfect. [04:09] Marak: pquerna: im delaying my NY trip just to make it [04:09] Marak: :-) [04:09] pquerna: we are using hook.io now to do devopsy stuff [04:09] Marak: pquerna: fuck [04:09] pquerna: though not for prod services yet [04:09] Marak: lol [04:09] Marak: ACTION gets back to push commits immediately [04:09] Marak: bbl [04:10] pquerna: but for like recv webhooks from github, fire buildbots, fire deployinator, irc bot, etc [04:10] Marak: pquerna: ohh man, thats perfect use case [04:10] Marak: pquerna: tell people to #nodejitsu for support, im in there helping with hook.io stuff all the time [04:10] skm has joined the channel [04:12] lyte has joined the channel [04:12] onlytracks has joined the channel [04:13] konobi: ACTION looks forward to having code coverage support in node-tap soon [04:13] SteveDekorte: looks like that bigint package isn't compatible with the browser BigInteger [04:14] Marak: pquerna: im in the middle of refactor Hook.spawn to use our haibu-carapace project. this means i take any node.js application and i can wrap it in a hook [04:14] thepatr1ck_ has joined the channel [04:14] SteveDekorte: by the way, with coroutines all methods could be async without changing how you code [04:15] Marak: ( without knowing anything about node.js app i am spawning ) [04:15] SteveDekorte: you just pause the calling coro until the callback comes in, then resume or reschedule it [04:15] Aria: Except code is no longer exactly linear. Whenever you yield, your state can change. [04:15] pquerna: Marak: hrm, its starting to sound insane in some ways :) [04:15] SteveDekorte: Aria: it's not a problem in practice, it's how I implemented Io [04:15] Marak: pquerna: going to need to rename some things i think [04:15] Marak: pquerna: but its working well [04:16] Marak: process.emit('email::send', {}); [04:16] Marak: etc [04:16] SteveDekorte: Aria: people tend to confuse coroutines (which are cooperative threads) with os threads (which are not cooperative) [04:16] pquerna: heh [04:16] SteveDekorte: the later are non-deterministic [04:16] Aria: Quite. [04:16] Aria: But I actually dislike both -- I dislike having to keep the other states in my head. [04:16] pquerna: Marak: btw are y'all using sendgrid or mailgun or something like that? any thoughts on em? [04:16] Marak: pquerna: sendgrid for application, mailchimp for blast [04:17] Marak: pquerna: sendgrid has *worked as advertised*. good enough for us so far, no issues [04:17] pquerna: trying to decide between sendgrid and mailgun I guess. [04:17] SteveDekorte: Aria: callbacks don't change that, you still have the callback scope state, and your other callbacks can unexpectedly change things in between [04:17] pquerna: heard nothing bad about either [04:17] Marak: ive never used the other service [04:17] pquerna: which always has me worried :) [04:18] seebees has left the channel [04:18] Aria: Yes. But it's at the end of the callback, rather than mid-routine. It's just a different mental model. [04:18] pquerna: Marak: are you using the SMTP api via node_mailer, or the https api directly? [04:19] SS-X has joined the channel [04:19] Marak: pquerna: https api [04:19] Marak: pquerna: fuck SMTP [04:19] SteveDekorte: Aria: but all of the state in the rest of your program may have changed in the meantime [04:19] Marak: pquerna: we use mikeal's request lib [04:19] pquerna: +1, fuck smtp. [04:19] Marak: pquerna: node_mailer is a 2009 hack that has lived too long [04:19] pquerna: okay :) [04:19] Aria: SteveDekorte: Exactly! [04:19] Aria: Question is where you want that to happen. [04:19] SteveDekorte: Aria: so you still have all the same conflicts as in a cooperative multitasking - it's really no different other than callbacks involve 10x the code [04:20] pquerna: use the Events API for recv bounceback notifications at all? [04:20] pquerna: (thats the main feature I want, to know if your email is bouncing) [04:20] ceej has joined the channel [04:20] Aria: SteveDekorte: Not in my experience. Just a different place to choose to break things up. [04:20] SteveDekorte: Aria: callbacks are just the modern goto - it's how people programed before they had call stacks [04:20] OneOfOne has joined the channel [04:21] Aria: Oh, I'm well aware. [04:21] Aria: So are exceptions and coroutines ;-) [04:21] thepatr1ck_ has joined the channel [04:22] Marak: pquerna: we dont care about that i think. we check out the bounces manually atm i think [04:22] Marak: pquerna: and mailchimp filters most of them for us [04:23] Marak: we have it linked up internally [04:23] Marak: i dont want to do bounce checking [04:23] chjj: i wonder if one day everyone in the node community will just accept callbacks [04:23] mikeal has joined the channel [04:23] chjj: and stop talking about alternatives [04:23] jbrokc_ has joined the channel [04:26] mehtryx has left the channel [04:26] _dc has joined the channel [04:28] martin_sunset_ has joined the channel [04:28] thepatr1ck has joined the channel [04:32] c4milo has joined the channel [04:33] brianseeders has joined the channel [04:33] jbrokc_ has joined the channel [04:36] raincole has joined the channel [04:39] bradleymeck has joined the channel [04:42] thepatr1ck has joined the channel [04:42] MatthewS has joined the channel [04:43] EyePulp has joined the channel [04:43] jbrokc_ has joined the channel [04:44] thoughtfusion has joined the channel [04:45] boltR has joined the channel [04:48] ovaillancourt: Anyone familiar with node's base64 encoding mechanisms? I have some strange stuff here, like line breaks appearing in my encoded buffers [04:48] dreamdust has joined the channel [04:53] thepatr1ck has joined the channel [04:54] jbrokc_ has joined the channel [04:58] joshsmith has joined the channel [05:00] lyte has joined the channel [05:00] lyte has joined the channel [05:04] jbrokc_ has joined the channel [05:04] ryan_stevens has left the channel [05:05] kevmo314 has joined the channel [05:06] kevmo314: Hi I have the following error that appears to occur sporadically and I can't figure out why since the stack trace only shows core libraries. Could someone take a look at it? http://pastebin.com/ZUNMrhAu [05:06] fmeyer has joined the channel [05:07] kevmo314: Is this just due to some client sending some weird packets that I should be handling or something? I'm running v0.6.1 with Express. [05:09] subbyyy has joined the channel [05:09] arlolra has joined the channel [05:09] rachet: konobi: I solved my issue. Rather than have my gridfs reader within my main express module, I gave it it's own server - one that doesn't use sessions [05:12] rio{ has joined the channel [05:14] jbrokc_ has joined the channel [05:19] munichlinux has joined the channel [05:22] torm3nt has joined the channel [05:22] onlytracks has joined the channel [05:24] jbrokc_ has joined the channel [05:25] felixge has joined the channel [05:25] felixge has joined the channel [05:25] postwait has joined the channel [05:29] skm has joined the channel [05:31] OmidRaha has joined the channel [05:40] confoocious has joined the channel [05:40] confoocious has joined the channel [05:41] svnlto has joined the channel [05:42] lemonad has joined the channel [05:42] lee_ has joined the channel [05:43] adamstantonvan has joined the channel [05:43] ryanfitz has joined the channel [05:43] Draco_ has joined the channel [05:43] TheCode has joined the channel [05:44] jbrokc_ has joined the channel [05:44] seebees has joined the channel [05:44] dnyy has joined the channel [05:44] cgray has joined the channel [05:45] seebees has left the channel [05:45] sh1mmer has joined the channel [05:50] torsd has joined the channel [05:53] xeodox: has anyone ever used async? [05:54] jbrokc_ has joined the channel [05:56] bogomips2_ has joined the channel [05:56] TN has joined the channel [05:56] fbartho has joined the channel [05:58] CiRlE has joined the channel [05:59] meso_ has joined the channel [06:01] davidascher has joined the channel [06:01] localhost has joined the channel [06:04] mikeric has joined the channel [06:06] joshsmith has joined the channel [06:11] wookiehangover has joined the channel [06:13] lemonad has joined the channel [06:14] dexter_e has joined the channel [06:14] arlolra has left the channel [06:15] felixge has joined the channel [06:15] felixge has joined the channel [06:16] bogomips2__ has joined the channel [06:16] madhums has joined the channel [06:16] thepatr1ck has joined the channel [06:20] fangel has joined the channel [06:22] rchavik has joined the channel [06:22] CarterL has joined the channel [06:23] xeodox: has anyone ever used "async" module? [06:23] arlolra has joined the channel [06:24] jbrokc_ has joined the channel [06:24] Aria: Caolan's? [06:24] Aria: I've not. [06:24] Aria: It's pretty simple though [06:26] CarterL has joined the channel [06:26] thepatr1ck: xeodox: quite a bit, it's simplified quite a few things I'm working on. [06:27] xeodox: @thepatr1ck what do you think is the most beneficial "control flow" ? [06:27] xeodox: i mean…which ones will I be using most? [06:28] Blorb has joined the channel [06:29] thepatr1ck: async.waterfall is good for the kind of thing where you just end up with further and further indented code and is the one I've found most useful, async.auto is good for cases where you have functions that can be called at the same time, but that have dependencies on each other. but really it depends on the problem you are trying to solve. [06:29] xeodox: i see. the indented problem is a huge problem! [06:29] xeodox: i have like 10 levels of indented code sometimes [06:30] chrislorenz has joined the channel [06:30] Aria: That might be a hint that you should rework the flow of data within your app. [06:31] thepatr1ck: the one it helped me the most with was a flow of handling a "create a sale, invoice it, charge the credit card, mark as paid, settle credit card" type thing - where every single step is async, and can (and will, because the universe is want to do so)) fail. [06:31] grampajoe has joined the channel [06:32] HT has joined the channel [06:32] dilvie has joined the channel [06:32] thepatr1ck: and yes, you could just do functions yourself for that, but async.waterfall makes it just that much easier to visually see what's going on. [06:33] stonebranch has joined the channel [06:34] jbrokc_ has joined the channel [06:34] secoif has joined the channel [06:35] xeodox: yea, thanks [06:36] xeodox: i'm definitely gonna use async.waterfall more [06:36] xeodox: have you looked at tame.js? [06:37] luke` has joined the channel [06:37] kitt has joined the channel [06:37] kitt has joined the channel [06:37] thepatr1ck: I have, and it definitely intrigues me - but we use coffeescript quite heavily here, which rules it out last I checked [06:38] Tim_Smart has joined the channel [06:39] Tim_Smart has joined the channel [06:40] felixge has joined the channel [06:41] tim_smart has joined the channel [06:45] zemanel has joined the channel [06:46] smgt has joined the channel [06:47] `10`: any thoughts on a lightweight messaging service for between node.js nodes? are folks using socket.io for this? is there something even lighter just built on TCP? [06:47] towski has joined the channel [06:48] stagas has joined the channel [06:49] thepatr1ck: async.waterfall + coffee ends up looking kind of like: http://pqg.be/2e0x28352T3m181D2u1h (function calls and arguments changed a little to protect the guilty, me) [06:55] tshpaper has joined the channel [06:56] yumike has joined the channel [06:57] chrisvwebdev has joined the channel [06:58] stagas has joined the channel [06:59] Margle has joined the channel [07:03] chrisvwebdev has left the channel [07:03] SamuraiJack has joined the channel [07:04] craigm has joined the channel [07:07] buttface has joined the channel [07:08] jrogers has joined the channel [07:10] kejun has joined the channel [07:13] brainproxy: happy Turkey Day to all the other U.S. node-folk :) [07:17] braoru has joined the channel [07:18] stagas has joined the channel [07:19] jxie has joined the channel [07:21] lightcap has joined the channel [07:21] arlolra has left the channel [07:23] k1ttty has joined the channel [07:24] codygray has joined the channel [07:27] p1d has joined the channel [07:27] ryan_stevens has joined the channel [07:29] merlin83 has joined the channel [07:29] monokrome has joined the channel [07:31] garrensmith has joined the channel [07:33] pyrony has joined the channel [07:33] verdoc has joined the channel [07:33] Epeli has joined the channel [07:34] shapeshed has joined the channel [07:35] robotmay has joined the channel [07:35] jbpros has joined the channel [07:36] OmidRaha has joined the channel [07:37] garrensmith: morning [07:38] dgathright has joined the channel [07:38] copongcopong has joined the channel [07:41] mechanicles has joined the channel [07:42] Xano has joined the channel [07:43] sfoster has joined the channel [07:43] svenlito has joined the channel [07:43] groom has joined the channel [07:44] jbrokc_ has joined the channel [07:44] MUILTFN has joined the channel [07:45] _dc has joined the channel [07:48] simenbrekken has joined the channel [07:48] Morkel has joined the channel [07:50] emattias has joined the channel [07:50] AD7six has joined the channel [07:53] fairwinds has joined the channel [07:53] ph^ has joined the channel [07:55] tomyan has joined the channel [07:55] chrislorenz has joined the channel [07:59] thalll has joined the channel [08:00] mikeal has joined the channel [08:00] indexzero has joined the channel [08:00] mikeal: process.on('SIGINT') doesn't appear to be working for me [08:00] mikeal: it keeps the process from getting the signal but console.log/error don't work [08:01] arlolra has joined the channel [08:03] arlolra: felixge: you around? [08:03] felixge: arlolra: depends, do you have coffee? [08:03] `3rdEden has joined the channel [08:03] arlolra: yes ... but it may be cold by the time it gets to you [08:04] hipsterslapfight has joined the channel [08:05] lemonad has joined the channel [08:05] arlolra: felixge: did you implement the graphite reporter? i've been playing around with something like this https://gist.github.com/e26451ad8d8d75a8c21b [08:05] blup has joined the channel [08:05] fangel has joined the channel [08:05] secoif has joined the channel [08:06] felixge: arlolra: that's not how stopwatches work [08:06] felixge: when you end() them, their timer is notified and updated [08:06] felixge: oh wait, you're not using a histogram are you? [08:06] felixge: you should [08:06] raphdg has joined the channel [08:07] felixge: doing response times as a histogram is a bad idea [08:07] felixge: *** meter [08:07] felixge: fuck, I told you I need coffee : ) [08:07] arlolra: i'm using the util [08:07] arlolra: https://github.com/felixge/node-felix-metrics/blob/master/lib/util/Stopwatch.js [08:07] arlolra: not the timer [08:07] arlolra: well, timer update [08:08] arlolra: cause i want to have one server and all my processes talking to it [08:08] beseku has joined the channel [08:08] beevits has joined the channel [08:08] arlolra: felixge: if you're too tired, that's ok [08:09] felixge: yeah I'm saying don't use the stopwatch by itself [08:09] arlolra: isn't it just a convenient date.now() [08:09] felixge: https://github.com/felixge/node-felix-metrics [08:09] felixge: see the section that says "Timers" [08:09] felixge: this is what you should do [08:10] felixge: to measure response time thingies [08:10] arlolra: right, but that wouldn't work across dnode ... latency [08:10] arlolra: so i'm just using the stopwatch myself, and then updating [08:10] felixge: ok [08:11] arlolra: does that make sense? [08:11] felixge: (just realizing you are using a timer for the response times, not a meter, sorry : ) [08:11] arlolra: the "advanced usage" here https://github.com/mikejihbe/metrics doesn't talk about timers [08:11] felixge: yeah [08:11] felixge: that could work [08:12] mikeal: i use metrics [08:12] mikeal: it's pretty nice [08:12] arlolra: with timers? [08:12] mikeal: yeah, you do them yourself [08:12] mikeal: let me find you a good example [08:12] arlolra: i think that's what i did [08:12] arlolra: mikeal: https://gist.github.com/e26451ad8d8d75a8c21b [08:13] felixge: mikeal: nice and wrong: https://github.com/mikejihbe/metrics/issues/9 :) [08:13] felixge: and has no tests [08:13] garrensmith has joined the channel [08:14] arlolra: felixge: how were you planning on handling the case where you have lots of processes using this library and aggregating the data? [08:14] felixge: arlolra: for now I'm using graphite [08:14] felixge: which is awesome and loves me [08:14] felixge: and lets me aggregate my individual process metrics as needed [08:15] mikeal: i wrap it a little [08:15] mikeal: https://github.com/mikeal/etherpad-lite/blob/metrics/node/metrics.js [08:15] mikeal: https://github.com/mikeal/etherpad-lite/blob/metrics/node/handler/PadMessageHandler.js#L274 [08:16] aesptux has joined the channel [08:16] mikeal: yeah, metrics has a built in way to aggregate but don't use it [08:16] mikeal: just put the data in to Redis per process [08:16] hackband has joined the channel [08:16] mikeal: and you can easily use the metrics library to merge it when you pull it out of Redis [08:17] kuebk has joined the channel [08:18] neshaug has joined the channel [08:18] felixge: mikeal: redis, really? [08:18] felixge: have you tried graphite? [08:18] felixge: it really really loves you [08:18] felixge: :) [08:18] felixge: or are you doing something else with that data? [08:19] mikeal: so, metrics already creates a definitive number, and i update it in Redis every second [08:19] mikeal: so it's one write per second per process [08:19] mikeal: and then i just write little pages that show the data [08:20] mikeal: i was doing graphs, using some javascript stuff, highcharts [08:20] mikeal: but i've stopped for realtime metrics [08:20] mikeal: they aren't useful [08:20] mikeal: i just want proper numbers [08:20] mikeal: displayed well [08:20] mikedeboer has joined the channel [08:21] mikeal: graphs are great for day over day usage, but i'm not doing much with that yet [08:21] arlolra: are you just doing a setTimeout to get the data in redis? [08:21] mikeal: setInterval :) [08:21] arlolra: right [08:21] arlolra: sorry [08:21] mikeal: actually, setTimeout loop would be safer [08:21] mikeal: but i'm not doing that [08:22] arlolra: safer in what sense? [08:22] arlolra: felixge: do you do the same for graphite? [08:22] felixge: arlolra: setInterval with 10 seconds [08:22] jtr__ has joined the channel [08:22] felixge: which is my storage granularity for graphite [08:23] arlolra: interesting. for some i thought that might not be wise [08:23] felixge: graphiteClient.write(metrics.toJSON()) [08:23] felixge: simple [08:23] arlolra: never trust my gut [08:23] felixge: I'm still considering to run an aggregation daemon per machine [08:23] npa has joined the channel [08:23] felixge: because for my business metrics it's kind of wasteful to store them per process [08:24] felixge: but oh well, for now that's ok [08:24] arlolra: the aggregation daemon is something graphite gives you for free? [08:25] arlolra: thanks for the help guys [08:25] arlolra: felixge: i owe you a coffee [08:26] felixge: arlolra: the answer is: yes and yes [08:27] ablomen has joined the channel [08:27] felixge: a) It allows you to aggregate data after the fact. That is, it makes it *really* easy to combine multiple graphs together as averages, sums, etc. [08:27] felixge: b) It also comes with a daemon that can do aggregation for you, and you can configure that aggregation with wildcards on your path [08:28] svenlito has joined the channel [08:29] xeodox: hi felixge, when do you think transactions will be available for your library? :) [08:29] arlolra: this will be helpful https://github.com/felixge/node-graphite [08:30] felixge: xeodox: I'm going to rework the re-connection stuff later today I think [08:30] felixge: which should solve most issues [08:30] arlolra: ACTION loves the node community [08:30] xeodox: oh wow…so we can expect transactions very soon!? [08:31] felixge: xeodox: yeah, probably [08:31] xeodox: awesome! [08:31] djcoin has joined the channel [08:33] mehlah has joined the channel [08:33] DennisRasmussen has joined the channel [08:34] shedinja has joined the channel [08:34] aaronmcadam has joined the channel [08:35] brewer_ has joined the channel [08:35] tomilaine: hi, n or nvm? opinions? [08:35] tomilaine: I'm currently trying out n [08:35] tomilaine: $ n --latest [08:35] tomilaine: 0.6.3 [08:35] tomilaine: which is weird... thought 0.6.2 is the latest :) [08:37] jryans has joined the channel [08:37] gut4 has joined the channel [08:37] casper__ has joined the channel [08:38] casper__: hello friends [08:38] casper__: i have had issue if some1 can help me on [08:38] casper__: installing node.js on windows (cygwin) [08:38] casper__: git clone git://github.com/joyent/node.git [08:38] casper__: after cloning and floowing the steps mentioned [08:38] casper__: i still face issue in make for some version.h [08:38] casper__: file issue [08:39] casper__: can any1 help me resolve on the same [08:39] arlolra: casper_: cywin is depricated. use the native build [08:39] arlolra: http://nodejs.org/#download [08:40] arlolra: windows installer [08:40] arlolra: tomilaine: i use nvm ... but i'm not very opinionated [08:40] stagas: anyone seen this? http://www.xmos.com/technology [08:41] irahgel has joined the channel [08:42] larro has joined the channel [08:42] arlolra has left the channel [08:42] grekko has joined the channel [08:42] Xano_ has joined the channel [08:42] rio{ has joined the channel [08:47] Morkel has joined the channel [08:47] adrake_ has joined the channel [08:48] casper__: well.. thanx for update arlolra [08:48] tomyan has joined the channel [08:49] casper__: but i have an issue.. of not having the facility of npm [08:49] casper__: hey [08:49] cosmincx has joined the channel [08:49] casper__: any1 alive [08:49] casper__: need help on node.js on windows [08:49] casper__: with npm [08:49] brewer_ has left the channel [08:49] casper__: without npm.. [08:49] casper__: how to work around with stuff [08:50] alol has joined the channel [08:50] ccare has joined the channel [08:50] [AD]Turbo has joined the channel [08:50] arcanis has joined the channel [08:51] svenlito has joined the channel [08:51] casper__: how 2 work out the features of npm .. or install a new module on node.js [08:51] casper__: need help [08:51] casper__: pls help [08:52] Tobbe: casper__: be more patient! [08:52] casper__: okies !! [08:53] madhums has joined the channel [08:55] casper__: Tobbe [08:55] casper__: u know how to work over the same? [08:56] Tobbe: have you installed the official windows build of node.js? [08:57] Tobbe: npm is supported on windows, so if you install the offical version of node.js you should be able to follow the instructions to install npm as well [08:57] mikedeboer has joined the channel [08:58] Tobbe: I run node on linux myself, so I haven't tried it on win [08:58] Druid_ has joined the channel [08:58] sreeix has joined the channel [08:58] goibhniu has joined the channel [08:59] bergie has joined the channel [09:00] casper__: well.. i directly downloaded the node.js from a code.google.com/nodejs_win ... [09:00] casper__: something like this .. where he packages up the modules too [09:00] casper__: and shares it as part of installation [09:01] casper__: but dont think npm was available as such [09:01] thalll has joined the channel [09:02] adambeynon has joined the channel [09:02] mpavel has joined the channel [09:03] hipsterslapfight has joined the channel [09:04] casper__: tobe [09:04] casper__: u there? [09:04] Tobbe: patience casper :) I went to get a cup of tea ;) [09:04] whitman has joined the channel [09:04] mpavel has left the channel [09:05] casper__: no probs [09:05] casper__: thanx 4 coming back [09:05] casper__: well i just downloaded a packaged installer .. no building or anything [09:05] casper__: done for node.js on my pc [09:05] Tobbe: As I said, I have not tried this myself [09:06] casper__: :( [09:06] Tobbe: good :) [09:06] Tobbe: http://nodejs.org/dist/v0.6.2/node-v0.6.2.msi [09:06] Tobbe: did you install that? [09:06] casper__: thought u would be some help on the same [09:06] casper__: http://nodejs-win.googlecode.com/files/node_setup_0.6.1.1.exe [09:06] casper__: i installed this 1 [09:07] dr0id has joined the channel [09:07] Tobbe: any reason you don't want to use the latest version? [09:07] daithi44 has joined the channel [09:08] stonebranch has joined the channel [09:08] casper__: well.. i didnt find that url.. when i checked out.. i got straight off node.exe [09:08] casper__: rather thn msi [09:08] casper__: just hope that this contains the npm [09:09] akamike has joined the channel [09:10] vvo has joined the channel [09:11] casper__: exactly as expected tobbe .. no npm or any stuff [09:12] Tobbe: casper__: no, after installing the .6.2 msi package [09:12] casper__: the1 i shared was atleast better with it [09:12] [AD]Turbo: hi there [09:12] Tobbe: you have to manually install npm [09:12] jbpros has joined the channel [09:12] robotmay has joined the channel [09:12] casper__: is there any ref url / page from where i can get that stuff [09:12] Tobbe: casper__: https://github.com/isaacs/npm/blob/master/README.md [09:12] Tobbe: I got to go now, bbl [09:12] casper__: thanx for help brotehr [09:13] nils_r has joined the channel [09:16] jbrokc_ has joined the channel [09:17] markwubben has joined the channel [09:19] dannyamey has joined the channel [09:19] uchuff has joined the channel [09:20] jacobolus has joined the channel [09:21] Esteb has joined the channel [09:22] npa has joined the channel [09:25] fly-away has joined the channel [09:25] DennisRasmussen has joined the channel [09:26] qFox has joined the channel [09:26] sfoster has joined the channel [09:29] JanLi has joined the channel [09:32] mike5w3c has joined the channel [09:33] npa has joined the channel [09:36] ppcano has joined the channel [09:37] kulor-uk has joined the channel [09:39] booyaa: Tobbe++ # patience of a sanit [09:39] booyaa: s/sanit/saint/ [09:44] mehlah has joined the channel [09:45] Benn has joined the channel [09:45] mehlah has joined the channel [09:46] adrianmg has joined the channel [09:46] adrianmg has left the channel [09:46] Neil_ has joined the channel [09:48] pgte has joined the channel [09:48] SoulRaven has joined the channel [09:48] beseku has joined the channel [09:49] jbpros has joined the channel [09:52] jbrokc_ has joined the channel [09:57] arcanis has joined the channel [09:59] ayaz has joined the channel [10:00] shedinja: is there a module that raverses given files/folders recursively and returns their Stat object if they exist and err if not? [10:01] secoif has joined the channel [10:02] markwubben has joined the channel [10:02] peterrs has joined the channel [10:02] jbpros has joined the channel [10:04] Benn has joined the channel [10:04] beseku has joined the channel [10:05] jldbasa has joined the channel [10:05] riven has joined the channel [10:07] jimmysparkle has joined the channel [10:08] shipit has joined the channel [10:08] shinuza has joined the channel [10:09] casper__ has left the channel [10:14] TomY has joined the channel [10:14] stephank has joined the channel [10:14] neoesque has joined the channel [10:16] neilk_ has joined the channel [10:17] garrensmith: shedinja: do you traverses? [10:17] garrensmith: *do you mean traverses? [10:17] shedinja: garrensmith: yes [10:18] garrensmith: shedinja: check the docs I'm sure there is a file lookup method in fs that you can use [10:19] shedinja: garrensmith: i think https://github.com/substack/node-findit will do [10:20] Blorb has joined the channel [10:22] jldbasa has joined the channel [10:27] hellp has joined the channel [10:27] elliottcable: Is there any way to get `node` to take code to run on stdin? [10:27] elliottcable: UNIX-approach fail /= [10:28] tvw has joined the channel [10:28] stagas has joined the channel [10:29] `10`: anybody had success with using RabbitMQ and node? my attempts to use the 'amqp' library only get as far as getting an immediate close of the connection [10:29] booyaa: elliottcable: what you mean piping to node? i.e. echo "console.log('bacon')" | node [10:29] elliottcable: yep, something like that [10:29] stride: elliottcable: in 0.4.x I've done this through a simple wrapper script that took stdin and executed it with the vm module. not sure if anything was built into the core in the meantime [10:29] elliottcable: stride: yeah, not exactly appropriate here [10:30] elliottcable: it's just trying to make a common idiom/command of mine look less silly [10:30] elliottcable: usually I would be doing `node =(cat file1.js file2.js)`, but that idiom is no longer working for me, as that leaves a file in /tmp where it can't access this project's `node_modules` directory [10:31] markwubben has joined the channel [10:31] elliottcable: now I’m stuck with `cat file1.js file2.js > file.cat.js && node file.cat.js && rm file.cat.js` [10:33] jomoho has joined the channel [10:36] elliottcable: might go patch it myself in a bit [10:36] elliottcable: still a bit burned by the last patch that got rejected [10:36] elliottcable: but this is simple enough that I doubt I’ll be annoyed if the work is wasted [10:36] elliottcable: just need something like a dash-parameter to `-e` [10:37] elliottcable: `node -e-` to read from stdin, or similar [10:40] Neil_ has joined the channel [10:40] josh-k has joined the channel [10:41] ayaz has joined the channel [10:42] xeodox has joined the channel [10:42] eldios has joined the channel [10:42] mange has joined the channel [10:43] ayaz has joined the channel [10:46] pickels_ has joined the channel [10:47] herbySk has joined the channel [10:48] k1ttty has joined the channel [10:49] __doc__ has joined the channel [10:58] lzskiss has joined the channel [10:58] lzskiss: yo [10:59] Morkel has joined the channel [10:59] Xano_ has joined the channel [11:01] Blorb has joined the channel [11:01] thalll has joined the channel [11:03] elliottcable: lzskiss: yoski broski [11:05] fangel has joined the channel [11:05] tiagobutzke has joined the channel [11:08] fly-away has joined the channel [11:09] josh-k has joined the channel [11:09] elliottcable has joined the channel [11:15] k1ttty has joined the channel [11:18] _unary has joined the channel [11:18] npa has joined the channel [11:19] gut4 has joined the channel [11:20] Swizec has joined the channel [11:22] jtr__ has joined the channel [11:23] woeye has joined the channel [11:26] idl3 has joined the channel [11:28] d0k has joined the channel [11:30] riven` has joined the channel [11:33] Glenjamin: elliottcable: what's the use-case for executing stdin? [11:33] Glenjamin: and you could get a wrapper script to read stdin and eval reasonably easily [11:33] Glenjamin: s/eval/VM/ [11:38] interrupt has joined the channel [11:40] elliottcable: Glenjamin: yes, I’m aware; someone already pointed that out [11:40] elliottcable: Glenjamin: wrapper script defeats the purpose [11:40] elliottcable: anyway, basically everything else, everywhere else, does it. [11:40] elliottcable: Node is so stream-friendly, that I find it ridiculously out-of-place that it completely ignores the standard UNIX style of doing things (via stdin/stdout and piping) [11:40] jsvana has joined the channel [11:41] Migaaresno has joined the channel [11:41] elliottcable: forgive me if I’m a bit unresponsive, trying to fix up my irssi after weeks away [11:41] Glenjamin: i see your point, i just can't think of a case where i'd want to execute some input like that [11:42] alessioalex has joined the channel [11:42] Glenjamin: in perl/python/php et al its not so bad because the program is procedural [11:42] elliottcable: JavaScript is extremely synchronous and procedural. [11:42] Glenjamin: but any IO you do means you get non linear program flow [11:42] Glenjamin: and writing to stdout is IO [11:42] elliottcable: Node provides *some* asynchronicity, but it’s not very pervasive. [11:42] elliottcable: not like it was originally intended to be. [11:42] elliottcable: no different than Ruby with EM, really. [11:43] elliottcable: but, anyway, it just seems like a needless and … well, odd … omission. [11:43] elliottcable: not much point in continuing to talk about it; it’ll be a fifteen minute patch, when I have fifteen minutes to spend on it. (= [11:43] Glenjamin: mm, i can't see any reason to keep it out [11:43] elliottcable: *nods* [11:44] N0va` has joined the channel [11:44] broofa has joined the channel [11:45] Blorb has joined the channel [11:47] satyr has joined the channel [11:48] ph^ has joined the channel [11:48] marcostoledo has joined the channel [11:50] jimmysparkle has joined the channel [11:50] davidbanham has joined the channel [11:51] purr has joined the channel [11:52] fdoo4un has joined the channel [11:56] coreb has joined the channel [12:01] Xano has joined the channel [12:04] thalll has joined the channel [12:04] piscisaureus__ has joined the channel [12:06] purr has joined the channel [12:09] purr has joined the channel [12:09] Squeese has joined the channel [12:09] bnoordhuis has joined the channel [12:10] shinuza has joined the channel [12:13] garrensm_ has joined the channel [12:15] ivanfi has joined the channel [12:16] marcin2 has joined the channel [12:16] tomb has joined the channel [12:16] marcin2 has left the channel [12:16] samBiotic has joined the channel [12:16] secoif has joined the channel [12:17] djcoin has joined the channel [12:18] felixge has joined the channel [12:18] felixge has joined the channel [12:18] tomb has joined the channel [12:19] flexd has joined the channel [12:20] okuryu has joined the channel [12:20] superjudge has joined the channel [12:21] flexd has joined the channel [12:21] Juan77 has joined the channel [12:22] bogomips2_ has joined the channel [12:23] ditesh|cassini has joined the channel [12:25] xy_ has joined the channel [12:26] bogomips2__ has joined the channel [12:31] marcostoledo has joined the channel [12:32] vvo has joined the channel [12:34] gtramontina has joined the channel [12:35] salva has joined the channel [12:35] munichlinux: does jade has a channel? [12:35] satyr has joined the channel [12:37] fff has joined the channel [12:37] raincole has joined the channel [12:40] tiagobutzke_ has joined the channel [12:40] fff has left the channel [12:41] mehtryx has joined the channel [12:42] gut4 has joined the channel [12:42] JKarsrud: munichlinux: I'd check in express [12:42] JKarsrud: is proxying the best way to run mulitple node applications on the same server without going to different ports? [12:43] dubenstein has joined the channel [12:43] fairwinds has joined the channel [12:43] stagas has joined the channel [12:43] sh1mmer has joined the channel [12:44] stephank has joined the channel [12:46] bnoordhuis: JKarsrud: what are you trying to do? [12:46] JKarsrud: something like http://serveraddress/appname [12:46] JKarsrud: or as a subdomain [12:46] JKarsrud: or whatever [12:47] bnoordhuis: JKarsrud: either proxy or use subdomains with different ip addresses [12:47] bnoordhuis: that proxy can be a node script of course [12:48] JKarsrud: so, yeah, proxying is the way to go, then? [12:50] madhums has joined the channel [12:54] emattias_ has joined the channel [12:55] liar has joined the channel [12:57] emattias has joined the channel [13:00] bergelmir has joined the channel [13:01] bergelmir has joined the channel [13:01] lzskiss has joined the channel [13:03] cjm has joined the channel [13:05] mattijs has joined the channel [13:05] atourino has joined the channel [13:07] Wizek has joined the channel [13:11] neurodrone has joined the channel [13:11] thalll has joined the channel [13:13] enmand has joined the channel [13:14] Fuu has joined the channel [13:15] jondot has joined the channel [13:15] blup has joined the channel [13:15] jondot: hi all. i'm looking for a Client for Cassandra for production use..anyone? [13:22] garrensmith has joined the channel [13:23] pgte has joined the channel [13:24] lyte_ has joined the channel [13:25] Morkel has joined the channel [13:26] Xano has joined the channel [13:26] gripir has joined the channel [13:27] gripir: hi! Anyone running node.js with express on windows? I installed node via chocolatey but I dont know where to put the express files :S [13:27] tanepiper: what the hell is chocolatey? [13:28] tanepiper: also, npm install express will install express in the directory you are located [13:28] tanepiper: so for example cd C:\foo, npm install express, will put it in C:\foo\node_modules\express [13:28] gripir: tanepiper: there is no npm for windows right? [13:28] tanepiper: yes, there is [13:28] gripir: oh. [13:29] tanepiper: it's in master in the node repo now, will be with the next release, but in the meantime you need to download it via git [13:29] gripir: good to know ... do you have an example or how to install it? [13:29] gripir: ah ok [13:29] tanepiper: then type: node cli.js install npm [13:29] tanepiper: (in the directory where you clone it to) [13:29] tanepiper: as long as you have node.exe in your path as well [13:30] mehtryx has joined the channel [13:30] Swizec has joined the channel [13:31] xetorthio has joined the channel [13:31] k1ttty has joined the channel [13:34] pyrony has joined the channel [13:37] riven has joined the channel [13:37] heavysixer has joined the channel [13:38] gripir: I´m sorry tanepiper .. but could u explain the steps to install node+npm a bit more in detail for me, please [13:40] TheJH has joined the channel [13:42] dubenstein has joined the channel [13:42] yebyen: any GNU/FreeBSD users here [13:42] yebyen: i'm talking about the Debian brand of FreeBSD [13:43] criswell has joined the channel [13:43] dubenstein: yebyen: Debian with freebsd kernel ? [13:43] cmr has joined the channel [13:43] yebyen: since node does not compile on that platform i was assuming no [13:43] yebyen: dubenstein: yeah [13:44] yebyen: it's great :) [13:44] yebyen: i suppose i should be ready to produce a pastebin... [13:44] yebyen: DEST_OS: generic [13:44] dubenstein: yebyen: i guess it's not production ready [13:44] yebyen: this is the part that worries me [13:45] yebyen: dubenstein: you would be surprised how many things just can't handle $(uname)=GNU/kFreeBSD [13:45] badlearner1 has joined the channel [13:45] yebyen: if you can send "FreeBSD" wherever they are not expecting that string [13:45] yebyen: almost everything will just go ahead and compile [13:45] dubenstein: yebyen: hehe)) [13:46] cmr: It seems there are bunches of irc libraries out there. Does anyone have a recommendation for any of them? Are there any to avoid? [13:46] dubenstein: yebyen: i'll try it now on my openstack cloud [13:46] badlearner1: Hello all. I have a problem - - if I have to choose between Python & Node.js which would you suggest I go with? Is Node.js good enough for building a social network entirely from scratch? [13:46] yebyen: so far at least golang [13:46] jondot: badlearner1: if you are a bad learner it doesn't matter what you pick :) [13:46] yebyen: golang really needs some patches though, they were nice enough to package that and produce deb-src for it [13:47] badlearner1: I try to be though... so tell me [13:47] yebyen: you're going to need a lot of callbacks [13:47] dubenstein: badlearner1: both are great [13:47] badlearner1: Is Node.js good enough for building a social network entirely from scratch? [13:47] yebyen: alright dubenstein workin on a pastebin for you [13:48] cmr: badlearner1: What is a social network? [13:48] badlearner1: consider Facebook [13:48] dubenstein: badlearner1: both are great for anything you can think of)) [13:48] cmr: badlearner1: Sure [13:48] badlearner1: great [13:49] hipsterslapfight: i'd also consider whether we need another social network :v [13:49] dubenstein: yebyen: pastebin?)) tell me how can i contribute [13:49] badlearner1: I am considering Node.js because basically (1) I would have to learn JavaScript anyway, and (2) It's faster than Python and Ruby [13:49] yebyen: dubenstein: find someone with a real FreeBSD workstation [13:49] yebyen: dubenstein: and see if their make.log from node looks like this [13:50] yebyen: ... *drumroll* [13:50] JanLi: badlearner1: maybe fork diaspora [13:50] badlearner1: lol, that was just an example. [13:50] Xano has joined the channel [13:50] badlearner1: Anyway, I want to build a photo sharing site, which would be, I hope, better than Flickr [13:50] cmr: Good luck. [13:51] badlearner1: Thank Q @cmr [13:51] yebyen: http://paste.debian.net/146885/ [13:51] qFox has joined the channel [13:51] JanLi: badlearner1: better than picasaweb, too? and twitpics, and ... [13:51] badlearner1: yeah, yeah! all of 'em :) Really! [13:52] yebyen: dubenstein: don't suppose you are a freebsd user? [13:52] cmr: badlearner1: what's your killer feature that the others lack? [13:53] dubenstein: yebyen: I was (long time ago), wrote billing for gnugatekeeper and netflow running on freebsd machine [13:54] badlearner1: @cmr: they all have features, but those features haven't been implemented at their best + My photosharing site would be a one-stop solution coz your photos will be backed up across multiple data centers in DIFFERENT Continent + We dont delete your photos without contacting you and giving you a 10-day timeframe to get back to us. [13:54] Morkel: Why does "sudo make install" not work with node.js 6.0.2? [13:54] cmr: badlearner1: cool. [13:55] jbpros has joined the channel [13:55] badlearner1: Basically, you only worry about sharing. I worry about usability. And most important of all? This idea sprung from my need for a proper place to store my photos without having to worry about losing them, getting them deleted etc [13:55] dubenstein: yebyen: does v8 compile ? [13:55] badlearner1: So, Node.js good for all this, right? [13:56] cmr: Sure [13:56] badlearner1: great to hear that. [13:56] margle has joined the channel [13:57] dubenstein: yebyen: 32 bit freebsd compiles node.js flawlessly [13:57] badlearner1: Thanks all and @cmr : Good day! :D [13:58] badlearner1 has left the channel [13:58] yebyen: dubenstein: http://paste.debian.net/146885/ [13:58] hipsterslapfight: balgarath: also already exists http://500px.com/ :v [13:59] yebyen: dubenstein: so i bet you it is a uname problem [13:59] yebyen: i'm going to move uname out of the way and replace it with echo FreeBSD [13:59] dubenstein: yebyen: or ia32 [13:59] copongcopong has joined the channel [13:59] dubenstein: yebyen: amd64 got some issues too [14:00] yebyen: this is a 32bit platform [14:00] jondot has left the channel [14:00] ovaillancourt has joined the channel [14:00] yebyen: WARNING: Platform not fully supported. Using src/platform_none.cc [14:00] yebyen: this is what i need to fix [14:00] lyte has joined the channel [14:00] yebyen: it should use platform_freebsd [14:01] yebyen: wow [14:01] yebyen: sudo really wants uname to be there [14:01] arpunk has joined the channel [14:01] gavin_huang has joined the channel [14:01] dubenstein: yebyen: yeah it's totally not production ready [14:02] yebyen: dubenstein: what is not... [14:02] yebyen: debian GNU/kFreeBSD? [14:02] Poetro has joined the channel [14:02] Poetro has joined the channel [14:02] gut4 has joined the channel [14:02] yebyen: it's built on a rock solid architecture like freebsd :D [14:02] dubenstein: yebyen: yep [14:02] yebyen: how can it be not ready [14:02] yebyen: just because sshd stops accepting connections once a month or week or every two months as a surprise if you don't watch it [14:03] yebyen: that can be resolved by restarting it periodically [14:03] yebyen: (sshd, not the kernel) [14:03] jbrokc_ has joined the channel [14:04] hipsterslapfight: i'll have to agree that something probably isn't production ready if you have to turn it off and on again every week :v [14:04] yebyen: i say the configure script is not ready :) [14:04] yebyen: hipsterslapfight: that's just sshd [14:04] dubenstein: yebyen: bsd kernel is more then stable compared to linux [14:04] yebyen: hipsterslapfight: it's been that way for almost 2 years [14:04] secretjudge has joined the channel [14:04] yebyen: hipsterslapfight: virtual or real hardware [14:04] hipsterslapfight: yebyen: i know, was just being facetious [14:04] yebyen: i haven't been able to find an explanation :) [14:04] akihito_s has joined the channel [14:04] dubenstein: yebyen: i'm talking about user space stuff [14:04] yebyen: i just write backdoors so that if sshd ever fails to respond it's not my only way back in [14:05] yebyen: and i can at least sshd restart [14:05] yebyen: dubenstein: the failure is to expect that all versions of uname on all FreeBSD platforms will produce the string FreeBSD [14:06] yebyen: many compilation scripts wind up looking in /usr/include/GNU/kFreeBSD.h [14:06] yebyen: because they just take that string and use it everywhere [14:07] dubenstein: yebyen: it's in «release in progress» stage [14:07] yebyen: ok bad example becaue /usr/include/FreeBSD.h does not exist [14:07] dubenstein: yebyen: i've ported most of my apps to http://smartos.org/ [14:07] luoluoluo has joined the channel [14:08] CarterL has joined the channel [14:08] yebyen: dubenstein: you know debian, they are not going to release a full version follow up to squeeze for another two years [14:08] secretjudge: hello. I have a question regarding the redis session store and its relationship to the redis client [14:08] arpunk: dubenstein: good OS choice [14:08] dubenstein: arpunk: zfs and dtrace makes the deal [14:08] secretjudge: anybody use it [14:09] bnoordhuis: yebyen: part-time freebsd user here [14:09] arpunk: dubenstein: check out crossbow and rbac and you wont use another OS [14:09] bnoordhuis: EAI_NONAME <- don't tell me that's deprecated on kfreebsd [14:09] yebyen: dubenstein: does it require KVM? my vm host won't support kvm yet [14:09] yebyen: they have old hardware [14:09] yebyen: bnoordhuis: they don't usually go around deprecating things... [14:10] yebyen: bnoordhuis: the thing to notice is in the top [14:10] bnoordhuis: well, freebsd did for EAI_NODATA [14:10] yebyen: bnoordhuis: do you see dest os generic? [14:10] yebyen: then you know better than me... [14:10] yebyen: i am just a user, i'm not even in any communities [14:11] dubenstein: arpunk: waithing for solaris and OpenStack integration [14:11] yebyen: dubenstein: i did not realize you could get your own smartos without paying joyent [14:12] bnoordhuis: dubenstein: re 'bsd kernel more stable than linux' - yes, because it only does 10% of what linux does :/ [14:12] yebyen: dubenstein: thanks for th elink [14:12] yebyen: bnoordhuis: busy loops? [14:12] dubenstein: yebyen: smartos is opensource http://smartos.org/ [14:12] bnoordhuis: don't get me wrong, i like the bsds - but that more stable myth should die [14:13] secoif has joined the channel [14:13] dubenstein: bnoordhuis: no myth there, i have a pentium 3 machine not restarted for ~ 1.5 years running freebsd 7 [14:13] yebyen: dubenstein: they are sure not pushy about it [14:13] jbrokc_ has joined the channel [14:14] yebyen: dubenstein: i already prepared to pay something like $1.25 or $1.75 for my first access to smartos [14:14] arpunk: bnoordhuis: no it shouldn't, Linux isn't as stable or rock solid as *BSD or Solaris. For instance, I've never had a panic while formating disks or when using drivers in Solaris but I do in Linux... all the time [14:14] bnoordhuis: dubenstein: yeah well... i had a linux server that ran for 4 years straight until the HD died [14:15] arpunk: in fact, I've suffered from kernel panics while using google chrome, which is a big wtf [14:15] arpunk: in linux [14:15] dubenstein: arpunk: agree [14:15] dubenstein: bnoordhuis: on a crappy hardware ? [14:16] bnoordhuis: dubenstein: define crappy [14:16] ablomen: 15:50:15 up 927 days, 5:04, 1 user, load average: 0.20, 0.07, 0.01 << cheap hp server with debian.. [14:16] ablomen: s/hp/dell [14:17] dubenstein: bnoordhuis: refurbished pentium 3 box whithout atx case for example [14:17] bnoordhuis: dubenstein: i'd call that a PC, not a server [14:18] rchavik has joined the channel [14:18] arpunk: we should define 'server' based on workload and load average, not just uptime [14:18] dubenstein: bnoordhuis: i've said «server» somewhere ? [14:19] svenlito has joined the channel [14:20] lyte has joined the channel [14:20] lyte has joined the channel [14:21] raincole has joined the channel [14:23] dubenstein: arpunk: dreaming of solaris and openstack integration [14:23] jbrokc_ has joined the channel [14:23] dubenstein: arpunk: feature is deferred at this moment https://blueprints.launchpad.net/nova/+spec/smartos-support [14:24] tanepiper: oh hey bnoordhuis dunno if you remember the other night helping me fix that bug, i realised the next day after I slept on it what the issue was :D It was late and I totally mis-understood the bug [14:24] pHcF has joined the channel [14:24] tanepiper: then i woke up and facepalmed :D [14:25] bnoordhuis: tanepiper: heh :) [14:27] broofa has joined the channel [14:28] cfq has joined the channel [14:29] torsd has joined the channel [14:31] jmar777 has joined the channel [14:32] secoif has joined the channel [14:32] tanepiper: bahh sometimes that annoys me about nodejs: http://toolbox.no.de/categories/color [14:32] tanepiper: do we really need 14 different colour modules for the command line? [14:32] arpunk: dubenstein: actually, the thing that is currently stopping me for enjoying openindiana is some networking conf: can't tag vlans created over a LACP aggregation [14:33] idl3 has joined the channel [14:33] dhasenan has joined the channel [14:33] arpunk: but it is 100% my fault, gotta dig deeper into dladm [14:33] jbrokc_ has joined the channel [14:33] jbrokc__ has joined the channel [14:34] AaronMT has joined the channel [14:34] mehtryx has left the channel [14:34] geoKe has joined the channel [14:34] dubenstein: arpunk: lacp implementations are generally full of issues [14:36] dubenstein: arpunk: solaris <-> solaris ? [14:36] Esteb has joined the channel [14:38] arpunk: dubenstein: im going out before the students strike gets me stuck in the street, ill show you my net schema when i come back, later! [14:40] dubenstein: arpunk: k)) [14:40] JasonJS has joined the channel [14:41] sriley has joined the channel [14:41] stephank has joined the channel [14:43] codygray has joined the channel [14:45] plutoniix has joined the channel [14:47] josh-k has joined the channel [14:48] johnnywengluu: is it possible to remove a folder with files using node.js? [14:48] johnnywengluu: last time I checked fs.rmdir(path, [callback]) didn't remove folders with files in it [14:49] mmalecki: johnnywengluu: rimraf module [14:49] mmalecki: !npm info rimraf [14:49] jhbot: rimraf by Isaac Z. Schlueter, version 1.0.8: A deep deletion module for node (like `rm -rf`) [14:50] francisl has joined the channel [14:51] johnnywengluu: mmalecki: thanks [14:51] colinclark has joined the channel [14:52] yumike has joined the channel [14:52] blup has joined the channel [14:53] dubenstein has joined the channel [14:53] chrisvwebdev has joined the channel [14:55] adamstantonvan has joined the channel [14:56] jbrokc: wow, mocha is really cool [14:57] kriszyp3 has joined the channel [14:59] torsd has joined the channel [15:02] chrisvwebdev has left the channel [15:02] eephillip has joined the channel [15:03] skm has joined the channel [15:04] jstash has joined the channel [15:05] scott_gonzalez has joined the channel [15:06] baudehlo has joined the channel [15:07] jerrysv has joined the channel [15:07] martin_sunset has joined the channel [15:08] Draco_ has joined the channel [15:09] AD7six_ has joined the channel [15:09] amigojapan has joined the channel [15:09] AD7six has joined the channel [15:10] gripir has left the channel [15:11] chrisvwebdev1 has joined the channel [15:15] salva1 has joined the channel [15:15] vvo has joined the channel [15:20] jbpros has joined the channel [15:21] plutoniiix has joined the channel [15:22] rauchg has joined the channel [15:23] mike5w3c_ has joined the channel [15:24] cronopio has joined the channel [15:26] chrisvwebdev1 has left the channel [15:26] tomlion has joined the channel [15:28] jbpros has joined the channel [15:29] pickels_ has joined the channel [15:30] davidascher has joined the channel [15:31] tjholowaychuk has joined the channel [15:31] joshsmith has joined the channel [15:32] jondot has joined the channel [15:32] jondot: any response.redirect using connect? [15:33] Wizek has joined the channel [15:33] stantona has joined the channel [15:33] tjholowaychuk: jondot ? [15:33] tjholowaychuk: that's an express method [15:33] Kunda has joined the channel [15:33] jondot: im trying to figure out if i have to compose a location header or there is a built in redirect() method in either node or connect [15:33] ps_jinx has joined the channel [15:34] jondot: ah, ok, thanks. [15:34] fmeyer has joined the channel [15:34] ps_jinx: whye do i get - `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [15:34] ps_jinx: /s/whye/why/ [15:37] elliotdenk has joined the channel [15:37] indutny has joined the channel [15:38] coreb has left the channel [15:38] dnyy has joined the channel [15:39] bnoordhuis: ps_jinx: `git checkout v0.6.2` - we're switching build systems in the master branch [15:41] ps_jinx: bnoordhuis: thanks :) [15:44] ovaillancourt: Looking for someone who would be well versed into base64 encoding and smtp transfers :P anyone? [15:44] baudehlo: ACTION waves [15:44] baudehlo: ACTION knows a little bit about SMTP (where a little bit = a lot0 [15:45] Aria has joined the channel [15:45] ovaillancourt: baudehlo: alrighty, not sure it's precisely related to smtp but you might have seen that situation before [15:46] baudehlo: maybe... [15:46] ovaillancourt: baudehlo: so basically, I'm trying to send a multipart email, w/ base64 encoding for the html part (encoded through Buffer.toString('base64')). What happens is that on some mail servers, the email I receive has newline characters in the base64 chunk [15:46] ovaillancourt: which basically breaks the mail rendering in the client [15:47] hotch has joined the channel [15:47] ovaillancourt: on other servers, I receive it correctly... (for example, I have the newlines on webfaction, but no newline on gmail) [15:47] sreeix has joined the channel [15:47] baudehlo: sounds…. odd. [15:47] ovaillancourt: ever heard of something that might explain that? [15:47] ovaillancourt: yeah :/ [15:48] baudehlo: encoding maybe? [15:48] ovaillancourt: yeah, tried with utf8 and it's working fine... but I'd rather not use utf8 to send mails around... [15:49] hotch: anyone using #travis here? [15:49] ovaillancourt: and the actual encoding that comes our from node appears to be correct, it seems like the problem appears when the whole things goes through the socket or something [15:49] baudehlo: no I mean when you set the content type, are you giving the right charset value? [15:50] ovaillancourt: oh, hang on :P [15:50] baudehlo: and what are you using to send email? [15:50] ovaillancourt: emailjs [15:50] baudehlo: k [15:50] baudehlo: doesn't emailjs do the encoding for you? [15:50] ovaillancourt: yeah the charset is ok [15:50] baudehlo: Maybe it's double-encoding it. [15:50] ovaillancourt: yeah it does :P I've basically been digging in the code for 2 days now trying to fix that :P [15:50] baudehlo: lol [15:51] ovaillancourt: I know I'm not encoding it "myself" actually, emailjs does it [15:51] rskuja has joined the channel [15:51] ovaillancourt: https://github.com/eleith/emailjs/issues/14 [15:52] ovaillancourt: if you're curious, there's an example of a "correct" mail as received by gmail, and a "broken" one as received by webfaction [15:52] ovaillancourt: they are the exact same mail, sent at the same time [15:52] baudehlo: alternatively I'd take the source of the email (from the destination server), copy the base64 part out, and paste it into something that does the decoding (mimencode or base64 on the mac) and pipe that through hexdump -C [15:53] baudehlo: wtf why are the lines that long?? [15:53] ovaillancourt: mostly my "test" mail [15:53] baudehlo: Oh. So I understand the problem now. [15:53] ovaillancourt: oh! [15:54] idl3 has joined the channel [15:54] baudehlo: clearly converting to base64 isn't splitting into reasonable line lengths. [15:54] baudehlo: and yes, some receiving servers will split for you, sometimes fucking things up. [15:54] ovaillancourt: ok, the lines must have certain lengths? [15:54] ovaillancourt: ok [15:54] rskuja: Hello everyone,im trying to figure out what might be causing slow new fail serving in my node-express setup. I have picture uploader set up, it loads image to server fast, but when trying to reach the image through broswer it shows up only after like 2-3mins. I wonder if its some sort of catching or whatever else might be involved in this. [15:55] kuebk has left the channel [15:55] ovaillancourt: any workaround/recommendation on what I could do about that? [15:55] rskuja: i also added a bit detailed question to stackoverflow http://stackoverflow.com/questions/8255807/valums-file-uploader-on-nodejs-multiple-file-upload [15:56] Aria: Base64 should support line breaks in it. . . Weird. It's normally at 64 or 78 characters. [15:57] ovaillancourt: ok, there's a fix to emailjs that was submitted recently for email attachments that actually did something like this I think [15:57] ovaillancourt: not sure though, https://github.com/eleith/emailjs/pull/6 [15:58] ovaillancourt: would it be possible that they needed to apply the fix to html part of messages too, given they're also base64 encoded, but they forgot? [15:58] andrewfff has joined the channel [15:59] jtsnow has joined the channel [15:59] baudehlo: ovaillancourt: yep, that's the problem right there. [16:00] ovaillancourt: booya [16:00] ovaillancourt: I'll fix this asap [16:00] ovaillancourt: Aria, baudehlo, I owe you guys a beer :P [16:01] jarek has joined the channel [16:01] jarek has joined the channel [16:01] baudehlo: most node stuff is still pretty crappy at email, sadly. Except Haraka of course :) [16:02] ovaillancourt: Haraka is good? [16:02] ovaillancourt: seemed a bit "big" for my needs so I went at emailjs [16:02] seebees has joined the channel [16:02] ovaillancourt: rofl [16:02] _ding has joined the channel [16:02] ovaillancourt: ok, now I see why your name tells me something [16:02] ovaillancourt: that sir was a shameless plug :P [16:03] rurufufuss has joined the channel [16:03] ovaillancourt: but seriously, I'll have to scale this project at some point, would you recommend haraka over non-node but older mail systems? [16:04] ovaillancourt: lots of my tech choices right now is a choice "keeping everything with node" vs "using an equivalent, more mature technology" [16:05] dannyamey has joined the channel [16:06] cgray has joined the channel [16:06] baudehlo: it depends what you're doing. [16:06] txxt has joined the channel [16:06] baudehlo: for inbound mail it scales better than any other free alternative. [16:06] baudehlo: it hasn't been tested very thoroughly for outbound mail. [16:07] ovaillancourt: ok [16:07] francisl: Hi, can we use native webworker or we have to use the external library? [16:07] ovaillancourt: baudehlo: I think I'll take a closer look at the lib when I have a bit more spare time [16:07] baudehlo: ovaillancourt: the outbound seems to work well, it's just one of those things that I can't benchmark - because I'd have to basically become a spammer to test it. [16:08] ovaillancourt: oh, yeah I see what you mean [16:08] baudehlo: I've tested it delivering to a local "sink" though. [16:08] baudehlo: but that's nothing like a real-world test. [16:08] ovaillancourt: yeah [16:08] ovaillancourt: so basically it's a full blown mail server with user accounts and everything? [16:09] vvo has joined the channel [16:09] baudehlo: no user accounts. [16:09] baudehlo: I keep thinking of adding an IMAP server to it, but that's a huge undertaking. [16:10] baudehlo: and people are so fussy about how/where their email gets stored. [16:10] ovaillancourt: yeah I read you on that [16:11] baudehlo: so for now the best thing is to just be a proxy to something else. [16:11] ovaillancourt: yeah, I can clearly see it be useful for anything related to mail automation though [16:12] rskuja: im using smtp emailjs for outgoing and python imap for incoming.. kinda strange setup.. but node imap is bit hard to get working like i needed [16:13] raphdg has joined the channel [16:14] baudehlo: rskuja: Haraka's kind of on a different level though. It would be what you deliver mail to via emailjs. [16:15] AAA_awright_0 has joined the channel [16:15] creationix has joined the channel [16:17] Tobsn has joined the channel [16:17] ovaillancourt: (I love how github write "hardcore forking action" when you fork something. always makes me laugh) [16:17] jondot: having problems with everyauth, req.user never get set - sounds familiar to anyone? [16:18] rskuja: anyone can point me to any direction regarding this - http://stackoverflow.com/questions/8255807/valums-file-uploader-on-nodejs-multiple-file-upload ? cant even figure out where to look for problem. [16:18] rskuja: jondor u store ur session correctly? [16:18] louissmit has joined the channel [16:19] jondot: rskuja: not sure [16:20] rskuja: do you use any db for session store or just plain express? [16:20] ovaillancourt: rskuja: have you tried checking in your temp folder to see if the image is there and well formed? [16:21] ovaillancourt: (in your browser's temp) [16:21] ovaillancourt: (like before that 3-5 minutes delay) [16:22] jondot: rskuja: no, i dont use any DB. [16:22] ovaillancourt: also, what browser are you using? [16:22] rskuja: yes its well formed in my needed directory [16:22] ovaillancourt: ok [16:22] rskuja: i can open it on my server and shows up just fine [16:22] rskuja: ah [16:23] rskuja: in browser tmp no its not correct before 3-5min [16:23] ovaillancourt: hm [16:23] ovaillancourt: weird [16:23] Wizek has joined the channel [16:23] Renegade001 has joined the channel [16:23] jondot: rskuja: this is what i did: https://gist.github.com/1391722 [16:24] creationix has left the channel [16:24] deedubs: jondot: are you mounting your everyauth before the rest of your routes that depend on req.user? [16:24] jondot: yep [16:24] jondot: (see the gist for the sample i'm trying out) [16:26] ovaillancourt: rskuja: have you tried adding the dom element and then, on another line, set the src attr of your dom to the image path see if it makes any difference? Some browsers have an easier time updating the dom by doing that... [16:26] adrianmg has joined the channel [16:26] ovaillancourt: (what's your browser btw?) [16:26] macman_ has joined the channel [16:27] chrisvwebdev has joined the channel [16:27] adrianmg has left the channel [16:27] rskuja: i have tryed to open just the path of image like myhost/images/newimage.png and it doesnt open... it shows blank screen and appears after 2-3min like it was loading forever [16:27] mange has joined the channel [16:27] ovaillancourt: oh [16:27] ovaillancourt: hm [16:27] rskuja: also what u said [16:27] ovaillancourt: ok [16:27] macman_: hello all. I'm newbie with github and I need help with task: cxx platform_darwin.cc -> platform_darwin_4.o error [16:27] rskuja: i can give u link to test but its kinda in my native language not english [16:28] ovaillancourt: rskuja: and is it me or you never close your filestream handle after upload? [16:28] rskuja: thats possible :D [16:28] chrisvwebdev has left the channel [16:28] shinuza has joined the channel [16:28] rskuja: how do i do that? [16:28] ovaillancourt: filestream.close [16:29] rskuja: thx will try :D [16:29] ovaillancourt: call closesync [16:29] ovaillancourt: just for your tests [16:29] ovaillancourt: http://nodejs.org/docs/v0.6.2/api/fs.html#fs.closeSync [16:30] ovaillancourt: and try calling it inside your "end" event [16:30] akihito_s has joined the channel [16:31] jimt_ has joined the channel [16:31] joshsmith has joined the channel [16:31] Xano has joined the channel [16:32] stantona has joined the channel [16:32] zemanel has joined the channel [16:33] stantona has joined the channel [16:33] darrylhebbes has joined the channel [16:34] Wizek has joined the channel [16:34] elliotdenk has left the channel [16:35] AAA_awright_0 has joined the channel [16:35] airhorns has joined the channel [16:36] herbySk has joined the channel [16:36] AvianFlu has joined the channel [16:36] thalll has joined the channel [16:36] simenbrekken has joined the channel [16:38] thalll has joined the channel [16:39] colinclark has joined the channel [16:40] colinclark_ has joined the channel [16:41] thalll_ has joined the channel [16:41] broofa has joined the channel [16:41] ryan_stevens has joined the channel [16:42] MatthewS has joined the channel [16:43] subbyyy has joined the channel [16:44] appinsanity-mike has joined the channel [16:46] creationix has joined the channel [16:46] lzskiss has joined the channel [16:46] raincole has joined the channel [16:47] rskuja: ovaillancourt: since im using WriteStream i tryed calling .end() and even .destroy() - which dont allow any more data to be sent ( http://nodejs.org/docs/v0.6.2/api/streams.html#writable_Stream ) but still the same problem [16:48] SamuraiJack has joined the channel [16:48] rskuja: i think its more about reading data than storing it [16:49] rskuja: or not ... well i dont know [16:49] rskuja: since the first pic shows up really fast [16:49] jarek__ has joined the channel [16:50] ovaillancourt: yeah sorry about that, I misread your example :/ [16:50] rskuja: maybe i need to close req.pipe somehow [16:50] ovaillancourt: no idea :/ it looks like if a buffer didn't flush or something like that [16:51] ovaillancourt: but I'm not very familiar with the intricacies of how this all works with node [16:51] kkszysiu has joined the channel [16:51] CiRlE has joined the channel [16:52] TheJH has joined the channel [16:53] kriszyp3 has joined the channel [16:55] jomoho has joined the channel [16:55] slajax has joined the channel [16:56] darrylhebbes has joined the channel [16:57] tjholowaychuk has joined the channel [16:59] kkszysiu_ has joined the channel [17:02] blup has joined the channel [17:02] JanLi has joined the channel [17:02] SamuraiJack_ has joined the channel [17:03] rskuja: maybe anyone knows some alternatives to req.pipe(filestream); or some good way to store incoming ajax data stream [17:03] igl1 has joined the channel [17:03] tomlion has joined the channel [17:04] llrcombs: rskuja: do you need to store it permanently in a file? [17:05] rskuja: yes [17:05] ryan_stevens has left the channel [17:06] rskuja: but i dont want to do it in post.. i want this ajax data flying in one after another [17:06] ezl has joined the channel [17:07] jtsnow has joined the channel [17:08] rskuja: since many have gone and came ill repost link to StackOverflow question: http://stackoverflow.com/questions/8255807/valums-file-uploader-on-nodejs-multiple-file-upload any hints are very welcomed [17:08] ph^ has joined the channel [17:08] fmeyer has joined the channel [17:10] Aria: rskuja: What's the browser doing at the time? [17:10] rskuja: chrome [17:10] Aria: (check the network part of your debugger) [17:11] thalll has joined the channel [17:12] rskuja: i have GET Status: (pending) Type: undefined [17:12] diogogmt has joined the channel [17:12] Aria: Alright. So it's hanging and it points at a server problem. [17:12] rskuja: but at server its uploaded and sitting there just fine :/ [17:13] Aria: Interesting. I'm not sure how that would behave, personally. [17:13] rskuja: maybe its waiting for more data which is not coming form req [17:13] Aria: Yeah, that's kinda what it looks like. [17:13] rskuja: from* [17:13] Aria: Which is odd. [17:13] Aria: I assume req and res are a node http thing? [17:13] fff has joined the channel [17:13] fff: hi [17:13] rskuja: ye [17:14] fff: hi [17:14] fff: where r u from? [17:14] secoif: looks like the npm server is having some issues? "npm ERR! registry error parsing json" [17:15] Illusioneer has joined the channel [17:15] lemonad has joined the channel [17:15] rskuja: so how can i terminate that connection ? [17:15] rskuja: since i know the file is uploaded just fine [17:16] fson_ has joined the channel [17:17] fff has left the channel [17:18] ryanfitz has joined the channel [17:21] jonasnockert has joined the channel [17:21] secoif: rskuja you jsut res.send a status code [17:22] AvianFlu: rskuja: res.end(whatever) will do it too [17:22] bearnard has joined the channel [17:23] rskuja: ok thx will try [17:23] AvianFlu: you can get away with only calling res.end, if you want - no header control if you do that though [17:23] secoif: rskuja basically, your client is waiting for some response (any response). send back a 200 response if it's ok, a 4xx response if there's a problem. [17:25] aliem has joined the channel [17:27] rskuja: well im sending res.writeHead(200, { 'Content-Type':'text/plain' , 'Content-Length':body.length }); then res.end(body) [17:27] rskuja: anything wrong there? [17:27] rskuja: cos its not working [17:28] rskuja: well works for first upload, not for second whos coming after first [17:29] jonasnockert has joined the channel [17:30] creationix has joined the channel [17:31] xeodox has joined the channel [17:31] brianseeders has joined the channel [17:31] jocafa has joined the channel [17:32] fly-away has joined the channel [17:32] jbrokc has joined the channel [17:33] AvianFlu: rskuja, could you gist that part of the code [17:33] AvianFlu: ? [17:35] rskuja: http://stackoverflow.com/questions/8255807/valums-file-uploader-on-nodejs-multiple-file-upload code is pasted here. which part u need more? [17:38] pixel13 has joined the channel [17:38] davidascher has joined the channel [17:38] pig_ has joined the channel [17:39] aliem has joined the channel [17:39] grampajoe has joined the channel [17:41] kitt has joined the channel [17:41] lemonad has joined the channel [17:41] sfoster has joined the channel [17:42] irahgel has left the channel [17:43] stantona has joined the channel [17:43] jbrokc_ has joined the channel [17:43] TheFuzzb_ has joined the channel [17:43] ecin has joined the channel [17:44] vkandy: hey anyone using nssocket? would you recommend or are there other wrappers on the net module? [17:44] AvianFlu: rskuja, I hadn't looked at the SO question, that's all I need [17:45] ecin_ has joined the channel [17:45] felixge has joined the channel [17:45] AvianFlu: rskuja, you want `res.pipe(file)`, not `req.pipe(file)` [17:45] AvianFlu: oh wait, nm [17:45] AvianFlu: I had it backwards, one sec [17:47] rskuja: im sending filestream from web, recieve with req.pipe, then on end, get res.end(), <- send ok fast and clear, and then i have my own simple get for file but its not ready yet and displays pendding. i can make screen of chrome network [17:48] pixel13 has left the channel [17:49] AvianFlu: rskuja, what happens if you take out the writeHead()? [17:49] AvianFlu: also, if you could show me more of the code surrounding the bit on SO, it would be helpful [17:49] AvianFlu: (I can't see the surrounding scope in that code) [17:50] indutny has joined the channel [17:50] indutny has joined the channel [17:50] MatthewS has joined the channel [17:51] Milossh has joined the channel [17:51] rskuja: http://img16.imageshack.us/img16/2254/slowmo.png heres pic of network [17:51] Milossh: hello. what's the most common way for localizing node.js based website/ [17:51] Milossh: ? [17:52] Milossh: possibly via gettext [17:53] Draco_ has joined the channel [17:53] rskuja: AvianFlu, about code, there is not any logic more.. just defines randomname with correct extension and calls function uploader(req,res) [17:54] rskuja: its quite plain simple yet problematic [17:55] AvianFlu: rskuja, so that code on SO is just inside a function that you call with (req, res)? [17:55] robotmay has joined the channel [17:56] rskuja: yep [17:56] rskuja: thats it [17:56] rskuja: nothing more [17:56] AvianFlu: okay, cool [17:57] rskuja: maybe the problem is on valums file-uploader side https://github.com/valums/file-uploader [17:57] AvianFlu: it's entirely possible. is that `fileStream` defined somewhere else? there's no `var` in front of it on your SO post [17:57] AvianFlu: which would make it a leaked global, which would mean that each upload would clobber the same file, maybe [17:57] rskuja: nop [17:58] AvianFlu: try adding a var in front of it, it might solve your problem [17:58] rskuja: ok [17:59] rskuja: added var, yet same problem. [17:59] AvianFlu: you should try it with node-formidable [18:00] AvianFlu: I'm thinking there might be more to handling multipart data than you're doing [18:00] AvianFlu: but I'm not very familiar with it offhand [18:00] ryanfitz has joined the channel [18:01] badlearner1 has joined the channel [18:01] blup has joined the channel [18:01] rskuja: ok i will look into it.. but its not just for simple submited post data? also for streams right? [18:02] Draco_ has joined the channel [18:03] hipsterslapfight has joined the channel [18:03] badlearner1: Hello, I am new to programming and I am trying to decide between Node.js and Python. While I am strongly inclined towards Node.js for its speed and the fact that I can write both the server and client-side code in one language -- JS, I am tensed about the lack of any standard libraries which is a + when it comes to Python. So if I find a library missing, how can I write it myself? What programming language should I know to write a library? Please ad [18:03] mdel has joined the channel [18:03] nicholasf has joined the channel [18:04] patcito has joined the channel [18:04] tjholowaychuk: js? [18:04] badlearner1: JavaScript [18:04] tjholowaychuk: wouldn't you write it in js [18:04] tjholowaychuk: if you wanted a lib for node [18:04] tjholowaychuk: :p [18:04] tjholowaychuk: we have a pretty good selection though I think you'll be surprised [18:04] badlearner1: Okay, so the libraries are also written in JS [18:05] jstash: badlearner1: JavaScript or C++ if you need to write one [18:05] badlearner1: okay [18:05] Juan77 has joined the channel [18:05] badlearner1: and like I said I am an absolute starter at programming, and JavaScript would be the first I learn. So, would it be very difficult to write a library as a beginner? [18:06] jonasnockert has joined the channel [18:06] badlearner1: Will I be needing knowledge of more than just JS? [18:06] rskuja: if for web programming then nodejs and javascript is good choice, even considering the same language on client/server which will be good for new programmer. If instead something not web related then i would prefer python [18:06] Lingerance: ^ [18:06] badlearner1: It's entirely for the web [18:06] badlearner1: A photo-sharing site like Flickr [18:06] badlearner1: (but better) [18:06] tjholowaychuk: you'll learn interesting things from pretty much every language [18:07] tjholowaychuk: doesn't hurt to start with js though [18:07] rskuja: sure go nodejs [18:07] badlearner1: like I said I am an absolute starter at programming, and JavaScript would be the first I learn. So, would it be very difficult to write a library as a beginner? [18:07] arcanis has joined the channel [18:07] `3rdEden has joined the channel [18:07] jstash: not very difficult. [18:08] badlearner1: Just asking, how many days would it take to write a custom library from scratch? [18:08] rskuja: most of libraries/modules are already there even for flickr and stuff :) [18:08] deedubs: what does this custom library do? [18:08] jstash: tons of examples for you to follow, plus docs http://nodejs.org/docs/v0.6.2/api/modules.html [18:08] badlearner1: (anything, its just an instance) [18:08] jstash: badlearner1: how long depends on if your nickname is true ;) [18:08] rskuja: http://toolbox.no.de/ <- also good link [18:09] jstash: ah, right, forgot about toolbox [18:09] badlearner1: @jstash - - consider yourself then [18:09] deedubs: badlearner1: It'll take about 200 days [18:09] badlearner1: plz [18:09] badlearner1: really? [18:09] jstash: badlearner1: an hour for the basic stuff, then days-to-months depending on how complex the subject matter is [18:09] badlearner1: okay [18:10] badlearner1: but the most basic / important stuff are already available, correct? [18:10] deedubs: well in my instance I'm thinking of a library that can replace a cars MCU [18:10] jstash: badlearner1: right, basic stuff is just following the documentation on how to make a node module [18:10] lee_ has joined the channel [18:10] jstash: quite easy. [18:10] badlearner1: okay. That feels better. Thanks @jstash. Good day! :D [18:11] jstash: most of that hour is picking a good name for the module, likely. [18:11] jstash: j/k [18:11] badlearner1: :) [18:11] AvianFlu: jstash: that's really not a joke a lot of the time, I hate naming stuff [18:11] jstash: it's a joke in the sense of how long i take to do it [18:12] tshpaper has joined the channel [18:12] tjholowaychuk: beverages are a great source for names haha [18:12] tjholowaychuk: food and beverages [18:12] badlearner1 has left the channel [18:13] jstash: lol, mr expresso [18:13] deedubs: and minerals [18:13] deedubs: jade [18:13] jstash: ACTION starts node-roasted-yerba-mate [18:13] jbrokc__ has joined the channel [18:13] jstash: ACTION considers node-earl-grey [18:14] GauthierD has joined the channel [18:14] VeXii has joined the channel [18:14] k1ttty has joined the channel [18:15] GauthierD: Hey [18:15] MonsieurLu has joined the channel [18:15] MonsieurLu: hey gauthier [18:15] GauthierD: hackathon tonight! in france! [18:15] GauthierD: support us! [18:15] devongovett has joined the channel [18:16] sh1mmer has joined the channel [18:16] rskuja: ACTION rather import node-pinot-noir [18:18] CIA-109: libuv: 03Bert Belder 07reviewme * r0ded5d2 10/ src/win/winsock.c : Win: fix improper treatment of real ntstatus codes as mapped win32 errors - http://git.io/FaJg9A [18:18] CIA-109: libuv: 03Bert Belder 07reviewme * r261d792 10/ src/win/winsock.c : Win: map STATUS_HOPLIMIT_EXCEEDED status to WSAECONNRESET error - http://git.io/eXTNZA [18:18] CIA-109: libuv: 03Bert Belder 07reviewme * rea63f06 10/ src/win/udp.c : Win: ignore ECONNRESET when receiving udp packets - http://git.io/jFRLuw [18:18] llrcombs: Could a patch for this be thrown in relatively quickly: https://github.com/joyent/node/issues/2179 ? Shouldn't be too complex [18:18] CIA-109: node: 03Bert Belder 07reviewme * r83152d1 10/ lib/dgram.js : Dgram: correctly report recvmsg errors - http://git.io/BBGe4w [18:18] CIA-109: node: 03Bert Belder 07reviewme * rcc55292 10/ test/simple/test-dgram-send-error.js : Add test for GH-2177 - http://git.io/tGrO0A [18:18] lee_ has joined the channel [18:20] VeXii: Nuffy is sexy! [18:24] pagameba has left the channel [18:26] interrupt has joined the channel [18:26] johnnywengluu_ has joined the channel [18:27] secoif: what exactly does the ~ do in package.json dependencies? [18:28] rskuja: finaly solved my problem.. more tests comming up :) removed req.pipe and instead req.on('data'){writestuff} [18:28] secoif: eg "express":"~2.5.1" [18:30] herbySk has joined the channel [18:30] Aria: secoif: "roughly compatible version" -- 2.5.1 up through 2.5.x [18:31] secoif: Aria thanks, that's what I thought [18:31] lee_ has joined the channel [18:31] Aria: ~2.5 is >= 2.5 and < 3.0; ~2.5.1 is >= 2.5.1 and < 2.6 [18:31] Aria: Yeah. It's a combination of "at least this" and "within the same compatibility range" [18:31] Aria: so you can require a bugfixed point release, but still be vague about the end range. [18:32] secoif: Aria does it affect the way npm update works? [18:32] Aria: Yes. [18:33] _numbers has joined the channel [18:33] _numbers has left the channel [18:35] secoif: cool [18:35] secoif: thanks [18:35] secoif: Aria++ [18:36] scott_gonzalez has joined the channel [18:36] Wizek has joined the channel [18:40] jbrokc has joined the channel [18:41] towski has joined the channel [18:43] jarek has joined the channel [18:43] jarek has joined the channel [18:44] jbrokc_ has joined the channel [18:44] AvianFlu: rskuja, yeah, .pipe() is awesome, but only when it's appropriate [18:44] rskuja: yea was bad in this case [18:45] Unknown53136 has joined the channel [18:45] rskuja: should be some req.closebleedingpipe() [18:45] Illusioneer has left the channel [18:45] AvianFlu: the Stream.prototype.pipe() code is definitely code you should read at some point, though [18:46] AvianFlu: a lot of good stream-handling stuff in there [18:46] AvianFlu: handles TCP backpressure for you, etc. [18:46] rskuja: im bad doc reader, usualy fix things by trying out, but yea good tip [18:47] neshaug has joined the channel [18:47] k1ttty_ has joined the channel [18:47] secoif: Aria you know if that works for node versions too? [18:48] secoif: eg "node": "~0.6" [18:48] Aria: I believe so. [18:48] Aria: But check on that one. [18:48] secoif: it doesn't seem to complain for me no matter what i put in there :/ [18:48] CIA-109: node: 03Bert Belder 07reviewme * rf23201e 10/ test/simple/test-dgram-send-error.js : Add test for GH-2177 - http://git.io/OHpjGA [18:48] Aria: (Also, 0.x is special in semver -- "don't count on this too much") [18:50] Morkel has joined the channel [18:52] bengrue has joined the channel [18:52] mandric has joined the channel [18:53] Alex_____ has joined the channel [18:54] jbrokc__ has joined the channel [18:55] maveonair has joined the channel [18:55] margle_ has joined the channel [18:57] CIA-109: node: 03Bert Belder 07reviewme * ra639cf7 10/ test/simple/test-dgram-send-error.js : Add test for GH-2177 - http://git.io/kHEifQ [18:57] CIA-109: node: 03Bert Belder 07reviewme * r7244b9c 10/ (5 files in 2 dirs): Upgrade libuv to ea63f06 - http://git.io/3qFYYQ [19:00] Milossh: hello. what's the most common way for localizing node.js based website, possibly via gettext? [19:00] rails_noob has joined the channel [19:00] rails_noob: morning all [19:01] rails_noob: i was wondering how hard it is to deploy a tiny node app [19:02] tjholowaychuk: depends how much you care [19:02] rails_noob: can it run on any server or what because from what i understand it is the server [19:02] tjholowaychuk: or how lazy you are [19:02] rails_noob: or something like that [19:02] martin_sunset has joined the channel [19:02] rails_noob: at work we run some crappy apache vps witha cpanel, could i get node up there without being a linux master [19:03] Aria: Yes, but don't expect getting it to talk on port 80 is going to be easy in that case, unless the host will let you run proxies (which it might with mod_rewrite magic) [19:04] jbrokc_ has joined the channel [19:05] rails_noob: is 80 the default port? [19:05] rskuja: ^that.. on other case if u want something to test your stuff just take some free hosting service... I deployed my stuff on Amazon EC2 in about 30min [19:05] Aria: 80 is the normal web port, yes. [19:06] rails_noob: yeah, i think ec2 might be what i need, i just want to get started and try hacking some stuff together in a couple weekends [19:06] rskuja: go for it, amazon is nice [19:07] plutoniiix has joined the channel [19:08] josh9 has joined the channel [19:09] jpdery has joined the channel [19:09] josh9: is it a good usecase for node or should i stick to ruby/sinatra? website where people upload pictures and other users can rate them. [19:10] hackband has joined the channel [19:10] Aria: node would be fine. So would most other languages with a web framework, josh9 [19:10] TooTallNate has joined the channel [19:11] jocafa has joined the channel [19:11] rails_noob: josh9: you could probably integrate the facebook sdk more easily into a more established language [19:12] cjm has joined the channel [19:12] rails_noob: if you had any desire to use the facebook sdk that is [19:12] josh9: rails_noob: i am not sure i understand what you just said.. which one is more established? [19:12] MatthewS has joined the channel [19:12] rskuja: dunno fb/twitter and other apis are quite well integrated in node imo [19:12] rskuja: no problems there [19:12] rails_noob: ah i just looked, and they have php and javascript ones [19:12] rails_noob: node should work perfectly [19:13] djbell has joined the channel [19:14] jbrokc__ has joined the channel [19:14] diogogmt has joined the channel [19:14] sstephenson_ has joined the channel [19:15] kkszysiu has joined the channel [19:15] josh9: Aria: rails_noob i thought the main usecase for node is when u have a single page webapp. do u guys think in my site it will be nice/faster for the user to have a single page site? [19:16] marcello3d has joined the channel [19:17] rails_noob: <-doesn't know his ass from a hole in the ground when i comes to node [19:17] leed0 has joined the channel [19:17] rails_noob: :P [19:18] McMAGIC--Copy has joined the channel [19:19] vguerra has joined the channel [19:20] grekko has joined the channel [19:21] dinesh_ has joined the channel [19:23] boltR has joined the channel [19:23] Aria: josh9: The main usecase for node is when you need event-driven anything -- to be able to react to input quickly, and potentially mediate between clients. [19:23] Aria: josh9: But that said, it's good for ~any network programming. It's low-level, lower than Rails. [19:24] maushu has joined the channel [19:24] Draco_ has joined the channel [19:24] Lingerance: Only lib-uv is low-level. [19:25] Glenjamin: low level has many meanings [19:25] Glenjamin: depending on where you're standing [19:25] creationix has joined the channel [19:25] stride: I'm sitting [19:25] chilts: yes, depends on perspective and experience :) [19:25] Aria: But it's also easy to build on, so the HTTP layer is easy and well rounded. And on top of that, connect and then express build. [19:25] Aria: But it's different than Rails -- it's even more app-server centric than Rails is. Hard to believe, but true. [19:26] Aria: (Express is more like the analogue to Rails.) [19:26] Aria: (Or Sinatra, anyway.) [19:26] tjholowaychuk: node does IMO what any good abstraction should do, start with the low-level and build up. monolithic frameworks are kinda meh [19:26] Aria: Indeed. [19:26] Aria: It's a lot of small parts that work remarkably well together. [19:27] Aria: The concept of event emitters, a few common patterns of events --- that really made things gel well. [19:27] chilts: reminds me of lisp (for obvious reasons) ... you kinda build your own language up [19:27] chilts: as well as building the software on top [19:27] tjholowaychuk: webrick [19:27] tjholowaychuk: ftw [19:27] creationix: lol [19:27] Aria: Hehe. Yes. But minus the suck. [19:27] jtr__ has joined the channel [19:28] ryanfitz has joined the channel [19:28] Aria: Like webrick if webrick hadn't been hacked up to work with ruby 1.4 and no willingness to make Ruby better in the process. [19:30] spathi has joined the channel [19:30] svnlto has joined the channel [19:31] dwww has joined the channel [19:32] baudehlo has joined the channel [19:32] dwww has left the channel [19:36] madhums has joined the channel [19:37] N0va has joined the channel [19:38] jbrokc: tjholowaychuk: dude, mocha is super awesome [19:38] ryanfitz has joined the channel [19:38] tjholowaychuk: jbrokc thanks! [19:39] dnyy has joined the channel [19:40] marcello3d: how does mocha compare to vows? [19:40] joeytwiddle has joined the channel [19:41] jbrokc: marcello3d: dunno, to me it just delivers an easy BDD experience i'm familiar with that Vows didn't [19:41] marcello3d: how does that compare to say node unit? [19:41] jbrokc: jasmine's nice too but it's so ugly [19:41] jbrokc: marcello3d: dunno [19:41] marcello3d: it's super simple [19:42] tjholowaychuk: marcello3d the similarity with nodeunit is that it's executed serially [19:42] tjholowaychuk: which gives you more power as far as reporting goes [19:42] marcello3d: right [19:42] tjholowaychuk: specifically error reporting [19:42] secoif: tjholowaychuk what happened to async [19:42] marcello3d: you can be async and serial [19:42] einaros: tjholowaychuk: glad to see you brought regex matching to mocha. I couldn't live without that ;) [19:43] tjholowaychuk: 100% parallel is too wonky haha it's great until you have to actually debug something [19:43] marcello3d: you could do parallel if you forked [19:43] tjholowaychuk: surprisingly it's not really much slower [19:43] konobi: test code really needs to be executed 100% serially [19:43] tjholowaychuk: i ported the express tests and it's a bit slower but not by much [19:43] tjholowaychuk: maybe 100ms [19:43] marcello3d: tj: %? [19:43] tommyvyo has joined the channel [19:43] konobi: KISS [19:43] tjholowaychuk: without lame http mocking as well [19:43] marcello3d: yea [19:43] jbrokc: i'm thuper therious that tests need to be therial!!! [19:43] marcello3d: that's why I like nodeunit [19:44] marcello3d: vowsjs just had waaaay too much bloat/overhead for me [19:44] marcello3d: plus it couldn't do certain styles of tests [19:44] Glenjamin: the topic reuse is odd [19:44] Glenjamin: shared state between tests :s [19:44] konobi: tap++ # and soon with built in coverage support =0) [19:44] secoif: I don't get why you need 100% serial [19:45] nmtmason has joined the channel [19:45] Glenjamin: tjholowaychuk: your mocha library has roughly the same syntax and goals as mine, was started later, and is much better >.< [19:45] Glenjamin: secoif: consider mocked dependencies [19:45] konobi: secoif: test code should be as simple as possible... and executed as simply as possible [19:45] tjholowaychuk: secoif makes it trivial to map uncaught exceptions, global leaks etc [19:45] secoif: some parts, for sure, but being able to run certain sections in parallel could really help keep tests quick [19:45] tjholowaychuk: to a specific case [19:45] blueadept` has joined the channel [19:45] secoif: sure, I'm thinking [19:45] marcello3d: anyone using travis-ci? [19:45] tjholowaychuk: marcello3d yup [19:45] marcello3d: it's badass huh? [19:45] tjholowaychuk: tried it out for mocha [19:46] tjholowaychuk: pretty handy [19:46] Glenjamin: secoif: proper unit tests don't do much (or any) IO [19:46] marcello3d: I like that it can test multiple versions of node [19:46] secoif: run tests parallel if break, run in serial if broken [19:46] marcello3d: cause I know I'll never do that ;) [19:46] Glenjamin: so "parallel" makes no difference [19:46] secoif: Glenjamin Agreed, but sometimes time doesn't allow for proper unit tests [19:46] jbrokc: anyone here use zombie's cookies module? [19:46] marcello3d: secoif: not a bad idea [19:47] marcello3d: I think the forking approach probably gives you the best of both worlds. fork each test file and run it separately [19:47] secoif: for example, I have tests that use this library called knox, and I have no idea how to go about mocking it out [19:47] Glenjamin: tjholowaychuk: any plans for something like RSpec's "let" declaration? [19:47] marcello3d: you also have the potential for library global variable bugs that would be non-deterministic with parallel tests [19:47] secoif: so i have this chunk of about 10 tests that take about 30 seconds to run [19:47] tjholowaychuk: marcello3d then you have ~50ms or whatever overhead for that as well [19:47] tjholowaychuk: Glenjamin not familiar [19:48] Glenjamin: tjholowaychuk: one sec [19:48] Glenjamin: https://www.relishapp.com/rspec/rspec-core/v/2-6/docs/helper-methods/let-and-let [19:48] marcello3d: tjholowaychuk: isolates? ;D [19:48] tobias_ has joined the channel [19:49] marcello3d: tjholowaychuk: or a forked pool [19:49] Glenjamin: node unit tests are not slow [19:49] tjholowaychuk: marcello3d meh, mega over-kill IMO [19:49] darrylhebbes has joined the channel [19:49] tomyan has joined the channel [19:49] marcello3d: tjholowaychuk: depends on the size of the project, really [19:49] tjholowaychuk: yeah [19:49] jbrokc: Glenjamin: es6 will have the `let` keyword for block scope [19:50] whitman has joined the channel [19:50] Glenjamin: jbrokc: the feature, not the name :p [19:50] jbrokc: oh [19:50] Glenjamin: secoif: run the knox tests, they should pass - then anywhere in your code you'd normally call know, call a stub [19:51] r1ngzer0 has joined the channel [19:51] chilts: so I guess the new incremental garbage collector in v8 will come to Node (as the v8 version is upgraded) [19:51] secoif: Glenjamin you know, you're probably right [19:52] chilts: sounds like something that would be useful for a webserver as well as interactive games in the browser [19:52] konobi: chilts: already in 0.6 [19:52] chilts: nowait ... cool! [19:52] chilts: ACTION didn't realise [19:52] r1ngzer0: ACTION waves to konobi [19:52] konobi: the blog post was about it coming to chrome... but it's been on v8 master for a while [19:52] Glenjamin: jbrokc / tjholowaychuk example is the this.subject stuff here: https://github.com/glenjamin/nodespec/blob/master/spec/example-spec.js [19:52] creationix has joined the channel [19:52] chilts: that pleases me, not necessarily because I'll be a big user but because it sounds like a good idea :) [19:52] secoif: Glenjamin so i guess I just need to allow the uploading lib to be injected into my code under test [19:52] konobi: r1ngzer0: hey mark [19:53] fairwinds has joined the channel [19:53] Glenjamin: secoif: yup [19:54] fairwinds_ has joined the channel [19:54] maxogden has joined the channel [19:54] maxogden: thanks for giving me nodejs, nodejs people [19:55] creationix: :) [19:55] maxogden: creationix: shouldnt you be hanging out with your family right now mister! [19:55] maxogden: +? [19:55] creationix: thanks indeed [19:55] creationix: ACTION is setting up new router [19:57] Draco_ has joined the channel [19:58] garrensmith has joined the channel [20:00] trontwan has joined the channel [20:00] interrupt has joined the channel [20:01] lukegalea has joined the channel [20:01] jbpros has joined the channel [20:02] trontwan: Can I run multiple node apps on one linode at once? With seperate domains and what not? [20:03] rektide: bnoordhuis &all, what am i supposed to do about `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [20:03] tomyan has joined the channel [20:03] maxogden: trontwan: with a proxy (nginx, node-http-proxy, etc) yes [20:05] trontwan: cool, thanks maxogden [20:05] i42n has joined the channel [20:05] subbyyy has joined the channel [20:06] instafire has joined the channel [20:07] jtr__ has joined the channel [20:10] rails_noob has joined the channel [20:11] eb4890 has joined the channel [20:11] darrylhebbes has joined the channel [20:12] TheJH: rektide, you're getting that error message? [20:13] TheJH: rektide, it's because you're installing from git master, don't do that [20:13] TheJH: rektide, "git checkout v0.6.2 && ./configure && make && sudo make install" [20:13] jbrokc has joined the channel [20:15] deadmau5 has joined the channel [20:15] creationix has joined the channel [20:15] zemanel has joined the channel [20:16] Marak_ has joined the channel [20:18] johnnywengluu_ has joined the channel [20:19] augustl: faye doesn't build on my system. It's hiredis dependency, to be specific. http://pastie.org/2915971 [20:19] augustl: can anyone spot what's wrong? [20:20] augustl: why does it try to run gmake? And why doesn't it run make instead of gmake on my system, which it seems to make an attempt on doing? [20:21] augustl: seems this part doesn't work as expected https://github.com/pietern/hiredis-node/blob/master/package.json#L12 [20:23] vkandy: ok i have a dumb question ... can i mv a file without having to read/write streams? [20:24] AvianFlu: vkandy, you can just use fs.readFile and fs.writeFile [20:24] AvianFlu: the only caveat is that the files have to fit in RAM if you do that [20:24] augustl: seems the problem is "AttributeError: 'NoneType' object has no attribute 'copy'"? [20:24] vkandy: AvianFlu: that's the problem ... i have huge xml files to move after "processing" [20:24] augustl: http://nodejs.org/docs/v0.4.12/api/fs.html#fs.rename ? [20:25] AvianFlu: I don't think rename can move it to other directories? [20:25] AvianFlu: (haven't tried) [20:25] Margle has joined the channel [20:25] augustl: I'm pretty sure it can [20:25] vkandy: hmm didn't think of that augustl .. i'll try rename [20:26] deadmau5: fs.rename is just rename(2) no? [20:27] AAA_awright_0 has joined the channel [20:27] pizthewiz has joined the channel [20:28] augustl: anyone on http://pastie.org/2915971 ? Seems like a python error. [20:28] GauthierD has joined the channel [20:28] augustl: works on an ubuntu box though, but python version is the same, and neither of the machines have "gmake" in path [20:29] langworthy has joined the channel [20:29] cognominal has joined the channel [20:30] AvianFlu: vkandy: copying with streams isn't hard. https://github.com/AvianFlu/ncp/blob/master/lib/ncp.js#L80-85 [20:30] vkandy: augustl: fs.rename() worked nicely! thanks :) [20:30] AvianFlu: if you're using big files, it's a better way to move them (chunk by chunk I mean) [20:31] AvianFlu: I'm glad rename worked, though [20:31] AvianFlu: can you move it to a different folder with rename? I'm curious [20:31] cjm has joined the channel [20:31] vkandy: AvianFlu: i was using util.pump but it took forever! [20:31] deadmau5: rename is a syscall, it's no-doubt much more efficient [20:31] christine has joined the channel [20:31] augustl: AvianFlu: for big files, rename is probably a zillion times better [20:32] AvianFlu: yeah that's true, you're just changing the entry in the file-table-thing [20:32] xetorthio: Hi! Using node 0.4.12, after doing several http.get calls I get a "EINVAL, Invalid argument" all the time. is a node.js bug? [20:32] AvianFlu: the data doesn't need to move [20:32] augustl: and be mapped to user space memory [20:32] AvianFlu: right [20:33] AvianFlu: I was thinking buffering vs. non-buffering, but not moving it at all clearly wins :) [20:33] vkandy: what if the destination was a different disk? curious [20:33] badlearner1 has joined the channel [20:33] augustl: vkandy: as long as it's mounted it's probably irrelevant [20:33] crackns has joined the channel [20:33] vkandy: perfect! [20:33] vkandy: thanks again :) [20:34] augustl: vkandy: EXDEV oldpath and newpath are not on the same mounted file system. (Linux permits a file system to be mounted at multiple points, but rename() does not work across different mount points, even if the same file system is mounted o [20:34] ryanfitz has joined the channel [20:34] augustl: from man 2 rename [20:34] badlearner1: I have been reading about Node.js all of today and I see one big disadvantage being pointed out by everyone - - it's not production ready and that every new release is backwards incompatible and breaks all existing libraries etc. Is this true? [20:35] augustl: so if that's what node uses it won't work. But not sure if that's what nod euses. [20:35] augustl: badlearner1: not sure what production ready really means.. The releases are some times backwards incompatible though. That's to be expected of a 0.x release [20:35] TheJH: badlearner1, every major release so far did break some libraries that used deprecated stuff, yes [20:36] AvianFlu: sometimes, the old way of doing something was bad, and needs to break to improve [20:36] AvianFlu: nobody will change version x.y.z after you install it, though [20:36] badlearner1: Does the work load get too heavy for developers or is it workable? [20:36] mmalecki: badlearner1: are you a Java developer, by a chance? [20:36] vkandy: augustl: that makes sense ... i'll keep that mind [20:37] badlearner1: No way. I am an absolute beginner wondering which path to choose: Python/django or JavaScript/Node.js [20:37] mmalecki: badlearner1: sure it is :). most nodejitsu packages got ported in a week or so [20:37] mmalecki: badlearner1: and we have like 50 of them! [20:38] tjholowaychuk has joined the channel [20:38] mikeal has joined the channel [20:38] AvianFlu: badlearner1, I actually think that it will be easier for you to learn JS first [20:38] augustl: badlearner1: I've not had any problems with either, but that's just me :) [20:38] AvianFlu: there are a few quirky things in JS that will be a lot harder to grasp if you go python first [20:38] AvianFlu: if you don't have a sense of "but that's not how the other guys do it!" you'll be able to pick it all up quicker, I should think [20:39] AvianFlu: then, later, python will be easier to learn [20:39] badlearner1: okay. So it's like when there's a new release I take my time, see when all the modules/libraries become compatible with the new Node.js release and start the upgrade process? [20:39] mmalecki: badlearner1: that's what we've done [20:39] AAA_awright_0: I've very rarely had any issues with broken APIs, I can't actually recall one [20:39] badlearner1: okay [20:40] AAA_awright_0: And I've been working on master branch since v0.2 [20:40] badlearner1: Is JavaScript going to die anytime soon? I am definitely worried about lot of bloggers saying stuff like that [20:40] badlearner1: Are browsers going to abandon it anytime soon? [20:40] AvianFlu: no [20:40] vkandy: augustl: i was thinking .. can i catch EXDEV on callback to fs.rename ? [20:40] AvianFlu: like, no way in hell [20:40] augustl: badlearner1: vkandy not sure how that works tbh [20:40] AvianFlu: badlearner1, it's too intrenched to vanish quickly [20:40] AvianFlu: entrenched, rather [20:41] augustl: badlearner1: who says JavaScript is going to die? [20:41] augustl: quite the contrary [20:41] AvianFlu: a lot of people hate it and want it to go away [20:41] AvianFlu: but it's just hatefully wishful thinking [20:41] badlearner1: search "JavaScript dead" [20:41] vkandy: whoever says JS is going to die should look at Dart [20:41] AvianFlu: yeah seriously, lol [20:41] zomg: Lot of people hate Java and want it to go away [20:41] zomg: Lot of people hate PHP and want it to go away... [20:41] zomg: ;> [20:41] AvianFlu: flash, too [20:41] AvianFlu: nothing "just vanishes" [20:41] AvianFlu: COBOL is still used places [20:41] augustl: especially a open web standard [20:42] AvianFlu: javascript is one of hundreds of programming languages, if not thousands [20:42] badlearner1: What actually worries me is that there's no new release of JavaScript for like 2 years now, while Python, Ruby and all have had one last month or so [20:42] AvianFlu: at the end of the day, everybody picks a few [20:42] augustl: badlearner1: what do you mean new release of JavaScript :P [20:42] AvianFlu: badlearner1, you're conflating the language and the VM [20:42] badlearner1: what?? [20:42] AvianFlu: there are 4 or 5 major javascript VMs [20:42] maxogden: badlearner1: node has very little to do with javascript in a philosophical sense [20:42] AvianFlu: spidermonkey, v8 (which node uses), a few others [20:42] augustl: badlearner1: the language itself, you mean? Most of the innovation these days are the enrivonment in which JavaScript run [20:42] badlearner1: okay [20:42] AvianFlu: whereas the language itself is a standard [20:43] augustl: what AvianFlu said [20:43] badlearner1: okay [20:43] AvianFlu: Ruby is a language, but it's also a VM [20:43] Glenjamin: JavaScript has roughly the same features, and keeps getting faster. Python & Ruby keep getting new features and getting a bit slower [20:43] badlearner1: lol [20:43] AvianFlu: when you see "Ruby 1.9", it's a release of the VM [20:43] jbrokc_ has joined the channel [20:43] badlearner1: yeah, I read about that [20:43] AvianFlu: the languages change with the VMs, but it's not a version number on the language [20:43] augustl: yeah the only new thing in ruby 1.9 is hash literal syntax and a few minor things afaik [20:43] Marak: !kick AvianFlu [20:43] badlearner1: So are you people sure that JavaScript is going to be around for at least the next 10 years or so? [20:43] Marak: ACTION >.> [20:44] AvianFlu: Marak: no bot here, learn2modecommand [20:44] maxogden: AvianFlu: there is active competition amongst VMs in both ruby and python to be fair [20:44] augustl: badlearner1: no, yes, what, why? [20:44] AvianFlu: maxogden, yes, there is [20:44] badlearner1: ah?! [20:44] AvianFlu: PyPy beats the hell out of CPython, as I recall [20:44] augustl: badlearner1: does it matter? [20:44] _dc has joined the channel [20:44] mmalecki: AvianFlu: yeah, it does [20:44] AvianFlu: badlearner1, once you learn one language, picking up others becomes easier [20:44] mmalecki: AvianFlu: http://speed.pypy.org/ [20:44] lupomontero has joined the channel [20:44] badlearner1: Because when I develop something in JavaScript I don't want to see in news that "JavaScript is dead, start porting fellows!" [20:45] vkandy: badlearner1: i'd say yes. it won't be the same as it is now. it will evolve but it will remain [20:45] AvianFlu: because programming is programming, it's just a question of how things are structured [20:45] Marak: badlearner1: find a better place to read your news then [20:45] zomg: badlearner1: in 10 years JS will still be but there's probably a new "cool" language [20:45] augustl: badlearner1: has that ever happened with any language? [20:45] Unknown53136: BASIC [20:45] Unknown53136: ACTION coughs [20:45] badlearner1: IDK... I am not into programming yer [20:45] AvianFlu: Unknown53136, that was my first programming language! [20:45] badlearner1: yet* [20:45] Glenjamin: even if javascript "dies", code running today won't stop working on what its running on today. [20:45] vkandy: js (as a language) is basically c flavored lisp. i wish more languages were like js [20:45] Unknown53136: :P [20:45] augustl: badlearner1: thought so ;) It doesn't really matter [20:46] augustl: badlearner1: if a community of millions is using something it won't get replaced overnight [20:46] zomg: badlearner1: if you actually plan to learn programming, I'd stop worrying about what language is going to stick [20:46] AvianFlu: badlearner1, pick one you like and start making stuff. I'd make a web app in node, and I'd do heavy math in python, personally. [20:46] AvianFlu: each has its place [20:46] badlearner1: okay [20:46] AvianFlu: and many are roughly equivalent from a practical standpoint [20:47] badlearner1: I feel a lot better now [20:48] badlearner1: I will probably go with JavaScript / Node.js / jQuery stack [20:48] badlearner1: it's all JS! :D [20:49] badlearner1: And hey, next up is the confusion as to which DB to use. Any advise there? [20:49] tbranyen: JERVASCRIPTS [20:50] maxogden: tbranyen: JOOVASCOOPS [20:50] tbranyen: :3 [20:50] tbranyen: maxogden: whats this massivegit proj? [20:50] rauchggg has joined the channel [20:50] maxogden: tbranyen: some dood in london is using node to implement git on top of riak [20:51] copongcopong has joined the channel [20:51] MooGoo: use a db that has the least buggy and broken module for node [20:51] tbranyen: O_o [20:51] AvianFlu: badlearner1, if you aren't going to be doing anything taxing to the db, pick one you like [20:51] maxogden: tbranyen: cant tell if awesome or crazy [20:51] augustl: seems like node-waf doesn't work on python 2.7.2 [20:51] AvianFlu: look at mongodb, look at couchdb, do some googling [20:51] stantona has joined the channel [20:51] augustl: at least not on my python 2.7.2... [20:51] tbranyen: augustl: sure it does [20:51] tbranyen: def doesn't work on python3 [20:51] nodokodo has joined the channel [20:52] augustl: http://pastie.org/2916093 [20:52] augustl: tbranyen: ^^ [20:52] AvianFlu: badlearner1, different dbs are good and bad at different things, but if you're just learning, you most likely won't need the sweet spots to matter [20:52] AvianFlu: so learn one, be aware of what it sucks at [20:52] zorzar has joined the channel [20:52] tbranyen: augustl: and it works on python 2.5? [20:52] AvianFlu: it's a specialized choice per-purpose, at the end of the day [20:52] tbranyen: or another version [20:52] augustl: tbranyen: haven't tested [20:52] tbranyen: so why are you laying it on 2.7.2 instead of maybe a bad configuration? [20:53] badlearner1: From what I read MongoDB and CouchDB are good for Node.js, and CouchDB is probably better (at least for starters) as it is asynchronous out of the box. hmm?? [20:53] augustl: tbranyen: haha, sorry [20:53] augustl: tbranyen: just looked like a python error, but I've never worked with python [20:53] maxogden: badlearner1: couchdb speaks HTTP so you only have to know HTTP to use it [20:53] jbrokc_ has joined the channel [20:53] badlearner1: which means it's easier? [20:53] tbranyen: he's a bad learner, thats not gonna help [20:54] badlearner1: lol!? what's that supposed to mean? [20:54] augustl: tbranyen: you've got any idea what the error might be? [20:54] konobi: happy yanksgiving! [20:54] jbrokc__ has joined the channel [20:55] tbranyen: yay [20:55] tbranyen: augustl: bad wscript [20:56] ryanfitz has joined the channel [20:56] Margle has joined the channel [20:56] augustl: hmm, https://github.com/pietern/hiredis-node/blob/master/wscript [20:56] rskuja: badlearner1: take mongodb. it will make you less fat and more cool [20:56] Lingerance: badlearner1: mongo use JS itself, and also has an HTTP REST interface. (Just FYI) [20:57] badlearner1: okay [20:58] TheJH: wasn't mongo that one with the bad publicity? [20:58] augustl: fud [20:58] rskuja: haters gonna hate [20:58] badlearner1: is MongoDB scalable? Think the size of Facebook. Does it have stuff like replication, partitioning, sharding etc? [20:58] tjholowaychuk: haha [20:58] MooGoo: lol [20:59] badlearner1: come on! [20:59] zomg: badlearner1: really that's the last thing you want to worry about when starting to learn programming :P [20:59] rskuja: it scales way better than you brain [20:59] badlearner1: ohkay [20:59] lzskiss has joined the channel [20:59] mehlah has joined the channel [20:59] TheJH: rskuja, I didn't read about it much, just saw one post about it, so I could be that that one was fud, yes [20:59] MooGoo: nothing is prebuilt to handle facebook traffic [20:59] cjm has joined the channel [20:59] zomg: badlearner1: honestly, just choose whatever. It is not a waste to learn one language. Master one, and learning another will become easy [21:00] TheFuzzb_ has joined the channel [21:00] augustl: badlearner1: you should focus on solving problems, not the tools you use [21:00] MooGoo: dont they have like three millioj PHP servers that can each handle 25 requests at a time [21:00] MooGoo: er [21:00] MooGoo: probably less [21:01] gartenstuhl has joined the channel [21:01] mmalecki: they compile their PHP to C++. [21:01] mmalecki: there's a talk about that [21:01] badlearner1: It's probably because I am a beginner, but I dont understand one thing. Should I learn about databases and SQL first or programming? Even those beginner's books for programming show problems with MySQL etc, OTOH the books about DBMSs talk about a programming language in examples. [21:01] MooGoo: wtf [21:01] badlearner1: I just dont get it, or is it only me? [21:01] mmalecki: they deploy gig-or-so exacutable to their servers [21:01] zomg: badlearner1: you don't even need a database [21:01] augustl: badlearner1: again, less tools, more solving problems [21:01] rskuja: learn programming, forget about db at start [21:01] MooGoo: yea [21:01] gartenstuhl has left the channel [21:01] zomg: when I learned programming, I used text files [21:01] augustl: badlearner1: solving problems is what a programmer needs to be good at [21:01] badlearner1: okay [21:01] MooGoo: rdbms's are overrated [21:01] augustl: badlearner1: what tool you learn first or what language you use is largely irrelevant [21:02] stantona has joined the channel [21:02] MooGoo: for some reason they have become the default way of storing almost all persistent data [21:02] chilts: yeah, just think of a problem and do it :) [21:03] chilts: MooGoo: they still have a place though, when it's the right tool for the job (same with NoSQL/KeyValue/Document stores) [21:03] badlearner1: Okay guys! I get it. For instance lets think that I am pretty okay to start writing an app in JS. Now, I definitely need to worry about a DB right? So, how should I decide which DB is best for me? [21:03] chilts: everything has it's place :) [21:03] augustl: badlearner1: again..... less tools, more problem solving [21:03] badlearner1: Every effing DB's description today states that it's the best, most scalable and fastest db in the world [21:03] augustl: badlearner1: short answer, look at the problem you need solving and what the DBs are capable of [21:03] piscisaureus__ has joined the channel [21:03] jbrokc_ has joined the channel [21:04] zomg: badlearner1: Start doing. You're not even a programmer and you're already suffering from analysis paralysis [21:04] zomg: :P [21:04] badlearner1: oh... so @augustl, you mean to say by learning JS, I will understand what kind of a DB my app needs? [21:04] hoofed has joined the channel [21:04] badlearner1: :D [21:04] badlearner1: :P [21:04] chilts: yeah, just do it ... worry about DBs later [21:04] zomg: Yeah [21:04] rskuja: yes [21:04] zomg: You're not gonna need that any soon [21:05] zomg: There's a bazillion things that you can do without a database [21:05] badlearner1: okay! great [21:05] chilts: my current manager is worrying about analysis paralysis and I can't get any work done! [21:05] augustl: badlearner1: sort of, I guess [21:05] chilts: I just wanna do it [21:05] augustl: badlearner1: short answer is, do you need to store tabular data? use a relational db like mysql, postgres, sqlite. Do you need to store documents? use a document db like mongodb, couchdb [21:05] augustl: but that's a terribly generic answer [21:06] badlearner1: okay [21:06] badlearner1: If I leave this room now, by the time I learn JS I won;t have you people to ask for advise :;( [21:06] badlearner1: :( [21:06] badlearner1: :'( [21:06] adrianF has joined the channel [21:07] AAA_awright_0: a [21:07] AAA_awright: er [21:07] MooGoo: you can always ask catb0t [21:07] catb0t: always work relative to the file containing the script [21:07] MooGoo: .t which db is teh best [21:07] catb0t: which were both pretty much based on rspec [21:07] zomg: on #haskell they have a bot which you can ask if haskell can do something [21:08] zomg: we need one for node/js here [21:08] zomg: =) [21:08] badlearner1: :D [21:08] chilts: there used to be one called v8, but I'm not sure it's here at the moment [21:08] chilts: you could say: [21:08] chilts: v8: 1+1 [21:08] chilts: etc [21:08] TheJH: .. 1+1 [21:08] catb0t: 2 [21:08] chilts: and it would reply [21:08] TheJH: chilts, ^ [21:08] chilts: :) [21:08] chilts: ta [21:08] TheJH: zomg, does it actually give useful answers or does it just reply "yes" all the time? :P [21:08] chilts: phew, thanks, I needed that :) [21:09] zomg: TheJH: it always replies "Yes, Haskell can do that!" or something like that :D [21:09] avalanche123 has joined the channel [21:09] mmalecki: well, technically he's right [21:09] badlearner1: So, I am off to learning JS then. TC and thank you. [21:09] mmalecki: Haskell is Turing-complete, so. [21:10] badlearner1: 8-) [21:10] chilts: badlearner1: good luck! [21:10] badlearner1: @chilts: thank 1 [21:10] mmalecki: badlearner1: have fun :) [21:10] badlearner1: @mmalecki: :) [21:10] k1ttty has joined the channel [21:10] chilts: heh, twitter @ symbols :/ [21:10] eb4890 has joined the channel [21:10] MooGoo: highway irc rly kinda sux [21:10] FearOfMusic has left the channel [21:10] badlearner1: lol! @chilts [21:11] badlearner1: :D [21:11] lemonad has joined the channel [21:11] badlearner1 has left the channel [21:12] i42n has joined the channel [21:13] mikeal has joined the channel [21:13] CIA-109: libuv: 03Bert Belder 07v0.6 * r0ded5d2 10/ src/win/winsock.c : Win: fix improper treatment of real ntstatus codes as mapped win32 errors - http://git.io/FaJg9A [21:13] CIA-109: libuv: 03Bert Belder 07v0.6 * r261d792 10/ src/win/winsock.c : Win: map STATUS_HOPLIMIT_EXCEEDED status to WSAECONNRESET error - http://git.io/eXTNZA [21:13] CIA-109: libuv: 03Bert Belder 07v0.6 * rea63f06 10/ src/win/udp.c : Win: ignore ECONNRESET when receiving udp packets - http://git.io/jFRLuw [21:13] jbrokc_ has joined the channel [21:14] rskuja: i bet badlearner1 will be back in 5min or he will never be back [21:14] CIA-109: node: 03Bert Belder 07v0.6 * r83152d1 10/ lib/dgram.js : Dgram: correctly report recvmsg errors - http://git.io/BBGe4w [21:14] CIA-109: node: 03Bert Belder 07v0.6 * ra639cf7 10/ test/simple/test-dgram-send-error.js : Add test for GH-2177 - http://git.io/kHEifQ [21:14] CIA-109: node: 03Bert Belder 07v0.6 * r7244b9c 10/ (5 files in 2 dirs): Upgrade libuv to ea63f06 - http://git.io/3qFYYQ [21:14] tlynn has joined the channel [21:17] parshap has joined the channel [21:19] bartt1 has joined the channel [21:19] deedubs: rskuja: my money is on never be back [21:20] pixel13 has joined the channel [21:20] pixel13 has left the channel [21:22] chrisvwebdev has joined the channel [21:22] mikeric has joined the channel [21:23] chrisvwebdev has left the channel [21:23] ryanfitz has joined the channel [21:23] ppcano has left the channel [21:23] jbrokc_ has joined the channel [21:26] staar2 has joined the channel [21:26] staar2: hello [21:27] AAA_awright_0: Yo [21:27] staar2: I am currently struggling with one node solution but i dont know how to do it correctly [21:28] AvianFlu: staar2, what are you trying to do? [21:29] staar2: i am calling out and function which checks if the name is in file, and then it prints the result into console, but the other function needs to make requests if the name is not in file [21:29] boltR has joined the channel [21:29] _dc has joined the channel [21:29] staar2: like if (isInFileName('Myke')) print 'Well done wait other input' else sendRequests() [21:30] maxogden has joined the channel [21:30] staar2: but the problem is that i cant make return [21:30] staar2: it must be made as async [21:31] __class__ has joined the channel [21:31] Klaus_Dieter has joined the channel [21:31] Klaus_Dieter: hello world [21:32] mike5w3c has joined the channel [21:32] Klaus_Dieter: can I build node on arm? [21:32] konobi: yes [21:32] Sorella has joined the channel [21:32] ryanfitz has joined the channel [21:32] Klaus_Dieter: konobi: I am trying to but ./configure make make install fails as cc does not recognize -m32 flag [21:33] binaryjohn has joined the channel [21:33] konobi: Klaus_Dieter: it's a lot more involved than normal builds... there are guides out on the interwebs on how to do it though [21:33] Klaus_Dieter: konobi: too bad - I have been looking on the node wiki only [21:33] rskuja: staar2: well u could add callback to your isInFileName function, like isInFileName('Mike',callback) then do the check and return callback [21:34] jbrokc_ has joined the channel [21:34] cjm has joined the channel [21:34] pHcF has joined the channel [21:35] konobi: Klaus_Dieter: lots of stuff around like http://blog.amt.in/nodejs-on-android [21:36] staar2: rskuja, i currently added the callback when the name is in list [21:36] jldbasa has joined the channel [21:38] i42n has joined the channel [21:39] Klaus_Dieter: konobi: yeah but that will not work with what is in git currently [21:39] bnoordhuis: Klaus_Dieter: make sure to `git checkout v0.6.2` [21:39] Klaus_Dieter: I am trying out an older version now [21:39] hipsterslapfight has joined the channel [21:39] bnoordhuis: building master on arm is even more of a challenge than usual right now [21:40] Klaus_Dieter: bnoordhuis: that might be my problem... [21:40] TheJH: because you can't "make install" :D [21:40] rskuja: staar2: well then return "error" calback if it isnt [21:40] johnnywengluu: there should be a mkdir -p in the node.js core [21:41] rskuja: staar2: or the callback could be like function(err){} where err is optional [21:42] rskuja: staar2: imagination :) everything is possible [21:42] k1ttty has joined the channel [21:43] paq has joined the channel [21:45] _dc has joined the channel [21:45] woeye has joined the channel [21:45] p1d has joined the channel [21:46] xeodox: hey guys…what's the best Node.js module that lets me handle REST (CRUD) ? [21:47] augustl: xeodox: express does routing on verbs and url [21:47] augustl: if that's what you mean [21:47] xeodox: what does "verbs" mean? [21:47] augustl: xeodox: the "method" of the request [21:47] xeodox: augustl: , right now I do this: app.post('/api/account/create', api_account_ctr.pst_account_create); [21:48] tjholowaychuk: xeodox express-resource? [21:48] xeodox: but to me this seems very "manual", and I can't imagine doing this for 20-30 endpoints [21:48] tjholowaychuk: https://github.com/visionmedia/express-resource [21:48] tjholowaychuk: maybe give that a try [21:48] tjholowaychuk: I prefer explicit personally [21:48] joshgillies has joined the channel [21:48] xeodox: tjholowaychuk: you prefer NOT to use express-resource…and do it manually ? [21:48] tjholowaychuk: yup [21:48] xeodox: Is that what you mean by "explicit"? [21:49] xeodox: but it's much more tedious right? [21:49] tjholowaychuk: typing != bottleneck, ever [21:49] xeodox: I see [21:49] xeodox: control is the best, right? [21:50] plutoniiiix has joined the channel [21:50] adrianmg has joined the channel [21:51] adrianmg has left the channel [21:52] CarterL has joined the channel [21:53] ixti has joined the channel [21:54] jbrokc_ has joined the channel [21:54] secoif has joined the channel [21:58] Draco_ has joined the channel [21:58] saesh has joined the channel [22:00] johnnywengluu: xeodox: control is the best [22:02] broofa has joined the channel [22:02] Squeese_ has joined the channel [22:03] chrisvwebdev has joined the channel [22:04] idefine has joined the channel [22:04] jbrokc_ has joined the channel [22:04] mikeal has joined the channel [22:04] torm3nt has joined the channel [22:04] ph^_ has joined the channel [22:05] ryanfitz has joined the channel [22:05] chjj: jslinux might be the coolest thing ever made [22:05] jnbek has joined the channel [22:07] aaronmcadam has joined the channel [22:07] Klaus_Dieter: well I get this one: error: #error "For thumb inter-working we require an architecture which supports blx" but google only referrs to chromium [22:07] bnoordhuis: Klaus_Dieter: what cpu are you targeting? [22:08] Klaus_Dieter: marvel kirkwood so I set armv5t [22:08] Klaus_Dieter: in the deps/v8/SConstruct [22:09] Klaus_Dieter: not sure where else it should be set [22:09] bradleyg has joined the channel [22:10] Klaus_Dieter: I am now trying to set it in wscript as well [22:11] bnoordhuis: Klaus_Dieter: that's a v8 error, editing the SConstruct file should be enough [22:14] jbrokc_ has joined the channel [22:15] blup has joined the channel [22:16] Klaus_Dieter: well I did add -march=armv5t in a couple more places and now this part started to work. Reviewing the compile command helps to double check whether -march actually pops up... [22:16] cjm has joined the channel [22:16] Klaus_Dieter: thank you bnoordhuis [22:16] fmeyer has joined the channel [22:20] avalanche123 has joined the channel [22:21] brianloveswords has joined the channel [22:23] chrisvwebdev has joined the channel [22:31] konobi: bnoordhuis: with the ACE thing... it'd be nice to have it so that it's still an unknown method... but you can still have access to it and then you can choose if/how you want to service it [22:31] chrisvwebdev has joined the channel [22:31] diogogmt has joined the channel [22:31] bnoordhuis: konobi: yes, that was what i was thinking [22:33] bearnard has joined the channel [22:34] TooTallNate: is there a way to find the size of a published package? [22:34] TooTallNate: npm needs progress bars :\ [22:34] harthur has joined the channel [22:35] TheJH: TooTallNate, look in futon [22:35] TheJH: TooTallNate, http://isaacs.iriscouch.net/_utils/database.html?registry [22:38] mehtryx has joined the channel [22:38] MatthewS has joined the channel [22:42] k1ttty has joined the channel [22:44] hipsterslapfight has joined the channel [22:46] maushu: Anyone here made a single page web application? [22:46] dnyy has joined the channel [22:46] TheJH: maushu, mmalecki and I started working on one, why? [22:46] maushu: TheJH, what kind of communication did you decide between the application and server? [22:47] TheJH: maushu, dnode (over socket.io) [22:47] maushu: Ah, RPC. [22:48] maushu: TheJH, I was trying REST but feels overkill for a SPA. [22:49] shinuza has joined the channel [22:49] johnnywengluu: tjholowaychuk: yo .. i can't figure this simple example code out https://gist.github.com/1392463 it says timeout of 2000s exceeded .. you know what the issue is? the folder is successfully created [22:50] tjholowaychuk: johnnywengluu just do fs.mkdir(dir, done) [22:50] tjholowaychuk: the other thing you're doing there [22:50] tjholowaychuk: doesn't do anything [22:51] johnnywengluu: tjholowaychuk: 1. why isn't it doing anything? it's calling done() ? [22:52] enmand has joined the channel [22:52] johnnywengluu: 2. it didn't work even though i changed it :/ [22:52] tjholowaychuk: if (err) return done(err); [22:52] tjholowaychuk: done() [22:52] tjholowaychuk: is exactly the same as [22:52] tjholowaychuk: dosomething(done) [22:52] johnnywengluu: oh you meant that [22:52] johnnywengluu: but then the problem is not how i wrote it .. it still doens't work any clue? [22:52] RyanW has left the channel [22:53] tjholowaychuk: looks fine [22:53] tjholowaychuk: try putting the beforeEach in a describe() [22:53] tjholowaychuk: though it has a global suite [22:53] tjholowaychuk: so that should be fine [22:54] johnnywengluu: tjholowaychuk: https://gist.github.com/1392463 here is the output .. a bug? [22:54] tjholowaychuk: shove some console.logs in there [22:54] tjholowaychuk: is it actually taking that long? [22:54] tjholowaychuk: (doubt it) [22:54] tjholowaychuk: perhaps coffeescript is generating something mocha doesnt like [22:55] johnnywengluu: tjholowaychuk: i put beforeEach inside describe but the problem remains [22:55] johnnywengluu: i try in js [22:55] tjholowaychuk: hm [22:55] pixel13 has joined the channel [22:56] subbyyy has joined the channel [22:56] pixel13 has left the channel [22:56] phiggins has joined the channel [22:57] johnnywengluu: the same error :( [22:57] tjholowaychuk: gist that i'll try it [22:57] adrianmg has joined the channel [22:57] adrianmg has left the channel [22:58] subbyyy has joined the channel [22:58] johnnywengluu: tjholowaychuk: https://gist.github.com/1392463 [22:58] johnnywengluu: both codes are there [22:59] johnnywengluu: i put the file in test/file.js|coffee [22:59] tjholowaychuk: works for me [22:59] johnnywengluu: wt [22:59] tjholowaychuk: oh wait [22:59] tjholowaychuk: in 0.4.x [22:59] tjholowaychuk: i get bad argument from node [22:59] tjholowaychuk: oh [23:00] tjholowaychuk: you're missing the perms [23:00] tjholowaychuk: duh [23:00] tjholowaychuk: oh nvm [23:00] tjholowaychuk: says it defaults [23:00] nils_r has joined the channel [23:00] tjholowaychuk: try fs.mkdir(path, 0755, done) [23:00] johnnywengluu: im logged in as root [23:01] johnnywengluu: so i should have whatever permission [23:01] johnnywengluu: could you try sudo su too [23:01] johnnywengluu: and the folder is created [23:01] tjholowaychuk: are you using node 0.4.x? [23:01] johnnywengluu: no [23:01] johnnywengluu: 0.6.0 [23:01] johnnywengluu: i see .. perhaps thats the problem [23:01] tjholowaychuk: hm well yeah it works fine for me in 0.6.x [23:01] GauthierD has joined the channel [23:01] tjholowaychuk: couple milliseconds [23:02] secretjudge: hey, I got a question about the redis session store. [23:02] johnnywengluu: tjholowaychuk: oh it worked with 0755! [23:02] secretjudge: (and its relationship to redis) [23:02] nrajlich has joined the channel [23:02] tjholowaychuk: johnnywengluu weird maybe there is just a reporting bug [23:02] tjholowaychuk: i'll look into that [23:03] tomyan has joined the channel [23:03] secretjudge: id like to know whether it's "best practice" to use the redis session store with the redis-client [23:04] johnnywengluu: tjholowaychuk: wiii thanks for the help! [23:05] jacobrask has joined the channel [23:06] secretjudge: hello? [23:06] johnnywengluu: world [23:06] secretjudge: :-) [23:06] ovaillancourt: secretjudge: is it for express? [23:08] ovaillancourt: (or connect?) [23:08] secretjudge: so, here's the deal: if I'm using the session store, i get to store objects in a particular session. However, I'd also like to do "redis" operations on some of these objects. Is it "bad" to have both the redis session store AND the redis client and store the session in the store, but the objects through the client? [23:08] secretjudge: is that an overkill? [23:09] secretjudge: moreover, I'd like to have some association between the two. I suppose I'd have to expire the objects in my redis client by using a timestamp? [23:10] ovaillancourt: ok, but are you talking about connect/express sessions or some other session module? [23:10] ovaillancourt: or a session module that you coded yourself [23:11] ovaillancourt: oh [23:12] ovaillancourt: so you mean mixing up session data with "client" data in the same redis store? [23:13] Glenjamin_ has joined the channel [23:13] phiggins has joined the channel [23:13] nrajlich has joined the channel [23:13] nils_r has joined the channel [23:13] subbyyy has joined the channel [23:13] shinuza has joined the channel [23:13] brianloveswords has joined the channel [23:13] aaronmcadam has joined the channel [23:13] jnbek has joined the channel [23:13] ixti has joined the channel [23:13] woeye has joined the channel [23:13] paq has joined the channel [23:13] jldbasa has joined the channel [23:13] pHcF has joined the channel [23:13] Sorella has joined the channel [23:13] mike5w3c has joined the channel [23:13] Klaus_Dieter has joined the channel [23:13] __class__ has joined the channel [23:13] maxogden has joined the channel [23:13] tlynn has joined the channel [23:13] eb4890 has joined the channel [23:13] adrianF has joined the channel [23:13] lzskiss has joined the channel [23:13] zorzar has joined the channel [23:13] rauchggg has joined the channel [23:13] tjholowaychuk has joined the channel [23:13] cognominal has joined the channel [23:13] AAA_awright_0 has joined the channel [23:13] jbpros has joined the channel [23:13] garrensmith has joined the channel [23:13] baudehlo has joined the channel [23:13] kkszysiu has joined the channel [23:13] sstephenson_ has joined the channel [23:13] martin_sunset has joined the channel [23:13] mandric has joined the channel [23:13] Unknown53136 has joined the channel [23:13] Wizek has joined the channel [23:13] devongovett has joined the channel [23:13] VeXii has joined the channel [23:13] tshpaper has joined the channel [23:13] `3E|Zzz has joined the channel [23:13] patcito has joined the channel [23:13] robotmay has joined the channel [23:13] kitt has joined the channel [23:13] pig_ has joined the channel [23:13] davidascher has joined the channel [23:13] xeodox has joined the channel [23:13] fson_ has joined the channel [23:13] igl1 has joined the channel [23:13] TheJH has joined the channel [23:13] CiRlE has joined the channel [23:13] dannyamey has joined the channel [23:13] rskuja has joined the channel [23:13] ps_jinx has joined the channel [23:13] AD7six has joined the channel [23:13] jstash has joined the channel [23:13] dubenstein has joined the channel [23:13] stephank has joined the channel [23:13] sriley has joined the channel [23:13] qFox has joined the channel [23:13] criswell has joined the channel [23:13] heavysixer has joined the channel [23:13] bogomips2__ has joined the channel [23:13] xy has joined the channel [23:13] tomb has joined the channel [23:13] bnoordhuis has joined the channel [23:13] purr has joined the channel [23:13] davidbanham has joined the channel [23:13] Blorb has joined the channel [23:13] jsvana has joined the channel [23:13] _unary has joined the channel [23:13] elliottcable has joined the channel [23:13] __doc__ has joined the channel [23:13] peterrs has joined the channel [23:13] jacobolus has joined the channel [23:13] Epeli has joined the channel [23:13] fbartho has joined the channel [23:13] thoughtfusion has joined the channel [23:13] Wa has joined the channel [23:13] finsken_ has joined the channel [23:13] vsync_ has joined the channel [23:13] jamescarr has joined the channel [23:13] koo3 has joined the channel [23:13] nzjames has joined the channel [23:13] dmojoryder has joined the channel [23:13] piscisaureus_ has joined the channel [23:13] lmorchard has joined the channel [23:13] Jarda has joined the channel [23:13] Drakonite has joined the channel [23:13] Dreamer3 has joined the channel [23:13] Advant has joined the channel [23:13] Shrink has joined the channel [23:13] booyaa has joined the channel [23:13] matjas has joined the channel [23:13] tahu has joined the channel [23:13] ryan[WIN] has joined the channel [23:13] _baton_ has joined the channel [23:13] descipher has joined the channel [23:13] tiglionabbit has joined the channel [23:13] Sami_ZzZ has joined the channel [23:13] brainproxy has joined the channel [23:13] sstreza has joined the channel [23:13] xerox has joined the channel [23:13] chrischris has joined the channel [23:13] RISCi_ATOM has joined the channel [23:13] imarcusthis has joined the channel [23:13] kuya has joined the channel [23:13] CoverSlide has joined the channel [23:13] chunhao_ has joined the channel [23:13] a_meteorite has joined the channel [23:13] wang has joined the channel [23:13] d_low has joined the channel [23:13] r04r has joined the channel [23:13] laprice has joined the channel [23:13] versicolor has joined the channel [23:13] xbddc has joined the channel [23:13] WarheadsSE has joined the channel [23:13] fcoury has joined the channel [23:13] SvenDowideit has joined the channel [23:13] azend has joined the channel [23:13] slloyd has joined the channel [23:13] TheDeveloper has joined the channel [23:13] ollie has joined the channel [23:13] incon has joined the channel [23:13] keeto has joined the channel [23:13] joaquin_win has joined the channel [23:13] Inhuman has joined the channel [23:13] Lorentz has joined the channel [23:13] recycle_ has joined the channel [23:13] apoc has joined the channel [23:13] fearphage has joined the channel [23:13] ryanrolds has joined the channel [23:13] pksunkara has joined the channel [23:13] xtat has joined the channel [23:13] PyroPeter has joined the channel [23:13] freewil has joined the channel [23:13] hazridi has joined the channel [23:13] L_star has joined the channel [23:13] pquerna has joined the channel [23:13] fuzzyone has joined the channel [23:13] thisandagain has joined the channel [23:13] Clex has joined the channel [23:13] kimico has joined the channel [23:13] maeldur has joined the channel [23:13] jburkhart has joined the channel [23:13] sugyan has joined the channel [23:13] thedjinn has joined the channel [23:13] dabailey has joined the channel [23:13] Pierre_N has joined the channel [23:13] Leonidas_ has joined the channel [23:13] Skyec_ has joined the channel [23:13] tbranyen has joined the channel [23:13] paulbaumgart has joined the channel [23:13] balgarath has joined the channel [23:13] hotspants has joined the channel [23:13] zamolxes has joined the channel [23:13] nuba has joined the channel [23:13] kloeri has joined the channel [23:13] avih has joined the channel [23:13] Danielpk has joined the channel [23:13] Marak has joined the channel [23:13] necromancer has joined the channel [23:13] russfrank has joined the channel [23:13] ktos has joined the channel [23:13] gerard0 has joined the channel [23:13] jvolkman has joined the channel [23:13] gf3 has joined the channel [23:13] tanepiper has joined the channel [23:13] blissdev has joined the channel [23:13] mattly has joined the channel [23:13] majek has joined the channel [23:13] beawesomeinstead has joined the channel [23:13] niftylettuce has joined the channel [23:13] _th_n has joined the channel [23:13] pandark_ has joined the channel [23:13] ljackson has joined the channel [23:13] otih has joined the channel [23:13] ajpiano has joined the channel [23:13] mmalecki has joined the channel [23:13] Guest16578 has joined the channel [23:13] robinduckett has joined the channel [23:13] Gruni has joined the channel [23:13] zentooo has joined the channel [23:13] T-Co has joined the channel [23:13] yenz has joined the channel [23:13] nopnop has joined the channel [23:13] __directory has joined the channel [23:13] nebiros has joined the channel [23:13] shachaf has joined the channel [23:13] davv3_ has joined the channel [23:13] jspiros has joined the channel [23:13] Circlefusion has joined the channel [23:13] zpao has joined the channel [23:13] metellus has joined the channel [23:13] noob13 has joined the channel [23:13] raydeo has joined the channel [23:13] Raynos has joined the channel [23:13] dscape has joined the channel [23:13] bradwright has joined the channel [23:13] Fabryz has joined the channel [23:13] footyfish has joined the channel [23:13] nym has joined the channel [23:13] JKarsrud has joined the channel [23:13] jeremyselier has joined the channel [23:13] ralph has joined the channel [23:13] strax has joined the channel [23:13] olegp has joined the channel [23:13] salazr_ has joined the channel [23:13] garann has joined the channel [23:13] lmatteis has joined the channel [23:13] ryanseddon has joined the channel [23:13] romainhuet has joined the channel [23:13] cainus has joined the channel [23:13] SubStack has joined the channel [23:13] __main__ has joined the channel [23:13] arkx has joined the channel [23:13] Bonuspunk has joined the channel [23:13] matti has joined the channel [23:13] odyniec has joined the channel [23:13] _root_ has joined the channel [23:13] minerale has joined the channel [23:13] BombStrike has joined the channel [23:13] zedas has joined the channel [23:13] freeformz has joined the channel [23:13] M2Ys4U has joined the channel [23:13] jlaire has joined the channel [23:13] ultramagnus has joined the channel [23:13] pradeepto has joined the channel [23:13] swaj has joined the channel [23:13] lukegb has joined the channel [23:13] trupppOFF has joined the channel [23:13] munro has joined the channel [23:13] vereteran has joined the channel [23:13] Lingerance has joined the channel [23:13] Lartsa has joined the channel [23:13] nw` has joined the channel [23:13] systemfault has joined the channel [23:13] callumacrae has joined the channel [23:13] Kami_ has joined the channel [23:13] xandy has joined the channel [23:13] cjackson has joined the channel [23:13] epa_ has joined the channel [23:13] wao has joined the channel [23:13] onr has joined the channel [23:13] jakeskik has joined the channel [23:13] meder has joined the channel [23:13] KiNgMaR has joined the channel [23:13] sdboyer has joined the channel [23:13] tg has joined the channel [23:13] pkrumins has joined the channel [23:13] tmm1 has joined the channel [23:13] ralphholzmann has joined the channel [23:13] PhilK has joined the channel [23:13] 18WAAVQ6T has joined the channel [23:13] royh has joined the channel [23:13] DJBouche has joined the channel [23:13] Dmitrijus has joined the channel [23:13] franck34 has joined the channel [23:13] dcelix has joined the channel [23:13] Slashbunny has joined the channel [23:13] Gekz has joined the channel [23:13] mattp_ has joined the channel [23:13] gwoo has joined the channel [23:13] ossareh has joined the channel [23:13] ByteCrunch has joined the channel [23:13] DRMacIver has joined the channel [23:13] DoNaLd` has joined the channel [23:13] pdonald has joined the channel [23:13] JP has joined the channel [23:13] rektide has joined the channel [23:13] scoates has joined the channel [23:13] zinkem has joined the channel [23:13] nail_ has joined the channel [23:13] ekes has joined the channel [23:13] Sembiance has joined the channel [23:13] clickmoon has joined the channel [23:14] mmalecki: bnoordhuis: yay! <3 [23:14] bnoordhuis: Klaus_Dieter: compiling node on arm is what separates the men from the boys [23:14] xerox has joined the channel [23:14] sstephenson_ has joined the channel [23:14] __doc__ has joined the channel [23:14] mmalecki: bnoordhuis: also, https://github.com/joyent/node/pull/1983 , can you review it? [23:14] jellosea has joined the channel [23:14] a11235 has joined the channel [23:14] sstephenson has joined the channel [23:14] mrkurt has joined the channel [23:15] stonebranch has joined the channel [23:15] idefine has joined the channel [23:15] Squeese_ has joined the channel [23:15] blueadept` has joined the channel [23:15] spathi has joined the channel [23:15] salva1 has joined the channel [23:15] verdoc has joined the channel [23:15] merlin83 has joined the channel [23:15] FMJaggy has joined the channel [23:15] akiva has joined the channel [23:15] ekryski has joined the channel [23:15] FIQ has joined the channel [23:15] kaarlo has joined the channel [23:15] AAA_awright has joined the channel [23:15] githogori has joined the channel [23:15] chjj has joined the channel [23:15] mac^ has joined the channel [23:15] MrNibbles has joined the channel [23:15] jzacsh has joined the channel [23:15] Will| has joined the channel [23:15] qmx has joined the channel [23:15] masch has joined the channel [23:15] tellnes has joined the channel [23:15] Ezku has joined the channel [23:15] Evanlec has joined the channel [23:15] s0enke has joined the channel [23:15] stbuehler has joined the channel [23:15] stutter has joined the channel [23:15] mikegerwitz has joined the channel [23:15] tek has joined the channel [23:15] sveisvei has joined the channel [23:15] tomh has joined the channel [23:15] iaincarsberg has joined the channel [23:15] Hosh has joined the channel [23:15] sander_ has joined the channel [23:15] topaxi has joined the channel [23:15] fson has joined the channel [23:15] er1c_ has joined the channel [23:15] omni5cience has joined the channel [23:15] Guest18468 has joined the channel [23:15] mbruce has joined the channel [23:15] trepan has joined the channel [23:15] tobmastr has joined the channel [23:15] jslatts has joined the channel [23:15] aapeli has joined the channel [23:15] Tobias| has joined the channel [23:15] RichardBronosky has joined the channel [23:15] matt_c has joined the channel [23:15] jesusabdullah has joined the channel [23:15] trodrigues has joined the channel [23:15] mmalecki: bnoordhuis: that's low priority thoug. [23:15] a11235 has joined the channel [23:15] mmalecki: *though [23:15] Klaus_Dieter: bnoordhuis: well I doubt it is about men and boys... instead it is about actually printing error messages ;) [23:15] mekwall has joined the channel [23:15] mehtryx has joined the channel [23:15] joshgillies has joined the channel [23:15] maushu has joined the channel [23:15] josh9 has joined the channel [23:15] Poetro has joined the channel [23:15] Fuu has joined the channel [23:15] Druid_ has joined the channel [23:15] jxie has joined the channel [23:15] yebyen has joined the channel [23:15] yorick has joined the channel [23:15] Nuck has joined the channel [23:15] sechrist has joined the channel [23:15] JmZ_ has joined the channel [23:15] wereHamster has joined the channel [23:15] justmoon has joined the channel [23:15] jhbot has joined the channel [23:15] DrPizza has joined the channel [23:15] HolyGoat has joined the channel [23:15] crodas has joined the channel [23:15] MooGoo has joined the channel [23:15] viro has joined the channel [23:15] forzan has joined the channel [23:15] seb` has joined the channel [23:15] Kester has joined the channel [23:15] rook2pawn has joined the channel [23:15] pusewicz_ has joined the channel [23:15] _sorensen_ has joined the channel [23:15] IRCCloud has joined the channel [23:15] cconstantine has joined the channel [23:15] roger_raymond has joined the channel [23:15] guybrush has joined the channel [23:15] SlexAxton has joined the channel [23:15] tomaw has joined the channel [23:15] iFire has joined the channel [23:15] dawolf has joined the channel [23:15] coffeecup has joined the channel [23:15] a11235 has joined the channel [23:15] bnoordhuis: mmalecki: oh sorry, i'd forgotten about that one [23:15] MUILTFN has joined the channel [23:15] conntrack has joined the channel [23:15] bnoordhuis: can you ping me about that tomorrow? [23:16] mmalecki: bnoordhuis: proof of weekly pokes working :) [23:16] mmalecki: bnoordhuis: ok [23:16] DrPizza has joined the channel [23:16] jellosea: this probably isn't a node.js specific question, but i'm trying to write a unit test for a piece of code that accepts a udp packet, parses it and calls a specifi function call in another module. whats the right way to unit test this? i want to pass it a dummy udp packet and then just ensure that the proper function call is called with the right parameters. how can i check that a function call is called properly through a unit test? [23:16] _unary_ has joined the channel [23:16] mmalecki: jellosea: monkey-patch/mock it [23:17] jellosea: mmalecki: whats monley-patch [23:17] jellosea: *monkey [23:17] jellosea: or how do i mock it? [23:17] jellosea: how do i mock it such that i can tell that its beign called [23:17] zomg: jellosea: well I'd assume you can pass the callback to it [23:18] jellosea: sure i can pass a callback to the function [23:18] jellosea: that its supposed to call [23:18] zomg: so you could have something like var testPasses = false; parsePacket(function() { testPasses = true; }); assertTrue(testPasses); [23:18] zomg: Assuming it's synchronous. [23:19] jellosea: zomg: well first of all the function call is triggered by me sending a udp packet [23:19] zomg: Well yes obviously it won't work exactly like my example, but that is the basic premise :) [23:19] Klaus_Dieter: hmm # /usr/local/bin/node [23:19] Klaus_Dieter: Illegal instruction [23:19] jellosea: yeah but.. [23:19] Klaus_Dieter: it built successfully [23:19] jellosea: okay well are you saying to modify the fucntino it calls? [23:19] tdubellz has joined the channel [23:19] zomg: No I mean you give it a callback which marks the test as complete once it's called [23:20] zomg: If it never gets called, then the test will never succeed [23:21] Klaus_Dieter: this is the strace: http://pastebin.com/sKbWD7T7 [23:21] jellosea: zomg: well i can't specify a callback actually since im just sending a udp packet [23:21] jellosea: in the packet i'm not specifiying a callback [23:21] jellosea: receivePacket () { usePacket(param1, param2); } [23:21] jellosea: that function will get called when i send a packet [23:21] jellosea: and i want to make sure usepacket is called with param1 and param2 [23:22] ianl` has joined the channel [23:22] zomg: Well what does usePacket do? [23:22] jellosea: its a separate function call [23:22] stalled has joined the channel [23:22] jellosea: inside receivePacket it parses the packet and then calls usePacket with the right parameters [23:22] bnoordhuis: Klaus_Dieter: can you hook it up to gdb and disassemble the offending function? [23:22] Glenjamin has joined the channel [23:22] jellosea: probably shouldnt be called usePacket since its not really using the packet [23:23] bnoordhuis: it's probably a floating point opcode or some such that your cpu doesn't support [23:23] zomg: jellosea: so what is the result of usePacket then? Does it call something else? Modify the state of the object? [23:23] cjheath has joined the channel [23:23] SuMarDi has joined the channel [23:23] jellosea: not really.. it does some other complicated stuff i guess.. i can see where you are going such that you want to make sure that usepacket did is job [23:23] zomg: If it's an internal function of the object under test, you probably should not test that it gets called, but rather than the result after processing/using the packet is the expected result [23:24] jellosea: but i want to just verify that it gets called [23:24] Klaus_Dieter: bnoordhuis: I am not sureProgram received signal SIGILL, Illegal instruction. [23:24] Klaus_Dieter: 0x00263364 in v8::internal::ArmUsingHardFloatHelper() () [23:24] N0va` has joined the channel [23:24] jellosea: is it possible just to verify it gets called? [23:24] Klaus_Dieter: how is that ^ well my cpu does not have an FPU maybe that is why [23:24] zomg: You probably could just replace it with a mocked function assuming it's accessible from the outside [23:24] monokrom_ has joined the channel [23:24] zomg: It's not a very ideal approach though in my opinion :) [23:25] bnoordhuis: Klaus_Dieter: do you see 'fpu : yes' in /proc/cpuinfo? [23:25] Klaus_Dieter: bnoordhuis: no - also I know it does not have an fpu [23:25] skm has joined the channel [23:26] bnoordhuis: Klaus_Dieter: okay, in that case you need to compile with -mfloat-abi=soft [23:26] bnoordhuis: i.e. emulate floating point ops [23:26] Klaus_Dieter: bnoordhuis: so I just add that to CCflags? [23:27] bnoordhuis: Klaus_Dieter: and CXXFLAGS [23:27] Klaus_Dieter: allright [23:27] knite has joined the channel [23:27] conntrack has joined the channel [23:28] knite: anyone here having trouble with lessc (command-line less)? latest version of less/node not producing output. [23:29] jellosea: zomg: can you give me an example of how to replace it with a mocked function? [23:29] Klaus_Dieter: bnoordhuis: well I do hope it is worth it and etherpad-lite will run on this arm box well.... the real deal for etherpad is using 50% cpu and 1GB ram even when idle... [23:29] jellosea: i need to make sure that is the same function.. not a different function, since like if someone changes the code they aren't gonna change the mocked version most probably [23:30] bnoordhuis: Klaus_Dieter: you can claim a lot of geek credit for it if nothing else [23:31] zomg: jellosea: well, in your test you would just do something like obj.usePacket = function(foo, bar) { /* check args */ } [23:31] Klaus_Dieter: bnoordhuis: even getting etherpad-full to run on that box was - well - interesting [23:31] jellosea: zomg that works, thanks ! [23:32] johnnywengluu: tjholowaychuk: I see you are using the a().b().c().d() async coding style .. is there a lib for ths? [23:32] secretjudge has joined the channel [23:32] tjholowaychuk: johnnywengluu ? for what? [23:33] tjholowaychuk: not sure what you mean [23:33] johnnywengluu: for that kind of coding style [23:33] secretjudge: sorry, got disconnected. So if anybody responded before, I didnt get any response. If no, then whatever, it was at least worth a try [23:33] tjholowaychuk: im not sure what you're referring to though [23:33] tjholowaychuk: chaining? that doesn't really mean async [23:33] secretjudge: (re: redis and sessions) [23:33] johnnywengluu: tjholowaychuk: https://github.com/LearnBoost/soda [23:34] tjholowaychuk: ah soda, nah hard to wrap stuff like that in an api that works for everything [23:34] johnnywengluu: here you are writing it as chaining instead .. is there a lib for this or do you just make the API better [23:34] tjholowaychuk: that was just specific to soda [23:34] johnnywengluu: ok [23:34] tjholowaychuk: but it's easy to write a simple queue like that [23:34] Druid_ has joined the channel [23:34] akihito_s has joined the channel [23:35] jellosea: yeah just get the object to return itself (this) [23:35] jellosea: so you can chain [23:35] pickels_ has joined the channel [23:35] jamescarr has joined the channel [23:36] enmand has joined the channel [23:37] Prabs has joined the channel [23:39] liar has joined the channel [23:40] EvRide has joined the channel [23:40] Klaus_Dieter: well it appears also CFLAGS must be set [23:43] mehlah has joined the channel [23:43] jbrokc_ has joined the channel [23:44] zivester has joined the channel [23:44] ChrisPartridge has joined the channel [23:45] skm has joined the channel [23:45] shipit has joined the channel [23:49] stantona has joined the channel [23:49] thoughtfusion_ has joined the channel [23:51] dreamdust has joined the channel [23:51] broofa has joined the channel [23:53] jbrokc_ has joined the channel [23:53] felixge has joined the channel [23:53] felixge has joined the channel [23:54] cnu has joined the channel [23:54] jbpros has joined the channel [23:56] cjm has joined the channel [23:56] CIA-109: node: 03Ben Noordhuis 07v0.6 * r55a8a3a 10/ test/simple/test-fs-chmod.js : [23:56] CIA-109: node: test: better fs.lchmod() availability check [23:56] CIA-109: node: fs.lchmod() is a BSD-ism, not a "not Windows"-ism. - http://git.io/dnj_Iw [23:59] johnnywengluu: tjholowaychuk: the same issue but this time with writeFile https://gist.github.com/1392537 and there is no 0755 for me to use [23:59] bogomips2_ has joined the channel [23:59] rope has joined the channel [23:59] tjholowaychuk: johnnywengluu js pwease [23:59] CIA-109: libuv: 03Bert Belder 07v0.6 * r45b976a 10/ src/win/error.c : Win: add mapping for ERROR_ACCESS_DENIED - http://git.io/SA1VSQ