Aller au contenu | Aller au menu | Aller à la recherche

Friday 18 February 2005

FirePanel XP : un complément pour firewall de XP SP2

FirePanel XP est un petit logiciel permettant d'exploiter la face cachée du firewall intégré au SP2 de Windows XP, et d'y rajouter des fonctions.

Créer des règles, surveiller l'activité ou encore filtrage des paquets, des fonctions ajoutées et accessibles via ce petit programme, qui nécessite néanmoins le framework .Net 1.1 pour fonctionner.

Vous pouvez le télécharger ici : http://www.majorgeeks.com/download4333.html

Wednesday 16 February 2005

More of building custom GUIs in java with batik

Some developments about the FCU protoype I talked a few monthes ago. This principle is going to be used for a real simulator of an european military transport aircraft. I cannot show anything, but in terms of GUI, it's just a matter of adding (many) buttons.

While making new buttons with different behaviours, we faced a problem: how to get the coords of a mouse event, which cames in terms of pixels, in terms of Canvas units. The solution is simple and allows to go back and forth between screen space and Document space. The JSVGCanvas on which you are drawing provides a getViewBoxTransform() method, which gives the AffineTransform to convert from pixels space to document space. The code is simple and looks like that:

class MyCanvas extends JSVGCanvas {
...
((EventTarget)myElement).addEventListener("mousedown", new EventListener(){
public void handleEvent(org.w3c.dom.events.Event evt) {
AffineTransform userToScreen = getViewBoxTransform();
                        
DOMMouseEvent q = (DOMMouseEvent)evt;                        
Point2D documentPoint = new Point2D.Double(0.0,0.0);
try
{
  userToScreen.inverseTransform(new Point2D.Double(q.getClientX(), q.getClientY()), documentPoint);
}
  catch(NoninvertibleTransformException e) {
  System.out.println(e);
  return;
}
//documentPoint is the coordinates of the event in the Document space. Neat !
...

So, what's the point ? Just that it took us half a day to fin the right way do it, and I want to keep a trace for the next time I'll try to do it.

And if this can help sommeone ...

Tuesday 15 February 2005

REGNE is back online :)

Youpi !

I've my internet access back, so my local web (and everything) is online again , that's soooo cool =)

thank you.

ps : hello to obi :)

Friday 4 February 2005

Le web sans pub ? C'est possible...

  1. Installer firefox
  2. Ajouter l'extension AddBlock
  3. Récupérer la liste des serveurs de pub.

Et voilà ! Dommage, ça ne marche pas pour les quatre par trois dans la rue...

Thursday 3 February 2005

Weird image display with Internet Explorer ?

I had some troubles displaying correctly web pages in IE: it was scaling fonts and stretching images on every page. The solution is in the MSDN pages:

Remove the

HKEY_CURRENT_USER
 Software
   Microsoft
     Internet Explorer
       Main
         UseHR= dword:00000001

Internet Explorer sucks anyway ...