Archive for the ‘JavaScript’ Category

Getting started using Node.js and Express.js to build a simple website

Saturday, July 10th, 2010

The community around Node.JS never ceases to amaze me how fast it has grown since Node.JS was first introduced not that long ago. I’ve seen many projects take off and one in particular has caught my eye: Express.JS which as their websites states is “High performance, high class web development for Node.js”. Today I’ll show you how to get Express up and running.

(more…)

Messing around with Node.js and HTTP

Saturday, July 3rd, 2010

I’ve done a few articles/tutorials on using Node.js. Today though I’m going to simply build a simple HTTP server that returns some useful information.

(more…)

A Quick Introduction to the HTML 5 Canvas – Part Two

Tuesday, June 8th, 2010

Just over a week ago I wrote an introduction to the HTML 5 Canvas, if you haven’t read that already please do so before working through this article. Today I’m going to show you how to use the canvas to render some simple shapes. I used Google Chrome and didn’t test the code out in any other browser, however, it should work in newer versions of Firefox, Opera and Safari.

(more…)

A Quick Introduction to the HTML 5 Canvas

Tuesday, June 1st, 2010

Lately we hear a lot about HTML 5. Today I’m going to show you how to use the Canvas element and do some simple drawing. Obviously to try this out you need a browser that supports Canvas. I use Chrome but the newer versions of Firefox, Safari, and Opera should provide support and if you use IE you can install Explorer Canvas.

(more…)

Google ports Quake 2 to GWT

Thursday, April 1st, 2010

Apparently Google has just ported Quake 2 to GWT complete with multiplayer support via websockets.

Here is the official announcement.

Tutorial: Using UiBinder in Google Web Toolkit 2.0 (GWT)

Friday, March 5th, 2010

With the recent release of GWT 2.0 there was a lot of newly added functionality. In particular today I’m going to focus on UiBinder. From the GWT website they explain UiBinder as: “With UiBinder, GWT now allows you to create user interfaces declaratively in XML instead of having to assemble them programmatically”.

Today we will work through a simple UiBinder application.

(more…)

Building a socket server with Node.js and Flash CS4

Thursday, February 25th, 2010

Node.js is very easy to use and very well designed. Today I’m going to build a simple socket server using the sample provided by the Node.js documentation and create a socket client in Flash CS4.

Updated July 30, 2010 – I’ve changed the Node.js Server code below to reflect the latest changes in the Node.js API changes as of version: 0.1.102. I also tested this in Flash CS5 and it worked.

(more…)

Trying out WebSocket with Node.js and Google Chrome in Ubuntu 9.10

Wednesday, February 24th, 2010

I love the fact the latest Google Chrome builds (version 4.0+) now support WebSockets. Recently I did a post on using Node.js (getting up and running) and if you haven’t read that post you might want to do that before continuing.

(more…)

Getting started with Node.js on Ubuntu 9.10 in about 5 minutes

Monday, February 22nd, 2010

I recently installed Ubuntu 9.10 on VMWare 6.5 Workstation and wanted to try out Node.js. According to the Node.js website Node is a way to provide an easy way to build scalable network programs. The nice thing about Node is that it is event driven (making use of Javascript’s strength with events and also making it easy to learn) and there are no “locks”. Node is similar to Ruby EventMachine or Python Twisted. There is already a strong user community here.

Lets go ahead a build a couple simple apps using Node.js. I’ll assume from here that you already have Ubuntu 9.10 already running.

(more…)