Quantcast

Monthly Archives: April 2006

Converting unix or java timestamps (time since the epoch) to real dates with Oracle

A few days ago I made use of a couple Oracle built in functions and it made me happy I didn't have to write a stored proc or some type of mini-app to do it. I needed to parse a timestamp out of a field that was put there by a java program. The timestamp [...]
Posted in database administration | Tagged | Leave a comment

Thread pooling with Java concurrency utilities new (java 1.5) and old (util.concurrent)

Java Concurrency in Practice Threading in java is fairly easy and now with java 1.5 some of the stuff that was harder has become even easier. A few years ago someone pointed me to a site that had some concurrency utils that where the precursor to what are now the concurrent utils in java 1.5. [...]
Posted in java | Comments closed

Good Techcrunch review of mapping apis

Techcrunch has a good review by Frank Gruber of the look and feel of mapping services. I think it is notable that ESRI's service is not included in the review. I think it is at least as good as the mapquest service. I may have to find time to redo my review of the acuracy [...]
Posted in gis | Leave a comment

Approximating a circle with a polygon

I recently had an opportunity to use ESRI's ArcSDE again. It is a spatial database interface and in this instance I was using the java api. I wanted to change what used to be a query using a rectangle into a query using a circle. For some reason parts of the java api for ArcSDE [...]
Posted in gis | Leave a comment

Using strptime to parse ISO 8601 formated timestamps

A lot of dates that come back from XML based web services are in the ISO 8601 form. I found out recently that it isn't straight forward to parse such a date using C functions and have the time come out in the correct timezone. It isn't rocket science but it is a lot more [...]
Posted in programming | Tagged | 2 Comments

Howto base64 encode with C/C++ and OpenSSL

I've been doing a little C programming lately and I have found that if you have a up to date distribution of linux there are a lot of libraries out there that make doing things you do in other languages like java easier.
Posted in programming | Tagged , , | 10 Comments

AJAX file upload progress for Java using commons fileupload and prototype

This has been done before with PHP (AJAX upload progress meter for PHP) etc but I needed something a little different because I wanted to upload a file and then have it loaded into a database. I looked around and found that someone had already made something that used the commons file upload package to [...]
Posted in programming | Tagged , , | 9 Comments