2016年8月26日 星期五
2016年7月27日 星期三
Logitech 羅技 NX80 無線滑鼠 拆解
Logitech 羅技 NX80 無線滑鼠
這顆無線滑鼠採用的微動開關不是一般滑鼠常用的微動開關,是方形的微動開關(請參考下圖四)
拆解方式:
1. NX80總共有4顆螺絲:
2顆在最上方,把鼠貼移掉就可看到
2顆在電池附近,打開電池蓋就可看到1顆在右方,另一顆在電池下面(如圖三)
圖一
這顆無線滑鼠採用的微動開關不是一般滑鼠常用的微動開關,是方形的微動開關(請參考下圖四)
拆解方式:
1. NX80總共有4顆螺絲:
2顆在最上方,把鼠貼移掉就可看到
2顆在電池附近,打開電池蓋就可看到1顆在右方,另一顆在電池下面(如圖三)
圖二
圖三
2. 卸完螺絲後就可以輕易分離上下蓋
圖四
圖五
2016年3月12日 星期六
網頁錄音程式-使Javascript-Recorderjs
Recorderjs是一個可以用來建立網頁式的錄音程式的套件
到https://github.com/mattdiamond/Recorderjs
下載下來直接解壓縮即可使用,主要用到的2個檔案是:
1. examples目錄中的example_simple_exportwav.html
2. dist目錄中的recorder.js檔
*必須注意的是它要放在web server再由Google Chrome去存取才能正確執行,如果用Google Chrome開啟是無法使用的,主要是因為Google Chrome安全性問題。
使用此套件:
1. Browser要使用Google Chrome(PC或Android皆可執行,iOS不行)(Android可以錄,但無法直接播)
*在某個網站看到也是使用此plug-in,且可以在firefox執行,因為沒有去追蹤程式碼,但我想應該只要小小修改就可以用在firefox上。
2. 此套件必須放在web server上
3. 錄音時此套件會將錄音記錄在用戶端的記憶體內,當停止錄音時,可以直接播放或匯出wav
4. 只能錄wav,所以檔案會比較大
如果要錄完音後直接上傳到web server,則搭配javascript和伺服端程式語言(如php、jsp、asp等等)即可。
到https://github.com/mattdiamond/Recorderjs
下載下來直接解壓縮即可使用,主要用到的2個檔案是:
1. examples目錄中的example_simple_exportwav.html
2. dist目錄中的recorder.js檔
*必須注意的是它要放在web server再由Google Chrome去存取才能正確執行,如果用Google Chrome開啟是無法使用的,主要是因為Google Chrome安全性問題。
![]() |
圖一、 權限要求 |
![]() |
圖二、執行畫面 |
![]() |
圖三、 Firefox上無法使用 |
使用此套件:
1. Browser要使用Google Chrome(PC或Android皆可執行,iOS不行)(Android可以錄,但無法直接播)
*在某個網站看到也是使用此plug-in,且可以在firefox執行,因為沒有去追蹤程式碼,但我想應該只要小小修改就可以用在firefox上。
2. 此套件必須放在web server上
3. 錄音時此套件會將錄音記錄在用戶端的記憶體內,當停止錄音時,可以直接播放或匯出wav
4. 只能錄wav,所以檔案會比較大
如果要錄完音後直接上傳到web server,則搭配javascript和伺服端程式語言(如php、jsp、asp等等)即可。
2014年1月4日 星期六
Patch NS2 to Support UMTS
Patch NS2 to Support UMTS(3G)
1. Download EURANE module file
go to http://eurane.ti-wmc.nl/
ex. ns-2.30_eurane-1.12.diff.gz
if your ns2 version is 2.35, patch file in here(ns-2.35_eurane-1.12.diff).[1]
2. Decompress EURANE module file to ns2's home directory
3. run patch
Change directory to ns2's home directory
$ patch -p1 < ns-2.30_eurane-1.12.diff <enter>
4. make or install
5. Download testscripts from http://eurane.ti-wmc.nl/
ex.test_tcp.tcl (need idealtrace and SNRBLERMatrix.gz files)
6. run ns
ps1. If it have some problem,you modified some file by yourself.
[Makefile.in]
-CCOPT = @V_CCOPT@
+CCOPT = -Wall @V_CCOPT@
apps/pbc.o \
+ umts/am.o umts/classifier-sport.o umts/demuxer.o \
+ umts/demuxerRtModule.o umts/networkInterface.o \
+ umts/nif-classifier.o umts/tcs.o umts/um.o \
+ umts/umtslink.o umts/umtstrace.o \
+ umts/hsdpalink.o umts/um-hs.o \
+ umts/umts-timers.o umts/virtual_umtsmac.o \
+ umts/am-hs.o \
+ umts/umts-queue.o umts/dummy_drop_tail.o \
+ umts/error_model.o tools/coot.o \
tcl/lib/ns-qsnode.tcl \
+ tcl/lib/ns-umts.tcl \
@V_NS_TCL_LIB_STL@
[common/packet.h]
-static packet_t PT_NTYPE = 73; // This MUST be the LAST one
+
+// UMTS - used by hdr_cmn class for tracing purpose
+static const packet_t PT_UM = 73;
+static const packet_t PT_AMDA = 74;
+static const packet_t PT_AMPA= 75;
+static const packet_t PT_AMPBPA = 76;
+static const packet_t PT_AMBA= 77;
+static const packet_t PT_AMPBBA= 78;
+// Used for tracking HARQ transmissions (MAC-hs PDUs)
+static const packet_t PT_AMDA_H1= 79;
+static const packet_t PT_AMDA_H2= 80;
+static const packet_t PT_AMDA_H3= 81;
+ // End UMTS
+// COOT packet
+static const packet_t PT_COOT= 82;
+
+// insert new packet types here
+static packet_t PT_NTYPE = 83; // This MUST be the LAST one
#endif //STL
+ // UMTS
+ name_[PT_UM] = "UM";
+ name_[PT_AMDA] = "AM_Data";
+ name_[PT_AMPA] = "AM_Pos_Ack";
+ name_[PT_AMPBPA] = "AM_Piggyback_Ack";
+ name_[PT_AMBA] = "AM_Bitmap_ack";
+ name_[PT_AMPBBA] = "AM_Piggyback_Back";
+ // For HARQ transmission tracking
+ name_[PT_AMDA_H1] = "HARQ_1";
+ name_[PT_AMDA_H2] = "HARQ_2";
+ name_[PT_AMDA_H3] = "HARQ_3";
+ // End UMTS
+ // coot
+ name_[PT_COOT]="coot";
+
// Bell Labs (PackMime OL)
1. Download EURANE module file
go to http://eurane.ti-wmc.nl/
ex. ns-2.30_eurane-1.12.diff.gz
if your ns2 version is 2.35, patch file in here(ns-2.35_eurane-1.12.diff).[1]
2. Decompress EURANE module file to ns2's home directory
3. run patch
Change directory to ns2's home directory
$ patch -p1 < ns-2.30_eurane-1.12.diff <enter>
4. make or install
5. Download testscripts from http://eurane.ti-wmc.nl/
ex.test_tcp.tcl (need idealtrace and SNRBLERMatrix.gz files)
6. run ns
ps1. If it have some problem,you modified some file by yourself.
[Makefile.in]
-CCOPT = @V_CCOPT@
+CCOPT = -Wall @V_CCOPT@
apps/pbc.o \
+ umts/am.o umts/classifier-sport.o umts/demuxer.o \
+ umts/demuxerRtModule.o umts/networkInterface.o \
+ umts/nif-classifier.o umts/tcs.o umts/um.o \
+ umts/umtslink.o umts/umtstrace.o \
+ umts/hsdpalink.o umts/um-hs.o \
+ umts/umts-timers.o umts/virtual_umtsmac.o \
+ umts/am-hs.o \
+ umts/umts-queue.o umts/dummy_drop_tail.o \
+ umts/error_model.o tools/coot.o \
tcl/lib/ns-qsnode.tcl \
+ tcl/lib/ns-umts.tcl \
@V_NS_TCL_LIB_STL@
[common/packet.h]
-static packet_t PT_NTYPE = 73; // This MUST be the LAST one
+
+// UMTS - used by hdr_cmn class for tracing purpose
+static const packet_t PT_UM = 73;
+static const packet_t PT_AMDA = 74;
+static const packet_t PT_AMPA= 75;
+static const packet_t PT_AMPBPA = 76;
+static const packet_t PT_AMBA= 77;
+static const packet_t PT_AMPBBA= 78;
+// Used for tracking HARQ transmissions (MAC-hs PDUs)
+static const packet_t PT_AMDA_H1= 79;
+static const packet_t PT_AMDA_H2= 80;
+static const packet_t PT_AMDA_H3= 81;
+ // End UMTS
+// COOT packet
+static const packet_t PT_COOT= 82;
+
+// insert new packet types here
+static packet_t PT_NTYPE = 83; // This MUST be the LAST one
#endif //STL
+ // UMTS
+ name_[PT_UM] = "UM";
+ name_[PT_AMDA] = "AM_Data";
+ name_[PT_AMPA] = "AM_Pos_Ack";
+ name_[PT_AMPBPA] = "AM_Piggyback_Ack";
+ name_[PT_AMBA] = "AM_Bitmap_ack";
+ name_[PT_AMPBBA] = "AM_Piggyback_Back";
+ // For HARQ transmission tracking
+ name_[PT_AMDA_H1] = "HARQ_1";
+ name_[PT_AMDA_H2] = "HARQ_2";
+ name_[PT_AMDA_H3] = "HARQ_3";
+ // End UMTS
+ // coot
+ name_[PT_COOT]="coot";
+
// Bell Labs (PackMime OL)
2014年1月3日 星期五
NS2 traffic files generated using VANETMobiSim(on Windows)
What is VanetMobiSim?
VanetMobiSim is tool of mobility modeling.
site:http://vanet.eurecom.fr/
Install VANETMobiSim & Generate a NS2 traffic files
1. Download VanetMobiSim sources and VanetMobiSim binaries
go to http://vanet.eurecom.fr/
download VanetMobiSim sources file
(ex. VanetMobiSim 1.1 sources file and VanetMobiSim 1.1 binaries)
2. Downlaod CanuMobiSim
go to http://canu.informatik.uni-stuttgart.de/mobisim/downloads/
download CanuMobiSim(ex. CanuMobiSim v1.3.4)
3 Download Apache Ant
go to http://ant.apache.org/bindownload.cgi
downloasd Apache Ant (ex. apache-ant-1.9.3-bin.zip )
4. Decompress apache-ant-x.zip to a folder
ex. E:\VanetMobSim\ant
5. Set system variable
(1) Add a variable "ant_home"
VanetMobiSim is tool of mobility modeling.
site:http://vanet.eurecom.fr/
Install VANETMobiSim & Generate a NS2 traffic files
1. Download VanetMobiSim sources and VanetMobiSim binaries
go to http://vanet.eurecom.fr/
download VanetMobiSim sources file
(ex. VanetMobiSim 1.1 sources file and VanetMobiSim 1.1 binaries)
2. Downlaod CanuMobiSim
go to http://canu.informatik.uni-stuttgart.de/mobisim/downloads/
download CanuMobiSim(ex. CanuMobiSim v1.3.4)
3 Download Apache Ant
go to http://ant.apache.org/bindownload.cgi
downloasd Apache Ant (ex. apache-ant-1.9.3-bin.zip )
4. Decompress apache-ant-x.zip to a folder
ex. E:\VanetMobSim\ant
5. Set system variable
(1) Add a variable "ant_home"
(2) Add "%ant_home%\bin" to "PATH" variable
6. Decompress VanetMobiSim sources to a folder
ex. E:\VanetMobSim\VanetMobiSim-1.1
7. Decompress CanuMobiSim, then copy "src" folder in CanuMobiSim_1_3_4_src to VanetMobiSim sources folder
ex. E:\VanetMobSim\CanuMobiSim_1_3_4_src
copy E:\VanetMobSim\CanuMobiSim_1_3_4_src\src to E:\VanetMobSim\VanetMobiSim-1.1
8. open "Command Prompt" window(cmd.exe)
(1) cd E:\VanetMobSim\VanetMobiSim-1.1
(2) "ant patch" <enter>
9. copy VanetMobiSim binaries to sample folder in VanetMobiSim sources folder
copy VanetMobiSim-1.1.jar ex. E:\VanetMobSim\VanetMobiSim-1.1\samples
10. run java -jar VanetMobiSim-1.1.jar xmlfile.xml
ex. java -jar VanetMobiSim-1.1.jar IDM_LC.xml
11. Generate NS2 traffic
(1) modify configuration in "IDM_LC.xml"
<!-- <extension class="de.uni_stuttgart.informatik.canu.mobisim.extensions.NSOutput" output="ns_trace.txt"/>-->
remove <!-- ... --> ,as above
(2) re-run java -jar VanetMobiSim-1.1.jar IDM_LC.xml
(3) the ns_trace.txt is generated in the folder which is a NS2 NS2 traffic
2013年12月1日 星期日
NS2 installed on Cygwin 2013 + Windows
OS: Win7 64bit
Cygwin: 2.831(32bit)
ns2: ns2.29
[cygwin/X]
1. download cygwin setup file2. setup cygwin
next->(checked) Install from Internet->Root Directory(Next)->Select Local Package Directory(Next)
->(checked)Direct connection->Choose A Download site(choose a best site, and Next)->
3.Select Packages
a) gcc,gcc-g++,gnuplot,autoconf,make,patch,perl,tar,
b) libxt-devel,libXmu-devel,zlib-devel,libintl,w32api(mingw-win32api/mingw-w32api)
c)[X-Window] http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html
xorg-server,xinit,X-start-menu-icons,twm(or WindowMaker)
[ns2]
1. download NS2 http://www.isi.edu/nsnam/ns/
2. modified configure or sources
(only for ns-2.29, reference:http://ramakrishnamundugar.blogspot.tw/2012/12/ns-229-installation-in-ubuntu-1204.html)
3. install
位置:
台灣高雄市
2013年8月11日 星期日
尋找老同學
尋找一位久未聯絡的國中同學
因為久未聯絡而失聯,沒有其他聯絡方法
想和他敍敍舊,若您認識他或能聯絡到他
請email給我,
或請您告訴他,"有一位阿奇同學找他"
或請他與我email聯絡,
謝謝你的協助
email:yotrew@gmail.com
姓名:蕭智榮
就讀過學校:屏東萬丹國中->屏東高中->屏東科大森林系
年紀:目前約33歲(2013年)
喜歡:打籃球,運動,看霹靂布袋戲
最後一次聯絡:約10年前
我在網路看到他與朋友爬山照片
http://tw.myblog.yahoo.com/antony-chen/article?mid=584&prev=659&next=-1
因為久未聯絡而失聯,沒有其他聯絡方法
想和他敍敍舊,若您認識他或能聯絡到他
請email給我,
或請您告訴他,"有一位阿奇同學找他"
或請他與我email聯絡,
謝謝你的協助
email:yotrew@gmail.com
姓名:蕭智榮
就讀過學校:屏東萬丹國中->屏東高中->屏東科大森林系
年紀:目前約33歲(2013年)
喜歡:打籃球,運動,看霹靂布袋戲
最後一次聯絡:約10年前
我在網路看到他與朋友爬山照片
http://tw.myblog.yahoo.com/antony-chen/article?mid=584&prev=659&next=-1
若本網頁有侵犯到您的著作或個資,email告知,我將會移除它
訂閱:
文章 (Atom)