This is a great reference on Java’s WeakReference class: https://weblogs.java.net/blog/2006/05/04/understanding-weak-references
October 1st of 2013 marked the U.S. Government’s start of a nation wide shutdown for many services. It’s like the entire nation was called in to see Donald Trump on a bizarre episode of “The Apprentice“.
It’s a very serious thing. Lots of people have gone home and I feel for them.
But at the same time it’s worth seeing what can be done with mobile technology to save costs. Forbes reports how Missouri is doing just that to cut costs by about $500 million.
It begs the question, when the shutdown ends, will it be necessary to put offices back to their old funding levels, or can this kind of approach make that un-necessary?
Persistence. Making data persistant in your mobile applications without writing a custom SQLite query engine has been a goal of mine for a while. I finally got around to writing a library that will take care of that work for you:
This is an ORM Library for Android written from scratch. This library has the following goals:
- be built for Android primarily
- be fast and lightweight
- support SQLite at first, and other data stores in the future.
- stick to a simple architecture and design
- use as little code as possible.
- experiment with different approaches to persistence on Android.
I was originally using ORMLite, and I quickly realized that library is built to support multiple platforms, Android being one of them. That means the library is big.
So I decided to take a stab at writing an ORM library for Android that is more optimized for persisting Java objects to SQLite on that OS. But I also wanted to create a library that would let me add on additional kinds of data storage later (e.g. noSQL). The end result is Kayak Point.
Happy to announce that version 1.0 of the Pend Oreille library has now been released. You can check it out here:
This project contains some simple utilities to perform operations Java primitives, like data marshalling. It also has some utility functions to work on the Java class model using reflection. This is compiled against the Android 1.5 platform so it will work on Android as well as J2SE.
The Pend Oreille library is very simple and small (under 20kb in size) and has a few basic features that I have always wanted to have:
- serialize Java primitives and primitive arrays to byte arrays.
- deserialize java primitives and primitive arrays from byte arrays.
- box and unbox primitive arrays
- serialize an array of boolean values into a packed bit field.
See the file READE.md in the source directory for a developer’s guide on how to use the library.
It’s an epic fail so far. Kind of like a bunch of refugees piling onto an old truck in an effort to go somewhere. You just know by the way it starts off that something bad is going to happen. It’s Washington State’s attempt to build a website that lets people find health insurance under the Affordable Health Care for America Act.
When I went to the the website, https://www.wahealthplanfinder.org I found this in my browser:
Well then, it’s not off to a good start now is it.
Do we have a government mandate but no way to comply?
I don’t know. I’ll let you be the judge.
Perhaps it’s a good thing they didn’t build a mobile app.