Kah – The Developer

Archive for the ‘Uncategorized’ Category

Formatting Source Code in HTML

Posted by: kahgoh on: 18 August, 2009

If have you seen a number of my tutorials, you would have seen some nicely formatted sample code embedded within the page. Pastebins can host your code there are Javascripts that can also format your code. However, the WordPress service does not allow either of those options to be used. The only way I have [...]

Tags: ,

Merge Tracking with Subversion (pre 1.5.0)

Posted by: kahgoh on: 7 April, 2009

Merge tracking was not made a standard feature of Subversion until version 1.5.0. For those using previous versions of Subversion, the svnmerge script provides this missing functionality.

Android SDK 0.9 beta released

Posted by: kahgoh on: 19 August, 2008

If you haven’t heard yet, Android SDK 0.9 beta has been released. Examples from my earlier posts were tested on m5. There has been some API changes and it has broken at least on example in one of my previous posts. I hope to go through the rest of the posts and have the examples [...]

Generating random characters in C.

Posted by: kahgoh on: 21 July, 2008

In C, when you type cast an integer to a character, the character that is assigned is the ASCII character corresponding to that number.  This property can be used to generate a set of random of characters, as follows:

1   #include <stdio.h>
2   #include <stdlib.h>
3   #include <time.h>
4  
5   int main(int argc, char *argv[])
6   {
7       char randChar = ‘ ‘;
8       int counter = 0;
9       [...]

Tags:

Changing the Ubuntu Boot Screen

Posted by: kahgoh on: 19 July, 2008

While installing some packages in Ubuntu, I once installed installed the edubuntu-artkwork package. At the time, I was just looking for alternatives to the default Ubuntu themes that I had. Once it was installed, I was asked to reboot it. That was when I found out that the boot screen (Uslpash) image was replaced with [...]

Tags:

A Virual Box

Posted by: kahgoh on: 30 June, 2008

If you are like me, you like to play games in Windows, but like to do some programming using Linux. Its pain rebooting the computer just to switch between the operating systems. Virtualization lets you use one operating system inside another. However, mention the two words and most people would probably only think of VMWare. [...]

Tags: