USD/EUR Exchange Rate Graph

The chart above shows the fall of the US dollar against the Euro over the last eight years, with some key events in American politics and economics noted, which may or may not be seen as causes or effects of the falling dollar. Larger version – PNG Larger version – Gimp XCF Source: European Central … Continued

William Tell: 700 Years On

Today marks 700 years since the date traditionally regarded as the day when William Tell shot an apple off the top of his son’s head with a crossbow and kick-started a resolution against the Austrians which led to the founding of Switzerland. The legend goes that the Austrian Hermann Gessler was appointed vogt (sheriff) of … Continued

Dhyana.pl Updated

This release works around errors in capturing screen shots from certain WMV files. It also changes the default geometry from 240×180+0+0 to “auto” which is an automatically calculated, hopefully appropriate, geometry. Download dhyana.pl Highlighted source code

Belgium

A story that seems to have had surprisingly little coverage in the British media is the fact that for almost half a year, Belgium has had no official government. Since the elections of 10 June, no government has been able to form a working majority, despite a lot of effort from the Belgian royal family … Continued

Kitties!

I’m told that the only thing that will bring me more traffic than pirated MP3s and hardcore porn is photos of kitties… The gorgeous models are our 15-month-old cats Chairman Meow and Mr d’Silva. Picture quality is awful as they’re from my phone. We really need to invest in a new digital camera, as the … Continued

The World in 2050?

Large PNG image Scalable SVG image I drew this map and wrote the skeleton of this article in November, but have only recently gotten around to finishing it… Empires The US is occasionally referred to as “the only remaining global superpower”. By 2050, I believe that it will still be a superpower, but that others … Continued

TrivialEncoder/0.2

An update to my PHP encryption class. Despite the name, it's becoming a pretty sophisticated encyption machine. New encryption algorithms added: Vigenerè cypher One-Time Pad Bruce Schneier's Superencyption Various other methods using the MCrypt library The TrivialEncoderManager class has been obsoleted by TE_Machine, an abstract class with several different child classes for encoding, decoding and … Continued

Sequential Video Thumbnails on Linux

So, I was looking for a way to create sequential video thumbnails (like this one) from a video file on Linux. I found that my options were severely limited. On Windows there are a plethora of tools capable of this fairly simple task, including Media Player Classic, but on Linux all I could find was … Continued

Command Line Interfaces, Again

I posted a couple of years ago that the command line is the interface of the future. Today I stumbled on a couple of articles that seem to agree with me: Command Line for the Common Man: Command Line Comeback The Power of Command Lines Quicksilver blows away both Apple’s Dock and Microsoft Windows’ Taskbar … Continued

Open Mobile Alliance DTD Oops!

The Open Mobile Alliance, who are responsible for co-ordinating the web-browsing efforts of mobile phones, seem to have misplaced xhtml-mobile12-model-1.mod. This file is a key part of the DTD for the latest version of their XHTML Mobile Profile standard, which defines how authors should construct web pages intended for the consumption of mobile phones. Now … Continued

Cryptography Challenge

Here’s a challenge. Decrypt… aWt6eWZlaWEKfWJjeWFvcwppa3p5ZmVpYQpvaWJlCmZjZ2sKZmNnawp5 emtpbwpub2Z+awpleWlreApkZXxvZ2hveApvaWJlCmhrZG0KeXpraW8Ka Wt6eWZlaWEKemt6awppa3p5ZmVpYQpmY2drCm9pYmUKa2Z6YmsKeW NveHhrCm9pYmUKeXpraW8KZmNnawpvaWJlCmtmemJrCnxjaX5leApvaW JlCnl6a2lvCmtmemJrCnl6a2lvCmlia3hmY28KZXlpa3gKZ2NhbwpnY2FvCm9 pYmUKZGV8b2dob3gKfmtkbWUKeXpraW8KZXlpa3gKZGV8b2dob3gKeX praW8KfmtkbWUKZXlpa3gKaHhrfGUKc2tkYW9vCmNkbmNtZQpkZXxvZ2h veAphY2ZlCnljb3h4awp+a2RtZQpvaWJlCnhlZ29lCnl+ZXoKaWJreGZjbwpl eWlreAp5fmV6Cn9kY2xleGcKYWNmZQp5emtpbwppYmt4ZmNvCmZjZ2sK a2Z6YmsKY2RuY21lCmdjYW8KY2RuY21lCmRlfG9naG94Cm1lZmwKeXpra W8KaWJreGZjbwp4ZWdvZQpvaWJlCm5vZn5rCmNkbmNtZQp+a2RtZQp5f mV6

PHP Domain Class

On Usenet an often-asked question is how to programmatically determine the “domain” of a particular hostname. That is, excluding the components traditionally thought of as subdomains. As an example, groups.google.com and www.google.com both have a domain of google.com. Invariably, one answer comes back stating that you just need to chop off everything from the front, … Continued

PHP Linkifier

Here’s a nifty bit of code I wrote a while back (utilising a function from PHP SmartyPants) that takes a bunch of HTML, searches it for some word or phrase that you specify, and turns all occurances of it into a link, unless it’s already a link!

PHP vs Perl

Here's a simple program which calculates, to eight decimal places, the value of the Golden Ratio φ implemented in both PHP and Perl, to demonstrate their similarities. Perl #!/usr/bin/perl $a = 1; $b = 1; $c = undef; $psi_old = undef; print “Approximating psi…\n”; while (1) { $psi = sprintf(‘%.08f’, $b/$a); last if ($psi_old eq … Continued