Monday, August 30, 2010

Installing Thai fonts onto an Android device

I've received numerous requests asking for help on how to install Thai fonts onto an Android device after my initial post on Rooting my Nexus One and installing Thai fonts.  Since I do update my Android phone with the CyanogenMod ROM quite often (which wipes the Thai fonts on each install), I thought I'd share a simple shell script to help get Thai fonts onto Android.

This post does not cover how to root an Android device.  I will leave that to you to figure out.  But if you happen to have a Nexus One like me, check out the following link: Video: How to unlock and root a Nexus One.

Also, you will need to have the Android SDK on your system (hopefully Mac or Linux-- which is what the script is written for, although for Windows it won't be hard to figure out what commands need to be run-- hint: use .\adb.exe instead of ./adb in DOS or whatever command prompt and skip the shell script).

Those are the two prerequisites to installing Thai fonts: a rooted device and the Android SDK on your system.  Oh, and I guess how to run some basic knowledge of the command line in a shell (Terminal).

Let's begin.

1. Attach your Android device to your computer via USB and mount it.

2. Download: InstallThaiFontsOntoAndroid.zip.

3. Unzip it and you will see a folder.


The contents of the folder should be placed in the tools folder of the Android SDK where adb is.




4. Open up a Terminal (Applications->Utilities->Terminal.app) and go into the directory where your android SDK and go into the folder: tools.



5. You can test to make sure that your device is connected by the following command in the terminal:

./adb devices

6. And to mount it:

./adb remount

7. Make sure that the script, install_thai_fonts.sh, is executeable by running:

chmod +x install_thai_fonts.sh

8.

[Recommended] Now you are ready to run the shell script to install the six fonts onto the device.

./install_thai_fonts.sh

Or, if you don't wish to run the shell script...


[Alternate] Run the following line by line (you can copy & paste them line by line into Terminal):

./adb push ./fonts/DroidSans.ttf /system/fonts/DroidSans.ttf


./adb push ./fonts/DroidSans-Bold.ttf /system/fonts/DroidSans-Bold.ttf


./adb push ./fonts/DroidSerif-Bold.ttf /system/fonts/DroidSerif-Bold.ttf


./adb push ./fonts/DroidSerif-BoldItalic.ttf /system/fonts/DroidSerif-BoldItalic.ttf


./adb push ./fonts/DroidSerif-Italic.ttf /system/fonts/DroidSerif-Italic.ttf


./adb push ./fonts/DroidSerif-Regular.ttf /system/fonts/DroidSerif-Regular.ttf

If there were no error messages, then you should now have the Thai fonts on the Android device.

9.  Reboot and you will see Thai on webpages, SMS, and files names that are in Thai.

Friday, August 27, 2010

Delivering Happiness by Tony Hsieh

A few months ago, Tony Hsieh, the CEO of Zappos, offered free copies of his new book, Delivering Happiness: A Path to Profits, Passion, and Purpose via his twitter.  I hopped on it right away and got myself two copies of it by using two different email addresses.  I gave one away to a friend and kept the remaining copy to myself to keep and read.

I really enjoyed this book.  It's inspirational how Tony Hsieh started his company out, taking the big risks he did, despite the economic conditions of the Dot Com bubble burst.  It was pretty amazing how he built the culture around his company and the success that followed thereafter.

The reading is pretty light and casual.  If anything, it may be a little too casual as Tony Hsieh noted he wanted to keep it very basic and like a conversation.  I think it could have used a little help from an editor, with a little bit more formal editing, but maybe at the risk of losing what makes Tony Hsieh a great CEO of the greatest online service store that happen to sell shoes.

Coincidentally, I am at a point in my life where I'm making a lot of changes to my professional and personal life.  This book has definitely helped me put things into perspective.  It was great timing for me to pick up and finish reading the book when I did.  Delivering Happiness is a fantastic book to read if you want to see how a great company was formed and sustained-- but also for personal growth to find happiness.


Delivering Happiness: A Path to Profits, Passion, and Purpose

Thursday, August 26, 2010

An Android Photoshoot with my new Camera Lens

I got my new lens in the mail yesterday.  It's a Canon EF 50mm f/1.8 II Camera Lens.
Canon EF 50mm f/1.8 II Camera Lens
I was studying at the time, but once I got my email notification that it arrived, I rushed to pick it up and did a little photoshoot of my Android toy at the table I was studying at.  I played with the aperture for most of the shoot (in AV mode).  Afterwards, I used Adobe Lightroom to polish it up a bit (created a set of Black & White photos too).









Full album here.

Where I got the Android toy: Dead Zebra

Monday, August 23, 2010

September 2010 Tech Events in Chicago

NerdDinner Chicago - .NET Enthusiasts Unite !!!!
Wednesday, September 1, 2010 at 6:15 PM (CT)

Chicago Ruby
Tuesday, September 7, 2010 from 6:00 PM - 8:00 PM (CT)
There will be a meetup on Mongoid & Rails 3.

Chicago Alt.net
Wednesday, September 8, 2010 from 6:00 PM - 9:00 PM (CT)
Should be a talk about Selenium by @bwilken.

Chicago Ruby Hack Night
Thursday, September 9, 2010 from 5:30 PM - 8:00 PM (CT)

Windy City Rails
Saturday, September 11, 2010 from 8:00 AM - 6:00 PM (CT)
Unfortunately I won't be able to attend this event as I'll be at Tech in the Middle event.  I'd like to be able to attend this event on the same day, but the ticket prices are a bit high for me.

Tech in the Middle 2010
Saturday, September 11, 2010 from 9:00 AM - 5:00 PM (CT)
I will be attending this event.  I haven't planned my schedule for the day yet, but I'm looking forward to this event.  I'll be sure to bring my camera there too.
This event has been postponed to Spring 2011!

Chicago Agile Project Management Meetup Group Monthly Meetup
Tuesday, September 14, 2010 from 5:30 PM to 8:00 PM (CT)

Chicago Android training by Mark Murphy #2
Saturday, September 25, 2010 from 8:00 AM - 5:00 PM (CT)

Note: Of course I'll add more events as I find out about them.

Pictures of Chicago and the Millennium Park Bean

I was at an event last week at the rooftop of 63 E. Lake Street and I was able to take some photos of the Millennium Park Bean and parts of Chicago.







These photos were taken with my Canon Digital Rebel XT with a Canon EF-S 55-250mm f/4.0-5.6 IS Telephoto Zoom Lens.