Cycling off

I ride a bicycle to the station on my way to work. Yesterday the velcro on my hi-vis jacket came undone, so I was doing that up with my left hand, and I tried to change gear with my right hand, but I pulled the brake lever instead of the gear lever, the front wheel stopped, I teetered a bit, fell, and hit my knee on the ground. Comical, if it hadn't hurt.

Since I've cycled regularly, I think that this is the fifth time I've come off. I've got a metal plate in my arm from one of them, but no permanent damage from the others. I usually ride when it's early, so I may not be that alert. Only one of them happened on the way home.

Obviously I should stop to adjust things. Catching the train is less important than physical safety, and cycling one handed was a contributing factor yesterday.

Also cycling is just riskier. I've never fallen off a car, and accidentally applying a car's brakes still leaves you sitting in the car.

I did once fall off a bus, but that's a different (but equally ridiculous) story.

comment count unavailable comments

Thinking about pyramids

I was looking at the Shard from my office window. It occurred to me that a tall thin pyramid is a silly shape for a building.

Cuboid volume: length × width × height
Pyramid volume: length × width × height ÷ 3

So the Shard is three times the height it needs to be for its floor space, if only the walls didn't lean inwards.

(OK, not quite, because the top few floors are an empty "spire", but they're small so it doesn't make much difference.)

comment count unavailable comments

What's wrong with elections?

I posted before about what's wrong with elections. I think that I got it wrong. The real problem is the candidates (and therefore the selection process). Everyone in the world thinks it's mad to let Trump anywhere near an election, but Clinton's approval ratings are poor. So Americans will be choosing between the crazy bloke and the woman they dislike. WTF?

Less distressingly, in the last US presidential election straight people were split down the middle (if we believe the Wikipedia stats) so it was the gay, lesbian and bisexual vote that won Obama a second term.

comment count unavailable comments

Switch on "Show window contents while dragging"

Some software that I use always switches off the Windows option "Show window contents while dragging". That means that dragging a window just moves an outline, and the window only moves when you drop the outline. That's grim. You can switch this option in Control Panel. That's a bunch of clicks, and it'll get switched back later. Grr!

Siva Mulpuru knows enough Powershell to fix a similar setting (thanks, Google) so I borrowed that code and fixed it up to do what I wanted.
$setwindowsdragfull = @"
using System.Runtime.InteropServices;
public class dragfixer
	[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
	private static extern int SystemParametersInfo (int uAction, int uParam, string lpvParam, int fuWinIni);
	public static void SetDragFullWindows ()
		SystemParametersInfo( 0x0025, 1, "", 0x03 );
Add-Type -TypeDefinition $setwindowsdragfull
Then I had to figure out how to run a Powershell script. This batch file seems to work.
@powershell -executionpolicy bypass -File SetDragFullWindows.ps1
Then I can put an icon somewhere handy and click the annoyance away.

comment count unavailable comments