Git: Remplacer une branch distante

14 mars 2012 par zedtux Pas de commentaires »

Situation initiale

Imaginez que vous travaillez sur une branche develop, qui donc contient les toutes dernières modifications, et une autre branche demo.
Disons que cette dernière est en retard d’un an.

Si vous essayez de faire un bête merge

Vous risquez d’entrer en guerre avec toute une série de conflits.

» En lire plus:Git: Remplacer une branch distante

Ubuntu natural scrolling improved

6 mars 2012 par zedtux Pas de commentaires »

Maybe, some of you are using the GNOME Applet Natural Scrolling?

If not, and you want to know what is Natural Scrolling, then look at the README file.

You maybe know too that I’m the collaborator cemmanouilidis.
Then I’m implemented the next major feature: Multiple devices support.

Where do we stand?

Short answer is close to the end.

I already have release a first testing version. To do that, I’ve created a naturalscrolling-testing package available in my Apple naturalscrolling PPA.
There already exists an issue on github.com about missing dependencies. So sorry about that.

If you’ve tested it, and have a bug, please fill in a new issue following instructions from the Natural Scrolling Wiki page

Douane: Mockup

26 février 2012 par zedtux Pas de commentaires »

Since the announcement of the project until my last post about Douane, I didn’t post any visual things.

That’s the goal of this article :)

 

One feature of Douane will be to show, in real time, the network activities.
To show this activities, I’ve been inspired by Little Snitch, and I did 2 gauges to show in and out going traffic.
(I miss Little Snitch on Ubuntu, so that’s why I’m so inspired by it. But I will not do a clone only. I want more features.)
As I’m a Ubuntu fan, I made it in order to be well integrated to Unity, but also to GNOME-Shell.

Unity Applet

GNOME-Shell extension

 

Douane: Daemon is in the pipe!

23 février 2012 par zedtux Pas de commentaires »

In my previous article, I was speaking about stabilization of my Kernel module.

This is now quite done. The kernel module is working well (no more crashing of the Virtual Machine). I just have to keep in mind to check for memory leaks.

Current state

Well now, the next step is the Daemon!

So I’m back to my C++ courses. I’d forgot a lot, but knowledge is coming back again. :-P

Something to show us?

Erf… no. No graphical stuff to show you.

Douane: Kernel module stabilization

15 février 2012 par zedtux Pas de commentaires »

Some days ago I’ve announced my brand new project Douane.

Current state

Daemon and Linux Kernel module communication is now fixed and work pretty well, but my development environment (a VirtualBox instance hosting Ubuntu Precise 12.04) is crashing after few minutes.

So I’m now working on the stabilization of the kernel module.

Something to show us?

Still not. Like in my previous post, sorry.

Announcing Douane

8 février 2012 par zedtux Pas de commentaires »

What’s that?

Douane is an Interactive Firewall for Linux >= 2.6. like TuxGuardian.

It means that when an application try to open a new connection to a remote server, and is unknown by Douane, then a dialog box allowing you to decide if you accept it or not will popup, blocking the application until you answer it.

Basically it’s another interface to Linux Netfilter, but more friendly user.

Current state

The project will be splited in some pieces, and the very first one is a Linux Kernel module (written in C), and a daemon (written in C++).
I’m currently working on the Kernel module communications with User namespace application on my Ubuntu Oneiric 11.10, with a VirtualBox instance hosting Ubuntu Precise 12.04 (Kernel version 3.2.0).

The first release will only show the network activities without blocking anythings (because the kernel need to know all rules in order to block or not requests, and that part will be done after).

Something to show us?

No. At least some debugs messages from the kernel, but I don’t think that you want it ;)

 

Boot-Repair is awesome !

7 octobre 2011 par zedtux Pas de commentaires »

Si vous rencontrez des difficultés à démarrer votre GNU/Linux, je vous conseil vivement Boot-Repair !

 

Prenez votre CD d’Ubuntu (par exemple), puis installez Boot-Repair (suivre ce lien pour Ubuntu: https://help.ubuntu.com/community/Boot-Repair) puis lancer Boot-Repair.

Cliquez sur le premier bouton et laissez faire !

Et tout fonctionnera !

My first Gem: Inverse of number_to_human_size

7 septembre 2011 par zedtux Pas de commentaires »

After 2 years of Ruby On Rails development at my work, I finally created my first gem after having contributed to the DOTIW gem.

 

We was looking to a gem that do the inverse of the ActionView::Helpers::NumberHelper#number_to_human_size.

As we didn’t find anything, I’ve decided to write it a last week-end and here is the human_size_to_number gem ! :)

Lancer Gedit comme TextMate

10 août 2011 par zedtux Pas de commentaires »

Au travail, nous utilisons TextMate. Ce dernier, peut-être lancé depuis le terminal en passant un répertoire comme projet afin de pouvoir atteindre n’importe quel fichier.

Pour se faire, une fois dans le répertoire racine du projet, nous n’avons qu’à lancer ceci:

TextMate est lancé puis le prompt est rendu.

Avec Gedit, c’est un peu différent. Si je fais:

Gedit se lance bien avec comme répertoire courant le chemin où je me trouve, mais par-contre, Gedit n’est pas détaché du terminal. Si bien que si je ferme le terminal ou fais CTRL + C, Gedit se ferme.

Pour imiter TextMate, j’ai imaginé une toute petite fonction bash (que j’utilise avec zsh) que voici:

Cette fonction surcharge gedit afin de prendre la chemin passé, de l’envoyer à Gedit puis le & permet de détacher Gedit de l’instance du terminal.

 

Voilà :)

OS X Java: No such file or directory – Contents/Home/Home/include (Errno::ENOENT)

1 août 2011 par zedtux Pas de commentaires »

Je viens d’avoir ce petit soucis au boulot, et comme j’ai la solution, je la partage ! :)

 

Une fois passé à OS X Lion, et Java installé par le Software update, j’ai donc lancé l’installation des gems d’un project Ruby On Rails ayant comme dépendance rjb.

Mais pendant son installation, voici l’erreur que j’avais:

Mon JAVA_HOME étant définie comme ceci:

et donc contenant:

Pour corriger ce problème, il suffit de créer un lien symbolique manquant qui ajoutera le dossier include dans le JAVA_HOME comme ceci:

Maintenant l’installation de RJB re-fonctionne ! ;)