Monday, May 22, 2006

Neural Network based Checker AI Link

I wrote a much more detailed description of the neural network checker AI project that i worked on, it can be found here:

Clicky Click me!

Sunday, May 21, 2006

JApplet not painting on init

my crapplet has internal JPanels, and it was not repainting on load, only when the window was resized.

solution:

add this:

Wednesday, May 10, 2006

JOptionPane Madness

String options[] = new String[]{"yes","no"};
int n = JOptionPane.showOptionDialog(frame,
"Would you like green eggs and ham?",
"A Silly Question",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null, //don't use a custom Icon
options, //the titles of buttons
options[0]); //default button title

Tuesday, May 09, 2006

some basic C command line crap

cc -o yourprog yourprog.c -I/path/to/header -L/path/to/libs

: the -o is the output file
: ie, the thing you want to run
: -c is object file
: if you did cc -c 1.c -c 2.c -c 3.c
: you'd have 1.o, 2.o, 3.o
: then you could cc -o foo 1.o 2.o 3.o
: and it would link foo from the object code

: btw
: if you use lowercase Ls
: -l math -l crypt -l thislib -l thatlib
: you can link in additionally libraries as needed

how to update ports on freebsd

cvsup -gL2 -hcvsup11.freebsd.org /usr/share/examples/cvsup/ports-supfile