
Itās a pretty special moment when you get up to Indian Rock Park early enough to have the whole thing to yourself. The only problem with it is that I want to sit up here all day.
life, coding, technology, outdoors, photography

Itās a pretty special moment when you get up to Indian Rock Park early enough to have the whole thing to yourself. The only problem with it is that I want to sit up here all day.

This is an absolutely beautiful (yet heartbreaking) memoir written in the midst of World War II.
Completed in 1942 (and sent to his publisher just days before he and his wife took their lives), it provides an intimate and fascinating look at life in Europe during the end of the Victorian Era and through two world wars.
I think one of the most striking things about this book (especially in the later pages) is how mournful, almost hopeless, Zweig is about the state of Europe and the world as a whole. And itās no surprise, right? He was an Austrain Jew who saw the home and the people he loved destroyed.
Take this passage, written about Paris. He lovingly describes his time in Paris after he graduated from university and how it was a city that could always make people happy.
āI had promised myself a present for the first year of my newly gained freedomāI would go to Paris. Two earlier visits had given me only a superficial knowledge of that city of inexhaustible delights, but I could tell that any young man who had spent a year there would be left with incomparably happy memories for the rest of his life. Nowhere but in Paris did you feel so strongly, with all your senses aroused, that your own youth was as one with the atmosphere around you. The city offers itself to everyone, although no one can fathom it entirely.ā
And then a paragraph later, we get to the hard truth about the time period this book was written in:
āOf course I know that the wonderfully lively and invigorating Paris of my youth no longer exists; perhaps the city will never entirely recover that wonderful natural ease, now that it has felt the iron brand forcibly imprinted on it by the hardest hand on earth. Just as I began writing these lines, German armies and German tanks were rolling in, like a swarm of grey termites, to destroy utterly the divinely colourful, blessedly light-hearted lustre and unfading flowering of its harmonious structure. ā
Another powerful aspect of this book is that while reading, we know that he would soon take his life and heād never get to see how this tragic story (World War II) ended and how the cities, art and music he loved would eventually recover.


We had a bunch of kiddos over for a birthday party yesterday and Benson is just done.


The Civilization series is easily one of my favorite video games of all time. (See here, here, here, here and here). I have very fond memories of talking to my middle school teacher about various strategies to utilize within Civ I and I still vividly remember the wickedly cool box art.

So, itās no surprise that Iād dig into the memoir of the man who created the games himself, Sid Meier.
Itās a nerdy trip through early computer gaming history and fostered a bunch of nostalgia for old DOS games that I used to play. Itās also a fantastic romp through the mind of a game designer.
There were a number of fun little quotes and life lessons, as well:
āI think that in life, as in game design, you have to find the fun. There is joy out there waiting to be discovered, but it might not be where you expected. You canāt decide what somethingās going to be before you embark on it, and you shouldnāt stick with a bad idea just because youāre fond of it. Take action as quickly and repeatedly as possible, take advantage of what you already know, and take liberties with tradition. But most importantly, take the time to appreciate the possibilities, and make sure all of your decisions are interesting ones.ā
The turkeys in this town are relentless.
Yes. That is in fact a turkey on top of a car.




Recently, I went down a rabbit hole attempting to learn how to generate interesting looking maps for games (insert mind-blown-gif here). While Iām not going to be using Voronoi diagrams anytime soon,Ā I am still interested in attempting to generate Civilization-like maps.
Most map generation algorithms rely on perlin noise. I wanted to go a different route.
So far, these are the rules that Iāve come up with for my algorithm:
1. Create a grid of some given size (e.g., 100 x 50). Set all tiles to āoceanā.
2. Randomly pick 8 tiles (variable) across the map to seed as ālandā.
3. Now iterate across all tiles on the map and build an array of tiles that are āoceanā tiles but have a land tile N/W/S/E of them.
4. Once you have this array, randomly pick a single value. Flip it from āoceanā to ālandā
5. Repeat step 3 until a given number of tiles have been filled across the grid (e.g., for an āEarth-like planetā, 30% of tiles will be land).
6. Now, to add some additional randomness ā iterate across all tiles and build an array containing all ālandā tiles next to water (N/W/S/E).
7. Randomly pick 1, flip from land to ocean.
8. Repeat step 6 a given number of tries (e.g., 100).
9. Done! (Maybe)
Height maps, biomes and all that can come later. To quote Amit, whom I linked to earlier:
The most realistic approach would have been to define elevation first, and then define the coastline to be where the elevation reaches sea level. Instead, Iām starting with the goal, which is a good coastline, and working backwards from there.
Anyway, itās been kind of neat to figure out.
Another example map, created using the above rules:

Ā

TL;DR After a lot of testing and isolating devices, Iāve determined that the RK G68 RF receiver for my swanky new mechanical keyboard causes my Windows 10 machine to wake up immediately after putting it to sleep. And Iām not sure how to fix it.
Join me on an epic journey of heartbreak, anger, loss, triumph and sadness as I try to diagnose some sleep issues.
ā-
So, the issue is that if I manually put my computer to sleep (Start Menu -> Power -> Sleep), the machine goes to sleep, fans turn off, and all that. Sweet! Then, after about 5 seconds, it wakes right back up. Uh, what?
Iāve done a number of debugging and testing steps which Iāll outline below (hopefully, this helps some folks in the future).
Letās do a couple of finger stretches, put on our hacker pants, and open up PowerShell (with admin access). We can run a nifty command called powercfg /requests
I see the following output:
DISPLAY: None. SYSTEM: None. AWAYMODE: None. EXECUTION: None. PERFBOOST: [DRIVER] Legacy Kernel Caller Power Manager ACTIVELOCKSCREEN: None.
Great! But not really super helpful. We visit our friend, Google, and I see that there is a command to disable this:
powercfg -requestsoverride Driver "Legacy Kernel Caller" System
You havenāt lived until youāve copy and pasted random commands from the Internet into your terminal. Letās do it! I run that and make the computer go to sleep again. Monitor turns off, fans spool down. Yes! Yes?
Obviously, it immediately wakes up. No dice.
Ah, ha! Maybe read the command first, dude? The issue here is that the Legacy Kernel Caller is in the PERFBOOST category, not SYSTEM category. Thatās easy to fix.
ā¦but it isnāt.
Of course, you canāt actually disable the driver for items in the PERFBOOST category. Of course.
Hey, Googleā¦
Next up: A suggestion to check waketimers. I have no idea what that is, but sure: powercfg -waketimers
There are no active wake timers in the system.
Okay.
Yo, Goooooooogle⦠again!
Ah, another command! powercfg -lastwake
Now weāre getting somewhere. We see that this is a USB device that is waking the computer:
Wake History Count - 1
Wake History [0]
Wake Source Count - 1
Wake Source [0]
Type: Device
Instance Path: USB\VID_25A7&PID_FA70\8&e5ec113&0&4
Friendly Name:
Description: USB Composite Device
Manufacturer: (Standard USB Host Controller)
But⦠how do we determine what it is? Looking at the path, we see VID and PID. That means:
Vendor ID: 25A7
Product ID: FA70
Letās Google those: It turns out, the vendor is Areson Technology Corp and it looks like they make RF receivers for various input devices, such as wireless mice. Interesting! No hits for the product ID. Thatās fine, thereās probably more types of RF receivers on planet Earth than there are people.
But that gives me a starting point.
I decide to start unplugging various devices and put my computer to sleep.
IT DOESNāT WAKE BACK UP!!!!
Victory. Party dance. Switch out the hacker pants for party pants. Now weāre getting somewhere!
I plug the receiver back in and open device manager. I go to the keyboard section (randomly, there are like 4 different devices listed there). I open the properties dialog box for each of them, go to the Power Management tab and uncheck āAllow this device to wake the computer.ā
I got you now, pesky sleep problems! :blow-smoke-off-gun-gif-dot-com-dot-net:
I put the computer to sleep.
IT IMMEDIATELY WAKES BACK UP!
Iāll be honest. There was a lot of screaming, kicking, swearing. My dog got up and left the room (he never does that). I almost knocked over a coffee cup onto my keyboard and I DIDNāT CARE.
Okay, fine.
No big deal, really. Iām not okay, youāre okay.
On a hunch, I expand the Universal Serial Bus controllers section inside the device manager. Sure enough, there are a bunch of things that say USB Composite Device. You might remember from earlier (but probably not), that a āUSB Composite Deviceā was called out using the --lastwake command.
If you open up the properties for each USB Composite Device and go to the events tab, you will see the device ID in the information section. Keep looking until you find the device ID that was called out: USB\VID_25A7&PID_FA70\8&e5ec113&0&4
Click. Close. Click. Close. Click. FOUND IT!
Device USB\VID_25A7&PID_FA70\8&e5ec113&0&4 was configured.
Driver Name: usb.inf
Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
Driver Date: 06/21/2006
Driver Version: 10.0.19041.488
Driver Provider: Microsoft
Driver Section: Composite.Dev.NT
Driver Rank: 0xFF2003
Matching Device Id: USB\COMPOSITE
Outranked Drivers:
Device Updated: false
Parent Device: USB\VID_0BDA&PID_5411\7&b8f002b&0&2.
Sweet, now to just open up the Power Mā¦. THERE IS NO POWER MANAGEMENT TAB.
My dog came back. He immediately left again. You can probably guess why.
Back to Google again:
āEnsure drivers are updatedā.
Okay. Sure. Blah, blah. But maybe itāll work. It wonāt though. I already know. Who am I kidding?
The best drivers for your device are already installed.
Fine. Iāll just uninstall the driver.
Oh, cool, now my keyboard doesnāt work.
BUT YOU KNOW WHAT?! MY COMPUTER STAYS ASLEEP!
Head, meet Desk. Desk, meet Head.
ā-
A few other things to note.
(I do care. Deeply. I just canāt right now.)