News for hackers. Stuff that matters.
Re:First Bitcoin ATM by wcummings on Sunday October 27, 2013 @07:54PM (#6624252)
Error: EMFILE, too many open files '/home/ubuntu/robocoin/robocoin-website/views/index.html' at Object.fs.openSync (fs.js:427:18) at fs.readFileSync (fs.js:284:15) at View.exports.renderFile [as engine] (/home/ubuntu/robocoin/robocoin-website/node_modules/ejs/lib/ejs.js:312:9) at View.render (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/view.js:75:8) at Function.app.render (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/application.js:504:10) at ServerResponse.res.render (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/response.js:753:7) at exports.index (/home/ubuntu/robocoin/robocoin-website/routes/index.js:8:9) at callbacks (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/router/index.js:161:37) at param (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/router/index.js:135:11) at pss (/home/ubtuntu/robocoin/robocoin-website/node_modules/express/lib/router/index.js:142:5)

Idiots.......

Re:First Bitcoin ATM by camus2 on Sunday October 27, 2013 @08:28PM (#6624351)
> too many open files

I thought nodejs magically webscales ? /sarcasm

sidenote : please ditch this horrible unreadable font in the text body.that's fine for a few headers but , Swap it with the serif font you are using in the subtitles.

Re:First Bitcoin ATM by wcummings on Sunday October 27, 2013 @08:29PM (#6624360)
Probably just hitting the fd-per-process ulimit
Re:First Bitcoin ATM by blackysky on Sunday October 27, 2013 @08:15PM (#6624309)
readFileSync ... not good not good .... nodejs is sexier async ;)
Re:First Bitcoin ATM by wcummings on Sunday October 27, 2013 @08:22PM (#6624334)
node.js is sexier when it doesn't serve stacktraces in production. Plus async files reads still happen in an internal threadpool (one thread per core, hardcoded, IIRC) so it's pretty easy to saturate that anyway, you should be caching static assets.
Re:First Bitcoin ATM by Jare on Sunday October 27, 2013 @09:53PM (#6624630)
The express framework activates the view cache by default when configured for production, so both problems are actually the same.
Re:First Bitcoin ATM by wcummings on Sunday October 27, 2013 @10:57PM (#6624847)
I suspect it's not configured for prod, since I'm seeing a stacktrace
Re:First Bitcoin ATM by blackysky on Sunday October 27, 2013 @08:30PM (#6624361)
you are right but I'll still use async over sync anytime... :)
Re:First Bitcoin ATM by Jare on Sunday October 27, 2013 @09:57PM (#6624638)
You will often prefer to use sync for one-time loads or for debugging.