Using Log4J





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

« Previous 1 2 3 4 5 6 7 Next »
1
Date Submitted Thu. Aug. 28th, 2008 9:33 AM
Revision 1
Scripter Fordiman
Tags buffering | errors | Output | PHP | template
Comments 0 comments
Best use of ob_, custom error handling, and variable variales evar: simple templating.

_parse($filename[,$locals])
includes $filename and renders its output to the return value. $locals, if used, will add a set of variables to the included context.

Parse($template[,$locals])
Same as above, but allows you to define a base template folder and omit the .php - just for cleaner code.

t($template[,$obj])
...
t()
Same as Parse, but any output between the opening call and the closing call (no arguments) will be buffered intot he $content variable of the template.

Play around with t(..) to find out more; I don't feel like documenting it.
2
Date Submitted Mon. Jun. 9th, 2008 7:06 PM
Revision 1
Beginner vertxch
Tags DB | Java | JDBC | postgresql
Comments 0 comments
Conexion de una base de datos de PostgreSql 8.2 a Java
3
Date Submitted Mon. Feb. 4th, 2008 9:14 PM
Revision 1
Helper rugi
Tags Directory | Java | Recursive | search
Comments 0 comments
Search file directory (recursive method) with java language
2
Date Submitted Fri. Oct. 26th, 2007 3:20 PM
Revision 1
Helper rugi
Tags byte | InputStream | Java
Comments 0 comments
Convert InputStream to byte[]
2
Date Submitted Fri. Oct. 19th, 2007 8:09 PM
Revision 1
Helper rugi
Tags BufferedImage | Canvas | Image | Java
Comments 0 comments
Convert java.awt.Canvas to java.awt.image.BufferedImage
6
Date Submitted Wed. Sep. 5th, 2007 9:21 PM
Revision 1
Helper rugi
Tags "full | desktop | Java | screen" | Swing
Comments 0 comments
Snippet for display one frame in full screen mode.
5
Date Submitted Mon. Aug. 13th, 2007 12:04 AM
Revision 1
Beginner bcoe
Tags Java | RSS | SAX | XML
Comments 0 comments
From a tutorial on building an RSS SAX parser on my website:

full article can be found here
6
Date Submitted Sat. Jul. 28th, 2007 3:19 PM
Revision 1
Helper rugi
Tags BufferedImage | Canvas | Image | Java
Comments 0 comments
Convert
java.awt.Canvas to java.awt.image.BufferedImage or java.awt.image.Image
0
Date Submitted Sun. Mar. 4th, 2007 12:48 PM
Revision 1
Helper BerndSchiffer
Tags groovy | groovyclassloader | Java
Comments 0 comments
A GroovyClassLoader demonstration. The given domain is a german water flow meter system; I think, you shouldn't be able to understand the domain, but you should be able to understand, how to load a Groovy class in Java via a GroovyClassLoader.
9
Date Submitted Wed. Dec. 27th, 2006 9:40 AM
Revision 1
Scripter bertheymans
Tags Java | List | Set | uniqueness
Comments 2 comments
This is a very convenient way to remove all doubles from a List in Java. The only prerequisite is that the elements in the list have proper equals and hashCode methods.

It work by using the constructor of a Set that takes a Collection as an argument.

I poured the snippet in a little program so can run it straight away.
« Previous 1 2 3 4 5 6 7 Next »