Apache Deflate Does Not Include application/json

May 24, 2018 - 1 minutes
Discovered using Google Chrome’s audit tool that json was not compressed (gzip). Turns out Apache doesn’t include application/json in the deflate module configuration file. I added application/json to /etc/apache2/mods-enabled/deflate.conf and now JSON is gzipped. The complete file looks like this: <IfModule mod_deflate.c> <IfModule mod_filter.c> # these are known to be safe with MSIE 6 AddOutputFilterByType DEFLATE text/html text/plain text/xml # everything else may cause problems with MSIE 6 AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/json application/x-javascript application/javascript application/ecmascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/xml </IfModule> </IfModule> I am running Apache/2. Read more ...

How to create a Chrome extension on a Chromebook for a custom URL pinned app

Jan 5, 2018 - 2 minutes
Open Chrome on your Chromebook Ctrl-o to open the File Manager Ctrl-e to create a new folder inside the Downloads folder Name your new folder something meaningful Close the File Manager In chrome go to https://editpad.org Copy and paste the JSON text below into Edit Pad. { "name": "#chswx on Twitter", "description": "Charleston Tri-County area weather on Twitter", "version": "1.0.0", "manifest_version": 2, "icons": { "128": "twitter.png" }, "app": { "launch": { "web_url": "https://twitter. Read more ...

Cable Matters USB 3.1 Type-C Dual Slot Card Reader

Dec 31, 2017 - 1 minutes
I like to review photos from my Nikon DSLR camera on a Chromebook and upload them to Google Photos. Unfortunately the Pixelbook doesn’t have a card reader but it does have two USB-C ports. I bought a Cablematters USB-C card reader for $11.99 on Amazon. The reader is plastic but seems solid. The cable appears sturdy. It should last a while. It works well on Android devices and Chromebooks. In this video I demo it with a Pixel 2 phone and a Pixelbook Chromebook. Read more ...

GIFV Links

Jun 18, 2017 - 1 minutes
Today I Learned (TIL): GIFV links are actually MP4 files with the HTML5 video tag and the loop attribute. Here is my attempt at a perfect loop from The Bike Law CCA Regional Crit Championship Walterboro SC June 17 2017. <html> <head> <title>Bike loop</title> <head> <body> <video width="1920" height="1080" muted controls loop video controls autoplay poster="bikeloopposter.png"> <source src="bikeloop.mp4" type="video/mp4"> </video> </body> </html> For more content from the race see my Bike Law CCA Regional Crit Championship Walterboro SC June 17 2017 photo album. Read more ...

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 ...