~/.imagej/IJ_prefs.txt on Linux
Thursday, June 10, 2021
Friday, June 4, 2021
CMake cannot find CUDA
CUDA_TOOLKIT_ROOT_DIR
to cmake:
cmake -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-5.5
Source: https://stackoverflow.com/questions/19980412/how-to-let-cmake-find-cuda
important to have the version at the end of path in my own experience
Tuesday, May 18, 2021
Thursday, May 6, 2021
Kubuntu wifi stuck on 'waiting for authorization'
if you have network-manager enabled :
sudo nmcli dev wifi
to find your wifi ssid
and
sudo nmcli dev wifi connect <your ssid> password <your pass>
https://askubuntu.com/questions/869955
Get the CPU temperature
https://askubuntu.com/questions/15832/how-do-i-get-the-cpu-temperature
sudo apt-get install lm-sensors
sudo sensors-detect
sudo service kmod start
sensors
Wednesday, May 5, 2021
port forwarding for ssh
https://askubuntu.com/questions/716184/how-to-ssh-into-a-server-running-on-a-home-network-behind-a-router
Wednesday, April 28, 2021
Cuda compute capability, compatibility
https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
Thursday, April 8, 2021
Copy/Extract HTML Dropdownlist Options in Plain Text
Source; https://techbrij.com/copy-extract-html-drop-down-list-options-text
For Chrome:
Right Click on HTML Dropdownlist, Select Inspect Element and In Developer Tools, you will see html source is selected. Right click and click Copy as HTML option.
3. Paste HTML source in Notepad++
4. Remove Select tag from top and bottom if exists
5. Put cursor at top of code and Press Ctrl + F
6. Go to Replace Tab and enter following info:
Find What:
<option[^>]*>([^<]*)</option>
Replace With:
\1\n
Select Regular Expression as Search Mode and click on Replace All. If options are already in new line then no need to use \n in Replace With option.
Saturday, March 20, 2021
Wednesday, February 3, 2021
bash split single page in pdf
apt-get install mupdf-tools
mutool poster -y 2 input.pdf output.pdf
For horizontal splits, replace y
with x
. And you can, of course, combine the two for more complex solutions.
Source: https://unix.stackexchange.com/questions/12482