Elixir Mix Task Generator: The Ultimate Tool for Automating Repetitive Tasks
The Comprehensive Guide to Creating Custom Mix Task Generators
Stop wasting hours on mundane tasks! đ©đ» Say hello to your new productivity hack: the Elixir Mix Task Generator đđ Check out my latest blog post to learn how this ultimate task can change your workflow for the better! đȘđĄ
Livebook Launch Week Day 5: Data wrangling in Elixir with Explorer, the power of Rust, the elegance of R
This post introduces the new data features in Livebook 0.9: fast data exploration through integration with Explorer, interactive data tables, and data transformation using the new Data Transform Smart cell.
Inspecting LiveView Tests with open_browser/2
Anytime I need to inspect a page when testing LiveView, I reach for open_browser/2:
view |> open_browser()
It renders the current LiveView page and opens it in your browser! đ€©
Check it out in action đ https://youtube.com/shorts/IVW26sTeuSQ đ
Livebook Launch Week - Day 4: Build and deploy a Whisper chat app to Hugging Face in 15 minutes
Learn how to use Livebook to build a Machine Learning app and deploy it to Hugging Face in less than 15 minutes.
Oban v2.15 Released
Discover Oban v2.15âs performance and quality-of-life improvements, including notification compression, faster node shutdown without orphaning jobs, and the query solution to a insidious Postgres issue we hunted for years.
Phoenix LiveView Zipped Uploads
File and image uploads in LiveView are already easy and elegant. But what if the user wants to upload an entire directory with more nested directories and files? How should we handle that? Chris McCord walks us through how that can work in LiveView.
https://fly.io/phoenix-files/phoenix-liveview-zipped-uploads/
Livebook Launch Week - Day 3: Hubs and secret management
Discover Livebook 0.9âs new security features, including Hubs for centralized secret management, notebook stamping, and a sneak peek into Livebook Teams for team collaboration.
https://news.livebook.dev/hubs-and-secret-managementâlaunch-week-1âday-3-3tMaJ2
Livebook Launch Week - Day 2: DistributedÂČ Machine Learning notebooks with Elixir and Livebook
Explore Livebook v0.9âs enhanced Machine Learning features: new Neural Network tasks with the built-in Smart Cell, DistributedÂČ Machine Learning in Elixir, and more.
Thinking Elixir News 146
Episode 146 of Thinking Elixir. News includes Elixir 1.14.4 release and whatâs in it, the EEFâs election is re-run and why, a new ML library Scholar was released and what itâs for, a Sobelow update, a post about building your own static site generator with Phoenix, a post creating a Slack-like app with LiveView and streams, and more!
An Introduction to Mocking Tools for Elixir
Letâs explore three mocking tools you can use in Elixir â Mock, Mox, and Mimic. https://blog.appsignal.com/2023/04/11/an-introduction-to-mocking-tools-for-elixir.html
Idempotency in Elixir with One and Done
Add idempotency to your Phoenix/Plug apps with as little as one line of code using the new One and Done hex package!
- Launch blog post: https://knock.app/blog/using-one-and-done-to-power-idempotency
- Github Repo: https://github.com/knocklabs/one_and_done
- Hex Package: https://hex.pm/packages/one_and_done
Livebook Launch Week - Day 1: Deploy notebooks as apps & quality-of-life upgrades
Explore Livebook 0.9âs new features: deploy notebooks as user-friendly apps, star & access recent notebooks, and collapse sections.
Learn how to build and deploy your notebook as an app with Livebook.
IntellIJ Elixir v14.0.1
v14.0.1
Bug Fixes
-
Ignore atoms at top-level when looking for docs.
-
Replace
TODO()inleex.reference.resolver.Assignwith logger errors that includePSiElement. -
Ignore
typefor docs. -
Donât look for variable use scope above EEx tags. If a variable is declared in an EEx tag then it is actually missing its declaration and cannot be resolved, so ignore its usage.
-
Check if module is disposed when write action is run for
syncLibraries. -
Only use Elixir SDK for
mix formatif it has an Erlang SDK. -
Include more lines of context for stacktraces in error reports.
-
Ignore identifier when
@*docattribute isnât quoted. -
Ignore if package virtual file is disposed before the deps can be read.
-
Donât decompile Erlang
Andas Elixirand. -
Ignore
request_bodyandresponsesfor docs. -
Check if heredoc has lines before calculating host text range for Markdown docs.
-
Ignore if stubs ids canât be found when resolving Callables.
-
Ignore hexadecimal numbers at the root of the file when collecting doc comment.
-
Return an empty array of primaryArguments instead of array with null operand for unary operation without operand.
-
Set
sinceBuildto IntelliJ IDEA 2022.3. Fixes incorrect compatibility listed with < 2022.3 when < 2022.3 support was removed in 14.0.0 with #2946. -
Use
minByOrNullto protect from empty module list. This fix may not work as the line number reported in the errors is actually outside of the file. This is only a guess thatminBywas what was throwing theNoSuchElementexception. -
Ignore
nulloperands fornot inprimaryArguments(). Instead of including both left and right operand always and so having null operand in fixed size array return array with only non-null operands. -
Donât allow Elixir SDK without Erlang SDK to be selected for New Project. The SDK has to be able to work for
mix new. -
Ignore strings, charlists, and sigils at the top of file when looking for doc comments.
-
Ignore top-level Aliases when collecting docs.
-
Ignored
unquotecalls when injecting docs. -
Find enclosing
quotewhendefs are inside anfnas in Phoenix Route Helpers. -
Handle binary modules when processing protocols and implementations for line markers and definition search.
-
Skip unqualified no arguments calls when Ecto.Query.from arguments are being typed.
-
Setting name on a call definition clause sets the name on the head instead. The JetBrains API both renames the usage references AND the original element where the rename refactoring was started, but when started on a call definition clause the
functionNameElementis thedef,defp,defmacro, ordefmacropand so both the name of the call was changed, but thedef*was also changed to the new name. Now, ifsetNameis called on a definition, the head is renamed instead. -
Filter out Elixir SDKs that donât have an Erlang SDK when importing projects.
-
Check Elixir SDK has Erlang SDK before running dialyzer. Notify user of configuration error instead of throwing exception when constructing
mixcommandline. -
Log heredoc where Markdown cannot be injected.
-
Donât inject Markdown in empty heredoc docs.
-
Log if new name element type does not match old name element type.
-
Replace name with relative identifier instead of identifier for qualified calls on rename.
-
Keep looking for variants above if and unless
ifandunlessused to callkeepProcessing()after checking if the child calls when resolving or searching for variants, but Variants returnedfalsealways fromkeepProcessing().This stops the variant search from terminating inside of an
iforunlesswhen it wouldnât outside of one as was reported in #2751. -
List
KernelandKernel.SpecialFormsvariants inside modulars. Keep processing at end of modulars when looking for variants, which will check the implicit imports ofKernelandKernel.SpecialForms. -
Prevent listing variants from outer module in nested module
-
Log the accumulated and target usage type that cannot be folded.
-
Fix reporting
mix newerrors as notifications- Donât associate mix new errors with new project as it doesnât have a frame, so the notification was suppressed before.
- Strip color codes from mix new error notification.
-
Validate
âappis set correctly for new projects-
If inferred from project name, make sure the name is valid application name the same as
mix newdoes. -
If
âappis set explicitly, make sure it follows naming rules formix new.
-
If inferred from project name, make sure the name is valid application name the same as
Simulate LiveView Latency with liveSocket.enableLatencySim()
Another awesome LiveView helper:
â± liveSocket.enableLatencySim()
It lets us emulate latency to see how our LiveView responds when our users arenât sitting close to our servers. Thatâs đ„
Check it out https://youtube.com/shorts/xlLVtmVCuPw đ
Elixir Security: What's the impact of DoS due to atom creation?
How to test your Elixir applicationâs reaction to a major crash.
Analyze Meta Tags With Elixir
A quick walk through on how to analyse for meta tags on websites using Elixir.
Go read more: https://kiru.io/blog/posts/2023/analyze-meta-tags-with-elixir/
Inspecting LiveView Payloads with liveSocket.enableDebug()
I â€ïž that LiveView comes with so many helpers to improve dev experience.
One of those is liveSocket.enableDebug() to help us inspect the payloads LiveView is sending. So nice! đ€©
đ https://youtube.com/shorts/b8X8QoJJ1N8 đ
Can Phoenix Safely Use the Zip Module?
Elixir has a built-in Zip library that comes with OTP. This post explores how to use the zip module and asks the important question: âIs this safe to use with user provided zips?â We explore two different types of zip-based attacks and see what we learn from it.
https://fly.io/phoenix-files/can-phoenix-safely-use-the-zip-module/
Sean Moriarity, Building a Conversational Support Bot with Elixir and Bumblebee
Seanâs talk from the Denver Elixir meetup:
- Open-ended generation with LLMs
- Vector search with ExFaiss, Elixir binding, Facebook AI similarity search
- 100% Elixir and Bumblebee, ~100 LOC!
Thinking Elixir News 145
Episode 145 of Thinking Elixir. News covers the EEF election results, a new Livebook 0.9 release, Docker reverses directions, how Github spilled the secret beans, full text search with a new Haystack lib, how intentionally vulnerable Phoenix apps are educational, the timescale hex package grows up some more, and more!
