When VPN is the Devil!

Here I am testing, and testing, and testing my code to troubleshoot issues that connect to other service API's. It starts to seem that every solution I try doesn't work. One in the hundred should work; right!? Everybody says there's a solution, but it's not working and it HAS to work. Everything I try results in absolutely no changes in the outcome. I'm starting to go insane. Hours later and feeling no closer to a solution then at the start......something different happens. My wifi starts getting wonky so I decide to reboot my service. In that process I disable my always running VPN with the intention of bring it back on, but first I need to eat some chocolate to soothe my hanger. In my distraction of the sugar rush I forget to turn my VPN on and rerun my last made test that previously failed. (because the definition of insanity is doing the same thing over and over while expecting different results). With the last ounce of my sanity, I blink....suddenly the stars align, the gods smile upon me, and a baby unicorn is born....BAM, the test actually works! I try it again and it works. Again and it works. Again, successful. I'm dumbfounded. I didn't know why it wasn't working before and I don't know why it's working now. I go through my checklist of setup and it's all the same as I've had for a 1,000 failed tests but now the test is successful. Then it dawns on me. The one variable that's different. The one variable that I KNEW has been a culprit before......THE VPN IS OFF! Yea, excuse me while I scream silently into a pillow. -_-

Happy Holidays! Linux vs Unix Environments

I made an environment that had specific installs using pip and conda package managers within a linux system. I made an export file to recreate the environment on a different system. When I tried to use the file in a unix system, it had errors and wouldn't populate. Apparently this is known issue! Word to the wise. After much research, and yes finds to possible solutions, I just decided to go down the line installing the packages manually. It didn't take long. After a little tinkering, I got my project up and running with all updated packages on my unix system too. Note, the issue doesn't exist going from unix to linux. Funny, huh? "But I heard him exclaim, ere he drove out of sight, HAPPY CHRISTMAS TO ALL, AND TO ALL A GOOD-NIGHT!"

Lightbox Modal Image Gallery

Firstly, https://www.w3schools.com is a great tutorial site for learning tons of front end things. Secondly, I came across a curious little bug when trying to apply css styling to a lightbox. Some of it was not applying correctly. The issue was narrowed down to bootstrap css creating the conflict. If the link to it was removed everything looked fine. Thankfully I didn't need all the components that usually are incorporated with a slideshow that displays thumbnails. Upon removal of that the issue went away. But the fact still remains that the source of the issue may have come from a conflict between screen sizes and margin allowance. Food for thought.

Random thought of the Day

Do you ever just forget to hide your expressions for a minute and then you're like "woah, I did NOT mean to make that face out loud!"

CSS: Centering Content For Various Screen Sizes

The following, when added to a .css file, will center the content on screens > 600px. For screens < 600px the content will end up spanning the whole page. .your-class-name { display: block; max-width: 600px; margin: auto; } In bootstrap, you can also use the "mx-auto" class for horizontal centering. It can only be used on content that has specifications for display: block; width: "some amount". Example inline code: <div class="mx-auto" style="display: block; width: 100px;"> Centered Content </div>

1 2 3 4