Author Archives: Oli

fritz!box call monitor with node.js

After two years: A new post. Yay! The fritz!box has an integrated call monitor that can be activated by dialling #96*5* (and deactivated by #96*4* …). With just a few lines of code we can use node.js to build a small TCP client: var net = require(’net’); var sys = require(’sys’);   var client = [...]

BlogDesk?

Trying BlogDesk for posting …

Singleton Design Pattern

Issue no. 3 on design patterns: The singleton pattern. Whenever we need a place to save and retrieve data throughout a script without using globals the singleton pattern comes in handy. It allows only one instance of itself. What seems like a drawback is quite useful: Wherever in your source you instantiate such an object: [...]

Parameterized Factory Desing Pattern

The parameterized factory design pattern is an extension to the factory design pattern as you might have guessed, but here we can make the factory create different objects depending on the parameter passed to the create-method. Imagine your application is supposed to connect to a MySQL-DB or to a PostgreSQL-DB. Instead of creating different objects [...]

Factory Design Pattern

Design Patters part 1. I built these samples on PHP design patterns a while ago to make some friends write better code. They ignored it, so I give it to you. I hope they are self-explanatory. If not: Feel free to ask! First off: The factory design pattern. It encapsulates the creation of a class [...]

BLAZEserver

Introducing BLAZEserver. Get it HERE!

Debugging on local Apache with PhpED

I’ve been working with PhpED for quite some time, but now that I’m using the Zend Framework I reached the point, where the integrated server isn’t good enough anymore. The main concern was mod_rewrite. I needed a way to debug on my local Apache installation (XAMPP to be specific). I fought my way through multiple [...]

Zend Tutorial

I’ve been trying to set up my directories on the production server yesterday. Meanwhile I came across Rob Allen’s Blog. It features a nice tutorial including database access and forms. Rob doesn’t waste time doing it the “easy” way, like the Zend framework quick start tutorial does. You get your full load of class inheritance [...]

Frameworks

After trying to rewrite my code using design patterns till 4:20 a.m. I thought, that someone already might have built a working collection of classes to do the same thing. It’s important to understand how design patterns work and why and where they can help you simplifying things, but hey: I wan’t to build a [...]