Category Archives: Programming

Python, bash, and general programming issues

Review of Hacking Vim 7.2

Hacking Vim 7.2 by Kim Schulz is filled with a variety of useful explanations and helpful tips for Vim users wanting to improve their efficiency and learn more about their editor. While I’ve enjoyed finding new and better ways to … Continue reading

Posted in Book Review, Programming, Python, Ruby, vim | Tagged , | Leave a comment

git tip: Ignoring modifications to tracked files

Problem You have a file already tracked in your git repository, but you don’t want future modifications to it to be tracked. A perfect example of this is the DB config file for Rails projects (config/database.yml). You’ll probably want to … Continue reading

Posted in Programming, RubyOnRails | Tagged , , , | 1 Comment

Hiding anchor tooltips on hover

Navigation menus on websites most often consist of a list of links. When looking through a menu, it’s not unreasonable for a visitor to have their mouse cursor over some of the menu item links for a few moments as … Continue reading

Posted in JavaScript | Tagged , , | Leave a comment

A better way to search for methods of Python objects

Python’s introspection abilities are quite extensive and useful. They are also well-documented, so I won’t go into the basics here. Check out this article if you need a good overview. N.B.: discussion and code below applies to both methods and … Continue reading

Posted in Programming, Python | Tagged , , | 4 Comments

Catching warnings from the MySQLdb module

The MySQLdb Python module implements the Python DB API for MySQL. I’ve written about its use before. MySQL issues warning messages in a number of circumstances and PEP 249 (which specifies the Python DB API) describes a Warning error message … Continue reading

Posted in Python | Tagged , , | Leave a comment