Archive

Tag Archives: Leopard

Unlike Safari, it’s quite strange and no way to set default encoding in preference in Mail.
Also you may get complaints from friends that using web mail which doesn’t not convert encoding automatically.
To make sure every time when you compose a new email, it’s using the encoding you want, you can invoke this command from Terminal.

e.g. Hong Kong Chinese Character Set
defaults write com.apple.mail NSPreferredMailCharset "BIG5-HKSCS"

mail-encoding.png

Apple – Support – Discussions – kmail: Fixing Tiger Mail Encodings

Many features in the new Safari 3 bundled with Leopard, not everybody would realize but once you know you will definitely be amazed.

Go to Terminal and type to enable this switch.

defaults write com.apple.Safari WebKitDeveloperExtras -bool true

Or you can use xMod to do the same.
xmod.png

Have you even noticed “Inspect Element” when you ctrl-click on a web page?
safari3-inspect1.png

Amazingly, it would show a DOM element inspector window or inline below the page! You can inspect the source code in plain text or XML hierarchy, highlight style sheet and check style properties on right panel. It’s so cool for web developer!
safari3-inspect2.png

And you see Console and Network on lower left-hand corner. I don’t know what’s the use of Console. But if you press on Network, it will bring up another gorgeous view!! It shows how long Safari took to load all the web contents in the page and also their size!
safari3-inspect3.png

Including myself, many Java developers are scratching their heads because of the stability issue of Eclipse after upgrading their Mac OS X to Leopard. It’s mentioned in so many Java forums and also Apple Discussion forum, but don’t know why neither Eclipse nor Apple has update about problem. Eclipse would crash and close itself if you try some of your familiar shortcut keys.

Hopefully, I searched the net and thanks to plan4041, he posted a hint how to resolve this problem. You may find the latest build of Eclipse from http://update.eclipse.org/downloads/. For me, I’m using 3.3, so I got M20080130-0800. Extract the latest build and copy these 2 files from the build to replace your local copy.

/eclipse/plugins/org.eclipse.swt_3.3.2.vXXXXX.jar
/eclipse/plugins/org.eclipse.swt.carbon.macosx_3.3.2.vXXXXX.jar

I don’t know what have been changed in the build lately and not sure if it has solved the problem totally. But what I feel is now I can use command+shift+T that I used most and it would crashed Eclipse very often before.

Honestly I’m happy with Leopard except this issue. Hope you can still continue your Java development in Leopard!

eclipse-for-leopard.png