Showing posts with label logic. Show all posts
Showing posts with label logic. Show all posts

You're writing dates wrong, probably

I've been having this argument with people recently. We write dates wrong.  Here's why:

Today is the 18th day of the second month of 2017 (unless of course, you are reading this in the future, in which case, how long did you have to wait for hover-skateboards and what do teleporters feel like, and does anybody in the future remember those couple of months when American had President Trump?).

Most people will say that today's date is "The 18th of February 2017" and will sign documents with digits 18/2/17, or 18/02/17 (or if in America, the even more horrible 02/18/17).  The problem is of course the confusion here as to what the digits mean. Is it the 18th day, or the 2nd day, or the 17th day of the 18th month of year 2....?

When you stop to think about it, writing dates in either British or American formats is deeply confusing and fundamentally illogical.

Much better to write the date as 2017-02-18.

That's YYYY-MM-DD.

There are a number of reasons for this.  Firstly, documents date stamped in this way will automatically be sorted into chronological order. Someone sent me a document today from a recent meeting. The filename was DD MM YY. I can only imagine what a mess their 'my documents' folder looks like. Perhaps they like having all files written on the first day of every month next to each other? Or maybe they are The Doctor, from Doctor Who? You see, time is not a big ball of wibbly-wobbly timey-wimey 'stuff'. It is a strict line.

Fun, but wrong!
Secondly, we have always written time in the same way. Currently, looking at my clock, it is 11:47 in the morning. My accurate clock tells me that it is 12 seconds into the 47th minute.  That is 11:47:12, or HH:mm:ss.  That means that the current position in time could be written as:


2017-02-18 11:47:12

Notice that the largest unit of time is on the left. As you move through the digits, the units of time become progressively smaller, from years to months to days to hours to minutes.

Is there anywhere else that we also apply this logic?  Consider the number "three hundred and forty nine".

It would seem logical to write this as "349", with the largest unit on the left, getting progressively smaller.  It would be very silly to write it as "493", or even "49 and 300", or "four hundred minus fifty-one".

How about your postal address? You probably also write it in order of size:

Little person
Some house
A Street
In a little town
County
Country
Your massive planet

Of course, I am only talking about written dates here. I think it is perfectly acceptable to say "Saturday the eighteenth of February", or "it is nearly ten past two" in spoken English.

In fact, you shouldn't be surprised to discover that there is an international standard for date formats (and it makes incredible sense to adopt it all in written documents). It is basically what I have been banging on about in this rant.

No longer should you accept the problem of interpreting a date written as 04/05/11 as being the fifth of April in the late Roman period, or possibly the eleventh of May, or possibly April, in, um, in year 4, or maybe 5. Oh, my brain!

Right now! I mean, just then....no, it's gone.

If you enjoyed this rant, then you probably want to take a long hard look at yourself, however you might also like to read about why Americans drive on the wrong side of the road or perhaps you would like these articles about calendars.

See you for some more nerdy stuff in the future......

Where's your petrol cap?

My car recently broke down leaving me stranded and awaiting recovery. Following a freezing cold wait by the side of the road (for two and a half hours) I was picked up and the car and I were taken to the nearest car dealership, which just happened to be where I bought the car from in the first place. Following a heated discussion I was finally supplied with a courtesy car.

So I found myself driving an unfamiliar Hyundai with a bare trickle of petrol in the tank. I promptly went to the nearest petrol station to fill up (my American colleagues call it 'gaaas'). As I joined the queue I was hit by the sudden panicked thought that I did not know which side the petrol cap was located.

Rather than trying to peer out of the window to see if the cap was indeed behind me on the driver's side, or jump out into the cold and run around the car looking like a fool, I remembered a rumour I had heard that the dashboard of modern cars indicate the location of the petrol cap.

Look for the little arrow on you dashboard located near the petrol gauge. The arrow indicates the position of the cap. Here it is pointing left, so the cap is on the passenger side.

Petrol cap side indicating passenger side (in a UK car).
The other arrow in this image shows an estimate of the number of miles I can travel before requiring another top-up. This is only an estimate, and it is fun watching the number change as your fuel efficiency changes. You will get more miles to the gallon when travelling at a constant cruising speed in fifth gear than when idling in city traffic.

My American or European readers might be surprised to discover that here in Britain we drive on the left (by which I mean the 'right' or 'correct' side of the road).  Why is the left the best side of the road to drive?  The number one reason that reason on the left-hand side of the road is perfect for the right-handed driver is that it keeps your strongest arm on the wheel freeing your weaker arm to operate the gears/hand brake/entertainment system. This allows you to be more responsive when making unexpected maneuvers.

Don't believe me? You just need to look at road-traffic deaths by country. Countries that drive on the left have fewer fatal accidents.

Road traffic fatalities by country. The lighter the colour, the safer the roads.

A whole load of logic games for all you geeks

Earn yourself +1 geek experience point  for every puzzle solved.

Plastelina Interactive Logic Games

I am a big fan of this site because the logic games really come to life and there are loads to choose from.  Here is the classic you have a wolf and a sheep and a box of cabbages and you need to get them all to the other side of a river, only you can't leave the wolf and the sheep alone, for obvious reasons, similarly with the sheep and the cabbages.  Well, I won't spoil the fun for you if you haven't already solved it...

The first step to solving the puzzle - the only safe move.
Game number two is a variant of the above game, only this time you have three missionaries and three cannibals.  The Cannibals eat the missionaries if ever they outnumber them.

It is worth getting this wrong a few times - and you most likely will - just to watch the cute animation of the cannibals eating the missionaries.
...and so it goes on.  There are fifteen games to choose from and I recommend heading over there soon.


Strand

A really nice puzzle game that gets very devious.  In Strand you must complete each level by stretching the elastic bands over the virtual pegs.

Stretching elastic bands to connect the dots.

The number on each peg tells you how many bands you need to connect.  In this image the puzzle is nearly solved.  Just one more band to connect.

...and here is a walk through in case you are stuck...




Peg Solitaire

You have probably played this before in the real life (but that is waaay over-rated).  In Peg solitaire simply move the pegs one over the other to remove them.

Move each peg so that it jumps over another peg. That peg is then removed - sort of like in draughts.

The game gets steadily more difficult.  There are two constraints, first the last peg must land on the black space, and also you only have sixty seconds to solve each puzzle.


The four colour problem

It is said that you only need up to four colours to fill any map. In this puzzle you must play against the computer to fill the largest possible region in your colours (two for you and two for the computer).

Sort of like Risk, but then again, nothing like Risk.


The Game of Marienbad

Saving the most evil until last.  Try and beat the enigmatic 'M' in his favourite game - Marienbad.  There are four piles of sticks and players take turns to remove any number of sticks from one pile (but only one pile at a time). The player who is forced to pick up the last stick is the loser.

It starts off easy.  Pick any number of sticks from one row.

And then you get defeated.

Over and over again.

When you get bored of being humiliated by 'M', do check out the rest of the SmartKit website. There are dozens of games to play.  One of my favourites being Rightbot, leftbot.

A very simple game that gets very challenging quickly.  in this game you push the robots using the corresponding buttons.  Each robot can only move in one direction when activated, but they can push each other as well.  Introduce a few teleporters and obstacles and you have a very challenging game.
Th..th..th..that's all folks.
If you are still awake and you managed to scroll this far without it just happening in your sleep then you might be interested in some of our other geeky posts:

Five games to get you thinking today - more puzzles for geeks.
Weird particle art thingums - doesn't the name say it all?
Ways to waste time on the Internet
or, if you just want to play an adventure game, check out:
Have Spell Will Travel.
See you next time for more geeky stuff.

Cool, #Logic Gates using #dominoes

A series of videos explaining #logic gates using dominoes (some even work).

A cool introduction to logic using dominoes.  +1 geek experience point for #numberphile.



A 4 bit full adder using dominoes that works - sort of - the 'world's slowest computer'?



AND, OR and XOR logic using dominoes. +1 geek experience point for Neil Fraser



Domino logic gate with Nick Poole using #arduido demonstrating the full adder (add +1 geek experience point).

Label

World Karma Game