Monthly Archives: April 2008

Python parallel port programming on Ubuntu Linux

I’m trying to get my parallel port to work nicely with Python and Ubuntu Linux. So far this is what I got: pia@pia-desktop:~$ sudo apt-get install python-parallel pia@pia-desktop:~$ sudo rmmod lp pia@pia-desktop:~$ sudo modprobe ppdev pia@pia-desktop:~$ python Python 2.5.1 (r251:54863,

Posted in Software

Count number of lines of code in directory of .java files

for i in $(find . | grep .java); do wc -l $i; done | cut -f 1 -d ” ” > numbers for i in $(cat numbers) ; do SUM=$(( $SUM + $i )) ; echo $SUM ; done

Posted in Science, the Universe and God

ShowUIDefaults

Here’s a program to show all the default values for the UIManager in java, javax.swing.uimanager: ShowUIDefaults

Posted in Science, the Universe and God