[00:00] piscisaureus_ has joined the channel
[00:00] LukeNukem: i will try out ape server and come back :)
[00:00] Poetro: LukeNukem: and ofc both can access MySQL
[00:01] WarheadsSE: -.-
[00:01] criswell has joined the channel
[00:02] maxownz has joined the channel
[00:02] Poetro has joined the channel
[00:02] Poetro has joined the channel
[00:03] TheAlphaNerd: automata: is there another way to send udp messages with node.js?
[00:04] achiu has joined the channel
[00:04] WarheadsSE: what are you using udp for?
[00:04] disappearedng has joined the channel
[00:05] TheAlphaNerd: I want to use node.js + socket.io to create a very simple UI
[00:05] TheAlphaNerd: buttons / knobs / sliders
[00:05] TheAlphaNerd: and I want those ui elements to send osc messages to max/msp
[00:05] TheAlphaNerd: or pure/data
[00:05] WarheadsSE: so backbone + express + socket.io + udp
[00:06] WarheadsSE: button makes a socket.io emit, server app translates that into udp command, and sends it off
[00:06] WarheadsSE: (we do something rather similar in our builder web-ui)
[00:07] gozala has joined the channel
[00:07] TheAlphaNerd: what is backbone doing in that setup?
[00:07] WarheadsSE: backbone.js ?
[00:08] WarheadsSE: handles the browser side
[00:08] ByteCrunch has joined the channel
[00:08] WarheadsSE: you'd have to hunt down mrsteveman1
[00:09] WarheadsSE: hes the one doing the browser side code
[00:11] bindr has joined the channel
[00:12] nicholas_ has joined the channel
[00:13] ctp6360 has joined the channel
[00:14] cody-- has joined the channel
[00:15] automata has joined the channel
[00:16] Bonuspunkt: yay doing bad practice https://gist.github.com/2142881 :D
[00:17] TheAlphaNerd: WarheadsSE: is backbone used in lieux of a database software?
[00:17] Bonuspunkt: btw npm link does makes now a call with a path where one time '../' is too many :/
[00:17] Bonuspunkt: and i hope its not my fault ^^
[00:18] mehlah has joined the channel
[00:20] Axsuul has joined the channel
[00:20] WarheadsSE: TheAlphaNerd: backbone just hooks into our socket.io & presents
[00:21] WarheadsSE: our socket.io passes JSON back and forth to the server.js
[00:22] jaha: any idea what might have happened to my node canvas install, when return the commonjs object I get "{ test: [Function] }"
[00:22] dre has joined the channel
[00:22] myndzi: is there a way to bind the local ip on an outgoing connection request yet?
[00:23] plato has joined the channel
[00:23] plato has joined the channel
[00:23] alejandromg has joined the channel
[00:24] bartt has joined the channel
[00:24] mattgifford has joined the channel
[00:27] josh-k has joined the channel
[00:27] TheAlphaNerd: WarheadsSE: I'm getting in way over my head and LOVING IT :D
[00:27] TheAlphaNerd: hehe
[00:27] ctp6360 has joined the channel
[00:27] serby has joined the channel
[00:28] TheAlphaNerd: so let me see if I am getting this
[00:28] TheAlphaNerd: express is for quickly building the framework of your site
[00:28] TheAlphaNerd: socket.io is for making sockets
[00:28] forzan has joined the channel
[00:28] WarheadsSE: .. yeah .. ""sockets""
[00:28] TheAlphaNerd: backbone is an api that runs on top of socket
[00:28] TheAlphaNerd: ACTION doesn't know wtf he's talking aboot
[00:28] WarheadsSE: socket.io will handle xhr/websockets/etc to fit the browsers capabilities.
[00:29] WarheadsSE: !g backbone.js
[00:29] WarheadsSE: :p
[00:29] TheAlphaNerd: !g ?
[00:29] WarheadsSE: google it
[00:29] TheAlphaNerd: I am
[00:29] WarheadsSE: (our bot has that command)
[00:29] TheAlphaNerd: ahhhh
[00:29] TheAlphaNerd: now that makes sense
[00:29] TheAlphaNerd: I'm goign through the backbone.js documentation right no
[00:30] WarheadsSE: TooTallNate: so far so good now that i turned on swap.. even tucked into a PKGBUILD :)
[00:31] automata: TheAlphaNerd, node-osc does exactly that
[00:31] TheAlphaNerd: automata: I know… but it no worky :P
[00:31] automata: neither node-osc?
[00:31] TheAlphaNerd: nope
[00:32] TooTallNate: WarheadsSE: sound good man :)
[00:32] TheAlphaNerd: I paste bin'd you the error
[00:32] TheAlphaNerd: one sec
[00:32] automata: ok, we really have to fix that
[00:32] TheAlphaNerd: http://pastebin.com/bexUk45X
[00:32] TooTallNate: now i gotta figure out why it failed on my iPhone the other night :\
[00:34] WarheadsSE: heh, mrsteveman1 built it for his iphone app..
[00:34] WarheadsSE: just the other day no less.
[00:35] WarheadsSE: pinged him in our internal chat for you
[00:35] pendlepa1ts has joined the channel
[00:35] willwhite has joined the channel
[00:36] jaha: why would this work on OSX and not Ubuntu: var Canvas = require('canvas')
[00:36] jaha: somehow the reference got messed up
[00:36] mansoor has joined the channel
[00:37] localhost has joined the channel
[00:37] jaha: im installing locally to node_modules
[00:37] jtsnow has joined the channel
[00:37] gkatsev: are you sure it's installed correctly in node_modules?
[00:38] gkatsev: btw, any word on something like virtual-env for node?
[00:38] retornam has joined the channel
[00:38] jaha: how can I verify that? i ran npm install canvas in the root
[00:38] chapel: is it in node_modules?
[00:39] jaha: yes
[00:39] foofoo has joined the channel
[00:39] gkatsev: jaha: `npm list` is it there in the directory where you run that script with require('canvas')?
[00:40] foofoo: I'm trying to say body onclick='foo()' in layout.jade; anybody know what the right syntax is?
[00:40] jaha: tyes
[00:41] gkatsev: but it still doesn't work?
[00:41] gkatsev: hm...
[00:41] jaha: exactly :/
[00:41] jaha: works on OSX
[00:41] syntaxiko has joined the channel
[00:41] gkatsev: where's isaacs when you need him?
[00:41] jaha: not on ubuntu
[00:41] pradeepbv has joined the channel
[00:41] deoxxa: riding a fixed gear bike
[00:41] deoxxa: clearly
[00:41] jaha: and i checked the dependencies a sbest I could
[00:41] gkatsev: jaha: does it give you any errors? or just say module not available
[00:41] gkatsev: deoxxa: haha
[00:43] akkartik_ has joined the channel
[00:43] jaha: gkatsev: oddly enough, no, it just gives me a 500 error through the route
[00:44] gkatsev: then, I don't think canvas is the problem.
[00:44] akkartik_: anybody know the syntax for inline javascript handlers? Like body onclick='foo()', etc.?
[00:44] jaha: i didnt think so either until i narrwed it down to that line
[00:44] agnat_ has joined the channel
[00:45] gkatsev: jaha: that line is what throws the error?
[00:45] asdf__ has joined the channel
[00:46] Es0teric: i guess i'll make a twitter app… to test node's realtime capabilities and to get used to node
[00:46] Es0teric: lol
[00:46] gkatsev: Es0teric: I think it's supposed to be a chat app. the canonical next step past the hello world on the site. lol
[00:46] CIA-19: node: 03Johannes Wüller 07master * r7817f48 10/ tools/installer.js : fixed booleans being treated as strings, resulting in missing node-waf and npm - http://git.io/L32Qxw
[00:46] gkatsev: or an irc client
[00:46] gkatsev: /bot
[00:47] Es0teric: lol gkatsev
[00:47] diogogmt has joined the channel
[00:47] Es0teric: well i want to use twitters streaming api
[00:47] willwhite has joined the channel
[00:47] francisl has joined the channel
[00:47] gkatsev: yeah, I see no problem with it, lol
[00:47] Es0teric: the problem is
[00:47] Es0teric: idk how to get oauth working
[00:47] Es0teric: on node
[00:47] gkatsev: just use everyauth
[00:48] gkatsev: or w/e the module is called
[00:48] Druid_ has joined the channel
[00:48] gkatsev: unless you want to do it yourself, that is
[00:49] Es0teric: everyauth huh?
[00:49] gkatsev: yeah, it works will all auth apis just about
[00:49] jaha: gkatsev: ok, progress, i moved it outside the route…not sure why i didnt try that before, now it throws "Cannot find module '../build/default/canvas'"
[00:49] gkatsev: hm...
[00:51] TheAlphaNerd: WarheadsSE: got it working!!!
[00:51] WarheadsSE: :)
[00:52] jaha: gkatsev: if i require('./canvas') it returns "{ test: [Function] }"
[00:52] gkatsev: do you have a file called canvas?
[00:52] ziro` has joined the channel
[00:53] jaha: no, i believe its supposed to do that (comonjs thing?) just wanted to let you know,
[00:53] gkatsev: ok
[00:53] githogori has joined the channel
[00:53] gkatsev: yeah, idk
[00:54] bindr_ has joined the channel
[00:54] jakehow has joined the channel
[00:54] chapel: Es0teric: use node-oauth to interface with twitter
[00:55] Es0teric: oh snap, thanks chapel
[00:55] cameronpriest has joined the channel
[00:55] Es0teric: chapel how doi i use it?
[00:56] cameron_ has joined the channel
[00:56] chapel: there are instructions
[00:56] chapel: its pretty easy :)
[00:56] prettyrobots has joined the channel
[00:57] Es0teric: chapel where are the instructions? because i cant see them in the readme
[00:57] nicholas_ has joined the channel
[00:58] halfhalo has joined the channel
[00:59] saintsalo has joined the channel
[00:59] rick-_ has joined the channel
[01:00] CIA-19: node: 03Erik Lundin 07master * rf2ebf24 10/ test/simple/test-typed-arrays.js : (log message trimmed)
[01:00] CIA-19: node: test: fix simple/test-typed-arrays
[01:00] CIA-19: node: * It incorrectly uses assert(a, b) instead of assert.equal(a, b), meaning all
[01:00] CIA-19: node: relevant assertions will pass regardless of whether they're supposed to when
[01:00] CIA-19: node: a == true.
[01:00] CIA-19: node: * It makes the assumption that elements in typed arrays for numerical types
[01:00] CIA-19: node: spanning more than one byte, like Uint32Array, are stored little-endian first
[01:00] CIA-19: node: 03Erik Lundin 07master * r4b1d492 10/ (2 files):
[01:00] CIA-19: node: test: merge typed arrays tests
[01:00] CIA-19: node: Merge simple/test-typed-arrays-typenames into simple/test-typed-arrays. - http://git.io/vgTg6A
[01:00] Es0teric: chapel
[01:01] sammmy: How do I register a module to npm?
[01:03] EhevuTov has joined the channel
[01:03] chapel: https://github.com/ciaranj/node-oauth/wiki/Interacting-with-Twitter
[01:03] chapel: there is also this https://github.com/AvianFlu/ntwitter
[01:04] soapyillusions has joined the channel
[01:04] Axsuul has joined the channel
[01:04] infynyxx has joined the channel
[01:06] sammmy: I have a simple module I want to be in npm
[01:08] Paradox2000 has joined the channel
[01:10] cameron_ has joined the channel
[01:10] Bonuspunkt: sammmy npm adduser and then npm publish
[01:11] sammmy: adduser?
[01:11] sammmy: I'd also like to know what is required in my module, what's required in the package.json file etc?
[01:12] MartinCleaver has joined the channel
[01:12] MartinCleaver has joined the channel
[01:12] sh1mmer has joined the channel
[01:12] Bonuspunkt: http://npmjs.org/doc/adduser.html
[01:12] WarheadsSE: time to read the docs..
[01:12] Bonuspunkt: http://npmjs.org/doc/json.html etc etc etc
[01:13] cainus: or just copy/modify someone's existing package.json : https://github.com/visionmedia/express/blob/master/package.json
[01:13] WarheadsSE: ust do it right if you are going to be copying..
[01:13] Bonuspunkt: or use --> http://package.json.nodejitsu.com/
[01:13] TooTallNate: `npm init`
[01:14] TooTallNate: ^ generates a package.json in the current directory
[01:14] CIA-19: libuv: 03Ben Noordhuis 07master * ref47a62 10/ (include/uv-private/uv-unix.h include/uv.h): unix: move libeio specific fields to uv-unix.h - http://git.io/XZQU4w
[01:14] CIA-19: libuv: 03Ben Noordhuis 07master * r4ff0898 10/ (10 files in 2 dirs):
[01:14] CIA-19: libuv: unix: replace uv__close() with close()
[01:14] CIA-19: libuv: uv__close() was deprecated a while ago. It's been an alias for close() ever
[01:14] CIA-19: libuv: since. Remove it. - http://git.io/Mxj6cA
[01:14] CIA-19: libuv: 03Charlie McConnell 07master * r8e59042 10/ src/unix/error.c :
[01:14] CIA-19: libuv: unix: map ENETUNREACH to UV_ENETUNREACH
[01:14] CIA-19: libuv: UV_ENETUNREACH already exists, but was not mapped properly on unix. - http://git.io/RVoKOA
[01:14] Bonuspunkt: npm init gives a good start
[01:14] igl1 has joined the channel
[01:15] thinkt4nk has joined the channel
[01:17] cameron_ has joined the channel
[01:18] sh1mmer has joined the channel
[01:18] patcito has joined the channel
[01:19] massalvaro has joined the channel
[01:19] thinkt4nk has joined the channel
[01:19] kevwil has joined the channel
[01:20] dukeytoo has joined the channel
[01:20] k1ttty has joined the channel
[01:20] Kennedy has joined the channel
[01:21] Es0teric: ok so this is telling me that it cant find the oauth module
[01:21] Es0teric: when i got it through npm install
[01:22] joshfinnie has joined the channel
[01:23] seebees1 has joined the channel
[01:24] Guest74627: Stupid Question: I am on a mac, I have read how to install, but I want to know "where to install"? What directory should I be in when I run git clone? Do you guys have a folder called "tools" are something you put items as such in?
[01:24] saikat has joined the channel
[01:24] jaha: If im checking my npm modules into git, how do I make sure the "build targets" are not checked in, as per: http://www.mikealrogers.com/posts/nodemodules-in-git.html
[01:25] jaha: is it just the build folders?
[01:25] mxbtty has joined the channel
[01:26] seebees1: is there a plan to rewrite http://nodejs.org/docs/latest/api/Document.html to http://nodejs.org/api/child_process.html? Because in a google search the /latest/ link is the one at the top?
[01:26] subbyyy has joined the channel
[01:26] sammmy: Does the up module manage session data for it's graceful reloads?
[01:28] paulcrawford has joined the channel
[01:28] Paradox2000 has joined the channel
[01:29] Es0teric: has anyone had problems with oauth on node?
[01:35] h4mz1d has joined the channel
[01:36] abraxas has joined the channel
[01:39] JSONB has joined the channel
[01:40] WarheadsSE: TooTallNate: bingo.
[01:41] Es0teric: WarheadsSE have you used twit??
[01:41] WarheadsSE: twit?
[01:41] forsto has joined the channel
[01:41] Es0teric: WarheadsSE https://github.com/ttezel/twit
[01:41] WarheadsSE: ah, no, not that package
[01:41] Es0teric: WarheadsSE i can get the stuff to log on the terminal window… but it wont actually display anything on the page
[01:42] Es0teric: i want to use oauth but
[01:42] WarheadsSE: ACTION is not the expert in that part....
[01:42] Es0teric: i cant get it to work
[01:42] thinkt4nk has joined the channel
[01:42] TooTallNate: WarheadsSE: node.js on arm?
[01:42] joaojeronimo has joined the channel
[01:43] elux has joined the channel
[01:43] elux: hey guys
[01:43] sreeix has joined the channel
[01:43] Es0teric: when i use oauth it tells me that the module is not found or something
[01:43] WarheadsSE: v8 3.9.17 w/ gyp on armv5te
[01:43] Es0teric: but i installed the module
[01:43] Es0teric: via npm
[01:44] WarheadsSE: TooTallNate: ^ but yeah, with that, I ought to be able to easily get master to build, but ill still have to hack up 0.7.x & 0.6.x to work with gyp
[01:44] elux: with javascript-heavy frameworks like ember.js that render the DOM with javascript.. is it possible to run this app through node, and persist HTML output for a particular path, so it could be served for browsers with javascript turned off.. ie. a search spider
[01:45] TooTallNate: WarheadsSE: if you're still set on 0.6.x, i would copy over the ./configure file from master branch and run that
[01:46] quackquack: is there a good vim syntax for node.js?
[01:46] boltR has joined the channel
[01:46] TooTallNate: it's a lot better than the ./configure-gyp file
[01:46] WarheadsSE: thats what I was considering..
[01:46] WarheadsSE: but will it work...
[01:47] subbyyy has joined the channel
[01:48] dukeytoo: elux: Yes, I think at least a couple of them do that. I don't know which ones.
[01:48] satyr has joined the channel
[01:48] karterk has joined the channel
[01:49] fomatin has joined the channel
[01:49] elux: dukeytoo: a couple of what tho?
[01:50] WarheadsSE: TooTallNate: I'd have to pull in more than just configure I think
[01:50] cesar_ has joined the channel
[01:50] TooTallNate: WarheadsSE: what else?
[01:50] WarheadsSE: anything it deps
[01:50] WarheadsSE: common.gypi, etc
[01:50] TooTallNate: oh, you'd probably need the updated node.gyp and common.gypi
[01:50] TooTallNate: ya
[01:51] thisisme12 has joined the channel
[01:51] mikeric has joined the channel
[01:52] neoesque has joined the channel
[01:52] dukeytoo: elux: Web frameworks for node.js
[01:52] joaojeronimo: When using cursor.nextObject() in the node-mongodb-native module, how do we know we have a next object ? I remember doing something like while (cursor.hasNext()) { fetch the next object } in php...
[01:53] deoxxa: joaojeronimo: check if it's null, generally
[01:53] deoxxa: there's also .each, though
[01:53] WarheadsSE: TooTallNate: what are the chances of getting gyp changes backported to 0.6.14 ?
[01:53] Es0teric: deoxxa how would i make a form and have it contact the server-side part of node?
[01:54] joaojeronimo: deoxxa: like while (true) { if (cursor.nextObject is null) {stop everything} else { continue } } ?
[01:54] deoxxa: cursor.each(function(err, doc) { if (doc === null) { /* run away */ } });
[01:54] joaojeronimo: deoxxa: won't that be a bit hash in memory with a huge number of documents comming out ?
[01:54] joaojeronimo: *coming
[01:55] joaojeronimo: deoxxa: I wanted to keep piping objects as they come from the cursor...
[01:55] deoxxa: that's what .each does
[01:55] deoxxa: it doesn't buffer it, it's just a convnience wrapper around the whole nextObject thing
[01:56] kevinswiber_ has joined the channel
[01:56] deoxxa: Es0teric:
[01:56] joaojeronimo: deoxxa: great :) but it's asynchronous right ? I need to pipe the values in the order that they come out... will it be ok ?
[01:56] TooTallNate: WarheadsSE: not gonna happen, just use master :)
[01:56] deoxxa: joaojeronimo: yes to both questions
[01:57] Es0teric: deoxxa that seems right but when i do local.host:3000/something/index.html it doesnt show...
[01:57] joaojeronimo: deoxxa: Ok :) Thanks :)
[01:57] deoxxa: Es0teric: have you got it listening on that port?
[01:57] c4milo has joined the channel
[01:57] Es0teric: yeah
[01:57] Murugaratham has joined the channel
[01:57] Es0teric: well i am using a twitter client for node
[01:57] deoxxa: paste code -> ??? -> great success
[01:58] WarheadsSE: TooTallNate: ah, but I can't :( remember I am packaging this for distribution
[01:58] TooTallNate: WarheadsSE: what's wrong with waf?
[01:58] brianseeders has joined the channel
[01:59] markq has joined the channel
[01:59] socketio\test\87 has joined the channel
[01:59] WarheadsSE: nothing, aside from having fun breaking distcc :)
[01:59] WarheadsSE: v0.6.13 is packages up all nice and neat :p so no worries there, just takes inordinately long
[02:00] seebees1 has left the channel
[02:00] TooTallNate: ahh i see
[02:00] TooTallNate: well ya, i mean stick with waf for now
[02:00] TooTallNate: when you're trying to package up 0.8.0, then gyp is all yours
[02:00] WarheadsSE: :) yup
[02:00] WarheadsSE: when it's released :p
[02:01] Es0teric: deoxxa http://notey.it/n/NWQ
[02:01] TheAlphaNerd has joined the channel
[02:01] TheAlphaNerd has joined the channel
[02:02] ramitos_ has joined the channel
[02:02] jj0hns0n has joined the channel
[02:03] westg has joined the channel
[02:04] deoxxa: Es0teric: i see no mention of serving files there
[02:04] Es0teric: deoxxa serving files?
[02:04] Es0teric: do i need to build a fs?
[02:05] saintsalo has left the channel
[02:07] pendlepa_ has joined the channel
[02:07] markq has joined the channel
[02:08] deoxxa: Es0teric: kind of
[02:08] deoxxa: uh
[02:08] deoxxa: i'd honestly suggest using express or something of the like
[02:09] Es0teric: deoxxa what would express do?
[02:09] Es0teric: i mean i have the module installed
[02:10] zivester has joined the channel
[02:10] TheEmpath has joined the channel
[02:10] TheEmpath: hi... question about cluster... I'd like to 'bind' a module to the master and be able to acces it form any worker process... wat do?
[02:11] sharkbird has joined the channel
[02:12] KingInky has joined the channel
[02:12] KingInky: anyone here know how to keep track of a socket.io session across pages? i need the session to pass if the client goes to another page.
[02:13] KingInky: i cannot for the life of me figure out how to do this and it's driving me insane
[02:13] KingInky: any solution seems so convoluted and difficult that it seems not to be worth it. of course i will take any route i can find because this project means a lot to me, so.
[02:14] KingInky: all i can think to do is use IPs to store sessions and have the sessions wipe clean every few minutes, but this would mean that two people on one network couldn't use the application at the same time.
[02:14] francisl has joined the channel
[02:14] KingInky: the other idea i had is to use cookies, but i dunno if that would work right.
[02:14] WarheadsSE: KingInky: sessions in the cookie, via connect ?
[02:15] TheEmpath: KingInky: I believe socket.io comes with support for redis to register a session id server side
[02:15] TheEmpath: and by default, it has a cookie... but its been a while
[02:15] KingInky: haha TheEmpath: we are in node.js and socket.io channels together lol
[02:15] TheEmpath: I am everywhere!
[02:15] WarheadsSE: we're just using an in-memory store.
[02:16] KingInky: thanks for an actual answer. i'll look into redis, i used it once, and i liked it because it has publish/subscribe
[02:16] lukeholder has joined the channel
[02:16] KingInky: Warhead: yes, i think cookies would work, but i dunno how ot use them in socket.io
[02:16] KingInky: like, just give every client a unique cookie session
[02:16] lukeholder: Does anyone know a was to edit SWF files with node.js?
[02:16] KingInky: and read that in socket.io
[02:16] torvalamo: there's no need for socket.io to use anything other than a plain js object to store sessid->socket pairs
[02:16] WarheadsSE: hmm let me find the example..
[02:16] WarheadsSE: (its in the archlinuxarm/plugbuild-ui server.js)
[02:17] lukeholder: Im looking for a swf manipulation library in node.js
[02:17] KingInky: Warhead: you have examples of this??! that's awesome
[02:17] KingInky: would love to see that
[02:17] vdrab has joined the channel
[02:17] KingInky: torvalmo: i think i understand u, could u elaborate a bit on that though??
[02:18] soapyillusions has joined the channel
[02:18] WarheadsSE: https://github.com/archlinuxarm/plugbuild-UI/blob/master/server.js#L151
[02:18] WarheadsSE: thats using in-memory store
[02:18] lukeholder: Anyone recommend a really good small Linux distro with a GUI ?
[02:18] KingInky: luke: crunchbang
[02:19] KingInky: google crunchbang linux
[02:19] KingInky: i used it for a while, i liked it
[02:19] dgathright has joined the channel
[02:19] h4mz1d has joined the channel
[02:19] lukeholder: KingInky: Thanks will do.
[02:19] KingInky: yep
[02:19] totallymike: Does anyone know what the difference between a _creator and a _writer on cloudant is?
[02:19] someprimetime has joined the channel
[02:21] WarheadsSE: or Archbang ..
[02:21] KingInky: warhead: never heard of archbang. based on #!?
[02:21] lukeholder: WarheadsSE: Archbang Linux
[02:21] totallymike: It's to arch what crunchbang is to debian
[02:21] adamkittelson has joined the channel
[02:21] KingInky: ahhh
[02:21] Lorentz: or just go debian
[02:21] KingInky: i see
[02:22] lukeholder: Prefer Debian
[02:22] louissmit has joined the channel
[02:22] KingInky: who even needs a GUI?
[02:22] lukeholder: For a kiosk
[02:22] KingInky: just be a badass and go CLI
[02:22] blueadept has joined the channel
[02:22] blueadept has joined the channel
[02:22] KingInky: i see
[02:22] totallymike: The only GUI thing I use is the browser.
[02:22] KingInky: lol
[02:22] lukeholder: Yes if it booted into a browser would be cool
[02:22] westg has joined the channel
[02:22] KingInky: i use win7 for basic shit -- music, browsing, etc. i use linux for coding/hacking
[02:22] lukeholder: Can script that though
[02:22] KingInky: and in linux i prefer CLI
[02:23] KingInky: but i run ubuntu in VM and have dual monitors, so one is ubuntu and one is win7
[02:23] KingInky: it's very convenient
[02:23] WarheadsSE: KingInky: :) <3 plugs
[02:23] infynyxx has joined the channel
[02:23] ryan_stevens has joined the channel
[02:23] KingInky: warhead: :P :D
[02:23] WarheadsSE: ACTION has more than I need
[02:24] st_luke has joined the channel
[02:24] KingInky: he should give some to me, then ;)
[02:24] totallymike: So a _writer can create new documents. What's the point of _creator then?
[02:24] KingInky: mike: no idea what you're asking about but im assuming there must be a difference
[02:24] KingInky: could you google it, or is it something too uncommon?
[02:25] KingInky: i just tried googling it myself, got basically no results. what in the world is cloudant anyhow?
[02:25] WarheadsSE: facebook.. it is odd ... ?
[02:25] totallymike: It's specific to cloudant. Cloudant is a couchdb host.
[02:26] WarheadsSE: KingInky: you know what a plug is ?
[02:26] Poetro has joined the channel
[02:26] totallymike: there are people that float around in here that use it regularly, so I ask aloud in here hoping someone's around with experience in it.
[02:26] adamkitt_ has joined the channel
[02:26] WarheadsSE: at least in reference to what I am saying,,
[02:26] totallymike: oh hey #cloudant exists
[02:26] chadskidmore has joined the channel
[02:27] KingInky: mike: no idea, man, i never messed with couchdb. i'll have to read up on it.
[02:27] totallymike: I'm asking on the #cloudant channel.
[02:27] KingInky: warhead: i assumed "plugin". what exactly did you mean?
[02:27] KingInky: mike: probably smart. hopefully an active channel. it's annoying to get into a channel where no one gives a flying fuck.
[02:28] KingInky: this node.js channel is friendly and active. i love that.
[02:28] WarheadsSE: 1> WarheadsSE :p 2> archlinuxarm.org
[02:28] KingInky: socket.io channel sucks balls
[02:28] totallymike: Got what I needed from them.
[02:28] KingInky: warhead: u use arch linux? using it now??
[02:28] totallymike: Wonderful.
[02:28] KingInky: mike: awesome. good job bro.
[02:29] KingInky: mike: a shot to congratulate you! *whiskey*
[02:29] KingInky: nothing better than tuesday night coding w/ whiskey & coke :)
[02:29] WarheadsSE: KingInky: im currently on my Cr48, ssh'd to a GoFlex Net running Arch Linux ARM, screen w/ weechat-curses
[02:29] totallymike: woo!
[02:29] KingInky: warhead: sweet. what is a CR48? you're making me feel like a jock.
[02:29] totallymike: hey that reminds me I have gin in the closet I should pop at some point.
[02:30] WarheadsSE: lol
[02:30] KingInky: warhead: which til today i assumed was impossible
[02:30] WarheadsSE: its a Google issued Chromebook
[02:30] KingInky: right on. one of the ones from their free trials?
[02:30] WarheadsSE: :)
[02:30] WarheadsSE: I has 2
[02:30] KingInky: asshat
[02:30] KingInky: you should send me 1
[02:30] KingInky: lol
[02:30] WarheadsSE: 1 for me, 1 for lady
[02:30] KingInky: ahhh
[02:30] KingInky: i see
[02:31] KingInky: if($this->nerd()) lady = false;
[02:31] KingInky: dunno how u manage to get past that logic
[02:31] KingInky: but congrats
[02:31] rauchg has joined the channel
[02:31] aslant has joined the channel
[02:32] WarheadsSE: my main *actual laptop has a Samsung MomentusXT500 w/ w7, and a Intel 320 ssd 80g w/ Arch
[02:32] iangreenleaf has joined the channel
[02:32] KingInky: nice
[02:32] KingInky: i bought a custom built laptop from ibuypower (don't ever go there)
[02:32] WarheadsSE: bootup, optimized, ~ 9 seconds to usable desktop on Arch with xfce4
[02:32] KingInky: fan started dying within a yr. it still works but makes shitty sounds. hard to find replacements, too.
[02:33] KingInky: my ubuntu boot is seriously like <10 seconds but it's trhough a VM. dunno what it would be if i had it installed to HDD
[02:33] WarheadsSE: heh, buy good parts
[02:33] WarheadsSE: ;) Dell Precision M4300
[02:33] KingInky: well that's the thing is u have to get the fan from COMPAL
[02:33] KingInky: it only fits boxes built with their shit
[02:33] KingInky: it's bullshit
[02:33] KingInky: not ot mention theyre a chinese company
[02:33] KingInky: hard to get in contact with them and they speak terrible english
[02:34] KingInky: last time i contacted them, through email, they said they had my part and i replied asking for how much, they never replied.
[02:34] WarheadsSE: you me terwibble engrish
[02:34] KingInky: lol
[02:34] KingInky: is your name warheads after the candy?
[02:34] WarheadsSE: WarheadsSE
[02:34] WarheadsSE: not related, but .net vs .com
[02:35] KingInky: dude wtf are u talking about lol
[02:35] WarheadsSE: warheads.net
[02:35] KingInky: im too drunk to figure out your cryptic replies
[02:35] KingInky: ohhhh
[02:35] KingInky: lol
[02:35] WarheadsSE: If that game ever made me money.. I'd bother to revamp it.
[02:35] tornad has joined the channel
[02:36] lukeholder has joined the channel
[02:36] KingInky: lol. this is your game?
[02:36] WarheadsSE: yes
[02:36] KingInky: cool.
[02:36] KingInky: that's how i got into web coding.
[02:36] KingInky: i had been doing QBASIC and VB
[02:37] KingInky: then got into PHP/HTML to make a game called Wizard Duels
[02:37] benvie: since I'm not being paid this must be a game right?
[02:37] KingInky: life is a game. so games are really just recursive games. games within games. gameception.
[02:38] WarheadsSE: id say its more like therapy, real expensive and no guarantees
[02:38] KingInky: haha
[02:38] KingInky: warhead: what'd u write it in bro?
[02:38] KingInky: php?
[02:38] WarheadsSE: no, the site is php, but the game/server are c++
[02:38] WarheadsSE: it's not a webpage based game
[02:38] KingInky: yeah that's why i asked cause i saw the "current versions" box
[02:39] WarheadsSE: def a touch out of date :p
[02:39] KingInky: yeah. why'd you do a custom server in c++?
[02:39] WarheadsSE: you're missing how the game works :p
[02:39] KingInky: well yeah, fair enough. i haven't signed up :P
[02:40] WarheadsSE: its a DirectX based PC game
[02:40] KingInky: ah
[02:40] KingInky: how old are you today, and how long did you spend writing Warheads?
[02:40] h4mz1d has joined the channel
[02:41] zivester: Hi all. I just installed node.js using the ubuntu ppa method (ppa:chris-lea/node.js) I don't think npm got installed by default, is that normal?
[02:41] WarheadsSE: zivester: yes.
[02:41] Es0teric: wow...
[02:41] KingInky: zivester: yeah
[02:41] WarheadsSE: it comes as part of node
[02:41] Es0teric: i can DEFINATELY get used to using express...
[02:41] diogogmt has joined the channel
[02:41] KingInky: npm should be installed
[02:41] KingInky: run npm -v
[02:41] KingInky: it should shout back the version
[02:41] WarheadsSE: KingInky: I've owned it since ~2005
[02:41] mikeal has joined the channel
[02:41] isaacs has joined the channel
[02:42] KingInky: Warheads: right on man. u have AIM/Yahoo/MSN??
[02:42] Sadin has joined the channel
[02:42] WarheadsSE: I've written/extended it from there, rewrote the server code from scratch to improve the performance to about 8x the original code
[02:42] KingInky: jesus...
[02:42] WarheadsSE: lots of the website integration for rankings, etc etc
[02:42] KingInky: very nice improvement
[02:42] WarheadsSE: it was aonly 2500 lines
[02:42] KingInky: sure. still, though
[02:42] KingInky: that's a nice effiency increase
[02:43] KingInky: any real coder is OBSESSED with efficiency
[02:43] WarheadsSE: true.
[02:43] KingInky: you must be a good one
[02:43] WarheadsSE: Dir of IT :)
[02:43] zivester: i had an old version of node, like .4.9 or something before i just upgraded by the ppa... not sure if that is why... buy `npm` doesn't exist
[02:43] WarheadsSE: maintain about 50K lines of perl, another 28K of c++ plus some shell for work
[02:43] KingInky: well i never delved into c/c++ much. im about to be studying computer sci, so ill have to now. ill pick it up quickly, im sure.
[02:43] mandric has joined the channel
[02:43] jamesd_ has joined the channel
[02:43] KingInky: zivester: uninstall node and npm and try reinstalling
[02:44] KingInky: zivester: what OS are you on?
[02:44] WarheadsSE: ubuntu :p
[02:44] ljharb: KingInky: any real coder also realizes that maintainability and robustness are just as important for efficiency as runtime performance. (no idea what the context is here)
[02:44] KingInky: warheads: wow, that's a lot. so did you graduate college for com sci??
[02:44] WarheadsSE: ljharb is very right
[02:44] KingInky: ljharb: agreed but a balance between the two.
[02:44] zivester: ubuntu 11.10
[02:44] WarheadsSE: actually, i had to leave after my sophomore year due to medical reasons
[02:44] KingInky: well we're all right. it's about a fine balance.
[02:44] TheEmpath: did something change in node 0.6? mod.js -> module.exports = function() {}; server.js -> new (require('mod'))();
[02:45] TheEmpath: that doesn't work?
[02:45] zivester: just purged node and installed again.. still no npm... should i just apt-get install npm too?
[02:45] KingInky: zivester: try uninstalling it
[02:45] WarheadsSE: wow.. never.. seen that call type TheEmpath
[02:45] KingInky: sudo apt-get --purge remove node
[02:45] KingInky: i think
[02:45] epa_ has joined the channel
[02:45] KingInky: that would be the command. you might get some more input here
[02:45] KingInky: then try reinstalling
[02:45] KingInky: make sure you completely remove it though, that could be causing problems.
[02:45] WarheadsSE: zivester: if that doesnt work, see npmjs.org, it has manual install instructions
[02:46] TheEmpath: WarheadsSE: I'm a bit Pythonic :D
[02:46] WarheadsSE: I noticed :p
[02:46] WarheadsSE: ACTION waves Perl Monger flag
[02:46] zivester: ok now im getting 1.1.9 for npm, is that correct for node v0.6.13 ?
[02:46] WarheadsSE: lemme check
[02:46] WarheadsSE: yup
[02:46] KingInky: zivester: yep
[02:46] zivester: perfect... ty both/all
[02:47] KingInky: anytime brother
[02:47] KingInky: get to coding
[02:47] KingInky: make us proud
[02:47] KingInky: :D
[02:47] TheEmpath: whats going on is var a = require('mod'); console.log(a) prints { module: [Function] }
[02:47] TheEmpath: >:U
[02:47] KingInky: TheEmpath: i really wish i knew wtf ur trying to do here lolol
[02:47] chapel: is it yourrs?
[02:47] KingInky: i can't even figure it out
[02:48] TheEmpath: KingInky: Trying to return a "class" from a module then instantiate it
[02:48] TheEmpath: basically, treat a module like a factory
[02:48] KingInky: hmm
[02:48] chapel: how are you exporting?
[02:48] TheEmpath: var Whatever = exports.module = functoin() {}
[02:48] KingInky: Empath: dude i really duno if it's what u need but u might check out how the code for Hummingbird is setup. oit might help u
[02:48] chapel: lol
[02:48] CIA-19: node: 03isaacs 07master * r81cd3a3 10/ lib/readline.js : lint readline.js - single-quotes preferred - http://git.io/3fjr2Q
[02:48] chapel: TheEmpath: its module.exports
[02:49] dr0id has joined the channel
[02:49] TheEmpath: ACTION smashes face.
[02:49] TheEmpath: chapel++
[02:49] KingInky: lol
[02:49] fluk3 has joined the channel
[02:49] KingInky: yeah, i just checked some of my code. i do exports.ClassName = ClassName;
[02:49] KingInky: where ClassName has been defined, obviously
[02:50] KingInky: then u can require it and make new() on it
[02:50] chapel: naw
[02:50] KingInky: no?
[02:50] TheEmpath: this setup lets you treat a module like a factory... so new (require('metrics'))(); creates a new metric instance
[02:50] soapyillusions has joined the channel
[02:50] chapel: doing exports.ClassName you have to do var blah = require('blah').ClassName
[02:51] chapel: not very clean imo
[02:51] KingInky: hmm
[02:51] KingInky: i dunno what you're trying to say, as much as i wish i did
[02:51] KingInky: it works for me though, i know that
[02:51] kirbysayshi has joined the channel
[02:51] KingInky: the way i do it
[02:51] chapel: if you do module.exports = ClassName, then you can do var ClassName = require('class')
[02:51] KingInky: ohhhh
[02:51] chapel: its cleaner
[02:51] KingInky: i see what u mean chapel
[02:51] KingInky: that is how i do it dude
[02:51] KingInky: oh, no shit?!
[02:51] KingInky: wtf
[02:51] KingInky: lol
[02:51] KingInky: nice
[02:51] KingInky: thank you
[02:52] sammmy: How do I check if a directory exists from a path to a file?
[02:52] zivester: well that was a roundabout way to get `lessc` on my computer... also just realized lessc is just a node.js file... o me.
[02:53] context: zivester: also if you read the bootstrap channel you would see that I said less is not required
[02:53] WarheadsSE: sammy fs.lstat
[02:54] WarheadsSE: maybe dstat..
[02:54] boltR has joined the channel
[02:56] dylang has joined the channel
[02:58] sx2020 has joined the channel
[02:58] sammmy: WarheadsSE: why not just fs.stat?
[02:59] WarheadsSE: because i cant remember all of the fs api :p
[02:59] sx2020: hi, I'm opening too many log files getting an error Error: EMFILE, too many open files
[02:59] sx2020: how do i close file after appending?
[02:59] WarheadsSE: close ?
[02:59] Es0teric: ok
[02:59] sx2020: fs.createWriteStream(file,{}).write(string);
[02:59] Es0teric: how do i create forms in express?
[03:00] WarheadsSE: fs.close(file)
[03:00] sx2020: I tried chaining it like this: fs.createWriteStream(file,{}).write(string).close();
[03:00] sx2020: doesn't work
[03:00] sammmy: What is a file descriptor?
[03:00] Es0teric: this is just rediculous… i mean express is a nice framework and all but the jade templating engine has crappy docs
[03:00] WarheadsSE: Es0teric: you don't *have* to use Jade
[03:00] Es0teric: i dont?
[03:00] Es0teric: o.O
[03:00] WarheadsSE: NO.
[03:01] Es0teric: i thought i had to
[03:01] Es0teric: o.O
[03:01] dylang: cluster in 0.6.13 - the docs say "Stability: 1 Experimental" - would it be bad to use in production? should i stick with tj's cluster module?
[03:01] Es0teric: WOULD YOU LOOK AT THAT
[03:01] WarheadsSE: oyvey
[03:01] zeade has joined the channel
[03:01] Es0teric: so i can use index.html
[03:01] Es0teric: right?
[03:01] sx2020: WarheadsSE: do I need to close file in a callback after writing?
[03:01] WarheadsSE: you can serve static files..
[03:01] Es0teric: i dont WANT static files
[03:01] Es0teric: i want
[03:01] Es0teric: dynamic files
[03:01] WarheadsSE: :p
[03:01] WarheadsSE: still, Jade is only 1 of the templating engines
[03:02] seebees1 has joined the channel
[03:02] WarheadsSE: let me look a sec\
[03:02] perezd has joined the channel
[03:03] sammmy: I don't understand the difference between fs.stat, fs.lstat and fs.fstat?
[03:03] Es0teric: Express
[03:03] Es0teric: 500 Error: failed to locate view "index"
[03:03] Es0teric: and i have TWO index files
[03:03] Es0teric: on that view/ folder
[03:04] Skaag has joined the channel
[03:04] WarheadsSE: sx2020: fs.createWriteStream returns the streamobject.. but does write do the same ?
[03:05] syntaxiko has joined the channel
[03:05] Es0teric: WarheadsSE do you know how to make express not use a templating engine?
[03:05] descipher has joined the channel
[03:05] WarheadsSE: if you want to build it from scratch... yeah..
[03:06] WarheadsSE: or you could just use a different template system..
[03:06] Es0teric: i dont want to use a diff template system
[03:06] Es0teric: :|
[03:06] Es0teric: thats more stuff i have to learn
[03:06] Es0teric: -_-
[03:06] WarheadsSE: so you want dynamic.. but no templates..
[03:06] Es0teric: ok
[03:06] Es0teric: what template system do you suggest?
[03:06] WarheadsSE: (googles: nodejs express template engine)
[03:06] lukeholder has joined the channel
[03:07] Es0teric: http://google.com/?q=nodejs+express+template+engine
[03:07] CIA-19: node: 03isaacs 07master * rc781f17 10/ src/node.js : debug: Wait 50ms before running the main module - http://git.io/CsEj-g
[03:07] CIA-19: node: 03isaacs 07master * rd2389f8 10/ (2 files): (log message trimmed)
[03:07] CIA-19: node: debug repl tests: Add visibility, remove test that times out
[03:07] CIA-19: node: The 'Can't backtrace now' message takes over 10 seconds to return.
[03:07] CIA-19: node: That's too much time to have to wait for a test, and when it times
[03:07] CIA-19: node: out, it was causing an orphaned node process.
[03:07] CIA-19: node: This cleans up the node process, and also removes the test that's
[03:07] CIA-19: node: timing out, so that the case is hit less often.
[03:07] WarheadsSE: dont make me enter a lmgtfy link.
[03:07] WarheadsSE: ;)
[03:08] Es0teric: i already did
[03:08] Es0teric: that sends you to google.com
[03:08] Es0teric: WITH the search terms in it
[03:08] sammmy: How do I check if a _path_ exists, and if not, create the directories for that path?
[03:08] Es0teric: all you have to do is click "Search"
[03:08] WarheadsSE: ..
[03:08] isaacs: sammmy: npm install mkdirp; mkdirp('some/long/path', function (er) { if no er, then the path definitely exists })
[03:08] isaacs: sammmy: the first one is bash, the second is JS
[03:08] isaacs: :)
[03:08] WarheadsSE: isaacs: sorry
[03:09] WarheadsSE: i read mkderp
[03:09] isaacs: WarheadsSE: that's how it's pronounced
[03:09] isaacs: like a Derp from Scotland
[03:09] WarheadsSE: i know!
[03:09] isaacs: mkdirp
[03:09] Es0teric: WarheadsSE i keep getting Jade as a template engine of choice man..
[03:09] Es0teric: i just want to do FORMS
[03:09] Es0teric: why is this so difficult?
[03:09] Aria has joined the channel
[03:10] sammmy: isaacs: why doesn't fs.mkdir have this functionality? :\
[03:10] context: forms are difficult ?
[03:10] Es0teric: context no… whats the command for forms
[03:11] ljharb:
[03:11] Es0teric: dude
[03:11] Es0teric: i am using Jade
[03:11] Es0teric: template engine
[03:11] context: ok?
[03:11] WarheadsSE: stop using jade then :p
[03:11] ljharb: well then that's your first problem :-p
[03:11] context: that's awesome
[03:11] WarheadsSE: if u hate it so much..
[03:11] Es0teric: idk how to use it
[03:11] context: how do I put shit in the trunk of my car?
[03:11] Es0teric: but i want dynamic content
[03:11] isaacs: sammmy: because fs.mkdir is a binding to the syscall, not a binding to mkdir (1)
[03:11] WarheadsSE: http://expressjs.com/guide.html#template-engines
[03:11] Es0teric: and i go status huh?
[03:12] isaacs: sammmy: we push stuff into userland if possible :)
[03:12] context: no dude you don't understand. I have an impala.
[03:12] context: wth does dynamic content have to do with forms ?
[03:12] WarheadsSE: hes trying to dynamiclly generate a form, in Jade..
[03:12] Es0teric: no i am not trying to dynamically generate a form
[03:12] sammmy: isaacs: userland?
[03:12] context: you want form helpers. is what you are asking for. which depends on your damn framework and orm
[03:12] Es0teric: dude
[03:12] context: not your template language
[03:13] Es0teric: context i am using express
[03:13] Es0teric: ;|
[03:13] Es0teric: :|
[03:13] context: well you figured out half the problem
[03:13] ljharb: Es0teric: you can change the template engine you want in express on both a global basis and per-render.
[03:14] context: you should be able to figure it out from there
[03:14] Es0teric: ljharb i want a global basis
[03:14] Es0teric: i just want to
[03:14] Es0teric: generate a form so i can send POST data
[03:14] Es0teric: to express
[03:14] warz has joined the channel
[03:14] warz has joined the channel
[03:14] ljharb: Es0teric: app.set('view engine', 'ejs'); ?
[03:14] context: ....
[03:14] Es0teric: the hell is ejs?
[03:14] context: that depends on YOUR ORM AS WELL.
[03:15] context: OR IF there even are any sort of form helpers avai
[03:15] context: available for you
[03:15] WarheadsSE: Es0teric: time to RTFM
[03:15] context: no kidding
[03:15] Es0teric: WarheadsSE -_-
[03:15] stalled has joined the channel
[03:15] Es0teric: so you think i didnt read the manual
[03:15] Es0teric: for jade
[03:15] context: express is NOT RAILS. express is NOT DJANGO.
[03:15] WarheadsSE: dude, i don't know everyting int hte 23 languages I code in..
[03:15] broofa has joined the channel
[03:16] context: omfg
[03:16] WarheadsSE: read express manual
[03:16] WarheadsSE: read manual
[03:16] context: Es0teric: the template language has NOTHING to do with form helpers
[03:16] WarheadsSE: the express docs are pretty good
[03:16] Es0teric: WarheadsSE i am not talking about express
[03:16] Es0teric: i am talking about jade
[03:16] context: Es0teric: your better off not talking about jade anymore
[03:16] WarheadsSE: ..
[03:17] context: or express for that matter
[03:17] csprite has joined the channel
[03:17] Es0teric: i am trying to build the form
[03:17] Es0teric: using jade
[03:17] WarheadsSE: just ..http://expressjs.com/guide.html#template-engines look at ejs..
[03:17] context: SO GO BUILD ONE
[03:17] context: god damn
[03:17] WarheadsSE: maybe that will make more sense
[03:17] WarheadsSE: heh, he'd have never survived COBOL92
[03:17] sammmy: isaacs: are the paths for mkdirp always relative to the app process?
[03:18] WarheadsSE: omg i love that pakage.... make derp
[03:18] phlff has joined the channel
[03:18] Es0teric: got it
[03:19] Es0teric: oh
[03:19] isaacs: sammmy: every path except require("...") are relative to process.cwd()
[03:19] Es0teric: ejs looks like..
[03:19] Es0teric: well it looks better
[03:19] WarheadsSE: ACTION waits for popcorn
[03:19] isaacs: sammmy: you can always do path.resolve(__dirname, 'foo/bar/baz') or whatever
[03:19] isaacs: ok, going home for reals. have a good night, noders.
[03:20] WarheadsSE: :)
[03:20] sammmy: isaacs, hang on..
[03:20] ditesh|cassini has joined the channel
[03:20] seebees1 has left the channel
[03:20] sammmy: isaacs: why is it this way?
[03:20] WarheadsSE: hes already gone :p
[03:20] Es0teric: i mean i know what i am doing with jade now
[03:20] Es0teric: so....
[03:20] sammmy: god dangit
[03:20] WarheadsSE: Es0teric: then great.. useit
[03:20] Es0teric: its actually
[03:20] Es0teric: pretty easy
[03:21] WarheadsSE: sammmy: by default, you should always assume relative to program path
[03:21] WarheadsSE: if you need outside of it, resolve it
[03:21] jocafa has joined the channel
[03:21] sammmy: WarheadsSE: that is, my app.js file?
[03:21] WarheadsSE: for example
[03:21] saikat has joined the channel
[03:21] WarheadsSE: /home/WarheadsSE/project/
[03:21] WarheadsSE: I run node server/app.js
[03:22] WarheadsSE: cwd is /home/WarheadsSE/project/
[03:22] sammmy: Oh, even though app.js is in /home/WarheadsSW/project/server?
[03:22] WarheadsSE: yes
[03:23] sammmy: I see
[03:23] WarheadsSE: it's the dir from which node was called
[03:23] sammmy: so where ever I run node
[03:23] WarheadsSE: in windows terms "working directory"
[03:23] sammmy: What if I called node at /!? o.o
[03:23] WarheadsSE: then you'd have called
[03:23] perezd has joined the channel
[03:23] WarheadsSE: node /home/WarheadsSE/project/server/app.js
[03:23] csprite has joined the channel
[03:24] WarheadsSE: and you'd be doing something really stupid :p
[03:24] rtgibbons has joined the channel
[03:24] sammmy: WarheadsSE: But I can't get my freaking upstart shells to cd to anywhere else!!!...
[03:24] sammmy: god damnit.. -.-
[03:25] TheEmpath: blowing minds! require('application').sockets = new (require('socketServer'))(self.server);
[03:25] sammmy: upstart shell scripts*
[03:26] bartt has joined the channel
[03:27] WarheadsSE: TheEmpath: thats defining equiv, or one whacky ass call ?
[03:27] csprite has joined the channel
[03:27] sammmy: WarheadsSE: are you familiar with upstart scripts?
[03:27] WarheadsSE: nope..
[03:27] WarheadsSE: ACTION googles
[03:27] seanstickle has joined the channel
[03:27] bartt has joined the channel
[03:28] mikeric has joined the channel
[03:28] csprite has joined the channel
[03:28] CrypticSwarm has joined the channel
[03:28] kmiyashiro has joined the channel
[03:29] WarheadsSE: http://clock.co.uk/tech-blogs/upstart-and-nodejs maybe help?
[03:30] kmurph79 has joined the channel
[03:30] WarheadsSE: looks like some nice doc links at the botom
[03:32] WarheadsSE: o the topic of templates, EJS is probably the closest to TemplateToolkit
[03:33] TimTimTim has joined the channel
[03:36] wilmoore has joined the channel
[03:40] m00p has joined the channel
[03:41] Leemp: Anyone ever try jade-browser before?
[03:42] Es0teric: i am using ejs now
[03:42] Es0teric: god im starting to hate this shit
[03:42] Es0teric: i would rather not use a templating engine… and manage the data manually
[03:42] WarheadsSE: then do so :p
[03:42] Es0teric: how do i tell express to not use a templating engine?
[03:43] ljharb: Es0teric: set the templating engine to "html"
[03:43] Es0teric: you mean
[03:43] Es0teric: view engine
[03:43] Es0teric: right?
[03:44] Es0teric: ljharb
[03:44] ljharb: yes
[03:44] Es0teric: Express
[03:44] Es0teric: 500 Error: Cannot find module 'html'
[03:44] arduix has joined the channel
[03:45] Es0teric: ljharb ^
[03:46] hh__: dont use the view engine middleware
[03:46] hh__: resorts to using static files though
[03:46] hh__: or write your own middleware/template engine
[03:46] Es0teric: hh__
[03:47] Es0teric: then what should i do?
[03:47] Es0teric: i just want raw html
[03:47] Es0teric: because this template engine shit aint for me
[03:47] Es0teric: lol
[03:47] ljharb: if you have a file extension when you render the files, it bypasses it. try just rendering index.html
[03:48] Es0teric: ljharb Cannot GET /index.html
[03:48] hh__: you put it in public/
[03:48] hh__: by default thats where the static middleware serves/looks
[03:49] Es0teric: hh__ ok, so then how do i make the default directory that?
[03:49] hh__: what do you mean?
[03:49] Es0teric: i want the default directory to be public/ then
[03:49] Es0teric: because right now its looking in views/
[03:49] Es0teric: so if i do local.host:3000/
[03:49] Es0teric: i want it to load the index from public/
[03:50] Es0teric: hh__ is it app.set('public', __dirname + '/public'); <-- ?
[03:51] eventualbuddha has joined the channel
[03:51] hh__: uh i dont know on the top of my head, imean you can try changing the path
[03:52] hh__: for static mdidleware, dont know if it'll screw others tuff up
[03:52] c4milo has joined the channel
[03:54] Es0teric: i see
[03:54] hh__: like, app.use(express.static(__dirname + '/public')); would be just __dirname
[03:54] hh__: comment out the view engine middleware
[03:54] hh__: since you said you don't want to use it
[03:55] WarheadsSE: the only think is that you will then need to simply build your complete response string :)
[03:55] michaelmartinez has joined the channel
[03:55] Es0teric: PERFECT
[03:55] Es0teric: figured it out
[03:55] stantona has joined the channel
[03:55] TheAlphaNerd has joined the channel
[03:56] hh__: i dont see the point in doing that
[03:56] Es0teric: hh__ app.get('/public', routes.index);
[03:57] Vennril2 has joined the channel
[04:00] chjj has joined the channel
[04:00] jxson has joined the channel
[04:01] meso has joined the channel
[04:01] Poetro has joined the channel
[04:02] halfhalo has joined the channel
[04:04] jryans has joined the channel
[04:05] baudehlo has joined the channel
[04:05] entropax has joined the channel
[04:07] jakehow has joined the channel
[04:07] fomatin has joined the channel
[04:08] TheEmpath: hrmmm so.... how does the built-in cluster know what port to listen to?
[04:10] sx2020 has left the channel
[04:13] trotter has joined the channel
[04:13] mattgifford has joined the channel
[04:16] mattgifford has joined the channel
[04:16] disappearedng has joined the channel
[04:18] dukeytoo has joined the channel
[04:18] gavin_huang has joined the channel
[04:18] mattgifford has joined the channel
[04:21] forzan has joined the channel
[04:21] chapel: TheEmpath: it listens to whatever port you give it
[04:21] baudehlo has joined the channel
[04:22] TheEmpath: The example doesn't specify a port to give it.. it appears that the net lib seems to have a hook into cluster.. either way, i can't seem to get it to work :X
[04:22] Es0teric: you know what? the express framework could suck my bawls
[04:22] Es0teric: this shit just complicated everything
[04:22] mattgiff_ has joined the channel
[04:22] Es0teric: i was perfectly content with node
[04:22] Es0teric: just raw node
[04:23] rlidwka: dont use it then :)
[04:23] ljharb: if you were perfectly content why'd you look at express in the first place?
[04:23] TheEmpath: don't take that from people with two vowels in their name!
[04:24] rwaldron has joined the channel
[04:24] zackattack has joined the channel
[04:24] mattgifford has joined the channel
[04:25] tommyvyo has joined the channel
[04:25] TheEmpath: chapel: Now that is intersting.. when the ports are bound, the worker is passing up with command 'queryServer': '0.0.0.0'
[04:25] TheEmpath: cluster things I'm binding to 0.0.0.0 :X
[04:26] chapel: TheEmpath: the children clusters share the masters socket
[04:26] dephex has joined the channel
[04:27] TheEmpath: I think cluster it's not binding to the right address :X
[04:28] jakehow has joined the channel
[04:28] jerrysv has joined the channel
[04:29] chapel: what are you trying to do?
[04:30] Aria: 0.0.0.0 is normal to bind to, it means "any ipv4 address"
[04:31] TheEmpath: i see
[04:31] mattgifford has joined the channel
[04:31] TheEmpath: turns out i had something else taking the port... sigh...
[04:31] TheEmpath: thanks again
[04:32] Es0teric: i hate express js now
[04:32] Es0teric: i mean express
[04:32] Es0teric: whatever you call it
[04:33] Aria: Por que?
[04:33] Es0teric: it made everything so unecessarily complicated
[04:33] hh__: i dont see how
[04:33] gwillen has joined the channel
[04:33] Es0teric: ok so i wanted to create a http server right?
[04:34] Aria: Sure...
[04:34] Es0teric: i did the create server stuff
[04:34] Aria: Okay...
[04:34] Es0teric: and it didnt work
[04:34] ljharb: since it should work in 3 lines of code, i can safely say you did something wrong
[04:34] Es0teric: also, it was a pain to just get raw html
[04:34] Es0teric: instead of a templating engine
[04:34] jetienne_ has joined the channel
[04:35] ljharb: Es0teric: make a public directory, put html in it. how is that a pain?
[04:35] Es0teric: ljharb the public directory is already there
[04:35] Es0teric: the problem is
[04:35] Es0teric: when i do local.host:3000/
[04:35] Es0teric: it doesnt set it as the default
[04:36] tristanz has joined the channel
[04:36] ljharb: not the directory, the setting
[04:36] ljharb: app.use(express.static(__dirname + '/public'));
[04:36] Es0teric: thats already there
[04:36] Es0teric: :|
[04:36] Es0teric: and even with THAT it doesnt set it to the /public directory as the main one
[04:36] Es0teric: it still looks for the views folder
[04:36] Es0teric: so i do app.get('/public', routes.index);
[04:37] kitt has joined the channel
[04:37] Es0teric: right?
[04:37] mattgifford has joined the channel
[04:37] chapel: no
[04:37] Es0teric: well that worked
[04:37] chapel: are you putting js files in /public?
[04:37] chapel: or html files?
[04:37] Es0teric: html
[04:37] chapel: an index.html?
[04:37] Es0teric: yes
[04:37] chapel: okay
[04:37] chapel: http://localhost:3000/
[04:37] Es0teric: either way
[04:37] chapel: should work
[04:38] Es0teric: it doesnt unless i do app.get('/public', routes.index);
[04:38] ljharb: right
[04:38] petschm_ has joined the channel
[04:38] ljharb: no wait
[04:38] regality has joined the channel
[04:38] chapel: because its not /public = localhost:3000/public
[04:38] ljharb: it should not require the route if it's in the public directory
[04:38] regality has left the channel
[04:38] chapel: it mounts /public to root of the url
[04:38] Es0teric: dude
[04:38] Es0teric: it doesnt mount it
[04:38] Es0teric: :|
[04:38] Lorentz: time to try another app
[04:38] chapel: then you are doing it wrong
[04:38] Es0teric: it still looks for the views folder
[04:38] Es0teric: look let me show you
[04:38] chapel: paste your code please in a gist
[04:38] regality has joined the channel
[04:38] tommyvyo has joined the channel
[04:39] nodebiscut has joined the channel
[04:40] trotter has joined the channel
[04:40] djbell has joined the channel
[04:40] mattgiff_ has joined the channel
[04:40] Es0teric: wow
[04:41] Es0teric: chapel ok so nvm about what i just said
[04:41] Es0teric: chapel, how do i create the js file to reference?
[04:41] chapel: not sure what you mean?
[04:41] Es0teric: when i create a web server in a js file lets say
[04:42] Es0teric: how do i make it render what i write on it?
[04:42] Es0teric: how do i get the page of it up
[04:42] chapel: js is not php
[04:42] Es0teric: i know that
[04:42] chapel: res.send('')
[04:42] Es0teric: you're kidding me right?
[04:43] ljharb: gah. Es0teric if you use the public folder, you can render static html easily. if you want to pass variables in, you either need a templating engine, or res.send raw html.
[04:43] Es0teric: --_--
[04:43] Es0teric: so thats the kicker
[04:43] ljharb: that's how php works too.
[04:43] Es0teric: you need a templating engine
[04:43] Es0teric: to get dynamic js
[04:43] Es0teric: jade sucks ass
[04:43] chapel: you can use ejs
[04:43] chapel: or haml
[04:43] chapel: or mustache
[04:43] chapel: or underscore
[04:43] chapel: or handlebars
[04:43] Es0teric: i am somewhat familiar with mustache
[04:43] chapel: ro...
[04:44] chapel: or wahtever
[04:44] chapel: blah typing
[04:44] rlidwka: dynamic js? why do you want that?)
[04:44] Es0teric: i come from a php background
[04:44] Es0teric: i want dynamic information being passed through
[04:44] insanoid has joined the channel
[04:45] chapel: use templates
[04:45] chapel: or static html + client side js
[04:45] chapel: and api calls
[04:45] ljharb: i come from a php background too. i prefer ejs because of that.
[04:45] karterk has joined the channel
[04:46] Es0teric: i am trying to learn how to use ejs
[04:46] Es0teric: but its not easy
[04:46] chapel: its very easy :P
[04:47] gr4yscale has joined the channel
[04:47] ljharb: <% %> for scripting, <%- %> for outputting html, <%= %> for outputting text and html-encoded values.
[04:47] karterk: Es0teric: what problem are you facing?
[04:47] ljharb: yay i explained it.
[04:47] Es0teric: ljharb so <%= is for js vars
[04:48] ljharb: <%- foo %> is like = $foo ?>, <%= foo %> is like = htmlencode($foo) ?>
[04:48] ljharb: does that help?
[04:48] AvianFlu: man, I'm sure glad I don't have to do much web stuff.
[04:48] chapel: AvianFlu: its not that bad
[04:48] ljharb: yeah you wouldn't want to be in a crazy good job market :-p
[04:48] chapel: web stuff can be fun
[04:48] systemfault: The web is fun in 2012 :P
[04:48] AvianFlu: I troll, I troll :D
[04:49] Es0teric: AHH ljharb yeah i got that
[04:49] Edisto has joined the channel
[04:49] Edisto: anyone have a benchmark site with node.js compared to ruby or php?
[04:50] systemfault: No but I know that node.js is a lot faster than php and ruby..
[04:50] systemfault: And php is a lot faster than ruby
[04:50] rlidwka: AvianFlu: bad trolling... you should remind them about 5% IE6 users instead :)
[04:50] Es0teric: but… how do i pass values from one page to another using ejs?
[04:50] ljharb: wait, do any of you still actually develop for ie 6?
[04:50] AvianFlu: there are people who still need to
[04:50] systemfault: Masochism :/
[04:50] ljharb: i was just at a conference at sxsw and not one dev in the room did
[04:51] Es0teric: google killed IE6.. i was there for the the funeral and everythign
[04:51] rlidwka: of course not :P
[04:51] Es0teric: i made SURE it was dead
[04:51] icewhite has joined the channel
[04:51] systemfault: ljharb: They were too ashamed.
[04:51] systemfault: There was probably one :/
[04:51] ljharb: AvianFlu: there wouldn't be if people would quit those stupid jobs and get new ones at a higher salary
[04:51] AvianFlu: ljharb, hahahahahahhaha
[04:51] sreeix has joined the channel
[04:51] ljharb: if someone said in an interview that they quit their last job because they had to support ie6 i would absolutely hire them at a higher salary.
[04:51] systemfault: Unless you develop website for china... you can pretty much forget IE6 now :P
[04:52] ljharb: tolerating shitty working conditions is a sign of incompetence.
[04:52] Es0teric: ljharb how do you…ok lets say i want to create a simple web server right? where would i put the js file for it AND how do i pass what i want to the view from there?
[04:52] rlidwka: IE7 then... there are IEs for all of you xD
[04:53] ljharb: Es0teric: make an app.js or server.js or whatever. use express, start a server. set the view engine to ejs or whatever. then make a file in views like "index.ejs". when that's working, i'll give you a line of code to pass in variables.
[04:53] Es0teric: ljharb oh ok done
[04:57] sammmy: How do I res.redirect in express and remove the browser history item?
[04:58] ljharb: sammmy: you can't remove the browser history item, except in modern browsers with client-side JS using history.replace
[04:58] ljharb: nor should you want to, because that screws with the user's browser. it's not nice.
[04:59] langworthy has joined the channel
[04:59] sammmy: ljharb: That's not the case. I know there has to be a proper HTTP redirect code or something that will tell the browser not to create a new history item.
[05:00] ljharb: nope, there's not
[05:00] ljharb: a 301 redirect says "permanently replace the old url with the new one" but browsers usually don't update their bookmarks to respect it
[05:00] ljharb: a 301 is the best response. but if it redirects, who cares about the history item?
[05:04] pradeepbv_ has joined the channel
[05:04] jetienne_ has joined the channel
[05:04] jacobolus has joined the channel
[05:04] Es0teric: ljharb
[05:04] pradeepbv_ has joined the channel
[05:05] ljharb: Es0teric: response.render('file', {foo: 'bar'}); renders file.ejs, with the variable "foo"
[05:06] pizthewiz has joined the channel
[05:06] halfhalo has joined the channel
[05:07] mappum has joined the channel
[05:08] mappum: What is the best npm package for big numbers?
[05:08] RobWC has joined the channel
[05:08] RobWC has left the channel
[05:09] hcchien has joined the channel
[05:09] cole_gillespie has joined the channel
[05:09] orlandovftw has joined the channel
[05:13] isaacs has joined the channel
[05:16] kPb_in has joined the channel
[05:17] mattgifford has joined the channel
[05:17] cjm has joined the channel
[05:18] dwhittle has joined the channel
[05:19] spion1 has joined the channel
[05:20] jimbot has joined the channel
[05:24] _numbers has joined the channel
[05:25] _numbers has left the channel
[05:26] erujolc has joined the channel
[05:27] v_y has joined the channel
[05:28] v_y: someone tell me which redis module to use
[05:28] ryan_stevens has joined the channel
[05:28] maletor has joined the channel
[05:29] erujolc: redis
[05:29] erujolc: npm install --save redis
[05:29] isaacs: yep. that's the one :)
[05:29] stantona has joined the channel
[05:30] pradeepbv_ has joined the channel
[05:30] dwhite has joined the channel
[05:30] erujolc: v_y, use http://toolbox.no.de/ if generally a good bet if npmjs.org search is overwhelming the redis 'redis' module ranks 1st
[05:31] saikat has joined the channel
[05:31] v_y: ah nice
[05:32] v_y: thanks
[05:36] mattgifford has joined the channel
[05:37] TheEmpath: is it possible that a cluster worker can know its own pid?
[05:37] TheEmpath: process.pid ya/
[05:37] achiu has joined the channel
[05:37] Karmaon has joined the channel
[05:38] yawNO has joined the channel
[05:40] kinow has joined the channel
[05:40] v_y: hmm, well i put redis/ in my projects node_modules/ (i don't want to install globally), but when i do var redis = require('redis'); i just get '...'
[05:40] pradeepbv has joined the channel
[05:40] v_y: no matter what i enter, just another ... line
[05:41] mikl has joined the channel
[05:46] erujolc: v_y dont manually put stuff in node_modules
[05:46] erujolc: cd to the project root directory
[05:46] erujolc: type npm init
[05:46] boltR has joined the channel
[05:46] erujolc: and npm install modules locally with npm install --save redis
[05:47] TheEmpath: oooo cluster doesn't like it when process.send() sends complex objects or callbacks :X
[05:47] v_y: aah
[05:47] v_y: interesting
[05:47] erujolc: this will update your package.json and stick the module in local node_modules/
[05:47] isaacs: TheEmpath: no, it has to be JSON.stringify-able
[05:47] erujolc: and node_modules dir to your svnignore or gitignore if using version control
[05:47] isaacs: TheEmpath: but i bet we could do something dnode-esque with functions :)
[05:47] TheEmpath: isaacs: Teehee... was trying to have a worker use a common cache in the master :X
[05:48] isaacs: TheEmpath: it's not shared memory
[05:48] isaacs: TheEmpath: that won't work quite as you hope
[05:48] TheEmpath: isaacs: if each worker has a cache, then its in the actual memory 4 times :X
[05:48] TheEmpath: isaacs: well, depending on cores
[05:48] hcchien has joined the channel
[05:48] TheEmpath: isaacs: didn't cluster have a plugins ability?
[05:49] v_y: erujolc: thanks
[05:50] nsolsen has joined the channel
[05:50] TheEmpath: well no matter, its still alpha.. id imagine having common modules for all workers to reference will be a common reques tin the future... might fuck around and add it myself :D
[05:50] enjalot has joined the channel
[05:51] sammmy: A simple restart mynodeapp would do the trick in restarting my app if I'm using upstart, right?
[05:53] thepatrick: sammmy: restart mynodeapp just sends a signal to your app telling it to restart iirc, I find I have to stop app; start app (at least under ubuntu 10.10, things may have changed)
[05:53] sammmy: thepatrick: Yeah ok. I'm using 10.10
[05:53] TheEmpath2 has joined the channel
[05:53] TheEmpath2: waaat
[05:55] cameron_ has joined the channel
[05:55] infynyxx has joined the channel
[05:56] sammmy: Why is my session middleware failing on my VPS but not on my localhost?
[05:56] smithbh has joined the channel
[05:56] sammmy: Any idea on why that would be?
[05:57] erujolc: let me consult my magic 8 ball
[05:59] sammmy: erujolc: no, I mean. Do you know what _could_ be causing it?
[05:59] erujolc: you havent defining failing, what troubleshooting and debugging efforts have you gone through?
[06:05] kitt has left the channel
[06:05] Wizek has joined the channel
[06:05] takkun1946 has joined the channel
[06:06] sammmy: erujolc: I console.log(express.session) and it seems to exist
[06:06] sammmy: I also did console.log(express.session({secret:"foobar"}). Seems to work too
[06:06] sammmy: I have no errors
[06:06] sammmy: It's just that the connect.id cookie isn't on my browser.
[06:07] orlandovftw has joined the channel
[06:07] Morkel has joined the channel
[06:09] karterk has joined the channel
[06:13] ewalker has joined the channel
[06:13] sammmy: maybe it's file ownership problem. I noticed that connect is owned by another linux user.
[06:14] sammmy: Anyone know how to change ownership recursively of all my files to root?
[06:14] ljharb: sammmy: why would file permissions affect cookie settings?
[06:14] wilmoore has joined the channel
[06:14] sammmy: ljharb: I really don't know.
[06:14] ljharb: well don't go changing permissions half cocked
[06:14] ljharb: are you using the cookieparser?
[06:15] EyePulp has joined the channel
[06:15] ljharb: app.use(express.cookieParser());
[06:16] sammmy: ljharb: I have that above app.use(express.session({secret:"mysecret"});
[06:17] sammmy: Like I said, it works locally on my windows machine.
[06:17] Es0teric: ljharb that render code you gave me earlier
[06:17] Es0teric: do i put that on a .js?
[06:17] ljharb: Es0teric: you put that in your app.get handler.
[06:17] ljharb: sammmy: i'm also using something called passport, so maybe that is handling the cookie for me
[06:18] Es0teric: ljharb so then how do i handle… other things?
[06:18] RobWC has joined the channel
[06:18] ljharb: go google express routes. what are you handling besides requests?
[06:18] Es0teric: how does this work on express? i mean on node i can do a index file that directs to port 3000
[06:18] Es0teric: ljharb well right now i just want to build a quick twitter app using the streaming api
[06:19] ljharb: what sort of twitter app
[06:19] Es0teric: allows to post on timeline, and get tweets from timeline
[06:19] Es0teric: and get mentions
[06:19] Es0teric: for now
[06:19] Es0teric: but all in real time of course
[06:19] joshontheweb has joined the channel
[06:20] sammmy: ljharb: I'm not using passport. Are you saying I should use it?
[06:22] TheEmpath3 has joined the channel
[06:22] TheEmpath3: sheesh
[06:22] jetienne_ has joined the channel
[06:22] ljharb: sammmy: no, i'm saying i use it and i don't have problems
[06:22] sammmy: Maybe I should just use that then.
[06:22] sammmy: How do I use it?
[06:22] ljharb: Es0teric: twitter recommends people not make twitter clients
[06:23] Es0teric: ljharb then whats the point of the twitter api?
[06:23] Es0teric: :|
[06:23] cameron_ has joined the channel
[06:23] dshaw_: AvianFlu: Really? https://github.com/AvianFlu/fibonacci-native
[06:24] AvianFlu: dshaw_, I wanted to throw together a simple node addon
[06:24] AvianFlu: that was jesusabdullah's suggestion XD
[06:24] ljharb: Es0teric: to do interesting things with data, or integrate with other apps. there's enough clients out there
[06:24] dshaw_: ah
[06:24] dshaw_: LOL
[06:24] ljharb: haha you made a fibonacci server
[06:24] AvianFlu: even worse
[06:24] dshaw_: yeah, worse
[06:24] AvianFlu: I made a C++ addon that does the fibonacci computation
[06:25] Es0teric: ljharb i plan on extending the client further.. but for now i just want the basics to get used to this streaming data thing
[06:25] TheEmpath3: fibonacci - the web's most vital function
[06:25] TheEmpath3: using the built-in cluster with node.js on more than one core causes socket.io to spam "warn - client not handshaken client should reconnect"... ugh...
[06:25] AvianFlu: it's just turned into such a great troll algorithm
[06:25] ljharb: Es0teric: gotcha. then you'll have to initiate the stream, and listen for the chunks that come from it. i don't know much about streams.
[06:26] Es0teric: well, i have a node module specifically made for twitter streams...
[06:26] Es0teric: i just have to know how to connect to the stream and output the data i want
[06:26] Es0teric: so i just have to learn how to output the data
[06:27] bernaulli has joined the channel
[06:27] therrg has joined the channel
[06:27] sammmy: a Set-Cookie http header isn't even sent.
[06:29] jkridner__ has joined the channel
[06:30] clarkfischer_ has joined the channel
[06:33] heavysixer has joined the channel
[06:36] Es0teric: ljharb how would i process a submit event with ejs?
[06:36] ljharb: a submit *event* is client side only
[06:36] ljharb: a form submission, which is a POST, is handled with app.post
[06:37] Es0teric: hmm
[06:37] Es0teric: so then it would be
[06:37] loob2 has joined the channel
[06:38] Es0teric: where is app.post?
[06:38] vdrab has joined the channel
[06:39] Es0teric: ljharb so then i would have a seperate file that handles the post
[06:39] ljharb: post is a method on the express server object
[06:39] ljharb: all HTTP requests are handled with .get, .all, .post, etc methods. read the express documentation about them.
[06:39] jhurliman has joined the channel
[06:40] Es0teric: ljharb i am reading about them now
[06:40] Es0teric: i just wonder
[06:40] mattgifford has joined the channel
[06:40] ljharb: read first, wonder after :-)
[06:41] systemfault: The only thing I find weird in express is the bodyparser...
[06:41] systemfault: which explodes on parse error
[06:41] systemfault: When I expect something like a 400
[06:42] regality has joined the channel
[06:42] i42n has joined the channel
[06:43] arcil has joined the channel
[06:44] simenbrekken has joined the channel
[06:44] yawNO has joined the channel
[06:45] ljharb: you need a global error handler
[06:45] tornad has joined the channel
[06:46] ljharb: as the last route, do "app.use(function (request, response, next) { }" and in the { } put your error page
[06:46] jomoho has joined the channel
[06:47] aknewhope has joined the channel
[06:48] graeme_f has joined the channel
[06:48] nateps has joined the channel
[06:48] SamuraiJack has joined the channel
[06:49] mikeal has joined the channel
[06:49] fangel has joined the channel
[06:49] bernaulli has joined the channel
[06:49] bernaulli has left the channel
[06:52] Skaag has joined the channel
[07:01] meso_ has joined the channel
[07:02] pokoli has joined the channel
[07:03] maletor has joined the channel
[07:03] justfielding has joined the channel
[07:03] sammmy: Are there any other session middlewares I can use besides connects?
[07:04] lirla has joined the channel
[07:04] diogogmt has joined the channel
[07:05] ljharb: did you try passport?
[07:07] simenbrekken has joined the channel
[07:08] rmttnmd has joined the channel
[07:08] rmttnmd_ has joined the channel
[07:08] admc has joined the channel
[07:08] rmttnmd__ has joined the channel
[07:10] diogogmt has joined the channel
[07:11] gekko_ has joined the channel
[07:11] karterk_ has joined the channel
[07:11] karterk_ has joined the channel
[07:12] mikeal has joined the channel
[07:14] benvie: using the clipboard to copy and paste js objects is such a funny idea to me
[07:14] benvie: I want to do this everywhere
[07:14] benvie: hmm that should be a thing
[07:15] MerlinDMC has joined the channel
[07:16] diogogmt has joined the channel
[07:20] zackattack: how can i delete cookies in express?
[07:20] stelcheck has joined the channel
[07:20] ewalker has joined the channel
[07:22] diogogmt has joined the channel
[07:22] rook2pawn: zackattack: what session store are you using?
[07:22] zackattack: i'm not using one.
[07:23] Country has joined the channel
[07:23] sammmy: got the damn sessons to work.
[07:24] sammmy: I need to figure out how to make my node app run in the background better. I try using upstart, but it's buggy.
[07:24] zackattack: rook2pawn: looks like i can just use res.cookie()
[07:24] TheEmpath3 has joined the channel
[07:25] noganex has joined the channel
[07:26] vbd has joined the channel
[07:26] vbd has left the channel
[07:28] takkun1946: sammy: how about 'forever' > npm install forever
[07:28] takkun1946: https://github.com/indexzero/forever
[07:28] vbd has joined the channel
[07:29] takkun1946: sorry... mv'd to https://github.com/nodejitsu/forever
[07:30] vikstrous has joined the channel
[07:30] rook2pawn: zackattack: you can add to your res , res.clearCookie() and iterate through them
[07:31] zackattack: oh nice.
[07:32] rook2pawn: perhaps put a GET '/clearcookies' path and you can redirect to that, and have that redirect somewhere else
[07:36] cjm has joined the channel
[07:37] pid has joined the channel
[07:38] ParadoxQuine has joined the channel
[07:42] tornad has joined the channel
[07:43] yawNO has joined the channel
[07:43] pokoli has joined the channel
[07:43] ph^ has joined the channel
[07:46] nateps has joined the channel
[07:46] mattgifford has joined the channel
[07:48] jxie_ has joined the channel
[07:49] jimt_ has joined the channel
[07:50] fangel has joined the channel
[07:50] karterk has joined the channel
[07:50] sammmy: Is there another way to run my node processes in the background besides upstart?
[07:50] ljharb: node app.js & disown
[07:51] hipsters_ has joined the channel
[07:51] groom has joined the channel
[07:52] rendar has joined the channel
[07:54] takkun1946: sammmy: how about 'forever' > npm install forever
[07:54] takkun1946: sammmy: https://github.com/nodejitsu/forever
[07:54] TheFuzzball has joined the channel
[07:55] `3rdEden has joined the channel
[07:55] sammmy: takkun1946: I'll check it out. How do I make a already running process go into debug mode --debug?
[07:55] diogogmt has joined the channel
[07:55] galaxywatcher_ has joined the channel
[07:56] takkun1946: sammmy: i think you'd have to stop the running and re-run in debug mode, don't think you can flip the switch mid-process
[07:56] sammmy: takkun1946: I thought you could. I remember hearing something like that.
[07:57] pokoli has joined the channel
[07:58] vdrab has joined the channel
[07:58] sammmy: The V8 debugger can be enabled and accessed either by starting Node with the --debug command-line flag or by signaling an existing Node process with SIGUSR1.
[07:58] sleetdrop has joined the channel
[07:59] seaword has joined the channel
[08:00] diogogmt has joined the channel
[08:02] aliem has joined the channel
[08:03] sammmy: How do I send a signal to a process?
[08:05] takkun1946: process.kill(process.pid, 'SIGUSR1');
[08:05] takkun1946: http://nodejs.org/api/process.html#process_process_kill_pid_signal
[08:05] takkun1946: sorry... wanted to make sure that was the right one before sending
[08:05] takkun1946: seems like it should do what you want
[08:05] pokoli has joined the channel
[08:07] diogogmt has joined the channel
[08:07] karterk has joined the channel
[08:08] dannyamey has joined the channel
[08:10] michaelhartau has joined the channel
[08:11] rlidwka_ has joined the channel
[08:12] diogogmt has joined the channel
[08:13] duclv has joined the channel
[08:13] duclv: hi
[08:13] duclv: hi
[08:14] duclv: co ai ko
[08:14] AD7six has joined the channel
[08:14] stagas has joined the channel
[08:14] bodisiw has joined the channel
[08:16] thalll has joined the channel
[08:17] gabrtv has joined the channel
[08:18] diogogmt has joined the channel
[08:18] shinuza has joined the channel
[08:18] boltR has joined the channel
[08:18] yawNO has joined the channel
[08:19] cedeon has joined the channel
[08:19] cedeon_ has joined the channel
[08:19] blup has joined the channel
[08:21] ablomen has joined the channel
[08:22] mikl has joined the channel
[08:22] dob_ has joined the channel
[08:22] dobber has joined the channel
[08:24] [AD]Turbo has joined the channel
[08:24] [AD]Turbo: hi there
[08:26] josh-k has joined the channel
[08:26] [[zz]] has joined the channel
[08:26] emattias has joined the channel
[08:27] djcoin has joined the channel
[08:27] trivol has joined the channel
[08:28] ablomen has joined the channel
[08:33] ccare has joined the channel
[08:33] hzin_ has joined the channel
[08:34] stagas has joined the channel
[08:34] fangel has joined the channel
[08:34] xippi has joined the channel
[08:35] maqr has joined the channel
[08:35] Vespakoen has joined the channel
[08:35] salva has joined the channel
[08:35] seaword: Hi, I want to make some http requests to external servers, extract data from these responses and send this extracted data back to the browser.
[08:35] zackattack: Hey guys, express.clearCookie() is not working. It's not affecting my cookies. Any ideas why that might be?
[08:35] Vespakoen has left the channel
[08:36] seaword: I have the code written but am not sure how to do this in the async model, i.e. what do I do while waiting for the response form the external servers?
[08:36] seaword: This is more about me getting my head around designing my program asyncronously
[08:37] seaword: My first external call is to retrieve an access token to use an external API. I need to wait until I have this token to make any further data calls.
[08:37] neoesque has joined the channel
[08:38] zackattack: SubStack: have any experience handling cookies in express?
[08:39] toxicFork has joined the channel
[08:39] toxicFork: hi
[08:40] toxicFork: would node.js be good to be used for very small server hardware
[08:41] toxicFork: oh cool there are already guides for arm
[08:41] whitman has joined the channel
[08:41] lperrin has joined the channel
[08:43] zackattack: anyone know? nodejs, express, deleting cookies?
[08:44] erikzaadi has joined the channel
[08:44] cosmincx has joined the channel
[08:46] xbayrockx has joined the channel
[08:47] hh__ has joined the channel
[08:48] vguerra has joined the channel
[08:51] joshontheweb has joined the channel
[08:51] wookiehangover has joined the channel
[08:54] tomasztomczyk has joined the channel
[08:54] stagas has joined the channel
[08:55] yawNO has joined the channel
[08:55] DrPheltRight has joined the channel
[08:56] karbonick has joined the channel
[08:56] pors has joined the channel
[08:57] pors has left the channel
[08:57] pp01bit has joined the channel
[08:58] markwubben has joined the channel
[08:58] yawNO has joined the channel
[08:59] antdillon has joined the channel
[09:00] ccare has joined the channel
[09:00] Knowledge has joined the channel
[09:01] crodjer has joined the channel
[09:02] crodjer: I have cloned node.js repo and trying to install it in my home at ~/.local. But I can't figure out how to get around this error: http://dpaste.com/719404/
[09:02] rlidwka_: zackattack: if you want to delete a cookie, just set "undefined" to it, should work
[09:02] take_cheeze has joined the channel
[09:02] crodjer: Build works out fine
[09:02] zackattack: rlidwka_: where?
[09:02] zackattack: inside express?
[09:02] zackattack: res.setCookie('cookiename', undefined); ?
[09:02] pgte has joined the channel
[09:03] rlidwka_: yeah, smth like that
[09:03] zackattack: i'll try that...
[09:04] sorensen__ has joined the channel
[09:04] graeme_f has joined the channel
[09:04] hipsters_ has joined the channel
[09:04] zackattack: That did not work.
[09:04] zackattack: >_<
[09:05] toxicFork has left the channel
[09:06] benvie: my knowledge of cookies is limited to how to eat them
[09:07] sinclair has joined the channel
[09:07] pgte has joined the channel
[09:07] Emmanuel has joined the channel
[09:07] lperrin has joined the channel
[09:09] rlidwka_: zackattack: that should -_- Well, you can always set negative time to live, that works anywhere
[09:09] sammmy: how do you use forever to start node-inspector?
[09:09] zackattack: that does not.
[09:09] devaholic has joined the channel
[09:09] rlidwka_: hm... strange
[09:10] rendar has joined the channel
[09:12] zackattack: I agree. It's freaking annoying
[09:12] Skaag has joined the channel
[09:12] fangel has joined the channel
[09:12] rook2pawn: zackattack: did you iterate through the named properties and delete them this way on your req.cookie? also make a separate route just to test and clear like i mentioned earlier
[09:14] ctp6360 has joined the channel
[09:14] karbonick has left the channel
[09:15] zackattack: rook2pawn: will that delete the cookie locally for the user though
[09:16] zackattack: rook2pawn: i can also set req.headers.cookie i suppose...
[09:18] slaskis has joined the channel
[09:19] criswell has joined the channel
[09:19] mikedeboer has joined the channel
[09:20] booyaa: huzzah!
[09:20] maritz has joined the channel
[09:21] yawNO has joined the channel
[09:21] zackattack: =(
[09:21] zackattack: This is... so frustrating. haha
[09:21] yawNO: o/
[09:21] maritz: \o
[09:22] yawNO: sup
[09:23] maritz: sup
[09:23] Shrink has joined the channel
[09:23] yawNO: nm
[09:23] yawNO: q
[09:24] Shrink has joined the channel
[09:24] yawNO: waiting to see if they publish roots.carrotbeta.com
[09:24] maritz: just tried to auto-complete the captcha on webchat.freenode.net by pressing tab after the first char. for some reason it didn't work. i really think that's a feature they should include.
[09:24] yawNO: lol
[09:24] maritz: why don't you just got to your garden and get some carrots from there? (the root is the edible part that contains the beta-carrotins after all)
[09:25] yawNO: :(
[09:25] yawNO: check out teh link
[09:26] Vainoharhainen has joined the channel
[09:26] maritz: there's no link, only a domain :P
[09:27] yawNO: i mean
[09:27] yawNO: look at the website
[09:27] maritz: i did
[09:27] yawNO: it should be like a bootstrap
[09:27] maritz: and immediately closed it again
[09:27] yawNO: but more flexible
[09:27] yawNO: :'(
[09:27] maritz: ain't no cofffeescript gonna creep in mah projects!
[09:28] zackattack: OMFG
[09:28] zackattack: i'm using an outdated express
[09:28] yawNO: OHNOES
[09:28] yawNO: EVERYBODY RUN
[09:28] nicholasf has joined the channel
[09:28] yawNO: FOR YOUR SAKE
[09:28] yawNO: HES USING OUTDATED EXPRESS
[09:28] zackattack: hahah
[09:28] devaholic has joined the channel
[09:28] yawNO has left the channel
[09:29] zackattack: what version is current?
[09:29] yawNO has joined the channel
[09:29] yawNO: maritz: you shall fall
[09:29] maritz: 2.5.8
[09:29] yawNO: the dark side in you rising is
[09:29] yawNO: this i see
[09:29] zackattack: oh.
[09:29] zackattack: i'm using 2.5.8
[09:29] zackattack: why does it say v3 on github?
[09:30] zackattack: Express 3.x (master branch) is compatible with node 0.6.x and connect 2.x
[09:30] yawNO: its main branch
[09:30] wingie has joined the channel
[09:30] yawNO: still not published on npm
[09:30] zackattack: oic
[09:31] yawNO: but hey maritz
[09:31] kPb_in has joined the channel
[09:31] yawNO: you dont need to use coffeescript
[09:31] yawNO: you can use just sass
[09:31] yawNO: and haml
[09:31] zackattack: yawNO: once i clone the github repo, how do i include the 3.x branch in my app?
[09:31] yawNO: :>
[09:32] yawNO: zackattack: that _is_ the 3.x version
[09:32] maritz: zackattack: if looking for the latest version either look at the npm versions (npm view express) or the tags on github. the package.json in the master branch is the one that is still being developed
[09:32] zackattack: ....but how do i force my app to include *that* version, instead of the one i installed in npm?
[09:32] yawNO: use that and you should be good to go
[09:32] yawNO: zackattack: git checkout locally and use
[09:32] zackattack: where do i put it ? node_modules ?
[09:33] yawNO: var express = require('/path');
[09:33] maritz: zackattack: uninstall the npm version and remove it from your package.json as a depdendency. if that is REALLY what you want. however 3.x is not stable and not released!
[09:33] zackattack: maritz: i can't set cookies with the version i have.
[09:33] maritz: why not?
[09:33] yawNO: maritz: its bette to leave the version on npm
[09:33] yawNO: and use it locally imho
[09:33] maritz: why if he's not using it?
[09:33] zackattack: maritz: i have no clue, but the server seems to be ignoring my writes
[09:33] nafis has joined the channel
[09:33] maritz: oO
[09:34] maritz: works fine for me
[09:34] jerrysv has joined the channel
[09:34] yawNO: cuz if something breaks hecan fallback immediately :D
[09:34] maritz: show us a gist or working demo?
[09:34] zackattack: app.get("/path", function(req, res) { res.cookie('blah', 'boo'); });
[09:34] yawNO: breaking demo
[09:34] zackattack: that *should* work, right?
[09:34] xSmurf has joined the channel
[09:34] robi42 has joined the channel
[09:34] yawNO: doesnt express use res.session w/ cookies?
[09:35] maritz: yawNO: because npm install express is such a pain? honestly the danger of accidentally including the wrong version somewhere if you have 2 is too much of a downside imo
[09:35] yawNO: req.session
[09:35] zackattack: do i need to include a session store in order to use cookies?
[09:35] maritz: i don't think so
[09:35] yawNO: i thought it was req.session
[09:35] yawNO: not res.session
[09:35] maritz: but you do need the cookieParser
[09:35] hh__: http://search.npmjs.org/#/couch <--- what's the github for this
[09:35] zackattack: i do have cookie parser
[09:35] yawNO: amirite?
[09:35] maritz: yawNO: he's not talking about sessions, shut up :P
[09:35] yawNO: same
[09:36] yawNO: req.cookie
[09:36] yawNO: not res.cookie
[09:36] yawNO: or am i wrong?
[09:36] maritz: http://expressjs.com/guide.html#res.cookie()
[09:36] maritz: yes you are
[09:36] yawNO: havent used express for quite a while
[09:36] yawNO: :( okay
[09:37] jetienne_ has joined the channel
[09:37] maritz: so, what does the browser get as response headers?
[09:37] zackattack: res.cookie is for writing.
[09:37] maritz: zackattack:
[09:37] zackattack: maritz: how can i see the response headers in chrome?
[09:37] maritz: in the chrome webdev tools network tab?!
[09:37] maritz: how do you know they're not being written?
[09:38] zackattack: because i inspect document.cookie
[09:38] jemparing has joined the channel
[09:39] robi42_ has joined the channel
[09:40] zackattack: maritz: i don't see any response cookies.
[09:40] maritz: that's not a good way to check for cookies :D
[09:40] rt7 has joined the channel
[09:40] maritz: can you give a gist and/or url to your page?
[09:40] zackattack: yeah, one sec.
[09:40] zackattack: let me upload the latest attempt
[09:42] madhums has joined the channel
[09:42] hellp has joined the channel
[09:43] zackattack: maritz: i finally found the bug!
[09:43] zackattack: maritz: it's because i was doing a res.redirect() before I did a res.render() .....
[09:43] zackattack: so it ignored all the cookies i was writing.
[09:43] zackattack: ACTION augh
[09:44] maritz: that'd do it :D
[09:44] diogogmt has joined the channel
[09:44] thqloz has joined the channel
[09:44] maritz: although i'm not sure if redirect shouldn't write the cookie as well, maybe that's worth a bug report? (not sure if it's allowed to send cookies on 30x responses though)
[09:45] mike has joined the channel
[09:45] zackattack: okay... still not working.
[09:46] jimmysparkle has joined the channel
[09:47] maritz: yeah, looking at the code, res.redirect should write the headers anyways, so that can't be it.
[09:48] herbySk has joined the channel
[09:48] zackattack: you're looking at the express code?
[09:48] maritz: possible problems: you set httpOnly: true, the maxAge is too short, your document.cookie check is wrong (use chrome webdev tools resource tab to check for cookies instead)
[09:48] maritz: yes
[09:49] wingie has joined the channel
[09:49] mcoolin has left the channel
[09:49] zackattack: I just want to delete 3 cookies, nuke them, at all costs.
[09:49] zackattack: bb_sessionhash, bb_userid, and bb_password
[09:49] maritz: change your domain
[09:49] zackattack: What cookie() method will delete them at all costs?
[09:50] zackattack: the domain is blank in chrome webdev
[09:50] maritz: from the server? set maxAge to 1
[09:50] maritz: domain is blank? what does that even mean?
[09:51] zackattack: res.cookie('bb_sessionhash', '', { maxAge: 1});
[09:51] zackattack: like that?
[09:51] maritz: yes
[09:51] zackattack: ACTION tries again
[09:51] TomY has joined the channel
[09:52] zackattack: nope, not working
[09:52] zackattack: maritz: the url is compassionpit.com/logout
[09:52] samal has joined the channel
[09:53] pokoli has joined the channel
[09:55] maritz: zackattack: btw: i was wrong. maxage can be a problem with different zimezones or wrong clocks
[09:55] maritz: rather set expires: 0
[09:55] ant0no has joined the channel
[09:55] maritz: expires: new Date(0)
[09:55] maritz: i think
[09:55] zackattack: ACTION tries...
[09:56] maritz: the cookies were pretty messed up in the headers, but now it looks better. did you change the value to "LO"?
[09:57] tvw has joined the channel
[09:58] mikedeboer has joined the channel
[09:58] zackattack: yeah.
[09:59] zackattack: it's still not clearing effectively, however.
[09:59] Vennril has joined the channel
[10:01] maritz: hm, where does it set the cookie initially? because i don't have these cookies after going to the logout page
[10:01] savudin has joined the channel
[10:02] zackattack: once you log in to the vbulletin forum -
[10:02] zackattack: at http://www.compassionpit.com/forum/
[10:03] yawNO has joined the channel
[10:04] stagas has joined the channel
[10:05] zackattack: maritz: do you mind registering an account?
[10:05] maritz: zackattack: no need, the bb_sessionhash is set without registering
[10:06] zackattack: ah, ok, cool..
[10:06] maritz: i completely overlooked this convenience function btw: res.clearCookie(name[, options])
[10:06] maritz: try using that
[10:07] maritz: it doesn essentially the same, but who knows
[10:09] markwubben has joined the channel
[10:09] zackattack: i've tried that, haha.
[10:09] stagas has joined the channel
[10:10] zackattack: ACTION tries again anyway
[10:10] zackattack: what options would you recommend, given these cookies?
[10:10] mikl has joined the channel
[10:12] argami has joined the channel
[10:12] zackattack: yea, it's not working
[10:12] Vespakoen_ has joined the channel
[10:12] dannyamey has joined the channel
[10:14] Wizek has joined the channel
[10:16] shinuza_ has joined the channel
[10:17] ditesh|cassini has joined the channel
[10:18] thedev has joined the channel
[10:19] argami_ has joined the channel
[10:19] thedev: hi. just installed node.js via Win Installer unfortunately node is not available in cmd. Any ideas ?
[10:21] bradleyg has joined the channel
[10:25] Shrink has joined the channel
[10:25] Shrink has joined the channel
[10:26] thedev: hi. just installed node.js via Win Installer unfortunately node is not available in cmd. Any ideas ?
[10:27] Zharktas: configure your path environment variable
[10:29] Vespakoen has joined the channel
[10:29] hellp has joined the channel
[10:30] Vespakoen has left the channel
[10:32] thedev: Zharktas path variable allready set
[10:32] jimt has joined the channel
[10:32] mehlah has joined the channel
[10:33] tisba has joined the channel
[10:33] rurufufuss has joined the channel
[10:33] Zharktas: restarted your cmd after setting the variable ?
[10:35] knirhs has joined the channel
[10:36] pickelsss has joined the channel
[10:36] thedev: yes, the variable is allready set by the installer
[10:37] __doc__ has joined the channel
[10:38] tomasztomczyk has joined the channel
[10:44] stagas has joined the channel
[10:44] pgte has joined the channel
[10:45] sgupta has joined the channel
[10:46] piscisaureus_ has joined the channel
[10:47] _class_ has joined the channel
[10:47] shen-ninja has joined the channel
[10:52] tomasztomczyk has joined the channel
[10:54] stagas has joined the channel
[10:55] zackattack has joined the channel
[10:58] josh-k has joined the channel
[11:03] erujolc has joined the channel
[11:05] umren has joined the channel
[11:06] devongovett has joined the channel
[11:07] vdrab has joined the channel
[11:07] enmand has joined the channel
[11:09] erujolc_ has joined the channel
[11:09] HardFu has joined the channel
[11:09] HardFu has joined the channel
[11:12] skomski has joined the channel
[11:13] fangel has joined the channel
[11:14] aaronmcadam has joined the channel
[11:14] stagas has joined the channel
[11:14] argami has joined the channel
[11:15] newbie_ has joined the channel
[11:17] stafamus has joined the channel
[11:17] micheil has joined the channel
[11:18] eldar has joined the channel
[11:23] disappearedng has joined the channel
[11:25] mikl has joined the channel
[11:25] _rockbot_ has joined the channel
[11:26] kukkelundin has joined the channel
[11:26] a_suenami has joined the channel
[11:28] lperrin has joined the channel
[11:29] rickibalboa has joined the channel
[11:30] aslant has joined the channel
[11:31] dylang has joined the channel
[11:31] sgupta has joined the channel
[11:33] i42n has joined the channel
[11:34] satyr has joined the channel
[11:35] cryptix has joined the channel
[11:37] hzin has joined the channel
[11:39] dr0id has joined the channel
[11:41] pt_tr has joined the channel
[11:43] baudehlo has joined the channel
[11:44] larsschenk has joined the channel
[11:44] pandeiro has joined the channel
[11:44] larsschenk1 has joined the channel
[11:45] larsschenk1 has left the channel
[11:45] francisl has joined the channel
[11:48] justfielding has joined the channel
[11:51] fairwinds has joined the channel
[11:53] rjack has joined the channel
[11:54] thinkt4nk has joined the channel
[11:54] stagas has joined the channel
[11:55] hackband has joined the channel
[11:55] danjuro has joined the channel
[11:55] argami_ has joined the channel
[11:58] argami has joined the channel
[11:59] heavysixer has joined the channel
[12:00] hcchien has joined the channel
[12:01] vdrab has joined the channel
[12:02] erichynds has joined the channel
[12:02] DrPheltRight has joined the channel
[12:02] DrPheltRight has joined the channel
[12:04] infynyxx has joined the channel
[12:05] benvie: hah this last NodeUp makes me think that the approach...if you're going to hack something then you better go broke or go home and make it clear that you're the shit breaking everything
[12:05] benvie: that's my strategy
[12:05] benvie: just terrible riduclous hacks on line one
[12:05] benvie: there be dragons here
[12:07] _tors has joined the channel
[12:07] sandfox has joined the channel
[12:10] whaley has joined the channel
[12:10] tobAIdo has joined the channel
[12:12] dragansah has joined the channel
[12:12] Ricket has joined the channel
[12:13] dragansah has joined the channel
[12:13] erikzaadi has joined the channel
[12:15] rhio has joined the channel
[12:17] tobAIdo: Hello, is there any way I can use tab completion for predefined stdin commands in a CLI?
[12:17] thinkt4nk has joined the channel
[12:19] thirdknife has joined the channel
[12:19] jmar777 has joined the channel
[12:20] jimmyy111 has joined the channel
[12:20] ditesh|cassini has joined the channel
[12:24] jacobolus has joined the channel
[12:25] thinkt4nk has joined the channel
[12:26] wankdanker has joined the channel
[12:29] erujolc has joined the channel
[12:29] arthurdebert has joined the channel
[12:29] karterk has joined the channel
[12:29] chrisinajar: tobAIdo: readline
[12:30] dividinglimits has joined the channel
[12:30] tobAIdo: you have any resources?
[12:30] fumanchu182 has joined the channel
[12:30] fumanchu182 has joined the channel
[12:32] tobAIdo: Oh I found it in the nod doc. This looks like what I was looking for. Thank you
[12:32] chrisinajar: look it up, it's wicked simple. i can also show you some code i used to make it look more normal while lines are printing and you're typing
[12:32] chrisinajar: i use it in my TTfm bot
[12:33] chrisinajar: tobAIdo: i use ansi control characters to move around text: https://github.com/chrisinajar/roboJar/blob/master/robotJar/robot.js#L156
[12:33] artusrocha has joined the channel
[12:35] sharkbird has joined the channel
[12:38] subbyyy has joined the channel
[12:39] flamboz has joined the channel
[12:40] mounibec has joined the channel
[12:43] retornam has joined the channel
[12:43] paulcrawford has joined the channel
[12:44] vkareh has joined the channel
[12:44] paulcrawford has joined the channel
[12:45] paulcrawford has joined the channel
[12:45] argami_ has joined the channel
[12:46] briancray has joined the channel
[12:47] jtsnow has joined the channel
[12:49] hcchien has joined the channel
[12:51] Joeysomo has joined the channel
[12:51] yawNO has joined the channel
[12:51] yawNO: and back
[12:51] robi42 has joined the channel
[12:51] Progster has joined the channel
[12:51] maritz: oh noew
[12:52] ramitos has joined the channel
[12:52] mikl has joined the channel
[12:52] yawNO: :( okay
[12:52] yawNO: ACTION parts
[12:52] maritz: ACTION is happy
[12:52] benvie: man it's amazing how much of a difference simlpy reordering the documentation for something can do for peoples impression of it.
[12:52] yawNO: i've just made my lvl30 pokemon evolve
[12:52] ziro` has joined the channel
[12:52] yawNO: what could possibly go wrong now
[12:54] WarheadsSE: hmm, lvl99 mewtwo and get is ass kicked into obvlivion ?
[12:54] cryptix has joined the channel
[12:55] ramitos has joined the channel
[12:56] gekko_ has joined the channel
[12:57] Ricket has joined the channel
[12:57] boogyman has joined the channel
[12:59] lazyshot has joined the channel
[13:00] ph^ has joined the channel
[13:00] lmorchard has joined the channel
[13:00] jimmyrcom has joined the channel
[13:06] bnoordhuis_ has joined the channel
[13:07] harrymoore has joined the channel
[13:08] ramitos has joined the channel
[13:08] joshfinnie has joined the channel
[13:08] styol has joined the channel
[13:09] yogig has joined the channel
[13:09] harrymoore has left the channel
[13:09] harrymoore has joined the channel
[13:09] bnoordhuis has joined the channel
[13:10] madtimber has joined the channel
[13:11] argami has joined the channel
[13:12] lduros has joined the channel
[13:12] argami__ has joined the channel
[13:14] fermion has joined the channel
[13:14] dylang has joined the channel
[13:14] AaronMT has joined the channel
[13:14] argami has joined the channel
[13:15] brianseeders has joined the channel
[13:15] hcchien has joined the channel
[13:16] crutex has joined the channel
[13:16] automata has joined the channel
[13:19] kukkelundin has joined the channel
[13:19] tornad has joined the channel
[13:20] kPb_in_ has joined the channel
[13:20] erikzaadi has joined the channel
[13:21] kukkelundin has left the channel
[13:21] infynyxx has joined the channel
[13:21] PPPaul has joined the channel
[13:22] YoY has joined the channel
[13:27] Rushing has joined the channel
[13:32] thomblake has joined the channel
[13:32] thomblake has left the channel
[13:33] IrishGringo has joined the channel
[13:33] CromeDome has joined the channel
[13:34] Knowledge has joined the channel
[13:34] hackband has joined the channel
[13:34] stagas has joined the channel
[13:35] davidsklar has joined the channel
[13:37] TomY has joined the channel
[13:38] bbttxu has joined the channel
[13:40] Poetro has joined the channel
[13:41] bkaney has joined the channel
[13:43] pgte has joined the channel
[13:43] sadjow has joined the channel
[13:43] Wizek has joined the channel
[13:44] KingInky has joined the channel
[13:44] KingInky: anyone here have experience using the connect module? i just downloaded some source for a socket.io-sessions example and it won't run. it says "Can't GET /" when i try to access the server via browser.
[13:45] c4milo has joined the channel
[13:45] devdazed has joined the channel
[13:45] karterk_ has joined the channel
[13:46] forste has joined the channel
[13:47] mdiedric has joined the channel
[13:48] shiva__ has joined the channel
[13:48] sadjow has left the channel
[13:48] shiva__: hi
[13:48] tisba has joined the channel
[13:48] shiva__: anybody is there in online?
[13:48] shiva__: please ping me
[13:49] dr0id: everyone has gone home, please come tommorrow.
[13:49] colinclark has joined the channel
[13:49] mansoor has joined the channel
[13:49] shiva__: stupid.
[13:50] forste: I'm here
[13:50] shiva__: hi
[13:50] forste: hi
[13:50] nicholasf has joined the channel
[13:50] shiva__: how r u?
[13:50] forste: u know how to ping irssi ?
[13:50] forste: :D
[13:50] forste: using first time for some years..
[13:50] dukeytoo has joined the channel
[13:50] shiva__: no.. i am new to this..
[13:51] arduix has joined the channel
[13:51] shiva__: r u node developer?
[13:51] rauchg has joined the channel
[13:51] shiva__: forste, u r node developer?
[13:51] savudin has joined the channel
[13:51] _rockbot_ has joined the channel
[13:52] bkaney has joined the channel
[13:52] forste: no, just using it
[13:52] savudin: i like node.js
[13:52] savudin: very much!
[13:52] forste: yeah
[13:52] _rockbot_: hey y'all, is there a socket.io channel?
[13:52] shiva__: oh k.. where r u from?
[13:52] dr0id: he's from alabama
[13:52] bnoordhuis: _rockbot_: #socket.io or #socketio i think
[13:53] shiva__: hi savudin..
[13:53] shiva__: hello savudin
[13:53] dr0id: hi shiva__
[13:53] dr0id: hello shiva
[13:54] shiva__: hi droid
[13:54] forste: does anybody know where I can get sort of an javascript API for node.js
[13:54] phlff has joined the channel
[13:54] WarheadsSE: forste: what?
[13:54] dr0id: heh
[13:54] shiva__: friends please help me how to start node.js project..
[13:54] WarheadsSE: you mean this forste ? http://nodejs.org/api/index.html
[13:54] johnstorey has joined the channel
[13:55] dr0id: shiva__: did you try google.com ?
[13:55] forste: since it's built on v8 which is itself implementing ecma-262, 5th edition, I have been looking there but couldn't find anything
[13:55] dr0id: lol
[13:55] shiva__: yeah i got only articles..
[13:55] harrymoore: shiva_: start here http://nodetuts.com/index.html
[13:55] WarheadsSE: shiva__: howtonode , nodebeginner
[13:56] forste: WarheadsSE: thanks but I meant something like an API for the underlying language itself (e.g. specific documentation for Array.bind)
[13:56] WarheadsSE: ah... v8
[13:56] WarheadsSE: nodejs is just JS w/ some libs, eventing, etc.
[13:56] tomasztomczyk has joined the channel
[13:57] hcchien has joined the channel
[13:57] CromeDome has joined the channel
[13:57] shiva__: thanks warheadss and droid
[13:57] panchot has joined the channel
[13:57] KingInky: warheads: what was it you suggested i check out for socket.io "sessions". i think it was you who suggested something to do with redis.
[13:57] tobAIdo: can anyone give me an example of the completer function argument for createInterface? http://nodemanual.org/0.6.7/nodejs_ref_guide/readline.html#readline.createInterface
[13:57] shiva__: anyone using node.js now..
[13:57] WarheadsSE: i mentioned using memroy store
[13:57] KingInky: that's right. thanks.
[13:57] WarheadsSE: but it works decent with redis
[13:58] pickelsss has joined the channel
[13:58] WarheadsSE: shiva__: I'm sorry, but ath is a DERP question. This room is full of node.js users.
[13:58] DrPheltRight_ has joined the channel
[13:58] savudin: shiva__ http://www.nodebeginner.org is a good beginners resource
[13:58] WarheadsSE: KingInky: https://github.com/archlinuxarm/plugbuild-UI/blob/master/server.js
[13:59] savudin: shiva__ just went trough it myselfe
[13:59] KingInky: kk. i feel like i should be pretty clear though. i don't want to use sessions that come from express or connect or the like. what i'm trying to do is write a little client for my website that will allow me to chat back and forth with guests on my website.
[13:59] carlyle has joined the channel
[13:59] WarheadsSE: ok
[13:59] shiva__: oh sorry.. this is the first time using this site..
[13:59] KingInky: and this chat client needs to be persistent across page changes. so if they go to a new page i need their conversation to be in tact.
[13:59] shiva__: thanks for all..
[14:00] KingInky: that's why it's so difficult. if i did a popup window itd be easy, but i want it to work across the whole site.
[14:00] WarheadsSE: KingInky: ahm.. yeah that will be interesting to implement without storage..
[14:00] KingInky: totally, man. it's going to be quite the undertaking but i just need a solid strategy as to how to go about it
[14:00] KingInky: that's where im having trouble.
[14:00] WarheadsSE: hmm
[14:01] WarheadsSE: i still say session + persistent storage..
[14:01] KingInky: the thing is is when someone leaves page 1 and goes to page 2, their socket is going to be closed and re-opened.
[14:01] shiva__: please give ur mail id's.. if i struck in node.js , i will contact u..
[14:01] KingInky: so someone i have to keep track of who's who
[14:01] panchot has joined the channel
[14:01] WarheadsSE: yes, and there is where the session comes in
[14:01] savudin: shiva__ :)
[14:01] zzen has joined the channel
[14:01] shiva__: tell me savudin
[14:01] WarheadsSE: store their conversation in the session info (via whatever means) and pass the content back and forth via JSON
[14:02] KingInky: didn't think about JSON
[14:02] WarheadsSE: shiva__: you'll find us here.
[14:02] savudin: exactely
[14:02] shiva__: @warheadssE
[14:02] shiva__: u have any sample projects
[14:02] shiva__: using node.js
[14:02] KingInky: warheads: cool man. i just need to find out how to uniquely identify people. any ideas there? (thanks for all the help btw)
[14:03] KingInky: shiva__: google, man :]
[14:03] KingInky: node.js examples
[14:03] ewalker has joined the channel
[14:03] KingInky: i COULD use IPs but i want to avoid that if possible.
[14:03] KingInky: cookies?
[14:03] savudin: shiva__ here's one https://github.com/creationix/wheat
[14:03] shiva__: thanks savudin..
[14:04] WarheadsSE: KingInky: yes:p session ID!
[14:04] shen-ninja has joined the channel
[14:04] WarheadsSE: good thing this is a nerf bat :p
[14:04] WarheadsSE: bonk bonk
[14:04] KingInky: lol
[14:04] mandric has joined the channel
[14:04] KingInky: im not at my brightest. i've been up all night
[14:04] Wizek has joined the channel
[14:04] shiva__: savudin, how to setup this eg in ubuntu?
[14:04] WarheadsSE: and im currnelty rather heavily medicated :p
[14:04] KingInky: but that's going to be what i try
[14:05] WarheadsSE: shiva__: google ubuntu ppa nodejs
[14:05] KingInky: yeah, i took some vyvanse :P what'd u take?
[14:05] savudin: shiva__ it's in readme
[14:05] WarheadsSE: flexoril & vicodin 5/500 .. back is tweaked
[14:05] KingInky: shiva__: node.js was very easy to install on ubuntu 11.10, least for me
[14:05] jxie has joined the channel
[14:05] KingInky: ow man
[14:05] KingInky: glad u got pain pills
[14:06] zzen: hi, anybody here willing to help with a quick node-http-proxy question? trying to setup a forward proxy within another http server
[14:06] KingInky: zzen: what's the question :P
[14:07] zzen: Kinglnky: just that: who do I setup forward proxy within another http server?
[14:07] shiva__: oh thanks friends.. next time how can i identify u uniquely
[14:07] zzen: there's docs on how to setup a RoutingProxy within another server, but that's a reverse proxy, not forward
[14:08] JSONB has joined the channel
[14:08] KingInky: zzen: DOH! forgive me, im basically retarded right now
[14:08] WarheadsSE: most likely we'll have the same nicks shiva__
[14:09] KingInky: and, zzen, wish i could help but im afraid what you're doing is a bit beyond me.
[14:09] shiva__: oh k warheadsSE
[14:09] WarheadsSE: zzen: so.. GET /other/* > node > somwhere else?
[14:09] forste` has joined the channel
[14:10] zzen: WarheadsSE: yeah, but including Host HTTP header rewriting etc
[14:10] zzen: WarheadsSE: which is why I'm trying to avoid rolling my own proxy and using https://github.com/nodejitsu/node-http-proxy instead
[14:10] totallymike has joined the channel
[14:10] WarheadsSE: http://stackoverflow.com/questions/4966655/node-js-as-a-forwarding-proxy-but-changing-the-url-path
[14:10] jryans has joined the channel
[14:10] forste`: another question concerning that Array.bind: why is it included in node but not on the ecma standard node is based on (http://www.ecma-international.org/publications/standards/Ecma-262.htm) - which library is it in?
[14:10] forste`:
[14:10] WarheadsSE: ACTION blink
[14:10] WarheadsSE: what
[14:11] CIA-19: libuv: 03Ben Noordhuis 07master * r8ce8bfa 10/ (test/test-get-memory.c test/test-platform-output.c): test: fix format string warnings - http://git.io/iogCuA
[14:11] CIA-19: libuv: 03Ben Noordhuis 07master * rc9c9d80 10/ src/unix/stream.c :
[14:11] CIA-19: libuv: unix: ignore ECONNABORTED errors from accept()
[14:11] CIA-19: libuv: ECONNABORTED means that the connection was torn down by the peer before the
[14:11] CIA-19: libuv: TCP handshake completed. Ignore it, there's nothing we can do and it simplifies
[14:11] CIA-19: libuv: error handling for libuv users. - http://git.io/rWhCUg
[14:11] WarheadsSE: well here is teh github https://github.com/joyent/node
[14:11] quinnirill has joined the channel
[14:11] zzen: WarheadsSE: yep, that's exactly what's I'm trying to do, but now instead of running it on a separate port, run it inside my own http server… like the RoutingProxy() docs in here: https://github.com/nodejitsu/node-http-proxy
[14:12] TomY has joined the channel
[14:12] quinnirill: hey guys!
[14:12] rwaldron has joined the channel
[14:12] quinnirill: anyone know how I should go about with this: https://groups.google.com/forum/#!topic/nodejs/DGfVLWN0I0A ?
[14:12] quinnirill: I'm trying to create a sound module for node
[14:13] tmcw has joined the channel
[14:13] WarheadsSE: zzen: looks like it will go both ways
[14:13] WarheadsSE: check the examples in that package.
[14:13] plutoniix has joined the channel
[14:13] _tors has joined the channel
[14:14] zzen: WarheadsSE: sorry, a bit think right now… short snippet?
[14:14] chadskidmore has joined the channel
[14:14] zzen: think -> thick
[14:14] WarheadsSE: quinnirill: unfortunately, I can't help you on that one myself.
[14:14] arcil has joined the channel
[14:14] WarheadsSE: zzen: I've never done that, soo...
[14:15] kirbysayshi has joined the channel
[14:15] quinnirill: WarheadsSE: got any pointers on whom I should ask?
[14:16] WarheadsSE: check sources from other c,, bindings?
[14:16] totallymike: I wonder if there are any women in here. I could do with a beer.
[14:16] totallymike: :P
[14:17] quinnirill: WarheadsSE: yeah, done that, I haven't found one that does anything with ArrayBuffers yet
[14:17] WarheadsSE: nodejs buffer object = ArrayBuffer ?
[14:18] WarheadsSE: heh.. I can write Perl XS, but haven't delved into c++ extensions for nodejs yet
[14:19] quinnirill: hehe
[14:19] johnstorey has joined the channel
[14:20] benvie: a certain TooTallNate was doing a bit of experimentation with that
[14:20] benvie: lemme see if I can find the gist
[14:20] quinnirill: yeah, I can't find ArrayBuffers in the headers either, so that doesn't work too well
[14:20] infynyxx has joined the channel
[14:20] WarheadsSE: who all will be at node.ph ? Is it worth me bothering to take time off & buying aticket :p
[14:21] yawNO has joined the channel
[14:21] reed has joined the channel
[14:21] phoochka has joined the channel
[14:21] Venom_X has joined the channel
[14:22] benvie: https://gist.github.com/2013773/0b1e4f856298adfb39c881cc24c7ee30d861b6a3
[14:22] benvie: it's a node buffer
[14:22] benvie: but it involves the C land and js land thing
[14:23] pendlepa1ts has joined the channel
[14:23] benvie: lol sealand
[14:23] yawNO: lets buy sealanf
[14:23] quinnirill: yeah, I guess I'll have to go with node buffers for now
[14:23] yawNO: d
[14:23] quinnirill: benvie: thx ^^
[14:23] benvie: thank Nate when you see him =F
[14:23] quinnirill: ^^
[14:24] rtgibbons has joined the channel
[14:24] willwhite has joined the channel
[14:24] benvie: oh also
[14:24] benvie: it's kind of possible to make ArrayBufferViews with a node buffer as backing
[14:25] benvie: I mean it is possible
[14:25] benvie: but has some cavaets
[14:26] benvie: actually no that's wrong
[14:26] benvie: the cavaets only come with a node buffer backed using an arraybuffer
[14:26] benvie: the other way around is no problem
[14:26] reed_ has joined the channel
[14:26] quinnirill: cool
[14:27] quinnirill: I think I'll use buffers for now, then switch over to ArrayBuffers when possible / I know how
[14:27] zpao has joined the channel
[14:27] benvie: new DataView(new Buffer(50)) will get you good stuff
[14:28] benvie: in case you wanted to use the api now or something
[14:28] benvie: it's somewhat annoying trying to normalize between node's buffers and arraybuffers if you need to just because of random small differences in names
[14:28] WarheadsSE: Anyone have a better idea of how to manage a streamed message protocol ? https://github.com/WarheadsSE/node-gntp/blob/master/node_modules/GNTP.js#L449
[14:28] quinnirill: Hmm, I think that makes a copy though
[14:28] benvie: and how you specify endianness is different
[14:28] benvie: not difficult just a bit of annoying
[14:29] benvie: nope check it
[14:29] benvie: the arraybuffer's buffer property is the buffer you gave it
[14:29] benvie: so you're good to go
[14:30] jscheel has joined the channel
[14:30] jscheel has joined the channel
[14:30] warz has joined the channel
[14:30] benvie: I dunni why I didn't just use this before
[14:30] benvie: damn it
[14:30] benvie: oh what version of node are you using
[14:30] benvie: I forgot this may have been recentish
[14:31] dylang has joined the channel
[14:31] benvie: I doubt it's in 0.6.x but I always forget about that
[14:31] dthompso99 has joined the channel
[14:31] quinnirill: ohhh
[14:31] dthompso99 has left the channel
[14:31] quinnirill: it doesn't create a copy
[14:31] quinnirill: awesome
[14:31] tomasztomczyk has joined the channel
[14:32] quinnirill: benvie: thanks a lot!
[14:32] jaha has joined the channel
[14:32] benvie: to go the other way though a bit more tricky you do like
[14:32] quinnirill: oh well, that's a problem to be solved later :P
[14:32] benvie: new Buffer(new ArrayBuffer(50), 0, 50) but there's issues with aignment or something
[14:32] benvie: no problem =D
[14:33] quinnirill: now I need to get this working
[14:33] benvie: anyway the Buffer backed ArratBufferViews are mostly what you want anyway
[14:33] cognominal has joined the channel
[14:33] johnstorey has joined the channel
[14:33] bshumate has joined the channel
[14:34] bartt has joined the channel
[14:35] tmcw has joined the channel
[14:35] benvie: I don't know what the hell I was thinking bothering to make a thing to normalize Buffer to briowser stuff cause it already exists and its name if DataView
[14:36] djbell has joined the channel
[14:37] niclone has joined the channel
[14:37] Leemp2 has joined the channel
[14:37] AD7six has joined the channel
[14:38] jaha: Anyone have experience with node-canvas? I cant seem to get a simple img.src to work? [img.src = app.settings.root+'/public/files/test.jpg';]
[14:40] dukeytoo has joined the channel
[14:40] bartt1 has joined the channel
[14:41] reed_ has joined the channel
[14:41] teste has joined the channel
[14:42] Andy1991 has joined the channel
[14:42] Destos has joined the channel
[14:43] diverdude has joined the channel
[14:43] bartt has joined the channel
[14:43] diverdude: When i try to run: sudo curl http://npmjs.org/install.sh | sh i get the error: Please try running this command again as root/Administrator. But I have already put sudo in front???
[14:44] dukeytoo: diverdude: Put sudo near the end, like | sudo sh
[14:45] stantona has joined the channel
[14:45] PatF has joined the channel
[14:45] kmiyashiro has joined the channel
[14:46] diogogmt has joined the channel
[14:46] MrSmurf has joined the channel
[14:47] mikl has joined the channel
[14:47] YoY has joined the channel
[14:48] Wizek has joined the channel
[14:48] fatjonny has joined the channel
[14:48] PatF has joined the channel
[14:48] diverdude: dukeytoo: thx
[14:49] adambeynon has joined the channel
[14:50] ovaillancourt has joined the channel
[14:50] dr0id has left the channel
[14:51] baudehlo has joined the channel
[14:52] cjlicata has joined the channel
[14:53] PatF has joined the channel
[14:53] Wizek_ has joined the channel
[14:55] shinuza has joined the channel
[14:56] vbd has joined the channel
[14:56] diverdude: Hmmm im trying to install socket.io via npm, but get this error: http://bin.cakephp.org/view/670119658
[14:56] wingie has joined the channel
[14:57] reed has joined the channel
[14:58] shen-ninja has joined the channel
[14:58] johnstorey has joined the channel
[14:58] redir has joined the channel
[14:59] vipaca has joined the channel
[14:59] vipaca has joined the channel
[15:00] KingInky: argh... im using the mysql module to run a COUNT(*) query. it gives back the results fine, but stores them in an object like { 'COUNT(*)': 3 }
[15:00] AviMarcus has joined the channel
[15:00] KingInky: how the hell do i access that? it says undefined
[15:00] KingInky: i can't really do results.COUNT(*)
[15:01] Edy has joined the channel
[15:02] baudehlo: results['COUNT(*)']
[15:02] baudehlo: or alias the column.
[15:02] diverdude: anyone?
[15:03] KingInky: yeah, i tried results['COUNT(*)'] which returns "undefined".
[15:03] KingInky: how do i go about aliasing?
[15:03] baudehlo: select COUNT(*) AS numrows FROM table
[15:03] KingInky: is thatr something from within mysql, or within the node module?
[15:03] Edy has joined the channel
[15:03] KingInky: ohhh
[15:03] KingInky: ok
[15:03] KingInky: thank u
[15:03] WarheadsSE: KingInky: count(*) as cnt
[15:03] KingInky: awesome
[15:03] KingInky: thx
[15:03] AvianFlu: diverdude, what OS
[15:03] WarheadsSE: woo laggy mind :p
[15:04] diverdude: AvianFlu: ubuntu
[15:04] quinnirill: anyone know how I can cast a node Buffer to Local?
[15:04] diverdude: AvianFlu: or actually linux mint...but its almost the same
[15:04] KingInky: lol never actually needed to alias a column before :P
[15:04] KingInky: good thing to know
[15:04] AvianFlu: diverdude, "sudo apt-get install build-essential"
[15:04] yawNO: anyone has exp w/ clientside mvc?
[15:04] AvianFlu: might be "build-essentials"
[15:05] yawNO: should i use backbone? knockout? amber?
[15:05] AvianFlu: your problem is that you don't have a build toolchain installed, diverdude
[15:05] isaacs has joined the channel
[15:05] halfhalo has joined the channel
[15:05] baudehlo: actually looks like node didn't put node-waf in the path
[15:06] diverdude: AvianFlu: i still get the error
[15:06] robm has joined the channel
[15:06] Wizek has joined the channel
[15:06] quinnirill: benvie: you know how I can cast a Buffer to Local?
[15:06] benvie: mm can you do that?
[15:06] benvie: I think you can just do that
[15:07] quinnirill: hmm...
[15:07] benvie: uhh sec
[15:07] quinnirill: it doesn't seem to work out of the box
[15:07] diverdude: AvianFlu: http://bin.cakephp.org/view/422196995
[15:07] benvie: ooh
[15:07] benvie: are you on windows/
[15:07] quinnirill: nope, Arch Linux
[15:07] baudehlo: diverdude: you're just missing node-waf.
[15:07] baudehlo: how did you install node?
[15:07] diverdude: baudehlo: yeah i did
[15:08] baudehlo: "how"
[15:08] colinclark has joined the channel
[15:08] diverdude: like this
[15:08] diverdude: sudo apt-get install python-software-properties
[15:08] diverdude: sudo add-apt-repository ppa:chris-lea/node.js
[15:08] diverdude: sudo apt-get update
[15:08] diverdude: sudo apt-get install nodejs
[15:08] baudehlo: eww
[15:08] M1l3n1um has joined the channel
[15:08] baudehlo: install from source.
[15:08] diverdude: i have v0.6.13
[15:08] colinclark has joined the channel
[15:08] diverdude: baudehlo: makes no sense to install from source. PPA should be the same
[15:09] baudehlo: can you dpkg -l nodejs
[15:09] benvie: oh derp
[15:09] baudehlo: sorry dpkg -L nodejs I mean
[15:09] cyphase has joined the channel
[15:10] baudehlo: or even: dpkg -L nodejs | grep node-waf
[15:10] jocafa has joined the channel
[15:10] diverdude: baudehlo: nono
[15:11] diverdude: baudehlo: sounds like a detour
[15:11] diverdude: i fiugred it out the right way
[15:11] diverdude: figured
[15:11] baudehlo: ok
[15:11] tc100 has joined the channel
[15:11] adamkittelson has joined the channel
[15:11] diverdude: but thx
[15:11] diverdude: just install nodejs-dev
[15:11] baudehlo: presumably just the node stuff wasn't in the path?
[15:11] baudehlo: oh.
[15:11] benvie: quinnirill: you referring to the Address function?
[15:11] diverdude: to get the headers etc.
[15:11] sharkbird has joined the channel
[15:11] baudehlo: I hate when they split programming languages into runtime and "dev" stuff.
[15:12] larsschenk has joined the channel
[15:12] diverdude: baudehlo: nah i think its okay actually
[15:12] baudehlo: it seems so bloody retarded.
[15:12] benvie: and yeah
[15:12] diverdude: baudehlo: often ppl dont need the dev stuff so why have it
[15:12] baudehlo: I think you just discovered why have it.
[15:12] quinnirill: benvie: no, actually, I now have a Buffer and I'm trying to make it an argument for a function call, and the argv is a Local array
[15:13] benvie: oooh no so
[15:13] diverdude: baudehlo: because i need the dev stuff does not mean everybody does
[15:13] benvie: what the code is doing is creating a function in javascript
[15:13] benvie: you will give the buffer from js itself
[15:13] Swizec has joined the channel
[15:13] baudehlo: right, but "npm install" is stunted without it. So maybe they should get rid of npm too?
[15:13] benvie: Address will be called directly from JS
[15:13] diverdude: baudehlo: in general i think it would be lame to install dev stuff for all programs i use even though i will never develop for it
[15:14] baudehlo: meh. Disk is cheap.
[15:14] isaacs: what is it that npm install is stunted without?
[15:14] isaacs: i'm confused.
[15:14] diverdude: its a waste of harddiskspace, time and bandwidth
[15:14] baudehlo: isaacs: node-waf
[15:14] isaacs: oh, yeah. that's going away.
[15:14] isaacs: but not quickly
[15:14] benvie: so when you compile this little module he made
[15:14] quinnirill: benvie: hmm, yeah, but I'm not trying to do the same thing Address is, actually ^^ well, nvm
[15:14] benvie: you are, yuo have it in reverse =D
[15:15] benvie: this is where you get the buffer from
[15:15] karterk has joined the channel
[15:15] benvie: and you'll tie it from Address to your own stuff
[15:15] isaacs: the path forward is using declarative compilation directives in a a gyp file
[15:15] benvie: you assume the buffer is provided
[15:15] benvie: so what will happen is
[15:15] diverdude: baudehlo: nope....but they have a convention of splitting dev and user stufff...so why make exceptions to that conventions...then things starts to get really confusing
[15:15] benvie: this compiles to a .node file
[15:15] benvie: you require it from node in js
[15:15] Shrink has joined the channel
[15:15] benvie: then you'll have the function 'address' in jss
[15:15] baudehlo: diverdude: oh I know they do it for all languages. It's super annoying in the Perl world too.
[15:15] benvie: address(new Buffer(50))
[15:15] isaacs: npm IS node-dev
[15:16] baudehlo: there's been many debates about this on perl5-porters.
[15:16] benvie: viola buffer in C
[15:16] benvie: C++
[15:16] benvie: er address to it anyway
[15:16] k1ttty has joined the channel
[15:16] benvie: the code there has it returning the address to js but you can do whatever
[15:16] savudin: can i write coffeescript and still use all modules normaly in node?
[15:16] isaacs: there's a node::Buffer class you can use in C++. but really, it's better for c++ code to not have that much node-ism in it, and instead just talk to libuv. take a buffer as an argument from JS, write to it/read from it/whatever, call the cb to say you'er done.
[15:17] isaacs: it's much simpler that way
[15:17] flou has joined the channel
[15:17] benvie: not sure what he's doing, but this was a neat thing Nate made
[15:17] isaacs: and it leaves the door open for optimizations in the buffer implementation at the JS level, or slab allocators, and so on.
[15:17] benvie: to get the memory address inside JS for use in ffi
[15:17] isaacs: savudin: sort of. i mean, you have to wear a funny hat.
[15:17] isaacs: savudin: but other than that, yes.
[15:17] benvie: so you could have stuff in C land writing directly back to a buffer
[15:18] solhive has joined the channel
[15:18] benvie: at the behest of your ffi bindings
[15:18] TheAlphaNerd has joined the channel
[15:18] TheAlphaNerd has joined the channel
[15:18] savudin: isaacs so you don't reccomend it?
[15:18] flagg0204 has joined the channel
[15:18] quinnirill: oh, now I'm a bit confused :D
[15:18] benvie: yeah this might not be what you want =D
[15:18] benvie: I mean it can do it but, not exactly safely
[15:19] quinnirill: yeah, well this module isn't going to be very safe anyway, I'm trying to expose the C api as directly as possible :D
[15:20] benvie: ffi is able to make it work presumably because it's doing stuff to the event loop to ensure thread safe writing and stuff
[15:20] benvie: node-ffi
[15:20] herbySk has joined the channel
[15:20] lmorchard has joined the channel
[15:20] isaacs: savudin: no, i recommend using javascript. it's healthy
[15:21] quinnirill: but sheez, I just want to pass a Node::Buffer instance created in C++ as an argument to a JS function, I was betting there'd be a way to do that. :D
[15:21] isaacs: benvie: node-ffi is sllloooowww though
[15:21] bnoordhuis: quinnirill: buffer->handle_
[15:21] benvie: oh I thought you wanted to go the other way
[15:21] benvie: yeah wer're trying to improve on that with the combo
[15:21] isaacs: quinnirill: there is. but you'll be creating SlowBuffers, not Buffers.
[15:21] isaacs: quinnirill: though, i heard rumors lately that they're not that slow.
[15:21] isaacs: so who knows
[15:22] kevwil has joined the channel
[15:22] benvie: this thing I made is so it can change it's api over to primarily buffer based instead of libffis pointer based way of looking at the data
[15:22] karterk_ has joined the channel
[15:22] quinnirill: isaacs: yeah, well, I'll try to replace them with ArrayViews ASAP, just a temporary solution
[15:22] quinnirill: s/Array/Data
[15:22] benvie: I thinik what he was looking as was basically
[15:22] isaacs: v8::Handle someJSFunc; ...; result = someJSFunc.call(scopeObjectHandle, numArgs, {arg, arg, arg});
[15:23] isaacs: where arg is one of bufferObject->handle_
[15:23] trotter has joined the channel
[15:23] benvie: with this data that is being written out to ffi can be written to a node buffer and then used
[15:23] benvie: https://gist.github.com/2013773/0b1e4f856298adfb39c881cc24c7ee30d861b6a3
[15:23] benvie: without needing to hit the C++ side
[15:23] benvie: aside from getting the address
[15:24] zemanel has joined the channel
[15:24] benvie: so instead of having to use the C++ bindings to for each write individual
[15:24] quinnirill: ffi isn't really an option, I'm doing audio, it needs to be FAAAAST :D
[15:24] benvie: whole buffer
[15:25] hipertracker has joined the channel
[15:26] sh1mmer has joined the channel
[15:26] quinnirill: hmm
[15:27] devaholic has joined the channel
[15:27] jakehow has joined the channel
[15:27] Morkel has joined the channel
[15:27] bartt has joined the channel
[15:28] rt7 has joined the channel
[15:28] benvie: I dunno how much it would help with a high bandwidth type need, pretty sure you don't want to be hitting C++ at all
[15:28] steveoh has joined the channel
[15:29] benvie: yuo want to do it over a socket
[15:29] _tors has joined the channel
[15:29] benvie: then yuo don't need to screw with any internals and it'll be fast
[15:29] yogig has joined the channel
[15:30] benvie: if there's one thing node has it's optimized I/O so it's likely you're reinventing something but worse if you're trying to do what it sounds like
[15:30] Poetro has joined the channel
[15:31] enmand has joined the channel
[15:31] isaacs: quinnirill: the pattern that i have found useful is something like this:
[15:31] quinnirill: mehh, still doesn't compile, this is what I have: https://github.com/jussi-kalliokoski/node-cubeb/blob/master/src/stream.cpp#L145-153
[15:31] kmiyashiro has joined the channel
[15:31] broofa has joined the channel
[15:31] isaacs: quinnirill: someMethod(bufferInput, bufferOutput, inputOffset, inputLength, outputOffset, outputLength, cb)
[15:31] isaacs: quinnirill: it's a lot of ceremony, yes.
[15:31] isaacs: quinnirill: but then the JS passes two buffers to the C++
[15:32] isaacs: quinnirill: the C++ has a pointer where it can start writing/reading, and an offset and length
[15:32] isaacs: quinnirill: it does some stuff, writes the results to the bufferOutput, and calls the cb when it's done
[15:32] isaacs: (or not, if it's sync)
[15:32] at4m has joined the channel
[15:33] isaacs: quinnirill: all the fs and zlib stuff works this way, for example.
[15:33] quinnirill: isaacs: hmm, interesting, seems like a cool approach. I'm not sure I can adapt to that in this case, though
[15:33] isaacs: quinnirill: it lets the C++ bits be as simple as possible, and you can then move almost all of the logic into the JS layer, which is much easier to manage.
[15:33] rtgibbons has joined the channel
[15:33] reed has joined the channel
[15:34] quinnirill: isaacs: indeed, that's why I'm just trying to mimic the C API I'm wrapping actually
[15:34] quinnirill: then an absraction in JS on top of that
[15:34] stantona has joined the channel
[15:34] mounibec has joined the channel
[15:35] isaacs: quinnirill: what are you binding to?
[15:35] Skaag has joined the channel
[15:35] quinnirill: libcubeb ( https://github.com/kinetiknz/cubeb )
[15:35] quinnirill: it's a cross-platform audio backend by Mozilla
[15:36] Lemminkainen has joined the channel
[15:36] patcito has joined the channel
[15:36] wingie has joined the channel
[15:36] benvie: I can't believe how much time I wasted on being dumb
[15:36] quinnirill: benvie: I feel the same way quite often
[15:37] benvie: don't even know what I was thinking. It's like when you're searching for something and you're late
[15:37] benvie: and 10 minutes later you're like wow it's in my hand
[15:37] quinnirill: :D
[15:37] Zzaichik has joined the channel
[15:38] spion has joined the channel
[15:38] \mSg has joined the channel
[15:38] quinnirill: benvie: I think I'm going to feel exactly that way when I get this working
[15:38] jerrysv has joined the channel
[15:39] benvie: nah you're trying to figure something new out, that's not the same
[15:40] whaley has joined the channel
[15:40] benvie: can be annoying or frustrating, but not like wow. I knew exactly what I needed, and was actually already using it, and just traveled through space and time with the cat on top of the paino
[15:40] crutex has joined the channel
[15:40] crutex has joined the channel
[15:41] AntelopeSalad: it this article still highly relevant for picking a templating engine that's good on the server and browser? http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more
[15:41] bshumate has joined the channel
[15:41] AntelopeSalad: or are their better solutions now?
[15:41] quinnirill: benvie: :D
[15:41] Wizek has joined the channel
[15:42] benvie: it's funny cause I answered your questions about using the DataView like nothing
[15:42] benvie: and then was like HEY YEAH that's the thing I was supposed to be actually using and not ignoring
[15:43] karterk has joined the channel
[15:43] TheJH has joined the channel
[15:44] enmand has joined the channel
[15:44] merlin83 has joined the channel
[15:44] yawNO has joined the channel
[15:44] gekko_ has joined the channel
[15:46] meso has joined the channel
[15:47] Andy1991: Anyone know of a nodejs google maps polyline decoder?
[15:47] quinnirill: benvie: happens to the best of us
[15:47] clc3123 has joined the channel
[15:47] benvie: just happy I can get rid of my shitty abstraction
[15:47] ph^ has joined the channel
[15:48] ccare has joined the channel
[15:48] flagg0204 has joined the channel
[15:48] graeme_f has joined the channel
[15:49] thurmda has joined the channel
[15:50] Knowledge has joined the channel
[15:52] joshthecoder has joined the channel
[15:52] wilmoore has joined the channel
[15:54] bartt has joined the channel
[15:55] erichynds has joined the channel
[15:55] quinnirill: ahh man, how hard can this be :/
[15:55] slloyd has joined the channel
[15:55] perezd has joined the channel
[15:57] steveoh has left the channel
[15:57] baudehlo: in a base class, is it possible to get the parent class' __filename?
[15:58] ioscale has joined the channel
[15:58] rtgibbons has joined the channel
[15:59] dylang_ has joined the channel
[15:59] langworthy has joined the channel
[15:59] trivol_ has joined the channel
[16:00] level09 has joined the channel
[16:00] dnolen has joined the channel
[16:00] enmand has joined the channel
[16:00] isaacs: baudehlo: Parent.prototype.__filename = __filename <-- put that in there?
[16:01] isaacs: baudehlo: otherwise, no. there's no strict correlation between class and file in node
[16:01] nodebiscut has joined the channel
[16:01] tc100 has left the channel
[16:02] baudehlo: yeah I was kinda wondering if maybe I could get it through arguments.caller somehow
[16:02] clc3123 has joined the channel
[16:02] reed has joined the channel
[16:03] kriskowal has joined the channel
[16:03] baudehlo: I just wanted to avoid having to add more boilerplate to the parent.
[16:05] baudehlo: or this.constructor
[16:05] MartinCleaver has joined the channel
[16:05] reed_ has joined the channel
[16:05] baudehlo: but I guess __filename is injected by require() so can't be got at from an object.
[16:06] diogogmt has joined the channel
[16:06] wingie has joined the channel
[16:07] johnstorey has joined the channel
[16:07] baudehlo: hmm… I bet I can get it from new Error()
[16:07] hydrozen has joined the channel
[16:08] patcito has joined the channel
[16:08] joshfinnie has joined the channel
[16:08] patcito has joined the channel
[16:09] jtsnow has joined the channel
[16:10] orlandovftw has joined the channel
[16:10] madtimber has joined the channel
[16:10] michaelmartinez has joined the channel
[16:11] baudehlo: \o/ it worked.
[16:11] baudehlo: hacks++
[16:14] cjm has joined the channel
[16:14] nsolsen has joined the channel
[16:15] smithbh has joined the channel
[16:16] c4milo_ has joined the channel
[16:16] benvie: function includer(){ var p = includer.caller.caller.caller.arguments[0]; while (p.parent) p = p.parent; return p.filename; }
[16:16] benvie: that does it
[16:16] mrsrikanth has joined the channel
[16:17] benvie: arguments.caller is ridiculous in v8
[16:17] benvie: it knows no bounds lol
[16:18] langworthy has joined the channel
[16:18] reed has joined the channel
[16:18] k1ttty has joined the channel
[16:18] benvie: I'm sure that breaks if any of those calls weren't in the same stack frame
[16:18] alvaro_o has joined the channel
[16:18] benvie: er
[16:19] benvie: call stack that's it
[16:19] arduix has joined the channel
[16:19] skeptic_ has joined the channel
[16:20] k1ttty has joined the channel
[16:21] bindr has joined the channel
[16:21] isaacs: benvie: why not just use module.parent?
[16:21] isaacs: baudehlo: ^
[16:22] benvie: for some reason I always think of modules in terms of like how they should be organize
[16:22] benvie: and forget that it's just include order
[16:22] jakehow has joined the channel
[16:22] isaacs: yeah, it's just who included who
[16:22] isaacs: module.parent = the module that called require() to load this one
[16:22] benvie: that's way easier and more reliable =D
[16:23] isaacs: but, if you have something like: a.js: require(b, c, d); b.js: require(c, d)
[16:23] tylerstalder has joined the channel
[16:23] baudehlo: isaacs: but what if it's loaded by N modules?
[16:23] isaacs: then a will get the cached c,d modules, and c&d will see module.parent = b
[16:23] benvie: ah yes
[16:23] benvie: you get the first loader
[16:23] icebox has joined the channel
[16:23] isaacs: it's only the module that *first* loaded it
[16:24] benvie: in that case the caller method will, if it works, show the current loader
[16:24] briancray has joined the channel
[16:24] johnstorey has joined the channel
[16:24] benvie: but it has a pretty good chance of not working
[16:24] benvie: I think? maybe not
[16:24] merlin83 has joined the channel
[16:25] benvie: actually no i think it'll be reliable
[16:25] benvie: actually no
[16:25] benvie: if it's cached it'll be fewer callers, but it can work if accounting for thar]
[16:25] thinkt4nk has joined the channel
[16:25] Nopik has joined the channel
[16:26] totallymike has joined the channel
[16:26] maletor has joined the channel
[16:26] shanez has joined the channel
[16:26] janfabian has joined the channel
[16:27] hcchien has joined the channel
[16:27] halfhalo has joined the channel
[16:28] geetarista has joined the channel
[16:28] hipertracker has joined the channel
[16:29] yaymukund: I've done app.listen(3000)... now how do I stop listening?
[16:29] yaymukund: (i.e. close all connections and stop accepting requests)
[16:29] regality has joined the channel
[16:29] bizniz98 has joined the channel
[16:29] thinkt4nk_ has joined the channel
[16:30] ehazlett has joined the channel
[16:30] thetony: app.close()
[16:30] bizniz98: is Cluster in node core not the same as LearnBoost's Cluster?
[16:31] kmiyashiro has joined the channel
[16:31] yaymukund: thetony: if I do app.close() and then visit localhost:3000, I see more requests.
[16:31] simenbrekken has joined the channel
[16:31] jimmysparkle has joined the channel
[16:31] thetony: where are you calling app.close?
[16:31] eldios has joined the channel
[16:31] yaymukund: (my connection was already open)
[16:31] yaymukund: literally after app.listen(3000)
[16:32] yaymukund: well, in my repl
[16:32] thetony: if you're just looking to kill the application, hit ctrl+c
[16:32] yaymukund: ah ok, send a sigint
[16:32] thetony: does app exist in the context of your reply?
[16:33] thetony: in the scope*
[16:33] sorensen__ has joined the channel
[16:33] bnoordhuis: bizniz98: yes (as in: not the same module)
[16:33] johnstorey has joined the channel
[16:33] bizniz98: bnoordhuis: thanks, I thought I was losing my mind. And throw Fugue in there to make things exciting.
[16:34] yaymukund: I just do this: 1. open repl, 2. configure stuff, 3. app.listen(3000), 4. visit site, 5. app.close(), 6.visit site
[16:34] lamtha has joined the channel
[16:34] yaymukund: and 6. works, but I dont want it to. Im suspect app.close() doesnt close existing connections, so sigint is what I want
[16:36] thejefflarson has joined the channel
[16:36] achiu has joined the channel
[16:36] kitt has joined the channel
[16:36] kitt has joined the channel
[16:38] sigurding has joined the channel
[16:38] sammmy has joined the channel
[16:38] dodo_ has joined the channel
[16:38] sigurding: hey, anyone here achieved to create chunked uploads with formidable?
[16:39] ryan_stevens has joined the channel
[16:39] yaymukund: yeah, if I wait until my connections closed, visiting localhost:3000 404s
[16:40] nadirvardar has joined the channel
[16:40] j_ff has joined the channel
[16:40] dragansah has joined the channel
[16:41] thirdknife has joined the channel
[16:41] thetony: you want to kill all of the connections as well then? you can set a flag if you're not doing blocking type communication and then close all active connections
[16:41] SamuraiJack has joined the channel
[16:41] thetony: or just set a flag to not accept any more connections and finish current if you're leaving the request open for whatever reason
[16:42] admc has joined the channel
[16:42] dilvie has joined the channel
[16:43] RLa has joined the channel
[16:43] mxbtty has joined the channel
[16:45] yaymukund: hmm, ok, not sure what that means. I want to just destroy connections. I'm just trying to stop my testing server after all tests are done
[16:45] yaymukund: not sure what "set a flag to not accept any more connections" means
[16:46] DrPheltRight has joined the channel
[16:46] thetony: create a variable, when it is set to 0 it means accept connections, 1 means don't accept connections and you can treat that how you want - if it's 1 just immediately close the connection
[16:46] lperrin has joined the channel
[16:47] githogori has joined the channel
[16:47] takkun1946 has joined the channel
[16:47] trivol_ has joined the channel
[16:48] stalled has joined the channel
[16:49] yaymukund: thetony: ok, thanks. I'll give this a shot. I don't think I need a flag-- just have to close all connections
[16:50] wavded has joined the channel
[16:51] springmeyer has joined the channel
[16:53] mundanity has joined the channel
[16:53] mattgifford has joined the channel
[16:54] rmttnmd_ has joined the channel
[16:54] sreeix has joined the channel
[16:54] yaymukund: thetony: it works now. thanks for the help!
[16:55] indutny has joined the channel
[16:55] yaymukund: just calling process.exit() after app.close()
[16:57] EhevuTov has joined the channel
[16:57] TheFuzzball: How do you use EventEmitter for just one object? e.g. SomeObj.on('someevent',function(){ ... })
[17:00] langworthy has joined the channel
[17:01] rmttnmd has joined the channel
[17:01] RLa: TheFuzzball, inherit or use directly
[17:03] rmttnmd__ has joined the channel
[17:04] fangel has joined the channel
[17:04] sammmy: How do I check if an uploaded file is a photo?
[17:05] enjalot has joined the channel
[17:05] Edy: sammmy: you could check the first x bytes of the file
[17:05] Edy: http://www.mikekunz.com/image_file_header.html
[17:06] RLa: filename extension could be used too
[17:06] RLa: if it has
[17:06] cjm has left the channel
[17:07] isao has joined the channel
[17:07] adamkittelson has joined the channel
[17:08] at4m has joined the channel
[17:08] thebutterfly has joined the channel
[17:08] thebutterfly has joined the channel
[17:09] maxogden: or use mechanical turk
[17:09] Edy: :)
[17:10] gozala has left the channel
[17:10] reed_ has joined the channel
[17:12] carlyle has joined the channel
[17:12] hydrozen: isaacs: does nave provide something so that each node version installed uses a different version of npm? I have a project with node 0.4.8 but the npm version I have installed requires 0.6.. I'm using n to manage versions right now though.. but I'd switch to nave if it provides a solution
[17:14] carlyle has joined the channel
[17:15] sammmy: How do I add my /lib directory as a path searched for modules in?
[17:15] sammmy: searched in for modules*
[17:16] isaacs: hydrozen: yes and no.
[17:16] isaacs: hydrozen: :)
[17:16] isaacs: hydrozen: if you do this, it'll work like you probably want: `nave use 0.4.8; curl http://npmjs.org/install.sh | sh`
[17:16] isaacs: hydrozen: that'll install npm 1.0 (not 1.1) in the 0.4.8 subshell
[17:16] isaacs: hydrozen: it'll be in ~/.nave/installed/0.4.8/bin/...
[17:17] carlyle has joined the channel
[17:17] reed__ has joined the channel
[17:17] rmttnmd has joined the channel
[17:17] regality has joined the channel
[17:17] ccare has joined the channel
[17:18] at4m: /qui
[17:19] hydrozen: isaacs: Ok, I'll try this out
[17:19] TheFuzzball: Is util.inherits(MyFunc, EventEmitter) basically a mixin?
[17:22] baudehlo: no, it fills in the prototype chain
[17:22] jakehow has joined the channel
[17:22] reed_ has joined the channel
[17:22] sammmy: Is it a good idea to add another directory in your project directory to the "node paths" to be searched for when require()-ing?
[17:22] bendman has joined the channel
[17:22] i42n has joined the channel
[17:22] saschagehlich has joined the channel
[17:22] diogogmt has joined the channel
[17:23] gregpascale has joined the channel
[17:23] Skaag has joined the channel
[17:24] rmttnmd_ has joined the channel
[17:24] thetony: sammmy: it's up to you - why would you want to?
[17:24] BillyBreen has joined the channel
[17:25] sammmy: thetony: just so that way I can make small libraries/utilities/tools
[17:25] reed_ has joined the channel
[17:26] arcil has joined the channel
[17:27] achiu has joined the channel
[17:28] shedinja_ has joined the channel
[17:28] brainss has joined the channel
[17:28] indutny has left the channel
[17:29] dylang has joined the channel
[17:29] bendman has joined the channel
[17:30] rmttnmd__ has joined the channel
[17:30] dkap has joined the channel
[17:31] sammmy: What's a module's test command?
[17:32] ByteCrunch has joined the channel
[17:32] takkun1946 has left the channel
[17:32] stephank has joined the channel
[17:33] johnstorey has joined the channel
[17:34] forste` has joined the channel
[17:34] pizthewiz has joined the channel
[17:35] Axsuul has joined the channel
[17:35] phoochka has joined the channel
[17:35] zackattack has joined the channel
[17:35] stafamus has joined the channel
[17:35] pydroid has joined the channel
[17:36] jj0hns0n has joined the channel
[17:37] solhive has left the channel
[17:37] gozala has joined the channel
[17:39] tmcw has joined the channel
[17:40] GJdan has joined the channel
[17:40] shedinja_: npm test
[17:40] gudmundur has joined the channel
[17:40] gudmundur has left the channel
[17:40] isaacs: sammmy: it's usually specified in package.json in the scripts.test field
[17:40] sammmy: isaacs: what do I put there?
[17:42] PatF has joined the channel
[17:42] gudmundur has joined the channel
[17:43] indutny has joined the channel
[17:44] gudmundur: I've written a very nice app in Node.js. Some parts of the app require the 'fs' module and I'm wondering if and how I can "mock" the module out, so I can test my code in isolation. Same goes for socket code. Any ideas?
[17:44] gzmask has joined the channel
[17:44] isaacs: sammmy: whatever command you want to have npm run to test your module
[17:45] Nss has joined the channel
[17:45] sammmy: isaacs: what's the test for?
[17:45] rwaldron has joined the channel
[17:45] isaacs: sammmy: making sure your module works? i dunno.
[17:45] isaacs: what are tests ever for.
[17:45] isaacs: you should probably just write it right the first time, and skip the test.
[17:46] lamtha has left the channel
[17:46] sammmy: this test stuff is optional right?
[17:48] echobucket has joined the channel
[17:48] isaacs: sammmy: yeah.
[17:49] robi42 has joined the channel
[17:49] sammmy: isaacs: Okay. I have my git project set up. My package.json file. Now how do I submit this to npm?
[17:49] isaacs: sammmy: npm publish
[17:50] isaacs: sammmy: you'll have to do `npm adduser` if you haven't already, to create an acct
[17:50] isaacs: but then you just publish it
[17:50] sammmy: oh
[17:50] shedinja: sammmy, tests are preferred
[17:50] isaacs: sammmy: don't listen to the haters.
[17:50] franciscallo has joined the channel
[17:50] isaacs: tests are for bad programmers who write programs that don't work.
[17:50] isaacs: ACTION :3
[17:50] nathanielk: heh
[17:51] sammmy: isaacs: my modules too simple for a test atm
[17:51] sammmy: can't create a user
[17:51] sammmy: how do I check username availablility?
[17:51] isaacs: if your modules are too simple for a test, then they're probably not doing much interesting
[17:51] shedinja: lol
[17:51] isaacs: but there are exceptions to most rules.
[17:51] halfhalo has joined the channel
[17:52] sammmy: got it
[17:52] flou has left the channel
[17:52] sammmy: isaacs: true. Look at combinatory logic as an example of simplicity with complexity. ;P
[17:53] sammmy: I npm publish in the module dir right?
[17:53] isaacs: sammmy: yes
[17:53] isaacs: sammmy: you got `npm adduser` to work?
[17:53] sammmy: isaacs: yup
[17:54] sammmy: how long does this usually take?
[17:54] sammmy: ACTION is not impatient
[17:54] shedinja: sammmy, adduser takes effect instantly
[17:54] brianleroux has joined the channel
[17:55] sammmy: shedinja: I meant the publishing
[17:55] tmkb has joined the channel
[17:55] shedinja: sammmy, as fast as your computer can package the module and upload it
[17:55] madtimber has joined the channel
[17:55] sammmy: Done! http://search.npmjs.org/#/yarn
[17:56] RobWC has joined the channel
[17:56] wendall911 has joined the channel
[17:56] sammmy: I'll add a README.md and stuff to the project later. Just wanted to grab the package name. ;P
[17:56] sammmy: Thanks isaacs and everyone. :)
[17:57] isaacs: sammmy: be advised that empty packages used to "grab a name" can be removed if they're not filled in quickly and someone else wants the name.
[17:57] isaacs: sammmy: there's nothing wrong with that
[17:57] isaacs: just deliver on the promise you're making, that's all ;)
[17:57] rubymaverick has joined the channel
[17:58] sammmy: isaacs: I see. Well, I'm grabbing it in case someone else does and "makes it", I'm going to make it too.
[17:58] sammmy: ACTION is going to work
[17:58] isaacs: heh
[17:58] shedinja: never had a problem with a package name taken on npm
[17:58] thetony: what is yarn going to do here
[17:58] shedinja: except stream.io. i wanted that name
[17:58] dragansah has joined the channel
[17:58] thetony: lol
[17:58] cjlicata has joined the channel
[17:59] csprite has joined the channel
[18:01] tornad has joined the channel
[18:01] csprite has joined the channel
[18:01] caioketo has joined the channel
[18:01] mikeal has joined the channel
[18:03] ehazlett has joined the channel
[18:04] n26 has joined the channel
[18:05] larsschenk has joined the channel
[18:05] brainss: i hope yarn has something to do with cats
[18:06] shen-ninja has joined the channel
[18:06] larsschenk1 has joined the channel
[18:06] larsschenk1 has left the channel
[18:06] Country has joined the channel
[18:07] kesor has joined the channel
[18:07] YoY has joined the channel
[18:08] sven_oostenbrink has joined the channel
[18:08] tomoj has joined the channel
[18:08] tomoj: when documenting a node.js function with jsdoc, what type should one use for a stream? object?
[18:11] fairwinds has joined the channel
[18:11] cameron_ has joined the channel
[18:11] jzacsh has joined the channel
[18:11] Gekz has joined the channel
[18:11] Gekz has joined the channel
[18:12] arcil has joined the channel
[18:12] hipsters_ has joined the channel
[18:13] ericmuyser has joined the channel
[18:14] caioketo has joined the channel
[18:14] ByteCrunch has joined the channel
[18:14] litejk has joined the channel
[18:14] litejk has left the channel
[18:16] mansoor has joined the channel
[18:16] Hui_Nan has joined the channel
[18:17] Swizec has joined the channel
[18:17] dshaw_ has joined the channel
[18:17] bhunt has joined the channel
[18:19] ByteCrunch has joined the channel
[18:19] pgte has joined the channel
[18:20] elio_ has joined the channel
[18:20] alvaro_o has joined the channel
[18:21] jxson has joined the channel
[18:22] Swizec has joined the channel
[18:23] FireFly has joined the channel
[18:23] vdemedes has joined the channel
[18:23] vdemedes: Hello
[18:23] vdemedes: I've seen somewhere library, which provides one interface to many template engines for Node.js, but I can't remember its name
[18:23] vdemedes: could you please help me?
[18:24] godu has joined the channel
[18:24] baudehlo: express does...
[18:24] shapeshed has joined the channel
[18:24] vdemedes: baudehlo: yeah, I know. But I need a library
[18:24] enmand has joined the channel
[18:24] hcchien has joined the channel
[18:26] Gekz has joined the channel
[18:26] elio_: just published a library which tries to bring a standard on handling configuration properties for different environments: https://github.com/eliOcs/node-envy
[18:27] chorrell has joined the channel
[18:27] tisba has joined the channel
[18:28] bodisiw has joined the channel
[18:29] lz has joined the channel
[18:29] lz: waddup waddup
[18:29] epokmedi1 has joined the channel
[18:30] jkridner____ has joined the channel
[18:31] simenbrekken has joined the channel
[18:31] eventualbuddha has joined the channel
[18:31] ericmuyser has joined the channel
[18:32] willwhite has joined the channel
[18:32] TooTallNate has joined the channel
[18:32] arcil has joined the channel
[18:32] tmcw has joined the channel
[18:33] robi42 has joined the channel
[18:33] artusrocha has joined the channel
[18:34] retornam has joined the channel
[18:35] niallo: is it a good idea to use process.binding('fs').sendfile in a static file server, or is that not a good idea (i see no public docs)
[18:35] webguynow has joined the channel
[18:36] hackband has joined the channel
[18:37] mape has joined the channel
[18:37] RLa: "It's meant for nodejs core modules only"
[18:37] RLa: yeah, why not var fs = require()
[18:37] RLa: and then use it
[18:38] diogogmt has joined the channel
[18:39] niallo: RLa: didn't realise sendfile() was in public fs module. not documented.
[18:39] blueadept has joined the channel
[18:39] RLa: hm
[18:39] fson has joined the channel
[18:40] zackattack has joined the channel
[18:40] niallo: curl http://nodejs.org/docs/latest/api/fs.html | grep -i sendfile :-/
[18:40] automata has joined the channel
[18:41] robi42 has joined the channel
[18:41] imaginationac has joined the channel
[18:41] jj0hns0n has joined the channel
[18:41] RLa: what that function does?
[18:42] niallo: sendfile(2) wrapper hopefully.
[18:42] niallo: ACTION reads the source
[18:42] dukeytoo2 has joined the channel
[18:42] hcchien has joined the channel
[18:43] niallo: yeah https://github.com/joyent/node/blob/master/lib/fs.js#L421
[18:43] crutex has joined the channel
[18:43] crutex has joined the channel
[18:43] illourr has joined the channel
[18:44] fairwinds has joined the channel
[18:46] Mr_Poo has joined the channel
[18:46] imaginationac has left the channel
[18:46] tokumine has joined the channel
[18:46] innociv__ has joined the channel
[18:46] fangel_ has joined the channel
[18:46] dividinglimits has joined the channel
[18:46] enmand_ has joined the channel
[18:46] maqr_ has joined the channel
[18:47] saschagehlich_ has joined the channel
[18:47] Fuu` has joined the channel
[18:47] ericmuyser|air has joined the channel
[18:47] TypoAway has joined the channel
[18:48] slloyd has joined the channel
[18:48] sreeix has joined the channel
[18:49] rmttnmd has joined the channel
[18:49] tahu has joined the channel
[18:49] wookiehangover has joined the channel
[18:49] niclone has joined the channel
[18:49] lmorchard has joined the channel
[18:49] stagas has joined the channel
[18:50] petschm_ has joined the channel
[18:50] thedjinn has joined the channel
[18:51] vdemedes has joined the channel
[18:51] carlyle has joined the channel
[18:51] vdemedes: It was Mint.js from viatropos, if someone wants it
[18:52] whitman has joined the channel
[18:53] carlyle has joined the channel
[18:53] boltR has joined the channel
[18:55] powerc9000 has joined the channel
[18:55] cjm has joined the channel
[18:56] `3rdEden has joined the channel
[18:57] johnstorey has joined the channel
[18:57] powerc9000: hi!
[18:58] sadjow has joined the channel
[18:59] jamesd_ has joined the channel
[19:00] EuroNerd has joined the channel
[19:00] EuroNerd has joined the channel
[19:00] jamesd_ has joined the channel
[19:00] yaymukund has joined the channel
[19:00] mikeal has joined the channel
[19:01] sechrist: does dnode have a way to broadcast?
[19:01] kitt has joined the channel
[19:01] chapel: like to all sockets?
[19:01] thirdknife has joined the channel
[19:02] sechrist: I know socket.io does, and hook.io does
[19:02] sechrist: but yea
[19:02] smithbh has joined the channel
[19:02] barbagallo has joined the channel
[19:03] langworthy has joined the channel
[19:03] russfrank has joined the channel
[19:03] kmiyashiro has joined the channel
[19:04] mikl has joined the channel
[19:04] RobWC has joined the channel
[19:04] andre_pl has joined the channel
[19:04] RobWC has left the channel
[19:05] isao has joined the channel
[19:05] isao1 has joined the channel
[19:05] isao1 has left the channel
[19:05] satyr_ has joined the channel
[19:05] shinuza has joined the channel
[19:06] andre_pl: how does one go about implementing dynamic methods in node. for example: var o = MyObj(); o.thisMethodDoesNotExist(); I want o to receive a method call like 'getProperty("thisMethodDoesNotExist")'
[19:06] andre_pl: similar to __getattr__ in python
[19:06] dragansah has joined the channel
[19:07] jtsnow has joined the channel
[19:08] TheAlphaNerd has joined the channel
[19:08] TheAlphaNerd has joined the channel
[19:08] chapel: sechrist: you would have to store all the sockets as they connect, and then you could broadcast out to them
[19:08] pt_tr has joined the channel
[19:08] sadjow has left the channel
[19:10] smithbh has joined the channel
[19:12] sadjow1 has joined the channel
[19:12] dividinglimits has joined the channel
[19:12] devongovett has joined the channel
[19:13] petschm has joined the channel
[19:13] yawNO has joined the channel
[19:13] yawNO: sup
[19:14] Poetro has joined the channel
[19:15] Skaag_ has joined the channel
[19:15] nateps has joined the channel
[19:16] AvianFlu has joined the channel
[19:16] Skaag_ has joined the channel
[19:16] kirbysayshi has joined the channel
[19:16] sadjow1 has left the channel
[19:16] dividinglimits has joined the channel
[19:17] arcil has joined the channel
[19:17] jamesbathgate has joined the channel
[19:18] EhevuTov_ has joined the channel
[19:18] CIA-19: node: 03Nathan Rajlich 07master * rfeaa8a4 10/ (src/node.cc src/node.js test/simple/test-force-repl.js):
[19:18] CIA-19: node: cmd: add a -i / --interactive flag to force the REPL
[19:18] CIA-19: node: This is the only way to spawn a node child process in REPL mode, and will
[19:18] CIA-19: node: also be needed to be able to use the REPL in MinTTY. - http://git.io/H5ZQeg
[19:19] hipertracker has joined the channel
[19:21] jetienne has joined the channel
[19:21] smithbh has joined the channel
[19:22] yawNO has joined the channel
[19:22] Marak has joined the channel
[19:22] insin has joined the channel
[19:22] dividinglimits has joined the channel
[19:24] TimTimTim has joined the channel
[19:26] mAritz has joined the channel
[19:26] Wooga has joined the channel
[19:26] dividinglimits has joined the channel
[19:27] nickmessing has joined the channel
[19:27] ramitos has joined the channel
[19:27] nickmessing: Heelo
[19:27] _cp_ has joined the channel
[19:27] nickmessing: *Hello
[19:28] nickmessing: I need some help..
[19:28] thetony: yes
[19:29] nickmessing: I try to install node.js on openSUSE, from official repos it installs fine but "Hello World" http server works 2-3 seconds fine and then quits with "node: symbol lookup error: node: undefined symbol: _ZN2v82V816IdleNotificationEi" error
[19:29] nickmessing: compiling latest version gives some weird errors and that will be harder to fix... I think
[19:30] thetony: what are the compile errors?
[19:30] TimTimTim has joined the channel
[19:32] nickmessing: undefined reference to `clock_gettime' and undefined reference to `dl****' (many dl's) but i can't find wich makefile gives me error..
[19:32] nickmessing: there are 88 makefiles
[19:32] shinuza has joined the channel
[19:32] AvianFlu has joined the channel
[19:32] disappearedng has joined the channel
[19:32] disappearedng has joined the channel
[19:34] nickmessing: thetony, I have to install windows and work on it ?? :)
[19:34] socketio\test\54 has joined the channel
[19:35] nickmessing: node works fine on windows xp on same pc
[19:35] thetony: i guess - i mean fixing compile dependencies is easier, there isn't much for that symbol look up
[19:35] thetony: nodejs works fine for me in debian
[19:35] tjholowaychuk has joined the channel
[19:35] Skalman has joined the channel
[19:36] nickmessing: but... why i get dl's error, i have "/usr/lib/libdl.so"
[19:36] nickmessing: O_O
[19:37] jocafa: is there a particularly good scss implementation for node?
[19:38] jocafa: i'd use stylus for this, but i have to use scss specifically
[19:38] dividinglimits has joined the channel
[19:39] rburhum has joined the channel
[19:39] sadjow has joined the channel
[19:39] nickmessing: the
[19:39] staar2 has joined the channel
[19:39] risto_ has joined the channel
[19:39] kitt has joined the channel
[19:39] nickmessing: thetony, but, even if i will install last version, what if i will still get that error on http server?
[19:39] voodootikigod: anyone in here involved with the node-postgres project?
[19:39] nickmessing: reinstall to deb?
[19:39] briancray has joined the channel
[19:40] disappearedng has joined the channel
[19:40] staar2: hello
[19:40] powerc9000: is there way not to show all the status messages cause I cant read the chat with all of them
[19:40] larsschenk has joined the channel
[19:41] njain has joined the channel
[19:41] staar2: in mongo you can import the json files with data, but all examples comes with predefined _id object can it be inserted without it ?
[19:41] Maxani has joined the channel
[19:43] sadjow has left the channel
[19:43] dnolen_ has joined the channel
[19:44] thetony: yes
[19:45] admc has joined the channel
[19:45] nickmessing: that's not a solution ))
[19:45] nickmessing: I have windows installed, and, maybe, I will code on it...
[19:45] jomoho has joined the channel
[19:45] diverdude has joined the channel
[19:46] mikeal has joined the channel
[19:46] Marak_ has joined the channel
[19:47] Skalman has left the channel
[19:47] augustl: isaacs: I typoed my e-mail address for my npm user so I can't do a password reset and now I can't log in, what can I do?
[19:47] gr4yscale has joined the channel
[19:48] orlandovftw has joined the channel
[19:49] isaacs: augustl: email i@izs.me with the details, and the address you'd like to use
[19:50] hipertracker has joined the channel
[19:50] lperrin has joined the channel
[19:50] cburyta has joined the channel
[19:51] augustl: isaacs: allright
[19:53] fairwinds has joined the channel
[19:54] kmiyashiro has joined the channel
[19:57] orlandovftw has joined the channel
[19:58] confoocious has joined the channel
[19:58] confoocious has joined the channel
[19:59] isaacs: augustl: ok, changed your email address.
[20:00] isaacs: augustl: reset away :)
[20:00] mikedeboer has joined the channel
[20:01] mauritslamers has joined the channel
[20:01] augustl: isaacs: yay!
[20:01] larsschenk has left the channel
[20:01] mauritslamers: hey all... I have been taking a look at node-inspector, which is a bit difficult to use at the moment, especially the profiling section
[20:02] augustl: isaacs: is there a cache? It's still not working, and npm owner ls buster-dev-tools still shows my old e-mail
[20:02] jryans has joined the channel
[20:03] mauritslamers: I have been talking in the webkit channel and there is an interest by the webinspector team: "we could be able to port some of v8's WebKit bindings codes to node so that node acted say as a 'worker', hence tip-of-tree inspector front-end would work with it at all times."
[20:03] mauritslamers: "inspector team would be willing to assist, but we need node team to be interested / drive the effort."
[20:03] patcito has joined the channel
[20:04] isaacs: augustl: it doesn't update the owner references on all the old packages.
[20:04] augustl: err, my typoed e-mail, not my old e-mail
[20:04] isaacs: augustl: right
[20:04] augustl: getting "That username was not found in the repository! " on http://admin.npmjs.org/ at least
[20:04] isaacs: augustl: may take a second to propagate, but it's there now: http://registry.npmjs.org/-/user/org.couchdb.user:augustl
[20:05] augustl: allright
[20:05] augustl: worked now, thanks
[20:05] isaacs: augustl: maybe try again?
[20:05] isaacs: ok, great :)
[20:06] TheAlphaNerd has joined the channel
[20:06] Derek__ has joined the channel
[20:07] shapeshed has joined the channel
[20:07] M1l3n1um has joined the channel
[20:07] fomatin has joined the channel
[20:07] bodisiw has joined the channel
[20:08] mauritslamers: I don't know how many of the joyent team are in here atm, but if there are any: what is your idea about the proposition of the webinspector guys?
[20:09] AdamGoodrich has joined the channel
[20:10] tom365 has joined the channel
[20:10] AndreasMadsen has joined the channel
[20:10] st_luke has joined the channel
[20:12] westg has joined the channel
[20:14] johnstorey has joined the channel
[20:14] Marak_: yo isaacs , when did you add all these new "_" pre-pended fields to package.json of install npm apps? like _npmUser, _npmVersion, etc
[20:14] shinuza has joined the channel
[20:14] Marak_: kinda messing me up today
[20:14] mcluskydodallas has joined the channel
[20:15] smithbh has joined the channel
[20:16] isaacs: Marak_: oh?
[20:17] isaacs: Marak_: i'm just writing back the json as npm sees it
[20:17] Marak_: isaacs: is there a way to not have npm add those extra fields?
[20:17] Marak_: ohh, hrmm
[20:17] Marak_: thats, odd
[20:17] harrymoore has joined the channel
[20:17] Marak_: isaacs: are those not your fields?
[20:17] isaacs: Marak_: it should only do that when you install something with npm, not if it's just there
[20:17] isaacs: Marak_: yeah, those are npm's
[20:17] Marak_: isaacs: is there an easy way to scrub those?
[20:17] isaacs: Marak_: that's how it's tracking stuff for shrinkwrap
[20:18] isaacs: Marak_: what's the problem that it's causing?
[20:18] dividinglimits has joined the channel
[20:18] janfabian has joined the channel
[20:18] Marak_: isaacs: when using npm.commands.install programatically, npm is now adding additional fields to the package.json, which are violating some of our validation rules for what a valid package is
[20:19] Marak_: i also would rather not have extra fields that the user has to read, if they arent 100% needed
[20:20] isaacs: Marak_: most of the time, the user does not need to read these.
[20:20] isaacs: Marak_: since it's only added when you install something with npm, not to git submodules, or your top-level package, etc.
[20:21] Marak_: isaacs: this is not most of the time
[20:21] Marak_: isaacs: using npm programmatically to install boilerplate apps
[20:21] isaacs: ACTION prefers not to boil plates
[20:21] rtgibbons has joined the channel
[20:21] Marak_: any easy way to not have the extra fields appended?
[20:22] isaacs: Marak_: not easily, no
[20:22] Marak_: okay, ill just scrub them then
[20:22] Marak_: thanks
[20:22] isaacs: Marak_: do you have like, a "run this and xyz breaks" example?
[20:22] isaacs: more specifically?
[20:22] mmalecki: Marak_: we can npm.commands.pack and untar it later
[20:22] Marak_: isaacs: yes, but i didnt think you'd want to go though the process of doing it with jitsu
[20:22] dividinglimits has joined the channel
[20:23] Marak_: isaacs: the extra fields cause problems. not a big mystery
[20:23] carl_platt has joined the channel
[20:23] isaacs: Marak_: can you update your validator thingie to ignore fields that start with _?
[20:23] rburhum has joined the channel
[20:23] dannyamey has joined the channel
[20:24] jimmysparkle has joined the channel
[20:24] bingomanatee__ has joined the channel
[20:25] brianleroux has joined the channel
[20:25] Marak_: isaacs: i mean yeah, i guess we could. the goal here was to not let people shove random crap into their package.json
[20:25] davorin has joined the channel
[20:25] fairwinds has joined the channel
[20:25] isaacs: Marak_: what's wrong with shoving random crap into package.json? lots of programs do that
[20:25] isaacs: :)
[20:25] isaacs: doesn't jitsu do that? ;P
[20:26] bingomanatee__: Hi all -- anyone looking to hire Noder in the SF bay area?
[20:26] bingomanatee__: \
[20:26] markq has joined the channel
[20:27] mmalecki: bingomanatee__: nodejitsu is! http://blog.nodejitsu.com/hiring-open-source-developers
[20:27] Marak_: mmalecki: i heard those guys were kinda dicks
[20:28] bingomanatee__: are they dicks who pay well?
[20:28] jaha: is there a way to return the line number of an exception caught with "uncaughtException
[20:28] jaha: "
[20:28] mmalecki: Marak_: yeah, they want you to, like, show them your code. crazy!
[20:28] Poetro has joined the channel
[20:28] bingomanatee__: put try/catch around each line?
[20:28] jerrysv: mmalecki: speaking of nodejitsu and more specifically code that nodejitsu is maintaining, any further thoughts on that bad EventEmitter pollution?
[20:29] Marak_: jerrysv: hurr?
[20:29] dividinglimits has joined the channel
[20:29] Marak_: what bad ee pollution ?
[20:29] mmalecki: jerrysv: oh, yeah, damn, it's been pretty crazy recently
[20:29] jerrysv: Marak_: https://github.com/cloudhead/vows/pull/200
[20:29] mmalecki: jerrysv: but I think we can pollute that specific instance instead
[20:29] jerrysv: vows specifically
[20:29] westg has joined the channel
[20:30] jerrysv: mmalecki: ee2 would solve the problem completely without any additional magic
[20:30] mmalecki: I guess I should just get to it now
[20:30] mmalecki: jerrysv: but it'd end up with polluting another emitter
[20:31] mmalecki: I mean, if I can't fix it, I'll just pull your thing
[20:31] jerrysv: Marak_: spent a few hours tracking down why code with EventReactor was failing tests in vows, finally printed out the emit() method
[20:31] Marak_: jerrysv: got ya
[20:31] jerrysv: mmalecki: will only pollute the emitter that is install by npm in its node_modules unless someone is crazy enough to be installing everything -g
[20:31] jerrysv: mmalecki: and if that's the case, they're going to have plenty of other issues :)
[20:32] kmiyashiro has joined the channel
[20:32] jerrysv: s/install/installed
[20:32] sorensen__ has joined the channel
[20:32] tilgovi has joined the channel
[20:33] hackband has joined the channel
[20:35] mmalecki: jerrysv: https://github.com/cloudhead/vows/pull/200/files#L2R156 seems wrong
[20:35] mmalecki: what if user returns an EventEmitter instead of EventEmitter2?
[20:35] hipertracker has joined the channel
[20:36] jerrysv: mmalecki: does the user have control at that point to return something else, or is that the async vs sync part of vows internal?
[20:37] mmalecki: jerrysv: `topic` there is what user returns from the topic
[20:38] hipertracker_ has joined the channel
[20:38] cha0s has joined the channel
[20:38] zanefactory has joined the channel
[20:38] mmalecki: jerrysv: you changed tests to fix it, but that's not how it should work
[20:38] mmalecki: hmmm
[20:39] Poetro has joined the channel
[20:39] jerrysv: mmalecki: good point - maybe check for both, wonder if it should clone if is ee
[20:39] hipertracker_ has joined the channel
[20:40] kmiyashiro has joined the channel
[20:41] tmcw has joined the channel
[20:41] mmalecki: brb. I'll try to allocate some time today. I'm sure we can work it out
[20:41] trivol has joined the channel
[20:42] scottdware has joined the channel
[20:43] Druid_ has joined the channel
[20:43] franciscallo has joined the channel
[20:44] jerrysv: mmalecki: awesome, thanks much i appreciate the attention
[20:44] adrianF has joined the channel
[20:45] triptec has joined the channel
[20:45] dividinglimits has joined the channel
[20:46] mikeal has joined the channel
[20:48] dtrejo has joined the channel
[20:48] perezd_ has joined the channel
[20:49] EhevuTov_ has joined the channel
[20:50] tom365 has left the channel
[20:51] mandric has joined the channel
[20:51] markwubben has joined the channel
[20:51] Andy1991 has joined the channel
[20:52] Andy1991: Anyone know how I can run two simultanious http requests and call a function when they both return
[20:53] odyniec has joined the channel
[20:53] sammmy: How do I ignore my /public directory with nodemon?
[20:53] tmcw has left the channel
[20:55] Andy1991: I dont want to wait for one to run then run the other because thats a waste of time, I need them to run simultaniously then make another call when they return
[20:55] ljharb: sammmy: make a .nodemonignore file
[20:55] dividinglimits has joined the channel
[20:56] sammmy: jlharb: do I need to call nodemon with any extra arguments after I make .nodemonignore?
[20:56] dukeytoo2: Andy1991: Try the async module...this allows you to do this in readable code.
[20:56] Andy1991: ACTION looks
[20:56] crutex has joined the channel
[20:56] reed_ has joined the channel
[20:56] rachet: Hey guys, I'm having an interesting problem
[20:57] rachet: with http.request, cookies, and redirects
[20:57] Andy1991: So I call it on process.nextTick and that will run the function on the next clock cycle?
[20:58] sammmy: Andy1991: try out my simple pattern I published today: https://github.com/samholmes/yarn
[20:58] dtrejo has joined the channel
[20:58] FredC has joined the channel
[20:58] Andy1991: Thanks :)
[20:58] sammmy: Andy1991: Unfortunately, I haven't had the time to document it yet, but the source is only 18 lines, so it shouldn't be hard to figure out how to use it.
[20:58] mcluskydodallas has joined the channel
[20:59] Andy1991: Ok, thank you :)
[20:59] rachet: basically, I am trying to make my http.request store cookies and follow redirects, but it seems that after a few redirects deep, it stops closing the request
[20:59] rachet: or at least appears to
[21:00] Andy1991: God I'm a noob
[21:00] sammmy: works like this: yarn(initialFunction)(fun0, fun1,...)(fun0, fun1, ...)(...); in initialFunction this(0) returns the fun0 in the next series. In any function in the series, this(n) returns the nth function in the next series.
[21:00] EhevuTov__ has joined the channel
[21:01] sammmy: Hope that helps enough to describe how to work it ^
[21:01] dukeytoo2: Andy1991: I meant http://github.com/caolan/async#parallel
[21:02] thirdknife has joined the channel
[21:02] Andy1991: Thanks, I'll take a look, but probably won't understand it lol
[21:02] rachet: http://pastie.org/3643812
[21:02] rachet: thats my code ^
[21:03] Andy1991: Ahh thats nice, thank you =D
[21:03] sammmy: Andy1991: My pattern is actually really simple. I should get to writing that README.md file on github, so you can see some examples. Although, there are some design changes I was thinking of making.
[21:04] Andy1991: This async thing looks really easy though, I didn't understand your code
[21:04] rachet: basically, if I can't get this working within about an hour - I have to start fixing ruby gems to do the same thing
[21:04] Andy1991: Do I need to do an npm install async or is it built in?
[21:04] rachet: you need to install it
[21:05] Andy1991: ok thanks
[21:05] sammmy: nodemon isn't recognizing my ignore patterns in .nodemonignore :\
[21:05] dividinglimits has joined the channel
[21:06] wankdanker has joined the channel
[21:06] Andy1991: How do I handle package dependancies? for example if I write code that relies on async, then port to another machine without asyn installed?
[21:06] rachet: sammy, any ideas with http.request?
[21:06] rachet: Andy1991: package.json
[21:06] Andy1991: cheers
[21:07] rachet: just set your dependencies, and then when you run npm install, you'll be set
[21:08] mikl has joined the channel
[21:09] graeme_f has joined the channel
[21:10] maletor has joined the channel
[21:10] sammmy: Andy1991: Here's an example: http://pastie.org/3643864
[21:10] rtgibbons has joined the channel
[21:12] jryans has joined the channel
[21:13] Andy1991: ok, thanks, still looks too complicated for me tho
[21:13] Andy1991: Although I'm having no luck with async parallel either lol
[21:13] Andy1991: Do I HAVE to set a timeout?
[21:14] Andy1991: http://pastebin.com/UmF9Rn9U
[21:15] Andy1991: Anyone see any problems?
[21:15] Andy1991: Getting [ , undefined ];
[21:16] regality has joined the channel
[21:16] rachet: are you sure the geocoding functions actually are working?
[21:17] hdon: hi all :) NPM question: i have just installed hook.io. i've been using socket.io so i already had that installed. they're being installed in my PWD, so i have a node_modules dir here
[21:17] hdon: however this is very confusing to me:
[21:17] Andy1991: Yeah, just seen the problem I think
[21:17] mikeal has joined the channel
[21:17] Es0teric has joined the channel
[21:17] pokoli has joined the channel
[21:18] Andy1991: Yep, needed callback(null, response); not callback(response);
[21:18] hdon: drwxr-xr-x 7 hdon hdon 4096 Mar 21 21:20 node_modules/hook.io/node_modules/socket.io
[21:18] hdon: drwxr-xr-x 8 hdon hdon 4096 Mar 10 23:59 node_modules/socket.io
[21:18] Andy1991: Thanks for the help guys :)
[21:18] hdon: there are no symlinks here it seems
[21:18] hdon: so i now have two copies of socket.io
[21:18] isaacs: hdon: no.
[21:18] isaacs: hdon: yes, that is correct
[21:18] hdon: isaacs: well.. why?
[21:18] isaacs: socket.io was installed underneath hook.io, since it wasn't a top-level dependency
[21:19] hdon: ACTION furrows his brow
[21:19] isaacs: hdon: `npm install hook.io` and you'll only have one socket.io
[21:19] isaacs: hdon: since the new install will use the current socket.io that it sees ther
[21:19] hdon: isaacs: so if i install them system-wide, then i won't have this problem?
[21:19] jetienne_ has joined the channel
[21:19] isaacs: or you can just rm -rf node_modules/hook.io/node_modules/socket.io
[21:19] isaacs: hdon: no. there is no "system-wide" when it comes to require()able modules.
[21:19] isaacs: hdon: and deps are always nested.
[21:20] isaacs: that is the only way to avoid collisions
[21:20] hdon: hmm
[21:20] jaha has joined the channel
[21:21] isaacs: or at least, it's npm's way to avoid collisions :)
[21:21] isaacs: the other options are generally require a lot of human effort
[21:22] hdon: isaacs: what is there to collide? i can only think that maybe hook.io knows what version of socket.io it wants, and it might not be another version i have installed... does all of this mean that there may be more than one instance of the same module loaded?
[21:22] iain_: ACTION is annoyed that n hits major compilation issues in fbsd, the node port installs fine but I want n to manage that stuff
[21:22] hdon: "loaded" into the javascript interpreter (node process)
[21:22] isaacs: iain_: if you use nave, you can set any config options you want in NAVE_CONFIG environment var
[21:22] Es0teric: so in express when making a file, i route it with app.get() then tell it what to do in routes/ ?
[21:22] iain_: isaacs: nave?
[21:22] isaacs: hdon: yeah, so what?
[21:22] isaacs: hdon: if you have dependencies on two separate versions, how can you solve that without loading two versions?
[21:23] hdon: isaacs: right, i just wanted to make sure i understood that was the rationale for this
[21:23] iain_: isaacs: I want the n npm module, i.e. the same as I'd use in deb/ubuntu
[21:23] iain_: but even just getting the src and compiling node hits problems
[21:23] westg has joined the channel
[21:23] iain_: except the port
[21:24] isaacs: iain_: i don't manage n.
[21:24] isaacs: iain_: maybe the port has some custom configure stuff?
[21:24] `3rdEden has joined the channel
[21:24] dwhittle has joined the channel
[21:24] iain_: isaacs: I know
[21:25] iain_: even the v8 port doesn't compile, quits out at the same point
[21:26] iain_: theres nothing crazy with the makefile, just calls waf-light with a few args and {build,install}
[21:26] iain_: but replicating that manually doesn't seem to work properly
[21:26] EhevuTov has joined the channel
[21:26] iain_: I must be making a mistake somewhere
[21:26] iain_: but n certainly doesn't do this simpler set
[21:27] Andy1991: How can I join an objects values?
[21:27] Octayn: Do what?
[21:27] Andy1991: Array.prototype.join.call() ?
[21:28] Andy1991: Nope :(
[21:28] hdon: Andy1991: Array will only iterate over Array elements
[21:28] dividinglimits has joined the channel
[21:29] Andy1991: Ahh :/
[21:29] Andy1991: Is there a way to join an object?
[21:29] Andy1991: Like { lat : 57, lng : 59 }.join(',') = 57,59
[21:30] Octayn: Yes, there is. Iterate over the keys, push the associated values to an array, then use that_array.join(',')
[21:30] sammmy: Andy1991: In my code you don't have to set a timeout, if that's what you're asking?
[21:30] dtrejo has joined the channel
[21:30] Andy1991: Thats sorted now, didn't have to with this one either
[21:31] Wizek has joined the channel
[21:31] level09 has joined the channel
[21:31] Andy1991: Thanks for the help btw
[21:31] munro has joined the channel
[21:31] Andy1991: options.path = options.path.replace('{destination}', destination.lat +','+ destination.lng);
[21:31] rtgibbons has joined the channel
[21:31] Andy1991: meh, I dont like that for some reason lol
[21:33] sammmy: Andy1991: could you pastebin your final code?
[21:33] Andy1991: Sure, 1 sec
[21:34] Andy1991: http://pastebin.com/R98G9mgH
[21:34] jimmysparkle has joined the channel
[21:35] Andy1991: http://pastebin.com/F5ff7W3p
[21:36] Andy1991: Theres my polyline decoder incase anyone ever needs one
[21:37] ctp6360 has joined the channel
[21:38] Andy1991: Does anyone know a better way to view nodejs JSON output than logging to console?
[21:38] sammmy: Andy1991: async.parallel calls all the functions at the same time?
[21:38] Andy1991: Yep, works perfect
[21:39] Andy1991: { routes:
[21:39] Andy1991: [ { bounds: [Object],
[21:39] Andy1991: copyrights: 'Map data ©2012 Google',
[21:39] Andy1991: legs: [Object],
[21:39] Andy1991: overview_polyline: [Object],
[21:39] Andy1991: summary: 'A 235',
[21:39] Andy1991: warnings: [],
[21:39] Andy1991: waypoint_order: [] } ],
[21:39] Andy1991: status: 'OK' }
[21:40] alexrbarlow has joined the channel
[21:41] sammmy: Andy1991: I see. Then, this is how you'd duplicate the same effect using yarn in case you're interested: http://pastebin.com/kzFd21hF
[21:42] Andy1991: Isn't that effectively synchronous callbacks with anonymous functions?
[21:43] sammmy: Andy1991: None of it is synchronous
[21:43] emperorcezar has joined the channel
[21:43] Andy1991: My bad, I'm new to node, and not that great at javascript
[21:44] Andy1991: Probably thanks to jQuery lol
[21:44] sammmy: In the initial function (the first funciton passed to yarn) you call Geocode.reverseGeocode twice, all asynchronously.
[21:44] emperorcezar: Is the http.createClient depreciated? I see it in examples, but not in the docs.
[21:44] sammmy: Andy1991: it's okay. You'll get this stuff down pretty quick. I started there too. ;P
[21:44] jimmysparkle has joined the channel
[21:45] Andy1991: I hope so lol
[21:45] jryans has joined the channel
[21:45] Andy1991: I'm ok with PHP :)
[21:45] sammmy: My intention with yarn is to make it all purpose by having a single pattern that can achieve any effect. How to use yarn is simple, but how you use it is up to you.
[21:45] smithbh has joined the channel
[21:45] sammmy: Andy1991: same background. :D
[21:45] Andy1991: =D
[21:45] sammmy: ACTION should really be working. xP
[21:45] Andy1991: lol ok, cya later :P
[21:45] sammmy: Anyway. Have fun noding!
[21:46] Poetro has joined the channel
[21:46] Andy1991: you too, thanks for the help
[21:46] sammmy: If you ever have any questions on yarn let me know. :P
[21:46] sammmy: Andy1991: np
[21:46] Andy1991: Will, do
[21:46] Es0teric: how do i use routes in express to route to the files i create?
[21:46] Es0teric: like if i make a file dashboard.js / dash.ejs
[21:46] Es0teric: how do i tell it that the file exists?
[21:47] YoY has joined the channel
[21:47] kriskowal has joined the channel
[21:47] alexrbarlow: Es0teric: tell if the file exists?
[21:48] Es0teric: alexrbarlow yeah
[21:48] tjholowaychuk: Es0teric you probably want to use express.static() to serve them
[21:48] Es0teric: there we go
[21:48] tjholowaychuk: it's a file serving middleware
[21:48] Es0teric: thats what i was tryng to say
[21:48] Es0teric: serve files
[21:48] Es0teric: there we go
[21:48] tjholowaychuk: or alternative if you need something more dynamic res.sendfile(path)
[21:48] tjholowaychuk: in a route
[21:48] alexrbarlow: Es0teric: yes, what tjholowaychuk said, .ejs is a template language
[21:49] Es0teric: so wait, tjholowaychuk
[21:49] Es0teric: .static() serves the files?
[21:49] dnyy has joined the channel
[21:49] johnstorey has joined the channel
[21:49] tjholowaychuk: Es0teric yeah
[21:50] tjholowaychuk: app.use(express.static(__dirname + '/public'))
[21:50] tjholowaychuk: GET /javascripts/jquery.js
[21:50] enmand has joined the channel
[21:50] tjholowaychuk: serves ./public/javascripts/jquery.js
[21:50] Es0teric: tjholowaychuk ok now you just confused me
[21:50] michaelhartau has joined the channel
[21:50] MrJ has joined the channel
[21:50] shinuza: ahah
[21:51] brianleroux has joined the channel
[21:51] Es0teric: tjholowaychuk right now, i am just trying to get an index file working AND two other files so i can send variables to them
[21:51] Es0teric: i got the index file working (though in the view layout.ejs seems to work fine but it doesnt say index)
[21:53] ioscale1 has joined the channel
[21:53] trivol has joined the channel
[21:54] kinow has joined the channel
[21:54] EhevuTov has joined the channel
[21:54] dividinglimits has joined the channel
[21:56] shinuza: Es0teric: you mean you want to render two other templates, right?
[21:56] Es0teric: yeah, shinuza
[21:56] EhevuTov_ has joined the channel
[21:57] mikl has joined the channel
[21:58] benvie has left the channel
[21:58] shinuza: then you have to call res.render('template.ejs') in your callback
[21:58] benvie has joined the channel
[21:58] dragansah has joined the channel
[21:58] Es0teric: shinuza wait is this on the app.js?
[21:58] shinuza: yes
[21:59] mAritz has joined the channel
[21:59] shinuza: tjholowaychuk: you have any idea why this does work? http://pastie.org/3644150
[21:59] Es0teric: shinuza so its app.get('/file', function(res, req) { res.render('template.ejs') }); ?
[21:59] shinuza: by not working I mean, that the request never ends
[21:59] hh__: is there a point to using a couchdb mdule as oppose to just writing http requests? do most people even bother with the couchdb module?
[21:59] shinuza: Es0teric: yes
[21:59] Es0teric: intresting…, shinuza
[22:00] shinuza: you have to do some configuration regarding the place when expres will find the templates
[22:00] hh__: parameters should be req,res read the guide basic stuff
[22:01] Es0teric: shinuza express finds the templates in /views
[22:01] shinuza: then put template.ejs in there, and it should work
[22:01] Es0teric: yeah yeah
[22:02] Es0teric: shinuza so then app.get('/file') <--- thats whats in /routes right?
[22:02] shinuza: \/routes? what's this?
[22:02] Es0teric: theres a folder called /routes
[22:03] shinuza: you've generated an app using express command line?
[22:03] hh__: read the guide, '/file' would be the URI you are telling express router to match
[22:03] Es0teric: yeah, shinuza
[22:03] Es0teric: hh__ i READ the guide
[22:03] hh__: has nothing to do with routes dir
[22:03] tjholowaychuk: Es0teric "/file" doesn't really mean anything
[22:03] tjholowaychuk: it's just a string
[22:04] tjholowaychuk: you can do whatever you want with that, it could be a file on disk, a template you render, something from a database etc
[22:04] hh__: routers dir is arbitrary , you can name it anything
[22:04] Es0teric: ok so then whats the default directory that it gets the files from?
[22:04] hh__: there is no default
[22:04] hh__: you specify
[22:04] shinuza: Es0teric: by default express doesn't serve files
[22:05] Es0teric: shinuza so then app.get() is what serves files right?
[22:05] shinuza: wrong terminology
[22:05] hh__: that's just registering a route
[22:05] reed_ has joined the channel
[22:05] shinuza: serving a file, to me, is serving the content of the file
[22:05] ph^ has joined the channel
[22:05] dividinglimits has joined the channel
[22:05] Es0teric: so then how do i serve the content of the file?
[22:06] shinuza: what you wrote earlier will render the template template.eks
[22:06] shinuza: Es0teric: depends what you want to do
[22:06] elifou has joined the channel
[22:06] dylang_ has joined the channel
[22:06] shinuza: if you want to serve a bunch of static files, use the express.static middleware
[22:06] franciscallo has joined the channel
[22:06] shinuza: otherwise you can use res.sendfile(path)
[22:06] Es0teric: ok so lets say i do app.get('/file', function(req, res) { res.render('template.ejs') }); that will render template.ejs on local.host:3000/file ?
[22:07] Es0teric: i dont want static files
[22:07] Es0teric: i am trying to build dynamic files here
[22:07] shinuza: but if you want to "serve" a ejs file, I'm pretty sure you'd want to render it instead
[22:07] shinuza: Es0teric: yes this will render the template
[22:08] shinuza: render takes a second parameter which is the context to pass to the template
[22:08] Es0teric: ok, shinuza now… an additional question - what if i have variables in a .js file? where would i put the .js file and how would i tell it to variables from that .js file to pass to the template.ejs?
[22:08] TheEmpath2 has joined the channel
[22:08] TheEmpath2: dshaw_++
[22:08] mAritz has joined the channel
[22:09] Andy1991: Should I be using foreach or for to iterate an array?
[22:09] shinuza: Andy1991: forEach should work
[22:09] hh__: for
[22:09] Andy1991: is foreach slow?
[22:09] hh__: yes
[22:09] shinuza: it depends what kind of function you are using
[22:09] Andy1991: ok thanks
[22:09] shinuza: Andy1991: it used to be slow
[22:10] shinuza: it's not *that* slow
[22:10] Andy1991: but for is faster?
[22:10] shinuza: yes, if you are writing "low level" code use for
[22:10] Andy1991: cheers
[22:10] shinuza: you should check out the jsperf tests on that to get an idea
[22:10] hh__: just make sure you do something like, for (var i = 0, len = Array.length; ..etc.
[22:11] shinuza: Es0teric: you can put that file wherever you want, then you use require('./myfile.js') (read the documentation on modules)
[22:11] Andy1991: I defined the length outside, I know it's faster than count inside the loop in php
[22:11] Andy1991: is this the case with node?
[22:11] Andy1991: var len = response.routes.length;
[22:11] Andy1991: for(var i = 0; i < len; i++) {
[22:11] Es0teric: i am not trying to make a module
[22:11] Es0teric: i am trying to reference a file
[22:12] hh__: just defined it within the for paramters
[22:12] shinuza: and then you need to call res.render('template.ejs', {'foo': myVariable})
[22:12] dukeytoo2 has joined the channel
[22:12] hh__: for(var i = 0, len = response.routes.length; i < len; i++) { .... }
[22:12] Andy1991: But doesnt that call .length on every iteration when it's only needed once?
[22:12] shinuza: no
[22:12] hh__: no
[22:12] Es0teric: shinuza its simple - i want to make a .js file, then set it to a url(of course) then have the template render in that url
[22:12] Andy1991: oki =D
[22:12] Andy1991: that makes life easier
[22:12] shinuza: these variables are hoisted to the top of the function
[22:12] Andy1991: thanks
[22:13] shinuza: even in a for loop
[22:13] Es0teric: and pass the values FROM that .js file into the template file
[22:13] Andy1991: Oh yeah, I forgot about that
[22:13] hh__: for (var i =0; i < response.routes.length ... would do that Andy1991
[22:13] Andy1991: function scope
[22:13] Andy1991: thanks =D
[22:13] shinuza: Es0teric: in the node.js env you need to make a module, as simple as it is
[22:14] hellp has joined the channel
[22:14] arduix has joined the channel
[22:14] shinuza: Andy1991: how many times do you call this for loop
[22:14] Es0teric: in node.js all i need to do is make a file then reference it in the url like so: local.host:3000/myfile
[22:14] fomatin has joined the channel
[22:14] perezd has joined the channel
[22:14] Es0teric: and anything that was in the file will render on the page
[22:14] TheEmpath2: if cluster can restart workers and I'm running the master process in nohup.. do I even need forever?
[22:14] shinuza: Es0teric: in node.js?
[22:15] Es0teric: yeah
[22:15] shinuza: then do what we discussed earlier
[22:15] Es0teric: idk why i cant make a js file then have a template load
[22:15] Es0teric: dude, i want to BUT i dont know where to save the js file
[22:15] shinuza: TheEmpath2: forever is a way to do it
[22:15] Es0teric: idk where the js file should go
[22:16] shinuza: but you won't need nohup
[22:16] shinuza: forever forks the process by itself
[22:16] rtgibbons has joined the channel
[22:16] TheEmpath2: so does cluster
[22:16] TheEmpath2: well you can tell it to with cluster.fork when a process dies
[22:16] shinuza: TheEmpath2: cluster shares the port between workers
[22:17] shinuza: it's just the same as if there were only one worker
[22:17] TheEmpath2: shinuza: it can also restart failed workers
[22:17] shinuza: Es0teric: you can put it wherever you want, but you HAVE to require it
[22:17] shinuza: make a module, etc...
[22:17] TheEmpath2: im curious if forever will bring something else to the table since cluster can restart failed workers
[22:17] shinuza: there's no other way to this, except evil stuff
[22:18] Andy1991: Es0teric it varies
[22:18] joshgillies has joined the channel
[22:18] Andy1991: I'm looping through a json google directions response
[22:18] Es0teric: shinuza so then app.get('/test', function(req, res) {
[22:18] Es0teric: require('/public/javascripts/test.js');
[22:18] Es0teric: res.render('dash.ejs', {foo: 'var1'});
[22:18] Es0teric: });
[22:18] Es0teric: something like that?
[22:18] shinuza: TheEmpath2: forever will just run the node app (in fact it's language agnostic)
[22:18] dtrejo has joined the channel
[22:18] Andy1991: Sorry I meant shinuza
[22:19] cjm has joined the channel
[22:19] shinuza: Es0teric: you have to read the doc on modules,
[22:19] shinuza: require returns the content of the exported object in your file
[22:20] shinuza: and you don't want to call it everytime someone hits that URL
[22:20] c4milo has joined the channel
[22:20] shinuza: the reste of the code is cool tho
[22:21] Es0teric: shinuza so then its var someVar = require('/path/of/file'); then someVar.property or someVar.method?
[22:21] shinuza: yes
[22:21] Es0teric: hmm...
[22:21] Es0teric: kinda complex
[22:21] shinuza: where /path/of/file contains a module.exports = {'property':'foo', 'method':...}
[22:22] Es0teric: wait what?
[22:22] mAritz has joined the channel
[22:22] shinuza: nodejs.org, doc, modules -> go :p
[22:22] Es0teric: alright
[22:22] dividinglimits has joined the channel
[22:23] piscisaureus_ has joined the channel
[22:23] caolanm has joined the channel
[22:24] Es0teric: shinuza so basically module.exports is an object that is accessible by other files?
[22:24] shinuza: hai
[22:26] WarheadsSE: Es0teric: remind me, which language does your base knowledge come from?
[22:26] argami has joined the channel
[22:27] dtrejo has joined the channel
[22:28] EhevuTov has joined the channel
[22:28] brianleroux has joined the channel
[22:28] retornam has joined the channel
[22:28] Marak_: WarheadsSE: nice nick
[22:29] Marak_: waiting for a browser based mmo warheads comes out
[22:29] erichynds has joined the channel
[22:30] WarheadsSE: < its me.
[22:30] hmm___ has joined the channel
[22:30] WarheadsSE: still not making it an mmo.
[22:31] Sh4n3 has joined the channel
[22:31] WarheadsSE: and we webgl makes it far enough, or canvas support gets solid enough, I'll consider the move.
[22:31] ircretary has joined the channel
[22:32] simenbrekken has joined the channel
[22:32] hh__: so for couchdb users, any point in using the couchdb npm module?
[22:32] Marak_: WarheadsSE: woah! thats your game?
[22:32] WarheadsSE: ues
[22:32] isaacs: hh__: anything by JasonSmith/iriscouch is probably a good one to use.
[22:33] isaacs: hh__: like txn, or other things. mostly, i just use request
[22:33] shinuza: hh__: I always consider engine agnostic ODM's
[22:33] nateps has joined the channel
[22:33] shinuza: like resourceful, for futureproofness
[22:33] Marak_: WarheadsSE: i would totally make a web-based socket.io version if i had any time. i've brought it up with our dev team several times
[22:33] Marak_: WarheadsSE: just no time :-(
[22:33] hh__: oh hey isaacs , any plans to add some better search/discovery for npmjs.org ? maybe even simply displaying a popularity type metric
[22:33] Marak_: json based weapon descriptions for the warheads
[22:34] WarheadsSE: heh.. remember I have the IP ownership ;)
[22:34] shinuza: otherwise it depends of the api exposed by the module
[22:34] Marak_: WarheadsSE: please dont sue over non-written lines of code :-)
[22:34] WarheadsSE: like i said though, Marak_ canvas/webgl need to spread a bit more
[22:34] WarheadsSE: I won't just a reminder ;)
[22:34] dividinglimits has joined the channel
[22:35] Marak_: WarheadsSE: i had a few ideas to make changes to the game mechanics too, so that it was just 1:1. essentially do arena based maps, where people could join in at anytime
[22:35] Marak_: not, just 1:1 players
[22:35] Marak_: sorry, i'm epic distracted right now. i'll leave you alone
[22:35] Marak_: just saw the name and freaked a little
[22:35] spolu has joined the channel
[22:36] WarheadsSE: :p
[22:36] WarheadsSE: lol, tis fine
[22:36] hcchien has joined the channel
[22:36] snearch has joined the channel
[22:36] halfhalo has joined the channel
[22:37] WarheadsSE: I looked into the "arena based" but it breaks the model of the game & ranking system horribly
[22:37] josh-k has joined the channel
[22:39] boltR has joined the channel
[22:40] Poetro has joined the channel
[22:41] metaverse has joined the channel
[22:41] mehlah has joined the channel
[22:42] nmanousos has joined the channel
[22:42] CIA-19: libuv: 03Ben Noordhuis 07v0.6 * r8409a67 10/ src/unix/stream.c :
[22:42] CIA-19: libuv: unix: ignore ECONNABORTED errors from accept()
[22:42] CIA-19: libuv: ECONNABORTED means that the connection was torn down by the peer before the
[22:42] CIA-19: libuv: TCP handshake completed. Ignore it, there's nothing we can do and it simplifies
[22:42] CIA-19: libuv: error handling for libuv users. - http://git.io/IMARTw
[22:43] automata has joined the channel
[22:43] ljharb has joined the channel
[22:43] st_luke has joined the channel
[22:44] ericmuyser has joined the channel
[22:45] bnoordhuis has joined the channel
[22:48] karellen has joined the channel
[22:48] dividinglimits has joined the channel
[22:49] devongovett has joined the channel
[22:51] karellen has left the channel
[22:52] dividinglimits has joined the channel
[22:53] arthurdebert has joined the channel
[22:55] hcchien has joined the channel
[22:55] ohtogo has joined the channel
[22:58] satyr has joined the channel
[22:59] _jzl has joined the channel
[23:00] QiBala has joined the channel
[23:00] alexrbar_ has joined the channel
[23:01] joshontheweb has joined the channel
[23:03] brianseeders has joined the channel
[23:03] sputnikus has joined the channel
[23:04] Destos has joined the channel
[23:05] smithbh has joined the channel
[23:05] samuelgoodwin has joined the channel
[23:06] TheEmpath2: okay really painful question
[23:06] MrJ has joined the channel
[23:06] tommyvyo has joined the channel
[23:06] TheEmpath2: i have three users on my box. root, me, and nodejs. root is mostly disabled, me is a sudoer, and nodejs is a jailed account that node instances get downgraded to when they run
[23:07] mike_ has joined the channel
[23:07] TheEmpath2: i've installed node into the /home/nodejs/node folder. i've set the export PATH=$PATH:/home/nodejs/node/bin on the .bashrc for both root and me
[23:07] TheEmpath2: i type node as me, and it works
[23:08] TheEmpath2: i type sudo node, and it says it cant find it... this is a seriously frustrating problem
[23:08] kevinswiber has joined the channel
[23:08] iangreenleaf: tjholowaychuk: in mocha, you've got a test/acceptance/test.coffee, but is it being run anywhere? your makefile uses test/acceptance/*.js
[23:08] Dreamer3 has joined the channel
[23:08] context: theempath2: uhh... you just said you updated path for you and root.... NOT node
[23:08] tjholowaychuk: iangreenleaf oh haha in that case probably not
[23:08] context: theempath2: so update path for node MIGHT fix that ... just an idea...
[23:08] TheEmpath2: the nodejs account is never actually accessed by anyone. the process only gets downgraded to nodejs user only after it is running
[23:09] TheEmpath2: long after sudo has been evaluated
[23:09] iangreenleaf: tjholowaychuk: :D
[23:09] stagas has joined the channel
[23:09] context: oh! i read that wrong
[23:09] context: theempath2: sudo doesn't run .bashrc
[23:09] context: theempath2: try sudo -E
[23:09] TheEmpath2: context: you'd think otherwise given that everyone on the goddamned internet says put export PATH=$PATH:/home/nodejs/node/bin into the /root/.bashrc
[23:10] context: theempath2: sudo != you running bash manually.
[23:10] dividinglimits has joined the channel
[23:10] context: in fact. sudo node doesnt run bash AT ALL !
[23:10] qbert_: how would I read a binary file ? what is the encoding type ?
[23:11] context: theempath2: try sudo -E node
[23:11] mcoolin_ has left the channel
[23:11] TheEmpath2: so... if sudo is in its own magical work. how exactly do I make sudo root me (which is not me or root but in its own quantum universe somewhere in either land) be aware of node?
[23:11] context: theempath2: do i even want to know why you decided to install node in a users home and not system wide ?
[23:11] TheEmpath2: sudo -E node doesn't work
[23:11] context: like.... EVERY normal person
[23:12] TheEmpath2: node is an alpha project and it changes version constantly
[23:12] TheEmpath2: i want to isolate versions as they change
[23:12] TheEmpath2: so if i need to urn node 0.5 and node 0.6 on the same server, i can
[23:12] TheEmpath2: klinda like ruby
[23:12] dnolen has joined the channel
[23:13] context: so use something like nvm ?
[23:13] context: use full paths?
[23:13] TheEmpath2: i am using full paths currently
[23:13] TheEmpath2: but i have a problem with npm
[23:14] context: theempath2: or: sudo -i node
[23:14] TheEmpath2: sudo npm install forever -g is telling me that /usr/bin/env doesn't exist
[23:14] context: theempath2: no... full paths would have been: sudo /home/nodejs/bin/node
[23:14] TheEmpath2: sudo /home/nodejs/bin/node/npm install forever -g is telling me that /usr/bin/env doesn't exist
[23:14] argami_ has joined the channel
[23:14] dividinglimits has joined the channel
[23:15] context: haha
[23:16] TheEmpath2: of course if /usr/bin/env doesn't exist, i should be having significantly more serious problems
[23:16] context: you are doing something no one in their right mind even thinks of doing... and wonder why it doesnt work
[23:16] context: ls -l /usr/bin/env
[23:16] TheEmpath2: its there
[23:16] context: well if you are sudo'ing as node and you said the user is jailed
[23:16] TheEmpath2: and nvm didn't exist when node was first being used
[23:17] TheEmpath2: im sudoing as root
[23:17] TheEmpath2: thats the point of sudo
[23:17] context: -i !
[23:17] context: man sudo
[23:17] hcchien has joined the channel
[23:17] context: shit. manual pages. they instruct you how things work and options they have
[23:17] TheEmpath2: ...
[23:17] TheEmpath2: anyone else?
[23:17] context: sudo -i node
[23:18] TheEmpath2: yeah, that doesn't work either
[23:18] bartt1 has joined the channel
[23:18] context: define "dont work"
[23:18] context: in /root; ln -s .bashrc .profile
[23:18] context: or .bashprofile
[23:19] context: -i [command]
[23:19] context: The -i (simulate initial login) option runs the shell specified in the passwd(5) entry of
[23:19] context: the target user as a login shell. This means that login-specific resource files such as
[23:19] context: .profile or .login will be read by the shell.
[23:19] context: SEE ?! the man page even tells you what profile file your shell is going to execute! its amazing
[23:19] context: theempath2: shells have a difference between interactive and non-interactive shells
[23:19] context: and load different profiles depending
[23:20] context: you know NOTHING about shells in general, or bash, or sudo, and you are wondering why NOTHING is working.
[23:20] mansoor has joined the channel
[23:21] context: err .bash_profile sorry
[23:22] context: and you, like most people who cry on irc, would rather cry on irc for hours on end than read a man page for five minutes. THEN you get cranky when someone like me calls you out for being a lazy bastard afraid to learn anything.
[23:22] TheEmpath2: if I wanted hostility and bitterness, I would have remained in #phpc
[23:22] hobodave: are there any guides to creating Node.js apps that aren't functional-code-soup?
[23:22] TheEmpath2: Now we are cross ad hominem.
[23:22] WarheadsSE: hobodave: wha
[23:22] hcchien has joined the channel
[23:22] TheEmpath2: Crying...
[23:23] TheEmpath2: Yes, let's talk about crying.
[23:23] context: theempath2: no. you just got pissed for me saying the man page explains what you want.
[23:23] hobodave: please take the disrespect and egos elsewhere, both of you
[23:23] WarheadsSE: ACTION fetchs popcorn
[23:23] context: warheadsse: woo i want some
[23:23] context: hobodave: its ok im done.
[23:23] alm0nd has joined the channel
[23:25] dividinglimits has joined the channel
[23:26] hobodave: WarheadsSE I'm not a particularly good javascript developer, so my node.js application looks like hot mess imo
[23:26] smithbh has joined the channel
[23:27] hobodave: it's a single file that relies on the global variables defined at the top of the script
[23:27] hobodave: I'm basically trying to refactor it to not suck, and follow whatever best practices may exist: https://github.com/hobodave/logrum/blob/master/server.js
[23:28] hobodave: actually let me update with my latest refactoring
[23:28] dtrejo has joined the channel
[23:28] hobodave: https://github.com/hobodave/logrum/blob/refactor/server.js
[23:29] hobodave: I will gladly take any criticism or observations
[23:30] hobodave: the things that are bugging me now is the seemingly out of place and clunky config loading I do on lines 18 - 33
[23:30] hobodave: as well as the seemingly disjoint definition of my Socket.IO functionality starting on line 82
[23:31] yaymukund: hobodave: why does parseConfig warrant being its own function? it's never used again
[23:31] Wa has joined the channel
[23:31] hobodave: yaymukund it doesn't
[23:31] dinarcon has joined the channel
[23:31] isaacs: TheEmpath2: it's not that /usr/bin/env doesn't exist. it's that some script is asking env to start a program that doesn't exist.
[23:32] isaacs: TheEmpath2: the most liekly candidate is python or node, in that case.
[23:32] hobodave: I think the reason I wrote it that way was that it would be a plain english description of what yaml.load(fs.readFileSync(…)) was doing
[23:32] yaymukund: hobodave: ah, just to encapsulate. I see
[23:32] dividinglimits has joined the channel
[23:35] Druid_ has joined the channel
[23:36] Druid_ has joined the channel
[23:36] yaymukund: hobodave: any reason you can't split it up into multiple files? I'm not an expert either, but that's where I'd start.
[23:37] karellen has joined the channel
[23:37] hobodave: yaymukund well my dependence on the global variables being visible in the inner scopes prevents that
[23:37] hobodave: so I'm stuck either adding a ton of params to various functions
[23:37] munro has joined the channel
[23:37] WarheadsSE has joined the channel
[23:37] hobodave: or leaving it as is
[23:38] hobodave: that's why I'm looking for best practices, or at least some guides/blog posts
[23:38] hobodave: but yes that's definitely something that seems warranted
[23:39] dthompso99 has joined the channel
[23:39] dthompso99 has left the channel
[23:39] hipertracker has joined the channel
[23:41] mounibec has joined the channel
[23:43] yaymukund: hobodave: here's how I share one db connection across my process: http://stackoverflow.com/q/6275643 You might do something like that for your processes[]
[23:44] jMCg has joined the channel
[23:44] jMCg: o/~
[23:45] EhevuTov_ has joined the channel
[23:45] joshfinnie has joined the channel
[23:45] Knowledge has joined the channel
[23:46] redir has joined the channel
[23:47] dukeytoo2 has joined the channel
[23:48] zanefactory_ has joined the channel
[23:48] dividinglimits has joined the channel
[23:49] heavysixer has joined the channel
[23:51] rtgibbons has joined the channel
[23:52] jmar777 has joined the channel
[23:52] karellen: quit
[23:53] criswell has joined the channel
[23:53] dukeytoo has joined the channel
[23:53] yaymukund: hobodave: found the link! https://github.com/skookum/base12
[23:54] hobodave: yaymukund thanks, what is this now?
[23:54] briancray has joined the channel
[23:54] ioscale has joined the channel
[23:54] yaymukund: hobodave: as with everything in node, do what's right for your app. but that migth spark some ideas. it's mvc atop express, but I mainly like how well it's documented
[23:54] perezd has joined the channel
[23:55] totallymike has joined the channel
[23:55] dylang has joined the channel
[23:55] karellen has joined the channel
[23:56] yaymukund: hobodave: haven't found anything better, aside from obv reading lots of stackoverflow :D
[23:57] hobodave: thanks a lot yaymukund
[23:57] dtrejo has joined the channel
[23:59] lsdafjklsd has joined the channel
[23:59] lsdafjklsd: Hey all