Category: WebDev & Code

  • Useful bash command for ruby programming (find a string within a file including sub directory files)

    Here’s a useful bash command, great for finding the source of any ruby “unintialized constant” errors. steve@Steve-Root-MBP$grep -r ‘Spree::Admin::Application’ . Returns the file name and the line with the matching string, like: ./app/controllers/spree/admin/satisfies_controller.rb: class Spree::Admin::SatisfiesController < Spree::Admin::ApplicationController So, my constant that caused the error is located in app/controllers/spree/admin/satisfies_controller.rb The command is made up like this:…

  • SPF with google site verification

    Ahh, the joys of computing. My plan for a 30 minute task dissolves once more into 3 hours of head scratching. As always, the solution was ridiculously easy. The aim: To add Spam Protection Filter/Sender Policy Framework to our DNS. The problem: Having more than one TXT entry wasn’t possible with my DNS provider (and…

  • My SSL certificate was not working in Safari, but it did in Chrome and Firefox

    or at least, I *thought* my SSL certificate wasn’t working in Safari. When I launched our new company web site last month I thought I’d checked the SSL certificate was working in all browsers. It wasn’t, a customer quickly pointed out it didn’t work in for him and I tracked down a particular issue to…