<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[推理文by阿誠 :: 痞客邦 PIXNET ::]]></title>
    <link>http://abort.pixnet.net/blog</link>
    <description><![CDATA[ ]]></description>
    <pubDate>Sat, 06 May 2017 11:16:42 +0800</pubDate>
    <lastBuildDate>Sat, 06 May 2017 11:16:42 +0800</lastBuildDate>
    <managingEditor>abort@not-valid.com (abort)</managingEditor>
    <copyright>Copyright 2003-2025 abort,Pixnet Digital Media Coporation. All rights reserved.</copyright>
    <generator>PIXNET Media Digital Coporation</generator>
    <language>zh</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>3600</ttl>
    <item>
      <title><![CDATA[特殊符號的英文讀法]]></title>
      <link>http://abort.pixnet.net/blog/post/44977645</link>
      <guid>http://abort.pixnet.net/blog/post/44977645</guid>
      <description><![CDATA[特殊符號的英文讀法

(=)&nbsp; equal sign

(.)&nbsp; decimal points

(;)&nbsp; semicolon

(++) increment operators

(--) decrement operators

( )&nbsp; Parenthesis

{ }&nbsp; Braces

[ ]&nbsp; Brackets

,&nbsp;&nbsp;&nbsp; Comma

;&nbsp;&nbsp;&nbsp; Semicolon

'&nbsp;&nbsp;&nbsp; Quote

@&nbsp;&nbsp;&nbsp; At

+&nbsp;&nbsp;&nbsp; plus&nbsp;&nbsp;&nbsp; 加號；正號

-&nbsp;&nbsp;&nbsp; minus&nbsp;&nbsp;&nbsp; 減號；負號

±&nbsp;&nbsp;&nbsp; plus or minus&nbsp;&nbsp;&nbsp; 正負號

×&nbsp;&nbsp;&nbsp; is multiplied by&nbsp;&nbsp;&nbsp; 乘號

÷&nbsp;&nbsp;&nbsp; is divided by&nbsp;&nbsp;&nbsp; 除號

＝&nbsp;&nbsp; is equal to&nbsp;&nbsp;&nbsp; 等號

≠&nbsp;&nbsp;&nbsp; is not equal to&nbsp;&nbsp;&nbsp; 不等號

≡&nbsp;&nbsp;&nbsp; is equivalent to&nbsp;&nbsp;&nbsp; 全等於號

?&nbsp;&nbsp;&nbsp; is equal to or approximately equal to&nbsp;&nbsp;&nbsp; 等於或約等於號

?&nbsp;&nbsp;&nbsp; is approximately equal to&nbsp;&nbsp;&nbsp; 約等於號

＜&nbsp;&nbsp; is less than&nbsp;&nbsp;&nbsp; 小於號

＞&nbsp;&nbsp; is more than&nbsp;&nbsp;&nbsp; 大於號

?&nbsp;&nbsp;&nbsp; is not less than&nbsp;&nbsp;&nbsp; 不小於號

?&nbsp;&nbsp;&nbsp; is not more than&nbsp;&nbsp;&nbsp; 不大於號

?&nbsp;&nbsp;&nbsp; is less than or equal to&nbsp;&nbsp;&nbsp; 小於或等於號

?&nbsp;&nbsp;&nbsp; is more than or equal to&nbsp;&nbsp;&nbsp; 大於或等於號

%&nbsp;&nbsp;&nbsp; per cent&nbsp;&nbsp;&nbsp; 百分之…

?&nbsp;&nbsp;&nbsp; per mill&nbsp;&nbsp;&nbsp; 千分之…

∞&nbsp;&nbsp;&nbsp; infinity&nbsp;&nbsp;&nbsp; 無限大號

?&nbsp;&nbsp;&nbsp; varies as&nbsp;&nbsp;&nbsp; 與…成比例

√&nbsp;&nbsp;&nbsp; (square) root&nbsp;&nbsp;&nbsp; 平方根

∵&nbsp;&nbsp;&nbsp; since; because&nbsp;&nbsp;&nbsp; 因?

∴&nbsp;&nbsp;&nbsp; hence&nbsp;&nbsp;&nbsp; 所以

?&nbsp;&nbsp;&nbsp; equals, as (proportion)&nbsp;&nbsp;&nbsp; 等於，成比例

∠&nbsp;&nbsp;&nbsp; angle&nbsp;&nbsp;&nbsp; 角

?&nbsp;&nbsp;&nbsp; semicircle&nbsp;&nbsp;&nbsp; 半圓

⊙&nbsp;&nbsp;&nbsp; circle&nbsp;&nbsp;&nbsp; 圓

○&nbsp;&nbsp;&nbsp; circumference&nbsp;&nbsp;&nbsp; 圓周

π&nbsp;&nbsp;&nbsp; pi 圓周率

△&nbsp;&nbsp;&nbsp; triangle&nbsp;&nbsp;&nbsp; 三角形

⊥&nbsp;&nbsp;&nbsp; perpendicular to&nbsp;&nbsp;&nbsp; 垂直於

∪&nbsp;&nbsp;&nbsp; union of&nbsp;&nbsp;&nbsp; 聯集

∩&nbsp;&nbsp;&nbsp; intersection of 交集

∫&nbsp;&nbsp;&nbsp; the integral of …的積分

?&nbsp;&nbsp;&nbsp; (sigma) summation of&nbsp;&nbsp;&nbsp; 總和

°&nbsp;&nbsp;&nbsp; degree&nbsp;&nbsp;&nbsp; 度

′&nbsp;&nbsp;&nbsp; minute&nbsp;&nbsp;&nbsp; 分

〃&nbsp;&nbsp;&nbsp; second&nbsp;&nbsp;&nbsp; 秒

℃&nbsp;&nbsp;&nbsp; Celsius system&nbsp;&nbsp;&nbsp; 攝氏度

{&nbsp;&nbsp;&nbsp; open brace, open curly&nbsp;&nbsp;&nbsp; 左大括弧

}&nbsp;&nbsp;&nbsp; close brace, close curly&nbsp;&nbsp;&nbsp; 右大括弧

(&nbsp;&nbsp;&nbsp; open parenthesis, open paren&nbsp;&nbsp;&nbsp; 左小括號

)&nbsp;&nbsp;&nbsp; close parenthesis, close paren&nbsp;&nbsp;&nbsp; 右小括號

()&nbsp;&nbsp; brakets/ parentheses&nbsp;&nbsp;&nbsp; 括弧

[&nbsp;&nbsp;&nbsp; open bracket 左中括號

]&nbsp;&nbsp;&nbsp; close bracket 右中括號

[]&nbsp;&nbsp; square brackets&nbsp;&nbsp;&nbsp; 中括號

.&nbsp;&nbsp;&nbsp; period, dot&nbsp;&nbsp;&nbsp; 句號，點

|&nbsp;&nbsp;&nbsp;&nbsp; vertical bar, vertical virgule&nbsp;&nbsp;&nbsp; 豎線

&amp;&nbsp;&nbsp;&nbsp; ampersand, and, reference, ref&nbsp;&nbsp;&nbsp; 和，引用

*&nbsp;&nbsp;&nbsp; asterisk, multiply, star, pointer&nbsp;&nbsp;&nbsp; 星號，乘號，星，指標

/&nbsp;&nbsp;&nbsp; slash, divide, oblique 斜線，斜杠，除號

//&nbsp;&nbsp;&nbsp; slash-slash, comment 雙斜線，注釋符

#&nbsp;&nbsp;&nbsp; pound&nbsp;&nbsp;&nbsp; 井號

\&nbsp;&nbsp;&nbsp; backslash, sometimes escape&nbsp;&nbsp;&nbsp; 反斜線轉義符，有時表示轉義符或續行符

~&nbsp;&nbsp;&nbsp; tilde&nbsp;&nbsp;&nbsp; 波浪符

.&nbsp;&nbsp;&nbsp; full stop&nbsp;&nbsp;&nbsp; 句號

,&nbsp;&nbsp;&nbsp; comma&nbsp;&nbsp;&nbsp; 逗號

:&nbsp;&nbsp;&nbsp; colon&nbsp;&nbsp;&nbsp; 冒號

;&nbsp;&nbsp;&nbsp; semicolon&nbsp;&nbsp;&nbsp; 分號

?&nbsp;&nbsp;&nbsp; question mark&nbsp;&nbsp;&nbsp; 問號

!&nbsp;&nbsp;&nbsp; exclamation mark (英式英語) exclamation point (美式英語)

'&nbsp;&nbsp;&nbsp; apostrophe&nbsp;&nbsp;&nbsp; 撇號

-&nbsp;&nbsp;&nbsp; hyphen&nbsp;&nbsp;&nbsp; 連字號

--&nbsp;&nbsp; dash 破折號

...&nbsp; dots/ ellipsis&nbsp;&nbsp;&nbsp; 省略號

"&nbsp;&nbsp;&nbsp; single quotation marks 單引號

""&nbsp;&nbsp; double quotation marks 雙引號

∥&nbsp;&nbsp;&nbsp; parallel 雙線號

&amp;&nbsp;&nbsp;&nbsp; ampersand = and

～&nbsp;&nbsp; swung dash 相似

§&nbsp;&nbsp;&nbsp; section; division 分節號

→&nbsp;&nbsp;&nbsp; arrow 箭號；
]]></description>
      <content:encoded><![CDATA[<p>特殊符號的英文讀法</p>

<pre>(=)&nbsp; equal sign

(.)&nbsp; decimal points

(;)&nbsp; semicolon

(++) increment operators

(--) decrement operators

( )&nbsp; Parenthesis

{ }&nbsp; Braces

[ ]&nbsp; Brackets

,&nbsp;&nbsp;&nbsp; Comma

;&nbsp;&nbsp;&nbsp; Semicolon

'&nbsp;&nbsp;&nbsp; Quote

@&nbsp;&nbsp;&nbsp; At

+&nbsp;&nbsp;&nbsp; plus&nbsp;&nbsp;&nbsp; 加號；正號

-&nbsp;&nbsp;&nbsp; minus&nbsp;&nbsp;&nbsp; 減號；負號

±&nbsp;&nbsp;&nbsp; plus or minus&nbsp;&nbsp;&nbsp; 正負號

×&nbsp;&nbsp;&nbsp; is multiplied by&nbsp;&nbsp;&nbsp; 乘號

÷&nbsp;&nbsp;&nbsp; is divided by&nbsp;&nbsp;&nbsp; 除號

＝&nbsp;&nbsp; is equal to&nbsp;&nbsp;&nbsp; 等號

≠&nbsp;&nbsp;&nbsp; is not equal to&nbsp;&nbsp;&nbsp; 不等號

≡&nbsp;&nbsp;&nbsp; is equivalent to&nbsp;&nbsp;&nbsp; 全等於號

?&nbsp;&nbsp;&nbsp; is equal to or approximately equal to&nbsp;&nbsp;&nbsp; 等於或約等於號

?&nbsp;&nbsp;&nbsp; is approximately equal to&nbsp;&nbsp;&nbsp; 約等於號

＜&nbsp;&nbsp; is less than&nbsp;&nbsp;&nbsp; 小於號

＞&nbsp;&nbsp; is more than&nbsp;&nbsp;&nbsp; 大於號

?&nbsp;&nbsp;&nbsp; is not less than&nbsp;&nbsp;&nbsp; 不小於號

?&nbsp;&nbsp;&nbsp; is not more than&nbsp;&nbsp;&nbsp; 不大於號

?&nbsp;&nbsp;&nbsp; is less than or equal to&nbsp;&nbsp;&nbsp; 小於或等於號

?&nbsp;&nbsp;&nbsp; is more than or equal to&nbsp;&nbsp;&nbsp; 大於或等於號

%&nbsp;&nbsp;&nbsp; per cent&nbsp;&nbsp;&nbsp; 百分之…

?&nbsp;&nbsp;&nbsp; per mill&nbsp;&nbsp;&nbsp; 千分之…

∞&nbsp;&nbsp;&nbsp; infinity&nbsp;&nbsp;&nbsp; 無限大號

?&nbsp;&nbsp;&nbsp; varies as&nbsp;&nbsp;&nbsp; 與…成比例

√&nbsp;&nbsp;&nbsp; (square) root&nbsp;&nbsp;&nbsp; 平方根

∵&nbsp;&nbsp;&nbsp; since; because&nbsp;&nbsp;&nbsp; 因?

∴&nbsp;&nbsp;&nbsp; hence&nbsp;&nbsp;&nbsp; 所以

?&nbsp;&nbsp;&nbsp; equals, as (proportion)&nbsp;&nbsp;&nbsp; 等於，成比例

∠&nbsp;&nbsp;&nbsp; angle&nbsp;&nbsp;&nbsp; 角

?&nbsp;&nbsp;&nbsp; semicircle&nbsp;&nbsp;&nbsp; 半圓

⊙&nbsp;&nbsp;&nbsp; circle&nbsp;&nbsp;&nbsp; 圓

○&nbsp;&nbsp;&nbsp; circumference&nbsp;&nbsp;&nbsp; 圓周

π&nbsp;&nbsp;&nbsp; pi 圓周率

△&nbsp;&nbsp;&nbsp; triangle&nbsp;&nbsp;&nbsp; 三角形

⊥&nbsp;&nbsp;&nbsp; perpendicular to&nbsp;&nbsp;&nbsp; 垂直於

∪&nbsp;&nbsp;&nbsp; union of&nbsp;&nbsp;&nbsp; 聯集

∩&nbsp;&nbsp;&nbsp; intersection of 交集

∫&nbsp;&nbsp;&nbsp; the integral of …的積分

?&nbsp;&nbsp;&nbsp; (sigma) summation of&nbsp;&nbsp;&nbsp; 總和

°&nbsp;&nbsp;&nbsp; degree&nbsp;&nbsp;&nbsp; 度

′&nbsp;&nbsp;&nbsp; minute&nbsp;&nbsp;&nbsp; 分

〃&nbsp;&nbsp;&nbsp; second&nbsp;&nbsp;&nbsp; 秒

℃&nbsp;&nbsp;&nbsp; Celsius system&nbsp;&nbsp;&nbsp; 攝氏度

{&nbsp;&nbsp;&nbsp; open brace, open curly&nbsp;&nbsp;&nbsp; 左大括弧

}&nbsp;&nbsp;&nbsp; close brace, close curly&nbsp;&nbsp;&nbsp; 右大括弧

(&nbsp;&nbsp;&nbsp; open parenthesis, open paren&nbsp;&nbsp;&nbsp; 左小括號

)&nbsp;&nbsp;&nbsp; close parenthesis, close paren&nbsp;&nbsp;&nbsp; 右小括號

()&nbsp;&nbsp; brakets/ parentheses&nbsp;&nbsp;&nbsp; 括弧

[&nbsp;&nbsp;&nbsp; open bracket 左中括號

]&nbsp;&nbsp;&nbsp; close bracket 右中括號

[]&nbsp;&nbsp; square brackets&nbsp;&nbsp;&nbsp; 中括號

.&nbsp;&nbsp;&nbsp; period, dot&nbsp;&nbsp;&nbsp; 句號，點

|&nbsp;&nbsp;&nbsp;&nbsp; vertical bar, vertical virgule&nbsp;&nbsp;&nbsp; 豎線

&amp;&nbsp;&nbsp;&nbsp; ampersand, and, reference, ref&nbsp;&nbsp;&nbsp; 和，引用

*&nbsp;&nbsp;&nbsp; asterisk, multiply, star, pointer&nbsp;&nbsp;&nbsp; 星號，乘號，星，指標

/&nbsp;&nbsp;&nbsp; slash, divide, oblique 斜線，斜杠，除號

//&nbsp;&nbsp;&nbsp; slash-slash, comment 雙斜線，注釋符

#&nbsp;&nbsp;&nbsp; pound&nbsp;&nbsp;&nbsp; 井號

\&nbsp;&nbsp;&nbsp; backslash, sometimes escape&nbsp;&nbsp;&nbsp; 反斜線轉義符，有時表示轉義符或續行符

~&nbsp;&nbsp;&nbsp; tilde&nbsp;&nbsp;&nbsp; 波浪符

.&nbsp;&nbsp;&nbsp; full stop&nbsp;&nbsp;&nbsp; 句號

,&nbsp;&nbsp;&nbsp; comma&nbsp;&nbsp;&nbsp; 逗號

:&nbsp;&nbsp;&nbsp; colon&nbsp;&nbsp;&nbsp; 冒號

;&nbsp;&nbsp;&nbsp; semicolon&nbsp;&nbsp;&nbsp; 分號

?&nbsp;&nbsp;&nbsp; question mark&nbsp;&nbsp;&nbsp; 問號

!&nbsp;&nbsp;&nbsp; exclamation mark (英式英語) exclamation point (美式英語)

'&nbsp;&nbsp;&nbsp; apostrophe&nbsp;&nbsp;&nbsp; 撇號

-&nbsp;&nbsp;&nbsp; hyphen&nbsp;&nbsp;&nbsp; 連字號

--&nbsp;&nbsp; dash 破折號

...&nbsp; dots/ ellipsis&nbsp;&nbsp;&nbsp; 省略號

"&nbsp;&nbsp;&nbsp; single quotation marks 單引號

""&nbsp;&nbsp; double quotation marks 雙引號

∥&nbsp;&nbsp;&nbsp; parallel 雙線號

&amp;&nbsp;&nbsp;&nbsp; ampersand = and

～&nbsp;&nbsp; swung dash 相似

§&nbsp;&nbsp;&nbsp; section; division 分節號

→&nbsp;&nbsp;&nbsp; arrow 箭號；</pre>
  <div class="more"><a href="http://abort.pixnet.net/blog/post/44977645">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F44977645"></div>]]></content:encoded>
      <pubDate>Sat, 06 May 2017 11:16:42 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/44977645#comments</comments>
    </item>
    <item>
      <title><![CDATA[Adobe reader 書籤 跳回去]]></title>
      <link>http://abort.pixnet.net/blog/post/44420089</link>
      <guid>http://abort.pixnet.net/blog/post/44420089</guid>
      <description><![CDATA[Adobe reader 書籤 跳回去

&nbsp;

Alt+Left(Right) Arrow
]]></description>
      <content:encoded><![CDATA[<p>Adobe reader 書籤 跳回去</p>

<p>&nbsp;</p>

<p>Alt+Left(Right) Arrow</p>
  <div class="more"><a href="http://abort.pixnet.net/blog/post/44420089">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F44420089"></div>]]></content:encoded>
      <pubDate>Mon, 21 Nov 2016 11:10:27 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/44420089#comments</comments>
    </item>
    <item>
      <title><![CDATA[OpenWRT Network Configuration 簡單指令]]></title>
      <link>http://abort.pixnet.net/blog/post/43724887</link>
      <guid>http://abort.pixnet.net/blog/post/43724887</guid>
      <description><![CDATA[OpenWRT Network Configuration 簡單指令

顯示IP狀態
ip addr

顯示交換器狀態
swconfig dev switch0 show

顯示橋接器狀態
brctl show

顯示無線天線狀態
iwlist wlan0

更改DHCP預設閘道
list 'dhcp_option' '3,192.168.1.2'

更改DHCP客戶端預設域名伺服器
list dhcp_option '6,8.8.8.8,8.8.4.4'
&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp; &nbsp;
參考文件

https://wiki.openwrt.org/doc/uci/firewall
https://wiki.openwrt.org/zh-tw/doc/uci
http://www.macfreek.nl/memory/OpenWRT_Network_Configuration
https://wiki.openwrt.org/doc/techref/swconfig
https://wiki.openwrt.org/doc/uci/dhcp

&nbsp;
]]></description>
      <content:encoded><![CDATA[<p>OpenWRT Network Configuration 簡單指令</p>

<p>顯示IP狀態<br>
ip addr</p>

<p>顯示交換器狀態<br>
swconfig dev switch0 show</p>

<p>顯示橋接器狀態<br>
brctl show</p>

<p>顯示無線天線狀態<br>
iwlist wlan0</p>

<p>更改DHCP預設閘道<br>
list 'dhcp_option' '3,192.168.1.2'</p>

<p>更改DHCP客戶端預設域名伺服器<br>
list dhcp_option '6,8.8.8.8,8.8.4.4'<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp; &nbsp;<br>
參考文件</p>

<p>https://wiki.openwrt.org/doc/uci/firewall<br>
https://wiki.openwrt.org/zh-tw/doc/uci<br>
http://www.macfreek.nl/memory/OpenWRT_Network_Configuration<br>
https://wiki.openwrt.org/doc/techref/swconfig<br>
https://wiki.openwrt.org/doc/uci/dhcp</p>

<p>&nbsp;</p>
  <div class="more"><a href="http://abort.pixnet.net/blog/post/43724887">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F43724887"></div>]]></content:encoded>
      <pubDate>Mon, 02 May 2016 19:36:00 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/43724887#comments</comments>
    </item>
    <item>
      <title><![CDATA[Youtube訂閱RSS的XML]]></title>
      <link>http://abort.pixnet.net/blog/post/43669519</link>
      <guid>http://abort.pixnet.net/blog/post/43669519</guid>
      <description><![CDATA[使用YouTube v3.0 API

注：需要帶orderby才會有排序

範例

https://www.youtube.com/feeds/videos.xml?user=XXXXXX&amp;orderby=published
https://www.youtube.com/feeds/videos.xml?channel_id=XXXXXX&amp;orderby=published

XXXXXX為user或是channel_id
]]></description>
      <content:encoded><![CDATA[<p>使用YouTube v3.0 API</p>

<p>注：需要帶orderby才會有排序</p>

<p>範例</p>

<p>https://www.youtube.com/feeds/videos.xml?user=XXXXXX&amp;orderby=published<br>
https://www.youtube.com/feeds/videos.xml?channel_id=XXXXXX&amp;orderby=published</p>

<p>XXXXXX為user或是channel_id</p>
  <div class="more"><a href="http://abort.pixnet.net/blog/post/43669519">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F43669519"></div>]]></content:encoded>
      <pubDate>Sat, 16 Apr 2016 17:32:56 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/43669519#comments</comments>
    </item>
    <item>
      <title><![CDATA[MySQL效能調教 (找瓶頸的方法)]]></title>
      <link>http://abort.pixnet.net/blog/post/43398970</link>
      <guid>http://abort.pixnet.net/blog/post/43398970</guid>
      <description><![CDATA[SAPさんが各社とも「ソーシャルアプリは負荷対策が大事」って言っていますね。 弊社でも mixi アプリ(PC)，mixi アプリモバイルをリリースしたときはお祭り状態だったので， ふりかえりも兼ねて MySQL のボトルネックを調べる方法を書いてみました。 (幸い，モバゲーオープンゲームのリリース時はこれらの経験が役に立ったので何ともなかったです)

といっても 9 割方


	そもそもサーバの設定がおかしい
	更新が多いテーブルなのに MyISAM エンジン
	for 文の中でクエリを発行
	INDEX 張ってない
	データ量がえらいことになってる


辺りなんですけどねー。

基本は下から

まず，ボトルネックを調べるときは下の層から上がっていくのが基本です。たぶん。

なので ssh でサーバに入って (LoadAverage 300 ぐらいまでならなんとか入れますね) 以下のコマンドをよく叩きます。

top

現在稼動しているプロセスの一覧と，システム情報の概要が表示されるプログラム。

見るのは主に


	Load Average
	CPU 使用率
	メモリ使用量
	swap 使用量


と，これらが異常なプロセス。

たとえば swap だと，正常なときは

Swap:  7879872k total,      764k used,  7879108k free,  3589852k cached


ですが，異常に減っているときは

Swap:  7879872k total,  2529080k used,  5350792k free,  1574320k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
26945 mysql     20   0 7681m 6.0g 5080 S   37 77.2  17214:10 /usr/local/mysql/libexec/mysqld


のようになります。明らかに mysql がメモリ食い潰してますね。 free や ps でも確認出来ますが，どのプロセスが悪いのか見渡しやすいので，僕は top が好きです。

vmstat

これもシステム情報を表示するプログラムです。


	swap が発生しているかどうか
	CPU 使用率が異常な値じゃないか
	CPU IO Wait が発生しているかどうか
	Disk IO が異常値じゃないか
	Context Switch が異常に頻繁だったりしないか


あたりを確認します。

たとえば CPU IO wait が異常なときは

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0 11  20092 281480     12 7671592    0    0 27820    42 1967 2557  3  3 41 52
 0 12  20092 284492     12 7668020    0    0 26512     1 1812 2222  2  3 47 48
 0 13  20092 281188     12 7671080    0    0 33144     0 1890 2258  2  2 40 56
 0 13  20092 277208     12 7674300    0    0 24612     0 1722 2000  2  1 38 59
 0 24  20092 283364     12 7665688    0    0 24304     0 1871 2287  2  2 30 66
 2 21  20092 284912     12 7661960    0    0 31688    30 1714 2130  3  3 35 60


となります。

大抵の場合，以上の 2 コマンドで原因となっているプロセスを特定できるので，新機能のリリース時は 2 画面開いて


	top -d 5
	vmstat 5


として見張っています。

ありがちな例

CPU Usage が高い

大概，インデックスの張り忘れです。インデックスさえ張っておけば一瞬で終わるはずの WHERE 句や ORDER 句を，必死に CPU が計算しています。

最初はデータ量が少なくて気づかないかもしれないけど，次第に CPU 使用率が 100% に限りなく近づいて……。

varchar カラムに対して int を検索条件にする場合は INDEX が使われないので注意してください。 MySQL は文字列の型に対して where hoge = 1 と絞り込むとき，'01' や '1.00' の行もマッチします。つまり INDEX は使えず，全件走査となります。

ソーシャルアプリでは opensocial_owner_id が文字列なのでコレやりがちなんですよね。さすがにすぐ気づくとは思いますが(笑)

CPU IO Wait が高い

データ量に対して，メモリの割り当てが少ない場合とか。

show table status;


したときの Data_length + Index_length と key_buffer_size や innodb_buffer_pool_size を見直してみてください。 せめて Index だけでもメモリに載せてあげたいので。

ディスクの読み書きはメモリの読み書きの 10 万倍遅いです。ディスクアクセスは 1 回につき 5ms 程度かかるので，秒間 200 回しかアクセスできません。

1 回のクエリで 4 回ディスクへのアクセスが発生し，1 ページ表示するのに 5 回クエリを投げるとすると秒間 10 PV しか耐えられないことになります。 1 ユーザあたり 150 PV/day，ピーク時に平均の 2 倍になる場合で 2,500 UU/day が限界な感じですね。これが全てメモリに載っていれば 5 億人までいけます。

実行中のクエリを確認

MySQL の設定ではなくクエリが原因だと判断したら，実行中のクエリを確認します。


	innotop
	show processlist
	mprofile


の 3 パターンかな。

innotop

InnoDB を使ってるときはぜひ。 innotop - Project Hosting on Google Code

僕が注意しているのは


	InnoDB Buffers
	
		Hit Rate
	
	
	Command Summary
	
		Com_select
		Com_show_status
		Com_begin
		Com_commit
		Com_update
		Com_insert
	
	
	InnoDB I/O Info
	
		Reads/Sec
		Writes/Sec
	
	
	Query List


ですね。

トランザクションが重い場合，Query List には「COMMIT;」しか表示されなかったりするので注意してください。

show processlist

innotop や mytop で実行中のクエリのリストが見えるんですが，これらを入れていない場合は show processlist; で確認します。

クエリを全て Info カラムに出力したいときは

show full processlist;


mprofile

Kazuho@Cybozu Labs: MySQL のボトルネックを統計的に監視・解析する方法

show processlist を 1,000 回実行し，どのクエリが何回表示されたかの統計を取ってくれます。何から潰すべきなのかの判断に迷ったらとりあえず統計取りましょう。

奥さんも書いてますが，定期的に実行してログを残しておくと，ユーザの動向と DB の使われ方の変遷が見えてきてサーバ増強計画を作りやすいですね。

……思ってたより長くなったので次回 EXPLAIN 編に続きます。乞うご期待！

&nbsp;

http://blog.onk.ninja/2010/04/01/mysql-tuning

&nbsp;
]]></description>
      <content:encoded><![CDATA[<p><acronym title="ソーシャルアプリプロバイダー">SAP</acronym>さんが各社とも「ソーシャルアプリは負荷対策が大事」って言っていますね。 弊社でも mixi アプリ(PC)，mixi アプリモバイルをリリースしたときはお祭り状態だったので， ふりかえりも兼ねて MySQL のボトルネックを調べる方法を書いてみました。 (幸い，モバゲーオープンゲームのリリース時はこれらの経験が役に立ったので何ともなかったです)</p>

<p>といっても 9 割方</p>

<ul>
	<li>そもそもサーバの設定がおかしい</li>
	<li>更新が多いテーブルなのに MyISAM エンジン</li>
	<li>for 文の中でクエリを発行</li>
	<li>INDEX 張ってない</li>
	<li>データ量がえらいことになってる</li>
</ul>

<p>辺りなんですけどねー。</p>

<h2>基本は下から</h2>

<p>まず，ボトルネックを調べるときは下の層から上がっていくのが基本です。たぶん。</p>

<p>なので ssh でサーバに入って (LoadAverage 300 ぐらいまでならなんとか入れますね) 以下のコマンドをよく叩きます。</p>

<h3><code>top</code></h3>

<p>現在稼動しているプロセスの一覧と，システム情報の概要が表示されるプログラム。</p>

<p>見るのは主に</p>

<ul>
	<li>Load Average</li>
	<li>CPU 使用率</li>
	<li>メモリ使用量</li>
	<li>swap 使用量</li>
</ul>

<p>と，これらが異常なプロセス。</p>

<p>たとえば swap だと，正常なときは</p>

<pre><code class="hljs http"><span class="hljs-attribute">Swap</span>: <span class="hljs-string"> 7879872k total,      764k used,  7879108k free,  3589852k cached</span>
</code></pre>

<p>ですが，異常に減っているときは</p>

<pre><code class="hljs http"><span class="hljs-attribute">Swap</span>: <span class="hljs-string"> 7879872k total,  2529080k used,  5350792k free,  1574320k cached</span>

<span class="perl">  PID USER      PR  NI  VIRT  RES  SHR S <span class="hljs-variable">%CPU</span> <span class="hljs-variable">%MEM</span>    TIME+  COMMAND
<span class="hljs-number">26945</span> mysql     <span class="hljs-number">20</span>   <span class="hljs-number">0</span> <span class="hljs-number">7681</span><span class="hljs-keyword">m</span> <span class="hljs-number">6.0</span>g <span class="hljs-number">5080</span> S   <span class="hljs-number">37</span> <span class="hljs-number">77.2</span>  <span class="hljs-number">17214</span>:<span class="hljs-number">10</span> /usr/<span class="hljs-keyword">local</span>/mysql/libexec/mysqld
</span></code></pre>

<p>のようになります。明らかに mysql がメモリ食い潰してますね。 <code>free</code> や <code>ps</code> でも確認出来ますが，どのプロセスが悪いのか見渡しやすいので，僕は <code>top</code> が好きです。</p>

<h3><code>vmstat</code></h3>

<p>これもシステム情報を表示するプログラムです。</p>

<ul>
	<li>swap が発生しているかどうか</li>
	<li>CPU 使用率が異常な値じゃないか</li>
	<li>CPU IO Wait が発生しているかどうか</li>
	<li>Disk IO が異常値じゃないか</li>
	<li>Context Switch が異常に頻繁だったりしないか</li>
</ul>

<p>あたりを確認します。</p>

<p>たとえば CPU IO wait が異常なときは</p>

<pre><code class="hljs sql">procs <span class="hljs-comment">-----------memory---------- ---swap-- -----io---- -system-- ----cpu----</span>
 r  b   swpd   free   buff  <span class="hljs-operator"><span class="hljs-keyword">cache</span>   si   so    bi    bo   <span class="hljs-keyword">in</span>   cs us sy id wa
 <span class="hljs-number">0</span> <span class="hljs-number">11</span>  <span class="hljs-number">20092</span> <span class="hljs-number">281480</span>     <span class="hljs-number">12</span> <span class="hljs-number">7671592</span>    <span class="hljs-number">0</span>    <span class="hljs-number">0</span> <span class="hljs-number">27820</span>    <span class="hljs-number">42</span> <span class="hljs-number">1967</span> <span class="hljs-number">2557</span>  <span class="hljs-number">3</span>  <span class="hljs-number">3</span> <span class="hljs-number">41</span> <span class="hljs-number">52</span>
 <span class="hljs-number">0</span> <span class="hljs-number">12</span>  <span class="hljs-number">20092</span> <span class="hljs-number">284492</span>     <span class="hljs-number">12</span> <span class="hljs-number">7668020</span>    <span class="hljs-number">0</span>    <span class="hljs-number">0</span> <span class="hljs-number">26512</span>     <span class="hljs-number">1</span> <span class="hljs-number">1812</span> <span class="hljs-number">2222</span>  <span class="hljs-number">2</span>  <span class="hljs-number">3</span> <span class="hljs-number">47</span> <span class="hljs-number">48</span>
 <span class="hljs-number">0</span> <span class="hljs-number">13</span>  <span class="hljs-number">20092</span> <span class="hljs-number">281188</span>     <span class="hljs-number">12</span> <span class="hljs-number">7671080</span>    <span class="hljs-number">0</span>    <span class="hljs-number">0</span> <span class="hljs-number">33144</span>     <span class="hljs-number">0</span> <span class="hljs-number">1890</span> <span class="hljs-number">2258</span>  <span class="hljs-number">2</span>  <span class="hljs-number">2</span> <span class="hljs-number">40</span> <span class="hljs-number">56</span>
 <span class="hljs-number">0</span> <span class="hljs-number">13</span>  <span class="hljs-number">20092</span> <span class="hljs-number">277208</span>     <span class="hljs-number">12</span> <span class="hljs-number">7674300</span>    <span class="hljs-number">0</span>    <span class="hljs-number">0</span> <span class="hljs-number">24612</span>     <span class="hljs-number">0</span> <span class="hljs-number">1722</span> <span class="hljs-number">2000</span>  <span class="hljs-number">2</span>  <span class="hljs-number">1</span> <span class="hljs-number">38</span> <span class="hljs-number">59</span>
 <span class="hljs-number">0</span> <span class="hljs-number">24</span>  <span class="hljs-number">20092</span> <span class="hljs-number">283364</span>     <span class="hljs-number">12</span> <span class="hljs-number">7665688</span>    <span class="hljs-number">0</span>    <span class="hljs-number">0</span> <span class="hljs-number">24304</span>     <span class="hljs-number">0</span> <span class="hljs-number">1871</span> <span class="hljs-number">2287</span>  <span class="hljs-number">2</span>  <span class="hljs-number">2</span> <span class="hljs-number">30</span> <span class="hljs-number">66</span>
 <span class="hljs-number">2</span> <span class="hljs-number">21</span>  <span class="hljs-number">20092</span> <span class="hljs-number">284912</span>     <span class="hljs-number">12</span> <span class="hljs-number">7661960</span>    <span class="hljs-number">0</span>    <span class="hljs-number">0</span> <span class="hljs-number">31688</span>    <span class="hljs-number">30</span> <span class="hljs-number">1714</span> <span class="hljs-number">2130</span>  <span class="hljs-number">3</span>  <span class="hljs-number">3</span> <span class="hljs-number">35</span> <span class="hljs-number">60</span>
</span></code></pre>

<p>となります。</p>

<p>大抵の場合，以上の 2 コマンドで原因となっているプロセスを特定できるので，新機能のリリース時は 2 画面開いて</p>

<ul>
	<li><code>top -d 5</code></li>
	<li><code>vmstat 5</code></li>
</ul>

<p>として見張っています。</p>

<h2>ありがちな例</h2>

<h3>CPU Usage が高い</h3>

<p>大概，インデックスの張り忘れです。インデックスさえ張っておけば一瞬で終わるはずの WHERE 句や ORDER 句を，必死に CPU が計算しています。</p>

<p>最初はデータ量が少なくて気づかないかもしれないけど，次第に CPU 使用率が 100% に限りなく近づいて……。</p>

<p>varchar カラムに対して int を検索条件にする場合は INDEX が使われないので注意してください。 MySQL は文字列の型に対して <code>where hoge = 1</code> と絞り込むとき，'01' や '1.00' の行もマッチします。つまり INDEX は使えず，全件走査となります。</p>

<p>ソーシャルアプリでは opensocial_owner_id が文字列なのでコレやりがちなんですよね。さすがにすぐ気づくとは思いますが(笑)</p>

<h3>CPU IO Wait が高い</h3>

<p>データ量に対して，メモリの割り当てが少ない場合とか。</p>

<pre><code class="hljs sql"><span class="hljs-operator"><span class="hljs-keyword">show</span> <span class="hljs-keyword">table</span> <span class="hljs-keyword">status</span>;</span>
</code></pre>

<p>したときの <code>Data_length</code> + <code>Index_length</code> と <code>key_buffer_size</code> や <code>innodb_buffer_pool_size</code> を見直してみてください。 せめて Index だけでもメモリに載せてあげたいので。</p>

<p>ディスクの読み書きはメモリの読み書きの 10 万倍遅いです。ディスクアクセスは 1 回につき 5ms 程度かかるので，秒間 200 回しかアクセスできません。</p>

<p>1 回のクエリで 4 回ディスクへのアクセスが発生し，1 ページ表示するのに 5 回クエリを投げるとすると秒間 10 PV しか耐えられないことになります。 1 ユーザあたり 150 PV/day，ピーク時に平均の 2 倍になる場合で 2,500 UU/day が限界な感じですね。これが全てメモリに載っていれば 5 億人までいけます。</p>

<h2>実行中のクエリを確認</h2>

<p>MySQL の設定ではなくクエリが原因だと判断したら，実行中のクエリを確認します。</p>

<ul>
	<li><code>innotop</code></li>
	<li><code>show processlist</code></li>
	<li><code>mprofile</code></li>
</ul>

<p>の 3 パターンかな。</p>

<h3>innotop</h3>

<p>InnoDB を使ってるときはぜひ。 <a href="http://code.google.com/p/innotop/">innotop - Project Hosting on Google Code</a></p>

<p>僕が注意しているのは</p>

<ul>
	<li>InnoDB Buffers
	<ul>
		<li>Hit Rate</li>
	</ul>
	</li>
	<li>Command Summary
	<ul>
		<li>Com_select</li>
		<li>Com_show_status</li>
		<li>Com_begin</li>
		<li>Com_commit</li>
		<li>Com_update</li>
		<li>Com_insert</li>
	</ul>
	</li>
	<li>InnoDB I/O Info
	<ul>
		<li>Reads/Sec</li>
		<li>Writes/Sec</li>
	</ul>
	</li>
	<li>Query List</li>
</ul>

<p>ですね。</p>

<p>トランザクションが重い場合，Query List には「<code>COMMIT;</code>」しか表示されなかったりするので注意してください。</p>

<h3><code>show processlist</code></h3>

<p><code>innotop</code> や <code>mytop</code> で実行中のクエリのリストが見えるんですが，これらを入れていない場合は <code>show processlist;</code> で確認します。</p>

<p>クエリを全て Info カラムに出力したいときは</p>

<pre><code class="hljs sql"><span class="hljs-operator"><span class="hljs-keyword">show</span> <span class="hljs-keyword">full</span> <span class="hljs-keyword">processlist</span>;</span>
</code></pre>

<h3>mprofile</h3>

<p><a href="http://developer.cybozu.co.jp/kazuho/2009/07/mysql-539d.html">Kazuho@Cybozu Labs: MySQL のボトルネックを統計的に監視・解析する方法</a></p>

<p><code>show processlist</code> を 1,000 回実行し，どのクエリが何回表示されたかの統計を取ってくれます。何から潰すべきなのかの判断に迷ったらとりあえず統計取りましょう。</p>

<p>奥さんも書いてますが，定期的に実行してログを残しておくと，ユーザの動向と DB の使われ方の変遷が見えてきてサーバ増強計画を作りやすいですね。</p>

<p>……思ってたより長くなったので次回 EXPLAIN 編に続きます。乞うご期待！</p>

<p>&nbsp;</p>

<p><a href="http://blog.onk.ninja/2010/04/01/mysql-tuning">http://blog.onk.ninja/2010/04/01/mysql-tuning</a></p>

<p>&nbsp;</p>
  <div class="more"><a href="http://abort.pixnet.net/blog/post/43398970">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F43398970"></div>]]></content:encoded>
      <pubDate>Wed, 10 Feb 2016 22:00:29 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/43398970#comments</comments>
    </item>
    <item>
      <title><![CDATA[The Syslog 協定 Level、Facilities]]></title>
      <link>http://abort.pixnet.net/blog/post/43338880</link>
      <guid>http://abort.pixnet.net/blog/post/43338880</guid>
      <description><![CDATA[Syslog Facilities






A BSD Unix Syslog message looks like this:&lt;PRI&gt;HEADER MESSAGE

The priority is a value from 0 to 191 and is not space or leading zero padded.For more information on the Syslog message format, please read the RFC.

The Facility value is a way of determining which process of the machine created the message. Since the Syslogprotocol was originally written on BSD Unix, the Facilities reflect the names of Unix processes and Daemons.The priority value is calculated using the following formula:

Priority = Facility * 8 + Level

The list of Facilities available:

0 kernel messages1 user-level messages2 mail system3 system daemons4 security/authorization messages5 messages generated internally by syslogd6 line printer subsystem7 network news subsystem8 UUCP subsystem9 clock daemon10 security/authorization messages11 FTP daemon12 NTP subsystem13 log audit14 log alert15 clock daemon16 local use 0 (local0)17 local use 1 (local1)18 local use 2 (local2)19 local use 3 (local3)20 local use 4 (local4)21 local use 5 (local5)22 local use 6 (local6)23 local use 7 (local7)

If you are receiving messages from a Unix system, it is suggested you use the 'User' Facility as your firstchoice. Local0 through to Local7 are not used by Unix and are traditionally used by networking equipment.Cisco routers for example use Local6 or Local7.



Syslog Levels

Each Syslog message includes a priority value at the beginning of the text. The priority value ranges from 0 to191 and is made up of a Facility value and a Level value. The priority is enclosed in "&lt;&gt;" delimiters.A BSD Unix Syslog message looks like this:

&lt;PRI&gt;HEADER MESSAGE

The priority is a value from 0 to 191 and is not space or leading zero padded.For more information on the Syslog message format, please read the RFC.The priority value is calculated using the following formula:

Priority = Facility * 8 + Level

The list of severity Levels:0 Emergency: system is unusable1 Alert: action must be taken immediately2 Critical: critical conditions3 Error: error conditions4 Warning: warning conditions5 Notice: normal but significant condition6 Informational: informational messages7 Debug: debug-level messages

Recommended practice is to use the Notice or Informational level for normal messages.

A detailed explanation of the severity Levels:

DEBUG:Info useful to developers for debugging the app, not useful during operations

INFORMATIONAL:Normal operational messages - may be harvested for reporting, measuring throughput, etc - no actionrequired

NOTICE:Events that are unusual but not error conditions - might be summarized in an email to developers or admins tospot potential problems - no immediate action required

WARNING:Warning messages - not an error, but indication that an error will occur if action is not taken, e.g. file system85% full - each item must be resolved within a given time

ERROR:Non-urgent failures - these should be relayed to developers or admins; each item must be resolved within agiven time

ALERT:Should be corrected immediately - notify staff who can fix the problem - example is loss of backup ISPconnection

CRITICAL:Should be corrected immediately, but indicates failure in a primary system - fix CRITICAL problems beforeALERT - example is loss of primary ISP connection

EMERGENCY:A "panic" condition - notify all tech staff on call? (earthquake? tornado?) - affects multiple apps/servers/sites...


]]></description>
      <content:encoded><![CDATA[Syslog Facilities
<p>
</p>
<p>
</p>
<p>
</p>
<p>A BSD Unix Syslog message looks like this:<br>&lt;PRI&gt;HEADER MESSAGE
</p>
<p>The priority is a value from 0 to 191 and is not space or leading zero padded.<br>For more information on the Syslog message format, please read the RFC.<br>
</p>
<p>The Facility value is a way of determining which process of the machine created the message. Since the Syslog<br>protocol was originally written on BSD Unix, the Facilities reflect the names of Unix processes and Daemons.<br>The priority value is calculated using the following formula:<br>
</p>
<p>Priority = Facility * 8 + Level
</p>
<p>The list of Facilities available:
</p>
<p><br>0 kernel messages<br>1 user-level messages<br>2 mail system<br>3 system daemons<br>4 security/authorization messages<br>5 messages generated internally by syslogd<br>6 line printer subsystem<br>7 network news subsystem<br>8 UUCP subsystem<br>9 clock daemon<br>10 security/authorization messages<br>11 FTP daemon<br>12 NTP subsystem<br>13 log audit<br>14 log alert<br>15 clock daemon<br>16 local use 0 (local0)<br>17 local use 1 (local1)<br>18 local use 2 (local2)<br>19 local use 3 (local3)<br>20 local use 4 (local4)<br>21 local use 5 (local5)<br>22 local use 6 (local6)<br>23 local use 7 (local7)
</p>
<p><br>If you are receiving messages from a Unix system, it is suggested you use the 'User' Facility as your first<br>choice. Local0 through to Local7 are not used by Unix and are traditionally used by networking equipment.<br>Cisco routers for example use Local6 or Local7.
</p>
<p><br>
</p>
<p>Syslog Levels
</p>
<p><br>Each Syslog message includes a priority value at the beginning of the text. The priority value ranges from 0 to<br>191 and is made up of a Facility value and a Level value. The priority is enclosed in "&lt;&gt;" delimiters.<br>A BSD Unix Syslog message looks like this:<br>
</p>
<p>&lt;PRI&gt;HEADER MESSAGE<br>
</p>
<p>The priority is a value from 0 to 191 and is not space or leading zero padded.<br>For more information on the Syslog message format, please read the RFC.<br>The priority value is calculated using the following formula:<br>
</p>
<p>Priority = Facility * 8 + Level<br>
</p>
<p>The list of severity Levels:<br>0 Emergency: system is unusable<br>1 Alert: action must be taken immediately<br>2 Critical: critical conditions<br>3 Error: error conditions<br>4 Warning: warning conditions<br>5 Notice: normal but significant condition<br>6 Informational: informational messages<br>7 Debug: debug-level messages<br>
</p>
<p>Recommended practice is to use the Notice or Informational level for normal messages.<br>
</p>
<p>A detailed explanation of the severity Levels:<br>
</p>
<p>DEBUG:<br>Info useful to developers for debugging the app, not useful during operations<br>
</p>
<p>INFORMATIONAL:<br>Normal operational messages - may be harvested for reporting, measuring throughput, etc - no action<br>required<br>
</p>
<p>NOTICE:<br>Events that are unusual but not error conditions - might be summarized in an email to developers or admins to<br>spot potential problems - no immediate action required<br>
</p>
<p>WARNING:<br>Warning messages - not an error, but indication that an error will occur if action is not taken, e.g. file system<br>85% full - each item must be resolved within a given time<br>
</p>
<p>ERROR:<br>Non-urgent failures - these should be relayed to developers or admins; each item must be resolved within a<br>given time
</p>
<p><br>ALERT:Should be corrected immediately - notify staff who can fix the problem - example is loss of backup ISP<br>connection
</p>
<p><br>CRITICAL:<br>Should be corrected immediately, but indicates failure in a primary system - fix CRITICAL problems before<br>ALERT - example is loss of primary ISP connection
</p>
<p><br>EMERGENCY:<br>A "panic" condition - notify all tech staff on call? (earthquake? tornado?) - affects multiple apps/servers/sites...
</p>
<p><br>
</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/43338880">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F43338880"></div>]]></content:encoded>
      <pubDate>Mon, 25 Jan 2016 10:58:02 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/43338880#comments</comments>
    </item>
    <item>
      <title><![CDATA[Linux LVM 變更磁區]]></title>
      <link>http://abort.pixnet.net/blog/post/43267651</link>
      <guid>http://abort.pixnet.net/blog/post/43267651</guid>
      <description><![CDATA[0.確認PV、VG、LV、PPpvscanpvdisplayvgscanvgdisplaylvscanlvdisplay0.確認Physcal Partitionfdisk -l1.縮小某LV.1 df -h 確認LV大小與名稱.2 umount /home/&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;縮小只能離線 擴充可以在線.3 e2fsck -f /dev/mapper/vg_cloud-LogVol00&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;檢查磁區.4 resize2fs /dev/mapper/vg_cloud-LogVol00 10G&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;變更FileSystem大小 大小10G.5 lvreduce -L 10G /dev/mapper/vg_cloud-LogVol00&nbsp;&nbsp; &nbsp;變更lv大小 大小10G.6 mount /home/&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;掛回磁區.7 df -h /home/&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;確認結果2.放大某LV.1 lvresize -l +100%FREE /dev/myVG/myLV&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;在線擴充LV.2 resize2fs /dev/myVG/myLV&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;變更FileSystem不帶大小參數 會使用全部容量要縮減lv大小則與擴充相反--必須先縮小上層的filesystem，再縮小底層的lv。如果你不照此順序進行，lv上面的資料會全部付之一炬。參考文件https://en.wikipedia.org/wiki/Logical_Volume_Manag...https://en.wikipedia.org/wiki/File:Lvm.svghttp://maxubuntu.blogspot.tw/2010/05/lvm2.htmlhttp://www.linuxtechi.com/reduce-size-lvm-partitio...http://linux.vbird.org/linux_basic/0420quota.php#r...]]></description>
      <content:encoded><![CDATA[0.確認PV、VG、LV、PP<br>pvscan<br>pvdisplay<br>vgscan<br>vgdisplay<br>lvscan<br>lvdisplay<br><br>0.確認Physcal Partition<br>fdisk -l<br><br>1.縮小某LV<br>.1 df -h 確認LV大小與名稱<br>.2 umount /home/&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;縮小只能離線 擴充可以在線<br>.3 e2fsck -f /dev/mapper/vg_cloud-LogVol00&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;檢查磁區<br>.4 resize2fs /dev/mapper/vg_cloud-LogVol00 10G&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;變更FileSystem大小 大小10G<br>.5 lvreduce -L 10G /dev/mapper/vg_cloud-LogVol00&nbsp;&nbsp; &nbsp;變更lv大小 大小10G<br>.6 mount /home/&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;掛回磁區<br>.7 df -h /home/&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;確認結果<br><br>2.放大某LV<br>.1 lvresize -l +100%FREE /dev/myVG/myLV&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;在線擴充LV<br>.2 resize2fs /dev/myVG/myLV&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;變更FileSystem不帶大小參數 會使用全部容量<br><br><br>要縮減lv大小則與擴充相反--必須先縮小上層的filesystem，再縮小底層的lv。如果你不照此順序進行，lv上面的資料會全部付之一炬。<br><br>參考文件<br><a href="https://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29">https://en.wikipedia.org/wiki/Logical_Volume_Manag...</a><br><a href="https://en.wikipedia.org/wiki/File:Lvm.svg">https://en.wikipedia.org/wiki/File:Lvm.svg</a><br><a href="http://maxubuntu.blogspot.tw/2010/05/lvm2.html">http://maxubuntu.blogspot.tw/2010/05/lvm2.html</a><br><a href="http://www.linuxtechi.com/reduce-size-lvm-partition/">http://www.linuxtechi.com/reduce-size-lvm-partitio...</a><br><a href="http://linux.vbird.org/linux_basic/0420quota.php#raid">http://linux.vbird.org/linux_basic/0420quota.php#r...</a>  <div class="more"><a href="http://abort.pixnet.net/blog/post/43267651">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F43267651"></div>]]></content:encoded>
      <pubDate>Wed, 06 Jan 2016 16:53:19 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/43267651#comments</comments>
    </item>
    <item>
      <title><![CDATA[MediaCoder 10bit ASS字幕內嵌]]></title>
      <link>http://abort.pixnet.net/blog/post/43252306</link>
      <guid>http://abort.pixnet.net/blog/post/43252306</guid>
      <description><![CDATA[MediaCoder複製ffms2.dll到安裝目錄/codec替換掉VSFilter.dll 換成xy-VSFilter最新版本壓的時候選FFVideoSource選擇Default Render]]></description>
      <content:encoded><![CDATA[MediaCoder<br><br>複製ffms2.dll到安裝目錄/codec<br>替換掉VSFilter.dll 換成xy-VSFilter最新版本<br><br>壓的時候選FFVideoSource<br>選擇Default Render  <div class="more"><a href="http://abort.pixnet.net/blog/post/43252306">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F43252306"></div>]]></content:encoded>
      <pubDate>Sat, 02 Jan 2016 19:28:41 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/43252306#comments</comments>
    </item>
    <item>
      <title><![CDATA[Google NTP Server]]></title>
      <link>http://abort.pixnet.net/blog/post/41075050</link>
      <guid>http://abort.pixnet.net/blog/post/41075050</guid>
      <description><![CDATA[Google NTP Server

time1.google.com
time2.google.com
time3.google.com
time4.google.com]]></description>
      <content:encoded><![CDATA[Google NTP Server<br />
<br />
time1.google.com<br />
time2.google.com<br />
time3.google.com<br />
time4.google.com  <div class="more"><a href="http://abort.pixnet.net/blog/post/41075050">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F41075050"></div>]]></content:encoded>
      <pubDate>Fri, 04 Jul 2014 23:14:43 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/41075050#comments</comments>
    </item>
    <item>
      <title><![CDATA[SQL如果有紀錄就更新，沒有紀錄就新增]]></title>
      <link>http://abort.pixnet.net/blog/post/32541499</link>
      <guid>http://abort.pixnet.net/blog/post/32541499</guid>
      <description><![CDATA[方式1
================================================================
IF EXISTS (SELECT * FROM Table1 WHERE Column1='SomeValue') UPDATE Table1 SET (...) WHERE Column1='SomeValue'ELSE INSERT INTO Table1 VALUES (...)
&nbsp;
方式2
================================================================
UPDATE Table1 SET (...) WHERE Column1='SomeValue'IF @@ROWCOUNT=0 INSERT INTO Table1 VALUES (...) 
方式&nbsp;MySQL
================================================================
INSERT INTO Table1&nbsp;(a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1;]]></description>
      <content:encoded><![CDATA[<p>方式1</p>
<p>================================================================</p>
<p>IF EXISTS (SELECT * FROM Table1 WHERE Column1='SomeValue')<br /> UPDATE Table1 SET (...) WHERE Column1='SomeValue'<br />ELSE<br /> INSERT INTO Table1 VALUES (...)</p>
<p>&nbsp;</p>
<p>方式2</p>
<p>================================================================</p>
<p>UPDATE Table1 SET (...) WHERE Column1='SomeValue'<br />IF @@ROWCOUNT=0<br /> INSERT INTO Table1 VALUES (...)<br /> <br /><br /></p>
<p>方式&nbsp;MySQL</p>
<p>================================================================</p>
<p>INSERT INTO Table1&nbsp;(a,b,c) VALUES (1,2,3)<br /> ON DUPLICATE KEY UPDATE c=c+1;<br /><br /></p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/32541499">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F32541499"></div>]]></content:encoded>
      <pubDate>Wed, 07 Aug 2013 18:30:04 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/32541499#comments</comments>
    </item>
    <item>
      <title><![CDATA[如何讓工作排程在背景執行]]></title>
      <link>http://abort.pixnet.net/blog/post/32507963</link>
      <guid>http://abort.pixnet.net/blog/post/32507963</guid>
      <description><![CDATA[如何讓工作排程在背景執行
執行身分選擇SYSTEM，就可以不顯示任何視窗。
&nbsp;]]></description>
      <content:encoded><![CDATA[<p>如何讓工作排程在背景執行</p>
<p>執行身分選擇SYSTEM，就可以不顯示任何視窗。</p>
<p>&nbsp;</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/32507963">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F32507963"></div>]]></content:encoded>
      <pubDate>Thu, 01 Aug 2013 13:15:00 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/32507963#comments</comments>
    </item>
    <item>
      <title><![CDATA[Windows 7刪除資料夾或檔案出現"找不到此項目"]]></title>
      <link>http://abort.pixnet.net/blog/post/32497443</link>
      <guid>http://abort.pixnet.net/blog/post/32497443</guid>
      <description><![CDATA[Windows 7刪除資料夾或檔案出現"找不到此項目"

在刪除檔案或資料夾時出現「找不到此項目」的訊息，是Win7的bug之一。

解決方法一：
1.建立一個*.txt的文字文件，並將以下兩行文字貼入，存檔之後將副檔名改為*.bat的檔案
DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1
2.將無法刪除的檔案拖曳到該bat圖示上即可。

解決方法二：
找出檔案放置的路徑(例如C:\Users\Documents\01)
開啟「命令提示字元」，輸入以下指令：
rd /s 加上路徑(例如rd /s C:\Users\Documents\01)
若是遇到無法刪除的資料夾，先將路徑資料夾內的檔案及資料夾移至另一處
移除之後重新建立資料夾，再將先前移出的檔案及資料夾放回去]]></description>
      <content:encoded><![CDATA[Windows 7刪除資料夾或檔案出現"找不到此項目"<br />
<br />
在刪除檔案或資料夾時出現「找不到此項目」的訊息，是Win7的bug之一。<br />
<br />
解決方法一：<br />
1.建立一個*.txt的文字文件，並將以下兩行文字貼入，存檔之後將副檔名改為*.bat的檔案<br />
DEL /F /A /Q \\?\%1<br />
RD /S /Q \\?\%1<br />
2.將無法刪除的檔案拖曳到該bat圖示上即可。<br />
<br />
解決方法二：<br />
找出檔案放置的路徑(例如C:\Users\Documents\01)<br />
開啟「命令提示字元」，輸入以下指令：<br />
rd /s 加上路徑(例如rd /s C:\Users\Documents\01)<br />
若是遇到無法刪除的資料夾，先將路徑資料夾內的檔案及資料夾移至另一處<br />
移除之後重新建立資料夾，再將先前移出的檔案及資料夾放回去  <div class="more"><a href="http://abort.pixnet.net/blog/post/32497443">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F32497443"></div>]]></content:encoded>
      <pubDate>Tue, 30 Jul 2013 09:48:22 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/32497443#comments</comments>
    </item>
    <item>
      <title><![CDATA[查詢拿個process占用port]]></title>
      <link>http://abort.pixnet.net/blog/post/32242455</link>
      <guid>http://abort.pixnet.net/blog/post/32242455</guid>
      <description><![CDATA[查詢拿個process占用port

1.找哪個PID使用80PORT
netstat -nao |find "0.0.0.0:80"

2.找除PID的名稱
tasklist /fi "pid eq 4"]]></description>
      <content:encoded><![CDATA[查詢拿個process占用port<br />
<br />
1.找哪個PID使用80PORT<br />
<blockquote>netstat -nao |find "0.0.0.0:80"</blockquote><br />
<br />
2.找除PID的名稱<br />
<blockquote>tasklist /fi "pid eq 4"</blockquote>  <div class="more"><a href="http://abort.pixnet.net/blog/post/32242455">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F32242455"></div>]]></content:encoded>
      <pubDate>Tue, 11 Jun 2013 18:24:56 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/32242455#comments</comments>
    </item>
    <item>
      <title><![CDATA[ASP 中 ANSI、UTF-8 檔案編碼與 Server.HTMLEncode]]></title>
      <link>http://abort.pixnet.net/blog/post/31997073</link>
      <guid>http://abort.pixnet.net/blog/post/31997073</guid>
      <description><![CDATA[ASP 中 ANSI、UTF-8 檔案編碼與 Server.HTMLEncode在不同的檔案編碼中Server.HTMLEncode執行結果不同Response.Write(Server.HTMLEncode("日文字"))如果上述程式碼位於 ANSI 檔案編碼的 ASP 中，則輸出為：中文編碼或亂碼。如果上述程式碼位於 UTF-8 檔案編碼的 ASP 中，則輸出為：&amp;#+U;編碼。]]></description>
      <content:encoded><![CDATA[<p>ASP 中 ANSI、UTF-8 檔案編碼與 Server.HTMLEncode<br /><br />在不同的檔案編碼中Server.HTMLEncode執行結果不同<br /><br />Response.Write(Server.HTMLEncode("日文字"))<br /><br />如果上述程式碼位於 ANSI 檔案編碼的 ASP 中，則輸出為：中文編碼或亂碼。<br />如果上述程式碼位於 UTF-8 檔案編碼的 ASP 中，則輸出為：&amp;#+U;編碼。<br /><br /></p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/31997073">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31997073"></div>]]></content:encoded>
      <pubDate>Fri, 26 Apr 2013 10:46:56 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31997073#comments</comments>
    </item>
    <item>
      <title><![CDATA[[pw1]抓網頁資料分析]]></title>
      <link>http://abort.pixnet.net/blog/post/31878501</link>
      <guid>http://abort.pixnet.net/blog/post/31878501</guid>
      <description><![CDATA[$EndDatetime = Get-Datefor ($i=1; $i -le 1000; $i++) { $query_year = $EndDatetime.AddDays(-$i).Year; $query_Cyear = ($EndDatetime.AddDays(-$i).Year-1911).ToString("000"); $query_month = $EndDatetime.AddDays(-$i).Month.ToString("00"); $query_day = $EndDatetime.AddDays(-$i).Day.ToString("00"); $query_date = "$query_year%2F$query_month%2F$query_day"; $outputfilename = "$query_year-$query_month-$query_day"; $url = ""; $path = "D:\test\$outputfilename.html"; $client = new-object System.Net.WebClient; $client.DownloadFile( $url, $path );}
$output = "";#在收尋文字檔中需要的文字$files=get-childitem .foreach ($file in $files) { $a = (Get-Content $file)[600 .. 600] | select-string -Pattern "\d{1,3}年\d{1,3}月\d{1,3}日" -AllMatches | % { $_.Matches } | % { $_.Value }; $b = (Get-Content $file)[883 .. 883] | select-string -Pattern "\d{2}.\d{2}" -AllMatches | % { $_.Matches } | % { $_.Value }; $output += "$a^$b`n";}echo $output &gt; test.txt;]]></description>
      <content:encoded><![CDATA[<p>$EndDatetime = Get-Date<br />for ($i=1; $i -le 1000; $i++) {<br /> $query_year = $EndDatetime.AddDays(-$i).Year;<br /> $query_Cyear = ($EndDatetime.AddDays(-$i).Year-1911).ToString("000");<br /> $query_month = $EndDatetime.AddDays(-$i).Month.ToString("00");<br /> $query_day = $EndDatetime.AddDays(-$i).Day.ToString("00");<br /> $query_date = "$query_year%2F$query_month%2F$query_day";<br /> $outputfilename = "$query_year-$query_month-$query_day";<br /> $url = "";<br /> $path = "D:\test\$outputfilename.html";<br /> $client = new-object System.Net.WebClient;<br /> $client.DownloadFile( $url, $path );<br />}</p>
<p>$output = "";<br />#在收尋文字檔中需要的文字<br />$files=get-childitem .<br />foreach ($file in $files) {<br /> $a = (Get-Content $file)[600 .. 600] | select-string -Pattern "\d{1,3}年\d{1,3}月\d{1,3}日" -AllMatches | % { $_.Matches } | % { $_.Value };<br /> $b = (Get-Content $file)[883 .. 883] | select-string -Pattern "\d{2}.\d{2}" -AllMatches | % { $_.Matches } | % { $_.Value };<br /> $output += "$a^$b`n";<br />}<br />echo $output &gt; test.txt;</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/31878501">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31878501"></div>]]></content:encoded>
      <pubDate>Tue, 26 Mar 2013 18:20:17 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31878501#comments</comments>
    </item>
    <item>
      <title><![CDATA[可以替代MD5或SHA的雜湊新技術「BLAKE2」]]></title>
      <link>http://abort.pixnet.net/blog/post/31538491</link>
      <guid>http://abort.pixnet.net/blog/post/31538491</guid>
      <description><![CDATA[可以替代MD5或SHA的雜湊新技術「BLAKE2」
執行時使用更少記憶體，安全性高於md5與Sha-1與Sha-2，執行速度與MD5相近




官方網站
BLAKE2
https://blake2.net/]]></description>
      <content:encoded><![CDATA[可以替代MD5或SHA的雜湊新技術「BLAKE2」<br />
執行時使用更少記憶體，安全性高於md5與Sha-1與Sha-2，執行速度與MD5相近<br />
<br />
<br />
<br />
<br />
官方網站<br />
BLAKE2<br />
<a href="https://blake2.net/">https://blake2.net/</a>  <div class="more"><a href="http://abort.pixnet.net/blog/post/31538491">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31538491"></div>]]></content:encoded>
      <pubDate>Wed, 02 Jan 2013 12:12:00 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31538491#comments</comments>
    </item>
    <item>
      <title><![CDATA[IE8 HTML換頁CSS]]></title>
      <link>http://abort.pixnet.net/blog/post/31503699</link>
      <guid>http://abort.pixnet.net/blog/post/31503699</guid>
      <description><![CDATA[有問題的換頁 &lt;div style=&rdquo;page-break-after:always; clear:both;&rdquo;&gt;&lt;/div&gt; IE8: &lt;div style=&rdquo;page-break-after:always; clear:both;&rdquo;&gt; &amp;nbsp; &lt;/div&gt;]]></description>
      <content:encoded><![CDATA[<p>有問題的換頁<br /> &lt;div style=&rdquo;page-break-after:always; clear:both;&rdquo;&gt;&lt;/div&gt;<br /> <br />IE8:<br /> &lt;div style=&rdquo;page-break-after:always; clear:both;&rdquo;&gt; &amp;nbsp; &lt;/div&gt;</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/31503699">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31503699"></div>]]></content:encoded>
      <pubDate>Thu, 20 Dec 2012 13:30:44 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31503699#comments</comments>
    </item>
    <item>
      <title><![CDATA[修復IIS無法執行.aspx]]></title>
      <link>http://abort.pixnet.net/blog/post/31396379</link>
      <guid>http://abort.pixnet.net/blog/post/31396379</guid>
      <description><![CDATA[修復IIS無法執行.aspx
1.重新安裝.NET 1.x
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -i

2.把所需的檔案，複製到IIS的 aspnet_client子目錄
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -c
3.重新安裝.NET 2.x
"%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i
4.把所需的檔案，複製到IIS的 aspnet_client子目錄
"%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -c
5.重新啟動IIS

-u 表示解除安裝
-i 表示重新安裝
-c 把所需的檔案，複製到IIS的 aspnet_client子目錄

3.0與3.5版沒這指令。
有關 Aspnet_regiis.exe 公用程式的詳細資訊，可用 -? 做為引數查詢。

]]></description>
      <content:encoded><![CDATA[修復IIS無法執行.aspx<br />
1.重新安裝.NET 1.x<br />
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -i<br />
<br />
2.把所需的檔案，複製到IIS的 aspnet_client子目錄<br />
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -c<br />
3.重新安裝.NET 2.x<br />
"%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i<br />
4.把所需的檔案，複製到IIS的 aspnet_client子目錄<br />
"%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -c<br />
5.重新啟動IIS<br />
<br />
-u 表示解除安裝<br />
-i 表示重新安裝<br />
-c 把所需的檔案，複製到IIS的 aspnet_client子目錄<br />
<br />
3.0與3.5版沒這指令。<br />
有關 Aspnet_regiis.exe 公用程式的詳細資訊，可用 -? 做為引數查詢。<br />
<br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/31396379">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31396379"></div>]]></content:encoded>
      <pubDate>Mon, 19 Nov 2012 09:54:26 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31396379#comments</comments>
    </item>
    <item>
      <title><![CDATA[復原windows預設的開啟程式]]></title>
      <link>http://abort.pixnet.net/blog/post/31342063</link>
      <guid>http://abort.pixnet.net/blog/post/31342063</guid>
      <description><![CDATA[復原windows預設的開啟程式
Restore Default Windows 7 File Extension Type Associations

http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html

修復安裝NPP後無法開啟VBS檔案]]></description>
      <content:encoded><![CDATA[復原windows預設的開啟程式<br />
Restore Default Windows 7 File Extension Type Associations<br />
<br />
<a href="http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html">http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html</a><br />
<br />
修復安裝NPP後無法開啟VBS檔案  <div class="more"><a href="http://abort.pixnet.net/blog/post/31342063">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31342063"></div>]]></content:encoded>
      <pubDate>Fri, 02 Nov 2012 14:07:26 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31342063#comments</comments>
    </item>
    <item>
      <title><![CDATA[Linux搜尋大型檔案]]></title>
      <link>http://abort.pixnet.net/blog/post/31317119</link>
      <guid>http://abort.pixnet.net/blog/post/31317119</guid>
      <description><![CDATA[Syntax for Debian / Ubuntu Linux

find {/path/to/directory} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'

Search in current directory:
$ find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'

Syntax for RedHat / CentOS / Fedora Linux

find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Search or find big files Linux (50MB) in current directory, enter:
$ find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

http://www.cyberciti.biz/faq/find-large-files-linux/]]></description>
      <content:encoded><![CDATA[Syntax for Debian / Ubuntu Linux<br />
<br />
find {/path/to/directory} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'<br />
<br />
Search in current directory:<br />
$ find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'<br />
<br />
Syntax for RedHat / CentOS / Fedora Linux<br />
<br />
find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'<br />
<br />
Search or find big files Linux (50MB) in current directory, enter:<br />
$ find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'<br />
<br />
http://www.cyberciti.biz/faq/find-large-files-linux/  <div class="more"><a href="http://abort.pixnet.net/blog/post/31317119">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31317119"></div>]]></content:encoded>
      <pubDate>Thu, 25 Oct 2012 13:36:13 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31317119#comments</comments>
    </item>
    <item>
      <title><![CDATA[yum update – TypeError: unsubscriptable object ]]></title>
      <link>http://abort.pixnet.net/blog/post/31073323</link>
      <guid>http://abort.pixnet.net/blog/post/31073323</guid>
      <description><![CDATA[yum update – TypeError: unsubscriptable object

yum update出現TypeError: unsubscriptable object錯誤

先清除yum的舊資料
yum clean metadata
yum clean all

刪除host的cache

rm -f /var/cache/yum/timedhosts.txt

跳過plugin更新

yum --noplugins check-update

正是更新
yum update]]></description>
      <content:encoded><![CDATA[yum update – TypeError: unsubscriptable object<br />
<br />
yum update出現TypeError: unsubscriptable object錯誤<br />
<br />
先清除yum的舊資料<br />
yum clean metadata<br />
yum clean all<br />
<br />
刪除host的cache<br />
<br />
rm -f /var/cache/yum/timedhosts.txt<br />
<br />
跳過plugin更新<br />
<br />
yum --noplugins check-update<br />
<br />
正是更新<br />
yum update  <div class="more"><a href="http://abort.pixnet.net/blog/post/31073323">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F31073323"></div>]]></content:encoded>
      <pubDate>Wed, 22 Aug 2012 11:04:55 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/31073323#comments</comments>
    </item>
    <item>
      <title><![CDATA[IIS6一個IP安裝多個SSL(443)網站]]></title>
      <link>http://abort.pixnet.net/blog/post/30901698</link>
      <guid>http://abort.pixnet.net/blog/post/30901698</guid>
      <description><![CDATA[1.先安裝好憑證
2.預設的GUI無法設定 domain name
3.改用adsutil.vbs來設定domain name，達到安裝多個SSL(443)網站
4.cscript adsutil.vbs set /w3svc/844934796/SecureBindings ":443:mysite.sharepoint.com" 
5.adsutil.vbs位於C:\Inetpub\AdminScripts
5.844934796為網站ID可在IIS找到，mysite.sharepoint.com為網站domain]]></description>
      <content:encoded><![CDATA[1.先安裝好憑證<br />
2.預設的GUI無法設定 domain name<br />
3.改用adsutil.vbs來設定domain name，達到安裝多個SSL(443)網站<br />
4.cscript adsutil.vbs set /w3svc/844934796/SecureBindings ":443:mysite.sharepoint.com" <br />
5.adsutil.vbs位於C:\Inetpub\AdminScripts<br />
5.844934796為網站ID可在IIS找到，mysite.sharepoint.com為網站domain  <div class="more"><a href="http://abort.pixnet.net/blog/post/30901698">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30901698"></div>]]></content:encoded>
      <pubDate>Thu, 05 Jul 2012 14:03:41 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30901698#comments</comments>
    </item>
    <item>
      <title><![CDATA[AutoIt3整理文件用 複製一個readme到該資料夾中所有子目錄並且修改日期為影片日期]]></title>
      <link>http://abort.pixnet.net/blog/post/30859596</link>
      <guid>http://abort.pixnet.net/blog/post/30859596</guid>
      <description><![CDATA[#AutoIt3Wrapper_Icon=RedFish.ico ;Filename of the Ico file to use
#include &lt;File.au3&gt;#include &lt;Array.au3&gt;#include &lt;String.au3&gt;#include &lt;Process.au3&gt;
_RunDOS( "dir /AD /B /OD &gt; logs.txt" )
$file = FileOpen("logs.txt", 0)
; Check if file opened for reading OKIf $file = -1 Then MsgBox(0, "Error", "Unable to open file.") ExitEndIf
; Read in lines of text until the EOF is reachedWhile 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop ;MsgBox(0, "Line read:", $line) $readme = FileOpen( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp; "readme.txt", 1) If $readme = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf FileClose($readme) ;修改時間 ;找看看有沒有AVI檔案 $search = FileFindFirstFile( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;"*.avi" ) If $search = -1 Then $search = FileFindFirstFile( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;"*.mp4" ) If $search = -1 Then $search = FileFindFirstFile( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;"*.wmv" ) If $search = -1 Then ContinueLoop EndIf EndIf EndIf $movie_file = FileFindNextFile($search);第一個影片檔案名稱 $FileTime = FileGetTime ( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;$movie_file , 0 , 1 );取出影片的日期
FileSetTime ( @WorkingDir &amp; "\" &amp; $line , $FileTime , 0 , 1 );type: 0 = Modified (default), 1 = Created, 2 = Accessed "YYYYMMDDHHMMSS" FileSetTime ( @WorkingDir &amp; "\" &amp; $line , $FileTime , 1 , 1 );type: 0 = Modified (default), 1 = Created, 2 = Accessed $YYYYMMDDHHMMSS = $FileTime[] FileSetTime ( @WorkingDir &amp; "\" &amp; $line , $FileTime , 2 , 1 );type: 0 = Modified (default), 1 = Created, 2 = Accessed
FileClose($search) ;修改時間Wend
FileClose($file)]]></description>
      <content:encoded><![CDATA[<p>#AutoIt3Wrapper_Icon=RedFish.ico ;Filename of the Ico file to use</p>
<p>#include &lt;File.au3&gt;<br />#include &lt;Array.au3&gt;<br />#include &lt;String.au3&gt;<br />#include &lt;Process.au3&gt;</p>
<p><br />_RunDOS( "dir /AD /B /OD &gt; logs.txt" )</p>
<p>$file = FileOpen("logs.txt", 0)</p>
<p>; Check if file opened for reading OK<br />If $file = -1 Then<br /> MsgBox(0, "Error", "Unable to open file.")<br /> Exit<br />EndIf</p>
<p>; Read in lines of text until the EOF is reached<br />While 1<br /> $line = FileReadLine($file)<br /> If @error = -1 Then ExitLoop<br /> ;MsgBox(0, "Line read:", $line)<br /> $readme = FileOpen( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp; "readme.txt", 1)<br /> If $readme = -1 Then<br /> MsgBox(0, "Error", "Unable to open file.")<br /> Exit<br /> EndIf<br /> FileClose($readme)<br /> ;修改時間<br /> ;找看看有沒有AVI檔案<br /> $search = FileFindFirstFile( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;"*.avi" )<br /> If $search = -1 Then<br /> $search = FileFindFirstFile( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;"*.mp4" )<br /> If $search = -1 Then<br /> $search = FileFindFirstFile( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;"*.wmv" )<br /> If $search = -1 Then<br /> ContinueLoop<br /> EndIf<br /> EndIf<br /> EndIf<br /> $movie_file = FileFindNextFile($search);第一個影片檔案名稱<br /> $FileTime = FileGetTime ( @WorkingDir &amp; "\" &amp; $line &amp; "\" &amp;$movie_file , 0 , 1 );取出影片的日期</p>
<p>FileSetTime ( @WorkingDir &amp; "\" &amp; $line , $FileTime , 0 , 1 );type: 0 = Modified (default), 1 = Created, 2 = Accessed "YYYYMMDDHHMMSS"<br /> FileSetTime ( @WorkingDir &amp; "\" &amp; $line , $FileTime , 1 , 1 );type: 0 = Modified (default), 1 = Created, 2 = Accessed $YYYYMMDDHHMMSS = $FileTime[]<br /> FileSetTime ( @WorkingDir &amp; "\" &amp; $line , $FileTime , 2 , 1 );type: 0 = Modified (default), 1 = Created, 2 = Accessed</p>
<p>FileClose($search)<br /> ;修改時間<br />Wend</p>
<p>FileClose($file)</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30859596">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30859596"></div>]]></content:encoded>
      <pubDate>Thu, 21 Jun 2012 19:55:06 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30859596#comments</comments>
    </item>
    <item>
      <title><![CDATA[Windows遠端桌面複製貼上功能失效，重新啟用方法]]></title>
      <link>http://abort.pixnet.net/blog/post/30859224</link>
      <guid>http://abort.pixnet.net/blog/post/30859224</guid>
      <description><![CDATA[Windows遠端桌面複製貼上功能失效，重新啟用方法

1.開啟工作管理員
2.強制停止rdpclip.exe
3.開始->執行
4.輸入rdpclip.exe
5.測試看看
6.完成複製貼上功能重新啟用]]></description>
      <content:encoded><![CDATA[Windows遠端桌面複製貼上功能失效，重新啟用方法<br />
<br />
1.開啟工作管理員<br />
2.強制停止rdpclip.exe<br />
3.開始->執行<br />
4.輸入rdpclip.exe<br />
5.測試看看<br />
6.完成複製貼上功能重新啟用  <div class="more"><a href="http://abort.pixnet.net/blog/post/30859224">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30859224"></div>]]></content:encoded>
      <pubDate>Thu, 21 Jun 2012 16:39:29 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30859224#comments</comments>
    </item>
    <item>
      <title><![CDATA[簡易的工作紀錄產生器--應付行政文件用的]]></title>
      <link>http://abort.pixnet.net/blog/post/30852030</link>
      <guid>http://abort.pixnet.net/blog/post/30852030</guid>
      <description><![CDATA['Date: 2012/6/19'Author: test'Description:&nbsp;
Dim IE
IE_title = "工作紀錄產生器"Set IE = WScript.CreateObject("InternetExplorer.Application","IE_")IE.Navigate "about:blank"IE.ToolBar = FalseIE.StatusBar = FalseIE.Resizable = FalseIE.Height = 450IE.Width = 450Set screen = IE.Document.parentWindow.screenIE.Top = Int((screen.height - IE.Height) / 2)IE.Left = Int((screen.width - IE.Width) / 2)IE.Visible = TrueWith IE.Document.writeln "&lt;!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd""&gt;".writeln "&lt;html xmlns=""http://www.w3.org/1999/xhtml""&gt;".writeln "&lt;head&gt;".writeln "&lt;meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" /&gt;".writeln "&lt;title&gt;"&amp; IE_title &amp;"&lt;/title&gt;".writeln "&lt;/head&gt;".writeln "&lt;body&gt;".writeln "&lt;span&gt;工作紀錄&lt;/span&gt;&lt;br /&gt;".writeln "&lt;textarea name=""record"" id=""record"" style='border: 1px solid black;width:100%;' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' onfocus='textarea.style.posHeight=this.scrollHeight'&gt;&lt;/textarea&gt;".writeln "&lt;br /&gt;".writeln "&lt;span&gt;結果:&lt;/span&gt;&lt;br /&gt;".writeln "&lt;textarea name=""output"" id=""output"" style='border: 1px solid black;width:100%;' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' onfocus='textarea.style.posHeight=this.scrollHeight'&gt;&lt;/textarea&gt;".writeln "&lt;input type=""button"" name=""copy"" id=""copy"" value=""Copy to Clipboard"" style=""width:120px;"" /&gt;".writeln "&lt;/body&gt;".writeln "&lt;/html&gt;"End With
'IE.Document.getElementById("calculate").onclick = GetRef("calculate_youku_rss")IE.Document.getElementById("record").onkeyup = GetRef("calculate_youku_rss")'IE.Document.getElementById("copy").onclick = GetRef("copy")
DoWScript.Sleep 1000Loop
'Sub IE_OnQuit()Sub IE_OnQuit() WScript.QuitEnd Sub
'Sub copy()Sub copy() Dim output : output = Trim(IE.Document.getElementById("output").value) Set objIE = CreateObject("InternetExplorer.Application") objIE.Navigate("about:blank") objIE.document.parentwindow.clipboardData.SetData "text", output objIE.QuitEnd Sub
Sub calculate_youku_rss()
Dim record : record = Trim(IE.Document.getElementById("record").value) Dim result
If record = "" Then  Exit Sub IE.Document.getElementById("output").value = "" End If output = "#開始# "&amp; Year(Now)&amp;"/"&amp;Month(Now)&amp;"/"&amp;Day(Now) &amp;" "&amp; Hour(Now)-1 &amp;":00:00 #/開始#" &amp; vbCRLF &amp; vbCRLF output = output &amp; record output = output &amp; vbCRLF &amp; vbCRLF &amp; "#結束# "&amp; Year(Now)&amp;"/"&amp;Month(Now)&amp;"/"&amp;Day(Now) &amp;" "&amp; Hour(Now) &amp;":"&amp; Minute(Now) &amp;":"&amp; Second(Now) &amp;" #/結束#"
IE.Document.getElementById("output").value = output End Sub]]></description>
      <content:encoded><![CDATA[<p>'Date: 2012/6/19<br />'Author: test<br />'Description:&nbsp;</p>
<p>Dim IE</p>
<p>IE_title = "工作紀錄產生器"<br />Set IE = WScript.CreateObject("InternetExplorer.Application","IE_")<br />IE.Navigate "about:blank"<br />IE.ToolBar = False<br />IE.StatusBar = False<br />IE.Resizable = False<br />IE.Height = 450<br />IE.Width = 450<br />Set screen = IE.Document.parentWindow.screen<br />IE.Top = Int((screen.height - IE.Height) / 2)<br />IE.Left = Int((screen.width - IE.Width) / 2)<br />IE.Visible = True<br />With IE.Document<br />.writeln "&lt;!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd""&gt;"<br />.writeln "&lt;html xmlns=""http://www.w3.org/1999/xhtml""&gt;"<br />.writeln "&lt;head&gt;"<br />.writeln "&lt;meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"" /&gt;"<br />.writeln "&lt;title&gt;"&amp; IE_title &amp;"&lt;/title&gt;"<br />.writeln "&lt;/head&gt;"<br />.writeln "&lt;body&gt;"<br />.writeln "&lt;span&gt;工作紀錄&lt;/span&gt;&lt;br /&gt;"<br />.writeln "&lt;textarea name=""record"" id=""record"" style='border: 1px solid black;width:100%;' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' onfocus='textarea.style.posHeight=this.scrollHeight'&gt;&lt;/textarea&gt;"<br />.writeln "&lt;br /&gt;"<br />.writeln "&lt;span&gt;結果:&lt;/span&gt;&lt;br /&gt;"<br />.writeln "&lt;textarea name=""output"" id=""output"" style='border: 1px solid black;width:100%;' rows=15 onpropertychange='this.style.posHeight=this.scrollHeight' onfocus='textarea.style.posHeight=this.scrollHeight'&gt;&lt;/textarea&gt;"<br />.writeln "&lt;input type=""button"" name=""copy"" id=""copy"" value=""Copy to Clipboard"" style=""width:120px;"" /&gt;"<br />.writeln "&lt;/body&gt;"<br />.writeln "&lt;/html&gt;"<br />End With</p>
<p>'IE.Document.getElementById("calculate").onclick = GetRef("calculate_youku_rss")<br />IE.Document.getElementById("record").onkeyup = GetRef("calculate_youku_rss")<br />'IE.Document.getElementById("copy").onclick = GetRef("copy")</p>
<p>Do<br />WScript.Sleep 1000<br />Loop</p>
<p>'Sub IE_OnQuit()<br />Sub IE_OnQuit()<br /> WScript.Quit<br />End Sub</p>
<p>'Sub copy()<br />Sub copy()<br /> Dim output : output = Trim(IE.Document.getElementById("output").value)<br /> Set objIE = CreateObject("InternetExplorer.Application")<br /> objIE.Navigate("about:blank")<br /> objIE.document.parentwindow.clipboardData.SetData "text", output<br /> objIE.Quit<br />End Sub</p>
<p><br />Sub calculate_youku_rss()</p>
<p>Dim record : record = Trim(IE.Document.getElementById("record").value)<br /> Dim result</p>
<p>If record = "" Then <br /> Exit Sub<br /> IE.Document.getElementById("output").value = ""<br /> End If<br /> output = "#開始# "&amp; Year(Now)&amp;"/"&amp;Month(Now)&amp;"/"&amp;Day(Now) &amp;" "&amp; Hour(Now)-1 &amp;":00:00 #/開始#" &amp; vbCRLF &amp; vbCRLF<br /> output = output &amp; record<br /> output = output &amp; vbCRLF &amp; vbCRLF &amp; "#結束# "&amp; Year(Now)&amp;"/"&amp;Month(Now)&amp;"/"&amp;Day(Now) &amp;" "&amp; Hour(Now) &amp;":"&amp; Minute(Now) &amp;":"&amp; Second(Now) &amp;" #/結束#"</p>
<p>IE.Document.getElementById("output").value = output<br /> <br />End Sub</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30852030">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30852030"></div>]]></content:encoded>
      <pubDate>Wed, 20 Jun 2012 10:58:42 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30852030#comments</comments>
    </item>
    <item>
      <title><![CDATA[露天批次加入追蹤的javascript]]></title>
      <link>http://abort.pixnet.net/blog/post/30835352</link>
      <guid>http://abort.pixnet.net/blog/post/30835352</guid>
      <description><![CDATA[// 露天批次加入追蹤的javascript// 整理清單用的regex// 搜尋目標 .* (\()(\d+)(\)).*// 取代成為 \2// 搜尋目標 \d?\D// 取代成為 空白// 搜尋目標 \r\n// 取代成為 ","
var params = "";var url = "http://goods.ruten.com.tw/item/自己找.php";var g_no = ["11111111111111","22222222222222","33333333333333"];
for(i=0; i&lt;g_no.length; i++) { var http = new XMLHttpRequest(); http.onreadystatechange = function() { if(http.readyState == 4 &amp;&amp; http.status == 200) { //alert(http.responseText);//可以不用 } } params = "g_no="+g_no[i]; //alert(params); http.open("POST", url, true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.send(params);
var dt = new Date();//暫停用 dt.setTime(dt.getTime() + 1000);//暫停用 while (new Date().getTime() &lt; dt.getTime());//暫停用}]]></description>
      <content:encoded><![CDATA[<p>// 露天批次加入追蹤的javascript<br />// 整理清單用的regex<br />// 搜尋目標 .* (\()(\d+)(\)).*<br />// 取代成為 \2<br />// 搜尋目標 \d?\D<br />// 取代成為 空白<br />// 搜尋目標 \r\n<br />// 取代成為 ","</p>
<p>var params = "";<br />var url = "http://goods.ruten.com.tw/item/自己找.php";<br />var g_no = ["11111111111111","22222222222222","33333333333333"];</p>
<p>for(i=0; i&lt;g_no.length; i++) {<br /> var http = new XMLHttpRequest();<br /> http.onreadystatechange = function() {<br /> if(http.readyState == 4 &amp;&amp; http.status == 200) {<br /> //alert(http.responseText);//可以不用<br /> }<br /> }<br /> params = "g_no="+g_no[i];<br /> //alert(params);<br /> http.open("POST", url, true);<br /> http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");<br /> http.send(params);</p>
<p>var dt = new Date();//暫停用<br /> dt.setTime(dt.getTime() + 1000);//暫停用<br /> while (new Date().getTime() &lt; dt.getTime());//暫停用<br />}</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30835352">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30835352"></div>]]></content:encoded>
      <pubDate>Thu, 14 Jun 2012 20:31:59 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30835352#comments</comments>
    </item>
    <item>
      <title><![CDATA[塊密碼的工作模式--CTR模式]]></title>
      <link>http://abort.pixnet.net/blog/post/30834828</link>
      <guid>http://abort.pixnet.net/blog/post/30834828</guid>
      <description><![CDATA[encrypt
$blockSize = 4; //區塊大小 if(empty($plainText)) return ''; $cipherText = ''; $counterBlock = ''; $nonce = floor(microtime(true)*1000); // timestamp: milliseconds since 1-Jan-1970 [floor]Returns the next lowest integer value by rounding down value if necessary. $nonceRnd = floor(rand(0, 0xffff)); $counterBlock = substr(dechex($nonceRnd),0,1).substr(dechex($nonce),-1,1);//產生nonce  $ctrTxt = ''; $ctrTxt = $counterBlock;//開頭nonce  $blockCount = ceil(strlen($plainText)/$blockSize); for ($b=0; $b&lt;$blockCount; $b++) { //conter最後的值counterBlock共4byte $counterBlock = ''; $counterBlock = $ctrTxt. str_pad(dechex($b), 2, "0", STR_PAD_LEFT);//最後2碼為編號 //echo nl2br("$counterBlock\n"); $cipherTextToken = ''; $cipherTextToken = blockprocess($counterBlock,$cipherKey); //echo nl2br("$cipherTextToken\n"); $blockLength = $b&lt;$blockCount-1 ? $blockSize : (strlen($plainText)-1)%$blockSize+1;
for ($i=0; $i&lt;$blockLength; $i++) {  $XORcipherTextToken = substr($cipherTextToken, $i, 1) ^ ord(substr($plainText, $b*$blockSize+$i, 1)); $cipherText .= chr($XORcipherTextToken); } } //echo $ctrTxt.$cipherText; return base64_encode($ctrTxt.$cipherText);
&nbsp;
decrypt
$blockSize = 4;
if(empty($cipherText)) return ''; $plainText = ''; $cipherText = base64_decode($cipherText); $ctrTxt = substr($cipherText,0,2);//前20為nonce $cipherText = substr($cipherText,2,strlen($cipherText));//剩下的
$blockCount = ceil(strlen($cipherText)/$blockSize); for ($b=0; $b&lt;$blockCount; $b++) { //conter最後的值counterBlock共4byte $counterBlock = ''; $counterBlock = $ctrTxt. str_pad(dechex($b), 2, "0", STR_PAD_LEFT);//最後4碼為編號
$cipherTextToken = blockprocess($counterBlock,$cipherKey);
$blockLength = $b&lt;$blockCount-1 ? $blockSize : (strlen($cipherText)-1)%$blockSize+1;
for ($i=0; $i&lt;$blockLength; $i++) {  $XORcipherTextToken = substr($cipherTextToken, $i, 1) ^ ord(substr($cipherText, $b*$blockSize+$i, 1)); $plainText .= chr($XORcipherTextToken); } }  return $plainText;]]></description>
      <content:encoded><![CDATA[<p>encrypt</p>
<p>$blockSize = 4; //區塊大小<br /> if(empty($plainText))<br /> return '';<br /> $cipherText = '';<br /> $counterBlock = '';<br /> $nonce = floor(microtime(true)*1000); // timestamp: milliseconds since 1-Jan-1970 [floor]Returns the next lowest integer value by rounding down value if necessary.<br /> $nonceRnd = floor(rand(0, 0xffff));<br /> $counterBlock = substr(dechex($nonceRnd),0,1).substr(dechex($nonce),-1,1);//產生nonce<br /> <br /> $ctrTxt = '';<br /> $ctrTxt = $counterBlock;//開頭nonce<br /> <br /> $blockCount = ceil(strlen($plainText)/$blockSize);<br /> for ($b=0; $b&lt;$blockCount; $b++) {<br /> //conter最後的值counterBlock共4byte<br /> $counterBlock = '';<br /> $counterBlock = $ctrTxt. str_pad(dechex($b), 2, "0", STR_PAD_LEFT);//最後2碼為編號<br /> //echo nl2br("$counterBlock\n");<br /> $cipherTextToken = '';<br /> $cipherTextToken = blockprocess($counterBlock,$cipherKey);<br /> //echo nl2br("$cipherTextToken\n");<br /> $blockLength = $b&lt;$blockCount-1 ? $blockSize : (strlen($plainText)-1)%$blockSize+1;</p>
<p>for ($i=0; $i&lt;$blockLength; $i++) { <br /> $XORcipherTextToken = substr($cipherTextToken, $i, 1) ^ ord(substr($plainText, $b*$blockSize+$i, 1));<br /> $cipherText .= chr($XORcipherTextToken);<br /> }<br /> }<br /> //echo $ctrTxt.$cipherText;<br /> return base64_encode($ctrTxt.$cipherText);</p>
<p>&nbsp;</p>
<p>decrypt</p>
<p>$blockSize = 4;</p>
<p>if(empty($cipherText))<br /> return '';<br /> $plainText = '';<br /> $cipherText = base64_decode($cipherText);<br /> $ctrTxt = substr($cipherText,0,2);//前20為nonce<br /> $cipherText = substr($cipherText,2,strlen($cipherText));//剩下的</p>
<p>$blockCount = ceil(strlen($cipherText)/$blockSize);<br /> for ($b=0; $b&lt;$blockCount; $b++) {<br /> //conter最後的值counterBlock共4byte<br /> $counterBlock = '';<br /> $counterBlock = $ctrTxt. str_pad(dechex($b), 2, "0", STR_PAD_LEFT);//最後4碼為編號</p>
<p>$cipherTextToken = blockprocess($counterBlock,$cipherKey);</p>
<p>$blockLength = $b&lt;$blockCount-1 ? $blockSize : (strlen($cipherText)-1)%$blockSize+1;</p>
<p>for ($i=0; $i&lt;$blockLength; $i++) { <br /> $XORcipherTextToken = substr($cipherTextToken, $i, 1) ^ ord(substr($cipherText, $b*$blockSize+$i, 1));<br /> $plainText .= chr($XORcipherTextToken);<br /> }<br /> }<br /> <br /> return $plainText;</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30834828">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30834828"></div>]]></content:encoded>
      <pubDate>Thu, 14 Jun 2012 16:04:50 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30834828#comments</comments>
    </item>
    <item>
      <title><![CDATA[HipHop Thrift Folly]]></title>
      <link>http://abort.pixnet.net/blog/post/30807624</link>
      <guid>http://abort.pixnet.net/blog/post/30807624</guid>
      <description><![CDATA[HipHop
https://github.com/facebook/hiphop-php/wiki/

Thrift
http://thrift.apache.org/

Folly
https://github.com/facebook/folly]]></description>
      <content:encoded><![CDATA[HipHop<br />
https://github.com/facebook/hiphop-php/wiki/<br />
<br />
Thrift<br />
http://thrift.apache.org/<br />
<br />
Folly<br />
https://github.com/facebook/folly  <div class="more"><a href="http://abort.pixnet.net/blog/post/30807624">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30807624"></div>]]></content:encoded>
      <pubDate>Tue, 05 Jun 2012 15:42:07 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30807624#comments</comments>
    </item>
    <item>
      <title><![CDATA[SQLServer 2000 發生錯誤1069 由於登入失敗而無法啟動服務 解法]]></title>
      <link>http://abort.pixnet.net/blog/post/30806942</link>
      <guid>http://abort.pixnet.net/blog/post/30806942</guid>
      <description><![CDATA[SQLServer 2000 發生錯誤1069 由於登入失敗而無法啟動服務 解法

1.
[控制台]->[系統管理工具]->[服務]，[MSSQLSERVER]，再按滑鼠右鍵
視窗[MSSQLSERVER內容]選擇 [登入] 輸入administrator的帳號跟密碼
2.
重新啟動[MSSQLSERVER]
3.
SQL AGENT同樣重設 [登入] 視窗的administrator的帳號跟密碼
4.
重新啟動[SQL AGENT]
]]></description>
      <content:encoded><![CDATA[SQLServer 2000 發生錯誤1069 由於登入失敗而無法啟動服務 解法<br />
<br />
1.<br />
[控制台]->[系統管理工具]->[服務]，[MSSQLSERVER]，再按滑鼠右鍵<br />
視窗[MSSQLSERVER內容]選擇 [登入] 輸入administrator的帳號跟密碼<br />
2.<br />
重新啟動[MSSQLSERVER]<br />
3.<br />
SQL AGENT同樣重設 [登入] 視窗的administrator的帳號跟密碼<br />
4.<br />
重新啟動[SQL AGENT]<br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/30806942">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30806942"></div>]]></content:encoded>
      <pubDate>Tue, 05 Jun 2012 10:44:18 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30806942#comments</comments>
    </item>
    <item>
      <title><![CDATA[命令列輸出日期格式YYYYMMDD]]></title>
      <link>http://abort.pixnet.net/blog/post/30804422</link>
      <guid>http://abort.pixnet.net/blog/post/30804422</guid>
      <description><![CDATA[命令列輸出日期格式YYYYMMDD



C:\>echo %date:~0,4%%date:~5,2%%date:~8,2%
輸出結果:20120603]]></description>
      <content:encoded><![CDATA[命令列輸出日期格式YYYYMMDD<br />
<br />
<br />
<br />
C:\>echo %date:~0,4%%date:~5,2%%date:~8,2%<br />
輸出結果:20120603  <div class="more"><a href="http://abort.pixnet.net/blog/post/30804422">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30804422"></div>]]></content:encoded>
      <pubDate>Mon, 04 Jun 2012 17:26:04 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30804422#comments</comments>
    </item>
    <item>
      <title><![CDATA[WINDOWS 呼叫螢幕虛擬鍵盤]]></title>
      <link>http://abort.pixnet.net/blog/post/30793766</link>
      <guid>http://abort.pixnet.net/blog/post/30793766</guid>
      <description><![CDATA[WINDOWS 呼叫螢幕虛擬鍵盤



1.開始->執行


2.輸入[OSK]，On-Screen Keyboard

3.成功執行螢幕小鍵盤
]]></description>
      <content:encoded><![CDATA[WINDOWS 呼叫螢幕虛擬鍵盤<br />
<br />
<br />
<br />
1.開始->執行<br />
<br />
<br />
2.輸入[OSK]，On-Screen Keyboard<br />
<br />
3.成功執行螢幕小鍵盤<br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/30793766">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30793766"></div>]]></content:encoded>
      <pubDate>Fri, 01 Jun 2012 15:42:38 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30793766#comments</comments>
    </item>
    <item>
      <title><![CDATA[APACHE限制EXE附檔名存取]]></title>
      <link>http://abort.pixnet.net/blog/post/30779424</link>
      <guid>http://abort.pixnet.net/blog/post/30779424</guid>
      <description><![CDATA[APACHE限制EXE附檔名存取&lt;Files ~ "\.exe$"&gt;Order allow,denyDeny from all&lt;/Files&gt;]]></description>
      <content:encoded><![CDATA[<p>APACHE限制EXE附檔名存取<br /><br /><br /><span>&lt;Files ~ "\.exe$"&gt;</span><br /><span>Order allow,deny</span><br /><span>Deny from all</span><br /><span>&lt;/Files&gt;</span></p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30779424">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30779424"></div>]]></content:encoded>
      <pubDate>Mon, 28 May 2012 17:40:27 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30779424#comments</comments>
    </item>
    <item>
      <title><![CDATA[看懂簡體字的四大原則]]></title>
      <link>http://abort.pixnet.net/blog/post/30680230</link>
      <guid>http://abort.pixnet.net/blog/post/30680230</guid>
      <description><![CDATA[看懂簡體字的四大原則
 
第一種﹑字形簡化：將複雜的字形，直接去掉一部份偏旁 

1.去掉上邊、上左、上+左、上右、上+右： 
开(開)..关(関)..关(關)..斗(鬦)..辟(闢)..灭(滅)..儿(兒)..云(雲)..向(嚮)..冬(鼕) 
松(鬆)..胡(鬍)..须(鬚)..熏(薰)..垦(墾)..恳(懇)..飨(饗)..启(啟)..盘(盤) 

2.去掉下邊、下左、下+左、下右、下+右： 
厂(廠)..广(廣)..扩(擴)..产(産)..萨(薩)..严(嚴)..飞(飛)..气(氣)..业(業)..巩(鞏) 
丽(麗)..制(製)..御(禦)..筑(築)..涂(塗)..准(準)..回(迴)..卢(盧)..芦(蘆)..庐(廬) 
泸(瀘)..驴(驢)..沪(滬)..雾(霧)..爷(爺)..节(節)..茧(繭)..岭(嶺)..声(聲)..医(醫) 
习(習)..丰(豐)..艳(艷)..宝(寶)..击(擊)..凿(鑿)..屉(屜) 

3.去掉左邊、左上、左+上、左下、左+下： 
亏(虧)..隶(隸)..务(務)..条(條)..誊(謄)..面(麵)..曲(麯)..致(緻)..志(誌)..朱(硃) 
录(錄)..表(錶)..采(採)..余(餘)..卷(捲)..困(睏)..夸(誇)..咸(鹹)..里(裡)..舍(捨) 
家(傢)..象(像)..蔑(衊)..秋(鞦)..系(係)..赞(讚)..复(復)..复(複)..复(覆)..蒙(矇) 
蒙(濛)..蒙(懞)..仿(彷)..佛(彿)..台(颱)..点(點)..肮(骯)..郑(鄭)..干(幹) 

4.去掉右邊、右上、右+上、右下、右+下： 
虽(雖)..亩(畝)..类(類)..杀(殺)..号(號)..离(離)..壳(殼)..挂(掛)..亲(親)..吨(噸) 
涩(澀)..竞(競)..际(際)..标(標)..时(時)..孙(孫)..逊(遜)..独(獨)..浊(濁)..触(觸) 
积(積)..汹(洶)..赶(趕)..秆(稈)..贮(貯)..涌(湧)..踊(踴)..妇(婦)..扫(掃) 

5.去掉中間、兩邊： 
寻(尋)..宁(寧)..奋(奮)..粪(糞)..夺(奪)..虑(慮)..虏(虜)..弃(棄)..累(纍)..疟(瘧) 
吴(吳)..汇(匯)..齿(齒)..随(隨)..堕(墮)..眯(瞇)..术(術)..卫(衛)..昙(曇)..团(團) 

6.以一點或一畫代替一部份偏旁字形 
单(單)..兽(獸)..肃(肅)..渊(淵)..伞(傘)..丧(喪)..办(辦)..协(協)..举(舉)..学(學) 
带(帶)..电(電)..审(審)..币(幣)..袄(襖)..敌(敵)..适(適)..爱(愛)..处(處)..系(繫) 
线(綫)..钱(錢)..丝(絲)..鱼(魚)..脑(腦)..乐(樂)..礼(禮)..么(麼) 

　
第二種﹑字音簡化：用近似音的簡單字形取代複雜字形 

※大陸用羅馬拼音法，沒有第幾聲的差別！ 

1.以相同音(括弧內左邊)的簡單字形取代右邊複雜字形的某部分偏旁 
达(大-達)..据(居-據)..础(出-礎)..辽(了-遼)..疗(了-療)..构(勾-構)..进(井-進) 
极(及-極)..华(化-華)..毕(比-畢)..毙(比-斃)..运(云-運)..酝(云-醞)..粮(良-糧) 
递(弟-遞)..织(只-織)..远(元-遠)..园(元-園)..佣(用-傭)..拥(用-擁)..签(佥-籤) 
亿(乙-億)..忆(乙-憶)..艺(乙-藝)..战(占-戰)..毡(占-氈)..惧(具-懼)..胜(生-勝) 
认(人-認)..宾(兵-賓)..态(太-態)..栖(西-棲)..牺(西-犧)..征(正-徵)..惩(征-懲) 
肤(夫-膚)..胶(交-膠)..邮(由-郵)..迁(千-遷)..忏(千-懺)..歼(千-殲)..纤(千-纖) 
范(氾-範)..帮(邦-幫)..窜(串-竄)..犹(尤-猶)..优(尤-優)..忧(尤-憂)..扰(尤-擾) 
窍(巧-竅)..宪(先-憲)..虾(下-蝦)..吓(下-嚇)..担(旦-擔)..胆(旦-膽)..舰(見-艦) 
苹(平-蘋)..样(羊-樣)..痒(羊-癢)..怜(令-憐)..邻(令-鄰)..叽(几-嘰)..机(几-機) 
眯(米-瞇)..阶(介-階)..补(卜-補)..跃(夭-躍)..袄(夭-襖)..迟(尺-遲)..韵(勻-韻) 
桩(庄-樁)..赃(庄-贓)..历(力-曆)..历(力-歷)..钟(中-鐘)..钟(中-鍾)..种(中-種) 

2.以近似音(括弧內左邊)的簡單字形取代右邊複雜字形的某部分偏旁 
讲(井-講)..酿(良-釀)..选(先-選)..厅(丁-廳)..窃(切-竊)..彻(切-徹)..岂(已-豈) 
皑(已-皚)..扑(卜-撲)..朴(卜-樸)..仆(卜-僕)..价(介-價)..识(只-識)..灯(丁-燈) 
灿(山-燦)..炖(屯-燉)..拟(以-擬)..衬(寸-襯)..钥(月-鑰)..让(上-讓)..淀(定-澱) 
坟(文-墳)..脏(庄-髒)..坝(貝-壩)..钻(占-鑽)..块(夬-塊)..瓮(公-甕) 

3.以相同音或近似音的簡單字形(或稍微更改)來取代全部的繁體字形 
杰(杰-傑)..向(向-嚮)..千(千-韆)..丑(丑-醜)..出(出-齣)..谷(谷-穀)..冲(冲-衝) 
干(干-乾)..干(干-幹)..后(后-後)..吁(吁-籲)..于(于-於)..刮(刮-颳)..姜(姜-薑) 
别(别-彆)..板(板-闆)..划(划-劃)..折(折-摺)..喂(喂-餵)..霉(霉-黴)..郁(郁-鬱) 
惊(京-驚)..矾(凡-礬)..牦(毛-犛)..护(戶-護)..响(向-響)..丛(从-叢)..卜(卜-蔔)
 
第三種﹑字義簡化：用近似意義的簡單字形取代複雜字形 

1.改回字義相同但筆畫較少的古體字（及其延伸字） 
庄(莊)..个(個)..炉(爐)..与(與)..余(餘)..园(園)..号(號)..吴(吳)..药(藥)..笋(筍) 
铁(鐵)..众(眾)..网(網)..无(無)..尘(塵)..灵(靈)..尽(盡)..凭(憑)..听(聽)..仇(讎) 
献(獻)..勋(勳)..国(國)..画(畫)..衅(釁)..声(聲)..洼(窪)..乱(亂)..辞(舌-辭) 
万(萬)..厉(万-厲)..迈(万-邁)..励(万-勵)，腊(臘)..蜡(昔-蠟)..猎(昔-獵) 
从(從)..耸(从-聳)..怂(从-慫)..纵(从-縱) 

2.借用字義不同但筆畫較少的古體字（及其延伸字） 
叶(葉)..圣(聖)..洁(潔)..愿(願)..怀(懷)..体(體)..台(臺)..洒(灑)..晒(曬)..垒(壘) 
龙(龍)..袭(龙-襲)..龚(龙-龔)..珑(龙-瓏)，尔(爾)..玺(尔-璽)..弥(尔-彌) 
几(幾)..机(几-機)..讥(几-譏)..饥(几-饑)..叽(几-嘰) 

3.用一個近似意義的簡單字形取代複雜字形 
阳(日即太陽-陽)..阴(月即太陰-陰)..队(是人就要排隊-隊)..伤(身受力-傷) 
笔(毛澤東認為筆只能用毛來作-筆)..穷(力困於穴內-窮)..杂(木太多-雜) 
泪(目之水-淚)..帘(窗之巾-簾)..蚕(天之虫-蠶)..牵(比牛大才能牽牛走-牽) 
灾(室內有火會成災-災)..旧(過一日後-舊)..窑(燒缶之處-窯)..图(？-圖) 
兰(？-蘭)..栏(兰-欄)..烂(兰-爛)..拦(攔)，义(？-義)..议(义-議)..蚁(义-蟻)
 
第四種﹑筆畫簡化：將複雜的筆畫改成簡單的筆畫 

1.同一系列偏旁字形改成同一形狀 
金(金)..银(銀)..铺(鋪)..衔(銜)，易(易)..场(場)..杨(楊)..汤(湯)..伤(傷) 
言(言)..计(計)..狱(獄)..辩(辯)，食(食)..饮(飲)..饭(飯)..馆(館)..飨(饗) 
睪(睪)..择(擇)..译(譯)..绎(繹)，臣(臣)..临(臨)..览(覽)..紧(緊)..监(監) 
仑(侖)..论(論)..轮(輪)，仓(倉)..创(創)..枪(槍)，娄(婁)..楼(樓)..数(數) 
车(車)..连(連)..军(軍)，专(專)..传(傳)..转(轉)，东(東)..陈(陳)..拣(揀) 
马(馬)..驻(駐)，尧(堯)..挠(撓)..饶(饒)，鸟(鳥)..莺(鶯)..鸭(鴨)..鸡(雞) 
长(長)..张(張)，见(見)..规(規)..现(現)，贝(貝)..项(項)..则(則)..员(員) 
继(繼)..断(斷)，门(門)..间(間)..闹(鬧)，韦(韋)..伟(偉)..苇(葦)..围(圍) 
营(營)..荣(榮)，买(買)..卖(賣)..续(續)，变(變)..峦(巒)..恋(戀)..銮(鑾) 
来(來)..狭(狹)，发(發)..拨(撥)..废(廢)，佥(僉)..险(險)..剑(劍)..签(簽) 
总(總)..聪(聰)，录(錄)..禄(祿)..绿(綠)，当(當)..当(噹)..挡(擋)..档(檔) 
经(經)..劲(勁)，识(識)..织(織)，窝(窩)..锅(鍋)，黾(黽)..蝇(蠅)..绳(繩) 
报(報)..执(執)，热(熱)..势(勢)，隐(隱)..瘾(癮)，搀(攙)..谗(讒)..馋(饞) 
县(縣)..悬(懸)，备(備)..惫(憊)，绉(縐)..皱(皺)..趋(趨)..雏(雛) 

2.不同系列偏旁字形改成同一形狀，要注意分辨 
对(對)..树(樹)..仅(僅)..邓(鄧)..汉(漢)..叹(歎)..权(權)..劝(勸)..鸡(雞)..戏(戲) 
凤(鳳)..双(雙)..圣(聖)..茎(莖)..择(擇)，尽(盡)..枣(棗)..馋(饞)..搀(攙)..谗(讒) 
并(並)..亚(亞)..恶(惡)..壶(壺)..晋(晉)..严(嚴)..显(顯)..湿(濕)，应(應)..佥(僉) 
运(運)..动(動)..会(會)..坛(壇)..层(層)..尝(嘗)..酝(醞)，还(還)..怀(懷)..坏(壞) 
卢(盧)..泸(瀘)..芦(蘆)..庐(廬)..驴(驢)..沪(滬)..护(護)，头(頭)..买(買)..实(實) 
卤(鹵)..冈(岡)..区(區)..风(風)..赵(趙)..网(網)，养(養)..桥(橋)..齐(齊)..斋(齋) 
边(邊)..伤(傷)..为(爲)..穷(窮)..办(辦)..协(協)，轰(轟)..聂(聶)..摄(攝)..镊(鑷) 
异(異)..导(導)，惊(驚)..琼(瓊)，罗(羅)..岁(歲)，归(歸)..师(師)..帅(帥) 
击(擊)..陆(陸)，庙(廟)..届(屆)，这(這)..刘(劉)，敌(敵)..乱(亂)..辞(辭) 
称(稱)..弥(彌)，苏(蘇)..苏(甦)，获(獲)..获(穫)，发(髮)..发(發) 

3.其他筆畫簡化字 
柜(櫃)..龟(龜)..袜(襪)..梦(夢)..确(確)..盖(蓋)..过(過)..猪(豬)..猫(貓)..满(滿) 
换(換)..顾(顧)..墙(牆)..属(屬)..党(黨)..缠(纏)..寿(壽)..筹(籌)..罢(罷)..摆(擺) 
农(農)..浓(濃)..争(爭)..睁(睜)..挣(掙)
 
附註：以下這些字已經散見於上述的四大原則之中， 
重複提出只是提醒大家注意，仔細分辨清楚！ 

1.簡化以後跟原來已有的字重複，很難分辨 
曲(麯)..面(麵)..咸(鹹)..志(誌)..致(緻)..余(餘)..困(睏)..夸(誇)..采(採)..里(裡) 
朱(硃)..舍(捨)..台(颱)..秋(鞦)..卷(捲)..蔑(衊)..表(錶)..家(傢)..象(像)..回(迴) 
胡(鬍)..须(鬚)..松(鬆)..向(嚮)..云(雲)..斗(鬦)..冬(鼕)..么(麼)..制(製)..御(禦) 
辟(闢)..准(準)..涂(塗)..涌(湧)..熏(薰)..仿(彷)..佛(彿)..干(幹)..累(纍)..冲(衝) 
千(韆)..卜(蔔)..出(齣)..丑(醜)..后(後)..吁(籲)..郁(鬱)..姜(薑)..于(於)..谷(穀) 
板(闆)..别(彆)..刮(颳)..折(摺)..沈(瀋)..喂(餵)..霉(黴)..赞(讚) 

2.兩個字都簡化以後互相重複，很難分辨 
苏(蘇)..苏(甦)，获(獲)..获(穫)，发(髮)..发(發)，蒙(矇)..蒙(濛)..蒙(懞) 
干(乾)..干(幹)，钟(鍾)..钟(鐘)，签(簽)..签(籤)，复(復)..复(複)..复(覆) 
系(繫)..系(係) 

3.兩個字都簡化以後形狀類似，要注意分辨 
书(書)..韦(韋)，并(並)..亚(亞)，龟(龜)..黾(黽)，为(爲)..办(辦)..苏(蘇) 
厂(廠)..广(廣)，庆(慶)..厌(厭)，压(壓)..庄(莊)，异(異)..导(導)..岂(豈) 
究(究)..穷(窮)，宙(宙)..审(審)，县(縣)..昙(曇)，鱼(魚)..龟(龜)..备(備) 
挚(摯)..势(勢)，历(曆)..历(歷)..厉(厲)，迟(遲)..尽(盡)..昼(晝) 

4.特殊例子，請注意其區別 
并(並)..亚(亞)，书(書)..昼(晝)..画(畫)，卤(鹵)..咸(鹹)..碱(鹼)..盐(鹽) 
麦(麥)..曲(麯)，热(熱)..陆(陸)..睦(睦)，参(參)..垒(壘)..叠(疊)..累(纍) 
将(將)..奖(獎)，写(寫)..泻(瀉)..舄(潟)，庆(慶)..厌(厭)..压(壓)..庄(莊) 
击(擊)..系(繫)，齐(齊)..斋(齋)，环(環)..缳(繯)，钻(鑽)..缵(纘)..赞(讚) 
兰(蘭)..澜(瀾)，衬(襯)..榇(櫬)，赏(賞)..尝(嘗) 

※以上資料包含於大陸「常用字2500字」及「次常用字1000字」之中 
※整理於2006.05.14，歡迎轉載散播，造福人群。
 
補充說明： 
第三種原則中的所謂「古體字」， 就是從「康熙字典」上可以查得到的字。
 
 
 
]]></description>
      <content:encoded><![CDATA[看懂簡體字的四大原則<br />
 <br />
第一種﹑字形簡化：將複雜的字形，直接去掉一部份偏旁 <br />
<br />
1.去掉上邊、上左、上+左、上右、上+右： <br />
开(開)..关(関)..关(關)..斗(鬦)..辟(闢)..灭(滅)..儿(兒)..云(雲)..向(嚮)..冬(鼕) <br />
松(鬆)..胡(鬍)..须(鬚)..熏(薰)..垦(墾)..恳(懇)..飨(饗)..启(啟)..盘(盤) <br />
<br />
2.去掉下邊、下左、下+左、下右、下+右： <br />
厂(廠)..广(廣)..扩(擴)..产(産)..萨(薩)..严(嚴)..飞(飛)..气(氣)..业(業)..巩(鞏) <br />
丽(麗)..制(製)..御(禦)..筑(築)..涂(塗)..准(準)..回(迴)..卢(盧)..芦(蘆)..庐(廬) <br />
泸(瀘)..驴(驢)..沪(滬)..雾(霧)..爷(爺)..节(節)..茧(繭)..岭(嶺)..声(聲)..医(醫) <br />
习(習)..丰(豐)..艳(艷)..宝(寶)..击(擊)..凿(鑿)..屉(屜) <br />
<br />
3.去掉左邊、左上、左+上、左下、左+下： <br />
亏(虧)..隶(隸)..务(務)..条(條)..誊(謄)..面(麵)..曲(麯)..致(緻)..志(誌)..朱(硃) <br />
录(錄)..表(錶)..采(採)..余(餘)..卷(捲)..困(睏)..夸(誇)..咸(鹹)..里(裡)..舍(捨) <br />
家(傢)..象(像)..蔑(衊)..秋(鞦)..系(係)..赞(讚)..复(復)..复(複)..复(覆)..蒙(矇) <br />
蒙(濛)..蒙(懞)..仿(彷)..佛(彿)..台(颱)..点(點)..肮(骯)..郑(鄭)..干(幹) <br />
<br />
4.去掉右邊、右上、右+上、右下、右+下： <br />
虽(雖)..亩(畝)..类(類)..杀(殺)..号(號)..离(離)..壳(殼)..挂(掛)..亲(親)..吨(噸) <br />
涩(澀)..竞(競)..际(際)..标(標)..时(時)..孙(孫)..逊(遜)..独(獨)..浊(濁)..触(觸) <br />
积(積)..汹(洶)..赶(趕)..秆(稈)..贮(貯)..涌(湧)..踊(踴)..妇(婦)..扫(掃) <br />
<br />
5.去掉中間、兩邊： <br />
寻(尋)..宁(寧)..奋(奮)..粪(糞)..夺(奪)..虑(慮)..虏(虜)..弃(棄)..累(纍)..疟(瘧) <br />
吴(吳)..汇(匯)..齿(齒)..随(隨)..堕(墮)..眯(瞇)..术(術)..卫(衛)..昙(曇)..团(團) <br />
<br />
6.以一點或一畫代替一部份偏旁字形 <br />
单(單)..兽(獸)..肃(肅)..渊(淵)..伞(傘)..丧(喪)..办(辦)..协(協)..举(舉)..学(學) <br />
带(帶)..电(電)..审(審)..币(幣)..袄(襖)..敌(敵)..适(適)..爱(愛)..处(處)..系(繫) <br />
线(綫)..钱(錢)..丝(絲)..鱼(魚)..脑(腦)..乐(樂)..礼(禮)..么(麼) <br />
<br />
　<br />
第二種﹑字音簡化：用近似音的簡單字形取代複雜字形 <br />
<br />
※大陸用羅馬拼音法，沒有第幾聲的差別！ <br />
<br />
1.以相同音(括弧內左邊)的簡單字形取代右邊複雜字形的某部分偏旁 <br />
达(大-達)..据(居-據)..础(出-礎)..辽(了-遼)..疗(了-療)..构(勾-構)..进(井-進) <br />
极(及-極)..华(化-華)..毕(比-畢)..毙(比-斃)..运(云-運)..酝(云-醞)..粮(良-糧) <br />
递(弟-遞)..织(只-織)..远(元-遠)..园(元-園)..佣(用-傭)..拥(用-擁)..签(佥-籤) <br />
亿(乙-億)..忆(乙-憶)..艺(乙-藝)..战(占-戰)..毡(占-氈)..惧(具-懼)..胜(生-勝) <br />
认(人-認)..宾(兵-賓)..态(太-態)..栖(西-棲)..牺(西-犧)..征(正-徵)..惩(征-懲) <br />
肤(夫-膚)..胶(交-膠)..邮(由-郵)..迁(千-遷)..忏(千-懺)..歼(千-殲)..纤(千-纖) <br />
范(氾-範)..帮(邦-幫)..窜(串-竄)..犹(尤-猶)..优(尤-優)..忧(尤-憂)..扰(尤-擾) <br />
窍(巧-竅)..宪(先-憲)..虾(下-蝦)..吓(下-嚇)..担(旦-擔)..胆(旦-膽)..舰(見-艦) <br />
苹(平-蘋)..样(羊-樣)..痒(羊-癢)..怜(令-憐)..邻(令-鄰)..叽(几-嘰)..机(几-機) <br />
眯(米-瞇)..阶(介-階)..补(卜-補)..跃(夭-躍)..袄(夭-襖)..迟(尺-遲)..韵(勻-韻) <br />
桩(庄-樁)..赃(庄-贓)..历(力-曆)..历(力-歷)..钟(中-鐘)..钟(中-鍾)..种(中-種) <br />
<br />
2.以近似音(括弧內左邊)的簡單字形取代右邊複雜字形的某部分偏旁 <br />
讲(井-講)..酿(良-釀)..选(先-選)..厅(丁-廳)..窃(切-竊)..彻(切-徹)..岂(已-豈) <br />
皑(已-皚)..扑(卜-撲)..朴(卜-樸)..仆(卜-僕)..价(介-價)..识(只-識)..灯(丁-燈) <br />
灿(山-燦)..炖(屯-燉)..拟(以-擬)..衬(寸-襯)..钥(月-鑰)..让(上-讓)..淀(定-澱) <br />
坟(文-墳)..脏(庄-髒)..坝(貝-壩)..钻(占-鑽)..块(夬-塊)..瓮(公-甕) <br />
<br />
3.以相同音或近似音的簡單字形(或稍微更改)來取代全部的繁體字形 <br />
杰(杰-傑)..向(向-嚮)..千(千-韆)..丑(丑-醜)..出(出-齣)..谷(谷-穀)..冲(冲-衝) <br />
干(干-乾)..干(干-幹)..后(后-後)..吁(吁-籲)..于(于-於)..刮(刮-颳)..姜(姜-薑) <br />
别(别-彆)..板(板-闆)..划(划-劃)..折(折-摺)..喂(喂-餵)..霉(霉-黴)..郁(郁-鬱) <br />
惊(京-驚)..矾(凡-礬)..牦(毛-犛)..护(戶-護)..响(向-響)..丛(从-叢)..卜(卜-蔔)<br />
 <br />
第三種﹑字義簡化：用近似意義的簡單字形取代複雜字形 <br />
<br />
1.改回字義相同但筆畫較少的古體字（及其延伸字） <br />
庄(莊)..个(個)..炉(爐)..与(與)..余(餘)..园(園)..号(號)..吴(吳)..药(藥)..笋(筍) <br />
铁(鐵)..众(眾)..网(網)..无(無)..尘(塵)..灵(靈)..尽(盡)..凭(憑)..听(聽)..仇(讎) <br />
献(獻)..勋(勳)..国(國)..画(畫)..衅(釁)..声(聲)..洼(窪)..乱(亂)..辞(舌-辭) <br />
万(萬)..厉(万-厲)..迈(万-邁)..励(万-勵)，腊(臘)..蜡(昔-蠟)..猎(昔-獵) <br />
从(從)..耸(从-聳)..怂(从-慫)..纵(从-縱) <br />
<br />
2.借用字義不同但筆畫較少的古體字（及其延伸字） <br />
叶(葉)..圣(聖)..洁(潔)..愿(願)..怀(懷)..体(體)..台(臺)..洒(灑)..晒(曬)..垒(壘) <br />
龙(龍)..袭(龙-襲)..龚(龙-龔)..珑(龙-瓏)，尔(爾)..玺(尔-璽)..弥(尔-彌) <br />
几(幾)..机(几-機)..讥(几-譏)..饥(几-饑)..叽(几-嘰) <br />
<br />
3.用一個近似意義的簡單字形取代複雜字形 <br />
阳(日即太陽-陽)..阴(月即太陰-陰)..队(是人就要排隊-隊)..伤(身受力-傷) <br />
笔(毛澤東認為筆只能用毛來作-筆)..穷(力困於穴內-窮)..杂(木太多-雜) <br />
泪(目之水-淚)..帘(窗之巾-簾)..蚕(天之虫-蠶)..牵(比牛大才能牽牛走-牽) <br />
灾(室內有火會成災-災)..旧(過一日後-舊)..窑(燒缶之處-窯)..图(？-圖) <br />
兰(？-蘭)..栏(兰-欄)..烂(兰-爛)..拦(攔)，义(？-義)..议(义-議)..蚁(义-蟻)<br />
 <br />
第四種﹑筆畫簡化：將複雜的筆畫改成簡單的筆畫 <br />
<br />
1.同一系列偏旁字形改成同一形狀 <br />
金(金)..银(銀)..铺(鋪)..衔(銜)，易(易)..场(場)..杨(楊)..汤(湯)..伤(傷) <br />
言(言)..计(計)..狱(獄)..辩(辯)，食(食)..饮(飲)..饭(飯)..馆(館)..飨(饗) <br />
睪(睪)..择(擇)..译(譯)..绎(繹)，臣(臣)..临(臨)..览(覽)..紧(緊)..监(監) <br />
仑(侖)..论(論)..轮(輪)，仓(倉)..创(創)..枪(槍)，娄(婁)..楼(樓)..数(數) <br />
车(車)..连(連)..军(軍)，专(專)..传(傳)..转(轉)，东(東)..陈(陳)..拣(揀) <br />
马(馬)..驻(駐)，尧(堯)..挠(撓)..饶(饒)，鸟(鳥)..莺(鶯)..鸭(鴨)..鸡(雞) <br />
长(長)..张(張)，见(見)..规(規)..现(現)，贝(貝)..项(項)..则(則)..员(員) <br />
继(繼)..断(斷)，门(門)..间(間)..闹(鬧)，韦(韋)..伟(偉)..苇(葦)..围(圍) <br />
营(營)..荣(榮)，买(買)..卖(賣)..续(續)，变(變)..峦(巒)..恋(戀)..銮(鑾) <br />
来(來)..狭(狹)，发(發)..拨(撥)..废(廢)，佥(僉)..险(險)..剑(劍)..签(簽) <br />
总(總)..聪(聰)，录(錄)..禄(祿)..绿(綠)，当(當)..当(噹)..挡(擋)..档(檔) <br />
经(經)..劲(勁)，识(識)..织(織)，窝(窩)..锅(鍋)，黾(黽)..蝇(蠅)..绳(繩) <br />
报(報)..执(執)，热(熱)..势(勢)，隐(隱)..瘾(癮)，搀(攙)..谗(讒)..馋(饞) <br />
县(縣)..悬(懸)，备(備)..惫(憊)，绉(縐)..皱(皺)..趋(趨)..雏(雛) <br />
<br />
2.不同系列偏旁字形改成同一形狀，要注意分辨 <br />
对(對)..树(樹)..仅(僅)..邓(鄧)..汉(漢)..叹(歎)..权(權)..劝(勸)..鸡(雞)..戏(戲) <br />
凤(鳳)..双(雙)..圣(聖)..茎(莖)..择(擇)，尽(盡)..枣(棗)..馋(饞)..搀(攙)..谗(讒) <br />
并(並)..亚(亞)..恶(惡)..壶(壺)..晋(晉)..严(嚴)..显(顯)..湿(濕)，应(應)..佥(僉) <br />
运(運)..动(動)..会(會)..坛(壇)..层(層)..尝(嘗)..酝(醞)，还(還)..怀(懷)..坏(壞) <br />
卢(盧)..泸(瀘)..芦(蘆)..庐(廬)..驴(驢)..沪(滬)..护(護)，头(頭)..买(買)..实(實) <br />
卤(鹵)..冈(岡)..区(區)..风(風)..赵(趙)..网(網)，养(養)..桥(橋)..齐(齊)..斋(齋) <br />
边(邊)..伤(傷)..为(爲)..穷(窮)..办(辦)..协(協)，轰(轟)..聂(聶)..摄(攝)..镊(鑷) <br />
异(異)..导(導)，惊(驚)..琼(瓊)，罗(羅)..岁(歲)，归(歸)..师(師)..帅(帥) <br />
击(擊)..陆(陸)，庙(廟)..届(屆)，这(這)..刘(劉)，敌(敵)..乱(亂)..辞(辭) <br />
称(稱)..弥(彌)，苏(蘇)..苏(甦)，获(獲)..获(穫)，发(髮)..发(發) <br />
<br />
3.其他筆畫簡化字 <br />
柜(櫃)..龟(龜)..袜(襪)..梦(夢)..确(確)..盖(蓋)..过(過)..猪(豬)..猫(貓)..满(滿) <br />
换(換)..顾(顧)..墙(牆)..属(屬)..党(黨)..缠(纏)..寿(壽)..筹(籌)..罢(罷)..摆(擺) <br />
农(農)..浓(濃)..争(爭)..睁(睜)..挣(掙)<br />
 <br />
附註：以下這些字已經散見於上述的四大原則之中， <br />
重複提出只是提醒大家注意，仔細分辨清楚！ <br />
<br />
1.簡化以後跟原來已有的字重複，很難分辨 <br />
曲(麯)..面(麵)..咸(鹹)..志(誌)..致(緻)..余(餘)..困(睏)..夸(誇)..采(採)..里(裡) <br />
朱(硃)..舍(捨)..台(颱)..秋(鞦)..卷(捲)..蔑(衊)..表(錶)..家(傢)..象(像)..回(迴) <br />
胡(鬍)..须(鬚)..松(鬆)..向(嚮)..云(雲)..斗(鬦)..冬(鼕)..么(麼)..制(製)..御(禦) <br />
辟(闢)..准(準)..涂(塗)..涌(湧)..熏(薰)..仿(彷)..佛(彿)..干(幹)..累(纍)..冲(衝) <br />
千(韆)..卜(蔔)..出(齣)..丑(醜)..后(後)..吁(籲)..郁(鬱)..姜(薑)..于(於)..谷(穀) <br />
板(闆)..别(彆)..刮(颳)..折(摺)..沈(瀋)..喂(餵)..霉(黴)..赞(讚) <br />
<br />
2.兩個字都簡化以後互相重複，很難分辨 <br />
苏(蘇)..苏(甦)，获(獲)..获(穫)，发(髮)..发(發)，蒙(矇)..蒙(濛)..蒙(懞) <br />
干(乾)..干(幹)，钟(鍾)..钟(鐘)，签(簽)..签(籤)，复(復)..复(複)..复(覆) <br />
系(繫)..系(係) <br />
<br />
3.兩個字都簡化以後形狀類似，要注意分辨 <br />
书(書)..韦(韋)，并(並)..亚(亞)，龟(龜)..黾(黽)，为(爲)..办(辦)..苏(蘇) <br />
厂(廠)..广(廣)，庆(慶)..厌(厭)，压(壓)..庄(莊)，异(異)..导(導)..岂(豈) <br />
究(究)..穷(窮)，宙(宙)..审(審)，县(縣)..昙(曇)，鱼(魚)..龟(龜)..备(備) <br />
挚(摯)..势(勢)，历(曆)..历(歷)..厉(厲)，迟(遲)..尽(盡)..昼(晝) <br />
<br />
4.特殊例子，請注意其區別 <br />
并(並)..亚(亞)，书(書)..昼(晝)..画(畫)，卤(鹵)..咸(鹹)..碱(鹼)..盐(鹽) <br />
麦(麥)..曲(麯)，热(熱)..陆(陸)..睦(睦)，参(參)..垒(壘)..叠(疊)..累(纍) <br />
将(將)..奖(獎)，写(寫)..泻(瀉)..舄(潟)，庆(慶)..厌(厭)..压(壓)..庄(莊) <br />
击(擊)..系(繫)，齐(齊)..斋(齋)，环(環)..缳(繯)，钻(鑽)..缵(纘)..赞(讚) <br />
兰(蘭)..澜(瀾)，衬(襯)..榇(櫬)，赏(賞)..尝(嘗) <br />
<br />
※以上資料包含於大陸「常用字2500字」及「次常用字1000字」之中 <br />
※整理於2006.05.14，歡迎轉載散播，造福人群。<br />
 <br />
補充說明： <br />
第三種原則中的所謂「古體字」， 就是從「康熙字典」上可以查得到的字。<br />
 <br />
 <br />
 <br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/30680230">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30680230"></div>]]></content:encoded>
      <pubDate>Fri, 04 May 2012 18:52:00 +0800</pubDate>
      <category><![CDATA[其他]]></category>
      <comments>http://abort.pixnet.net/blog/post/30680230#comments</comments>
    </item>
    <item>
      <title><![CDATA[ASP數字轉成英文字]]></title>
      <link>http://abort.pixnet.net/blog/post/30680228</link>
      <guid>http://abort.pixnet.net/blog/post/30680228</guid>
      <description><![CDATA[Function retWord(ByVal Num As Decimal) As String
        'This two dimensional array store the primary word convertion of number.
        retWord = ""
        Dim ArrWordList(,) As Object = {{0, ""}, {1, "One"}, {2, "Two"}, {3, "Three"}, {4, "Four"}, _
                                        {5, "Five"}, {6, "Six"}, {7, "Seven"}, {8, "Eight"}, {9, "Nine"}, _
                                        {10, "Ten"}, {11, "Eleven"}, {12, "Twelve"}, {13, "Thirteen"}, {14, "Fourteen"}, _
                                        {15, "Fifteen"}, {16, "Sixteen"}, {17, "Seventeen"}, {18, "Eighteen"}, {19, "Nineteen"}, _
                                        {20, "Twenty"}, {30, "Thirty"}, {40, "Forty"}, {50, "Fifty"}, {60, "Sixty"}, _
                                        {70, "Seventy"}, {80, "Eighty"}, {90, "Ninety"}, {100, "Hundred"}, {1000, "Thousand"}, _
                                        {1000000, "Million"}, {1000000000, "Billion"}, {1000000000000, "Trillion"}}

        Dim i As Integer
        For i = 0 To UBound(ArrWordList)
            If Num = ArrWordList(i, 0) Then
                retWord = ArrWordList(i, 1)
                Exit For
            End If
        Next
        Return retWord
End Function
]]></description>
      <content:encoded><![CDATA[Function retWord(ByVal Num As Decimal) As String<br />
        'This two dimensional array store the primary word convertion of number.<br />
        retWord = ""<br />
        Dim ArrWordList(,) As Object = {{0, ""}, {1, "One"}, {2, "Two"}, {3, "Three"}, {4, "Four"}, _<br />
                                        {5, "Five"}, {6, "Six"}, {7, "Seven"}, {8, "Eight"}, {9, "Nine"}, _<br />
                                        {10, "Ten"}, {11, "Eleven"}, {12, "Twelve"}, {13, "Thirteen"}, {14, "Fourteen"}, _<br />
                                        {15, "Fifteen"}, {16, "Sixteen"}, {17, "Seventeen"}, {18, "Eighteen"}, {19, "Nineteen"}, _<br />
                                        {20, "Twenty"}, {30, "Thirty"}, {40, "Forty"}, {50, "Fifty"}, {60, "Sixty"}, _<br />
                                        {70, "Seventy"}, {80, "Eighty"}, {90, "Ninety"}, {100, "Hundred"}, {1000, "Thousand"}, _<br />
                                        {1000000, "Million"}, {1000000000, "Billion"}, {1000000000000, "Trillion"}}<br />
<br />
        Dim i As Integer<br />
        For i = 0 To UBound(ArrWordList)<br />
            If Num = ArrWordList(i, 0) Then<br />
                retWord = ArrWordList(i, 1)<br />
                Exit For<br />
            End If<br />
        Next<br />
        Return retWord<br />
End Function<br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/30680228">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30680228"></div>]]></content:encoded>
      <pubDate>Thu, 03 May 2012 18:44:00 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30680228#comments</comments>
    </item>
    <item>
      <title><![CDATA[T-SQL COALESCE 範例 ]]></title>
      <link>http://abort.pixnet.net/blog/post/30680128</link>
      <guid>http://abort.pixnet.net/blog/post/30680128</guid>
      <description><![CDATA[T-SQL COALESCE 範例 
--------------------------------------------------------------------------------

A.標準用法

SELECT A, B, C, D, 

COALESCE(A, B, C) AS E 

FROM Student ; 

GO 



B.MSDN範例
wages 資料表有三個含員工年薪 (時薪、月薪加上分紅) 相關資訊的資料行。 不過，員工只會收到其中一種款項。 若要算出支付給所有員工的總金額，請使用 COALESCE，只接收 hourly_wage、salary 和 commission 中的非 Null 值。 

複製
 SET NOCOUNT ON;
GO
USE tempdb;
IF OBJECT_ID('dbo.wages') IS NOT NULL
    DROP TABLE wages;
GO
CREATE TABLE dbo.wages
(
    emp_id        tinyint   identity,
    hourly_wage   decimal   NULL,
    salary        decimal   NULL,
    commission    decimal   NULL,
    num_sales     tinyint   NULL
);
GO
INSERT dbo.wages (hourly_wage, salary, commission, num_sales)
VALUES
    (10.00, NULL, NULL, NULL),
    (20.00, NULL, NULL, NULL),
    (30.00, NULL, NULL, NULL),
    (40.00, NULL, NULL, NULL),
    (NULL, 10000.00, NULL, NULL),
    (NULL, 20000.00, NULL, NULL),
    (NULL, 30000.00, NULL, NULL),
    (NULL, 40000.00, NULL, NULL),
    (NULL, NULL, 15000, 3),
    (NULL, NULL, 25000, 2),
    (NULL, NULL, 20000, 6),
    (NULL, NULL, 14000, 4);
GO
SET NOCOUNT OFF;
GO
SELECT CAST(COALESCE(hourly_wage * 40 * 52, 
   salary, 
   commission * num_sales) AS money) AS 'Total Salary' 
FROM dbo.wages
ORDER BY 'Total Salary';
GO
以下為結果集：

Total Salary 

------------ 

20800.0000

41600.0000

62400.0000

83200.0000

10000.0000

20000.0000

30000.0000

40000.0000

45000.0000

50000.0000

120000.0000

56000.0000


(12 row(s) affected)
]]></description>
      <content:encoded><![CDATA[T-SQL COALESCE 範例 <br />
--------------------------------------------------------------------------------<br />
<br />
A.標準用法<br />
<br />
SELECT A, B, C, D, <br />
<br />
COALESCE(A, B, C) AS E <br />
<br />
FROM Student ; <br />
<br />
GO <br />
<br />
<br />
<br />
B.MSDN範例<br />
wages 資料表有三個含員工年薪 (時薪、月薪加上分紅) 相關資訊的資料行。 不過，員工只會收到其中一種款項。 若要算出支付給所有員工的總金額，請使用 COALESCE，只接收 hourly_wage、salary 和 commission 中的非 Null 值。 <br />
<br />
複製<br />
 SET NOCOUNT ON;<br />
GO<br />
USE tempdb;<br />
IF OBJECT_ID('dbo.wages') IS NOT NULL<br />
    DROP TABLE wages;<br />
GO<br />
CREATE TABLE dbo.wages<br />
(<br />
    emp_id        tinyint   identity,<br />
    hourly_wage   decimal   NULL,<br />
    salary        decimal   NULL,<br />
    commission    decimal   NULL,<br />
    num_sales     tinyint   NULL<br />
);<br />
GO<br />
INSERT dbo.wages (hourly_wage, salary, commission, num_sales)<br />
VALUES<br />
    (10.00, NULL, NULL, NULL),<br />
    (20.00, NULL, NULL, NULL),<br />
    (30.00, NULL, NULL, NULL),<br />
    (40.00, NULL, NULL, NULL),<br />
    (NULL, 10000.00, NULL, NULL),<br />
    (NULL, 20000.00, NULL, NULL),<br />
    (NULL, 30000.00, NULL, NULL),<br />
    (NULL, 40000.00, NULL, NULL),<br />
    (NULL, NULL, 15000, 3),<br />
    (NULL, NULL, 25000, 2),<br />
    (NULL, NULL, 20000, 6),<br />
    (NULL, NULL, 14000, 4);<br />
GO<br />
SET NOCOUNT OFF;<br />
GO<br />
SELECT CAST(COALESCE(hourly_wage * 40 * 52, <br />
   salary, <br />
   commission * num_sales) AS money) AS 'Total Salary' <br />
FROM dbo.wages<br />
ORDER BY 'Total Salary';<br />
GO<br />
以下為結果集：<br />
<br />
Total Salary <br />
<br />
------------ <br />
<br />
20800.0000<br />
<br />
41600.0000<br />
<br />
62400.0000<br />
<br />
83200.0000<br />
<br />
10000.0000<br />
<br />
20000.0000<br />
<br />
30000.0000<br />
<br />
40000.0000<br />
<br />
45000.0000<br />
<br />
50000.0000<br />
<br />
120000.0000<br />
<br />
56000.0000<br />
<br />
<br />
(12 row(s) affected)<br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/30680128">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30680128"></div>]]></content:encoded>
      <pubDate>Wed, 02 May 2012 17:42:52 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30680128#comments</comments>
    </item>
    <item>
      <title><![CDATA[acer筆電換硬碟使用pqservice磁區還原正版win7]]></title>
      <link>http://abort.pixnet.net/blog/post/30551074</link>
      <guid>http://abort.pixnet.net/blog/post/30551074</guid>
      <description><![CDATA[1.Ghost pqservice磁區到新的硬碟
2.Ghost win7隱藏磁區到新的硬碟(可選)
3.用windows的硬碟管理工具或其他分割出安裝win7的磁區
4.開機時按alt+F10進入acer build-in的還原介面
5.依介面提示安裝
6.大量的等待時間約一小時
7.完成]]></description>
      <content:encoded><![CDATA[1.Ghost pqservice磁區到新的硬碟<br />
2.Ghost win7隱藏磁區到新的硬碟(可選)<br />
3.用windows的硬碟管理工具或其他分割出安裝win7的磁區<br />
4.開機時按alt+F10進入acer build-in的還原介面<br />
5.依介面提示安裝<br />
6.大量的等待時間約一小時<br />
7.完成  <div class="more"><a href="http://abort.pixnet.net/blog/post/30551074">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30551074"></div>]]></content:encoded>
      <pubDate>Thu, 29 Mar 2012 10:23:17 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30551074#comments</comments>
    </item>
    <item>
      <title><![CDATA[RAMDISK設定檔 ImDisk於WinXp使用4GB記憶體]]></title>
      <link>http://abort.pixnet.net/blog/post/30527236</link>
      <guid>http://abort.pixnet.net/blog/post/30527236</guid>
      <description><![CDATA[Startup.cmd---------------------------------------------------------------------imdisk -a -t vm -f D:\CustomTools\RAMDISK\Ramdisk.img -m R:---------------------------------------------------------------------Shutdown.cmd---------------------------------------------------------------------D:\CustomTools\RAMDISK\rawcopy.exe -mld \\.\R: D:\CustomTools\RAMDISK\RamDisk.imgimdisk -D -m R:---------------------------------------------------------------------gpedit.msc [本機原則]&rarr;[電腦設定]&rarr;[Windows 設定]&rarr;[指令碼 - (啟動/關機)]
X.I want a RAM disk that uses memory above 4 GB in 32 bit Windows. Can ImDisk do that?
Well, not natively. If your 32 bit Windows version supports memory access above 4 GB through address window extension (AWE) and with physical address extension (PAE) turned on, it could be done through an additional memory allocation driver called awealloc.
Modify awealloc to auto-load at system startup:sc config awealloc start= systemThis will take effect at next reboot. Meanwhile you can load it manually:net start awealloc
Then, create the RAM disk (schedule this command with Windows Scheduler if you want it to happen automatically at system startup):imdisk -a -f \\.\awealloc -s 400M -m R: -p "/fs:ntfs /q /y"
This will ask awealloc driver to allocate 400 MB and then create a RAM disk drive R: within that memory and format it with NTFS. The 400 MB will primarily be allocated from as high memory addresses as possible, but parts of it could be allocated at lower addresses if not enough memory is free or otherwise accessible at high ranges. Check Windows Event Log to see error messages during memory allocation.
http://www.mobile01.com/topicdetail.php?f=300&amp;t=2058548&amp;p=1]]></description>
      <content:encoded><![CDATA[<p><br />Startup.cmd<br />---------------------------------------------------------------------<br />imdisk -a -t vm -f D:\CustomTools\RAMDISK\Ramdisk.img -m R:<br />---------------------------------------------------------------------<br />Shutdown.cmd<br />---------------------------------------------------------------------<br />D:\CustomTools\RAMDISK\rawcopy.exe -mld \\.\R: D:\CustomTools\RAMDISK\RamDisk.img<br />imdisk -D -m R:<br />---------------------------------------------------------------------<br />gpedit.msc<br /> [本機原則]&rarr;[電腦設定]&rarr;[Windows 設定]&rarr;[指令碼 - (啟動/關機)]</p>
<p><br />X.I want a RAM disk that uses memory above 4 GB in 32 bit Windows. Can ImDisk do that?</p>
<p>Well, not natively. If your 32 bit Windows version supports memory access above 4 GB through address window extension (AWE) and with physical address extension (PAE) turned on, it could be done through an additional memory allocation driver called awealloc.</p>
<p>Modify awealloc to auto-load at system startup:<br />sc config awealloc start= system<br />This will take effect at next reboot. Meanwhile you can load it manually:<br />net start awealloc</p>
<p>Then, create the RAM disk (schedule this command with Windows Scheduler if you want it to happen automatically at system startup):<br />imdisk -a -f \\.\awealloc -s 400M -m R: -p "/fs:ntfs /q /y"</p>
<p>This will ask awealloc driver to allocate 400 MB and then create a RAM disk drive R: within that memory and format it with NTFS. The 400 MB will primarily be allocated from as high memory addresses as possible, but parts of it could be allocated at lower addresses if not enough memory is free or otherwise accessible at high ranges. Check Windows Event Log to see error messages during memory allocation.</p>
<p>http://www.mobile01.com/topicdetail.php?f=300&amp;t=2058548&amp;p=1</p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30527236">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30527236"></div>]]></content:encoded>
      <pubDate>Wed, 21 Mar 2012 17:12:32 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30527236#comments</comments>
    </item>
    <item>
      <title><![CDATA[解決rsync權限的3種方式]]></title>
      <link>http://abort.pixnet.net/blog/post/30523708</link>
      <guid>http://abort.pixnet.net/blog/post/30523708</guid>
      <description><![CDATA[1.在執行程式端加上該權限帳號

2.在遠端加上權限
chmod +r  ./* -R
3.不複製權限
rsync -rvlHDtS -e 'ssh -p 8822' ccmis@140.113.40.35:/var/www/html/ /var/www/html/]]></description>
      <content:encoded><![CDATA[1.在執行程式端加上該權限帳號<br />
<br />
2.在遠端加上權限<br />
chmod +r  ./* -R<br />
3.不複製權限<br />
rsync -rvlHDtS -e 'ssh -p 8822' ccmis@140.113.40.35:/var/www/html/ /var/www/html/  <div class="more"><a href="http://abort.pixnet.net/blog/post/30523708">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30523708"></div>]]></content:encoded>
      <pubDate>Tue, 20 Mar 2012 17:20:45 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30523708#comments</comments>
    </item>
    <item>
      <title><![CDATA[修改Apache帳號UMASK]]></title>
      <link>http://abort.pixnet.net/blog/post/30523702</link>
      <guid>http://abort.pixnet.net/blog/post/30523702</guid>
      <description><![CDATA[在執行設定加
echo "umask 002" >> /etc/sysconfig/httpd
service httpd restart


]]></description>
      <content:encoded><![CDATA[在執行設定加<br />
echo "umask 002" >> /etc/sysconfig/httpd<br />
service httpd restart<br />
<br />
<br />
  <div class="more"><a href="http://abort.pixnet.net/blog/post/30523702">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30523702"></div>]]></content:encoded>
      <pubDate>Tue, 20 Mar 2012 17:19:40 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30523702#comments</comments>
    </item>
    <item>
      <title><![CDATA[CentOS 安裝vnstat 查看流量統計]]></title>
      <link>http://abort.pixnet.net/blog/post/30523588</link>
      <guid>http://abort.pixnet.net/blog/post/30523588</guid>
      <description><![CDATA[vnstat
可以統計網卡流量可惜不含ip分析
安裝vnstat
1.
wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpmrpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
2.
yum&nbsp;-y&nbsp;install&nbsp;vnstat
rm -rf /etc/cron.d/vnstat
touch /var/lib/vnstat/dump.sh
vnstat -u -i eth0vnstat -dumpdb -i eth0 &gt;/var/lib/vnstat/vnstat_dump_eth0
crontab -e&nbsp;* * * * * /bin/sh /var/lib/vnstat/dump.sh
指令vnstat -i eth0
目前流量vnstat&nbsp;-l

VNStat PHP Frontend
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gztar zxvf vnstat_php_frontend-1.5.1.tar.gzmv vnstat_php_frontend-1.5.1 vnstatrm -rf vnstat_php_frontend-1.5.1.tar.gz
config.php
$language = 'en';$iface_list = array('eth0');//$iface_title['sixxs'] = 'SixXS IPv6';$vnstat_bin = '/usr/bin/vnstat';$data_dir = '/var/lib/vnstat/';$graph_format='png';
http://domain.name/vnstat
vnstat.cgi
網路上找vnstat.cgi
cp vnstat.cgi /var/www/cgi-bin/
chmod +x&nbsp;vnstat.cgi
wget http://flexbox.sourceforge.net/centos/5/i386/vnstati-1.11-1.el5.i386.rpm
vim /var/www/cgi-bin/vnstat.cgi
http://140.113.40.35/cgi-bin/vnstat.cgi
http://www.vpseek.com/newbies-guides/configure-vnstat-on-centos-to-montior-bandwidth-usage.html
http://blog.l-penguin.idv.tw/archives/1655/vnstat-%E6%9F%A5%E7%9C%8B%E6%B5%81%E9%87%8F%E7%B5%B1%E8%A8%88]]></description>
      <content:encoded><![CDATA[<p>vnstat</p>
<p>可以統計網卡流量可惜不含ip分析</p>
<p>安裝vnstat</p>
<p>1.</p>
<p>wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm<br />rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm</p>
<p>2.</p>
<p><span>yum&nbsp;</span><span class="re5">-y</span><span>&nbsp;</span><span class="kw2">install</span><span>&nbsp;vnstat</span></p>
<p><span>rm -rf /etc/cron.d/vnstat</span></p>
<p><span>touch /var/lib/vnstat/dump.sh</span></p>
<p>vnstat -u -i eth0<br />vnstat -dumpdb -i eth0 &gt;/var/lib/vnstat/vnstat_dump_eth0</p>
<p>crontab -e&nbsp;<br />* * * * * /bin/sh /var/lib/vnstat/dump.sh</p>
<p>指令<span>vnstat -i eth0</span></p>
<p><span>目前流量<span>vnstat&nbsp;</span><span class="re5">-l</span></span></p>
<p><span><span class="re5"><br /></span></span></p>
<p><strong><span class="re5">VNStat PHP Frontend</span></strong></p>
<p>wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz<br />tar zxvf vnstat_php_frontend-1.5.1.tar.gz<br />mv vnstat_php_frontend-1.5.1 vnstat<br />rm -rf vnstat_php_frontend-1.5.1.tar.gz</p>
<p><span>config.php</span></p>
<p>$language = 'en';<br />$iface_list = array('eth0');<br />//$iface_title['sixxs'] = 'SixXS IPv6';<br />$vnstat_bin = '/usr/bin/vnstat';<br />$data_dir = '/var/lib/vnstat/';<br />$graph_format='png';</p>
<p><span><span class="re5"><span>http://domain.name/vnstat</span></span></span></p>
<p><strong>vnstat.cgi</strong></p>
<p>網路上找vnstat.cgi</p>
<p>cp vnstat.cgi /var/www/cgi-bin/</p>
<p>chmod +x&nbsp;vnstat.cgi</p>
<p>wget http://flexbox.sourceforge.net/centos/5/i386/vnstati-1.11-1.el5.i386.rpm</p>
<p>vim /var/www/cgi-bin/vnstat.cgi</p>
<p>http://140.113.40.35/cgi-bin/vnstat.cgi</p>
<p><a href="http://www.vpseek.com/newbies-guides/configure-vnstat-on-centos-to-montior-bandwidth-usage.html">http://www.vpseek.com/newbies-guides/configure-vnstat-on-centos-to-montior-bandwidth-usage.html</a></p>
<p><a href="http://blog.l-penguin.idv.tw/archives/1655/vnstat-%E6%9F%A5%E7%9C%8B%E6%B5%81%E9%87%8F%E7%B5%B1%E8%A8%88">http://blog.l-penguin.idv.tw/archives/1655/vnstat-%E6%9F%A5%E7%9C%8B%E6%B5%81%E9%87%8F%E7%B5%B1%E8%A8%88</a></p>  <div class="more"><a href="http://abort.pixnet.net/blog/post/30523588">(繼續閱讀...)</a><img src="//pixanalytics.com/pa.gif?t=front_blog_feed&document.URL=http%3A%2F%2Fabort.pixnet.net%2Fblog%2Fpost%2F30523588"></div>]]></content:encoded>
      <pubDate>Tue, 20 Mar 2012 16:29:21 +0800</pubDate>
      <category><![CDATA[電腦經驗]]></category>
      <comments>http://abort.pixnet.net/blog/post/30523588#comments</comments>
    </item>
  </channel>
</rss>
