Canvas to BufferedImage





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

9
Date Submitted Mon. Apr. 3rd, 2006 10:41 AM
Revision 1
Helper jpinkham
Tags debug | Java | toString
Comments 1 comments
Do you find yourself implementing toString on your objects all the time, and wondering why (the debugger seems to do a pretty good job of it all by itself)...well, here's a bit of introspection applied to the problem. This is for all those quick debug sessions where you just want to do System.out.println(myComplexObject).

Instead, just do System.out.println(DebugPrint.toString(myComplexObject));
6
Date Submitted Fri. Apr. 7th, 2006 9:50 AM
Revision 1
Helper jpinkham
Tags CLASSPATH | DOS | Java
Comments 2 comments
Here's a nifty trick I often use for testing.

Lets say you have a c:\foo\lib directory full of jarfiles for log4j, javamail...whatever.

Modern J2EE containers do a nice job of letting you deploy a jarfile with your code and have a lib directory full of jarfiles like this, but what if you just want to run a quick client from the command line?

Here's what you do:
12
Date Submitted Tue. May. 9th, 2006 9:36 AM
Revision 1
Helper jpinkham
Tags Email | Java | Validate
Comments 1 comments
Another solution recommends using a text match pattern.
This works, but as long as you've got mail.jar in your classpath anyway, you might as well use this technique instead. (Plus, I think it works with older JDK 1.2+, whereas pattern.compile is 1.4+)

Note that it also accepts a comma-separated list of emails, just like a To: or CC: address line would.
17
Date Submitted Mon. Oct. 10th, 2005 11:09 AM
Revision 1
Coder mattrmiller
Tags Gravatar | Image | PHP
Comments 2 comments
Get Gravatar Image
6
Date Submitted Thu. Oct. 20th, 2005 6:27 PM
Revision 1
Coder mattrmiller
Tags Date | Java | Parse
Comments 1 comments
Date Parse
7
Date Submitted Thu. Nov. 17th, 2005 8:43 PM
Revision 1
Coder mattrmiller
Tags CheckSum | File | Java
Comments 0 comments
File CheckSum
9
Date Submitted Fri. May. 26th, 2006 11:16 AM
Revision 2
Coder mattrmiller
Tags "Email Address" | Java | String | Validate
Comments 2 comments
Fixed the regular expression to check for more strict requirements.
10
Date Submitted Thu. Mar. 16th, 2006 10:01 PM
Revision 2
Coder mattrmiller
Tags Bytes | Format | Java | String
Comments 0 comments
Format Bytes
7
Date Submitted Thu. Jan. 5th, 2006 3:41 PM
Revision 1
Coder mattrmiller
Tags Java | Simple | Table
Comments 1 comments
Simple Table
4
Date Submitted Mon. Jan. 23rd, 2006 6:55 PM
Revision 1
Coder mattrmiller
Tags Customized | Java | JSlider
Comments 0 comments
Customize JSlider Labels