Julien Palard

Python Developer and Trainer

Articles by Julien Palard

Atelier de traduction de la doc de Python

C'est parti, j'ai le GO de la PSF et de NUMA Paris, le 9 janvier 2018 on va faire un atalier pour traduire la documentation de Python en fraçais, ce sera un peu la suite de l'atelier de septembre de la PYCON FR.

On en est déjà à 28% traduit …

Compose Key vs Dead Key

L'AFNOR à lancé autour de juin 2017 un appel à commentaires à propos de la normalisation du clavier français, réunissant 3725 retours.

Parmis ces retours certains mentionnent la compose key :

[…] il est possible de composer une quantitée de symboles bien plus grande qu'avec une dead key

[…] et éventuellement une touche …

Python Documentation Translation

This is an overview of what is done, what we're doing, and what's needs work about the translation of Python documentation.

Historical context

The first step to ensure every other steps are worth it was to officialize the translations. This is now done with the PEP 545.

PEP 545: TL …

A JustInTime class

I discovered in my code a redundant pattern :

private SomeType _something;
private SomeType something { get { if (_something == null) _something = new SomeType(....); return _something;} }

Usefull in Silverlight, when your Blender always say "Can't compile ! Strange errors ! but compiles when i comment your WebClient... in ctor of that class..." So i use …

ashttp: vt100 screen scraping exported over HTTP

Originally written for logtop I just wrote a vt100 screen scraper that listen to a port and serve the screen over HTTP. Basically, you want a top (or logtop ;-) ) to be displayed in your website back office ? But top outputs in your terminal and you don't know how to capture …

Automating GNU screen startup

At work I use GNU screen with one window per server (ssh connection), and when I loose my screen, it takes minutes to rebuild the naming and the ssh connections ... So I searched and found a PHP version on Jon's blog but I don't like PHP and don't want a …

[Bashism] How to generate random number without $RANDOM ?

There is a common bashism, that is to use $RANDOM. Typically you'll have to remove bashism while rewriting your scripts for dash or sh. There is a lot of solutions to generate random numbers in many different ways, but I'm not here to pollute the internet demonstrating 42 differents ways …

C# Using alias directives

Just found in section 9.4.1 of the C# language specification: The using keyword can be used to alias a namespace or a type name:

using-alias-directive: using identifier = namespace-or-type-name ;

You can read more about that here : csharp language specification.doc, Or just try to use it:

// As the specification …

Cisco CheatSheet

Misc

Get privileges

router>enable
router#

Enter configuration mode

router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#

Reset

router#copy flash:clean-config startup-config
router#reload

Configuration

router(config)#router <protocol> <nbr>
router(config)#show ip protocols
router(config)#show running-config

auto completion …

Combinatory logic from scratch

Cause it's sooooo sexy, let's speak about Combinatory Logic!

  • Rule 1: You don't talk about Combinatory Logic
  • Rule 2: You don't talk about Combinatory Logic
  • Rule 3: Combinatory Logic is based on Lambda Calculus (see Wikipedia for both)
  • Rule 4: A combinator is a Lambda expression taking One and only …