Install flash plugin on Debian 4.0

August 21st, 2008

1. download install_flash_player_9_linux.tar.gz from www.adobe.com

2. extract to a folder, close your browser, then run ./flashplayer-installer

3. when asking installation path of the Mozilla, Netscape, or Opera browser, typein /usr/lib/iceweasel

4. start browser, in the address type in about:plugins

Installing Debian without burning CD

August 19th, 2008

If you have a windows machine and would like to install debian onto your system, and don’t have access to a CD-RW, here is a software you can use to install Debian onto your system

Install Debian Without burning CD

Flex in a week video training: Day 3

August 13th, 2008

http://www.adobe.com/devnet/flex/videotraining/

Note for exercise 3.2: Using RemoteObject to send data to the server
I followed the URL to download lcds but get version 2.6. So there’s some difference with the exercise.

  • 3. lcds 2.6 installed with tomcat
  • 4. the exercise file is ex9_server.zip, I unziped it into \lcds\tomcat\webapps, it created a odt directory
  • 5. start lcds: All Programs > Adobe > LiveCycle Data Services ES 2.6 > Start LiveCycle Data Services Server
  • 6. the url is http://localhost:8400/odt
  • 17. the root folder is C:\lcds\tomcat\webapps\odt
  • 18. the root url is http://localhost:8400/odt/
  • 22. the out folder is C:\lcds\tomcat\webapps\odt\adobeODT-debug
    adobeodt.jpg
  • 28. the url is http://localhost:8400/odt/adobeODT-debug/AdobeODT.html

exercise 3.1: Validating form data

exercise 3.2: Using RemoteObject to send data to the server

exercise 3.3: Implementing drag and drop between components

Note: in step20, the code is: rf.selectedRoom= dropData[0];

exercise 3.4: Using XML with E4X

Flex in a week video training: Day 2

August 11th, 2008

http://www.adobe.com/devnet/flex/videotraining/

Day 2. Here’s the finished exercise.

exercise 2.1: Working with containers

exercise 2.2: Creating custom MXML components

exercise 2.3: Creating custom events and dispatching data

exercise 2.4: Creating an item renderer

Java Programming with Passion: Week1

August 6th, 2008

It’s been 2 years since my last Java project. I decided to spend sometime to renew my Java knowledge by taking Sang Shin’s course.
I’ll report my progress and upload my finished homework here.

You can find the tutorial here 

Flex in a week video training: Day 1

August 6th, 2008

http://www.adobe.com/devnet/flex/videotraining/

Finished Day 1 training. Here’s the result file of exercise 1.1-1.3

exercise 1.1: Creating a project and laying out controls

exercise 1.2: Binding data and handling a user event

exercise 1.3: Populating a control from an HTTPService request

Simple function to parse RGB value

February 18th, 2008

Here’s a simple function to parse RGB string (#00ff00) into array, so it can be used in GD functions.
Hope it can save a little time for you.


list($r, $g, $b)= parse_RGB("#123456");

function parse_RGB($color)
{
$r= hexdec(substr($color, 1, 2));
$g= hexdec(substr($color, 3, 2));
$b= hexdec(substr($color, 5, 2));
return array($r, $g, $b);
}

Firefox profile migration

February 15th, 2008

Just helped my wife to migrate her firefox profiles. She only need to migrate the bookmark and remembered password, other stuff is worthless.

Here’s the steps:

  • Locate where the profile is:  refer to this article http://kb.mozillazine.org/Profile_folder
  • Start firefox profile manager from command line: firefox -pm
  • Create a new profile, and set it as default profile, close firefox
  • Copy the following files from old profile to new one: bookmarks.html cert8.db key3.db signons2.txt
  • Restart firefox and enjoy :-)

Nice barchart with HTML/CSS only

February 15th, 2008

http://concepts.waetech.com/bargraph/

Checkout this page.

Background image on Remote Desktop connectios

February 13th, 2008

I use Remote Desktop to connect some dell servers, and the default background image is slooooow.

So after a few  minutes research, here’s the solution to remove it.

  1. open regedit
  2. goto  [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
  3. empty the value of wallpaper
  4. enjoy!

To make my life eaiser, I created a reg file, so just unzip and merge it would make your life easier too :)
empty_wallpaper.zip

However if you’r concern about the safty, here’s the contents of the file, so you can create your own reg file easily.
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"Wallpaper"=""