December 25, 2022
Wow, if Django and Rails had a baby it would be Marten, the web framework written in Crystal, https://martenframework.com/.
It seems fairly feature-complete, even with only a 0.1.x version number! https://martenframework.com/docs/.
The documentation looks really solid. Clearly they just love to program and give to open-source! https://github.com/martenframework.
Read More...
crystal (2) web-framework (2)
November 27, 2022
About two days ago I built the “bookshelf” app described in the Hanami guide. Hanami is currently missing any sort of “model” layer, as well as any sort of “view” layer, as you might expect to be present from using Ruby on Rails or other MVC web frameworks.
I asked about these missing pieces on the Hanami forum and it was explained to me the missing pieces will appear in the 2.1 release, in Q1 2023, and in the meantime to please go look at two other projects, to learn by watching them being built. I looked at the two projects but saw no model or view layer code.
And as nice as I can think to say this, I don't understand how they got to a place where they decided a 2.0 version number was appropriate, given these basic components are not present, not even in some very basic form. Hanami presently seems more like a 0.5 version framework to me.
The Hanami homepage currently contains the words "full-featured". I have no idea why they would say that. "2.0" implies to me a second major version of an already completely fleshed-out framework. ¯\_(ツ)_/¯
I stopped looking at it for now. I don't want to invent all the missing pieces only to have my code become obsolete in 6 months.
Read More...
web-framework (2) hanami (1) mvc (1)
October 10, 2022
I wrote a simple MP3 player:
https://github.com/gdonald/player
Read More...
ruby (5) rails (4) player (1) mp3 (1)
September 15, 2021
Debug a Linux Kernel in QEMU
Read More...
linux (10) kernel (5) qemu (1)
September 12, 2021
Install packages:
apt install zsh curl git fzf build-essential libssl-dev zlib1g-dev
Switch default shell to zsh:
chsh -s `which zsh`
Read More...
linux (10) zsh (1) ohmyzsh (1)
March 28, 2021
#!/bin/sh
DB_NAME=mydatabase
DATE=`date +%Y%m%d%H%M%S`
DIR=/backups/pgsql
PG_DUMP=/usr/bin/pg_dump
$PG_DUMP $DB_NAME | bzip2 > $DIR/$DB_NAME_$DATE.sql.bz2
find $DIR -mtime +7 -exec rm {} \;
Read More...
postgresql (3) database (2) backup (1)
February 14, 2021
I built an IPv4 subnet calculator:
https://gdonald.github.io/ipv4-sn/
Read More...
subnet (1) ipv4 (1) calculator (1)
January 23, 2021
Console Blackjack for Raku.
Current Version: v1.0.6
Install using zef:
zef install Console::Blackjack
Read More...
raku (17) blackjack (15) console (12)