SCM : White papers from Perforce

27 October 2004

Perforce is the company that made the SCM product.
There are great white paper about code management and quality. I already read two of them : SCM Best Practices, I learn a lot about what SCM is and how important it can be, and
Seven Pillars of Pretty Code, where i saw that he recommends spaces after and before the parenthesis, like this :

if ( a == b ) 

which I like, but not a so common practice.
It remember me of an old article on evolt.org : PHP coding guidelines.


Java on Linux

13 October 2004

Today, the 13/10/2004, I downloaded the final JDK 5 (1.5.0-b64) from Sun.
Mandrake 10.0 Official is shipped with a custom Java 1.4.2-03. So, the 26/06/2004, I already installed the beta Java 1.5.0-beta2 RPM from Sun.
The install from Sun or Mandrake are a little bit different :

  • Sun RPM install directly in /usr/java/jdk1.5.0/. It will set up things for the system (mime type …) and for Gnome, nothing for KDE !?
  • Mandrake RPM install in /usr/lib/jdk1.4.2-… AND they put symlink in /usr/lib/j2sdk… in /usr/java/… AND most important they put a script in /etc/profile.d/jdk1.4.2.sh to set up some environement variables. Here is the script adapted to Java 1.5.0 :
    export JAVA_HOME=/usr/java/jdk1.5.0
    export JDK_HOME=$JAVA_HOME
    export PATH="$PATH:$JAVA_HOME/bin"
    export MANPATH="$MANPATH:$JAVA_HOME/man"

You can get usefull info from Mandrake’s KnowledgeBase and Mozilla/Firefox plugin doc.
I will check the SRPMS from JPackage too !
You can find what a RPM package do with

rpm -q --scripts jdk

and the files it contains with

rpm -q -l jdk

Note that you must give the short name “jdk” and that the full name “jdk-1_5_0-linux-i586.rpm” won’t work !!!