Programming

Programming

1474 bookmarks
Custom sorting
Ecto belongs_to and has_many
Ecto belongs_to and has_many
Elixir-learning screencast and notes: Ecto belongs_to and has_many (tagged: Ecto, Associations, Beginner)
·alchemist.camp·
Ecto belongs_to and has_many
Working With the File System in Elixir | Envato Tuts+
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...
·code.tutsplus.com·
Working With the File System in Elixir | Envato Tuts+
Working with images & qr codes in Elixir Phoenix - Phoenix Forum / Questions / Help - Elixir Programming Language Forum
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...
·elixirforum.com·
Working with images & qr codes in Elixir Phoenix - Phoenix Forum / Questions / Help - Elixir Programming Language Forum
QRCode - a library for generating QR code - Your Libraries & OS Mentoring / Libraries - Elixir Programming Language Forum
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...
·elixirforum.com·
QRCode - a library for generating QR code - Your Libraries & OS Mentoring / Libraries - Elixir Programming Language Forum
Anatomy of Embedded Elixir
Anatomy of Embedded Elixir
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.
·underjord.io·
Anatomy of Embedded Elixir
Putting code on a Nerves device
Putting code on a Nerves device
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.
·underjord.io·
Putting code on a Nerves device
Deploying Phoenix application with Kamal 2
Deploying Phoenix application with Kamal 2
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…
·blog.psantos.dev·
Deploying Phoenix application with Kamal 2
Prototyping Our First Native Components with LiveView Native
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.
·bonfirenetworks.org·
Prototyping Our First Native Components with LiveView Native
Processing XML with Elixir and xmerl
Processing XML with Elixir and xmerl
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.
·davekuhlman.org·
Processing XML with Elixir and xmerl
The Saga Pattern in Elixir
The Saga Pattern 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.
·peterullrich.com·
The Saga Pattern in Elixir
How Discord Reduced Websocket Traffic by 40%
How Discord Reduced Websocket Traffic by 40%
How we rolled out zstandard and other improvements across our gateway cluster to reduce the amount of bandwidth that’s used by our clients.
·discord.com·
How Discord Reduced Websocket Traffic by 40%
LiveView Native In The Wild
LiveView Native In The Wild
We're showcasing people building with LiveView Native and the success they've had doing so.
·dockyard.com·
LiveView Native In The Wild
Zach's Blog
Zach's Blog
Zach Povery's blog about technology; programming in python, typescript and go; and life.
·blog.zachpovey.dev·
Zach's Blog
Serialization is the Secret
Serialization is the Secret
If a value mutates in the forest with no one to see it, does it really mutate?
·zachdaniel.dev·
Serialization is the Secret
Building Bonfire Native Apps with LiveView Native
Building Bonfire Native Apps with LiveView Native
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.
·bonfirenetworks.org·
Building Bonfire Native Apps with LiveView Native
Passkeys in Phoenix using SimpleWebAuthn
Passkeys in Phoenix using SimpleWebAuthn
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.
·tech.jkbx.live·
Passkeys in Phoenix using SimpleWebAuthn