元宵燈謎
今日是元宵街節,就試試送這首燈謎詩給愛人估吧!
青山寺上一叢竹,
天鵝雖在鳥已飛。
前塵往事已過去,
白雲心中有彩虹,
心中有情藏不住。
雨水滴滴會有情,
終久到頭沒感情。
(每句話猜一個字)
Highlight 後便可顯示答案:
青山寺上一叢竹 —— 等(寺+竹)
天鵝雖在鳥已飛 —— 我(鵝-鳥)
站在樹上看遠方 —— 親(立+木)
白雲心中有彩虹 —— 自(白+一)
心中有情藏不住 —— 說(藏不住就說出來,這個編得不好)
雨水滴滴會有情 —— 愛(爫+友,編差了點,少了個冖)
終久到頭沒感情 —— 你(您-心)
數學問題一則
一日,有個年輕人去童鞋店里買了對波鞋。這對鞋子成本是15元,標價是21元。结果是這個年輕人掏出50元要買這鞋子。鞋店當時沒有散錢,後來用那年輕人付的50元向街坊换了50元的散錢,找给年輕人29元。但是街坊後來發現那50 元是假鈔,鞋店無奈之下,還了街坊50元。 現在問題是:鞋店在這次交易中到底損失了多少錢 ?
Highlight 後便可顯示答案:
44
Spec thx: 珍珍
Dialy Backup Task
I would like to share some experience on daily backup task even though I'm not a Linux expert.
Noticed below user group created.
someonex:500:
apache:x:48:
mysql:x:27:
webmaster:x:501:
fred:x:502:
Suggest to create a backup group with a dedicated user for backing up db & web src.
A sample db backup script is available at /home/fred/backup_db.sh
The last command (I coded all tables) in script is commended out for Fred to inform all of us which table should be backup.
=============================================
aDate=`date +%Y%m%d`
filename="bkup""$aDate"
echo "Creating daily backup <"$aDate"/"$filename">"
#mysqldump –add-drop-table –allow-keywords -q -a -c -u username -ppassword –all-databases > $filename.sql =============================================
A sample cron job is setup to run the backup scripts. (Please note that the cron job is exec under the user home, so the cron jobs has to be set under the new user instead of Fred/root)
e.g. every day 18:30
=============================================
[fred@panda ~]$ crontab -l
30 18 * * * ./backup_db.sh > backup.log
=============================================
Belows stated fyr to edit the cron job.
crontab -e Edit your crontab file, or create one if it doesn't already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.)
If www scripts are expected to create daily backup, similar scripts should be setup.
** The scripts should be coded in a better manner to spool a log instead of redirecting from cron job 😀
Common Linux Command
Common Linux command for server administration.
1. top
performance monitor, CPU, memory usage, paging…etc
2. ps -ef
list out all process which is running
3. grep
a find unitility
mix with ps, list out the processes launched by this user
e.g. ps -ef | grep [user name]
4. kill
purge process
e.g. if httpd is hang up and normal shutdown of web server / db failed,
with 2 & 3, obtain the process ID
then kill the process manually.
e.g.
[root@mylinux root]# ps -ef | grep nobody
root 18970 18264 0 09:24 pts/0 00:00:00 grep nobody
[root@mylinux root]# kill -9 18970
Remark: -9 means force kill
5. vnc
Linux build in vnc server support, in console, use
$vncserver [session id]
to start a session
e.g. vncserver :1
after using, type $vncserver -kill [session id] to terminate the remote desktop
e.g. vncserver -kill :1
你又會點…
人生其實有好多路可以行, 唔係只得眼前看見的路 ….
考官問考生,"當你開車,前面有一個人和一只狗,你會撞向哪邊?"
考生回答:"撞狗"
考官隨即畫了一個大交叉。
考生問點解。
考官話:"你應該立刻剎車"
結婚前後
<結婚前> 往↓看:
他:太好了!我期盼的日子終於來臨了!我都等不及了!
她:我可以反悔嗎?
他:不,你甚至想都别想!
她:你愛我嗎?
他:當然!
她:你會背叛我嗎?
他:不會,你怎麼會有這種想法?
她:你可以吻我一下嗎?
他:當然,決不可能只有一下!
她:你有可能打我嗎?
他:永遠不可能!
她:我能相信你嗎?
<結婚後> 從下往上看↑
Spec Thx: Cara!
Boomerang
超好笑!!!!!
Special Thanks: Roger Lau
笑話兩則
又兩篇關於語言的笑話
英文教學
老師 : 我們學校由下學期起, 轉用全英文授課.
甲同學 : 嘩 ! 我們會聽不懂的.
老師 : 不要擔心聽不懂, 學語言就是要多聽,
你們每天聽我說英語, 時間久了自然就會明白.
乙同學 : 可是我每天聽家中小狗叫, 也不知道牠在說甚麼呢.
不懂英文的外國人?
有一個外國人在買電影票時排在一個中學生後面,
售票小姐因為不會說英文,
就請站在前面的中學生告訴後面的外國人說現在只剩站票,
看他要不要買,結果中學生就對外國人說:
‘No seat, you see no see if see stand see.’
(沒位子了, 你看不看, 如果要看,站著看)
外國人聽完後,對中學生說:
‘I don’t understand your English.’
中學生聽到就對售票小姐說:
‘他說他不懂英文.’
Freemind
另一個畫 MindMap 的工具,相對我的 MindGear ,我的 MindGear 仍然乃有很多需要改善的地方。
http://freemind.sourceforge.net/wiki/index.php/Main_Page
Also with flash document reader ~
