Simple belongs_to/has_many associations with Phoenix | AV
Setup a has_many / belongs_to in Phoenix
Something I do in EVERY project is to setup some sort of relation between resources. And even though Phoenix comes with generators for migrations and CRUD opeartions, you still need to modify the code to suite for the relations you want.
In this short tutorial, I will go through my usual steps regarding setting up a basic has_many / belongs_to - relation.
Postgrex Ecto Types
One thing I found confusing about Postgrex , the excellent PostgreSQL adapter for Elixir , was how to use PostgresSQL-specific data types (...
Phoenix LiveView LiveComponents
Components are a mechanism to compartmentalize state, markup, and events in LiveView. We can move a part of the LiveView's logic (and related template) into separate components. We start by moving the product card, the part inside the for comprehension, into a LiveComponent.
Creating Thumbnails of uploaded Images and PDF in Phoenix
We see how to create thumbnails of Images and PDFs in Elixir and Phoenix, using ImageMagick and Mogrify.
Build Interactive Phoenix LiveView UIs with Components | AppSignal Blog
Learn how to make use of functional components to create complex Phoenix LiveView UIs.
Step-by-Step Tutorial to Build a Phoenix App that Supports User Upload
A 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.
CUE
Validate and define text-based and dynamic configuration
The Future of the GitLab Web IDE
There are big changes in store for the Web IDE in the coming milestones.
rakhesh sasidharan's mostly techie somewhat purpley blog
Blog
4 ways you can preserve the Earth's livability with open source
Why actions rooted in open source culture can make a big impact.
A Byte of Coding Newsletter
A curated daily programming newsletter featuring technical deep-dives.
Brendan Carpio / elixir-pgp-wordlist · GitLab
Convert hex strings to PGP word lists and vice-versa in elixir https://en.wikipedia.org/wiki/PGP_word_list Re-implementation of
Building an Elixir Encryption Engine with Erlang's Crypto Module
Demystify encryption by taking a medium dive and building your very own encryption engine in Elixir. In this post, we'll build a light-weight Elixir library that leverages Erlang's :crypto to encrypt/decrypt sensitive data, and learn a little more about encryption along the way. Overview Our library will be able
Beginner's guide to writing testable code
Believe it or not, I spent 3 years of my career without knowing what testability really means, in fact, I never really heard that term until lately. I have been working on small-scale applications, writing tests for every feature I had implemented, b...
Text Expansion with Hippie Expand - Mastering Emacs
Exploring RStudio’s Visual Markdown Editor | R-bloggers
RStudio 1.4 was released in January 2021 and switched to calendar-based versioning as of 2021.09. Starting with 1.4, the IDE includes a visual markdown editor that works on any markdown-based document, such as .md or .Rmd files. Visual editing mode pro...
ETS
Website for Elixir
Erlang Term Storage (ETS) · Elixir School
Pattern Matching · Elixir School
Bugs that the Rust compiler catches for you
Over the decades, Humans have proved to be pretty bad at producing bug-free software. Trying to apply our approximative, fuzzy thoughts to perfectly logical computers seems doomed. While the practice of code reviews is increasing, especially with the culture of Open Source becoming dominant, the situation is still far from
Populating Ecto Database with Test Data Using Faker
When building a web application there is almost always some form of a database being utilized to persist the application's data.
Your Git Commit History Should Read Like a History Book. Here’s How.
Stop wasting time trying to decipher what a commit did.
Create ghost loading cards in Phoenix LiveView
Unless you already didn't know, when a LieView component is mounted on a page, it runs the mount/2 function twice. One when the page is rendered from the initial request, and one one when the socket is connected. So if you have data that is slow or resource heavy to load, you should consider to wait until the socket is connected so the intial load is not in vein.
A popular approach is to use ghost cards. A ghost gard is a loading placeholder that looks similar to the content that you try to load in but without actual data.
In this tutorial I will show you how
Elixir Examples
A collection of small Elixir programming language examples.
So Many Ways to Update a Map with Elixir!
Last week I got a pleasant refresher on updating maps. As I type this it sounds like such a basic thi...
Joy of Elixir
Joy of Elixir is a gentle introduction to programming, aimed at people who already know some things about computers, but who have little-to-no programming experience.
Anonymous Functions in Elixir on Exercism
Master Anonymous Functions in Elixir by solving 3 exercises, with support from our world-class team.
Extract Lists from Text File in Elixir
I have a bit of an odd question, but I have read all sorts of Elixir documentation and textbooks in sort of an answer to this and have come up with nothing.
I have a set of .txt files which each c...
String Encodings Decoded With Elixir
Know the working of strings