Google Vision API

May 20, 2017 - 1 minutes
I wondered if I could use Google Cloud Vision API in a bot like I use Sikulix today. I created a Google project, created the Google API key, and wrote a quick Java application. Using the annotate image request I retrieved the text from the response. Turns out the GUI application I an trying to automate has a weird font that Google is unable to accurately detect. Tesseract OCR had the same issue with this font so it is not anything lacking with Google’s API. Read more ...

Hugo Workflow

May 20, 2017 - 1 minutes
Here is my workflow for a new blog post using Hugo cd ~/projects/blog.pla1.net hugo new post/name_of_post.md hugo server Open browser to http://localhost:1313/ Edit markup in name_of_post.md in the content/post folder using Atom editor Check local version in browser and repeat until happy ~/deploy.sh This script commits to GitHub and rsyncs local files with my web server. Read more ...

Bash Script - Text to Speech

May 3, 2017 - 1 minutes
Use the Bash script below to speak some text. I like to use this for alarms and completion messages on long running jobs. For example I burn Raspberry Pi thin client images at work which take over 30 minutes to complete. You’ll need to obtain a key to use IBM Watson Text to Speech API. At the bottom of the page is an example audio message uploaded to YouTube. Read more ...

Android Virtual Device Problem

Apr 28, 2017 - 1 minutes
My Android virtual devices were not running in Android Studio 2.3.1 - Ubuntu 17.04 - Intel i3 processor that uses the i915 kernel modules. To troubleshoot the problem I tried running the emulator from the command line. ~/Android/Sdk/emulator/emulator -avd Pixel_XL_API_25 The following error message was at the top of the output. libGL error: unable to load driver: i965_dri.so After some googling I remedied the situation by creating the following symbolic link. Read more ...

Hugo Theme Comparison

Apr 24, 2017 - 1 minutes
Comparing two Hugo themes Hugo Bootstrap v4 Blog vs. Hugo Dusk See screenshots below. I like the looks of screenshot 1. I like the links for Posts and Tags in screenshot 2. Having the tags under the title in screenshot 1 doesn’t add much value for me. Tags are for searching. Having a page that lists all the tags makes more sense. If I could get a tags link and page working in Hugo Bootstrap v4 Blog I would be all set. Read more ...