z, ? | toggle help (this) |
space, → | next slide |
shift-space, ← | previous slide |
d | toggle debug mode |
## <ret> | go to slide # |
c, t | table of contents (vi) |
f | toggle footer |
r | reload slides |
n | toggle notes |
p | run preshow |
Once upon a time at
an immediate side effect
(Python)
import time
import socket
def collect_metric(name, value, timestamp):
sock = socket.socket()
sock.connect( ("localhost", 2003) )
sock.send("%s %d %d\n" % (name, value, timestamp))
sock.close()
def now():
int(time.time())
collect_metric("meaning.of.life", 42, now())
(Clojure)
(import [java.net Socket]
[java.io PrintWriter]))
(defn write-metric [name value timestamp]
(with-open [socket (Socket. "localhost" 2003)
os (.getOutputStream socket)]
(binding [*out* (PrintWriter. os)]
(println name value timestamp))))
(defn now []
(int (/ (System/currentTimeMillis) 1000)))
(write-metric "meaning.of.life" 42 (now))
[ demo time ]
Nurturing conversation with data
ville.svard@agical.com | @villesv
Big Brother Noc Concerns Blunt tools Gather round Thirst Confidence Behaviour Design Testing Start monitoring Demo Time
Leonard Axelsson | @xlson
The team at Entraction (IGT)
Mårten Gustafson