Ruby Generators

Ruby Server Programming 16 February 2012 | 0 Comments

Simple definition of Generators (Note there is a full definition available on Wikipedia) I think the main thing to take away from the Wikipedia definition is that a generator is something that looks like a function and behaves like an iterator. What this means is that we can create a generator and call it, however [...]

Tagged in , , , , , ,

Basic multiple image gallery upload HTML5 and Backbone application

HTML5 Programming,Java Script Client Programming,Ruby Server Programming 23 January 2012 | 0 Comments

This is really a very basic example, with the main aim to get anyone started with a simple image upload and persist application using HTML5 and Backbone. This post is essentially a continuation of a previous post where I explained how to preview a local image using HTML5 and Backbone. The main expansion here is [...]

Tagged in , , , ,

Save an image file directly to S3 from a web browser using HTML5 and Backbone.js

Amazon EC2 S3 Cloud,HTML5 Programming,Java Script Client Programming 19 January 2012 | 0 Comments

This post continues from the previous post where I show how to preview a local image using Backbone and HTML5 JavaScript. In this post we will actually upload this file directly to an S3 bucket! This post will focus only on that part. Overview The way to avoid any cross-site-scripting restrictions when uploading to S3 [...]

Tagged in , , , ,

Preview a local image using Backbone and HTML5 JavaScript

HTML5 Programming,Java Script Client Programming 18 January 2012 | 0 Comments

HTML5 + Backbone.js make a great partnership! In this blog post, I am going to show how to preview an image in the browser without having to touch the server. I’ll also use Backbone.js to demonstrate how developers can update a Backbone model with image data and refresh the view to in order to display [...]

Tagged in , , , ,

Ruby blocks, Procs and lambdas

Ruby Server Programming 5 January 2012 | 0 Comments

Preamble One of my favorite parts of the Ruby Programming language is being able to pass code to a method (usually an iterator) and have that code executed dynamically. In Ruby there are several ways to do this using: blocks, Procs and lamdbas. While these are all very similar, there are some very subtle differences. [...]

Tagged in , , , ,

Getting started with the HTML5 Geolocation API

HTML5 Programming 22 December 2011 | 0 Comments

Geolocation presents major opportunities for mobile application development. It’s an exciting way to work with location based applications and services and really give the user something that is of great value to them. By using Geolocation, developers can find out the location of the user, can give the user directions to other places, can tell [...]

Tagged in , ,

Connecting a HTML5 application to a MongoDB instance via MongoLab REST API

HTML5 Programming,Java Script Client Programming,nosql,REST Programming 10 December 2011 | 0 Comments

Overview I needed a free, document based, online data store so that I could quickly build a HTML5 prototype. As an exercise, I quickly whipped up a simple application that can store basic contact details of people. Getting Started with MongoLab To get started with MongoLab is really easy. Simply create your account, your database [...]

Tagged in , , , ,

Getting started with the HTML5 Audio Video API

HTML5 Programming 12 November 2011 | 0 Comments

The HTML5 Audio and Video API is a real game changer. For starters, think about how this affects the (once) mighty Flash. For years Flash was the most popular way to distribute audio and especially video via the web to a browser. Now that can change with HTML5. Even Adobe has announced that it is [...]

Tagged in , , ,

Getting started with the HTML5 Canvas API

HTML5 Programming 8 October 2011 | 0 Comments

The Canvas API essentially allows the developer to draw on a web page using a JavaScript API. Now you might think, what is the point of this? If you want to show some artwork or animation why not create this first and then send it to the browser as a file? The main benefits of [...]

Tagged in ,

HTML5 Series: What makes HTML5 different?

HTML5 Programming,Programming 30 September 2011 | 0 Comments

I decided during a holiday last week to read “Pro HTML5 Programming – Powerful APIs for Richer Internet Application Development”. It was my first real dive into HTML5 and I have to say I am very impressed. Sure, I had heard about all the goodness in HTML5 before reading this book but I had never, [...]

Tagged in , , , , , ,