發表文章

目前顯示的是 2012的文章

Youtube downloader !!

Kej's FLV Retriever : 'via Blog this'

RIPS real test(12/25)

終於搜集到五個Mica2可以進行RIPS的測試 依照文件 rips_doc.zip 的指示進行操作 Query Motes的部份運作正常 我把三個motes設定位置,並標示為anchor,四個motes都標示為sender,然後進行mote measurement,看起來commands是有出去的,但回傳的結果跟文件說明的不一樣,不知道有沒有成功?沒法看到RecvData以及Ranging資料,以致於後續的功能好像都不是很正常。 按下start localization會回覆: max range:100.0, all abcd measurements:0, good measurements:0 range stat under30=NaN% under100=NaN% 目前還是失敗的....

用光測距在smart device上應用的可行性評估

1. 相對於聲音,光太快以至於沒辦法使用簡單的儀器測量,所以應該不可行。 2. 另一個問題是,光的干擾性更強,無法用螢幕或LED之類已經在device上的可見光實踐,白天大太陽下的侷限更強。 以上兩個就已經打槍讓光測距在行動裝置上難以廣泛使用。

取代红外传感 苹果公布声纳测距专利技术_网络设备业界动态_太平洋电脑网PConline

這是很簡單的原理,但被寫成專利卻是頭一遭~在想論文的時候發現已經被蘋果給註冊了,這應該可以降低成本的測距方式。 取代红外传感 苹果公布声纳测距专利技术_网络设备业界动态_太平洋电脑网PConline : "  专利文件中描述了这样一个测距系统:系统将获取两个声波样本,分别是“之前”和“之后”的声波,通过对这两个声波的对比来判定,被测对象离用户设备的距离是否发生改变。其依赖于当下应用于电子学的基本声学原理。比如说,当设备靠近某个对象,之后离开,麦克风的信号均衡就会相对原本的声源发生弯曲。 " 'via Blog this'

Set my Cygwin PATH to find javac

圖片
Use JDK 1.7 as example: set path export PATH = $PATH :/ cygdrive / C / Program \ Files / Java / jdk1 .7 .0 _10 / bin / Of course. You can set PATH into Windows environment let this PATH always exist. No need export PATH again.

Authorize a non-admin developer in Xcode / Mac OS

This command works for me: sudo dscl . append / Groups / _developer GroupMembership [username] http://stackoverflow.com/questions/1837889/authorize-a-non-admin-developer-in-xcode-mac-os

顯示所有在 Chrome 儲存的密碼 - 2012 | Tsung's BlogTsung's Blog

顯示所有在 Chrome 儲存的密碼 - 2012 | Tsung's BlogTsung's Blog : 'via Blog this' So dangerous.

POP - Prototyping on Paper | iPhone App Prototyping Made Easy

POP - Prototyping on Paper | iPhone App Prototyping Made Easy : great idea! 'via Blog this'

Related with database 『Enterprise Rails: 資料庫篇』

介紹這本書,主要有一些Database選擇的想法。 Enterprise Rails: 資料庫篇 | ihower { blogging } : 'via Blog this'

Connect to OSX Server.app postgresql on Mountain Lion « Shell Person

Connect to OSX Server.app postgresql on Mountain Lion « Shell Person : 'via Blog this'

[Warning] Time Machine Backup can not work fine on OS X Server

Be careful that Time Machine can not backup OS X Server services. My wiki service crashed and I restored my entire hard disk using Time Machine. And then.... Wiki service still crash....And now I am worry about whole wiki date gone....WHAT THE FUCK... Related article: http://www.bill.eccles.net/bills_words/2008/08/designed-to-fail-apple-time-ma.html http://support.apple.com/kb/PH8384

RIPS working staus (11/27/2012)

After long time searching web and ready TinyOS 1.x documents. I already let RIPS Java tools worked. But. Because I only have 4 motes. 1 for station. 3 for motes. We need at least one more motes let RIPS work all functions. Still waiting for new motes shipping to me. Related works: http://kiwi.sndb.net/wiki/projects/rips/RIPS_research.html http://kiwi.sndb.net/wiki/pages/95w1_1/Java_codes_in_RIPS.html At this moment. I can not waste time. Following is something we should prepare first. 1. Start trace RIPS Java codes. Find algorithm to calculate localization. 2. Start trace RIPS TinyOS codes. Try to find algorithm to measurement distance.

How to compile java code that import classes from different directory?

I am stock this problem for a while. And finally I find my anser via follwing link: http://stackoverflow.com/questions/631682/help-with-packages-in-java-import-does-not-work Okay, just to clarify things that have already been posted. You should have the directory  com , containing the directory  company , containing the directory example , containing the file  MyClass.java . From the folder containing  com , run: $ javac com\company\example\MyClass.java Then: $ java com.company.example.MyClass Hello from MyClass! These must both be done from the root of the source tree. Otherwise,  javac  and  java  won't be able to find any other packages (in fact,  java  wouldn't even be able to run  MyClass ). A short example I created the folders "testpackage" and "testpackage2". Inside testpackage, I created TestPackageClass.java containing the following code: package testpackage ; import testpackage2 . MyClass ; public class TestPackageClass

How to compile RIPS Java programs?

*This document is clone form my wiki RIPS Java Codes RIPS Java codes located in : /tinyos-1.x/contrib/vu/tools/java/ related documents : /tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/compilationInstructions.txt /tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/rips_doc.zip Environment Preparation 1. include *.jar from contrib/vu/tools/java/jars files to your CLASSPATH How to include CLASSPATH ? export CLASSPATH=$CLASSPATH:/opt/tinyos-1.x/contrib/vu/tools/java/jars 2. But there are no make file in these locations. So how to build it? Ans: Just use javac *.java in all java folders. 3. By the way. Source code uses "javax.comm" class. And this class is not part of standard java classes. We need install javax.comm package. About javax.comm javax.comm is extension package for java. official description here official FAQ here official released library download path more reference link We should download librry and in

install tinyos-1x under WindowsXP

Because I am wondering if using XP environment is better for RIPS project. Today I try to install tinyos-1x into windowsXP based on Memsic MoteWorks 3.2 environment. Following this steps: http://wsn.cse.wustl.edu/index.php/TinyOS_1.x_Installation_on_Windows_XP It can compile nc files correctly. I didn't finished java SerialForwarder application connection test. It seems fail to connect MICA2 serial port. So sad. According to some test. I think the result will same as Linux. So I decide switch back to Linux and keep going.

Need more motes for build RIPS environment

According to RIPS's document shows. http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-1.x/contrib/vu/apps/RipsOneHop/readme.txt?view=markup We need at least 5 motes for simulate RIPS. 1 for TOSBase and 4 for RipOneHop application. So we need purchase at least one more. Need to discuss with professor tomorrow.

How to restore OS X Wiki Service

由於我自己架的OS X Server Wiki Service 掛掉了,不明原因,只好找救回來的方法,Time Machine也不小心被我玩壞了,所以找直接備份database的方法看是否可以重灌丟回新的機器: 官方說明: (for Lion) http://support.apple.com/kb/HT5082?viewlocale=en_US&locale=en_US (for Mountain Lion)  http://support.apple.com/kb/HT5585 其他網友說明: https://discussions.apple.com/thread/4160366?start=0&tstart=0 https://discussions.apple.com/thread/3243481?start=0&tstart=0

2 motes connect success in Linux TinyOS 1.x envirement

終於完成了在Linux TinyOS 1.x環境下面build出可以互相同連的傳送跟接收的motes. 關於讓他們無線連線,需要指定Group ID以及transceiver的frequency: 我依照TinyOS Build Environment的建議,增加 /opt/tinyos-1.x/tools/make/Makelocal 檔案增加customize的參數如下: DEFAULT_LOCAL_GROUP = 0x33 PFLAGS += -DCC1K_DEF_FREQ=916700000 另外在java部分有下面心得: 開啟連線前,需要設定MOTECOM參數讓程式知道溝通的serial port: export MOTECOM=serial@/dev/ttyUSB1:mica2 關閉連線後:unset MOTECOM 把此參數清掉,但我自己測試發現沒清掉也沒關係才對,之後的程式可以沿用讀取沒有關不掉的問題。

Got "flash error at address" problem when install mica2 program under linux envirement

目前在Linux開方平台上面遇到當install到mica2的時候,會有無法燒錄進去的問題,而且把make好的binary拿到PC上使用MoteWorks的環境燒錄也不行,似乎欠缺一些指定平台的參數,目前正在測試當中。 現在找到的可能問題如下網址: https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-June/034667.html 看來應該確定是設定的問題,因為後來我打make mica2 help查詢可以使用的make command發現,似乎因為是舊版本的關係,他無法認出"make mica2 install mib520,/dev/ttUSB0"中的mib520是什麼裝置,所以就將系統導到使用預設的dapa(use parallel port programmer),但我們應該是使用serial port的才對,所以mib520改成使用mib510即可pass。

完成MoteWorks 2.0系統建置

原本使用MoteWorks_3.2在Win7下面企圖安裝,看來是安裝OK沒有問題,但欠缺原本使用手冊寫道的Programmer's Notepad這套軟體,感覺好像變不好用了,所以跟代理商要了Crossbow時代的MoteWorks_2.0.F. MoteWorks_2.0.F安裝在WinXP上,一開始Cygwin不正常,用下面方式避開了錯誤,就是先只安裝他原本的Cygwin,之後更新網路上最新版本的Cygwin,接著才重新做一次full installation,就可以正常的執行完成安裝動作。 Programmer's Notepad的make指令測試OK沒問題。 後面的開發發現,RIPS不是使用MoteWorks開發的,由於MoteWorks不是標準的TinyOS系統,有被Crossbow修改過,所以環境上很難去compiler RIPS的code,所以後來重新安裝了linux的版本,TinyOS 1.0的contribute目錄已經包含了RIPS的程式碼,可以直接make成功。

[教學] 利用 DiskMaker 輕鬆製作 10.8 Mountain Lion 開機碟! | MacUknow

[教學] 利用 DiskMaker 輕鬆製作 10.8 Mountain Lion 開機碟! | MacUknow : "註1:如果Download按鈕已經變成"Installed",請關閉App Store,按著Option鍵,重新啟動,並進入"Purchases"頁面,應該就會出現"Download"按鈕。 " 'via Blog this'

HOWTO Use Python in the web — Python v2.7.3 documentation

HOWTO Use Python in the web — Python v2.7.3 documentation : "HOWTO Use Python in the web" 'via Blog this'

Running Python Programs on the Mac OS X Apache Web Server

Running Python Programs on the Mac OS X Apache Web Server : 'via Blog this' This article is only for OS X non-server verision

UNIX找特定檔案並刪除之

find ./ -iname 'test-file-*' | xargs rm -rf

Sir Jonathan Ive:「一件產品必須誠實地變得更好。」 | wa+er.  白蘋果急救室

Sir Jonathan Ive:「一件產品必須誠實地變得更好。」 | wa+er.  白蘋果急救室 : "我認為人們會將情感與我們的產品連結起來的原因,是因為他們感覺到了我們對他們的關注,以及在創造這些產品時所投注的大量心力。 " 'via Blog this'

Why HDMI can not display 1680x1050 resolution?

Mac Mini and the HP 2207 monitor screen...: Apple Support Communities : "The reason it is grayed out is because the 1680x1050 resolution has no HDTV mapping so it assumes it is not hooked up to a tv. Generally connecting a computer to a computer monitor by HDMI is a bad idea. You will never get a true 1 to 1 pixel mapping like you will when hooking up by DVI. The reason the port is there on the monitor is to give people the option to hook up a video device up to it, be it a dvd player, blueray player, etc. " 'via Blog this'

[筆記]Android Debug certificate expired | 更夜

[筆記]Android Debug certificate expired | 更夜 : "Windows 7: C:\Users\{username}\.android\debug.keystore " 'via Blog this'