Snippet: Magento - Using OR and LEFT JOIN in addAttributeToFilter

I'm still pretty new to Magento, and am learning more about it every day. I've been trying to learn all I can about internals such as managing collections & recently stumbled on trying to filter a collection by two attributes. I wanted to build a list…

Snippet: Symfony & Propel - Queries with SQL functions

This is a super short snippet that I ALWAYS forget how to do! Often I want to build more complex where clauses with Propel Criteria [http://www.propelorm.org/wiki/Development/Criteria] which use SQL functions such as UCASE, LCASE, LEN and the date functions DAY, MONTH and YEAR. This…

Future of Web Design London 2010: My thoughts two months on...

Technology conferences are fun, an enormous amount of extremely geeky fun. Most folks can't wait to get home and blog about all the wonderful things they've seen, heard and learnt over the duration of the conference. Those reviews are great insights into what works and what…

Getting Rid of Non Breaking Spaces (&nbsp)

Have you ever tried to parse, process or preg_replace some HTML? Ever tried to do it when the HTML is UTF-8 encoded? Getting rid of white space can be tricky, here's a few tricks I've learned. I was playing around with debugging some HTML output…

Snippet: Symfony Forms - Accessing the Object in a Form

Perusing my Google Analytics data shows up some interesting results. For starters the top search query which sends people to my blog is "symfony accessing object in a form". This has been consistent for several months, but there is no article on my blog which answers that question.…

Upgrading old WordPress installs - not as scary as you think!

Earlier this week I received an email requesting some help with a WordPress install that had been hacked. The site was almost 3 years old and was still running WordPress 2.2. It was quite funny getting to see and play with retro WordPress again, but it had to go.…

Snippet: Wordpress Admin - Tidy Dashboard Widgets By Role

Recently I worked on a Wordpress site where I wanted to be able to customise the dashboard for different user roles. Wordpress has the default roles [http://codex.wordpress.org/Roles_and_Capabilities] of administrators, editors, authors, contributors and subscribers. It's not too much to assume you might…

5 Top Resources for Twitter Success

I've been experimenting with developing my Twitter account for the last year or so, and this week I published 5 simple steps for getting from beginner to a successful Twitterer:Getting Started with Twitter: 5 Simple Steps [http://www.enginecreative.co.uk/blog/getting-started-with-twitter-5-simple-steps.html] . The article is…