Mehdi Khoshnoodi

Passionate about software engineering, startups and leadership.
Bus passengers

Can You Solve This?

Today when I was riding the bus I thought “would it be possible to efficiently utilize the seats so that each individual would sit as long as possible?”. The short answer is for reality is probably “NO!” but let’s have fun with the problem in theory at least :) Let’s say that we have a bus route with 50 stops and the distance between each consecutive pair is constant. The bus has 20 seats (Let’s focus on one bus for now)....

February 10, 2023 · 2 min · Mehdi Khoshnoodi
GitLens

How GitLens enhanced my commits

I’ve been using GitLens on VS Code since always! The reason I Installed GitLens is being one of the most popular and recommended extensions on the marketplace. But recently I’ve noticed how its current line blame feature has made my whole committing process much better. Of course, I knew about Git blame long before even GitLens came into existence. Although it’s a great tool to exploit git history, It’s not handy and easy to use and so it’s not commonly used....

January 8, 2021 · 3 min · Mehdi Khoshnoodi
Blogging

The journey of blogging for fun

As long as I remember, I’ve always enjoyed blogging and wanted to do it more. But unfortunately, it never happened. Recently, I came to realize that the high standards I had for the quality of my posts were possibly the most important reason not to write. Basically, I had always wanted a professional blog! By professional, I mean a blog which the author makes a living out it; and maybe some other people as well!...

August 15, 2020 · 6 min · Mehdi Khoshnoodi
Running gopher

The story of a nil pointer receiver

Let’s assume we want to store Gender as an attribute for our users. And since we use PostgreSQL we can define an enum for gender like this: ...

October 16, 2017 · 3 min · Mehdi Khoshnoodi

Fun Hack: Copy commands to a local VM without clipboard

I was following an instruction to deploy an application on a Virtualbox VM and I wanted to execute the long commands. By default it’s not possible to copy those command into the VM. VirtualBox has a shared clipboard feature which I tried to get it working but it didn’t happen so I didn’t dig into it and I came up with a funny hack :D I sent the commands through a socket :)...

July 14, 2017 · 1 min · Mehdi Khoshnoodi
Fighting robots

The Battlefield

Battlefield is a project that I’ve started in TehPUG. you can read the story behind it and see how I decided to start this project here. So far till now I experienced some projects and activities that didn’t work out as I expected. I asked my self what are the requirements to activate and motivate TehPUG. I came up with a few answers… It should be suitable for everyone. from the very beginner that learned something about python today to the python expert....

May 23, 2017 · 3 min · Mehdi Khoshnoodi
A TehPUG meeting

The TehPUG

Let me introduce TehPUG. TehPUG is the Tehran Python Users Group like any other PUG around the world. People who love python or have heard it recently and want to learn more about it. We have meetups every month. Come and join us if you love python too. A little background I was new to python when I joined TehPUG in its early days. There were people who helped me learn more about python and even give me a chance to do some practical stuffs....

May 15, 2017 · 2 min · Mehdi Khoshnoodi