部落格文章訂閱


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


自訂搜尋

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


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

free counters

有夠好笑對話 ,一定要看的啦 !!

 


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

以下內容  取自 康健雜誌135期
 
5位資深中醫:姜通、馬光亞、易權衡、董延齡、巫水生,不但無病無痛,還要出示身分證才獲准老人優待票價,首度公開什麼才是他們的養生方式。
以下我們歸納整理出「8種國寶級中醫不生病的生活方式」:


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

睡覺是旅行最重要的事情 ,唯有充足的睡眠, 才能盡情的玩樂一番 ,因此, 在安排旅行計畫的過程 ,別忽略為自己挑個好民宿 .

這次 2010.01.23 ~ 2010.01.26 的花蓮旅行行前 ,先行在網路上搜尋幾間離花蓮市區近的民宿 ,幾經搜尋之後, 找到 "阿慢民宿"

民宿的主人是對年輕的情侶所經營 ,女主人還在台北忙碌的工作 , 而 男主人 小朱 則維持民宿的營運 .

看見民宿主人在部落格留的訂房資訊 http://aman908273.pixnet.net/blog/post/3300719 之後, 我毫不猶豫的打電話過去訂房

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

寫文件是一個程式設計師最最痛苦的事情之一,尤其是寫了一堆程式後有人要你把 Function ,Class 等等等等,寫成一份文件。

這事情不管你是寫 c/c++ , perl , ruby , php 都不例外。

phpDocumentor 是我們的救星! 只要在寫程式的時候,乖乖的寫一點註解,寫一點範例,多一點說明,注意一下格式,等到程式完工後,只要一個指令,就可以立刻把全部程式的說明文件產生出來,而且還有多種樣式可以選擇,甚至可以作成  PDF , CHM 喔…

好了,屁話不多說,先來說說怎麼裝上這好用的東西吧…

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

      Yahoo!的Exceptional Performance团队为改善Web性能带来最佳实践。他们为此进行了一系列的实验、开发了各种工具、写了大量的文章和博客并在各种会议上参与探讨。最佳实践的核心就是旨在提高网站性能。
Excetional Performance团队总结出了一系列可以提高网站速度的方法。可以分为7大类34条。包括内容、服务器、cookie、CSS、JavaScript、图片、移动应用等七部分。

其中内容部分一共十条建议:

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

或許, 妳會看到這篇文章 ,或許 不會 ,新聞流動很快, 擔心這篇文章妳看不到, 所以我把它收錄下來, 放在我的部落格裡, 或許, 有那麼一天你會到到這篇文章 ,這些日子以來的時間 ,從 生氣憤怒 , 到 無言 ....

-- 轉貼Yahoo 2010/01/22 影劇新聞 --

從婚前性愛,到找泡友、一夜情,女星陶晶瑩都言詞露骨的大表贊同,更鼓勵現代女性朋友:「人生苦短,一定要勇敢愛」。但,唯獨,陶晶瑩奉勸女性朋友的是,切勿「騎驢找馬」。陶晶瑩語帶詼諧的說:「因為馬(真命天子)看到妳身邊的驢,那不就玩完了嗎?」。陶晶瑩提醒女人面對感情的態度一定要是認真的,千萬不可有「食之無味,棄之可惜」的心態。

陶晶瑩說,女人真的是很聰明、很纖細,而且女人天生就比較敏感,甚至是有超能力,因為女人的直覺真的很準。因此,面對感情,陶晶瑩不贊成「騎驢找馬」,她要女人相信自己的直覺,因為你一定知道他O不OK。如果不OK,就不要勉強找個人湊合,因為你怎麼知道,你生命中的白馬王子會不會因為看到你身旁的驢,就默默走掉,而讓自己錯失良「駒」呢?

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

问题:ie7 8样式是margin-left:30px 运行很正常
        到了ie6 margin-left:15px 运行起来才正常(经过ie6 翻倍了 15px就是30px)

解决办法:

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

Installing mod_dav_svn by Gregg Pollack (gregg at patchedsoftware dot com) 

1. Install mod_dav_svn
    sudo yum install mod_dav_svn

2. Add the LoadModule lines to your httpd:

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

一種叫理所當然的習慣

上了一天班,回到家裡,丈夫只會粗聲粗氣的說:「飯煮好了沒?我餓死了。」

對妻子的忙碌辛苦視而不見。有一天,丈夫帶著未婚獨居

的同事回家,同事一進門,老婆接過兩人的公事包和套,

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

98年11月10日高雄市關懷流浪動物協會,從繁殖場業主手中救下了數以百計的受虐狗,殘忍的繁殖場,將銷售較差的犬種,一率斷水斷食,活活餓死……死掉後全都拖出來,小一點的就打包丟在水溝裡,大一點的就隨手將牠棄置在狗場的一角,任其腐爛….

已經死亡發臭的狗屍體


許多籠子裡的狗狗就連這樣的餿水都沒得吃

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

使用方式:在需要檢查的欄位中放入 fieldname=”欄位名稱” chk=”true” 即可,javascript是通用的,無需修改

參數說明:
fieldname: 檢查不通過,alert時所顯示的欄位名稱
chk: true表示要檢查
min: 複選欄位至少選幾項

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

圖片1.JPG 

Clcik to open training web site.

Ruby on Rails 新手學習建議 ==> http://blog.xdite.net/?p=433

 


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

Three options for MySQL:

1) create the new database, bring down the server, move the files from one database folder to the other, and restart the server. note that this will only work if ALL of your tables are myisam.

2) create the new database, use CREATE TABLE ... LIKE statements, then use INSERT ... SELECT * FROM statements.

3) use mysqldump and reload with that file.

 

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

假设 test目录下有 1 2 3 4 5 这5个目录
现在要将 3 4 5目录tar打包,1和2目录不要
該怎麼做???


命令如下 tar -zcvf test.tar.gz --exclude=1 --exclude=2 test

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

MySQL is a popular open source enterprise ready database. There are many tools available for interacting with this database, but as with most enterprise databases most access happens via Structured Query Language. There are a few options to export data to CSV from MySQL. Some require third part tools, while another uses a command line tool (useful on Unix machines) and a final option via SQL. Lets take a look at the last two options:

MySQL command line tool (on Unix):

mysql -u exampleuser -p letmein exampledb -B -e "select * from
\'person\';" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' > filename.csv

So what does all of that mean?

  1. mysql : the executable file (should be where MySQL is installed)
  2. -u exampleuser : a switch and option for the username to execute the SQL with
  3. -p letmein : a switch and option for the password of the user
  4. exampledb : the database to run the SQL against
  5. -B : instructs that the output should be tab delimited (we will convert this to commas later in the command)
  6. -e “the sql statement here” : the SQL statement to run returning your data
  7. | sed ’s/\t/”,”/g;s/^/”/;s/$/”/;s/\n//g’ : sed is a Unix stream processor, essentially allow for transformations in this case. Here we have four sed commands that change the tabs to double quotes, adds double quotes to the beginning and end of each line and adds a new line marker at the end of each line.
  8. > filename.csv : outputs the results to the file named filename.csv

MySQL SQL Syntax:

SELECT column_a,column_b,column_c+column_d INTO OUTFILE '/tmp/result.csv'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM test_table;

The MySQL select statement is using an INTO OUTFILE command to output the results of the SQL select into a file (in this case /tmp/result.csv).

A couple of notes:

  1. In both cases the file is saved to a location local to where the database is being ran from (on the same machine, or to a mount/drive available to the machine).
  2. The header row will need to be added to both files (which can be done using any text editor or spreadsheet program).

back to top

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