lundi 1 août 2011

Le monde tel qu'il est aujourd'hui

Depuis décembre 2010, comme beaucoup, j'ai demandé a upgrader ma freebox 5 en Revolution ... Pas la peine d'en rajouter, beaucoup connaissent le problème.

J'étais en Roumanie le 15 juillet quand je vois le mail de Free tomber dans ma boite : votre freebox révolution est envoyée ! SUPER !

Je devais recevoir un mail et un SMS pour m'avertir qu'elle m'attendait dans mon relais Kiala favori.

Depuis je suis en galère car le colis est en cours d'acheminement chez Kiala, que je n'arrive pas à joindre. J'ai envoyé un mail grâce au formulaire sur leur site. Y a pas de téléphone alors je ne peux pas savoir comment ça ce fait que mon colis re-routé est au centre de tri depuis le 19 juillet.J'ai contacté Free pour qu'ils les relancent ... toujours rien.

Là, je me demande comment je vais me sortir de cette faille temporelle.
Peut-être qu'une menance de déshabonnement ferait l'affaire ... à suivre donc.


Suite : depuis le 30 aout je suis abonné à SFR avec une neufbox. Problème résolu ;-)

mardi 19 avril 2011

JON Bundles Demo

Here is a little video to demo how you can provision JBoss AS & applications using JBoss ON bundles

mardi 1 février 2011

Le livret A passe de 1,75% à 2% ... whouaaaa, je suis sans voix :-|

Le pire c'est de voir à quel point cette nouvelle insignifiante est relayée.

mercredi 3 novembre 2010

La société Proxiad à publié la vidéo de la présentation que j'ai effectuée lors de la session du 20 octobre dernier.

Le Chti JUG : http://chtijug.org/
L'annonce : http://chtijug.org/jboss-5-mod_cluster-lille-20-10-2010-18h30/
La video : http://vimeo.com/16270213

JBoss 5 cloud from ProxiAD Videos on Vimeo.

mardi 5 octobre 2010

eclipse : identify current workspace

I'm regulary switching between 15 eclipse workspaces. i just found about about the "-showLocation" startup switch, which is useful to show in the titlebar which workspace i am currently in.

That's all folks.

mercredi 26 mai 2010

The best ever : Fedora 13 "Goddard" !


Simplement indispensable, encore une fois, de vous annoncer la sortie de la dernière mouture du Projet Fedora. Celle-ci se prénomme "Goddard" et est sans aucun doute la meilleure version de cette distribution toujours aussi avangardiste en terme de technologies Open-Source.

Plus de temps à perdre : Get fedora 13 !

vendredi 2 avril 2010

Thanks God ...


TG Yourkit Exists!

Thanks to the "Classloaders" view in Yourkit, I was able to investigate & fix Perm Gen OutOfMemory. (http://yourkit.com/docs/kb/class_loaders.jsp)

There's others tools, but try this one, you're going to be on crack

Go go go ... buy it!

mardi 2 mars 2010

OpenID

It's not hot news but I think it's useful info.

OpenID provides you with an identity you can then re-use on several internet site. OpenIDFrance is the french site to achieve the same goal.

You can then use this identity by providing the URL that OpenId gave you when you register to the site you are visiting. The first time your login/password will be asked.

Thus, you can manage your information centrally and automatically fill forms with it.

Cherry on the cake. If you have a google account or others (see here) you already have an openID account.

vendredi 26 février 2010

Get a complete list of all possible JVM options

To get a reliable list of all config options for a given Sun JVM, look directly into the compiled code. For example :

$ strings $JAVA_HOME/jre/lib/amd64/server/libjvm.so | grep -B646 assert_null$ | grep -v '{' | grep -v '&' | grep -v '/' | grep -v '%' | grep -v assert_null

(on one line)
Do you know all 646 options ?

EDIT : it is also possible to get the default value and computed value for each option using the jinfo tool shipped with the JDK. First the need the id of the vm from which you want the options. it is easy, just run jps and choose the appropriate id (we'll call id $LVMID)

It looks like a few options are available but not extracted from libjvm.so, but can be found in deploy.jar :

MaxDirectMemorySize
MaxHeapFreeRatio
MaxInlineSize
MinHeapFreeRatio
NewSize
PermSize
ThreadStackSize
CompileThreshold

You can add these well known options to the list above for the next part :

Using the list we got above (let's say we've redirected the list to a file named 6_0_18_complete_options_list , it is then possible to print the (almost) complete list of the options with their default, computed, or overriden value using :



$ for i in `cat 6_0_18_complete_options_list` ; do jinfo -flag ${i} $LVMID | tee -a /tmp/default_computed_vm_options ; done ;

All the values will be written to default_computed_vm_options, with the numeric value , or a + / - in front of the option if it's a boolean. very instructive way to find out the defaults for your specific platform


Lots of interesting stuff in there for JVM geeks :)
I hope you're not lactose intolerant because what you will find is legen....da(i)ry

lundi 23 novembre 2009

upgrade to Fedora 12 x86_64: tips and tricks

  • OpenLDAP is now 2.4 by default. config migration is explained here : http://www.zytrax.com/books/ldap/ch6/slapd-config.html#convert , pretty straightforward.
  • sound is choppy with skype : same solution as before, add tsched=0 to the load-module module-udev-detect line. It will disable the "glitch free audio" (http://0pointer.de/blog/projects/pulse-glitch-free.html ) that might not be as glitch free as the name suggests, at least for now. could also be a bug in skype...
  • the new KNetworkmanager does not remember TLS settings for OpenVPN. this has been patched in KDE svn and the patch applies cleanly to the F12 KNetworkManager sources (see this bug : https://bugs.kde.org/show_bug.cgi?id=208354).
  • Plymouth "charge" theme is still ugly, see previous post to use solar theme
  • ctrl+alt+backspace to kill the X server is disabled by default. you can enable it back by going to KDE settings > regional settings > Keyboard layouts > advanced > Key sequence to kill X server
  • GTK apps set their notification bubbles in the top right corner, you can change it by using gconf-editor > apps > notification_daemon > popup_location property, i've set it to bottom_right to have both KDE and GTK app notifications in the same place
  • The Konqueror man viewer (very useful when page is long) now tries to fetch its man pages according to the user locale. problem is that 70% of man pages are untranslated, and it doesn't fall back to the english version if the locale version is not found. Since i don't care about translated pages, my hack is to remove the locale pages and symlink the locale pages back to the standard directory so that for example /usr/share/man/fr.UTF-8 points to /usr/share/man. Konqueror will now show the original man page instead of displayed a "not found" error page.
  • For the internal mic : Make sure that Digital Input Source is set to "Digital Mic 1" either in KMix or alsamixer -Dhw . And make sure that your pulseaudio configuration tab in pavucontrol is set to "Analog Stereo Duplex". Otherwise, internal mic will not even show up in the sources, cheeky bastard

Other than that, it's a great release :)

mardi 17 novembre 2009

Une nouvelle release pour de nouvelles sensations !

Pour ceux qui ne seraient absolument pas dans le vrai, une information vitale se doit d'être publiée :

Fedora 12 est enfin diponible dans les torrents !


Encore un travail de titan réalisé par l'équipe du Fedora Project pour nous proposer une nouvelle version de cette distribution toujours aussi puissante. Je vous invite donc et sans plus attendre, à faire chauffer les machines noires pour une mouture de toute beauté !

C'est d'un goût mon jeune ...!

vendredi 13 novembre 2009

Mission Londres


En mission à Londres,près du London Bridge, j'ai goûté à la cuisine exclusive du restaurant "Bermondsey Kitchen". Un cadre et un staff chaleureux ! Digne d'un Commensal.

Après la mission à Niort (avec l'excellent La Tartine), à Rome et bientôt à Barcelone et Bruxelles ... y a intérêt à avoir les Timberland bien accrochées.

lundi 9 novembre 2009

Fedora 11 : Clé 3G Orange Huawei e160

Le monde avance, configurer sa clé 3G avec NetworkManager est presque automatsique.

  • Insérer sa clé 3G où vous voulez mais dans un port USB les chances de succès sont plus élevées (la mienne est une Huawei E160 Orange)
  • Clic droit sur l'icone NetworkManager > Modification des connexions > Téléphone mobile à large bande > Ajouter
  • NetworkManager propose de configurer le modem Huawei E220 (c'est ce que rapporte lsusb), la mienne est officiellement une e160 mais c'est pas grave ça marche aussi il s'en démerde.Clic sur Suivant > France > Orange > Internet Everywhere 3G
  • Dans la popup de conf qui apparait, il faut changer 3 paramètres : mettre orange comme password, changer l'APN d'orange.ie en orange.fr, et mettre le code PIN de la clé (par défaut 0000 mais vous pouvez le changer).
  • Attendre qq secondes
  • La connexion devrait apparaître dans la liste des connexions de NetworkManager (clic gauche sur l'icone) . Cliquer sur la connexion (Orange Internet Everywhere 3G pour moi). Attendre qq secondes, et les choses devraient se passer.
  • ENJOY !
Vous pouvez désormais commencer à vivre comme un américain à Paris, mais ne vous attendez pas à ce que le débit soit dans les 4 chiffres ni à pouvoir flâner facilement sur le mouvement quotidien


EDIT : Il faut aussi ne pas se faire arnaquer par les DNS tout pourris d'Orange ... Certains d'entre eux sont plus lents à répondre qu'une vieille à la caisse qui fait ses courses le WE. Evitez de préférence les DNS 10.* et préférer les DNS en 194.* ....

dimanche 1 novembre 2009

Fedora 11 : Enable Dell 370 bluetooth card

I have a Dell e6400 professional laptop. Installed the 370 bluetooth minicard but it wasn't recognized.

Running hcitool scan i had :

Device is not available: No such device

It turns out that this can be fixed by two steps,one of them is lame.
  1. Install the Dell drivers in Windoze while this bug is resolved : https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/277211 (also affects Ubuntu). This will enable the hardware part (the bluetooth led will now be active in Linux). There is probably a way to activate it in Linux, but my laptop came with XP, and i kept the partition so that was easier.
  2. For the software part, run the hid2hci utility to make the device connectable by non-HID devices (i.e other than mice and keyboards, for example bluetooth headsets). You have to identify which device in the lsusb output is the card. For me, it was : ID 413c:8158 Dell Computer Corp. It is probably the same for you. So, run this command as root : hid2hci -v 413c -p 8158 -r hci -m dell
  3. You can now run ,as root : hcitool scan . This should scan for devices instead of giving the "no such device" error.
  4. Enjoy !

jeudi 29 octobre 2009

visually identify ssh session console tabs

add this to the server user's .bashrc :

if [ "x$SSH_CONNECTION" != "x" ]; then
export PS1="\[\033[01;35m\][ssh]\[\033[00m\]$PS1"
fi


It will prepend your server prompt with [ssh] allowing you to visually identify when you're on a shell session on it. of course you could just color the hostname or something else, but you get the idea. sometimes a visual cue is better than having the hostname in the prompt.

mardi 27 octobre 2009

annoying ^C (control C) echoed in bash shell

Starting with bash 4.0*, hitting ^C (control+c) in the Konsole prints out ^C and potentially overwrites command history. For those of you, dear readers, that think that this is really annoying and lame, there is a workaround.

add

stty -echoctl

in your ~/.bashrc.
That's it.

Other control chars such as ^Z will not be displayed anymore, but i hate that much less than i hated ^C.

jeudi 22 octobre 2009

Les hotels, la vie.


Haaa, ça faisait longtemps que ça ne m'était plus arrivé. Je suis à Niort, et dans la chambre d'hotel à côté de la mienne, la nuit dernière a été chaude ... et ce matin aussi !

C'est beau la jeunesse ... frustrant, bien sûr, ... mais bô !

Aller jeunesse !
Vivez d'eau et de sang ! Vivez tout le temps !

samedi 29 août 2009

Akonadi google calendar resource

In Fedora 11, Akonadi google resources are not packaged.
A video explains best what you'll get from this

Here's what you need to do to get them :

  1. libGCAL

  2. cd /opt
    git clone git://repo.or.cz/libgcal.git
    cd libcal

    Comment out lines 26 and 48 of the CMakeLists.txt file, then

    cmake ; make ; sudo make install

    If you chose to keep your /usr/local prefix, make sure your LD_LIBRARY_PATH variable contains /usr/local/lib

  3. Googledata akonadi resource
  4. The resource currently lives in extragear :

    svn co svn://anonsvn.kde.org/home/kde/trunk/extragear/pim/googledata googledata

    Same deal as before :

    cmake ; make ; sudo make install

  5. Using the new resources
I'll assume you have a working akonadi server. You'll need to restart it by going to KDE System Settings > Advanced Tab > Akonadi Config > Akonadi Server Config Tab > Restart

You can now go back to the Akonadi resources tab still in Akonadi Config,and add Google Calendar Resource. It will prompt you for your username and passwoord and optionally store them in your KWallet

Now you should go to KOrganizer, add your akonadi resource,select the caledar and you should see it sync locally.

Update : 2 way sync seems to have basic features somewhat working with your "default" GMail calendar (the first one created), but doesn't seem to support multiple calendars ... I'll update again if i find more info









jeudi 20 août 2009

Cowrecto !



C'est avec un plaisir non dissimulé qu'avec mon POTCHE Romain nous sommes allés voir "Inglorious Basterds" de Quentin ce Tarantino !

Quelle merveille !

Nous devions obligatoirement parler de ce film qui REPRESENTZ GRAVE SA RACE ! Un jouet allemand, juif ... ou allemand comme dirait Heenok.

Supers acteurs, supers jeux, super scénario ... super film.

Ils ont prit du plaisir et le film nous en restitue une bonne tranche !

dimanche 21 juin 2009

Notes de migration à Fedora 11

A tous nos lecteurs, ci dessous quelques notes sur les quelques petits problèmes rencontrés ou tips pour la migration à Fedora 11 depuis Fedora 10.

Premier topic : Il semble que le driver libre RadeonHD ne soit pas encore compatible avec le KMS (Kernel Mode setting) qui permet entre autres d'avoir une transition smooth au niveau serveur X entre les différentes phases du boot, et d'avoir un switch rapide entre les terminaux virtuels (Ctrl+Alt+F{2,...}).

Quatre étapes sont donc nécessaires si vous possédez une carte ATI et voulez avoir l'accélaration matérielle.

Il faut :

1. recompiler le driver à partir du dépot Git (indiqué par le message ""RADEONHD(0): DRI support has been disabled at compile time" dans /var/log/Xorg.0.log :
  • $ git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
  • $ cd xf86-video-radeonhd/; ./autogen.sh --prefix=/usr/; make (vous pouvez également choisir /usr/local comme préfixe et jouer sur le LD_LIBRARY_PATH mais je n'ai pas choisi maintenant qu'il y a l'option yum reinstall)
  • # make install
2. désactiver le KMS ( ce qui veut dire pas de boot sympa avec plymouth mais pour l'instant c'est le prix à payer : (voir https://bugzilla.redhat.com/show_bug.cgi?id=476086). Pour cela , éditer votre /boot/grub/grub.conf et rajouter nomodeset à la fin de la ligne des options du kernel que vous bootez, exemple :


title Fedora (2.6.29.4-167.fc11.i586)
root (hd1,7)
kernel /vmlinuz-2.6.29.4-167.fc11.i586 ro root=UUID=uuid rhgb quiet nomodeset
initrd /initrd-2.6.29.4-167.fc11.i586.img



3. Créer un fichier /etc/X11/Xorg.conf spécifiant qu'il faut utiliser le driver radeonhd (ce fichier n'est plus présent par défaut dans Fedora, créez le)

La partie importante est la suivante :



Section "Device"
Identifier "Videocard0"
Driver "radeonhd"
BusID "PCI:1:0:0"
Option "DRI"
EndSection


Section "DRI"
Group "video"
Mode 0666
EndSection



Pour le reste (AIGLX et Composite) expérimentez dans votre contexte et reportez vous aux nombreux threads et docs sur le sujet.



4. rebooter et vérifier au prochain boot que l'accélaration fonctionne.
  • vous ne devez pas avoir d'erreur dans /var/log/Xorg.0.log (faites un grep sur (EE) )
  • faites un export LIBGL_DEBUG=verbose ; glxinfo . La non plus il ne doit pas y avoir d'erreur significative (l'absence de fichier drirc peut être ignorée), et le renderer string doit retourner "Mesa DRI R300 20090101 AGP 4x x86/MMX/SSE2 TCL" ou équivalent, c le "DRI" qui est important, il ne doit pas y avoir "Software rasterizer".
  • le nombre de FPS obtenu par glxgears doit être de plusieurs milliers et non plusieurs centaines.


Deuxième topic :

Le nouveau thème graphique "Charge" est plutôt moche comparé au thème Solar sur F10. Pour les laptops avec une carte autre qu'ATI (cas de mon laptop pro), la procédure pour remettre le thème Solar pour Plymouth est la suivante :

# yum install plymouth-theme-solar
# plymouth-set-default-theme solar
# /usr/libexec/plymouth/plymouth-update-initrd


Troisième topic :

Dégager la cloche système franchement pénible. Deux étapes pour faire mourir cette pourriture communiste :

  • mettre set bell-style none dans /etc/inputrc
  • Empêcher le module kernel pcspkr de se charger. Pour cela éditer /etc/modprobe.d/blacklist.conf et rajouter à la fin :

    # sound drivers
    blacklist pcspkr
    blacklist snd-pcsp



Topic bonus :

Si vous avez fait une réinstall de la partition / pour bénéficier d'ext4, et que vous avez gardé la liste des rpms installés dans votre f10, vous la possibilité de réinstaller les rpms désormais manquants.

En F10 vous avez fait :
$ rpm -qa --queryformat "%{NAME}\n" > /autre/part/rpms-in-f10-oneperline

En F11 vous faites :
$ cp /autre/part/rpms-in-f10-oneperline /tmp
$ rpm -qa --queryformat "%{NAME}\n" > /tmp/rpms-in-f11-oneperline

Supprimer dans la liste des rpms de F11 ceux qui étaient déjà en F10 :

$ for i in `cat rpms-in-f11-oneperline` ; do sed -i rpms-in-f10-oneperline -e "/^${i}\$/d" ; done ;

Installer tous les rpms manquants en une seule fois (n'oubliez pas au préalabe d'avoir installé les repositories supplémentaires, notamment rpmfusion-free et au besoin rpmfusion-nonfree ):

# yum install $(cat rpms-in-f10-oneperline | xargs) | tee -a /tmp/yummed-from-f10

Avec tout ça vous avez protégé vos biens . Les choses se passent.