[Mustache](http://github.com/bobthecow/mustache.php) is an awesome template syntax and while I was working on my own implementation, this guy _bob the cow_, beat me to it. It looks great and I’m looking forward to play with it!
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 http://www.dragonbe.com/2010/01/zend-framework-data-models.html
Zend Framework url view helper
I had a problem with some urls including the paramaters from the url because i used the `Zend_View_Helper_Url`. So just a quicktip is, add the third param `$reset` which resets the url. So you would end up with something like this:
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](http://nginx.org/) 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](http://daringfireball.net/projects/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`.
Mixing MooTools class with jQuery
http://ryanflorence.com/object-oriented-jquery-with-mootools-pigs-take-flight/ this is pretty fucking awesome! I thing i know what im spending my weekend doing! Brilliant work