Category Archives: KellyBlog

Mandarin Tuesdays II

My Tuesday dancecard is filling up. The first mandarin course has ended and I’m now registered in the next chapter of Mandarin. Beginning Chinese II “This course is the second of a three-quarter sequence of beginning Mandarin Chinese. It is designed for students with little knowledge of Chinese. With an emphasis on conversation, the course […]

centos l10n problem

Just about the time I believe the UTF-8 beast is in the cage, it escapes and runs amok. This AM, I started to deploy an update to the webapp on EC2. Seems that some of the static strings in the app contained UTF-8 encoded non-ascii characters. The java compiler barfed. “The heck?”, I thought. I […]

bash array crawler

I wanted to complement my bash directory crawler post with a bash array crawler example. Sometimes, it’s easier to jack a list of identifying tokens into an array and process them rather than to build an end-to-end script with database access. For this contrived example, I grab a list of UUID from MySQL with a […]

UTF-8 on Tomcat

I use Apache httpd + mod_jk with tomcat and connect to port 8009. Be sure to tell the tomcat connection that you are using UTF-8. # vi /usr/local/tomcat/conf/server.xml <Connector port=”8009″ URIEncoding=”UTF-8″ enableLookups=”false” redirectPort=”8443″ protocol=”AJP/1.3″ /> Add two parameters to the list of JAVA_OPTS (at least for tomcat) -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8″

WordPress plugin problem

When I moved to wordpress, I purposely picked a theme with paged listings. Of course, I also started with the latest v. 2.7 release. (Actually 2.7 rc2, then an upgrade). The paged navigation at the bottom of the content section did not work. I tried to install the wp-pagenavi plugin but wordpress complained that the […]

Character codes and encoding

Character codes and encoding In the beginning, there was ASCII. (There were others, but we begin here with ASCII). 7-bit ASCII in an 8-bit package. Using only the first seven bits of a byte, standard ASCII could not deal with diacritical marks (accents and funny dots in the vulgar vernacular). Therefore, the German word for […]