Slice Type in Rust

In Rust, there is a concept of borrowing and taking ownership. This is a concept not many languages implement. Ownership and Borrowing In a Rust program, any given value is owned by a variable. For instance, if we declare let a = 30;, value 30 would be owned by variable a. Following is a program to illustrate it: // won't compile fn main() { let some_string = String::from("hello world"); println!("Length {}", str_length(some_string)); println!

Get Your Own Heroku - a Guide on How to Run a Custom 'PaaS' for deploying Apps

Heroku is a fantastic platform for Node.js developers. It made deployment of Node.js apps super easier. But obviously. it have so many limitations on free-tier, which makes it less ideal for deploying certain kind of projects, like a telegram bot etc. The Idea I was having a pretty similar issue. I needed to host a bot. Initially, it was in Heroku, but due to the fact that every apps on Heroku free tier goes for sleep after inactivity of around 30 minutes.

Fixing PIP Issue in Arch Linux

Recently, I was upgrading Arch Linux on my laptop. And I encountered something unusual with pip and its libraries. Everything related to pip(and pip itself) can not be upgraded in anyways! The problem wasn’t new to me. I knew what I am doing wrong. I was using pip to install package on system-level. So, obviously, pacman was not owning it. So, the easiest solution for me was to delete files that are not owned by pacman and blocking the upgrade process.