Family Ties Part 7 posted, covering some Erlang features "missing" in Elixir
Posted the seventh of a continuing series of articles on similarities and differences between Erlang and Elixir. This article covers a few minor Erlang features that are “missing” in Elixir, and discusses techniques to work around the omissions.
http://daniel-azuma.com/blog/2016/06/06/family-ties-7-lost-and-found
Index of previous articles in the series: http://daniel-azuma.com/articles/family-ties/
Elixir Process Registries - A 10 Minute Tutorial
Process Registries are an essential part of leveraging the OTP framework in complex system. In those post, I do a deep dive on what a Process Registry is, why we need them in the first place, and how to implement one using a GenServer. https://t.co/M0nN0p62eM
Faster Elixir Logger part 2
Coming back to the issue, when I had a free time during a weekend, I setup up trying to test sending messages directly to the process running the console.
https://medium.com/@olafura/faster-elixir-logger-part-2-ddb328eb31f4#.l2jgaoi5h
Separate JS & CSS for admin panel in Phoenix
It’s a common need to have separate precompiled assets for admin panel or other heavy pages. Here’s how to do it.
Read more at Phoenix on Rails blog.
Faster Elixir Logger part 1
I was first inspired to look into this when I looked at this bug #4004
It looked like an interesting problem. I’m going to describe the process I used to solve it. I had used Poolboy before to make a request pool so I wouldn’t overload the service I was using, so I knew that I at least had a basic enough understanding so I could hopefully implement it.
https://medium.com/@olafura/faster-elixir-logger-part-1-8f5424396943#.7mnvu05vw
From Zero to Ecto in 10 Minutes - Using Ecto outside of Phoenix
Setting up Ecto inside a Phoenix project is pretty trivial. But how easy is it to set up Ecto in a project that doesn’t use Phoenix? Easier than you might think. Here’s a step by step guide on setting it up from mix new to inserting a record.
http://geoffreylessel.com/2016/from-zero-to-ecto-in-10-minutes/
Foreign Processes and Phoenix
Ever need to run a non-Elixir executable alongside your Phoenix app? With a little OTP, it’s easy!
https://shift.infinite.red/foreign-processes-and-phoenix-555179c24151
Rails asset pipeline vs Phoenix and Brunch
Both Rails and Phoenix can manage and deploy assets for you. But the approaches and solutions differ greatly.
Read more at Phoenix on Rails blog.
IoT with Elixir and CoAP part 1: Example on how to easily prototype and build an IoT platform
IoT hardware is limited in terms of available resources and uses lightweight application layer protocols for communication. Some of the popular choices include MQTT or XMPP. Michał Podwórny takes a look at something quite different: Constrained Application Protocol (CoAP).
Family Ties Part 6 posted, comparing guards in Erlang and Elixir
Posted the sixth of a continuing series of articles on similarities and differences between Erlang and Elixir. This article covers guard expressions, discussing why guards look the way they do, and covering some extra guard-related features in Erlang and what they can tell us about both languages.
http://daniel-azuma.com/blog/2016/05/31/family-ties-6-being-on-guard
Index of previous articles in the series: http://daniel-azuma.com/articles/family-ties/
ReadRepos - Simple master-slave database access package for Ecto.
ReadRepos is a simple master-slave database access package for Ecto.
By using this package, you can access slave databases randomly like below:
MyApp.Entry |> MyApp.Repo.slave.all
MyApp.Entry |> MyApp.Repo.slave.get(1)
The best of Rails in Phoenix (part 2)
Once again, I’m presenting good parts of Rails waiting in Phoenix for those that transition between the two.
Read more at Phoenix on Rails blog.
ExEnum - Enumerated type management package inspired by ActiveHash::Enum.
ExEnum is an enumerated type management package supporting Gettext, inspired by ActiveHash::Enum.
https://github.com/kenta-aktsk/ex_enum
Usage
defmodule MyApp.Status do
use ExEnum
row id: 0, type: :invalid, text: "invalid"
row id: 1, type: :valid, text: "valid"
accessor :type
end
You can use helper functions like below:
# index.html.eex
<td><%= Status.get(user.status).text %></td>
# form.html.eex
<%= select f, :status, Status.select([:text, :id]), class: "form-control" %>
# show.html.eex
<%= Status.get(@user.status).text %>
Beyond Functional Programming with Elixir and Erlang
José Valim reveals his point of view about the role of functional programming in Erlang and Elixir and what are its real benefits: maintainable, distributed, fault-tolerant applications.
Beyond Functional Programming with Elixir and Erlang « Plataformatec Blog
Installing Font Awesome from NPM in Phoenix
It’s easy to add Font Awesome, a free icon webfont, to Phoenix project using nothing but Brunch to do so.
Read more at Phoenix on Rails blog.
MediaSample - sample phoenix project to develop curation media, news media, etc.
MediaSample is a sample Phoenix project for developers interested in developing curation media, news media, blog, etc. This project is featuring many basic and general topics.
- authentication/authorization
- social login
- internationalization
- master/slave access to database
- many to many relationship
- pagination
- image file upload to S3
- send email via SES
- sitemap and RSS
- Facebook OGP and Twitter Cards
- full text search(Elasticsearch)
Using Ecto For Formula 1 Standings
Learn about composing Ecto Queries by generating a Formula 1 Driver’s Championship standings table with a single trip to the database. The final query will include multiple joins and wheres, and will demonstrate select, group_by, and order_by as well.
Introducing Dayron - The Elixir REST client you ever wanted
Dayron is a flexible library to interact with RESTful APIs and map resources to Elixir data structures. It works similar of Ecto.Repo but, instead of retrieving data from a database, it has underlying http clients to retrieve data from external HTTP servers.
