solution

iPad or iPhone app won't open - solution/help

I just ran into the craziest problem where I couldn't get any third-party apps on my iPad to open. I'd tap them, there'd be a quick blink, then nothing, I was back to the home screen with all my app icons.

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.

Solution for PEAR or PECL "is using a unsupported protocal (sic)"

Summary: A solution for "pear/pecl is using a unsupported protocal (protocol)".

While trying to install the APC Opcode Cache on a server yesterday, when I tried to run this command:

pecl install apc

I kept getting this error message:

pecl.php.net is using a unsupported protocal - 
This should never happen.
install failed

After doing some research, it looks like you can also get a similar error message with PEAR:

Git empty directories FAQ - How to add an empty directory to Git

Git empty directories FAQ: How do I add an empty directory to a Git repository?

Short answer - you can't. (See below for the workaround.) The design of the Git staging area only accounts for files, as described in the Git FAQ, and other books like Pro Git.

Git empty directories FAQ

Here's the text from the Git FAQ section, "Can I add empty directories to a Git repository":

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).

PHP installation error - unable to install php5 - configure: error: libjpeg.(a|so) not found

I ran into this error message today when trying to install PHP 5.2.x on a CentOS Linux server:

unable to install php5 - configure: error: libjpeg.(a|so) not found.

Actually, although I wrote "install" above, I was trying to run the PHP configure script when I got that PHP error message. (configure is the command you run before you run the make or make install commands.)

Solving the MySQL "can't create/write to file" error message

Two MySQL error messages

Earlier this week I ran into a problem with a website that I tracked down to a MySQL error message that looked like this:

can't create/write to file /var/lib/mysql/foo.bar.baz
Errcode: 23

(The actual file referenced in that error message doesn't matter, as it will be different on most systems, but the "can't create/write to file" is important.) After digging through my log files even more, I also found this error message related to MySQL:

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:

Java - perform a case-insensitive search using the String matches method

Problem: In a Java program, you want to determine whether a String contains a pattern, you want your search to be case-insensitive, and you want to use String matches method than use the Pattern and Matcher classes.

Syndicate content