Archive for November, 2015

Useless toilet repair parts

November 22, 2015

It is a good thing that I didn’t leave earlier for Thanksgiving. I heard an odd sound from my bathroom today, followed by the sound of water spilling on the floor. I quickly found the problem and stopped the leak. A connector for the water supply to a toilet had fractured, allowing water from the incoming hose to escape.

Toilet water inlet parts on dirty old floor

In the image above is the hose with the fractured white connector, although the damage isn’t visible. I found that I have a replacement part from a toilet repair kit that I bought years ago (bottom left), but I can’t figure out how to remove the broken part. It seems like I would need to break the metal collar on the hose. I don’t know how to do that without breaking the hose, but even if I could, I would need a replacement for that, too. After searching the web for a while, it seems that the connector part is not replaceable; the whole hose needs to be replaced.

That begs the question: why was that replacement part included in the repair kit that I got? What am I missing?

Advertisements

Boost C++ library and the end of the world

November 8, 2015

While working on some C++ code, I made a mistake and got this error:

ERROR: Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl
<boost::exception_detail::error_info_injector<boost::gregorian::bad_year> >
std::exception::what: Year is out of valid range: 1400..10000

I find two things rather interesting here. The first is that the Boost date_time library isn’t using the Boost exception library. The second is that the date_time library has defined the year 10000 as the last in the Gregorian calendar.

Based on this, I predict that the end of the year 10000 will be the end of the world. Using the Boost libraries to make end-of-the-world predictions should work about as well as using the Bible, right? The end is nigh!


False Steps

The Space Race as it might have been

keithlugcom.wordpress.com/

You Control The Action!

High Frontier

the space colony simulation game

Simple Climate

Straightforwardly explaining climate change, so you can read, react and then get on with your life.