Posts Tagged Programming

Cracking the Cryptex with PHP

In the book “the Davinci Code” there was a fun little device called a cryptex.. A Cryptex has 6 dials with 6  letters on each, and only one combination producing a word will open it. The most straight forward way to crack it would be to try every combination one by one, but there’s a [...]

Tags: ,

A binary clock in PHP

There are some odd functions hidden in PHP. One of them is the decbin function, which makes it easy to convert between decimal and binary numbers. If you’re bore don a rain day, you could use this function to make a simple binary clock, here’s a few lines to get you started: 1 2 3 [...]

Tags: ,

Checking requirements for PHP Applications

A great strength in PHP is that it’s so accessible, that almost anyone can get access to a PHP site and often will download “applications” for their site such as discussion boards, photo galleries and others. While it may easy to download such applications, it often happens that the people trying to get things to [...]

Tags: ,

Zend Framework – Ready or not?

We are a fairly large PHP shop at work running some of the largest Danish websites. In a fairly new project, it was suggested that we considered using the Zend Framework to fast track development and piggy back upon some of the components provided by the framework. We looked at it, and said no – [...]

Tags: ,

Checking requirements for PHP Applications

How to check if the correct PHP version, the correct modules and other stuff are available, when you’re creating a PHP application, you expect other to use. Show me

Tags: ,

Cracking the Cryptext with PHP

In the book the DaVinci code there’s a fun little device called a “Cryptex”. It a container for a secret message, and to open it, you need to align some dials to the correct position. In an quiz somewhere you were invited to crack such a cryptext consisting of 6 dials with 6 letters on [...]

Tags: ,

Do you use PHP Constants?

Browsing in other people code can be an interesting experience. Sometimes you learn stuff, other times you just get scared of the things you see. One recent observation I seem to make a lot, is that handling “application configuration” is often handled less gracefully as a would have wished.

Tags: ,

New section preview

While others seems concerned with their page rank and site popularity these days, I’m currently ”celebrating” my recent five to six promotion (in Google PR) by building a new technology area.

Tags:

MVC for PHP

With the amazing buzz around RubyonRails, everyone seems to be hooked on the Model-View-Controller (or just MVC) paradigm – and do strive to mindlessly implement the ”Ruby way” into other programming languages without too much reflection and thoughts on how to do it. . Even tough most of the efforts I’ve seen so far seem [...]

Tags:

Coding style

I usually edit more code others made, than I create new files, and while most of the code is in PHP, there’s a huge difference in the coding style applied by different developers, and some styles are much more annoying than others.

Tags: