Blender Fox


Two Generals

#

It's been a long while since I posted anything of interest other than fitness and running, so here's something I found that isn't fitness related.

Tom Scott (Twitter: @tomscott) posted this video about the Two Generals problem. Basically it centres around two generals and asks how they can synchronise communication to ensure they two something at the same time.

In multithreading computing, including back when I was learning Java, we had a synchronized keyword which ensure only one thread went through a block of text. But here, you want two threads to proceed at the same time. How do you ensure that? Turns out there's no guaranteed way.

Even TCP requires a 3-way handshake aka the SYN, SYN-ACK, ACK (https://www.inetdaemon.com/tutorials/internet/tcp/3-way_handshake.shtml), but if any of those messages drops, the connection never establishes.

Of course you could just use the UDP method of "fire-and-forget" and say "Hey, General B, we're going to attack at 8pm, catch up if you have to", and have dropped packets (or casualties in the two generals problem)

This is an interesting thought experiment and one I hadn't considered during my time learning parallel and threaded programming.

Oh well, you learn something new every day, I guess.

Training - 13th August 2019

#

Went on a different route today. Decided to aim for 3km and did it, averaging 5:44 min/km, with my PB on the same route being 5:22 min/km.

First run in a long while that I'm actually pleased with. I broke no records in this run, but no matter.

Training - 11th August 2019

#

Finally did my 1.5 laps and it was hard.

Surprisingly, Strava logged me as doing one my faster runs, clocking at 5:39 min/km, with my fastest over the same lap is 5:19 min/km

Training - 10th August 2019

#

Another one lap around the park, dropped to walk several times, disappointing :(

Training - 5th August 2019

#

Made another one-lap. Picked a running playlist from Spotify to run too. Seemed to help.

First song was Pharrell's Happy and the last one was Backstreet Boys.

Cheesy and Corny, but definitely runnable.

Training - 4th August 2019

#

Made another one-lap around the park today. Faster average speed than yesterday. Tomorrow, I'll try 1.5 laps.

Training 3rd August 2019

#

Went running today, made one lap around my local park pretty comfortably, but my left ankle started to hurt. The same ankle I had a fractured metatarsal on a few years back. Here's hoping it isn't serious.

A few hours later it's eased up, since I'm not putting pressure on it.

I wonder if maybe the cushioning on my shoes aren't up to par now. Maybe I need to gait test again.

Today's run, since I'm no longer using Endomondo's training runs, I did the lap using a constant run, average pace was around 6:07 min/km.

Training - 28th July 2019

#

After a stupidly long time without running, I'm back at it. Did a lap of the park and I utilised a new app on my FitBit watch, which lets you set a target time and distance and gives you a running "partner" running at that pace to run against. So in this picture, I'm 22 seconds ahead of my running partner. We are both standing still as I stopped to take this picture.

What is neat about it is that once you finish, you can set save your finish time for next time to try to beat it.

Also, while running, I spotted a rusty old BlackBerry that was lying around

Looks like it belongs to Barnet Council...

Rain

#

After an excessive amount of heat over these past few days, it’s actually cooled down today. Even so far as to have some rain appear. Still rather muggy and humid and temperatures are low 20s even at 10pm.

Saturday and Sunday are set to have showers with low-20s as highs. Finally, I can potentially get back to comfortably running.

Heat

#

It was forecast to hit nearly 40 degrees C (104 F) yesterday. And it got pretty close where I live…

 

But pity the people who have to use the rail. In the heat, NONE of the rail providers could provide a decent service. They had plenty of excuses: speed restrictions, power line problems, signal failures. My journey home made me wait at Kings Cross for about 30 minutes for a train, and then the gate staff only opened ONE barrier. And it was no better on the underground.:

48.3C is 118.94F. In short, people were travelling in near 50C/120F heat.

And while it was 36-40C here in London in the open, it was only mid-20s in Malaysia

Training - 29th June 2019

#

Didn’t do my runs for most of this week due to being on call, so decided I had to run at least today.

And I happened to pick the hottest day to do it on, with temperatures set to hit 35degC/96degF in some places….

7 intervals 3min/2min with the first one being 3/3 instead of 3/2

Training - 23rd June 2019

#

So, 21 intervals today. Most intervals I’ve done in one session, though they were all 60sec/30sec run/walk intervals so they were more or less manageable

Training - 22rd June 2019

#

7-interval run, with 3-minute interval runs. Forgot to log this yesterday

Training - 17th June 2019

#

10-interval run today, with 2-minute run/2-minute walk intervals. Target distance was 5.34 km, ran 7.24km according to Endomondo, 6.87 according to Strava and FitBit

Training - 16th June 2019

#

Another 14-interval run today. Got to 4.6 km according to Endomondo, and 4.16 according to Strava

Google's Catch-22

#

Not often I post on problems at Google, but this is actually an interesting situation.

https://arstechnica.com/?p=1518703

Google had an outage the other week, and it knocked out several websites GitLab, Shopify and impacted others. Gsuite, Gmail, YouTube were affected, but not down.

There are some interesting lines in this article:

for an entire afternoon and into the night, the Internet was stuck in a crippling ouroboros: Google couldn’t fix its cloud, because Google’s cloud was broken.

Google says its engineers were aware of the problem within two minutes. And yet! “Debugging the problem was significantly hampered by failure of tools competing over use of the now-congested network,”

In short, Google Cloud broke due to congestion, Google couldn’t fix the problem because their tools required using the network that was now congested

Training - 9th June

#

14 intervals today. Damn, 14….

Training - 8th June

#

After several days of missed runs due to rain, I finally got a run in, in between bouts of showers.

Strava and FitBit logged this run at 4.66 km, but Endomondo logged it as 5km

Training - 3rd June

#

4km run today.

 

Training - 2nd June

#

Today and yesterday were hot days to run in (~25degC) and today’s run was a 9-interval,

6 of 60sec run/30sec walk and 3 of 30sec run/60sec walk

Training - 1st June

#

Bit delayed posting this update.  4 intervals, upped to 2 minutes rather than 1 min.

Training - 29th May

#

A wet and miserable weather day today, but still did my run.

Training - 27th May

#

No schedule C25K run today, so I went for a lap around the park with the intention of checking my 12-minute test run distance (aka Cooper Test)

Cooper Test: 2.13km, average pace 5:42 min/km. Endomondo shows a blip towards the end, but Strava doesn’t. And they’re both fed from my FitBit and while that does indeed show a blip, it’s not as extreme as the one in the Endomondo feed.

Regarding the test results. According to en.wikipedia.org/wiki/Coop… my results (2130m sits in the “good” range, but just about (2100-2500)) my record is 3.78km – though that was assisted by a downhill ^_^

 

Training - 23rd May

#

Lovely hot day today so a run in the park for my C25K plan with 4x 2 minute run intervals. Although the plan wanted a specific speed, there was no way I could jog that slow. Let’s hope the plan adapts…

Training - 23rd May

#

Straight walk today, no runs, for 2.80km