Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    What is in 2016 for you and me and everyone?

    26th December 2015

    There will be 366 days in 2016 (yes, a leap year). 366 steps towards your goal. That’s a lot! With the right goal and persistence, a lot can be done and achieved.

    There are lots of good, real, helpful self-development/self-improvement techniques. These can often be practiced non-stop in one’s everyday life. These can often also be practiced in parallel, for a likely synergy.

    There are lots of success books and biographies of successful self-made people. Some stories are quite well-known, while some remain hidden gems. Likely enough reading for several months, non-stop!

    There are many good books on business, data analysis, engineering, software development, and other fields. Likely many years of reading non-stop!

    Some people say that in 5 years one can master a common subject of choice good enough to become an expert. Others point out that many activities (and their co-activities) can be monetized or turned into profitable versions of said activities.

    All in all, the only thing required is action.

    Which books do you have on your 2016 reading list?
    What is the field you will be an expert in by 2021, assuming you start in 2016?
    Information consumption aside, what will you produce in 2016? What will be your actions?

    Posted in Books, Life | No Comments »

    Midnight Commander (mc): convenient hard links creation from user menu

    3rd December 2015

    Midnight Commander is a convenient two-panel file manager with tons of features.

    You can create hard links and symbolic links using C-x l and C-x s keyboard shortcuts. However, these two shortcuts invoke two completely different dialogs.

    While for C-x s you get 2 pre-populated fields (path to the existing file, and path to the link – which is pre-populated with your opposite file panel path plus the name of the file under cursor; simply try it to see what I mean), for C-x l you only get 1 empty field: path of the hard link to create for a file under cursor. Symlink’s behaviour would be much more convenient…

    Fortunately, a good man called Wiseman1024 created a feature request in the MC’s bug tracker 6 years ago. Not only had he done so, but he had also uploaded a sample mc user menu script (local copy), which works wonderfully! You can select multiple files, then F2 l (lower-case L), and hard-links to your selected files (or a file under cursor) will be created in the opposite file panel. Great, thank you Wiseman1024!

    Word of warning: you must know what hard links are and what their limitations are before using this menu script. You also must check and understand the user menu code before adding it to your mc (by F9 C m u, and then pasting the script from the file).

    Word of hope: 4 years ago Wiseman’s feature request was assigned to Future Releases version, so a more convenient C-x l will (sooner or later) become the part of mc. Hopefully.

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

    How to fix: Xiaomi Mi Band stopped tracking steps and sleep

    26th July 2015

    Mi BandA few days ago, my Mi Band (version 1) stopped properly tracking sleep and counting steps. Here is a full list of symptoms:

    • synchronization appears to work correctly;
    • total count of steps is updated, but when you click it – there are no per-hour details;
    • in the older app version: after sync completes, there is no green message “Updated X items”;
    • night sleep tracker does not update at all: neither total hours slept, nor per-hour details;
    • the band is otherwise functional, e.g. “Find the band” works – it vibrates and flashes diodes.

    Warangelo00 found a solution, which worked for me (and no, you do not need to hard reset the device):
    note: the fix below will most probably not work for Mi Band 2, see comments; iPhone owners may try switching iPhone from AM/PM (12-hour clock) to 24-hour clock to fix the non-synchronization problems with MiBand2 – please write in the comments if this method works for you.

    1. enable Bluetooth, if it is disabled;
    2. start Mi Fit, go to Play –> Incoming call (or, in older app version, SettingsIncoming calls);
    3. enable it – set to On;
    4. now call your mobile phone from a different one – wait for the band to vibrate and flash lights;
    5. you should now be able to refresh Mi Fit main page, and see both current day and previous night per-hour details; in the older app version, it should also show the green “Updated X items” message after syncing;
    6. you can now disable incoming calls notification if you don’t need it.

    According to Holly, the trick may also work for Mi Pulse.

    Not sure if this fix will last, but it did help me – thanks, Warangelo00!

    Posted in Hardware, how-to | 49 Comments »

    PGF vs PNG vs JPEG 2000 for long-term photo storage/archive

    26th May 2015

    I am using an excellent photo-management suite digiKam, which offers 3 lossless compressed formats for photos versioning and storage: PNG, JPEG 2000, and PGF. I wanted to know which one should I use, which urged me to perform this comparison.

    This post is not intended to be an in-depth comparison, but should be sufficient to choose one of the three file formats for your purposes. For more format details and history simply follow the links provided. File formats are reviewed roughly in “historical” order.

    PNG (Portable Network Graphics) was designed as GIF replacement.

    • It is lossless.
    • It is suitable for photos.
    • PNG is more space-efficient in the case of images with many pixels of the same color, such as diagrams/plots (as compared to PGF and JPEG2000). However, PNG photos are almost always larger than lossless PGF/JPEG2000 photos (real photo example: 9.9 MB in PNG, 7.0 MB in JPEG 2000).
    • PNG is fairly fast at (en|de)coding.
    • PNG is widely supported by web-browsers, image editors, and other software.
    • PNG uses CRCs internally for each data block, so if damage occurs only the damaged block(s) should be lost – theoretically. However, in practice, according to the Just One Bit paper (local copy), PNG is actually much less damage-resilient than JPEG 2000.

    Read the rest of this entry »

    Posted in Comparison, Links, Misc, Software | No Comments »

    Casio G-Shock: amazing survivalist watches

    14th May 2015

    Casio G-Shock

    Casio G-Shock

    In May 2010 I’ve paid US $118 for Casio G-Shock GW-810D (Atomic/Waveceptor Tough Solar) wrist watch with stainless steel band.
    5 years later, at the end of April 2015, I lost it :( .

    Looking for a replacement, I found that:

    • Casio seems to no longer make affordable models with the same functionality and a metal band – only polymer;
    • a similar used model from Casio (MTG-something) costs upwards of 70 EUR.

    I was quite sad about that. Any survivalist-minded person can easily see why:
    Read the rest of this entry »

    Posted in Hardware, Misc | No Comments »

    Tools to manage Debian services and start-up scripts

    8th April 2015

    • sysv-rc-conf: text-UI, allows editing multiple runlevels, but seems to be failing recently
    • rcconf: another good-looking text-UI alternative; can only modify current runlevel
    • bum: GUI tool (BootUp Manager)

    More details about these tools and runlevels (in German).

    Posted in *nix, Notepad | No Comments »

    Ender’s Game (the movie)

    29th March 2015

    Just finished watching Ender’s Game. As of this writing, it has IMDB rating 6.7, and I think it is slightly under-rated.

    Ender's Game (2013) on IMDb

    If you love Sci-Fi movies, this one is a definite “should watch”. I’m not sure if it has much “watching again later” value, but for one evening it is very good.
    The story holds well together, has a good (though noticeably compressed) pace, and proceeds in a fairly expected way. Overall, I liked how this movie was made. The music also blended in organically.

    Some share of the reviewers claim that watching this movie does not spoil reading the book after the movie. Some even go as far as to claim that this entire 2-hour movie can be deemed a “trailer” to the book. I had also seen disgruntled reviews of people comparing the movie to the book and complaining about the changes in the movie, and timeline compression. Well, compression was noticeable, but without it the movie would probably be boring. Also, not having read the book, I believe that the changes were necessary to make this movie hold together better. Honest film adaptations of the books are not necessarily good – these are different media, after all. Moreover, if a movie incites interest to read the book (and Ender’s game did!) – this is only for the better. Especially if a movie is like a trailer to the book :)

    Posted in Movies | No Comments »