Uncategorized

Who needs negative UTC offsets?

We were discussing time zones at work, and suddenly I had a refreshing thought: why do we have negative UTC offsets? This regularly causes bugs when translating times to dates. […]

TL;DR If you use language other than English, you pay more per word sent/received from an LLM. If you don’t use Latin alphabet, you pay way more. Here’s why. LLMs […]

My analog doorbell has died, so I am on the market for a doorbell camera. I would like to avoid storing my videos in the cloud, so it rules out […]

What is dead code?

What is dead code? Looks like it depends on who you ask. Some people think it’s unreachable code than never executes. Other people think that it’s redundant code that does […]

WordPress themes and software decay

I have discovered a few broken things with my WordPress site. This post, as much of this blog, is mostly description of events, so I won’t forget what exactly happened. […]

There is a rumor C++ 23 introduces method string::contains that checks whether a string contains a substring. I guess in mere 10-20 years we will have string::toupper and string::tolower. Here’s […]

TL;DR std::function works great when we know exact types of the arguments and the return value. It breaks down miserably in presence of templates, and the error messages are not […]

Cassandra Database

Last week I had an opportunity to experiment with Cassandra database in a semi-real environment. A few notes: Cassandra goes out of its way to be friendly to “traditional” SQL […]