Saturday, July 19, 2008

What is your tax bracket?

From
http://www.bargaineering.com/articles/2008-federal-income-tax-brackets-official-irs-figures.html

"
2008 Tax Brackets
Tax Single Married Filing Jointly
10% Not over $8,025 Not over $16,050
15% $8,025 - $32,550 $16,050 - $65,100
25% $32,550 - $78,850 $65,100 - $131,450
28% $78,850 - $164,550 $131,450 - $200,300
33% $164,550 - $357,700 $200,300 - $357,700
35% Over $357,700 Over $357,700
"

Monday, July 14, 2008

What is equity

From financial-dictionary.com

"Equity is a term whose meaning depends very much on the context. In general, you can think of equity as ownership in any asset after all debts associated with that asset are paid off. For example, a car or house with no outstanding debt is considered the owner's equity since he or she can readily sell the items for cash. Stocks are equity because they represent ownership of a company, whereas bonds are classified as debt because they represent an obligation to pay and not ownership of assets."

Friday, July 04, 2008

Inspirational Quote

From Jack Welch

"Control your destiny or someone else will"

Deservingly true.

Amazing Quote :)

This quote I stumbled upon

"When a man with experience meet a man with money, the man with money gets the experience and the man with experience gets the money"

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

Saturday, May 31, 2008

Gartner top 10

from ehomeupgrade.com
Gartner’s top 10 disruptive technologies 2008-2012:

* Multicore and hybrid processors
* Virtualisation and fabric computing
* Social networks and social software
* Cloud computing and cloud/Web platforms
* Web mashups
* User Interface
* Ubiquitous computing
* Contextual computing
* Augmented reality
* Semantics

Wednesday, May 28, 2008

Java ByteBuffer

from java.sun.com
Invariants

The following invariant holds for the mark, position, limit, and capacity values:

0 <= mark <= position <= limit <= capacity

A newly-created buffer always has a position of zero and a mark that is undefined. The initial limit may be zero, or it may be some other value that depends upon the type of the buffer and the manner in which it is constructed. The initial content of a buffer is, in general, undefined.
Clearing, flipping, and rewinding

In addition to methods for accessing the position, limit, and capacity values and for marking and resetting, this class also defines the following operations upon buffers:

*

clear() makes a buffer ready for a new sequence of channel-read or relative put operations: It sets the limit to the capacity and the position to zero.
*

flip() makes a buffer ready for a new sequence of channel-write or relative get operations: It sets the limit to the current position and then sets the position to zero.
*

rewind() makes a buffer ready for re-reading the data that it already contains: It leaves the limit unchanged and sets the position to zero.

Java Basics

cretaeClassObject (String name)
{
Object retObj = null;
return(retObj = Class.forName(name).newInstance());
}

Tuesday, May 27, 2008

Java NIO

http://exampledepot.com/egs/java.nio/pkg.html

http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/Selector.html

http://www.cs.brown.edu/courses/cs161/papers/j-nio-ltr.pdf

Thursday, March 06, 2008

Check if hash value is empty

unless (%hash) {
hash is empty
}