Discrete Math

Having probably made my last databases-exam, I started a new course, Discrete Math A.
The last time I studied math was more than 9 years ago, and I found myself puzzling why
(2n+1)2 was not (4n2 + 1).

After 15 minutes of panic, I recalled my second grade math-classes:
(2n+1)2 = 4n2 + 4n + 1
because
(2n+1)2

=(2n+1) * (2n+1)
= 2n * 2n, 2n * 1, 1 * 2n, 1*1
= 4n2 + 2n + 2n + 1
= 4n2 + 4n + 1

pfeeuw.

Migrated to PHP5

I did it!

For over a year I glanced at PHP5, but put it aside as too unstable/experimental (a year ago) or too dangerous to migrate due to incompatibility issues.

Some of my projects where however advancing to a point, that procedural programming became to limited. And more and more I found myself looking at (Object Orientated Programming) OOP.
And being a absolute rookie in OOP, I decided that if I had to learn OOP, I wanted it to learn in PHP5 rightaway, instead of starting in PHP4.

Well, 2 weeks ago, I decided that the time has come. I downloaded php5, installed it on my development server and….it just worked?!

A closer look learned that JPgraph -scripts broke and some my legacy code also.
Fortunately, there are two configuration options who both can be set in a htaccess or virtualhost configuration:
zend.ze1_compatibility_mode
and
register_long_arrays

Enabling those two directives in the appropiate virtualhost config made all the scripts 100% working again!(yeah yeah I know, ditch the legacy code and wait for jpgraph 2.0, but we don’t live in a perfect world, do we?)

The last week I find myself coding in PHP5 OOP style for the first time, using the new mysqli extension (prepared statements kick ass!) and enjoying php5 very very much!

April’s foolsday hoaxes

The 1st of april has become one the better internet days.
The whole net gets filled with hoaxes…the one even better than the other…

Some highlights of today:

A newly submitted RFC Requirements for Morality Sections in Routing Area Drafts (this is actually becoming a tradition).

Google Gulp

OS X on ipod

Water on Mars!

‘complete’ list

 

Gargleblaster.org

My latest run

date: 31 Dec 08 14:58 CET
distance: 8.85 km
duration: 49'36"
my last run

All my runs

total runs: 71
total km: 384.38
total time: 39:54'12"
farthest run: 11.13 km