Elixir

Phoenix LiveView JavaScript Hooks and Select2

With LiveView JavaScript hooks it's now really easy to do JS interop. In this article we see how simple is now using select2 with...
Alvise Susmel
2 min read

Real-time Object Detection with Phoenix and Python

This article is about Elixir-Python interoperability using Elixir Port and how to bring YOLO real-time object detection functionalities on a Phoenix app.
Alvise Susmel
28 min read

ExAws with DigitalOcean Spaces

DigitalOcean Spaces is a cloud storage alternative to AWS S3. Since Spaces is compatible with the S3 APIs, we can use the ExAws S3...
Alvise Susmel
4 min read

AWS S3 in Elixir with ExAws

We setup the AWS account, configure ExAws, put, list, get and delete objects. Upload large files with multipart uploads, generate presigned urls and process...
Alvise Susmel
7 min read

Understanding Phoenix LiveView: build a Gallery app

In this article we see how to build a Gallery app with Phoenix LiveView and implement an automatic slideshow with the help of :timer.
Alvise Susmel
11 min read

The Primitives of Phoenix LiveView

Focus on LiveView's primitives: the bricks we need to know to building a real-time app with this technology. We take a special look at...
Alvise Susmel
5 min read

How to Setup Phoenix LiveView

how to get started with Phoenix LiveView by creating a new Phoenix app and going through the LiveView setup
Alvise Susmel
4 min read

Creating Thumbnails of uploaded Images and PDF in Phoenix

We see how to create thumbnails of Images and PDFs in Elixir and Phoenix, using ImageMagick and Mogrify.
Alvise Susmel
10 min read

Step-by-Step Tutorial to Build a Phoenix App that Supports…

A step-by-step tutorial we see in depth how to build a Phoenix app from scratch, letting users upload their files using a multipart form....
Alvise Susmel
16 min read

Hashing a File in Elixir

What is a hash function and how to calculate the hash strings and files in Elixir, using functions in :crypto module and Elixir Streams
Alvise Susmel
3 min read

Elixir Stream and large HTTP responses: processing text

Part 1 – Elixir Stream to process large HTTP responses on the fly Part 2 – this article You find the code, of this...
Alvise Susmel
11 min read

Elixir Streams to process large HTTP responses on the…

Transforming an HTTPoison async response into an Elixir Stream, to easily process large remote files on the fly, gaining code clarity and reusability.
Alvise Susmel
5 min read

The Primitives of Elixir Concurrency: a Full Example

We see how to fully implement concurrent HTTP calls, using just spawn, send and received along with HTTPoison. We then refactor our code using...
Alvise Susmel
6 min read

Hey Process, there is a Message for you!

Messages are a fundamental part of concurrency in Elixir. In this article we see how messaging and mailboxes . With messages we can
Alvise Susmel
5 min read

Spawning processes in Elixir, a gentle introduction to concurrency

In this article I introduce concurrency and show how we can start making our code concurrent in Elixir, using processes.
Alvise Susmel
4 min read
Secured By miniOrange