Aug 182009
 
No Gravatar

So if my blogging has been exceptionally slow lately, it’s because I’m on holiday. As I write this, I’m sitting on my campsite at Skukuza in the Kruger National Park, just about as far removed from Cape Town as you can possibly imagine. Nothing is cosmopolitan here, there is no mountain and buildings – just the bushveld, in many ways a home for me.

My family have lived in the bushveld for many generations and it’s in our blood. I was raised learning to spot the differences between a Sharpe’s Grysbok and a Bushbuck, being able to tell a white-cross eagle and a vulture apart simply by looking at the pattern of their flight, why a koorsboom (fever tree) is called that and the sound of hippos blowing a stream of water into the air.
In what remains one of the greatest national parks in the world, I feel a sense of wholeness and completeness that I cannot find in any city. Cape Town is a wonderful place, but this little natural refuge is indescribable and speaks to a side of my soul that would otherwise be unfed, thus my return to this part of South Africa usually at least once every two to three years.

Personally, I would be quite unconcerned if I never saw a single lion (though of course I respect my family’s wishes to find them) or leopard… I was feeling contentment when I saw my first Steenbok – even if it took only seconds before it disappeared into the bushes in the characteristic way of this shy little antelope.

By Sunday evening, I will be back in the big city. Back to dealing with work and customers and traffic, and back to regular blogging, I’ll upload some of my better pictures and maybe the rather nice video I took of a bufallo up close – but all that is for later. For now, this is the first time I’ve logged into my laptop and it will be the last for as long as i can possibly postpone it.

Aug 102009
 
No Gravatar

So last week my ISP mails me and says “please do something about your apache… it’s using so much memory it’s killing the shared servers” – I began to investigate and cut it down quite a bit, but it was still using about 130mb per instance – and there was a lot of instances (next step – cut down the maximum instances) but I knew I would need to shave a bit more from somewhere, if only cos my ISP is owned by an old friend and I don’t wanna cause him hassles.

So I reckoned, having some time – I’ll switch to lighthttpd and see what I can achieve. The process over-all was surprisingly easy and took me only about 45 minutes – with a downtime for maybe 10 minutes. I used a pretty good howto that took care of the details – find that here.
The only other catch was that the lighttpd doesn’t seem to set up much in the way of log files, and then dies on startup because it can’t write to them, that wasn’t too hard to fix anyway.

So once I had it up… anyfont wasn’t working, turns out that the mod_rewrite function isn’t identical, I had to hack that a bit to get it going -but everything seems to be going fine.
Since I am now using php-cgi instead of mod_php (through fast_cgi) [and btw. I can't see a speed difference so I would highly recommend this option to anybody who doesn't need apache's massively huge featureset - it's a nice setup thats low on resources and ideal for things like blogs] I can see that between 80mb and 105mb of ram is going to PHP on each instance, while lighthttpd is using almost nothing. So that saves a solid 30mb-50mb per instance… not bad – but still a lot… it seems the vast bulk of the apache memory must have been in mod_php… when did php become so huge ? I already disabled every php add-on I don’t absolutely need…
I thought the whole bloatware creep thing was a desktop trend, where hardware changes fast and decreases in cost and it’s okay to use it … on a server, where people expect the thing to run basically without interruption for years at a time… this is quite a big jump.
At least now I know where the sudden change came from -I only upgraded this server to php5 about three weeks ago, not having bothered to move from php4 until i had to. Seems that php5 is a lot bigger than it’s daddy, php6 is probably double that again…

Oh well, at least now mister myke has to find a new excuse to be mad at me :D

And I just got a hint… the rewriter isn’t working for the seo URL’s… darnit new debugging process starts.

UPDATE: I got the rewriter going just fine. My code from lighttpd.conf is below, note that I have anyfont installed so it’s redirect is in there too – you can strip that part if you don’t use it:


url.rewrite = ( "/images/(.*)/(.*)\.png$" => "/wp-content/plugins/anyfont/img.php",
"^/(wp-.+)$" => "$0",
"^/xmlrpc.php" => "$0",
"^/sitemap.xml" => "$0",
"^/(.+)/?$" => "/index.php/$1")

Aug 052009
 
No Gravatar

So today, I once more encountered a bug which every intelligent straight male with good platonic female friends have on at least some occasions been tripped up by.
The result was the usual series of blushing and incoherent attempts at not ruining the friendship because all of a sudden you were momentarily thinking of the friend in question in a whole different light, and due to your long existing friendship it’s not a light you would normally think of her in, nor one you actually want to pursue and what’s worse, you know you ought to just STFU but instead you keep yammering on with some odd mixture of apologetic “I don’t normally think of you like this” and “but man I wish you thought of me like this” which if plotted would form a perfect sine-wave.

Luckily any clever girl will not take it personally. She will just laugh heartily as she watches you make a complete fool of yourself and not be either scared or offended. The reason of course being that she has seen the bug long ago and accepted it as just part of being friends with a guy, and who you are when it’s not triggered is still a good friend and besides, it’s funny as hell to watch.

The bug is normally triggered when a friend who really is just a friend but whom you also find attractive happens to say something naughty and personal or just something that notably reminds you that she is a sexual being.

This causes the higher-brain algorithms to call a function from libmale.so which is programmed in the core OS and protected so it can be neither overridden nor masked as it is apparently part of the “survival of the species” collection.

In most occasions when it is called, it is probably useful to the goal of ensuring the species survives, but when triggered by accident in inappropriate circumstances… it’s really a rather annoying bug.

Here is the code:


mental.concept.handler(pussy) {
if girl.IsAttractive() {
Self.IQ -= 100; // Note that on some hardware this could set Self.IQ to a negative number.
}
}

Since there is apparently no way to debug the code, I can simply post this bug report and hope that $DEITY will ship a patch for the next generation, or at least the public may be warned.

Aug 032009
 
No Gravatar

I have said it before, but not really spelled it out in detail but I think the proliferation of cellphones as the primary method of connectivity in Africa is not, as many have proposed, a cheap and practical solution to bridging the digital divide, on the contrary, it’s a very good way to make the rift permanent.

The essential reason is simple, cellphones will never be able to compete with full size devices in terms of capability. Cellular internet remains almost entirely a one-way thing. This is part of why, when a friend recently asked a group of West African African delegates to a conference how many of then visited facebook, almost every hand went up. When asked how many of them blogged, almost none did.

The single biggest issue in the digital divide today is not getting African’s access to content – it’s getting African created content accessible. Cellphones are extremely bad for this. Sure you could record a video or a song on a phone, but the quality is always going to be second rate. You can just about use this method to get news stories out… it’s never going to work for publishing a new song.

In Europe and the USA the biggest debates going on right now is those who see the benefit of the multiway internet arguing with those who are trying to preserve old business models that simply don’t work anymore. Newspapers, software companies,  film and music distribution being the worst offenders. Instead of recognizing that in world where everybody can produce high quality content – supply and demand dictates that since the supply is now nearing infinity, the price must in turn approach zero – and learning how to find new ways of generating revenue, they are trying to maintain their status quo by lobbying for ever more oppressive copyright laws.

My views on this battle is well known, but the point of my current post is that it isn’t happening in Africa. ASAMI is making a valiant effort to be bastards in South Africa but that’s the entirety of the event to reach this continent. Nobody is lobying the AU to enforce stricter copyright requirements on it’s member countries.
Why ?

Because in Africa the corporations got exactly what they want. A consumer internet. It’s too slow to share anything more meaningfull than tweets and cellphone pix on (so it isn’t a threat to the artificial scarcity model)  too limited to create any competing content and too restrictive to allow any new software or ideas to grow.
It’s one way – from the companies to the users, at premium rates.

The one thing scarier than the thought of possibly losing the internet battle in the developed world (an unlikely reality no matter how hard they lobby because ultimately, the maths just don’t work) … is the thought of never even having the opportunity to fight it in Africa.

It has been said that Africa’s major economic problem is that we lack product refinement capacity, we export raw materials, and then buy them back as usable products at ten times the price. Nigeria is a prime example, the nation with the fourth largest oil reserves on the planet also has the highest petrol price on the planet.

But our internet access is even worse off… now we’re consuming, buying products – and we don’t even get to export raw materials, we’re not competing at all, we’re not even part of the market in the other direction ! Slavery didn’t end two-hundred years ago, it’s just that the slaves are now carrying their chains in their own pockets and don’t need to be shipped anywhere first.

So we don’t get to contribute to the web in any meaningful way, anybody who has tried moblogging knows that anything longer than a paragraph is likely to you hospitalized for RSI in your thumb, so we’re still entirely dependent on media companies for news. We don’t get to download music except from cellphone ringtone suppliers – at premium rates (that actually works out more expensive than the CD’s , or only barely cheaper), we don’t get to watch streaming movies and we most certainly don’t get to use the power of the internet to get our own movies and music to a wider audience.

Who cares about the size of Nigeria’s film industry  ? They will never compete with Hollywood because outside of a few choice film festivals, nobody has ever even seen a Nigerian film. They aren’t in the video-rental stores, they aren’t showing at the theaters – they may as well not exist, the one technology we have that could change this, could make them have the kind of success that has seen numerous independent films from all over the world grow to massive hits online – which ultimately led to real DVD sales etc. and made them financial successes, these ideas aren’t available to us.

Now sure it was an interesting experiment when one South African film maker made a full length movie shot entirely on cellphones, but he still needed a computer to put it together, and that was a particular artistic expression, it’s hardly the appropriate method for making good quality indy films in general.

I think I’ve made my point, so as usual, I shall end with a pithy summary of this post for the tweep generation: mobile internet isn’t.