Category Archives: minipost - Page 4

The Scene Will Be Youtube-ised!

So, lame post titles excluded, the content.

Every now and then I run into a little something online which proves to me that the scene(s) isn’t(/aren’t) dead yet, and I’m a little bit rejoiced at it. Everyone toiling away in obscure little corners, still churning out some amazing things. And, for your enjoyment, I present the following.

Seems that today is good after all.

Theoretically Monday

Every now and then I wake up to a good Monday, but they’re few and far between. Thankfully, today is only a theoretical Monday (it is, in fact, a Tuesday, due to the holidays from Easter weekend), but nonetheless it’s actually doing well so far.

Part of what makes it good is that unlike the recent trend in my life, nothing of any ridiculous consequence has happened over the weekend. Another part is to wake up to some great reading. Many who know me would know that I’m no great fan of PHP (probably the world’s most famous dinky toy language), although any verbal argument about it is likely to be futile because of a variety of reasons. Thus it’s quite great to find this post that articulates all sorts of issues I often encounter on random occasions when I have to deal with PHP. Link via Jeremy.

Another for fun/schadenfreude. And this wikiquote page about the author of PHP is pretty great.

Lastly, I discovered Emika‘s music over the last few days via her latest mix on Rob Booth’s site.

Here’s to hoping for a fairly sane week!

P.S. Bashing? Who, me? Nevaaaaar.

Dokuwiki mredirect plugin URL bug

At work we have an installation of Dokuwiki which is now slowly but surely being replaced by Jira (because of some context richness being easier in Jira). During this migration we wanted to be able to automatically redirect people to the new Jira entry if the content has been moved. For redirecting within the wiki, we’ve previously used the mredirect plugin, but we recently found it has a bug in handling redirect to an external URL.

So, here’s the patch:

$ diff oldaction.old action.php
25c25,31
<         $url = ($p[2] == '') ? wl($p[1]) : wl($p[1]) . '#' . sectionID($p[2], $check);
---
>         if ($p[2] == '') {
>           if (preg_match("/:\/\//", $p[0])) {
>             $url = preg_replace("/^\[\[/","",preg_replace("/\]\]$/","",$p[0]));
>           } else {
>             $url = wl($p[1]);
>           }
>         } else { $url = wl($p[1]) . '#' . sectionID($p[2], $check); }
31c37
< ?>
\ No newline at end of file
---
> ?>

This is just a very basic check to see whether the matched text contains “://”, which should never be within a Dokuwiki URL path (ie., “http://wiki.domain.tld/ns:entry” or “http://wiki.domain.tld/ns/entry” should be the only paths one can ever run across). If it contains this text, the Dokuwiki bracket syntax is stripped out of the string and the resulting content is the URL (verbatim) to redirect to.

I’ve mailed it to the author of the plugin as well, so hopefully it’ll get patched upstream and work for other people using Dokuwiki too.

Side note: I wonder what the/a nice way to post small diffs like this is instead of just dropping it in a quote on a post. Github’s gist or somesuch?

[Update] plugin author has responded and indicated that the upstream plugin is now updated.
[Update 2] thanks Axu for pointing out that I was asleep as hell when making this patch

A Post Most Significantly Devoid

….of any sensationalism whatsoever. Or of any content in any form. This post is just for a URL that one can see without a crushing feeling of disappointment overwhelming you when there is, in fact, no feat or image of epic proportions in said post.

Here, have a picture of some spaghetti:

(Mental note: set up category-based RSS feeds too)

[edit] P.S. I blame daffy

South African IPv6 Usage

Over the past while Simeon’s blog has had a few posts concerning IPv6, and this alongside a few other posts that I’ve come across essentially indicate a very sad state of IPv6 in South Africa.

A quick check on Sixxs shows that while there’s a whole lot of allocations, many aren’t seen on the internet at all. We (AS37105) have had our network fully IPv6-capable for quite some time and we’ve even tested native IPv6 connectivity (dual-stack and IPv6-only) delivered to the customer over iBurst‘s network on a PPPoE session, so with all this IPv6 and no-one to send packets to we started looking at who we could get online. We’ve had a pretty good relationship with JAWUG over the years, and as of last night we’re transiting a bit of best-effort IPv6 for them. One of our customers, SA Digital Villages, has also had an IPv6 allocation for some time and their transit is now IPv6-enabled as well.

Here’s to hoping for more IPv6 in SA soon!

 

P.S. In another post I’ll explain why it’s hard to get IPv6 to a Telkom DSL customer in South Africa natively.

Time, NTP and Shiny Things

I see that Regardt beat me to the punch on this one, but we recently got a Meinberg timeserver going. It’s stratum1, publicly accessible and speaks IPv6 fluently! We’ve added it to the pools, so if you use the poolservers you’re quite likely to end up on it sometime.

Aptly named software

Just a quick post to also serve as a mental note for later, with two mentions to start off with:

  • RANCID — see here, aptly named because it is indeed quite rancid
  • slapd — the/a opensource LDAP server. The name is equally funny in Afrikaans and English, although the meanings are slightly different (“slap” would translate to “flimsy” for this specific context of amusement)
  • cacti – much like the cactus-plant from which this application derives its name (and which it uses as a logo), it’s guaranteed to be a pain to handle if you’re doing anything more than look at it
  • doxygen – check up the definition for ‘doxy’. This annoying software feels much the same way. Shacks up with something important (in this case the actual docs you care about), but you have to put up with it.