Enums are a great way to safely store user roles, record status updates, and many other things in your database. Ecto 3.5 added Ecto.Enum which makes it easier than ever to persist enums to your database.
Just released the first RC of Temple v0.6.0! Please check out the diff and try it out to report any issues before I make the official release.
Main improvements are
- Phoenix LiveView compatible
- Improved component API
I migrated the ElixirStatus server today and thought this necessary change in hardware was a great opportunity to put a coat of fresh paint on this old ship.
ElixirStatus now honors your preference for “dark” or “light” themes. You can also overwrite this via the “Use (Dark|Light) Theme” link at the bottom of the page (inspired by ExDoc).
PhoenixLiveSessions is a new library for integrating Phoenix sessions with LiveViews. Store session data from LiveViews and receive session updates via PubSub. https://pentacent.com/blog/phoenix-live-sessions/
Connect and communicate via JSON-RPC to Ethereum or EVM based blockchains
Parse logs with nimble parsec and display in live dashboard https://dev.to/dkuku/nginx-logs-in-live-dashboard-jk9
Create custom live dashboard using the table component https://dev.to/dkuku/phoenix-live-dashboard-custom-page-4chj
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e5-vo/
In episode 28 of Thinking Elixir, we talk with Jason Axelson who created the DepViz tool that can help improve your Elixir compile-time experience. Jason explains how to use the tool to identify where compile time dependencies may be causing issues in your project and provides tips on what to do about it. We also cover recent improvements in Elixir 1.11 and coming improvements in 1.12 and what those will mean for you! Jason is also a member of the Elixir-LSP github organization and explains the history of the Elixir-LS project and how it has grown and developed. Jason shares some tips with how to fix Elixir-LS issues when it stops working for you. He also shares some glimpses of where things may go in the future, and more!
Elixir and Erlang are not the most performant options for number-intensive calculations. Fortunately, they provide NIFs (Native Implemented Functions) for delegating such tasks to languages like C and Rust that good at number crunching.
Recently, I had an opportunity to work with / write Rust NIFs. Surprisingly, it’s not as hard as I thought it would be. The only skill you need to do that is the basic knowledge of Rust. In this post, I’ll explain simple steps for writing Rust NIFs and I’ll describe a couple of real-world NIFs as examples.
sync_primitives is an Elixir library to make it easier to synchronize processes using higher-level abstractions than messages, such as CyclicBarrier and CountDownLatch, which are inspired from the Java APIs.
Personally, I have found them are very useful in testing agent-based and multi-process Elixir apps.
In this tutorial, I walk you through adding SortableJS to a @elixirphoenix project to create a drag and drop interaction that makes event data available to the Phoenix LiveView using hooks.
Ho, ho ho! 🎅 🎄🎁
This year, I’m giving the internet 5 copies of my ebook for Christmas!
It’s called, “5 Little Potions”, and it’s guide for programmers to learn Elixir by building 5 games. It’s currently about 40% finished and in early access.
Hello alchemists. I’m glad to let you all know that I’ve released ex_check v0.13, full of useful new features to supercharge your Elixir code checking workflow even further. Many of these features come from @asummers so thanks Andrew!
New :unused_deps curated tool runs
mix deps.unlock –check-unusedto ensure that there are no unused dependencies in the project’s
mix.lockfile (e.g. after removing a previously used dependency. This should keep your lockfiles nice & clean.
It’s now possible to quickly re-run checks that have failed in the last run with the –failed command line option akin to one in ExUnit, making the fixing loop even faster.
Manifest file backing the above feature is a plain text that may optionally be saved at path given with –manifest option so it may be easily used to produce PR comments on CI etc.
New –config command line option allows to point to arbitrary configuration file path e.g. for cases when you’d like to share the defaults across projects.
As a side note, to celebrate 100 stars on GitHub I’ve recently reworked the project with new logo and demo embedded in README to quickly show how mix check works. You can witness it along with my poor vim skills below :) Cheers and happy Holidays!
Deploying a new version of our application, with a migration which renames either column or table, on more than one node.
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e4-fordos/