Posts Tagged ‘apps’

Git: You have some suspicious patch lines…

Monday, December 29th, 2008

So, I’ve run into this a few times now and it seems like bizarre behaviour to me. While committing, git complains about files which have trailing white space, or spaces followed by a tab. While this may not be the nicest formatting, enforcing this to be fixed before committing a file seems odd.

It turns out this is being caused by a pre-commit hook. There are two options you can go with to circumvent the issue.

git commit --no-verify .

The –no-verify will bypass the pre-commit hooks. This only works on the current commit thought, so you have to add the flag each time you want to commit.

I’ve found that if you

cd .git/hooks/
chmod -x pre-commit

will disable the pre-commit hooks permanently by removing the executable rights on the file.

Apparently they are disabled by default in newer releases.

Hope this helps someone else out as well.

Git Version Contron Graphical Tools

Sunday, December 28th, 2008

*Update 2009-05-05* Also check out my quick post on gitg, a gnome based UI for git.

One thing that I have found while working with git is that there isn’t a wide selection of graphical tools to interact with the repository. There is gitk which comes with a default install of git. This program gives you a visual representation of the workflow of the repository that you’re currently working on. From your checkout folder typing gitk should bring up a window similar to this one.



Testing Webpages in Multiple Versions of Internet Explorer

Tuesday, November 4th, 2008

If you have done any xhtml / css, I’m sure you have experienced the joy of making the site look the same in all browsers. Typically went implementing a site, I will first develop it in FireFox to get the general layout correct, then test in Safari, Chrome, and the dreaded multiple versions of Internet Explorer. Recently, a colleague of mine pointed me in the direction of a tool called IETester.


Simple Time Tracking with Project Hamster

Friday, June 6th, 2008

If you’re like me, you frequently need to be able to tell people how long a project took, how much time some bug fixes ate out of the day, or what you worked on the past day. I’ve looked around for a quick & simple app to track my time usage and hadn’t come up with a good match until I recently found Project Hamster. My previous main barrier to usage was laziness and wanting a lightweight program to do this simple task. Hamster makes it dead easy to enter time, add new categories / activities and view simple reports.


Password Security

Thursday, May 29th, 2008

So, everything requires a password these days right? Whether you’re setting up a new email account, signing up for twitter, or creating a new bank account. How in the world do you remember all of these passwords? Well, I’ve seen the old sticky note on the monitor (in the drawer, under the keyboard, you name it) all too often, and we all know that we shouldn’t use the same password everywhere right? That leaves two options: have an amazing memory (ask my wife, I don’t) or find a way to securely manage your passwords.

Thankfully KeePass (or KeepassX on Linux or Mac OS-X) can help out where my memory lacks. KeePass will provide you with a secure place to store all of you passwords in an encrypted format. From the screenshot you can get a rough idea as to what the interface looks like. When you highlight any of the entries, you can just Ctrl+C to copy the password and paste it into whatever application is asking for it. For websites, there’s even an ‘auto-type’ feature. To use this, you first go to the site you want to log in to, click in the username box, and then open KeePass and click on the entry for the site. Then press Ctrl+V and it will type in your username / password for you. Slick eh?