星期四要考CUNY 數學

嗯進CUNY大學需要考數學, 看看程度如何
說實在, 我現在的數學技術真的變得很爛...只能說明天看看運氣
如果考不到根的分數=.=我還有什麼面子去讀什麼大學...
我才不想在大學讀什麼「補習班」....

今天早了點回家, 說是讀書, 回家後又在打電腦
可是, 在上網的時候, 突然發現我的 D 硬盤有咔咔咔的怪聲
我就知道是糟糕了....
該死的時候死不去

我拆了出來, 再放去, 整台電腦都俾我拆的光了
最後還是無法連接回來
想用HDD Regenerator, 可是它只找到我的C Drive....
WTF? 我現在很無奈, 到底是我不會插那個HD, 還是它根本已經死了?

死了我也會跟隨去死, 別死啊大哥, 裡面有好多重要的東西...
這幾年來的照片啊....還是一大堆圖片....網絡資源, 程序收集 (如破解那些), 死了你叫我怎麼好....
還有grace和wendy的那些東西, 喔還有盈盈, 毛毛....這些都是回憶啊!!!!!!!!

如果....

下課回家打電腦後睡了一回, 起來打算看看她的blog
發現她已經將blogspot改成 只有被邀請的人可以瀏覽的選項
而且blogspot也在08年的時候將private blog的 rss / atom feed給直接關閉了
本來這種措施是沒有錯, 很合理, 但這不代表我根本沒有機會去看她的生活狀況嗎?

搞了很久, 想去看看她的xanga, 她連xanga都給直接關閉了
URL根本進不去, 好像是直接將帳號給刪除了? 或 deactiv

說實在....下課回家打電腦後睡了一回, 起來打算看看她的blog
發現她已經將blogspot改成 只有被邀請的人可以瀏覽的選項
而且blogspot也在08年的時候將private blog的 rss / atom feed給直接關閉了
本來這種措施是沒有錯, 很合理, 但這不代表我根本沒有機會去看她的生活狀況嗎?

搞了很久, 想去看看她的xanga, 她連xanga都給直接關閉了
URL根本進不去, 好像是直接將帳號給刪除了?

說實在....她早知道是我留言, 早知道我一直在暗處看她的blog
這也不是第一次我被人家發現幹這門事
好像把我說成一個變態.... 但事實上, 我只是想知道她最近怎麼樣...而已

不過她有她的道理, 我也很清楚
只是我知道之後很不開心... Jennifer 找我我也不回應, 她居然還記得我想她星期五來學校探我
不過星期天我說的那些話本來已經嚇到她
我按以前對wendy的方法對待她

唉, 誰會真正知道我的想法? 星期四我要考大學試....好累啊

using fetch method to get rank title in phpBB

I was coding my phpbb mod and I had troubled with getting the rank title from the database. I went to Star TrekGuide for help, and it turned out to be a great idea.
get rank title

According to what Erik suggested, the way it works is to fetch it out once we get the correct and value from the table.
The problem I had was didn't get any value in return, so my codes failed to get either the correct row, or didn't get anything out from the table.

The correct way is to do something like as the following

1
2
3
$sql = 'SELECT *
   FROM '
. RANKS_TABLE . '
   WHERE rank_id = '
. $user->data['user_rank'];

So I got the concept and went ahead coded the rest on my code.
The resulting code is this:

1
2
3
4
5
6
7
8
$sql = 'SELECT rank_title
   FROM '
. RANKS_TABLE . '
   WHERE rank_id = '
. $user->data['user_rank'];
$result = $db->sql_query($sql);
$rank_title = $db->sql_fetchfield('rank_title');
$db->sql_freeresult($result);

'RANK_TITLE'  =>  $rank_title;

Another fact I learned is the problem with free the sql result, or close down the query.
I was tricked by the fact that, in phpBB, the developers do not immediately close down the request all the time. Sometime $db->sql_freeresult($result); is used right after the $sql selection request, but in most cases, in the page footer, one single $db->sql_freeresult($result); will be enough to close all the requests.

Of course, it will still be good to close it right after each $sql. But for a larger application like phpBB as a whole, it is very reasonable to close them down all at once (not always all, most of the time, yes).

Reference from Erik

The $db->sql_freeresult($result); is used always. I think that you are tricked by the fact that it isn't always called right after the query, sometimes this isn't possible as you might want to re-use the result later on or just don't want to worry about it.
Due to the way phpBB is setup you can (but shouldn't) leave the call out at all as long you call the garbage_collection() function somewhere (this is done in page_footer()) as this function calls the $db->sql_close() method. This method will run $db->sql_freeresult($result) on all open queries before it closes the database connection.
Good coding practices however makes you to call it yourself.

8種顏色看你的生活狀況....

http://goldinuniverse.com/

你會被ask to choose 8種color, most harmony to the least.....

我的結果如下

Name: Yeukhon Wong
Date: 3/23/2009
Colorgenics Number: 43612507

Your mind is never at rest.You are continually striving to influence all those about you. You have some excellent ideas but you persist in trying to persuade others just how great your ideas really are. Maybe you are trying too hard. Take it easy - remember, 'Everything comes to those who wait'.

You are not be feeling so good at this time. Everything seems to be getting on top of you. What you need is a rest from all of the the present trials and tribulations in peaceful surroundings and with someone - male or female, it doesn't really matter - who can really understand you and appreciates your needs.

You feel that you should be appreciated far more than you are but no-one seems to care! You feel that you are receiving less than your share and the main problem is that there is no-one to whom you can turn to for sympathy and understanding. The inner stress that you are experiencing makes you quick to take offence but you realise that at this particular moment in time there is little that you can do to relieve the situation.

You are being unduly influenced by the situation that is all around you. You do not like the feeling of loneliness and whatever it is that seems to separate you from others. You know that life can be wonderful and you are anxious to experience life in all its aspects, to live it to the full. You therefore resent any restriction or limitations that are being imposed on you and you insist on going it alone.

You are anxious about all the limitations to which you are subjected to at this time. You feel that you are not valued for what or who you are. You need OUT. So why procrastinate any longer - MOVE!

說實在, 101%正確.;..非常的精確...
根本沒有一個人值得我去信賴, 沒有一個人真正明白我
我還是想不通, 到底為什麼
其實我現在也不知道我要問什麼問題, 因為我好像根本沒有一條問題存在, 但的確有很多事情我需要去處理
是不是一個聰明的人總是沒有一個人明白自己?

呢個星期做左咩

無番兩日學, 因為病左
好無聊下的一個星期- -"
星期五番學見到christine, 無啦啦走過黎 HI我, - -"
呢個星期好似叫做開心左, 都唔係真係係假, 個心係relax左, 同番 owner傾計....
不過佢去左west point三日兩夜....唉

今日星期日, 打算去個Walk, 拎d野番黎做evidence, 無打算走完成個walk, 但個天都幫我-.- subway track damage
無得去€, 番黎屋企打電話俾MTA, 錄低佢段alter message, send左俾arista, 到時又拎到10分

呢個星期晚晚等睇佢個blog, 星期一開始有留言既...
呢兩日無update個blog, 到底邊個係stalker? 係我? 因為我留言? 定係另有其人?

laughing哥最終都係無死, 但個版本聽講唔係幾好, 唔好搞到好似古靈咁仆街....
不過laughing今年應該係男配角的大熱
可惜家陣咁早播, 男配角的大熱可能會係年尾的 TVB個陣少左好多支持都未定
但我諗應該ok....

Working on phpBB mod again

Yes, I am working on some phpBB mod again. I haven't update any of my small mod for really a long time: just a year :)
Well, I did like 20% of the work today, re-coding my avatar mod into a real welcome panel modification which I planned a year ago.

This is not just a new feature but to enhance the forum system in a way.
The design was still very ugly, I'd rather to have jquery accordion to do the job, but I withdrew the plan because I just couldn't find a dream one: speed, light-weight, and feature-useful.

Many of the jquery acordion I found are very heavy and slow. If I have to include php, loading data, it will cause a big trouble on the users.

Here is the screenshot on what I did today, very messy, very bad, if you look at all those php and html files I opened, you probably will get a heart attack because they were so messy... new codes were all over the place...

#

那種感覺?

其實心裡明白....
年度之歌... 講真...我心裡明白.....

星期六星期日過度傷心
星期一的晚上同jennifer傾左好耐
都唔知係我真係開心番, 開始放開番自己, 定係我只係真係無法忍受無人同我傾計的個種痛苦?

who knows? god knows...
我仍然都係咁鍾意wendy...
但...我總要接受有朝一日, 佢會鍾意第二個男仔 (which she does now...) and... 佢點都會拍拖, 結婚...生仔...

心裡面好想, 做番朋友, 最少....希望有日佢分左手搵我傾計, 可以搵我一齊喊...
又或者, 最少, 可以見到佢結婚....仲有可以同佢得閒約出黎食下飯.....

祝英台

到底是祝英台, 還是祝英愛?

她喜歡的人不是我, 我知道的

從她的blog, 看了, 眼睛痛起來, 那種感覺, 很久沒有了....
我想知佢係邊個, 我估唔到個名.... 佢特登咁樣隱藏...我睇要花一段時間先知係邊個....
我其實想睇下, 佢係點樣的一個人, 點解會吸引佢?

Trying to write another average program in C++

I want to where my level stands, so I opened the book a few days ago, and tried to write it in C++ using what I know so far on control structures.

TASK

Drivers are concerned with the mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording miles driven and gallons used for each tankful. Develop a C++ program that will input the miles driven and gallons used for each tankful. The program should calculate and display the miles per gallon obtained for each tankful. After processing all input information, the program should calculate and print the combined miles per gallon obtained for all tankfuls.

You know I had been busy the whole week and tired after all these exams and lack of sleeping. I just spent a few minutes on Monday I believe, and failed the program I attempted to write. I found my thinking was wrong because I didn't read the task carefully, and did not analyze the entire task thoroughly.

I did some thinking today as I was walking home. I got stuck at one point: the ending - find the average of the combined miles per gallon from all the previous results. I need to store these results somewhere and use them later. I got some ideas and I believed I am on the correct route, but just too exhausted to continue thinking on the problem. By the way, I just woke up and is about to sleep again.

So far my thinking is simply, 1) what are the variables use in the program (I probably missed one or two in the drafting) 2) how to obtain the combined average (the concept about getting the results from the previous results without using tool like pointers, just simple loops) , 3) i know this is a loop, by solving #2 i can continue to formalte the structure of the loops.

So this is what I am thinking on

1
2
3
4
5
6
7
8
9
int main()
{

// variables //
//initialization //
//do-while loops (i think) to get the result for each mpg until a sentinle value is receive to end the loop//
// if-else loops to do the usual non-zero division referring to the do-while loops //
// another loops on finding the combined miles per gallon //
}

I think I am getting something from this draft now.... oh well

good time?

看到她的blog, 那一刻, 心軟了....
投降了....我實在敵不過她, 打不過自己...
心軟了, 但還是每天一次兩次四次五次地反覆思考, 反省, 深入研究....

心軟了....?
現在要想jealous, 也沒了那份jealous的感覺
不只是心軟了, 我整個人也沒力了....

從10月起到現在, 每天都在思考, 我還真的不知道到什麼時候, 我才會完全停止對這件事思考

雖然只是很短的幾行字, 但已經徹地的打敗我
但沒有人知道我心裡在想什麼...說實在, 終極目標大家知道
但誰知道在這個願望前面有多少故事, 有多少路障在阻礙我?

十年不是開玩笑, 五個月已經可以用光一生的精力, 連智慧都賠上了, 十年, 還有什麼可以輸下去?比下去?
告訴我吧, 我還要什麼? 那一刻多麼想跟她和好? 哪怕一年一句您好, 我總算不用假裝自己
人人都看透我, 我還在看自己有沒有本事不讓別人看透

我輸掉了....Wendy, 我輸了....

但再想一想, 這個「哪怕」, 我不甘心去接受, 哪怕....?
又重新回到起步點, 每天都在想同一個問題, 同一個人, 同一個微笑, 同一個笑聲. 同一個故事, 同一個名字....

誰真的知道我的想法? 就好像沒有人真正明白我離開robotics的原因一樣

Page 1 of 212»