Envy - Simple loading of dot env files
I wrote a package called Envy for loading env files in your applications. It allows you to be explicit about the env files you load or can automatically load .env and an environment specific env file if present. eg: .env.test
Neurons in Elixir
As a part of learning about neural networks and machine learning I started by building neurons and connections between them. Next month we’ll go even further. Feel free to follow along.
Neuron code here: https://github.com/kblake/neural-networks
Meet-up information here: http://www.meetup.com/dev-coop/events/226149239/
Understanding Elixir macros
Some insights (with code examples) that helped me understand Elixir macros.
http://thepugautomatic.com/2015/10/understanding-elixir-macros/
The Definative All Dancing, All Complete, "WTF happened to my list of integers in Elixir?" blog post.
I’ve tilted at yet another windmill and attempt to answer the unanswerable question.
http://www.cursingthedarkness.com/2015/10/the-definitive-all-dancing-all-complete.html
How long it took to convert our team from Rails to Phoenix
A short discussion around one of the major value propositions for Rails devs interested in migrating to Phoenix.
https://dockyard.com/blog/2015/10/29/how-long-it-took-our-team-to-move-from-rails-to-phoenix
Deploying Phoenix Applications with Exrm and Conform
I just published “Deploying Phoenix Applications with Exrm”. This time, we publish the blog we’ve been working on to a server and make it run in production!
https://medium.com/@diamondgfx/deploying-phoenix-applications-with-exrm-97a3867ebd04
Designing with OTP Applications in Elixir
I continuing putting an application together by composing multiple OTP applications. - http://bit.ly/1O92h7p
Neo4j/Elixir/Phoenix, the Movies Example web app update: graph visualization
Now with graph visualization using http://d3js.org/. Fun project :)
Update available on Github:
Non-Scientific measurement of the cost of calling another process in Elixir (by @dbeck74)
In this post I try to estimate how much it takes from the sender process to call another in the local BEAM VM. This is pretty non-scientific and may only have a meaning for my OS and my use-case. No generic conclusion to be made.
http://dbeck.github.io/Non-Scientific-Measurement-of-Elixir-Remote-Calls/
Published a stub server written in elixir
- Try it on http://stubonweb.herokuapp.com/
- Source Code: https://github.com/endeepak/stub_on_web
Examples
Playing Poker with Elixir (part 1)
Kicking off a blog post series on building a Texas Hold ‘Em web application using Elixir and Phoenix. In this post, I walk through a way of ranking poker hands with pattern matching.
Elixirscript 0.13 released
Elixirscript 0.13 has been released. This is the first release with protocols.
Testing inter-process messages
How to test that a process sends a message:
http://joshnuss.blogspot.ca/2015/10/testing-messages-with-elixir.html
5 minute read
How to parallelise API calls (and other things) to make them super fast
A quick tip with an example of making many Instagram API calls concurrently to greatly improve speed of a Phoenix application.
https://zen.id.au/parallelise-external-api-calls-with-elixir-to-make-them-super-fast
Writing a Blog Engine in Phoenix and Elixir: Part 4, Adding Roles to our Controllers
Posted part 4 of my ongoing Blog Engine tutorial series in Elixir/Phoenix! This time, we cover writing a small helper for checking roles, integrating into the controller, and more tests to keep everything green!
Neo4j with Elixir, Phoenix and Neo4j.Sips(β) - The Movies Example Application
A very simple web application using Neo4j with Elixir, Phoenix and Neo4j.Sips(β).
Find more information on Github:
Sap - HTTP combinators for Plug applications
In most Plug applications, there is some sort of match and/or dispatch process that takes place for an individual request. A request will come in, a set of pattern matching statements created will be compared against the requested path, and if there’s a match, a function will be called to send the client a response. Here, there is a clear separation between matching/filtering a request and creating a response.
With Sap, the basic idea remains the same, but the way a request is accepted and a response is created is slightly different. Combinators, a fancy name for simple functions meant to be composed with one another, are tasked with one of two goals:
- filter requests based on some criteria
- build up a response
The power of these functions comes from the ability to compose them in any order. There is no clear separation of each type of combinators, so a filtering combinator can be used both before and after a building combinator and vice versa.
Find more information:
- GitHub: https://github.com/slogsdon/sap
- HexDocs: http://hexdocs.pm/sap/Sap.html
Tabula - pretty printer for maps/structs collections
Tabula can transform a collection of maps (structs too, e.g. Ecto models) into an ASCII/GitHub Markdown table. Grab it from hex and enjoy!
Neo4j.Sips - a simple Elixir driver for Neo4j graphdb
Hi there - Neo4j.Sips is aiming to help the Elixir developers explore the Neo4j graph database, and to eventually become the core of a future Ecto adapter. The source code for this driver is in Github: florinpatrascu/neo4j_sips. If interested, you can use it in your projects directly from hex.pm. These are my first steps to learning Elixir and I am welcoming your feedback. Pull requests, would be awesome! - Florin.
Filter request params from Phoenix logs
Phoenix is a really powerful and customizable framework. One of it’s small but important configurations is filtering custom params from the logs. I am sure that this will be more interesting to beginner than experienced developers, but nevertheless, let’s see what’s the motivation behind this and how to do it in Phoenix. Read more here.
