Blog Archives

Adding Entity Wrapper Class from Field Value using Display Suite

Sometimes as a developer you need to provide your Drupal authors with the ability to choose different variations of a particular content object. For example, imagine you have a Callout paragraph bundle and you want the author to choose between a Dark or a Light colorscheme; if the

Tagged with: , , , ,
Posted in Tech Tips

Backing up a File Before Overwriting It (in Drupal 7)

I’m communicating with a 3rd party SOAP API to pull some data into a CSV file. The CSV file will be used by Feeds and/or Migrate so it’s important to have the file named exactly the same for each run. I

Tagged with:
Posted in Tech Tips

Triggers in iTerm – Watching For Specific Strings

I was recently performing a git-add in patch mode (  git add -p ) as I normally do, and realized there were a few lines I needed to make sure I didn’t commit. These lines were sandwiched between other lines that I did want

Tagged with: , , , , ,
Posted in Development, Tech Tips

Microphone Enable/Disable with Alert – Keyboard Maestro Macro

In the past I’ve used Shush to achieve a push-to-talk or push-to-silence setup on my Mac. It works alright but more often than not I forget which mode I’m in, or whether I’m silenced or not. This leads to awkward

Tagged with: , , ,
Posted in Tech Tips

Random Mouse Distance in Keyboard Maestro

Here’s one way to choose a random item in a select list using just mouse movements and a random number. If you’re trying to do this in a browser there are cleaner ways to do it (javascript, chrome/safari actions, etc.), but

Tagged with: ,
Posted in Tech Tips

Use Keyboard Maestro to Hide Instead of Close an Application

I use SnagIt to capture screenshots. The editor window that appears after you capture takes a few seconds to open if the application isn’t running. I realized that, while the capture tools remain open, the editor goes away when I

Tagged with: ,
Posted in Tech Tips

Launch Center Pro actions for Day One

Here are my Launch Center Pro actions for the Day One app on iOS. I’m not here to teach you how to use Launch Center Pro (a huge topic), so if you need to learn that I suggest a lot

Tagged with: , , , ,
Posted in Tech Tips

Keyboard Maestro “Insert text by pasting” Quick Tip

“Insert text by pasting” is faster than “Insert text by typing” (which is rarely necessary in my experience). Unfortunately, using the paste method results in unwanted junk in your clipboard (unless of course this is also your intention). You can insert by

Tagged with:
Posted in Tech Tips

Installing ElasticSearch on Webfaction

You read everywhere that setting up and running elasticsearch is very simple. In fact, it is. There are some hurdles to clear when you’re setting it up on Webfaction, however. These instructions will hopefully provide some guidance.

Tagged with:
Posted in Tech Tips

Automatic Dropshadow and Border on Mac OS X Screenshots

If you’re like me, you take lots of screenshots. I probably average 20 a day. Primarily I use CMD-SHIFT-4 and drag a box around what I want to capture. The result is exactly what I highlighted. Here’s an example: That

Tagged with: ,
Posted in Tech Tips