July 2007

30
Jul
2007
xqus

About

This is the blog of Audun Larsen, a 25 year old boy from Bergen, Norway.
I currently work as a communication technician in Norway.

As you might have figured out, this blog is mainly about web development related topics, such as PHP, JavaScript, Drupal. Although this isn't my professional career, it has been my hobby since I was about 12 years old.

30
Jul
2007
xqus

jQuery and IE headache

After much work on the new phpSysInfo interface, I decided to test it in IE.

Since 99% of the code is pure jQuery code (we are talking about 400 lines of JavaScript) I had no reason to believe that it would fail. But off course, it did.

28
Jul
2007
xqus

Creating XML files with PHP

Creating XML files with PHP using SimpleXML is really easy, and elegant.

To create a SimpleXML object from a string, I use the following code.

$xml = simplexml_load_string("<?xml version='1.0'?>\n<phpsysinfo></phpsysinfo>");

From there it's really easy to expand.


$xml = simplexml_load_string("<?xml version='1.0'?>\n<phpsysinfo></phpsysinfo>");
$generation = $xml->addChild('Generation');
$generation->addAttribute('version', PSI_VERSION);
$generation->addAttribute('timestamp', time());

20
Jul
2007
xqus

Creating Zebra Stripes With jQuery

jQuery is really amazing.
I'm actually having problems finding words to describe it's awesomeness. I'm currently working on a jQuery based XML parser, really Web 2.0ich, and wanted to make my jQuery generated tables look really pretty, with any other row with a different background color. After some googleing I stumbled upon this great article.

It's definitely worth reading.

Zebra Striping Made Easy

13
Jul
2007
xqus

PHP 4 end of life announcement

Today PHP.net writes:

Today it is exactly three years ago since PHP 5 has been released. In those three years it has seen many improvements over PHP 4. PHP 5 is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be discontinued.

05
Jul
2007
xqus

Drupal 7 will be PHP 4 incompatible

It was announced at drupal.org today, that Drupal 7 will be PHP 4 incompatible. This is a huge decision to take, since it will make it impossible for many to run Drupal 7.
But in my opinion it's about time.

Dropping support for PHP 4 in such a big project as Drupal is a great kick in the ass for the PHP community to upgrade to PHP 5.

PHP 5 is three years old now, and way to many is using PHP 4 that was released seven years ago.

04
Jul
2007
xqus

Drupal 6 coming along nicely

I checked out the new Drupal 6.0 from CVS today, and I must say, allot has happened since the last time I tried it some weeks ago.

04
Jul
2007
xqus

My first patch commited to Drupal core

Just to, I don't know.. brag? I just wanted to tell the world that my first patch was commited to Drupal core yesterday. What a nice feeling.