Working With the File System in Elixir | Envato Tuts+
Working with the file system in Elixir does not really differ from doing so using other popular programming languages. There are three modules to solve this task: IO, File, and Path. They provide...
Working with images & qr codes in Elixir Phoenix - Phoenix Forum / Questions / Help - Elixir Programming Language Forum
I’m trying to get an QR code from the google API. url = "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=Hello%20world" response = HTTPoison.get!(url) How do I send the body of the response as json out in my Phoenix application? Right now I’m getting the following error: ** (exit) an exception was raised: ** (Jason.EncodeError) invalid byte 0x89 in 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 150, 0, 0, 0, 150, 8, 2, 0, 0, 0, 179, 99, 230, 18...
QRCode - a library for generating QR code - Your Libraries & OS Mentoring / Libraries - Elixir Programming Language Forum
Hi folks! We’ve just finished (me and @smita) our new QRCode library for Elixir. Now you can generate QR code whenever you’ll want… 🎉 Basic usage looks like: iex qr = QRCode.create("Hello World") iex qr | Result.and_then(&QRCode.Svg.save_as(&1,"/path/to/hello.svg")) {:ok, "/path/to/hello.svg"} If you want to change, for example, ecc level and the color of QR code you can write iex settings = %QRCode.SvgSettings{qrcode_color: {17, 170, 136}} iex qr = QRCode.create("quiz_string", :h...
Working on the Nerves project, the Embedded framework for Elixir, has given me an increased appreciation for how Frank Hunleth and his collaborators through the years have structured things. And while I've found crossing into the Linux-heavy part of it difficult and frustrating there has been reasonable steps to take all the way from building the application layer in Elixir all the way back to fighting the bootloader. I'll try to detail how a Nerves system is built up in this post.
The Nerves project is a way of building embedded Linux devices where the BEAM virtual machine takes care of running things. This does not constrain what you can run.
Kamal is a deployment tool designed for deploying containerized applications. It’s specifically optimized for use with docker based applications, simplifying the process of building, deployin…
Prototyping Our First Native Components with LiveView Native
With our initial mockups complete, we were eager to start coding in LiveView Native (LVN). There are two primary ways to debug our iOS app: using Xcode or LVN Go.
This post describes the use of the Erlang xmler library to process XML in Elixir. Two example modules are provided. Both search XML files for a regular expression. One uses a tree walk approach, while the other uses xpath. In addition, we learn how to use Erlang records in Elixir.
Explore the Saga pattern in Elixir for managing complex, multi-step processes. Learn about choreography and orchestration approaches, with code examples for implementing long-lived transactions.
Welcome to the first post of our development diary for the Bonfire native app. In this series, we'll journey together through the entire process of designing and publishing Bonfire on the Apple App Store using LiveView Native.
Dive into the world of passwordless authentication as we explore implementing Passkeys in a Phoenix Elixir app using SimpleWebAuthn. Learn how to handle registration and authentication flows, including the crucial process of encoding and decoding public credential keys between TypeScript and Elixir.