1. Goals in September 2016

    After reading The motivation Hacker, which I warmly recommend, I decided to try to formalise my goals and habits (unfortunately, again ;-( ). One of the motivation hacks written there is social commitment/contract and burning the ships. If you want to know what does it mean, you can find it…

    on selfdev

  2. Adding callback to a sklearn GridSearch

    GridSearch in scikit-learn is just awesome - no doubt about that. But what is unfortunate is the fact that it only shows one metric in the results and you couldn't store any intermediate information or do some actions during the search (such as save every model, or compute additional metrics…

    on data-science

  3. Limitations of Pandas (0.18.0) HDFStore

    I went from CSV to HDF storage, because I was able to get much faster read/write times and hence much better feedback loop when testing my analysis. Here is a very short list of current limitations of both fixed and table formats I found very frustrating. Fixed format: Can't…

    on data-science python

  4. Reducing dtype size of a Numpy/Pandas array

    I run into memory problem when processing very large dataframe. The problem is that Pandas use float64 and int64 numpy dtypes by default even in cases when it is totally unnecessary (you have e.g. only binary values). Furthermore, it is not even possible to change this default behaviour. Hence,…

    on python data-science contribution

  5. docker-machine error with virtualbox: server misbehaving

    I am running docker-machine on my Arch Linux laptop and when creating new virtualbox docker-machine by: $ docker-machine create \ --driver virtualbox \ --virtualbox-cpu-count 2 \ --virtualbox-memory 2048 pipeline I had then problems with pulling new containers (and probably accessing internet in general) from the inside of the machine, e.g.: $ docker-compose -f docker-compose.…

    on contribution linux IT programming

  6. Solution for Redmi's audio playback bug

    I am owner of Xiaomi Redmi 1s smartphone and I was facing very annoying bug on all custom ROMs I had used. I thought there is no solution, but finally, after about a half of the year, I've found the solution, which you can read below. Your phone need to…

    on contribution

  7. Podnikání OSVČ (vedlejší činnost 2016) - zahájení a daně

    Studuji na ČVUT, v době psaní tohoto článku je mi 23 let a dostal jsem zajímavou nabídku, jak jsem si mohl přivydělat. Za tímto účelem bylo však už potřeba založit si živnost, neb na dohodu o provedení práce či činnosti už by to limitně nestačilo a navíc to vyžadoval klient.…

    on contribution experience

  8. Randomly choose N records from MongoDB

    I haven't found the answer for a questions from the title fast enough compared the fact how necessary this is if you do data science. Below is my answer. Since MongoDB 3.2, it can be done using aggregate function with $sample operator, as described in docs. It's super fast.…

    on data-science contribution programming

  9. Backup, verify, restore with duplicity

    I had decided moving from unmaintained and old rdiff-backup to quite new and modern duplicity. Another reason beside its relative novelty is e.g. its support for different storage like Dropbox, Webdav or multistorage(!) and also encryption. I will use SSH and rsync to do a backup on a remote…

    on IT

  10. Remote and Local SSH tunneling easily

    Every flipping time I am trying to use SSH tunneling I am confused what part of the command is for local and which for remote host. Here is what I have finally realized (I know it's stupid, but it helped me). Local with -L switch When you run something on…

    on IT linux

  11. ownCloud on Archlinux

    After receiving a very unpleasant notice about the end of the copy.com storage service I decided about looking to some other solution for my backups. I decided to also try ownCloud (version 8.2.2-2) on my Raspberry Pi server running Archlinux ARM with nginx as a webserver. It…

    on IT contribution linux

  12. Accommodation in Lund for international students

    Every international student is going to undergo one of the Lund folklore - finding an accommodation. I went through this hell about a half year ago and I would like to share some information from the student perspective, not from the organization(s) point of view. Do I find a…

    on lund

  13. Švédsko mýma očima? (Lund #9)

    Stejně jako u jiných reportů nevěnuji příliš času korektuře a proofreadingu. Snad mi to prominete a budete se více soustředit na obsah (ten mi nepromíjejte). Swapování AJ a ČJ mi očividně dělá problémy... Až doteď jsem popisoval hlavně fakta o tom, jak to tady probíhá a co všechno se děje…

    on experience contribution lund

  14. Ceny ve Švédsku

    Tohle opět spadá do těch praktičtějších věcí. Obecně se říká, že je Švédsko extrémně drahé. Ano i ne. Záleží na tom, co potřebujete. Budu mluvit jen o Lundu samozřejmě, ve Stockholmu bude možná nutné připočíst hlavnoměstskou přirážku. Jídlo v superkmarketech je tu tak za stejné ceny, jako například v Německu.…

    on contribution lund

  15. Žebráci, imigranti a terorismus

    Tohle je momentálně světově asi nejaktuálnější téma a tak se k němu chci vyjádřit. První věc co vám trochu kontradiktuje s tím, co víte o Švédsku, je poměrně velké množství žebráků. Potkáte je kolem katedrály, v centru kolem obchodů a podobně. Většinou vypadají na cizince. Co se týká imigrantů, nemá…

    on experience lund