Dreamhost and procmail – parsing your mail with a script

I have a Dreamhost account and have done for some while. Typically I’m happy with their service, but yesterday was the first real frustration I had with them. I wanted to use procmail to send email to a script for processing. I was sure I had done this before on Dreamhost, but couldn’t seem to get it to work in the wee hours of the night. So after a quick email to support asking if it was possible, they came back with this response:

Unfortunately this is not possible. We do
not offer or support any type of email to script functionality on our

And this pretty much backed up all the searches I had been doing on line in regards to Dreamhost and using procmail.

Now, where they may not support people doing this, it is my pleasure to tell you that it is possible! And here’s how you do it…
Continue reading “Dreamhost and procmail – parsing your mail with a script”

Did you like this? Share it:

Using CSS3 sucks (right now, but I’m sure it’ll get better)

Am I the only one to think that using a number of aspects of CSS3 right now really sucks? The potential it offers is great, but does anyone really think doing something like this for a gradient is a productive use of time?

    background: #9880cc; /* Old browsers */
    background: -moz-linear-gradient(top, #9880cc 0%, #bab3cc 93%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9880cc), color-stop(93%,#bab3cc)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #9880cc 0%,#bab3cc 93%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #9880cc 0%,#bab3cc 93%); /* Opera11.10+ */
    background: -ms-linear-gradient(top, #9880cc 0%,#bab3cc 93%); /* IE10+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9880CC', endColorstr='#BAB3CC',GradientType=0 ); /* IE6-9 */
    background: linear-gradient(top, #9880cc 0%,#bab3cc 93%); /* W3C */

Once upon a time, not that long ago, the trend setters/leaders of the web development community would have lynched you if you so much as dared to use a proprietary tag, be it in the css or the html. Now they’re actively encouraging the above kind of usage?! It’s ridiculous! Firefox, Chrome, Safari, IE and Opera all require different proprietary rules, and then you have the W3C recommended way and then the fallback for older browsers.

A Transform in CSS3 is just as bad:

-moz-transform: scale(0.8) rotate(deg) translate(px, px) skew(deg, deg);
-webkit-transform: scale(0.8) rotate(deg) translate(px, px) skew(deg, deg);
-o-transform: scale(0.8) rotate(deg) translate(px, px) skew(deg, deg);
-ms-transform: scale(0.8) rotate(deg) translate(px, px) skew(deg, deg);
transform: scale(0.8) rotate(deg) translate(px, px) skew(deg, deg);

And this time it’s not the rule value that’s different for each, it’s the rule name!

I think HTML5 (well, XHTML5 for me – I do love a properly closed tag!) and CSS3 are great, don’t get me wrong, and I think we’ve already seen a lot of examples of wonderful sites and demos created using them. But surely how it’s getting there and the asinine number of rules we have to put in for each browser is a major step backwards in what people were trying to achieve only a few years ago? (Ie, a nice compliant standard way of doing things.)

Incidentally; there are a couple great sites that help out doing fancy new CSS3 stuff:

The Ultimate CSS Gradient Generator
CSS3 Generator

Using sites like those can save a bit of sanity.

Did you like this? Share it:



Usually I’m a total wallflower at conferences, gravitating to only the people I know. This time round I’m trying to change that and speak to people, ask speakers questions, and all that.

Right now, though, I’m enjoying dinner. 🙂

Did you like this? Share it:

PHPNW Conference 2010

Going to be travelling to the PHPNW Conference today (it’s tomorrow, but I don’t fancy catching the stupidly early train to get there on time), but going over the schedule is a pain… There are just too many good talks! How can I possibly go see them all?! The 11:15 time slot is easy, that’ll be Rob Allen’s talk on ZF 2 – we use it so much at work now that it’d be crazy to not find out what’s coming and how this may affect what we’re currently doing.  Same with the  Michelangelo van Dam talk on unit testing with ZF.  But the 12:15, 15:00 and 16:15 talks?  I have no idea what to choose!  Juozas Kaziukena’s Optimizing Zend Framework might be worth while, but then again, is it all about ZF1 and how much will be relevant for ZF2?  The HipHop talk by Scott McVicar would be interesting. I can’t see it being deployed at my work, should still be a good talk… I’m liking the sound of the Database version control without pain by Harrie Verveer as well!  And that still leaves me with two other time slots to decide on… Sheesh!

The agony of choice, eh? 😉

Did you like this? Share it:

Keeping Zend Studio’s version of Zend Framework in sync with Zend Server CE (on Windows)

Today I updated my install Zend Server CE.  I have to say that the ease of installing PHP, Apache and MySQL with Zend Server CE is amazing, and then configuring PHP’s extensions and directives with the provided interface is simply a dream!  (Really wish I could afford the full Zend Server, but that’s another matter…)

One thing that irked me, though, was that now my Zend Studio’s version of Zend Framework was different.  That doesn’t seem like a big problem, but I use the include path for my projects and always have ZF on there, which allows me to take advantage of the auto complete and so on.

My first thought was to use a symbolic link to point form the Studio’s folder to the Server CE folder…  But wait, I’m using Windows 7 – surely something as handy as a symbolic link can only be used on Linux machines?  I can understand why you’d think that, but did you know that you can create symlinks on Windows as of Vista?  Oh yes, you read correctly, my friend!  The command to do that is:

mklink /D \Path\To\SymLink \Path\To\Original

So for me, it was a case of doing:

mklink /D "ZendFramework-1" "C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework"

from within my Zend Studio folder, which happened to be:

C:\Program Files (x86)\Zend\Zend Studio - 7.1.1\plugins\org.zend.php.framework.resource_7.2.0.v20100324-1300\resources

I rebuilt my projects and lo-and-behold, a new version of ZF for my projects, and one that’ll always match with what Zend Server CE thinks I’m using. 🙂

Did you like this? Share it:

HTPC build!

A while ago my wife asked me if it were possible to remove all the DVDs we had on a couple shelves and put them in the loft and ‘somehow’ put them on to the computer so we could watch the movies…  naturally my mind went straight to building or buying a media centre/HTPC.  After looking around I found some nice small systems, such as the systems by Acer or Zotac.  However, they either didn’t come with a blu-ray player, or didn’t have room in the case to add to in the future (such as adding a tv tuner card or similar).  So after a long while, I finally decided I may as well just build the darned thing!  (OK, so it wasn’t much of a push that I needed to buy lots of computer components and build a new PC…)
Continue reading “HTPC build!”

Did you like this? Share it:

New baby!

Welcoming to the world my lovely little daughter, Rozalynd. Born on the 17th March and weighing in at 6lb 2oz. Apparently, I didn’t learn my lesson the first time and thought more kids and less time to code would be a good thing… 🙂

Did you like this? Share it: