Echoes Corsac.net - Echoes camshot
vendredi 20 janvier 2012 (1 post)
  • Portabilité fail.

Je suis pas sur que le message atteigne beaucoup de gens, mais au cas où… Si vous essayez de me joindre par téléphone et que vous tombez sur un message de votre opérateur vous disant que le numéro n'est plus attribué, c'est « normal ». Orange a arrêté mon abonnement hier à 15h et je n'ai pas encore reçu ma carte SIM Free Mobile… Les choses devraient s'arranger bientôt, mais je risque d'être encore un peu off the grid aujourd'hui.

Corsac@07:59:14 (Roadbook)

mardi 17 janvier 2012 (1 post)
  • Vingt mille

 

Je m'en suis pas rendu compte tout de suite parce que ce coup ci c'est pas moi qui était au commandes. Mais en dépilant les photos prises récemment, je me suis rendu compte que le compteur avait bouclé une fois de plus.

Ça veut quand même dire que, depuis le tout début, plus de vingt mille photos ont été prises, ce qui n'est pas rien. Évidemment, comme la dernière fois, ça veut pas dire que j'ai gardé tout, et pour dire vrai j'ai pas vraiment envie de m'amuser à regarder le nombre que j'en ai jetté (soit directement sur l'appareil, soit après en les regardant). Mais tout de même, c'est un gros jalon, encore.

La dernière fois, il s'était passé 887 jours (soit un peu moins de deux ans et demi) entre la première et la dernière photo de la boucle. Ce coup ci, il s'est passé 1219 jours, 9 heures, 36 minutes et 13 secondes, soit environ 3 ans et demi. Nettement plus que la dernière fois, mais effectivement je pense que je me suis sérieusement calmé, au moins au début. Sur la fin beaucoup moins, mais j'avais des excuses.

Donc voilà, pas de bol j'avais jeté, à l'époque, la IMG_0001.JPG (directement sur l'appareil, sans m'en rendre compte). Et c'est Romaric qui a l'honneur de la IMG_9999.JPG (mais j'y suis pour rien, c'est pas moi qui avait l'appareil à ce moment là).

 

Corsac@22:32:59 (Echoes)

lundi 16 janvier 2012 (1 post)
  • Advocating people for hardware sponsoring

Our Dear Project Leader, Stefano Zacchiroli, regularly mentions the fact that there's an amount of Debian money available for hardware sponsoring of Debian developers, but it seems that not much people benefit from it.

Each time I saw one of this reminder, I wonder if I should apply, and the anser is usually no. The fact is that I don't think any new laptop or desktop to do my Debian stuff, and the last time I bought a box (my x201s last summer) it was not really specifically for Debian tasks so I didn't dare to ask (not to mention the fact I bought it because I did have the money to do so).

And I think this is mostly the problem. I might be wrong, but I think that most people which could benefit from this just don't dare asking or don't estimate themselves eligible for it.

When I saw Ben Hutchings post, where the first thing he says is about how hardware is expensive, I thought « hey, he should get some Debian money for buying new hardware: building kernel is really time consuming and having multiple powerful cores, more ram and fast disks/SSDs really helps ». Turns out that Ben just didn't really want to spend too much money there, but the case still stands. We also see from time to time people saying they'll be offline for a while because of broken laptop or something like that. Once again, maybe those people wouldn't mind some help from the Debian project, and maybe they just don't think about asking, or they don't dare.

So thinking about it a bit more, I think I wouldn't dare asking money for myself, but maybe I could dare asking money for other people (this is a bit like the flattr posts by Raphaël Hertzog, where he incited people to give money to projects he liked). If I'm not alone in this case, maybe those Debian developers who think some of their peers would benefit some hardware could drop them a mail with leader@ on copy, to propose just that. No need for huge publicity on that (in order to not embarass people), though the transparency rules still apply when it comes to Debian money.

What do you think? It's not really a formal proposal (thus the post on my blog and not a mail to -project), but if that fits you, then nobody prevents you to start yourself. And if you consider it a bad idea, well, nothing forces you to do anything.

Yves-Alexis@21:05:34 (Debian)

mercredi 28 décembre 2011 (1 post)
  • Mont Saint Michel

Tout est dit :

Mont Sait Michel

Corsac@22:26:32 (Roadbook)

jeudi 22 décembre 2011 (1 post)
  • Hiver

Aujourd'hui les jours rallongent \o/

Corsac@07:56:42 (Echoes)

lundi 19 décembre 2011 (1 post)
  • Faut bien payer ses impots...

En regardant rapidement les concerts à venir sur le site de la FNAC, je me suis rendu compte d'un truc marrant. En 2012, (re)monteront sur scène, en France :

Je suis pas le dernier a adorer les groupes des seventies, m'enfin quand même là, faut pas abuser. Ritchie Blackmore ça fait trente ans qu'il joue du folk-rock médiéval, je sais pas trop ce que ça va donner sur Smoke on the water quoi.

Corsac@22:10:28 (Echoes)

samedi 26 novembre 2011 (1 post)
  • Parce que sinon elle râle

Bonne fête Delphine !

Corsac@21:36:58 (Echoes)

lundi 31 octobre 2011 (1 post)
  • Halloween

C'est peut être parce que cette année Noémie est avec nous (depuis plus de 72h), ou peut être parce que les américains sont revenus et que pour eux Halloween c'était signe de balade dans les rues pour voir la gay pride déguisée en zombies. Peut être parce que cette année (hormis Eurodisney et le parc Astérix) y'a pas eu de battage médiatique autour de ça.

Cette année j'ai bien aimé Halloween. On a croisé un zombie ou deux dans la rue, qui avaient en dessous de diz ans, et on a même eu trois petits monstres qui sont venus sonner à la porte en fin d'après-midi pour avoir des bonbons ! Bon par contre on n'était absolument pas préparés, du coup on n'avait que des bonbons au coquelicot du mariage à leur offrir, mais on leur a pas dit, c'était rouge, ça s'est pas vu, par contre ils auront peut être une surprise en les goûtant, ils essayeront de deviner ce que c'était, et pis comme ils étaient moyennement déguisé ça leur apprendra.

À petite dose, ça me va (et le doodle du jour était mignon, si je puis dire. (ils ont vraiment d'énormes citrouilles là bas).

Corsac@20:27:54 (Echoes)

mercredi 19 octobre 2011 (1 post)
  • Debian grsec kernels

I received recently a mail about my attempt to provide Grsecurity kernels in Debian. The sender found the bug by accident, and asked me why I didn't do some more publicity here. So here we are.

I won't go into details on what grsecurity is, it's fairly complex. But it's basically a hardening patch for the Linux kernel, with three main components:

  • the PaX patch, which purpose is to harden the memory layout of the Linux kernel and improve existing options: enforcing of non-executable memory pages (userland and in kernel), W^X (no page marked as writable and executable), ASLR, prevention of invalid userland pointers dereference, copies between userland and kernel memory…
  • RBAC (Role Based Access Control), an implementation of Mandatory Access Control
  • various hardening features: /proc restrictions, chroot restrictions, kernel symbols hiding etc.

A lot of this touches low level stuff in the kernel, especially memory management. Ideally this patch would be pushed upstream, but Brad Spengler (grsecurity main developper) already said he wasn't interested in upstreaming it and upstream already said the patch was too huge and invasive to include it like that (especially since the original authors aren't interested in maintaining it upstream). There's an ongoing effort to split the patch and merge things little by little, but in the meanwhile having a mid-term solution would be nice.

I know Debian users rebuilding grsecurity-patched kernels themselves, and I know some of them would appreciate having them included in the Debian kernel. Fortunately, the linux-2.6 source package has a nice feature which is called featureset. Basically it's a way to build some (binary) packages using a different set of patches and a different config. For example this was used to provide xen/openvz/vserver patchsets, and is now used to provide rt kernels.

So I though it'd be nice to provide a grsec featureset, and starting doing the work. I have a working setup for producing those kernels, so I've opened a wishlist bug against the kernel (#605090) to have this merged.

Those packages follow the sid kernel. There's an ongoing work for Squeeze, but it's a bit harder there because both the grsecurity patchset and the Debian kernel ship a whole lot of backports to the Linux kernel, meaning the grsecurity patch doesn't apply directly to the Debian source package. Basically I need to remove some of the hunks (since they are already applied to the source) and port some others (since there are some backported code not present in the vanilla 2.6.32, for example the drm code).

Until the patches are merged and the bug is closed, I host some of the built packages at:

deb http://molly.corsac.net/~corsac/debian/kernel-grsec/packages/ sid/

The repository is signed by my key which you can add to your apt setup using apt-key add. If you want to rebuild the packages yourself, here's the method:

mkdir kernel-grsec
cd kernel-grsec
svn checkout svn://svn.debian.org/svn/kernel/dists/sid/linux-2.6
git clone git://anonscm.debian.org/users/corsac/grsec-patches.git
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2.sign
gpg --verify linux-3.0.tar.bz2
cd linux-2.6
apt-get build-dep linux-2.6
export QUILT_PATCHES=../grsec-patches
quilt push -a
python debian/bin/genorig.py ../linux-3.0.tar.bz2
debian/rules orig
fakeroot debian/rules source
fakeroot make -f debian/rules.gen binary-arch_amd64_grsec_amd64

You could also do dpkg-buildpackage, pdebuild or whatever. Kernel handbook is a nice reading too if you want more information on how to rebuild Debian kernels. The quilt push -a may fail if you checkout an svn version more recent than mine. I try to keep patches up to date but I usually have some delay.

Note that installing the kernel will require installing linux-grsec-base package. Binary is not yet available on my mirror but you can easily build it. Source can be found on git.debian.org.

If you're interested by this, don't hesitate to mail me or the bug.

Yves-Alexis@23:09:58 (Debian)

jeudi 13 octobre 2011 (1 post)
  • Fun with network cards

The issue

This morning (while I was running late for an appointement) I had a very weird stuff happening on my Thinkpad T61 laptop. Since I recently offered myself a shiny Thinkpad x201s, I have to admit I don't use much my T61 anymore. But this morning I had to print a page (for this appointement) and, as I didn't yet configured my printer on the x201s, I went to the T61. But I noticed that the network was down. I've tried quickly on wireless but, bad luck, my current wifi setup selects the channel automatically and it prefers choosing channels which aren't available in the US. Guess what, my T61 comes from the US and has those channels completely disabled, so no wireless available either.

The investigation

I first tried to

modprobe -r e1000e
modprobe e1000e

to see if it fixed the problem, but it didn't. Worse, the interface disappeared and never reappeared. I tried to reboot but it didn't fix the problem, the link was still down. Running really late, I put the file on a usb key and printed it from the powerbook and postponed the fix for later.

Now, this evening, I tried to investigate a bit more. Symptoms weren't only that the nic wasn't working, but there was a high load on the system (1-2 at idle), unresponsiveness every second or so, and watching top I could see spikes of high cpu usage for the kworker kernel thread. Typing that on google you can find a lot of people running on this issue, usually starting around kernel 2.6.36 or 2.6.37. Now, I might have upgraded the kernel recently to 3.0.0-4, but that didn't look related since the problem first appeared when the laptop was up and running. And I tried to reboot under 2.6.39, 2.6.38 and even 2.6.32 and the problem was still present. Each time, unloading the module would fix the problem, but loading it again wouldn't make the interface reappear. People advised to boot with pcie_ports=compat but that didn't do anything. I tried to boot without intel_iommu=force (disable Intel Vt-d) and pcie_aspm (Active State Power Management) but nothing either.

Considering a userland issue, I've tried to boot a grml live distro (always keep a grml.iso in your /boot, extlinux-update will even put it in your menu automatically), and the problem was still present. So not a Debian kernel issue, not a userland issue, only thing left was the laptop. I didn't update the Bios recently, so I wondered exactly what could be the problem. I started to feel a little bad, since I still really like that laptop, and that I already decided to lend it to my sister since her own T61 is sitting with a dead system board in my shelf. I know she might have some negative waves, but she was not even landed when the problem first appear.

The fix

Then I had a flash. It's not mystery that I'm used to break network cards, and I had the bright idea to shutdown the laptop, disconnect AC and battery, then let it idle a bit. I even tried the secret Thinkpad power button code but I think it's unrelated. Then I re-plugged the battery, booted to grml and the issue was gone. I rebooted on the standard Debian and the link was up, network was working.

So what happenned?

The (tentative) explanation

My guess is that, somehow, the network card firmware has an issue and choked on something (a network frame or an attack exactly like the one we demonstrated on ASF firmware). In fact, no, I don't think it's the e1000e firmware. My T61 comes with Intel vPro, which includes AMT (Active Management Technology), a remote management solution a bit like ASF but more advanced. As far as I know, AMT firmware always runs, even when it's disabled, it's just completely idle. Idle, but in this case I think it choked on something, and a reboot isn't enough to restart the AMT firmware. But a real hard reset without any power seems to do the trick.

What next?

Well, a part of me is pretty scared, but another is just bored. I mean, we know about that, that's exactly the kind of issue we are warning people of. I have no idea what exactly happened, and there's no way I'll be able to reproduce that, but I'm pretty sure it's something lying at a pretty low level in the platform, and which can severely disable your workstation. Now if it happens again I won't lose too much time on this.

TL;DR: helping other people

In case you came here because you searched on google terms like “kworker cpu usage”, e1000e, interrupts, it might be a good idea to first reboot on a live CD to eliminate installation issues, then shutdown the laptop, remove the battery and let it few seconds idle. This might be enough to reset “something” inside and fix the situation.

Corsac@22:44:53 (Debian)

mercredi 07 septembre 2011 (1 post)
  • La terre en vigne, la voilà la jolie vigne

Retour aux Riceys après le mariage. Non pas un voyage de noce (encore que) mais plutôt en week-end festif entre potes. Festif oui, mais studieux aussi.

Le constat de départ, c'est que Romaric & co possèdent quelques arpents de vignes (saviez vous qu'un arpent n'est en fait pas une unité de surface mais une unite de longueur ? il faudrait dire « quelques arpents carrés ») en Champagne, et que la saison des vendanges c'est à peu près maintenant.

Or, Romaric & co ça veut dire quelques paires de bras, mais beaucoup plus. Et même avec juste « quelques » arpents (carrés) de vignes, ça fait quand même un paquet de kilos de raisins (on se rend pas très bien compte, mais ça produit ces bêtes là, en fait). Et donc, qu'à eux tous, ils risquent de pas tout à fait s'en sortir avant l'hiver, ce qui ferait un peu tache.

Longue histoire courte (et autres anglicismes), ils avaient besoin d'un coup de main (et de plusieurs mêmes si possible) et comme on est gentils, qu'on aime bien Romaric (et le champagne) et que ça faisait l'occasion (et le larron) d'aller prendre l'air à la campagne.

C'est assez agréable, en dehors du côté air pur de la campagne, de se mettre un peu au travail physique, et faire travailler autre chose que son cerveau et ses doigts. Se vider la tête, travailler méthodiquement : se baisser, enlever les feuilles, repérer les grappes, trouver la tige, mettre sa main gauche dessous (pas derrière), donner un coup de sécateur (de vendangette), récupérer la grappe dans la main gauche, la déposer dans le seau, passer à la grappe suivante, puis au plan suivant, vider le seau de temps en temps dans une caisse, croquer dans une grappe à l'occasion histoire de reprendre un peu de sucre.

Je sais pas si au bout d'une semaine à faire ça 8h par jour j'en aurais pas un peu marre (sans doute que si) et si j'aurais pas mal au dos (étonnamment je n'ai pas eu du tout mal au dos, par contre j'ai eu mal au pied droit qui est resté plié tout le temps, on peut pas tout avoir). Mais là, trois demi-journées, c'était bien, c'était même un peu frustrant de partir avant la fin, de pas arriver au bout, de finir le travail et d'avoir la satisfaction d'en avoir terminé. L'année prochaine, si on remet ça, pas de doute, il faut :

  • avoir des bottes avec soi (plutôt que les squatter) ;
  • acheter une paire de gants genre gants à huitre anti-coupures, pour pas se découper les mains avec la vendangette ;
  • prévoir trois jours, voire un peu plus pour profiter du avant/après et décharger un peu les organisateurs qui ont plein de trucs à gérer.

Évidemment, l'année prochaine on sait pas ce qu'on fera à cette période là et c'est encore un peu tôt pour commencer à tirer des plans sur la comète, mais c'est tout de même quelque chose qui m'a bien plu, un moment de partage, de repos mental, de plaisirs sains, de grand air. Pas tout à fait des vacances, mais pas loin quand même.

(avec ça, si Romaric nous rembauche pas l'année prochaine, je sais pas ce qu'il lui faut…)

Corsac@23:57:18 (Echoes)

jeudi 04 août 2011 (1 post)
  • Access to Intel documentation in pdf (flash applet bypass)

[UPDATE]: A reader from planet debian (thank you Ross!) just made me noticed that this was definitely not useful. On the (standard) intel documentation page, there's some icons on the top right, like stuff for social networks (facebook, linkedin, twitter and some other), a print icon and a down arrow which I didn't notice at all but which is a direct download link to the PDF. Sorry Intel for doubting you!

Starting recently, Intel has started to provide documentation using a flash pdf viewer (example here). This is really painful. I personnaly don't use flash (the flash player is not installed on most of my boxes), I have concerns over flash security wise and I don't like the fact it's proprietary, that the x86_64 version lags behind etc. On top of that, just *using* the flash pdf viewer is painful. It's slow, you're restricted to your browser, search is inexistent, you can't save them for reading them offline.

Trying to dig a little inside the Intel website, I had a thought. Who in the world can't use flash? Linux people, yes (at least some of them) but nobody cares. But iPhone/iPad users don't have flash player on their OS, meaning they can't read Intel docs. Or can they?

Thanks to the “Inspect element” tool in webkit browsers, one can easily watch the above website and see something interesting. The div containing the flash applet is style like:

<div id="viewerPlaceHolder" class="nonipad">

 

and just below we can see:
<div class="ipad hidden">
<a href="/content/dam/doc/manual/64-ia-32-architectures-software-developer-vol-1-manual.pdf" class="icon pdf" title="Headline">64-ia-32-architectures-software-developer-vol-1-manual.pdf</a>
<h2><a href="/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-vol-1-manual.html" title="Headline">Intel® 64 and IA-32 Architectures Developer's Manual: Vol. 1</a></h2>
<!-- <h3>Lorem Ipsum</h3> -->
<!-- <p>Lorem ipsum dolor sit amet, consectetur adip.</p> --> </div>
(I like the lorem ipsum part, too). The class ipad hidden is defined in the intel.iOS.css, which is included through:

<script type="text/javascript">  
if ((navigator.userAgent.indexOf('iPad') != -1)) { 
document.write('<link rel="stylesheet" type="text/css" href="/etc/designs/intel/us/en/css/intel.iOS.css" media="screen" />'); 

</script>

So here's a solution!

TL;DR:

So you want access to the real pdf link? Just set your user agent to the iPad (seems that iPhone works too) and you'll be presented with a link on a PDF icon. It should be possible to use a userscript or a userstyle for that too, though I can't remember how to write one right now.

Corsac@07:58:38 (Debian)

mercredi 25 mai 2011 (1 post)
  • Facebook

Hi Yves-Alexis,

You have more friends on Facebook than you think.

Thanks,
The Facebook Team

Hi Facebook Team,

Please leave me alone.

Thanks,
Yves-Alexis

Corsac@07:58:32 (Roadbook)

lundi 18 avril 2011 (1 post)
  • What happens in Les Riceys stays in Les Riceys

Un week-end ma foi fort sympathique, comme on aimerait en avoir plus souvent (mais quand même pas trop, rapport à la fatigue et au lever de coude). Du soleil, du grand air, du Champagne (plein de Champagne), des essayages, et plein de discussions. En fait, ça m'a fait beaucoup de bien de me retrouver avec Delf & Rom le temps d'un weekend, un peu comme au bon vieux temps. Les choses ont bougé depuis, évidemment, mais dans l'ensemble plutôt dans le bon je trouve. Elles ne sont pas forcément plus faciles maintenant qu'à l'époque et les situations respectives sont parfois encore un peu compliquées, mais je trouve qu'on s'en sort plutôt bien, au final.

Et c'est très agréable de partager ces moments, dans le train, dans la voiture, autour d'une table, sur un canapé, avec ou sans coupe de Champagne. À parler de tout et de rien, de choses triviales et de choses sérieuses. À plaisanter, à être bien ensemble, à juste profiter.

Évidemment, on n'était pas là que pour profiter du soleil et du Champagne, on avait une mission, qui fût brillamment remplie (et j'en remercie du fond du cœur mes deux acolytes, même si ça risque de se reproduire pas mal ces temps ci) dans la joie et la bonne humeur. Même si ça pouvait limite passer pour un avant goût d'enterrement de vie de garçon, ce n'était pas du tout le cas, on y allait pour avancer sur le mariage, pas pour jouer au casino ! Me voilà donc habillé, au moins en partie, pour l'événement.

Et de fait, ça concrétise vachement les choses de s'en occuper en vrai (y compris faire chauffer la carte bancaire), de commencer les plans concrets sur le Champagne (ha bin oui c'est pour ça hein, il fallait goûter), voir combien on en veut, quel genre, à quel moment etc. Ça fait vraiment du bien de bouger sur l'organisation, de tirer des plans un peu moins sur la comète, de cocher les cases, voir les jours enfin se rapprocher de la date, après le report d'un an, le fait que les choses aient été décalées renforce aussi le besoin d'avancer vraiment dans le concret.  (Et le désir s'accroît quand l'effet se recule).

Alors voilà, un weekend vraiment fabuleux, riche en émotions, même si elles n'étaient pas toutes complètement joyeuses. Et oui, j'en veux encore des comme ça...

Corsac@22:28:18 (Echoes)

dimanche 06 mars 2011 (1 post)
  • Update on Xfce 4.8

Since the last post, few things did happen. Basically, it's still not the right time for Debian users to upgrade to Xfce 4.8. We eventually managed to upload the whole desktop part (except the xfce metapackage) to experimental and we did upload some of the goodies too. Licensing issues have been solved so the concerned packages have been uploaded, and we're right now waiting on the three packages sitting in NEW.

  • garcon is really mandatory for Xfce 4.8 since it implements the menu library, used by xfce4-panel, xfdesktop and xfce4-appfinder;
  • thunar-vfs is needed if you want to keep the goodies not yet ported to the new thunar gio-based API (right now that means squeeze, the archiver, not the distribution);
  • tumbler is a replacement for thunar-thumbnailers, implementing a standard thumbnailing interface, so it's possible to skip it for now.

So you'll need to be a little more patient and kindly wait for our ftp-masters to process the (quite huge) NEW backlog. After that we'll need a bit more time in experimental to test upgrade cases, then we'll do an upload to unstable of the whole desktop part and the whole goodies.

Upgrading to xfce4-panel 4.8 means *all* plugins need to be rebuilt too, so that means a huge upgrade and a quite large transition to handle for the release team, so we'll have to schedule the unstable upload with them in order not to break all their plans (yes, we try to be good Debian citizens)

So please be patient, but you'll see Xfce 4.8 in unstable in a not too distant future. I'll put an update here when we'll need brave volunteers willing to break their systems by doing upgrade tests.

[UPDATE]: garcon, thunar-vfs and tumbler were just accepted into experimental, thanks to our ftp-masters. Now we'll synchronize with release team and upload to unstable when possible.

Yves-Alexis@13:36:40 (Debian)

samedi 05 mars 2011 (1 post)
  • La solution « couches » du jour

La question du choix des couches est assez souvent problématique : les couches jetables c'est super polluant, les couches lavables ça utilise plein d'eau, les couches recyclables ont sait pas les recycler.

Nous on vient d'avoir une idée géniale à breveter : il suffit d'utiliser les pancakes ! Qui n'a jamais remarqué la capacité d'absorption du sirop d'érable qu'ont les pancakes ? Il suffit de coller un pancake ou deux dans une culotte et hop, plus de problèmes de fuites !

Corsac@15:42:11 (Roadbook)

samedi 12 février 2011 (1 post)
  • Xfce 4.8 and Debian

Now that Squeeze has been released, we (the pkg-xfce group) are in the process of uploading 4.8 to Debian. And we are uploading it to experimental for good reasons.

Not that 4.8 is broken, but the packages are, and we're aware of it. Some packages are still in NEW, some are not uploaded because of some licensing issues, some have not been uploaded because we didn't yet have the time.

What does this mean for you? That you should *not* upgrade to Xfce 4.8. Not all packages will be upgraded, and mixing 4.6 and 4.8 is a bad idea. We don't know yet what will happen (and that's the whole point of uploading to experimental), and it seems that there are issues indeed.

So unless you're willing to fix the problems, don't upgrade to 4.8. It's not complete and it *will* break your install. I wouldn't recommend building and installing from our svn repository (for the sames reasons) nor from another (since upgrade path won't be guaranteed and we won't be able to fix them for you).

So please be patient, we will upload 4.8 to unstable at one point, and there will still be polishing to be made if you want to help.

Corsac@11:59:14 (Debian)

mardi 04 janvier 2011 (1 post)
  • gvim remote server and workspace-specific editor window

These days, I've been used to a very specific $EDITOR usage. I use my (Xfce) workspaces as context switch. Basically, each time I need to start a new “activity” I open a new workspace, open some terminals, maybe a browser, an editor (gvim) window etc. Then when I'm done, I delete that workspace.

I can have multiple activities at once, and switch from one to another depending on various stuff. On those workspaces, I'd like to be able to have only one editor window, even when I open new files using “gvim foo.c”. But I'd like to have one editor window per workspace, not one global editor, since I'd like the editor to be context-specific too.

I recently heard about the gvim remote stuff, and I've came with the following gvim function (zsh syntax):

function gvim() {
desktop=$(xprop -root -notype -f _NET_CURRENT_DESKTOP 0c '$0+\n' _NET_CURRENT_DESKTOP) 
if [ "$#" -ge "1" ];
then
gvimargs="--remote-tab-silent"
fi
=gvim --servername $desktop $gvimargs $*
}

The xprop trick is a hackish way to stick one gvim window per workspace, it might need to be adjusted if one has a two monitors setup and want to be able to have one editor per monitor per workspace.

Basically, that snippet checks if a gvim server already exists with the current workspace name. If yes, it opens the file(s) in it, if not it run a new gvim server and opens the file there.

It works more or less fine, but it has one problem: it fails badly when one needs to give args to the gvim call. Those args are usually placed *before* filenames, so in my case it won't work. One way to fix this would be to loop on all the args, check if the arg is an existing file, in case add it to $files. If not, add it to $args, then call gvim with the correct order. Works, except when you want to edit a new file, where you're back to point one.

All in all, it'd work, but it's not really a nice way to do it, imho. So I'm calling for help, in case anyone has an idea about that. Basically, is there a way to say to gvim “always open files in a remote server, run it if it's not already running” using the config file and not an argument (so I don't mess with the command line). I do need the servername to be desktop specific though, so it's still a difficulty.

NOTE: I know that emacs has some kind of remote server habilities too, but I'm not sure how it works and if it'd be possible to do that in emacs, and I'm not really an emacs user and don't really intend to switch.

If you have any idea, feel free to comment (by mail), I might do a later post when I have an enhanced solution.

Yves-Alexis@22:51:14 (Debian)

vendredi 31 décembre 2010 (1 post)
  • Le cru 2010

L'année avait plutôt bien commencé, mais on s'est comme qui dirait arrêtés au 28 octobre, donc on a finalement deux mois de moins que les années passées.

Tout d'abord, la liste :

 

  • La merditude des choses : 1er janvier 2010, MK2 Quai de Seine
  • Les chats persans : 8 janvier 2010, MK2 Quai de Seine
  • Avatar : 15 janvier 2010, MK2 Quai de Loire
  • A serious man : 21 janvier 2010, MK2 Quai de Seine
  • Sûmo : 28 janvier 2010, MK2 Quai de Seine
  • In the air : 29 janvier 2010, MK2 Quai de Seine
  • Lebanon : 5 février 2010, MK2 Quai de Seine
  • Brothers : 12 février 2010, MK2 Quai de Seine
  • I love you Phillip Morris : 19 février 2010, MK2 Quai de Loire
  • Shutter Island : 26 février 2010, MK2 Quai de Loire
  • An education : 5 mars 2010, MK2 Quai de Seine
  • A single man : 12 mars 2010, MK2 Quai de Loire
  • Soul kitchen : 19 mars 2010, MK2 Quai de Seine
  • Green zone : 25 avril 2010, MK2 Quai de Seine
  • Iron man 2 : 30 avril 2010, MK2 Quai de Loire
  • L'arnacœur : 7 mai 2010, MK2 Quai de Loire
  • Hedwig and the angry inch : 9 mai 2010, MK2 Quai de Seine
  • El secreto de sus ojos : 13 mai 2010, MK2 Quai de Seine
  • Film socialisme : 21 mai 2010, MK2 Quai de Loire
  • Les secrets : 28 mai 2010, MK2 Quai de Seine
  • Prince of Persia : 4 juin 2010, MK2 Quai de Loire
  • When you're strange : 18 juin 2010, MK2 Quai de Loire
  • L'illusionniste : 25 juin 2010, MK2 Quai de Seine
  • La disparition d'Alice Creed : 2 juillet 2010, MK2 Quai de Seine
  • Petits meurtres à l'anglaise : 9 juillet 2010, MK2 Quai de Seine
  • Tamara Drew : 16 juillet 2010, MK2 Quai de Loire
  • Predators : 17 juillet 2010, UGC Ciné Cité les Halles
  • Inception : 23 juillet 2010, MK2 Quai de Loire
  • Night & Day : 30 juillet 2010, MK2 Quai de Loire
  • Droit de passage : 8 août 2010, MK2 Gambetta
  • Tournée : 13 août 2010, MK2 Quai de Seine
  • The expandables : 20 août 2010, MK2 Quai de Loire
  • Le bruit des glaçons : 27 août 2010, Mk2 Quai de Seine
  • Cleveland contre Wall Street : 3 septembre 2010, MK2 Quai de Seine
  • Miral : 17 septembre 2010, MK2 Quai de Loire
  • The Town : 24 septembre 2010, MK2 Quai de Seine
  • Simon Werner a disparu : 1 er octobre 2010, MK2 Quai de Loire
  • Vous allez rencontrer un bel et sombre inconnu : 8 octobre 2010, MK2 Quai de Loire
  • Moi, moche et méchant : 22 octobre 2010, MK2 Quai de Seine

Soit 39 films en 42 semaines, c'est pas si mal, surtout que l'année dernière on était à 41 sur 52 semaines. 38 MK2 (21 Quai de Seine, 16 Quai de Loire et un Gambetta, histoire de tester les environs), un intrus (UGC Ciné Cité des Halles, il fallait bien ça pour Predators) (ou pas). Une écrasante majorité de canal, donc, mais ça ne surprendra personne.

Dans l'ensemble je suis plutôt content de cette année, et même un peu frustré d'avoir « loupé » potentiellement 10 films (en fait sans doute plutôt 7 ou 8 maximum) (ma fille en prendra pour 20 ans de psys quand elle lira ce post, mais en même temps quand elle lira les débuts du blog ça sera encore pire). Je crois que c'était plutôt un bon cru, à vrai dire.

Les quelques films qui se sont démarqués, pour moi, c'est Avatar (qui m'a dégoutté de la 3D, et que je suis bien content d'avoir offert en DVD version longue et 2D à Marie), Lebanon (un huis-clos bien stressant, une prise de son qui vous scotche dedans), La disparition d'Alice Creed (sans doute mon préféré de l'année), Night & Day (pour le côté second degré).

Maintenant il va falloir songer à rendre les cartes illimitées et voir du côté des vidéo-clubs et autre VOD.

 

Corsac@15:11:30 (Echoes)

mardi 21 décembre 2010 (1 post)
  • Hiver

Aujourd'hui les jours rallongent \o/.

Corsac@09:50:57 (Echoes)

Images
Stats
  • 1460 posts
  • 3627 jours
  • 0.40 posts/jour
  • IRC
  • Last.fm
Stuff
Gallery

Tech
Webcomics
Weblogs
Desktop