Posts

GIT

Git Useful If you are here, you've seen the trailing whitespace errors shown by Git when committing changes. These errors can indeed cause problems. Not only when e-mailing patches but also when working with weird glue tools such as git-p4 which relies on patches to sync changes to Perforce. One way to deal with these is ignoring them. While that works, it does only until whitespace introduces unintended change in a patch and things explode. To avoid that it is better to keep your files clean from trailing whitespace which can be easily achieved by using a pre-commit hook in Git. This hook is a script which is ran before each commit to do something useful. In this case to clean trailing whitespace. To install such a hook you can do the following:    In a terminal of some sort, go to your working git repository ($GIT_DIR):     cd $GIT_DIR     Now open a new file for writing:     cat > .git/hooks/pre-commit     Paste the following code in the terminal:     #!/bin/sh     if git

Outlook PST: Do you know maximum size?

Image

how to install gparted in ubuntu

Image
GParted Partition Manager  Gparted is a free disk utility management package for Linux that allows you to partition, resize and format your hard drives.  To install Gparted in Ubuntu Linux enter the following in the terminal. you will be prompted for your password $sudo apt-get install gparted   Once the Gparted package has been installed, launch it via the terminal by using the following command. You will be prompted for your password.  $sudo gparted GPARTED

Is a Google Talk Contact Invisible?

Image
Is a Google Talk Contact Invisible? Sometimes error messages can reveal more than they were supposed to. Rahul Bansal writes about a simple trick that helps you find out if one of your Google Talk contacts is offline or uses the invisible mode. The trick takes advantage of Google's off the record feature which lets you chat with your contacts without saving the conversations in Gmail. "Chats that have been taken off the record aren't stored in your Gmail chat history, or in the Gmail chat history of your contact. You and the person you're talking to can both see when a chat is taken off the record, and you'll be notified if off the record mode is disabled. Your off the record settings will apply whenever you chat with this person, until one of you makes a change." Let's say you want to know if your co-worker Michael is really offline. If you start a chat when he is online and select "go off the record", none of your messages will be saved in Mi