problem

The CakePHP form save, validate, and debug problem

CakePHP form save/validate/debug FAQ: How do I debug problems in the CakePHP form save/validate process?

One problem I've run into with CakePHP is that while the form validation approach works very well 95% of the time, when it fails it can be very hard to debug. Because the form validation process happens when you invoke the save() method, much of this debugging process seems to be out of your control.

iTunes movie error - movie was not copied to iPhone because it cannot be played on this iPhone

iTunes movie/video error FAQ: As I continue to explore the process of creating digital movie files I can play on my iPhone (or iPod), I keep running into an iTunes error message when I try to sync my movie file to my iPhone through iTunes.  Every time I try to sync my movie, iTunes gives me the following error message:

[Your movie] was not copied to the iPhone "Alvin Alexander's iPhone" because it cannot be played on this iPhone.

This iTunes movie sync error message is shown in the following figure:

A bad Toyota RAV4 quality experience

Okay, sorry for this rant, but I have had a very bad experience with Toyota regarding my 2006 Toyota RAV4, and I'm upset about it.

My rant is short: The RAV4 I currently own was my first Toyota purchase, the overall experience has been very poor, and I've just spent three days trying to get this latest RAV4 problem resolved. Toyota acknowledges this problem is a design flaw, but now it turns out that Toyota's "customer care" people don't actually care.

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:

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.

The Java String matches method

Problem: In a Java program, you want to determine whether a String contains a pattern, and you'd rather use the String matches method than use the Pattern and Matcher classes.

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:

Syndicate content