Skip to content

Month: March 2008

Java, listing system properties

This code prints out your system properties.

import java.util.Properties;

public class PropertiesLister{
   public static void main (String args[]){
       Properties props = System.getProperties();
       props.list(System.out);
   }
}

In the machine I’m writing right now:

— listing properties —
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/…
java.vm.version=1.6.0-b105
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=:
java.vm.name=Java HotSpot(TM) Server VM
file.encoding.pkg=sun.io
user.country=BR
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/tmp
java.runtime.version=1.6.0-b105
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/…
os.arch=i386
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
os.name=Linux
sun.jnu.encoding=UTF-8
java.library.path=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/…
java.specification.name=Java Platform API Specification
java.class.version=50.0
sun.management.compiler=HotSpot Server Compiler
os.version=2.6.20-16-generic
user.home=/home/export/silveira
user.timezone=
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=UTF-8
java.specification.version=1.6
user.name=silveira
java.class.path=.
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=/usr/lib/jvm/java-6-sun-1.6.0.00/jre
java.specification.vendor=Sun Microsystems Inc.
user.language=pt
java.vm.info=mixed mode
java.version=1.6.0
java.ext.dirs=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/…
sun.boot.class.path=/usr/lib/jvm/java-6-sun-1.6.0.00/jre/…
java.vendor=Sun Microsystems Inc.
file.separator=/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport…
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.isalist=

Try out at your home. 🙂

Opensolaris in a Junior Enterprise

Ejr empresa júnior da computação
Ejr actual officer

These days I visited the junior enterprise of my course (computer science, UFC). They are just starting and now have they own room.

The Junior Enterprise article at Wikipedia says:

This is an opportunity for students to develop self confidence and experience entrepreneurship at an early stage in their careers, to add practical experience to the theoretical skills and to provide private business with state-of-the-art knowledge from universities.

For my big surprise I found that they have also have an machine with Opensolaris installed for testing they softwares in multiples platforms. Very cool! If they continue to study and improve their skills in Opensolaris they can have an very special differential and goods business opportunities.

Very cool, keep going guys! 😀

Pythons at Sun

Pythons at Sun
Source: python.at.sun.svg

Good news. Two important Pythonistas, Ted Leung (Apache Foundation member) and Frank Wierzbicki (Jython lead) joined Sun Microsystems.

It’s one important step in the recognition of the Python language and certainly will bring benefits for the Python Community. Some things I’d like to see:

  • Python support on Netbeans. Bringing Python as a first class citizen on Netbeans, syntax highlight, code completion, debugging tools, unitary testing, Jython and a lot of more.
  • Django support on Netbeans. As we have Rails and Ruby support on Netbeans we can have also Django and Python support on Netbeans. Django is accessed with some command line tools, the work is just plug this on Netbeans, and its architecture makes this not hard. We could have a lot of wizards to creating new models and views. I’d love that.
  • More support of Python and dynamic languages at JVM. There’s already the Da Vince Machine Project on the OpenJDK Project. I hope one day we can see call the Java Virtual Machine as Universal Virtual Machine or Multi Language Virtual Machine.
  • More Python on OpenSolaris. Some projects at OpenSolaris are allready using Python, see Image Packaging System Project. Python is a really good language for common script tasks and I use it for that purpose very often. We could see a lot of wizards and configuration panels in Opensolaris using Python and PyGTK or PyQT.

It’s really a great moment for Sun and Open and Free Software. I’m happy with all that? You can bet on it. 😀

Sources: Tim Bray Blog and Cnet news.

Filmes para debater

Algumas sugestões de filmes que dão um bom debate, ambos com uma temática parecida, paralelos entre o cristianismo e o budismo.

The Man from Earth

The Man from Earth – Eu havia assistido esse filme só porque o autor agradeceu a pirataria na divulgação do filme. Ler as linhas a seguir são tem um pouco de spoiler, você foi avisado. A história é de um cara que envelhece muito lentamente, sendo praticamente imortal. Ele atravessou os milênios e … não dá para contar mais do que isso senão estraga. É o tipo de filme-conversa, bem no estilo 12 angry men, você já assistiu você sabe do que eu estou falando (aliás, 12 Angry Men é um outro filme excelente para discussão). E já que o autor permite o download do fillme, nesse blog tem o filme e as legendas para download. Valeu pela sugestão, Patola.

zeitgeist

Zeitgeist – este filme está disponível para assistir via stream no site oficial. Mas o bom mesmo é assistir tudo legendado no Youtube 🙂 Início, partes 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 e 11. A parte que eu achei interessante é a The Greatest Story Ever Told.