摘要: After nearly a month's use of emacs, I find myself deeply attracted by this cool editor.Below are some useful short cuts during the daily use.Section1: (1)move: C-a Move to beginning of line M-m Move to the first non-whitespace character on the line C-e Move to the end of line C-f Move ... 阅读全文
posted @ 2013-09-04 22:07 rainy.mayday 阅读(166) 评论(0) 推荐(0)
摘要: 1.rar卸载unrar以及rar,安装p7zip-rar,一切OK.2.zip使用7z解压$sudo apt-get install p7zip-full convmv$ LANG=C 7z XX.zip$convmv -f cp936 -t utf8 -r --notest * 阅读全文
posted @ 2013-09-21 12:51 rainy.mayday 阅读(137) 评论(0) 推荐(0)
摘要: 每天在checkio上写一道题来锻炼锻炼思维今天写完morse clock之后观摩best solution的时候学习了两样东东:dev:python3.31.str.format()eg.>>>'{0:02b} '.format(2)10'''{} : replacement_field':' indicatorin this example,0 : fieldname02b :form_spec, just like %02b in c'''2.replace()string.replace( 阅读全文
posted @ 2013-09-05 22:34 rainy.mayday 阅读(228) 评论(0) 推荐(0)
摘要: 最近升级ubuntu的时候,说boot分区太小了,被要求free space,于是就google了下清理了旧内核,原来每次更新都会保留旧版本的内核以保证硬件兼容性,所以boot分区里面不知不觉装了好多旧内核。采取以下方式清除旧内核:$uname -a #查看当前使用的内核$dpkg --get-selections | grep linux #查看已安装的内核,linux-image开头的是内核$sudo apt-get remove linux-image-X.X.X-XX-*$sudo update-grub2 #更新grub2 阅读全文
posted @ 2013-09-02 23:29 rainy.mayday 阅读(168) 评论(0) 推荐(0)