[nodejs] Re: Conceptual question about modules [learnyounode: Make It Modular]

2018-08-07 Thread Simon Renoult
Hi Matias, It's mostly a question of definition: A *module* is a file (see the official documentation ). A *module* (ie: a file) can export anything from a variable to a function. If it starts with "./" (ie: "require('./foo')") Node.js will

[nodejs] Evil nodejs memory leak - nodejs 8.9.0

2017-11-09 Thread 'Simon H' via nodejs
Hi all, I've found a fairly bad memory leak updating to nodejs 8.9.0, which I think should be of concern generally in NR. Environment: Nodejs 8.9.0 NR 0.17.5 Note: this did not occur in nodejs 6.11 In a function node, I have the following code: var starttime

[nodejs] Re: Handling packaging, installation, patches and updates of distributed Node.js-app

2017-11-09 Thread 'Simon H' via nodejs
Hi Robin, sent you a msg/invite via linkedin. email me. -- 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 b

Re: [nodejs] Re: Windows Connection Credentials from Linux

2017-06-05 Thread Simon Doodkin
I meant you can look at this https://www.npmjs.com/package/smb2 not sure when but sometimes network file systems are too slow for the concurrent web - just be aware if bottle neck situation did not happen... On 4 June 2017 at 17:01, Grant MacDonald wrote: > Hi guys. I appreciate the responses

[nodejs] Re: Windows Connection Credentials from Linux

2017-06-03 Thread Simon Doodkin
things like this are done in Linux using the mount command windows file sharing are called Samba on Linux there is samba server client probably there is user space( in the kernel ) plugin for file system mount for this. you can download for your linux ...using apt or yum the authentication is NT

[nodejs] Issues with new Karma test against new module

2015-11-16 Thread Simon Taylor
http://stackoverflow.com/questions/33726326/node-js-karma-testing-hottowel-template-extension Does anyone have an idea about this question i posted over on stack overflow? -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md

[nodejs] Re: Nodejs on managed server

2015-04-22 Thread Simon Auer
Hi guys, thank you for your answers. So is there anything I should tell him, that he must take care of while installing nvm? (certain configuration or way to install nvm? like node when you want to use it without sudo?) For the proxying: i actually never had the problem of proxying before, so I

[nodejs] Nodejs on managed server

2015-04-20 Thread Simon Auer
ost a link to installation/configuration instructions that I could pass to my provider? I just want to make she he installs it right, because he doesn't have much experience with node. best regards Simon -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.co

[nodejs] Re: good tutorial about for example a reservation system

2015-01-07 Thread Simon Ho
We don't have a tutorial for a a reservation or commenting system yet (feel free to ask request an example in the LoopBack Google Group ), but we do have examples on relations in LoopBack (which is Express underneath the hood). https://github.

Re: [nodejs] Re: Good examples on how to create a library that aggregates REST api's ?

2014-12-26 Thread Simon Ho
an use to serve up "new" custom REST endpoints. On Friday, 26 December 2014 09:46:14 UTC-8, Justin Maat wrote: > > Thanks Simon. I'm vaguely familiar with LoopBack but I'll have to read a > bit more. This looks better for creating an actual REST api, which I

Re: [nodejs] Re: Good examples on how to create a library that aggregates REST api's ?

2014-12-26 Thread Simon Ho
formation. Cheers, Simon On Monday, 15 December 2014 14:15:09 UTC-8, Justin Maat wrote: > > Awesome thanks!!! > > Yes, this is basically the same general concept I'm trying to achieve. > Didn't even know this project existed :) > > > > On Monday, 15 December 20

[nodejs] Re: 0.12 intro?

2014-12-16 Thread Simon
ES6 Arrow functions? I get tired of writing .bind(this) all the time. On Tuesday, December 16, 2014 11:21:27 AM UTC-8, // ravi wrote: > > > > Rather than the more common “please sir may I have some 0.12?”, I want to > ask if anyone better informed than I am wants to take a shot, for the > edific

Re: [nodejs] Re: Chef-like tool powered by node.js?

2014-12-08 Thread Simon L
So, here's my conclusion: I will present my findings to my boss, but my current recommendation is Salt. I'm really hoping I'm wrong on this and that a more robust node-based system management system will come out. Quick comparison, and correct me if I'm wrong. *Salt* - Best choice at this time,

[nodejs] Re: Chef-like tool powered by node.js?

2014-12-08 Thread Simon L
Hi Bruno and others- Any updates? I know this is an older post, but it's still very relevant. I'd like your input. I am also looking into the different solutions to keep things as "node.js friendly" as possible. >From what I've seen, most people are moving to salt: http://docs.saltstack.com/en

[nodejs] Re: [ANN] node-android - Node.js rewrite in Java for Android

2014-10-14 Thread Simon
Wow! What JS engine are you using? On Tuesday, October 14, 2014 7:53:33 AM UTC-7, tom wrote: > > Node.js rewrite for Android with the compatible API. > > http://instantwebp2p.github.io/node-android/ > Features > >- Node.js 0.10.x compatible API >- libUV native support >- Timer, set

[nodejs] Re: In chaijs/type-detect module, what does this line of code do: {if (obj === Object(obj)) return 'object';}?

2014-09-23 Thread Simon
This is used to determine if something is a primitive or not. `typeof null` returns 'object' even though it is not an object and `typeof function() {}` returns 'function' even though it is an object. Basically 'typeof' alone is not enough to determine if something is primitive or object. `insta

[nodejs] Re: NPM: I don't need your tests in my production!

2014-09-21 Thread Simon
Awesome! On Saturday, September 20, 2014 5:59:26 AM UTC-7, Ivan Nikulin wrote: > > Packages in npm are bloated with stuff which you will never ever use, > like build files and different kinds of test data. Guys from npm provided > us with .npmignore files, but seems like almost no one uses it. P

[nodejs] Re: [ANN] LWIP image processor v0.0.2

2014-09-08 Thread Simon
Great! I been waiting for PNG support to use this. Super excited about this project because I had having to spawn processes to run external executables and messing with paths and all that. On Thursday, September 4, 2014 5:14:11 AM UTC-7, Eyal Arubas wrote: > > LWIP

Re: [nodejs] Re: javascript callback guard - prevents a callback to be called twice

2014-08-23 Thread Simon Doodkin
standing the problem is not that it's not possible to prevent >> callback from being called twice, with underscore it's as simple as `cb = >> _(cb).once()` - but the problem is that it's cumbersome to do it everywhere. >> >> On Wednesday, 20 August 2

[nodejs] javascript callback guard - prevents a callback to be called twice

2014-08-19 Thread Simon Doodkin
Not long ago, T.J. complained in an article that he doesn't likes that in node.js sometimes callbacks are called more than once. i have a simple solution for this if you need it. also i can suggest that if you have callback problems you could use https://github.com/mattinsler/longjohn module to

Re: [nodejs] Parse an SQL query into a JavaScript object

2014-07-17 Thread Simon
What about this: https://github.com/dsferruzza/simpleSqlParser I've come across a few in the past but they're often not feature-complete and can't parse JOIN and subqueries and such. I think one of the use cases I've seen was to polyfill WebSQL by using IndexedDB in the browser, but I can't fin

Re: [nodejs] Re: Cross compiling node.js for microblaze

2014-07-10 Thread Simon Vincent
Thanks for the info. I think I will have to give node.js a pass on the microblaze. It looks far too much work! Regards On 10 July 2014 05:02, wrote: > Hi Simon, > > I looked into a different approach of putting JS on a FPGA by writing a JS > interpreter in a high-level-lang

[nodejs] Cross compiling node.js for microblaze

2014-07-08 Thread Simon Vincent
Will node.js work on other hardware platforms other than X86 and ARM? If I managed to get it to compile for microblaze would it work or would I be wasting my time? Thanks Simon -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation

[nodejs] Re: Writing a simple native image processing module

2014-07-03 Thread Simon
Very Awesome! On Tuesday, July 1, 2014 10:34:22 PM UTC-7, Eyal Arubas wrote: > > Following this discussion I started development of an image processing > module without runtime dependencies. > > https://github.com/EyalAr/lwip > > Features: > 1. No runtime dependencies. No need to pre-install anyt

[nodejs] Re: Well funded Node shop in Kansas City hiring more engineers

2014-03-29 Thread Simon
I recently moved to Silicon Valley but I grew up in KC and I can say that is a really affordable and high quality place to live. If your Node shop is paying anything close to what JS engineers are getting here in the valley, I'd say there's a lot of value to living in the mid-west instead of pay

[nodejs] anyone has redis usage boilerplate like a crud model in javascript (example included)

2014-01-25 Thread Simon Doodkin
Does anyone has Redis usage boilerplate like a CRUD model in Javascript. For eaxmple: http://forrst.com/posts/How_I_make_models_in_Node_js_using_Redis_as_dat-90W How do you use Redis to manage users, and maybe like bank accounts? Please share your Redis usage code. thanks Simon -- -- Job

[nodejs] Re: how to read json array

2014-01-17 Thread Simon Platten
Hello, lets say the JSON is coded as possible: var example = { '95': [ { cityId: 78, cityName: 'Kuala Kangsar' }, { cityId: 94, cityName: 'Tanjung Malim' }, { cityId: 1, cityName: 'Singapore' }, { cityId: 9, cityName: 'Ipoh' }, { cityId: 83, cityName: 'Taiping' } ], '1

[nodejs] Re: NodeJS PPTP VPN server

2014-01-16 Thread Simon
Never ceases to impress me the variety of networking tools and protocols people have implemented in Node. Thanks for releasing this, I'm sure there's a use for it out there (PPTP - OpenVPN bridge comes to mind, for users that can't install an OpenVPN client) On Thursday, January 16, 2014 5:06:4

[nodejs] Re: Would you like to have RoR clone in NodeJS?

2014-01-11 Thread Simon
That is very cool. I started down a similar path using Fibers in 2012 but ended up diverging from a RoR clone and becoming much lighter weight, yet still heavily inspired by Rails. Originally it was going to be RailsJS (railsjs.com) but I ended up calling it Drift (will be putting something up

[nodejs] Re: Main download site at nodejs.org does not support HTTPS

2013-12-09 Thread Simon
By design HTTPS/TLS is supposed to protect against man-in-the middle! Isn't that what certificate signing is all about? Else we could just all generate our own certificates. SSH on the other hand does not really prevent MitM (but mitigates it slightly with fingerprints). Correct me if I'm wrong

[nodejs] Re: [opinion-request] Routing Syntax

2013-11-05 Thread Simon
is string, right? Anybody who reads the code will > understand that without any explicit "[string]" garbage attached to it. > > > On Monday, November 4, 2013 10:37:28 PM UTC+4, Simon wrote: >> >> In my URL routing (express/sinatra-style), I'd like to enable

[nodejs] [opinion-request] Routing Syntax

2013-11-04 Thread Simon
In my URL routing (express/sinatra-style), I'd like to enable optional parameter "filters" (like int, hex) while keeping syntax familiar and simple. The typical syntax for a routing library might look something like: app.get('/users/:id', function(req, res, id) { ... }); I'd like to introdu

[nodejs] Re: Shared memory between processes

2013-07-07 Thread Simon Majou
aybe usefull, if bug or > suggestion, inform me. > > Exactly like a Simon wrote, already are here real cases for using shared > memory from node.js. > And potential concurrency issues (solvable) aren't reason to not use > shared memory. > Maybe bigger problem is "

Re: [nodejs] Re: standard content-type for "streaming JSON" (newline delimited JSON objects)?

2013-07-04 Thread Simon Majou
nd process it as it is available, without necessarily needing > to use another abstraction like a websocket, which may or may not be > available for your use. > > > On Thu, Jul 4, 2013 at 8:54 AM, Simon Majou > > wrote: > >> I don't get the interest of this thing.

[nodejs] Re: standard content-type for "streaming JSON" (newline delimited JSON objects)?

2013-07-04 Thread Simon Majou
I don't get the interest of this thing. If you want to send an array, just use an array. If you want to delimit json messages on a stream without parsing the messages, I don't know if it is practical as JSON accepts any unicode. \n is valid inside of strings (http://json.org/string.gif). On

[nodejs] Re: TCP stream -> HTTP auth -> TCP stream

2013-06-03 Thread Simon
Oh, and don't forget the semi-colons : ) On Tuesday, June 4, 2013 5:24:04 AM UTC, Tim Oxley wrote: > > Hey simon :D So I have my own 'bouncy', but I think you're on the right > track, I should just figure out how bouncy works, or just use bouncy. > > >

[nodejs] Re: TCP stream -> HTTP auth -> TCP stream

2013-06-03 Thread Simon
er bounce to a local HTTP server that sends 401/403 or else bounce to the "actual" HTTP servers if authenticated. Cheers, Simon On Sunday, June 2, 2013 4:57:40 AM UTC, Tim Oxley wrote: > > I'm trying to use a module like > http-auth<https://github.com/gevorg/http-a

[nodejs] Re: [ANN] mysqlite.js

2013-06-03 Thread Simon
That's friggin awesome! On Sunday, June 2, 2013 4:18:02 AM UTC, Andrey wrote: > > https://github.com/sidorares/mysqlite.js > > Mysql server for sqlite database using emscripten-compiled sqlite > (kripken/sql.js) and mysql2 as server-side protocol implementation. > JS only, no mysql or sqlite requ

[nodejs] I am finding it Hard to use node.js

2013-05-22 Thread Kaweesi Simon
I am very new to using Technologies like node.js. I have followed Tutorials but Every time i try to run the Script of the Server, i don't get any Reply. I installed Node.js and i have to commandline interfaces ie one having the Icon of Node.js and the Other is Like My Normal commandline. Which

Re: [nodejs] Shared memory between processes

2013-04-16 Thread Simon Majou
Thanks for the info ! Medea & medea-clusterify are very interesting. On Tuesday, April 16, 2013 6:48:49 PM UTC+2, Kevin Swiber wrote: > > > On Apr 16, 2013, at 6:57 AM, Simon Majou > > wrote: > > Resurrecting this topic ... > > I think there is a real use

[nodejs] Re: Shared memory between processes

2013-04-16 Thread Simon Majou
Resurrecting this topic ... I think there is a real use case for node for shared memory. Because TCP connections are great but will always be slower than direct access to memory. To avoid any concurrency issue shared memory should be writable only by one process. When using the cluster module

[nodejs] Re: [ANN] cachifest module - create cache manifests for static assets

2013-04-09 Thread simon . sasburg
Interesting, i've been looking for something like this to smooth out the rollout of new changes. Is there any reason why you don't use something like 'assets/bg.sfw?cachifest=v135472962203' instead of 'assets/bg_v135472962203.swf' for the replacement url? That way you shouldn't need an

[nodejs] Re: How to build a nodejs community in Vietnam

2013-03-20 Thread Simon
ote: > > May you send me the link or facebook of the community which you were > mentioned in Thailand? I am very interested to refer. > > That sounds great with "Jelly" Event. I will try to organize its. > > If you have free time in HCMC, I ready to invite you a coffe

[nodejs] Re: How to build a nodejs community in Vietnam

2013-03-20 Thread Simon
I am in Thailand (Chiang Mai) and there is a healthy Node community here. It is mostly westerners but there are Thai programmers too. You can often find the community of developers by looking for online business groups, web meetups or "Jelly" events. If you are in a larger city, there might be

Re: [nodejs] Re: process.exit() when running as a windows service?

2013-02-28 Thread Simon Rijk
Do you know what signal the main NodeJS process receives when a Windows service is stopped? I am using NSSM to install my NodeJS process as a Windows service. But when I stop the Windows service,* the child processes keep running*. Do you know how to solve this? Op dinsdag 13 maart 2012 05:

Re: [nodejs] Is it possible to use node.js to built very simple cross-platform app?

2013-02-11 Thread Simon
> "I've written a Dropbox-like tool in node.." @Matt I'd be interested in that, as I have to write a similar command-line tool for OS X. I was going to use watchr which I've had success with in the past, but I will have to write the logic to mirror changes to a

Re: [nodejs] Re: Is it possible to use classic ASP components with nodejs?

2013-01-25 Thread Simon
If you do give it a try, please post your results. I'd be interested in if and how well this works for your use case. Thanks. On Thursday, January 24, 2013 7:47:17 AM UTC, Umut Muhaddisoglu wrote: > > This looks so good to be true. Seems hard to debug but will probably work. > > Thanks so much a

Re: [nodejs] Re: Is it possible to use classic ASP components with nodejs?

2013-01-16 Thread Simon
Would it be relatively straightforward to use node-ffi to access OLE/COM objects on Windows without writing C? This would be useful in building a web app or CLI to interface with software like hMailServer which has an extensive COM API. On Wednesday, January 16, 2013 10:31:42 AM UTC, ajlopez wr

[nodejs] Re: Running NodeJs inside JVM

2012-12-09 Thread Simon
Oh, there's also DynJS which Douglas Campos presentedat JSConf.eu 2011 and looks very promising. It seems pretty active on GitHub and I believe

Re: [nodejs] Running NodeJs inside JVM

2012-12-09 Thread Simon
In response to Why use Nashorn instead of Node, I thought it was funny that one commenter mentioned: "Node.js uses Google's V8 Javascript engine which is too fast for some applications. Also, it doesn't use enough memory, a problem the JVM is likely to correct..." Source: http://developers.sla

Re: [nodejs] How do you speed up file sending in json format

2012-12-09 Thread Juan Simon
3000+, 1 cores and that's why I'm noticing a real difference with node.js Big hardware == Little difference Little hardware == Big difference Regards, Juan S. Simon On Sun, Dec 9, 2012 at 4:05 AM, Ket wrote: > I've a proof. I'm trying my project. I can't show anyone

[nodejs] Re: Issues using request with browserify

2012-11-26 Thread Simon
Oops, it looks like you meant 2.9, that's obviously where the dependency on `mime` showed up. Thanks again. On Monday, November 26, 2012 4:49:27 AM UTC, substack wrote: > > On Sunday, November 25, 2012 4:40:54 PM UTC-8, Simon wrote: >> >> Has anyone had any luck usin

[nodejs] Re: Issues using request with browserify

2012-11-26 Thread Simon
It looks like the most recent 1.9.x commit is from Aug 13, 2011 so I'll look into submitting a pull request. Thanks On Monday, November 26, 2012 4:49:27 AM UTC, substack wrote: > > On Sunday, November 25, 2012 4:40:54 PM UTC-8, Simon wrote: >> >> Has anyone had any luck

[nodejs] Issues using request with browserify

2012-11-25 Thread Simon
al" filesystem. Does that sound right? I might take a look at automatthew's shred instead since this is just for some mocha tests, any http client wrapper should do. Any suggestions? Thanks, Simon -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/jo

[nodejs] Re: [ANN] native html parser

2012-10-28 Thread Simon
Domenic, I'd be curious to know what parsers you are considering and if you have some tests / html examples that are tripping up the existing parser.. On Friday, October 26, 2012 10:57:06 PM UTC+7, Domenic Denicola wrote: > > Very nice. As maintainer of jsdom, I've been looking for a replacemen

[nodejs] Re: Why socket buffering is on by default?

2012-10-18 Thread Simon
It looks like noDelay is true by default, which means buffering is off. On Thursday, October 18, 2012 8:44:32 PM UTC+7, Vitaly Puzrin wrote: > > http://nodejs.org/api/net.html#net_socket_setnodelay_nodelay > > Can anyone explain use case, when default buffering is really useful? > IMHO, it just m

[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-08 Thread Simon
a) Go for it. API-breaking changes are somewhat expected in Node and the quality and consistency of Node's API is one of it's strongest points. Keep the quality high even if you make a few breaking changes pre-1.0. The sooner the better. On Tuesday, October 9, 2012 6:24:36 AM UTC+7, Isaac Schl

[nodejs] Node-Related Domain Names

2012-09-21 Thread Simon
rid of them to someone in the Node community for a good price if anyone is interested. nodeapp.com nodeteam.com nodecluster.com I have a couple good similar, but non-node ones too, if anyone wants, I'll post those. Cheers, Simon -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: possible in npm to force architecture?

2012-08-28 Thread Simon Horton
Thanks a lot that worked for me :-) try setting the `npm_config_arch` environmental variable to your desired > architecture when spawning `npm` -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

[nodejs] Re: CampJS will probably be awesome

2012-07-31 Thread Simon
Sounds brilliant. Wish I could go! On Wednesday, August 1, 2012 1:06:48 AM UTC+7, secoif wrote: > > Cross-posting (with edits) from > nodejs.au to > ensure I get everyone. If you're in Australia and you're not on the > nodejs.au maili

[nodejs] Re: e-Commerce platform

2012-07-20 Thread Simon
This sounds like an exciting (but ambitious) project. I'l like to hear how it goes. If you want to appeal to Shopify users, I'd consider using the Liquid templating language and fibers/syncronize as Alexy mentioned. There's already implementations of Liquid in Node and syncronous programming st

[nodejs] Re: Need raw http headers

2012-05-30 Thread Simon
You have to patch the request prototype and hook into the _addHeaderLine. It's not hard, but it's a bit hacky. var http = require('http') , req = http.IncomingMessage.prototype; var _addHeaderLine = req._addHeaderLine; //Patch ServerRequest to save unmodified copy of headers req._addHeaderLin

[nodejs] Re: Need raw http headers

2012-05-30 Thread Simon
You have to patch the request prototype and hook into the _addHeaderLine. It's not hard, but it's a bit hacky. var http = require('http') , req = http.IncomingMessage.prototype; var _addHeaderLine = req._addHeaderLine; //Patch ServerRequest to save unmodified copy of headers req._addHeaderLin

Re: [nodejs] Re: Efficiently list, compare and rate javascript packages | Maintaining packages by the community

2012-04-16 Thread Simon Thépot
Nipster seems good ! What do you think about commit rights being spread to community ? We could create some kind of organization like collective for Plone ? Cheers, Simon 2012/4/13 Jeff Barczewski > This question came up just a few days ago > > https://groups.google.com/d/topic

[nodejs] Efficiently list, compare and rate javascript packages | Maintaining packages by the community

2012-04-13 Thread Simon Thépot
place in the pyramid community to go that way: https://groups.google.com/forum/#!topic/pylons-discuss/SEHfJDrd5Fs What do you think ? Cheers, Simon -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this mes

[nodejs] Re: Windows Services with Node

2012-02-15 Thread Simon
I've used Windows Service Wrapper before which uses a simple XML config file and one executable that you drop into your node app's root. It gave me no problems at all, but you have to make your node program accept a stop command (using a pid file or some other w