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 to install CUDA-9.0 on with cuDNN-7.1.4 on Ubuntu 18.04
Hi everyone, Cuda and cuDNN are must-have tools for everyone who wants to start with Computer Vision, Deep Learning, Machine Learning using GPU (which is way much faster than using the CPU even if it’s core i7). Based on my little experience in this field. Tensorflow for example, took 10 to...
How to build Dlib on Linux Ubuntu 18.04 using cmake with AVX support and install its Python API
Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. It is used in both industry and academia in a wide range of domains including robotics, embedded devices, mobile phones, and large high performance...
How to install LaTeX packages in Ubuntu 16.04
It’s quite frustrating when you want to work on a report using TexMaker on Ubuntu 16.04 and you get an error: LaTeX Error: file pgf-pie.sty not found. Type X to quit or <RETURN> to proceed, or enter new name Download the package from the website move the folder to ~/texmf/tex/latex/ or...
How to install CMake 3.11.0 on Ubuntu 16.04
Last week I got in touch with CMake because of my internship. I am doing now an internship in a company where I have to develop a Facial Recognition solution for children in the kindergarten. I had to build OpenCV 3.4.1 from source using CMake. To be honest, that was the first time in my life! I...
Ubuntu installation stuck on ‘Preparing to install Ubuntu’ screen
Almost two weeks ago I bought a new laptop. I bought an ASUS VivoBook Pro N580VD-E4556T, a decent laptop with great specs. Display: 15,6 inch (1920 x 1080) Processor: Intel Core i7-7700HQ Memory: 16 GB Storage: 256 GB SDD + 1 TB HDD Graphic card: NVIDIA GeForce GTX 1050 It came with a Windows 10...
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...