Saturday, February 7, 2009

Opeth @ IIT

"25th of February 2009", a day I will never forget for the rest of my life, a day that would be known as one of the best days of my life :-). This was the first time I ever got to go to a metal concert; the first time i ever saw Opeth, one of my favorite bands, play live right in front of me!.

I got the news about their gig a bit late. A college bud whom i had given a few Opeth songs & videos a few years back,informed me about the show. I was pretty lucky to get the train tickets in the last moment. There was in just one slot/seat available while i was booking :-). A another college bud hooked me up with a fellow metalhead who was also a Tool-Opeth fan like myself. I stayed over at his place, which was pretty close to the show

The show was spectacular!. The crowd was also amazing. Got to see lot of Opeth fans from all parts of the country. From Sardar headbangers to Gothic chicks, the crowd was so diverse... Head banged so much that i ended up with neck pain for a week.

The only thing better than this that could happen is - Tool live in India !!!

Dreams ... Inspiring xkcd cartoon

Sunday, January 11, 2009

Designing your Life

Came across a very interesting article last Saturday. It takes a fresh look at organizing and prioritizing your tasks.

http://thinksimplenow.com/motivation/how-to-design-your-ideal-life/

Must Read

Saturday, January 10, 2009

I'm Security+ Certified

Wooo hoo! Finally after two years of study, i finally got certified in Security+. Its a fairly easy exam with emphasis on Security fundamentals rather than vendor specific content.It took two years to prepare as I checked out at least 5-6 books and a 50 hour video training by Testout. Two months is sufficient for a neophyte to prepare for this exam( unless you plan to cheat with dumps). If you are planning to take the exam, feel free to contact me for resources...

Saturday, December 13, 2008

OpenID: Simple Registration Extension with Joid

Having trouble implementing simple registration extension on joid?. This simple tutorial explains how to hack your way into getting simple registration extension working without using the API.


Simple registration works by passing parameters specifying the required and optional attributes required by the relying party in the authentication url passed to the provider. Joid does a great job creating the authentication url using the OpenIdFilter.joid().getAuthUrl() funtion. You would need append parameters to the generated authentication url inorder to specify that you would be using simple registration extension. The parameter openid.ns.sreg with the value http://openid.net/extensions/sreg/1.1 specifies that you will be using simple registration extension version 1.1. The two additional parameters that specify the attributes that are required and optional are openid.sreg.required and openid.sreg.optional respectively.

The final url would look something like the below
Joid Generated Authentication URL + "&openid.ns.sreg=http://openid.net/extensions/sreg/1.1&openid.sreg.
required=fullname,email&openid.sreg.optional=gender,nickname"


Once the provider authenticates the request, it will pass the extension parameters back to the relying party as request parameters. Now comes the tricky part. This request will be intercepted by the OpenID filter that you have configured in you web descriptor. This filter does not acquire the extension parameters and does a lot joid specific mumbo jumbo. After this, the user will be redirected resulting in the loss of the extension parameters.


A way around this is to create your own filter class that stores the extension parameters in the session and passes the control to the OpenId filter. Edit your web descriptor so that this filter will be called instead of the OpenId filter. I've created a class called Interceptor (code below) which does just that. Use the parameters in the session to satisfy your business requirements.

public class Interceptor implements Filter {

public void init(FilterConfig filterConfig) throws ServletException
{
call OpenId Filter's init function here ... passing filterconfig
}

public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,FilterChain filterChain) throws IOException, ServletException
{
store extension parameters here
call OpenId Filter's do Filter function with all the required parameters
}

}


Thanks to restafarian blog for the url trick :-)

Monday, December 1, 2008

Smiley in the Sky

Guess what I found in the sky when I came back home from a hard day's work...







http://www.foxnews.com/story/0,2933,459428,00.html
http://www.news.com.au/heraldsun/gallery/0,22010,5036117-5006020,00.html