June 15, 2020

Emacs Org mode source blocks

Post updates [2020-06-23] New section. "Combine source blocks" Intro It's time to start documenting how I use Emacs Org mode (from now on org) and it will contain a serie of posts. This is the first post and it will cover source blocks. Some of the content assumes basic knowledge about org. If you are new to org I can recommend this two videos; hrs and kitchin. One of the features I've been using very frequently is source blocks. Read more

June 1, 2020

Arch install with LUKS and systemd-boot

2021-01-08 Updated with instructions on LTS kernel. Into Recently made a fresh Arch Linux install. The setup will looks like this. One HDD with 2 partitions. The first one is unencrypted and contains EFI and boot. Second contains the system and user home. This partition will be encrypted with LUKS and contain a EXT4 file system. For boot systemd-boot will be used. The LUKS device contains a header with data about the device. Read more

May 22, 2020

Quick overview of Clojure spec, test.check and transducers

Into A quick and dirty overview on some of the capabilities of Clojure spec, test.check and transducers. With focus on generative data. Describing models with spec and then use test.check to generate entities from that model. Bulletproof transducers with the generated data. Wont cover or explain details, instead show how it can be used. Some examples where generated data can be used: Provide generated data through a Rest API endpoint and serve it a JSON. Read more

May 17, 2020

Entity event log in Datomic

TL;DR Create an event log from Datomic transactions that's related to an entity. Look at transaction metadata, diffs and the entity from different angles. Intro I am pretty new to Datomic and writing a small Clojure app. In my domain models I have a model called event-log. This model is used to keep track of changes (mutations) in the system. It have the following attributes: author, datetime, entity, id, type. Read more

Powered by Hugo & Kiss.