100 Days of Rust!

I have been struggling to get focused and learn more about the rust language. I would like to be ready when async .await lands on stable rust a few weeks time. So I have decided to write a micro blog series about my experience with learning rust for a 100 days. It won’t come without its own challenges, biggest being lack of time due to life commitments, and lack of focus and perseverance....

August 5, 2019 · 1 min · Harry Gill  |    

Auth Web Microservice with rust using Actix-Web - Part 3 (deprecated)

Please Read the Updated version using latest actix-web here , gitlab repo master branch now points to latest version Welcome back to part 3 of the tutorial Checkout Part One and Part Two if you haven’t already. Complete code for this project is on Gitlab master branch. Updating our cargo.toml? Rust ecosystem is moving fast, in a matter of few week we have many of our crates updated upstream including my sparkpost crate(more on that later)....

November 26, 2018 · 5 min · Harry Gill  |    

Auth Web Microservice with rust using Actix-Web - Part 2 (deprecated)

Please Read the Updated version using latest actix-web here , gitlab repo master branch now points to latest version Welcome back to part 2 of the tutorial In part one we have successfully setup bulk base of our Auth microservice. Congratulations if you have your app running and no errors so far. Checkout Part One if you haven’t already. Complete code for this tutorial is on Gitlab part two branch....

October 28, 2018 · 16 min · Harry Gill  |    

Auth Web Microservice with rust using Actix-Web - Part 1 (deprecated)

Please Read the Updated version using latest actix-web here , gitlab repo master branch now points to latest version What? We are going to create a web-server in rust that only deals with user registration and authentication. I will be explaining the steps in each file as we go. The complete project code is here repo . Please take all this with a pinch of salt as I’m a still a noob to rust 😉....

October 18, 2018 · 10 min · Harry Gill  |    

Vue SPA, router guard with redirect after login

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 Guards to the rescue, that you can use as hook before every route or selected routes....

March 18, 2018 · 3 min · Harry Gill  |    

CS-50 problem set 1

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 improve the code and user interaction but I chose to just copy exactly the same functionality for new rust code....

February 13, 2018 · 2 min · Harry Gill  |