Wednesday, November 25, 2026

Best GUI / TUI

 Let's talk about my favorite GUI and TUI libraries... so far.


Dear IMGUI

I've used this library in a couple of projects (using the branch with docking features). The shear complexity of the interfaces you can build - easily is amazing! And it's pretty easy to also create theme editing interfaces as well! Docking is next level! The structure, being an IMGUI library is surprisingly clean and straightforward. If you are a game dev, you will be right at home with this library - it runs on a 'game loop' of sorts! So events are super easy to code for, and again - you can build REALLY complex graphical interfaces using code that is pretty easy to write and maintain.


Ftxui

For TUI interfaces, I've had a lot of luck with Ftxui! The treeview-based Vim-like notes editor I've built with it, as well as the 'multiplexor' app I've put together both use this library. It's powerful, yet clean and easy to maintain.



Bonus:

AND - if you are doing paired programming with your AI buddy, both of these libraries result in fairly solid code - if you know how to prompt for it and establish a solid code structure early on.


Tuesday, November 24, 2026

I Gave In

I wasn't going to do this, but it IS useful... so I relented.

I added the ability to save and restore layouts in my 'multiplexor' app. They store the state of your tabs and panes as well as the current path each pane is pointed to (that alone saves the user from tedium).

But there are some issues that are creeping up as I start using this app every day. Mainly it's in key combinations being swallowed. For example if I run my console based treeview notes editor in a pane, I'm unable to close dialogues in it. Escape does nothing, or exits me out of NORMAL mode. For some reason Vim is immune to this. I'll have to look at its source code and see how. Also the Ctrl+j that my local RPG LLM app uses to submit prompts just doesn't fire. For now I just added a button to the LLM app, but I'll need to get all of these keys issues fixed.

I'm considering adding a MOVE mode, so that tabs and panes can me swapped and rearranged. This MODES approach is absolutely amazing in a console app like this!

Monday, November 23, 2026

Ghostly Cursors

 My console 'multiplexer' app has an interesting issue.

As I'm typing random ghost cursors are showing up at random positions within the TUI.

It turns out this is an error that has been resolved in a later version of Fxtui. So I've updated my CMake file - and my build.sh script etc.


This appears to have done the trick!


I just tested this app in Windows and the Ftxui parts work great! However the terminals within each pane appear to be broken.

So this week my tasks is to get that piece fixed.

Sunday, November 22, 2026

Project Structure Documentation Key

 I've added a 'key' to the documentation from comments Python script:

structure

So:

//!_structure=/Project Structure
Generates the project structure from within the src directory.

//!_structure=/Project Structure=../
Generates the project structure relative to the src directory.

This lets you generate a project structure ASCII document that is built off of the files and folders in either your source code directory - or your project directory.

You can specify directories that it will ignore when doing this - it has default values of 'build' and 'build-windows'.

So far my testing of this looks good!

Saturday, November 21, 2026

Back to Basic-er

For a while I was using tmux for my workflow, creating panels for Neovim, Git repo work, file browsing etc. But at that time not being able to really persist sessions bothered me (I know the session will keep running and i can attach to it... until I reboot or similar). I tried to mimic that via shell scripts etc and that worked.... ok.

Then I found Herdr. And immediately fell in love.
I liked the layout, loved the persistent sessions, the key binding cheat sheet was short and sweet. I've been using vanilla Herdr ever since.

But you know.... I kind of like the simplicity and utter minimalism of out of the box tmux. So I think I might switch back for a while. And I think I'm going to kill the server whenever I'm done working, so that every time I use it I have to setup my workspace again. This will allow me to REALLY get the key bindings down - and I'll be VERY fast at them. So that soon, setting up any kind of layout I want would take mere seconds.

And since it's vanilla there's no need to worry about any special configurations or plug-in compatibility etc. And I think I'm going to build it from source.
Hmm I should dig into its source code. If I encounter any issues or similar maybe I could fix them myself.

More to come....

The Worst Code I've Ever Seen

A bit over a year ago I broke the only clipboard manager I liked at the time (mainly because it was a .jar file so I could run it at work). I downloaded its source code and tried to give it a dark mode. But it turns out, to do so, would basically be a complete rewrite.

I even had whatever AI I was using at the time attempt the dark mode update. It failed just like I had.

I just wanted a console looking, keyboard driven clipboard manager so I thought maybe I could get AI to code one in Rust. I actually wasn't really interested in coding such a thing I just wanted the app. It worked, I got most of the features I wanted - at least to start out with. BUT it tanked my CPU hard. Even when it wasn't visible, just monitoring the clipboard. After a week of yelling at AI:

"Bruh it's STILL hosing my CPU. Come on."

I decided maybe it was time to learn C++ in earnest... By having AI code a clipboard manager in the language then taking over it updates and maintenance myself.

Everything seemed great, it didn't make a dent iny CPU even after a week of it running non stop. However AI kept breaking the app just doing simple changes. Once it was ao bad I had to roll back a few commits. I realized I would need to dig into the code and see what was going on.

I was tweaking the behavior of one of the key bindings so I started with the if statements that drove key input processing.

AI had written the WORST code I had ever seen.

Windows/Linux checks were all over the place, making the code very difficult to read. The only way to determine what dialogue etc a key binding belonged to required tracing backward and forward to see what might be visible then what it might actually be doing.

So....

The first thing I did was write a Windows key code wrapper and a Linux one, so that I had ONE common set of key codes to work with, and they were intuitively named. Once that was there my key code ifs immediately got much cleaner.

Next I tracked down what each one belonged to and organized them, adding comments to make it even easier to see what groups went to what. Then I broke the implementation into methods. Now every check was an if and a method call. Very easy to read through all the key bindings.

After I made these changes the app never broke again. Yeah there have been bugs, but no full blown crashes or blank windows.

Well....

Until I tried to get AI to make a Wayland compatible piece.
I REALLY don't want to be forced into Wayland.

Document Generating Comments

Some of my projects start off as "I wish there was a a fully Vim-style XYZ...". So I reach out to my AI buddy and start helping him code such a thing for me. A couple of times the project ended up being REALLY cool. So I need to be able to work with the code. Ideally completely taking it over myself. However these are usually pretty ambitious projects so I need to do some learning - which is great!

To aid in this I thought about utilizing an existing 'code comments to documentation' solutions that are out there... BUT!

I have a stand alone HTML treeview driven notes app I built! And in looking at some of the solutions out there I feel like the comments are a lot. I don't want to spam my code with a crap ton of comments, just to get documentation. I have to be able to read the code.

So I put together a Python script and my own comment syntax for a few things (only tested against C++ so far, it it should be able to do other languages via config files). I've used it on the C++ app version of the stand alone HTML notes app and it worked amazingly well! It makes tracking down specific code etc much easier.

Some of its most exciting features:

Print Actual Code
Using
//>>
...
//<<
You can have the code between those written to the docs. So there's no maintaining those code snippets - they ARE the code.

/*
...
!_method
...
*/
This documents a method's footprint - inputs, output, etc -- AND where that method is called in other areas of the code!

/*
...
!_ctor
...
*/
This is like the method one but for constructors.

You can do custom entries in the help system and more. It does increase the amount of comments of course but - in using indent based folding in Vim - I find them fairly unobtrusive! In the future I'll develop this tool further and provide a link to the repo.

Multiplexer Time

I'm doing it. Gonna try to build a multiplexer. And of course it will be Vim style. At this point I'm not sure if I'll auto persist sessions etc, I'm actually leaning toward something more Tmux like, where it doesn't really do so. I'm still in the minimalist mood.

So far I am using two modes:

PLEX
This is where users manage and navigate panels, windows etc.

NORMAL
Kind of like Vim's INSERT mode, this is where console commands can be entered, apps can be launched in the pane's console, etc.

So far I have some bare bones functionality. The key bindings are driven by a config file and I think I'll do themes via config also. Once that's in place I'll do some code clean up and documentation.

This is being built in C++.

Not Really a Multiplexer

 Ok so my latest project isn't REALLY a multiplexer. It doesn't have sessions you can attach to etc. It's really just the front end we typically get with multiplexers (it's kind of Tmux like). So it allows users to create panes and tabs, rename tabs, resize panes. The power of this project is in the fact that it uses MODES - like Vim does. I outlined its modes in my previous post. After working on this app for a bit I realized...

Why am I using the Ctrl+b hotkey for everything? - If we're in PLEX mode, we can just use single key key-bindings! Now this application absolutely SCREAMS! Here is a workflow example:


\ (split vertially)

l (select the right side pane)

- (split that pane horizontally)

J (move the horizontal split down)

h (select the left pane)

i (enter NORMAL mode)

vim (launch Vim in that pane)

Escape Escape (return to PLEX mode)

l (select the top right pane)

i (enter NORMAL mode)

git status (output the repo's git status in that pane)


It's so fast I'm not sure I'll even bother with the ability to save / restore layouts. They literally take seconds to set up. I'm currently cleaning up the code and adding developer comments - so that they generate the developer.html help system.

Wednesday, March 5, 2025

Introduction to WorldWeaver

A New Iteration 
I've been working on the second manifestation of my Interactive Fiction engine - WorldWeaver - for about a year now. I originally built it in Java. Since I'm able to code on C# (.NET Core) on Linux, I decided to start from scratch.

I learned a lot in my first iteration of the project, so I knew some of the gotchas that I would be facing in this version. Order of game element operations was a big challenge in the Java version so for this one I wanted a lot of that logic to be configurable. As this project has grown I've also learned a lot about better ways to define games as well.

The Sample Game
So far the biggest tool I've come up with is the Sample Game. It actually serves as sort of unit tests. So I'm no longer trying to build an actual game for testing. Now I can just create rooms in the Sample Game each one tests a different feature that the engine handles. This has made coding and debugging so much easier. This game will ship with the game engine when it's actually ready to go live.

Admin Documentation 
Another major change is how I'm handling the documentation for game authors. I'm using Tiddlywiki for it (I'm pretty obsessed with TW). I may also create some documentation for people who may want to actually work on the engine's code itself. There certainly is plenty of room for improvement. I should have probably harnessed the power of Interfaces etc, and may look into where they might improve the code's readability and future maintenance. Building games and initially playing them (Just the first time they are played) I need to do some optimization.

I'll likely do a bunch of followup articles on this engine, going over some of its details and discussing its code base.

The Future
I'm probably going to embark on a third iteration of it. I want to try building it in C++. This will mainly be a learning project. I've built one application in C++ but want to learn it far better than what I know currently. I would also like to look into porting it to mobile OSs. That would open it up to a much larger potential player base.

Here is the GIT repo:

Sunday, December 1, 2024

From Shotcut to Kdenlive

So I've been using Shotcut for a while now, for my YouTube videos... and music videos. I love the application. Slicing clips, doing fades and transitions are very fast and easy. That's the big thing for me. I do a LOT of slices in each video I do. If these tasks are cumbersome then video editing quickly becomes painful and unpleasant.

A bit ago I started using Xdotool to make slicing even quicker and easier. But in Shotcut I had to do pauses between each action in Xdotool, the app couldn't keep up. Some actions required more than one second's pause. This got me wanting to try out other editors to see if maybe there was a better option for me.

I really wanted to use Davinci Resolve but I THINK it doesn't like my hardware. I tried so many installation methods. The best ones I saw were the Distrobox options like Davincibox. Those seemed to get me the closest. But never all the way. I actually got it to run once, but it still didn't like my audio card or configuration. And I would prefer an open source editor, but I wanted to see what the editor of choice was like.

Reluctantly I gave up on DR. I ended up seeing a suggested video on YouTube about Kdenlive. I had actually tried that app way back when I knew absolutely nothing about video editing. I didn't know about proxy clips so everything was laggy. I believe the UI was kind of clunky back in those days. So I've never given Kdenlive any serious consideration. However after seeing this recent video on it I decided to give it another try.

It's really good

My first day using it, I had my xdotool script updated, and I no longer needed the pauses, the app was able to keep up. And one day later I was editing at nearly the same pace as Shotcut. It doesn't have preset zoom in's/out's etc. BUT it's key framing interface is so easy to use I actually don't miss the preset fx and tramsitions. I can manually set keyframes just as quick and easily.

There are some other incredibly useful tools in Kdenlive that Shortcut doesn't have. In future articles I'll discuss these, going into detail. So far I'm really loving nearly everything about Kdenlive, the gripes that I have are pretty minor, and I may be able to overcome them using xdotool, we'll see.

Wednesday, December 2, 2020

5 VST Effects I Use in Every Song

VSTs are so great. I have a massive collection of free instruments and FX that I've tracked down. There are SOO many to choose from...

But I notice it every time I'm working on a new song. I always use the same VST FX. At times I use others as well, but these five FX are used in, literally, every song I make. Here they are and why I use them so much.

Classic Compressor / Chorus
I've grouped these together, so I could get an extra VST in this list :) . Every drum sample I use gets the Classic Compressor - usually the default preset. It adds punch and just really brings the drums to life. Some of my synths get this treatment also.
The Classic Chorus gets significantly les use - but for any sound I want to be 'three dimensional' the default preset on this FX is perfect.

EasyQ
Nearly every single track in every single song I do gets the EasyQ. My only criticism is you can't automate the nodes you create. This may be a limitation in the VST guts since they are dynamically added/removed. But still. I just love this EQ. It is lightweight, I have other parametric EQs that are such resource hogs they are nearly unusable.
Now that I'm writing this, I'm thinking it may be time to see what else is out there, it has been a while since I've tried out EQs.

ReaComp
The ReaComp compressor is shipped with Reaper and it handles sidechain compression. So that is what I use it for. There is typically a need for at least one instance of this in every song. I really should explore what the plugin is really capable of but so far it's just a sidechainer for me.


TriDirt
This little beast is amazing. It is 1/2 three band distortion pedal, 1/2 two band filter. And it sounds sick! The filter on it is one of my favorites and sounds really good when you automate it. Some of the filthiest neuro-bass I've ever made utilized automated TriDirt filtering. Each band can be set to one of - I believe 5 - types of distortion and the overall output is filtered by a treble and bass value.

Classic Delay
Like the other Classic FX the delay is just so solid. I've used other delay FX that are great. One of them does super analogue style feedback (If you set it to high it begins squealing, just like a meatspace delay pedal). but just like coffee when I've tried to switch to tea, I always come back to the Classic FX.

Wednesday, November 25, 2020

I'm All In

Well it turns out I love video recording and editing. Having never seriously thought about trying it, I never knew. I love hearing about the artistry and super subtle nuances of editing video. I watch not only YouTube editing tips (My chosen medium) but actual movie editing insights and advice.

I've been circling between making music then making videos for the music then producing videos for my new watch nerd channel. The music videos are still patchworked clips of movies and other YouTube videos but they are a great learning arena.

I then apply what I learn there to my watch nerd videos. Although my videos are just vlog style, I want to find ways of telling stories or evoking emotions, thoughts, excitement simply by way of how I've edited my clips.

I need to improve my filming skills as well. I think part of that is equipment due to the dark setting I film in. My Pixel seems to take grainy footage in such scenarios.

I'm already feeling more comfortable in front of the camera, and getting more proficient in Blender's video editor.

We'll see how it goes.

Thursday, November 5, 2020

Strobe Hack

I am definitely still a Blender video editing noob. I am working on another video clip collage for the latest Neutrient song I've made. To give the video energy and movement I wanted to add a strobe effect. In Blender's video editor the Transform blocks have a strobe option along with a setting to get it to fire every X frame. So I gave this option a try.

No matter what settings I used it appeared to have no affect at all. When I tried hitting the internet I didn't see any conversations on this feature. I decided to think of a hacky way I could pull it off using the tricks I've learned so far.

I do a lot of layering in my videos. Adding one clip on top of the other and setting the top one's alpha over to < 1. So I hopped on YouTube and found a video that was just black flashing to white and back. Just the strobe I needed.

I dropped that clip over some of my other clips and turned down its alpha. Perfect. I now have a cool strobe effect I can add wherever I want.

Tuesday, November 3, 2020

FPS Mismatch Pain

I am dipping my toes into video production. I began with some collage-style music videos now I am starting a YouTube channel about wrist watch nerdery. One pain has become immediately apparent is the trouble of frame rate. I made the mistake of adding audio as the first component to my video, so the frame rate wasn't set to my video's FPS. To my surprise the audio was out of sync with the video. I had never encountered this, my collage videos all used an audio track and video only clips.

I tried going into VLC and saving each clip's audio as a separate file, then importing it into Blender but I wasn't aware of exactly what was going on. It was still out of sync.

I next tried manually getting the FPS to match my video but then it refused to render (I later found some other settings I could have tried that may have helped).

My projects were still set to 30FPS so I had to keep all my clips short so that the mismatch was unnoticeable. I then learned how to set my phone camera to 60FPS and figured while I'm struggling with this, I may as well get a higher frame rate.

Bad Idea.

The only camera on my phone that is capable of 60FPS is the back camera. The front camera is still 30FPS. So I ended up with some clips at 60FPS and some at 30FPS. So I went through every 60FPS clip and converted it to 30FPS using FFMPEG.

Tonight I'll be starting a new video. I'm hoping it goes smoothly. By dragging my clip into the timeline first thing I believe the project will automatically set the the FPS.

After working on the video tonight, it did indeed set a custom FPS, however there is still a little bit of drift. This will be a problem when I get better and can create longer takes but for now it works well enough.

Thursday, September 3, 2020

CI/CD'ing Music

I've changed how I use Soundcloud lately. It used to be that I would work on a song, listen to it on various sound systems, do the 'car check' an so on. Then I would go back and make corrections and re-check. After many such iterations I would post it to Soundcloud and consider it done. A finished sculpture, never to be altered again.

Lately, however, I have been doing my usual iterations and posting to Soundcloud, with one major difference. I no longer view the song as a form chiseled into stone, rather it is like a software application to me. I continue to listen to it after I've posted it. If I hear something that needs improved (A 'bug' in the song), I make the tweak and replace the song on Soundcloud.

I like it. I just listened to an older song and heard all kinds of improvements I need to make. In the past I would just grumble and never listen to it again. But now, it's time to fix the bug and push out another iteration of the song.

Thursday, August 20, 2020

How We've Given Up On Tomorrow

Whenever I fly, or see public transportation, Or traffic in general, the same question inevitably comes to mind.

Why have we given up on the future?

There was a time when we looked to the future with excitement and imagination. We envisioned a world full of endless possibilities. Then we just kind of gave up. I'm not talking about flying cars or cities in giant glass domes I'm talking about everyday things. Take flying. We pile into an airplane, seats packed so tightly everyone in your row has to get up if you need to leave your seat. And if you have to use the bathroom while the food cart is working its way down the walkway, too bad (And you're not allowed to use the restroom in first class).

Why have we decided that this is what air travel is, and will be forever? Where did innovation go? Yeah sure - costs. But still. What constitutes improvement in air travel? Plugins for your laptop or phone? Rentable notepads to play movies on? How about we find a way to have more room? How about we are allowed to move about, and have like minibars etc. Why is that only for private jets? Wouldn't it be worth some extra money to be able to hang out, more like a cruise ship than a crappy city bus? Surely there's some way to make such a thing accessible. We used to think outside the box. We used to be excited for the future. Now we're just cynical and complacent.

We need to find optimism again. Fun needs to be reborn. What's wrong with doing something just because it's fun and makes tasks like air travel actually enjoyable? Why can't art or books or movies exist simply to inspire and entertain? Why does there have to be some hidden agenda or politics?

We need some Neo-Futurism to make its way into meatspace!

Wednesday, July 8, 2020

A Great and Lacking Java-based File Manager

For a long time my go-to file manager has been Double Commander. It is quick and powerful and I can configure it super minimal - even hiding the tabs. The search feature works so much better than the native Windows search tool, so when I'm on a 'dohs' box it is especially handy (Although lately I've been using grep within the GIT bash).

Every now and then I get bored and change it up. I've explored VIFM and other console-based file managers. They are cool and a lot of fun but I usually end up missing Double Commander's features.

I have recently returned to muCommander. Now that I've spent a lot of time working in Java it's cool to use a Java-based file manager. And I've grabbed the source code. I may see if I can get it to always hide the tab bar. I've returned to it purely for fun. Sadly it is lacking one major feature... searching. Yes the latest version has a file search dialog you can pull up, but it's more of a placeholder than an actual tool. I navigated to a temp directory and searched for 'category' which I knew was in an XML file in that directory. 0 results. Even the Windows search tool would have found that. I tried case insensitive (Even though the case was the same) and I tried the Regex option. Nothing - in fact it wouldn't even search with the Regex set. And when you launch the dialog the options are always set to their defaults, not what you set them to last - huuge headache. And shouldn't the search results show in a new tab versus commandeering your current tab? It is just unusable. I feel like searching should have been a goal early on in the project. How useful is a file manager if you can't search your files?

Also lacking... you can't create a new file (I couldn't figure out how at least). So to do so you have to pull up a different file manager - or text editor. If you have to leave a file manager to create... a file, you've failed.

If I have to rely on other file managers to do basic things then the file manager in question isn't a viable option.

I do like muCommander and would love to use it as my primary tool for dealing with files, but sadly after all these years it is still not ready to do basic file-related tasks. I'm going to poke around in the code and see if I can somehow make it usable enough for me.

I'm sure I'll have more to say about muCommander in the near future. Maybe I'll do like I did with Jreepad and create a 'murdered out' version.

Wednesday, July 1, 2020

Clipboard Project

I've been coding in Java (Late at night) for a few years now. Most of my projects are console applications or arcade-style video games. Being hobby efforts, they usually require very little intense research. If it makes my head hurt, I do something else. It is my free time after all.

As a consequence I haven't done much with Swing and GUI development. Nor have I done much with the clipboard. But now I have reason. I am unable to use my all-time favorite clipboard manager so I need to write one. I am amazed at how easy it has been so far. True, I've done an obscene amount of web searching, and there is some funk in Java I've uncovered.

The benefit is I get to add even more VIM nerdiness to my project than CopyQ has. Also I've coded it to store everything encrypted. I have it minimizing to the tray and clips can be edited or deleted.

Still to do...

- Add a global hot key to display the window.

- Add 'permanent' bookmarks that can be arranged into categories or similar.

- Debug why it randomly doesn't load the stored clips when launching the application.

- Maaybe pop the window up at the mouse.

- Add options to the application.

Thursday, June 11, 2020

Never Say Always

I am FAR from a guru... or anything resembling one. I am self taught so often I know things, but am unfamiliar with their terminology. I may be unfamiliar with commonly taught problems or patterns. So don't give my thoughts too much weight.

I just watched yet another "Why <Insert Name> programming is horrible" video. In this case it was OOP (Which I personally like). I've seen a few of these. It is always fun to hear the criticisms of various languages or programming patterns or editors etc. The arguments typically go:

1. <Insert Name> is terrible. You should never use it (Gotta get the clicks).

2. Here's some arguments why it sucks.

3. But... sometimes it's useful.

4. Use <Insert Name> but not all the time.


I say use whichever paradigm works - when it works. It's like Kung Fu. If you are sparring and you are a 'kickarian' when you opponent has moved in past your kicking range, into elbow range let's say. Forcing a kick to happen is ridiculous. You need to throw some 'bows. Forcing everything into an object is just as bad... so is forcing everything to be procedural, or 100% CSS, or whatever the extreme proposition is. If it works best in a situation, use it.

Best GUI / TUI

 Let's talk about my favorite GUI and TUI libraries... so far. Dear IMGUI I've used this library in a couple of projects (using the ...