Easy case insensitive text using Postgres' Citext extension

Stop worrying about case sensitivity for emails and usernames, and let Postgres handle it for you! I’ll show the surprisingly quick way to get it working with Phoenix and Ecto (and Rails as a bonus)

Step-by-Step Tutorial to Build a Phoenix App that supports user Uploads

Step-by-Step Tutorial to Build a Phoenix App that supports user Uploads

In this step-by-step tutorial, we see in depth how to build a Phoenix app from scratch, letting users upload their files using a multipart form.

We learn how to easily run PostgreSQL with Docker, to receive uploads using Plug, and how to use Ecto to store upload details into the database.

Raxx 1.0 released

https://elixirforum.com/t/raxx-1-0-released/21674

Raxx is a toolkit to make web applications with Elixir simple. Today it reached the 1.0 milestone

Composing Ecto queries: filters and preloads

I have just published <a href=”https://www.amberbit.com/blog/2019/4/16/composing-ecto-queries-filters-and-preloads/“>new blog post</a>, where I demonstrate how to compose Ecto queries to preload associations and filter the data.

The philosophies of software languages, from Go to Elixir

There are more than 2,500 programming languages in existence today. Where do all these languages come from? Learn more about the fourth generation, from Go to Elixir. https://www.welcometothejungle.co/fr/articles/languages-software-go-elixir

ElixirMix Podcast 047 - Property Based Testing with PropEr and Fred Hebert

In this episode of ElixirMix, I talk with Fred Hebert about his new Property Based testing book using PropEr. We talk about getting started with Property Based Testing, the Elixir and Erlang communities, debugging tricky problems and much more!

Podcast Episode

Phoenix CSRF protection in HTML forms, React forms, and APIs

Let’s look on <a href=”http://nts.strzibny.name/phoenix-csrf-protection-in-html-forms-react-forms-and-apis/“>CSRF protection in Phoenix</a>. Multi-part forms, React forms and APIs in general.

How to store username or email with case insensitive search using Ecto

A small post about case insensitive columns https://minhajuddin.com/2019/04/14/how-to-store-username-or-email-with-case-insensitive-search-using-ecto/

Talking to the LiveView

Updating the Phoenix LiveViews from outside the process

https://medium.com/@iacobson/talking-to-the-liveview-7a19f7e45522

Versioning v0.3.0 released!

The latest Versioning has added extensive support for Phoenix applications. Make your API future-proof by adding versioning support!

Features include:

  • An easy-to-use DSL for building a schema representing the changes across versions.
  • Simple integration with Phoenix controllers and views. Modify incoming params and outgoing data.
  • Support for multiple version types - from date to semantic. Or build your own.
  • Create a changelog based on the changes in your versioning schema.

Check it out:

Using Elixir to share data across graph databases

I just published a post today ‘Graph to graph with Elixir Moving data between semantic and property graphs’.

This post shows how we can use Elixir to move data between semantic and property graph databases, and back again. As well as the worked examples in the text, a small number of sample scripts are also provided.

Graph conversions are handled by applying simple wrapper functions over the neosemantics library from Jesús Barrasa. We also use the bolt_sips package from Florin Pătraşcu and the sparql_client package from Marcel Otto to interface respectively with Neo4j and RDF graph databases using Cypher and SPARQL, respectively.

Jeffrey Matthias from Community - Elixir in Production

We talk with Jeffrey Matthias from Community about their current and past Elixir projects and how they are deployed.

https://podcast.smartlogic.io/season-1-community

Interview: Jeremy Huffman, Dialyxir

https://hashrocket.com/blog/posts/interview-jeremy-huffman-dialyxir

This is my latest post for the Hashrocket blog, an interview with Jeremy Huffman, maintainer of Dialyxir.

The Elixir AST explained

Introducing the AST Ninja for helping you understand Elixir’s AST https://www.botsquad.com/2019/04/11/the-ast-explained/

Morphix 0.7.0 published. Now with generic morphiforming of map keys! https://hex.pm/packages/morphix/0.7.0

Morphix 0.7.0 published.

We noticed that we had some duplicated code, and that that duplicated code could be used to apply any function to recursive key transforms in maps, so we made the generic method public. Later releases will have better information about how to implement this, in the meantime, check the test examples. https://hex.pm/packages/morphix/0.7.0

Hashing Files in Elixir

Hashing Files in Elixir

In this article we see what a hash function is and what it can be useful for. We see how to calculate the hash of strings and files using the Erlang :crypto module and Elixir streams.

Params modules for Phoenix

The Params modules pattern can be used in Phoenix to validate and massage a controller action’s params into data that can be passed to contexts.

ElixirMix Podcast 046 - Don’t Repeat Your Domain Knowledge with Yiming Chen

In this episode of ElixirMix, the panel talks with Yiming Chen about keeping code DRY for domain knowledge. We talk about contexts, code patterns in Ruby and Elixir, learning Elixir in China and much more!

Podcast Episode

Revisiting “Tail Call Optimization in Elixir & Erlang” with benchee 1.0

I took the release of benchee 1.0 for a spin and redid one of the first benchmarks I ever did with benchee - looking at tail call optimization in elixir and erlang to show off how benchee has improved over time. The original blog post can be found here.

Cleaning up Phoenix Controller Actions

A pattern I came across that helps when you need to pass a lot of variables to the view / template. https://link.medium.com/u2pVO4TMIV

Previous page Next page