`cargo new` â Your First Rust Project - Day 03
In Java, starting a project means choosing Maven or Gradle, creating a directory structure, writing a pom.xml or build.gradle, and eventually getting to actual code. In Rust, you run one command. Creating a project cargo new hello-rust cd hello-rust Thatâs your entire project setup. Hereâs what Cargo creates: hello-rust/ âââ Cargo.toml â your pom.xml / build.gradle âââ src/ âââ main.rs â your entry point Clean. No boilerplate. Cargo.toml â the project descriptor [package] name = "hello-rust" version = "0.1.0" edition = "2021" [dependencies] The [dependencies] section is where you add libraries â Rust calls them crates. Itâs the equivalent of your <dependencies> block in Maven. ...
Installing Rust: `rustup` is Your New Best Friend - Day 02
Setting up a Java project used to mean downloading a JDK, setting JAVA_HOME, maybe fighting with your IDE, and picking a build tool. Rust makes this refreshingly simple. One command to rule them all curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Thatâs it. This installs rustup â Rustâs toolchain manager. Think of it as the equivalent of SDKMAN for Java, except itâs the official way to install Rust and everyone uses it. ...
Why Rust? A Java Dev's 5-Minute Reality Check - Day 01
Youâve been writing Java for years. It works. Your apps run fine. So why would you even look at Rust? Hereâs the honest answer: you probably donât need Rust for most things. Java is excellent. But Rust solves a specific set of problems in a way no other language does â and once you see it, itâs hard to unsee. The three things Java leans on that Rust doesnât 1. A Garbage Collector Java manages memory for you. Thatâs great for productivity, but it comes with a cost â GC pauses, higher memory usage, and unpredictable latency. Rust has no GC. Memory is managed at compile time, with zero runtime overhead. ...
Nginx Proxy Manager
Nginx Proxy Manager is a tool that helps you manage domains and route traffic to your applications easily. It is built on top of NGINX, but instead of writing configuration files, you can control everything from a simple web interface. Why Use It? Normally, configuring Nginx requires editing many config files. Nginx Proxy Manager makes this easier by allowing you to: Add domains Forward traffic to apps Enable HTTPS with Letâs Encrypt Manage everything from a dashboard Simple Example Suppose you have an app running on port 3000. ...
A Todoist System to Fix My Regrets (Not Just Track Tasks)
Regret is quiet. It doesnât show up as panic or urgency. It shows up as procrastination, hesitation, and that strange heaviness when you know what you should be doingâbut donât. Most productivity systems donât know what to do with regret. Theyâre built for tasks, goals, and deadlinesânot for unfinished emotional business. So instead of trying to âlet goâ of my regrets, I did something different: I built a system for them inside Todoist. ...
The Brutal Truth About Time Management
Most people think time is the enemy. We convince ourselves that we are losing the race, falling behind, or that the days are simply too short. We treat time like a resource that is constantly running out. But the truth is far worse than that. You arenât losing time. You are wasting it willingly. âI donât have timeâ is the worldâs favorite excuse. It is a comforting lie we tell ourselves to avoid doing the hard work. But if you look in the mirror, the evidence says otherwise. You have time to refresh your social media feed ten times a day. You have time to watch twenty short videos in one sitting. You have time to lie awake for hours doing absolutely nothing. ...
LazyGit: The Easy Way to Use Git in Your Terminal
Managing Git via the command line is powerful, but letâs admit itâsometimes it feels overwhelming. Thatâs where LazyGit comes in! Itâs a fast, lightweight, and interactive terminal UI for Git, helping you manage repositories without memorizing complex commands. What is LazyGit? LazyGit is a simple terminal-based UI for Git commands. Instead of typing multiple Git commands, you get a visual interface inside your terminal to handle: Staging files Committing changes Managing branches Viewing logs and diffs Handling stashes Itâs perfect for developers who love terminal productivity but want to avoid command fatigue. ...
LoRA Fine-Tuning is Just Like Baking a Cake đ°
Once upon a time, there was a baker who baked the perfect giant cake. It was huge, heavy, and costly to make. People loved it, but soon everyone started asking for different flavors: âCan I get chocolate?â đ« âHow about strawberry?â đ âWhat if you add coffee and almonds?â âđ° The baker sighed. âI canât bake a new giant cake every time⊠itâs too expensive!â Thatâs when the idea struck: đ Donât bake a new cake. Just add a topping. ...
Existing OpenAPI to an MCP Server Using FastMCP
In this brief tutorial, weâll use FastMCP to transform an existing TODO application (which exposes an OpenAPI spec) into a MCP server and link it to CoPilot for organic task interactions. Step 1: The TODO App Your TODO app should already be running at: http://localhost:8000 And exposing its OpenAPI spec at: http://localhost:8000/openapi.json Step 2: Create the MCP Server Create a file todo_mcp_server.py: import httpx from fastmcp import FastMCP client = httpx.AsyncClient(base_url="http://localhost:8000") spec = httpx.get("http://localhost:8000/openapi.json").json() mcp = FastMCP.from_openapi(openapi_spec=spec, client=client) if __name__ == "__main__": mcp.run( transport="http", host="localhost", port=4200, path="/todo-mcp/http", log_level="debug", ) Run it: ...
Understanding Internal Implementation of HashMap and HashSet in Java
When working with Java, two commonly used data structures are HashMap and HashSet. These collections are highly efficient, but their efficiency relies on how they handle internal operations, especially when it comes to collisions. This blog will explain the internal workings of HashMap and HashSet in simple terms and provide examples to help you understand how they manage collisions. What is a HashMap? A HashMap is a data structure that stores key-value pairs. It allows you to store data in a way that lets you quickly retrieve the value associated with a specific key. The keys in a HashMap must be unique. ...