Convert Image for Web With Automator Workflow Using ImageMagic

I have a website where I always upload image files with a standard image size, quality level and unsharp. Instead of loading Photoshop or another image editor I wrote a simple Automator workflow to convert the file with my specified parameters using ImageMagic. Requirements: Automator, ImageMagic Workflow Breakdown Ask for Finder Items – this tells Finder to give you a …

Install and Run Homebrew from Home Directory

Homebrew recommends being installed in /usr/local/; This is not always possible for systems that are managed in corporate environments where permissions will restrict user ownership of Homebrew. If a user doesn’t own Homebrew they will not be able to add packages or update. The following is a super simple way to run Homebrew from a users home directory. Note if …

Safari Bookmarks Lose Sort, Become Unsorted or Revert to Previous State After Running SafariSort

Problem SafariSort sorts all bookmarks but they are later reverted to their previous state. Bookmarks do not hold their sorted order after editing or adding bookmarks. Background When enabled iCloud syncing keeps all your Apple applications up to date with recent changes so you have the updates on all your computers and iOS devices. This wonderful cloud syncing is great …

Block Access to Websites on a Mac by Modifying /etc/hosts

It’s easy to block incoming connections on a Mac with the builtin firewall. Blocking outgoing connections to websites from your browsers or applications is a little more difficult. You could use an app like LittleSnitch but that is honestly overkill. If you are comfortable with using Terminal then you can simply edit your hosts file to prevent your system from …

PHP Form Select with Date Range

Create a form select with a range of years automatically with PHP. The above code will output the following: <select> <option value=’2008′>2008</option> <option value=’2009′>2009</option> <option value=’2010′>2010</option> <option value=’2011′>2011</option> <option value=’2012′>2012</option> <option value=’2013′>2013</option> <option value=’2014′>2014</option> <option value=’2015′>2015</option> <option value=’2016′>2016</option> </select>