Password confirmation using Zend Form and Validators

A while back i needed a password confirmation field for my users. I looked and found this neat little snippet. I cant remember who created it originally so i cant give credits to the person but its quite easy to use. Just add this to your library and create a new validator object like this.

This would be in your form where you want to have password confirmation.

Posted in Uncategorized | Tagged , , , | 8 Comments

I Kill Giants

I Kill Giants by Joe Kelly and Jm Ken Niimura is so awesome. I got the first issue about 2 years ago and read it through very quickly. I was hooked! -Unfortunately i was unable to get the rest of the issues here in Denmark so i had to wait for a collection. Now its finally here and ive read the hole thing in about a day. Its 6 issues together with some behind the book stuff.

If you can get this one please do so! Its fantastic. Its about this girl who gets picked on at school. She doesnt have many friends and play DnD where she is the dungeon master. As the title says, she kills giants!

Posted in Uncategorized | Tagged , , | Leave a comment

Bioshock 2 wallpaper

Even though i still think bioshock 2 sucks – i love this wallpaper! Click to get the full 1920×1200 size of pure awesome! I hope they’ll make that movie soon. It fits so well…

Posted in Uncategorized | Tagged , | Leave a comment

Mustache for php

Mustache 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!

Posted in Uncategorized | Tagged , , | 1 Comment

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

Posted in Uncategorized | Tagged , , , | Leave a comment

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:

Posted in Uncategorized | Tagged , , , | Leave a comment

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.

Posted in Uncategorized | Tagged , , , | Leave a comment

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.

Posted in Uncategorized | Tagged , , | Leave a comment

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.

Posted in Uncategorized | Tagged , , , , | Leave a comment

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.

Posted in Uncategorized | Tagged , , | Leave a comment