papercite not working

I didn’t realize that papercite was not working when I moved my WordPress to a new server. It took me a long time to figure out what was wrong. But once I figure out how to debug WordPress, it becomes very easy to fix the problem. To debug, add define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); in wp_config.php…

Byzantine general problem

I thought I studied this before but can’t find a post from my blog. Byzantine generals problem was named by Leslie Lamport, the creator of LaTex. They consider a distributed consensus problem with the allegory that every general will need to agree on a broadcast message so that they can unify their attacks. It seems…

Chrome very slow

My Gigabyte hanged again, probably because of overheating. Chrome became super slow after rebooting. It was eventually fixed after reinstalling. That is, sudo apt purge google-chrome-stable rm -rf ~/.config/google-chrome/ and then reinstall by downloading Chrome from another browser.   Update: the problem does not seem to be fixed somehow… But turned off hardware acceleration seems…

GPU conflict on 16.04

I have my old desktop with a old GTX580 and K40. The GTX580 finally burnt out after many years of service. I replaced with an old C2095 since K40 does not have video output. But 16.04 just stopped allowing me to login afterward. I know that it has to be the video driver problem since…

X1 Yoga 3rd gen trackpad problem

X1 Yoga 3rd gen has quite a lot of sleeping problem. Supposedly the problem should be fixable as Lenovo has already implemented a fix for X1 Carbon 6th gen which essentially the same architecture. Anyway, even though the sleeping problem is fixable. One of my laptops (i5) works well after resume from sleep but my…

Unity workspace navigation

I am not sure since which version (maybe 16.04). The Unity shortcut for navigating workspace became quite stupid. Moving to the workspace on the left and right use ctrl-alt-left and ctrl-alt-right and moving to the workspace above and below use something ctrl-super-up and ctrl-super-down instead. In earlier versions, I think the default were ctrl-alt-up and…

PDF-XChange and Docear

PDF-XChange is the best compatible pdf reader for Docear. In Linux, I couldn’t manage to open pdf PDF-XChange even I changed it to default pdf reader. But this thread solves this. Basically “…If you want you can test it for yourself. In Docear, please use “Tools and settings > Miscellaneous > Preferences” to open Docear’s…

Docear export to latex

Docear is a very nice concept that unfortunately is quite broken because of lack of support. Export to Latex supposes to be a killer feature but as of 2018 it really does not run out of the box. A workaround is described here. Basically, a best solution is to use Saxon rather than using the export…