Categories
Archives
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- March 2009
- February 2009
- January 2009
- August 2008
- July 2008
- June 2008
- November 2007
- October 2007
- July 2007
- June 2007
- April 2007
- January 2007
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
Tools
Category Archives: Web Dev
Making Eclipse for PHP Useful
Out of the box, Eclipse for PHP is lacking a few vital features.
Problem: How do I run SQL queries in Eclipse?
Solution: The SQL Explorer plugin.
To install:
Go to Help->Install New Software.
Add a new site called SQL Explorer with the URL http://eclipsesql.sourceforge.net/
Select SQL Explorer.
Keeping clicking Next/Finish until the plugin is installed.
Problem: Okay, I can run some queries [...]
Posted in Web Dev Leave a comment
What is my IP?
This past weekend I found a fun domain name for a project: ipaddr.es. Yeah, it is missing an “s” at the end, but I think it is still a fun domain.
So I threw up a “what is my IP” style page and am having some fun with it.
What makes IP Addr.es better than the competition? A [...]
Also posted in My Sites Leave a comment
PIC Code Site
When my wife leaves town, I like to spend my time working on websites. With her out of town checking out Rice University, I put some time into a project I’ve been meaning to do for a few months.
A while back I found this site, a very old school ghetto PIC/CIC search site. Having had [...]
Also posted in My Sites Leave a comment
PHP: mysql or mysqli?
As you may know, I’ve been spending a lot of time trying to make the Fake Name Generator as fast as possible. I’ve started using a CDN, I’ve made minor code tweaks (like doing ++$i instead of $i++), added APC caching, and a bunch of other stuff, but still feel that the core of the [...]
Also posted in My Sites Leave a comment
Save money AND make your site faster using a CDN
My most popular website, the Fake Name Generator, recently ran into two major problems:
It was using too many server resources.
It wasn’t as fast as I wanted it.
To solve these issues, I turned to SimpleCDN and their awesome “mirror buckets”. Basically you setup a bucket, point it at your base URL (in my case, http://www.fakenamegenerator.com), then [...]
Also posted in My Sites, Reviews Leave a comment
Fix capitalized words in a MySQL table
I got a support request today for the Fake Name Generator. A visitor ordered US addresses, and some of the cities came back in all caps and some normal (e.g., FOLSOM and Folsom).
After digging into my code, I found that I was checking if a city name was in uppercase, and if so I was [...]
Also posted in My Sites Leave a comment
Quick and Easy PHP WHOIS Script
I like to be able to type “whois somedomain.com” in my browser and have it bring up the WHOIS information. The site I’ve been using has a captcha (annoying) and has gotten unreliable, so I wrote this quick and easy script to pull the full unformatted WHOIS data for me:
<?php $d = isset($_GET['d']) ? $_GET['d'] [...]
Posted in Web Dev Leave a comment
Automatic JS Broken Image Replacement
It’s a sad fact of life, but sometimes webpages have broken images. Wouldn’t it be nice if there were an easy way of automatically replacing these broken images?
for (i = 0; i < document.images.length; i++) {
var img = document.images[i];
img.onerror = function (evt) {
this.src = "broken-image.gif";
}
};
This [...]
Posted in Web Dev Leave a comment




Mobile Money