background preloader

The Node Toolbox - Node.js happiness

The Node Toolbox - Node.js happiness
Related:  Web, Programming and Technodejs

Brian Ford AngularJS is like the missing Batarang on your utility belt of web development awesomeness. It gives you two-way data binding that's both easy to use and fast, a powerful directive system that lets you use create reusable custom components, plus a lot more. Express is an excellent webserver for Node.js that provides routing, middleware, and sessions. In this tutorial, I'm going to walk through writing a simple blog app with Angular and Express. If you'd rather skip to the end and see the finished product, you can grab the finished product from Github, or take a look at a live demo here. Anatomy of the App This application is really divided into two parts: client, and server. Getting the Angular Express Seed To kick start the process of writing an AngularJS app, I've created the Angular Express Seed, based on the Express web server (which runs on Node.js) and the Angular Seed. To get started, you can either clone the angular-node-seed repo from Github: or download it as a zip. λ → npm install

Understanding node.js Node.js has generally caused two reactions in people I've introduced it to. Basically people either "got it" right away, or they ended up being very confused. If you have been in the second group so far, here is my attempt to explain node: It is a command line tool. "But I can do everything I need in: ruby, python, php, java, ... !". I hear you. "Get to the point!" Alright, I will. "Huh?" That's right, everything runs in parallel, except your code. The day starts by one servant waking up the king and asking him if he needs anything. Once a servant finishes a task, he lines up outside the kings quarter to report. Life is good, for the king's servants carry out all of his tasks in parallel, but only report with one result at a time, so the king can focus "That's fantastic, but could you quit the silly metaphor and speak geek to me?" Sure. var fs = require('fs') , sys = require('sys'); fs.writeFile('letter-to-princess.txt', ' You got it! "Very nice, but why should I use it?" Yes and no. No. --fg

visionmedia/ejs 30 Best Eclipse Plugins PyDev - Python Development Environment for Eclipse Pydev is a plugin that enables users to use Eclipse for Python, Jython and Iron Python development, making Eclipse a first class Python IDE. EasyEclipse for LAMP EasyEclipse for LAMP is an Eclipse distribution to develop web applications with dynamic languages and provide support for PHP, Python, Perl, and Ruby and Ruby On Rail development with a web server and a database, CVS and Subversion. CFEclipse ColdFusion plugin for Eclipse Includes most of the commonly used features from DreamWeaver and Homesite and whole lot that neither of them have. Spket IDE Spket IDE is powerful toolkit for JavaScript and XML development. ATL (Atlas Transformation Language) is a model transformation language and toolkit. PTI - PHP Tool Integration On one site there exists many good PHP tools such as PHPUnit or PHP CodeSniffer which support the development of PHP scripts. Skyway Builder Community Edition Bravo JSP editor Koders IDE Plugin for Eclipse Regex Util Emac+

Useful Node.js Tools, Tutorials And Resources Advertisement 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. And that’s not all: what’s really great about Node.js is the thousands of modules available for any purpose, as well as the vibrant community behind this young project. Useful Node.js Tools Node Express Boilerplate Node Express Boilerplate gives the developer a clean slate, while bundling enough useful features to remove all of those redundant tasks that can derail a project before it even gets started. Socket.IO Socket.IO is a cross-browser Web socket that aims to make real-time apps possible in every browser and mobile device, blurring the distinctions between the various transport mechanisms. Mastering Node With Mastering Node, you can write high-concurrency Web servers, using the CommonJS module system, Node.js’s core libraries, third-party modules, high-level Web development and more. (al)

marcelduran/webpagetest-api 27 Best Free Eclipse Plug-ins for Java Developer to be Productive Eclipse offers an integrated development environment having an extensible plug-in system. This enables Eclipse to provide all functionality on the top of its run-time system. It’s also different from other applications (where the functionality provided by plug-ins are mostly hard coded). Having the appropriate Eclipse plug is important, since it facilitates the Java developers to seamlessly develop and implement applications which are J2EE and service-based. Below is the list of best free Eclipse plug-ins for a developer to be more productive - FindBugs FindBugs plug-in is used with eclipse IDE and it is the software used to find bugs in Java programs. Checkstyle Checkstyle plug-ins can be integrated to IDE Eclipse and it ensures the Java code follows the coding standards. ECLemma ECLemma is a free tool available through Eclipse Public License and it provides fast development and test cycles. JDepend4Eclipse PMD is a source code analyzer which helps to detect used variables and bad codes.

How to write your own native Node.js extension - Olivier Lalonde's blog UPDATE: There is now a Node.js addon for loading and calling dynamic libraries using pure JavaScript: node-ffi. Also, node-waf is no longer being used to compile Node.js extensions. TRANSLATIONS: This post was translated to Chinese: Introduction This is a follow up to How to roll out your own Javascript API with V8. We will now port the code we have written for V8 to Node.js and package it for npm. The full source code of this tutorial is available from github: git clone You can also install it through npm: npm install notify The code was tested on Ubuntu 10.10 64-bit and Node.js v0.5.0-pre. Getting started First let’s create a node-notify folder and with the following directory structure. This fine looking tree was generated with the tree utility. Now let’s create our test script demo.js and decide upfront what our extension’s API should look like: Writing our Node.js extension

Comment télécharger un fichier avec Node.js ? - Social Mobile dev Vous pouvez télécharger un fichier avec HTTP.get. L'intérêt de cette méthode de téléchargement, par rapport aux méthodes avec CURL et WGET, est qu'on ne dépend pas d'un programme externe. Dans cet exemple, nous utilisons les modules fs pour l'accès au système de fichier et http : var fs = require('fs'); var http = require('http'); On spécifie l'URL du fichier à télécharger : var url_filename = ''; On prépare les options que l'on va transmettre à la fonction http.get : host : c'est le nom de domaine ou l'adresse IP du serveur port : c'est le port (par exemple 80 pour HTTP) path : c'est le chemin d'accès, comprenant requête query (exemple : index.php) On extrait le nom du fichier de l'URL : var file_name = url.parse(url_filename).pathname.split('/').pop(); On crée le fichier en local : var file = fs.createWriteStream('./' + file_name); http.get(options, function(res) { res.on('data', function(data) { On écrit toutes les données reçues : file.write(data); }).on('end', function() {

Bootswatch: Free themes for Twitter Bootstrap Node.js on Android I mainly use node.js since one year ago at work, and I really like it. On my work project, I have to create a system which uses, but I don't have enough time to re-create a system using Android Java. But I finally figure out how to run node.js on Android. * This is really advanced topic, so I don't aim for Android beginners. Just for my memo. 1. First of all, you have to obtain root permission of your Android. 2. Debian kit for Android is really awesome tool. Debian kit for $> cd /data/local/tmp $> wget $> sh debian-* ... ... 3. Before install node.js, you also need couple of debain packages. #> apt-get install openssl build-essential python libssl-dev git-core To install node.js for Debian, you might need to compile node.js from source code. If your Android uses ARM architecture, you might be get couple of errors. #> .

undefined This is a first part of a series of posts that were inspired by the process of building blog. My actual blog (the one you are reading right now), is based on Express to manage basic routing, Poet that is a super-minimal blog solution for node, coffeescript for the javascript syntax, jade for html markup and stylus for css markup. Setup your Express app You first step is to to create a new Express app with stylus css support: npm install -g express express --css stylus mysuperblog cd mysuperblog && npm install You should have an minimal Express working app now. Change you package.json by add your real app name: Add coffee script support server side I like javascript but I really feel in love with coffeescript. Enable coffee script server side is a straight task. npm install -g coffeescript Change you package.json in: npm install With this simple setup, we are now able to mix .js and .coffee files under our app. Below, the new app.js file converted to .coffee format. The new app.cofee: !