Atelier de traduction de la doc de Python

Posted on Sat 09 December 2017 in 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 …


Continue reading

Compose Key vs Dead Key

Posted on Sat 18 November 2017 in 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 …


Continue reading

Python Documentation Translation

Posted on Fri 09 June 2017 in 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 …


Continue reading

A JustInTime class

Posted on Tue 04 April 2017 in 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 …


Continue reading

ashttp: vt100 screen scraping exported over HTTP

Posted on Tue 04 April 2017 in 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 …


Continue reading

Automating GNU screen startup

Posted on Tue 04 April 2017 in 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 …


Continue reading

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

Posted on Tue 04 April 2017 in 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 …


Continue reading

C# Using alias directives

Posted on Tue 04 April 2017 in 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 …

Continue reading

Cisco CheatSheet

Posted on Tue 04 April 2017 in 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 …


Continue reading

Combinatory logic from scratch

Posted on Tue 04 April 2017 in 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 …

Continue reading