An Arizona UFO
January 31, 2013
One year ago today I wrote about my encounter with a St Augustine monster. In recognition of that suspicious event, I present a snapshot of a UFO that shadowed our car along portions of Route 66 in Arizona.
One year ago today I wrote about my encounter with a St Augustine monster. In recognition of that suspicious event, I present a snapshot of a UFO that shadowed our car along portions of Route 66 in Arizona.
My friend Bill told me about the nifty site Ironic Sans, and from there I discovered this post about the short-synonym service called Thsrs. As a word-guy, this really tickles me. So I quickly whipped up a Keyboard Maestro macro to make look-ups easier. The macro is illustrated below or you can downloaded at this gist.
Yes, there's probably some nifty Javascript bookmarklet way of doing this. But my hammer is Keyboard Maestro and I want to be able to use Thsrs from any app, so this suits me better. (Not that I wouldn't like a JS solution, too.)
An easy way to control an appliance--perhaps a heat lamp, dog bed, or cooling fan--based on the room temperature is to use a Thermo Cube. Each model has a certain built-in temperature range for when it turns on or off. (Be sure to buy the one that makes sense for your application.)
This Keyboard Maestro macro is a key part of my blogging workflow. It retrieves the title of a webpage, massages the title to correct capitalization, then puts the title and URL in a fully-formatted href.
For example, let's say you want to link to the webpage "Is your documentation meant to be read?" at http://www.g2meyer.com/usablehelp/singles/709.html. Simply copy the URL to the clipboard, then invoke the macro (I use the Keyboard Maestro menu bar item for this.)
Now switch to the document where you want to use the link and paste the clipboard. The results will look like this:
< href="http://www.g2meyer.com/usablehelp/singles/709.html">Usable Help - Is Your Documentaton Meant to Be Read?< /a>
Notice that the title of the webpage has been changed to Title Case. Keyboard Maestro handily has built in support for John Gruber's fancy-schmancy scheme for doing this quite intelligently.
The macro is fairly straightforward. The meat of it uses Keyboard Maestro's variable support and a Python script to fetch the HTML source from the site and pull out the < title >
tag. It does this in a very old-school fashion because I didn't want to require the use of any modules that aren't part of a standard Python installation.
The collapsed "Execute Shell Script" step contains the Python script, which you can download from gist.
If this macro tickles your fancy, check out Nothing Up My Sleeve: Keyboard Maestro: Wrap URL.
Update: Keyboard Maestro v6.0 makes this a lot easier.
#include <Esplora.h> //Press the Down button on joypad to display current temperature //The red LED blinks the tens value, the blue blinks the ones value. Green indicates end. //example: red red red blue blue green is 32 degrees (F) //the light sensor is used to dim the LEDs in a brightly lit room //copyleft Jan 01 13 www.gordonmeyer.com // delay used to blink lights int flashdelay = 250; void setup(){ } void loop() { if (Esplora.readButton(SWITCH_DOWN) == LOW) { getTemp(); } } void getTemp() { int theTemp = (Esplora.readTemperature(DEGREES_F)); // Serial.print(theTemp); int theTens = (theTemp/10); for (int i = 0; i < theTens; i++) { flashRed(); } int theOnes = (theTemp%10); Serial.print(theOnes); for (int i = 0; i < theOnes; i++) { flashBlue(); } delay (flashdelay); int brt = (Esplora.readLightSensor()/10); Esplora.writeGreen(brt); delay (flashdelay); Esplora.writeRGB(0,0,0); } void flashRed() { // uses room brightness to set LED level int brt = (Esplora.readLightSensor()/10); // Serial.println("bright "); Serial.print(brt); Esplora.writeRed(brt); delay (flashdelay); Esplora.writeRGB(0,0,0); delay (flashdelay); } void flashBlue() { int brt = (Esplora.readLightSensor()/10); Esplora.writeBlue(brt); delay (flashdelay); Esplora.writeRGB(0,0,0); delay (flashdelay); }