[nodejs] Re: where to handle error ? Model or Controller

2014-06-26 Thread greelgorke
there is not 'or'. handle errors there, where they can be handled. sometimes to handle an error can mean to transform and throw a new one. sometime it is just catch and retry. sometimes it's an error page. it deppends. Am Donnerstag, 26. Juni 2014 05:34:44 UTC+2 schrieb Yu Zhou: > > Hi All, > >

[nodejs] Device/ Computer Discovery in my Network

2014-06-26 Thread Alagappan M
I was trying to write a sample program for my test project to find out all the devices(like android or IOS) or other computers connected to the network to which my computer is connected. I am able to see all the connected devices when I login to the router administration console and I want the s

[nodejs] Java Houses Adopting Node.js

2014-06-26 Thread Adam Davies
Hi All, Does anybody know of case studies or have direct experience of a ecommerce companies which have been using Java for many years converting over to node.js? The reason why I ask is because we at Screwfix.com are going through a process of looking at new technologies and defineing our str

[nodejs] Re: Here's your Node.js performance tip of the week - how garbage collection works and how to monitor it

2014-06-26 Thread zladuric
Hi Shubhra, Very nice, detailed article. It explains the standard GC methods that the V8 uses. I've also skimmed What I'd like to add is a little bit of wisdom I've picked up at the MLOC-JS.com conference in Budapest this February. Ben Titzer from Google Chrome division was explaining a little

[nodejs] Node security on different ports

2014-06-26 Thread Joe Bloggs
Hi all! So, I would really like to use Angular + Node for some of the data trends, pie charts, and bar graphs for real-time processing. However, I have to use a non-standard port (not 80 or 443) to make node work, obviously. The other thing is, we are running apache on port 80, so I will be usi

[nodejs] Re: Here's your Node.js performance tip of the week - how garbage collection works and how to monitor it

2014-06-26 Thread Norman Paniagua
Thanks for sharing.. I take a look at the post -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because yo

[nodejs] Git client...

2014-06-26 Thread Ingwie Phoenix
Hey. I am working on a software, that should update itself. Its running on a server, and should recognize when it can update itself. I have the concept and how this is gonna work so far. Problem: I need a git client. Like, a way to figure out if there are pull-able changes. Something like this

[nodejs] Connection confusion (e.g. DNS requests went to webservers tcp port 9200)

2014-06-26 Thread Manu Thoen
Hi there! We're having an index worker. Its consuming RabbitMQ messages, querying against MongoDB and HTTP POSTing to our elasticsearch cluster. Nothing special so far. A few months ago we discovered conspicuous HTTP 400 log entries in nginx, which is the frontend to our elasticsearch cluster

Re: [nodejs] Java Houses Adopting Node.js

2014-06-26 Thread Angel Java Lopez
Maybe, a case study is PayPal https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/ They created Kraken http://krakenjs.com/ more info http://www.infoworld.com/t/javascript/paypal-and-netflix-cozy-nodejs-237593 According to PayPal speaker, at JsConf Montevideo 2014, some times, the b

Re: [nodejs] Node security on different ports

2014-06-26 Thread Charlie McConnell
Just use nginx as a reverse proxy to send connections to the node service. That should eliminate most of these concerns, and it's a very common practice. -- Charlie McConnell On Thu, Jun 26, 2014, at 09:27 AM, Joe Bloggs wrote: Hi all! So, I would really like to use Angular + Node for som

Re: [nodejs] Java Houses Adopting Node.js

2014-06-26 Thread Brett Ritter
On Thu, Jun 26, 2014 at 1:35 AM, Adam Davies wrote: > Does anybody know of case studies or have direct experience of a ecommerce companies which have been using Java for many years converting over to node.js? I know Walmart moved their services layer from Java (Wicket) to Node, and they seem pret

Re: [nodejs] Node security on different ports

2014-06-26 Thread Alex Kocharin
 I believe the correct answer to these questions is "it is bullshit". Non-standard port is as secure as a standard one, and any user who has full access to the Internet would be able to reach it. (only security issue is that if someone else has user access to your server, they can bind on ports >10

Re: [nodejs] Git client...

2014-06-26 Thread Alex Kocharin
if (child_process.execSync('git blah-blah')) child_process.execSync('git blah-blah-blah') ? (there is also creationix/js-git, I have no idea what it can do though) 26.06.2014, 21:02, "Ingwie Phoenix" : > Hey. > > I am working on a software, that should update itself. Its running on a > serve

Re: [nodejs] Git client...

2014-06-26 Thread Ingwie Phoenix
I am not on 0.12.x - still on 0.10.29, so no execSync for me for now :) but I will see if js-git is what I need, thanks! Am 26.06.2014 um 20:19 schrieb Alex Kocharin : > > if (child_process.execSync('git blah-blah')) child_process.execSync('git > blah-blah-blah') ? > > > (there is also creati

[nodejs] Compiling with node-gyp in parallel

2014-06-26 Thread AT
I've tried searching for an answer to this but couldn't come up with anything - is there a way to have npm compile native addons with node-gyp, in parallel? I've developing a native addon and in my Gruntfile I use the following configuration: build: { command: function() { var os = requi

Re: [nodejs] Java Houses Adopting Node.js

2014-06-26 Thread Trygve Lie
PayPal springs to mind: https://www.paypal-engineering.com/2013/11/22/node-js-at-paypal/ Txx On to., 2014-06-26 at 01:35 -0700, Adam Davies wrote: > Hi All, > > Does anybody know of case studies or have direct experience of a > ecommerce companies which have been using Java for many years > conv

[nodejs] Re: Node security on different ports

2014-06-26 Thread Darren
Port numbers below 1024 are privileged ports and require elevated permissions to be able to run services on them. Contrary to your system administrator's concerns, the worry isn't about running services on non-privileged port above 1024 as a normal user, but running things as an admin/superuser

[nodejs] Re: Compiling with node-gyp in parallel

2014-06-26 Thread mscdex
On Thursday, June 26, 2014 5:03:34 PM UTC-4, AT wrote: > > > and it works great for development. I'd like end-users who install my > addon to have the same speedup when they install with `npm install`. Is > this possible? > Not really. I usually just have the environment variable `JOBS` set to t

[nodejs] server.listen hostName issue

2014-06-26 Thread 敬錞潘
How to fix this hostName assign issue below? server.listen(app.get('port'),"123.xxx.xxx.xxx");//this is my ip ,not ok //server.listen(app.get('port'),"127.0.0.1");//ok ,can run in webbrowser console.log("Express server listening on port " + app.get('port')); console.log(server.a

Re: [nodejs] Re: Here's your Node.js performance tip of the week - how garbage collection works and how to monitor it

2014-06-26 Thread Ben Noordhuis
On Thu, Jun 26, 2014 at 12:08 PM, zladuric wrote: > What I'd like to add is a little bit of wisdom I've picked up at the > MLOC-JS.com conference in Budapest this February. Ben Titzer from Google > Chrome division was explaining a little bit of this, how does GC work in V8, > and he's shared a gre

Re: [nodejs] Re: Same codes, different results in REPL and shell environments about UDP socket

2014-06-26 Thread mailto1587
I got it! Thank you very much! --  mailto1587 Sent with Airmail 开启 2014年6月24日 at 下午5:06:02, mscdex (msc...@gmail.com) 写: On Monday, June 23, 2014 6:49:35 PM UTC-4, Xiadong Zhu wrote: An abnormal issue, help please! It's most likely a timing issue. The non-REPL code is running within the same

[nodejs] Re: Java Houses Adopting Node.js

2014-06-26 Thread Luc Renambot
There's a youtube video on Groupon switching from ruby to node.js Luc On Thursday, June 26, 2014 3:35:22 AM UTC-5, Adam Davies wrote: > > Hi All, > > Does anybody know of case studies or have direct experience of a ecommerce > companies which have been using Java for many years converting over

[nodejs] nodejs 32bit module not running on 64bit system

2014-06-26 Thread NodeNinja
I had built a nodejs module with node gyp and it worked fine on 32bit Windows systems until recently I shifted to a 64bit system (Windows). I installed 32bit node and tried to run my node script and it throws an error that module cannot be found. Do I need to rebuild the module to run on 64bit s