From Installation to Implementation: Part 6

Photo by Markus Winkler on Unsplash

Previously on MongoDB

In part five, we learned about how to update documents using a few different Mongo commands. We also discussed that due to having embedded documents, it would be a little more difficult to update because of the chance details are overwritten. While updating, we learned we could update every field, or we could update only specific ones. Once we discussed a few different methods of updating, we decided to take a little time to think about how we would want to update our FastAPI portion.

This Time on MongoDB

Having taken a little time, I decided how I want to update our documents. Keep…

It’s quick and dirty, but it works

Photo by jesse orrico on Unsplash

When I finished writing my previous post, I spent some time thinking about the hundreds of pictures sitting in a single directory on my Samba share. When I first placed them there, I had this dream that one day, they would be neatly organized into separate directories. However, the thought of having to view each one individually and then move it to its proper directory seemed like a painful task. That is until I realized that a couple of MySQL tables and a little Python code could really help speed up this tedious task.

The idea that I had in…

Here is how it can be fixed…

Photo by Echo Grid on Unsplash

A few months ago, I wrote a few MYSQL tables to use while learning to create JSON web tokens with a Python API. A fairly simple task, however, recently it was brought to my attention that I made a mistake. For the primary key, I used a CHAR value that would represent a GUID (Globally Unique Identifier). Because MYSQL does not have a GUID datatype, I selected to use the CHAR data type to hold my generated value. This way, the database was not required to generate the key, as it would be created in my backend code. Although this…

I never thought it would be this easy

Photo by ShareGrid on Unsplash

Feeling adventurous, I once again thought about my ultimate plans for automation, which included building out all of my own programs. But what to do next? As I start towards creating a YouTube channel for tutorials like my blogs, I realized that I would need to use a video editor. However, maybe that is something I could build myself? To jump into a full video editor would be too much too soon, especially considering I don’t know what all an editor should include yet. But instead, I could start much smaller, such as with pictures. So, the only reasonable choice…

Yes, there is an easier way…

Photo by Markus Winkler on Unsplash

A couple of days ago, I got a little bored during my lunch break and got to thinking about the possibility of scraping information off of Wikipedia. With some Python knowledge in my arsenal, I figured this could be accomplished pretty quickly. I immediately started looking at the network tab in my web browser to see what URLs were getting used when searches were conducted. I also took a peek at the source code for a random Wikipedia page.

After about an hour or so of analyzing the URLs and trying to figure out the different calls they were making…

They’re not dead yet!

Photo by Dan Visan on Unsplash

While cleaning up a few old Jump Drives, I found old projects from my early college days. Being a little curious, I decided to take a trip down memory lane. One project was a Python text-based game. A small mystery game that involved random numbers and user input. Although not a very difficult dive into Python, it was a fun project at the time and I thought it would make a good post for those looking to start a simple first game. …


Photo by Noel Broda on Unsplash

Over the past couple of years, I have become absolutely obsessed with wrapping my applications in containers using Docker. The reason for this is because Docker makes life so much easier and allows me to deploy applications very quickly. It also helps to ensure that my apps are not exclusively tied to any infrastructure allowing me to deploy these apps virtually anywhere. Recently, I’ve been working on a C#application that pulls some data from a database and processes it. Naturally, I got curious about how this app could be wrapped up.


When containerizing an application with Docker, the first thing…

A stroke of genius or a work in progress?

Photo by Luke Besley on Unsplash

Although first created in September 2020, while browsing new Python libraries I discovered Autoscraper. Reading through the description, my interest was peaked. It seemed to be a lightweight way to scrape websites for text, URLs, and other items of interest such as HTML tags. Even more appealing, it boasts being a fast and easy way to scrape websites. But with all the potential, we have to understand, the project is still fairly new. There may still be issues. …

Thank you Satya Nadella!

Photo by Tomasz Frankowski on Unsplash

It was the summer of 2015 when I saw that Visual Studio Code had made its appearance to the world on Microsoft’s website. At first sight, it was extremely hard to believe that something like this was going to be Open Source Software. In the past, Microsoft had made a reputation of being very anti-Open-Source. At one point, former CEO Steve Ballmer even referred to it as a “cancer”. However, with Satya Nadella taking the reigns of the massive company, views of open source computing have drastically changed. He even proclaimed that “Microsoft ❤️ Linux”.

Integrating With Linux

Eventually, I figured out that…

Part 5 in an introduction to using — and making the most of — MongoDB

Photo by Markus Spiske on Unsplash

Previously on MongoDB

In part four, we set up both Insert and Delete endpoints for our MongoDB collections. We did this using a combination of pymongo and pydantic. After connecting to the database, we used the FastAPI endpoints to pass our new records for inserting into our database or passing the ID to delete. For testing, we used Postman.

This Time on MongoDB

After considering for a while, I decided how I want to create the update endpoints. Recall the updates will be slightly more difficult than simply selecting the items to update, as we have embedded collections in a couple of collections. Please note, this may…

Mike Wolfe

Software Developer, Tech Enthusiast, Runner. Current project

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store