- 博客(9)
- 收藏
- 关注
perl tips for qw qq qx q
q// is generally the same thing as using single quotes - meaning it doesn't interpolate values inside the delimiters.qq// is the same as double quoting a string. It interpolates.qw// return a list...
2013-07-26 16:58:02 149
原创 show git branch in your bash prompt
export PS1='\[\e[1;0m\][\[\e[38;5;174m\]\u\[\e[38;5;240m\]@\[\e[01;32m\]\h\[\e[38;5;222m\] \w\[\e[31m\]$(parse_git_branch "(%s)")\[\e[1;0m\]]\[\e[38;5;240m\]\$\[\e[1;0m\]\e[m'function parse_git_br...
2013-07-26 16:47:26 269
原创 Show git log history in beautiful format
git alias:lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit --date=relative
2013-07-26 15:44:21 136
原创 再谈Java的wait(), sleep(), notify()和notifyAll()
一段时间不用java,这些概念就全混淆了,有必要彻底澄清一下,总结在这里,当然以我的本事,不太可能写出水平较高的总结,这里主要是总结stackoverflow上面高人的言论。[u][b]先说sleep() 和 wait()[/b][/u][b]sleep()[/b] method causes the current thread to move from running stat...
2013-07-25 10:59:45 98
shell字符串截取
${string#substring} 从string左边去掉第一个substring${string%substring} 从string右边去掉第一个substring
2013-07-19 15:09:32 107
原创 ubuntu 安装 java 环境
本人安装的是oracle java61. 下载jrewget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jre-6u45-linux-x64.bin2. 下载jdk...
2013-07-07 12:38:51 115
原创 ubuntu 安装中文输入法
1. 安装语言包System Settings-->Language Support-->Install/Remove Languages => 安装Chinese(simplified)2. 安装IBus框架sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt43. 启动IBus框架im-switc...
2013-07-07 10:57:44 161
Why singleton is anti-pattern?
[list][*] OO[*] Test[*] Other reasons?[/list]
2013-07-03 10:12:40 140
原创 How to generate the serialVersionUID when you implement Serializable interface,j
[url]http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/serialver.html[/url]
2013-07-01 10:52:40 78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人