Kah – The Developer

Archive for June 2008

A Virtual 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:

Changing Button Text in Android

Posted by: kahgoh on: 29 June, 2008

Code has been updated on 19 Aug 2008 to work with 0.9 beta
Lets say you have an Android (if you don’t know what Android is, have a look at the Android website) view with two buttons, like this view:

 1 <?xml version="1.0" encoding="utf-8"?>
 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     android:orientation="vertical"
 4     android:layout_width="fill_parent"
 5     android:layout_height="fill_parent"
 6     android:id="@+id/backgroundView">
 7    <Button android:id="@+id/testButton"
 8         android:text="@string/buttonText"
 9         android:layout_width="wrap_content"
10         android:layout_height="wrap_content" />
11    <Button android:id="@+id/fakeButton"
12         android:layout_width="wrap_content"
13         android:layout_height="wrap_content"
14         android:text="Fake" />
15 </LinearLayout>

Like in Swing, to [...]

Tags:

Decoding Base 64 with OpenSSL

Posted by: kahgoh on: 25 June, 2008

Base 64 is a form of encoding that converts groups of 24 bits to four ASCII characters. The details of base 64 encoding is detailed on the Base 64 (Wikipedia) page. The information on that page should be enough for you to write your own base 64 decoder. Alternatively, we can use OpenSSL to do [...]

An Intro to OpenSSL

Posted by: kahgoh on: 21 June, 2008

I first came across OpenSSL when I first started work at Motorola in Perth, Western Australia. In their own words, the OpenSSL project …

Tags: ,

Blog Stats

  • 35,553 hits

Pages