08.08.09

nice c libraries

Posted in Programming tagged at 10:50 am by zhouji

these c library turned out to be pretty easy to use

(in trying to convert a visual c++ project (winhttp, xmllite, jpeg)  to c++ in cygwin, using eclipse CDT)

http handling: libcrul http://curl.haxx.se/libcurl/

xml parsing: libxml2 http://xmlsoft.org/

(going to try jpeg library in cygwin)

04.17.09

difference between ClassLoader.loadClass and Class.forName

Posted in Programming, Uncategorized at 1:48 pm by zhouji

http://blog.bjhargrave.com/2007/07/why-do-classforname-and.html

03.06.09

how big is the maximum int in java

Posted in Programming tagged at 10:45 am by zhouji

2,147,483,647 milliseconds is a little below 600 hours (596.523235 hours)

Note that org.apache.axis.client.Stub.setTimeout() takes int instead of long.

01.17.09

ClassCastException

Posted in Programming tagged , at 6:52 pm by zhouji

I saw a ClassCastException when I was working on something with user class loaders. I immediately thought this had something to do with the class loader, but it turned out that I was wrong. It is something like this:

Vector<String> vector = new Vector<String>();
String[] array = (String[]) vector.toArray();

12.30.08

JFileChooser super slow

Posted in Programming tagged , , at 5:36 pm by zhouji

JFileChooser is crazily slow when there is a large ZIP file in the the opened directory. This is an old issue and a very very annoying problem. I just cannot believe that  Sun refused to fix it – or they just cannot?

12.03.08

MVC pattern

Posted in Programming tagged , at 1:57 am by zhouji

08.22.07

software quality

Posted in Programming, Uncategorized at 10:01 pm by zhouji

“Our experiments to date suggest that by far the biggest quality factor in software remains the developer’s ability, and, in most experiments, analysts regularly record variations of a factor of 10 or more in the individuals’ performance. This appears to have little to do with any technology or even languages they might use.”

- Les Hatton, Kingston University, “The Chimera of Software Quality”, IEEE Computer, August 2007

P.S. This has not much to do with the above quotation, but I have to mention it. Quoted from the same paper: “I am a computational fluid dynamicist by training, …” That is really cool and encouraging to me. Don’t ask why.

08.19.07

it is a fact, not a shame

Posted in Programming at 10:43 am by zhouji

The program itself is the only complete description of what the program will do.

– P.J. Davis

algorithm

Posted in Programming at 10:06 am by zhouji

“In many applications, algorithm plays almost no role,
and certainly presents almost no problem.” – C.A.R. Hoare

This was quoted in the Millo paper.

program verification and mathematics

Posted in Computer, Programming at 9:21 am by zhouji

 ”Social Processes and Proofs of Theorems and Programs”

This 1979 paper by Millo et al is a great reading for programmers. Here is a PDF file.

“mathematicians  publish 200,000 papers every years. A number of these are subsequently contradicted or otherwise disallowed, others are thrown into doubt, and most are ignored. Only a tiny fraction come to be understood and believed by any sizable group of mathematicians.”

Next page