<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Projects on Manos Ragiadakos</title><link>https://rm4n0s.dev/projects/</link><description>Recent content in Projects on Manos Ragiadakos</description><generator>Hugo</generator><language>en</language><atom:link href="https://rm4n0s.dev/projects/index.xml" rel="self" type="application/rss+xml"/><item><title>Glutter</title><link>https://rm4n0s.dev/projects/glutter/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/glutter/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Glutter is a port of Flutter&amp;rsquo;s framework, written again in Go. It runs on its own engine, not on Flutter&amp;rsquo;s. On Linux that is a Wayland and X11 platform layer and a Vulkan renderer with an OpenGL ES 3.0 fallback. On Windows it uses Win32 and Direct3D 12, and on macOS and iOS it uses AppKit, UIKit and Metal. In a browser the same Go code is compiled with &lt;code&gt;GOOS=js GOARCH=wasm&lt;/code&gt; by the standard Go toolchain, and draws with WebGPU or WebGL 2.&lt;/p&gt;</description></item><item><title>Emetos</title><link>https://rm4n0s.dev/projects/emetos/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/emetos/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Emetos follows VS Code where VS Code has the behavior, so a VS Code user finds their way: the same settings, command ids, color themes, TextMate grammars and snippet files, the same formats of &lt;code&gt;settings.json&lt;/code&gt; and &lt;code&gt;keybindings.json&lt;/code&gt;, and VS Code&amp;rsquo;s keyboard shortcuts for Linux.&lt;/p&gt;
&lt;p&gt;Language features (completion, hover, diagnostics, go to definition, rename and more) come from language servers, so the editor itself does not depend on a language.&lt;/p&gt;</description></item><item><title>Soft</title><link>https://rm4n0s.dev/projects/soft/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/soft/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Soft does what &lt;code&gt;go install&lt;/code&gt; does, and one thing more: a desktop application gets an entry in the menu of GNOME, KDE Plasma, Xfce, Sway and Hyprland, and on macOS it becomes an app bundle in &lt;code&gt;~/Applications&lt;/code&gt;, with its icon, so Launchpad, Spotlight and the Finder show it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Programs are built by your own Go command and go where &lt;code&gt;go install&lt;/code&gt; puts them. Soft downloads nothing by itself.&lt;/li&gt;
&lt;li&gt;It remembers what it installed and the version you asked for, and &lt;code&gt;soft update&lt;/code&gt; installs what is outdated.&lt;/li&gt;
&lt;li&gt;Discover lists the applications of the GitHub users and organizations you add as profiles, and searches GitHub for the repositories with the topic &lt;code&gt;soft-app&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;It needs no root: everything it writes is in your own folders.&lt;/li&gt;
&lt;li&gt;An application for Android also goes onto a phone connected by USB. On a Mac, an application for iOS goes onto an iPhone, an iPad or an iOS Simulator.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are three programs that do the same things: &lt;code&gt;soft&lt;/code&gt; for the command line, &lt;code&gt;tsoft&lt;/code&gt; for the terminal, and &lt;code&gt;gsoft&lt;/code&gt; for the desktop.&lt;/p&gt;</description></item><item><title>Tube</title><link>https://rm4n0s.dev/projects/tube/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/tube/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;tube firefox&lt;/code&gt; opens a terminal UI with your OpenVPN profiles. Select one: Tube connects to it and starts Firefox so that all of Firefox&amp;rsquo;s network goes through that VPN. Before the VPN is connected, and after it has ended, the application has no network at all.&lt;/p&gt;
&lt;p&gt;On Linux, Tube needs no root, no &lt;code&gt;sudo&lt;/code&gt;, no system service and no installed &lt;code&gt;openvpn&lt;/code&gt;. The application runs in a private user, network and mount namespace, and its only way out is a TUN device that Tube feeds from the VPN connection. Nothing of the machine&amp;rsquo;s network configuration changes.&lt;/p&gt;</description></item><item><title>Cave</title><link>https://rm4n0s.dev/projects/cave/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/cave/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Cave is for people who want to give a friend, a colleague or their own other computer a shell or a file transfer for a while, without setting up a system service.&lt;/p&gt;
&lt;p&gt;You open it, add the people you trust and the public keys they connect with, and start the server. Cave shows who tried to connect and how many times, who is connected and for how long, and which files they uploaded and downloaded. When you are done, you close it.&lt;/p&gt;</description></item><item><title>Jailcat</title><link>https://rm4n0s.dev/projects/jailcat/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/jailcat/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Jailcat is written in Go, with &lt;a href="https://rm4n0s.dev/projects/glutter/"&gt;Glutter&lt;/a&gt; for the window and SQLite for its data. Every build is kept in the database with only the settings you changed, so a build that is opened again starts from the profile as it is today.&lt;/p&gt;
&lt;p&gt;Your changes are written as firejail lines placed before the &lt;code&gt;include&lt;/code&gt; of the profile, because firejail&amp;rsquo;s &lt;code&gt;ignore&lt;/code&gt; acts only on the lines that are read after it. That is how one short file can switch off a line of a profile that it does not copy.&lt;/p&gt;</description></item><item><title>Passbank</title><link>https://rm4n0s.dev/projects/passbank/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/passbank/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The two files, A and B, can be of any KDBX version from 2.x to 4.1, and need not be of the same one. Passbank lists what differs: entries only in A, entries only in B, entries in both that differ, and entries that one side deleted. The new file is KDBX 4 unless you pick another version.&lt;/p&gt;
&lt;p&gt;There are two programs on one shared core, so both make the same database from the same inputs and choices: &lt;code&gt;passbank&lt;/code&gt;, a command-line tool for terminals and scripts, and &lt;code&gt;passbank-gui&lt;/code&gt;, a desktop application built on &lt;a href="https://rm4n0s.dev/projects/glutter/"&gt;Glutter&lt;/a&gt;. Neither needs a C compiler to build.&lt;/p&gt;</description></item><item><title>Radio Tutor</title><link>https://rm4n0s.dev/projects/radio-tutor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/radio-tutor/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Radio Tutor plays &lt;strong&gt;cassettes&lt;/strong&gt;: files with short animated, narrated lessons and paper-and-pencil exercises for one subject, such as math, a language or history. An AI agent can write the cassettes from a book or a subject.&lt;/p&gt;
&lt;p&gt;A session of a child:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The child logs in and picks a cassette from the shelf.&lt;/li&gt;
&lt;li&gt;The child plays a lesson: an animated picture, a narrator and captions.&lt;/li&gt;
&lt;li&gt;The child solves the worksheet on paper and presses &lt;strong&gt;Check my answers&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The app shows a QR code. The child scans it with a phone, takes photos of the paper and sends them.&lt;/li&gt;
&lt;li&gt;A vision-capable AI model reads the photos and tells the child, for each exercise, whether it is right and why.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Parents keep control: they create the profiles, choose the AI provider (in the cloud or on their own computer), see every photo and can overrule the AI.&lt;/p&gt;</description></item><item><title>English Tutor</title><link>https://rm4n0s.dev/projects/english-tutor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/english-tutor/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;English Tutor is written in Go with &lt;a href="https://rm4n0s.dev/projects/glutter/"&gt;Glutter&lt;/a&gt; and &lt;a href="https://github.com/tmc/langchaingo" rel="noopener"&gt;langchaingo&lt;/a&gt;. The LLM answers a check with a list of mistakes, and the app finds the place of each one in your text. A long text is sent in pieces. When the answer of the model is not in the expected format, the app says so.&lt;/p&gt;
&lt;p&gt;Everything is kept in &lt;code&gt;~/.english-tutor/&lt;/code&gt;: an SQLite database with your LLM list, the documents of the library, the mistake statistics, the token usage and the settings, and a log that is rotated at 5 MB. All SQL goes through gorm, with numbered migrations.&lt;/p&gt;</description></item><item><title>mardp</title><link>https://rm4n0s.dev/projects/mardp/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/mardp/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;mardp captures the screen and the system sound with ScreenCaptureKit, which delivers a frame only when the screen changes. The Mac&amp;rsquo;s hardware encoder turns the frames into H.264 through VideoToolbox, and the sound becomes AAC. Both go to the client inside RDP, over TLS.&lt;/p&gt;
&lt;p&gt;The pointer is not drawn into the picture. Its shape and position are sent on their own, so the client draws it with no delay.&lt;/p&gt;</description></item><item><title>Save Editor</title><link>https://rm4n0s.dev/projects/save-editor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/save-editor/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Open a save, change what the game keeps in it, and save it again. Everything happens on your computer; nothing is uploaded.&lt;/p&gt;
&lt;p&gt;It opens the saves of Ren&amp;rsquo;Py 7 and 8, RPG Maker from 2000 to MZ, Unreal Engine 4 and 5, and Unity (PlayerPrefs, .NET &lt;code&gt;BinaryFormatter&lt;/code&gt;, Easy Save 3 and JSON). The editor recognizes a file by what is in it, not by its name, so a save with an unusual name still opens.&lt;/p&gt;</description></item><item><title>Desktop Mirror</title><link>https://rm4n0s.dev/projects/desktop-mirror/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/desktop-mirror/</guid><description>&lt;h2 id="in-three-steps"&gt;In three steps&lt;a class="anchor" href="#in-three-steps" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Start the desktop app and pick a PC camera.&lt;/li&gt;
&lt;li&gt;Scan the QR code with your phone and accept the one-time certificate warning.&lt;/li&gt;
&lt;li&gt;Allow camera access on the phone. Both feeds start.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The app serves the phone&amp;rsquo;s page itself over HTTPS on your LAN, so both devices must be on the same network. Nothing leaves your network unless you configure a STUN server.&lt;/p&gt;</description></item><item><title>Clowder</title><link>https://rm4n0s.dev/projects/clowder/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/clowder/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A room is a feed of posts, and the conversation about a post happens in the comments under it. Posts and comments carry text or markdown, attachments, tags and tasks, and the tasks of a room are the cards of its Kanban board.&lt;/p&gt;
&lt;p&gt;People also write private messages to each other, one to one or in small groups, and call each other with video or audio. Nobody joins without an invitation, and there is no email.&lt;/p&gt;</description></item><item><title>Bowl of Scenes</title><link>https://rm4n0s.dev/projects/bos/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/bos/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;You keep reusable pieces of prompt in &lt;strong&gt;groups&lt;/strong&gt; (characters, poses, places, styles) and write a one-line &lt;strong&gt;command&lt;/strong&gt; that combines them. The server runs every combination as a &lt;strong&gt;job&lt;/strong&gt; on one or more &lt;a href="https://github.com/comfyanonymous/ComfyUI" rel="noopener"&gt;ComfyUI&lt;/a&gt; servers.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;gpu1, gpu2 -$ anime: characters * poses(~jumping) * &amp;#34;masterpiece&amp;#34; where not #acrobatic limit 20 &amp;gt; upscale
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That line says: on the servers &lt;code&gt;gpu1&lt;/code&gt; and &lt;code&gt;gpu2&lt;/code&gt;, with the generator &lt;code&gt;anime&lt;/code&gt;, make every character in every pose except &lt;code&gt;jumping&lt;/code&gt;, add the text &amp;ldquo;masterpiece&amp;rdquo; to each prompt, leave out anything tagged &lt;code&gt;acrobatic&lt;/code&gt;, keep the first 20, and run each result through the fixer &lt;code&gt;upscale&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>gopenvpn-conn</title><link>https://rm4n0s.dev/projects/gopenvpn-conn/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/gopenvpn-conn/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The library has three layers, and each one works without the ones above it.&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;Package&lt;/th&gt;
					&lt;th&gt;What it gives&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;openvpn&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;The tunnel. &lt;code&gt;openvpn.Dial&lt;/code&gt; returns a &lt;code&gt;net.Conn&lt;/code&gt; whose &lt;code&gt;Read&lt;/code&gt; returns one IP packet from the VPN and whose &lt;code&gt;Write&lt;/code&gt; sends one.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;ovpn&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;The parser of &lt;code&gt;.ovpn&lt;/code&gt; profiles. A profile becomes a &lt;code&gt;Config&lt;/code&gt; and a list of remotes, and &lt;code&gt;Profile.Dial&lt;/code&gt; connects.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;code&gt;vpnnet&lt;/code&gt;&lt;/td&gt;
					&lt;td&gt;A userspace network over a connection: &lt;code&gt;DialContext&lt;/code&gt;, &lt;code&gt;Listen&lt;/code&gt;, &lt;code&gt;ListenPacket&lt;/code&gt; and a &lt;code&gt;*net.Resolver&lt;/code&gt; that go through the VPN, with no TUN device and no root.&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;code&gt;vpnnet&lt;/code&gt; runs gVisor&amp;rsquo;s TCP/IP stack inside the program, and it is the only package of the module that imports it. The packets that the stack sends are written to the connection, and the packets that the connection reads are given to the stack.&lt;/p&gt;</description></item><item><title>errors</title><link>https://rm4n0s.dev/projects/errors/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://rm4n0s.dev/projects/errors/</guid><description>&lt;h2 id="under-the-hood"&gt;Under the hood&lt;a class="anchor" href="#under-the-hood" aria-label="A link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This package gives errors that know their stack trace, as other packages do, with one difference: the methods &lt;code&gt;Route()&lt;/code&gt; and &lt;code&gt;HasRoute()&lt;/code&gt; let a unit test verify that an error happened along a specific path of execution.&lt;/p&gt;
&lt;p&gt;With test-driven development, this lets you design a monolithic application by saying, for each function, which errors it should raise.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;New&lt;/code&gt;, &lt;code&gt;NewErr&lt;/code&gt; and &lt;code&gt;NewErrf&lt;/code&gt; call &lt;code&gt;runtime.Callers&lt;/code&gt; at the line where they run and keep the program counters. The names of the functions are looked up later, when you ask for the route, the frames or the JSON. &lt;code&gt;Route()&lt;/code&gt; walks the frames from the function that made the error outwards and stops at the function that called &lt;code&gt;Route()&lt;/code&gt;, so a test sees the path under the test function and nothing above it.&lt;/p&gt;</description></item></channel></rss>