Home

1 Comment

backup script

Recently I made a backup script with python2.7, and it worked fine by now. So I think it might be a good idea to share it here. Install megaFuseThe first thing you need to do is to install megaFuse In

0 Comments

auto save in vim

I’d been using vim-auto-save for a long time, but I also found that it often messed up with my buffer order because it used silent wa to save all buffers. And sometimes undo didn’t work, I suspected t

0 Comments

map Ctrl-V as Ctrl-Q in vim

If you want to map Ctrl-V as Ctrl-Q, you can add the following line in your .vimrc file 1nnoremap <C-V> <C-Q> It works in gvim, but it wouldn’t work in terminal-vim. Why? I’d been confused

0 Comments

get selected text in chrome

EDITThe method mentioned here is overcomplicated. To see a simple method, please refer to my answer at stackoverflow.com prefaceI want to get the selected text in chrome. After hours of searching and

0 Comments

Batch Insert Into MySQL With Python

In Python, you can use MySQLdb‘s executemany to insert multiple records into MySQL at once. First, let’s install MySQLdb. The command used to install it depends on your OS: easy_install mysql-python

0 Comments

Configure Win7 Support For UTC

I have a virtual machine installed on ubuntu, the virtual machine contains an operation system of Win7. Win7 uses localtime, but ubuntu uses UTC, so the time they display is different. To fix this, I