Struts validation variable back referencing

Old Struts 1.x project.  I’m new to Struts and I was trying to validate a string with minlength, and if the length is not enough, then display an error message which contains the original string and the length of the original string. Not because it makes sense, but because that’s what I am asked to …

Setting up PHP CodeSniffer with NetBeans

I’m setting up phpMD / CodeSniffer into my NetBeans 7.3 on Xubuntu 12.10 again, so that I don’t have to look all the stuff up again. First I install the plugin. Then it complains that the underlying stuff isn’t properly configured. (Of course it isn’t as I haven’t installed anything else yet.) Let’s start with …

Setting up my Apache with Zend Framework on Xubuntu 12.10

This is just a slight modification of my other post for achieving the same thing on Debian Wheezy.I have a fresh install of Xubuntu 12.10. (Since it is based on Ubuntu, this should work just fine with Ubuntu 12.10 as well.) I use the official repositories. I’m configuring it for Zend Framework development. Other tutorials …

Debugging ‘No writers were added’ error

Recently I got some PHP Fatal error: Uncaught exception ‘Zend_Log_Exception’ with message ‘No writers were added’ messages in the Apache error log file. The reason is most of the time (at least in my projects) is that the Zend_Log_Writer_Stream constructor returns null. Just a reminder to myself how to solve the problem: make sure the …

Setting up my Apache with Zend Framework on Debian Wheezy

I have a fresh install of Debian Wheezy. I use the official repositories. I’m configuring it for Zend Framework development. Other tutorials on the web describe all this a little bit differently but I am trying to set up Zend Framework for my own needs, so if this works to you then fine, if not …

Beginning with the Raspberry

As I received my Raspberry Pi yesterday, today I started to play with it. I installed Raspbmc, but I constantly got cannot reset port (-110) error messages. And ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected messages. Google search mostly came up with people who had the same problem because they used some devices on the USB ports which the …