Blog Posts

Visualize Explain Results from PostgreSQL in PGCLI

Visualize Explain Results from PostgreSQL in PGCLI

Recently I wrote a visualizer for explain query responses from PostgreSQL. I also integrated it into pgcli and it got merged few days ago. You can install it currently with:

Read More
Show Country Emoji with Elixir

Show Country Emoji with Elixir

Recently jorik posted about converting country code to flag emoji. I decided to give it a try in elixir.

Read More
Porting Files Generated by Phoenix to Surface

Porting Files Generated by Phoenix to Surface

This post is intended to get you started with surface provided components. I provided the original code and surface versions so you can compare the differences yourself without installing anything.

Read More
Serving Open Street Map Vector Tiles with Elixir and Phoenix

Serving Open Street Map Vector Tiles with Elixir and Phoenix

Some background on mbtiles files from mapbox/mbtiles-spec

MBTiles is a specification for storing tiled map data in SQLite databases for immediate usage and for transfer. … The metadata table is used as a key/value store for settings. It MUST contain these two rows:

Read More
Nginx Logs in Live Dashboard

Nginx Logs in Live Dashboard

Building on top of my previous blog posts on creating a nginx log parser and displaying ps output in live dashboard I decided to build a nginx log display.

Read More
Parse Nginx Access Log with Nimble Parsec

Parse Nginx Access Log with Nimble Parsec

Lately I played with some string parsing and found nimble_parsec a library which does the job perfect. I will show you how to convert nginx logs to something readable in elixir. A typical log line looks like:

Read More
Phoenix Live Dashboard Custom Page

Phoenix Live Dashboard Custom Page

Today I played with custom live dashboard pages, That’s a short documentation how to use it. We will implement a page that shows the currently running system processes on the box running our elixir system.

Read More