2/15/2012

To enter special characters in document

在文件中 (e.g., in HTLM page, not limited to PowerPoint document) 插入 ASCII 字元


除了在鍵盤上輸入字元之外,您也可使用符號的字元代碼做為捷徑,或是在所使用的鍵盤沒有某個符號時使用字元代碼。



若要插入以下字元表中所列的 ASCII 字元,請先按住 ALT 鍵再輸入對應的十進位數字。

例如,若要插入溫度度數符號 (°),請先按住 ALT 鍵再從數字鍵台輸入 0176。
To enter Greek character µ, 請先按住 ALT 鍵再從數字鍵台輸入 0181。

附註 您務必從數字鍵盤輸入數字,而不是使用鍵盤。如果您的鍵盤需要啟用 NUM LOCK 鍵才能從數字鍵盤輸入數字,請予以啟用。

11/30/2011

Perl routine to generate Calibre run set for power/ground/net extraction

Three key source files in this archive:

File pgcheck.pl contains the Perl source code, to combine the contents in file pwrtmp.cal and the file setting.txt to generate the file output pgcheck.cal

To use the script,

   pgcheck.pl setting.txt[Enter]

The file "pgcheck.cal" will be generated.

   calibre -drc pgcheck.cal[Enter]

3/04/2011

PowerPoint Macro to set width and X-offset of a Text Box

Sub SetTextBoxWidth()
'
'
    With ActiveWindow.Selection.ShapeRange
        .Fill.Transparency = 0#
        .Width = 668.75
        .Left = 25.5
    End With
End Sub

"Width = 668.75" corresponds to 23.6 cm, and "Left = 25.5" corresponds to 0.9 cm. 
One centimeter is equivalent to approximately 28.333333.

2/08/2011

Special characters in VIM

It is possible to enter any character (which can be displayed in your current 'encoding'), even a character for which no digraph is defined, if you know the character value, as follows (where ^V means "hit Ctrl-V, except if you use Ctrl-V to paste, in which case you should hit Ctrl-Q instead):
  • By decimal value: ^Vnnn (with 000 <= nnn <= 255)
  • By octal value: ^VOnnn or ^Vonnn (with 000 <= nnn <= 377)
  • By hex value: ^VXnn or ^Vxnn (with 00 <= nn <= FF)
  • By hex value for BMP Unicode codepoints: ^Vunnnn (with 0000 <= nnnn <= FFFF)
  • By hex value for any Unicode codepoint: ^VUnnnnnnnn (with 00000000 <= nnnnnnnn <= 7FFFFFFF)
Notes
  1. In all cases, initial zeros may be omitted if the next character typed is not a digit in the given base (except, of course, that the value zero must be entered as at least one zero).
  2. Hex digits A-F, when used, can be typed in upper or lower case, or even in any mixture of them.

11/29/2010

To change the Explorer (i.e., File Manager) settings altered by Malware / Trojan Horse

To manually remove the Virus files, it is crucial to change the Explorer settings of the "hidden files" in Windows to visible (i.e., NoHidden) in order for the search program or eye balls to spot them, and to delete them thereafter.

It becomes more and more popular that users of Windows find the File Manager setting in Windws changed by the Virus program.  The virus related files become hidden.

Use the hyperlink below to change the (File Manager) settings back:

   "Explorer Directory NoHidden WinXP.reg"

Place the ".reg" file on Desktop, and double click it to load the registry to Windows.

11/27/2010

Using vim to view 簡體中文 simplified Chinese characters and traditional Chinese characters

To be able to view the simplified Chinese characters in gvim

   :set encoding=gbk

To switch Chinese character ecoding to Big-5 (for traditional Chinese),

   :set encoding =big5