December 18th, 2009
I was asked to generate a ASCII version of a samtools generated GLFv3 file yesterday. We were thinking about using a set of programs named glfProgs, which is available on Maq’s sourceforge page, but had no luck: gzread complains cannot open file. After read a few lines of the source code of samtools I found that samtools (v0.17) has a glf viewer itself but is not written in the manual.
glfview print GLFv3 file
Neat. If you run samtools without any arguments it will also tell you this, but we barely do it these days.
No Comments »
December 9th, 2009
Jeffrey:
Unless you’re editing high-def video or creating feature film animation,
you don’t need great hardware to do good work. You just need a passion
for the work.
I use my almost-4-year-old Macbook Pro while I’m writing/debugging code and it works great for me. For data analysis we use a much more powerful Debian box (sshed from Macbook Pro and other computers), but that is another story.
No Comments »
December 3rd, 2009
今天早上接到電話,之後又倒在床上。不知怎麼就開始收拾東西,收拾到一半突然覺得不對,睜開眼睛,原來是在夢裡收拾東西。
1 Comment »
November 24th, 2009
在水木清華的 joke 版翻到好多年前的笑話:
发信人: wsdsd (和你在一起), 信区: Joke
标 题: 好人呐
发信站: BBS 水木清华站 (Fri Oct 10 19:01:28 2003)
前天晚上10:00,在我所住的小区里。
那天我让mm生了好几次的气,都怪我没对她言听计从。
最后在往回走的路上,我乞求她的原谅。
mm:你得先把我背回去,我再考虑
mm:你先蹲下,我懒得往上跳
mm: 你两手抱住喽,你
这样走了大概有十分钟,一辆怕撒特从身边开了过去。
一会,那车又倒了回来,停在我们旁边。
“快上车吧,这儿离医院还远着呢!”
我无语……
又想起來這些日子倒鉤的事情。
1 Comment »
November 12th, 2009
The keyboard shortcut of “TopSite” changed from cmd+shift+1 to cmd+opt+1. Makes my fingers uncomfortable sometimes since I use this feature several times a day.
No Comments »
November 5th, 2009
Jason Fried of 37Signals:
It really bothers me that the definition of success has changed from
profits to followers, friends, and feed count. This crap doesn’t mean
anything. Kids are coming out of school thinking, I want to start the
next YouTube or Facebook. If a restaurant served more food than
everybody else but lost money on every diner, would it be successful?
No. But on the Internet, for some reason, if you have more users than
everyone else, you’re successful. No, you’re not.
Agreed.
No Comments »
November 3rd, 2009
Regarding TidBITS’s “Hidden Single-Application Mode”:
But it goes further. Lurking in the scary bowels of Mac OS X for all
these years has been this little command, which brings back
single-application mode. (Go ahead and try it – it’s easily reversed.)
defaults write com.apple.dock single-app -bool true For
single-application mode to take effect, you have to relaunch the Dock
with this second command. killall Dock
Previously I use multiXFinder for this kind of job, which is free and play nicely with Snow Leopard. Additionally, it can also active the “Single Application Mode” while using Command + tab to switch applications. No need to mention the love of whitelist for some particular applications. Days ago I re-invited DragThing to my system and remember that DragThing itself has the exactly same feature.

Finally I use AppleScript to toggle this behavior, and it is lunched by FastScript.
tell application "DragThing"
if not (hide other applications when switching) then
set hide other applications when switching to true
else
set hide other applications when switching to false
end if
end tell
No Comments »