Archive for the ‘General’ Category

Soulfy – Omen

Wednesday, June 16th, 2010

I am getting old. I am mostly listening to music which was released at least 10 years ago. Not visiting rockconcerts anymore.
but… once in a while, I “discover” a newly released album which really makes me think “WOW!!!” the first time I listen to it.


Soulfly – Omen

It kicks ass!

APC.php

Sunday, June 6th, 2010

if you google for “apc.php?SCOPE” you get 202.000 hits. I opened at random (more or less) 10 of those. All giving a shitload of information about the host and file structure.

Seems pretty unsafe for me to have that information stored in Google.

Memcache(d)

Thursday, June 3rd, 2010

Recently I started (finally) with implementing caches for our php projects. I extended the database class with additional query methods utilizing memcache.

While writing some unittests, i was confused by the documentation of php regarding memcache.
I always wondered why there was a pecl/memcache and a pecl/memcached. I assumed one was the client API, the other the server API (or something similar).

BEEEP! WRONG!

Seems that both are libraries providing methods for accessing the memcached (memcache daemon).

You have to choose one! or… use them both… but have to be very aware which one you are using :)

I have chosen to use memcached. Primarly because it’s only a wrapper to libmemcached (which is a big plus in my eyes).

Life of Pi – Yann Martel

Sunday, May 30th, 2010

While rereading my diary, I encountered a passage from life of Pi, written by Yann Martel:

Als wij burgers onze kunstenaars niet ondersteunen, offeren we onze fantasie op aan de brute realiteit, zodat we tenslotte nergens meer in geloven en onze dromen geen waarde meer hebben.

In Dutch..sorry… Makes me think a certain Dutch politician… shame on you Wilders, Shame on you.

duh :)

Tuesday, March 9th, 2010

Someone on chat asked me what switches he had to use to execute php on the command-line. He tried to execute a php script, and all the command returned was the contents of the script, instead of executing it.

At least… that was what he claimed. I don’t use php on the cli a lot, so just to be sure i wrote a quick test script, which executed flawless.

So I took a look at the script he tried to execute:

echo html_entities_decode(file_get_contents($argv[0]));

So the script did exactly what was asked ;) outputting the content of the script itself, instead of outputting the content of the file given as 1st argument to the script.

hi hi.
He overlooked the fact that the 0-key of the argv array holds the name of the script itself, instead of the 1st argument given on the cli :)