Declaration of VAR

and some other stuff

On 19.05.2021 the website was moved to https://decovar.dev/. This is just a mirror now.
  • XMLHttpRequest from QML

    2018-06-09 | 4 min read

    XMLHttpRequest is a web standard (WHATWG/W3C, but better to read about it at MDN) for communication between JS-frontend and REST-backend.

    XMLHttpRequest from QML

    And you can use it in QML.

    Read more
  • Copying files with qmake

    2018-06-08 | 5 min read

    Sometimes you need to copy certain files from source directory to build directory together with your application binaries. And Qt’s qmake tool is capable of performing such operations.

    Qt qmake

    Some geniuses might actually want to use scripts for that, but it’s better not to, because it’s the cross-platform development we’re talking about, and your xcopy from Windows works only on Windows, so it’s better to find some universal method. And qmake has such a thing, although it is not properly documented.

    Read more
  • Feed FlightAware

    2018-05-27 | 5 min read

    To put it (very) simple, FlightAware is a company that tracks air-planes. And they provide public access to the tracking data, although with some limitations. To lift those limitations and to gain some other features you can either purchase a Premium Account, or feed FlightAware with data.

    FlightAware logo

    But how does this feeding works?

    Read more
  • Etcher - two hundred megabytes for a simple dd

    2018-05-18 | 1 min read

    Etcher, 200 MB

    200 MB (TWO MOTHERFUCKING HUNDRED MEGABYTES) of an Electron-based crap for a simple dd operation?

    Are you retarded or something?

  • Avengers: Infinity War

    2018-05-05 | 1 min read

    Avengers: Infinity War

    Какие клёвые были первые Avengers, как бодрил и веселил недавний Thor, и какая же шняга вот это кинцо. Два с половиной часа бессмысленного калейдоскопа супергероев из девяти тысяч фильмов (реально, не хватало только Бекона), шаблонной херни и шуткований по расписанию.

    Где душа, Джосс? Джосс?.. А, так это не Джосс! Что, его уже и во втором фильме не было? А, ну тогда понятно всё.

    6/10

  • Boot to Qt on WaRP7

    2018-05-02 | 11 min read

    A new interesting reference device was added in Qt 5.9 - WaRP7. What’s so interesting about this device? It’s small, it’s based on i.MX 7Solo processor, and it features the following: Wi-Fi, Bluetooth, NFC, camera, barometer, accelerometer, magnetometer and gyroscope. It also has a battery and (optional) round display.

    Boot to Qt on WaRP7

    Being added as a reference device means that there is a pre-built Boot to Qt image for it, so let’s take a look.

    Read more
  • C# / .NET Core, publish to Telegram channel

    2018-03-31 | 3 min read

    I can’t believe I haven’t wrote about publishing to Telegram yet. I have articles about Twitter, Facebook and VK, but I should have started with Telegram as it is the easiest among them all.

    .NET Core Telegram logo

    Read more
  • C# / .NET Core, публикация ВКонтакте

    2018-03-28 | 9 min read

    Публикацию в Twitter и Facebook мы уже запилили, настала очередь ВКонтакте.

    .NET Core VK logo

    Тут, конечно, получше дела обстоят, чем с Facebook, но местами всё равно пиздец.

    Read more
  • Slack now helps to spy on you

    2018-03-22 | 2 min read

    A couple of days ago (on 20.03.2018) I received an e-mail from Slack saying that “…we’re launching new tools and features and updating our Privacy Policy and User Terms” (actually, that’s not how I learned about this). Changes in privacy policy and users terms are never good, so I went to their website to read about those.

    Slack helps to spy on us

    Read more
  • C# / .NET Core Identity with MySQL

    2018-03-20 | 11 min read

    Eventually, you will want to restrict access to some/all pages at your .NET Core MVC application, so everyone would have to enter their login and password first (authenticate themselves), and then server will decide whether to let them open the page or not (authorize the access).

    Official manual guides you through the process pretty nicely, however it only tells about setting it up with MS SQL Server. But we, of course, would like to use MySQL for that.

    .NET Core Identity MySQL

    I tried to use MySQL with .NET Core Identity before, but something was really wrong with its support back then, and now it actually works (more or less).

    Read more