Have a silly wordpress permission error wasted me half an hour to fix. It turns out that I’m missing below as WordPress folder is under user folder. sudo chmod 755 /home/ubuntu sudo chmod 755 /home/ubuntu/swebsite
Category: About computer
ipcam setup (YCC365)
It is very confusing to try to setup YCC365 with zoneminder. I still can’t make the camera control work. The most annoying part is try to connect camera to my router. Basically, YCC365 plus will NOT work. One has to use YCC365 and be sure to select connect using “device adding by scanning the code“….
latexocr
Install latex-ocr with pip install “pix2tex[gui]” It can be run directly using “latexocr”, which should be “installed” under ~/.local/bin But it has problem with QT running out of the box on 22.04. The following fixed it. sudo apt-get install libxcb-cursor0
Never use pip install anything related to Qt on Ubuntu
As title, almost wasted me an hour to figure out the problem. Always install with sudo apt install and use system-site-packages for virtualenv For example for QtWebEngine, install with sudo apt-get install python3-pyqt5.qtwebengine
magnifier in Ubuntu Unity
I like unity desktop but mangifier does not work out of the box. Install ccsm and ccsm-plugin, sudo apt-get install compizconfig-settings-manager compiz-plugins In assessibility, enable magnifier and change hotkey to something else. The default Super-m is overrided by Unity-dash for music search. Update: Alternatively, we can zoom in and out with Super-Z and shift-Super-Z.
Visualize Delaunay mesh with MeshLab
To visualize a Delaunay mesh using MeshLab, you’d typically be visualizing the 3D Delaunay triangulation (or tetrahedrization) of a set of points. Here’s how you can do that: Input Data: Ensure you have a set of 3D points in a format that MeshLab can read (e.g., .ply, .xyz, .obj, etc.). If your Delaunay mesh is…
A yield example from chatgpt
def count_up_to(n): “””Generator that counts from 1 up to n.””” count = 1 while count <= n: yield count count += 1 # Using the generator for number in count_up_to(5): print(number)
22.04 save not focus bug
Workaround available for the very annoying bug (from here) Install Devilspie 2 from the standard repositories or, if you want the latest version, which has several improvements, compile from source direct from the Devilspie 2 Github. Add devilspie2 to your autostart programs. Create the file ~/.config/devilspie2/devilspie2.lua (you can use a different file name; read the instructions for details). In this…
gpg error for dropbox
I got this frustrating errors W: http://linux.dropbox.com/ubuntu/dists/disco/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. After over an hour of googling and back and forth with gpt4, this one as below resolved it temporarily. Thanks! This worked. For others that run into this problem: Use a…
Unable to use fitz with python 3.8
I use pymupdf to automatically sign my document. But the package name is pymupdf even the warning is that “fitz” is not installed. If come across an error message like import fitz File “/home/phsamuel/p3/lib/python3.10/site-packages/fitz/__init__.py”, line 1, in <module> from frontend import * File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/__init__.py”, line 1, in <module> from .events import * File “/home/phsamuel/p3/lib/python3.10/site-packages/frontend/events/__init__.py”, line…