Sinan Midillili

This is an archive for myself really.

Read this first

Installing OpenCV 3.0.0 with python 2.7.9 into a virtualenv on Mac OSX without homebrew

Its pretty easy to install openCV to your machine or vagrant box but its not as easy to install onto your virtualenv without brew. I enjoy brew, it has helped me tremendously and I’ve nothing against it. But I also like to have control over what I compile and where I place it.

Tested on :

  • Yosemite
  • El Capitan


  1. Install pip, virtualenv and activate the current environment as that new env;

    $ sudo easy_install pip
    $ pip install virtualenv
    $ virtualenv env
    $ source env/bin/activate

    throughout this post dont deactivate your virtual env

    Install numpy dependency

    (env)$ pip install numpy
  2. Download opencv here and unzip it. For this tutorial this is v3.0.0.

    (env)$ cd /path/to/your/opencv-3.0.0
    (env)$ mkdir release
    (env)$ cd release

Continue reading →

Logitech K810 bluetooth keyboard

Connecting your logitech K810 bluetooth keyboard to your ubuntu PC and persistently retain the connection is a cumbersome process. This method automates the repairing of the K810.


You should first make sure hidd is installed. Its deprecated but worked best for me. I then checked it with blueman because the default bluetooth manager did not help me at all.

sudo apt-get install bluez-compat blueman

Acquire the keyboard and files from

Edit so your bluetooth mac address is filled in and place the files as /etc/ and /etc/init.d/keyboard and make them executable.

sudo chmod +x /etc/init.d/keyboard /etc/

If you want to connect manually then just;

sudo /etc/

Thats it. Next time you reboot you should be able to connect the keyboard if the keyboard is in...

Continue reading →