The icinga PPA only provides packages for i386 and amd64. If you're running an ARM-powered device such as the Raspberry Pi or the ODROID U3 (which I use), you have to build the packages yourself. However, compiling the packages is very easy thanks to Debian's excellent build tools and the work of the icinga package maintainer. This howto uses pbuilder which builds in a clean chroot so your original system is not polluted with build packages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env PYTHONIOENCODING="utf-8" python | |
""" | |
A simple neural network learning the XOR function | |
""" | |
import tensorflow as tf | |
sess = tf.InteractiveSession() | |
# Desired input output mapping of XOR function: | |
x_ = [[0, 0], [0, 1], [1, 0], [1, 1]] # input | |
#labels=[0, 1, 1, 0] # output => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import struct | |
import ctypes | |
import compress | |
#compress.py from https://github.com/magical/nlzss/blob/master/compress.py | |
#slightly modified padding | |
def getWord(b, k, n=4): | |
return sum(list(map(lambda c: b[k+c]<<(c*8),range(n)))) |