TensorFlow / Keras Model Predict Error

Unexpected error: Tensor Tensor(“dense_1/BiasAdd:0”, shape=(?, 3), dtype=float32) is not an element of this graph.

To Fix:

Make sure to include the following global:

import tensorflow as tf global graph,model graph = tf.get_default_graph()

And surround the prediction as such:

with graph.as_default(): segment = self.model.predict(features)

Microchip MPLAB X – Link Error: region is full / section overlaps section

While trying to compile some code on MPLAB X I came across this link error, stating that my #pragma config bits were full or sections of them were overlapping other sections.

/Applications/microchip/xc16/v1.11/bin/bin/../bin/elf-ld: Link Error: region FOSC is full (dist/default/production/can_to_serial.production.elf section __FOSC) /Applications/microchip/xc16/v1.11/bin/bin/../bin/elf-ld: Link Error: region FWDT is full (dist/default/production/can_to_serial.production.elf section __FWDT) /Applications/microchip/xc16/v1.11/bin/bin/../bin/elf-ld: Link Error: […]

fatal error: curl/curl.h: No such file or directory | Ubuntu 12.04

fatal error: curl/curl.h: No such file or directory

If you’re missing the curl/curl.h header file, chances are you’re just missing the correct dev package file for the curl library.

sudo apt-get install libcurl4-gnutls-dev

That should fix it.

ROS – rviz X Window System error.

rosrun rviz rviz [ INFO] [1322561467.803234807]: rviz revision number 1.6.7 [ INFO] [1322561467.803351442]: ogre_tools revision number 1.6.2 [ INFO] [1322561467.803374070]: compiled against OGRE version 1.7.3 (Cthugha) [ INFO] [1322561467.946771146]: Loading general config from [/home/alex/.rviz/config] [ INFO] [1322561467.946953292]: Loading display config from [/home/alex/.rviz/display_config] [ INFO] [1322561467.972674791]: RTT Preferred Mode is PBuffer. The program ‘rviz’ received […]

Python – Making Use of Google’s Text To Speech Translation Tool

Text to speech (tts) is a difficult task to get right and there are quite a few packages that show just how hard with their terrible tinny voices, these are also usually only limited to English, which for the larger part than most people would like to believe don’t find it very useful. Nevermind, […]

Python – Writing a ‘Fuzzy Clock’

If you want a clock that’s a little more human, there’s no better way than a ‘Fuzzy’ clock, essentially this converts the time in to a more brain friendly format such as “Twenty past Twelve” rather than 12:22.

Writing a simple fuzzy clock Source Code:



$ python fuzzytime.py It’s 25 […]

ROS: Publishing and Subscribing to Arrays

In ROS (Robot Operating System) it’s really easy to publish variables to be used between nodes running on the same roscore however I was having some difficulty doing the same for arrays. The problem came when there was no real examples of how to use them, so here is a working example of std_msgs/*MultiArray […]

GitHub: Agent admitted failure to sign using the key.

Upon testing my GitHub setup on my home computer I got the following error after inputting this:

ssh git@github.com


Agent admitted failure to sign using the key. Permission denied (publickey).

You’ll need to run:

ssh-add ~/.ssh/id_rsa

Make sure to enter the passphrase for the ssh key you generated.

Kinect Development – Day 1

Head over to this page if you want some tutorials on getting started with the Kinect and libfreenect, I’ll update more as time goes on and I have free time.

I’ve been meaning to grab myself an Xbox 360 Kinect for a while, not because I’m a big motion controlled game fan but for […]

ImportError: No module named …



Traceback (most recent call last): File “”, line 1, in ImportError: No module named Numeric


sudo apt-get install python-numeric



ITraceback (most recent call last): File “”, line 1, in ImportError: No module named ImageTk


sudo apt-get install […]