Monthly Archives: March 2010

On ZF’s Data Models

Michelangelo van Dam wrote a great post on Zend Frameworks data models. A lot of great pointers on how to create referencemaps between models without using any complex ORMs. The data mapper approach is a lot of work but it gives you a lot of great flexibility in the long run. Take a look at

Install wordpress from bash

From day to day i spend a lot of time installing basic things like wordpress, drupal, zend framework and so on. To make it easier for my self i created some scripts that’ll do exactly that for me. This one will install wordpress in your current directory from a selected source. Ill post the rest of my tools later as they need some tweaking.

Force select in bash case statement

This is probably common knowledge but i keep forgetting it so. If you’ve ever wanted to force a user to select an option you might have have noticed that a user can select anything they want in a select statement. A way to get around this is by converting your options in a function and then use the *) to fire the same function again.

Alternative to MacPorts, homebrew

If you’ve ever needed a 3th party app like `wget` or anything like it you should probably take a look at homebrew. Its fast and slick and bound to git. It has all the great features we know from `apt` or `macports`. What more could we ask for?

Some of the things ive used it for the last couple of days is installing and playing with [nginx]( which is an awesome tiny webserver that has a brilliant json like syntax for vhosts.

Blogging from textmate using markdown

One amazing thing about textmate, is that it does so many incredible things! In the last couple of months ive been using a lot of [markdown]( Its such an easy syntax and great for blogging. Textmate has this bundle build in.

Another thing that is already build in is this great blogging tool that’ll let you blog directly from textmate. Simply select the blog bundle with the preferred syntax, in my case `Blog-Markdown`. When you’ve written your blogpost simply hit ctrl + cmd + p and it’ll post to Blogger, WordPress, Drupal or any other platform that supports the `MetaWeblog API`.