New blog address

23 June 2008

http://brunovernay.blogspot.com/ !!


EEE (Asus PC) in France

25 February 2008

I didn’t notice the impact and “caffouillage” SFR did with the EEE in france : http://www.blogeee.net/ is worth reading some articles.

Looks like a nice way to introduce another OS to the masses.

By the way my new blog is in http://brunovernay.blogspot.com/


JPA, Hibernate, EJB3 and TopLink quick diagram

22 January 2008

I searched some UML diagram on JPA, Hibernate, toplink, openJPA and EJB3 to get a quick understanding on how they are related to each other. I think that I have a good understanding now, but I found some confusing comparisons along the way.

The best I have found so far is : Java Persistence, implementations, and Java EE servers.

So I bring my own here, take it as a work in progress, open to criticisms : JPA UML Diagram

Note : I used UMLet and examples.

I think that I will add the servers deployment view.

So here is the version 2, a bit more cluttered :jpa1.jpg


Grenoble Software Event (GEC) at SUN

17 January 2008

Really a nice feeling about it. Some speakers are good : Jason Baragry for example. And I can see – in real – peoples that were only voices on Podcasts, like Roman Strobl or Alexis Moussine-Pouchkine. I like to be in an international, all english speaking environment. Still the problem is that I already listen to podcast, read news, so I only discovered Identity Managment, OpenDS and Java CAPS. The tools for openESB and CAPS are impressive !

And I didn’t know that SUN was so ahead of the others in term of investment in Open Source !!

Guess it is time to invest in SUN techno …


Fedora 8 and Java

15 January 2008

Some more informations on Fedora 8 and Java. A new hard drive was a good excuse to do a fresh Fedora install. Even with a fresh install, I had to remove all the i386 package (I have a x86_64 : no need to duplicate all package, this is a known problem of Fedora) and legacy gcj stuff.

I installed Java 7 since it is the future. But since it doesn’t have the crypto features yet, and since they are required for Glassfish, I installed the SUN JDK 6 as well.

So informations are bit misleading on the topic. Here is what I like to do :

Install jpackage-utils, then SUN JDK 6 RPM, then JPackage -compat package for the SUN rpm : java-1.6.0-sun-compat-1.6.0.04-1jpp.i586.rpm.

Manage the Java 6 / 7 switch with galternatives or (command line alternatives)

Remember Java 7 IcedTea install tips :

Mauriat Miranda tips and added the JDK as well (-devel) : sudo yum install java-1.7.0-icedtea java-1.7.0-icedtea-devel java-1.7.0-icedtea-plugin

I tested as per Gregory Gulick’s tips and it was OK.


Maven dependencies an Glassfish

12 December 2007

I am a bit new to Maven2 but it seems like I am not the only one to have problems with dependencies. Looks like stuff related to Sun Application Server (now Glassfish) and the Webservice Stack (now Glassfish Metro) has changed and the repositories moved.

References :


Remote access to Netbeans

11 December 2007

Using Netbeans remotely with FreeNX, I had some trouble with the display not refreshing very well.
The solution is simply to uses sun.java2d.pmoffscreen, i.e.  add the option -J-Dsun.java2d.pmoffscreen=false in etc/netbeans.conf.

There should be a way to detect if the display is local or not reading the DISPLAY env variable :

…j2se/src/solaris/classes/sun/awt/X11GraphicsEnvironment.java , see _isDisplayLocal method …

I have to try with the J2D_PIXMAPS=shared/server env variable too.


Web Caching

6 December 2007

Some resources about Web caching :

  • Smart JavaScript Caching
  • Google Web Toolkit changes file names for each modifications. I guess it is some kind of time hash. Couldn’t find explicit information however.
  • Apache HTTP Server 2.2 Caching Guide about mod_cache, mod_disk_cache, mod_mem_cache, mod_file_cache and htcacheclean. It describes how to use Apache’s caching features to accelerate web and proxy serving, while avoiding common problems and misconfigurations.
  • Varnish is a state-of-the-art, high-performance HTTP accelerator. It take full advantage of the virtual memory system and advanced I/O features.
  • Squid Web Proxy Cache
  • I am not including Akamai …

Netbeans, Glassfish with JSF dev with FreeNX

28 November 2007

So it works. OK I had to add 1Go RAM (1 Go wasn’t enough). I should have get 2Go from the beginning ! I had to install SUN JDK 6 because IcedTea didn’t work with Glassfish nor Netbeans, there is a strange security problem.

But now :

  • I can remotely connect to my home with FreeNX
  • Launch Netbeans 6, Glassfish, JavaDB and develop JSF
  • Epiphany is configured as the web browser (lighter than Firefox)
  • XFCE 4 as the desktop environment (again, lighter than Gnome or KDE)
  • Fedora 8 x64 with some services (FTP, HTTP …) running

If You P2P Download In France: No Internet For You

26 November 2007

It not that I am for piracy, but this :

French president Nicolas Sarkozy endorsed the deal with rhetoric that is bound to win him an Honorary Life Membership of both the RIAA and MPAA: “We run the risk of witnessing a genuine destruction of culture…The Internet must not become a high-tech Far West, a lawless zone where outlaws can pillage works with abandon or, worse, trade in them in total impunity. And on whose backs? On artists’ backs.” TechCrunch

Under the agreement — drawn up by a commission headed by the chief executive of FNAC, one of France’s biggest music and film retailers
France Sets Sanctions Against Internet Piracy

This is SO wrong ! The industry suffer from their inability to adapt to a new world. I used to buy the same albums in different formats : as tape, Vinyl, CD. They used to make easy money. Now, they will make money again when they bring something valuable to the customer. But it seems to be easier to spread some fallacies and get some government help, than finding a good idea.
I doubt that fighting against the customers is a good idea to bring them back. Not to mention that there is already a tax for all electronic storage devices …

As for the artists, they are turning their back on the “industry” (at least those who prefer people to listen than to buy and those who are not Sarkozy’s friends) :

The Inevitable March of Recorded Music Towards Free
Artists like Prince and Nine Inch Nails are flouting their labels and either giving music away or telling their fans to steal it. Another blow earlier this week: Radiohead, which is no longer controlled by their label, Capitol Records, put their new digital album on sale on the Internet for whatever price people want to pay for it.