Wednesday, June 25, 2008

Print XML without parsing

use HTML::Entities;
print "PRE" encode_entities($xml) "/PRE"

Monday, June 23, 2008

What is Street Date?

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."

Friday, June 20, 2008

Rectangular word copy/paste/delete

hold down the [Alt] key while you click and drag

Wednesday, June 18, 2008

ByteBuffer to String

ByteBuffer bytebuff = ...;
byte[] bytearr = new byte[bytebuff.remaining()];
bytebuff.get(bytearray);
String s = new String(bytearray);

Thursday, June 12, 2008

Firefox download day Jun 17th

From firefox website the download day has been announced to June 17th
Download Day 2008

Wednesday, June 11, 2008

XML vs JSON

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

Cut Command in Unix

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

Saturday, June 07, 2008

Create History with FireFox

Help firefox create history , and you can be a part of it

FireFox WorldRecord
Download Day 2008

Friday, June 06, 2008

What is the availability of blogspot?

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 :) ,

Sunday, June 01, 2008

IPL final

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