Archive for September, 2009

HTTP Redirect using htaccess

To redirect all incoming traffic to a new site and send an http status code indicating that the content has moved permanently, use the following snippet in your .htaccess file:  RedirectMatch 301 ^(.*)$ http://www.mynewsite.com/ The 301 code is the status for permantly moved content. The regex ^(.*)$ matches all urls and finally http://www.mynewsite.com/ specifies where visitors must [...]

More »

7 signs your UI was created by a programmer

Are you a programmer? Then you might to read these 7 signs your UI was created by a programmer. No more excuses next time!

More »

Project name generator

Having trouble coming up with a suitable project name? Try this project name generator and you can get back to work. Here are some examples: Tidy Firecracker Rainbow Uranium Severe Tungsten Nocturnal Temple

More »

Select column names from a Microsoft SQL-Server table

I’ve posted a snippet before that allows you to select a list of tables (or views, stored procedures, etc) from a SQL-Server database. It would be only logical to also have a snippet that allows you to select the columns in the table you’re interested in. The following piece of SQL code does just that. [...]

More »