星期日, 1月 11, 2009
Group Policy 管理?
管理權限、軟件安裝與操控、本機與網絡資源存取,而這些項目多達二、三百項,
[ 這些均可透過Group Policy ] 來修改,從而達到更佳的安全性。
星期六, 1月 10, 2009
罵人不用三字經 佩服佩服 (純好玩)
進化不完全的生命體,
基因突變的外星人,
幼稚園程度的高中生,
先天蒙古症的青蛙頭,
聖母峰雪人的棄嬰,
化糞池堵塞的兇手,
非洲人搞上黑豬的後裔,
陰陽失調的黑猩猩,
被諾亞方舟壓過的河馬,
新火山噴發口,
超大無恥傳聲擴音喇叭,
愛斯基摩人的恥辱,
和蟑螂共存活的超個體,
生命力腐爛的半植物,
會發出臭味的垃圾人,
唾棄名詞的源頭,
每天退化三次的恐龍,
人類歷史上最強的廢材,
上帝失手摔下來的舊洗衣機,
能思考的無腦袋生物,
損毀亞洲同胞名聲的禍害,
祖先為之蒙羞的子孫,
沉積千年的腐植質,
科學家也不敢研究的原始物種,
宇宙毀滅必備的原料,
連半獸人都瞧不起你的半獸人,
10倍石油濃度的沉積原料,
被毀容的麥當勞叔叔,
像你這種可惡的傢伙
只能演電視劇裡的一陀糞,
比不上路邊被狗過灑尿的口香糖,
連如花都美你10倍以上,
找女朋友得去動物園甚至要離開地球,
想要自殺只會有人勸你不要留下屍體以免污染環境,
你摸過的鍵盤上連阿米吧原蟲都活不下去,
噴出來的口水比SARS還致命,
裝可愛的話可以瞬間解決人口膨脹的問題,
耍酷裝帥的話人類就只得用無性生殖,
白痴可以當你的老師,智障都可以教你說人話,
只要你抬頭臭氧層就會破洞
要移民火星是為了要離開你,
如果你的醜陋可以發電的話全世界的核電廠都可以停擺,
去打仗的話子彈飛彈會忍不住向你飛,
手榴彈看到你會自爆,
別人要開飛機去撞雙子星才行而你只要跳傘就有同樣的威力,
你去過的名勝全部變古蹟,你去過的古蹟會變成歷史,
18輩子都沒幹好事才會認識你,連丟進太陽都嫌不夠環保
星期四, 1月 08, 2009
EE3120 (B) MP & ASSEMBLY LANGUAGE PROG (02EE3120) Quiz 2 Solution
1. Compile and state the contents of each ROM location for the following data.
ORG 100H
MYDAT_1: DB "EE3210"
MYDAT_2: DB "Spring"
MYDAT_3: DB "12-2-10"
[10 marks]
Ans:
0100 1 ORG 100H [1 mark]
0100 45453332 2 MYDATA__1: DB "EE3210" [3 marks]
0104 3130
0106 53707269 3 MYDATA 2: DB "Spring" [3 marks]
010A 6E67
010C 31322D32 4 MYDATA_3: DB "12-2-10" [3 marks]
0110 2D3130
2. In the 8051, which register bank conflicts with the stack? What is the size of the stack pointer (SP) register?
[10 marks]
Ans: Register bank 08 conflicts with the stack. [5 marks]
SP size is 8 bits. [5 marks]
3. Explain what is the difference between these two instructions.
(a) MOV A0H,#10H (b) MOV @R0 , #10H ;if R0=A0H
[10 marks]
Ans:
(a) Puts 10h in the address A0h of the SFRs (which is P2) [5 marks]
(b) Write 10h into the address A0h which is referred as memory [5 marks]
4. Assuming the use of bank 1, find at what RAM location each of the following lines stored the data.
(a) MOV R4,#16H (b) MOV R1,#20H (c)MOV R3,#24H (d) MOV R7,#12H
[12 marks]
Ans:
Bank 1 location from 08-0F; i.e. R0 locates at 08 and R7 locates at 0F
(a) MOV R4,#16H will write to RAM location 0C
(b) MOV R1,#20H will write to RAM location 09
(c) will write to RAM location 0B
(d) will write to RAM location 0F [3 each total 12 marks]
5. Find the contents of register A after each of the following instructions,
MOV A,#60H
ANL A,#36H
[8 marks]
Ans:
MOV A,#60H Accumulator A stores 60H [4 marks]
ANL A,#36H Value A will operate an “ANL” with 36, ie 0110 0000 (60) and 0011 0110 (36) = 0010 0000 and get 20. [4 marks]
Write a program to get 8-bit data from P0 and send it to ports P1 and P2.
[10 marks]
Ans:
ORG 0000h [1 marks]
MOV A, #0FFH[2 marks]
MOV P0, A[2 marks]
MOV A, P0[1 marks]
MOV P1, A[1 marks]
MOV P2, A[1 marks]
HERE: SJMP HERE[1 marks]
END[1 marks]
星期三, 1月 07, 2009
隱形斗篷在理論上是可行的
美國杜克與英國倫敦大學帝國學院的研究人員說,他們研發了一種從國防應用到無線通訊等多種用途的隱形斗篷藍圖。
研究團隊獲得美國國防部國防先進研究計劃署的部分贊助,研究發現刊登在美國的線上科學期刊「科學快訊」中。
他們表示,理論上來說,這種斗篷可以利用一種稱為「超材料」的人工合成材料製造出來,但他們必須先製造這種可折射光線、聲音與其他波力的超材料。
杜克大學電機工程教授史密斯說:「這種斗篷的作用就像打開了太空裡的一個洞。」
他說,電磁波會向水流一樣,在這種超物質的斗篷邊流動。
他說:「所有光波與其他電磁波會由超材料引導,掃過這個區域,就像穿越真空一樣。」
他們說,這種斗篷可以用在軍事目的、遮蔽不雅的景觀或障礙物,也可用在無線通訊方面。
星期二, 1月 06, 2009
隱藏硬碟的方法
Regedit。
2.到HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
進入後在右邊的視窗按右鍵選擇新增一個\"二進制值\",名稱為NoDrives 。
3.連點兩下進入編輯二進制,先連按八個零(無空格)..........
00 00 00 00
第. 第. 第. 第
一. 二. 三. 四
個. 個. 個. 個
字. 字. 字. 字
節. 節. 節. 節
第1個字節代表A-H 8個碟
第2個字節代表I-P 8個碟
第3個字節代表Q-X 8個碟
第4個字節代表Y-Z 8個碟
要隱藏A碟就這樣打01000000
要隱藏B碟就這樣打02000000
要隱藏C碟就這樣打04000000
要隱藏D碟就這樣打08000000
要隱藏E碟就這樣打16000000
...........
要隱藏I碟就這樣打00010000
要隱藏J碟就這樣打00020000
要隱藏K碟就這樣打00040000
如全部隱藏則打67108863
星期日, 1月 04, 2009
拯救WinXP系統假死三招妙計
第一招:當使用資源管理器打開新文件夾或用瀏覽器打開新頁面不響應時,用“Win+D”或單擊快速啟動欄的顯示桌面按鈕,再在桌面上按F5或右鍵刷新即可。一般刷新3-5次後再把資源管理器或瀏覽器窗口還原就會恢復正常了。
第二招:這一招很靈,能對付大多數假死的情況。當任務管理器都打不開時,先把光碟機彈出之後再彈入(千萬不要在光碟機裏放光碟),滑鼠指針旁會出現一個小光碟標誌,這時就會喚起系統的知覺,這招可是屢試不爽!
第三招:最後的殺手锏,用組合鍵“Ctrl+Alt+Del”啟動任務管理器,然後在“進程”選項卡中結束explorer.exe,整個桌面只剩一張壁紙,桌面圖標和任務欄都沒影了,然後在任務管理器的“文件→新建任務”中輸入explorer.exe,即可恢復正常。這一招還可釋放記憶體資源,一舉兩得。
照下面的方法可以明顯減少假死可能性:
能不用右鍵功能表的時候就儘量不用,儘量使用熱鍵如用F2重命名、用F5刷新等。Windows Media Player最好不用可視化效果,用了往往會卡機。真想用的話,微粒是最不容易卡機的,建議用“微粒”可視化效果。不要輕易使用記憶體整理軟體,往往會越整理系統速度越慢。如果真想釋放系統資源,註銷當前用戶再重新登錄是最好的方式。說了這麼多,大家也不妨試試這些方法。
星期六, 1月 03, 2009
EE3120 (B) MP & ASSEMBLY LANGUAGE PROG (02EE3120) - Quiz 1 solution
Quiz 1 Solution (total 60 marks)
1. If a given computer has a total of 16 megabytes of memory, how many bytes (in decimal) is this? How many kilobytes is this? [10 marks]
Ans:
Let 2^n = 16M=16x10^6 [2 marks]
n log 2 = log 16 +6 log 10
n = (log 16 +6 )/log 2
= 23.93 [2 marks]
Round n to the nearest integer = 24 [2 marks]
In decimal 2^24 = 16,777,216 bytes [2 marks]
In kilobyte 2^24 = 16,777,216 /1024 =16,384 kilobytes [2 marks]
2. A given mass storage device such as a hard disk can store 1 gigabytes of information. Assuming that each page of text has 50 rows and each row has 40 columns of ASCII characters (each character = 1 byte), approximately how many pages of information can this disk store? [20 marks]
Ans:
Let 2^n = 1G=1x10^9 [2 marks]
n log 1 = log 1 +9 log 10
n = (log 1 +9 )/log 2
= 29.897 [2 marks]
Round n to the nearest integer = 30 [2 marks]
In decimal 2^30 = 1,073,741,824 bytes [2 marks]
Page no. m = = 1,073,741,824 /50x40x1 byte = 536,870.912 [6 marks]
Truncate m = 536,870 pages [6 marks]
3. In a given byte-addressable computer, memory locations 20000H to 7FFFFH are available for user programs. The first location is 20000H and the last location is 7FFFFH. Calculate the following:(a) The total number of bytes available (in decimal)(b) The total number of kilobytes (in decimal) [20 marks]
Ans:
Start address is 20000H and end address 7FFFFH. [5 marks] Total locations available = (7FFFF-20000 +1)H =(5FFFF +1)H =60000H [5 marks]
a) Total number of byte in decimal 60000H= 393216 [5 marks]
b) Total number of kilobyte in decimal (393216/1024) = 384K [5 marks]
4. What EA stands for? What does it mean when it is inputting a ground signal? [10 marks]
Ans: EA stands for External Access. [5 marks]
When EA is 0, it will access the external memory. [5 marks]