Category: Coding

0

Super CapsLock On Ubuntu 16.10

On ubuntu 16.10, make CapsLock act as Esc when it is hit, and as Ctrl when it is held. To make it work, modify /etc/default/keyboard, change 1XKBOPTIONS="" to 1XKBOPTIONS="caps:ctrl_mod

0

beautify i3wm

MotivationI enjoy using i3wm, big time. You can switch to different windows/apps conveniently with it. The only problem to me is that it’s not beautiful enough, and it’s ridiculously small in my high-

0

Let hexo support mathjax

UpdateThe original answer fails on some mathjax expressions. So don’t use it. Currently changing marked.js works for me. Just use the method below. It works for me. First introduce mathjax into our bl

0

Hexo Source Code Demystified

PrefaceHexo is an excellent static blog generator, I read its source code recently, and I think it’s worth sharing the inner mechanism of its source code. GeneratorWhen you run the command hexo genera

0

install flash plugin in firefox on arch linux

First, install flashplugin. 1sudo pacman -S flashplugin Then if you launch firefox, you will find out that there’s no sound when playing flash in it. Launch it from the terminal, you will find out the

0

connect to wifi via commandline on arch

I just spent hours connecting to the wireless network on archlinux today. Finally I resorted to various tools in commandline. Here’s how I do it. Make sure you run the following commands as root to av

0

shorten a string without cutting words

QuestionHow to shortening a string without cutting words? For example, I have a string called Hello World, whose length is 11. I want to shorten its length to less than 6, which would be Hello W, but

0

bittorrent sync

I installed bittorrent sync tonight, one on my PC and one on my digitalocean VPS. If it’s working correctly, the previous backup script would be useless. One of the possible issues might be the storag

0

learn redirection the hard way

It’s been a long time since the last time I wrote the blog, because I’m not a fan of writing blogs. But today I solved a problem with hours’ digging and trying, so I think it might be a good idea to s