BlocNotes

Notepad of a tinker, maker, hacker or whatever you call it :)

HAProxy - How to use Let's encrypt certificate

Thanks to Let's Encrypt program, we can now generate free SSL certificate. I used the beta program with success, but now I tried on another server running through HAProxy. This is a trick to combine certificate, chain and private key in order to be loaded by HAProxy :) cat cert.pem chain.pem privkey.pem...

Read More

Flask-Security - How to extend a form and the validator

I am currently building a Python application, which let me use: Flask - a simple and very well documented web Framework Flask-Security - an extension dedicated to user management. While it is a really great extension, there is some documentation missing or quite hard to find on search engines or StackOverflow. How to add...

Read More

The Wipy - Wifi selection at startup

I recently bought the Wipy development board to try Python (a friend of mine is a big fan), and will have a TI CC3200 (ARM Cortex-M4+wifi) development board even if I prefer develop in C. Here is just a snippet allowing to ground or set to 3.3V GP4 in order to connect...

Read More

rss2mail - Configuration file

I have lost few couples of minutes trying to figuring where and how rss2mail is storing its configuration files, as it seems not be written in the documentation. It is a small couples of Python scripts which parse an RSS feed and send it to an email address, but configuring it to have HTML...

Read More

FTDI troubles and Mac OS X

I recently bought an SSD for my old Apple computer. I updated the system from Snow Leopard to Yosemite as some applications requires a newer system. Two weeks after I found that my FTDI chip (serial to USB converter) was faulty. Use another, same problem. After a quick loop with an oscilloscope, the reset...

Read More

Some fun with an accelerometer

I recently discussed with some friends about sensors to record jumps height and hang time when kitesurfing, which are really expensive and need to wear a phone in a waterproof case. As it is a useless sensor and just to have some fun, I wanted to try with a cheap sensor, an µC and...

Read More

3D Printing - Get rid of moisture

We designed a 3D printer in Grenoble's Hackerspace (France), which works really well thanks to its stiffness. Nevertheless, I had some troubles regarding PLA humidity: there is bubbles at the nozzle outlet when it absorbs too much moisture. So I found that: PLA might arrive from supplier with moisture, I had the case for...

Read More

Dashing - Job to get data from InfluxDB v0.8 database

To use my dashboard, I wrote some Dashing jobs to be able to query some values from my InfluxDB database. There is 3 versions: In Ruby In node.js (javascript) after my switch to Dashing-js A way to update a 'list' widget The third code also changes the background color of a list widget,...

Read More