Flaky Tests with Faker? Fix it with 1 line of config
If you use Faker in LiveView tests, some HTML special characters can cause tests to fail randomly.
You can fix it with 1 line of config –
Read the article: https://johnelmlabs.com/posts/flaky-faker-liveview-tests See the tweet: https://x.com/JohnElmLabs/status/1757107288169455996?s=20
BeamRad.io Podcast: LiveView Native with Brian Cardarella
BeamRad.io hosts Lars Wikman and Alex Koutmos chat with Brian Cardarella, CEO of DockYard about LiveView Native, its development, and its potential impact on the market. They share personal stories and experiences with LiveView Native, highlighting its intuitive and familiar development process. Don’t miss this one!
Thinking Elixir News 189
Episode 189 of Thinking Elixir. In this week’s podcast, we cover the release of Elixir 1.16.1 with its various bug fixes, delve into German Velasco’s ExUnit testing tip for running tests in parallel, explore the performance boosts experienced by Thomas Millar after upgrading to Bandit, and celebrate the 10-year anniversary of Inch, René Föhring’s documentation analysis tool. We also discuss the innovative use of Elixir Protocols for customized route parameters in Phoenix, the creation of a new Kino for embedding YouTube videos into Livebook, and a stark reminder of the potential dark side of AI and ML with a deepfake phishing scam that cost a company $25 million, and more!
Shell scripting with Elixir
When simple bash scripts start to become unwieldy, you may consider reaching out for something “higher” level, like Perl, Ruby or Python. I’m reaching out for Elixir.
Simple Req Cookie Jar
A simple req cookie jar plugin, can be used when automating or scraping websites that implement cookie based sessions.
Nerves Meetup: Scenic Goes To Cairo
Join Jon Ringle, lead embedded software engineer at GridPoint, on a walkthrough of how the Cairo graphics library is transforming Scenic to deliver high performance graphics to Nerves devices.
Thomas Millar, Instructor - The bridge between Elixir and AI
Great talk from Thomas on how to use LLMs in Elixir. https://www.youtube.com/watch?v=RABXu7zqnT0
Thinking Elixir News 188
Episode 188 of Thinking Elixir. In this week’s news, we follow-up on Erlang’s use of ExDoc with José Valim’s reveal of upcoming features for ExDoc that promises to enhance documentation experiences. We’ll also explore the return of the Elixir Slack inviter, now powered by a Plug app, and take a look at the latest PhoenixTest project, aiming to unify testing workflows for LiveView and static pages. Plus, we discuss adding sound effects to LiveView with Howler.js and get a sneak peek at the Nx library’s newest Explorer v0.8 release, bridging Elixir to GPU operations for data exploration, and more!
Elixir Streams |> Debugging tip! One quick way to find out which functions you're executing
Want to know which functions are being executed during tests?
I’d typically write custom dbg statements. But I always wanted a way to print the function’s name without me having to know it.
Turns out, there’s an easy way thanks to the __ENV__
macro! 🥳
👉 Elixir Streams |> Debugging tip! One quick way to find out which functions you’re executing
Borrowing libs from Python in Elixir
Why choose between Elixir and Python when you can have the best of both? Read about the tricks to borrowing Python libraries for your Elixir applications.
https://curiosum.com/blog/borrowing-libs-from-python-in-elixir
The Lazy Programmer's Intro to LiveView Part 10: Listing matches for users
https://dev.to/lubien/listing-matches-for-users-257c
This time we are going to do a little bit of frontend and at the same time learn a bit more about Ecto and LiveView streams. Our goal is to make the user page list all their matches.
Maintaining GitHub Actions workflows
CI pipelines in GitHub Actions can get pretty complex with workflow files containing a lot of duplicated YAML code.
Learn how we deal with that in our latest blog post:
Maintaining GitHub Actions workflows
An interview with Carlo Gilmar at Code BEAM America 2022
I went to Code BEAM America 2022 and interviewed Carlo Gilmar, the creator of many graphic recordings which are loved by the BEAM community.
Seamless navigation between React SPA and Phoenix LiveView
Example of extending a single page application with Phoenix LiveView, it mostly works! https://arathunku.com/b/2024/seamless-navigation-between-spa-and-liveview/
Resize Image Uploads with Phoenix LiveView
Anders Björkland (@abjorkland) takes us through the process of resizing images before upload using Liveview Hooks.
https://dev.to/andersbjorkland/resize-image-uploads-with-phoenix-liveview-589n
Deploying Phoenix app with mix releases
Say hello to an efficient process that gets your app from code to production swiftly.
https://curiosum.com/blog/deploying-phoenix-app-with-mix-releases
Introducing PhoenixTest
PhoenixTest
provides a unified way of writing feature tests – regardless of whether you’re testing LiveView pages or static pages.
It also handles navigation between LiveView and static pages seamlessly. So, you don’t have to worry about what type of page you’re visiting or navigating to.
📚 Hex docs
What is GenStage and How to use GenStage to Consumer Twitter API Forever
Learn how to use GenStage to consume Twitter API and process the tweets in a flow of data processing. In this guide we will dive a little deep into how to do consume a and process tweets using GenStage. https://thiagoramos.me/articles/using-genstage-to-consume-twitter-api
Build a Wordle clone with LiveView
I’ve published a new tutorial where we build a clone of the popular word guessing game, Wordle with Phoenix LiveView.