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]
Tags: Linux debian

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]
Tags: Emacs Python

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]
Tags: Jupyter Python

Emacs as Python3 IDE in Mac

Install the following using your preferred method: pip3 install rope jedi importmagic autopep8 flake8 In Emacs: M-x package-install RET elpy RET M-x package-install RET exec-path-from-shell RET M-x package-install RET pyenv RET M-x package-install RET anaconda-mode RET Edit .emacs as following: (elpy-enable) (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) (add-hook 'python-mode-hook... [Read More]