Friday, March 31, 2006

Using Java Reflection

I was using reflection in Java and needed to pass an int rather than an Integer to a method. I thought it couldn't be done, but it can.

Using Java Reflection: "Setting Up to Use Reflection

The reflection classes, such as Method, are found in java.lang.reflect. There are three steps that must be followed to use these classes. The first step is to obtain a java.lang.Class object for the class that you want to manipulate. java.lang.Class is used to represent classes and interfaces in a running Java program.

One way of obtaining a Class object is to say:

Class c = Class.forName('java.lang.String');

to get the Class object for String. Another approach is to use:

Class c = int.class;

or

Class c = Integer.TYPE;

to obtain Class information on fundamental types. The latter approach accesses the predefined TYPE field of the wrapper (such as Integer) for the fundamental type."

Thursday, March 30, 2006

Body Butter & Body Scrubs 2 for $26

Body Butter & Scrubs: 2 for $26
Body Butter & Body Scrubs 2 for $26

Wednesday, March 29, 2006

Userscripts.org: Jmaxxz vulgar word blocker v2.60.00

Userscripts.org: Jmaxxz vulgar word blocker v2.60.00: "So what we have here is a basic swear word – bad word changer. It works VERY WELL, catches most swear words."

Box.net - Free Online File Storage, Internet File Sharing, RSS Sharing, Access Documents & Files Anywhere, Backup Data, Share Files

Box.net - Free Online File Storage, Internet File Sharing, RSS Sharing, Access Documents & Files Anywhere, Backup Data, Share Files

New Renter: evelgal's blog

Check it out!
evelgal's blog
My motto in life is "Carpe Diem" meaning 'Live in the moment and don't worry so much about the future'. I practiced this motto much in my younger days but not really, anymore. Right now I'm focusing on inventing something new and original and becoming really really rich so I can help my loved ones and others in need, such as orphans and abandoned children, and live on a boat or submarine and find out if the earth is really hollow!

Money Making Mommy: Freebie and Deal Forums

Money Making Mommy: Freebie and Deal Forums: "Forums for finding deals on everything from computer harware, software, electronics, household goods and more, Freebies, new listings daily."

Tuesday, March 28, 2006

Chocolate Dinosaur Egg

I might get me one of these for Easter. Nothing says Easter like dinosaurs.

Chocolate Dinosaur Egg - HearthSong
What a BIG egg! Could it have come from a dinosaur? You'll know for sure when you crack it open and discover ten baby dinosaurs inside. Some are milk chocolate, some are dark chocolate, some are white chocolate. All are rich, delicious, and immensely fun to eat.

Optical Illusions Etc: free, scary, word & picture optical illusions

Optical Illusions Etc: free, scary, word & picture optical illusions: "These Optical Illusions are presented on this blog in the spirit of providing an entertaining venue to educate those interested in optical illusions and expanding the traditional assumptions of what constitutes an optical illusion."

These are not your typical optical illusions. I like the chess board

Eclipse Tomorrow Will Blot Out the Sun - Yahoo! News

Looks like a good excuse for a roadtrip.

Eclipse Tomorrow Will Blot Out the Sun - Yahoo! News: "Tourists and scientists were gathering at spots around the world for a solar show — the first total eclipse in years, which will sweep northeast from Brazil to Mongolia, blotting out the sun across swathes of of the world's poorest lands."

Nintendo: Odama

Nintendo: Odama Pinball and medieval warfare. I wonder why no one thought of this before.

Monday, March 27, 2006

Zenview Arena 21S: Six-Screen Display with 21.3" Primary LCD Screen, DVI + Analog + TV Video Inputs

I NEED one of these. Please Santa.

Zenview Arena 21S: Six-Screen Display with 21.3" Primary LCD Screen, DVI + Analog + TV Video Inputs: "Stunning six-screen display, exceptional quality and versatility

* Perfect for financial traders and other multi-tasking professionals
* Balances primary, secondary and tertiary display areas
* Primary 'arena' panel offers huge 21.3' workspace for primary application
* Secondary wing panels optimized for Web pages and documents
* Tertiary top panels provide active monitoring of supporting information
* Six premium-quality Samsung LCD panels with industry-best specifications
* Digital DVI and analog D-sub connections (all screens)
* Arena screen: supplemenatary TV inputs with PIP (picture in picture) option
* 178º (H) / 178º (V) viewing angle (all screens)
* Arena screen: ultra-fast 8 ms response (G to G)"

Discount Codes for Lillian Vernon

Holiday/Seasonal - 120x90

Holiday/Seasonal - 120x90

Get 15% off all orders of $60 or more. Enter 116840100 at checkout. Offer ends 4-30-06

Lillian Vernon Corporation is a leading 54-year-old national catalog and online retailer that markets gift, household, children's and fashion accessory products. The company specializes in personalization, organization and celebration. We publish five catalog titles: Lillian Vernon, Favorites, Lilly's Kids, Personalized Gifts and a sale catalog.

Generating an Ant Build script from Eclipse


Ok, found it.
Under File > Export > Ant Build
That should do it.

It seems to want to name the file build.xml. I wish I could change it.