CDC with Postgrex & Elixir

Change Data Capture with Postgrex and Elixir

December 14, 2022 3364 words 16 min

Precompile your svgs using phx_svg

Introduction to precompiling svgs for your phoenix project

November 16, 2022 254 words 2 min

erlang.mk dependencies with mix

Introduction RabbitMQ streams is built on top of osiris. osiris models an append-only persistent log and I though it would be interesting to see if it would be possible to use it outside of RabbitMQ. The problem osiris is not available through hex.pm so we include it using the github directive: # mix.exs defp deps do {:osiris, github: "rabbitmq/osiris"} end But compiling results in an error mix deps.get mix deps.compile ===> Compilation failed: there is no code in this directory (/$HOME/dev/deps_test/_build/dev/lib/osiris), it is unreadable or for some other reason is not a recognizable application structure....

September 5, 2022 673 words 4 min

TIL: Operator overriding in Elixir

Overriding infix operators in Elixir

September 9, 2021 303 words 2 min