發表文章

目前顯示的是 2月, 2010的文章

愛的代價

曲:李宗盛 詞:李宗盛 還記得年少時的夢嗎 像朵永遠不凋零的花 陪我經過那風吹雨打 看世事無常 看滄桑變化 那些為愛所付出的代價 是永遠都難忘的啊 所有真心的 痴心的話 永在我心中雖然已沒有他 走吧 走吧 人總要學著自己長大 走吧 走吧 人生難免經歷苦痛掙扎 走吧 走吧 為自己的心找一個家 也曾傷心流淚 也曾黯然心碎 這是愛的代價 也許我偶爾還是會想他 偶爾難免會惦記著他 就當他是個老朋友啊 也讓我心疼 也讓我牽掛 只是我心中不再有火花 讓往事都隨風去吧 所有真心的 痴心的話 仍在我心中雖然已沒有他 --- 從蚯老師表哥 小臺的無名 看到他自彈自唱 好聽~

note

WARNING: Unable to open an initial console. 拿出Linux LiveCD開機,掛載上root分割區 用chroot轉移掛載目錄並建立缺少的static nodes cd /dev mknod -m 660 console c 5 1 mknod -m 660 null c 1 3 Reference: Computer Help for the New and Veteran User for Linux

昨夜的夢

沒來由的 現實 夢境 理想 回憶 全都錯綜複雜地交織著 我大聲的撕吼著 糾結的心 混亂的思緒 在此刻 我只想要一絲的寧靜

夜雨

我不知道這是第幾個失眠的夜晚 或許只要大雨的夜晚 我的腦袋就特別的清醒 最近腦中總是浮現著一些事 尤其在這個夜晚特別的清楚

Execute shell/bash command using C/C++

#include <cstdlib> #include <cstdio> using namespace std; int main() {   // declaration of record   char record[1000];   // prints the shell command into record   sprintf(record,"/bin/ls");   // this executes what record contains   system(record);   return 0; }

Inter-process communication

Message Queues from Beej's Guide to Unix IPC mq_overview(7) - Linux man page 很怪的是POSIX Message Queue我一直無法執行,它說我mq_send(): Bad file descriptor :( 也mount mqueue了 GG~ 有人對multi-processes / multi-threads的IPC熟的嗎? XD

無用的踢ㄟ夫踢批

First, we must Configuring a TFTP Server for Linux . that's all ... lol also see Trivial File Transfer Protocol Sorcerer's Apprentice Syndrome

搞不懂

每年一次要上演一次一上才開心嗎? 有這麼難嗎!? fuck this 令人無言

POSIX Threads

POSIX Threads Programming POSIX thread (pthread) libraries 最近在吃書 (嗝) 因為要用到POSIX Thread ※如果include 後compiler還會出現undefined reference to `pthread_create'的error話。請記得compiler時加上-pthread(gcc) / -lpthread(g++)