[00:01] pifantastic has joined the channel [00:01] MrNibbles: 6600000000.5 >> 0 in chrome 12 overflows :( [00:01] MrNibbles: same with ~66000000000.5 [00:02] MrNibbles: it appears to do the same under node [00:02] apanda has joined the channel [00:03] bnoordhuis_: MrNibbles: that's expected behaviour, shifts in ecmascript are done on signed 32-bits integers [00:03] alindeman has joined the channel [00:05] jakehow has joined the channel [00:05] MrNibbles: bnoordhuis_: of course!!!! [00:05] MrNibbles: thank you :) [00:06] [[zzz]] has joined the channel [00:08] luke` has joined the channel [00:11] [[zz]] has joined the channel [00:12] nerdfiles has left the channel [00:12] brianseeders has joined the channel [00:12] mcluskydodallas has joined the channel [00:12] cognominal has joined the channel [00:15] admc has joined the channel [00:17] BillyBreen has joined the channel [00:18] wookiehang0ver has joined the channel [00:18] Aria has joined the channel [00:21] Cleer has joined the channel [00:22] brettgoulder has joined the channel [00:23] [[zz]] has joined the channel [00:27] MrNibbles: so >>> 0 appears to work correctly for unsigned 32bit ints [00:28] Bonuspunkt has joined the channel [00:30] postwait has joined the channel [00:34] Xano has joined the channel [00:36] paul_k has joined the channel [00:37] dibber has joined the channel [00:41] Wizek_ has joined the channel [00:42] cccaldas has joined the channel [00:42] tonymilne has joined the channel [00:45] jtsnow has joined the channel [00:46] theCole has joined the channel [00:47] rfay has joined the channel [00:49] perlmonkey2 has joined the channel [00:52] neoesque has joined the channel [00:56] broofa_ has joined the channel [00:56] darshanshankar_ has joined the channel [00:57] jtsnow has joined the channel [01:02] abraxas has joined the channel [01:06] Swimming_bird has joined the channel [01:06] jtsnow has joined the channel [01:08] level09 has joined the channel [01:10] weezle has left the channel [01:10] rfay_ has joined the channel [01:14] skm has joined the channel [01:15] wookiehangover has joined the channel [01:20] sub_pop has joined the channel [01:24] eazyigz has joined the channel [01:26] eazyigz has left the channel [01:28] kivan has joined the channel [01:29] tonymilne: is this thing on? [01:29] kivan: it's on [01:31] kivan: who else is awake? anyone from GMT+10 ? [01:31] cccaldas has joined the channel [01:31] hybsch has joined the channel [01:32] e6nian has joined the channel [01:33] SuMarDi has joined the channel [01:34] rfay_ has joined the channel [01:36] [[zzz]] has joined the channel [01:38] sonnym has joined the channel [01:39] Intel_iX has joined the channel [01:40] tk has joined the channel [01:41] DTrejo has joined the channel [01:43] escii has joined the channel [01:44] escii: hi nodes [01:44] justicefries has joined the channel [01:44] kivan: ohai [01:52] darshanshankar has joined the channel [01:53] theCole has joined the channel [01:54] DTrejo has joined the channel [01:55] _Darrow has joined the channel [01:56] _Darrow: Hey everyone, I'm deploying on heroku for the first time, but heroku keeps thinking my node app is a rails app. [01:56] _Darrow: Anyone know why? [01:56] jtsnow has joined the channel [01:56] Murvin: bnoordhuis: do you know how to handle destroying a http.request? if I run http.request (on command line), the http.request is still hanging even on('end') is called. i tried client.destroy(). however,it only works if socket is still connecting. and it won't work inside the on('end') when socket is null. [01:59] aredridel has joined the channel [01:59] saikat has joined the channel [02:01] jacobolus has joined the channel [02:05] zeade has joined the channel [02:05] zodiak has joined the channel [02:06] mbrevoort has joined the channel [02:07] sounko has joined the channel [02:07] Corren has joined the channel [02:09] xandrews has joined the channel [02:11] random123 has joined the channel [02:12] AvianFlu has joined the channel [02:12] jerrysv has joined the channel [02:13] skm has joined the channel [02:14] dshaw_ has joined the channel [02:15] random123 has joined the channel [02:17] AvianFlu has joined the channel [02:18] robhawkes has joined the channel [02:22] mandric has joined the channel [02:23] darshanshankar: jesusabdullah: you there? [02:27] enobrev has joined the channel [02:30] Robdor has joined the channel [02:32] robhawkes has joined the channel [02:33] bradleymeck has joined the channel [02:34] prettyrobots has joined the channel [02:35] prettyrobots: Is this a place where I can NOT talk about Google+? [02:35] jesusabdullah: darshanshankar: I am! [02:35] jesusabdullah: darshanshankar: Laptop's dying, though [02:35] Sami_ZzZ has joined the channel [02:37] sorensen: uh [02:37] sorensen: i dont talk about g+ :) [02:38] devongovett has joined the channel [02:38] SubStack: http://substack.net/images/node_turtle.png [02:38] DTrejo has joined the channel [02:39] devongovett: SubStack +1 [02:40] briznad has joined the channel [02:40] Lorentz: SubStack++ [02:40] catb0t: SubStack now has 2 beers [02:40] jesusabdullah: Needs fire. [02:42] Jakwac has joined the channel [02:42] SubStack: it does! [02:43] jerrysv: out of its mouth [02:45] iammerrick has joined the channel [02:45] jslatts has joined the channel [02:45] iammerrick: what language does the =: syntax come from? [02:45] seawise_ has joined the channel [02:46] towski has joined the channel [02:47] cccaldas_ has joined the channel [02:47] Jakwac: What does that syntax do? [02:48] hassox has joined the channel [02:48] hassox has joined the channel [02:50] jerrysv: jakwac: it's a mathematical symbol [02:50] ryanfitz has joined the channel [02:50] wilmoore has joined the channel [02:51] iammerrick: Jakwac: well its not in javascript [02:51] iammerrick: but it is used for blocks [02:51] iammerrick: so [02:51] iammerrick: name =: return 1+2; [02:51] jerrysv: defined to be - so, denotes: var a = 'abc' -> a := 'abc' [02:51] jerrysv: er, =: [02:51] cccaldas has joined the channel [02:52] iammerrick: jerrysv: The examples I've seen it used to denote a function [02:52] necrodearia has joined the channel [02:52] iammerrick: like "do" in ruby [02:52] jerrysv: iammerrick: same diff -- function is defined to be [02:53] jerrysv: so, in the earlier return case, name is defined to be the return value of 1 + 2 [02:53] iammerrick: jerrysv: ok so what language does it comef rom [02:53] jerrysv: math [02:53] iammerrick: meth [02:53] iammerrick: math [02:53] iammerrick: oh [02:53] iammerrick: ok :-) [02:53] iammerrick: thanks [02:53] jerrysv: http://en.wikipedia.org/wiki/List_of_mathematical_symbols#Symbols [02:53] jerrysv: math :) [02:54] sw8sw8 has joined the channel [02:55] Marak has joined the channel [02:55] Marak: AHAHAHAHAH [02:55] Marak: http://substack.net/images/node_turtle.png NEW LOGO [02:57] darshanshankar: jesusabdullah: ill be in the office by 9pm if you want to sto by [02:58] guybrush: +1 for the turtle-logo! [02:59] jerrysv: but where's the fire? [02:59] jerrysv: marak: whatever became of that jsdom bug? [02:59] Asrar has joined the channel [02:59] Asrar: hello [03:00] Marak: jerrysv: :-p [03:00] jerrysv: hey, you coming up for oscon? [03:01] Marak: i dont think soi [03:02] jerrysv: bummer [03:02] confoocious has joined the channel [03:02] confoocious has joined the channel [03:02] Asrar: i'm trying to install node.js on window using cygwin. but when I run ./configure I get an error: No module named os [03:03] socketio\test\53 has joined the channel [03:03] emacsen has joined the channel [03:03] jerrysv: i really look forward to the full windows release where there's parity [03:05] shadow_s has joined the channel [03:05] rhdoenges has joined the channel [03:06] elifou has left the channel [03:07] Xano has joined the channel [03:08] rfay_ has joined the channel [03:08] mandric has joined the channel [03:09] Asrar: how do I install the python "os" module? isn't it supposed to be installed with python by default? [03:10] emacsen: Asrar, why not ask in #python? [03:10] Corren has joined the channel [03:10] Asrar: oyeah, I guess. I was tying to install node.s on window using cygwin, but i'm getting errors [03:11] Asrar: *node.js [03:12] emacsen: Anyone have a hash library working with ndistro? I've tried hashlib and I've tried Hash and neither is working as I expect [03:14] ngs has joined the channel [03:15] helber has joined the channel [03:16] mynyml has joined the channel [03:16] caiges has joined the channel [03:18] pyrony has joined the channel [03:18] jslatts has joined the channel [03:19] pyrony: hello everybody [03:19] pyrony: I have installed `zombie`, but it fails when I require('zombie') [03:19] pyrony: Error: Cannot find module 'zombie' [03:19] pyrony: kind of confused [03:20] addisonj_ has joined the channel [03:20] Aria: Where'd you install it? [03:21] pyrony: it's installed in ~/local/node/lib/node_modules [03:21] pyrony: and also seems to be in ~/.npm [03:21] Aria: Why'd you install it there? [03:22] pyrony: in which place? [03:22] Aria: Is your app in ~/local/node/lib/? [03:22] pyrony: no [03:22] seivan has joined the channel [03:22] Aria: Try installing it in your app. [03:22] jerrysv: what version of npm are you running? [03:22] pyrony: all node stuff is inside ~/local [03:22] pyrony: 1.0.15 [03:22] Aria: npm doesn't work like other package managers. [03:22] jerrysv: did you install -g ? [03:23] guybrush: pyrony: `npm ls | grep zombie` [03:23] pyrony: ooh hey Aria that worked [03:23] pyrony: thanks [03:23] Aria: Hehe. Sure thing. npm is weird, in a great wy. [03:23] Nexxy: Aria is a super hero [03:23] Nexxy: just fyi [03:24] emacsen: Aria, any idea on my problem then, Super Hero? :) [03:24] Aria: You only need to install things globally if they provide commands you want to run to manage things. [03:24] pyrony: that's what it seems to take for node.js to work ; ) j/k [03:24] hassox has joined the channel [03:24] jerrysv: indeed, and if you add a nice package.json, you can just npm install in the dir and it will just do the right thing [03:24] xandrews has joined the channel [03:24] Nexxy: pyrony, you'll get the hang of it ;3 [03:24] emacsen: Aria, I'm trying to install hashlib via ndistro and I can't see what I need to do to include it. I don't even see any javascript, just the compiled modules [03:25] Aria: hashes as in cryptographic? ENOEXPERIENCE. But modules can be C++-only. There doesn't have to be JS. [03:25] emacsen: Aria, hrm... Let me try playing with paths... [03:25] addisonj_: so, I am suddenly struggling to layout my client side code, anyone here have some nice example apps? that use some sort of dynamic js loading (require.js) [03:25] addisonj_: just looking for inspiration :P [03:25] Corren: is it unreasonable to use node to compose a page, and then cache it on the reverse proxy like nginx [03:27] hassox has joined the channel [03:27] matwill has joined the channel [03:27] idefine has left the channel [03:28] ropes has joined the channel [03:28] gxdssoft has joined the channel [03:28] jerrysv: corren: no [03:29] Aria: Corren: not at all. (does nginx cache now? Nice. USually I've heard people using Varnish) [03:29] Corren: well, I don't really know tbh [03:29] seivan has joined the channel [03:29] jerrysv: corren: but it does add to infrastructure if you don't already have something in place [03:29] Corren: currently I'm 100% nginx and node [03:29] Corren: but node is only for api work [03:29] Corren: and now I find myself doing some similar static composition all over the place [03:29] Corren: it would be nice to template it, compose on node, then have nginx cache it [03:30] Aria: Indeed. node could also cache, too -- either in RAM or on disk. It wouldn't be hard to write. Expiration policy is the hardest part -- and that can sometimes be easier if it's integrated with the app. [03:30] AvianFlu has joined the channel [03:30] emacsen: Aria, got it... wow this is a funky path! [03:31] Aria: emacsen: Oh yeah? [03:31] Corren: i'm trying to mitigate traffic to node as much as possible [03:31] Aria: Any particular reason, Corren? [03:31] emacsen: Aria, I have to put '/modules/hashlib/build/default' on my path... I consider that pretty funky :) [03:31] clifton has joined the channel [03:31] Swimming_bird has joined the channel [03:31] Aria: Heh, yeah. That's funky. Needs an index.js at least that just requires the long path. [03:31] Corren: just for growth management and sound design principles [03:31] seivan has joined the channel [03:31] Aria: Corren: And what principles apply? [03:32] Corren: let nginx do what it's best at :) [03:32] Aria: (though yeah, you may need to scale past one node -- and that involves some sort of distribution system) [03:32] Corren: and let node do what it's good at [03:32] Aria: Hehe. Node's good at a lot of things. [03:32] Corren: I already have mutliple node machines in production ;) [03:32] Aria: So there's leeway in those principles ;-) [03:32] jesusabdullah: darshanshankar: Sounds good, I'll try and be there! [03:32] Corren: yea, there's leeway [03:33] shadow_s: hey guys, i'm using freebsd and used ports to install nodejs... node works but npm wasn't installed, any ideas? [03:33] tbranyen: shadow_s: install npm [03:33] tbranyen: http://npmjs.org [03:33] shadow_s: i guess that would work :D [03:34] seivan has joined the channel [03:35] shadow_s: well, that was easy, thanks [03:35] tbranyen: np [03:35] mnaser: this might sound like a trolling question, but I was curious.. what are some popular use-cases for node.js -- because I can't think of any personally [03:36] tbranyen: mnaser: wanting to write a server backend that will perform well with minimal code and infrastructure on cheap hardware [03:36] seivan has joined the channel [03:37] jerrysv: i used it for security forensics the other day [03:37] mnaser: i'm with you on that, i saw the presentation on the site and it's fantastic, but any suggestions of a server backend… i can't think of anything, at least in web development [03:37] mnaser: i [03:37] mnaser: i'd love to leverage it's power [03:38] tbranyen: mnaser: wat [03:38] Brandonn has joined the channel [03:39] mnaser: for someone who develops online sites/applications, what are examples of node.js usage? (please forgive me, we do 100% rails work, I'm aware they're both two different things) -- but just curious [03:39] kmiyashiro: examples? [03:39] rhdoenges: transload.it is a good example [03:39] rhdoenges: but node works pretty much anywhere [03:39] tbranyen: mnaser: Github uses it to manage downloads [03:40] kmiyashiro: I made this: http://www.yepmap.com [03:40] kmiyashiro: never used node before [03:40] Aria: I've a hybrid IRC and web chat server. [03:40] Aria: I've an SMTP server. [03:40] kmiyashiro: barely know javascript [03:40] jerrysv: my freezer uses it: http://legitimatesounding.com:8080/ [03:40] mnaser: kmiyashiro: that is a very very sexy UI. [03:40] kmiyashiro: jerrysv: what sensor you use? [03:40] kmiyashiro: mnaser: thanks [03:40] rhdoenges: jerrysv: that is so effing cool [03:40] jerrysv: kmiyashiro: arduino [03:41] cafesofie has joined the channel [03:41] kmiyashiro: cool [03:41] jerrysv: rhdoenges: thanks! [03:41] kmiyashiro: been meaning to look at that [03:41] jerrysv: kmiyashiro: server-side code is up on github [03:41] Swimming_bird has joined the channel [03:41] seivan has joined the channel [03:41] jerrysv: it was a quick throw-together before a vacation [03:42] mnaser: isn't it a bit hard to setup a site under node.js -- because it's so abstract and basic so I guess it's best when used modularly for part elements of an application? [03:42] rhdoenges: take a look at express [03:42] jerrysv: modularity is good, but really you're just routing things around [03:42] rhdoenges: just because node gives you full control of http doesn't mean you need to use it. [03:43] Aria: Express for sure. It's a great take on Sinatra. Minimal, but delightfully usable. [03:43] kmiyashiro: I used express after building a very simple server from tutorials [03:43] rhdoenges: with a sweet javascript aftertaste [03:43] kmiyashiro: then I just ported all my stuff over [03:43] kmiyashiro: really easy [03:43] mnaser: express does look very sinatra like, I agree, but it probably can't get you far in building large apps [03:43] brettgoulder has joined the channel [03:44] kmiyashiro: mmm [03:44] kmiyashiro: I think some people would disagree [03:44] rhdoenges: yeah. [03:44] cognominal has joined the channel [03:44] Nexxy: ACTION presses the disagree button [03:45] boehm has joined the channel [03:45] rhdoenges: mnaser, express is meant for building apps of any size [03:45] rhdoenges: node scales [03:45] kmiyashiro: whoever's searching for "newcastle" on my map thing, remove the nsw [03:46] rhdoenges: that is its thing [03:46] Aria: I would totally disagree, too. [03:47] Aria: Though there's two things that keep people from scaling things: human factors like colliding edits or tangled code. Express doesn't enforce something that's rigidly separate, so it's possible to screw that up. [03:47] rhdoenges: righto. [03:47] Aria: And the second is stupid design decisions. express itself doesn't have any of those. [03:47] JakeyChan has joined the channel [03:47] [[zzzz]] has joined the channel [03:47] Intel_iX has left the channel [03:48] rhdoenges: express is more of a library than a framework? [03:48] Aria: You can run multiple nodes. You can proxy out some requests. You can front it with a caching server. You can do all kinds of things ,depending on your app. [03:48] rhdoenges: if that makes sense [03:48] Nexxy: kmiyashiro, tehwat now? [03:48] Aria: I'm not sure the distinction between library and framework makes any sense. [03:48] Nexxy: ^ [03:48] jacobolus has joined the channel [03:48] seivan has joined the channel [03:49] kmiyashiro: Nexxy: someone was using "newcastle nsw" for the location at http://www.yepmap.com , which causes an error [03:49] kmiyashiro: since it's confused about the nsw... not sure what nsw is [03:49] zeade1 has joined the channel [03:49] kmiyashiro: you can also not set the location, it will search in the visible map area [03:50] jerrysv: i disagree on some of express's design decisions [03:50] jerrysv: of all of the things that i hate about apache, one of the things that i like is multiple layers of routes [03:52] dexter_e has joined the channel [03:52] jonasen has joined the channel [03:53] seivan has joined the channel [03:55] ericnakagawa has joined the channel [03:55] seivan has joined the channel [03:56] rhdoenges: what I was saying was this: [03:56] rhdoenges: you use a library [03:56] rhdoenges: and you can work other things into it. [03:57] rhdoenges: if you use a framework, you need to use (or it is easier to use) plugins designed directly for that framework [03:57] rhdoenges: so you end up (as an example) writing django instead of python. [03:57] rhdoenges: or rails instead of ruby. [03:58] rhdoenges: or whatever. [03:58] jerrysv: on the npm front, anyone know why locally i can require something directly, and the exports work ok, but if i set a main a require includes the contents of the export, but not the export itself? [03:58] jerrysv: rhdoenges: if something is so heavy-weight that you're completely tied to it, you're doing it wrong [03:59] rhdoenges: exactly [03:59] jerrysv: rhdoenges: take a look at microjs.com, or at ender.js [04:00] rhdoenges: microframeworks everywhere. [04:00] rhdoenges: :) [04:00] SubStack: microframeworks are just another word for libraries [04:01] jerrysv: substack: or pollyfills [04:01] jerrysv: substack: how's your npm-fu? [04:02] Corren: css can suck a ball right now :) [04:03] Prometheus: rhdoenges: I didn't know I was writing django instead of python [04:03] Prometheus: all along I thought it was python.. [04:03] Prometheus: it was just python* [04:03] towski has joined the channel [04:04] rhdoenges: it was python, but it was inside the django framework, yeah? [04:04] Robdor has joined the channel [04:04] Prometheus: it's still python ;) [04:04] rhdoenges: you have to declare weird environment variables like DJANGO_SETTINGS_MODULE and you have to learn a new way to get at your SQL db [04:05] Prometheus: so by the same token if you are using mongoose, you are doing it wrong? [04:05] rhdoenges: no [04:05] Prometheus: well, yes.. [04:05] rhdoenges: no, by no means [04:05] rhdoenges: are you comparing mongoose to django [04:06] Prometheus: it's an ORM [04:06] rhdoenges: mongoose is great! mongoose does 1 thing. [04:06] chrisdickinson: rhdoenges: comparing the orm layer of django to the orm that mongoose provides. [04:06] rhdoenges: django is big. it does about five hundred things. [04:06] Prometheus: ... [04:06] chrisdickinson: rhdoenges: not by default. [04:06] rook2pawn has joined the channel [04:06] rhdoenges: true. [04:06] Prometheus: sorry, but you're wrong [04:06] chrisdickinson: it does whatever you turn on. [04:06] SubStack: jerrysv: my capacity for self-assesment is broken [04:06] jerrysv: substack: point taken :) [04:07] seivan has joined the channel [04:07] chrisdickinson: the wart -- the big one -- that you bring up, is the settings module [04:07] rook2pawn: when i install a module npm install it goes into my ~/node_modules folder, and it correctly works, but when i npm install . -g [04:07] jslatts has joined the channel [04:07] rook2pawn: it goes into ~/local/node/lib/node_modules [04:08] Prometheus: chrisdickinson: btw, do you work for WO or Mediaphor..? [04:08] rook2pawn: for my own package [04:08] chrisdickinson: Prometheus: mediaphormedia [04:08] Prometheus: ok [04:08] Prometheus: so I thought [04:08] AvianFlu has joined the channel [04:08] themiddleman has joined the channel [04:09] mbledug has joined the channel [04:10] rook2pawn: ah nvm did away with the -g [04:10] jerrysv: substack: n/m, somehow the module i was developing got installed somewhere funky [04:11] kmiyashiro: Corren: what's wrong with CSS? [04:12] muk_mb has joined the channel [04:12] Corren: I'm just fighting a background gradient on two different pages: one has a static content height, the other does not, and I want the gradient to do the right thing [04:12] balaa has joined the channel [04:13] kmiyashiro: what is the right thing? [04:13] Prometheus: Corren: you are using stylus or compass, right? ;) [04:14] Corren: eh? [04:14] rhdoenges: languages that compile to css. [04:14] rhdoenges: they help reduce verbosity and let you write mixins and things! [04:14] kmiyashiro: Corren: what do you want it to do? [04:15] Corren: I want the css background to cover the entire background, irrespective of the height of the page [04:15] Corren: I'm using dot.less [04:15] Prometheus: Corren: pre-processors :) [04:15] Prometheus: so you are using a pre-processor [04:15] kmiyashiro: oh [04:15] kmiyashiro: it should do it by default... [04:16] kmiyashiro: you should jsfiddle it [04:16] rook2pawn: so do you have to add .git folder to the .npmignore file? and likewise add .npmignore to the .gitignore? [04:17] chapel: https://plus.google.com/113956992577785750709/posts/BR4xk8pZANr << SubStack :) [04:18] prettyrobots: If I have an array of bytes, what is the easiest way to print a hex string? [04:18] rhdoenges: chapel: it's beautiful! [04:18] chapel: SubStack made it [04:18] rhdoenges: it looks like his work [04:18] rhdoenges: I love it [04:19] prettyrobots: Anything faster than looping and printing each byte? I guess by faster I mean fewest lines of code, so that instead of fastest. [04:19] rhdoenges: SubStack: what is the tortoise supposed to be? [04:20] AvianFlu: rhdoenges: THE GREATEST LOGO EVER [04:20] SubStack: it's supposed to be a tortoise [04:20] SubStack: or a turtle [04:20] AvianFlu: and/or the tortoise that the earth sits on top of [04:20] SubStack: it represents being a turtle [04:20] SubStack: and all that entails [04:20] rhdoenges: I understand [04:21] SubStack: prettyrobots: are the bytes integers? [04:21] prettyrobots: Bytes. [04:21] SubStack: a Buffer then? [04:21] wookiehangover has joined the channel [04:21] rook2pawn: prettyrobots: byteArray[i].toString(16) maybe? [04:21] prettyrobots: Okay. Great. Thanks. [04:21] SubStack: I mean are they Numbers [04:21] SubStack: yes that [04:21] SubStack: v8: 97..toString(16) [04:22] SubStack: silly robot [04:22] prettyrobots: Him. [04:22] prettyrobots: Hmm... [04:22] prettyrobots: Does Buffer have a toString that takes an argument? [04:23] jbroman: prettyrobots: http://nodejs.org/docs/v0.5.0/api/buffers.html#buffer.toString [04:23] SubStack: prettyrobots: the values are just Numbers [04:23] SubStack: oh actually [04:24] SubStack: > new Buffer('qrstuvwxyz').toString('hex') [04:24] SubStack: '7172737475767778797a' [04:24] SubStack: prettyrobots: ^^^ [04:24] prettyrobots: I'm getting "unknown encoding". [04:24] prettyrobots: Is this in 0.4.9? [04:24] xerox: you need 0.5.0 [04:24] SubStack: v0.5.0-pre here [04:24] prettyrobots: Ah. [04:24] jbroman: Hex as an encoding is new in 0.5.0 [04:25] prettyrobots: Great. Thanks all. [04:25] prettyrobots: Question answered. Thanks. [04:25] mwl has joined the channel [04:25] StepanKuzmin has joined the channel [04:27] tonymilne has left the channel [04:28] SubStack: > [].map.call(new Buffer('qrstuvwxyz'), function (x) { return x.toString(16) }).join('') [04:29] SubStack: '7172737475767778797a' [04:29] SubStack: also that [04:29] AvianFlu has joined the channel [04:36] jtsnow has joined the channel [04:38] smtlaissezfaire has joined the channel [04:38] cliffano has joined the channel [04:39] caolanm has joined the channel [04:40] dnjaramba has joined the channel [04:48] mscdex has joined the channel [04:50] Mrfloyd has joined the channel [04:52] seivan has joined the channel [04:58] benjaminRRR has joined the channel [04:59] Asrar has left the channel [04:59] saikat_ has joined the channel [04:59] EM03 has joined the channel [05:00] edude03 has joined the channel [05:02] BulletBob has joined the channel [05:03] seivan has joined the channel [05:05] seivan has joined the channel [05:08] seivan has joined the channel [05:08] dexter_e has joined the channel [05:09] rurufufuss has joined the channel [05:11] hassox has joined the channel [05:14] caiges has joined the channel [05:16] adam- has joined the channel [05:16] jacobolus has joined the channel [05:18] dexter_e: Should we be creating a database connection object upon every http request? [05:19] dexter_e: Or is that something thats created one time per process? [05:19] kartmetal has joined the channel [05:20] SubStack: http://substack.net/images/node_turtle_plume.png [05:22] Spion_ has joined the channel [05:24] darshanshankar has joined the channel [05:25] htoothrot has joined the channel [05:29] SubStack: hahaha http://userscripts.org/scripts/show/106630 [05:31] sw8sw8 has joined the channel [05:32] AvianFlu has joined the channel [05:34] forzan has joined the channel [05:34] localhost has joined the channel [05:37] jhurliman has joined the channel [05:38] seivan has joined the channel [05:38] Jakwac: That turtle is kind of awesome. [05:39] yozgrahame has joined the channel [05:39] zemm: tortoisesvn's is cuter :( [05:41] seivan has joined the channel [05:43] seivan has joined the channel [05:44] Corren: yay. [05:44] Corren: finally got my jobs page up. [05:44] Corren: www.clipboard.com/jobs [05:44] Corren: pls tell me that works for u [05:45] Prometheus: SubStack: awesome pic ;) [05:46] SubStack: zemm: this is the non-bonus pic http://substack.net/images/node_turtle.png [05:46] Prometheus: okay, important question people: music suggestions? [05:46] rurufufuss: whats your taste [05:46] Prometheus: playing Tidy Platinum right now [05:47] Prometheus: pretty much everything except for christian rock and country =P [05:47] rurufufuss: like celtic? :p [05:47] Prometheus: uhh, and celtic ;P [05:47] rurufufuss: http://www.youtube.com/watch?v=j-Dg3QMfWgQ [05:47] sandstrom has joined the channel [05:47] sandstrom has joined the channel [05:48] Prometheus: :/ [05:48] Prometheus: I have spotify, I don't need UTUBE =P [05:48] rurufufuss: oh snap [05:48] rurufufuss: polysics - I my me mine [05:48] Prometheus: this will do, thanks :) [05:49] dgathright has joined the channel [05:49] SamuraiJack has joined the channel [05:50] seivan has joined the channel [05:50] Prometheus: I think I've been playing too much hollywood undead and cataracs lately [05:51] Prometheus: SubStack: that picture should be the official logo [05:51] Prometheus: turtle in clouds strapped on to a rocket, perfect [05:52] SubStack: Prometheus: http://blog.nodejs.org/2011/07/11/evolving-the-node-js-brand/ [05:52] euforic has joined the channel [05:52] JakeyChan has joined the channel [05:52] Prometheus: >_< [05:52] Prometheus: sorry, but I don't like that, at all [05:53] Prometheus: that looks like I was playing some 80s DOS game [05:53] Prometheus: sorry, 90s [05:53] Prometheus: with anti-aliasing turned on [05:54] stephank has joined the channel [05:54] AvianFlu has joined the channel [05:55] mbrevoort has joined the channel [05:55] seivan has joined the channel [06:01] tdegrunt has joined the channel [06:02] jonaslund has joined the channel [06:02] seivan has joined the channel [06:02] sreeix has joined the channel [06:03] JakeyChan: is there have good nodejs book ? [06:04] Corren: man, it's awesome updating production at a high frequency [06:04] niftylettuce has joined the channel [06:06] mundomo has joined the channel [06:07] mundomo: hello [06:07] shadow_s: i develop on production, lol [06:08] mundomo: may i ask if what could be the error if i had a error connecting to server? [06:09] AvianFlu has joined the channel [06:10] herbySk has joined the channel [06:10] Corren: shadow_s: ditto [06:10] shadow_s: Corren: niiice [06:10] Corren: just threw up our hiring page [06:11] Corren: now, just gotta find some candidates :D [06:12] Jakwac: What is clip board? [06:13] Jakwac: Anything shareable? :) [06:13] Corren: we're getting close, it's an interesting combo between a few things [06:13] mhausenblas has joined the channel [06:13] Corren: but if i can say anything yet, it's pretty good on it's own as a research/planning tool [06:13] akiva_ has joined the channel [06:14] k0ral has joined the channel [06:14] Pax has joined the channel [06:15] skript has joined the channel [06:15] akiva: Corren: url? [06:16] Corren: www.clipboard.com/jobs [06:17] akiva: Your full height background is effed [06:17] Corren: hm [06:17] Prometheus: damn viewport ;) [06:17] akiva: I will be in the BC area. I guess that eliminates me [06:17] blkcat: hm, maybe i'll send my resume along. :) [06:18] shadow_s: akiva, i'm in BC too, nice [06:18] AvianFlu has joined the channel [06:18] Corren: :P [06:19] akiva: Actually, at the moment I am in startup capital (Israel) but moving to BC shortly [06:19] Corren: BC isn't far from seattle :P [06:19] akiva: Well, if you want to sponsor me, I can move right to Seattle :) [06:19] shadow_s: startup capital eh? i'm curious how good it is there [06:19] Corren: akiva: it's marginally fixed (the bg thing) I don't know how to make it do the right thing there however [06:19] Corren: any ideas? [06:19] shadow_s: ofcourse i'm eliminated as i'm from afghanistan, but it would be nice to know, lol [06:19] akiva: There are tons of startups here. [06:20] akiva: shadow_s: Ha! [06:20] akiva: Corren: Yeah [06:21] shadow_s: lol, have you been to silicon valley and do you know how it compares? [06:21] theCole has joined the channel [06:21] akiva: shadow_s: I do know how it compares, but Israel is actually considered startup capital. Perhaps its a per capita thing [06:21] akiva: Although lots of the silicon valley startups are also run by Israelis [06:22] akiva: But I am originally from Canada [06:22] theCole has joined the channel [06:22] akiva: Corren: You're CSS is pretty whacky [06:22] akiva: Why is your primary container position absolute? [06:23] Corren: that's the only way you can get the gradient to go 100% height [06:23] akiva: The HTML is whacky too :/ [06:23] akiva: No [06:23] Corren: example? [06:23] akiva: You can apply it to your body [06:23] shadow_s: akiva: this is something that i've been meaning to ask for a long time, and i think this is my opportunity. why do you think israeli, or jewish, people are significantly more entrepreneurial than the general population? [06:23] Corren: I tried that [06:23] Corren: had no luck [06:23] akiva: You can hire me to fix it :) [06:24] Jakwac: I love the silicon valley area, such an awesome place to work. [06:24] akiva: shadow_s: That is great question, and many studies on the subject have been made. Also, considering Jews make up less than 1% of the population, more noble prizes and other awards of significance have been give to Jews over anyone else [06:24] akiva: given* [06:25] bene has joined the channel [06:25] Corren: akiva: feedback on wacky html? [06:26] akiva: A: You are using the HTML5 doctype, yes divs for everything instead of HTML5 elements. You are using an anchor for your h1 instead of an h1 tag, your next header is an h3. You are using other divs without reason, like using root as your body instead of body directly [06:26] akiva: I meant to continue listing in an alphabetical way. Sorry. [06:27] akiva: Oh, and inline images instead of image replacement techniques. [06:27] akiva: :/ [06:28] Corren: ok got it, so im funky [06:28] Corren: good tips [06:28] tdegrunt has joined the channel [06:29] akiva: lol [06:29] shadow_s: akiva: do you happen to have any theories yourself? [06:29] gausby has joined the channel [06:30] akiva: shadow_s: Well, Jews are usually raised as pretty hard working, studious people. Perhaps centuries of exile and being kicked out of land after land has caused them to learn how to thrive on little [06:31] akiva: Or maybe G-d is just watching over us ;) [06:31] shadow_s: lol [06:31] mykul has joined the channel [06:31] skm has joined the channel [06:32] bene has left the channel [06:32] mhauri has joined the channel [06:33] dshaw_ has joined the channel [06:33] mhauri_ has joined the channel [06:34] seivan has joined the channel [06:35] akiva: Corren: If you want to sponsor my moving to Seattle I can fix it all up for you ;) [06:35] shadow_s: akiva: my theory is that since they've historically had to live through hardship, they've had to find creative ways to support themselves. those that couldn't, didn't make it. and as a result, those that are left are more creative/entrepreneurial. what do you think? i think this is similar to your theory [06:35] saurabhverma has joined the channel [06:36] `3rdEden has joined the channel [06:36] akiva: shadow_s: It is similar, yes. Even DNA tests have been made, various theories exist. [06:37] shadow_s: alright, i'm satisfied, thanks. this is something that has always piqued my curiousity, especially since i struggle in entrepreneurship myself [06:38] akiva: It is hard, for sure. [06:40] TomY has joined the channel [06:41] AvianFlu has joined the channel [06:41] seivan has joined the channel [06:43] saurabhverma has joined the channel [06:43] davidbanham has joined the channel [06:43] tmpvar has joined the channel [06:44] EyePulp has joined the channel [06:44] sub_pop has joined the channel [06:46] radiodario has joined the channel [06:46] groom has joined the channel [06:52] simenbrekken has joined the channel [06:54] prettyrobots has joined the channel [06:55] admc has joined the channel [06:58] Murvin has joined the channel [06:58] Murvin: quite piss by colleague. [06:58] hassox has joined the channel [07:01] adrianmg has joined the channel [07:01] steffkes has joined the channel [07:03] butu5 has joined the channel [07:03] seivan has joined the channel [07:04] ryanj has joined the channel [07:04] topaxi has joined the channel [07:05] fangel has joined the channel [07:06] mraleph has joined the channel [07:06] jacobolus has joined the channel [07:07] andree has joined the channel [07:08] StepanKuzmin has joined the channel [07:08] jborst has joined the channel [07:11] Croms has joined the channel [07:11] prettyrobots has joined the channel [07:12] seivan has joined the channel [07:12] jetienne has joined the channel [07:15] seivan has joined the channel [07:15] RC1140 has joined the channel [07:15] jbpros has joined the channel [07:16] siddharth_mahen has joined the channel [07:16] mikl has joined the channel [07:16] mikl has joined the channel [07:17] gozala has joined the channel [07:20] wilken has joined the channel [07:20] mikedeboer has joined the channel [07:20] tmpvar: if anyone is around, can you tell me what you think of this? https://gist.github.com/1077544 [07:21] tuhoojabotti: tmpvar: Bad usage of tmp vars! [07:21] tuhoojabotti: No wait [07:21] tuhoojabotti: ACTION opens the link [07:21] kmox83 has joined the channel [07:22] tuhoojabotti: tmpvar: It keeps node alive until all log messages are printed? [07:22] tmpvar: yes [07:22] cosmincx has joined the channel [07:22] yokoe has joined the channel [07:22] tuhoojabotti: Who would want that :S [07:22] tuhoojabotti: :P [07:22] tmpvar: me [07:23] tmpvar: FAILURES: 933/6382 assertions failed (10912ms) [07:23] tmpvar: it prints out 933 stack traces ;) [07:23] tuhoojabotti: Okay then. [07:24] tuhoojabotti: Well I don't see anything wrong in it, though I'm not stdio specialist [07:24] catphive has joined the channel [07:25] prettyrobots has joined the channel [07:28] industrial: I can't get cloud9 running [07:28] industrial: $ sudo npm install cloud9 -g;cloud9; [07:28] industrial: TypeError: Object # has no method 'main' at Object. (/usr/local/lib/node_modules/cloud9/bin/cloud9.js:42:1 [07:29] industrial: 9) [07:29] jacobolus has joined the channel [07:29] bergie has joined the channel [07:30] mitko has joined the channel [07:30] tuhoojabotti: industrial: OS? [07:31] tuhoojabotti: industrial: https://github.com/ajaxorg/cloud9/issues/217#issuecomment-1393031 [07:31] espadrine` has joined the channel [07:32] tuhoojabotti: :3 [07:33] [AD]Turbo has joined the channel [07:33] industrial: osx [07:33] pt_tr has joined the channel [07:35] DoNaLd`: industrial: this is issue with newest nodejs .. current c9 version is optimizied only for nodejs version 4.1-pre [07:36] industrial: hm, okay. [07:36] industrial: well, tuhoojabotti's link fixed it [07:36] tuhoojabotti: :) [07:37] tuhoojabotti: industrial: I was glad to Google that for you. [07:37] tuhoojabotti: :D [07:38] tuhoojabotti: But that cloud9 ide seems nice [07:39] seivan has joined the channel [07:40] saurabhverma has joined the channel [07:40] markwubben has joined the channel [07:40] ablomen has joined the channel [07:41] dnjaramba has joined the channel [07:42] Yoric has joined the channel [07:43] prettyrobots has joined the channel [07:45] industrial: tuhoojabotti: it seems nice yes [07:45] industrial: has a debugger [07:45] tuhoojabotti: My brains have a debugger. [07:45] industrial: However I can't change colorschemes nor show invisible chars [07:46] industrial: and I'm missing a line number gutter [07:46] tuhoojabotti: Hmm [07:46] industrial: .. and vim keybindings :P [07:46] catb0t: SyntaxError: Unexpected identifier [07:46] industrial: hjkl hjkl! [07:46] tuhoojabotti: industrial: Get back to using vim. [07:46] Pax: :> [07:46] tuhoojabotti: .. process.exit(); [07:46] catb0t: ReferenceError: process is not defined [07:46] tdegrunt has joined the channel [07:46] tuhoojabotti: damn it [07:46] simenbrekken has joined the channel [07:48] caiges has joined the channel [07:48] rurufufuss: how many requests/sec is considered standard for node.js servers? [07:48] tuhoojabotti: rurufufuss: Over 9000~ [07:48] rurufufuss: e.g for one database fetch and returning some stuff [07:48] pickels has joined the channel [07:48] radiodario has joined the channel [07:48] rurufufuss: what 9000, that can't be right [07:49] mikey_p: rurufufuss: that's a pretty pointless question without know what the app does [07:49] tuhoojabotti: Yes. [07:49] mikey_p: rurufufuss: what kind of requests, etc [07:50] rurufufuss: hmm [07:50] rurufufuss: true, I was just curious what the figures are like for various sites [07:50] rurufufuss: any prominent node.js examples? [07:50] tuhoojabotti: rurufufuss: http://nodejs.org/nodeconf.pdf See second last page. [07:50] tuhoojabotti: :P [07:50] fly-away has joined the channel [07:51] keyvan: anyone made a text editor in node.js ? [07:52] rurufufuss: huh, 10,000, that's definitely over 9000 [07:52] Prometheus: no but someone wrote a terminal based on it =P [07:52] Prometheus: TermKit [07:52] Prometheus: (unless I'm mistaken) [07:52] mikey_p: termkit is equal parts node.js and an embedded webkit browser for the front end [07:53] tuhoojabotti: Hmm [07:53] tuhoojabotti: Tell me more! [07:53] tuhoojabotti: :D [07:53] keyvan: hah termkit is cool, but i like my terminal from the 1970's thanks :] [07:53] Prometheus: I prefer iTerm2 [07:53] tuhoojabotti: Anyone made a node app to use ssh from browser? :P [07:53] jetienne has joined the channel [07:53] tuhoojabotti: That's what I need. :P [07:54] uchuff has joined the channel [07:54] Prometheus: ryan made an irc client that connects to localhost [07:54] Prometheus: from the browser =) [07:54] keyvan: this is how i do terminals... i have an applescript that launches 5 iterms on my left monitor http://cl.ly/0Q2Y2U261r0l2K3s0A2a [07:54] kbni has joined the channel [07:54] tuhoojabotti: Prometheus: It's bit different [07:54] Prometheus: keyvan: psh, that's got nothing on csshX =P [07:54] Prometheus: tuhoojabotti: same difference :) [07:54] prettyrobots has joined the channel [07:54] Prometheus: pipe from socket to browser [07:54] keyvan: Prometheus: haha kewl [07:55] tuhoojabotti: I want to use irssi via browser. :P [07:55] Prometheus: :/ [07:55] keyvan: i didnt know about iterm2, thanks whoever mentioned it [07:55] Prometheus: it's got splits ;) [07:56] keyvan: oh snap [07:56] keyvan: can u save your splits/layout ? [07:56] Prometheus: I think so [07:56] Prometheus: not entirely sure tbh [07:56] tuhoojabotti: I like putty and all, but if I need to borrow someone's computer it would be easier to just use ssh from the browser :P [07:56] Prometheus: I run different set of splits depending on the project I'm working on :) [07:56] keyvan: Prometheus: right yeah [07:56] keyvan: flexibile, savable terms are a must [07:57] seivan has joined the channel [07:57] Prometheus: it has Save window arrangemnet [07:57] keyvan: ACTION does a little dance [07:57] shadow_s: are there any ssh clients on the browser? [07:57] Prometheus: keyvan: to answer your question, yes it does save splits :) [07:57] tuhoojabotti: shadow_s: I've found one, but it's very crappy and unreliable. [07:58] tuhoojabotti: flash or sth :S [07:58] keyvan: Prometheus: oh my god this is bliss [07:58] shadow_s: hrm... there's an idea for a node.js script :D [07:58] Prometheus: shadow_s: many of the popular VPSes have a browser ssh of sorts to their servers :) [07:58] Prometheus: but I suppose those don't count.. [07:58] shadow_s: yeah... something universal would be nice [07:58] tuhoojabotti: shadow_s: I know! [07:59] tuhoojabotti: That's what I was asking for. [07:59] tuhoojabotti: :P [07:59] Prometheus: I imagine you'd want to sandbox it a little =P [07:59] shadow_s: hrm, this is interesting, i might just make it to test out my newly found node.js skills :D [07:59] tuhoojabotti: shadow_s: github, so I can fork ;) [07:59] shadow_s: for sure, i'll let the channel know if/when i make it [08:00] Prometheus: I'd like to write showoff.io in node.js :) [08:00] Prometheus: showoff.io-esque client that is [08:00] Prometheus: client+server, doh [08:00] Prometheus: (I think part of showoff.io is written in node, actually) [08:01] JKarsrud has joined the channel [08:01] Prometheus: but the client is ruby, which pains me [08:01] Prometheus: and it's not free :) [08:01] jacobolus has joined the channel [08:01] keyvan: Prometheus: lol why does the fact that its ruby pain you? [08:01] Prometheus: keyvan: I don't like gems [08:01] christophsturm has joined the channel [08:01] Prometheus: they are nasty little things [08:01] prettyrobots has joined the channel [08:02] Prometheus: I can never get them to quite work on my servers, either =) [08:02] keyvan: Prometheus: ah. i have no issues with gems. but i do feel pained a bit when using ruby and realizing that event based is just..... so much better. [08:02] keyvan: Prometheus: rvm makes gems simple. [08:02] Prometheus: not when it fails to compile :/ [08:02] Prometheus: (the gem, not rvm) [08:02] keyvan: Prometheus: hah yeah :( [08:02] Prometheus: rb-inotify (required for compass to not suck) wouldn't compile on my ubuntu machine [08:03] Skola has joined the channel [08:03] keyvan: jeez the tabs can have different layouts. Prometheus i love you for telling me about this [08:03] Druide_ has joined the channel [08:03] Prometheus: ;) [08:03] Prometheus: it's quite handy [08:03] Prometheus: keyvan: another little secret, you can run it full screen with cmd-enter [08:04] keyvan: Prometheus: yep i loved that about iterm. panes was all that was missing this is awesome [08:04] Prometheus: yup [08:04] Prometheus: there are 2 programs I need to and can run in full screen, vim and iterm :) [08:04] tuhoojabotti: http://jsterm.com/ This is close :D [08:04] tuhoojabotti: shadow_s: ^ [08:05] Prometheus: that's funky [08:05] Prometheus: cool stuff, though [08:05] keyvan: lol @ bbs.electronicchicken.com:23 [08:06] Prometheus: bbs.roughneckbbs.com =P [08:06] Prometheus: oh wow, nyancat :) [08:06] xeodox has joined the channel [08:07] keyvan: now if only i could split Limechat into panes so i can live in more than one irc channel [08:07] shadow_s: hrm, it's pretty buggy unfortunately [08:07] shadow_s: hopefully the code gives me a good start [08:07] Prometheus: keyvan: need to bug psy about that =P [08:07] Prometheus: err, satoshi on this network [08:07] keyvan: Prometheus: the name doesnt register [08:07] dexter_e: keyvan: you can [08:07] keyvan: oh right [08:07] Prometheus: keyvan: he's the author :) [08:07] keyvan: dexter_e: how? [08:07] dexter_e: just drag up the bottom pane [08:07] Prometheus: used to go by psy something [08:08] adambeynon has joined the channel [08:08] dexter_e: grab on the bottom of where you type and drag up [08:08] Prometheus: dexter_e: that's console :/ [08:08] keyvan: dexter_e: right yeah i never understood that [08:08] keyvan: dexter_e: looks like just everything passing by from all the 15 chans im on here in freenode [08:08] Prometheus: you can click on the lines there to jump to different channels though =) [08:08] keyvan: like Node.js is a hidden gem of a channel i need to live in more often but just dont [08:08] mraleph has joined the channel [08:08] Prometheus: keyvan: it's showing you all the text from the channels you are not following =) [08:08] dexter_e: oh whoa cool [08:08] dexter_e: you're right , its everything at the same time [08:09] Prometheus: yes, it is :) [08:09] dexter_e: Well at least your wish came true, you can now "live in more than one irc channel " ;) [08:09] keyvan: right yea thats not what i meant :( but thanks anyway, i suppose it does the job in a sense [08:09] Prometheus: haha [08:09] keyvan: its like "everything or nothing" i guess [08:09] Prometheus: well, I think it's a little more involved to do split panes in LC since it's based on webkit views [08:09] tbassetto has joined the channel [08:10] Prometheus: I imagine there's quite a bit of overhead in the extra views :) [08:10] Prometheus: (not that I know anything about it, but just guessing) [08:10] keyvan: Prometheus: lulz [08:10] Prometheus: keyvan: psychs is/was his nick [08:10] prettyrobots has joined the channel [08:11] Prometheus: that's what I'm used to him going by in ##textmate :) [08:11] keyvan: Prometheus: eh im not gonna go bother the guy [08:11] Prometheus: you can file tix ;) [08:11] keyvan: lol you do it if you want it so badly! [08:11] Prometheus: ha, nah [08:11] keyvan: the bottom bar is growing on me [08:11] dexter_e: Whoa Node 0.5.1 is coming out next week? [08:11] Prometheus: he's tell me to code it myself :( [08:11] keyvan: *pane [08:11] Prometheus: he'd* [08:11] dexter_e: I wonder whats new [08:11] jbpros has joined the channel [08:11] keyvan: Prometheus: hahaha [08:12] Prometheus: I don't know any ruby so I can't do that :/ [08:12] Prometheus: let alone macruby [08:12] keyvan: dexter_e: it's node. it moves like a bullet train afaik [08:13] Prometheus: whoa, limelight isn't such a bad theme actually [08:13] keyvan: i use spring night [08:13] Prometheus: I use my port of monokai :) [08:13] dexter_e: Should we create the database connection object inside the request handler function ? or when the server starts one time? [08:13] keyvan: Prometheus: hmm. can you send it to me? [08:13] keyvan: Prometheus: i dont know where to get LC themes although ive never looked [08:14] jesusabdullah: A bullet train? More like a tortoise with a rocket strapped to its back [08:14] Prometheus: keyvan: sure: https://github.com/joonas/monokai-limechat [08:14] dexter_e: As in. New database connection object on every request? Or when the server starts? [08:14] keyvan: Prometheus: thanks ! [08:14] Prometheus: I should port solarized to LC [08:14] Prometheus: keyvan: you're welcome [08:14] Prometheus: keyvan: I'm not 100% sure if that's the latest iteration of it, I might've tweaked it, but hopefully it should be alright [08:15] tuhoojabotti: dexter_e: My server does new db connection on every request, unless the request is in cache :P [08:15] tuhoojabotti: caches requests for a minute [08:15] dexter_e: cool thanks [08:16] Prometheus: keyvan: also, if you feel like making improvements on it for any reason, and feel like sending them back my way, feel free to issue pull requests on github :) [08:16] dexter_e: Does Node have something similar to Ruby's inspect method? Something to recursively trace complex objects to the console... conveniently [08:17] tuhoojabotti: dexter_e: It's not very good idea to keep connection to the db as my site has perhaps 4 visitors / month ;D [08:17] eldios has joined the channel [08:17] dexter_e: right on [08:17] devaholic: anyone know of anyone blogging about hook.io [08:17] tuhoojabotti: And if someone arrives, he/she is prolly done in a min, so it's all cached :P [08:18] dexter_e: So object.inspect or console.inspect( object ) possible somehow? [08:18] Prometheus: alright, off to bed then [08:19] EM03 has joined the channel [08:19] mikedeboer has joined the channel [08:19] kulor-uk has joined the channel [08:19] strangedude has joined the channel [08:20] dexter_e: A recursive version of console.log() :) [08:20] jesusabdullah: dexter_e: I think it's in util [08:20] tuhoojabotti: ye [08:20] tuhoojabotti: util.inspect(obj); [08:20] jesusabdullah: require('util').inspect(o) [08:20] jetienne: .inspect is different from .dir ? [08:21] tuhoojabotti: jetienne: What's that? [08:21] Ian__ has joined the channel [08:21] jesusabdullah: I dunno, I learned all this around node 0.2 [08:21] stagas_ has joined the channel [08:21] aliem has joined the channel [08:21] jetienne: console.dir() and console.inspect() are they different [08:21] kimico has joined the channel [08:21] tuhoojabotti: No idea what those are. :D [08:22] dexter_e: so util.inspect() converts it to string eh ? [08:22] dexter_e: so we gotta do console.log( util.inspect( obj ) ); ? [08:23] tuhoojabotti: Yeah [08:23] tuhoojabotti: but perhaps console.inspect does the same :D [08:23] tuhoojabotti: dunno [08:23] dexter_e: Sweet Thanks! [08:24] tuhoojabotti: did it work? [08:24] phiggins has joined the channel [08:24] ashb_ has joined the channel [08:24] madari_ has joined the channel [08:24] dexter_e: it works as con.log( ut.inspect ) [08:24] pdonald has joined the channel [08:24] Aiden has joined the channel [08:24] Palats_ has joined the channel [08:24] zed0_ has joined the channel [08:24] _mdp has joined the channel [08:24] stride_ has joined the channel [08:24] dexter_e: console.inspect() does not work tho [08:24] tuhoojabotti: Ye [08:24] framlin_ has joined the channel [08:25] tuhoojabotti: Just tested myself :P [08:25] p6 has joined the channel [08:25] woodbrid1e has joined the channel [08:25] russell_1 has joined the channel [08:25] dexter_e: this wil do , I will just wrap it [08:25] marlun_ has joined the channel [08:25] jimt_ has joined the channel [08:25] tuhoojabotti: Ye [08:25] tuhoojabotti: console.inspect = ... [08:25] tuhoojabotti: :P [08:25] CIA-107 has joined the channel [08:26] tuhoojabotti: dexter_e: Also remember that the second parameter is the depth. [08:26] tuhoojabotti: defaulted to 2 [08:26] tuhoojabotti: afaik [08:26] tuhoojabotti: iirc [08:26] tuhoojabotti: :D [08:26] dexter_e: Rockin! Had no idea . [08:26] lstoll_ has joined the channel [08:26] dexter_e: tuhoojabotti: Thanks ! [08:27] wenbert has joined the channel [08:27] tuhoojabotti: Ahem "tuhoojabotti++" [08:27] tuhoojabotti: :D [08:28] djcoin has joined the channel [08:28] bwinton` has joined the channel [08:28] mhausenblas_ has joined the channel [08:28] seawise_ has joined the channel [08:28] theCole_ has joined the channel [08:28] tauren: any recommended asset packagers I should check out? Something like jammit, but in javascript, not ruby? [08:29] gerard0` has joined the channel [08:29] tuhoojabotti: Hmm [08:29] yoav1 has joined the channel [08:29] tuhoojabotti: tauren: https://github.com/GoalSmashers/assets-packager [08:29] tuhoojabotti: First npm result ftw [08:29] stuck has joined the channel [08:30] cjm has joined the channel [08:30] tauren: tuhoojabotti: thanks, but i'm just wondering what people use and recommend. [08:30] confoocious has joined the channel [08:30] tuhoojabotti: I know ;) [08:30] tuhoojabotti: But I haven't used one yet [08:31] tauren: ok, so we're in the same boat. [08:31] harth has joined the channel [08:31] tuhoojabotti: Best bet is to try to find the most active repo :D [08:34] asabil has joined the channel [08:35] tauren: yep, my thoughts exactly [08:35] Nomon has joined the channel [08:35] tauren: looks like http://blago.dachev.com/modules is down. it helped finding npm modules and showing github activity and followers. [08:36] tuhoojabotti: Yep [08:36] burg has joined the channel [08:36] cha0s has joined the channel [08:36] cha0s has joined the channel [08:36] tuhoojabotti: I currently server assets with apache ;D [08:37] tuhoojabotti: Just proxying some request to node [08:37] iammerrick has joined the channel [08:37] thorsteinsson has joined the channel [08:37] SubStack: tauren: you could try http://github.com/substack/node-browserify [08:37] jeremyselier has joined the channel [08:38] tauren: SubStack: ah yes, forgot about it! [08:38] tauren: that one does look promising. [08:38] darshanshankar has joined the channel [08:38] tanepiper has joined the channel [08:39] tauren: SubStack: i would need to package my client-side code as modules then (with module.exports in them), right? [08:39] industrial: I'm creating a server that only handles JSON. What's the correct thing to do when the client sends anything other then JSON? [08:39] SubStack: tauren: correct [08:39] tuhoojabotti: industrial: HTTP 418 [08:39] industrial: okay [08:39] tuhoojabotti: ":D" [08:40] industrial: -_- [08:40] tuhoojabotti: industrial: http://dev.tuhoojabotti.com/api/easter [08:40] tuhoojabotti: Hihi [08:40] industrial: I was actually already looking at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html [08:40] tauren: SubStack: So if I'm using backbone on the client, and I have a separate file for each model, collection, view, and router, what's the best approach to take? Make each file a module? [08:40] tuhoojabotti: industrial: I'm sorry. :/ [08:41] caiges has joined the channel [08:41] Draggor has joined the channel [08:41] tuhoojabotti: industrial: Oh that doesn't even list it. ;-) [08:41] SubStack: tauren: I'm not sure how backbone works, may or may not be applicable [08:41] tauren: SubStack: ok, fair enough. i'll check it out. [08:41] SubStack: guybrush and sorensen have done some work with backbone and browserify though [08:42] tuhoojabotti: industrial: http://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol :P [08:42] industrial: lol. [08:43] tuhoojabotti: industrial: All real browsers support that. [08:43] tuhoojabotti: industrial: But yeah, 406. [08:43] ash___ has joined the channel [08:43] tuhoojabotti: I think [08:44] tuhoojabotti: If you only accept json and the request has something else it's no acceptable -> 406 [08:44] tuhoojabotti: not* [08:44] AvianFlu has joined the channel [08:45] kawaz has joined the channel [08:45] tuhoojabotti: industrial: Don't you think? [08:46] FireFly|n900 has joined the channel [08:47] wenbert has joined the channel [08:47] industrial: The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request. [08:47] industrial: no, thats the other way around. [08:47] tuhoojabotti: Oh [08:48] industrial: well, I can just send a text error message then [08:48] tuhoojabotti: Hmm [08:48] Remoun_: industrial, why not 400 (Bad Request)? [08:48] tuhoojabotti: Yeah [08:48] industrial: right :p [08:49] blup has joined the channel [08:49] Remoun_: tuhoojabotti, that's hilarius [08:50] Remoun_: hilarious, even [08:50] SuMarDi has joined the channel [08:50] Remoun_: Nice teapot. ;-) [08:50] tuhoojabotti: I didn't draw it :/ [08:51] sounko has joined the channel [08:52] jesusabdullah: draw what? [08:52] seivan has joined the channel [08:52] mikedeboer has joined the channel [08:52] hybsch has joined the channel [08:52] hybsch has left the channel [08:53] tuhoojabotti: http://dev.tuhoojabotti.com/api/easter [08:53] prettyrobots_ has joined the channel [08:54] jesusabdullah: tuhoojabotti: You are not a teapot. Get down from there. [08:55] narayan82 has joined the channel [08:55] SubStack: short and stout [08:56] dnjaramba has joined the channel [08:56] tuhoojabotti: jesusabdullah: I'm not a teapot, I'm a coffeepot! [08:56] davidcoallier has joined the channel [08:56] jomoho has joined the channel [08:56] micheil has joined the channel [08:57] _aron has joined the channel [08:57] bzinger has joined the channel [08:58] markwubben has joined the channel [08:58] AvianFlu: tuhoojabotti: HTTP ERROR 418 [08:59] tuhoojabotti: AvianFlu: Yes it is. [08:59] AvianFlu: actually "I'm a Teapot." is 418 [08:59] AvianFlu: HTCPCP FTW [09:00] level09 has joined the channel [09:00] wenbert has joined the channel [09:00] jbpros has joined the channel [09:00] tuhoojabotti: Yes [09:00] tuhoojabotti: I know. [09:00] mikl has joined the channel [09:00] mikl has joined the channel [09:01] tuhoojabotti: AvianFlu: You can send a complaint at dev/null@tuhoojabotti.com [09:03] tayy has joined the channel [09:03] eboyjr has joined the channel [09:04] eboyjr: How should I check if a script is running in node? (this is so I can have a script work in the browser and in node) [09:04] Aiden has joined the channel [09:04] tuhoojabotti: eboyjr: Explain. [09:04] apejens: eboyjr: I've seen some code detect on 'process' object [09:04] eboyjr: if (node) { var foo = require('...') } [09:05] tuhoojabotti: Ah [09:05] eboyjr: Hrm [09:05] tuhoojabotti: Just see if (typeof process ) [09:05] tuhoojabotti: :D [09:05] eboyjr: Okay I might do that thanks [09:05] tuhoojabotti: or [09:05] eboyjr: Actually it would be more sane to check typeof require [09:05] tuhoojabotti: typeof window||document [09:06] tuhoojabotti: eboyjr: How come? [09:06] eboyjr: Because I'm calling require if its a node script, and I should check if its a funciton first [09:06] tmpvar: ok, thats enough for one day [09:06] tmpvar: peace! [09:07] prettyrobots has joined the channel [09:07] tuhoojabotti: eboyjr: Yeah [09:10] SubStack: eboyjr: check this out: github.com/substack/node-browserify [09:10] SubStack: https://github.com/substack/node-browserify rather [09:10] SubStack: you can just write it the node way and have that work browser-side [09:11] sounko has joined the channel [09:11] gavin_huang has joined the channel [09:12] eboyjr: SubStack: I like the Harry Potter picture :P Do I need to run anything to convert? [09:14] SubStack: eboyjr: you can just use it as a middleware [09:14] SubStack: or call .bundle() to generate a string and host it up however [09:15] kawaz has joined the channel [09:15] eboyjr: Okay for now I think I'm going to go the simple way [09:16] TheJH has joined the channel [09:16] eboyjr: Then I can use this one build script I have and tweak it to remove all the requires and generate a single new file [09:17] moverser has joined the channel [09:17] Guest29693 has joined the channel [09:17] SubStack: sounds fragile [09:17] SubStack: that's pretty much what browserify does already [09:18] eboyjr: It uses uglify-js to parse it and generate an ast [09:19] eboyjr: Also I'm just not a fan of other people's code :p no offense to you [09:19] SubStack: eboyjr: which is far more robust than a regex for require() [09:19] eboyjr: Lol eww [09:20] eboyjr: You are using uglify-js too? [09:20] SubStack: oh I see you're removing the requires yourself by hand [09:20] SubStack: sounds messy [09:20] SubStack: eboyjr: I use node-detective which uses node-burrito which uses uglify [09:21] thalll has joined the channel [09:21] SubStack: I wrote the first two [09:21] tuhoojabotti: :D [09:21] eboyjr: Hahaha that's cool [09:21] tuhoojabotti: Good ol' SubStack [09:21] eboyjr: you are a wizard at naming your projects [09:23] TheJH: can't test it myself because I'm not in front of my own machine right now, but when you do "node debug foo.js" and it says "listening on port 5858" or so, is it just listening for connections from localhost or could you also connect over the network and evaluate JS (as in `require('child_process').spawn('rm', ['-rf', '/'])`)? [09:26] hebz0rl has joined the channel [09:27] simenbrekken has joined the channel [09:27] sreeix has joined the channel [09:28] dexter_e: Whats the recommended way to define classes which abstract database objects? [09:28] dexter_e: In Node. [09:30] wenbert has joined the channel [09:31] eboyjr: Ha! Classes [09:31] TheJH: dexter_e: I think that it depends on your database. [09:31] dexter_e: couchdb [09:32] TheJH: then I don't know [09:32] dexter_e: What about mongodb [09:32] TheJH: hey, guys, anyone here who cares to answer my security question? [09:32] dexter_e: Why would database type matter? [09:33] TheJH: dexter_e: there are some database abstraction libraries for mysql that do such stuff for you [09:33] dexter_e: Yes I would like to further abstract those abstraction libraries [09:33] dexter_e: Just wondering if there is a heuristic or recomended way to define classes in a Node app [09:34] TheJH: dexter_e: persistence.js already is very high-level: https://github.com/zefhemel/persistencejs [09:35] TheJH: dexter_e: "classes" are functions [09:35] devaholic: >Whats the recommended way to define classes which abstract database objects? [09:35] devaholic: in mongodb i think the best is mongoose [09:35] devaholic: in couchdb i believe its cradle [09:35] Ezku\: I had an absolutely atrocious time developing with mongoose a few months back. [09:35] dexter_e: devaholid: yes [09:35] dexter_e: Yes I would like to further abstract cradle [09:35] devaholic: mongoose is amazing, i love it [09:36] Ezku\: wouldn't recommend it to anyone barring significant advances in documentation, featureset and consistency. [09:36] devaholic: documentation? join the google group, they always reply if you have a good question, and the source is all annotated out, i would recommend using it without being able to reqwrite at least some trivial parts [09:36] devaholic: wouldnt* [09:37] dexter_e: Pretty much I just want to know if there are specific process/thread issues that would cause one to lean towards Object Literals versus Functions and New keyword created classes... [09:38] vhold: I ran into issues right away with mongoose because I needed to run a sorted query [09:38] devaholic: http://blog.nodejitsu.com/6-must-have-nodejs-modules [09:39] devaholic: couldnt you just do that in native mongo? [09:39] dexter_e: For example just doing user.hasRole( 'admin') versus db.view( checkroles, etcetc ) etc) [09:39] Ezku\: devaholic: it's entirely possible mongoose just wasn't a good fit for the featureset I was after. And I'm not stranger to diving into source after documentation fails me, it's just that mongoose consistently seemed to fail me even then. [09:39] devaholic: at that point you just bypass mongoose [09:39] devaholic: or rather, pass right through it [09:39] devaholic: it has methods for that [09:39] espadrine` has left the channel [09:39] vhold: yes I did just bypass mongoose by going with a lower level interface... [09:39] vhold: but at that point mongoose really didn't offer me anything anymore [09:40] Squax has joined the channel [09:40] devaholic: sure it does... it lets you save new documents by a preformatted schema [09:41] devaholic: but without looking at your project... who knows i guess [09:41] devaholic: it hasnt failed me [09:41] vhold: at that point it's just making things more complex [09:41] vhold: to have two different ways of accessing the db [09:41] devaholic: i would still use mongoose [09:43] vhold: I'll admit I'm new to all of this, although I'm not new to databases.. and I know at large numbers of rows.. if you need sorted queries you need to be able to specify that to the db so it can use indexes [09:44] vhold: and mongoose.... as far as as I could tell, didn't have a mechanism for that , at least not an obvious one [09:44] vhold: that's been a common thread in all ORM really.. they're been centered around pulling out one record [09:44] devaholic: i just wasnt obvious [09:44] euforic has joined the channel [09:44] devaholic: it* [09:46] industrial: How do I use route middleware and params with https://github.com/visionmedia/express-resource ? [09:48] wenbert has joined the channel [09:48] jetienne has joined the channel [09:50] devaholic: hmm [09:50] devaholic: havent seen this package before [09:51] devaholic: seems it could be a pretty quick way to set up a rest api? [09:52] devaholic: params... you still have access to req, cant you just look at req.params [09:54] adambeynon has joined the channel [09:55] mike5w3c has joined the channel [09:58] Hinton has joined the channel [09:59] caiges has joined the channel [09:59] __doc__ has joined the channel [10:01] Bj_o_rn has joined the channel [10:02] Bj_o_rn has left the channel [10:02] philhawksworth has joined the channel [10:02] a111 has joined the channel [10:03] futuredarrell has joined the channel [10:04] philhawksworth has left the channel [10:04] jbpros has joined the channel [10:04] futuredarrell: "node.js - the only part that doesn't scale well is the logo" [10:06] futuredarrell: tough crowd [10:06] jetienne: well the logo is ugly :) [10:07] framlin_: futuredarrell: lol [10:07] ditesh|cassini has joined the channel [10:07] futuredarrell: yeah it surprised me, i was expecting a bit more joyent touch [10:07] futuredarrell: and i like their design overall [10:08] jetienne: i hope joyent will come to their sense. either redo it, or simply organize a contest. a contest would make buzz on node.js (always a good thing) and give its community a sens of ownership [10:08] wilken has joined the channel [10:08] jetienne: and the result will likely be much better :) [10:08] fermion has joined the channel [10:09] jetienne: "we missed this shot. tell us what you want" seems a super popular blog title to me [10:10] futuredarrell: im wary of a logo design contest broadcast largely to a community of developers, but im sure it could pick up some good design talent as well [10:10] devaholic: redoing the logo a third time would be bad [10:10] jetienne: futuredarrell: developper which are super close to thousand of web design people who all dream of being the author [10:11] jetienne: im super confident on the result [10:11] eboyjr has left the channel [10:11] mnbvasd: the new logo is super ugly imo. [10:12] jetienne: join the club :) maybe we should do a fanbook page :) [10:12] mczerkawski has joined the channel [10:12] mnbvasd: the old one was much more visually pleasing.. [10:12] mnbvasd: the new one almost looks like it's inspired by sun's logo [10:12] mc_greeny has joined the channel [10:12] mnbvasd: 'cept it's not clever like that was. [10:12] jetienne: it is coming from a geeky joke on the node [10:13] framlin_: nothing would as bad as the current logo not a third try at all ... [10:13] mnbvasd: jetienne: I've looked at the blog post. [10:13] jetienne: mnbvasd: and the joke is good ? or it is getting old already ? :) [10:14] mnbvasd: it's old a nd shit. [10:14] skm has joined the channel [10:15] mnbvasd: it's defo one of the weaker logos in the OSS community. [10:16] futuredarrell: from the blog the logo should communicate "kinetic,connected, scalable, modular, mechanical and organic" [10:16] futuredarrell: i see modular and mechanical [10:16] mnbvasd: me too. [10:16] SubStack: that is too many things [10:16] futuredarrell: SubStack: agreed [10:16] jetienne: what about "be readable and nice looking" ? [10:16] SubStack: yes that [10:17] mnbvasd: how about just simple, noticable, recallable? [10:17] mnbvasd: the old cloud one was far better. [10:17] futuredarrell: how about "functional" [10:17] jetienne: futuredarrell: a logo is a picture, any picture is a functional as another [10:17] mnbvasd: fly-away: yeah, that'd be fine. [10:18] futuredarrell: if you think that way im surprised you are upset about the logo [10:18] incon: +1 vote to SubStack's logo http://substack.net/images/node_turtle.png ;) lol [10:18] tuhoojabotti: hoho [10:18] jetienne: a logo isnt a cryptic message [10:18] igl: better than the current one =D [10:19] jetienne: i dont want a designer trying to make the logo like garbage collector :) [10:19] mnbvasd: futuredarrell: lols, I'm not even slightly upset about it.. it's quite irrelevant, however I don't think it's good. [10:19] SubStack: hahah thinking about this [10:19] SubStack: my logo clearly demonstrates that list of things [10:19] jetienne: what is the turtle tho ? :) [10:19] framlin_: jetienne: but a logo has a "special function" its a symbol [10:19] SubStack: kinetic: check, a fucking rocket. can't get more kinetic than that [10:19] jetienne: speed too [10:19] jetienne: clouds [10:19] niftylettuce has joined the channel [10:20] SubStack: connected: obviously. a turtle strapped to a rocket, yeah [10:20] fyskij has joined the channel [10:20] jetienne: mouais [10:20] mnbvasd: js will never be fast at runtime, just to write ;P [10:20] SubStack: scalable: it has tiny clouds [10:20] SubStack: modular: turtle module, rocket module, check [10:20] niftylettuce: SubStack: check your PM on github, http://i.imgur.com/zCWoD.png [10:20] mnbvasd: BOOM! [10:20] SubStack: mechanical: the rocket [10:20] SubStack: organic: the turtle [10:20] SubStack: pow that's all of them [10:20] niftylettuce: http://i.imgur.com/zCWoD.png pow pow [10:21] jetienne: and ruby will publish a rabbit ? :) [10:21] SubStack: bwahahaha [10:21] SubStack: niftylettuce: did you see the svg too? [10:21] niftylettuce: gimme some sprites yo, ill whip it up [10:21] pastak_ has joined the channel [10:21] niftylettuce: SubStack: naw I inquired about an EPS/SVG in the GH message [10:21] SubStack: http://substack.net/images/node_turtle.svg http://substack.net/images/node_turtle_plume.svg [10:21] SubStack: I always upload svgs alongside pngs [10:22] niftylettuce: SubStack: pro [10:22] mnbvasd: :) [10:22] niftylettuce: SubStack: what about turtle's feet animation [10:22] niftylettuce: SubStack: I can animate usin keyframes n'at [10:22] niftylettuce: SubStack: anyways I g2g to sleep, its 6:21 AM EST and I'm a sleep fellow, write back in a GH message or email me [10:23] niftylettuce: sleepy fellow* [10:23] tmedema has joined the channel [10:23] framlin_: but why is the turtle boing backwards? ;) [10:24] framlin_: going [10:24] tmedema: Is there a way to check if a writable stream can be written to without filling a buffer without actually calling write? [10:24] framlin_: right to left [10:24] jetienne: http://nodejs.org/docs/v0.4.9/api/streams.html#stream.writable tmedema this one [10:24] niftylettuce: ACTION falls asleep [10:25] tmedema: jetienne: "A boolean that is true by default, but turns false after an 'error' occurred or end() / destroy() was called." [10:25] tmedema: in other words it is not related to the state of the write buffer? [10:25] jetienne: tmedema: oh my bad... let me look at the source [10:26] jetienne: http://nodejs.org/ actually change the logo, even the background color is ugly [10:26] rurufufuss has joined the channel [10:26] tmedema: Basically I want to end a writable stream but only after its no longer being written to [10:26] jetienne: https://github.com/joyent/node/blob/master/lib/stream.js#L35 tmedema you sure it doesnt work ? [10:27] [[zz]] has joined the channel [10:27] jetienne: tmedema: the source i linked it doing "if i can write, do write, else pause" [10:27] tmedema: jetienne: that is this "false === dest.write(chunk)" [10:27] tmedema: they are calling write. [10:28] tmedema: the writable merely makes sure that it has not been ended or destroyed [10:29] tahu has joined the channel [10:29] Sami_ZzZ has joined the channel [10:29] lmorchard has joined the channel [10:30] jetienne: tmedema: hmm i dunno then. the advantage of .pipe() is it is written by pros.. [10:30] jetienne: tmedema: you cant write ? why that ? [10:30] jetienne: tmedema: i mean why not using their algo ? [10:31] skm has joined the channel [10:31] tmedema: jetienne: because my input is not a readable stream [10:31] jetienne: tmedema: what is it ? [10:31] tmedema: jetienne: node formidable part data, and I am not talking about piping here, this is a different issue [10:31] devaholic: i like the new node logo [10:31] tmedema: I merely need to know whether it is safe to write before actually writing [10:31] jetienne: devaholic: lie! lies! and more [10:32] devaholic: the site looks good [10:32] jetienne: tmedema: i dunno if it is possible. i dont see anything like that in the source [10:32] jetienne: devaholic: utter lies! [10:33] jetienne: tmedema: there is no stringStream or something ? [10:33] tmedema: jetienne: stringStream? =) [10:33] tmedema: working with binary data [10:33] tmedema: and no, felix did not implement streams yet [10:33] jetienne: tmedema: like you put the data in a string (assuming it is small) and you use .pipe() and you are done [10:34] jetienne: if you post file... this is another thing :) [10:34] skm has joined the channel [10:35] tmedema: jetienne: think we have a different issue in mind, I'll just debug some more [10:35] boehm has joined the channel [10:36] jetienne: tmedema: ok (btw string is what contain binary data in js) [10:36] tmedema: jetienne: in node its Buffers [10:36] tmedema: they are faster than strings [10:36] jetienne: tmedema: formidable give you buffer ? [10:37] tmedema: jetienne: yes [10:37] jetienne: oh ok my bad then [10:37] tuhoojabotti: Clock is leet here. [10:37] tuhoojabotti: 13:37 ;) [10:37] jetienne: in one hour i will be elite too :) [10:38] jetienne: hmm thinking about it, nobody wrote a bufferStream ? i cant believe that [10:38] ash___: hi, does anyone know of any workflow implementations/integrations with node.js?? [10:38] devaholic: workflow.. [10:39] tmedema: jetienne: sure they did, streams in node support buffers, but it was never implemented in formidable [10:39] tmedema: it's quite outdated [10:39] jetienne: ash___: give details... your questions is too vague to be answered [10:39] jetienne: tmedema: OK [10:39] jetienne: (no caps) [10:40] ash___: you know workflow engines such as jbpm, ruote(ruby) etc [10:40] devaholic: node isnt that far along yet here check this out [10:40] devaholic: http://groups.google.com/group/nodejs/browse_thread/thread/f4b0bd943ef62c28 [10:40] ash___: are there any currently node.js modules that cover this subject [10:40] jetienne: ash___: (un)fortunatly i dunno [10:40] ash___: ok [10:40] tmedema: tuhoojabotti: my bank account starts with 1337.x [10:40] tmedema: and it's leet too [10:42] robi42 has joined the channel [10:44] bpierre has joined the channel [10:46] mattp_ has joined the channel [10:46] isaqual has joined the channel [10:50] sandstrom has joined the channel [10:50] sandstrom has joined the channel [10:51] StepanKuzmin has joined the channel [10:54] materialdesigner has joined the channel [10:57] abraxas has joined the channel [11:00] blup: anyone using socketstream? [11:04] tauren: SubStack: how to best get the browserify simple example running? [11:04] tauren: i've cloned node-browserify [11:04] tauren: cd node-browserify/example/simple [11:04] tauren: node server.js [11:04] tauren: npm install connect [11:04] tauren: npm install browserify [11:05] tauren: node server.js [11:05] emacsen has joined the channel [11:05] tauren: but still get a cannot find module 'browserify' error [11:06] tauren: looking in node-browserify/node-modules, only connect is in there. browserify doesn't appear to have installed. [11:06] cnus8n has joined the channel [11:07] SubStack: tauren: just npm install browserify [11:07] tauren: that's what i did [11:07] SubStack: actually, npm install . [11:07] SubStack: that should fetch the deps [11:08] SubStack: oh I see [11:08] SubStack: disregard, do this: [11:08] SubStack: mkdir fooproject; cd fooproject [11:08] SubStack: npm install browserify [11:09] SubStack: cp -r node_modules/browserify/example/simple/* . [11:09] SubStack: try that [11:09] tauren: ah, now it installs. [11:09] tauren: cool [11:09] tauren: so i just have to copy the example over to fooproject [11:10] SubStack: something like that [11:10] SubStack: since the examples use the package name in the requires [11:10] tauren: can you not install an npm module into it's own project folders? [11:10] SubStack: you can npm link . from the browserify directory too [11:10] SubStack: if you have a global lib directory configured [11:11] SubStack: tauren: you can but that confuses browserify specifically [11:11] tauren: i need to spend some time and learn all the ins and outs of npm [11:11] tauren: SubStack: ok, thanks, i think i can get it going now. [11:14] rfay_ has joined the channel [11:19] eee_c has joined the channel [11:21] xandrews has joined the channel [11:22] NetRoY has joined the channel [11:28] brianseeders has joined the channel [11:29] adrianmg has left the channel [11:31] gozala has joined the channel [11:31] rurufufuss has joined the channel [11:32] FireFly has joined the channel [11:35] postwait has joined the channel [11:37] jbpros has joined the channel [11:40] beejeebus has joined the channel [11:40] ryanfitz has joined the channel [11:40] eyesUnclouded has joined the channel [11:41] saschagehlich has joined the channel [11:44] gvz has joined the channel [11:45] ceej has joined the channel [11:45] Swimming_bird has joined the channel [11:46] grekko has joined the channel [11:46] simenbrekken has joined the channel [11:50] bnoordhuis_ has joined the channel [11:52] Wizek_ has joined the channel [11:52] felixge has joined the channel [11:52] felixge has joined the channel [11:52] Multiply has joined the channel [11:54] okuryu has joined the channel [12:01] sreeix has joined the channel [12:04] sounko: hahaha wt [12:04] sounko: new logo O.o [12:06] Hinton has joined the channel [12:10] cccaldas has joined the channel [12:11] justicefries has joined the channel [12:13] hasenj has joined the channel [12:13] fson_ has joined the channel [12:14] liar has joined the channel [12:14] kriszyp has joined the channel [12:14] BillyBreen has joined the channel [12:15] nerdfiles has joined the channel [12:17] arnee has joined the channel [12:19] arnee_ has joined the channel [12:19] kkaefer: is there good way to parse data URIs with url.parse()? [12:21] akshatj has joined the channel [12:22] slajax has joined the channel [12:24] eee_c has joined the channel [12:25] mrtrosen has joined the channel [12:25] Jippi has joined the channel [12:25] mehtryx has joined the channel [12:28] fumanchu182 has joined the channel [12:29] arnee has joined the channel [12:29] erobit has joined the channel [12:30] nap has joined the channel [12:30] nap: Hi ! [12:30] nap: Anyone is alive in here ? [12:30] tiagoa has joined the channel [12:30] mehtryx: Alive….yes….no caffeine yet [12:31] nap: lol, you're on autopilot [12:32] juha___ has left the channel [12:32] mehtryx: yeah literally, off to get my fix :) [12:32] level09: can I do this function (myfunc) { myfunc() } [12:32] weezle has joined the channel [12:32] arnee has joined the channel [12:33] thalll has joined the channel [12:33] kkaefer: level09: you can do function myfunc() { myfunc(); } [12:33] level09: kkaefer: yeah, actually I want this [12:33] kkaefer: of course, that'll overflow the stack [12:33] fyskij has joined the channel [12:34] kkaefer: with in named function, you can refer to that function with the name specified [12:34] level09: function func_name (arg,callbak) { do_some_work() ; callbak() } [12:34] level09: I want to pass a callback function [12:34] a111: Can node do multiline blocks like python can? [12:34] xandrews has joined the channel [12:34] gvz has joined the channel [12:35] nap: Anyone has experience successfully installing Node.js on synology DS ? [12:35] hybsch has joined the channel [12:36] a111: Nvm, it works when i escape the new line :D [12:36] sonnym1 has joined the channel [12:38] colinclark has joined the channel [12:40] mendel_ has joined the channel [12:40] boehm has joined the channel [12:41] rfay_ has joined the channel [12:42] fille has joined the channel [12:42] Yoric has joined the channel [12:42] fille: yooooo [12:42] fumanchu182 has joined the channel [12:42] tuhoojabotti: fille: Hejssan [12:43] fille: moi [12:43] tuhoojabotti: :u [12:43] mendel_ has joined the channel [12:43] hlindset has joined the channel [12:43] hlindset has joined the channel [12:44] Skola has joined the channel [12:44] smtlaissezfaire has joined the channel [12:45] christophsturm has joined the channel [12:45] nap: Anyone has experience successfully installing Node.js on synology DS ? [12:47] tuhoojabotti: Nintendo DS [12:47] fille: :d [12:47] fille: :D [12:47] infynyxx has joined the channel [12:47] tuhoojabotti: My web server is running on commodore64 [12:48] nap: that thing must scale like crazy [12:48] fumanchu182 has joined the channel [12:48] ianward has joined the channel [12:48] tuhoojabotti: http://www.commodoreusa.net/CUSA_C64.aspx [12:50] jbpros has joined the channel [12:51] nap_ has joined the channel [12:54] adambeynon has joined the channel [12:54] liar has joined the channel [12:55] Renegade001 has joined the channel [12:55] mekbot has joined the channel [12:57] gxdssoft has joined the channel [13:01] StepanKuzmin has joined the channel [13:01] AaronMT has joined the channel [13:02] _aron has joined the channel [13:02] beejeebus has left the channel [13:03] Guest76052 has joined the channel [13:03] simenbrekken has joined the channel [13:04] mobius-: hello everyone, i would like to use the node.vm module and from what I've read so far it should be executed in a separate process to avoid having some js code blocking my main process. So my next though was to create a pool of worker processes to handle just that. What would you think is the best way to go? Have you seen this? http://stackoverflow.com/questions/4762016/node-js-workers-background-processes [13:05] jacobolus has joined the channel [13:06] mobius-: nobody? [13:08] d0k has joined the channel [13:08] erobit has joined the channel [13:09] ash___: mobius-: you basically want a worker queue [13:09] thomblake has joined the channel [13:10] ash___: mobius-: http://learnboost.github.com/kue/ [13:10] ash___: this is worth looking at [13:10] Lightdork has joined the channel [13:10] davidsklar has joined the channel [13:10] mobius-: ash__: I am gonna go check it out. Thanks! [13:11] industrial: What's the preferred way of connecting with mongodb? [13:12] edude03 has joined the channel [13:12] nerdfiles has joined the channel [13:12] ash___: industrial: there a couple of framewrosk, mongoosejs is good if you need ORM [13:12] nerdfiles has left the channel [13:12] jonasen has joined the channel [13:12] industrial: ash___: No I specifically don't :) we're sharing model code on the client/server [13:13] industrial: not fat models either [13:13] brolin has joined the channel [13:13] yLothar has joined the channel [13:13] ash___: https://github.com/christkv/node-mongodb-native [13:13] ash___: this is the driver that most frameworks sit on top off [13:13] ash___: if you need lowlevel stuff [13:13] yLothar: hi all :-) [13:14] industrial: okay [13:14] yLothar: I need an help: I'm new to node.js and I'm trying to work on a process that write a few commands via telent to another service [13:15] yLothar: my problem is that if I put more than one write statement it seems one the first goes ok [13:16] figital has joined the channel [13:16] yLothar: I'm trying to work on event drain but I'm not sure it's the right solution... [13:20] Xano has joined the channel [13:20] bnoordhuis_: yLothar: can you gist or pastie what you have so far? [13:21] yLothar: bnoordhuis_: sure, just give me a few secs :-) [13:21] jacobolus has joined the channel [13:22] ash___: I am looking for a module which can do a deep object diff [13:22] ash___: compare 2 object structures, and return a list of change sets [13:23] yLothar: bnoordhuis: http://pastie.org/2201874 [13:23] rwaldron has joined the channel [13:23] asobrasil has joined the channel [13:24] yLothar: bnoordhuis: it's a constructor for a class of object that will write and listen simple telnet messages [13:25] mapleman has joined the channel [13:25] bnoordhuis: yLothar: this.conn.setEncoding(this.ecoding); <- ecoding [13:25] bnoordhuis: yLothar: what kind of object does bot.createConnection() return? [13:26] paznicul has joined the channel [13:27] yLothar: bnoordhuis: line 29 works great, I see the connection on the other side, but not line 30 [13:27] patcoll has joined the channel [13:27] yLothar: bnoordhuis: ok, fixed line 11 but it's not the point :-P [13:27] yLothar: bnoordhuis: var bot = require("net"); [13:30] brettgoulder has joined the channel [13:30] bnoordhuis: yLothar: what do you see when you run your script like this? -> NODE_DEBUG=net node yourscript.js [13:30] slickplaid has joined the channel [13:31] pickels has joined the channel [13:32] azeroth_ has joined the channel [13:32] yLothar: bnoordhuis: http://pastie.org/2201910 [13:33] RC1140 has joined the channel [13:33] bnoordhuis: yLothar: you're using socket.io, it seems? [13:33] yLothar: bnoordhuis: yep, but on another side of the project [13:34] bnoordhuis: yLothar: makes it harder to tell what's going on [13:34] bnoordhuis: yLothar: if i were you, i'd try a standalone test case and see where you get [13:34] bnoordhuis: s/where/what/ [13:35] yLothar: bnoordhuis: ok, I begin to make a detached test script [13:37] xandrews has joined the channel [13:39] jacobolus has joined the channel [13:40] yLothar: bnoordhuis: http://pastie.org/2201945 [13:41] yLothar: bnoordhuis: it's only the client side [13:41] bnoordhuis: yLothar: looks good so far, doesn't it? [13:41] unomi has joined the channel [13:41] yLothar: bnoordhuis: mmm, the problem is still there [13:42] yLothar: bnoordhuis: server side, I've got only the first send statement, nor the second [13:42] sivy has joined the channel [13:42] ngs has joined the channel [13:42] bnoordhuis: yLothar: what happens if you ping your server with telnet or netcat? [13:43] sounko has joined the channel [13:43] yLothar: bnoordhuis: I've tested server with either telnet and netcat and it works great [13:43] yLothar: bnoordhuis: I've got proble with node.js telnet statements [13:43] bnoordhuis: yLothar: have you traced the traffic with tcpdump or wireshark? [13:44] bnoordhuis: yLothar: because it would seem the messages are being sent [13:45] yLothar: bnoordhuis: what I can't understand is that I've put in my constructor a specific drain listen, and it isn't matched! [13:45] voodootikigod has joined the channel [13:45] Swimming_bird has joined the channel [13:46] bnoordhuis: yLothar: matched? [13:47] jtsnow has joined the channel [13:48] yLothar: bnoordhuis: sorry for my english... I mean, there is an addListener for drain event, and it is triggered only once [13:49] bnoordhuis: yLothar: drain is only emitted when queued data is sent out [13:50] FireFly|n900 has joined the channel [13:50] bnoordhuis: yLothar: that is, a write to the socket that immediately succeeds, won't emit a drain event [13:51] yLothar: bnoordhuis: mmm, I'm confused... but the first connect statement triggers a drain event [13:52] Aiden has joined the channel [13:52] bnoordhuis: yLothar: okay, forget i said all that - it's an implementation detail anyway [13:53] Kuntau has joined the channel [13:53] bnoordhuis: yLothar: simply write to the socket and forget about drain events [13:53] bnoordhuis: yLothar: they're good for traffic throttling but that's not what you're trying to do here [13:53] bshumate has joined the channel [13:53] bshumate has joined the channel [13:54] Corren has joined the channel [13:55] kriszyp has joined the channel [13:56] Corren: o/ [13:57] Poetro_ has joined the channel [13:57] c4milo has joined the channel [13:58] bpierre has joined the channel [13:59] justicefries has joined the channel [14:00] systemfault_ has joined the channel [14:00] colinclark has joined the channel [14:01] saschagehlich: hey folks [14:02] systemfault has joined the channel [14:02] colinclark_ has joined the channel [14:02] saschagehlich: I have a quite simple problem (at least I hope it's simple) - I'm using stylus as a middleware compiler in express.js for my css stuff - but I have to restart the whole process so that stylus files get updated. [14:02] saschagehlich: is there a way to automatically update css files when my stylus files are being changed? [14:03] futuredarrell: have you tried something like nodemon? im not sure if it looks for css changes, but it might [14:03] jtsnow has joined the channel [14:03] futuredarrell: it seems to restart the process whenever any file is changed in the same or child dirs of app.js [14:04] smtlaissezfaire has joined the channel [14:05] xtianw has joined the channel [14:06] willwhite has joined the channel [14:06] christop- has joined the channel [14:07] seawise_ has joined the channel [14:08] ksheurs has joined the channel [14:08] jakehow has joined the channel [14:10] FireFly|n900 has joined the channel [14:11] mike5w3c has joined the channel [14:11] Poetro__ has joined the channel [14:11] yLothar: bnoordhuis: ok, I've found the problem [14:12] Corren: futuredarrell: what happens to existing connections? [14:12] bnoordhuis: yLothar: do tell! [14:12] mbrevoort has joined the channel [14:12] nibblebot has joined the channel [14:12] yLothar: bnoordhuis: when I use multiple consecutive send statements these are sent together like a multiple lines statements [14:13] brianc has joined the channel [14:13] futuredarrell: they probably timeout or are killed [14:14] saschagehlich: futuredarrell: oh okay, so that's the way to do it? [14:14] bnoordhuis: yLothar: yes, that's expected behaviour [14:14] yLothar: bnoordhuis: my server service was listening only for the first line of chunk, I've made a patch to read ALL the lines and now it seems to wrok [14:14] wilmoore has joined the channel [14:14] bnoordhuis: yLothar: good :) [14:14] bnoordhuis: yLothar: if you have a request/response type of application [14:15] futuredarrell: im not so sure, im a node newb. but i was getting tired of restarting the node process everytime i made js changes and so i installed nodemon and it relaunches the process when a file is changed [14:15] bnoordhuis: yLothar: you should send the request, then wait for the response [14:15] futuredarrell: you should check it out anyway [14:15] bnoordhuis: yLothar: batching requests will do... well, what you experienced [14:15] futuredarrell: its two / three commands in the terminal [14:15] futuredarrell: ctrl c [14:16] futuredarrell: npm install nodemon [14:16] futuredarrell: nodemon app.js [14:16] futuredarrell: :) [14:17] yLothar: bnoordhuis: ok, but now I'm a little confused... tak this example: I want to write a command (one line), listen for an ok response message and then send the second command... how can I achieve this? [14:17] bnoordhuis: yLothar: simple - after you've sent the command, you enter read mode [14:17] yLothar: bnoordhuis: how? [14:19] bradleymeck has joined the channel [14:19] futuredarrell: saschagehlich: http://stackoverflow.com/questions/5612777/stylus-and-express-stylesheets-are-not-re-compiled-when-modified [14:20] saschagehlich: aaah [14:20] bnoordhuis: yLothar: pass a callback to conn.write() - it'll be called when the data is written out [14:20] saschagehlich: nice thy futuredarrell :) [14:20] saschagehlich: erm [14:20] saschagehlich: futuredarrell: didnt work :P [14:20] bnoordhuis: yLothar: oh, and make sure to listen for the 'data' event [14:20] saschagehlich: static() is already at the very bottom of my settings [14:21] bnoordhuis: yLothar: model your client as a state machine and you should be good to go [14:21] bnoordhuis: yLothar: i.e. state 0 == write out data, then switch to state 1 == wait for incoming data, state 2 == write out second request, etc. [14:22] ryanfitz has joined the channel [14:23] futuredarrell: saschagehlich: sorry - not sure if i can go any farther. so far ive only been using jade and writing css the old fashioned way [14:24] saschagehlich: hmm okay thanks anyway :) [14:24] yLothar: bnoordhuis: I can't figure out how I can have a routine wait to wirte until state == 0 [14:25] bnoordhuis: yLothar: i don't know what you mean [14:27] pifantastic has joined the channel [14:28] bradleymeck: substack ping [14:28] robhawkes has joined the channel [14:28] yLothar: bnoordhuis: take my example, I want to write two statements to my telnet server, and I want to do this in this way: write fisrt line, wait until the server says "ok", write the second line, wait the server says "ok" [14:29] yLothar: bnoordhuis: how I can do this with callback function? [14:29] yLothar: bnoordhuis: (if it's this the way i should do this...) :-) [14:30] BillyBreen has joined the channel [14:30] bnoordhuis: yLothar: register a 'data' event listener, that's for incoming data - have it check your state var, if state != reading throw an error [14:30] brianc has joined the channel [14:30] JJMalina has joined the channel [14:30] bnoordhuis: yLothar: on connect, write your request and set state to reading [14:31] RORgasm has joined the channel [14:31] bnoordhuis: yLothar: now your data listener will be called (eventually) when the response from the server comes in [14:31] balaa has joined the channel [14:31] bnoordhuis: yLothar: when you have a complete response, switch to state = writing and write out the second request [14:31] bnoordhuis: etc. [14:32] bnoordhuis: yLothar: btw, "on connect, write your request and set state to reading" <- write out your request, pass a callback to write() and from within in that callback switch to state = reading [14:32] hasenj has joined the channel [14:33] bnoordhuis: because the callback is invoked when the request has been sent out [14:34] mynyml has joined the channel [14:34] jerrysv has joined the channel [14:34] industrial: Say I have one file app.js that has the app var and db var (mongodb). I now have a controller in a different file/module in which I want to use the db var. How do I pass it without reinitializing it? [14:34] tbranyen: industrial: separate your concerns [14:35] bnoordhuis: 0000:0000:0000:0000:0000:0000:00001:0000 <- valid ipv6 address or not? [14:35] industrial: fine, a model. [14:35] industrial: file x. [14:35] tbranyen: i'm well aware of what you're asking, and yes you can pass it, but you should ask yourself why [14:35] tbranyen: what are you doing that can't be solved with a data access layer [14:35] tbranyen: that is completely isolated from your controller [14:35] Know1edge has joined the channel [14:35] slickplaid has joined the channel [14:36] industrial: if I'm asking this question then i probably dont know how to implement such database layer [14:37] xtianw has joined the channel [14:38] jtrudeau has joined the channel [14:38] aheckmann has joined the channel [14:39] jerrysv: industrial: a base db layer with an instance of your connection, have your models inherit or require from there. [14:39] jetienne has joined the channel [14:40] kimico has joined the channel [14:40] bbrandon has joined the channel [14:41] ericnakagawa has joined the channel [14:41] clifton has joined the channel [14:42] rpflo has joined the channel [14:44] xandrews has joined the channel [14:45] xtianw has joined the channel [14:45] industrial: jerrysv: https://gist.github.com/1a58944ade5aab9991b3 like so? [14:45] colinclark_ has joined the channel [14:45] industrial: and then db = require('../lib/db.js').getDatabase(); [14:46] tjholowaychuk has joined the channel [14:46] jerrysv: that's a good start, you can go that route, or the classical inheritance route [14:47] Know1edge has left the channel [14:47] kmiyashiro has joined the channel [14:48] blup has joined the channel [14:48] ash___: are there any js frameworks for doing a deep object diff ? [14:48] ash___: getting list of changesets/differences? [14:49] gid has joined the channel [14:50] dexter_e has joined the channel [14:51] jtsnow has joined the channel [14:52] gid has left the channel [14:53] unlink has joined the channel [14:54] pickels_ has joined the channel [14:56] smtlaissezfaire_ has joined the channel [14:56] mandric has joined the channel [14:57] sub_pop has joined the channel [14:57] gazumps has joined the channel [14:58] sbisbee has joined the channel [15:02] paznicul has joined the channel [15:04] springmeyer has joined the channel [15:05] pjacobs has joined the channel [15:06] boaz has joined the channel [15:06] sfoster has joined the channel [15:07] kulor-uk has joined the channel [15:08] kimico has joined the channel [15:08] burg has joined the channel [15:08] shenlok_ has joined the channel [15:09] mandric_ has joined the channel [15:09] http402 has joined the channel [15:09] shenlok_: hello guys, complete newbie here following along with the http://www.nodebeginner.org tutorial, i'm running into a problem with child_process.exec() on windows [15:11] shenlok_: i am trying to execute the "dir" command, and it is not working, the code and error are pasted here http://pastebin.com/WXG82zfn [15:11] infynyxx has joined the channel [15:12] bradleymeck: might be that cygwin is forcing the process to be in cygwin's bash [15:12] Mrfloyd has joined the channel [15:12] shenlok_: i'm not using cygwin, i am using the precomipiled 0.4.9 binary [15:12] shenlok_: which i found here http://node-js.prcn.co.cc/ [15:12] shenlok_: oh wait [15:12] robertfw has joined the channel [15:12] shenlok_: cygwin binaries are included, nvm [15:13] shenlok_: do you know of any way to get around such behaviour? [15:13] caolanm has joined the channel [15:13] bradleymeck: use the bash equivalents until 0.6.x hits [15:14] jerrysv: i said it yesterday, and i'll say it again. i really can't wait until this windows round of development is complete so there is parity. [15:14] kk has joined the channel [15:14] bradleymeck: putting node in a VM will result in best experience on windows until then [15:14] bradleymeck: there will never be parity for c++ T_T [15:14] jerrysv: at least some parity for how the core works [15:14] shenlok_: just tried it there with "ls -lah" instead of dir, same error it seems [15:14] tbassetto has joined the channel [15:15] bradleymeck: odd [15:15] shenlok_: same with "man" [15:15] bradleymeck: going to need to show code for more info [15:16] jerrysv: shenlock_: why are you trying to exec something instead of getting the directory contents in code? [15:16] shenlok_: http://pastebin.com/WXG82zfn [15:16] jerrysv: sorry, -c [15:16] noel_g has joined the channel [15:16] shenlok_: jerrysv: i am simply following a tutorial/intro i found on http://www.nodebeginner.org [15:16] confoocious has joined the channel [15:17] brianloveswords has joined the channel [15:17] jerrysv: shenlok_: yech. i'd skip that part on windows personally [15:18] saschagehlich has joined the channel [15:18] Mrfloyd has joined the channel [15:18] bradleymeck: execvp means the command is missing, so the pathing to use child processes will be borked [15:19] kk: Hi guys, would love to have your feedback: http://www.gamooga.com/. Its a hosted realtime communication backend for collaborative apps and multiplayer games. [15:19] shenlok_: is there a way to explicitly set the path that child_process uses [15:19] Robdor has joined the channel [15:19] xtianw has joined the channel [15:20] smolyn has joined the channel [15:21] bradleymeck: well its probably just using the system paths [15:22] noel_g: I installed node.js on ubuntu following the Readme instructions ./configure make, sudo make install. All seems ok and I am able to start node example.js but when I go to myserver.com:1337 I dont get hello world. I do have apache running on this server, but I wouldnt expect it to do anything to port 1337. any ideas what could be going on? [15:22] shenlok_: i'd have thought it if was using the system paths then it would be able to execute "dir" without problem? [15:22] mscdex: noel_g: what does your .listen() look like? [15:23] briznad has joined the channel [15:23] level09: what is the best mysql driver ? [15:24] noel_g: mscdex: I just copied example.js (hello world) from here http://nodejs.org/ [15:24] bradleymeck: shenlok_ good point, idk what its using then [15:24] level09: node-mysql doesn't seem to handle simple joins :s [15:24] bnoordhuis: noel_g: the server is listening at localhost, not myserver.com [15:24] mscdex: noel_g: if that's the case, it's only listening on 127.0.0.1. if you want to listen on all interfaces, just use .listen(1337); [15:25] noel_g: yes, sorry, I did change that listen(1337, "myserver.mycompany.com"); [15:25] EyePulp has joined the channel [15:26] mscdex: level09: are you using a multi-line string literal for your query when you get that error? [15:26] dnjaramba has joined the channel [15:26] level09: yes [15:26] level09: dont tell me that was the issue :D [15:26] mscdex: level09: are you missing a "\" at the end? [15:26] mscdex: (without the quotes) [15:26] level09: aaaaah [15:26] infynyxx has left the channel [15:26] level09: I need that ? [15:27] level09: :D [15:27] mscdex: level09: you need that at the end to tell the interpreter that the literal continues on the next line [15:27] Viriix has joined the channel [15:27] wilken has joined the channel [15:27] ash___: any workflow frameworks for node.js? [15:28] noel_g: doing this worked listen(1337), but why not with "myserver.mycompany.com" [15:28] tristanoneil: tjholowaychuk: is it possible to dynamically name local template variables using the render method? [15:28] mscdex: ash___: like Step, et al? [15:29] level09: mscdex: thanks, gonna try that [15:29] ash___: mor elike BPM [15:29] tjholowaychuk: tristanoneil yeah, but with js you need to assign the object first [15:29] tjholowaychuk: tristanoneil var obj = {}; obj[name] = 'foo' [15:29] ash___: workflow engine [15:31] noel_g: neither using "myserver" nor "myserver.mycompany.com" work, only when I specify the port alone does it work [15:31] pt_tr has joined the channel [15:32] Mikushi has joined the channel [15:32] bradleymeck: noel_g have you changed your hosts file to point to there? [15:33] bradleymeck: whenever any server needs to override dns to point locally you need to change the linux host file for it to work unless and external dns is pointing to your box [15:34] Mikushi: Hi there, i seem to have an issue with os.uptime() , my machine has an uptime of 1day~, but os.uptime() returns something like 7h. I am running Ubuntu 11.04. [15:34] zeade has joined the channel [15:34] bradleymeck: did it go to sleep? [15:35] Mikushi: Yep, during the night [15:35] eyesUnclouded has joined the channel [15:35] pHcF has joined the channel [15:35] matomesc has joined the channel [15:36] rauchg has joined the channel [15:36] noel_g: bradleymeck: server is on dns and when I do listen(1337) I can access it from http://myserver.mycompany.com:1337 [15:36] Spion has joined the channel [15:37] tristanoneil: tjholowaychuk: Got it working. Thanks again. [15:37] caiges has joined the channel [15:38] fostah has joined the channel [15:39] jakehow has joined the channel [15:41] mbrevoort has joined the channel [15:41] balaa has joined the channel [15:41] jj0hns0n has joined the channel [15:42] hwinkel has joined the channel [15:42] yozgrahame has joined the channel [15:43] sw8sw8 has joined the channel [15:44] yLothar has joined the channel [15:45] yLothar: bnoordhuis: thank you for your help, do yuo mind if I ask you another little question about socket.io 0.7? [15:45] yLothar: s/yuo/you/ [15:46] stephank has joined the channel [15:46] tuhoojabotti: yLothar: I have that in autocompletion :D [15:46] yLothar: tuhoojabotti: lol :-) [15:46] tuhoojabotti: also ♪ and ♫ [15:46] tuhoojabotti: :D [15:47] tuhoojabotti: And lot's of other stuff [15:47] jetienne has joined the channel [15:47] bnoordhuis: yLothar: i don't know socket.io that well [15:48] zeade1 has joined the channel [15:49] spasquali has joined the channel [15:49] colinclark has joined the channel [15:49] tuhoojabotti: I can't believe it, but our insurance company has paid for my phone that broke at the gig of Pendulum. :D [15:49] yLothar: bnoordhuis: I simply need the right command to send and receive data from server to client. I've read all the documentation about migration from 0.6 to 0.7 [15:50] mjr_ has joined the channel [15:50] tuhoojabotti: http://www.tuhoojabotti.com/r/share/kaenny.jpg This one :D [15:50] yLothar: bnoordhuis: I use sock.sockets.sockets[clientid].json.send() to send [15:50] bnoordhuis: yLothar: maybe i should've said that i don't know socket.io at all :) [15:50] spasquali: I need help on how to check for server flooding. Is there some way for me to check the number of requests that are queued for a server? [15:50] yLothar: and it seems to work, I see message in the log [15:50] JaKWaC has joined the channel [15:51] yLothar: but it seems I can't get the message on client side [15:51] hybsch has left the channel [15:51] Ramosa has joined the channel [15:51] yLothar: bnoordhuis: on client I use socket.on('message', ....) [15:51] dexter_e has joined the channel [15:52] JaKWaC: Anyone know of a tool that (when provided a list of queries) can create a mapping of all tables based on the JOIN parameters of a SQL query? [15:53] JaKWaC: of the SQL* [15:53] fattytuna has joined the channel [15:53] Yuffster_work has joined the channel [15:54] JaKWaC: I have this HUGE application and the database struchure is horrid. So I'm looking for a way to scan through all the code and create a map that shows how each table relates to eachother (as there are no forien keys or primary keys defined) [15:54] ash___: tjholowaychuk: were you involved with kue? [15:55] tjholowaychuk: ash___ yeah [15:55] jetienne has joined the channel [15:58] ash___: do you know where i can see the testcases for kue, its not committed into that project [15:58] prettyrobots has joined the channel [15:58] sivy has joined the channel [15:58] tjholowaychuk: ash___ there are none :) [15:58] tjholowaychuk: (yet at least) [15:59] ash___: ok [15:59] ash___: thanks [15:59] ash___: i wanted to create something simular [15:59] ash___: but with workflow [15:59] gozala has joined the channel [15:59] jacobolus has joined the channel [15:59] davidwalsh has joined the channel [15:59] havenn has joined the channel [16:00] sivy has joined the channel [16:02] smtlaissezfaire_ has joined the channel [16:04] nibblebo_ has joined the channel [16:05] slajax has joined the channel [16:05] _sorensen_ has joined the channel [16:05] zmbmartin has joined the channel [16:06] smtlaissezfaire_ has joined the channel [16:07] Yoric has joined the channel [16:07] noel_g has left the channel [16:08] jtsnow has joined the channel [16:08] luke` has joined the channel [16:08] prettyrobots_ has joined the channel [16:09] _sorensen_ has joined the channel [16:09] RC1140: hey guys do you know if its possible to embed a node.js app into a objective-c application [16:10] mbrevoort has joined the channel [16:10] Corren has joined the channel [16:10] context: rc1140: an [16:10] isaacs has joined the channel [16:10] RC1140: thanks context [16:10] jerrysv: rc1140: yes. [16:11] RC1140: jerrysv, link or info ? on how [16:11] gozala has joined the channel [16:11] jerrysv: rc1140: for an example, check out kod.app [16:11] jerrysv: may not be the BEST example: https://github.com/rsms/kod [16:11] RC1140: i use kod , didnt know that it used node [16:12] jerrysv: ntegrated scripting environment based on Node.js. [16:12] jerrysv: :) [16:12] TheFuzzball has joined the channel [16:14] kulor-uk has joined the channel [16:14] russell_h has joined the channel [16:14] wilmoore has joined the channel [16:14] brettgoulder has joined the channel [16:17] JJMalina has joined the channel [16:19] dgathright has joined the channel [16:20] apipkin has joined the channel [16:21] apipkin: i'm trying to see if i have yui3-core installed. what is the correct syntax for that? [16:21] mundanity has joined the channel [16:21] apipkin: the npm package that is [16:23] cccaldas has joined the channel [16:23] towski has joined the channel [16:23] jslatts has joined the channel [16:24] isaacs: apipkin: npm ls [16:24] hij1nx has joined the channel [16:24] isaacs: hij1nx: /^\/([^\/]*)\/([^\/]*)/ [16:25] isaacs: v8: re = /^\/([^\/]*)\/([^\/]*)/; "/foo/bar".match(re) [16:25] hij1nx: isaacs: javascript party [16:25] isaacs: .. re = /^\/([^\/]*)\/([^\/]*)/; "/foo/bar".match(re) [16:25] catb0t: [ 03'/foo/bar', 03'foo', 03'bar' ] [16:25] Cleer has joined the channel [16:25] isaacs: v8bot: whassup? [16:25] isaacs: ircretary: tell v8bot to wake up [16:25] ircretary: isaacs: I'll be sure to tell v8bot [16:25] hij1nx: v8bot: engage [16:26] joshthecoder has joined the channel [16:26] Aphelion has joined the channel [16:26] raidfive has joined the channel [16:26] apipkin: bah! npm ls says i have yui3-core 3.3.0, but yuidocjs is saying the package cannot be found [16:26] softdrink has joined the channel [16:27] isaacs: apipkin: is yuidocjs installed locally or globally? what version of npm? [16:27] apipkin: 1.0.10 [16:27] isaacs: apipkin: k [16:27] apipkin: i followed dav's instructions here https://github.com/davglass/yuidocjs [16:27] apipkin: i'm guessing the -g is "global"? [16:28] TooTallNate has joined the channel [16:28] apipkin: this is what npm ls gives me https://gist.github.com/1078354 [16:31] arnee has joined the channel [16:31] NetRoY has joined the channel [16:32] thalll has joined the channel [16:33] Robdor has left the channel [16:34] Swimming_bird has joined the channel [16:34] softdrink: can anyone recommend a good, no-BS registrar? [16:35] mbrevoor_ has joined the channel [16:37] tuhoojabotti: What registrar? [16:37] jerrysv: apikin: try npm ls -g [16:39] zemanel has joined the channel [16:41] tdegrunt has joined the channel [16:43] spasquali: is there a way to read/monitor the load a server is receiving, perhaps checking the number of clients making requests, any queued requests...? [16:44] kixxauth has joined the channel [16:45] topaxi has joined the channel [16:49] partitus has joined the channel [16:49] admc has joined the channel [16:49] apipkin: jerrysv: https://gist.github.com/1078401 [16:51] dipser has joined the channel [16:52] dshaw_ has joined the channel [16:52] jetienne: i understand the logo!!!! it is done to be able to do it in ascii art!! :) [16:53] smolyn has joined the channel [16:53] Intel_iX has joined the channel [16:53] bene has joined the channel [16:53] jetienne: https://raw.github.com/brianleroux/Cordova/58804a21e285e1a9eb4411c06392aa117f20dfec/README.md like this one [16:53] tcurdt has joined the channel [16:54] bene has left the channel [16:55] CIA-107: node: 03Henry Rawas 07master * rfad91d1 10/ (Makefile lib/net_uv.js): test-net-reconnect needs socket connect event - http://bit.ly/qxLa3r [16:55] CIA-107: node: 03Ryan Dahl 07v0.4 * r6bcd96c 10/ doc/favicon.ico : Update favicon - http://bit.ly/oYMNkI [16:55] xerox: hardcore commit [16:57] CIA-107: libuv: 03Henry Rawas 07master * r6b32ebc 10/ (5 files in 3 dirs): uv_getsockname - http://bit.ly/q2IYEu [16:57] jw013 has joined the channel [16:59] saikat has joined the channel [17:00] amerine has joined the channel [17:00] carmony has joined the channel [17:01] ryah: i have to say - i really like the new logo :) [17:01] felixge: ryah: I like it a little bit more now, but my first impression was: Where that cute cloud logo go : ) [17:01] pen_ has joined the channel [17:02] ryah: it's like a little circuit [17:02] broofa has joined the channel [17:03] dmcquay has joined the channel [17:04] jacobolus has joined the channel [17:04] jetienne: ryah: yeah sure :) [17:04] thejh has joined the channel [17:05] dshaw_ has joined the channel [17:05] tuhoojabotti: ryah: The logo is nice, bg color not so much :D [17:05] tuhoojabotti: Doesn't work with the green imho [17:06] willwhite has joined the channel [17:06] jetienne: a simple design contest could fix it btw :) "we missed this one, tell us what to do" and you get buzz around node the time of the contest and likely a much better result [17:06] jetienne: and a sense of owership for the community [17:06] lukstr: winner gets a free copy of node [17:07] jetienne: nah winner got a line on the resume which is very valuable :) [17:07] mraleph has joined the channel [17:07] cjm: it's just too busy for a logo, and has some bad kerning - something like this makes more sense http://dothejoy.com/noderedux.png [17:07] lukstr: jetienne: you are what's wrong with graphics design :) [17:08] jetienne: lukstr: cool that im a coder then :) [17:08] tjholowaychuk: cjm sweet [17:08] lukstr: it doesn't shrink well -- there should probably be a small size one [17:08] tjholowaychuk: that looks good [17:08] lukstr: jetienne: as am I [17:08] Cleer: haha, like Gap [17:08] Cleer: "our logo sucks, make us a new one" [17:08] idefine has joined the channel [17:08] tuhoojabotti: Hmm [17:08] Cleer: "nvm, reverting everything" [17:08] tuhoojabotti: The new favicon is blank :D [17:08] prettyrobots has joined the channel [17:08] tuhoojabotti: http://nodejs.org/favicon.ico [17:08] corytheboyd has joined the channel [17:08] lukstr: cjm: I like the position of the js shape [17:08] cjm: thanks tjholowaychuk [17:08] devaholic: no nono [17:08] Cleer: the red is nice. [17:09] devaholic: put the js thing inside the N [17:09] jetienne: the font is still unreadable tho :) [17:09] lukstr: cjm: I might steal your colours [17:09] devaholic: and get rid of the ode [17:09] pietern has joined the channel [17:09] tjholowaychuk: cjm you should make one for express :D [17:10] lukstr: the express site could use an overhaul :P not enough contrast [17:10] jetienne: nothing bad in admiting mistake :) [17:10] willwhite has joined the channel [17:11] jetienne: ok going back to jquery mobile css [17:11] taf2: ACTION is never wrong never damnit never [17:11] tjholowaychuk: lukstr for sure [17:11] tjholowaychuk: i want something entirely new [17:11] tjholowaychuk: but that starts with the logo [17:11] materialdesigner has joined the channel [17:11] cjm: tjholowaychuk yea, i could help out [17:11] tjholowaychuk: well, lack of a logo [17:12] lukstr: cjm: how does $0 sound [17:12] taf2: ACTION is game if he can get 10% of that [17:12] Renegade001 has joined the channel [17:13] lukstr: taf2: fine but I also get your first born [17:13] tjholowaychuk: cjm awesome! that would be insanely rad [17:13] cjm: hah, i use the stuff he's built enough to just help out [17:13] tjholowaychuk: my designer friend was going to but he's taking forever [17:13] taf2: lukstr, i take checks not money orders [17:13] tmpvar has joined the channel [17:14] lukstr: taf2: fine fine you just pay me upfront then [17:15] ryanj has joined the channel [17:15] Bonuspunkt: v0.5.1 is this week? [17:16] nibblebot has joined the channel [17:16] mjr_ has joined the channel [17:16] bradleymeck has joined the channel [17:17] hij1nx has joined the channel [17:17] zodiak has joined the channel [17:17] eddanger has joined the channel [17:19] estrathmeyer has joined the channel [17:20] robertfw has joined the channel [17:20] necrodearia has joined the channel [17:21] lukstr: ACTION ducks as ryah bans the logo haters [17:21] Bonuspunkt: <3 [17:21] Intel_iX has left the channel [17:22] estrathmeyer: man, I've been out of the loop... when'd the new site go live? [17:22] NetRoY has joined the channel [17:22] jetienne: estrathmeyer: it is now for everybody to enjoy :) [17:22] estrathmeyer: it's very chocolatey. [17:24] jetienne: you mean readable and nice looking arent you ? :) [17:24] estrathmeyer: reminds me of the old bespin theme [17:24] joshthecoder has joined the channel [17:25] perezd has joined the channel [17:25] taf2: lukstr, i prefer to build everything first... say few hell marries and pray you'll pay :) [17:25] taf2: it's been working out great so far :P [17:27] joshthecoder has joined the channel [17:27] wilken has joined the channel [17:28] cccaldas has joined the channel [17:28] dtan has joined the channel [17:29] fille has joined the channel [17:30] fille: yo yo yo [17:31] fille: was upp turtels and v8 rockets [17:31] fille: rockers [17:31] lukstr: turtles? [17:31] fille: nod [17:31] lukstr: why turtles [17:32] ckknight: I like turtles [17:32] apipkin: so i'm still stuck on this issue with yuidocjs this is the error i get https://gist.github.com/1078405 [17:32] cjm: hah http://substack.net/images/node_turtle.png [17:32] lukstr: ckknight: it's turtles all the way down [17:33] fille: :D [17:33] jerrysv: needs fire [17:33] xtianw has joined the channel [17:33] jerrysv: from the turtle's mouth [17:33] cjm: http://substack.net/images/node_turtle_plume.png [17:33] fille: timmy the turtle? [17:33] context: apipkin: did you read what it sayd [17:34] apipkin: context: yeah and then i did https://gist.github.com/1078354 [17:34] dingomanatee: Does anyone know of a nice module that would let me render bitmaps in greyscale mode? (Pngs or BMPs or whatever) [17:34] dingomanatee: Node canvas gives me at best 0-255 shades. [17:34] context: apipkin: im guessing yui3 has not been updated for npm 1.0 [17:34] context: apipkin: move node_modules/yui3-core to node_modules/yui3/node_modules/ [17:35] RC1140 has left the channel [17:35] context: wtf. [17:36] context: they're changing net.isIP() to use a regex instead of inet_pton ? [17:36] dgathright has joined the channel [17:36] admc has joined the channel [17:36] jetienne: any g+ poll app ? to see which one win: the turtle or the official [17:36] fille: looking at java cms [17:36] context: thats the dumbest idea ive heard of in a while. wth are those guys doing at joyent. [17:36] fille: they are sick! 200mb [17:36] fille: like a f*cking tank [17:37] jetienne: context: busy doing nice logo :) [17:37] necrodearia has joined the channel [17:37] fille: jetienne :D [17:37] dingomanatee: Lets reme mber Thumper's rule [17:37] fille: can u ad a wisp of the will? [17:37] fille: add [17:38] Aiden has joined the channel [17:40] `3rdEden has joined the channel [17:40] blup has joined the channel [17:40] ryanfitz has joined the channel [17:40] wadey has joined the channel [17:41] _aron has joined the channel [17:41] bogomips has joined the channel [17:42] apipkin: context: no luck [17:42] mbrevoort has joined the channel [17:44] balaa_ has joined the channel [17:44] iammerrick has joined the channel [17:44] vipaca has joined the channel [17:45] bergie has joined the channel [17:45] vipaca: Anyone know how to get all the properties of an object or all the keys of and associative array? [17:45] zeade has joined the channel [17:45] taf2: hey context, thanks for the help yesterday i eventually figured out what i was doing wrong with the crypto libs [17:45] fille: anyone know a good suggestion algoritm [17:45] apipkin: what's the correct command to update npm? [17:45] zemanel has joined the channel [17:45] hookdump has joined the channel [17:45] systemfault: vipaca: Object.keys(theObject); [17:46] taf2: vipaca,does these apis work in node.js: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys [17:46] dingomanatee: var o = {"foo": 1, "bar": 2}; [17:46] dingomanatee: alert(Object.keys(o)); [17:46] systemfault: :'( [17:46] fille: dongomantee me? [17:46] Aikar: context: maybe inet_ makes sys calls where as regex is faster and more portable? [17:46] Corren: ok theory question: currently we have static content served from nginx, and node.js is doing all api work. We have no server composition. [17:46] systemfault: People using alert make me cry. [17:46] Aikar: alert(systemfault)! [17:46] dingomanatee: alert('suck it') [17:46] vipaca: you guys are awesome! [17:46] Corren: would you migrate towards server composition with ejs/express or a pre-build system where you'll still serving static files through nginx? [17:46] fille: rofl [17:46] systemfault: :D [17:48] dingomanatee: <-- makes interns cry [17:48] fille: document.title is okej? [17:48] pHcF has joined the channel [17:49] admc has joined the channel [17:49] Aikar: window.window.window.window.window.document.title! [17:51] fille: i use MsgBox("hello") [17:51] tuhoojabotti: windows.windows.windows, wait what? [17:51] saurabhverma has joined the channel [17:52] apipkin: context: looks like 1.0.10 was too old of a version for npm. updated to 1.0.15 and it's working [17:52] apipkin: thanks for the help all :) [17:54] jetienne: SubStack: my gf prefere your logo than the official one, this means something :) [17:54] Skola: whatwhat [17:55] Skola: SubStack made an alternative logo? [17:55] dingomanatee: showme [17:55] Skola: ^ [17:55] jetienne: http://substack.net/images/node_turtle.png [17:55] dingomanatee: Ah yes [17:55] jetienne: we need to vote on this [17:55] dingomanatee: Substack: can I use your logo on my wonderlandlabs.com node docs? [17:55] Skola: hahaha [17:55] Skola: awesome [17:56] dingomanatee: <-- wants to play the V8 turtle missle command [17:56] dtan: jetienne: haha [17:56] dtan: what's up skola [17:57] Skola: yo [17:57] jetienne: we need a script which change the background color and put this logo instead on nodejs.org :) [17:57] Skola: I owe you an e-mail [17:57] dtan: yup, whenever [17:57] mwl has joined the channel [17:57] dingomanatee: The turtle's name is "Kim" [17:57] fille: not timmy? [17:57] dtan: oh wiat, but would actually like to see your code =) [17:57] dingomanatee: (as in Kim Jong Il) [17:57] ekryski has joined the channel [17:57] jetienne: dingomanatee: what is this ? [17:58] dtan: i feel like the rocket should be going the other way [17:58] dtan: more "forward" looking hehe [17:58] jetienne: and we need to put socket to this turtle [17:58] fille: is the adium irc client any good? [17:58] chrischris has left the channel [17:58] jacobolus has joined the channel [17:58] dingomanatee: The turtle is shooting down the old guard. [17:58] fille: i dident have any good experiance with it [17:59] fille: will oreilly but a rocket turtle on the bookcover? [17:59] fille: put* [17:59] dingomanatee: O'reilly already chose their Node rodent http://mashable.com/2011/03/03/node-book/ [18:00] lukstr: subversion is a turtle... hm [18:00] jetienne: dingomanatee: what is this [18:00] tjholowaychuk: beats mannings stupid people [18:00] fille: noway [18:00] fille: wtf is that ! [18:01] context: muskrat ? [18:01] weezle has left the channel [18:02] jetienne: this kind of stuff wander at night in swamp isnt it ? [18:02] necrodearia has joined the channel [18:02] jetienne: not too flatering :) [18:02] hwinkel has joined the channel [18:04] systemfault has joined the channel [18:04] systemfault has joined the channel [18:04] kmiyashiro: weasel? [18:07] darshanshankar has joined the channel [18:07] tmpvar: i think its a ferret? i blame tj for that one [18:09] robertfw has joined the channel [18:09] tjholowaychuk: haha, it kinda looks like a ferret [18:11] louissmit has joined the channel [18:13] criswell has joined the channel [18:14] postwait has joined the channel [18:15] Country has joined the channel [18:16] saikat has joined the channel [18:17] temp01 has joined the channel [18:18] aliem has joined the channel [18:18] quiccker has joined the channel [18:19] saikat_ has joined the channel [18:26] mkultra329 has joined the channel [18:26] willwhite has joined the channel [18:27] Intel_iX has joined the channel [18:28] sandropadin has joined the channel [18:30] adambeynon has joined the channel [18:31] Intel_iX: Is it just me or is node not freeing buffer memory? http://pastebin.com/4Sa6s0EL, http://pastebin.com/ZDWeB6Va <- copies files but doesn't free ram. [18:31] Intel_iX: I can't see any obvious places where the data is saved... [18:32] Intel_iX: well, minus the stdin part, I was trying to debug it [18:33] Intel_iX: It seems to me like node isn't freeing buffer memory [18:33] AvianFlu has joined the channel [18:33] mscdex: Error: Cannot decode CoffeeScript [18:34] mscdex: :-D [18:34] Intel_iX: I linked to the .js and .coffee [18:34] Intel_iX: Their the same program [18:35] Intel_iX: I just put the coffee one because it's easier to read [18:35] mscdex: the first link doesn't work [18:35] mscdex: oh wait [18:35] mscdex: stupid xchat! [18:35] Intel_iX: just remove the stdin part or launch the thing manually [18:35] Intel_iX: But you really don't need to run it [18:36] Intel_iX: Data is getting leaked somehow in fs.readFile (y + '/' + z), sync.add (e, d) -> [18:36] Intel_iX: it's never getting freed [18:37] robi42 has joined the channel [18:37] Intel_iX: either, write is failing and it's not throwing an error or... [18:37] Intel_iX: I have no idea [18:37] Intel_iX: That's what I think it is though [18:38] Intel_iX: I mean, fs.writeFile not freeing the buffer [18:38] reid has joined the channel [18:39] AvianFlu has joined the channel [18:39] Intel_iX: I was able to get up to ~350mb with a folder of music, it didnt fix that after the music was copied [18:40] Hinton has joined the channel [18:42] blup has joined the channel [18:44] unlink has joined the channel [18:44] unlink has joined the channel [18:46] excellentdrums has joined the channel [18:47] context: intel_ix: why not migrate it to use pipes [18:47] Wa has joined the channel [18:47] context: apparently thats the new thing [18:49] tmpvar: Intel_iX, i would also recommend that [18:49] niftylettuce has joined the channel [18:49] tmpvar: fs.openReadStream(sourceFile).pipe(fs.openWriteStream(destFile)); [18:49] tilgovi has joined the channel [18:49] tilgovi has joined the channel [18:50] necrodearia has joined the channel [18:50] akiva has joined the channel [18:50] tomtomaso has joined the channel [18:52] http402 has joined the channel [18:53] mscdex: yeah! pipes to the rescue! [18:53] Tidwell has joined the channel [18:54] jhurliman has joined the channel [18:54] Tidwell: Anyone have experience trying to use the steam API? No problems when i curl to the API url or just go to it in a browser, but making a http.get returns a 400 [18:55] mscdex: Tidwell: post some code [18:56] Tidwell: mscdex: http://pastebin.com/gv97rVYp [18:57] zeade has joined the channel [18:57] saikat has joined the channel [18:58] Intel_iX has left the channel [18:58] context: tidwell: try adding a User-Agent in the headers for fun :x [18:58] context: that messed me up at one place [18:59] vipaca: How do you go from a Buffer to String? [18:59] fille: so i got multiple sql statment [18:59] maushu_ has joined the channel [18:59] context: vipaca: buffer.toString('utf8') [18:59] vipaca: context thanks [18:59] fille: maybe 5 i querys in a row, any ide how to execute them [19:00] context: fille: please be more vague. too much detail. [19:00] context: fille: but generally whatever library for whatever db you are using will have some sort of execute() function [19:01] fille: lol :D [19:01] mscdex: fille: quick and dirty DIY way: have the queries in an array, write a function that executes the next query in the array, removes it when the query comes back, then repeat [19:01] fille: node-mysql [19:01] mscdex: then once the array is empty, call a callback that is passed to the function [19:01] riven` has joined the channel [19:01] Tidwell: context: no dice, good idea though [19:02] fille: but i dont like to write code, thats why im asking :D [19:02] addisonj: hrm... so... whats the trick to making browserify work with other js libraries, for example, Three.js [19:02] context: then maybe consider a new career [19:03] fille: i will make a function pointer then [19:04] rickard2 has joined the channel [19:05] jakehow has joined the channel [19:05] colinclark_ has joined the channel [19:05] rickard2: hi all.. I'd like some help on how to solve this particular problem: http://pastebin.com/e2grnkm7 -- it's part of a node.js app using node-mongodb-native [19:06] tjgillies has left the channel [19:06] radiodario has joined the channel [19:06] rickard2: maybe it's more of a javascript problem but I figured someone in here would have run in to the same kind of problem, trying to insert an array of js objects and prevent duplicates [19:07] willwhite has joined the channel [19:08] colinclark has joined the channel [19:08] liquidproof has joined the channel [19:09] context: haha [19:09] context: rickard2: you are using j in a call back. it changes before its even used. [19:09] context: common mistake. [19:10] context: rickard2: easiest solution: wrap the inside of the loop in an anonymous function calling it, passing j to it [19:10] rickard2: I know [19:10] rickard2: oh, thanks. I'll try that [19:11] rickard2: great, worked like a charm. thanks context [19:12] context: rickard2: something like: http://pastebin.com/bYuUwtgK [19:12] context: ahh kk. [19:12] context: wow. pastebin sucks [19:12] context: err, mine needs to be wrapped in a set of () [19:12] context: meh. you got it [19:14] Intel_iX has joined the channel [19:14] mscdex: closures ftw! [19:14] tomtomaso has joined the channel [19:14] Intel_iX: Memory problem isolated: http://pastebin.com/1nH87h3B [19:14] Intel_iX: that uses up ~50 mb for a 5mb file [19:14] rickard2: I really need to get that js book and not just learn by doing [19:14] mscdex: Tidwell: it's because your path doesn't have a preceding '/' [19:15] mscdex: rickard2: fwiw: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide [19:15] context: intel_ix: or do: 13:49 tmpvar| fs.openReadStream(sourceFile).pipe(fs.openWriteStream(destFile)); [19:15] Intel_iX: Not the point [19:15] context: heh [19:16] Intel_iX: Though, it looks like a v8 problem [19:16] Intel_iX: since the memory is capping at about 50mb [19:16] Intel_iX: poor garbage collection I guess [19:16] creationix has joined the channel [19:16] mscdex: it wouldn't be v8 afaik [19:16] creationix has left the channel [19:16] mscdex: Buffers are stored outside of v8 [19:17] Intel_iX: v8 calls the buffer's destructor after it can't find references to them [19:17] context: intel_ix: for what its worth, for the way thats designed, i would not be surprised if its your code leaking memory and not node [19:17] Intel_iX: http://pastebin.com/1nH87h3B <- see a leak? [19:17] Intel_iX: no leak in that [19:17] Intel_iX: only 20 lines there [19:17] dans has joined the channel [19:18] context: i dont know js as well as others, but you do have a function with an interval set and from what i see never released. and variables never disappearing. [19:18] Intel_iX: eye, but that only saves the function [19:18] Intel_iX: Not the functions context [19:18] context: and anything the function uses. [19:18] jtrudeau has joined the channel [19:19] Intel_iX: eye, but no data is stored by parent variables. [19:19] rickard2: mscdex, thanks [19:19] Intel_iX: not 50mb anyway [19:19] context: qlist is. [19:19] Intel_iX: the 50mb are from the d variable [19:19] Intel_iX: I push the number "1" onto q [19:19] Intel_iX: that isn't using 50mb [19:19] context: like i said, it might be. i dont know all the innards of js [19:20] Intel_iX: for the record, the code is unreadable because it was generated by coffeescript [19:20] liquidproof has joined the channel [19:20] z8000 has joined the channel [19:20] Intel_iX: though it isn't that difficult to read ._. [19:21] context: heh [19:21] context: then blame coffee script. [19:21] chrisdickinson: Intel_iX: d won't be released until writeFile finishes, but you already start reading the file before then [19:21] context: thats a lot of closures with a lot of data and functions being bassed back and forth. [19:21] estrathmeyer has left the channel [19:21] Intel_iX: It doesn't take but ~1sec to write 5mb [19:22] context: depends where you're writing to [19:22] Intel_iX: hopefully much less [19:22] chrisdickinson: Intel_iX: missed the '1000' [19:23] lime_ has joined the channel [19:23] SubStack: dingomanatee: do whatever the fuck license on that logo [19:23] springmeyer has joined the channel [19:23] mscdex: i think the file operations are continually increasing because of setinterval [19:23] Intel_iX: I changed it to 10 secs and it still goes to 50 then caps. [19:23] dingomanatee: ok thx [19:23] chrisdickinson: Intel_iX: have you tried an explicit "delete d" or "d = null" inside of the writeFile completion? [19:23] Hinton has joined the channel [19:23] dingomanatee: substack: ever try and write a greyscale png in node? [19:24] bnoordhuis: Intel_iX: what os? [19:24] Intel_iX: mint [19:24] supakow has joined the channel [19:24] lime_: How do I uninstall node.js? I installed the latest build from github and it isn't compatible with npm/express and anything I try to download. [19:24] bnoordhuis: Intel_iX: are you looking at rss or virt? [19:24] tryout has joined the channel [19:24] Intel_iX: dono, it doesn't show [19:24] Intel_iX: it's just listed as "memory" [19:24] tryout: hi, anybody with experience in vows and/or node-mysql? http://pastebin.com/zAnGEyy9 [19:25] Intel_iX: I think v8's garbage collector is just sucking... [19:25] bnoordhuis: Intel_iX: thing is (and barring circular dependencies), even if node or v8 frees the memory, that doesn't mean the memory is actually returned to the OS [19:25] mraleph: Intel_iX: any proof? [19:25] bnoordhuis: haha [19:25] shadow_s has joined the channel [19:26] bnoordhuis: mraleph: you have a notifier for 'garbage collector', right? [19:26] mraleph: I am keyword driven ya know bnoordhuis [19:26] Intel_iX: well, it seems to cap at 50mb [19:26] bnoordhuis: hah, right :) [19:26] joshthecoder has joined the channel [19:26] Intel_iX: so I assume that's based on v8 garbage collector runtime [19:26] euforic has joined the channel [19:26] vipaca: context: How about the other way String to Buffer? [19:27] mscdex: vipaca: new Buffer('foo', 'utf8'); [19:27] bnoordhuis: Intel_iX: use top or htop, that should tell you more [19:28] grekko has joined the channel [19:29] Intel_iX: 23295 ryan 20 0 655m 53m 4464 S 3 1.4 0:00.72 node [19:31] euforic: Anyone know of a way to catch all incoming events in Socket.io [19:31] Bonuspunkt: Intel_iX node version? [19:31] `3rdEden: No, there is still no way for that [19:31] djcoin has joined the channel [19:32] Intel_iX: v0.4.9 [19:32] Intel_iX: I suppose there isn't a point investigating... [19:33] lime_: I keep getting errors when trying to intall npm [19:33] Intel_iX: it just looks like lazy garbage collection [19:33] Intel_iX: since it DOES stop around 50mb [19:34] Bonuspunkt: yeah same here @ v0.4.8 [19:34] shachaf has joined the channel [19:34] bnoordhuis: Intel_iX: quick way to check: install node-profiler and call profiler.gc() from your app [19:34] thejh has joined the channel [19:34] thejh has joined the channel [19:35] mraleph: I don't think it is V8 heap [19:35] supster has joined the channel [19:35] mraleph: on the sample size of the js heap used after GC is around 1.5 mb [19:36] bradleymeck: anyone have info on wrapping domain sockets in windows [19:36] mraleph: I would say it's memory used by C runtime [19:36] Murvin has joined the channel [19:36] bradleymeck: well they wont be unix domain sockets exactly [19:36] pwk0 has joined the channel [19:37] jtrudeau has joined the channel [19:37] apipkin has left the channel [19:37] jacobolus has joined the channel [19:37] SubStack: bradleymeck: pong [19:38] squeese has joined the channel [19:38] Renegade001 has joined the channel [19:38] bradleymeck: substack, how much support are you going for with dnode and domain sockets, I cant seem to communicate w/ an http.Server that is listening to a domain socket [19:38] dgathright has joined the channel [19:39] bradleymeck: poked around a bit and couldnt find a proper way to do that [19:39] bnoordhuis: bradleymeck: 0.6 will support named pipes on windows [19:40] bnoordhuis: bradleymeck: that may or may not help you right now :-/ [19:40] jacobolus has joined the channel [19:42] bradleymeck: bnoordhuis im fine waiting, just wondering if there will be a wrapper that helps w/ some problems multiprocess model programming has w/ named pipes (aka name colision) [19:42] tdegrunt has joined the channel [19:43] dtan: what's the proper way to update a record with mongoose? [19:43] dnjaramba has joined the channel [19:43] dingomanatee: get it, change its fields, call record.save(); [19:43] dtan: is there any wrapper in mongoose that ties into the mongodb update method? [19:44] dtan: well, ya, dingomanatee, but i mean do i go through any mongoose wrapper or use native mongodb methods? [19:44] dingomanatee: if you don't go through the mongoose wrapper, why use it at all? [19:45] dberlinger has joined the channel [19:45] dingomanatee: I'm liking mongolian beefcake by marcello3D myself lately [19:45] dtan: i saw some mongoose thread to use the native mongodb methods for some thigns [19:45] dtan: i can't remember what exactly [19:45] dingomanatee: I doubt basic get/set is one of them. [19:46] Murvin: bnoordhuis: if I set the req.headers' be "Connection:close" but also I set http.request().shouldKeepAlive=true; should it be still connection:close? [19:46] othiym23 has joined the channel [19:46] dingomanatee: http://blog.learnboost.com/blog/mongoose/ describes activerecord.save() plretty clearly [19:47] dtan: ok cool i'll take a look [19:47] gazumps has joined the channel [19:47] dtan: oh wait isn't that post a little old for the current api? [19:48] corytheboyd has joined the channel [19:49] rfay has joined the channel [19:49] vipaca: Anyone know how to remove a property by value? [19:49] SubStack: bradleymeck: oh those work I'm pretty sure [19:49] Toger has joined the channel [19:49] SubStack: I got sent a pull req a few weeks back [19:50] Toger: Does anyone have experience building node on Solaris SPARC? [19:50] SubStack: bradleymeck: just dnode(fn).listen('/tmp/moo') [19:50] vipaca: Or are you stuck search through properties until value matches and then remove? [19:50] SubStack: and dnode.connect('/tmp/moo', fn) [19:50] springmeyer has joined the channel [19:50] SubStack: dnode just looks for a leading / [19:50] ash___: vipaca: i think so [19:51] vipaca: Is there a way to remove a key from an Object? [19:51] ash___: delete someOb[someKey] [19:51] Squax has left the channel [19:51] bnoordhuis: Murvin: no, depending on a number of conditions [19:51] adrianmg has joined the channel [19:51] adrianmg has left the channel [19:51] bradleymeck: substack, https://github.com/racker/dnode/commit/785bdf47057fb9fe4b72778cca2d896518b03c62 , only creates net.Server, im trying to attach to an existing http.Server [19:51] jtrudeau has joined the channel [19:52] jameson has joined the channel [19:52] bradleymeck: either way we can just not use http on it for now [19:52] SubStack: hmm [19:53] blup has joined the channel [19:54] radiodario has joined the channel [19:54] Murvin: bnoordhuis: ok. :) can I send req.header with "Keep-alive":'timeout=10 max=5"? [19:55] FireFly|n900 has joined the channel [19:55] bnoordhuis: Murvin: yes [19:56] Murvin: bnoordhuis: how to test it? i tried it but it seems nothing happen .lol [19:56] eyesUnclouded has joined the channel [19:56] Murvin: bnoordhuis: same as without setting it. [19:57] bnoordhuis: Murvin: do you see your header when you do a request with `curl -v`? [19:57] NetRoY has joined the channel [19:57] harth has joined the channel [19:58] dgathright has joined the channel [19:58] cccaldas has joined the channel [19:59] charleyd has joined the channel [20:00] mscdex: should keep-alive values be comma delimited? [20:00] Remoun has joined the channel [20:00] Remoun_ has joined the channel [20:00] mscdex: e.g. "timeout=10, max=5" ? [20:00] tuhoojabotti: Read the specs [20:00] tuhoojabotti: :D [20:00] hassox has joined the channel [20:00] eldios has joined the channel [20:00] dingomanatee: Is there a way to add numbers in javascript? [20:00] trotter has joined the channel [20:00] mscdex: who needs specs, when there's google [20:01] dingomanatee: like a plus() function or something? [20:01] ash___: heh [20:02] systemfault: dingomanatee: Are you trolling or something? :/ [20:02] jtrudeau has joined the channel [20:02] mscdex: trollol [20:02] dingomanatee: I'm just trying to push the idiot factor as far as it can go. [20:03] systemfault: You're doing very well so far :/ [20:03] ash___: will ___noSuchMethod___ ever be available in node? [20:03] tbranyen: ash___: thats nonstandard [20:03] tbranyen: mozilla stuff [20:03] tbranyen: v8 isn't mozilla [20:04] Intel_iX: __proto__ is also nonstandard [20:04] level09 has joined the channel [20:04] Intel_iX: but we have that... [20:04] ash___: .innerHTML [20:04] tbranyen: Intel_iX: thats not even close to the same thing [20:04] ash___: never standard [20:04] dingomanatee: I hope not. [20:04] tbranyen: deprecated and mozilla extensions are very different [20:04] Intel_iX: __proto__ needs to be erased soon... [20:04] tbranyen: Object proxying might come [20:04] tbranyen: Intel_iX: wat now way dude [20:04] tbranyen: so much shit will break [20:04] bradleymeck: ash__ doubtful, the steps needed to implement __noSuchMethod__ require a change to internal VM in ways that are brutal. Also it is a poor design pattern, learn to use Proxies [20:05] dingomanatee: I don't want to see not turn into an OOPissing contest [20:05] Intel_iX: 'use v1.9'; [20:05] Intel_iX: etc [20:05] tbranyen: also the getPrototypeOf() is such a crap method [20:05] dingomanatee: You can fake magic with error trapping. [20:05] ash___: i understand [20:05] ash___: id love to have nice internal DSLS [20:05] Intel_iX: 'use strict 2'; [20:05] Intel_iX: w/e [20:05] mscdex: harmony proxies! [20:05] tbranyen: bradleymeck: proxies don't exist in v8 yet either [20:05] ash___: groovy is very good for this [20:05] ash___: i tried node-proxy [20:05] ash___: i get few errors [20:05] tbranyen: interesting [20:05] bradleymeck: they do through extensions tbranyen, couple out there, and on v8 head they are around 50% [20:06] mscdex: https://github.com/bmeck/node-overload [20:06] mscdex: !! [20:06] mscdex: :-D [20:06] bradleymeck: i havent updated that in forever... [20:06] mscdex: do it [20:06] bradleymeck: ash___ a better question might be why to use methodMissing instead of using something where code caching can occur [20:07] ash___: ok [20:07] ash___: is harmony proxies gonna go into V8 [20:08] mscdex: i think they're working on it now [20:08] fangel has joined the channel [20:08] ash___: takes more engineering for programming side than ___noSuchMethod___ or its equivalanets :D [20:08] ash___: ok [20:08] ash___: il wait for that :D [20:08] akshatj has joined the channel [20:09] kevwil has joined the channel [20:09] necrodearia has joined the channel [20:10] ash___: does anyone know of any workflow engines implemented in node.js? [20:11] Murvin: bnoordhuis: if I really want to destroy a connection, should I do that? client.destroy() however, sometimes, it can't when socket is null. what is the best way to kill a http.request ? [20:11] jomoho2 has joined the channel [20:11] bnoordhuis: Murvin: req.abort() ? [20:13] Murvin: bnoordhuis: i tried that before.. but if I call inside res.on('end') it doesn't work. what I want to do is, after a response is end, then I want to make sure I can kill the connection. [20:13] jomoho3 has joined the channel [20:14] thalll has joined the channel [20:15] Intel_iX has left the channel [20:15] Murvin: bnoordhuis: also, if I want to really destroy a socket, should I do that: client.sockets[0].destroy()? [20:15] Murvin: let say i want to destroy the first one. [20:17] robhawkes has joined the channel [20:18] robertstuttaford has joined the channel [20:18] robertstuttaford: forgive me if this isn't the right place to ask, but does anyone know of a js lib to read/write zip files? [20:18] robertstuttaford: that i can use with node.js [20:19] bnoordhuis: Murvin: 'end' is emitted just before the socket is destroyed [20:19] bnoordhuis: Murvin: client.sockets[0].destroy() <- implementation detail, can change at any time [20:20] Charuru has joined the channel [20:20] moverser: robertstuttaford: search at http://search.npmjs.org/ [20:20] robertstuttaford: thanks [20:20] robertstuttaford: woo awesome [20:20] robertstuttaford: *bookmarks* [20:21] rvaj2 has joined the channel [20:22] Murvin: bnoordhuis: ok.. so, if a http.request is "connection":'keep-alive', then I cannot destroy the socket inside the 'end' callback, right? [20:23] chrisdickinson: robertstuttaford: node-zlib looks pretty good: [20:23] chrisdickinson: https://github.com/kkaefer/node-zlib [20:23] _aron has joined the channel [20:23] kbni has joined the channel [20:23] chrisdickinson: the other famous one being node-compress [20:23] robertstuttaford: zlib and zip are different, right? [20:24] willwhit_ has joined the channel [20:24] jacobolus has joined the channel [20:24] Murvin: bnoordhuis: if I have the hptt.request be keep-alive, the socket will be persistent, right? [20:25] chrisdickinson: robertstuttaford: sort of. zlib implements gzip, but originally just sported deflate/inflate for simple data streams [20:25] gozala has joined the channel [20:25] bnoordhuis: Murvin: i think the answer to that is yes [20:25] robertstuttaford: ok. use case is i have a whole bunch of zip files on disk that i need to read and write [20:26] robertstuttaford: so node-zipfile appears to be the most suitable [20:26] robertstuttaford: libzip bindings for node [20:26] `3rdEden: ACTION waits for build in support for gzip [20:26] igl1 has joined the channel [20:27] al3xnull_ has joined the channel [20:27] Murvin: bnoordhuis: i see. do you knwo what is the condition of losing the connection (i.e freeing up the socket?) there is a timeout, right? does it look into the Keep-Alive http header with timeout & max? [20:27] robertstuttaford has left the channel [20:27] robertstuttaford has joined the channel [20:28] robertstuttaford: thank for the input all [20:28] chrisdickinson: `3rdEden: are you planning on writing a C++ binding to zlib, or a fully-fledged zlib js implementation? [20:28] bnoordhuis: Murvin: actually, i think that req.shouldKeepAlive = false should kill off the connection after the request [20:28] jacobolus has joined the channel [20:28] `3rdEden: chrisdickinson I'm just waiting for someone else to do it :$ I have 0% time for other side projects atm [20:28] `3rdEden: Iknow ry stated that he would want something like that in core [20:29] chrisdickinson: `3rdEden: ah, cool [20:29] Murvin: bnoordhuis: hmmm but I have to define it before the "end", right? [20:29] `3rdEden: but can't remember when he wanted that [20:29] bnoordhuis: Murvin: yes [20:29] xtianw has joined the channel [20:29] bnoordhuis: `3rdEden: yeah, it's on the wish list [20:29] jtrudeau has joined the channel [20:29] ash___: does anyone know of any js framework which can compare 2 objects, and return list of changesets ? [20:30] yozgrahame has joined the channel [20:31] `3rdEden: bnoordhuis do you know how it would have been implemented? If I remember correctly it should be done using the Buffer object, but I could be mistaken here [20:31] ac94 has joined the channel [20:32] jacobolus has joined the channel [20:32] bnoordhuis: `3rdEden: probably an opaque object that you feed strings and buffers and spits out the compressed output as a buffer [20:32] chrisdickinson: `3rdEden: I think it'd probably just use zlib against a buffer object. potentially streaming it? [20:32] Murvin: bnoordhuis: :) thanks. one more question.. let say, I sent 10 http.request with keep-alive, and then after a short while, I send another one, that one will probably use the existing persistent connection, right? and then if I set it to shouldKeepAlive=false, then it will close the persistent connection, right? [20:33] bnoordhuis: `3rdEden: and probably a DeflateStream on top of that for extra karma points [20:33] Murvin: bnoordhuis: sorry .. long long question.. lol. just testing and trying to find out alternative to go around the socket issue... :) [20:33] `3rdEden: bnoordhuis raw deflate for more points [20:33] bnoordhuis: Murvin: yes (i think) [20:34] `3rdEden: as it compresses just little more than regular deflate [20:34] Murvin: bnoordhuis; thanks a lot.. i hope it will work and i can go around that issue. :) [20:34] chrisdickinson: `3rdEden: i think raw and regular are about the same -- are you talking about setting the compression level on the deflate stream? [20:35] chrisdickinson: *s/are about the same/are the same thing/g [20:35] Murvin: bnoordhuis: if I want to kill all sockets, should I do this:? for agent.sockets[i].destroy() ? [20:35] Murvin: bnoordhuis: or not recommend becuase of side effect? [20:35] saurabhverma has joined the channel [20:36] `3rdEden: chrisdickinson just see http://www.vervestudios.co/projects/compression-tests/ [20:36] pifantastic has joined the channel [20:36] bnoordhuis: Murvin: that'll work for now but it may change in the future [20:36] patcito has joined the channel [20:37] `3rdEden: chrisdickinson having the ability to switch between a streaming deflate and raw deflate based would be pretty rad [20:37] Murvin: bnoordhuis: yeah. at least i get a temp solution for now.. that's good enough. heheeh [20:39] Murvin: bnoordhuis: thanks a lot. :) [20:39] nethan has joined the channel [20:39] bnoordhuis: Murvin: my pleasure :) [20:40] chrisdickinson: `3rdEden: iiiinteresting. so zlib#deflate actually wraps the deflated data in it's own format, too. huh. [20:41] baoist has joined the channel [20:42] darshanshankar has joined the channel [20:42] siculars has joined the channel [20:42] romit has joined the channel [20:43] CIA-107: node: 03Henry Rawas 07master * r9057d3f 10/ test/simple/test-net-isip.js : fix isip test - http://bit.ly/qUYKBt [20:43] addisonj: SubStack, so will browserify work with most js libraries? what about something like Three.js that doesn't use any the module pattern [20:43] zeade has joined the channel [20:44] nethan: hello all. . .I am new to node and js as a whole. . . . someone changed my whole month (for the better) with 15 minutes of coding in node. . . .I want to know more. . . so far I have installed git and node on leopard. . . I cannot get npm install express to work. . . .-bash: npm: command not found. . . .what am I missing? [20:44] pifantastic_ has joined the channel [20:44] CIA-107: libuv: 03Henry Rawas 07master * r6a67b51 10/ (src/uv-win.c test/test-getsockname.c): fix uv_getsockname for listening socket - http://bit.ly/nC44Ep [20:44] EyePulp: nethan: you need to install npm [20:44] addisonj: nethan, did you install it? [20:44] addisonj: it isn't bundled with node [20:45] EyePulp: nethan: curl http://npmjs.org/install.sh | sh [20:45] iammerrick: nethan: http://howtonode.org/introduction-to-npm [20:45] nethan: thanks. . . installing now [20:45] EyePulp: or http://npmjs.org/ [20:45] smolyn has joined the channel [20:46] romit has left the channel [20:46] bradleymeck has joined the channel [20:46] mertimor has joined the channel [20:47] mikl has joined the channel [20:47] mikl has joined the channel [20:47] jtrudeau has joined the channel [20:48] corytheboyd has joined the channel [20:49] dingomanatee: addisonj: browserify is simply a wrapper for real browsers - so if your script works on a real browser it should work inside browserify. [20:49] jacobolus has joined the channel [20:49] dingomanatee: to the best of my knowledge. [20:49] SubStack: no [20:49] ekryski: nethan: I would look at http://howtonode.org. This should give you a bit more insight. Also you could look at the http://nodejs.org website [20:49] SubStack: that's es5-shim [20:50] Murvin: bnoordhuis: what tis the different between destroy and detachSocket()? [20:50] SubStack: addisonj: I'm not sure what you mean by "module pattern" but browserify is for browser-side require() exactly like in node [20:50] nethan: thank you very much for all the links. . . .time for some homework as per suggestions? [20:52] broofa has joined the channel [20:52] ceej has joined the channel [20:52] baoist has left the channel [20:52] baoist has joined the channel [20:52] emacsen has joined the channel [20:52] Nexxy has joined the channel [20:52] Nexxy has joined the channel [20:53] emacsen has joined the channel [20:54] xtianw has joined the channel [20:54] tsutton has joined the channel [20:54] addisonj: okay, so this is probably more related to my lack of js knowledge, but what do I get returned from require if a library doesn't use exports? [20:55] saschagehlich: tjholowaychuk: ping [20:55] gozala has joined the channel [20:56] Swizec has joined the channel [20:56] tjholowaychuk: saschagehlich hey [20:56] ash___: addisonj: probably the exports object which is empty [20:56] bradleymeck: addisonj an empty object (exports defaults to that) [20:56] saschagehlich: tjholowaychuk: two problems / questions [20:57] NetRoY has joined the channel [20:57] saschagehlich: tjholowaychuk: 1. I'm using stylus as a express middleware but somehow I have to restart my server to make the css files change [20:58] SubStack: addisonj: {} [20:58] saschagehlich: tjholowaychuk: 2. Is there a way to automatically minify the javascript files generated by the coffeescript middleware? [20:58] addisonj: so yes, then can I not use that library with browserify? or do I just need to write a little wrapper that exports the library? [20:58] tjholowaychuk: saschagehlich: no clue about the CS [20:59] saschagehlich: k, I'll as jeremy [20:59] SubStack: you can use bundle.append() to append the source directly but it's cleaner to just use exports [20:59] saschagehlich: *ask [20:59] matomesc has joined the channel [20:59] tjholowaychuk: saschagehlich: with stylus you probably have funky paths, if you use debug: true, you'll see what it's trying to compile [20:59] tjholowaychuk: saschagehlich: it just takes the pathname of the request and puts it on src/dest [20:59] saschagehlich: k, let me have a look [21:00] gazumps has joined the channel [21:00] addisonj: ah okay, thanks for your patience, oh and one more question, so browserify, it just builds the bundle on startup correct? [21:00] saschagehlich: tjholowaychuk: so it recompiles my application.styl but all the files required by application.styl are not being rerendered [21:01] tjholowaychuk: hmm they should be [21:01] niftylettuce has joined the channel [21:01] tjholowaychuk: I map the imports, what version? [21:01] rpflo has joined the channel [21:01] tjholowaychuk: maybe it was pre-bugfix [21:01] Aiden has joined the channel [21:01] saschagehlich: "stylus" : "0.13.0", [21:02] fly-away has joined the channel [21:02] tjholowaychuk: saschagehlich 0.13.4 fixed it [21:02] tjholowaychuk: well should have at least [21:03] Mrfloyd has joined the channel [21:03] eee_c has joined the channel [21:03] unomi has joined the channel [21:03] saschagehlich: tjholowaychuk: 0.13.4 doesnt work either, let me check the latest release [21:04] materialdesigner has joined the channel [21:04] saschagehlich: doesnt work with 0.13.6 either tjholowaychuk [21:06] Mrfloyd has joined the channel [21:06] tjholowaychuk: hmm [21:06] necrodearia has joined the channel [21:06] tjholowaychuk: can you gist the debug output? [21:07] kriszyp has joined the channel [21:08] saschagehlich: tjholowaychuk: https://gist.github.com/e583a3741dc15ba28166 [21:09] maushu__ has joined the channel [21:09] broofa has joined the channel [21:10] tjholowaychuk: saschagehlich and application.styl imports that other one? really odd [21:10] tjholowaychuk: i do that all the time [21:10] _aron has joined the channel [21:10] saschagehlich: tjholowaychuk: yes, application.styl only does imports [21:11] lerchmo has joined the channel [21:11] saschagehlich: tjholowaychuk: my express configuration, maybe that helps? https://gist.github.com/9b6e114ecb1544435a3b [21:12] mendel_ has joined the channel [21:12] tjholowaychuk: looks fine [21:12] saschagehlich: oh I just published my secret... I should change that :P [21:13] blup has joined the channel [21:13] tjholowaychuk: ahaha [21:13] mendel__ has joined the channel [21:13] mjr_ has joined the channel [21:14] xtianw has joined the channel [21:14] lerchmo: Question, is there a node.js module for doing something like this that minifies and joins the javascript files and caches the results? hopefully with the exact same API as stylus has for css? [21:14] saschagehlich: tjholowaychuk: erm... I _think_ I found it [21:14] saschagehlich: after using application.css in my html, I'm using scrollpane.css (as you see) [21:15] saschagehlich: there is no scrollpane.styl since I didn't port it to stylus yet [21:15] tjholowaychuk: ohh [21:15] niftylettuce: tjholowaychuk: \o [21:15] saschagehlich: now I removed the link(href="scrollpane.css") and it says "modified import: toplist.styl" [21:16] Mrfloyd has joined the channel [21:17] softdrink: aside from joyent, duostack, and heroku, what are the other node-in-the-cloud services are there? [21:17] _sorensen_: nodjitsu [21:18] xeodox has joined the channel [21:18] sandropadin: duostack got acquired by dotcloud, I think. [21:18] _sorensen_: http://www.nodejitsu.com/#/home [21:18] xtianw has joined the channel [21:18] softdrink: ACTION adds to his list [21:18] jerrysv has joined the channel [21:19] SubStack: addisonj: correct [21:19] softdrink: others? [21:19] _sorensen_: not that im aware of [21:20] AvianFlu: s/nodjitsu/nodejitsu/g [21:20] AvianFlu: :-P [21:20] _sorensen_: :) [21:20] techwraith has joined the channel [21:21] DarylM has left the channel [21:21] xtianw has joined the channel [21:22] perezd has joined the channel [21:22] ed____ has joined the channel [21:23] techwraith: Does anyone know if isaacs is around? I've got an NPM question for him :) [21:23] AvianFlu has joined the channel [21:24] Tidwell: derf - just took an hour to realize that http.get's path option needs a prepended / :mutter mutter mutter: [21:25] langworthy has joined the channel [21:26] ed____: I'm building an app with express. I'm using http.get inside of app.get to get data from Yahoo Placefinder api. The problem is somehow quotation marks get converted to "... See example here: view-source:http://50.57.99.185/placefinder/Street,+City,+Zip How to prevent that? [21:27] synkro has joined the channel [21:27] tjholowaychuk: ed____ join #express [21:27] ed____: ok [21:29] mjr_ has joined the channel [21:30] adambeynon has joined the channel [21:32] zcopley_ has joined the channel [21:33] bogomips2_ has joined the channel [21:33] techwraith: Has anyone here set up their on npm registry? I'm running into some replication issues. [21:33] techwraith: And Mikeal isn't in the office to help out ;) [21:33] ambroff has joined the channel [21:34] techwraith: *own [21:35] AvianFlu has joined the channel [21:38] cha0s has joined the channel [21:38] Murvin: tjholowaychuk: hi.... question about the session. how come I can set req.session (either by just memory, or mongo dbstore) on one machine but not another? It is so weird that it worked on my ubuntu10.04 yesterday but today when I came back, it doesn't work anymore. [21:38] Aphelion has joined the channel [21:39] kriszyp has joined the channel [21:39] tjholowaychuk: Murvin: not sure :s [21:39] Murvin: tjholowaychuk: it looks like that there is permission to write the req.session. Im using express 2.4.2 and with 0.4.9 Node. however, it works fine with my another server... [21:40] tjholowaychuk: different mongo version? [21:40] Murvin: tjholowaychuk: yeah. it is just all of the sudden. it worked yesterday, but not today. [21:40] context: is mongo running? [21:41] Wizek_ has joined the channel [21:41] chjj has joined the channel [21:42] sounko has joined the channel [21:42] Murvin: tjholowaychuk: yes.. and actually, i just do req.session without store.. and still doesn't work.. hmmm [21:43] tjholowaychuk: pretty messed if it doesnt even work with the memory store [21:43] mjr_ has joined the channel [21:44] niftylettuce_ has joined the channel [21:44] ezmobius has joined the channel [21:45] thomblake has joined the channel [21:46] mjr_ has joined the channel [21:46] broofa has joined the channel [21:47] mehtryx has joined the channel [21:47] brianseeders has joined the channel [21:52] mbrevoort has joined the channel [21:54] markwubben has joined the channel [21:55] Mrfloyd_ has joined the channel [21:55] liquidproof has joined the channel [21:56] zackattack has joined the channel [21:58] softdrink: ACTION waits impatiently on a joyent coupon [21:59] broofa has joined the channel [21:59] spasquali has left the channel [22:02] mape: any node irc module that does ssl? [22:04] skyler_brungardt has joined the channel [22:06] Mrfloyd has joined the channel [22:08] davidwalsh has joined the channel [22:08] ryanfitz has joined the channel [22:09] jarek has joined the channel [22:09] adrianmg has joined the channel [22:09] tsenga has joined the channel [22:10] context: mape: wouldn't be that hard to modify one [22:10] mape: context: seems the module I was using already had it, just assumed it haden't been updated in a while [22:10] mape: shame on me [22:11] context: heh [22:11] context: mape: which one are you using [22:11] context: nodejs-irc ? [22:11] mape: https://github.com/martynsmith/node-irc/ [22:12] kimico has joined the channel [22:12] saikat has joined the channel [22:14] asobrasil has left the channel [22:14] Quantizationbit has joined the channel [22:15] rfay has joined the channel [22:17] AvianFlu: yeah mape node-irc can handle that [22:17] AvianFlu: node-irc is what they call 'gangster' [22:17] AvianFlu: I recommend it highly [22:18] tsenga: hi - is there a standard pipe/pubsub component for node? example use case, is a node.js that uses fs.watchFile & fs.createReadStream to listen for changes on a file (ala tail -f) ... and streams it out to any listening socket connections ... problem is each time the file changes, a new fs.createReadStream is triggered - so you the monitoring code can't listen to that stream.... would like to setup some form of pipe/pubsub [22:18] tsenga: subject, that the createReadStream logs to, and the monitoring code sets a .on('data') on. imagine its a common design pattern? [22:18] perlmonkey2 has joined the channel [22:19] Poetro has joined the channel [22:23] jakehow has joined the channel [22:24] sounko has joined the channel [22:24] polvero has joined the channel [22:25] polvero: any joyent folks in here? [22:25] mikeycgto has joined the channel [22:25] bogomips2__ has joined the channel [22:27] systemfault has joined the channel [22:27] systemfault has joined the channel [22:28] Bonuspunkt: AvianFlu how to handle timeouts/disconnects at node-irc? [22:29] polvero: no joyenters.. :( [22:29] AvianFlu: there's an auto-reconnect you can set in the options [22:29] AvianFlu: I'm pretty sure it's in the documentation [22:30] AvianFlu: I think just pass autoReconnect: true to your constructor, but you should check [22:30] AvianFlu: polvero: they tend to be busy :-P [22:30] CIA-107: node: 03Henry Rawas 07master * r9205755 10/ (Makefile lib/net_uv.js): fix socket-timeout. Also fix makefile test list name net-stream - http://bit.ly/pQuzcB [22:30] polvero: i'm on my 2nd joyent account [22:30] polvero: both lost after 30 days [22:30] polvero: but i basically can't get any app to run [22:31] aliemmo has joined the channel [22:32] Bonuspunkt: yeah just looked at the source, seems pretty complete [22:34] skm has joined the channel [22:35] jarek has joined the channel [22:35] jarek has joined the channel [22:35] Murvin: tjholowaychuk: hey.. for the session not set problem. I found out.. this is my server clock out of sync. no wonder it works in my rackspace but not in local VM. :) [22:35] tjholowaychuk: ah :D [22:36] Mrfloyd has joined the channel [22:36] Murvin: tjholowaychuk: yeah... very hard to find it out. thanks. but redirect still not working. LOL [22:36] CIA-107: libuv: 03Ben Noordhuis 07master * rf852c51 10/ (include/uv.h src/uv-unix.c src/uv-win.c): Change uv_pipe_*() prototypes from char* to const char*. - http://bit.ly/q6BmyF [22:36] AvianFlu has joined the channel [22:37] Murvin: tjholowaychuk: but not a big deal for redirect though. lol so happy to find out the session problem. [22:37] kimico has joined the channel [22:38] smolyn has joined the channel [22:40] yozgrahame has joined the channel [22:40] mikedeboer has joined the channel [22:40] joshthecoder has joined the channel [22:41] jvduf has joined the channel [22:41] Mrfloyd has joined the channel [22:42] reid has joined the channel [22:42] xeodox has joined the channel [22:43] mcluskydodallas has joined the channel [22:46] kimico has joined the channel [22:46] TheFuzzball has joined the channel [22:47] eldios has joined the channel [22:48] secoif has joined the channel [22:49] creationix has joined the channel [22:49] creationix has left the channel [22:49] jomoho3 has joined the channel [22:50] zackattack has joined the channel [22:50] unlink has joined the channel [22:50] unlink has joined the channel [22:53] jacobolus has joined the channel [22:55] fugoki has joined the channel [22:55] eyesUnclouded has joined the channel [22:55] adrianmg has left the channel [22:56] yozgrahame has joined the channel [22:56] CIA-107: libuv: 03Ben Noordhuis 07master * r48eb98c 10/ src/uv-unix.c : unix: implement uv_getsockname() - http://bit.ly/nNnXJ0 [22:57] jacobolus has joined the channel [23:00] [[zz]] has joined the channel [23:03] techwraith: damn, where's isaacs when you need him ;-/ [23:04] hookdump: ;D [23:06] mihar has joined the channel [23:08] cafesofie has joined the channel [23:08] jtrudeau has joined the channel [23:10] [[zzz]] has joined the channel [23:10] stalled has joined the channel [23:11] jarek has joined the channel [23:11] jarek has joined the channel [23:12] hasenj has joined the channel [23:12] yozgrahame has joined the channel [23:14] muk_mb has joined the channel [23:15] kakamba has joined the channel [23:16] AvianFlu has joined the channel [23:16] JaKWaC has joined the channel [23:16] zackattack has joined the channel [23:17] jj0hns0n has joined the channel [23:17] [[zz]] has joined the channel [23:18] hassox has joined the channel [23:18] softdrink: bejes.us ಠ_ಠ [23:19] Kuntau has joined the channel [23:19] boogyman has joined the channel [23:20] kimico has joined the channel [23:20] hippich has joined the channel [23:20] hippich has joined the channel [23:21] yozgrahame has joined the channel [23:22] davidwalsh has joined the channel [23:23] dguttman has joined the channel [23:23] willwhite has joined the channel [23:23] `rawr has joined the channel [23:24] springmeyer_ has joined the channel [23:25] SteveDekorte has joined the channel [23:25] toxico has joined the channel [23:26] perlmonkey2 has joined the channel [23:27] harth has joined the channel [23:27] springmeyer has joined the channel [23:30] willwhite has joined the channel [23:32] benjaminRRR has joined the channel [23:32] AvianFlu has joined the channel [23:33] z8000 has joined the channel [23:34] polvero has joined the channel [23:34] balaa has joined the channel [23:34] kimico has joined the channel [23:35] xeodox has joined the channel [23:38] cha0s has joined the channel [23:38] cha0s has joined the channel [23:40] chrischris has joined the channel [23:41] rchavik has joined the channel [23:41] rchavik has joined the channel [23:42] DTrejo has joined the channel [23:47] mertimor has joined the channel [23:48] reid has joined the channel [23:48] context: http://bit.ly/ptpEOW - keep up the good work guy! [23:54] k1ttty has joined the channel [23:55] Chris-_ has joined the channel [23:56] Kuntau has joined the channel