Re: [nodejs] Node.Js Hosting

2018-04-26 Thread Jeremy Darling
Don't know what you call expensive, but Linode's (https://welcome.linode.com ) $5 plan (or any other similar VPC) are quite affordable. Other options from them at https://www.linode.com/pricing I've had great luck with Linode in the past. Other options would be Amazon, GCP (Google), Azure,

Re: [nodejs] platform

2017-03-27 Thread Jeremy Darling
2nd response from google for exactly that question answers this best: (from http://stackoverflow.com/questions/35238667/is-npm-dependent-on-the-os-of-a-computer with slight inline edits) The binary, npm, that you install is platform dependent, as is node.js. That's why there are different

Re: [nodejs] JAR like format for nodejs

2016-10-21 Thread Jeremy Darling
Since you can overload the way that Require works you don't actually need a "change" to Node you can just add in your own loader, as an example here is a very simple YAML loader: const fs = require('fs'); const yaml = require('js-yaml'); require.extensions['.yaml'] = require.extensions['.yml'] =

Re: [nodejs] Why build Node from source on Linux?

2015-11-05 Thread Jeremy Darling
Personally, I prefer to install Node through NVM ( https://github.com/creationix/nvm) for development environments. For our stage, QA, and production environments we use the prebuilt image. As for advantages, honestly, I can't find any unless you plan on working on the Node codebase yourself.

Re: [nodejs] Node.js high performance says: You should not have files bigger than 5 kB

2015-08-31 Thread Jeremy Darling
Never heard that before. Having worked on some very large Node.js projects I can tell you that 5k is no magic number, lots of code bases, libraries, and projects will have source files over 5k. Really what you have to watch out for is spaghetti code that is easy to accidentally end up with.

Re: [nodejs] Checking order HTTP requests leave the connection pool?

2015-07-22 Thread Jeremy Darling
Actually, yes, there is a way to intercept the http request/response mechanic. This is some working code that I will be cleaning up at some point, but for now it could suffice as a reference. Of course you can also use the precis-client-logger with the precis-file-adapter or

Re: [nodejs] [ANN] Logger - distributed logging system

2015-03-11 Thread Jeremy Darling
Well, you could use something like (the soon to be released) Precis ( https://github.com/precis-logging/precis) project. Built on top of a centralized event message bus (by default it will use MongoDB capped collections) and already being used for 100,000+ messages a second. The event bus used

Re: [nodejs] book or beginners tutorial about functional programming in node

2015-01-20 Thread Jeremy Darling
You can almost always find something on the Essential JavaScript Links repository: https://gist.github.com/ericelliott/d576f72441fc1b27dace From there, maybe this will help: - The Two Pillars of JavaScript Part 2: Functional Programming

Re: [nodejs] wtf npm

2015-01-13 Thread Jeremy Darling
He is calling the job listings ads. IMHO they are out of the way and below the valuable content. Not like your paying for npmjs so really there shouldn't be a complaint, they have to make their $$ someplace and I'd rather it be from a couple job listings in the bottom right corner of the page

[nodejs] Any way to capture errors from vm.runInNewContext?

2014-12-10 Thread Jeremy Darling
Is there any way to actually capture exceptions from code running vm.runInNewContext or vm.runInContext, etc...? Seems there should be an on('error') or something callback but can't find it. Wrapping the call in try/catch does't capture anything that is within an async call within the script

Re: [nodejs] Re: Any way to capture errors from vm.runInNewContext?

2014-12-10 Thread Jeremy Darling
Hadn't thought of wrapping the code in a domain, thanks for the idea. Will give that a try and see if it gets me closer. Trying to catch typos on a remote SSH client instead of just getting a generic Hapi error back. On Wed, Dec 10, 2014 at 9:49 PM, Andrey andrey.sido...@gmail.com wrote: no.

Re: [nodejs] Re: Plain text search to ... modules?

2014-11-10 Thread Jeremy Darling
Thanks, if nothing else that's a great starting point :) On Mon, Nov 10, 2014 at 3:49 AM, greelgorke greelgo...@gmail.com wrote: i have used https://github.com/tj/node-monquery but beware, the maintainer isn't doing node anymore. Am Freitag, 7. November 2014 20:29:10 UTC+1 schrieb Jeremy:

[nodejs] Plain text search to ... modules?

2014-11-07 Thread Jeremy Darling
This seems like a common enough scenario that their is probably already a module for it, so I'm asking before I start writing one :). Given a generic free form text search input on a webpage I would like to have it converted over to a query to be executed against my data. My target is MongoDB

[nodejs] Linking C sources files in CC files?

2014-10-20 Thread Jeremy Darling
Ok, stuck again. Got everything working with the integer and pointer thing from all the help before (thanks!) but now I'm stuck in another place. The source files I have are .C files with .H headers. I can compile them using node-gyp with no issues and apparently bind them to my .CC file with

[nodejs] Re: Linking C sources files in CC files?

2014-10-20 Thread Jeremy Darling
Nevermind, found my own answer after finally hitting the right google search terms. Added #ifdef __cplusplus extern C { #endif ... source code here... #ifdef __cplusplus } #endif So that the CPP compiler would know I was talking C and not CPP :) On Mon, Oct 20, 2014 at 3:16 PM, Jeremy Darling

[nodejs] V8::Number to unsigned int?

2014-10-16 Thread Jeremy Darling
I'm trying to wrap up some hardware libraries for use with Node.js and have run into a casting issue. I did some searching around, but Google and the cheat sheets failed me. Can anyone answer how I should properly convert an argument to a unsigned int? LocalInteger pin =

Re: [nodejs] V8::Number to unsigned int?

2014-10-16 Thread Jeremy Darling
Worked perfectly, thanks greatly! On Thu, Oct 16, 2014 at 11:07 PM, Louis Santillan lpsan...@gmail.com wrote: The code you want is: int n = ( int )( args[ idx ]-Int32Value() ); On Thu, Oct 16, 2014 at 8:46 PM, Jeremy Darling jeremy.darl...@gmail.com wrote: I'm trying to wrap up some

Re: [nodejs] Re: ANN: ssh2 module

2014-10-10 Thread Jeremy Darling
You may have to specify your shell on your embedded device. What device and shell are you using? On Fri, Oct 10, 2014 at 3:29 PM, cesdaile cesda...@gmail.com wrote: Yep on the current version of ssh2 - just installed this week. Ok - I think I am closer to figuring this out now with your

Re: [nodejs] worry.... of ES6 and Node errors

2014-09-10 Thread Jeremy Darling
I'm not on the Node team but I would assume that it would depend on what the V8 team decides to do since Node is basically a wrapper around V8 at the end of the day. If the V8 team decides to enforce ES6 only (unlikely) and not provide backward compatibility with ES5 then Node would most

Re: [nodejs] Introducing: KeystoneJS, a new cms / web app framework built on Express and Mongoose

2014-01-08 Thread Jeremy Darling
I actually ran across KeystoneJS a couple of days ago while looking for a boxed CMS solution to recommend for some projects I've been working on. It looked interesting enough, but fell short in the same areas as almost every other Node.js based offering on the market today (IMHO): 1) The example

Re: [nodejs] soap module for node

2013-11-11 Thread Jeremy Darling
You would create a fork of the repository to your own Git Repository, make the fix in your version, and then use that git path as your dependency ( http://github.com/.../yourGitHubAccount/node-soap.git) Also you should submit your fork as a PULL request back to fix the defect. On Mon, Nov 11,

Re: [nodejs] soap module for node

2013-11-11 Thread Jeremy Darling
Oh, yeah, just put the changes into your project. If the changes are part of a module (node-soap as an example) then you would want to change those libraries inside the node_modules folder. On Mon, Nov 11, 2013 at 5:25 PM, Reza Razavipour reza.razavip...@gmail.comwrote: m question is how to

Re: [nodejs] Re: Debugging running node process

2013-09-19 Thread Jeremy Darling
I'd suggest looking at Theseus (for Brackets) http://blog.brackets.io/2013/08/28/theseus-javascript-debugger-for-chrome-and-nodejs/ Has helped me debug callback soup more than once. I use it frequently on my Lenovo IdeaPad u310 for debugging, but not for editing, so it doesn't require a ton of

Re: [nodejs] Re: How i can deploy nodejs in vps

2013-08-26 Thread Jeremy Darling
Assuming your on linux: http://stackoverflow.com/questions/11275870/how-can-i-automatically-start-a-node-js-application-in-amazon-linux-ami-on-aws Also, wrap your process in forever to keep it up and running in case of faults. If you want to go all out, services like AppFog, NodeJitsu, and etc

Re: [nodejs] Re: Java APi for Node.js

2013-07-22 Thread Jeremy Darling
I would look to Rhino for use with Tibco EMS as a BW Process. That or, the way that we actually did this, create an EMS BW Process that acts as a bridge between a MongoMQ (MongoDB Capped Collection used as a message queue) and TibcoEMS. If there were a JMS Adapter for Node.js then we could put

Re: [nodejs] windows-service - Run Node.JS programs as native Windows Services.

2013-02-21 Thread Jeremy Darling
What is the difference in this and WinSer using NSSM? I'm not picking I'm just curious. On Thu, Feb 21, 2013 at 4:41 PM, Stephen Vickers vortex.is...@gmail.comwrote: Hi All, I've created a new module named windows-service providing the ability to run Node.JS programs as native Windows

[nodejs] [ANN] MongoMQ - A basic MQ based on Node.js and MongoDB tailable cursors

2012-07-13 Thread Jeremy Darling
MongoMQ is a messaging queue built on top of Node.js and MongoDB's tailable cursors. It allows for distributed of messages across workers in both a single reciever and broadcast method. MongoMQ does NOT (currently) support callback's once a message is processed. Instead it is recommended that you

Re: [nodejs] Re: Java APi for Node.js

2012-07-13 Thread Jeremy Darling
Rhino is the Node.js of the Java world (traditionally speaking). But, a distributed MQ like Zero is a way to integrate via message passing. My MongoMQ could also be used as could just about any other MQ that is supported by Java and Node. If your already using an enterprise system like Tibco

[nodejs] [ANN?] Windows 64 bit SQL Client for Node.js

2012-06-28 Thread Jeremy Darling
I've looked and looked for a good SQL Client that worked on Windows 64 bit for Node.js and didn't find any, so I build one myself. I started with code from other projects but in the end just used the MS examples and expanded them to the point that they worked. This is being used in production

Re: [nodejs] NodeJS login in Chrome 17.x - global sessions/cookie issue

2012-06-26 Thread Jeremy Darling
I'm not completely familiar with how express handles encoding, but when you send over your content make sure you do a toString('utf-8') on it and on your response object headers specify the uft-8 encoding as well. Something similar to: var headers = { Content-Type: text/html;

Re: [nodejs] node.js install to BlueHost configuration error

2012-05-22 Thread Jeremy Darling
Just because I'm curious what hosting package do you have with BlueHost? I only see where they have an unlimited plan running $5 a month. If that is the same one you are using I'd love to know more details about how you setup Node and what the performance has been. - Jeremy On Mon, May 21,

Re: [nodejs] Nodejs scaling by running multiple processes: what's the optimal number of processes?

2012-05-17 Thread Jeremy Darling
Our experience has shown that 2 processes per core thread (IE: On an i7 you get 8 core threads on 4 cores due to hyperthreading) balances quite well. This isn't to say that your experience won't differ. We have all of our code broke into logical families and utilize Hook.io as a message bus

Re: [nodejs] Re: Node Concepts

2012-05-02 Thread Jeremy Darling
you hit a running filly? On Wed, May 2, 2012 at 1:08 PM, codepilot Account codepi...@gmail.comwrote: This shit is getting skilly. On Wed, May 2, 2012 at 11:06 AM, Mark Hahn m...@hahnca.com wrote: This skit is getting silly. On Wed, May 2, 2012 at 11:05 AM, Marak Squires

Re: [nodejs] Opinions on self hosting stacks for Node apps

2012-04-23 Thread Jeremy Darling
is mostly single threaded. Some things like fs.* and zlib.* use a thread-pool so that they don't block the main thread, but your js code will always run in the main thread. On Fri, Apr 20, 2012 at 12:00 PM, Ryan Schmidt google-2...@ryandesign.com wrote: On Apr 20, 2012, at 07:40, Jeremy

[nodejs] Opinions on self hosting stacks for Node apps

2012-04-20 Thread Jeremy Darling
Just curious what experiences others have had with hardware and hosting multi-process Node app stacks using MongoDB (or similar)? So far my testing has shown that a cluster of smaller (3 - i5's with 8GB Ram and 120GB SSD's) machines out performs a single massive server (4x4 with 64GB Ram and

Re: [nodejs] cool home automation stuff in node?

2012-04-16 Thread Jeremy Darling
ROLF so keeping that link for future reference :) On Monday, April 16, 2012, Dean Landolt wrote: On Mon, Apr 16, 2012 at 1:18 PM, Mark Hahn m...@hahnca.comjavascript:_e({}, 'cvml', 'm...@hahnca.com'); wrote: Is this a server from home? http://lmgtfy.com/?q=home+automation On

Re: [nodejs] SMTP client that works with Windows

2012-04-13 Thread Jeremy Darling
I've had really good luck with mailer ( https://github.com/Marak/node_mailer ), but I don't think it supports attachments. Might be easy to modify it to support them though as basically its just Base64 encoded into the headers based on Mime Type. Conversion of something like the code here (

Re: [nodejs] Any good rest module?

2012-04-12 Thread Jeremy Darling
Have a look at Hook.io ( https://github.com/hookio ) and Hook.io-restful ( https://github.com/jdarling/hook.io-restful ). Might just suite your needs. Note that Hook.io 0.9 will introduce some type of balancing mechanic that doesn't currently exist today. Restful may be a bit out of date, but

[nodejs] ENOBUFS - How to catch/deal with it?

2012-03-26 Thread Jeremy Darling
From everything that I've read this primarily deals with Windows and its ability to cache network communications. I have a hook.io app that with occasionally bomb out with the ENOBUFS exception and for all of my efforts I can't figure out how to catch and deal with this error. I realize that the

Re: [nodejs] ENOBUFS - How to catch/deal with it?

2012-03-26 Thread Jeremy Darling
. - Jeremy On Mon, Mar 26, 2012 at 8:48 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Mon, Mar 26, 2012 at 14:22, Jeremy Darling jeremy.darl...@gmail.com wrote: From everything that I've read this primarily deals with Windows and its ability to cache network communications. I have a hook.io app

[nodejs] Re: ENOBUFS - How to catch/deal with it?

2012-03-26 Thread Jeremy Darling
I'll see if I can't create one that just uses EventEmitter, though I have to admit that my skills are not so (as the kids say) mad :) - Jeremy On Monday, March 26, 2012, Bert Belder bertbel...@gmail.com wrote: On Mar 26, 2:22 pm, Jeremy Darling jeremy.darl...@gmail.com wrote: From everything

Re: [nodejs] Problem with node-waf

2012-03-02 Thread Jeremy Darling
I can't help you with your problem but I will say that maybe you should be moving to node-gyp since it is the replacement for node-waf? At least according to TTN it is :) https://github.com/TooTallNate/node-gyp node-gyp is a cross-platform command-line tool written in Node.js for compiling

Re: [nodejs] Automatically populate dependencies based on node_modules folder contents?

2012-02-22 Thread Jeremy Darling
Thanks for the answer, didn't know that myself :). Might want to update the docs you linked to as I don't actually see --save or -S mentioned anywhere on that page or the install package page. Though I could be missing it. On Tue, Feb 21, 2012 at 10:02 PM, Thomas Blobaum tblob...@gmail.com

Re: [nodejs] Re: Connection dies with ECONNREFUSED

2012-02-22 Thread Jeremy Darling
: 2 CPU MHz: 2399.956 Virtualization:VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 12288K On Wed, Feb 22, 2012 at 4:16 PM, Jeremy Darling jeremy.darl...@gmail.comwrote: OS, Num CPUs, Firewall

Re: [nodejs] Free nodejs services

2012-02-20 Thread Jeremy Darling
Here are some I've played with. Takes a while to get invites, and in the case of cloudno.de can be painful if you don't understand GIT very well (I'm still learning), but it seems the better option IMHO so far http://cloudno.de/ https://no.de/ - Jeremy On Mon, Feb 20, 2012 at 12:31 PM,

[nodejs] Node as a CGI or FastCGI module

2012-02-17 Thread Jeremy Darling
I know this has been asked before and I've been all over Google trying to find the solution, but I'm just not having any luck. Is there a .cgi or .fcgi application for node? I've seen the tootallnate references to server.cgi that makes the assumption that node is installed on the server to begin

Re: [nodejs] Node as a CGI or FastCGI module

2012-02-17 Thread Jeremy Darling
:50 AM, Brett Ritter swift...@swiftone.org wrote: On Fri, Feb 17, 2012 at 12:44 PM, Jeremy Darling jeremy.darl...@gmail.com wrote: I know you can build c/c++ applications as a CGI app, but I just can't seem to figure out how to build node as a CGI app. Anyone had any real luck

Re: [nodejs] Node as a CGI or FastCGI module

2012-02-17 Thread Jeremy Darling
...@gmail.com wrote: If you were just looking to play around, you could sign up for something like nodester (http://nodester.com/) On Fri, Feb 17, 2012 at 11:46 AM, Jeremy Darling jeremy.darl...@gmail.com wrote: Honestly, I didn't realize there was a free EC2 instance. Its been a few years