Monday, May 26, 2008

是日金句

"... let them burn"

Sunday, May 25, 2008

Converting Quicktime HD videos for playback on PS3

Apple Movie Trailers

To convert the Quicktime movies:

  1. Get Quicktime Pro. Only it has the function to save the movies on local drives. If you have the registration code, you can turn your Quicktime into Quicktime Pro (Edit > Preferences > Register)
  2. Once you have Quicktime Pro downloaded the movies, choose the File > Export... function
  3. Choose "Movie to MPEG-4" in the Export dropdown box. Then click Options
  4. For File Format, choose "MP4"
  5. For the Video settings, choose "Pass through" if no need to resize the video. Otherwise, choose "H.264". Change the Data Rate (esp if encoding for high resolution). Pick the desired resolution. Suggested to check the "Preserve aspect ratio" and select "Letterbox". Set Frame Rate as "Current". In Video Options, choose "Best Quality (Multi-pass)" to increase the quality (but double the encoding time).
  6. For the Audio settings, choose AAC-LC. Sampling Rate as "Recommended". Encoding Quality as "Best"
  7. Click OK to start the Export. When done, copy the file to the VIDEO folder (under the root directory) on a storage media and plug it into PS3 for playback / copy.

Saturday, May 24, 2008

黑仔

黑仔。即係係大熱天時,為左部老爺吸塵機,四圍咁搵邊到有吸塵袋賣。而終於係某門市部,有位好心售貨員姐姐係倉底搵到 last 一包,買完跟住番到屋企換上新袋後準備吸塵時,部機開唔夠十秒個摩打就打柴~!

Wednesday, May 21, 2008

是日金句

"If doing evil creates good, so be it"

Sunday, May 18, 2008

Firefox 3

Firefox 3 Release Candidate 1 is out now

Notes to self for compiling the source:

  • On my XP machine with VC++ 2005 Express, need to disable the Vista SDK support
    ac_add_options --disable-vista-sdk-requirements

  • Need to remove the /EHsc compiler optimization (it was used to tell compiler to assume extern C functions never throw exceptions)

Wednesday, May 14, 2008

是日金句

「人的前半生不能猶豫,人的後半生不能後悔」

Saturday, May 10, 2008

是日金句

Persephone is Queen of the Dead. Betrayed by Zeus and tricked by her husband Hades.

"I have watched over you pathetic mortals for a thousand years, and it is always the same. Serving yourself before the needs of others has always been your flaw... It is time for all that came before to end."

save game -> 打大佬 -> 死左 -> load game -> 打大佬 -> 死左 -> load game -> 打大佬 -> 死左 -> load game -> 打大佬...... 終於打爆隻 God of War: Chains of Olympus... orz

Wednesday, April 30, 2008

PSP video encoding with FFMPEG

For 4:3

ffmpeg -i in.mp4 -acodec aac -ab 128kb -vcodec mpeg4  -b 1200kb -ar 24000 -mbd 2 -4mv -trell -aic -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -title X -f psp J:MP_ROOT100MNV01M4V10001.MP4

Saturday, April 26, 2008

鋸扒

早兩日同朋友去食飯,點了客澳洲和牛「扒」。講真,點時冇期望,食落亦冇驚喜(自我安慰:正常呀~ 幾舊水你想點?)…

不過,其實有隻澳洲牛真係唔錯,要推介下的。呢隻就係「塔斯曼尼亞牛肉」。佢食落去真係有種唔錯o既質感同牛肉味,仲要係夠腍 - 鐘意食十成熟o既都冇問題。最最最重要係唔貴:大概廿零蚊一百克左右。 「拮豬賭」有售~








Saturday, April 5, 2008

typo bug fixing

Found 2 bugs in the blogging software typo that I am using. Both are related to the Atom feed for comments.

First, the theme incorrectly used the name instead of the id to retrieve the article. In views/articles/_article.html.erb, change :

<a href="<%= url_for :controller => 'xml',
 :action=>'feed', :type=>'article',
 :format => 'atom', :id => @article %>">Atom feed</a>.

to:
<a href="<%= url_for :controller => 'xml',
 :action=>'feed', :type=>'article',
 :format => 'atom', :id => @article.id %>">Atom feed</a>.


And in the app itself, the code forgot to check if there is any comment at all before trying to read from it. In app/views/articles/_atom_feed.atom.builder, change:

feed.updated atom_feed.first.updated_at

to:
unless atom_feed.first.blank?
    feed.updated atom_feed.first.updated_at
end