jaseg.de on Home http://jaseg.de/ Recent content in jaseg.de on Home Hugo en-us Jan Sebastian Götte Sun, 29 Jun 2025 23:42:00 +0100 Getting the .ipynb Notebook File Location From a Running Jupyter Lab Notebook http://jaseg.de/blog/jupyterlab-notebook-file-oneliner/ Sun, 29 Jun 2025 23:42:00 +0100 http://jaseg.de/blog/jupyterlab-notebook-file-oneliner/ <div class="document"> <p>If you need to get the path of the ipynb file in a running #Jupyter notebook, this one-liner will do the trick. It seems chatgpt is confused, and a bunch of other approaches on the web look fragile and/or unnecessarily complex to me.</p> </div> 8seg Technical Overview http://jaseg.de/blog/8seg/ Tue, 26 Dec 2023 15:26:00 +0100 http://jaseg.de/blog/8seg/ <div class="document"> <p>8seg is a large-scale LED light art installation that displays text on a 1.5 meter high, 30 meter wide 8-segment display made from cheap LED tape.</p> </div> KiMesh http://jaseg.de/projects/kimesh/ Wed, 04 Oct 2023 23:42:00 +0200 http://jaseg.de/projects/kimesh/ <div class="document"> <p>KiMesh is a KiCad plugin that automatically creates security meshes with two or traces covering an arbitrarily-shaped outline on the board.</p> </div> Ubiquiti EdgeRouter on Deutsche Telekom GPON Fiber http://jaseg.de/blog/telekom-gpon-sfp/ Mon, 21 Feb 2022 20:00:00 +0100 http://jaseg.de/blog/telekom-gpon-sfp/ <div class="document"> <p>Short tutorial on getting a Deutsche Telekom GPON internet connection running using a SFP ONU unit in an Ubiquiti EdgeRouter.</p> </div> New Paper on Inertial Hardware Security Modules http://jaseg.de/blog/ihsm-worlds-first-diy-hsm/ Tue, 23 Nov 2021 23:42:20 +0100 http://jaseg.de/blog/ihsm-worlds-first-diy-hsm/ <div class="document"> <p>Paper announcement: We have published a paper on how you can DIY a tamper-sensing hardware security module from any single-board computer using a moving tamper-sensing mesh made from cheap PCBs.</p> </div> Kicad Mesh Plugin http://jaseg.de/blog/kicad-mesh-plugin/ Tue, 18 Aug 2020 13:15:39 +0200 http://jaseg.de/blog/kicad-mesh-plugin/ <div class="document"> <p>I wrote a little KiCad plugin that you can use to create security meshes, heaters and other things where you need one or more traces cover the entire surface of a PCB. The plugin supports arbitrary PCB shapes, cutouts, and can route around existing footprints and traces on the PCB.</p> </div> Private Contact Discovery http://jaseg.de/blog/private-contact-discovery/ Sat, 22 Jun 2019 10:30:00 +0800 http://jaseg.de/blog/private-contact-discovery/ <div class="document"> <p>I gave a short introduction into Private Contact Discovery protocols at our university workgroup.</p> </div> Hardware Security Module Basics http://jaseg.de/blog/hsm-basics/ Fri, 17 May 2019 15:29:20 +0800 http://jaseg.de/blog/hsm-basics/ <div class="document"> <p>I gave a short introduction into Hardware Security Modules at our university workgroup, including an overview on interesting research directions.</p> </div> How to talk to your microcontroller over serial http://jaseg.de/blog/serial-protocols/ Sat, 19 May 2018 08:09:46 +0200 http://jaseg.de/blog/serial-protocols/ <div class="document"> <p>Scroll to the end for the <a class="reference internal" href="#conclusion">TL;DR</a>.</p> <p>In this article I will give an overview on the protocols spoken on serial ports, highlighting common pitfalls. I will summarize some points on how to design a serial protocol that is simple to implement and works reliably even under error conditions.</p> <p>If you have done low-level microcontroller firmware you will regularly have had to stuff some data up a serial port to another microcontroller or to a computer. In the age of USB, an old-school serial port is still the simplest and quickest way to get communication to a control computer up and running. Integrating a ten thousand-line USB stack into your firmware and writing the necessary low-level drivers on the host side might take days. Poking a few registers to set up your UART to talk to an external hardware USB to serial converter is a matter of minutes.</p></div> Thor's Hammer http://jaseg.de/blog/thors-hammer/ Thu, 03 May 2018 11:59:37 +0200 http://jaseg.de/blog/thors-hammer/ <div class="document"> <p>In case you were having an inferiority complex because your friends' IBM Model M keyboards are so much louder than the shitty rubber dome freebie you got with your pc... Here's the solution: Thor's Hammer, a simple typing cadence enhancer for <a class="reference external" href="https://en.wikipedia.org/wiki/PS/2_port">PS/2</a> keyboards.</p> <figure data-pagefind-ignore> <video controls loop> <source src="video/thors_hammer.mov" type="video/h264"> <source src="video/thors_hammer.webm" type="video/webm"> Your browser does not support the HTML5 video tag. </video> <figcaption>A demonstration of the completed project. <a href="video/thors_hammer.mov">h264 download</a> / <a href="video/thors_hammer.webm">webm download</a> </figcaption> </figure><p>The connects to the keyboard's PS/2 clock line and briefly actuates a large solenoid on each key press. An interesting fact about PS/2 is that the clock line is only active as long as either the host computer or the input device actually want to send data. In case of a keyboard that's the case when a key is pressed or when the host changes the keyboard's LED state, otherwise the clock line is silent. We ignore the LED activity for now as it's generally coupled to key presses. By just triggering an NE555 configured as astable flipflop we can stretch each train of clock pulses to a pulse a few tens of milliseconds long that is enough to actuate the solenoid.</p></div> 32-Channel LED tape driver http://jaseg.de/blog/multichannel-led-driver/ Wed, 02 May 2018 11:31:14 +0200 http://jaseg.de/blog/multichannel-led-driver/ <div class="document"> <p>Together, a friend and I outfitted the small staircase at Berlin's Chaos Computer Club with nice, shiny RGB-WW LED tape for ambient lighting. For this installation, I made a 32-channel LED driver that achieves high dynamic range on all 32 channels using a cheap microcontroller by using Binary Code Modulation.</p> </div> Wifi Led Driver http://jaseg.de/blog/wifi-led-driver/ Wed, 02 May 2018 11:31:03 +0200 http://jaseg.de/blog/wifi-led-driver/ <div class="document"> <p>After the <a href="#system-message-1"><span class="problematic" id="problematic-1">`multichannel LED driver`_</span></a> was completed, I was just getting used to controlling LEDs at 14-bit resolution. I liked the board we designed in this project, but at 32 channels it was a bit large for most use cases. Sometimes I just want to pop a piece of LED tape or two somewhere, but I don't need a full 32 channels of control. I ended up thinking that a smaller version of the 32-channel driver that didn't require a separate control computer would be handy. So I sat down and designed a variant of the design with only 8 channels instead of 32 and an on-board <a href="#system-message-2"><span class="problematic" id="problematic-2">ESP8266_</span></a> module instead of the <a href="#system-message-3"><span class="problematic" id="problematic-3">RS485_</span></a> transceiver for WiFi connectivity.</p> <div class="system-messages section"> <h2>Docutils System Messages</h2> <div class="system-message" id="system-message-1"> <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;stdin&gt;</tt>, line 1); <em><a href="#problematic-1">backlink</a></em></p> Unknown target name: &quot;multichannel led driver&quot;.</div> <div class="system-message" id="system-message-2"> <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;stdin&gt;</tt>, line 1); <em><a href="#problematic-2">backlink</a></em></p> Unknown target name: &quot;esp8266&quot;.</div> <div class="system-message" id="system-message-3"> <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">&lt;stdin&gt;</tt>, line 1); <em><a href="#problematic-3">backlink</a></em></p> Unknown target name: &quot;rs485&quot;.</div> </div> </div> LED Characterization http://jaseg.de/blog/led-characterization/ Wed, 02 May 2018 11:18:38 +0200 http://jaseg.de/blog/led-characterization/ <div class="document"> <div class="section" id="preface"> <h2>Preface</h2> <p>Recently, I have been working on a <a class="reference external" href="http://jaseg.de/blog/wifi-led-driver/">small driver</a> for ambient lighting using 12V LED strips like you can get inexpensively from China. I wanted to be able to just throw one of these somewhere, stick down some LED tape, hook it up to a small transformer and be able to control it through Wifi. When I was writing the firmware, I noticed that when fading between different colors, the colors look <em>all wrong</em>! This observation led me down a rabbit hole of color perception and LED peculiarities.</p></div> 8seg http://jaseg.de/projects/8seg/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/8seg/ <div class="document"> <p>8seg is an experimental textual display. It is made from a 45m by 1.5m large lacework banner that can be put up in a variety of spaces, conforming to the space's size and shape through bending and folding.</p> </div> About jaseg http://jaseg.de/about/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/about/ <div class="document"> <div class="section" id="about"> <h2>About</h2> <p>Hej, I'm Jan, or jaseg. At the moment I'm doing a PhD (Dr.-Ing.) at TU Darmstadt in Computer Science, specializing on Hardware Security. This is my personal website where I publish things that I find interesting.</p> <p>I self-host my code at <a class="reference external" href="https://git.jaseg.de/">git.jaseg.de</a>, but I am also on <a class="reference external" href="https://github.com/jaseg">github</a> and on <a class="reference external" href="https://gitlab.com/neinseg">gitlab</a>. I use github for issue tracking for some of my projects such as <a class="reference external" href="https://github.com/jaseg/gerbolyze">gerbolyze</a> and <a class="reference external" href="https://github.com/jaseg/python-mpv">python-mpv</a>. I maintain the <a class="reference external" href="https://pypi.org/project/python-mpv/">python-mpv</a> and <a class="reference external" href="https://pypi.org/project/gerbolyze/">gerbolyze</a> python packages on PyPI. Release tags on these two repositories are signed with the release signing key found <a class="reference external" href="https://github.com/jaseg.gpg">on github</a> and below.</p></div> Gerbolyze http://jaseg.de/projects/gerbolyze/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/gerbolyze/ <div class="document"> <p>Gerbolyze is a tool that allows the modification of Gerber PCB artwork with a vector graphics editor like Inkscape. Gerbolyze directly converts between SVG and Gerber, and accurately reproduces details that other tools can not.</p> </div> Gerbonara http://jaseg.de/projects/gerbonara/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/gerbonara/ <div class="document"> <p>Gerbonara is a user-friendly, powerful tool for reading, writing, modification and rendering of Gerber PCB artwork from the command line or from Python code. Gerbonara supports the Gerber dialects of all industry-standard EDA tools.</p> </div> Impressum http://jaseg.de/imprint/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/imprint/ <div class="document"> <div class="section" id="impressum"> <h2>Impressum</h2> <p> Sebastian Götte<br/> c/o Praxis Dr. Götte<br/> Krankenhausstr. 1a<br/> 54634 Bitburg<br/> imprint@jaseg.net </p> Inhaltlich Verantwortlicher gem. § 55 II RStV: Sebastian Götte (Anschrift s.o.)</div> <div class="section" id="lizenz-dieser-seite"> <h2>Lizenz dieser Seite</h2> Dieses Werk ist lizenziert unter einer <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"> Creative Commons Namensnennung - Nicht-kommerziell - Weitergabe unter gleichen Bedingungen 4.0 International Lizenz (CC-BY-NC-SA) </a>.<br/> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"> <img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" data-pagefind-ignore/> </a></div> <div class="section" id="haftungsbeschrankung-fur-inhalte-der-website"> <h2>Haftungsbeschränkung für Inhalte der Website</h2> <p>Gemäß § 7 Abs. 1 TMG ist der Verantwortliche der Website i. S. v. § 5 TMG für eigene Informationen, die er zur Nutzung bereithält, nach den allgemeinen Gesetzen verantwortlich.</p></div> lolcat-c http://jaseg.de/projects/lolcat-c/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/lolcat-c/ <div class="document"> <p>lolcat-c is a small, high-performance re-implementation of the <a class="reference external" href="https://github.com/busyloop/lolcat">lolcat</a> rainbow cat utility. lolcat-c is meant as a lolcat that you can actually use in production. It is fast, not slowing down whatever you pipe through it, and it robustly handles real-world terminal output including escape sequences.</p> </div> python-mpv http://jaseg.de/projects/python-mpv/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/python-mpv/ <div class="document"> <p>python-mpv is a small, ctypes-based Python library wrapping the libmpv media player library. Despite its small size and simple API, python-mpv allows advanced control over libmpv and beyond simple remote control of mpv can be used to embed mpv in OpenGL, Qt, and GTK-based Python applications.</p> </div> svg-flatten http://jaseg.de/projects/svg-flatten/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/svg-flatten/ <div class="document"> <p>svg-flatten is a command-line utility that performs vector occlusion and clipping on SVG files, producing a flattened SVG file without overlapping elements, without changing what the file looks like. svg-flatten is used as a part of gerbolyze.</p> </div> wsdiff http://jaseg.de/projects/wsdiff/ Mon, 01 Jan 0001 00:00:00 +0000 http://jaseg.de/projects/wsdiff/ <div class="document"> <p>wsdiff is a command-line utility that produces self-contained, syntax-highlighted, HTML-formatted diffs that support both unified and side-by-side diffs from a single source file using nothing but CSS magic.</p> </div>