[00:02] spolu has joined the channel [00:05] testcloud has joined the channel [00:06] baba_ has joined the channel [00:06] testcloud has joined the channel [00:06] EhevuTov has joined the channel [00:09] grom358 has joined the channel [00:11] satyr has joined the channel [00:13] mikeal has joined the channel [00:13] nicholas_ has joined the channel [00:14] devongovett has joined the channel [00:15] bawa has joined the channel [00:16] coderarity has joined the channel [00:18] LuckySMack has joined the channel [00:19] warz has joined the channel [00:19] warz has joined the channel [00:21] TheLifelessOne has joined the channel [00:21] isaacs has joined the channel [00:23] Carmivore has joined the channel [00:23] Carmivore has joined the channel [00:23] Leemp_offsite has joined the channel [00:24] Leemp_offsite: Anyone familiar with Flatiron? Anyone know if it supports a built in method for serving static files? And if not, which module would you suggest (that works well with the Flatiron middleware, etc) [00:25] AvianFlu: Leemp_offsite, we usually use a static server called ecstatic with flatiron [00:25] AvianFlu: let me get you a link [00:25] Leemp_offsite: AvianFlu: Thank you [00:26] bnoordhuis has joined the channel [00:26] coderarity: let me try [00:26] coderarity: !gh jesusabdullah/node-ecstatic [00:27] tommyvyo has joined the channel [00:27] Leemp_offsite: AvianFlu: I also just found this, https://github.com/flatiron/union , looks like that may be a clue on how to manually do a stream aswell, (though that looks to be the reverse of what i want, same concept i imagine) [00:27] idefine_ has joined the channel [00:27] methodT_ has joined the channel [00:27] AvianFlu: https://github.com/jesusabdullah/node-ecstatic [00:28] coderarity: Leemp_offsite: flatiron's http plugin uses union [00:28] panosru: could anyone take a look on my question here? http://stackoverflow.com/questions/8948804 Thanks :) [00:28] Leemp_offsite: AvianFlu, coderarity: Thank you [00:28] Leemp_offsite: coderarity: Yea [00:29] AvianFlu: Leemp_offsite, the last webapp I built, I used union with ecstatic as a middleware [00:29] thriple has joined the channel [00:30] coderarity: just don't do empty directories with directory listings and you'll be fine [00:30] Leemp_offsite: I've actually been rather surprised to find Flatiron, and then find that it doesn't use Require.js. I (a js & node beginner) assumed that many frameworks would be using RequireJS as it *looked* to better support client/server usage [00:31] coderarity: nah, node.js already has require stuff [00:31] Leemp_offsite: coderarity: Right, but it's sychronous and doesn't support web paths, does it? (Eg, client) [00:32] panosru: coderarity: I find node's require very limited against require.js [00:32] coderarity: yeah, but a lot of server libraries don't need that [00:32] panosru: Leemp_offsite: you can use browserify [00:32] joelmob has joined the channel [00:33] panosru: coderarity: yes but node.js require method I believe need's a tune up it still misses some features [00:33] panosru: setting path mapping or base path I think is something that could be useful for many [00:33] Leemp_offsite: coderarity: True, i've just been looking for frameworks that blur the line between client and server, and having to use, say, require.js on the client, and commonjs on the server, seems.. odd [00:33] Leemp_offsite: (Again, i'm just inquiring. I am a beginner :) ) [00:33] rauchg has joined the channel [00:35] coderarity: Leemp_offsite: well, that's a needless dependency, it kind of forces people who use the library to use require.js [00:35] coderarity: you can still use require.js for your project [00:36] CIA-101: node: 03koichik 07v0.6 * r35fe3eb 10/ (lib/http.js test/simple/test-http-parser-free.js): [00:36] CIA-101: node: http: reduce creating http-parser instances [00:36] CIA-101: node: Fixes #2577. - http://git.io/asvz4Q [00:36] Leemp_offsite: That was my next question, does RequireJS tend to play nicely with frameworks not specifically designed for it? (Eg, Flatiron with Plates/Directory/etc) [00:37] coderarity: Leemp_offsite: you should still be able to use the require function like normal [00:37] coderarity: i think it uses define for everything, but i don't use it myself [00:37] Leemp_offsite: coderarity: Righto :), well thanks for the discussion :) [00:37] thriple has joined the channel [00:41] pyrotechnick: is there a data structure that's the opposite to an octree, starting from a central node and working out? [00:41] grom358 has joined the channel [00:42] bawa has left the channel [00:42] counterbeing has joined the channel [00:43] bawa has joined the channel [00:45] Swizec_ has joined the channel [00:46] jstonne has joined the channel [00:46] TheLifelessOne has joined the channel [00:47] nuclearsandwich has joined the channel [00:48] pyrotechnick has joined the channel [00:48] goloroden has joined the channel [00:49] gigafied: isaacs: I think I know the answer to this but thought I'd ask anyway, there's no way to accomplish devDependencies functionality for say, global vs local.. i.e. globalDependencies, localDependencies [00:49] isaacs: gigafied: nope [00:49] isaacs: with good reason :) [00:49] isaacs: if you think you need this, you probably need two different modules. [00:49] isaacs: one which is installed globally, the other which is not. [00:50] nuclearsandwich: Is there recommended way to sanely keep diferent versions of Node on a dev machine? I'm evaluating different cloud providers which all target separate (outdated) versions of node. [00:50] gigafied: isaacs: yeah, I guess I'll break it up into pkg-cli and pkg [00:50] nuclearsandwich: I've seen nave, nvm, and nodeenv but it isn't apparent if the community prefersany over the other. [00:53] ryangs has joined the channel [00:53] tomtomaso has joined the channel [00:53] meso has joined the channel [00:56] vkandy has joined the channel [00:56] hipsters_ has joined the channel [00:57] janekp has joined the channel [00:58] TheLifelessOne: /buffer clear [00:58] TheLifelessOne: whoops, sorry. [00:58] StanlySoManly has joined the channel [00:58] pyrotechnick1 has joined the channel [01:00] raincole_ has joined the channel [01:00] jesusabdullah: Oy, can anyone recommend a decent mustache library? I don't need much [01:01] mmalecki: jesusabdullah: mustache.js? [01:01] isaacs: nuclearsandwich: i prefer nave [01:01] isaacs: nuclearsandwich: becasue i <3 subshells and bash :) [01:01] isaacs: and i <3 using programs i wrote. [01:01] mmalecki: jesusabdullah: the one by janl [01:01] willwhite has joined the channel [01:02] AvianFlu has joined the channel [01:02] lz has joined the channel [01:02] warz: jasusabdullah, tried twitter's hogan.js? [01:03] warz: been working well for me [01:03] MatthewS has joined the channel [01:03] richardr has joined the channel [01:04] jerrysv has joined the channel [01:04] schwab has joined the channel [01:07] samsonjs_ has joined the channel [01:08] Wizek has joined the channel [01:08] StanlySoManly has joined the channel [01:08] secoif: SubStack how do you run the dnode test suite? the required version of express requires < 0.5 but npm won't run on > 0.6 :/ [01:08] lz has left the channel [01:08] TheLifelessOne has left the channel [01:09] isaacs: secoif: just install express with -f [01:09] isaacs: "-f is for fuckit" [01:09] isaacs: secoif: or use node 0.4 [01:09] isaacs: and npm 1.0 [01:09] isaacs: nave use 0.4.12 [01:09] secoif: both solutions seem icky. [01:10] isaacs: then: curl http://npmjs.org/install.sh | sh [01:10] secoif: it'd be good if we had a [01:10] Zmanu: hello [01:10] secoif: npmpm [01:10] isaacs: it'll install npm 1.0 in the nave 0.4 subshell [01:10] secoif: so i could swap that stuff out [01:10] secoif: oh [01:10] secoif: so [01:10] isaacs: when you "exit" or ^D, you'll be back to node 0.6 and npm 1.1 [01:10] secoif: that's nice [01:10] isaacs: inorite? [01:10] secoif: so nave will handle the npm versioning issue? [01:10] Zmanu: i learn node.js and in first code, i write a http server, everything is ok but when i had a console.log i have an ReferenceError: console is not defined [01:11] jzacsh has joined the channel [01:11] jzacsh has joined the channel [01:11] secoif: ACTION researches nave [01:12] secoif: Zmanu post your code [01:12] stephank has joined the channel [01:13] neurodrone has joined the channel [01:14] scientes has left the channel [01:15] webguynow has joined the channel [01:15] soapyillusions has joined the channel [01:15] Mauro has joined the channel [01:16] Mauro: good night [01:16] Zmanu: secoif: http://pastebin.com/9470vMKh [01:16] Mauro: please help me with an error installing Cygwin [01:17] Mauro: installing cygwin in win xp sp3 [01:17] mmalecki: cygwin is no longer supported [01:17] mmalecki: use native build [01:18] warz has joined the channel [01:18] warz has joined the channel [01:20] Mauro: mmalecki.. please explain me it further please [01:21] mmalecki: Mauro: there's an .exe being provided now [01:22] Mauro: ooh.. and where I find this executable ? in cygwin site ? [01:22] mmalecki: Mauro: no, on node site [01:22] sdwrage has joined the channel [01:23] Mauro: is its name cygwin .exe ? [01:23] Zmanu: secoif: no idea ? [01:23] mmalecki: Mauro: http://nodejs.org/#download [01:23] Mauro: ok malecki.. thanks a lot! [01:24] mmalecki: :) [01:25] skm has joined the channel [01:26] Zmanu: nobody knows why when i write console.log i get an error ReferenceError : console is not defined ? [01:26] Zmanu: this is the code ==> http://pastebin.com/9470vMKh [01:29] Lingerance: Zmanu: node.js version? [01:29] isaacs: Zmanu: node -v [01:30] grom358 has joined the channel [01:30] Zmanu: 0.1.99 [01:30] Lingerance: ... [01:30] Zmanu: i use debian squeeze [01:30] Lingerance: Ah! [01:30] Lingerance: Use print() [01:31] Zmanu: thanks [01:31] Lingerance: ... or upgrade. [01:31] Lingerance: 0.6.7 is out. [01:31] Zmanu: that's not a problem for now, i just learn how nodejs runs [01:31] samsonjs has joined the channel [01:31] Zmanu: ah yeah very old one i got :D [01:31] jergason has joined the channel [01:31] Lingerance: ... you'd be better off with a newer version, but it's up to you. [01:31] Swizec has joined the channel [01:32] Zmanu: maybe run test on sid so [01:33] Zmanu: Lingerance: thanks [01:33] kmiyashiro has joined the channel [01:33] arkx has joined the channel [01:34] cgfuh has joined the channel [01:35] icewhite has joined the channel [01:36] bnoordhuis: Lingerance: 0.6.8! [01:37] charlesO has joined the channel [01:39] Lingerance: Nice [01:39] joshkehn has joined the channel [01:39] jocafa has joined the channel [01:39] joshkehn has joined the channel [01:40] joshkehn has left the channel [01:40] raincole_ has joined the channel [01:40] Zmanu: on sid i only have 0.4.12 [01:43] piscisaureus_ has joined the channel [01:44] neilk_ has joined the channel [01:44] MatthewS has joined the channel [01:47] sleeplessinc has joined the channel [01:50] sh1mmer has joined the channel [01:51] [[zz]] has joined the channel [01:51] grom358 has joined the channel [01:51] sdwrage has joined the channel [01:52] trotter has joined the channel [01:52] plutoniix has joined the channel [01:53] gigafied: Does node have a native way of getting the closest package.json file? Or do I have to just traverse the directory structure myself and do a path.exists check [01:53] astropirate has joined the channel [01:53] shanebo has joined the channel [01:53] a_meteorite has joined the channel [01:54] pyrotechnick1: i think npm can do it [01:54] pyrotechnick1: if you require it programatically [01:54] pyrotechnick1: it would need to do it internally and i imagine they have exposed that behaviour [01:54] pyrotechnick1: otherwise you could shell out to `find` or something similar [01:55] ap3mantus has joined the channel [01:55] gigafied: I'm already using npm programatically, just can't find a reference to it anywhere [01:55] gigafied: no need to even shell it out, I may as well just write it myself [01:55] gigafied: its fairly simple [01:56] gigafied: in pure javascript [01:57] secoif: gigafied what info are you trying to find in the package.json [01:57] gigafied has left the channel [01:57] joelmob has joined the channel [01:57] gigafied has joined the channel [01:57] gigafied: umm sorry, don't know who just asked me that, but I'm basically just trying to grab the name field [01:58] gigafied: i have a cli tool that needs to read in the name/main fields [01:59] gigafied: but i want to be able to do it from any level of the project [01:59] gigafied: not just the root dir [01:59] satyr has joined the channel [01:59] AvianFlu: gigafied, npm install pkginfo [02:00] AvianFlu: https://github.com/indexzero/node-pkginfo [02:01] gigafied: nice ill check it out thx [02:03] ovaillancourt has joined the channel [02:05] davidbanham has joined the channel [02:06] piscisaureus_ has joined the channel [02:07] davidbanham has joined the channel [02:08] orlandovftw has joined the channel [02:09] CIA-101: libuv: 03Dan VerWeire 07v0.6 * rb674187 10/ src/unix/udp.c : unix: set SO_REUSEADDR before binding - http://git.io/i2psSg [02:09] CIA-101: libuv: 03Dan VerWeire 07v0.6 * r497b1ec 10/ (include/uv.h src/unix/udp.c): unix: add uv_udp_set_broadcast() and uv_udp_set_multicast_ttl() - http://git.io/ccCkQw [02:09] CIA-101: node: 03Igor Zinkovsky 07master * rde78922 10/ (5 files in 2 dirs): ref isolate loop - http://git.io/Bqrhyw [02:10] grom358 has joined the channel [02:10] EhevuTov has joined the channel [02:11] niloy__ has joined the channel [02:11] yolin has joined the channel [02:11] isufy has joined the channel [02:13] piscisaureus_ has joined the channel [02:13] thriple has joined the channel [02:16] lemon-tree has joined the channel [02:17] chrisvwebdev has joined the channel [02:20] CrypticSwarm has joined the channel [02:22] mvrilo has joined the channel [02:22] joelmob has joined the channel [02:26] Fuu has joined the channel [02:27] bkaney has joined the channel [02:27] stephank has joined the channel [02:27] CIA-101: node: 03Ben Noordhuis 07v0.6 * r08ab306 10/ (18 files in 7 dirs): uv: upgrade to 497b1ec - http://git.io/YxNOUQ [02:27] CIA-101: node: 03Roman Shtylman 07v0.6 * ra38fd60 10/ (3 files in 3 dirs): [02:27] CIA-101: node: dgram: reintroduce addMembership() and dropMembership() [02:27] CIA-101: node: Removed during the early stages of node 0.5 refactoring to libuv. - http://git.io/F1NQ7Q [02:27] CIA-101: node: 03Dan VerWeire 07v0.6 * rf749338 10/ (3 files in 3 dirs): [02:27] CIA-101: node: dgram: reintroduce setBroadcast() [02:27] CIA-101: node: Removed during the early stages of node 0.5 refactoring to libuv. - http://git.io/WdSF8A [02:27] CIA-101: node: 03Dan VerWeire 07v0.6 * rf2b1f57 10/ (3 files in 3 dirs): [02:27] CIA-101: node: dgram: reintroduce setMulticastTTL() [02:27] CIA-101: node: Removed during the early stages of node 0.5 refactoring to libuv. - http://git.io/G-RZPQ [02:30] jsurfer has joined the channel [02:31] Niphyr has joined the channel [02:33] grom358 has joined the channel [02:36] AvianFlu has joined the channel [02:36] mvrilo_ has joined the channel [02:36] heavysixer has joined the channel [02:37] WRAz: anyone using nodejitsu ? [02:38] brianseeders has joined the channel [02:38] reid has joined the channel [02:40] SubStack: WRAz: I have a few silly apps on nodejitsu [02:41] t0mmyvyo has joined the channel [02:42] blueadept has left the channel [02:42] mandric has joined the channel [02:45] grom358 has joined the channel [02:46] thriple has joined the channel [02:47] DarkGlass has joined the channel [02:48] enmand has joined the channel [02:49] tmzt_ has joined the channel [02:52] surmind has joined the channel [02:53] claudej has joined the channel [02:53] joshfinnie has joined the channel [02:59] secoif: SubStack added some pull requests to dnode. tests were failing on my machine before I even touched the code. Test I wrote for the tiny bit of functionality passes, no new broken tests. [02:59] cody-- has joined the channel [02:59] secoif: SubStack the dnode test suite looks a bit out of shape :( [03:00] devkorcvince has joined the channel [03:00] SubStack: secoif: it's very old [03:00] pyrotechnick1: what is [03:01] secoif: SubStack network stuff is kinda tricky to test without a network mock [03:02] SubStack: disagree [03:02] SubStack: I really dislike mocks [03:03] secoif: SubStack if I had a mock I wouldn't have to actually ensure the port is open. I wouldn't have to manually close any ports I opened after each test unit [03:05] SubStack: secoif: but you also wouldn't be testing the real thing [03:05] SubStack: you would be testing something fake that might have bugs itself [03:05] SubStack: or might differ in subtle ways from the real thing [03:05] phire_ has joined the channel [03:06] SubStack: most of the bugs I squash relate to those subtle implementation details [03:07] dmnd has joined the channel [03:07] SubStack: secoif: Y U NO USE PREVAILING PROJECT WHITESPACE? [03:07] SubStack: in both pull reqs [03:07] dmnd: I think this may be a frequent question, but can someone explain that reasoning behind npm defaulting to local packages? [03:08] dmnd has left the channel [03:08] SubStack: dmnd: ... [03:08] SubStack: >_< [03:08] pyrotechnick: some people [03:08] SubStack: I know right? [03:08] igl: totally [03:08] pyrotechnick: i think i might quit programming [03:08] pyrotechnick: take up gynaecology [03:08] WRAz: ^ still happy that substuck is maintaining dnode after the past 7 months of using it. [03:08] secoif: SubStack bah. the package json one was just that npm decided it wanted it that way [03:09] SubStack: nobody answered my question in 20 seconds, I'd better part! [03:09] secoif: SubStack I will fix the other one [03:09] dmnd has joined the channel [03:09] SubStack: secoif: awesome [03:09] SubStack: looks like a useful patch to have, it's just annoying reformatting stuffs [03:09] secoif: Agree. [03:09] dmnd: ugh, left the room by accident. did anyone try to answer me? [03:10] secoif: dmnd `npm help faq` [03:10] SubStack: dmnd: nope, but in just a sec [03:10] SubStack: a local ./node_modules directory is awesome because when you update a package dependency you update the dependency for just one project at a time [03:10] SubStack: and so you can upgrade packages without having to worry about breaking every other module on the system that depends on the same library [03:11] WRAz: @SubStack: so ... I'm going to pass an object over dnode that is actually an event emitter... on and emit wouldn't be callable on the remote ya? [03:11] SubStack: and it's really great for subdependencies because you can bump a version without worrying about breaking the other modules you depend on that happen to depend on the same package [03:11] dmnd: maybe my use case is weird - I'm writing a small script but I wanted to require underscore for conveneicne. But it seems to do that I need to also end up with package.json or check in a node_modules direcotry too? [03:11] SubStack: because each dependency resolves to the most local node_modules directory [03:11] booo has joined the channel [03:11] SubStack: it is seriously the best thing ever [03:12] SubStack: takes some getting used to though [03:12] dmnd: I was trying to use jake (as a replacement for rake) [03:12] SubStack: dmnd: you can do a global install for cli tools with npm that will manage the node_modules for you and set up a symlink in your $PATH [03:12] kenperkins has joined the channel [03:13] dmnd: seems heavily recommended against, though [03:13] dmnd: maybe I'll just stick with rake [03:13] SubStack: not for cli tools [03:13] SubStack: those are the exception to the everything local heuristic [03:13] SubStack: WRAz: correct because on and emit are on the prototype chain and don't show up in Object.keys() [03:14] SubStack: WRAz: but if you re-define on and emit then you can call them but beware of race conditions owing to the latency across the wire [03:14] SubStack: WRAz: here is how I usually expose EventEmitters over dnode: http://substack.net/posts/9bac3e [03:14] dmnd: SubStack: I understand I can node install -g jake underscore, but that doesn't let me require("underscore") unless I also modify $NODE_PATH? [03:15] rtgibbons has joined the channel [03:15] surmind has left the channel [03:15] secoif: SubStack I squashed the fixes into the previous commit [03:15] WRAz: thanks! so I'm working on an entity system where entities will be sent over the wire with properties only (no methods.. :( sorry not taking full advantage of dnode rpc !) but! they are all eventemitters [03:15] SubStack: WRAz: because when you listen with .on() that listener might not be bound in time before events start coming down the wire [03:15] WRAz: thats fine, they're mosting going to be emitting [03:15] SubStack: but the approach in that article circumvents that issue [03:15] WRAz: very rarely teh remote will listen. [03:16] SubStack: oh yeah that should work fine then [03:16] SubStack: secoif: hooray [03:16] WRAz: when I'm further along I would be interested in showing you the high level design to see if I'm silly for using dnode in this way. [03:16] grom358 has joined the channel [03:16] WRAz: but its basically solving alot of hard problems. [03:16] kmiyashiro has joined the channel [03:17] SubStack: WRAz: also check out upnode if you're going to be having long-running dnode links between node processes [03:17] SubStack: it keeps dnode sessions alive and restarts them when they go dark [03:17] TooTallNate has joined the channel [03:17] SubStack: and uses connection queueing so you don't have to think very hard about downtime [03:18] WRAz: noted. [03:18] khrome has joined the channel [03:18] SubStack: https://github.com/substack/upnode [03:18] jkridner has joined the channel [03:18] rtgibbons has joined the channel [03:19] SubStack: eventually I'm going to integrate some of the stuff I wrote in node-toss into upnode for more transaction control [03:19] WRAz: Also, is testling going well? Been recommending your business to people. [03:19] SubStack: sweet thanks! [03:19] WRAz: because of the sheer number of libraries that you contribute that I use XD [03:19] SubStack: I just presented to some folks today, seemed to go over pretty well [03:19] SubStack: still just trying to hit break-even with all our crazy experiments [03:19] WRAz: well, you and sencha. [03:20] phire_ has joined the channel [03:20] enmand has joined the channel [03:20] WRAz: also, should I be worried about making thousands of dnode connections? (I have increased my file handlers/etc for the socket concerns) [03:21] WRAz: but any concerns ony our end about dnode scaling at the 1k - 50k level ? [03:22] SubStack: thousands! [03:22] zeade has joined the channel [03:23] secoif: SubStack I want the other end of upnode to be able to say, "hey stop trying to reconnect please." [03:23] _jzl has joined the channel [03:23] WRAz: so in other words, no concern. XD [03:23] secoif: SubStack as in a up.close() [03:23] secoif: but from the other end [03:23] litropy_ has joined the channel [03:25] secoif: SubStack I should do that with middleware for sure, but I was wondering if that could/should be added to upnode itself [03:26] secoif: SubStack also, built-in ping etc, perhaps it's a good idea to namespace them? [03:26] secoif: SubStack so it is less likely to collide with methods users may already have [03:27] SubStack: upnode already uses built-in ping [03:27] SubStack: oh namespacing them? [03:27] SubStack: if you have a ping function it seems like that should be for pings [03:28] secoif: yeah so like upnode_ping or _ping or something, just to signify, hey this is something we provided [03:28] SubStack: perhaps [03:29] secoif: but yeah, what do you reckon about the ability for an upnode server to `close()` an upnode client [03:31] SubStack: secoif: seems like a thing upnode could have [03:31] SubStack: perhaps re-namespacing the ping into this.upnode.ping and then adding this.upnode.close [03:31] mvrilo has joined the channel [03:32] SubStack: with a fallback for old upnode clients to use this.ping for now that I'll take out later [03:32] Brian` has joined the channel [03:33] secoif: SubStack alright. I'll see what I can do [03:33] secoif: ACTION changes ide whitespace settings [03:33] SubStack: ACTION set ts=4 sw=4 [03:34] SubStack: and when I come upon 2-spacers that =~ s/4/2/ [03:34] SubStack: g [03:36] skm has joined the channel [03:39] c4milo1 has joined the channel [03:41] tkaemming has joined the channel [03:42] kmiyashiro has joined the channel [03:43] grom358 has joined the channel [03:44] zitchdog has joined the channel [03:45] sharkbird has joined the channel [03:46] fr0stbyte has joined the channel [03:46] wsirc_0278687 has joined the channel [03:47] markq has joined the channel [03:48] amigojapan has joined the channel [03:49] Vennril has joined the channel [03:50] rtgibbons has joined the channel [03:52] munichlinux has joined the channel [03:54] ryan_stevens has joined the channel [03:54] jxson has joined the channel [03:56] Juan77 has joined the channel [03:56] mattgifford has joined the channel [03:57] kenperkins has joined the channel [03:57] mattgifford has joined the channel [03:58] chadskidmore has joined the channel [04:00] boehm has joined the channel [04:00] alystair: my gosh remind me never to install an MS SQL Preview, something like 30 different items to uninstall afterwards [04:01] WRAz: haha anything MS [04:01] secoif: SubStack why don't you commit your .gitignore? [04:02] chrisvwebdev has left the channel [04:02] pyrotechnick: maybe he has nothing to ignore [04:02] raincole_ has joined the channel [04:02] pyrotechnick: what should he be ignoring [04:02] Papcool has joined the channel [04:03] WRAz: @pyro: secoif [04:03] WRAz: (snaps) [04:03] pyrotechnick: damn [04:03] pyrotechnick: secoif's going to need some aloe vera for that burn [04:03] secoif: pyrotechnick node_modules [04:03] secoif: perhaps [04:04] secoif: as in, any dev deps [04:04] secoif: you shouldn't be checking dev deps into git [04:04] kmiyashiro has joined the channel [04:04] SubStack: secoif: because that is a bad idea [04:04] pyrotechnick: you shouldn't be telling geniuses how to code [04:04] SubStack: secoif: and it breaks checking in node_modules [04:04] torsd has joined the channel [04:05] SubStack: checking in node_modules is great for applications [04:05] secoif: pyrotechnick think for yourself, question authority. [04:05] secoif: SubStack what do you think about checking in dev dependencies though [04:06] pyrotechnick: acknowledging "authority" as such is your first mistake [04:06] SubStack: it saves a lot of hassle deploying code [04:06] secoif: SubStack I'm not questioning checking in node_modules. [04:07] monteslu has joined the channel [04:07] secoif: SubStack dev dependencies shouldn't change deploy code [04:07] secoif: anyway [04:09] secoif: pyrotechnick acknowledging "genius" as such is your first mistake [04:09] richardr has joined the channel [04:09] tilgovi has joined the channel [04:09] pyrotechnick: that's what she said! [04:10] dilvie has joined the channel [04:10] martin_sunset has joined the channel [04:11] sdwrage has joined the channel [04:12] Bogh has joined the channel [04:12] dnyy has joined the channel [04:14] nuclearsandwich: isaacs thanks. I had a feeling you would recommend nave. Thanks for all your work in the community. I <3 friendly and helpful software authors. [04:15] sorensen__ has joined the channel [04:15] secoif: SubStack https://github.com/secoif/upnode/commit/576387b48206aac1bd082021a1ce3afaa90681ab#index.js [04:16] secoif: SubStack you want an alias for just ping? Do you think people have built functionality around that ping method being .ping? it seems like it's fairly internal to upnode… [04:16] SubStack: secoif: I'm not worried about that, I'm worried about version mismatches [04:17] dilvie has joined the channel [04:17] secoif: ACTION doesn't understand [04:17] SubStack: var pinger = remote.upnode && remote.upnode.ping || remote.ping [04:17] SubStack: like that [04:17] SubStack: if an old version of upnode connects to a new version of upnode then the ping locations will be out of sync and shit will break [04:17] secoif: ahhh [04:17] secoif: gotcha [04:18] SubStack: then perhaps server.use(upnode.server) instead of upnode.ping [04:19] SubStack: and upnode.server will add upnode.ping and upnode.close [04:19] secoif: + any others [04:19] SubStack: but upnode.ping should exist for a little longer [04:19] SubStack: yes [04:19] secoif: good idea [04:19] SubStack: backwards compatability for a while, perhaps a warning message [04:20] secoif: I'll console.warning('upnode.ping is deprecated') or something [04:20] gigafied has joined the channel [04:20] grom358 has joined the channel [04:21] Commando has joined the channel [04:21] c4milo has joined the channel [04:28] sdwrage has joined the channel [04:29] kmiyashiro has joined the channel [04:30] langworthy has joined the channel [04:30] WRAz: heya, sub you still around? [04:30] SubStack: yep [04:30] WRAz: I have a connect webserver that I have dnode listening on but I still want to dnode.connect to it [04:31] WRAz: this doesn't immediately work, so I assume there is something special I must do [04:31] SubStack: use 2 .listen()s [04:32] SubStack: .listen(app).listen(port) [04:32] WRAz: so two different ports [04:32] SubStack: no [04:32] SubStack: 1 port [04:32] secoif: WRAz no, app is a reference to your connect server, final port is the dnode port [04:32] SubStack: 1 http server [04:32] SubStack: yep [04:33] WRAz: no no I mean I must use different ports [04:33] SubStack: the app /has/ a port if that's what you mean [04:33] WRAz: (one for my connect server, and one for dnode) [04:33] secoif: WRAz https://github.com/substack/dnode/blob/master/examples/web-connect/server.js [04:34] vnguyen has joined the channel [04:34] vnguyen has left the channel [04:34] WRAz: @secoif: durr, I was refering to previous statement [04:34] secoif: WRAz pardon? [04:35] grom358 has joined the channel [04:35] WRAz: I was wondering since dnode is listening to the connect server and does some magic to include dnode and that communicates to the server magically, if it did more magic and you could dnode.connect to that same port [04:35] WRAz: rather than listen on yet another port(meaning I'll need to define two ports in my config, one for the web interface and one for the dnode server) [04:36] WRAz: which is okay, but I did expect magic :D [04:36] c4milo has joined the channel [04:37] secoif: ACTION still not understand [04:37] secoif: WRAz you should be able to dnode.connect to the same port [04:38] WRAz: @secoif: try it. [04:41] mh415 has joined the channel [04:45] monk12 has joined the channel [04:46] munichlinux has joined the channel [04:47] joshsmith: deedubs: ping [04:47] monk12 has joined the channel [04:49] OmidRaha has joined the channel [04:49] mike5w3c has joined the channel [04:50] secoif: WRAz I see the issue. I can connect to dnode OR via connect, but not both [04:51] WRAz: yar, so two listens solves it [04:51] WRAz: also, I'm impressed that you actually tried it +1 [04:51] secoif: dnode seems to want to parse the http request [04:51] secoif: https://gist.github.com/1651328 [04:52] warz has joined the channel [04:52] warz has joined the channel [04:53] secoif: ACTION doesn't like not knowing wtf is going on [04:59] orlandovftw has joined the channel [04:59] orlandovftw has joined the channel [05:01] grom358 has joined the channel [05:01] qsobad has joined the channel [05:02] kriszyp has joined the channel [05:07] ryan_stevens has left the channel [05:07] killfill_ has joined the channel [05:07] deedubs: joshsmith: allo? [05:07] joshsmith: deedubs: coder.ly is an almost beta [05:07] joshsmith: *is in [05:07] joshsmith: ACTION is an almost asleep [05:08] c4milo has joined the channel [05:08] deedubs: Cool. Congrats [05:08] joshsmith: deedubs: want to sign up real fast? [05:08] geetarista has joined the channel [05:08] deedubs: sure [05:09] joshsmith: awesome. http://coder.ly/ [05:09] joshsmith: let me know if there are any issues [05:10] SubStack: how do I click both? :p [05:10] torsd: cool [05:10] orlandovftw has joined the channel [05:10] joshsmith: haha SubStack. you can use your email after signing up with linkedin [05:10] joshsmith: in fact, you *have* to [05:11] joshsmith: ohh [05:11] joshsmith: nevermind. you meant both coder/company [05:11] SubStack: yeah [05:11] SubStack: what does it do? [05:11] joshsmith: matches you up by skillsets, jobs <=> coders [05:12] deedubs: like the avatar lookup on twitter username entry [05:12] joshsmith: matchmaking basically [05:12] joshsmith: gracias! [05:12] ry4n3 has joined the channel [05:12] joshsmith: I was using tweetimag.es but the service went down earlier, so I had to do a hotfix to the Twitter API itself earlier today [05:13] deedubs: yeah I've depended on them before too. They stayed up for the month I needed them though :D [05:13] joshsmith: frankly they were quicker than Twitter's API is [05:13] joshsmith: but it's too unstable [05:13] deedubs: for sure [05:13] rurufufuss has joined the channel [05:13] joshsmith: I tweeted out to Joe Stump asking if it was down; he said "possibly. probably." [05:14] deedubs: http://coder.ly/coder/edit# I can't get to the experience tab [05:15] joshsmith: deedubs: yeah, that's still coming [05:15] deedubs: k cool [05:15] joshsmith: this is a code-only weekend [05:15] joshsmith: I started this 2 weeks ago, so bear with me if it's a little alpha [05:16] deedubs: :D very cool [05:16] deedubs: I gotta jet I'll play around a little more tomorrow [05:16] joshsmith: cool. let me know what you think, good and bad, when you get a chance [05:16] joshsmith: cheers [05:17] AvianFlu has joined the channel [05:20] neurodrone has joined the channel [05:27] grom358 has joined the channel [05:28] mattgifford has joined the channel [05:28] jamund has joined the channel [05:28] cognominal_ has joined the channel [05:30] Skaag has joined the channel [05:31] fr0stbyte has joined the channel [05:31] cjm has left the channel [05:35] harthur has joined the channel [05:37] garrensmith has joined the channel [05:40] lwille has joined the channel [05:42] jergason_ has joined the channel [05:43] SubStack: ACTION swaps out some old expresso tests for tap [05:44] fr0stbyte has joined the channel [05:44] grom358 has joined the channel [05:48] konobi: SubStack: nice [05:49] isaacs has joined the channel [05:49] konobi: SubStack: written any tap test extensions yet? [05:49] SubStack: negatory [05:49] SubStack: I did squash the object ordering comparison bug though [05:49] SubStack: perhaps I'll write a pretty diff comparison thinger [05:50] SubStack: that would also be handy for testling [05:50] konobi: Test::Deep! [05:51] AvianFlu: Test::This::Shit::Please [05:51] xbayrockx has joined the channel [05:52] qsobad has joined the channel [05:54] russfrank has joined the channel [05:56] gavin_huang has joined the channel [05:56] konobi: SubStack: metacpan is a good guide for some useful stuff in that realm [05:58] neilk_ has joined the channel [05:58] mike5w3c has joined the channel [05:59] prettyrobots has joined the channel [05:59] dnjaramba has joined the channel [06:00] ragu has joined the channel [06:00] amigojapan has joined the channel [06:01] ragu: Hi [06:02] ragu: Can anyone know how to install nodejs to windows system other than program files? [06:02] crodas has joined the channel [06:02] jp232 has joined the channel [06:03] neilk_ has joined the channel [06:03] CrawfordComeaux has joined the channel [06:03] Lingerance: Download the stand-alone .exe [06:04] avalanche123 has joined the channel [06:05] dodo has joined the channel [06:05] grom358 has joined the channel [06:05] Qbix1 has joined the channel [06:06] kenperkins has joined the channel [06:08] mh415: ragu: http://nodejs.org/dist/v0.6.8/ [06:08] shanebo has joined the channel [06:09] mh415: ack. no longer here. that's the problem with hiding joins/parts/quits. [06:10] markq has joined the channel [06:10] TheLifelessOne has joined the channel [06:11] TheLifelessOne has left the channel [06:12] fr0stbyte has joined the channel [06:12] gigafied has joined the channel [06:12] context: anyone having issues installing 0.6.8 with homebrew [06:13] AvianFlu: context, use the real installer? [06:13] context: no thnx [06:13] context: ;) [06:14] AvianFlu: then compile it [06:14] context: homebrew keeps everything up to date for me [06:14] AvianFlu: you have nothing to gain using homebrew here [06:14] AvianFlu: I mean, okay, but if there are issues, you know? [06:14] context: heh never had one til now [06:15] AvianFlu: I guess my years of linuxes just make me prefer compiling shit [06:15] AvianFlu: I also like the swordfights on the rolly chairs [06:16] warz has joined the channel [06:16] warz has joined the channel [06:17] jxson has joined the channel [06:18] bitwalker has joined the channel [06:18] isufy has joined the channel [06:20] hh__ has joined the channel [06:20] dmnd has joined the channel [06:20] dmnd has joined the channel [06:20] hh__: any one experience this issue? https://github.com/mranney/node_redis/issues/155 [06:20] hh__: just ate up 2 hrs for me!AGH! [06:21] dnjaramba has joined the channel [06:22] warz: appears to have wasted 2 hours for some guy back in december, also! [06:23] hh__: well anyway, i bring it up because the work around to turn no_ready_check on isn't working for me, if anyone else experienced this issue too [06:23] isaacs has joined the channel [06:24] ubii has joined the channel [06:28] grom358 has joined the channel [06:32] secoif: context yeah I've been installing everything through n since I had problems with brew [06:33] mattgifford has joined the channel [06:35] ehopper has joined the channel [06:36] disappearedng has joined the channel [06:36] disappearedng has joined the channel [06:36] grom358 has joined the channel [06:37] context: through nvm ? [06:37] agnat_ has joined the channel [06:40] opra has joined the channel [06:41] opra: I am interested in using node to talk to a local server on a tcp port, how do i go about this? [06:41] AnarchoTroll has joined the channel [06:41] Lingerance: opra: look at the net module's docs [06:42] Lingerance: If it's a binary protocol you'll also want the Buffer ones [06:42] wedtm has joined the channel [06:46] sdwrage has joined the channel [06:48] yawNO has joined the channel [06:48] grom358 has joined the channel [06:49] stride has joined the channel [06:50] a_suenami has joined the channel [06:53] brianseeders has joined the channel [06:53] jxson has joined the channel [06:54] materialdesigner has joined the channel [06:55] Xiphias3 has joined the channel [06:55] secoif: context through n, but nvm will probably do the same thing [06:55] secoif: i.e `npm install -g n` [06:56] Commando has joined the channel [06:57] WRAz: hmm [06:57] WRAz: can't find a node.js web repl [06:57] mjijackson has joined the channel [06:57] joshsmith: secoif: I can generate the HTML/CSS with jQuery, but can't for the life of me decide how I'm going to animate this [06:58] joshsmith: right now I'm doing it as li's in a ul [06:58] secoif: arrr [06:58] joshsmith: which was probably a bad choice [06:58] secoif: joshsmith divs [06:58] joshsmith: floated? [06:58] materialdesigner has joined the channel [06:58] secoif: joshsmith absolute positioning inside a relative div [06:59] secoif: floats = hell [06:59] Commando: hey how can use if else commando in expressjs [06:59] Diablo-D3: dear whoever invented that part of html [06:59] Diablo-D3: eat me [06:59] Diablo-D3: signed, the rest of the internet [07:01] secoif: floats good if you want to float images, or tile some divs but people usually abuse the hell out of them leading to omfg, i moved the div 1px now my entire design ate itself [07:01] joshsmith: ACTION looks around nervously [07:02] joshsmith: alright, did it as divs now [07:02] joshsmith: so on the animation, what would you do? [07:05] fuuuu0x has joined the channel [07:05] secoif: joshsmith for each row, select random div from row, position div 0 - random height, move div to final position with elastic/bounce easeOut transition. rinse repeat [07:05] grom358 has joined the channel [07:05] secoif: joshsmith we should probably move this discussion out of channel [07:05] tornad has joined the channel [07:05] joshsmith: ah roger that [07:07] secoif: SubStack for closing all clients when server closes: new function vs additional parameter on dnode.close() ? [07:08] SubStack: secoif: you can already do that with server.end() [07:08] secoif: SubStack actually, hang on, it's less abotu shutting down the server, more about shutting the client [07:08] SubStack: also that [07:09] secoif: SubStack remote.kill()? remote.shutdown()? remote. ? [07:11] neilk_ has joined the channel [07:11] secoif: SubStack are you sure? upnoded clients seem to keep reconnecting [07:13] SubStack: those don't belong on the remote [07:13] SubStack: call up.close() to close an upnode connection [07:13] SubStack: I thought you were talking about dnode [07:15] mattgifford has joined the channel [07:15] mattly has joined the channel [07:15] isaacs: sweet, dgram.setMulticastTTL and dgram.setBroadcast return in 0.6.9, thanks to bnoordhuis and wankdanker [07:15] isaacs: thanks [07:15] isaacs: https://github.com/joyent/node/pull/2163#issuecomment-3593954 [07:15] isaacs: and add/drop membership, shtylman [07:16] grom358 has joined the channel [07:16] secoif: SubStack the idea was to allow an upnode server to tell an upnode client to stop trying to reconnect. [07:17] secoif: SubStack currently if I close the connection, i believe the client just gets 'down' then reconnects on reconnect timeout [07:17] hackband has joined the channel [07:18] SubStack: yes [07:18] mattgiff_ has joined the channel [07:18] secoif: I want to tell the upnode client to get off my lawn. [07:25] pizthewiz has joined the channel [07:25] reid has joined the channel [07:26] mh415 has joined the channel [07:26] zilch_ has joined the channel [07:27] secoif: … from the server. [07:29] SubStack: yes [07:30] misza222 has joined the channel [07:32] joshfinnie has joined the channel [07:34] brmouzone has joined the channel [07:34] advatar has joined the channel [07:36] jstonne has joined the channel [07:40] MrNko has joined the channel [07:41] andrewfff has joined the channel [07:41] i42n has joined the channel [07:42] secoif: SubStack how do you normally debug your scripts? tap seems to make program execution reasonably opaque [07:42] secoif: SubStack I'm putting in console.error commands about the place, but it's a bit crap [07:42] secoif: sometimes they don't finish printing. [07:43] secoif: perhaps I should be bugging isaacs about that [07:43] isaacs: secoif: tap test/*.js -ddd [07:43] isaacs: secoif: fewer d's for less output [07:45] meso has joined the channel [07:45] andrewfff has joined the channel [07:46] secoif: isaacs do you normally debug by printing to console? [07:46] isaacs: secoif: yeah [07:46] isaacs: secoif: console.error is for debugging [07:46] isaacs: stdout is used by tap [07:47] icebox has joined the channel [07:47] grom358 has joined the channel [07:49] secoif: isaacs hm. perhaps I'll try this stuff out: https://github.com/goldjunge/prof [07:49] mattgifford has joined the channel [07:49] isaacs: secoif: looks neat [07:50] secoif: I never had much luck with node-inspector though [07:50] secoif: hm [07:52] cognominal has joined the channel [07:53] mike5w3c has joined the channel [07:56] satyr has joined the channel [07:58] mh415 has joined the channel [08:01] tttthet has joined the channel [08:02] churp has joined the channel [08:03] Qbix1 has joined the channel [08:04] jiboumans has joined the channel [08:06] nuclearsandwich: lkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk [08:08] satyr has joined the channel [08:08] hm421 has joined the channel [08:09] yawNO: right. [08:10] twolfson has joined the channel [08:10] ph^ has joined the channel [08:10] grom358 has joined the channel [08:15] munichlinux has joined the channel [08:16] joshsmith: secoif: http://jsfiddle.net/hgeNu/14/ [08:16] slaskis has joined the channel [08:17] liar has joined the channel [08:18] advatar has joined the channel [08:18] mraleph has joined the channel [08:19] secoif: joshsmith that's pretty sweet [08:19] secoif: I'd do it row by row if I were you [08:19] joshsmith: yeah, thanks to you [08:19] luke` has joined the channel [08:19] secoif: in fact you could do it like [08:20] secoif: if there is a div is in the final position below me, I'm ok to go. select me at random. [08:20] dnjaramba_ has joined the channel [08:21] joshsmith: the awesome thing is that this can change in size programmatically, just like you said [08:21] jonaslund has joined the channel [08:22] luke`_ has joined the channel [08:23] joshsmith: for example: http://jsfiddle.net/hgeNu/15/ [08:23] Morkel has joined the channel [08:24] secoif: joshsmith how many rows and how many columns are there? [08:24] joshsmith: 31 columns, 7 rows [08:25] luke`_ has joined the channel [08:25] joshsmith: I kind of like it at random rather than row by row [08:25] joshsmith: it feels more organic this way [08:27] plutoniix has joined the channel [08:31] mikeal has joined the channel [08:33] harthur has joined the channel [08:33] rendar has joined the channel [08:33] grom358 has joined the channel [08:39] felixge has joined the channel [08:39] mikeal has joined the channel [08:39] josephmoniz has joined the channel [08:40] prettyrobots has left the channel [08:42] phidah has joined the channel [08:44] insin has joined the channel [08:44] secoif: joshsmith either way it's pretty cool [08:44] joshsmith: secoif: yeah, I had fun with it [08:45] secoif: joshsmith you should try using underscore, some of that stuff would have been a lot easier eg http://documentcloud.github.com/underscore/#shuffle [08:45] joshsmith: I know, I know [08:46] joshsmith: I leave it as an open tab for days [08:46] joshsmith: and then I'm like "nahhhh" [08:46] secoif: joshsmith this is a perfect use-case [08:46] joshsmith: I also really need to use an async library for my node work [08:46] joshsmith: I'm doing too much random shit [08:47] secoif: well, async is good. [08:47] secoif: the library [08:47] secoif: joshsmith https://github.com/caolan/async [08:48] nicopero has joined the channel [08:48] joshsmith: yeah [08:48] joshsmith: that's really what I meant [08:48] risto has joined the channel [08:49] joshsmith: alright, I need to pass out [08:49] staar2: hello [08:49] joshsmith: thanks again for the idea secoif [08:49] secoif: joshsmith np, catch you later [08:50] ePirat has joined the channel [08:51] harthur has joined the channel [08:52] grom358 has joined the channel [08:53] Locke23rus has joined the channel [08:56] mikeal has joined the channel [08:59] disappearedng: Can anyone think of a reason why when I run node.js in my home intranet accessing to the server via 192.168.1.102:8888 I can get io.socket files but my sockets 's emit funciton doesn't send to the server? [09:01] koo3 has joined the channel [09:01] aliem has joined the channel [09:02] secoif: disappearedng can you post your client code [09:02] advatar has joined the channel [09:02] LarsSmit has joined the channel [09:03] klaustsen has joined the channel [09:03] hz has joined the channel [09:04] disappearedng: secoif: https://gist.github.com/e22155b16979ef516b92 here [09:04] amasad has joined the channel [09:04] secoif: disappearedng is the socket server on your machine or on another machine [09:04] secoif: ? [09:05] disappearedng: another machine [09:05] disappearedng: does nodejs have something like production mode [09:06] mange has joined the channel [09:06] secoif: disappearedng your code is trying to connect to localhost:8888 [09:06] secoif: io.connect('http://localhost:8888'); [09:07] disappearedng: omg thanks [09:07] secoif: change it to io.connect('192.168.1.102:8888') and see how you ho [09:07] secoif: go] [09:07] secoif: go. [09:07] disappearedng: yeah cool is there a better way? [09:07] secoif: it is the only way. [09:07] stagas has joined the channel [09:07] disappearedng: like I guess I can use reverse proxy in the future and have just io.connect / [09:09] secoif: disappearedng do you want to set it up so you can test in one configuration then deploy to another? [09:10] GrizzLyCRO has joined the channel [09:11] LeMike has joined the channel [09:11] secoif: disappearedng two options, set an ENV var that you switch depending on if it's in production or dev environments, and swap out the connection string depending on the value, or you could set an env var that IS the connection string, or you could simply create an entry in your hosts file that masquerades your intranet machine as the remote. [09:12] secoif: disappearedng you can access env vars via process.env [09:12] salva has joined the channel [09:14] disappearedng: secoif: yeah sure well I can do that for sure [09:14] disappearedng: but isn't the browser smart enough to substitute that for me? [09:14] disappearedng: I mean if I reverse proxy to allow nodejs to be served on /nodejs [09:14] secoif: disappearedng what do you mean? [09:14] disappearedng: then having just / will be sufficient depending on the source of the http server [09:15] secoif: disappearedng doesn't sound like a good solution to me [09:15] disappearedng: so now I have to change and I can't use / is because localhost (the domain which the static file is served) is not equivalent to localhost:8888 [09:15] disappearedng: well I have done this in the past and it's generally how it's done on port 80 [09:15] secoif: aren't you hosting it from some other machine? [09:16] disappearedng: you set up haproxy or use nginx to redirect traffic heading to /nodejs to localhost:8888 [09:16] disappearedng: yeah [09:16] secoif: and what's wrong with just serving it from there? [09:16] disappearedng: nothing [09:16] josh-k has joined the channel [09:16] disappearedng: but then I have to change enviornment and stuff [09:16] disappearedng: the most scalable way is to hardcode the url into the script [09:16] disappearedng: with the url being just / [09:17] harthur has joined the channel [09:17] hz has joined the channel [09:17] disappearedng: anyway I gotta code thanks for the spot [09:17] secoif: I wouldn't do it that way but in your environment, if changing an env var is harder than setting up a proxy I guess go for it [09:18] disappearedng: no you HAVE to change to proxy when you deploy [09:18] disappearedng: you cannot expect external environemnt to have port 8888 or something opened [09:18] mikeal has joined the channel [09:21] davidbanham has joined the channel [09:23] janekp has joined the channel [09:23] infynyxx has joined the channel [09:24] lzskiss has joined the channel [09:24] tvw has joined the channel [09:25] secoif: disappearedng sure, if you're deploying on heroku or some other place you don't have control over the environment I guess you're right. Even then i think you can switch env vars [09:26] herbySk has joined the channel [09:27] secoif: disappearedng perhaps ask over in #socket.io [09:27] disappearedng: well at the end of the day [09:28] disappearedng: socket.io renders in a browser [09:28] disappearedng: and the browser has that capaiblity which I mentioned to convert / to the url it fetched the static files from [09:28] Druid_ has joined the channel [09:29] ivic has joined the channel [09:30] adambeynon has joined the channel [09:31] joshfinnie has joined the channel [09:32] OmidRaha has joined the channel [09:34] d0k has joined the channel [09:34] agnat has joined the channel [09:36] disappearedng has joined the channel [09:36] jetienne has joined the channel [09:38] npa has joined the channel [09:42] ivic_ has joined the channel [09:48] sidorares has joined the channel [09:56] jacobrask has joined the channel [10:00] jacobrask: Can I have npm "globally" install modules to ~/bin somehow? Node installed with nvm doesn't match the Node version installed globally, which is used when I do sudo npm install -g [10:01] munichlinux has joined the channel [10:03] phidah has joined the channel [10:04] amasad_ has joined the channel [10:06] QaDeS has joined the channel [10:07] lperrin has joined the channel [10:08] larsschenk1 has joined the channel [10:08] larsschenk1 has left the channel [10:09] Sir_Rai has joined the channel [10:09] Sami_ZzZ has joined the channel [10:10] blup has joined the channel [10:12] erichocean has joined the channel [10:13] marcello3d has joined the channel [10:14] jbpros has joined the channel [10:19] blueadept has joined the channel [10:20] AndreasMadsen has joined the channel [10:21] thalll has joined the channel [10:21] bingomanatee_ has joined the channel [10:22] stagas has joined the channel [10:26] ivic has joined the channel [10:27] ivic_ has joined the channel [10:28] ivic has joined the channel [10:28] adrianmg has joined the channel [10:29] prssn has joined the channel [10:30] Wizek has joined the channel [10:30] prssn: Anyone ever used https://github.com/Shouqun/node-dbus ? Having some troubles building it.. [10:30] ivic_ has joined the channel [10:31] adrianmg has left the channel [10:31] adrianmg has joined the channel [10:31] adrianmg has left the channel [10:32] CrawfordComeaux has joined the channel [10:34] ivic has joined the channel [10:35] qsobad has joined the channel [10:40] shinuza has joined the channel [10:41] staar2: !node [10:41] mehlah has joined the channel [10:42] koo3 has joined the channel [10:43] lperrin has joined the channel [10:47] johnhamelink has joined the channel [10:47] Hanspolo has joined the channel [10:48] secoif: jacobrask sounds like you simply need to make some changes to your path for root so that the nvm installed node is used [10:48] secoif: jacobrask it's possible you just need to use sudo with nvm [10:49] __doc__ has joined the channel [10:49] N0va` has joined the channel [10:49] secoif: jacobrask on OSX I've never needed sudo to install a module globally, they just go into ~/.npm [10:50] secoif: jacobrask I'm using n to manage node installs though. perhaps it sets things up different [10:51] robhawkes has joined the channel [10:54] jarek has joined the channel [10:55] aslant has joined the channel [10:56] charlesO has left the channel [10:57] stagas has joined the channel [10:57] phidah has joined the channel [11:01] orlandovftw has joined the channel [11:02] p1d has joined the channel [11:05] grom358 has joined the channel [11:10] berak has joined the channel [11:13] jetienne: q. i want a simple http server serving static file but throttling them ? is there something simple ? [11:15] adrianF has joined the channel [11:15] sriley: as in like nginx? [11:16] secoif: jetienne I'd just use nginx [11:16] jetienne: i would like a node.js solution if possible [11:16] sriley: for serving static files, why? [11:17] jetienne: sriley: not to add a dependancy to my project [11:17] aliem has joined the channel [11:18] secoif: jetienne nginx far better for static files, it's what it's designed for [11:18] sriley: last ive seen its recommended to put nodejs behind a proper webserver anyway since it might not be resilient enough to malformed headers etc [11:18] jetienne: so no node.js solution ? [11:19] jetienne: sriley: if so you should report the bug. [11:19] jetienne: thanks. i will reask later when more people are there. im sure somebody already did that [11:19] adrianmg has joined the channel [11:19] Apage43: sriley: which proper webservers don't have lots of annoying issues if you are proxying anything crazy? [11:19] adrianmg has left the channel [11:19] Apage43: like websockets etc [11:20] tomtomaso has joined the channel [11:20] jetienne: you keep saying "proper" webserver. is node.js improper as webserver ? [11:21] Apage43: *shrug* [11:21] jetienne: same here :) [11:22] yolin has joined the channel [11:23] secoif: jetienne good discussion here https://groups.google.com/forum/#!topic/nodejs/LcsC8bXZwK8 [11:23] Lingerance: I'd look at what socket.io does to serve its client-side file. But really I wouldn't use node.js for static files. [11:24] Apage43: Well I think the needed bit is the throttling [11:24] niloy__ has joined the channel [11:24] grom358 has joined the channel [11:24] Apage43: Incidentally that means that a dedicated static file server being faster isn't even a big deal since the point is to actually be -slower- [11:25] jetienne: Apage43: thanks [11:25] secoif: jetienne https://groups.google.com/d/topic/nodejs/lknPXB6P3O0/discussion [11:25] jetienne: Apage43: do you know of a small script doing that ? [11:25] texinwien has joined the channel [11:26] jetienne: i just need a small delay i can control [11:26] jetienne: secoif: oh ok so proper means being the fastest on static file. thanks [11:26] jetienne: about that sendfile is used on os which support it ? [11:26] jetienne: it was at one point. is it still the case? [11:27] hipsters_ has joined the channel [11:27] secoif: no, more like, battle hardened against all sorts of traffic plus easy to configure to do simple stuff like throttling, in nginx you just add config 'rate_limit: 3000' and you're done. [11:27] herbySk has joined the channel [11:28] bkaney has joined the channel [11:28] Apage43: that's probably the better idea [11:28] Apage43: I'm thinking of how I'd do rate throttling in node and I keep thinking of edge cases that I'm sure nginx already handles smartly [11:29] jetienne: Apage43: most likely. but i want something simple and fast. not the super robust 10k version [11:29] jetienne: thanks guys [11:29] Apage43: Nginx is pretty simple to configure [11:30] robotmay has joined the channel [11:30] Cromulent has joined the channel [11:31] jetienne: you sure seem to like nginx a lot :) [11:31] Apage43: I said all of two nice things about it. [11:32] staar2: is it possible to load data into mongodb like you can import in sql world ? [11:32] Apage43: But it does seem like a good fit for the job. [11:32] niloy_54678 has joined the channel [11:33] secoif: staar2 yes. [11:33] secoif: Apage43 agreed. but when all you have is a hammer… [11:34] Apage43: You go to a damn tool store [11:41] DarkGlass has joined the channel [11:41] meso has joined the channel [11:42] mraleph has joined the channel [11:42] stagas has joined the channel [11:43] felixge_ has joined the channel [11:45] grom358 has joined the channel [11:47] TheJH has joined the channel [11:47] unomi has joined the channel [11:48] Morkel has joined the channel [11:48] tornad1 has joined the channel [11:49] torsd has joined the channel [11:54] webjames has joined the channel [11:56] fangel has joined the channel [11:57] eb4890 has joined the channel [11:57] webjames: Hello - i'm having trouble install node on my ubuntu server. i'm build from the source. it's compiled but the command make install wont run. i've tried make uninstall. http://dpaste.com/691362/ [11:58] webjames: it seems to just hand on the line: ln -sf ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm [11:59] booo has joined the channel [11:59] martin_sunset has joined the channel [11:59] schristo has joined the channel [12:04] mehlah has joined the channel [12:05] DarkGlass has joined the channel [12:06] broofa has joined the channel [12:06] cjroebuck has joined the channel [12:07] `3rdEden has joined the channel [12:10] RLa has joined the channel [12:11] cognominal has joined the channel [12:11] webjames: i'm tying a rebuild and then i'll try again [12:12] webjames: that worked. [12:13] webjames: thanks [12:13] TheJH has joined the channel [12:14] grom358 has joined the channel [12:14] antonio79 has joined the channel [12:15] antonio79 has left the channel [12:17] antonio79 has joined the channel [12:17] antonio79: i love node.js [12:19] antonio79 has left the channel [12:21] icebox has joined the channel [12:22] schristo has left the channel [12:22] Cromulent has joined the channel [12:22] janekp has joined the channel [12:23] antonio79 has joined the channel [12:25] Juan77 has joined the channel [12:25] emilisto: i love you too antonio79 [12:28] gregmoreno has joined the channel [12:28] cjroebuck has joined the channel [12:30] mvrilo has joined the channel [12:30] kriszyp has joined the channel [12:30] brianseeders has joined the channel [12:30] tomtomaso has joined the channel [12:31] collages has joined the channel [12:32] collages: http://www.huanlefuqi.com/club/?fromuid=1014057 [12:33] mmalecki: spam ^ [12:34] grom358 has joined the channel [12:34] collages has left the channel [12:35] DarkGlass has joined the channel [12:36] davetayls has joined the channel [12:37] disappearedng has joined the channel [12:37] luoluoluo has joined the channel [12:37] wao has joined the channel [12:41] bnoordhuis has joined the channel [12:42] torvalamo has joined the channel [12:43] mAritz has joined the channel [12:44] yawNO has joined the channel [12:45] chvid has joined the channel [12:47] pig_ has joined the channel [12:47] pig_ has joined the channel [12:49] kuya has left the channel [12:49] munichlinux has joined the channel [12:50] Chr0x1 has joined the channel [12:51] Chr0x1 has left the channel [12:51] Chr0x1 has joined the channel [12:51] hackband has joined the channel [12:51] grom358 has joined the channel [12:52] pig has joined the channel [12:52] pig has joined the channel [12:52] scott_gonzalez has joined the channel [12:55] LeMike has joined the channel [12:55] hackband_ has joined the channel [12:57] joelmob has joined the channel [12:58] xbayrockx: For those following my MMOTCG journey, here is how my game is coming along so far http://checkthecable.com.au/hontcg/ [12:58] jonaslund has joined the channel [12:58] Wizek has joined the channel [12:59] torvalamo: still too big? [12:59] torvalamo: :P [12:59] xbayrockx: Sorry :D [12:59] xbayrockx: It's got a movable camera now [12:59] torvalamo: i cant scroll AND use the built-in scrolling... [12:59] torvalamo: too annoying [12:59] xbayrockx: just click on the image [13:00] lperrin has joined the channel [13:00] DarkGlass has joined the channel [13:04] torvalamo: yeah but wherever i click becomes the center [13:04] torvalamo: and the center of the image is not the center of my screen [13:04] torvalamo: ;) [13:04] antonio79 has joined the channel [13:04] munichlinux: I am trying out zombie and jellyfish, wondering why jellyfish doesn't extend the functionality of zombie or am i missing something? [13:05] munichlinux: has anyone tried jellyfish? [13:07] igl: münchen \o/ [13:08] ppcano has joined the channel [13:11] fairwinds has joined the channel [13:13] grom358 has joined the channel [13:14] hellp has joined the channel [13:16] megalomix has joined the channel [13:16] megalomix: hello [13:16] megalomix: i have a question about process.nextTick() [13:16] zitchdog has joined the channel [13:17] megalomix: i have a loop i have to do many queries, i need to do this query ASYNC so i do the loop and inside it i use process.nextTick(check) where check is a function i defined that does the query [13:17] megalomix: now is this a problem if i call process.nextTick() 2000 times ? (because it is inside a loop) [13:18] chakrit has joined the channel [13:18] megalomix: is this a problem? [13:19] DarkGlass has joined the channel [13:19] spleeze has joined the channel [13:20] megalomix: someone here? :) [13:20] SteveW has joined the channel [13:20] schristo has joined the channel [13:21] chakrit: hi [13:21] megalomix: ji [13:21] megalomix: hi [13:21] chakrit: just got in here though, didn't see your q [13:21] chakrit: folks, just wondering if any of you guys using node-fibers on heroku? [13:21] megalomix: re: i have a loop i have to do many queries, i need to do this query ASYNC so i do the loop and inside it i use process.nextTick(check) where check is a function i defined that does the query [13:22] megalomix: re: now is this a problem if i call process.nextTick() 2000 times ? (because it is inside a loop) [13:22] _baton__ has joined the channel [13:23] mAritz: megalomix: why are you doing that? [13:23] megalomix: mAritz, to call all the queries [13:23] mAritz: best give us a gist so we can look at what you're trying to do. [13:23] megalomix: instead of one by one [13:23] megalomix: wrong ? [13:23] chakrit: megalomix: what kind of "queries" ? I think most queries are already async to some extent. [13:23] chakrit: yeah, example would help [13:24] megalomix: yes mysql queries [13:24] mAritz: why not just call the query? if they're async, they'll all be called first before any callbacks are handled [13:24] tobmaster has joined the channel [13:24] mAritz: and why are you doing 2000 queries in one loop? oO [13:24] megalomix: guys this is my code: https://gist.github.com/1652764 [13:25] megalomix: mAritz, take a look at the code [13:25] megalomix: line number 10 has the process.nextTick() [13:26] chakrit: megalomix: I think you don't need line 10 [13:27] chakrit: just call check(); [13:27] chakrit: and personally I think node can handle lots of process.nextTick just fine [13:27] chakrit: but if it's me I'll do some tests/benchmarks to be sure [13:27] megalomix: ah ok perfect [13:27] megalomix: i remove it [13:27] megalomix: maybe mysql should be async [13:27] megalomix: ok [13:28] megalomix: thank you so much! [13:28] chakrit: yeah, it's already async that's my point [13:28] janekp has joined the channel [13:28] megalomix: i just call check() [13:28] chakrit: on line 13, that is [13:29] chakrit: guys, any of you using node-fibers on heroku? wondering if there'll be any potential issues. [13:31] mAritz: megalomix: also: if you can, don't define functions inside of loops. especially if your loop has 2000 iterations, because function declarations cost. [13:31] LarsSmit has joined the channel [13:32] RLa: mAritz, have you benchmarked it? [13:32] RLa: creating functions in loop [13:32] samyak__ has joined the channel [13:33] mAritz: no [13:33] CIA-101: node: 03Ben Noordhuis 07master * r0bb79c7 10/ lib/http.js : [13:33] CIA-101: node: http: fix deprecation warning module ID [13:33] CIA-101: node: Mea culpa, I told @mmmalecki wrong. - http://git.io/Ny27oA [13:34] RLa: i think there are other problem with creating functions in a loop [13:34] mAritz: RLa: it's something i've read numerous times and makes sense. but yeah, should maybe benchmark it if you want to be sure. [13:34] CIA-101: node: 03Ben Noordhuis 07master * r56e34c2 10/ lib/http.js : [13:34] CIA-101: node: http: fix deprecation warning module ID [13:34] CIA-101: node: Mea culpa, I told @mmalecki wrong - http://git.io/kl_obQ [13:34] RLa: variables are treated as references, that might cause very serious bugs [13:35] callen has joined the channel [13:36] Edy has joined the channel [13:36] Edy has joined the channel [13:36] grom358 has joined the channel [13:36] jarek has joined the channel [13:36] davetayls has joined the channel [13:37] shedinja has joined the channel [13:37] azeroth__ has joined the channel [13:37] ovaillancourt has joined the channel [13:38] niloy has joined the channel [13:38] 16SAAK1AP has joined the channel [13:38] 20QAAMB2L has joined the channel [13:39] davetayls has joined the channel [13:39] lperrin has joined the channel [13:39] jbpros has joined the channel [13:40] CIA-101: node: 03Maciej Małecki 07master * re10ed09 10/ (7 files in 3 dirs): [13:40] CIA-101: node: path fs: move `path.exists*` to `fs.exists*` [13:40] CIA-101: node: `path.exists*` functions show a deprecation warning and call functions [13:40] CIA-101: node: from `fs`. They should be removed later. [13:40] CIA-101: node: test: fix references to `path.exists*` in tests [13:40] CIA-101: node: test fs: add test for `fs.exists` and `fs.existsSync` [13:40] CIA-101: node: doc: reflect moving `path.exists*` to `fs` - http://git.io/p4OGZA [13:41] Kunda has joined the channel [13:42] daleharvey: so whats the best frameworks for doing traditional server side rendering with node.js [13:43] TheJH: daleharvey, use mine!!!!111111 :P [13:48] wsirc_0278687 has joined the channel [13:49] daleharvey: which is? [13:49] jetienne: daleharvey: server side rendering = ? template ? [13:49] daleharvey: I think ill be ok with express for now [13:49] daleharvey: jetienne: yeh [13:50] samyak__ has joined the channel [13:50] jetienne: express is nice. it covers a lot. and well coded. way above others in my opinion [13:50] daleharvey: I use handlebars on the client, ill see if I can plug that in to express [13:51] jetienne: daleharvey: what are you doing these day ? still on database ? [13:51] daleharvey: yup, still at couchbase [13:52] unomi has joined the channel [13:52] jetienne: daleharvey: cool. now im mostly focused on webgl stuff. i like it. fun area [13:53] daleharvey: sweet, anything to show? I keep starting a little webgl project but then shelving it because *gl is hard stuff :P [13:53] jetienne: oh ya a lot [13:54] jetienne: daleharvey: http://learningthreejs.com a blog i write with plenty of demos [13:54] lperrin has joined the channel [13:54] jetienne: daleharvey: http://marblesoccer.com is a workinprogress for the blog [13:54] daleharvey: nice, boilerplace is handy [13:54] daleharvey: *boilerplate [13:55] jetienne: http://learningthreejs.com/data/projecting-shadows/ <- demo for the next post [13:55] jetienne: daleharvey: yep i did a purebrowser builder too [13:57] xtianw has joined the channel [13:58] AndreasMadsen has joined the channel [14:00] LarsSmit1 has joined the channel [14:01] grom358 has joined the channel [14:02] Cromulent has joined the channel [14:06] marcells has joined the channel [14:06] Hanspolo_ has joined the channel [14:11] HardFu: I have a mongodb driver which connects to the database, but, If i perform a find outside the callback i get undefined, because obviously it hadn't connect yet [14:11] HardFu: but I need to access the mongo database outside callback function [14:11] HardFu: what's the best way to tell application to 'wait' until mongodb is connected [14:11] jjd has joined the channel [14:12] insin has joined the channel [14:12] cjroebuck has joined the channel [14:13] Heisenmink has joined the channel [14:15] ppcano_ has joined the channel [14:16] spolu has joined the channel [14:18] shanebo has joined the channel [14:19] avih has joined the channel [14:21] willwhite has joined the channel [14:23] npa has joined the channel [14:24] salva has joined the channel [14:24] grom358 has joined the channel [14:26] megalomix: mAritz, ooh true! i will define it outside! [14:26] megalomix: thank you [14:28] ivic has joined the channel [14:28] DarkGlass has joined the channel [14:29] mAritz: HardFu: there's a lot of ways to do this. why not do it in the callback? [14:30] HardFu: two purposes, one is so I can export my tiny DBAL and do queries ouside of it, second is so I can learn something out of it :) [14:31] antonio79 has joined the channel [14:32] HardFu: I was thinking about promises, but maybe that's not the best option [14:32] tanguito has joined the channel [14:32] gavin_huang has joined the channel [14:35] ePirat has joined the channel [14:35] ePirat has joined the channel [14:36] ovaillancourt has joined the channel [14:39] ovnicraft has joined the channel [14:40] arcanis has joined the channel [14:41] jdnavarro has joined the channel [14:43] munichpython has joined the channel [14:43] grom358 has joined the channel [14:43] daleharvey: ugh, found a weird bug somewhere between node and couchdb [14:44] daleharvey: I am running my server with nodemon, on some requests I take the users cookies and use them in requests to couchdb [14:44] RLa: anyone tried webstorm ide, it seems to have node.js support: http://www.jetbrains.com/webstorm/features/index.html#NodeJS [14:45] daleharvey: when nodemon restarts the server, I can see the cookie being set, but couchdb never recieves it, the cookie is still valid since I can make the request from my browser [14:46] zaphod1984 has joined the channel [14:46] mraxilus has joined the channel [14:46] amasad has joined the channel [14:46] mraxilus has joined the channel [14:46] OmidRaha has joined the channel [14:47] ivic has joined the channel [14:49] danraz has joined the channel [14:51] munichlinux has joined the channel [14:56] erichocean has joined the channel [14:58] defied has joined the channel [14:59] couchquid has joined the channel [14:59] markwubben has joined the channel [15:01] sdwrage has joined the channel [15:01] mvrilo has joined the channel [15:02] lzskiss has joined the channel [15:03] Destos has joined the channel [15:03] bradleyg has joined the channel [15:05] overra has joined the channel [15:05] IrishGringo has joined the channel [15:05] grom358 has joined the channel [15:06] rkrv has joined the channel [15:07] scott_gonzalez has joined the channel [15:08] munichlinux has joined the channel [15:12] cody-- has joined the channel [15:13] HardFu: great, done it with promise now [15:15] amasad has joined the channel [15:15] djcoin has joined the channel [15:16] HardFu: can i set consol.log depth to display objects? [15:16] redir has joined the channel [15:17] CarterL has joined the channel [15:18] daleharvey: is there an easy way to just tell requests I want everything json [15:18] daleharvey: right now its not even respecting accept / content-type headers [15:18] jkridner has joined the channel [15:19] overra has joined the channel [15:19] DarkGlass has joined the channel [15:21] phire_ has joined the channel [15:22] davetayls has joined the channel [15:24] neurodrone has joined the channel [15:27] mAritz: HardFu: util.inspect i think is the function you want to use. look at the source for console.log and you'll see :) [15:27] HardFu: yep, found it in the docs [15:27] HardFu: console.log(util.inspect(results, showHidden=false, depth=5)) [15:27] mAritz: (or the docs, but that's a part where the source is just as readable) [15:28] mAritz: yep [15:28] mAritz: console.dir is essentially console.log(util.inspect()); btw [15:28] jhbot has joined the channel [15:28] mAritz: but you can't provide the depth/hidden params to dir [15:29] jhbot: 'Node.JS and Express: get application host without request' by ladar http://stackoverflow.com/q/8953104 (tags: express) [15:30] grom358 has joined the channel [15:30] stonebranch has joined the channel [15:31] tornad has joined the channel [15:32] daleharvey: yay, pcap suggests its a bug in nodes http api, awesome [15:33] briancray has joined the channel [15:34] kenperkins has joined the channel [15:35] bradleyg has joined the channel [15:36] TheJH: daleharvey, huh, what's happening? [15:36] cognominal_ has joined the channel [15:37] zitchdog has joined the channel [15:38] dubenstein has joined the channel [15:38] icrazyhack has joined the channel [15:39] daleharvey: http://pastebin.me/34dc5d58c13caadc23b4dc59a506eba2 [15:39] daleharvey: the first request is coming from my browser, it has a cookie [15:39] Cromulent has joined the channel [15:39] daleharvey: 2nd request is coming from the code above, the console.log cookie is fine, the requests cookie is undefined though [15:40] daleharvey: this happens every time after I nodemon restarts my server [15:41] daleharvey: woot, disabling cookie jar fixes it, its still a bug, but its not my bug :D [15:44] arcanis has joined the channel [15:44] daleharvey: https://github.com/mikeal/request/issues/125 [15:46] jetienne has joined the channel [15:47] mandric has joined the channel [15:48] criswell has joined the channel [15:49] mattgifford has joined the channel [15:50] jhbot: 'Using Node.js to listen to key events on Redis' by nihil http://stackoverflow.com/q/8954324 (tags: events, redis, publish-subscribe) [15:50] grom358 has joined the channel [15:51] berak has left the channel [15:53] daleharvey: next quick question, 'request' doesnt seem to be respecting my content-type / accept, the header get sent etc, but the callbacks are still being passed a string, and not json - http://pastebin.me/34dc5d58c13caadc23b4dc59a506f403 [15:53] adambeynon has joined the channel [15:55] RLa: daleharvey, is request supposed to parse json automatically at all? [15:56] daleharvey: heh that is a point, I just assumed it would [15:56] RLa: haha [15:56] ppcano has joined the channel [15:56] RLa: tho you should also check response header that couchdb really sends you json [15:57] RLa: because sometimes it sends html [15:57] jbpros has joined the channel [15:57] cognominal___ has joined the channel [15:58] daleharvey: yeh that part definitely does, I think your write that requests doesnt do that stuff, makes sense [15:58] kenperkins has joined the channel [15:59] RLa: you could also look at source if documentation lacks [15:59] samsonjs has joined the channel [16:00] madhums has joined the channel [16:01] lzskiss has joined the channel [16:01] RLa: actually, i think it should parse json itself [16:02] RLa: https://github.com/mikeal/request/blob/master/main.js [16:02] BrianE has joined the channel [16:02] RLa: request seems to have .json property [16:03] RLa: if true it would set those headers itself and do stringify/parse [16:03] rtgibbons has joined the channel [16:03] grom358 has joined the channel [16:03] gde33 has joined the channel [16:03] RLa: look for self.json [16:05] daleharvey: yeh just noticed that. setting it to try does crap my node though :P [16:05] daleharvey: *true [16:05] ePirat has joined the channel [16:05] daleharvey: actually it doesnt, that one was my bad [16:06] lperrin has joined the channel [16:06] idefine has joined the channel [16:06] daleharvey: hmm not sure about the api, but does what I need perfectly, thanks, I really should have just checked the code [16:06] shedinja_ has joined the channel [16:07] monteslu has joined the channel [16:07] Aria has joined the channel [16:10] spleeze has joined the channel [16:12] __tosh has joined the channel [16:12] Diablo-D3 has joined the channel [16:13] cjroebuck has joined the channel [16:13] soapyillusions has joined the channel [16:15] lxsameer has joined the channel [16:15] Aria has joined the channel [16:15] lxsameer: what does this error means? http://dpaste.com/691404/ [16:15] lxsameer: i try to run node under a system user [16:16] margle has joined the channel [16:18] eb4890 has joined the channel [16:19] materialdesigner has joined the channel [16:20] jtsnow has joined the channel [16:21] cognominal has joined the channel [16:21] grom358 has joined the channel [16:21] mh415 has joined the channel [16:23] amigojapan has joined the channel [16:24] joelmob: what module can i use for auto javascript reloading in express? i tried supervisor but it throws me an error when i try to start it [16:25] nibblebot has joined the channel [16:25] CrawfordComeaux has joined the channel [16:26] superlou has joined the channel [16:30] rwaldron has joined the channel [16:34] lxsameer: does any one ran a node script under a system user on linux ? [16:34] joelmob has joined the channel [16:34] rauchg has joined the channel [16:35] isaacs has joined the channel [16:35] hz has joined the channel [16:38] EvRide has joined the channel [16:38] mAritz: lxsameer: Provided I understood that question correctly my answer: yes. [16:39] mAritz: but not me [16:39] lxsameer: mAritz: hmmm, i can't run any script that use net.js under a system user [16:40] Bogh has joined the channel [16:40] mange has joined the channel [16:40] Vespakoen has joined the channel [16:41] daleharvey: joelmob: I use nodemon [16:42] kenperkins has joined the channel [16:44] dambalah has joined the channel [16:44] kriszyp has joined the channel [16:44] jarek has joined the channel [16:44] jarek has joined the channel [16:45] c4milo has joined the channel [16:47] pluc has joined the channel [16:49] joelmob: daleharvey, it works great but was quite slow to restart, do you know if theres anything thats faster? [16:50] jxie has joined the channel [16:51] grom358 has joined the channel [16:51] deedubs: lxsameer: yes I run my apps under non-root users [16:51] jtsnow has joined the channel [16:52] deedubs: lxsameer: you won't be able to bind to the lower ports though [16:52] salva has joined the channel [16:52] herbySk has joined the channel [16:52] tjfontaine: there are ways around that [16:52] deedubs: you'll need something like HAproxy, bouncy, or nginx to proxy [16:52] tjfontaine: not necessarily [16:52] lxsameer: deedubs: i see, i found the damn problem [16:53] eb4890 has joined the channel [16:54] tjfontaine: http://packages.debian.org/squeeze/authbind for example [16:54] nibblebot has joined the channel [16:57] adambeynon has joined the channel [16:57] maushu has joined the channel [16:58] aslant has joined the channel [17:01] ivic has joined the channel [17:01] spolu has joined the channel [17:01] ivic has joined the channel [17:02] jhbot: 'NODE_PATH is being ignored or not working' by JWK http://stackoverflow.com/q/8954840 [17:02] ivic has joined the channel [17:05] lxsameer: i installed some package using npm -g, but when i try to run a script that use those package, node can't find them [17:05] mAritz has joined the channel [17:06] deedubs: lxsameer: which version of node? [17:06] lxsameer: deedubs: 0.6.3 [17:06] deedubs: heh not what I expected [17:07] lxsameer: deedubs: why ? [17:07] deedubs: generally BP NOT to use -g, define your deps in your projects package.json and then just npm i [17:07] versicolor_ has joined the channel [17:07] Swizec_ has joined the channel [17:07] lxsameer: deedubs: i'm not a node fan, is the any article about it around? [17:08] deedubs: about node? [17:09] lxsameer: deedubs: no making npm package [17:09] deedubs: in your project you can just run npm init [17:09] deedubs: a [17:09] GrizzLyCRO has joined the channel [17:09] GrizzLyCRO has left the channel [17:09] deedubs: nd then if you want an easy way to add them just do `npm i --save package1 package2 package3` [17:10] panosru has joined the channel [17:11] lxsameer: deedubs: let me try, can i install non-js file with npm (init.d files)? [17:11] cognominal has joined the channel [17:11] deedubs: no [17:13] lxsameer: deedubs: thanks [17:13] salva has left the channel [17:13] mAritz has joined the channel [17:16] lxsameer: deedubs: how do you install those files (init.d files) then ? [17:16] cognominal_ has joined the channel [17:18] grom358 has joined the channel [17:18] marcello3d has joined the channel [17:19] amicomio has joined the channel [17:19] amicomio has left the channel [17:20] mange has joined the channel [17:22] alejandromg has joined the channel [17:22] mvrilo has joined the channel [17:23] c4milo has joined the channel [17:23] jojohess has joined the channel [17:24] jankeromnes has joined the channel [17:25] kitt has joined the channel [17:25] djMax has joined the channel [17:25] djMax: where are valid fs encodings defined? [17:25] Destos has joined the channel [17:26] arcanin has joined the channel [17:27] mikedeboer has joined the channel [17:27] megalomix has joined the channel [17:27] megalomix: hello everybody [17:28] cognominal_ has joined the channel [17:28] jojohess: anyone know when the nodejs.org site will be back up? and why it's down? [17:29] megalomix: https://gist.github.com/1653361 guys I have a question.... as you can see the 20th line call load() function..... my doubt regarding that If i call load() again "stock" variable change so WHEN i pass stock.DateTime and other properties related to "stock" object...they may change, so how can i change to code? [17:30] Yooman has joined the channel [17:30] igl1 has joined the channel [17:31] chvid has joined the channel [17:32] megalomix: i mean mysql does it asyn so when i pass from check() to save() "stock" variable may change, how to prevent it? [17:33] lxsameer: where does npm install scripts in global mode ? [17:33] carris has joined the channel [17:33] isaacs: lxsameer: npm prefix -g [17:33] isaacs: lxsameer: run that [17:33] lxsameer: isaacs: thansk [17:34] isaacs: npm bin -g <-- will show you where bins are [17:34] megalomix: oh hi isaacs :) [17:34] isaacs: hiya [17:34] salty-horse has joined the channel [17:35] salty-horse: hey. noob here. in a package that depends on "node-statsd", that in turn depends on "mersenne", running "npm install" only installed "node-statsd" -- why is that? it DID print a tree with "node-statsd" and "mersenne" below it [17:36] lxsameer: is there any reference document for package.json [17:36] CrawfordComeaux has joined the channel [17:37] BrianE has joined the channel [17:37] megalomix: isaacs, could you give me an opinion obut this code? https://gist.github.com/1653361 my doubt regards the "stock" variable, because as you can see i'm using mysql module that does the queries async so if a "process" pass from check() to save() may the stock variable changes, so the other process that shuld be use "stock" may have a different stock value [17:37] salty-horse: lxsameer, http://npmjs.org/doc/json.html [17:37] lxsameer: thanks] [17:37] samsonjs has joined the channel [17:38] salty-horse: lxsameer, it's also based on http://wiki.commonjs.org/wiki/Packages/1.0 (as mentioned in the previous link) [17:38] joelmob has joined the channel [17:39] jojohess: isaacs: know why nodejs.org is down? [17:39] pquerna: jojohess: its working for me [17:39] jojohess: hrmmm [17:40] TheJH: jojohess, works for me [17:40] crodas has joined the channel [17:40] TheJH: jojohess, does google.com work for you? :D [17:40] jojohess: yeah, just checked http://www.downforeveryoneorjustme.com/nodejs.org now its just me. earlier it wasnt [17:40] aliem has joined the channel [17:41] megalomix: ? [17:41] warz has joined the channel [17:41] warz has joined the channel [17:42] jojohess: i can ping the site but none of my browsers will open it [17:42] megalomix: iuuu uuu [17:42] megalomix: someone read me? :) [17:42] TheJH: megalomix, you asked only isaacs for his opinion [17:42] megalomix: no.... [17:43] wmage has joined the channel [17:43] megalomix: i wrote it before [17:43] megalomix: and then to isaacs :) [17:43] megalomix: ok i re-type, could somone give me an opinion regarding my code? :) [17:43] megalomix: https://gist.github.com/1653361 [17:43] isaacs: jojohess: yeah, works for me [17:44] TheJH: megalomix, what do you want that stuff to do? [17:44] megalomix: the "problem" is that mysql does the queries asynx so ad as you can se 20th line call load() [17:44] megalomix: ok the question is: [17:44] megalomix: if there is a process that change the "Stock" variable (in the check() function) [17:45] megalomix: then.... if there is another process between check() and save() [17:45] grom358 has joined the channel [17:45] megalomix: the save() function could read a different "stock" variuable (different value) [17:45] rfvizarra has joined the channel [17:45] TheJH: megalomix, no [17:45] megalomix: so, how can i be sure that save() read the correct "stock" value [17:45] megalomix: TheJH, no? [17:45] megalomix: why? [17:46] TheJH: megalomix, well, its value will stay the same [17:46] TheJH: megalomix, it's a local variable in a closure [17:46] TheJH: megalomix, and the only place where you set it is in load() [17:46] Sembiance: Is there a way to download the entire NPM database? All of the package.json's ? I'd like to create a tool that finds all modules that depend upon another. [17:47] salty-horse: if "npm install" doesn't install dependencies of dependencies (or more...), why should I use it instead of "npm update"? [17:47] Sembiance: Actually, come to think of it, if the NPMjs server dies a horrible death, are they doing good backups? :) [17:47] Swizec has joined the channel [17:47] dilvie has joined the channel [17:47] salty-horse: Sembiance, I guess you can write one yourself? [17:47] megalomix: TheJH, yes EXACTLY [17:47] TheJH: Sembiance, yes, you can replicate the whole db [17:48] isaacs: Sembiance: yes, the db is backed up regularly by multiple people. [17:48] TheJH: megalomix, maybe I misunderstood your question? [17:48] megalomix: TheJH, but as you can see 20th line has load() call [17:48] megalomix: may i wrote it wrong.. [17:48] isaacs: Sembiance: but also, you can replicate the db. it's a couch: http://isaacs.couchone.net/registry [17:48] Sembiance: salty-horse, TheJH, isaacs: thanks :) [17:48] TheJH: megalomix, oh, sorry [17:48] megalomix: TheJH, I mean... load() change stock variable......ok but if i have a process between check() and save() when the save() callback will be called may the stock value changed [17:49] megalomix: understand? [17:49] megalomix: no? [17:50] amasad has joined the channel [17:50] megalomix: (Excuse me for my f****g english :) [17:50] megalomix: btw understand? [17:50] iRoj has joined the channel [17:50] booo has joined the channel [17:50] cgfuh has joined the channel [17:51] isaacs: megalomix: why is save() calling load()? [17:51] arcanis has joined the channel [17:51] criswell has joined the channel [17:51] TheJH: megalomix, hmm... your code looks weird to me... [17:51] megalomix: isaacs, because i have to pop() another element from the list [17:51] TheJH: megalomix, but well, I don't know the context [17:51] isaacs: megalomix: won't that result in the cb() being called multiple times? [17:51] isaacs: megalomix: why not just do them all in parallel? [17:52] dgathright has joined the channel [17:52] megalomix: isaacs, how to chane the code to do it in parallel? [17:52] megalomix: TheJH, why weird? [17:52] megalomix: isaacs, cb() is a function that i have to call WHEN i finished the stocks [17:52] TheJH: megalomix, ah, now I understand. I think you really should rename "done" to "maybeDone" or so :D [17:53] RLa: which lib/module is should use for string interpolation? [17:53] isaacs: megalomix: var cnt = stocks.length, errState = null ; if (cnt === 0) return cb(); stocks.forEach(function (stock) { processOneStock(stock, done) }); function done (er) { if (errState) return; if (er) return cb(errState = er); cnt --; if (cnt === 0) return cb() } } [17:53] RLa: string templates* [17:53] TheJH: RLa, coffeescript :D [17:53] megalomix: isaacs, as you can see WHEN there are not other stocks i do: if (count == 0) return cb() [17:53] isaacs: megalomix: then write "processOneStock" which just takes a single item [17:53] mvrilo has joined the channel [17:53] isaacs: megalomix: or use async or slide or something. [17:53] TheJH: RLa, or even better, coco [17:53] TheJH: !coco compile "Hello #name!" [17:53] jhbot: "Hello " + name + "!"; [17:53] megalomix: i see [17:53] isaacs: megalomix: separate all concerns! [17:54] shanebo has joined the channel [17:54] torsd has joined the channel [17:54] RLa: TheJH, still sticking with old javascript [17:55] isaacs: RLa++ [17:55] isaacs: keep it real, man. [17:55] sh1mmer has joined the channel [17:55] megalomix: hmm ok [17:55] megalomix: i wrote a very bad code [17:55] TheJH: isaacs, RLa, coco is cool :( [17:56] RLa: hm, i found util.format does exactly what i need [17:56] megalomix: isaacs, the forEach is async ? [17:56] megalomix: is the froEach async ? [17:58] jojohess: what does woot.com and nodejs.org have in common? i cant access either through my web browsers. google, yahoo, facebook, twitter, dailyjs and tons of other sites are working fine, but those two wont load at all. I can at least ping nodejs.org... any ideas? [17:59] tjfontaine: there's a lot of internet out there between you and it [18:00] igl1: dns shit. i had problems with my isp last year a week or so. random stuff didnt work [18:00] jojohess: i want to blame sopa/pipa as i was having no problems until the blackout on wednesday [18:00] RLa: you can try switch dns server [18:00] jojohess: i've changed dns servers. tried 3 different ones [18:00] RLa: unless your isp blocks custom dns servers [18:01] jojohess: tried googles, my isp and Level3 [18:01] RLa: what if you try to access with curl -v [18:01] jojohess: I think im gonna have to call my isp and complain. [18:01] RLa: or will it just hang in the middle of request [18:03] jojohess: "curl -v http://nodejs.org" hangs for like 30 seconds. Responded with "couldn't connect to host" [18:04] isaacs: megalomix: yes. [18:04] isaacs: array.foreach is synchronous [18:04] isaacs: .. x = 0; [1, 2, 3, 4, 5].forEach(function (n) { x += n }); x [18:04] catb0t: 15 [18:04] megalomix: k [18:04] isaacs: megalomix: it's a JavaScript builtin [18:05] jojohess: sorry. shouldn't be asking general tech questions in here. Think i'll just have to complain to my isp. [18:05] megalomix: ok [18:05] isaacs: jojohess: maybe you could try pointing your dns at google or opendns or something? [18:05] megalomix: isaacs, i can use the forEach but as you can see i have two queries [18:05] isaacs: jojohess: i've had a lot of issues with my isp from time to tim [18:05] megalomix: processOnStock <---- here i can put those two queries? [18:05] isaacs: megalomix: right, but what would you do if you could guaratnee that there's only *one* item in the array? [18:05] isaacs: megalomix: write *that* function. [18:05] jojohess: isaacs: i did. tried google public dns already, gonna try opendns now [18:05] jxie has joined the channel [18:05] maletor has joined the channel [18:05] isaacs: megalomix: then loop through the array calling it for each one. [18:06] isaacs: megalomix: separate! [18:06] megalomix: ok i write [18:06] megalomix: i will show you [18:06] megalomix: :) [18:06] megalomix: thank you teacher :D [18:06] isaacs: :D [18:06] isaacs: np [18:06] megalomix: or wrong....thank you professor :D [18:06] ryan_stevens has joined the channel [18:10] pity has joined the channel [18:11] JojoBoss has joined the channel [18:11] megalomix: isaacs, [18:11] megalomix: https://gist.github.com/1653464 [18:11] megalomix: what do you think? :) [18:13] megalomix: isaacs, i don't like the 10th line [18:13] megalomix: function(){ [18:13] megalomix: maybe do i have to write another function ? [18:13] sebash_ has joined the channel [18:14] JojoBoss: anyone know where I can download the node docs not at nodejs.org? I'd like the all.html file. [18:14] `3rdEden has joined the channel [18:14] isaacs: megalomix: if (err) return cb() [18:14] isaacs: megalomix: why are you swallowing the error there? [18:15] reid has joined the channel [18:15] spleeze has joined the channel [18:15] megalomix: isaacs, if i get an error it is not important, i have to continue [18:15] isaacs: megalomix: should add a comment, then [18:15] megalomix: (yes, correct) [18:16] mansoor has joined the channel [18:17] megalomix: isaacs, maybe i can remove it ad change: if (rows && rows.length > 0) { QUERY HERE} else cb() [18:17] megalomix: right? [18:17] alejandromg has joined the channel [18:17] megalomix: isaacs, how can i use separate functions for those two queries? [18:18] isaacs: megalomix: just write the "process one stock" function, as a separate standalone thing. [18:18] isaacs: that's what i'd do. [18:18] megalomix: to avoid adding , function(){....} at the end of mysql.query function [18:18] arcanis has joined the channel [18:18] megalomix: yes but i have to pass to this function the cb() callback [18:18] isaacs: Download.prototype.insertOne = function(stock, exchange, cb){ [18:19] isaacs: stocks.forEach(function (stock) { self.insertOne(stock, exchange, then) }); function then (er) { handle error, count down, call cb } [18:19] TimTim has joined the channel [18:19] isaacs: ie, that^ is then what insert() is [18:19] isaacs: insert(stocks, exchange, cb) [18:20] isaacs: megalomix: write two top-level functions [18:20] megalomix: ah ok [18:20] megalomix: perfect [18:20] megalomix: yes but the questions is that there is not only ONE query [18:20] bshumate has joined the channel [18:20] bshumate has joined the channel [18:20] megalomix: i have to do two queries [18:21] megalomix: i can't use insertOne function [18:21] megalomix: becauyse i have to check if the stock exists first [18:21] isaacs: ok [18:21] isaacs: but you have to do that once for each stock, right? [18:21] dgathright has joined the channel [18:21] isaacs: so process *one* stock (two queries, one query, whatever) [18:21] grom358 has joined the channel [18:21] isaacs: write *that* function. [18:21] orlandovftw has joined the channel [18:21] isaacs: then apply that function to each stock in the list. [18:21] isaacs: separate and simplify. [18:22] megalomix: ok [18:22] megalomix: yes i started with more complexc code [18:22] megalomix: ahahahah [18:22] megalomix: :) [18:23] slaskis has joined the channel [18:24] theBrettman has joined the channel [18:25] skm has joined the channel [18:26] jergason has joined the channel [18:27] jiboumans has joined the channel [18:30] ritch has joined the channel [18:30] nmtmason has joined the channel [18:31] context: so... im in a bit of a pickle [18:31] context: install Xcode then i cant install new versions of ruby. Use the gcc-installer and node doesn't install. [18:33] superlou has joined the channel [18:35] superlou: So, this isn't the perfect place to ask, but I've been trying switch my client-side app to use requirejs as a matter of course, when I started coming across various comments suggesting AMD support is being pulled from libraries (backbone.js, underscore.js, for example). Because of that, either AMD compliant forks exist, but for less popular libraries that don't support AMD, there's only Shim. I was wondering if someone else has exper [18:35] superlou: ience using RequireJS and if it's important to learn for someone learning backbonejs on nodejs, or if it's not a great use of time? [18:35] devaholic has joined the channel [18:36] spleeze has joined the channel [18:36] patcito has joined the channel [18:38] apoc has joined the channel [18:40] lwille has joined the channel [18:40] tbranyen: superlou: join the #requirejs channel... don't discuss this in a #node.js channel :) [18:42] superlou: tbranyen, ah. Has looked in require.js and found no one. My bad [18:42] superlou: Sorry [18:43] jetienne has joined the channel [18:43] insin has joined the channel [18:45] grom358 has joined the channel [18:45] jldbasa has joined the channel [18:48] cognominal has joined the channel [18:48] jhbot: 'How to pass a function as callback?' by Dail http://stackoverflow.com/q/8955651 (tags: javascript) [18:48] mansoor has joined the channel [18:50] cognominal has joined the channel [18:50] cjm has joined the channel [18:50] ircdearia has joined the channel [18:51] devongovett has joined the channel [18:51] arcanis has joined the channel [18:52] joshsmith has joined the channel [18:52] cognominal has joined the channel [18:53] disappearedng has joined the channel [18:54] chjj has joined the channel [18:58] FIQ has joined the channel [18:59] isufy has joined the channel [19:00] davetayls has joined the channel [19:02] samsonjs has joined the channel [19:02] mikeal has joined the channel [19:04] grom358 has joined the channel [19:04] raincole_ has joined the channel [19:04] Vennril has joined the channel [19:06] brianseeders has joined the channel [19:06] iFire has joined the channel [19:08] AndreasMadsen has joined the channel [19:08] joshsmith has joined the channel [19:09] LeMike has joined the channel [19:11] isaacs has joined the channel [19:12] isaacs: salty-horse: `npm install` should install deps-of-deps [19:12] isaacs: salty-horse: if it doesn't, then that's a bug [19:12] martin_sunset has joined the channel [19:12] isaacs: (a serious one that i strongly doubt could possibly have been missed all this time) [19:14] skm has joined the channel [19:14] alejandromg has joined the channel [19:15] kmiyashiro has joined the channel [19:16] attilagyorffy has joined the channel [19:16] savadi has joined the channel [19:16] salty-horse: isaacs, I was reading https://github.com/isaacs/npm/issues/1336 -- the problem I had is that "node install" failed when one of the dependencies needed a binary library I didn't have. after installing it and re-runnnig "node install" it resumed the installation, but did not fetch the dependencies (I assume it install dependences in breadth-search or something) [19:17] ryan_stevens has left the channel [19:17] sh1mmer has joined the channel [19:17] jhbot: 'mongoose. updating embedded document in array' by Erik http://stackoverflow.com/q/8955910 (tags: mongoose) [19:18] devaholic has joined the channel [19:19] berak has joined the channel [19:19] attilagyorffy: hi people [19:20] attilagyorffy: after a lot of googling i thought i might turn to the IRC community to ask my question that i am hoping to get a relatively quick response for. [19:20] attilagyorffy: what is generally the "conventional" deploying method for node web apps? [19:21] attilagyorffy: i've been looking into nginx proxies but given that nginx does not support HTTP1.1 yet, web sockets might not be working that way [19:22] c4milo has joined the channel [19:22] randomLurker has joined the channel [19:22] berak: hi, most browsers want a favicon, so what should i do to serve it ? load it from file on startup & cache it ? paste the base64 version into my code ? use connect ? [19:23] alejandromg: with connect you can use connect.favicon('yourfavicon.ico') [19:24] stagas has joined the channel [19:24] Lingerance: If you use nginx as a proxy have it serve the favicon, if you use node.js without one wait for another suggestion. [19:25] alejandromg: more: http://www.senchalabs.org/connect/middleware-favicon.html [19:25] berak: alejandromg, ty [19:25] CrypticSwarm has joined the channel [19:25] mange has joined the channel [19:26] alejandromg: berak: np [19:26] maletor has joined the channel [19:26] postwait has joined the channel [19:27] randomLurker: I'm not sure if this is the best place to ask, or if there's a definitive answer, but what do you guys think is a reasonable hourly rate for freelance work related to web development with node.js? [19:28] zomg: It depends on your experience and the amount of responsibility I guess [19:28] RLa: probably depends on risks what you take when entering into the contract [19:28] zomg: And on where you live as well [19:29] insin: one meelion dollars *pinky* [19:29] ivic has joined the channel [19:29] randomLurker: haha [19:29] RLa: and also competition (which should be low since there are no masses of node js programmers (yet)) [19:29] randomLurker: hmm.. When you guys calculate taking that factors in account, do you usually have some sort of formula/methodology? [19:29] randomLurker: or its more of a guessing thing? [19:30] systemfault: Why would a client want node.js? [19:30] systemfault: (Most of my clients are not technical at all) [19:30] randomLurker: it's a local startup, and they're already using Node.JS [19:31] randomLurker: they need some extra code done, and asked me to give them an estimate [19:31] systemfault: I'd love to work for a company like that :/ [19:31] langworthy has joined the channel [19:32] RLa: if possible, bill by hours, not fixed amount [19:32] cognominal_ has joined the channel [19:32] randomLurker: systemfault: you're right, it's hard to find companies like that. most local companies are stuck either with JSP or PHP [19:32] RLa: tho it has been said that fixed amount gives higher income and better client satisfaction [19:32] systemfault: randomLurker: So true :) [19:32] nodebiscut has joined the channel [19:32] zomg: randomLurker: is this in us or somewhere else? [19:32] zomg: in US you can generally charge much more =) [19:33] randomLurker: Brazil. That makes it much harder, right? [19:33] randomLurker: the tipical rate is probably lower [19:33] zomg: Hm, I wonder if I knew a dev who lived in brazil... [19:33] systemfault: Well.. they probably won't pay you 50$USD/hour.. [19:33] hipsters_ has joined the channel [19:35] zomg: Ah right it was Sorella who's from brazil, he hangs here sometimes but doesn't seem to be here right now [19:35] shesek_ has joined the channel [19:35] randomLurker: zomg: oh. Perhaps he could point me out what he finds reasonable [19:35] zomg: Yeah I asked him, not sure if he's around right now though [19:35] randomLurker: is $50 considered high or normal on the US? [19:36] randomLurker: or low? [19:36] zomg: I might even say that's kinda low if you're experienced, but I'm not in the US so I may be a bit off =) [19:36] madhums has joined the channel [19:36] Lingerance: That's 5-6 hours at McDonalds, or 1-3 hours for an experienced person. [19:37] tobmaster has joined the channel [19:37] systemfault: In canada, 50 is fairly high [19:37] systemfault: (At least in quebec) [19:37] randomLurker: oh. [19:37] systemfault: The best would be to ask someone who lives in brazil. [19:37] randomLurker: I've heard that Objective-C folks charge (or used to charge, at least) $100 on average [19:37] Lingerance: 15-25$/h is what you can probably expect for entry-level professional job. [19:37] randomLurker: on the US [19:38] randomLurker: I should learn ObjC, haha [19:38] systemfault: ObjC sucks :/ [19:39] systemfault: Too bad we're forced to use it for mac applications :( [19:39] randomLurker: systemfault: I've checked the syntax of it on Wikipedia [19:39] randomLurker: it's pretty weird [19:39] systemfault: I think Apple should have gone the "MS"(.net) way [19:39] systemfault: Perhaps java might have been a worthy candidate.. or their own language.. [19:40] ppcano has joined the channel [19:40] RLa: i think now you can even use mono on ios [19:40] RLa: java, never, because of oracle [19:40] systemfault: Really? Didn't know [19:40] patcito has joined the channel [19:40] RLa: systemfault, i think it changed some time ago [19:41] RLa: now they allow other languages, except you must bundle whole stuff with the app [19:41] systemfault: I think it's fair [19:41] randomLurker: You can use mono on iOS. I have a friend who's working on a game using Unity [19:41] RLa: and it must use ios's own webkit [19:41] randomLurker: but it can't use JIT-compilation [19:41] systemfault: Ah :/ So.. a lot slower [19:41] randomLurker: nope, they came up with a AOT compiler [19:42] randomLurker: so it's as fast as c++ [19:42] randomLurker: at least in theory [19:42] systemfault: Yeah.. [19:42] willwhite has joined the channel [19:42] systemfault: People have been saying that kind of things for decades.. [19:42] randomLurker: "as fast as C++"? [19:42] systemfault: "Java can be faster than X.." X being C or C++ [19:42] emattias has joined the channel [19:43] systemfault: 10 years later..... not even close. [19:43] emattias has left the channel [19:43] zomg: I used to work with this guy who was pretty familiar with how the JVM worked [19:43] zomg: He was actually able to list a bunch of things where Java is faster than C++ [19:44] systemfault: Unfortunately.. it's the "overall" that counts. [19:44] zomg: Yeah [19:44] zomg: Java does pretty heavy optimization according to the guy though, it may run slower at first but it will get faster [19:44] grom358 has joined the channel [19:44] systemfault: The wonders of JIT compilation. [19:44] zomg: Although in my experience it does the complete opposite at least if your computer doesn't have a crapton of RAM :D [19:45] randomLurker: I've heard that eventually JIT might be faster than static compilation [19:45] systemfault: The only java application I had bad experiences with is eclipse. [19:45] randomLurker: because it can analyse the common execution paths and optimize for those [19:45] adambeynon has joined the channel [19:45] randomLurker: systemfault: The only java application I had a good experience with was Minecraft haha [19:45] systemfault: :D [19:46] zomg: The thing is though that you only remember the bad ones [19:46] zomg: I'm sure I've used lots of Java apps but I can't name any of them except the ones which were bad [19:46] zomg: :P [19:46] zomg: I'm also sure I've used more bad C or C++ based apps than bad Java apps [19:46] benvie: java certainly has the most ability I've seen to blow up my computer [19:46] benvie: and eat gigs of ram [19:46] dreamdust has joined the channel [19:47] zomg: I stopped caring about that when I got 12 gigs of it [19:47] zomg: :D [19:47] zomg: Probably going to double it again when I upgrade my computer since it's so cheap now [19:47] jskulski has joined the channel [19:47] benvie: I have 12 but when intellij is using 2-3 of them I get kind of annoyed [19:47] thriple has joined the channel [19:47] benvie: which is why I don't use it [19:48] randomLurker: woah, I have 4GB and I don't think I've come even close of filling all of it [19:48] chvid has joined the channel [19:48] randomLurker: I must not be hardcore enough [19:48] benvie: though I had to for one project [19:48] zomg: randomLurker: I run a few browsers and oops 4 gigs used :P [19:48] zomg: tbh you won't really notice it being used that much as it actually is being used [19:48] benvie: yeah I couldn't imagine, it seems to so easy to use it up [19:48] zomg: since it will be paged [19:49] zomg: and paging ram to disk is sloooow [19:49] benvie: it's a bigger issue if your trying to compile something like webkit/chrome [19:49] randomLurker: oh. you mean since it will compile files in parallel? [19:50] benvie: yeah like it'll be using all the cores on the pc [19:50] benvie: and a lot of ram as well [19:50] benvie: like 6-8 gigs [19:50] Bogh has joined the channel [19:51] benvie: and still take a half hour [19:51] frenod has joined the channel [19:51] Qbix1 has joined the channel [19:51] aaronmcadam has joined the channel [19:53] tornad has joined the channel [19:54] frenod: Is it possible to create a server that combines TCP connection and WebSockets? [19:57] fr0stbyte has joined the channel [19:57] dnyy has joined the channel [19:58] CarterL has joined the channel [19:59] niclone has joined the channel [19:59] uberbrady has joined the channel [20:00] context: frenod: a websocket IS a tcp connection [20:02] grom358 has joined the channel [20:03] mikeal has joined the channel [20:03] cognominal_ has joined the channel [20:05] bradleymeck has joined the channel [20:06] bradleyg has joined the channel [20:07] japaniel has joined the channel [20:07] drk has joined the channel [20:07] bmeck_vacation: anyone ever seen this error when using a setTimeout in 0.6.7? https://gist.github.com/1653777 [20:08] bmeck_vacation: im throwing inside the timeout with new Error('herp') [20:08] spolu has joined the channel [20:09] context: whats the problem .. ? [20:09] kyle___ has joined the channel [20:10] Destos has joined the channel [20:11] solidfusion has joined the channel [20:11] Cromulent has joined the channel [20:12] kyle___: how can i use one codebase to host multiple sites? each will have its own domain name, not sure if i can get a new ip for each [20:12] chakrit: kyle___, you mean one instance of `node yourcode.js` running? [20:13] bmeck_vacation: context, im unsure why it is throwing something related to lookupGetter, it should say something like 'herp' without the lookup getter bits [20:13] bmeck_vacation: kyle___ look into the 'host' header for http [20:14] kyle___: i don't know the best way. i read somewhere i may need multiple node instances running on different ports. i just want www.site1.com and www.site2.com to use mycode.js (same code) but each pull different data out of a database to make the content different [20:14] blueadept has joined the channel [20:14] blueadept has joined the channel [20:14] mmalecki: bmeck_vacation: get back to your vacation XD [20:14] mmalecki: bmeck_vacation: also, enjoy it! :) [20:14] chakrit: bmeck_vacation, maybe node's trying to find something that's not there on the Error object itself? [20:15] bmeck_vacation: mmalecki, my vacation is time for side projects [20:15] lzskiss has joined the channel [20:15] mmalecki: bmeck_vacation: I'd say you're an addict, but that's the same thing I do, sooo [20:16] bmeck_vacation: i wont argue that. but ive run out of trashy urban fantasy books, and i dont play too many video games anymore, so im coding [20:17] context: i leave my computer at home when i go on vacation [20:17] rauchg has joined the channel [20:18] kyle___: i should be able to use the host header and not need multiple IPs, correct? is it when ssl enters the mix where i need multiple IPs? i know at work we usually need a new ip for a new host name on the same server if it has ssl [20:19] ruizander has joined the channel [20:20] bmeck_vacation: kyle___ if you use SNI (supported from XP SP3 and newer things) you can do SSL on one IP [20:20] bmeck_vacation: but correct [20:20] ruizander has left the channel [20:21] grom358 has joined the channel [20:22] johnmdonahue has joined the channel [20:22] context: frenod: so do it? id use two different ports anyway. irc clients arent gonna try and connect to 80 and web browsers you shouldn't be having connect to 6667 [20:22] context: frenod: there is an ircd project in node already, but i dont remember its name [20:22] context: Karaka or some crap [20:23] context: nm haraka is hte smtp server [20:23] frenod: thanks context [20:23] context: https://github.com/alexyoung/ircd.js [20:23] context: the google. use it. [20:24] pizthewiz has joined the channel [20:27] mange has joined the channel [20:29] Nanotron has joined the channel [20:29] draginx has joined the channel [20:30] quijote has joined the channel [20:31] Kunda has joined the channel [20:32] ggrocco has joined the channel [20:33] Nanotron: hello! [20:33] Nanotron: I'm new to the node.js stuff and so i have some questions [20:33] Nanotron: What is the idea behinde NPM? [20:33] draginx: Nanotron: do u know ruby? [20:34] Nanotron: a little bit? [20:34] draginx: ar eu familiar with gem? [20:34] Nanotron: and I know that NPM is a package manager [20:34] Nanotron: bt for what? [20:34] draginx: ... [20:34] draginx: for various scripts :) [20:34] draginx: NPM = gem in a nutshell [20:35] chakrit: nanotron, http://wiki.commonjs.org/wiki/Packages/1.0 [20:35] satyr has joined the channel [20:35] Nanotron: is it similar to APT? [20:36] Nanotron: thank' you for the link chakrit [20:36] nmtmason has joined the channel [20:39] Nanotron: hmm, and when there is no DOM or something like that in node. Is it possible to edit config files via javascript ? [20:39] blueadept has joined the channel [20:39] blueadept has joined the channel [20:39] Nanotron: I ask, because I plan to build a little admin page for setting up a Web-Server or something like that. [20:40] brmouzone has joined the channel [20:41] bmeck_vacation: Nanotron i would look into flatiron or express if you want a framework, Node itself does very little which allows for very modular packages [20:42] grom358 has joined the channel [20:44] jetienne has joined the channel [20:44] Wa has joined the channel [20:46] qsobad has joined the channel [20:47] LeMike has joined the channel [20:47] isaacs has joined the channel [20:47] mehlah has joined the channel [20:48] isaacs: draginx: finding a gem in a nutshell might be really harmful if you weren't expecting it. [20:48] isaacs: draginx: you could chip a tooth on what you thought would be a nut. [20:49] cjk1969 has joined the channel [20:50] robb1e_ has joined the channel [20:51] draginx: O_o [20:51] HardBit has joined the channel [20:51] HardBit: Hi people! [20:52] TheJH: isaacs, just wondering... what's the status of the new npm site? [20:53] isaacs: TheJH: planning and prototyping [20:53] stisti has joined the channel [20:53] TheJH: isaacs, any links to gh issues/ml posts/... where I can see some of that planning? [20:54] mmalecki: TheJH: ssh'ing into isaacs' brain would help [20:54] TheJH: mmalecki, :D [20:55] TheJH: isaacs, make an empty repo where we can spam the issues page with suggestions :D [20:55] TheJH: isaacs, what is the basic techinical design going to be? Will it still be a couchapp? A node application with couch in the background? Generated static pages? [20:59] Wizek has joined the channel [20:59] jtsnow has joined the channel [21:00] draginx: would it be ok to install courier-authlib and then use authtest for checking aganinst machine usernames/passwords in nodejs? [21:02] stagas has joined the channel [21:02] isaacs: TheJH: a node application with generated static pages and couch in teh background [21:02] Nanotron has left the channel [21:03] isaacs: TheJH: bits of it may be just static pages over nginx [21:03] TheJH: isaacs, but also requests that node answers dynamically? [21:03] isaacs: TheJH: yes [21:04] isaacs: i want to have some interactive features. login, star, unstar, see who's starred what, who wrote what, etc. [21:04] ggrocco has left the channel [21:04] isaacs: something like what the current search.npmjs.org does, but not crappy. [21:04] TooTallNate has joined the channel [21:04] TheJH: isaacs, is there some kind of "planned featues list"? [21:04] piscisaureus_ has joined the channel [21:04] isaacs: TheJH: yeah, but i'm still working on it [21:04] grom358 has joined the channel [21:05] TheJH: isaacs, how are you going to generate the static pages? with templates? :) [21:05] mightym has joined the channel [21:05] TheJH: ACTION obviously wants his templates module to be used [21:06] mightym: hey guys I'm new to node and wonder if someone knows a tutorial using express sessions + cookies? [21:06] shanebo has joined the channel [21:07] chazandchaz has joined the channel [21:08] cognominal_ has joined the channel [21:08] _dc has joined the channel [21:09] djbell has joined the channel [21:12] Aria has joined the channel [21:13] aesptux has joined the channel [21:15] joelmob: im trying to run the express examples from the repo, i have done npm install -d from the repo and trying to run but i get this http://pastebin.com/3tNWNB1N [21:16] cjk1969: mightym: Have you tried Stackoverflow yet... lot's of answers, like http://stackoverflow.com/questions/8842389/nodejs-express-session-management-cookie-to-be-session-cookie [21:17] salty_horse has joined the channel [21:17] isaacs: joelmob: can i ask you a question? [21:17] isaacs: joelmob: why do you install with the "-d" flag? what do you think that does? [21:17] tomgallacher has joined the channel [21:17] joelmob: isaacs, install module dependencies [21:18] joelmob: ? [21:18] r04r has joined the channel [21:18] kenperkins: heat out means play tf2 all day right? heat up the house with the GPU :D [21:18] isaacs: joelmob: the -d isn't necessary, though, for that. -d is debug. [21:18] cjk1969: mightym: How about this one: http://dailyjs.com/2011/01/10/node-tutorial-9/ (scroll down to 'Express Cookie Tips') [21:18] isaacs: joelmob: `npm install` installs module deps [21:18] TheJH: isaacs, in tap, can I say that I want to increase what I told "plan"? E.g. "oh, this test worked, I want to do another one that checks stuff more in-depth"? [21:18] isaacs: joelmob: does pip or gems need a -d flag? [21:18] kmiyashiro has joined the channel [21:18] isaacs: TheJH: you should probably just not use a plan then. [21:18] joshsmith: has anyone in here used Jade to generate