Google Code Prettify automatically detects your source code and highlights it accordingly. It’s quite simple to setup. 1. Put the below style links in your head section. <link href=’http://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.css’ rel=’stylesheet’ type=’text/css’/><link href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css” rel=”stylesheet” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> 2. Now, place this script…
Python Program for Binary Search with explanation
Binary search algorithm is used to find a number in a sorted list. so, the pre condition for binary search is that the list should be sorted. If the number is found then its index is returned. This algorithm works…
How to style Django Forms with Bootstrap
Though we can use third-party packages like Django-Crispy forms to style forms in django with ease but still it’s sometimes required to style django generated forms all by yourself, here we will see how to do that. the form will…
Python Program to reverse a number using loop
Here is a simple program to find the reverse of an entered number. Please note that this program works for only positive integers. Source Code: x = input(“Please Enter a number to reverse: “)reverse = 0while(x): reverse = reverse…
Connect Filezilla with Amazon EC2 Ubuntu Server
In this quick guide we will learn how to connect to your amazon aws ec2 ubuntu server using a FTP client like Filezilla. 1. first make sure filezilla is installed sudo apt-get install filezilla 2. open up filezilla and navigate…
Make all Images responsive with bootstrap automatically!
Hi guys, in this post we will see how to make all images on your website responsive automatically with bootstrap. this will get rid of the problem of the images breaking out of the content area of your website on…
Install JavaScript & CSS Minifier in Sublime text 3
This is a short guide on how to install Javascript & CSS Minifier, called Sublime-Minifier. This minifier works for both sublime text 2 and 3 and supports all platforms – Linux, Mac OS & Windows. 1. using git, clone the following…
How to install & use TeamViewer on ubuntu 16.04
Teamviewer is a desktop sharing and remote control application, users can remotely control the desktop of the connected computer. Follow these steps to install it on Ubuntu Linux. Installation: 1. Download teamviewer .deb file wget https://download.teamviewer.com/download/teamviewer_i386.deb 2. Install teamviewer using…
How to Install and use Django Crispy Forms
Crispy forms is a third party django app that makes styling forms really simple. It makes your forms look beautiful with almost no effort from your side. It supports different template packs like uni-form, foundation, bootstrap and bootstrap3 , that’s what we…
Simple Hello World page with django 1.9 in Ubuntu / Linux Mint [Beginners] [Part – 2]
In the First part of this tutorial we created an app named helloworld and added it to the setting.py file. Now let’s continue further towads our journey to make a ‘Hello World’ page with django. Urls Let’s define our url…