Diary of a Network Geek

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

10/9/2020

Office 365 Management via PowerShell

Filed under: Geek Work,GUI Center,MicroSoft,Never trust a Network Admin with a screwdriver,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 a Third Quarter Moon

Not quite DIY DevOps for Office 365, but a good start.

So, it’s been a while since I posted professional geek content on any of my blogs, so I figure I’m overdue. I’ve had a lot of titles over the years, but, at heart, I’ll always be a system administrator. Back in the olden days before any marketing genius came up with the idea of calling hosted services “the cloud” or calling system administration automated with scripts “DevOps”, guys like me were automating routine tasks. I’ve used everything from batch files to bash scripts to Perl, but, on Windows servers, I’ve learned to use PowerShell. It’s powerful and there are a lot of resources for the neophyte to learn, so I’ve applied myself to it to make my life easier.
For instance, I wrote a script that removes users that are disabled and haven’t logged on in more than 90 days, which I shared in a comment on r/PowerShell. Naturally, I started with someone else’s script and modified it for my own purposes, and added in the email feature from another script. Then, I added that to the scheduled processes to run once a month, just to keep Active Directory cleaner. The other day, I was on r/sysadmin and read about someone having a problem on Office 365 with stolen credentials. I hate to say it, but it’s becoming a more and more frequent issue with everyone working from home. The only way to fix it, really, is to get some kind of multi-factor authentication. But, in that thread, someone referenced a script from Microsoft’s GitHub repository for Office 365 scripts meant to quickly help remediate the breach and close the hole left by the compromised credentials. It’s pretty slick, though I think I’d modify it to accept a command-line variable with the username instead of coding that in, but it’s a pretty slick script that can mean the difference between a few spam emails and hundreds. Also, it automates a lot of the standard stuff we do by hand when a breach occurs.
If you’re a sysadmin, it’s definitely worth a look and the rest of that GitHub repository has scripts to do all kinds of things with Office 365 by way of PowerShell. It’s a great place to start building your own scripts and automating your workflow.

So, that’s my geeky PSA for the professional geeks among us.
Enjoy!

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 Crescent

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 Waning Crescent

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

5/17/2019

Quick Photoshop Tutorial

Filed under: Art,Fun,GUI Center,The Tools — 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

Selecting edges is hard!

As a professional computer geek and an amateur photographer, everyone expects me to to know Photoshop like a graphic designer. The truth is, though, I enjoy photography because it gets me out from behind the computer. I really spend more time making the photo in the camera than I do editing it afterwards. Oh, sure, I do pull all my images into Lightroom to clean up the exposure and colors a bit, but I rarely do more than that. Unless it’s a little cropping.
But, a couple of jobs ago, I did find myself doing a significant amount of editing for the company website. Usually, that meant cutting out some one of the company products and putting on a better background or no background at all. I hated it. I hated it because selecting fine edges was incredibly hard for me. It was super tedious and if I ever hit something like hair, well, let’s just say I was glad to be working in a mostly industrial environment.
Of course, the truth is that I wasn’t using all the selection tools to their greatest effect. If only I had been following PetaPixel back then, so that I could have possibly found their 1 minute tutorial on using Photoshop’s refine edge brush! Wow! What a huge help that would have been!
So, in the spirit of helping my fellow geeks, because who else would be reading this blog on a Friday, enjoy!
Seriously, it really is only a minute and it will help you tremendously with your selections in Photoshop. And, if you like that, there’s a whole Definitely worth checking out.

This post originally appeared on Use Your Words!

2/15/2019

A Change of Scenery

Filed under: Art,Better Living Through Technology,Fun,GUI Center,MicroSoft — 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

This time of year, a change of scenery is a good idea.

Even if you can’t afford to travel, because, let’s face it with rising costs and fewer raises, who can afford to travel much? Still, after being cooped up all Winter long, right about now, as things start to thaw out, I start to think about a different view than the same, grey city. I try to escape in a good book, but even the books I’m reading these days are a little grey and bleak. As a computer geek, that leaves me just a few options. The easiest is just changing my Windows desktop background.
Thankfully, in my old links, I found a desktop background changer that Lifehacker had recommended; Chameleon. You don’t need to install it. Just hit that link, download the 32-bit or 64-bit version and run it. Then, pop open the settings and choose your location and it will change your wallpaper based on your local weather conditions, or your battery life, or time of day or any of several more specific variables. Also, when you hit that link, be sure to grab the “wallpaper pack”. In fact, I recommend doing that no matter what. And, if you plan on using Chameleon, unzip them to a folder before you run the program. Then you can select the appropriate photos in the setup. It’s really pretty straight-forward. And, when you’re tired of it running, just close it. Nothing to uninstall or remove. Just exit the program.
Simple, free and a beautiful change of very local scenery that’s very welcome this time of year.
Enjoy!

This post originally appeared on Use Your Words.

8/31/2018

WiFi Analyzer

Filed under: Better Living Through Technology,Fun,Geek Work,GUI Center,MicroSoft,The Network Geek at Home — Posted by the Network Geek during the Hour of the Hare which is in the early morning or 7:05 am for you boring, normal people.
The moon is Waning Gibbous

Now, available for Windows!

I’ve actually been using this particular program on an Android tablet for quite a long time. Come to think of it, I started out using it on a rooted Barnes and Noble nook tablet close to ten years ago, then when I upgraded, just kept using it. Often, I’d pull out my tablet, especially when on the road, to find the strongest local wifi signal to see if I could join that network. When I was in San Francisco for WonderCon in 2010, I used it to discover that the fastest wireless internet connection I could find was the yoga studio next door to the little, boutique hotel I was staying in. I also used it to tell the hotel staff what to change their wifi channel to for better performance.
More recently, I used it in my own neighborhood to tune my home wifi to the best channel so we got a stronger signal and weren’t sharing the same frequency with all the neighbors. Sure, it may be a small improvement, but I think it’s significant enough to make a few minutes spent with a free app worthwhile.
In any case, I saw recently on Lifehacker, that there’s a free Windows version of WiFi Analyzer available now. You just need to follow the links and download it. I linked to the Lifehacker article, instead of directly, because they go a great job showing you why it’s a good thing to have and use. Also, I’m too lazy to write all that out again. So, go hit their site, give them advertising revenue, and enjoy!

3/12/2018

An OS Inside An OS

Filed under: About The Author,Better Living Through Technology,GUI Center,Linux,Never trust a Network Admin with a screwdriver,The Network Geek at Home,Things to Read — Posted by the Network Geek during the Hour of the Hare which is in the early morning or 7:55 am for you boring, normal people.
The moon is Waning Crescent

As you might have guessed from the title of this blog, I’m a geek. In fact, I’m actually a professional geek. Rumor has it, being a geek is cool now. I’ll get back to you on that.
In any case, one of the ways my geek has expressed itself is in early support for Linux.  I’ve used Linux, one way or another, for more than twenty years.  It’s hard to believe, but it’s true.  What’s more, I’ve been Linux certified for more than ten years!  Strange but true!  I don’t use Linux as my main operating system, though, because I live in the real world, not a Techno-Libertarian Utopia.  And, yes, that means, I use Windows.  At home, it’s Windows 10, because that’s what came installed on the laptops I got for my wife and I while I was a highly-paid contractor in 2016 and we were refreshing all our electronics.  But, much to my surprise, there’s a way to run both Windows and Linux, together on the same machine!  Without having a dual-boot system!  Thanks to an article from the Linux Journal, which almost went the way of the dinosaurs last year, I have activated Windows Subsystem for Linux, which is ONLY available on Windows 10, and then installed Ubuntu, which is free, from the Microsoft Store.  The little screen-shot at the top of this post is Ubuntu, running in its own, little window, on my Windows 10 laptop.

This is exciting!
Now, I can brush up my bash scripting by setting up a series of rsync jobs to keep my two Western Digital MyCloud drives in sync, essentially backing one up to the other.  From the literature, I had thought that was built into the models I got, but it wasn’t.  I tried to use SSH to get that setup directly on the MyCloud devices, since they’re running some limited *nix kernel, but something about the way they were configured made connecting one directly to the other and running rsync from working “as expected”.  This, though, should get me around all that.
Now, all I have to do sort out the syntax for properly mounting the Windows shares I’ve set up in the Ubuntu virtual machine app.  So, I’m not 100% there yet, but this is a great start!

 

8/12/2016

Aerial View

Filed under: Art,Fun,GUI Center,MicroSoft,Photography — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:00 am for you boring, normal people.
The moon is Waxing Gibbous

One more aerial view thing next week and I’ll have an actual theme for the month.

Once upon a time, I used to watch a lot of the food and restaurant related reality television that seemed to run on the more obscure cable channels. One of my favorites was Bar Rescue. And, one of the coolest things I saw them do was setup a kind of “virtual window” system in this one bar that had really uninspiring night views. Basically, they were huge monitors that looked like windows and would loop these gorgeous displays of apparently live views from around the world. I loved that! And, ever since, I’ve kind of been looking for a way to recreate it.

Well, I still haven’t found a way, really, but I think I do have a very nice substitute. A developer by the name of John Coates whipped up a cool screen saver for Apple TV called, Aerial, which he offered up for free on the open source source code sharing site GitHub. And, that would be spectacular, if I had an Apple TV, which I don’t. Luckily, thanks to Mr. Coates releasing this code under an open source license, another developer, Dmitry Sadakov, reworked the code into the Aerial for Windows screensaver. It’s awesome! Installation is a little hands-on and manual, but the link, which is also to GitHub, has both the download and installation instructions.

So, go, grab it and enjoy your weekend!

This post originally appeared at Use Your Words.

10/31/2014

Tools for NaNoWriMo

Filed under: Art,Fiction,Fun,GUI Center,NaNoWriMo — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:00 am for you boring, normal people.
The moon is a First Quarter Moon

I won’t be participating in NaNoWriMo this year, but if you are, here are some tools that might help those of you who are.

First of all, for those of you who don’t know, NaNoWriMo is National Novel Writing Month, which is, according to their website, “… a fun, seat-of-your-pants approach to creative writing. On November 1, participants begin working towards the goal of writing a 50,000-word novel by 11:59 PM on November 30.”  If you’ve never heard of it, and would like…
Read More

10/10/2014

Freebies for Friday

Filed under: Art,Fun,Fun Work,GUI Center — Posted by the Network Geek during the Hour of the Tiger which is terribly early in the morning or 5:32 am for you boring, normal people.
The moon is Waning Gibbous

Traditionally, I’ve tried to give you free stuff on Friday.
This week is no different.

But, I’ll be honest, it’s been a crazy week with budget planning and strategic planning for the next five years at work, so I haven’t really prepared anything special.  And, that means I’ll be digging into my collection of strange links for two totally random freebies for you to enjoy!

First, since I always fool around with designing websites, or at least talk about it a lot, I…
Read More

Next Page »

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.