Linux - filtered backups with preview

Currently, I experiment with a possibility to backup the whole filesystem to a single compressed file. During the backup process, I want to conveniently preview the directory structure which will be actually backed up.

Read More

i3 window manager - multi-monitor workspaces

By default, the i3 tiling window manager allows switching workspaces on each monitor separately. We can achieve switching the workspace at all monitors at once, so that we will have something like multi-monitor workspaces instead.

Read More

Quick browser extension for more readable webs

Only with a few lines of CSS or JavaScript, we can make reading of content on some webs easier. I will show an extension which can be easily loaded to the browser to slightly influence how a web looks like, which can actually improve usability a lot.

Read More

JavaScript - detecting what the user searches on the page

We usually believe JavaScript running in the browser does not have access to some external information, but there can be some tricks how to obtain it. In this article, I will show how we can sometimes get the text the user types into the browser’s Search on page (Ctrl + F) field.

Read More

WebAssembly file - sending correct content type

I was creating a project where I used emscripten to build C/C++ code into asm.js or WebAssembly to run in browser (together with classic JavaScript code). After deploying to web server, although everything worked, I encountered some warnings about incorrect MIME type of the .wasm file.

Read More

Android - creating custom layout

If it is difficult to gain the desired effect using some standard layout (LinearLayout, GridLayout etc.) or a combination of them, it is relatively easy to programmatically create a custom layout class.

Read More

Android - how to open menu on old Android emulator

Older Android versions used a separate button to open a menu (which was then replaced by the action bar and its overflow menu). When testing applications using an emulator with some old Android, we often want to somehow access the menu. The emulators used to provide a button for this, but such buttons were shown only in a specific skin: Skin with dynamic hardware controls.

Read More

Java - custom stream performance

To implement a custom input stream in Java, the only mandatory method to implement is read(). However, a stream with only read() implemented can perform very badly.

Read More

C++ - Unicode conversions

How to convert strings in C++ between Unicode encodings (UTF-8, UTF-16 and UTF-32)? Here are some code snippets showing easiest ways I found out yet.

Read More

C++ - precompiled headers chaining

Similarly to Microsoft Visual Studio compiler, gcc and Clang compilers support precompiled headers, too. Let’s look at creating and using of a precompiled header in clang compiler, particularly at chaining of precompiled headers (building a precompiled header using another precompiled header compiled earlier).

Read More