[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: and nesting input fields in forms [03:11] context: what ljharb said [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