David R. Heffelfinger
NetBeans Book Now Available From Amazon
It has come to my attention that my newly released NetBeans Book is now available through Amazon.

Java EE 5 Development With NetBeans 6
It is also available directly from Packt Publishing.
Posted at 11:22AM Nov 02, 2008 by David R. Heffelfinger in General | Comments[0]
Blocking External Domains Pointed to Your IP Address
Last night I realized some bozo decided to point his domain name to my site. I don't know exactly what he was thinking, or what benefit he could possibly get from doing so. The only thing I could think would happen is that all my content would have an exact duplicate in Google, and we all know Google doesn't like duplicate content.
I contacted eApps,my hosting company, they contacted the owner of the intruding domain, and he refused to remove his domain name from my IP address. Tech support suggested I could set up an Apache rule to serve only my domains from my IP address.
I googled around to see how to go about this, but came out blank. Most issues I found were about preventing specific hosts to link to my site, which is not what I was trying to do. Once again I asked eApps support, and they came up with a solution.
I needed to add some rules to the Apache .htaccess file that would result in only my domains being served from my IP address:
SetEnvIfNoCase Host "mysite1\.com" local_sites
SetEnvIfNoCase Host "mysite2\.com" local_sites
Order Allow,Deny
Allow from env=local_sites
Adding the above lines to .htaccess did the trick. The bozo is no longer serving my content from his domain.
Posted at 06:12PM Oct 07, 2008 by David R. Heffelfinger in General | Comments[0]
I can't fix your corrupted PDF
Just like I can't fix corrupted Excel spreadsheets, I neither can fix corrupted PDF files. By the way, if your PDF requires a password just to be read, I can't help you crack it. However, if you can't copy and paste or print your PDF (but you can read it), I wrote an utility you can use to remove those restrictions: http://www.ensode.net/pdf-crack.jsf.
Posted at 04:48PM Oct 06, 2008 by David R. Heffelfinger in General | Comments[0]
I can't fix your corrupted Excel Spreadsheet
Since a while back I wrote a utility that can , every now and then I receive emails from random people asking me to fix their corrupted excel files.
Well, sorry, I am unable to do that, good luck.
Posted at 04:45PM Oct 06, 2008 by David R. Heffelfinger in General | Comments[0]
