Musings on mental algorithms
How we learn what to choose and choose what to learn

Search for a command to run...
How we learn what to choose and choose what to learn

Continuing work on my project in Flask and Bulma, I needed a neat way to display a photo gallery. There are plenty of premade gallery setups that I could have used, but I wanted to make something using Bulma, Flask, HTMX, and Hyperscript as much as p...

Since I got a better grasp of what HTMX is all about, I decided to see what hyperscript, a companion of HTMX, can do for my project. The starting point On one of my pages, I had a list of links that I've organized as a string of buttons, which was f...

While I used HTMX alert when deleting post comments, I felt like deleting a whole post was a bigger deal and should have a more fancy warning. Bulma provides a way to show modals, so I wanted to give it a try and have a nice big Bulma modal promp...

In my previous post I converted my boring commenting feature to use HTMX and make commenting much faster. One thing I didn't like about this was that the comment appeared too fast. I would write a comment, click on "Post" and it would just appear un...

As I mentioned in my previous post, my blogging app written in Flask allows users to post comments under each post. The post page contains a little comment form which consists of only one text box and a submit button. I have originally implemented it...

My blog app written in Flask allows users to post comments under each post. I wanted to implement an easy way for users to delete their own comments that didn't look too much out of place and wasn't too complicated to implement. HTMX came to the res...

I haven't seen many examples of how to use HTMX with Flask, so I'm documenting little snippets from my own code for anyone who wishes to make use of this wonderful combination of technologies. I'm also using Bulma CSS framework to make things pret...
