Declaration of VAR
60 subscribers
67 photos
173 links
Спутниковый канал моего блоха: https://decovar.dev
Download Telegram
Qt's marketing team has switched to yet another CMS, and of course everything looks like shit now. Actually, they did it a couple of months ago or so, but I didn't have time to write about it earlier.

#blog #qt #web #fail
How to add searching functionality to a static (Hugo-based) website/blog.

#blog #hugo #javascript #web
A month ago or so Slack introduced a new design. And what you couldn't miss is that the search bar now occupies the full-page-width block on top. What a brilliant idea.

But not as brilliant as the fact that there is no option to disable/hide it. Official Slack response to that is: "After we tested with users directly, we found that moving our search bar front and center better matches our customers’ expectations". Which fucking users? Who are these idiots? I am not one of them, can I have an option to hide/disable the search bar? To which Slack replies: "We don't have plans to make the search bar hideable at the moment".

Yeah, no worries, I'll just do it with CSS then:

div.p-client_container > div.p-client {
display: block;
}
div.p-client > div.p-workspace {
min-height: 100%;
}
div.p-client > div.p-top_nav {
display: none;
}

...Can everybody just come to their senses and start using IRC again?

#fail #web
One more reason to get rid of Google Analytics - analyze your own web-server logs, dawg!

#blog #web #linux
Jupyter Notebook on your website:

- Jupyter instance behind NGINX reverse proxy with HTTPS on a subdomain
- querying MySQL database
- working with notebooks from Visual Studio Code

#blog #web #linux #python
How to add Prometheus metrics from TeamCity as a data source to Grafana.

#blog #web #development #linux
Data compression in IIS, Apache and NGINX. How to enable and which one is better.

#blog #web #windows #linux #development
.NET 5 is coming, it is a good day to check how are things there with Identity and PostgreSQL.

#blog #dotnet #web #sql #macos
Absolutely awesome tool for working with REST APIs on Mac OS is being given away for free again (they only ask for a retweet). I got it this way last year.

I'm a bit confused though, why would they give it away for free, as it's totally worth to be paid for.

Highly recommend it, very nice and native application, unlike all this Electron-based nonsense.

#web #development #soft
We were looking for a wiki with Markdown markup, but surprisingly the choice is quite poor. And out of what's available, Gollum seems to be the best option.

#blog #web #linux #macos #devops
A better alternative to Certbot for issuing and renewing Let's Encrypt certificates - acme.sh shell script.

#blog #web #devops #linux
The blog has moved to https://decovar.dev/ on its own server, and the comments are now on remark42 engine.

#blog #web #hugo #devops #linux
If you'll ever need to automate package promotion in Azure DevOps Artifacts feeds, this can be done via REST API.

#blog #devops #azure #web #fail
Qt for WebAssembly actually works, and one can run a Qt Quick application in a web-browser. Moreover, one can even render custom OpenGL content inside such an application via QQuickFramebufferObject.

#blog #qt #web
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
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
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