部落格文章訂閱


貧窮不能等,因為時間久了,你就會貧窮習慣了;
夢想不能等,因為努力晚了,人老就無能為力了;
學習不能等,因為懂得少了,就沒本事夢想成真了;
健康不能等,因為身體垮了,人生的一切就都沒了。


自訂搜尋

找不到想要的文章嗎? 請直接再下面的搜尋框裡輸入要查詢文章內容關鍵字 ,就能夠更快速的取得想要閱讀的問題喔~~謝謝大家的支持與愛護~若有任何建議事項, 歡迎透過留言板留言給我喔!!


  • 你不能決定生命的長度,但可以控制它的寬度;
  • 你不能左右天氣,但可以改變心情;
  • 你不能改變容顏,但可以展現笑容;
  • 你不能控制他人,但可以掌握自己;
  • 你不能預知明天,但可以利用今天;
  • 你不能樣樣勝利,但可以事事盡力。

free counters

On multiple occasions I have had to modify a broken file on a Fedora system that was preventing me from booting. More recently this has been the /etc/fstab file. If any lines in that file have issues, Fedora will stop booting and throw you into a recovery console. Unfortunately, that console has the root partition mounted read only, so good luck fixing that file :)

To remedy this, I have been using the Ubuntu Live CD. The issue with this approach, though, is that the Ubuntu install on the CD does not have support for the LVM logical volumes that Fedora sets up as a standard part of its install. Here are the steps to utilize the Ubuntu Live CD to modify files on a Fedora LVM logical volume:

  1. Boot the system from the Ubuntu Live CD.
  2. Open a terminal and install LVM support with: sudo apt-get install lvm2
  3. Then run the following commands:
    sudo modprobe dm-mod

Frank 發表在 痞客邦 留言(0) 人氣()

Here’s how to create a Windows XP, bootable, USB key. This is very useful especially persons using Netbook or in the case that your PC is not equipped with a DVD/CD player.


Creating your bootable USB key:


Frank 發表在 痞客邦 留言(0) 人氣()

您可以使用grep (「global regular expression print」)命令在檔案中搜尋文字格式,或顯示包含特定文字格式的檔案名稱。當您想在檔案或目錄中尋找資訊時,這個命令就極為有用。grep命令會檢視一或多個檔案中的每一行,以尋找與特定格式相符合的字串。當它找到符合的字串時,會顯示該串文字所在的那一行。

在檔案中搜尋字串

假設您有一份名為mailist的郵遞清單,內容如下:

Frank 發表在 痞客邦 留言(0) 人氣()

更新:台中益民中古書店 新址 台中市大里區永興路109號

--

印象中新竹很少有中古書店, 所以都是去台中找書, 當兵的時候在台中成功嶺, 那時候, 有公務外出, 就會在辦事之餘窩在書店, 偶而也逛中古書店, 一直常去的是 東海大學 對面 國際藝術街 邊的中古書店, 還有逢甲大學逢甲夜市附近的中古書店, 在裡面可以挖到不少的寶, 不限於電腦專業圖書 ,舉凡是風水 ,命理 ,食譜, 工程等等都有 ,歡迎自行前往尋寶 ,以下是透過網路搜尋的 台中地區 的中古書店 ,由於我不是台中人 ,所以呢 ,資訊僅供參考, 如果有同好發現店面已經關閉或者搬家 ,甚至是電話號碼已經改號 ,都麻煩請透過留言的方式告知我, 我會即時的更新.

另外,若您有台中縣市以外的中古書店的店家資訊, 也歡迎分享給我, 我會彙整後 一併放上, 謝謝大家.

以下為台中縣市的中古書店資訊:

Frank 發表在 痞客邦 留言(1) 人氣()

1.公平並不存在。為了不公平而感到怨恨、憤怒是『乖小孩吵糖吃』的可愛行為。
世界不會『為』你改變,世界只會『被』你改變。要公平?很簡單,你拳頭夠大
、腕力夠強、又很有禮貌,這個世界就會對你非常的『公平』。

2.不要抱怨。如果事情真能做出改變那就不需要抱怨,如果不能那抱怨也沒用。

Frank 發表在 痞客邦 留言(0) 人氣()

睡前不喝水容易腦中風?喝瓶裝水容易喝下細菌?早上起來喝溫水、鹽水、還是冷水好?有關喝水的知識,一次講明白。

原文取自 康健雜誌 http://www.commonhealth.com.tw/article/index.jsp?page=1&id=6732 

● 睡前喝水,可預防心肌梗塞或中風這是真的。血液中有七成是水分,身體缺水時,血液就會變得濃縮、黏稠、影響血流,身體就必須提高血壓、縮小血管。睡覺時,身體依然會因呼吸、排汗等排出水分,這7~8小時中卻無法適時喝水。

不過,為了避免有些人半夜起床上廁所會影響睡眠,或老人家可能有跌倒的風險,所以除了腎結石的人外,只要睡前1~2小時有喝水,並且早上起床時立刻喝水,也可達到預防血管阻塞的效果。

Frank 發表在 痞客邦 留言(0) 人氣()

Since version 0.9, Trac supports both  SQLite and  PostgreSQL database backends. Preliminary support for  MySQL was added in 0.10. The default is to use SQLite, which is probably sufficient for most projects. The database file is then stored in the environment directory, and can easily be backed up together with the rest of the environment.

SQLite Connection String

The connection string for an SQLite database is:

sqlite:db/trac.db

where db/trac.db is the path to the database file within the Trac environment.

PostgreSQL Connection String

If you want to use PostgreSQL or MySQL instead, you'll have to use a different connection string. For example, to connect to a PostgreSQL database on the same machine called trac, that allows access to the user johndoe with the password letmein, use:

Frank 發表在 痞客邦 留言(0) 人氣()

If you need to access SVN remotely, by default it runs on port TCP port 3690.
簡單的說,如果要存取遠端的 Subversion server, 3690 這個 port 是一定要開的啦!
如果只有 80 port 通的話,就只能用 Browser 看見 Server 上的內容而不能存取。

Frank 發表在 痞客邦 留言(1) 人氣()

@addClass( class )
// 在節點裡加入class = "selected"
// 移除 : removeClass( class ).
$("p").addClass("selected")

@attr( name )
// 取得<img src="test" alt="" /> 裡的src值
// before : <img src="test.jpg" alt="" />
// Result :  test.jpg
$("img").attr("src");
 
@attr( properties )
// 將<img alt="" />  加入 src="test.jpg" alt="Test Image"
// before : <img alt="" />
// Result :  <img src="test.jpg" alt="Test Image" />
$("img").attr({ src: "test.jpg", alt: "Test Image" });
 
@attr( key, value )
// 指定物件 的 key 並 設定 value
// 將 <img alt="" /> 加入 src = "test.jpg"
// before : <img alt="" />
// Result :  <img src="test.jpg" alt="" />
$("img").attr("src","test.jpg");
// 將
<input /> 加入 value = "test.jpg"
// before :
<input />
// Result :
<input value="test.jpg" />
$("input").attr("value","test.jpg");
 
@attr( key, fn )
// 在<img alt="" />裡加入 title
//title 值 則是用function 回傳
//Before: <img src="test.jpg" alt="" />
//Result: <img title="test.jpg" src="test.jpg" alt="" />
$("img").attr("title", function() { return this.src });
//Before : <img title="pic" alt="" /><img title="pic" alt="" /><img title="pic" alt="" />
//Result: <img title="pic1" alt="" /><img title="pic2" alt="" /><img title="pic3" alt="" />
$("img").attr("title", function(index) { return this.title + (++index); });
 
@html()
// 取得
<div> xxx</div>
xxx <= 取得的東西
// Before :
<div> xxx</div>
// Result : xxx
$("div").html()
 
@html( val )
// 改變
<div>xxx</div>
為
<div><strong>new stuff</strong></div>
// Before :
<div> xxx</div>
// Result :
<div><strong>new stuff</strong></div>
$("div").html("<strong>new stuff</strong>");
 
@removeAttr( name )
//移除
<input disabled="disabled" />
// Before :
<input disabled="disabled" />
// Result :
<input />
$("input").removeAttr("disabled")
 
@removeClass( class )
//移除裡的 class
// Before :
Hello
// Result :
Hello
 
$("p").removeClass()
// Before :
Hello
// Result :
Hello
 
$("p").removeClass("selected")
// Before :
Hello
// Result :
Hello
 
$("p").removeClass("selected highlight")
 
@text()
//取得裡的字串
// Before :
<strong>Test</strong> Paragraph.
Paraparagraph
 
// Result : Test Paragraph.Paraparagraph
$("p").text();
 
@text( val )
//取代內的字串
// Before :Test Paragraph.
 
// Result :
<strong>Some</strong> new text.
 
$("p").text("<strong>Some</strong> new text.");
// Before :
Test Paragraph.
// Result :
<strong>Some</strong> new text.
 
$("p").text("<strong>Some</strong> new text.", true);
 
@toggleClass( class )
// 將有 移除 , 如果沒有 則加入
// Before :
Hello
Hello Again
// Result :
Hello,Hello Again
 
$("p").toggleClass("selected")
 
@val()
// 抓取 INPUT 的 VALUE值
// Before :
<input type="text" value="some text" />
// Result :  "some text"
$("input").val();
 
@val( val )
// 將INPUT 的 VALUE 值 改變為指定
// Before :
<input type="text" value="some text" />
// Result :
<input type="text" value="test" />
$("input").val("test");
原文出處: http://blog.shian.tw/jquery-attributes.html 

Frank 發表在 痞客邦 留言(0) 人氣()

想利用飯後30分鐘的時間來做一些瘦身的運動嗎?妳知道這種燃燒脂肪的運動
可是要知道秘訣的,否則一骨腦亂做還是不見得效喔!所以想要知道究竟怎麼
開始做運動美人兒動起來吧!

秘訣一:飯後30分鐘開始運動

Frank 發表在 痞客邦 留言(1) 人氣()

学习BPEL,有个有名的开源引擎ActiveBEPL(http://www.active-endpoints.com),于是进入这个站点搜索些资料。在浏览中发现网页上有很多这种字符“ActiveBPEL™”,这个TM的样式非常的怪,是怎么实现的呢?我用firebug查看了下它的代码,也仅仅是“TM”两个字符。我又用IE Inspector查看了,是“? ”。这就更怪了,竟然不一样。后来又在一页的title上发现了这些字符,于是查看了下源代码。“ActiveBPEL&trade;”&trade;是什么,google一下。呵呵,原来是HTML的一个特殊字符而已。写了这么多年的HTML,竟然不知道,惭愧啊!

想表达的意图 处理方式
(回车换行) <br>
 (空格符) &nbsp;
&(AND符号) &amp;
<(左尖括号、小于号) &lt;
>(右尖括号、大于号) &gt;
°(度) &deg;
•(间隔符)
´ &acute;
" &quot;
&ldquo;
&rdquo;
&permil;
&larr;
&uarr;
&rarr;
&darr;
&harr;
&radic;
&prop;
&infin;
&ang;
&and;
&or;
&cap;
&cup;
Ø &Oslash;
&int;
&there4;
&asymp;
¥(RMB) &yen;

想表达的意图 处理方式
&ne;
&equiv;
&le;
&ge;
&oplus;
λ &lambda;
μ &mu;
ν &nu;
ξ &xi;
ν &nu;
ξ &xi;
&prod;
&sum;
¥ &yen;
¹(一次方符号) &sup1;
²(平方符号) &sup2;
³(立方符号) &sup3;
nr(上标情形) n<sup>r</sup>
Ci(下标情形) C<sub>i</sub>
加粗 <b>加粗</b>
斜体 <i>斜体</i>
下划线 <u>下划线</u>
±(加减符号) &plusmn;
×(乘法符号) &times;
÷(除法符号) &divide;
©(版权所有) &copy;
®(注册商标) &reg;
™(商标符号) &trade;
—(破折号)

全文轉貼自 http://blog.chinaunix.net/u2/73798/showart_1084792.html 


Frank 發表在 痞客邦 留言(0) 人氣()

用Jquery可以少寫程式, 稍微Google一下可以找到很多資料, 通常會用 $('#ID') 去抓取某個 ID的表單元件的資料值, 或者它的事件, 並且, 做後續的處理. 在一般表單元件都是自己打造的前提, ID是可以自己加上去的 (直接在HTML Code裡) ,但是, 如果你的表單, 是透過 Pear 的 HTML_QuickForm 之類的套件去產生 ,則預設產生的表單元件, 並沒有賦予 ID 只有表單元件的 NAME .

這樣的情況, 將沒有辦法使用標準的 $('#ID') 去編寫 Jquery 的事件行為  ,

解決此種情況, 最簡單的方式, 便是直接透過 $("element['name=xxx']") 來取得元件, 並且, 進行後續程式碼的編寫.

其中 element 代表表單元件的類型, 例如: select 下拉式選單, input 輸入框 ...等等, 舉個例子來說, 要替 Select 下拉式選單增加 change 的事件, 可以這樣寫

Frank 發表在 痞客邦 留言(1) 人氣()

有錢人六種習性和你不一樣

有錢人是怎樣的一種人類?撇開含著金湯匙出生的那一群稀有動物,對於廣大「脫貧求富」族而言,比較具有參考價值的是靠著投資理財致富的人們,雖然一樣米養百樣人,但會賺錢的人就是有一些共通點,令人不得不同意「人家會賺錢不是沒道理」。

Frank 發表在 痞客邦 留言(0) 人氣()

作者:陳豐偉

今天整理部落格,發現我寫了強迫症、恐慌症,反而對憂鬱症並沒有整理一篇摘要。據世界衛生組織統計,女性一生中至少得到一次重度憂鬱症的機率是25%,男性是15%。而美國去年就有12%成年人服用抗憂鬱藥物(這是一千多萬人)。現在社會壓力這麼大,憂鬱症越來越普遍,你身邊隨時會有人得到憂鬱症。在此我整理一些走出憂鬱症的簡便方法。



一、睡眠一定要充足:

Frank 發表在 痞客邦 留言(0) 人氣()

由於utf8編碼有固定格式,其可能有2~4個字節,我們可以將每一個字節拆開判斷
這個函示僅判斷每個中文字的第一個字節,應該夠了。

請參考 wikipedia 之 UTF8 說明 ,網址 http://zh.wikipedia.org/zh-tw/UTF8

//判斷字串是否為utf8

Frank 發表在 痞客邦 留言(0) 人氣()