Weblog

Saturday, 31 October 2009

  • "
    想想天的一邊 亦有個某某 在等候
    一心只等葡萄熟透 嚐杯酒

    別讓 寂寞害你傷得一夜白頭
    贏得不需要的自由 和最耀眼傷口
    我知 日後 路上或沒有更美的邂逅
    但當你智慧都蘊釀成紅酒
    仍可一醉自救 誰都心酸過 那個沒有
    "

Sunday, 25 October 2009

  • I've Got A Name

    Like the pine trees lining the winding road
    I've got a name
    I've got a name
    like the singing bird and the croaking toad
    I've got a name
    I've got a name
    And I carry it with me like my daddy did
    but I'm living the dream that he kept hid
    Moving me down the highway
    rolling me down the highway
    moving ahead so life won't pass me by
    Like the North wind whistling down the sky
    I've got a song
    I've got a song
    like the whip-poor-will and the babies crying
    I've got a song
    I've got a song
    And I carry it with me and I sing it proud
    if it gets me nowhere, I'll go there proud
    Moving me down the highway
    rolling me down the highway
    moving ahead so life won't pass me by
    And I'm gonna go there free
    Like the fool I am and I'll always be
    I've got a dream
    I've got a dream
    They can change their minds but they can't change me
    I've got a dream
    I've got a dream
    I know I could share it if you want me to
    if your going my way I'll go with you
    Moving me down the highway
    rolling me down the highway
    moving ahead so life won't pass me by
    Moving me down the highway
    rolling me down the highway
    moving ahead so life won't pass me by

Wednesday, 14 October 2009

Wednesday, 30 September 2009

Sunday, 27 September 2009

  • /*
     * main.cpp
     *
     *  Created on: 2009年9月26日
     *      Author: hkng
     */

    #include<iostream>
    using namespace std;

    #include "svg2.h"

    void p_1 (int x, int y, double r, double c_1, double c_2, double c_3, double c_4, char color[] )
    {
        svgout << "circle" << x << y << r*c_1 << 0 << "none" << color;
        svgout << "circle" << x << y << r*c_2 << 0 << "none white";
        svgout << "circle" << x << y << r*c_3 << 0 << "none" << color;
        svgout << "circle" << x << y << r*c_4 << 0 << "none white";
    }

    void p_2 (int x, int y, int r, int num_of_circle, char color[])
    {

        int x_1[num_of_circle];
        int y_1[num_of_circle];
        int r_1[num_of_circle];
    svgout << "circle" << x << y << r << 2 << "none" << color;

        int temp=--num_of_circle;

        while (temp>=0)
        {
            x_1 [temp] = x+100+rand()%150;
            y_1 [temp] = y-50+rand()%100;
            r_1 [temp] = rand()%(r/2)+r/2;
            temp--;
        }
        for (int temp=num_of_circle;temp>=0;temp--)
        {
            svgout << "circle" << x_1[temp] << y_1[temp] << r_1[temp] << 2 << "none" << color;
        }
        for (int temp=num_of_circle;temp>=0;temp--)
        {
            svgout << "circle" << x_1[temp] << y_1[temp] << r_1[temp]*0.6 << 2 << "none" << "white";
        }
        for (int temp=num_of_circle;temp>=0;temp--)
        {
            svgout << "circle" << x_1[temp] << y_1[temp] << r_1[temp]*0.4 << 2 << "none" << color;
        }
    }
    int main ()
    {
        //Circle patterns and designs(1)
        p_1(100,100,20,1,0.75,0.5,0.25,"blue");
        srand(435);
        int a,b,i;
        a=b=i=0;

        while (i<=12)
        {
            p_1(200+a*30+rand()%10,50+b*30+rand()%10,10+rand()%20,1,0.75,0.5,0.25,"blue");
            if (a==3)
            {
                a=0;b++;
            }
            else
                a++;
            i++;
        }
        //Circle patterns and designs(2)
        p_1(100,300,20,1,0.95,0.7,0.25,"green");

        i=0;
        while (i<=1024)
        {
            p_1(200+rand()%150,250+rand()%100,rand()%20,1,0.95,0.7,0.25,"green");
            i++;
        }


        //Circle patterns and designs(3)
        srand (99);
        p_2(100,500,20,1024,"red");




        return 0;
    }

    相信還有人在看這BLOG吧....
    這是大約在下個Comp Lab要寫ga 野,
    有讀C++能力的人可以試試compile and run上面ga programme睇.
    當然,上面缺了svg2.h,正常都不明白我係度做咩......
    活在一堆Code的日子跟自閉有何分別?

    最近一直係UST 摺埋一角,
    但又唔係努力温書,又唔係努力識朋友,更唔係努力溝女,
    只係隨時隨地等待假期,
    但在假期時我卻等待返學的日子.....
    其實,我正等待的,是尚未出現,還是已經失去了?
    我都唔清楚啦.

    係notebook打速成真的好辛苦,
    下次再打吧.

Wednesday, 23 September 2009

Saturday, 05 September 2009

Tuesday, 25 August 2009

  • 轉載

    她的步伐如箭,在即將冲过終点綫时停了下來,等待一位摯友,他们曾經许下承诺,说好一起冲綫。

    可是那位摯友步伐緩慢,滯在起跑綫前緩緩推进,等到她寂寞了,還未能追趕上去。

    她难奈寂寞,撇下摯友独自冲過終點,贏了比赛,獎了一個敌人。自此,和那位曾經的摯友分道揚鑣。

    那天,他们將方向盤扭向相反方向,駛到不同的彼岸,各自寻找生命色彩,當圍繞地球一周后,他们在原來失散的地方相遇。

    當他们重遇后,失去了敌意,只剩下旧朋友的感覺。





    好感概.....

  • 工程師

    工程師(Engineer)是指那些在工程專業領域的人 – 一個人使用科學知識來駕馭技術以解決實際問題。


    工程師和科學家(scientists)往往容易混淆,科學家努力探索大自然,以便發現一般性法則(general principles),工程師則遵照此既定原則,從而在數學和科學上,解決了一些技術問題[1][2]。科學家研究東西,工程師建立東西,這一想法,可視為表達這句話, "科學家們問為什麼,工程師問為什麼不能呢? "("Scientists ask why, engineers ask why not?") 。




    我到底喜歡問"why"多d,定係喜歡問"why not"多d?

Sunday, 23 August 2009

  • [轉載]斷章取義

    文字是人類特有的。可是,人類中的一些敗類發明了文字的一種特殊用法:斷章取義。(當然,還有更狠的敗類,令人因言獲罪)

    天才就是99%的汗水再加1%的靈感。可是,愛因斯坦愛迪生說的原話是:

    天才就是99%的汗水再加1%的靈感,但這1%的靈感遠遠比99%的汗水重要

    吾生有崖,而知無崖。可莊子在《養生主》裡的原話是:

    吾生有崖,而知無崖;以有崖求無崖,殆哉矣

    中國是一隻睡獅,一旦它醒來,整個世界都會為之顫抖。可拿破崙的原話是:

    中國是一隻睡獅,一旦它醒來,整個世界都會為之顫抖。……它在沉睡著,謝謝上帝,讓它睡下去吧

    執子之手,與子偕老。可是,《詩經·邶風·擊鼓》與愛情根本沒什麼關係:

    擊鼓其鏜,踴躍用兵。土國城漕,我獨南行。
    從孫子仲,平陳與宋。不我以歸,憂心有忡。
    爰居爰處?爰喪其馬?於以求之?于林之下。
    死生契闊,與子成說。執子之手,與子偕老。
    於嗟闊兮,不我活兮。於嗟洵兮,不我信兮。

    人生而平等。可寫進美國憲法的話完整的是:

    人生而在權利和尊嚴面前平等。

    金錢是萬惡之源。可是聖經中明明寫的是:

    Timothy 6:10, “The love of money is a root of all kinds of evil.”

    三思而後行。可是那並不是孔子說的話。

    《論語·公冶長》:季文子三思而後行。子聞之曰:再,斯可矣。——粗譯: 季文子做事猶豫不決,總是想來想去,依然不行動。孔子聽說之後,歎道:多想一下就可以了。(更多詳細解釋參見這裡

    以德報怨。這也是扭曲了孔子說的話。

    《論語·憲問》 或曰:以德報怨,何如?子曰:何以報德?以直報怨,以德報德

    ——粗譯:有人問,以德報怨怎麼樣啊?孔子說,那用什麼報德呢?他對我怎樣,我就應該對他怎樣,他對我我好,我就對她好。

    Pure Pleasure - Reborn © 2007 - 轉載本文時請保留此連結。


Top Tags - Weblog

[no tags]