ITHCWY: Robert Ellison's Blog

Looking for Catfood Software?

Catfood Software

Catfood Software products including Catfood Earth, WebCamSaver and PdfScan are now distributed from the Downloads page of I Thought He Came With You. For updates on new releases please subscribe to the email list or feed. If you need support please leave a comment here.

Cataract Creek

Cataract Creek

Vernal Equinox 2017

Green Belt

San Francisco Interior Green Belt

Book reviews for February 2017

Stories of Your Life and Others by Ted Chiang

Stories of Your Life and Others by Ted Chiang

5/5

Stories of Your Life was made into Arrival, and it's a great story but just one of many in this book. Only one fell flat for me. Ted Chiang has a thought and then takes it so devastatingly literally that it will take you a while to stop thinking about it.

 

The End Has Come (The Apocalypse Triptych, #3) by John Joseph Adams

The End Has Come (The Apocalypse Triptych, #3) by John Joseph Adams

4/5

A cunning ploy - like most sets of short stories this is a mixed bag. The sting in the tail is that most continue in some form through all three books in the series so you have to read all three (if you have trouble not finishing a story, there isn't an executive order or anything). It's probably more of an investment than the material warrants (I'd have preferred a single and more tightly edited volume). It does however include a new strand of the Wool saga as well as a few other standouts so if you have the time, dive in.

 

Resist Report

Resist Report

My February resolution was to do something to #Resist Trump every day. Here's the breakdown:

Calls to Congress: 77

Non-profits donated to: 15

Failing media subscriptions: 4

Protests attended: 2

Advocacy sites launched and promoted: 1

I'll ease off a bit and try something else in March. But the routine of doing something every day has been really helpful. I've gone from saying I really should do something to actually getting in the habit of actively resisting.

Drone School

DeepCoder

DeepCoder

New Scientist hypes DeepCoder:

"Software called DeepCoder could allow non-coders to simply describe and idea for a program and let the system build it"

Coding is nothing but simply describing an idea for a program. As simply as possible but no simpler. Won't be really useful without an AI product manager.

Corporate Goddesses

Corporate Goddesses

Catfood Weather 2.30

Catfood Weather 2.30

Catfood Weather is a free taskbar based weather forecast app for Windows that includes a seven day forecast and severe weather alerts. It uses National Weather Service data and works for any US location (by ZIP code or latitude and longitude).

This update fixes a problem calling the National Weather Service API, so please install 2.30 if you're using a previous version of Catfood Weather. To get alerts for new releases follow the RSS Feed or sign up to the ITHCWY Newsletter.

Download Catfood Weather 2.30.

(Previously, Previously)

Get an email if your site stops being mobile friendly

Get an email if your site stops being mobile friendly

Google just released an API for the mobile friendly test and so I've whipped up a script to send an alert if a web page violates their guidelines. This will run the test as often as you like and send you an email if it detects a problem. Alternatively if you're not mobile friendly it will keep emailing you until you fix any problems which might be a good motivational tool.

First start a new apps script project in drive and paste in the code below:

var urlToMonitor = '';
var alertEmail = '';
var runTestKey = '';

var runTestUrl = 'https://searchconsole.googleapis.com/v1/urlTestingTools/mobileFriendlyTest:run?key=';

function mobileFriendlyMonitor() {
  try {
    
    var postBody = {
      'url' : urlToMonitor
    };
      
    var options = {
      'method' : 'post',
      'contentType': 'application/json',
      'payload' : JSON.stringify(postBody)
    };
    
    var response = UrlFetchApp.fetch(runTestUrl + runTestKey, options);
    var json = response.getContentText();
    var mobileFriendlyResult = JSON.parse(json);
    
    if (mobileFriendlyResult.mobileFriendliness != 'MOBILE_FRIENDLY') {
      sendEmail('Mobile friendly test failed for ' + urlToMonitor + ', check https://search.google.com/search-console/mobile-friendly for details');
    }
      
  } catch (e) {
    sendEmail('mobileFriendlyMonitor failed for: ' + urlToMonitor + ' with error: ' + e.message);
  }
}

function sendEmail(msg) {
  MailApp.sendEmail(alertEmail, 'Mobile Friendly Monitor Alert on ' + Utilities.formatDate(new Date(), "GMT""yyyy-MM-dd'T'HH:mm:ss'Z'"), msg);
}

There are three variables you need to set, urlToMonitor is the full URL of the page to test, alertEmail is your email address (or whoever needs to be pestered) and runTestKey is the API key for the service. To get this go to the Google API Console, click Enable API, search for 'Google Search Console URL Testing Tools API' and click enable. Then click the Credentials option and generate a browser key.

Once you've configured the script choose 'Current project's triggers' from the Resources menu in apps script and set up a schedule for the mobileFriendlyMonitor() function.