Linux, OpenSource, Programming And Hacks

Oct 19, 2016

How to Install and use Django Crispy Forms

Oct 19, 2016
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 will be using.

Setting it up is simple as well with these few steps that I have shown below

Oct 10, 2016

Simple Hello World page with django 1.9 in Ubuntu / Linux Mint [Beginners] [Part - 2]

Oct 10, 2016
In the First part of this tutorial we created an app named helloworld and added it to the file. Now let's continue further towads our journey to make a 'Hello World' page with django.

Oct 6, 2016

Simple Hello World page with django 1.9 in Ubuntu / Linux Mint [Beginners] [Part - 1]

Oct 6, 2016
Django is a web framework written in python. It is good for fast web application development. In this tutorial we will learn how to make a simple web page showing "Hello World" using django templates. we will also be applying styling to our page with css static files, we won't be dealing with any database or any advanced stuffs here.

This tutorial is aimed at beginners, So I 'll try to explain things in simple language without much technical detail.

Oct 5, 2016

How to Install wysiwyg editor in your django project

Oct 5, 2016

with django-wysiwyg, you get different rich html text editors, making it easier to write article posts.
It supports TinyMCE, CKEditor, Redactor, Froala, yui and more

Follow the below steps to setup django-wysiwyg in your django project.

Oct 2, 2016

How to Write, Compile and Run a C/C++ Program in Fedora Terminal

Oct 2, 2016

In this tutorial we will see how to how to write, compile and run a C or C++ program in fedora terminal itself i.e writing, compiling and execution of the program will be done within the terminal itself.

For writing any program we need a console (terminal) based text editor. I 'll be using vim editor, there are many more like nano, jed, emacs...

Sep 30, 2016

Run Python SimpleHttpServer on Amazon AWS EC2

Sep 30, 2016
With Python's SimpleHTTPServer you can quickly setup a webserver without any hassle. In order to use it, you don't need to install or configure anything.. you just need to have python installed on your server.

Step 1: Open up your AWS console and in your instance security group make the Inbound & Outbound settings like shown in the sceenshots below

Step 2: Login into your remote server via ssh

aman@vostro:~$ ssh -i yourkeyfile.pem ubuntu@your-server-ip

Sep 27, 2016

Ubuntu Installer does not show existing Partitions but free space [fixed]

Sep 27, 2016
If during ubuntu installation you don't see your existing partitions but all free space then there might be two possibility.

1. You have both GPT and MBR partition tables present on your hard disk.. It is generally caused when you install different windows in the past which used a different partition table scheme (MBR or GPT). So you end up with both Schemes. So we must make all partition scheme the same.

Check if you have multiple partition schemes with this command

sudo gdisk -l /dev/sda

In the screenshot below, It shows that MBR and GPT both are present.

Aug 24, 2016

Code Syntax Highlighting in django with Pygments

Aug 24, 2016

Syntax Highlighting is a very much useful if you put code on your website. This can be easily achived with django-pygments. over 300 languages are supported.

List of supported Languages:

django-pygments is the implementation of the pygments syntax highlighter for django.
usage is quite simple. after setting up everything, you need to put necessary template tags and then place your code in pre tags with a lang attribute specifying the language of the source code in your template.

example: <pre lang="python">YOUR CODE</pre>

1. First, Install the following packages.

pip install pygments
pip install django-pygments