February 3, 2017

Installing Emby server on the raspberry pi 3 with ffmpeg

Refs:
https://emby.media/community/index.php?/topic/43166-arm-devices-official-instructions/
http://hannes.enjoys.it/blog/2016/03/ffmpeg-on-raspbian-raspberry-pi/
https://akosresch.wordpress.com/2016/05/11/installing-emby-server-on-raspberry-pi-3/
https://github.com/FFmpeg/FFmpeg
https://trac.ffmpeg.org/wiki/CompilationGuide/RaspberryPi

1. Emby server
  1.1 wget -qO - http://download.opensuse.org/repositories/home:emby/xUbuntu_14.04/Release.key | sudo apt-key add -
  1.2 sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/emby/xUbuntu_14.04/ /' >> /etc/apt/sources.list.d/emby-server.list"
  1.3 sudo apt-get update
  1.4 sudo apt-get install emby-server

2. ffmpeg
  2.1 sudo apt-get install git libasound2-dev libfreetype6-dev libomxil-bellagio-dev libmp3lame-dev
  2.2 git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git
  2.3 cd ffmpeg
  2.4 ./configure --arch=armhf --target-os=linux --enable-gpl --enable-mmal --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --extra-libs=-lasound --enable-libmp3lame --disable-debug --enable-shared
  2.5 make -j4
  2.6 sudo make install
  2.7 sudo ldconfig

3. Setting and running Emby server
  3.1 sudo vi /usr/bin/emby-server
  3.2 Change
FFMPEG_BIN=$(command -v ffmpeg)
FFPROBE_BIN=$(command -v ffprobe)
to
FFMPEG_BIN=/usr/local/bin/ffmpeg
FFPROBE_BIN=/usr/local/bin/ffprobe
  3.3 sudo service emby-server start
  3.4 http://localhost:8096 on the web browser

January 25, 2017

Build Caffe on OS X using MacPorts and Anaconda

URLs:
Caffe
MacPorts
Anaconda

1. MacPorts
  1.1 Install MacPorts
  1.2 Open Terminal
  1.3 sudo port selfupdate
  1.4 sudo port upgrade outdated
  1.5 sudo port install gflags
  1.6 sudo port install google-glog
  1.8 sudo port install leveldb
  1.7 sudo port install opencv +python27

2. Anaconda
  2.1 Install Anaconda
  2.2 Open Terminal
  2.3 sudo conda update conda
  2.4 sudo conda install -c conda-forge boost=1.63.0
  2.5 sudo conda install -c conda-forge openblas=0.2.19
  2.6 sudo conda install -c conda-forge protobuf=3.0.0
  2.7 sudo conda install -c conda-forge hdf5=1.8.17
  2.8 sudo conda install -c conda-forge lmdb=0.9.18
  2.9 sudo conda install -c conda-forge snappy=1.1.3
  2.10 sudo conda install -c conda-forge numpy=1.11.3
  2.11 sudo conda install -c conda-forge python-leveldb=0.193

3. Caffe
  3.1 Download Caffe source code
  3.2 Extract zip file and move to Caffe folder
  3.3 Open Terminal
  3.4 cp Makefile.config.example Makefile.config
  3.5 Modify Makefile.config file
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1

# Uncomment if you're using OpenCV 3
OPENCV_VERSION := 3

# BLAS choice:
BLAS := open

# NOTE: this is required only if you will compile the python interface.
# We need to be able to find Python.h and numpy/arrayobject.h.
# Anaconda Python distribution is quite popular. Include path:
# Verify anaconda location, sometimes it's in root.
ANACONDA_HOME := /Users/maninara/anaconda2
PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
                  $(ANACONDA_HOME)/include/python2.7 \
                  $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include

# We need to be able to find libpythonX.X.so or .dylib.
PYTHON_LIB := $(ANACONDA_HOME)/lib

# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /opt/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /opt/local/lib

# N.B. both build and distribute dirs are cleared on `make clean`
BUILD_DIR := build
DISTRIBUTE_DIR := distribute

# enable pretty build (comment to see full commands)
Q ?= @
  3.6 sudo make all
  3.7 sudo make pycaffe

July 21, 2016

Pokemon Go Individual Value Calculator (Last updated Feb 28 2019)


Pokemon Name:
CP:
HP:
Stardust for power up:
Mon Lvl:





Equation ref:
https://www.reddit.com/r/TheSilphRoad/comments/4tbp3r/find_your_hidden_iv_scores_determine_which_ones/
https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_National_Pok%C3%A9dex_number