<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>Tsung.暴躁</title>
	<link>http://tsung.bz</link>
	<description>How To Rock On?</description>
	<lastBuildDate>Mon, 23 Aug 2010 08:09:03 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.0.1" -->

	<item>
		<title>Git Tips</title>
		<description><![CDATA[删除远程分支 git push origin :tmp-branch]]></description>
		<link>http://tsung.bz/2010/08/23/git-tips/</link>
			</item>
	<item>
		<title>代码高亮组件</title>
		<description><![CDATA[找了很久才有个满意的，主要是这个可以自动换行。 用法 [ruby] def demo puts &#34;SyntaxHighlighter Evolved&#34; end [/ruby] 样子 def demo puts &#34;SyntaxHighlighter Evolved&#34; end 没错，就是这个：SyntaxHighlighter Evolved 这是作者的博客链接：http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/ 这个组件基于这里这个：http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes]]></description>
		<link>http://tsung.bz/2010/08/21/code-syntax-highlight/</link>
			</item>
	<item>
		<title>CentOS 安装 GIT</title>
		<description><![CDATA[参考这个，很全了，稍微修改，备份下 http://www.liumin.name/20090406/installing-git-on-centos-5/ yum install zlib-devel openssl-devel perl cpio expat-devel gettext-devel 安装Curl wget http://curl.haxx.se/download/curl-7.18.0.tar.gz tar xzvf curl-7.18.0.tar.gz cd curl-7.18.0 ./configure make make install 确定一下ld.so.conf文件里有/usr/local/lib,这个是为git-http-push准备的. vi /etc/ld.so.conf #插入下面的代码 /usr/local/lib 保存文件,接着运行: /sbin/ldconfig 下载Git并安装 #在这里找到最新的GIT http://kernel.org/pub/software/scm/git/ wget http://kernel.org/pub/software/scm/git/git-1.7.2.tar.gz tar xzvf git-latest.tar.gz cd git-1.7.2 autoconf ./configure --with-curl=/usr/local make make install]]></description>
		<link>http://tsung.bz/2010/08/20/install-git-on-centos/</link>
			</item>
	<item>
		<title>Ubuntu下安装AirVideo服务器</title>
		<description><![CDATA[准备环境 sudo apt-get install libmp3lame-dev libfaad-dev libx264-dev faac faad lame mpeg4ip-server git-core pkg-config 下载AirVideo源码，http://www.inmethod.com/air-video/licenses.html。选最新的2.5 配置安装，注意这边enable disable前面都是两个短杠。这个主题有点bug ./configure --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame --enable-libfaad --disable-decoder=aac make sudo make install 下载服务器jar包，http://inmethod.com/air-video/download/linux/alpha3/AirVideoServerLinux.jar 下载配置文件，http://inmethod.com/air-video/download/linux/alpha1/test.properties 配置文件大致如下： path.ffmpeg = /usr/local/bin/ffmpeg path.mp4creator = /usr/bin/mp4creator path.faac = /usr/bin/faac password = subtitles.encoding = windows-1250 subtitles.font = Verdana folders = Movies:/home//Videos,Series:/Volumes/Data/Series 启动 java -jar ]]></description>
		<link>http://tsung.bz/2010/07/27/install-airvideo-server-under-ubuntu/</link>
			</item>
	<item>
		<title>Android Tips</title>
		<description><![CDATA[If you&#8217;re still getting &#8220;out of memory&#8221; you should do something like that: BitmapFactory.Options options=new BitmapFactory.Options(); options.inSampleSize = 8; Bitmap preview_bitmap=BitmapFactory.decodeStream(is,null,options); This inSampleSize option reduces memory usage. BitmapFactory.Options options = new BitmapFactory.Options(); options.inTempStorage = new byte[16*1024]; bitmapImage = BitmapFactory.decodeFile(path,opt)]]></description>
		<link>http://tsung.bz/2010/07/14/android-tips/</link>
			</item>
	<item>
		<title>Palm WebOS 折腾记录</title>
		<description><![CDATA[palm-emulator启动模拟器的时候提示novacom没运行，在/etc/rc.local添加一行/opt/Palm/novacom/scripts/novacomd-upstart 链接模拟器：novaterm 跟踪log： palm-log -f com.yours appinfo.json里面不能有注释，必须用双引号 icon：64x64pixels, 24bit/pixel RGB and 8bits alpha, about 56&#215;56 pixels within the PNG bounds]]></description>
		<link>http://tsung.bz/2010/07/13/palm-webos-%e6%8a%98%e8%85%be%e8%ae%b0%e5%bd%95/</link>
			</item>
	<item>
		<title>常用eclipse插件地址</title>
		<description><![CDATA[http://subclipse.tigris.org/update_1.6.x https://dl-ssl.google.com/android/eclipse/ http://cdn.downloads.palm.com/sdkdownloads/eclipse-update-site/site.xml http://download.aptana.org/tools/studio/plugin/install/studio http://vrapper.sourceforge.net/update-site/stable]]></description>
		<link>http://tsung.bz/2010/07/12/eclipse-plugin/</link>
			</item>
	<item>
		<title>Ubuntu底下用proxychains越墙安装dropbox</title>
		<description><![CDATA[优秀的云存储服务Dropbox被华丽丽的和谐了~windows底下直接可以下到客户端，ubuntu底下还要去网络上获取安装资源，这就碰到一个问题，给任意本地程序添加代理功能。当然，这里的任意可能有些复杂，比如前段时间DNS的原因我在公司上不去empathy的gtalk客户端，用了代理也是没用，估计是因为我在proxychains设置了代理DNS（可能理解有误）。下面简单说下安装步骤： 1、到dropbox下载ubuntu的DEB安装包，并安装。 2、安装完DEB后关掉dropbox。 3、安装proxychains，sudo apt-get install proxychains 4、运行 proxychains dropbox start -i &#038; （这里&#038;的意思是在终端打印出调试信息） 这样，就能顺利完成安装了 感谢@riku的提醒，可以参考他这篇文章更改设置：http://w.riku.me/blog/pino]]></description>
		<link>http://tsung.bz/2010/07/12/fuck-gfw-to-install-dropbox-online-under-ubuntu/</link>
			</item>
	<item>
		<title>Android开发之callback后改变UI会报错</title>
		<description><![CDATA[发现是自己AsyncTask用错了!!doInBackground后返回的result是给onPostExecute调用的,这两个方法都要重写,执行到onPostExecute后就是回到主线程去执行了..也就没有底下的问题了 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 只有创建UI的线程才能修改这个UI,假设你用的是实现接口的方式做callback的话,必须在callback的类里做一个Handler对象来接收callback里的sendMessage. 另外android的表单验证是Activity实现一个TextWatcher,在afterTextChange事件后作验证;当然,要把每个EditText的addTextChangedListener指向本类(这些EditText属于这个类),另外,如果出错要设置EditText.setError的话,也要在Handler里用sendMessage的方式来做]]></description>
		<link>http://tsung.bz/2010/07/01/update-ui-after-remote-callback/</link>
			</item>
	<item>
		<title>ibus-sunpinyin in ubuntu</title>
		<description><![CDATA[http://code.google.com/p/sunpinyin/downloads/detail?name=ibus-sunpinyin-2.0.1.tar.gz sudo apt-get install libtool libibus-dev sqlite3 libsqlite3-dev libgtk2.0-dev build-essential cdbs debhelper autotools-dev git-core 注意这里的./configure 后面的参数都是两个-而不是一个。。主题有点bug tar xvf sunpinyin-2.0.20091104.tar.gz cd sunpinyin-2.0 ./configure --enable-ibus --disable-documents --prefix=/usr --libexecdir=/usr/lib/ibus-sunpinyin sudo make instal]]></description>
		<link>http://tsung.bz/2010/06/21/ibus-sunpinyin-in-ubuntu/</link>
			</item>
</channel>
</rss>
