Monday, June 22, 2009

iPhoto 8.0.3 bug fixed

Apple issued a new bug fix update today to fix the bug created by incompatibility between Safari 4 and iPhoto 8.

The main bugs included map undragable, location search long wait time, and etc..

Again, thanks to the Apple engineers for this quick fix. Just check your system update, there should be a Safari update on this bug.

Friday, June 19, 2009

iPhone OS 3.0 upgrade

Tonight I finally have my iPhone upgraded to OS 3.0. The first thing I try As soon as I finished the upgrade is the my most wanted function copy and paste! The new function design by apple is very creative and easy to use. Just touch the text you want to copy and hold for a sec, the text will be selected and you will be given a option to copy, cut or paste. Just as it shown on the apple's announcement video. I also love the spotlight feature, especially being a mac user.

Updated! Now, tethering is available!! One way to enable thethering from your provider, is to use your iPhone safari to go to this post and clik on the proper provider. I have tried it and it works great on my Mac. For some reason I can't get it to work for my WinXP at the moment. For mac user, I tried and comfirm it's working!

Enjoy surfing with your iPhone!

Tuesday, June 16, 2009

iPhoto 8.0.3 update has bugs

I have updated iPhoto and safari couple days ago but didn't notice until today that the iPhone got a serious bug after update. The one that annoyed me the most is the map is no longer draggable. Instead of dragging the map, I'm dragging a single map tile...

As usual, I open my brawser and start looking for answers. I come across the post iPhoto 8.0.3 updater bug bites many and quickly found the solution (rather a workaround) for the map issues inside the post comments.

What I need is to remove the 'my' file from ~/Library/Preference folder. This file contains all your iPhoto personal settings, such as the size of thumb nails and alert messages. But don't worry, all your tags on Faces and Places are not in this file so removing the file will not removing your faces and places settings (what a relief!).

Unfortunately, the bug will come back after iPhoto got restarted. So go ahead remove the file again and restart your iPhoto, your maps in places will behave correctly.... I know it sucks, that's why it's just a workaround.

The post also issues some other bugs caused by this update, so if you experience big impact by those bugs, I encourage you to send feedback to apple through either iPhone (iPhoto->Provide iPhoto Feedback) or safari (safari -> report bugs to apple).

I do believe in Apple will come up with fixes for the bugs shortly. Meanwhile, just use the workaround.

Monday, June 15, 2009

iPhone 3G(S)

The new iPhone is going to hit the market in Canada within next week.

I'm really looking forward to the new 3.0 platform as well as the SDK. Although I'm not a iPhone developer (not yet), but the new APIs introduced in SDK do make me feel the urge to learn and write something exciting on the phone.

Here are some of the new APIs I feel most interested:

1. Push Notification - reworked and scalable
2. Accessory API - that can turn iPhone into virtually everything...
3. Ability to embed Google Map and Email inside application - really user friendly feature
4. Other native support to make application development easier and faster

Use Permalink in Rails

It is easy to setup permalinks in Rails, so that your application url will show the meaningful path other than the default controller/action/id format.

To enable permalink in Rails, you need to add a column to store the permalink string (give it any name e.g. permalink). Then in your model, override the to_param metod to use the permalink as shown below:

 class Post < ActiveRecord::Base
has_many :comments, :dependent => :destroy

def to_param

You might encounter a strange error that says

modelname_url failed to generate......

I had this problem on my server and it turns out that I had a '.' in my permalink. '.' is used to set sub-domain in your url. Having '.' unintentionally will make url invalid.

Friday, June 12, 2009

Textmate Twilight Theme For Eclipse

Are you tired of coding with Eclipse default theme and want to get the colorful eye comforting Twilight theme availabe only in Mac Textmate? I do.

But I can't find any good ones on Google so I start making one myself. It all comes down to a bunch of preference setting in Eclipse. So if you want to use the setting, you just need to download and import the eclipse preference setting to your own eclipse. Before doing so, don't forget to export your current setting as a backup!!

You also need to install the Monaco font into your system. The font installation depends on your OS.

So, get the font and preference, install the font and import the preference. You are all set.

Enjoy coding in Twilight!

Wednesday, June 10, 2009

AirPort Express - Music all around

Apple got this great idea that all speakers at home can play music in sync with the help with its AirPort Express.

Today, I bought one and gave it a try. It's surprisingly easy to setup. Just plug in the AirPort Express on the wall outlet close to my HiFi stereo then connect the audio into stereo. Then install the AirPort Utility in the CD shipped with the Express and follow a simple setup (it automatically finds the wireless network, if your computer is using that network, it even filled the password for ya!). All done in 5 mins!!

Now, in my iTune, there is a pull up menu available at the bottom right corner. From the menu I can select which speaker I want to play my music, e.g. from computer, from my stereo or both (now both my computer and stereo are playing music in sync!!).

What's even more amazing is the iPhone Remote application that is available on my iPhone. I can now remotely control my iTune on my phone which means full controll of my computer and stereo output!

I love this experience and will definitely install more Express when I have a bigger house. Imagine walking in my house with all the speakers playing same music in sync.... This feeling is like walking in a shopping mall... Cool

Saturday, June 6, 2009

Setup rails on ubuntu

Today I have setup RoR environment on my laptop installed with ubuntu 8.03

Here are the things I have done:

1. sudo apt-get install ruby

2. sudo apt-get install rubygems

#The gem installed is not working because of some deprecated lib, so I have to do a few more steps:
gedit ~/usr/bin/gem
#Make the first three lines looks like below:
require 'rubygems'
require 'rubygems/gem_runner'

3. sudo gem update --system

4. sudo gem install rails

5. sudo apt-get install mysql-server

6. sudo apt-get install libmysqlclient15-dev

7. sudo gem install mysql

8. Copy my .profile content to .bash_aliases (new file)
gedit ~/.bashrc
uncomment the following lines in .bashrc file:
if[ -f ~/.bash_aliases]; then

9. Install Java (in order to install NetBean)
sudo gedit /etc/apt/sources.list
Add the following if now there
deb feisty main restricted
deb feisty universe multiverse

sudo apt-get update

sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

That's it!!