<   August 2012    >
Su Mo Tu We Th Fr Sa  
          1  2  3  4  
 5  6  7  8  9 10 11  
12 13 14 15 16 17 18  
19 20 21 22 23 24 25  
26 27 28 29 30 31
00:01 knkumar joined
00:01 <exien> ccowan: I will try that now
00:02 <ccowan> exien: in there you need to do a res.send() or res.render()
00:02 <exien> ccowan: yeah, I'll try res.send(500);
00:02 <exien> brb
00:03 exien joined
00:04 monadd joined
00:04 joshwnj` joined
00:06 <exien> ccowan: no dice, but it shows up as an uncaught exception
00:06 <exien> from process.on('uncaughtException'
00:08 mirzu joined
00:08 samholmes joined
00:08 <samholmes> Do I have to install the latest version of Node on windows and will it break my apps?
00:09 Hoppertje joined
00:09 <chilts> samholmes: from what version are you upgrading from?
00:09 rwaldron joined
00:09 <samholmes> chilts: 6 I think
00:10 <chilts> v0.6.x ???
00:10 <samholmes> yeah
00:10 <chilts> in which case, take a look at the docs saying the changelog from v0.6.x to v0.8.x :)
00:10 <samholmes> 0.6.12
00:10 <chilts> then decide for yourself if it will break anything
00:10 <samholmes> chilts: But is it necessary for bcrypt?
00:10 <chilts> generally you should be ok, but there have been changes
00:10 <chilts> samholmes: that's for you to decide - I have no idea of your use-case
00:11 <samholmes> https://github.com/ncb000gt/node.bcrypt.js/
00:11 <Hoppertje> when i try to "overload" node.js my windows taskmanager says node.js is only taking 13% of my cpu... is that a false reading or do i need allow node to use more cores ?
00:11 <samholmes> "Windows users should make sure to have at least node 0.8.5 installed and version >= 0.7.1 of this module."
00:11 <chilts> well, he's probably put that there for a reason and he's also probably best placed to know why :)
00:11 <chilts> really, if the maintainer says so, why are you asking other less qualified people :D
00:12 <chilts> I really don't know
00:12 <samholmes> good point
00:12 <Hoppertje> does anybody know?
00:13 <samholmes> where's the changelog?
00:13 dguttman joined
00:13 <samholmes> Hoppertje: Yes
00:14 <Hoppertje> samholmes: is there a way to use all the cores?
00:14 <samholmes> Hoppertje: Idk
00:14 <Hoppertje> ...
00:14 Emmanuel` joined
00:14 <maxogden> Hoppertje: http://nodejs.org/api/cluster.html
00:15 <Hoppertje> alright, thanks
00:16 dguttman joined
00:17 Hoppertje left
00:17 <CIA-1> node: 03Bert Belder 07v0.8 * r2418434 10/ lib/child_process.js : windows: fix single-accept mode for shared server sockets - http://git.io/LATKjw
00:17 tlack left
00:18 daffl joined
00:18 jergason joined
00:18 emjayess joined
00:19 jergason_ joined
00:20 mirzu joined
00:20 ForceBlast joined
00:22 timest joined
00:23 <samholmes> How do I upgrade node.js version?
00:23 <samholmes> Run the installer?
00:23 <samholmes> How do I upgrade on my linux server?
00:25 ryanallenbobcat joined
00:26 ryanallenbobcat left
00:27 <samholmes> "node-waf was unexpected at this time." when installing brcrypt on windows.
00:27 <samholmes> Fuck node-waf. -.-
00:27 breck joined
00:27 <samholmes> Either that, or fuck windows.
00:27 aslant joined
00:28 <substack> gyp
00:28 <samholmes> gyp?
00:28 <substack> is the good one
00:28 <samholmes> gyp is something?
00:28 <substack> that works on winders
00:28 <samholmes> Ah
00:28 mirzu joined
00:28 yawnt joined
00:28 <samholmes> But, bcrypt is using node-waf
00:28 <samholmes> I have to fork bcrypt then modify it to use gyp then?
00:28 <samholmes> FML
00:29 ericelliott joined
00:29 <TooTallNate> samholmes: bcrypt uses node-gyp
00:29 <samholmes> TooTallNate: That's not what the console is telling me. :\
00:29 <TooTallNate> what version of crypt?
00:30 <samholmes> http://pastie.org/4600513
00:30 hackband joined
00:30 eugeneware joined
00:31 plato joined
00:31 plato joined
00:32 <LuckySMack> anyone in here use/maintain hook.io? I am getting this error when installing on windows: C:\Program Files (x86)\nodejs\node_modules\hook.io\node_modules\weak\build\weakref.vcxproj(1,643): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
00:32 taky1 joined
00:32 Sam4242 joined
00:33 shadowshell joined
00:33 Ziggy` joined
00:33 <samholmes> TooTallNate: Whatever version `npm install bcrypt` gives
00:33 <samholmes> TooTallNate: http://pastie.org/4600513 shows the version
00:34 <TooTallNate> samholmes: i think you need to update npm
00:34 <TooTallNate> 1.1.4 is kinda old
00:35 tjmehta joined
00:35 jocafa joined
00:35 <samholmes> TooTallNate: Do I run `npm install npm -g` or somethin?
00:36 <samholmes> Forgot how to update npm
00:36 <TooTallNate> samholmes: on windows? it's usually best to just update to latest node+npm using the .msi installer
00:37 <samholmes> TooTallNate: And on linux? I have a VPS
00:37 <TooTallNate> `npm install -g npm` is usually the way to go
00:37 <TooTallNate> on unixes
00:38 tmpvar joined
00:38 <samholmes> I see
00:38 maxani joined
00:39 <samholmes> Fuck credit companies for not accepting my applications and enabling me to get a Macbook for my work to pay their fat asses. >.<
00:39 <samholmes> TooTallNate: And to update Node itself on linux?
00:39 <TooTallNate> samholmes: i'd recommend the precompiled binaries
00:40 <TooTallNate> http://nodejs.org/dist/v0.8.8/
00:40 <samholmes> TooTallNate: where do I put these binaries?
00:40 schredder joined
00:40 <TooTallNate> anywhere
00:41 <TooTallNate> /usr/local is common
00:41 <samholmes> TooTallNate: node is not recognized now.
00:41 <samholmes> After I ran the msi
00:41 <TooTallNate> you probably need to close and re-open node
00:42 <TooTallNate> i mean the cmd window
00:42 <samholmes> I did
00:42 <samholmes> Maybe I have to restart
00:42 subbyyy joined
00:43 estebistec joined
00:43 <samholmes> brb
00:44 <nkuttler> has anybody here used piwik for server-side analytics tracking?
00:44 <CIA-1> node: 03Bert Belder 07master * r4822d78 10/ (29 files in 8 dirs): uv: upgrade to 621a4e3 - http://git.io/2l3fiw
00:45 neoesque joined
00:51 aheckmann joined
00:51 bakadesu joined
00:52 Zolrath joined
00:52 chieffancypants joined
00:52 shiawuen joined
00:53 nat3 joined
00:53 jerrysv_ joined
00:54 samholmes joined
00:55 meme joined
00:57 broofa joined
00:57 caolanm joined
00:58 yanush joined
00:58 <meme> is there anyone using https://github.com/nodejitsu/forever ? i installed, went to my app folder, and inserted the command: forever start -l forever.log -o out.log -e err.log app.js. everything went fine, but then i did forever stop app.js, then when i tried to restart, i got errors, such as error: log file /home/meme/.forever/forever.log exists. Use the -a or --append option to append log. what one should do to restart properlly forever?
00:58 sx joined
00:59 <jesusabdullah> meme: Come to #nodejitsu and show us some full log output, we can probably help you there
00:59 <meme> ok
00:59 scwh joined
00:59 <samholmes> I updated node and npm and now I get this error when installing bcrypt http://pastie.org/4600607
01:00 cliffano joined
01:00 langworthy joined
01:00 kevisazombie joined
01:01 <CIA-1> node: 03Bert Belder 07master * rbf16d92 10/ (231 files in 49 dirs): Merge branch 'v0.8' (+36 more commits...) - http://git.io/qnFafA
01:02 Sapr0 joined
01:03 etcetera joined
01:03 <TooTallNate> samholmes: gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
01:03 <TooTallNate> so do you have python installed?
01:03 <samholmes> TooTallNate: No. Why would I?
01:03 <TooTallNate> cause it's a dependency of node-gyp
01:04 <TooTallNate> https://github.com/TooTallNate/node-gyp#installation
01:05 sx joined
01:05 saikat joined
01:06 exien joined
01:06 addisonj joined
01:06 jbueza joined
01:07 <samholmes> Why is python required?
01:10 <nkuttler> samholmes: find /path/to/source/ -name *py
01:10 <samholmes> nkuttler: what does that do
01:10 <nkuttler> are you on windows?
01:10 <samholmes> nkuttler: yes
01:11 <nkuttler> it finds files that end in py
01:11 <samholmes> why do I want that?
01:11 <nkuttler> never mind, it seemed vaguely related to your question
01:13 abroner joined
01:13 <CIA-1> node: 03Bert Belder 07v8-trunk * r03c1968 10/ (338 files in 23 dirs): v8: update to 12390 - http://git.io/4DYNTQ
01:13 <CIA-1> node: 03Bert Belder 07v8-trunk * ree484a5 10/ (deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp): v8: reapply floating patches - http://git.io/LXeFxw
01:13 <CIA-1> node: 03jkummerow@chromium.org 07v8-trunk * r65d4dab 10/ (11 files in 3 dirs): Add a new API V8::SetJitCodeEventHandler to push code name and location to users such as profilers. - http://git.io/8V595g
01:14 abroner left
01:14 ryanfitz joined
01:15 <samholmes> http://pastie.org/4600607
01:16 <samholmes> Now that's the error I'm getting after installing python ^.
01:16 taky joined
01:16 tn joined
01:17 intripoon joined
01:17 comster404 joined
01:17 hillct joined
01:17 <comster404> anyone else getting an error with 8.8 when running "sudo ./configure" I get --- File "./configure", line 325 o['default_configuration'] = 'Debug' if options.debug else 'Release'
01:18 testingz0 joined
01:18 <piscisaureus_> comster404: use python 2.7
01:19 <comster404> ok
01:19 <testingz0> npmjs.org is...STABLE
01:19 testingz0 left
01:20 <piscisaureus_> samholmes: apparently node-gyp picks the wrong compiler (one that does not support x64).
01:20 <piscisaureus_> samholmes: report it to the node-gyp tracker. To work around it temporarily you can try installing the x86 version of node
01:21 trave joined
01:21 EvRide joined
01:21 igl1 joined
01:21 jonatas_oliveira joined
01:22 luckysmack joined
01:23 estebistec joined
01:24 gqbe joined
01:24 Yuffster_fun joined
01:24 a_suenami joined
01:25 <* gqbe> watches people's clients come and go
01:26 austinbv joined
01:26 pringlescan joined
01:27 <chylli> Is there a framework like rails on ruby on node.js ? or must I write app from 'createServer' ?
01:28 choo_ joined
01:28 <cliffano> chylli: check out http://geddyjs.org/
01:30 <drudge> chylli: railwayjs.com locomotivejs.org
01:30 gavin_huang joined
01:31 vvgomes joined
01:31 YoY joined
01:32 <chylli> thanks very much
01:32 Zipp joined
01:34 <Nuck> Composable API docs (or examples) for mike al's Request library — do they exist?
01:35 Init--WithStyle- joined
01:35 <Init--WithStyle-> Anyone familiar with mongoDB queries help me using mongolian? worldTiles.find({elevation: 4}, {elevation:1}).toArray(function (err, array) { <-- produces an undefined array :/
01:36 <Init--WithStyle-> I don't know how to properly form the query..
01:36 nat3 joined
01:36 hellopat joined
01:36 bingomanatee joined
01:42 replore joined
01:42 replore_ joined
01:42 emjayess_ joined
01:42 JMHorak joined
01:42 yanush joined
01:42 EyePulp joined
01:45 <maxogden> anyone know a module that will take a folder and 'merge' the files recursively into a target folder?
01:45 dwhittle joined
01:46 <maxogden> e.g. if i have a source folder foo/bar.html and target folder foo/baz.html if i do 'merge(sourceDir, targetDir)' targetDir should have bar and baz in it
01:47 <maxogden> e.g. what cp -R does but it isnt on every *nix and isnt on windows
01:47 taky1 joined
01:47 <comster404> @piscisaureus_, I built python 2.7, how do I point at it to compile node? export PYTHON= ?
01:49 pneftali joined
01:49 TooTallNate joined
01:49 trave joined
01:50 <maxogden> nevermind: https://npmjs.org/package/ncp
01:51 pringlescan joined
01:52 gqbe left
01:52 vippy joined
01:53 bartt joined
01:53 jdeibele joined
01:53 jergason joined
01:53 WillMarshall joined
01:54 vvgomes joined
01:58 e6nian joined
01:58 mihamina joined
01:58 chrisdotcode_ joined
01:59 hcab joined
01:59 anoemi joined
01:59 <mscdex> comster404: put it in your path
02:00 <mscdex> comster404: PATH=$HOME/bin:$PATH ./configure; make; make install
02:00 <mscdex> if python is in ~/bin
02:00 emjayess_ joined
02:00 <mscdex> that's the quick and dirty way :-)
02:02 ForceBlast joined
02:02 taky joined
02:02 <comster404> mscdex, thanx that worked
02:02 undernode joined
02:03 laner joined
02:05 jergason joined
02:06 perezd joined
02:06 appinsanity-mike joined
02:07 Vennril joined
02:08 panosru joined
02:08 infynyxx joined
02:10 wolftankk joined
02:11 satyr joined
02:11 austinbv joined
02:11 <samholmes> is nodejs.org running on node.js? :P
02:11 saikat joined
02:12 <austinbv> rails
02:12 <austinbv> :P
02:13 generalissimo joined
02:14 emjayess__ joined
02:15 <pringlescan> did anyone ever fix the github bot for in here? I'm not sure what the name of it was.
02:15 <mscdex> CIA?
02:16 <mscdex> it's been working for awhile now
02:16 appinsanity-mike joined
02:16 <pringlescan> Oh, I haven't been here in a while.
02:17 fiercetaste joined
02:18 disnet joined
02:18 broofa joined
02:18 cianomaidin joined
02:19 brianrountree joined
02:20 etcetera joined
02:20 daihuws joined
02:22 bingomanatee joined
02:22 yhpark joined
02:22 <bingomanatee> Can you careate a function with an array of parameters and string for body or do you have to eval the whole thing?
02:22 pringlescan joined
02:23 <maxogden> function() { var arrayOfParameters = [1,2,3]; var string = "hello world" }
02:24 jetienne joined
02:25 <comster404> now I get an error on "make install" is this still related to py? python tools/install.py installFile "tools/install.py", line 219cmd = args[1] if len(args) > 1 else 'install'^SyntaxError: invalid syntax
02:27 bkahl_ joined
02:27 thealphanerd joined
02:27 anoemi left
02:29 emjayess__ joined
02:29 epa_ joined
02:33 hcab left
02:35 Sorella_ joined
02:35 dwhittle joined
02:35 trave joined
02:36 hongymagic joined
02:36 generali_ joined
02:36 yhpark joined
02:37 meso_ joined
02:38 coderarity joined
02:39 slajax joined
02:39 maxani joined
02:40 cianomaidin joined
02:40 coderarity left
02:40 yhpark joined
02:40 dguttman_ joined
02:41 TooTallNate joined
02:41 joshontheweb joined
02:41 esundahl joined
02:41 clooth joined
02:43 dguttman_ joined
02:44 <comster404> any suggestions for why "sudo make install" isn't working?
02:45 <Mortchek> comster404, any errors?
02:45 <Mortchek> `make install` is supposed to be the easy step
02:46 <astropirate> comster404, what error do you get
02:46 tlync joined
02:47 <Mortchek> Granted, it wouldn't work if you hadn't first run `make`. I assume you did that
02:48 jocafa joined
02:48 avalanche123 joined
02:49 octane-- joined
02:50 paulwe joined
02:50 bakadesu joined
02:51 Yuffster_fun joined
02:51 <comster404> now I get an error on "make install" is this still related to py? python tools/install.py installFile "tools/install.py", line 219cmd = args[1] if len(args) > 1 else 'install'^SyntaxError: invalid syntax
02:53 <jesusabdullah> that *looks* like python
02:53 <jesusabdullah> what version of python are you running?
02:53 Sapr0 joined
02:53 <jesusabdullah> That looks like a, "works in python 2.6+ only" kind of thing
02:53 <comster404> Mortchek, that's what I thought... I compiled python 2.7 with bz2 and put it in my path, so the configure, and make worked ok
02:54 tmpvar joined
02:54 <comster404> and running node-v0.8.8/out/Release/node seems to work... just wish the install script worked
02:56 YoY joined
03:00 bakadesu joined
03:02 h4mz1d joined
03:02 Orbitrix joined
03:04 YoY joined
03:08 estebistec joined
03:10 jp232 joined
03:10 octane--_ joined
03:11 tjmehta joined
03:12 clooth joined
03:13 yhpark_ joined
03:14 choo joined
03:14 Emmanuel` joined
03:15 jwulf joined
03:15 jocafa joined
03:18 <Raynos> https://gist.github.com/3494638
03:18 <Raynos> Has anyone written a module that does that ^
03:19 bernaman joined
03:19 tlync joined
03:21 lbljeffmo joined
03:22 MCHammel joined
03:22 cianomaidin joined
03:24 jonatas_oliveira joined
03:25 luigy joined
03:25 broofa joined
03:25 harthur joined
03:26 yhpark joined
03:27 wizonesolutions joined
03:28 etcetera joined
03:29 stisti joined
03:29 gmci joined
03:31 Sapr0 joined
03:32 bernaman left
03:33 techthumb joined
03:33 Me1000 joined
03:34 sx_ joined
03:38 lbljeffmo_ joined
03:39 BobuSumisu joined
03:39 lbljeffmo_ joined
03:44 <mscdex> Raynos: what's the use case?
03:44 AlbireoX joined
03:44 <mscdex> comster404: probably the 'sudo' is not getting the same $PATH
03:45 <Raynos> mscdex: https://github.com/Raynos/re-emitter
03:45 <Raynos> It's basically for inheritance
03:45 vanb777 joined
03:45 <mscdex> comster404: try `sudo PATH=/place/to/python:$PATH make install` or next time just use one of the pre-built binaries packages ;-)
03:46 <comster404> mscdex, ya thx, I tried running $PATH as sudo to try and figure that out... then I ran it as "su" or something and found it installed to /usr/local/bin or something... so I'm just pointing there from my init.d ... whew. Thx for your help
03:47 timmywil joined
03:48 bkahl_ joined
03:48 petschm_ joined
03:48 gavin_huang joined
03:49 nat3 joined
03:51 kmiyashiro joined
03:51 austinbv joined
03:53 cryptops1 joined
03:54 nerph joined
03:54 cianomaidin joined
03:55 mritz joined
03:56 Destos joined
03:56 jammsen joined
04:01 thatguydan joined
04:01 mappum joined
04:02 dshaw_ joined
04:02 WillMarshall joined
04:03 slajax joined
04:04 esundahl joined
04:05 laner joined
04:06 adymitruk_ joined
04:08 trave joined
04:09 ryanj joined
04:09 yhpark_ joined
04:12 wangbus^ca joined
04:12 coderarity joined
04:12 baudehlo joined
04:12 <zivester> What's a good way to get people to look at my package and gain some feedback on it? (first time module creator)
04:12 teerapapc joined
04:12 <coderarity> zivester, lots of people tweet about stuff they make
04:13 luckysmack joined
04:13 <zivester> ah man, i dont have a tweeter... at least not for myself :-/
04:13 mxweas joined
04:13 Progster joined
04:15 h4mz1d joined
04:16 <gildean> zivester: why not paste a link here and ask for feedback?
04:17 aslant joined
04:18 JohnnyL joined
04:18 nicholasf joined
04:18 <zivester> figured it's too late, but here is my very simple tool https://github.com/zivester/node-quickthumb
04:19 <zivester> looking for any and all feedback, my style, the code... or features you would like to see
04:19 pringlescan joined
04:19 <zivester> i've stumbled on a couple oth modules that do some parts of this, was hopiing to see what parts others appreciate
04:20 <gildean> zivester: take not that i just woke up and most of the western world is still asleep, you might not get much feedback at this hour
04:20 <gildean> note*
04:21 <zivester> so *I* must be awake during the day?? preposterous
04:21 Hebo joined
04:21 <gildean> zivester: but it looks ok, how fast is it?
04:21 vvgomes joined
04:22 perezd joined
04:22 <zivester> its simple... only uses imagemagick and stores a local cache... not much esle to that
04:23 <zivester> could move to graphics magick and move to streamed images
04:23 austinbv joined
04:23 <coderarity> zivester, being awake during day is overrated
04:23 <gildean> also as it's directly related to express, you might want to join #express as well
04:24 <zivester> noted, thanks gildean
04:24 thirdknife joined
04:24 <zivester> coderarity... being awake at all sucks
04:25 emjayess joined
04:26 jryans joined
04:26 djshotglass joined
04:26 <djshotglass> herp derp
04:26 mapppum joined
04:27 <djshotglass> never used nodejs is it normal pratice not to use a httpd like lighttpd/apache?
04:27 <djshotglass> or is the webserver thats spawned by running 'node subway' just for dev testing
04:27 <zivester> i haven't gotten into the server part.. its good for rapid prototyping
04:28 <zivester> very few instances of a Node Server that would just run as is
04:29 <clooth> I am dog
04:30 <gildean> djshotglass: no reason why not, most people just create more customized server stacks instead of a general one
04:30 daffl joined
04:31 JohnnyL left
04:32 generalissimo joined
04:32 exien joined
04:33 etcetera joined
04:33 yhpark joined
04:33 txxt joined
04:33 wangbus^ca joined
04:35 knkumar1 joined
04:36 sreeix joined
04:38 rampr joined
04:39 jetienne joined
04:39 maxani joined
04:40 bkahl_ joined
04:40 r0tha joined
04:42 <exien> The mysql package (which i'm using for db access) throws an exception if the database goes down it. But how am I supposed to return an error callback from my model file to close the request if I never get a chance to do so?
04:42 khrome joined
04:45 luigy joined
04:46 pvankouteren_ joined
04:47 kmiyashiro joined
04:49 <astropirate> exien, try {} catch(e) { mew() }
04:51 <exien> astropirate: I've tried that, but the mysql code is async and uses events, so I can't catch it
04:51 recycle joined
04:52 <astropirate> AHHH
04:52 <astropirate> no clue then
04:52 sreeix joined
04:53 pretty_function joined
04:54 jocafa joined
04:54 <exien> astropirate: k thanks
04:56 sreeix joined
05:01 tyebud joined
05:03 mxweas joined
05:05 thealphanerd joined
05:05 neoesque joined
05:06 tyebud left
05:06 Sapr0 joined
05:07 ramitos joined
05:08 etcetera joined
05:08 joshfinnie joined
05:09 tjmehta joined
05:10 jxson joined
05:10 replore joined
05:10 replore_ joined
05:15 ibobrik joined
05:15 nonuby joined
05:16 <nonuby> confusing terminology. is this http://nodejs.org/api/net.html#net_socket_setnodelay_nodelay saying that sockets are nodelay by default or just referring to the arg?
05:16 <samholmes> What's the term for thie initial product on a startup?
05:16 <samholmes> there's an acronym for it.
05:16 <samholmes> what is is again?
05:16 <Mortchek> nonuby, the argument.
05:17 <nonuby> thanks very nearly missed that
05:17 <Mortchek> nonuby, whenever you see some identifier in the description of a function/method, and the same identifier appears in the signature, you can assume they refer to the same thing.
05:18 etcetera joined
05:19 xpollen8 joined
05:19 vvgomes joined
05:19 langworthy joined
05:20 stisti joined
05:20 <xpollen8> trying to use filed pipes. how does one over-ride filed-chosen mimetypes? also, how to set Content-Disposition? not in dox..
05:20 justal joined
05:21 <wookiehangover> http://i.gif.ly/42fcc0f8.gif
05:22 yhpark joined
05:22 ewalker joined
05:23 ryanfitz joined
05:26 mattgifford joined
05:27 breck joined
05:30 avalanche123 joined
05:31 riverraid joined
05:32 _roland joined
05:33 Hebo joined
05:35 timest left
05:35 TomWij joined
05:37 pringlescan joined
05:40 stisti joined
05:42 etcetera joined
05:43 __doc__ joined
05:44 octane-- joined
05:46 worr joined
05:46 <worr> hey, fast question
05:46 <worr> when writing a native module, how can I execute code when instances of my object fall out of scope?
05:47 <worr> I want to do some cleanup, so I popped it into my destructor, but it doesn't seem to get called
05:47 <ljharb> destructor?
05:47 <ljharb> oh, a native module
05:48 apham joined
05:49 <worr> ljharb: mhmm, any idea?
05:49 milani joined
05:49 <ljharb> nope, i don't know anything about native modules
05:50 ewalker joined
05:50 yanush joined
05:51 aib_233 joined
05:51 dguttman joined
05:53 dguttman joined
05:53 edwardly joined
05:55 aliem joined
05:57 hongymagic joined
05:57 pringlescan joined
06:01 emjayess_ joined
06:01 tmpvar joined
06:02 Jhsto joined
06:03 dgathright joined
06:03 chakrit joined
06:03 chakrit joined
06:04 mandric joined
06:04 worr left
06:04 zivester joined
06:04 ibobrik joined
06:07 bright_day joined
06:07 <bright_day> window close
06:07 <bright_day> window exit
06:08 Wizek joined
06:08 <Industrial> Anyone use Stylus? I have this weird case where every now and then the stylus output file (css) is blank
06:11 TheJH joined
06:11 marsulle joined
06:12 EyePulp joined
06:13 hongymagic left
06:13 e6nian joined
06:13 jryans joined
06:14 jeswin joined
06:15 jp232 joined
06:16 andrewffff_ joined
06:18 joshontheweb joined
06:18 afk47 joined
06:19 <chakrit> anyone knows this guy fictorial?
06:21 mtsr joined
06:23 jaseemabid joined
06:24 joshontheweb joined
06:24 yhpark_ joined
06:24 yhpark_ joined
06:25 stevengill joined
06:25 SamuraiJack joined
06:26 stisti joined
06:26 armetiz joined
06:27 lpin joined
06:28 techthumb joined
06:28 thanpolas joined
06:28 tornad joined
06:29 margle joined
06:30 etcetera joined
06:30 tmpvar joined
06:31 dshaw_ joined
06:32 djshotglass left
06:33 SamuraiJack joined
06:38 mappppum joined
06:38 mappum joined
06:38 emjayess joined
06:39 djcoin joined
06:39 Cr8 joined
06:39 Piotras joined
06:39 dgathright joined
06:39 maxani joined
06:39 Morkel joined
06:40 pringlescan joined
06:41 fangel joined
06:42 Lee- joined
06:42 ecthiender joined
06:43 tornad1 joined
06:43 nohu joined
06:44 iapain joined
06:47 toonketels joined
06:47 idiomatique joined
06:47 jaseemabid joined
06:48 Demux joined
06:49 widox joined
06:52 _pid joined
06:53 CStumph joined
06:55 balboah joined
06:56 stisti joined
06:57 AvianFlu joined
06:58 haarg joined
06:59 jocafa joined
06:59 tlync joined
07:01 jpe joined
07:02 Frippe joined
07:02 Frippe joined
07:02 _pid joined
07:04 tornad joined
07:04 maletor joined
07:06 ph^ joined
07:06 SamuraiJack joined
07:07 Evanlec joined
07:09 TheJH joined
07:09 blevs joined
07:09 tridion joined
07:10 mickhansen joined
07:10 aliem joined
07:11 braoru joined
07:12 ablomen joined
07:14 mvanek_wfh joined
07:14 thatguydan joined
07:15 emattias joined
07:15 tmpvar joined
07:16 erikzaadi joined
07:16 erikzaadi left
07:16 tornad1 joined
07:16 jolo2 joined
07:16 Senji joined
07:17 emattias joined
07:18 hackband joined
07:19 nicholas_ joined
07:19 rafmc joined
07:19 Jhsto joined
07:20 mattikus joined
07:21 dgathright joined
07:21 _baton_ joined
07:21 rampr joined
07:22 heroux joined
07:22 dshaw_ joined
07:23 stisti joined
07:23 <darrenlooby> Anyone got experience of writing a https app in express 3.x?
07:24 willwhite joined
07:25 tomahaug joined
07:27 dpino joined
07:27 opus_ joined
07:27 cianomaidin joined
07:28 RLa joined
07:28 salsamontes joined
07:29 cianomaidin joined
07:29 ngoldman joined
07:30 mattgifford joined
07:34 extrawurst joined
07:34 cianomaidin joined
07:35 rendar joined
07:35 saschagehlich joined
07:36 hallas joined
07:37 cpetzold joined
07:37 Wizek_ joined
07:38 [AD]Turbo joined
07:39 <[AD]Turbo> hi there
07:39 extrawurst left
07:39 NuZZ joined
07:41 `3rdEden joined
07:41 Zogot joined
07:41 saschagehlich_ joined
07:42 mmalecki joined
07:42 sorin7486 joined
07:43 <NuZZ> Hey guys is it possible to create a node IRC botnet? Ie. the functionality of communicating messages between seperate node process possibly hosted on different servers and connected to different networks?
07:43 <NuZZ> ie. eggdrop botnets
07:43 <NuZZ> I'm so tired of shitty eggdrop :|
07:43 <substack> everything is possible
07:43 <substack> the only limit is yourself
07:43 <NuZZ> has it been done then?
07:43 <NuZZ> fucking yoda!
07:44 <substack> NuZZ: https://github.com/hookio/hook.io https://github.com/substack/dnode https://github.com/isaacs/sodn
07:44 <NuZZ> clicking...
07:45 threeb joined
07:45 npa joined
07:46 mikedeboer joined
07:46 toothr joined
07:46 yawnt joined
07:47 <NuZZ> interesting. I googled this and did find that IRC bots were built around hook.io
07:47 <NuZZ> thanks.
07:47 <NuZZ> all that is left is to wonder if anyone has gone further with the IRC bot side of things
07:49 <NuZZ> there is everychance it can all be done with hookio, and I am just dyslexic atm. :)
07:49 mattgifford joined
07:50 cianomaidin joined
07:50 christi joined
07:51 <AAA_awright> I'm conserned that people write packages, which are fantastic, but then they go unmaintained
07:51 <AAA_awright> Like this: https://github.com/visionmedia/send/issues/9
07:52 <AAA_awright> Or Mongolian, a fantastic MongoDB driver, except for a quirk with connection.close() which I don't see getting fixed within the year
07:52 <AAA_awright> It's easy enough to write fixes for the packages, but then someone has to push an update for them
07:52 <AAA_awright> And people are just unwilling to do that
07:53 <mmalecki> AAA_awright: I usually just add people to my old packages
07:53 <mmalecki> if they seem interested.
07:53 <AAA_awright> mmalecki: How's that work?
07:54 <mmalecki> AAA_awright: you mean how do I do that? `npm owner add <new-owner> <package>`
07:54 <mmalecki> or, for you, you could edit couch directly :)
07:54 kuya joined
07:54 <AAA_awright> Oh
07:54 graeme_f joined
07:54 mephju joined
07:54 <AAA_awright> But then you have to trust people
07:55 <AAA_awright> mmalecki: I like Linus in his Google Tech Talk: "I'm a very untrusting person, I shouldn't have to trust anyone"
07:55 pokoli joined
07:56 riverrai_ joined
07:56 <AAA_awright> I think I'm ready to announce https://github.com/Acubed/git-node to the mailing list but I'd like to make sure it's mostly feature-complete, anyone want to try it out?
07:56 <mmalecki> AAA_awright: oh well, I don't really like that attitude, I like trusting people. and it never got me anything wrong in this community
07:56 <mmalecki> in real life, on the other hand!
07:56 jetienne joined
07:57 hammon2 joined
07:57 vmorgado joined
07:58 tornad joined
07:58 <AAA_awright> mmalecki: If you can get away with not trusting people, why not?
07:59 <AAA_awright> It means you can experiment with things more, and you take on less risk
07:59 <NodeX> the world is a lonely place when you dont trust anyone
07:59 <AAA_awright> It's everything that Git gave to revision control
07:59 <AAA_awright> No it's not?
07:59 <mmalecki> AAA_awright: well, yeah, I see pros of that concept :)
07:59 <AAA_awright> I can work with people without trusting them
07:59 <NodeX> work != connection
07:59 timoxley joined
07:59 yhpark joined
08:00 devsharpen joined
08:00 dreamerslab joined
08:00 <AAA_awright> Quoth Linus again: "Maybe <X coworker> forgot to take his meds today, who knows"
08:00 <AAA_awright> iirc
08:01 <NodeX> "I heard it on the internet, It must be true"
08:01 <dreamerslab> hi guys is there a way to switch the `require` path?
08:01 jp232 joined
08:01 graeme_f joined
08:01 phpnode joined
08:02 yawn joined
08:02 adrianlang joined
08:02 tornad1 joined
08:03 markwubben joined
08:03 tobias2 joined
08:04 antdillon joined
08:04 fly-away joined
08:04 ptdorf joined
08:05 <sorin7486> we had a guy around here that forgot to take his meds
08:06 <sorin7486> he broke a few doors one morning
08:06 <sorin7486> :)
08:06 <sorin7486> scared the hell out of his colleagues
08:07 <sorin7486> dreamerslab, what do you mean ?
08:07 <dreamerslab> thanks for the reply, normally require looks for `node_modules` in the current dir
08:07 <dreamerslab> is there a way to switch it to another dir?
08:09 ShaneHudson joined
08:09 <sorin7486> I think you can add NODE_PATH as an environment variable
08:09 <sorin7486> and you can specify a place for it to search for modules
08:09 caasiHuang joined
08:09 <sorin7486> try node --help
08:09 <sorin7486> I also think I've seen a setting somewhere to do this but I can't find it right now
08:10 <sorin7486> but why would you want to do that?
08:10 <dreamerslab> i think i've seen that on nodejs goole group but i can't find it either :(
08:11 [[zzz]] joined
08:11 Wizek joined
08:11 <dreamerslab> setting the NODE_PATH does not seem to work in my case
08:12 <dreamerslab> actually i want to require models in local package but calling in global
08:12 cianomaidin joined
08:12 hipsters_ joined
08:12 <dreamerslab> and the local package require another module in locals as well
08:12 teerapapc joined
08:14 <sorin7486> yeah, I can't help you there
08:14 <sorin7486> I don't even know what half of what you said means :)
08:15 margle joined
08:16 Zipp joined
08:18 <dreamerslab> still thanks :)
08:19 yawnt joined
08:22 sunoano joined
08:22 sunoano joined
08:22 jacobolus joined
08:23 dreamerslab left
08:27 tarisg joined
08:27 kall joined
08:28 tarisg left
08:28 vguerra joined
08:29 rio{ joined
08:36 rafmc joined
08:36 robotmay joined
08:36 salva joined
08:36 hellp joined
08:36 gregmoreno joined
08:36 eugeneware1 joined
08:36 Cr8 joined
08:36 sh1ftpgdn joined
08:36 MrMaksimize joined
08:36 yhpark joined
08:36 mattikus joined
08:36 grange joined
08:37 ifarkas joined
08:38 CStumph joined
08:39 yawn joined
08:40 cianomaidin joined
08:41 wltsmrz joined
08:45 davidcoallier joined
08:46 tnlogy joined
08:47 stisti joined
08:49 romainneutron joined
08:49 stagas joined
08:52 rampr joined
08:53 Fuu`` joined
08:55 sreeix joined
08:56 tornad joined
08:57 tc77 joined
08:59 caasiHuang joined
08:59 vmorgado joined
09:01 inimino joined
09:04 _smf_ joined
09:05 Emmanuel` joined
09:06 tornad1 joined
09:06 quesada joined
09:07 ptdorf_ joined
09:07 V1 joined
09:07 pretty_f_ joined
09:07 grosroro joined
09:07 ibobrik_ joined
09:07 stefan41_ joined
09:08 hammon3 joined
09:08 mikepj1 joined
09:08 nohu_ joined
09:08 YoY joined
09:09 r0tha_ joined
09:09 caasiHua_ joined
09:09 rafmc joined
09:10 pneftali_ joined
09:10 RichieEvan joined
09:11 MrMaksim1ze joined
09:11 shanecowherd joined
09:12 igl joined
09:12 vervain_ joined
09:12 markwubben joined
09:13 graeme_f joined
09:15 heavysixer_ joined
09:15 lpin joined
09:15 balboah_ joined
09:16 rampr_ joined
09:16 nat3 joined
09:16 fangel joined
09:16 andrewffff joined
09:19 balboah joined
09:19 eventualbuddha joined
09:19 TomWij joined
09:19 jacobolus joined
09:19 cianomaidin joined
09:20 willwhite joined
09:21 rafmc joined
09:21 mickhansen joined
09:22 majek joined
09:23 dpino joined
09:23 zivester joined
09:24 mephju joined
09:24 meso_ joined
09:24 mtsr joined
09:24 darrenlooby joined
09:24 pokoli joined
09:24 stevedomin joined
09:25 keeto joined
09:25 mihamina joined
09:25 _roland joined
09:26 adrianlang joined
09:26 william-s joined
09:26 edwardly joined
09:26 aslant joined
09:26 jetienne joined
09:26 Aphelion joined
09:26 Aphelion joined
09:26 Aphelion joined
09:27 haarg joined
09:27 cianomaidin joined
09:27 Evanlec joined
09:28 wolfeidau joined
09:29 JmZ_ joined
09:31 confoocious joined
09:31 confoocious joined
09:31 panosru joined
09:31 robotmay_ joined
09:32 V1 joined
09:32 adambeynon joined
09:33 jmpe joined
09:34 cebor joined
09:35 dscape joined
09:40 NodeX joined
09:44 olasd_ joined
09:44 olasd_ joined
09:47 sirwan joined
09:47 brooss joined
09:48 shanecowherd joined
09:51 MannyCal joined
09:51 jibay joined
09:53 taky joined
09:53 <taky> i love you node
09:53 <taky> i love you mongo, mapreduce
09:54 <taky> node is the best thing that ever happened to programming
09:56 jaseemabid joined
09:57 rickibalboa joined
09:57 dannyamey joined
09:58 <sirwan> taky: how did you get past your initial hate for callback hell ?
09:58 graeme_f joined
09:58 <NuZZ> hmmm
09:59 <NuZZ> callback hell you say
09:59 <NuZZ> my frameworks is in such a way that there is not really any callback hell
10:00 <zomg> sirwan: you just need to organize your code better ;) You can also use stuff like the async library
10:00 <NodeX> anyone had "XML Parsing Error: no element found Location: moz-nullprincipal:{1fbe0d1e-0f73-4df0-ace2-85b0d96618ad} Line Number 1, Column 1:" error with Node / Socket.io ?
10:00 <NuZZ> make server -> require a file, set shit up in said file, module.exports exports a function which server calls on the event of a request, gets matched against routes, goes through some logic to determine
10:01 <NuZZ> if it should be pumped to lactate or treated as a template for ejs
10:01 <NuZZ> it's all mostly synchronous
10:01 <taky> sirwan: it was a long hard rode of realizing where variables overrote eachother, and understanding the scope of doing stuff async, but eventually you get really fluent and swift will the callbacks
10:01 <taky> knowing where to isolate sections of code off in (function(){/*blocks*/})();
10:01 <taky> etc
10:01 <zomg> I'd imagine it's harder if you aren't already pretty familiar with JS itself
10:02 <zomg> But yeah, once you figure it out nicely it's not bad at all
10:02 <taky> its actually sort of refreshing after awhile
10:02 <NuZZ> indeedle
10:02 <NuZZ> you only really need to bother will callbacks when such operates in an asyn way right?
10:02 <NuZZ> how do you know it's async?
10:03 markwubben joined
10:03 <taky> generally rule of thumb is its probably async inless it has "sync" in the name
10:03 <NuZZ> as far as node modules go, yeah
10:04 <NuZZ> require() operates in a synchronous fashion though doesn't it. it's kind of a put off
10:06 <zomg> If it has a callback then it's most likely an async function =)
10:06 thinkinglemur joined
10:06 <zomg> Well, always best to assume it's async if it has a callback so things will keep working correctly even if it's just faking it
10:06 mmeno joined
10:07 <NuZZ> this coffeescript looks so delightful, no more awkward hasOwnProp and other loop issues, no more undefined var referenceerror issues. it's too bad I cant use globals
10:07 <NuZZ> zomg, right.
10:07 <substack> heylookit streaming accept-encoding negotiator https://github.com/substack/oppressor
10:07 <NuZZ> if there is a callback then that is a pretty logical conclusion
10:11 <NuZZ> likely a stupid question; what is the best practice for maintaining a single object throughout files? (ie. config object with database info, connections etc.)
10:11 much4 joined
10:11 <substack> pass the data to where it needs to go
10:12 <substack> you can module.exports = someObject and then require() that module too
10:12 <NuZZ> require maintains the object each time?
10:12 <substack> or you could have your modules that need your state register callbacks and then call THEM with the state
10:12 <substack> NuZZ: correct
10:12 <substack> requires are cached
10:13 <NuZZ> i just read about that, but wasn't 100%
10:14 skm joined
10:14 yanush joined
10:14 <mape> Anyone familiar with an issue where running cluster.disconnect doesn't actually kill all the workers? callback triggers but when I search for processes the worker is still around
10:14 <NuZZ> so, require('./config') must be requires('../config') when nested I assume to point to the correct file
10:14 <NuZZ> by nested i mean, within a subfolder
10:15 <substack> require paths are relative to __dirname in each file yes
10:15 mstruk joined
10:15 mstruk joined
10:16 teerapapc joined
10:16 abraxas joined
10:17 hichaelmart joined
10:17 <mape> only seems to happen on SIGTERM, not on SIGINT, but both of those run cluster.disconnect
10:17 coderarity left
10:17 standoo joined
10:19 Maarten joined
10:19 creationix joined
10:20 mstruk joined
10:20 mstruk joined
10:23 <NodeX> fixed it, seems it's a bug in socket.io 0.9.10
10:23 Senji joined
10:24 sreeix joined
10:26 _baton_ joined
10:29 _pid joined
10:31 jaseemabid joined
10:31 ibobrik joined
10:31 andrewffff_ joined
10:32 TimTim` joined
10:33 PhoSor joined
10:33 jimmyff joined
10:35 aslant joined
10:36 krishna joined
10:36 milani left
10:37 nat3 joined
10:38 meso_ joined
10:38 cianomaidin joined
10:40 maxani joined
10:40 joshontheweb joined
10:43 ptdorf joined
10:43 robotmay joined
10:45 kofno joined
10:45 dpino joined
10:47 pickels joined
10:49 yawn joined
10:50 <zomg> Anyone ever worked with OpenLayers or other custom mapping solutions?
10:50 <zomg> Seems to be kind of hard to find a nice guide on how to take a custom map file and use it with something like that
10:51 rampr joined
10:51 sreeix joined
10:52 nat3 joined
10:55 timkuijsten joined
10:55 timkuijsten joined
10:55 saschagehlich joined
10:55 gavin_huang joined
10:57 <rvagg> are we having npm issues? I'm having "login error" issues publishing
10:57 <NodeX> I used it ok about an hour ago
10:58 jimmyff joined
10:59 ian_brasil joined
11:00 mandric joined
11:02 spionL joined
11:03 <rvagg> pretty sure it wasn't a problem on my end but it's working now
11:05 nat3 joined
11:05 zonetti joined
11:05 nullunity joined
11:05 <framlin> I use the request-module and get the following error: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit." Howto setMaxListeners for the request-module (mikael)
11:06 <framlin> or howto avoid this problem ...
11:06 tlync joined
11:06 rafmc_ joined
11:08 <rvagg> Benvie: you around?
11:09 josh-k joined
11:10 whitman joined
11:10 toonketels joined
11:11 gavin_huang joined
11:12 japan0708 joined
11:12 <framlin> is anybody using request here?
11:13 mihamina1 joined
11:13 <framlin> do I have to close/end a response if i pipe something in?
11:14 <framlin> require('request')('http://localhost:9000'+req.url).pipe(response);
11:14 <framlin> this is causing my request-error
11:14 aslanted joined
11:15 caasiHuang joined
11:15 ninefawn joined
11:16 booyaa joined
11:16 <booyaa> woah sexy new look for npmjs.org
11:16 <booyaa> when did this happen?
11:18 thunderstrike joined
11:19 joshgillies joined
11:19 kaspertidemann joined
11:19 Progster joined
11:23 dannyamey joined
11:23 <NuZZ> my face when I spend hours looking up the easiest way to compile coffeescript with node, then I just create a file init.js which requires coffee-script and requires the rest of the app. myfacewhen
11:25 octane-- joined
11:25 harthur joined
11:25 <NuZZ> i want to know why npmjs has a period of failure where the stylesheet loads after the html renders
11:26 <holzp> that may not be npmjs, thats normal in browsers
11:26 <NuZZ> its not normal for decent servers
11:26 <holzp> the stylesheet loads but lags in application
11:26 <holzp> perhaps the client is indecent
11:26 <NuZZ> i have a feeling the static file serving is awkward or there is javascript on the client blocking it
11:27 <NuZZ> i've had it happen on a shitty paki website I re-designed. had to kill their javascript from loading in the header and put it in the footer
11:27 <NuZZ> lol here is the culprit
11:27 <NuZZ> <script src="//www.google-analytics.com/ga.js"></script>
11:28 <NuZZ> this is being loaded BEFORE the stylesheet
11:28 <NuZZ> is isaacs on here?
11:28 <holzp> drop the scripts down
11:29 <NuZZ> exactly, he needs to do this
11:29 <holzp> or better yet defer them till after load
11:29 <TimTim`> -_-
11:29 <purr> TimTim`: ಠ_ಠ is an IRC client/IRC client framework.
11:29 <TimTim`> lol wtf?
11:29 <NuZZ> haha
11:29 <NuZZ> -_-
11:29 <purr> NuZZ: ಠ_ಠ is an IRC client/IRC client framework.
11:30 <NuZZ> dafaq
11:30 <TimTim`> never seen that before
11:30 <NuZZ> -_
11:30 <TimTim`> that's awesome
11:30 <NuZZ> _-
11:30 <TimTim`> -_- is my favorite smiley too
11:30 <TimTim`> ಠ_ಠ
11:30 ivosq joined
11:31 <TimTim`> anyway back to what i was gonna say before purr botted his way into my thought process
11:32 <NuZZ> you like bananas?
11:32 <TimTim`> that's a little disconcerting to know that whoever designed npmjs.org didn't asyncronously load google analytics
11:32 aliem joined
11:33 <NuZZ> is it disconcerning to know he also has committed code to node.js itself?
11:33 <TimTim`> slightly
11:33 <NuZZ> haha
11:33 <TimTim`> depends on what he contributed to :D
11:33 <holzp> well its google's thing and they give you the snippit and rewriting it may be untoward.
11:33 <NuZZ> security bubble
11:33 <TimTim`> could have sworn google provides async code by default for that
11:34 <NuZZ> no it's just about the way the <head> is written
11:34 <NuZZ> but It's probably because isaacs, the guy who made the site, lives in a low-latancy world where such a glitch doesn't present itself
11:35 <NuZZ> the rest of the world? eh, not so much
11:35 stisti joined
11:36 <booyaa> nuzz could you check your racism at the door, 12:27 < NuZZ> i've had it happen on a shitty _paki_ website I re-designed.
11:36 <NuZZ> that isn't racism
11:36 jimmyff joined
11:36 <* TimTim`> suddenly craves curry.
11:36 graeme_f joined
11:37 <wltsmrz> Relevant? http://en.wikipedia.org/wiki/List_of_ethnic_slurs#P
11:38 mvanek_wfh left
11:38 <NuZZ> i mean pakistani's
11:38 <NuZZ> lol.
11:38 <NuZZ> but dont worry I can be plenty racist
11:38 <NuZZ> :)
11:38 mvanek joined
11:38 <TimTim`> shut up cracker
11:39 <NuZZ> :O I AM A BLACK WOMAN WHO DONT NEED NO MAN, how dare you!
11:39 <TimTim`> ok this is already getting out of hand
11:39 <* TimTim`> gets back to work.
11:39 <NuZZ> :D
11:41 <NuZZ> but yeah if isaacs comes online here msg him about dat <head> glitch, folks
11:42 <NuZZ> I am too lazy to submit an issue on the git
11:42 <broofa> Hey all, 'trying to familiarize myself with how to implement custom Streams and would appreciate criticism on the POST stream parser I put together: http://pastie.org/4603136
11:42 bnoordhuis joined
11:43 luigy joined
11:43 <wltsmrz> https://github.com/isaacs/npmjs.org/blob/master/www/attachments/index.html
11:44 <broofa> E.g. is it wrong to use the 'data' event to return the parsed form results? Also, I don't currently catch exceptions anywhere (e.g. possible parse errors)... but assuming I did, what's the best way to surface those? An 'error' event' I suppose?
11:45 stagas joined
11:45 <sirwan> NuZZ is a British twat
11:45 <sirwan> no vermin on the planet like the british
11:46 <kranius> haha
11:46 <sirwan> why is Britain trying to be a 51st american state yet hate America so much
11:46 <NuZZ> close but no cigar
11:46 <sirwan> they're incredibly jealous of america
11:46 alexgordon joined
11:46 <sirwan> yet copy their entire culture
11:46 <wltsmrz> I think you should try /catch the JSON parsing, broofa, and emit an 'error' as you suggested.
11:46 <sirwan> Brits are stereotypically pompous and arragont
11:46 <wltsmrz> That's my opinion and it's what I've done anyway.
11:46 <sirwan> really are a bunch of collectivist, draconian twats
11:46 <wltsmrz> Oh, but probably wait to JSON parse when you receive your 'end'
11:47 <broofa> wltsmrz - yeah, that's what I'm doing.
11:47 <broofa> line 39
11:47 <sirwan> plus every dog claims to be British nowadays were they clearly look Greek, French etc
11:47 <wltsmrz> Link?
11:47 <wltsmrz> Oh sorry.
11:48 <sirwan> Britain sucks Individualism out
11:48 <sirwan> thats why entreapeners leave britain
11:48 <sirwan> bunch of circle jerking collectivist dickheads
11:48 TheJH joined
11:48 <sirwan> NuZZ: your a pratt
11:49 <nkuttler> sirwan: ##politics
11:49 <NuZZ> you're*
11:49 <konobi> sirwan: watch it
11:49 imarcusthis joined
11:49 <sirwan> lol nkuttler ty
11:49 <broofa> wltsmrz - 'not actually sure this makes sense as a stream class, honestly, since I'm just buffering everything until the end. But the most common use case is pulling data from a stream.
11:49 <sirwan> just saying britain is more hated than america … america is a much more genuine place
11:49 <sirwan> unpretentious
11:49 <sirwan> but ill stop
11:49 <konobi> imarcusthis: hey marcus
11:49 <wltsmrz> Most people would extend Stream using util.inherits, broofa. That's kind of the usual way to achieve this.
11:49 darrenlooby joined
11:49 graeme_f joined
11:50 romainneutron joined
11:50 <NuZZ> they are both shitholes sirwan
11:50 <sirwan> NuZZ: no america is the best nation on the planet and i dont even live there
11:50 <sirwan> americans are cool people
11:50 <NuZZ> are you practising satire?
11:50 <broofa> (really, people??? this isn't even /interesting/ racism, for gods sake. :( )
11:51 <NuZZ> or perhaps just plain ole trolling
11:51 <sirwan> no fuck the humour is facecious and shit i dont practice that depressive crap
11:51 <sirwan> NuZZ: you were just clearly trolling earlier
11:51 <drey> is there an accepted way of providing a db to multiple files within an application? something along the lines of a singleton in db.js and just requring that as needed?
11:51 <sirwan> how about you learn from me and stfu
11:52 <NuZZ> nope, genuine ole nuzzy dont be trollin
11:52 yanush joined
11:52 <wltsmrz> Something like this, broofa? http://pastie.org/pastes/4603213/text?key=dcigcwa8oid266uujgpmw
11:52 sh0ne joined
11:52 <sirwan> wtf is 'ole nuzzy' … like your a legend on these chat rooms ?
11:52 <sirwan> your a dickhead
11:52 was kicked by konobi: sirwan
11:52 <wltsmrz> You can see Suckle for a working example of this https://github.com/Weltschmerz/Suckle/blob/master/lib/suckle.js
11:52 <NuZZ> you're*
11:53 mickhansen joined
11:54 jonatas_oliveira joined
11:55 <broofa> wltsmrz nit: in suckle Readme, I think you term you want is 'demultiplexer', btw. :)
11:55 <broofa> you -> the
11:56 <broofa> but otherwise, yeah, that makes sense.
11:56 <TimTim`> lotta hate comin out of that sirwan guy
11:56 <TimTim`> -_-
11:56 <purr> TimTim`: ಠ_ಠ is an IRC client/IRC client framework.
11:57 einaros joined
11:58 jmpe joined
11:59 jwulf joined
12:00 zeppo joined
12:01 sirwan joined
12:01 <framlin> how can I avoid to run out of MaxListeners if I call require('request')(url).pipe(res) in a loop through some 100 urls?
12:02 Progster joined
12:02 <broofa> wltsmrz - thx for the suggestions. :)
12:02 Maarten joined
12:03 <wltsmrz> You're re-requiring for every iteration, framlin? :O
12:03 stisti joined
12:03 <broofa> wltsmrz require() caches, so re-requiring shouldn't matter, right?
12:03 <wltsmrz> Of course it matters, and not only aesthetically
12:03 <framlin> wltsmrz: yes
12:04 <framlin> but that seems not to be the problem
12:04 <broofa> wltsmrz: how so?
12:04 <framlin> first I required(request) only once
12:05 <broofa> wltsmrz (oh, and ignore my suggestion re: suckle README - I just misunderstood what suckle was doing. :) )
12:05 <framlin> then I hoped the problem would disapear, if i require it within the loop
12:05 <framlin> but it didnt
12:06 <framlin> I think I shoul call setMaxListeners anywhere, but wehre
12:06 <framlin> what is the emitter in this case
12:06 <framlin> ?
12:06 <broofa> it's my understanding that modules are only initialized once, regardless of how many times require() is called. so once .vs. many shouldn't matter.
12:07 <framlin> broofa: I understood it like you
12:07 <rvagg> framlin: if you figure that one out let me know, it's been happening for me too, similar use case, since 0.8, as far as I can tell you can't get access to the EventEmitter that's complaining
12:08 ojon_ joined
12:08 <framlin> I have the same problem doing fs.createReadStream(__dirname+'/menu/'+fileName).pipe(res) in a loop
12:08 <rvagg> I'm not piping, just using request for a lot of requests
12:09 <framlin> so the question is, what are the emitters to call setMaxListeners(0) on
12:10 davidcoallier joined
12:10 yanush joined
12:12 jryans joined
12:12 yhpark_ joined
12:13 sainttex joined
12:14 fermion joined
12:16 <framlin> rvagg: I could solve my problem by calling res.setMaxListeners(0) before piping to res
12:16 knkumar joined
12:18 ptdorf joined
12:19 bnoordhuis joined
12:21 cshepp joined
12:21 navaru joined
12:22 vincentcr joined
12:22 Fodi69 joined
12:23 jonatas_oliveira joined
12:24 thanpolas_ joined
12:25 klaemo joined
12:27 <shlevy> If I've carefully crafted the function to only deal with variables I know aren't being modified or read in the event loop, can I call a js function from the work_cb of uv_queue_work?
12:27 meso_ joined
12:28 imarcusthis joined
12:29 <klaemo> hey, in a node app, should I write every single function in an async style or just the ones that deal with I/O?
12:29 <konobi> anyone using blode?
12:29 yawnt joined
12:29 <chakrit> klaemo: just the I/O ones mostly.
12:30 cronopio joined
12:31 <klaemo> chakrit: i figured. so, what's the best way to deal with errors in sync functions? in the async world it's really nice to just pass the err to the callback
12:31 <sh0ne> where 'require.js' is being put when installed with 'npm install requirejs' ? I cannot see it anywhere in 'nodejs' folder in Program Files (Windows 7).
12:31 <shlevy> klaemo: try-catch
12:32 hipsters_ joined
12:32 <klaemo> shlevy: doesn't that cause deoptimization in V8?
12:32 sh0ne joined
12:32 wizonesolutions joined
12:33 <klaemo> sh0ne: it should be in the node_modules folder of the directory you ran the npm install command in
12:33 <shlevy> klaemo: Get correct functionality first. If you then face a performance issue that you prove through profiling, then ask about performance
12:34 <klaemo> shlevy: good point
12:34 <konobi> the try/catch was improved a while back i believe
12:35 <klaemo> so just to make sure, if I have to do a bunch of computations on my data, without doing any i/o, i can do it in sync functions (aka return the result) and just wrap it in try-catch?
12:35 <sh0ne> klaemo: You're were right, thank you for your help.
12:35 imarcusthis joined
12:36 AlbireoX joined
12:36 hillct joined
12:37 Swaagie joined
12:38 Mamadex joined
12:40 Mamadex joined
12:40 mihamina joined
12:41 sreeix joined
12:41 Mamadex joined
12:41 hnakamur joined
12:42 wankdanker joined
12:43 drudge joined
12:43 zs1621 joined
12:44 shiawuen joined
12:45 CatalinH joined
12:46 cianomaidin joined
12:48 smithrobs joined
12:51 yanush joined
12:51 salva joined
12:52 wolftankk joined
12:53 davidsklar joined
12:55 ptdorf joined
12:55 choo joined
12:55 subbyyy joined
12:56 <shlevy> Do I need to #define BUILDING_NODE_EXTENSION for c++ addons?
12:56 SeanBannister joined
12:58 imprestavel joined
12:58 <SeanBannister> I noticed when I do a math equation in node.js and the same in PHP I get a different value. The equation is "234789 + 3287214789 * 3427648197" in node.js I get
12:58 <SeanBannister> 11267415844667820000
12:58 <SeanBannister> in php it's
12:58 <SeanBannister> 11267415844667820032
12:59 zeppo joined
12:59 <konobi> shlevy: i think node-gyp does that for you
12:59 <shlevy> OK
12:59 <zomg> SeanBannister: I wouldn't be surprised if PHP mangles those into floats and thus causes the extra 32 into the end
13:00 <zomg> 11267415844667820222 interestingly enough, this is what Python gives you for that same calculation
13:00 jw___ joined
13:00 <SeanBannister> zomg: hmmm its messing with my head because in windows calc I get 222 more.
13:00 ryanfitz joined
13:00 <SeanBannister> yeah ok, hmmm
13:00 <zomg> Yeah same as with python then in windows calc
13:01 wolftank_ joined
13:01 jjbohn joined
13:01 codycraven joined
13:01 chrisjaure joined
13:01 <zomg> haskell also gives the same value as python
13:01 <zomg> so most likely that's the correct output
13:02 <SeanBannister> wonder what javascript and php are doing
13:02 <SeanBannister> I have a strange use case where I need them to match
13:02 <zomg> That is a good question. Most likely some type conversion or such
13:02 <zomg> What if you use bcmath in PHP?
13:02 yanush joined
13:03 zs1621 joined
13:03 <SeanBannister> I actually hadn't heard of it, not really a PHP dev
13:04 <zomg> or gmp
13:04 salva left
13:04 <zomg> yeah I haven't used either myself, I just recalled there were some math related stuff in it =)
13:04 octane-- joined
13:05 <SeanBannister> I think you might be right about the floats http://en.wikipedia.org/wiki/Machine_epsilon
13:05 <konobi> what does bignum give you?
13:06 <CIA-1> node: 03Ian Babrou 07master * r3b17f3b 10/ src/node_constants.cc : constants: add O_DIRECT - http://git.io/Avyx_w
13:06 <zeppo> hi guys, anyone reached any concurrent connection limits using socket.io?
13:06 <konobi> zeppo: probably hitting an OS limit first (file descriptors, etc)
13:07 <konobi> SeanBannister: https://github.com/justmoon/node-bignum
13:07 austinbv joined
13:07 galaxywatcher joined
13:08 <SeanBannister> konobi: awesome :) cheers
13:08 <zeppo> konobi: yeah, we need to handle potentially about 100k users using websockets
13:08 briancray joined
13:08 <zeppo> so if we beef up a server enough, potentially leverage with some load balancing
13:09 <`3rdEden> you will probably have around 5 - 10k users per node process..
13:09 aslant joined
13:10 tlack joined
13:10 oriben joined
13:11 rafaelverger joined
13:11 <konobi> zeppo: yeah, see what you can get out of one server with kernel tweaks and then work from there
13:13 ptdorf joined
13:13 <zeppo> if you leverage to more than one server, is there a way to handle so you don't push the same events multiple times?
13:13 yanush joined
13:13 AaronMT joined
13:13 <SeanBannister> zeppo: I've done really large benchmarks, 60,000 connections this is a script I use to tweak the kernel https://gist.github.com/bce4badf57f6798bb551
13:13 thomblake joined
13:14 piscisaureus_ joined
13:14 <zeppo> oooooh! :) thanks
13:14 estebistec joined
13:15 <SeanBannister> automates the whole thing :)
13:15 <zeppo> thanks man, this is gold
13:15 <oriben> so who's in the mood to help a (very nice) noob with express and mongoose?
13:15 lazyshot joined
13:16 <konobi> zeppo: would depend on the backend i'd assume
13:16 gry joined
13:18 _pid1 joined
13:18 saschagehlich joined
13:18 <konobi> zeppo: and if you're willing to spend money on a traffic balancer, etc.
13:19 rcrowley joined
13:19 lpin joined
13:19 kishoreyekkanti joined
13:19 <zeppo> yeah we're willing to spend some cash on this. but just so we know the technical limitations before we get too deep in to it
13:21 mritz joined
13:21 kill-9_ joined
13:22 <shlevy> In an addon, what's the difference between 'return Undefined();' and 'return scope.close(Undefined());'?
13:22 jaseemabid joined
13:22 <jw___> @SeanBannister wow great !
13:24 tahu joined
13:24 <jw___> @SeanBannister 60k per single node process???
13:24 ForceBlast joined
13:24 kokotron joined
13:25 kyonsalt joined
13:25 <konobi> there'd be other factors to that, but it's probably doable
13:26 hellopat joined
13:26 <SeanBannister> jw___: yeah the box maxed out not the node process
13:26 <jw___> @konobi even 30k is fantastic
13:26 <konobi> memory, 32 or 64bit node, etc.
13:27 z joined
13:27 stafamus joined
13:27 <jw___> @SeanBannister it ran out of memory? How much RAM are we talking about?
13:28 <tralamaz> shlevy: afaik you should just use return Undefined();
13:28 <SeanBannister> I can't remember the exact details, its was a while ago I was running very basic benchmarks on Amazon EC2 but it was the CPU that maxed out first 64bit
13:28 thomblake left
13:29 <shlevy> tralamaz: OK. Thanks
13:29 <konobi> shlevy: check the V8 docs
13:29 tahu joined
13:29 jrajav joined
13:30 <tralamaz> c/c++ module docs are not exactly amazing, I found my way through examples and other addons
13:31 sreeix joined
13:31 <imprestavel> hi! i would like to make a node.js addon in C exporting a single method (instead of an object with that method). does anyone know if that's possible?
13:32 miho joined
13:32 <ibobrik> yep, look at this: https://github.com/bobrik/node-aligned-buffer
13:33 <tralamaz> imprestavel: http://nodejs.org/api/addons.html#addons_hello_world
13:34 <konobi> imprestavel: https://github.com/wesolows/v8plus
13:34 thinkt4nk joined
13:34 stevedomin joined
13:34 caasiHuang joined
13:35 brianrountree joined
13:35 <imprestavel> i saw the hello example and some other projects... i know i can wrap the compiled module with a js, but i would like the compiled one to be called like addon() instead of addon.hello()
13:36 <shlevy> imprestavel: Not sure how to do it directly from the addon, but of course you could wrap it in a simple js module
13:37 matehat joined
13:37 manuelbieh joined
13:37 dmilith left
13:40 vvgomes joined
13:40 <imprestavel> thanks everyone, i'll probably just wrap it in js then (still checking out the links though)
13:40 rampr joined
13:40 <shlevy> imprestavel: If you see a better solution, please report back, I wondered the same thing
13:41 piscisaureus__ joined
13:41 <imprestavel> ok!
13:42 SeanBannister left
13:42 Nopik joined
13:43 shadowshell joined
13:46 octane-- joined
13:46 mandric joined
13:46 addisonj joined
13:48 Yuffster_fun joined
13:48 beachdog joined
13:49 smithrobs_ joined
13:50 harthur joined
13:51 kishoreyekkanti joined
13:51 automata joined
13:52 luigy joined
13:53 rwaldron joined
13:55 elphaba joined
13:55 jmar777 joined
13:55 SvenDowideit joined
13:57 emjayess joined
13:58 <shlevy> Hm, I'm getting undefined symbol: init when trying to use my compiled addon
13:58 timmywil joined
13:58 nat3 joined
13:58 <shlevy> My Init function (Init, not init) is not declared static...
13:58 FredC joined
13:59 nerph joined
14:00 FredC_ joined
14:01 <shlevy> Of course, the symbols are mangled... It's actually _Z4InitN2v86HandleINS_6ObjectEEE in the object file. But still...
14:01 tornad joined
14:02 generik joined
14:03 booyaa left
14:03 octane-- joined
14:05 langworthy joined
14:05 Domenic joined
14:06 kishoreyekkanti joined
14:08 JSONB joined
14:09 Fli-c joined
14:09 vanb777 joined
14:09 bingomanatee joined
14:11 kishoreyekkanti left
14:11 <konobi> zeppo: get my pm?
14:11 kishoreyekkanti joined
14:11 Destos joined
14:11 JJMalina joined
14:13 <konobi> shlevy: on smartos, you can use mdb along with v8.so to get demangled names
14:13 postwait joined
14:13 generali_ joined
14:13 navaru joined
14:13 jasonkuhrt joined
14:14 bradleymeck joined
14:14 <shlevy> konobi: Still, not even sure why it's looking for a symbol named 'init'. My file has NODE_MODULE(queueWork, Init), not NODE_MODULE(queueWork, init)
14:15 matthewborn joined
14:15 <shlevy> Actually, the .node file even HAS an _init symbol
14:15 <shlevy> :(
14:15 pho joined
14:16 vincentcr joined
14:16 <konobi> and the function is called Init ?
14:17 dnolen joined
14:17 jmar777 joined
14:17 rcrowley joined
14:17 emattias_ joined
14:17 <shlevy> konobi: Yes
14:17 <shlevy> void Init(Handle<Object> target) { target->Set(String::NewSymbol("queueWork"),FunctionTemplate::New(QueueWork)->GetFunction());
14:18 <shlevy> }
14:18 <shlevy> NODE_MODULE(queueWork, Init)
14:18 <konobi> and it's compiling as queueWork.node ?
14:18 <shlevy> Ah, no, queue-work.node
14:18 <shlevy> I see
14:19 navaru joined
14:19 <shlevy> Hooray, new error :)
14:19 saschagehlich joined
14:20 thomasfr joined
14:21 Ziggy` joined
14:21 <shlevy> Yay, segfault! :)
14:21 Zipp joined
14:21 willwhite joined
14:21 jmhorak joined
14:21 <shlevy> Is there a good way to debug node addons with gdb?
14:21 DrShoggoth joined
14:22 PhoSor joined
14:22 <konobi> shlevy: tbh, i'd try smartos... assuming you have vmware, you can download a virtual image from the website
14:22 <navaru> Can someone help me port node's watch C++ module to a Chrome dev tools Native Client plugin (ppapi), please? (any core node devs) - I'm a front-end dev, don't have to much C++ knowledge
14:22 rcrowley joined
14:23 jergason joined
14:23 jim_ joined
14:23 fangel joined
14:24 <konobi> navaru: is this for redistributable app?
14:24 hojberg joined
14:25 zodiak joined
14:25 <navaru> Is for a Chrome Dev Tools extension, I want to watch files for changes and autoreload them'
14:25 <tuhoojabotti> there is an extension for that
14:26 Topic for
14:27 <navaru> tuhoojabotti: what extension?
14:27 mirzu joined
14:27 <tuhoojabotti> no wait
14:27 <tuhoojabotti> I could be wrong
14:27 bradgignac joined
14:28 elguapo99 joined
14:28 daffl joined
14:28 <tuhoojabotti> hmm
14:28 shiawuen_ joined
14:29 <konobi> navaru: http://www.html5rocks.com/en/features/file_access ?
14:30 <navaru> There is this extension https://bitbucket.org/ryanackley/tincr/src , which uses Netscape Plugin Application Programming Interface (NPAPI), which will soon be deprecated in Chrome Canary, so I need to switch it to ppapi - Pepper Plugin API (the new improved version)
14:30 <tuhoojabotti> konobi: not good.
14:30 <tuhoojabotti> oh yeah
14:30 <tuhoojabotti> npapi does work
14:30 <shlevy> Darn, my brilliant idea has failed :(
14:30 slurp joined
14:31 erichynds joined
14:32 <navaru> it works now, but not in the near future, so I don't want to bother to do work now to change it later.. :)
14:32 PhoSor joined
14:32 <konobi> tuhoojabotti: how so?
14:32 <tuhoojabotti> konobi: for what I know, html5 file system api can only access a sandboxed filesystem of it's own
14:33 <konobi> tuhoojabotti: you can change the security domain in an extension
14:33 <tuhoojabotti> konobi: got reference on that?
14:33 <tuhoojabotti> I've been looking into that
14:34 <konobi> tuhoojabotti: extension permissions
14:36 <navaru> konobi: not really, you still get sandboxed, permissions settings are only for users to allow them
14:36 <tuhoojabotti> konobi: What there?
14:36 <tuhoojabotti> I don't see anything related to that
14:37 <tuhoojabotti> there is Content Security Policy, but that can only be tightened
14:37 sirkitree joined
14:37 octane--_ joined
14:38 laner joined
14:38 <konobi> tuhoojabotti: origins, 'file://'
14:38 <tuhoojabotti> konobi: But you don't have any source on that?
14:39 sanbor joined
14:39 <konobi> tuhoojabotti: not off hand, my bookmark for it is gone
14:39 hipsters_ joined
14:39 <tuhoojabotti> damn
14:39 <konobi> i know i got it working though
14:40 r0tha joined
14:40 <tuhoojabotti> konobi: so you put "content_security_policy" to what?
14:40 atxryan_ joined
14:42 <bnoordhuis> shlevy: compile a debug build of node and the addon
14:42 <bnoordhuis> shlevy: the rest is just regular debugging
14:43 <shlevy> bnoordhuis: OK, thanks
14:43 SirFunk joined
14:43 EyePulp joined
14:43 <bnoordhuis> navaru: node uses libuv, which uses the native platform api
14:43 <bnoordhuis> navaru: alternatively, there's a polling variant that works the same on all supported platforms
14:44 josh-k joined
14:44 steveoh joined
14:44 <navaru> bnoordhuis: what polling variant? Could you share a link, please
14:45 <shlevy> bnoordhuis: My problem was what I feared might happen, my naive attempt at calling a javascript function from the 'process' function of a uv_queue_work segfaults
14:45 <shlevy> bnoordhuis: Any idea if there's a way to tell v8 to make a new thread somehow?
14:45 willwhite joined
14:45 <shlevy> bnoordhuis: s/make/work in/
14:45 Almindor joined
14:45 <bnoordhuis> navaru: grep for uv_fs_poll_t in deps/uv/include/uv.h
14:45 addisonj joined
14:46 <navaru> bnoordhuis: thanks
14:46 <bnoordhuis> shlevy: not really. like i said on the ML, v8 is not thread safe. you'd have to create a new isolate
14:46 <shlevy> bnoordhuis: Ah, didn't see your response, sorry
14:46 austincheney joined
14:46 <bnoordhuis> shlevy: someone already wrote a module for that btw, threads_a_gogo (hope i spelled it right)
14:47 <shlevy> bnoordhuis: Ah, really? Cool :)
14:48 <austincheney> I have not been keeping up with node.js support of my application, but today I learned my NPM is getting 150 downloads a day.... this cannot possibly be right since the site with the app only averages about 250 visits a day
14:48 timeturner joined
14:48 <austincheney> how can i verify these numbers: https://npmjs.org/package/prettydiff
14:49 Domenic joined
14:49 <austincheney> they just seem a bit too far on the high side to believe
14:49 <jim_> Polling and Hitler. The two most evil things in all the world.
14:49 yanush joined
14:49 jwulf joined
14:49 Rsdrsd joined
14:50 Internet13 joined
14:50 <Rsdrsd> Are you all developping in node?
14:51 <austincheney> Rsdrsd: i wrote an api to interface the app into node, but i have not worked on it in 1.5 years
14:51 <austincheney> i just keep the NPM package updated as I update the core of the application
14:51 salsamontes joined
14:51 antdillon joined
14:52 <Rsdrsd> Which app are we talking about then?
14:52 <austincheney> sorry, nm, i just noticed half way through what i was trying to figure out
14:52 saikat joined
14:52 <austincheney> i just noticed you joined half way through what i was trying to figure out
14:52 eckoit joined
14:52 necros joined
14:53 appinsanity-mike joined
14:53 Domenic joined
14:53 pppaul joined
14:53 pandemic joined
14:53 <Rsdrsd> Node is very kewl, what is the next big thing?
14:53 jocafa joined
14:54 ^_^ joined
14:55 ^_^ left
14:56 <jim_> The next big thing? The total collapse of Western civilization.
14:56 fangel joined
14:58 ring3 joined
14:58 <isaacs> Rsdrsd: node is all ofthe next big things.
14:58 <isaacs> Rsdrsd: the next big thing will be built with node
14:58 Topic for
14:59 Ineentho joined
14:59 <jim_> Or Erlang or sticks and mud if bottom falls out of civilization.
14:59 <wookiehangover> isaacs: and its called http://b.gif.ly/
14:59 cpsubrian joined
14:59 wolftank joined
14:59 vanb777 joined
15:00 vincentcr joined
15:00 dguttman joined
15:00 <mscdex> node.js rules!
15:01 yaniv joined
15:01 <jim_> Giving up coffeescript is like giving up coffee. God damn it.
15:01 dready joined
15:01 tornad1 joined
15:02 cpsubrian joined
15:02 estebistec joined
15:02 <drudge> my text editor is extendible with node. i like that.
15:02 bwinton joined
15:02 Ineentho_ joined
15:03 cob joined
15:03 <dready> hello. i have installed npm trough a ppa and i had some problems. if i reinstall npm, will that cause problems with packages installed trough the old npm, eg. express?
15:03 <austincheney> drudge: which editor?
15:03 <kranius> drudge: mine is built ontop of it's own scripting language
15:03 <drudge> austincheney: chocolat
15:03 mattgifford joined
15:04 <drudge> austincheney: for example, gisting: https://github.com/drudge/gist.chocmixin
15:04 <austincheney> looking
15:04 thomasfr_ joined
15:04 dwhittle joined
15:05 Senj joined
15:05 <austincheney> drudge: you need to make the word "Chocolate" of the title or your README.md file a hyperlink to the chocolate editor
15:05 zeppo joined
15:07 AntelopeSalad joined
15:07 jocafa1 joined
15:08 <drudge> austincheney: ok :)
15:08 exien joined
15:08 <drudge> austincheney: something simpler, github flavored markdown preview, using isaacs' module: https://github.com/drudge/github-flavored-markdown.chocmixin/blob/master/init.js
15:10 ACK__ joined
15:10 <exien> Does anybody know if there is a reason why Node would take 2-8 seconds to return a request, while expressjs logs the request from start to finish as only taking 30ms?
15:10 <ACK__> how a add sphinx search in node.js website
15:11 Venom_X joined
15:12 stagas joined
15:12 rampr joined
15:12 <ACK__> how a add sphinx search in node.js website
15:12 <EyePulp> ACK__: What was the question?
15:12 <isaacs> dready: depends. how old was the npm you installed through a ppa?
15:13 <isaacs> dready: 0.x-ish?
15:13 <isaacs> dready: or 1.0-ish?
15:13 <ACK__> i want to add searh functionality to my project
15:13 <ACK__> how to
15:14 Littlex joined
15:14 <ACK__> <EyePulp> => i want to add searh functionality to my project
15:14 <Littlex> hey, how do i debug following error: events.js:66 -- throw arguments[1]; // Unhandled 'error' event -- Error: Parse Error
15:14 rauchg joined
15:14 <EyePulp> ACK__: how is sphinx exposed? Is it a web service running on a different port, or an API & libraries in a language you have to call?
15:14 <drudge> austincheney: links added to all my mixins, just for you
15:14 sfreach joined
15:15 <ACK__> what is reliable solution
15:15 <stagas> ACK___: google 1st result for "node sphinx" https://github.com/kurokikaze/limestone
15:15 blevs joined
15:16 <EyePulp> ACK__: google is a wonderful tool for answering many questions.
15:16 <ACK__> i now
15:16 <ACK__> know
15:16 <ACK__> but not updated
15:16 <ACK__> for 6 months
15:17 aniasis joined
15:17 <ACK__> what you think about his => https://github.com/flying-sphinx/flying-sphinx-js
15:17 <ACK__> tell me
15:18 average_drifter joined
15:19 ramitos joined
15:19 <Littlex> any help would be really great :<
15:19 joshfinnie joined
15:19 ryanfitz joined
15:19 <bnoordhuis> Littlex: look at the full stack trace
15:19 <bnoordhuis> that should hopefully tell you where it originates from
15:19 <Littlex> how do i get that
15:20 <sorin7486> it should show up in the command line
15:20 <Littlex> its just 2 lines long and not related to my code
15:20 <sorin7486> that's all you get ?
15:20 khrome joined
15:20 <sorin7486> Littlex, is that text all you get ?
15:20 <Littlex> at Socket.socketOnData (http.js:1366:20) at TCP.onread (net.js:402:27)
15:20 <Littlex> thats the rest
15:21 <bnoordhuis> Littlex: http parse error?
15:21 <Littlex> here is the full message https://gist.github.com/3499041
15:21 sreeix joined
15:22 <sorin7486> I'm sure I've seen this before...
15:22 mandric joined
15:22 <stagas> Littlex: node --version ?
15:22 <Littlex> yeah but the message appears to be random to me? 100 requests seem to be fine, and the 101 throws an error
15:22 <jim_> Speaking of sockets, are any of you folks using socketstream in production?
15:22 <Littlex> 0.8.8
15:22 sfreach left
15:22 Frippe joined
15:22 Frippe joined
15:23 stisti joined
15:24 hillct joined
15:24 <sorin7486> Littlex, I've had similar issues, sometimes node will throw errors and not give much info why
15:24 jocafa1 left
15:24 someprimetime joined
15:24 octane-- joined
15:24 <Littlex> thats not good :)
15:24 alek_br joined
15:24 <sorin7486> Littlex, you can try to capture the packet
15:25 caolanm joined
15:25 <konobi> node-panic might help
15:25 <sorin7486> I mean the one that does this
15:25 sh0ne joined
15:25 jxie joined
15:25 <Littlex> the one which leads to the error is reproducable
15:25 <Littlex> its a curl request, i am using to test the node server
15:26 <sorin7486> ok
15:26 <Littlex> its allway the same
15:26 <sorin7486> is there anything different about it ?
15:26 <stagas> Littlex: what's the curl request look like?
15:26 <Littlex> sec
15:26 octane-- joined
15:26 <Rsdrsd> Why did i just explore node a few weeks ago....
15:27 <sorin7486> Rsdrsd, because john left for the market
15:27 <sorin7486> :)
15:27 atxryan_ joined
15:27 <armetiz> Hi there, I have build my first module: https://github.com/armetiz/node-printer
15:27 <Littlex> stagas: https://gist.github.com/3499100
15:28 <Littlex> thats the full code, including the curl request
15:28 <Rsdrsd> I want to build an upload with progress indicator. I can only find old aticles in google
15:28 <Littlex> i am trying to build a proxy, which posts a subrequest to a specified url to ask for permission
15:28 thealphanerd joined
15:28 <Rsdrsd> Should i use formidable or not
15:28 <armetiz> Can you look on it and tell me what do you think about it ? What's wrong ? I'm not an JS ninja so.. and advice should be welcome!
15:29 <Littlex> its a raw draft and very beta ;)
15:29 <stagas> Littlex: shouldn't you be escaping the double quotes, or use single quotes outside in that Authorization header?
15:30 <stagas> Littlex: the parser is failing because the request is malformed somehow, it can't parse it
15:30 <konobi> Littlex: bash problem
15:31 manuelbieh joined
15:31 sainttex joined
15:31 laner joined
15:31 <konobi> Littlex: change your -H quotes to '
15:31 <Rsdrsd> Where to find good node articles /news
15:32 <Littlex> ah right, totaly overlooked that
15:32 <Littlex> leme check
15:32 <Littlex> error still occurs
15:32 trave joined
15:33 <konobi> Littlex: whats your curl look like now?
15:33 tjholowaychuk joined
15:33 kenperkins joined
15:33 <Littlex> updated the gist https://gist.github.com/3499100
15:34 obazoud joined
15:35 wolftankk joined
15:35 <konobi> Littlex: remove spaces between commas
15:36 <Littlex> in the auth header?
15:36 oriben joined
15:36 chm007 joined
15:36 _roland left
15:36 <Littlex> i will gladly do that, but its not a permanent solution, i mean the node js should not crash when someones sends an illegal request - i would like to handle that
15:37 <konobi> Littlex: you're assuming that's a valid header
15:37 broofa joined
15:37 <stagas> Littlex: put an .on('error', fn) on the server
15:37 <Littlex> it is a valid header
15:37 <konobi> well, you can add an error handler to catch those
15:38 <Littlex> removed the spaces, still occurs
15:38 aliem joined
15:38 <Littlex> stagas, knobi: on the httpProxy server?
15:38 jonatas_oliveira joined
15:39 ericelliott joined
15:40 <konobi> huh... wireshark time?
15:40 revans joined
15:40 stefan4__ joined
15:41 booguie joined
15:42 <Littlex> its weird, the request gets handled completely and then the error occurs
15:42 <stagas> that's weird, I just tried that request and it works without problems, so why is your parser failing it's beyond me
15:42 constantx joined
15:42 <stagas> wireshark time probably :P
15:43 steveoh left
15:43 <Littlex> https://gist.github.com/3499100
15:43 <konobi> oh req.end() is getting called at a random point
15:43 <Littlex> updated the gist with the new code, including the on error, console output and curl output
15:44 stisti joined
15:45 epokmedi1 joined
15:45 <Littlex> konobi: is there a better way to call it? :)
15:45 Domenic joined
15:45 <konobi> Littlex: just try without it
15:45 luigy joined
15:46 <Littlex> afaik its need to send/close the post request?
15:46 <Littlex> still occurs
15:46 <CIA-1> node: 03isaacs 07v0.9.1-release * rcda3ae6 10/ (ChangeLog src/node_version.h): wip - http://git.io/OBbKag
15:47 <Littlex> *sigh*
15:47 wuttf joined
15:47 wuttf left
15:47 ecthiender joined
15:48 ibobrik joined
15:48 <Littlex> i hate weird errors
15:48 <konobi> Littlex: well, you were telling it to end() at a random point rather than waiting until the end of the request
15:49 <Littlex> yeah its a valid thought, i moved it - still the error occurs
15:49 jaseemabid joined
15:49 beachdog_ joined
15:49 brianc1 joined
15:49 <Littlex> moved/removed
15:50 charuru joined
15:51 yawn joined
15:52 bingomanatee joined
15:52 <konobi> Littlex: have you tried using one of the examples and building up from there?
15:52 <Littlex> you mean examples from the http-proxy page?
15:53 <konobi> yeah, or its repo
15:53 jasonrm joined
15:53 <Littlex> its build on an example
15:53 <Littlex> so basicaly yes
15:53 hojberg joined
15:53 <Littlex> the strange is, the error occurs on the centos sandbox but not on my local mac
15:54 caasiHuang joined
15:54 <Littlex> a more verbose trace, error or data would be great :<
15:54 <shlevy> Boo, threads-a-gogo doesn't seem to work on recent node
15:55 <shlevy> bnoordhuis: Any pointers for v8 isolates besides http://izs.me/v8-docs/classv8_1_1Isolate.html?
15:55 matehat joined
15:55 Saps joined
15:56 ewalker joined
15:56 ryanrolds_w joined
15:56 brianc joined
15:57 brianc2 joined
15:58 ericelliott joined
15:58 fangel joined
15:58 crabdude joined
15:59 <stagas> Littlex: try not sending content-length
15:59 <stagas> Littlex: in ln 15
15:59 <Littlex> stagas you have too when posting data ;)
15:59 <hojberg> whats the popular recommended webframework of late? I feel like everyone is hating on express - what are people using instead ?
16:00 <Littlex> but i found the error, my coworker gave me the wrong port - using the correct one works perfectly fine
16:00 <Littlex> STILL its strange that the error seems to be random
16:00 briancray joined
16:00 <Littlex> is there a way to catch it and continue?
16:01 <tjholowaychuk> hojberg rails
16:01 manuelbieh joined
16:02 vippy joined
16:02 vvgomes joined
16:02 <shlevy> Hm, never mind, that seems clear enough
16:02 __underscore joined
16:02 <hojberg> tjholowaychuk: snap
16:03 Leeol joined
16:03 sainttex joined
16:03 rcrowley joined
16:06 lz joined
16:06 lz joined
16:07 <jim_> If it is hated it must be good.
16:08 __underscore left
16:08 <dready> isaacs, thanks for tip. I'm not really sure about the v. It possible is between 1'ish versions. I haven't installed much stuff, yet, so i might just clean up and install all packages fresh(about 5 or 6 only). Should i be concerned with pkgs that i installed with the flag -g?
16:08 spionL joined
16:09 fatjonny joined
16:09 eckoit joined
16:10 <Littlex> hmm
16:10 <Littlex> seems like the project will not be realized with nodejs then ;) thanks for the support!
16:10 <dready> huh?
16:10 <dready> what is the prob?
16:11 <Littlex> getting unexplaynable errors
16:12 <dready> such as?gist?
16:12 John[a] joined
16:12 joshthecoder joined
16:12 perezd joined
16:12 <Littlex> https://gist.github.com/3499041
16:12 <Littlex> https://gist.github.com/3499100
16:12 <Littlex> first is the error, secodn the code
16:13 etcetera joined
16:13 <Littlex> i found the source of the error, its because i was using the wrong port for the subrequest to /auth - still its fubar to work which such an error
16:14 <dready> vuola, https://encrypted.google.com/search?q=events.js%3A66+++++++++throw+arguments[1]%3B+%2F%2F+Unhandled+%27error%27+event++++++++++++++++++++++++^+Error%3A+Parse+Error+++++at+Socket.socketOnData+%28http.js%3A1366%3A20%29+++++at+TCP.onread+%28net.js%3A402%3A27%29&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs#hl=en&client=ubuntu&hs=IgP&channel=fs&sa=X&ei=U-48UOOVPI-AhQec4IHACQ&ved=0CBgQBSgA&q=Error%3A+Parse+Error+at+Socket.socket+OnData+at+TCP.on
16:14 <dready> read&spell=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=8f13bae0db0751c4&biw=1280&bih=624
16:14 <dready> o.O
16:15 <vippy> lol
16:15 <Littlex> fail
16:15 AvianFlu joined
16:15 buttdong joined
16:16 <dready> just google these magic keywords, "Error: Parse Error at Socket.socket OnData at TCP.onread"
16:18 <dready> http://www.google.co.uk/#hl=en&sclient=psy-ab&q=Error:+Parse+Error+at+Socket.socket+OnData+at+TCP.onread&oq=Error:+Parse+Error+at+Socket.socket+OnData+at+TCP.onread&gs_l=hp.12...2468.2468.0.4756.,or.r_gc.r_pw.r_qf.&fp=cf2ca6371e09f1bc&biw=1280&bih=709
16:18 grallan joined
16:18 nicholasf joined
16:19 langworthy joined
16:19 <Littlex> https://github.com/joyent/node/issues/2997
16:19 <Littlex> last comment says it all
16:19 recycle joined
16:19 <dready> ok, here we go, back into game!
16:19 <Littlex> not really
16:20 <Littlex> as long as such an error exists i would never ever use something in a HA setup
16:20 John[a] joined
16:20 bakadesu joined
16:20 <dready> you are taking things personally
16:21 <dready> code is code
16:21 <Littlex> hu?
16:21 bingomanatee joined
16:21 chrisdotcode joined
16:21 <dready> you seems a bit sceptic, too much, just cauze you have an error, you will not use a certain technology?
16:21 rickibalboa joined
16:22 <Littlex> no
16:22 <dready> linux is full of errors, but it doesn't stop it to be wildelly deployed
16:22 <Littlex> its not really full of errors
16:22 <Littlex> every looked at server distros?
16:23 <Littlex> -y
16:23 <dready> some
16:23 <dready> i mean, some errors
16:23 <dready> configuration ones
16:23 matthewborn joined
16:23 lazyshot joined
16:23 Almindor joined
16:24 <Littlex> the point here is simply that its an error which is a neckbreaker for our requirement catalog - a hard to debug non helpful error is just an absolut no go in a HA setup
16:24 <Littlex> anyway we dont have to discuss that to the detail now, ill toy around a bit just out of curiosity
16:24 <dready> mm, have fun
16:25 saschagehlich joined
16:26 saikat joined
16:26 Nopik joined
16:26 pringlescan joined
16:26 <RLa> what was lib that added callback() function to a prototype?
16:27 <RLa> so that something.callback('func') gives function that is always run in the context of something
16:27 <tjholowaychuk> .bind()?
16:28 AvianFlu_ joined
16:28 <shlevy> If I were to make an isolate, how would I make code run there have the same setup as a fresh node module, i.e. require() works such?
16:28 <shlevy> bnoordhuis: ^
16:28 <shlevy> And an event loop running, etc.
16:28 <shlevy> Although at that point I may as well have a new process... NEver mind :)
16:29 <tralamaz> hmm module.parent is cached
16:29 lmatteis joined
16:29 <lmatteis> Hello peoples
16:29 maletor joined
16:29 <lmatteis> i was wondering, is there standard abstractions for things such as data storage, or caching
16:30 <RLa> tjholowaychuk, hm, it was for browser too
16:30 <lmatteis> for example, in the Java world, you have JDO/JPA which are solid abstractions around data
16:30 <RLa> .bind seems to be for moderns browsers only
16:30 <tralamaz> is module.parent caching the correct behavior ?
16:30 <lmatteis> is there something similar for the JS world... maybe a CommonJS lib for interfacing with data
16:30 <* jocafa> punches IE
16:31 r1ngzer0 joined
16:31 <RLa> jdo/jpa are for orm and are pretty heavyweight
16:31 jtomasrl joined
16:31 <lmatteis> RLa: and?
16:31 <RLa> lmatteis, npm search orm
16:32 <lmatteis> i know ORM exist
16:32 <lmatteis> that wasn't my question
16:32 hojberg joined
16:32 <lmatteis> JDO/JPA are standard... they're not implementation specific
16:32 nat3 joined
16:32 Wizek joined
16:32 <RLa> no, haven't seen such "specs" of data storage around
16:33 <lmatteis> how about selectjs.com
16:33 <RLa> not sure if we need them at all
16:33 <lmatteis> it sounds pretty cool
16:33 <lmatteis> i think we do
16:33 <lmatteis> especially since JS isn't only node.js
16:33 <lmatteis> it's java (rhino) and many other
16:33 Wizek joined
16:33 <tralamaz> any idea on how to get the calling module (parent) ?
16:34 thinkt4nk joined
16:34 recycle joined
16:34 Littlex left
16:34 laner joined
16:34 <RLa> lmatteis, if it fits your reqs, use it
16:34 kishoreyekkanti joined
16:34 <lmatteis> RLa: it does, however i wanted to see if there was something more community driven
16:34 <lmatteis> or used
16:35 <lmatteis> sort of like what http://narwhaljs.org/ was
16:35 <lmatteis> but it's offline :(
16:35 <lmatteis> oh wait, ringojs
16:35 <RLa> hm, haven't seen
16:35 <jtomasrl> what would be a good linux distro for running a node.js app with mongodb?
16:35 ryanfitz joined
16:36 <RLa> jtomasrl, which one can you administer best
16:36 <lmatteis> jtomasrl: anyone really
16:36 <jtomasrl> even ubuntu?
16:36 <RLa> why not
16:36 <jtomasrl> dunno really
16:36 <lmatteis> jtomasrl: it would be best if you used a more abstracted service though... like heroku... where you don't need to know what distro it's running
16:36 <lmatteis> or nodejitsu
16:37 <dready> ubuntu/or debian, you can't go wrong
16:37 <lmatteis> windows, you can't go wrong
16:37 <jtomasrl> imatteis a VPS its cheapper than a heroku non free service i think
16:37 <lmatteis> nodejitsu is pretty cheap if you ask me
16:38 <dready> windows, lol
16:38 <dready> go learn some FREE unix
16:38 <lmatteis> yeah windows is easier to install :) just double click
16:38 <dready> -_-
16:38 <purr> dready: ಠ_ಠ is an IRC client/IRC client framework.
16:39 disnet joined
16:39 jp232 joined
16:39 estebistec joined
16:39 slloyd joined
16:39 jscheel joined
16:39 cce joined
16:39 cce joined
16:40 extrawurst joined
16:40 disnet joined
16:40 jkyle_ joined
16:41 <dready> lmatteis, the easy install comes with a price, later, when you install packages for node it will be a nightmare, as windows changes file paths, so let's say, you make an app on windows, than you have problems to migrate to the linux server. trust, i've been there. get virtul box, and install ubuntu 10.04 there. now, go, go
16:41 maxani joined
16:41 <lmatteis> dready: not if you know how to write apps/libs correctly
16:41 jp232 joined
16:41 extrawurst left
16:41 <lmatteis> and all libs i've tried work well both on windows and on linux
16:41 <dready> ok then, do what you want
16:42 jergason joined
16:42 shiawuen joined
16:42 <dready> and on't botter with those question again, here 99% of users are unix ones
16:42 <lmatteis> wtf
16:42 <lmatteis> how do you know
16:42 <lmatteis> are you Mr. Statistics?
16:43 <maxogden> dready: node actively supports *nix and windows equally
16:43 tnorris joined
16:43 kishoreyekkanti joined
16:43 <dready> i know it does. i'm just a windows hater, sry
16:43 <jaseemabid> node-gyp is building foo when i'm asking it to build libfoo. Is that indented by any chance? I'm unable to find where that change is happening.
16:43 <lmatteis> but your arguments about the path stuff don't really stand
16:44 <ccowan> dready: WINDOWS BOO! *fist bump!*
16:44 braoru joined
16:44 <jaseemabid> *intended
16:44 <dready> BOO
16:44 <lmatteis> windows rocks. double click. done
16:44 <dready> BOO
16:45 chasefarmer joined
16:45 generalissimo joined
16:45 nat3 joined
16:45 ericelliott joined
16:46 slajax joined
16:46 <ccowan> (althought I'm pretty proud of the node.js community for embracing windows as a first class citizen) *high five!*
16:47 rampr joined
16:47 <jaseemabid> node-gyp ignoring a "lib" in front of my extension name. libfoo => foo, lib_foo => _foo.
16:47 <zipp> lmatteis: npm / nave is for pros
16:48 _pid joined
16:48 etcetera joined
16:48 <lmatteis> zipp: what's nave
16:49 <zipp> lmatteis: A node build management tool. Whenever a new version of node comes out, I just type 'nave usemain 0.8.X' and BOOM, builds the new release for meh
16:49 JordiGH joined
16:49 <lmatteis> ah ok
16:49 <zipp> https://github.com/isaacs/nave/blob/master/nave.sh
16:49 <lmatteis> whatever, double clicking is nicer
16:49 <lmatteis> ;)
16:49 <zipp> Mice have two uses: photoshoop, and gaming :P
16:50 MCHammel joined
16:50 <JordiGH> Do you guys think it's a good idea to correct a self-described "non-programmer" but otherwise brilliant person that "source code" is not a countable noun? (i.e. no "codes").
16:50 <lmatteis> JordiGH: i seriously don't understand your question
16:50 ^_^3 joined
16:50 <zipp> JordiGH lmao, if you care, then yes, but you'll probably look like a dick for doing it
16:51 maxani joined
16:51 <JordiGH> zipp: But if I don't look like a dick, then they will look like clueless n00bs...
16:51 <kuja> I'd say do it :p
16:51 justicefries joined
16:51 <AvianFlu> JordiGH: correct him. you'll be preventing him from looking stupid in front of others at some point in the future.
16:52 <kuja> For the greater good. Don't let people continue to misuse or misunderstand terminology because you didn't want to sound like a dick for correcting him :)
16:52 <JordiGH> Heh, kinda cute you're using the masculine pronoun. The person in question is a woman.
16:52 estebistec joined
16:52 <creationix> just say "that doesn't sound right to me. I'm no english expert, but in proigramming circles we say..."
16:52 <zipp> kuja: what, you don't like "The Google"?
16:53 <* JordiGH> wonders who is an English expert...
16:53 <kuja> I haven't heard that one before :p
16:53 joshontheweb joined
16:53 <lmatteis> are you all from the states?
16:53 regality joined
16:53 <zipp> http://www.youtube.com/watch?v=90DKubFKwVo
16:53 <* JordiGH> was born in *a* state.
16:53 slicky joined
16:53 <creationix> even if you're 100% sure you're right about non-countable nouns, it's less offensive to not sounds like you're sure
16:53 <* lmatteis> wasn't
16:54 <kuja> zipp: hah
16:54 <creationix> s/sounds/sound/
16:54 <slicky> anyone know what's going on with https://github.com/felixge/node-formidable ? It seems to be failing a few tests and current version isn't working :/
16:54 <JordiGH> creationix: Ok, good advice. I'll try to appear unsure about it.
16:54 <lmatteis> look at code and fix slicky :)
16:55 recycle joined
16:55 <slicky> that's the next step... this is information gathering time :D
16:55 <creationix> JordiGH, the important part is to make it obvious that you care more about helping them feel good than making yourself feel smart
16:55 kmiyashiro joined
16:55 <kuja> Last thing I care about are another person's feelings but that's me :p
16:56 <kuja> I'm pretty evil
16:56 <lmatteis> i care about dog's feelings
16:56 <kuja> I care more about my cat's feelings
16:57 <ccowan> I'm not sure my cats care about my feelings.
16:57 <JordiGH> ccowan: Really? I usually see cats being nuzzly with me when I'm sad.
16:57 <zipp> I'm rather sure no cat cares about any puny human's feelings
16:57 cpsubrian joined
16:57 <kuja> Humans are way beneath cats :p
16:57 <kuja> I doubt cats care
16:57 mmeno_ joined
16:58 <cpsubrian> Licensing question: I ripped a function out of https://github.com/c9/architect (MIT) and turned it into a module (https://github.com/cpsubrian/node-witwip) with some API additions (also MIT). How should I give proper attribution to ajax.org
16:58 AviMarcus joined
16:59 mstruk joined
16:59 mstruk joined
16:59 <JordiGH> Doesn't the license itself say?
16:59 <JordiGH> Just don't remove the license header.
16:59 <slicky> what's the npm command to install dev deps?
16:59 <lmatteis> npm install?
16:59 <kuja> yep, `npm install` does it for me
16:59 <slicky> k just checking
16:59 <JordiGH> cpsubrian: "The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software."
17:00 <cpsubrian> meaning.. appended to a LICENSE file? just not sure of the format
17:00 <JordiGH> cpsubrian: No, put it next to the code it's talking about.
17:00 mandric joined
17:00 <cpsubrian> JordiGH, just the copyright?
17:00 <cpsubrian> JordiGH, Since its the same license anyhow
17:01 <JordiGH> cpsubrian: If you want, with a note saying where you got it from. And yeah, legally, just the copyright. Politely, you say a bit more.
17:01 <JordiGH> cpsubrian: It needs
17:01 stisti joined
17:01 <cpsubrian> JordiGH, Sure.. thats the whole point of my question :) trying to be a good osscitizen
17:01 <JordiGH> cpsubrian: It needs a copyright notice. It's not copyrighted to you.
17:01 <slicky> wonder what the legal implications of `cat "\n\nJust kidding!" >> LICENSE` are
17:01 EvilPacket joined
17:01 dshaw_ joined
17:01 <JordiGH> cpsubrian: The license says, "the copyright notice and this permission notice.."
17:01 apham joined
17:02 <lmatteis> sup dshaw_ :)
17:02 sreeix joined
17:02 mandric joined
17:02 halfhalo joined
17:03 mmeno_ joined
17:03 crabdude joined
17:03 emattias joined
17:04 luigy joined
17:04 <dshaw_> lmatteis: buon giorno
17:04 disnet joined
17:04 <lmatteis> giorno :)
17:04 <lmatteis> dshaw_: how's it going
17:05 <dshaw_> per me
17:05 <dshaw_> good
17:05 <lmatteis> dshaw_: you know, i'm going to lisbon next month, i see you're going as well?
17:05 <lmatteis> for lxjs
17:05 Nopik joined
17:05 <maxogden> isaacs: figured out that npm.commands.install returns an array of all the flattened deps that were installed
17:05 <isaacs> maxogden: yeah
17:06 <dshaw_> lmatteis: Fantastic. Yep. Giving a new talk and doing a workshop with mikeal
17:06 <isaacs> maxogden: the return values from the various commands are pretty inconsistent
17:06 thinkt4nk joined
17:06 <isaacs> maxogden: it'd be nice to make them more consistent, and also display the results consistently using archy
17:06 <maxogden> isaacs: yea npm.commands.install(['request']) returns an array of arrays instead of an array of objects WTF
17:06 <maxogden> also only accepts arrays of package names
17:06 <dshaw_> lmatteis: Look forward to catching up.
17:06 <isaacs> maxogden: npm.commands.* functions all take ([args], cb)
17:06 <maxogden> isaacs: wat is archy
17:06 <lmatteis> dshaw_: awesome! yes we definitely should hang out
17:07 <isaacs> or maybe ([args,...], silent=false, cb)
17:07 <isaacs> (another incosnsitency)
17:07 vincentcr joined
17:07 joshontheweb joined
17:07 <isaacs> maxogden: archy = substack module for showing npm ls style trees
17:07 <maxogden> isaacs: i gave it ([args], cb) and it worked
17:07 <isaacs> maxogden: yeah
17:07 Yuffster_fun joined
17:07 <isaacs> install is an odd duck...
17:07 revans joined
17:07 <isaacs> it takes install(where, what, cb), or install([what,...], cb)
17:08 mmeno_ joined
17:08 <lmatteis> dshaw_: how's life? voxer doing ok?
17:08 <maxogden> isaacs: you wouldnt support install(['request'], cb) and install('request', cb) ?
17:08 vincentcr joined
17:08 JordiGH left
17:08 <isaacs> maxogden: if anything, i'd like to move to install(['request'], [optional silent=false], cb)
17:08 ngoldman joined
17:09 <maxogden> isaacs: thats what it does now, right?
17:09 <isaacs> maxogden: and then something like install.where(prefix, ['request'], cb)
17:09 <isaacs> maxogden: install doesn't take a silent arg, no
17:09 <maxogden> isaacs: oh
17:09 <isaacs> maxogden: but most other commands do
17:09 <dshaw_> lmatteis: Love it. Just wrapping up the Summer of Node.js program. Had a great summer.
17:09 <isaacs> (that produce output)
17:10 pringlescan joined
17:10 <lmatteis> dshaw_: ah nice. i've been quite out of the loop with node recently... but i see everything is still quite vibrant
17:11 julienresaas joined
17:11 <slicky> hrm odd
17:11 revans joined
17:11 <slicky> this fix really can't be that simple
17:11 jw___ joined
17:12 octane-- joined
17:12 octane--_ joined
17:13 hojberg joined
17:13 wizonesolutions joined
17:14 willwhite joined
17:14 mlins joined
17:14 rampr_ joined
17:14 <maxogden> isaacs: i think we should adopt bill and teds mantra: "be excellent to each other"
17:15 recycle joined
17:16 mritz_ joined
17:18 khrome joined
17:18 nullunity joined
17:20 bingomanatee joined
17:21 srl295 joined
17:22 <ccowan> Funny thing... I dropped in on our troll's twitter acount to see if he had dropped it yet... Nope. still going strong.
17:22 TooTallNate joined
17:22 LambdaDusk joined
17:22 stevengill joined
17:23 <LambdaDusk> hi... my socket.io app seems to reconnect some users from time to time... what can I do to make that smoother (like, not a complete re-log or something)
17:24 marsulle joined
17:24 <isaacs> maxogden: yes.
17:24 <isaacs> maxogden: it's very aristotelian
17:24 AvianFlu joined
17:24 <isaacs> maxogden: in order to be excellent to each other, we must be excellent, and accept and expect the excellence of others.
17:25 estebistec joined
17:25 sx joined
17:26 josh-k joined
17:27 pretty_function joined
17:28 <ccowan> isaacs: After reading your responses to *he who should not be mentioned* and the article about Node/Joyent/Crockford... I have to say you've impressed me.
17:28 yanush joined
17:28 ibash joined
17:29 devsharpen joined
17:29 luckysmack joined
17:29 <konobi> seems like he's been quiet for a couple of days
17:31 serapath joined
17:31 salsamontes joined
17:32 beachdog joined
17:33 brad-work joined
17:33 <luckysmack> if i have a package cloned from a repo, and i can successfully run `npm install && sudo npm link`, and is shows the file was linked at `/usr/bin/myPackage -> /usr/lib/node_modules/myPackage/bin/myPackage`, why would it then fail when running the 'myPackage' command by saying: "Error: Cannot find module '../lib/myPackage'" ?
17:34 <luckysmack> no matter where i run the command, it look for the command in "../lib/myPackage"
17:34 hotch joined
17:34 keeto joined
17:35 shanecowherd joined
17:35 LambdaDusk left
17:37 joshontheweb joined
17:38 hakunin joined
17:38 zeppo joined
17:38 hakunin joined
17:39 TomWij joined
17:40 innociv_ joined
17:42 jrundquist joined
17:42 jrundquist1 joined
17:42 tasslehoff joined
17:43 hillct joined
17:44 livinded joined
17:44 fritzy joined
17:45 josh-k joined
17:46 samholmes joined
17:46 zackiv31 joined
17:46 jryans joined
17:46 kaspertidemann joined
17:47 knkumar joined
17:48 arlolra joined
17:49 uberj joined
17:50 rafmc joined
17:50 jefferai joined
17:52 jbueza joined
17:53 cgfuh joined
17:53 dstegelman joined
17:54 dstegelman left
17:54 epa_ joined
17:55 thunderstrike joined
17:55 Morkel joined
17:55 laner joined
17:58 jetienne joined
17:58 <uberj> hey, I'm trying to connect to an irc server with ssl and I'm getting the error "Hostname/IP doesn't match certificate's altnames". I tried running 'npm config set strict-ssl false' but it didn't fix anything. How can I tell node's irc library to ignore any ssl issues?
17:59 rafmc joined
17:59 <maxogden> isaacs: would you recommend using engines in package.json to mark a package as a (for instance) phonegap plugin
17:59 <uberj> I'm really sure that telling npm did anthing, google recommened it.
18:00 jefferai joined
18:00 <maxogden> isaacs: or to phrase the question in another way: y u no liek engines?
18:00 <jetienne> isaacs: my name is corrupted in npmjs.org database. how can i fix that ?
18:01 <jetienne> isaacs: i am here https://npmjs.org/package/gowiththeflow but https://npmjs.org/~jetienne return 500. what should i do ?
18:01 recycle joined
18:01 exien joined
18:02 ibobrik joined
18:02 dgathright joined
18:03 idiomatique joined
18:04 <exien> Hi all, the mysql package (which i'm using for db access) throws an exception if the database goes down it. But how am I supposed to return an error callback from my model to close the request if I never get a chance to do so?
18:04 <cpsubrian> Does travis delete/ignore 'node_modules' directories. I have a 'node_modules' directory inside my 'test/' dir that has some placeholder stuff and my tests are failing in travis
18:04 YoY joined
18:05 broofa joined
18:05 <uberj> lib/tls.js line: 1255
18:05 Fodi69 joined
18:05 <uberj> how do I make node not raise that error
18:05 <uberj> I don't feel like compiling my own version of node
18:06 <ccowan> exien: did the app.use(function(err, req, res, next()) { ... }); not work?
18:06 bwinton_ joined
18:06 <scott_gonzalez> isaacs: Are there any known issues with module names that require dots?
18:06 <Fodi69> is it insane thing to write async code with callbacks for syncronous things, for example on models?
18:06 <scott_gonzalez> s/require/contain/
18:07 <exien> ccowan: No, because that catches any errors that are bubbled up through callback checks
18:07 jzaefferer joined
18:07 <TooTallNate> scott_gonzalez: socket.io is one of the biggest ones so i'd think it's ok
18:07 <scott_gonzalez> TooTallNate: good point, thanks
18:07 Apage43 joined
18:08 <ccowan> oh... so you will need to just catch the error with a try { } catch (e) { } and then in the catch execute callback(e)
18:08 <ccowan> that way it will be returned via the callback and the route will catch it
18:09 <exien> ccowan: ccowan: I wrapped the base mysql connection.query() function with a try, and catch, but it didn't catch anything
18:09 euforic joined
18:09 <Fodi69> is it insane thing to write async code for syncronous things, for example on model manipulation functions?
18:09 <ccowan> exien: it's being thrown from the mysql.query
18:09 <exien> ccowan: i'll try again
18:09 <ccowan> oh
18:09 lbljeffmo joined
18:10 <ccowan> I just saw your connection.query()
18:10 <ccowan> Look at the trace route to see where the exception is being thrown.
18:11 <livinded> score! Apparently we're starting functional fridays at work. Gonna learn me some Haskell
18:11 jjbohn joined
18:12 <maxogden> haha sweet
18:12 jryans joined
18:12 <exien> ccowan: here's the trace: https://gist.github.com/3501589
18:13 vvgomes joined
18:13 <ccowan> what's line 43 look like?
18:13 <ccowan> in server.js
18:13 <exien> 42 process.on('uncaughtException', function(err) { 43 console.trace(); 44 console.log('uncaughtException'); 45 console.log(err); 46 });
18:13 jxson joined
18:14 <ccowan> can you replace console.log(err) with console.log(err.stack);
18:15 oriben joined
18:16 jmerlin joined
18:17 h4mz1d joined
18:17 vitor joined
18:17 <exien> ccowan: https://gist.github.com/3501648 is the full stack
18:18 margle joined
18:19 <EdwardIII> mysql? old school :)
18:19 <ccowan> exien: so it looks like it's craping out on the session stuff
18:19 ramitos joined
18:19 AvianFlu joined
18:19 <exien> ccowan: yeah I never realized that before
18:19 <exien> ccowan: interesting
18:19 ryanj joined
18:20 <ccowan> which is going to make it tricky for you to catch and close the connection since that happens at the beginning of the request
18:20 <exien> can you recommend a better session store? does't have to be mysql
18:20 <konobi> redis?
18:20 <EdwardIII> that was just a joke exien sorry, heh
18:20 <ccowan> I use connect-redis
18:20 <EdwardIII> i'm really just using node to play so i want a nice futuristic stack
18:20 rampr joined
18:20 <exien> and connect-redis handles db disconnects well?
18:20 smithrobs_ joined
18:21 <EdwardIII> (i usually use django for custom stuff, and in reality spend most of my time knee-deep in the guts of magento)
18:21 <ccowan> I haven't had issues
18:21 `3rdEden joined
18:21 <exien> EdwardIII: just become something is new and fancy in the tech world doesn't mean we should be using it for production products :)
18:21 <EdwardIII> exien: i agree entirely ^
18:21 idiomatique_ joined
18:21 saikat joined
18:21 <exien> ccowan: k I'll give it a try and see if its part of my problem, thanks
18:22 <EdwardIII> i was looking at redis, from what i can see redis and mongodb operate in exactly the same problem space, it's not a case of horses for courses?
18:22 brianc joined
18:23 <ccowan> exien: to be honest with you the only reason I'm using connect-redis instead of just using cookies for my session stuff is because usign cookies for session stuff in PHP is really a pain in the ass.
18:23 <ccowan> exien: and we have to share sessions with php (for now)
18:23 <EdwardIII> ccowan: interesting
18:24 <EdwardIII> ccowan: are you using redis for pub/sub?
18:24 <ccowan> EdwardIII: nope... it's mainly used for leaderboards, counters, feed listings, etc
18:24 <ccowan> redis is awesome at lists
18:24 `3rdEden joined
18:24 <EdwardIII> cool cool
18:25 <ccowan> we started with sessions to just get our toes wet
18:25 <EdwardIII> and PHP accesses redis to pull session info when it needs?
18:25 <ccowan> yup
18:25 <ccowan> I wrote an session addpator for PHP that works just like connect-redis
18:26 <EdwardIII> cool
18:26 brianc1 joined
18:27 <EdwardIII> i don't need to make php talk to node/nosql, but i have a feeling i might do with django later down the line
18:27 automata joined
18:27 Fodi69 left
18:27 jonaas joined
18:28 jonaas left
18:28 <ccowan> For us we are incrementally replacing functionality in PHP with Node.js
18:28 cpsubrian joined
18:28 jonaas joined
18:28 _roland joined
18:28 TheHippo joined
18:29 mattgifford joined
18:29 <EdwardIII> ccowan: are you able to say what your project is?
18:29 <jonaas> hi, should I use async code for syncronous things, to be future proof? for example if I want to log, or add async functionality later?
18:29 <tlack> thats what i need to do, but i feel like node isnt easy to host alongside php cuz the hosting config is so diff
18:29 <ccowan> yup... http://www.plus3network.com
18:30 <exien> ccowan: what's the primary reason for switching from php to nodejs?
18:30 <samholmes> Wait, pbkdf2 is native? :o
18:30 <tlack> jonaas: can you restate your question a different way? node will probably never go sync, if thats what you are asking
18:30 <EdwardIII> ccowan: and it's even for a good cause :)
18:30 <ccowan> PHP code was writen by 2 different teams and it's a huge mess.
18:30 totallymike joined
18:31 <exien> ccowan: did they use a framework at least?
18:31 <jonaas> I mean writing my code with callback even if I don't use any async functionality (no file read etc)
18:31 <tlack> node is more fun anyway
18:31 <exien> ccowan: php can be a mess without a good framework
18:31 stisti joined
18:31 <EdwardIII> hrm i should rip jade out and replace it with ejs before i go any further, have to admit i'm not loving jade
18:31 <tlack> jonaas: in general i'd say dont write it before you need it
18:31 <exien> tlack: yes node may be more fun, but I'm still not in love with a million callbacks everywhere
18:31 <ccowan> exien: yeah... they used limonade but wrote their own ORM (whcih really sucked)
18:32 <tlack> exien: that is true but it also helps you structure your code in tiny fragments.. which can be nice at times. for instance, refactoring can be easier
18:32 lbljeffmo_ joined
18:32 <jetienne> exien: node got a bunch of sync function in files system
18:32 <jonaas> but than the whole error handling things is very different, so I have to rewrite many lines if I add async tlack
18:32 <tlack> exien: depends on the nature of the project though. if i had a ton of sql stuff to do before outputting anything, i'd probably die
18:32 <exien> jetienne: yes, but you don't want to use them otherwise the server pauses
18:32 <ccowan> I'm also really tired of writing PHP and I really love JavaScript
18:33 <jetienne> exien: hehe :)
18:33 <jetienne> exien: well you want sync or not :)
18:33 <jetienne> exien: you have the butter and the butter money as we say here :)
18:33 <exien> :)
18:33 <nkuttler> is there some preferred method for watching and (re)spawning node processes?
18:33 <tlack> nkuttler: 'forever' is the most popular one i think.
18:33 <EdwardIII> jetienne: what does that mean?
18:34 <nkuttler> tlack: will look into it, thanks
18:34 <EdwardIII> ah i think i see
18:34 <tlack> nkuttler: i like 'node-dev' too
18:34 <EdwardIII> like 'you can't have your cake and eat it too'
18:34 cpg|away joined
18:34 <jetienne> EdwardIII: it is hard to get both side of the coin when you flip one
18:34 <jetienne> EdwardIII: yeah seems like it
18:34 <nkuttler> oh, node-dev looks useful, was actually looking for something like that
18:34 <jonaas> Should I write a function with callbacks, even if I don't use asyncronous functionality in a whole function, to be future-proof?
18:35 zeppo joined
18:35 <jonaas> nkuttler: nodemon?
18:35 Country joined
18:36 <samholmes> I'm thinking of generating a hash for a forgot your password feature. The hash is sent to the user's email address and they click on a link with the hash in it.
18:37 maxani joined
18:37 <samholmes> Should I just use pbkdf2 to generate the key/hash?
18:37 broofa joined
18:37 mandric joined
18:37 <samholmes> and how many iterations is 0.1s worth of work when using pbkdf2?
18:38 chm007 joined
18:39 hammon joined
18:39 aslanted joined
18:40 vincentcr joined
18:41 <jonaas> Should I write a function with callbacks, even if I don't use asyncronous functionality in a whole function, to be future-proof?
18:41 niloy joined
18:42 <samholmes> jonaas: if you plan on using async in the future, then you could use a callback
18:42 <EdwardIII> hrm i've installed ejs in the node_modules dir in my project, but i'm seeing Error: Cannot find module 'ejs'
18:43 <jonaas> samholmes: I think I want to log things in the future, and that should be async
18:43 aliem joined
18:43 <samholmes> EdwardIII: that's weird.
18:43 <jonaas> samholmes: but not in plan yet
18:43 <samholmes> jonaas: Yeah, I usually write using a callback to remain consistent.
18:44 IrishGringo joined
18:45 <samholmes> AAA_awright: I didn't know pbkdf2 was native.
18:45 <samholmes> AAA_awright: I think I'm going to use that instead of bcrypt. But, I'm not sure what's the best way to use it.
18:46 <EdwardIII> hrm, frustrating
18:46 EhevuTov joined
18:46 <EdwardIII> seems to find connect-mongodb OK in there
18:46 <samholmes> EdwardIII: could you post your directory structure on a pasting site?
18:46 Nopik joined
18:46 jasonkuhrt joined
18:47 griotspeak joined
18:47 grallan joined
18:48 <EdwardIII> samholmes: sure... here it is: https://gist.github.com/3502160
18:49 joshthecoder joined
18:49 ParadoxQuine joined
18:49 laner joined
18:49 jp232 joined
18:51 jtomasrl joined
18:51 recycle joined
18:51 <EdwardIII> hrm why can't i find any examples of how to have an ejs layout type template heh
18:52 CatalinH joined
18:52 <isaacs> ircretary: tell jetienne Run npm adduser, or create your account at https://npmjs.org/signup
18:52 <ircretary> isaacs: I'll be sure to tell jetienne
18:52 <jtomasrl> i've manage to install a vm with node.js and tranfer my app, but how can i access to it from outside the vm from the browser? i've done "node index.js" servers is up but can acces through xx.xx.xx.xx:3000 from my web browser
18:53 rwaldron joined
18:53 idiomatique joined
18:54 taky1 joined
18:54 <jtomasrl> nvm solved :)
18:55 jlank joined
18:55 jasonkuhrt joined
18:55 luigy joined
18:56 bmatusiak joined
18:56 octane-- joined
18:56 <tlack> EdwardIII: like "partials"? maybe something like this? http://stackoverflow.com/questions/5404830/node-js-ejs-including-a-partial
18:57 lbljeffmo_ joined
19:00 <AAA_awright> samholmes: http://git.bzfx.net/~aaa/magnode.git/tree/lib/authentication.pbkdf2.js
19:00 willwhite joined
19:00 graeme_f joined
19:00 hammon joined
19:02 AvianFlu joined
19:02 <AAA_awright> Additionally when I'm implementing the login, I make sure that an unsuccessful authentication returns the page after exactly 250ms, unless it's an unrecoverable server-side error maybe
19:02 joshontheweb joined
19:02 mmalecki joined
19:03 _Renegade joined
19:03 taky1 left
19:03 necros joined
19:04 Taar779_w1 joined
19:04 <EdwardIII> tlack: hrm i wouldn't want to include my entire header and footer on every template though heh
19:04 malkomalko joined
19:04 jryans joined
19:05 <EdwardIII> tlack: unless that's the best way to do it? actually <% header() %>...<% footer %>, seems pretty daft though
19:05 taky joined
19:05 Taar779_w1 left
19:05 <EdwardIII> can't seem to find any examples of someone just... creating a normal app on express using ejb and a consistent header/footer everywhere
19:05 <EdwardIII> seems like the hello world for a templating engine
19:05 davidcoallier joined
19:05 hammon2 joined
19:05 <tlack> i have an example i can show you but it uses Dust and not EJS..
19:06 mikeal joined
19:06 Taar779_w joined
19:06 <jaseemabid> How do i delete a project published to npm?
19:06 ojon joined
19:06 <tlack> EdwardIII: also check this: http://stackoverflow.com/questions/7317359/newbie-questions-about-partials
19:06 <EdwardIII> tlack: always keen to see other peoples' work
19:06 <jaseemabid> How do i delete a project published to npm?
19:07 <AAA_awright> jaseemabid: Why would you want to do that
19:07 <jaseemabid> This page[https://npmjs.org/doc/rm.html] is throwing couchDB errors. Somebody fix it up?
19:07 <konobi> jaseemabid: unpublish
19:07 <jaseemabid> AAA_awright, duplicate
19:07 <EdwardIII> hrm he says 'The layout and partials should get pulled in automatically.'
19:07 <tlack> EdwardIII: here's some random crap i used for a while.. been shifting to hogan instead of dust but whatever https://bitbucket.org/tlack/express-dust-boilerplate
19:07 <AAA_awright> <https://npmjs.org/doc/rm.html>
19:07 <EdwardIII> oh i think i see
19:07 hojberg joined
19:08 <EdwardIII> hrm sucks i have to make a seperate header and footer though heh
19:08 <exien> ccowan: I'm pretty sure I've found the culprit, it's my session store
19:08 <EdwardIII> makes me feel... wordpressy
19:08 wingy joined
19:08 nat3 joined
19:08 luigy joined
19:08 <exien> ccowan: sessions are being continually created, I've got 25K session and less than a dozen users
19:09 <tlack> EdwardIII: you dont have to have them separate. he did that on purpose to minimize the size of each template (partial). note the output of <%- body %>
19:09 joshontheweb joined
19:09 <jaseemabid> Please have a look at this screenshot
19:09 <jaseemabid> http://i.imgur.com/YsNvF.png
19:09 <AAA_awright> EdwardIII: Usually you have a template for the entire page, and then include the endire body/page contents as a variable within that
19:09 variable_ joined
19:09 sjonnet joined
19:09 taky left
19:09 <EdwardIII> oh ok
19:10 <variable_> hi
19:10 <EdwardIII> thing is, it just seems to be calling my index.ejs directly, not applying the layout.ejs file
19:11 <EdwardIII> porting from jade to ejs: https://gist.github.com/6600a8dfc5c90a88127e
19:12 fibo joined
19:12 vitor joined
19:12 <EdwardIII> here's where i call the index: https://gist.github.com/3502687
19:13 <samholmes> AAA_awright: What do I generate the creditial with?
19:13 recycle joined
19:13 <fibo> hi all, i have a question about socket.io
19:13 <AAA_awright> samholmes: var credential = {password:"password"}
19:13 eckoit joined
19:13 <fibo> I can emit an event passing a function as a parameter
19:14 <AAA_awright> record is the database record
19:14 <drudge> EdwardIII: express 3?
19:14 <samholmes> AAA_awright: Hmm. But I'm trying to generate a random string as a key to access the password reset form.
19:14 <AAA_awright> Modify some to suit your needs
19:14 <maxogden> functions are objects and event emitters emit objects
19:14 lz joined
19:14 <variable_> i have problem by npm install express and npm install -g express . then if use var e=require('express'); print message that . can not find module express
19:14 <EdwardIII> drudge: yep
19:14 <AAA_awright> samholmes: module.exports.generateRecord({password:"password"}, callback)
19:14 <EdwardIII> 3.0.0rc2
19:15 <variable_> i have problem by npm install express and npm install -g express . then if use var e=require('express'); print message that . can not find module express
19:15 <AAA_awright> That returns your record to insert into the database
19:15 zackiv31 joined
19:15 <tjholowaychuk> variable_ install it locally, not with -g
19:15 <fibo> than in my app.js I can catch that event and execute that function ... suppose console.log('foo')
19:15 hrchak joined
19:15 <AAA_awright> variable_: Don't use -g ?
19:16 <fibo> it executes on my client console, even if I launch it from server. I CAN'T EXPLAIN THAT!!!
19:16 <samholmes> AAA_awright: That's not what I'm asking. I know I can input a password into this function and have it return the encryption. What I'm asking is what should I use to generate random hashes, not passwords, securily?
19:16 <variable_> npm install express? i test this but ...
19:16 <EdwardIII> variable_: do it in your home dir
19:16 <AAA_awright> samholmes: That's the function, generateRecord
19:16 <EdwardIII> variable_: ...assuming you're using something like linux?
19:16 <AAA_awright> samholmes: It takes a password and outputs a database record
19:16 tmpvar joined
19:17 <samholmes> AAA_awright: I know. I don't have a password.
19:17 <variable_> i am using window xp
19:17 milani joined
19:17 iapain joined
19:17 LiveFreely joined
19:17 <EdwardIII> ah
19:17 <AAA_awright> samholmes: ... so what are you using to authenticate a user?
19:17 <tlack> samholmes: i usually just generate a random string and store it in the users database record. you could also hash their userkey and password, or something like that
19:17 <samholmes> AAA_awright: Maybe I should just make a shasum and then input that into the system?
19:17 __underscore joined
19:17 <AAA_awright> samholmes: NO
19:17 __underscore left
19:17 <EdwardIII> i'm not really familiar with how to install node modules on windows... maybe have a little google on that topic?
19:17 <luckysmack> anyone in here use azure? getting a publishing error and need to to track it down. https://gist.github.com/3502800
19:18 laner joined
19:18 butu5 joined
19:18 <tlack> EdwardIII: 'npm' has always worked fine for me on windows (amazingly)
19:18 <milani> isaacs: ping
19:18 <EdwardIII> tlack: just a case of installing to %HOME%?
19:18 <samholmes> AAA_awright: If a user forgot their password, I need to send them a link with a specific hash. When they click the link, the hash is matched against the encrypted version of the hash in the db.
19:18 <isaacs> milani: yo
19:18 <tlack> EdwardIII: no idea. 'npm install express' puts it in the cwd, as expected
19:18 <EdwardIII> heh
19:18 <AAA_awright> samholmes: User sets a new password. Pass the password to generateRecord, store result in database. User logs in with a password. Pull record from database, pass record and supplied password to compareCredential
19:18 <isaacs> milani: what's the spam protection thing you're tlaking about?
19:18 butu5 left
19:19 <samholmes> if it matches, then allow them to change their password.
19:19 constantx joined
19:19 butu5 joined
19:19 <milani> isaacs, two or three days ago I tried to upload three or 4 appjs packages one after another
19:19 <variable_> must run install in this path : C:\Program Files\nodejs
19:19 <variable_> ?
19:19 <milani> isaacs, after publishing the third one, npm returns unauthorized access
19:19 <tlack> variable_: no, it will create node_modules wherever you run it
19:19 <milani> for each package I want to publish or even install.
19:19 <tlack> samholmes: you're overthinking this. :)
19:20 <milani> someone suggested it is an spam protection
19:20 <isaacs> milani: what version of npm?
19:20 <AAA_awright> samholmes: Same thing goes for email recovery... Generate a password-reset URL, use that to hash it and store it in the database. When the user goes to that URL, compare it to the record in the database.
19:20 <* EdwardIII> wonders
19:20 <samholmes> AAA_awright: I understand that part. But, if they want to _reset_ their password, the system needs to send a link _only_ to _their_ email and with a specifically _encrypted_ hash that verifies the link.
19:20 <isaacs> milani: npm -v
19:20 <milani> 1.1.46
19:20 butu5 left
19:20 <isaacs> milani: oh, it's just that your token timed out
19:20 <isaacs> milani: and it's not re-authing properly
19:20 <isaacs> milani: you just got lucky and saw the exact moment it happened :)
19:20 <tlack> samholmes: you just need an unguessable hash of anything that you can use to find their account. it doesnt have to be the encrypted password
19:20 <isaacs> milani: update npm
19:20 <samholmes> AAA_awright: Right... how do I do the generating of the password-reset URL part?
19:20 <isaacs> milani: or just remove the `[_token]` section fro m ~/.npmrc
19:21 <milani> yeah I did that but I should remove it each time
19:21 <milani> after publishing a package
19:21 <milani> ok so I update npm.
19:21 <samholmes> tlack: If I just used a shasum for the url generating, then someone could brute force it regardless of whether I compare it to an encrypted version in the database.
19:21 <EdwardIII> heh ok i can't figure out why ejs/express.js isn't loading layout.ejs
19:21 <* EdwardIII> goes about picking open express.js
19:22 <tlack> samholmes: do you know how long it would take to perform 160bits worth of http requests
19:22 <isaacs> milani: yeah, it's just a bug. it's not updating the token when it expires.
19:22 <AAA_awright> samholmes: That's something you have to implement. When a user navigates to http://example.com/~username/passwordreset?token=sometoken, you need to look up the passwordReset token in the database, pass sometoken and the passwordReset record to the compare function
19:22 hrchak joined
19:22 cjm joined
19:22 <samholmes> AAA_awright: Yeah. The token needs to be something secure though, or do you think a shasum is secure enough of a token in this case?
19:23 <milani> isaacs, lol. so I was misguided!
19:23 <AAA_awright> NO
19:23 <samholmes> AAA_awright: then what would be a secure enough token?
19:23 <AAA_awright> samholmes: The token in the URL is plaintext. It's functionally the samed as a password
19:23 <AAA_awright> *same as
19:23 justicefries joined
19:23 <samholmes> eh, right.
19:24 <tlack> AAA_awright: it's a link in an email sent only to them, and that link lets them act as the account owner, of course it's the same as a password..
19:24 <sjonnet> Would this be a good place to ask questions about issues related to setting up a NPM mirror?
19:24 <AAA_awright> And it should have 128 bits of randomness just so it's not the weak link in the security chain
19:24 <samholmes> The plain text could be a shasum...I'm still going to compare the shasum to the pbkd2f APIs
19:25 <isaacs> milani: a little bit, but it's ok :)
19:25 <AAA_awright> samholmes: You never ever use SHA-* except for authenticating contents of a file/packet
19:25 <samholmes> AAA_awright: My question is, how do I generate this 128bits of randomness?
19:25 adrianlang joined
19:26 <AAA_awright> samholmes: crypto.randomBytes(16).toString('hex')
19:26 <CIA-1> node: 03isaacs 07v0.9.1-release * r766a6ff 10/ (ChangeLog src/node_version.h): wip - http://git.io/Ycpvpg
19:26 estebistec joined
19:26 tomshreds joined
19:26 <AAA_awright> Note that Math.random is NOT cryptographically secure
19:27 <samholmes> AAA_awright: I have made that note from your previous statement on that. ;)
19:27 recycle joined
19:27 baconseason joined
19:27 <samholmes> I see. That's all I was asking.
19:27 <AAA_awright> It bears repeating for the sake of the record :)
19:27 <baconseason> hey y'all. got a question about connect's csrf middleware.
19:27 <samholmes> I was thinking of 256 as the param for randomBytes, but I suppose that's unnecessary
19:27 <baconseason> what do I do if I want to use csrf protection, but also need to have an exposed endpoint for external webhook listening?
19:27 <samholmes> AAA_awright: I appreciate the redundency actually. :D
19:27 <tlack> man i hope your project is lucky enough to be the target of these intense random number generator attacks
19:28 Xeon06_ joined
19:28 <Xeon06_> Hey folks
19:28 <AAA_awright> That's way overkill yeah, I could imagine it introducing new attacks
19:28 <samholmes> redundancy*
19:28 <Xeon06_> My Node server is randomly stopping, and I can't figure out why. All there is in the logs is well, my own stuff. No JS errors
19:28 baconseason joined
19:28 bernaman joined
19:28 <samholmes> AAA_awright: how could it introduce new forms of attacks by being overkill?
19:28 <AAA_awright> The RNG probably only has 128 bits of internal state anyways
19:28 <Xeon06_> I notice some modules I am using have console.logs in them but I don't see that in my stdout. Is there somewhere else I can look?
19:28 <samholmes> RNG?
19:29 saikat joined
19:29 <samholmes> random number generator
19:29 <milani> Xeon06_, maybe they have verbosity settings.
19:29 <etcetera> moin
19:29 zackiv31 joined
19:29 Ziggy` joined
19:29 <AAA_awright> samholmes: the Random Number Generator, I wouldn't be suprised if there's some attack on it where requesting lots of numbers starts leaking information about the internal state
19:30 ecto joined
19:30 <Xeon06_> milani: Right, but there is nothing built in node itself, no hidden error files or any of the sort?
19:30 dejanr joined
19:31 <samholmes> AAA_awright: You mean the larger the hex string is, the more information about the internal state a attacker could begin to decypher?
19:31 jasonkuhrt joined
19:31 <tlack> Xeon06_: random question.. when you launch your app, are you logging to a file, and if so, are you using 2>&1? maybe you arent seeing stderr..
19:31 <milani> Xeon06_, no.
19:31 laner joined
19:31 <Xeon06_> tlack: I am using nohup
19:32 <dejanr> join ruby
19:32 <Xeon06_> tlack, milani: I used to have JS errors that would make it "crash" and I would see those fine in the log. But now it just shuts down randomly iwthout anything
19:32 <milani> Xeon06_, they can also override console.log and implement it to redirect in a file.
19:32 <AAA_awright> Maybe if it was a weak generator like Math.random
19:32 <AAA_awright> Don't worry about it
19:32 <tlack> dejanr: traitor
19:32 estebistec joined
19:32 mikedeboer joined
19:33 <dejanr> tlack: missclicked sorry mate
19:33 <milani> Xeon06_, oh that maybe a logical error, when process has nothing to do it exists.
19:33 AvianFlu joined
19:33 justicefries joined
19:33 <AAA_awright> Xeon06_: You sure you have a server that's listening on a socket? You're not closing the socket, or calling exit() anywhere?
19:34 <samholmes> AAA_awright: How large does my db column have to be to hold the record generated by generateRecord?
19:34 <context> http://www.youtube.com/watch?v=sp5M9K3wZcY
19:34 <AAA_awright> If you don't have a server listening on a port, the other problem could be a function call which is supposed to return a callback, isn't calling the callback in some cases
19:34 <Xeon06_> milani, AAA_awright this occured to me. But I am using Faye (http://faye.jcoglan.com/)(not my pick), and I figured it would stop it from ending
19:35 <variable_> very very thanks. i understand. how it work. very very thanks
19:35 <variable_>
19:35 <variable_> :D
19:35 <tlack> Xeon06_: really weird man. can you get it to happen on command? i used to have that issue with mysql timing out after a few hours on a project of mine. i had it wrapped in node-dev so i never noticed
19:35 <AAA_awright> samholmes: Not sure exactly, call generateRecord and see how long the output is
19:35 <Xeon06_> Right, so its likely then that the server is simply ending without error, just because its done doing everything
19:35 <AAA_awright> I also have a column storing the type
19:35 <bnoordhuis> mikedeboer: i lost the link to the gist
19:35 <Xeon06_> tlack: I wish I could. I don't know what causes it
19:35 Domenic_ joined
19:35 <AAA_awright> <http://faye.jcoglan.com/>
19:36 <tlack> Xeon06_: next time you restart, run as node myapp.js 2>&1 | tee -a log.txt
19:36 <tlack> Xeon06_: then review that, maybe you're missing something somehow
19:36 bernaman left
19:36 scwh joined
19:36 jetienne joined
19:36 <dejanr> guys how do you migrate or increementally update redis servers, is there something like migrations for redis and node
19:37 clooth joined
19:37 margle joined
19:37 jrundquist joined
19:38 yanush joined
19:38 <bnoordhuis> mikedeboer: nvm, have it again :)
19:39 jrundquist left
19:39 <jetienne> isaacs: fixed, thanks
19:39 serapath joined
19:39 exien joined
19:40 <Xeon06_> tlack: Yeah, I am now just running it as is, and logging it, and just watching it go. But it can take as much as 2 hours haha
19:40 <Xeon06_> I'm suspecting the issue is Faye
19:40 <Xeon06_> And I'm just piling the excuses not to use it anymore anyways
19:40 revans joined
19:41 <mscdex> is it just me or is it odd that assert.doesNotThrow() accepts an 'error' argument? and why is it documented?
19:41 <mscdex> if you're assuming it's not going to throw, why would you validate an exception message?
19:42 <mscdex> :S
19:44 CannedCorn joined
19:44 RORgasm joined
19:44 <samholmes> AAA_awright: 119 characters? :\
19:44 <samholmes> Is it variable length or is it always the same?
19:44 <AAA_awright> Should be the same, why's it matter?
19:45 <samholmes> I need to know what length to set my DB column
19:45 wangbus^ca joined
19:45 <samholmes> it's a sql based system
19:45 <AAA_awright> No, allow for an expandion by at least 6 more characters or so, the length of the hash and the number of iterations are variable
19:46 livinded joined
19:46 <AAA_awright> If you wanted to store it as a binary blob you could save about 1/3 the space
19:46 <chrisjaure> did nodeup move? i'm getting a 404 http://nodeup.com/
19:46 ecto left
19:46 <AAA_awright> Make sure you throughly test that though, opaque code is a possible attack vector
19:46 <samholmes> AAA_awright: A binary column?
19:46 <AAA_awright> Yeah like that
19:46 panosru joined
19:46 <samholmes> I'm not sure what you mean by opaque code.
19:47 <AAA_awright> Not sure how it works
19:47 <CIA-1> node: 03Bert Belder 07master * rc06e100 10/ test/simple/test-child-process-exec-error.js : windows: make test-child-process-exec-error pass - http://git.io/vlwKow
19:47 <samholmes> AAA_awright: Oh, you mean just copying your code without knowing how it work?
19:47 PaulCapestany joined
19:47 <AAA_awright> Well yeah that too
19:47 piscisaureus_ joined
19:47 <samholmes> AAA_awright: That too..but what did you mean by opaque?
19:47 salva joined
19:47 <AAA_awright> But I mean, if you're encoding the hash as a binary blob instead of base64, you can't as easily test that to make sure it's functioning as expected
19:48 <AAA_awright> That's more opaque
19:48 <AAA_awright> Code that isn't used often and regularly is another possible attack vector
19:48 revans joined
19:49 <AAA_awright> So especially test the password reset function. People are going to test the password for you every day, but less so the password reset.
19:49 <samholmes> AAA_awright: How is that an attack vector just because code isn't used often?
19:49 <AAA_awright> If there's a bug you're less likely to find it
19:49 <EdwardIII> done some more research chaps
19:49 <samholmes> Ah I see what you mean now.
19:49 <EdwardIII> actually it looks like this just is not possible - you have to include head and include foot, and wait for ejs to implement something like 'extends' as present in jade
19:49 halfhalo joined
19:49 <AAA_awright> Especially big number/arbritrary length number libraries, where some code is only executed in edge cases maybe one out of a billion times
19:49 <samholmes> Well, instead of a binary blob, would it be best to use a VARCHAR?
19:50 <AAA_awright> That's where a code coverage test suite is really necessary
19:50 <CIA-1> libuv: 03Bert Belder 07master * r162e57b 10/ src/win/error.c : windows: map ERROR_DIRECTORY to UV_ENOENT - http://git.io/tQsPTA
19:51 <AAA_awright> samholmes: I'm just showing you how to use crypto.pbkdf2, you have to ultimately decide how you want to encode the output, if you want base64, hex, binary blob, etc
19:52 <AAA_awright> I also look around at other libraries. Look at how Facebook, etc, sends message authentication codes, look at how MediaWiki, Drupal and such formats and stores hashes
19:52 <AAA_awright> (know when and why they're doing it wrong)
19:53 taky1 joined
19:54 jfroma joined
19:54 recycle joined
19:54 <CIA-1> node: 03Bert Belder 07master * r69d8e77 10/ deps/uv/src/win/error.c : uv: upgrade to 162e57b - http://git.io/5Acw9Q
19:55 cpetzold joined
19:55 jeremyhammer joined
19:56 jfroma joined
19:56 hij1nx_ joined
19:56 lbljeffmo joined
19:59 mappum joined
20:00 vanb777 joined
20:00 laner joined
20:01 jayke joined
20:01 <jayke> hiya
20:01 <jayke> someone can help me with a quick question?
20:01 smithrobs_ joined
20:02 <maxogden> yep
20:02 <context> jayke: no we cant. you have not asked a question that requires help.
20:02 <mmalecki> jayke: just ask :)
20:02 cpetzold_ joined
20:02 ecthiender joined
20:02 knkumar joined
20:02 oscarhou joined
20:02 <maxogden> we wait with bated breath
20:03 <jayke> ok
20:03 <jayke> so, i got this external js file
20:03 <jayke> with a var in the main file
20:03 <maxogden> pre-emptive answer: read http://nodejs.org/api/modules.html
20:03 cleos_frey joined
20:03 eventualbuddha joined
20:04 <oscarhou> Hi, can I use nodejs with an existing web framework or is it a web framework in itself?
20:04 <jayke> ok... u got me
20:04 <jayke> Accessing the main module
20:04 <cleos_frey> How do you guys check a functions arguments? Do you use asserts or what?
20:04 TooTallNate joined
20:04 pace_t_zulu left
20:04 <cleos_frey> to make sure the user isn't giving junk
20:04 Sapr0 joined
20:05 broofa joined
20:06 <jayke> I think I got it working, thanks!
20:06 n0ctum joined
20:06 <jayke> i know it sucks when some dumbass like me doesnt read the docs, sorry!
20:07 jasonkuhrt joined
20:07 <mmalecki> cleos_frey: I don't. if user is giving you cruft, it's going to blow at some point
20:07 <mmalecki> it's theirs problem
20:07 bradgignac joined
20:07 rhasson joined
20:08 <cleos_frey> mmalecki: but I'd like to give useful errors
20:09 <jayke> nope, its not working as expected
20:09 <cleos_frey> mmalecki: like should I stop the program and say, "hey you gave me junk here", or should I let it go?
20:09 <mmalecki> let it go :)
20:09 <mmalecki> this is how core acts
20:09 <cleos_frey> that's very zen
20:09 <cleos_frey> ohh
20:09 <jayke> well the question was: from an external module in a nodejs, how can i access a variable in the main module?
20:09 rickibalboa joined
20:10 constantx joined
20:11 <CIA-1> node: 03Bearice Ren 07v0.8 * ref3617c 10/ Makefile : build: fix `make -j' fails after `make clean' - http://git.io/DorFwg
20:11 Kullt joined
20:12 totallymike joined
20:14 <jayke> any help for that question?
20:14 <EyePulp> jayke: pass the variable in explicitly
20:14 <jayke> how does that work?
20:14 FredC__ joined
20:15 <jayke> any example available?
20:15 redir joined
20:15 <EyePulp> foo = require('external').some_func(var_from_main);
20:15 <EyePulp> sorry
20:15 <EyePulp> var foo = require('external').some_func(var_from_main);
20:15 e4r joined
20:16 <jayke> so, this goes into the main module
20:16 <EyePulp> si
20:16 tphummel joined
20:16 <jayke> how do i "grab" that var from the external one?
20:17 Tixz joined
20:17 mikeal joined
20:18 justicefries joined
20:18 <EyePulp> because the external module is a series of exported functions, and they accept arguments, and you're passing in an argument.
20:18 <Tixz> I want to host several applications on the same server. Since they all can't listen on port 80, I've read that I need some kind of router/load balancer in front of the applications to redirect traffic to the appropriate servers, based on the requested domain. What should I use for this? I've heard HAProxy, Ngix, (Varnish?)
20:18 FredC joined
20:18 justicefries joined
20:19 <jayke> so "some_func" is part of the external module
20:19 <EyePulp> Tixz: you can use nginx for that based on the host header, if you have only one IP available and want to put them all on port 80
20:20 shanecowherd joined
20:20 <EyePulp> Tixz: search for nginx + virtual hosts
20:20 <EyePulp> jayke: correct
20:20 <jayke> i think i get it, from the external module make a function that sets the var, and pass the var as an argument
20:20 mandric joined
20:20 <Tixz> EyePulp: Is that the best solution? I have read several articles about it, I was just hoping someone here had a recommendation :)
20:20 <jayke> cool, i got it, thanks!
20:21 <Tixz> Also stumbled upon this project: https://github.com/kommander/vost
20:21 <EyePulp> Tixz: best for what? Open heart surgery? No, it's not well suited for that. however if you could narrow down your problem, perhaps I can wax eloquently on its fitness to purpose.
20:21 <EyePulp> =)
20:22 <Tixz> EyePulp: Alright, I have an EC2 instance to play around with. I want to host my personal website, an application I'm building and a client website, so 3 domains so far. They're all node projects, but how do I serve them seamlessly from the same machine? :)
20:22 <CoverSlide> you can use node as your load balancer as well
20:22 recycle joined
20:23 <CoverSlide> there's node-http-proxy and bouncy that can do this for you
20:23 timeturner joined
20:23 TooTallNate joined
20:23 <EyePulp> Tixz: if you want a simple solution, use something prebuilt that solves the problem. if you want to learn about load balancing, you can role your own.
20:24 sjonnet joined
20:24 <Tixz> I'll have a look at node-http-proxy and bouncy. I'd rather just go with a quick solution for now, as I'm learning plenty of other stuff atm
20:24 <EyePulp> the simple solution (in my experience) is to use nginx. it's fast, conf files are very readable, and it's got tons of docs out there.
20:24 <Tixz> You know, information overload to the point where my brains cooking :p
20:25 matthewborn joined
20:25 <Tixz> Yeah, nginx seems very nice, the only downside I read was about when using it with socket.io
20:25 <Tixz> I don't know if there's still any problems there, the articles were a couple of months old
20:26 saikat joined
20:26 redir joined
20:26 <CoverSlide> technically you can still use socket.io, but you can't use websockets as a transport behind nginx
20:27 <Tixz> Alright, I think I'll go with node-http-proxy, looks nice
20:27 <EyePulp> Tixz: typically you don't run socket.io through nginx - it's on its own port
20:27 <mscdex> CoverSlide: why not?
20:27 <CoverSlide> that's something they're working on though
20:27 <mscdex> the websocket spec should allow it
20:27 <jayke> EyePulp, sorry, no luck on that :\
20:27 <jayke> im doing a .setIO(io)
20:27 <CoverSlide> nginx doesn't support HTTP/1.1 or websockets, at least ootb
20:28 <jayke> and ive got a function declared, also with the modules.export
20:28 <jayke> that sets io = _io (the argument passed)
20:28 <mscdex> well, it didn't support the really old websocket versions, especially draft 76, but that was a long time ago
20:28 <EyePulp> post your module code someplace, and the snippet where you're calling it
20:28 <mscdex> because it did some things to purposefully break HTTP
20:29 <jayke> ok
20:29 fangel joined
20:29 josh-k joined
20:30 <jayke> http://pastebin.com/p1Jcq5Eu
20:30 <CoverSlide> iirc, all websocket specs require a protocol upgrade, which is a HTTP/1.1 feature, which isn't supported by nginx
20:30 <jayke> typo on var
20:31 matthewborn joined
20:31 <CoverSlide> new idea for a module: pirate.js, new to-javascript language that basically does .replace(/\bar\b/, 'var')
20:32 AvianFlu joined
20:32 <gkatsev> CoverSlide: don't you mean 'var'->'arr'?
20:32 <EyePulp> varr
20:32 <gkatsev> oh
20:32 <gkatsev> I gues
20:33 <gkatsev> EyePulp: except, wouldn't it be vvar?
20:33 <gkatsev> oh, word boundary
20:34 <CIA-1> libuv: 03Bert Belder 07master * r5c674b2 10/ src/win/process.c : windows: squelch some warnings related to int64 to int32 conversion - http://git.io/yQkM3w
20:34 <CIA-1> libuv: 03Bert Belder 07reviewme * rabc945b 10/ src/win/process.c : windows: make spawn with custom environment work again - http://git.io/FpvZBw
20:34 Fli-c joined
20:34 halfhalo joined
20:34 vippy joined
20:35 <jayke> ok, kinda got it working
20:35 chrisjaure left
20:36 chasefarmer joined
20:36 <EdwardIII> i'm finally starting to get there with node/backbone/mongoose
20:36 saikat joined
20:36 TheHippo1 joined
20:36 saikat_ joined
20:36 rhasson left
20:37 <EyePulp> jayke: http://pastebin.com/bRUNcnnt
20:37 Bad-Science joined
20:37 <EyePulp> this assumes you want a number of functions available in your module
20:38 <EyePulp> and it's completely untested
20:39 automata joined
20:39 bawwwller joined
20:39 rafmc joined
20:39 recycle joined
20:39 <jayke> EyePulp, yeah i did something similar, but node executes all the module at once
20:39 <jayke> and i have one io.sockets.on
20:40 <jayke> i might have to make some kind of callback
20:40 <jayke> i dont really know
20:40 constantx joined
20:41 <EyePulp> jayke: node doesn't execute your external module functions (exports) unless you call them It loads them into memory upon requiring them, but execution only occurs when you call the function.
20:42 <jayke> well, what i mean is that triest to do "io.sockets.on" before having io "declared"
20:42 <jayke> io.sockets.on('connection', function (socket) { ^ TypeError: Cannot read property 'sockets' of undefined
20:42 sjonnet left
20:43 ramitos joined
20:43 <jayke> so i have to make something that when setIO is called, i have that io.sockets.on thing going on
20:43 <jayke> i think
20:43 <jayke> im no guru
20:43 <EyePulp> jayke: you should also use semicolons more often.
20:43 davidcoallier joined
20:43 <jayke> yeah, bad habit
20:43 <EyePulp> jayke: test your code all on one page before you break it into modules.
20:44 maxani joined
20:44 <jayke> yeah, all in one works perfect, is when im trying to branch it in parts
20:44 <jayke> maybe
20:44 <jayke> i can do something else
20:44 <jayke> instead of setting io
20:45 <jayke> passing "server", and declaring io from the external module
20:45 <* EyePulp> is suspicious that there's a very simple solution here
20:45 bowen199 joined
20:45 bowen199 joined
20:47 redir joined
20:47 jmar777 joined
20:47 khrome joined
20:48 gurra joined
20:48 laner joined
20:48 quesada joined
20:48 tzmartin joined
20:49 <CIA-1> libuv: 03Bert Belder 07master * rabc945b 10/ src/win/process.c : windows: make spawn with custom environment work again - http://git.io/FpvZBw
20:50 <jayke> YES
20:50 <jayke> GOT IT
20:50 bawwwller joined
20:50 <jayke> hahahahahah, man i feel god
20:50 <yawnt> synonym for link?
20:50 <jayke> its kinda ugly, but fuck it
20:50 <yawnt> i need two of them
20:50 <yawnt> resource and content ?
20:50 <CIA-1> node: 03Bert Belder 07master * r4cfd64e 10/ deps/uv/src/win/process.c : uv: upgrade to abc945b - http://git.io/SWD3Hg
20:51 JMHNilbog joined
20:51 JMHNilbog left
20:51 briancray joined
20:51 kishoreyekkanti_ joined
20:53 milani left
20:53 recycle joined
20:53 rick- joined
20:54 <CIA-1> node: 03isaacs 07v0.9.1-release * r060f292 10/ (ChangeLog src/node_version.h): wip - http://git.io/dIniiw
20:54 <jayke> btw, EyePulp thanks again
20:55 <jayke> i did this, passed the server into the function and var io = require('socket.io').listen(_server).sockets.on('connection', function (socket) {
20:55 salsamontes joined
20:55 zackiv31 joined
20:55 <oscarhou> does nodejs work well with actionscript at all?
20:56 obazoud joined
20:57 <CoverSlide> the newt plays the flute, the carp plays the harp, the plaise plays the bass, and they soundin sharp, the bass plays the brass, the chub plays the tub, the fluke is the duke of soul
20:57 <cpsubrian> npm respects .gitignore .. but � it does not seem to support '!' lines. Intended or bug?
20:57 <tnorris> when using net.createServer and writing to a socket file, is there a way to set the permissions of the socket file being created?
20:58 <CoverSlide> maybe with fs.chmod
20:59 <CoverSlide> or process.umask beforehand
20:59 <tnorris> CoverSlide: ok, i'll take a look at those. thanks.
20:59 stisti joined
20:59 Me1000 joined
21:00 pickels joined
21:00 baconseason left
21:00 broofa joined
21:00 Swaagie joined
21:00 TehShrike joined
21:01 jasonkuhrt joined
21:02 nonnikcam joined
21:04 <tnorris> CoverSlide: I tried setting the umask to 0777, and it all the sockets that were created came out with 0000. any ideas?
21:04 necros joined
21:04 <jayke> ok, another one.... Accessing an external module var from another external module. jesus
21:04 <CoverSlide> try umask(0)
21:05 <tnorris> CoverSlide: awesome. now I don't have to run chmod a+w on the socket files every time they're written. thanks.
21:06 redir joined
21:06 TheHippo joined
21:07 bawwwller joined
21:08 bawwwller joined
21:08 erione joined
21:08 uberj left
21:09 vguerra joined
21:09 pieterv joined
21:09 zmoog joined
21:10 ph^ joined
21:10 <CoverSlide> de fish on the land aint happy, he sad cause he in da bowl
21:10 crabdude joined
21:11 richwestcoast joined
21:11 papachan joined
21:12 Darren__ joined
21:12 <Darren__> hey all
21:13 <Darren__> quick question, I have updated my project to the v0.8.8 source, and console.log is giving me a TypeError: Object #<TTY> has no method 'write'
21:14 <Darren__> its a funny build with node started as a background thread in the actual app
21:14 wolfeidau joined
21:15 lucidity14 joined
21:18 mike18 joined
21:19 recycle joined
21:19 <bnoordhuis> Darren__: what are you doing exactly?
21:19 kennethkoontz joined
21:19 jonatas_oliveira joined
21:20 <Darren__> I compile the node sources, and link them into an app
21:20 thealphanerd joined
21:21 <Darren__> then call node::Start(argc, argv);
21:21 <bnoordhuis> Darren__: so where does that TTY object come from? we don't export it
21:21 hipsters_ joined
21:21 <bnoordhuis> are you using process.binding('tty_wrap')?
21:21 <Darren__> it was working on 0.6.6, so somethings changed on 0.8.8
21:21 mickhansen_ joined
21:22 Pavi joined
21:22 <Darren__> I don't use tty_wrap
21:22 <mike18> i'm attempting to do some web-scraping with node.js... i've attemped phantomjs-node and node.io so far...
21:22 <Pavi> Hi
21:23 <Pavi> I have some doubt in integrating node-waf with cross compilation
21:23 <mike18> my problem is the first page that i 'GET' is a google page that just contains a script to set a new window.location. i'm trying to figure out how to evaluate that javascript and move on...
21:24 <Pavi> can any one help me on how to cross compile, and get *.node file which could be run in ARM Process
21:25 ph^_ joined
21:25 joshontheweb joined
21:25 bingomanatee joined
21:26 maze` joined
21:26 gerred joined
21:28 luigy joined
21:29 jkyle_ joined
21:29 stisti joined
21:31 <TehShrike> substack, you magnificent bastard
21:31 <Darren__> The app is being run from the command line, so should pick up the normal stdio?
21:31 <yawnt> must say i laughed
21:32 <CoverSlide> what did the sucstack do today?
21:32 <CoverSlide> *substack
21:32 <TehShrike> substack: not only is your stream handbook excellent and much-appreciated, but it showed up in my RSS feed in the form of a full post! <3
21:32 saikat joined
21:32 <substack> TehShrike: I realized I could just paste the same thing twice!
21:32 <TehShrike> :-)
21:33 TehShrike joined
21:33 <konobi> Pavi: please ask in channel rather than via pm
21:33 Hebo joined
21:34 Taar779_w left
21:36 adrianF joined
21:36 bingomanatee joined
21:37 rwaldron joined
21:37 regality joined
21:38 jergason joined
21:38 recycle joined
21:39 bradleymeck joined
21:40 jharper joined
21:40 Ziggy` joined
21:41 luigy joined
21:41 kennethkoontz joined
21:42 tomshreds joined
21:42 nahamu joined
21:43 gaim3 joined
21:43 recycle joined
21:44 <nahamu> is there a way when writing a script in node to exec rather than fork a child process?
21:46 <nahamu> I'm guessing that child_process.exec actually forks...
21:46 chm007 joined
21:47 <nahamu> isaacs: ping?
21:47 astropirate joined
21:47 <isaacs> nahamu: no, it'll alwyas fork a child process.
21:47 <nahamu> :-/
21:48 <jharper> Hi, I'm new to Node and trying to use it to write a server which must be listening for incoming UDP connections while processing data. At the end of each round of data processing, it must insert data which has arrived through the connections since the last round. What's the preferred way of dealing with processing data while concurrently listening for incoming data in Node?
21:48 Kingy joined
21:48 <isaacs> nahamu: if you want to call exec() without forking first, then write a binary addon, and do it yourself in C++
21:48 etcetera joined
21:48 <isaacs> nahamu: there's no JS api for this.
21:48 <isaacs> nahamu: it'd be kind of a disaster to do that.
21:48 <nahamu> isaacs: fair enough.
21:49 pandeiro joined
21:49 <mmalecki> executing a child process on Unix always forks :)
21:49 <nahamu> mmalecki: In my bash scripts I can "exec /some/other/binary"
21:50 <isaacs> mmalecki: right, but it doesn't exec in a forked thread, so you block on it
21:50 <isaacs> i assume that's what nahamu is actually requesting
21:50 <nahamu> isaacs: the context is actually smartos... the KVM branded zones aren't allowed to fork, and the devs have been kind enough to add a metadata format for me to tweak my custom KVM dataset, but they give me the metadata in json.
21:51 <nahamu> I currently have a bash script whose last step is to exec qemu, and I'd love to write it in node so that I can easily slurp in the json metadata before exec'ing qemu.
21:51 <Almindor> I'm using readline to process some more complicated imports and when I redirect a file to it like "node myapp.js < file.json" I get all the contents put onto screen even if I don't output anything in the code, why so?
21:51 <livinded> um, on unix doesn't exec() just replace the current process with a new process image?
21:52 <nahamu> livinded: yup
21:52 <nahamu> worse than blocking... :-P
21:52 <livinded> that's why you need to explicitely fork before you call exec() otherwise the parent goes bye bye
21:52 <livinded> oh sorry, I misread above
21:52 <mmalecki> that's what I mean by "child process"
21:53 <nahamu> right, but I need the parent to go byebye
21:53 <nahamu> it's not the normal use-case for node.
21:53 <nahamu> so isaacs instructions to make my own binary addon makes sense.
21:53 <livinded> and in node exec() will always fork before calling exec?
21:53 stafamus joined
21:53 <nahamu> livinded: node never calls the exec syscall without first calling the fork syscall.
21:54 <mmalecki> livinded: yeah
21:54 <mmalecki> actually, libuv does all of that
21:54 <livinded> right
21:54 <mmalecki> I'll find the snippet, sec
21:54 <mmalecki> here, https://github.com/joyent/libuv/blob/master/src/unix/process.c#L353
21:54 jetienne joined
21:54 jasonkuhrt joined
21:55 <mmalecki> fork, first https://github.com/joyent/libuv/blob/master/src/unix/process.c#L425
21:55 <livinded> need to dig into libuv soon. My C is strong but C++ is weak :/
21:55 zackiv31 joined
21:55 <mmalecki> livinded: libuv is C :)
21:55 <nahamu> so in theory I could modify libuv to have support for what I want, and then add it to node, but then people might use it and bad things would happen...
21:56 <mmalecki> also, not sure where actual exec* happens
21:56 <livinded> mmalecki: it is? v8 is just C++?
21:56 <mmalecki> but certainly after fork(2)
21:56 <mmalecki> livinded: v8 is C++, node is C++
21:56 <Pavi> wat is the channel link i should use to post my queries
21:56 dshaw_ joined
21:56 maletor joined
21:56 <mmalecki> it's like, node's C++ binds libuv to JS
21:56 <livinded> ah, ok. The little bit of native node module code I read was C++. I just assumed libuv was as well
21:57 <mmalecki> but yeah, I wish v8 was C :)
21:57 romain_ joined
21:57 <yawnt> i think everyone does mmalecki
21:57 <yawnt> except google maybe
21:57 <mmalecki> now I can barely understand it because of templates
21:57 hellp joined
21:57 <livinded> Google also likes Java though...They don't exeactly have great taste
21:57 <mmalecki> like, really heavy templates
21:57 <mmalecki> yeah
21:57 <kranius> C++ is verbose
21:57 <yawnt> livinded: true
21:58 <CoverSlide> They should use go
21:58 <yawnt> we should all just switch to D and skip C++ right ahead
21:58 <mmalecki> CoverSlide: they do on some occasions
21:58 <yawnt> :d
21:58 <livinded> doesn't leveldb implement most of the useful stuff from stl?
21:58 <livinded> at least data structure-wise
21:58 <mmalecki> livinded: it implements all I ever used in STL, map
21:58 <CoverSlide> D is awesome, except for the whole phobos / tango thing
21:58 <mmalecki> TANGO DOWN.
21:59 <jharper> is there a feature in Node to allow me to do data processing while still listening for incoming messages?
21:59 <mmalecki> jharper: spawning a child process for doing data processing
21:59 <mmalecki> and waiting for messages from it
21:59 <crassus> K, Q, J and A+ are all much cooler than D
21:59 <livinded> the new C++x0 is actually pretty cool
21:59 <livinded> native regex support is nice
21:59 jibay joined
22:00 lucidity14 left
22:00 mike18 left
22:00 <mmalecki> man, I wish Scala and Clojure weren't JVM
22:00 jgornick joined
22:00 <jharper> mmalecki: thanks, I just didn't know if there was another way
22:00 <CoverSlide> <3 clojure
22:00 <purr> Let it be known that CoverSlide hearts clojure.
22:00 <livinded> port closure to llvm
22:00 generalissimo joined
22:00 <livinded> clojure*
22:00 <mmalecki> livinded: WOULD KICKSTART.
22:01 jryans joined
22:01 hojberg joined
22:01 <livinded> haven't touched clojure because of the jvm, but lisp is cool. More intrested in Haskell at this point though
22:01 nahamu left
22:01 recycle joined
22:02 <CoverSlide> haskell makes my brain hurt
22:02 EvilPacket joined
22:02 <CoverSlide> everyone should learn factor
22:02 <livinded> it's too bad Oracle isn't doing something stupid like re-closed sourcing the JVM. It would solve a lot of problems
22:02 ryanfitz_ joined
22:02 <crassus> Isn't the whole point behind Clojure the JVM
22:03 <CoverSlide> there lies a fine line between the language and the implementation
22:03 insin joined
22:03 <livinded> crassus: ya, but who wants to use the JVM unless you're tied to it?
22:03 <CoverSlide> technically you can compile Clojure to JavaScript
22:03 <crassus> why not livinded? there's little upside from clojure without, versus just using common lisp afaik
22:03 <livinded> then run that through v8?
22:03 dKc joined
22:04 <livinded> crassus: lisp with a decent execution target
22:04 Martz joined
22:04 <livinded> my dream is just to replace the JVM with LLVM EVERYWHERE
22:04 <CoverSlide> racket ftw
22:04 <mmalecki> livinded++
22:05 <mmalecki> <3 livinded
22:05 <purr> Let it be known that mmalecki hearts livinded.
22:05 <mmalecki> at least that works.
22:05 <CoverSlide> why hasn't anyone made a java to llvm compiler?
22:05 <livinded> racket is what mzscheme became right?
22:05 <CoverSlide> yes
22:05 ttilley joined
22:05 ttilley joined
22:06 <livinded> why the change?
22:06 <CoverSlide> they changed the language syntax slightly
22:06 <CoverSlide> so they gave the language a new name
22:06 <livinded> ah
22:07 <CoverSlide> although the racked executable still comes with mzscheme and has r5rs and r6rs modes built in
22:07 alexgordon joined
22:08 markwubben joined
22:09 <etcetera> how does npm work?
22:09 <CoverSlide> unicorn blood
22:09 totallymike joined
22:09 <nlf> ^ accurate
22:10 PatF joined
22:11 <etcetera> why havent other ecosystems adopted it for their own package management.
22:11 <etcetera> esp considering node's portability.
22:11 <livinded> wow! the new firefox webgl demo looks pretty good
22:12 <livinded> a natively written 3d engine rather than a converted one with emscripten might actually be usable soon
22:12 <* insin> just had to fill a setup.py file with crap to pull in a Git repo with pip :( Steal npm, everything
22:12 <mmalecki> insin: I feel ya
22:13 <etcetera> insin: ?
22:13 <CoverSlide> well npm is probably one of the first to do local installs by default. others you can tweak to do local installs
22:13 <livinded> oh, don't even get me started on python packages
22:13 <livinded> still cleaning shit up from playing the Stripe wargame and having ot install a bunch of python crap
22:14 <billy> virtualenv is your friend :)
22:14 drudge joined
22:14 <CoverSlide> before 1.0.0 npm was basically rubygems for node
22:14 recycle joined
22:16 aniasis joined
22:17 <livinded> billy: thanks!
22:17 <wereHamster> does nodejs have a way to interrupt the script if it detects that it's running for too long (to interrupt infinite loops)?
22:17 <CIA-1> node: 03Bert Belder 07master * r143e9be 10/ test/simple/test-fs-truncate.js : test: make test-fs-truncate pass on windows - http://git.io/jyNBQw
22:17 pppaul joined
22:17 <CoverSlide> if you have an infinite loop, then you have to shut it down remotely
22:17 wizonesolutions joined
22:18 <CoverSlide> but that's common to any language
22:18 <wereHamster> how? Is it possible to tell v8 to forcibly interrupt the code (and throw na exception or something)?
22:18 AvianFlu joined
22:19 <CoverSlide> well if you have an infinite loop, then it never goes to the event handler, so the timeout event would never fire
22:19 hichaelmart joined
22:19 <CoverSlide> the way to fix that is
22:19 <CoverSlide> don't write infinite loops
22:19 ryanrolds_w joined
22:19 <wereHamster> Something like this: http://bespin.cz/~ondras/html/classv8_1_1V8.html#af7d845e6f55eb76085d5ff3601780986
22:20 <wereHamster> browsers have a way to interrupt javascript. So the functionality is there.
22:20 <wereHamster> .. in v8
22:22 halfhalo joined
22:22 <konobi> wereHamster: like a signal handler?
22:23 <CoverSlide> hmm maybe v8 runs on a different thread than the browser
22:23 <wereHamster> konobi: do signals preempt the running code?
22:24 <CoverSlide> if you kill it externally
22:24 <CoverSlide> if you have a while(true) then there's really no way to stop it within code
22:25 <wereHamster> that's quite obvious
22:25 <CoverSlide> i thought that was your question
22:25 wizonesolutions joined
22:26 akasha joined
22:26 jkimbo joined
22:26 <wereHamster> I was thinking along the lines of a special option to have v8 interrupt the execution if it detects that JS is not returning control to the main loop for too long.
22:26 romainneutron joined
22:26 <konobi> wereHamster: yes... certain signals do require preempting
22:28 zmoog joined
22:28 <CIA-1> node: 03isaacs 07v0.9.1-release * re6ce259 10/ (ChangeLog src/node_version.h): 2012.08.28, Version 0.9.1 (Unstable) - http://git.io/arSiHQ
22:29 hichaelmart joined
22:31 duko joined
22:31 <duko> hello I would like to know if there is a common technique for adding html string to a document without adding elements that would not be found in the string
22:32 <CIA-1> node: 03isaacs 07master * re6ce259 10/ (ChangeLog src/node_version.h): 2012.08.28, Version 0.9.1 (Unstable) - http://git.io/arSiHQ
22:32 <CIA-1> node: 03isaacs 07master * r1550dda 10/ (ChangeLog src/node_version.h): Merge branch 'v0.9.1-release' - http://git.io/nslCZw
22:32 <CIA-1> node: 03isaacs 07master * r459717e 10/ src/node_version.h : Now working on 0.9.2 - http://git.io/zZH1Wg
22:34 recycle joined
22:34 <CIA-1> node: 03isaacs 07v0.8 * r0ef1e5b 10/ doc/blog/release/v0.9.1.md : blog: Post for 0.9.1 release - http://git.io/FyoW0w
22:35 much4 joined
22:35 <CoverSlide> duko: wtf?
22:36 Frippe joined
22:36 Frippe joined
22:36 jmpe joined
22:37 <CoverSlide> you have betrayed shiva!
22:37 ccowan joined
22:37 vervain joined
22:39 joshfinnie joined
22:39 andrewffff joined
22:40 joshontheweb joined
22:41 subbyyy joined
22:43 Destos joined
22:43 beachdog joined
22:44 maxani joined
22:44 <duko> i know that i could use elem.innerHTML = '<div></div>'; parentElem.appendChild(elem);
22:45 <duko> but I'm looking for something else...
22:48 josh-k joined
22:49 vincentmac joined
22:49 _Renegade joined
22:52 Frippe joined
22:52 Frippe joined
22:52 ecthiender joined
22:53 hichaelmart joined
22:53 yawnt joined
22:54 cyprox joined
22:56 trave joined
22:57 <duko> var elem = document.createElement('div'),
22:57 <duko> childElem;
22:57 <duko> elem.innerHTML = html;
22:57 <duko> childElem = kuaDOM.getFirstChildElem(elem);
22:57 <duko> elem.removeChild(childElem);
22:57 <duko> return childElem;
22:57 <duko> that is my solution
22:58 <duko> where kuaDOM gets the first child that is nodeType 1
22:58 <mscdex> wrong channel?
22:59 cyprox left
22:59 timoxley joined
22:59 recycle joined
23:00 dubiago joined
23:00 <duko> maybe it is
23:01 <duko> my nick isn't registred so i can't go to #javascript
23:01 <duko> i should register my nick but i always forget my password
23:02 nicholasf joined
23:03 Ards joined
23:03 <Ards> hey guys
23:03 <Ards> I'm getting the following error using express 3 and express-validation : TypeError: Object #<ServerResponse> has no method 'local'
23:04 <Ards> express-form sorry
23:04 <Ards> how can I validate form with node?
23:06 taky joined
23:07 broofa joined
23:07 Wa joined
23:08 WillMarshall joined
23:08 wolfeidau joined
23:09 jkimbo joined
23:10 ferlores joined
23:12 Ziggy` joined
23:13 Sorella joined
23:14 timeturner joined
23:14 harthur joined
23:14 nat3 joined
23:15 freewil joined
23:17 <samholmes> Does anyone know whether stripe.com has the ability to payout money to customers?
23:19 codelahoma joined
23:19 <crassus> samholmes: that's probably a better question for #stripe
23:19 <livinded> samholmes: yes
23:19 <crassus> samholmes: and there is a way to do that...but it involves a little hackery
23:20 <samholmes> crassus: What hackery?
23:20 <konobi> what's the EU equivalent of stripe?
23:20 recycle joined
23:20 <livinded> breaking into their bank account and checking?
23:20 <crassus> you have to create and then obtain an API key for each customer...this method is outlined in their docs somewhere, but it's being phased out
23:20 <crassus> as they're introducing a new OAuth method that's in beta right now
23:21 <livinded> I hope it's oauth2
23:21 taky joined
23:21 dgathright joined
23:22 stisti joined
23:23 saschagehlich joined
23:24 dan64 joined
23:25 zackiv31 joined
23:25 mechanate joined
23:26 <crassus> yep, it is livinded.
23:26 ben_alman joined
23:26 <yawnt> konobi: i wish there was one
23:27 <yawnt> we, poor fellas from EU have to stick w/ paypal
23:27 jergason joined
23:27 <yawnt> gocardless shoul expand from UK in the next few months though
23:27 matehat joined
23:29 bakadesu_ joined
23:31 austincheney joined
23:31 Saps joined
23:33 <konobi> there was one that someone mentioned a while ago
23:33 joshwnj joined
23:34 cleos_frey joined
23:35 constantx joined
23:36 dgathright_ joined
23:36 <konobi> spreedly?
23:37 <yawnt> there's recurly
23:38 <yawnt> but it costs too much for me :(
23:38 joshgillies joined
23:38 <konobi> or maybe it was zooz
23:39 <yawnt> i need recurring billings
23:39 <yawnt> not mobile apps :(
23:39 justicefries joined
23:41 <crassus> yawnt: fwiw, you could go with something like auth.net + recurly for recurring billing in the UK right now...
23:41 <yawnt> i'm in italy
23:41 recycle joined
23:41 <yawnt> no UK :(
23:41 <crassus> hmm, actually I'm not so sure about auth.net in the UK, sorry
23:41 <yawnt> but recurly, as i said, it's too expensive
23:42 <crassus> apologies, I just read the scrollback
23:42 <yawnt> something around 69/mo if im right
23:42 xenol joined
23:42 <yawnt> no problem, thanks for helping anyway :)
23:44 halfhalo joined
23:45 <konobi> yawnt: zooz works in the browser too
23:45 <konobi> but no idea if it supports recurring
23:46 <yawnt> will look
23:46 <yawnt> thx
23:46 ccowan joined
23:46 generik joined
23:46 YoY joined
23:47 austinbv joined
23:47 taky joined
23:48 <konobi> yawnt: sounds like it does
23:48 githogori joined
23:48 <yawnt> sweet! does it work in EU?
23:50 <konobi> "ZooZ does remember card details for recurrent payments, and it remembers it cross app per device. "
23:50 <konobi> yup
23:51 wingy joined
23:52 Saps joined
23:53 jjbohn joined
23:53 wizonesolutions joined
23:56 jimubao joined
23:56 daffl joined
23:57 trave joined
23:57 jimubao joined
23:57 Emmanuel` joined
23:57 timoxley joined
23:58 daffl joined
23:58 techthumb joined
23:58 Druide_ joined