搜尋此網誌

2012年6月19日 星期二

[FreeBSD] 在shell的命令列下直接打中文


> 在ssh登入後, 可以看中文, 也可以在editor裡打中文,
> 但就是在command line下不能打中文
 
http://www.csie.nctu.edu.tw/~chlo/web/docs/doc/data/freebsd/12.htm
 
[for bash]
在~/.inputrc裡加下如下的設定
# inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.

# Be 8 bit clean.
set meta-flag on
set input-meta on
set output-meta on

# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off


[for tcsh]
在 ~/.login 或 ~/.cshrc 增加設定如下:

#stty cs8 -istrip
#stty pass8
setenv LANG zh_TW.Big5
setenv LC_CTYPE zh_TW.Big5
set dspmbyte="
0000000000000000000000000000000000000000000000000000000000000000
2222222222222222222222222222222222222222222222222222222222222220
2333333333333333333333333333333333333333333333333333333333333333
3333333333333333333333333333333333333333333333333333333333333330"

請將 dspmbyte 在 "" 中的字串接起來。

關於 dspmtype 設定的原因是因為在 tcsh 的 man page 中,
對照 Big5 的使用字碼表 [\x81-\xFE][\x40-\x7E\x80-\xFE] 而設定的。

2012年3月14日 星期三

Fixing the Firefox 7 and 8 missing http://

http://wattsupwiththat.com/2011/11/08/fixing-the-firefox-missing-http/

Instead of http://www.example.com, Firefox 7 will be displaying www.example.com, since September 2011. The purpose is to highlight the current browser location in a much more meaningful way and drop the protocol prefix, which has been confusing especially to users that are new or not familiar with the Internet. Firefox also greys out the "www" or subdomain of a URL, as well as the resource ID and deletes any trailing single slashes in a web address.

When you copy the URL from the address bar and paste it to another window, Firefox is supposed to add the http:// back when copy/paste work is done.. However, it doesn’t always work, hence you may easily make a link in a blog post the http:// which prompted a slew of “dead link” complaints.

This “feature” is annoying, so you may wish to solve it by
  1. Type about:config in Location (address) bar, press Enter
  2. Filter for browser.urlbar.trimURLs (or scroll until you find it)
  3. Right-click or double-left-click on that phrase and toggle it to false

2011年9月6日 星期二

How do I set the PATH system variable for Windows command line?

http://www.java.com/en/download/help/path.xml

For Windows XP,
  1. Start -> Control Panel -> System -> Advanced System Settings
  2. Click on Environment Variables, under System Variables, find PATH, and click on it.
  3. Click Edit, modify PATH by adding the location

For Windows 7,
  1. Right click "My Computer" and choose Property.
  2. Advanced System Settings
  3. Click on Environment Variables, under System Variables, find PATH, and click on it.
  4. Click Edit, modify PATH by adding the location

2011年7月1日 星期五

滑鼠點一下圖示就開啟圖示

問題1: 桌面上的圖示, 其說明都畫了底線
問題2: 用滑鼠點一下圖示就開啟(原本應點兩下開啟)
資料夾選項 - 一般 -
目前被改成「按一下開啟(指向項目以選擇)」
改回按兩下以開啟項目

2010年8月22日 星期日

Configuring LS_COLORS

On Linux, the default behavior of "ls" command will enable the option "--color=tty". However, because directories are shown in blue color, it is difficult to see them clearly.
You may certainly unalias "ls", but you may also change the color scheme by modifying the LS_COLORS environment variable:

The original value of "di" (directory) is 00;34, which makes it obscure. Changing the background to yellow make it more visible.

LS_COLORS='no=00:fi=00:di=43;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'

2010年5月2日 星期日

如何輸入德文字母

1. 選擇「插入」─ 「符號」, 出現符號表。
2. 將「Subset」改為 Latin-1。
3. 此時畫面上出現許多德文字母, 可用滑鼠點選後, 按「插入」即可加入至文件中。插入完畢即可按「關閉」關閉此視窗。
4. 在點選德文字母時, 視窗右下方會出現其「快速鍵組合」。例如 Ö 的快速鍵顯示為 Alt + 0214 即表示往後如需插入此字元, 無須再叫出符號視窗。直接在 Word 底下先按住 Alt,再於 Keypad 上鍵入 0214,放開 Alt 後就可以出現 Ö 了。

2010年4月10日 星期六

Virtual Hosting in IIS

http://www.simpledns.com/kb.aspx?kbid=1149

"Virtual hosting" means hosting multiple web-sites with different domain names on the same IP address.

This procedure is also described in Microsoft KB article Q190008

  • If you are creating a new virtual host:
  1. Type the virtual host domain name in the "Host Header Name" field.
  • If you are modify an existing website:
  1. From the "Internet Information Services (IIS) Manager" window, right click on a web-site, and select "Properties"
  2. In the web-site Properties dialog, click the "Advanced..." button
  3. In the "Advanced Web Site Identification" dialog, select the first "identity", and click the "Edit" button
  4. Enter the virtual host web-site domain name in the "Host Header Name" field