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 · Mehdy Khoshnoody

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 · Mehdy Khoshnoody
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 · Mehdy Khoshnoody

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 · Mehdy Khoshnoody
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 · Mehdy Khoshnoody
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 · Mehdy Khoshnoody