Archive for the ‘Programming’ Category
Sunday, January 18th, 2009
Here's a list I have compiled of things that I dislike about programming. Some of these things have happened in the past, some happen currently to me. I feel like I am in control of these, so the fault is simply my own. It can be difficult to break out ...
Posted in Personal, Programming | Comments Off
Tuesday, September 9th, 2008
The documentation available is terse on how to use the replace-regexp function. Lately I have needed to do a rather large number of complex replacement's across code. Here are some things that I should definitely remember next time:
M-x replace-regexp RET \(.*\)-safe RET \1 RET
Parenthesis used for matching values for replace ...
Posted in emacs | Comments Off
Tuesday, August 19th, 2008
To get a list of tables in mysql which have a given column name (or regex of your choosing, etc.) use the following SQL:
select TABLE_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'dbName' and COLUMN_NAME like '%ColName%';
Posted in Programming | Comments Off
Wednesday, June 11th, 2008
I wanted to add this so I don't have to scour the web every time I need it:
perl -p -i -e 's/oldstring/newstring/g' *
This will replace all occurrences of oldstring with newstring in all of the files in your current directory. Being able to do this quickly and easily is absolutely ...
Posted in Programming | Comments Off
Monday, March 10th, 2008
I have been trying to setup a new 64 bit Quad Intel Core with a Radeon 9250 video card. My operating system of choice for this rig was going to be Ubuntu Gutsy 7.10. I have enjoyed using Gutsy in the past and saw no reason to change from ...
Posted in Programming, Technology | Comments Off