As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.
Terminology:
transmission-cli
for the torrent client, and nginx
to serve files.seedbox-setup.sh
present in the current directory.import itertools | |
from collections import defaultdict, OrderedDict | |
from math import log | |
def dcg(scores): | |
return sum( (2**score - 1) / log(i+2) for (i, score) in enumerate(scores) ) | |
class Session(object): |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
// Open the developer console of your favorite browser | |
// on the page of your favorite meetup where you're on the wailist (grrr) | |
// and paste this by putting your name | |
// This will actually compute the position in the waitlist div which seems to correspond to the waitlist position | |
var findPosition = function(username) { return $("#rsvp-list-waitlist h5").map(function(i, el) {return {"pos": i, "name": $(el).text()}}).filter(function(i, el) {return el["name"].indexOf(username) >= 0;})} | |
findPosition("my displayed name") // where my displayed name is the name that is displayed for you on the meetup |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
all: monte-c monte-go monte-rs monte-gccgo | |
monte-go: | |
go build montepi.go && mv montepi monte-go | |
monte-rs: | |
rustc -O -o monte-rs montepi.rs | |
monte-c: | |
gcc -std=c99 -O2 -o monte-c montepi.c -lm |
The paper presents some key lessons and "folk wisdom" that machine learning researchers and practitioners have learnt from experience and which are hard to find in textbooks.
All machine learning algorithms have three components: