Skip to main content


Popular post

How to install the FReMP Stack on Ubuntu 20.04?

Technology keeps on evolving everyday and developers constantly look for more and more things to get their hands-on. In this article, I will be introducing a new full stack framework, called FReMP . The abbreviation used is not the best one, but it just gets the work done in justifiable ways. What on earth is FReMP stack? The FReMP stack is a highly scalable full stack framework, which can be used to build awesome web apps. The acronym stands for F lask, Re actJS, M ongodb and P ython. Unlike other famous stacks such as MEAN and MERN, the FReMP stack uses Python to handle back-end operations. Examples of such operations can be machine learning and artificial intelligence operations, web scraping tools or digital image processing. Step 0: Update your list of installed packages While this is optional, it is always a good practice to update your list of packages and upgrade them for newer versions before starting any installation on your environment. Run the following to do so: $ apt-get
Recent posts

[Python]Publish your python project to PyPI

The Python Package Index, also known as PyPI, is a large repository of python packages. Millions of developers all around the world contribute to Python daily by creating python scripts and uploading to PyPI. In this blog post, I am going to write a simple python script that, on running, will print Hello World on the terminal. Then, going to upload this script to PyPI so that it can be installed on any platform easily using pip or pip3 . Requirements: 1. Github account 2. Basic knowledge of python 3. setuptools - (pip3 install setuptools) 4. wheel - (pip3 install wheel) By the end of this blog post, you should be able to print hello world using a single command: Let's get started! The first thing to do is find a unique name for your project. The name that I will call the Hello World script will be print_hello_world . At the time that I am writing this post, there is not package called print_hello_world  on  PyPI . Logically, after doing this tutorial, there might

[Flask]Hello World in Flask

Flask, a web framework built by a group of Python enthusiasts in 2004, is one very good framework for beginners to understand basics of full stack development. It provides something called 'template inheritence' which gives almost of flexibility needed for front end section. As for backend, you can manage all operations using Python's well defined functions which are easy as hell to understand. In this tutorial we will take a look at how to build a small Hello World application using Flask. If you are the type who cannot wait to start coding, the source code will be provided at the end of the article. You can grab it and take a look first. Step 1: To start, create a folder and name it HelloWorld. You can name it whatever you want to, but for simplicity, I will name it HelloWorld. Step 2: Change directory to the newly created folder and create '' file. This will be our python script in which we will write the server to run our app on localhost. app.

[Blockchain]Structure of Blockchains

Structure of a Blockchain A blockchain at its simplest idea, is a huge ledger containing crucial information about particular transactions. Imagine a big list containing a lot of rows with information in it. Well, that is just what a blockchain is. The whole ledger is known as the blockchain and each row in it represents the blocks. A block contains all important information on a particular transaction. To begin, a blockchain has a genesis block, which is the one at the very beginning of the chain. As for the other blocks, they will all have some information before it and after it. Informations vary depending of the purpose of the project. For example, one transaction in a block would look like this:- In the case of bitcoins, IINW, a block is generated every 10 minutes. A block, basically contains transactions occured within a period of time. After recording transactions within those 10 minutes, the blocks are added to a chain of blocks and other transactions are recorded in

[Drupal 8]Build a simple hello_world Module

Drupal is one of the world's most widely used Content Management System. It is mainly used to create your own website and publish it using an online webhost. Drupal 8, its latest release, takes the lead over Drupal 7 since it brought along with it a lot of changes. Drupal 8 is also very fast and flexible. Below are few steps you need to follow to create a module in drupal. A module is basically a simple page where you can add your own features by using Controllers, which we will later on in this article. Click here to check out my blog post on how to install Drupal using composer. Structure of files i) An info.yml file - Module ii) A routing.yml file - Routing File iii) A Controller Building the module A module needs to have the .info.yml extension. This file will contain important information such as: (i) name of the module (ii) a description of what the module can do (iii) the type, which can be module, profile or theme (iv) package, which s

[Drupal]Drupal 8 Sandbox

Installation of Drupal 8 Sandbox Why Use the Sandbox version? If you want to give drupal a try, but you're unsure of how it'll look like or want to check how it works, the sandbox version is just for you. If you already know how to set up drupal on your lamp server, then you'll have no problem at all to set up the sandbox version. If, somehow, you can't figure it out, then you can just follow the simple steps below and you'll be there. In the steps below, we'll use Sandbox version of Drupal to generate a new issue, and patch it using Git.                    Requirements: Git Steps: Step 1: Clone it Start by opening your terminal and clone the repository by running the following the command: git clone --branch 8.x drupal-sandbox This command will clone drupal 8 sandbox and the all the files will be in a folder 'drupal-sandbox'. You can change the name of the f

[Drupal]How to generate an Interdiff

What's an interdiff in the first place? An interdiff a simple .txt file which contains all the different changes made between two patches(an old patch and a new patch). Generating an interdiff is relatively easy. Following the steps below will make it easy for you to generate the interdiff. Requirements: patchutils sudo apt-get install patchutils; List of Issues: There's a list of open issues here , whereby you can choose any of them and contribute to Drupal , by patching. For the tutorial, we'll be using the issue with id 2639682 . We'll generate the interdiff for 2639682-26.patch and 2639682-20.patch . Before making the interdiff, you need to download both patches. An easy way to download the script is by using wget. wget wget   Now that you've download both patches, you can generate the inter