I’ve been thinking about making a little board game for me and my 2.5 year old boy to play. My thoughts so far are: A dice would mean that one of us could jump too far ahead to make it interesting. Plus Archie can’t count very well. So maybe writting ‘2’ on one side of Continue Reading

I wanted to show an image uploader (using Zend_Form_Element_File) but when the user was editing the image (replacing it) it showed the current image in the form. For some reason ZF devs won’t let you change the view helper for a Zend_Form_Element_File, so subclassing it and changing the view helper don’t work. There is a Continue Reading

BeautifulSoup is a python class that takes HTML and returns a tree of objects. You can then search that tree to find HTML tags (which is pretty mega easy.) Here is a little example that downloads the msn.com web page, parses it using BS and grabs all the LINK tags that are linking to a CSS file: from BeautifulSoup import BeautifulSoup import urllib2url = “http://www.msn.com” request = urllib2.Request(url) Continue Reading

This post is about Zend Framework, sql error reporting. Problem: If your SQL has an error in it, Zend Framework throws a Zend_Db_Statement_Mysqli_Exception, the default exception message is pretty pants and does not show the whole SQL query (it only shows the first 10 characters or so!) Lets fix it so it shows the whole query. I found Continue Reading