how-to

Skip .svn directories when using grep

What You'll Need:
grep 2.5.3+

I can't count how many times a day I use grep. It is an indispensable tool for searching the contents of configuration files, data files, and source code.

One of the annoying side effects of grep is when searching a Subversion working copy recursively, all the hidden .svn directories ...

Fix Wordpress Editor on a Free GoDaddy Hosted Site

Did you register a domain name with GoDaddy? Did you use the "free hosting credit" to setup your website's hosting? Having problems getting the visual editor to work on your new Wordpress blog? Then join the club - GoDaddy's infamous injected ads break the Javascript code that makes the TinyMCE visual editor work. Luckily, it's fixable, and here's how.

The Symptoms

There are quite a few things that can cause the Wordpress WYSIWYG editor ...

Quickly indent multiple lines in vi/vim

Indenting lines of programming code is essential for readability. Indenting multiple lines at once is a feature that any useful code editing software should have.

As a programmer, I went far too long not knowing how to do this with vim (one of my favorite editors). It's so easy, even Mike Tyson could do it. And he never learned to read.

  1. Enter VISUAL LINE mode by holding and hitting the "v" ...

Requirements:
Subversion
gcc

Platform:
any Linux distro

Keeping code up-to-date in multiple environments can be a pain in the ass. You might develop on one server, stage on another, and then have all your production code run on yet another server. Thus, getting the most recent code moved to each server can involve a lot of updating from a code repository.

If you're using ...