Project update: Telemetría
Released an update to Telemetría
properly handling multiple clauses and function heads (and introducing :purge_level
config param.)
URL [Slug Generator] With Elixir
Learn how to build a human-readable, search engine-friendly URL slugs generator with Elixir.
Introduction to Telemetry in Elixir
Learn what is Telemetry and how to use it in Elixir.
https://blog.miguelcoba.com/introduction-to-telemetry-in-elixir
Elixir Wizards S7E12 - Todd Resudek on the Impact of Elixir
The Elixir Wizards Season 7 Finale is out today! https://smartlogic.io/podcast/elixir-wizards/s7e12-resudek/
Listen in and don’t forget to take our Audience Survey: https://smr.tl/survey
Basic [File Manipulation] With Elixir
Learn how to do basic directories and files creation, open, read, write to files with Elixir.
Mostre como é simples criar uma API com Phoenix
Nesse vídeo passamos por todo o fluxo de código que uma requisição percorre no framework Phoenix e criamos uma API REST com as operações CRUD. Compartilhe com seu colega que ainda não conhece Elixir.
Deploy Elixir Phoenix to Fly with ONE command then set up Continuous Deployment
Learn how to deploy your Elixir Phoenix app to Fly with a single command then set up Continuous Deployment using GitHub Actions. This post has been updated using Chapter 1 and 2 of the Phoenix Deployment Handbook.
Creating Elixir module registry via protocols
https://romankotov.com/articles/elixir-module-registry-via-protocols.html This post describes how to use introspection feature of protocols to create a compile-time module registry.
This approach helps me to tag modules and gather some useful information about them. Using it in my Elixir Smart Home project
It also covers another ways to create a module registry, and some pitfalls that I have faced to make it work.
Throttling and Blocking Bad Requests in Phoenix Web Applications with PlugAttack
https://www.paraxial.io/blog/throttle-requests
This post describes how an account takeover attack works, from the perspective of the attacker, and the owner of a victim Phoenix application. After the reader sets up the environment, we introduce PlugAttack, an Elixir library to throttle and ban clients who are abusing the login functionality.
ThinkingElixir 084: LiveBeats with Chris McCord
In episode 84 of Thinking Elixir, We talk with Chris McCord about the LiveBeats project he created. It’s a high-quality, showcase, open source project that highlights new and powerful features in LiveView. LiveBeats is a social music playing application that challenges current ideas about what LiveView is able to do. It uses presence, new JS features, defines reusable Tailwind styled components, includes accessibility and more! An exciting project that people can actually use in addition to being a great community resource. We also get into what’s coming out in Phoenix 1.7 that may interest people getting ready to start a new project!
Formatting GraphQL in Elixir projects
Format GraphQL strings in your Absinthe projects using a custom Elixir formatter plugin. https://maartenvanvliet.nl/2022/01/26/absinthe_formatter/
TIL: Custom timestamps fields in Elixir
Ecto Schema is very easy to adapt to our needs. Besides changing the type of the primary key, you can also change the type and names of the fields created by the timestamps()
macro.
Check on: https://bartoszgorka.com/custom-timestamps-fields-in-elixir
New Book Released: Phoenix Deployment Handbook
Jack from StakNine has published the Phoenix Deployment Handbook.
Learn how to deploy to Fly with two commands. Automate deployments when you push to GitHub. Set up email delivery, error monitoring, log management, and web analytics.
Save hours deploying your first app or improving your existing deployment process.
Visit the link below to learn more and download the Quick Reference Guide attachment for free.
What you should know about the live_session macro
Imagine you have a few endpoints and would like to group their authorization rules. With live_session/3, can achieve that! https://til.simplebet.io/posts/9j3dphzwgq-what-you-should-know-about-the-livesession-macro
We’re on the Brink of Cryptopunk
https://www.badykov.com/elixir/cryptopunk/
I developed a crypto wallet library for Elixir called cryptopunk. And in this post, I’ll describe how you can use it
DynamoMigration has been released. -Version management tool for DynamoDB migrations.-
DynamoMigration is simple version management tool for dynamo_db migration files.
Links
Usage
-
Create migrations table.
$ mix dynamo.setup
-
Generate and rewrite migration file.
$ mix dynamo.gen.migration create_tests_table
# priv/dynamo/migrations/20220130083004_create_tests_table.exs defmodule Dynamo.Migrations.CreateTestsTable do def change do # Rewrite any migration code. # Examples. ExAws.Dynamo.create_table( "Tests", [id: :hash], %{id: :number}, 1, 1, :provisioned ) |> ExAws.request!() end end
-
Migrate.
# Executes `priv/dynamo/migrations/*` if there had not migrated. $ mix dynamo.migrate
Help To Test Your Library
Simple yet quite effective approach to make your library a charm to test. DummyWorker
that sends a message back to testing process instead of performing a real action.
▸ https://rocket-science.ru/hacking/2022/01/30/help-to-test-your-library