Tutorials

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

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

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

HTML 5 Canvas Tutorial - Displaying Images


Posted in:

The Canvas element was introduced a few years ago as part of the HTML 5 standard. This element has opened the doors to incredibly dynamic web applications that in the past were only possible using 3rd party plugins like Flash or Java. This tutorial covers a small but important piece of the canvas element - displaying and manipulating images.

Read More Icon Read More

Ubuntu - Remote Desktop from Windows


Posted in:

It is no joke that Windows and Linux are radically different. Down the to Kernel level, they offer two separate ways of computing. Some would even say the philosophies behind them are at odds as well. All of this aside, in a real situation, or just for fun, you may have a situation where you need to use remote desktop to control your Linux GUI from a Windows machine. Luckily this is actually not that difficult to do.

Read More Icon Read More

C# Snippet - Shuffling a Dictionary


Posted in:

Randomizing something can be a daunting task, especially with all the algorithms out there. However, sometimes you just need to shuffle things up, in a simple, yet effective manner. Today we are going to take a quick look at an easy and simple way to randomize a dictionary, which is most likely something that you may be using in a complex application.

Read More Icon Read More

Ubuntu - Setting Up MySQL for Remote Access


Posted in:

Setting up a test server can be quite a daunting task, as we can see from our Drupal Dev Environment Tutorial. There are plenty of things to take into account, and while setting up such an environment can be quick and easy, sometimes there are certain things you would like to have. Today we are going to cover one such feature - setting up MySQL for remote access.

Read More Icon Read More

WPF Tutorial - Increasing a Window's Border


Posted in:

Extending the window's frame is a design trend that is becoming popular in modern applications - especially browsers. Every major browser today (Chrome, Firefox, Internet Explorer, and Opera) uses this technique to increase the visual quality of their applications.

Today we're going to see how to duplicate this look in WPF. The approach we're going to take relies on the OS supporting Aero, which means only Vista and Windows 7 are supported. For Windows XP, you're going to have to find another solution.

Read More Icon Read More