public marks

PUBLIC MARKS with tags programming & java

2013

2011

ServerSocket (Java Platform SE 6)

by sylvainulg
SO_REUSEADDR for Java -- how to avoid java.net.BindException (at the risk of odd TCP state) [code] ServerSocket x = new ServerSocket(); x.setReuseAddress(true); x.bind(new InetSocketAddress(port)); [/code]

2010

Remonter silencieusement une checked-exception - adiGuba:Blog - Club des décideurs et professionnels en Informatique

by sylvainulg (via)
petit discours sur les exceptions en Java. j'aime bien le } catch (IOException e) { throw new RuntimeException(e); } et public class UncheckedException extends RuntimeException { public UncheckedException(Throwable source) { super(source); } @Override public Throwable fillInStackTrace() { // On empêche la génération du stacktrace. return this; } }

File.deleteOnExit is evil

by sylvainulg (via)
better tell the students not to use it.

Bug ID: 4199068 Please return the functionality of getenv()

by sylvainulg (via)
Due to overwhelming demand we are going to reconsider this position for the 1.5 release. -- xxxxx@xxxxx 2002/4/30 ... so is it available or not, after all ?

2009

noop - Project Hosting on Google Code

by claire_ & 1 other
Noop (pronounced noh-awp, like the machine instruction) is a new language experiment that attempts to blend the best lessons of languages old and new, while syntactically encouraging what we believe to be good coding practices and discouraging the worst offenses. Noop is initially targeted to run on the Java Virtual Machine.

DataInput (Java 2 Platform SE 5.0)

by sylvainulg
Silverbullet when doing networking IO. Features readLine, readInt, readFully(byte[])

The For-Each Loop

by sylvainulg (via)
void cancelAll(Collection<TimerTask> c) { for (TimerTask t : c) t.cancel(); }

Java 2 Platform SE v1.3.1: Class BufferedReader

by sylvainulg (via)
you want readline() for implementing HTTP in java ? here it is, not in BufferedInputStream

Glazed Lists

by Regis (via)
list transformation in Java

Java and unsigned int, unsigned short, unsigned byte, unsigned long, etc. (Or rather, the lack thereof)

by sylvainulg (via)
"Well, you're probably not going to like this... The answer is, you use the signed types that are larger than the original unsigned type"

PUBLIC TAGS related to tag programming

ajax +   apache +   api +   c++ +   cellular automata +   code +   community +   computer +   css +   development +   documentation +   for:pedro.custodio +   for:riclib +   for:rliberato +   for:zenuno +   forum +   framework +   gpl +   gui +   html +   j2ee +   java +   javadoc +   javascript +   jsp +   language +   languages +   library +   linux +   lisp +   now +   open_source +   opensource +   perl +   php +   python +   reference +   ruby +   scheme +   search +   server +   software +   source +   sun +   tools +   toread +   tutorial +   unix +   web +   xml +  

Active users

jdrsantos
last mark : 26/08/2013 10:37

sylvainulg
last mark : 07/06/2011 08:38

kemar
last mark : 21/10/2010 07:38

maxxyme
last mark : 23/08/2010 08:29

piouPiouM
last mark : 28/06/2010 23:46

shinze
last mark : 27/01/2010 17:42

claire_
last mark : 24/09/2009 11:37

nvukosav
last mark : 18/08/2009 11:59

Regis
last mark : 27/02/2009 00:32