JP 的个人资料Wireless Earth, wireless...照片日志列表 工具 帮助
1月31日

Bond, James Bond

A new movie of agent 007, Casino Royale, launched in China recently. Although released in US more than two month ago, it is still a new movie to me. This time, a new James Bond shows up, Daniel Craig.

Since the release of the first movie, Dr.No, 1962, 45 years passed. There are totally 21 movies in 007 series, 6 James Bond.

Sean Connery, August 25, 1930, Scotland, UK

1. Dr.No (1962)

2. From Russia with Love (1963)

3. Goldfinger (1964)

4. Thunderball (1965)

5. You Only Live Twice (1967)

7. Diamonds Are Forever (1971)

George Lazenby, September 5, 1939, New South Wales, Australia

6. On Her Majesty's Secret Service (1969)

Roger Moore, October 14, 1927

8. Live and Let Die (1973)

9. The Man with the Golden Gun (1974)

10. The Spy Who Loved Me (1977)

11. Moonraker (1979)

12. For Your Eyes Only (1981)

13. Octopussy (1983)

14. A View to a Kill (1985)

Timothy Dalton, March 21, 1944, Wales, UK

15. The Living Daylights (1987)

16. Licence to Kill (1989)

Pierce Brosnan, May 16, 1953, Ireland

17. GoldenEye (1995)

18. Tomorrow Never Dies (1997)

19. The World Is Not Enough (1999)

20. Die Another Day (2002)

Daniel Craig, March 2, 1968, Cheshire, UK

21. Casino Royale (2006)

Next ...

From the list, I found that James Bond is really a British spy. He was born in UK, Ireland and Australia. Australia is a member of The Commonwealth, while Ireland is a neighbor of UK :-)

1月22日

Add Command Prompt Shortcut to Windows XP Context Menu

  1. Open My Computer or Windows Explorer,
  2. Click the Tools menu,
  3. Select Folder Options,
  4. Click on File Types tab,
  5. Search for "Folder" file type and highlight it,
  6. Click the Advanced button,
  7. Click the New button,
  8. Type a meaningful name, say Command Prompt, in the Action field,
  9. Type CMD.EXE /k cd %1 in the Application Used To Perform Action field below the Action field,
  10. Click OK button all the way to complete the procedures.
  11. To test the result, right click on any folder in local or network drives (not network folders which are not mapped as network drive). The Windows context menu should has new command shortcut named as Command Prompt (the name given in previous step). Click on the Command Prompt, the MS-DOS windows (titled as Command Prompt) opened up with the DOS current directory as the folder being right-clicked!

Check the registry, you will find a new key added:

HKEY_CLASSES_ROOT\Folder\shell\Command_Prompt

The default string value is "Command Prompt", while a sub key named "command" under this key with a default string value of "CMD.EXE /k cd %1"

1月9日

Install Ruby and RoR on Windows XP

These days, so called Dynamic Languages, such as Python and Ruby, are very hot. Everybody is talking about when Java and C++ are going to die. And someone declared that C language has already died. Living as a programmer for 10 years, I do not agree with them. But as these words buzzing around day by day, I decided to take a look at these new hot languages. Certainly I chose Python first, because Ruby was created by a Japanese guy. After that I realized that it is not so easy to get into the details of a new stuff without pressure...

But later I was forced to read some Ruby code, damn it.

Now lets come back to the topic, installing Ruby and Ruby on Rails on Windows XP.

1. Download Ruby one click installer for Windows from

http://rubyforge.org/projects/rubyinstaller/

Current version is 1.8.5-21

2. Install Ruby 1.8.5-21. It is easy, but more than one click.

3. Verify if Ruby package manager, gem, installed.

>gem -v

0.9.0

4. Install Ruby on Rails

The easiest way is remote installation by typing

gem install rails --include-dependencies

But the network sucks because of the earthquake in Taiwan, so I have to download each package by hand.

Download all necessary packages in gem format (rake already installed) from http://rubyforge.org/

activesupport-1.3.0.gem
activerecord-1.14.0.gem
actionpack-1.12.0.gem
actionmailer-1.2.0.gem
actionwebservice-1.1.0.gem
rails-1.1.0.gem

Install them one-by-one:

>gem install activesupport-1.3.0.gem
>gem install activerecord-1.14.0.gem
>gem install actionpack-1.12.0.gem
>gem install actionmailer-1.2.0.gem
>gem install actionwebservice-1.1.0.gem
>gem install rails-1.1.0.gem

5. Verify Rails

>rails -v

Rails 1.1.6

Done.