Archive

Archive for July, 2010

Vim Tip – Highlighting long rows

July 20th, 2010 5 comments

Occasionally when using vim to edit large amounts of text, such as writing a blog post, or formatting a large code comment, I wish to hard wrap the lines at a certain number of columns for ease of reading. Here is a simple vim function which uses the built in syntax highlighting capabilities of vim to highlight any line which extends beyond 80 columns of text, allowing me to add line breaks as I see fit, while leaving long lines of code alone. As an added bonus, it looks really nice in the gui version of vim while still remaining usable in the console version.

Read more…
Categories: vim Tags:

MySQL Proxy

July 8th, 2010 No comments

MySQL Proxy is a handy little utility for MySQL 5.0 and above which can be used to troubleshoot the database parts of an existing application without modifying the code to add lots of debugging statements. It speaks the MySQL binary protocol and can be placed between an application and its database, allowing you to inspect, log, and even manipulate the proxied queries and results.

Read more…
Categories: MySQL Tags: