Indian low cost airlines

February 20, 2008

I reached there in Bangalore airport 2 hours before departure. There was no problem on checked in, I was traveling from Bangalore to Mumbai with one of India’s low cost airlines. I was not feeling quite OK. The other day, I had one party with friends so was feeling kind of nausea. I think, one should be careful while taking junk foods especially in Bangalore. Anyway I looked around to see any medical shop to buy some medicines, unfortunately could not able to trace one so thought to ask some medicinal in flight. As usual, I entered into flight and requested for aisle seat, I like aisle seat, as I used to go toilet frequently. This is a bad habit, I have since childhood to take as much water and go to toilet frequently. I was lucky as flight started at right time. I remember last time, I had to pay for water bottle. But this time, its good, they are offering for free. Still feeling kinda nausea. So I asked one airlines staff, a gentle looking guy, for some medicine. To my surprise, they said they dont have any medicines except some divols, an antacid. I am not sure whether this is a problem with airlines or this is a generic problem with low cost airlines. The same thing happened, when I was traveling from NY to San jose and I remember had a sweeter experience as I got some good antibiotics for my nausea.

Lets bit romantic

December 10, 2007

And while working last sunday, I was listening a good song from MLTR called “You took my heart away”. It is one of the good romantic song, I have ever heard. I just tried to listen it at least 10 times. I have to thank Youtube for providing such beautiful songs.

It suddenly took to my yesterdays when I was struggling hard to settle down in this harsh society and there was nobody to ask me what to do and as a lonely bird in harsh sun, I was feeling each pinch of heat and thinking to get settled somewhere. And really somebody came to my life and gave me a beautiful touch of life and told me what is life. She is nobody other than my beautiful wife.

How to merge nutch indexes v 0.9

November 29, 2007

I have generated lots of indexes for individual site using nutch and was looking for a way to merge all indexes into one index to be used in live system. I was really struggling to merge them all and finally I could able to do is. Here are the steps

Lets say, you have two working indexes i.e. crawl1 and crawl2. I am assuming that all these have following directories generated by bin/nutch crawl command

crawldb

index

indexes

linkdb

segments

Now you are on the parent directory that contains folder “crawl1″ and “crawl2″

You need to merge individual dbs ie. linkdb, crawldb and segments. Then you needs to generate index.

Please create a directory called mergeaall. This directory would contain all merged linkdb, crawldb and segments.

- Merge linkdbs
bin/nutch mergelinkdb mergeaall/linkdb crawl1/linkdb/ crawl2/linkdb/

- Merge crawldbs

bin/nutch mergedb mergeaall/crawldb crawl1/crawldb/ crawl2/crawldb/

- Merge segments

bin/nutch mergesegs mergeaall/segments crawl/segments/* crawl-rediff/segments/*

- Invertlinks

bin/nutch invertlinks mergeaall/linkdb/ mergeaall/segments/*

Now run index command to create nutch index

bin/nutch index mergeaall/indexes mergeaall/linkdb/ mergeaall/crawldb/ mergeaall/segments/*

Thats it !!! you are done.

Check out www.ajaxtrend.com ‘s search facility where I have merged couple of nutch indexes.

json.js integration problem in FireFox

January 23, 2007

I was just writing some sample code for an database based AJAX application. I have a servlet that takes care of database communication. I just though to use json and it really helped me a lot to to minimize the amount of work needed to display details of data extracted from DB in a browser. I was using Prototype.js provided utility functions to create an XHR request and other utility functions.

When I started integrating with json.js, I get bunch of error in my browser and it did not work at all.

[Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.setRequestHeader]” nsresult: “0×80070057 (NS_ERROR_ILLEGAL_VALUE)” location: “JS frame :: http://localhost:8080/AT/htmls/prototype.js :: anonymous :: line 919″ data: no]

I could not able to trace it why such error occured. Find some information about this from google search. On debugging, I found that in prototype.js, which setting headers some line no 915,

this.transport.setRequestHeader(name, headers[name]);

As JSON has extended with toJSONString function so this we need to remove this from setHeaders method.

I just manipualted prototype.js

for (var name in headers)
{

if(name != ‘toJSONString’){

this.transport.setRequestHeader(name, headers[name]);
}
}

Now my code started working both in FF and as well as with IE.

What is www.ajaxtrend.com

January 23, 2007

Ajaxtrend.com is a site to provide latest web2.0 news, blogs, tutorials, forums etc… The objective of this site is to collect latest web 2.0 news, blogs from internet and display them. It is not a simple news aggregator rather this is an intelligent news provider. I have used latest technologies like Nutch, Lucene to crawl internet and collect news, blogs from popular web 2.0 sites and display them in ajaxtrend.com based on publication time and popularity.


Follow

Get every new post delivered to your Inbox.