Archive: 2015/12

0

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

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

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

Fix The Font Rendering Problem On Pycharm

Almost all the java desktop apps running on PC/Mac have a common problem: font rendering. The font rendering in pycharm was so crappy that I couldn’t live with it any more. So I began to search for a

0

Specify Port For Hexo Git Deployment

Usually if you want to deploy your hexo posts with git, you can add the following lines to your _config.yml file: 1234567# Deployment## Docs: http://hexo.io/docs/deployment.htmldeploy: type: git rep

0

Something About Dnsmasq On Ubuntu 15.10

PrefaceThere are something confusing about dnsmasq on ubuntu 15.10. I would like to write them down here, in case I might forget down the road. How Dnsmasq Starts On Ubuntu 15.10You can find the answe

0

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

Batch Insert Into MySQL With Python

I have a database in mysql which called testdb, wherein lies a table named log, the structure of the table is as followed. 123456789MariaDB [testdb]> describe log;+---------+-------------+------+--

0

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