Atelier de traduction de la doc de Python

Posté le sam. 09 décembre 2017 dans blog

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 …


Continuer à lire

Compose Key vs Dead Key

Posté le sam. 18 novembre 2017 dans blog

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 …


Continuer à lire

Python Documentation Translation

Posté le ven. 09 juin 2017 dans blog

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 …


Continuer à lire

A JustInTime class

Posté le mar. 04 avril 2017 dans blog

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 …


Continuer à lire

ashttp: vt100 screen scraping exported over HTTP

Posté le mar. 04 avril 2017 dans blog

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 …


Continuer à lire

Automating GNU screen startup

Posté le mar. 04 avril 2017 dans blog

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 …


Continuer à lire

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

Posté le mar. 04 avril 2017 dans blog

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 …


Continuer à lire

C# Using alias directives

Posté le mar. 04 avril 2017 dans blog

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 …

Continuer à lire

Cisco CheatSheet

Posté le mar. 04 avril 2017 dans blog

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 …


Continuer à lire

Combinatory logic from scratch

Posté le mar. 04 avril 2017 dans blog

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 …

Continuer à lire