One of the very common problems in any programming language is how to reverse a String. Let’s see a few ways to do this in python. 1. Using String Slicing well first of all the most easy way.. Here we…
Author: Aman Deep
How to Install SQLite3 in Ubuntu / Linux Mint
SQlite is an Embedded Relational Database Management System. SQlite does not require a server to run unlike mysql or other popular dbms. To install Sqlite3 in Ubuntu / Linux Mint issue the following commands This will work for Ubuntu 14.04…
Install TypeScript Syntax highlighting in Sublime Text Editor
We will need the TypeScript Package to get Syntax highlighting to work. we will install the package using Package Control. So, first go ahead and install Package Control Now, go to preferences, where you can now find Package Control option,…
Python Program to Check if a number is FIbonacci
In Fibonacci Sequence, every previous two numbers gives the next number. the first 10 Fibonacci numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 35 In this python Program we will see how to test if a number given…
Python Program to check if a number is Perfect Square
A number that can be expressed as the product of two equal integers is a Perfect Square number. for example: 25 can be expressed as 5 x 5 In the given python3 code we take a user input and take…
How to Fix – Operational Error: cannot open database in Django Sqlite3
This may be a permission problem. the database file must be writable to the user you need to grant permission to db.sqlite3 here, myproject is the folder which contains db.sqlite3 file chmod 664 /path/to/myproject/db.sqlite3sudo chown :www-data /path/to/myproject/db.sqlite3 sudo chown :www-data…
Get Free SSL certificate with Let’s Encrypt on Ubuntu Apache Server
Let’s Encrypt is an open certificate authority and provides free SSL Certificates. It’s popular for it’s simplicity to setup. It’s been founded by Mozilla, Cisco and many more. The setup process is very simple, I have explained it in 3…
How to link a custom domain name to AWS EC2 instance
if you have created your Amazon AWS EC2 instance, you can now access it on the web using your given public ip or public DNS (something like ec2-54-36-73-206.us-west-2.compute.amazonaws.com), you can find these in the description of the instance. But you…
How to setup a Static IP (Elastic IP) Address for AWS EC2
When you create an Amazon AWS EC2 instance, you are given a Public IP which you can use for remote login via SSH or Putty and of course to access on your browser. But the problem is that the Public…
How to install Apache2 Server in AWS EC2 Linux
After you have created and launched your EC2 instance you must be wondering what to do next?if you enter your instance ip in your web browser nothing will show because you need to install a server to see some action!…