Posts

HTML 5 Canvas Tutorial - Converting Images to Grayscale


Posted in:

HTML 5 and the Canvas tag has brought a whole world of possibilities when it comes to image manipulation. This tutorial will demonstrate one of those possibilities that is particularly powerful - getting raw image data and transforming it.

Read More Icon Read More

Objective-C Snippet Tutorial - The UIAlertView


Posted in:

Displaying a message box in an iPhone application is something I have to look up almost every time. I decided it was time to create a tutorial on the subject - then maybe I'd actually remember the syntax. This tutorial will be short, but should cover pretty much everything you'd need to know in order to show alerts in an iPhone application.

Read More Icon Read More

Introduction to the Pulse Engine


Posted in:

One interesting corner of HTML5 development is web-based games. With a few well placed canvases and a healthy does of Javascript, you can create just about any game you can dream. However, the complex nature of Javascript has created the need for a few companies to release game engines built entirely in Javascript and HTML5. This is where Pulse comes in.

Read More Icon Read More

Switch On The Code - Year End Review


Posted in:

Another year has come and gone, which means it's time for us to look back at 2011 and see what happened. This year marks the fifth anniversary of Switch On The Code and so far every year has been better than the last.

In February we saw our first ever month of 500k pageviews, and for the most part traffic has held steady ever since. We ended the year with an amazing 5.6 million pageviews - a 10% increase over the previous year.

Read More Icon Read More

Regular Expressions - Grouping


Posted in:

As we learned in our Regular Expressions Primer, regular expressions can be simple or extremely complex. However, there are a few concepts that were left out. Today we are going to cover one of those concepts... grouping.

Read More Icon Read More

Regular Expression Primer


Posted in:

Pattern recognition is a very hard thing to get right, and as a developer it can be as easy as a few lines of code or more than you can count with fingers and toes. Today we are going to go over a very common tool used for text pattern recognition: regular expression. So let's get started and dive right in.

Read More Icon Read More

Introducing the Pulse Developer Preview


Posted in:

HTML5 is pretty much the web 3.0 standard these days, and there are plenty of neat neat HTML5 tutorials out there to prove it. In fact, there are even a few game engines out there that are built for HTML5. A recent development in this area was the release of the Pulse developer preview. Here is a short demo of what is possible with pulse:

Read More Icon Read More

Book Review - Learning Cocos2D


Posted in:

Learning to program is hard and one of the ways to make the process easier is by reading and using books. With our book reviews here at Switch On The Code we try to help you figure out which books are the best for any level of developer. In this review I'm going to go over the iOS game programming book Learning Cocos2D - A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk. written by Rod Strougo and Ray Wenderlich.

Read More Icon Read More

Javascript - Highlighting Selected Text


Posted in:

I am sure we all have been at a point when we need to highlight something, and most note taking or sharing software allows you to pick and color and go selection crazy. Luckily, however, it is actually surprisingly easy to get a selection and highlight it with Javascript.

Read More Icon Read More

HTML 5 Canvas Tutorial - Rotation


Posted in:

We here at Switch On The Code have been working with and playing around with the HTML5 canvas element. So, today's tutorial is going to build on top of the previous Image drawing tutorial and show you how to rotate drawn images, or really whatever you want.

Read More Icon Read More

In The News

Tutorials Around The Web