Nice post : Programmers: Before you turn 40, get a plan B Posted on May 19, 2009 by John Fuex (johnfx).
I started this questioning about a year ago, but I still see no clear path to escape programming.
2009-06-12
2009-05-09
Sun's JVM has an HTTP server embedded: com.sun.net.httpserver
Very useful ! Sun's Java Standard Edition has a simple HTTP Server: com.sun.net.httpserver.
It simplifies dependencies since you don't have to add a new library. It is straightforward to use it with Jersey to publish Restful Services. But it isn't a standard feature !
Eclipse users might see compile errors saying Access restriction: The type ... is not accessible due to restriction on required library ...
The problem is that the HTTP server is part of the Sun JRE6 but not part of standardized Java.
Eclipse therefore blocks access to it.
This can be fixed by going to the Window->Preferences window, selecting Java->Compiler->Errors/Warnings, selecting Deprecated and Restricted API and then changing the setting for Forbidden Reference and Discouraged Reference to Warning instead of Error.
It simplifies dependencies since you don't have to add a new library. It is straightforward to use it with Jersey to publish Restful Services. But it isn't a standard feature !
Eclipse users might see compile errors saying Access restriction: The type ... is not accessible due to restriction on required library ...
The problem is that the HTTP server is part of the Sun JRE6 but not part of standardized Java.
Eclipse therefore blocks access to it.
This can be fixed by going to the Window->Preferences window, selecting Java->Compiler->Errors/Warnings, selecting Deprecated and Restricted API and then changing the setting for Forbidden Reference and Discouraged Reference to Warning instead of Error.
Jersey client, Jax-rs, Jaxb, RESTFUL client in Java
RESTFUL web-services, in Java, concern mostly server side developments. The client is generally the browser.
Now I am in the process of developing a Java client for web-service. I searched Java solutions in this space and found that Jersey was also a good client. I already known Jersey, for being the reference implementation for Jax-rs (Restful Services ?) and even saw Paul Sandoz himself in Grenoble. But I never imagined that there could be another consumer than the browser.
Well obviously, they needed to test Jersey, hence ad-hoc code, then a framework and a finally a jersey-client for everyone's pleasure.
The funny parts is that I am using jersey-server to test jersey-client: the other way around ... That is not pure Unit Test, in the sense that I prefer functional or integration test than testing every tiny development chunk and mocking everything around.
Point is that implementing Restful Services in java with Jersey and Jasxb is really easy. overall, I stumbled on a problem with Jaxb and the way it doesn't handle immutable objects, but I will make another post about this.
Now I am in the process of developing a Java client for web-service. I searched Java solutions in this space and found that Jersey was also a good client. I already known Jersey, for being the reference implementation for Jax-rs (Restful Services ?) and even saw Paul Sandoz himself in Grenoble. But I never imagined that there could be another consumer than the browser.
Well obviously, they needed to test Jersey, hence ad-hoc code, then a framework and a finally a jersey-client for everyone's pleasure.
The funny parts is that I am using jersey-server to test jersey-client: the other way around ... That is not pure Unit Test, in the sense that I prefer functional or integration test than testing every tiny development chunk and mocking everything around.
Point is that implementing Restful Services in java with Jersey and Jasxb is really easy. overall, I stumbled on a problem with Jaxb and the way it doesn't handle immutable objects, but I will make another post about this.
2009-04-22
Hadopi, Création et Internet.
Encore une série d'article sur Hadopi.
Franchement on aurait mieux à faire, surtout en temps de crise ! Il existe des problèmes plus important, non ? Comme par exemple le retard de la France pour ce qui concerne Internet, les Spam, la vente liée ...
Bref, en vrac : Victoire pour les citoyens européens ! L'amendement 138 de nouveau voté
Hadopi pour les nuls : un bon résumé.
Adresse IP : la démonstration de l’UFC-Que Choisir L'association de consommateur (UFC-Que choisir, dont le but est de défendre les consommateurs) a démontré avec le professionnalisme juridique requis huissier, tribunal ... que l'IP n'était pas une preuve suffisante pour identifier un coupable.
Franchement on aurait mieux à faire, surtout en temps de crise ! Il existe des problèmes plus important, non ? Comme par exemple le retard de la France pour ce qui concerne Internet, les Spam, la vente liée ...
Bref, en vrac : Victoire pour les citoyens européens ! L'amendement 138 de nouveau voté
L'amendement 138/46-135 dispose que l'on ne peut restreindre les droits et libertés fondamentaux des utilisateurs qu'après une décision de l'autorité judiciaire (exception faite des menaces à la sécurité publique, auquel cas la décision peut être postérieure). Cet amendement avait été adopté en septembre dernier par une majorité écrasante au Parlement européen et ensuite approuvé par la Commission européenne malgré les demandes répétées de la part de la Présidence française de le rejeter. Le Conseil de l'Union européenne l'avait finalement rejeté sous la pression du gouvernement français et à la suite de la désinformation de juristes employés par le Conseil sur une prétendue contradiction avec les lois nationales existantes.
Malgré une forte pression pour obtenir un compromis sur la directive cadre du Paquet Télécom la commission ITRE du Parlement européen a de nouveau adopté l'amendement 138/46 par une forte majorité de 40 contre 4. Il faudra s'assurer dans la suite des débats que ce vote sera confirmé en session plénière, mais il s'agit d'un signal fort et évident.
Hadopi pour les nuls : un bon résumé.
Adresse IP : la démonstration de l’UFC-Que Choisir L'association de consommateur (UFC-Que choisir, dont le but est de défendre les consommateurs) a démontré avec le professionnalisme juridique requis huissier, tribunal ... que l'IP n'était pas une preuve suffisante pour identifier un coupable.
2009-04-20
Manifestation-contre-hadopi.com
Pour ceux qui ont le temps : des manif partout contre la loi HADOPI.
Voir aussi l'article de la Quadrature du NET :
"Un amendement crucial2 visant à protéger les citoyens de l'Union européenne contre la police privée et la justice parallèle des industries du divertissement (« riposte graduée » instaurée par la loi HADOPI) a été adopté par 88% des eurodéputés lors de la première lecture du paquet télécom, le 24 septembre 2008.
Sous la forte pression de Nicolas Sarkozy dans le cadre de la présidence française de l'UE, le Conseil de l'UE a supprimé cet amendement 138 sans aucune justification"
Voir aussi l'article de la Quadrature du NET :
"Un amendement crucial2 visant à protéger les citoyens de l'Union européenne contre la police privée et la justice parallèle des industries du divertissement (« riposte graduée » instaurée par la loi HADOPI) a été adopté par 88% des eurodéputés lors de la première lecture du paquet télécom, le 24 septembre 2008.
Sous la forte pression de Nicolas Sarkozy dans le cadre de la présidence française de l'UE, le Conseil de l'UE a supprimé cet amendement 138 sans aucune justification"
2009-03-11
How to compare a Java Web Framework
Far from being achieved, but at least a major update of How To compare Java Web Framework and the Java Web Framework matrix.
2009-02-27
My first JavaFX tutorial completed under Linux
I was eager to start using JavaFX, because Linux isn't yet fully supported as a development platform. So I used this tips on how to install Netbeans with JavaFX on Linux. And I have been able to follow this tutorial.
Nothing fancy, but I have a good feeling about JavaFX : the code is clean, powerful and very readable. Not cluttered with legacy stuff.
I hope I will be able to do more with it.
Nothing fancy, but I have a good feeling about JavaFX : the code is clean, powerful and very readable. Not cluttered with legacy stuff.
I hope I will be able to do more with it.
Subscribe to:
Posts (Atom)
2025 Summary
Trying to see if I can manage to complete a few projects this year. Sold my 10 years old Squier Stratocaster, bought a Strandberg Standard N...
-
Trying to see if I can manage to complete a few projects this year. Sold my 10 years old Squier Stratocaster, bought a Strandberg Standard N...
-
Mention particulière pour: Gabriel Pidoux (hautbois) Joë Christophe (clarinette) Eva-Nina Kozmus (flûte) Yume Fujise (alto) Noé Natorp (vi...
-
I know I should read all those methods more in details. I found this in the Poll Best Requirement Survey by Xebia. So what is a requirement...