Declaration of VAR
61 subscribers
67 photos
173 links
Спутниковый канал моего блоха: https://decovar.dev
Download Telegram
Electric car in Norway and leasing BMW i3: getting norwegian driving license, information about charging, costs and some comparison with regular fuel/benzine cars.

#blog #irl #norway #tractor #review
My Apple Watch has 21.4 GB of free space (out of total 32 GB), and yet somehow I don't have enough storage for music. Apple, I can't come up with any reasonable explanation for this except for the one that you all went into fully retarded mode there.

Twenty gigabytes is not bloody enough? Go fuck yourself, Apple.

#fail #apple
A way to store passwords, keys and other secrets using KeePass database, hosted on internal server in Git repository.

#blog #devops #linux
Managing 3rd-party dependencies in a C++ project with Conan: automatic builds and deployment in TeamCity, storing artifacts in JFrog Artifactory and fetching them for CMake.

#blog #cpp #cmake #devops
There are astronomy databases that store information about space objects such as stars and planets. Quite often they allow to query their data via TAP interface using ADQL, which many astronomers / planetary scientists do.

#blog #science #python
Looks like The Qt Company has blocked access from russian IP-addresses to Qt Account (and so the installer too). No official statement yet, as far as I can see, only this forum thread.

As bugreports, wiki and forum are also tied to Qt Account, it's likely that those will (already are?) become unavailable too (for reporting bugs, editing articles and posting, but perhaps even for viewing as well).

#fail #qt #war_russia_ukraine
One would expect that implementing Active Directory / LDAP authentication in an ASP.NET Core project should be a well-known and easy task, but if your project is supposed to be hosted on a non-Windows platform, then the task is not that easy anymore.

#blog #dotnet #web #ldap
Fucking Apple can't live a day without dumping more shit on its users, and this time they killed flag icons for input sources in Mac OS 12.4.

Fortunately, soon enough external developers created applications that bring back this functionality. So far I've discovered these two:

1. Colorful Input Menu Flags | $1
2. Keyboard Switcheroo | $2

The second one has nicer icons and more advanced functionality, but it's two times more expensive! So I've settled with the first one for now.

Thank you, Apple, exactly what I've been asking for: to lose some more out-of-the-box functionality and to spend some more money.

#fail #apple
If your company uses Office 365 and Azure AD, and in turn you rely on SAML SSO login on your websites/resources, then for the purpose of analyzing your visitors you can query some useful data from Microsoft Graph and make some charts out of it.

#blog #azure #web #python
vcpkg package manager greatly helps with managing dependencies in a C++ project. Comparing with Conan, in my opinion, it is easier to understand and use (if you already have some experience with CMake).

#blog #cpp #cmake
У меня теперь есть настоящий король, потому что я стал подданным Королевства Норвегия!

#blog #tractor #norway #russia
Ha, I've just noticed that The Qt Company removed russian subforum from the International section.

The reason for this I can probably guess, but russian-speaking people live not only in Russia, and a good portion of them aren't even Russian citizens, let alone certainly not everyone supporting the war. So what a brilliant idea it was to block the entire language for the whole planet.

And yeah, fuck all the knowledge collected there over the years too.

#fail #qt #war_russia_ukraine
Steam Deck - a happiness that can be bought with money. Windows-only games and applications magically running in a GNU/Linux environment. A handheld gaming device with fantastic controls and unprecedented freedom of doing whatever you'd like.

#blog #steam_deck #review #games #linux #piracy
Steam Deck is mainly a gaming device, but being a quite powerful PC it can also be used for software development.

At the very least, one can set-up a development environment for compiling one's sources in the field when no other computer is available, or maybe even use it as one's main development host.

#blog #steam_deck #linux #cpp #qt
The CMake's target_link_libraries() function has 3 different scopes: PRIVATE, INTERFACE and PUBLIC. As I am only pretending to be a real developer, I didn't know what they actually mean, and so I tested their effects in practice.

The main goal was to establish in which cases would I need to deliver 3rd-party dependencies (which my project depends on) to my users (whose applications depend on my project).

#blog #cmake #cpp
I usually get about 800 unique visitors on my website per day. But a couple of days ago I noticed a big spike to more than 35 000 visitors in just one day.

As it turned out, all those thousands of visitors were from ChatGPT, and it was requests to a picture file - yes, several thousands of requests from different IP addresses for the same bloody picture file (just the file, not the article where this picture was posted), resulting in more than 28 GB of transferred data.

I have very little interest in such traffic, so I blocked ChatGPT bot (and this one too) in robots.txt:

User-agent: GPTBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

And then the traffic went down to its usual volume shortly after, as you can see on the graphs.

The wonders of modern technologies.

#fail #web
If a C++ program utilizes multithreading via pthreads, then compiling it with Emscripten into WebAssembly requires setting certain flags for both compiler and linker. In addition to that, web-server that will be hosting the resulting web-application also requires some configuration.

#blog #cpp #web #cmake
I've been using Oracle Cloud Free Tier for 2.5 years, and it was indeed absolutely free of charge, which was really great while it lasted.

But two days ago my website suddenly went down along with the server and all the content on it. Without a notice/warning, with no explanation and without a way to restore the data (fortunately, I haven't actually lost any).

#blog #web #fail
While it isn't news that a pre-built C++ library can be loaded in an Android application, I've never done it before, so for me the topic was quite new. As it turned out, the Android's build tool Gradle can work with CMake projects, so the task ended up being easier than I expected.

#blog #android #cpp #cmake