Diary of a Network Geek

The trials and tribulations of a Certified Novell Engineer who's been stranded in Houston, Texas.

7/24/2020

Programming Widgets

Filed under: Better Living Through Technology,Fun,Fun and Games,GUI Center,On Creativity,The Day Job — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waxing Gibbous

I’m anything but a professional programmer, but occasionally, I make stuff.

Sometimes, in my day job, I have to solve a particular problem and the only way I can manage that is via some small bit of programming. Usually, it’s just a little script of some kind; PowerShell or Perl, mostly. I taught myself Perl seventeen or eighteen years ago, in an attempt to stay busy at a job that severely underutilized my talents. Demonstrated, I think, by teaching myself Perl in my downtime. A lot of techs I knew would have just scrolled a news site or played solitaire or some other useless thing. I tried to expand my portfolio of skills. I learned a long time ago, though, that I need a project to guide my learning. It almost doesn’t matter what the project is, as long as it gives me problems to solve and obstacles to overcome. Solving those problems, with the new thing I want to learn, is what teaches me. Granted, I don’t always learn the best way to accomplish my task, or at least not the most commonly accepted way, but I still learn the skills involved in a way that embeds them pretty deeply.

Since I’m mostly self-taught in IT, which is my chosen professional field, I’ve had to find ways to keep learning on my own interesting. Having personal projects is one of them. So, projects are how I teach myself new things. As I work toward a larger goal, whatever that may be, I find problems and solutions to those problems and my knowledge extends into new areas. I did that with Perl a number of years ago. First I tried to teach myself Perl for extending MoveableType, the blogging software that I used to use before their licensing debacle. But, that was a bit too arcane and involved a place for me to start. So, several years later, I found some simpler scripts that did some language processing and were useful for another low-key hobby of mine; conlanging. (That’s constructed language making, for the less geeky.) And, so, I had a project to work with that was within my skill level. In the end, I made those scripts something that could run on a webpage and it drove massive traffic to my site. It was sweet! But, it crashed the server because it was so popular and it drove TOO much traffic to that site. Ultimately, I had to take them down. By then, though, not only had I learned Perl pretty well, but I had moved my blog to WordPress and started looking at this fancy new language for the web called “PHP”. That mostly ran in a way that didn’t put a strain on the servers, so it was better for high-traffic sites. The only problem was, I couldn’t move the functions from the Perl scripts to PHP easily. So, I started looking around for projects to teach myself PHP.

The project I found to let me dig into PHP was a random generator. No, not some random piece of electronic equipment, but a little web toy that randomly generated things. It’s pretty simple, really. You have something, like a title or a sentence that has variables, like nouns and adjectives, like Mad Libs. Those variables become, well, variables in the program. So, I just need to list a bunch of whatever that variable is into the program which randomly chooses those and fills them into the sentence or title and then gives me the result. Sounds simple, right? Okay, it kind of is, which is why I started with that. But, then I went about making it complicated. I added more variables and started reading them in from external sources and getting fancy with the output formatting. But, what it did was let me learn, bit by bit, PHP. You can see a bunch of those at my World Building page at Fantasist.net. When I got good enough at it, I dug back into WordPress and started looking at ways to use my new PHP skills to modify WordPress. What I came up with was the Dale Reckoning Calendar Plugin. For its time, it was pretty good. Now, I look at it and, well, I’m not quite embarrassed by it, but I’m not as proud of it as I was. It does work, but it requires the user to modify their theme and, essentially, become a bit of a coder themselves. That never sat well with me. And, I wanted to have something that would randomly, or semi-randomly, conjure up weather conditions for a particular day. Why? Because, if you’re gaming in a big campaign, things like weather start to matter a little. And, it was fun. It let me use old skills and old code and extend them to something new and stretch my learning even more. So, that’s why I kept coming back and eventually came up with the Forgotten Realms Weather Widget. It works better as a widget in the sidebar than as a daily update on posts. Though, I may still revisit the idea and see if I can’t improve my old plugin to not require the end-user to modify their theme to make it work. Again, for no real reason other than it’s fun to me and it would make my brain work more on something technical, which I’m already good at, but not for my day job. Mostly, though, because it would be fun to me. Oddly, it wouldn’t be fun if I had to do it for a paycheck. By the way, in moving some of the code from the old plugin to the new widget, I did find some ways to tighten the code a bit. I’d still be a little embarrassed to have a professional coder look too closely at it, but at least I’m improving.

And, I’ll keep working on it, though I’ll need to set some better boundaries so that I don’t get so obsessed that I miss much more sleep working on it. In any case, you can see the results for yourself at Forgotten Realms Weather Widget.
It’s free and only for WordPress and there may be bugs that I haven’t seen yet, so let me know if you use and find any. I can’t promise when I’ll fix them, but I promise that I’ll work on them.

This post originally appeared on Use Your Words!  And, that’s where you should leave any comments or bugs you might find.

7/17/2020

Still Time for a Course Correction

Filed under: GUI Center,Marginalia and Notes from the Editor,Personal Care — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waxing Gibbous

There’s still time to fix some mistakes.
Since the COVID-19 lockdown started, I put on at least fifteen pounds. Working from home, literally steps from my kitchen, combined with a little stress eating really did a number on me. Especially because I’ve crossed that magic metabolic barrier that means if I look at chocolate cake I instantly gain a pound, but taking that pound back off takes weeks. Middle age is hell, kids, and don’t let anyone tell you different. I often joke that I don’t know what I’m doing because I didn’t plan on living past forty. Not that I expect to die, necessarily, but I just didn’t make plans for being older than forty. I guess I thought I’d have my shit together by now. Turns out, not as much as I was hoping. Hence the weight gain. But, it’s still not too late. My wife and I started the “keto diet” about two weeks ago, and I’ve already lost four pounds. That means just eleven more until I’m back to my pre-COVID weight and thirty-six until I hit my goal weight. And, I’ve been rowing three times a week for twenty minutes at a time for a little over two months now. I can definitely feel the change. I might be anxious before my workout, but afterward, I’ve burned off that nervous energy and feel fine. It’s definitely helped my mental health, too. One thing we did was get a whipped cream maker, so that we can have real whipped cream. Turns out that you can have pretty much as much whipped cream as you want on the keto diet and I’ve been loving that.
I haven’t felt too inspired to write, though I have been keeping up with my morning writing exercises. Some days, though, it’s been dreadfully hard to focus enough to do those. I suppose that’s mostly the craziness in the world today. Between COVID-19 and the political upheaval, I just don’t have a lot of extra bandwidth to write. I did start working on teaching myself some PHP programming again, but I don’t count that as writing, per se. I’ve had bits and bobs of PHP code floating around for things and I’ve been meaning to make it into a WordPress plugin or a widget for some time. It’s going to be slow going, as the first two pages of “example code” for making a basic widget were just dead wrong or broken. Either way, having a goal to reach gives me a direction in my self-directed learning.
And, I suppose some of this wanting to be healthier and teach myself something new has to do with my father’s ninety-first birthday being this week. He celebrated by coming home from the hospital where he was treated for some heart issues. He’s doing fine now and getting some strength and energy back, but it was a closer call than I think anyone in the family, including my father or I, want to admit. So, I need to definitely get on track with my health, both physical and mental. There’s still time for me to course correct a little and learn from the mistakes that Dad made in not eating better sooner. I’ve said it before, but this is probably my last chance at staving off diabetes and I’ve seen first hand how challenging dealing with diabetes can be. But, hey, the great thing about the COVID-19 lockdown getting extended everywhere is that all that stuff we didn’t think we’d have time to do has just had their deadlines extended.

In any case, that’s all I’ve got for you this week. It’s not much, but, hey, it’s a post.
Hopefully, I’ll have more energy next week.

This post originally appeared on Use Your Words!  My other blog at JKHoffman.com

7/10/2020

COVID-19 and Mental Health

Filed under: About The Author,Deep Thoughts,Personal Care — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waxing Gibbous

Make no mistake, mental health has always been an important issue for me.

But, with the pandemic lockdown, as loose and unrestrictive as it has really been, I feel all kinds of anxiety and depression that I normally only have to deal with when I’m starting a new job or when I’ve been single during the holidays. I can get the blues like everyone else. Usually, it’s just short-lived and very transient, but that’s only because the circumstances that cause the issue are short-lived and transient, too. With COVID-19, no one knows how long things are going to be like this. It could literally be several years that we’re dealing with some of these issues, if not all of them. While I have faith that we’ll either come up with a vaccine or a treatment that greatly reduces symptoms and consequences, that may be months if not years away. We don’t know what kind of long-term effects contracting COVID-19 will have on people. And, to top it all off, there’s been another swine flu found in China that has the potential to sweep the world the same way this one has. I, for one, hope they can contain it until we at least have the chance to elect some different government officials. Maybe this time we’ll get some people in office who understand science and public health. (If you haven’t registered to vote yet, now is a great time. Just hit this link to Vote.gov and they’ll give you instructions. The country you save may be your own!) But, until then, we’re stuck. We don’t know how long this will go on. And, I have to admit, it’s been wearing on my mental health. I can only imagine what it’s been like for someone who’s already got clinical depression.

To be fair, I definitely feel better this morning than I have in a couple of days. And, you may have noticed that this will be the third week running that I’ve shared links about mental health and getting help. I’m doing that because I think it’s that important.
For me, I’ve been praying and doing formal, sitting meditation for years and that’s helping. My wife and I took beginning meditation classes at the Houston Zen Center a number of years ago, and I’ve sat for at least 20 minutes at least 5 days a week since then. It’s been helpful in ways that I have a hard time explaining to people. But, if you’ve ever been curious about what meditation practice is the Houston Zen center is a great resource. And, you can join in even if you’re not in Houston, since everything is pretty much remote only right now, via the Houston Zen Center Cloud Zendo.
I also find that trying to keep engaged in things that interest me has helped some. I’ve been writing Morning Pages for about two months now. That’s been helpful. It hasn’t kickstarted my fiction writing yet, but I hope it will help get me over that hump soon. And, I’ve decided to work on search engine optimization as well. I used to do that, for fun, with my older sites. In fact, for a while, Diary of a Network Geek was the number one hit on Google for the search term “network geek”. It’s not now, mainly because I stopped creating a steady stream of original content, but, also my success with those search terms made me a bit of a target. And, that’s okay. Honestly, it was a great indicator of how successful I was! I’m hoping I can recreate that success here. I’ll let you guess the search terms I’ll want to optimize for, though. And, I’ve added a tool to help me make pretty book reviews, too. I’ve always enjoyed reading, though I don’t seem to have the time and focus to read the way I used to when I was younger. Actually, ever since I had cancer back in 2007, I’ve felt like I wasn’t as sharp with reading as I used to be. In any case, I still enjoy it and enjoyed reviewing books, so I’ll start that again. I’ll mostly be reviewing fantasy and science fiction books, but there will be others, especially non-fiction on topics that interest me. I make no promises at how often those reviews will arrive, though.

So, in short, y’all watch out for your brains! Make your mental health a priority, especially now with all the crazy stressors of the dumpster fire that 2020 has become. If you have a spiritual practice, follow that and don’t give up on it. I truly believe that pursuing a more spiritual path is the only thing that’s kept me alive and kicking some times in the past 18 years or so. And, I think it will be what gets me through this COVID-19 craziness, too.

But, if you know someone who needs a little extra help with their mental health right now, don’t forget these resources:
MentalHealth.gov – Get Immediate Help

The National Alliance on Mental Health Helpline – 1-800-950-NAMI (6264)

The Substance Abuse and Mental Health Services Administration National Helpline – 1-800-622-HELP (4357)

National Suicide Prevention Lifeline – 1-800-273-8255

And, as I continually write here and elsewhere, please, remember, there’s no shame in getting help. In fact, getting help is what strong people do.
If you or a loved one needs help with depression or any other mental health issue, please, don’t wait until it’s too late.

This post originally appeared on Use Your Words, my newest blog and labor of love.

7/3/2020

A Little Less Bang

Filed under: Deep Thoughts,News and Current Events — Posted by the Network Geek during the Hour of the Hare which is in the early morning or 7:30 am for you boring, normal people.
The moon is Waxing Gibbous

Maybe this is a good year to skip fireworks.

The past couple of years, I’ve posted tips for photographing fireworks around this time of year. They’re popular and taking photos of them is just as popular. But, maybe this year, with tensions running so high and people under so much extra stress, maybe with all that, we could tone down the fireworks. I haven’t heard anything about public fireworks displays this year, but, considering the crowds, I would hope that most of them would be canceled this year. Unfortunately, that probably means that more private “displays” of fireworks will happen instead. Smaller gatherings of neighbors who buy fireworks from the roadside stands and light up the cul-de-sac with barely controlled, hand-lit explosives. In theory, they’re illegal in most good size cities and neighborhoods, but they’re such a tradition that they’re hard to stop entirely. I’ve already read stories that would seem to indicate these neighborhood fireworks have been on the rise since the COVID-19 lockdowns started. And, I’ve read complaints about them on local message boards, especially by dog owners whose dogs get so very worked up by the sudden and random noise. If you don’t care about how it gets the neighborhood dogs worked up, at least consider your neighbors that may have survived a mass shooting or served in the military and seen combat. I know several people who have been down range and had significant experience with high explosives that were definitely not fireworks. They all have post-traumatic stress disorder to some degree.
For many most, it’s not even diagnosed. It’s just something that happened and they have to live with it every day, but the government doesn’t give them much in the way of support. I know one person who qualifies as at least partially disabled due to his PTSD and he was actually given a diagnosis to qualify for aid. But, whether any of our honored veterans were diagnosed with any psychological issues as a result of their service and exposure to combat, I don’t know a single one that looks forward to holidays that include fireworks.
So, maybe, this year, we should consider those neighbors. We’re happy to politicize military service and our patriotism around how much we allegedly support the troops, but this is an actual thing we can do to help them in a real way. I know I’ve shot off my share of those supposedly harmless fireworks, too, but, as I got to know more guys who had served, I came to realize how hard it was on them. The random explosions and shooting lights are very much like small arms fire and the kinds of smaller devices that are used by insurgents in our more recent combat theaters and conflicts. It brings someone with PTSD right back to those battlefields and the incredible danger that they escaped physically, but can never escape mentally.

And, if you know someone who suffers from PTSD, or any other mental health issues, trauma related or not, don’t forget these resources:
MentalHealth.gov – Get Immediate Help

The National Alliance on Mental Health Helpline – 1-800-950-NAMI (6264)

The Substance Abuse and Mental Health Services Administration National Helpline – 1-800-622-HELP (4357)

National Suicide Prevention Lifeline – 1-800-273-8255

And, specifically for those struggling with Post Traumatic Stress Disorder, National Center for PTSD “Get Help in a Crisis” page.

And, as I wrote last week, please, remember, there’s no shame in getting help. In fact, getting help is what strong people actually do.
If you or a loved one needs help with depression or any other mental health issue, please, don’t wait until it’s too late.

This post originally appeared on Use Your Words!


Powered by WordPress
Any links to sites selling any reviewed item, including but not limited to Amazon, may be affiliate links which will pay me some tiny bit of money if used to purchase the item, but this site does no paid reviews and all opinions are my own.