Using flynn to deploy a phoenix app

How to use Flynn (open source heroku alternative) to deploy a phoenix application.

http://nsomar.com/how-to-use-flynn-to-deploy-a-phenix-app

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!

https://github.com/zackehh/cachex/releases

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.

Read the blog post for a side-by-side comparison.

A basic introduction to the Actor Model

http://blog.goodbot.co/an-introduction-to-the-actor-model/

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.

One Flew Over the Phoenix's Nest

http://jmgomez.me/one-flew-over-the-phoenixs-nest/

Stateful v Stateless Web Applications - Comparing Phoenix to Ruby on Rails.

http://blog.goodbot.co/how-stateful-web-applications-work/

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

Kerosene 0.4.0 is released

Kerosene 0.4.0 is released with some bugfixes, please update your deps.

https://github.com/elixirdrops/kerosene

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.

TermSize: Reliably get the terminal window size

TermSize

https://github.com/sotojuan/termsize

ExChalk: Easier terminal styling

ExChalk is a simple way to style terminal text with a piping syntax.

ExChalk

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.LoadResource loads resources into the conn’s assigns map.
  • PolicyWonk.Enforce evaluates a specified policy. It either continues or halts the plug chain depending on the policy result.
  • PolicyWonk.EnforceAction evaluates 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?

https://blog.codeship.com/elixir-ets-vs-redis/

Previous page Next page