Subscribe

Archive for December, 2008

Sudoku, AKA, you know you’re bored when..

Monday, December 29th, 2008

..you’re writing a program to solve sudoku puzzles.

I know there must be hundreds, nay, thosands of implementations out there but I figured why not give it a go. I’m current writing a program to solve sudoku puzzles just as a mental exercise in designing the algorithm to do it.

A problem I keep coming up against is I constantly think about ways to optimize it when I havn’t even finished writing the program and I have to decide whether I finish the current implementation or to go back and refactor it. I’m also often distracted by side issues like how to input the puzzle into the program or display it to the user.

Egypt, better late than never.

Friday, December 19th, 2008

Egypt…was interesting. An observation I’d like to make now that I’m back is that not enough of my photos had people in them. I don’t think I got any of the entire group, only fragments, and there are certainly not many of me. NB: I tried to fix this in Italy but I kinda failed. I guess I just hate people.

Right, so that was off topic. As I mentioned in the last episode of “This is Karl’s neglected brain” (Note, that blog entry is not published as I plead the 5th) I organised a very last minute tour of Egypt, and by last minute I mean the day before I flew out which included booking flights for the next day…. What I found out when I got there was that I had no idea whether my travel insurance covered the middle east, luckily Oasis Overland just wanted the policy number and luckily again I didn’t have any accidents while over there.

Deviating from topic again, highlights as I can remember them.

  • Three star rating for a hotel in Egypt doesn’t mean a lot.
  • Never be without toilet paper and where possible do not use public toilets.
  • I saw a lot of temples (click the links!)
  • Really long train rides from Cairo to Aswan which should take 11 hours, but actually take 19, suck.
  • There are a lot of hot foreign (eastern bloc) chicks at Egyptian temples, go figure.
  • We spent two days and two nights on a felucca, in ways it felt too long but then again it was just right.

The felucca was an interesting experience, all 11 of us were on the boat together, sleeping on the boat, drinking on the boat etc (well, apart from the lovely toilet breaks which involved digging a hole in the sand). In the evenings we stopped at a beach area along with other groups (different tour companies, same idea) and had a big bonfire, got drunk and all that.

Saw some more temples.