mark's blog
JPA Detached Object Gotchas
Submitted by mark on Sun, 12/30/2007 - 13:06.Java Persistence API detached object gotchas
One of the issues to get your head around in both Hibernate and JPA is how to handle detached entities. In Hibernate one has to deal with the session object and in JPA it is called the persistence context.
Cannot find the declaration of element 'persistence'
Submitted by mark on Sat, 12/22/2007 - 22:12.A common error when using EJB3 is
Cannot find the declaration of element 'persistence'
This is caused by a missing xml namespace attribute declaration in your persistence.xml file. To fix this error make sure your persistence tag has the following syntax:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
instead of
<persistence>
Maven and OpenJPA dependencies
Submitted by mark on Sat, 12/22/2007 - 21:53.IP addy per capita
Submitted by mark on Wed, 11/14/2007 - 07:01.While surfing the net I came across this interesting lay study on the number of IP addresses per capita. From the map it appears that South Africa does quiet well for this unit of measure. According to the map we have 1 IP address for between 1-10 people. This puts us in the same bracket as Europe and behind the US and OZ.
Stop spam with a combined approach
Submitted by mark on Sun, 10/28/2007 - 16:53.Spam is the ban of any system administrators life and many people have taken it for granted that they must simply live with a certain level of spam in their day-to-day lives. However this does not have to be the case. A combined spam filtering approach is what is needed to end the spam problem. We find that a combination of blacklists and greylisting is the magic bullet that kills spam dead.
DB2 - platform and version migration/conversion
Submitted by mark on Fri, 10/26/2007 - 07:45.Recently we had upgraade a db2 8.1 database running on Windows to db2 9 running on a Linux based server. From the IBM documentation it appeared that it was possible to upgrade the database and change platforms but it was quiet difficult to find out exactly how.
Net-SNMP - How-to, Tips and Tricks
Submitted by mark on Sat, 10/20/2007 - 13:33.A better filesystem with tagging?
Submitted by mark on Mon, 10/01/2007 - 07:12.Recently I had cause to reflect on just how inconvenient today's file systems are at organising information. I don't know about you but my desktop and home directory rapidly become filled with odds and ends that I have downloaded or created. I can start off with a clean home directory and within a space of 6 months its a complete mess.
Urban myth -- Demon Car or Insurance Ploy?
Submitted by mark on Wed, 09/26/2007 - 22:50.For about a month and a half now there has been an, apparently abandoned, car parked on the verge outside our offices on the corner of Kent and Bond street Ferndale. Initially we all assumed that the car had just run out of petrol or suffered some malfunction and that the owner would be back to pick up the car.
Software Freedom Day - YouTube videos
Submitted by mark on Wed, 09/19/2007 - 08:21.I have uploaded some of the video footage from Software Freedom Day. I am no movie director so the footage will not win any oscars. I haven't learnt to edit yet so it is all raw footage.
If you didn't manage to make that day, or are not located in Johannesburg or Pretoria, I hope this enables you to get some feeling for the event.
The Jumping Bean stand.