I’ve bought Raspberry Pi 4 to use it as a DaaS (Desktop as a Service). I’ve needed a VPN server to securely connect to when I am traveling. I’ve needed a Cloud Server to replace Dropbox to have unlimited space. I’ve needed a NAS (Network-attached storage) to share files among...
[Read More]
Create a Bootable Windows 7 or 10 USB Drive in Linux
source: https://thornelabs.net/posts/create-a-bootable-windows-7-or-10-usb-drive-in-linux.html # fdisk /dev/sdY create single partition type 7 plus the bootable partition # mkfs.ntfs -f /dev/sdY1 # ms-sys -7 /dev/sdY Finally, copy the contents of the mounted Windows 7 ISO to the mounted USB drive # mount -o loop win7.iso /mnt/iso # mount /dev/sdY1 /mnt/usb # cp -r...
[Read More]
Updating modules using Elpy
When a self written module gets updated, reevaluating the buffer and the module in the python shell inside Emacs/Elpy doesn’t get updated. For solving this issue, add the following to your Emacs configuration file: (defun my-restart-python-console () "Restart python console before evaluate buffer or region to avoid various uncanny conflicts,...
[Read More]
Matplotlib plot not appearing with elpy in Emacs
For solving this, you can use different back-end:
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
Other GUI backends:
[Read More]
Fix tmux issue with conda
source Problem: When running a conda environment and opening tmux on macOS, a utility called path_helper is running again. Essentially, the shell is initialized twice which messes up the ${PATH} so that the wrong Python version shows up within tmux. Solution If using bash, edit /etc/profile and add one line....
[Read More]