Random Thoughts on Coding
A technical blog on whatever comes to mind
-
Android Drag and Drop (Part 2)
This is the second post in a 3 part series on implementing Android Drag and Drop. In my last post I covered how to hide an ImageView and just show the DragShadowBuilder object at the start of a drag. This post is going to cover my efforts on restricting the...
-
Android Drag and Drop (Part 1)
This is the first post in a 3 part series that is going to cover implementing Drag and Drop in an Android application. (I am currently using version 4.0 of the sdk, but I originally wrote the code in this series with the 3.1 version.) Why Use Drag and Drop...
-
Android Unit Testing
This post is going to cover unit testing a native Android application. While working on my own modest Android application, I wanted to add some non-instrumented unit tests and was surprised how challenging it was to use mock objects. Admittedly, instrumented tests running on a emulator or actual device...
-
Lucene Thrift and Ruby
This post is going to demonstrate thrift usage by searching a Lucene index from Ruby. Thrift In a Nutshell Essentially thrift is a serialization and RPC framework that allows you to communicate between programs that are not necessarily written in the same language. Thrift is used by defining data types...
-
Micro Benchmarking with Caliper
From time to time I think all developers have done some form of benchmarking. I recently discovered Caliper which is according to the site - “Caliper is Google’s open-source framework for writing, running and viewing the results of Java Microbenchmarks”. I am aware that micro-benchmarking can be misleading depending on...