package playne

imports "programmer"

Senior Bug Developer

  • mysqldump and non-latin characters

    So today we had an issue where transferring a MySQL database from a development server to a production server caused the text on some pages to have weird characters where apostrophes should have been. My initial thoughts of conversion between character sets was right on the money, but the fix was a little weird. You…

  • wvproxy.com weirdness

    So – what is wvproxy.com? it is proxy site of a company called web visible. What do they change? I did a wget of a website and then the website with .wvproxy.com appended and then a recursive diff against those two resulting folders. The changes I saw were URLs in <a> tags and img src…

  • iSCSI and windows 7 home premium backups

    So my new laptop decided to let me know to that I should setup some backups to protect my data. I was somewhat disappointed when I was not able to backup to a network target so I went in search of an answer. I found my answer in iSCSI. I setup my linux server as…

  • The case of the misbehaving wp e-commerce price sort

    So we had an interesting issue where sorting product by price was not working correctly for wp e-commerce products. The sorting was happening but MySQL was sorting the wp-postmeta.meta_value as a string, so 12.95 was coming AFTER 123. The solution is nice and simple $query->set(‘orderby’,’meta_value_num’); $query->set(‘order’,’ASC’); This way the MySQL does this: was: ORDER BY…

  • beware the trailing slash…

    So, we had an interesting issue with wordpress plugins not using the correct path, so we had busted URLs for their resources. for example: <img src=’http://example.com/wp-content/plugins/var/www/example.com/htdocs/wp-content/plugins/myplugin/logo.png’ alt=’plugin logo’/> Now, this is obviously ideal since the resource was not being loaded (bad mkay). The fix is only 1 character believe it or not. Removing the trailing…

  • Handy Linux Tips: diff recursive compare on folders

    Handy dandy tip to compare two project folders to see which files are different.

  • Donut Cake

    Donut Cake FTW

  • Handy grep command for svn

    To quickly search through all the files in a project and not the .svn folders, here is a simple grep command to get you there. grep -R –exclude-dir=”*/.svn*” PATTERN *

  • Night Photo Shoot with Luke 2011-06-25

    So after our evening sunset shoot and a hearty dinner, Luke and I headed out into Albany in search of some good night photo spots. #1 was down in the ANZAC Peace Park #2 was at the Residency Museum #3 was at the lookup just up from the cadet parade ground

  • Sunset Photoshoot with Luke 2011-06-25

    Luke and I went down to the Lower King bridge to take some photos and video of the sunset last Sunday. Here is a selection from the that shoot