Authenticating using Facebook

I had figured out how to authenticate users using Facebook a couple of months back. But I didn’t document it, and so yesterday I again wasted my time figuring it out. So here is the brain dumb so that I won’t waste my time again at the time of need. :) Prerequisite: Create an app using Facebook Developer account and create the necessary App ID and App Secret keys. If you are testing out your app and you are running it locally, the site URL should be something like http://localhost:8090/ At the client side: Asking for permission and login: Use the SDK provided by facebook I am assuming Javascript SDK is used.

Read more

Share Comments

Again Agastyakoodam !

When I completed the Agastyakoodam trek two years back, I had decided to visit this awesome place again. It happened this year about two months back. This time it was a group of 6 friends, including me. We were very much fortunate to get the entry permit on the first day of the trekking season. This gave us the forest in a much more pristine and virgin form. Because, as people start coming forest loses its glory!

Read more

Share Comments

angamaly-marakkamo

“മനുഷ്യരെ രക്ഷിക്കേണ്ടത് ദൈവമാണ്. അല്ലാതെ ദൈവത്തെ രക്ഷിക്കേണ്ടത് മനുഷ്യരല്ല. ദൈവത്തെ മനുഷ്യൻ രക്ഷിക്കേണ്ടി വരുമ്പോൾ ദൈവത്തിന്റെ വിലയിടിയുന്നു.” - അങ്കമാലി മറക്കാമോ? - P.J.Antony P.J. Antony writes that people were fooled into taking part in the Liberation Struggle (Vimochanasamaram) by the Church, the Congress party and everyone else (Uncle Sam’s CIA??) who were afraid of the Communist party getting their first foothold in India

Read more

Share Comments

Another NoSQL to the kitty

Graph database is a great tool for mapping and traversing data with relationships. But doesn’t RDBMS have relationships - one-to-one, many-to-one etc? Why should we go for graphs? Its simple! Graph databases are best suited for those cases in which a graph comes to our mind instead of a table! I finished the online course on Neo4J two days back. Its a really simple graph database, and a great starting point to experiment graph databases.

Read more

Share Comments

Jackson JSON and Dynamic JSON creation

FasterXML Jackson is a great tool for converting objects to/from POJOs. Its a great tool when we know the structure of JSON beforehand. But what if we don’t know that? In that case we can use a Map<String, Object> to store the unknown objects. Below two links provide useful info: http://stackoverflow.com/questions/18043587/why-im-not-able-to-unwrapp-and-serialize-java-map-using-jackson-java-library http://www.cowtowncoder.com/blog/archives/2011/07/entry_458.html Happy Coding :)

Read more

Share Comments

Creating collection of Spring Beans

Some times there might arise situations where you want to create a number of Spring Beans, but you don’t know how many beans are there at coding time. Usually, you create a Spring bean as follows: But what if you want to create 50 such beans which differ only in the argument supplied to the constructor? Or a similar case arise where the number of beans to be created cannot be determined at coding time?

Read more

Share Comments

JAX-RS

There is a very good documentation in Jersey website: https://jersey.java.net/documentation/latest/jaxrs-resources.html and https://jersey.java.net/documentation/latest/filters-and-interceptors.html Here is a small flowchart that I made showing how the JAX-RS flow works: Happy coding :)

Read more

Share Comments

Skandagiri

About two months back, me and a friend of mine went for trekking at Skandagiri Hills. Its about 75km from Bangalore near to Nandi Hills.  We started on my Yamaha Fz at about 2:30AM and reached there by 4.30AM. The place has got a few locals who are waiting there to get hold of your money in the form of parking and acting as guide! We parked (gave the guy Rs20/30 just to make sure he don’t destroy my bike) and dismissed the idea of having a guide.

Read more

Share Comments

Hearing it from the granpa!

I was searching for good JavaScript resources and then stumbled onto this guy - Douglas Crockford. Douglas Crockford is Yahoo!’s JavaScript architect. He is also the creator of JSON and the author of the book which I am reading now - Javascript: the good parts. He is one of the most authoritative person to talk about JavaScript. I found his talks on JavaScript and just finished watching the first part.

Read more

Share Comments

First half of 2014

The past 6 months had been very fruitful for me. I have added many stuffs to my skill set in this small span of time. Here are some of it: The new Java kid - Java 8Spring SecurityCreating zero-xml Spring projects using Spring javaconfig and Spring BootSpring AOPGit(had used it before, but had been using it almost daily for past 6 months)RedisSpring Data RedisSpring Data JPAREST(using Spring’s REST as well as JAX-RS spec)Security - PKI, Encryption-Decryption, Certificates, Auth mechanisms (like BASIC and Digest) etc.

Read more

Share Comments