Posts

Showing posts from August, 2015

How to Auto Indent a Program: Vim Tips & Tricks

In this tutorial we will see automatic vim editor indentation tips and more. Indentation makes a program readable as well as neat and organised. In python programming language indentation is used instead of curly braces or keywords which make code neat and concise. follow this tutorial and your coding life will become a little easier :) Note : If you haven't used vim before then see some vim basics HERE Automatically Indent a whole program! Let's say you made a 100 line code but didn't care to indent it. Here is how to do it in a very simple way. Read more »

Linux wc command: count characters, words, lines of a file

Image
The wc command in unix/linux is used to print the number of characters, words, bytes and newlines of files or standard input. Syntax wc [OPTION] [FILE] Read more »

Best clipboard manager for ubuntu / Linux Mint: Diodon

Image
The clipboard is a temporary storage for your copied stuff which can be text, picture or any data to manage your clipboard you can use diodon Diodon is a lightweight clipboard manager written in vala. It is made for unity interface but also works fine in gnome, cinnamon and xfce. it is shown in the indicator in menu and all copied text appear in it once installed the diodon icon appears on the notification area Read more »

How to Change GRUB Boot Order in Ubuntu / Linux Mint

Image
Let's see how to boot into a specific operating system by default in linux grub boot loader. When you install a new copy of linux OS on your computer by default you get booted into your linux partition after a time interval. But let's say you have dual boot with windows and you would like to boot into windows instead. Read more »

How to Install xfce in ubuntu linux

Image
I found Unity to be very memory consuming and sometimes it hangs the whole system. So here comes xfce - A lightweight Desktop which is fast and uses less system resources. you will find it much like gnome 2.x. It comes as the default UI in Xubuntu. But it can also be installed along side unity in ubuntu. Let's start!. Read more »

Internet speed, CPU, RAM usage indicator for ubuntu

Image
A System load indicator to view internet network speed: download and upload, CPU usage and Memory consumption and also swap space use. It is based on the default system monitor so you will find all resources synced. It is a port of the gnome multiload panel applet to appindicators and vala Read more »

How to install latest Tor Browser in Ubuntu 16.04 & 16.10

What is Tor? Tor Browser is an internet browser based on firefox. It allows users to browse the internet anonymously. So, you can browse the blocked websites too. It hides your Ip address when you send or receive data from the internet. Your activity is encrypted so that you get privacy. Tor takes your internet requests and data through a huge network of hidden servers and the path is never the same So by using Tor browser no website or organisation will be able to track your location or online activity. Read more »

How to repair GRUB boot loader in ubuntu

In this tutorial we will see how to use this GUI tool called boot-repair which fixes most of the common grub related problems. The most common problem is the overwriting of the GRUB bootloader by the windows bootloader when windows is installed after ubuntu. or overwrite your MBR. And also if your GRUB has broken you won't be able to access your operating systems. Read more »

Difference between Seeds, Peers and leeches in Torrent

How does BitTorrent protocol work? When you download a file normally (direct download) from a website that file is downloaded from their central server but BitTorrent is a peer-to-peer protocol. There is no central server on which files are hosted instead they are shared between computers connected to the Swarm (a group of people downloading and uploading the same file). Let's now understand the meaning of  the common BitTorrent terms. Read more »

Insertion Sort algorithm explained in python with example

Image
Insertion sort is an algorithm for sorting a list of numbers. The key idea of this algorithm is to divide the list into two portions: a sorted portion and an unsorted portion. At each step of the algorithm a number is moved from the unsorted portion to the sorted portion until the entire list is sorted. Make sure you watch the video tutorial given at the end to understand how the code is written. Insertion sort implemented in python: Read more »