[DIY] Fix a Riviera & Bar Kettle

I own a Riviera&Bar Kettle model QD 658 A. It's been working for years, but recently it started to go crazy. It would start heating to 100°C by itself as if a ghost pressed the button. This article explains how to fix this. Explanations: The problem is…

READ MORE

[Synology] Auto connect VPN at startup

The built-in VPN client of Synology DSM 6 is excellent, but it lacks one key feature: being able to connect the VPN automatically after a reboot. Prerequisite: 1. You need to have SSH enabled on the Synology 2. You need basic knowledge of Unix (sudo, cat, vi, chmod, ln -s)…

READ MORE

[Linux] daemon() considered harmful

I'm currently writing a Linux program that is supposed to run in the background. When it was time to implement the --daemonize, I look at the current options and I was quite surprised to learn that daemon() or fork() are not the best way to write a daemon nowadays. Indeed,…

READ MORE

Embrace abstractions!

Abstraction is probably the most powerful concept in programming. Nevertheless, from time to time, I hear (or read) people questioning the value of abstractions. Here is my answer. We are surrounded by abstractions An abstraction is a simplified model (a mental model, if you will) that is used in place…

READ MORE

[C++] Embarcadero C++ Builder is a joke

Last week I discovered that Embarcadero offers a free version of C++ Builder Starter, apparently for a limited period. So I took this opportunity to install the IDE and try to compile ArduinoJson. It turned out to be a very disappointing (nearly infuriating) experience. BTW, if you try to get…

READ MORE

[CSS] Transform a button to a text input

Here is a cool CSS trick I found for actions that require a text value: See the code in action on CodePen HTML <form id='buttonWithText' onSubmit={this.onSubmit}> <div id='slider' class='collapsed'> <input type='button' id='toggle' value='Change username'> <input…

READ MORE

[Links] JSON Hypermedia Types

When designing a REST API, every developer faces this issue: what JSON format to use for the API. Let's see the current options. HAL - Hypertext Application Language Collection+JSON - Hypermedia Type JSON API UBER - Uniform Basis for Exchanging Representations Mason - A hypermedia enabled JSON format YAHAPI…

READ MORE

[Links] Mission statements

Today at work, we talked about the idea of having a "mission statement". We wanted to write down the values that our company carries. That would be a few statements that define who we are as a company and could guide us when making decisions. That exercise was more complicated…

READ MORE