XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Underjord.io

A blog on independent software development, Elixir and more.

Code BEAM, Stockholm 2022

I started writing this on the train home from Code BEAM. It’s an Erlang, Elixir (and BEAM in general) conference put on by Code Sync which is part of Erlang Solutions. It was a hybrid conference, I was there entirely in person. It was a very good time. “Isn’t Underjord Just You?” Having gone recently from being a single-person consulting and contracting shop to having a small team I took a rather different approach to this conference. My team does not have deep connections in this community.…

LiveView on Nerves

I’ve played with Nerves for almost as long as I’ve been learning and using Elixir. Nerves is a fantastic way of working with hardware along with the BEAM virtual machine and it is great fun for hobbyist projects like Raspberry Pis. Phoenix LiveView is currently my favorite way of making full-stack web development cohesive and keeping the complexity as low as possible for it. I haven’t run into any short compelling demos of getting these started together. There is also a video covering this…

Fundamentals & Deployment

I’ve had Gerhard Lazu on my livestream once where he showed me a way of doing CI/CD with k3s and ArgoCD. The podcast Ship It! that he hosts on Changelog recently had Kelsey Hightower on. Kelsey is to many this guru of the cloud native and Kubernetes space. I’ve had good value from what I’ve heard him say in the past. In this episode he really spoke to me. So he essentially said, I’m interpreting here, that when it comes to deploying software to servers the documented manual steps for deploying…

Is LiveView Overhyped?

To alleviate any sense of clickbait. No, it is not overhyped as a technology, in my opinion. Let’s get into the nuances. In a recent tweet a while back a member of the Elixir community expressed some frustration with how everything is all about LiveView. It led to some interesting and useful discussion and as someone who writes a fair bit about Elixir, Phoenix and such I have thoughts. Following on that discussions other people expressed further concern about the unreserved enthusiasm with…

Nerves Quickstart

This is a labor of love where I just wanted the Nerves project to have a nice promo video. Frank and crew put a lot of work into making Nerves approachable while all their day-to-day use and needs is in the nitty-gritty industry side of it. So what does all that effort get them? Well, they’ve gotten it to the point where a complete step by step can be a one minute, 38 seconds long video. Showing the common steps for getting an RPi from inert to you controlling the system LEDs in Elixir from a…

Video - What Is: Elixir

Trying to put words to the technology that has been most important to me for the last 4-5 years. Elixir. A language I picked up and now work almost exclusively with and specialize in. It is not the mainstream and I think that has serious advantages. function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var sources = video.querySelector("source"); video.pause(); sources.setAttribute("src", src); video.load();…

Video - How Do: Server

This one has been a while at the back of my mind. A lot of my readers have mentioned wanting to learn Linux and servers. This is an attempt at just unleashing you on the very first steps of your journey to do server work. It covers setting up a server with Linode (taken as an example) and then installing a webserver on it. I also cover a few bits about securing a server and potential next steps. I hope it helps. function switch_video(element) { var src = element.getAttribute("href"); var video…

Video - What Is: Server

A brief explanation of servers, the concept. Next step should be to show you good folks some stuff about how I set one up. function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var sources = video.querySelector("source"); video.pause(); sources.setAttribute("src", src); video.load(); video.play(); return false; } Original 720 low Sorry, your browser does not support embedded videos.

My Elm Experience

I’ve been using Elm since about one year back now. At the start of 2021 I began working with a client that had an existing Elm frontend code base and an early stage backend built in Elixir and Phoenix. This post will be about my experiences running face first into Elm. I’ll be vague on some details as I can’t share too much about the specific client and code base. I’ll be much less vague about Elm itself. To put my thoughts into context. I know an okay amount of Functional Programming (FP). I…

Video: Fixing my LiveView app

My note-taking web app build in LiveView needed some fixing. Also updated it to use the new heex templates. function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var sources = video.querySelector("source"); video.pause(); sources.setAttribute("src", src); video.load(); video.play(); return false; } 4K HD 720 low Sorry, your browser does not support embedded videos.

Video: Indie Livestreaming with Elixir & Membrane

So Software Mansion, the makers of Membrane Framework, have kindly conspired with me to get RTMP ready for Membrane. RTMP is the protcol used when streaming from popular open source tool OBS. The RTMP module is currently at a technical preview level so be warned, might have some sharp edges. They made sure there was a chain of building blocks from RTMP to HLS (HTTP Live Streaming) and now I can actually set up a completely independent version of the Underjord livestreams. So that’s what we are…

Video: Improving a GenServer, My IoT Lightswitch

GenServer is the typical Actor abstraction in Erlang and Elixir. I’ve used one for talking to my Elgato Keylights in the lightswitch project. I made it sort of dumb. It was a quick job so I want to improve it in a few ways. Make it not need to pull the new state from lights before sending commands. Pull state in the background occasionally to keep relatively up-to-date. Always fetch status after sending commands. If there is time, improve the lighting on the keybow to represent the state of the…

Video: Elixir and Computer Vision with evision

From Twitter I stumbled on this neat, still early, but working project for using the OpenCV library from Elixir. So I decided to give it a whirl! The project is called evision and I had a great time on stream screwing around with it :) function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var sources = video.querySelector("source"); video.pause(); sources.setAttribute("src", src); video.load(); video.play(); return…

Video: Building Out Indie Livestreaming with LiveView and Membrane

On a previous stream we tested out the library for RTMP in Membrane to achieve streaming on our own in Elixir. This time we make it more convenient, flexible and work our way towards using it. Being able to prepare and start livestreams, setting them up with LiveView, giving meaningful progress to users. Things are fun when you have near real-time events :) function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var…

Guest post: Cross-cutting Elixir in Teams

Release day. Although the product team was used to a bit of a hustle to wrap up open features, perform final testing, and prepare for deployment, today presented some additional challenges. This morning Jerry, the team’s product manager, discovered that one of the major features slated for this release was implemented in a way that would cause problems for some key users on the platform. Jerry notified Mark, the backend engineer, who said he might be able to fix the issue by modifying the data…

Winners - Manning book giveaway

Just a brief note announcing the three winners of the giveaway that take home a copy of Elixir in Action by Saša Jurić. Thanks to Manning for providing those copies. If you want 35% off of their books you can use the discount code nlunderjord21 and you can find their collection via this link that definitely will track some statistics about click-through rates (you have been warned): Manning’s other books. The winner’s have all been notified and codes for the ebooks sent out. And they are (names…

Are you hiring Elixir developers?

Is your company actively trying to hire Elixir developers? Or should you be? I care about making good software happen. Even if I’m not writing it. And good software is formed from good teams. To help this happen I want to connect companies and developers in the Elixir space. I know and connect with plenty of both. This is the first time I mention this particular offer to the public. If the interest is at the level it seems this will also be the only chance to get in at the initial pricing. If…

Are Contexts a Thing?

The discussion of Contexts in Phoenix and their general usefulness feels like a common point of disagreement in Elixir. I’ve gathered that the discussions went high and low as it was becoming a thing in mainline Phoenix. I don’t really care for controversy but what I see is a topic which gets confusing to wrangle with and which I never know quite how to explain. So this will be an attempt to explain what Contexts as provided are, cover some common concerns around this and two rather opposing…

Giveaway: Elixir in Action

The book Elixir in Action by Saša Jurić is widely recognized as one of the best books on this language I favor. I’ve been meaning to run some giveaways and this book was always on the agenda. It shouldn’t be the only one but I think it makes a very appropriate starting point. Especially as the book has been such a starting point for many Elixirists through the years. Transparency note: This giveaway is supported by Manning, the publisher that published Elixir in Action. I haven’t been paid to…

Building a Startup on Elixir to a $50 mil round

I became familiar with Marcin Kulik when I was brought in to work with a company called Vic.ai. A fintech startup. Marcin is the guy who started building their entire Elixir system and was the person to primarily onboard me to the work. When I was brought in they were a small team of 4 devs, looking to grow up to around 7 at the time. Special thanks to DockYard for supporting my work on this piece. They are a digital product consultancy with deep roots in the Elixir community and ecosystem.…

Finally using your Raspberry Pi & Elixir

How many Raspberry Pi do you have sitting in a drawer. I think I still have about 4? And at least 2 on a shelf. I may be over the average there but the story itself is common. “Oh! This is neat, I can automate X with this! And learn Y tech doing it!” And yet it never gets quite done. For reasons. No one needs to feel too bad about this. Not all projects pan out. But I’ve recently found my footing on putting these devices to use and figured I’d share some thoughts. The idea of Pis gathering dust…

Video: Attempting to Control Elgato Keylights from Nerves

This livestream we tried to control my Elgato Keylights from a Nerves device. We really tried gang, come on. A good attempt. We ran into an issue with the expectations we had on what mDNS would give us. Those issues are still under investigation but they seem to be a change or regression in underlying parts of Nerves or Erlang. I’ve since gotten it to work by going back a few versions. Those frustrations aside we also verified that we can control the lights and detect the keypresses for the…

Video: Automatically Clustering Nerves devices

Sitting down to show some of the work I’ve done with Nerves and Erlang Distribution for clustering Raspberry Pis. In this case automatically, via mDNS. This is what I do when I have a cold and am not streaming I guess. We also poke around with an HDMI screen on the Pi400. I want to run Scenic on that one. function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var sources = video.querySelector("source"); video.pause();…

Video: Making a Calendar Gadget with Nerves and LiveView

Cleaning up previous work and making the eInk display look fabulous by iterating in our LiveView-based simulator. We get this thing ready for small office production :) function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video"); var sources = video.querySelector("source"); video.pause(); sources.setAttribute("src", src); video.load(); video.play(); return false; } 4K HD 720 low Sorry, your browser does not support embedded…

Video: Forming an Erlang cluster of Pi Zeros

I sat down with the stream and gently coaxed a couple of Raspberry Pi Zeros to cluster up with each other using the Nerves project. With recent support for Erlang distribution in MdnsLite we got the power to help nodes find each other via mDNS instead of some other method. So I wanted to give it a whirl, and I did :) Special thanks to Isaac for his help in the chat. function switch_video(element) { var src = element.getAttribute("href"); var video = element.parentElement.querySelector("video");…

Video: Unbox a Pi400 and put Nerves on it

I’ve been enjoying some Nerves recently which prompted me to finally order the Pi400 to play around with. In this stream I unpack it and get Nerves running on it without having tried it before or hearing that anyone had tried it. I just trusted the hard work of the Nerves team. Turns out that was a great call. It worked beautifully, almost confusingly well. Then we investigated some of the things we can do with a Pi with input devices but no output connected. It was a fun stream. Lovely little…

Video: Nerves, Livebook & small displays (eInk, OLED)

The Inky eInk display was one of my first real things done with Elixir. And I’m apparently back on my bullshit. Because I just pulled that thing out and tried it with Nerves + Livebook. Had a really good time this stream and I think I want to do more things with hardware like this. Let me know if you’d be curious to see more of this. This triggered a not-yet-working Nerves device project I’m calling my calendar gadget which will be more documented at some point I’m sure. The Phoenix part of…

Video: Phoenix 1.6 RC, Preview

There are some very exciting updates in Phoenix 1.6 that just recently hit RC. We go through and try them out. It all seems to work great. I consider every bit of it an improvement. The official blog announcement for RC 0 has the details and I reference it through the video. I particularly tried out the LiveView Heex template changes which was great. This seems much more ergonomic and it wasn’t bad to begin with at eex/leex. Then we actually had time to try the new Esbuild setup as the…

Video: Elixir & Ecto, generating queries

As part of some foundational work on a CMS concept I’ve been building out this fairly dynamic Ecto-based way of dealing with content types and content (we call it entity types and entities) in a database. And I wanted this to be broadly compatible. That’s what most of this livestream ended up being about from what I remember. Trying things and swearing about internals. All in all a good time right? function switch_video(element) { var src = element.getAttribute("href"); var video =…

Video: Elixir CMS Thoughts, and code

I’ve had a lot of thoughts and a few failed runs at creating a CMS in Elixir. This isn’t because Elixir is particular hard to do it in. Rather the opposite. The reason I’ve abandoned those efforts have to do with what exactly I want solved with a CMS. I’ve outlined some of that in The WordPress merging problem and WordPress & the gross inefficiencies. I’m trying to create a sound technical solution with a sound human solution on top of it. My first efforts were quite top-down in some aspects. I…