How to integrate vcprompt with bash shell to show git information in Ubuntu

If you are using git in Linux then you might have hit command ‘git status’ to find out in which branch are we currently on, whether there are any changed contents or any uncommitted changes. Wouldn’t be nice if we can get those git information easily so that we need not hit that command frequently. ‘vcprompt’ is the solution here. You can easily integrate vcprompt in bash prompt so that we can see git information from the prompt itself. Lets discuss some steps to integrate vcprompt in bash. I am using Ubuntu 12.10 here. It should also work in other similar Linux variations.

vcprompt is a script to show version control information in the command prompt. This script is written by djl. vcprompt is heavily inspired by Greg Ward’s original implementation in C.


Requirements: Python 2.4 or later

You can check Python version from following command.

If curl is not installed in your systemm then you have to install curl first.

How to do?

Download vcprompt script and make it executable.

Now we have to setup bash to use vcprompt.For this you we need to modify .bashrc file

Copy the following code and paste it in the end of the file.

Save the file and close the editor. Enter following command.

Hmm…now you get nice looking prompt. If you are in the git working folder then you will see current branch and other git informations.

Dont forget to check README file of vcprompt for more customization options.

How to add Xampp Control panel GUI in Ubuntu 12.10 (Linux)

When you install Xampp in Linux, there is no control panel GUI for starting or stopping the Server and other components in default installation. But you can create easily. This short tutorial is for those who want to add Xampp control panel GUI in Ubuntu 12.10.

How to do?

First you need ‘python-glade2’ for this to work

Now open Terminal and create a new file named ‘Xampp.desktop’

You will get text editor. Now copy following code and paste it there.

If you have installed Xampp for Linux in other than ‘/opt’ folder then change the ‘Exec’ and ‘Icon’ value accordingly.

Change the file permissions so that it can execute.

There is nice and beautiful Xampp icon in your Desktop. If you double-click that icon XAMPP Control panel will open.

How to solve Rubik’s cube ? #Beginner [Video tutorial]

If you are trying to solve the The Rubik’s Cube then it may sometime can be very frustrating and may seem next to impossible to restore to its original configuration. However, once you know a few algorithms, it is very easy to solve. Here is the step by step video tutorial to solve 3×3 Rubik’s cube. Kudos to the creater of the tutorial – Eriks.

Step 1 : Cross

Step 2 : Corners

Step 3 : Second layer

Step 4 : Edge Twisting

Step 5 : Corner Placing

Step 6 : Corner Twisting

Step 7 : Finishing Edges

Congratulation ! Now you can solve The Rubik’s Cube !!!

How to change/edit post permalink url after publishing in blogger ?

Blogger-logo
Can we change or edit the post permalink url after publishing it in blogger? Yes. Blogger is providing this feature to customize the post url. [How to customize post permalinks in blogger]. Earlier we could not even make our own permalink for our blog post. Now this new feature is much handy. But this option is also one time shot. If you accidentally or purposely hit Publish button, then we could not edit it after wards.

Today I realized that, even after customizing and publishing the post we can edit afterwards. There is button ‘Revert to draft‘. When you hit that button after publishing your post, that post would be now unpublished and remain as draft. Now you can customize post permalink URL as you require and hit ‘Publish‘ button. This would do the trick.

Cheers !!!