graham.reeds/

The second worst game show on Earth

February 11th, 2009 :: graham.reeds
Categories: Leisure ::Life ::Misc ::Work

Being off for a week I’ve experienced the dubious pleasure of watching Golden Balls, the second worst game show on Earth – the worst being Deal or No Deal.

The premise for Golden Balls is similar to Deal or No Deal in so far as much as you don’t have much say in the proceedings.

There’s a large amount of balls, all of which are golden, in a large rotating drum. These have a monetary value attached to them from £10 to £2,5000. They have a Clamshell/catch affair so you can open them and read the value, but they won’t open at by accident. 12 of these balls are released and roll down into another spinning drum into which a lovely assistant puts 4 ‘killer’ balls.  These random balls are then released down chutes to each player. They then position them how they choose on a 2-tiered rack and then open the front tiered balls for the world to see. Only they can see what they have.

So no player interaction so far. Now the contestants get to ‘play’. The idea for the players to discuss what balls they have and bluff about what they have. After the bluffing they decide which person to drop. This bluffing is pointless. You have no way of telling whether they are lying or telling the truth. The only logically way is to total up the values on show and make your choice based on that. Obviously killers override all other values and must be removed.

So now you have 3 players. The remaining balls are returned to the spinning drum. An additional 2 value balls are added as well as a killer ball. So they now each have 5 balls instead of 4. Again they display the front 2 balls and try to bluff about what they have on the back shelf. You have a little more information than before – you know what balls were there before. However you don’t know who has them. The best you can do is save the player with the most and drop the player with the least.

Now you have the head-to-head. This is where the true intelligence of the players shines through. The remaining balls are closed and placed at random on a field. The contestants pick one ball to bin and one ball to win. The balls are opened to reveal what the contestants would of won – like that makes a difference. If you get a killer, the value is divided by 10. So if you have 10,000 on the board and get a killer your prize fund is now 1,000. Another killer would reduce it to 100.  So killers at the start doesn’t make much difference.

But where does the player intelligence (or lack thereof) come into this? The players were going with their feelings whether a ball felt right or not. Eh? It’s a featureless golden ball – it looks like every other ball on the table. How can it feel of anything?

Okay. Now fast forward to the they end game. You have a prize fund. It can be of any amount. You have to decide whether to split (S) or steal (K). Your opponent has the same choice. There are 4 possible patterns SS, SK, KS, KK. What are the outcomes (with you first):

Recognise this? It’s a bastardized version of the prisoners dilemma. However, this version of game theory it rewards for stealing.

The correct way of doing this is to tell the opponent you are going to steal and offer them a fixed value of less than 50%. Point out that they have no chance of winning any money unless they accept your offer. Tell them what they can buy with the money. If they point out you’d be getting more, point out that my winning is irrelevant. They will be getting zero or the amount you have offered. Always make it about them. And steal.

Nice guys finish last.

0 comments.

Is iTunes the worst piece of software ever?

December 30th, 2008 :: graham.reeds
Categories: Leisure ::Life ::Misc ::Web

Okay first it is a 65.5mb download and requires 200mb of space. For a piece of software that plays music and video. Even this day and age of bloat, that is a tad excessive.

I have a large music collection on a different machine – it is a slow connection (see previous post) and I told iTunes where it was – now my machine is unusable while it indexed the 2000 tracks in that folder – and I have another two folders to go. You can’t minimize iTunes while this is going on due to the modal dialog, you can’t inform it of other locations that you want indexing. But it doesn’t stop there, once the modal dialog box finally buggers off and you tell it of the next folder you want indexing it has started on a “gapless playback” and now your machine really crawls as it tries to do two things at once. My fault for having a slow network? Maybe that is part of it, but I can set the folders up in Winamp and have it index at the same time and Winamp is a fraction of the size and I would hazard that Apple can afford to hire better programmers.

When you first index your music iTunes claims it is getting album art automatically. Cool – that’s neat. However I have this other folder to index, you can get the art later. So you index the album, let the gapless playback work out its stuff and then select all and then tell it to ‘Get Album art’. No can do – you need to be signed in. What? You didn’t need that a few minutes ago why now?

Now comes the really insiduous part of it. Okay lets’ create an account, and this is what I really don’t agree with. Why does Apple need to know my house address, what I do for a living, and my telephone number? And I am never going to buy stuff at the Apple Store so I don’t want to give you my credit card details but I can’t sign in without handing over my details. So I did a google search for a way and now I definitely don’t want to hand over my credit card details.

Fortunately I found a tutorial on YouTube that details how to get an account without handing over those details.

Update: I’ve now got my account by the above method. Something I didn’t mention was that I indexed my collection with a wired connection, but the wired couldn’t stay as it was laying directly across the living room, so I am back to my slow-ass wireless. Whether this is what is affecting the album art updating and causes it to crash out about the 1200th cover (which happens to be where my compilation albums exist). Perhaps crash was a bad word, how about hang, or just stop. Whatever. The point is it hasn’t finished the albums and there doesn’t seem to be a way of kickstarting it.

Not only that the only way of getting it restarted is to shut down iTunes. This brings up a dialog box telling you that you are get the album art and whether you are sure you want to stop this. Naturally you click yes and as iTunes shuts down a dialog flashes up for the briefest of seconds – looks like one of those ‘Do not show this dialog again’ boxes. But does it get all my albums? No. And the albums it get are pretty varied. Missed The Chemical Brothers, but did get Blutengel.

Final thing: The iPod has an update available a 57.8mb download. What?! It’s a software update!

0 comments.

Linux

November 17th, 2008 :: graham.reeds
Categories: Leisure ::Life ::Misc ::Programming

People bleat on and on about how much better Linux is than Windows. Here’s some news: I’m fairly bright, and I like challenges, but even I am getting frustrated at Linux. I’m using RedHat 9, which might make some of you mutter “Why isn’t he using Ubuntu?”. Well I’ve joined a group of like minded individuals, and we’ve inherited a server and it happens to be RedHat 9. So it stays.

So I get VirtualBox, download the 3 CD’s that RedHat is provided on and start installing. The installation was painless. However getting the needed stuff installed is where things collapsed. Every website and forum that goes into installing redhat files has a slightly different way of doing things. But they don’t tell you where to get the files from: “Type the following to extract the apr-1.2.5-41b+8.tar.gz”.  That’s fine, but please tell me where to get that file first. Also installing from source isn’t the greatest it’s cracked up to be. Various software components organically evolve – functions come, go and get renamed or deprecated and dropped. So trying to compile several things from releases that you try and glean from the net isn’t the productive, especially when you have to wait 10 minutes to find they aren’t compatible. So there goes rpmfind.net.

And that brings me to my next point: The point of the tools is to make me more productive, not the tools themselves. Spending an afternoon trying to install software (Subversion of all things) isn’t productive. Windows takes about 30 seconds: Download the msi, double click the msi, accept the default config, done.  I can now start using Subversion. Can I use it on RedHat? No. Because I still haven’t got it installed.

So why don’t I use the install I have on my Windows box? Because I am trying to get the steps figured out so we can use it on the server without me borking the entire server.

This is the reason why Linux will never break the strangle hold of Windows. You may say that if I used Ubuntu then I wouldn’t have this problem, but RedHat was released in 2003.  I can still double click MSI installers created in 2003 and be confident that they will work as advertised.

0 comments.

Stack Overflow

August 4th, 2008 :: graham.reeds
Categories: Misc ::Programming

Stack Overflow, the website that bears the same name as the podcast, has opened for private beta testing. I am honoured to be one of those beta testers. Unfortunately I haven’t been able to ask or answer a question as I don’t currently have any to ask, and everyone has already replied what I would replied to the topics that caught my eye.

[yes - this counts as a post just to let people know that I haven't forgotten about you all]

0 comments.

Skanked!

June 28th, 2008 :: graham.reeds
Categories: Leisure ::Life ::Misc ::Web

A while ago I purchased a 320gb hdd for my media center. When it arrived Windows recognised it as being 298gb in size. I didn’t quibble – I wish I did now.

Recently I replaced it with a 500gb drive by the same company – Western Digital – but Windows recognises it as being only 465.76gb in size.  Where’s my other 35gb?

I’ve been caught by one of those 500gb = 500,000,000,000 bytes (500x1000x1000x1000).  If you do the maths properly, you get 500,000,000,000/1024/1024/1024 = 465.66gb.

In other words, if you are in the market for a new drive, steer clear of Western Digital. I used to like Maxtor drives, but I switched because Maxtor were more expensive than the competition, but now I wish I’d stuck with them. It seems Maxtor were charging more because they were giving you the actual drive size – not an imaginary number.

Update: Even my Maxtor drives are doing it now: I have 2 40gb maxtors in this machine of varying ages and they both report differing amount of available space.  One is 39.6gb in size and the other is 38.1gb. Neither quite 40gb but both above the 40,000,000,000 mark:-(

0 comments.

Deviant practices by Big Blue

August 15th, 2007 :: graham.reeds
Categories: Misc ::Programming

IBM have started making their developerWorks section available only if you sign up. This is fair enough, they have a good resource and they have the right to track the comings and goings of their readers.

However the thing that riles me every time I have to log in is their practice of taking me to a page where I can “review my contact information” – like it changes regularly – but there are two tick boxes at the bottom of the page, both unchecked:

It is sooo infuriating having to tick the bottom box on each log in because I know that if I forget, even just once, I will be buried under an avalanche of spam. While it may not be illegal it certainly isn’t friendly.

0 comments.

Open Source Software

July 15th, 2007 :: graham.reeds
Categories: Misc ::Programming

Okay this is a rant. Feel free to come back when I have written something slightly more constructive.

One of my many projects I have on the go needs a C++ SVG library. So I do a search for C++ SVG libraries, of which there are several. However most of them either require GTK+ or Qt. Not useful to me as I have an perfectly usable windows tool-kit called MFC. You’ve might of heard of it?!

So finally it comes down to three: AGG, Cairo, and Keystone.

AGG isn’t really a complete SVG library, but more of a basis that can be used to implement one. In fact they give a basic library to demonstrate the promise that AGG gives. However it may be useful depending on how much of the SVG spec I need, but for now it’s out.

Keystone is an SVG library with some good examples, but it hasn’t been updated in a couple of years, and there wasn’t a quick overview of what parts of the spec it does and doesn’t support. Also the author never replied to my email. So that is out.

Leaving Cairo. Now I had high hopes for Cairo as it is used by Mozilla for the rendering in Firefox, et al. It is being worked on and it gives accelerated graphics via Glitz. Since Moz uses it then it should support Windows straight out the box, right?

Wrong. First you have to create a file that the Windows version will need. They have an html page that shows what the content of the file should be…Why not just include it in the distribution in the first place? You then need to download the MSVC 7.1 project from a third party website. This has what is needed to compile it. Except it doesn’t. It needs libpng. So I go looking for the DLL, but it’s not that easy – they don’t have a simple “Get Binaries here”. You are led around in circles. The version says 1.2.8 but the program looks for v1.3. So I get the source, but I can’t compile that because it thinks there is an error in the zlib source (except there isn’t as even my little knowledge of assembler can tell that there isn’t a problem with the source, and you’d think by version 1.2 they’d have fixed a major flaw like that). Maybe it is the source that comes with libpng, so I download the actual zlib, but that has the same problem. None of these programs have a project for MSVC 8, but relies on the project converter to actually transfer all the information correctly.

So after 3 hours I have several directories of uncompilable code. You’d think that the Windows version would compile straight out the box because, well, there are more people using Windows so most effort would go into that version. I’d lay money on the fact that the downloads for the Windows version of Firefox is double what any of the others are put together. But no, the Windows version is treated like the red headed step-son and ignored because it’s not cool to work “for the man”.

Tonight I am trying another 3rd party binary distribution. I’ll see what comes of it, though I would rather be able to compile my own so when the software gets updated I can update as well instead of relying on someone else…

0 comments.

Ringing the changes

July 11th, 2007 :: graham.reeds
Categories: Life ::Misc ::Programming ::Work

Been merging code bases at work, from several forks to one. I was hoping to get this done after we install TFS but my boss wants it done before we do our final check in to PVCS 5.3, which is his prerogative. It falls to me, however, to perform the merge, and I am doing the merge blind – that is I don’t know what the code does, and there is no one to ask.

So what tools can I use? Well PVCS has a code compare tool, which I guess can be used, but given that even the most basic check in is fraught with dangers I am loathe to use it. Any source control that requires you to manually hack a file isn’t to be trusted.

So I did what I normally do in situations like this where the tools I have around me aren’t up to the task, or are found lacking. I hit SourceForge.

There I found WinMerge, which is simplicity in itself. A very nice interface, and wonderfully intuitive, unfortunately it get’s confused easily, especially if the two files being compared are disjointed (bits swapped or moved). This was my primary tool in performing the changes. Also there doesn’t appear to be anyway of taking both section changes into a single file.

So the next tool I found was KDiff3 which is a lot more robust, but with an awkward cluttered interface. In WinMerge you select the two file you wish to merge and then use Alt-Up/Down to cycle between differences. Then you use Alt-Left/Right to decide which side to keep. Very easy and very quick.

KDiff3 uses Ctrl-Up/Down and puts the merge changes into a third file. The GUI isn’t as nice or as clean as the WinMerge one it is a more powerful tool. However to select the changes you have to use Ctrl-1/2/3 (KDiff3 supports 3-way merges) which while doable with one hand means twisting, and with a lot of changes in a file makes it a good candidate for inducing RSI.

Now my advice would be for WinMerge to use the KDiff3 engine (from browsing the mailing list that would require a rewrite of most of WinMerge) or have KDiff3 use the keyboard layout of WinMerge and steal some of the visual designs from it. Both a good tools in their own right but what is stopping them from becoming great tools they both have.

1 comment.

No Means No!

March 16th, 2007 :: graham.reeds
Categories: Misc

Where I work likes to keep the machines up to date with the latest patches on all their systems. There is nothing wrong with that, but the way automatic updates goes about it is.

About an hour ago I go the message that as part of the automatic update my machine needs to be rebooted, and gave me a choice of now or later. Due to me debugging some treacherous code I selected later but Automatic Updates doesn’t believe that I will update my system, and keeps reminding me that I need to reboot like I have the attention span of a goldfish. I DON’T WANT TO REBOOT – I’D RATHER KEEP WORKING ON WHAT I AM DOING!

In fact I have had to dismiss it while writing the post.

0 comments.

Google Notes

March 12th, 2007 :: graham.reeds
Categories: Misc

One of Google‘s plethora of useful tools that are making it as extensions to Firefox is Google Notebook. It’s exceptionally useful though it does come with a pointless “Open Notebook” text next to the icon in the status bar. It’s not needed so it has to go. Also if your status bar was a mess like mine you will need the Organise Status Bar extension.

This is written from a Windows perspective so you might need to change some points in your religion of choice:

  1. Close Firefox.
  2. In your Profile, go into extensions\notebook@google.com\chrome\chromeFiles\locale\<your locale> back up the two files that are there (google-gnotes.dtd and the google-gnotes.properties).
  3. Open them in the editor of your choice (notepad works fine).
  4. On the lines that say openNotebook make sure that there are nothing in the quotes or after the equals sign.
  5. Then remove the key in the gnotes.accessKey. If you leave it in you get a solitary letter next to the icon.

It’s not quite perfect as you have a small space to the right of the icon, but at least there is no ugly text. Hopefully for future versions this hack will not be needed. I might look into this at a later date, but for now it suits me fine.

Also, as an aside, it is interesting to note that the extension works on any page. It would be nice if the GoogleTalk functionality of the GoogleMail page was extended to do the same.

0 comments.

« Previous Page « Newer