LWJGL 1.0 released

Posted by Dario Santamaria Mon, 26 Feb 2007 19:51:00 GMT

After several years of development, finally the first stable release of the Lightweight Java Game Library (LWJGL) arrived.

The Lightweight Java Game Library (LWJGL) is a solution aimed directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. LWJGL provides developers access to high performance crossplatform libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D sound. Additionally LWJGL provides access to controllers such as Gamepads, Steering wheel and Joysticks. All in a simple and straight forward API.

Take a look at here: LWJGL Web Site

Posted in  | Tags , ,  | no comments | no trackbacks

Maven2 quick reference card

Posted by Michele Franzin Fri, 19 Jan 2007 17:08:00 GMT

For those who want everything under control, here’s a usefull cheat-sheet of maven 2. If you are saying something like “What’s maven ?!?” here’s an hint.

Posted in  | Tags , , , , ,  | 1 comment | no trackbacks

Un DAO in DUE minuti

Posted by Lucio Benfante Sat, 09 Dec 2006 12:40:00 GMT

Parancoe è un framework Web pensato per scrivere rapidamente applicazioni Web “di tutti i giorni”, cioè applicazioni senza requisiti particolari, quelle che nel 90% dei casi viene richiesto di sviluppare. Lo scopo quindi non è avere un framework iper-flessibile, capace di adattarsi a tutti i requisiti possibili, ma un framework che renda molto semplice la vita al programmatore sviluppando quel particolare tipo di applicazioni.

Il suo modulo di persistenza segue la stessa filosofia e permette di ottenere in pochi minuti le classi per accedere ai dati (DAO - Data Access Object) dell’applicazione, memorizzati in un database relazionale.

Ad esempio, supponiamo di avere una classe persistente Person, mappata sul DB mediante Hibernate. Per ottenere il suo DAO con Parancoe è sufficiente scriverne l’interfaccia:

@Dao(entity=Person.class)
public interface PersonDao extends GenericDao<Person, Long> {}

…e scriverne una semplice configurazione per Spring:

<parancoe:dao id="personDao"
    interface="org.parancoe.example.dao.PersonDao"/>

Già così avete ottenuto un DAO con i seguenti metodi:

  • Long create(Person newInstance);
  • Person read(Long id);
  • void update(Person transientObject);
  • void delete(Person persistentObject);

Notate che non sono metodi “generici”, ma usano il tipo dell’oggetto persistente, quindi non sono necessari cast.

Ma si può andare oltre. Supponiamo che abbiate bisogno di un metodo per ottenere la lista delle persone con un determinato nome e cognome. Con Parancoe è sufficiente modificare l’interfaccia, aggiungendo tale metodo:

@Dao(entity=Person.class)
public interface PersonDao extends GenericDao<Person, Long> {
    List<Person> findByFirstNameAndLastName(
        String firstName, String lastName);
}

Questo è tutto: non è necessario scrivere l’implementazione di tale metodo, nè modificare la configurazione del DAO.

Per saperne di più leggete questo tutorial nel wiki del progetto.

Se poi volete contribuire, anche solo per dare suggerimenti su come proseguire nello sviluppo, commentate questo articolo e visitate il sito del progetto:

http://parancoe.dev.java.net

Potete anche iscrivervi alle mailing-list del progetto:

https://parancoe.dev.java.net/servlets/ProjectMailingListList

Aggiornato 28/12/2006: è cambiato il modo di configurare i bean DAO.

Posted in ,  | Tags , , ,  | no comments | no trackbacks

JetBrains IntellijIDEA 6.0

Posted by Dario Santamaria Sat, 07 Oct 2006 14:34:00 GMT

È uscito da qualche giorno la versione 6.0 del “most intelligent Java IDE IntellijIDEA”, disponibile ora per il download.

Read more...

Posted in  | Tags ,  | 1 comment | no trackbacks

Google Web Toolkit

Posted by Lucio Benfante Fri, 19 May 2006 01:25:00 GMT

Sembra che finalmente si potrà cambiare la maniera di scrivere le applicazioni Web.

Google ha rilasciato, con licenza Apache 2.0, il Google Web Toolkit (GWT) un framework per lo sviluppo di applicazioni Web AJAX “totalmente in Java”, cioè senza dover scrivere codice HTML e JavaScript, ma solamente delle classi Java, molto simili a quelle usate in applicazioni Swing, che vengono successivamente tradotte da un apposito compilatore. Viene inoltre fornito un ambiente di esecuzione, che permette di eseguire l’applicazione in modalità “host”, prima di compilarla, anche all’interno di un ambiente di sviluppo, usando quindi il normale debugger Java, e tutti i tool disponibili per questo linguaggio.

Il risultato è assolutamente stupefacente, e diventa alla portata di tutti realizzare applicazioni Web che non hanno nulla da invidiare a quelle desktop. Guardate e provate gli [esempi](http://code.google.com/webtoolkit/documentation/examples/)!

Purtroppo, leggendo un po’ meglio, non viene tutto rilasciato con licenza opensource. Il compilatore Java-to-JavaScript e l’ “hosted web browser” vengono distribuiti solo in binario e occorre sottoscrivere un’apposita licenza, che sostanzialmente vieta di ridistribuirli, di derivarne ulteriori prodotti e di includerli in prodotti commerciali. Inoltre, ogni volta che si usa l’hosted web browser, verrà contattato un server di Google, per verificare che si sta usando la versione più aggiornata del prodotto. Però il codice e le classi prodotte con tali strumenti sono liberamente distribuibili, anche con scopi commerciali.

Maggiori informazioni nel [sito Google Code](http://code.google.com/webtoolkit/).

Posted in  | Tags , , ,  | 11 comments | no trackbacks

findbugs to discover bugs

Posted by Enrico Giurin Wed, 17 May 2006 17:15:00 GMT

FindBugs

I was investigating about a good tool for profiling when I met with findbugs. To be honest I found discussion about this tool in a thread of jug milano mailing list. findbugs is a free software which looks for bugs in Java code. In order to execute this program is enough you have installed on your machine Java Web Start. Thereby try to click here , after set parameter of your project (src, jar, etc) and finally push on ‘Find Bugs’ button.
I was amazed at how many bugs it found like comparison of String objects using == or != instead of using equals() method.
By the way…I didn’t generate that code :-)

Posted in  | Tags ,  | no comments | no trackbacks

Xj3D milestone 1.0

Posted by Dario Santamaria Wed, 19 Apr 2006 17:18:00 GMT

Xj3D is an open source X3D browser, developer library and test environment for the X3D real time 3D content and delivery standard.

Xj3D is a project of the Web3D Consortium Source Working Group focused on creating a toolkit for VRML97 and X3D content written completely in Java. It serves a dual purpose of being an experimental codebase for trying out new areas of the X3D specification and as a library that we encourage application developers to use within their own application to support X3D technology.

More information on the website: Xj3D website

Posted in  | Tags , , ,  | no comments | no trackbacks

Java 3D API 1.4 Released

Posted by Andrea Stefani Mon, 03 Apr 2006 23:59:00 GMT

In these days, the version 1.4 of the [Java 3D API](https://java3d.dev.java.net/) has been released.

The Maintenance Release under the Java Community Process (JCP) is defined by [JSR-926](http://jcp.org/en/jsr/detail?id=926) and includes the following new features:

- Programmable shader support
- Default values for read capability bits
- Additional core picking methods
- Stencil buffer
- Rendering attributes/modes for depth test function

Other minor features have been added and others have been deprecated in the Java 3D API.

You can find all new and deprecated features in the [Java 3D API version 1.4 Change Log](http://jcp.org/aboutJava/communityprocess/maintenance/jsr926/926ChangeLog.html).

One of the most interesting features available with the next release of the Java 3D API is the JOGL integration (Java Bindings for OpenGL, [JSR-231](http://www.jcp.org/en/jsr/detail?id=231)) for the access to native context.

You can follow Java 3D API evolution in the [Java 3D Roadmap](http://wiki.java.net/bin/view/Javadesktop/Java3DRoadmap#Java_3D_1_4) wiki page.

Posted in  | Tags , ,  | no comments | no trackbacks

Torpark...and u are free to go everywhere

Posted by Enrico Giurin Fri, 10 Mar 2006 02:16:00 GMT

AAMS, a branch of italian government, impose to all Italian Internet Service Provider to inhibit access to a set of sites, the most part of them connected with gamble games. You can find this list [here](http://www.aams.it/site.php?page=20060213093339418). I think that this disposition represents a serious limitation of freedom. In order to contrast this regulation I suggest to use Torpark browser, that permits, using a own computer’s net, going everywhere u want. Try to go for example at this [link](http://www.007bets.com/) using firefox, then, after u have installed torpark in your laptop, try with torpak…and u will see that there isn’t limitation. Enjoy with torpark ;-)

Enrico.

Posted in  | Tags  | no comments | no trackbacks

Older posts: 1 2 3