Pages

Sunday, May 08, 2011

Workaround for Lifehacker or gizmodo automatically redirect the browser from .com to .jp

I sometimes experienced that lifehacker.com or gizmodo.com do redirection automatically to lifehacker.jp or gizmodo.jp. Possibly that the website is either checking the ip address of the user or the browser's local language setting. This auto redirection is quite annoying when accessing the page from google search result, because instead of showing the correct page, it shows the front page of the Japanese version. To solve this annoying redirection, add subdomain "us." in front of the url of lifehacker.com or gizmodo.com page.

For example, if the original URL is:
http://lifehacker.com/5799574/top-10-fixes-for-the-webs-most-annoying-problems

it will become:
http://us.lifehacker.com/5799574/top-10-fixes-for-the-webs-most-annoying-problems

Once the us.lifehacker.com is loaded, it will stay in the English version although we omit the subdomain "us." until we delete the cookies.

That's all :)

Update 2013/4/30:
There are few changes at lifehacker and gizmodo, so that this tips is no longer working. You can check the new changes here:
http://lifehacker.com/welcome-to-the-new-lifehacker-472650381
http://gizmodo.com/welcome-to-the-new-gizmodo-481330297

That's all :)

Monday, February 28, 2011

How to hibernate instead of standby when closing the lid of macbook(pro|air)

Sometimes, we probably prefer to hibernate my mbp instead of make it standby when closing the lid. I am wondering why there is no GUI setting for this simple matter. The only way that I know is by using command pmset from the terminal window as follow:

(1) To enable the hibernate:
$ sudo pmset -a hibernatemode 5

(2) To switch back (standby):
$ sudo pmset -a hibernatemode 0

Or for more detail of pmset command, read the manual (man pmset).

That's all :)

Saturday, February 26, 2011

How to show full path in Mac OSX Finder window title bar

To show the complete path in the Finder title bar of Mac OSX (maybe only for OSX 10.5 and newer), type the following two commands in terminal:

$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
$ killall Finder

And to reverse:

$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO
$ killall Finder

That's all :)

Friday, January 14, 2011

How to add shortcut to sidebar OSX

To add shortcut to the finder's sidebar on OSX:
  1. drag and drop the folder or,
  2. select the folder, press: Command+T

That's all :)