<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jawher Moussa&#39;s blog</title>
    <link>https://jawher.me/</link>
    <description>Recent content on Jawher Moussa&#39;s blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 30 Mar 2021 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://jawher.me/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Automating the setup of multi server Wireguard mesh using ansible</title>
      <link>https://jawher.me/wireguard-ansible-systemd-ubuntu/</link>
      <pubDate>Thu, 25 Mar 2021 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/wireguard-ansible-systemd-ubuntu/</guid>
      <description>&lt;p&gt;Recently, I have been experimenting with a multi-region architecture, with a couple servers in multiple continents, fronted by GeoDNS to route the users to the closest one.&lt;/p&gt;&#xA;&lt;p&gt;These servers had to talk to each other, as there is still a single database primary.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Java vs Go: Impressive solutions for invented problems</title>
      <link>https://jawher.me/java-go-impressive-solutions-invented-problem/</link>
      <pubDate>Thu, 18 Jun 2020 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/java-go-impressive-solutions-invented-problem/</guid>
      <description>&lt;h2 id=&#34;lets-start-with-the-shadoks&#34;&gt;Let&amp;rsquo;s start with the Shadoks&lt;/h2&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://jawher.me/java-go-impressive-solutions-invented-problem/img/3-shadoks.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Les Shadoks&lt;/em&gt; is a cartoon created by &lt;a href=&#34;https://en.wikipedia.org/wiki/Jacques_Rouxel_(animator)&#34;&gt;Jacques Rouxel&lt;/a&gt; which was first broadcast in France between 1968 and 1974.&lt;/p&gt;&#xA;&lt;p&gt;Les Shadoks series had a lasting cultural impact, and introduced some lovely phrases/expressions that, to this day, are used in the day to day discussions:&lt;/p&gt;</description>
    </item>
    <item>
      <title>5 years and 3 days later ...</title>
      <link>https://jawher.me/5-years-3-days-later/</link>
      <pubDate>Sun, 24 May 2020 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/5-years-3-days-later/</guid>
      <description>&lt;p&gt;Wow, how time flies by !&lt;/p&gt;&#xA;&lt;p&gt;My last blog post &lt;em&gt;(before this one that is)&lt;/em&gt; dates from 5 years and 3 days ago.&lt;/p&gt;&#xA;&lt;p&gt;5 years and 2 days later, here I am creating a new post to say that I&amp;rsquo;m reviving this blog after this long hiatus.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Go &amp; the G word</title>
      <link>https://jawher.me/golang-g-word/</link>
      <pubDate>Thu, 21 May 2015 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/golang-g-word/</guid>
      <description>&lt;p&gt;Look, I like Go.&#xA;It&amp;rsquo;s a fun language to code in.&lt;/p&gt;&#xA;&lt;p&gt;It has an extensive and mostly well-thought standard library which fits in my head &lt;em&gt;(I&amp;rsquo;m looking at you Java)&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I like the fact that I can whip out a http service serving json in just a couple of lines using only a text editor and without the need for any external library or complex framework.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Parsing command line arguments using a finite state machine and backtracking</title>
      <link>https://jawher.me/parsing-command-line-arguments-finite-state-machine-backtracking/</link>
      <pubDate>Sun, 18 Jan 2015 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/parsing-command-line-arguments-finite-state-machine-backtracking/</guid>
      <description>&lt;p&gt;In the &lt;a href=&#34;https://jawher.me/2015/01/13/parsing-command-line-arguments-shameless-plug-mowcli/&#34;&gt;previous article&lt;/a&gt;, I&amp;rsquo;ve quickly presented &lt;a href=&#34;https://github.com/jawher/mow.cli&#34;&gt;mow.cli&lt;/a&gt;, a command line parsing library I created in Go and compared it against &lt;a href=&#34;http://docopt.org&#34;&gt;docopt&lt;/a&gt; and &lt;a href=&#34;https://github.com/codegangsta/cli&#34;&gt;codegangsta/cli&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;In this article, I&amp;rsquo;ll talk about the innards of mow.cli and how it uses finite state machines (FSM) and backtracking to handle some tricky usage strings like the cp test™ for example:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Parsing command line arguments and a shameless plug of mow.cli</title>
      <link>https://jawher.me/parsing-command-line-arguments-shameless-plug-mowcli/</link>
      <pubDate>Tue, 13 Jan 2015 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/parsing-command-line-arguments-shameless-plug-mowcli/</guid>
      <description>&lt;p&gt;Parsing command line arguments is a deceptively complex task.&#xA;It looks simple at first:&#xA;Just iterate over the arguments, if it starts with a dash (&lt;code&gt;-&lt;/code&gt;) then it is an option, otherwise it is an argument.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The universal package format</title>
      <link>https://jawher.me/universal-package-format/</link>
      <pubDate>Sun, 11 Jan 2015 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/universal-package-format/</guid>
      <description>&lt;p&gt;There are dozens of package formats: apk, deb, rpm, jar, war, whl, egg, dmg, and the list goes on.&lt;/p&gt;&#xA;&lt;p&gt;Some are language agnostic, like deb and rpm.&#xA;They still are system specific, e.g. rpm have to be installed in a fedora/redhat system whereas debs go to debian/ubuntu systems &lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using XCode for AVR C developement</title>
      <link>https://jawher.me/using-xcode-avr-c/</link>
      <pubDate>Fri, 21 Mar 2014 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/using-xcode-avr-c/</guid>
      <description>&lt;p&gt;In this post, I&amp;rsquo;ll show you how to setup your XCode for AVR developement (in the C programming language) using &lt;a href=&#34;https://github.com/jawher/xavr&#34;&gt;X-AVR&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;X-AVR was born out of my frustration with eclipse as an IDE to program for AVRs.&#xA;While there is the excellent &lt;a href=&#34;https://github.com/keestux/avr-eclipse-plugin&#34;&gt;avr-eclipse plugin&lt;/a&gt; (to which I contributed), I wasn&amp;rsquo;t satisfied with CDT.&#xA;The devil is in the small details, like the auto-complete propositions order for example.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Litil chronicle - Chapter 3.3, Expression Parsing</title>
      <link>https://jawher.me/creation-langage-programmation-litil-3-3-expression-parsing/</link>
      <pubDate>Mon, 26 Aug 2013 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-3-3-expression-parsing/</guid>
      <description>&lt;p&gt;In &lt;a href=&#34;http://jawher.me/2013/08/19/creation-langage-programmation-litil-3-2-recursive-descent-parsing/&#34;&gt;the previous post&lt;/a&gt;, I showed how to write a recursive descent parser starting from an EBNF grammar.&lt;/p&gt;&#xA;&lt;p&gt;The grammar used as an example described a minimal expression language that could only handle numeric and boolean literals and if/else expressions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Litil chronicle - Chapter 3.2, Recursive Descent Parsing</title>
      <link>https://jawher.me/creation-langage-programmation-litil-3-2-recursive-descent-parsing/</link>
      <pubDate>Mon, 19 Aug 2013 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-3-2-recursive-descent-parsing/</guid>
      <description>&lt;p&gt;In &lt;a href=&#34;http://jawher.me/2013/08/11/creation-langage-programmation-litil-3-1-introduction-parsing/&#34;&gt;The previous post&lt;/a&gt;, I talked about some of the theory behind parsing.&#xA;This post however will be about how to actually write down a parser, which given a list of tokens generated by the lexer would generate an AST.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Litil chronicle - Chapter 3.1, Introduction to parsing</title>
      <link>https://jawher.me/creation-langage-programmation-litil-3-1-introduction-parsing/</link>
      <pubDate>Sun, 11 Aug 2013 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-3-1-introduction-parsing/</guid>
      <description>&lt;p&gt;After a &lt;a href=&#34;http://jawher.me/2012/10/20/creation-langage-programmation-litil-1/&#34;&gt;teaser about the Litil language&lt;/a&gt;,&#xA;and a &lt;a href=&#34;http://jawher.me/2012/10/21/creation-langage-programmation-litil-2-lexer/&#34;&gt;&lt;em&gt;(boring)&lt;/em&gt; chapter about the lexing component&lt;/a&gt;,&#xA;now we finally get to the interesting parts, starting with the parsing.&lt;/p&gt;&#xA;&lt;p&gt;There&amp;rsquo;s one catch though: we&amp;rsquo;ll have to go a bit into the theory of grammars and parsing.&#xA;But bear with me: I&amp;rsquo;ll try to keep it short and not bore you with too much theory and technical jargon.&lt;/p&gt;</description>
    </item>
    <item>
      <title>I created my first PCB !</title>
      <link>https://jawher.me/first-pcb/</link>
      <pubDate>Sun, 04 Aug 2013 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/first-pcb/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;image&#34; src=&#34;https://jawher.me/first-pcb/img/achievement-pcb.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Earlier this morning, I received 10 of these beauties in my mailbox:&lt;/p&gt;&#xA;&lt;p&gt;Top:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;image&#34; src=&#34;https://jawher.me/first-pcb/img/tiny85-devboard-pcb-top.jpg&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;(Overly pessimistic)&lt;/em&gt; Bottom:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;image&#34; src=&#34;https://jawher.me/first-pcb/img/tiny85-devboard-pcb-bottom.jpg&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a development board I designed to ease prototyping with Atmel&amp;rsquo;s &lt;a href=&#34;http://www.atmel.com/devices/attiny85.aspx&#34;&gt;tiny 85&lt;/a&gt; micro-controllers.&#xA;It&amp;rsquo;s a rather basic design with the tiny 85 in a DIP8 package in the center with traces to expose 5 of its digital pins (PB0 to PB4) plus ground and VCC via a header to the top.&lt;br&gt;&#xA;To the bottom, other traces connect to a 10-pin ISP connector for programming.&lt;br&gt;&#xA;There is also a power indicator led, a reset button and decoupling caps, and that&amp;rsquo;s about it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Une génération de &#34;select * =&gt; tableau&#34;</title>
      <link>https://jawher.me/generation-select-tableau/</link>
      <pubDate>Sat, 10 Nov 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/generation-select-tableau/</guid>
      <description>&lt;p&gt;Nous sommes des développeurs.&#xA;Du moins, si vous lisez ce blog, vous l&amp;rsquo;êtes très probablement.&#xA;On est des millions dans le monde.&#xA;Certains d&amp;rsquo;entre nous sommes passionnés.&#xA;On lit des blogs, on fait de la veille techno, on télécharge et teste les nouveaux frameworks dès leur alpha.&#xA;On peut s&amp;rsquo;appeler des consultants, développeurs artisans, développeurs passionnés, des &lt;em&gt;ninjas&lt;/em&gt;, des &lt;em&gt;rockstars&lt;/em&gt;, tout ce que vous voulez.&#xA;La majorité du temps, ce qu&amp;rsquo;on fait à longueur de journée se résume à:&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Litil chronicle - Chapter 2, The text chopper, aka Lexer</title>
      <link>https://jawher.me/creation-langage-programmation-litil-2-lexer/</link>
      <pubDate>Sun, 21 Oct 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-2-lexer/</guid>
      <description>&lt;p&gt;In this second post of the the Litil chronicle, I&amp;rsquo;m going to talk about lexing.&#xA;Lexing is generally the first step in a compiler&amp;rsquo;s pipeline.&#xA;What it does is transform the source code from its textual representation to a token sequence that&amp;rsquo;ll be consumed by the next stage, i.e. the parser.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My projects</title>
      <link>https://jawher.me/my-projects/</link>
      <pubDate>Sat, 20 Oct 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/my-projects/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m mainly using &lt;a href=&#34;http://github.com/jawher&#34;&gt;Github&lt;/a&gt; to publish the (tiny) projects I&amp;rsquo;m working on in my free time:&lt;/p&gt;&#xA;&lt;h2 id=&#34;mowclihttpsgithubcomjawhermowcli&#34;&gt;&lt;a href=&#34;https://github.com/jawher/mow.cli&#34;&gt;mow.cli&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;mow.cli is a sophisticated yet simple to use library to write command line applications in Go.&lt;/p&gt;&#xA;&lt;p&gt;Behind the scenes, mow.cli uses finite state machines and backtracking to validate the program call syntax and correctly extract the passed options and arguments values, à la docopt, although in mow.cli it is correctly implemented.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Litil chronicle - Chapter 1, The inception of a programming language</title>
      <link>https://jawher.me/creation-langage-programmation-litil-1/</link>
      <pubDate>Sat, 20 Oct 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-1/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve always been fascinated by compilers and programming languages.&#xA;I was fascinated by the fact that I could take control of the computer to make it do what I want.&#xA;But I was even more impressed with the compilers themselves.&#xA;The fact that they could &lt;em&gt;understand&lt;/em&gt; and execute what I&amp;rsquo;ve fed them was comparable to magic to me at that time.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Moving from Jekyll to Pelican</title>
      <link>https://jawher.me/moving-from-jekyll-to-pelican/</link>
      <pubDate>Fri, 19 Oct 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/moving-from-jekyll-to-pelican/</guid>
      <description>&lt;p&gt;I just finished migrating this blog from Jekyll to &lt;a href=&#34;http://blog.getpelican.com/&#34;&gt;Pelican&lt;/a&gt;.&#xA;I&amp;rsquo;ve stumbled upon (no pun intended) Pelican a couple of months ago on &lt;code&gt;/r/python&lt;/code&gt;.&#xA;I thought it was cool but that was it.&#xA;But recently, I&amp;rsquo;ve decided I&amp;rsquo;d be translating some Litil posts from French to English in the next weeks.&#xA;I&amp;rsquo;ve checked, and there wasn&amp;rsquo;t any straitforward way to handle translation in Jekyll.&#xA;I could create the translations as new posts, but that would just be messy.&#xA;That&amp;rsquo;s when I remembered Pelican, and the fact that it handled translations out of the box.&#xA;The fact that Pelican is written in Python didn&amp;rsquo;t hurt, as I&amp;rsquo;m much more comfortable with Python than with Ruby.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Le conte de Litil - Chapitre 2, Le dépeceur du texte, aka Lexer</title>
      <link>https://jawher.me/creation-langage-programmation-litil-2-lexer-fr/</link>
      <pubDate>Wed, 27 Jun 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-2-lexer-fr/</guid>
      <description>&lt;p&gt;Dans ce deuxième post du conte de Litil, je vais parler de la phase de lexing. C&amp;rsquo;est généralement la première étape dans la construction d&amp;rsquo;un compilateur (ou évaluateur) d&amp;rsquo;un langage donné. Cette phase sert à transformer le texte du code source (séquence de caractères) vers une séquence de &lt;code&gt;tokens&lt;/code&gt;, qui seront consommés par le parseur à l&amp;rsquo;étape suivante.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Le conte de Litil - Chapitre 1, Génèse d&#39;un langage de programmation</title>
      <link>https://jawher.me/creation-langage-programmation-litil-1-fr/</link>
      <pubDate>Mon, 04 Jun 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/creation-langage-programmation-litil-1-fr/</guid>
      <description>&lt;p&gt;Comme beaucoup d&amp;rsquo;autres passionnés d&amp;rsquo;informatique, j&amp;rsquo;ai toujours été fasciné par les compilateurs et les langages de programmation, et ce depuis que j&amp;rsquo;ai appris à programmer. Mais ma fascination ne s&amp;rsquo;arrêtait pas au fait que je pouvais commander ma machine en écrivant des programmes pour produire des résultats &lt;em&gt;(parfois)&lt;/em&gt; utiles. En effet, j&amp;rsquo;étais encore plus fasciné par les compilateurs eux-mêmes. Je trouvais magique qu&amp;rsquo;un programme réussisse à &lt;em&gt;&amp;ldquo;lire&amp;rdquo;&lt;/em&gt; et à exécuter ce que je venais de saisir.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Running multiple python apps with nginx and uwsgi in emperor mode</title>
      <link>https://jawher.me/multiple-python-apps-with-nginx-uwsgi-emperor-upstart/</link>
      <pubDate>Fri, 16 Mar 2012 00:00:00 +0000</pubDate>
      <guid>https://jawher.me/multiple-python-apps-with-nginx-uwsgi-emperor-upstart/</guid>
      <description>&lt;p&gt;This is a recipe on how to &lt;strong&gt;easily&lt;/strong&gt; run multiple Python web applications using uwsgi server (in emperor mode) and behind nginx.&#xA;Most existing docs and blogs would show how to manually start uwsgi to run a single app. In this post, I&amp;rsquo;ll show how to configure uwsgi as a system service (with upstart) capable of serving multiple python WSGI compliant web applications by simply placing them in a standard location and adding an standard xml file.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
