Lately, I have been busy making a deploy script for a Flask API. I have never worked before with Flask and I just got to know Flask a couple of months ago. I have to admit, there are not a lot of resources online explaining how to work exactly with Fabric. Although, the website of fabric (fabfile)...
How to save a base64 encoded image on hard disk in Python
In some cases you receive an image as bas64 encoded string and you need to save it first on disk before you can reopen it and use it! First of all you have to import base64 package. import base64 decoded_image= base64.b64decode(YOUR_BASE64_ENCODED_IMAGE) with open('your_image.jpg', 'wb') as f: f...
How dev-books.com turns your computer into a Cryptocurrency miner
A couple of months ago I saw a topic on Hacker News called The most mentioned books on Stack Overflow Link . I was really happy to see the website and I thought I could use it later once I need a book. Today I wanted to search for couple of books about Artificial Intelligence and Image Processing...
How to enable HTTP2 on Ubuntu 16.04 server with Apache 2.4.27
Two days ago I wanted to enable HTTP2 my website because it’s faster, simpler, and more robust than HTTP1. Check this link to read more about it. I have searched online how to enable it and I have followed almost every tutorial to enable it, but I couldn’t get it working. Everything...
How to solve “http doesn’t redirect to https”
This website is running on VPS from Linode.com . I have configured every single detail about the site, and as you have noticed that the website has only one version with https. I have only peshmerge.io (non-www) version. This morning I have clicked on the link of my website on my twitter profile...
How to read decorrespondent.nl for free
I am a programmer, but I am also interested in Sociology, Anthropology and Politics. I read frequently articles online about them. I follow also specific sociologist or anthropologists who write about the those certain topics, for example Willem Schinkel. He is a Professor of Social Theory at...
Select all checkboxes on a webpage using Jquery
I wanted to select all inbox messages on a website which I use for the university, the website doesn’t have a “select all ” functionality. This jquery code snippet selects all checkboxes and check them. jQuery('input:checkbox').each(function () { var elem= jQuery(this); elem...
How to solve the problem of missing Captcha in GravityForms when cache is on
Sometimes this problems happens when you have enabled a caching pulgin (W3 total cache or WP fastest Cache etc ) in wordpress which leads to incorrect functionality of javascript and css files responsible for generating the captcha. The solution for this problem is simple. What you have to do is to...
Taking screenshots of Liveuamap.com on Linux using PhantomJS
The story behind the Idea It was always fascinating for me how the two journalists had came with the idea of Liveuamap.com. For everyone who doesn’t what it’s. “Liveuamap is opendata-driven media platform that change the way you receive latest news. Explore a map, messages...
Adding multiple domains to vagrant using Apache
Three weeks ago I was working locally on my Linux machine on a php project. Beside that project I wanted to work on another project, it was also a web application. I was searching for a way to be able to host both projects on the same Vagrant machine. I didn’t want to add a new Vagrant...