Monthly Archives: December 2008

Merry Christmas!

Wishing you all a very mery Christmas!

Wishing you all a very mery Christmas!


Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 2.0 Belgium License.

Grand Central Station, NY

Vectorized picture of Grand Central Station, NYC

Vectorized picture of Grand Central Station, NYC


Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 2.0 Belgium License.

This picture was converted online using http://vectormagic.com.

PHP’s Smarty ‘render’ plugin : the ‘if’ block extended

Often I need to show a piece of text on a page depending on some sort of condition : if an array is (not) empty, if a boolean is true or false, is a String is (not) empty, …

Smarty to the rescue! I’ve always liked the simplicity of extending Smarty with your own functionality (see Smarty documentation). Here’s a custom plugin I use a lot : the ‘render’ block.
Read more »

Winter in Linden

Winter 2007, our front yard

Winter 2007, our front yard


Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 2.0 Belgium License.

Online photography course

I found a website a while ago, ShortCourses.com, which is a great introduction to digital photography. It contains about the same material you find in most books about this subject, but the interactive demos give you better insight in the effect of different settings on your camera.

Paris by night

Paris by night

Paris by night


Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 2.0 Belgium License.

Using PHP’s Smarty engine to generate SQL queries

Introduction
Most PHP devlopers will be familiar with the excellent Smarty engine. Smarty was developed as a “Template/Presentation Framework”, but it is just as usable in a completely different areas, like SQL query generation.

As you’ll see in the example, using Smarty for executing sql queries has two main advantages:

  • Maintainable : the queries can be formatted using newlines, tabs, spaces, … which makes them much more readable and easier to modify.
  • Reusable : the queries are kept in separate files which can be reused through the application.

Read more »

My first post…

Welcome to my first post ! I’ve been thinking about creating a blog for a while now, as I spend more and more time reading other peoples blogs (way too much free time…). The ingredients of this blog will be a mix of :

  • web development ideas: mainly Java and PHP, but anything else will do.
  • photography: I love taking pictures, although I’m just an amature.
  • music: I started making music when I was about 7 years old, but somehow I don’t have much time left for this… But you’ll hear some of my good old favorites.
  • anything not in the categories above: if it’s on my mind, I’ll write about it.

Enjoy!