Hi, my name is Lee.
I'm a writer, an engineer,
and a technical trainer.
I create fixes & I fix headaches...
Welcome to my dev blog.

Node Connect example

Posted on in JavaScript Node JS

The example below can be easily replaced with Node Connect. Just with a few lines. app.js var http = require('http'); var path = require('path'); var fs = require('fs'); var extensions = { ".html" : 'text/html', ".css" : 'text/css', ".js" : 'application/javascript', ".json" : 'application/javascript', ".png" : 'images/png', ".gif" : 'images/gif', ".jpg" : 'images/jpeg' } http.createServer(function(req, […]

Read more »

Hello World with Node.js

Posted on in JavaScript Node JS

See the example below for an easy Hello World example with Node.js. Create a Node.JS server and serve a hardcoded response, with content-type: ?text/html?. And listen to localhost:8000 in your browser to see the result. In your project folder create an app.js file: var http = require('http'); http.createServer(function(req, res){ var html = BoilerplateHello World"; res.writeHead(200, […]

Read more »

Auto restart node after code changes

Posted on in JavaScript Node JS

When you are sick and tired of restarting your node app in the terminal (CTRL+C) on every code change you make then you can automate this process. Actually it?s really simple. Install Nodemon via the package manager. $ sudo npm install nodemon -p When you want to check if it correctly installed and on which […]

Read more »

Installing Node and NPM on MAC OSX

Posted on in Environment Node JS

Node.js is a platform built on Chrome?s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. This assumes that Git is already installed and available on the command-line. Since the technology Node.js […]

Read more »

Printscreen on MAC OSX

Posted on in Environment

To capture your screen (or part of it) on a Mac, use one of the following commands. Entire screen: Apple (Command) Key + Shift+3 Captures a picture of the entire desktop, which is saved on the desktop as a file called ?picture #?. This option lets you capture the whole screen. If you want just […]

Read more »

Remove all .SVN folders command

Posted on in SVN

Enter in your terminal console the following line to remove all .svn folders: rm -rf 'find . -type d -name .svn' amoxicillin 500mg is viagra government funded cialis viagra single packs cost cialis pills for sale cialis coupons 2017 cialis reviews amox-clav 875-125 mg amoxicillin 500 mg and alcohol amoxillin cialis vs viagra cialis 30 […]

Read more »

Application Loader: Error: There is no embedded Java executable.

Posted on in Environment

There you go. I installed Mac OSX Lion and iOS5 on my developer iphone. I migrated to a new XCode 4.2 project and build my app. Everything works.. till I tried to send it to itunesconnect via the new Application Loader: Error: ?There is no embedded Java executable. Please reinstall the Xcode developer tools.? Solution? […]

Read more »

Start theming Sencha with SASS Compass on MAC OSX

Posted on in Sass

Install Chunky_PNG sudo gem install chunky_png Install Compass sudo gem install compass Download Sencha Touch Framework, and open in an editor /sencha-touch-1.1.0/resources/sass/ You can edit this file now, for example add in sencha-touch.scss the following line, to add music masking icons: @include pictos-iconmask(music1); All icons you can create can be found in the following folder: […]

Read more »

Setup JSLint for Eclipse/Aptana

Posted on in Environment

JSLint @ https://github.com/douglascrockford/JSLint Preferences Filter for validation Check Javascript & enable JSLint. Make sure your error tab open, to view your js. viagra prednisone viagra keflex cymbalta viagra prednisone viagra cymbalta cymbalta viagra prednisone prednisone prednisone prednisone prednisone viagra cymbalta viagra prednisone prednisone levitra viagra viagra viagra cymbalta viagra prednisone cymbalta viagra viagra viagra prednisone […]

Read more »

SVN Commands

Posted on in SVN

Here are some of the most used SVN commands to type in your console/terminal: Update: svn up Check status: svn st Add files: svn add * svn add [filename] Remove files: svn rm [filename] Commit: svn ci -m "[description]" Start up/ import: svn import -m ?description? svn://[path-svn] Get checkout: svn checkout ?force svn://[path-svn] [current-path] levitra […]

Read more »