Learning node.js
4.3K views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by Mehdi Hasan Khan
Scoop.it!

Server-Side JavaScript Injection (SSJS) - Attacking NoSQL and Node.js

"It should be noted that exploitation of server-side JavaScript injection vulnerabilities is more like that of SQL injection than of cross-site scripting. SSJS injection does not require any social engineering of an intermediate victim user the way that reflected XSS or DOM-based XSS do; instead, the attacker can attack the application directly with arbitrarily created HTTP requests."

---

My view: Adobe security researcher's article/example seemed pretty lame. Expected something better than "don't use eval()"

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

teajs

teajs | Learning node.js | Scoop.it

A Node.js alternative for server side js. Instead working with of async and callback style, TeaJS follows traditional sync style coding.

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Nodetime - Performance Profiler and Monitor for Node.js Applications

Nodetime - Performance Profiler and Monitor for Node.js Applications | Learning node.js | Scoop.it
Performance Profiler for Node.js...
more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

brain.js

brain.js | Learning node.js | Scoop.it

Brain.js is a JavaScript neural network library. Also features a live  demo to train a neural network to recognize color contrast!

more...
Scooped by Mehdi Hasan Khan
Scoop.it!

cloud9

cloud9 | Learning node.js | Scoop.it

Cloud9 is an open source IDE built with Node.JS on the back-end and JavaScript/HTML5 on the client. It is very actively maintained by about 15 developers in both Amsterdam and San Francisco and is one component of the hosted service at c9.io.

 

Cloud9 balances the power of traditional desktop IDEs with the simplicity and elegance of editors like TextMate and Sublime.

 

**The version available here runs on your local system.**

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Asynchronous Control Flow with Promises - How To Node - NodeJS

Asynchronous Control Flow with Promises - How To Node - NodeJS | Learning node.js | Scoop.it

A Promise is an object that represents the result of an asynchronous function call. Promises are also called futures and deferreds in some communities.

 

The goal of this article is to introduce CommonJS promises as they exist in NodeJS user-land. With jQuery popularizing a variant of CommonJS promises for AJAX operations, promises will likely gain a broader user-base in the browser and on the server.

 

 

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Comet and Socket.io - Mixu's Node book

- An overview of the techniques to implement Comet

 

- Introduction of Socket.io and a basic application

 

- Most importantly, discussion on the complexities of real-world deployment with Socket.io

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

asyncblock

asyncblock | Learning node.js | Scoop.it

- Write async code in synchronous style without blocking the event loop

- Effortlessly combine serial and parallel operations with minimal boilerplate

- Produce code which is easier to read, reason about, and modify

 

 

more...
No comment yet.
Rescooped by Mehdi Hasan Khan from nodeJS and Web APIs
Scoop.it!

Useful Node.js Tools, Tutorials And Resources - Smashing Coding

Useful Node.js Tools, Tutorials And Resources - Smashing Coding | Learning node.js | Scoop.it
Created by Ryan Dahl in 2009, Node.js is a relatively new technology which has gained a lot of popularity among Web developers recently. However, not everyone knows what it really is.

Via Srdjan Strbanovic
more...
No comment yet.
Rescooped by Mehdi Hasan Khan from nodeJS and Web APIs
Scoop.it!

Node.js Performance Tips from LinkedIn

Node.js Performance Tips from LinkedIn | Learning node.js | Scoop.it
LinkedIn's Shravya Garlapati has shared a number of tips for improving performance on their mobile site while using Node.js. LinkedIn is working with a standard HTML5 mobile site ...

Via Srdjan Strbanovic
more...
No comment yet.
Rescooped by Mehdi Hasan Khan from nodeJS and Web APIs
Scoop.it!

Node.js - Best practices

Second talk given at the munich node.js user group meeting on Dec 1, 2011.

Via Srdjan Strbanovic
more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Locally test your npm modules before publishing them to npmjs.org

Locally test your npm modules before publishing them to npmjs.org | Learning node.js | Scoop.it

There could be several situations where you want to locally deploy an npm module of your own before publishing it to npmjs.org.


Say you’ve just created one and want to see how it deploys, or you’re fixing bugs and you want to test the module in integration before publishing a new version, or you just want to keep your npm private.

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Package.json dependencies done right

Package.json dependencies done right | Learning node.js | Scoop.it

1. How npm works with dependencies in a package.json manifest.

 

2. Best practices for specifying modules and node.js dependencies.

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

PouchDB

The Browser Database that Syncs

 

Based on the work of Apache CouchDB, PouchDB provides a simple API in which to store and retrieve JSON objects, due to the similiar API, and CouchDB's HTTP API it is possible to sync data that is stored in your local PouchDB to an online CouchDB as well as syncing data from CouchDB down to PouchDB (you can even sync between 2 PouchDB databases).

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Using "Natural": A NLP Module for node.js

Using "Natural": A NLP Module for node.js | Learning node.js | Scoop.it
Whether it is for twitter sentiment analysis or for solving search problems natural language processing (NLP) has become the fulcrum of much of my hobby work...
more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

nodemon

nodemon | Learning node.js | Scoop.it

For use during development of a node.js based application.

 

nodemon will watch the files in the directory that nodemon was started, and if they change, it will automatically restart your node application.

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

node-mule

node-mule | Learning node.js | Scoop.it

Mule is a work queue for CPU intensive tasks. You can use it to offload tasks that would otherwise kill your fast, responsive event loop. It's a bit like Threads A GoGo, except using processes not threads.

 

Mule works by using node's child_process.fork() method to pre-fork a bunch of processes using a script you define. It sets up a task queue to which you can push blocking tasks onto and listen for the result. As worker processes become available they alert the work queue that they're ready to accept more work. Tasks are sent and results received using node's inbuilt IPC for forked node processes.

more...
No comment yet.
Scooped by Mehdi Hasan Khan
Scoop.it!

Fibers and Threads in node.js – what for?

The main difference between fibers and real threads is on the scheduling side: threads use implicit, preemptive scheduling while fibers use explicit, non-preemptive scheduling. This means that threaded code may be interrupted at any point, even in the middle of evaluating an expression, to give CPU cycles to code running in another thread. With fibers, these interruptions and context switches don’t happen randomly; they are into the hands of the programmer who decides where his code is going to yield and give CPU cycles to other fibers.

more...
No comment yet.
Rescooped by Mehdi Hasan Khan from node web programming
Scoop.it!

How to avoid Node.js spaghetti code with SEQ

Node.js is based on event-driven IO . Accessing file system, data base, network, ... happens in most cases asynchronously. If calls depend on each other, you have to synchronize, this often ends up in deeply nested spaghetti code.


Via Tito Ciuro
more...
No comment yet.
Rescooped by Mehdi Hasan Khan from nodeJS and Web APIs
Scoop.it!

Blazing fast node.js: 10 performance tips from LinkedIn Mobile | LinkedIn Engineering

Blazing fast node.js: 10 performance tips from LinkedIn Mobile | LinkedIn Engineering | Learning node.js | Scoop.it
Blazing fast node.js: 10 performance tips from LinkedIn Mobile http://t.co/5iemsNkm via @zite...

Via Srdjan Strbanovic
more...
No comment yet.