virtual reality<sup>2</sup>

whoah…unbelievable…imagine what you can do with this technology maturing…

Installation by MIT

Check out the movies…

OOP programming for webapplications usefull?

While coding (php5) on a new project today, I found myself struggling with the question to fit a collection of functions in a class or not. Or in other words, to maintain a procedural style, or more object orientated.
I only learned recently how to use objects and classes in php5 and I find myself mixing objects and procedural style within scripts. For instance, html templates and database abstraction is fitted in classes, while handling a form (collection -> validating ->processing) is done in a procedural style in my scripts.

I think that webapplication-coding is by nature more suitable for a procedural style. You have a very clear starting point and end. So the timeline in your script is very linear. Compare this with java, where applets mostly run in a loop waiting for userevents. The fundamental difference in nature (begin->end against looping) explains my struggle to code completely OOP with PHP.

Off course OOP has lots of advantages with PHP (execption handling, code reusability to name a few) but I think when coding webapplications, you will always find yourself coding a more or less procedural timeline within your script.

Russian Scientist Claims to Have Cracked Fermat’s Theorem

Fermat’s great theorem states that there are no positive integers x, y, and z such that xn + yn = zn in which n is a natural number greater than 2.

A doctor of technical sciences from the Siberian city of Omsk has proved Fermat’s theorem and claims to have a “simple” proof.
In 1995, the English mathematician Andrew Wiles published a proof of this theorem. However, Wiles his proof is beyond the understanding of most mathematicians today whereas Fermat claimed his theorem had a truly marvelous proof. So, math institutes still receive thousands of letters with proofs of Fermat’s theorem.

Well, I know I didn’t understand Wiles’s proof (not that I really tried). However the BBC horizon documentary was fun to watch.
I’m looking forward to have this new proof explained to me.

the story on mosnews.com

The wikipedia on Fermat.

Entering the world of version control

Doing PHP development for several years now, I never really understood version control and how to integrate it with my web-application development. For “traditional” programming, it is clear. You create a repository, all the developers keep in sync and commit their updates. But being the whole development team yourself and have code that for 100% depends on the database stopped me from even try to set up a version control system.
Until last week. I just finished a project and was starting a new one, when I decided that this was the ideal moment for fiddling around with version control. I happened to have a golden oldie compaq proliant 1850R with RAID 5 disks AND a fresh install of freeBSD 5.4. Ideal for the task of becoming a CVS server….eh… cvs? subversion?

Being a total version control newbie, I did my googling and reading.
In one sentence: CVS is old and insecure, Subversion is hot and the talk of the town. CVS compares to Subversion as telnet to ssh.
And the fun thing? installing and setting up took me 1,5 hour. Using ports
there are basically two ports to install: Apache2 and Subversion.
Below are links to the pages I used for setting up my subversion server, but here are some hints/notes: (not a howto or tutorial! read the pages!)

Create a svn user and group, and adjust the umask of that user. I used: umask 002.

Build apache2 with WITH_BERKELEYDB=db42.
I have changed httpd.conf to have apache2 runs as svn user and group, this spares you from read/write issues when using Subversion with webdav.

Build Subversion with -DWITH_SVNSERVE_WRAPPER -DWITH_MOD_DAV_SVN.

Su -l to the SVN user, create the repository and import your initial project layout, confiure apache to serve the repository with webDAV and…you’re free to go!

It kicks ass!
I do my webdevelopment on my mac offcourse and I found svnX to be a fantastic client wrapper. 2, 3 hours after installing and setting up my first version control, I found myself wondering how I ever lived (eh..ok developed) without it.

The links I used:
onlamp - Setting up a Secure Subversion Server
the SVN book (free!)

macdev center- making the jump to subversion
onLamp - top ten tips for Subversion users
OS X Subversion client package (you need this for being able to use a gui front-end as svnX.
svnX
Versions Systems link collection

And because I always forget the exact procedure:
Apache+SSL on freeBSD

Recent addition is this article from RedHat, a introduction suited for both CVS users and those new to version control.

CVS is out, Subversion is in found with digg.com

Watching a webcast

For the first time I’m watching a webcast like ordinary TV.
This weekend there is the Lowlands festival in Holland.
The vpro has a very extended coverage, including 800kbs live streams.
I play the live stream with real-player on my ibook. The ibook is connected to my TV.
It looks and sounds great. I just watched Franz Ferdinand and it looked fantastic. The quality is very very acceptable.
Incredible how the internet has progressed the last 5 years…

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