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)

Wednesday, October 21, 2009

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

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