Generate a SAS Token for Azure Event Hub in Elixir

A very small blog post showing how to generate a SAS Token in Elixir! (every example I found were outdated!)

https://jeanarjean.com/blog/2022-12-15-generate-sas-token-azure/

TIL: 3 different ways to build a list with conditional elements in Elixir (and what that has to do with application startup)

I wrote a blog post about 3 different ways to build a list with conditional elements in Elixir (and what that has to do with application startup). https://www.zweitag.de/blog/3-different-ways-conditional-lists/

ThinkingElixir 129: Time series data with Timescale DB

Episode 129 of Thinking Elixir. Tracking, analyzing and visualizing time series data can add a lot of business value to a project! We met up with Dave Lucia to learn more about Timescale DB, a PostgreSQL extension that adds time series tools to our regular database. Dave also created a timescale hex package to make it easier to work with hypertables and hyperfunctions. We learn why Timescale DB makes sense over other options, how to get started with it, example use cases, helpful resources and more!

https://podcast.thinkingelixir.com/129

How to Cache Locally in Elixir with Nebulex

In this post, you’ll learn how to use the Nebulex caching toolkit to:

  • cache locally in your Elixir applications
  • get familiar with different supported caching solutions/strategies
  • see how Nebulex can be a good fit for caching

https://blog.appsignal.com/2022/12/13/how-to-cache-locally-in-elixir-with-nebulex.html

Persistent Forms With Your URL on LiveView

Wrote a quick recipe (3min read) about how to sync LiveView forms and your URL. It was really easy because the heavy lifting is done by built-in LiveView functions! https://fly.io/phoenix-files/persistent-forms-with-your-url-on-liveview/

Use Neutral Networks in Livebook 0.8

I wrote a quick walkthrough of how to set up and use the new Neural Networks smart cell in Livebook 0.8. Play with models like StableDiffusion and GPT2 right on your computer using Elixir! https://www.peterullrich.com/use-neural-networks-in-livebook

Announcing Bumblebee: GPT2, Stable Diffusion, and more in Elixir

José Valim announces Bumblebee: GPT2, Stable Diffusion, and more in Elixir

Learn how to run machine learning models in Livebook with 3 clicks.

Learn how to embed a Machine Learning model into a Phoenix app.

https://news.livebook.dev/announcing-bumblebee-gpt2-stable-diffusion-and-more-in-elixir-3Op73O

Phoenix LiveView Crash Course

Get started with Phoenix LiveView in this crash course. We will show you how to build features in a Phoenix LiveView full stack application by breaking down a real app. We cover: how to interface with HTTP requests in Elixir, LiveView routing, HTML mounts, Websocket mounts, Event Handling, and so much more.

https://youtu.be/SDDGOqPOHJ4

nimble_template 4.5.0 Released

Kick off a new project faster with the template. Here are some major updates version 4.5.0:

Advent of Code days 6 and 7 with some binary pattern matching fun

Review of day 6 solution and live coding of day 7 solution. https://www.youtube.com/watch?v=OQullJb-DZ4

TIL: Only one server will run your migrations

Ecto uses SHARE UPDATE EXCLUSIVE lock to ensure that only one instance is running a migration at a time and only once. Internally stored version and inserted at allows you to modify and improve created files.

More on: https://bartoszgorka.com/ecto-migration-executed-once

ThinkingElixir 128: Speedy like a Bandit

Episode 128 of Thinking Elixir. The Phoenix 1.7 announcement blog post mentioned the ability to swap out Cowboy for another webserver like Bandit. We talked with Mat Trudel to learn more about his pure-Elixir webserver and find out how it works with Phoenix. We learn Bandit can be up to 5x faster by narrowly focusing on turning a request into a Plug connection and much more!

https://podcast.thinkingelixir.com/128

ex_check 0.15 released with mix audit support

ex_check provides mix check - one task to efficiently run all code analysis & testing tools in an Elixir project. Born out of 💜 to Elixir and pragmatism.

In 0.15, mix audit joins a growing family of curated tools (it’s 11 now!), so that your projects are forever secured against security vulnerabilities both locally and on CI with next to zero extra effort (ex_check will politely ask to add the package or to opt out of it without erroring out).

If you haven’t already given ex_check a shot already, just try it - it saves me & my team a ton of time everyday across personal and contract projects in following cases:

  • as a full project check after big changes (to run all Elixir & JS tools)
  • as a quick ~10s sanity check before pushing (I usually leave ex_unit and dialyzer to the CI)
  • as a way to efficiently run all tools in a single CI job (if a tool gets too slow I just skip it and extract to separate job)

Elixir/Phoenix Security: Introduction to Cross Site Request Forgery (CSRF)

This post covers how a CSRF attack works, and the defaults Phoenix gives you to discourage writing vulnerable code. https://paraxial.io/blog/csrf-intro

Build a Roles and Permissions System for Phoenix

Not ALL users should have access to ALL data! Let’s build a Roles and Permissions system to manage that access!

https://www.peterullrich.com/build-a-rap-for-phoenix-part-1

Advent of Code 2022 with Livebook, Day 1

A live coding session solving the first day of #aoc with #livebook. https://www.youtube.com/watch?v=XmybJ1GlHUk

Smart Work Distribution across Nodes/Process | Data Partition |Elixir-Erlang

https://blackode.medium.com/smart-work-distribution-across-nodes-process-data-partition-elixir-erlang-19a524b4cbc6

Random Similar Hash for the same term irrespective of executing in a another node or process. Good one for Resource Allocation.

LiveMatch: Building a Real-Time App for Soccer with Phoenix LiveView

This post is a guide on how we’re building LiveMatch, a real-time app for soccer to follow multiple games in one place. https://readyforproduction.dev/livematch-building-real-time-app-soccer-with-phoenix-liveview

Create a simple game with LiveView

Learn how to set up a LiveView project and get familiar with some of the basic event workflows while creating a fun little nostalgic game. https://youtu.be/hrpulBR5PFg

ThinkingElixir 127: Ecto gets Lively in Livebook

Episode 127 of Thinking Elixir. We talked with Spawnfest competitors Filipe Cabaço & Joel Carlbark about their entry “Lively”. Lively was all about doing cool things with Ecto in Livebook. The project, later renamed to KinoEcto does 4 cool things around Ecto in Livebook. It builds Entity Relationship diagrams from the Ecto Schemas in your Elixir project. It can visualize the dense Postgres explain output and highlight a problem like when a full table scan is performed. It includes a ChangesetValidator SmartCell, and a QueryBuilder that uses NimbleParsec to parse a raw SQL query and do the initial work of turning that into an Ecto query. We talk about what the 48-hour competition was like, what they accomplished and what they plan to do next!

https://podcast.thinkingelixir.com/127

Previous page Next page