I’ve been looking for an excuse to write an Android app, and those annoying “unknown number” phone calls presented themselves at the perfect problem to solve. My CallerID application consists of two parts: a service that runs on a server and given a phone number returns the information associated with it, and an Android app … Continue reading My First Android App: CallerID
Tag: java
Install JBoss 4.2 on Centos/RHEL 5
I was recently tasked with installing JBoss 4.2 on Centos/RHEL 5. I found the experience remarkably difficult, so I figured I should share it for my own future reference, and hopefully to also save the sanity of whatever other poor souls are tasked with the same project. Start off with RHEL 5 or Centos 5 … Continue reading Install JBoss 4.2 on Centos/RHEL 5
Hibernate Deep Deproxy
A common problem faced with using ORMs that use lazy loading is that the objects returned by the ORM contain (obviously) lazy loading references, so that you need an ORM session to access those objects. For example, if you have a “Person” class, that contains a “mother” property, when you do “person.getMother()”, the ORM will … Continue reading Hibernate Deep Deproxy
EhCache implementation of OpenJPA caching
I usually use Hibernate, which supports a number of caching implementations (such as EhCache, oscache, JBoss, etc). My most recent project had a dependency on a product which has a dependency on OpenJPA, and OpenJPA only has it’s own built in implementations of a query cache and a data cache. I like to have one … Continue reading EhCache implementation of OpenJPA caching
HTTP Caching Header Aware Servlet Filter
On the project I’m working on, we’re desperately trying to improve performance. One of the approaches taken by my coworkers was to add the SimplePageCachingFilter from Ehcache, so that Ehcache can serve frequently hit pages that aren’t completely dynamic. However, it occurred to me that the SimplePageCachingFilter can be improved by adding support for the … Continue reading HTTP Caching Header Aware Servlet Filter
Preventing java.lang.OutOfMemoryError: unable to create new native thread
Artifactory is a Maven repository manager that does a lot of really useful things, such as cache maven artifacts (which saves external bandwidth and makes downloads faster) and stores our own artifacts (such as 3rd party software that can’t be on a public maven repository for licensing reasons). I recently upgraded from Artifactory 1.2 to … Continue reading Preventing java.lang.OutOfMemoryError: unable to create new native thread
UTF-8 and MySQL
MySQL seems to operate in latin1 encoding by default, not in UTF-8, even though in many cases (such as most Linux distributions), the system uses UTF-8 for everything else by default. Today, this situation caused a confusing problem for me. From 30,000 feet, the application is a Java web application that reads data from a … Continue reading UTF-8 and MySQL
X#
While browsing reddit today, I ran across X#, a programming language that describes itself as “an XML-oriented programming language designed to quickly create Web applications and services.” Looking over the samples, I have to agree with the reddit description: I can’t believe they are serious about this! In my opinion, XML is a great data … Continue reading X#
Windows, Java, and an Internationalization Mess
The project which I’m currently working on is a Java project, powered by Spring, built by Maven. I use Ubuntu/Linux to build and run the project locally, but everyone else on the team uses Windows XP. We recently got back a set of translations that included pages in Chinese, Japanese, Korean, and Russian – all … Continue reading Windows, Java, and an Internationalization Mess