I checked my archives on HDD and found that I have plenty of unpublished solutions for competitive programming problems. My focus is quite different at the moment, but I feel the need to share. I hope it helps somebody. Check it out on https://github.com/binaryspaceship/competetive-programming-solutions.
I moved solutions for problems that were previously hosted on this blog to https://github.com/binaryspaceship/competetive-programming-solutions. Check them out there.
As I am now a happy owner of domain thebigheadache.com, I plan to concentrate more on writing about distributed systems (microservices, monitoring, etc.) and machine learning in cloud (Spark, Hive, etc.). Related content, like C++ REST benchmark, will be moved to the new platform, and all other will be archived on Github.
Stay tuned, interesting times are coming!
Just several useful commands for Docker, which can save some disk space.
There are two boxes. Initially, one box contains chips and the other contains n chips. Such a position is denoted by (m,n), where m > 0 and n > 0. The two players alternate moving. A move consists of emptying one of the boxes, and dividing the contents of the other between the two boxes with at least one chip in each box. There is a unique terminal position, namely (1, 1). Last player to move wins. Find all P-positions.
PHP, Python, C#, Java and Ruby are popular candidates to create REST API. But what about work horses like C and C++?
I decided to investigate most popular C++ frameworks for REST APIs creation and measure their performance relatively to PHP.
Source code of benchmark is freely available on https://github.com/metamaker/cpp-rest-frameworks-benchmark, as well as Vagrant virtual machine to easily reproduce my measurements.
Recently, I needed to extract list of posts from website that was based on WordPress. It would be difficult task, if I didn’t know that newest versions of WordPress (since version 4.7) provide REST API. You can use it to extract different parts of website, like comments, posts, polls, etc.
This guide will teach you how to install and configure LEMP stack with Nginx 1.10, MySQL 5.7, PHP 7.1 in Debian 8 “Jessie” on Digital Ocean droplet. All steps are covered, from creation of droplet to securing it with firewall and SSL encryption. You can use instructions from the guide not only for droplet on Digital Ocean, but for any VPS hosting with Debian 8 “Jessie” as well. Continue reading
Here we came to the real-world application of FMBBCodeBundle, i.e. how to make bbCode editor work in SonataAdmin. The best way is to create new bbCode editor form type.
bbCode is a popular markup language for bulletin board messages and posts. Symfony doesn’t have support of bbCode from the box, but it can be easily enabled with external bundles. Here I describe how.