Android is a dirty phone

July 21st, 2010 at 12:24 · Filed Under Blogging, Call Me a Geek, Mac OS X, Phones · 5 Comments 

Android sex chat

Android has been regarded as a savior to those who hate to be controlled and tied down by Apple’s strictly guarded iPhone. It is also one of the competitors closest to iPhone. While Apple’s latest iPhone 4 has a new feature called “FaceTime”, the Android on the other hand gets Sex.

FaceTime is a feature to make video call from iPhone 4 to iPhone 4 over Wi-Fi. No special account or screen name is required to make video calls. Therefore, users can forget about Skype and Apple’s iChat AV. Certainly, FaceTime is a great aide for people with hearing impairment and mute to communicate using sign language.

There are plenty of sex/porn apps for Android devices. There is even an adult-exclusive app store called MiKandi to cater such need. Now the store has reached a new milestone, introducing the first live adult web-cam streaming app for mobile devices called Sex Live Chat. You can read the story here. With live sex chat, you can watch the party on the other side engaged in some actions, and vice versa, if you like to. I will let your imagination run wild.

It is pathetic for a brilliant mobile platform to resort to sexual elements to promote its use. This greatly contrasts with Apple’s iDevices where you can find a wild variety of education apps along with useful business and productivity apps, etc, more than you can imagine.

As a parent, I will invest in iDevices for my kids and never an Android device. The latter is well analogized to the pest in our household.

iOS 4.0.1

July 16th, 2010 at 13:05 · Filed Under Blogging, Call Me a Geek, Computing, Mac OS X, iPhone · Comment 

Yesterday, Apple released iOS 4 update, which was one day before its press conference. The iOS 4.0.1 has obviously made the signal bar look taller. According to various media and blogs, the update is reportedly to have new software (new formula) to calculate the signal strength and to display it more accurately. Read here and here.

iPhone 3GS and iOS 4.0.1

The above screenshot shows the signal bar on my iPhone 3GS with iOS 4. By comparing with the screenshot below, it is obvious that the signal bar (especially bar 1 and 2) has become taller.

iPhone 3GS and iOS 4.0.1

At the same location (my desk), I covered the back of my iPhone 3GS with my palm, the signal would drop 1 to 3 bars after about 22 seconds. After updating to iOS 4.0.1, I repeated the test. The signal bar would reduce 1 bar after more than 25 seconds.

Well, this is a very low tech test and is not accountable to conclude that the new software in iOS 4.0.1 has displayed the signal strength more accurately. Anyway, there is a huge difference before and after.

Catching HTML bugs with Safari 5

A bug in a seemingly harmless HTML code had been bugging me for almost 2 weeks. I was sort of yanking my hair while trying to trace the bug which messed up the HTML page. The debugging task was even harder because I work on a HTML template with an extension .THTML. The template does not only contain standard HTML but also tags which are only recognized by AWS (Ada Web Server) . This template file is parsed by the web application (I am developing), which has AWS library, before it is dispatched as raw HTML code to a browser.

In my design, I break down the HTML template into header, body and footer so that I can reuse the common codes in header and footer. That means, all the body templates are without <html> tag. This missing <html> tag disables the syntax-coloring feature of code editor, leading to a more laborious code reading.

Before this, I had gone through every line of html source code in the template file umpteen times. This “obscure” bug, if not removed, would throw a monkey wrench in my works. I browsed the Internet and read articles in hope that I would get some clues. So, I was reading a few articles about Extensions in Safari 5. Extensions are not really impressive to me as I do not need to add missing functionalities to my browser. Safari itself is more than enough for my daily browsing activities. Somehow, my curiosity had driven me to enable the Develop menu in Safari 5. After activating it, I noticed some debugging tools in the menu. I enabled the web inspector by selecting Show Web Inspector in the Develop menu (Figure 1) then navigated to the web page I wanted to debug. To use these debugging tools, the Develop menu must first be activated. Here is a simple guide to enabling the menu.

Safari 5

Figure 1

Safari 5 immediately detected two error messages as shown in Figure 2. These two errors were easily corrected. After removing these unmatched </div> tags, my web page still did not show up properly with the intended layout.

Safari 5 Show Web Inspector

Figure 2

Then I selected the Elements tab and it showed me the page source in debugging mode as shown in Figure 3. I instantly spotted the <div class=”data-base-layer”> tag which was supposed to be in the <div id=”container”> tag.

Safari 5 Show Web Inspector

Figure 3

I clicked on the little grey triangles in the left pane to expand the <div id=”container”> tag and the <form> tag. There were two <div class=”data-base-layer”> tags (labelled as “1″ in Figure 4) and the one in label “2″ was supposed to be right after them.

Safari 5 Show Web Inspector

Figure 4

I checked the source file again and they seemed to be in the correct place. Further investigation finally reviewed that there were two very tiny typos lurking somewhere within the second <div class=”data-base-layer”> tag as shown in Figure 5.

Safari 5 Show Web Inspector

Figure 5

The web inspector in Safari 5 has helped me to identify errors effortlessly. If only I had such inquisitiveness two weeks ago, I would have saved so much time and efforts in debugging my HTML codes. An proverb says: “Curiosity killed the cat.” It is not always true, at least in this case. I will say: “Curiosity saved the donkey.”

Enable Develop menu in Safari 5

July 7th, 2010 at 12:09 · Filed Under Blogging, Call Me a Geek, Computing, HOWTO, Mac OS X, Software Development, Web · 1 Comment 

One of the new features for Safari 5 is the Develop mode. It allows web developers to debug HTML code on Safari. Before you can use this feature, you must enable the Develop menu first. Here’s how you can do it:

Click on Safari menu and select Preferences. In the preferences window, select the Advanced tab and then click the checkbox for Show Develop menu in menu bar.

Safari 5

The Develop menu will then appear in Safari menu bar. Select Show Web Inspector to inspect your HTML code. You can also activate extensions support by selecting Enable Extensions in Develop menu. Extensions let you add those missing features.

Safari 5

Increase your productivity with iPhone apps

July 5th, 2010 at 12:26 · Filed Under Computing, Gadgets, Mac OS X, Productivity, Technology, iPhone · Comment 

PalmPilotMy first PDA was PalmPilot Professional (photo to right) produced by U.S. Robotics (later as Palm, Inc.). I bought it  in 1998 but I did not use it often due to limited apps. My use was restricted to Calendar, Address and Todo. It was a huge hassle to purchase apps for PalmPilot because there was no single app store like Apple’s App Store. Commercial apps for Palm Pilot at that time were hard to come by. The device went dead during a flight from KLIA to Taipei transit via Singapore on September 11, 2001. I guess it was fried by ESD (electrostatic discharge) while I walked on the carpeted corridor in Changi airport terminal.

Two years later, I bought a Sharp Zaurus SL-5500. It ran Zaurus and OPIE GUI environment. The Zaurus SL-5500 was Sharp’s first PDA to run Linux. Linux was the main reason I chose Zaurus. It was fast and colorful (at that time). It came with a couple of useful apps and desktop sync software. Syncing to a desktop running on Linux was good. After using it for a few months, some commercial apps which I bought, began to crash more often after I updated the operating system. I gave it up after a few attempts to restore the original operating system. Here is the photo of Zaurus (I managed to find its charger) with iPhone lying beside it. Well look at its size! The iPhone 3GS is half the thickness of Zaurus.

Zaurus and iPhone

The other drawback of the Zaurus is its retractable physical keyboard. The keys are too small for my fingers and typing is real pain. So, BlackBerry with physical keyboard is totally out of the game. Here is the picture of Zaurus with its keyboard and iPhone with the virtual-touch keyboard for comparison:

Zaurus and iPhne

I was tempted by HP and Toshiba but, hey, they ran on Windows. No way! In early 2008. I purchased a 2nd generation, 32GB iPod Touch. I was immediately captured by its charms. In December 2009, I got a 32GB iPhone 3GS. My response was: “Damn! I should have gotten it earlier.”

Both PalmPilot and Zaurus need stylus to tap on their screens. If you lose your stylus, you need to buy a new one. iPhone is more convenient because everything is manipulated with your fingers. Apple’s innovative multi-touch screen gives more user experience and more operability to the device.

All I can say, I have never used other PDAs like I use my iPhone. I mostly use my iPhone in my work (especially) and for fun during leisure (social networking, music, games and etc.) Here are some apps I use to boost my productivity while I am on the move and even at my desk.

iPhone PaymoPaymo is a free online time tracking and billing service. With a small fee, user can upgrade the service for unlimited users and invoices. I use Paymo to track my time spent on various projects and business/work related activities. The Paymo free iPhone app works in both online and offline mode. When I am out to support my clients, and/or having business or technical meeting and discussion, I can easily track my time with this tiny useful app.

iPhone app OmniFocusWith design based on the concepts and techniques described in David Allen’s book, “Getting Things Done”, OmniFocus for iPhone is a powerful to-do app that let you stay focused in whatever you are doing or trying to complete. The app is priced at $19.99 which is a little bit on the high side. I was hesitating for a while because of the price. After using it, I will say, “Save your money for OmniFocus and forget about other to-do apps.” Before this, I was using Things and I am still using it. The only reason I want to keep Things is that it allows assigning teammates to your tasks. OmniFocus is more comprehensive than Things and it let you stay focused in getting your jobs done, which is most important. Besides, you can sync your data via MobileMe, Bonjour, WebDAV server or locally mounted disk on your Mac. Personally, I think it is worth the investment.

iPhone app ThingsThings is an easy-to-use to-do app priced at $9.99. It’s a good alternative to OmniFocus if you are on a tight budget. The price tag of $9.99 is considered quite high especially there are some free to-do apps, but to do a good job, Things will be above average. Unlike OmniFocus, syncing can only be done with a WiFi at your local area network where your Mac is running the desktop version of Things. One feature which I don’t like is its ability to assign more than one tag to your tasks. Too many tags confuse me.

iPhone app EvernoteEvernote is a free online service which let you save your ideas in the form of texts, voice memos or photos. You can save a web clip or PDF. Syncing between multiple devices and Macs over the Internet is a breeze. I use it while I am writing computer codes to note down what I have done and new ideas that come along. You can tag your documents for easy retrieval later. If you would like to enjoy a larger storage and monthly usage bandwidth, you can upgrade the service to Evernote Premium for $5 a month or $45 a year. Evernote is a good companion for notetaking while you are working, engaged in meetings and discussion and even at leisure.

iPhone app Invoice2GoInvoice2Go allows me to issue invoices on the go without a notebook or desktop computer. With it, I no longer need to go back to office to issue invoices. It saves me a lot of time from traveling back and forth between office and clients. Just email the invoices to your clients and you can make the delivery right away. For only $9.99, it saves you time and gasoline.

iPhone app DropboxDropbox is a free online storage service. You can take any file with you on your iPhone to meetings. Your co-workers or clients can drop files to your Dropbox and you can pick them up anytime, anywhere on your iDevice or Mac, provided they are connected to the Internet. It also allows you to share your files on Facebook or Twitter via link. By getting your friend to sign up you can earn 250MB of extra free disk space (up to 8GB) for every new account created. Click here to sign up.

Flash of the titans

May 10th, 2010 at 13:22 · Filed Under Business, Mac OS X, Software Development, Technology, Web, iPhone · Comment 

Apple’s decision for not to implement Adobe’s Flash into iPhone OS has turned Adobe-Apple relationship sour. In an open letter from Steve Job, he has written clearly about Flash’s weaknesses and a firm stance against Adobe’s Flash. I absolutely agree with Steve based on my experience with Flash. I would say: “Flash is nice to look at, but is a nightmare to have it!”

A week or two before Apple published Job’s open letter, I learned about an open source Flash project called Gnash from Twit. You can listen to the podcast here.

I really don’t believe in develop-once-deploy-everywhere development concept. I am more a native application guy because I only believe in native performance without relying on third party software components to run the applications. My experience with Tweedeck served as a wonderful example.

Tweetdeck was developed using Adobe’s AIR and Flash technology and is a develop-once-deploy-everywhere kind of application. Its user interface on the Mac really sucks. It looks more like a Windows application rather than Mac’s native Cocoa application. One thing annoyed me was that I had to upgrade Adobe’s AIR whenever it became available. I feel happier for not running Tweetdeck now.

A Java application has its downsides as well. It too depends on Sun’s JVM (Java Virtual Machine). Java has never become an implementation language in my software development career. Only recently when I began to involve in web application development, I have to work with JavaScript. The experience is awful, in my experience.

It is understood why Adobe is so furious about Apple’s decision not to allow Flash on its mobile platform. The reason is obvious: Adobe loses its grip on Apple’s mobile devices and has been discounted in Apple’s mobile computing gameplay. But Apple is not an easy-to-squeeze apple, it is huge and capable.

Apple has been working on an open web standard HTML5 and Apple’s own version of Flash, Gianduia. With HTML5, Apple’s computing platform becomes even more open, unlike otherwise as Adobe claimed. Both are exciting new technologies which I would like to implement to the web application I am developing.

I will write more about HTML5 and Gianduia when I have found time to research more about these two.

Dropbox – The magical USB drive

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

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.

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

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.

Next Page »