First we start by creating a wineprefix and installing our prerequisites from terminal:
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefonts
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7
First we start by creating a wineprefix and installing our prerequisites from terminal:
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefonts
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7
# Program a SAMD21 part with a bootloader using a JLINK / J-LINK | |
# 0a. Wire up your device with SWD & SWC pins to JLINK | |
# 0b. Also wire up Gnd and Power to Gnd & VTref on JLINK | |
# 0c. And separately supply power to device | |
# 0d. Iif you don't have openocd installed, then "brew install openocd" | |
# | |
# 1. Put this file in a directory | |
# 2. Get a samd21 bootloader file.bin and put it in this directory renamed as "bootloader.bin" | |
# 3. Unplug and replug in the JLINK (to reset it) | |
# 4. Then do "openocd -f ./openocd-sams21.cfg" and stand back |
""" | |
Train a neural network to implement the discrete Fourier transform | |
""" | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from tensorflow.keras.layers import Dense | |
from tensorflow.keras.models import Sequential | |
N = 32 | |
batch = 10000 |
from sshtunnel import SSHTunnelForwarder | |
import pymongo | |
MONGO_HOST = "IP_ADDRESS" | |
MONGO_USER = "USERNAME" | |
MONGO_PASS = "PASSWORD" | |
MONGO_DB = "DATABASE_NAME" | |
MONGO_COLLECTION = "COLLECTION_NAME" | |
# define ssh tunnel |
rr
is a great debugging tool. it records a trace of a program's execution, as well as the results of
any syscalls it executes, so that you can "rewind" while you debug, and get deterministic forward and reverse
instrumented playback. it works with rust, but by default if you try it out, it could be pretty ugly when you
inspect variables. if this bothers you, configure gdb to use a rust pretty-printer
rr
is probably in your system's package manager.
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
import numpy as np | |
import tensorflow as tf | |
# N, size of matrix. R, rank of data | |
N = 100 | |
R = 5 | |
# generate data | |
W_true = np.random.randn(N,R) | |
C_true = np.random.randn(R,N) |
import numpy as np | |
import tensorflow as tf | |
# N, size of matrix. R, rank of data | |
N = 100 | |
R = 5 | |
# generate data | |
W_true = np.random.randn(N,R) | |
C_true = np.random.randn(R,N) |