Switching an application to aurelia-cli

Posted on 2016-08-17 in Aurelia • Tagged with aurelia, aurelia-cli

About a month ago, I started to make experiments with the webpack plugin for Aurelia in order to split my applications into multiple bundles. The application in question is a strategy game called Arena of Titans. You can see it there (click play to create a game, or use this …


Continue reading

Utiliser des métaclasses pour créer simplement des enums en Python 3

Posted on 2016-08-01 in Programmation • Tagged with Python

Depuis la version 3.4, Python dispose d'une classe Enum qui permet de créer des enums avec quelques propriétés intéressantes (itération, nombre d'éléments, accès aux éléments de l'enum comme ceux d'un objet ou d'un dictionnaire). Je vous laisse lire la documentation pour les détails.

Cependant, dans mon cas, je les …


Continue reading

Plugin for statistics with Piwik on an Aurelia SPA

Posted on 2016-06-05 in Aurelia • Tagged with aurelia, Piwik

On Arena of Titans a game based on the Aurelia web framework I am developing with a friend, we use Piwik to have statistics about our visitors. When we were about to launch the game, I realized that Piwik was not logging all the pages but only the pages on …


Continue reading

Resolving blank page problem of Aurelia app with webpack on Safari

Posted on 2016-06-03 in Aurelia • Tagged with aurelia, aurelia-i18n, i18n, Intl, Safari, Webpack

While asking users to test an Aurelia application, it appeared that it didn't work on Safari due to this error:

Error in Safari console: Unhandled rejection webpackContextResolve

It comes from the fact that Safari doesn't support the internationalization (window.Intl) API.

In order to solve it, I had to manually include the Intl.js polyfill. Since it …


Continue reading

How I switched an Aurelia application to webpack

Posted on 2016-04-24 in Aurelia • Tagged with aurelia, webpack

Note: I wrote this post when aurelia-webpack wast still in pre 1.0.0 release. As niieani pointed out in the comments part of it may be outdated and you way want to use aurelia-webpack with easy-webpack instead. The general ideas are still valid though.

First thing first: why would …


Continue reading

Small comparison of ionic2 and Aurelia + Framework7 for hybrid mobile applications

Posted on 2016-03-15 in Aurelia • Tagged with ionic2, angular2, aurelia, framework7, android, mobile

Update (2017-08-14): I finally published the part on Aurelia UX. See it here.

Updates (2017-01-24):

  • aurelia-interface has been deprecated in favour of aurelia-ux.
  • Add a link to my article about aurelia-validation.
  • I don't think I'll start a project to use Aurelia with Framework7. I want to test aurelia-ux first. However …

Continue reading

Fichiers service pour seafile

Posted on 2015-11-21 in Trucs et astuces • Tagged with systemd, seafile

J'ai écrit des fichiers services pour utiliser seafile plus facilement avec systemd (à placer dans /etc/systemd/system/). Vous pouvez les télécharger :

[Unit]
Description=The seafile cloud service
Requires=mariadb.service
After=mariadb.service


[Service]
Type=forking
PIDFile=/var/www/haiwen/pids/seaf-server.pid
User=seafile
ExecStart=/var …

Continue reading

Utiliser un tableau dans un Makefile

Posted on 2015-11-12 in Trucs et astuces • Tagged with make

J'ai récemment eu besoin de lancer une tâche make pour plusieurs arguments. Je me suis demandé si on pouvait dans le Makefile, en passant une variable en argument sous la forme portals=geojb,n16, répéter une tâche plusieurs fois. Pour cela, il faut réussir à boucler sur l'entrée. Cela se …


Continue reading

Tips for libvirt/virtmanager

Posted on 2015-11-12 in Trucs et astuces • Tagged with Virtualization, libvirt, virtmanager

Static IP

You can affect a static IP to a guest of a libvirt instance with the following command:

virsh net-update default add ip-dhcp-host "<host mac='52:54:00:7d:2a:5e' …

Continue reading

Afficher un SVG progressivement avec reveal.js

Posted on 2015-11-12 in Trucs et astuces • Tagged with reveal.js, SVG, présentation

Pour cela, il faut commencer par installer un plugin : svg fragments. Dans votre installation reveal, dans le sous dossier plugin, cloner le dépôt :

git clone https://gist.github.com/bollwyvl/fe1d2806449487cdf88a

Ensuite, chargez le plugin :

  1. Ajoutez la bibliothèque D3 <script src="reveal/js/d3.min.js"></script>télécharger séparément …


Continue reading