2008年5月21日 星期三

Customize GNU Emacs On Windows

1. Set " Home Directory ":
  • 「Start Menu」 -> 「Run」 -> Enter " regedit "
  • 「HKEY_CURRENT_USER \ Software \ GNU \ Emacs」(If not exist , your can add those keys by yourself),add a Value 「HOME」,fill in the path You want to use for Home Directory
  • Typing " C-x d ~/ " in Emacs to see if you have changed the Home Directory's location
2. Customize Emacs :
  • Create a file named " .emacs " in your Home Directory
  • Use this file to customize your Emacs with Emacs Lisp,I changed the background color and the font," M-x describe-font " is a useful command :)
  • following is my " .emacs "
(set-background-color "WhiteSmoke")
(set-face-font 'default "-outline-Bitstream Vera Sans Mono-normal-r-normal-normal-15-112-96-96-c-*-iso8859-1")

Reference:
Installing Emacs (GNU Emacs FAQ For MS Windows)
Emacs Lisp
(GNU Emacs Lisp Reference Manual)
Set Fonts (Emacs Wiki)

2008年5月8日 星期四

739 Soundex Indexing

題目網頁:http://online-judge.uva.es/problemset/v7/739.html

我是用 gets() 讀名字進來,結果 WA 了兩三次,後來才發現可能是 EOF 的問題,改成
while(gets(input)!=NULL&&isupper(input[0])!=0)


就順利 AC 了 :)

2008年4月29日 星期二

Uninstall Cygwin

Reference:Cygwin FAQ - http://cygwin.com/faq/faq-nochunks.html

1. Uninstall Cygwin service
  • List all service:cygrunsrv -L
  • Stop the service:cygrunsrv --stop service_name
  • Remove the service:cygrunsrv --remove service_name
2. Back Your Home Directory (Optional)

3. Delete the Cygwin root folder and all subfolders (Which takes lots of time =.=)

4. Delete the Cygwin shortcuts on the Desktop and Start Menu, and anything left by setup.exe in the download directory

2008年2月15日 星期五

ACM待解

討論區上說最簡單的題目:
308,316,895,898,10194,10206,10209,10300,10340,10469,10473,10499,10550,10565,10589,10673,10696,10783,10789,10812,10878,10903,10924,10929,10963,11059,11172,11185,10290,10608,10702

想解的:
http://acm.uva.es/p/v1/140.html
http://acm.uva.es/p/v101/10176.html
http://acm.uva.es/p/v110/11020.html
http://acm.uva.es/p/v100/10034.html
http://acm.uva.es/p/v110/11038.html
http://acm.uva.es/p/v103/10307.html
http://acm.uva.es/p/v110/11032.html
http://acm.uva.es/p/v110/11096.html
http://acm.uva.es/p/v100/10094.html
http://acm.uva.es/p/v100/10032.html
http://acm.uva.es/p/v110/11043.html
http://acm.uva.es/p/v110/11045.html
http://acm.uva.es/p/v110/11047.html
http://acm.uva.es/p/v9/944.html
http://acm.uva.es/p/v110/11007.html

ACM 討論區:
http://acm.uva.es/board/

以前的解題紀錄(現在搬到新網站,不能這樣看了):
http://acm.uva.es/problemset/usersnew.php?user=25917&mode=1

2008年2月9日 星期六

解決工作列小圖示自動載入問題

我遇到的問題在於右下角的工作列,也就是會顯示你目前開啟哪些程式的地方 ( 通常有音量、網路狀態… ),有些常駐程式開機以後就會自動載入以保護作業系統能正常運作(如防火牆、防毒軟體…)或是某些隨硬體附上的控制程式 ( 如音效卡、顯示卡… ),現在這台電腦距離上次重灌大概也有兩年了,偶爾開機以後工作列只出現一部分小圖示,其他則是消失不見,但程式仍有正常運作,從工作管理員裡面也可以看到,只是沒辦法再次開啟那些程式的GUI ( 如防火牆的控制介面或音效卡自己的音量調整 ),必須利用工作管理員將之強制關閉,重新啟動那個程式後,小圖示會再次出現,也能正常使用它的控制介面,大部分消失的都是防火牆 ( Outpost Free ) 和音效卡的控制程式 ( XFire 1723 ),後來防火牆換成 COMODO Firewall Pro 也有一樣的問題出現,本以為要重灌才能解決,看了參考資料後,稍微更改一些設定,目前開機一切正常,問題不再出現。

解決方法如下:
我的電腦(或是點選 " 開始 " ) -> 網路上的芳鄰 ->
在左邊的 " 網路工作 " 中點選 " 隱藏已連接網路 UPnP 裝置的圖示 "
重新開機以後應該就能正常顯示

這個方法對我來說很有用,參考資料中還有列出其他的解決方案,如果這個方法行不通的話,可以參考那篇文章看看。

參考資料:
Systray icons missing
http://winhlp.com/node/16