I wrote a script that fixes all your Nginx sites to php8 on Ubuntu 21.10

I had a working webserver running LEMP (Linux, Nginx, Mysql, PHP) and I saw my Linode Linux VPS had a release upgrade. So I ran the Ubuntu “do-release-upgrade” command and after 15 minutes of updating it was updated, hooray!

Except after rebooting, all my websites were dead with a 502 Nginx error.

Upgrading from Ubuntu 20 to Ubuntu 21.10 the Ubuntu gods forced the upgrade from PHP7.4 to PHP8.0.

I tried getting a phpinfo page to test if the php was processing, but instead nginx was just serving the php page like a download. So I knew it was a problem with the php being processed, Nginx has individual sites running through the sites-available and sites-enabled folder. I updated the sites-available files with the new php8.0 socket, assuming since they were already linked in sites-enabled then they should all work after the nginx service was restarted. However they still didn’t work, and after opening the linked files in the sites-enabled folder I realized those were just copied by the “sudo ln -s” command. So now for all my websites I need to change php7.4 socket to php8.0, delete all the sites-enabled links, then relink all the sites-available files. Doing this more than 2 times if pretty tedious. So naturally I wrote a script does all this, and for each of the sites in the sites-available folder it updates all of them and relinks them.

I’m working on cleaning up this script and releasing it to help others, might try releasing it on my github

Did you know only 1% of the internet is on php8? https://haydenjames.io/78-of-the-web-powered-by-php-1-on-php-8/

Is Caffeine good for you?

I’ve thought about this for a long time, maybe since high school. I remember then having coffee, loving the taste, but not really feeling any different from it. I’d drink it, and think “Okay so aren’t I supposed to have all kinds of energy now?” but it’s not like that at all. Now that I’m older, for whatever reason coffee, and caffeine affect me differently now. If I’ve gone without caffeine for weeks and I go back to drinking a single 8 fl oz. cup of coffee I will stay awake until 2 or 4pm no problem. For me the problem comes in, I suppose with my genetics. If I don’t have a tolerance built up for it and I accidentally drink something with coffee then it will randomly upset my clock and offset it into the future. For someone who might need to stay awake late like a truck driver or pilot, where loss of consciousness could mean loss of life, then a secure consciousness is important.

However, if you know anything about the human body and medicine, then you know the human body has a rhythm like timing belt and cylinders in a car, the heart beats. Your body also wakes and rests on a rhythm known as the circadian rhythm. When these mechanisms are disturbed your heart can have tachycardia, palpitations, or cardiac arrest. This is because your heart has a specific sequence to push blood forward. If the sequence is screwed up then the pulses in the heart can effectively cancel out, causing the heart to fail in pushing blood forward.

When I was younger I saw a documentary about caffeine where they showed some sort of microbiome under the microscope being exposed to caffeine, and obviously it sped up immediately for a little while until later when it just ceased moving. It seemed as if the little cells sped up and shortened their life spans from their exposure to caffeine. I saw this and wondered is this perhaps similar to what would happen to us? We’re obviously much larger organisms as humans, our LD50 and ED50 and tolerance is much higher than some cells under a microscope. However when scientists look at the ED50 and LD50, those numbers are instantaneous, and no one tracks or even cares about those dosages over the long term. Maybe a cup per day would stimulate you, but what does a cup per day over 10 years do to you and your body rhythm?

The next thing I’m curious about is why would the coffee plant even produce caffeine? If you think about the biological costs of producing caffeine, the coffee plant obviously must have a reason to produce caffeine. It must have a reason why the plant would have evolved the cellular equipment to produce the caffeine molecule. Why would coffee plants produce caffeine? Well plants fall victim to some similar pathogens humans have to fight. Plants produce seeds that they need to reproduce. In other species sometimes these seeds are eaten by predators or destroyed by bacteria or fungus. Human agriculture sometimes uses pesticides and insecticides to protect fruit growing on plants. But what if the plants made their own insecticides? This is why I suspect coffee plants produce caffeine as an insecticide/pesticide to protect their coffee beans. Without coffee beans, you obviously can’t have coffee plants.

HotWorldMusic

HotWorldMusic.com the world’s best World Music

When I was growing up on a 5 acre farm in Palm Beach, there was little access to internet, me and my dad shared a Garage that we converted to a living space. We had access to satellite TV through DirecTV and they had channel named LinkTV. LinkTV used to have a segment where they broadcast tons of videos in their world music group. It’s been at least 10 years since then and I can still remember music video from some Finnish farmers among others and when I look at LinkTV I don’t know if they still make this world music segment anymore or not but I wish they did and so I figured why not create a website that tracks all the contemporary world music artists. So I created HotWorldMusic.com. The name is a play on words, and “Hot world” is a slight reference to climate change and global warming. As an advance over LinkTV I wanted to develop a map that you could click on that would direct you to music from different parts of the world based on where you clicked. The US obviously has a diverse range of music genres, but did you know Russia shares several of these genres including Rap, R&B, and Goth music?

JaxHax Makerspace

Google Glass Enterprise Edition 2

Google Glass Enterprise Edition 2 is obviously the successor to Google’s first Enterprise Edition Glasses, and its Explorer Edition of Glass. The Explorer Edition was started by Google and marketed towards consumers, however it was later shutdown. In its place Google re-marketed Google Glasses specifically to Enterprise (Business applications and corporations).

about a year or two now, just before the COVID-19 pandemic started I bought a pair of Google Glass Enterprise Edition 2 (which I prefer writing as GGEE2 because it’s really long to pronounce and type out its full name)

I have been producing videos on my YouTube channel where I try guiding people on how to install how to install drivers for Google Glass, how to conect Google Glass to Wifi, how to update Google Glass, and then I’m planning on making other tutorials on programming for Google Glass, as well as demos for other Google Glass apps. I put together a playlist at the bottom of this page that should get anyone up to speed on the basics with using Google Glass.

Drones