I use dropbox to manage my website. It is not really very secure. But it is at least very convenient. I use one dummy dropbox account contain just my website folder shared from my main dropbox account. Then I just login dropbox with my dummy account for my web server. It has been working…
Category: About computer
Natural scrolling for 18.04
Unity doesn’t have an natural scrolling option on 18.04. One can enable that with libinput To enable Natural Scrolling in libinput add Option “NaturalScrolling” “true” to /usr/share/X11/xorg.conf.d/40-libinput.conf. It should be added before EndSection to the touchpad section. Unity desktop GUI app can’t use libinput options. You can switch to synaptics by sudo apt remove xserver-xorg-input-libinput sudo apt install xserver-xorg-input-all …
slow wifi on 20.04
This seems to fix my slow wifi on 20.04 Get the network name lshw -C Network Turn off power management sudo iwconfig wlp2s0 power off Check iwconfig
coursera-dl
Coursera-dl is a wonderful tool but authentication doesn’t work out of the box. It will work after adding cauth option in coursera-dl.conf as here.
WIFI connected but no internet for Ubuntu
As title, the connection is okay after reboot but suddenly no internet connection but still has a wifi connection. This happens often after some wifi signal hiccup. It turns out that it seems to be ipv6 problems. After setting ipv6 to “ignore” and disable and enable connection, the internet is back nicely.
php came back to bite me
I came across trouble with my WordPress site because dropbox hanged. I reinstalled everything and forgot the PHP problem I had earlier. I ended up wasting a day trying to figure out what happened again. I still can’t figure out why php7.4 doesn’t work with the latest WordPress upgrade. Maybe something was wrong with the…
surfshark vpn
surfshark-vpn doesn’t seem to work for Linux somehow for several months. At least I thought it was just because I was overseas. Surfshark itself seems to be working. Just the script itself doesn’t seem to be able to connect to any server anymore. Manual configuration with OpenVPN works. But DNS Leak test from SurfShark failed…
URLs in bibliography: LaTeX not breaking line as expected
“I am trying to include long URLs in a bibliography, but those often overflow into the margin of the document.” The following works like a charm. \usepackage{url} % breakurl \def\UrlBreaks{\do\/\do-} \usepackage{breakurl} \usepackage[breaklinks]{hyperref}
16×9 Beamer setting
To use 16×9 aspect ratio for Beamer, we can simply change \documentclass{beamer} to \documentclass[aspectratio=169]{beamer} However, Bakoma won’t display correctly afterward. Go to Option -> Document Properties -> Paper. Just change paper width and paper height to 454bp and 255bp should make things work.
Update to PHP 7.4
WordPress recommends upgrading to PHP 7.4. The installation is quite easy (basically just apt install). However, pages and posts are gone after I switch from 7.2 to 7.4 for my lab website. Yet, there is no problem upgrading my blog site. After several hours, I gave up. No idea why it has such weird behavior….