Cygwin 1.7 Annoyance with cygncurses-10.dll

After attempting to update from an older version of Cygwin, got this error “error while loading shared libraries: cygncurses-10.dll: can not open shared object file: No such file or directory”.

I suspect that there is a dependency bug during the installation.  To fix this issue, re-install the correct dll package.

In this case “libcurses10″.  You should consider uninstalling older packages if they exist.

good luck.

Enable Whitespace Filter in JBoss (Tomcat)

Sometimes our JSPs can bloat to over 65K which is the spec limit. This results in an annoying compilation error.


Generated servlet error:

The code of method _jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) is exceeding the 65535 bytes limit

One quickfix approach is to turn on the whitespace filter in JBOSS by modifyting the following web.xml


%JBOSS_HOME%\server\%SERVER%\deploy\jbossweb-tomcat55.sar\conf\web.xml
//Add the following init-param to the jsp servelt

trimSpaces true//The result should look something like this:

jsp
org.apache.jasper.servlet.JspServlet

trimSpaces true
...

There is one more key thing that you must do. That is to force the jsps to re-compile. This can be accomplished by deleting the directory

%JBOSS_HOME%\server\%SERVER%\work

Then starting the server.

Get Cookie Info Easily

Quickly see cookie information by creating a bookmark in your browser with the following:


javascript:alert(unescape(document.cookie).replace(/\;%20/g,%20"\n"));

Bash Fu Update

Search Within JARs Using Bash

Welcome

This site was created to document various pearls of wisdom that one collects throughout the daily grind of the lonely code monkey.  This includes coding, web design, or other miscellaneous rants and raves.  Hope you find something useful here, and I hope that you may contribute as well.