I got an iPhone

December 18th, 2009 at 11:37 · Filed Under At Work, Blogging, Computing, Days in My Life, Phones, Software Development · Comment 

If you have followed my blog, you must be aware of how I criticized about iPhone and Apple’s aggressive strategy with mobile carriers in my article, “iPhone is in Malaysia!” I have also been going around telling customers and friends that iPhone is not as useful as it seems and is more a toy to attract young generation.

Well, I admit that I was wrong. I am developing a cloud/web-based MIS (Medical Information System) which enables patient to be able to view certain information and interact with the clinic/doctor from anywhere. Likewise, it also provides doctors greater mobility and still are able to care for their patients while they are away.

After reading articles (on Apple’s website) how iPhones help hospitals in the U.S. to provide better healthcare at lower cost, I decided to build the MIS with iPhone support. I based my decision on these reasons:

  1. Ease of use. I have been toying/using around with an iPod Touch for a few months and I find that it is easy to navigate/use. iPod Touch is essentially an iPhone without the phone. You get what I mean.
  2. Beautiful UI. Apple is well known for its brilliant UI (User Interface) in Mac OS X and iPhone OS. Nothing else comes closer to it.
  3. Security. All applications must be approved by Apple and be signed with license keys issued by Apple. Apple’s iTunes Store is the only place to download applications. I can be rest assured  to have less (or none) headache about spooky applications from unreliable sources. Of course, there are jail broken iPhones which do not play by the rules but I am not too worried about that.

So, I went ahead ordering one last week. Last night, I went to Maxis center to collect my 32GB Black iPhone. It is such a beauty.

Give me a couple of weeks mingling with it and I promise you I will write about my experience.

Dropbox – The magical USB drive

October 12th, 2009 at 9:52 · Filed Under Blogging, Computing, Mac OS X, Technology · Comment 

Dropbox, the magical USB drive, let’s you transfer files among computers without the need of a physical USB drive or DVD or emailing. Dropbox on Mac is the latest and coolest file sharing technology made available today.

I have been using Apple’s iDisk to sync and share files among my computers, iPod Touch (iPhone) and as well as clients and co-workers. Two days ago, I discovered Dropbox and I now find it easier to use than iDisk and it is faster! It is free for a 2GB storage or upgrade with a small monthly fee.

One cool feature of Dropbox is that when someone drops you a file in your folder, Dropbox notifies you using Growl. iDisk lacks this notification feature and usually the file arrives silently unless the sender texts or emails you.

Dropbox can work offline. Dropbox on Mac will sync your files and folders to your local hard disks and allows you to access later even when offline. The sync is done automatically.

I used to copy some files on my USB drive and take them to my clients. Now I no longer need to bring anything. Just use my client’s Internet browser to access my Dropbox and viola! The files will be transfered to my client’s Mac.

Of course, there are many ways to use Dropbox for your productivity. For example, taking your lecture notes to the lecture hall without carrying anything at all, not even USB pen drive. There are some other ways of using Dropbox, read here. But that’s not all. Please tell me if you find any other use of it.

Sign up here for extra 250MB of disk space!

Automated backup

September 30th, 2009 at 12:48 · Filed Under Blogging, Call Me a Geek, Computing, Linux, Mac OS X, Software Development, Solaris · Comment 

Since August 18, my software development work has been picking up its pace and I have checked in more works more often, at least five times on single productive day. Ever since, I have been manually backing up Subversion directory using tar. My project server is fornax.

Fornax is a 6-year old PC running Ubuntu. It wasn’t working properly due to the cooling fan in its power supply unit. Until about two weeks ago, I replaced the old fan. I am not very confident about the replacement because it is a third party part and the replacement isn’t as good as expected, but it works. I have to shut it down every night before going to bed.

So, the last thing before I go to bed is to backup the svn directory and then shutdown the server. I am quite fed up with this extra manual works. Last night, before going to bed, I decided to automate this process. And I did it this morning.

I wrote a simple bash shell script to do the backup. I cron it so that the process will start automatically at 2300 hours and then shutdown.


#!/bin/bash

BACKUPFILE=/tmp/backups/svn-$(date +%Y%m%d).tar.gz

rm /tmp/backups/svn-*.gz
tar -cj /svn > $BACKUPFILE
for COMPUTER in host1 host2
do
   scp $BACKUPFILE user@$COMPUTER:Desktop/
done
/sbin/shutdown -h +5

UPDATE (05/10/2009): I setup a password-less ssh login so that no password is required for scp (secured copy). Now, after the backup, the backup file will be copied automatically to two other computers for safe keeping.

iPhone 3.0 Software Update

June 28th, 2009 at 0:26 · Filed Under At Home, Call Me a Geek, Computing, Days in My Life, Gadgets, Mac OS X, Technology · 4 Comments 

A couple of weeks ago, the iPhone 3.0 software update was official launched. I connected my iPod Touch to iTunes 8.2 and clicked Update. Unfortunately, iTunes said that the update wasn’t available at iTunes Malaysia store. I wasn’t very happy with the service Apple has provided. The update was supposed to be free but it would cost me US$9.95 to upgrade my iPod Touch to iPhone 3.0.

Here’s the screenshots (click to enlarge): Read more

Backup your Mac with AppleScript

All programmers are lazy. They want to automate tasks as much as they can. Because of this uniquely great habit, they have developed countless of useful software.

Ok. I am lazy. I have been using rsync to sync folders I am working on between my Macs. I have been using command line scripts in Terminal for almost two years and finally I have gotten lazy over the task.

The thing is, I need to execute the scripts in Terminal every time I want to synch my folders. Of course, I could simply use cron to automate the tasks at specific time but I ran the risk to cause havoc between the folders on different Macs. It is best not to cron the task.

So, I learned up AppleScript and after a ten-minute hack, I wrote a nice AppleScripts to do the job. It is quick and dirty.

set debug to false

with timeout of (30 * 60) seconds
	tell application "Terminal"
		set Window_Title to "Sync Documents"
		set Rsync_Cmd to "rsync -acrtv --delete
			/Users/username/Documents/
			username@xxx:Documents"
		set output_doc to do shell script Rsync_Cmd
		choose from list paragraphs of output_doc with prompt
			"Result:" with title Window_Title with empty
			selection allowed
	end tell
end timeout

Copy the script to ~/Library/Scripts/Applications/Finder and save it as “sync documents.scpt”. Then launch Script Editor to edit username to your login name and xxx to your Mac IP address or computer name. This script will sync your Documents folder under your user home directory. To execute this AppleScript, at Finder, click on the script icon on the menu bar and select the script to launch.

rsync uses ssh. If you have not setup a password-less ssh login, you will need ssh-askpass in /usr/libexec. Unfortunately, it does not ship with Mac OS X. You can get it at Joe Mocker’s weblog.

Miranda

April 10th, 2009 at 20:42 · Filed Under Blogging, Computing, Days in My Life, Gadgets, Mac OS X, Technology · 1 Comment 

Finally, I have got an idea what name to give to my iPod Touch. It was named “Adrian Hoe’s iPod Touch” to make things simple. The hardest part was to find a name which implies its usefulness.

I have several reasons to buy an iPod Touch but I am not going to talk about them here. One most ostensible use of it is that I am no longer required to lug my MacBook (code-named Uranus) everywhere I go. Since it replaces the function of Uranus when it is not with me, I name my iPod Touch, Miranda, one of the five moons of Uranus. Miranda is the inner most and smallest moon of Uranus and is also referred to Uranus V.

When data is lost

April 10th, 2009 at 20:14 · Filed Under Blogging, Business, Computing, Marketing · Comment 

Almost all computer users have experienced data lost on their computers at least once in their life time. It is most frustrating when it happens while you are working on your project. You have so much data on your hard disk and worst, the project deadline is approaching. You suddenly plunge into despair. You lose your appetite and sleep. It is like the end of the world.

If you are running a business, your data lost can cause you a fortune. Data is the most valuable byproduct of any business. For example, customer database, sales and invoicing, stock inventory, etc.

There are numeral factors that can cause data lost. The most common are hard drive failure (electronic or mechanical), accidental deletion of file(s) or partition(s), accidental reformat of hard drive and OS failure. Fire and flood can also damage your hard disks. On advanced computing hardware, data lost can cause by the reasons mentioned earlier as well as RAID controller failure, rebuild RAID configuration failure, damaged or lost RAID configuration, corrupt or damaged partition table, etc. If you lose your data due to any of this or other reasons, you will need data recovery service.

If you are using a Mac, you need not to worry at all. The DataRecoveryGroup also provides Mac data recovery service to Mac users. They also provide server data recovery service to recover data from RAID disk arrays on servers.

A hot Sunny affair

March 26th, 2009 at 3:03 · Filed Under Ada, Computing, Linux, Mac OS X, Solaris · 5 Comments 

I have been hesitating for another hot Sunny affair since the last one about three years ago. This is just another one I have been longing since then. The recent eclipse of Sun resurrects my overwhelming but sleeping desire. Although this happened near the time when Sun is setting, but it is never too late to do it again because Sunset is beautiful and romantic.

Will Sun set and never rise again? Here is my encounter of the hot Sunny affair.

Read more

iPhone is in Malaysia!

March 14th, 2009 at 10:35 · Filed Under Blogging, Business, Computing, Phones, iPhone · 7 Comments 

The long awaited Apple iPhone 3G has finally arrived in Malaysia. Apple’s website announced its arrival today and Maxis has begun informing its customers via SMS a few days ago. I was in joy receiving the SMS and quickly went to Maxis website to check out the details.

 

iPhone 3G

The iPhone 3G that makes you drool...

I was truly disappointed after reading the details on Maxis’ website. The selling price is very high and apart of this, Maxis locks you in with either 24 months or 6 months contract. The worst thing is that if you breach the service contract or choose to opt out before the contract matured, there is a huge penalty awaiting you ahead.

We have paid so much for the iPhone with our own pocket, why is there still hefty monthly service fees and contract commitment?

Is that another dirty Apple’s trick?

Read more

Is Apple dirty?

March 13th, 2009 at 2:00 · Filed Under Blogging, Business, Computing, Mac OS X, Marketing · 1 Comment 

I have been Apple Mac user since 2003 after ditching Microsoft Windows in 1998. Mac OS X is real UNIX operating system comparing to Linux which is UNIX-like. Thanks to Apple for spending quite a substantially huge amount of money to license the UNIX operating system. Ever since I had an iBook, I am getting more entangled with Mac. I shifted all my web browsing, emails, calendar, contact, photos, video, and even software development to Mac platform. Although I am still running Linux on Intel boxes and SPARC Solaris, I have become totally dependent and obsessed with Mac. I would crave for a Mac if I were to work on non-Mac.

Why?

Read more

Discover your iPod touch

February 4th, 2009 at 2:30 · Filed Under Blogging, Call Me a Geek, Computing, Gadgets, Mac OS X, Technology · Comment 

One of my most desired applications on iPod touch is to be able to take PDF and source code anywhere I go for discussion without taking a MacBook with me. The good thing about iPod touch is its ability to sneak into my shirt pocket or in a carrying pouch on my belt. Sometimes taking a MacBook along just for the purpose of viewing a PDF or some source code is deemed to be cumbersome. One obvious problem is that I have to carry my MacBook in the bag anywhere I go, for example, shopping. It is risky to leave the MacBook in the trunk. Many theft cases have been reported.

Discover is the best application that allows me to wirelessly transfer my files to iPod touch and view it. It is free and secured. Unlike other free applications of the same class, Discover is only limited to physical storage available on your iPod touch. It supports many file formats such as PDF, Office document formats (which I don’t use), and Unicode support (C/C++, Objective-C and more). Unfortunately, it does not recognize Ada source files. I hope BBase will support Ada in coming release.

Download Discover from iTunes store and install into iPod touch. Just launch Discover and connect (using any WebDAV enabled browser) to iPod touch with the IP address provided on the iPod screen. You can setup secured access with passwords to protect your iPod touch from unauthorized access.

iPod Touch

January 29th, 2009 at 22:57 · Filed Under Blogging, Call Me a Geek, Computing, Mac OS X · Comment 

I received my 2nd generation iPod Touch 16GB today. I tried to make unboxing video but the result was not as good as I expected. Sorry guys. May be next time.

After I took it out from the box, I put it on screen protector film and soft silicon skin right away. I have heard and read about scratching screen, drops and oily finger marks on iPod Touch and iPhone. I think it is good to protect my investment.

I have an iPod nano which my sister gave me more than a year ago. I seldom use it but most often I use it to listen to podcasts and some music. The reason for me to acquire an iPod Touch is to explore some ideas and to develop some useful software for it.

iPod Touch is a very powerful device besides music and video playing. It is in fact a powerful PDA for many applications in my opinion.

Apple TV playlist

January 24th, 2009 at 19:59 · Filed Under At Work, Blogging, Business, Computing, Days in My Life, Education, Mac OS X, Medical · 2 Comments 

I have installed an Apple TV at my client’s office waiting area. His purpose is to educate his patients while they are waiting for their consultation. That is a brilliant idea as we had long and boring waiting experience when LA was consulting him.

The idea is to design different programs with advertisements and messages interleaved among documentary and his own educational videos for playback on different days of the week. And the most important thing is to allow the doctor himself to easily update his educational videos and advertisements anytime as he wishes from his new 24″ iMac.

After I installed Apple TV a few days ago, I realized it did not have movie playlist. After Googling for a while, I wasn’t alone. Here is a blog entry with the same problem. And I found out the Apple TV Software Update 2.3 allows movie playlist in iTunes to be seen on Apple TV. I downloaded the 2.3 update this afternoon, and after I activated the movie playlist in Apple TV settings, it is now able to play the movies in the playlist as desired.

I pondered why Apple did not ship Apple TV with new software update 2.3. It was released in November 2008. About the Apple TV software update can be found here.

Another ultimate experience

January 21st, 2009 at 23:53 · Filed Under At Work, Blogging, Days in My Life, Mac OS X, Medical · Comment 

When LA birthed Richie, I was there with her almost the whole day in the labor room. That was the first awesome experience in my life. About three years ago, when LA birthed Nik, I was there with her in the operating theatre (OT). That was another more wonderful day in my whole life. I could hear her doctor cut open her lower abdomen (Caesarean section).

Almost a month after Nik was born, I suffered from retina detachment and had to undergo a surgery to repair it. That was myself experiencing the first surgery of my life. The experience was really awesome and I had some mixed feeling.

This afternoon, I had to test out some equipment in the OT while the doctor was performing laparoscopic surgery. Like the second experience, I had to put on the surgical gown and mask before entering the OT. Only this time I was with the doctor.

 

Thats me in surgical clothing

That's me in surgical clothing

Although the laparoscopic surgery was not invasive, it was thrilling enough to witness the live performance before my own eyes. At least, it has proven I have a strong stomach up to this level.

Read more

A good head start

January 1st, 2009 at 23:46 · Filed Under At Home, At Work, Call Me a Geek, Computing, Days in My Life, Hacking, Holidays, Mac OS X · Comment 

Happy New Year 2009 buddies!

It seems like a good head start for me. Everything I planned for today seems to be smooth sailing although I am having one problem which I do not know why it happens. I guess I will need to toy with it and/or hack it to learn why it isn’t behaving as it supposed to be. If everything is running perfect before end of this month, I will acquire an iPod Touch to proceed further. This will be my first wish on this very first day of 2009.

Finder hang in Leopard

October 23rd, 2008 at 21:49 · Filed Under Call Me a Geek, Hacking, Mac OS X · Comment 

When I returned home this evening, LA told me her applications had hung. I checked and found not only that, the Finder was not responsive too. I had no choice but to power off and to restart the Mac Mini again. This had also affected my user account. The Finder had failed to launch after login and the Dock did not appear as well. But fortunately root user account was not badly affected.

I Googled and found some articles and solutions here, here and here. I exhausted all the methods and I did not have DivXNetworks and ApplicationEnhancer.bundle in the directories mentioned in these links. I decided to go my own way.

What I did was to delete everything that was related to DivX. Since I did not have DivXNetworks, so I removed DivX folders in “/Library/Application Support” and “~/Library/Application Support” and also the DivX programs in Applications.

After the deletion, Finder still could not launch properly. I launched Console.app to examine system logs and found some errors in cache files com.apple.LaunchedServices*. I removed everything with com.apple.LaunchedServices in /Library/Caches.

Viola! Everything is back to normal again. DivX is a third party enhancement software and is not very stable. It seems like DivX has messed up with the system caches and somehow prevented Finder to launch.

I have spent two and half hours mingling with this problem. I hope my experience will save some of your time if you have the same problem as mine. I am going to take my supper.

Good luck!

Lamport’s bakery algorithm

August 14th, 2008 at 1:31 · Filed Under Blogging, Computing · 12 Comments 

The comment(s) in one of my earlier post here inspired my long sleeping passion in distributed computing. After reading about Leslie Lamport and some of his papers, I find his stories fascinating and one of his paper about bakery algorithm is most compelling and has profound effect on me. He has also done many great works such as the Paxos algorithm.

Leslie invented bakery algorithm but he insisted that he discovered it. He wrote

For a couple of years after my discovery of the bakery algorithm, everything I learned about concurrency came from studying it. … The bakery algorithm marked the beginning of my study of distributed algorithms.

He enthralls me with his attitude towards knowledge and learning. His discovery was the beginning of his study of distributed algorithms.

How many people find a solution to a problem, then continue to study the solution for years and learning from it?

Leslie gives me a new inspiration and a whole new perspective towards learning. After reading his paper about bakery algorithm, I have a clearer inspiration in distributed computing. If I choose to specialize in this field, I need more of such inspiration coming to burn a bigger fire.

Distributed computing

August 13th, 2008 at 12:30 · Filed Under At Home, Blogging, Computing, Days in My Life, Education · Comment 

I missed an opportunity to work on a distributed computing project many years ago. I was too engrossed in front-end dealing with GUI and stuff. Now, when I read more about Lamport’s works, distributed computing is becoming more interesting. I am also becoming more obsessed in reading distributed computing. Without me realizing at first, I have become Lamport’s fan.

I read his papers with great interest and the desire to read more of his works is becoming stronger in me. I have never had such feeling before. I will continue to find inspiration in his works.

Durian, durian, durian

July 6th, 2008 at 0:26 · Filed Under At Home, Blogging, Computing, Critiques, Days in My Life, Eating Out, Family · 2 Comments 

It is durian season. Last night when we were at grandma’s place, she and grandpa asked D if he liked to eat durian. We had been talking about durian feast since couple of weeks ago. So, tonight we decided to buy some durian to give grandma and kids a treat.

We drove to Bukit Baru to source for durian. Finally found a Malay stall opposite SRJK Kek Seng. Bought 9kg of durian and proceeded to grandma’s. The kids had not been to grandma’s place for months. The kids were really enjoying at grandma’s place. We stayed until 2330. The kids will definitely wake up late in the morning. They usually sleep early but once a while we allow them to sleep during weekends so that they can adjust to adults’ timing. They must be sleeping soundly by now.

Snow Leopard

June 15th, 2008 at 11:31 · Filed Under Computing, Mac OS X, Technology · Comment 

The Snow Leopard (Uncia uncia) sometimes known as ounce is a large cat native to mountain ranges in Central Asia from Afghanistan to Lake Baikal and Eastern Tibet. Snow Leopard normally weights 35kg to 55kg and slightly smaller than Leopard.

Apple’s Mac OS X Snow Leopard is the next version of the world most advanced operating system with a smaller footprint compared to its predecessor, Leopard. Snow Leopard will take full advantage of 64-bit and multi-core technology to the height.

Since Apple introduced Mac OS X in 2001, thousands of new features have been implemented and introduced. In Leopard, the ability to take advantage of multi-core and 64-bit addressing have opened up new dimension in desktop computing. Virtualization becomes possible. New features such as Time Machine automatically backup the Mac hard disk without user knowing.

Snow Leopard, to be released a year from now, is going to be smaller than Leopard but more powerful. Snow Leopard dramatically reduces the foot print on hard disk, using less disk space, freeing them for more music, photos and videos.

Snow Leopard fully makes use of 64-bit addressing to increase the RAM size to the theoretically 16TB, 500 times more than what is possible today. “Grand Central” a new set of technologies built into Snow Leopard brings unrivaled multi-core support and capabilities to Mac OS X. More cores, not faster clock speed, drives performance faster in today’s modern processors. Grand Central takes full advantage by making all of Mac OS X multicore aware and optimizing it for allocating tasks across multiple cores and processors. The result: more powerful applications at faster speed.

Next Page »