Posts belonging to Category Programming

Seconds, Minutes, Hours – Converting Time Units in Ruby

I’m sure you’ve probably seen this question in your programming classes.. I decided I wanted to play with Ruby again and was remind of this problem, so thought it might be fun as a simple exercise to do this in Ruby.
The problem is to take a long integer and convert it to hours, minutes and [...]

require: command not found in ruby

While I was getting some old Ruby code of mine out to convert ruby code to pretty HTML-formatted code suitable for blogging from Wolfman’s Howlings I got the following error:

$ ./ruby2html.rb
./ruby2html.rb: line 9: require: command not found
./ruby2html.rb: line 10: require: command not found
./ruby2html.rb: line 11: require: command not found
./ruby2html.rb: line 14: syntax error near [...]

Finding the Android Dev Phone 1 ROM Images

For some reason the ROM Images for the Android Dev Phone 1 have the links missing from the main ADP-1 download site. When you go to http://developer.htc.com/adp.html You’re greeted with a table of ROM images and file names but the links have been removed:

(You can click on the image to see the full-size [...]

Installing Java 1.5 back into Snow Leopard

In an amazing moment of WTF I discovered this morning that after installing Mac OS X 10.6 (aka Snow Leopard) that the only version of Java running on it was 1.6. Now as an end-user, people probably won’t care. And I can kind of understand why Apple did it, given that Sun has [...]

Subversion and Snow Leopard

Along with so many others, I upgraded to Snow Leopard. Overall the upgrade went without a hitch. However, I noticed that my Subversion repository was no longer available from Subclipse or via the Web Browser. Not good.
So I did some digging around and upon finding this article from Patrick Rice http://patrick-rice.net/daybook/2009/09/20/subversion-snow-leopard-etc/ I [...]

Manually Update your T-Mobile G1 to OS 1.5 (Cupcake)

T-Mobile was supposed to release Android OS 1.5 (originally code-named ‘Cupcake’) was supposed to be released the week of May 18th. However T-Mobile decided to delay the release.
Enter the Android community… Someone has found the downloadable version of Cupcake, signed and ready to install on the T-Mobile G1! And with a few [...]

Android – Matching minSdkVersion to API version

In my last post I mentioned the android:minSdkVersion attribute to <uses-sdk> tag. As of SDK 1.5 the attribute values used correspond to the following API releases:

minSdkVersion
API Version

1
1.0

2
1.1

3
1.5

You can read more about all of this at http://developer.android.com/sdk/android-1.5.html

Getting Started in Java Development

I get asked this question.. a lot.
David, any tips on how I can learn Java quickly?

Android “Cupcake” Details Emerge

First details of the next Android release code-named “Cupcake” have emerged. Some of the more interesting changes include:

MMS improvements including speed enhancements to messaging app and being able to save photo attachments (finally)
Video recorder support for the camera and gallery
Too many fixes to the email app to mention here.
Stereo Bluetooth

There’s lots of other changes [...]

Open Handset Alliance signs up 14 more Android-lovers, including Sony Ericsson, ASUS and Garmin

Open Handset Alliance signs up 14 more Android-lovers, including Sony Ericsson, ASUS and Garmin: “The Open Handset Alliance just made a major score with 14 more members: AKM Semiconductor Inc., ARM, ASUSTek Computer Inc. (previously rumored), Atheros Communications, Borqs, Ericsson, Garmin International Inc., Huawei Technologies, Omron Software Co. Ltd, Softbank Mobile Corporation, Sony Ericsson, Teleca [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes