摘要: Writing Go programs that talk to services over HTTP is easy and fun. I’ve written numerous API client packages and I find it an enjoyable task. Howeve 阅读全文
posted @ 2017-11-06 12:04 jvava 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 37 down vote If you have a class hierarchy A, B is a subclass of A, and C and D both are subclass of B like below class A {} class B extends A {} clas 阅读全文
posted @ 2017-09-27 16:04 jvava 阅读(105) 评论(0) 推荐(0) 编辑
摘要: echo 3 > sudo tee /proc/sys/vm/drop_caches top -d30 -bn20 > a 阅读全文
posted @ 2017-01-16 17:53 jvava 阅读(120) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws InterruptedException, IOException { byte[] utf8bs = {(byte) 0xe3, (byte) 0x80, (byte) 0x8a, (byte) 0xe6, 阅读全文
posted @ 2016-11-10 17:35 jvava 阅读(196) 评论(0) 推荐(0) 编辑
摘要: object IntStateMonad extendsMonad[({type IntState[A] = State[Int, A]})#IntState] {...}This syntax can be a little jarring when you first see it. But a 阅读全文
posted @ 2016-10-31 10:23 jvava 阅读(102) 评论(0) 推荐(0) 编辑
摘要: /usr/bin/synergyc -f --no-tray --debug INFO --name xxx 192.168.xxx.xxx:24800 &/usr/bin/synergys -f --no-tray --debug INFO --name xxx -c synergys.conf 阅读全文
posted @ 2016-09-18 14:50 jvava 阅读(352) 评论(0) 推荐(0) 编辑
摘要: sed -n "20,30p" afile 阅读全文
posted @ 2016-08-29 15:16 jvava 阅读(119) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/7483515/rake-aborted-no-such-file-to-load-bundler-setup-rails-3-1 $ rake installrake aborted!LoadError: cannot load 阅读全文
posted @ 2016-08-27 09:41 jvava 阅读(547) 评论(0) 推荐(0) 编辑
摘要: http://www.linuxquestions.org/questions/debian-26/how-do-i-get-rid-of-those-rc-packages-as-seen-in-dpkg-l-output-418956-print/ 阅读全文
posted @ 2016-08-27 09:39 jvava 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Because in a case like this: type I int type P *I func (i I) Get() int { return int(i) } func (p P) Get() int { return int(*p) } var v I var x = (&v). 阅读全文
posted @ 2016-08-07 10:38 jvava 阅读(610) 评论(0) 推荐(0) 编辑