2009年7月28日 星期二

Remove a range from java.util.Vector

There is a method removeRange in AbstractList class, somehow it is protected. So, if you want to remove a range from a Vector, use subList(which is come from List) instead:
v.subList( 0, 12 ).clear();
The subList method returns a view(or a snapshot) instead of a copy to manipulates original container. So if you want to do any operation in specific range, use subList.

2009年7月27日 星期一

2009年7月2日 星期四

Do not install or upgrade ia32-apt-get

ia32-apt-get just breaks your apt repository, it will screw up your package list. So don't upgrade ia32-libs from 2.7 to newer version until it DO fix this mess.
I don't know how can it upload to unstable ... it is just **HORRIBLE**!