Page 2 of full list of posts


Scenes from my programming past: Puzzles I

In cleaning out our basement ready for our move, I came across the folders of my notes I’d laboriously written during the lectures for my Mathematics degree. There in the middle of Year 2’s notes were some notes on programming, and in there were a set of five puzzles. Presumably we were given these to see whether we could write a program to solve them. In FORTRAN, natch, because that’s all we had at the time. So let’s see how we do. Here’s the first puzzle. If OODDF is the square root of WONDERFUL...

READ MORE

The Mortgage Protection sleaze

Back in August 2015, I wrote a blog post about the sleazy auto-warranty companies mailing me trying to get me to sign up after I’d bought out the lease on my wife’s car. It’s turned into one of the more popular posts on this site, so, without further ado: it’s time for another sleaze! A couple of weeks ago, I closed on a new house for us: bigger plot and house, with a garage for a third car (hello, 64SAINT !), and air conditioning. We’re certainly happy about it and are going to be moving in a couple...

READ MORE

Five dozen

Numerology, like a whole bunch of New Age-y things, is a complete load of old bollocks. If you want to see some “meaning” in a bunch of numbers, those associations will be there to spot. Sometimes you can be convinced enough to put them on a lottery ticket and watch your money disappear. For me in my life – weirdly, perhaps coincidentally – it’s the number 12. But then again, 12 is this nice number that’s divisible by 2, 3, 4, and 6. You could also make some argument that it forms “nice” fractions...

READ MORE

Sheer panic

You might know the feeling. You’ve got a flight, 2+ hours. You’ve prepared and uploaded a bunch of ripped DVDs to your tablet, at least one or two of which you’ll watch during the flight. You pop your headphones on as the doors are closed and you start the first video. “Cannot play video. Please try again later.” Yes, this was me on Monday morning, my heart sinking into my boots. All I had, literally, for this flight to entertain myself were these videos. And they wouldn’t play. Maybe I’d overloaded...

READ MORE

Why I won’t use WordPress, in one image

From a site I’m the webmaster for, a list of requests that caused a 404 not found error: PHP attack! In essence, this was an automated attack, as it happened all within a couple of minutes (the list goes on for a second and third page). Some script kiddie running a script that was trying to get some response from the assumed PHP that’s running the site. Requesting a whole bunch of PHP files, one after the other. In fact it’s probably four kiddies (unless it’s the same kiddie trying four times, because...

READ MORE

Dell’s new Thunderbolt dock

Ten months ago – 10! It seems like yesterday – I upgraded my Dell XPS 13 to the latest version at the time and purchased a Dell TB15 Thunderbolt dock to go with it. Although the laptop is great, the dock has been anything but. Let’s put it like this: it took a long while for the drivers to stabilize enough for me to actually use it properly. Where ‘properly’ means some approximation of correctly. (For example, the Ethernet port was incredibly flaky and so I bought a Plugable USB-C dock to help out...

READ MORE

Automating the pasting of code in blog posts

So, just before Christmas, I switched to using a client-side library to highlight the code in my blog posts . The library I chose was Prism JS , and it works by marrying up some JavaScript and CSS to specially decorated pre and code elements so that their content (the code itself) is highlighted nicely. Specially decorated? Yep, it looks like this in the HTML: <div class="jmbcodeblock"> <pre><code class="language-foo"> _the code to be shown highlighted_ </code></pre>...

READ MORE

Replacing Microsoft Money – Moneyspire

Next on my saga of finding the best replacement for Microsoft Money – well, OK, the best for me – is Moneyspire . Actually, I half-heartedly tried this out some 8 months ago, but I wasn’t feeling the urge at the time and I stopped. At that time they produced a free version for a single account (if I recall correctly) but that’s now been dropped: you can get a two-week trial version with limited accounts and transactions, or pony up some cash for the Basic or the Plus version. I Paypaled $75 for the...

READ MORE

Replacing Microsoft Money – Moneydance

Well over a year ago, I upgraded my main machine at the time to Windows 10, and the one app that caused install and running issues was Microsoft Money . Since then it’s been pretty stable for me (and I’ve even got it running on a new, totally different machine), but I’m always well aware that one day, I’m going to run into some insurmountable problem with it, and then I’m hosed. So, better to think about a replacement for it while it still works, and what better time for that than over the New Year...

READ MORE

Highlighting code in blog posts

Once upon a time, I wrote a plug-in for Windows Live Writer that took code that had been copied from Visual Studio to the clipboard and converted it to an HTML pre block for my blog posts. The different colors were maintained during this conversion (in essence VS copies the code as RTF) so that the code displayed here in my blog posts would be nicely highlighted. I even published it to GitHub so that it could also be used for Open Live Writer too. That was then, but this is now. Advantages: it’s...

READ MORE