Blog

Elixir: no se muestran algunas funciones al imprimir stacktrace

Tracing de Erlyberly (izquierda) vs stacktrace (derecha)
(more…)

Encontrar punto de montaje en Docker con btrfs storage driver

Antes para el storage driver de btrfs de Docker se utilizaba el image ID para el nombre del directorio:

The image’s base layer is stored in a Btrfs subvolume under /var/lib/docker/btrfs/subvolumes.

The image ID is used as the subvolume name. E.g., a base layer with image ID «f9a9f253f6105141e0f8e091a6bcdb19e3f27af949842db93acba9048ed2410b» will be stored in /var/lib/docker/btrfs/subvolumes/f9a9f253f6105141e0f8e091a6bcdb19e3f27af949842db93acba9048ed2410b

https://github.com/saturnism/docker/blob/master/docs/userguide/storagedriver/btrfs-driver.md#image-layering-and-sharing-with-btrfs
(more…)

Error tonto con _.flow y _.uniq

export const graphDistinctTags = ({ edges }) =>
  _.flow(
    _.flatMap((edge) => edge?.tags),
    _.tap((x) => console.log("TAP__1", x)),
    _.map((tag) => tag?.id),
    _.tap((x) => console.log("TAP__2", x)),
    _.uniq(),
    _.tap((x) => console.log("TAP__3", x))
  )(edges);
(more…)

Elixir-ls y asdf: Elixir sources not found (checking in /home/build/elixir). Code navigation to Elixir modules disabled.

Se me mostraba el error de título. Encontré este post que comenta cómo resolverlo:

(more…)

Compilación de Erlang: crypto: Using OpenSSL 3.0 is not yet recommended for production code.

Se me mostraba el siguiente aviso al compilar Erlang con kerl:

(more…)

Error en :observer.start(): libwx_gtk3u_stc-3.0.so.0

Al intentar iniciar el observer de Erlang en IEX saltaba el siguiente error:

(more…)

Uncaught TypeError: Cannot read properties of undefined (reading ‘call’)

Este error me pasó al intentar llamar a .map desde un objeto en lugar de un array. Me costó darme cuenta porque el error es un poco críptico. Podemos emular lo que ocurre haciendo:

(more…)

Ecto, fragments, with ordinality de PostgreSQL

Tenía una query con un where in:

DataStructureVersion
|> ...varias transformaciones de la query
|> where(q, [dsv], dsv.id in ^ids)
(more…)

Manga downloader: cannot connect to chrome at 127.0.0.1

Este error:

(more…)