星期一, 10月 01, 2007

e-mail 測試分手態度

使用 e-mail 幾乎已經成為每個人的習慣,但是廣告郵件的氾濫,也造成使用者的困擾。最近你打開電子信箱,每次都發現不知哪個人寄了一堆垃圾信件給你,把信箱都灌爆了,你會有什麼反應呢?


A、更換信箱

B、自認倒楣,直接刪除

C、轉寄給討厭的人

D、破口大罵,回信報
---------

A、更換信箱
  當分手時,你會一直追問或思考到底為什麼?一定要對方給你很明確的說明,因為你會仔細考慮自己可不可能改進,再想要不要去挽回這段感情。基本上你是屬於會為對方著想,甚至讓步的人,不過感情這回事,有時候並沒有理由,如果感覺消失了,就很難再繼續。


B、自認倒楣,直接刪除
  本質上你是個善良的人,被拋棄時心情非常的難過,但會選擇自己一個人默默的承受。你認為愛情是可以包容對方的一切,大家好聚好散,讓彼此都有一個美好的回憶,即使他曾經傷害過你,你也不會記恨在心中。這樣的想法,使你容易去原諒一個人,也許你也是不想破壞自己在對方心目中的印象,希望日後他想起你時,是懷念不止,而非恨意無窮的。


C、轉寄給討厭的人
  當分手時,你的第一個反應就是不能接受,你可能會不斷安慰自己,對方只是一時的衝動,其實他還是愛你的。然後你會苦苦糾纏,無法釋懷,相信對方總有一天會回到你身邊,甚至以這個希望當作是自己生存的動力。不過有時這只是一個自欺欺人的做法,如果對方不愛你了,還是要接受事實,否則對彼此都沒有好處。


D、破口大罵,回信報
  如果遭受別人的拋棄,你立即的反應是非常憤怒,恨不得要對方馬上付出慘痛的代價。好一陣子你都會一直在腦中仔細盤算如何修理他,給他一個教訓,但事到臨頭了,只要對方哀求或擺出低姿態,你可能又馬上心軟,複仇計劃也跟著不了了之,所以你是屬於雷聲大雨點小的人。

本文: http://healthymethod.blogspot.com/2008/04/e-mail.html


上一篇: 星洲肉骨茶
下一篇: 由手機號碼尾數看出你的戀愛期限

星期四, 9月 20, 2007

EE 2000 Logic Circuit Design, Semester A, 2007/08, Tutorial 2

Level 1
Question 1: Complete the following table by encoding the decimal number 215 in the following format. Please show the bit configuration and count the number of bits used.





Question 2: Gray Code
(a) Convert the binary numbers “1101001” to gray
(b) Convert the gray code “11001100111” to binary


Question 3: Find and correct the error in the following code sequence. Assume odd-parity has been used.


Level 2
Question 4: An interesting application of the 2 of 5 Code is the U.S. Postal Service bar code (ZIP code). The bar code is not the same as what we learnt in lecture.


Decimal
USPS bar code
Decimal
USPS bar code
0
11000
5
1010
1
11
6
1100
2
101
7
10001
3
110
8
10010
4
1001
9
10100



Each digit is represented by 5 bars. 0 is printed as a short bar while 1 is printed as a long tall bar. The ZIP code appears between two tall bars called frame bars which serve to define the beginning and ending of the bar code. A final check sum digit is also included.

(a) Can you guess the ZIP code?
(b) Can you guess the usage of the check sum digit?


Question 5: There are many ways to represent decimal digits on computers. For the weighted code, you have learnt 8421 code, 5421 code and 2421 code. The numbers in the code name indicated the weights of each digit. Can you guess how the (8, 4, -2, -1) code looks like?
(a) Please complete the following table

Question 6: Design a 4-bit unit-distance code for representing the ten decimal digits (i.e. 0, 1, 2, … 9) that has the property that the code words for any two digits only differ by one bit. (Hints: Gray code is not appropriate since decimal 0 (0000) and decimal 9 (1101) differs by 3 bits)

Question 7: The following block of data is received from the transmission system with a vertical parity system. Horizontal parity is to be odd; vertical parity is to be even. An all-1s is EOB.

(a) Find any parity failure
(b) Correct the error, if possible
(c) Is it possible to have three bits in error? If yes, please show several possible locations.

星期三, 9月 19, 2007

汽車車名英漢對照大全[t]

T
T-Type T型車
Taft 塔夫特
Talbot Horizon 塔爾伯特·地平線
Tasmin 塔斯明
Tatra 太脫拉
Taunus 陶奴斯
Teamstar 郊游隊之星
Telstar 通訊衛星
Tempo 天霸
Tercel 特色
Terrano 特蘭諾
Testarosa 特斯塔羅莎
Thema 旋律(思瑪)
Thunderbird 雷鳥
Tiara 三重冕
Tiger 虎
Tipo 伙伴
Titan 大力神
TN Acty 梯恩·阿克泰
Toledo 托萊多
Today 今日
Top Executive 最高經理
Topaz 蜂鳥
Topkick 托普基克
Toronado 托羅納多
Touring 旅行
Townace 唐艾斯
Toyoace 豐田之花
Toyopet 豐田寶貝
Toyota 豐田
Trabant 特拉貝特
Tracer 探索者
Traffic 運輸
Traneit 人造衛星
Trans AM 特蘭斯AM
Transfer 轉運
Transit 特蘭西特
Transporter 運輸者
Tredia 特雷迪亞(特德)
Tristar0 三星
Trooper 騎兵
Turbo 路華
Turbostar 渦輪之星
Turismo 圖力士姆
TVR TVR
Twingo 天高

星期二, 9月 18, 2007

約四成港人屬超重或肥胖

香港衛生署於二零零四年十月進行了一項大型行為風險因素調查,共訪問了二千多名人士,結果發現: 财

16.8%受訪者屬超重,而肥胖的則有21.6% 财
飲食不健康 —— 每人每日只吃一份水果及一份蔬菜财
運動量不足 —— 逾50%受訪者一星期也沒有一天能進行十分鐘中等劇烈程度的運動财
16.9%受訪者以進食「健康產品」控制體重财
4.1%受訪者會光顧纖體公司以踢走身上脂肪
衛生署另一項在2003年3月王2004年4月進行的調查,共訪問了7000名年齡介乎於15歲至64歲的人士,結果發現近40%的城市人口屬超重或癡肥,其中18%是超重,而癡肥的則有21%。調查亦發現中年以上人士(55-64歲)最常出現超重或癡肥的問題,在這個年齡組別中的男士和女士都有分別50%的人屬超重或癡肥。

雖然近年大家都開始注意到均衡飲食的重要,令身型方面較從前纖瘦,但是香港人和其他亞洲已發展國家的人一樣,已習慣了在日常生活各方面都依賴機器和科技的幫助,令身體的勞動機會大減。調查指出中約有33%的受訪香港人都絕少運動。缺乏運動是亞洲人體重增加,超重和癡肥人口激增的主要原因之一。

專家指每星期抽2至3天,每天做30分鐘的運動只能助你控制或維持現有的體重。若希望達到減重的效果,就必須經常,甚至每日做45分鐘至60運動,再配合均衡的飲食及避免進食高脂,高油,高鹽,高糖的食物。


本文: http://healthymethod.blogspot.com/2008/04/blog-post_7808.html

上一篇: 你最想摸BB哪兒 ? (談戀愛的速度)
下一篇: 健康生活從早餐開始

星期一, 9月 17, 2007

節約時間的暗示





奇妙的圖形/背景幻覺圖形,由斯坦福心理學家羅傑·謝潑德創作。

星期三, 9月 12, 2007

EE 2000 Logic Circuit Design - Semester A, 2007/08 - Tutorial 1

EE 2000 Logic Circuit Design,
Semester A, 2007/08
Tutorial 1
Week 2 (12th September, 2007)
The questions are divided into two levels. Level 1 is the basic level question. You should
be able to answer them after completing the lecture. Level 2 is the advanced level
question. You may have to take a research before answering them. Please be prepared
before the tutorial.
Level 1
Question 1: Complete the following table by converting the below numbers to decimal,
binary, octal and hexadecimal number systems.

DecimalBinaryOctalHexadecimal
2711011331B
237.2511101101.01355.2ED.4
250.81111 1010.1100 1100…372.6314 6314…FA.CC…


Question 2:
(a) What is the largest binary number that can be obtained with 16 bits?
(1111 1111 1111 1111)2

(b) What is its decimal equivalent?
 215 + 214 + … + 21 + 20 = 216 – 1 = 65535

Question 3: Find the 1's and 2's complements of the following 8-digit binary numbers:

(a) 0010 1010
1101 0101 (1’s complement)
1101 0110 (2’s complement)

(b) 1111 1111
0000 0000 (1’s complement)
0000 0001 (2’s complement)


Question 4: Perform the arithmetic operations (-128) + (-1) in binary using

(a) 8-bit signed 2's complement representation for negative numbers

-128 = 1000 0000;
-1 = 1111 1111;
(-128) + (-1)
= 1000 0000 + 1111 1111
= (1) 0111 1111
Discard carry, we get 0111 1111
(Result incorrect. Overflow because –ve + -ve becomes +ve)

(b) 9-bit signed 2’s complement representation for negative numbers
Does overflow happen? Why?

-128 = 1 1000 0000;
-1 = 1 1111 1111;
(-128) + (-1)
= 1 1000 0000 + 1 1111 1111
= (1) 1 0111 1111
Discard carry, we get 1 0111 1111 (= -129)
(No overflow as –ve + -ve gives a –ve number)


Level 2
Question 5: Please calculate a + b, a - b, a · b, and a / b for the pair of binary numbers a
= 10101 and b = 1011 without converting to decimal (Show your work and the carries)



A = 10101, B = 1011
  11110
   10101
+)  1011
 100000 a + b = 100000

01010
 10101
-) 1011
   1010 a - b = 1010 (You can get the same result if using 2’s complement)

      10101
x)     1011
10101000
              0
    101010
      10101
11100111 a · b = 11100111

                 01
1011 ) 10101
             1011
               1010 a / b: quotient = 1, remainder = 1010






Question 6: Determine the value of x if (211)x = (152)8.


(211)x = (152)8
2 · x2 + 1 · x + 1 = 1 · 82 + 5 · 8 + 2
2x2 + x – 105 = 0
(2x + 15)(x – 7) = 0
∴ x = 7 (x must be a positive integer so cannot be -7.5)


Question 7: Formulate a simple procedure for converting base-4 numbers directly to
hexadecimal number. Use the procedure to convert (12321)4 to base 16. (Hints: 42 = 16)

Partition the digits into groups of 2 each (one hex digit = 2 base-4 digits)
Add necessary 0s to the left and right
Replace each group of base-4 digits by the hex equivalent
So, (12321)4
= (01 23 21)4 (Note: 234 = 2·41+ 3·40 = 11 = B16)
= (1 B 9)16

Question 8: In the lecture, we only discuss the r’s-complement and (r-1)’s-complement
of an integer number. Find the 1’s complement and 2’s complement of the following
fractional binary numbers.
(a) 010.11

1’s complement: 23 - 010.11 - 2-2 = 101.00
                                2’s complement: 23 - 010.11 = 101.01


(b) 11011.100


1’s complement: 25 - 11011.100 - 2-3 = 00100.011
                                 2’s complement: 25 - 11011.100 = 00100.100

星期二, 9月 11, 2007

xp10個小秘技

1.改變Windows XP的登錄背景圖案:
要長期面對一種登錄圖案,肯定會覺得十分單調,趕快跟我來,讓我們一起來把它換成我們自己喜歡的圖案。步驟如下:首先打開註冊表編輯器,找到 HKEY_USERS\.DEFAULT\Control Panel\Desktop子鍵分支,雙擊Wallpaper,鍵入你所喜歡的圖片路徑,單擊“確定”,然後找到Tilewallpaper,雙擊輸入鍵值“1”,確定後再重新啟動系統,效果是不是變了!趕快試試吧。

2.改變登錄時的背景色:
修改完了Windows XP登錄時的背景圖案,還可以修改Windows XP登錄時的背景顏色。首先,打開註冊表編輯器,找到HKEY_USERS\.DEFAULT\Control Panel\Colors子鍵分支,雙擊子鍵分支下的Background鍵值名,會出現“編輯字串”對話方塊,在“數值資料”下的框中輸入你想要的顏色鍵值,“確定”後,重新啟動系統即可。(系統預設值是58 110 165,白色為255 255 255,紅色為255 0 0,黑色為000)。

3.“運行”的妙用:
在“開始”功能表中的“運行”選項中輸入“.”會打開C:\Documents and Settings\XXX(當前登錄Windows XP的用戶名)文件夾;在“運行”選項中輸入“..”然後選擇“確定”,電腦就會打開Windows XP所在的盤符下的Documents and Settings文件夾(如C:\Documents and Settings);如果輸入“...”然後選擇“確定”,就會打開“我的電腦”選項。

4.加快啟動速度:
Windows XP雖然好使,但是啟動時間還是有點長,接下來我們就讓它進一步的縮短啟動的時間。打開註冊表,在註冊表編輯器中找到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters子鍵分支,將右邊EnablePrefetcher鍵值項的鍵值改為“1”,(它的預設值為 “3”)重新啟動電腦,是不是快了許多?

5.加快關機速度:
既然把Windows XP的啟動速度提高了,它的關機速度當然也要縮短。打開註冊表編輯器,找到HKEY_CURRENT_USER\ControlPanel\ Desktop子鍵分支,把HunaAppTimeout鍵值項的鍵值改為“5000”,把WaittoKillappTimeout鍵值項的鍵值改為 “4000”。接下來在註冊表編輯器中找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control \,把WaitToKillServiceTimeout鍵值項的鍵值改為“4000”,確定之後重新啟動系統同樣可以加快Windows XP的關閉速度。

6.快速打開文件夾:
在“資源管理器”中,如果文件夾太多,為了方便地查看某個檔夾下的所有子目錄,只需選中這個檔夾,然後再按小鍵盤上的“*”號鍵,電腦就會把這個檔夾下的所有子目錄展開。例如你選擇了“C盤”,再按鍵盤上的“*”鍵的話,電腦會把“C盤”下的所有檔全部打開。

7.啟動時恢復以前的桌面設置:
又有別人在亂動我的電腦了,而且把我的桌面設置搞得亂七八糟。不過沒關係幸好我有自己的獨門秘訣,只要重新啟動電腦後即會變成我原來的設置。想學的話就趕快來吧!首先打開註冊表編輯器,找到HKEY_CURRENT_USERS\Software\Microsoft\Windows\ CurrentVersion\Polices\Explorer子鍵分支,將“NoSaveSettings”鍵值項刪除或是把它的鍵值改為“0”,確定後,重新啟動系統。好了,以後別人再怎麼改你的桌面設置,只要你重新啟動電腦後就會回到你以前的設置。

8.改變視窗彈出的速度:
通過一些簡單的修改你就可以改變視窗彈出的效果,不想試試嗎?首先打開註冊表編輯器,然後找到HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics子鍵分支,在右邊的視窗中找到MinAniMate鍵值,其類型為REG_SZ,默認情況下此健值的值為1,表示打開視窗顯示的動畫,把它改為0,則禁止動畫顯示,接下來從開始功能表中選擇“登出”命令,啟動剛才所作的修改即可。

9.禁止Windows XP的壓縮功能:
Windows XP自帶了壓縮功能,雖然比較方便,但功能比較單一。壓縮時我們都會用一些比較專業的壓縮軟體,因此Windows XP自帶的壓縮功能對我們來說就沒有什麼用了。如果要取消它只需點擊“開始”下的“運行”,在“運行”輸入框中輸入“regsvr32/u zipfldr.dll”,然後按回車鍵即可。

10.設置個性的啟動資訊或警告資訊:
自己的電腦,當然要有自己個性的體現。下麵就教你一招個性化的Windows XP啟動。打開註冊表編輯器,找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon子鍵分支,雙擊LegalNoticeCaption健值,打開“編輯字串”對話方塊,在“數值資料”下的文本框中輸入自己想要的資訊標題,如“哥們兒,你好!”,然後點擊“確定”,重新啟動系統即可。如果想要改變警告資訊的話可以雙擊 LegalNoticeText健值名稱,在出現的“編輯字串”視窗中輸入想要顯示的警告資訊,單擊“確定”按鈕後,重新啟動即可看到修改後的效果了。

推薦此文