Archive for the ‘Application’ Category

Visual Automation Test — PROJECT SIKULI


21 4月

What's SIKULI?

Sikuli is a visual technology to automate and test graphical user interfaces (GUI) using images (screenshots). Sikuli includes Sikuli Script, a visual scripting API for Jython, and Sikuli IDE, an integrated development environment for writing visual scripts with screenshots easily. Sikuli Script automates anything you see on the screen without internal API's support. You can programmatically control a web page, a Windows/Linux/Mac OS X desktop application, or even an iphone or android application running in a simulator or via VNC.   Find out more on http://sikuli.org/ Other similar stuff: http://www.testandtry.com/2010/02/01/5-great-automation-tools-based-on-image-recognition/  

HOWTO: Compile TUN/TAP Driver(tun.ko) for Evo 4g (2.6.32.17-gee557fd)


15 2月
Hello all. After been searching the tun.ko for my Evo4g for the last week and failed, I tried to compile it myself this week, and luckily succeeded. Well, I shall paste the tun.ko file here first for those who don't want to know the details to download directly. OK. Now we shall begin. I used a linux box to do the job, if you got a windows or mac box, sorry for that, you have to find your own way. 🙂 Firstly download the source code of our kernel from here: http://dl4.htc.com/RomCode/Source_and_Binaries/supersonic-MR3-2.6.32-gee557fd.tar.gz and the ndk from here: http://dl.google.com/android/ndk/android-ndk-r4-linux-x86.zip Of course you may need the sdk as well, but I'm lazy and in this post, the sdk will just play some very simple role which can be replaced by other stuff I already got, so I just skipped that. When you have all the above ready, copy the /proc/config.gz file from your phone to your linux box and unzip and rename:
gunzip config.gz
mv config .config
Edit the .config file and set 'CONFIG_TUN=m'. (You can find the line start with '# CONFIG_TUN' and change it if you have obsessive-compulsive disorder like me.) Now extract the source code and place this .config under the source code folder. Edit the Makefile in the source code, and set 'EXTRAVERSION = .17-gee557fd' (If you are compiling a different version of kernel you should set this value to exact what your extra version is. You can easily find it in your phone's about page or use the command 'uname -a' in your phone's terminal or sdk's adb shell.) Then: export ARCH=arm export CROSS_COMPILE=arm-eabi- export PATH=$PATH:~/android/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/   (Fix this directory to where you have extracted your ndk) After all set, goto the kernel folder and run 'make modules' . You will be asked for some choice in the compiling. Actually a lot of questions and I have no idea what they are referred to. But there're some option you need to choose correctly. Qualcomm MSM SoC Type, choose 'QSD8x50' Supersonic (MACH_SUPERSONIC) [N/y/?] (NEW)  Y
DAL RPC support (MSM_DALRPC) [Y/n/?] (NEW)  N
Don't ask me why. I did this and it worked, or failed somehow. For the rest options, just press 'Enter' to use the default.
Then you should have your tun.ko in 'drivers/net/' under your kernel folder.
Copy the driver to your phone and you know the rest which can be found every where else.
EOF
Quick note for openvpn:
insmod /system/lib/modules/tun.ko
ln -s /system/bin/busybox /system/xbin/bb/ifconfig
ln -s /system/bin/busybox /system/xbin/bb/route

Remword 云词 2.0 发布 学习英语 背单词 首选(Android & WM)


30 9月
最近英语学习比较纠结,每天晚上一回家就是英文英文,上班休息时间也看看BBC NEWS,Guardian,National Geography,但是我这记性,单词实在是杯具。 作为一个软件开发人员,一直坚信用软件帮助背单词肯定是有用的,可是7、8月份一直想找个这样的软件安在偶的EVO4G上,最终都不尽人意,云词算是所有之中相对不错的了,可惜1.6版本还是有很多遗憾和缺陷,比如界面比较烂,解释不够全面只有简略的中文之类的,没有提醒复习单词的功能(只能自己想到了开一下,看是不是有要背的了),对我这么懒的人,记性又差,很容易就忘记要复习。不过因为相对其他背单词软件,要好多了,所以没有被我删除。 今天偶然打开,发现有更新,作为一个更新控,很自然的就下了新版本。哇靠,突然感觉是换了一个软件。界面之精美,堪比我们专业美工的设计,我甚至怀疑作者是不是拿到风投组了个团队在做了。功能上之前的缺陷也全部改完了,解释非常全面,例句也比以前丰富了不少,还可以有像google dictionary那样的more。更棒的是提供了复习提醒,还带震动的,册那,完全就是perfect match嘛。 好了,又激起了我继续背单词的欲望了。嗯,最近看文章什么的,新的单词记了又忘的。好吧,不过我得把我原来生词本中460+的单词处理掉才行。。。 唉。。。何时是个头呀。。。才到3000的高频词而已。。。还剩17000。。。 Well, everything about remword could be found on its official site: http://www.remword.cn/

ipconfig出现很多”tunnel adapter Local Area connection”的解决方法


20 6月
嗯,用上win7后,不知道什么时候开始,cmd ipconfig的时候出现了超多"tunnel adapter Local Area connection"项,貌似最近都破百了,想看的ipconfig都被刷出cmd窗口了,很不方便,今天决定动手搞掉。。。 嗯,查了下Google,原来是IPv6惹的祸,本来还以为是vmware模拟出来的其他网段呢,奥特曼了 - - 嗯,微软官方貌似也承认这是个bug了,好像是因为什么情况下,重启的时候会自动增加这些tunnel adapter,怪怪的。 本来是想找找看是不是有补丁之类的,未果。 想想反正现在基本还用不到IPv6的东东,所以决定废掉它。 方法还蛮简单的,分两布。 第一步到网络链接管理里面,把每个链接的属性中的ipv6那一项的勾勾去掉。 第二步要改注册表,添加一个HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents的DWORD (32-bit)项,把value设置成0xffffffff (hexadecimal value)。 ok,重启,好了,进cmd,ipconfig下,哈哈,这个世界清净了,喵~

Xdebug相关整理


17 3月
一般的功能说明直接看文档: http://xdebug.org/docs/ 使用下来感觉比较好的profiler分析工具: web版:http://code.google.com/p/webgrind/ windows:http://sourceforge.net/projects/wincachegrind web版的功能稍弱点,不知道有没有更好的替代,但相对本地版的,web版比较方便,但本地的分析更到位一些。 另外remote功能因为不习惯用IDE,所以只实验了http://code.google.com/p/xdebugclient/ 感觉还行,反正我写代码一般很少需要调试的样子,多年养成的习惯了,也许今后超大型的东西,会用到吧。 设置似乎异常简单,随便贴一点php.ini段落: zend_extension="/usr/local/xdebug/lib/xdebug.so" xdebug.profiler_enable=1 xdebug.profiler_output_dir="/home/yoohouse/public_html/xdebug" xdebug.profiler_output_name="cachegrind.out.%R" xdebug.remote_enable=1 xdebug.remote_host="192.168.4.26" 反正看着docs一般都能会。 应该说Xdebug的重点还是在于使用后,要怎样实现代码上的改进,工具本身没什么花头。 一些还没看的中文资料: http://www.ccvita.com/352.html

TortoiseSVN初始设置


26 2月
1.右键->TortoiseSvn->Settings->编辑设置文件 2.去掉 no-unlock = yes (每次提交不自动锁定)和 enable-auto-props = yes(开启自动属性功能) 的注释 3.在config文件的最后加上: * = svn:needs-lock=x *.css = svn:keywords=Id ;svn:eol-style=native *.php = svn:keywords=Id ;svn:eol-style=native *.html = svn:keywords=Id ;svn:eol-style=native *.phtml = svn:keywords=Id ;svn:eol-style=native *.js = svn:keywords=Id ;svn:eol-style=native *.txt = svn:keywords=Id ;svn:eol-style=native (说明:第一行为自动为每一个add的文件加上必须锁定的标记,后面几行的功能是,自动替换文件中以“$Id xxx$”字样成每次提交的svn版本及用户信息等。) 4. global-ignores = Thumbs.db

貓熊寶寶幼齒園

姜經緯的博客