Posts

How to install python-gst (pygst) in ubuntu 16.04

pygst is the python binding of Gstreamer which is a media-framework, it supports various media handling such as audio playback, video playback and editing. Installation open up the terminal and enter the following commands sudo apt-get update sudo apt-get install python-gst-1.0 Check if its working properly open up your python shell and import pygst aman@vostro:~$ python Python 2.7.11+ (default, Apr 17 2016, 14:00:29) [GCC 5.3.1 20160413] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pygst >>> if its not installed properly then an error message will be shown: ImportError: No module named pygst

Syntax Highlighting with Google code-prettify and bootstrap

Image
Google Code Prettify automatically detects your source code and highlights it accordingly. It's quite simple to setup. Read more »

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 on divide and conquer principle. Read more »

How to style Django Forms with Bootstrap

Image
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 be able to show errors also. Read more »

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 Read more »

Make all Images responsive with bootstrap automatically!

Image
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 any kind of display. I have written a simple script that will apply the img-responsive bootstrap class to all your images. Read more »

Install JavaScript & CSS Minifier in Sublime text 3

Image
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. Read more »