Handling Uploaded file in symfony’s admin generator
When a file is uploaded using sfForm in the admin generator, by default the filename that's used is a random string, which can look bad in URLs. If you want to change this, it's not immediately obvious how - but it is incredibly simple.
Continue readingDate/Time Range Selector Widget for Symfony
I needed to create a date/time widget for use in an sfForm in a symfony project I was working on, and unfortunately there's not currently a widget that I could find to allow this. In this post I show how I solved this problem, creating a widget for selecting a date range, using the jquery date selector from sfFormExtraPlugin.
Continue readingHover to focus in Windows 7
This post details how to get hover to focus without raising the window working in Windows 7. I think the same tweeks will work in other versions of windows, but I've not tried them
Continue readingThe BeBook Neo
I'm not sure what happened to the BeBook 2; it was taken to trade shows, and I've seen photos of it, but it appears Endless Ideas (the company that make the BeBooks) have decided not to go down that route. Instead, it appears there's a new device being released - BeBook have announced the BeBook Neo!
Continue readingBlog now running Wordpress!
I have moved my blog engine from s9y to wordpress. After a lot of time trying to ensure all my old links will work, I've finally put workpress live. Please do let me know if there's any issues you find.
Hopefully I'll manage to get the site re-styled into a more typical pookey.co.uk theme soon too!
Getting started with Glassfish using Maven
In this post I detail simple instructions for installing Glassfish v3 onto Ubuntu (although it will work just as well with Redhat, debian, and anything else). I also show how to create and deploy a simple WAR using Maven.
Continue readingTimico OSS Site Launched, Containing Symfony Plugins
I've launched http://oss.timico.net/ - which is an open source site for Timico. I've added a couple of plugins for symfony already.
-
http://oss.timico.net/svn/oss/symfony/TimicoMarkdownExtraPlugin/
- Includes Markdown Extra and a helper -
http://oss.timico.net/svn/oss/symfony/TimicoSwfChartPlugin/
- A helper for SWF Charts -
http://oss.timico.net/svn/oss/symfony/TimicoWikiPlugin/
- A wiki plugin allowing for custom storage backends (doctrine/propel/xml etc) and swappable renderers. This plugin is very unstable currently, as it is under development. -
http://oss.timico.net/svn/oss/symfony/TimicoServiceContainerPlugin/
- a simple wrapper around sfServiceContainer
Hopefully we'll be mirroring a few projects in need of public mirrors soon, and perhaps adding more of our own code.
Spaghetti Bolognese Recipe
Everytime I go to make a ragu for bolognese I spend ages looking for recipes, and there's so many different ones out there. When I do find one I like, I fail to bookmark it - so this time, I've made my own recipe based off many others, and decided to write it down. I'm doing this mostly for myself, but I thought I'd do it on my blog so that others might find ways to improve it for me. A little disclaimer - I don't know if this is a 'correct' ragu recipe, or if I'm doing things a chef would cry at, I just know I like this recipe - and I hope someone else might too!
Continue readingExtending sfFileCache with Hashed Directory support
Unfortunately, sfFileCache doesn't scale well on certain file systems as it puts all of it's cached files in one location. This simple class adds support for hashing the directory name based on a the name of the item being cached. It wasn't worth a plugin, so I'm pasting it here.
Continue readingSending multipart email from a Task in symfony 1.4
I recently needed to send the result of an action in symfony via email daily. E-mail has changed slightly in symfony 1.3/1.4 - here's how I did it. I really don't like my solution at all, the use of get_partial() from within a Task seems very wrong to me - but I'm in a rush so it will do for now, I'd love to hear feedback
Continue reading