Thursday, October 29, 2009

Codec for Mac

Was looking around for "K-lite Codec Pack" for Mac and found Perian.

"The swiss-army knife for Quick Time".
--Perian


Perian is a free, open source QuickTime component that adds native support for many popular video formats.
-- Perian.org

Files supported:
  • File formats: AVI, DIVX, FLV, MKV, GVI, VP6, and VFW
  • Video types: MS-MPEG4 v1 & v2, DivX, 3ivx, H.264, Sorenson H.263, FLV/Sorenson Spark, FSV1, VP6, H263i, VP3, HuffYUV, FFVHuff, MPEG1 & MPEG2 Video, Fraps, Snow, NuppelVideo, Techsmith Screen Capture, DosBox Capture
  • Audio types: Windows Media Audio v1 & v2, Flash ADPCM, Xiph Vorbis (in Matroska), and MPEG Layer I & II Audio, True Audio, DTS Coherent Acoustics, Nellymoser ASAO
  • AVI support for: AAC, AC3 Audio, H.264, MPEG4, and VBR MP3
  • Subtitle support for SSA/ASS and SRT


Download site: http://perian.org/#download

Tuesday, October 27, 2009

"Enable" Blogger Flash links

Was trying to solve the problem of links not working for flash in Blogger for the past few days.

Found the links that explain the security changes for Flash 8 and above.

In Flash Player 8, the default for an unspecified allowScriptAccess value remains "always" when the main SWF in Flash Player is version 7 or earlier, but changes to "sameDomain" when the main SWF is version 8 or later.

The allowScriptAccess parameter allows an HTML page to include Flash content but prevents it from executing scripts in the HTML page...


Technical details explained here http://tr.im/D79G.

SOLUTION

For <param name="allowScriptAccess" value="sameDomain">, change the "sameDomain" to "always".

done!

Sunday, October 25, 2009

Google Chrome Lag Solved

Found out the problem with the lag for Google Chrome.

Its described in Microsoft KB Article 929868.

To work around with this issue, you can change the Windows Scaling factor to 2. The following steps explains it.
  1. Click Start and type CMD.
  2. Press CTRL+SHIFT+ENTER to open the command Prompt with Administrative rights.
  3. Type the following and press ENTER
netsh interface tcp set global autotuninglevel=highlyrestricted

This will set the autotuninglevel to "Allow the receive window to grow beyond its default value, but do so very conservatively".

Reboot.
---
To restore, just type the following:
netsh interface tcp set global autotuninglevel=normal

Reboot.
--
You can also disable autotuning with the following command:
netsh interface tcp set global autotuninglevel= disable

Reboot.
--

Note: This should solve other high-ping related network issue too :)

Saturday, October 24, 2009

U32-to-U8 conversion

/*
* U32TO8_BIG(c, v) stores the 32-bit-value v in big-endian convention
* into the unsigned char array pointed to by c.
*/
#define U32TO8_BIG(c, v) do { \
u32 x = (v); \
u8 *d = (c); \
d[0] = T8(x >> 24); \
d[1] = T8(x >> 16); \
d[2] = T8(x >> 8); \
d[3] = T8(x); \
} while (0)

/*
* U32TO8_LITTLE(c, v) stores the 32-bit-value v in little-endian convention
* into the unsigned char array pointed to by c.
*/
#define U32TO8_LITTLE(c, v) do { \
u32 x = (v); \
u8 *d = (c); \
d[0] = T8(x); \
d[1] = T8(x >> 8); \
d[2] = T8(x >> 16); \
d[3] = T8(x >> 24); \
} while (0)

Friday, October 23, 2009

Wednesday, October 21, 2009

范瑋琪 - F ONE

專輯名稱:F ONE
歌手姓名:范瑋琪
推出日期:2009-07-10
語言:國語
製作來源地:台灣
其他資料:CD
出品商:福茂唱片音樂股份有限公司 (TW)


專輯介紹:
出道九年的范范(范瑋琪),在2009年最新專輯《F ONE》打開心屝,不論在音樂風格或造型上,挑戰極限尺度。音樂班底方面,范范請來金曲獎製作人阿弟仔、詞曲創作人小安、小宇、韋禮安,以及老搭檔姚若龍、陳小霞、王雅君組成,以多元化的曲風包括中板搖滾、三拍圓舞曲、R&B等打造這張全新概念專輯。同時,在李大齊擔當造型師操刀下,范范以超性感的骨感美新形象示人,性感大解放。
以往每張專輯都會有對唱歌曲,今次范范特別請來饒舌 MC HOTDOG 首度合作「1到10=我和你」,這首雷鬼曲風的快歌由黃義達創作曲詞、金曲獎製作人阿弟仔製作,加上 MC HOTDOG 創作的乖乖 RAP,歌詞闡述人與人之間的各種愛,包括親情、友情、愛情的內容,積極又正面。


曲目:
01. 1到10=我和你
02. 想知道現在你好不好
03. 起風
04. 灰色的彩虹
05. 傻的可以
06. 對不起
07. 別再生了
08. 沒把握
09. 愛的盲點
10. 微笑說再見


CD - 試聽下載:

Change Firefox Address Bar Search Engine

If you, like me, has been the victim of Yahoo Spyware aka Yahoo IM then you may notice that in the firefox location bar if you type in a keyword, it takes you to Yahoo preferences page. Previously it used to perform a Google "I'm Lucky" Search and take you to the first page of its search results automatically.

If you want to restore the Google "I'm Lucky" search then perform this simple steps:
1. Type about:config in Firefox location bar and press Enter
2. Type keyword in Filter textbox and you will see only the preference keyword.URL.
3. Double-click on keyword.URL and change the value to:
http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=
or, if you don't wish to go to the first suggested link by Google
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&q=

That's all it takes to restore default keyword search functionality in Google.

Note: You can use this to change to any search engine for keyword search.

Syntax Highlighter 2.1.x for Blogger

Found a useful script to display codes for Blogger - Syntax Highlighter.
http://code.google.com/p/syntaxhighlighter/
or the new site:
http://alexgorbatchev.com/

The setup is very easy.

Just add the following code in your Blogger HTML template, before </body> tag. (Replace the [your-hosting-url] with the URL where your downloaded scripts are hosted.
(mine is binghan.uuuq.com/js/syntaxhighlighter2.1/ in this case, feel free to use :) )







Move on to adding snipped-codes for Blooger. Add the following tag to wrap around your snipped-codes.


// your code goes here.



Done!

Tuesday, October 13, 2009

How a sewing machine works




I have been staring at this animated gif for the last 5 minutes. Fascinating. How a Sewing Machine Works.

South Sumatra Earthquake felt in Sg (30th Sept)

Got this video from Engseng's blog.

The impact of South Sumatra 7.6 earthquake, which I didn't notice at all... =.='




more video here http://video.google.com/videosearch?q=singapore+earthquake#

Monday, October 12, 2009

Patrick Hughes - Sign

Find this interesting... :)



One of the 2009 Cannes Lions winners! More info: http://work.canneslions.com/cyber/ent...

A simple short film about communication. Created by Publicis Mojo and @RadicalMediaDirector: Patrick Hugheshttp://www.patrickhughes.com.au/

Watch in High Quality: http://www.youtube.com/watch?v=uy0HNW...

Join the Facebook Fan Page: http://www.facebook.com/SignsShortFilm

If you like the soundtrack, you can check out @ http://www.internetdj.com/signs-music

the Schweppes online film festival: http://www.schhh.eu/shortfilms/

Category: Film & Animation

Saturday, October 03, 2009

NUS VPN

Disclaimer: I haven't try this yet. :)

Found a note on how to connect to NUS VPN from outside NUS.

  1. Go to Control Panel --> Network and Internet --> Internet Options
  2. Click on Connections tab.
  3. Choose "Add VPN"
  4. Enter the following settings:

  5. Internet Address: 137.132.3.181
    Destination name: NUS VPN /* This is just the name

  6. Click Next

  7. Account: u0XXXXXX /* Your NUSNET ID
    Password: Leave blank /* You will be prompted when you connect
    Domain (optional): NUSSTU

  8. Click create.
  9. Connect to VPN.
  10. That should be it, you should now be prompted to enter you credentials and then get a message welcoming you to NUS VPN!

* For the server address: vpn.nus.edu.sg should work as well, but I've not tried it.


Modified from source: http://technosluts.blogspot.com/2009/03/connecting-to-nus-vpn-via-iphone.html