March 19th, 2008
Say that in an older version of PostgreSQL you had an index like this:
-
CREATE INDEX logTypeDay ON myLog (eventType, date_trunc(‘day’, creationTime));
and now after upgrading to 8.1+ you’re getting:
ERROR: functions in index expression must be marked IMMUTABLE
Read the rest of this entry »
Posted in Database, PostgreSQL | No Comments »
March 4th, 2008
All right, this is really no rocket science it’s just something I needed and took me some time to figure out.
-
{assign var=
"fullName" value=
"`$human->first` `$human->last`"}
or more robust version:
-
-
{$human->first} {$human->last}
-
{/capture}
Posted in Programming Techniques, Smarty | No Comments »
October 3rd, 2007
I bought Palm TX recently and I’m still in that period of time when you install new stuff and discover what’s out there to try. On my old Palm V I loved a text entry application Fitaly. I just had to have it on my new Palm as well.
Read the rest of this entry »
Posted in Palm OS | No Comments »
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.
Read the rest of this entry »
Posted in Programming Techniques, Smarty | No Comments »
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:
Read the rest of this entry »
Posted in Programming Techniques, Smarty | No Comments »