[{"content":"I produced the promotional video for Policy Hub (published here) without opening a video editor once.\nAn AI agent did the whole thing:\nit identified the features wrote the narrative drove a real browser to record the demos styled the title cards to the corporate design manual, and assembled the final cut in Blender through an MCP bridge. Everything ran locally on my own hardware with qwen3.8-flash-next served through vLLM — no cloud API, no per-token cost, no footage leaving the machine.\nThe result: a 2:34, 1920x1080 @ 24 fps video, and a reusable pipeline that took about 15 minutes of machine time to regenerate end to end.\nflowchart LR A[Running app] --\u0026gt;|agent proposes| D[Montage script] D --\u0026gt;|Playwright| E[Demo recordings] G[Corporate design] --\u0026gt;|title cards \u0026amp; overlays| H[Edited timeline] E --\u0026gt;|Blender MCP bridge| H H --\u0026gt;|ffmpeg NVENC| J[Promo video] Step 1 — Ask the agent to identify the features The starting point was not a script, it was the app itself. I asked the agent to walk the running application and propose one capture scenario per user-visible feature. It read the feature list, browsed every route, and came back with a numbered scenario plan: catalogue browsing and filters, the members-only card, the criteria mapping, the scope/definitions/policies registers, the 3D reference graph, search, the initiative roster, adequacy decisions, the scheme builder, local schemes, and the about/login/account pages.\nTwo things mattered here. First, the agent had to run the app to know it: the scenarios exercise real data (the actual 143-scheme package), not mocks. Second, I reviewed the list like a table of contents — which features deserve screen time, which are internal. The staff mapping editor, for instance, was initially a scenario; I cut it, because it is an internal tool and not something the promo should show.\nStep 2 — An overarching narrative, in a machine-readable script Raw clips are not a video. The agent wrote a montage script, tour.json, where each beat is one feature: an animated title card, the demo clips that follow it, up to three bullet points, a narration line, and the transition leading in.\n{ \u0026#34;id\u0026#34;: \u0026#34;catalogue\u0026#34;, \u0026#34;kind\u0026#34;: \u0026#34;feature\u0026#34;, \u0026#34;title\u0026#34;: \u0026#34;Policy Hub\u0026#34;, \u0026#34;bullets\u0026#34;: [ \u0026#34;143 schemes: EU acts, national law, Gaia-X labels and aDRI\u0026#34;, \u0026#34;Filter by jurisdiction, domain or name\u0026#34;, \u0026#34;Server-side full-text search across every provision\u0026#34; ], \u0026#34;card_duration\u0026#34;: 4.5, \u0026#34;source\u0026#34;: [\u0026#34;artifacts/01-home-browse-and-filters/session.mp4\u0026#34;], \u0026#34;source_use\u0026#34;: { \u0026#34;in\u0026#34;: 0.0, \u0026#34;out\u0026#34;: 13.6 }, \u0026#34;transition\u0026#34;: { \u0026#34;type\u0026#34;: \u0026#34;crossfade\u0026#34;, \u0026#34;duration\u0026#34;: 0.5 }, \u0026#34;narration\u0026#34;: \u0026#34;Policy Hub puts every conformity-relevant text in one place.\u0026#34; } This file is the single source of truth: the title cards render from it, and the Blender assembly reads it. Changing a headline or reordering the story is a JSON edit, not a re-render marathon. Reviewing the narrative was conversational: \u0026ldquo;make adequacy decisions a standalone feature and insist on the international coverage\u0026rdquo;, \u0026ldquo;never say \u0026lsquo;regulatory catalogue\u0026rsquo;, say Policy Hub\u0026rdquo; — the agent rewrote the beats and the card texts accordingly.\nStep 3 — Fine-tuning the user actions by prompting This is where the iteration loop earned its keep. A screen recording is only convincing if the mouse does what a human would do, and getting there was a dialogue:\n\u0026ldquo;The filter chips are styled spans, not checkboxes — click the text.\u0026rdquo; \u0026ldquo;In the search demo, type resilience instead of legally binding.\u0026rdquo; \u0026ldquo;For the criteria panel, click \u0026lsquo;Expand all\u0026rsquo; and scroll down until a mapped criterion is actually on screen.\u0026rdquo; (This one exposed a real app subtlety: the mapping columns only render on the /criteria tab, so the agent switched the scenario to that URL and scrolled to the first row carrying a criterion badge.) \u0026ldquo;On the reference graph, go fullscreen and click \u0026lsquo;Load more\u0026rsquo; to grow it — and demo it on the AI Act, not the CRA.\u0026rdquo; \u0026ldquo;Use NIS2 instead of CRA for the mapping demo.\u0026rdquo; Some fixes were Playwright-specific: on a page with hundreds of rows, Playwright\u0026rsquo;s actionability waits never settle, so the agent switched to driving clicks through page.evaluate DOM calls — same visible outcome, no timeout.\nThe capture itself is a plain Playwright script with video recording on:\nVIEWPORT = {\u0026#34;width\u0026#34;: 1920, \u0026#34;height\u0026#34;: 1080} self.context = browser.new_context( viewport=VIEWPORT, record_video_dir=str(self.dir / \u0026#34;video\u0026#34;), record_video_size=VIEWPORT, ) Paid pages are reached by forging the session cookie with the app\u0026rsquo;s own dev signing key (the same technique the test suite uses) — no identity provider involved. Each scenario\u0026rsquo;s webm is converted to H.264 mp4 with ffmpeg so Blender\u0026rsquo;s VSE can eat it directly:\nuv run python promo-material/capture.py Step 4 — Corporate design, from the manual to the title cards I dropped the Gaia-X corporate design manual (PDF) into the project and told the agent to follow it. It extracted the rules — Titillium Web (Light body, Semibold headlines), the primary diagonal gradient (~15% purple #B900FF, 60% blue #000094, 25% turquoise #46DAFF) reserved for key visuals, the rounded-end accent line above headlines, logo top-right — and encoded them in a card renderer.\nrender_cards.py turns each beat of tour.json into an animated mp4 title card plus a transparent RGBA overlay PNG carrying the (up to three) bullet points:\nuv run python promo-material/tour/render_cards.py Cards and captures share the exact geometry (1920x1080 @ 24 fps), so the montage never rescales anything.\nStep 5 — Assembly in Blender, through an MCP bridge The last step is where the local LLM drives a 3D-suite-grade tool through a socket. The Blender MCP bridge runs as a headless container (Blender 5.2 LTS + the official blender_mcp extension), with GPU access wired through the compose file and a Cycles CUDA preference baked into the image entrypoint. The agent sends NUL-delimited JSON over TCP:\npayload = json.dumps({\u0026#34;type\u0026#34;: \u0026#34;execute\u0026#34;, \u0026#34;code\u0026#34;: python_code, \u0026#34;strict_json\u0026#34;: True}) + \u0026#34;\\0\u0026#34; sock.sendall(payload.encode()) and the code it sends builds the whole timeline from tour.json: card strip on channel 1, demo clips after it with the in/out trims, bullet overlay on channel 2. The script also carries the transition spec (0.5 s crossfades between beats, with the cards\u0026rsquo; solid-color head doubling as the fade handle) — the published cut currently uses hard cuts, and wiring the cross strips into the assembler is the next iteration. Then a headless render and a GPU encode:\nblender -b /project/policy-hub-promo/promo.blend -a ffmpeg -framerate 24 -i frames/f_%04d.png \\ -c:v h264_nvenc -preset p5 -cq 19 -pix_fmt yuv420p \\ -movflags +faststart policy-hub-promo.mp4 Everything local, including the brain The agent itself ran against qwen3.8-flash-next served locally through vLLM. That has a practical consequence worth noting: the GPU is a shared resource between the model and the renderer. Before the Blender steps, the serving container gets stopped and the GPU is free for Cycles and NVENC:\ndocker compose -p llm-qwen38-flash-next stop There is no latency or cost budget to protect, so the pipeline defaults to the most thorough mode: full extraction, thorough review, re-running captures whenever a scenario changes.\nTimings for the final 1080p cut For a ~2:30 video at 1920x1080 @ 24 fps, the machine time of a full regeneration is roughly:\nStage Time Playwright capture, 14 scenarios ~4 min Title cards + overlays ~1 min Blender VSE render (3691 frames) ~9 min NVENC encode ~20 s About 15 minutes end to end — and most of the actual effort went into the conversational review loop (steps 2 and 3), which is exactly where human taste is irreplaceable: what to show, in what order, with which words.\nWhat I would reuse as-is The pipeline is project-agnostic: capture.py holds the scenarios, tour.json holds the story, render_cards.py holds the design language, and the Blender assembly is generated from the script. Porting it to the next product (the Gaia-X compliance wizard) means rewriting the scenario list and the beats — the plumbing, the MCP protocol notes, the gotchas and the commands are already written down in a PIPELINE.md that travels with the repo.\n","permalink":"https://blog.gronlier.fr/2026/11/agent-driven-promo-video-pipeline/","summary":"\u003cp\u003eI produced the promotional video for \u003ca href=\"https://policy-hub.gaia-x.eu\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePolicy Hub\u003c/a\u003e (published \u003ca href=\"https://youtu.be/oWmtsHleYkI\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ehere\u003c/a\u003e) without opening a video editor once.\u003c/p\u003e\n\u003cp\u003eAn AI agent did the whole thing:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eit identified the features\u003c/li\u003e\n\u003cli\u003ewrote the narrative\u003c/li\u003e\n\u003cli\u003edrove a real browser to record the demos\u003c/li\u003e\n\u003cli\u003estyled the title cards to the corporate design manual, and\u003c/li\u003e\n\u003cli\u003eassembled the final cut in Blender through an MCP bridge.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eEverything ran locally on my own hardware with \u003ccode\u003eqwen3.8-flash-next\u003c/code\u003e served through vLLM — no cloud API, no per-token cost, no footage leaving the machine.\u003c/p\u003e","title":"🎥 AI agent that produces promotional videos"},{"content":"On 21 September Mistral announced that GLM 5.3 would be served on its own infrastructure, and that tipped me off Claude Code and onto Vibe. The model is the reason I switched, but the habit that stuck is a small function I wrote the same week.\nAn agent that works for ten minutes on its own is a different animal from a REPL you type into. The session now outlives the terminal you started it from, and if the terminal dies — SSH dropped, lid closed, train through a tunnel — the work should not die with it. tvibe is the four-line answer:\ntvibe() { if [ -n \u0026#34;$TMUX\u0026#34; ]; then echo \u0026#34;already inside tmux\u0026#34; \u0026gt;\u0026amp;2 return 1 fi local n=\u0026#34;${PWD#\u0026#34;$HOME\u0026#34;/workspace/}\u0026#34; # strip the common prefix n=\u0026#34;${n#/}\u0026#34; # only left for paths outside the prefix n=\u0026#34;${n//\\//_}\u0026#34; n=\u0026#34;${n//[.:]/_}\u0026#34; # tmux rewrites . and : in session names n=\u0026#34;${n:-workspace}\u0026#34; # bare $HOME/workspace edge case if tmux has-session -t \u0026#34;=$n\u0026#34; 2\u0026gt;/dev/null; then tmux attach -d -t \u0026#34;=$n\u0026#34; else tmux new -s \u0026#34;$n\u0026#34; vibe --resume fi } Type it in any project and you get one tmux session named after that project\u0026rsquo;s folder, with Vibe running inside it.\nWhat the name encodes The session name is derived from $PWD, not chosen by hand: everything below ~/workspace becomes a name with /, . and : mapped to _. So ~/workspace/riphixel/blog gives riphixel_blog and ~/workspace/riphixel/My.Did gives riphixel_My_Did.\nTwo details in there are worth keeping rather than simplifying. tmux does rewrite . and : in session names on its own — I created dot.name and col:on against a throwaway server and both came back as dot_name and col_on — but doing the substitution explicitly keeps the mapping predictable and documents the intent. And has-session -t \u0026quot;=$n\u0026quot; uses tmux\u0026rsquo;s = prefix for an exact session-name match; the plain form falls back to prefix matching, which is exactly how you end up attaching to the wrong session when two projects share a prefix.\nThe connection drops This is the case the function exists for. The agent keeps running on the server while SSH is gone, and the transcript keeps growing. When the link comes back, tvibe in the same folder reattaches to the same session and you pick up where you left off, with the agent\u0026rsquo;s output already scrolled past.\nThe -d on tmux attach -d is what makes that bearable: it detaches any other client first, so the machine you are typing on takes the session over instead of failing to attach because a stale desktop client still holds it.\nFrom laptop to phone The session is bound to the folder, not to the terminal that opened it, which is what makes device-hopping work. From the laptop I am cd ~/workspace/riphixel/blog \u0026amp;\u0026amp; tvibe; from the phone, ssh into the same box, same cd, same command, same session. Nothing has to be saved, synced or resumed by identifier — the folder is the key.\nIt also means two projects in two terminals are genuinely two sessions. tmux ls reads like a list of projects rather than a list of numbered terminals, so tmux attach -t riphixel_blog from anywhere gets you back into the right context.\nTwo things to know vibe --resume without a session id opens an interactive picker, so running tvibe again in a folder that already has a session lets you choose which of that project\u0026rsquo;s sessions to continue. If you would rather have the most recent one automatically, vibe --continue is the flag to swap in — it continues this terminal\u0026rsquo;s last session in the folder, falling back to the folder\u0026rsquo;s most recent.\nThe other one is a housekeeping habit: rename or move a project directory and the next tvibe creates a new session under the new name, leaving the old one running. tmux ls still shows it, and tmux kill-session -t \u0026lt;old-name\u0026gt; cleans it up. Outside ~/workspace the prefix strip does not match and you get a longer name built from the full path — ugly, but still stable, so the behaviour degrades without breaking.\n","permalink":"https://blog.gronlier.fr/2026/09/tvibe-tmux-sessions-per-folder/","summary":"\u003cp\u003eOn 21 September Mistral announced that \u003ca href=\"https://docs.mistral.ai/models/zai-glm-5-3-flash\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eGLM 5.3 would be served on its own infrastructure\u003c/a\u003e, and that tipped me off Claude Code and onto Vibe. The model is the reason I switched, but the habit that stuck is a small function I wrote the same week.\u003c/p\u003e\n\u003cp\u003eAn agent that works for ten minutes on its own is a different animal from a REPL you type into. The session now outlives the terminal you started it from, and if the terminal dies — SSH dropped, lid closed, train through a tunnel — the work should not die with it. \u003ccode\u003etvibe\u003c/code\u003e is the four-line answer:\u003c/p\u003e","title":"🧵 tvibe: a tmux session per project folder"},{"content":"The NVIDIA RTX PRO 6000 Blackwell Server Edition has no cooler and is meant to be used in a server chassis.\nOn a desk or in a workstation, that airflow is yours to provide. So I printed a duct.\nThe part The duct routes two 40 mm fans over the full length of the heatsink and seals the air path so the flow goes through the fins instead of around them. It is printed in PETG with supports, modelled in Onshape, and published on Thingiverse as Air duct for NVIDIA RTX PRO 6000 Server Edition under CC BY-NC-SA.\nOnshape document View in 3D STL · 3056 KB Reset view Auto-rotate Wireframe The duct as modelled in Onshape — the two circular fan seats at the left end, a louvered intake along the top, and the long plenum opening that sits over the heatsink. Download the STL · drag to rotate, scroll to zoom The fans Two ebm-papst 8300100443 — catalogue type VWCE040KHDGS, from the AxiForce 40 series (official datasheet, PDF). They are small, fast and, more importantly for this job, high-pressure fans rather than the usual notebook blowers.\nParameter Value Size 40 × 40 × 28 mm Air flow (free air) 56 m³/h, i.e. 33 CFM each Nominal speed 27 000 rpm Voltage 12 VDC (8…13.8 V) Power 17 W at free air flow, 24 W max Sound pressure 65 dB(A) Control 4-wire: PWM input (3 000–27 000 rpm) + tachometer Bearing / life ball, L10 70 000 h at 40 °C The PWM input matters: at full 27 000 rpm these things are loud, and the card rarely needs the whole envelope.\nWhat the datasheet actually asks for Table 3-1 of the product brief gives the minimum airflow for the card at each inlet air temperature, every row qualified by NVIDIA:\nHeat sink inlet temperature Minimum airflow rate 45 °C 125 CFM 40 °C 84 CFM 35 °C 65 CFM 30 °C 51 CFM 25 °C 43 CFM Two footnotes do the heavy lifting:\nThe flow is assumed fully ducted through the heat sink — which is precisely what the printed part is for The room this machine lives in never exceeds 22 °C, so my operating point sits at or below the 43 CFM row rather than at anything worse. Fan connection A 4-pin fan PWM splitter is used to drive both fans. The fan speed is controlled by the motherboard using its embedded Adaptive Thermal Management system. (Supermicro model)\nThe honest part about those numbers Two fans at 33 CFM each is 66 CFM, but that figure is measured at zero static pressure. A dense heatsink is not zero pressure: the brief publishes the relationship as a pressure-drop curve (Figure 3-3), and the flow any fan actually delivers is where its own curve crosses that resistance.\nHardware setup The air duct and fans are fixed using zip ties. It\u0026rsquo;s light, removable and cheap. An alternative using screws was designed, but, the screws are subject to vibration and required more complex 3D print with support.\nBill of materials Item RS stock no. ebm-papst 8300100443 646-769 Molex 47054-1000 connector housing 720-5990 Molex 08-50-0113 crimp terminal 670-2263 The fans arrive with bare, unterminated leads — no plug on the end — so the two Molex parts are what make them usable: a 47054-1000 housing (4-way, 2.54 mm) with 08-50-0113 terminals crimped onto each conductor. A crimp tool is the only extra thing this needs, and the housings cost under a euro each.\nResult Using nvidia-smi to monitor the GPU temperature:\nwhen vibe coding using huggingface.co/nvidia/Qwen3.8-Flash-Next-FP4-Local, it\u0026rsquo;s always below 45 °C. under gpu burn, it stays below 65 °C. There is also the option to limit power to 300 W with\nnvidia-smi -pm ENABLED nvidia-smi -pl 300 The two figures above are observations rather than a benchmark.\nReferences PNY / NVIDIA RTX PRO 6000 Blackwell Server Edition product brief, SP-12355-001_v02 — local copy, PDF ebm-papst AxiForce 40 datasheet, VWCE040KHDGS / 8300100443 — official 2-page datasheet (PDF) Thingiverse: Air duct for NVIDIA RTX PRO 6000 Server Edition Onshape document ","permalink":"https://blog.gronlier.fr/2026/06/air-duct-rtx-pro-6000/","summary":"\u003cp\u003eThe NVIDIA RTX PRO 6000 Blackwell Server Edition has no cooler and is meant to be used in a server chassis.\u003c/p\u003e\n\u003cp\u003eOn a desk or in a workstation, that airflow is yours to provide. So I printed a duct.\u003c/p\u003e\n\u003ch2 id=\"the-part\"\u003eThe part\u003c/h2\u003e\n\u003cp\u003eThe duct routes two 40 mm fans over the full length of the heatsink and seals the air path so the flow goes through the fins instead of around them. It is printed in PETG with supports, modelled in Onshape, and published on Thingiverse as \u003ca href=\"https://www.thingiverse.com/thing:7373623\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eAir duct for NVIDIA RTX PRO 6000 Server Edition\u003c/a\u003e under CC BY-NC-SA.\u003c/p\u003e","title":"❄️ Air cooling a 600 W passive RTX PRO 6000"},{"content":"An RPi is deployed in an unknown local network and should connect to a public jump box. Later a user could connect to the jump box to reach the local network via the reverse tunnel.\nConfigure your RPi I used Debian 11.8 on a RPi v1 (2011.12) and installed autossh and configured your reverse tunnel\nExample to bind 0.0.0.0:10022 on the onlinejumpbox and forward it to the RPi localhost:22 SSH server.\nssh -R 0.0.0.0:10022:localhost:22 debian@onlinejumpbox Create and install a service with systemd in the file /etc/systemd/system/tunnel.service\n[Unit] Description=SSH tunnel service After=network.target network-online.target sshd.service #After=sshd.service [Service] ExecStart=/usr/bin/autossh -i /home/debian/.ssh/id_rsa -R 0.0.0.0:10022:localhost:22 -NT debian@onlinejumpbox Restart=always RestartSec=30 [Install] WantedBy=multi-user.target Optional: in /etc/ssh/sshd_config set\nPasswordAuthentication no Configure the server Optional: if you want the bind_address parameter to work, in /etc/ssh/sshd_config set\nGatewayPorts yes Conclusion A user can reach the local network via this command line\nssh -p 10022 debian@onlinejumpbox ","permalink":"https://blog.gronlier.fr/2024/03/automate-ssh-reverse-tunnel-for-remote-access-to-local-network/","summary":"\u003cp\u003eAn RPi is deployed in an unknown local network and should connect to a public jump box. Later a user could connect to the jump box to reach the local network via the reverse tunnel.\u003c/p\u003e\n\u003ch1 id=\"configure-your-rpi\"\u003eConfigure your RPi\u003c/h1\u003e\n\u003cp\u003eI used Debian 11.8 on a RPi v1 (2011.12) and installed autossh and configured your reverse tunnel\u003c/p\u003e\n\u003cp\u003eExample to bind 0.0.0.0:10022 on the onlinejumpbox and forward it to the RPi localhost:22 SSH server.\u003c/p\u003e","title":"🚇 Automate SSH reverse tunnels with autossh"},{"content":"To keep this tutorial short, I\u0026rsquo;m assuming that the reader has the minimal level of knowledge to upload files, launch a container on the NAS and use SSH.\nThis is a solution to configure Tailscale remotely when you only have QuickConnect access to your NAS.\nInstall Container Manager on the NAS Click on Package Center -\u0026gt; Search for Container Manager -\u0026gt; and install it. It\u0026rsquo;ll create a docker volume that we are going to use next.\nEnable SSH on the NAS Click on Control Panel -\u0026gt; Terminal \u0026amp; SNMP -\u0026gt; Enable SSH service. Keep the default port to 22. If you modify it, also modify the port value in the ngrok.yml config file below.\nSetup NGROK https://ngrok.com/ is a tool to easily expose services behind NATs to public internet.\nCreate a free account\nRetrieve your NGROK_AUTHTOKEN\nCreate a file ngrok.yml with this content\nversion: 2 authtoken: NGROK_AUTHTOKEN tunnels: dsm: proto: http addr: https://localhost:5001 ssh: proto: tcp addr: 22 The first dsm service will expose the DSM web interface service. The second ssh service will expose the SSH service\nReplace NGROK_AUTHTOKEN with the value you got from step 2.\nUpload the file in the docker volume.\nOpen the Container Manager\nFrom the Registry menu, download the ngrok/ngrok image for the release 3-alpine. (It\u0026rsquo;s always better to fix the release version instead of taking latest for later compatibility)\nFrom the Container menu, create a container:\nimage: ngrok/ngrok:3-alpine keep Enable auto-restart disable. It\u0026rsquo;s not needed. Add File in Volume settings mapping /docker/ngrok.yml to /ngrok.yml in Read-Only. Select Host in the Network Set start --config /ngrok.yml --all as Command in the Execution Command And run it\nIf ok, the container should be green and you will have two endpoints in your ngrok endpoints dashboard.\nSetup Tailscale Use the HTTPS endpoints to connect to your NAS and once connected, install Tailscale from the Package Center.\nFrom the NAS, click on Open Tailscale, log in and add your devices to your account.\nFrom the NAS, click again on Open and activate the Advertise as Exit Node\nFrom that point on, I\u0026rsquo;m assuming you know how to configure and use Tailscale.\nThe last step is to advertise a route. For this step, you\u0026rsquo;ll need to use the TCP endpoint you configured with ngrok.\nUse it to ssh to your NAS ssh -p \u0026lt;the port\u0026gt; \u0026lt;user\u0026gt;:\u0026lt;the tcp url without tcp://\u0026gt;.\nOnce connected, configure the advertising route with this command sudo tailscale up --advertise-routes 192.168.1.0/24 --advertise-exit-node --reset.\nConclusion Congrats, you\u0026rsquo;re done! For security, you can stop the ngrok container and even deactivate the SSH service.\n","permalink":"https://blog.gronlier.fr/2023/08/install-tailscale-on-synology-dsm-7-via-quickconnect/","summary":"\u003cp\u003eTo keep this tutorial short, I\u0026rsquo;m assuming that the reader has the minimal level of knowledge to upload files, launch a container on the NAS and use SSH.\u003c/p\u003e\n\u003cp\u003eThis is a solution to configure Tailscale remotely when you only have QuickConnect access to your NAS.\u003c/p\u003e\n\u003ch2 id=\"install-container-manager-on-the-nas\"\u003eInstall Container Manager on the NAS\u003c/h2\u003e\n\u003cp\u003eClick on \u003cstrong\u003ePackage Center\u003c/strong\u003e -\u0026gt; Search for \u003cstrong\u003eContainer Manager\u003c/strong\u003e -\u0026gt; and install it.\nIt\u0026rsquo;ll create a docker volume that we are going to use next.\u003c/p\u003e","title":"🕸️ Install Tailscale on Synology DSM 7"},{"content":"With the WordPress REST API plugin, use the following curl command line to get and update the title and content.\nGET a page curl --user \u0026#34;$WPAPPUSER:$WPAPPPASS\u0026#34; -X GET https://website/index.php/wp-json/wp/v2/pages/\u0026lt;page_id\u0026gt; | jq \u0026#34;.content.rendered\u0026#34; Update a title curl --user \u0026#34;$WPAPPUSER:$WPAPPPASS\u0026#34; -X POST https://website/index.php/wp-json/wp/v2/pages/\u0026lt;page_id\u0026gt; -d \u0026#39;title=My title\u0026#39; Update the content content=\u0026#34;\u0026lt;!-- wp:paragraph --\u0026gt;\u0026lt;p\u0026gt;Hello World\u0026lt;/p\u0026gt;\u0026lt;!-- /wp:paragraph --\u0026gt;\u0026#34; curl --user \u0026#34;$WPAPPUSER:$WPAPPPASS\u0026#34; -X POST https://website/index.php/wp-json/wp/v2/pages/\u0026lt;page_id\u0026gt; -d \u0026#34;content=$content\u0026#34; ","permalink":"https://blog.gronlier.fr/2022/03/update-wordpress-page-post-via-rest-api/","summary":"\u003cp\u003eWith the \u003ca href=\"https://plugins.miniorange.com/wordpress-rest-api-authentication\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eWordPress REST API\u003c/a\u003e plugin, use the following curl command line to get and update the title and content.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eGET a page\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecurl --user \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$WPAPPUSER\u003c/span\u003e\u003cspan class=\"s2\"\u003e:\u003c/span\u003e\u003cspan class=\"nv\"\u003e$WPAPPPASS\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e -X GET https://website/index.php/wp-json/wp/v2/pages/\u0026lt;page_id\u0026gt; \u003cspan class=\"p\"\u003e|\u003c/span\u003e jq \u003cspan class=\"s2\"\u003e\u0026#34;.content.rendered\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003cli\u003eUpdate a title\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecurl --user \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$WPAPPUSER\u003c/span\u003e\u003cspan class=\"s2\"\u003e:\u003c/span\u003e\u003cspan class=\"nv\"\u003e$WPAPPPASS\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e -X POST https://website/index.php/wp-json/wp/v2/pages/\u0026lt;page_id\u0026gt; -d \u003cspan class=\"s1\"\u003e\u0026#39;title=My title\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003cli\u003eUpdate the content\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003econtent\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u0026lt;!-- wp:paragraph --\u0026gt;\u0026lt;p\u0026gt;Hello World\u0026lt;/p\u0026gt;\u0026lt;!-- /wp:paragraph --\u0026gt;\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecurl --user \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$WPAPPUSER\u003c/span\u003e\u003cspan class=\"s2\"\u003e:\u003c/span\u003e\u003cspan class=\"nv\"\u003e$WPAPPPASS\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e -X POST https://website/index.php/wp-json/wp/v2/pages/\u0026lt;page_id\u0026gt; -d \u003cspan class=\"s2\"\u003e\u0026#34;content=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$content\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003c/ol\u003e","title":"📝 Update WordPress content via the REST API"},{"content":"The price of NVMe disks getting closer or similar to SSDs, most recent servers have only NVMe disks.\nUnfortunately, installing Ubuntu-18.04 on such a server triggers the error\nValidation error: \u0026#39;nvme.XXXXXX\u0026#39; is not valid under any of the given schemas in [...] This issue has been fixed in https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1840524/comments/8 but is not yet backported on 18.04.3\nIf you need to install 18.04, because for example of the NVIDIA driver support, the fix is to:\nflash a USB dongle with ubuntu-18.04 after booting on the USB dongle, go to a terminal with Alt+F2 and enter sudo snap refresh --edge subiquity next, go back to the main screen with Alt+F1 and start the installation. Hopefully, 18.04.4 should have the patch.\n","permalink":"https://blog.gronlier.fr/2020/02/install-ubuntu-18-04-on-nvme/","summary":"\u003cp\u003eThe price of NVMe disks getting closer or similar to SSDs, most recent servers have only NVMe disks.\u003c/p\u003e\n\u003cp\u003eUnfortunately, installing Ubuntu-18.04 on such a server triggers the error\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eValidation error: \u0026#39;nvme.XXXXXX\u0026#39; is not valid under any of the given schemas in [...]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThis issue has been fixed in \u003ca href=\"https://bugs.launchpad.net/ubuntu/\u0026#43;source/curtin/\u0026#43;bug/1840524/comments/8\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ehttps://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1840524/comments/8\u003c/a\u003e but is not yet backported on 18.04.3\u003c/p\u003e\n\u003cp\u003eIf you need to install 18.04, because for example of the NVIDIA driver support, the fix is to:\u003c/p\u003e","title":"🚀 Install Ubuntu-18.04 on a NVMe disk"},{"content":"Enabling Admin account net user administrator /active:yes net user administrator MyPassword Enable Remote access and configure firewall # To be done on both side Enable-PSRemoting Cleaning # To be done on both side winrm enumerate winrm/config/listener winrm delete winrm/config/Listener?Address=*+Transport=HTTP winrm delete winrm/config/Listener?Address=*+Transport=HTTPS Setup $myFQDN=(Get-WmiObject win32_computersystem).DNSHostName+\u0026#34;.\u0026#34;+(Get-WmiObject win32_computersystem).Domain New-SelfSignedCertificate -DnsName $myFQDN -CertStoreLocation Cert:\\LocalMachine\\My $thumbprint=@(Get-ChildItem -Path Cert:\\LocalMachine\\My | Where {$_.DnsNameList -match \u0026#34;$myFQDN\u0026#34; }).Thumbprint winrm create winrm/config/Listener?Address=*+Transport=HTTPS \u0026#34;@{Hostname=\u0026#34;\u0026#34;$myFQDN\u0026#34;\u0026#34;; CertificateThumbprint=\u0026#34;\u0026#34;$thumbprint\u0026#34;\u0026#34;}\u0026#34; Set-Item -Path WSMan:\\localhost\\Service\\Auth\\Basic -Value $true Host file In a file named hosts.cfg\n[targets] server1 ansible_host=123.123.123.123 ansible_user=Administrateur ansible_password=secure_password server2 ansible_host=123.123.123.123 ansible_user=Administrator ansible_password=secure_password [targets:vars] ansible_connection=winrm ansible_winrm_server_cert_validation=ignore And in the playbook\n---\n--- # This playbook tests the script module on Windows hosts - name: Run powershell script hosts: - server1 - server2 vars: nsimul: 8 results_dir: C:\\results{{ nsimul }} gather_facts: false tasks: ... ","permalink":"https://blog.gronlier.fr/2019/04/windows-preparation-for-remote-control-with-ansible/","summary":"\u003ch3 id=\"enabling-admin-account\"\u003eEnabling Admin account\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-batch\" data-lang=\"batch\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003enet user administrator /active:yes\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003enet user administrator MyPassword\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"enable-remote-access-and-configure-firewall\"\u003eEnable Remote access and configure firewall\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-powershell\" data-lang=\"powershell\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c\"\u003e# To be done on both side\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eEnable-PSRemoting\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"cleaning\"\u003eCleaning\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-powershell\" data-lang=\"powershell\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c\"\u003e# To be done on both side \u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e \u003cspan class=\"n\"\u003eenumerate\u003c/span\u003e \u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003econfig\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003elistener\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e \u003cspan class=\"n\"\u003edelete\u003c/span\u003e \u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003econfig\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003eListener\u003c/span\u003e\u003cspan class=\"k\"\u003e?\u003c/span\u003e\u003cspan class=\"n\"\u003eAddress\u003c/span\u003e\u003cspan class=\"p\"\u003e=*+\u003c/span\u003e\u003cspan class=\"n\"\u003eTransport\u003c/span\u003e\u003cspan class=\"p\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003eHTTP\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e \u003cspan class=\"n\"\u003edelete\u003c/span\u003e \u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003econfig\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003eListener\u003c/span\u003e\u003cspan class=\"k\"\u003e?\u003c/span\u003e\u003cspan class=\"n\"\u003eAddress\u003c/span\u003e\u003cspan class=\"p\"\u003e=*+\u003c/span\u003e\u003cspan class=\"n\"\u003eTransport\u003c/span\u003e\u003cspan class=\"p\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003eHTTPS\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"setup\"\u003eSetup\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-powershell\" data-lang=\"powershell\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$myFQDN\u003c/span\u003e\u003cspan class=\"p\"\u003e=(\u003c/span\u003e\u003cspan class=\"nb\"\u003eGet-WmiObject\u003c/span\u003e \u003cspan class=\"n\"\u003ewin32_computersystem\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"n\"\u003eDNSHostName\u003c/span\u003e\u003cspan class=\"p\"\u003e+\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;.\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e+(\u003c/span\u003e\u003cspan class=\"nb\"\u003eGet-WmiObject\u003c/span\u003e \u003cspan class=\"n\"\u003ewin32_computersystem\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"py\"\u003eDomain\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eNew-SelfSignedCertificate\u003c/span\u003e \u003cspan class=\"n\"\u003e-DnsName\u003c/span\u003e \u003cspan class=\"nv\"\u003e$myFQDN\u003c/span\u003e \u003cspan class=\"n\"\u003e-CertStoreLocation\u003c/span\u003e \u003cspan class=\"n\"\u003eCert\u003c/span\u003e\u003cspan class=\"err\"\u003e:\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eLocalMachine\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eMy\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$thumbprint\u003c/span\u003e\u003cspan class=\"p\"\u003e=\u003c/span\u003e\u003cspan class=\"vm\"\u003e@\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003eGet-ChildItem\u003c/span\u003e \u003cspan class=\"n\"\u003e-Path\u003c/span\u003e \u003cspan class=\"n\"\u003eCert\u003c/span\u003e\u003cspan class=\"err\"\u003e:\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eLocalMachine\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eMy\u003c/span\u003e \u003cspan class=\"p\"\u003e|\u003c/span\u003e \u003cspan class=\"nb\"\u003eWhere \u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"py\"\u003eDnsNameList\u003c/span\u003e \u003cspan class=\"o\"\u003e-match\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$myFQDN\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e \u003cspan class=\"p\"\u003e}).\u003c/span\u003e\u003cspan class=\"py\"\u003eThumbprint\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e \u003cspan class=\"n\"\u003ecreate\u003c/span\u003e \u003cspan class=\"n\"\u003ewinrm\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003econfig\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u003c/span\u003e\u003cspan class=\"n\"\u003eListener\u003c/span\u003e\u003cspan class=\"k\"\u003e?\u003c/span\u003e\u003cspan class=\"n\"\u003eAddress\u003c/span\u003e\u003cspan class=\"p\"\u003e=*+\u003c/span\u003e\u003cspan class=\"n\"\u003eTransport\u003c/span\u003e\u003cspan class=\"p\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003eHTTPS\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;@{Hostname=\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$myFQDN\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;; CertificateThumbprint=\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thumbprint\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;}\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eSet-Item\u003c/span\u003e \u003cspan class=\"n\"\u003e-Path\u003c/span\u003e \u003cspan class=\"n\"\u003eWSMan\u003c/span\u003e\u003cspan class=\"err\"\u003e:\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003elocalhost\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eService\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eAuth\u003c/span\u003e\u003cspan class=\"p\"\u003e\\\u003c/span\u003e\u003cspan class=\"n\"\u003eBasic\u003c/span\u003e \u003cspan class=\"n\"\u003e-Value\u003c/span\u003e \u003cspan class=\"vm\"\u003e$true\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"host-file\"\u003eHost file\u003c/h3\u003e\n\u003cp\u003eIn a file named hosts.cfg\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-ini\" data-lang=\"ini\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003e[targets]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"na\"\u003eserver1 ansible_host\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e123.123.123.123 ansible_user=Administrateur ansible_password=secure_password\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"na\"\u003eserver2 ansible_host\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e123.123.123.123 ansible_user=Administrator ansible_password=secure_password\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003e[targets:vars]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"na\"\u003eansible_connection\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003ewinrm\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"na\"\u003eansible_winrm_server_cert_validation\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003eignore\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAnd in the playbook\u003c/p\u003e\n\u003cp\u003e ---\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-yaml\" data-lang=\"yaml\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nn\"\u003e---\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c\"\u003e# This playbook tests the script module on Windows hosts\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e- \u003cspan class=\"nt\"\u003ename\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"l\"\u003eRun powershell script\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nt\"\u003ehosts\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e    \u003c/span\u003e- \u003cspan class=\"l\"\u003eserver1\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e    \u003c/span\u003e- \u003cspan class=\"l\"\u003eserver2\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nt\"\u003evars\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"nt\"\u003ensimul\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"m\"\u003e8\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"nt\"\u003eresults_dir\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"l\"\u003eC:\\results{{ nsimul }}\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nt\"\u003egather_facts\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"kc\"\u003efalse\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"nt\"\u003etasks\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"l\"\u003e...\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"🪟 Prepare Windows for remote Ansible control"},{"content":"\nSpec MP4 GIF File Size 409kB 413kB Resolution 320x240 320x240 FPS 5 0.8 Quality medium (crf=28) low (256 colors) Audio yes no Support HTML5 browser with the good video decoder any browser from the 21st century. Gif ffmpeg -i input.avi -vf scale=320:-1 -r 0.8 -f image2pipe -vcodec ppm - | convert -delay 80 -loop 0 - gif:- | convert -layers Optimize - output.gif (from StackExchange)\nThe output fps and delay values have to follow the rule $$100 * \\text{output fps}=\\text{delay}$$ to keep a realistic speed playback.\nMP4 ffmpeg -i input.avi -vf scale=320:-1 -r 5 -c:v libx264 -preset slow -crf 28 -c:a copy -y output.mp4 ","permalink":"https://blog.gronlier.fr/2015/07/mp4-vs-gif/","summary":"\u003cp\u003e\u003ca href=\"images/distance_measurement.gif\"\u003e\u003cimg src=\"images/distance_measurement.gif\" alt=\"Distance-measurement clip encoded as an animated GIF\" width=\"320\" height=\"180\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003cvideo width=\"320\" height=\"180\" loop autoplay controls preload=\"metadata\" src=\"../4-digits-segment-and-ultrasonic-range-measurement/images/distance_measurement.mp4\"\u003e\u003c/video\u003e\u003c/p\u003e\n\u003ctable\u003e\n\t\u003cthead\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003cth\u003eSpec\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003eMP4\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003eGIF\u003c/th\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/thead\u003e\n\t\u003ctbody\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eFile Size\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e409kB\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e413kB\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eResolution\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e320x240\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e320x240\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eFPS\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e5\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e0.8\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eQuality\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003emedium (crf=28)\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003elow (\u003ca href=\"http://www.imagemagick.org/Usage/anim_opt/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e256 colors\u003c/a\u003e)\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eAudio\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eyes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eno\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eSupport\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eHTML5 browser with the good video decoder\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eany browser from the 21st century.\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2 id=\"gif\"\u003eGif\u003c/h2\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003effmpeg -i input.avi -vf \u003cspan class=\"nv\"\u003escale\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e320:-1 -r 0.8 -f image2pipe -vcodec ppm - \u003cspan class=\"p\"\u003e|\u003c/span\u003e convert -delay \u003cspan class=\"m\"\u003e80\u003c/span\u003e -loop \u003cspan class=\"m\"\u003e0\u003c/span\u003e - gif:- \u003cspan class=\"p\"\u003e|\u003c/span\u003e convert -layers Optimize - output.gif\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e(from \u003ca href=\"http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eStackExchange\u003c/a\u003e)\u003c/p\u003e","title":"🎞️ MP4 vs GIF"},{"content":"List of materials:\n4 digits 7 segment with 2 x TM74HC595 shift registers. (schematic) HC-SR04 Ultrasonic Ranging Module (datasheet) distance_measurement.mp4\nSimple timer demo Ultrasonic distance meter ","permalink":"https://blog.gronlier.fr/2015/07/4-digits-segment-and-ultrasonic-range-measurement/","summary":"\u003cp\u003eList of materials:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e4 digits 7 segment with 2 x \u003ca href=\"http://www.szpth.com/upload/TM74HC595_V1.1-PTH.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eTM74HC595\u003c/a\u003e shift registers. (\u003ca href=\"http://forum.arduino.cc/index.php?action=dlattach;topic=316731.0;attach=122782\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eschematic\u003c/a\u003e)\u003c/li\u003e\n\u003cli\u003eHC-SR04 Ultrasonic Ranging Module (\u003ca href=\"http://www.micropik.com/PDF/HCSR04.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003edatasheet\u003c/a\u003e)\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cvideo width=\"320\" height=\"180\" loop=\"1\" autoplay=\"1\" preload=\"metadata\" controls=\"controls\"\u003e\u003csource type=\"video/mp4\" src=\"images/distance_measurement.mp4\" /\u003e\n\u003ca href=\"images/distance_measurement.mp4\"\u003edistance_measurement.mp4\u003c/a\u003e\u003c/video\u003e\u003c/p\u003e\n\u003ch2 id=\"simple-timer-demo\"\u003eSimple timer demo\u003c/h2\u003e\n\u003cscript src=\"https://gist.github.com/ticapix/c7e42889188a9af76240.js\"\u003e\u003c/script\u003e\n\u003ch2 id=\"ultrasonic-distance-meter\"\u003eUltrasonic distance meter\u003c/h2\u003e\n\u003cscript src=\"https://gist.github.com/ticapix/86ea00a03925b91bfae5.js\"\u003e\u003c/script\u003e","title":"📏 Ultrasonic distance meter with an Arduino"},{"content":"I just ordered one of those cheap 4USD STM32F103 boards from ebay and a JTAG probe.\nIt\u0026rsquo;s labeled STM32FxCxT6 Board V5.02 150118\nAs always, the price is as light as the documentation, but eventually digging the WWW you find interesting things.\nMost electronic products available on Ebay, Aliexpress, DX, Banggood, \u0026hellip; are also available from Taobao and after 15 mins search I found an ad selling the same looking board with a link to sample codes.\nTo me, the most interesting file in the archive is circuit diagram of the board.\nThe onboard LED is connected to the pin PC13.\nSince I just want to blink an LED, I\u0026rsquo;ll go for the fastest way and use the mbed online IDE.\nAdd the platform NUCLEO-F103RB to your IDE.\nthe C8 and RB differ as follows:\nR = 64 pins| C = 48 pins\nB = 128KB Flash| 8 = 64 KB Flash\nThe memory addresses are the same.\nCreate a new project and use the following code\n#include \u0026#34;mbed.h\u0026#34; DigitalOut led(PC_13); int main() { while(1) { led = 1; wait(0.5); // 500 ms led = 0; wait(0.5); } } Press compile and download the .bin file.\nAssuming you know how to install OpenOCD on your box, I like to use the following ./flash.sh script to flash the target with the J-LINK JTAG probe.\n#!/bin/sh binpath=\u0026#34;$1\u0026#34; cfgfile=\u0026#34;/tmp/flash_cmds.cfg\u0026#34; cat \u0026gt; \u0026#34;$cfgfile\u0026#34; \u0026lt;\u0026lt;EOF init reset init halt flash write_image erase $binpath 0x08000000 reset run shutdown EOF openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg -f \u0026#34;$cfgfile\u0026#34; Congrats, your onboard LED should now be flashing 🙂\n","permalink":"https://blog.gronlier.fr/2015/07/blink-led-on-the-stm32f103c8t6/","summary":"\u003cp\u003eI just ordered one of those cheap 4USD STM32F103 boards from \u003ca href=\"http://www.ebay.com/itm/161651410726\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eebay\u003c/a\u003e and a \u003ca href=\"../unbrick-and-update-an-j-link-v8-clone/\"\u003eJTAG\u003c/a\u003e probe.\u003c/p\u003e\n\u003cp\u003eIt\u0026rsquo;s labeled STM32FxCxT6 Board V5.02 150118\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"images/20150712_170316.jpg\"\u003e\u003cimg loading=\"lazy\" decoding=\"async\" src=\"images/20150712_170316-300x169.jpg\" alt=\"Top view of the cheap STM32F103C8T6 board labelled STM32FxCxT6 Board V5.02\" width=\"300\" height=\"169\" srcset=\"images/20150712_170316-300x169.jpg 300w, images/20150712_170316-1024x576.jpg 1024w, images/20150712_170316.jpg 1576w\" sizes=\"(max-width: 300px) 100vw, 300px\" /\u003e     \u003c/a\u003e \u003ca href=\"images/20150708_082029.jpg\"\u003e\u003cimg loading=\"lazy\" decoding=\"async\" src=\"images/20150708_082029-227x300.jpg\" alt=\"Second view of the STM32F103C8T6 board, from the Taobao listing\" width=\"227\" height=\"300\" srcset=\"images/20150708_082029-227x300.jpg 227w, images/20150708_082029.jpg 671w\" sizes=\"(max-width: 227px) 100vw, 227px\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAs always, the price is as light as the documentation, but eventually digging the WWW you find interesting things.\u003c/p\u003e","title":"🔆 Blink LED on the STM32F103C8T6"},{"content":"You can buy a Segger JTAG J-Link clone for a few USD on ebay, aliexpress, dx, \u0026hellip;\nIf you try to update its firmware with the official Segger tool, you\u0026rsquo;ll brick the probe.\nDon\u0026rsquo;t worry, smart people have already put a checklist to restore a working firmware and even update it to the latest official version. I just put all the needed info into one single page.\nUnbrick it To restore the firmware, you need to follow the instructions from http://www.sonsivri.to/forum/index.php?topic=41726.50. The best part? It works from Linux.\nFor the step 9, you\u0026rsquo;ll need the binary image to flash; use that one V8_Firmware_NoSerial_(crackn). It\u0026rsquo;s from the same forum as above but without a password and without additional useless .exe files.\nDownload and install SAM-BA package from atmel.com (http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx) Open the j-link case by gently popping the plastic edge near the JTAG or USB ports. Identify the ERASE (pin 50) / TST (pin 40) jumpers/pins Short ERASE jumper to pull-high and connect the jlink to USB; wait for a minute and disconnect USB. (\u0026ldquo;pull-high\u0026rdquo;, means set a jumper between the ERASE pin and the 3.3V pin next to it.) Remove the ERASE jumper and short the TST jumper to pull-high and connect the jlink to USB; wait for a minute and disconnect USB. Break/remove the TST jumper and reconnect USB Your jlink should now be identified as AT91 USB to serial adapter and a COM port should be assigned to it - if this doesn\u0026rsquo;t happen repeat from step 3.\nSomething like cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device should appear in syslog or dmesg Open SAM-BA program; select COM/ttyACM port that was assigned to your jlink and in board select \u0026ldquo;at91sam7s64-ek\u0026rdquo;; click CONNECT Select \u0026ldquo;FLASH\u0026rdquo; and select the BIN file you downloaded before and select to load the firmware into flash; the application will ask you if you want to unlock - select YES; at the end of programming there will be a similar question if you want to lock - select NO! (very important) Congratulations, you are done. Reconnect the device and you should have a working jlink Update the firmware The previous step will reflash with a firmware from 2009.\nInfo : J-Link ARM V8 compiled May 27 2009 17:31:22\nQuite old and I prefer to have the latest one.\nFortunately, the firmware you just flashed has a fake SerialNumber set to -1 and it happens to be enough to let the J-Link Configurator tool flash it to the latest firmware without bricking it. This time you\u0026rsquo;ll need a Windows machine. I used a Windows 10 image under VMware and it worked fine.\ngo to https://www.segger.com/jlink-software.html and fetch the Windows software pack. The one I used was version 5.00g. install it and run the J-Link Configurator. It should detect the probe and allow you to update it to the latest firmware Congratulations, you are done. Reconnect the device and you should have a working J-Link with the latest firmware\nInfo : J-Link ARM V8 compiled Nov 28 2014 13:44:46 Edit1 While the origin of the binary firmware used in this tutorial remains unknown, several posts suggest modifying the \u0026lsquo;GDBFull\u0026rsquo; string to either \u0026lsquo;GDBFULL\u0026rsquo; or \u0026lsquo;GDB\u0026rsquo;\nFrom http://www.sonsivri.to/forum/index.php?topic=41726.msg143919#msg143919:\n\u0026lt;em\u0026gt;After found the BIN file, you have to open it with an hex editor and change the string \u0026#34;GDBFull\u0026#34; with \u0026#34;GDB\u0026#34; and also change the serial number. As far as I remember the serial number is not a string but just raw hex data nearby the address where the \u0026#34;GDBFull\u0026#34; string is located. Remember the raw data are little-endian. For the new serial number use something like \u0026#34;4054xxxx\u0026#34; where xxxx are random numbers.\u0026lt;/em\u0026gt; ","permalink":"https://blog.gronlier.fr/2015/07/unbrick-and-update-an-j-link-v8-clone/","summary":"\u003cp\u003eYou can buy a Segger JTAG J-Link clone for a few USD on \u003ca href=\"http://www.ebay.com/itm/141690399887\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eebay\u003c/a\u003e, aliexpress, dx, \u0026hellip;\u003c/p\u003e\n\u003cp\u003eIf you try to update its firmware with the official Segger tool, you\u0026rsquo;ll brick the probe.\u003c/p\u003e\n\u003cp\u003eDon\u0026rsquo;t worry, smart people have already put a checklist to restore a working firmware and even update it to the latest official version.\nI just put all the needed info into one single page.\u003c/p\u003e\n\u003ch2 id=\"unbrick-it\"\u003eUnbrick it\u003c/h2\u003e\n\u003cp\u003eTo restore the firmware, you need to follow the instructions from \u003ca href=\"http://www.sonsivri.to/forum/index.php?topic=41726.50\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ehttp://www.sonsivri.to/forum/index.php?topic=41726.50\u003c/a\u003e. The best part? \u003cstrong\u003eIt works from Linux\u003c/strong\u003e.\u003c/p\u003e","title":"🧱 Unbrick and update a J-Link V8 clone"},{"content":"Remember those?\nInstall 7zip. Download Creative ZEN Stone Firmware 1.06.01 Right-click on the file downloaded at Step 2, ZENStone_PCFW_US_1_06_01.exe and extract its content using 7zip. Go inside the newly created folder ZENStone_PCFW_US_1_06_01/vista Right-click on StMp3Rec.inf -\u0026gt; Install Same with StMp3Recx64.inf Unplug\u0026amp;Plug your Stone. Done ","permalink":"https://blog.gronlier.fr/2015/03/use-creative-zen-stone-on-windows-810/","summary":"\u003cp\u003eRemember those?\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"images/allzenstone.jpg\"\u003e\u003cimg loading=\"lazy\" decoding=\"async\" src=\"images/allzenstone-150x150.jpg\" alt=\"Several Creative ZEN Stone MP3 players in different colors\" width=\"150\" height=\"150\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eInstall \u003ca href=\"http://www.7-zip.org/\" title=\"7-zip\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e7zip\u003c/a\u003e.\u003c/li\u003e\n\u003cli\u003eDownload \u003ca href=\"http://support.creative.com/Products/ProductDetails.aspx?catID=213\u0026amp;CatName=MP3\u0026#43;Players\u0026amp;prodID=16424\u0026amp;prodName=ZEN\u0026#43;Stone\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eCreative ZEN Stone Firmware 1.06.01\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eRight-click on the file downloaded at Step 2, ZENStone_PCFW_US_1_06_01.exe and extract its content using 7zip.\u003c/li\u003e\n\u003cli\u003eGo inside the newly created folder ZENStone_PCFW_US_1_06_01/vista\u003c/li\u003e\n\u003cli\u003eRight-click on StMp3Rec.inf -\u0026gt; Install\u003c/li\u003e\n\u003cli\u003eSame with StMp3Recx64.inf\u003c/li\u003e\n\u003cli\u003eUnplug\u0026amp;Plug your Stone.\u003c/li\u003e\n\u003cli\u003eDone\u003c/li\u003e\n\u003c/ol\u003e","title":"🎧 Use Creative Zen Stone on Windows 8/10"},{"content":"I assume that you have a basic understanding of: unzipping a file, mounting an ISO file, opening the Command prompt in Administrator mode and booting your PC from a USB flash drive.\nEither unpack or extract or mount your ISO file, let\u0026rsquo;s say in %USERPROFILE%\\win_files Insert your USB drive. Open CMD in Administrator mode and type diskpart Microsoft DiskPart version 10.0.10041 Copyright (C) 1999-2013 Microsoft Corporation. On computer: XXXXXXXXX DISKPART\u0026gt; list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 238 GB 0 B * # my HDD drive Disk 1 Online 14 GB 0 B # my USB drive DISKPART\u0026gt; select disk 1 Disk 1 is now the selected disk. DISKPART\u0026gt; clean DiskPart succeeded in cleaning the disk. DISKPART\u0026gt; create partition primary DiskPart succeeded in creating the specified partition. DISKPART\u0026gt; active DiskPart marked the current partition as active. DISKPART\u0026gt; format fs=ntfs quick label=\u0026#34;win installer\u0026#34; 100 percent completed DiskPart successfully formatted the volume. DISKPART\u0026gt; assign DiskPart successfully assigned the drive letter or mount point. DISKPART\u0026gt; exit Leaving DiskPart... A new Removable Disk should be showing up, named as \u0026lsquo;win installer\u0026rsquo; with, let\u0026rsquo;s say, letter E:\\ Go into the boot\\ subfolder of where the installation files have been extracted at Step 1, in my case: cd %USERPROFILE%\\win_files\\boot We want to make the USB flash bootable with E: the USB drive letter from Step 5. C:\\Users\\ticapix\\win_files\\boot\u0026gt; bootsect.exe /nt60 E: Target volumes will be updated with BOOTMGR compatible bootcode. E: (\\\\?\\Volume{a91720d2-a87d-11e4-ab33-3c970e90bd43}) Successfully updated NTFS filesystem bootcode. Bootcode was successfully updated on all targeted volumes. Copy the content of the folder from Step 1 onto the USB flash drive with xcopy xcopy %USERPROFILE%\\win_files\\*.* E:\\ /E /F /H The syntax is xcopy with the following options: /E Copies directories and subdirectories, including empty ones. /F Displays full source and destination file names while copying. /H Copies hidden and system files also. Once the copy is done, safely unplug the USB drive and boot your PC from it. ","permalink":"https://blog.gronlier.fr/2015/03/create-bootable-win8win10-usb-flash-drive/","summary":"\u003cp\u003eI assume that you have a basic understanding of: unzipping a file, mounting an ISO file, opening the Command prompt in Administrator mode and booting your PC from a USB flash drive.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eEither unpack or extract or mount your ISO file, let\u0026rsquo;s say in \u003ccode\u003e%USERPROFILE%\\win_files\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eInsert your USB drive.\u003c/li\u003e\n\u003cli\u003eOpen CMD in Administrator mode and type \u003ccode\u003ediskpart\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-batch\" data-lang=\"batch\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMicrosoft DiskPart version 10.0.10041\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCopyright (C) 1999-2013 Microsoft Corporation.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eOn computer: XXXXXXXXX\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e list disk\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  Disk ###  Status         Size     Free     Dyn  Gpt\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  --------  -------------  -------  -------  ---  ---\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  Disk 0    Online          238 GB      0 B        * # my HDD drive\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  Disk 1    Online           14 GB      0 B          # my USB drive\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e select disk 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDisk 1 is now the selected disk.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e clean\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDiskPart succeeded in cleaning the disk.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e create partition primary\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDiskPart succeeded in creating the specified partition.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e active\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDiskPart marked the current partition as active.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e format fs=ntfs quick label=\u003cspan class=\"s2\"\u003e\u0026#34;win installer\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  100 percent completed\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDiskPart successfully formatted the volume.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e assign\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDiskPart successfully assigned the drive letter or mount point.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e exit\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eLeaving DiskPart...\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003col start=\"5\"\u003e\n\u003cli\u003eA new Removable Disk should be showing up, named as \u0026lsquo;win installer\u0026rsquo; with, let\u0026rsquo;s say, letter E:\\\u003c/li\u003e\n\u003cli\u003eGo into the boot\\ subfolder of where the installation files have been extracted at Step 1, in my case:\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003ecd\u003c/span\u003e %USERPROFILE%\u003cspan class=\"se\"\u003e\\w\u003c/span\u003ein_files\u003cspan class=\"se\"\u003e\\b\u003c/span\u003eoot\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003col start=\"7\"\u003e\n\u003cli\u003eWe want to make the USB flash bootable with E: the USB drive letter from Step 5.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-batch\" data-lang=\"batch\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eC\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nl\"\u003e\\Users\\ticapix\\win_files\\boot\u003c/span\u003e\u003cspan class=\"c1\"\u003e\u0026gt; bootsect.exe /nt60 E:\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTarget volumes will be updated with BOOTMGR compatible bootcode.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eE\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"nl\"\u003e(\\\\?\\Volume{a91720d2-a87d-11e4-ab33-3c970e90bd43})\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    Successfully updated NTFS filesystem bootcode.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eBootcode was successfully updated on all targeted volumes.\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003col start=\"8\"\u003e\n\u003cli\u003eCopy the content of the folder from Step 1 onto the USB flash drive with xcopy \u003ccode\u003excopy %USERPROFILE%\\win_files\\*.* E:\\ /E /F /H\u003c/code\u003e The syntax is \u003ccode\u003excopy\u003c/code\u003e with the following options:\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/E Copies directories and subdirectories, including empty ones.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/F Displays full source and destination file names while copying.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/H Copies hidden and system files also.\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003col start=\"9\"\u003e\n\u003cli\u003eOnce the copy is done, safely unplug the USB drive and boot your PC from it.\u003c/li\u003e\n\u003c/ol\u003e","title":"💽 Create Bootable Windows USB Flash Drive"},{"content":"For that example, I\u0026rsquo;ll use one of my GitHub projects arduino-toolbox, Travis-CI and Coveralls but the command lines will be exactly the same for any other setup.\nSince the project is using CMake, the following commands could go inside an add_custom_target rule in CMakeLists.txt\nAdding C++ coverage flag Add --coverage to your CFLAGS or CXXFLAGS.\nWith CMake for C++, it gives you:\nset(CMAKE_CXX_FLAGS \u0026#34;${CMAKE_CXX_FLAGS} -g -O0\u0026#34;) # debug, no optimisation set(CMAKE_CXX_FLAGS \u0026#34;${CMAKE_CXX_FLAGS} --coverage\u0026#34;) # enabling coverage Replace CMAKE_CXX_FLAGS by CMAKE_C_FLAGS for a C project.\nNothing more is needed. From the GNU GCC man:\n\u0026ndash;coverage\nThis option is used to compile and link code instrumented for coverage analysis. The option is a synonym for -fprofile-arcs -ftest-coverage (when compiling) and -lgcov (when linking).\nThe Travis-CI configuration At the root of your git repository, in .travis.yml:\ninstall: - cd ${TRAVIS_BUILD_DIR} # install latest LCOV (1.9 was failing for me) [1] - wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz - tar xf lcov_1.11.orig.tar.gz - sudo make -C lcov-1.11/ install # install lcov to coveralls conversion + upload tool - gem install coveralls-lcov before_script: (optional: for paranoiacs only) - cd ${TRAVIS_BUILD_DIR} - lcov --directory . --zerocounters script: - cd ${TRAVIS_BUILD_DIR} - \u0026lt;your command that compiles\u0026gt; # will generate *.gcno files - \u0026lt;your command that runs\u0026gt; # will generate *.gcda files after_success: - cd ${TRAVIS_BUILD_DIR} - lcov --directory . --capture --output-file coverage.info # capture coverage info - lcov --remove coverage.info \u0026#39;tests/*\u0026#39; \u0026#39;/usr/*\u0026#39; --output-file coverage.info # filter out system and test code - lcov --list coverage.info # debug before upload - coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls My full .travis.yml with support for GTest/GMock and GCC C++11 enable compiler is here.\nThe value of the environment variable ${COVERALLS_TOKEN} is set in the settings page of your Travis project (https://travis-ci.org/\u0026lt;github-user\u0026gt;/\u0026lt;project-name\u0026gt;/settings) under the Environment Variables section.\nNotes 1: this should not be needed when the Travis VM image updates to Ubuntu Utopia.\nUpdate: 13/01/2016\nAs mentioned in the comment and here, you SHOULD not specify your repo-token on the command line.\n","permalink":"https://blog.gronlier.fr/2015/01/adding-code-coverage-to-your-c-project/","summary":"\u003cp\u003eFor that example, I\u0026rsquo;ll use one of my GitHub projects \u003ca href=\"https://github.com/ticapix/arduino-toolbox\" target=\"_blank\" rel=\"noopener noreferrer\"\u003earduino-toolbox\u003c/a\u003e, \u003ca href=\"https://travis-ci.org\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eTravis-CI\u003c/a\u003e and \u003ca href=\"https://coveralls.io/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eCoveralls\u003c/a\u003e but the command lines will be exactly the same for any other setup.\u003c/p\u003e\n\u003cp\u003eSince the project is using CMake, the following commands could go inside an \u003ca href=\"http://www.cmake.org/cmake/help/v3.0/command/add_custom_target.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003ccode\u003eadd_custom_target\u003c/code\u003e\u003c/a\u003e rule in CMakeLists.txt\u003c/p\u003e\n\u003ch2 id=\"adding-c-coverage-flag\"\u003eAdding C++ coverage flag\u003c/h2\u003e\n\u003cp\u003eAdd \u003ccode\u003e--coverage\u003c/code\u003e to your \u003ccode\u003eCFLAGS\u003c/code\u003e or \u003ccode\u003eCXXFLAGS\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eWith CMake for C++, it gives you:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-cmake\" data-lang=\"cmake\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s\"\u003eCMAKE_CXX_FLAGS\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;${CMAKE_CXX_FLAGS} -g -O0\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"c\"\u003e# debug, no optimisation\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s\"\u003eCMAKE_CXX_FLAGS\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;${CMAKE_CXX_FLAGS} --coverage\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"c\"\u003e# enabling coverage\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eReplace \u003ccode\u003eCMAKE_CXX_FLAGS\u003c/code\u003e by \u003ccode\u003eCMAKE_C_FLAGS\u003c/code\u003e for a C project.\u003c/p\u003e","title":"📊 Adding Code Coverage to your C++ project"},{"content":"I just received my Seeeduino Arch GPRS V2. The doc is as light as the price 🙂 So don\u0026rsquo;t be afraid and open the Eagle file and the bottom of the product wiki page.\nYou\u0026rsquo;ll also need the LPC11U37 datasheet and AN_SIM900 Reference Design Guide_V1.02 (you might find an online copy of the PDF if you don\u0026rsquo;t want to register yourself).\nPower the SIM900 Looking at the schematic, POI1_7 is driving the PWRKEY pin of the SIM900. And from the Reference guide, we can read:\nThe simplest way to turn on/off SIM900 is to drive the PWRKEY to a low level for 1 second then release.\nPOI_2 is also used to enable the EG10 power switch. The trigger is done by changing the pin from HIGH to LOW as depicted on the schematic.\nThat gives you the following code:\n#define PINPWR P1_2 #define PINONOFF P1_7 DigitalOut eg10_pwr(PINPWR); DigitalOut eg10_on(PINONOFF); void EG10PowerUp(void) { eg10_pwr = 1; eg10_on = 1; wait(0.5); eg10_pwr = 0; eg10_on = 0; wait(1); eg10_on = 1; wait(0.5); } Simple GSM test Now you can upload the following code.\nIt\u0026rsquo;ll switch on the SIM900, send the AT command to the modem, read whatever the modem sent back and forward it on the USBSerial console.\nIf it works correctly, you should see the red STATUS LED switching on and the green NETLIGHT LED blinking.\nAlso, if you open a terminal emulator on your PC, you should see:\nI am a virtual serial port AT OK sample_echo_gprs\n#include \u0026#34;mbed.h\u0026#34; #include \u0026#34;USBSerial.h\u0026#34; #define TX_GSM P1_27 #define RX_GSM P1_26 #define TX_DEBUG P1_18 #define RX_DEBUG P1_17 DigitalOut myled1(LED1); //left most LED if board is held as shown in Pinout diagram above DigitalOut myled2(LED4); //2nd from left DigitalOut myled3(LED3); //3rd from left DigitalOut myled4(LED2); //4th from left (right most) Serial gprs(TX_GSM, RX_GSM); Timer timer; USBSerial usb; #define PINPWR P1_2 // power on EG 10, low enable #define PINONOFF P1_7 // switch of EG10, low enable, low for 2s to turn on EG10 DigitalOut eg10_pwr(PINPWR); DigitalOut eg10_on(PINONOFF); void EG10PowerUp(void) { eg10_pwr = 1; eg10_on = 1; wait(0.5); eg10_pwr = 0; eg10_on = 0; wait(1); eg10_on = 1; wait(0.5); } int wait_answer(int timeout) { timer.start(); // start timer myled2 = 1; while (timer.read() \u0026lt; timeout) { if (gprs.readable()) { myled3 = 1; wait_ms(100); while (gprs.readable()) { char c = gprs.getc(); usb.putc(c); } myled3 = 0; } } timer.stop(); // stop timer timer.reset(); // clear timer myled2 = 0; return 0; } int main(void) { myled1 = 0; myled2 = 0; myled3 = 0; myled4 = 0; myled1 = 1; EG10PowerUp(); myled1 = 0; gprs.baud(115200); while (true) { usb.printf(\u0026#34;I am a virtual serial port\\r\\n\u0026#34;); gprs.printf(\u0026#34;AT\\r\\n\u0026#34;); wait_answer(1 /* sec */); } return 0; } ","permalink":"https://blog.gronlier.fr/2014/11/seeeduino-arch-gprs-v2/","summary":"\u003cp\u003eI just received my \u003ca href=\"http://www.seeedstudio.com/wiki/Arch_GPRS_V2\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eSeeeduino Arch GPRS V2\u003c/a\u003e.\nThe doc is as light as the price 🙂 So don\u0026rsquo;t be afraid and open the Eagle file and the bottom of the product wiki page.\u003c/p\u003e\n\u003cp\u003eYou\u0026rsquo;ll also need the \u003ca href=\"http://www.nxp.com/documents/data_sheet/LPC11U3X.pdf\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eLPC11U37\u003c/a\u003e datasheet and \u003ca href=\"http://wm.sim.com/downloaden.aspx?id=2808\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eAN_SIM900 Reference Design Guide_V1.02 \u003c/a\u003e(you might find an online copy of the PDF if you don\u0026rsquo;t want to register yourself).\u003c/p\u003e\n\u003ch2 id=\"power-the-sim900\"\u003ePower the SIM900\u003c/h2\u003e\n\u003cp\u003e\u003ca href=\"images/sim900_power01.jpg\"\u003e\u003cimg loading=\"lazy\" decoding=\"async\" src=\"images/sim900_power01-150x150.jpg\" alt=\"Schematic extract showing the POI1_7 pin driving the PWRKEY pin of the SIM900\" width=\"150\" height=\"150\" /\u003e\u003c/a\u003e\u003c/p\u003e","title":"📡 Seeeduino Arch GPRS V2"},{"content":"I bought a MCU123 USBee AX Pro clone on dx.com which is very similar to a Saleae Logic.\nTo use it with the Saleae software, the VID/PID need to be reprogrammed.\nThe procedure is well explained here if you have Windows. If you have Linux, continue to read.\nAs explained in the Windows version of this tutorial, you have to flash the device with a special firmware that enables to read/write the EEPROM where the VID/PID are stored.\nInstall and compile some tools $ sudo aptitude install fxload $ sudo aptitude install libusb-1.0-0-dev $ git clone https://github.com/ribalda/fx2eeprom.git $ cd fx2eeprom $ make Identify the USB bus and device numbers $ lsusb ... Bus 001 Device 017: ID 08a9:0014 CWAV Inc. USBee AX-Pro ... Flash the device sudo fxload -D /dev/bus/usb/001/017 -t fx2lp -I vend_ax.hex Read the first 8 bytes from the EEPROM sudo ./fx2eeprom r 0x08a9 0x0014 8 \u0026gt; eeprom.dat Edit the VID/PID from the dump with your favorite hex editor Before edition $ hexdump -C eeprom.dat.bak 00000000 c0 a9 08 14 00 00 1b 00 |........| 00000008 After edition $ hexdump -C eeprom.dat 00000000 c0 25 09 81 38 00 1b 00 |.%..8...| 00000008 Write the new EEPROM cat eeprom.dat | sudo ./fx2eeprom w 0x08a9 0x0014 8 unplug\u0026amp;plug your device and enjoy $ lsusb ... Bus 001 Device 019: ID 0925:3881 Lakeview Research Saleae Logic ... In case it doesn\u0026rsquo;t work, your next step is probably there.\nAs a side note and without surprise: cheap hardware =\u0026gt; cheap results. Don\u0026rsquo;t expect to have a perfect sampling above 1 MHz. It\u0026rsquo;s fine for general debugging with an Arduino or Raspberry Pi but otherwise, I\u0026rsquo;m personally waiting for Saleae to ship their new Logic Pro 8.\n","permalink":"https://blog.gronlier.fr/2014/07/usbee-ax-pro-reprogramming/","summary":"\u003cp\u003eI bought a \u003ca href=\"http://sigrok.org/wiki/MCU123_USBee_AX_Pro_clone\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eMCU123 USBee AX Pro clone\u003c/a\u003e on \u003ca href=\"http://www.dx.com/p/logic-analyzer-w-dupont-lines-and-usb-cable-for-scm-black-148945\" target=\"_blank\" rel=\"noopener noreferrer\"\u003edx.com\u003c/a\u003e which is very similar to a Saleae Logic.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"images/usbee_ax_clone.png\"\u003e\u003cimg loading=\"lazy\" decoding=\"async\" src=\"images/usbee_ax_clone.png\" alt=\"The MCU123 USBee AX Pro logic analyzer clone board\" width=\"120\" height=\"120\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTo use it with the Saleae software, the VID/PID need to be reprogrammed.\u003c/p\u003e\n\u003cp\u003eThe procedure is well explained \u003ca href=\"http://www.jwandrews.co.uk/2011/12/saleae-logic-analyser-clone-teardown-and-reprogramming/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ehere\u003c/a\u003e if you have Windows.\nIf you have Linux, continue to read.\u003c/p\u003e\n\u003cp\u003eAs explained in the Windows version of this tutorial, you have to flash the device with a special firmware that enables to read/write the EEPROM where the VID/PID are stored.\u003c/p\u003e","title":"🔌 USBee AX Pro reprogramming"},{"content":"You need to have python2.7 installed.\ncd /usr/lib/python3/dist-packages/ cp /usr/lib/python2.7/dist-packages/rpdb2.py . Apply patch rpdb2_3.3\n--- /usr/lib/python2.7/dist-packages/rpdb2.py 2010-08-17 22:12:52.000000000 +0300 +++ rpdb2.py 2014-05-14 10:37:29.559752856 +0300 @@ -7280,7 +7280,7 @@ Set rpdb2 to wrap all signal handlers. \u0026#34;\u0026#34;\u0026#34; for key, value in list(vars(signal).items()): - if not key.startswith(\u0026#39;SIG\u0026#39;) or key in [\u0026#39;SIG_IGN\u0026#39;, \u0026#39;SIG_DFL\u0026#39;, \u0026#39;SIGRTMIN\u0026#39;, \u0026#39;SIGRTMAX\u0026#39;]: + if not key.startswith(\u0026#39;SIG\u0026#39;) or key in [\u0026#39;SIG_IGN\u0026#39;, \u0026#39;SIG_DFL\u0026#39;, \u0026#39;SIGRTMIN\u0026#39;, \u0026#39;SIGRTMAX\u0026#39;, \u0026#39;SIG_BLOCK\u0026#39;, \u0026#39;SIG_BLOCK\u0026#39;, \u0026#39;SIG_UNBLOCK\u0026#39;, \u0026#39;SIG_SETMASK\u0026#39;]: continue handler = signal.getsignal(value) Start Winpdb using python2\nStart rpdb2 using python3\npython3 /usr/lib/python3/dist-packages/rpdb2.py --debuggee myscript.py Attach the newly created debugger to Winpdb.\n","permalink":"https://blog.gronlier.fr/2014/05/winpdb-with-python3/","summary":"\u003cp\u003eYou need to have python2.7 installed.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003ecd\u003c/span\u003e /usr/lib/python3/dist-packages/\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp /usr/lib/python2.7/dist-packages/rpdb2.py .\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eApply \u003ca href=\"https://groups.google.com/forum/#!topic/winpdb/J9rUYIvlkE0\" target=\"_blank\" rel=\"noopener noreferrer\"\u003epatch\u003c/a\u003e \u003cem\u003erpdb2_3.3\u003c/em\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-diff\" data-lang=\"diff\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"gd\"\u003e--- /usr/lib/python2.7/dist-packages/rpdb2.py   2010-08-17 22:12:52.000000000 +0300\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"gi\"\u003e+++ rpdb2.py    2014-05-14 10:37:29.559752856 +0300\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"gu\"\u003e@@ -7280,7 +7280,7 @@\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        Set rpdb2 to wrap all signal handlers.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026#34;\u0026#34;\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        for key, value in list(vars(signal).items()):\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"gd\"\u003e-            if not key.startswith(\u0026#39;SIG\u0026#39;) or key in [\u0026#39;SIG_IGN\u0026#39;, \u0026#39;SIG_DFL\u0026#39;, \u0026#39;SIGRTMIN\u0026#39;, \u0026#39;SIGRTMAX\u0026#39;]:\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"gi\"\u003e+            if not key.startswith(\u0026#39;SIG\u0026#39;) or key in [\u0026#39;SIG_IGN\u0026#39;, \u0026#39;SIG_DFL\u0026#39;, \u0026#39;SIGRTMIN\u0026#39;, \u0026#39;SIGRTMAX\u0026#39;, \u0026#39;SIG_BLOCK\u0026#39;, \u0026#39;SIG_BLOCK\u0026#39;, \u0026#39;SIG_UNBLOCK\u0026#39;, \u0026#39;SIG_SETMASK\u0026#39;]:\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                continue\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            handler = signal.getsignal(value)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eStart Winpdb using python2\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eStart rpdb2 using python3\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003epython3 /usr/lib/python3/dist-packages/rpdb2.py --debuggee myscript.py\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eAttach the newly created debugger to Winpdb.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e","title":"🐍 Winpdb with Python3"},{"content":"I\u0026rsquo;ve developed a small RESTful service with Tornado and I wanted to generate docs for the exposed API. Lucky me, someone already thought about it and created the sphinxcontrib.autohttp.tornado addon for Sphinx.\nThe next few tips will help getting the work done:\nIf you\u0026rsquo;re using python-3, you need to use this file tornado.py. The latest release 1.2.1 (as of 30/04/2014) doesn\u0026rsquo;t work with python-3, because methods = inspect.getmembers(handler, predicate=inspect.ismethod) # returns an empty array with python-3 The predicate needs to be changed to include ismethod or isfunction.\nIn the subclass of the RequestHandler, be sure that the SUPPORTED_METHODS is defined as a tuple\nSUPPORTED_METHODS=(\u0026#39;GET\u0026#39;) # WRONG SUPPORTED_METHODS=(\u0026#39;GET\u0026#39;,) # CORRECT If you add a decorator to your handler methods, be sure to use functools.wraps or functools.update_wrapper to copy the docstring of the original method to the function returned by the decorator.\n","permalink":"https://blog.gronlier.fr/2014/04/exporting-api-reference-from-tornado-app-mistakes-to-avoid/","summary":"\u003cp\u003eI\u0026rsquo;ve developed a small RESTful service with \u003ca href=\"http://www.tornadoweb.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eTornado\u003c/a\u003e and I wanted to generate docs for the exposed API.\nLucky me, someone already thought about it and created the \u003ca href=\"https://pythonhosted.org/sphinxcontrib-httpdomain/#module-sphinxcontrib.autohttp.tornado\" target=\"_blank\" rel=\"noopener noreferrer\"\u003esphinxcontrib.autohttp.tornado\u003c/a\u003e addon for \u003ca href=\"http://sphinx-doc.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eSphinx\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eThe next few tips will help getting the work done:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eIf you\u0026rsquo;re using python-3, you need to use this file \u003ca href=\"https://bitbucket.org/birkenfeld/sphinx-contrib/src/940757f22e335f6ae98521621201683d6bab1d60/httpdomain/sphinxcontrib/autohttp/tornado.py?at=default\" target=\"_blank\" rel=\"noopener noreferrer\"\u003etornado.py\u003c/a\u003e.\nThe latest release 1.2.1 (as of 30/04/2014) doesn\u0026rsquo;t work with python-3, because\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-python\" data-lang=\"python\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003emethods\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"n\"\u003einspect\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003egetmembers\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003ehandler\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"n\"\u003epredicate\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003einspect\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eismethod\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e  \u003cspan class=\"c1\"\u003e# returns an empty array with python-3\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eThe predicate needs to be changed to include \u003ccode\u003eismethod or isfunction\u003c/code\u003e.\u003c/p\u003e","title":"⚠️ Tornado API docs with Sphinx: pitfalls"},{"content":" GPX tracks (total: 8.5 km):\nMove_2014_04_26_13_57_29_Canoeing Move_2014_04_26_16_36_42_Canoeing ","permalink":"https://blog.gronlier.fr/2014/04/ahja-jogi/","summary":"\u003clink rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css\"\n      integrity=\"sha384-sHL9NAb7lN7rfvG5lfHpm643Xkcjzp4jFvuavGOndn6pjVqS6ny56CAt3nsEVT4H\" crossorigin=\"anonymous\"\u003e\n\u003cdiv id=\"gpxmap-43dcfb5c-0\" class=\"gpxmap\" style=\"height: 450px;\"\u003e\u003c/div\u003e\n\u003cscript type=\"module\"\u003e\nimport * as L from 'https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet-src.esm.js';\n\nconst TRACKS = [{\"colour\":\"blue\",\"name\":\"Move_2014_04_26_13_57_29_Canoeing.gpx\",\"url\":\"/2014/04/ahja-jogi/images/Move_2014_04_26_13_57_29_Canoeing.gpx\"},{\"colour\":\"blue\",\"name\":\"Move_2014_04_26_16_36_42_Canoeing.gpx\",\"url\":\"/2014/04/ahja-jogi/images/Move_2014_04_26_16_36_42_Canoeing.gpx\"}];\nconst FALLBACK = { lat: 58.119, lon: 27.053, zoom: 12 };\nconst el = document.getElementById(\"gpxmap-43dcfb5c-0\");\n\nif (el) {\n  el.dataset.state = 'loading';\n  const map = L.map(el, { scrollWheelZoom: false });\n  L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {\n    maxZoom: 19,\n    attribution: '\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors'\n  }).addTo(map);\n\n  const all = [];\n  let loaded = 0;\n\n  for (const track of TRACKS) {\n    try {\n      const response = await fetch(track.url);\n      if (!response.ok) throw new Error('HTTP ' + response.status);\n      const doc = new DOMParser().parseFromString(await response.text(), 'application/xml');\n      if (doc.getElementsByTagName('parsererror').length) throw new Error('not valid GPX');\n\n      const segments = [];\n      for (const seg of doc.querySelectorAll('trkseg')) {\n        const pts = [...seg.querySelectorAll('trkpt')]\n          .map(p =\u003e [Number(p.getAttribute('lat')), Number(p.getAttribute('lon'))])\n          .filter(pt =\u003e Number.isFinite(pt[0]) \u0026\u0026 Number.isFinite(pt[1]));\n        if (pts.length) segments.push(pts);\n      }\n      if (!segments.length) {\n        const pts = [...doc.querySelectorAll('rtept')]\n          .map(p =\u003e [Number(p.getAttribute('lat')), Number(p.getAttribute('lon'))])\n          .filter(pt =\u003e Number.isFinite(pt[0]) \u0026\u0026 Number.isFinite(pt[1]));\n        if (pts.length) segments.push(pts);\n      }\n      if (!segments.length) throw new Error('no track points');\n\n      let drawn = 0;\n      for (const pts of segments) {\n        L.polyline(pts, { color: track.colour, weight: 4, opacity: 0.85 }).addTo(map);\n        all.push(...pts);\n        drawn += pts.length;\n      }\n      const first = segments[0][0];\n      const lastSeg = segments[segments.length - 1];\n      const last = lastSeg[lastSeg.length - 1];\n      L.circleMarker(first, { radius: 5, color: track.colour, fillColor: '#ffffff', fillOpacity: 1 })\n        .addTo(map).bindPopup('\u003cb\u003e' + track.name + '\u003c/b\u003e\u003cbr\u003estart · ' + drawn + ' points');\n      L.circleMarker(last, { radius: 5, color: track.colour, fillColor: track.colour, fillOpacity: 1 })\n        .addTo(map).bindPopup('\u003cb\u003e' + track.name + '\u003c/b\u003e\u003cbr\u003eend');\n      loaded++;\n    } catch (err) {\n      console.error('gpxmap: ' + track.url, err);   \n    }\n  }\n\n  if (all.length) {\n    map.fitBounds(all, { padding: [12, 12] });\n  } else {\n    map.setView([FALLBACK.lat, FALLBACK.lon], FALLBACK.zoom);\n  }\n  el.dataset.state = loaded ? 'ready' : 'error';\n}\n\u003c/script\u003e\n\n\u003cp\u003eGPX tracks (total: 8.5 km):\u003c/p\u003e","title":"🛶 Ahja jõgi"},{"content":"Attempt to rent a movie online with CanalPlay VOD 21h25\nFind a movie and decide to watch it. First failure because Linux is not a supported OS Booting Windows XP in a Virtual Machine (vmware) Scan of the computer configuration from the CanalPlay website Incompatible media player -\u0026gt; Request to update to Windows Media Player 11 6 clicks further on the Microsoft website, before the update can be downloaded, a genuine Windows code must be entered. The code is given by an application to download and execute on the computer. Once the code entered, the download starts (25MB) Windows Media Player 11 installation Goto step 4. CanalPlay plugin installation Restart the browser Goto step 4. Windows Media Player 11 scan fails again. Reboot the computer (well, the VM)\n21h36 During reboot, some system updates are applied. The plugin still doesn\u0026rsquo;t work with Firefox The scan finally works with IE Creating a CanalPlay account Wrong country: the movie is not available Creating an SSH Socks proxy to a server in France (Thanks OVH)\n21h45 Renting the movie in SD for 48h for 4€ (Yes, I really want to try) The payment is rejected because a foreign credit card is used. Shutting down the VM\n21h48 Creating a Purevid account Monthly subscription for 4.5€ Starting the movie in streaming from Linux with Firefox.\n21h53 ","permalink":"https://blog.gronlier.fr/2014/03/canalplay-vod/","summary":"\u003ch2 id=\"attempt-to-rent-a-movie-online-with-canalplay-vod\"\u003eAttempt to rent a movie online with CanalPlay VOD\u003c/h2\u003e\n\u003cp\u003e\u003cstrong\u003e21h25\u003c/strong\u003e\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eFind a movie and decide to watch it.\u003c/li\u003e\n\u003cli\u003eFirst failure because Linux is not a supported OS\u003c/li\u003e\n\u003cli\u003eBooting Windows XP in a Virtual Machine (vmware)\u003c/li\u003e\n\u003cli\u003eScan of the computer configuration from the CanalPlay website\u003c/li\u003e\n\u003cli\u003eIncompatible media player -\u0026gt; Request to update to Windows Media Player 11\u003c/li\u003e\n\u003cli\u003e6 clicks further on the Microsoft website, before the update can be downloaded, a genuine Windows code must be entered.\u003c/li\u003e\n\u003cli\u003eThe code is given by an application to download and execute on the computer.\u003c/li\u003e\n\u003cli\u003eOnce the code entered, the download starts (25MB)\u003c/li\u003e\n\u003cli\u003eWindows Media Player 11 installation\u003c/li\u003e\n\u003cli\u003eGoto step 4.\u003c/li\u003e\n\u003cli\u003eCanalPlay plugin installation\u003c/li\u003e\n\u003cli\u003eRestart the browser\u003c/li\u003e\n\u003cli\u003eGoto step 4.\u003c/li\u003e\n\u003cli\u003eWindows Media Player 11 scan fails again.\u003c/li\u003e\n\u003cli\u003eReboot the computer (well, the VM)\u003cbr\u003e\n\u003cstrong\u003e21h36\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003eDuring reboot, some system updates are applied.\u003c/li\u003e\n\u003cli\u003eThe plugin still doesn\u0026rsquo;t work with Firefox\u003c/li\u003e\n\u003cli\u003eThe scan finally works with IE\u003c/li\u003e\n\u003cli\u003eCreating a CanalPlay account\u003c/li\u003e\n\u003cli\u003eWrong country: the movie is not available\u003c/li\u003e\n\u003cli\u003eCreating an SSH Socks proxy to a server in France (Thanks OVH)\u003cbr\u003e\n\u003cstrong\u003e21h45\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003eRenting the movie in SD for 48h for 4€ (Yes, I really want to try)\u003c/li\u003e\n\u003cli\u003eThe payment is rejected because a foreign credit card is used.\u003c/li\u003e\n\u003cli\u003eShutting down the VM\u003cbr\u003e\n\u003cstrong\u003e21h48\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003eCreating a Purevid account\u003c/li\u003e\n\u003cli\u003eMonthly subscription for 4.5€\u003c/li\u003e\n\u003cli\u003eStarting the movie in streaming from Linux with Firefox.\u003cbr\u003e\n\u003cstrong\u003e21h53\u003c/strong\u003e\u003c/li\u003e\n\u003c/ol\u003e","title":"🎬 CanalPlay VOD"},{"content":"This is my conf to stream my Linux desktop screen in my apartment using VLC.\nServer side The vlm configuration It captures my left screen and audio from pulseaudio. Video is encoded with X264 tuned for zerolatency. Audio is encoded in MP3. The element streams are encapsulated in a Transport Stream over RTSP.\nnew Remote vod setup Remote input screen:// setup Remote option screen-fps=25 setup Remote option screen-caching=50 setup Remote option screen-top=0 setup Remote option screen-left=0 setup Remote option screen-width=1280 setup Remote option screen-height=1024 setup Remote option input-slave=pulse:// setup Remote option sout-udp-caching=50 setup Remote option udp-caching=50 setup Remote option rtsp-caching=50 setup Remote option tcp-caching=50 setup Remote output #transcode{vcodec=h264,venc=x264{tune=zerolatency,crf=30},acodec=mp3,ab=128}:rtp{mux=ts,description=\u0026#39;screen\u0026#39;,sdp=rtsp://:8888/remote.sdp} setup Remote enabled # extra venc option #preset=ultrafast # extra scaling #transcode{scale=1,fps=25,width=640,height=480} # extra output format #std{access=http,mux=ts,dst=localhost:8888} #std{access=file,mux=ts,dst=/tmp/remote.ts} #rtp{mux=ts,description=\u0026#39;screen\u0026#39;,sdp=rtsp://:8888/remote.sdp} The VLC command line cvlc --ttl 2 -vvv --color --vlm-conf screen.vlm Client Side The VLC command line vlc rtsp://localhost:8888/remote.sdp ","permalink":"https://blog.gronlier.fr/2014/03/screen-sharing/","summary":"\u003cp\u003eThis is my conf to stream my Linux desktop screen in my apartment using VLC.\u003c/p\u003e\n\u003ch2 id=\"server-side\"\u003eServer side\u003c/h2\u003e\n\u003ch3 id=\"the-vlm-configuration\"\u003eThe vlm configuration\u003c/h3\u003e\n\u003cp\u003eIt captures my left screen and audio from pulseaudio.\nVideo is encoded with X264 tuned for zerolatency.\nAudio is encoded in MP3.\nThe element streams are encapsulated in a Transport Stream over RTSP.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003enew Remote vod\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote input screen://\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option screen-fps=25\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option screen-caching=50\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option screen-top=0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option screen-left=0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option screen-width=1280\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option screen-height=1024\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option input-slave=pulse://\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option sout-udp-caching=50\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option udp-caching=50\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option rtsp-caching=50\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote option tcp-caching=50\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote output #transcode{vcodec=h264,venc=x264{tune=zerolatency,crf=30},acodec=mp3,ab=128}:rtp{mux=ts,description=\u0026#39;screen\u0026#39;,sdp=rtsp://:8888/remote.sdp}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esetup Remote enabled\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# extra venc option\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#preset=ultrafast\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# extra scaling\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#transcode{scale=1,fps=25,width=640,height=480}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# extra output format\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#std{access=http,mux=ts,dst=localhost:8888}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#std{access=file,mux=ts,dst=/tmp/remote.ts}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#rtp{mux=ts,description=\u0026#39;screen\u0026#39;,sdp=rtsp://:8888/remote.sdp}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"the-vlc-command-line\"\u003eThe VLC command line\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecvlc --ttl \u003cspan class=\"m\"\u003e2\u003c/span\u003e -vvv --color --vlm-conf screen.vlm\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"client-side\"\u003eClient Side\u003c/h2\u003e\n\u003ch3 id=\"the-vlc-command-line-1\"\u003eThe VLC command line\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003evlc rtsp://localhost:8888/remote.sdp\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"📺 LAN Screen + Audio sharing"},{"content":"In 2009, I bought an Iolair MB24W, one of those with a MVA display. Except the time when I had to reset the screen to restore the EDID (Press M, +, - until the blue LED blinks 3 times), the screen works fine \u0026hellip; until recently.\nThe screen switches on but stays white. No picture at all, not even the OSD menu.\nLet\u0026rsquo;s look inside. Maybe it\u0026rsquo;s a disconnected cable like most forums will suggest.\nUntil now, it looks good. Let\u0026rsquo;s look at the electronic board.\nFound it !! Three capacitors are dead. (The 3 purple ones). It\u0026rsquo;s noticeable by the little dark liquid that escaped from the safety valve.\nEither I replace the entire board, EMAX PWR1002406003, that costs ~40€ online or try to replace the 3 capacitors rated 1200µF 16V.\n3€ later, the capacitors are changed and the screen is working again perfectly fine 🙂\n","permalink":"https://blog.gronlier.fr/2014/03/lcd-repair/","summary":"\u003cp\u003eIn 2009, I bought an \u003ca href=\"http://www.lesnumeriques.com/moniteur-ecran-lcd/iolair-mb24w-p3118/test.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eIolair MB24W\u003c/a\u003e, one of those with a \u003ca href=\"http://en.wikipedia.org/wiki/Thin-film-transistor_liquid-crystal_display#Multi-domain_vertical_alignment_.28MVA.29\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eMVA\u003c/a\u003e display.\nExcept the time when I had to reset the screen to restore the EDID (Press M, +, - until the blue LED blinks 3 times), the screen works fine \u0026hellip; until recently.\u003c/p\u003e\n\u003cp\u003eThe screen switches on but stays white.\nNo picture at all, not even the OSD menu.\u003c/p\u003e\n\u003cp\u003eLet\u0026rsquo;s look inside.\nMaybe it\u0026rsquo;s a disconnected cable like most forums will suggest.\u003c/p\u003e","title":"🔧 LCD repair"},{"content":"Following on from the first part of the Blync hack, I want to be able to control the color from a terminal.\nLet\u0026rsquo;s create a simple protocol\nCommand Input in byte Output in byte Default mode 0..7: 0 (AUTO) no output Get current RGB value 0..7: 1 (GET) 0..7: Red as [0..255]\n8..15: Green as [0..255]\n16..23: Blue as [0..255] Set RGB value 0..7: 2 (SET)\n8..15: Red as [0..255]\n16..23: Green as [0..255]\n24..31: Blue as [0..255] 0..7: 1 (ACK) Here is the demo code in Python using pyserial.\npip install pyserial #!/usr/bin/env python3 from time import sleep import serial CMD_AUTO = 0 CMD_GET = 1 CMD_SET = 2 CMD_ACK = 1 if __name__ == \u0026#34;__main__\u0026#34;: ser = serial.Serial(\u0026#39;/dev/ttyACM0\u0026#39;, 9600) for i in range(0, 256): ser.write(bytearray([CMD_SET, i, i, i])) assert ser.read(1)[0] == CMD_ACK ser.write(bytearray([CMD_GET])) print(ser.read(3)) ser.write(bytearray([CMD_AUTO])) And here is the Arduino code.\n","permalink":"https://blog.gronlier.fr/2014/03/blync-2/","summary":"\u003cp\u003eFollowing on from the first \u003ca href=\"../blync/\" title=\"Blync\"\u003epart\u003c/a\u003e of the \u003ca href=\"http://www.blynclight.com/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eBlync\u003c/a\u003e hack, I want to be able to control the color from a terminal.\u003c/p\u003e\n\u003cp\u003eLet\u0026rsquo;s create a simple protocol\u003c/p\u003e\n\u003ctable\u003e\n\t\u003cthead\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003cth\u003eCommand\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003eInput in byte\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003eOutput in byte\u003c/th\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/thead\u003e\n\t\u003ctbody\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eDefault mode\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e\u003ccode\u003e0..7\u003c/code\u003e: \u003ccode\u003e0\u003c/code\u003e (AUTO)\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eno output\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eGet current RGB value\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e\u003ccode\u003e0..7\u003c/code\u003e: \u003ccode\u003e1\u003c/code\u003e (GET)\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e\u003ccode\u003e0..7\u003c/code\u003e: Red as \u003ccode\u003e[0..255]\u003c/code\u003e\u003cbr/\u003e\u003ccode\u003e8..15\u003c/code\u003e: Green as \u003ccode\u003e[0..255]\u003c/code\u003e\u003cbr/\u003e\u003ccode\u003e16..23\u003c/code\u003e: Blue as \u003ccode\u003e[0..255]\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003eSet RGB value\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e\u003ccode\u003e0..7\u003c/code\u003e: \u003ccode\u003e2\u003c/code\u003e (SET)\u003cbr /\u003e\u003ccode\u003e8..15\u003c/code\u003e: Red as \u003ccode\u003e[0..255]\u003c/code\u003e\u003cbr/\u003e\u003ccode\u003e16..23\u003c/code\u003e: Green as \u003ccode\u003e[0..255]\u003c/code\u003e\u003cbr/\u003e\u003ccode\u003e24..31\u003c/code\u003e: Blue as \u003ccode\u003e[0..255]\u003c/code\u003e\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e\u003ccode\u003e0..7\u003c/code\u003e: \u003ccode\u003e1\u003c/code\u003e (ACK)\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003cp\u003eHere is the demo code in Python using \u003ca href=\"http://pyserial.sourceforge.net/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003epyserial\u003c/a\u003e.\u003c/p\u003e","title":"💡 Blync 2: driving it from the terminal"},{"content":"There is a funny little USB gadget called the Blync identified by VID: 0x1130, PID: 0x0001.\nIt\u0026rsquo;s a glowing RGB cube, but it has two defects for me:\nthe driver is only available for Windows only 7 colors are available Let\u0026rsquo;s fix it.\nSoftware hack That\u0026rsquo;s the easy part.\nPlug your Blync under Windows running in a virtual machine. Start Wireshark under the Linux host Dump USB packets Think Replay packets in Python And Voilà: https://github.com/ticapix/blynux\nHardware hack That is already funnier.\nFirst, unscrew and remove the white top.\nYou will notice 5 RGB LEDs.\nThe LEDs look like this one PLCC6 SMD, LED SMP6-RGB. The Polarity ID or Cathode mark is in the bottom left corner, so lower pins are the ground. They even put labels to ease the identification :) LR, LG, LB for, respectively, the Red, Green, Blue pins.\nTake a Leonardo Pro Micro (! check that the boot loader is already installed !)\nThe Leonardo Pro Micro is a 5V board, but the LEDs need 2.1V for the Red and 3.3V for the Green and Blue so we need to add 3 resistors of value $$R=\\frac{(V_{in}-V_{forward})}{I_{forward}}$$ and keep in mind that $I_{forward}$ is multiplied by 5.\nIn fact, the pins on the board can safely output only 40mA, which is less than the needed amount of 5*20mA=100mA. The proper solution would be to use a MOSFET like the IRF530.\nI selected a resistor around $72 \\Omega = \\frac{(5-2.1)}{0.04}$ for red and $42 \\Omega = \\frac{(5-3.3)}{0.04}$ for green and blue.\nOnce this is done, solder the wires to the resistors to the PWM enable pins of the Leonardo. I choose pins 3, 5, 6.\nUpload some code via the Arduino IDE and plug it in a USB port. The cube should glow in this order: Red $\\rightarrow$ Yellow $\\rightarrow$ Green $\\rightarrow$ Cyan $\\rightarrow$ Blue $\\rightarrow$ Magenta $\\rightarrow$ Red.\nconst char steps[6][3] = { { 0, 1, 0 } , // start from red (255, 0, 0) and go to yellow (255, 255, 0) { -1, 0, 0 } , // go to green (0, 255, 0) { 0, 0, 1 } , // go to cyan (0, 255, 255) { 0, -1, 0 } , // go to blue (0, 0, 255) { 1, 0, 0 } , // go to magenta (255, 0, 255) { 0, 0, -1 } , // go back to red (255, 0, 0) }; int rpin = 6; int gpin = 5; int bpin = 3; int pot_pin = 0; void setup() // run once, when the sketch starts { pinMode(rpin, OUTPUT); // sets the pin as output pinMode(gpin, OUTPUT); // sets the pin as output pinMode(bpin, OUTPUT); // sets the pin as output } void loop() // run over and over again { unsigned char color[3] = { 255, 0, 0 }; // start by red for (int c = 0; c \u0026lt; 6; ++c) { // go through the 6 colors for (int i = 0; i \u0026lt; 255; ++i) { color[0] += steps[c][0]; color[1] += steps[c][1]; color[2] += steps[c][2]; analogWrite(rpin, color[0]); analogWrite(gpin, color[1]); analogWrite(bpin, color[2]); delay(30); } } } ","permalink":"https://blog.gronlier.fr/2014/03/blync/","summary":"\u003cp\u003eThere is a funny little USB gadget called the \u003ca href=\"http://www.blynclight.com/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eBlync\u003c/a\u003e identified by VID: 0x1130, PID: 0x0001.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"images/WP_20140303_006.jpg\"\u003e\u003cimg src=\"images/WP_20140303_006-300x294.jpg\" alt=\"The Blync USB RGB light cube\" width=\"300\" height=\"294\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIt\u0026rsquo;s a glowing RGB cube, but it has two defects for me:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003ethe driver is only available for Windows\u003c/li\u003e\n\u003cli\u003eonly 7 colors are available\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eLet\u0026rsquo;s fix it.\u003c/p\u003e\n\u003ch2 id=\"software-hack\"\u003eSoftware hack\u003c/h2\u003e\n\u003cp\u003eThat\u0026rsquo;s the easy part.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003ePlug your Blync under Windows running in a virtual machine.\u003c/li\u003e\n\u003cli\u003eStart Wireshark under the Linux host\u003c/li\u003e\n\u003cli\u003eDump USB packets\u003c/li\u003e\n\u003cli\u003eThink\u003c/li\u003e\n\u003cli\u003eReplay packets in Python\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eAnd Voilà: \u003ca href=\"https://github.com/ticapix/blynux\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ehttps://github.com/ticapix/blynux\u003c/a\u003e\u003c/p\u003e","title":"🎛️ Blync 1: reverse-engineering the USB cube"},{"content":"I\u0026rsquo;m Pierre Gronlier, and these are my notes on electronics, embedded Linux and automation.\nGitLab GitHub LinkedIn StackExchange CV ","permalink":"https://blog.gronlier.fr/about/","summary":"\u003cp\u003eI\u0026rsquo;m Pierre Gronlier, and these are my notes on electronics, embedded Linux and automation.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://gitlab.com/pierre-gronlier\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eGitLab\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://github.com/ticapix\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eGitHub\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.linkedin.com/in/pierregronlier/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eLinkedIn\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://stackexchange.com/users/1437337/ticapix\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eStackExchange\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://cv.gronlier.fr/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eCV\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e","title":"About"},{"content":"Code #!/bin/sh function prettycheck { local TPUT=\u0026#39;tput\u0026#39; local RED=\u0026#39;1\u0026#39; local GREEN=\u0026#39;2\u0026#39; local BLUE=\u0026#39;4\u0026#39; #man 5 terminfo [ ! -f $(which $TPUT) ] \u0026amp;\u0026amp; TPUT=true cmd=\u0026#34;$@\u0026#34; echo \u0026#34;$\u0026gt; $cmd\u0026#34; $TPUT cuf $((`$TPUT cols` - 8)) # move the end-of-line minus 8 cols $TPUT cuu 1 # move on line up msgerr=$($cmd 2\u0026gt;\u0026amp;1 1\u0026gt; /dev/null) if [ \u0026#34;$?\u0026#34; -ne 0 ]; then $TPUT setaf $RED # change front color echo \u0026#34;[FAILED]\u0026#34; $TPUT setaf $BLUE # change front color echo \u0026#34;$msgerr\u0026#34; else $TPUT setaf $GREEN # change front color echo \u0026#34;[ OK ]\u0026#34; fi $TPUT reset } Demo ","permalink":"https://blog.gronlier.fr/2013/03/pretty-check/","summary":"\u003ch2 id=\"code\"\u003eCode\u003c/h2\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e#!/bin/sh\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e prettycheck \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nb\"\u003elocal\u003c/span\u003e \u003cspan class=\"nv\"\u003eTPUT\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;tput\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nb\"\u003elocal\u003c/span\u003e \u003cspan class=\"nv\"\u003eRED\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;1\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nb\"\u003elocal\u003c/span\u003e \u003cspan class=\"nv\"\u003eGREEN\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;2\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nb\"\u003elocal\u003c/span\u003e \u003cspan class=\"nv\"\u003eBLUE\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;4\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#man 5 terminfo\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"o\"\u003e[\u003c/span\u003e ! -f \u003cspan class=\"k\"\u003e$(\u003c/span\u003ewhich \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e\u003cspan class=\"k\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e \u003cspan class=\"nv\"\u003eTPUT\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003etrue\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003ecmd\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$@\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nb\"\u003eecho\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e$\u003cspan class=\"s2\"\u003e\u0026gt; \u003c/span\u003e\u003cspan class=\"nv\"\u003e$cmd\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e cuf \u003cspan class=\"k\"\u003e$((\u003c/span\u003e\u003cspan class=\"sb\"\u003e`\u003c/span\u003e\u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e cols\u003cspan class=\"sb\"\u003e`\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e \u003cspan class=\"m\"\u003e8\u003c/span\u003e\u003cspan class=\"k\"\u003e))\u003c/span\u003e \u003cspan class=\"c1\"\u003e# move the end-of-line minus 8 cols\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e cuu \u003cspan class=\"m\"\u003e1\u003c/span\u003e \u003cspan class=\"c1\"\u003e# move on line up\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003emsgerr\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003e$(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$cmd\u003c/span\u003e 2\u0026gt;\u003cspan class=\"p\"\u003e\u0026amp;\u003c/span\u003e\u003cspan class=\"m\"\u003e1\u003c/span\u003e 1\u0026gt; /dev/null\u003cspan class=\"k\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"o\"\u003e[\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$?\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e -ne \u003cspan class=\"m\"\u003e0\u003c/span\u003e \u003cspan class=\"o\"\u003e]\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"k\"\u003ethen\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e setaf \u003cspan class=\"nv\"\u003e$RED\u003c/span\u003e \u003cspan class=\"c1\"\u003e# change front color\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nb\"\u003eecho\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;[FAILED]\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e setaf \u003cspan class=\"nv\"\u003e$BLUE\u003c/span\u003e \u003cspan class=\"c1\"\u003e# change front color\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nb\"\u003eecho\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$msgerr\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eelse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e setaf \u003cspan class=\"nv\"\u003e$GREEN\u003c/span\u003e \u003cspan class=\"c1\"\u003e# change front color\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nb\"\u003eecho\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;[  OK  ]\u0026#34;\u003c/span\u003e                                                                                   \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003efi\u003c/span\u003e                                                                                                    \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$TPUT\u003c/span\u003e reset                                                                                           \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"demo\"\u003eDemo\u003c/h2\u003e\n\u003cimg alt=\"Terminal output of the prettycheck demo, with the [ OK ] and [FAILED] status lines placed at the right edge of each command line\" src=\"images/prettycheck.jpg\" width=\"749\" height=\"101\" srcset=\"images/prettycheck.jpg 749w, images/prettycheck-300x40.jpg 300w\" sizes=\"(max-width: 749px) 100vw, 749px\" /\u003e","title":"✅ Pretty Check"},{"content":"Re, Mi, Do, Do, Sol\nbeep -l 500 -f 392 -n -l 500 -f 440 -n -l 500 -f 349.2 -n -l 500 -f 174.6 -n -l 500 -f 262.6 ","permalink":"https://blog.gronlier.fr/2013/03/close-encounters-of-the-third-kind/","summary":"\u003cp\u003eRe, Mi, Do, Do, Sol\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebeep -l \u003cspan class=\"m\"\u003e500\u003c/span\u003e -f \u003cspan class=\"m\"\u003e392\u003c/span\u003e -n -l \u003cspan class=\"m\"\u003e500\u003c/span\u003e -f \u003cspan class=\"m\"\u003e440\u003c/span\u003e -n -l \u003cspan class=\"m\"\u003e500\u003c/span\u003e -f 349.2 -n -l \u003cspan class=\"m\"\u003e500\u003c/span\u003e -f 174.6 -n -l \u003cspan class=\"m\"\u003e500\u003c/span\u003e -f 262.6\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"🛸 Close Encounters of the Third kind"},{"content":"Yeah 🙂\nRead MAC for TeVii S470 PCI-e DVB-S2 card v4l/firmware/Makefile ","permalink":"https://blog.gronlier.fr/2013/03/kernel-patch/","summary":"\u003cp\u003eYeah 🙂\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://patchwork.kernel.org/patch/95090/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eRead MAC for TeVii S470 PCI-e DVB-S2 card\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://patchwork.linuxtv.org/patch/2742/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ev4l/firmware/Makefile\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e","title":"🩹 Kernel Patch"}]