The End of an Era

An era has come to an end as we say goodbye to PHP4 today! The official support for PHP4 has now been dropped, and the branch was ended with the release of PHP 4.4.9 yesterday. Reading through Derick’s post about the end of PHP4, I actually got quite a bit nostalgic. All the main release points for the PHP4 series (except for PHP 4.4.x which I’ve never spent any time worth mentioning with) includes things that we rely on each and every day today.

Here’s to the same trend for PHP5 when we look back when PHP6 has been released and spent a couple of years in the wild (although I can say quite a few things I’d never live without from PHP5 already..).

BTW: Christian also notes why you should be afraid if you’re considering installing the new PHP version.

I Made It!

After a cruelling 81 kilometers and 4 hours and 47 minutes, I finally reached Halden from Strömstad! Magne finished at 4 hours and 4 minutes, 43 minutes ahead of me. Every possible muscle feels sore at the moment, but it was a great experience. Wouldn’t do it again tomorrow, but there’s a good possibility that we’ll do the race next year too. It rained all morning, but just before we were about to start, the rain magically stopped. The gravel roads where however very wet and soggy, which meant that you had to pedal all the time, all the way. The bike just wouldn’t roll, as the tires got loads of traction and stayed down on the ground. Anyways, weeee’re done!

.. and now I’m doing Birkebeinerrittet in the last weekend of August. Not really looking forward to it at the moment, but that’ll change in a few days.

Photo by Aleksander Toppe!

Mouse Stuck in Lower Right Corner in Ubuntu Intrepid under VMWare?

If your mouse pointer is stuck in the lower right corner after upgrading to the current alpha version of Ubuntu, Intrepid, the reason is that the vmmouse driver got borked somewhere between Hardy and the current version of Intrepid. This means that you’ll only see “Moving to desktop 2” (or whatever desktop you have in the lower right corner). The fix is to change the reference to ‘vmmouse‘ in /etc/X11/xorg.conf to ‘mouse‘. This is not as good (you’ll not be able to move your mouse pointer from your host to your vmware machine seamless any longer), but at least it works.

You can track the current progress over at trackpad: Ubuntu Bug #248521.

Going Cross Countries – Grenserittet 2008

Well, the day TOMORROW is approaching fast (just an hour left..) – the day when Magne and I are participating in Grenserittet 2008. Grenserittet (or “Cross Countries” as it’s called in english) is an annual bike race from Strömstad in Sweden to Halden in Norway. It’s a total of 81 kilometers in length, with a few downhills and uphills along the way. Nothing major, but it’s still going to be a good challenge after I picked up biking again in May. Our goal is to finish in under 4 1/2 hour, so we’ll see how that goes. You can search for my name at grenserittet.com and follow our (or at least my) progress along the route.

I’m going to let my Garmin Edge 705 record the run, so hopefully I’ll be able to provide a few graphs and paths after I’ve finished. Here’s to good weather and a not too warm day!

Rounding Up The Remaining Database Posts

To finally be able to close my now-ready-to-be-archived Firefox-window, I’m rounding up the three other posts I were going to post about in one single batch here:

Ulf Wendel has a post up about PDO_MYSQLND: The new features of PDO_MYSQL in PHP 5.3. Besides being yet another introduction to how MYSQLND differs from the regular libmysqlclient, Ulf writes in detail about how mysqlnd brings other speedups to PDO in general, by allowing the drivers to return zvals directly. This allows the driver to return data without requiring an explicit copy by the overlying architecture. Interesting stuff and well worth a read for anyone, regardless if you actually know what a zval is.

Nicklas Westerlund has a post about MySQL Back to Basics: Analyze, Check, Optimize, and Repair on the pythian blog, featuring a overview of the useful – and abused – methods of rescuing and keeping your data intact. Do regular and good backups. It’s as easy as that. This might however help when you’re in a hurry or needs to fix a corruption that has occured. Read it.

The last item on today’s list is Sphinx – a free open-source full-text search engine. Sphinx uses it’s own indexing and retrieval system, while Solr is built on top of Lucene. Haven’t had much time to play with it yet, but it’s worth checking out. A native PHP module has also popped up (and that’s where I read about it just now), so if you need a fast and native PHP interface to a full search engine without blowing the big bucks, this may be what you’re looking for.

The Day of Four Letter Abbreviations: BASE vs ACID

Any person that has spent some time with databases will have heard the acronym ACID some time or the other. ACID is what transactions are aimed to achieve, so that you’re able to define a set of operations that are connected to each other. ACID is a definition of what these transactions should be able to provide to the user of the RDBMS.

Via xarpb I got hold of an article from ACM Queue, titled BASE: An ACID Alternative:

If ACID provides the consistency choice for partitioned databases, then how do you achieve availability instead? One answer is BASE (basically available, soft state, eventually consistent).

BASE is diametrically opposed to ACID. Where ACID is pessimistic and forces consistency at the end of every operation, BASE is optimistic and accepts that the database consistency will be in a state of flux. Although this sounds impossible to cope with, in reality it is quite manageable and leads to levels of scalability that cannot be obtained with ACID.

Proves to be a very interesting read, and something that’s very in time with how we’re already doing large partitioning of large databases, where the application tier is responsible for a lot of the distributed “transactions”.

Complaining About “Having To Be Commercial” in the Time of Digital Democracy

Norway’s largest newspaper had an article yesterday featuring Christer Falck where he complains that indie music (in the form of music that has a more narrow public appeal) is not getting the attention it should from the major music television networks. Here in Norway that means The Voice and MTV (and a few shows at NRK), which mainly is considered with RnB (The Voice) and a bit more general commercial appealing music (MTV).

The reason why Christer is in the news now is that he’s launching a new artist on his label, Hilde Marie Kjersem. VG provides him with amble news space where he’s able to provide a link to her fresh music video. This is of course a shameless promotion stunt from Christer to be able to get his newly released artist out on the front page of Norway’s largest newspaper, but his complaint is still interesting.

The problem is that it’s an invalid complaint. Yes. The major music tv networks is prioritizing music with a broad commercial appeal more than niche music, but after all, they’re commercial entries. If twice as many people see the commercials they run between the music if they play certain songs, they’re going to play certain songs. That’s probably no surprise. But what Christer seems to forget, is that it’s NEVER been easier to actually make a buzz by yourself and to get your own music out to millions of people without having an enormous budget. Just a couple of years ago we’d never be able to just upload our video to a site which would host the video for FREE, which works with almost all available file formats and which allows you to embed the video on your OWN PAGE. We have myspace where thousands of unsigned and signed artists share their music, where you can listen to huge amounts of good — and even more — bad music. If you decide to create music that you want to share with the world, the possibilities are there! You don’t NEED the music networks to play your music to make it known to people.

I’d certainly download and listen to an album distributed online, and I’d happily pay a couple of dollars to get the 192kbps MP3s upgraded to lossless FLACs. Make the MP3s available for free, set up a playlist with your album hosted on youtube, on myspace or make your own service. Just make it available. If I can send a link to a friend and ask him or her to check out a new album I just found, I’d be more than happy to share good music.

So here’s where we’re going to say something that never will happen:

Make the entire album available online for free. Host the download through a bittorrent network, most people are more than happy to contribute bandwidth to legitimate issues. Make it possible to pay for a simple lossless download for those of us who treasure music quality (and while I’m probably not going to hear any difference between 320kbps mp3 and FLAC, the size difference isn’t worth a degraded copy any longer), and let us pay a REASONABLE amount. The $20 that an album costs in Norway today isn’t reasonable. I’ve never bought more music than when allofmp3 was still available and you could buy whole albums in FLAC for $2-3. I spent more money then than I’ve done ever since.

There are ways of getting huge amounts of publicity when you’re doing things the reasonable way.

I’m actually thinking about the concept of setting up a site where people can make full album downloads available in good quality. Imagine if you could get your music into the vast amounts of media centers available in the world, without a single distribution cost. Together with a simple “buy this in lossless quality” link that charges a few dollars for the service and a specific hosted version of the file. Bandwidth is a commodity that’s getting cheaper and cheaper.

So Christer, while it’s a good tactic for getting some attention for a release, I dare you to instead take on the fight to the complete established music industry. And if you’re going to make it without the help of the networks, you’ve got to get a better website for C+C Records than what you currently have.