原创 Clean output before downloading files
Hummmmm, I got a big headache on downloading files for the past 3 hours. The issue is when I downloaded the files,
原创 How to make apache start at boot time
Do thefollowing:chkconfig --list|grep http You get something like this:httpd 0:off 1:off 2:off 3:off
原创 Add foreign key
ALTER TABLE infor_per_day ADD CONSTRAINT FK_1 FOREIGN KEY ( ip_id ) REFERENCES `iptracking` ( id ) 點贊 收藏
原创 沒有激情 需要勵志
第一招:向前看兩年 第二招:少許諾,多兌現 第三招:不需要錢的時候借錢 第四招:分散客戶 第五招:不要過早地追求贏利 第六招:專注自己的領域 第七招:保持激情 "我選擇放棄博士學位來進行創業,並不是爲了錢,而是真的出於對這個行業的熱愛
原创 程序員創業的思索——歸宿(轉)
做爲一個程序員,身處一個特殊的行業,每天都在不停的工作和學習,年輕時你很是了得,在你面前沒有什麼問題是解決不了的,職業給了你耀眼的光環,不用炫耀 也很奪目,但更多已經步入三十的同仁們卻告訴我們一個不可改變的事實,你今天的努力很可能與將來的
原创 Using Text Editors (Emacs, Pico, Vi)
(link : http://www.reallylinux.com/docs/editors/editor.shtml) Using Text Editors This list of text editors is prov
原创 How can I get the next auto increment value from mssql?
using @@IDENTITY which returns the last-inserted identity value But the preferable solution is to use IDENT_CURRENT('Ta
原创 How to force an iframe to reload?
document.getElementById('IDofYouriFrame').contentDocument.location.reload(true);
原创 二八原則
二八原則是19世紀末20世紀初意大利經濟學家帕累託提出的,這個原則很簡單: 任何一組事物中,最重要的只佔其中約20%,其餘的80%雖然是多數,但是卻是次要的。 比如,80%的財富掌握在20%的人手中,而剩下80% 的人,只擁有那20%
原创 Back up MySQL command
mysqldump --opt -Q -u root -p --default-character-set=utf8 test > "/Users/Jerry/Sites/testbak.sql" test is the name of
原创 Looking for all keys of an multi dimensional array
//Function for looking for all keys of an multi dimensional array function array_keys_multi(array $array) { $keys =
原创 IE7 CSS trouble
When you meet trouble with css style in IE7, try this. You can set different css for IE7 and the other browsers. <!--
原创 BackGround image not show on IE7 issue
Today I got a background image issue. I used body {background: url(../images/bg.jpg) fixed center no-repeat} and it w
原创 Regex - reverse search section
Allows letters a-z, digits, space (//040), hyphen (//-), underscore (//_) and backslash (////), everything else is remo
原创 check folder size on linux
$ du -hs /path/to/directory