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…

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…