[nodejs] Re: How do you guys handle request spam?

2014-07-03 Thread mscdex
There's also: https://github.com/diosney/node-netfilter -- 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

[nodejs] Re: How do you guys handle request spam?

2014-07-03 Thread mscdex
On Thursday, July 3, 2014 10:54:37 AM UTC-4, Alisson Cavalcante Agiani wrote: > > So that a malicious user gets blocked for some time(maybe with HTTP 429) > when it hits a request limit in a predefined duration > If you're using Express, there are rate limiting middleware[1][2] and modules[3][4

Re: [nodejs] [node-ffi] how is the proper way pass json object to ffi library function?

2014-07-03 Thread Nathan Rajlich
Muhammad, your code looks very close to me. Note that I haven't tried this code, but try something like this: https://gist.github.com/TooTallNate/d1f8ee799e9764c0ab18 I've only changed: * The "pointer" argument type to "string" * Don't call `free()` on the passed in char *, V8/node will take ca

[nodejs] Node.Js - Application

2014-07-03 Thread Yogesh Rathod
Hi, New to Node.js, I have not involved in any node.js application development - Which type of application Node.js is perfact fit. - Can we move restful api to Node.js, what benifit we will get by moving it to node.js Thanks, Yogesh -- Job board: http://jobs.nodejs.org/ New group rules: https

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

2014-07-03 Thread Eyal Arubas
Thanks Simon! On Thursday, July 3, 2014 12:46:44 PM UTC+8, Simon wrote: > > 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.co

[nodejs] How do you guys handle request spam?

2014-07-03 Thread Ω Alisson
So that a malicious user gets blocked for some time(maybe with HTTP 429) when it hits a request limit in a predefined duration -- 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/nod

[nodejs] Re: Web Scraping Frameworks for Node.JS? (e.g. like Python's Scrapy)

2014-07-03 Thread Zugravu Eugen Marius
Found one: http://zugravu.com/products/web-crawler-spider-scraping-javascript-regular-expression-nodejs-mongodb On Monday, May 19, 2014 8:17:12 AM UTC+3, harish k wrote: > > Hi, > I just wrote a easy-to-use scrapper in JS as a part of my past work. > It can extract data from html pages based on

Re: [nodejs] nar: node.js application archive

2014-07-03 Thread Tomás Aparicio
Just to announce that nar had an issue in Windows and it was fixed in 0.3.5 version I've tested it in Windows 7 generating different executables for OSX and Linux Anyway, if you experiment any issue, please report it via Github $ npm update -g nar El 02

[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

Re: [nodejs] Announcing: Abraxas- A new Gearman client/worker/admin library

2014-07-03 Thread Joshua Holbrook
Looking forward to that server implementation! Being able to write custom logic for job delegation would be sick. --Josh On Tue, Jul 1, 2014 at 7:42 PM, Aria Stewart wrote: > The mix and match interface really has me excited. > > On 30 Jun 2014, at 10:19, Rebecca Turner wrote: > >> Abraxas is a

Re: [nodejs] How to write code for routing and route handler's using nodejs(without using frameworks line express/compound)

2014-07-03 Thread Leo Oshiro
I also wrote a router, I wanted to get into the different algorithms and paradigms. Heres my approach: First i wrote a parser, the parser broke down the path into pieces, and looked for parameters and regex, it would then classify the route as static or dynamic. It would then add to a static routi

Re: [nodejs] [node-ffi] how is the proper way pass json object to ffi library function?

2014-07-03 Thread Muhammad S Maromi
Sorry, this is my code: // utility.c void tesJson(char *text) { json_t *root; size_t i; json_error_t error; root = json_loads(text, 0, &error); free(text); for(i = 0; i < json_array_size(root); i++) { json_t *data; data = json_array_get(root, i); printf("%s\n", json_str

Re: [nodejs] nar: node.js application archive

2014-07-03 Thread Tomás Aparicio
Just to announce that nar had an issue in Windows and it was fixed in 0.3.5 version I've tested it in Windows 7 generating different executables for OSX and Linux Anyway, if you experiment any issue, please report it via Github El 02/07/14 23:58, Ingwie

Re: [nodejs] pro tip: npm config set save-prefix='~'

2014-07-03 Thread Alex Kocharin
 I'm waiting for scoped packages support, which will hopefully fix two issues: namespaces in The Registry, and support for other registries. Another big thing I'm waiting for is pre-building dependency tree before installing anything. I tried that, it can't be done easily in several lines of code (

Re: [nodejs] [node-ffi] how is the proper way pass json object to ffi library function?

2014-07-03 Thread Muhammad S Maromi
Hi Nathan, I want to do is, let's say I have object: var obj = {foo:1, bar: 2} then pass that object to ffi function. What is the parameter of function (in C module) should be? Thanks ryan, let me check what'll it goes. On Thursday, July 3, 2014 4:52:56 AM UTC+7, ryandesign wrote: > > > On

Re: [nodejs] pro tip: npm config set save-prefix='~'

2014-07-03 Thread Andrew Kelley
this is wonderful, thank you. Ahh so much better. On Wednesday, July 2, 2014 2:52:56 PM UTC-7, Alex Kocharin wrote: > > > You forgot "npm set spin false", "npm set loglevel http", and... well... > "npm install -g yapm; alias npm=yapm" would also help since npm now is... > well... less than ide