Posts

Showing posts with the label geekery

Java Date Comparisons

I've just started to use Java, having never coded with it before, and today ran into a bit of trouble with date comparisons.  The obvious option that I wanted to use had been deprecated so I needed to find an alternate. Whilst Google and StackOverflow are normally my very best friends when it comes to this sort of issue, today they were only a little helpful, pointing me in roughly the right direction but not actually hitting the target. What I needed to do was add 6 years to a variable date and then compare that to today's date.  Sounds easy enough, and in Java version 6 it was, but now things have changed.   I found a useful class called Calendar, however, all the online blogs, tutorials and user comments only showed me how to add years to today's date, which is easy as pie.  What none of them told me was how to add 6 years to another date.   It's probably really obvious for most folks out there, but given the number of questions I found by people askin...

Logic FAIL: Monty Hall Problem – GAH!

Now those of you who know me well will know that I love maths, I can spend hours and hours playing around with equations and figures and formulae, however a friend (http://rocko.co.nr/) told me at the weekend about the Monty Hall Problem and this one got me right in the logic chip. My first reaction to this was ‘that can’t be right, it doesn’t make mathematical sense’. It is a very counter intuitive problem and one that has caused much debate over the years if my googling on the subject is anything to go by. The problem for those of you who don’t know it: "Suppose you're on a game show and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the other doors, opens another door, say No. 3, which has a goat. He then says to you, 'Do you want to pick door No. 2?' Is it to your advantage to take the switch?” Ref: http://math.ucsd.edu/~crypto/Monty/montybg.htm...

Probe to crash into the moon

This could be interesting to watch: http://www.msnbc.msn.com/id/33196816/ns/ technology_and_science-space/

Defrag Your Indexes Script - Version 1.1

As it's getting kinda large now, version 1.1. of the script is attached as a link on the right. Constructive comments/suggestions welcomed. Also, let me know if it's useful for you. :)

The wee beasty is out of its box.

Image
Shiny, new, lovely - happy sigh! 6 RAM slots could be kinda useful It's a processor that means business when the fan is bigger than your mouse, and hand... Blue lights are supposedly very calming. This should be perfect for staying cool, calm and collected when battling hoards of zombies. I guess it might be a good idea to stick an operating system on it now, will need to turn it off and stop looking at the calming blue lights first though.