星期四, 3月 29, 2007

使用command line將xp重新開機/關機

三秒後重新開機:

net use \\遠端ip位址 /user:administrator password
shutdown -m \\\\遠端ip位址 -r -f -t 3


三秒後關機:

net use \\遠端ip位址 /user:administrator password
shutdown -m \\\\遠端ip位址 -s -f -t 3

星期五, 3月 09, 2007

移除Avira Antivir PersonalEditioin Classic的廣告視窗

Avira PersonalEdition Classic是一套不錯的防毒軟體,功能強大且又是免費授權給個人使用者。

但是,免費版在更新病毒碼完成之後,會跳出一個不小的廣告視窗。

所以,我把停止廣告視窗的步驟,在這裡用螢幕擷圖的方式簡單敘述一下。

:以下方法只適合Windows XP Pro 的使用者。

移除廣告視窗步驟:

1. 開始 -> 執行: secpol.msc


2. 點選軟體限制原則(若其子原則不存在,請建立新原則)

3. 在其他原則的目錄下新增路徑規則


4. 設定avnotify.exe 這個檔案的位址



星期四, 3月 01, 2007

想在Windows的command line使用Gawk?

想在Windows的command line下使用Gawk?(如下圖示)



你只需要安裝 gawk-3.1.3-2.exe ,安裝完成後在你的使用者變數path中,加上GnuWin32\bin的路徑(如下圖示)。以後就可以輕鬆使用gawk了。:-)


另外,在windows下使用引號的情形,好像也跟gawk手冊上有所不同?這點,還需要確認。

測試指令:
gawk "$1~/a/ {sum=sum+$2+$3;print $1,$2,$3} END {print \"The summation of field 2 and field3 is \"sum}" shipped

測試檔案(shipped):
Jan 13 25 15 115
Feb 15 32 24 226
Mar 15 24 34 228
Apr 31 52 63 420
May 16 34 29 208
Jun 31 42 75 492
Jul 24 34 67 436
Aug 15 34 47 316
Sep 13 55 37 277
Oct 29 54 68 525
Nov 20 87 82 577
Dec 17 35 61 401

Jan 21 36 64 620
Feb 26 58 80 652
Mar 24 75 70 495
Apr 21 70 74 514

星期五, 2月 16, 2007

Bookmarklets 整理

整理出了一些個人認為還不錯用的bookmarklets。

安裝方式:將連結拖放至你的書籤列上。

以下的bookmarklets皆可在Mozilla Firefox上使用:

Force Wrap (強制換行)

Google Cache
(用google cache 檢視目前的頁面)

Text Color (變更頁面文字的顏色)

Page Color (變更頁面背景的顏色)

Coralize (連接大陸
網站過慢時,可以改用coralize)

Highlight Regexp (用正規表示式,反白頁面文字)

FormTextResizer (用滑鼠改變表單中的文字方框大小)


WBR tag test page(Force Wrap test page):http://www.quirksmode.org/oddsandends/wbr.html

來源引用自:
http://www.blogmarks.net/marks/tag/bookmarklet,web
http://userscripts.org/scripts/show/1847

星期四, 2月 15, 2007

Force Wrap - Bookmarklet

http://userscripts.org/scripts/show/1847

Intro:Use <wbr> tag to wrap the long words and refresh the inner html page after it was finished.

Force Wrap (Drag it to your Bookmarks/Favorites)

 
javascript:(function(){var D=document; F(D.body); function F(n){var u,r,c,x; if(n.nodeType==3){ u=n.data.search(/\S{45}/); if(u%3E=0) { r=n.splitText(u+45); n.parentNode.insertBefore(D.createElement(%22WBR%22),r); } }else if(n.tagName!=%22STYLE%22 && n.tagName!=%22SCRIPT%22){for (c=0;x=n.childNodes[c];++c){F(x);}} } })();document.body.innerHTML = document.body.innerHTML; void 0;


Here is the WBR tag test Page:
http://www.quirksmode.org/oddsandends/wbr.html

星期三, 1月 03, 2007

[轉載]讓小紅點支援更多程式,如MSN、Firefox、Opera、mstsc

見原文


本文引用自: 蘋果豬日記V3 » Blog Archive » IBM小紅點的TP4Table.dat修改…

本文引用自: TrackPoint の横スクロール : WheelVkey

本文必須修改 C:\WINDOWS\system32\tp4table.dat

UltraNave 的 tp4table.dat 位置:C:\Program Files\Synaptics\SynTP

請在  ; Pass 0 rules (These rules run first) 的下方加入以下的內容

; OpenOffice
*,*,soffice.bin,*,*,*,WheelStd,0,9

; MSN Messenger
*,*,msnmsgr.exe,*,*,*,WheelStd,0,9

; Firefox
*,*,firefox.exe,*,*,MozillaWindowClass,WheelVkey,0,9

; 遠端桌面連線
*,*,mstsc.exe,*,*,*,WheelVkey,0,9

; Opera
*,*,opera.exe,*,*,*,WheelStd,0,9

星期日, 12月 31, 2006

目前Firefox的設定

產生日期: Tue Jan 23 2007 00:00:19 GMT+0800

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.1.1) Gecko/20061225 BonEcho/2.0.0.1 (pigfoot)

Build ID: 2006122509

啟用擴充套件: [21]
停用擴充套件: [4]擴充套件: 25

已安裝佈景主題: [2]已安裝外掛: (11)
  • Adobe Acrobat
  • Java(TM) 2 Platform Standard Edition 5.0 Update 9
  • Microsoft® DRM
  • Mozilla Default Plug-in
  • PCMan BBS Plugin for Mozilla
  • PCMan's IE Tab Plug-in for Mozilla/Firefox
  • QuickTime Plug-in 6.5.1
  • RealPlayer Version Plugin
  • RealPlayer(tm) G2 LiveConnect-Enabled Plug-In (32-bit)
  • Shockwave Flash
  • Windows Media Player Plug-in Dynamic Link Library