The goal of this blog post is to help beginners grasp the basics of using SurrealDB 2 and Axum for web development. I find the technology fascinating, but readers should be aware that SurrealDB v1 upset many users due to the lack of documentation and poor performance However, version 2 fixes several performance and bug issues. One such improvement is that the in-memory storage is now powered by…
The goal, in this blog post, will be to help beginner Rust programmers overcome the notion that Rust is a difficult language. First and foremost, I will advocate for the Rust book from Brown University over the regular one. Here: https://rust-book.cs.brown.edu/ (it requires you to scroll all the way down and accept to participate). It provides a more thorough explanation of Rust and includes…
Demonstration of how to containerize an Elixir web app. Rootless, for security, inside of Podman. Also we'll be using the Plug module to keep things simple. This module is at the heart of popular Elixir web frameworks such as Phoenix . Plug lives at the heart of Phoenix's HTTP layer, and Phoenix puts Plug front and center. Setup: First, we need Podman so head on over to the official instllation…
In this blog post, I'll be guiding you through the process of building a note taking app using Tauri. Move over Electron :) Tauri allows us to build fast, cross-platform, and small sized apps using HTML, CSS, and JavaScript. It accomplishes this by using WebViews . A WebView lets you embed web content (HTML,CSS, JavaScript) into an application without needing a full-fledged web browser. Rust is…
These are some extra steps that you can implement to harden a Linux system. USBGuard prevents unauthorized USB devices from connecting. The installation page goes through the process of setting it up. For Fedora users it's as simple as: sudo dnf install usbguard Make sure any USB you want to allow through is connected to a port. Then generate an initial ruleset: # You might need to switch to root…
In this demonstration, we'll be using Axum to make a very minimal blog. Storing the blogs written in markdown into PostgreSQL, and lastly using Askama to render those blog posts. Setup up a new project Create a Rust binary (--bin is default and we could omit) cargo new blog-rs --bin Add the following modules in Cargo.toml [package] name = "blog-rs" version = "0.1.0" edition = "2021" [dependencies]…