solved

How to search multiple jar files for a string or pattern

Here's a shell script that I use that search Java jar files for any type of pattern. You can use it to search for the name of a class, the name of a package, or any other string/pattern that will show up if you manually ran jar tvf on each jar file. The advantage of this script -- if you're a Unix, Linux, or Cygwin user -- is that this script will search through all jar files in the current directory.

Waiting iPad apps - possible solutions

Waiting iPad apps: If you run into a problem with "waiting" iPad apps during the iPad app installation or update process, my "waiting iPhone apps solutions" article should be helpful. Because all these Apple devices use the same iOS operating system, and because we've found four possible solutions to the "waiting iPhone/iPod apps" problem, these waiting app tips should work just as well for waiting iPad apps (also referred to as "stuck" iPad apps).

Apache cannot restore segment prot after reloc

Problem

I got the following error message after trying to run apachectl start after installing PHP and the Apache httpd server:

Solved problem trying to configure PHP with GD support

Problem

I was just trying to install PHP from source code on a CentOS Linux box, specifically trying to configure PHP with GD support with a configure command like this:

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
            --with-mysql \
            --with-gd

Unfortunately this configure command fails, ending with the following two lines of error output:

Tomcat DBCP error: Cannot create JDBC driver of class ... for connect URL null

I just ran into a crazy error related to Tomcat and DBCP connection pooling. The error message I got after trying to use the Tomcat DBCP connection pooling in my Java web application was:

How to install Apache with the mod_proxy module

Over the weekend I was trying to configure Apache as a reverse-proxy server (specifically as a reverse-proxy server working in conjunction with OpenSSO), and I couldn't get it to work at all. It's been a while since I last installed Apache, and I assumed it was configured with the modproxy module by default, but it turns out that it's not: You have to configure Apache with the mod_proxy module at installation time in order for things like the ProxyPass configuration to work.

PHP check your libxml2 installation error

I was installing PHP on a CentOS (Linux) server yesterday (using the configure script), and ran into an error related to my libxml2 installation. Here's the complete error message that shows up at the end of the configure script output:

Getting PHP, MySQL, and Mac OS X to work together

Update: If you're interested in using PHP and MySQL on Mac OS X, these days I recommend skipping this article and using MAMP, which I describe in my Mac OS X MAMP tutorial.

Glassfish JDK path problem solved

Glassfish JDK path problem: Some time ago I downloaded Glassfish, and then got away from it for a while. Today when I tried to run this command

C:\glassfish\bin> asadmin start-domain domain1

I got this error message from Glassfish:

Recovering a deleted file from CVS using Eclipse

Life never ceases to amaze me. In this case, one day I write a rant about a Pigpen Developer who is anti-YAGNI, and then later in the week this exchange takes place.

Thursday morning, a customer tells me "Al, we're not going to need the XYZ functionality after all."

"No problem", I say, "I'll delete it."

"That would be great", they say, and I go off and delete all the code related to XYZ.

Syndicate content