Berthou.com

A french developper blog

Description

Usually in software devellopement we use values liste that we take from “properties”, SQL tables or in the worst case, “in hard codding” in our application.

As many people I had this problem ans I solve it by creating “Tables Memories”. It permits me to limit the access to the database (or file), to low the occupation memory by having just one request of these memories liste, and to simplify my code.

This code is quite old and could be improved (use of the patern singleton instead of a full static classe, synchronize optimisation…). I use this in a huge number of project and I always report these modifications because I don’t have any performance or memories problems.

Fonctions

During the cration of this componant I wanted to have the following functions also I simplify in maximum its use in a JSP page or a Servtel :

  • “Connection” sql connection outside bean
  • Do not reload the data if they are already in memory
  • Load of a liste from a select SQL : loadQuery(…)
  • Load of a list from a values liste : loadListe(…)
  • Read of the description associated to a code (String) : getValue(…)
  • Read of the description associated to a code (Combobox) : getListe(…)
  • Read of the description associated to a code (Radio Bouton) : getRadio(…)

Read the rest of this entry »

Web News

If it happens, it would be the biggest buying on the net. Indeed, to counter Google (who gives the impression to bother it), Microsoft announce a buying proposition of Yahoo for 45 milliard dollars.
En fond cours de l'action de Yahoo

I remember you that Yahoo exist since 1994 and the two (ex) student of Stanford (David Filo and Jerry Yang)can be very proud of their project ans of his valorization.

DB2 backup script on Linux

DB2 Backup Script

After my news about DB2 backup script under Windows, I give you in this small article a solution to do the same thing under Linux.

To Backup a database this IBM/DB2 gives you a graphic interface quite simple to use “Control-Center”, but if you want you include this backup in a batch script you must write a backup script without GUI.

In this new I explain how to write a windows script procedure (.bat or .cmd) to backup your DB2 database.

In this sample I considered that you must close your database before backup ( It’s possible to do this in “ONLINE” mode but it’s more complexe — include log file, rollforward…–) and I use a database SAMPLE (it is his name) for this test .

the goal of this scripts is to :

  • Quiesce database (close)
  • Backup your data
  • UnQuiesce database (open)
  • Zip backup file
  • Clean/Delete old backup rows in DB2 catalogue
  • Delete old backup files

Read the rest of this entry »

WWW – XWiki version 1.2

Some news of the web

After three “releases candidates” the final version of the excellent XWiki software is avaible to download.

Xwiki is a Wiki Open Source multilingual, entirely written in Java. It offers all the services of a well securisated Wiki and permit an easy developping of the specifique functions (very useful to integrate this in existing applications). This sort of tools permit to develop quickly an entreprise Intranet by adding quite easyly specifique functions.

This new version offers better performans, New users, groups and rights management UI (I didn’t like the previous one), many pluggins anb many other things to see at this link. ici.

In my opinion I find the first contact very simple and quick. I particulary like the panel interface, the flux reader “Xwiki Watch” which is really very powerful and the exportation in RTF or PDF format.

If you don’t already know this tool I invite you to discover it quicky.


After some rumors, Sun announces an agreement to acquire MySql and Oracle announced that it has entered into an agreement to acquire BEA Systems, Inc.

It will give to Sun a popular database missing from its catalogue and it’s a very good database…

More informations on this news
- http://www.mysql.com/news-and-events/
- http://www.oracle.com/bea/index.html

DB2 Backup Script

A database is very usefull but it’s always important to backup very often your data. To do this IBM/DB2 gives you a graphic interface quite simple to use “Control-Center”, but if you want you include this backup in a batch script you must write a backup script without GUI.

In this new I explain how to write a windows script procedure (.bat or .cmd) to backup your DB2 database.

In this sample I considered that you must close your database before backup ( It’s possible to do this in “ONLINE” mode but it’s more complexe — include log file, rollforward…–) and I use a database SAMPLE (it is his name) for this test .

the goal of this scripts is to :

  • Quiesce database (close)
  • Backup your data
  • UnQuiesce database (open)
  • Zip backup file
  • Clean/Delete old backup rows in DB2 catalogue
  • Delete old backup files

Read the rest of this entry »

Index

Description


tEuroCalc is a little Calculator/Converter Applet. Its very small size allows an easy use (14 Ko). tEuroCalc runs on all browsers with support JDK 1.1. With this applet you can make all standard operations (“+”, “-”, “/”, “*”, “%”…) and you can convert european devises in Euro.

Download

tEuroCalc.zip

News

Version 2.00

  • Add LiveConnect support for Java< ->Javascript communication
  • Add layer sample
  • Add greece devise

Read the rest of this entry »

Description

A few days ago I had a little problem when I tried to deploy in WAS 6.0 (Websphere Application Serveur 6) an application including a PDF signature.
During the execution of the servlet’s signature, I had the following problem :

java.lang.Exception: java.lang.Exception: java.io.IOException:
Error in loading the keystore: Private key decryption error:
(java.lang.SecurityException: Unsupported keysize or algorithm parameters)

Resolution

This error is caused by the JCE libraries used by the virtual java’s machine executing WAS. This JVM is the standard version and it had a limited support of cryptographie’s algorithme. To correct this you just have to substitute two jar files in teh configuration of the JVM IBM (local_policy.jar et US_export_policy.jar).
This files are in the index $JAVA_HOME/jre/lib/security (for exemple /usr/lib/jvm/jre-ibm/lib/security or /opt/IBM/WebSphere/AppServer/java/jre/lib/security).
You can download this non limited librairies http://www-128.ibm.com/developerworks/java/jdk/security/142/ (file unrestrict142.zip)

When the file is download you had to:

  • Decompress the downloaded file
  • Verify that this file contains local_policy.jar et US_export_policy.jar
  • Stop Websphere
  • Save the old files
  • Substitute the two files
  • Take off again WAS

aTicker – applet

Description

aTicker is a simple, free and small Ticker texte scrolling Applet. aTicker runs on all browsers with JDK 1.1x support. (aTicker is free with all source code).
This applet is available in JDK 1.1x


Source HTML

<applet codebase="/jar" archive="applet-aticker.jar" code="com.berthou.applet.aticker.aticker.class" width=220 height=20 mayscript>
	<param name=file value="s">
	<param name=cSep value="§">
	<param name="speed" value="1">
	<param name="delay" value="30">
	<param name="local" value="true">
	<param name="bgcolor" value="13693183">
	<param name="Font1" value="Verdana, 14, 0, 0">
	<param name="Font2" value="Verdana, 14, 1, 1220">
	<param name="s0" value="JavaSide § http://www.javaside.com § _load">
	<param name="s1" value="Mess 2 § javascript:alert('Salut...') § _script § ?PopupJavascript">
	<param name="s2" value="berthou-fr § http://www.berthou.com/fr/ § _load">
	<param name="s3" value="berthou-us § http://www.berthou.com/us/ § _load">
</applet>

Read the rest of this entry »

WWW – Browsershots.org

On the web

When I surfed on the net, I discovered the site browsershots.org . This site makes screenshots of your web design in different browsers. It is a free open-source online service. With a subscription you can get a priority processing and so you can reduce the waiting delay (30 min without sunscription).

Borwsershots.org do this on 3 OS (Windows, Linux, Mac) and propose a large choice of browsers. I especially like the old browsers versions and the possibility to download all screenshots in 1 zipped file.



Archives



Recent Comments


View Berthou Raymond's profile on LinkedIn Add to Technorati Favorites
Web Developement Blogs - Blog Catalog Blog Directory tlmeb