Showing posts with label software freeware webware. Show all posts
Showing posts with label software freeware webware. Show all posts

Monday, December 28, 2009

The Question Mark in the Subtitle of VLC

My previous post The Square in Subtitle of VLC has documented how to set the VLC to use unicode for subtitles. However, even so sometimes there are one or two question marks at the end of each subtitle lines.

For example, when opening the subtitle files, the characters can be read without difficulties. The subtitle lines appear to be chopped at the middle and show with one of two question marks instead. After investigation, when opening the subtitle file using PSPad, the file format (as shown at the status bar) is UTF-16 LE. This is the root cause. For VLC, the subtitle file is better to be in UTF-8 format. So, simply convert the UTF-16 LE format file into a UTF-8 format file with the same name. Then, VLC can display the subtitle correctly.



Wednesday, December 23, 2009

Change Google Desktop Data Directory

There are many configuration data stored under the directory [ Documents and Settings ]. Therefore, it is better to backup this directory regularly. However, Google desktop has put its indexing database under this directory. This make it very large (sometimes more than 10 GB) and difficult to backup. Is it possible to move the Google Desktop directory to another place ? After searching the net, here is the solution :

  1. Stop Google Desktop by:
    1. Go to system tray
    2. Right-click the Google Desktop icon
    3. Select [ Exit ]
  2. Move the [ Google Desktop ] directory to some other location
  3. Run [ regedit ] by :
    1. Go to Start
    2. Click [ Run ]
    3. Input [ regedit ]
  4. Locate the registry key:
    HKEY_CURRENT_USER\Software\Google\Google Desktop\data_dir
  5. Change its value to the location in step-2
  6. Start Google Desktop again





Monday, August 3, 2009

The Square in Subtitle of VLC

Sometimes when watching videos using VLC 1.0.1 with subtitle srt file, there are squares instead of readable characters in the substitle. Usually, each square is a Chinese character. When opening the srt file using a word processor with appropriate encoding (Big5, GB2312, GB18030 or Unicode), the Chinese character can be read. However, VLC 1.0.1 simply cannot display the Chinese character correctly. You can only see squares. How to handle this situation ?

First of all, convert the srt file to Unicode.

Then config the VLC 1.0.1 as follows:
  1. Open VLC 1.0.1
  2. In the main menu, click Tools
  3. Click Preferences
  4. On the LHS, click Subtitles & OSD
  5. In Subtitles Language > Default encoding, choose Universal, Chinese (GB18030)
  6. In Display Settings > Font, input the fullpath filename of the font : Font Arial Unicode MS
How to find out the fullpath filename of a font ? All fonts should be inside the directory %SystemRoot%\Fonts. Simply open this directory using details view. The filename (XXXXXXXX.TTF) should be displayed next to the column Font Name

By the way, using this method, the srt file must be in unicode and should be stored using UTF-8 format. Using UTF-16 LE format will make VLC displaying one or two question marks at the end of subtitle lines.


Thursday, April 9, 2009

My First Day Experience with Google Chrome 1.0.154.53

After installing Google Chrome 1.0.154.53, the first web page loaded is "Google Chrome: The application failed to initialize properly (0xc0000005)"

To solve this error, use Firefox to google search. This URL in techblissonline.com really helps. It told me to add a --no-sandbox option to open the application.

This is my first day experience with Google Chrome. The moral of this story is : there must be at least two browsers in your computer. In case one browser has error, you can use another one to search the internet for solution !


Saturday, March 28, 2009

Using ffmpeg to capture screen of flv file

ffmpeg is a powerful utility for audio and video processing. However, you have to compile the source code yourself. This web page tells how to compile the source code of ffmpeg to become executables.

One very simple use of ffmpeg is to capture screen from a flv file. Actually, this is to save a video frame to file.

For example, this command :
ffmpeg -i MyFile.flv -ss 00:00:31 -vframes 1 -y MyImage.jpg
will capture a frame from the file MyFile.flv at the time 00:00:31 to the file MyImage.jpg
If you want to capture 101 frames, here is the command:
ffmpeg -i MyFile.flv -ss 00:00:31 -vframes 101 -y MyImage-%03d.jpg
The will capture the 101 frames to the files MyImage-001.jpg to Myimage-101.jpg.
However, under Windows, there is some special processing for the percent sign. Therefore, the command has to be adjusted as follow:
ffmpeg -i MyFile.flv -ss 00:00:31 -vframes 101 -y MyImage-%%03d.jpg
In short, double percent signs have to be used under Windows.


Thursday, March 26, 2009

Change Color of the Tabs in Firefox 3.0.6

In Firefox 3.0.6 the background colors of the selected active tab and the un-selected inactive tabs are very similar. The color of the selected tabs cannot stand-out to catch your eyes. Here is a way to change the colors.
Firstly, go to the chrome directory of your profile in Firefox 3.0.6. Create or edit the file userChrome.css and add the following lines :
tab { -moz-appearance: none !important; } tab[selected="true"] { background-color: #FF6A6A !important; color: blue !important; } tab:not([selected="true"]) { background-color: #CCFFFF !important; color: black !important; }
Then, re-start the firefox.

This will make the active tab have red background with blue text and the inactive tabs have light cyan background with black text.



Saturday, November 29, 2008

My Favorites

Here is a list of my favorites:

Favorite Ancient Civilization : Maya
Favorite Animals : Cobra , Firefox & Panda
Favorite Astronomy:Eclipse & Sun
Favorite Drinks:Java
Favorite Flights:Apache & Tomcat
Favorite Fruits:Apple, Blackberry & Orange
Favorite Girl:Ruby
Favorite Heroine:Oracle
Favorite Legends / Mythology:
(Greek)Kerberos, Oracle of Delphi, Python & Trojan Horse
(Indian)Thunderbird
(misc)daemon
Favorite Painter:Michelangelo
Favorite Professionals:Ada & Pascal
Favorite Snacks:cookies & hot dog


Thursday, November 27, 2008

Make Hong Kong Post as a Trusted CA in Firefox 3.0.4

Every time when I login the Renewal of Libarary Materials of Hong Kong Public Libraries and the eTax of Inland Revenue Department of Hong Kong to perform any taxation related activities, Firefox 3.0.4 will pop up to ask me to add the site as exception. So far I was asked 3 times because in each time I was re-directed to a different server , namely etax11, etax21 and etax22. This is quite troublesome.

So, the best way is to add the Hong Kong Post as a trusted CA in Firfox.

To do so, the first step is to get the certificate of Hong Kong Post.

Then, follows these steps

  1. Go to Firefox 3.0.4
  2. In the main menu, click Tools
  3. Click Options
  4. Click Advanced
  5. Click Encryption tab
  6. Click View Certificates button
  7. Click Authorities tab
  8. Click Import... button
  9. In the pop up window, locate the file Hongkong Post Root CA 1.cer
  10. Click Open button
  11. In the Downloading Certificate window, click View button to examine the certificate
  12. Make sure the Issued by is Hongkong Post Root CA 1
  13. Make sure the SHA1 Fingerprint is D6:DA:A8:20:8D:09:D2:15:4D:24:B5:2F:CB:34:6E:B2:58:B2:8A:58
  14. Click Close button to close the view
  15. Tick the check box Trust this CA to identify web sites
  16. Click OK button
  17. When back to the Authorities tab, the Hongkong Post entry should be appear in the Certificate Name column.
  18. Click many OK buttons to end and save the setting

Now the Hongkong Post is one of the trusted CA in your Firefox. When going to the sites having certificates issued by Hongkong Post, it will be trust and will not prompt for add exception in Firefox.

For example, when you go to Hong Kong Public Libraries for books renewal, the site will be trusted. At the bottom right corner of the status bar, there is a site name libcat.hkpl.gov.hk with a lock button. Double-click the lock button and then the View Certificate button will see the certificate.

BTW, as at 2008-11-28, the eTax of Inland Revenue Departement of Hong Kong still cannot support the browser Firefox 3. However, as at 2009-02-05, Firefox 3 can be used to login the eTax.


Wednesday, November 26, 2008

Search Operators in Google

Although we use Google everyday, do you really know about some advanced technique.

This URL www.googleguide.com - Special Characters: Summary show some useful search operators (e.g. + - ~ OR | .. *) in Google search.

The URL also contains some other userful information of Google search.


Saturday, November 22, 2008

Set Gmail as the default mail sending application in Firefox 3

There are many web sites having the standard emailto: protocol for you to directly email to the web site owner. For example, you can click this hyperlink to email to me. Traditionally, once you click this emailto link, it will call a pre-installed email software in your PC to open a email compose window for you to write and send email. But nowadays, with Firefox 3 we can use webware instead of software to handle this email matter. Firefox can use Gmail and Yahoo email to handle this mailto: protocol.

Here are the steps :

1. Make sure the mailto handler is turn on

  1. Open Firefox 3
  2. In the address bar, input about:config (If there is a friendly warning, simply accept it.)
  3. In the filter box, input network.protocol-handler.external.mailto
  4. Make sure the value is true. If it is false, double click it to toggle it to true. After setting it to true, the settings will be saved in the file %ProgramFiles%\Mozilla Firefox\defaults\pref\filrefox.js

2. Set Gmail as the default email application

  1. In the Firefox main menu, click Tools
  2. Click Options
  3. Click the Applications tab
  4. In the Search box, input mailto
  5. In the Action drop down box, choose Use Gmail
  6. Tick the check-box Remember my choice for mailto links

Now, Firefox will call gmail to handle the mailto: link.

As a reminder, sometimes, the mailto: link may be inside a frame of the web page. In this case, Firefox will switch to Gmail inside that frame. If that frame is too small, you have to :

  1. Right click the mouse button
  2. Click This frame
  3. Click Open Frame in New Tab
Then, the frame will be opened in a new tab for you to use Gmail to write and send email.


Friday, November 21, 2008

Gmail Themes

Today when I open gmail, there is a highlight conerning gmail theme. After reading my mails, I go to [ Settings > Themes ] to have a look. When I try it out, it is great.

After trying some themes, finally I choose the Phantasea. Its background is green and the theme is cool !

Together with color labels, this give a new look to my gmail.

For details of themes, please visit the official Gmail blog.


Wednesday, November 19, 2008

Convert Seconds to Hour-Minute-Second in Excel

Sometimes when doing time related calculation, the final values are in second.

For example, downloading a 369,300 byte file with a speed of 100 byte/second, the time required is 3693 seconds. Then, what is the hour-minute-second of 3693 seconds ?

Using Excel, there is a formula called time(). Put this formula into a cell :

=time(0,0,3693)

Then, format the cell with :

hh:mm:ss

The cell will display 01:01:33 (i.e. 1 hour 1 minute and 33 seconds).


Saturday, November 15, 2008

Duplicate Tab in Firefox

I have used Firefox for a long time. Just wonder why there is no such thing as duplicating a tab. This action is similar to Ctrl-N to duplicate a window.

With Firefox 3 (actually I am using 3.0.4 today), when you right-click on a tab, there is still no such feature. However, there is really a duplicate tab functionality in Firefox 3. All you have to do is to :

  1. Hold the Ctrl key
  2. Drag the tab left or right. While moving around, an arrow will appear when crossing the border of the tabs.
  3. Then, when you release the mouse button, the tab will be duplicated and inserted in that border.
  4. Now, the last thing to do is to un-hold the Ctrl key.

If you make the above steps in another sequence :

  1. Hold Ctrl key
  2. Drag around
  3. Un-hold Ctrl key
  4. release mouse button
, this will move the tab in Firfox 3.0.4.
(Noted that in Firefox 3.0.6, you can simply drag-and-drop the tab in order to move it.)

Now, my wonder is : why don't just make the whole thing more simple ? Maybe just right-click on the tab to pop-up a menu to choose [ duplicate tab ]. Then, simply duplicate the tab at the rightmost. This is far most user friendly than the existing Ctrl-key-drag method.


Friday, November 14, 2008

Some Firefox Plugins

Today, I have to install the Firefox 3.0.3. Therefore, I have also to re-install those useful plugins. Here are them:

1. DowmThemAll 1.0.3

This plugin will add a menu in the Tool menu.

For first use, please remember to input the default file saving location.

Then, for any web page, simply choose [ dTa One Click! ] menu item from the [ Tools > DownThemAll Tools ] menu, all the images, etc will be saved to the default file saving location.

2. Linkification 1.3.5

Sometimes, some web page will display this string, e.g. http://www.orbis.org , as normal text, not a hyper link. You have to open a new tab, and then cut and paste the string into the address box.

This plug-in is very helpful. You simply highlight the text, and then right-click. A pop-up menu will be displayed and you can choose [ open selected link ] to open it.

I like to config this plug-in to open in a new tab.

3. PlainOldFavorites 1.0.1

This plug-in allows you directly use the IE Favorites inside Firefox. No need to do any import or export activities. After installing this plug-in, you will see the [ Favorites ] menu item just next to the [ Bookmarks ] item in the menu bar.

4. Dictionary Tooltip 1.3

This plug-in will search some predefined dictionary after you highlight a word. So far, all are English-English dictionary. You cannot config to use your prefer English-Chinese dictionary.

After installation, simply double-click a word will see a small icon (look like a book). Put the mouse over the icon will pop-up a dictionary content.

5. FastDic 0.2.7

This plug-in is helpful for using your own prefer dictionary. For my case, I have try the Yahoo and sina dictionary. They can give the meanings in Chinese.

This version 0.2.7 cannot be installed in Firefox 3.0.4 To make it happen, you have to follow this procedure (by outyarder on July 21, 2008 documented in the review comment section)

  1. Go on the 'See All Versions' page
  2. Right click on the latest version, then 'Save Link As...'
  3. on your computer, open the saved .xpi file with WinRar or something similar
  4. extract the 'install.rdf' file from the archive and open it in Notepad
  5. change em:maxVersion 2.bla bla to 3.*
  6. replace the 'install.rdf' file in the archive with this modified version
  7. drag the modified .xpi on Firefox and install it

After installation, config the option to use Alt - Click.

In the URL box, input the URL for calling the dictionary. For yahoo dictionary, input the following :

http://hk.dictionary.yahoo.com/search.html?s=$
For sina dictionary, input the following :
http://dictionary.sina.com.hk/p/word/$

At last, click OK to save.

Then, in any web page, you can press the Alt key and then click on any English word. Then, a new window will be pop-up by the sina dictionary with the meaning.

The shortcoming is that you cannot work on words inside a hyperlink string because by default Alt-Click a hyperlink will auto-download the URL. (BTW, Ctrl-Click will auto open hyperlink in new tab and Shift-Click will open in new window.)

6. OpenBook 2.0.1.1.

This add-on can allow you to resize the box when you bookmark this page. Also, it can show the bookmark tree immediately when you bookmark this page.


Duplicate Open Current Folder in a New Window

Sometimes after I opened a folder in Win7, I would like to duplicate open the same folder again in another explorer window. Then, I can ope...