Compare commits

...

5 Commits

Author SHA1 Message Date
nono
9529e4a15f Merge branch 'master' of ssh://git.n07070.xyz:1968/n07070/blog 2022-07-28 13:46:53 +02:00
nono
ddefb5523b Ajout d'une liste de cartes sympa 2022-07-28 13:46:24 +02:00
nono
4614581899 Update theme 2022-07-24 15:52:57 +02:00
nono
3d26630950 Removed the publish.sh script, now using an Ansible role 2022-07-24 15:52:14 +02:00
nono
b42719b9c2 Add new article 2022-07-24 15:45:07 +02:00
5 changed files with 127 additions and 47 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 KiB

View File

@ -0,0 +1,77 @@
---
draft : false
categories : ["Blog","Français"]
title : "Collection de cartes et de plans "
displayInMenu : false
dropCap : true
description : "Ce mois-ci, c'est cartographie."
date : "2022-07-27T13:37:00Z"
displayInList : true
resources:
- name: featuredImage
src: "cover.jpg"
---
## [Bassins versans du monde entier](https://river-runner-global.samlearner.com/)
Cette carte vous permet de suivre le voyage de toute goutte d'eau vers l'océan ; cliquez sur n'importe où et vous verrez où donc va toute cette eau. Vous aurez même droit à un petit voyage sur une carte en 3D.
## [Carte des hammeaux légers de France](https://hameaux-legers.org/habitat-reversible/carte_aux_tresors)
Une véritable carte aux trésors pour qui veut déserter les villes et le capitalisme industriel urbain. Géré par l'association des hammeaux légers, vous y retrouverez les communes favorables, les hammeaux légers, des gens intéressés, des collectifs, des lieux ressources, etc... Et le design du site est très joli, à mon avis.
## [Carte des chantiers en cours à Paris](https://opendata.paris.fr/explore/dataset/chantiers-a-paris/map/)
Que vous ayez besoin de savoir si tel ou tel rue est en travaux, voir où sont les grues, ou pour toute autre raison. Le site d'Open Data de Paris est très complet, et vous pourrez y trouver plus que juste les chantiers en cours.
## [Carte des Échanges Internets](https://www.internetexchangemap.com/)
Lieu d'interconnexion des fournisseurs d'accès à Internet, les échanges internets sont des infrastructures stratégiques du réseau internet. Avec adresse et responsables, au besoin.
## [Carte des risques liés à l'eau](https://waterriskfilter.org/explore/map)
Réalisé par le WWF, cette carte vous permet d'explorer les risques liés à l'eau ( inondation, pollution de l'eau, sécheresse... ). Elle n'est pas très précise, mais elle expose de nombreux facteurs sur différents fond de carte.
## [Carte des sous terrains](https://indoorequal.org/)
Basé sur Open Street Maps, voici une carte des lieux souterrain. Par exemple ; les gares, les centres commerciaux, et passages sous terrain... Non, c'est pas une carte des catacombes de Paris.
## [Humanitarian Open Street Maps](https://www.hotosm.org/what-we-do)
En cas de catastrophe naturelle, la topographie des lieux peut changer radicalement. Si un tremblement de terre coupe des routes, détruit des batîments, il est crucial pour les gens et les secours de savoir par où passer, où aller pour se réfugier. HOTosm se charge de coordonner des bénévoles du monde entier à partir d'images satellites, de données du terrain, pour mettre à jour aussi rapidement de possible des cartes Open Street Maps.
## [Carte ADS ; des avions dans le ciel ](https://globe.adsbexchange.com/)
Suivre un vol en cours, connaître la position d'un avion, voici une carte pour le faire. Vous avez accès à la hauteur des avions, leurs numéros de vol, leurs destinations...
## [Serveurs Mastodon régionaux d'Allemagne](https://mastodon.xyz/@lightone/105759733156499126)
Une carte datant de 2021 des serveurs Mastodon en Allemagne par région.
## [Carte des routes des villes](https://anvaka.github.io/city-roads/?q=Paris&areaId=3600007444)
Choissiez n'importe quelle ville du monde, et vous aurez une représentation artistique des routes qui la compose.
## [Moniteur des centrales nucléaires](https://nuclear-monitor.fr/#/plant/BELLEVILLE)
Carte des réacteurs nucléaires français avec leur activité, production, état des réacteurs...
## [Carte des trains de France](https://carto.graou.info/)
Comme pour les avions, mais pour les trains Français. Tout les trains n'y sont pas forcément, mais y'a aussi une cartographie du réseau férré français avec les points kilométriques, les points radio...
## [Édition en temps réel sur OSM](https://osmlab.github.io/show-me-the-way/)
Tout les changements fait dernièrement sur Open Steet Maps.
## [Carte des câbles fibre sous-marin](https://www.submarinecablemap.com/)
Saviez-vous que nos fonds marins sont couvert de câbles depuis la fin du 19ème siècle ? Et si oui, saviez-vous à quoi ça ressemble aujourd'hui ?
---
Si vous avez des cartes que vous aimeriez m'envoyer pour que je les rajoutes à cette liste, n'hésitez pas ! Voir la page [À propos](/about-me/)
_Illustration de couverture par [adampadam](https://wordpress.org/openverse/image/2b1a8f75-2f06-45f4-bd2d-8ff481387ce4)_

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,50 @@
---
categories : ["English"]
title : "Little Prynter"
displayInMenu : false
dropCap : false
description : "I've reinvented the fax : why, how, and why you could do it yourself too."
date : "2022-07-24"
draft : true
displayInList : true
resources:
- name: featuredImage
src: "cover.jpg"
---
A few years ago, a friend of mine showed me the [Little Printer](https://www.theverge.com/2013/1/29/3927228/little-printer-review), created by Berg Inc. I loved the ideal of having what was more a less a fax machine, that I could use to print out anything for very very cheap. It's based on a thermal printer, so it doesn't use any ink, and the paper is the same you would use to print out receipts. The issue was that it cost nearly 300€ (!), and that was way too much money for something that was a gimmic.
Moreover, it was pretty limited : it was tied to a proprieatry cloud system, and what I feard back then became true. Berg stopped supporting the Little Printer, and the whole ecosystem was now ready to become trash.
Thankfully, the [Nord Projects design studio hacked it back to life](https://nordprojects.co/projects/littleprinters/), and wrote a new app ecosystem for it. But it's cumbersome to setup, and getting your hands on the original Little Printer isn't easy.
A more personnal quarrel I have with designers is perfectly represented in the Little Printer project : It's a very beautiful object, but it's severly limited by it's design. You are expected to use it as a Little Printer, even after it's death. Using it in another setting is difficult because it's fragile. You can't really sell it or repurpose it once you've grown board with it. You would need to explain how to set it up, bring the little IoT box with it, etc...
I still liked the idea.
Another friend, whom I was visiting, had a thermal printer in his box of things-that-gather-dust and was happy to lend it to me so I could try it out. I started to build my own Little Printer.
I wanted to build something KISS ( Keep It Super Simple ), easy to replicate, and that I could eventually build on over the years. Using existing components and combining them together in a way that was easy to reverse was also a priority. I had a Raspberry Pi, a computer running Linux, a USB webcam, and a Adafruit Thermal Printer.
The first thing was to learn how to use the thermal printer.
Thankfully, Adafruit has tutorial on how to build a polaroïd camera with a thermal printer, which I followed and built a first version of the little printer. It was nice, but had a few issues :
- The printer was super cheap, and wasn't very reliable. It often printed gibberish, and needed to be restarted.
- It only had a serial connection, and it wasn't possible to know when the paper ran out.
- The library I was using hadn't been updated in ages, and needed a CUPS driver dowloaded from a random chinese website. I tried using newer forks, but they didn't seem to fix the problems mentionned above.
Even with theses issues, I knew that thermal printing was a cool tech, and I could use it for a lot of my other printing and propaganda projects. So I started looking for another thermal printer.
I eventually setteld on an EPSON TM20-III, which is around 250€. Nearly the same prince as a LittlePrinter, but it has Ethernet, a standard-ish protocol, USB, two sizes of paper, a cutting blade, 300 dpi resolution, and prints so fast that when you fuck up the orientation of the print, before you can stop it, it already printed 3 meters of paper. In a word, it's perfect. I then bought 4 _kilometers_ of paper for around 50€.
I wanted to write the software in Python, because I found a very nice library for ESC/POS, the standard used by the EPSON printers. I also had built software with Flask, a python web framework, and I loved the design style and the ease it gave to build APIs.
After a few days of hacking, I finally had a complete photomaton that could be accessed from anywhere, printed anything for dirt cheap, and that I could easly extend.
There was Little Prynter.
A few pictures to show it off ;
I also paid attention to the git repository I was writing this code to, and I provide instructions on how to set it up if you want to. You can find it all here : [Little Prynter @ git.n07070.xyz](https://git.n07070.xyz/n07070/littleprynter).

View File

@ -1,47 +0,0 @@
#!/usr/bin/env bash
# This script will publish the compiled output of the blog
# as it is now in this directory.
# It could be futher improved by taking this version,
# making a git branch at this point, or a git tag
# to enable rollbacks.
# Make errors be fatal
set -e
WEBSITE_URL="https://n07070.xyz"
echo ">> Update the remotes..."
# Last blog version
git pull origin master
# Get last theme version
git submodule foreach git pull origin main
# Dither images present in the blog, moving the existing images to filename_original.jpg
# Commented, because colors is nice, and dithering actually brings more issues than it solves:
# Images size tends to be bigger, relative to quality,
# It's not easy for some people to see the image that way,
# It's more trouble than it's worth.
# echo ">> Dithering the images..."
# ## Travel down the directory content/
# find "./content" \ # Find from the content directory
# -maxdepth 4 \ # Maximum depth of 4 dirs
# -type f \ # Find only files
# -name "*.jpg" \ # Find only JPEG files
# -exec \ # Execute next lines
# cp {} {}.original && \ # Copy file and add .original to it's filename
# convert {} -colorspace GRAY -o ordered-dither o2x2 {} &&\ # Dither image
# jpegoptim {} -S 80 -t ; # Optimize the jpeg file
# Generate the openring ( https://git.sr.ht/~sircmpwn/openring )
echo ">> Generating the openring..."
openring -s https://www.laquadrature.net/feed -s https://blog.mondediplo.net/rss/ -s https://solar.lowtechmagazine.com/feeds/all-en.rss.xml < themes/blogotheme/layouts/partials/openring-in.html > themes/blogotheme/layouts/partials/openring-out.html
echo ">> Building the website..."
hugo --themesDir themes --theme blogotheme --baseURL="https://n07070.xyz" --enableGitInfo --minify --templateMetrics
echo ">> All done !"