Jan 28, 2011

Develop JVLC Project on Eclipse, Win7


JVLC is a java version of VLC player, it can be downloaded at 'http://code.google.com/p/vlcj/'. But it is not easy to be set up. I also encounter some hectic problems. And JVLC does not support Mac OS at present!!!

1) download Eclipse at 'http://www.eclipse.org/downloads/'. We should download the matched version with the OS, such that my computer need to use Windows 32-bit instead of 64-bit.

2) ensure Java Runtime Environment(JRE) has been installed.

3) install and run Eclipse directly.

4) extract vlcj to the workspace of Eclipse. Build up a project and import it into Eclipse.

5) If we run the project now, probably we will get some error like this, "Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': The specified module could not be found."

6) So we need install VLC and it can be downloaded at 'http://www.videolan.org/vlc/releases/1.1.5.html'.

7) After the installation, the solution to that error is that the system PATH should be redirected to the directory which contains the module of "libvlc.dll". "libvlc.dll" is in 'C:\Program Files(x86)\VideoLAN\VLC'.

8) So what we need to do is to configure the environment variables, putting this path into the System PATH. The details and steps is illustrated on the website of Java (http://www.java.com/en/download/help/path.xml).

9) And do not forget to Reboot your computer. This is very important to activate PATH variable.

10) Now, JVLC could be compilable and work.

Jan 8, 2011

DrunkAlert,我们小组开发的手机应用软件,欢迎大家免费下载,参加公测!

DrunkAlert(DA) 是我现在实验室所进行项目的其中一部分(大概六分之一),版本号为V8.0.2,因为该项目其余部分涉及用户隐私数据,需要由服务提供商来运营,所以暂时不能上线使用。DA目前只支持Android手机用户,Android操作系统最好是2.1或更新的版本。DA的工作机制是通过随身携带的Android手机,来实时监测用户是否过量饮酒,判断的依据是当人醉酒时,往往无法走直线,而左右方向上加速度和摆幅变大。如果系统判断用户醉酒,就会自动振铃并触发一系列事件。


我们在去年12月做了内测,但依旧不是很确定它的准确性和实用性,所以希望在公测时多收集一些数据。


大家可以在Android Market上搜索并免费下载程序(如图1),搜索关键词可以是“drunkalert”, “drunkenness”, “drunk”等等(如图2)。
图1                         device.png 
  图2                       device2.png


监测的sensitivity会根据时间和地点位置自动调整,但是目前位置信息只限于香港地区的用户使用。也就是在白天或是在家、办公室,DA不会很容易被触发,但在夜晚至凌晨醉酒高发的时间段或是香港用户周围一定距离内,有大量酒吧时,DA会变得sensitive。


图3. 程序主页        device3.png
图4. warning被触发device4.png