基於確保無線網絡的安全,大部份無線網絡需要透過核對設備的MAC地址後才讓使用者連到網絡。但nokia 5800 xpressmusic 如何才能找到它的MAC地址?
1. 於機盒貼紙上標明
2. 輸入 *#62209526#
星期四, 3月 12, 2009
星期六, 3月 07, 2009
ESDA 安裝失敗
ESDA 可以說是 APASO 的新版本。
本來安裝EDB的ESDA一切正常,但到最後卻顯示了以下訊息:
make_sock: could not bind to port 0.0.0.0:80
No installed service named"Apache2"
初時懷疑是安裝設定問題,後來曾經嘗試重裝但情況一樣。
因為本機沒有安裝iis所以應該不會佔用 port 80,
但於 "執行" 中輸入 cmd,再輸入netstat -anb,
便發現有其他程式佔用了 port 80。
關掉該程序後,於命令提示字元cd至Apache的資料夾
cd C:\Program Files\Apache Group\Apache2
cd bin
apache -k install
apache -k start
這樣便成功了。
本來安裝EDB的ESDA一切正常,但到最後卻顯示了以下訊息:
make_sock: could not bind to port 0.0.0.0:80
No installed service named"Apache2"
初時懷疑是安裝設定問題,後來曾經嘗試重裝但情況一樣。
因為本機沒有安裝iis所以應該不會佔用 port 80,
但於 "執行" 中輸入 cmd,再輸入netstat -anb,
便發現有其他程式佔用了 port 80。
關掉該程序後,於命令提示字元cd至Apache的資料夾
cd C:\Program Files\Apache Group\Apache2
cd bin
apache -k install
apache -k start
這樣便成功了。
星期五, 3月 06, 2009
EE3120 (B) MP & ASSEMBLY LANGUAGE PROG (02EE3120) Quiz 3 Solution
Quiz 3 (Total 60 marks)
1.
Show the stack and stack content for the following code:
003B 120300 LCALL DELAY
003E 80F0 BACK: SJMP BACK ;keep doing this
0040
0040 ;----------------------this is the delay subroutine
0500 ORG 500H
0500 DELAY:
0500 7DFF MOV R5,#0FFH ;R5=255
0502 DDFE AGAIN: DJNZ R5,AGAIN ;stay here
0504 22 RET ;return [10 marks]
Ans:
Stack /Stack Content
003B 120300 / 09 / 00 3E
003E 80F0 /07
0040 /?
0040 /?
0500 /09 /00 3E
0500 /09 /00 3E
0500 7DFF /09 /00 3E
0502 DDFE /09 /00 3E
0504 22 /07
2. Find the value (in hex) loaded into TH in each of the following.
(a) MOV TH0,#110
(b) MOV TH0,#-30
[10 marks]
(a) 6EH
(b) E2H
3. Given the LCD command write routine COMNWRT. Assume connections P2.1 = RS, P2.2 =R/W, P2.3 = E, write i) a program to call the display the data and ii) a subroutine to display the data (iii) the data "Hello" is checked again its completion of write by a busy flag connected to P2.7. Use the instruction MOVC.
.
[20 marks]
Ans:
MAIN:
MOV DPTR, #MYDATA
HERE:
CLR A
MOVC A, @A+DPTR
JZ DONE
ACALL DISPLAY_DATA
INC DPTR
SJMP HERE
DONE: SJMP DONE [10 marks]
DISPLAY_DATA:
ACALL READY
MOV P1,A ; port 1 fort DATA
SETB P2.1 ;RS=1 FOR Control DATA
CLR P2.2 ;R/W=0 FOR Control WRITE
SETB P2.3 ;H-TO-L FOR Control Enable
CLR P2.3
RET
READY:
SETB P2.7
CLR P2.1
SETB P2.2
BACK:
CLR P2.3
SETB P2.3
CLR P2.3
JB P2.7, BACK
RET [10 marks]
;P2.7=INPUT TO READ BUSY FLAG
;RS=0
;R/W=-1 FOR READ
ORG 300H
MYDATA: DB "Hello",0
ORG 400H
COMNWRT:
MOV P2,A
CLR P2.1
CLR P2.2
SETB P2.3
CLR P2.3
RET
4. Program Timer 1 to be an event counter. Use mode 2 and display the decimal count on P2, P1, and P0 continuously. Set the initial count to 55.
Ans:
MOV TMOD, #60h ; 0110 0000 [timer 1 c/t = 1 time 1 =1]
MOV TL1, #-55 ; count value
MOV TH1, #-55 ; preload
SETB P3.5
AGAIN: SETB TR1
BACK: MOV A, TL1
ACALL CONVERT
JNB TF1, BACK
CLR TR1
CLR TF1
SJMP AGAIN [10 marks]
;--This will convert from, binary (hex)
;to decimal and send each digit to the port
CONVERT:
MOV B,#10
DIV AB
MOV P0,B
MOV B,#10
DIV AB
MOV P1,B
MOV P2,A
RET [10 marks]
[20 marks]
1.
Show the stack and stack content for the following code:
003B 120300 LCALL DELAY
003E 80F0 BACK: SJMP BACK ;keep doing this
0040
0040 ;----------------------this is the delay subroutine
0500 ORG 500H
0500 DELAY:
0500 7DFF MOV R5,#0FFH ;R5=255
0502 DDFE AGAIN: DJNZ R5,AGAIN ;stay here
0504 22 RET ;return [10 marks]
Ans:
Stack /Stack Content
003B 120300 / 09 / 00 3E
003E 80F0 /07
0040 /?
0040 /?
0500 /09 /00 3E
0500 /09 /00 3E
0500 7DFF /09 /00 3E
0502 DDFE /09 /00 3E
0504 22 /07
2. Find the value (in hex) loaded into TH in each of the following.
(a) MOV TH0,#110
(b) MOV TH0,#-30
[10 marks]
(a) 6EH
(b) E2H
3. Given the LCD command write routine COMNWRT. Assume connections P2.1 = RS, P2.2 =R/W, P2.3 = E, write i) a program to call the display the data and ii) a subroutine to display the data (iii) the data "Hello" is checked again its completion of write by a busy flag connected to P2.7. Use the instruction MOVC.
.
[20 marks]
Ans:
MAIN:
MOV DPTR, #MYDATA
HERE:
CLR A
MOVC A, @A+DPTR
JZ DONE
ACALL DISPLAY_DATA
INC DPTR
SJMP HERE
DONE: SJMP DONE [10 marks]
DISPLAY_DATA:
ACALL READY
MOV P1,A ; port 1 fort DATA
SETB P2.1 ;RS=1 FOR Control DATA
CLR P2.2 ;R/W=0 FOR Control WRITE
SETB P2.3 ;H-TO-L FOR Control Enable
CLR P2.3
RET
READY:
SETB P2.7
CLR P2.1
SETB P2.2
BACK:
CLR P2.3
SETB P2.3
CLR P2.3
JB P2.7, BACK
RET [10 marks]
;P2.7=INPUT TO READ BUSY FLAG
;RS=0
;R/W=-1 FOR READ
ORG 300H
MYDATA: DB "Hello",0
ORG 400H
COMNWRT:
MOV P2,A
CLR P2.1
CLR P2.2
SETB P2.3
CLR P2.3
RET
4. Program Timer 1 to be an event counter. Use mode 2 and display the decimal count on P2, P1, and P0 continuously. Set the initial count to 55.
Ans:
MOV TMOD, #60h ; 0110 0000 [timer 1 c/t = 1 time 1 =1]
MOV TL1, #-55 ; count value
MOV TH1, #-55 ; preload
SETB P3.5
AGAIN: SETB TR1
BACK: MOV A, TL1
ACALL CONVERT
JNB TF1, BACK
CLR TR1
CLR TF1
SJMP AGAIN [10 marks]
;--This will convert from, binary (hex)
;to decimal and send each digit to the port
CONVERT:
MOV B,#10
DIV AB
MOV P0,B
MOV B,#10
DIV AB
MOV P1,B
MOV P2,A
RET [10 marks]
[20 marks]
星期六, 2月 28, 2009
如何將獨立伺服器升級為網域控制站?(Windows 2000)
按下開始程式集系統管理工具設定你的伺服器,
[ Active directory ] [ ]在開啓的视窗中按下,再按下啓動。
[ Active Directory ] [ ] 在安裝精靈视窗下,網域控制站類型設定中選擇
[ ]新網域的網域控制站。
[ ] [ 在建立樹狀目錄或子網域設定中選擇建立新的 ]網域樹狀目錄
[ DNS ] ,按下一步進行網域名稱設定,在新網域的完整名稱中輸入完整
DNS (: itehelp.com) 名稱。例
NETBIOS [ ] 下一步便是設定。按下一步後設定資料庫儲存位置。如果伺
DNS 服器中沒有配置好服務,系統便會提示安裝,接着按照指示便完成
[ Active Directory ] 安裝,重新啓動電腦,整個升級程序完成。
[ Active directory ] [ ]在開啓的视窗中按下,再按下啓動。
[ Active Directory ] [ ] 在安裝精靈视窗下,網域控制站類型設定中選擇
[ ]新網域的網域控制站。
[ ] [ 在建立樹狀目錄或子網域設定中選擇建立新的 ]網域樹狀目錄
[ DNS ] ,按下一步進行網域名稱設定,在新網域的完整名稱中輸入完整
DNS (: itehelp.com) 名稱。例
NETBIOS [ ] 下一步便是設定。按下一步後設定資料庫儲存位置。如果伺
DNS 服器中沒有配置好服務,系統便會提示安裝,接着按照指示便完成
[ Active Directory ] 安裝,重新啓動電腦,整個升級程序完成。
星期一, 2月 23, 2009
小學五年級中文科補充工作紙 - 標點符號
小學五年級中文科補充工作紙
標點符號
1. 在適當的位置填上「十一」個標點符號。
我把石榴打開來看,裏面全是種子, 粒粒好像水晶珠子似的,美麗極了!它們擠得緊緊的,長得滿滿的,真好看!那一粒粒的種子吃在嘴裏,又甜又酸,那種味道可真特別!我和弟弟都很喜歡吃它。
2. 在適當的位置填上「十一」個標點符號。
大約二百年前,法國正陷於戰爭狀態中,當時拿破崙很明白行軍作戰時糧食補給的重要,於是決定以獎勵的方法向人民徵求能妥善保存食物的方法。一天,報章上刊登了一則廣告:「誰能研究一種可以長期保存食物的方法,就可以得到一萬二千法郎的獎金。」
3. 在適當的位置填上「十六」個標點符號。
媽媽,一直以來,我覺得您是全世界最慈愛、最偉大的好媽媽;能夠做您的女兒,我感到十分幸福。您把家裏整理得井井有條,好讓家人能夠在舒適的環境中生活;您無微不至地照顧我和弟弟,讓我們能夠健康快樂地成長;每次吃飯時,您總會把最好的菜留給我們;當您帶我們逛街時,雖然捨不得買東西給自己,卻又會給我們買衣服和玩具……您凡事都只為家人着想和付出。
星期日, 2月 22, 2009
星期六, 2月 21, 2009
black magic - 嘩嘩嘩
"嘩 嘩 嘩" 係 M
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" 係 S
咁"嘩 嘩 嘩 嘩 嘩" 又係 M
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" 係咩 ??
=====
解說:
"嘩 嘩 嘩" = March
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" = September
"嘩 嘩 嘩 嘩 嘩" = May
所以...
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" = November
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" 係 S
咁"嘩 嘩 嘩 嘩 嘩" 又係 M
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" 係咩 ??
=====
解說:
"嘩 嘩 嘩" = March
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" = September
"嘩 嘩 嘩 嘩 嘩" = May
所以...
"嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩 嘩" = November
訂閱:
文章 (Atom)