2011年3月17日

google云输入法以及在chrome中的插件

摘要: google终于推出的了它的云输入法,速度比qq,sougou要快几个数量级。古奥里面也给出了一个输入汉语的方法,http://www.guao.hk/posts/google-transliterate-api-updates.html。不过那种传统的booklet的方式始终是不爽,其实chrome早已经有了相应的扩展https://chrome.google.com/extensions/de... 阅读全文

posted @ 2011-03-17 06:05 xueliangliu 阅读(307) 评论(0) 推荐(0) 编辑

2011年3月8日

google publish its API explorer today

摘要: google API explorer is online today.https://code.google.com/apis/explorer/7 api groups is ready to use, with online manu.With a concise interface, it is quit efficient to test these functions on line.... 阅读全文

posted @ 2011-03-08 17:45 xueliangliu 阅读(160) 评论(0) 推荐(0) 编辑

Increase CTR

摘要: Increase CTRAd PlacementRemember the general principles for ad placement:1. Higher placement is better than lower and left is better than right.2. To wrap text around ad units, copy and paste the foll... 阅读全文

posted @ 2011-03-08 17:23 xueliangliu 阅读(144) 评论(0) 推荐(0) 编辑

2011年3月5日

extract frame with FFMPEG

摘要: ffmpeg.exe -i sourcefile -r 0.1 -f image2 -s 240*180 foo-%03d.jpg extract 10frames per minute from the sourcefile, with the image size 240*180, and all of the file are saved as f00-%03d.jpg 阅读全文

posted @ 2011-03-05 00:10 xueliangliu 阅读(208) 评论(0) 推荐(0) 编辑

rename multi files with sed

摘要: It is a very useful pipe command that can rename multi files with the same patternrename:ls *old|sed 's/\(.*\)\.old/mv \1.old \1.new/'|sh 阅读全文

posted @ 2011-03-05 00:07 xueliangliu 阅读(156) 评论(0) 推荐(0) 编辑

2011年3月4日

ZZ Python datetime / time conversions

摘要: just for reminder#youku.pyfrom datetime import datetimeimport time#-------------------------------------------------# conversions to strings#-------------------------------------------------# datetime... 阅读全文

posted @ 2011-03-04 21:47 xueliangliu 阅读(200) 评论(0) 推荐(0) 编辑

2010年7月29日

python error when compile file in windows

摘要: It is a common problems when compile some source file in python. The error message is as followed:error: Python was built with Visual Studio 2003;extensions must be built with a compiler than can gene... 阅读全文

posted @ 2010-07-29 23:19 xueliangliu 阅读(181) 评论(0) 推荐(0) 编辑

2009年12月4日

some gdb command

摘要: This is a simple list of gdb debugger command. I will update this list when I get new ones.1.print/set output a val or change it.2.printf the printf function in c,but not () printf "%f\n", $ebp3.dis... 阅读全文

posted @ 2009-12-04 21:42 xueliangliu 阅读(160) 评论(0) 推荐(0) 编辑

2009年7月31日

verify a meaningful word by wikipedia

摘要: import urllibdef verifyword(word):url='http://en.wikipedia.org/w/api.php?action=query&list=search&format=jsonfm&srwhat=text&srsearch='url = url + urllib.quote(word.encode('utf-8'))res= urllib.urlopen(... 阅读全文

posted @ 2009-07-31 15:40 xueliangliu 阅读(132) 评论(0) 推荐(0) 编辑

2009年7月22日

a python script to download video from youku

摘要: A useful script to download video from youku.I find a related one from a google project http://code.google.com/u/ldmiao,which only can get one video address. however, the youku split a video into abou... 阅读全文

posted @ 2009-07-22 23:13 xueliangliu 阅读(439) 评论(0) 推荐(0) 编辑

导航