Don’t thank me!

I‘m not sure if I’ve mentioned it before, but I have a plan for fending off hurricanes (and other related storms) from Nova Scotia. We are (once again) looking forward to another busy hurricane (uh, ‘storm’) season this year. Forget about climate change for a change. Think about what causes these tropical storms to grow into hurricanes: Warm water.

The Hurrican frontplan I propose is a multilateral ice cube barrier that stretches from Bridgetown to Lahave/Bridgewater. By cooling water here, we minimize the threats of snow storms and hurricanes that reach Nova Scotia either by land or by sea. The stretch from Bridgetown to Freeport (‘BriFree Ice Front’) is particularly crucial: dumping ice here will allow the formation of a buffer zone between Nova Scotia and the main American continent. (Most of our snow comes from the US). The stretch between Freeport and Bridgewater (‘FreeBri Ice Front’) will most likely force storming hurricanes to ignore Nova Scotia.

There are couple of issues I’ve not taken into consideration:

  • How will this affect Global Warming?
  • How will this affect the fish? Or rather, the fishing industry?
  • What effects does the tide in the Bay of Fundy have on the ice cube barrier? If the tide is coming into the bay, most of the ice will probably be dropped in and around the hub of Nova Scotia. Maybe it’s a good idea to make a heat generating ‘anti-ice cube’ barrier around Truro.
  • How do we get all the energy to create all these ice cubes year round? I’m looking at you Nova Scotia Power. Low rates, now. It makes sense from a business point of view: the less storms, the less calamities.
  • How will this affect tourism? Current estimations reveal that Nova Scotia will attract between hundred thousand of extra visitors only to view these amazing barriers. Think of the Dutch national Deltaworks!

While we’re at it maybe we should call this ice cube front the ‘Hoogervorst Barrier’.

Update: Indeed.

Posted in xsamplex | Comments Off on Don’t thank me!

It hurts. Sometimes.

Oh, so it was. While changing the layout, I peeked around at the WP tables and decided to ‘merge’ a couple of older MT-related categories with the appropriate ones. To my surprise, I noticed that the rowcount (or, the number of posts in a category) was actually stored in a separate field in the wp_categories table. I have no problems with that (usage of the count function is generally not recommended).

It looks like the WP bug I mentioned before, has everything to do with the ‘upload image/send to editor’ procedure: the bug is persistent when you specifically link an image to a page. For now, linking to an image directly will do.

Posted in Wordpress | Comments Off on It hurts. Sometimes.

Rate any posts

I Rate whatevernoticed that Google Groups (formerly Deja News, Usenet as we called it in the back-days) now allows you to rate posts. A quick look in Google’s help, confirms this feature. You need to log in to GMail (or any other Google ‘Passport’ account).

I’m not sure why that would be of any help: for some kind of reason, Usenet keeps reminding me of terabytes of ASCII (7-bit) files or messages written by The BOB, Andrea Chen, Kibo, The Usenet Oracle and other uh, luminaries.

How would you rate the weirdest place on the Internet?

Posted in Hyperlinks | 2 Comments

Olympics

The start of the Olympics in Torino, Italy also appears to be the start of a lockdown of the ‘NOS Journaal’ for people outside of the right timezone. Over at the Public broadcaster there’s a sobering message saying that some of the streams aren’t available because of strict broadcasting deals with the Olympic committee (streams are only available in countries that are member of the European Broadcasting Union). Darn.

Followed the Gmail/Gtalk story? You haven’t been included yet? Been waiting for getting to chat within your browser? Neither have I. Others have. I don’t. Others have. I don’t.

Also, interesting to see that Windows Vista won’t run on half of the existing PCs, which most likely means that everybody is going to need to buy a new PC whenever Vista comes out. For some kind of reason this reminded me of the Civ 4 debacle, the one I chronicled about last year.

Posted in We-reflect-news | Comments Off on Olympics

Burnt WordPress

Talking about burnt: it looks like WordPress is pretty much acting up with a couple of ‘SQL-errors’ on my side. They happen to appear around the time I press the ‘Save’ button. WordPress returns the following error:

UPDATE IGNORE wp_posts SET .... (and posting information follows).

I have the impression something goes wrong with escaping single quotes. I’m testing this right now.

Update 1: WordPress has problems with escaping of single quotes. A quick test of the previous entry seems to illustrate this.

Update 2: It’s a combination of sorts and version differences make it harder to see where it goes wrong. On my test server escaping or not escaping doesn’t throw an error at all (version: 4.0.24_Debian-10-log vs. Dreamhost 4.1.14-Debian_3-log) . Different versions PHP too: home runs 4.3.10-16, and Dreamhost 4.4.2. (if you’re not familiar with how to extract PHP info, you can run php -i > test.html for 4.4.x versions: php will generate an html file). I still think it’s a magic quotes issue (and probably a bug introduced in WP 2.0.1)

Update 3: Priceless comment about “magic quotes”. Developers, please escape your quotes (or convert those quotes to html entities).

Update 4: Thread to watch at WordPress.org

Posted in Wordpress | Comments Off on Burnt WordPress

Burnt Toast

I Burnt Toastwas near to falling asleep when tunes from (apparantly) a CBC show woke me up: Burnt Toast. It’s listed as a romantic comedy opera piece in 8 act, and it sports a list of comedians and opera singers in 8 acts that range from funny to outrageous funny. The music is good too: I particularly enjoyed the interludes, atonal parts that would fit right in sections of the music I truly loved. During some parts, the opera reminded me of ‘The 7 Deadly Sins’, the last Weill and Brecht. It’s exactly that: a mix of TV, opera, modern music and comedy.

I see that the production was in the hands of the CBC and that the opera has a website with all the Flash and that. It’s soon available on DVD too, so for you Europeans, you just have to wait for another 6 months or so before CBC decides to sell it to another public broadcaster in your local area.

Posted in The Chest Desire | Comments Off on Burnt Toast

Jayapura and Eden

To be honest, I’ve been smirking along when reading this article about scientists who apparently found new species in an undiscovered part of New Guinea. These finds are amazing, but not surprising. If there’s one word I associate with New Guinea, it’s ‘paradise’: for some kind of reason, during the 50s, my dad ended up in Hollandia 1 (now called Jayapura). There are countless stories about this place: from unique and amazing encounters with the natives, flora and fauna, to the (first) attempts of the Indonesians to take New Guinea by force. His favourite site appears to be londoh.com, a site that tells the story of the Dutch that escaped the ‘Nationalization’ of Indonesia, to settle in New Guinea. His name is listed too over there, I see.

But to stick with the subject, it’s good to see that New Guinea is still the ‘undiscovered country’: I bet those animals weren’t designed to be there. And if my dad had been a scientist those days, he’d be the one smirking.

1. In the early Nineties, a historian claimed that the Dutch government planned to use New Guinea as a ‘promised new land’ for all its Dutch citizens ‘displaced’ by the Second World War and the Nationalization. This was (naturally) much disputed by the then newly formed Indonesian Republic.

Posted in xsamplex | Comments Off on Jayapura and Eden

Good stuff

I saw that Markku has added my fixes to his RecentLinks plugin. You should consider updating your plugin, particularly if you run WordPress without that ‘pretty URLs’ option.

Then over at Slashdot, I found a link to Goodger’s Blog discussing how Firefox came from. Blake Ross just followed, I see. Right in time for my earlier ramblings which includes a historical timeline of known browsers. Is this the beginning of the ‘credit dance’? Will Dave Winer rise to the occasion and claim he was the true inventor of Web Browsing?

All that and others, in the next episode of Good Stuff, right after the break.

Seriously: now is not the time to sit on compliments and reflect on achievements. I want true SVG support.

Posted in Ordinateurs, Wordpress | Comments Off on Good stuff

Local WordPress

A quick guide to help you develop your ‘online site’ offline. Requirements:

  • An offsite test server, preferably running Debian Stable (formerly ‘Sarge’).
  • A good knowledge of MySQL, PHP and Bash
  • Shell access to your online site.

Proceed with the following steps:

  1. Create a tarfile that contains all the files on your server, including graphics, themes and that.
  2. Create a mysql dump of the WordPress database that holds your blog data.
  3. Copy these back to your local server (scp/ftp)
  4. Create the same user/password/database on your local MySQL server. Check your wp-config.php file.
  5. Untar the backup file. Use the same base directory, if possible. If your blog was at /arthur, you may just as well add a new directory /arthur in your local webserver’s document root.
  6. Untar the SQL backup file. Import this in the database you created before. Grant access to the database for the newly created user. Warning: you may end up editing the SQL dump if you work on two different versions of MySQL. Additionally, using PhpMyAdmin for making dumps will generally not work thanks to the ‘magic quotes’ problem. And hey, since you’re a professional, you may just as well bite the bullet and work on your commandline skills.
  7. You need to change a couple of WP options in your local WordPress database: most likely:

    UPDATE wp_options SET
    option_value= 'http://192.168.1.20/dude/wordpress'
    where option_name='siteurl';
    UPDATE wp_options SET
    option_value= '/var/www/dude/wordpress/wp-content'
    where option_name='fileupload_realpath';
    UPDATE wp_options SET
    option_value= 'http://192.168.1.20/dude/wordpress/wp-content'
    WHERE option_name='fileupload_url';
    UPDATE wp_options SET
    option_value= 'http://192.168.1.20/dude'
    where option_name='home';
    Choose the IP address of your liking.
  8. Consider upgrading to the latest WordPress version. Since you’re local copy is almost working, do so.
  9. Consider install PHPXRef.
  10. Point the database server to the local server in the wp-config.php file. Don’t forget this.
  11. Log in to your local WordPress using the right user/password. Test the configuration.
  12. Set!
Posted in Wordpress | Comments Off on Local WordPress

Recent-links bug

There’s a small bug in Rebelpixel’s recent-links plug-in: clicking the monthly archive pages always appeared to return all the recent links, instead of the (selected) month/year. A quick look in the code tells me that it goes wrong between line 572 and 580 in the file rp_plugin_recent_links.php:


if (strlen(get_settings('permalink_structure')) > 0) {
$y = strval($_GET['y']);
$m = strval($_GET['m']);
} else {
$y = strval(substr($_GET['m'], 0, 4));
if (strlen($_GET['m']) > 4) {
$m = strval(substr($_GET['m'], 4, 2));
}
}

You may have noticed that I’m not a great fan of ‘clean permalinks’ (I have it turned off), which means that you can skip the True branch of the If condition. Obviously, there’s something not right in the ‘False’ branch. First of all, the $y variable gets the value of the $m variable. Second, there’s an extra IF condition to verify if the length of $m is greater than 4.

I presume that the function originally accepted values like ‘200601’ (for January of 2006) and that the programmer then decided to separate the GETs for month and year. The solution (when browsing through the code and confirming this behaviour) is simple: delete the whole if condition and replace it with:


$y = strip_tags($_GET['y']);
$m = strip_tags($_GET['m']);

Monthly Archives should work now.

I also readded the feed for the recent-links stuff: there’s something weird going on with the feed though. It doesn’t appear to be well-formed.

Update: There: that should do it

Posted in Wordpress | Comments Off on Recent-links bug

Zimbra. Browse. Play Ball!

Earlier I was following comments that (eventually) got me stranded at Zimbra. It appears to be a collaboration server with an AJAX (ugh-the name-the-name) frontend. Closer inspection seems to reveal that the product itself is a mix of perl and java. I might be wrong, but the result is pretty impressive as it allows to integrate with existing infrastructure and applications. It runs on a host of platforms, from Red Hat, Mac OS X to (yes) Debian. I noticed that the demo site didn’t like Opera though.

Earlier, I decided to manually upgrade my Firefox to 1.5.0.1, just because it is supposed to support SVG. There’s a host of applications that allow to export images to SVG. OpenOffice is one of them. If you really need a specific SVG editor, you may as well check out Inkscape (available for most platforms, including Windows). Back to Firefox: it does support showing SVGs. It doesn’t actually support animated SVGs. It’s a start, I guess. (Note how Adobe appears to back SVG: quite unlikely since it directly competes with their own Flash format [Adobe bought Macromedia, remember?])

I use either Firefox or Opera to browse around, nowadays. I’m sure, I’ve mentioned this before (I DID!): Opera’s URL autocomplete sucks big time. Listen guys: A TAB should trigger the selection of a URL.

Lastly: I’ve become a baseball expert. I know all acronyms. I know when players should start stealing bases too. I know the difference between a ‘knuckleball’ and a ‘change up’. I think. However, from a mathematical point of view, the best part of baseball is statistics. Hey: if you’re 0.593, you’re pretty good. More math is good.

Posted in Ordinateurs | Comments Off on Zimbra. Browse. Play Ball!

Upgrade to WordPress 2.0.1

I upgraded to WordPress 2.0.1, which ended up taking shorter than the last time. This time there were however more individual files and directories to delete: I feel tempted to write a shell script to do this for me next time. It’s pretty annoying to go into a specific directory and delete a subdirectory. Or a specific file.

If you have shell access, this is a good way to become millionaire! Install and upgrade WordPress!

And oh: WordPress plug-in structure actually sucks. They should look into the way how the NucleusCMS guys do this.

Posted in Wordpress | Comments Off on Upgrade to WordPress 2.0.1

Leave Your Mail

Merlin of 43 folders has a golden tip for people getting too many e-mails at work. Turn it off.

Well, if you’re feeling really ballsy, you could just just Quit Mail.app (ed. Apple’s main e-mail application) for a few hours and, uh, just go work. Yeah, I know: your world would implode if you had two hours without email. You’d be fired, jailed, or might even miss that whole thread about lunch at Chili’s vs. Applebee’s.

I noticed something funny: I hardly use and check my e-mail at work. I hardly send e-mails out to relatives. I hardly get any personal e-mails and if I do, I read them generally outside of my boss’ time: there are more important things to do than taking 20 minutes to reply an e-mail. (The best e-mails actually come from Alfons, but thanks to the timezone difference his mails generally arrive well after working hours).

Posted in Truro NS | Comments Off on Leave Your Mail