Language detection in @redken_bot

Introduction Before the move to Python3, redken had per-group language configuration by using i18n, with the upgrade/rewrite of Python3 code there were some issues and I had to remove the support, defaulting everything to English (most of the outputs where already in English so not a great loss). On another side, having to manually configure each channel could be problematic as most users just add the bot to their groups but don’t care about other settings that might be useful like welcome message, inactivity for kicking out inactive users, etc. ...

March 25, 2020 · 6 min · Pablo Iranzo Gómez

English Game - Baker Street

Introduction Ian, our English teacher from Tailor-Made Communication has given to us this game. There are 5 buildings with consecutive numbers and some data to fill. A set of clues is given in order for the reader to deduct the data and to introduce some vocabulary. Fill-in table Category 12 14 16 18 20 Name Marital status Pet Book Drink Clues Miss Dudd owns a dog The woman at number 12 has two pets. A tortoise and a rabbit. The dog owner drinks beer. Mrs Evans is married. Mr Abraham is a widower, his neighbour is divorced. The married woman reads thriller The woman who likes coffee does not own a pet. There are five pets in Baker Street, a cat, a dog, a canary, a rabbit and a tortoise. The bachelor likes historical novels. Mr Abraham cannot read, he watches TV. The widower and the spinster like beer. Mrs Birt likes to read books by Charles Dickens. The whisky drinker owns a canary. The dog owner living next door to the bachelor is keen on love stories. Mr Charles lives between Miss Dudd and Mrs Birt The married woman drinks wine The pet at number 14 is a dog. Mr Abraham lives at number 20 The dog owner and the cat owner do not live next to each other Fold here ...

March 24, 2020 · 2 min · Pablo Iranzo Gómez

Lego Creator Fiat 500 10271

Today, as part of my isolation I was building the Lego Fiat 500 🛒#ad. I was not sure about it, but I liked a lot the building experience and the final result. Enjoy! (and if you do, you can Buy Me a Coffee ) ...

March 22, 2020 · 1 min · Pablo Iranzo Gómez

Yaspeller hook for pre-commit

I’ve made a PR that got merged into Yaspeller repository which adds support for pre-commit to spell check your files. It requires simple configuration, just add this snippet to your .pre-commit-config.yaml: - repo: https://github.com/hcodes/yaspeller.git rev: master hooks: - id: yaspeller files: "\\.en\\.md" The plugin will then initialize and spell check your files via yaspeller. It will use the standard .yaspeller.json file for dictionary and settings and automate it for each new commit you work on. ...

March 12, 2020 · 1 min · Pablo Iranzo Gómez

Lego Ninjago City 70620

Some pics about the ‘almost’ modular Lego Ninjago City 🛒#ad. Note that it’s HUGE compared to other buildings and has lot of details. The water on the lower floor is defined by a set of bricks plus another set of transparent ones on top. Some of the details: Has an elevator from the lower floor to the top restaurant hidden areas to store advertisements ATM for getting money hidden area for ninja suite etc. Overall: one of the best sets I built. ...

February 24, 2020 · 1 min · Pablo Iranzo Gómez
This blog is a participant in the Amazon Associate Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.