Skip to main content

Posts

Showing posts from July, 2013

Trivandrum Exclusive : Free SMS Application To Get Theater Details For a Movie

I myself had several times pondered in online news sites and Google to find the theaters playing a specific movie. Google never seem to be very specific for our a local region say movies in 'Trivandrum'. Even on the drive connecting to mobile internet and search for the 'now playing' movies and their theaters is a hassle. This prompted me to use my coding skill for a day to develop an application the benefits everybody happen to go by this situation. Bringing Back SMS To the rescue.  With WhatsApp gaining dominance, We've almost forgotten about normal SMS. But when all you require is few words answer for your 1 word query, I think SMS is the most simple and easy solution.  The service is offered for free, but standard national sms charges might apply at your end (good thing if you still do an sms offer). Currently as the service is offered only for Trivandrum. Yes! that's it just sms @popcorn movie_name to 9266592665  ...

Java : Get the Values In An Annotation Using Reflection

Recently I was researching on implementing lucene search (using Hibernate Search). Although I found success with it, I wanted to automate the process of passing the fields that are indexed and their respective index names. Hibernate Search uses a bunch of annotations in the getter to specify their index name and filters used. My Requirement I want to go through all the 'Field' annotation present in every method defined inside my class and get the value of the 'name' field from it. Sometimes 'Field' is present inside as a nested annotation inside 'Fields'. Here the tricky part is where you've to set YourAnnotation ann =  method.getAnnotation(YourAnnotation.class) and get an the annotation object from it. Here is an example problem: Here is the solution: And here is my output...