Using flynn to deploy a phoenix app
How to use Flynn (open source heroku alternative) to deploy a phoenix application.
Cachex v2.0.0 released! Update now!
Cachex, a memory caching system for Elixir, has just been updated to v2.0.0 with new support for many things, including custom command invocations and cache limitations - check it out!
ElixirStatus now looks like ElixirWeekly :)
Last week I finally updated this site to look more like our community newsletter, ElixirWeekly, and to support the newest version of both Elixir and Phoenix.
Have some side effects in the pipepline
Wasn’t going to say about this, but someone starred my repo. So I thought maybe other people will find it useful. https://github.com/princemaple/elixir-side-effect
This lib streamlines the side effect calls into your pipeline.
Announcing Constable, an open source Phoenix application. Try the demo and check out the source on GitHub
Today we open sourced Constable. It’s an open source Phoenix application for handling company discussions and announcements. Give the demo a try at https://constable-demo.herokuapp.com (use an @gmail.com address to sign in), or check out the source at https://github.com/thoughtbot/constable
We hope you love it!
https://robots.thoughtbot.com/announcing-constable-our-first-open-source-phoenix-application
My first little piece of code, Dark Sky weather API for Elixir
Refreshing programming skills with Elixir!
Very simple code!
My plan is to use Dark Sky weather data to estimate when to harvest crops.
Using Phoenix with Legacy Rails Applications
Article about how to leverage the power of Elixir and Phoenix in your existing legacy Rails applications today. Read it Here.
Credo v0.4.12 released
I just released v0.4.12 of Credo, the static code analysis tool that emphasizes code consistency and teaching.
The Power of Activating Artificial Neurons
This the second post in the Artificial Neural Network series. In it, we go into detail and explore our activation functions on several different neurons. http://www.automatingthefuture.com/blog/2016/10/2/the-power-of-activating-the-artificial-neurons
Elixir and Unicode: Two Blog Posts
You’ve heard that Elixir has great Unicode support. But how? I’ve written two posts on the Big Nerd Ranch blog explaining what Unicode is, how UTF-8 encoding works, and how Elixir’s string implementation helps it do things correctly that many languages do wrong.
ExChalk: Easier terminal styling
ExChalk is a simple way to style terminal text with a piping syntax.
Authorization with Policy Wonk Tutorial
Policy Wonk is a lightweight authorization and resource loading library for any Plug or Phoenix application.
I wrote a tutorial walking through how to set it up and use it. Read it here.
Policy Wonk provides three main plugs.
-
PolicyWonk.LoadResourceloads resources into the conn’s assigns map. -
PolicyWonk.Enforceevaluates a specified policy. It either continues or halts the plug chain depending on the policy result. -
PolicyWonk.EnforceActionevaluates a policy for each incoming controller action in Phoenix.
Decisions are made before controller actions are called, isolating authorization logic, encouraging policy re-use, and reducing the odds of messing Auth-Z up as you develop your controllers.
Check it out here:
Ecto Shortcuts - Common shortcut operations in ecto © (see license)
https://github.com/MishaConway/ecto_shortcuts
Lightweight Elixir extension to simplify common use cases in Ecto. It even has auto preloads!
MyApp.Users.insert name: "Bob"
MyApp.Users.get_by! [name: "Sally", age: 30], preload: "*"
MyApp.Users.where [status: 3], limit: 10, order_by: [desc: :inserted_at], preload: [:posts]
defmodule MyApp.Users do
...
use EctoShortcuts, repo: MyApp.Repo,
model: MyApp.User,
default_preload: "*"
...
end
Generating a stream using Stream.resource
Stream.resource is a powerful function that can be a bit confusing to use. See some examples from generating prime numbers to executing a long-running function on each item in a enum in parallel.
Elixir ETS/DETS/Mnesia/BEAM vs Redis
Learning Elixir has a way of challenging everything you know about programming. Redis is becoming an assumed part of many web stacks, in the same breath as your database. But with Elixir, do you need it? Do you even need a database?
