Phoenix, Ecto and time zones

This is another part of my series on learning Elixir. In the previous episode, I calculated the distance of flight. I will use it later for gathering statistics. Another metric, I would like to have is a time of flight. Usually, flight departure and arrival times are presented in local time. So it gets a bit […]

Continue reading


Doing math in Elixir – calculating Great Circle Distance

In last two parts, I was setting up and consuming quick API to get additional airport data. One of this information was exact airport location on the Earth. In this part, I’ll use that information to calculate the distance of the travel and show how you can use standard math library in Erlang VM. Calculating […]

Continue reading


Calling an external API from Phoenix app

Last week I wrote about how to extend your Ecto model. I wanted to figure it out because I thought this week, I’ll add to mother other flight related data. Turns out, I did it in completely different way. Not sure if this is the correct approach, so feel free to bash mi in comments […]

Continue reading


Extending your Ecto model

Last week I used Ecto models to quickly created the database and I was very surprised how all got generated for me. But the model I build was very simplistic, and now I need to extend it. I started working on first serious functionality for the project, and I’ll have to do some changes. For […]

Continue reading


Connecting to database with Ecto

In the last episode of my Elixir adventures, I messed with own-made Views and Controller to display hardcoded flight information for my FlightLog. This week I’ll try to show data based on the content of the database. Phoenix doesn’t have built-in data access capabilities. But there’s awesome Ecto project, that’s sort of beefed up ORM. […]

Continue reading


Elixir vs F# – opinionated syntax comparison

Note: There are some awesome comments to this post that add a lot of value. Please check them below. This is the second part of my Elixir adventures and another post for “Get Noticed” competition. I was planning to start furiously coding on my project for this second post and start building some web API with […]

Continue reading


Adding new routes in Phoenix

This is another part of my series on learning Elixir. Last week I mixed new Phoenix project and looked how different parts of framework fit together. This week I started adding my own routes and pages. I followed the official guide but altered it a bit to better fit my application. Adding a Route First […]

Continue reading


Mixing a new Elixir

Wow, 1.5 years since last post passed quickly. Time to do something about it! I’m taking part in Maciej Aniserowicz’s “Daj się poznać” contest. “Get noticed” in English. It’s a competition for programmers aiming at promoting technical blogging and building open source projects. Throughout next 12 weeks, participants have to write at least 2 blog posts each […]

Continue reading


First look at Phoenix

This week I decided to push some things in the project. Instead of looking into the internals of Elixir and Erlang VM, let’s actually do something. My project for DSP competition is a web application, and most popular framework for web development in Elixir is called Phoenix. Phoenix use as it’s foundation Erlang’s HTTP server […]

Continue reading