background preloader

Package.json: an interactive guide

Package.json: an interactive guide
Related:  nodejs

HOWTO prototype and iterate for fun and profit In this 30+ minute video, Firefox creative lead Aza Raskin explains why you'd want to do iterative prototyping and how you do it in order to get from idea to execution. I think that the Internet's ability to support and sustain low-cost iteration is its signal virtue, but this virtue is often missed by bigger, older institutions that are accustomed to high failure costs (e.g., you print a million of the wrong book or make a million of hte wrong shirt, it's a big deal; you serve a million of the wrong page and change the design, it's business as usual). For those who do not want to sit through the 30-minutes romp and my rapid prototyping, here are the principals of prototyping that I explain fully in talk: 1. How To Prototype And Influence People (via O'Reilly Radar)

visionmedia/ejs SourceTree Open Source Software Engineering marcelduran/webpagetest-api dart_HTML5_Canvas How I know when the requirements process is complete By Alvin Alexander. Last updated: Mar 22, 2014 Summary: How to know when a software requirements specification is complete by using Function Point Analysis techniques. I've written dozens -- maybe hundreds -- of software requirement specifications over the years, and at one point in my career I learned an important little secret about knowing when the process of gathering requirements for a software requirements specification was really complete. Here's my secret. How I know when the software requirements specification is really complete As a business analyst, I'm lucky to have trained myself in the techniques of Function Point Analysis (FPA). By this, I mean that when a customer comes to me and gives me a 10,000-foot overview of what they want, and we follow that initial meeting with some requirements gathering meetings, I know that I have all the requirements for the problem very simply: I know the requirements process is complete when I can accurately count the Function Points. Summary

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() {

The Nature of Code Hello! By browsing the table of contents on your left, you can read the entire text of this book online for free, licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. Start reading the introduction now! If you like this book, please consider supporting it via the links below: Please submit corrections to the book on my Nature of Code GitHub repo. Thanks everyone! Copyright © 2012 by Daniel Shiffman This work is licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License. All of the book’s source code is licensed under the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This book was generated by the Magic Book Project. Editor Shannon Fry Illustrations Zannah Marsh Cover Design David Wilson Interior Design Web Site Design Steve Klise Editorial and Design Assistant Evan Emolo Magic Book Lead Developers Rune Madsen, Steve Klise Magic Book Researchers

Function point A function point is a unit of measurement to express the amount of business functionality an information system (as a product) provides to a user. The cost (in dollars or hours) of a single unit is calculated from past projects.[1] As of 2013[update], there are several recognized standards and/or public specifications for sizing software based on Function Point 1. ISO Standards COSMIC: ISO/IEC 19761:2011 Software engineering. 2. OMG, an open membership and not-for-profit computer industry standards consortium, has adopted the Automated Function Point (AFP) specification led by the Consortium for IT Software Quality. Introduction[edit] Function points were defined in 1979 in Measuring Application Development Productivity by Allan Albrecht at IBM.[3] The functional user requirements of the software are identified and each one is categorized into one of five types: outputs, inquiries, inputs, internal files, and external interfaces. Benefits[edit] Criticism[edit] See also[edit] References[edit]

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: !

The Programmer's Guide to Apache Thrift Table of Contents, MEAP Chapters & Resources Description Any distributed application includes individual components, often written in different languages and hosted in multiple locations, which must communicate quickly and efficiently. Apache Thrift is a communication framework that enables cross-language remote procedure calls and serialization. The Programmer's Guide to Apache Thrift provides comprehensive coverage of the Apache Thrift framework along with a developer's-eye view of modern distributed application architecture. What's inside Clear, concise coverage of all of the primary Apache Thrift features Complete coverage of the Apache Thrift Interface Definition Language Building and serializing complex user defined types Working with plug in serialization protocols and data compression Creating cross-language services Tools and features to enable interface evolution About the authors About the Early Access Version Want to learn More?

Express - api reference express() Create an express application. var express = require('express'); var app = express(); app.get('/', function(req, res){ res.send('hello world'); }); app.listen(3000); Application settings The following settings are provided to alter how Express will behave: env Environment mode, defaults to process.env.NODE_ENV (NODE_ENV environment variable) or "development"trust proxy Enables reverse proxy support, disabled by defaultjsonp callback name Changes the default callback name of ? app.set(name, value) Assigns setting name to value. app.set('title', 'My Site'); app.get('title'); app.get(name) Get setting name value. app.get('title'); app.set('title', 'My Site'); app.get('title'); app.enable(name) Set setting name to true. app.enable('trust proxy'); app.get('trust proxy'); app.disable(name) Set setting name to false. app.disable('trust proxy'); app.get('trust proxy'); app.enabled(name) Check if setting name is enabled. app.enabled('trust proxy'); app.enable('trust proxy'); app.enabled('trust proxy');