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

Le skyblog de bochecha

dimanche, janvier 24 2010

Cloture des Rencontres Fedora 12

Les Rencontres Fedora 12 ont eu lieu les 12 et 13 décembre 2009 à la Cité des Sciences et de l'Industrie à Paris.

Avec un peu (qui a dit beaucoup ? :-)) de retard, les slides des conférences et ateliers sont désormais disponibles sur la page de l'événement, chacune dans la section correspondante. Le reportage vidéo, ainsi que les compte-rendus y sont aussi disponibles en bas de page.

La plupart des conférences ont été filmées. Malheureusement, les vidéos ne sont toujours pas disponibles, mais nous espérons qu'elles le seront prochainement.

Les intervenants ont tous accepté de mettre leurs documents sous licence CC-BY-SA. N'hésitez donc pas à les télécharger, les utiliser, vous en inspirer,...

mardi, novembre 24 2009

Ubuntu Party 9.10 à Paris

Voila, maintenant que j'ai bien attiré l'attention de tout le monde avec un titre qui fait du buzz, on va pouvoir passer aux choses sérieuses. :-)

Les 12 et 13 décembre 2009 auront lieu les Rencontres Fedora 12 à la Cité des Sciences et de l'industrie.

Évidemment, vous pourrez amener votre ordinateur pour y installer Fedora 12. Mais vous pourrez surtout venir assister à des conférences passionnantes ou participer à des ateliers incroyables !

Non, l'événement n'est pas réservé aux Fedoristas purs et durs (même si c'est les meilleurs et qu'on les préfère forcément), vous êtes en effet tous les bienvenus. Si si, même vous les Ubunteros. De toutes façons j'étais invité à l'Ubuntu-Party, donc je peux plus vous refuser l'entrée maintenant... Je te remercie pas Didier :-).

Histoire d'essayer de vous donner l'eau à la bouche, nous recevrons des invités prestigieux comme par exemple Grégoire Coustenoble de Mozilla, Michael Scherer de Mandriva-Fr, et Mark Shuttlew... Hein quoi ? Il vient à Paris uniquement le week-end prochain ? Tant pis, on aura aussi Sean Daly des Sugar Labs, William Hoffmann de Red Hat et l'équipe de JeuxLinux.fr. Pas mal hein ?

Pour ma part, j'animerai un atelier « administration plus ou moins avancée ». Évidemment, je suis plus à l'aise avec Fedora/RHEL/CentOS, mais si vous avez envie de participer et utilisez une autre distribution, viendez quand même, on vous fera une petite place :-).

Espérant vous voir nombreux, veuillez agréer, madame, monsieur, l'expression... tout ça...

vendredi, octobre 2 2009

Yay ! \o/

I just received the results: 805009568343075

/me is happly going back to hack :]

samedi, août 15 2009

A git-aware prompt (part2)

It seems I've been doing some unnecessary stuff in my previous post. Once again, when one tries to do something, he should always remember that someone most probably already had the same idea :-)

Someone pointed to me in the comments that Git already provided a way to have a Git-aware prompt in Bash. Here is an attempt to explain how to use it to have the same result as my previous attempt at scripting it.

One would only need to set the following in their ~/.bashrc file:

PS1='[\u@\h \W]$(__git_ps1 " (%s)")\\$ '

This gives you the following prompt:

[mathieu@localhost ~]$
[mathieu@localhost rpmbuild] (master)$

As you can see, when you enter a Git repository, your prompt displays the name of the current branch.

But that's not quite enough. One might want to show the current changes, to help with their workflow. Just add the following in your ~/.bashrc file, right above the previous line:

export GIT_PS1_SHOWDIRTYSTATE=true

Now, your prompt will look like this:

[mathieu@localhost rpmbuild] (master)$ echo "titi" > SPECS/dummy.spec 
[mathieu@localhost rpmbuild] (master*)$ git add SPECS/dummy.spec
[mathieu@localhost rpmbuild] (master+)$ git commit
[mathieu@localhost rpmbuild] (master)$

The above should be pretty self-explainatory, but in case you didn't get it:

  • prompt displays the name of the current branch
  • a file was modified, the prompt displays a « * »
  • the modified file was staged, the « * » becomes a « + »
  • staged file was commited, there are no more changes (either staged or unstaged) in the working dir, prompt goes back to only displaying the branch name.

That's better, but something is still missing compared to what I had written:

[mathieu@localhost rpmbuild] (master)$ touch foobar
[mathieu@localhost rpmbuild] (master)$

That's right, untracked files are not shown on the prompt!

The solution came from a second comment on my previous post. All that is necessary is to add the following in your ~/.bashrc file:

export GIT_PS1_SHOWUNTRACKEDFILES=true

Now, you'll get:

[mathieu@localhost rpmbuild] (master)$ touch foobar
[mathieu@localhost rpmbuild] (master%)$

That's it! The exact same fonctionality as what I had hacked in an ugly way, with only the following 3 lines:

export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
PS1='[\u@\h \W]$(__git_ps1 " (%s)")\\$ '

Nice isn't it? :)

Remark 1: the env vars GIT_PS1_SHOWDIRTYSTATE and GIT_PS1_SHOWUNTRACKEDFILES only need to be set to something not empty. I used « true » because it kinda made sense, but setting them to « iamagitn00bz » would produce the exact same result.

Remark 2: Fedora 11 comes with Git 1.6.2.5 which doesn't support GIT_PS1_SHOWUNTRACKEDFILES in the bash completion script it ships. To make the above work I simply grabbed the file from the Rawhide Git 1.6.4 package. You could alternatively take it in the Git Git repository.

Remark 3: as mentioned in the comments on my previous blog article, there also is the GIT_PS1_SHOWSTASHSTATE env var that can be used to display other things in your prompt. This article was only about replicating the behavior I described before, and this variable is not part of it. But go play with it yourself :)

samedi, août 8 2009

A git-aware prompt

UPDATE: Gitigit in the comment talked about another env var that would show unstaged changes. This article thus contains wrong informations, see the next one to do things properly.

Thanks for pointing me my mistakes Gitigit and Blah! :-)


UPDATE: Blah pointed out in the comments that something already existed, but as I stated, it doesn't quite match my workflow with Git. However, this lead me to think a little and I saw that I didn't understand anything about the difference between staged and unstaged changes :)

After looking at it a bit more, I finally got it, and as such, I updated the below function so that it takes unstaged changes into account.

So once again, thank you blah :-)


I read Peter's post today about how happy he was to have switched to zsh.

Now, this isn't one of those « you're right man, zsh is so much more awesomer » or even « dude, bash can do it too, why did you go to the other side ? » posts.

However, Peter had an incredible idea: display the current git branch in your prompt, as well as whether there are uncommited changes or not.

So I don't really care about what shell I'm using, and bash has at least one huge benefit: it's the default on my distro of choice (and I'm too lazy to change it and learn another one :). But this git thingy, I love it!

Here's what I added to my ~/.bashrc file:

# set the prompt, appending the current git branch (if any)
set_prompt() {
if [ -d ./.git ]; then
GITBRANCH="(\[\033[0;32m\]$(awk -F '/' '{ print $NF }' .git/HEAD)\[\033[0m\]"

if [ $(git diff --exit-code > /dev/null 2>&1; echo $?) -eq 1 ] || [ $(git diff-index --cached --quiet --ignore-submodules HEAD --; echo $?) -eq 1 ]; then
GITBRANCH="$GITBRANCH\[\033[1;31m\]*\[\033[0m\]"
else
GITBRANCH="$GITBRANCH\[\033[0;34m\]-\[\033[0m\]"
fi

if [ "x$(git status | grep Untracked)" != "x" ]; then
GITBRANCH="$GITBRANCH\[\033[1;31m\]+\[\033[0m\])"
else
GITBRANCH="$GITBRANCH\[\033[0;34m\]-\[\033[0m\])"
fi
fi

echo -ne "\[\033[0;34m\][\u@\h \W]\[\033[0m\]${GITBRANCH}\[\033[0;34m\]\\$\[\033[0m\] "
}

export PROMPT_COMMAND='PS1="$(set_prompt)"'

This gives me a very nice (and useful!) prompt:

[mathieu@localhost ~]$

Yeah, not so great... But now let's say I enter a folder which turns out to be a git repository. Name of the current branch appears:

[mathieu@localhost rpmbuild](master--)$

If there are uncommited changes to the tree, then the first green dash after the branch name becomes a red star. Just the same, if there are new untracked files in the tree, the second green dash becomes a red plus.

[mathieu@localhost rpmbuild](master*-)$

[mathieu@localhost rpmbuild](master-+)$

[mathieu@localhost rpmbuild](master*+)$

Hope that can be useful to someone. It certainly is for me :).

dimanche, juillet 12 2009

Back from the LSM

This week I was at LSM aka RMLL.

I held the Fedora booth there, alone, for the whole 5 days.

The event was really nice, I met a lot of people and tried to do my best promoting Fedora (which must not be a lot). My only regret is that... well, being alone on a booth for a week is really tiring ^^'

Thomas, Patrice and Max joined me on Friday. Max gave a talk on the Fedora Foundations. Apparently, it was filmed, so I'll try to get a hand on the video. Thomas was interviewed by the event radio, and the recording is available online (in french).

Logistic was kind of shaky. We had a really hard time accessing the Internet, both at the event and at the dorm. The event also moved on Saturday, as the university that hosted us the 4 previous days was closed. However, we were welcomed by an elephant on the Saturday place:

elephant-1

elephant-2

All in all, I had a great time, even if I would have loved to go to more than 3 conferences. I had to let the booth unattended to go to those 3, but the Ubuntu-Fr and Mandriva-Fr booth people were really helpful, especially Marianne who made some delicious cookies (I managed to let some for the visitors :-D) and Michael, who even promoted Fedora while I was away :-D.

On the Shomyu side, the event was also quit... surprising. I finally met Sonny from the Mozilla community who had contacted me earlier about it. I also got in touch with Julien from SliTaz who expressed his interest in using Shomyu for their community. The aforementioned Mandriva Michaël told me the same, and even invited me to the soon to happen AFPyro (an « apéro » organized by the french Python association), and asked me if I would be interested in presenting Shomyu at the next PyCon :-D

I also talked about it with some Ubuntu-Fr guys. It seems they are trying to build such a tool themselves (but with GoogleMaps instead of OpenLayers / OpenStreetMap, and I sincerely hope we can share some code or even merge the two projects.

I can't believe what's happening with what started as a rant on the french Fedora mailing-list. Lot's of people seem to have heard of it and are willing to use it. I sincerely hope that at least some will give me a hand, as it will not be ready any time soon if I have to go on alone.*hint hint* :-)

jeudi, mai 28 2009

Planet-Libre, voici shomyu. Shomyu, voici le Planet-Libre.

UPDATE: Ce billet est une lâche copie d'un précédent publié pour la première fois le 15 septembre 2008. Venant tout juste de sortir la version 0.6, je me permets de le ressortir afin de présenter shomyu au Planet-Libre sur lequel ce billet n'était pas passé.


La communauté Fedora-fr utilise actuellement frappr pour afficher les localisations des membres et ambassadeurs.

Récemment, nous avons reçu un rappel d'Armelk, demandant à tous les ambassadeurs francophones de souscrire au frappr et de se géoréférencer.

Quelle surprise ! frappr est une application non-libre utilisant flash et ne fonctionnant même pas avec swfdec (je n'ai donc pas pu m'inscrire). Ai-je mentionné que l'application était truffée de pub ?... :-/

C'est pourquoi j'ai commencé à développer un équivalent libre : shomyu (screencast).

Côté technique, shomyu est bâtie avec :

  • Javascript et l'API OpenLayers ainsi que des données géographiques venant d'OpenStreetMap
  • Python / Turbogears pour le back-end, afin que si l'envie prenait à certains de l'intégrer au FAS (on peut toujours réver ^^), cela restera cohérent avec toutes les applis Turbogears que l'on a déjà.

Shomyu est disponible sous licence GPLv3+ et est « Fedora Hosted ». Comme dit en préambule, la version 0.6 sort tout juste du four.

Les commentaires, feed-back, aide, argent ou coups à boire sont les bienvenus :-)

It's alive!

I recently decided to spend more time working on shomyu, my little project that I had neglected for too long. After less than a month since I went back to work, shomyu 0.6 is released.

In this release, shomyu was trimmed down by unbundling all the external Javascript APIs it uses, namely TinyMCE, OpenLayers and OpenStreetMap.

I also wanted to rebase shomyu 0.6 on TurboGears 2, but I ended up not doing it for the following reasons:

  • that's a lot of work, and I was almost sure I wouldn't have this ready in time for FUDCon. I didn't want to be blocked during the hackfest because of WIP on this point.
  • also, some great features are being worked on in TurboGears 2, for example a generic registration module by a GSoC student, which is a planned feature for shomyu.
  • another thing is that it is rather complicated to install TurboGears 2 right now, as packages are still pending inclusion in Fedora. I didn't want my users / co-developers (who knows, someone might join me one day :) to have to go through the extra work of setting up a virtual env and installing TurboGears 2 manually.

As a result, this was postponed for a future milestone, probably post 0.8.

Another significant thing happened in this release: TinyMCE was totally dropped. TinyMCE is rather feature-creep comparing to what shomyu needs. I also tried using Xinha instead of TinyMCE (seemed to be more « community friendly » even if as much feature-creep), but I had a lot of trouble with using it while it was not actually bundled in shomyu (DOM manipulation error as the Xinha API is not necessarily on the same domain as shomyu, this would have been a PITA for 0.7+ releases).

Instead, I decided to use the simple wikimarkup python module. So for now, the editor area is less pretty, but as much powerful. One could think of this as a regression, but it will allow easier future development. Once milestone 0.7 is released, that APIs are fully working and I'm tackling the « prettyness » of shomyu, rich-text Javascript editors will certainly be reconsidered. :)

So, without further ado, go grab shomyu 0.6. Be sure to pay a visit to the documentation on how to run shomyu as it changed a lot since 0.5.

Report any bug you find, and help improving shomyu!

Now is time to look at the next release, as well as start planning for the shomyu hackfest that will take place at FUDCon in Berlin. If you're interested in shomyu, this would be the perfect place to start contributing!

lundi, mai 4 2009

Des live CDs Fedora 11 pour tous !

J'ai écrit il y a peu sur la liste Interlug pour annoncer que l'association Fedora-Fr allait bientôt faire presser des jolis CDs pour Fedora 11.

Vous faites partie d'un LUG qui n'est pas inscrit sur la liste Interlug ? Allez tout de suite rectifier ça. Cette liste permet de coordonner les efforts entre tous les LUGs français.

D'autant que ça veut dire que vous avez sans doute raté mon message sur cette liste :D

Si vous voulez des liveCDs Fedora 11 pressés officiels et tous jolis, contactez moi:

bochecha {le a avec la queue enroulée} fedoraproject {un petit point} org

Voici tout de même les infos que j'avais fait passer sur la liste Interlug (c'est bon, vous l'avez l'adresse là ? :) :

  • le liveCD nous a couté 0,85€ pièce pour Fedora 10, nous espérons en commander plus pour faire baisser le prix cette fois-ci
  • les frais de port (pour les envoyer chez vous) seront à notre charge
  • on ne prend pas de commande en dessous de 10 unités (le rapport valeur / frais de ports devient ridicule)
  • vous avez jusqu'au 12 mai pour me les commander

mercredi, avril 22 2009

Où est l'Open Source ?

Chez nous :-)

RedHat et Georgia Tech ont récemment publié une étude sur le sujet.

L'étude a pour résultat deux cartes interactives, montrant le classement de 75 pays du monde en ce qui concerne l'activité autour du logiciel libre et open source ainsi que l'environnement plus ou moins propice à l'expansion du logiciel libre et open source.

Une grosse surprise (en tous cas pour ma part) : la France est première en terme d'activité, tout particulièrement grâce à une grande adoption dans le secteur public (critère "Government").

A mettre en perspective avec les événements récents...

- page 1 de 3