RSSAmplifier

Blog

Martin Rotter

martinrotter.github.ioRSS feed ↗25 posts

Latest posts

Making POST requests with UTF-8 data in "curl"

I was having some very weird errors when I was testing out TT-RSS API. One of the methods just would not work and server reported HTTP/500 error. I figured out that the error is only there, if I use non-ASCII characters in my POST data. My curl one-line to call the API was something like: curl -H "Content-Type: application/json; charset=utf-8" -d…

Chléb Tartine dlouho kynutý

Dovolte, abych zde představil svůj jednoduchý recept na chléb Tartine. Chleby Tartine se vyznačují tím, že jsou velmi nadýchané. První den (ráno, doba přípravy 5 minut) Připravíme si ingredience na rozkvašení kvásku: kvásek ve skleničce z ledničky, 80 g žitné mouky, 80 g studené vody. Všechny ingredience vložíme do zaklapávatelné dózy/mísy a důkladně promícháme lžičkou tak, aby v míse nezůstala…

Vero 4K + review

Some time ago, I moved to a new house, bought 4K-capable SDR “non-smart” display and I needed mini PC for hassle-free 4K SDR audio/video playback. After some browsing I stumbled upon Vero 4K + and bought it. You can see all photos attached to this article. Packaging & Shipment I ordered my package in the middle of January, 2019, when it was re-stocked and sale for discount price was started.…

How to get result code AND output of command in Bash

Let’s say you have some command and you are interested in its result code and output in the SAME TIME. Problem is that when you use $() construct to get output of some command, then you do not have any way to get its result code. Well, in that case, why not use pipes and read command? See: some-command | read command_output echo "Result code of command is: $?" echo "Output of command is:…

Dvakrát kvašený chléb Šumava

Dovolte, abych zde představil svůj jednoduchý recept na dvakrát kvašenou Šumavu. Dvojité kvašení kvásku spolu s větší hydratací zajistí větší vláčnost výsledného chlebu a taky by se měly konat větší oka! První den (k večeru) Připravíme si ingredience na rozkvašení kvásku: kvásek ve skleničce z ledničky, 60 g žitné mouky, 70 ml vody. Všechny ingredience vložíme do zaklapávatelné dózy/mísy a…

Tvarůžková pomazánka

Dovolte, abych zde představil jednoduchý recept na tvarůžkovou pomazánku. Na tvarůžkovou pomazánku budeme potřebovat: 100 ml zakysané smetany, 40 - 80 g másla, kmín (klidně drcený), 1 nevelká červená cibule, 100 g tvarůžků (klidně vyzrálejších). Postup přípravy je jednoduchý: Do mísy dáme smetanu, kmín a máslo a mixérem rozmixujeme na jemnou hmotu. Množství másla dáváme v závislosti na tom, jak…

Pushing to arbitrary Git repositories via Travis CI job

Sometimes you may need to clone some custom Git repository and use it when your application gets compiled on Travis CI. This simple tutorial will show you how to do it in a secure way. Let’s suppose that your Git repositories, you want to work with, are stored on GitHub. You need to setup new personal access token on GitHub: Go to your GitHub user settings and select section “Personal access…

Jednoduché a rychlé rohlíky

Dovolte, abych zde představil svůj velice jednoduchý a velice zjednodušený (ach, ta čeština) recept na jednoduché rohlíky. Ingredience Na recept (cca 8 rohlíků) potřebujeme následující ingredience: půlku kostky kvasnic, 265 ml vlažné vody, 500 g světlé mouky (pšeničná hladká, možná špalda, trochu celozrnné třeba, …), 1 lžičku cukru, 2 lžičky soli, 20 g másla (pokud nemáte, tak sádlo), 10 g…

Jednoduchý chléb Šumava

Dovolte, abych zde představil svůj velice jednoduchý a velice zjednodušený (ach, ta čeština) recept na supr chlebík Šumava. První den (k večeru) Připravíme si ingredience na rozkvašení kvásku: kvásek ve skleničce z ledničky, 120 g žitné mouky, 120 ml vody. Všechny ingredience vložíme do zaklapávatelné dózy/mísy a důkladně promícháme lžičkou tak, aby v míse nezůstala žádná nezamíchaná mouka.…

Perfect Greek holiday

Some months ago, me and my family have decided to go to our first real abroad holiday. See all photos attached to this article. We chose Greece and found interesting offer from travel agency. They said, that our holiday will not be hosted by standard hotel. We will be staying in lonely area, in very small guesthouse-like hotel Marietta Studios. It is located on Zakynthos island, on east side of…

Integrating NSIS with qmake

NSIS is a tool for creating fancy and modern GUI-based installers for your software. It is, in fact, fully-featured programming language. It can be used to generate very basic and simple installers as well as more advanced ones. I will show you how to integrate NSIS into qmake-based project. Important links Just make sure to check these: tutorials, examples, language reference. qmake qmake is…

Gallery example

This is just a brief test of showing galleries with Jekyll: two pictures, one picture. Now one example of picture with thumbnail in pure markdown.

Generic Bubble Sort algorithm implementation in C & inline Assembly

Code is pretty much self-explanatory. #include <stdio.h> #include <time.h> #define IS_LESS -1 #define IS_EQUAL 0 #define IS_MORE 1 // C. void swap_c(void *e1, void *e2, size_t size); void bubble_sort_c(void *base, size_t num, size_t size, int (*comparator) (const void *, const void *)); // Assembler. void swap_a(void *e1, void *e2, size_t siz); void bubble_sort(void *base, size_t num, size_t siz,…

Welcome

Welcome to my new static site generated with Jekyll.

Transka - a (very) simple Transifex API wrapper

Transka is very simple Transifex API wrapper written in pure Bash. All code is contained withing single Bash script called transka. Transka is available on GitHub. Transka offers limited functionality via calling the script with various arguments, including downloading and uploading of both resource files and translations of resource files. These features are enough for managing existing…

Producer - consumer pattern for arbitrary number of endpoints and with limited buffer

Buffer is implemented by Buffer class. This class is simply wrapped array. public class Buffer { private T[] _data; private Semaphore _semaphoreNonEmpty; private Semaphore _semaphoreNonFull; public Buffer(int capacity) { _data = new T[capacity]; _semaphoreNonEmpty = new Semaphore(0, capacity); _semaphoreNonFull = new Semaphore(capacity, capacity); } public T this[int i] { get { return _data[i]; }…

Website was migrated

As you probably noticed, I migrated my official personal website to different and much simpler technology, Jekyll.

How to install Chromium for all users on Windows - the clean way

This tutorial shows you how to install Chromium (NOT Chrome) on Windows machine for all users. This way, Chromium gets installed into C:\Program Files\Chromium folder: Download latest mini installer of Chromium. I recommend using 32 bit version even on 64 bit systems to avoid problems with external plugins such as Flash Player. Open command line and navigate to folder which contains downloaded…

Řešení potíží afrických imigrantů

Je dobré znát širší kontext. Vtipná na celé situaci je jedna věc. Přijímání uprchlíku NIC neřeší. Nevyřeší aktuální potíže uprchlíků s konstruktivním a pozitivním vhledem do budoucna, a to ze dvou důvodů: Uprchlíků je a bude hodně a toto číslo bude mít tendence růst víc než lineárně. Aktuálně je v severní Africe několik set tisíc uprchlíků a toto číslo se zvyšuje rychleji, než se uprchlíci…

Čas stáří

Dřevnaté lavičky v omšelých parcích, jež hrály plačně obřadný chór, a byly osedlány v netečných starcích, jejichž myšlenky bral smůtně mor. Ty lávky kvílely, jak trapný vztek, jež provázi mě bytím, a touží býti jako lek, jež vyvolán je smrtním kvítím.

Básník neveselých barev

Znovuzrozený malíř sedí, cosi píše, neúnavně, v žáru tekoucího léta. V žáru propoceně sjeté noci tento malíř čmárá krásy letošního světa. Polední básník franzouzského stylu, ohýbá verše po tvých chvějících se plicích, rozsévá řeč přímou po tvé kštici, v kričících touhách pohladí tě v týlu a promíchá barvy, jež leží mu po pravici. Agonický malíř rodí verše cizoložných tahů, jež jako zimní vánek v…

Amazing three months

Four (maybe five) months ago, I learnt from friend of mine, Jan Grulich, that GSoC is really program for me. I was so excited when I decided to give it a try. I must say that I was already part of OSS world, because I developed some free software before, including: RSS Guard, Qonverter, and other stuff. So I have some knowledge about OSS mechanisms. GSoC was another huge experience to enhance my…

Integrating NSIS with CMake

NSIS is a tool for creating fancy and modern GUI-based installers for your software. It is, in fact, fully-featured programming language. It can be used to generate very basic and simple installers as well as more advanced ones. Important links Just make sure to check these: tutorials, examples, language reference. NSIS & CMake & CPack Users of CMake are probably familiar with option to generate…

Welcome package arrived

I love that shit! See the gallery here.

Goals and targets

Well, let me sum up all goals which are given to me as part of my GSoC job. My GSoC project has fancy name, it is “Porting and reworking the BuildmLearn Toolkit for Linux, OS2 and Mac OS X”. The “reworking” part will be probably tougher, as the majority of the application will be rewritten to better supportability and maintainability. I split goals into several categories. OK, let’s see it. [TBD]…