August 27, 2010

El racó del Ton » English Linux

Rails form_tag

Hi

I know there are a lot of posts about the rails “dangerous” form_tag helper method, but why not another one.

Before saying anything about it, I want to write down the differences between form_tag and form_for (which was the choosen one previously). form_for is provided for updating data models and form_tag is provided for doing the other form operations (search something, change language in a page, etc).

Ok, after this, let’s go to the battle. This was my code

% form_tag :controller => 'pages', :action => 'index' , :method => 'get' do %>
Tags : %= text_field_tag :tags, '', :size => 40 %>
%= submit_tag 'Search' %>
% end %>

and I didn’t got the html code what I wanted to obtain, after googling for a while, I found this post which got me to the right way to see the light. The reason of this problem was that I was not using the right syntax for form_tag, which is

form_tag(url_for_options = {}, options = {}, *parameters_for_url, &block)

so my code became

% form_tag({:controller => 'pages', :action => 'index'} , {:method => 'get'}) do %>
Tags : %= text_field_tag :tags, '', :size => 40 %>
%= submit_tag 'Search' %>
% end %>

and I was happy again :-D

Hope this silly problem helps not to waste your time (I did it for you ;-) )

M.

August 27, 2010 10:21 AM - (Comments)

August 26, 2010

Ricardo Mones

Transpirating Java

One of the joys of my current job is that we're so much people that not all people can be working at the main building. The luckiest ones are, of course, though luck is heavily influenced by your role, of course ;-) The less lucky are even off the site, but still in a real building. Then come the unfortunates which work in at the site but inside a kind of barrack, like me. Despite having air conditioning systems (which we cannot regulate!) you can imagine that a metallic barrack is not the best place to stay after several hours of sun heating.

These days we're perspiring every line of code we write...

August 26, 2010 07:05 AM

August 25, 2010

El racó del Ton » English Linux

Routes in rails

Two days ago, I was solving bugs in my new professional website (not available yet at http://www.miqueloliete.com) when I stared at the screen and noticed how ugly my url was (something/home/home).

In that moment I remembered that I had read something in Agile Development with rails about how to use routes.rb, so I decided to give it a go.

I add to this files these sentences

map.connect 'home/', :controller => 'home', :action => 'home'
map.connect 'about_me/', :controller => 'home', :action => 'about_me'
map.connect 'cv/', :controller => 'home', :action => 'cv'
map.connect 'projects/', :controller => 'home', :action => 'projects'

and ‘home/home’ became ‘home’, ‘home/cv’ became ‘cv’, etc

M.

August 25, 2010 09:27 PM - (Comments)

August 13, 2010

El racó del Ton » English Linux

Ruby Version Manager (RVM)

Hi

I was fighting with my installed different ruby versions and I had heard about rvm, but I didn’t have use it. I decided to do today and I installed it using

gem install rvm

After it I tried installing two different ruby versions but I always obtained the same ruby version (the aptitude installed one). After that and googling a little I noticed (after typing type rvm | head -n1 and doesn’t read “rvm is a function”) that I had forgotten something in my .bashrc file, which was:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

And after that and opened a different konsole I could change my ruby version using ‘rvm use ruby-version’

Cool!!!!!

M.

August 13, 2010 12:26 PM - (Comments)

Kubuntu Lucid Lynx upgrade

Hi people

I have an “old” Fujitsu Siemens amilo laptop and I upgraded my Kubuntu to Lucid Lynx (10.04) to bring the laptop with me in holiday. The thing is that after the process (which was done OK), my laptop got frozen showing a black screen (video card problem, an Intel 82852/855GM).

After googling a lot I found this post which gave me the magic to make my laptop usable again, which is (I don’t know what it does YET.

echo options i915 modeset=1 | sudo tee /etc/modprobe.d/i915-kms.conf
sudo update-initramfs -u

Now my laptop is working fine (I removed all the nvidia packages because somebody said that those packages could do this effect).

Hope this helps to somebody.

M.

August 13, 2010 09:46 AM - (Comments)

August 10, 2010

colin@colino.net

Vacances à vélo de Toulouse à Tosse

Ça faisait longtemps qu’on avait prévu de partir de Toulouse à Tosse à vélo, en suivant d’abord le canal latéral à la Garonne, puis les pistes cyclables du bassin d’Arcachon et enfin la piste cyclable le long de l’Atlantique, aussi appelée Eurovélo n°1.

On est partis le premier Août avec comme seul impératif d’arriver avant le 15 août et on comptait avancer au feeling, en suivant principalement le rythme de Paul. Finalement, nous nous sommes arrêtés avant la fin, à Mios après 320 kilomètres, pour une raison toute bête : je me suis fait une tendinite lors de l’étape la plus dure, celle où l’on avait 16 kilomètres de route entre les deux pistes cyclables. La charge (60 kilos quand même) combinée au stress de la route, au dénivelé et à la pluie m’a fait forcer un peu trop pour une fin d’étape.

On n’a donc fait que cinq étapes sur sept ou huit. Malgré cette petite déception, le voyage valait d’être fait et nous laisse plein de souvenirs !

Voici un résumé en photos.

Dimanche 1er août – Toulouse-Moissac (77 km en 4h30)

Une fois prêts à partir, le départ était connu vu que nous allons assez régulièrement à Gagnac sur Garonne par le même canal. C’est une fois qu’on a dépassé ce point pour arriver sur une partie inconnue de canal qu’on s’est sentis vraiment lancés !

Peu après le pique nique que l’on a fait sur le bord de la piste cyclable (pas tout à fait un bon endroit, il fallait trop surveiller Paul qui n’avait pas la place entre la piste et le canal…) le ciel s’est couvert et nous avons essuyé notre première averse, une légère pluie rafraîchissante – on n’a même pas sortis nos vestes imperméables !

A Montech, on a failli se perdre lors d’une séparation du canal. Hésitant au même endroit que nous, nous avons rencontré une jeune femme à VTT avec sa fille Théa dans une remorque. On a discuté un peu puis nous sommes repartis. Elle venait de Béziers et comptait aller jusqu’aux sables d’Olonne. Son étape du jour était prévue jusqu’à Moissac, ce qu’on trouvait long : nous comptions nous arrêter avant !

Clo et moi cherchions à bivouaquer, mais on n’a trouvé que deux endroits presque convenables mais pas tout à fait (sur l’un d’eux, une voiture stationnée trop près nous laissait penser qu’on ne serait pas assez tranquilles, et sur l’autre, nous étions trop à vue). On a évité de se mettre la pression, se disant qu’au pire le camping de Moissac nous accueillerait… Et au final, on s’est arrêtés au camping de Moissac. Paul a bien aimé le camping, et plus spécialement la réserve inépuisable de bâtons et cailloux qu’il représente. Il a eu un peu de mal à s’endormir dans la tente vu qu’il a commencé par sortir de sa petite tente popup par farfouiller partout, mais il a fini par réussir lorsqu’on l’a rejoint.

Lundi 2 août – Moissac-Lamagistère (27 km en 1h30)

On se réveille sous une pluie qui tape sur la tente et ne s’arrête pas. Petit déjeuner sous la tente, puis après une certaine attente, comme Paul n’en pouvait plus d’être calfeutré dans la tente, on décide de plier. Je range la tente dans les sanitaires pour essayer tant bien que mal de ne pas tremper l’intérieur, tandis que Clo et Paul discutent avec Théa et sa maman que nous avons retrouvé par hasard. Puis nous partons sous l’eau, Paul dans sa remorque bulle, nous sous nos K-Ways. A cet endroit de la piste, nous croisons et doublons de nombreux pélerins de St Jacques de Compostelle, à pied ou à vélo. Les marcheurs sont rendus bossus par leur sac à dos sous l’imper. Tous sont souriants, c’est très agréable. Un couple d’Américains à vélo, pélerins avec une coquille St Jacques sur la sacoche de guidon, nous double plusieurs fois et nous les redoublons plusieurs fois, en fonction de leurs arrêts et des nôtres, et l’on s’entre-motive à chaque fois !

Peu avant midi, comme il pleut toujours, on sort de la piste à Lamagistère et nous mettons en quête d’un hôtel histoire de pouvoir manger au sec, prendre une douche chaude et attendre un temps plus clément. On s’arrête à l’Auberge de la rue de la Gare où les propriétaires très sympathiques nous laissent ranger les vélos dans le garage. On fait un peu l’attraction du bar, trempés comme nous sommes, en attendant avec un café et un chocolat chaud que la femme de chambre prépare notre chambre. Paul (qui lui est tout sec, petit veinard) goûte avec joie au chocolat chaud !

Cela nous fait donc une petite étape. Il a plu jusqu’à 15 heures passées, nous sommes restés à l’Auberge pendant ce temps et y avons repris des forces (douche chaude, repas chaud puis sieste dans le lit douillet). Au réveil on a profité de l’arrivée du soleil pour nous promener à Lamagistère, qui est un petit village très fleuri et très agréable.

Paul y a ramassé des bâtons, des cailloux, il a fait des caresses à un chat très gentil, et a même pu sauter dans les grosses flaques avec ses belles bottes jaunes !

Pour que Paul arrête de sortir de sa petite tente popup que l’on avait installé dans la chambre (il n’y avait pas de lit bébé), on a décidé de zipper la moustiquaire, ce qui l’a empêché d’avoir envie de sortir tout le temps et l’a aidé à s’endormir vite. Finalement on gardera cette méthode tout au long du voyage : en fait ça le rassure d’être entouré, comme dans son lit à barreaux.

Le lendemain matin nous nous sommes réveillés sous le soleil et sommes repartis fringuants !

Mardi 3 août – Lamagistère-Lagruère (69km en 4h10)

Une étape tranquille où le soleil était enfin présent, mais pas gênant grâce à l’ombrage des arbres. Les kilomètres défilent tous seuls comme le premier jour. On s’en rend compte sans même regarder nos compteurs : à chaque pont, un panneau indique le point kilométrique, le nom du pont et le nom de la commune dont il dépend. On reconnait les noms qu’on a sur notre fiche planificative.

Au pique-nique du midi, nous nous sommes arrêtés en contrebas de la piste, à la bordure d’un champ de jeunes arbres. C’était beaucoup plus agréable pour Paul que le bord de la piste, car il a pu courir un peu et bouger sans qu’on aie peur pour lui. On avait aussi assez de place pour étaler la tente et la faire sécher avant d’en avoir besoin…

Puis on repart pour la sieste de Paul, et l’on a pu rouler tranquillement la majeure partie de l’après-midi. C’est incroyable comme le temps passe vite alors qu’on pédale en discutant de temps en temps…

On s’arrête assez tôt et campons au camping municipal de Lagruère après n’avoir, de nouveau, pas trouvé d’endroit pour bivouaquer. Soit on est trop difficiles, soit on ne va pas voir assez loin, soit on n’ose pas assez… Mais dans tous les cas, c’est pas évident de bivouaquer !

Le camping de Lagruère a l’avantage de ne pas nous dérouter beaucoup, étant situé à 5 mètres en contrebas de la piste cyclable du canal. En face, il y avait quelques jeux pour enfants où Paul a pu se défouler. Paul s’est endormi très rapidement, il semble habitué et en confiance, enfin sûr qu’on le rejoindra dans la tente pour dormir !

Quant à nous, c’était la première nuit où nos vélos dormaient dehors sans être attachés à un point fixe (au camping de Moissac, il y avait un poteau métallique). On a un peu stressé sur le sujet puis nous nous sommes dit qu’il faudrait pas de chance pour que quelqu’un nous vole nos vélos attachés tête-bêche avec une remorque sans nous réveiller !

Mercredi 4 août – Lagruère-Villandraut (78km en 4h43)

C’est déjà la dernière étape prévue sur le canal latéral. On y croit à peine, nous qui pensions aller presque deux fois moins vite ! Et comme prévu, nous quittons ce jour là notre canal à Castets-en-Dorthe après une quarantaine de kilomètres, peu après le pique nique sur une espèce de base de loisirs où il y avait profusion de jeux pour Paul. Nous y avons rencontré une famille de cyclistes super bien équipés en vacances. Le père roulait en tricycle couché HP Velotechnik et tractait une remorque bagagère ; la mère à vélo couché, tractait un tricycle Hase dont la roue avant était amovible, tricycle occupé par leur fille d’environ 8 ans. Enfin, leur fils roulait lui aussi à vélo couché. Chouette équipage dont c’était la première randonnée à quatre (l’année d’avant, ils étaient partis à trois).

A la dernière écluse, le canal se jette dans la Garonne et nous sommes  lâchés sur la route. C’est là qu’il faut rejoindre la piste cyclable Mios-Bazas à Roaillan, en 16 kilomètres de route via Langon (qui n’est pas immédiatement fléché).

La différence est flagrante avec la piste cyclable, d’autant qu’il pleut (encore !) par averses successives. Les voitures sont nombreuses et nous doublent près et vite – les routes que l’on prend sont limitées à 90… ce qui tend à nous stresser un peu. Y’en a même un qui nous a klaxonné pour le plaisir. Contrairement au canal, il y a du dénivelé et quand ça grimpe, je sens beaucoup plus les 60 kilos de charge que sur le plat.

Bêtement, on force un peu pour essayer d’aller un peu plus vite vis-à-vis des voitures (alors que la différence de vitesse est telle que ça ne sert à rien – vu de 90km/h, un cycliste qui se traîne peinard à 8km/h ou qui force à 11km/h, c’est difficile de distinguer), et je me remarque in petto que je suis un peu à fond…

On se perd un peu, on passe dans une zone industrielle puis devant une entrée d’autoroute, et d’autres endroits similairement riants… Puis grâce à une vieille dame à vélo, on trouve Roaillan ; et à Roaillan où l’on voulait s’arrêter, on apprend par l’épicière du coin qu’il n’y a rien pour dormir et que le mieux est d’aller à Le Nizan (à 8km). L’épicière nous montre où retrouver la piste cyclable et on se retrouve enfin sur un endroit calme et agréable !

Hélas à Le Nizan, les quelques chambres d’hôtes sont complètes, et on nous conseille d’aller jusqu’à Villandraut (à 4km) où il y a des campings. Lorsqu’on arrive à Villandraut après quatre kilomètres de douce descente sur laquelle on a pu rouler à une vitesse indécente (27km/h !), on est claqués, mais bien accueillis par le gérant du camping, très chaleureux et sympathique, et le soir, on se remet avec (pour changer de nos pâtes à toutes les sauces) de bons croques-monsieurs avec des frites !

Jeudi 5 août – Villandraut-Mios (67 km en 4h30)

On a rencontré quelques cyclotouristes au camping, qui allaient dans l’autre sens que nous. Ils nous ont dit que la piste cyclable qui nous attendait était une véritable autoroute, et c’est vrai ! Elle va tout droit (en faux-plat montant, hélas ! et c’est sans doute pour ça qu’ils l’ont prise pour une autoroute, dans leur sens), et ce qui nous change le plus du canal, c’est qu’on est entouré de forêt de chaque côté de la piste. C’est tellement droit qu’on a parfois une illusion d’optique et l’impression qu’à l’horizon, ça descend ou ça tourne ; mais en fait, non, ça continue tout droit en joli faux-plat montant !

On se ressent de l’étape de la veille : Clo a une courbature à la cuisse gauche, qui finit par passer avec l’échauffement. Quant à moi, j’ai un peu mal au genou. On avance moins vite que d’habitude, du coup, 15 ou 16km/h au lieu de 19 ou 20.

Après avoir essayé le conseil des cyclotouristes du camping concernant la “super base de loisirs d’Hostens qui est trop chouette”, on a décidé qu’elle n’était pas si chouette pour nous (trop pleine de gens) et on a déjeuné dans les fougères dans la forêt. Paul est même parti s’aventurer dedans, j’étais très fier de lui (et Clo aussi). Je crois qu’il a pris plus confiance en lui-même pendant ces vacances…

Sur l’après-midi, mon genou me fait de plus en plus mal et ça me brûle à chaque relance, au point que je ne pédale presque plus que de la jambe gauche : même clipper la pédale auto finit par faire mal.

Lorsqu’on arrive au camping à Mios, après être passé dans une pharmacie où l’on m’a conseillé du Cliptol, on décide donc de faire une pause le lendemain le temps que mon genou se calme.

Paul est bien habitué au camping maintenant, il a juste peur des douches, qui ont souvent tendance à pleuvoir dru de très haut… Il s’endort très vite.

Vendredi 6 août, la démission du genou

Au repos et à froid, globalement, ça ne va pas mieux du côté de mon genou qui me fait mal quand je plie la jambe. On passe une journée tranquille au rythme de Paul, qui fait même sa sieste dans la tente alors qu’on y croyait qu’à moitié. Il a pu jouer dans les jeux d’à côté (bien qu’il en manquait la moitié) et aussi avec notre petit voisin de camping, Nico, qui avait à peu près quatre ans et la langue bien pendue !

Clo et Paul ont même pu se baigner dans l’Eyre qui bordait le camping, et Paul s’est bien amusé à faire des pâtés et dans l’eau de la rivière.

Finalement, le vendredi soir, on a décidé que je n’allais pas pouvoir repartir le lendemain et que ce n’était pas la peine de passer le week-end au camping (c’est quand même pas pratique de vivre par terre avec une jambe raide), et on a appelé Mondial Assistance en la personne du père de Clo.

Samedi 7 août, le rapatriement sanitaire

Le père de Clo est donc arrivé samedi matin, pendant qu’on rangeait tout et que je démontais les vélos afin d’essayer de ne faire qu’un voyage (étant à environ 100km de Tosse, c’était mieux pour Philippe !). C’est difficile de faire entrer quatre personnes plus deux vélos, une remorque et les bagages dans une voiture, même dans un grand monospace, mais on a réussi !

Après avoir acheté un siège bébé pour Paul, puis déjeuné à la rôtisserie de Mios un très bon poulet rôti, nous sommes repartis vers Tosse par les petites routes, afin d’éviter la masse de touristes prévue par Bison Futé sur l’autoroute, avec un petit pincement au coeur à chaque fois que l’on longeait ou croisait l’Eurovélo n°1…

C’est le moment qu’a choisi Paul pour vomir dans son siège auto tout neuf, suivi juste après, pendant que l’on nettoyait le tout, du moment qu’a choisi la batterie de la voiture pour rendre l’âme. Philippe s’est donc mis en quête d’un garagiste, qui heureusement se situait à moins d’un kilomètre du lieu de notre panne ! Ce petit incident aura l’avantage de rendre la dernière étape inoubliable elle aussi…

Au final, malgré la déception de n’avoir pas pu finir alors qu’on était super bien partis (il ne nous restait que deux étapes ou trois ! mais le plus décevant c’est qu’on n’aura sans doute pas l’occasion de refaire un tel voyage avant un certain temps), on est vraiment contents d’avoir fait ce voyage. On a surmonté des difficultés imprévues (surtout vis à vis du temps, il nous a quand même plu sur la figure à un moment ou un autre trois jours sur cinq), on a réussi à s’adapter à la vie au plein air avec un petit Paul qui a été adorable, très compréhensif et curieux de tout, on s’est dépassé sans souffrir (au début !) avec de longues étapes de 70km (on prévoyait 30 ou 40 par jour, au début…)

La prochaine fois on se forcera à faire des étapes plus courtes, ou à les intercaler de journées-visites pour se changer les muscles !

Maintenant, on se repose tranquillement à Tosse, et j’attends patiemment que mon tendon se remette avant de remonter sur un vélo. C’est très frustrant surtout qu’il y a plein de cyclistes partout ici ; mais je vais éviter de déconner pour ne pas me retrouver avec un truc qui traîne pendant six mois.

Toutes les photos sont sur notre galerie: Vacances à vélo Toulouse-Tosse.

August 10, 2010 06:43 PM - (Comments)

August 04, 2010

Holger Berndt's Blog

De-Mail: Sinn, Unsinn und Missverständnisse

Da De-Mail in letzter Zeit verstärkt durch die Presse geht, und sowohl Pressemeldungen als auch Diskussionen darüber von vielen Missverständnissen geprägt sind, möchte ich ein paar Gedanken zu dem Thema äußern. 

Was ist De-Mail?

De-Mail ist ein Projekt der deutschen Bundesregierung in Zusammenarbeit mit Service Providern, um einen Beitrag dazu zu liefern, Online-Kommunikation sicherer zu machen. Man beachte den Komparativ in diesem Satz - absolute Sicherheit gibt es nicht, sondern es gibt immer nur Sicherheit gegen ein bestimmtes Angriffsszenario.

Bei der Bewertung von De-Mail sollte man zwischen dem Konzept an sich, der Implementierung dieses Konzeptes und der juristischen Würdigung unterscheiden. Ich möchte hier nur auf das Konzept an sich eingehen.

Wie ist die aktuelle Situation bei E-Mail?

Die beiden wichtigsten Unterschiede betreffen die Datensicherheit und die Zustellungssicherheit.

E-Mails sind wie Postkarten. Jeder, der sie in die Finger bekommt, kann sie lesen, verändern oder sogar verschwinden lassen. Der Weg, den eine Mail durch das Netz nimmt, ist vom Absender nicht beeinflussbar. Außerdem kann prinzipiell jeder eine E-Mail fälschen, also von einem beliebigen Absender an einen beliebigen Empfänger schicken. E-Mail ist damit ein extrem unsicheres Medium.

Es existieren bereits seit langem Methoden, eine E-Mail effektiv zu verschlüsseln und durch eine digitale Unterschrift als "echt" und "unverändert" zu kennzeichnen. Da allerdings das Netz zwischen Sender und Empfänger nicht vertrauenswürdig ist, muss dies Verschlüsselung bzw Signatur direkt beim Absender erfolgen, und Entschlüsselung bzw Überprüfung der Signatur beim Empfänger. Diese Technik wird auch End-zu-End-Verschlüsselung genannt.

Dieses System ist zwar mit aktuellen Mailprogrammen relativ leicht anzuwenden, konnte sich aber leider trotzdem nicht durchsetzen - trotz Förderung von z.B. dem BSI.

Aber selbst, wenn End-zu-End-Verschlüsselung sich durchsetzen würde, könnte damit nicht das Problem der Zustellungssicherheit gelöst werden. Die einzige Möglichkeit für einen Absender einer E-Mail, sich sicher zu sein, dass seine Mail auch angekommen ist, wäre, dass der Empfänger freiwillig eine signierte Empfangsbestätigung zurückschickt. Dieses System basiert also inhärent auf dem Wohlwollen des Empfängers. Ein Äquivalent zu einem (Einwurf-)Einschreiben ist damit nicht umsetzbar. Was nun, wenn ich meinen Mobilfunk-Vertrag fristgerecht kündigen will, aber der Anbieter behauptet, nie eine Kündigung erhalten zu haben? E-Mail ist in dem Fall nicht benutzbar.


Was macht De-Mail nun anders?

De-Mail geht von der Beobachtung aus, dass End-zu-End Verschlüsselung aufgrund des Mehraufwandes bei Sender und Empfänger keine breite Akzeptanz findet. Man baut deshalb ein in sich geschlossenes, vertrauenswürdiges Netz auf, in dem die Nachrichten signiert und verschlüsselt weitergereicht werden. Der Anwender authentifiziert sich also beim Server, und schickt dann seine Nachrichten (bis auf normale Transportverschlüsselung) unverschlüsselt an selbigen. Der Server verschlüsselt und signiert die Nachricht, und leitet sie an den Server des Empfängers weiter. Wenn der Empfänger seine Nachrichten abholen will, entschlüsselt der Server des Empfängers die Nachricht, und reicht sie (bis auf normale Transportverschlüsselung) unverschlüsselt an den Empfänger weiter.

Was wurde also gewonnen? Während früher die Nachricht völlig ungesichert durch irgend welche (eventuell feindlichen) Netze ging, wandert sie bei De-Mail gesichert durch das Netz - und zwar ohne Mehraufwand beim Endnutzer. Es gibt nur noch zwei Stellen, an denen die Nachricht prinzipiell einsehbar und veränderbar ist: An der Schnittstelle ins De-Mail Netz, und aus ihm heraus, also bei den Anbietern von Sender und Empfänger. Diese Anbieter sind aber jetzt nicht mehr irgendwelche beliebigen anonymen Administratoren, sondern Betreiber, die aufwändige Zertifizierungs- und Kontrollprozesse durchlaufen mussten, um überhaupt am De-Mail Netz teilnehmen zu dürfen.

Das ist ohne Zweifel schon mal eine Verbesserung. Was aber, wenn ich meinem Provider und/oder dem Zertifikator (also dem Staat) nicht vertrauen will - wenn ich also noch mehr Datensicherheit brauche? Nun, wenn man niemandem vertrauen will, kommt man um End-zu-End Verschlüsselung nicht herum. Das ist aber keine Einschränkung von De-Mail - zusätzliche End-zu-End-Verschlüsselung bleibt weiterhin möglich, und ist bei De-Mail auch explizit vorgesehen (inklusive Infrastruktur z.B. zum Schlüsseltausch).

Wie siehts bei der Zustellungssicherheit aus? Wie oben beschrieben, ist diese im bisherigen E-Mail Netz nicht umsetzbar. Im abgeschlossenen De-Mail Netz hingegen kann die Zustellung garantiert werden, inklusive signierter Zustellberichte. Man hat also effektiv ein elektronisches Einschreiben. Genau genommen hat man sogar noch mehr, denn man kann sogar den Inhalt der Nachricht, die man versendet hat, belegen (bei Analog-Post wäre das vergleichbar mit der Beauftragung eines Gerichtsvollziehers). Der Mobilfunkanbieter hat nun keine Chance mehr, zu behaupten, meine Kündigung wäre nicht rechtzeitig angekommen. Ich habe also selbst dann einen Netto-Gewinn, wenn ich Verschlüsselung/Signatur selbst mache.

Fazit

Konzeptionell finde ich De-Mail sehr interessant, eine Empfehlung für oder gegen eine Registrierung kann ich aber nicht aussprechen. Dazu müssen neben dem Konzept auch die technische Umsetzung sowie die rechtliche Würdigung akzeptabel sein, und beide Punkte kann ich momentan nicht beurteilen. Noch habe ich keine De-Mail Adresse, und ich weiss auch noch nicht, ob ich mir eine holen werde.

August 04, 2010 10:20 PM

El racó del Ton » English Linux

Git & Debian Etch

Hi

If you try to initialize a public git repository with an existing one in Debian Etch, you will obtain this message:

$ mkdir public-repo
$ cd public-repo/
$ git --bare init --shared
git: 'init' is not a git-command

The most commonly used git commands are:
add Add files to the index file
apply Apply patch on a git index file and a work tree
archive Creates a archive of the files in the named tree
bisect Find the change that introduced a bug
branch List, create, or delete branches.
checkout Checkout and switch to a branch
cherry-pick Apply the change introduced by an existing commit
clone Clones a repository
commit Record your changes
diff Show changes between commits, commit and working tree, etc
fetch Download objects and a head from another repository
grep Print lines matching a pattern
init-db Creates an empty git repository
log Show commit logs
merge Grand Unified Merge Driver
mv Move or rename a file, directory or symlink
prune Prunes all unreachable objects from the object database
pull Pull and merge from another repository or a local branch
push Update remote refs along with associated objects
rebase Rebase local commits to a new head
reset Reset current HEAD to the specified state
revert Revert an existing commit
rm Remove files from the working tree and from the index
show Show one commit with difference it introduces
show-branch Show branches and their commits
status Show working tree status
tag Create a tag object signed with GPG
verify-tag Check the GPG signature of tag
(use 'git help -a' to get a list of all installed git commands)

This is because the git version which is in Debian Etch is too old (current: v1.7.2.1, etc: v1.4.4.4) and this command is not included in it. The first thing you have to do, if you can, is uninstall this git version and install a newer one, but if you can’t do it, this is the workaround I did.

  1. Create an empty git repo in a machine with a newer git version using git --bare init --shared.
  2. Copy the content of this repo in your public repo.
  3. Copy your local project in the machine with the too old git version
  4. Execute the command git --bare fetch $PATH_TO_LOCAL_COPY master:master
  5. Voila

The next step will be git clone user@server:/path/to/public/repo/.

Hope this helps

M.

August 04, 2010 10:08 PM - (Comments)

Ricardo Mones

Total time: 5 minutes 48 seconds

This is how long takes a deploy at localhost... when your work's laptop is a underpowered five year's old technology. That's probably not even true, as the time of marketing is usually way in the future from the time the technology does exist and is usable.

Obviously it's not all hardware's fault, the enterprise mandated heap of crap^W^W^Wstandard operating environment which runs on top of it does it's job by eating around a third of the 2 GB of total memory. Put a local Oracle and a couple of JVMs (eclipse and the application server) and you'll soon be swapping to disk.

I'm pretty tired of all this currently. I my last week vacation was canceled because of the project I had been unassigned from (and now reassigned again), and I really needed it. At least September will be better.

August 04, 2010 08:36 AM

August 03, 2010

El racó del Ton » English Linux

Netbeans and Git

When I started to use Netbeans for coding with Ruby and Rails, I tried to use svn with it and it was a mess because I don’t know why yet I was not able to do commits from Netbeans (I used to do them from command line).

Since I use git instead of svn as my revision control system I have to say that I’m working with it and Netbeans since the first day I started using Git.

Cool

M.

August 03, 2010 08:59 PM - (Comments)

August 01, 2010

El racó del Ton » English Linux

Git I

After one of my Rails group meetings and all the great things somebody explained me about this distributed revision control system, I decided to give it a go and I started reading the Scott Chacon’s tutorial in order to start using git in one of my personal projects (my own website still in development).

I have to say that, after the three or four things I have done until now with it, git has surprised me a lot. It’s really fast, clear and it covers all my needs in control system tasks. I am svn user at work and I have to say that git is extremely faster than svn in merges (almost in the two I have done using git instead of svn).

Now I have only a repository in my computer but I supose I will have a central repository in the shared server I have with some friends of mine just in case my computer decides to pass away.

This post is named Git I (I don’t know if I will write more Git related posts) just in case :-)

M.

August 01, 2010 08:58 PM - (Comments)

July 06, 2010

iwkse Alarm Clock

Git: basic commands

With people who have always used cvs or svn, git may looks confusing at first place. It's just a first-day impression!

Let's go.


Cloning a repository

While using cvs or svn we aren't aware of this word..cloning, right because in such environments this word doesn't make sense. Doing a checkout is different from doing a clonation.
As we saw in the git overview pictures, the structure of the repository is exactly the same
on the server and the clients. That's why we talk about cloning. While doing a clonation you get exactly the server's structure and than you can work on local without any needs
to ping the server apart from mirroring the changes. This is not possible with cvs or svn, because a command as commit, requires a server's connection.

I'm using here as example, the claws mail git repository of Holger (thanks for silently agree ;-) ). Be aware this is not the official claws mail repository, since officially it only uses cvs.

git clone http://github.com/hb/claws-mail
This is basically what you would do with cvs on the official repository with:
export CVS_RSH=ssh
cvs -z3 -d:pserver:anonymous@claws-mail.org:/ co -r gtk2 claws


Adding files

Let's say you want to add files to the repository, and keep track of them with git, you'd need to:
$ git add configure.ac
$ git add *.c
$ git add README Changelog


Committing

Once you added files or modified them, you'd want to commit changes on the local database with some of these:
$ git commit main.c
$ git commit -a
$ git commit -m "file README added" README


The -a option is for committing all changes.
If the -m option for the comment is omitted, this means the default editor will be opened to add a new comment.
Another useful option for commit is the --amend one.
If you do something wrong with your commit, like missing a file or a typo in the comment, using this option allows you to redo the operation and the commit will refer to the same already committed.

Instead if you want to reset changes you did with a file, you need to use the checkout command (which is commonly used with branches):
$ git checkout -- file_i_messed_up

Status

This is another interesting command which let you see what's going on and gives you hints about what to do:
$ git status


Diff

$ git diff
$ git diff-files
$ git diff-tree
$ git diff-index


Log
$ git log
That's to see cronology of commits, there's also a graphic tool not given by default called gitk which requires tk libraries.

Reset
If there's a wrong add of a file it can be removed with:
$git reset HEAD file_to_remove

As you can see here, HEAD, it's just a pointer to the current selected branch. I'll talk another time about git branches.

Fetch
It updates the local database with something else.
Git calls the remote repository, origin so with:
$ git fetch origin
looks like cvs up or svn up. The origin can be omitted since it's implicit, but i added to to show you can have options.

Pull
$ git pull
this works as a couple of commands, the fetch and the merge one(i'll talk about this together with branches).

Push
That's similar to cvs commit or svn commit.
$ git push origin master
Here i'm pushing differences on the remote database (origin) from the local database(master).
Master is so called as the default branch created in git.

Tag
list tags:
$ git tag
Creating one:
$ git tag my_new_tagv2.1.1

All these commands can be used with a double syntax as git command or git-command

July 06, 2010 08:54 PM - (Comments)

July 05, 2010

iwkse Alarm Clock

Git: Basic setup

Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates.
Apart from this tool, it's still possible for most fo the configuration variables to set git environment variables in places as /etc/profile, ~/.bashrc ecc..
These variables can be stored in three different places:





Your identity
$ git config --global user.name "Bob Dobbs"
$ git config --global user.email bdobbs@subgenius.org



In the same way with using environment variables:
$ cat EOF >> ~/.bashrc
> export GIT_AUTHOR_NAME='Bob Dobbs'
> export GIT_COMMITTER_NAME=Bobby
> export GIT_AUTHOR_EMAIL=bdobbs@subgenius.org
> export GIT_COMMITTER_EMAIL=bdobbs@subgenius.org
EOF




Your editor
By default git uses the one used by default in the system, to change it:
$ git config --global core.editor vim


In the same way with using environment variable:
$ echo "export GIT_EDITOR=vim" >> ~/.bashrc



Your diff tool
Git accepts kdiff3, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff, ecmerge, and opendiff as valid merge tools
$ git config --global merge.tool vimdiff


Checking your settings
$ git config --list or a specific field with $ git config user.name


Getting help
$ git help <verb>
$ git --help <verb>
$ man git-<verb>

Using a proxy
Instead of establish a direct connection to the remote server is possible to set a proxy. Check the gitproxy-socat which wraps socat to allow git through a proxy:
$ git config --global core.gitProxy gitproxy-socat
In the same way with using environment variable:
$ echo "export GIT_PROXY_COMMAND=gitproxy-socat" >> ~/.bashrc


Shared repository
$ git config --global core.sharedRepository devel
When group (or true), the repository is made shareable between several users in a group (making sure all the files and objects are group-writable).
When all (or world or everybody), the repository will be readable by all users, additionally to being group-shareable. When umask (or false), git will use permissions reported by umask.
When 0xxx, where 0xxx is an octal number, files in the repository will have this mode value. 0xxx will override user´s umask value, and thus, users with a safe umask (0077) can use this option.
Examples: 0660 is equivalent to group. 0640 is a repository that is group-readable but not group-writable.


Excluding files
In addiction to .gitignore (within the directory) and .git/info/exclude it's also possible to use
$ git config --global core.excludefile pattern_file


Coloring diff
$ git config --global color.diff true

July 05, 2010 12:29 PM - (Comments)

July 04, 2010

iwkse Alarm Clock

Git: A Git overview

Git is DVCS (distributed version control system) which acts similarly as Mercurial, Bazaar or Darcs.
CVS or Subversion are CVCS (centralized version control system) and the major difference between them is clear in these pictures:



CVCS structure:


With CVCS everything is stored on the server and if that server goes down for an hour, then during that hour nobody can collaborate at all or save versioned changes to anything they’re working on.
If the hard disk the central database is on becomes corrupted, and proper backups haven’t been kept, you lose absolutely everything the entire history of the project except whatever single snapshots people happen to have on their local machines.



DCVS structure:



In DCVS clients don’t just check out the latest snapshot of the files: they fully mirror the repository. Thus if any server dies, and these systems were collaborating via it, any of the client repositories can be copied back up to the server to restore it. Every checkout is really a full backup of all the data.

So Git thinks about its data in a different way than any other VCS (Subversion and friends included). Conceptually, most other systems store information as a list of file-based changes while Git thinks of its data more like a set of snapshots of a mini filesystem. Every time you commit, or save the state of your project in Git, it basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot. This also means most operations in Git only need local files and resources to operate without any network latency overhead that's why most operations seem almost instantaneous.
With CVS or Subversion you can edit files locally, but you can't commit changes to your database (because it's just on the server).

Git has special states for the files which are:





July 04, 2010 06:28 AM - (Comments)

June 20, 2010

colin@colino.net

Week-end camping sur le canal du midi

À ce qu’on dirait, je ne blogue plus que mes week-ends !

Avec Clo, on a en projet d’aller, cet été, en vacances chez son père. Mais cette fois au lieu d’y aller par l’autoroute, on compte faire ce trajet le long du canal latéral de Garonne, à vélo, avec une tente, des sacoches et Paul dans sa remorque.

Du coup, on a pensé qu’il serait bien de faire un test avant le vrai départ, et on a décidé de faire une étape et de dormir au camping pour voir ce que ça donne.

On en a profité pour inviter Yann, Betty et Chloé, et on est partis au camping à Ayguesvives : c’est seulement à 23 kilomètres donc ça fait une petite étape, mais celui que j’avais repéré à 35 kilomètres était fermé.

Quelques photos :

Le vélo de Clo avec 8 kilos de sacoches.

Les enfants prêts à partir !

On a roulé plutôt cool, mais une fois arrivés, on avait encore la pêche pour rouler plus. On a attendu sur notre emplacement de camping l’arrivée des tentes, prévues avec Betty qui travaillait et qui nous a rejoint en voiture.

C’est là qu’il a commencé à pleuvoir. On a rangé les mômes à l’abri dans la remorque, et nous avons sorti nos vêtements imperméables ! Betty est arrivée,on a monté leur grande tente, puis lors d’une éclaircie on a monté la nôtre.

L’emplacement

Les enfants

Et notre tente !

Entre chaque averse, on est sortis gaiement patauger dans la gadoue

La gadoue

Et les enfants ont adoré aller découvrir les environs, et spécifiquement le petit chemin caché derrière le camping le long du canal. Ils y découvert pleins d’escargots, de limaces et de belles fleurs.

Découverte d’escargots

Paul était super content d’avoir sa petite tente dans la nôtre.

Coucou !

Ça ne l’a pas empêché de ne pas vouloir dormir tout seul le soir. Du coup ça a été la fête, il s’est finalement endormi lorsqu’on a été tous les deux avec lui (avant, il est venu partager la fête…) vers 23 heures !

Grâce à ça on a eu droit à une grasse matinée jusqu’à, ooh, au moins 7h50 !

Câlin-bib du matin

Petit déj. Vous avez vu ? Du soleil !

Et le dimanche, on a eu de la chance et le temps nous a souri. Il a fait beau toute la journée ! Les enfants ont jardiné dans les graviers de l’allée, ils ont joué dans les flaques et se sont bien amusés.

Jardinage

Euh, mais qu’est-ce que c’est cette photo.

Comme Paul avait trop dormi la nuit passée, il n’a pas non plus voulu faire la sieste dans la tente. Quand je suis allé le chercher après trois quarts d’heure de rigolades et appels variés (“Papa !” “Maman !”), les choses n’étaient plus du tout à l’endroit où je les avais laissées : par exemple nos casque de vélo étaient dans sa tente, ainsi que le manuel de montage de la tente.

Mais comme nous le supposions, Paul n’est pas Superman, et il a quand même besoin de sommeil. Ça s’est vu lorsque qu’il s’est endormi dans l’herbe, sur le pull de Clo :

Paul dort

Inconfortable, cette position ?

Non non, très confortable :-)

June 20, 2010 07:35 PM - (Comments)

June 04, 2010

breviary stuff

Recent Publications

John E. Archer – 'By a Flash and a Scare', Arson, Animal Maiming, and Poaching in East Anglia 1815-1870 Breviary Stuff Publications, ISBN 978-0-9564827-1-6

‘By a Flash and a Scare’ illuminates the darker side of rural life in the nineteenth century. Flashpoints such as the Swing riots, Tolpuddle, and the New Poor Law riots have long attracted the attention of historians, but here John E. Archer focuses on the persistent war waged in the countryside during the 1800s, analysing the prevailing climate of unrest, discontent, and desperation.

In this detailed and scholarly study, based on intensive research among the local records of Norfolk and Suffolk, Dr Archer identifies and examines the three most serious crimes of protest in the countryside — arson, animal maiming and poaching. He shows how rural society in East Anglia was shaped by terror and oppression in equal measure. Social crime and covert protest were an integral part of the ordinary life of the rural poor. They did not protest infrequently, they protested all the time. Read more…

Roger Ball – Tolpuddle And Swing, The Flea And The Elephant
Bristol Radical Pamphleteer #12

In 1834, six Dorset farm labourers were tried and condemned to transportation to Australia for joining an early Trade Union. Since then the 'Tolpuddle Martyrs' have become an iconic part of modern British History. Three years before the events in Tolpuddle, much of rural England was rocked with a massive uprising of farm labourers known as the 'Swing Riots'. This pamphlet analyses why 'Tolpuddle' has taken its place in the popular memory and the far more significant events of 'Swing' have been distorted and forgotten. Read more…

Andrea Button – Bristol's White Slave Trade, Indentured and Enforced Labour In The 17th Century
Bristol Radical Pamphleteer #13

Bristol’s role as a supplier of labour to the American and West Indian colonies in the eighteenth century is associated with the African Slave Trade however, this trade was not officially open to the Bristol merchants until 1698. The indentured white servant system, operated in Bristol during the seventeenth century, were used by merchants to meet demand for labour in Britain’s new colonies until the Bristol merchants were legally able to compete in the lucrative transatlantic trade. This pamphlet reveals the extent of this ‘white slavery’ and its links to Bristol. Read more…

No Quarter 5

Includes A Somali Pirate Story by Jordan Zinovich (with Hans Plomp), an interview with Gabriel Kuhn, author of Life Under the Jolly Roger, Reflections on the Golden Age of Piracy, Anarchist Commune at Nootka in 1911? by Larry Gambourne, A Couple More Things About New Hazelton by David Tighe, John Oswald: Atheist, Vegetarian, Revolutionary by N. N., Somali Pirates by Peter Lamborn Wilson, book reviews, and a reading list, all interspersed by some nice black and white imagery. Read more…

June 04, 2010 08:37 AM - (Comments)

May 26, 2010

iwkse Alarm Clock

Mac: debian package for amd64

Hey,
sometimes it happens to get from friends some music in the ape format and have the wish to convert it in mp3 or ogg format.
I surfed a bit to check if some converter is available, and i found this script, cueape.sh
which does the job pretty well with also cutting and naming the tracks.

Using it is fairly easy:

$ cueape.sh myfile.ape myfile.cue -m

this will convert an ape file to several mp3 files. If you prefer the ogg format, just use the option -o instead of -m

This script to work requires some packages, most of them are listed in here

There's only one issue, the mac utility is not available on the repositories and on this link there's just the version for i386 architecture.
Since i'm using amd64 i had to build (with assembly support) myself the debian package: you can download it here


May 26, 2010 08:17 AM - (Comments)

May 22, 2010

El racó del Ton » English Linux

Al least, yahoo.es pop is alive

Hi there

I’ve been a long time without fetching emails from my list yahoo.es’s email address. Finally I could do it three days ago and a lot of emails came to my inbox.

I’m reading right now all my list emails (Badopi, Claws-mail, BarcelonaOnRails, etc) and I’m discovering a lot of things I missed last two months.

I’m back

M.

May 22, 2010 09:09 PM - (Comments)

May 17, 2010

El racó del Ton » English Linux

Rest in peace

Yesterday, a great singer, songwriter and person passed away…rest in peace Ronnie James Dio.

His wife left this message in this great artist’s website.

Message from Wendy Dio

Today my heart is broken, Ronnie passed away at 7:45am 16th May. Many, many friends and family were able to say their private good-byes before he peacefully passed away. Ronnie knew how much he was loved by all. We so appreciate the love and support that you have all given us. Please give us a few days of privacy to deal with this terrible loss. Please know he loved you all and his music will live on forever.

- Wendy Dio

And I say, see you there Ronnie…whenever it is.

M.

May 17, 2010 07:23 PM - (Comments)

May 14, 2010

Ricardo Mones

Clawsker 0.7.1

Finally, only three months lather than announced, it has seen the light :-).

Unfortunately I've received no new translations, so it's even a more poor release than expected. Anyway, long life to release early, release often!

May 14, 2010 05:06 PM

May 04, 2010

Ricardo Mones

running out of ids

Yep, our current client is pretty sure they're gonna run out of identifiers on the database tables (they're NUMBER(32,0) columns). Now we have to change the database design to have tables with composed primary keys, which will unnecesarily make the queries more complicated, instead our simple autonumeric key.

So what do they process? Not much in fact, around 500 requests per day. Oohh! Let's say 1000, to make you happy. Let's say also detail tables will grow even faster: 1000 lines per request (it's unrealistic, but WTF)... so you have now a million of ids used per day.

Well, sounds a lot... but don't be shy: suppose you have enough cores to process it, the bandwidth of several telcos and exabytes of database to waste, the crisis is over and you're the only vendor in the galaxy, so let's say you use 100 billion of ids per day (or 10^11).

That's really a lot! isn't it? Our little NUMBER(32,0) can hold up to 10^32 values, so at that
surrealistic rate you would exhaust it in 10^32 / 10^11 = 10^21 days, or divided by 365 and rounding 2.74 x 10^18 years, or, dividing again, approximately 210,000,000 times the estimated age of the known universe.

Yes, we're running out of ids... and surrounded by monkeys.

May 04, 2010 02:38 PM

May 01, 2010

breviary stuff

Need change

Vote for Xrazy Yraxaz

Illustration by Clifford Harper.
Note: It's the UK general election on 6th May. Need change?

May 01, 2010 08:45 AM - (Comments)

April 11, 2010

Ricardo Mones

dudesconf is over

Well, all good things come to an end, like the song says, so it does DudesConf. We had a very good time here, all the people was having fun and enjoying Debian and the great hospitality of the GPUL people, which make us feel like at home, like the previous times. Superb organization, I hope we can repeat the experience the next year.

I've also been able to put myself online again, so expect me fighting again ;-)

April 11, 2010 01:58 PM

April 10, 2010

Ricardo Mones

dudesconf

Long time has passed since last post here. Real life in general and my paid job in particular has kept me too busy to leave room for anything else. Now seems things will be better: new project and new bosses (I'm in Ariba team again), though company is the same, so lets see how much it lasts.

Regarding free software there's not much to say, my online life never was so low and I've even lost some sponsored packages in Debian because my lack of activity. There's several hundreds of unread mails pending and things to be done are still to be done. Nevertheless, I'm now at DudesConf enjoying a nice sunny weekend at A Coruña, the talks of my Debian fellows and trying to put myself up to date. For now, I've been able to fix the German manual of Claws Mail so the hydra is able to build packages again.

And now it's breakfast time ;-)

April 10, 2010 07:48 AM

xauth magic

While trying to launch claws-mail in my remote ssh-forwarded display I got an:
X11 connection rejected because of wrong authentication error message.
I realized then that while DISPLAY was configured correctly to point localhost:10.0 I was using another user in the screen session, not the one used to ssh in. After some googling for the message seems the usual culprits for this were low disc space (!) and disabled X11 forwarding, which were not my case. There were mentions to ~/.Xauthority permissions, but you don't have such file when you su to another user. So xauth came to my rescue: on the user which logs in you can list authorizations:

$ xauth list
busgosu/unix:0  MIT-MAGIC-COOKIE-1  
localhost.localdomain/unix:0  MIT-MAGIC-COOKIE-1  
busgosu/unix:10  MIT-MAGIC-COOKIE-1  

And in the user you su-ed to, and which doesn't have the file:
$ xauth
xauth:  creating new authority file /home/otheruser/.Xauthority
Using authority file /home/otheruser/.Xauthority
xauth> add busgosu/unix:10  MIT-MAGIC-COOKIE-1  
xauth> exit
Writing authority file /home/otheruser/.Xauthority
$

And you're done, with the same authorization now X11 forwarding works for the other user too :-).

April 10, 2010 07:25 AM

March 24, 2010

colin@colino.net

Week-end à Vienne

Ce week-end nous sommes partis à Vienne avec Clo, en laissant Paul à sa grand-mère maternelle (nul doute qu’il a passé un super week-end lui aussi !)

Après avoir failli rater l’avion… Nous sommes arrivés à notre hôtel à midi pile, on a déposé notre sac et on est partis visiter. On a marché des kilomètres et découvert tout l’hyper-centre. L’architecture est variée, différents styles du plus gothique au plus moderne se côtoient, parfois séparés par une petite rue.

On a découvert les vélibs locaux, les City Bikes, et on a expérimenté. On a pris les vélos bleus (il y a des jaunes mais ils sont moins bien et des gris mais ils sont trop comme nos vélibs), de vieux vélos hollandais singlespeed, qui se sont révélés idéaux pour la balade tranquille. La première heure est gratuite. Au final on a fait à peu près 22 kilomètres à vélo (on en a loué neuf fois).

Le reste on l’a fait à pied, ce qui nous a permis de découvrir plein de petits endroits sympathiques. On a suivi les recommandations du guide vert Vienne Week-end, et on n’a jamais été déçus !

Pas mal de choses à Vienne m’ont rappelé l’Allemagne où je suis allé il y a… 15 ans… et mon allemand rouillé a même pu être compris pour la plupart de nos interactions avec les locaux ! Qui devaient sans doute noter quelque part qu’il ne s’agissait pas de ma langue maternelle, car souvent, ils nous répondaient en anglais.

Bref, ces trois jours sont passés très vite, d’autant plus qu’on a eu un temps superbe. Il y a plein d’autres photos dans notre galerie Weekend à Vienne !

March 24, 2010 12:37 PM - (Comments)

March 19, 2010

El racó del Ton » English Linux

Railscasts

Hi there

These days I’m taking advantage of my daily train time watching railscasts episodes with my lenovo netbook. It’s really awesome all the things you can learn from these screencasts done by Ryan Bates about how to do things using rails.

Thanks a lot Ryan for sharing your knowledge with us.

M.

March 19, 2010 01:53 PM - (Comments)

March 05, 2010

breviary stuff

Breviary Stuff Publications launches …

The first title from Breviary Stuff Publications is now in print. It is Buchanan Sharp's scholarly study, In Contempt of All Authority, Rural Artisans and Riot in the West of England, 1586-1660. On its first publication, (University of California Press, 1980), Christopher Hill remarked, "I have rarely recommended a book with more confidence in its quality. It is quite first class."

It concerns two of the most common types of popular disorders in late Tudor and early Stuart England: the food riots and the anti-enclosure riots in royal forests. Particular attention is paid to the Western Rising of 1626-1632, a series of massive anti-enclosure riots which took place in Gillingham Forest on the Wiltshire-Dorset border, Braydon Forest in Wiltshire and the Forest of Dean in Gloucestershire. Concurrent riots in Leicester Forest, and Feckenham Forest, Worcestershire, and lesser known disorders in the Western forests which took place during the English Civil War are also investigated.

The leaders and most active participants in riot were rural artisans — skilled men working in non-agricultural employments. These artisans, particularly those in the major industries of seventeenth-century England located in the forested West, were largely wage-earners. Virtually landless cottagers, who relied on the market for food, clothworkers and other artisans frequently engaged in food riots and attempted insurrections during times of depression or harvest failure. These artisans exploited the common waste of the royal forests. Enclosure of the forests by the Crown threatened the livelihood of the workers who depended on the forests for raw material and pasturage.

The most striking demonstration of continuity is to be found in the identities of a number of the rioters and in the nature of the leadership. Twelve of the participants in the riots of 1643-45 had been fined in the Star Chamber for their part in the disorders of the 1620s; eight were artisans, one was a mercer, two were husbandmen, and one was of undetermined status. Four of them were noted as notorious offenders in the 1640s, including a fuller who acted as drummer and John Philips, tanner, who took over leadership of the riots in 1644 from Richard Butler, a poor linenweaver. It is clear from the examinations of witnesses that Butler had been the leader of the riots in 1643 until he was apprehended and brought before the Lords. His opinions, as reported by a number of witnesses, show considerable contempt for Parliament and for Elgin's agent, Thomas Brunker. At the beginnning of the disorders in 1643 he went into a shop to buy gunpowder. When told it cost 1s. 6d. per pound, "hee sayd his monie would not hold out to have soe much, but desired her to lett him have 2 pennyworth and sayd it would be enough to serve Tome Brunker and for his proclamation I care not a fart of mine arse."
Extract from Ch. 9., A Second Western Rising: Riot during the Civil War and Interregnum

Buchanan Sharp's conclusions challenge the dominant modern view that work in rural industry was merely the by-employment of members of peasant households. Contrary to the prevailing interpretation that disaffected men of standing were generally behind disorders such as the Western Rising, manipulating popular grievances for their own ends, In Contempt of All Authority concludes that in times of economic and social distress or political dislocation (such as the Civil War) the “lower orders” of Tudor and Stuart England were provoked into self-organised direct action by very basic issues of food supply, employment, and common rights. In the course of such actions they manifested an intense hatred of the gentry and the well-to-do, whom they held responsible for existing conditions.

The Breviary Stuff Publications offering is the first paperback edition, in an oversized format (191×235mm, 204pp), with a RRP of £12.00. It is available from all good bookshops, online retailers, such as Amazon, and directly from the Breviary Stuff Publications website, www.breviarystuff.org.uk.

March 05, 2010 08:47 AM - (Comments)

February 28, 2010

Holger Berndt's Blog

Nautilus in the stress field between design and function

So, there's been a lot of talk about Nautilus' present and future design. Especially Izo's article collects some interesting proposals for design enhancement that are in my opinion very well worth consideration. It does, however, also contain some points that make me feel a little uneasy.

Naturally, UI redesign comes not only with re-organisation and re-design of existing functionality, but also with omitting of unimportant components. Also naturally, the latter part is tricky to get right, because people don't like it when the functionality that they are habituated to use is suddenly gone, without any accessible replacement. I don't mean to say that UI reduction is impossible, but it's something that has to be considered carefully, according to the focus and target audience of the project. This is a hard process, because individuals or small groups don't necessarily cover all the use-cases that an application wants to address.

Izo seems to have a typical case of forgotten addressed use-cases in his review when he writes about the stop button:
"The stop button. More useful in web browsers, if you want to stop the web browser from loading a page, completely useless in a file manager, where file accessing times are considerably quicker than web browsing times. You simply never have an opportunity to stop the file manager from loading a page. It’s an old relic. I’ve never used the stop button."
That you have never used a stop button in a (network transparent!) file manager does not mean that it's "completely useless". Got the hint in the parentheses? Nautilus does indeed want to support network filesystems, be it NFS and friends or GIO/GVFS mounted stuff. Loading these is actually not too different to what you do with your browser. These can clearly be very slow, and that you didn't think of that just shows that you forgot an important use-case that Nautilus wants to support, because you have no personal use for it.

Now, I am not saying that the stop button is the best design for that. It most probably isn't. One could for example test if it could be combined with your proposal of the "refresh" button: Display the "refresh" symbol when the displayed location is fully loaded, and put a little stop symbol there while it's loading (this combination of stop/refresh has been proposed before in "Simplified Nautilus").

People are different, and have different ways to use applications. Many other proposals, for example, just assume that the sidebar is visible. You mean to save a little bit of screen space by omitting the small "Home" toolbar button, arguing that it's also accessible in the sidebar? Well, when I look around, a fair number of computer-novices that I see don't have the sidebar visible at all. When forcing it upon them, they actually loose a lot of screen estate, and have a lot more unwanted UI elements in their face. Combine that with the talk about removing the menu bar alltogether (and thus loosing the habituated easily accessible way to toggle the sidebar visibility), and you have a good potential to regress usability for a non-negligible part of your target audience. In the end, people don't open Nautilus to lay back and enjoy its look, but to get work done.

I am also not entirely convinced that it's so bad to have two toolbars. I mean, how much screen estate do you loose, in reality? For one thing, the toolbar covers less space than the sidepane. In browser mode, you typically don't have dozens of Nautilus windows on a single workspace (and as I said, the toolbar covers less space than the sidepane). On the other hand, even if you have reduced the number of toolbar buttons to six plus a wide-enough search window, as your mockups show, what's better: To use a few vertical pixels, or not to be able to see your current folder "Pictures from Patrick's wedding where aunt Maggie got really drunk"? Hard to say.


Split View - Curse or Blessing?

Having the location bar embedded into the toolbar items also has another problem: It doesn't work well with the a split-view filebrowsing mode. This mode got some very harsh criticism at the recent designers hackfest that I stumbled upon by coincidence (strangely, this discussion didn't find its way to Nautilus communication channels yet). I wrote some comments on the corresponding blog posts, but I also want to write a small comment about that here on my own webspace, without the risk of being moderated (as seemed to have happened on other people's digital homes, which obviously found my remarks unpleasant).

First of all, I am disappointed by the way the criticism was expressed. The designers may very well have some valid points, but I wouldn't know, because they seem to actively refuse to answer my request to elaborate on their non-descriptive slating. Also, there are some remarks that make it look like they didn't even give it a fair try before condemning it.

A reccurring question was "why split-view", and the proposal to implement panes in the window manager instead. This is a valid question, and has in fact been discussed on the Nautilus mailing list. (Hint: In general, project mailing lists are a good place for both, to research design decisions and to ask the "why" question.)

Fact is, split-view filebrowsing is not trying to solve window manager shortcommings on the wrong level. Even if Metacity had snap today, this wouldn't be an alternative.

The key difference is the inherent connection between those two panes, which gives clear benefits. When you want to do file management (which is now becomming the key-focus of Nautilus), you often have to deal with two locations at the same time: The source, and the target. What split-view does is to display a "default target" right next to the source. That's why it makes sense to have 2 panels, but not 3 or 4.

This default target is accessible in the menu, via the "{Copy| Move} to other pane" items. Users that need to do heavy-duty file handling can assign keyboard shortcuts to those menu items, and move around files with a single button press.

The “default target” notation offers even more for advanced users, which can access both the source and the target pane in their Nautilus Scripts (and write for example a “diff these two directories” script with very little effort). This surely isn’t possible with a WM snap either.

Users with simpler needs aren’t really affected much by of all this. The only effect for them is that “extra pane” option in the view menu that they don’t wanna click.

I actually think that it is a very natural model to show source and target location when they are that fundamental to the typical action that the user wants to do with a given application. I find it much more intuitive than the clipboard copy/paste stuff that is generally accepted because people got used to this strange idea.

Photo © Adventures in Librarianship on flickr, cc-by-nc-sa

February 28, 2010 08:01 PM

February 25, 2010

Holger Berndt's Blog

Linking notes and email messages

A few days ago, I've cobbled together a note-taking solution for my email messages. It's very unixy, consisting of a fair number of different parts working together: Claws Mail with the Python plugin and two of the shipped example scripts on the one side, Tomboy with the Claws Mail addin and the Reminder addin on the other side.

Starting with a message selection in Claws Mail,


a click on the "Create Tomboy Note" menu item of the Python example script results in this dialog popping up (I know that this dialog is ultra-ugly, but hey, it's a quick&dirty easy-code example script, nothing more)


which in turn creates this Tomboy note


The Tomboy reminder plugin will take care to remind me about this next monday by raising the note.

To make the round-trip complete, there's a second example script that raises all Tomboy notes that link to a selected message.

Okay, admittedly not the end-user friendliest setup, but it suits my needs pretty well. And it shows the benefits of scripting language interfaces for glueing components together -- it didn't take long to write the scripts to make this work, even though the plugins and addins have not especially been designed for it.

February 25, 2010 11:11 PM

February 16, 2010

colin@colino.net

C’est surprenant comme on s’attache aux choses

Cela fait presque un an maintenant que je n’ai pas décadenassé le vélo de mon père, presque un an qu’il rouillait, figeait et coinçait tout seul sur le rack à vélo de l’immeuble.
Je n’avais aucune envie de l’utiliser : trop grand pour moi, roots comme un VTT de 1992 peut l’être, au freinage approximatif… Je suis beaucoup mieux sur mon vélo neuf aux standards de ce siècle.

J’ai pris une grande décision aujourd’hui : plutôt que de le laisser pourrir jusqu’au point de non-retour qu’il a d’ailleurs failli atteindre, je suis descendu armé de ma boîte à outils. J’ai démonté ce qui coinçait, lubrifié les passages de vitesses, graissé la transmission, réglé les dérailleurs. J’ai remis une selle et les pédales, j’ai regonflé les pneus. Puis j’ai rangé l’antivol et je suis allé l’amener au vélociste de l’Atelier Bicyclette, un tout petit magasin qui ne fait que de la restauration et de l’occasion.

Je lui ai offert ce vélo contre une somme dérisoire et symbolique. Une fois les câbles changés, et sans doute après quelques réglages et traitements anti-rouilles supplémentaires, il devrait trouver un acquéreur facilement et avoir une troisième vie utile !

Et bien, c’est drôle, mais en repartant à pieds, j’ai eu un petit pincement au coeur auquel je ne m’attendais pas du tout…

February 16, 2010 02:01 PM - (Comments)

January 30, 2010

El racó del Ton » English Linux

Override table’s primary key using migrations in rails.

Hi

When a migration is created, rails add a column named id, which is defined as an integer, as table’s primary key column. Sometimes can happen that you don’t want to name your primary key column id using rails. The way you have to write your migration is this one (rails use integer type by default):


def self.up
create_table :airport, :primary_key => :airport_id do |t|
t.string :iso_code, :limit =>3, :null => false
t.string :name, :limit =>150, :null => false
t.integer :city_id, :null => false
end
end

If you have a “many to many” table probably you don’t want to have this id column in your table and you want to define two columns as primary key. This is the way you have to write a migration if you want to define this primary key:


def self.up
create_table :airports_cities, :primary_key => [:airport_id, city_id] do |t|
t.integer :distance, :null => false
end
end

In both examples, columns defined as primary key don’t have to be defined because rails do it for you. Using this, you won’t have an id column in your table and you’ll be able to use whatever you want as primary key (even strings).

Hope this helps (to my fish-like memory or to somebody else’s brain).

M.

January 30, 2010 05:00 PM - (Comments)

January 18, 2010

Holger Berndt's Blog

The Tomboy and the Git

Tomboy's taming of the beast turned out to be a very useful feature for my daily note keeping. But emails are not the only pieces of information that I often find associated with tasks. Another recurring source that I want to reference are commits in source code management systems. So, if Tomboy can play nicely with my MUA, why shouldn't it play nicely with my source code repository browser as well?

Unfortunately, there's no drag-and-drop target for git repository viewers defined. Most viewers just don't let you drag from the commit list into another application. So, I tried to contact the guys from gitk, giggle, and gitg in the hope to define such a dnd target. The guys from gitg seemed to be the only ones interested in that functionality (good thing that gitg is currently my favorite browser anyways), and it didn't take long until they added the required features.

With that in place, it was easy to write a Tomboy addin that handles dropping of git references into a note analogous to dropping email messages: By creating a link with a nice icon and a meaningful text which when clicked opens the git repository viewer and selects the respective commit.



I like these little helpers. They have a good work/gain ratio.

January 18, 2010 09:20 PM

January 17, 2010

Holger Berndt's Blog

Extending and Automating Claws Mail - the sneaky way

The recent release of Claws Mail 3.7.4 has also seen a much more powerful version of the Python plugin. It is now possible to write scripts that are executed automatically on startup, shutdown, or opening of a compose window. It's also now possible to write scripts that work on an already opened compose window. The user interface got better as well (e.g. it's now possible to trigger scripts via toolbar buttons).

However, what the latest release still lacks, is documentation and examples. After all, features that are not documented don't exist. This is supposed to get better in the next release. I've started adding a few example scripts to the source distribution that show possible solutions to questions that have been raised on the user's mailing list lately. Most of these should already work with the released version of the plugin, with the exception of the startup script that show's how to add new menu items for custom actions into the main window (the examples being a menu item to mark a thread as read, and to add a menu item to create and show the Python plugin's API documentation on-the-fly - isn't introspection cool?).

Anyways, if anybody scripted something cool with the plugin, please consider sending the (well commented) script to me. I'd be happy to consider it for inclusion in the distributed examples.

January 17, 2010 04:12 PM

January 12, 2010

El racó del Ton » English Linux

Things to remember 2010-01-12 (former Something I always forget)

Howto create the table to store sessions in Rails

rake db:sessions:create

Howto truncate all *.log files in log/ to zero bytes

rake log:clear

M.

January 12, 2010 08:07 PM - (Comments)

January 05, 2010

colin@colino.net

Ma première portière

Mercredi 30 décembre, 16h40. Je vais chez le médecin me faire soigner une angine agaçante.

Il fait beau, Toulouse est calme. En cette veille de réveillon il n’y a plus grand monde. Je pédale tranquillement. Avenue Ségoffin, personne, pas de vent, j’avance bien malgré ma petite forme. Le rond-point à priorité inversé de la rue des trente-six ponts. Pas de voiture garée au milieu. L’avenue Frizac, qui mène au jardin des Plantes, toujours aussi agréable, ombragée, avec ses arbres et sa bande cyclable sans voiture. J’arrive au bout, le feu est rouge. Entre lui et moi, trois voitures que je remonte par la bande, en ralentissant doucement – j’aurais peut-être le vert avant de m’arrêter !

Plus qu’une voiture avant d’arriver au sas cycliste. Mon oeil est attiré par un léger mouvement et déjà je vois une tranche de la portière passager, l’intérieur de la portière, elle s’ouvre vite et je ne pourrais pas passer entre elle et le trottoir. Je ne m’en suis pas encore vraiment rendu compte, mais je sens mes doigts crisper sur les freins. Le frein arrière devient inutile lorsque la roue décolle du sol. Je vois mon cintre à la verticale de mon regard, ma roue avant en dessous au lieu d’etre devant, le haut de la porte ouverte est au niveau de ma gorge, elle est encore à une distance qui paraît un mètre. J’entends vaguement qu’une grande inspiration de stress est prise sur ma gauche. Je sens mon vélo me retenir par les pieds et je me demande si j’arriverai à déclipser au bon moment. Mes doigts désserrent le frein juste avant la bascule et je vois la roue avant reprendre du terrain sur le cintre, et je resserre.

La roue arrière retombe lourdement au sol, je lâche tout et déjà le vélo est par terre et moi debout – comment ?

La passagère a refermé sa porte mais sa bouche est encore ouverte et ses yeux équarquillés. Je ré-ouvre violemment la porte pour entendre “ah bah faut pas remonter les files !”. L’adrénaline est encore à son pic, la catharsis commence, les insultes volent et rien n’en sort de bon.

J’aurais plutôt dû faire un constat : je me suis égratigné le genou (mais sur quoi ?… je ne sais pas) et j’ai dû la toucher, la portière : j’ai un bleu en travers du bras.

January 05, 2010 04:17 PM - (Comments)

December 23, 2009

colin@colino.net

A week with little Paul

Since I’m out of a job, I’ve got some time these days, and I spent the last three days with Paul. It was nice !

On monday we went to my ex-job in order to help Lynette (the HR person) getting internet back, We went by bike with Paul in the Gobug trailer. I was afraid he would be cold, but in fact he was a bit too hot with all of the ski outfit… We went to the restaurant with Lynette and two other ex-colleagues, it was a nice moment and Paul has been very nice : after he ate his meal first, he spent time looking around, walking around, and he didn’t disturb us at all !

Paul is now walking all by himself, since about two weeks. He’s getting good now, and he doesn’t need help  or a piece of furniture anymore to stand up.

He’s trying to eat by himself too. This gets a little messy on the table.

Yesterday, we stayed at home, and played together when he wasn’t asleep. I’ve read his favourite book with him… a number of times… It’s “Tchou et ses amis”. It’s the story of how Postou the little post truck is sick and can’t deliver the parcels. Paul couldn’t care less about the story line, but he loves to point at the animals in the pictures, again and again, and I repeat their names again and again. That’s fun until the 20th time :-)

Today, we went to the local park to give old bread to ducks, to walk around a bit and let him play outside a bit. He loved that, especially when one duck let Paul chase her around !

Then we went back on the bike. I think Paul loves it about as much as me :)

December 23, 2009 09:51 PM - (Comments)

December 20, 2009

Ricardo Mones

Defense of fundamental rights on the Internet

I was going to copy it, but lazy as I am, I think is more interesting to link it, as I'm not the original author and I don't have more much to add, so this is the link to Ana's blog entry «En defensa de los derechos fundamentales en Internet» (in Spanish), hey Ana! ;-)

English readers: if you want to know what this Ana's post is about, read this.

December 20, 2009 07:28 PM

December 19, 2009

El racó del Ton » English Linux

Incredible Guitar & Bass performance

It’s amazing

M.

December 19, 2009 11:34 PM - (Comments)

Something I always forget II

I always forget how to dump my blog’s mysql database. It’s :

mysqldump db_name -u username -p > filename

That's all

M.

December 19, 2009 11:16 PM - (Comments)

Something I always forget

I always forget how to add a source using rubygems. It’s (using ‘http://gems.github.com’ as example) :

gem sources -a http://gems.github.com

That’s all

M.

December 19, 2009 10:44 PM - (Comments)

December 17, 2009

Ricardo Mones

Migrating disk

I had in LJ the final story of the failed disk, so, having woken up in the mood of bloggin', it saves me a precious time :-). Lots of console output and boring stuff, you know, but here it goes:

The failing setup were two discs I synced manually from time to time, their partition table:

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003b1cf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         122      979933+  83  Linux
/dev/sda2             123         365     1951897+  82  Linux swap / Solaris
/dev/sda3             366        1581     9767520   83  Linux
/dev/sda4            1582       24321   182659050    5  Extended
/dev/sda5            1582        2189     4883728+  83  Linux
/dev/sda6            2190        2554     2931831   83  Linux
/dev/sda7            2555        2676      979933+  83  Linux
/dev/sda8            2677       24321   173863431   83  Linux

And mount points:
/dev/sda1               918322    445462    423864  52% /
/dev/sda3              9614148   5303228   3822544  59% /usr
/dev/sda5              4806904   3629392    933328  80% /var
/dev/sda6              2885780   1107812   1748652  39% /opt
/dev/sda7               918322      8256    861070   1% /tmp
/dev/sda8            171134396 135680768  35453628  80% /home

This setup, appart of the manual sync, had some issues to be addressed:

The hardware choice wasn't very difficult, as I tend to like Seagate, so balancing price, capacity and availability decided for a couple of ST3500418AS. These are SATA-II, while my motherboard is SATA-I only but aren't they supposed to be backwards compatible? Well, they are, but you have to setup a jumper to lower interface speed, otherwise the disc isn't even recognized by the motherboard.

Buying the discs had some more difficulties. First tried Alternate, but this time they pretend me to pay the SGAE[es] tax for media (which is around 12 euros per disc), despite I clearly explained these were system discs to be mounted in RAID (and the tax is supposed only to apply non-system drives). Phoned them even, but no way, so I finally rejected the discs and went Optize, which doesn't seem to have the supposedly legal problem Alternate has with declaring system discs. They were served on time and for less than 90 euros, so bravo for them :).

After having the bare metal, initially these options for migration were considered:

But in the end I got it with a fourth option based on this later one: install a new system with all the RAID setup, disconnect second drive (like if the array had failed), reconnect and copy contents of old drive to new system, restore second RAID drive and add it again to the array, so it gets synced again. Nothing to buy and more fun to see how fast the MD rebuilds the array.

So finally this is the new partition table:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a9eb5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         134     1076323+  fd  Linux raid autodetect
/dev/sda2             135         620     3903795   82  Linux swap / Solaris
/dev/sda3             621        2322    13671315   fd  Linux raid autodetect
/dev/sda4            2323       60801   469732567+   5  Extended
/dev/sda5            2323        3416     8787523+  fd  Linux raid autodetect
/dev/sda6            3417        3538      979933+  fd  Linux raid autodetect
/dev/sda7            3539       12170    69336508+  fd  Linux raid autodetect
/dev/sda8           12171       60801   390628476   fd  Linux raid autodetect

And mount points:
/dev/md0               1059264    263360    742096  27% /
/dev/md1              13456532   1703152  11069820  14% /usr
/dev/md2               8649480   1365644   6844464  17% /var
/dev/md3                964408     17632    897784   2% /tmp
/dev/md4              68248448    184216  68064232   1% /opt
/dev/md5             384497716 132355408 252142308  35% /home


BTW, after all I did buy the SATA enclosure for the remaining disc, so I have another 200Gb for pr0n ;-).

December 17, 2009 08:14 AM

December 13, 2009

Holger Berndt's Blog

Nautilus Split View and Upstream

Check out that screenshot about the current state of splitting a Nautilus window:



The exciting thing is that this is not a screenshot of my split-view branch, but of Gnome git master.

So after successfully using the split view branch for Nautilus for several months, and (mostly thanks to the PPA) getting some feedback from others, I finally requested a review for it. Turned out that I had a good timing, because with the upcomming Gnome Shell, a debate is currently going on anyways about the future role of Nautilus. With a possible switch away from being a desktop shell and towards more typical file management tasks, split-view fits better into the picture as it used to.

I am very happy that Alex Larsson picked up the task to review and clean up the branch. Even more so as he recently commited a reviewed version to Gnome git master, which can be seen in above screenshot.

The UI is not yet final, and there are a few issues still to be worked out, but I really like the route that it's going. So, if all goes well, there won't be any Nautilus packages for Lucid in my PPA..

December 13, 2009 11:12 PM

December 04, 2009

El racó del Ton » English Linux

Debian is not easy to install

18:30 – Donwload Debian stable netinst and burn a CD (15-20 minutes).
19:00 – Installing netinst (over 20 minutes).
19:30 – Reboot, /etc/apt/sources.list changed from stable to unstable && aptitude update && aptitude dist-upgrade (over 25 minutes).
20:00 – aptitude install kde-full (I don’t know, I was having dinner).
22:15 – System configured and running perfectly.
22:20 – Copying data from the old filesystem (ext3) to the new filesystem (ext4).
23:15 – Old system replaced completely by new system.

Sure?

M.

December 04, 2009 08:32 AM - (Comments)

December 02, 2009

Holger Berndt's Blog

The Tomboy and the Beast

To a large degree, Open Source is about scratching personal itches. The results are oftentimes small scripts, tools or plugins, rather than ending up as big projects of their own. Even if only little time is invested, the result can sometimes make a difference in terms of working efficiency. And picking low-hanging fruits surely is fun!

I'm using Claws Mail as MUA and Tomboy to organise my ideas and workflow. Both are truly excellent in their areas. However, an email is oftentimes connected to an idea, or a task, so I want to connect emails and notes somehow. Unfortunately, Claws Mail and Tomboy don't play well together.

When dragging emails from Claws Mail and dropping them into a Tomboy note, this is what you get:




Of course, the temporary files are cleaned up again after Claws Mail is closed, so the links are not only clumsy and non-descriptive, but also non-persistent and therefore totally useless in a note.

No more! I wrote a little addin for Tomboy that provides Claws Mail integration, so when loaded, email drag'n'drop results in this:



When clicking the link, the email is opened in Claws Mail again.

Code is on GitHub. I still couldn't find enough motivation to write the autofoo for it, so for now, a small hand-cooked Makefile has to do. Be sure to read the README file. I am not a fan of binary releases, but if anybody is interested in the dll, drop me a line. Also note that it currently only works with Claws Mail from CVS.

First impression of the Tomboy addin interface was very positive. It makes writing small addins easy, even for those unfamiliar with the general codebase. Well, even more in this case, as Tomboy ships with an Evolution addin which does the same thing for Evolution, and was an obvious source of inspiration.. Isn't Open Source great?

December 02, 2009 05:56 PM

November 24, 2009

El racó del Ton » English Linux

18 years

18 years ago Freddie Mercury left us. God save the Queen.

M.

November 24, 2009 03:34 PM - (Comments)

November 21, 2009

El racó del Ton » English Linux

will_paginate problem

Sometimes, a search has to be coded in an application and if you are using rails, probably you’ll use will_paginate. It is a good piece of software, easy to install and easy to use but, if it’s not used correctly, problems may appear.

I use it using a form_for rails’s tag and four search criteria in it. After coding it, I added will_paginate and after doing my first search, I paginated to the second page…it came empty. After googling a little, I noticed that I was sending info using POST method and will_paginate needs GET method to work properly, so the only thing needed was:

:html => { :method => :get}

and it worked perfectly, passing parameters to the next pagination.

Hope this helps, it’s something silly but sometimes silly things made people go into the dark side of coding ;-)

M.

November 21, 2009 11:13 PM - (Comments)

November 15, 2009

El racó del Ton » English Linux

Problem installing rmagick (using ruby 1.9.1)

Hi dudes

I’m coding my web application and I need to use the simple_captcha gem, which uses rmagick to generate captchas. I’m trying to install it, I already have imagemagick installed in my debian sid, and I found the following problem


ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for cc... yes
checking for Magick-config... no
Can't install RMagick 2.12.2. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

Googling a little I found this page which explains what to do, which is ‘apt-get install libmagickcore-dev‘ as root or using sudo.

After this, a new error appears


Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for cc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.5... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.12.2. Can't find MagickWand.h.

And a new action is taken ‘apt-get install libmagickwand-dev‘.

Problems solved and gem installed.

M.

November 15, 2009 12:05 PM - (Comments)

November 14, 2009

El racó del Ton » English Linux

Problem uploading file using ruby 1.9.1 and rails 2.3.3

Hi there

I’m coding an application which has to upload files to the server. I have found an error when the uploaded file is saved in server directory. The message from system is

Status: 500 Internal Server Error
invalid byte sequence in US-ASCII

If you are in the same situation and want to solve it (it’s a rack 1.0.1 gem problem), you have three options:

Choose one

M.

November 14, 2009 11:05 AM - (Comments)

November 13, 2009

El racó del Ton » English Linux

Trying again

Hi there

After having a baby, there is not a lot of time to do things as I used to do before. I’ll try to write entries to this blog and share ideas, code and useless things with all people who read this humble blog.

Those days I’m trying to code an web app to allow people who like music upload those songs (covers, non-published songs and so on) which come from nowhere but are amazing. I wish I finished it in two or three weeks and publish it under a cool domain.

See you

M.

November 13, 2009 09:58 PM - (Comments)

November 09, 2009

colin@colino.net

Vélo urbain : les trucs utiles, les trucs inutiles

Bonjour,

Bon, ça fait plus de deux mois maintenant que je vais travailler à vélo, et au fur et à mesure, j’ai découvert des besoins que j’ignorais jusqu’alors.

Pour rappel je me suis acheté un VTT dans l’optique de faire du VTT, pas trop de l’urbain. Je l’ai donc équipé dès l’achat des trucs indispensables à mes yeux : bar-ends, mini cale-pieds sans lanière, compteur kilométrique, et axes antivols parce qu’il dort en bas.

Ensuite, j’ai commencé à aller travailler avec, puis il a fait moins chaud. J’ai acheté ce coupe-vent léger, et je l’utilise encore. Voici le barême approximatif que j’utilise : au dessus de 20°C, t-shirt à manches courtes; de 15 à 20, t-shirt à manches longues; de 10 à 15, t-shirt à manches courtes + coupe-vent; de 5 à 10°C, t-shirt à manches longues + coupe-vent; de 0° à 5°C, t-shirt manches courtes + manches longues + coupe vent. Testé et approuvé à 2°C, le barême dépend aussi de l’humidité ambiante. En dessous de 0°C, je pense que j’enlèverai le t-shirt à manches courtes et ajouterais une polaire.

Puis il a fait un peu plus sombre. J’ai acheté des Reelight, un système ingénieux fixé sur l’axe de roue, alimenté par induction par deux aimants qui tournent sur la roue. Cependant, c’est trop bas pour être bien visible, j’avais l’impression désagréable de ne pas avoir assez de marge sur la longueur des axes pour être très tranquille. Je les ai donc virés et remplacés par un feu arrière à LED qui ne coûte presque rien, comme ça j’ai pu en acheter un autre pour avoir un deuxième système de fixation pour le siège bébé), et un phare à LED Cateye HL-530 devant, que j’ai choisi bien lumineux et directif. Les deux sont alimentés par des piles bâtons AA et AAA, ce qui me permet d’utiliser des accus NiMH tout bêtes. Le feu arrière doit être rechargé une fois par semaine, le feu avant une fois tous les 10-15 jours.

Niveau visibilité, j’ai aussi acheté un gilet jaune réfléchissant norme EN-471, et du scotch rétro-réfléchissant et fluorescent (chez Leroy Merlin) pour en tartiner le siège bébé. Phares plus gilet, les automobilistes me voient vraiment mieux pour la plupart, cela se sent même sur leur conduite (lorsqu’ils entrent sur un rond-point par exemple, ils ont moins tendance à me griller la priorité).

Enfin, j’ai acheté un mini-rétroviseur que je mets sur le bar-end gauche, à moitié convaincu de la chose vu la petite surface du miroir. C’est ma plus grande surprise : je crois que je ne pourrais plus m’en passer. Ça permet d’anticiper sur une situation quand même assez commune à vélo : lorsqu’on est doublé. Au lieu de serrer les fesses en espérant, on voit très bien, malgré le petit miroir, s’il y a une voiture derrière, à quelle vitesse elle se rapproche, et cela permet de prendre la décision qui s’impose bien en avance : soit il y a la place (voie large, ou bien perseonne en face) et la visibilité et je me serre légèrement vers la droite ; soit c’est limite voire impossible sans danger (voie étroite, voitures en face, virage sans visibilité, ilôt séparateur au milieu), et je me mets bien en avance en plein milieu de la voie. Puis lorsque les conditions sont réunies, je me remets à droite en remerciant.

Enfin, pour la pluie… Après m’être pris une bonne averse estivale dans la tête, je suis arrivé trempé au travail et j’ai dû tout sécher au sèche-mains des toilettes. Pas top. J’ai donc essayé le poncho de Clo et je l’ai rangé aussi vite : prise au vent digne d’un trois-mâts, flaque d’eau entre les mains, et la fois où le vent m’a envoyé le dos du poncho sur la tête, ça a suffi. J’ai acheté une veste anti-pluie en vrai plastique, essayé une fois, arrivé trempé (mais trempé chaud, de sueur). Au final, le coupe vent est suffisamment déperlant pour tenir une heure sous une bonne pluie.

Pour les jambes, j’ai acheté un sur-pantalon en presque-plastique. Il est insupportable quand il fait plus de 15-20°C, mais en dessous de 15°C, ça va : je ne transpire pas trop des jambes. Je ne le prends que quand il fait moche d’avance, s’il fait à peu près beau, je prends le risque, et au cas où je me fasse avoir, j’ai amené du change au travail : chaussettes, chaussures, pantalon, t-shirt, et une serviette.

Et pour la tête, pas besoin de capuche, le casque fonctionne même s’il est aéré, ça enlève la majorité de la goutte.

Enfin, j’ai mis des pneus Schwalbe Marathon (le même genre que sur les vélib) pour crever moins et rouler mieux : avec mes pneus VTT cramponnés pour la boue, je pédalais un peu comme un ours. Je pense les monter sur le vélo de Clo et mettre des Marathon Extreme (pour un grip de folie) d’ici un ou deux mois. (Je repousse un peu car quand j’y pense ils coûtent plus cher que les pneus que je mettais sur la vieille Mazda 323.)

Je pense que je commence à être paré ; il me reste deux petits trucs à améliorer : mon casque, que j’ai acheté pour une pratique de loisirs histoire de faire “éducation silencieuse” vis-à-vis de Paul. J’ai pris le réflexe et j’ai maintenant l’impression d’être à poil si je ne l’ai pas, mais je compte acheter un Ekoi avec écran de protection ; parce que quand il fait frais voire froid, ça pique grave les yeux, dans les descentes j’en pleure, et les lunettes s’embuent tout de suite.

Et mes pédales en plastique avec cale-pieds sont bien mais pas top, pas très rigides, et beaucoup de perte d’énergie du pédalage. Je vais me lancer et passer à la pédale automatique version soft, avec un côté auto, un côté normal.

November 09, 2009 04:23 PM - (Comments)

October 28, 2009

colin@colino.net

La remorque Trek Gobug

Lundi, j’ai commandé une remorque Trek Gobug chez cyclo-randonnee.fr (le site est vraiment bien fait, bien explicatif, et Julien, le responsable, fournit un service client parfait. C’est rare :-)) . J’ai reçu la remorque mardi, et je suis rentré avec ce soir, pour la ramener à la maison et l’essayer avec Paul.

La remorque pliée dans mon lab

La remorque pliée dans mon lab

Premières impressions : Elle n’a pas l’air si lourde que ça, et roule bien à la main. Pliée, elle prend de la place, mais tiendra sans problème où l’on compte la ranger.

Un mot à propos de l’attache remorque, qui est fixé au vélo par l’axe de roue arrière : c’est une pièce métallique  épaisse de 5 ou 6 bons millimètres, suffisamment pour empêcher d’utiliser un axe de roue antivol. Le modèle décathlon est trop court et ne ferme même pas ; le modèle Oredon Wheelguard, un peu plus long, n’est pas sécurisant, car on ne peut faire que 3-4 tours d’écrou sur le filetage, ce qui fait léger. Tant pis : j’échangerai mon axe antivol contre l’axe (suffisamment long) fourni à chaque fois que nous utiliserons la remorque, tant que nous n’aurons pas de garage fermé… Vu l’usage qu’on lui destine, ça ira : balade et vacances, pas utilitaire. Pour les trajets de tous les jours, je compte continuer à utiliser le siège Hamax (4 kilos au lieu de 12 et plus pratique pour le rangement).

Plier (et déplier) la remorque se fait en 30 secondes : une pression sur chaque axe de roue pour les enlever, une goupille en haut à enlever pour décliper la “colonne vertébrale” de la remorque, et l’armature arrière bascule vers l’avant.

Accrochée à mon vélo

Accrochée à mon vélo

Niveau confort, on est bien au XXIème siècle : il y a même des porte-gobelets biberons !

L’attache de la remorque au vélo se fait bien, le goupillage côté vélo est un peu compliqué par le fait que l’attache peut tourner sur elle même. Il y a une sangle de sécurité de chaque côté du timon.

Je l’ai essayé vide pendant 17 kilomètres, pour la ramener du travail et aller chercher Paul avec.

Les premiers tours de roue, on se rend à peine compte qu’on traine 12 kilos… Ça ne change pas grand chose en virage, pas grand chose tout droit non plus ; la différence que j’ai noté, c’est surtout en danseuse, ça fait un peu différent.

Ça tire un peu plus, quand même, surtout dans les montées (évidemment…). Je dis ça de manière empirique, j’ai eu l’impression d’avoir plus chaud que d’habitude. J’ai aussi mis 55 minutes au lieu de 45, mais on peut mettre ça au moins en partie sur le fait que… on peut pas remonter les files avec cette remorque accrochée aux fesses ! Coincé dans les bouchons au milieu des enclumes !

Sinon, ben ça a l’air très grand au milieu d’un couloir ou au milieu de mon salon, mais sur la route, pas tant que ça. Avec 80 centimètres de large, ça dépasse à peine, par rapport au cintre qui fait 62 cm. Mon positionnement habituel sur bande cyclable (vers la gauche) laisse les deux roues de la remorque sur la bande cyclable ; sur voie normale, ma position habituelle (au tiers droit de la voie, dans l’alignement des roues droites des voitures) n’est pas à modifier non plus.

Deux fois j’ai pensé ne pas pouvoir monter sur une piste en site propre, à cause des poteaux empêchant les automobilistes indélicats de s’y garer comme des cons, mais, là aussi ça passe.

Arrivé chez Myriam (la nourrice de Paul), j’ai récupéré mon bonhomme qui avait l’air étonné, puis qui a gazouillé tout le trajet. Ça a l’air de lui plaire ! (Pas de photo, je me suis concentré sur “pas faire de bêtise”).

Par contre, arrivé à la maison, c’est la grosse galère. Il faut descendre Paul de la remorque, décrocher la remorque, attacher le vélo, plier la remorque, consoler Paul qui vient de se mordre la langue en tombant de la marche, porter Paul et tirer la remorque vers le hall, monter avec Paul, le mettre dans son lit, redescendre, remonter la remorque.

Ce n’est pas très grave, car on a prévu un usage balade/vacances pour cette remorque ; mais il faut le savoir : si vous habitez dans un appart au 3eme étage, avec pas de garage fermé, c’est beaucoup moins pratique qu’un siège bébé pour un usage utilitaire au jour le jour.

Vivement ce week-end qu’on puisse essayer ça sur le canal du Midi !

October 28, 2009 07:54 PM - (Comments)

October 13, 2009

colin@colino.net

A new hosting change, again, for Claws Mail

Since a few years, our website, www.claws-mail.org, has been hosted by the nice people of Develog. Our CVS and mailing-lists were hosted on dotsrc.org, another bunch of nice guys offering hosting to free software projects since years.

However, they’re starting to lack time and manpower to continue providing hosting — I guess they’re, like us, getting older and more and more busy with real life — and are in the process of shutting down hosting.

I’ve grabbed our multiple-year CVS history, and mailing-lists archives and subscribers lists from them, and after asking Yann, I’ve moved them on the same host as www.claws-mail.org.I’ve updated our CVS and Community pages to reflect the changes.

It should provide us with good quality hosting, and it also has the benefit of being free (as in beer) — thanks Yann ! Another advantage is that as Yann trusts me, I have a fair amount of control over the server, if needed.

It has only one drawback, as this server is Yann’s, and his job isn’t to provide free hosting to free software projects, that’ll add a bit of admin-load on my free time. But, mostly, it works and I won’t have a lot to do. I can also do-outsource backups, which makes me feel safer (for a little bit of time, I thought Dotsrc would leave us with no CVS history, which was a freaky thought).

Finally, I’ll be able to migrate us to Subversion or some other version-control software, if and when we agree on something, and I can get some time to do the migration and related (related is what takes some time, I’d have to change our tracker for something like Trac, change my buildbot scripts, fix the commit mail scripts, and other things I probably forget).

October 13, 2009 07:28 PM - (Comments)

October 08, 2009

breviary stuff

Henry Snowstorm – The One Day House

The One Day House, a 4-track "EP" from Henry Snowstorm, is now released. 4 instrumentals in a hiphop/downtempo flavour. Like the previous albums, it is available as a free download.

Track Listing:

1. Rough Music
2. The One Day House
3. Paradise at the Epicenter
4. Who? Me!?

the Wild Beast Records (TWB 4)

… keep on and on 'til the break of dawn …

October 08, 2009 08:48 AM - (Comments)

October 04, 2009

colin@colino.net

Un petit coffre pour siège enfant Hamax

J’ai acheté un poncho spécial pour que Paul ne soit pas trempé si un jour je le ramène à vélo sous la pluie :

Rain

Mais le machin est quand même un peu encombrant pour mon tout petit sac à dos, et du coup, je ne le prends jamais. J’ai donc bricolé un petit coffre (il n’y rentre pas grand chose de plus… mais il faut bien que ça tienne sous le siège avec mon vélo et aussi celui de Clo !) avec… un range-diapo, technologie éprouvée depuis les années 70.

CAGP4302Et voilà ce que ça donne :

DSC00341

DSC00342

October 04, 2009 07:12 PM - (Comments)

October 01, 2009

breviary stuff

Two radical history pamphlets, old and new

Two radical history pamphlets; the former supposes a high level of prior knowledge of its subject, whereas the latter serves as an introduction.

Historical Geography Research Series No. 1, 1979
Andrew Charlesworth – Social Protest in a Rural Society : The Spatial Diffusion of the Captain Swing Disturbances of 1830-1831 (78pp.)
http://www.exeter.ac.uk/cornwall/academic_departments/geography/HGRG/Research%20Series.html

1830 was a year of revolution in France and Belgium. In England it saw the revival of agitation for parliamentary reform, sustained partly by the examples of Paris and Brussels and undoubtedly encouraged by the success in Ireland the previous year of O'Connell's Catholic Association. 1830 was a year of tax potests and of widespread industrial unrest. And in the autumn and early winter of that turbulent year, whilst the first steps towards the making of the First Reform Bill were being taken, there swept across southern and eastern England a massive series of protests by agricultural labourers.

The labourers' protests took many forms. In some areas there were demands for higher wages and for tithe reductions, although the two were not always associated. Other areas saw the overseers of the poor attacked; in a few places workhouses were the target of the crowd. In central-southern England forced levies of money by the protestors were common, but even more widespread were the detruction of threshing machines. And as a background to the collective protests there was the firing of barns and ricks and the receipt of threatening letters, often signed by the mythical 'Captain Swing'. Finally, after earlier concessions, order was brutally restored.

Such, in brief and bare outline, were the Captain Swing protests of 1830. In the most detailed study of the the protests so far, Hobsbawn and Rudé maintain that:

One thing can be said with some confidence: they [the protests] were essentially a rural and local phenomenon. That is to say their diffusion had nothing to do with national lines of communication and very little to do even with the local towns. Over most of Sussex, Hampshire and Wiltshire, for instance, the movement spread across such main roads as there were from London to the coast of from one town to another … The path of the rising … followed not the main arteries of national or even county circulation, but the complex system of smaller veins and capilliaries which linked each parish to its neighbours and to its local centres.
[E.J. Hobsbawm and G. Rudé, Captain Swing (London 1969; rev. ed. 1973) 159]

It is contended that these conclusions are at variance with the evidence. In fact, the diffusion of the protests had a great deal to do with national lines of communication. Moreover, it is argued that this altered perception of the spread of the revolt opens up new questions and possibly affords new insights into the world of the agricultural labourer. The new findings challenge not only Hobsbawn and Rudé's views on the spatial patterning of the protests but also their conclusions on the unpolitical motivations of the labourers' actions.

Thus the first part of the monograph sets out to identify the channels along which the disturbances spread. In so doing, although we can identify pathways of the rising different to those indicated by Hobsbawn and Rudé, simple contagion models of diffusion are still inadequate to explain why the major routeways of southern and eastern England guided the spread of the revolt. In the second part of the monograph, therefore, the diffusion of the protests is explained in the light of the work of such historians as Charles Tilly and E.P. Thompson. Their perspective on social protest places more emphasis on the 'political' and organisational aspects of collective action, rather than on economic motivation and on the spontaneity of the outbreak of disturbances. It seeks to place collective protest within its historical context, the spread of crowd turbulence reflecting the political crisis of the day rather than the ever present hardships of the common people.

Bristol Radical Pamphleteer #11, 2009
Steve Mills – A Barbarous and Ungovernable People! A Short History of the Miners of Kingswood Forest (20pp.)
http://brh.org.uk/publications.html

"A barbarous and ungovernable people" is a bit of a strong condemnation of a community. Especially considering that at the time the community in question was situated on the outskirts of a vibrant city in Britain. The people of Kingswood Forest supplied the south west of England and the industries of Bristol with coal, and it is fair to say that without the Kingswood Forest coal Bristol would not be the city it is today. However, the relationship between the two communities was strained to say the least.

By the time of the English Civil War 1642-1649 squatting on the common land of Kingswood Forest had become more widespread and many people exercised their age-old right of eking out a living from the raw materials that their environment provided them with. Following the Restoration of 1660, the Crown sought to reassert its authority in the old Royal Forests, Kingswood Forest included. The residents were not prepared to give up their rights easily and over several generations they resisted through petitions, physical force, tearing down of tollgates, smashing of looms, roadblocks, rioting and other means.

This pamphlet tells the story of the misunderstanding and mistrust which, from time to time, blew up into full scale conflagration.

October 01, 2009 06:56 AM - (Comments)

colin@colino.net

Les problèmes avec l’urbanisation cyclable

Aujourd’hui, je vais envoyer une lettre à trois des adjoints au maire de Toulouse, responsables des “Ecoquartiers” que je traverse pour aller au boulot. J’aimerai qu’ils aient un retour d’expérience sur les équipements qu’ils ont mis en place pour les cyclistes, car bien que l’intention soit louable, l’implémentation est parfois hasardeuse.

Peut-être que ça pourra servir ! Sait-on jamais (oui, je suis naïf comme ça). En voici le contenu :

À l’attention de Mr Jean-Marc Barès, Nicolas Tissot et Régis Godec, respectivement responsables des secteurs 5, 2 et 6 de Toulouse.

Update, le 6 octobre 2009: J’ai réalisé que le bon contact était Mr Philippe Goirand, adjoint responsable des pistes cyclables. Il m’a répondu avoir transmis mes remarques aux services concernés. J’espère que ça servira !

Messieurs,

Depuis un mois, je me rends au travail à vélo plutôt qu’en train. Mon trajet va de Saint Agne à à la ZAC du Perget de Colomiers (voir carte ci-jointe).

0-carte-trajet

Tout d’abord, je tiens à dire que la situation s’est largement améliorée ces dernières années au niveau de la “cyclabilité” de Toulouse. En particulier, j’ai remarqué que de nombreuses nouvelles bandes cyclables ont vu le jour. Je vous en remercie, cela simplifie beaucoup la vie et réduit considérablement le stress généré par le partage des voies avec les automobiles.

J’ai cependant remarqué quelques problèmes sur le trajet que je prends pour aller au travail et en revenir. Ces problèmes vont du simple agacement au réel danger.

Tout d’abord, la bande cyclable du pont Pierre de Coubertin est matérialisée par une bande de peinture, et un dessin de cycle à intervalle régulier, sur le trottoir et non sur la route. Cela pose deux problèmes. Le premier est celui du partage du trottoir avec les piétons, ce qui est normalement interdit (sauf pied à terre ou enfant de moins de 8 ans), mais aussi dangereux pour les piétons comme pour les cyclistes (écart non prévu, présence d’un handicapé moteur en fauteuil, présence d’une personne aveugle), d’autant plus que la piste zigzague parfois autour des arrêts du bus 34. D’autre part, cette bande est très dangereuse à chacun des croisements : il y a d’abord le danger des voitures qui tournent à droite et coupent la route aux cyclistes (à moins que les cyclistes ne doivent céder le passage ? la peinture en fin de bande fait penser à un stop pour cyclistes à certains croisements, mais rien n’est explicite ; il y a ensuite, après les terres-pleins centraux à ces croisements, le danger des voitures qui arrivent de la droite, et marquent leur cédez-le-passage sur le passage piéton, sans vérifier la bande cyclable. La photo numéro 1 ci-jointe montre l’un de ces croisements.

1-croisement-pont-coubertin

Sur ce pont, rouler sur la route en ignorant cette bande cyclable très mal implémentée n’est pas possible non plus, car les vélos y gênent les automobilistes, étant donné qu’ils doivent ralentir fort pour doubler en changeant de voie, qu’ils pensent que la place du cycliste est sur cette bande dont ils ne peuvent connaître les inconvénients, et avant tout, parce que la limitation de vitesse à 50 km/h sur ce pont est tout sauf respectée.

Enfin, l’arrivée sur le rond-point séparant le pont de l’avenue de Muret et du boulevard Déodat de Séverac est marqué par une absence totale de sortie propre. Les cyclistes ont le choix entre continuer à emprunter le trottoir et les passages piétons, ou essayer de redescendre sur la route au premier passage piéton.

Sur ce pont, une vraie bande cyclable dans chaque sens, continue, peinte en verte, serait la bienvenue.

Je passe ensuite par le boulevard Déodat de Séverac, du pont Coubertin vers les Arènes. Il y a ici une bande cyclable sur la route, ce qui permet de rouler tranquillement sur la majeure partie du boulevard. Il n’y a que deux problèmes à cet endroit. Devant le lycée, beaucoup de parents automobilistes  confondent la piste cyclable avec un parking dépose-minute et s’arrêtent dessus le temps de déposer leurs enfants, forçant les cyclistes à s’arrêter ou à s’insérer dans la voie des voitures. Certains automobilistes venant de la voie d’en face (devant la 206 grise sur la photo 2) n’hésitent pas à couper la route au cycliste pour faire demi-tour (puis dépose-minute) lorsqu’enfin le flot de voitures s’interrompt. Ces problèmes sont d’ordre éducatif hélas, je ne sais pas trop ce qui serait faisable pour obtenir un peu plus de respect de cette bande cyclable. Pour ma part, j’ai arrêté de frapper aux vitres pour signaler leur comportement dangereux aux conducteurs ; ça semble inutile sur le long terme, et potentiellement dangereux (l’usager de la route étant rarement de bonne humeur à l’heure de pointe le matin).

2-bd-deodat-severac

Enfin, sur ce boulevard, la bande cyclable est interrompue sur le dernier tronçon, après la rue Nungesser et Coli, ce qui est très dommage pour cette petite centaine de mètres où je me retrouve coincé dans le bouchon, dans les pots d’échappement. Ce serait un grand progrès que de la compléter.

Je passe ensuite rue de Négogousses, où la construction d’un immeuble nous interdit la piste cyclable, encombrée par divers panneaux, voitures, bétonnières et autres camions-grues, puis par l’avenue de Lardenne.

Sur l’avenue de Lardenne, à la sortie du rond-point Henri Verdier vers Lardenne, on trouve un petit bout de piste cyclable derrière le trottoir et l’arrêt de bus, et qui redescend à peine cinquante mètres plus loin sur la rue (voir photo numéro 3). Pourquoi ne pas avoir raccourci le trottoir pour mettre la bande devant, sur la route ? Cela peut sembler un petit inconvénient, mais lorsqu’ils s’ajoutent les uns aux autres, et que l’on respecte les feux rouges comme je le fais), cela finit par représenter beaucoup d’arrêts/relances inutiles, sur 15 kilomètres.

3-rond-point-henri-verdier

Toujours sur l’avenue de Lardenne (vers Lardenne), au niveau du croisement avec le chemin Tissié: la bande cyclable quitte la route pour se retrouver sur le trottoir (voir photo numéro 4). Comme sur le pont Pierre de Coubertin, le partage du trottoir est dangereux pour les piétons comme pour les cyclistes. Le cycliste est ensuite censé redescendre sur la route au croisement suivant avec le chemin du Calquet (voir photo numéro 5).  À cet endroit, quasiment aucune des voitures qui tournent à droite ne s’arrête pour laisser passer un cycliste lorsque le feu est vert (je pense que la plupart ne voient même pas le cycliste en question). Pour passer, il faut donc attendre que le feu soit rouge sur l’avenue, et donc vert sur le chemin du Calquet. Il va sans dire que je n’ai pris cette portion de piste qu’une seule fois et que je passe maintenant sur la route…

4-croisement-chemin-tissie

5-croisement-chemin-du-calquet

Je tourne ensuite sur le chemin du Touch, et la suite de mon trajet est presque intégralement dépourvu de piste ou bande cyclable ; cependant cela ne me pose pas de problème, le trafic y étant moindre.

Sur le trajet du retour, on retrouve des points durs avenue de Lardenne : Au rond-point des Epoux Mongelard, la piste cyclable disparaît soudainement. Sommes-nous censés prendre le bateau pour monter sur le trottoir, ou bien continuer sur la route ? On ne peut pas le savoir, grâce à l’exposition permanente du vendeur de tondeuses qui recouvre une potentielle peinture de cycle (voir photo numéro 6) ; enfin, en arrivant sur le rond-point/croisement avec la rue Négogousses, la bande cyclable passe derrière le trottoir, pour redescendre transversalement à la route à côté du passage piéton (voir photo 7).

6-rond-point-des-epoux-mongelard

7-lardenne-vers-negogousses

Dans l’attente de votre réponse, je vous remercie de votre attention.

Cordialement,

Colin Leroy

October 01, 2009 04:58 AM - (Comments)

September 29, 2009

colin@colino.net

Un support de feu arrière pour siège enfant Hamax

Depuis que je vélotaffe, les jours raccourcissent de plus en plus, et il est maintenant temps de réfléchir à une solution bien visible d’éclairage (j’ai déjà des Reelight, mais c’est pour avoir de la lumière en permanence même si j’oublie le reste).

Pour le feu avant, le porte sac complique les choses, donc on verra ça sous peu.

Pour le feu arrière, j’ai acheté un petit feu à LED de chez decathlon à 5.50 €. J’avais déjà acheté le même (et perdu) il y a quelques années, donc il me restait un support sur la tige de selle.

L’inconvénient c’est qu’avec le siège Hamax, ben ce feu, il sert à rien… Personne le voit à part mon ptit bonhomme…

Donc, matériel : une équerre, deux vis métal, leurs écrous (budget inférieur à 1 €).

J’en ai profité pour mettre de la colle forte dans les vis et les écrous, histoire d’éviter qu’on me démonte gentiment tout ça. Pour éviter qu’on ne me démonte le siège lui-même, je l’ai troué pour y passer un petit antivol-câble :

DSC00337

Espérons que ça suffise :-)

September 29, 2009 07:18 PM - (Comments)

September 25, 2009

colin@colino.net

La taxe carbone et les alternatives crédibles à la voiture thermique

Récemment une amie se demandait quelles alternatives on pourrait trouver à la voiture à moteur thermique pour consommer et polluer moins, et pourquoi les voitures électriques étaient si cher, et pourquoi il n’y avait pas d’alternative crédible.

Et bien je pense que les alternatives à la voiture à moteur thermique, ce n’est pas une voiture avec un moteur à énergie différente. En effet, l’une des seules matières premières qui puisse fournir autant d’énergie que le pétrole, c’est l’uranium.

Il existe des voitures hybrides comme la Prius (qui consomme toujours 5l/100), des voitures purement électriques qui se traînent sur quelques dizaines de kilomètres (de 60 à 300, 160 en moyenne d’après les différents articles sur voitureelectrique.net juste pour pouvoir faire des pointes à 130), des prototypes à hydrogène, et d’autres trucs farfelus, comme la voiture à air comprimé (MDI par exemple, qui restent très évasifs quant à l’énergie nécessaire à compresser l’air) ou encore le moteur Pantone (qui réduirait la consommation de 30% et la pollution de 70%. Paraît-il. Je dubite. Même si ça marchait, je crois savoir que l’eau n’est pas une ressource renouvelable ou inépuisable).

Tous ces systèmes essayent de moins dépendre du pétrole pour se procurer l’énergie nécessaire au déplacement, mais c’est difficile. Il faut donc diminuer l’énergie nécessaire au déplacement.

La réduction de la masse

Le problème, c’est que ces véhicules pèsent toujours plusieurs centaines de kilos, et roulent toujours à (au moins) une centaine de kilomètres à l’heure. Il faut beaucoup d’énergie pour atteindre ce résultat. Un relativement petit moteur, actuellement, fait 90 chevaux. On trouve des moteurs de 150 ch sur des voitures qui n’ont même pas pour vocation d’être sportive, et des monstres de 2-3 tonnes et 300ch. Pour rappel, un être humain moyennement entraîné a une puissance de 0,20ch…

C’est à dire que quand on prend sa voiture pour se transporter, seul et sans bagages, d’un point A a un point B on utilise un moyen de transport 450 fois plus puissant que nécessaire. Nécessairement, ça consomme beaucoup plus d’énergie que nécessaire. (Je rappelle qu’un trajet sur deux effectué en voiture fait moins de trois kilomètres, et le taux moyen d’occupation d’une voiture est de 1,3 personne).

Pour éviter cela on peut utiliser des moyens de transports différents : la marche, le vélo, les transports en commun (dont le ratio poids total/charge utile est meilleur), et toute une gamme de véhicules à pédales (assistés électriquement ou non) existe déjà, avec lesquels on peut, outre se transporter, transporter des enfants (on peut transporter trois enfants avec un siège enfant et une remorque), transporter des courses (remorque), faire de relativement longues distances (vélo couché, vélomobile – un truc tout bizarre mais s’il était majoritaire en ville… il serait super pratique). Certes, cela demande des efforts physiques, et pour beaucoup, c’est actuellement impensable car c’est dangereux à cause des voitures (c’est en partie faux : ce n’est pas très dangereux, beaucoup moins qu’un deux-roues motorisé, comme le montre ce document de la FUBicy ou celui-ci de la Sécurité Routière. C’est vrai, par contre, que la dangerosité provient des automobiles et poids lourds), ou bien encore parce que ça fait suer (au sens propre) et qu’il faut se changer de tshirt.

Développer les transports en commun, c’est possible (il faudra aussi les rendre attractifs), et rendre le vélo attractif, ça devrait être faisable avec les infrastructures adaptées. Ailleurs, ça marche déjà pas mal :

Enfin, plus la proportion de modes de transports doux est grande, moins ces modes de transports sont dangereux, car ils sont plus pris en compte et respectés.

La réduction de la distance

Pour dépenser moins d’énergie en transport, on peut aussi… moins se transporter. Cela paraît évident mais nous ne sommes pas prêts, psychologiquement, à l’accepter. La plupart d’entre nous qui sommes en appartement espère pouvoir habiter dans une jolie maison avec un jardin, et tant pis si elle est en périphérie, mal desservie par le réseau de transport en commun. Ça, c’est l’une des choses qui rend quasiment indispensable la voiture, et même souvent deux voitures. J’aimerai beaucoup que mon fils puisse jouer dans le jardin quand il le veut… Mais peut-être pas à ce prix…

Mon père architecte me disait que ça fait déjà quelques années que les villes commencent à se regrouper et se re-verticaliser. Il n’est bien sûr plus question de faire des tours comme dans les années 70/80, mais le fait est que le pavillon individuel commence à perdre du terrain sur les petites collectivités. Habiter moins loin de son lieu de travail, faire ses courses près de son domicile (c’est plus cher et le rapport actuel de prix essence/nourriture me pousse à aller les faire en voiture, une fois par mois, chez Leader Price, plutôt que plus souvent au petit Casino d’à côté) sont des alternatives crédibles à la voiture.

La réduction de la vitesse

Plus la vitesse est grande, plus l’énergie nécessaire au déplacement est grande, et le rapport est loin d’être linéaire. Je le sens à vélo, l’effort entre 15 et 20 km/h est peu différent, entre 20 et 25 km/h on commence à le sentir, et entre 25 et 30 km/h, c’est dur et je lutte. C’est normal : avec l’aérodynamisme pourri d’un vélo droit, il faut faire deux fois plus d’effort pour avancer 1,3 fois plus vite.

C’est pareil en voiture : pour aller plus vite, il faut consommer plus. Une Golf diesel de 90ch qui consomme 6l/100 sur l’autoroute à 130, consomme 3,7l/100 sur la même autoroute à 90. Par exemple, avec notre voiture et sur le trajet Toulouse-Tosse, qu’on fait assez souvent, on pourrait faire ça et consommer 15 litres au lieu de 21, mais on perdrait 50 minutes.

Mais c’est pas crédible tout ça, c’est chiant !

Parmi les gens que je connais, toutefois, l’écrasante majorité ne peut pas faire autrement que d’aller travailler en voiture, par exemple. Même les citadins. En réalité et en l’état actuel des infrastructures, la plupart de mes amis citadins pourraient faire une combinaison de : bus, métro, pieds, vélo, train. Ça leur prendrait un peu plus de temps (avec les bouchons, ce n’est pas sûr). Ça leur coûterait certainement moins cher. Mais ce serait un peu moins pratique, car la voiture, elle est en bas de chez nous, et elle nous amène pile au boulot, pas besoin d’attendre qu’elle passe, elle ne fait pas grève, et on peut emmener nos enfants chez la nourrice avec. C’est cette somme d’avantages indéniables de praticité qui fait que ce n’est pas possible de ne pas prendre la voiture. Avec un litre d’essence à 4 euros, soudainement, ces avantages deviendront proportionnellement négligeables et ce sera plus facile de faire autrement…

Clo, par exemple, prend la voiture pour aller travailler, ça lui permet de poser Paul chez la nourrice et d’arriver au travail en trente minutes. En transport en commun, il lui faudrait aller chez la nourrice avec Paul en poussette (12 minutes), poser Paul, aller prendre un métro à la station la plus proche (5 minutes de marche/attente + 20 de métro), puis un bus (15 minutes de marche/attente puis 15 de bus). Une heure dix de transport.

Alternativement, elle pourrait faire huit kilomètres à vélo sur un trajet moyennement adapté (en plein centre ville, il y a peu de pistes cyclables, ou bien sur de grandes artères sur ce trajet). C’est beaucoup plus contraignant, car il faut s’habiller en fonction du temps, se faire pleuvoir dessus, prendre du change quand il fait chaud, et supporter des dizaines d’automobilistes au mieux inattentifs, au pire discourtois. Le vélo sera une alternative crédible quand l’essence sera plus chère. Ou que nous aurons déménagé à un endroit plus adapté à nos lieux de travail.

Pour moi, c’est déjà fait, et c’est facile : j’habite à 500 mètres de la gare où passe un train qui m’emmène directement, sans changement, en 20 minutes à une autre gare située à 600 mètres de mon lieu de travail, pour 35 euros par mois. Considéré comme cela, c’est difficile de trouver un seul avantage à la voiture ! C’est une chance, en un sens, mais aussi, lorsque nous avons emménagé où nous habitons, cette gare (et le métro juste à côté) ont pesé pour beaucoup dans notre choix.

Et le reste ?

Pour consommer moins d’électricité, c’est à peu près pareil : la seule alternative, c’est de changer nos habitudes. Je n’ai pas vraiment besoin de mon serveur dans mon placard. Il pourrait être hébergé en mutualisé. Mais c’est tellement plus pratique que ça me pousse à consommer 100W 24h/24. Pour l’instant…

Pour le chauffage, c’est la même chose : l’amélioration des isolations des logements neufs auraient dû faire baisser les factures de chauffage ces dernières décennies. Or, elles sont restées stables, car les surfaces chauffées ont augmenté. Les constructions neuves, souvent bien isolées, parfois HQE (Haute qualité environnementales), parfois carrément “passives“, sont plus écologiques et économiques dans leur consommation d’énergie que les vieux immeubles en parpaing et simple vitrage. Elles sont aussi plus grandes, plus excentrées, et souvent mieux chauffées, ce qui augmente le coût du chauffage.

Il y a plein d’autres choses que l’on peut changer pour consommer moins d’énergie, et c’est ce que la taxe carbone est censée nous faire réaliser : en nous montrant le vrai prix – à long terme – de notre mode de vie. Et ce qu’on est censé réaliser, c’est que nos habitudes devront changer.

Le commercial du bureau d’à côté dans mon bâtiment, au boulot, avec son Porsche Cayenne (16l/100km, 380g de CO2/km) et sa manie de prendre l’ascenseur pour monter au premier étage (mais pas pour en descendre, ouf, tout n’est pas perdu), peut-être qu’il ne s’en est pas encore rendu compte. Il est caricatural, mais il est loin d’être le seul…

Et surtout, il ne faut pas croire que le problème est transitoire. Ça arrivera vraiment, il y aura pénurie, il y a aura plus de guerres du pétrole, l’énergie coûtera la peau des fesses, et on se limitera parce qu’on aura plus le choix. Paul ne partira peut-être jamais en vacances en avion de l’autre côté de la terre.

September 25, 2009 04:02 PM - (Comments)

Ricardo Mones

-bash: /bin/su: Input/output error

That's today's message from bash. Fortunately seem's it's able to spawn it, su command and a bunch of others had not been so lucky.

The ps command is another of the lucky ones, an excerpt (hey! less also works) is highly insightful:

20292 ?        S      0:00 sh -c $SMARTD_MAILER -s 'SMART error (FailedReadSmartSelfTestLog) detected on host: busgosu' root 2>&1 << "ENDMAIL"?This email was generated by the smartd daemon running on:??   host name: busgosu?  DNS domain: [Unknown]?  NIS domain: (none)??The following warning/error was logged by the smartd daemon:??Device: /dev/sda, Read SMART Self-Test Log Failed??For details see host's SYSLOG (default: /var/log/syslog).??You can also use the smartctl utility for further investigation.?No additional email messages about this problem will be sent.?ENDMAIL?
20293 ?        S      0:00 /bin/bash -e /usr/share/smartmontools/smartd-runner -s SMART error (FailedReadSmartSelfTestLog) detected on host: busgosu root
20301 ?        S      0:00 run-parts --report --lsbsysinit --arg=/tmp/fileCJFXti --arg=-s --arg=SMART error (FailedReadSmartSelfTestLog) detected on host: busgosu --arg=root -- /etc/smartmontools/run.d
20302 ?        S      0:00 /bin/bash -e /etc/smartmontools/run.d/10mail /tmp/fileCJFXti -s SMART error (FailedReadSmartSelfTestLog) detected on host: busgosu root
20303 ?        S      0:00 /usr/bin/mail -s SMART error (FailedReadSmartSelfTestLog) detected on host: busgosu root


So /dev/sda is dying, now for real. It gave me some warnings two or three weeks ago, so last week I made a complete backup on its twin disk, using ddrescue, because dd wasn't able to do it without failing.

It's time, again, to seek for a couple of disks which last for almost five years... if possible.

September 25, 2009 01:27 PM

September 20, 2009

colin@colino.net

Paul en week-end

Ce week-end nous sommes allés à Tosse. Il faisait très moche, on a réussi à se promener une demi heure entre les gouttes.

[See post to watch Flash video]

Paul a conduit la voiture, il était très fier :

[See post to watch Flash video]

Ce matin, c’était le tour de Clo de rester dormir une fois Paul réveillé ; j’ai donc eu une grasse mat’ jusqu’à… 07h09. Dur de se lever, mais après c’était chouette de jouer un peu avec mon ptit bonhomme avant que le jour ne se lève…

[See post to watch Flash video]

September 20, 2009 06:16 PM - (Comments)

September 18, 2009

Holger Berndt's Blog

Chronically Underrated: Undo

In the past years, software designers have done a lot of research not only of what a good user interface is supposed to look like, but also how it is supposed to behave. A key component (that to this day a lot of software still gets wrong) is to not bother users with dialogs, especially not those nasty modal ones, but to just do the right thing. Of course, the program can't always know what the right thing is supposed to be, so to accomodate for mistakes, the application should still shoot ahead, but offer an easy way to undo those actions again. The beautiful article "Never Use a Warning When you Mean Undo" by Aza Raskin should be a must-read for all UI developers.

Actually, this not only applies to graphical user interfaces, and clicking away dialog boxes, but also to command line interfaces. I've recently aliased rm with gvfs-trash on a few machines (including my own) for precisely that reason. Unfortunately, this alias does not work completely, but I am still hoping that I can habituate to its limitations.

Unfortunately, Claws Mail is a sinner in that respect, too. On the plus side, it makes it hard to actually loose work (so it's not guilty of Aza's worst software sin). However, in many cases it prevents data loss by distracting the user (by popping up dialog boxes), and makes it hard to revert an accidental operation (like digging up messages in the trash), so it is guilty of Aza's second and third worst software sins. Also, Claws Mail sadly doesn't come with Undo/Redo capabilities at all (well, apart from text entry in the compose window editor).

Some years ago, probably around 2004, I was looking around for a general purpose undo/redo stack that offered GObject integration for a pet project of mine. I was very disappointed to not find anything back then, so I rolled my own. It's a small class that offers undo/redo stacks (optionally with a limited stack size). Stack entries can be grouped, groups can be nested. Everything can have a description. As an optional viewer, I had a simple gtk+ widget to display undo/redo stack entry descriptions in a list (or tree, in case of groups), acting as the view in a MVC pattern. Anyways, in the end, I got distracted from the pet project, and never published it.

So, I thought I could break out the undo class from that old project, clean it up, streamline it a bit, and replace deprecated GObject/gtk+ stuff with shiny new technoligy. While doing that, I was looking around again at available undo frameworks, and was a little surprised to find one for Qt and another one for GObject, both of which I would assume to be older than my class (GUndo's ChangeLog dates back to late 2005, but some copyright headers speak of 1999). I wonder why I haven't found them earlier.. The funny thing is that both are kind of similar to what I did. Especially GUndo is (API-wise) crazily close to what I came up with (but of course, I still like mine better!). I guess there is only a limited amount of reasonable solutions to the undo/redo problem.

We'll see if it's feasible to hook up Claws Mail with an undo stack. It's usually hard to put undo capabilities into a program that hasn't been designed for that from the start. But maybe it'll be possible to put at least a few error-prone actions (like getting back a message that was falsely moved into the trash) in.

September 18, 2009 11:32 PM

September 08, 2009

colin@colino.net

Comment fabriquer un porte-sac à 0.35€ (pour petit sac)

Alors voilà… Clo est retournée travailler ! Elle amène Paul chez la nourrice le matin, et c’est moi qui vais le chercher en rentrant du travail. Pour être à l’heure chez elle, j’y vais à vélo, directement en descendant du train.

La difficulté c’est qu’après avoir récupéré Paul, en plus de mon sac à dos, j’ai le sien… un modèle 10L assez épais, que je ne peux pas mettre dans mon dos sans donner des coups de sac dans la tête du ptit bonhomme…

J’ai un peu cherché, et pas trouvé, un porte sac à dos à mettre à sur mon guidon – je le veux centré pour éviter d’être déséquilibré. Comme je n’ai pas trouvé, à part un panier complet, ce dont je ne veux pas (parce que ça saoûle tout le reste du temps)… J’en ai fabriqué un, et ça m’a coûté 35 centimes (ça marche avec une potence comme celle-ci) :

DSC00302

Liste des fournitures :

Méthode d’installation :

Tout simple, tout léger, et tout facile à enlever le cas échéant. Ça ne marche qu’avec un sac assez petit pour ne pas toucher la roue, et attention aux bouts de sangle : qu’ils ne se prennent pas dans les rayons !

September 08, 2009 06:13 PM - (Comments)

September 03, 2009

colin@colino.net

Les cyclistes polluent-ils (plus que les transports en commun) ?

Edit 22 septembre 2009: Comme beaucoup me l’ont fait remarquer en commentaires, le cycle du CO2 humain est très différent du cycle du CO2 fossile et si le calcul ci-dessous reste intéressant, il n’en demeure pas moins que le cycliste pollue beaucoup moins que les transports en commun ou quoi que ce soit qui utilise un moteur (cf commentaires de Mathieu et Quentin)…

Cette semaine, j’ai décidé d’essayer de venir au travail à vélo. Cela me fait un trajet de 15 kilomètres, en trois quarts d’heures, et j’ai trouvé un chemin sympa. C’est donc très agréable (on verra quand il pleuvra si c’est toujours aussi agréable…), et deuxième avantage, on se sent écolo :-)

Mais l’est-on vraiment ? Je me demandais avec Clo dans quelle mesure un cycliste rejette du CO2 ; j’ai donc cherché pour faire les calculs et en avoir le coeur net, et ai cherché combien un être humain rejette de CO2 pendant l’effort. J’ai trouvé sur Wikipedia (évidemment) ainsi que sur Volodalen.com, un site de coureurs.

Selon ces deux sites, au repos, la VCO2 (production instantanée de dioxyde carbone rapportée à l’unité de temps) est d’environ 0,8 litre/minute. Lorsque l’effort s’intensifie, la VCO2 monte (en même temps que la VO2, la consommation d’oxygène) jusqu’à environ 5 l/min. Ceci pour un sportif “moyen à bon” de 80 kilos. Ce n’est pas tout à fait moi, mais on va supposer que oui car je n’ai pas l’intention d’aller faire les mêmes graphiques dans une clinique ;-)

Voici le graphique en question :

O2VE

Selon les mêmes pages, on trouve entre ces deux extrêmes le “seuil ventilatoire” qui représente un niveau d’effort conséquent mais “tenable” longtemps (plus d’une demi-heure d’après “Le sport après 50 ans”). Je vais donc considérer qu’à vélo, je me mets d’instinct à ce niveau d’effort. À ce seuil ventilatoire, nos deux graphiques nous donnent une VCO2 de 3,5 l/minute au seuil ventilatoire.

C’est parti pour les calculs !

Considérons le CO2 comme un gaz parfait étant donné que la pression est basse ; on utilise donc

p.V = n.R.T

avec :
p : pression en Pa (pascals). Nous avons p = 101325 au niveau de la mer
V : volume en m3. Nous avons ici 3,5 litres de CO2, soit 0.0035m3
n : en mol, que nous cherchons
R : constante = 8,314472 J.mol-1.K-1
T : température en Kelvin. Nous avons 293.15°K pour 20°C.

Cela nous donne n = (P.V)/(R.T), soit n = (101325*0,0035)/(8,314472*293,15) : n = 0.1454 mol de CO2.

La masse molaire du CO2 est de 44 g/mol (2*MO + MC avec MO=16 et MC=12). J’expire donc 6.40g/minute de CO2. (Ces calculs rappellent la terminale…)

Sachant que ma vitesse moyenne est d’environ 20 km/h, il me faut 3 minutes pour parcourir un kilomètre et je rejette donc (roulement de tambour) 19,20 g/km de CO2 à vélo.

Au repos, à 0,8 l/m de CO2 expiré (calcul identique), je rejette donc 1.46 g/minute. Dans ma voiture il me faut 1 minute par kilomètre (en moyenne sur ses 30000 km, on est à 62km/h), soit 1.46g/km auxquels on ajoute les 149g/km provenant du moteur: 150,46 g/km en voiture.

En train, en comptant 90km/h, ça donne 0.97 g/km (car je me repose aussi). On ne comptera pas la pollution du gros diesel du train qui doit faire peur, vu que de toutes façons, il roule aussi si je ne suis pas dedans (suite au commentaire de Carsten : d’après eco-malin.com, un train diesel rejette environ 90 à 110 g/km de CO2 par passager. Si l’on compte qu’il y a 100 passagers dedans, cela fait 10 kilos par kilomètre – yay ! Si la SNCF se décidait à électrifier la ligne Toulouse-Auch, ça changerait pas mal : un train électrique c’est 5g/km/passager).

En conséquence, on peut considérer que je pollue vingt fois plus en venant au travail à vélo plutôt qu’en train (en ignorant la pollution du moteur du train qui est “inévitable” ; si on la compte, c’est cinq fois moins à vélo), et seulement sept fois moins en venant à vélo plutôt qu’en voiture.

Bon, bien sûr, ce calcul cède à la mode du CO2/kilomètre, sans tenir compte de tout le reste des saletés rejetées par un moteur et que je ne rejette pas…

D’autre part, Guillaume me fait remarquer que le cycle de vie du CO2 “humain” est très court (l’O2 est transformé en CO2 par notre corps qui se nourrit de (entre autres) végétaux, qui le captent pour pousser), tandis que le cycle de vie du CO2 des moteurs à explosion est très long (ils se “nourrissent” d’énergie fossile qui met des millions d’années à se reconstituer).

Dernier détail : plus tu es sportif, plus tes VO2max et VCO2max sont élevées, et plus tu rejettes… Si ça se trouve, Lance Armstrong rejette autant qu’une Smart ? :-)

September 03, 2009 06:52 AM - (Comments)

August 15, 2009

colin@colino.net

Un peu de nouvelles

Nous voilà rentrés de vacances, qui ont été bien remplies. Nous sommes passés par Paris, Laon, Cambrai, et enfin Orléans, pour un total de 2123 kilomètres qui nous ont permis de voir plein de gens (famille et amis). Paul a bien aimé tout ce monde, mais il a eu un peu de mal avec tous ces changements. Il a détesté les baignoires inconnues, par exemple ; finalement il est même tombé malade pour la première fois de sa vie et se traîne un petit truc. C’est en train de guérir, mais ça lui donne un petite voix cassée entre la rock-star et le chaton.

Cela ne l’empêche pas de faire plein de progrès, et maintenant on peut dire qu’il maitrise le 4-pattes et il est en train de s’attaquer à la station debout (avec quelques secondes sans les mains de temps en temps, c’est impressionnant : ça a l’air magique !).

Le voici en train de jouer aux petites voitures, il n’est jamais trop tôt pour commencer, avec la belle voiture en bois que son grand-père m’avait fabriqué quand j’étais petit !

[See post to watch Flash video]

Et ce matin, il a fait son premier tour à vélo… en tant que passager ! et ça lui a bien plu. Plus il grandit et plus il progresse, plus il nous épate !

August 15, 2009 09:16 PM - (Comments)

August 06, 2009

Holger Berndt's Blog

Claws Mail got bitten by a Snake!

I've been successfully using the Perl plugin for Claws Mail for a long time now. It hasn't seen many updates lately, but that's because I am mostly happy with it for my personal needs.

However, filters for Claws Mail is one of the few remaining areas where I'm still a Perl user. I have the feeling that my mental capabilities are insufficient for memorizing the dozens (hundreds?) of operators, magic variables etc., especially after a while of absense from the language. "There is more than one way to do it" is fine, but with age, I tend to prefer "There is a single (obvious) way to do it" as a motto. So, for all of my scripting purposes, I found a new home at the Python people. Please, no discussion which one is "better", for whatever definition of "better". Both are nice languages, and I guess people just have to figure out which one suits their individual work flow better.

So, lately, I had to embed a Python interpreter in some C code, and, as often when learning about new technologies, I though this might be a fun add-on to Claws Mail. Don't worry, I am not trying to bloat Claws Mail with every single interpreter out there -- although that might actually be a fun experience.

So I cooked up a small Python plugin for Claws Mail, which adds an interactive Python console to Claws Mail (stolen and adapted from gtkparasite - which is a great project). It's also possible to execute scripts from the menu, for further automation. The interface to Claws Mail is still limited, and only includes calling menu items for now.



(Planet readers: A short demo screencast is here).

Code is on GitHub.

PS: Yes, I know that the name Python actually refers to a commedy group, not to the animal. But I don't care.

Update: The plugin source moved to Claws Mail CVS. It also gained on a new trick on the way -- automated composing of mail messages. See the README file for an example.

August 06, 2009 07:09 PM

July 30, 2009

colin@colino.net

Datacenters and power consumption

Now that we’re in 2009, it’s been a few years since we’re more and more aware that energy is a valuable resource that should be spared. Where I work I’m handling a medium-sized datacenter of 160 servers, and they use approximately 28 kW of power. 28.000 watts, that represents 470 light bulbs, always on, burning day and night.

To this, we can add the cooling system’s consumption, which we don’t monitor but we can safely add 3 to 8 kW for the three cooling units, depending on the outside temperature. That’s what fun about datacenters, we have to burn electricity to cool down the room heated by the servers’ electricity consumption. Consider it the equivalent of putting the oven in your fridge when you bake a cake.

We’ve been trying to minimize a bit this consumption. There’s an article there that writes about shutting down servers when they’re not in use – ie, at night, or during the week-end.

Well, we thought of it first ! :-) In my opinion, it isn’t possible to shutdown every server at night : the backups run during the night, and saving its data is much more important to a company than saving electricity – sadly in some sense… So, we can’t shutdown production servers with important data on it. Luckily, where I work, a very large part of the datacenter is used for development and testing – we’re doing cluster-oriented storage, we have clusters, and about 140 out of our 160 servers are completely unused at night: developers go home.

So, one year and half ago already, I’ve implemented a way for developers to tell whether their test servers could be shutdown at night or not (in case they have long-running tests on them). It’s not a huge success, mainly because people choose 24/24 instead of 12/24 “just in case”, I think, but with approximately 30 servers down every night and during week-ends, we still spare 8 kW more than half the time. Still better than nothing…

Besides, at home, I’m now putting my laptop to sleep when I’m not in front of it. The saving’s much less and completely nullified by the server in the cupboard, but it’s still better than the days where I had three servers in the cupboard and didn’t put my laptop to sleep !

July 30, 2009 04:09 PM - (Comments)

July 26, 2009

colin@colino.net

The Prodigy à Nîmes, c’était une tuerie

Voilà, je crois que tout est résumé dans le titre :-)

Jeudi 23 nous sommes allés à Nîmes avec Yann et Betty pour voir The Prodigy en concert dans les Arènes. En première partie, il y avait tout d’abord DJ Garfld qui nous a fait du mix pas mal, puis ensuite Birdy Nam Nam qui nous ont fait de l’électro qui était bien mais pas top. En fait ç’aurait été mieux si ç’avait duré moins longtemps. Mais bon, on s’en foutait un peu, on était là pour The Prodigy. Qui ont fini par arriver sur scène et nous ont fait oublier les précédents :-), en envoyant World’s on Fire directement.

La suite a été une heure trente de sauvagerie intense avec pas de temps mort, quand ça s’est terminé on avait l’impression que le concert avait juste commencé, sauf qu’en fait on n’aurait pas tenu tellement plus longtemps :-)

Ils ont réussi à faire asseoir puis sauter toute la fosse ainsi que les gradins sur Smack my Bitch up, c’était assez impressionnant !

Je n’ai trouvé que deux vidéos avec un son pas trop pourri qui rend à peu près correctement, pas surprenant, donc c’est tout :).

July 26, 2009 07:22 PM - (Comments)

July 24, 2009

breviary stuff

Bristol Radical History Group at the Tolpuddle Martyrs Festival

The Tolpuddle Martyrs Last weekend I went along to the Tolpuddle Martyrs Festival. (For those who have never heard of the Tolpuddle Martyrs: "On February 24th, 1834, six farm labourers from Tolpuddle [Dorset, UK] were arrested on a charge of taking part in an ‘illegal oath’ ceremony. The real offence was that they had dared to form a trade union to defend their livelihood. For this they were sentenced to seven years’ transportation to the penal colonies of Australia. The sentences provoked an immense outcry, leading to the first great mass trade union protest. The campaign won free pardons and the Martyrs’ return to England. It was an historic episode in the struggle for trade unionists’ rights in Great Britain.")

Of particular interest to me were a couple talks delivered by the Bristol Radical History Group, which were perhaps the most controversial thing there. These were about the large scale Captain Swing riots "that swept across the south of England 3 years before the events in Tolpuddle." These were controversial in the sense that they were carried out by the so-called ignorant rural peasants. As the speaker pointed out, whereas The Tolpuddle Martyrs were innocent, the Swing Rioters were guilty and they were defiant in their guilt. They recognised their rights as people, despite what the law and the law-makers would have to say on the matter. It is the innocent/guilty polarity, (amongst other reasons), according to the speaker, which means that today many have heard of the Tolpuddle Martyrs but few have heard of Captain Swing, despite the Captain Swing riots being a much larger movement involving a far greater number of people, and being a far bigger problem for the authorities. I agree. The talk was titled 'The Flea and the Elephant', the flea being Tolpuddle, the elephant Captain Swing.

The Bristol Radical History Group have put on many events, check their website for details of upcoming events. They also publish a series of pamphlets, three of which I picked up whilst I was at the festival:

Kevin Davies - We Come For Our Own And We Shall Have It, Smuggling In Poole And Dorset We Come For Our Own And We Shall Have It, Smuggling In Poole And Dorset
Kevin Davies
Bristol Radical Pamphleteer #2
A look at the history of smuggling in Dorset and the government responses to it. This pamphlet examines whether smugglers should be considered folk heroes and to what extent smuggling was a community enterprise.

Stephen E. Hunt - Yesterday's To-morrow, Bristol's Garden Suburbs Yesterday's To-morrow, Bristol's Garden Suburbs
Stephen E. Hunt
Bristol Radical Pamphleteer #8
In 1909, the Bristol Garden Suburb Limited was set up to implement the ideas Ebenezer Howard popularised in To-morrow: A Peaceful Path to Real Reform, first published in 1898. Garden-City principles inspired promising developments at Shirehampton, Sea Mills and Keynsham chocolate factory, but were diluted in the construction of Bristol's interwar housing estates at Knowle West and Bedminster, Hillfields, Southmead, Horfield, Speedwell and St Annes. Today it's timely to revisit Howard's ideas in the light of several topics of green chatter — transition towns, peak oil and Gordon Brown's intention to promote the construction of eco-towns.

Will Simpson and Jim McNeill - Nicotiana Brittanica, The Cotswolds' Illicit Tobacco Cultivation In The 17th Century Nicotiana Brittanica, The Cotswolds' Illicit Tobacco Cultivation In The 17th Century
Will Simpson & Jim McNeill
Bristol Radical Pamphleteer #9
Four centuries ago a group of farmers from the West Of England decided to see if they could make a living for themselves by growing tobacco. This put them at odds with the English state and its imperial ambition to build a mercantile economy driven by indentured and slave labour. This is their story of resistance.

To date, the Bristol Radical History Group have published 10 pamphlets, see their website for further information.

July 24, 2009 11:44 AM - (Comments)

July 22, 2009

Holger Berndt's Blog

TrashJournal: Your friendly Desktop Raccoon

The Gnome desktop doesn't really have a good view on the trash can. The display in Nautilus is very limited for a number of reasons. Most importantly, it does neither display the original path, nor the deletion date. Thus, it does not allow sorting by deletion date, and you never know where your restored files will end up. Also, if you deleted two files with the same name, there's no way to distinguish between them.

That leaves two choices for the humble user: Keep the trash can in order, or treat it as a black hole.

As a third option, one can use a little Python script that I wrote up recently, which gives a journaled view of the trash can:


Code is (as usual) on GitHub. As it's a Python script, you should be able to just run it (provided that you have Gnome- and GTK+ Python bindings installed).
In fact, if the gconf dependancy was made optional, the script should work on any desktop which conforms to the freedesktop.org trash can spec.

Okay, admittedly, this pet project is basically the result of my wanting to try out GIO, which is actually pretty nice.

July 22, 2009 08:08 AM

July 21, 2009

iwkse Alarm Clock

Fancy: The Webkit Plugin for Claws Mail

The Webkit Plugin, named as Fancy Plugin is available in claws-mail cvs extra plugins!

Get it from here:

export CVS_RSH=ssh
cvs -z3 -d:pserver:anonymous@claws-mail.org:/ co -r gtk2 plugins

Since there are some issue with snapshot on claws-mail.org here is available a mirror
For the same issue packages for ubuntu are not available. Anyway, unofficially, you can get them from
this link.


Snapshots are now available on Claws Mail

Anyway for any problems you can write to me or join the #claws channel on freenode.

Have fun.

July 21, 2009 07:28 AM - (Comments)

July 19, 2009

colin@colino.net

Quitcount 1.5

Since I’ve blogged about my little Quitcount tool, I’ve received a Hungarian translation from Páder Rezső, a German translation from Fabian Affolter, and an Italian translation from Salvatore de Paolis, and fixes from a few other people (most of them I already know from Claws Mail, heh :-) Thanks guys! I’ve released 1.5 to have them in a tarball, because this little tool will probably end up packaged in a few distros :-)

July 19, 2009 09:27 PM - (Comments)

July 18, 2009

Holger Berndt's Blog

Excursion to Packaging-Land

I just pushed a new branch that cherry-picks most of the commits from the split-view branch of Nautilus, but only requires dependancies that are available on a standard Ubuntu Jaunty installation.

More excitingly, I just uploaded packages for this branch for Ubuntu Jaunty to my PPA. The primary reason was to make it easier for me to use the branch at work. But of course, this also makes the code more accessible for Ubuntu users, so I hope for more testing reports.

July 18, 2009 03:43 PM

Ricardo Mones

Debcamp

So, finally here we are, after a 6 hour travel by car I arrived to DebConf 9 venue on Thursday afternoon.

Weather is marvelously sunny (as expected), but not as hot as the figures may suggest (36ºC at arrival, something less today).

Still a lot of people to come (DebConf starts next week) but nearly about 50 are already here, and growing.

July 18, 2009 12:21 AM

July 09, 2009

colin@colino.net

QuitCount: what did I save since smoking?

Paul (my friend, not my son) said to me some time ago, “Still obsessed with smoking, I see ;-)”. That made me realize that indeed, stopping smoking sometimes make me think more about it than I did when I smoked. I guess that’s rather logical, I’m still in the long process of readjustment (of my habits, my neurons and my brain). My sister quit years ago and still thinks of it from time to time, too. She showed me she still has a quit counter widget loaded on her Mac OS X, with really big numbers on it, and I looked for one on my XFCE desktop. I didn’t find any, though, so I wrote one myself :-)

Ladies and gentlemen, I hereby present you QuitCount, a little piece of software that has no other practical value than keeping yourself motivated if you try and quit smoking, and in a second phase, impressing yourself with big numbers (I already didn’t inhale more than 12 grams of tar).

You can also use it as a start counter to see how much you smoked since you started, but don’t; that’s scary.

Translators and packagers welcomed!

July 09, 2009 06:10 AM - (Comments)

July 05, 2009

breviary stuff

No Quarter publications

No Quarter #4 cover image (click for larger version) No Quarter #4
Issue number 4 of No Quarter, the publication sometimes described as "a zine about radical history", has been released. This issue contains The "Illegalists" by Doug Imrie, reprinted from Anarchy: a Journal of Desire Armed. Illegalism is the anarchist philosophy which embraces criminality as a method of reappropriation of wealth. This article is primarily concerned with the actions of French illegalist Marius Jacob and his band of illegalists who were active between the late 1800s and early 1900s. Following on from this is Why I Was A Burglar by Alexandre Jacob, (reprinted from Fifth Estate, #370), where we can read a personal account of an illegalist.
Also in this issue is an interview with a founding member of Past Tense and the South London Radical History group on his motivations and experiences. This is followed by two pieces on Anna Trapnel, seventeenth century Fifth Monarchist prophetess and Roger Crab, seventeenth century hermit, ethical vegetarian, and political writer, (besides other epithets). The life of Franklin Rosemont, poet, artist, historian, street speaker and surrealist activist, who died shortly before this issue went to print, is heralded.
No Quarter #4 finishes up with a review of Anja Kirschner's 2008 film, Trail of the Spider and several book reviews.
No Quarter #4.5 cover image (click for larger version) No Quarter #4.5 The Politics of Carnival
This half-issue of No Quarter was produced in a limited edition as a fundraiser for the 2009 Calgary Anarchist Bookfair. It contains an audio CD which has an eclectic mix of music which relates to No Quarter's areas of interest. It seeks to promote carnival as subversion, as a coming together of the people under their own rules and their own organisation, as opposed to carnival as social control. From a British perspective you might illustrate that by saying that it is juxtaposing the free festival scene of the late 20th century with Glastonbury festival as it is now. Its packaging is such a good solution and shows the innovation needed by small scale fanzine producers.
No Quarter Pamphlet Series #2 cover image (click for larger version) No Quarter Pamphlet Series #2 : Trevor Bark – Crime Becomes Custom, Custom Becomes Crime
Author's abstract:
The British Marxist Historians (BMH) were involved in the study not only of protest and social movements, but of what was and was becoming crime. The enclosures, the change from wages in kind (perquisites) to the wage form itself (Linebaugh 1991), wood gathering, nutting and so on that were previously peoples custom were criminalized and fought politically by the disposessed. Thompsons 'moral economy' theses was based upon the study of bread riots, and this in turn became part of what is known as the social crime debate (Douglas Hay et al, 1975)
Rather than economic crime and protest being central to the poors' lives, crime became marginalized and left to the professionals or a marginalized lumpen element in the Fordist era. Into the late modern era we have seen the growth of crime often linked to high unemployment and 'flexibility', and the growth of social movement protest.
The themes of the BMH about a militant participation in the present, a political Marxism, and reconstructing theory are important ones. To that end we involve ourselves in the social movements, whether that is a rediscovery of the mass tobacco and alcohol smuggler, other informal economic activity in the city, or the emerging anti-capitalist movement.
I am presenting a case for the development of the social crime concept by testing whether the key characteristics can be found today, and also politically reassessing the nature of crime itself. Originally (Hay et al, 1975) said it wasn't possible to distinguish between 'good' criminals here and 'bad' criminals there, and this all blurred into the labouring poor; Linebaugh (1991) notes payment of wages was often years behind. The distinction between the respectable/unrespectable, non-deserving and deserving poor manifested itself in the political development of the Labour movement and Marxism, and can be found within the anti-capitalist movement.
Following "No Logo" and its emphasis on the trademark brand names in the shops I will present analysis about shoplifting and whether the politics of part of the anti-capitalist movement has had any effect on shoplifters choices. I will ask the question about how you go about destroying the brand most effectively, and outline the liberalism found within "No Logo". 'Crime' is now a central feature of the social movements large manifestations and also for a significant section of the general public.
No Quarter Pamphlet Series #3 cover image (click for larger version) No Quarter Pamphlet Series #3 : Omasius Gorgut – Poor Man's Heaven, The Land of Cokaygne: A 14th Century Utopian Vision
"In most if not all the corners of Europe, in their mythologies, folk tales, popular songs and festivals, the poor of the Middle Ages dreamed up a land where their sufferings were reversed, where people lived in harmony and plenty without having to work.
The lives of the poor in medieval times were viciously hard – oppressed and exploited by the rich and the church, terrorised by their hired soldiers, forced to work all their lives without hope of any change in their situation. On the one hand they were told constantly by the Church that they could not expect and should not dream of a better existence in this life; on the other that a paradise existed for them somewhere in another.
People were also “much more directly aware than they are today of the tyranny of necessity, the essential hardness in the nature of things. Man was so far from being the master of his environment that he was always prone to feel that it was his master. He depended on the weather not only because bad weather is unpleasant, but because a bad season might mean absolute famine. And, under the very best conditions, long hours and a bare living were still a necessity from which he could see no possible way of escape.” (A.L. Morton)
Not surprising then that their frustrated dreams should create a place where everything was free, where life was easy, where the weather was always fine, where all desires came true – and where the rich could never hope to come.
Their dream of a Utopia of the poor appears as the English Cokaygne and the French Coquaigne, as Pomona or the pagan Island of Apples, where “all is plenty and the golden age ever lasts. Cows give their milk in such abundance that they fill large ponds in milking. There, too, is a palace all of glass, floating in the air and receiving within its transparent walls the souls of the blessed." (Baring-Gould)
It is the Irish Hy Brasil, where "milk flows from some of the rivulets, others gush with wine".
In medieval German legend it is Scharaffenland, or Venusberg, the mountain of delight and love, where Lady Venus held her court, leading a fantastical life of pleasure in the company of carefree spirits of the air, together with fair nymphs of woodland and water, and heroes seduced there from the world above.
In Holland they imagined Cokaygne as Luikkerland, where “All you loafers always lying about, Farmer, soldier, and clerk, you live without work, Here the fences are sausages, the houses are cake, And the fowl fly roasted, ready to eat.
The dream is expressed as the Country of the Young, as Lubberland; as the Poor Man's Heaven and the Rock Candy Mountains.
These fantastic lands shared the same characteristics: an earthly and earthy paradise, an island of magical abundance, of eternal youth and eternal summer, of joy, fellowship and peace. “Brueghel painted it in a picture that has many of the most characteristic features: the roof of cakes, the roast pig running round with a knife in its side, the mountain of dumpling and the citizens who lie at their case waiting for all good things to drop into their mouths… It is the Utopia of the hard-driven serf… for whom the getting of a bare living is a constant struggle.
In 14th Century England, this image of a free earthly paradise emerged in a popular song, The Land of Cokaygne. Many versions existed, varying from area to area; and it was anonymous, a product of many minds, an expression of the subversive desires of a class."

This text is an updated version of that originally issued by Past Tense.
Further information on No Quarter publications can be found on the No Quarter website: anarchistpirates.blogspot.com

July 05, 2009 09:26 AM - (Comments)

July 02, 2009

Ricardo Mones

Go virtual and die

Yesterday I got a interesting announce in my inbox: try our hosting solution for free during two months. The announce came from the nice people of Gandi, the registrar where I maintain my mones.org domain.

So far, so good. Applied and got my share in minutes. The features are not impressive, just the minimal: 256 MB RAM, 3 GB (system) + 5 GB (data) disk, 5 Mbit bandwidth and a 1/60th part of the processor, which is marketed as something between a Pentium III and Via C7 processor (not very informative).
What took most time was to wait the reverse DNS to be active because of my change of mind in the middle of the process :-). The system installed was Debian Lenny, of course, and took just minutes.

Less than 24 hours later you can see what happens, and I have not access to the server... despite I love the way Gandi does business those are not the things that inspire confidence in a hosting solution :-(.

July 02, 2009 10:44 AM

June 29, 2009

colin@colino.net

Deux mois sans cigarette

Ça y est, ça fait plus de deux mois que j’ai arrêté de fumer. J’en suis fier :)

Depuis ce post à J+ 3 semaines, j’ai continué à évoluer sur le chemin de l’ex-fumeur. Les clopes réflexe (après manger, en attendant le train, …) ne sont plus dangeureuses et ne me tentent plus du tout. La plupart du temps, je n’y pense même pas ; il arrive cependant que l’idée me traverse la tête que c’est l’heure de descendre fumer après le film, par exemple. La force de cette habitude ne doit pas être sous-estimée, pourtant : Clo m’a dit qu’il lui arrive encore de se dire qu’elle allait, par exemple, lire son mail pendant que je serais en bas, avant d’avoir un “instant pff n’importe quoi”…

Il reste la difficulté des occasions exceptionnelles et spéciales où j’avais l’habitude de fumer, par exemple une situation conflictuelle me provoque encore une envie de fuite vers une cigarette. Il faudra que je me méfie lors des prochains mariages, sorties ciné. La prochaine occasion du genre c’est dans un mois, fin juillet, concert de Prodigy. Truc de punk, méfiance, j’ai peur de ne pas pouvoir me reposer sur la loi Evin sur ce coup là. Je compte sur le tassement de la foule pour empêcher les gens de fumer.

L’avantage de pas fumer c’est que ça va quand même beaucoup mieux dans mes poumons. (Comme dirait mon médecin traitant en rigolant, “Ooooh, c’est vrai ? Quelle surprise, je m’y attendais pas du tout !”) Je n’ai plus besoin de traitement de fond et très rarement de ventoline. Je peux faire trente kilomètres à vélo avec un non-fumeur entraîné (hello Yann) et le suivre, ou en faire six comme un bourrin pour ne pas rater le train (et arriver à l’heure sauf que y’a grève, mais ceci est une autre histoire). Un autre avantage c’est que quand il flotte ou qu’il fait 34°C à l’ombre j’ai pas besoin de sortir.

Sinon, d’autres indices me laissent croire que ça progresse plutôt bien : au boulot, l’empêcheur d’arrêter en rond n’essaye plus de me pousser à la clope, depuis peu. On ne me dit plus que je suis chiant depuis que j’ai arrêté – c’est vrai que j’ai eu une phase où j’ai été, on va dire, plus direct qu’avant. Je crois que ça m’est resté un peu, mais d’un autre côté, envoyer paître, à dose raisonnable, ça fait moins de mal (à tous) que de serrer les dents en attendant que l’agacement passe. Enfin, les clopes des autres commencent à puer à peu près tout le temps (au début de l’arrêt, elles sentaient bon), et lorsqu’un collègue fumeur vient me demander quelque chose juste après sa clope, c’est une infection. Chers collègues fumeurs, vous commencez à sentir mauvais dans mon nez, et je m’en réjouis, c’est bon signe pour moi.

June 29, 2009 05:42 PM - (Comments)

June 28, 2009

colin@colino.net

Escalade en falaise : vidéo

Voici un petit montage des vidéos du week-end dernier.

[See post to watch Flash video]

June 28, 2009 08:15 PM - (Comments)

June 23, 2009

colin@colino.net

Première sortie escalade en falaise !

Dimanche, Clo m’a fait une super surprise de fête des pères et m’a emmené au pied du Roc d’Anglard, à Saint-Antonin Noble Val, grimper en compagnie de Pascale et Gildas et d’Ariane et Olivier. Ça fait maintenant plus d’un an que j’ai commencé l’escalade avec mes collègues et j’arrive à peu près au niveau 6b. Mais jusqu’ici je n’en avais fait qu’en salle, à Altissimo Saint-Martin. La salle est super, avec une partie bloc et une partie voie ; mais ça reste du mur artificiel avec des prises de couleur à suivre.

Dimanche, j’ai donc découvert plusieurs choses que je ne connaissais pas.

Tout d’abord, au pied de la falaise, on a l’embarras du choix pour commencer la voie (ou pas !). Pas de couleur pour se guider, juste une direction générale, celle de la prochaine plaquette… Et parfois il faut tâtonner, ou faire un léger détour pour se simplifier la vie.

Au pied de la falaise (en moulinette)

Jusqu’ici, en salle, je n’avais jamais grimpé qu’en moulinette (où la corde est déjà passée en haut de la voie, et redescend, ce qui suspend le grimpeur qui chute. En falaise par contre, lorsque la corde n’est pas encore placée, il faut grimper “en tête”, c’est à dire que sur chaque plaquette rencontrée (tous les un à deux mètres), il faut poser une dégaine puis y accrocher la corde. Lorsque l’on dépasse ensuite la dégaine, on est au-dessus du point d’assurage, et une chute fait redescendre de deux fois la distance qui nous sépare de ladite dégaine. C’est donc avec beaucoup plus de précautions que j’ai entrepris chaque passage difficile, et je n’ai pas expérimenté cette fois ce qu’on appelle un vol. La confiance dans l’assureur et dans le matériel me semble indispensable pour grimper en tête sans avoir (trop) peur du vol… C’est d’ailleurs pour cette raison que j’ai refusé d’assurer les autres, car je n’ai pas (encore) appris à assurer avec un 8.

En tête (gnnnn c'est loin)

Une fois arrivé en haut de la voie, on rencontre un anneau souveau doublé d’une chaîne. Il sert à y passer la corde afin de pouvoir redescendre en moulinette sans laisser de matériel : on récupère les dégaines en redescendant. Pour installer cette moulinette, il faut d’abord se vacher, c’est à dire s’accrocher solidement à l’anneau à l’aide d’une longe adaptée et d’un mousqueton adapté lui aussi. Une fois vaché, l’assurage ne sert plus : on est accroché à la paroi par la longe. Il faut alors passer la corde d’assurage dans l’anneau sur le mur, puis la défaire du baudrier. Ceci doit être fait dans cet ordre afin d’éviter de laisser malencontreusement tomber la corde, et se retrouver coincé là haut en attendant les secours. J’ai donc fait ma première ascension en tête après m’être entraîné à la manoeuvre à terre :-) et j’ai malgré tout réussi à me tromper, en passant ma corde dans le mousqueton de ma vache au lieu de l’anneau du mur… Et j’ai donc recommencé la manoeuvre deux fois. (Je précise à l’attention de ma Maman que cette erreur n’était pas dangereuse, ç’aurait été impossible de se dé-vacher sans réaliser le problème. Ne t’inquiète pas Maman :-)

Vaché

Les fois suivantes je ne me suis pas trompé :-)

Au final, j’ai beaucoup aimé cette journée (dont j’ai mis plus de photos sur cet album) et j’espère bien y retourner cet été !

June 23, 2009 03:59 PM - (Comments)

June 13, 2009

Holger Berndt's Blog

Nautilus Split View Update

I've been working on cleaning up the history of the my Nautilus split view branch, and basing it on the official git repository. That's done now, so consider this post a call for testing! Grab the source and get it running. Please send emails with bug reports, patches, remarks, and also success stories. I'd also be interested in reports from spatial-mode users, just to make sure the patchset doesn't introduce any regressions for them. I'd really like some more testing before requesting a review upstream.


Some visual polishing took place compared to the old screencast, for example the thin border in the theme's selected-color around the active pane, and shadow around the inactive pane.

The buttons with the greyed-out look in the location bar on the right side of the screenshot are in fact sensitive. Clicking e.g. directory buttons changes to the respective directory and also make that pane active. The grey zoom control widgets and the insensitive-looking background work in an analogous way. That's not exactly HIG-compliant, but it seems very natural and intuitive.

June 13, 2009 07:20 PM

June 11, 2009

colin@colino.net

Politicards à la con

Levebvre, porte-parole de l’UMP, après que le conseil constitutionnel aie tranché en défaveur de certains points de la loi création et internet (Hadopi): “Les socialistes [...] n’ont pas de quoi être fiers. [...] après le recours devant le Conseil constitutionnel, ils auront des comptes à rendre aux artistes et dans les urnes“.

Riester: “Le texte permettait déjà aux internautes de déposer un recours devant le juge. On gagne une étape, on va directement au juge. Donc le caractère dissuasif sera encore plus fort“. À part le fait que ta loi foulait la présomption d’innocence aux pieds, t’as tout compris…

Veut-il dire qu’ils auraient préféré passer une loi anticonstitutionnelle sans rien demander à personne ? Y’en a vraiment qui doutent de rien…

Enfin, je me rends compte que bien que ces gens m’indignent, j’arrive mal à expliquer pourquoi. Mon avocat préféré y arrive beaucoup mieux.

June 11, 2009 05:48 AM - (Comments)

June 07, 2009

colin@colino.net

Webkit2pdf

Some time before Christmas, I was looking for a nice gift to Clo and had a idea I found good: a good quality printed version of her blog, for the souvenir, would be quite unique and nice.

Problem is that printing it would be really painful, with about 80 posts, I didn’t want to do that manually and thought it’d be better to be able to automate that with html2ps or something like this.

html2ps having a really crappy rendering, I investigated Webkit and found it would print nicely, but it only supported printing via print dialog, which was painful too. So I dived into webkit-gtk’s code and patched it and added support for PDF export (via GTK+ print support); then proceeded to write a little app to batch-export to PDF a list of URLs.

That done, I used pdftk (the PDF ToolKit) to concatenate all these PDFs into a big one, uploaded it to lulu.com and there was the result:

blog

Some more iterations of the webkit patch later and with the help of Gustavo Noronha of GNOME fame, an official API was defined, implemented and commited to Webkit. After reworking my app a bit to fit this API, I’ve been able to test it with the second volume of Clo’s blog (yes, she writes quite a lot, this second volume has 350 pages for little Paul’s first six monthes !), and here’s a new piece of free software born: webkit2pdf. It requires a fairly recent Webkit version; I’m not even sure they released since the patch’s in.

June 07, 2009 08:56 AM - (Comments)

June 04, 2009

colin@colino.net

Statistiques sur les mesures ANFR (Agence Nationale des Fréquences)

À force de lire des articles sur les ondes pulsées du réseau GSM, qui nous émettraient trop fort dans les cerveaux, provoquant des cancers et des maux de têtes (mais pas dans cet ordre), j’ai voulu voir par moi-même l’étendue des dégâts concernant ces antennes.

Il paraît que le consensus scientifique est qu’un seuil d’exposition inférieur à 0.6V/m est réputé non dangereux pour la santé, et certaines associations comme Robin des Toits militent pour atteindre un tel seuil partout sur le territoire. Le but est noble, mais le ton alarmiste et je n’aime pas le ton alarmiste, surtout que les médias relaient (héhé) bien souvent les cris Au Loup sans aucune analyse derrière.

N’étant jamais si bien servi que par moi-même, après avoir regardé sur le site de l’ANFR, Cartoradio, à combien de V/m j’étais exposé à la maison, et après avoir trouvé ces chiffres (entre 0.11 et 0.51 V/m selon la bande) très peu inquiétants, je me suis demandé si j’étais juste chanceux ou si la plupart des antennes relais arrosaient déjà relativement peu.

J’ai donc enregistré toutes les pages de mesures de l’ANFR de la numéro 1 à la numéro 16328, modulo celles qui n’existent pas, grâce à ce script ; notez bien qu’une pause de 2 secondes a été insérée entre chaque enregistrement, pour le cas improbable où j’aurai pu mettre leur serveur à genoux à moi tout seul.

Profitant du fait que chacune des pages est sur le même modèle, j’ai ensuite extrait les valeurs correspondant aux émetteurs GSM avec ce script vers ce fichier CSV, que j’ai ensuite importé dans une base MySQL (car je suis nul en tableur) afin de pouvoir manipuler toutes ces données. Pour ceux qui sont nuls en base de données, il est aussi possible de l’importer dans un tableur en utilisant le séparateur de champ “,”. Pour ceux qui ne font pas confiance au fichier CSV, mes scripts sont disponibles pour le refaire.

Voici quelques résultats. J’ai été surpris de voir le niveau moyen et médian augmenter au fil des années : j’aurais pensé que, la technologie évoluant, les émissions auraient nécessité moins de puissance. J’ai aussi été surpris de voir une médiane inférieure ou égale à 0.6V/s : suite au bourrage de crâne des médias, je supposais qu’on était assaillis d’ondes néfastes en permanence. Ceci dit, ce schéma sur la FAQ de l’ANFR a tendance à montrer qu’il faut, pour être irradié dans les règles de l’art, se mettre pile en face d’une antenne relais. En dessous, on ne risque pas grand chose.

Quant au wifi, à 0.3V/m à 40 centimètres de la borne, à mon avis, ce n’est pas vraiment la peine de flipper du hotspot de l’hôtel d’à côté. Robin des Toits mentionne aussi la dangerosité du Bluetooth (portée de 10 à 100 mètres) ou encore des tags RFID (portée de quelques centimètres dans la majorité des cas – on trouve par exemple un tag RFID dans les systèmes de déverrouillage de portes à ventouse) ; de mon côté, j’émets (huhu) quelques doutes là dessus. L’ANFR ne mesure même pas ce type d’émission.

Ceci dit, on fait dire ce qu’on veut aux statistiques, donc j’enjoins quiconque est intéressé de faire ses propres statistiques, à partir du fichier CSV, et de me prouver que mon cerveau est déjà fondu.

Quelques chiffres que j’ai trouvé intéressants :

Nombre total de mesures : 14829
Nombre de mesures avec signal <= 0.6 V/m : 9584 (64.63 % du total) (entre 0 et 0.6 V/m :9584 – 64.63 % du total)
Nombre de mesures avec signal <= 1 V/m : 11500 (77.55 % du total) (entre 0.6 et 1 V/m :1916 – 12.92 % du total)
Nombre de mesures avec signal <= 2 V/m : 13429 (90.56 % du total) (entre 1 et 2 V/m :1929 – 13.01 % du total)
Nombre de mesures avec signal <= 4 V/m : 14353 (96.79 % du total) (entre 2 et 4 V/m :924 – 6.23 % du total)
Nombre de mesures avec signal <= 10 V/m : 14780 (99.67 % du total) (entre 4 et 10 V/m :427 – 2.88 % du total)
Nombre de mesures avec signal <= 20 V/m : 14821 (99.95 % du total) (entre 10 et 20 V/m :41 – 0.28 % du total)
Nombre de mesures avec signal <= 30 V/m : 14827 (99.99 % du total) (entre 20 et 30 V/m :6 – 0.04 % du total)
Nombre de mesures avec signal <= 50 V/m : 14829 (100 % du total) (entre 30 et 50 V/m :2 – 0.01 % du total)

chart_power_5vphp

Nombre de mesures par puissance, de 0 à 5 V/m

chart_power_50vphp

Nombre de mesures par puissance, de 5 à 50 V/m

Les quatre mesures dont le signal est supérieur à 25 V/m sont : 8165, 8166 et 8181 (même endroit) et 13919. La distance de mesure est de 1, 3, 3 et 5 mètres pour chacune d’elles et la zone de mesure est interdite au public.

Moyennes :

Moyenne des 227 mesures en 2001 :0.67 V/m – médiane 0.3 V/m – distance moyenne* : 53.83 m
Moyenne des 741 mesures en 2002 :0.5 V/m – médiane 0.2 V/m – distance moyenne* : 66.68 m
Moyenne des 1632 mesures en 2003 :0.57 V/m – médiane 0.3 V/m – distance moyenne* : 80.79 m
Moyenne des 1737 mesures en 2004 :0.7 V/m – médiane 0.4 V/m – distance moyenne* : 63.71 m
Moyenne des 1941 mesures en 2005 :0.84 V/m – médiane 0.4 V/m – distance moyenne* : 72.4 m
Moyenne des 2634 mesures en 2006 :0.9 V/m – médiane 0.4 V/m – distance moyenne* : 72.29 m
Moyenne des 2380 mesures en 2007 :0.89 V/m – médiane 0.4 V/m – distance moyenne* : 62.7 m
Moyenne des 2525 mesures en 2008 :0.97 V/m – médiane 0.5 V/m – distance moyenne* : 66.5 m
Moyenne des 1007 mesures en 2009 :1.08 V/m – médiane 0.6 V/m – distance moyenne* : 81.23 m
Moyenne des 14829 mesures :0.83 V/m – médiane 0.4 V/m – distance moyenne* : 69.73 m

Moyenne et médiane des mesures, par an

Moyenne et médiane des mesures, par an

*: les distances sont faussées par la présence de données vides et de données floues dans les données ANFR (’50 m – 100 m’ compte pour 50, ‘<50 m’ compte 0, par exemple).

June 04, 2009 05:13 PM - (Comments)

June 03, 2009

colin@colino.net

New ride

English readers of this place may not know yet, but this post was about me quitting smoking. So, yes, I’ve quit smoking since a month, 39 days to be precise :-)

Given how I feel in better shape, especially in the body parts involved in breathing (allergies, asthma), I decided it was time to ditch my old, rusty and un-fun bike that my dad gave me 10 years ago and which has been built in 1992 or something (yes, if I treat myself with a bike after one month, I wonder what I’ll find after one year…). This old Giant Coldrock is now officially retired, and replaced by a brand new Giant (can’t help, they make good bikes) Rincon which is until now a very nice ride. I’ve only used it in the city for now, but I can’t wait to put some mud on it.

The mandatory pictures :

Photo courtesy http://www.tmbs.nl/

Old Giant Coldrock – Photo courtesy tmbs.nl

new Giant Rincon - photo courtesy http://www.giant-bicycles.com/

new Giant Rincon – photo courtesy Giant bicycles

All of this doesn’t help me patch Claws Mail…

June 03, 2009 07:05 AM - (Comments)

May 25, 2009

breviary stuff

Greedy, Thieving Bastards

It is said that public confidence in politicians is at a very low ebb following the Telegraph's leaking (and subsequent reporting by most newspapers) of the majority of politicians' questionable expenses claims. Claiming for second homes, piano tuning, clearing of a moat (£2,115), an ornamental duck house (£1,645), swimming pool maintenance (several claims), mortgages that don't exist (£15,000+), double-claims for council tax, a trouser press (more than one claim), home cinema system, removal of wisteria, trimming hedge around "helipad" (£609), leather rocking chair (£1,200), food, toilet seat, eye liner, biscuits, and so on, and so on, ad nauseum.

Politicians from all the main three parties have been exposed. Most give the appearance of being humbled in the media now that they have been found out, however, some, (the Tory gentry, as you may imagine), have appeared indignant that they should have to answer to the lower classes. An example of this is Anthony Steen, MP for Totnes in Devon, who claims that we are all just jealous of his million pound home: "I've done nothing criminal, that's the most awful thing, and do you know what it's about? Jealousy. I've got a very, very large house. Some people say it looks like Balmoral. It's a merchant's house of the 19th century. It's not particularly attractive, it just does me nicely."

What is surprising, or perhaps unfortunate, is that it takes something like this exposé in the media to lower the public's confidence in MPs when just a quick browse through history will show that they have been stealing from us for years. Most people would face fines or imprisonment for theft, but these MPs just give an apology, pay a little back and feel exonerated.

There have been heated, angry public debates where politicians are confronted by their constituents, resulting in some MPs being in denial about the feelings of the people whom they are supposed to represent. One wonders if this could be the spark to ignite the summer of discontent of which there have been murmurings of in the press. There is a long history of social protest in the UK, as you can imagine (if you don't already know). Let us take the act of incendiarism as an example and quote from John E. Archer's 'By A Flash and A Scare', where he asks Why Incendiarism?:

East Anglia had a history of social protest prior to 1830 and the combatants involved in the riots, marches and demonstrations had learnt to their cost that open displays of protest brought in their wake punishments ranging from the death penalty at worst, to imprisonment at best. One has to remember the traumas and psychological impact that these sentences had on small village communities. In the village of Withersfield, for instance, with a population of 500, it must have been painful to witness the transportation of six labourers, who were later joined by their wives and children. In all, a short-lived riot permanently thinned this small village of well over twenty inhabitants. Many of these open confrontations were also unsuccessful in achieving their desired aims, the riots of 1835-36 especially so. Therefore there was little incentive to organize or protest if the ringleaders were to be singled out and given harsh sentences while points of grievance continued to exist. Open confrontation was also hindered by the increase in population, since employers held the whip hand on the employment market. Thus one major avenue of rural protest was closed up and the alternatives of individual terrorist action became a more viable proposition. Practicality was a strong driving force; fear of detection, fear of punishment, fear of association, all created a climate of secretiveness. The army, the yeomanry and the special constables were all powerless against such night-time attacks on property. To this extent Hobsbawm and Rudé were correct to view incendiarism as an active response to defeat.

If incendiarism was, as often argued, so detrimental to the economic interests of labourers, why then did it develop to such an extent before 1850? Farmers before 1830 were probably not insured and the fires would have caused financial hardship, but after that date insurance protected the majority and the fires were not so economically devastating. But was the main purpose of incendiarism to cause financial loss to property holders? The answer was considerably more complex than simple economics. Incendiaries never aimed to kill or injure property holders and their choice of targets was often discriminatory. That much we can be sure of. These acts of protest should be placed into a similar category as 'ceffyl pren' of Wales and the 'rough music' of rural England. It was a psychological weapon with a great deal of impact in the small communities. The sufferer was a target of hatred and he and the rest of the community knew as much. The victim had been singled out for special treatment and the fire was there to publicize the fact that he, more than any other person, had transgressed against someone or some custom. One labourer made the telling remark of an incendiary victim: 'the sooner he's out of the country the better.' In another case, Peck of Congham (Norfolk), although insured, claimed another incendiary fire 'would oblige him to relinquish business altogether.'

The publicity factor of incendiarism was important, for some fires were reported to have been visible across forty miles of countryside and they attracted large celebrating crowds, up to 3,000 in one or two cases. It is impossible to quantify the fear of fire but undoubtedly the farmers' fear was considerable. In a letter to Melbourne, the Home Secretary, the Reverend Brett of Congham wrote that 'panic generally prevails' in the county after the large number of fires. Labourers maintained 'nothing scares the farmers like a good fire'. This quite natural dread cannot be emphasized enough as a psychological weapon. Such a 'flash and a scare' provoked a repsonse from employers, often a favourable one, and to that end it has to be considered successful in a limited way.

Labour was adversely affected after a large stack or granary fire, especially if the fire occurred before the threshing season, but the incendiary's hatred transcended such considerations. To him the stacks and barns were symbols of wealth, oppression and power and the fires were a method of 'getting even'. If this was the case then it was more than likely that fires were lit in a less discriminating fashion during periods of greatest distress, because all employers would have been regarded in a similar way as oppressors of labour. Campbell Foster thought this to be the case in 1844 when he wrote:

Can we feel surprised that a labourer out of work half the week, and leaving his home, without having broken his fast … , should return a dangerous man, ready to strike a lucifer match and thrust it into the farmer's stack, who will not give him work, or into any stack, because it is the evidence of wealth and comfort, which, hungered and starving, he hates to see?

While farm work may have been adversely affected by incendiarism on a very localized scale—the individual farms which experienced arson attacks—regionally, employment was created by farmers keen to lessen the possibility of incendiarism in their neighbourhoods. Nightwatchmen were employed extensively during intensive periods of incendiarism. In a number of cases they proved ineffective and in at least two cases nightwatchmen were actually convicted of incendiarism. One labourer reportedly said 'the fires did poor men good, for they now get two shillings a night watching them'. General farm work 'not actually required, that is not immediately beneficial, such as marl and clay carting, cutting down fences, cleaning borders', likewise increased. Arson also halted intended wage reductions and, in some cases, forced them to rise by a shilling or two a week.

Incendiarism was primarily a response by labourers, especially the younger ones, to the oppressive social and economic conditions which they were forced to endure. It is possible to describe the fires as disorganized and uncoordinated acts of protest kindled by a work-force lacking bargaining power and fearful of open confrontation.


Links
MPs' expenses in detail (The Telegraph)
MPs' expenses on Google Earth (The Telegraph)

May 25, 2009 09:55 AM - (Comments)

May 22, 2009

breviary stuff

Hypnotic Brass Ensemble, Mushalla

Hypnotic Brass Ensemble performing Mushalla at BBC Television Centre A video of the Hypnotic Brass Ensemble performing Mushalla outside BBC Television Centre is avaliable to view at the BBC website. A great track. They were billed to appear on the BBC television show Later with Jools Holland but did not – I don't know why.

They have recently released a 10" single, Alyo/Flipside, on the ever interesting Honest Jon's Records and a new album is due to be released shortly, (June 1st), also on Honest Jon's.
Other links:
Hypnotic Brass Ensemble website: www.hynoticbrass.net
Honest Jon's Records: www.honestjons.com
Hypnotic Brass Ensemble at Wikipedia: wikipedia.org/wiki/Hypnotic_brass_ensemble
Broad Casting Documentary Part 1: Tony Allen & Hypnotic Brass : www.youtube.com/watch?v=nBuwd2Dqul4
Broad Casting Documentary Part 2: Tony Allen & Hypnotic Brass : www.youtube.com/watch?v=cYQ1Hijuu_c

May 22, 2009 01:43 PM - (Comments)

May 17, 2009

Holger Berndt's Blog

Geo-Tagging

Lately, I had to deal with digital maps at work - a very interesting topic. As I wanted to check out libchamplain anyways, I did a little plugin to display an estimate of the sender's location on a map in Claws Mail. This is a screenshot of one of my mails from a conference which I attended last year:


Of course, there's no way to infer the geographic location of a sender from the mail with any kind of certainty. For example, as mailing list management software tends to rewrite the mail headers, mails to the Claws Mail Users mailing list show up as originated here:



Other mailing lists (like GTK+, or Cairo) work fine, though.

The surprising (and somehow scary) result is that it works on a surprisingly large number of mails (in my quick test, almost half of the time), and if it does, it's oftentimes quite accurate, with deviations sometimes as small as 2 or 3 kilometers. I honestly wouldn't have expected that. The plugin is currently hosted on github, and requires Claws Mail from CVS and libchamplain 0.3.

On a side note: Also on github is an early version of a Gnome plugin, which includes the Gnome address book in Claws Mail's completion list. That plugin crashes on unload, though, which also happens during Claws Mail shutdown. I haven't investigated that in detail yet, but I wouldn't be surprised if that was due to a dependancy library not being plugin safe. Wouldn't be the first time.

May 17, 2009 08:25 AM

May 16, 2009

Ricardo Mones

As times goes by

It's amazing to check and see how much has passed since last post. Not that I had nothing to tell, but maybe not in the mood to do it. Anyway there's not much excitement in my life lately, but looking back seems it isn't going too bad.

The project we were working at is already at production stage, and with only two or three phone calls to solve minor issues so far, which is not common, as I've heard. This is something I, as a the project leader, am proud of, and not being wrong with all the work-hours invested in testing and bugfixing ;-). The client seems to be happy with the results, and a second phase is planned, so more work waiting for our group. This contrasts with the landscape in other parts of the company, and the rumors floating around fed by the bad economic situation. Currently we already started other project for the our regional government, so we can't get bored at work until the end of year or so... Anyway, if luck smiles to me, I'll be doing more interesting things by the next year: yesterday submitted a grant application for review. Grants is a R+D program to provide funds for innovative ideas within the company. My idea is not so new, but it will be fun to investigate how to replace our Windows based SOE (i.e.: the image deployed in our laptops and desktops) by a Linux based one.

Time for lunch now...

May 16, 2009 12:37 PM

May 14, 2009

colin@colino.net

A taste of Prodigy’s latest record,

…Invaders must die, which I can’t stop listening to since two weeks :

Here’s a video where they explain a bit of each track’s history. I didn’t get much of what they say :-) but it gives a good taste of the record’s energy.

Invaders Must Die, track by track from The Prodigy on Vimeo.

At the start the record surprised me quite a lot, but with more listening I find there are some similarities with the Experience, their first record (Charly, for example).

May 14, 2009 08:16 PM - (Comments)

May 13, 2009

colin@colino.net

Un pas de plus vers la perfection

Voilà bientôt trois semaines que je suis parti en vacances avec ma petite famille…Mais Clo a très bien blogué sur le sujet et je compte plutôt vous raconter autre chose.

Je voulais profiter de ces vacances pour me débarrasser d’une mauvaise habitude, et je crois bien avoir réussi : quelques jours avant le départ, je me suis fait prescrire des patchs et pastilles à la nicotine, et le jour du départ à Beaulieu, je m’en suis collé un, j’ai jeté mon tabac et mes feuilles, rangé le briquet à côté de la gazinière et nous sommes partis.

Le premier jour j’ai eu pas mal envie de fumer, j’ai mangé quelques pastilles. Avoir attendu les vacances était effectivement une bonne idée, car l’envie m’a semblé plus une envie d’habitude qu’un manque physique (et pour cause, j’avais un patch) : la clope d’après le café, la clope de la pause sur l’autoroute, la clope d’après manger, …

Le deuxième jour, la même chose, le plus difficile était de passer outre l’envie-réflexe d’allumer une clope aux moments habituels : remplacées par des pastilles. Les pastilles, ça fait mal au ventre cependant.

Le troisième jour j’ai essayé de résister sans pastilles, et ça a marché.

Le quatrième jour, j’ai oublié de mettre un patch. Je m’en suis rendu compte peu avant midi, et j’ai décidé d’attendre de voir si j’en aurais réellement besoin. C’est ce jour là qu’on est allés m’acheter des chaussures à Nice Étoile, en plein centre de Nice après une heure de bouchons et sous la pluie donc le centre co était blindé. J’ai un peu grincé des dents mais… c’est passé :-) Clo ne m’a pas spécialement trouvé irritable, ou à peine.

De retour au boulot, dix jours après l’arrêt, je n’ai dit à personne que j’avais arrêté de fumer, histoire de gagner un peu de temps de tranquillité pour casser les habitudes de la clope au boulot. Je les ai remplacées par des verres d’eau, les clopes “faut que je me lève de mon siège” ; par un bout de discussion avec un collègue, les clopes “avec le café”. Et celle d’après manger, par plus de discussions à table (j’ai lu partout “ne restez pas à table après manger pour éviter la tentation”, mais ces conseils datent sans doute d’avant que les restos soient non-fumeurs), au lieu de lâcher tout le monde en avance…

C’est plus difficile qu’en vacances où l’on est dans un cadre inconnu, sans routine. Pas mal plus dur. Mais ça a l’air de tenir ! Faut juste pas me faire trop chier… :-)

Puis j’ai fini par le dire, que j’avais arrêté, lorsqu’on m’a explicitement demandé si je voulais accompagner pour une clope. Et là, je n’ai pas regretté de m’être octroyé une petite semaine de secret… Ça n’a pas raté, forcément et comme prévu, y’a un boulet pour essayer de me tenter par tous les moyens possibles. Il ne m’a pas encore collé une clope sous le nez mais ça ne saurait tarder. J’ai de la chance, il n’y en a qu’un (sur quatre fumeurs). J’m'en fous, en un sens ça m’agace mais il n’y arrivera pas, contrairement à moi qui y arriverai. Et puis il fait ça parce qu’il est jaloux de mon succès et de ma classe.

J’en suis donc à 18 jours sans tabac. C’est curieux mais depuis, j’ai (presque) plus besoin de mon traitement anti-asthme, et presque plus d’allergies non plus… Trop cool :-)

Pour les gens qui ont envie d’arrêter, j’ai trouvé un site suisse vraiment bien fichu avec plein d’informations, tests de dépendance, compteurs motivants, forums etc : stop-tabac.ch.

May 13, 2009 06:09 PM - (Comments)

May 06, 2009

colin@colino.net

Souvenirs d’enfance

Bon, suite au sale coup que Mathieu me fait me voici dans l’obligation de répondre à quelques questions. C’est une idée de son grand frère que je ne connais même pas, mais si je joue pas le jeu Mathieu va se faire taper, donc je fais un effort.

Le but : répondre à 6 questions sur les souvenirs d’enfance et passer ensuite le relais à 3 personnes. Voici les questions :

  1. Quel est le jouet qui vous a fait le plus plaisir ?
  2. Quel cadeau vous a particulièrement déplu, avec impossibilité d’exprimer votre sentiment, bonne éducation oblige ?
  3. Quel jouet avez-vous rêvé d’avoir sans jamais qu’il vous soit offert ?
  4. Quel jouet avez-vous détourné de son objet initial et avec lequel vous avez passé beaucoup de temps ?
  5. Quel jeu a fini au fond de l’armoire après une demie-heure et a constitué le plus gros gachis ?
  6. Quel jeu a occupé vos récréations un bon bout de temps ?

Et mes réponses :

  1. J’hésite. On va dire mon premier vélo de grand, un vrai VTT avec des roues de 24″ et DIX vitesses !
  2. Peut-être ce livre d‘Histoire de France. Un jour où je m’ennuyais, j’ai fini par le lire et au final il m’a plu. J’ai eu deux ou trois cadeaux vraiment pires, mais plus tard, une fois adulte, donc ça n’entre pas dans le cadre de ce post et il n’y a pas prescription, donc motus.
  3. Je ne me souviens d’aucun. Par contre je me souviens d’une déception immense lorsqu’il a fallu rendre mon Apple //c pour le remplacer par un Mac LC. (La remise était non négligeable à l’époque, 5000F sur 15000, donc je peux comprendre, mais quand même, j’étais dégouté).
  4. J’ai passé énormément de temps à jouer au Lego, mais je ne pense pas avoir réussi à détourner ça de son objet initial qui est quand même assez vaste.
  5. Une voiture téléguidée pourrie (avec un fil et qui tournait que quand elle voulait). Par contre j’ai aussi eu (plus tard) une vraie voiture télécommandée qui faisait du 30km/h et avec laquelle j’ai accidenté pas mal de choses dans l’appartement.
  6. L’épervier (en primaire) ou un truc du genre. Et les billes (plein !) Après c’était sans doute plus varié… J’ai souvenir d’avoir lu les manuels du BASIC et du DOS pendant la récré au collège, mais ça m’a pas pris quatre ans.

Donc voilà, ça, c’est fait. Au tour de : Clo, Erwan, et Antoine. Soyez forts :-)

May 06, 2009 06:08 AM - (Comments)

April 20, 2009

Holger Berndt's Blog

Easter weekend coding fun

Had some slack time over the easter weekend, so I was able to do some fun coding.

The Nautilus crew accepted two small patches of mine to deal with keyboard shortcuts. Now it's possible to assign shortcuts to Nautilus scripts, and the shortcuts are remembered accross sessions. That's fixing two long-term annoyances of mine. It landed just in time for Gnome 2.26.1, meaning the Ubuntu Jaunty is shipping the fixes already. Good timing.

The Nautilus split view branch that I have been blogging about (Planet readers: There is a screencast embedded in the previous post) is an ongoing pet project. I consider the branch pretty feature complete, except maybe background color modification of the inactive pane. However, the branch is currently based on an older revision, so the next big thing to do would be rebasing to the current state. In general, I am not hesitating to rebase the public branch on github when appropriate, even though I know that it's bad. Drop me a message if you want to contribute, and that poses problems for you. Anyways, with Gnome moving to git, all that is becomming easier, especially for externals. Did I already mention that git is awesome?

Of course, Claws Mail got some love, too. The notification plugin got support for window manager urgency hints and the fd.o sound specification. It also got a reworked bubble logic, to fix issues with Ubuntu's broken notification daemon. That will be going into cvs once I was able to test with Ubuntu Jaunty. I also wrote a little patch to include Gnome's addressbook in Claws Mail's address completion. The latter is not likely to go into cvs, but I may wrap the patch up and create a plugin for that.

April 20, 2009 08:17 PM

April 10, 2009

breviary stuff

Unofficial Claws Mail ClamAV™ Plugin – version 3.5 unleashed!

A new version of the unofficial Claws Mail ClamAV™ Plugin has been released. Version 3.5 supports Clam AntiVirus™ version 0.95, libclamav 6:2:0 — that is, at least it does once you apply the Personal Build patch.

Further details and downloads can be found on the Unofficial Claws Mail ClamAV™ Plugin page.

April 10, 2009 09:01 PM - (Comments)

April 06, 2009

colin@colino.net

Paul having fun in the bath

Hi!

I couldn’t resist putting this short video from Clo’s blog (even if it’s flash, yes :-)

[See post to watch Flash video]

The water level was 8 centimeters lower after 15 minutes of this game… (that’s 3.2 inches for you strange-unit-using people :-P)

It looks like the age where Paul will refuse to go to bath is far, far away!

Also, Paul is starting to be able to stay sit for a few minutes; he has a tooth pointing, and he started eating mashed vegetables since a week or so. He’s growing so fast!

April 06, 2009 06:08 PM - (Comments)

April 01, 2009

El racó del Ton » English Linux

Railscast script II

Hi there

Some of you would remember Railscast script, so I coded a new version using SQLite3.

The new version is this one and the empty database is that one. :-)

Enjoy it

P.S. Remember to rename the empty database file from EmptyRailsCastDownloader.db to RailsCastDownloader.db.

April 01, 2009 10:08 PM - (Comments)

March 29, 2009

El racó del Ton » English Linux

Railscast script

Hi

As some of you know, I am coding using the Ruby On Rails framework right now. Apart of this, I am a huge fan of http://railscasts.com/ and I like to watch the screencasts published in it.

Some weeks ago and during four weeks, my internet connection took me back almost to the 56 Kb modem age (my download speed was 100 kbps) and I was not able to watch the published episodes. Years ago I coded a perl script named deb-downloader because I was in a similar situation and I had to upgrade my Debian sid so I decided to code a little ruby script to download all the episodes from wherever I was and watch them at home.

This is the script and it is used for downloading the episodes you don’t have (the episodes already downloaded are stored in a text file and to not be downloaded again). If you like this script, you are free to use it, modify it and distribute it (it is under the GPL license) and even send me suggestions about how to improve it or add new functionalities.

Btw, I have downloaded all the episodes and I’m waiting for the new one (it is usually published every Monday).

March 29, 2009 08:08 PM - (Comments)

March 26, 2009

colin@colino.net

Vos sauvegardes : faites-les. Ou regrettez-le

D’expérience, ça ne sert à rien de le dire. Il faut l’expérimenter pour s’y mettre.

Songez à ce que contient le disque dur de votre ordinateur. Des documents, des emails, de la musique, des photos, des films. Sur les photos, les emails, et les films, on peut retrouver des moments normaux : un pique nique, une discussion sur les horaires de train pour les vacances de 2003. On peut aussi y retrouver d’autres moments : votre mariage, préparation, photos du jour J, photos du lendemain ; votre fils à sa naissance, à 2 jours, à deux semaines ; un voyage à l’autre bout de la terre…

Voici à quoi ressemble ledit disque dur :

Le plateau tourne à 7200 tours par minute, et la tête de lecture flotte à une dizaine de microns au dessus, ce qui se représente un centième de l’épaisseur d’un cheveu.

La question n’est donc pas si, mais quand cette belle mécanique va faillir. Lorsque ce sera arrivé, tous les fichiers stockés dessus disparaîtront à jamais. Et même si vous en êtes conscients, ça vous arrivera car vous aurez repoussé et repoussé le moment de mettre une bonne sauvegarde en place, jusqu’à trop tard.

Maintenant que vous avez expérimenté la perte de quelques gigaoctets de données irremplaçables, le moment est venu de la mettre en place, cette sauvegarde. Il y a différents points à suivre :

Mauvaise sauvegarde

Bonne sauvegarde

Oui, c’est pénible, mais ça vaut le coup. Je me suis fait avoir une fois, ma mère s’est faite avoir une fois, des milliers de gens se font avoir chaque jour et perdent les photos de leurs enfants ou les 2 ans de travail passés sur leur thèse.

March 26, 2009 04:21 PM - (Comments)

March 19, 2009

colin@colino.net

On se “fait” un Scrabble

À chaque fois qu’on a envie de se faire un Scrabble c’est le même problème : on n’en a pas.

Avec Clo, on a donc décidé de prendre le taureau par les cornes. Ingrédients:

Deux heures plus tard, ça donne :

Notre Scrabble

On en est très fiers, et il est tout à fait jouable même si les lettres sont plus légères que d’habitude !

March 19, 2009 03:29 PM - (Comments)

March 18, 2009

breviary stuff

Google offers large donations to FOSS Email Application projects

If only it were true.

Since google launched gmail IMAP the Claws Mail development team (and several Claws Mail users) seem to have devoted a proportionately high amount of time to answering questions and working around problems that arise through gmail's IMAP implementation. The same must surely be true of other open source teams. How many wasted man-hours must that add up to through all the different development teams and how many more useful things could have been achieved in that time? How far will they set things back?

Don't believe the hype!

March 18, 2009 05:02 PM - (Comments)