Saturday, November 22, 2008

New York Times Time Machine

From


New York Times Machine


Interestingly good open source which is used:

a) JetS3T
b) iText
c) Java API for Image Processing

Saturday, October 18, 2008

Sunday, October 05, 2008

Don't make me think

Reading this book off late Don't Make me think , Will keep updating it with interesting things which I find

1. Sherlock holmes to Dr Watson (on earth revolving around sun)
"What the deuce is it for me? You say we go around the sun. If we went round the moon it would not make a pennyworth of difference to me or to my work"

2. Nothing important should be more than 2 clicks away.

3. Creating a site get rid of the question marks
- If you can create a button do that don't make it a link.
- Make pages self-evident

4. We dont read pages we just scan them
- How users read the web (www.useit.com)

5. We don't make optimal choices. We staisfice(Models of man:Social and Rational)
-How people make decisions
- We choose the first reasonable option.

6. We don't figure out how things work, we muddle through

7. If your audience is going to act like your're designing billboards then design great billboards.

8. Billboards design 101
- Create a clear visual hierarchy on each page
- Take advantage of conventions
- Break up page into clearly defined areas
- Make it obvious what is clickable
- Minimize noise
9. Three mindless unambigous clicks equlas one click that requires thought.
- Making choices mindless.

10. "Get rid of half the words on each page then get rid of half of what's left"
- Elemts of Style
- Eliminates instructions by making everything self explanatory

Friday, August 29, 2008

Java Timer and TimerTask

From java2s.com

"import java.util.Timer;
import java.util.TimerTask;

class MyTimerTask extends TimerTask {
public void run() {
System.out.println("Timer task executed.");
}
}

public class MainClass {
public static void main(String args[]) {
MyTimerTask myTask = new MyTimerTask();
Timer myTimer = new Timer();

/*
* Set an initial delay of 1 second, then repeat every half second.
*/
myTimer.schedule(myTask, 1000, 500);

try {
Thread.sleep(5000);
} catch (InterruptedException exc) {
}

myTimer.cancel();
}
}"

Saturday, August 23, 2008

Olympics Mania!

Recently stumbled upon this article on USATF site

Performance and Responsibility

Key points which i really liked about this article

"The Olympics are about good timing, good luck, good preparation and good execution. All those things have to come together"

"Dropping a baton isn't bad luck, it's bad execution."

"When the men's marathon concludes on Sunday, we'll still be the World's #1 Team in terms of medal count. We can be a much better team. And we will be."

It's goals like these which can make things happen. I think perhaps the most disheartening part of olympics for me was looking at lolo jones crying after she lost, considering that she was winning all the way to hit the penultimate hurdle not sure whether to call that bad luck or bad preparation and I am almost sure it is bad luck.

Saturday, July 26, 2008

Why Randy Paush is my hero

Simple reason I watched his video and haven't seen anyone with such energy

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