start new:
tmux
start new with session name:
tmux new -s myname
# move to home directory
cd ~
# move the .zsh_history file into another .zsh_history_bad file
mv .zsh_history .zsh_history_bad
# write all printable strings into a new .zsh_history file
strings .zsh_history_bad > .zsh_history
import cv2 | |
def add_gaussian_noise(X_imgs): | |
gaussian_noise_imgs = [] | |
row, col, _ = X_imgs[0].shape | |
# Gaussian distribution parameters | |
mean = 0 | |
var = 0.1 | |
sigma = var ** 0.5 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import imageio | |
from maxflow.fastmin import aexpansion_grid | |
# Loading image | |
I = imageio.imread('imageio:astronaut.png') | |
I = I[:,:,1]/I.max() |
Date : 21 / 04 / 2019
I thought to write this gist due to the difficulties which I had to face when installing Oracle Java Development Kit to my Arch Linux OS. At this moment, AUR links not working for installations because of direct downloads are no longer available. You have to create an Oracle account, download, and put in with the PKGBUILD.
This solution will work with Arch Linux and Manjaro.
Now let's do it.
Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct
#!/bin/bash | |
#SBATCH --partition long | |
#SBATCH --account jerin | |
#SBATCH --nodes 1 | |
#SBATCH --ntasks 1 | |
#SBATCH --gres gpu:4 | |
#SBATCH --cpus-per-task 40 | |
#SBATCH --mem-per-cpu 2G | |
#SBATCH --time UNLIMITED | |
#SBATCH --signal=B:HUP@900 |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.