[00:01] digman543 has joined the channel [00:01] markdaws: murz: multiple requires to the same module will return the same object, so it will only be initialized once [00:04] ecin has joined the channel [00:08] robhawkes has joined the channel [00:08] rchavik has joined the channel [00:09] fread228_ has joined the channel [00:09] chase: wondering what the best way would be to fire a POST to an absolute URL from my server? [00:09] softdrink has joined the channel [00:09] chase: get-post NPM module? looks like its only good for JSON [00:10] sdwrage has joined the channel [00:12] tk has joined the channel [00:12] jerrysv: chase: https://github.com/mikeal/request ? [00:14] cbobo: How do we install modules for node.js ? [00:14] dynacker: npm [00:14] cbobo: https://github.com/ncr/node.ws.js [00:14] cbobo: i want that one though... [00:15] AphelionZ: Check this out [00:15] cbobo: and it says it is not in the npm [00:15] isaacs: jerrysv, chase: That shouldn't even be a question. [00:15] cbobo: npm ERR! 404 'ws' is not in the npm registry. [00:15] AphelionZ: they say all work no play [00:15] AphelionZ: but what about like.. no work, no play [00:15] isaacs: cbobo: looks pretty out of date. [00:15] markdaws: chase: http.request is pretty simple to use to do a POST [00:15] isaacs: cbobo: doesn't have a package.json, advertises compatibility with node 0.1.91 [00:16] cbobo: http://zackhobson.com/2010/03/28/node-js-and-web-sockets.html [00:16] cbobo: ya okay, i was reading that and trying to set up some websockets and what not [00:16] cbobo: so that I can interact with a socket on the backend [00:16] isaacs: cbobo: try running this: npm search websocket server [00:17] cbobo: okay cool, i will try one of them [00:17] cbobo: NAME DESCRIPTION AUTHOR KEYWORDS [00:17] cbobo: maybe should also have DATE [00:17] cbobo: ;p [00:17] jerrysv: isaacs: agree [00:18] spicycode has joined the channel [00:18] jerrysv: isaacs: but maybe, just maybe, he had looked at it and ruled it out? [00:18] isaacs: cbobo: good idea. [00:18] isaacs: cbobo: can you post an issue for it? [00:18] chase: isaacs, jerrsv: just wanted ot make sure I took the best route [00:18] chase: using express [00:18] chase: tried using it [00:18] chase: but cant seem to make it work right [00:19] chase: probably ID10T error [00:19] cbobo: isaacs: not sure how to post issues and I only have 3hrs left till my gf comes home [00:19] jp323_ has joined the channel [00:19] jerrysv: chase: sorry, i don't use express, i use bricks :) [00:19] cbobo: and wanted to do some node.js today =] [00:19] chase: you recommend over express? [00:20] jerrysv: chase: i do - i wrote it. but check out the docs, go through the slides, and make your own decision [00:20] Archen has joined the channel [00:20] jerrysv: chase: different design philosophy [00:20] eguest309 has joined the channel [00:20] slifty has joined the channel [00:23] jesusabdullah: chase: express is kind of a de facto standard when it comes to node frameworks---it's either that or the basic http api [00:24] jesusabdullah: which isn't really that hard or anything, but middleware has its advantages! [00:24] jerrysv: jesusabdullah: i disagree with your "either" [00:24] chase: jerrysv: oh i see your bias ;), checking it out though now [00:24] jerrysv: chase: and i'm happy to point out my bias :) [00:24] jesusabdullah: well, not that you have no choice [00:24] chase: jerrsv: I'm already more of a fan of your routing setup [00:24] jp323 has joined the channel [00:24] jesusabdullah: just that those are probably the most common tools people are using for this kinda thing [00:24] jerrysv: chase: yeah, that and the events is why i wrote it [00:25] jesusabdullah: Obviously you could use bricks instead of express [00:25] skm has joined the channel [00:25] jesusabdullah: One time I made a half-assed framework on accident [00:25] jesusabdullah: I was just writing a webapp and before I knew it I had routes and templates [00:25] chase: jesusabdullah: yea i tend to stray where the most documentation and examples can be found [00:25] jerrysv: jesusabdullah: same here, then a more fully baked one, then another one, and then another one, then spent a lot of time in express, then went back and rebuilt mine [00:25] jesusabdullah: Yeah, that seems reasonable [00:26] jesusabdullah: though, old projects tend to have a larger body of documentation [00:26] jesusabdullah: s/old/crusty/ [00:26] jesusabdullah: well [00:26] jerrysv: as much as i hate apache, there were some aspects of its pattern that i really like [00:26] jesusabdullah: old and crusty [00:27] chase: with that said .. another noob question,, if express has http as a dependency, do i still need to require http as its own entity to use it as http.request? [00:27] davidsklar has joined the channel [00:27] jesusabdullah: yes [00:27] tjholowaychuk: chase http is for the server [00:27] jerrysv: you need to require any module any time you need it and it is not in scope [00:27] jesusabdullah: You can use express without requiring http, but if you want to use something that's in http directly you'll have to require the http module explicitly [00:27] jesusabdullah: express doesn't expose it for you [00:29] digman543 has joined the channel [00:30] chase: awesome thank you, another first timer question ... whos to say someone can't just setup a socket on their client socket.io and connect to my server? whats the best way of securing that? [00:31] postwait has joined the channel [00:31] localhost has joined the channel [00:31] hasenj has joined the channel [00:31] dynacker: good question [00:31] jerrysv: chase: what would be an example of not wanting to allow that? [00:31] jesusabdullah: chase_farmer: I think you just have to either have your websocket-exposed api be public, or add an auth step [00:32] dynacker: how would the auth step work jesusabdullah [00:32] dynacker: guess you would need to validate that the client IP got the socket files within the last x time [00:32] chase_farmer: jerrysv: someone passing malicious code back to my socket. I guess its on me to make sure the socket functions passed back are sanitized to make sure that doesn't happen [00:32] dynacker: not really stopping, just slowing them down [00:32] dynacker: what you said chase_farmer [00:33] dynacker: just like any other API you need to secure the server side [00:33] dynacker: and assume peopel will try fuck with it [00:33] jesusabdullah: dynacker: It's a persistent connection, you just have to make sure the client has the right credentials and just re-auth if the connection closes [00:33] chase_farmer: definitely do, just curious if there was a de facto standard [00:33] jesusabdullah: I'm speaking conceptually---I've never had to do this with socket.io [00:33] jerrysv: chase_farmer: exactly, just assume someone will get through, and sanitize/check everything [00:34] dynacker: validate everything that comes in [00:34] dynacker: etc. [00:34] jerrysv: reminds me of that tv chat app for the node competition [00:34] jerrysv: and dom injection attacks [00:34] chase_farmer: anyone know of a good NPM for sanitizing form data? [00:35] jesusabdullah: idk if there's more than one npm yo ;) [00:35] chase_farmer: npm module [00:35] chase_farmer: you know what i meant [00:35] chase_farmer: haha [00:35] jerrysv: jesusabdullah: smartass [00:37] mandric has joined the channel [00:38] chase_farmer: jerrysv: i can only imagine what the competitors were trying to do to mess with others entries [00:38] chase_farmer: i bet that was fun [00:39] jesusabdullah: jerrysv: maaaaybe ;) [00:40] shipit has joined the channel [00:40] jesusabdullah: chase_farmer: From what I saw people were fairly civil when it came to haxx. It's way easier to just game the votes, so to speak [00:41] PhilK has joined the channel [00:41] jerrysv: jesusabdullah: i docked them heavily vote-wise because of lack of security, but gave them an extra star elsewhere for how fun it was messing with everyone else [00:41] dynacker: anyone tried mongodb on openvz [00:42] chase_farmer: jerrsv: i thought they were FB like buttons .. no? [00:42] jesusabdullah: Hah [00:43] jerrysv: chase_farmer: this was real judge voting for knockout [00:43] jesusabdullah: Yeah, there were fb likes, contestant judging and judge-judging [00:43] jesusabdullah: hah [00:43] sonnym has joined the channel [00:44] Archen has joined the channel [00:44] zmbmartin has joined the channel [00:45] jp323 has joined the channel [00:46] mikeric has joined the channel [00:49] neoesque has joined the channel [00:49] gerard0 has joined the channel [00:49] jesusabdullah: OT: Who here plays minecraft? If I set up a multiplayer server who'd be down? [00:50] jesusabdullah: Not happening for a few days, but, u noe [00:50] nforgerit has joined the channel [00:50] darinc has joined the channel [00:50] jerrysv: alrighty, time for me to go home. [00:50] jerrysv: ciao! [00:51] FireFly has joined the channel [00:51] cbobo: FYI: websockets WebSocket Server & Client API =okubo [00:52] cbobo: ^ that is shit [00:52] cbobo: websocket-server A WebSocket Server for node.js, 90-100% spec compatible. =miksago [00:52] PhilK has joined the channel [00:52] cbobo: ^ that is working and good [00:52] inph0 has joined the channel [00:52] raja has joined the channel [00:53] jesusabdullah: No minecrafters huh? [00:53] dynacker: use to [00:53] dynacker: got over it [00:53] igl: got bored of it too [00:53] igl: you are a year too late =) [00:53] dynacker: it was fun for a few months [00:53] dynacker: after you make your 200th dick in the sky [00:53] Jabbers: never tried it - afraid it'll suck up too much of my time :) [00:53] jesusabdullah: pffsht [00:54] jesusabdullah: Am I the only person that merely plays it moderately? Geez [00:54] jesusabdullah: I actually haven't played it in months [00:54] igl: are you the one who build the enterprise 1:1 model? :p [00:54] jesusabdullah: but I'm getting a new computer that should run it a lot better than this old POS [00:55] igl: any quakelive players? lets make a node.js clan :P [00:55] slickplaid: wow... that's a new error: 500 RangeError: Maximum call stack size exceeded [00:55] slickplaid: (using express) [00:55] Wa has joined the channel [00:56] tjholowaychuk: slickplaid too much recursion [00:56] jesusabdullah: Is npm down not responding or is it just me? [00:56] slickplaid: Yeah, trying to include a non-node lib. :) [00:56] jesusabdullah: eh? [00:57] isaacs: jesusabdullah: http://www.downforeveryoneorjustme.com/registry.npmjs.org [00:57] isaacs: just you [00:57] isaacs: jesusabdullah: what are you doing? [00:58] jesusabdullah: isaacs: trying to install something, it's just chillin' [00:58] jesusabdullah: probably just network connectivity on my side [00:58] jesusabdullah: but it was being slow locally too [00:58] jesusabdullah: I'd actually forgotten about downforeveryoneorjustme.com if you can believe that [01:00] slickplaid: I like to think the idiom "You learn something new every day." has more to do with re-learning the things I've forgotten over time than actually new things. [01:00] Archen has joined the channel [01:01] taf2 has joined the channel [01:01] k1ttty has joined the channel [01:02] smtlaissezfaire has joined the channel [01:03] Sami_ZzZ has joined the channel [01:06] jomoho has joined the channel [01:08] cainus: hey all... has anyone got a good reason *against* defensive programming? not trying to start a flame war... I just wanted to hear the other side and google only seems to lead me to blog posts advocating it [01:08] sub_pop has joined the channel [01:08] jesusabdullah: What's defensive programming? [01:09] tbranyen: i hope it involves mithril [01:09] jrbran has joined the channel [01:10] dynacker: it involves acid [01:12] tbranyen: i have never and will never code anything that is ACID compliant [01:12] dynacker: oh that acid.. [01:12] AvianFlu has joined the channel [01:13] wookiehangover has joined the channel [01:13] PhilK has joined the channel [01:13] jomoho has joined the channel [01:13] Sami_ZzZ has joined the channel [01:13] k1ttty has joined the channel [01:13] inph0 has joined the channel [01:13] darinc has joined the channel [01:13] gerard0 has joined the channel [01:13] neoesque has joined the channel [01:13] mikeric has joined the channel [01:13] sonnym has joined the channel [01:13] shipit has joined the channel [01:13] mandric has joined the channel [01:13] localhost has joined the channel [01:13] davidsklar has joined the channel [01:13] tk has joined the channel [01:13] rchavik has joined the channel [01:13] catb0t has joined the channel [01:13] Isaiah has joined the channel [01:13] matyr has joined the channel [01:13] daed has joined the channel [01:13] jlaire has joined the channel [01:13] ted___ has joined the channel [01:13] heavysixer has joined the channel [01:13] kurtzhong has joined the channel [01:13] visnup has joined the channel [01:13] fearphage has joined the channel [01:13] monokrome has joined the channel [01:13] Gregor has joined the channel [01:13] tim_smart has joined the channel [01:13] Lorentz has joined the channel [01:13] maeldur has joined the channel [01:13] secoif has joined the channel [01:13] Pilate has joined the channel [01:13] saikat has joined the channel [01:13] Bergle_1 has joined the channel [01:13] nickadeemus2002 has joined the channel [01:13] metellus has joined the channel [01:13] Skipants has joined the channel [01:13] SuMarDi has joined the channel [01:13] tobmaster has joined the channel [01:13] lamalex has joined the channel [01:13] dreamdust has joined the channel [01:13] jamesd_ has joined the channel [01:13] Dreamer3__ has joined the channel [01:13] _sorensen_ has joined the channel [01:13] Lingerance has joined the channel [01:13] adnam has joined the channel [01:13] tahu has joined the channel [01:13] mbruce has joined the channel [01:13] paulwe has joined the channel [01:13] zipace has joined the channel [01:13] hellp has joined the channel [01:13] jhurliman has joined the channel [01:13] guidocalvano has joined the channel [01:13] gregpascale has joined the channel [01:13] Casan has joined the channel [01:13] xy has joined the channel [01:13] jetienne has joined the channel [01:13] parshap has joined the channel [01:13] tylerstalder has joined the channel [01:13] rcaskey has joined the channel [01:13] chrislorenz has joined the channel [01:13] isaacs has joined the channel [01:13] [[zz]] has joined the channel [01:13] dgathright has joined the channel [01:13] TheFuzzball has joined the channel [01:13] gsmcwhirter has joined the channel [01:13] addisonj has joined the channel [01:13] melcher has joined the channel [01:13] slaskis has joined the channel [01:13] gregeh has joined the channel [01:13] markdaws has joined the channel [01:13] JKarsrud has joined the channel [01:13] ceej has joined the channel [01:13] random123 has joined the channel [01:13] rick_h_ has joined the channel [01:13] kriszyp has joined the channel [01:13] bshumate has joined the channel [01:13] ptlo has joined the channel [01:13] vereteran has joined the channel [01:13] matti has joined the channel [01:13] kawaz_h has joined the channel [01:13] shedinja_ has joined the channel [01:13] Esteb has joined the channel [01:13] sgimeno has joined the channel [01:13] Tobbe has joined the channel [01:13] levi has joined the channel [01:13] Drakonite has joined the channel [01:13] racar has joined the channel [01:13] Guest81685 has joined the channel [01:13] cainus has joined the channel [01:13] cnu has joined the channel [01:13] mattp_ has joined the channel [01:13] stephank has joined the channel [01:13] jackbean has joined the channel [01:13] m_3 has joined the channel [01:13] arpunk has joined the channel [01:13] ryanRT has joined the channel [01:13] pamorf has joined the channel [01:13] fairwinds has joined the channel [01:13] Tobias|| has joined the channel [01:13] Fuu has joined the channel [01:13] lmorchard has joined the channel [01:13] m4rcs has joined the channel [01:13] trupppOFF has joined the channel [01:13] mediaslave has joined the channel [01:13] flexd has joined the channel [01:13] GeorgeJ has joined the channel [01:13] kei has joined the channel [01:13] CIA-48 has joined the channel [01:13] iivvoo has joined the channel [01:13] slajax has joined the channel [01:13] seebees has joined the channel [01:13] v8bot_ has joined the channel [01:13] RichardBronosky has joined the channel [01:13] slloyd has joined the channel [01:13] necromancer has joined the channel [01:13] yorick has joined the channel [01:13] gaYak has joined the channel [01:13] FireFoxIXI has joined the channel [01:13] Industrial has joined the channel [01:13] shachaf has joined the channel [01:13] siculars has joined the channel [01:13] sstreza has joined the channel [01:13] jn has joined the channel [01:13] pandark_ has joined the channel [01:13] yenz_ has joined the channel [01:13] rektide has joined the channel [01:13] mct has joined the channel [01:13] tjgillies has joined the channel [01:13] dabailey has joined the channel [01:13] robashton has joined the channel [01:13] isufy_ has joined the channel [01:13] ossareh has joined the channel [01:13] mrtazz has joined the channel [01:13] ollie has joined the channel [01:13] rphillips has joined the channel [01:13] tg has joined the channel [01:13] hoodow has joined the channel [01:13] swaj has joined the channel [01:13] lukegb has joined the channel [01:13] cmeiklejohn has joined the channel [01:13] tuhoojabotti has joined the channel [01:13] apoc has joined the channel [01:13] ncb000gt has joined the channel [01:13] efoster has joined the channel [01:13] Hamms has joined the channel [01:13] gf3 has joined the channel [01:13] omni5cience has joined the channel [01:13] Nuck has joined the channel [01:13] pzich has joined the channel [01:13] raz has joined the channel [01:13] neshaug has joined the channel [01:13] willwh has joined the channel [01:13] kraft has joined the channel [01:13] wereHamster has joined the channel [01:13] Guest18468 has joined the channel [01:13] kersny has joined the channel [01:13] alexh has joined the channel [01:13] romainhuet has joined the channel [01:13] owenb has joined the channel [01:13] ippa has joined the channel [01:13] tmzt_ has joined the channel [01:13] niclone has joined the channel [01:13] else has joined the channel [01:13] einaros has joined the channel [01:13] blissdev has joined the channel [01:13] fuzzyone has joined the channel [01:13] doffm has joined the channel [01:13] elliottcable has joined the channel [01:13] Bodil has joined the channel [01:13] pig_ has joined the channel [01:13] orospakr has joined the channel [01:13] maqr has joined the channel [01:13] Astro has joined the channel [01:13] webben has joined the channel [01:13] jonaslund has joined the channel [01:13] RushPL has joined the channel [01:13] tomh has joined the channel [01:13] Lars_unique has joined the channel [01:13] ddollar has joined the channel [01:13] cconstantine has joined the channel [01:13] rhizmoe has joined the channel [01:13] Twelve-60 has joined the channel [01:13] iFire has joined the channel [01:13] lemon-tree has joined the channel [01:13] btipling has joined the channel [01:13] paulbaumgart has joined the channel [01:13] silky has joined the channel [01:13] tmm1 has joined the channel [01:13] rgmarcha has joined the channel [01:13] pdonald has joined the channel [01:13] txxt has joined the channel [01:13] franck34 has joined the channel [01:13] finsken has joined the channel [01:13] pct has joined the channel [01:13] killfill has joined the channel [01:13] n1mmy has joined the channel [01:13] Hosh has joined the channel [01:13] pekim_ has joined the channel [01:13] whoops has joined the channel [01:13] daleharvey has joined the channel [01:13] dnyy has joined the channel [01:13] Nomon_ has joined the channel [01:13] footyfish has joined the channel [01:13] metadaddy has joined the channel [01:13] atiti has joined the channel [01:13] kloeri has joined the channel [01:13] wao has joined the channel [01:13] minerale has joined the channel [01:13] drudge has joined the channel [01:13] callumacrae has joined the channel [01:13] _mdp has joined the channel [01:13] Lartsa has joined the channel [01:13] lifty has joined the channel [01:13] silverwind has joined the channel [01:13] marlun has joined the channel [01:13] sugyan_ has joined the channel [01:13] MikeW has joined the channel [01:13] onre has joined the channel [01:13] mac^ has joined the channel [01:13] adelcambre has joined the channel [01:13] markatto has joined the channel [01:13] up_the_irons has joined the channel [01:13] zpao has joined the channel [01:13] tomb has joined the channel [01:13] jmoiron has joined the channel [01:13] inimino has joined the channel [01:13] optico has joined the channel [01:13] jheusala has joined the channel [01:13] jburkhart has joined the channel [01:13] Sembiance has joined the channel [01:13] nigelb has joined the channel [01:13] rachelderp has joined the channel [01:13] bmaland has joined the channel [01:13] meder has joined the channel [01:13] jamonkko has joined the channel [01:13] khmer has joined the channel [01:13] bsutt has joined the channel [01:13] actonapp has joined the channel [01:13] Aikar has joined the channel [01:13] parse has joined the channel [01:13] zinkem has joined the channel [01:13] Karmalicious has joined the channel [01:13] kaarlo has joined the channel [01:13] andyl has joined the channel [01:13] nuba has joined the channel [01:13] joshontheweb has joined the channel [01:13] Dmitrijus has joined the channel [01:13] apejens has joined the channel [01:13] zhware_ has joined the channel [01:13] maru_cc has joined the channel [01:13] a11235 has joined the channel [01:13] a11235 has joined the channel [01:13] xerox_ has joined the channel [01:13] gaving has joined the channel [01:13] DrPizza_ has joined the channel [01:13] DrPizza has joined the channel [01:13] sstephenson has joined the channel [01:13] mrkurt has joined the channel [01:13] xerox has joined the channel [01:14] gsmcwhirter has joined the channel [01:14] a11235 has joined the channel [01:15] tilgovi has joined the channel [01:15] tilgovi has joined the channel [01:15] tilgovi has joined the channel [01:15] tilgovi has joined the channel [01:15] k1ttty has joined the channel [01:16] jspiros has joined the channel [01:18] kurtzhong_ has joined the channel [01:19] metellus has joined the channel [01:22] jtrudeau has joined the channel [01:22] ryanmcgrath has joined the channel [01:24] merlin83 has joined the channel [01:24] davididas has joined the channel [01:25] briandh has joined the channel [01:26] neurodrone_ has joined the channel [01:26] diogogmt has joined the channel [01:27] diogogmt: hey guys [01:27] diogogmt: I' m trying to implement an application [01:27] diogogmt: that from the php will call the node.js server [01:27] diogogmt: send some data [01:27] diogogmt: and in the node.js server will connect with other webservices [01:28] shimondoodkin has joined the channel [01:28] diogogmt: especificaly with the google calendar api [01:28] diogogmt: I' m not sure if that is posible [01:28] diogogmt: to connect with node via php [01:28] diogogmt: ? [01:29] lepht has joined the channel [01:30] AvianFlu: diogogmt, I've seen articles about integrating node with drupal [01:31] AvianFlu: you can apparently use drupal for auth/session kind of stuff and then hand the connection to node from there [01:31] jedahan has joined the channel [01:31] gxdssoft has joined the channel [01:31] jj0hns0n has joined the channel [01:32] diogogmt: AvianFlu: actually the php script will be run as a cron job [01:32] diogogmt: and the calendar api offer some extra features when connectin with javascript [01:33] diogogmt: so I wanted to manage all the interaction with js using node instead of using php [01:33] AvianFlu: how big is the php? is it something you could do all node? [01:34] AvianFlu: if you're running the php with cron, it seems like you could substitute several languages, unless you specifically need php [01:35] diogogmt: the application started using php, I'm gettin involved in the middle of the development [01:35] diogogmt: the only thing php is doing [01:35] diogogmt: is connecting to the db [01:35] diogogmt: mssql [01:35] diogogmt: to fecth the data [01:36] diogogmt: but I saw that node doesn't offer support for mssql yet, only mysql [01:37] colinclark has joined the channel [01:38] igl: there is one module diogogmt https://github.com/vivina/node-mssql [01:38] igl: i never tried it though [01:38] hermanjunge has joined the channel [01:39] diogogmt: igl: but is it stable? anybody ever tried before? [01:39] diogogmt: the website is already in production [01:39] AvianFlu: yeah I'd use your existing db stuff then [01:39] kurtzhong has joined the channel [01:39] AvianFlu: you could start the node as a child process, that would probably take the least work [01:40] AvianFlu: I haven't had to do that in php before though [01:41] AvianFlu: pick an easy way to get node the data - a file, argv[], a tcp connection, a unix socket - and just pass it along [01:41] AvianFlu: I'm no php master, though [01:42] diogogmt: Is deff an option, for now I'll probably use the php api, but keep testing in parallel using node [01:44] CarterL has joined the channel [01:44] inpho has joined the channel [01:45] AvianFlu: diogogmt, that actually sounds like a great opportunity to learn node [01:45] AvianFlu: developing something in php and node at the same time - since you already know php [01:47] diogogmt: Even if they don't decide to use node in the main project, I'll keep developing on the side. It takes a while to people accept new ideas [01:47] diogogmt: specially in the software programming field [01:48] softdrink has joined the channel [01:51] AvianFlu: any given situation may or may not be a good fit for a given technology [01:51] AvianFlu: at this point it benefits everyone to try node out here and there [01:52] jerrysv has joined the channel [01:53] sub_pop has joined the channel [01:53] kurtzhong_ has joined the channel [01:54] jakehow has joined the channel [01:56] b52 has joined the channel [01:56] dmkbot: joyent/node: 03Southern: Added URL support for .get() in lib/http2.js and libhttps2.js; Added .valid() in lib/url.js - https://github.com/joyent/node/issues/1820 [01:59] jtsnow has joined the channel [01:59] jldbasa has joined the channel [02:01] willwhite has joined the channel [02:03] a_suenami has joined the channel [02:05] mikeric has joined the channel [02:05] Archen has joined the channel [02:07] amigojapan has joined the channel [02:07] sdwrage has joined the channel [02:09] langworthy has joined the channel [02:10] joshthecoder has joined the channel [02:10] matyr has joined the channel [02:15] schwab has joined the channel [02:16] beejeebus has joined the channel [02:16] sub_pop has joined the channel [02:16] metellus has joined the channel [02:17] lz has joined the channel [02:17] wadey has joined the channel [02:18] jldbasa has joined the channel [02:18] Nuck: AvianFlu: Quit advocating that people get cancer [02:19] d_low has joined the channel [02:19] d_low has joined the channel [02:19] nickadeemus2002 has left the channel [02:19] AvianFlu: ahahahahhaha [02:20] jesusabdullah: Shaaaame. [02:21] Nuck: AvianFlu: "you look like you need more emphysema. Here, drop cigarettes and pick up node" [02:22] amiller has joined the channel [02:22] yhahn has joined the channel [02:22] hacksparrow has joined the channel [02:25] joshkehn has joined the channel [02:25] joshkehn has left the channel [02:27] Skipants has left the channel [02:27] darinc has joined the channel [02:29] luke` has joined the channel [02:29] AvianFlu: does hacker news take > 10 seconds to load for anyone else? [02:31] michaeldeol has joined the channel [02:31] jesusabdullah: not me :/ [02:32] kurtzhong_ has joined the channel [02:32] pifantastic has joined the channel [02:33] jtsnow has joined the channel [02:33] smathy has joined the channel [02:33] Sembiance: woot. My first blog post: http://cosmicrealms.com/blog/2011/10/03/massive-decrease-in-memory-usage-with-redis-2-dot-4/ [02:34] Sembiance: not technically node.js related, although my back end does run on node.js :) [02:35] bentruyman has joined the channel [02:37] amigojapan_ has joined the channel [02:37] Gregor has joined the channel [02:38] abraxas: Sembiance: nice one [02:43] Sicrus has joined the channel [02:45] Sembiance: abraxas: thanks :) [02:45] gxdssoft_ has joined the channel [02:46] wilmoore has joined the channel [02:47] shipit has joined the channel [02:51] joshthecoder has joined the channel [02:54] AAA_awright: Anyone know of a Jade compiler that converts to a DOM Document? [02:54] AAA_awright: Actually the compiler can remain the same, the functions that begin/close tags and attributes just need to be changed out [02:54] AAA_awright: hmm [02:55] AAA_awright: That's probably a bit heavy though [02:55] joshthecoder has joined the channel [02:57] te-brian has joined the channel [02:58] jacobolus has joined the channel [02:59] slifty has joined the channel [02:59] jesusabdullah: AAA_awright: jsdom.env(jade.render(template), [], function (window) { . . . }) [03:00] jesusabdullah: Or something like this, maybe? [03:00] kenperkins has joined the channel [03:01] ritch has joined the channel [03:02] dominictarr has joined the channel [03:03] willwhite has joined the channel [03:05] isaacs has joined the channel [03:05] ritch: Are there any modules that help initialize and manage long running processes that will be spawned from node? I want to be able to spawn and process and not depend on the parent incase it needs to be killed. [03:05] pik has joined the channel [03:06] yozgrahame has joined the channel [03:09] mdunn has joined the channel [03:10] mdunn: It seems like when ANYTHING goes wrong in node I always get the same error: node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Command failed: /bin/sh: java: not found at ChildProcess.exithandler (child_process.js:102:15) at ChildProcess.emit (events.js:67:17) at Socket. (child_process.js:172:12) at Socket.emit (events.js:64:17) at Array. ( [03:10] mdunn: any thoughts [03:10] dmsuperman: Yeah [03:10] AvianFlu: type java at your prompt [03:10] AvianFlu: what happens [03:10] dmsuperman: java no found [03:10] mdunn: does node ned java? [03:11] AvianFlu: also, curious that it's saying /bin/sh [03:11] dmsuperman: your command does [03:11] indexzero has joined the channel [03:11] mdunn: my command is just node app.js [03:11] dmsuperman: something is running a shell scrip which is trying to run java [03:11] dmsuperman: within your script [03:11] AvianFlu: your code is calling a child process, java [03:11] AvianFlu: that's what that error says [03:11] eguest309 has left the channel [03:11] skyl has joined the channel [03:12] AvianFlu: and it can't find java [03:12] tylerstalder has joined the channel [03:12] mdunn: seems odd. I hate java. Could it be a plugin like express or stylus? [03:12] AvianFlu: what are you requiring? [03:12] gxdssoft has joined the channel [03:12] AvianFlu: what modules? [03:12] digiwano: your stack trace there should tell you where its coming from [03:12] skiz has joined the channel [03:13] mdunn: connect-form, express, http, express-assetmanager [03:14] mdunn: also mongolian for mongodb [03:14] AvianFlu: can you gist this code? [03:14] mdunn: perhaps that the culprit? [03:14] AvianFlu: none of those should be spawning java as a child process, as far as I know [03:14] mdunn: exactly. seems odd [03:15] AvianFlu: it's also calling /bin/sh [03:15] AvianFlu: I would expect bash [03:16] mdunn: ahh.. I wonder if its smtpc perhaps [03:16] mdunn: im requireing smptc on another page this ties to [03:16] digiwano: the stacktrace that didnt get fully pasted should tell you [03:16] mdunn: *smtpc [03:16] digiwano: your paste cut off at " at Array. (" [03:17] digiwano: a few more lines down probably tells you exactly whats trying to call java [03:17] mdunn: at Array. (net.js:831:12) at EventEmitter._tickCallback (node.js:126:26) [03:18] AvianFlu: stack traces go the opposite way [03:18] AvianFlu: something is bombing because there's a cp call with no exit handler and a 127 is coming back [03:18] AvianFlu: that's my guess [03:18] AvianFlu: it's not smtpc, I just read the code [03:19] mike5w3c_ has joined the channel [03:19] mdunn: you mention bash earlier. Does node or some node packages depend on a certain shell? [03:19] chance- has joined the channel [03:21] AvianFlu: are you using sh? [03:21] AvianFlu: if you are, then it's expected [03:21] AvianFlu: if you're using bash, something strange is going on [03:22] mdunn: using sh [03:23] koo6 has joined the channel [03:25] harthur has joined the channel [03:25] mdunn: odd the code works fine on my mac but not my ubuntu box [03:27] AvianFlu: that's really weird [03:28] ryanrolds: What happens when you run 'java' from the command line? [03:28] mdunn: command not found [03:28] ryanrolds: Is java installed on the other machine? [03:28] mdunn: but even so... what would be needing java? [03:28] mdunn: yeah its on the mac [03:28] boehm has joined the channel [03:28] Sly has joined the channel [03:29] ryanrolds: I have no idea, but your error references not finding java. [03:29] ryanrolds: So, something is looking for it. [03:29] Ginlock has joined the channel [03:29] ryanrolds: Try greping for '/bin/sh: java' [03:29] ryanrolds: Or grep for java [03:29] AvianFlu: or for child_process [03:30] ryanrolds: 'Error: Command failed: /bin/sh: java: not found' [03:30] ryanrolds: Most currently something is looking for it. [03:30] AvianFlu: can you show us your code? [03:30] ryanrolds: *most definitely [03:31] ryanrolds: I'm curious when he gets the error. [03:32] Sly__: isaacs, ping. [03:32] ryanrolds: But yeah, grep for java or childprocess and all will be revealed [03:34] ryanrolds: What are you deps in package.json? [03:35] ryanrolds: *your [03:38] mdunn: sorry, was away for a bit installing jaa [03:38] mdunn: *java [03:38] ryanrolds: What was using it? [03:38] mdunn: which, of course, worked and now the code runs [03:38] harth has joined the channel [03:38] mdunn: of course, I still don't know what was requiring it [03:38] ryanrolds: grep java node_modules/* -R [03:38] jtsnow has joined the channel [03:38] ryanrolds: do that in the root of your project. [03:39] chilts: sounds like it might be worth finding out :) [03:39] ryanrolds: I really want to know. [03:39] mdunn: me too [03:39] dreamdust has joined the channel [03:39] mdunn: alright, grepping [03:39] chilts: and me :) [03:39] ryanrolds: Using java is a bit out of the ordinary. [03:39] futini has joined the channel [03:39] jesusabdullah: AND MY AXE [03:39] chilts: it is a little strange :) [03:39] Pilate has joined the channel [03:40] githogori has joined the channel [03:40] chance- has joined the channel [03:40] ryanrolds: PoorlyTimeGimli is one of my favorite posters. [03:40] ryanrolds: *Timed [03:41] k1ttty has joined the channel [03:41] ryanrolds: What deps are you using? [03:42] mdunn: kind of difficult to parse through the grep output but it looks like uglify coffeescript and mongolian are possibilities [03:43] brianseeders has joined the channel [03:44] ryanrolds: Mongolian [03:44] AvianFlu: I'd vote mongolian first [03:44] AvianFlu: yeah [03:44] mdunn: yeah looking like mongolian [03:44] mdunn: yuck... [03:44] mdunn: I liked mongolian too [03:44] ryanrolds: I just greped those he he listed and Swing is all over it. [03:44] ryanrolds: *those he listed [03:44] mdunn: what is Swing? [03:44] SubStack: check this out: http://71.198.76.38:8080/docs/#using-npm [03:44] ryanrolds: Java UI stuff. [03:45] dominictarr has joined the channel [03:47] mdunn: anyone recommend a mongolian alternative? already tried mongous and a few others [03:48] chance-: you mean mongoose? [03:48] ryanrolds: Using java in a node app is a bit odd, but if you like the module and are ok with having java installed, use it. [03:48] mdunn: tried mongoose as well [03:48] chance-: ah [03:48] chance-: hadnt heard of mongous [03:48] chance-: mongoose will prob be your best bet [03:48] Sly__: ryanrolds, feedback on https://github.com/joyent/node/pull/1820 ? [03:48] mdunn: mongous was nic, but limited [03:48] mdunn: *nice [03:49] mdunn: any way to reduce my java footprint? openjdk6 is nearly 200megs [03:50] chance-: dont use java? :P [03:50] mdunn: Thought I wasn't :) [03:51] ryanrolds: Sly, what am I looking for? [03:51] Sly__: Just asking for feedback. [03:51] ecin has joined the channel [03:51] Sly__: Nothing specific. [03:52] ryanrolds: How are the headers handled for a request like that? User-agent? Ability to overide user-agent, set other headers? [03:52] dshaw_ has joined the channel [03:52] Nuck: AAA_awright: >_> [03:52] Sly__: There aren't any options being passed in it. Options are passed in an object. [03:53] Sly__: If it's a string, it's returned as a URL in .get().. [03:53] ryanrolds: Oh, gotcha. [03:53] ryanrolds: I should have looked at the docs for .get() [03:53] jesusabdullah: Holy shit, mixu gut nwm running well enough to be his primary window manager [03:53] jesusabdullah: https://github.com/mixu/nwm [03:54] Sly__: .get({host: 'google.com', path: '/'}, function (res) { console.log(res); }); [03:54] Sly__: That would be a normal .get(). [03:54] Sly__: Mine would change it to.. [03:54] Sly__: .get('www.google.com',function (res) { console.log(res); }); [03:54] Sly__: Etc. [03:54] ryanrolds: I got it. Looking at the code now. [03:55] mdunn: thanks guys [03:58] Ond has joined the channel [03:59] jakehow has joined the channel [03:59] willwh has joined the channel [03:59] willwh has joined the channel [03:59] darinc: jesusbdullah: node as an x windows manager, very odd idea [04:01] chjj: darinc: you mean cool idea [04:01] chilts: node as a window manager isn't a far stretch, both have traditionally used callbacks :) [04:01] chjj: itd be cool if that nwm became like the awesome wm of the js world [04:01] chjj: instead of lua ;p [04:01] ryanrolds: Sly__: May want to check if options is string to avoid running and obj through valid. Also put braces in that if else. [04:01] freewil: are there any projects out there trying to create a gui [04:02] paulwe has joined the channel [04:02] dgathright has joined the channel [04:02] Sly__: ryanrolds, options is validated as a string in lib/url.js. [04:02] Sly__: If it's not a string when .valid() is ran, it returns false. [04:03] ryanrolds: Right, but why try to run an object through a regex when it's easy to check if before hand. [04:04] Sly__: It's not ran through regex if it's not an object. [04:04] Sly__: The typeof is before the regex. [04:04] nerdy_ has joined the channel [04:04] gxdssoft_ has joined the channel [04:05] ryanrolds: Maybe, I'm missreading the changes to http2.js [04:05] Sly__: I did make a mistake. Left the else in that exits the objects. Had it in when I was testing earlier. [04:05] reid has joined the channel [04:06] ryanrolds: It looks like if a string is is passed in the first param is run through .valid() and if valid isn't false it packages up the string in to a valid options obj. [04:06] davidascher has joined the channel [04:07] ryanrolds: This is what I'm looking at: https://github.com/Southern/node/commit/47c7999c1caddb3f5e7fe16a8c68571a1c8c9ff2 [04:07] gxdssoft has joined the channel [04:07] Sly__: Okay. What exactly are you asking about? [04:07] ryanrolds: And that most def runs what optins is, object or string, through a regex. [04:08] ryanrolds: *runs whatever options [04:08] Sly__: When it's ran through .valid(), the typeof is before the regex. [04:09] Sly__: If it's not a string, it will instantly return false. [04:09] darinc: chjj: makes sense, and by odd I did mean cool [04:11] gxdssoft_ has joined the channel [04:12] ricepuddin has joined the channel [04:12] bicranial has joined the channel [04:14] gxdssoft has joined the channel [04:15] Sly__: Alright. Now it's good. [04:15] Nuck: AAA_awright: Hey broski, you dead? [04:15] Sly__: It was dropping objects because of that else. [04:15] Sly__: Was using it to test .valid() earlier, and never removed it. [04:15] ryanrolds: Ok, I was looking at the first cut of lib/url.js. That updated one is better. I'm being nit picky, but avoiding hitting the require on an obj would be cool. Other then that nigling issue the only other issue I see is style issues, like not having braces on an if else. [04:16] Sly__: I'm not one for using braces on an "else if". [04:16] ryanrolds: The Google JS style rules also uses the C++ style rules: Short conditional statements may be written on one line if this enhances readability. You may use this only when the line is brief and the statement does not use the else clause. [04:16] Sly__: Should be fairly simple to follow it, with the way that I code. [04:17] Sly__: if { } else if { } else if { } else { } [04:18] ryanrolds: https://github.com/joyent/node/wiki/Contributing: "Javascript code style should follow Google’s JavaScript style guide and be run through the linter. `make jslint` to validate." [04:18] ryanrolds: I'm pedantic, I know. [04:19] Sly__: `make jslint` shows 'Found 1596 errors, including 447 new errors, in 181 files (244 files OK).' [04:19] Sly__: Edited 3 files. [04:19] ryanrolds: Yeah, broken windows. Doesn't mean one shouldn't try. [04:20] Aphelion has joined the channel [04:20] ryanrolds: That is what I should be doing, cleaning those errors up. [04:22] Sly__: lol. [04:23] kraft has joined the channel [04:25] Sly__: I guess I could, while I'm already editing these files. [04:25] secoif has joined the channel [04:26] crescendo|laptop has joined the channel [04:27] tekky has joined the channel [04:29] joshkehn has joined the channel [04:30] joshkehn: What is the simplest drag and drop supported file uploader? [04:30] perezd has joined the channel [04:30] neilk_ has joined the channel [04:32] ryanrolds: Sly__: I do like your changes. I'm just nitpicky and like debates. ;) [04:32] Sly__: No problem. I like nitpicky, and debates. [04:34] paul0 has joined the channel [04:35] Sly__: Getting rid of all of those JSLint errors. [04:36] ryanrolds: Awesome. [04:37] OmidRaha has joined the channel [04:37] ezmobius has joined the channel [04:38] mikeycgto has joined the channel [04:45] tilgovi has joined the channel [04:45] tilgovi has joined the channel [04:45] tekky has joined the channel [04:46] Pilate has joined the channel [04:46] sreeix has joined the channel [04:49] arpunk has joined the channel [04:50] Sly__: 9 files down. lol. [04:54] saikat has joined the channel [05:01] thalll has joined the channel [05:01] zeade has joined the channel [05:03] neilk_ has joined the channel [05:03] AAA_awright: Nuck: HI [05:03] AAA_awright: *Hi [05:03] Nuck: AAA_awright: Sup broski [05:04] AAA_awright: That a new nickname or something? [05:04] Nuck: Nope, just a variation on "bro" [05:04] gxdssoft_ has joined the channel [05:04] amigojapan has joined the channel [05:04] Nuck: AAA_awright: When did you say you had a discussion on that server planned? [05:04] AAA_awright: 2/3 other people aren't around so, Thursday is better appearently [05:04] Nuck: ah okay [05:05] Nuck: AAA_awright: By 2/3, do you mean 2? [05:05] Nuck: Or are there more people? [05:05] AAA_awright: There's three others interested in various parts of this idea, mobile clients, desktop client, etc [05:06] vicapow has joined the channel [05:06] Nuck: AAA_awright: Oh awesome. If we adopt this as our protocol, we've also got an iPhone dev >_> [05:06] jhurliman has joined the channel [05:06] AAA_awright: Cool [05:06] gxdssoft has joined the channel [05:06] tiglionabbit has joined the channel [05:07] Nuck: AAA_awright: Plus he has experience with iPhone chat clients [05:07] AAA_awright: Even better [05:07] Nuck: Built deviantART chat for iPhon [05:08] Nuck: AAA_awright: Got a time set on Thursday yet? [05:08] AAA_awright: afternoonish [05:08] Nuck: haha kay [05:08] joshkehn has joined the channel [05:10] melcher has joined the channel [05:10] fakewaffle has joined the channel [05:11] tiglionabbit_ has joined the channel [05:11] igl1 has joined the channel [05:13] neilk_ has joined the channel [05:16] k1ttty has joined the channel [05:16] koo6 has joined the channel [05:16] ziptar has joined the channel [05:16] daed has joined the channel [05:19] nerdy_ has joined the channel [05:20] dominictarr has joined the channel [05:20] c4milo1 has joined the channel [05:23] googol has joined the channel [05:24] tiglionabbit: is there a full example on how to upload a file in node? I want to be able to read through the file and make a hash of it and name the file after the hash [05:24] tiglionabbit: I'm using connect-form [05:24] tiglionabbit: not sure how or when to get the file data though [05:25] AvianFlu: check out node-formidable [05:25] AvianFlu: even if only for inspiration [05:25] AvianFlu: it's a multipart form parser built for that kind of stuff [05:27] joshkehn: formidable is good. [05:27] tiglionabbit: pretty sure connect-form is the same thing as formidable [05:27] tiglionabbit: I just don't understand how to use it [05:27] knifed has joined the channel [05:27] tiglionabbit: what object does it give me and what do i do with it? [05:28] dexter_e has joined the channel [05:28] reid has joined the channel [05:29] dshaw_ has joined the channel [05:30] Sly__: ryanrolds, you still here? [05:31] fangel has joined the channel [05:32] SuMarDi has joined the channel [05:37] kurtzhong has joined the channel [05:38] isaqual has joined the channel [05:39] ryanrolds: Whats up? [05:42] crescendo|laptop has left the channel [05:43] DennisRasmussen has joined the channel [05:44] lz: any way to intercept the formidable upload stream and reroute it to amazon s3? [05:45] lz: like some formidable/knox integration [05:46] dreamdust has joined the channel [05:49] k1ttty has joined the channel [05:50] k1ttty has joined the channel [05:52] SamuraiJack has joined the channel [05:52] Archen has joined the channel [05:52] pquerna has joined the channel [05:54] daed has joined the channel [05:54] tim_smart has joined the channel [05:55] Gregor has joined the channel [05:58] smtlaissezfaire has joined the channel [05:58] jedahan has joined the channel [05:58] kurtzhong has joined the channel [05:59] mikedeboer has joined the channel [06:02] Wa has joined the channel [06:03] ard_ has joined the channel [06:03] dexter_e has joined the channel [06:03] franciscallo has joined the channel [06:06] ard_: just install node.. failed to npm express [06:06] ard_: error : ERR! SyntaxError: Unexpected token < [06:06] Archen has joined the channel [06:06] ryanrolds: What version of node? [06:08] Bonuspunkt has joined the channel [06:09] nforgerit has joined the channel [06:11] JSManiacs has joined the channel [06:11] ph^ has joined the channel [06:12] hermanjunge has joined the channel [06:13] amigojapan_ has joined the channel [06:13] andree has joined the channel [06:16] janne has joined the channel [06:16] tshpaper has joined the channel [06:16] Archen has joined the channel [06:20] mekwall has joined the channel [06:21] Frippe has joined the channel [06:22] ivanfi has joined the channel [06:23] pizthewiz has joined the channel [06:23] Trisox has joined the channel [06:25] Gregor has joined the channel [06:26] saikat has joined the channel [06:29] mraleph has joined the channel [06:30] tim_smart has joined the channel [06:31] pquerna has joined the channel [06:31] stagas has joined the channel [06:31] lime_ has joined the channel [06:32] lime_: How would I control google chrome from node.js? [06:32] apoc has joined the channel [06:34] lime_: I have thought about creating a plugin for node.js that opens socket.io connection to node.js [06:35] lime_: but it kinda feels hackish to inject javascript inject google chrome through using socket.io on my on computer [06:35] sub_pop has joined the channel [06:36] kurtzhong has joined the channel [06:36] lime_: oops.. I meant - I have thought about creating a plugin for Google Chrome that opens socket.io connection to node.js [06:36] tim_smart has joined the channel [06:36] daed has joined the channel [06:37] apoc has joined the channel [06:39] dexter_e: Anyone know which process.memoryUsage() numbers to watch ? [06:39] ppcano has joined the channel [06:39] dexter_e: vsize: heapTotal: heapUsed: rss: [06:42] Morkel has joined the channel [06:46] simenbrekken has joined the channel [06:47] lime_: found soda and Selenium, I'll post again if I run into problems. [06:48] tim_smart has joined the channel [06:48] pquerna has joined the channel [06:48] Gregor has joined the channel [06:51] TomY has joined the channel [06:51] ph^ has joined the channel [06:55] `3rdEden has joined the channel [06:55] ard_: latest versio... just compile and install node.. [06:56] zeade has joined the channel [06:57] dexter_e: arc_: I've been recommended to use the latest Stable version with Express [06:58] ard_: npm ERR! Unsupported npm ERR! Not compatible with your version of node/npm: express@2.4.6 [06:58] madsleejensen has joined the channel [06:58] dexter_e: For me express only goes through smoothly on 0.4.12 which is the latest Stable of noce afaik [06:58] dexter_e: Which Node-v are you on? [06:58] emattias has joined the channel [06:58] ard_: v0.5.9-pre [06:58] dexter_e: yeah , tahts why [06:59] ard_: okay... thanks.. [06:59] dexter_e: You need to have a Stable node [06:59] dexter_e: 0.4.12 [07:00] mikedeboer has joined the channel [07:01] zastaph has joined the channel [07:01] matyr has joined the channel [07:02] isaacs has joined the channel [07:04] fangel has joined the channel [07:05] davem_ has joined the channel [07:05] Archen has joined the channel [07:06] dexter_e: Anyone having perpetual memory leak issues? [07:06] ablomen has joined the channel [07:06] davem_: test [07:06] pgherveou has joined the channel [07:07] davem_: frodbot: help [07:07] perezd has joined the channel [07:07] davem_ has left the channel [07:07] herbySk has joined the channel [07:08] Lemon_BE has joined the channel [07:10] icebox has joined the channel [07:11] amigojapan has joined the channel [07:12] topaxi has joined the channel [07:12] DrMcKay has joined the channel [07:13] abraxas: does anybody know the fastest way to compare 2 buffers up to N bytes? [07:13] abraxas: compare for equality [07:13] SubStack: write a loop [07:13] abraxas: that's the fastest way? pure JS? [07:14] SubStack: yep [07:14] SubStack: v8 is fast [07:14] abraxas: so if i have 10000 buffers to match…. and often [07:14] sdwrage has joined the channel [07:14] abraxas: i probably wanna be looking for a different approach [07:14] SubStack: build a hash table then [07:15] abraxas: no matter how fast v8 is, doing a simple memcmp is infinitely faster [07:16] abraxas: so yeah, basically.. hashtable [07:16] lz: you can run unix commands from node [07:16] lz: no reason you can't use memcmp [07:16] DrMcKay: SubStack: will you draw node-cancer? pleeeeaaase! :D [07:17] abraxas: node cures cancer - loved that one ;) [07:18] chrisvtx has joined the channel [07:18] da has joined the channel [07:18] mendel__ has joined the channel [07:19] chrisvtx: hi. [07:19] SubStack: DrMcKay: a crab? [07:19] DrMcKay: SubStack: maybe :) [07:19] chrisvtx: quick question about real-world node applications [07:20] cosmincx has joined the channel [07:20] wilmoore has joined the channel [07:21] chrisvtx: are there any prominent node js apps out in the wild? if so, what are some common issues that are addresses for deployment? [07:21] xsyn1 has joined the channel [07:21] vicapow has joined the channel [07:21] mehlah has joined the channel [07:21] xsyn2 has joined the channel [07:22] pquerna has joined the channel [07:22] langworthy has joined the channel [07:25] Epeli: Has anyone gotten following error when compiling Node.js: Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} [07:25] Epeli: I'm trying to build 0.4.12 on Ubuntu Lucid [07:26] Druide has joined the channel [07:26] neilk_ has joined the channel [07:27] Wizek-other has joined the channel [07:27] wbednarski has joined the channel [07:27] zastaph has joined the channel [07:27] icebox: chrisvtx: what are you thinking about? [07:30] icebox: chrisvtx: I think it depends on the architecture you have been using... for instance, if there is a cluster, if there is a separation between web server and node, if the app is internal, the software distribution used by the company and so on [07:30] chrisvtx: well, im trying to create an efficient architecture for a web app where the frontend layer could pass js objects to the server and have node do some server heavy lifting instead of having the front end pass js ajax calls to php/server and wait for a response... [07:32] xeodox has joined the channel [07:32] icebox: chrisvtx: ah ok... app architecture... I understood deployment architecture [07:32] Kami_ has joined the channel [07:32] ritch has left the channel [07:32] xeodox: Hi…does anyone know how to manually name an index in Mongoosejs? [07:32] chrisvtx: im viewing this app as a two-teir system with node.js and php handling different responsibilities based on iser event types [07:33] icebox: chrisvtx: I am a bit biased because we don't use a php layer... only node [07:33] chrisvtx: icebox, my apologies. i did mention deployment when i meant app architecture. [07:35] darshanshankar has joined the channel [07:35] icebox: chrisvtx: usually we have developing financial internal app, a proof of concept: http://cloud.pro-plus.biz/ConPA/ConPA.html [07:36] [AD]Turbo has joined the channel [07:36] [AD]Turbo: hi there [07:36] chrisvtx: interesting icebox. so if your app is pure js, how is the performance on the frontend? do you utilize libraries like backbone.js to help with architecture? [07:37] icebox: chrisvtx: frontend https://github.com/albertosantini/node-conpa/ [07:38] icebox: chrisvtx: backend https://github.com/albertosantini/node-finance [07:38] bereal has joined the channel [07:38] icebox: chrisvtx: architecture: http://www.websequencediagrams.com/cgi-bin/cdraw?lz=Q29uUEEtPk5vZGVKUzogbmF2aWdhdGlvbgphbHQgABkFIGJhY2tlbmQgd2l0aCBqcyBjYWxjCiAgICBub3RlIG92ZXIgADoGABAFABMGZGUtY29ucGEgAAYOZmluYW5jZQAbDnF1YWRwcm9nAE8FZW5kAFMFCmVsc2UAbRRSIGNsb3VkAF4jcmlvIChSc2VydmUgYWRhcHRlcikAVg4gICAAgTQHLT4AUQVudW1iZXJzLmNvbTogZ2V0IG9wdGltYWwgcG9ydGZvbGlvABEjcGVyZm9ybWFuY2VzAEAjaW1wbGllZCB2b2xhdGlsaXR5AIJODwCBChAAgl4JAIFWBgCCbQl0c2VyaQBsBwAaBUp [07:39] lackac has joined the channel [07:39] luke` has joined the channel [07:40] chrisvtx: thanks for all the info/examples icebox. much appreciated. [07:40] chrisvtx: are you here often? [07:41] lz: icebox, any issues running pure node in prod? [07:41] chrisvtx: id like to study all this and ask more informed questions if possible. [07:41] icebox: chrisvtx: a few years ago we developed the same app in java and I don't notice any performance issue, I think it is faster than java due to a reduced application stack [07:42] icebox: chrisvtx: you are welcome... feel free to send me an email [07:42] mynix has joined the channel [07:43] icebox: lz: well, no... but it is an app with a limited number of users [07:44] Casan has joined the channel [07:45] hij1nx has joined the channel [07:45] icebox: lz: are you thinking on bottlenecks or anything similar? [07:45] chrisvtx: thanks for your generosity icebox. i plan to send questions very soon. have a nice evening. [07:45] lz: icebox ah. well yes, bottlenecks, error handling, scaling issues [07:46] OmidRaha has joined the channel [07:46] OmidRaha has joined the channel [07:46] mehlah has joined the channel [07:46] Aiden has joined the channel [07:47] _kud has joined the channel [07:48] icebox: lz: for the error handling there are always the same questions (however async doesn't add any complexity): how to handle a backend error, how to notice it to the user and what to do. [07:49] icebox: lz: scaling issue is an overrated issue. if the app is well designed, a standard hw should handle many requests. [07:50] k1ttty has joined the channel [07:51] lz: icebox, gotcha, thanks for the insight. [07:52] icebox: lz: about bottlenecks... yes... when the app connects to legacy system, it is a pain... a sort of solution is creating a virtual layer, synced offline with the legacy [07:53] lz: icebox, ic, sorta creating a cache for legacy systems? [07:53] icebox: lz: yes... but it depends on the features of the app [07:53] aaronmcadam has joined the channel [07:54] icebox: lz: if the app needs a balance of a customer now, I cannot save the balance of previous day... so there is always a tradeoff [07:55] lz: icebox, ic, I guess theoretically you could cache higher frequencies for on-demand data, like every minute or second.. but that might kill a legacy system :) [07:56] icebox: lz: yes... tried... exactly the legacy dies in five minutes :) [07:57] tylerstalder has joined the channel [07:57] lz: icebox, don't you love doing that? [07:57] icebox: lz: when I talk about legacy, I mean os/390 with CICS transactions or as/400 DB2 [07:57] icebox: lz: a lot, less agency users :) [07:59] felixhummel has joined the channel [07:59] lz: icebox, i'll be keeping that idea in my head when I need to deal with legacy systems, thanks again [07:59] icebox: lz: you are welcome [08:00] mAritz has joined the channel [08:01] whitman has joined the channel [08:02] ayaz has joined the channel [08:03] madsleejensen: Is it possible to get the time between you send data from a tcp connection to the destination ACK the packet? on socket.write() you can specify a callback but i dont think its what im looking for? [08:04] guidocalvano has joined the channel [08:04] levi: That's what Wireshark is for. [08:05] madsleejensen: yeah sure but what if i need that data for priority calculations on my application ? [08:06] madsleejensen: and im not able to do a ping - pong like feature because im not in control of the current protocol [08:06] levi: sockets don't generally tell you when their data has been acked, even at the OS level. [08:06] levi: That's deep in the guts of the TCP stack. [08:07] madsleejensen: ok thank you for the answer i will try looking into another solution then :) [08:07] mwootendev has joined the channel [08:08] k1ttty has joined the channel [08:10] Jabbers: ACTION sees this room growing by the day and smiles [08:11] gerard0 has joined the channel [08:12] aho has joined the channel [08:12] vguerra has joined the channel [08:13] pquerna_ has joined the channel [08:15] CIA-48: libuv: 03Igor Zinkovsky 07ipc * rcbca726 10/ (test/run-tests.c test/test-ipc.c): complete test-ipc - http://git.io/KtUBQQ [08:16] jetienne_ has joined the channel [08:17] netlemur has joined the channel [08:17] bergelmir has joined the channel [08:17] bergelmir has joined the channel [08:18] Glenjamin: so that fib thing certainly kicked off >.< [08:18] Glenjamin: which one of you posted it to HN? [08:23] Wizek-other has joined the channel [08:28] robi42 has joined the channel [08:29] Rv has joined the channel [08:31] Tigraine has joined the channel [08:32] hellp has joined the channel [08:33] Margle has joined the channel [08:36] Tigraine has joined the channel [08:39] kulor-uk has joined the channel [08:41] joshgillies has joined the channel [08:42] joshgillies: child_process calling an executable from ./bin folder in my working directory, my problem is the executable relies on files in ./bin to execute correctly. Any ideas? [08:43] joshgillies: I've tried process.chdir('./bin'); but have a feeling that alone might not be the answer [08:43] ph^_ has joined the channel [08:43] joshgillies: or at least hasn't been for me currently [08:46] djcoin has joined the channel [08:47] mynix has joined the channel [08:47] adambeynon has joined the channel [08:47] Bergle_1: for now can you call a script in your ./bin folder that sets the current dir before calling the bits ? as a tes. [08:47] Bergle_1: test [08:47] markwubben has joined the channel [08:47] pvgrif has joined the channel [08:51] sfoster has joined the channel [08:58] adrianmg has joined the channel [08:59] joshgillies: Bergle_1: like a node module? [09:00] joshgillies: I can move my node script into my bin folder and have it run as I'd expect [09:01] mc_greeny has joined the channel [09:01] gkatsev has joined the channel [09:03] mikl has joined the channel [09:03] bzinger has joined the channel [09:03] robhawkes has joined the channel [09:06] k1ttty has joined the channel [09:07] k1ttty has joined the channel [09:10] ayaz has joined the channel [09:12] dexter_e: does anyone have issues with the process using more and more memory as requests come in? [09:13] adrianmg has left the channel [09:13] dexter_e: or have recommendations on how to get insight into whats consuming memory over time? [09:15] greens35 has joined the channel [09:16] greens35: hi everyone, can anyone help me and tell me if it's possible to get node to use a proxy server when you are performing outbound connections? [09:17] adambeynon has joined the channel [09:20] whitman: greens35, you can, what type of proxy server? [09:20] Wizek-other has joined the channel [09:20] greens35: whitman: not sure it's a regular http proxy, i have http_proxy and HTTP_PROXY set in my env but node doesn't seem to look for this? [09:21] metellus has joined the channel [09:22] eldios has joined the channel [09:23] whitman: greens35, no, node doesn't use them [09:23] irahgel has joined the channel [09:23] greens35: whitman: how do i get it to use my proxy then? (thanks for your help btw) [09:23] whitman: You can do something like this: http://pastie.org/private/jknaexcy0cxbcbm12cw but it's not guaranteed to work with all modules/proxy configurations [09:24] adambeynon has joined the channel [09:25] stuf has joined the channel [09:27] cgfuh has joined the channel [09:28] mike5w3c has joined the channel [09:29] hebz0rl has joined the channel [09:29] Morkel has joined the channel [09:30] rendar has joined the channel [09:33] greens35: thanks whitman that makes great sense, i'll give it a go.. where should i insert that code? [09:34] bzinger has joined the channel [09:35] whitman: In the couple of small cases I've used it I stuck it at the top of the main file. [09:35] swick has joined the channel [09:35] markwubben has joined the channel [09:35] saikat has joined the channel [09:36] stagas has joined the channel [09:37] ptlo has joined the channel [09:40] djcoin has joined the channel [09:40] mynix has joined the channel [09:41] guidocalvano has joined the channel [09:42] Wizek-other2 has joined the channel [09:43] bergie has joined the channel [09:47] DennisRasmussen has joined the channel [09:48] jomoho has joined the channel [09:49] oiiii has joined the channel [09:50] wilmoore has joined the channel [09:52] altamic has joined the channel [09:54] herbySk has joined the channel [09:54] simenbrekken has joined the channel [10:00] fermion has joined the channel [10:01] stagas has joined the channel [10:02] raphdg has joined the channel [10:02] navaru has joined the channel [10:06] ayaz` has joined the channel [10:07] indexzero_ has joined the channel [10:08] greens35: thanks again whitman, i get a response at least now but it's an error form my proxy.. i found out that we're using squid - do u know if options.path maps directly to a 'path' request header? [10:10] ayaz has joined the channel [10:12] Cromulent has joined the channel [10:14] dexter_e: how much memory usage per process is considered OK ? Are there guidelines for that? [10:14] bereal has left the channel [10:14] Glenjamin: dexter_e: less than 4-500 mb maximum [10:14] Glenjamin: any more and GC cycles start getting noticable [10:14] dexter_e: I notice over time the memory usage of the application goes up slowly , is that normal ? [10:15] Glenjamin: depends on the application [10:15] dexter_e: just a webserver [10:15] dexter_e: express app with static serving and html [10:15] dexter_e: Is there a way to check which components or modules are gradually consuming the memory ? [10:18] Glenjamin: which static serving thing? [10:20] dexter_e: just one I manually created [10:20] dexter_e: oh-oh! [10:22] guidocalvano: how do I get the number value as a byte in a string? [10:23] Wizek has joined the channel [10:23] irahgel1 has joined the channel [10:24] Glenjamin: dexter_e: try using the connect static servering middleware, yours might be leaking. You can use node-inspector with v8-profiler to get heap dumps and see where the memory is going [10:26] swick has joined the channel [10:27] ptlo has joined the channel [10:30] cyrilmengin has joined the channel [10:30] fly-away has joined the channel [10:33] cyrilmengin has joined the channel [10:33] fairwinds_ has joined the channel [10:34] Glenjamin has joined the channel [10:34] jj0hns0n has joined the channel [10:36] stagas has joined the channel [10:36] dominictarr has joined the channel [10:37] fangel has joined the channel [10:38] neurodrone has joined the channel [10:38] rendar has joined the channel [10:42] jtrudeau has joined the channel [10:44] jldbasa has joined the channel [10:46] navaru has left the channel [10:49] Xano has joined the channel [10:49] Xano has left the channel [10:51] shedinja: anyone know how to connect to a remote hook.io session with hook.io? [10:51] stagas has joined the channel [10:55] CrisO has joined the channel [10:55] Morkel has joined the channel [10:56] wo0f has joined the channel [10:57] adambeynon has joined the channel [10:57] dexter_e: Glenjamin: Thank you. I switched it back to the default express static. Gonna pop it into node-inspector and bust some heap dumps! [10:59] FireFly|n900 has joined the channel [11:03] mikl1 has joined the channel [11:03] Vennril has joined the channel [11:04] SvenDowideit has joined the channel [11:08] greens35: can anyone help me hack http.request() to be sent through a squid proxy? [11:08] bzinger has joined the channel [11:10] cjroebuck has joined the channel [11:10] davidbanham has joined the channel [11:13] blax has joined the channel [11:13] jacobolus has joined the channel [11:15] boehm has joined the channel [11:16] stagas has joined the channel [11:18] blax: hi, what could have possibly gone wrong if I have LOTS of "dead" https connections (in ESTABLISHED state in netstat)? switching to node http server + stunnel seems to fix the problem, but I'm curious what's going on [11:19] OmidRaha has joined the channel [11:19] djazz has joined the channel [11:21] djazz: how can I make node.js open a webpage in the default browser (serverside)? child_process.exec? [11:21] ablomen: djazz what os? [11:21] djazz: win32 atm [11:22] djazz: but it should work on linux too [11:22] mendel_ has joined the channel [11:23] liquidproof has joined the channel [11:23] djazz: I'm thinking of writing a mini-webserver with node and the app will be accessed on localhost [11:23] djazz: the GUI is the webpage [11:24] djazz: and node can access the filesystem [11:24] maligree has joined the channel [11:24] djazz: and stuff like ZLIB [11:24] ablomen: well google says open http://some.url should work in window, you can use something like sensible-browser http://some.url in linux [11:24] NetRoY has joined the channel [11:24] djazz: ablomen? what function call? [11:25] djazz: ,* [11:25] replore has joined the channel [11:25] replore_ has joined the channel [11:25] ablomen: like you said, something with child_process.exec [11:25] djazz: it didnt work, hmm [11:25] djazz: spawn, exec or execFile [11:26] Morkel has joined the channel [11:26] Jippi has joined the channel [11:28] jbpros has joined the channel [11:28] john_kz has joined the channel [11:29] djazz: ablomen: "start " command works, whats the linux equalient? [11:30] ablomen: sensible-browser (not sure how supported that is) [11:31] djazz: sensible-browser? [11:31] djazz: is that a command? [11:31] djazz: cool [11:31] ablomen: oh xdg-open looks like the best option btw [11:31] djazz: yeah [11:32] djazz: just need to check process.platform [11:32] djazz: :) [11:32] djazz: thx [11:32] markwubben has joined the channel [11:33] dexter_e: Whats port 5858 ? [11:33] Sembiance: morning everyone :) [11:33] dexter_e: debugger port [11:33] dexter_e: haha [11:34] rweiden has joined the channel [11:34] rweiden has left the channel [11:35] fangel has joined the channel [11:36] apoc has joined the channel [11:40] amigojapan has joined the channel [11:40] nyholt has joined the channel [11:43] _jhs has joined the channel [11:43] brianseeders has joined the channel [11:43] _jhs has left the channel [11:45] matyr has joined the channel [11:45] ruchir has joined the channel [11:45] ruchir: i need some help with nodejs-mongodb [11:45] ruchir: i get terrible read performance [11:46] ruchir: when using single connection to mongodb for concurrent http requests [11:46] stagas has joined the channel [11:48] fuzzyone has joined the channel [11:49] adambeynon has joined the channel [11:50] hij1nx has joined the channel [11:52] neurodrone has joined the channel [11:53] fangel has joined the channel [11:56] dmkbot: joyent/node: 03kuebk: Inconsistency between path.resolve and require.resolve - https://github.com/joyent/node/issues/1822 [11:59] hij1nx has left the channel [12:05] mehtryx has joined the channel [12:05] vnguyen has joined the channel [12:06] Metal3d has joined the channel [12:06] alnewkirk has joined the channel [12:06] jtsnow has joined the channel [12:07] secoif has joined the channel [12:10] DrDetroit has joined the channel [12:10] ayaz has joined the channel [12:11] erichynds has joined the channel [12:14] kuebk has joined the channel [12:14] zackattack has joined the channel [12:16] Casan has joined the channel [12:16] oiiii has joined the channel [12:16] apoc has joined the channel [12:17] lz1 has joined the channel [12:17] temp01 has joined the channel [12:20] indexzero has joined the channel [12:20] Wizek has joined the channel [12:22] herbySk has joined the channel [12:23] _kud has joined the channel [12:24] iszak has joined the channel [12:25] iszak: What happened to http.createClient ? I can't find it in the docs. [12:25] Glenjamin: which docs verison? [12:25] Glenjamin: oh [12:25] iszak: v0.4.12 [12:25] oiiii has joined the channel [12:25] Glenjamin: createClient became .get and .request [12:28] iszak: bu I don't want to do a once off [12:28] iszak: s/bu/but/ [12:28] i42n has joined the channel [12:29] Glenjamin: then re-use the options array [12:29] Glenjamin: or move it behind another method [12:30] spcshpopr8r has joined the channel [12:30] iszak: why so many API changes. [12:30] robi42 has joined the channel [12:30] dexter_e: node-inspector = pure wonder [12:30] Glenjamin: dexter_e: yup! [12:31] stagas has joined the channel [12:31] dexter_e: see the stack and edit code at runtime = walk through walls [12:32] Glenjamin: you can edit the code? [12:32] Glenjamin: or do you mean by monkeypatching? [12:32] dexter_e: I mean right in node-inspector you can change the code as its running [12:33] Glenjamin: oh cool, never even occured to me to try that [12:33] dexter_e: and see the results in the stack [12:34] dexter_e: It doesn't save it to the file, the edits disappear once its rebooted [12:34] dexter_e: so its just editing whats been interpreted , in memory [12:34] dexter_e: :O [12:34] AaronMT has joined the channel [12:35] dexter_e: Glenjamin: I feel like you just gave me a million dollars. [12:35] Glenjamin: i didn't write it! :) [12:35] dexter_e: this thing is like x-ray vision for your node app [12:35] Glenjamin: it's pretty good for short script as well, if you start it up with --debug-brk [12:36] Glenjamin: ah yes, thats in the readme now [12:36] perezd has joined the channel [12:36] dexter_e: Yeah I'm trying to see about setting up to run via supervisor and auto restart [12:36] abraxas has joined the channel [12:37] Glenjamin: try forever [12:37] dexter_e: forever is easier ? [12:37] dexter_e: or is there something better about forever ? [12:37] Glenjamin: http://search.npmjs.org/#/forever [12:38] Glenjamin: its pretty much the same as supervisor [12:38] Glenjamin: but has some node related things [12:38] Glenjamin: and you can use it ad-hoc on the commandline [12:38] dexter_e: your running this with node-inspector [12:38] dexter_e: ? [12:38] Cromulent has joined the channel [12:38] Glenjamin: oh, to keep node-inspector on? [12:39] Glenjamin: i just run it when i need it with &, but forever would do that quite happily [12:39] dexter_e: both node-inspector and the webserver:8000 [12:39] joemccann has joined the channel [12:40] fumanchu182 has joined the channel [12:41] cmtt has joined the channel [12:41] sveisvei has joined the channel [12:45] johnwards has joined the channel [12:45] hij1nx_ has joined the channel [12:46] replore has joined the channel [12:46] replore_ has joined the channel [12:47] k1ttty has joined the channel [12:48] heavysixer_ has joined the channel [12:48] postwait has joined the channel [12:49] gut4 has joined the channel [12:49] k1ttty has joined the channel [12:50] CarterL has joined the channel [12:50] McMAGIC--Copy has joined the channel [12:50] madsleejensen has joined the channel [12:51] ph^ has joined the channel [12:52] iszak: Is there any ETA for a more stable API on node.js? [12:52] bnoordhuis has joined the channel [12:52] user1_ has joined the channel [12:53] darinc has joined the channel [12:53] chany has joined the channel [12:53] k1ttty_ has joined the channel [12:53] user1_: does any one have a simple login page which checks login credentials from mongodb and redirects to awelcome page. asap. [12:53] chany: Hi. What text editor/IDE do you recommend for node.js? [12:54] sfoster has joined the channel [12:54] Glenjamin: iszak: it only has much of a change when the minor version changes [12:54] Glenjamin: createClient was removed when it went fro 0.3 to 0.4 [12:55] darinc: chany: Which OS are you on? I'm on Linux and prefer vim. [12:55] chany: all 3 :) [12:55] chany: i found sublime text but I'm used to an IDE and intellisense [12:55] Glenjamin: the changelog will have details. If you don't allow an core APIs to change you end up with PHP [12:55] iszak: Glenjamin, I'm just finding out dated libraries for node.js which are no longer maintained / supported and it's kind of frustrating. [12:56] Glenjamin: chany: i get by quite well cross-platform using komodo edit [12:56] Glenjamin: iszak: mm, that is a problem - what libs are you after? [12:57] chany: glenjamin: does that supply intellisense for node.js and all its plugins eg.socket.io I just find intellisense more helpful than having to trawl through documentation [12:57] iszak: Glenjamin, it's fine i've found the packages I need now. [12:57] xsyn has joined the channel [12:58] k1ttty has joined the channel [12:58] xsyn: vi [12:58] Glenjamin: chany: it doesn't - but I believe they're working on it for version 7 [12:59] adambeynon has joined the channel [12:59] temp01 has joined the channel [12:59] kriszyp has joined the channel [13:00] rchavik has joined the channel [13:02] skyl has joined the channel [13:03] DrMcKay has joined the channel [13:03] robi42 has joined the channel [13:04] johnwards has joined the channel [13:04] chase has joined the channel [13:04] socialhack has joined the channel [13:04] ayaz has joined the channel [13:05] ayaz has joined the channel [13:11] davidsklar has joined the channel [13:13] indexzero has joined the channel [13:13] hij1nx has joined the channel [13:14] ken-ignite has joined the channel [13:14] thinkt4nk has joined the channel [13:15] mikedeboer has joined the channel [13:15] chany: anyone used sublime text 2? [13:16] alnewkirk has joined the channel [13:16] scott_gonzalez has joined the channel [13:16] Qbix1 has joined the channel [13:16] ayaz: chany: I have but only sparingly. [13:16] Qbix1: hey guys [13:16] Qbix1: where does node now look for files? [13:16] Qbix1: .node_modules ? [13:16] Qbix1: I see require.paths has been deprecated :( [13:16] chany: ayaz: what do you mainly use [13:17] ayaz: chany: I use Vim on iTerm2. [13:17] ayaz: As well as MacVim. [13:18] chany: do you just refer to documentation when you're stuck on something ie.how do i do this? compared to using intellisense [13:18] ayaz: chany: Yea, I am kind of used to doing that. [13:18] mikedeboer has joined the channel [13:19] ayaz: chany: I tried using Eclipse/Aptana/PyDev for Python dev, but found it very slow and heavy. [13:19] lazyshot has joined the channel [13:19] Qbix1: where does the app start looking for the modules [13:19] Qbix1: when I do a require() from my app? [13:21] fumanchu182 has joined the channel [13:21] gut4 has joined the channel [13:24] jrbran has joined the channel [13:24] slifty has joined the channel [13:25] piscisaureus has joined the channel [13:25] rcaskey: any suggestion on a lightweight lib to parse http client headers? [13:26] k1ttty_ has joined the channel [13:26] konobi: http [13:26] konobi: oh you mean user-agent headers? [13:26] rcaskey: yeah [13:26] [[zz]] has joined the channel [13:27] MooGoo: regexp [13:27] JasonJS has joined the channel [13:27] MooGoo: or just split even [13:27] technoweenie has joined the channel [13:28] yept has joined the channel [13:29] skiz has joined the channel [13:30] k1ttty has joined the channel [13:31] jarek has joined the channel [13:32] Glenjamin: Qbix1: require.paths is deprecated, the load path stays the same [13:32] thomblake has joined the channel [13:32] cjroebuck has joined the channel [13:33] herbySk has joined the channel [13:33] Qbix1: how do I fix this: [13:33] Qbix1: http://pastie.org/private/54zzfzygfhqcn8tulp0iw [13:34] thalll has joined the channel [13:34] adambeynon has joined the channel [13:34] k1ttty has joined the channel [13:35] mikedeboer: Qbix1: 1) never add npm modules (the node_modules directory) to your repo, because you can install them with npm anyway [13:35] xetorthio has joined the channel [13:36] mikedeboer: 2) rm -rf framework/node_modules/formidable/test/fixture/file/* [13:36] Glenjamin: echo "node_modules" > .hgignore [13:36] Glenjamin: echo "node_modules" >> .hgignore even [13:36] xaxax has joined the channel [13:36] thomblake has left the channel [13:37] Qbix1: mikedeboer: are you sure [13:37] Qbix1: I want my framework to be self contained [13:37] Qbix1: and not have to require each developer to install modules manually all the time [13:37] Qbix1: express contains node_modules and connect, why can't i? [13:38] Glenjamin: "all the time" only when they check out a new version [13:38] Glenjamin: Qbix1: https://github.com/visionmedia/express/blob/master/.gitignore#L13 [13:38] ksheurs has joined the channel [13:40] Sly__ has joined the channel [13:40] fumanchu182 has joined the channel [13:40] iszak: Anyone know a twitter library that does both monitor streams and can post tweets? [13:41] iszak: twitter-node only does streaming it seems. [13:41] bbigras__ has joined the channel [13:42] tiagobutzke has joined the channel [13:44] boehm has joined the channel [13:44] stagas has joined the channel [13:46] BillyBreen has joined the channel [13:46] Croms has joined the channel [13:46] localhost has joined the channel [13:47] spicycode has joined the channel [13:47] lv has joined the channel [13:48] Poetro has joined the channel [13:48] rcaskey: does js have a an equiv to python's dictionary subs like "My name is %(name)s, my favorite color is %(color)s" % person_data [13:48] tbranyen: rcaskey: nah you gotta write your own [13:49] rcaskey: any conveneince library that does that stuff? [13:49] Sly__: You could always use formatting. [13:49] CrisO: rcaskey: underscorejs [13:49] Sly__: "%s %s",name,color [13:49] Sly__: Like in console.log() [13:49] Qbix1: so what do I do [13:49] Qbix1: about node_modules [13:49] CrisO: http://documentcloud.github.com/underscore/ -> template() [13:50] Qbix1: how do I amke sure the modules we are dependent on are installed [13:50] darinc has left the channel [13:50] darinc has joined the channel [13:51] lv: i am getting Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} make: *** [program] Error 1 even after exporting $ export SHELL=/bin/bash or $ export SHELL=/usr/bin/bash any suggestions [13:51] Glenjamin: Qbix1: define deps in package.json, ignore node_modules from VCS, trust people who check it out will actually npm install [13:52] Qbix1: where is package.json supposed to go [13:52] Glenjamin: isaacs might have an answer for how to prompt people to install deps, but i suspect its "out of scope of npm" :) [13:52] Glenjamin: in the root of the app [13:52] Qbix1: ok thanks [13:52] Glenjamin: https://github.com/isaacs/npm/blob/master/doc/cli/json.md [13:52] CrisO: Qbix1: http://npmjs.org/doc/developers.html - [13:52] CrisO: % npm init -> will get you started [13:53] Qbix1: thanks guys [13:53] malletjo has joined the channel [13:53] Qbix1: and how do I host it for npm [13:53] Qbix1: so people can npm install Q [13:53] Glenjamin: "npm publish" [13:53] Qbix1: if I publish a program, does it have to have an open source license? [13:54] Qbix1: In our case, the framework is proprietary (for now) so maybe it's not a good idea to use npm? [13:54] kuebk: Qbix1 [13:54] kuebk: you can make your own npm repository [13:54] wilmoore has joined the channel [13:54] ceej has joined the channel [13:54] Qbix1: how [13:55] willwhite has joined the channel [13:57] lv: i am getting Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} make: *** [program] Error 1 even after exporting $ export SHELL=/bin/bash or $ export SHELL=/usr/bin/bash any suggestions [13:58] mAritz has joined the channel [14:00] hwinkel has joined the channel [14:00] baudehlo1 has joined the channel [14:02] CrisO: Qbix1: you could also just require it from a folder. Do all the steps, except for "npm publish" - put stuff in your node_modules folder or a different folder and essentially require the folder: [14:02] CrisO: var module = require('path/my_module_folder') [14:03] lv: i am getting Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a} make: *** [program] Error 1 even after exporting $ export SHELL=/bin/bash or $ export SHELL=/usr/bin/bash any suggestions [14:03] toopay has joined the channel [14:03] stash1 has joined the channel [14:04] luxigo has joined the channel [14:06] Trisox has left the channel [14:06] zemanel has joined the channel [14:06] brianc has joined the channel [14:07] luxigo: how to stream a png from a buffer ?.. [14:07] amigojapan has joined the channel [14:08] chase has joined the channel [14:09] luxigo: say how to stream to a web browser a png stored in a buffer object ?.. [14:09] konobi: send() it [14:09] antono has joined the channel [14:10] vicapow has joined the channel [14:12] chase_farmer: hey guys, having some issues trying to figure out how to run this interval properly without creating an infinite loop and firing my function too many times with socket [14:12] chase_farmer: basically i want this to create new entries then when its done restart the interval [14:12] chase_farmer: https://gist.github.com/1261722 [14:12] chase_farmer: what I've tried so far is creating an infinite loop :( [14:13] rcaskey: last question for a while, how do I encode txt as html so that special chars get escaped, but spaces and the like do not [14:13] mendel__ has joined the channel [14:13] socialhack has joined the channel [14:14] luxigo: for a png file i use a createReadStream() and call pb.response.write() in the onData listener, but for a buffer i dunno (no i dont want to create a temp file :-), and calling pb.response.write() on nextTick() doesnt works [14:14] sourcode has joined the channel [14:14] Glenjamin: chase_farmer: might be better off using setTimeout after each loop to schedule the next one with a delay [14:16] guidocalvano has joined the channel [14:16] catb0t has joined the channel [14:16] chase_farmer: hmm didn't think about that [14:16] chase_farmer: good call [14:16] konobi: luxigo: look at the pipe() function of http response [14:17] guidocalvano has joined the channel [14:17] colinclark has joined the channel [14:17] luxigo: konobi: thanks [14:18] k1ttty has joined the channel [14:18] gsmcwhirter has joined the channel [14:18] PuffTheMagic: whats the best way to go from a buffer to an array of ints [14:18] chase_farmer: Glenjamin: what's the most elegant way to refire it if my "if" statement isn't true? [14:19] luxigo: konobi: but has no pipe() and buffer is not a stream anyway [14:19] PuffTheMagic: i need to send some data in a buffer as a json message, and i want to preserve the charCode notation of the string [14:19] konobi: luxigo: but you createReadStream [14:20] luxigo: konobi: for a file yes, but here im talking about a png stored in a buffer object [14:20] mikedeboer has joined the channel [14:20] konobi: so res.send(buffer) ? [14:20] davidwalsh has joined the channel [14:21] jedahan has joined the channel [14:21] luxigo: konobi: is it undocumented ?.. http://nodejs.org/docs/latest/api/all.html#http.ServerResponse [14:21] gsmcwhirter has joined the channel [14:21] aheckmann has joined the channel [14:21] EvRide: is there a module for easily communicating among node instances? [14:21] konobi: huh... .write it is then [14:22] konobi: just make sure you set the encoding correctly [14:23] DrMcKay: EvRide: hook.io [14:23] luxigo: konobi: response.write doesnt send anything when trying to send a png in a single call, however it works when using reading a png with readStream and calling write from the on 'data' listener [14:23] EvRide: thanks [14:24] konobi: luxigo: call .end() to flush [14:24] luxigo: konobi: i did [14:25] konobi: time to do some console.log()-ing then ^_^ [14:25] luxigo: konobi: i did.. [14:25] airhorns has joined the channel [14:25] luxigo: konobi: time for some irc requests :-) [14:25] d0k has joined the channel [14:25] konobi: luxigo: time to gist that sucker [14:26] janiczek has joined the channel [14:26] luxigo: konobI: nothing to gist... this works: http://blog.shawndumas.com/playing-with-nodejs but how to do it with a Buffer object instead of a file ?.. [14:28] Guest39594 has joined the channel [14:28] clopez has joined the channel [14:29] Guest39594: hi all, i try to build node.js for the sheevaplug running freebsd, unfortunately freebsd uses the arm-oabi instead of the eabi. is there any way of building nodejs without the requirement of the eabi ? [14:29] ivanfi has left the channel [14:29] jdparker has joined the channel [14:29] Industrial: Anyone here use node-oauth? I have a problem with it. [14:29] Industrial: I have completed my oauth2 handshake with my private oauth2 provider [14:29] _kud_ has joined the channel [14:30] Industrial: then I try to use .get() to use the API that's protected with oauth [14:30] armando_neto has joined the channel [14:30] Industrial: the callback i give to get is not run, and instead it seems that it's trying to call getOauthRequestToken [14:30] Industrial: but I've already done that [14:30] Industrial: I just want to make a HTTP GET :\ [14:32] gkmngrgn has joined the channel [14:33] mikedeboer has joined the channel [14:34] kevwil has joined the channel [14:34] vipaca has joined the channel [14:34] vipaca has joined the channel [14:35] bubunator has joined the channel [14:35] bubunator: hi [14:36] robertfw has joined the channel [14:36] k1ttty_ has joined the channel [14:37] gkmngrgn: hello, how can i get source file path from object? i don't want to use __dirname, because it's returning extended object path. [14:37] bubunator: i have written a small stream server with a on data and a on end handler. now when i send data to this server from another script it seems to 'hang' after the fwrite. the onEnd handler is only executed when i manually exit the client script even though all the data is already sent. how can i make the node.js stream server to call the onEnd handler after all data has been sent? [14:37] TomY has joined the channel [14:37] dominictarr has joined the channel [14:38] SamuraiJack_ has joined the channel [14:39] ank has joined the channel [14:39] johnwards has joined the channel [14:39] shoppinglee has joined the channel [14:39] bzinger has joined the channel [14:40] cmtt has joined the channel [14:41] jj0hns0n has joined the channel [14:42] ben_alman_: for the same of unit testing, is there a way to require() a file such that it completely clears the internal cache for that file? i need all my tests to really be atomic [14:42] paul0 has joined the channel [14:42] ben_alman_: with no state persisting between require()'s [14:42] dturnbull1 has joined the channel [14:42] Glenjamin: ben_alman_: ideally i'd say design your code so that there's no state persisting. probably some sort of DI approach [14:42] jsj has joined the channel [14:42] Glenjamin: but [14:42] dturnbull has left the channel [14:42] Glenjamin: require.cache = {} should be enough iirc [14:43] ben_alman_: that wil lclear every module's cache. i only want to clear one [14:43] harthur has joined the channel [14:43] dexter_e has joined the channel [14:43] ben_alman_: i don't want to have to encumber the user of my lib with having to create a new instance of it each time [14:44] ben_alman_: the persistence is awesome. just not for unit testing [14:44] Glenjamin: then have it create one by default, but provide a way to get a clean one [14:44] whitman: ben_alman_, just: delete require.cache['path_to_required_file']; [14:44] ben_alman_: whitman, i'll try that [14:44] erickt has joined the channel [14:45] fatjonny has joined the channel [14:46] eventualbuddha has joined the channel [14:46] ph^ has joined the channel [14:46] mikedeboer has joined the channel [14:47] replore_ has joined the channel [14:47] replore has joined the channel [14:47] jsurfer has joined the channel [14:47] k1ttty has joined the channel [14:47] criswell has joined the channel [14:48] k1ttty has joined the channel [14:49] k1ttty has joined the channel [14:49] SamuraiJack__ has joined the channel [14:49] Destos has joined the channel [14:49] jerrysv has joined the channel [14:52] jtsnow has joined the channel [14:56] bubunator: what does the client have to send so that the onEnd Method in the streamserver is called? [14:56] bubunator: i dont want to close the socket [14:57] gsmcwhirter: is node-http-proxy a preferred method of reverse-proxying for node? (I have been using nginx, but the lack of websockets etc. is really annoying) [14:58] gsmcwhirter: or is there something better? [14:58] CoverSlide: bubunator: the client needs to send a `FIN` packet [14:58] saikat has joined the channel [14:59] stagas has joined the channel [14:59] CoverSlide: how that is done depends on the client [14:59] bubunator: how do i send that? [14:59] sub_pop has joined the channel [14:59] CoverSlide: from node, .end() should send it [15:00] aelien27 has joined the channel [15:00] socialhack has joined the channel [15:00] sub_pop has joined the channel [15:00] JakeyChan has joined the channel [15:00] luxigo: how to stream a png from a Buffer object with nodejs http.ServerResponse ? http://pastebin.com/pQ4P8iai [15:00] hij1nx has joined the channel [15:01] SamuraiJack__ has joined the channel [15:02] hij1nx_ has joined the channel [15:02] wbednars_ has joined the channel [15:03] Astro has joined the channel [15:03] sriley has joined the channel [15:04] mandric has joined the channel [15:04] colinclark has joined the channel [15:05] darinc has joined the channel [15:05] hij1nx has joined the channel [15:06] aconbere has joined the channel [15:07] wilmoore has joined the channel [15:08] hermanjunge has joined the channel [15:08] vicapow has joined the channel [15:08] stash1 has joined the channel [15:08] TomY_ has joined the channel [15:09] hij1nx_ has joined the channel [15:11] TheJH has joined the channel [15:12] bnoordhuis: luxigo: res.end(buf)? [15:12] luxigo: bnoordhuis: first thing i tried :-) [15:12] hank__sims has joined the channel [15:12] bnoordhuis: luxigo: it doesn't stream but then buffers aren't streams [15:13] jakehow has joined the channel [15:13] hank__sims: Is there any clean way to decouple a pipe -- i.e., readStream.pipe(writeStream) -- ? [15:14] Renegade001 has joined the channel [15:14] bnoordhuis: luxigo: btw, don't pass an encoding to res.write() if b is a buffer - it doesn't hurt but it doesn't help either [15:15] bnoordhuis: and you should probably specify "Transfer-Encoding: chunked" [15:15] luxigo: bnoordhuis: for a file you must use a readStream and call res.write() from the on 'data' listeneer, because res.end(fs.readFileSync) just doesnt works ... im ok with it as long it works, but i cant figure how to use response.write() to send a png from a buffer object instead of a file.. [15:15] joshkehn has joined the channel [15:16] hij1nx has joined the channel [15:17] luxigo: bnoorhuis: i try to have a self contained web app in the node executable [15:17] bnoordhuis: luxigo: res.write() simply writes out the buffer [15:17] Venom_X has joined the channel [15:17] luxigo: bnoordhuis: yes but it doesnt works with image/png [15:17] bnoordhuis: luxigo: some things to try: [15:18] mAritz has joined the channel [15:18] bnoordhuis: make sure that the Content-Length header is a string [15:18] joshkehn has left the channel [15:18] bnoordhuis: don't touch the buffer after you passed it off to res.write() [15:18] bnoordhuis: oh, and check the output with curl [15:18] luxigo: bnoordhuis: for png files you muste use this methode (maybe theres other ones) http://blog.shawndumas.com/playing-with-nodejs [15:19] gkmngrgn has left the channel [15:19] mehlah has joined the channel [15:19] luxigo: bnoordhuis: the headers are sent with response.writeHead() [15:19] luxigo: bnoordhuis: and i do a single request for the png (no buffer scope problems) [15:19] PatF has joined the channel [15:19] patrickgamer has joined the channel [15:20] luxigo: bnoordhuis: trying with wget good idea [15:20] stash1: Stream.prototype.pipe.call(rs,response)? [15:20] wbednarski has joined the channel [15:20] stash1: (if rs isn't already a Stream, can't recall) [15:21] patrickgamer has left the channel [15:21] mehlah has joined the channel [15:21] tjholowaychuk has joined the channel [15:21] indexzero has joined the channel [15:21] bnoordhuis: luxigo: btw, if it's a single buffer, just do res.end(buf) [15:23] stash1: it is, so you could do `rs = fs.createReadStream(path); response.writeHead({…}); rs.pipe(response)` [15:23] jaequery has joined the channel [15:23] EyePulp has joined the channel [15:24] Metal3d has joined the channel [15:24] albertosh has joined the channel [15:24] joshkehn has joined the channel [15:25] thalll has joined the channel [15:25] liquidproof has joined the channel [15:25] neurodrone has joined the channel [15:26] Jabbers has left the channel [15:26] pandeiro has joined the channel [15:26] joshkehn: I'm working on a multi-file upload with node-formidable and it doesn't seem to notice that I'm uploading multiple files. [15:27] criswell has joined the channel [15:27] joshkehn: Server side: https://gist.github.com/7515c19e23baddd9d09f [15:27] socialhack has joined the channel [15:27] mike5w3c has joined the channel [15:27] tjholowaychuk: joshkehn are you doing files[]= [15:27] tjholowaychuk: ? [15:27] joshkehn: No… [15:28] tjholowaychuk: if you listen on the events you'll likely see them [15:28] tjholowaychuk: because i dont think formidable supports multiple of the same name atm [15:28] Andeye has joined the channel [15:28] joshkehn: The example listed on the README leads one to believe it does. [15:29] tjholowaychuk: just saying what i've seen in the issue queue [15:29] michaeldeol has joined the channel [15:29] joshkehn: I'll give that a shot. [15:29] r04r: Trying to compile node.js on an embedded system, and I'm getting "*** [obj/release/snapshot.cc] Error -4", anyone know what this means? [15:30] luxigo: bnoordhuis: thanks :-) hard to reject his own authority :-) [15:30] CoverSlide: v8's not building [15:30] joshkehn: Nope, I just see a single file in the response https://gist.github.com/97ed6b5af6b7490eb5b9 [15:30] luxigo: its [15:30] tjholowaychuk: joshkehn what about the "file" event though [15:30] CoverSlide: is it on arm? [15:30] r04r: CoverSlide: Yes [15:30] fangel has joined the channel [15:30] issackelly_ has joined the channel [15:30] CoverSlide: hmm arm should be ok still [15:31] r04r: CoverSlide: Earlier I did "export CFLAGS=-march=armv7-a" to get compiling to go be a bit further [15:31] hacksparrow has joined the channel [15:31] CoverSlide: are you trying to compile master? [15:31] joshkehn: form.on('file' you mean? [15:31] r04r: CoverSlide: v0.4.12 tarball [15:32] socialhack has joined the channel [15:32] mikedeboer has joined the channel [15:33] CoverSlide: hmm may want to ping creationix when he comes in here if there's any issues building on ARM [15:33] wilmoore has joined the channel [15:33] CoverSlide: Also, TheJH, DrMcKay, didn't you guys build node on Android? [15:33] r04r: I googled and found something about disabling mksnapshot, but I'm not sure how to do that. I found the argument mentioned in the wscript file but not sure how to pass it >.> [15:33] joshkehn: I think that worked.... [15:33] TheJH: CoverSlide, yup [15:33] joshkehn: Thanks TJ. [15:34] CoverSlide: no issues with v8 snapshot ? [15:34] TheJH: CoverSlide, we set up fedora on the android (inside a chroot) and then ran the normal ./configure&&make&&make install inside it [15:34] CoverSlide: oic [15:34] TheJH: CoverSlide, after some work, even openssl worked [15:34] r04r: Nice [15:35] TheJH: CoverSlide, I have a socket.io-powered webchat on my phone now :D [15:35] CoverSlide: sweet [15:35] TheJH: actually, dnode [15:35] ritch has joined the channel [15:35] ritch has left the channel [15:35] CoverSlide: i may do that with my old phone [15:35] wankdanker: does hook.io's connect method attempt to a hook.io server on the localhost only or can it discover it on another network host? [15:35] Glenjamin: can node be built on iOS? [15:36] CoverSlide: at least until raspberry pi gets released [15:36] CoverSlide: Glenjamin: probably only rooted [15:36] Glenjamin: mm [15:36] r04r: How would I pass the --without-snapshot argument with make? [15:36] CoverSlide: TooTallNate might know [15:36] kenperkins has joined the channel [15:36] CoverSlide: he's like the Node+iOS dude [15:37] alvaro_o has joined the channel [15:38] bnoordhuis: r04r: pass it to ./configure [15:38] hank__sims has left the channel [15:38] TomY_ has joined the channel [15:38] r04r: bnoordhuis: Thanks! [15:39] r04r: Oh, could an issue be that its complaining about "Clock skew detected. Your build may be incomplete."? [15:39] idefine has joined the channel [15:40] bnoordhuis: r04r: might want to do a `make distclean` followed by `./configure` just in case [15:41] r04r: bnoordhuis: Thanks. Guess I'll report back if it fails/works, last compile took foreverrrr [15:43] jxck has joined the channel [15:43] jxck has joined the channel [15:43] sirdancealot has joined the channel [15:43] bnoordhuis: r04r: i usually compile with scratchbox, still slower but much faster than compiling on the device itself [15:44] Venom_X has joined the channel [15:44] Morkel has joined the channel [15:45] hacksparrow has joined the channel [15:45] CoverSlide: what are you folks putting node on? [15:45] TheJH: CoverSlide, who are you talking to? [15:46] CoverSlide: bnoordhuis, r04r [15:46] EyePulp: coverslide: I put it on my sandwiches, typically with mustard. [15:46] bnoordhuis: CoverSlide: my router [15:46] CoverSlide: im interested in some low-cost ARM server [15:46] bnoordhuis: CoverSlide: i hear good stories about the sheevaplug [15:47] EyePulp: any redis lovers in here? Looking for advice on connecting across boxes for master/slave replication [15:47] bnoordhuis: i've been meaning to buy one myself [15:47] bubunator: what does node interprete as EOF signal? [15:47] CoverSlide: i was looking at http://trimslice.com or http://beagleboard.org [15:47] TheJH: bubunator, errm, nothing, I guess [15:47] neilk_ has joined the channel [15:47] bubunator: TheJH: so do i have to define something myself? [15:48] bnoordhuis: bubunator: what / where? [15:48] r04r: CoverSlide: I'm putting it on a SheevaPlug [15:48] bubunator: what would be the best EOF to use with binary data? [15:48] TheJH: bubunator, what kind of incoming data? [15:48] bubunator: binary [15:48] bubunator: images, etc [15:48] r04r: CoverSlide: http://www.instructables.com/image/FCLKYW7G58TBSZS/Sheevaplug-Python-Daemon-MySQL-RS232-Logging.jpg -- One of those [15:48] TheJH: bubunator, don't use an end marker for binary data. use a length prefix (4 bytes or so) [15:48] ctavan has joined the channel [15:49] bubunator: you mean i first send the length and then read length bytes? [15:49] CoverSlide: yes [15:49] TheJH: bubunator, in-band-signalling is cursed, it will work in development and some day, it'll get completely confused and mess stuff up in production [15:50] bubunator: ok then i sent the length first [15:50] joshkehn has left the channel [15:51] blueadept` has joined the channel [15:51] jerrysv: coverslide: maple leaf? [15:51] mdarnall has joined the channel [15:51] nibblebot has joined the channel [15:52] smathy has joined the channel [15:52] pt_tr has joined the channel [15:53] Yuffster_work has joined the channel [15:54] pt_tr_ has joined the channel [15:56] schwab has joined the channel [15:56] EhevuTov has joined the channel [15:56] heavysixer_ has joined the channel [15:56] boaz has joined the channel [15:56] pt_tr__ has joined the channel [15:56] sonnym has joined the channel [15:56] socialhack has joined the channel [15:59] pt_tr__ has joined the channel [15:59] smtlaissezfaire has joined the channel [15:59] caolanm has joined the channel [15:59] mehlah has joined the channel [16:00] daed has joined the channel [16:01] dexter_e: anyone running node-inspector with supervisor or forever ? [16:02] mikedeboer has joined the channel [16:02] Venom_X has joined the channel [16:03] stelleg has joined the channel [16:03] Swizec has joined the channel [16:03] bwinton has joined the channel [16:05] Wizek has joined the channel [16:06] socialhack has joined the channel [16:06] jmoyers has joined the channel [16:07] tj has joined the channel [16:07] Aphelion has joined the channel [16:09] stagas has joined the channel [16:09] xy has left the channel [16:09] pizthewiz has joined the channel [16:09] xy has joined the channel [16:10] guillermo has joined the channel [16:10] paul0 has joined the channel [16:10] xy has joined the channel [16:11] CIA-48: libuv: 03Fedor Indutny 07master * r33cb877 10/ (12 files in 5 dirs): [16:11] CIA-48: libuv: os: implement memory bindings [16:11] CIA-48: libuv: * us_get_free_memory [16:11] CIA-48: libuv: * us_get_total_memory - http://git.io/8wqDwQ [16:13] dexter_e: when I run node-inspector on a process started with node server.js it works well , but when I use it in conjunction with forever or supervisor it doesnt work.. Is there an easy explanation? [16:15] zastaph has joined the channel [16:15] fairwinds has joined the channel [16:15] CIA-48: libuv: 03Fedor Indutny 07master * ra35591b 10/ (11 files in 5 dirs): os: implement loadavg (not working on cygwin/win) - http://git.io/Si8yng [16:16] bzinger has joined the channel [16:16] tjholowaychuk has joined the channel [16:16] broofa has joined the channel [16:16] bnoordhuis: dexter_e: probably because forever and supervisor run your app in a separate process? [16:16] maletor has joined the channel [16:16] thalll has joined the channel [16:18] dexter_e: I see, I thought inspector just opens a connection to port:5858 [16:18] dexter_e: debug port [16:19] mdz_ has joined the channel [16:20] alvaro_o has joined the channel [16:21] r04r: node has compiled now, and it seems to have gone well but after a node install `node -v` yields "illegal instruction" :-( [16:21] Me1000 has joined the channel [16:24] mehlah has joined the channel [16:24] ctavan_ has joined the channel [16:25] dshaw_ has joined the channel [16:25] shinuza has joined the channel [16:26] eignerchris has joined the channel [16:26] enmand_ has joined the channel [16:26] stisti has joined the channel [16:26] zip4Rand: i try to build node.js for the sheevaplug running freebsd, unfortunately freebsd [16:26] zip4Rand: uses the arm-oabi instead of the eabi. is there any way of building nodejs without the [16:27] Daegalus: Anyone know if I can take this, and just slap it into my nodejs app: https://github.com/neo4j/neo4js it seems to require jQuery when compiled or something [16:27] ayaz has joined the channel [16:28] CoverSlide: 8.xwhy would it need jquery? [16:28] CoverSlide: s/8.x// [16:28] zip4Rand: i try to build nodejs on my sheevaplug which is running freebsd. unfortunately freebsd doesn't support the eabi right now. is there any way of building nodejs for the arm-oabi ? [16:28] r04r: zip4Rand: Another sheevaplug user here, but with debian. Also having some issues myself so I can't help you, but it's good to see I'm not the only one using the sheevaplug :D [16:28] cyrilmengin has joined the channel [16:29] CoverSlide: oh [16:29] zip4Rand: r04r: nice, debian uses eabi by default, but freebsd has not come this far already [16:29] CoverSlide: ACTION facepalms [16:29] Daegalus: CoverSlide: because it uses Underscore which uses jQuery [16:29] CoverSlide: ACTION assumed it was server-side [16:30] Daegalus: ya, no. lol but i want to use it server-side [16:30] felixhummel has joined the channel [16:30] Daegalus: just not sure how easy it would be [16:30] r04r: zip4Rand: Ah. Well, I was still having issues with the compile. My latest "success" is it actually finishing the compile but then just giving "Illegal instruction". It doesn't help I'm a bit of an unix noob [16:30] CoverSlide: ... ? it does? since when? [16:30] iivvoo has joined the channel [16:31] harthur has joined the channel [16:31] mehtryx has joined the channel [16:32] Glenjamin: underscore doesn't use jQuery [16:33] CoverSlide: Daegalus: https://github.com/gasi/node-neo4j <-- this didn't work for you? [16:33] Daegalus: CoverSlide: its buggy, and the one I linked is used by Neo4js for their webadmin, and is tested internally, so it has semi-official supprt [16:33] Daegalus: Glenjamin: thought i saw on their site that it did. hmm must have misread [16:34] _kud has joined the channel [16:34] CoverSlide: hm aren't they both using a simple REST interface ? [16:35] simenbrekken has joined the channel [16:35] Daegalus: CoverSlide: i guess, I just had some quirkiness with the node one, and I rather use an official one in the neo4j repository that seems to be written by them. I can probably adapt it for node [16:37] ppcano has joined the channel [16:39] smtlaissezfaire has joined the channel [16:41] albertosh has joined the channel [16:41] stelleg has joined the channel [16:41] gr-eg has joined the channel [16:41] Aikar: what does uv stand for [16:42] CoverSlide: UltraViolet [16:42] CoverSlide: * UltraViolent !!! [16:42] irahgel1 has left the channel [16:43] TheJH: uber-velocity :D [16:43] bshumate has left the channel [16:43] melcher has joined the channel [16:43] Daegalus: Uranus's Velocity! [16:43] stash1: is it just so you can say `-luv` to gcc? [16:44] bshumate has joined the channel [16:44] bshumate has joined the channel [16:44] colinclark has joined the channel [16:44] JSManiacs has joined the channel [16:45] pixel13 has joined the channel [16:45] colinclark has joined the channel [16:46] Aphelion has joined the channel [16:47] jtsnow has joined the channel [16:47] pixel13 has left the channel [16:48] pquerna_ has joined the channel [16:52] ppcano has joined the channel [16:52] towski has joined the channel [16:52] te-brian has joined the channel [16:52] colinclark_ has joined the channel [16:53] smtlaissezfaire_ has joined the channel [16:55] max_dev has joined the channel [16:55] StanlySoManly has joined the channel [16:56] tylerstalder has joined the channel [16:57] tbranyen: http://www.unlimitednovelty.com/2011/10/nodejs-has-jumped-shark.html [16:57] tbranyen: god i love our community so much [16:57] tbranyen: pissing off feebs is the highlight of my day [16:57] wbw72 has joined the channel [16:58] gut4 has joined the channel [16:59] melcher_ has joined the channel [16:59] versicolor has joined the channel [17:00] ticean has joined the channel [17:00] broofa: What's the status of the 'zlib' module in v0.5.8? http://nodejs.org/docs/v0.5.8/api/zlib.html [17:00] neilk_ has joined the channel [17:00] Crshman has left the channel [17:01] broofa: 'Just tried the sample code on that page and it's not working. 'gunzip' chokes trying to unzip the output file with "unexpected end of file" [17:02] patcito has joined the channel [17:03] neilk_ has joined the channel [17:03] joshkehn has joined the channel [17:04] TooTallNate has joined the channel [17:08] neilk_ has joined the channel [17:08] _sorensen_ has joined the channel [17:08] ppcano has joined the channel [17:08] r04r: Got node.js working on my sheevaplug :D [17:09] CoverSlide: awesome [17:09] CoverSlide: what'd you do? [17:09] perezd has joined the channel [17:09] r04r: Pick the correct march cflag, derp. [17:09] versicolor has joined the channel [17:10] r04r: armv5t works [17:11] jetienne_ has joined the channel [17:12] `3rdEden has joined the channel [17:12] roidrage has left the channel [17:13] ayaz has joined the channel [17:14] sjbreen has joined the channel [17:14] ecin has joined the channel [17:15] dmsuperman: Has anybody dealt with crypto to decrypt text encrypted with perl code and get it to work? [17:15] dmsuperman: I cannot get anything but gibberish as output [17:16] dmsuperman: Using openssl's AES as well as crypt::blowfish [17:17] Destos has joined the channel [17:17] gxdssoft has joined the channel [17:18] zeade has joined the channel [17:18] swick has joined the channel [17:18] gxdssoft has joined the channel [17:18] d0k_ has joined the channel [17:18] saesh has joined the channel [17:19] dmsuperman: I'm pretty sure it's a problem with crypto [17:20] CoverSlide: wtf is with the npm version jump? [17:20] gxdssoft has joined the channel [17:20] isaacs: CoverSlide: huge change, huge jump. but no new/changed api, so not changing the minor version [17:20] CoverSlide: oic [17:21] dgathright has joined the channel [17:21] stagas: is the cygwin build not going to be supported anymore? [17:21] isaacs: stagas: nope [17:21] isaacs: use windows [17:22] stagas: isaacs: how is it going to handle unix sockets [17:22] randylien has joined the channel [17:22] sjbreen1 has joined the channel [17:23] isaacs: stagas: ask in #libuv [17:23] wbednarski has joined the channel [17:24] CoverSlide: wtf [17:25] langworthy has joined the channel [17:25] broofa_ has joined the channel [17:25] shipit has joined the channel [17:26] anubhaw has joined the channel [17:26] slifty has joined the channel [17:27] wilmoore has joined the channel [17:27] Destos has joined the channel [17:28] maligree has joined the channel [17:28] willwhite has joined the channel [17:29] metaverse has joined the channel [17:29] dominictarr has joined the channel [17:31] luke` has joined the channel [17:31] tj has joined the channel [17:36] TheJH: hmm, npm version jump? [17:37] TheJH: 1.0.93? WTF? [17:37] TheJH: 1.0.30 -> 1.0.90 jump :D [17:37] blup has joined the channel [17:37] softdrink has joined the channel [17:37] isaacs: TheJH: did that with the windows support [17:37] isaacs: 1.1 is coming very soon. [17:38] isaacs: think of this as something like 1.1.0-beta [17:38] isaacs: but not quite beta yet [17:38] isaacs: and no new api [17:38] zackattack has joined the channel [17:38] TheJH: isaacs, no new api? so no npm star? [17:39] isaacs: oh, that is there, yeah [17:39] isaacs: sorry, no *changed* api [17:39] TheJH: ah, ok :) [17:39] dnyy has joined the channel [17:39] CoverSlide: `npm star` gives no output [17:39] Metal3d has joined the channel [17:39] CoverSlide: also `npm-g update npm` uninstalled itself [17:40] perezd_ has joined the channel [17:40] z8000 has joined the channel [17:40] isaacs: CoverSlide: i get output [17:40] isaacs: $ npm star restify [17:40] isaacs: ★ restify [17:40] z8000 has left the channel [17:40] orospakr has joined the channel [17:40] DrMcKay: isaacs: is `npm version` with -m going to be in this version? [17:40] CoverSlide: im just saying, shouldn't it output usage? [17:40] slifty has joined the channel [17:40] gut4 has joined the channel [17:41] creationix has joined the channel [17:41] whitman has joined the channel [17:41] Croms has joined the channel [17:41] CarterL has joined the channel [17:42] isaacs: CoverSlide: ohhhh... i see. if there's no arg. yes. [17:42] isaacs: issue and/or pull req, pls? [17:42] isaacs: um, nvm, actualy, i'll just do it [17:43] robertfw has joined the channel [17:43] isaacs: actually, it'd be rad if it instead showed all the packages you've starred, but i'll have to add a couchdb view for that. [17:45] aconbere has joined the channel [17:45] avih_ has joined the channel [17:45] Country has joined the channel [17:45] stelleg has joined the channel [17:46] chrislorenz has joined the channel [17:46] TheJH: isaacs, I think this should do: emit(Object.keys(package.users||{}).filter(function(username){return package.users[username]===true}).length) [17:46] TheJH: (ntested) [17:46] TheJH: ah, no [17:46] TheJH: sorry [17:46] bradwright has joined the channel [17:46] isaacs: nono, i want to see all the packages starred by user x [17:47] TheJH: that would be packages sorted by how many people starred them - also interesting :D [17:47] TheJH: isaacs, I think this should do: Object.keys(package.users||{}).forEach(function(username){if(package.users[username]===true)emit(username)}) ? [17:48] isaacs: emit(username, package._id) [17:48] brion_ has joined the channel [17:48] isaacs: then do startkey="username"&endkey="username" [17:49] TheJH: isaacs, I think you can just do `key=username` [17:49] isaacs: oh, ok [17:49] isaacs: but it'd be key="username" [17:49] franciscallo has joined the channel [17:50] isaacs: it's json, not urlencoded (weird, weird couchdb) [17:51] TheJH: isaacs, btw, just tried my code, works. also, I'm pretty sure _id gets autoemitted [17:51] TheJH: function(package){ [17:51] TheJH: Object.keys(package.users||{}).forEach(function(username){ [17:51] TheJH: if(package.users[username]===true)emit(username) [17:51] TheJH: }) [17:51] TheJH: } [17:51] murvin has joined the channel [17:52] vidi has joined the channel [17:52] seebees has left the channel [17:53] seebees has joined the channel [17:55] Me1000 has joined the channel [17:56] aelien27 has joined the channel [17:56] ako has joined the channel [17:58] wbednarski has joined the channel [18:00] vidi has joined the channel [18:05] Aikar: hi scott, bye scott [18:05] creationix has left the channel [18:06] vidi has joined the channel [18:06] heavysixer_ has joined the channel [18:06] innociv has joined the channel [18:07] kurtzhong has joined the channel [18:08] innociv: I'm using socket.io. How can I have a like.. dynamic namespace created for connections from each site? IE when someone connects from http://sub.domain.com/file.php, http://www.domain.com/dir/file.php, and http://www.example.org/file.php they need a namespace for each of those sites. [18:08] randylien has joined the channel [18:09] neilk_ has joined the channel [18:10] reid has joined the channel [18:13] FiveLemon has joined the channel [18:13] ayaz has joined the channel [18:15] langworthy has joined the channel [18:15] albertosh has joined the channel [18:16] tilgovi has joined the channel [18:19] AvianFlu has joined the channel [18:19] bradleymeck has joined the channel [18:22] scott_gonzalez has joined the channel [18:22] dreamdust1 has joined the channel [18:22] vicapow has joined the channel [18:23] dnjaramba has joined the channel [18:24] jtrudeau has joined the channel [18:24] ryanmcgrath has joined the channel [18:25] mcantelon has joined the channel [18:26] r04r: When using a database like redis/couchdb, is it common to do something like setting user_(id)_valA and user_(id)_valB and so on? [18:27] slifty has joined the channel [18:27] Renegade001 has joined the channel [18:29] githogori has joined the channel [18:30] TheJH: r04r, uhm, sounds wrong, but I'm not sure [18:30] DrMcKay: r04r: use hashes in redis [18:31] TheJH: yes, right, use objects/hashes [18:31] DrMcKay: and couch is a full-blown document store, so. [18:31] perezd has joined the channel [18:32] sjbreen1 has left the channel [18:33] digman543 has joined the channel [18:33] r04r: Did some googling on the term document store and, aha. [18:34] meae has joined the channel [18:34] meae: How can we connect to a SSL socket ? [18:34] metellus has joined the channel [18:34] TheJH: meae, with the native tls module [18:35] r04r: meae: http://nodejs.org/docs/v0.4.12/api/tls.html [18:36] meae: okay thanks [18:36] saikat has joined the channel [18:37] ixti has joined the channel [18:38] inpho has joined the channel [18:39] meae: brb only one term opne going to try this quick [18:39] FireFly has joined the channel [18:39] anubhaw has joined the channel [18:40] voodootikigod has joined the channel [18:40] Aphelion has joined the channel [18:40] Margle has joined the channel [18:41] albertosh has joined the channel [18:41] jhbot has joined the channel [18:42] mcantelon has joined the channel [18:44] mcantelon has joined the channel [18:45] ckknight has joined the channel [18:45] MUILTFN has joined the channel [18:46] TheJH: what's the best way to return two values from c++ land? create a js array? if so, how can I do that? [18:48] TheJH: can someone maybe even point me to an example? [18:48] fangel has joined the channel [18:48] TheJH: I'm trying to write NaCl bindings so that node can have the cool crypto_box function :) [18:49] stephenallred has joined the channel [18:49] TheJH: you give it a public recipient key, a private sender key, a nonce and a message, and it puts the message in a cryptobox for you (encrypted, replay-attack-protected, signed) [18:49] TheJH: it's cool [18:50] TheJH: and it's super-fast [18:50] TheJH: but it's not available in node yet [18:50] TheJH: and I want to change that [18:50] TheJH: so tell me how I can return two keys from one function :P [18:50] neilk_ has joined the channel [18:50] stash1: yeah, i'd create an Array probably… trying to find an example [18:50] MooGoo: no no, you have to really convince us [18:51] parshap has joined the channel [18:51] TheJH: MooGoo, :D [18:51] TheJH: it's faaaast and super-secure!!! [18:51] TheJH: ACTION waves hands [18:51] TheJH: ACTION makes vague gestures [18:51] stash1: could also use Templates: https://code.google.com/intl/ko-KR/apis/v8/embed.html#templates [18:51] MooGoo: buy one get one free? [18:52] CoverSlide: the Arramaybe just make an object then arr.Set(0, val);arr.Set(1, val) [18:52] cgfuh has joined the channel [18:52] ryanmcgrath has joined the channel [18:53] CIA-48: node: 03Ben Noordhuis 07master * rbc7cfd7 10/ (6 files in 2 dirs): http: remove legacy http library - http://git.io/vGNKRA [18:53] TheJH: CoverSlide, so, how do I create a JS object in C++ land? [18:54] elijah has joined the channel [18:54] ryanmcgrath has joined the channel [18:54] bnoordhuis: TheJH: re create js array: Local a = Array::New(2); a->Set(0, obj); a->Set(1, obj2); [18:54] TheJH: bnoordhuis, thanks! [18:54] TheJH: bnoordhuis, do I have to open and close a scope for that? or does it just work? [18:55] stash1: iirc since it's Local you need to close out the scope with it [18:55] vaheh has joined the channel [18:55] bnoordhuis: TheJH: if you see a Local somewhere, you should always use a HandleScope [18:55] TheJH: bnoordhuis, mhm, ok, thanks [18:57] eresair has joined the channel [18:58] topaxi has joined the channel [19:00] johnwards has joined the channel [19:01] neilk_ has joined the channel [19:02] jocafa: "HandleScope"…. is handle a verb, or an adjective in that? [19:02] harthur has joined the channel [19:02] Croms_ has joined the channel [19:04] smtlaissezfaire has joined the channel [19:06] stash1: "Handle" is like a "pointer" [19:06] stash1: so noun [19:09] Tobbe: How doess sessions work in express? Do I need to do anything more than just app.use(exress.session({secret: 'foobar'}));? [19:09] Tobbe: to enable them I mean [19:10] Guest63556: Tobbe add express.cookieParser() above that one [19:10] mekwall has left the channel [19:10] clopez has joined the channel [19:10] hij1nx has joined the channel [19:10] Tobbe: because right now I get TypeError: Cannot set property 'auth' of undefined when I try "req.session.auth = true;" [19:10] Tobbe: Guest63556: ohh, yeah, I already had that too [19:11] Guest63556: favicon [19:11] mandric has joined the channel [19:11] matyr has joined the channel [19:11] Guest63556: check your req.url [19:11] FireCat has joined the channel [19:11] paul0 has joined the channel [19:13] mark_ has joined the channel [19:14] liquidripples has joined the channel [19:14] Tobbe: Guest63556: yeah, the url is /favicon.ico [19:14] JasonJS has joined the channel [19:15] liquidripples: ridiculous problem with the git version of node ure: /bin/sh^M: bad interpreter [19:15] Tobbe: Guest63556: so what should I do about that? [19:15] liquidripples: i know it means windows vs unix encoding - but changing it causes problems ttoo [19:15] bwinton: liquidripples: At least it's showing you the ^M. I spent far too long trying to figure that out one day. [19:15] Guest63556: Tobbe assets typically dont need sessions, so either add app.use(express.favicon(path)) to the top of your middleware config [19:15] Guest63556: or [19:16] Guest63556: add the static() middleware above session() and add a favicon [19:16] Tobbe: static is at the very bottom right now, so I guess I could just move it higher up [19:16] liquidripples: bwinton - how did you fix it? I don't want to spend half a day... [19:17] liquidripples: i'm on a mac [19:17] mark_: ACTION  [19:17] bwinton: liquidripples: I wasn't using Node, I used "vi -b". dos2unix should also work. [19:19] jocafa: ACTION pets vim [19:19] bluesmoon has joined the channel [19:20] mraleph has joined the channel [19:20] liquidripples: oof i've done :set fileformat=unix but then was getting a env: python\r: No such file or directory [19:20] Me1000 has joined the channel [19:21] liquidripples: i feel like i've done something silly - why wouldn't it come with proper line endings out of the hub? [19:21] zeade has joined the channel [19:22] stash1: might have to do with whoever committed it [19:22] liquidripples: I mean the guy is using a mac in the intro video [19:22] bwinton: liquidripples: Well… That's a good question. I think the answer basically boils down to "line endings are hard". [19:22] liquidripples: my brain hurts [19:22] liquidripples: jk [19:22] stash1: there's the autocrlf setting for git too [19:23] Me1000 has joined the channel [19:24] eldios has joined the channel [19:24] pyrony has joined the channel [19:25] aaronmcadam has joined the channel [19:25] jhbot has joined the channel [19:25] tjholowaychuk has joined the channel [19:25] robertfw has joined the channel [19:26] darinc has joined the channel [19:27] xy has joined the channel [19:29] springmeyer has joined the channel [19:29] JSManiacs has left the channel [19:30] mikl has joined the channel [19:31] FireCat has joined the channel [19:34] gut4 has joined the channel [19:34] dob_ has joined the channel [19:34] cafesofie has joined the channel [19:34] dob_: hello [19:35] dob_: anybody with knowledge about mongoose here? [19:35] technoweenie has left the channel [19:35] dob_: i need some help [19:35] jmar777 has joined the channel [19:35] dob_: i want to create a reference to a user object. How can i set this in mongoose's model? [19:35] hij1nx has joined the channel [19:36] DrMcKay: dob_: {type: mongoose.Schema.ObjectId, ref: 'User'} [19:37] jbpros has joined the channel [19:38] jocafa has left the channel [19:38] shipit has joined the channel [19:38] softdrink has joined the channel [19:39] vampi-the-frog has joined the channel [19:39] vampi-the-frog has joined the channel [19:39] softdrink has joined the channel [19:40] r04r: npm is giving me "gzip: stdin: unexpected end of file", with the line above that "fetching: " (blank). Any ideas? [19:40] ppcano has joined the channel [19:40] AAA_awright: ...don't use npm? [19:40] madsleejensen has joined the channel [19:40] dmsuperman has left the channel [19:40] FireFly has joined the channel [19:40] TheJH: r04r, can you gist the whole output of npm? [19:40] r04r: AAA_awright: That's an idea. [19:41] StanlySoManly has joined the channel [19:41] isaacs: ircretary: inst r04r [19:41] ircretary: r04r: `curl http://npmjs.org/install.sh | sh` (or, if there are permission issues, you can try: `curl http://npmjs.org/install.sh | sudo sh`) [19:41] isaacs: r04r: you should update [19:41] r04r: https://gist.github.com/1262577 [19:41] jocafa has joined the channel [19:41] r04r: I should've mentioned that the error is given when trying to install, my bad [19:41] isaacs: oh, well, that's just oddball then [19:41] isaacs: can you pipe it to npm_debug=1 sh? [19:42] isaacs: curl http://npmjs.org/install.sh | npm_debug=1 sh [19:42] ppcano_ has joined the channel [19:42] d_low has joined the channel [19:42] r04r: set: 1: Illegal option -o pipefail [19:42] jetienne_ has joined the channel [19:43] isaacs: r04r: | npm_deub=1 bash, then [19:43] isaacs: er, npm_debug=1 bash [19:43] isaacs: sorry, should have mentioned that the debug options require bash or zsh [19:43] isaacs: that'll dump way more output about what it's doing [19:43] ppcano has joined the channel [19:43] r04r: https://gist.github.com/1262588 [19:45] Jippi has joined the channel [19:45] r04r: sed [19:45] r04r: wrong window [19:45] springmeyer_ has joined the channel [19:46] liquidripples: thanks for the help hopefully it was just the autocrlf setting. Line endings are hard [19:47] r04r: looks like curl isnt accepting the certificate it outputs in cafile.crt [19:47] __sorin__ has joined the channel [19:47] pvgrif has joined the channel [19:48] catshirt: should i report an npm ERR on github like it suggests? im pretty sure im just doing something wong [19:48] isaacs: catshirt: sure. [19:49] jetienne_ has joined the channel [19:49] isaacs: r04r: ah, there you go [19:49] r04r: Im actually not sure yet. /tmp/npm.7038/cafile.crt seems to have proper content [19:49] r04r: though it starts and ends with a linebreak. Is it supposed to be like that? [19:49] isaacs: r04r: maybe you have an outdated version of curl? or, you can edit the script to just accept self-signed certs instead [19:49] catshirt: ty! [19:49] isaacs: r04r: yeah, that should be fine [19:50] neilk_ has joined the channel [19:50] r04r: Curl should be the latest in the debian repo I'm using :/ But yeah, I'll edit the script to do that [19:50] isaacs: r04r: or you could add my CA cert to your system's keychain, however that's done [19:51] isaacs: r04r: then you can also go to urls like https://registry.npmjs.org/-/fields and see a green lock instead of a red x [19:52] ewj has joined the channel [19:52] r04r: The system's not on my local machine :P But the install worked now with editing the script. Thooouuugh, I am getting SSL errors from node now :/ "Error: SSL Error: undefined" [19:54] r04r: https://gist.github.com/1262613 is the entire log [19:54] mc_greeny has joined the channel [19:54] Sly__: isaacs, working on jslinting everything, then going to make another pull request for them. [19:54] Sly__: Editing the tests as well. [19:55] TheJH: uah, I'm really bad at this. How to make a Handle out of/for a Buffer so that I can attach it to an array and return it? [19:55] colinclark has joined the channel [19:55] TheJH: cc bnoordhuis [19:56] isaacs: TheJH: you mean my_buffer_obj->handle_? [19:56] bnoordhuis: TheJH: you mean a->Set(0, buf->handle_)? [19:56] isaacs: like that? [19:56] bnoordhuis: heh, great minds [19:56] TheJH: thanks :) [19:56] isaacs: r04r: that's odd. you shouldn't be able to get a SSL auth failure without a reason. [19:56] isaacs: r04r: maybe try setting `strict-ssl = false` in your ~/.npmrc file [19:57] isaacs: r04r: though, that meanst hat you won't be validating ssl certs, which is inherently insecure [19:57] randylien has joined the channel [19:57] isaacs: r04r: you'll get crypto, but not validation [19:57] TheJH: translated error message: »class node::Buffer« has no member named »_handle« [19:58] isaacs: TheJH: handle_ not _handle [19:58] Sly__: lol. [19:58] TheJH: oops [19:58] Sly__: throw { name: 'MyCustomError', message: 'This is a custom message' }; [19:58] Sly__: When I take the semicolon off, jslint says it needs it. [19:58] isaacs: :) [19:58] Sly__: When I add it, it says it doesn't need it. [19:58] TheJH: it compiles :) [19:58] Sly__: Pretty funny. :x [19:58] isaacs: Sly__: why are you throwing a non-Error object? [19:58] isaacs: where is that? [19:58] r04r: isaacs: Will try. That's mostly fine because I just need a few npm packages and once I'm done npm will go again. FYI I just tested my own quick server setup and it seems the nodejs ssl implementation is working atleast [19:58] vicapow: as anyone considered the possibility of collisions with duplicate sessions and session data using connect? [19:58] Sly__: That's in test/message/throw_custom_error.js [19:58] jocafa: throw "fit"; [19:58] isaacs: oh, right :) [19:58] Sly__: When running `make jslint` [19:58] isaacs: hehe [19:59] mcantelon has joined the channel [19:59] isaacs: Sly__: try this: var er = { ... };\nthrow er; [19:59] isaacs: ie, assign to an object, then throw the obj [19:59] r04r: isaacs: Actually, the cafile.crt file is your public key? [19:59] isaacs: r04r: it's my CA pub key, yes [19:59] dob_: DrMcKay: Thanks i will try that [19:59] isaacs: http://npmjs.org/ca.crt [19:59] davegb3 has joined the channel [20:00] isaacs: though getting it from github etc. is more secure [20:00] goatlord has joined the channel [20:00] isaacs: since then you have cryptographically secure hashes of the commits that it's in, and those commits are signed with my personal pgp key [20:00] neekers has joined the channel [20:00] Sly__: Added it in, isaacs. Testing with jslint now. [20:00] isaacs: so, as long as you trust that *I'M* not evil, you can trust that https://registry.npmjs.org/ is legit [20:00] isaacs: and if i'm evil, you shouldn't use npm at all :) [20:00] vicapow: isaacs: damn [20:01] r04r: isaacs: But it's convenient [20:01] fly-away has joined the channel [20:01] isaacs: to be fair, you also have to trust that mikeal and JasonSmith aren't evil, since they both have admin access to the npm couchdb [20:01] neekers: i've been googling for tutorials for node.js and websockets and there are so many different libraries. can someone tell me what the latest or best practice library is for working with websockets? [20:01] isaacs: and can thus inject bad things int here. [20:01] r04r: uh oh [20:02] vicapow: neekers: socket.io [20:02] isaacs: and you have to trust the author of whatever packages you install. [20:02] isaacs: neekers: if you think you want websockets, you probably actually want socket.io [20:02] neekers: vicapow: thanks [20:02] fairwinds has joined the channel [20:02] TheJH: isaacs, do you maybe also know what could case a require-time error "undefined symbol: ev_default_loop_ptr"? [20:02] chilts: at least the good thing is that you can read their code before installing it :) [20:02] TheJH: *cause [20:02] chilts: which means if you've read it, you can trust it :D [20:03] TheJH: chilts, nah, you can hide backdoors in source code [20:03] eldios: if you wanted to create a crossplatfom *desktop* graphical application with a systray and some simple windows.. what would you use? ruby? python? java? since there's no nodejs out atm =) [20:03] TheJH: chilts, do you know the winner of that "make an area black but don't really delete the information in a PPM image" competition? [20:04] Sly__: No dice, isaacs. That method didn't work. [20:04] TheJH: eldios, apart from the systray, wouldn't chromium in application mode work? [20:04] r04r: Hm. Installing the certificate doesn't seem to help, and `strict-ssl = false` is now giving another error. `socket hang up` [20:04] isaacs: r04r: weird [20:04] r04r: ...And now it works. [20:05] isaacs: r04r: maybe the https client is just acting up? try registry = http://registry.npmjs.org/ maybe? [20:05] isaacs: oh, ok [20:05] isaacs: great :) [20:05] eldios: TheJH, I'll go check it =) [20:05] eldios: thanks for the hint.. any other hint would be appreciated [20:05] r04r: I think my system is cursed. Thanks a ton, though! [20:05] te-brian2 has joined the channel [20:06] DrMcKay: isaacs: download npm package from npm registry [20:06] DrMcKay: gah, not isaacs [20:06] chilts: TheJH: Mmmm, which competition? [20:06] DrMcKay: r04r: ^ [20:06] DrMcKay: r04r: I believe that it's a simple tar gz, it contains npm [20:06] DrMcKay: r04r: you should be able to install it from this tarball, using npm in this tarball [20:07] r04r: Actually I'm getting socket hangup for trying to install forever, but express works. [20:07] vidi has joined the channel [20:07] isaacs: yeah, r04r you could always just download the tarball from https://registry.npmjs.org/npm/-/npm-1.0.93.tgz [20:07] TheJH: chilts, http://underhanded.xcott.com/?p=12 , scroll down to "And the winner: John Meacham" - "In short, the dude replaces numbers with zeroes on the character level. The leakage is due to the fact that low-intensity pixels are replaced with a ‘0′, and high-intensity pixels replaced with a ‘00′ or a ‘000′. This is completely invisible in the image itself." [20:07] isaacs: r04r: then run `make install` in the folder in there [20:07] springmeyer has joined the channel [20:07] tjholowaychuk: c;ear [20:07] tylerstalder has joined the channel [20:09] TheJH: anyone here who knows what could cause a require-time error "undefined symbol: ev_default_loop_ptr"? [20:09] JasonSmith: isaacs: You have to trust that GitHub is not evil. And when you buy food you have to trust that the butcher did not poison it. And you have to trust that buildings are built to code so they won't collapse. [20:10] DrMcKay: TheJH: yes [20:10] DrMcKay: TheJH: you're using module compiled for a different version [20:10] JasonSmith: The point of CouchDB (just like Git) is not to be a trust silver bullet but to make digital trust work like *real-world* trust, that is, p2p and tacit [20:10] DrMcKay: most probably you're using module compiled for 0.5 with 04 [20:10] MooGoo: I dont trust shit in the real world [20:10] TheJH: DrMcKay, well, I just compiled it myself... gonna re-make and install node [20:10] r04r: *Ahem* I think I found my problem. The system clock was waaaay back. Syncing it and now everything works like a charm [20:10] DrMcKay: TheJH: nvm maybe? [20:11] TheJH: DrMcKay, maybe I should, but too lazy [20:11] johnwards has joined the channel [20:12] bradleymeck has joined the channel [20:12] guidocalvano has joined the channel [20:13] bnoordhuis: TheJH: ev_default_loop_ptr <- with 0.4.x or 0.5.x? [20:13] TheJH: bnoordhuis, 0.4.x, but might well be that there were rests of 0.5.x [20:14] bnoordhuis: TheJH: with 0.4.x you should compile with -DEV_MULTIPLICITY=0 [20:14] dmsuperman has joined the channel [20:14] nesQuick has joined the channel [20:14] TheJH: bnoordhuis, what does it do? [20:14] __sorin__ has joined the channel [20:15] TheJH: bnoordhuis, also, is that an argument for ./configure? [20:15] joshthecoder has joined the channel [20:15] bnoordhuis: TheJH: no, for your wscript [20:15] TheJH: ah, ok [20:15] bnoordhuis: err, this is with an add-on right? [20:15] TheJH: yes [20:15] __sorin__ has joined the channel [20:15] bnoordhuis: right, that's what i gathered [20:15] dmsuperman: How can I do Buffer.copy while simultaneously telling the target buffer that the source data is a base64 string [20:16] bnoordhuis: as to what it does, libev supports multiple event loops but node compiles without that [20:16] bnoordhuis: so if your add-on compiles with multi-loop support enabled, bad things will happen [20:16] TheJH: bnoordhuis, yaaay, I can require it :) [20:16] TheJH: dmsuperman, there's no encoding between buffers [20:17] dmsuperman: TheJH: What I mean to say is that I have a string buffer containing base64 encoded data in ascii format [20:17] dmsuperman: It's something like this: derpderp&a8sjdklfj2l389fgf+23jk23489xsf/892345jwer== [20:17] dmsuperman: I need to extract that base64 code off the end, which I'm currently doing using buffer.copy [20:18] Renegade001 has joined the channel [20:18] dmsuperman: And also tell the new buffer that it's stored in that the string is base64 and not just text [20:18] TheJH: dmsuperman, I think you'll have to do new Buffer(source.toString('ascii'), 'base64') [20:18] dmsuperman: TheJH: That misses the copy step though [20:19] dmsuperman: Which I need because I'm not copying the entire buffer [20:19] issackelly_ has joined the channel [20:19] dmsuperman: Only the part after & [20:19] TheJH: dmsuperman, yes, copy after that or whatever [20:19] avih_ has joined the channel [20:19] johnwards has joined the channel [20:19] dmsuperman: TheJH: then my buffer would have extra data in it... [20:19] bnoordhuis: dmsuperman: in = new Buffer(base64.slice(start), 'base64'), out = new Buffer(in) [20:20] bnoordhuis: dmsuperman: you can skip the out buffer, dunno why i added that [20:21] hij1nx has joined the channel [20:21] ryanj has joined the channel [20:22] ousn has joined the channel [20:22] olivier2 has joined the channel [20:22] mynix has joined the channel [20:22] ryanj has joined the channel [20:24] CrisO has left the channel [20:24] JasonJS_ has joined the channel [20:24] jhurliman has joined the channel [20:25] TheJH: can I include a compiled library (.a file) in my node addon somehow? [20:25] dmsuperman: Thanks bnoordhuis :) [20:25] TheJH: or should I just include its source? [20:25] JKarsrud: hi there :) [20:25] bnoordhuis: dmsuperman: my pleasure [20:25] bnoordhuis: TheJH: you can link in the .a but preferably you'd bundle the source [20:26] _sorin_ has joined the channel [20:26] bnoordhuis: TheJH: look at how e.g. node-iconv does it [20:26] guillermo has joined the channel [20:26] TheJH: bnoordhuis, I would bundle the source, but the librarys compile code first compiles it, then benchmarks, then generates aliasing include files, and then my node lib can be compiled [20:27] TheJH: *libraries [20:27] AvianFlu_ has joined the channel [20:27] iammerrick has joined the channel [20:29] JKarsrud: Can anyone help me with something? I'm trying to write some authentication for my app, but when I add the user object to the session, it fails with a "TypeError: Converting circular structure to JSON". [20:29] JKarsrud: This is in express, and I'm using req.session.user = userFromCallback, which gives me a circular reference [20:29] JKarsrud: though I don't understand _why_ it does that [20:30] franksalim_: JKarsrud: there is a circular reference in that object [20:30] franksalim_: which cannot be represented with json [20:30] guidocalvano has joined the channel [20:30] franksalim_: var l=[]; l.push(l); JSON.stringify(l); //produces that error [20:31] JKarsrud: hmm, ok [20:31] jldbasa has joined the channel [20:31] JKarsrud: I can't really see any circular references in my object, but I suppose there must be when Object.stringify complains [20:31] JKarsrud: I'll do it another way then =) [20:32] tjholowaychuk: JKarsrud yeah you probably dont want to store the whole user [20:32] tjholowaychuk: in a session anyway [20:32] JKarsrud: nah, you're probably right =) [20:32] slifty has joined the channel [20:32] JKarsrud: yeah, I saw that I would store the password (though hashed) too, soeh.. Thanks :) [20:33] Poetro has joined the channel [20:33] Poetro has joined the channel [20:35] Poetro has joined the channel [20:37] franciscallo1 has joined the channel [20:38] kulor-uk has joined the channel [20:39] hakunin has joined the channel [20:41] aconbere has joined the channel [20:41] TheJH: bnoordhuis, are these lines what I need for including .a files? https://github.com/joyent/node/blob/master/wscript#L935-936 [20:42] nibblebo_ has joined the channel [20:42] bnoordhuis: TheJH: no, that's cygwin specific [20:42] barce has joined the channel [20:43] barce: hi [20:43] dmsuperman has left the channel [20:43] CoverSlide: damn, 3 margaritas [20:43] CoverSlide: im hammered [20:44] jesusabdullah: nice. [20:44] bnoordhuis: TheJH: https://github.com/joyent/node/blob/master/wscript#L603-610 [20:45] TomY has joined the channel [20:45] scott_gonzalez has joined the channel [20:46] TheJH: bnoordhuis, where does that include a .a file? [20:46] mehlah has joined the channel [20:48] wilmoore has joined the channel [20:49] Wizek has joined the channel [20:49] bnoordhuis: TheJH: target = bld.env["staticlib_PATTERN"] % "v8" <- that line tells waf about libv8.a [20:49] bnoordhuis: you'll probably have to tweak the build clause since you won't actually be building the .a [20:49] flagg0204 has joined the channel [20:50] digman543 has joined the channel [20:50] ppcano has joined the channel [20:50] ppcano has joined the channel [20:50] TheJH: bnoordhuis, thanks, I'll try it [20:50] ppcano_ has joined the channel [20:53] ppcano has joined the channel [20:55] TomY has joined the channel [20:55] i42n has joined the channel [20:56] ctavan has joined the channel [20:59] CoverSlide: we need more tits in this channe; [21:00] gkatsev: ( . )( . ) [21:00] CoverSlide: thank you [21:00] gkatsev: you are welcome. [21:00] enmand_ has joined the channel [21:01] madsleejensen has joined the channel [21:02] rickharrison has joined the channel [21:02] joshkehn: (. )( .) [21:02] jesusabdullah: ಠ_ಠ [21:02] heavysixer_ has joined the channel [21:04] thalll has joined the channel [21:05] roccozanni has joined the channel [21:06] roccozanni has left the channel [21:07] neilk_ has joined the channel [21:08] stephenallred has left the channel [21:08] StanlySoManly has joined the channel [21:08] Nuck: I would like to propose that any Node Conventions be named CancerFests from now on [21:09] andy has joined the channel [21:09] jesusabdullah: NOPE [21:09] joshkehn: Pass. [21:09] jesusabdullah: [denied] [21:10] balgarath: extra cancer for me, please! [21:11] robi42 has joined the channel [21:11] Renegade001 has joined the channel [21:12] __sorin__ has joined the channel [21:13] jesusabdullah: [denied][denied][denied] We don't need people yelling about "cancer" in a place that's not /b/ [21:13] jesusabdullah: we really don't :( [21:14] Morkel has joined the channel [21:14] CoverSlide: alias cancer=node [21:14] jesusabdullah: ಠ_ಠ [21:14] jesusabdullah: ;) [21:14] bingomanatee_: Would be that Node had the rapid adoption and solid track record that Cancer does. [21:15] tylerstalder has joined the channel [21:15] bingomanatee_: Unfortuantely we are still at the Chlamydia level. [21:15] dominicbarnes has joined the channel [21:15] CoverSlide: when do we get to AIDS level? [21:16] bingomanatee_: .NET == AIDS [21:16] bingomanatee_: You can't get rid of it or prevent it from spreading but you can manage it with a superhuman amount of maintenance. [21:16] TheJH: bingomanatee_, makes it easier for other software on the users PC because it sucks? [21:16] wadey has joined the channel [21:16] r04r: So... More issues with my sheevaplug ARM processor. Node has compiled, my code is running ,but some callbacks dont seem to be executed. The exact same code works on another system :s [21:17] CoverSlide: and drugs [21:17] ppcano has joined the channel [21:17] CoverSlide: i only code on heroin [21:17] amk has joined the channel [21:17] amk has left the channel [21:18] randylien has joined the channel [21:19] wadey has joined the channel [21:19] augustl: is there a way to make a link to the node documentation's current version? [21:19] augustl: http://nodejs.org/docs/v0.4.12/api/http.html has 0.4.12 hardcoded into it [21:19] amk221 has joined the channel [21:19] augustl: need something like http://nodejs.org/docs/api/http.html [21:19] mike5w3c_ has joined the channel [21:20] errordeveloper: hm .. if i do 'require('optimist).argv;', I'll get all arguments as globals vars, right? [21:20] r04r: augustl: http://nodejs.org/docs/latest/api/ [21:20] CoverSlide: make docs [21:20] amk221 has joined the channel [21:20] errordeveloper: i.e. '--test_me' will be 'test_me'? [21:20] bingomanatee_: that is unhealthy august - so many versions out, and the "head" (5.x) is not the stable version. [21:21] bingomanatee_: At least with Latest you have an implied version target. [21:21] dominicbarnes: hey everyone, I have a weird problem piping an http.ClientRequest (as a ReadableStream) into a fs.createWriteStream on my local filesystem [21:22] davidbanham has joined the channel [21:22] dominicbarnes: for whatever reason, the output file is always larger (50-100% larger) than the source file [21:22] augustl: r04r: thanks! [21:22] markwubben has joined the channel [21:24] perezd has joined the channel [21:25] shinuza has joined the channel [21:27] amk221: If using socket.io to create an interactive website, is it possible to use jade to render the views on the fly, rather than having to rely on page request? [21:27] CoverSlide: Roary!! The racing car!! [21:27] CoverSlide: Roary!! My number one star!! [21:27] Renegade001 has joined the channel [21:28] AphelionZ has joined the channel [21:28] tjholowaychuk has joined the channel [21:29] _sorin_ has joined the channel [21:29] jellosea has joined the channel [21:29] CIA-48: libuv: 03Ben Noordhuis 07master * r8e9a338 10/ (14 files in 5 dirs): [21:29] CIA-48: libuv: unix: implement kqueue file watcher API [21:29] CIA-48: libuv: kqueue fds are not embeddable into other pollsets (select, poll, kqueue). [21:29] CIA-48: libuv: Hack the libev event loop to receive kqueue events with filter flags intact. - http://git.io/c765kw [21:29] jellosea: hey how do i exit with a posix return code in node? [21:29] davidbanham: amk221: Not entirely sure, haven't spent much time with socket.io. As a fallback, though, you can do browser-side Jade. [21:29] bnoordhuis: jellosea: process.exit(1)? [21:29] broofa has joined the channel [21:29] CoverSlide: process.exit(code) ? [21:29] brianc has joined the channel [21:29] amk221: ah, I can? that's what I want. cool. Couldn't see how. [21:30] CoverSlide: damn, too slow [21:30] jellosea: oh okay thanks [21:30] gkmngrgn has joined the channel [21:30] jmoyers has joined the channel [21:30] ctavan has joined the channel [21:32] neilk_ has joined the channel [21:32] randylien has joined the channel [21:36] sorin has left the channel [21:37] joshgillies has joined the channel [21:39] lz has joined the channel [21:40] lz: sup all [21:40] skiz has joined the channel [21:40] innociv: Hey [21:40] neilk_ has joined the channel [21:43] sdwrage has joined the channel [21:43] innociv: How do I get the url from where someone is connected in socket.io? Like on express there is req.url. [21:44] CIA-48: libuv: 03Ryan Dahl 07ipc * r0d20e0e 10/ src/unix/stream.c : [21:44] CIA-48: libuv: unix: return UV_UNKNOWN_HANDLE when read2 doesn't recv one [21:44] CIA-48: libuv: unix passes ipc test on this comment. - http://git.io/6IVtUg [21:45] stepheneb has joined the channel [21:46] smathy: innociv… did you ask in #socket.io ? [21:47] superlinh has joined the channel [21:47] djazz has joined the channel [21:47] innociv: Oh, nope. Didn't know about it. [21:47] ewj_ has joined the channel [21:47] djazz: how does the zlib module work? how can I uncompress data? [21:48] djazz: is it in _buffer? [21:48] robi42 has joined the channel [21:48] r04r: Is there any reason why the data event would be fired before the connected event on a tls socket? [21:49] bnoordhuis: r04r: how / where are you seeing that? [21:50] perezd has joined the channel [21:50] smathy: djazz… are you aware of the docs here: https://github.com/kkaefer/node-zlib [21:51] r04r: bnoordhuis: Connection callback and a listener on the data event I get data->connected->data->data->etc. The connected is like 3 seconds after the first data. [21:51] djazz: smathy, no, the native zlib module [21:51] djazz: http://nodejs.org/docs/v0.5.8/api/zlib.html [21:51] CoverSlide: native zlib? [21:51] dominicbarnes has left the channel [21:52] bnoordhuis: djazz: you'll have to read the source from now [21:52] djazz: i have a string of binary data that i want to decompress [21:52] djazz: ok [21:52] bnoordhuis: CoverSlide: we ship zlib + bindings in master [21:52] djazz: :P [21:52] smathy: djazz… oh, in 0.5 [21:52] bnoordhuis: r04r: can you turn that into a test case? [21:52] CoverSlide: :o and you're not getting sued??? [21:52] CoverSlide: wow [21:53] mikeric has joined the channel [21:53] bnoordhuis: err... did i miss something? [21:53] CoverSlide: sorry [21:53] CoverSlide: some things make sense in my head [21:53] CoverSlide: not necessarily when typing [21:53] saikat has joined the channel [21:54] r04r: bnoordhuis: I'm not sure how to do that, to be honest. [21:54] bnoordhuis: r04r: a standalone script that demonstrates the behaviour, with no dependencies on third-party modules [21:55] r04r: bnoordhuis: Ah, sure. I'll get to that tomorrow if I haven't figured it out by then [21:56] SargoDarya has joined the channel [21:57] SargoDarya: hey guys, any idea on how to run nodemon as a daemon? [21:57] ecin_ has joined the channel [21:59] inpho has joined the channel [22:00] ambroff has joined the channel [22:01] ecin has joined the channel [22:05] metellus has joined the channel [22:06] daed has joined the channel [22:06] k1ttty has joined the channel [22:07] webmaestra has joined the channel [22:08] davidbanham has joined the channel [22:08] webmaestra has left the channel [22:09] tylerstalder has joined the channel [22:10] replore has joined the channel [22:10] replore_ has joined the channel [22:10] dreamdust1 has left the channel [22:10] stagas: yay new lib https://github.com/stagas/simpl [22:11] CoverSlide: ?? how is this simpler than net? [22:12] felixhummel has joined the channel [22:14] wadey has joined the channel [22:14] czarizard_ has joined the channel [22:15] blup has joined the channel [22:16] jmar777 has joined the channel [22:17] AddZero has joined the channel [22:18] blup_ has joined the channel [22:19] Tobbe: I have "res.local('error', 'some error'); return exports.edit(req, res);" in one of my route paths. Then in exports.edit I do "console.log(res.locals.error)" and that gives me "undefined". Why? I was expecting "some error" [22:19] Tobbe: (this is expressjs) [22:20] darshanshankar has joined the channel [22:21] tjholowaychuk: Tobbe 2.x uses res._locals internally, res.locals({ object of locals }) merges into that [22:21] sfoster has joined the channel [22:21] tjholowaychuk: but in 3.x res.locals is a function, but the props will be stored on the function [22:21] tjholowaychuk: locals are for the template though [22:22] tjholowaychuk: there's usually no need to access them other than in a template [22:22] dreamdust has joined the channel [22:23] Tobbe: tjholowaychuk: I'm using 2.4.6 [22:23] tjholowaychuk: yeah, 3.0 is not done [22:23] djazz has left the channel [22:24] Tobbe: so how should I access my locals? (for debug printouts) [22:24] tjholowaychuk: in a template you could just do (with ejs for example) <% console.log(locals) %> [22:24] tjholowaychuk: jade: - console.log(locals) [22:27] Tobbe: can I automatically make the locals "globals" instead? so I can use foobar instead of locals.foobar? [22:27] EvRide has joined the channel [22:27] CoverSlide: just stick it on the req object [22:27] janne has joined the channel [22:27] tjholowaychuk: Tobbe that's what they are [22:27] CoverSlide: it gets passed down through your middleware like normal [22:27] tjholowaychuk: Tobbe you dont need to do locals.foo [22:29] gut4 has joined the channel [22:29] AvianFlu has joined the channel [22:29] neilk_ has joined the channel [22:31] Tobbe: tjholowaychuk: not working. console.log(res._locals) prints { error: 'some error' }. p= locals gives me [Object object] in my view, p= error and p= locals.error are both blank [22:31] erichynds has joined the channel [22:32] tjholowaychuk: Tobbe error should certainly be there then [22:32] tjholowaychuk: not much i can do without seeing code [22:32] Tobbe: I'll paste it up for you, how much do you need? [22:32] CoverSlide: try p=error [22:33] CoverSlide: oh [22:33] CoverSlide: wtf [22:33] sonnym has joined the channel [22:33] brion has joined the channel [22:33] tjholowaychuk: Tobbe sounds like they're not merging with res.render() locals for some reason, might be worth doing a quick step through with the debugger [22:33] CoverSlide: i need to actually read more than one line before I respond [22:33] tjholowaychuk: perhaps some plugin you're using [22:33] tjholowaychuk: is messing with it [22:33] tjholowaychuk: i dont have time to look at it right now but ping me later [22:34] jocafa: https://github.com/dannycoates/node-inspector [22:35] Tobbe: tjholowaychuk: looking at - console.log(locals) tells me that it is merging, i.e. error is in there, but it's value is "undefined" [22:35] tjholowaychuk: right [22:35] r0nn1l has joined the channel [22:35] tjholowaychuk: hm :s [22:36] githogori has joined the channel [22:36] Tobbe: tjholowaychuk: I'm off to bed, I'll ask you some other time [22:36] Tobbe: thanks for your help this far :) [22:36] tjholowaychuk: later [22:36] innociv: http://nodejs.org/docs/v0.3.1/api/url.html There is nothing that gets the path name but not the file name? [22:37] CoverSlide: try the `path` module [22:37] innociv: require('url').parse("example.org [22:37] innociv: oops [22:37] innociv: meant to hit backspace [22:37] dynacker: preference on couchdb vs mongodb? [22:38] CoverSlide: they're the exact same [22:38] CoverSlide: flip a coin [22:38] nerdy_ has joined the channel [22:38] levi: Do you prefer couches or mongols? [22:39] schwab has joined the channel [22:39] jocafa: text files and raw memory like a boss [22:39] jocafa: actually screw the files. persistence is for rubes [22:39] jocafa: ¬¬ [22:39] CoverSlide: mongo only pawn in game of life [22:39] Wizek-other has joined the channel [22:40] DrMcKay has joined the channel [22:40] jbpros_ has joined the channel [22:40] kmwallio has joined the channel [22:40] bingomanatee_: levi: controversial question - has a lot to do with use case. [22:41] enmand_ has joined the channel [22:43] bingomanatee_: as a very very shallow rule, couch is probably better for strongly rest-centric work, mongo has more flexible system of queries, and for logging - but there are so many other variables that its really not easy to declare either system to be universally better or worse - they share some of the same strengths. [22:43] levi: No, I mean do you prefer the things you sit on or the people from Mongolia? It was a silly attempt at a joke. [22:43] joshkehn has joined the channel [22:43] CoverSlide: :o [22:43] innociv: CoverSlide, a little wonky but got me what I needed. Thanks. [22:43] bingomanatee_: I like CoverSlide's joke better. [22:44] CoverSlide: if i make a library for mongo, I must call it candygram [22:44] bingomanatee_: That would be a good name for a REST broker for Mongo. [22:44] innociv: to get the hostname+dir i used "nodeUrl.parse(socket.handshake.headers.referer).hostname + nodePath.dirname( nodeUrl.parse(socket.handshake.headers.referer).pathname )" [22:44] levi: I admit I am not much of a comedian. [22:44] bingomanatee_: yes you are bad at it [22:45] levi: Thanks for pointing that out. You're a swell guy. [22:46] Destos has joined the channel [22:47] smathy: Persistence is for pessimists. [22:47] CoverSlide: I also have about 3 margaritas in me [22:47] CoverSlide: well, 2 now [22:47] willwhite has joined the channel [22:48] igl has joined the channel [22:48] tjd has joined the channel [22:48] bingomanatee_: Have some asparagus between each maragarita [22:48] bingomanatee_: it will help in benchmarking your digestive system. [22:49] perezd has joined the channel [22:53] Me1000 has joined the channel [22:53] davidbanham has joined the channel [22:54] matjaz has joined the channel [22:54] nibblebo_ has joined the channel [22:55] zeade has joined the channel [22:56] Sorella has joined the channel [22:56] trotter has joined the channel [22:56] alexh has joined the channel [22:57] scottschecter has joined the channel [23:02] rcaskey has joined the channel [23:02] smathy: LOL :) [23:03] smathy: I could totally go a margarita, and some asparagus. [23:03] erichynds has joined the channel [23:04] [[zz]] has joined the channel [23:05] cronopio has joined the channel [23:05] tjholowaychuk has joined the channel [23:05] halcyon918 has joined the channel [23:06] tjholowaychuk has joined the channel [23:06] secoif has joined the channel [23:07] rjack has joined the channel [23:07] halcyon918: hey folks, anyone have any experience with amqp? I'm seeing the exchange created in RabbitMQ (although the callback doesn't get triggered), but the Queue isn't created. I have debugged through the code with the profile and I can see each call being executed (create exchange, create queue, subscribe to queue, etc), but after creating the exchange, nothing else seems to take... [23:08] Aiden has joined the channel [23:10] xtianw has joined the channel [23:10] KaL_ has joined the channel [23:13] daed has joined the channel [23:14] jonrohan has joined the channel [23:15] JaKWaC has joined the channel [23:16] mikeric has joined the channel [23:17] creationix has joined the channel [23:18] robotmay has joined the channel [23:18] zeade has joined the channel [23:20] JaKWaC_ has joined the channel [23:22] AddZero has joined the channel [23:22] franksalim_: halcyon918: i have experience with amqp (but not with the node package). can you run rabbitmqctl list_queues? can you see the wire traffic (with wireshark, for instance)? [23:22] joshkehn has joined the channel [23:23] halcyon918: franksalim_ I'm looking at the rabbitmq management console (web) and it shows only the default queues [23:23] joshkehn has left the channel [23:23] halcyon918: franksalim: I haven't tested to see if the call to create the queues is being made, but the call to create the exchange goes through [23:24] franksalim: halcyon918: i would look at the wire traffic to make sure the create queue command is coming out of your client [23:24] franksalim: or just assume that it isn't [23:24] nibblebot has joined the channel [23:24] Druide has joined the channel [23:24] franksalim: and try to create the queue from another client to see that work [23:25] halcyon918: well, it'a all localhost... I can try manually creating the queue through the web admin, I suppose [23:25] Dmitrijus: franksalim: actually, just try to create it from teh management console [23:25] Dmitrijus: franksalim: may be a permission problem [23:26] brianseeders has joined the channel [23:26] halcyon918: franksalim: making it through the console works, apparently [23:26] franksalim: Dmitrijus: it could be a permission problem, but i wouldn't expect that with default configuration [23:27] franksalim: Dmitrijus: so i expect it is an API usage problem [23:27] Dmitrijus: franksalim: oh, sorry, it's halcyon918 :) [23:27] halcyon918: Dmitrijus: np :) [23:27] halcyon918: I just took the examples from https://github.com/postwait/node-amqp [23:28] halcyon918: strangely, the callback functions don't fire, even for the exchange call, which does get created successfully [23:28] errordeveloper: isaacs: hm .. I can see that not all packages have a repo entry, e.g. http://search.npmjs.org/#/qs [23:28] isaacs: errordeveloper: that's true [23:29] errordeveloper: isaacs: hence not all can be installed as submodules, can't this be fixed ? [23:29] franksalim: Dmitrijus: that's ok :) [23:29] isaacs: errordeveloper: send the author a pull request and bug them to publish it [23:29] isaacs: (assuming you can find their git repo) [23:29] Isaiah has joined the channel [23:29] isaacs: errordeveloper: if you can't find it, then email them [23:29] errordeveloper: isaacs: ah, that's right :) [23:30] Dmitrijus: franksalim: also, try retasting rabbitmq, it's actually quite buggy [23:30] Dmitrijus: again, halcyon918 :) [23:30] halcyon918: heh... ok [23:30] Dmitrijus: restarting [23:30] indexzero has joined the channel [23:30] Dmitrijus: halcyon918: and if you just need simple messaging, zeromq might be a lot better choice :) [23:31] franksalim: Dmitrijus: I'll restart my rabbit instance for solidarity [23:31] tjd has left the channel [23:31] errordeveloper: isaacs: another thing .. I keep getting errors like this - https://gist.github.com/1263151 [23:31] halcyon918: Dmitrijus: well, simply for a prototype would be ok, but I need to do a load test with some business rules [23:33] AphelionZ has joined the channel [23:34] halcyon918: Dmitrijus: restarting didn't help... I'll have to do like franksalim suggested and make sure the actual call is being made [23:36] errordeveloper: isaacs: ok, yeah .. I should complain to GH perhaps, if I were to maintain the npm registry I would just `sed 's:https\://github.com/:http\://github.com/'` [23:40] enmand_ has joined the channel [23:42] joshkehn has joined the channel [23:42] joshkehn has left the channel [23:43] rchavik has joined the channel [23:43] rchavik has joined the channel [23:44] CIA-48: libuv: 03Ryan Dahl 07master * rb590e12 10/ src/unix/darwin.c : Fix darwin build - http://git.io/EjxAvw [23:45] eb4890 has joined the channel [23:45] halcyon918: https://github.com/postwait/node-amqp/blob/master/amqp.js [23:45] halcyon918: search for "Connection.prototype.queue" [23:46] halcyon918: Do those arguments look correct? [23:46] errordeveloper: isaacs: nevermind .. i think this really to do with something else in fact [23:47] halcyon918: I wish I could get my profiler into the library to set breakpoints... hmmm.. [23:48] CIA-48: libuv: 03Erick Tryzelaar 07master * r65fa887 10/ src/win/udp.c : win: Fix error message. - http://git.io/GmJ3dg [23:48] CIA-48: libuv: 03Erick Tryzelaar 07master * re3f2631 10/ (4 files in 3 dirs): unix: bad connect addresses should error with EINVAL - http://git.io/bw-ILQ [23:48] CIA-48: libuv: 03Erick Tryzelaar 07master * r85368e8 10/ (src/unix/tcp.c src/uv-common.c src/uv-common.h src/win/tcp.c): unix,win: Start unifying shared tcp connect code. - http://git.io/PiKjZA [23:48] CIA-48: libuv: 03Erick Tryzelaar 07master * r4c32906 10/ (6 files in 3 dirs): unix,win: Start unifying shared bind code. - http://git.io/NpMHeg [23:48] CIA-48: libuv: 03Erick Tryzelaar 07master * r0303197 10/ src/win/udp.c : [23:48] CIA-48: libuv: win: unify uv_{tcp,udp}_set_socket. [23:48] CIA-48: libuv: Fixes #205. - http://git.io/A7X5cg [23:50] skiz has joined the channel [23:50] willwhite has joined the channel [23:50] skiz has joined the channel [23:52] pandeiro has joined the channel [23:52] towski has joined the channel [23:53] darshanshankar has joined the channel [23:55] Murvin has joined the channel [23:56] CIA-48: node: 03Ryan Dahl 07master * r627f379 10/ (31 files in 8 dirs): upgrade libuv to 0303197 - http://git.io/cekMoQ [23:58] inpho has joined the channel [23:59] neurodrone has joined the channel [23:59] zivester has joined the channel