Month: September 2017

  • VirtualDog Tutorial PluralSight

    Hey everyone, Just taking a quick look at Jasmine with Typescript and found a decent looking tutorial on PluralSight with a sample app called VirtualDog. Attempting to run the following command resulted in an error on Windows 10: npm run bower-typings > concurrently “bower install” “typings install” [0] ‘bower’ is not recognized as an internal…

  • Compass Only Works on Pins 10 and 11 – Arduino/Software Serial

    Hey everyone, A bit of a confusing issue I ran into today. I couldn’t get my compass to work on any pins other than 10 or 11. Thankfully, there’s a fairly logical explanation: Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10,…

  • UnicodeDecodeError on RaspberryPi – Python

    Hey everyone, I ran into the following error while trying to read serial input on a Raspberry Pi hooked up to an Arduino via USB: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0za8 in position 0: invalid start byte The solution was as follows: #buffer_string = ser.read().decode(‘utf-8’) buffer_string = ser.read().decode(‘utf-8′, errors=’replace’) Thanks to the following link:…

  • Exited with code 9009 – Visual Studio Build

    Hey everyone, I ran into the following error today while attempting to build a solution: combiner exited with code 9009 It apparently means that a file couldn’t be found. The solution was to simply restart visual studio. I’d been manually adding them to the directory and this is apparently a common cause. See the following…

  • Arduino GPS – Ublox NEO-M8N Flight Controller GPS w/Protective Shell for PIX PX4 Pixhawk

    Hey everyone, I recently purchased this GPS unit on ebay: http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItemVersion&item=272492032614&view=all&tid=1865626885017 Unfortunately, I didn’t do a lot of research before getting it and had a bit of trouble finding any spec sheets or documentation. Just in case anyone else has the same problem I’ve listed out everything I needed to get it running below. This…

  • TensorFlow – KeyError: “The name ‘import/input’ refers to an Operation not in the graph.

    Hey everyone, Just another small error I’ve run into while testing out Tensorflow’s label image example (Tensorflow/tensorflow/examples/image_retraining/label_image.py): KeyError: “The name ‘import/input’ refers to an Operation not in the graph. This one thankfully doesn’t seem to be my fault. In label_image.py change the following lines: # Line 78-79 input_layer = “input” output_layer = “InceptionV3/Predictions/Reshape_1” # Change…

  • Tensorflow – No such file or directory

    Hey guys, Just a quick post on how to resolve an error I came across while testing out tensorflow: Traceback (most recent call last): File “C:UsersChris-PCDesktopimages-to-useattempt2tensorflowexampleslabel_imagelabel_image.py”, line 112, in graph = load_graph(model_file) File “C:UsersChris-PCDesktopimages-to-useattempt2tensorflowexampleslabel_imagelabel_image.py”, line 30, in load_graph with open(model_file, “rb”) as f: FileNotFoundError: [Errno 2] No such file or directory: ‘tensorflow/examples/label_image/data/inception_v3_2016_08_28_frozen.pb’ All you need…

  • ImageMagick Commands

    Hey guys, Just a couple of useful imagemagick commands for preparing images: Convert all images in a directory to jpg magick mogrify -format jpg * Resize all images in a directory magick mogrify -resize 360×360 *

  • Rename all files in a directory with Sequential Numbers

    Hey guys, Just a batch script I came across that allows you to rename all files in a directory with sequential numbers. Really handy for things like tensorflow. All you need to do is create a batch file in the directory containing the following: @echo off setlocal EnableDelayedExpansion set i=0 for %%a in (*.jpg) do…

  • Using FFMPEG to create an image for every second of a video

    Hey guys, Just a quick command I found on stackoverflow to take a still image/thumbnail out of a video every second: ffmpeg -i video.avi -r 0.01979 -f image2 output_%05d.jpg Thanks to this stackoverflow post: https://stackoverflow.com/a/14710478/522859

Create a website or blog at WordPress.com