Print XML without parsing
use HTML::Entities;
print "PRE" encode_entities($xml) "/PRE"
Taken from Wikipedia http://en.wikipedia.org/wiki/Street_date
"In business, a street date is the date a particular product is to be released for sale to the general public.
Typically, retailers receive shipments of stock prior to its street date release, so that the product can be placed on display shelves for store opening that day. Shipments come marked very clearly with a "do not sell before release date" label designating a street date mandated by the distributor. Shipments may sometimes arrive up to three weeks in advance.
Retail outlets can be severely punished by manufacturers for releasing a product even a day before the street date. If a retailer breaches the contract establishing a street date, the manufacturer may impose fines, may withdraw privileges to distribute future products from that manufacturer, and may file a lawsuit to enforce the contract. However, there is no documentation of a retail chain or store being fined or any action taken against them."
Posted by kalyan at 7:36 AM 0 comments
ByteBuffer bytebuff = ...;
byte[] bytearr = new byte[bytebuff.remaining()];
bytebuff.get(bytearray);
String s = new String(bytearray);
Posted by kalyan at 3:35 PM 3 comments
From firefox website the download day has been announced to June 17th
Posted by kalyan at 5:06 PM 0 comments
I always thought XML was too verbose, although XML acts as a great plumbing agent.
People using data exchange cannot afford to use such verbose data methods to transfer a vast amount of data over the wire.
JSON seem to be the way to go. Need to get more educated on it. JSON
Posted by kalyan at 4:28 PM 0 comments
Cut command in unix can make your life a lot easier.
Most important of them are
-d (delimiter) by which the fields are separated
-f (fields) fields which you want to get it printed.
E.g w | cut -d' ' -f 1
Posted by kalyan at 12:41 PM 0 comments
Help firefox create history , and you can be a part of it
FireFox WorldRecord 
Posted by kalyan at 5:02 PM 0 comments
I often find my site to be unavailable (no one mentions why was it down), i wonder blogspot availability is 95% :) seems to be a good number.
That is the price of using a free thingy would be :) ,
Posted by kalyan at 8:45 PM 0 comments
It is between Chennai vs Rajashtan!
No one expected :) this to be the case, I hardly watched all the matches :) but should to be able to buy one. Some free options from google search though not sure if they work
http://live-sports-streaming.blogspot.com/
http://picasa.tv
Posted by kalyan at 7:26 AM 0 comments