mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
Update documentation
This commit is contained in:
commit
3416382f37
65 changed files with 18817 additions and 0 deletions
186
a-distutils2-gsoc.html
Normal file
186
a-distutils2-gsoc.html
Normal file
|
@ -0,0 +1,186 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>A Distutils2 GSoC</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to A Distutils2 GSoC">A Distutils2 GSoC</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-05-01T00:00:00">
|
||||
Sat 01 May 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>WOW. I've been accepted to be a part of the
|
||||
<a class="reference external" href="http://code.google.com/intl/fr/soc/">Google Summer Of Code</a>
|
||||
program, and will work on <a class="reference external" href="http://python.org/">python</a>
|
||||
<a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a>, with
|
||||
<a class="reference external" href="http://pygsoc.wordpress.com/">a</a>
|
||||
<a class="reference external" href="http://konryd.blogspot.com/">lot</a> <a class="reference external" href="http://ziade.org/">of</a>
|
||||
(intersting!) <a class="reference external" href="http://zubin71.wordpress.com/">people</a>.</p>
|
||||
<blockquote>
|
||||
So, it's about building the successor of Distutils2, ie. "the
|
||||
python package manager". Today, there is too many ways to package a
|
||||
python application (pip, setuptools, distribute, distutils, etc.)
|
||||
so there is a huge effort to make in order to make all this
|
||||
packaging stuff interoperable, as pointed out by
|
||||
the <a class="reference external" href="http://www.python.org/dev/peps/pep-0376/">PEP 376</a>.</blockquote>
|
||||
<p>In more details, I'm going to work on the Installer / Uninstaller
|
||||
features of Distutils2, and on a PyPI XML-RPC client for distutils2.
|
||||
Here are the already defined tasks:</p>
|
||||
<ul class="simple">
|
||||
<li>Implement Distutils2 APIs described in PEP 376.</li>
|
||||
<li>Add the uninstall command.</li>
|
||||
<li>think about a basic installer / uninstaller script. (with deps)
|
||||
-- similar to pip/easy_install</li>
|
||||
<li>in a pypi subpackage;</li>
|
||||
<li>Integrate a module similar to setuptools' package_index'</li>
|
||||
<li>PyPI XML-RPC client for distutils 2:
|
||||
<a class="reference external" href="http://bugs.python.org/issue8190">http://bugs.python.org/issue8190</a></li>
|
||||
</ul>
|
||||
<p>As I'm relatively new to python, I'll need some extra work in order
|
||||
to apply all good practice, among other things that can make a
|
||||
developper-life joyful. I'll post here, each week, my advancement,
|
||||
and my tought about python and especialy python packaging world.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "a-distutils2-gsoc.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
188
amap-media-paniers-bio-a-5e.html
Normal file
188
amap-media-paniers-bio-a-5e.html
Normal file
|
@ -0,0 +1,188 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>AMAP + Média = Paniers bio à 5e ?!</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li class="active"><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to AMAP + Média = Paniers bio à 5e ?!">AMAP + Média = Paniers bio à 5e ?!</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2009-11-11T00:00:00">
|
||||
Wed 11 November 2009
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/asso.html">asso</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Le raccourci me semble un peu rapide. Et pourtant, il est emprunté
|
||||
bien trop souvent. La dernière <em>mes-utilisation</em> que j'ai à décrier
|
||||
est celle d'un reportage télé, passé sur France 2 vendredi 23
|
||||
Octobre
|
||||
(<a class="reference external" href="http://docs.notmyidea.org/amap/amap-fr2.avi">voir la vidéo</a>),
|
||||
ou on parles de
|
||||
<a class="reference external" href="http://amap.zest.free.fr">l'AMAP étudiante Zest</a>.</p>
|
||||
<p>Malgré tout le temps passé à expliquer que justement, l'AMAP c'est
|
||||
avant tout, pour nous, une notion de solidarité envers les
|
||||
agriculteurs, malgré le fait que le message soit plus profond que
|
||||
simplement aller acheter du bio (ça, c'est possible aussi en
|
||||
supermarché), malgré le fait qu'il s'agisse en fait d'une remise en
|
||||
cause plus profonde de la société, les journalistes n'ont choisi de
|
||||
prendre que les quelques secondes qui leurs convenaient, celles qui
|
||||
ne faisaient pas tache, celle ou je dis que "l'AMAP permet aux
|
||||
étudiants de réapprendre à cuisiner, plutôt que de manger des
|
||||
nouilles et de se faire des plats réchauffés". Bien sur, je l'ai
|
||||
dit et je le pense d'ailleurs, là n'est pas le problème, mais mon
|
||||
message n'était pas celui là.</p>
|
||||
<p>Jamais, dans les quelques minutes du reportage, on ne dit ce que
|
||||
AMAP signifie: Association de <strong>Maintien</strong> d'une Agriculture
|
||||
<strong>Paysanne</strong>. On ne parles même pas des agriculteurs ! C'est
|
||||
simplement plus facile pour les étudiants de venir récupérer leurs
|
||||
paniers, puisque les points de distribution sont sur les facs, et
|
||||
en plus ça ne coute que 5 euros ! ...</p>
|
||||
<p>Alors je crois bon de rappeler que L'AMAP n'est pas seulement un
|
||||
service, c'est un engagement. Sur 5 mois, un engagement solidaire,
|
||||
c'est la donnée principale de l'équation, celle sans quoi ça ne
|
||||
peut fonctionner. Par le biais de cette AMAP, on essaye de montrer
|
||||
que d'autres agricultures sont possibles, que la solidarité c'est
|
||||
bien réel, et qu'il est possible de sortir du
|
||||
<em>tout, tout de suite</em>.</p>
|
||||
<p>Mais bon, apparemment, ça passe pas bien à la télé.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "amap-media-paniers-bio-a-5e.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
298
an-amazing-summer-of-code-working-on-distutils2.html
Normal file
298
an-amazing-summer-of-code-working-on-distutils2.html
Normal file
|
@ -0,0 +1,298 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>An amazing summer of code working on distutils2</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to An amazing summer of code working on distutils2">An amazing summer of code working on distutils2</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-08-16T00:00:00">
|
||||
Mon 16 August 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>The <a class="reference external" href="http://code.google.com/soc/">Google Summer of Code</a> I've
|
||||
spent working on <a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a>
|
||||
is over. It was a really amazing experience, for many reasons.</p>
|
||||
<p>First of all, we had a very good team, we were 5 students working
|
||||
on distutils2: <a class="reference external" href="http://zubin71.wordpress.com">Zubin</a>,
|
||||
<a class="reference external" href="http://wokslog.wordpress.com/">Éric</a>,
|
||||
<a class="reference external" href="http://gsoc.djolonga.com/">Josip</a>,
|
||||
<a class="reference external" href="http://konryd.blogspot.com/">Konrad</a> and me. In addition,
|
||||
<a class="reference external" href="http://mouadino.blogspot.com/">Mouad</a> have worked on the PyPI
|
||||
testing infrastructure. You could find what each person have done
|
||||
on
|
||||
<a class="reference external" href="http://bitbucket.org/tarek/distutils2/wiki/GSoC_2010_teams">the wiki page of distutils2</a>.</p>
|
||||
<p>We were in contact with each others really often, helping us when
|
||||
possible (in #distutils), and were continuously aware of the state
|
||||
of the work of each participant. This, in my opinion, have bring us
|
||||
in a good shape.</p>
|
||||
<p>Then, I've learned a lot. Python packaging was completely new to me
|
||||
at the time of the GSoC start, and I was pretty unfamiliar with
|
||||
python good practices too, as I've been introducing myself to
|
||||
python in the late 2009.</p>
|
||||
<p>I've recently looked at some python code I wrote just three months
|
||||
ago, and I was amazed to think about many improvements to made on
|
||||
it. I guess this is a good indicator of the path I've traveled
|
||||
since I wrote it.</p>
|
||||
<p>This summer was awesome because I've learned about python good
|
||||
practices, now having some strong
|
||||
<a class="reference external" href="http://mercurial.selenic.com/">mercurial</a> knowledge, and I've
|
||||
seen a little how the python community works.</p>
|
||||
<p>Then, I would like to say a big thanks to all the mentors that have
|
||||
hanged around while needed, on IRC or via mail, and especially my
|
||||
mentor for this summer, <a class="reference external" href="http://tarek.ziade.org">Tarek Ziadé</a>.</p>
|
||||
<p>Thanks a lot for your motivation, your leadership and your
|
||||
cheerfulness, even with a new-born and a new work!</p>
|
||||
<div class="section" id="why">
|
||||
<h2>Why ?</h2>
|
||||
<p>I wanted to work on python packaging because, as the time pass, we
|
||||
were having a sort of complex tools in this field. Each one wanted
|
||||
to add features to distutils, but not in a standard way.</p>
|
||||
<p>Now, we have PEPs that describes some format we agreed on (see PEP
|
||||
345), and we wanted to have a tool on which users can base their
|
||||
code on, that's <a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="my-job">
|
||||
<h2>My job</h2>
|
||||
<p>I had to provides a way to crawl the PyPI indexes in a simple way,
|
||||
and do some installation / uninstallation scripts.</p>
|
||||
<p>All the work done is available in
|
||||
<a class="reference external" href="http://bitbucket.org/ametaireau/distutils2/">my bitbucket repository</a>.</p>
|
||||
<div class="section" id="crawling-the-pypi-indexes">
|
||||
<h3>Crawling the PyPI indexes</h3>
|
||||
<p>There are two ways of requesting informations from the indexes:
|
||||
using the "simple" index, that is a kind of REST index, and using
|
||||
XML-RPC.</p>
|
||||
<p>I've done the two implementations, and a high level API to query
|
||||
those twos. Basically, this supports the mirroring infrastructure
|
||||
defined in PEP 381. So far, the work I've done is gonna be used in
|
||||
pip (they've basically copy/paste the code, but this will change as
|
||||
soon as we get something completely stable for distutils2), and
|
||||
that's a good news, as it was the main reason for what I've done
|
||||
that.</p>
|
||||
<p>I've tried to have an unified API for the clients, to switch from
|
||||
one to another implementation easily. I'm already thinking of
|
||||
adding others crawlers to this stuff, and it was made to be
|
||||
extensible.</p>
|
||||
<p>If you want to get more informations about the crawlers/PyPI
|
||||
clients, please refer to the distutils2 documentation, especially
|
||||
<a class="reference external" href="http://distutils2.notmyidea.org/library/distutils2.index.html">the pages about indexes</a>.</p>
|
||||
<p>You can find the changes I made about this in the
|
||||
<a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a> source code .</p>
|
||||
</div>
|
||||
<div class="section" id="installation-uninstallation-scripts">
|
||||
<h3>Installation / Uninstallation scripts</h3>
|
||||
<p>Next step was to think about an installation script, and an
|
||||
uninstaller. I've not done the uninstaller part, and it's a smart
|
||||
part, as it's basically removing some files from the system, so
|
||||
I'll probably do it in a near future.</p>
|
||||
<p><a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a> provides a way to
|
||||
install distributions, and to handle dependencies between releases.
|
||||
For now, this support is only about the last version of the
|
||||
METADATA (1.2) (See, the PEP 345), but I'm working on a
|
||||
compatibility layer for the old metadata, and for the informations
|
||||
provided via PIP requires.txt, for instance.</p>
|
||||
</div>
|
||||
<div class="section" id="extra-work">
|
||||
<h3>Extra work</h3>
|
||||
<p>Also, I've done some extra work. this includes:</p>
|
||||
<ul class="simple">
|
||||
<li>working on the PEP 345, and having some discussion about it
|
||||
(about the names of some fields).</li>
|
||||
<li>writing a PyPI server mock, useful for tests. you can find more
|
||||
information about it on the
|
||||
<a class="reference external" href="http://distutils.notmyidea.org">documentation</a>.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="futures-plans">
|
||||
<h2>Futures plans</h2>
|
||||
<p>As I said, I've enjoyed working on distutils2, and the people I've
|
||||
met here are really pleasant to work with. So I <em>want</em> to continue
|
||||
contributing on python, and especially on python packaging, because
|
||||
there is still a lot of things to do in this scope, to get
|
||||
something really usable.</p>
|
||||
<p>I'm not plainly satisfied by the work I've done, so I'll probably
|
||||
tweak it a bit: the installer part is not yet completely finished,
|
||||
and I want to add support for a real
|
||||
<a class="reference external" href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a>
|
||||
index in the future.</p>
|
||||
<p>We'll talk again of this in the next months, probably, but we
|
||||
definitely need a real
|
||||
<a class="reference external" href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a>
|
||||
API for <a class="reference external" href="http://pypi.python.org">PyPI</a>, as the "simple" index
|
||||
<em>is</em> an ugly hack, in my opinion. I'll work on a serious
|
||||
proposition about this, maybe involving
|
||||
<a class="reference external" href="http://couchdb.org">CouchDB</a>, as it seems to be a good option
|
||||
for what we want here.</p>
|
||||
</div>
|
||||
<div class="section" id="issues">
|
||||
<h2>Issues</h2>
|
||||
<p>I've encountered some issues during this summer. The main one is
|
||||
that's hard to work remotely, especially being in the same room
|
||||
that we live, with others. I like to just think about a project
|
||||
with other people, a paper and a pencil, no computers. This have
|
||||
been not so possible at the start of the project, as I needed to
|
||||
read a lot of code to understand the codebase, and then to
|
||||
read/write emails.</p>
|
||||
<p>I've finally managed to work in an office, so good point for
|
||||
home/office separation.</p>
|
||||
<p>I'd not planned there will be so a high number of emails to read,
|
||||
in order to follow what's up in the python world, and be a part of
|
||||
the community seems to takes some times to read/write emails,
|
||||
especially for those (like me) that arent so confortable with
|
||||
english (but this had brought me some english fu !).</p>
|
||||
</div>
|
||||
<div class="section" id="thanks">
|
||||
<h2>Thanks !</h2>
|
||||
<p>A big thanks to <a class="reference external" href="http://www.graine-libre.fr/">Graine Libre</a> and
|
||||
<a class="reference external" href="http://www.makina-corpus.com/">Makina Corpus</a>, which has offered
|
||||
me to come into their offices from time to time, to share they
|
||||
cheerfulness ! Many thanks too to the Google Summer of Code program
|
||||
for setting up such an initiative. If you're a student, if you're
|
||||
interested about FOSS, dont hesitate any second, it's a really good
|
||||
opportunity to work on interesting projects!</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "an-amazing-summer-of-code-working-on-distutils2.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,333 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Analyse users' browsing context to build up a web recommender</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Analyse users' browsing context to build up a web recommender">Analyse users' browsing context to build up a web recommender</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-04-01T00:00:00">
|
||||
Fri 01 April 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href="./tag/recommendations.html">recommendations</a><a href="./tag/browsers.html">browsers</a><a href="./tag/users.html">users</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>No, this is not an april's fool ;)</p>
|
||||
<p>Wow, it's been a long time. My year in Oxford is going really well. I realized
|
||||
few days ago that the end of the year is approaching really quickly.
|
||||
Exams are coming in one month or such and then I'll be working full time on my dissertation topic.</p>
|
||||
<p>When I learned we'll have about 6 month to work on something, I first thought
|
||||
about doing a packaging related stuff, but finally decided to start something
|
||||
new. After all, that's the good time to learn.</p>
|
||||
<p>Since a long time, I'm being impressed by the <a class="reference external" href="http://last.fm">last.fm</a>
|
||||
recommender system. They're <em>scrobbling</em> the music I listen to since something
|
||||
like 5 years now and the recommendations they're doing are really nice and
|
||||
accurate (I discovered <strong>a lot</strong> of great artists listening to the
|
||||
"neighbour radio".) (by the way, <a class="reference external" href="http://lastfm.com/user/akounet/">here is</a>
|
||||
my lastfm account)</p>
|
||||
<p>So I decided to work on recommender systems, to better understand what is it
|
||||
about.</p>
|
||||
<p>Recommender systems are usually used to increase the sales of products
|
||||
(like Amazon.com does) which is not really what I'm looking for (The one who
|
||||
know me a bit know I'm kind of sick about all this consumerism going on).</p>
|
||||
<p>Actually, the most simple thing I thought of was the web: I'm browsing it quite
|
||||
every day and each time new content appears. I've stopped to follow <a class="reference external" href="https://bitbucket.org/bruno/aspirator/">my feed
|
||||
reader</a> because of the
|
||||
information overload, and reduced drastically the number of people I follow <a class="reference external" href="http://twitter.com/ametaireau/">on
|
||||
twitter</a>.</p>
|
||||
<p>Too much information kills the information.</p>
|
||||
<p>You shall got what will be my dissertation topic: a recommender system for
|
||||
the web. Well, such recommender systems already exists, so I will try to add contextual
|
||||
information to them: you're probably not interested by the same topics at different
|
||||
times of the day, or depending on the computer you're using. We can also
|
||||
probably make good use of the way you browse to create groups into the content
|
||||
you're browsing (or even use the great firefox4 tab group feature).</p>
|
||||
<p>There is a large part of concerns to have about user's privacy as well.</p>
|
||||
<p>Here is my proposal (copy/pasted from the one I had to do for my master)</p>
|
||||
<div class="section" id="introduction-and-rationale">
|
||||
<h2>Introduction and rationale</h2>
|
||||
<p>Nowadays, people surf the web more and more often. New web pages are created
|
||||
each day so the amount of information to retrieve is more important as the time
|
||||
passes. These users uses the web in different contexts, from finding cooking
|
||||
recipes to technical articles.</p>
|
||||
<p>A lot of people share the same interest to various topics, and the quantity of
|
||||
information is such than it's really hard to triage them efficiently without
|
||||
spending hours doing it. Firstly because of the huge quantity of information
|
||||
but also because the triage is something relative to each person. Although, this
|
||||
triage can be facilitated by fetching the browsing information of all
|
||||
particular individuals and put the in perspective.</p>
|
||||
<p>Machine learning is a branch of Artificial Intelligence (AI) which deals with how
|
||||
a program can learn from data. Recommendation systems are a particular
|
||||
application area of machine learning which is able to recommend things (links
|
||||
in our case) to the users, given a particular database containing the previous
|
||||
choices users have made.</p>
|
||||
<p>This browsing information is currently available in browsers. Even if it is not
|
||||
in a very usable format, it is possible to transform it to something useful.
|
||||
This information gold mine just wait to be used. Although, it is not as simple as
|
||||
it can seems at the first approach: It is important to take care of the context
|
||||
the user is in while browsing links. For instance, It's more likely that during
|
||||
the day, a computer scientist will browse computing related links, and that during
|
||||
the evening, he browse cooking recipes or something else.</p>
|
||||
<p>Page contents are also interesting to analyse, because that's what people
|
||||
browse and what actually contain the most interesting part of the information.
|
||||
The raw data extracted from the browsing can then be translated into
|
||||
something more useful (namely tags, type of resource, visit frequency,
|
||||
navigation context etc.)</p>
|
||||
<p>The goal of this dissertation is to create a recommender system for web links,
|
||||
including this context information.</p>
|
||||
<p>At the end of the dissertation, different pieces of software will be provided,
|
||||
from raw data collection from the browser to a recommendation system.</p>
|
||||
</div>
|
||||
<div class="section" id="background-review">
|
||||
<h2>Background Review</h2>
|
||||
<p>This dissertation is mainly about data extraction, analysis and recommendation
|
||||
systems. Two different research area can be isolated: Data preprocessing and
|
||||
Information filtering.</p>
|
||||
<p>The first step in order to make recommendations is to gather some data. The
|
||||
more data we have available, the better it is (T. Segaran, 2007). This data can
|
||||
be retrieved in various ways, one of them is to get it directly from user's
|
||||
browsers.</p>
|
||||
<div class="section" id="data-preparation-and-extraction">
|
||||
<h3>Data preparation and extraction</h3>
|
||||
<p>The data gathered from browsers is basically URLs and additional information
|
||||
about the context of the navigation. There is clearly a need to extract more
|
||||
information about the meaning of the data the user is browsing, starting by the
|
||||
content of the web pages.</p>
|
||||
<p>Because the information provided on the current Web is not meant to be read by
|
||||
machines (T. Berners Lee, 2001) there is a need of tools to extract meaning from
|
||||
web pages. The information needs to be preprocessed before stored in a machine
|
||||
readable format, allowing to make recommendations (Choochart et Al, 2004).</p>
|
||||
<p>Data preparation is composed of two steps: cleaning and structuring (
|
||||
Castellano et Al, 2007). Because raw data can contain a lot of un-needed text
|
||||
(such as menus, headers etc.) and need to be cleaned prior to be stored.
|
||||
Multiple techniques can be used here and belongs to boilerplate removal and
|
||||
full text extraction (Kohlschütter et Al, 2010).</p>
|
||||
<p>Then, structuring the information: category, type of content (news, blog, wiki)
|
||||
can be extracted from raw data. This kind of information is not clearly defined
|
||||
by HTML pages so there is a need of tools to recognise them.</p>
|
||||
<p>Some context-related information can also be inferred from each resource. It can go
|
||||
from the visit frequency to the navigation group the user was in while
|
||||
browsing. It is also possible to determine if the user "liked" a resource, and
|
||||
determine a mark for it, which can be used by information filtering a later
|
||||
step (T. Segaran, 2007).</p>
|
||||
<p>At this stage, structuring the data is required. Storing this kind of
|
||||
information in RDBMS can be a bit tedious and require complex queries to get
|
||||
back the data in an usable format. Graph databases can play a major role in the
|
||||
simplification of information storage and querying.</p>
|
||||
</div>
|
||||
<div class="section" id="information-filtering">
|
||||
<h3>Information filtering</h3>
|
||||
<p>To filter the information, three techniques can be used (Balabanovic et
|
||||
Al, 1997):</p>
|
||||
<ul class="simple">
|
||||
<li>The content-based approach states that if an user have liked something in the
|
||||
past, he is more likely to like similar things in the future. So it's about
|
||||
establishing a profile for the user and compare new items against it.</li>
|
||||
<li>The collaborative approach will rather recommend items that other similar users
|
||||
have liked. This approach consider only the relationship between users, and
|
||||
not the profile of the user we are making recommendations to.</li>
|
||||
<li>the hybrid approach, which appeared recently combine both of the previous
|
||||
approaches, giving recommendations when items score high regarding user's
|
||||
profile, or if a similar user already liked it.</li>
|
||||
</ul>
|
||||
<p>Grouping is also something to consider at this stage (G. Myatt, 2007).
|
||||
Because we are dealing with huge amount of data, it can be useful to detect group
|
||||
of data that can fit together. Data clustering is able to find such groups (T.
|
||||
Segaran, 2007).</p>
|
||||
<p>References:</p>
|
||||
<ul class="simple">
|
||||
<li>Balabanović, M., & Shoham, Y. (1997). Fab: content-based, collaborative
|
||||
recommendation. Communications of the ACM, 40(3), 66–72. ACM.
|
||||
Retrieved March 1, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=245108.245124&amp">http://portal.acm.org/citation.cfm?id=245108.245124&amp</a>;.</li>
|
||||
<li>Berners-Lee, T., Hendler, J., & Lassila, O. (2001).
|
||||
The semantic web: Scientific american. Scientific American, 284(5), 34–43.
|
||||
Retrieved November 21, 2010, from <a class="reference external" href="http://www.citeulike.org/group/222/article/1176986">http://www.citeulike.org/group/222/article/1176986</a>.</li>
|
||||
<li>Castellano, G., Fanelli, A., & Torsello, M. (2007).
|
||||
LODAP: a LOg DAta Preprocessor for mining Web browsing patterns. Proceedings of the 6th Conference on 6th WSEAS Int. Conf. on Artificial Intelligence, Knowledge Engineering and Data Bases-Volume 6 (p. 12–17). World Scientific and Engineering Academy and Society (WSEAS). Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1348485.1348488">http://portal.acm.org/citation.cfm?id=1348485.1348488</a>.</li>
|
||||
<li>Kohlschutter, C., Fankhauser, P., & Nejdl, W. (2010). Boilerplate detection using shallow text features. Proceedings of the third ACM international conference on Web search and data mining (p. 441–450). ACM. Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1718542">http://portal.acm.org/citation.cfm?id=1718542</a>.</li>
|
||||
<li>Myatt, G. J. (2007). Making Sense of Data: A Practical Guide to Exploratory
|
||||
Data Analysis and Data Mining.</li>
|
||||
<li>Segaran, T. (2007). Collective Intelligence.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="privacy">
|
||||
<h2>Privacy</h2>
|
||||
<p>The first thing that's come to people minds when it comes to process their
|
||||
browsing data is privacy. People don't want to be stalked. That's perfectly
|
||||
right, and I don't either.</p>
|
||||
<p>But such a system don't have to deal with people identities. It's completely
|
||||
possible to process completely anonymous data, and that's probably what I'm
|
||||
gonna do.</p>
|
||||
<p>By the way, if you have interesting thoughts about that, if you do know
|
||||
projects that do seems related, fire the comments !</p>
|
||||
</div>
|
||||
<div class="section" id="what-s-the-plan">
|
||||
<h2>What's the plan ?</h2>
|
||||
<p>There is a lot of different things to explore, especially because I'm
|
||||
a complete novice in that field.</p>
|
||||
<ul class="simple">
|
||||
<li>I want to develop a firefox plugin, to extract the browsing informations (
|
||||
still, I need to know exactly which kind of informations to retrieve). The
|
||||
idea is to provide some <em>raw</em> browsing data, and then to transform it and to
|
||||
store it in the better possible way.</li>
|
||||
<li>Analyse how to store the informations in a graph database. What can be the
|
||||
different methods to store this data and to visualize the relationship
|
||||
between different pieces of data? How can I define the different contexts,
|
||||
and add those informations in the db?</li>
|
||||
<li>Process the data using well known recommendation algorithms. Compare the
|
||||
results and criticize their value.</li>
|
||||
</ul>
|
||||
<p>There is plenty of stuff I want to try during this experimentation:</p>
|
||||
<ul class="simple">
|
||||
<li>I want to try using Geshi to visualize the connexion between the links,
|
||||
and the contexts</li>
|
||||
<li>Try using graph databases such as Neo4j</li>
|
||||
<li>Having a deeper look at tools such as scikit.learn (a machine learning
|
||||
toolkit in python)</li>
|
||||
<li>Analyse web pages in order to categorize them. Processing their
|
||||
contents as well, to do some keyword based classification will be done.</li>
|
||||
</ul>
|
||||
<p>Lot of work on its way, yay !</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "analyse-users-browsing-context-to-build-up-a-web-recommender.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
198
archives.html
Normal file
198
archives.html
Normal file
|
@ -0,0 +1,198 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Archives for Alexis' log</h1>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt>Wed 11 November 2009</dt>
|
||||
<dd><a href='amap-media-paniers-bio-a-5e.html'>AMAP + Média = Paniers bio à 5e ?!</a></dd>
|
||||
|
||||
<dt>Thu 17 December 2009</dt>
|
||||
<dd><a href='python-go.html'>Python ? go !</a></dd>
|
||||
|
||||
<dt>Wed 24 February 2010</dt>
|
||||
<dd><a href='semaine-de-lenvironnement-la-consommation-etudiante.html'>Semaine de l’environnement: La consommation étudiante</a></dd>
|
||||
|
||||
<dt>Sun 28 March 2010</dt>
|
||||
<dd><a href='le-temps-des-graces-courrez-y.html'>Le temps des grâces, courrez-y !</a></dd>
|
||||
|
||||
<dt>Sat 01 May 2010</dt>
|
||||
<dd><a href='a-distutils2-gsoc.html'>A Distutils2 GSoC</a></dd>
|
||||
|
||||
<dt>Fri 04 June 2010</dt>
|
||||
<dd><a href='first-week-working-on-distutils2.html'>first week working on distutils2</a></dd>
|
||||
|
||||
<dt>Fri 25 June 2010</dt>
|
||||
<dd><a href='use-restructured-text-rest-to-power-your-presentations.html'>Use Restructured Text (ReST) to power your presentations</a></dd>
|
||||
|
||||
<dt>Tue 06 July 2010</dt>
|
||||
<dd><a href='introducing-the-distutils2-index-crawlers.html'>Introducing the distutils2 index crawlers</a></dd>
|
||||
|
||||
<dt>Tue 06 July 2010</dt>
|
||||
<dd><a href='sprinting-on-distutils2-in-tours.html'>Sprinting on distutils2 in Tours</a></dd>
|
||||
|
||||
<dt>Mon 16 August 2010</dt>
|
||||
<dd><a href='an-amazing-summer-of-code-working-on-distutils2.html'>An amazing summer of code working on distutils2</a></dd>
|
||||
|
||||
<dt>Wed 06 October 2010</dt>
|
||||
<dd><a href='pelican-a-simple-static-blog-generator-in-python.html'>Pelican, a simple static blog generator in python</a></dd>
|
||||
|
||||
<dt>Sun 10 October 2010</dt>
|
||||
<dd><a href='how-to-install-nginx-php-53-on-freebsd.html'>How to install NGINX + PHP 5.3 on FreeBSD.</a></dd>
|
||||
|
||||
<dt>Mon 11 October 2010</dt>
|
||||
<dd><a href='dynamically-change-your-gnome-desktop-wallpaper.html'>Dynamically change your gnome desktop wallpaper</a></dd>
|
||||
|
||||
<dt>Thu 21 October 2010</dt>
|
||||
<dd><a href='how-to-reboot-your-bebox-using-the-cli.html'>How to reboot your bebox using the CLI</a></dd>
|
||||
|
||||
<dt>Fri 05 November 2010</dt>
|
||||
<dd><a href='fork-you-or-how-the-social-coding-can-help-you.html'>Fork you ! or how the social coding can help you</a></dd>
|
||||
|
||||
<dt>Sat 15 January 2011</dt>
|
||||
<dd><a href='help-me-to-go-to-the-distutils2-paris-sprint.html'>Help me to go to the distutils2 paris' sprint</a></dd>
|
||||
|
||||
<dt>Thu 20 January 2011</dt>
|
||||
<dd><a href='pypi-on-couchdb.html'>PyPI on CouchDB</a></dd>
|
||||
|
||||
<dt>Tue 08 February 2011</dt>
|
||||
<dd><a href='wrap-up-of-the-distutils2-paris-sprint.html'>Wrap up of the distutils2 paris' sprint</a></dd>
|
||||
|
||||
<dt>Wed 16 March 2011</dt>
|
||||
<dd><a href='working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html'>Working directly on your server? How to backup and sync your dev environment with unison</a></dd>
|
||||
|
||||
<dt>Fri 01 April 2011</dt>
|
||||
<dd><a href='analyse-users-browsing-context-to-build-up-a-web-recommender.html'>Analyse users' browsing context to build up a web recommender</a></dd>
|
||||
|
||||
<dt>Thu 19 May 2011</dt>
|
||||
<dd><a href='travailler-moins-pour-mieux-travailler.html'>Travailler moins pour mieux travailler ?</a></dd>
|
||||
|
||||
<dt>Wed 25 May 2011</dt>
|
||||
<dd><a href='un-coup-de-main-pour-mon-memoire.html'>Un coup de main pour mon mémoire!</a></dd>
|
||||
|
||||
<dt>Sat 11 June 2011</dt>
|
||||
<dd><a href='using-jpype-to-bridge-python-and-java.html'>Using JPype to bridge python and Java</a></dd>
|
||||
|
||||
<dt>Mon 25 July 2011</dt>
|
||||
<dd><a href='pelican-9-months-later.html'>Pelican, 9 months later</a></dd>
|
||||
|
||||
<dt>Tue 16 August 2011</dt>
|
||||
<dd><a href='using-dbpedia-to-get-languages-influences.html'>Using dbpedia to get languages influences</a></dd>
|
||||
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
1084
author/Alexis Métaireau.html
Normal file
1084
author/Alexis Métaireau.html
Normal file
File diff suppressed because it is too large
Load diff
129
categories.html
Normal file
129
categories.html
Normal file
|
@ -0,0 +1,129 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<ul>
|
||||
|
||||
<li>asso</li>
|
||||
|
||||
<li>dev</li>
|
||||
|
||||
<li>python</li>
|
||||
|
||||
<li>system</li>
|
||||
|
||||
<li>thoughts</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
292
category/asso.html
Normal file
292
category/asso.html
Normal file
|
@ -0,0 +1,292 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - asso</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li class="active"><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././le-temps-des-graces-courrez-y.html">Le temps des grâces, courrez-y !</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-28T00:00:00">
|
||||
Sun 28 March 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/asso.html">asso</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Ouf, notre
|
||||
<a class="reference external" href="http://www.reseaugrappe.org">semaine de l'environnement</a> s'est
|
||||
terminée, après un peu de neige et un brin de soleil quand il en
|
||||
fallait.</p>
|
||||
<p>Ce fut l'occasion de rencontrer beaucoup de gens biens, et
|
||||
de regarder d'un peu plus près toutes ces problématiques qui
|
||||
mériteraient à elles seules, chacune un billet. Après un répis
|
||||
d'une semaine, pour récupérer des folies organisatrices (c'est ça
|
||||
qui fait du bien, ceci dit -- les folies, pas le repos), je me
|
||||
retrouve de nouveau sur ces mêms réflexions, grâce aux journées
|
||||
organisées par
|
||||
<a class="reference external" href="http://www.fne.asso.fr/">France Nature Environnement</a>, qui
|
||||
proposaient ce jeudi soir une projection de "Le temps des grâces",
|
||||
un documentaire sur l'agriculture.</p>
|
||||
<p>Parce que depuis 60 ans, il est pratiqué le remembrement des
|
||||
parcelles à gogo, parce que nos sols deviennent completement morts
|
||||
à cause des tonnes d'intrants qu'on leur fait absorber, et parce
|
||||
que les exploitations s'agrandissent sans en finir pour tenter de
|
||||
réagir façe à un marché financier toujours plus insaisissable, mené
|
||||
de très loin par la PAC, il fallait un film pour en parler. C'est
|
||||
ce que fait "le temps des grâçes", avec un bon sens et une facilité
|
||||
à faire passer des messages, qu'on ne peut qu'applaudir.</p>
|
||||
<p>Malheureusement il s'agissait de la dernière diffusion à
|
||||
<a class="reference external" href="http://www.cinemas-utopia.org/toulouse/">L'Utopia de Toulouse</a>...
|
||||
Si vous en avez l'occasion, sautez dessus et profitez le temps de
|
||||
ces 2 heures, ou vous pourrez écouter à la fois des discours
|
||||
d'agronomes, d'agriculteurs, de chercheurs et bien d'autres, qui
|
||||
dressent un constat pas si brillant de notre agriculture. On n'est
|
||||
pas sorti de l'auberge, enfin, c'est l'expression.</p>
|
||||
<p>Je vous laisse avec le synopsis et une bande annonce.</p>
|
||||
<blockquote>
|
||||
Une enquête documentaire sur
|
||||
le monde agricole français aujourd'hui à travers de nombreux récits
|
||||
: agriculteurs, chercheurs, agronomes, écrivains... Un monde qui
|
||||
parvient à résister aux bouleversements qui le frappent -
|
||||
économiques, scientifiques, sociaux - et qui, bon gré mal gré,
|
||||
continue d'entretenir les liens entre générations. Un monde au
|
||||
centre d'interrogations majeures sur l'avenir.</blockquote>
|
||||
<p>Ainsi qu'un commentaire que je ne peux m'empécher de relayer,
|
||||
trouvé sur allocine.fr (oui, vous savez, ce site rempli de pubs).</p>
|
||||
<blockquote>
|
||||
Le temps des grâces c'est je pense le plus grand film traitant de
|
||||
l'écologie en tant que documentaire ou en sujet principal, on y
|
||||
apprend une multitude de choses, on en ressort en colère contre le
|
||||
système, le film propose différents points de vues, ici on a pas de
|
||||
voix off moralisatrice à deux balles avec des gros titres bien
|
||||
surlignés pour que même les beaufs matant TF1 puissent comprendre,
|
||||
ici même si ça reste accessible au citoyen lambda, le film ne fait
|
||||
pas de compromis avec le monde agroalimentaire, il ose dénoncer les
|
||||
filière d'agronomie qui apprennent pas les bonnes choses à leurs
|
||||
étudiants, aux lobbys de cette agro-industrie qui n'en fait qu'à sa
|
||||
tête pour amasser de l'argent, cette tendance à tout uniformiser et
|
||||
détruire… Franchement j'ai trouvé ça génial de bout en bout,
|
||||
captivant, on explore cette campagne française, on comprend les
|
||||
dilemmes des paysants. Le film n'étant pas opposé à la modernité,
|
||||
ni même réactionnaire, il propose juste un constat alarmant du
|
||||
monde agricole français, tout en proposant des alternatives qui
|
||||
pourraient être utilisée, si les pouvoirs publics lâchaient un peu
|
||||
la main des lobbys. Passionnant, vraiment.</blockquote>
|
||||
<p>Courrez-y, je vous dis.</p>
|
||||
<p>There are <a href=".././le-temps-des-graces-courrez-y.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Other articles</h1>
|
||||
<hr />
|
||||
<ol id="posts-list" class="hfeed">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././semaine-de-lenvironnement-la-consommation-etudiante.html" rel="bookmark" title="Permalink to Semaine de l’environnement: La consommation étudiante">Semaine de l’environnement: La consommation étudiante</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-02-24T00:00:00">
|
||||
Wed 24 February 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/asso.html">asso</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Les acteurs associatifs sont bien souvent moteurs des critiques de nos sociétés. Je pense à <a class="reference external" href="http://www.framasoft.net/">Framasoft</a>, à <a class="reference external" href="http://www.laquadrature.net/">la Quadrature du net</a> ou à <a class="reference external" href="http://www.arsindustrialis.org/">Ars Industrialis</a> (dans le domaine de la science et de l'informatique), mais aussi <a class="reference external" href="http://www.amisdelaterre.org/">aux Amis de la Terre</a>, à <a class="reference external" href="http://www.attac.org/">ATTAC</a> (dans le domaine de l'environnement ...</p>
|
||||
<a class="readmore" href=".././semaine-de-lenvironnement-la-consommation-etudiante.html">read more</a>
|
||||
<p>There are <a href=".././semaine-de-lenvironnement-la-consommation-etudiante.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././amap-media-paniers-bio-a-5e.html" rel="bookmark" title="Permalink to AMAP + Média = Paniers bio à 5e ?!">AMAP + Média = Paniers bio à 5e ?!</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2009-11-11T00:00:00">
|
||||
Wed 11 November 2009
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/asso.html">asso</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Le raccourci me semble un peu rapide. Et pourtant, il est emprunté
|
||||
bien trop souvent. La dernière <em>mes-utilisation</em> que j'ai à décrier
|
||||
est celle d'un reportage télé, passé sur France 2 vendredi 23
|
||||
Octobre
|
||||
(<a class="reference external" href="http://docs.notmyidea.org/amap/amap-fr2.avi">voir la vidéo</a>),
|
||||
ou on parles de
|
||||
<a class="reference external" href="http://amap.zest.free.fr">l'AMAP étudiante Zest</a>.</p>
|
||||
<p>Malgré tout le ...</p>
|
||||
<a class="readmore" href=".././amap-media-paniers-bio-a-5e.html">read more</a>
|
||||
<p>There are <a href=".././amap-media-paniers-bio-a-5e.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
777
category/dev.html
Normal file
777
category/dev.html
Normal file
|
@ -0,0 +1,777 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - dev</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././pelican-9-months-later.html">Pelican, 9 months later</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-07-25T00:00:00">
|
||||
Mon 25 July 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/pelican.html">pelican</a><a href=".././tag/python.html">python</a><a href=".././tag/open source.html">open source</a><a href=".././tag/nice story.html">nice story</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Back in October, I released <a class="reference external" href="http://docs.notmyidea.org/alexis/pelican">pelican</a>,
|
||||
a little piece of code I wrote to power this weblog. I had simple needs: I wanted
|
||||
to be able to use my text editor of choice (vim), a vcs (mercurial) and
|
||||
restructured text. I started to write a really simple blog engine
|
||||
in something like a hundred python lines and released it on github.</p>
|
||||
<p>And people started contributing. I wasn't at all expecting to see people
|
||||
interested in such a little piece of code, but it turned out that they were.
|
||||
I refactored the code to make it evolve a bit more by two times and eventually,
|
||||
in 9 months, got 49 forks, 139 issues and 73 pull requests.</p>
|
||||
<p><strong>Which is clearly awesome.</strong></p>
|
||||
<p>I pulled features such as translations, tag
|
||||
clouds, integration with different services such as twitter or piwik, import
|
||||
from dotclear and rss, fixed
|
||||
a number of mistakes and improved a lot the codebase. This was a proof that
|
||||
there is a bunch of people that are willing to make better softwares just for
|
||||
the sake of fun.</p>
|
||||
<p>Thank you, guys, you're why I like open source so much.</p>
|
||||
<p>There are <a href=".././pelican-9-months-later.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Other articles</h1>
|
||||
<hr />
|
||||
<ol id="posts-list" class="hfeed">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././using-jpype-to-bridge-python-and-java.html" rel="bookmark" title="Permalink to Using JPype to bridge python and Java">Using JPype to bridge python and Java</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-06-11T00:00:00">
|
||||
Sat 11 June 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/python.html">python</a><a href=".././tag/java.html">java</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Java provides some interesting libraries that have no exact equivalent in
|
||||
python. In my case, the awesome boilerpipe library allows me to remove
|
||||
uninteresting parts of HTML pages, like menus, footers and other "boilerplate"
|
||||
contents.</p>
|
||||
<p>Boilerpipe is written in Java. Two solutions then: using java from python or
|
||||
reimplement boilerpipe ...</p>
|
||||
<a class="readmore" href=".././using-jpype-to-bridge-python-and-java.html">read more</a>
|
||||
<p>There are <a href=".././using-jpype-to-bridge-python-and-java.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././un-coup-de-main-pour-mon-memoire.html" rel="bookmark" title="Permalink to Un coup de main pour mon mémoire!">Un coup de main pour mon mémoire!</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-05-25T00:00:00">
|
||||
Wed 25 May 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Ça y est, bientôt la fin. LA FIN. La fin des études, et le début du reste.
|
||||
En attendant je bosse sur mon mémoire de fin d'études et j'aurais besoin d'un petit
|
||||
coup de main.</p>
|
||||
<p>Mon mémoire porte sur les systèmes de recommandation. Pour ceux qui connaissent ...</p>
|
||||
<a class="readmore" href=".././un-coup-de-main-pour-mon-memoire.html">read more</a>
|
||||
<p>There are <a href=".././un-coup-de-main-pour-mon-memoire.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html" rel="bookmark" title="Permalink to Analyse users' browsing context to build up a web recommender">Analyse users' browsing context to build up a web recommender</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-04-01T00:00:00">
|
||||
Fri 01 April 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/recommendations.html">recommendations</a><a href=".././tag/browsers.html">browsers</a><a href=".././tag/users.html">users</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>No, this is not an april's fool ;)</p>
|
||||
<p>Wow, it's been a long time. My year in Oxford is going really well. I realized
|
||||
few days ago that the end of the year is approaching really quickly.
|
||||
Exams are coming in one month or such and then I'll ...</p>
|
||||
<a class="readmore" href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html">read more</a>
|
||||
<p>There are <a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././wrap-up-of-the-distutils2-paris-sprint.html" rel="bookmark" title="Permalink to Wrap up of the distutils2 paris' sprint">Wrap up of the distutils2 paris' sprint</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-02-08T00:00:00">
|
||||
Tue 08 February 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Finally, thanks to a bunch of people that helped me to pay my train and bus
|
||||
tickets, I've made it to paris for the distutils2 sprint.</p>
|
||||
<p>They have been a bit more than 10 people to come during the sprint, and it was
|
||||
very productive. Here's a taste ...</p>
|
||||
<a class="readmore" href=".././wrap-up-of-the-distutils2-paris-sprint.html">read more</a>
|
||||
<p>There are <a href=".././wrap-up-of-the-distutils2-paris-sprint.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././pypi-on-couchdb.html" rel="bookmark" title="Permalink to PyPI on CouchDB">PyPI on CouchDB</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-01-20T00:00:00">
|
||||
Thu 20 January 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>By now, there are two ways to retrieve data from PyPI (the Python Package
|
||||
Index). You can both rely on xml/rpc or on the "simple" API. The simple
|
||||
API is not so simple to use as the name suggest, and have several existing
|
||||
drawbacks.</p>
|
||||
<p>Basically, if you want to ...</p>
|
||||
<a class="readmore" href=".././pypi-on-couchdb.html">read more</a>
|
||||
<p>There are <a href=".././pypi-on-couchdb.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././help-me-to-go-to-the-distutils2-paris-sprint.html" rel="bookmark" title="Permalink to Help me to go to the distutils2 paris' sprint">Help me to go to the distutils2 paris' sprint</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-01-15T00:00:00">
|
||||
Sat 15 January 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p><strong>Edit: Thanks to logilab and some amazing people, I can make it to paris for the
|
||||
sprint. Many thanks to them for the support!</strong></p>
|
||||
<p>There will be a distutils2 sprint from the 27th to the 30th of january, thanks
|
||||
to logilab which will host the event.</p>
|
||||
<p>You can find more ...</p>
|
||||
<a class="readmore" href=".././help-me-to-go-to-the-distutils2-paris-sprint.html">read more</a>
|
||||
<p>There are <a href=".././help-me-to-go-to-the-distutils2-paris-sprint.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././how-to-reboot-your-bebox-using-the-cli.html" rel="bookmark" title="Permalink to How to reboot your bebox using the CLI">How to reboot your bebox using the CLI</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-21T00:00:00">
|
||||
Thu 21 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I've an internet connection which, for some obscure reasons, tend to be very
|
||||
slow from time to time. After rebooting the box (yes, that's a hard solution),
|
||||
all the things seems to go fine again.</p>
|
||||
<div class="section" id="edit-using-grep">
|
||||
<h2>EDIT : Using grep</h2>
|
||||
<p>After a bit of reflexion, that's also really easy ...</p></div>
|
||||
<a class="readmore" href=".././how-to-reboot-your-bebox-using-the-cli.html">read more</a>
|
||||
<p>There are <a href=".././how-to-reboot-your-bebox-using-the-cli.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././dynamically-change-your-gnome-desktop-wallpaper.html" rel="bookmark" title="Permalink to Dynamically change your gnome desktop wallpaper">Dynamically change your gnome desktop wallpaper</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-11T00:00:00">
|
||||
Mon 11 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>In gnome, you can can use a XML file to have a dynamic wallpaper.
|
||||
It's not so easy, and you can't just tell: use the pictures in this folder to do
|
||||
so.</p>
|
||||
<p>You can have a look to the git repository if you want: <a class="reference external" href="http://github.com/ametaireau/gnome-background-generator">http://github.com/ametaireau ...</a></p>
|
||||
<a class="readmore" href=".././dynamically-change-your-gnome-desktop-wallpaper.html">read more</a>
|
||||
<p>There are <a href=".././dynamically-change-your-gnome-desktop-wallpaper.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././pelican-a-simple-static-blog-generator-in-python.html" rel="bookmark" title="Permalink to Pelican, a simple static blog generator in python">Pelican, a simple static blog generator in python</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-06T00:00:00">
|
||||
Wed 06 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Those days, I've wrote a little python application to fit my blogging needs.
|
||||
I'm an occasional blogger, a vim lover, I like restructured text and DVCSes, so
|
||||
I've made a little tool that makes good use of all that.</p>
|
||||
<p><a class="reference external" href="http://alexis.notmyidea.org/pelican/">Pelican</a> (for calepin) is just a simple tool ...</p>
|
||||
<a class="readmore" href=".././pelican-a-simple-static-blog-generator-in-python.html">read more</a>
|
||||
<p>There are <a href=".././pelican-a-simple-static-blog-generator-in-python.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././an-amazing-summer-of-code-working-on-distutils2.html" rel="bookmark" title="Permalink to An amazing summer of code working on distutils2">An amazing summer of code working on distutils2</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-08-16T00:00:00">
|
||||
Mon 16 August 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>The <a class="reference external" href="http://code.google.com/soc/">Google Summer of Code</a> I've
|
||||
spent working on <a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a>
|
||||
is over. It was a really amazing experience, for many reasons.</p>
|
||||
<p>First of all, we had a very good team, we were 5 students working
|
||||
on distutils2: <a class="reference external" href="http://zubin71.wordpress.com">Zubin</a>,
|
||||
<a class="reference external" href="http://wokslog.wordpress.com/">Éric</a>,
|
||||
<a class="reference external" href="http://gsoc.djolonga.com/">Josip</a>,
|
||||
<a class="reference external" href="http://konryd.blogspot.com/">Konrad</a> and me. In addition,
|
||||
<a class="reference external" href="http://mouadino.blogspot.com/">Mouad</a> have worked on ...</p>
|
||||
<a class="readmore" href=".././an-amazing-summer-of-code-working-on-distutils2.html">read more</a>
|
||||
<p>There are <a href=".././an-amazing-summer-of-code-working-on-distutils2.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././introducing-the-distutils2-index-crawlers.html" rel="bookmark" title="Permalink to Introducing the distutils2 index crawlers">Introducing the distutils2 index crawlers</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-07-06T00:00:00">
|
||||
Tue 06 July 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I'm working for about a month for distutils2, even if I was being a
|
||||
bit busy (as I had some class courses and exams to work on)</p>
|
||||
<p>I'll try do sum-up my general feelings here, and the work I've made
|
||||
so far. You can also find, if ...</p>
|
||||
<a class="readmore" href=".././introducing-the-distutils2-index-crawlers.html">read more</a>
|
||||
<p>There are <a href=".././introducing-the-distutils2-index-crawlers.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././sprinting-on-distutils2-in-tours.html" rel="bookmark" title="Permalink to Sprinting on distutils2 in Tours">Sprinting on distutils2 in Tours</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-07-06T00:00:00">
|
||||
Tue 06 July 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Yesterday, as I was traveling to Tours, I've took some time to
|
||||
visit Éric, another student who's working on distutils2 this
|
||||
summer, as a part of the GSoC. Basically, it was to take a drink,
|
||||
discuss a bit about distutils2, our respective tasks and general
|
||||
feelings, and to ...</p>
|
||||
<a class="readmore" href=".././sprinting-on-distutils2-in-tours.html">read more</a>
|
||||
<p>There are <a href=".././sprinting-on-distutils2-in-tours.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././use-restructured-text-rest-to-power-your-presentations.html" rel="bookmark" title="Permalink to Use Restructured Text (ReST) to power your presentations">Use Restructured Text (ReST) to power your presentations</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-06-25T00:00:00">
|
||||
Fri 25 June 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Wednesday, we give a presentation, with some friends, about the
|
||||
CouchDB Database, to
|
||||
<a class="reference external" href="http://www.toulibre.org">the Toulouse local LUG</a>. Thanks a lot
|
||||
to all the presents for being there, it was a pleasure to talk
|
||||
about this topic with you. Too bad the season is over now an I quit
|
||||
Toulouse next ...</p>
|
||||
<a class="readmore" href=".././use-restructured-text-rest-to-power-your-presentations.html">read more</a>
|
||||
<p>There are <a href=".././use-restructured-text-rest-to-power-your-presentations.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././first-week-working-on-distutils2.html" rel="bookmark" title="Permalink to first week working on distutils2">first week working on distutils2</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-06-04T00:00:00">
|
||||
Fri 04 June 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>As I've been working on
|
||||
<a class="reference external" href="http://hg.python.org/distutils2/">Distutils2</a> during the past
|
||||
week, taking part of the
|
||||
<a class="reference external" href="http://code.google.com/intl/fr/soc/">GSOC</a> program, here is a
|
||||
short summary of what I've done so far.</p>
|
||||
<p>As my courses are not over yet, I've not worked as much as I
|
||||
wanted, and this will continues until ...</p>
|
||||
<a class="readmore" href=".././first-week-working-on-distutils2.html">read more</a>
|
||||
<p>There are <a href=".././first-week-working-on-distutils2.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././a-distutils2-gsoc.html" rel="bookmark" title="Permalink to A Distutils2 GSoC">A Distutils2 GSoC</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-05-01T00:00:00">
|
||||
Sat 01 May 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>WOW. I've been accepted to be a part of the
|
||||
<a class="reference external" href="http://code.google.com/intl/fr/soc/">Google Summer Of Code</a>
|
||||
program, and will work on <a class="reference external" href="http://python.org/">python</a>
|
||||
<a class="reference external" href="http://hg.python.org/distutils2/">distutils2</a>, with
|
||||
<a class="reference external" href="http://pygsoc.wordpress.com/">a</a>
|
||||
<a class="reference external" href="http://konryd.blogspot.com/">lot</a> <a class="reference external" href="http://ziade.org/">of</a>
|
||||
(intersting!) <a class="reference external" href="http://zubin71.wordpress.com/">people</a>.</p>
|
||||
<blockquote>
|
||||
So, it's about building the successor of Distutils2, ie. "the
|
||||
python package manager". Today, there is too many ways to package ...</blockquote>
|
||||
<a class="readmore" href=".././a-distutils2-gsoc.html">read more</a>
|
||||
<p>There are <a href=".././a-distutils2-gsoc.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././python-go.html" rel="bookmark" title="Permalink to Python ? go !">Python ? go !</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2009-12-17T00:00:00">
|
||||
Thu 17 December 2009
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Cela fait maintenant un peu plus d'un mois que je travaille sur un
|
||||
projet en <a class="reference external" href="http://www.djangoproject.org">django</a>, et que,
|
||||
nécessairement, je me forme à <a class="reference external" href="http://python.org/">Python</a>. Je
|
||||
prends un plaisir non dissimulé à découvrir ce langage (et à
|
||||
l'utiliser), qui ne cesse de me surprendre. Les premiers mots qui
|
||||
me ...</p>
|
||||
<a class="readmore" href=".././python-go.html">read more</a>
|
||||
<p>There are <a href=".././python-go.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
190
category/python.html
Normal file
190
category/python.html
Normal file
|
@ -0,0 +1,190 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - python</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li class="active"><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././using-dbpedia-to-get-languages-influences.html">Using dbpedia to get languages influences</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-08-16T00:00:00">
|
||||
Tue 16 August 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/python.html">python</a>. </p>
|
||||
<p>tags: <a href=".././tag/dbpedia.html">dbpedia</a><a href=".././tag/sparql.html">sparql</a><a href=".././tag/python.html">python</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>While browsing the Python's wikipedia page, I found information about the languages
|
||||
influenced by python, and the languages that influenced python itself.</p>
|
||||
<p>Well, that's kind of interesting to know which languages influenced others,
|
||||
it could even be more interesting to have an overview of the connexion between
|
||||
them, keeping python as the main focus.</p>
|
||||
<p>This information is available on the wikipedia page, but not in a really
|
||||
exploitable format. Hopefully, this information is provided into the
|
||||
information box present on the majority of wikipedia pages. And… guess what?
|
||||
there is project with the goal to scrap and index all this information in
|
||||
a more queriable way, using the semantic web technologies.</p>
|
||||
<p>Well, you may have guessed it, the project in question in dbpedia, and exposes
|
||||
information in the form of RDF triples, which are way more easy to work with
|
||||
than simple HTML.</p>
|
||||
<p>For instance, let's take the page about python:
|
||||
<a class="reference external" href="http://dbpedia.org/page/Python_%28programming_language%29">http://dbpedia.org/page/Python_%28programming_language%29</a></p>
|
||||
<p>The interesting properties here are "Influenced" and "InfluencedBy", which
|
||||
allows us to get a list of languages. Unfortunately, they are not really using
|
||||
all the power of the Semantic Web here, and the list is actually a string with
|
||||
coma separated values in it.</p>
|
||||
<p>Anyway, we can use a simple rule: All wikipedia pages of programming languages
|
||||
are either named after the name of the language itself, or suffixed with "(
|
||||
programming language)", which is the case for python.</p>
|
||||
<p>So I've built <a class="reference external" href="https://github.com/ametaireau/experiments/blob/master/influences/get_influences.py">a tiny script to extract the information from dbpedia</a> and transform them into a shiny graph using graphviz.</p>
|
||||
<p>After a nice:</p>
|
||||
<pre class="literal-block">
|
||||
$ python get_influences.py python dot | dot -Tpng > influences.png
|
||||
</pre>
|
||||
<p>The result is the following graph (<a class="reference external" href="http://files.lolnet.org/alexis/influences.png">see it directly here</a>)</p>
|
||||
<img alt="http://files.lolnet.org/alexis/influences.png" src="http://files.lolnet.org/alexis/influences.png" style="width: 800px;" />
|
||||
<p>While reading this diagram, keep in mind that it is a) not listing all the
|
||||
languages and b) keeping a python perspective.</p>
|
||||
<p>This means that you can trust the scheme by following the arrows from python to
|
||||
something and from something to python, it is not trying to get the matching
|
||||
between all the languages at the same time to keep stuff readable.</p>
|
||||
<p>It would certainly be possible to have all the connections between all
|
||||
languages (and the resulting script would be easier) to do so, but the resulting
|
||||
graph would probably be way less readable.</p>
|
||||
<p>You can find the script <a class="reference external" href="https://github.com/ametaireau/experiments">on my github account</a>. Feel free to adapt it for
|
||||
whatever you want if you feel hackish.</p>
|
||||
<p>There are <a href=".././using-dbpedia-to-get-languages-influences.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
351
category/system.html
Normal file
351
category/system.html
Normal file
|
@ -0,0 +1,351 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - system</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li class="active"><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html">Working directly on your server? How to backup and sync your dev environment with unison</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-03-16T00:00:00">
|
||||
Wed 16 March 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/system.html">system</a>. </p>
|
||||
<p>tags: <a href=".././tag/freebsd.html">freebsd</a><a href=".././tag/unison.html">unison</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>I have a server running freebsd since some time now, and was wondering about
|
||||
the possibility to directly have a development environment ready to use when
|
||||
I get a internet connexion, even if I'm not on my computer.</p>
|
||||
<p>Since I use vim to code, and spend most of my time in a console while
|
||||
developing, it's possible to work via ssh, from everywhere.</p>
|
||||
<p>The only problem is the synchronisation of the source code, config files etc.
|
||||
from my machine to the server.</p>
|
||||
<p>Unison provides an interesting way to synchronise two folders, even over
|
||||
a network. So let's do it !</p>
|
||||
<div class="section" id="creating-the-jail">
|
||||
<h2>Creating the jail</h2>
|
||||
<p>In case you don't use FreeBSD, you can skip this section.</p>
|
||||
<div class="highlight"><pre><span class="c"># I have a flavour jail named default</span>
|
||||
<span class="nv">$ </span>ezjail-admin -f default workspace.notmyidea.org 172.19.1.6
|
||||
<span class="nv">$ </span>ezjail-admin start workspace.notmyidea.org
|
||||
</pre></div>
|
||||
<p>In my case, because the "default" flavour contains already a lot of interesting
|
||||
things, my jail come already setup with ssh, bash and vim for instance, but
|
||||
maybe you'll need it in your case.</p>
|
||||
<p>I want to be redirected to the ssh of the jail when I connect to the host with
|
||||
the 20006 port. Add lines in <cite>/etc/pf.conf</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
workspace_jail="172.19.1.6"
|
||||
rdr on $ext_if proto tcp from any to $ext_ip port 20006 -> $workspace_jail port 22
|
||||
</pre>
|
||||
<p>Reload packet filter rules</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>/etc/rc.d/pf reload
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="working-with-unison">
|
||||
<h2>Working with unison</h2>
|
||||
<p>Now that we've set up the jail. Set up unison on the server and on your client.
|
||||
Unison is available on the freebsd ports so just install it</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 config-recursive
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 package-recursive
|
||||
</pre></div>
|
||||
<p>Install as well unison on your local machine. Double check to install the same
|
||||
version on the client and on the server. Ubuntu contains the 2.27.57 as well as
|
||||
the 2.32.52.</p>
|
||||
<p>Check that unison is installed and reachable via ssh from your machine</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006 unison -version
|
||||
unison version 2.27.157
|
||||
<span class="nv">$ </span>unison -version
|
||||
unison version 2.27.57
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="let-sync-our-folders">
|
||||
<h2>Let sync our folders</h2>
|
||||
<p>The first thing I want to sync is my vim configuration. Well, it's already <a class="reference external" href="http://github.com/ametaireau/dotfiles/">in
|
||||
a git repository</a> but let's try to use
|
||||
unison for it right now.</p>
|
||||
<p>I have two machines then: <cite>workspace</cite>, the jail, and <cite>ecureuil</cite> my laptop.</p>
|
||||
<div class="highlight"><pre>unison .vim ssh://notmyidea.org:20006/.vim
|
||||
unison .vimrc ssh://notmyidea.org:20006/.vimrc
|
||||
</pre></div>
|
||||
<p>It is also possible to put all the informations in a config file, and then to
|
||||
only run <cite>unison</cite>. (fire up <cite>vim ~/.unison/default.prf</cite>.</p>
|
||||
<p>Here is my config:</p>
|
||||
<pre class="literal-block">
|
||||
root = /home/alexis
|
||||
root = ssh://notmyidea.org:20006
|
||||
|
||||
path = .vimrc
|
||||
path = dotfiles
|
||||
path = dev
|
||||
|
||||
follow = Name *
|
||||
</pre>
|
||||
<p>My vimrc is in fact a symbolic link on my laptop, but I don't want to specify
|
||||
each of the links to unison. That's why the <cite>follow = Name *</cite> is for.</p>
|
||||
<p>The folders you want to synchronize are maybe a bit large. If so, considering
|
||||
others options such as rsync for the first import may be a good idea (I enjoyed
|
||||
my university huge upload bandwith to upload 2GB in 20mn ;)</p>
|
||||
</div>
|
||||
<div class="section" id="run-the-script-frequently">
|
||||
<h2>Run the script frequently</h2>
|
||||
<p>Once that done, you just need to run the unison command line some times when
|
||||
you want to sync your two machines. I've wrote a tiny script to get some
|
||||
feedback from the sync:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">os</span>
|
||||
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
|
||||
|
||||
<span class="n">DEFAULT_LOGFILE</span> <span class="o">=</span> <span class="s">"~/unison.log"</span>
|
||||
<span class="n">PROGRAM_NAME</span> <span class="o">=</span> <span class="s">"Unison syncer"</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">sync</span><span class="p">(</span><span class="n">logfile</span><span class="o">=</span><span class="n">DEFAULT_LOGFILE</span><span class="p">,</span> <span class="n">program_name</span><span class="o">=</span><span class="n">PROGRAM_NAME</span><span class="p">):</span>
|
||||
<span class="c"># init</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
<span class="n">error</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
|
||||
<span class="n">before</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
|
||||
<span class="c"># call unison to make the sync</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'unison -batch > {0}'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
|
||||
<span class="c"># get the duration of the operation</span>
|
||||
<span class="n">td</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="o">-</span> <span class="n">before</span>
|
||||
<span class="n">delta</span> <span class="o">=</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">microseconds</span> <span class="o">+</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">seconds</span> <span class="o">+</span> <span class="n">td</span><span class="o">.</span><span class="n">days</span> <span class="o">*</span> <span class="mi">24</span> <span class="o">*</span> <span class="mi">3600</span><span class="p">)</span> <span class="o">*</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span><span class="p">)</span> <span class="o">/</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span>
|
||||
|
||||
<span class="c"># check what was the last entry in the log</span>
|
||||
<span class="n">log</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">expanduser</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
<span class="n">lines</span> <span class="o">=</span> <span class="n">log</span><span class="o">.</span><span class="n">readlines</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="s">'No updates to propagate'</span> <span class="ow">in</span> <span class="n">lines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]:</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">output</span> <span class="o">=</span> <span class="p">[</span><span class="n">l</span> <span class="k">for</span> <span class="n">l</span> <span class="ow">in</span> <span class="n">lines</span> <span class="k">if</span> <span class="s">"Synchronization"</span> <span class="ow">in</span> <span class="n">l</span><span class="p">]</span>
|
||||
|
||||
<span class="n">message</span> <span class="o">=</span> <span class="n">output</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">message</span> <span class="o">+=</span> <span class="s">" It took {0}s."</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">delta</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">display_message</span><span class="p">:</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'notify-send -i {2} "{0}" "{1}"'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">program_name</span><span class="p">,</span> <span class="n">message</span><span class="p">,</span>
|
||||
<span class="s">'error'</span> <span class="k">if</span> <span class="n">error</span> <span class="k">else</span> <span class="s">'info'</span><span class="p">))</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
|
||||
<span class="n">sync</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>This is probably perfectible, but that does the job.</p>
|
||||
<p>Last step is to tell you machine to run that frequently. That's what <cite>crontab</cite>
|
||||
is made for, so let's <cite>crontab -e</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
$ * */3 * * * . ~/.Xdbus; /usr/bin/python /home/alexis/dev/python/unison-syncer/sync.py
|
||||
</pre>
|
||||
<p>The <cite>~/.Xdbus</cite> allows cron to communicate with your X11 session. Here is its
|
||||
content.</p>
|
||||
<div class="highlight"><pre><span class="c">#!/bin/bash</span>
|
||||
|
||||
<span class="c"># Get the pid of nautilus</span>
|
||||
<span class="nv">nautilus_pid</span><span class="o">=</span><span class="k">$(</span>pgrep -u <span class="nv">$LOGNAME</span> -n nautilus<span class="k">)</span>
|
||||
|
||||
<span class="c"># If nautilus isn't running, just exit silently</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$nautilus_pid"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">exit </span>0
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># Grab the DBUS_SESSION_BUS_ADDRESS variable from nautilus's environment</span>
|
||||
<span class="nb">eval</span> <span class="k">$(</span>tr <span class="s1">'\0'</span> <span class="s1">'\n'</span> < /proc/<span class="nv">$nautilus_pid</span>/environ | grep <span class="s1">'^DBUS_SESSION_BUS_ADDRESS='</span><span class="k">)</span>
|
||||
|
||||
<span class="c"># Check that we actually found it</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$DBUS_SESSION_BUS_ADDRESS"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">echo</span> <span class="s2">"Failed to find bus address"</span> >&2
|
||||
<span class="nb">exit </span>1
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># export it so that child processes will inherit it</span>
|
||||
<span class="nb">export </span>DBUS_SESSION_BUS_ADDRESS
|
||||
</pre></div>
|
||||
<p>And it comes from <a class="reference external" href="http://ubuntuforums.org/showthread.php?p=10148738#post10148738">here</a>.</p>
|
||||
<p>A sync takes about 20s + the upload time on my machine, which stay acceptable for
|
||||
all of my developments.</p>
|
||||
</div>
|
||||
<p>There are <a href=".././working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Other articles</h1>
|
||||
<hr />
|
||||
<ol id="posts-list" class="hfeed">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././how-to-install-nginx-php-53-on-freebsd.html" rel="bookmark" title="Permalink to How to install NGINX + PHP 5.3 on FreeBSD.">How to install NGINX + PHP 5.3 on FreeBSD.</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-10T00:00:00">
|
||||
Sun 10 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/system.html">system</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I've not managed so far to get completely rid of php, so here's a simple
|
||||
reminder about how to install php on NGINX, for FreeBSD. Nothing hard, but
|
||||
that's worse to have the piece of configuration somewhere !</p>
|
||||
<pre class="literal-block">
|
||||
# update the ports
|
||||
$ portsnap fetch update
|
||||
|
||||
# install php5 port
|
||||
$ make ...</pre>
|
||||
<a class="readmore" href=".././how-to-install-nginx-php-53-on-freebsd.html">read more</a>
|
||||
<p>There are <a href=".././how-to-install-nginx-php-53-on-freebsd.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
238
category/thoughts.html
Normal file
238
category/thoughts.html
Normal file
|
@ -0,0 +1,238 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - thoughts</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li class="active"><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././travailler-moins-pour-mieux-travailler.html">Travailler moins pour mieux travailler ?</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-05-19T00:00:00">
|
||||
Thu 19 May 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/thoughts.html">thoughts</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Je viens de passer une semaine et demi quasiment hors-ligne et je dois dire que
|
||||
je suis assez impressionné du résultat: je suis de retour chez mes parents pour
|
||||
le "easter break" et j'en ai profité pour donner un coup aux travaux de la
|
||||
maison (et pour me reposer un brin!).</p>
|
||||
<p>Bosser en extérieur est un réel plaisir et faire quelque chose de manuel
|
||||
également. Je n'ai pas pour habitude de bricoler autre chose que du logiciel et
|
||||
c'est vraiment quelque chose que j'apprécie.</p>
|
||||
<p>J'avoue, je mens un peu quand je dis que j'étais complètement déconnecté:
|
||||
j'ai vérifié mes mails assez régulièrement en utilisant mon téléphone
|
||||
(merci Arnaud pour le prêt du gadget!) et j'ai limité ma présence web au strict
|
||||
minimum. Je veux dire par là pas de twitter, pas d'IRC et autres mailing-lists.</p>
|
||||
<p>Quand je dis hors-ligne, je ne dis pas que je n'ai pas travaillé sur mon
|
||||
ordinateur. J'ai à fournir beaucoup plus de travail que ce que je ne pensait en
|
||||
premier lieu pour la rédaction de mon mémoire et j'ai passé quelques heures par
|
||||
ci par là à lire des articles et livres sur le sujet ainsi que rédigé une bonne
|
||||
partie de mon mémoire durant ces 10 jours. Résultat ? Les heures que j'ai passées à travailler ont
|
||||
été étonnement plus productives que celles que j'ai l'habitude de passer derrière
|
||||
un écran. Je ne parles pas uniquement du fait de procrastiner; évidemment c'est
|
||||
une des causes principales de ma perte de productivité, mais je pense également
|
||||
au fait de laisser le cerveau reposer, au moins en ce qui concerne la partie
|
||||
informatique. Bricoler demande de la concentration et de la réflexion mais
|
||||
permet également de laisser son esprit vagabonder. J'ai pu donc avancer mes
|
||||
sur certaines parties de mon mémoire alors que j'étais en train de poser le
|
||||
bardage sur la garage par exemple.</p>
|
||||
<p>Passer du temps sur autre chose (qui demandait également de la concentration
|
||||
par ailleurs) m'a permis d'être réellement plus efficace lors de mes phases de
|
||||
rédaction et de lecture.</p>
|
||||
<p>Je me demande depuis quelques temps quel sera mon futur travail et quelle forme
|
||||
il prendra. Éééh oui, la fin des études arrive pour la fin de l'année, c'est
|
||||
pas une blague. Et je me pose sérieusement la question du travail aux 3/4
|
||||
temps. La raison principale étant que je ne souhaites pas passer la majeure
|
||||
partie de mon temps à travailler derrière un écran et que la formation que j'ai
|
||||
m'y rattache beaucoup. Ne me comprenez pas de travers: j'aime ce que je fais;
|
||||
mais j'aime aussi ce que je fais à coté de l'informatique: associatif, projets
|
||||
alternatifs, permaculture et autres.</p>
|
||||
<p>Viens s'ajouter à ça le fait d'avoir une qualité de vie qui me semble pouvoir
|
||||
passer par le fait de travailler moins ("il est marant ce gamin, il à pas encore commencé
|
||||
à travailler qu'il veut bosser moins, regarde moi cette feignasse!") et
|
||||
travailler plus efficacement. Bien sur, on n'est jamais 100% productif et c'est
|
||||
d'autant plus vrai pour moi, alors si gagner en productivité peut passer par
|
||||
travailler moins, pourquoi pas s'y essayer !</p>
|
||||
<p>Peut être que vous pratiquez déjà le travail au 3/4 temps, que vous avez des
|
||||
retours d'expérience à faire : fausse bonne idée ? Vraie bonne idée ?</p>
|
||||
<p>There are <a href=".././travailler-moins-pour-mieux-travailler.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Other articles</h1>
|
||||
<hr />
|
||||
<ol id="posts-list" class="hfeed">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././fork-you-or-how-the-social-coding-can-help-you.html" rel="bookmark" title="Permalink to Fork you ! or how the social coding can help you">Fork you ! or how the social coding can help you</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-11-05T00:00:00">
|
||||
Fri 05 November 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/thoughts.html">thoughts</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>With <a class="reference external" href="http://github.com">github</a> and <a class="reference external" href="http://www.bitbucket.org">bitbucket</a> coming around, a lot of new usages appears for the
|
||||
developpers: it's now easy to get feedback on your code/modifications, and to get
|
||||
help from others by, for instance, forking repositories.</p>
|
||||
<p>Eeach time I see people helping others, I'm amazed by how we ...</p>
|
||||
<a class="readmore" href=".././fork-you-or-how-the-social-coding-can-help-you.html">read more</a>
|
||||
<p>There are <a href=".././fork-you-or-how-the-social-coding-can-help-you.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
198
dynamically-change-your-gnome-desktop-wallpaper.html
Normal file
198
dynamically-change-your-gnome-desktop-wallpaper.html
Normal file
|
@ -0,0 +1,198 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Dynamically change your gnome desktop wallpaper</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Dynamically change your gnome desktop wallpaper">Dynamically change your gnome desktop wallpaper</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-11T00:00:00">
|
||||
Mon 11 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>In gnome, you can can use a XML file to have a dynamic wallpaper.
|
||||
It's not so easy, and you can't just tell: use the pictures in this folder to do
|
||||
so.</p>
|
||||
<p>You can have a look to the git repository if you want: <a class="reference external" href="http://github.com/ametaireau/gnome-background-generator">http://github.com/ametaireau/gnome-background-generator</a></p>
|
||||
<p>Some time ago, I've made a little python script to ease that, and you can now
|
||||
use it too. It's named "gnome-background-generator", and you can install it via
|
||||
pip for instance.</p>
|
||||
<div class="highlight"><pre>$ pip install gnome-background-generator
|
||||
</pre></div>
|
||||
<p>Then, you have just to use it this way:</p>
|
||||
<div class="highlight"><pre>$ gnome-background-generator -p ~/Images/walls -s
|
||||
/home/alexis/Images/walls/dynamic-wallpaper.xml generated
|
||||
</pre></div>
|
||||
<p>Here is a extract of the <cite>--help</cite>:</p>
|
||||
<div class="highlight"><pre>$ gnome-background-generator --help
|
||||
usage: gnome-background-generator [-h] [-p PATH] [-o OUTPUT]
|
||||
[-t TRANSITION_TIME] [-d DISPLAY_TIME] [-s]
|
||||
[-b]
|
||||
|
||||
A simple command line tool to generate an XML file to use for gnome
|
||||
wallpapers, to have dynamic walls
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
-p PATH, --path PATH Path to look for the pictures. If no output is
|
||||
specified, will be used too for outputing the dynamic-
|
||||
wallpaper.xml file. Default value is the current
|
||||
directory (.)
|
||||
-o OUTPUT, --output OUTPUT
|
||||
Output filename. If no filename is specified, a
|
||||
dynamic-wallpaper.xml file will be generated in the
|
||||
path containing the pictures. You can also use "-" to
|
||||
display the xml in the stdout.
|
||||
-t TRANSITION_TIME, --transition-time TRANSITION_TIME
|
||||
Time (in seconds) transitions must last (default value
|
||||
is 2 seconds)
|
||||
-d DISPLAY_TIME, --display-time DISPLAY_TIME
|
||||
Time (in seconds) a picture must be displayed. Default
|
||||
value is 900 (15mn)
|
||||
-s, --set-background '''try to set the background using gnome-appearance-
|
||||
properties
|
||||
-b, --debug
|
||||
</pre></div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "dynamically-change-your-gnome-desktop-wallpaper.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
1681
feeds/all-en.atom.xml
Normal file
1681
feeds/all-en.atom.xml
Normal file
File diff suppressed because it is too large
Load diff
1681
feeds/all.atom.xml
Normal file
1681
feeds/all.atom.xml
Normal file
File diff suppressed because it is too large
Load diff
135
feeds/asso.atom.xml
Normal file
135
feeds/asso.atom.xml
Normal file
|
@ -0,0 +1,135 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alexis' log</title><link href="http://blog.notmyidea.org" rel="alternate"></link><link href="http://blog.notmyidea.org/feeds/asso.atom.xml" rel="self"></link><id>http://blog.notmyidea.org</id><updated>2010-03-28T00:00:00Z</updated><entry><title>Le temps des grâces, courrez-y !</title><link href="http://blog.notmyidea.org/le-temps-des-graces-courrez-y.html" rel="alternate"></link><updated>2010-03-28T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-03-28:/le-temps-des-graces-courrez-y.html/</id><summary type="html"><p>Ouf, notre
|
||||
<a class="reference external" href="http://www.reseaugrappe.org">semaine de l'environnement</a> s'est
|
||||
terminée, après un peu de neige et un brin de soleil quand il en
|
||||
fallait.</p>
|
||||
<p>Ce fut l'occasion de rencontrer beaucoup de gens biens, et
|
||||
de regarder d'un peu plus près toutes ces problématiques qui
|
||||
mériteraient à elles seules, chacune un billet. Après un répis
|
||||
d'une semaine, pour récupérer des folies organisatrices (c'est ça
|
||||
qui fait du bien, ceci dit -- les folies, pas le repos), je me
|
||||
retrouve de nouveau sur ces mêms réflexions, grâce aux journées
|
||||
organisées par
|
||||
<a class="reference external" href="http://www.fne.asso.fr/">France Nature Environnement</a>, qui
|
||||
proposaient ce jeudi soir une projection de &quot;Le temps des grâces&quot;,
|
||||
un documentaire sur l'agriculture.</p>
|
||||
<p>Parce que depuis 60 ans, il est pratiqué le remembrement des
|
||||
parcelles à gogo, parce que nos sols deviennent completement morts
|
||||
à cause des tonnes d'intrants qu'on leur fait absorber, et parce
|
||||
que les exploitations s'agrandissent sans en finir pour tenter de
|
||||
réagir façe à un marché financier toujours plus insaisissable, mené
|
||||
de très loin par la PAC, il fallait un film pour en parler. C'est
|
||||
ce que fait &quot;le temps des grâçes&quot;, avec un bon sens et une facilité
|
||||
à faire passer des messages, qu'on ne peut qu'applaudir.</p>
|
||||
<p>Malheureusement il s'agissait de la dernière diffusion à
|
||||
<a class="reference external" href="http://www.cinemas-utopia.org/toulouse/">L'Utopia de Toulouse</a>...
|
||||
Si vous en avez l'occasion, sautez dessus et profitez le temps de
|
||||
ces 2 heures, ou vous pourrez écouter à la fois des discours
|
||||
d'agronomes, d'agriculteurs, de chercheurs et bien d'autres, qui
|
||||
dressent un constat pas si brillant de notre agriculture. On n'est
|
||||
pas sorti de l'auberge, enfin, c'est l'expression.</p>
|
||||
<p>Je vous laisse avec le synopsis et une bande annonce.</p>
|
||||
<blockquote>
|
||||
Une enquête documentaire sur
|
||||
le monde agricole français aujourd'hui à travers de nombreux récits
|
||||
: agriculteurs, chercheurs, agronomes, écrivains... Un monde qui
|
||||
parvient à résister aux bouleversements qui le frappent -
|
||||
économiques, scientifiques, sociaux - et qui, bon gré mal gré,
|
||||
continue d'entretenir les liens entre générations. Un monde au
|
||||
centre d'interrogations majeures sur l'avenir.</blockquote>
|
||||
<p>Ainsi qu'un commentaire que je ne peux m'empécher de relayer,
|
||||
trouvé sur allocine.fr (oui, vous savez, ce site rempli de pubs).</p>
|
||||
<blockquote>
|
||||
Le temps des grâces c'est je pense le plus grand film traitant de
|
||||
l'écologie en tant que documentaire ou en sujet principal, on y
|
||||
apprend une multitude de choses, on en ressort en colère contre le
|
||||
système, le film propose différents points de vues, ici on a pas de
|
||||
voix off moralisatrice à deux balles avec des gros titres bien
|
||||
surlignés pour que même les beaufs matant TF1 puissent comprendre,
|
||||
ici même si ça reste accessible au citoyen lambda, le film ne fait
|
||||
pas de compromis avec le monde agroalimentaire, il ose dénoncer les
|
||||
filière d'agronomie qui apprennent pas les bonnes choses à leurs
|
||||
étudiants, aux lobbys de cette agro-industrie qui n'en fait qu'à sa
|
||||
tête pour amasser de l'argent, cette tendance à tout uniformiser et
|
||||
détruire… Franchement j'ai trouvé ça génial de bout en bout,
|
||||
captivant, on explore cette campagne française, on comprend les
|
||||
dilemmes des paysants. Le film n'étant pas opposé à la modernité,
|
||||
ni même réactionnaire, il propose juste un constat alarmant du
|
||||
monde agricole français, tout en proposant des alternatives qui
|
||||
pourraient être utilisée, si les pouvoirs publics lâchaient un peu
|
||||
la main des lobbys. Passionnant, vraiment.</blockquote>
|
||||
<p>Courrez-y, je vous dis.</p>
|
||||
</summary></entry><entry><title>Semaine de l’environnement: La consommation étudiante</title><link href="http://blog.notmyidea.org/semaine-de-lenvironnement-la-consommation-etudiante.html" rel="alternate"></link><updated>2010-02-24T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-02-24:/semaine-de-lenvironnement-la-consommation-etudiante.html/</id><summary type="html"><p>Les acteurs associatifs sont bien souvent moteurs des critiques de nos sociétés. Je pense à <a class="reference external" href="http://www.framasoft.net/">Framasoft</a>, à <a class="reference external" href="http://www.laquadrature.net/">la Quadrature du net</a> ou à <a class="reference external" href="http://www.arsindustrialis.org/">Ars Industrialis</a> (dans le domaine de la science et de l'informatique), mais aussi <a class="reference external" href="http://www.amisdelaterre.org/">aux Amis de la Terre</a>, à <a class="reference external" href="http://www.attac.org/">ATTAC</a> (dans le domaine de l'environnement entres autres), et a tout un tas d'autres associations que je ne peux pas citer ici exhaustivement... Ce sont eux qui sont porteurs de messages alternatifs, et qui sont les initiateurs de débats publics, qui permettent de faire avancer des thématiques aussi importantes que le logiciel libre ou la protection de l'environnement.</p>
|
||||
<p>Dans cette optique, depuis près de 3 ans (déjà !), au sein du
|
||||
<a class="reference external" href="http://www.reseaugrappe.org">réseau GRAPPE</a>, on <em>essaye</em>
|
||||
d'aborder des thématiques qui touchent de près ou de loin à
|
||||
l'environnement, parce que c'est un sujet qui nous importe et nous
|
||||
passionne. L'année dernière, c'était l'alimentation étudiante, ce
|
||||
qui à abouti à la publication de
|
||||
<a class="reference external" href="http://public.reseaugrappe.org/alimentation.pdf">la revue &quot;les étudiants se mettent à table&quot;</a>.
|
||||
Cette année c'est la consommation étudiante qui est au programme.</p>
|
||||
<div class="section" id="la-consommation-etudiante">
|
||||
<h2>La consommation étudiante ?</h2>
|
||||
<p>L'idée principale de cette étude est de tenter de faire une analyse
|
||||
de la &quot;société de consommation&quot;, souvent questionnée par les
|
||||
étudiants et par d'autres, et de jeter un œil sur le rapport des
|
||||
étudiants à cette société: Quoi et comment consomment-ils ? Les
|
||||
universités et les écoles ne poussent-elles pas d’une certaine
|
||||
manière les étudiants à la consommation ? Quelles sont les
|
||||
alternatives face aux dérives de surconsommation ?</p>
|
||||
<blockquote>
|
||||
Analyse des pratiques, réflexions et mobilisations des étudiants en
|
||||
termes de consommation seront réalisés pour comprendre leur modes
|
||||
de vie, mais aussi leurs attentes, leurs propositions sur cette
|
||||
thématique</blockquote>
|
||||
</div>
|
||||
<div class="section" id="la-semaine-de-l-environnement">
|
||||
<h2>La semaine de l'environnement !</h2>
|
||||
<p>A travers l'ensemble des villes du réseau,
|
||||
des projections de films et des débats auront donc lieu sur ce
|
||||
thème, lors de la semaine de l'environnement 2010, qui se déroulera
|
||||
d'ailleurs durant le mois de Mars
|
||||
<a class="reference external" href="http://www.reseaugrappe.org/la-semaine-de-lenvironnement-programme/">partout en france</a>,
|
||||
et <strong>du 6 au 14 Mars sur Toulouse</strong>.
|
||||
<a class="reference external" href="http://docs.notmyidea.org/sde/prog-toulouse.pdf">Jetez un oeil au programme</a>
|
||||
! Avec pour objectif de sonder un peu le ressenti des étudiants en
|
||||
terme de consommation, nous avons mis en place
|
||||
<a class="reference external" href="http://spreadsheets.google.com/viewform?formkey=dHV2bVllS2lWbzhyV3NBN3NUbi1TM2c6MA">un questionnaire en ligne</a>,
|
||||
que vous pouvez compléter en une petite 10aine de minutes,
|
||||
n'hésitez pas !
|
||||
<a class="reference external" href="http://www.reseaugrappe.org/consommation/">La page sur la consommation étudiante sur le site du GRAPPE</a></p>
|
||||
</div>
|
||||
</summary></entry><entry><title>AMAP + Média = Paniers bio à 5e ?!</title><link href="http://blog.notmyidea.org/amap-media-paniers-bio-a-5e.html" rel="alternate"></link><updated>2009-11-11T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2009-11-11:/amap-media-paniers-bio-a-5e.html/</id><summary type="html"><p>Le raccourci me semble un peu rapide. Et pourtant, il est emprunté
|
||||
bien trop souvent. La dernière <em>mes-utilisation</em> que j'ai à décrier
|
||||
est celle d'un reportage télé, passé sur France 2 vendredi 23
|
||||
Octobre
|
||||
(<a class="reference external" href="http://docs.notmyidea.org/amap/amap-fr2.avi">voir la vidéo</a>),
|
||||
ou on parles de
|
||||
<a class="reference external" href="http://amap.zest.free.fr">l'AMAP étudiante Zest</a>.</p>
|
||||
<p>Malgré tout le temps passé à expliquer que justement, l'AMAP c'est
|
||||
avant tout, pour nous, une notion de solidarité envers les
|
||||
agriculteurs, malgré le fait que le message soit plus profond que
|
||||
simplement aller acheter du bio (ça, c'est possible aussi en
|
||||
supermarché), malgré le fait qu'il s'agisse en fait d'une remise en
|
||||
cause plus profonde de la société, les journalistes n'ont choisi de
|
||||
prendre que les quelques secondes qui leurs convenaient, celles qui
|
||||
ne faisaient pas tache, celle ou je dis que &quot;l'AMAP permet aux
|
||||
étudiants de réapprendre à cuisiner, plutôt que de manger des
|
||||
nouilles et de se faire des plats réchauffés&quot;. Bien sur, je l'ai
|
||||
dit et je le pense d'ailleurs, là n'est pas le problème, mais mon
|
||||
message n'était pas celui là.</p>
|
||||
<p>Jamais, dans les quelques minutes du reportage, on ne dit ce que
|
||||
AMAP signifie: Association de <strong>Maintien</strong> d'une Agriculture
|
||||
<strong>Paysanne</strong>. On ne parles même pas des agriculteurs ! C'est
|
||||
simplement plus facile pour les étudiants de venir récupérer leurs
|
||||
paniers, puisque les points de distribution sont sur les facs, et
|
||||
en plus ça ne coute que 5 euros ! ...</p>
|
||||
<p>Alors je crois bon de rappeler que L'AMAP n'est pas seulement un
|
||||
service, c'est un engagement. Sur 5 mois, un engagement solidaire,
|
||||
c'est la donnée principale de l'équation, celle sans quoi ça ne
|
||||
peut fonctionner. Par le biais de cette AMAP, on essaye de montrer
|
||||
que d'autres agricultures sont possibles, que la solidarité c'est
|
||||
bien réel, et qu'il est possible de sortir du
|
||||
<em>tout, tout de suite</em>.</p>
|
||||
<p>Mais bon, apparemment, ça passe pas bien à la télé.</p>
|
||||
</summary></entry></feed>
|
1167
feeds/dev.atom.xml
Normal file
1167
feeds/dev.atom.xml
Normal file
File diff suppressed because it is too large
Load diff
41
feeds/python.atom.xml
Normal file
41
feeds/python.atom.xml
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alexis' log</title><link href="http://blog.notmyidea.org" rel="alternate"></link><link href="http://blog.notmyidea.org/feeds/python.atom.xml" rel="self"></link><id>http://blog.notmyidea.org</id><updated>2011-08-16T00:00:00Z</updated><entry><title>Using dbpedia to get languages influences</title><link href="http://blog.notmyidea.org/using-dbpedia-to-get-languages-influences.html" rel="alternate"></link><updated>2011-08-16T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2011-08-16:/using-dbpedia-to-get-languages-influences.html/</id><summary type="html"><p>While browsing the Python's wikipedia page, I found information about the languages
|
||||
influenced by python, and the languages that influenced python itself.</p>
|
||||
<p>Well, that's kind of interesting to know which languages influenced others,
|
||||
it could even be more interesting to have an overview of the connexion between
|
||||
them, keeping python as the main focus.</p>
|
||||
<p>This information is available on the wikipedia page, but not in a really
|
||||
exploitable format. Hopefully, this information is provided into the
|
||||
information box present on the majority of wikipedia pages. And… guess what?
|
||||
there is project with the goal to scrap and index all this information in
|
||||
a more queriable way, using the semantic web technologies.</p>
|
||||
<p>Well, you may have guessed it, the project in question in dbpedia, and exposes
|
||||
information in the form of RDF triples, which are way more easy to work with
|
||||
than simple HTML.</p>
|
||||
<p>For instance, let's take the page about python:
|
||||
<a class="reference external" href="http://dbpedia.org/page/Python_%28programming_language%29">http://dbpedia.org/page/Python_%28programming_language%29</a></p>
|
||||
<p>The interesting properties here are &quot;Influenced&quot; and &quot;InfluencedBy&quot;, which
|
||||
allows us to get a list of languages. Unfortunately, they are not really using
|
||||
all the power of the Semantic Web here, and the list is actually a string with
|
||||
coma separated values in it.</p>
|
||||
<p>Anyway, we can use a simple rule: All wikipedia pages of programming languages
|
||||
are either named after the name of the language itself, or suffixed with &quot;(
|
||||
programming language)&quot;, which is the case for python.</p>
|
||||
<p>So I've built <a class="reference external" href="https://github.com/ametaireau/experiments/blob/master/influences/get_influences.py">a tiny script to extract the information from dbpedia</a> and transform them into a shiny graph using graphviz.</p>
|
||||
<p>After a nice:</p>
|
||||
<pre class="literal-block">
|
||||
$ python get_influences.py python dot | dot -Tpng &gt; influences.png
|
||||
</pre>
|
||||
<p>The result is the following graph (<a class="reference external" href="http://files.lolnet.org/alexis/influences.png">see it directly here</a>)</p>
|
||||
<img alt="http://files.lolnet.org/alexis/influences.png" src="http://files.lolnet.org/alexis/influences.png" style="width: 800px;" />
|
||||
<p>While reading this diagram, keep in mind that it is a) not listing all the
|
||||
languages and b) keeping a python perspective.</p>
|
||||
<p>This means that you can trust the scheme by following the arrows from python to
|
||||
something and from something to python, it is not trying to get the matching
|
||||
between all the languages at the same time to keep stuff readable.</p>
|
||||
<p>It would certainly be possible to have all the connections between all
|
||||
languages (and the resulting script would be easier) to do so, but the resulting
|
||||
graph would probably be way less readable.</p>
|
||||
<p>You can find the script <a class="reference external" href="https://github.com/ametaireau/experiments">on my github account</a>. Feel free to adapt it for
|
||||
whatever you want if you feel hackish.</p>
|
||||
</summary><category term="dbpedia"></category><category term="sparql"></category><category term="python"></category></entry></feed>
|
200
feeds/system.atom.xml
Normal file
200
feeds/system.atom.xml
Normal file
|
@ -0,0 +1,200 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alexis' log</title><link href="http://blog.notmyidea.org" rel="alternate"></link><link href="http://blog.notmyidea.org/feeds/system.atom.xml" rel="self"></link><id>http://blog.notmyidea.org</id><updated>2011-03-16T00:00:00Z</updated><entry><title>Working directly on your server? How to backup and sync your dev environment with unison</title><link href="http://blog.notmyidea.org/working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html" rel="alternate"></link><updated>2011-03-16T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2011-03-16:/working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html/</id><summary type="html"><p>I have a server running freebsd since some time now, and was wondering about
|
||||
the possibility to directly have a development environment ready to use when
|
||||
I get a internet connexion, even if I'm not on my computer.</p>
|
||||
<p>Since I use vim to code, and spend most of my time in a console while
|
||||
developing, it's possible to work via ssh, from everywhere.</p>
|
||||
<p>The only problem is the synchronisation of the source code, config files etc.
|
||||
from my machine to the server.</p>
|
||||
<p>Unison provides an interesting way to synchronise two folders, even over
|
||||
a network. So let's do it !</p>
|
||||
<div class="section" id="creating-the-jail">
|
||||
<h2>Creating the jail</h2>
|
||||
<p>In case you don't use FreeBSD, you can skip this section.</p>
|
||||
<div class="highlight"><pre><span class="c"># I have a flavour jail named default</span>
|
||||
<span class="nv">$ </span>ezjail-admin -f default workspace.notmyidea.org 172.19.1.6
|
||||
<span class="nv">$ </span>ezjail-admin start workspace.notmyidea.org
|
||||
</pre></div>
|
||||
<p>In my case, because the &quot;default&quot; flavour contains already a lot of interesting
|
||||
things, my jail come already setup with ssh, bash and vim for instance, but
|
||||
maybe you'll need it in your case.</p>
|
||||
<p>I want to be redirected to the ssh of the jail when I connect to the host with
|
||||
the 20006 port. Add lines in <cite>/etc/pf.conf</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
workspace_jail=&quot;172.19.1.6&quot;
|
||||
rdr on $ext_if proto tcp from any to $ext_ip port 20006 -&gt; $workspace_jail port 22
|
||||
</pre>
|
||||
<p>Reload packet filter rules</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>/etc/rc.d/pf reload
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="working-with-unison">
|
||||
<h2>Working with unison</h2>
|
||||
<p>Now that we've set up the jail. Set up unison on the server and on your client.
|
||||
Unison is available on the freebsd ports so just install it</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 config-recursive
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 package-recursive
|
||||
</pre></div>
|
||||
<p>Install as well unison on your local machine. Double check to install the same
|
||||
version on the client and on the server. Ubuntu contains the 2.27.57 as well as
|
||||
the 2.32.52.</p>
|
||||
<p>Check that unison is installed and reachable via ssh from your machine</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006 unison -version
|
||||
unison version 2.27.157
|
||||
<span class="nv">$ </span>unison -version
|
||||
unison version 2.27.57
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="let-sync-our-folders">
|
||||
<h2>Let sync our folders</h2>
|
||||
<p>The first thing I want to sync is my vim configuration. Well, it's already <a class="reference external" href="http://github.com/ametaireau/dotfiles/">in
|
||||
a git repository</a> but let's try to use
|
||||
unison for it right now.</p>
|
||||
<p>I have two machines then: <cite>workspace</cite>, the jail, and <cite>ecureuil</cite> my laptop.</p>
|
||||
<div class="highlight"><pre>unison .vim ssh://notmyidea.org:20006/.vim
|
||||
unison .vimrc ssh://notmyidea.org:20006/.vimrc
|
||||
</pre></div>
|
||||
<p>It is also possible to put all the informations in a config file, and then to
|
||||
only run <cite>unison</cite>. (fire up <cite>vim ~/.unison/default.prf</cite>.</p>
|
||||
<p>Here is my config:</p>
|
||||
<pre class="literal-block">
|
||||
root = /home/alexis
|
||||
root = ssh://notmyidea.org:20006
|
||||
|
||||
path = .vimrc
|
||||
path = dotfiles
|
||||
path = dev
|
||||
|
||||
follow = Name *
|
||||
</pre>
|
||||
<p>My vimrc is in fact a symbolic link on my laptop, but I don't want to specify
|
||||
each of the links to unison. That's why the <cite>follow = Name *</cite> is for.</p>
|
||||
<p>The folders you want to synchronize are maybe a bit large. If so, considering
|
||||
others options such as rsync for the first import may be a good idea (I enjoyed
|
||||
my university huge upload bandwith to upload 2GB in 20mn ;)</p>
|
||||
</div>
|
||||
<div class="section" id="run-the-script-frequently">
|
||||
<h2>Run the script frequently</h2>
|
||||
<p>Once that done, you just need to run the unison command line some times when
|
||||
you want to sync your two machines. I've wrote a tiny script to get some
|
||||
feedback from the sync:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">os</span>
|
||||
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
|
||||
|
||||
<span class="n">DEFAULT_LOGFILE</span> <span class="o">=</span> <span class="s">&quot;~/unison.log&quot;</span>
|
||||
<span class="n">PROGRAM_NAME</span> <span class="o">=</span> <span class="s">&quot;Unison syncer&quot;</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">sync</span><span class="p">(</span><span class="n">logfile</span><span class="o">=</span><span class="n">DEFAULT_LOGFILE</span><span class="p">,</span> <span class="n">program_name</span><span class="o">=</span><span class="n">PROGRAM_NAME</span><span class="p">):</span>
|
||||
<span class="c"># init</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
<span class="n">error</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
|
||||
<span class="n">before</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
|
||||
<span class="c"># call unison to make the sync</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">&#39;unison -batch &gt; {0}&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
|
||||
<span class="c"># get the duration of the operation</span>
|
||||
<span class="n">td</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="o">-</span> <span class="n">before</span>
|
||||
<span class="n">delta</span> <span class="o">=</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">microseconds</span> <span class="o">+</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">seconds</span> <span class="o">+</span> <span class="n">td</span><span class="o">.</span><span class="n">days</span> <span class="o">*</span> <span class="mi">24</span> <span class="o">*</span> <span class="mi">3600</span><span class="p">)</span> <span class="o">*</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span><span class="p">)</span> <span class="o">/</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span>
|
||||
|
||||
<span class="c"># check what was the last entry in the log</span>
|
||||
<span class="n">log</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">expanduser</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
<span class="n">lines</span> <span class="o">=</span> <span class="n">log</span><span class="o">.</span><span class="n">readlines</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="s">&#39;No updates to propagate&#39;</span> <span class="ow">in</span> <span class="n">lines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]:</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">output</span> <span class="o">=</span> <span class="p">[</span><span class="n">l</span> <span class="k">for</span> <span class="n">l</span> <span class="ow">in</span> <span class="n">lines</span> <span class="k">if</span> <span class="s">&quot;Synchronization&quot;</span> <span class="ow">in</span> <span class="n">l</span><span class="p">]</span>
|
||||
|
||||
<span class="n">message</span> <span class="o">=</span> <span class="n">output</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">message</span> <span class="o">+=</span> <span class="s">&quot; It took {0}s.&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">delta</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">display_message</span><span class="p">:</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">&#39;notify-send -i {2} &quot;{0}&quot; &quot;{1}&quot;&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">program_name</span><span class="p">,</span> <span class="n">message</span><span class="p">,</span>
|
||||
<span class="s">&#39;error&#39;</span> <span class="k">if</span> <span class="n">error</span> <span class="k">else</span> <span class="s">&#39;info&#39;</span><span class="p">))</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">&quot;__main__&quot;</span><span class="p">:</span>
|
||||
<span class="n">sync</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>This is probably perfectible, but that does the job.</p>
|
||||
<p>Last step is to tell you machine to run that frequently. That's what <cite>crontab</cite>
|
||||
is made for, so let's <cite>crontab -e</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
$ * */3 * * * . ~/.Xdbus; /usr/bin/python /home/alexis/dev/python/unison-syncer/sync.py
|
||||
</pre>
|
||||
<p>The <cite>~/.Xdbus</cite> allows cron to communicate with your X11 session. Here is its
|
||||
content.</p>
|
||||
<div class="highlight"><pre><span class="c">#!/bin/bash</span>
|
||||
|
||||
<span class="c"># Get the pid of nautilus</span>
|
||||
<span class="nv">nautilus_pid</span><span class="o">=</span><span class="k">$(</span>pgrep -u <span class="nv">$LOGNAME</span> -n nautilus<span class="k">)</span>
|
||||
|
||||
<span class="c"># If nautilus isn&#39;t running, just exit silently</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">&quot;$nautilus_pid&quot;</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">exit </span>0
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># Grab the DBUS_SESSION_BUS_ADDRESS variable from nautilus&#39;s environment</span>
|
||||
<span class="nb">eval</span> <span class="k">$(</span>tr <span class="s1">&#39;\0&#39;</span> <span class="s1">&#39;\n&#39;</span> &lt; /proc/<span class="nv">$nautilus_pid</span>/environ | grep <span class="s1">&#39;^DBUS_SESSION_BUS_ADDRESS=&#39;</span><span class="k">)</span>
|
||||
|
||||
<span class="c"># Check that we actually found it</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">&quot;$DBUS_SESSION_BUS_ADDRESS&quot;</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">echo</span> <span class="s2">&quot;Failed to find bus address&quot;</span> &gt;&amp;2
|
||||
<span class="nb">exit </span>1
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># export it so that child processes will inherit it</span>
|
||||
<span class="nb">export </span>DBUS_SESSION_BUS_ADDRESS
|
||||
</pre></div>
|
||||
<p>And it comes from <a class="reference external" href="http://ubuntuforums.org/showthread.php?p=10148738#post10148738">here</a>.</p>
|
||||
<p>A sync takes about 20s + the upload time on my machine, which stay acceptable for
|
||||
all of my developments.</p>
|
||||
</div>
|
||||
</summary><category term="freebsd"></category><category term="unison"></category></entry><entry><title>How to install NGINX + PHP 5.3 on FreeBSD.</title><link href="http://blog.notmyidea.org/how-to-install-nginx-php-53-on-freebsd.html" rel="alternate"></link><updated>2010-10-10T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-10-10:/how-to-install-nginx-php-53-on-freebsd.html/</id><summary type="html"><p>I've not managed so far to get completely rid of php, so here's a simple
|
||||
reminder about how to install php on NGINX, for FreeBSD. Nothing hard, but
|
||||
that's worse to have the piece of configuration somewhere !</p>
|
||||
<pre class="literal-block">
|
||||
# update the ports
|
||||
$ portsnap fetch update
|
||||
|
||||
# install php5 port
|
||||
$ make config-recursive -C /usr/ports/lang/php5-extensions
|
||||
$ make package-recursive -C /usr/ports/lang/php5-extensions
|
||||
|
||||
# install nginx
|
||||
$ make config-recursive -C /usr/ports/www/nginx-devel
|
||||
$ make package-recursive -C /usr/ports/www/nginx-devel
|
||||
</pre>
|
||||
<p>Now we have all the dependencies installed, we need to configure a bit the
|
||||
server.</p>
|
||||
<p>That's a simple thing in fact, but it could be good to have something that will
|
||||
work without effort over time.</p>
|
||||
<p>Here's a sample of my configuration:</p>
|
||||
<pre class="literal-block">
|
||||
server {
|
||||
server_name ndd;
|
||||
set $path /path/to/your/files;
|
||||
root $path;
|
||||
|
||||
location / {
|
||||
index index.php;
|
||||
}
|
||||
|
||||
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
|
||||
access_log off;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
location ~ .php$ {
|
||||
fastcgi_param SCRIPT_FILENAME $path$fastcgi_script_name;
|
||||
fastcgi_pass backend;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
upstream backend {
|
||||
server 127.0.0.1:9000;
|
||||
}
|
||||
</pre>
|
||||
<p>And that's it !</p>
|
||||
</summary></entry></feed>
|
146
feeds/thoughts.atom.xml
Normal file
146
feeds/thoughts.atom.xml
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alexis' log</title><link href="http://blog.notmyidea.org" rel="alternate"></link><link href="http://blog.notmyidea.org/feeds/thoughts.atom.xml" rel="self"></link><id>http://blog.notmyidea.org</id><updated>2011-05-19T00:00:00Z</updated><entry><title>Travailler moins pour mieux travailler ?</title><link href="http://blog.notmyidea.org/travailler-moins-pour-mieux-travailler.html" rel="alternate"></link><updated>2011-05-19T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2011-05-19:/travailler-moins-pour-mieux-travailler.html/</id><summary type="html"><p>Je viens de passer une semaine et demi quasiment hors-ligne et je dois dire que
|
||||
je suis assez impressionné du résultat: je suis de retour chez mes parents pour
|
||||
le &quot;easter break&quot; et j'en ai profité pour donner un coup aux travaux de la
|
||||
maison (et pour me reposer un brin!).</p>
|
||||
<p>Bosser en extérieur est un réel plaisir et faire quelque chose de manuel
|
||||
également. Je n'ai pas pour habitude de bricoler autre chose que du logiciel et
|
||||
c'est vraiment quelque chose que j'apprécie.</p>
|
||||
<p>J'avoue, je mens un peu quand je dis que j'étais complètement déconnecté:
|
||||
j'ai vérifié mes mails assez régulièrement en utilisant mon téléphone
|
||||
(merci Arnaud pour le prêt du gadget!) et j'ai limité ma présence web au strict
|
||||
minimum. Je veux dire par là pas de twitter, pas d'IRC et autres mailing-lists.</p>
|
||||
<p>Quand je dis hors-ligne, je ne dis pas que je n'ai pas travaillé sur mon
|
||||
ordinateur. J'ai à fournir beaucoup plus de travail que ce que je ne pensait en
|
||||
premier lieu pour la rédaction de mon mémoire et j'ai passé quelques heures par
|
||||
ci par là à lire des articles et livres sur le sujet ainsi que rédigé une bonne
|
||||
partie de mon mémoire durant ces 10 jours. Résultat ? Les heures que j'ai passées à travailler ont
|
||||
été étonnement plus productives que celles que j'ai l'habitude de passer derrière
|
||||
un écran. Je ne parles pas uniquement du fait de procrastiner; évidemment c'est
|
||||
une des causes principales de ma perte de productivité, mais je pense également
|
||||
au fait de laisser le cerveau reposer, au moins en ce qui concerne la partie
|
||||
informatique. Bricoler demande de la concentration et de la réflexion mais
|
||||
permet également de laisser son esprit vagabonder. J'ai pu donc avancer mes
|
||||
sur certaines parties de mon mémoire alors que j'étais en train de poser le
|
||||
bardage sur la garage par exemple.</p>
|
||||
<p>Passer du temps sur autre chose (qui demandait également de la concentration
|
||||
par ailleurs) m'a permis d'être réellement plus efficace lors de mes phases de
|
||||
rédaction et de lecture.</p>
|
||||
<p>Je me demande depuis quelques temps quel sera mon futur travail et quelle forme
|
||||
il prendra. Éééh oui, la fin des études arrive pour la fin de l'année, c'est
|
||||
pas une blague. Et je me pose sérieusement la question du travail aux 3/4
|
||||
temps. La raison principale étant que je ne souhaites pas passer la majeure
|
||||
partie de mon temps à travailler derrière un écran et que la formation que j'ai
|
||||
m'y rattache beaucoup. Ne me comprenez pas de travers: j'aime ce que je fais;
|
||||
mais j'aime aussi ce que je fais à coté de l'informatique: associatif, projets
|
||||
alternatifs, permaculture et autres.</p>
|
||||
<p>Viens s'ajouter à ça le fait d'avoir une qualité de vie qui me semble pouvoir
|
||||
passer par le fait de travailler moins (&quot;il est marant ce gamin, il à pas encore commencé
|
||||
à travailler qu'il veut bosser moins, regarde moi cette feignasse!&quot;) et
|
||||
travailler plus efficacement. Bien sur, on n'est jamais 100% productif et c'est
|
||||
d'autant plus vrai pour moi, alors si gagner en productivité peut passer par
|
||||
travailler moins, pourquoi pas s'y essayer !</p>
|
||||
<p>Peut être que vous pratiquez déjà le travail au 3/4 temps, que vous avez des
|
||||
retours d'expérience à faire : fausse bonne idée ? Vraie bonne idée ?</p>
|
||||
</summary></entry><entry><title>Fork you ! or how the social coding can help you</title><link href="http://blog.notmyidea.org/fork-you-or-how-the-social-coding-can-help-you.html" rel="alternate"></link><updated>2010-11-05T00:00:00Z</updated><author><name>Alexis Métaireau</name></author><id>tag:blog.notmyidea.org,2010-11-05:/fork-you-or-how-the-social-coding-can-help-you.html/</id><summary type="html"><p>With <a class="reference external" href="http://github.com">github</a> and <a class="reference external" href="http://www.bitbucket.org">bitbucket</a> coming around, a lot of new usages appears for the
|
||||
developpers: it's now easy to get feedback on your code/modifications, and to get
|
||||
help from others by, for instance, forking repositories.</p>
|
||||
<p>Eeach time I see people helping others, I'm amazed by how we like to share
|
||||
our knowledge.</p>
|
||||
<p>I say github, because it seems to be the more mainstream, but I think it's
|
||||
something strongly related to the <a class="reference external" href="http://en.wikipedia.org/wiki/Distributed_revision_control">DVCS</a> principles: the &quot;only&quot; thing github have
|
||||
made is to turn that into a social network, and to reveal the awesomeness of the
|
||||
DVCSes to the masses.</p>
|
||||
<p>What is really interesting is to see how this platform is addictive: it's
|
||||
automatically updating a webpages with the more accurate informations about the
|
||||
projects you're involved in, and add a bit of magic to that using webhooks,
|
||||
allowing you to update your website each time you push to you repository, for
|
||||
instance.</p>
|
||||
<p>Quite nothing, indeed, but, I don't know why, I find this fascinating.</p>
|
||||
<p>I haven't had the privilege to see my projects forked from github by strangers,
|
||||
but I've forked others repository to give an hand some times, when I wanted to,
|
||||
and the main reason is &quot;because it's <strong>fun</strong>&quot; to do so.</p>
|
||||
<p>Yeah, you're probably right, you have to be a nerd to find fun to fork others.
|
||||
The good point is that geeks are a kind of nerds, and some geeks are coders :)</p>
|
||||
<div class="section" id="new-ways-to-contribute">
|
||||
<h2>New ways to contribute</h2>
|
||||
<p>In addition, it seems that he community, or the communities, are there, on those
|
||||
new social networks for coders. It's really handy to drop an eye on interesting
|
||||
projects, to report bugs, propose new features, and check what new projects this
|
||||
or this person have made.</p>
|
||||
<p>Well, &quot;it's not new&quot;, you may think. That's true, because it's been a while that
|
||||
SVN was there and even CVS before that. But, it was a bit messy to &quot;fork&quot; a
|
||||
project, isn't it ? And I'm not talking about all the hell SVN involved with it
|
||||
(who have not had issues with those messy .svn folders raises an hand !).</p>
|
||||
<p>It have not been so easy to share code and thoughts about code, to propose
|
||||
changes on existing code, than now. You think it's better to implement this or
|
||||
that in a different way ? Clone it (fork it), make your changes and publish
|
||||
them, and then ask projects owners about it. For sure you'll have answers.</p>
|
||||
<p>Even if they don't want it, you can easily keep your changes, and keep getting
|
||||
their updates!</p>
|
||||
<p>Also, lot of <em>fashionables</em> projects tend to move on DVCS.
|
||||
Personally, if I know I can fork on a DVCS instead of from a &quot;simple&quot; VCS,
|
||||
I'll probably be quicker to fork/clone, and to publish changes on my own copy,
|
||||
than if I had to do so on the upstream repository (and I'll likely dont have
|
||||
the rights to push to it), because I will not be afraid to break things.</p>
|
||||
<p>DVCSes makes the contribution easier.</p>
|
||||
</div>
|
||||
<div class="section" id="release-early-release-often">
|
||||
<h2>Release early, release often</h2>
|
||||
<p>Maybe have you read <a class="reference external" href="http://www.catb.org/~esr/writings/cathedral-bazaar/">The cathedral and the bazaar</a>, by Eric Steven Raymond ?
|
||||
(If not, consider doing so, it's a really interesting reading)</p>
|
||||
<p>Among a lot of others interesting things, one hint he gives is <em>release early,
|
||||
release often</em>.</p>
|
||||
<p>I understand it as: if you want to get contributors, release your code early,
|
||||
even if it's not perfect, and don't be afraid to publish your changes each
|
||||
time it's needed.</p>
|
||||
<p>Without notifying it, that's basically what I was doing for my own projects.
|
||||
I guess that's because Social coding platforms encourages those practices,
|
||||
partially cause of the possible impact publishing each of your changes can have
|
||||
on your final solution.</p>
|
||||
<p>If you have considered publishing your projects, code snippets, or whatever
|
||||
(code related) but did not done it, considering them not yet ready, maybe
|
||||
should you think about it twice: you can get feedback and probably start some
|
||||
interesting discussions about it, if you write code that's readable, of course!</p>
|
||||
</div>
|
||||
<div class="section" id="a-step-further-for-open-source-softwares">
|
||||
<h2>A step further for open source softwares</h2>
|
||||
<p>Well, DVCSes are a honking great idea, and they're starting to be really
|
||||
powerful when applied to free softwares. I mean: if you can't see a project,
|
||||
it will be hard to contribute to it. And, I don't think anyone wants to
|
||||
contribute to something closed/proprietary, <em>just for fun</em>. Or maybe am I
|
||||
missing something.</p>
|
||||
<p>Maybe it's a kind of revolution, about free and open source softwares (<a class="reference external" href="http://en.wikipedia.org/wiki/Free_and_open_source_software">FOSS</a>),
|
||||
that is going on. I really like to know I have my word to say about the changes
|
||||
in the tools I use, and to know that I can make them evolve.</p>
|
||||
<p>Let's take an example. Imagine I'm using a web framework on daily basis, as a
|
||||
part of my job as a web developer. I do like using an open source software
|
||||
because I know how it's working, and because I know that I can interact with the
|
||||
authors of the framework while they're doing the changes on it.</p>
|
||||
<p>That's communication, nothing more, and of course I can do that with an internal
|
||||
proprietary solution, but it will cost me <strong>a lot</strong> more time, for a dead-simple
|
||||
reason: a company is not as big and powerful as a community can be: it will cost
|
||||
time to work on this framework, resources to maintain it, fix bugs etc.</p>
|
||||
<p>Well, I'm starting advocating here about Free and Open Source Softwares use on
|
||||
companies, what is a bit beyond the scope of this article, so let's back to
|
||||
our DVCSes and new social related tools.</p>
|
||||
<p>If I find a bug in this framework, while working, I have the possibility to
|
||||
go and talk with the creators of the framework, to open a ticket, and even to
|
||||
make a fix for it, because I've access to the source code. If I want to create a
|
||||
new feature, I just have to fork it, hack it, and then publish my code to have
|
||||
feedback of the community.</p>
|
||||
<p>My fix/work will benefit to all the people (and maybe others companies) working
|
||||
with this framework, and it's a way to prove the community that my company is
|
||||
enough skilled to make code-fixes to the framework, so that's all good !</p>
|
||||
</div>
|
||||
<div class="section" id="what-s-next">
|
||||
<h2>What's next ?</h2>
|
||||
<p>I hope those social coding platforms are only the begining of a new area. I hope
|
||||
they will make people realize what the power of the community is, and how easily
|
||||
they can becomes part of it.</p>
|
||||
<p>If you're not using them right now, maybe you should do so: have a
|
||||
look on how the programs you're using are made, consider publishing your
|
||||
experimentations, and share them with others, you will see, it's kind of
|
||||
addictive !</p>
|
||||
</div>
|
||||
</summary></entry></feed>
|
226
first-week-working-on-distutils2.html
Normal file
226
first-week-working-on-distutils2.html
Normal file
|
@ -0,0 +1,226 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>first week working on distutils2</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to first week working on distutils2">first week working on distutils2</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-06-04T00:00:00">
|
||||
Fri 04 June 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>As I've been working on
|
||||
<a class="reference external" href="http://hg.python.org/distutils2/">Distutils2</a> during the past
|
||||
week, taking part of the
|
||||
<a class="reference external" href="http://code.google.com/intl/fr/soc/">GSOC</a> program, here is a
|
||||
short summary of what I've done so far.</p>
|
||||
<p>As my courses are not over yet, I've not worked as much as I
|
||||
wanted, and this will continues until the end of June. My main
|
||||
tasks are about making installation and uninstallation commands, to
|
||||
have a simple way to install distributions via
|
||||
<a class="reference external" href="http://hg.python.org/distutils2/">Distutils2</a>.</p>
|
||||
<p>To do this, we need to rely on informations provided by the Python
|
||||
Package Index (<a class="reference external" href="http://pypi.python.org/">PyPI</a>), and there is at
|
||||
least two ways to retreive informations from here: XML-RPC and the
|
||||
"simple" API.</p>
|
||||
<p>So, I've been working on porting some
|
||||
<a class="reference external" href="http://bitbucket.org/tarek/distribute/">Distribute</a> related
|
||||
stuff to <a class="reference external" href="http://hg.python.org/distutils2/">Distutils2</a>, cutting
|
||||
off all non distutils' things, as we do not want to depend from
|
||||
Distribute's internals. My main work has been about reading the
|
||||
whole code, writing tests about this and making those tests
|
||||
possible.</p>
|
||||
<p>In fact, there was a need of a pypi mocked server, and, after
|
||||
reading and introducing myself to the distutils behaviors and code,
|
||||
I've taken some time to improve the work
|
||||
<a class="reference external" href="http://bitbucket.org/konrad">Konrad</a> makes about this mock.</p>
|
||||
<div class="section" id="a-pypi-server-mock">
|
||||
<h2>A PyPI Server mock</h2>
|
||||
<p>The mock is embeded in a thread, to make it available during the
|
||||
tests, in a non blocking way. We first used
|
||||
<a class="reference external" href="http://wsgi.org">WSGI</a> and
|
||||
<a class="reference external" href="http://docs.python.org/library/wsgiref.html">wsgiref</a> in order
|
||||
control what to serve, and to log the requests made to the server,
|
||||
but finally realised that
|
||||
<a class="reference external" href="http://docs.python.org/library/wsgiref.html">wsgiref</a> is not
|
||||
python 2.4 compatible (and we <em>need</em> to be python 2.4 compatible in
|
||||
Distutils2).</p>
|
||||
<p>So, we switched to
|
||||
<a class="reference external" href="http://docs.python.org/library/basehttpserver.html">BaseHTTPServer</a>
|
||||
and
|
||||
<a class="reference external" href="http://docs.python.org/library/simplehttpserver.html">SimpleHTTPServer</a>,
|
||||
and updated our tests accordingly. It's been an opportunity to
|
||||
realize that <a class="reference external" href="http://wsgi.org">WSGI</a> has been a great step
|
||||
forward for making HTTP servers, and expose a really simplest way
|
||||
to discuss with HTTP !</p>
|
||||
<p>You can find
|
||||
<a class="reference external" href="http://bitbucket.org/ametaireau/distutils2/changesets">the modifications I made</a>,
|
||||
and the
|
||||
<a class="reference external" href="http://bitbucket.org/ametaireau/distutils2/src/tip/docs/source/test_framework.rst">related docs</a>
|
||||
about this on
|
||||
<a class="reference external" href="http://bitbucket.org/ametaireau/distutils2/">my bitbucket distutils2 clone</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="the-pypi-simple-api">
|
||||
<h2>The PyPI Simple API</h2>
|
||||
<p>So, back to the main problematic: make a python library to access
|
||||
and request information stored on PyPI, via the simple API. As I
|
||||
said, I've just grabbed the work made from
|
||||
<a class="reference external" href="http://bitbucket.org/tarek/distribute/">Distribute</a>, and played
|
||||
a bit with, in order to view what are the different use cases, and
|
||||
started to write the related tests.</p>
|
||||
</div>
|
||||
<div class="section" id="the-work-to-come">
|
||||
<h2>The work to come</h2>
|
||||
<p>So, once all use cases covered with tests, I'll rewrite a bit the
|
||||
grabbed code, and do some software design work (to not expose all
|
||||
things as privates methods, have a clear API, and other things like
|
||||
this), then update the tests accordingly and write a documentation
|
||||
to make this clear.</p>
|
||||
<p>Next step is to a little client, as I've
|
||||
<a class="reference external" href="http://github.com/ametaireau/pypiclient">already started here</a>
|
||||
I'll take you updated !</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "first-week-working-on-distutils2.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
256
fork-you-or-how-the-social-coding-can-help-you.html
Normal file
256
fork-you-or-how-the-social-coding-can-help-you.html
Normal file
|
@ -0,0 +1,256 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Fork you ! or how the social coding can help you</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li class="active"><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Fork you ! or how the social coding can help you">Fork you ! or how the social coding can help you</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-11-05T00:00:00">
|
||||
Fri 05 November 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/thoughts.html">thoughts</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>With <a class="reference external" href="http://github.com">github</a> and <a class="reference external" href="http://www.bitbucket.org">bitbucket</a> coming around, a lot of new usages appears for the
|
||||
developpers: it's now easy to get feedback on your code/modifications, and to get
|
||||
help from others by, for instance, forking repositories.</p>
|
||||
<p>Eeach time I see people helping others, I'm amazed by how we like to share
|
||||
our knowledge.</p>
|
||||
<p>I say github, because it seems to be the more mainstream, but I think it's
|
||||
something strongly related to the <a class="reference external" href="http://en.wikipedia.org/wiki/Distributed_revision_control">DVCS</a> principles: the "only" thing github have
|
||||
made is to turn that into a social network, and to reveal the awesomeness of the
|
||||
DVCSes to the masses.</p>
|
||||
<p>What is really interesting is to see how this platform is addictive: it's
|
||||
automatically updating a webpages with the more accurate informations about the
|
||||
projects you're involved in, and add a bit of magic to that using webhooks,
|
||||
allowing you to update your website each time you push to you repository, for
|
||||
instance.</p>
|
||||
<p>Quite nothing, indeed, but, I don't know why, I find this fascinating.</p>
|
||||
<p>I haven't had the privilege to see my projects forked from github by strangers,
|
||||
but I've forked others repository to give an hand some times, when I wanted to,
|
||||
and the main reason is "because it's <strong>fun</strong>" to do so.</p>
|
||||
<p>Yeah, you're probably right, you have to be a nerd to find fun to fork others.
|
||||
The good point is that geeks are a kind of nerds, and some geeks are coders :)</p>
|
||||
<div class="section" id="new-ways-to-contribute">
|
||||
<h2>New ways to contribute</h2>
|
||||
<p>In addition, it seems that he community, or the communities, are there, on those
|
||||
new social networks for coders. It's really handy to drop an eye on interesting
|
||||
projects, to report bugs, propose new features, and check what new projects this
|
||||
or this person have made.</p>
|
||||
<p>Well, "it's not new", you may think. That's true, because it's been a while that
|
||||
SVN was there and even CVS before that. But, it was a bit messy to "fork" a
|
||||
project, isn't it ? And I'm not talking about all the hell SVN involved with it
|
||||
(who have not had issues with those messy .svn folders raises an hand !).</p>
|
||||
<p>It have not been so easy to share code and thoughts about code, to propose
|
||||
changes on existing code, than now. You think it's better to implement this or
|
||||
that in a different way ? Clone it (fork it), make your changes and publish
|
||||
them, and then ask projects owners about it. For sure you'll have answers.</p>
|
||||
<p>Even if they don't want it, you can easily keep your changes, and keep getting
|
||||
their updates!</p>
|
||||
<p>Also, lot of <em>fashionables</em> projects tend to move on DVCS.
|
||||
Personally, if I know I can fork on a DVCS instead of from a "simple" VCS,
|
||||
I'll probably be quicker to fork/clone, and to publish changes on my own copy,
|
||||
than if I had to do so on the upstream repository (and I'll likely dont have
|
||||
the rights to push to it), because I will not be afraid to break things.</p>
|
||||
<p>DVCSes makes the contribution easier.</p>
|
||||
</div>
|
||||
<div class="section" id="release-early-release-often">
|
||||
<h2>Release early, release often</h2>
|
||||
<p>Maybe have you read <a class="reference external" href="http://www.catb.org/~esr/writings/cathedral-bazaar/">The cathedral and the bazaar</a>, by Eric Steven Raymond ?
|
||||
(If not, consider doing so, it's a really interesting reading)</p>
|
||||
<p>Among a lot of others interesting things, one hint he gives is <em>release early,
|
||||
release often</em>.</p>
|
||||
<p>I understand it as: if you want to get contributors, release your code early,
|
||||
even if it's not perfect, and don't be afraid to publish your changes each
|
||||
time it's needed.</p>
|
||||
<p>Without notifying it, that's basically what I was doing for my own projects.
|
||||
I guess that's because Social coding platforms encourages those practices,
|
||||
partially cause of the possible impact publishing each of your changes can have
|
||||
on your final solution.</p>
|
||||
<p>If you have considered publishing your projects, code snippets, or whatever
|
||||
(code related) but did not done it, considering them not yet ready, maybe
|
||||
should you think about it twice: you can get feedback and probably start some
|
||||
interesting discussions about it, if you write code that's readable, of course!</p>
|
||||
</div>
|
||||
<div class="section" id="a-step-further-for-open-source-softwares">
|
||||
<h2>A step further for open source softwares</h2>
|
||||
<p>Well, DVCSes are a honking great idea, and they're starting to be really
|
||||
powerful when applied to free softwares. I mean: if you can't see a project,
|
||||
it will be hard to contribute to it. And, I don't think anyone wants to
|
||||
contribute to something closed/proprietary, <em>just for fun</em>. Or maybe am I
|
||||
missing something.</p>
|
||||
<p>Maybe it's a kind of revolution, about free and open source softwares (<a class="reference external" href="http://en.wikipedia.org/wiki/Free_and_open_source_software">FOSS</a>),
|
||||
that is going on. I really like to know I have my word to say about the changes
|
||||
in the tools I use, and to know that I can make them evolve.</p>
|
||||
<p>Let's take an example. Imagine I'm using a web framework on daily basis, as a
|
||||
part of my job as a web developer. I do like using an open source software
|
||||
because I know how it's working, and because I know that I can interact with the
|
||||
authors of the framework while they're doing the changes on it.</p>
|
||||
<p>That's communication, nothing more, and of course I can do that with an internal
|
||||
proprietary solution, but it will cost me <strong>a lot</strong> more time, for a dead-simple
|
||||
reason: a company is not as big and powerful as a community can be: it will cost
|
||||
time to work on this framework, resources to maintain it, fix bugs etc.</p>
|
||||
<p>Well, I'm starting advocating here about Free and Open Source Softwares use on
|
||||
companies, what is a bit beyond the scope of this article, so let's back to
|
||||
our DVCSes and new social related tools.</p>
|
||||
<p>If I find a bug in this framework, while working, I have the possibility to
|
||||
go and talk with the creators of the framework, to open a ticket, and even to
|
||||
make a fix for it, because I've access to the source code. If I want to create a
|
||||
new feature, I just have to fork it, hack it, and then publish my code to have
|
||||
feedback of the community.</p>
|
||||
<p>My fix/work will benefit to all the people (and maybe others companies) working
|
||||
with this framework, and it's a way to prove the community that my company is
|
||||
enough skilled to make code-fixes to the framework, so that's all good !</p>
|
||||
</div>
|
||||
<div class="section" id="what-s-next">
|
||||
<h2>What's next ?</h2>
|
||||
<p>I hope those social coding platforms are only the begining of a new area. I hope
|
||||
they will make people realize what the power of the community is, and how easily
|
||||
they can becomes part of it.</p>
|
||||
<p>If you're not using them right now, maybe you should do so: have a
|
||||
look on how the programs you're using are made, consider publishing your
|
||||
experimentations, and share them with others, you will see, it's kind of
|
||||
addictive !</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "fork-you-or-how-the-social-coding-can-help-you.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
173
help-me-to-go-to-the-distutils2-paris-sprint.html
Normal file
173
help-me-to-go-to-the-distutils2-paris-sprint.html
Normal file
|
@ -0,0 +1,173 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Help me to go to the distutils2 paris' sprint</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Help me to go to the distutils2 paris' sprint">Help me to go to the distutils2 paris' sprint</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-01-15T00:00:00">
|
||||
Sat 15 January 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p><strong>Edit: Thanks to logilab and some amazing people, I can make it to paris for the
|
||||
sprint. Many thanks to them for the support!</strong></p>
|
||||
<p>There will be a distutils2 sprint from the 27th to the 30th of january, thanks
|
||||
to logilab which will host the event.</p>
|
||||
<p>You can find more informations about the sprint on the wiki page of the event
|
||||
(<a class="reference external" href="http://wiki.python.org/moin/Distutils/SprintParis">http://wiki.python.org/moin/Distutils/SprintParis</a>).</p>
|
||||
<p>I really want to go there but I'm unfortunately blocked in UK for money reasons.
|
||||
The cheapest two ways I've found is about £80, which I can't afford.
|
||||
Following some advices on #distutils, I've set up a ChipIn account for that, so
|
||||
if some people want to help me making it to go there, they can give me some
|
||||
money that way.</p>
|
||||
<p>I'll probably work on the installer (to support old distutils and
|
||||
setuptools distributions) and on the uninstaller (depending on the first
|
||||
task). If I can't make it to paris, I'll hang around on IRC to give some help
|
||||
while needed.</p>
|
||||
<p>If you want to contribute some money to help me go there, feel free to use this
|
||||
chipin page: <a class="reference external" href="http://ametaireau.chipin.com/distutils2-sprint-in-paris">http://ametaireau.chipin.com/distutils2-sprint-in-paris</a></p>
|
||||
<p>Thanks for your support !</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "help-me-to-go-to-the-distutils2-paris-sprint.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
202
how-to-install-nginx-php-53-on-freebsd.html
Normal file
202
how-to-install-nginx-php-53-on-freebsd.html
Normal file
|
@ -0,0 +1,202 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>How to install NGINX + PHP 5.3 on FreeBSD.</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li class="active"><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to How to install NGINX + PHP 5.3 on FreeBSD.">How to install NGINX + PHP 5.3 on FreeBSD.</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-10T00:00:00">
|
||||
Sun 10 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/system.html">system</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I've not managed so far to get completely rid of php, so here's a simple
|
||||
reminder about how to install php on NGINX, for FreeBSD. Nothing hard, but
|
||||
that's worse to have the piece of configuration somewhere !</p>
|
||||
<pre class="literal-block">
|
||||
# update the ports
|
||||
$ portsnap fetch update
|
||||
|
||||
# install php5 port
|
||||
$ make config-recursive -C /usr/ports/lang/php5-extensions
|
||||
$ make package-recursive -C /usr/ports/lang/php5-extensions
|
||||
|
||||
# install nginx
|
||||
$ make config-recursive -C /usr/ports/www/nginx-devel
|
||||
$ make package-recursive -C /usr/ports/www/nginx-devel
|
||||
</pre>
|
||||
<p>Now we have all the dependencies installed, we need to configure a bit the
|
||||
server.</p>
|
||||
<p>That's a simple thing in fact, but it could be good to have something that will
|
||||
work without effort over time.</p>
|
||||
<p>Here's a sample of my configuration:</p>
|
||||
<pre class="literal-block">
|
||||
server {
|
||||
server_name ndd;
|
||||
set $path /path/to/your/files;
|
||||
root $path;
|
||||
|
||||
location / {
|
||||
index index.php;
|
||||
}
|
||||
|
||||
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
|
||||
access_log off;
|
||||
expires 30d;
|
||||
}
|
||||
|
||||
location ~ .php$ {
|
||||
fastcgi_param SCRIPT_FILENAME $path$fastcgi_script_name;
|
||||
fastcgi_pass backend;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
upstream backend {
|
||||
server 127.0.0.1:9000;
|
||||
}
|
||||
</pre>
|
||||
<p>And that's it !</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "how-to-install-nginx-php-53-on-freebsd.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
204
how-to-reboot-your-bebox-using-the-cli.html
Normal file
204
how-to-reboot-your-bebox-using-the-cli.html
Normal file
|
@ -0,0 +1,204 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>How to reboot your bebox using the CLI</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to How to reboot your bebox using the CLI">How to reboot your bebox using the CLI</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-21T00:00:00">
|
||||
Thu 21 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I've an internet connection which, for some obscure reasons, tend to be very
|
||||
slow from time to time. After rebooting the box (yes, that's a hard solution),
|
||||
all the things seems to go fine again.</p>
|
||||
<div class="section" id="edit-using-grep">
|
||||
<h2>EDIT : Using grep</h2>
|
||||
<p>After a bit of reflexion, that's also really easy to do using directly the
|
||||
command line tools curl, grep and tail (but really harder to read).</p>
|
||||
<div class="highlight"><pre>curl -X POST -u joel:joel http://bebox.config/cgi/b/info/restart/<span class="se">\?</span>be<span class="se">\=</span>0<span class="se">\&</span>l0<span class="se">\=</span>1<span class="se">\&</span>l1<span class="se">\=</span>0<span class="se">\&</span>tid<span class="se">\=</span>RESTART -d <span class="s2">"0=17&2=`curl -u joel:joel http://bebox.config/cgi/b/info/restart/\?be\=0\&l0\=1\&l1\=0\&tid\=RESTART | grep -o "</span><span class="nv">name</span><span class="o">=</span><span class="s1">'2'</span> <span class="nv">value</span><span class="o">=</span><span class="err">'</span><span class="o">[</span>0-9<span class="o">]</span><span class="se">\+</span><span class="s2">" | grep -o "</span><span class="o">[</span>0-9<span class="o">]</span><span class="se">\+</span><span class="s2">" | tail -n 1`&1"</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="the-python-version">
|
||||
<h2>The Python version</h2>
|
||||
<p>Well, that's not the optimal solution, that's a bit "gruik", but it works.</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">urllib2</span>
|
||||
<span class="kn">import</span> <span class="nn">urlparse</span>
|
||||
<span class="kn">import</span> <span class="nn">re</span>
|
||||
<span class="kn">import</span> <span class="nn">argparse</span>
|
||||
|
||||
<span class="n">REBOOT_URL</span> <span class="o">=</span> <span class="s">'/b/info/restart/?be=0&l0=1&l1=0&tid=RESTART'</span>
|
||||
<span class="n">BOX_URL</span> <span class="o">=</span> <span class="s">'http://bebox.config/cgi'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">open_url</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">username</span><span class="p">,</span> <span class="n">password</span><span class="p">):</span>
|
||||
<span class="n">passman</span> <span class="o">=</span> <span class="n">urllib2</span><span class="o">.</span><span class="n">HTTPPasswordMgrWithDefaultRealm</span><span class="p">()</span>
|
||||
<span class="n">passman</span><span class="o">.</span><span class="n">add_password</span><span class="p">(</span><span class="bp">None</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">username</span><span class="p">,</span> <span class="n">password</span><span class="p">)</span>
|
||||
<span class="n">authhandler</span> <span class="o">=</span> <span class="n">urllib2</span><span class="o">.</span><span class="n">HTTPBasicAuthHandler</span><span class="p">(</span><span class="n">passman</span><span class="p">)</span>
|
||||
|
||||
<span class="n">opener</span> <span class="o">=</span> <span class="n">urllib2</span><span class="o">.</span><span class="n">build_opener</span><span class="p">(</span><span class="n">authhandler</span><span class="p">)</span>
|
||||
|
||||
<span class="n">urllib2</span><span class="o">.</span><span class="n">install_opener</span><span class="p">(</span><span class="n">opener</span><span class="p">)</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">urllib2</span><span class="o">.</span><span class="n">urlopen</span><span class="p">(</span><span class="n">url</span><span class="p">)</span><span class="o">.</span><span class="n">read</span><span class="p">()</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">reboot</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">username</span><span class="p">,</span> <span class="n">password</span><span class="p">):</span>
|
||||
<span class="n">data</span> <span class="o">=</span> <span class="n">open_url</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">username</span><span class="p">,</span> <span class="n">password</span><span class="p">)</span>
|
||||
<span class="n">token</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">findall</span><span class="p">(</span><span class="s">"name\=</span><span class="se">\\</span><span class="s">'2</span><span class="se">\\</span><span class="s">' value=</span><span class="se">\\</span><span class="s">'([0-9]+)</span><span class="se">\\</span><span class="s">'"</span><span class="p">,</span> <span class="n">data</span><span class="p">)[</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">urllib2</span><span class="o">.</span><span class="n">urlopen</span><span class="p">(</span><span class="n">urllib2</span><span class="o">.</span><span class="n">Request</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="n">url</span><span class="p">,</span> <span class="n">data</span><span class="o">=</span><span class="s">'0=17&2=</span><span class="si">%s</span><span class="s">&1'</span> <span class="o">%</span> <span class="n">token</span><span class="p">))</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">__file__</span> <span class="o">==</span> <span class="s">'__main__'</span><span class="p">:</span>
|
||||
<span class="n">parser</span> <span class="o">=</span> <span class="n">argparse</span><span class="o">.</span><span class="n">ArgumentParser</span><span class="p">(</span><span class="n">description</span><span class="o">=</span><span class="s">"""Reboot your bebox !"""</span><span class="p">)</span>
|
||||
|
||||
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="n">dest</span><span class="o">=</span><span class="s">'user'</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s">'username'</span><span class="p">)</span>
|
||||
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="n">dest</span><span class="o">=</span><span class="s">'password'</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s">'password'</span><span class="p">)</span>
|
||||
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="n">boxurl</span><span class="o">=</span><span class="s">'boxurl'</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="n">BOX_URL</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s">'Base box url. Default is </span><span class="si">%s</span><span class="s">'</span> <span class="o">%</span> <span class="n">BOX_URL</span><span class="p">)</span>
|
||||
|
||||
<span class="n">args</span> <span class="o">=</span> <span class="n">parser</span><span class="o">.</span><span class="n">parse_args</span><span class="p">()</span>
|
||||
<span class="n">url</span> <span class="o">=</span> <span class="n">urlparse</span><span class="o">.</span><span class="n">urljoin</span><span class="p">(</span><span class="n">args</span><span class="o">.</span><span class="n">boxurl</span><span class="p">,</span> <span class="n">REBOOT_URL</span><span class="p">)</span>
|
||||
<span class="n">reboot</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">args</span><span class="o">.</span><span class="n">username</span><span class="p">,</span> <span class="n">args</span><span class="o">.</span><span class="n">password</span><span class="p">)</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "how-to-reboot-your-bebox-using-the-cli.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
1097
index.html
Normal file
1097
index.html
Normal file
File diff suppressed because it is too large
Load diff
274
introducing-the-distutils2-index-crawlers.html
Normal file
274
introducing-the-distutils2-index-crawlers.html
Normal file
|
@ -0,0 +1,274 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Introducing the distutils2 index crawlers</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Introducing the distutils2 index crawlers">Introducing the distutils2 index crawlers</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-07-06T00:00:00">
|
||||
Tue 06 July 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I'm working for about a month for distutils2, even if I was being a
|
||||
bit busy (as I had some class courses and exams to work on)</p>
|
||||
<p>I'll try do sum-up my general feelings here, and the work I've made
|
||||
so far. You can also find, if you're interested, my weekly
|
||||
summaries in
|
||||
<a class="reference external" href="http://wiki.notmyidea.org/distutils2_schedule">a dedicated wiki page</a>.</p>
|
||||
<div class="section" id="general-feelings">
|
||||
<h2>General feelings</h2>
|
||||
<p>First, and it's a really important point, the GSoC is going very
|
||||
well, for me as for other students, at least from my perspective.
|
||||
It's a pleasure to work with such enthusiast people, as this make
|
||||
the global atmosphere very pleasant to live.</p>
|
||||
<p>First of all, I've spent time to read the existing codebase, and to
|
||||
understand what we're going to do, and what's the rationale to do
|
||||
so.</p>
|
||||
<p>It's really clear for me now: what we're building is the
|
||||
foundations of a packaging infrastructure in python. The fact is
|
||||
that many projects co-exists, and comes all with their good
|
||||
concepts. Distutils2 tries to take the interesting parts of all,
|
||||
and to provide it in the python standard libs, respecting the
|
||||
recently written PEP about packaging.</p>
|
||||
<p>With distutils2, it will be simpler to make "things" compatible. So
|
||||
if you think about a new way to deal with distributions and
|
||||
packaging in python, you can use the Distutils2 APIs to do so.</p>
|
||||
</div>
|
||||
<div class="section" id="tasks">
|
||||
<h2>Tasks</h2>
|
||||
<p>My main task while working on distutils2 is to provide an
|
||||
installation and an un-installation command, as described in PEP
|
||||
376. For this, I first need to get informations about the existing
|
||||
distributions (what's their version, name, metadata, dependencies,
|
||||
etc.)</p>
|
||||
<p>The main index, you probably know and use, is PyPI. You can access
|
||||
it at <a class="reference external" href="http://pypi.python.org">http://pypi.python.org</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="pypi-index-crawling">
|
||||
<h2>PyPI index crawling</h2>
|
||||
<p>There is two ways to get these informations from PyPI: using the
|
||||
simple API, or via xml-rpc calls.</p>
|
||||
<p>A goal was to use the version specifiers defined
|
||||
in`PEP 345 <<a class="reference external" href="http://www.python.org/dev/peps/pep-0345/">http://www.python.org/dev/peps/pep-0345/</a>>`_ and to
|
||||
provides a way to sort the grabbed distributions depending our
|
||||
needs, to pick the version we want/need.</p>
|
||||
<div class="section" id="using-the-simple-api">
|
||||
<h3>Using the simple API</h3>
|
||||
<p>The simple API is composed of HTML pages you can access at
|
||||
<a class="reference external" href="http://pypi.python.org/simple/">http://pypi.python.org/simple/</a>.</p>
|
||||
<p>Distribute and Setuptools already provides a crawler for that, but
|
||||
it deals with their internal mechanisms, and I found that the code
|
||||
was not so clear as I want, that's why I've preferred to pick up
|
||||
the good ideas, and some implementation details, plus re-thinking
|
||||
the global architecture.</p>
|
||||
<p>The rules are simple: each project have a dedicated page, which
|
||||
allows us to get informations about:</p>
|
||||
<ul class="simple">
|
||||
<li>the distribution download locations (for some versions)</li>
|
||||
<li>homepage links</li>
|
||||
<li>some other useful informations, as the bugtracker address, for
|
||||
instance.</li>
|
||||
</ul>
|
||||
<p>If you want to find all the distributions of the "EggsAndSpam"
|
||||
project, you could do the following (do not take so attention to
|
||||
the names here, as the API will probably change a bit):</p>
|
||||
<div class="highlight"><pre><span class="o">>>></span> <span class="n">index</span> <span class="o">=</span> <span class="n">SimpleIndex</span><span class="p">()</span>
|
||||
<span class="o">>>></span> <span class="n">index</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="s">"EggsAndSpam"</span><span class="p">)</span>
|
||||
<span class="p">[</span><span class="n">EggsAndSpam</span> <span class="mf">1.1</span><span class="p">,</span> <span class="n">EggsAndSpam</span> <span class="mf">1.2</span><span class="p">,</span> <span class="n">EggsAndSpam</span> <span class="mf">1.3</span><span class="p">]</span>
|
||||
</pre></div>
|
||||
<p>We also could use version specifiers:</p>
|
||||
<div class="highlight"><pre><span class="o">>>></span> <span class="n">index</span><span class="o">.</span><span class="n">find</span><span class="p">(</span><span class="s">"EggsAndSpam (< =1.2)"</span><span class="p">)</span>
|
||||
<span class="p">[</span><span class="n">EggsAndSpam</span> <span class="mf">1.1</span><span class="p">,</span> <span class="n">EggsAndSpam</span> <span class="mf">1.2</span><span class="p">]</span>
|
||||
</pre></div>
|
||||
<p>Internally, what's done here is the following:</p>
|
||||
<ul class="simple">
|
||||
<li>it process the
|
||||
<a class="reference external" href="http://pypi.python.org/simple/FooBar/">http://pypi.python.org/simple/FooBar/</a>
|
||||
page, searching for download URLs.</li>
|
||||
<li>for each found distribution download URL, it creates an object,
|
||||
containing informations about the project name, the version and the
|
||||
URL where the archive remains.</li>
|
||||
<li>it sort the found distributions, using version numbers. The
|
||||
default behavior here is to prefer source distributions (over
|
||||
binary ones), and to rely on the last "final" distribution (rather
|
||||
than beta, alpha etc. ones)</li>
|
||||
</ul>
|
||||
<p>So, nothing hard or difficult here.</p>
|
||||
<p>We provides a bunch of other features, like relying on the new PyPI
|
||||
mirroring infrastructure or filter the found distributions by some
|
||||
criterias. If you're curious, please browse the
|
||||
<a class="reference external" href="http://distutils2.notmyidea.org/">distutils2 documentation</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="using-xml-rpc">
|
||||
<h3>Using xml-rpc</h3>
|
||||
<p>We also can make some xmlrpc calls to retreive informations from
|
||||
PyPI. It's a really more reliable way to get informations from from
|
||||
the index (as it's just the index that provides the informations),
|
||||
but cost processes on the PyPI distant server.</p>
|
||||
<p>For now, this way of querying the xmlrpc client is not available on
|
||||
Distutils2, as I'm working on it. The main pieces are already
|
||||
present (I'll reuse some work I've made from the SimpleIndex
|
||||
querying, and
|
||||
<a class="reference external" href="http://github.com/ametaireau/pypiclient">some code already set up</a>),
|
||||
what I need to do is to provide a xml-rpc PyPI mock server, and
|
||||
that's on what I'm actually working on.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="processes">
|
||||
<h2>Processes</h2>
|
||||
<p>For now, I'm trying to follow the "documentation, then test, then
|
||||
code" path, and that seems to be really needed while working with a
|
||||
community. Code is hard to read/understand, compared to
|
||||
documentation, and it's easier to change.</p>
|
||||
<p>While writing the simple index crawling work, I must have done this
|
||||
to avoid some changes on the API, and some loss of time.</p>
|
||||
<p>Also, I've set up
|
||||
<a class="reference external" href="http://wiki.notmyidea.org/distutils2_schedule">a schedule</a>, and
|
||||
the goal is to be sure everything will be ready in time, for the
|
||||
end of the summer. (And now, I need to learn to follow schedules
|
||||
...)</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "introducing-the-distutils2-index-crawlers.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
215
le-temps-des-graces-courrez-y.html
Normal file
215
le-temps-des-graces-courrez-y.html
Normal file
|
@ -0,0 +1,215 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Le temps des grâces, courrez-y !</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li class="active"><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Le temps des grâces, courrez-y !">Le temps des grâces, courrez-y !</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-03-28T00:00:00">
|
||||
Sun 28 March 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/asso.html">asso</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Ouf, notre
|
||||
<a class="reference external" href="http://www.reseaugrappe.org">semaine de l'environnement</a> s'est
|
||||
terminée, après un peu de neige et un brin de soleil quand il en
|
||||
fallait.</p>
|
||||
<p>Ce fut l'occasion de rencontrer beaucoup de gens biens, et
|
||||
de regarder d'un peu plus près toutes ces problématiques qui
|
||||
mériteraient à elles seules, chacune un billet. Après un répis
|
||||
d'une semaine, pour récupérer des folies organisatrices (c'est ça
|
||||
qui fait du bien, ceci dit -- les folies, pas le repos), je me
|
||||
retrouve de nouveau sur ces mêms réflexions, grâce aux journées
|
||||
organisées par
|
||||
<a class="reference external" href="http://www.fne.asso.fr/">France Nature Environnement</a>, qui
|
||||
proposaient ce jeudi soir une projection de "Le temps des grâces",
|
||||
un documentaire sur l'agriculture.</p>
|
||||
<p>Parce que depuis 60 ans, il est pratiqué le remembrement des
|
||||
parcelles à gogo, parce que nos sols deviennent completement morts
|
||||
à cause des tonnes d'intrants qu'on leur fait absorber, et parce
|
||||
que les exploitations s'agrandissent sans en finir pour tenter de
|
||||
réagir façe à un marché financier toujours plus insaisissable, mené
|
||||
de très loin par la PAC, il fallait un film pour en parler. C'est
|
||||
ce que fait "le temps des grâçes", avec un bon sens et une facilité
|
||||
à faire passer des messages, qu'on ne peut qu'applaudir.</p>
|
||||
<p>Malheureusement il s'agissait de la dernière diffusion à
|
||||
<a class="reference external" href="http://www.cinemas-utopia.org/toulouse/">L'Utopia de Toulouse</a>...
|
||||
Si vous en avez l'occasion, sautez dessus et profitez le temps de
|
||||
ces 2 heures, ou vous pourrez écouter à la fois des discours
|
||||
d'agronomes, d'agriculteurs, de chercheurs et bien d'autres, qui
|
||||
dressent un constat pas si brillant de notre agriculture. On n'est
|
||||
pas sorti de l'auberge, enfin, c'est l'expression.</p>
|
||||
<p>Je vous laisse avec le synopsis et une bande annonce.</p>
|
||||
<blockquote>
|
||||
Une enquête documentaire sur
|
||||
le monde agricole français aujourd'hui à travers de nombreux récits
|
||||
: agriculteurs, chercheurs, agronomes, écrivains... Un monde qui
|
||||
parvient à résister aux bouleversements qui le frappent -
|
||||
économiques, scientifiques, sociaux - et qui, bon gré mal gré,
|
||||
continue d'entretenir les liens entre générations. Un monde au
|
||||
centre d'interrogations majeures sur l'avenir.</blockquote>
|
||||
<p>Ainsi qu'un commentaire que je ne peux m'empécher de relayer,
|
||||
trouvé sur allocine.fr (oui, vous savez, ce site rempli de pubs).</p>
|
||||
<blockquote>
|
||||
Le temps des grâces c'est je pense le plus grand film traitant de
|
||||
l'écologie en tant que documentaire ou en sujet principal, on y
|
||||
apprend une multitude de choses, on en ressort en colère contre le
|
||||
système, le film propose différents points de vues, ici on a pas de
|
||||
voix off moralisatrice à deux balles avec des gros titres bien
|
||||
surlignés pour que même les beaufs matant TF1 puissent comprendre,
|
||||
ici même si ça reste accessible au citoyen lambda, le film ne fait
|
||||
pas de compromis avec le monde agroalimentaire, il ose dénoncer les
|
||||
filière d'agronomie qui apprennent pas les bonnes choses à leurs
|
||||
étudiants, aux lobbys de cette agro-industrie qui n'en fait qu'à sa
|
||||
tête pour amasser de l'argent, cette tendance à tout uniformiser et
|
||||
détruire… Franchement j'ai trouvé ça génial de bout en bout,
|
||||
captivant, on explore cette campagne française, on comprend les
|
||||
dilemmes des paysants. Le film n'étant pas opposé à la modernité,
|
||||
ni même réactionnaire, il propose juste un constat alarmant du
|
||||
monde agricole français, tout en proposant des alternatives qui
|
||||
pourraient être utilisée, si les pouvoirs publics lâchaient un peu
|
||||
la main des lobbys. Passionnant, vraiment.</blockquote>
|
||||
<p>Courrez-y, je vous dis.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "le-temps-des-graces-courrez-y.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
163
pages/projects.html
Normal file
163
pages/projects.html
Normal file
|
@ -0,0 +1,163 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>projects</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1 class="entry-title">projects</h1>
|
||||
|
||||
<p>On my spare time, I contribute to open source projets, and hack a bit python,
|
||||
django and php.</p>
|
||||
<p>You can find all the projects I am involoved (sic!) with
|
||||
<a class="reference external" href="http://github.com/ametaireau">on my github page</a></p>
|
||||
<div class="section" id="python">
|
||||
<h2>Python</h2>
|
||||
<p>Since I've discovered python in the late 2009, I really like the simplicity it
|
||||
brings to the development. Here are some of the projects I've done using it:</p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference external" href="http://alexis.notmyidea.org/pelican">pelican</a>, A simple static blog
|
||||
generator, which is used to see this page.</li>
|
||||
<li><a class="reference external" href="http://github.com/ametaireau/gnome-background-generator">gnome-background-generator</a> A set of tools to
|
||||
dynamically switch your background wallpaper on GNOME.</li>
|
||||
<li>I've done a Google Summer of Code on <a class="reference external" href="http://distutils2.notmyidea.org">distutils2</a>,
|
||||
the packaging tool for python, and try to use some of my spare time to contribute.
|
||||
Packaging is a really useful thing, and distutils2 tries to make it simpler
|
||||
and to build a framework every python packaging tool can use.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="django">
|
||||
<h2>Django</h2>
|
||||
<p>Django is a web framework written in python. I've been working on it while in
|
||||
internship at <a class="reference external" href="http://makina-corpus.com">makina corpus</a>. And also tries to
|
||||
use them for my web related projects.</p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference external" href="http://www.bisonvert.net">bison vert</a>, a carpooling system.</li>
|
||||
<li><a class="reference external" href="http://dropit.notmyidea.org">dropit</a>, a note management project, using the
|
||||
power if CouchDB.</li>
|
||||
<li><a class="reference external" href="http://bitbucket.org/bisonvert/django-oauthclient">django-oauth-client</a> ,
|
||||
a django application to simplify the tree-legged-authentication process.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="php">
|
||||
<h2>PHP</h2>
|
||||
<p>I've started programming with PHP, it was my third first language
|
||||
(the first two ones being pascal and visual basic).</p>
|
||||
<p>I've written a <a class="reference external" href="http://bitbucket.org/ametaireau/spiral-di">dependency injection container</a> and
|
||||
<a class="reference external" href="http://www.spiral-project.org">spiral</a>, a web framework in PHP 5.3, with
|
||||
a friend.</p>
|
||||
<p>I've also contributed (a bit) to <a class="reference external" href="http://www.jelix.org">jelix</a>, another PHP
|
||||
framework.</p>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
172
pelican-9-months-later.html
Normal file
172
pelican-9-months-later.html
Normal file
|
@ -0,0 +1,172 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Pelican, 9 months later</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Pelican, 9 months later">Pelican, 9 months later</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-07-25T00:00:00">
|
||||
Mon 25 July 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href="./tag/pelican.html">pelican</a><a href="./tag/python.html">python</a><a href="./tag/open source.html">open source</a><a href="./tag/nice story.html">nice story</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Back in October, I released <a class="reference external" href="http://docs.notmyidea.org/alexis/pelican">pelican</a>,
|
||||
a little piece of code I wrote to power this weblog. I had simple needs: I wanted
|
||||
to be able to use my text editor of choice (vim), a vcs (mercurial) and
|
||||
restructured text. I started to write a really simple blog engine
|
||||
in something like a hundred python lines and released it on github.</p>
|
||||
<p>And people started contributing. I wasn't at all expecting to see people
|
||||
interested in such a little piece of code, but it turned out that they were.
|
||||
I refactored the code to make it evolve a bit more by two times and eventually,
|
||||
in 9 months, got 49 forks, 139 issues and 73 pull requests.</p>
|
||||
<p><strong>Which is clearly awesome.</strong></p>
|
||||
<p>I pulled features such as translations, tag
|
||||
clouds, integration with different services such as twitter or piwik, import
|
||||
from dotclear and rss, fixed
|
||||
a number of mistakes and improved a lot the codebase. This was a proof that
|
||||
there is a bunch of people that are willing to make better softwares just for
|
||||
the sake of fun.</p>
|
||||
<p>Thank you, guys, you're why I like open source so much.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "pelican-9-months-later.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
216
pelican-a-simple-static-blog-generator-in-python.html
Normal file
216
pelican-a-simple-static-blog-generator-in-python.html
Normal file
|
@ -0,0 +1,216 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Pelican, a simple static blog generator in python</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Pelican, a simple static blog generator in python">Pelican, a simple static blog generator in python</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-10-06T00:00:00">
|
||||
Wed 06 October 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Those days, I've wrote a little python application to fit my blogging needs.
|
||||
I'm an occasional blogger, a vim lover, I like restructured text and DVCSes, so
|
||||
I've made a little tool that makes good use of all that.</p>
|
||||
<p><a class="reference external" href="http://alexis.notmyidea.org/pelican/">Pelican</a> (for calepin) is just a simple tool to generate your blog as static
|
||||
files, letting you using your editor of choice (vim!). It's easy to extend,
|
||||
and has a template support (via jinja2).</p>
|
||||
<p>I've made it to fit <em>my</em> needs. I hope it will fit yours, but maybe it wont, and
|
||||
it have not be designed to feet everyone's needs.</p>
|
||||
<p>Need an example ? You're looking at it ! This weblog is using pelican to be
|
||||
generated, also for the atom feeds.</p>
|
||||
<p>I've released it under AGPL, since I want all the modifications to be profitable
|
||||
to all the users.</p>
|
||||
<p>You can find a mercurial repository to fork at <a class="reference external" href="http://hg.lolnet.org/pelican/">http://hg.lolnet.org/pelican/</a>,
|
||||
feel free to hack it !</p>
|
||||
<p>If you just want to get started, use your installer of choice (pip, easy_install, …)
|
||||
And then have a look to the help (<cite>pelican --help</cite>)</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>pip install pelican
|
||||
</pre></div>
|
||||
<div class="section" id="usage">
|
||||
<h2>Usage</h2>
|
||||
<p>Here's a sample usage of pelican</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>pelican .
|
||||
writing /home/alexis/projets/notmyidea.org/output/index.html
|
||||
writing /home/alexis/projets/notmyidea.org/output/tags.html
|
||||
writing /home/alexis/projets/notmyidea.org/output/categories.html
|
||||
writing /home/alexis/projets/notmyidea.org/output/archives.html
|
||||
writing /home/alexis/projets/notmyidea.org/output/category/python.html
|
||||
writing
|
||||
/home/alexis/projets/notmyidea.org/output/pelican-a-simple-static-blog-generator-in-python.html
|
||||
Done !
|
||||
</pre></div>
|
||||
<p>You also can use the <cite>--help</cite> option for the command line to get more
|
||||
informations</p>
|
||||
<div class="highlight"><pre><span class="nv">$pelican</span> --help
|
||||
usage: pelican <span class="o">[</span>-h<span class="o">]</span> <span class="o">[</span>-t TEMPLATES<span class="o">]</span> <span class="o">[</span>-o OUTPUT<span class="o">]</span> <span class="o">[</span>-m MARKUP<span class="o">]</span> <span class="o">[</span>-s SETTINGS<span class="o">]</span> <span class="o">[</span>-b<span class="o">]</span>
|
||||
path
|
||||
|
||||
A tool to generate a static blog, with restructured text input files.
|
||||
|
||||
positional arguments:
|
||||
path Path where to find the content files <span class="o">(</span>default is
|
||||
<span class="s2">"content"</span><span class="o">)</span>.
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this <span class="nb">help </span>message and <span class="nb">exit</span>
|
||||
-t TEMPLATES, --templates-path TEMPLATES
|
||||
Path where to find the templates. If not specified,
|
||||
will uses the ones included with pelican.
|
||||
-o OUTPUT, --output OUTPUT
|
||||
Where to output the generated files. If not specified,
|
||||
a directory will be created, named <span class="s2">"output"</span> in the
|
||||
current path.
|
||||
-m MARKUP, --markup MARKUP
|
||||
the markup language to use. Currently only
|
||||
ReSTreucturedtext is available.
|
||||
-s SETTINGS, --settings SETTINGS
|
||||
the settings of the application. Default to None.
|
||||
-b, --debug
|
||||
</pre></div>
|
||||
<p>Enjoy :)</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "pelican-a-simple-static-blog-generator-in-python.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
248
pypi-on-couchdb.html
Normal file
248
pypi-on-couchdb.html
Normal file
|
@ -0,0 +1,248 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>PyPI on CouchDB</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to PyPI on CouchDB">PyPI on CouchDB</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-01-20T00:00:00">
|
||||
Thu 20 January 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>By now, there are two ways to retrieve data from PyPI (the Python Package
|
||||
Index). You can both rely on xml/rpc or on the "simple" API. The simple
|
||||
API is not so simple to use as the name suggest, and have several existing
|
||||
drawbacks.</p>
|
||||
<p>Basically, if you want to use informations coming from the simple API, you will
|
||||
have to parse web pages manually, to extract informations using some black
|
||||
vodoo magic. Badly, magic have a price, and it's sometimes impossible to get
|
||||
exactly the informations you want to get from this index. That's the technique
|
||||
currently being used by distutils2, setuptools and pip.</p>
|
||||
<p>On the other side, while XML/RPC is working fine, it's requiring extra work
|
||||
to the python servers each time you request something, which can lead to
|
||||
some outages from time to time. Also, it's important to point out that, even if
|
||||
PyPI have a mirroring infrastructure, it's only for the so-called <em>simple</em> API,
|
||||
and not for the XML/RPC.</p>
|
||||
<div class="section" id="couchdb">
|
||||
<h2>CouchDB</h2>
|
||||
<p>Here comes CouchDB. CouchDB is a document oriented database, that
|
||||
knows how to speak REST and JSON. It's easy to use, and provides out of the box
|
||||
a replication mechanism.</p>
|
||||
</div>
|
||||
<div class="section" id="so-what">
|
||||
<h2>So, what ?</h2>
|
||||
<p>Hmm, I'm sure you got it. I've wrote a piece of software to link informations from
|
||||
PyPI to a CouchDB instance. Then you can replicate all the PyPI index with only
|
||||
one HTTP request on the CouchDB server. You can also access the informations
|
||||
from the index directly using a REST API, speaking json. Handy.</p>
|
||||
<p>So PyPIonCouch is using the PyPI XML/RPC API to get data from PyPI, and
|
||||
generate records in the CouchDB instance.</p>
|
||||
<p>The final goal is to avoid to rely on this "simple" API, and rely on a REST
|
||||
insterface instead. I have set up a couchdb server on my server, which is
|
||||
available at <a class="reference external" href="http://couchdb.notmyidea.org/_utils/database.html?pypi">http://couchdb.notmyidea.org/_utils/database.html?pypi</a>.</p>
|
||||
<p>There is not a lot to
|
||||
see there for now, but I've done the first import from PyPI yesterday and all
|
||||
went fine: it's possible to access the metadata of all PyPI projects via a REST
|
||||
interface. Next step is to write a client for this REST interface in
|
||||
distutils2.</p>
|
||||
</div>
|
||||
<div class="section" id="example">
|
||||
<h2>Example</h2>
|
||||
<p>For now, you can use pypioncouch via the command line, or via the python API.</p>
|
||||
<div class="section" id="using-the-command-line">
|
||||
<h3>Using the command line</h3>
|
||||
<p>You can do something like that for a full import. This <strong>will</strong> take long,
|
||||
because it's fetching all the projects at pypi and importing their metadata:</p>
|
||||
<pre class="literal-block">
|
||||
$ pypioncouch --fullimport http://your.couchdb.instance/
|
||||
</pre>
|
||||
<p>If you already have the data on your couchdb instance, you can just update it
|
||||
with the last informations from pypi. <strong>However, I recommend to just replicate
|
||||
the principal node, hosted at http://couchdb.notmyidea.org/pypi/</strong>, to avoid
|
||||
the duplication of nodes:</p>
|
||||
<pre class="literal-block">
|
||||
$ pypioncouch --update http://your.couchdb.instance/
|
||||
</pre>
|
||||
<p>The principal node is updated once a day by now, I'll try to see if it's
|
||||
enough, and ajust with the time.</p>
|
||||
</div>
|
||||
<div class="section" id="using-the-python-api">
|
||||
<h3>Using the python API</h3>
|
||||
<p>You can also use the python API to interact with pypioncouch:</p>
|
||||
<pre class="literal-block">
|
||||
>>> from pypioncouch import XmlRpcImporter, import_all, update
|
||||
>>> full_import()
|
||||
>>> update()
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="what-s-next">
|
||||
<h2>What's next ?</h2>
|
||||
<p>I want to make a couchapp, in order to navigate PyPI easily. Here are some of
|
||||
the features I want to propose:</p>
|
||||
<ul class="simple">
|
||||
<li>List all the available projects</li>
|
||||
<li>List all the projects, filtered by specifiers</li>
|
||||
<li>List all the projects by author/maintainer</li>
|
||||
<li>List all the projects by keywords</li>
|
||||
<li>Page for each project.</li>
|
||||
<li>Provide a PyPI "Simple" API equivalent, even if I want to replace it, I do
|
||||
think it will be really easy to setup mirrors that way, with the out of the
|
||||
box couchdb replication</li>
|
||||
</ul>
|
||||
<p>I also still need to polish the import mechanism, so I can directly store in
|
||||
couchdb:</p>
|
||||
<ul class="simple">
|
||||
<li>The OPML files for each project</li>
|
||||
<li>The upload_time as couchdb friendly format (list of int)</li>
|
||||
<li>The tags as lists (currently it's only a string separated by spaces</li>
|
||||
</ul>
|
||||
<p>The work I've done by now is available on
|
||||
<a class="reference external" href="https://bitbucket.org/ametaireau/pypioncouch/">https://bitbucket.org/ametaireau/pypioncouch/</a>. Keep in mind that it's still
|
||||
a work in progress, and everything can break at any time. However, any feedback
|
||||
will be appreciated !</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "pypi-on-couchdb.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
256
python-go.html
Normal file
256
python-go.html
Normal file
|
@ -0,0 +1,256 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Python ? go !</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Python ? go !">Python ? go !</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2009-12-17T00:00:00">
|
||||
Thu 17 December 2009
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Cela fait maintenant un peu plus d'un mois que je travaille sur un
|
||||
projet en <a class="reference external" href="http://www.djangoproject.org">django</a>, et que,
|
||||
nécessairement, je me forme à <a class="reference external" href="http://python.org/">Python</a>. Je
|
||||
prends un plaisir non dissimulé à découvrir ce langage (et à
|
||||
l'utiliser), qui ne cesse de me surprendre. Les premiers mots qui
|
||||
me viennent à l'esprit à propos de Python, sont "logique" et
|
||||
"simple". Et pourtant puissant pour autant. Je ne manque d'ailleurs
|
||||
pas une occasion pour faire un peu d'<em>évangélisation</em> auprès des
|
||||
quelques personnes qui veulent bien m'écouter.</p>
|
||||
<div class="section" id="the-zen-of-python">
|
||||
<h2>The Zen of Python</h2>
|
||||
<p>Avant toute autre chose, je pense utile de citer Tim Peters, et
|
||||
<a class="reference external" href="http://www.python.org/dev/peps/pep-0020/">le PEP20</a>, qui
|
||||
constituent une très bonne introduction au langage, qui prends la
|
||||
forme d'un <em>easter egg</em> présent dans python</p>
|
||||
<div class="highlight"><pre>>>> import this
|
||||
The Zen of Python, by Tim Peters
|
||||
|
||||
Beautiful is better than ugly.
|
||||
Explicit is better than implicit.
|
||||
Simple is better than complex.
|
||||
Complex is better than complicated.
|
||||
Flat is better than nested.
|
||||
Sparse is better than dense.
|
||||
Readability counts.
|
||||
Special cases aren<span class="s1">'t special enough to break the rules.</span>
|
||||
<span class="s1">Although practicality beats purity.</span>
|
||||
<span class="s1">Errors should never pass silently.</span>
|
||||
<span class="s1">Unless explicitly silenced.</span>
|
||||
<span class="s1">In the face of ambiguity, refuse the temptation to guess.</span>
|
||||
<span class="s1">There should be one-- and preferably only one --obvious way to do it.</span>
|
||||
<span class="s1">Although that way may not be obvious at first unless you'</span>re Dutch.
|
||||
Now is better than never.
|
||||
Although never is often better than *right* now.
|
||||
If the implementation is hard to explain, it<span class="s1">'s a bad idea.</span>
|
||||
<span class="s1">If the implementation is easy to explain, it may be a good idea.</span>
|
||||
<span class="s1">Namespaces are one honking great idea -- let'</span>s <span class="k">do </span>more of those!
|
||||
</pre></div>
|
||||
<p>J'ai la vague impression que c'est ce que j'ai toujours cherché à
|
||||
faire en PHP, et particulièrement dans
|
||||
<a class="reference external" href="http://www.spiral-project.org">le framework Spiral</a>, mais en
|
||||
ajoutant ces concepts dans une sur-couche au langage. Ici, c'est
|
||||
directement de <em>l'esprit</em> de python qu'il s'agit, ce qui signifie
|
||||
que la plupart des bibliothèques python suivent ces concepts. Elle
|
||||
est pas belle la vie ?</p>
|
||||
</div>
|
||||
<div class="section" id="comment-commencer-et-par-ou">
|
||||
<h2>Comment commencer, et par ou ?</h2>
|
||||
<p>Pour ma part, j'ai commencé par la lecture de quelques livres et
|
||||
articles intéressants, qui constituent une bonne entrée en matière
|
||||
sur le sujet (La liste n'est bien évidemment pas exhaustive et vos
|
||||
commentaires sont les bienvenus) :</p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference external" href="http://diveintopython.adrahon.org/">Dive into python</a></li>
|
||||
<li><a class="reference external" href="http://www.swaroopch.com/notes/Python_fr:Table_des_Matières">A byte of python</a></li>
|
||||
<li><a class="reference external" href="http://www.amazon.fr/Python-Petit-guide-lusage-développeur/dp/2100508830">Python: petit guide à l'usage du développeur agile</a>
|
||||
de <a class="reference external" href="http://tarekziade.wordpress.com/">Tarek Ziadé</a></li>
|
||||
<li><a class="reference external" href="http://docs.python.org/index.html">La documentation officielle python</a>,
|
||||
bien sûr !</li>
|
||||
<li><a class="reference external" href="http://video.pycon.fr/videos/pycon-fr-2009/">Les vidéos du pyconfr 2009</a>!</li>
|
||||
<li>Un peu de temps, et une console python ouverte :)</li>
|
||||
</ul>
|
||||
<p>J'essaye par ailleurs de partager au maximum les ressources que je
|
||||
trouve de temps à autres, que ce soit
|
||||
<a class="reference external" href="http://www.twitter.com/ametaireau">via twitter</a> ou
|
||||
<a class="reference external" href="http://delicious.com/ametaireau">via mon compte delicious</a>.
|
||||
Allez jeter un œil
|
||||
<a class="reference external" href="http://delicious.com/ametaireau/python">au tag python</a> sur mon
|
||||
profil, peut être que vous trouverez des choses intéressantes, qui
|
||||
sait!</p>
|
||||
</div>
|
||||
<div class="section" id="un-python-sexy">
|
||||
<h2>Un python sexy</h2>
|
||||
<p>Quelques fonctionnalités qui devraient vous mettre l'eau à la
|
||||
bouche:</p>
|
||||
<ul class="simple">
|
||||
<li><a class="reference external" href="http://docs.python.org/library/stdtypes.html#comparisons">Le chaînage des opérateurs de comparaison</a>
|
||||
est possible (a<b <c dans une condition)</li>
|
||||
<li>Assignation de valeurs multiples (il est possible de faire a,b,c
|
||||
= 1,2,3 par exemple)</li>
|
||||
<li><a class="reference external" href="http://docs.python.org/tutorial/datastructures.html">Les listes</a>
|
||||
sont simples à manipuler !</li>
|
||||
<li>Les <a class="reference external" href="http://docs.python.org/tutorial/datastructures.html#list-comprehensions">list comprehension</a>,
|
||||
ou comment faire des opérations complexes sur les listes, de
|
||||
manière simple.</li>
|
||||
<li>Les
|
||||
<a class="reference external" href="http://docs.python.org/library/doctest.html?highlight=doctest">doctests</a>:
|
||||
ou comment faire des tests directement dans la documentation de vos
|
||||
classes, tout en la documentant avec de vrais exemples.</li>
|
||||
<li>Les
|
||||
<a class="reference external" href="http://www.python.org/doc/essays/metaclasses/meta-vladimir.txt">métaclasses</a>,
|
||||
ou comment contrôler la manière dont les classes se construisent</li>
|
||||
<li>Python est
|
||||
<a class="reference external" href="http://wiki.python.org/moin/Why%20is%20Python%20a%20dynamic%20language%20and%20also%20a%20strongly%20typed%20language">un langage à typage fort dynamique</a>:
|
||||
c'est ce qui m'agaçait avec PHP qui est un langage à typage faible
|
||||
dynamique.</li>
|
||||
</ul>
|
||||
<p>Cous pouvez également aller regarder
|
||||
<a class="reference external" href="http://video.pycon.fr/videos/free/53/">l'atelier donné par Victor Stinner durant le Pyconfr 09</a>.
|
||||
Have fun !</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "python-go.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
195
semaine-de-lenvironnement-la-consommation-etudiante.html
Normal file
195
semaine-de-lenvironnement-la-consommation-etudiante.html
Normal file
|
@ -0,0 +1,195 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Semaine de l’environnement: La consommation étudiante</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li class="active"><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Semaine de l’environnement: La consommation étudiante">Semaine de l’environnement: La consommation étudiante</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-02-24T00:00:00">
|
||||
Wed 24 February 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/asso.html">asso</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Les acteurs associatifs sont bien souvent moteurs des critiques de nos sociétés. Je pense à <a class="reference external" href="http://www.framasoft.net/">Framasoft</a>, à <a class="reference external" href="http://www.laquadrature.net/">la Quadrature du net</a> ou à <a class="reference external" href="http://www.arsindustrialis.org/">Ars Industrialis</a> (dans le domaine de la science et de l'informatique), mais aussi <a class="reference external" href="http://www.amisdelaterre.org/">aux Amis de la Terre</a>, à <a class="reference external" href="http://www.attac.org/">ATTAC</a> (dans le domaine de l'environnement entres autres), et a tout un tas d'autres associations que je ne peux pas citer ici exhaustivement... Ce sont eux qui sont porteurs de messages alternatifs, et qui sont les initiateurs de débats publics, qui permettent de faire avancer des thématiques aussi importantes que le logiciel libre ou la protection de l'environnement.</p>
|
||||
<p>Dans cette optique, depuis près de 3 ans (déjà !), au sein du
|
||||
<a class="reference external" href="http://www.reseaugrappe.org">réseau GRAPPE</a>, on <em>essaye</em>
|
||||
d'aborder des thématiques qui touchent de près ou de loin à
|
||||
l'environnement, parce que c'est un sujet qui nous importe et nous
|
||||
passionne. L'année dernière, c'était l'alimentation étudiante, ce
|
||||
qui à abouti à la publication de
|
||||
<a class="reference external" href="http://public.reseaugrappe.org/alimentation.pdf">la revue "les étudiants se mettent à table"</a>.
|
||||
Cette année c'est la consommation étudiante qui est au programme.</p>
|
||||
<div class="section" id="la-consommation-etudiante">
|
||||
<h2>La consommation étudiante ?</h2>
|
||||
<p>L'idée principale de cette étude est de tenter de faire une analyse
|
||||
de la "société de consommation", souvent questionnée par les
|
||||
étudiants et par d'autres, et de jeter un œil sur le rapport des
|
||||
étudiants à cette société: Quoi et comment consomment-ils ? Les
|
||||
universités et les écoles ne poussent-elles pas d’une certaine
|
||||
manière les étudiants à la consommation ? Quelles sont les
|
||||
alternatives face aux dérives de surconsommation ?</p>
|
||||
<blockquote>
|
||||
Analyse des pratiques, réflexions et mobilisations des étudiants en
|
||||
termes de consommation seront réalisés pour comprendre leur modes
|
||||
de vie, mais aussi leurs attentes, leurs propositions sur cette
|
||||
thématique</blockquote>
|
||||
</div>
|
||||
<div class="section" id="la-semaine-de-l-environnement">
|
||||
<h2>La semaine de l'environnement !</h2>
|
||||
<p>A travers l'ensemble des villes du réseau,
|
||||
des projections de films et des débats auront donc lieu sur ce
|
||||
thème, lors de la semaine de l'environnement 2010, qui se déroulera
|
||||
d'ailleurs durant le mois de Mars
|
||||
<a class="reference external" href="http://www.reseaugrappe.org/la-semaine-de-lenvironnement-programme/">partout en france</a>,
|
||||
et <strong>du 6 au 14 Mars sur Toulouse</strong>.
|
||||
<a class="reference external" href="http://docs.notmyidea.org/sde/prog-toulouse.pdf">Jetez un oeil au programme</a>
|
||||
! Avec pour objectif de sonder un peu le ressenti des étudiants en
|
||||
terme de consommation, nous avons mis en place
|
||||
<a class="reference external" href="http://spreadsheets.google.com/viewform?formkey=dHV2bVllS2lWbzhyV3NBN3NUbi1TM2c6MA">un questionnaire en ligne</a>,
|
||||
que vous pouvez compléter en une petite 10aine de minutes,
|
||||
n'hésitez pas !
|
||||
<a class="reference external" href="http://www.reseaugrappe.org/consommation/">La page sur la consommation étudiante sur le site du GRAPPE</a></p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "semaine-de-lenvironnement-la-consommation-etudiante.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
236
sprinting-on-distutils2-in-tours.html
Normal file
236
sprinting-on-distutils2-in-tours.html
Normal file
|
@ -0,0 +1,236 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Sprinting on distutils2 in Tours</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Sprinting on distutils2 in Tours">Sprinting on distutils2 in Tours</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-07-06T00:00:00">
|
||||
Tue 06 July 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Yesterday, as I was traveling to Tours, I've took some time to
|
||||
visit Éric, another student who's working on distutils2 this
|
||||
summer, as a part of the GSoC. Basically, it was to take a drink,
|
||||
discuss a bit about distutils2, our respective tasks and general
|
||||
feelings, and to put a face on a pseudonym. I'd really enjoyed this
|
||||
time, because Éric knows a lot of things about mercurial and python
|
||||
good practices, and I'm eager to learn about those. So, we have
|
||||
discussed about things, have not wrote so much code, but have some
|
||||
things to propose so far, about documentation, and I also provides
|
||||
here some bribes of conversations we had.</p>
|
||||
<div class="section" id="documentation">
|
||||
<h2>Documentation</h2>
|
||||
<p>While writing the PyPI simple index crawler documentation, I
|
||||
realized that we miss some structure, or how-to about the
|
||||
documentation. Yep, you read well. We lack documentation on how to
|
||||
make documentation. Heh. We're missing some rules to follow, and
|
||||
this lead to a not-so-structured final documentation. We probably
|
||||
target three type of publics, and we can split the documentation
|
||||
regarding those:</p>
|
||||
<ul class="simple">
|
||||
<li><strong>Packagers</strong> who want to distribute their softwares.</li>
|
||||
<li><strong>End users</strong> who need to understand how to use end user
|
||||
commands, like the installer/uninstaller</li>
|
||||
<li><strong>packaging coders</strong> who <em>use</em> distutils2, as a base for
|
||||
building a package manager.</li>
|
||||
</ul>
|
||||
<p>We also need to discuss about a pattern to follow while writing
|
||||
documentation. How many parts do we need ? Where to put the API
|
||||
description ? etc. That's maybe seems to be not so important, but I
|
||||
guess the readers would appreciate to have the same structure all
|
||||
along distutils2 documentation.</p>
|
||||
</div>
|
||||
<div class="section" id="mercurial">
|
||||
<h2>Mercurial</h2>
|
||||
<p>I'm really <em>not</em> a mercurial power user. I use it on daily basis,
|
||||
but I lack of basic knowledge about it. Big thanks Éric for sharing
|
||||
yours with me, you're of a great help. We have talked about some
|
||||
mercurial extensions that seems to make the life simpler, while
|
||||
used the right way. I've not used them so far, so consider this as
|
||||
a personal note.</p>
|
||||
<ul class="simple">
|
||||
<li>hg histedit, to edit the history</li>
|
||||
<li>hg crecord, to select the changes to commit</li>
|
||||
</ul>
|
||||
<p>We have spent some time to review a merge I made sunday, to
|
||||
re-merge it, and commit the changes as a new changeset. Awesome.
|
||||
These things make me say I <strong>need</strong> to read
|
||||
<a class="reference external" href="http://hgbook.red-bean.com/read/">the hg book</a>, and will do as
|
||||
soon as I got some spare time: mercurial seems to be simply great.
|
||||
So ... Great. I'm a powerful merger now !</p>
|
||||
</div>
|
||||
<div class="section" id="on-using-tools">
|
||||
<h2>On using tools</h2>
|
||||
<p>Because we <em>also</em> are <em>hackers</em>, we have shared a bit our ways to
|
||||
code, the tools we use, etc. Both of us were using vim, and I've
|
||||
discovered vimdiff and hgtk, which will completely change the way I
|
||||
navigate into the mercurial history. We aren't "power users", so we
|
||||
have learned from each other about vim tips. You can find
|
||||
<a class="reference external" href="http://github.com/ametaireau/dotfiles">my dotfiles on github</a>,
|
||||
if it could help. They're not perfect, and not intended to be,
|
||||
because changing all the time, as I learn. Don't hesitate to have a
|
||||
look, and to propose enhancements if you have !</p>
|
||||
</div>
|
||||
<div class="section" id="on-being-pythonic">
|
||||
<h2>On being pythonic</h2>
|
||||
<p>My background as an old Java user disserves me so far, as the
|
||||
paradigms are not the same while coding in python. Hard to find the
|
||||
more pythonic way to do, and sometimes hard to unlearn my way to
|
||||
think about software engineering. Well, it seems that the only
|
||||
solution is to read code, and to re-read import this from times to
|
||||
times !
|
||||
<a class="reference external" href="http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html">Coding like a pythonista</a>
|
||||
seems to be a must-read, so, I know what to do.</p>
|
||||
</div>
|
||||
<div class="section" id="conclusion">
|
||||
<h2>Conclusion</h2>
|
||||
<p>It was really great. Next time, we'll need to focus a bit more on
|
||||
distutils2, and to have a bullet list of things to do, but days
|
||||
like this one are opportunities to catch ! We'll probably do
|
||||
another sprint in a few weeks, stay tuned !</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "sprinting-on-distutils2-in-tours.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
static/images/unison.png
Normal file
BIN
static/images/unison.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
329
tag/browsers.html
Normal file
329
tag/browsers.html
Normal file
|
@ -0,0 +1,329 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - browsers</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html">Analyse users' browsing context to build up a web recommender</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-04-01T00:00:00">
|
||||
Fri 01 April 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/recommendations.html">recommendations</a><a href=".././tag/browsers.html">browsers</a><a href=".././tag/users.html">users</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>No, this is not an april's fool ;)</p>
|
||||
<p>Wow, it's been a long time. My year in Oxford is going really well. I realized
|
||||
few days ago that the end of the year is approaching really quickly.
|
||||
Exams are coming in one month or such and then I'll be working full time on my dissertation topic.</p>
|
||||
<p>When I learned we'll have about 6 month to work on something, I first thought
|
||||
about doing a packaging related stuff, but finally decided to start something
|
||||
new. After all, that's the good time to learn.</p>
|
||||
<p>Since a long time, I'm being impressed by the <a class="reference external" href="http://last.fm">last.fm</a>
|
||||
recommender system. They're <em>scrobbling</em> the music I listen to since something
|
||||
like 5 years now and the recommendations they're doing are really nice and
|
||||
accurate (I discovered <strong>a lot</strong> of great artists listening to the
|
||||
"neighbour radio".) (by the way, <a class="reference external" href="http://lastfm.com/user/akounet/">here is</a>
|
||||
my lastfm account)</p>
|
||||
<p>So I decided to work on recommender systems, to better understand what is it
|
||||
about.</p>
|
||||
<p>Recommender systems are usually used to increase the sales of products
|
||||
(like Amazon.com does) which is not really what I'm looking for (The one who
|
||||
know me a bit know I'm kind of sick about all this consumerism going on).</p>
|
||||
<p>Actually, the most simple thing I thought of was the web: I'm browsing it quite
|
||||
every day and each time new content appears. I've stopped to follow <a class="reference external" href="https://bitbucket.org/bruno/aspirator/">my feed
|
||||
reader</a> because of the
|
||||
information overload, and reduced drastically the number of people I follow <a class="reference external" href="http://twitter.com/ametaireau/">on
|
||||
twitter</a>.</p>
|
||||
<p>Too much information kills the information.</p>
|
||||
<p>You shall got what will be my dissertation topic: a recommender system for
|
||||
the web. Well, such recommender systems already exists, so I will try to add contextual
|
||||
information to them: you're probably not interested by the same topics at different
|
||||
times of the day, or depending on the computer you're using. We can also
|
||||
probably make good use of the way you browse to create groups into the content
|
||||
you're browsing (or even use the great firefox4 tab group feature).</p>
|
||||
<p>There is a large part of concerns to have about user's privacy as well.</p>
|
||||
<p>Here is my proposal (copy/pasted from the one I had to do for my master)</p>
|
||||
<div class="section" id="introduction-and-rationale">
|
||||
<h2>Introduction and rationale</h2>
|
||||
<p>Nowadays, people surf the web more and more often. New web pages are created
|
||||
each day so the amount of information to retrieve is more important as the time
|
||||
passes. These users uses the web in different contexts, from finding cooking
|
||||
recipes to technical articles.</p>
|
||||
<p>A lot of people share the same interest to various topics, and the quantity of
|
||||
information is such than it's really hard to triage them efficiently without
|
||||
spending hours doing it. Firstly because of the huge quantity of information
|
||||
but also because the triage is something relative to each person. Although, this
|
||||
triage can be facilitated by fetching the browsing information of all
|
||||
particular individuals and put the in perspective.</p>
|
||||
<p>Machine learning is a branch of Artificial Intelligence (AI) which deals with how
|
||||
a program can learn from data. Recommendation systems are a particular
|
||||
application area of machine learning which is able to recommend things (links
|
||||
in our case) to the users, given a particular database containing the previous
|
||||
choices users have made.</p>
|
||||
<p>This browsing information is currently available in browsers. Even if it is not
|
||||
in a very usable format, it is possible to transform it to something useful.
|
||||
This information gold mine just wait to be used. Although, it is not as simple as
|
||||
it can seems at the first approach: It is important to take care of the context
|
||||
the user is in while browsing links. For instance, It's more likely that during
|
||||
the day, a computer scientist will browse computing related links, and that during
|
||||
the evening, he browse cooking recipes or something else.</p>
|
||||
<p>Page contents are also interesting to analyse, because that's what people
|
||||
browse and what actually contain the most interesting part of the information.
|
||||
The raw data extracted from the browsing can then be translated into
|
||||
something more useful (namely tags, type of resource, visit frequency,
|
||||
navigation context etc.)</p>
|
||||
<p>The goal of this dissertation is to create a recommender system for web links,
|
||||
including this context information.</p>
|
||||
<p>At the end of the dissertation, different pieces of software will be provided,
|
||||
from raw data collection from the browser to a recommendation system.</p>
|
||||
</div>
|
||||
<div class="section" id="background-review">
|
||||
<h2>Background Review</h2>
|
||||
<p>This dissertation is mainly about data extraction, analysis and recommendation
|
||||
systems. Two different research area can be isolated: Data preprocessing and
|
||||
Information filtering.</p>
|
||||
<p>The first step in order to make recommendations is to gather some data. The
|
||||
more data we have available, the better it is (T. Segaran, 2007). This data can
|
||||
be retrieved in various ways, one of them is to get it directly from user's
|
||||
browsers.</p>
|
||||
<div class="section" id="data-preparation-and-extraction">
|
||||
<h3>Data preparation and extraction</h3>
|
||||
<p>The data gathered from browsers is basically URLs and additional information
|
||||
about the context of the navigation. There is clearly a need to extract more
|
||||
information about the meaning of the data the user is browsing, starting by the
|
||||
content of the web pages.</p>
|
||||
<p>Because the information provided on the current Web is not meant to be read by
|
||||
machines (T. Berners Lee, 2001) there is a need of tools to extract meaning from
|
||||
web pages. The information needs to be preprocessed before stored in a machine
|
||||
readable format, allowing to make recommendations (Choochart et Al, 2004).</p>
|
||||
<p>Data preparation is composed of two steps: cleaning and structuring (
|
||||
Castellano et Al, 2007). Because raw data can contain a lot of un-needed text
|
||||
(such as menus, headers etc.) and need to be cleaned prior to be stored.
|
||||
Multiple techniques can be used here and belongs to boilerplate removal and
|
||||
full text extraction (Kohlschütter et Al, 2010).</p>
|
||||
<p>Then, structuring the information: category, type of content (news, blog, wiki)
|
||||
can be extracted from raw data. This kind of information is not clearly defined
|
||||
by HTML pages so there is a need of tools to recognise them.</p>
|
||||
<p>Some context-related information can also be inferred from each resource. It can go
|
||||
from the visit frequency to the navigation group the user was in while
|
||||
browsing. It is also possible to determine if the user "liked" a resource, and
|
||||
determine a mark for it, which can be used by information filtering a later
|
||||
step (T. Segaran, 2007).</p>
|
||||
<p>At this stage, structuring the data is required. Storing this kind of
|
||||
information in RDBMS can be a bit tedious and require complex queries to get
|
||||
back the data in an usable format. Graph databases can play a major role in the
|
||||
simplification of information storage and querying.</p>
|
||||
</div>
|
||||
<div class="section" id="information-filtering">
|
||||
<h3>Information filtering</h3>
|
||||
<p>To filter the information, three techniques can be used (Balabanovic et
|
||||
Al, 1997):</p>
|
||||
<ul class="simple">
|
||||
<li>The content-based approach states that if an user have liked something in the
|
||||
past, he is more likely to like similar things in the future. So it's about
|
||||
establishing a profile for the user and compare new items against it.</li>
|
||||
<li>The collaborative approach will rather recommend items that other similar users
|
||||
have liked. This approach consider only the relationship between users, and
|
||||
not the profile of the user we are making recommendations to.</li>
|
||||
<li>the hybrid approach, which appeared recently combine both of the previous
|
||||
approaches, giving recommendations when items score high regarding user's
|
||||
profile, or if a similar user already liked it.</li>
|
||||
</ul>
|
||||
<p>Grouping is also something to consider at this stage (G. Myatt, 2007).
|
||||
Because we are dealing with huge amount of data, it can be useful to detect group
|
||||
of data that can fit together. Data clustering is able to find such groups (T.
|
||||
Segaran, 2007).</p>
|
||||
<p>References:</p>
|
||||
<ul class="simple">
|
||||
<li>Balabanović, M., & Shoham, Y. (1997). Fab: content-based, collaborative
|
||||
recommendation. Communications of the ACM, 40(3), 66–72. ACM.
|
||||
Retrieved March 1, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=245108.245124&amp">http://portal.acm.org/citation.cfm?id=245108.245124&amp</a>;.</li>
|
||||
<li>Berners-Lee, T., Hendler, J., & Lassila, O. (2001).
|
||||
The semantic web: Scientific american. Scientific American, 284(5), 34–43.
|
||||
Retrieved November 21, 2010, from <a class="reference external" href="http://www.citeulike.org/group/222/article/1176986">http://www.citeulike.org/group/222/article/1176986</a>.</li>
|
||||
<li>Castellano, G., Fanelli, A., & Torsello, M. (2007).
|
||||
LODAP: a LOg DAta Preprocessor for mining Web browsing patterns. Proceedings of the 6th Conference on 6th WSEAS Int. Conf. on Artificial Intelligence, Knowledge Engineering and Data Bases-Volume 6 (p. 12–17). World Scientific and Engineering Academy and Society (WSEAS). Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1348485.1348488">http://portal.acm.org/citation.cfm?id=1348485.1348488</a>.</li>
|
||||
<li>Kohlschutter, C., Fankhauser, P., & Nejdl, W. (2010). Boilerplate detection using shallow text features. Proceedings of the third ACM international conference on Web search and data mining (p. 441–450). ACM. Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1718542">http://portal.acm.org/citation.cfm?id=1718542</a>.</li>
|
||||
<li>Myatt, G. J. (2007). Making Sense of Data: A Practical Guide to Exploratory
|
||||
Data Analysis and Data Mining.</li>
|
||||
<li>Segaran, T. (2007). Collective Intelligence.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="privacy">
|
||||
<h2>Privacy</h2>
|
||||
<p>The first thing that's come to people minds when it comes to process their
|
||||
browsing data is privacy. People don't want to be stalked. That's perfectly
|
||||
right, and I don't either.</p>
|
||||
<p>But such a system don't have to deal with people identities. It's completely
|
||||
possible to process completely anonymous data, and that's probably what I'm
|
||||
gonna do.</p>
|
||||
<p>By the way, if you have interesting thoughts about that, if you do know
|
||||
projects that do seems related, fire the comments !</p>
|
||||
</div>
|
||||
<div class="section" id="what-s-the-plan">
|
||||
<h2>What's the plan ?</h2>
|
||||
<p>There is a lot of different things to explore, especially because I'm
|
||||
a complete novice in that field.</p>
|
||||
<ul class="simple">
|
||||
<li>I want to develop a firefox plugin, to extract the browsing informations (
|
||||
still, I need to know exactly which kind of informations to retrieve). The
|
||||
idea is to provide some <em>raw</em> browsing data, and then to transform it and to
|
||||
store it in the better possible way.</li>
|
||||
<li>Analyse how to store the informations in a graph database. What can be the
|
||||
different methods to store this data and to visualize the relationship
|
||||
between different pieces of data? How can I define the different contexts,
|
||||
and add those informations in the db?</li>
|
||||
<li>Process the data using well known recommendation algorithms. Compare the
|
||||
results and criticize their value.</li>
|
||||
</ul>
|
||||
<p>There is plenty of stuff I want to try during this experimentation:</p>
|
||||
<ul class="simple">
|
||||
<li>I want to try using Geshi to visualize the connexion between the links,
|
||||
and the contexts</li>
|
||||
<li>Try using graph databases such as Neo4j</li>
|
||||
<li>Having a deeper look at tools such as scikit.learn (a machine learning
|
||||
toolkit in python)</li>
|
||||
<li>Analyse web pages in order to categorize them. Processing their
|
||||
contents as well, to do some keyword based classification will be done.</li>
|
||||
</ul>
|
||||
<p>Lot of work on its way, yay !</p>
|
||||
</div>
|
||||
<p>There are <a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
190
tag/dbpedia.html
Normal file
190
tag/dbpedia.html
Normal file
|
@ -0,0 +1,190 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - dbpedia</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././using-dbpedia-to-get-languages-influences.html">Using dbpedia to get languages influences</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-08-16T00:00:00">
|
||||
Tue 16 August 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/python.html">python</a>. </p>
|
||||
<p>tags: <a href=".././tag/dbpedia.html">dbpedia</a><a href=".././tag/sparql.html">sparql</a><a href=".././tag/python.html">python</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>While browsing the Python's wikipedia page, I found information about the languages
|
||||
influenced by python, and the languages that influenced python itself.</p>
|
||||
<p>Well, that's kind of interesting to know which languages influenced others,
|
||||
it could even be more interesting to have an overview of the connexion between
|
||||
them, keeping python as the main focus.</p>
|
||||
<p>This information is available on the wikipedia page, but not in a really
|
||||
exploitable format. Hopefully, this information is provided into the
|
||||
information box present on the majority of wikipedia pages. And… guess what?
|
||||
there is project with the goal to scrap and index all this information in
|
||||
a more queriable way, using the semantic web technologies.</p>
|
||||
<p>Well, you may have guessed it, the project in question in dbpedia, and exposes
|
||||
information in the form of RDF triples, which are way more easy to work with
|
||||
than simple HTML.</p>
|
||||
<p>For instance, let's take the page about python:
|
||||
<a class="reference external" href="http://dbpedia.org/page/Python_%28programming_language%29">http://dbpedia.org/page/Python_%28programming_language%29</a></p>
|
||||
<p>The interesting properties here are "Influenced" and "InfluencedBy", which
|
||||
allows us to get a list of languages. Unfortunately, they are not really using
|
||||
all the power of the Semantic Web here, and the list is actually a string with
|
||||
coma separated values in it.</p>
|
||||
<p>Anyway, we can use a simple rule: All wikipedia pages of programming languages
|
||||
are either named after the name of the language itself, or suffixed with "(
|
||||
programming language)", which is the case for python.</p>
|
||||
<p>So I've built <a class="reference external" href="https://github.com/ametaireau/experiments/blob/master/influences/get_influences.py">a tiny script to extract the information from dbpedia</a> and transform them into a shiny graph using graphviz.</p>
|
||||
<p>After a nice:</p>
|
||||
<pre class="literal-block">
|
||||
$ python get_influences.py python dot | dot -Tpng > influences.png
|
||||
</pre>
|
||||
<p>The result is the following graph (<a class="reference external" href="http://files.lolnet.org/alexis/influences.png">see it directly here</a>)</p>
|
||||
<img alt="http://files.lolnet.org/alexis/influences.png" src="http://files.lolnet.org/alexis/influences.png" style="width: 800px;" />
|
||||
<p>While reading this diagram, keep in mind that it is a) not listing all the
|
||||
languages and b) keeping a python perspective.</p>
|
||||
<p>This means that you can trust the scheme by following the arrows from python to
|
||||
something and from something to python, it is not trying to get the matching
|
||||
between all the languages at the same time to keep stuff readable.</p>
|
||||
<p>It would certainly be possible to have all the connections between all
|
||||
languages (and the resulting script would be easier) to do so, but the resulting
|
||||
graph would probably be way less readable.</p>
|
||||
<p>You can find the script <a class="reference external" href="https://github.com/ametaireau/experiments">on my github account</a>. Feel free to adapt it for
|
||||
whatever you want if you feel hackish.</p>
|
||||
<p>There are <a href=".././using-dbpedia-to-get-languages-influences.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
302
tag/freebsd.html
Normal file
302
tag/freebsd.html
Normal file
|
@ -0,0 +1,302 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - freebsd</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html">Working directly on your server? How to backup and sync your dev environment with unison</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-03-16T00:00:00">
|
||||
Wed 16 March 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/system.html">system</a>. </p>
|
||||
<p>tags: <a href=".././tag/freebsd.html">freebsd</a><a href=".././tag/unison.html">unison</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>I have a server running freebsd since some time now, and was wondering about
|
||||
the possibility to directly have a development environment ready to use when
|
||||
I get a internet connexion, even if I'm not on my computer.</p>
|
||||
<p>Since I use vim to code, and spend most of my time in a console while
|
||||
developing, it's possible to work via ssh, from everywhere.</p>
|
||||
<p>The only problem is the synchronisation of the source code, config files etc.
|
||||
from my machine to the server.</p>
|
||||
<p>Unison provides an interesting way to synchronise two folders, even over
|
||||
a network. So let's do it !</p>
|
||||
<div class="section" id="creating-the-jail">
|
||||
<h2>Creating the jail</h2>
|
||||
<p>In case you don't use FreeBSD, you can skip this section.</p>
|
||||
<div class="highlight"><pre><span class="c"># I have a flavour jail named default</span>
|
||||
<span class="nv">$ </span>ezjail-admin -f default workspace.notmyidea.org 172.19.1.6
|
||||
<span class="nv">$ </span>ezjail-admin start workspace.notmyidea.org
|
||||
</pre></div>
|
||||
<p>In my case, because the "default" flavour contains already a lot of interesting
|
||||
things, my jail come already setup with ssh, bash and vim for instance, but
|
||||
maybe you'll need it in your case.</p>
|
||||
<p>I want to be redirected to the ssh of the jail when I connect to the host with
|
||||
the 20006 port. Add lines in <cite>/etc/pf.conf</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
workspace_jail="172.19.1.6"
|
||||
rdr on $ext_if proto tcp from any to $ext_ip port 20006 -> $workspace_jail port 22
|
||||
</pre>
|
||||
<p>Reload packet filter rules</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>/etc/rc.d/pf reload
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="working-with-unison">
|
||||
<h2>Working with unison</h2>
|
||||
<p>Now that we've set up the jail. Set up unison on the server and on your client.
|
||||
Unison is available on the freebsd ports so just install it</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 config-recursive
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 package-recursive
|
||||
</pre></div>
|
||||
<p>Install as well unison on your local machine. Double check to install the same
|
||||
version on the client and on the server. Ubuntu contains the 2.27.57 as well as
|
||||
the 2.32.52.</p>
|
||||
<p>Check that unison is installed and reachable via ssh from your machine</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006 unison -version
|
||||
unison version 2.27.157
|
||||
<span class="nv">$ </span>unison -version
|
||||
unison version 2.27.57
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="let-sync-our-folders">
|
||||
<h2>Let sync our folders</h2>
|
||||
<p>The first thing I want to sync is my vim configuration. Well, it's already <a class="reference external" href="http://github.com/ametaireau/dotfiles/">in
|
||||
a git repository</a> but let's try to use
|
||||
unison for it right now.</p>
|
||||
<p>I have two machines then: <cite>workspace</cite>, the jail, and <cite>ecureuil</cite> my laptop.</p>
|
||||
<div class="highlight"><pre>unison .vim ssh://notmyidea.org:20006/.vim
|
||||
unison .vimrc ssh://notmyidea.org:20006/.vimrc
|
||||
</pre></div>
|
||||
<p>It is also possible to put all the informations in a config file, and then to
|
||||
only run <cite>unison</cite>. (fire up <cite>vim ~/.unison/default.prf</cite>.</p>
|
||||
<p>Here is my config:</p>
|
||||
<pre class="literal-block">
|
||||
root = /home/alexis
|
||||
root = ssh://notmyidea.org:20006
|
||||
|
||||
path = .vimrc
|
||||
path = dotfiles
|
||||
path = dev
|
||||
|
||||
follow = Name *
|
||||
</pre>
|
||||
<p>My vimrc is in fact a symbolic link on my laptop, but I don't want to specify
|
||||
each of the links to unison. That's why the <cite>follow = Name *</cite> is for.</p>
|
||||
<p>The folders you want to synchronize are maybe a bit large. If so, considering
|
||||
others options such as rsync for the first import may be a good idea (I enjoyed
|
||||
my university huge upload bandwith to upload 2GB in 20mn ;)</p>
|
||||
</div>
|
||||
<div class="section" id="run-the-script-frequently">
|
||||
<h2>Run the script frequently</h2>
|
||||
<p>Once that done, you just need to run the unison command line some times when
|
||||
you want to sync your two machines. I've wrote a tiny script to get some
|
||||
feedback from the sync:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">os</span>
|
||||
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
|
||||
|
||||
<span class="n">DEFAULT_LOGFILE</span> <span class="o">=</span> <span class="s">"~/unison.log"</span>
|
||||
<span class="n">PROGRAM_NAME</span> <span class="o">=</span> <span class="s">"Unison syncer"</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">sync</span><span class="p">(</span><span class="n">logfile</span><span class="o">=</span><span class="n">DEFAULT_LOGFILE</span><span class="p">,</span> <span class="n">program_name</span><span class="o">=</span><span class="n">PROGRAM_NAME</span><span class="p">):</span>
|
||||
<span class="c"># init</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
<span class="n">error</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
|
||||
<span class="n">before</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
|
||||
<span class="c"># call unison to make the sync</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'unison -batch > {0}'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
|
||||
<span class="c"># get the duration of the operation</span>
|
||||
<span class="n">td</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="o">-</span> <span class="n">before</span>
|
||||
<span class="n">delta</span> <span class="o">=</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">microseconds</span> <span class="o">+</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">seconds</span> <span class="o">+</span> <span class="n">td</span><span class="o">.</span><span class="n">days</span> <span class="o">*</span> <span class="mi">24</span> <span class="o">*</span> <span class="mi">3600</span><span class="p">)</span> <span class="o">*</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span><span class="p">)</span> <span class="o">/</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span>
|
||||
|
||||
<span class="c"># check what was the last entry in the log</span>
|
||||
<span class="n">log</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">expanduser</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
<span class="n">lines</span> <span class="o">=</span> <span class="n">log</span><span class="o">.</span><span class="n">readlines</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="s">'No updates to propagate'</span> <span class="ow">in</span> <span class="n">lines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]:</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">output</span> <span class="o">=</span> <span class="p">[</span><span class="n">l</span> <span class="k">for</span> <span class="n">l</span> <span class="ow">in</span> <span class="n">lines</span> <span class="k">if</span> <span class="s">"Synchronization"</span> <span class="ow">in</span> <span class="n">l</span><span class="p">]</span>
|
||||
|
||||
<span class="n">message</span> <span class="o">=</span> <span class="n">output</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">message</span> <span class="o">+=</span> <span class="s">" It took {0}s."</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">delta</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">display_message</span><span class="p">:</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'notify-send -i {2} "{0}" "{1}"'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">program_name</span><span class="p">,</span> <span class="n">message</span><span class="p">,</span>
|
||||
<span class="s">'error'</span> <span class="k">if</span> <span class="n">error</span> <span class="k">else</span> <span class="s">'info'</span><span class="p">))</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
|
||||
<span class="n">sync</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>This is probably perfectible, but that does the job.</p>
|
||||
<p>Last step is to tell you machine to run that frequently. That's what <cite>crontab</cite>
|
||||
is made for, so let's <cite>crontab -e</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
$ * */3 * * * . ~/.Xdbus; /usr/bin/python /home/alexis/dev/python/unison-syncer/sync.py
|
||||
</pre>
|
||||
<p>The <cite>~/.Xdbus</cite> allows cron to communicate with your X11 session. Here is its
|
||||
content.</p>
|
||||
<div class="highlight"><pre><span class="c">#!/bin/bash</span>
|
||||
|
||||
<span class="c"># Get the pid of nautilus</span>
|
||||
<span class="nv">nautilus_pid</span><span class="o">=</span><span class="k">$(</span>pgrep -u <span class="nv">$LOGNAME</span> -n nautilus<span class="k">)</span>
|
||||
|
||||
<span class="c"># If nautilus isn't running, just exit silently</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$nautilus_pid"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">exit </span>0
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># Grab the DBUS_SESSION_BUS_ADDRESS variable from nautilus's environment</span>
|
||||
<span class="nb">eval</span> <span class="k">$(</span>tr <span class="s1">'\0'</span> <span class="s1">'\n'</span> < /proc/<span class="nv">$nautilus_pid</span>/environ | grep <span class="s1">'^DBUS_SESSION_BUS_ADDRESS='</span><span class="k">)</span>
|
||||
|
||||
<span class="c"># Check that we actually found it</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$DBUS_SESSION_BUS_ADDRESS"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">echo</span> <span class="s2">"Failed to find bus address"</span> >&2
|
||||
<span class="nb">exit </span>1
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># export it so that child processes will inherit it</span>
|
||||
<span class="nb">export </span>DBUS_SESSION_BUS_ADDRESS
|
||||
</pre></div>
|
||||
<p>And it comes from <a class="reference external" href="http://ubuntuforums.org/showthread.php?p=10148738#post10148738">here</a>.</p>
|
||||
<p>A sync takes about 20s + the upload time on my machine, which stay acceptable for
|
||||
all of my developments.</p>
|
||||
</div>
|
||||
<p>There are <a href=".././working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
221
tag/java.html
Normal file
221
tag/java.html
Normal file
|
@ -0,0 +1,221 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - java</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././using-jpype-to-bridge-python-and-java.html">Using JPype to bridge python and Java</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-06-11T00:00:00">
|
||||
Sat 11 June 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/python.html">python</a><a href=".././tag/java.html">java</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Java provides some interesting libraries that have no exact equivalent in
|
||||
python. In my case, the awesome boilerpipe library allows me to remove
|
||||
uninteresting parts of HTML pages, like menus, footers and other "boilerplate"
|
||||
contents.</p>
|
||||
<p>Boilerpipe is written in Java. Two solutions then: using java from python or
|
||||
reimplement boilerpipe in python. I will let you guess which one I chosen, meh.</p>
|
||||
<p>JPype allows to bridge python project with java libraries. It takes another
|
||||
point of view than Jython: rather than reimplementing python in Java, both
|
||||
languages are interfacing at the VM level. This means you need to start a VM
|
||||
from your python script, but it does the job and stay fully compatible with
|
||||
Cpython and its C extensions.</p>
|
||||
<div class="section" id="first-steps-with-jpype">
|
||||
<h2>First steps with JPype</h2>
|
||||
<p>Once JPype installed (you'll have to hack a bit some files to integrate
|
||||
seamlessly with your system) you can access java classes by doing something
|
||||
like that:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">jpype</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">startJVM</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">getDefaultJVMPath</span><span class="p">())</span>
|
||||
|
||||
<span class="c"># you can then access to the basic java functions</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">java</span><span class="o">.</span><span class="n">lang</span><span class="o">.</span><span class="n">System</span><span class="o">.</span><span class="n">out</span><span class="o">.</span><span class="n">println</span><span class="p">(</span><span class="s">"hello world"</span><span class="p">)</span>
|
||||
|
||||
<span class="c"># and you have to shutdown the VM at the end</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">shutdownJVM</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>Okay, now we have a hello world, but what we want seems somehow more complex.
|
||||
We want to interact with java classes, so we will have to load them.</p>
|
||||
</div>
|
||||
<div class="section" id="interfacing-with-boilerpipe">
|
||||
<h2>Interfacing with Boilerpipe</h2>
|
||||
<p>To install boilerpipe, you just have to run an ant script:</p>
|
||||
<pre class="literal-block">
|
||||
$ cd boilerpipe
|
||||
$ ant
|
||||
</pre>
|
||||
<p>Here is a simple example of how to use boilerpipe in Java, from their sources</p>
|
||||
<div class="highlight"><pre><span class="kn">package</span> <span class="n">de</span><span class="o">.</span><span class="na">l3s</span><span class="o">.</span><span class="na">boilerpipe</span><span class="o">.</span><span class="na">demo</span><span class="o">;</span>
|
||||
<span class="kn">import</span> <span class="nn">java.net.URL</span><span class="o">;</span>
|
||||
<span class="kn">import</span> <span class="nn">de.l3s.boilerpipe.extractors.ArticleExtractor</span><span class="o">;</span>
|
||||
|
||||
<span class="kd">public</span> <span class="kd">class</span> <span class="nc">Oneliner</span> <span class="o">{</span>
|
||||
<span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="kd">final</span> <span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
|
||||
<span class="kd">final</span> <span class="n">URL</span> <span class="n">url</span> <span class="o">=</span> <span class="k">new</span> <span class="n">URL</span><span class="o">(</span><span class="s">"http://notmyidea.org"</span><span class="o">);</span>
|
||||
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="n">ArticleExtractor</span><span class="o">.</span><span class="na">INSTANCE</span><span class="o">.</span><span class="na">getText</span><span class="o">(</span><span class="n">url</span><span class="o">));</span>
|
||||
<span class="o">}</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
<p>To run it:</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>javac -cp dist/boilerpipe-1.1-dev.jar:lib/nekohtml-1.9.13.jar:lib/xerces-2.9.1.jar src/demo/de/l3s/boilerpipe/demo/Oneliner.java
|
||||
<span class="nv">$ </span>java -cp src/demo:dist/boilerpipe-1.1-dev.jar:lib/nekohtml-1.9.13.jar:lib/xerces-2.9.1.jar de.l3s.boilerpipe.demo.Oneliner
|
||||
</pre></div>
|
||||
<p>Yes, this is kind of ugly, sorry for your eyes.
|
||||
Let's try something similar, but from python</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">jpype</span>
|
||||
|
||||
<span class="c"># start the JVM with the good classpaths</span>
|
||||
<span class="n">classpath</span> <span class="o">=</span> <span class="s">"dist/boilerpipe-1.1-dev.jar:lib/nekohtml-1.9.13.jar:lib/xerces-2.9.1.jar"</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">startJVM</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">getDefaultJVMPath</span><span class="p">(),</span> <span class="s">"-Djava.class.path=</span><span class="si">%s</span><span class="s">"</span> <span class="o">%</span> <span class="n">classpath</span><span class="p">)</span>
|
||||
|
||||
<span class="c"># get the Java classes we want to use</span>
|
||||
<span class="n">DefaultExtractor</span> <span class="o">=</span> <span class="n">jpype</span><span class="o">.</span><span class="n">JPackage</span><span class="p">(</span><span class="s">"de"</span><span class="p">)</span><span class="o">.</span><span class="n">l3s</span><span class="o">.</span><span class="n">boilerpipe</span><span class="o">.</span><span class="n">extractors</span><span class="o">.</span><span class="n">DefaultExtractor</span>
|
||||
|
||||
<span class="c"># call them !</span>
|
||||
<span class="k">print</span> <span class="n">DefaultExtractor</span><span class="o">.</span><span class="n">INSTANCE</span><span class="o">.</span><span class="n">getText</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">java</span><span class="o">.</span><span class="n">net</span><span class="o">.</span><span class="n">URL</span><span class="p">(</span><span class="s">"http://blog.notmyidea.org"</span><span class="p">))</span>
|
||||
</pre></div>
|
||||
<p>And you get what you want.</p>
|
||||
<p>I must say I didn't thought it could work so easily. This will allow me to
|
||||
extract text content from URLs and remove the <em>boilerplate</em> text easily
|
||||
for infuse (my master thesis project), without having to write java code, nice!</p>
|
||||
</div>
|
||||
<p>There are <a href=".././using-jpype-to-bridge-python-and-java.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
168
tag/nice story.html
Normal file
168
tag/nice story.html
Normal file
|
@ -0,0 +1,168 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - nice story</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././pelican-9-months-later.html">Pelican, 9 months later</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-07-25T00:00:00">
|
||||
Mon 25 July 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/pelican.html">pelican</a><a href=".././tag/python.html">python</a><a href=".././tag/open source.html">open source</a><a href=".././tag/nice story.html">nice story</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Back in October, I released <a class="reference external" href="http://docs.notmyidea.org/alexis/pelican">pelican</a>,
|
||||
a little piece of code I wrote to power this weblog. I had simple needs: I wanted
|
||||
to be able to use my text editor of choice (vim), a vcs (mercurial) and
|
||||
restructured text. I started to write a really simple blog engine
|
||||
in something like a hundred python lines and released it on github.</p>
|
||||
<p>And people started contributing. I wasn't at all expecting to see people
|
||||
interested in such a little piece of code, but it turned out that they were.
|
||||
I refactored the code to make it evolve a bit more by two times and eventually,
|
||||
in 9 months, got 49 forks, 139 issues and 73 pull requests.</p>
|
||||
<p><strong>Which is clearly awesome.</strong></p>
|
||||
<p>I pulled features such as translations, tag
|
||||
clouds, integration with different services such as twitter or piwik, import
|
||||
from dotclear and rss, fixed
|
||||
a number of mistakes and improved a lot the codebase. This was a proof that
|
||||
there is a bunch of people that are willing to make better softwares just for
|
||||
the sake of fun.</p>
|
||||
<p>Thank you, guys, you're why I like open source so much.</p>
|
||||
<p>There are <a href=".././pelican-9-months-later.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
168
tag/open source.html
Normal file
168
tag/open source.html
Normal file
|
@ -0,0 +1,168 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - open source</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././pelican-9-months-later.html">Pelican, 9 months later</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-07-25T00:00:00">
|
||||
Mon 25 July 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/pelican.html">pelican</a><a href=".././tag/python.html">python</a><a href=".././tag/open source.html">open source</a><a href=".././tag/nice story.html">nice story</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Back in October, I released <a class="reference external" href="http://docs.notmyidea.org/alexis/pelican">pelican</a>,
|
||||
a little piece of code I wrote to power this weblog. I had simple needs: I wanted
|
||||
to be able to use my text editor of choice (vim), a vcs (mercurial) and
|
||||
restructured text. I started to write a really simple blog engine
|
||||
in something like a hundred python lines and released it on github.</p>
|
||||
<p>And people started contributing. I wasn't at all expecting to see people
|
||||
interested in such a little piece of code, but it turned out that they were.
|
||||
I refactored the code to make it evolve a bit more by two times and eventually,
|
||||
in 9 months, got 49 forks, 139 issues and 73 pull requests.</p>
|
||||
<p><strong>Which is clearly awesome.</strong></p>
|
||||
<p>I pulled features such as translations, tag
|
||||
clouds, integration with different services such as twitter or piwik, import
|
||||
from dotclear and rss, fixed
|
||||
a number of mistakes and improved a lot the codebase. This was a proof that
|
||||
there is a bunch of people that are willing to make better softwares just for
|
||||
the sake of fun.</p>
|
||||
<p>Thank you, guys, you're why I like open source so much.</p>
|
||||
<p>There are <a href=".././pelican-9-months-later.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
168
tag/pelican.html
Normal file
168
tag/pelican.html
Normal file
|
@ -0,0 +1,168 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - pelican</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././pelican-9-months-later.html">Pelican, 9 months later</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-07-25T00:00:00">
|
||||
Mon 25 July 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/pelican.html">pelican</a><a href=".././tag/python.html">python</a><a href=".././tag/open source.html">open source</a><a href=".././tag/nice story.html">nice story</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>Back in October, I released <a class="reference external" href="http://docs.notmyidea.org/alexis/pelican">pelican</a>,
|
||||
a little piece of code I wrote to power this weblog. I had simple needs: I wanted
|
||||
to be able to use my text editor of choice (vim), a vcs (mercurial) and
|
||||
restructured text. I started to write a really simple blog engine
|
||||
in something like a hundred python lines and released it on github.</p>
|
||||
<p>And people started contributing. I wasn't at all expecting to see people
|
||||
interested in such a little piece of code, but it turned out that they were.
|
||||
I refactored the code to make it evolve a bit more by two times and eventually,
|
||||
in 9 months, got 49 forks, 139 issues and 73 pull requests.</p>
|
||||
<p><strong>Which is clearly awesome.</strong></p>
|
||||
<p>I pulled features such as translations, tag
|
||||
clouds, integration with different services such as twitter or piwik, import
|
||||
from dotclear and rss, fixed
|
||||
a number of mistakes and improved a lot the codebase. This was a proof that
|
||||
there is a bunch of people that are willing to make better softwares just for
|
||||
the sake of fun.</p>
|
||||
<p>Thank you, guys, you're why I like open source so much.</p>
|
||||
<p>There are <a href=".././pelican-9-months-later.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
273
tag/python.html
Normal file
273
tag/python.html
Normal file
|
@ -0,0 +1,273 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - python</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././using-dbpedia-to-get-languages-influences.html">Using dbpedia to get languages influences</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-08-16T00:00:00">
|
||||
Tue 16 August 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/python.html">python</a>. </p>
|
||||
<p>tags: <a href=".././tag/dbpedia.html">dbpedia</a><a href=".././tag/sparql.html">sparql</a><a href=".././tag/python.html">python</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>While browsing the Python's wikipedia page, I found information about the languages
|
||||
influenced by python, and the languages that influenced python itself.</p>
|
||||
<p>Well, that's kind of interesting to know which languages influenced others,
|
||||
it could even be more interesting to have an overview of the connexion between
|
||||
them, keeping python as the main focus.</p>
|
||||
<p>This information is available on the wikipedia page, but not in a really
|
||||
exploitable format. Hopefully, this information is provided into the
|
||||
information box present on the majority of wikipedia pages. And… guess what?
|
||||
there is project with the goal to scrap and index all this information in
|
||||
a more queriable way, using the semantic web technologies.</p>
|
||||
<p>Well, you may have guessed it, the project in question in dbpedia, and exposes
|
||||
information in the form of RDF triples, which are way more easy to work with
|
||||
than simple HTML.</p>
|
||||
<p>For instance, let's take the page about python:
|
||||
<a class="reference external" href="http://dbpedia.org/page/Python_%28programming_language%29">http://dbpedia.org/page/Python_%28programming_language%29</a></p>
|
||||
<p>The interesting properties here are "Influenced" and "InfluencedBy", which
|
||||
allows us to get a list of languages. Unfortunately, they are not really using
|
||||
all the power of the Semantic Web here, and the list is actually a string with
|
||||
coma separated values in it.</p>
|
||||
<p>Anyway, we can use a simple rule: All wikipedia pages of programming languages
|
||||
are either named after the name of the language itself, or suffixed with "(
|
||||
programming language)", which is the case for python.</p>
|
||||
<p>So I've built <a class="reference external" href="https://github.com/ametaireau/experiments/blob/master/influences/get_influences.py">a tiny script to extract the information from dbpedia</a> and transform them into a shiny graph using graphviz.</p>
|
||||
<p>After a nice:</p>
|
||||
<pre class="literal-block">
|
||||
$ python get_influences.py python dot | dot -Tpng > influences.png
|
||||
</pre>
|
||||
<p>The result is the following graph (<a class="reference external" href="http://files.lolnet.org/alexis/influences.png">see it directly here</a>)</p>
|
||||
<img alt="http://files.lolnet.org/alexis/influences.png" src="http://files.lolnet.org/alexis/influences.png" style="width: 800px;" />
|
||||
<p>While reading this diagram, keep in mind that it is a) not listing all the
|
||||
languages and b) keeping a python perspective.</p>
|
||||
<p>This means that you can trust the scheme by following the arrows from python to
|
||||
something and from something to python, it is not trying to get the matching
|
||||
between all the languages at the same time to keep stuff readable.</p>
|
||||
<p>It would certainly be possible to have all the connections between all
|
||||
languages (and the resulting script would be easier) to do so, but the resulting
|
||||
graph would probably be way less readable.</p>
|
||||
<p>You can find the script <a class="reference external" href="https://github.com/ametaireau/experiments">on my github account</a>. Feel free to adapt it for
|
||||
whatever you want if you feel hackish.</p>
|
||||
<p>There are <a href=".././using-dbpedia-to-get-languages-influences.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<h1>Other articles</h1>
|
||||
<hr />
|
||||
<ol id="posts-list" class="hfeed">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././pelican-9-months-later.html" rel="bookmark" title="Permalink to Pelican, 9 months later">Pelican, 9 months later</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-07-25T00:00:00">
|
||||
Mon 25 July 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/pelican.html">pelican</a><a href=".././tag/python.html">python</a><a href=".././tag/open source.html">open source</a><a href=".././tag/nice story.html">nice story</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Back in October, I released <a class="reference external" href="http://docs.notmyidea.org/alexis/pelican">pelican</a>,
|
||||
a little piece of code I wrote to power this weblog. I had simple needs: I wanted
|
||||
to be able to use my text editor of choice (vim), a vcs (mercurial) and
|
||||
restructured text. I started to write a really simple blog engine
|
||||
in ...</p>
|
||||
<a class="readmore" href=".././pelican-9-months-later.html">read more</a>
|
||||
<p>There are <a href=".././pelican-9-months-later.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li><article class="hentry">
|
||||
<header>
|
||||
<h1><a href=".././using-jpype-to-bridge-python-and-java.html" rel="bookmark" title="Permalink to Using JPype to bridge python and Java">Using JPype to bridge python and Java</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-06-11T00:00:00">
|
||||
Sat 11 June 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/python.html">python</a><a href=".././tag/java.html">java</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Java provides some interesting libraries that have no exact equivalent in
|
||||
python. In my case, the awesome boilerpipe library allows me to remove
|
||||
uninteresting parts of HTML pages, like menus, footers and other "boilerplate"
|
||||
contents.</p>
|
||||
<p>Boilerpipe is written in Java. Two solutions then: using java from python or
|
||||
reimplement boilerpipe ...</p>
|
||||
<a class="readmore" href=".././using-jpype-to-bridge-python-and-java.html">read more</a>
|
||||
<p>There are <a href=".././using-jpype-to-bridge-python-and-java.html#disqus_thread">comments</a>.</p>
|
||||
</div><!-- /.entry-content -->
|
||||
</article></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ol><!-- /#posts-list -->
|
||||
</section><!-- /#content -->
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
329
tag/recommendations.html
Normal file
329
tag/recommendations.html
Normal file
|
@ -0,0 +1,329 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - recommendations</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html">Analyse users' browsing context to build up a web recommender</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-04-01T00:00:00">
|
||||
Fri 01 April 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/recommendations.html">recommendations</a><a href=".././tag/browsers.html">browsers</a><a href=".././tag/users.html">users</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>No, this is not an april's fool ;)</p>
|
||||
<p>Wow, it's been a long time. My year in Oxford is going really well. I realized
|
||||
few days ago that the end of the year is approaching really quickly.
|
||||
Exams are coming in one month or such and then I'll be working full time on my dissertation topic.</p>
|
||||
<p>When I learned we'll have about 6 month to work on something, I first thought
|
||||
about doing a packaging related stuff, but finally decided to start something
|
||||
new. After all, that's the good time to learn.</p>
|
||||
<p>Since a long time, I'm being impressed by the <a class="reference external" href="http://last.fm">last.fm</a>
|
||||
recommender system. They're <em>scrobbling</em> the music I listen to since something
|
||||
like 5 years now and the recommendations they're doing are really nice and
|
||||
accurate (I discovered <strong>a lot</strong> of great artists listening to the
|
||||
"neighbour radio".) (by the way, <a class="reference external" href="http://lastfm.com/user/akounet/">here is</a>
|
||||
my lastfm account)</p>
|
||||
<p>So I decided to work on recommender systems, to better understand what is it
|
||||
about.</p>
|
||||
<p>Recommender systems are usually used to increase the sales of products
|
||||
(like Amazon.com does) which is not really what I'm looking for (The one who
|
||||
know me a bit know I'm kind of sick about all this consumerism going on).</p>
|
||||
<p>Actually, the most simple thing I thought of was the web: I'm browsing it quite
|
||||
every day and each time new content appears. I've stopped to follow <a class="reference external" href="https://bitbucket.org/bruno/aspirator/">my feed
|
||||
reader</a> because of the
|
||||
information overload, and reduced drastically the number of people I follow <a class="reference external" href="http://twitter.com/ametaireau/">on
|
||||
twitter</a>.</p>
|
||||
<p>Too much information kills the information.</p>
|
||||
<p>You shall got what will be my dissertation topic: a recommender system for
|
||||
the web. Well, such recommender systems already exists, so I will try to add contextual
|
||||
information to them: you're probably not interested by the same topics at different
|
||||
times of the day, or depending on the computer you're using. We can also
|
||||
probably make good use of the way you browse to create groups into the content
|
||||
you're browsing (or even use the great firefox4 tab group feature).</p>
|
||||
<p>There is a large part of concerns to have about user's privacy as well.</p>
|
||||
<p>Here is my proposal (copy/pasted from the one I had to do for my master)</p>
|
||||
<div class="section" id="introduction-and-rationale">
|
||||
<h2>Introduction and rationale</h2>
|
||||
<p>Nowadays, people surf the web more and more often. New web pages are created
|
||||
each day so the amount of information to retrieve is more important as the time
|
||||
passes. These users uses the web in different contexts, from finding cooking
|
||||
recipes to technical articles.</p>
|
||||
<p>A lot of people share the same interest to various topics, and the quantity of
|
||||
information is such than it's really hard to triage them efficiently without
|
||||
spending hours doing it. Firstly because of the huge quantity of information
|
||||
but also because the triage is something relative to each person. Although, this
|
||||
triage can be facilitated by fetching the browsing information of all
|
||||
particular individuals and put the in perspective.</p>
|
||||
<p>Machine learning is a branch of Artificial Intelligence (AI) which deals with how
|
||||
a program can learn from data. Recommendation systems are a particular
|
||||
application area of machine learning which is able to recommend things (links
|
||||
in our case) to the users, given a particular database containing the previous
|
||||
choices users have made.</p>
|
||||
<p>This browsing information is currently available in browsers. Even if it is not
|
||||
in a very usable format, it is possible to transform it to something useful.
|
||||
This information gold mine just wait to be used. Although, it is not as simple as
|
||||
it can seems at the first approach: It is important to take care of the context
|
||||
the user is in while browsing links. For instance, It's more likely that during
|
||||
the day, a computer scientist will browse computing related links, and that during
|
||||
the evening, he browse cooking recipes or something else.</p>
|
||||
<p>Page contents are also interesting to analyse, because that's what people
|
||||
browse and what actually contain the most interesting part of the information.
|
||||
The raw data extracted from the browsing can then be translated into
|
||||
something more useful (namely tags, type of resource, visit frequency,
|
||||
navigation context etc.)</p>
|
||||
<p>The goal of this dissertation is to create a recommender system for web links,
|
||||
including this context information.</p>
|
||||
<p>At the end of the dissertation, different pieces of software will be provided,
|
||||
from raw data collection from the browser to a recommendation system.</p>
|
||||
</div>
|
||||
<div class="section" id="background-review">
|
||||
<h2>Background Review</h2>
|
||||
<p>This dissertation is mainly about data extraction, analysis and recommendation
|
||||
systems. Two different research area can be isolated: Data preprocessing and
|
||||
Information filtering.</p>
|
||||
<p>The first step in order to make recommendations is to gather some data. The
|
||||
more data we have available, the better it is (T. Segaran, 2007). This data can
|
||||
be retrieved in various ways, one of them is to get it directly from user's
|
||||
browsers.</p>
|
||||
<div class="section" id="data-preparation-and-extraction">
|
||||
<h3>Data preparation and extraction</h3>
|
||||
<p>The data gathered from browsers is basically URLs and additional information
|
||||
about the context of the navigation. There is clearly a need to extract more
|
||||
information about the meaning of the data the user is browsing, starting by the
|
||||
content of the web pages.</p>
|
||||
<p>Because the information provided on the current Web is not meant to be read by
|
||||
machines (T. Berners Lee, 2001) there is a need of tools to extract meaning from
|
||||
web pages. The information needs to be preprocessed before stored in a machine
|
||||
readable format, allowing to make recommendations (Choochart et Al, 2004).</p>
|
||||
<p>Data preparation is composed of two steps: cleaning and structuring (
|
||||
Castellano et Al, 2007). Because raw data can contain a lot of un-needed text
|
||||
(such as menus, headers etc.) and need to be cleaned prior to be stored.
|
||||
Multiple techniques can be used here and belongs to boilerplate removal and
|
||||
full text extraction (Kohlschütter et Al, 2010).</p>
|
||||
<p>Then, structuring the information: category, type of content (news, blog, wiki)
|
||||
can be extracted from raw data. This kind of information is not clearly defined
|
||||
by HTML pages so there is a need of tools to recognise them.</p>
|
||||
<p>Some context-related information can also be inferred from each resource. It can go
|
||||
from the visit frequency to the navigation group the user was in while
|
||||
browsing. It is also possible to determine if the user "liked" a resource, and
|
||||
determine a mark for it, which can be used by information filtering a later
|
||||
step (T. Segaran, 2007).</p>
|
||||
<p>At this stage, structuring the data is required. Storing this kind of
|
||||
information in RDBMS can be a bit tedious and require complex queries to get
|
||||
back the data in an usable format. Graph databases can play a major role in the
|
||||
simplification of information storage and querying.</p>
|
||||
</div>
|
||||
<div class="section" id="information-filtering">
|
||||
<h3>Information filtering</h3>
|
||||
<p>To filter the information, three techniques can be used (Balabanovic et
|
||||
Al, 1997):</p>
|
||||
<ul class="simple">
|
||||
<li>The content-based approach states that if an user have liked something in the
|
||||
past, he is more likely to like similar things in the future. So it's about
|
||||
establishing a profile for the user and compare new items against it.</li>
|
||||
<li>The collaborative approach will rather recommend items that other similar users
|
||||
have liked. This approach consider only the relationship between users, and
|
||||
not the profile of the user we are making recommendations to.</li>
|
||||
<li>the hybrid approach, which appeared recently combine both of the previous
|
||||
approaches, giving recommendations when items score high regarding user's
|
||||
profile, or if a similar user already liked it.</li>
|
||||
</ul>
|
||||
<p>Grouping is also something to consider at this stage (G. Myatt, 2007).
|
||||
Because we are dealing with huge amount of data, it can be useful to detect group
|
||||
of data that can fit together. Data clustering is able to find such groups (T.
|
||||
Segaran, 2007).</p>
|
||||
<p>References:</p>
|
||||
<ul class="simple">
|
||||
<li>Balabanović, M., & Shoham, Y. (1997). Fab: content-based, collaborative
|
||||
recommendation. Communications of the ACM, 40(3), 66–72. ACM.
|
||||
Retrieved March 1, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=245108.245124&amp">http://portal.acm.org/citation.cfm?id=245108.245124&amp</a>;.</li>
|
||||
<li>Berners-Lee, T., Hendler, J., & Lassila, O. (2001).
|
||||
The semantic web: Scientific american. Scientific American, 284(5), 34–43.
|
||||
Retrieved November 21, 2010, from <a class="reference external" href="http://www.citeulike.org/group/222/article/1176986">http://www.citeulike.org/group/222/article/1176986</a>.</li>
|
||||
<li>Castellano, G., Fanelli, A., & Torsello, M. (2007).
|
||||
LODAP: a LOg DAta Preprocessor for mining Web browsing patterns. Proceedings of the 6th Conference on 6th WSEAS Int. Conf. on Artificial Intelligence, Knowledge Engineering and Data Bases-Volume 6 (p. 12–17). World Scientific and Engineering Academy and Society (WSEAS). Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1348485.1348488">http://portal.acm.org/citation.cfm?id=1348485.1348488</a>.</li>
|
||||
<li>Kohlschutter, C., Fankhauser, P., & Nejdl, W. (2010). Boilerplate detection using shallow text features. Proceedings of the third ACM international conference on Web search and data mining (p. 441–450). ACM. Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1718542">http://portal.acm.org/citation.cfm?id=1718542</a>.</li>
|
||||
<li>Myatt, G. J. (2007). Making Sense of Data: A Practical Guide to Exploratory
|
||||
Data Analysis and Data Mining.</li>
|
||||
<li>Segaran, T. (2007). Collective Intelligence.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="privacy">
|
||||
<h2>Privacy</h2>
|
||||
<p>The first thing that's come to people minds when it comes to process their
|
||||
browsing data is privacy. People don't want to be stalked. That's perfectly
|
||||
right, and I don't either.</p>
|
||||
<p>But such a system don't have to deal with people identities. It's completely
|
||||
possible to process completely anonymous data, and that's probably what I'm
|
||||
gonna do.</p>
|
||||
<p>By the way, if you have interesting thoughts about that, if you do know
|
||||
projects that do seems related, fire the comments !</p>
|
||||
</div>
|
||||
<div class="section" id="what-s-the-plan">
|
||||
<h2>What's the plan ?</h2>
|
||||
<p>There is a lot of different things to explore, especially because I'm
|
||||
a complete novice in that field.</p>
|
||||
<ul class="simple">
|
||||
<li>I want to develop a firefox plugin, to extract the browsing informations (
|
||||
still, I need to know exactly which kind of informations to retrieve). The
|
||||
idea is to provide some <em>raw</em> browsing data, and then to transform it and to
|
||||
store it in the better possible way.</li>
|
||||
<li>Analyse how to store the informations in a graph database. What can be the
|
||||
different methods to store this data and to visualize the relationship
|
||||
between different pieces of data? How can I define the different contexts,
|
||||
and add those informations in the db?</li>
|
||||
<li>Process the data using well known recommendation algorithms. Compare the
|
||||
results and criticize their value.</li>
|
||||
</ul>
|
||||
<p>There is plenty of stuff I want to try during this experimentation:</p>
|
||||
<ul class="simple">
|
||||
<li>I want to try using Geshi to visualize the connexion between the links,
|
||||
and the contexts</li>
|
||||
<li>Try using graph databases such as Neo4j</li>
|
||||
<li>Having a deeper look at tools such as scikit.learn (a machine learning
|
||||
toolkit in python)</li>
|
||||
<li>Analyse web pages in order to categorize them. Processing their
|
||||
contents as well, to do some keyword based classification will be done.</li>
|
||||
</ul>
|
||||
<p>Lot of work on its way, yay !</p>
|
||||
</div>
|
||||
<p>There are <a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
190
tag/sparql.html
Normal file
190
tag/sparql.html
Normal file
|
@ -0,0 +1,190 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - sparql</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././using-dbpedia-to-get-languages-influences.html">Using dbpedia to get languages influences</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-08-16T00:00:00">
|
||||
Tue 16 August 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/python.html">python</a>. </p>
|
||||
<p>tags: <a href=".././tag/dbpedia.html">dbpedia</a><a href=".././tag/sparql.html">sparql</a><a href=".././tag/python.html">python</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>While browsing the Python's wikipedia page, I found information about the languages
|
||||
influenced by python, and the languages that influenced python itself.</p>
|
||||
<p>Well, that's kind of interesting to know which languages influenced others,
|
||||
it could even be more interesting to have an overview of the connexion between
|
||||
them, keeping python as the main focus.</p>
|
||||
<p>This information is available on the wikipedia page, but not in a really
|
||||
exploitable format. Hopefully, this information is provided into the
|
||||
information box present on the majority of wikipedia pages. And… guess what?
|
||||
there is project with the goal to scrap and index all this information in
|
||||
a more queriable way, using the semantic web technologies.</p>
|
||||
<p>Well, you may have guessed it, the project in question in dbpedia, and exposes
|
||||
information in the form of RDF triples, which are way more easy to work with
|
||||
than simple HTML.</p>
|
||||
<p>For instance, let's take the page about python:
|
||||
<a class="reference external" href="http://dbpedia.org/page/Python_%28programming_language%29">http://dbpedia.org/page/Python_%28programming_language%29</a></p>
|
||||
<p>The interesting properties here are "Influenced" and "InfluencedBy", which
|
||||
allows us to get a list of languages. Unfortunately, they are not really using
|
||||
all the power of the Semantic Web here, and the list is actually a string with
|
||||
coma separated values in it.</p>
|
||||
<p>Anyway, we can use a simple rule: All wikipedia pages of programming languages
|
||||
are either named after the name of the language itself, or suffixed with "(
|
||||
programming language)", which is the case for python.</p>
|
||||
<p>So I've built <a class="reference external" href="https://github.com/ametaireau/experiments/blob/master/influences/get_influences.py">a tiny script to extract the information from dbpedia</a> and transform them into a shiny graph using graphviz.</p>
|
||||
<p>After a nice:</p>
|
||||
<pre class="literal-block">
|
||||
$ python get_influences.py python dot | dot -Tpng > influences.png
|
||||
</pre>
|
||||
<p>The result is the following graph (<a class="reference external" href="http://files.lolnet.org/alexis/influences.png">see it directly here</a>)</p>
|
||||
<img alt="http://files.lolnet.org/alexis/influences.png" src="http://files.lolnet.org/alexis/influences.png" style="width: 800px;" />
|
||||
<p>While reading this diagram, keep in mind that it is a) not listing all the
|
||||
languages and b) keeping a python perspective.</p>
|
||||
<p>This means that you can trust the scheme by following the arrows from python to
|
||||
something and from something to python, it is not trying to get the matching
|
||||
between all the languages at the same time to keep stuff readable.</p>
|
||||
<p>It would certainly be possible to have all the connections between all
|
||||
languages (and the resulting script would be easier) to do so, but the resulting
|
||||
graph would probably be way less readable.</p>
|
||||
<p>You can find the script <a class="reference external" href="https://github.com/ametaireau/experiments">on my github account</a>. Feel free to adapt it for
|
||||
whatever you want if you feel hackish.</p>
|
||||
<p>There are <a href=".././using-dbpedia-to-get-languages-influences.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
302
tag/unison.html
Normal file
302
tag/unison.html
Normal file
|
@ -0,0 +1,302 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - unison</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html">Working directly on your server? How to backup and sync your dev environment with unison</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-03-16T00:00:00">
|
||||
Wed 16 March 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/system.html">system</a>. </p>
|
||||
<p>tags: <a href=".././tag/freebsd.html">freebsd</a><a href=".././tag/unison.html">unison</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>I have a server running freebsd since some time now, and was wondering about
|
||||
the possibility to directly have a development environment ready to use when
|
||||
I get a internet connexion, even if I'm not on my computer.</p>
|
||||
<p>Since I use vim to code, and spend most of my time in a console while
|
||||
developing, it's possible to work via ssh, from everywhere.</p>
|
||||
<p>The only problem is the synchronisation of the source code, config files etc.
|
||||
from my machine to the server.</p>
|
||||
<p>Unison provides an interesting way to synchronise two folders, even over
|
||||
a network. So let's do it !</p>
|
||||
<div class="section" id="creating-the-jail">
|
||||
<h2>Creating the jail</h2>
|
||||
<p>In case you don't use FreeBSD, you can skip this section.</p>
|
||||
<div class="highlight"><pre><span class="c"># I have a flavour jail named default</span>
|
||||
<span class="nv">$ </span>ezjail-admin -f default workspace.notmyidea.org 172.19.1.6
|
||||
<span class="nv">$ </span>ezjail-admin start workspace.notmyidea.org
|
||||
</pre></div>
|
||||
<p>In my case, because the "default" flavour contains already a lot of interesting
|
||||
things, my jail come already setup with ssh, bash and vim for instance, but
|
||||
maybe you'll need it in your case.</p>
|
||||
<p>I want to be redirected to the ssh of the jail when I connect to the host with
|
||||
the 20006 port. Add lines in <cite>/etc/pf.conf</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
workspace_jail="172.19.1.6"
|
||||
rdr on $ext_if proto tcp from any to $ext_ip port 20006 -> $workspace_jail port 22
|
||||
</pre>
|
||||
<p>Reload packet filter rules</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>/etc/rc.d/pf reload
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="working-with-unison">
|
||||
<h2>Working with unison</h2>
|
||||
<p>Now that we've set up the jail. Set up unison on the server and on your client.
|
||||
Unison is available on the freebsd ports so just install it</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 config-recursive
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 package-recursive
|
||||
</pre></div>
|
||||
<p>Install as well unison on your local machine. Double check to install the same
|
||||
version on the client and on the server. Ubuntu contains the 2.27.57 as well as
|
||||
the 2.32.52.</p>
|
||||
<p>Check that unison is installed and reachable via ssh from your machine</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006 unison -version
|
||||
unison version 2.27.157
|
||||
<span class="nv">$ </span>unison -version
|
||||
unison version 2.27.57
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="let-sync-our-folders">
|
||||
<h2>Let sync our folders</h2>
|
||||
<p>The first thing I want to sync is my vim configuration. Well, it's already <a class="reference external" href="http://github.com/ametaireau/dotfiles/">in
|
||||
a git repository</a> but let's try to use
|
||||
unison for it right now.</p>
|
||||
<p>I have two machines then: <cite>workspace</cite>, the jail, and <cite>ecureuil</cite> my laptop.</p>
|
||||
<div class="highlight"><pre>unison .vim ssh://notmyidea.org:20006/.vim
|
||||
unison .vimrc ssh://notmyidea.org:20006/.vimrc
|
||||
</pre></div>
|
||||
<p>It is also possible to put all the informations in a config file, and then to
|
||||
only run <cite>unison</cite>. (fire up <cite>vim ~/.unison/default.prf</cite>.</p>
|
||||
<p>Here is my config:</p>
|
||||
<pre class="literal-block">
|
||||
root = /home/alexis
|
||||
root = ssh://notmyidea.org:20006
|
||||
|
||||
path = .vimrc
|
||||
path = dotfiles
|
||||
path = dev
|
||||
|
||||
follow = Name *
|
||||
</pre>
|
||||
<p>My vimrc is in fact a symbolic link on my laptop, but I don't want to specify
|
||||
each of the links to unison. That's why the <cite>follow = Name *</cite> is for.</p>
|
||||
<p>The folders you want to synchronize are maybe a bit large. If so, considering
|
||||
others options such as rsync for the first import may be a good idea (I enjoyed
|
||||
my university huge upload bandwith to upload 2GB in 20mn ;)</p>
|
||||
</div>
|
||||
<div class="section" id="run-the-script-frequently">
|
||||
<h2>Run the script frequently</h2>
|
||||
<p>Once that done, you just need to run the unison command line some times when
|
||||
you want to sync your two machines. I've wrote a tiny script to get some
|
||||
feedback from the sync:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">os</span>
|
||||
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
|
||||
|
||||
<span class="n">DEFAULT_LOGFILE</span> <span class="o">=</span> <span class="s">"~/unison.log"</span>
|
||||
<span class="n">PROGRAM_NAME</span> <span class="o">=</span> <span class="s">"Unison syncer"</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">sync</span><span class="p">(</span><span class="n">logfile</span><span class="o">=</span><span class="n">DEFAULT_LOGFILE</span><span class="p">,</span> <span class="n">program_name</span><span class="o">=</span><span class="n">PROGRAM_NAME</span><span class="p">):</span>
|
||||
<span class="c"># init</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
<span class="n">error</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
|
||||
<span class="n">before</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
|
||||
<span class="c"># call unison to make the sync</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'unison -batch > {0}'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
|
||||
<span class="c"># get the duration of the operation</span>
|
||||
<span class="n">td</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="o">-</span> <span class="n">before</span>
|
||||
<span class="n">delta</span> <span class="o">=</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">microseconds</span> <span class="o">+</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">seconds</span> <span class="o">+</span> <span class="n">td</span><span class="o">.</span><span class="n">days</span> <span class="o">*</span> <span class="mi">24</span> <span class="o">*</span> <span class="mi">3600</span><span class="p">)</span> <span class="o">*</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span><span class="p">)</span> <span class="o">/</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span>
|
||||
|
||||
<span class="c"># check what was the last entry in the log</span>
|
||||
<span class="n">log</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">expanduser</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
<span class="n">lines</span> <span class="o">=</span> <span class="n">log</span><span class="o">.</span><span class="n">readlines</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="s">'No updates to propagate'</span> <span class="ow">in</span> <span class="n">lines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]:</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">output</span> <span class="o">=</span> <span class="p">[</span><span class="n">l</span> <span class="k">for</span> <span class="n">l</span> <span class="ow">in</span> <span class="n">lines</span> <span class="k">if</span> <span class="s">"Synchronization"</span> <span class="ow">in</span> <span class="n">l</span><span class="p">]</span>
|
||||
|
||||
<span class="n">message</span> <span class="o">=</span> <span class="n">output</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">message</span> <span class="o">+=</span> <span class="s">" It took {0}s."</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">delta</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">display_message</span><span class="p">:</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'notify-send -i {2} "{0}" "{1}"'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">program_name</span><span class="p">,</span> <span class="n">message</span><span class="p">,</span>
|
||||
<span class="s">'error'</span> <span class="k">if</span> <span class="n">error</span> <span class="k">else</span> <span class="s">'info'</span><span class="p">))</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
|
||||
<span class="n">sync</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>This is probably perfectible, but that does the job.</p>
|
||||
<p>Last step is to tell you machine to run that frequently. That's what <cite>crontab</cite>
|
||||
is made for, so let's <cite>crontab -e</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
$ * */3 * * * . ~/.Xdbus; /usr/bin/python /home/alexis/dev/python/unison-syncer/sync.py
|
||||
</pre>
|
||||
<p>The <cite>~/.Xdbus</cite> allows cron to communicate with your X11 session. Here is its
|
||||
content.</p>
|
||||
<div class="highlight"><pre><span class="c">#!/bin/bash</span>
|
||||
|
||||
<span class="c"># Get the pid of nautilus</span>
|
||||
<span class="nv">nautilus_pid</span><span class="o">=</span><span class="k">$(</span>pgrep -u <span class="nv">$LOGNAME</span> -n nautilus<span class="k">)</span>
|
||||
|
||||
<span class="c"># If nautilus isn't running, just exit silently</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$nautilus_pid"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">exit </span>0
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># Grab the DBUS_SESSION_BUS_ADDRESS variable from nautilus's environment</span>
|
||||
<span class="nb">eval</span> <span class="k">$(</span>tr <span class="s1">'\0'</span> <span class="s1">'\n'</span> < /proc/<span class="nv">$nautilus_pid</span>/environ | grep <span class="s1">'^DBUS_SESSION_BUS_ADDRESS='</span><span class="k">)</span>
|
||||
|
||||
<span class="c"># Check that we actually found it</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$DBUS_SESSION_BUS_ADDRESS"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">echo</span> <span class="s2">"Failed to find bus address"</span> >&2
|
||||
<span class="nb">exit </span>1
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># export it so that child processes will inherit it</span>
|
||||
<span class="nb">export </span>DBUS_SESSION_BUS_ADDRESS
|
||||
</pre></div>
|
||||
<p>And it comes from <a class="reference external" href="http://ubuntuforums.org/showthread.php?p=10148738#post10148738">here</a>.</p>
|
||||
<p>A sync takes about 20s + the upload time on my machine, which stay acceptable for
|
||||
all of my developments.</p>
|
||||
</div>
|
||||
<p>There are <a href=".././working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
329
tag/users.html
Normal file
329
tag/users.html
Normal file
|
@ -0,0 +1,329 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Alexis' log - users</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href=".././theme/css/main.css" type="text/css" />
|
||||
<link href=".././feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie.css"/>
|
||||
<script src=".././js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href=".././css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href="../.">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href=".././pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href=".././category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href=".././category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href=".././category/python.html">python</a></li>
|
||||
|
||||
<li ><a href=".././category/system.html">system</a></li>
|
||||
|
||||
<li ><a href=".././category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<aside id="featured" class="body">
|
||||
<article>
|
||||
<h1 class="entry-title"><a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html">Analyse users' browsing context to build up a web recommender</a></h1>
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-04-01T00:00:00">
|
||||
Fri 01 April 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href=".././author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href=".././category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href=".././tag/recommendations.html">recommendations</a><a href=".././tag/browsers.html">browsers</a><a href=".././tag/users.html">users</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info --><p>No, this is not an april's fool ;)</p>
|
||||
<p>Wow, it's been a long time. My year in Oxford is going really well. I realized
|
||||
few days ago that the end of the year is approaching really quickly.
|
||||
Exams are coming in one month or such and then I'll be working full time on my dissertation topic.</p>
|
||||
<p>When I learned we'll have about 6 month to work on something, I first thought
|
||||
about doing a packaging related stuff, but finally decided to start something
|
||||
new. After all, that's the good time to learn.</p>
|
||||
<p>Since a long time, I'm being impressed by the <a class="reference external" href="http://last.fm">last.fm</a>
|
||||
recommender system. They're <em>scrobbling</em> the music I listen to since something
|
||||
like 5 years now and the recommendations they're doing are really nice and
|
||||
accurate (I discovered <strong>a lot</strong> of great artists listening to the
|
||||
"neighbour radio".) (by the way, <a class="reference external" href="http://lastfm.com/user/akounet/">here is</a>
|
||||
my lastfm account)</p>
|
||||
<p>So I decided to work on recommender systems, to better understand what is it
|
||||
about.</p>
|
||||
<p>Recommender systems are usually used to increase the sales of products
|
||||
(like Amazon.com does) which is not really what I'm looking for (The one who
|
||||
know me a bit know I'm kind of sick about all this consumerism going on).</p>
|
||||
<p>Actually, the most simple thing I thought of was the web: I'm browsing it quite
|
||||
every day and each time new content appears. I've stopped to follow <a class="reference external" href="https://bitbucket.org/bruno/aspirator/">my feed
|
||||
reader</a> because of the
|
||||
information overload, and reduced drastically the number of people I follow <a class="reference external" href="http://twitter.com/ametaireau/">on
|
||||
twitter</a>.</p>
|
||||
<p>Too much information kills the information.</p>
|
||||
<p>You shall got what will be my dissertation topic: a recommender system for
|
||||
the web. Well, such recommender systems already exists, so I will try to add contextual
|
||||
information to them: you're probably not interested by the same topics at different
|
||||
times of the day, or depending on the computer you're using. We can also
|
||||
probably make good use of the way you browse to create groups into the content
|
||||
you're browsing (or even use the great firefox4 tab group feature).</p>
|
||||
<p>There is a large part of concerns to have about user's privacy as well.</p>
|
||||
<p>Here is my proposal (copy/pasted from the one I had to do for my master)</p>
|
||||
<div class="section" id="introduction-and-rationale">
|
||||
<h2>Introduction and rationale</h2>
|
||||
<p>Nowadays, people surf the web more and more often. New web pages are created
|
||||
each day so the amount of information to retrieve is more important as the time
|
||||
passes. These users uses the web in different contexts, from finding cooking
|
||||
recipes to technical articles.</p>
|
||||
<p>A lot of people share the same interest to various topics, and the quantity of
|
||||
information is such than it's really hard to triage them efficiently without
|
||||
spending hours doing it. Firstly because of the huge quantity of information
|
||||
but also because the triage is something relative to each person. Although, this
|
||||
triage can be facilitated by fetching the browsing information of all
|
||||
particular individuals and put the in perspective.</p>
|
||||
<p>Machine learning is a branch of Artificial Intelligence (AI) which deals with how
|
||||
a program can learn from data. Recommendation systems are a particular
|
||||
application area of machine learning which is able to recommend things (links
|
||||
in our case) to the users, given a particular database containing the previous
|
||||
choices users have made.</p>
|
||||
<p>This browsing information is currently available in browsers. Even if it is not
|
||||
in a very usable format, it is possible to transform it to something useful.
|
||||
This information gold mine just wait to be used. Although, it is not as simple as
|
||||
it can seems at the first approach: It is important to take care of the context
|
||||
the user is in while browsing links. For instance, It's more likely that during
|
||||
the day, a computer scientist will browse computing related links, and that during
|
||||
the evening, he browse cooking recipes or something else.</p>
|
||||
<p>Page contents are also interesting to analyse, because that's what people
|
||||
browse and what actually contain the most interesting part of the information.
|
||||
The raw data extracted from the browsing can then be translated into
|
||||
something more useful (namely tags, type of resource, visit frequency,
|
||||
navigation context etc.)</p>
|
||||
<p>The goal of this dissertation is to create a recommender system for web links,
|
||||
including this context information.</p>
|
||||
<p>At the end of the dissertation, different pieces of software will be provided,
|
||||
from raw data collection from the browser to a recommendation system.</p>
|
||||
</div>
|
||||
<div class="section" id="background-review">
|
||||
<h2>Background Review</h2>
|
||||
<p>This dissertation is mainly about data extraction, analysis and recommendation
|
||||
systems. Two different research area can be isolated: Data preprocessing and
|
||||
Information filtering.</p>
|
||||
<p>The first step in order to make recommendations is to gather some data. The
|
||||
more data we have available, the better it is (T. Segaran, 2007). This data can
|
||||
be retrieved in various ways, one of them is to get it directly from user's
|
||||
browsers.</p>
|
||||
<div class="section" id="data-preparation-and-extraction">
|
||||
<h3>Data preparation and extraction</h3>
|
||||
<p>The data gathered from browsers is basically URLs and additional information
|
||||
about the context of the navigation. There is clearly a need to extract more
|
||||
information about the meaning of the data the user is browsing, starting by the
|
||||
content of the web pages.</p>
|
||||
<p>Because the information provided on the current Web is not meant to be read by
|
||||
machines (T. Berners Lee, 2001) there is a need of tools to extract meaning from
|
||||
web pages. The information needs to be preprocessed before stored in a machine
|
||||
readable format, allowing to make recommendations (Choochart et Al, 2004).</p>
|
||||
<p>Data preparation is composed of two steps: cleaning and structuring (
|
||||
Castellano et Al, 2007). Because raw data can contain a lot of un-needed text
|
||||
(such as menus, headers etc.) and need to be cleaned prior to be stored.
|
||||
Multiple techniques can be used here and belongs to boilerplate removal and
|
||||
full text extraction (Kohlschütter et Al, 2010).</p>
|
||||
<p>Then, structuring the information: category, type of content (news, blog, wiki)
|
||||
can be extracted from raw data. This kind of information is not clearly defined
|
||||
by HTML pages so there is a need of tools to recognise them.</p>
|
||||
<p>Some context-related information can also be inferred from each resource. It can go
|
||||
from the visit frequency to the navigation group the user was in while
|
||||
browsing. It is also possible to determine if the user "liked" a resource, and
|
||||
determine a mark for it, which can be used by information filtering a later
|
||||
step (T. Segaran, 2007).</p>
|
||||
<p>At this stage, structuring the data is required. Storing this kind of
|
||||
information in RDBMS can be a bit tedious and require complex queries to get
|
||||
back the data in an usable format. Graph databases can play a major role in the
|
||||
simplification of information storage and querying.</p>
|
||||
</div>
|
||||
<div class="section" id="information-filtering">
|
||||
<h3>Information filtering</h3>
|
||||
<p>To filter the information, three techniques can be used (Balabanovic et
|
||||
Al, 1997):</p>
|
||||
<ul class="simple">
|
||||
<li>The content-based approach states that if an user have liked something in the
|
||||
past, he is more likely to like similar things in the future. So it's about
|
||||
establishing a profile for the user and compare new items against it.</li>
|
||||
<li>The collaborative approach will rather recommend items that other similar users
|
||||
have liked. This approach consider only the relationship between users, and
|
||||
not the profile of the user we are making recommendations to.</li>
|
||||
<li>the hybrid approach, which appeared recently combine both of the previous
|
||||
approaches, giving recommendations when items score high regarding user's
|
||||
profile, or if a similar user already liked it.</li>
|
||||
</ul>
|
||||
<p>Grouping is also something to consider at this stage (G. Myatt, 2007).
|
||||
Because we are dealing with huge amount of data, it can be useful to detect group
|
||||
of data that can fit together. Data clustering is able to find such groups (T.
|
||||
Segaran, 2007).</p>
|
||||
<p>References:</p>
|
||||
<ul class="simple">
|
||||
<li>Balabanović, M., & Shoham, Y. (1997). Fab: content-based, collaborative
|
||||
recommendation. Communications of the ACM, 40(3), 66–72. ACM.
|
||||
Retrieved March 1, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=245108.245124&amp">http://portal.acm.org/citation.cfm?id=245108.245124&amp</a>;.</li>
|
||||
<li>Berners-Lee, T., Hendler, J., & Lassila, O. (2001).
|
||||
The semantic web: Scientific american. Scientific American, 284(5), 34–43.
|
||||
Retrieved November 21, 2010, from <a class="reference external" href="http://www.citeulike.org/group/222/article/1176986">http://www.citeulike.org/group/222/article/1176986</a>.</li>
|
||||
<li>Castellano, G., Fanelli, A., & Torsello, M. (2007).
|
||||
LODAP: a LOg DAta Preprocessor for mining Web browsing patterns. Proceedings of the 6th Conference on 6th WSEAS Int. Conf. on Artificial Intelligence, Knowledge Engineering and Data Bases-Volume 6 (p. 12–17). World Scientific and Engineering Academy and Society (WSEAS). Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1348485.1348488">http://portal.acm.org/citation.cfm?id=1348485.1348488</a>.</li>
|
||||
<li>Kohlschutter, C., Fankhauser, P., & Nejdl, W. (2010). Boilerplate detection using shallow text features. Proceedings of the third ACM international conference on Web search and data mining (p. 441–450). ACM. Retrieved March 8, 2011, from <a class="reference external" href="http://portal.acm.org/citation.cfm?id=1718542">http://portal.acm.org/citation.cfm?id=1718542</a>.</li>
|
||||
<li>Myatt, G. J. (2007). Making Sense of Data: A Practical Guide to Exploratory
|
||||
Data Analysis and Data Mining.</li>
|
||||
<li>Segaran, T. (2007). Collective Intelligence.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="privacy">
|
||||
<h2>Privacy</h2>
|
||||
<p>The first thing that's come to people minds when it comes to process their
|
||||
browsing data is privacy. People don't want to be stalked. That's perfectly
|
||||
right, and I don't either.</p>
|
||||
<p>But such a system don't have to deal with people identities. It's completely
|
||||
possible to process completely anonymous data, and that's probably what I'm
|
||||
gonna do.</p>
|
||||
<p>By the way, if you have interesting thoughts about that, if you do know
|
||||
projects that do seems related, fire the comments !</p>
|
||||
</div>
|
||||
<div class="section" id="what-s-the-plan">
|
||||
<h2>What's the plan ?</h2>
|
||||
<p>There is a lot of different things to explore, especially because I'm
|
||||
a complete novice in that field.</p>
|
||||
<ul class="simple">
|
||||
<li>I want to develop a firefox plugin, to extract the browsing informations (
|
||||
still, I need to know exactly which kind of informations to retrieve). The
|
||||
idea is to provide some <em>raw</em> browsing data, and then to transform it and to
|
||||
store it in the better possible way.</li>
|
||||
<li>Analyse how to store the informations in a graph database. What can be the
|
||||
different methods to store this data and to visualize the relationship
|
||||
between different pieces of data? How can I define the different contexts,
|
||||
and add those informations in the db?</li>
|
||||
<li>Process the data using well known recommendation algorithms. Compare the
|
||||
results and criticize their value.</li>
|
||||
</ul>
|
||||
<p>There is plenty of stuff I want to try during this experimentation:</p>
|
||||
<ul class="simple">
|
||||
<li>I want to try using Geshi to visualize the connexion between the links,
|
||||
and the contexts</li>
|
||||
<li>Try using graph databases such as Neo4j</li>
|
||||
<li>Having a deeper look at tools such as scikit.learn (a machine learning
|
||||
toolkit in python)</li>
|
||||
<li>Analyse web pages in order to categorize them. Processing their
|
||||
contents as well, to do some keyword based classification will be done.</li>
|
||||
</ul>
|
||||
<p>Lot of work on its way, yay !</p>
|
||||
</div>
|
||||
<p>There are <a href=".././analyse-users-browsing-context-to-build-up-a-web-recommender.html#disqus_thread">comments</a>.</p>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
</aside><!-- /#featured -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href=".././feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
0
tags.html
Normal file
0
tags.html
Normal file
424
theme/css/main.css
Normal file
424
theme/css/main.css
Normal file
|
@ -0,0 +1,424 @@
|
|||
/*
|
||||
Name: Smashing HTML5
|
||||
Date: July 2009
|
||||
Description: Sample layout for HTML5 and CSS3 goodness.
|
||||
Version: 1.0
|
||||
Author: Enrique Ramírez
|
||||
Autor URI: http://enrique-ramirez.com
|
||||
*/
|
||||
|
||||
/* Imports */
|
||||
@import url("reset.css");
|
||||
@import url("pygment.css");
|
||||
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz&subset=latin);
|
||||
|
||||
/***** Global *****/
|
||||
/* Body */
|
||||
body {
|
||||
background: #F5F4EF url('../images/bg.png');
|
||||
color: #000305;
|
||||
font-size: 87.5%; /* Base font size: 14px */
|
||||
font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
|
||||
line-height: 1.429;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Headings */
|
||||
h1 {font-size: 2em }
|
||||
h2 {font-size: 1.571em} /* 22px */
|
||||
h3 {font-size: 1.429em} /* 20px */
|
||||
h4 {font-size: 1.286em} /* 18px */
|
||||
h5 {font-size: 1.143em} /* 16px */
|
||||
h6 {font-size: 1em} /* 14px */
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 400;
|
||||
line-height: 1.1;
|
||||
margin-bottom: .8em;
|
||||
font-family: 'Yanone Kaffeesatz', arial, serif;
|
||||
}
|
||||
|
||||
h3, h4, h5, h6 { margin-top: .8em; }
|
||||
|
||||
hr { border: 2px solid #EEEEEE; }
|
||||
|
||||
/* Anchors */
|
||||
a {outline: 0;}
|
||||
a img {border: 0px; text-decoration: none;}
|
||||
a:link, a:visited {
|
||||
color: #C74350;
|
||||
padding: 0 1px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover, a:active {
|
||||
background-color: #C74350;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
text-shadow: 1px 1px 1px #333;
|
||||
}
|
||||
|
||||
h1 a:hover {
|
||||
background-color: inherit
|
||||
}
|
||||
|
||||
/* Paragraphs */
|
||||
p {margin-bottom: 1.143em;}
|
||||
|
||||
strong, b {font-weight: bold;}
|
||||
em, i {font-style: italic;}
|
||||
|
||||
::-moz-selection {background: #F6CF74; color: #fff;}
|
||||
::selection {background: #F6CF74; color: #fff;}
|
||||
|
||||
/* Lists */
|
||||
ul {
|
||||
list-style: outside disc;
|
||||
margin: 1em 0 1.5em 1.5em;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: outside decimal;
|
||||
margin: 1em 0 1.5em 1.5em;
|
||||
}
|
||||
|
||||
.post-info {
|
||||
float:right;
|
||||
margin:10px;
|
||||
padding:5px;
|
||||
}
|
||||
|
||||
.post-info p{
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
.readmore { float: right }
|
||||
|
||||
dl {margin: 0 0 1.5em 0;}
|
||||
dt {font-weight: bold;}
|
||||
dd {margin-left: 1.5em;}
|
||||
|
||||
pre{background-color: #000; padding: 10px; color: #fff; margin: 10px; overflow: auto;}
|
||||
|
||||
/* Quotes */
|
||||
blockquote {
|
||||
margin: 20px;
|
||||
font-style: italic;
|
||||
}
|
||||
cite {}
|
||||
|
||||
q {}
|
||||
|
||||
/* Tables */
|
||||
table {margin: .5em auto 1.5em auto; width: 98%;}
|
||||
|
||||
/* Thead */
|
||||
thead th {padding: .5em .4em; text-align: left;}
|
||||
thead td {}
|
||||
|
||||
/* Tbody */
|
||||
tbody td {padding: .5em .4em;}
|
||||
tbody th {}
|
||||
|
||||
tbody .alt td {}
|
||||
tbody .alt th {}
|
||||
|
||||
/* Tfoot */
|
||||
tfoot th {}
|
||||
tfoot td {}
|
||||
|
||||
/* HTML5 tags */
|
||||
header, section, footer,
|
||||
aside, nav, article, figure {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/***** Layout *****/
|
||||
.body {clear: both; margin: 0 auto; width: 800px;}
|
||||
img.right figure.right {float: right; margin: 0 0 2em 2em;}
|
||||
img.left, figure.left {float: right; margin: 0 0 2em 2em;}
|
||||
|
||||
/*
|
||||
Header
|
||||
*****************/
|
||||
#banner {
|
||||
margin: 0 auto;
|
||||
padding: 2.5em 0 0 0;
|
||||
}
|
||||
|
||||
/* Banner */
|
||||
#banner h1 {font-size: 3.571em; line-height: 0;}
|
||||
#banner h1 a:link, #banner h1 a:visited {
|
||||
color: #000305;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
margin: 0 0 .6em .2em;
|
||||
text-decoration: none;
|
||||
width: 427px;
|
||||
}
|
||||
#banner h1 a:hover, #banner h1 a:active {
|
||||
background: none;
|
||||
color: #C74350;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#banner h1 strong {font-size: 0.36em; font-weight: normal;}
|
||||
|
||||
/* Main Nav */
|
||||
#banner nav {
|
||||
background: #000305;
|
||||
font-size: 1.143em;
|
||||
height: 40px;
|
||||
line-height: 30px;
|
||||
margin: 0 auto 2em auto;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
width: 800px;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
#banner nav ul {list-style: none; margin: 0 auto; width: 800px;}
|
||||
#banner nav li {float: left; display: inline; margin: 0;}
|
||||
|
||||
#banner nav a:link, #banner nav a:visited {
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
height: 30px;
|
||||
padding: 5px 1.5em;
|
||||
text-decoration: none;
|
||||
}
|
||||
#banner nav a:hover, #banner nav a:active,
|
||||
#banner nav .active a:link, #banner nav .active a:visited {
|
||||
background: #C74451;
|
||||
color: #fff;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
|
||||
#banner nav li:first-child a {
|
||||
border-top-left-radius: 5px;
|
||||
-moz-border-radius-topleft: 5px;
|
||||
-webkit-border-top-left-radius: 5px;
|
||||
|
||||
border-bottom-left-radius: 5px;
|
||||
-moz-border-radius-bottomleft: 5px;
|
||||
-webkit-border-bottom-left-radius: 5px;
|
||||
}
|
||||
|
||||
/*
|
||||
Featured
|
||||
*****************/
|
||||
#featured {
|
||||
background: #fff;
|
||||
margin-bottom: 2em;
|
||||
overflow: hidden;
|
||||
padding: 20px;
|
||||
width: 760px;
|
||||
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
}
|
||||
|
||||
#featured figure {
|
||||
border: 2px solid #eee;
|
||||
float: right;
|
||||
margin: 0.786em 2em 0 5em;
|
||||
width: 248px;
|
||||
}
|
||||
#featured figure img {display: block; float: right;}
|
||||
|
||||
#featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
|
||||
#featured h3 {font-size: 1.429em; margin-bottom: .5em;}
|
||||
|
||||
#featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
|
||||
#featured h3 a:hover, #featured h3 a:active {color: #fff;}
|
||||
|
||||
/*
|
||||
Body
|
||||
*****************/
|
||||
#content {
|
||||
background: #fff;
|
||||
margin-bottom: 2em;
|
||||
overflow: hidden;
|
||||
padding: 20px 20px;
|
||||
width: 760px;
|
||||
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
}
|
||||
|
||||
/*
|
||||
Extras
|
||||
*****************/
|
||||
#extras {margin: 0 auto 3em auto; overflow: hidden;}
|
||||
|
||||
#extras ul {list-style: none; margin: 0;}
|
||||
#extras li {border-bottom: 1px solid #fff;}
|
||||
#extras h2 {
|
||||
color: #C74350;
|
||||
font-size: 1.429em;
|
||||
margin-bottom: .25em;
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
#extras a:link, #extras a:visited {
|
||||
color: #444;
|
||||
display: block;
|
||||
border-bottom: 1px solid #F4E3E3;
|
||||
text-decoration: none;
|
||||
padding: .3em .25em;
|
||||
}
|
||||
|
||||
#extras a:hover, #extras a:active {color: #fff;}
|
||||
|
||||
/* Blogroll */
|
||||
#extras .blogroll {
|
||||
float: left;
|
||||
width: 615px;
|
||||
}
|
||||
|
||||
#extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
|
||||
|
||||
/* Social */
|
||||
#extras .social {
|
||||
float: right;
|
||||
width: 175px;
|
||||
}
|
||||
|
||||
#extras div[class='social'] a {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 3px 6px;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
/* Icons */
|
||||
.social a[href*='delicious.com'] {background-image: url('../images/icons/delicious.png');}
|
||||
.social a[href*='digg.com'] {background-image: url('../images/icons/digg.png');}
|
||||
.social a[href*='facebook.com'] {background-image: url('../images/icons/facebook.png');}
|
||||
.social a[href*='last.fm'], .social a[href*='lastfm.'] {background-image: url('../images/icons/lastfm.png');}
|
||||
.social a[href*='atom.xml'] {background-image: url('../images/icons/rss.png');}
|
||||
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
|
||||
.social a[href*='linkedin.com'] {background-image: url('../images/icons/linkedin.png');}
|
||||
|
||||
/*
|
||||
About
|
||||
*****************/
|
||||
#about {
|
||||
background: #fff;
|
||||
font-style: normal;
|
||||
margin-bottom: 2em;
|
||||
overflow: hidden;
|
||||
padding: 20px;
|
||||
text-align: left;
|
||||
width: 760px;
|
||||
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
}
|
||||
|
||||
#about .primary {float: left; width: 165px;}
|
||||
#about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
|
||||
#about .photo {float: left; margin: 5px 20px;}
|
||||
|
||||
#about .url:link, #about .url:visited {text-decoration: none;}
|
||||
|
||||
#about .bio {float: right; width: 500px;}
|
||||
|
||||
/*
|
||||
Footer
|
||||
*****************/
|
||||
#contentinfo {padding-bottom: 2em; text-align: right;}
|
||||
|
||||
/***** Sections *****/
|
||||
/* Blog */
|
||||
.hentry {
|
||||
display: block;
|
||||
clear: both;
|
||||
border-bottom: 1px solid #eee;
|
||||
padding: 1.5em 0;
|
||||
}
|
||||
li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
|
||||
#content > .hentry {padding: 1em 0;}
|
||||
.hentry img{display : none ;}
|
||||
.entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
|
||||
.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
|
||||
.entry-title a:visited {background-color: #fff;}
|
||||
|
||||
.hentry .post-info * {font-style: normal;}
|
||||
|
||||
/* Content */
|
||||
.hentry footer {margin-bottom: 2em;}
|
||||
.hentry footer address {display: inline;}
|
||||
#posts-list footer address {display: block;}
|
||||
|
||||
/* Blog Index */
|
||||
#posts-list {list-style: none; margin: 0;}
|
||||
#posts-list .hentry {padding-left: 10px; position: relative;}
|
||||
|
||||
#posts-list footer {
|
||||
left: 10px;
|
||||
position: relative;
|
||||
float: left;
|
||||
top: 0.5em;
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
/* About the Author */
|
||||
#about-author {
|
||||
background: #f9f9f9;
|
||||
clear: both;
|
||||
font-style: normal;
|
||||
margin: 2em 0;
|
||||
padding: 10px 20px 15px 20px;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
#about-author strong {
|
||||
color: #C64350;
|
||||
clear: both;
|
||||
display: block;
|
||||
font-size: 1.429em;
|
||||
}
|
||||
|
||||
#about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
|
||||
|
||||
/* Comments */
|
||||
#comments-list {list-style: none; margin: 0 1em;}
|
||||
#comments-list blockquote {
|
||||
background: #f8f8f8;
|
||||
clear: both;
|
||||
font-style: normal;
|
||||
margin: 0;
|
||||
padding: 15px 20px;
|
||||
|
||||
border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
#comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
|
||||
|
||||
#comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
|
||||
|
||||
/* Add a Comment */
|
||||
#add-comment label {clear: left; float: left; text-align: left; width: 150px;}
|
||||
#add-comment input[type='text'],
|
||||
#add-comment input[type='email'],
|
||||
#add-comment input[type='url'] {float: left; width: 200px;}
|
||||
|
||||
#add-comment textarea {float: left; height: 150px; width: 495px;}
|
||||
|
||||
#add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
|
||||
|
||||
#add-comment input[type='submit'] {float: right; margin: 0 .5em;}
|
||||
#add-comment * {margin-bottom: .5em;}
|
205
theme/css/pygment.css
Normal file
205
theme/css/pygment.css
Normal file
|
@ -0,0 +1,205 @@
|
|||
.hll {
|
||||
background-color:#FFFFCC;
|
||||
}
|
||||
.c {
|
||||
color:#408090;
|
||||
font-style:italic;
|
||||
}
|
||||
.err {
|
||||
border:1px solid #FF0000;
|
||||
}
|
||||
.k {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
}
|
||||
.o {
|
||||
color:#666666;
|
||||
}
|
||||
.cm {
|
||||
color:#408090;
|
||||
font-style:italic;
|
||||
}
|
||||
.cp {
|
||||
color:#007020;
|
||||
}
|
||||
.c1 {
|
||||
color:#408090;
|
||||
font-style:italic;
|
||||
}
|
||||
.cs {
|
||||
background-color:#FFF0F0;
|
||||
color:#408090;
|
||||
}
|
||||
.gd {
|
||||
color:#A00000;
|
||||
}
|
||||
.ge {
|
||||
font-style:italic;
|
||||
}
|
||||
.gr {
|
||||
color:#FF0000;
|
||||
}
|
||||
.gh {
|
||||
color:#000080;
|
||||
font-weight:bold;
|
||||
}
|
||||
.gi {
|
||||
color:#00A000;
|
||||
}
|
||||
.go {
|
||||
color:#303030;
|
||||
}
|
||||
.gp {
|
||||
color:#C65D09;
|
||||
font-weight:bold;
|
||||
}
|
||||
.gs {
|
||||
font-weight:bold;
|
||||
}
|
||||
.gu {
|
||||
color:#800080;
|
||||
font-weight:bold;
|
||||
}
|
||||
.gt {
|
||||
color:#0040D0;
|
||||
}
|
||||
.kc {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
}
|
||||
.kd {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
}
|
||||
.kn {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
}
|
||||
.kp {
|
||||
color:#007020;
|
||||
}
|
||||
.kr {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
}
|
||||
.kt {
|
||||
color:#902000;
|
||||
}
|
||||
.m {
|
||||
color:#208050;
|
||||
}
|
||||
.s {
|
||||
color:#4070A0;
|
||||
}
|
||||
.na {
|
||||
color:#4070A0;
|
||||
}
|
||||
.nb {
|
||||
color:#007020;
|
||||
}
|
||||
.nc {
|
||||
color:#0E84B5;
|
||||
font-weight:bold;
|
||||
}
|
||||
.no {
|
||||
color:#60ADD5;
|
||||
}
|
||||
.nd {
|
||||
color:#555555;
|
||||
font-weight:bold;
|
||||
}
|
||||
.ni {
|
||||
color:#D55537;
|
||||
font-weight:bold;
|
||||
}
|
||||
.ne {
|
||||
color:#007020;
|
||||
}
|
||||
.nf {
|
||||
color:#06287E;
|
||||
}
|
||||
.nl {
|
||||
color:#002070;
|
||||
font-weight:bold;
|
||||
}
|
||||
.nn {
|
||||
color:#0E84B5;
|
||||
font-weight:bold;
|
||||
}
|
||||
.nt {
|
||||
color:#062873;
|
||||
font-weight:bold;
|
||||
}
|
||||
.nv {
|
||||
color:#BB60D5;
|
||||
}
|
||||
.ow {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
}
|
||||
.w {
|
||||
color:#BBBBBB;
|
||||
}
|
||||
.mf {
|
||||
color:#208050;
|
||||
}
|
||||
.mh {
|
||||
color:#208050;
|
||||
}
|
||||
.mi {
|
||||
color:#208050;
|
||||
}
|
||||
.mo {
|
||||
color:#208050;
|
||||
}
|
||||
.sb {
|
||||
color:#4070A0;
|
||||
}
|
||||
.sc {
|
||||
color:#4070A0;
|
||||
}
|
||||
.sd {
|
||||
color:#4070A0;
|
||||
font-style:italic;
|
||||
}
|
||||
.s2 {
|
||||
color:#4070A0;
|
||||
}
|
||||
.se {
|
||||
color:#4070A0;
|
||||
font-weight:bold;
|
||||
}
|
||||
.sh {
|
||||
color:#4070A0;
|
||||
}
|
||||
.si {
|
||||
color:#70A0D0;
|
||||
font-style:italic;
|
||||
}
|
||||
.sx {
|
||||
color:#C65D09;
|
||||
}
|
||||
.sr {
|
||||
color:#235388;
|
||||
}
|
||||
.s1 {
|
||||
color:#4070A0;
|
||||
}
|
||||
.ss {
|
||||
color:#517918;
|
||||
}
|
||||
.bp {
|
||||
color:#007020;
|
||||
}
|
||||
.vc {
|
||||
color:#BB60D5;
|
||||
}
|
||||
.vg {
|
||||
color:#BB60D5;
|
||||
}
|
||||
.vi {
|
||||
color:#BB60D5;
|
||||
}
|
||||
.il {
|
||||
color:#208050;
|
||||
}
|
52
theme/css/reset.css
Normal file
52
theme/css/reset.css
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
Name: Reset Stylesheet
|
||||
Description: Resets browser's default CSS
|
||||
Author: Eric Meyer
|
||||
Author URI: http://meyerweb.com/eric/tools/css/reset/
|
||||
*/
|
||||
|
||||
/* v1.0 | 20080212 */
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
body {line-height: 1;}
|
||||
|
||||
ol, ul {list-style: none;}
|
||||
|
||||
blockquote, q {quotes: none;}
|
||||
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
|
||||
/* remember to define focus styles! */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* remember to highlight inserts somehow! */
|
||||
ins {text-decoration: none;}
|
||||
del {text-decoration: line-through;}
|
||||
|
||||
/* tables still need 'cellspacing="0"' in the markup */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
43
theme/css/wide.css
Normal file
43
theme/css/wide.css
Normal file
|
@ -0,0 +1,43 @@
|
|||
@import url("main.css");
|
||||
|
||||
body {
|
||||
font:1.3em/1.3 "Hoefler Text","Georgia",Georgia,serif,sans-serif;
|
||||
}
|
||||
|
||||
.body, #banner nav, #banner nav ul, #about, #featured, #content{
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
#banner nav {
|
||||
-moz-border-radius: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
#banner nav ul{
|
||||
padding-right: 50px;
|
||||
}
|
||||
|
||||
#banner nav li{
|
||||
float: right;
|
||||
}
|
||||
|
||||
#banner nav li:first-child a {
|
||||
-moz-border-radius: 0px;
|
||||
}
|
||||
|
||||
#banner h1 {
|
||||
margin-bottom: -18px;
|
||||
}
|
||||
|
||||
#featured, #extras {
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
#featured {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#extras {
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
}
|
BIN
theme/images/icons/delicious.png
Normal file
BIN
theme/images/icons/delicious.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 963 B |
BIN
theme/images/icons/lastfm.png
Normal file
BIN
theme/images/icons/lastfm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 980 B |
BIN
theme/images/icons/linkedin.png
Normal file
BIN
theme/images/icons/linkedin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 376 B |
BIN
theme/images/icons/rss.png
Normal file
BIN
theme/images/icons/rss.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 896 B |
BIN
theme/images/icons/twitter.png
Normal file
BIN
theme/images/icons/twitter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 835 B |
198
travailler-moins-pour-mieux-travailler.html
Normal file
198
travailler-moins-pour-mieux-travailler.html
Normal file
|
@ -0,0 +1,198 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Travailler moins pour mieux travailler ?</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li class="active"><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Travailler moins pour mieux travailler ?">Travailler moins pour mieux travailler ?</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-05-19T00:00:00">
|
||||
Thu 19 May 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/thoughts.html">thoughts</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Je viens de passer une semaine et demi quasiment hors-ligne et je dois dire que
|
||||
je suis assez impressionné du résultat: je suis de retour chez mes parents pour
|
||||
le "easter break" et j'en ai profité pour donner un coup aux travaux de la
|
||||
maison (et pour me reposer un brin!).</p>
|
||||
<p>Bosser en extérieur est un réel plaisir et faire quelque chose de manuel
|
||||
également. Je n'ai pas pour habitude de bricoler autre chose que du logiciel et
|
||||
c'est vraiment quelque chose que j'apprécie.</p>
|
||||
<p>J'avoue, je mens un peu quand je dis que j'étais complètement déconnecté:
|
||||
j'ai vérifié mes mails assez régulièrement en utilisant mon téléphone
|
||||
(merci Arnaud pour le prêt du gadget!) et j'ai limité ma présence web au strict
|
||||
minimum. Je veux dire par là pas de twitter, pas d'IRC et autres mailing-lists.</p>
|
||||
<p>Quand je dis hors-ligne, je ne dis pas que je n'ai pas travaillé sur mon
|
||||
ordinateur. J'ai à fournir beaucoup plus de travail que ce que je ne pensait en
|
||||
premier lieu pour la rédaction de mon mémoire et j'ai passé quelques heures par
|
||||
ci par là à lire des articles et livres sur le sujet ainsi que rédigé une bonne
|
||||
partie de mon mémoire durant ces 10 jours. Résultat ? Les heures que j'ai passées à travailler ont
|
||||
été étonnement plus productives que celles que j'ai l'habitude de passer derrière
|
||||
un écran. Je ne parles pas uniquement du fait de procrastiner; évidemment c'est
|
||||
une des causes principales de ma perte de productivité, mais je pense également
|
||||
au fait de laisser le cerveau reposer, au moins en ce qui concerne la partie
|
||||
informatique. Bricoler demande de la concentration et de la réflexion mais
|
||||
permet également de laisser son esprit vagabonder. J'ai pu donc avancer mes
|
||||
sur certaines parties de mon mémoire alors que j'étais en train de poser le
|
||||
bardage sur la garage par exemple.</p>
|
||||
<p>Passer du temps sur autre chose (qui demandait également de la concentration
|
||||
par ailleurs) m'a permis d'être réellement plus efficace lors de mes phases de
|
||||
rédaction et de lecture.</p>
|
||||
<p>Je me demande depuis quelques temps quel sera mon futur travail et quelle forme
|
||||
il prendra. Éééh oui, la fin des études arrive pour la fin de l'année, c'est
|
||||
pas une blague. Et je me pose sérieusement la question du travail aux 3/4
|
||||
temps. La raison principale étant que je ne souhaites pas passer la majeure
|
||||
partie de mon temps à travailler derrière un écran et que la formation que j'ai
|
||||
m'y rattache beaucoup. Ne me comprenez pas de travers: j'aime ce que je fais;
|
||||
mais j'aime aussi ce que je fais à coté de l'informatique: associatif, projets
|
||||
alternatifs, permaculture et autres.</p>
|
||||
<p>Viens s'ajouter à ça le fait d'avoir une qualité de vie qui me semble pouvoir
|
||||
passer par le fait de travailler moins ("il est marant ce gamin, il à pas encore commencé
|
||||
à travailler qu'il veut bosser moins, regarde moi cette feignasse!") et
|
||||
travailler plus efficacement. Bien sur, on n'est jamais 100% productif et c'est
|
||||
d'autant plus vrai pour moi, alors si gagner en productivité peut passer par
|
||||
travailler moins, pourquoi pas s'y essayer !</p>
|
||||
<p>Peut être que vous pratiquez déjà le travail au 3/4 temps, que vous avez des
|
||||
retours d'expérience à faire : fausse bonne idée ? Vraie bonne idée ?</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "travailler-moins-pour-mieux-travailler.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
181
un-coup-de-main-pour-mon-memoire.html
Normal file
181
un-coup-de-main-pour-mon-memoire.html
Normal file
|
@ -0,0 +1,181 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Un coup de main pour mon mémoire!</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Un coup de main pour mon mémoire!">Un coup de main pour mon mémoire!</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-05-25T00:00:00">
|
||||
Wed 25 May 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Ça y est, bientôt la fin. LA FIN. La fin des études, et le début du reste.
|
||||
En attendant je bosse sur mon mémoire de fin d'études et j'aurais besoin d'un petit
|
||||
coup de main.</p>
|
||||
<p>Mon mémoire porte sur les systèmes de recommandation. Pour ceux qui connaissent
|
||||
last.fm, je fais quelque chose de similaire mais pour les sites internet: en me
|
||||
basant sur ce que vous visitez quotidiennement et comment vous le visitez (quelles
|
||||
horaires, quelle emplacement géographique, etc.) je souhaites proposer des liens
|
||||
qui vous intéresseront potentiellement, en me basant sur l'avis des personnes qui
|
||||
ont des profils similaires au votre.</p>
|
||||
<p>Le projet est loin d'être terminé, mais la première étape est de récupérer des
|
||||
données de navigation, idéalement beaucoup de données de navigation. Donc si
|
||||
vous pouvez me filer un coup de main je vous en serais éternellement
|
||||
reconnaissant (pour ceux qui font semblant de pas comprendre, entendez "tournée
|
||||
générale").</p>
|
||||
<p>J'ai créé un petit site web (en anglais) qui résume un peu le concept, qui vous
|
||||
propose de vous inscrire et de télécharger un plugin firefox qui m'enverra des
|
||||
information sur les sites que vous visitez (si vous avez l'habitude d'utiliser
|
||||
chrome vous pouvez considérer de switcher à firefox4 pour les deux prochains
|
||||
mois pour me filer un coup de main). Il est possible de désactiver le plugin
|
||||
d'un simple clic si vous souhaitez garder votre vie privée privée ;-)</p>
|
||||
<p>Le site est par là: <a class="reference external" href="http://infuse.notmyidea.org">http://infuse.notmyidea.org</a>. Une fois le plugin téléchargé
|
||||
et le compte créé il faut renseigner vos identifiants dans le plugin en
|
||||
question, et c'est tout!</p>
|
||||
<p>A votre bon cœur ! Je récupérerais probablement des données durant les 2
|
||||
prochains mois pour ensuite les analyser correctement.</p>
|
||||
<p>Merci pour votre aide !</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "un-coup-de-main-pour-mon-memoire.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
182
use-restructured-text-rest-to-power-your-presentations.html
Normal file
182
use-restructured-text-rest-to-power-your-presentations.html
Normal file
|
@ -0,0 +1,182 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Use Restructured Text (ReST) to power your presentations</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Use Restructured Text (ReST) to power your presentations">Use Restructured Text (ReST) to power your presentations</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2010-06-25T00:00:00">
|
||||
Fri 25 June 2010
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Wednesday, we give a presentation, with some friends, about the
|
||||
CouchDB Database, to
|
||||
<a class="reference external" href="http://www.toulibre.org">the Toulouse local LUG</a>. Thanks a lot
|
||||
to all the presents for being there, it was a pleasure to talk
|
||||
about this topic with you. Too bad the season is over now an I quit
|
||||
Toulouse next year.</p>
|
||||
<p>During our brainstorming about the topic, we
|
||||
used some paper, and we wanted to make a presentation the simpler
|
||||
way. First thing that come to my mind was using
|
||||
<a class="reference external" href="http://docutils.sourceforge.net/rst.html">restructured text</a>, so
|
||||
I've wrote a simple file containing our different bullet points. In
|
||||
fact, there is quite nothing to do then, to have a working
|
||||
presentation.</p>
|
||||
<p>So far, I've used
|
||||
<a class="reference external" href="http://code.google.com/p/rst2pdf/">the rst2pdf program</a>, and a
|
||||
simple template, to generate output. It's probably simple to have
|
||||
similar results using latex + beamer, I'll try this next time, but
|
||||
as I'm not familiar with latex syntax, restructured text was a
|
||||
great option.</p>
|
||||
<p>Here are
|
||||
<a class="reference external" href="http://files.lolnet.org/alexis/rst-presentations/couchdb/couchdb.pdf">the final PDF output</a>,
|
||||
<a class="reference external" href="http://files.lolnet.org/alexis/rst-presentations/couchdb/couchdb.rst">Rhe ReST source</a>,
|
||||
<a class="reference external" href="http://files.lolnet.org/alexis/rst-presentations/slides.style">the theme used</a>,
|
||||
and the command line to generate the PDF:</p>
|
||||
<pre class="literal-block">
|
||||
rst2pdf couchdb.rst -b1 -s ../slides.style
|
||||
</pre>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "use-restructured-text-rest-to-power-your-presentations.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
194
using-dbpedia-to-get-languages-influences.html
Normal file
194
using-dbpedia-to-get-languages-influences.html
Normal file
|
@ -0,0 +1,194 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Using dbpedia to get languages influences</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li class="active"><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Using dbpedia to get languages influences">Using dbpedia to get languages influences</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-08-16T00:00:00">
|
||||
Tue 16 August 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/python.html">python</a>. </p>
|
||||
<p>tags: <a href="./tag/dbpedia.html">dbpedia</a><a href="./tag/sparql.html">sparql</a><a href="./tag/python.html">python</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>While browsing the Python's wikipedia page, I found information about the languages
|
||||
influenced by python, and the languages that influenced python itself.</p>
|
||||
<p>Well, that's kind of interesting to know which languages influenced others,
|
||||
it could even be more interesting to have an overview of the connexion between
|
||||
them, keeping python as the main focus.</p>
|
||||
<p>This information is available on the wikipedia page, but not in a really
|
||||
exploitable format. Hopefully, this information is provided into the
|
||||
information box present on the majority of wikipedia pages. And… guess what?
|
||||
there is project with the goal to scrap and index all this information in
|
||||
a more queriable way, using the semantic web technologies.</p>
|
||||
<p>Well, you may have guessed it, the project in question in dbpedia, and exposes
|
||||
information in the form of RDF triples, which are way more easy to work with
|
||||
than simple HTML.</p>
|
||||
<p>For instance, let's take the page about python:
|
||||
<a class="reference external" href="http://dbpedia.org/page/Python_%28programming_language%29">http://dbpedia.org/page/Python_%28programming_language%29</a></p>
|
||||
<p>The interesting properties here are "Influenced" and "InfluencedBy", which
|
||||
allows us to get a list of languages. Unfortunately, they are not really using
|
||||
all the power of the Semantic Web here, and the list is actually a string with
|
||||
coma separated values in it.</p>
|
||||
<p>Anyway, we can use a simple rule: All wikipedia pages of programming languages
|
||||
are either named after the name of the language itself, or suffixed with "(
|
||||
programming language)", which is the case for python.</p>
|
||||
<p>So I've built <a class="reference external" href="https://github.com/ametaireau/experiments/blob/master/influences/get_influences.py">a tiny script to extract the information from dbpedia</a> and transform them into a shiny graph using graphviz.</p>
|
||||
<p>After a nice:</p>
|
||||
<pre class="literal-block">
|
||||
$ python get_influences.py python dot | dot -Tpng > influences.png
|
||||
</pre>
|
||||
<p>The result is the following graph (<a class="reference external" href="http://files.lolnet.org/alexis/influences.png">see it directly here</a>)</p>
|
||||
<img alt="http://files.lolnet.org/alexis/influences.png" src="http://files.lolnet.org/alexis/influences.png" style="width: 800px;" />
|
||||
<p>While reading this diagram, keep in mind that it is a) not listing all the
|
||||
languages and b) keeping a python perspective.</p>
|
||||
<p>This means that you can trust the scheme by following the arrows from python to
|
||||
something and from something to python, it is not trying to get the matching
|
||||
between all the languages at the same time to keep stuff readable.</p>
|
||||
<p>It would certainly be possible to have all the connections between all
|
||||
languages (and the resulting script would be easier) to do so, but the resulting
|
||||
graph would probably be way less readable.</p>
|
||||
<p>You can find the script <a class="reference external" href="https://github.com/ametaireau/experiments">on my github account</a>. Feel free to adapt it for
|
||||
whatever you want if you feel hackish.</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "using-dbpedia-to-get-languages-influences.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
225
using-jpype-to-bridge-python-and-java.html
Normal file
225
using-jpype-to-bridge-python-and-java.html
Normal file
|
@ -0,0 +1,225 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Using JPype to bridge python and Java</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Using JPype to bridge python and Java">Using JPype to bridge python and Java</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-06-11T00:00:00">
|
||||
Sat 11 June 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
<p>tags: <a href="./tag/python.html">python</a><a href="./tag/java.html">java</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Java provides some interesting libraries that have no exact equivalent in
|
||||
python. In my case, the awesome boilerpipe library allows me to remove
|
||||
uninteresting parts of HTML pages, like menus, footers and other "boilerplate"
|
||||
contents.</p>
|
||||
<p>Boilerpipe is written in Java. Two solutions then: using java from python or
|
||||
reimplement boilerpipe in python. I will let you guess which one I chosen, meh.</p>
|
||||
<p>JPype allows to bridge python project with java libraries. It takes another
|
||||
point of view than Jython: rather than reimplementing python in Java, both
|
||||
languages are interfacing at the VM level. This means you need to start a VM
|
||||
from your python script, but it does the job and stay fully compatible with
|
||||
Cpython and its C extensions.</p>
|
||||
<div class="section" id="first-steps-with-jpype">
|
||||
<h2>First steps with JPype</h2>
|
||||
<p>Once JPype installed (you'll have to hack a bit some files to integrate
|
||||
seamlessly with your system) you can access java classes by doing something
|
||||
like that:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">jpype</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">startJVM</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">getDefaultJVMPath</span><span class="p">())</span>
|
||||
|
||||
<span class="c"># you can then access to the basic java functions</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">java</span><span class="o">.</span><span class="n">lang</span><span class="o">.</span><span class="n">System</span><span class="o">.</span><span class="n">out</span><span class="o">.</span><span class="n">println</span><span class="p">(</span><span class="s">"hello world"</span><span class="p">)</span>
|
||||
|
||||
<span class="c"># and you have to shutdown the VM at the end</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">shutdownJVM</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>Okay, now we have a hello world, but what we want seems somehow more complex.
|
||||
We want to interact with java classes, so we will have to load them.</p>
|
||||
</div>
|
||||
<div class="section" id="interfacing-with-boilerpipe">
|
||||
<h2>Interfacing with Boilerpipe</h2>
|
||||
<p>To install boilerpipe, you just have to run an ant script:</p>
|
||||
<pre class="literal-block">
|
||||
$ cd boilerpipe
|
||||
$ ant
|
||||
</pre>
|
||||
<p>Here is a simple example of how to use boilerpipe in Java, from their sources</p>
|
||||
<div class="highlight"><pre><span class="kn">package</span> <span class="n">de</span><span class="o">.</span><span class="na">l3s</span><span class="o">.</span><span class="na">boilerpipe</span><span class="o">.</span><span class="na">demo</span><span class="o">;</span>
|
||||
<span class="kn">import</span> <span class="nn">java.net.URL</span><span class="o">;</span>
|
||||
<span class="kn">import</span> <span class="nn">de.l3s.boilerpipe.extractors.ArticleExtractor</span><span class="o">;</span>
|
||||
|
||||
<span class="kd">public</span> <span class="kd">class</span> <span class="nc">Oneliner</span> <span class="o">{</span>
|
||||
<span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="kd">final</span> <span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="kd">throws</span> <span class="n">Exception</span> <span class="o">{</span>
|
||||
<span class="kd">final</span> <span class="n">URL</span> <span class="n">url</span> <span class="o">=</span> <span class="k">new</span> <span class="n">URL</span><span class="o">(</span><span class="s">"http://notmyidea.org"</span><span class="o">);</span>
|
||||
<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="n">ArticleExtractor</span><span class="o">.</span><span class="na">INSTANCE</span><span class="o">.</span><span class="na">getText</span><span class="o">(</span><span class="n">url</span><span class="o">));</span>
|
||||
<span class="o">}</span>
|
||||
<span class="o">}</span>
|
||||
</pre></div>
|
||||
<p>To run it:</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>javac -cp dist/boilerpipe-1.1-dev.jar:lib/nekohtml-1.9.13.jar:lib/xerces-2.9.1.jar src/demo/de/l3s/boilerpipe/demo/Oneliner.java
|
||||
<span class="nv">$ </span>java -cp src/demo:dist/boilerpipe-1.1-dev.jar:lib/nekohtml-1.9.13.jar:lib/xerces-2.9.1.jar de.l3s.boilerpipe.demo.Oneliner
|
||||
</pre></div>
|
||||
<p>Yes, this is kind of ugly, sorry for your eyes.
|
||||
Let's try something similar, but from python</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">jpype</span>
|
||||
|
||||
<span class="c"># start the JVM with the good classpaths</span>
|
||||
<span class="n">classpath</span> <span class="o">=</span> <span class="s">"dist/boilerpipe-1.1-dev.jar:lib/nekohtml-1.9.13.jar:lib/xerces-2.9.1.jar"</span>
|
||||
<span class="n">jpype</span><span class="o">.</span><span class="n">startJVM</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">getDefaultJVMPath</span><span class="p">(),</span> <span class="s">"-Djava.class.path=</span><span class="si">%s</span><span class="s">"</span> <span class="o">%</span> <span class="n">classpath</span><span class="p">)</span>
|
||||
|
||||
<span class="c"># get the Java classes we want to use</span>
|
||||
<span class="n">DefaultExtractor</span> <span class="o">=</span> <span class="n">jpype</span><span class="o">.</span><span class="n">JPackage</span><span class="p">(</span><span class="s">"de"</span><span class="p">)</span><span class="o">.</span><span class="n">l3s</span><span class="o">.</span><span class="n">boilerpipe</span><span class="o">.</span><span class="n">extractors</span><span class="o">.</span><span class="n">DefaultExtractor</span>
|
||||
|
||||
<span class="c"># call them !</span>
|
||||
<span class="k">print</span> <span class="n">DefaultExtractor</span><span class="o">.</span><span class="n">INSTANCE</span><span class="o">.</span><span class="n">getText</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">java</span><span class="o">.</span><span class="n">net</span><span class="o">.</span><span class="n">URL</span><span class="p">(</span><span class="s">"http://blog.notmyidea.org"</span><span class="p">))</span>
|
||||
</pre></div>
|
||||
<p>And you get what you want.</p>
|
||||
<p>I must say I didn't thought it could work so easily. This will allow me to
|
||||
extract text content from URLs and remove the <em>boilerplate</em> text easily
|
||||
for infuse (my master thesis project), without having to write java code, nice!</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "using-jpype-to-bridge-python-and-java.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,306 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Working directly on your server? How to backup and sync your dev environment with unison</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li ><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li class="active"><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Working directly on your server? How to backup and sync your dev environment with unison">Working directly on your server? How to backup and sync your dev environment with unison</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-03-16T00:00:00">
|
||||
Wed 16 March 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/system.html">system</a>. </p>
|
||||
<p>tags: <a href="./tag/freebsd.html">freebsd</a><a href="./tag/unison.html">unison</a></p>
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>I have a server running freebsd since some time now, and was wondering about
|
||||
the possibility to directly have a development environment ready to use when
|
||||
I get a internet connexion, even if I'm not on my computer.</p>
|
||||
<p>Since I use vim to code, and spend most of my time in a console while
|
||||
developing, it's possible to work via ssh, from everywhere.</p>
|
||||
<p>The only problem is the synchronisation of the source code, config files etc.
|
||||
from my machine to the server.</p>
|
||||
<p>Unison provides an interesting way to synchronise two folders, even over
|
||||
a network. So let's do it !</p>
|
||||
<div class="section" id="creating-the-jail">
|
||||
<h2>Creating the jail</h2>
|
||||
<p>In case you don't use FreeBSD, you can skip this section.</p>
|
||||
<div class="highlight"><pre><span class="c"># I have a flavour jail named default</span>
|
||||
<span class="nv">$ </span>ezjail-admin -f default workspace.notmyidea.org 172.19.1.6
|
||||
<span class="nv">$ </span>ezjail-admin start workspace.notmyidea.org
|
||||
</pre></div>
|
||||
<p>In my case, because the "default" flavour contains already a lot of interesting
|
||||
things, my jail come already setup with ssh, bash and vim for instance, but
|
||||
maybe you'll need it in your case.</p>
|
||||
<p>I want to be redirected to the ssh of the jail when I connect to the host with
|
||||
the 20006 port. Add lines in <cite>/etc/pf.conf</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
workspace_jail="172.19.1.6"
|
||||
rdr on $ext_if proto tcp from any to $ext_ip port 20006 -> $workspace_jail port 22
|
||||
</pre>
|
||||
<p>Reload packet filter rules</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>/etc/rc.d/pf reload
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="working-with-unison">
|
||||
<h2>Working with unison</h2>
|
||||
<p>Now that we've set up the jail. Set up unison on the server and on your client.
|
||||
Unison is available on the freebsd ports so just install it</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 config-recursive
|
||||
<span class="nv">$ </span>make -C /usr/ports/net/unison-nox11 package-recursive
|
||||
</pre></div>
|
||||
<p>Install as well unison on your local machine. Double check to install the same
|
||||
version on the client and on the server. Ubuntu contains the 2.27.57 as well as
|
||||
the 2.32.52.</p>
|
||||
<p>Check that unison is installed and reachable via ssh from your machine</p>
|
||||
<div class="highlight"><pre><span class="nv">$ </span>ssh notmyidea.org -p 20006 unison -version
|
||||
unison version 2.27.157
|
||||
<span class="nv">$ </span>unison -version
|
||||
unison version 2.27.57
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="section" id="let-sync-our-folders">
|
||||
<h2>Let sync our folders</h2>
|
||||
<p>The first thing I want to sync is my vim configuration. Well, it's already <a class="reference external" href="http://github.com/ametaireau/dotfiles/">in
|
||||
a git repository</a> but let's try to use
|
||||
unison for it right now.</p>
|
||||
<p>I have two machines then: <cite>workspace</cite>, the jail, and <cite>ecureuil</cite> my laptop.</p>
|
||||
<div class="highlight"><pre>unison .vim ssh://notmyidea.org:20006/.vim
|
||||
unison .vimrc ssh://notmyidea.org:20006/.vimrc
|
||||
</pre></div>
|
||||
<p>It is also possible to put all the informations in a config file, and then to
|
||||
only run <cite>unison</cite>. (fire up <cite>vim ~/.unison/default.prf</cite>.</p>
|
||||
<p>Here is my config:</p>
|
||||
<pre class="literal-block">
|
||||
root = /home/alexis
|
||||
root = ssh://notmyidea.org:20006
|
||||
|
||||
path = .vimrc
|
||||
path = dotfiles
|
||||
path = dev
|
||||
|
||||
follow = Name *
|
||||
</pre>
|
||||
<p>My vimrc is in fact a symbolic link on my laptop, but I don't want to specify
|
||||
each of the links to unison. That's why the <cite>follow = Name *</cite> is for.</p>
|
||||
<p>The folders you want to synchronize are maybe a bit large. If so, considering
|
||||
others options such as rsync for the first import may be a good idea (I enjoyed
|
||||
my university huge upload bandwith to upload 2GB in 20mn ;)</p>
|
||||
</div>
|
||||
<div class="section" id="run-the-script-frequently">
|
||||
<h2>Run the script frequently</h2>
|
||||
<p>Once that done, you just need to run the unison command line some times when
|
||||
you want to sync your two machines. I've wrote a tiny script to get some
|
||||
feedback from the sync:</p>
|
||||
<div class="highlight"><pre><span class="kn">import</span> <span class="nn">os</span>
|
||||
<span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
|
||||
|
||||
<span class="n">DEFAULT_LOGFILE</span> <span class="o">=</span> <span class="s">"~/unison.log"</span>
|
||||
<span class="n">PROGRAM_NAME</span> <span class="o">=</span> <span class="s">"Unison syncer"</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">sync</span><span class="p">(</span><span class="n">logfile</span><span class="o">=</span><span class="n">DEFAULT_LOGFILE</span><span class="p">,</span> <span class="n">program_name</span><span class="o">=</span><span class="n">PROGRAM_NAME</span><span class="p">):</span>
|
||||
<span class="c"># init</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">True</span>
|
||||
<span class="n">error</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
|
||||
<span class="n">before</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
|
||||
<span class="c"># call unison to make the sync</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'unison -batch > {0}'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
|
||||
<span class="c"># get the duration of the operation</span>
|
||||
<span class="n">td</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="o">-</span> <span class="n">before</span>
|
||||
<span class="n">delta</span> <span class="o">=</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">microseconds</span> <span class="o">+</span> <span class="p">(</span><span class="n">td</span><span class="o">.</span><span class="n">seconds</span> <span class="o">+</span> <span class="n">td</span><span class="o">.</span><span class="n">days</span> <span class="o">*</span> <span class="mi">24</span> <span class="o">*</span> <span class="mi">3600</span><span class="p">)</span> <span class="o">*</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span><span class="p">)</span> <span class="o">/</span> <span class="mi">10</span><span class="o">**</span><span class="mi">6</span>
|
||||
|
||||
<span class="c"># check what was the last entry in the log</span>
|
||||
<span class="n">log</span> <span class="o">=</span> <span class="nb">open</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">expanduser</span><span class="p">(</span><span class="n">logfile</span><span class="p">))</span>
|
||||
<span class="n">lines</span> <span class="o">=</span> <span class="n">log</span><span class="o">.</span><span class="n">readlines</span><span class="p">()</span>
|
||||
<span class="k">if</span> <span class="s">'No updates to propagate'</span> <span class="ow">in</span> <span class="n">lines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]:</span>
|
||||
<span class="n">display_message</span> <span class="o">=</span> <span class="bp">False</span>
|
||||
<span class="k">else</span><span class="p">:</span>
|
||||
<span class="n">output</span> <span class="o">=</span> <span class="p">[</span><span class="n">l</span> <span class="k">for</span> <span class="n">l</span> <span class="ow">in</span> <span class="n">lines</span> <span class="k">if</span> <span class="s">"Synchronization"</span> <span class="ow">in</span> <span class="n">l</span><span class="p">]</span>
|
||||
|
||||
<span class="n">message</span> <span class="o">=</span> <span class="n">output</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
|
||||
<span class="n">message</span> <span class="o">+=</span> <span class="s">" It took {0}s."</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">delta</span><span class="p">)</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">display_message</span><span class="p">:</span>
|
||||
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s">'notify-send -i {2} "{0}" "{1}"'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">program_name</span><span class="p">,</span> <span class="n">message</span><span class="p">,</span>
|
||||
<span class="s">'error'</span> <span class="k">if</span> <span class="n">error</span> <span class="k">else</span> <span class="s">'info'</span><span class="p">))</span>
|
||||
|
||||
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
|
||||
<span class="n">sync</span><span class="p">()</span>
|
||||
</pre></div>
|
||||
<p>This is probably perfectible, but that does the job.</p>
|
||||
<p>Last step is to tell you machine to run that frequently. That's what <cite>crontab</cite>
|
||||
is made for, so let's <cite>crontab -e</cite>:</p>
|
||||
<pre class="literal-block">
|
||||
$ * */3 * * * . ~/.Xdbus; /usr/bin/python /home/alexis/dev/python/unison-syncer/sync.py
|
||||
</pre>
|
||||
<p>The <cite>~/.Xdbus</cite> allows cron to communicate with your X11 session. Here is its
|
||||
content.</p>
|
||||
<div class="highlight"><pre><span class="c">#!/bin/bash</span>
|
||||
|
||||
<span class="c"># Get the pid of nautilus</span>
|
||||
<span class="nv">nautilus_pid</span><span class="o">=</span><span class="k">$(</span>pgrep -u <span class="nv">$LOGNAME</span> -n nautilus<span class="k">)</span>
|
||||
|
||||
<span class="c"># If nautilus isn't running, just exit silently</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$nautilus_pid"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">exit </span>0
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># Grab the DBUS_SESSION_BUS_ADDRESS variable from nautilus's environment</span>
|
||||
<span class="nb">eval</span> <span class="k">$(</span>tr <span class="s1">'\0'</span> <span class="s1">'\n'</span> < /proc/<span class="nv">$nautilus_pid</span>/environ | grep <span class="s1">'^DBUS_SESSION_BUS_ADDRESS='</span><span class="k">)</span>
|
||||
|
||||
<span class="c"># Check that we actually found it</span>
|
||||
<span class="k">if</span> <span class="o">[</span> -z <span class="s2">"$DBUS_SESSION_BUS_ADDRESS"</span> <span class="o">]</span>; <span class="k">then</span>
|
||||
<span class="nb">echo</span> <span class="s2">"Failed to find bus address"</span> >&2
|
||||
<span class="nb">exit </span>1
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="c"># export it so that child processes will inherit it</span>
|
||||
<span class="nb">export </span>DBUS_SESSION_BUS_ADDRESS
|
||||
</pre></div>
|
||||
<p>And it comes from <a class="reference external" href="http://ubuntuforums.org/showthread.php?p=10148738#post10148738">here</a>.</p>
|
||||
<p>A sync takes about 20s + the upload time on my machine, which stay acceptable for
|
||||
all of my developments.</p>
|
||||
</div>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "working-directly-on-your-server-how-to-backup-and-sync-your-dev-environment-with-unison.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
192
wrap-up-of-the-distutils2-paris-sprint.html
Normal file
192
wrap-up-of-the-distutils2-paris-sprint.html
Normal file
|
@ -0,0 +1,192 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Wrap up of the distutils2 paris' sprint</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
||||
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
||||
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
||||
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body id="index" class="home">
|
||||
|
||||
<a href="http://github.com/ametaireau/">
|
||||
|
||||
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
||||
|
||||
</a>
|
||||
|
||||
<header id="banner" class="body">
|
||||
<h1><a href=".">Alexis' log </a></h1>
|
||||
<nav><ul>
|
||||
|
||||
|
||||
|
||||
<li><a href="./pages/projects.html">projects</a></li>
|
||||
|
||||
|
||||
|
||||
<li ><a href="./category/asso.html">asso</a></li>
|
||||
|
||||
<li class="active"><a href="./category/dev.html">dev</a></li>
|
||||
|
||||
<li ><a href="./category/python.html">python</a></li>
|
||||
|
||||
<li ><a href="./category/system.html">system</a></li>
|
||||
|
||||
<li ><a href="./category/thoughts.html">thoughts</a></li>
|
||||
|
||||
</ul></nav>
|
||||
</header><!-- /#banner -->
|
||||
|
||||
<section id="content" class="body">
|
||||
<article>
|
||||
<header> <h1 class="entry-title"><a href=""
|
||||
rel="bookmark" title="Permalink to Wrap up of the distutils2 paris' sprint">Wrap up of the distutils2 paris' sprint</a></h1> </header>
|
||||
<div class="entry-content">
|
||||
<footer class="post-info">
|
||||
<abbr class="published" title="2011-02-08T00:00:00">
|
||||
Tue 08 February 2011
|
||||
</abbr>
|
||||
|
||||
|
||||
<address class="vcard author">
|
||||
By <a class="url fn" href="./author/Alexis Métaireau.html">Alexis Métaireau</a>
|
||||
</address>
|
||||
|
||||
<p>In <a href="./category/dev.html">dev</a>. </p>
|
||||
|
||||
|
||||
|
||||
</footer><!-- /.post-info -->
|
||||
<p>Finally, thanks to a bunch of people that helped me to pay my train and bus
|
||||
tickets, I've made it to paris for the distutils2 sprint.</p>
|
||||
<p>They have been a bit more than 10 people to come during the sprint, and it was
|
||||
very productive. Here's a taste of what we've been working on:</p>
|
||||
<ul class="simple">
|
||||
<li>the <cite>datafiles</cite>, a way to specify and to handle the installation of files which
|
||||
are not python-related (pictures, manpages and so on).</li>
|
||||
<li><cite>mkgcfg</cite>, a tool to help you to create a setup.cfg in minutes (and with funny
|
||||
examples)</li>
|
||||
<li>converters from setup.py scripts. We do now have a piece of code which
|
||||
reads your current <cite>setup.py</cite> file and fill in some fields in the <cite>setup.cfg</cite>
|
||||
for you.</li>
|
||||
<li>a compatibility layer for distutils1, so it can read the <cite>setup.cfg</cite> you will
|
||||
wrote for distutils2 :-)</li>
|
||||
<li>the uninstaller, so it's now possible to uninstall what have been installed
|
||||
by distutils2 (see PEP 376)</li>
|
||||
<li>the installer, and the setuptools compatibility layer, which will allow you
|
||||
to rely on setuptools' based distributions (and there are plenty of them!)</li>
|
||||
<li>The compilers, so they are more flexible than they were. Since that's an
|
||||
obscure part of the code for distutils2 commiters (it comes directly from the
|
||||
distutils1 ages), having some guys who understood the problematics here was
|
||||
a must.</li>
|
||||
</ul>
|
||||
<p>Some people have also tried to port their packaging from distutils1 to
|
||||
distutils2. They have spotted a number of bugs and made some improvements
|
||||
to the code, to make it more friendly to use.</p>
|
||||
<p>I'm really pleased to see how newcomers went trough the code, and started
|
||||
hacking so fast. I must say it wasn't the case when we started to work on
|
||||
distutils1 so that's a very good point: people now can hack the code quicker
|
||||
than they could before.</p>
|
||||
<p>Some of the features here are not <em>completely</em> finished yet, but are on the
|
||||
tubes, and will be ready for a release (hopefully) at the end of the week.</p>
|
||||
<p>Big thanks to logilab for hosting (and sponsoring my train ticket) and
|
||||
providing us food, and to bearstech for providing some money for breakfast and
|
||||
bears^Wbeers.</p>
|
||||
<p>Again, a big thanks to all the people who gave me money to pay the transport,
|
||||
I really wasn't expecting such thing to happen :-)</p>
|
||||
|
||||
</div><!-- /.entry-content -->
|
||||
|
||||
<div class="comments">
|
||||
<h2>Comments !</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_identifier = "wrap-up-of-the-distutils2-paris-sprint.html";
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section id="extras" class="body">
|
||||
|
||||
<div class="blogroll">
|
||||
<h2>blogroll</h2>
|
||||
<ul>
|
||||
|
||||
<li><a href="http://biologeek.org">Biologeek</a></li>
|
||||
|
||||
<li><a href="http://filyb.info/">Filyb</a></li>
|
||||
|
||||
<li><a href="http://www.libert-fr.com">Libert-fr</a></li>
|
||||
|
||||
<li><a href="http://prendreuncafe.com/blog/">N1k0</a></li>
|
||||
|
||||
<li><a href="http://ziade.org/blog">Tarek Ziadé</a></li>
|
||||
|
||||
<li><a href="http://zubin71.wordpress.com/">Zubin Mithra</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.blogroll -->
|
||||
|
||||
|
||||
<div class="social">
|
||||
<h2>social</h2>
|
||||
<ul>
|
||||
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
||||
|
||||
|
||||
|
||||
<li><a href="http://twitter.com/ametaireau">twitter</a></li>
|
||||
|
||||
<li><a href="http://lastfm.com/user/akounet">lastfm</a></li>
|
||||
|
||||
<li><a href="http://github.com/ametaireau">github</a></li>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.social -->
|
||||
|
||||
</section><!-- /#extras -->
|
||||
|
||||
<footer id="contentinfo" class="body">
|
||||
<address id="about" class="vcard body">
|
||||
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>.
|
||||
</address><!-- /#about -->
|
||||
|
||||
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
|
||||
</footer><!-- /#contentinfo -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'blog-notmyidea';
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue