Ian P. Christian's Personal Blog Random witterings from pookey

14Jan/100

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 reading
Filed under: geek, java Continue reading
4Jan/101

Timico 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.

Hopefully we'll be mirroring a few projects in need of public mirrors soon, and perhaps adding more of our own code.

Filed under: geek, symfony 1 Comment
28Dec/096

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 reading
21Dec/090

Extending 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 reading
Filed under: geek, symfony Continue reading
15Dec/090

Sending 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
Filed under: geek, php, symfony Continue reading
12Nov/093

Embedded forms using Javascript with sfForm

I wanted to create a form that allowed me to dynamically add sub-forms via JS, without round-trips to the server. I had a bit of a google, but failed to find much of use - so I wrote my own. This article contains my code for a proof of concept, and a brief description of what it does. It is proof of concept, and done as an example, so code isn't done perhaps as I might do in a real configuration, but I hope it provides help to others.

Continue reading
Filed under: geek, symfony Continue reading
10Oct/0912

The BeBook Mini

I've recently got a BeBook Mini, and thought I'd take a little time to upload some pictures and write a few words.

Continue reading
Filed under: bebook, geek Continue reading
18Aug/099

PHP workflows – ezComponents

Workflows are a useful tool to help manage business processes. In this post I take a look at the workflow engine of eZ components, which was developed by Sebastian Bergmann. In this post, I introduce the basics of the workflow engine, and will expand on it's usage in future posts.

Continue reading
Filed under: geek, php Continue reading
15May/090

Filtering Postini tagged mail with Sieve

The headers Postini's anti-spam system adds to emails are quite hard to filter on, as you need to compare part of one header to part of another. Here's a little snipped that works with dovecot 1.2's sieve implementation. I don't actually use this myself anymore, but I'm posting it here for anyone else struggling with the problem.

Continue reading
31Mar/093

sfServiceDefinition – a brief introduction

Fabien has already introduced the symfony service container, and will be shortly releasing a post covering more of it. I was keen to get my hands dirty, so I've dived into the code and got a quick example working.

Continue reading
Filed under: php, symfony Continue reading