I am looking at the robot

Maintain query string with apache redirect

If you want
http://somesite.com/club500?utm=newsletter
to go to
http://somesite.com/how-to-help-club-500?utm=newsletter
using .htaccess then do this:

RewriteRule ^club500(.*) /how-to-help-club-500?%{QUERY_STRING} [R=301,L]

Access class const

In pre-5.3 PHP you can't use a clever call like $obj::ID, but you can access it via something like

constant(sprintf('%s::%s', $obj, 'ID'));

And for uninstantiated method calls like $obj::doSelect($c)

call_user_func(array($obj, 'doSelect'), $c);

ERROR 1005: Can't create table (errno: 150)

This is caused by trying to set a foreign key constraint on an attribute with a different datatype than the target column. Solution: make them the same -_-

MKCOL 405 Method Not Allowed

After receiving an MKCOL 405 Method Not Allowed on svn commit, and consulting google, I think I can say that this is caused by trying to commit over a file/dir that is already under version control. ie.

1. Delete a dir with .svn
2. Make the dir again, and put files in
3. Commit
4. MKCOL returns 405

Technically, I believe this is related to the WEBDAV implementation in Apache..? Anyway, delete and svn up, then try it again.

Toggle comment block in Netbeans

Select code block, then CTRL + SHIFT + C

-_-