How To

  • Beginners guide to blog’s, posts and pages.

    A great way to keep visitors coming back to your website is by having fresh content regularly. There are to many 'static' websites out there that are never updated, or their content is rarely changed.Hours are spent making the site, making it look great, making sure it works correctly, but if the content is old [...]
    feat_wordpress
  • Image Optimisation (with Riot)

    Image optimisation Using images can greatly improve the look and feel of your website. Remember the phrase “A picture is worth a thousand words”… 9 times out of 10, a typical photo or image that hasn’t been acquired from the Internet in the first place, will have a large file size. These days, file sizes [...]
    feat_images
  • Git – managing those remotes

    Just a quick Git usage note to self on this… From time to time a branch will inevitably end up redundant in your history as it is merged into the ultimate target branch (referred to here as live). First checkout your live branch git checkout live To determine candidates to remove. You can find all [...]
    feat_git
  • Remove Dreamweaver Templates

    Taken from this site Handy little regex – \s*<!– (#|instance)(begin|end)[^>]+–>
    feat_dw
  • Enable Core Dumping

    Got an intermittent crash with Apache? If the server is Seg Faulting, you can try the following :- Note – this worked for us using a Centos 5 Server with Apache 2. Read Apache's advice on crashing here: http://httpd.apache.org/dev/debugging.html#crashes Edit the hosts.conf file to enable core dumping This could be the file /etc/httpd/zzzz_YOUR_CUSTOM_CONFIG.conf (our Apache [...]
    feat_apache
  • how not to round your floats…

    Just so I never foget… observe the following test cases – $foo = 8.37*40*0.175*100; echo $foo.' == '.(int)$foo; > 5859 == 5858 $foo = 8.37*40*0.175*100; echo $foo.' == '.round($foo); > 5859 == 5859 I believe that casing to INT will round towards zero as documented in the php docs, I also believe the 5858 number [...]
    feat_generalcoding