HOW TO : Configure mime type mappings in Jboss

April 12th, 2010

Instructions for configuring the mime type mappings in Jboss. Mime types essentially tells the application processing the content (typically a browser), what the content is. More information here (http://en.wikipedia.org/wiki/Internet_media_type).

  • Locate the web.xml file for your Jboss instance. It is usually in $JBOSS_HOME/server/INSTANCE/deploy/jboss-web.deployer/conf/web.xml
  • Locate the setting <mime-mapping> and make the required edits. For example, the code for defining the mime type for javascript looks like this



js
application/javascript

  • Restart Jboss

True Leadership..

April 12th, 2010

As I was channel browsing yesterday, I happened to run across an episode of NOW on my local PBS station. It featured a Harvard educated man that decided to run for the mayor of a rundown steel belt town (Braddock, PA). Besides being impressed and humbled by Mr.John Fetterman, I thought he displayed all the characteristics of a true leader (IMHO).

  • Having a Vision
  • Committing to the Vision
  • Thinking out of the box to implement vision
  • Thinking objectively

Highly recommend watching the video, if you have the time :)

Industry Jargon : Hotel Industry

April 6th, 2010

For my records..

  • ARI : Availability Rate Inventory. Any transaction that is querying/updating these three items is terms as ARI updates.
  • REVPAR : Revenue Per Available Room. This is the revenue the hotel makes per room in the hotel.
  • Total Pricing : The total price a customer has to pay to book a room in a hotel. It kinda sounds obvious..but when you understand that the total price depends on
    1. The price the hotel wants to charge (which again depends on who is selling the room)
    2. The tax at the city/state level
    3. The price of additions (services like Internet access, breakfast etc)
    4. Commission of the middleman.

It becomes a big deal :) .

First run of 2010

April 5th, 2010

I kicked off the 2010 running season with the Shamrock shuffle held on March 21st. Jhanvi was going to run it with me, but was not able to due to health restrictions. She is planning on joining me for a couple of half marathons this year :) . Hopefully, she won’t beat me as she did last year :) .

I finished the 8K (5.1 miles) a couple seconds short of 1 hour :) . Official chip time was 0:59:51. Results are published here. Looks like I am going to settle in the 12min/mile pace. That has been my pace for the last couple of races.

Creative Genius : Graphical Form

April 2nd, 2010

Jeevan Kumar, one of my colleagues and friend, came up with this graphical form of what makes a creative genius.. And I thought, it is only fair to share this art and Jeeva’s talent with the world :) ..

Lessons of the Trade : Easy method to detect lame salespeople (companies)..

April 2nd, 2010

Some background.. I get an email from a sales rep from one of the biggest telecom provider. The sales person attached a 4 MB document that shows the services offered by the company in one page.. Yes, a one pager document that is 4MB in size!!.. And this document tells me how this company can do everything other than wash my dishes for me..that they are biggest and baddest out there.

Do you think that this person even gave a minutes thought before filling up my mailbox with a 4MB attachment? Nope.. will he be getting my business? Nope.. It is not that the sales rep sent me such a large attachment, but because the company that can supposedly offer the best technical solutions out there cannot figure out a way to show their offerings in a single page without bloating it. Shows that the company is not innovative and thinking of customers.

Maybe I am being harsh here.. but then I have pretty high standards :) .

Overheard : Comment about Ego

March 11th, 2010

One of my friend’s IM status message

It’s better to lose your Ego to the one you Love, than to lose the one you LOVE because of EGO

Six Signs that you aren’t cut out to be a CIO..

March 11th, 2010

The first five reasons are in this video.

The sixth reason.. you are actually watching the video above to decide if you are cut out to be a CIO :) .. Come on people!!

Foods of India

March 5th, 2010

Ran across this picture showing the best of each state’s food in India. I think I only tried 10% of these dishes… and I consider my self a food junkie on top of being an India :) .

Click on the picture to get to an enlarged version

I will try to convert the data in this picture to an excel spreadsheet when I get some time..

The data in tabular form..(work in progress)

[gview file="http://spreadsheets.google.com/pub?key=tWM60O2i56vebN-13Jkel9g&single=true&gid=0&output=html"]

Satirical take on arranged marriages..

February 16th, 2010

My colleague/friend KP wrote a hilarious post on arranged marriages in India. Check it out at www.kprabu.com/2010/01/great-indian-arranged-marriages.html .

PS : Yes, people do speak with each other before agreeing to get married and No, elephants don’t walk around in the streets in India :) .