Earlier I wrote about BikeSafe Watchman, I have been busy building firmware that has to survive the real world (gloves on, cold hands, spotty RF, and a phone that is trying its best), I kept learning the same lesson: your protocol is part of your product . For BikeSafe Watchman (an ESP32-C3 BLE device), I wanted a protocol that is: cheap to parse (no JSON, no allocations, no decoding adventures)…
It began with a spark —a dormant passion reignited after many years away from motorcycling. Life had steered me in different directions, away from the saddle, but something deep inside pulled me back to the thrill and freedom that only riding offers. Returning to motorcycling after such an extended hiatus was daunting yet exhilarating. I vividly recall my first CBT session: the nerves, the…
What?? Updated: 2020-06-24 We are going to make a demo linux web-server with systemd , config file and installable .deb binary in rust. I have been creating web-servers in Node.js for a while. When it comes to running it in production almost always I end up using a solution like pm2 or nodemon to keep the service up and use nginx or apache as reverse proxy to that service. This tutorial is written…
Rust is an enjoyable language, and I have been experimenting with it for a some time. I started with creating a few web servers using different crates including rocket and actix. I needed to use an email api to send messages from the backend to either myself or the user. I have used Sparkpost as an email service for such purpose in some of my nodejs apps. Having not found any rust API lib for it I…
While making Let’s Organise SPA(Single page Application) I bumped into the issue of properly checking Auth and redirecting when a user visited a route that required Authentication. If User is authenticated then go to the requested page or redirect to /login page. Once the user has successfully logged in redirect them back to the requested page. Vue Router has something called Navigation…
Problem set translation form C to rust . I’m using the code I had from 2014 and implementing rust equivalent as a learning exercises. the firs C program is very simple classic ‘Hello World’ followed by rust ‘hello world’. The example below that is about parsing command line user input and printing a pyramid based on that input. Although I can think of many ways to…
Few years back I took CS50 certificate course form Harvard University, that sparked my interest in compiled programming languages. The course mainly used C Language to teach many programming concepts. The course is available here if you are interested CS50’s Introduction to Computer Science . Recently I have started learning rust programming language.
Senior Software Engineer (rust) and Union Organiser. Previously worked on distributed web hosting platform Enhance with rust. Living with my family, on a small island in north of Scotland. I love working with rust and embedded systems. I dabble in electronics and microcontrollers as a hobby. Designing and building small PCBs and programming them in rust is my bust pass time. I’m more than…