In one of my recent articles, “Life, Blog Stats, and {No} Profit”, I gave a breakdown on the number of visitors to my blog since I first created it in 2018. Today I want to focus on generating some of that data from the web server access logs themselves.
When you’re learning to code, loops are one of those things that tend to trip people up a few times before they get the hang of it. There are a few different types of loops, but today we’re going to focus on the “for” loop.
I was recently doing some reorganizing on my files, and in doing so I renamed a directory that then caused a couple of hundred symlinks to break. I needed a solution to find the broken symlinks and update them to use the new file path.