Category: WebDev & Code

  • Mac OS X Screenshot save to folder (instead of desktop)

    I take a lot of screenshots on my mac.  Sometimes it’s simply the quickest way to save information from a web page or design I’m working on, sometimes it’s because I need to show someone what they should be seeing on their screen when I’m helping them with their computer by email. Taking a screenshot…

  • Rails Sunspot/Solr returning result for single character searches

    I spent 8 hours trying to get this to work. I googled and found lots of people asking the question but no one with a solution, or rather the given solutions wasn’t working for me. 1) rake sunspot:solr:stop 2) Edit the solr/conf/schema.xml file; <fieldType name=”text” class=”solr.TextField” omitNorms=”false”> <analyzer> <tokenizer class=”solr.StandardTokenizerFactory”/> <filter class=”solr.StandardFilterFactory”/> <filter class=”solr.LowerCaseFilterFactory”/> <filter…

  • Backup! (Bye bye TimeMachine, hello Carbon Copy Cloner)

    Executive summary: Stop reading, backup your computer. Done that? Let’s continue. [1] Second Executive summary: TimeMachine on my mac failed, I now use Carbon Copy Cloner. Yes, that cost me £26. Yes, it’s basically rsync (free opensource software I already use) but it’s easier to configure and has other useful features that I decided are…