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…

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….

Running CUDA samples with apt install

Days are gone when installing CUDA driver was a hazzle. We can now simply install it with apt install. And for cuda toolkit, one can simply install by apt install nvidia-cuda-toolkit However, apt install does not install samples. We can install from run file explicitly. wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_418.87.00_linux.run sudo sh cuda_10.1.243_418.87.00_linux.run # do not install driver…

Battery replacement for iPhone SE

I almost killed my phone again today. I didn’t realize that there are not just long, short screws in the phone. There are screws of different sizes: 0.12, 0.13, 0.16, and 0.17 mm just to replace the battery. I forgot how I killed my two iPhone 5S. But definitely, I didn’t know that there are…

Multiple desktop with Ipad mini

As I continue to explore options for using Zoom for teaching, one thing I like a lot is that I can connect my laptop to a monitor and only show one of the screens on Zoom. This way I can easily control what my students can see and I can leave some “cheat sheet” or…

Experience on Mynt Eye

Tested Mynt Eye on my Thinkpad because it seems that it only supported up to 18.04. The sample example can run off the box as described here. However, it seems to need quite some work to get it run with OpenCV. Moreover, the depth estimation is not accurate at all. Not sure if further calibration…

dm_control

Try to play with dm_control and request a trial license for mujoco. Since the trial license is for local machine, I have to set colab to run locally. Things mostly work okay. I still have some problems here and there (like ffmpeg can’t generate video). I have to install pyopengl and add the following to…

Laptop overheating

My Gigabyte laptop overheated and hanged a couple of times. I decided to look for solutions. First, it is a good idea to install psensor to monitor the temperatures of the cores. The current core temperature is almost 70 degrees C. I like it hot, and my room temperature is almost 30 C. But probably…