Install postgresql-9.4
$ sudo apt-get install postgresql-9.4
Then psql
version should be 9.4.x
$ psql --version
import pyfirmata | |
import math | |
board = pyfirmata.Arduino("/dev/ttyACM0") | |
# connect piezo to pin 9 to use PWM | |
SENSOR_PIN = 0 | |
PIEZO_PIN = board.get_pin('d:9:p') | |
it = pyfirmata.util.Iterator(board) |
$ wget --no-check-certificate -P /tmp http://flydata-rpm.s3-website-us-east-1.amazonaws.com/patchelf-0.8.tar.gz | |
$ tar xvf /tmp/patchelf-0.8.tar.gz -C /tmp | |
$ cd /tmp/patchelf-0.8 && ./configure && make && sudo make install | |
$ sudo yum install -y blas-devel boost-devel lapack-devel gcc-c++ cmake python-devel git | |
$ git clone https://github.com/davisking/dlib.git | |
$ cd dlib/python_examples/ | |
$ mkdir build && cd build | |
$ cmake -D USE_SSE4_INSTRUCTIONS:BOOL=ON ../../tools/python | |
$ cmake --build . --config Release --target install |
FILES=*.rst | |
for f in $FILES | |
do | |
filename="${f%.*}" | |
echo "Converting $f to $filename.md" | |
`pandoc $f -f rst -t markdown -o $filename.md` | |
done |
$ sudo yum install -y python34 blas-devel lapack-devel gcc-c++ cmake python34-devel git | |
$ alias python=python3 | |
$ wget --no-check-certificate -P /tmp https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2 | |
$ tar xvf /tmp/boost_1_64_0.tar.bz2 -C /tmp | |
$ cd /tmp | |
$ cd boost_1_64_0 | |
$ ./bootstrap.sh --with-libraries=python -with-python=/usr/bin/python3.4m --with-python-root=/usr/bin/python3.4m |
That's legitimately a good default position to hold, however, in this case, the free money is a function of time, and not only charity.
In February 2020, in order to promote Handshake (HNS) to developers, an airdrop was offered to any Github user with more than 15 followers. The Airdrop would give you 4246HNS, at the time worth around at $0.08USD per coin, for a total of $339.68USD, pretty generous!
Today, 4246HNS is worth around $4000 dollarydoos, and there are plenty of github users who haven't claimed theirs.
""" | |
Since Model.fit doesn't support class_weight when using multiple outputs, | |
this custom loss subclass may be useful. | |
Relevant issues: | |
https://github.com/keras-team/keras/issues/11735 | |
https://github.com/tensorflow/tensorflow/issues/40457 | |
https://github.com/tensorflow/tensorflow/issues/41448 | |
""" |