Archive for September, 2007

Date formatting in Smarty

Wednesday, September 26th, 2007

If you use the so called, German date format (day of month. month. year) you may have wondered how to achieve it with Smarty – without the leading zeroes for month.
(more…)

How to report messages to user

Wednesday, September 26th, 2007

In the course of executing a program you need to report errors / success messages to the user. But you don’t want to mix your code with HTML, right? (A quick explanation on separating presentation from business / data logic.)

So here’s what I use:
(more…)

Great tool for sharing pieces of code

Wednesday, September 26th, 2007

Ever needed to send someone a piece of code in an e-mail to illustrate your thinking?

Pastebin does just that. You paste your code, choose what language you use to get the right syntax highlighting and post it.

Then your colleague makes his changes and posts them back. With one click you can see his version, your version and the difference, just like in this example:

http://pastebin.com/pastebin.php?diff=f3bd4dcb6