Web applications

Psychic predictions reviewed

You might recall that in January of this year Australia’s psychic of the year made some predictions for 2009. It’s now December, and I thought I’d take a look back at the year that was and see how Stacey Demarco’s predictions have faired.

1. Was Barack Obama assassinated?

The witch was concerned about the possible of an attempt on the lives of Barack and Michelle Obama (and, as she helpfully notes, she’s “not the only one in the spiritual community who thinks that”). Both Barack and Michelle Obama are fine. Prediction failed.

2. Kevin Rudd “may be beset with a serious, even fatal heart problem”.

It’s been 321 days so far and The Kevin Rudd Chronometer of Valour is still ticking—and so is his heart. Kevin Rudd, who has a pre-existing heart condition (he received a cardiac valve transplant in the early 1990s), is fine. Prediction failed.

3. Is Malcolm Turnbull the Prime Minister?

Malcolm Turnbull is not the Prime Minister. We haven’t had an election. This question and the next may not have been meant for this year in particular, but that’s what the Today Tonight segment was about, so that’s how I’m rating them. For now: Prediction irrelevent.

4. Is Julia Gillard the next female Prime Minister?

See above. Prediction irrelevent.

5. Did house prices stop falling after six months?

This really doesn’t seem like the kind of field a witch ought to be concerned with, but nevertheless: in the first quarter of 2009, house prices fell 2.2%, but in the second quarter, they increased 4.2%. For the prediction to be accurate they should have kept falling in the second quarter and risen in the third, but I’m going to be generous, since she’s clearly not very good with handling timeframes to begin with. Prediction successful.

6. Was August the nadir of the economic crisis?

I’m lazy, so I’m just going to go by the unemployment rate, which peaked at 5.9% in July and was about the same (5.8%) in August. If this witchcraft business doesn’t work out, maybe this woman could become an economic statistician. Prediction successful.

7. Did Slumdog Millionaire, Mickey Rourke, and Kate Winslet win the Oscars?

The psychic of the year’s predicted winners for Best Picture, Best Actor, and Best Actress were, funnily enough, generally considered favourites even by those without psychic powers. She was right on two counts, but was wrong about the Best Actor, which Sean Penn got in a surprise win. Now, if she had picked that one, I’d be impressed. Prediction failed.

The final score: ignoring the irrelevent predictions, two out of five. Does Australia have a new psychic of the year yet? It sounds like we need one.

Categories: Projects » Web applications » Braveheart, Humour, Local and Politics

The McDonald’s Breakfast At Any Cost Calculator

The McDonald’s Breakfast At Any Cost Calculator can roughly determine the best location to fly to to get access to the McDonald’s breakfast menu, based on flight time and whether it will be breakfast time once you arrive.

It is perhaps better explained with an example: it’s 1700h (5 PM) in Tokyo, and you want a McMuffin, but the breakfast menu isn’t going to open for another 13 hours. You can’t afford to wait that long, but where else can you go? The answer, as this tool will tell you, is Honolulu. You’ll arrive around 0616 local time, ready to stride into a McDonald’s and get breakfast. In Tokyo, it’s only 0116, and you would have had to wait hours longer for your McMuffin.

The code is very simple, and the time zone calculations don’t account for DST (since they don’t use the date at all). Flight times are calculated based on latitude and longitude coordinates, a distance formula I got from Wikipedia, and an estimated average flight speed. You can use this tool for times other than breakfast, but it will get confused if midnight lies between the start and finish times.

Categories: Programming » PHP and Projects » Web applications » The McDonald's Breakfast At Any Cost Calculator
The McDonald's Breakfast At Any Cost Calculator is a tool for roughly determining the best location to fly to to get access to the McDonald’s breakfast menu, based on flight times and time zones.

Avocado, an online image gallery application

Written in PHP and tailored to my needs, Avocado is a free lightweight personal online image gallery application I have been working on.

I’ll be using it for my own gallery, so you can see it in action there. This first release of Avocado is a beta version, 0.5, and it’s not going to get promoted out of beta until (among other things) it has better search and editing capabilities. Still, it’s perfectly usable as-is, although the documentation is highly incomplete.

It goes without saying that the source isn’t an amazing example of good coding. It’s not too bad, considering the scope of the application, and I certainly learnt some things along the way. Speaking of the source: zip (37.7 KB) or tar.gz (31.8 KB). Aside from compression formats, the downloads are identical.

Categories: Projects » Web applications » Avocado and Programming » PHP
Avocado is a free lightweight personal online image gallery application.

Psychic predictions

Tonight, viewers of Today Tonight were in for a treat: Australia’s psychic of the year, Stacey Demarco (who technically calls herself a witch), offered her predictions for the coming year. As the presenter promised, the details really were spine-tingling. There was one especially serious prediction, concerning Australian Prime Minister Kevin Rudd.

According to Today Tonight and the psychic, this year our fearless leader “may be beset with a serious, even fatal heart problem”. (One has to assume that Australia’s top psychic is not just referring to the rheumatic heart disease he already has a history of.)

While the language in the report is tentative, with a little analysis we can see that the prediction has simply been toned down to avoid alarming the viewing audience. The psychic recommends “better diet and exercise” for Kevin, but this warning brings up a potential paradox:

If Kevin heeds the warning and manages to take good care of his health, he won’t have heart problems in future. But, if he doesn’t have heart problems in the future, she wouldn’t have been able to predict them and warn him about it. Since the psychic has forseen heart problems in Kevin’s future, we know he’s definitely not going to heed her warning.

There’s no doubt about it: Kevin Rudd is in trouble.

I know the world’s thoughts are now with Kevin in his time of need, so I’ve created a centralised resource for everyone wanting to keep up-to-date with news on Kevin Rudd’s upcoming heart attack*:

braveheart.maestrosync.com

* Technical note: while the term ‘heart attack’ specifically refers to myocardial infarction, for simplicity, all life-threatening problems with Kevin Rudd’s heart will be included on the Kevin Rudd Memorial Heart Attack Counter.

Categories: Projects » Web applications » Braveheart, Humour, Local and Politics

Redesign: Novus

Today I have launched the latest version of www.maestrosync.com, which I have given the rather uninspired title of Novus. Fundamentally, it’s based on the latest versions of WordPress and K2. There was then much designing and coding (HTML, CSS, and proper PHP) and the site was born. Some brief notes:

  • I wanted to give the site a proper and stylish design, so I used a grid. It doesn’t leap out at you because the design is simple, but almost everything is aligned to the grid.
  • The colour scheme is a bit of a change for me—in the past I have mostly used shades of blue, but the red goes well with the darker blue.
  • This is the first version of the site which is really usable and easy to navigate, particularly when it comes to my projects.
  • The logo is a stylised ae ligature, which itself comes from when I used to style the title as ‘mæstrosync’.

There are still a few rough edges that I’m working on, so ignore them for the time being.

Categories: Programming » PHP, Design & graphics » Web design and Projects » Web applications » www.maestrosync.com

aftcast: scatters foam blocks from a great height

My latest mini-project, aftcast, generates random blocky graphics based on a few parameters. I intend to make it more customisable. It reminds me of writing little programs on graphics calculators back in high school.

Categories: Programming » PHP and Projects » Web applications » aftcast

Opinionated, again

Now featuring an administration panel and proper user management things. Also, some extra tweaks here and there. Opinionated is still very basic, but it’s quite usable.

Download

Categories: Projects » Web applications » Opinionated and Programming » PHP
Opinionated is a very simple content submission and rating system.

Opinionated yule/anti-yule (solsticed)

This is the latest version of Opinionated, my hyper-basic democratic idea sharing and ranking web application. I believe this version adds minor cosmetic tweaks and the ‘change password’ feature (yes, it’s that basic). I could add more features like moderation but I feel that would go against the spirit of free democratic discourse (although perhaps it could use an “exile user” feature). The code’s there, so if anyone did want such a feature they should be able to add it themselves (or ask me nicely to do it).

Download

Categories: Projects » Web applications » Opinionated and Programming » PHP
Opinionated is a very simple content submission and rating system.

First Opinionated release

This is the first release of Opinionated (the software). Everything you need is included in the zip: edit the variables in connect.php to suit your database, edit the $settings array in start.php to customise the strings, and import the contents of opinionated.sql into a new database.

Note: there is an extra array key you can customise that is not included by default in the source release: submittext. This defines a message displayed on the ’submit’ page: to use it, add something along the lines of
'submittext' => '<p>By submitting this entry, you agree to our rules of use</p>',
to the array definition.

Download

Categories: Projects » Web applications » Opinionated and Programming » PHP
Opinionated is a very simple content submission and rating system.

Opinionated

Opinionated is my new project and an experiment in democracy and content. Here anyone can (once they have signed up) post opinions of any kind—links, humour, insight, whatever—andother people can rate it. This is a minimalistic project, so there’s not much in the way of fancy features. Work out the navigation for yourself. Visit it, sign up, have your say, and help sort the wheat from the chaff.*

* at time of writing, it’s all chaff.

Categories: Projects » Web applications » Opinionated and Programming » PHP
Opinionated is a very simple content submission and rating system.