Upgrading My TrueNAS File Server by ACCIDENT

Last week I noticed a critical error message notification on my TrueNAS file server. Device ada0 had 300,000 unreadable sectors pending. My seven-year-old Western Digital 1TB Red NAS hard drive was finally on the way out. I ordered a Western Digital 2TB Red Plus NAS hard drive from Amazon. A couple of hours later, I discovered that ada0 wasn’t a hard drive but an SSD. The new hard drive had already shipped from Amazon. I ended up upgrading my file server by accident.

Read more “Upgrading My TrueNAS File Server by ACCIDENT”

My 25-Year-Old Quake 2 Mouse Pad

A twit on Twitter wrote that playing a “first person shooter game past 30 ain’t a pleasant experience.” That was in reference to FortNite, which is a third-person shooter and not a first-person shooter. I responded that I’m 52-years-old, still using my Quake II mouse pad from 1997 to play video games and to get off my virtual lawn. That was one of my most popular tweets ever. Let’s talk about my 25-year-old Quake II mouse pad on my desk.

Read more “My 25-Year-Old Quake 2 Mouse Pad”

Fixing A String Issue with Enum.name in MyPy

Photo by Mel Poole on Unsplash

While cleaning up code in my chess program that I’m writing in Python as a learning exercise, I came across yet another problem with the mypy static type checker. This time with the Enum.name attribute.

color = Color(self._color).name.capitalize()

The statement worked but mypy reported an error message.

error: Item “None” of “Optional[str]” has no attribute “capitalize”

I came up with a solution for that problem.

Read my essay and follow me on Medium. Your support is greatly appreciated.

Fixing “None” Not Callable Error in Mypy

Photo by David Travis on Unsplash

The mypy static type checker always complain about using a dictionary to call functions. Especially this code segment from my chess program that I’m writing in Python as a learning exercise.

status = {Bishop: self.validate_move_bishop,
King: self.validate_move_king,
Knight: self.validate_move_knight,
Pawn: self.validate_move_pawn,
Queen: self.validate_move_queen,
Rook: self.validate_move_rook,
}.get(type(self._board[start]))(start, end)

This message, error: “None” not callable, always leave me cross-eyed at times. I came up with a solution for that problem.

Read my essay and follow me on Medium. Your support is greatly appreciated.

My “Hair-Raising” Personal Experience With The Pandemic

Philip DeFranco called for videos about personal experiences with the pandemic. The timing was great since I wanted to make a pandemic-related video. I can also put his picture on the thumbnail to get more clicks. Here’s my “hair raising” personal experience with the pandemic.

Read more “My “Hair-Raising” Personal Experience With The Pandemic”

How The Gilroy Garlic Festival Got Canceled

The Gilroy Garlic Festival got canceled after operating for 42 years. With the 2019 shooting, COVID-19, and insurance costs, the three-day event became history. Smaller events like the golf tournament, concert, and farmer’s table are still on for 2022. The garlic powder hadn’t settled on that announcement when another announcement got made. The Stockton Garlic Festival will be at the San Joaquin fairgrounds in mid-August. Will a competing garlic festival cancel the cancellation of the Gilroy Garlic Festival?

Read more “How The Gilroy Garlic Festival Got Canceled”

Fixing The Incompatible Dunder Method Error in Mypy

Photo by Stephanie Mulrooney on Unsplash

While cleaning up my code in a chess program that I’m writing in Python as a learning exercise, I created an Enum class to represent the starting ranks for certain pieces on the board. Since I wanted the Enum to also behave like a list, I added that to the class definition. The mypy static type checker reported an incompatible __hash__ dunder method error between list and Enum. I came up with a solution for that problem.

Read my essay and follow me on Medium. Your support is greatly appreciated.

SiliCon With Adam Savage 2022 Announcement

SiliCon with Adam Savage announced dates, prices, and the initial guest list for the 2022 show. The show will once again be at the San Jose Convention Center on Saturday, August 27, and Sunday, August 28. Prices vary from $20 US to $400 US for various ticket options. The initial guest list includes Christopher Lloyd, George Takei, and Alan Ritchson. What can you expect for this year’s show?

Read more “SiliCon With Adam Savage 2022 Announcement”