Logger les données d'une requête POST avec apache

Posted on 2017-02-13 in Trucs et astuces • Tagged with apache

D'après le manuel, une façon simple de logger le contenu d'une requête POST (a priori uniquement en développement pour débugger l'application, sinon la taille des logs de production va exploser et on risque de faire fuiter des informations) est d'utiliser le module dumpio, soit pour Apache 2.4 :

# On met …

Continue reading

Form validation with Aurelia

Posted on 2017-01-24 in Aurelia • Tagged with aurelia, android, mobile

Note

Update from 2017-01-25: after new exchanges with Doug Kent I was able to improve my workaround to disable the submission of the form until it is valid. See the Disable the submission until the form is valid section for the code.

I promised some months ago that I will …


Continue reading

Trouver tous les boutons sans attributs type

Posted on 2017-01-16 in Trucs et astuces • Tagged with HTML, Python, formulaire

Certains navigateurs (comme Chrome) afficheront une erreur dans la console si vous avez des formulaires créés avec la balise form et des boutons sans l'attribut type. Il peut donc être intéressant d'avoir un petit script qui trouve tous ces boutons pour ajouter l'attribut type. La bonne nouvelle c'est qu'avec Python …


Continue reading

Make navigation user friendly on your Aurelia SPA

Posted on 2016-08-28 in Aurelia • Tagged with aurelia, font awesome

Add a spinner

  1. Add the font awesome files to your project (CSS and fonts files).

  2. Import the font awesome style sheet in your index.html

    <link rel="stylesheet" href="/assets/fonts/fontawesome/font-awesome …

Continue reading

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