Archive for February, 2008

JNode at FOSDEM

Saturday, February 23rd, 2008

If you are in Brussels Sunday (24.02.2008) you must go to Fosdem. It is a meeting of the Free Open Source Community. As Java is an open source software since last year you will find some very interesting sessions about Java and the community around Java. One of them is related to JNode. So if you want to see JNode in action visit Fosdem.

Check the schedule of the session.

JNode 0.2.6

Saturday, February 23rd, 2008

JNode 0.2.6 is out . This new release contains some nice features:

  • More progress with OpenJDK integration
  • improve of the shell
  • Read-only HFS+ file system
  • NFS2 read write support (This is my contribution on JNode OS)
  • Included Jetty6, Servlet and JSP support

For more details of the new features visit the change log page.

La limita imposibilului

Saturday, February 23rd, 2008

Pentru amatorii de SF, AXN SCI-FI a inceput sa difuzeze La limita imposibilului in fiecare vineri seara la ora 23. Unul dintre cele mai bune seriale SF in viziunea mea.

Lupul in piele de oaie

Thursday, February 14th, 2008

Citind blogurile de dimineataza dau peste o stire intersanta:


http://www.arenait.net/2008/02/13/google-toolbar-fura-paginile-404/


Ce spune articolul?
Daca iti instalezi ultimul beta de la Google Toolbar si ceri o pagina care nu exista pe server, in loc de pagina obisnuita 404 voi vedea o pagina customizata de Google care bineinteles contine un buton Google Search. Ei se scuza ca fac asta numai daca pagina 404 are mai putin 512 bytes. Deci daca eu sunt un web designer si fac o pagina 404 mai mica de 512 bytes nu am avut noroc in viatza. Google-ul decide ca pagina mea nu trece de normele de calitate.

Ca sa vezi, compania care se da drept bunatatea intruchipata se foloseste de tehnici obsucure ca sa mai castige ceva useri pentru motorul lor de cautare. Sunt sigur ca sustinatorii companiei Google vor spune ca Microsoftul este si mai “evil” decat Google-ul. Dar eu am impresia ca le cam calca pe urme.

Comentariul meu se bazeaza doar pe articolul de mai sus . Nu am testat ultimul beta .

Update: Am testat si chiar asa este !!!

Tips for Yahoo

Tuesday, February 12th, 2008

Mortal :)

L-am gasit via alex si emi

Sun forgot USB

Tuesday, February 12th, 2008

I think that Sun forgot USB.
How is it possible, these days when every gadget (camera, ipod etc) has an USB port, to be very hard to connect to an USB device from Java???
Yeah yeah, I know there’s a JSR for this problem, JSR 80. There are also some implementations of the JSR 80 (all are almost dead projects).
But my problem is: why SUN doesn’t include JSR 80 in the JDK specification???
The solution could be very simple: just take one implementation of the JSR 80 and put it in the JDK. Then the implementation will evolve naturally.

I hope I’ll see more support from OpenJDK in this problem.

Replace classes in JUnit tests

Monday, February 11th, 2008

Few days ago a friend of mine showed me a nice project: StubOut. When you have strong dependencies between 2 classes in your project it is a very hard process to test each class separately. In this case StubOut makes a great job, it allows you replace one class with a mock class during the the test or to replace just some of the methods with mock methods.

Example :

package test;
public class A {

private B b=new B();

public int sum(int t){
return b.getInt()+t;
}

}

package test;
public class B {

public int getInt(){
return 10;
}

}

And the test case will be like this:

import us.blanshard.stubout.Stubber;
import us.blanshard.stubout.StubbingTestCase;

public class ATest extends StubbingTestCase{

@Override
public void beforeReloading() {
Stubber.replaceClass(”test.B”,Mock.class);
}

public void testSum() {
A a=new A();
assertEquals(1, a.sum(1));
}
}

package test;

public class Mock{

public int getInt(){
return 0;
}

}

Nice !!

In theory if each component is decoupled by an interface you will not use this library . But in reality ……………. :)

Check the site of the project for more details

Audio API

Friday, February 8th, 2008

Pentru amatorii de mashupuri muzicale am un link intersant:

Top 15 music APIs to power your next mashup

Java Web Browser

Friday, February 8th, 2008

If you want a pure Java web browser check this project: Lobo. Unlike The Flying Saucer Project, Lobo has support for HTML 4, Javascript and CSS2.

There are 2 things that I don’t like about it:

  • GPL license - if I want to use this library in a commercial project I’d better find another solution
  • why don’t these guys create a jnlp link to the browser? I don’t like to download code and to run it in command line.

Ora de muzica : ELO

Thursday, February 7th, 2008

Astazi la ora de muzica vom asculta niste clasici ai rockului: Electric Light Orchestra

Mr.Blue Sky


Telephone line


Roll Over Beethoven


I Cant Get It Out Of My Head


Hold on Tight


Don’t Bring Me Down