RIP Get-EventLog

Nov. 15th, 2025 07:37 pm
mellowtigger: (penguin coder)
[personal profile] mellowtigger

Today at work, I wanted/needed a faster way to collect particular events in the Microsoft Windows event logs. I had the obvious way to collect them from the gui, but I needed something better. I decided to try powershell.

Click to read the powershell code and follow the small adventure...

I had no idea beforehand that the log source name in the gui is different from the one accessed by powershell. It took some googling to figure out the right mix of parameters and clauses, but it worked. Sort of. Here's the code I came up with:

Get-EventLog -LogName System -Source Microsoft-Windows-Kernel-General -After (Get-Date).AddDays(-10) | Where-Object { $_.EventID -eq 1 -and $_.CategoryNumber -eq 5 } | Out-GridView

It definitely found the appropriate events from the log. It did not, however, provide the appropriate message about the reason for the log entry. Instead of the rational reason that the gui showed me, this script was telling me:

Possible detection of CVE: 2025-11-15T20:31:07.5402125Z
This Event is generated when an attempt to exploit a known vulnerability (2025-11-15T20:31:07.5402125Z) is detected.

Whoa. That sounds bad/dangerous. After digging into other properties of the software object I was given, I finally noticed the purple note in the official Microsoft documentation that this command has been deprecated! Argh! I was probably getting CVE-similarity notices because I was still using this deprecated 32-bit command.

I switched to the new powershell command, and it again took me a while and several consultations with Google to hammer out the new (and actually better) command:

Get-WinEvent -FilterHashTable @{ProviderName='Microsoft-Windows-Kernel-General'; Id=1; StartTime = (Get-Date).AddDays(-10)} | Where-Object { $_.Message -match 'Change Reason:.*time zone.*' } | Select-Object TimeCreated, Message | Out-GridView

Note to self: In order to get the html <pre> text formatted correctly in this post, so long text wraps to a new line, I had to create the tags like this:

<pre style="white-space: pre-wrap;"</pre>

Finally! This new powershell command shows the correct reason for the log entry and the directory path to the program that produced it. That's exactly what I needed. Yay, although I'm clearly out of practice with powershell. After collecting data, I opened a ticket to have our next tier of IT take a look at my computer and find why this particular event keeps showing up. Something is changing my timezone (to the wrong timezone) throughout the day, even after I manually change it back to the correct timezone.

done!

Nov. 14th, 2025 09:50 am
mellowtigger: (food)
[personal profile] mellowtigger

It is done. Yay!

They found one large polyp. I'm not worried, because all previous intestinal polyps tested fine afterward. I've been doing GI exams since my 30s, thanks to a decade of diarrhea back then. That long problem was cured thanks to a last-minute choice from a doctor to give me metronidazole before another GI exam. I still celebrate metronidazole day occasionally: 2024, 2022, 2013, and the original prescription date of 2012.

I'm back home thanks to a former landlord (I don't think he's on Dreamwidth?) picking me up at the hospital entrance to drive me home. I've already started eating my usual first post-exam meal of Greek yogurt with dry oats. If that sits well for the next hour or two, then I'll expand to the usual range of stuff. :)

I got about 2 hours of sleep last night, having taken the magnesium citrate at 12:30am for the 6:30am arrival time. Food first, I think, then sleep.

GI exam prep

Nov. 12th, 2025 02:26 pm
mellowtigger: (coprolite)
[personal profile] mellowtigger

I've lost count of how many times that I've needed to go to the restroom today. I don't even start the chemical preparations until tomorrow. This is just my second day of So Very Much Water with low fiber diet.

Yesterday, on the first day of this regimen, I got through work and ended the shift needing bathroom breaks every 30 minutes. I'm short on sleep now, after needing to get up 4 times last night too. Today, I worked 1.5 hours before giving up. The bathroom recurrence time shrank from 30 minutes to 20 minutes, then 15 minutes. I gave up after 1.5 hours, and I just called it a sick day and logged off.

I'm eating even less today while still drinking So Very Much Water. I switched from pants to robe, making those bathroom trips even easier. *laugh* I do my final cleanse routine on Thursday evening. I show up at 6:30am on Friday morning for the GI exam.

As usual, I'll be glad to eat regular food again as soon as it's done. And stop drinking so much water.

aurora

Nov. 11th, 2025 07:51 pm
mellowtigger: (astronomy)
[personal profile] mellowtigger

Hey, Minneapolis. Go outside tonight. Actually, nearly everyone should give it a try. The spaceweather forecast was for this storm to produce aurora to latitudes down to Minneapolis, but there are reports of people catching photos of it all the way down to Texas.

Open up your smartphone camera in night vision mode. Look everywhere. Look northeast, look overhead, look southeast.

There's beautiful aurora everywhere!

red, green, and even orange aurora in north Minneapolis, 2025 November 11

Is that even a narrow band of orange that I see between the green and red areas? That's just amazing.

I scared a rabbit at my front doorstep when I walked outside to take this photo. It scared me right back when it darted away.

a brief medical update

Nov. 7th, 2025 06:47 pm
mellowtigger: (old)
[personal profile] mellowtigger

I'm supposed to get a long overdue gastrointestinal (GI) exam on Friday morning next week in the wee early hours, before dawn. I already bought all of the things I need for the "cleansing" beforehand, except for the magnesium citrate solution. There wasn't any at the Cub (grocery) pharmacy. There wasn't any available online at CVS or Walgreens. I called this morning to ask the GI team at the hospital what I should do. They said they would send a prescription order for it to the Cub pharmacy. I said that it wasn't on the shelf, because I already was there physically and looked. Apparently these days, pharmacies keep magnesium citrate in stock behind the counter. Sure enough, I picked up the prescribed solution at the grocery this afternoon. The pharmacy even handed it to me "at no cost". That's right, zero.

I have no idea what's going on with that zero cost. Even my monthly blood pressure medication cost $0.16 at the counter, definitely but barely above zero. I even asked the lady at the checkout counter for my groceries, showing her my bottle with the prescription label on it. "They said it was zero cost?" "Yes, that's what they said." "Then it really is. I don't need to ring it up."

Does anyone know if magnesium citrate is an ingredient in some kind of unhealthy or illegal street recipe for some other drug? Why would nobody have stock for it, but it's still available by prescription, when it's clearly a non-prescription product?

Entirely separately, while checking online to find the GI team's phone number to ask about the missing magnesium citrate, I found that I had a bill for my sleep study a few weeks ago. That bill amounts to $2,013.00.

*cough*

My parents left a nice gift check for me during their visit, so I don't have to dip into my savings to cover the cost, but it's certainly a lot more than I was expecting to pay. And I still have the GI exam in a few days. And I still need to get my dental guard replaced, which is a custom fit thing.

At some point, USA costs become so prohibitive that medical tourism becomes a necessity. Take an airplane to a clinic in another country, get the work done, and immediately fly back. Still cheaper than healthcare in the USA.

November special election

Nov. 7th, 2025 07:30 am
jss: (sixties)
[personal profile] jss
This past Tuesday was a special election for a county-wide school millage. As usual I worked as a chair for Ann Arbor at the Senior Center (ward 3 precinct 24), though by now we were the sole precinct there. I had six workers (one of whom I'd worked with before and one of whom was working their first election ever), which was more than enough people.

We started slow with 11 voters in our first hour, but then picked up to a pretty consistent 14–15 voters per hour until 4pm, where we picked up speed. Our last five hours were our busiest and the 6–7pm hour the busiest of them all. We eventually averaged about 22 voters per hour on the day:
Time8am9am10am11am12n1pm2pm3pm4pm5pm6pm7pm8pm
Total (Ξ£)112941566985104118140169211243275
Delta (𝚫)11181215131619142229423232
Rate (∫) 11151414141415151617202122
We were finished in-precinct by 8:35pm β€” in large part due to it being a one-box ballot and thus the reports printed quickly β€”Β and headed off to City Hall because the Election Headquarters building was being renovated. (Seriously, the landlord or property manager couldn't've waited to kick us out until Wednesday? They had to do it Monday night after the chairs picked up our notebooks and laptops?) We were the 6th precincts to report in. We had a brief wait to turn in our ballots, laptop, and zippered notebook, then a moderate wait to get our reports printed, then a brief wait for a receiving board to open up to process our paperwork. We finished up at HQ around 9:15pm and I was home by 9:30pm.

The biggest problem of the day was construction-related traffic on Washtenaw Ave. They closed one of two lanes eastbound just past the Y-intersection at Stadium. The backup was bad enough at my 11am lunch trip that I eschewed going out for my 4pm dinner and instead had Domino's deliver a pizza and salad. (Even then, with them coming from State and Packard, the 4:00–4:15pm scheduled delivery didn't get there until 4:27pm.) I scarfed down most of the pizza for dinner and had the rest as a snack once I got home and had the salad with dinner on Wednesday.

(Incidentally, back on August 5 we had an election and as usual I worked as a chair for Ann Arbor at the Senior Center (3–24). I never wrote it up but I did save the hourly stats:
Time8am9am10am11am12n1pm2pm3pm4pm5pm6pm7pm8pm
Total (Ξ£)11415267871001201421711207248300353
Delta (𝚫)11302215201320222936415253
Rate (∫) 11201716171617171920222522
I had four workers, one of whom I'd worked with before. From what I recall we were something like the 12th or 13th precinct reporting into Election HQ at the end of the evening and I was almost certainly home by 10:30pm.)
mellowtigger: (coprolite)
[personal profile] mellowtigger

As always for Moody Monday, there are so many topics but so little time.

1) I'm glad I brought the two historians to your attention a few days ago. Their most recent video is a real gem, with several moments of memorable quotes.

2) The money crisis, with so very many Americans ("richest country on the planet") unable to afford food, is a lot even to try to comprehend.

3) The one single issue I want to explore more thoroughly, though, is a problem demonstrating itself here in Minnesota. I offer anti-capitalism rants occasionally, and here's another one. As many people have said before, "private equity ruins everything it touches".

Minnesota Rusco is the company that I used, once in 2019 and again in 2024, to install new windows in my century-old home. This company was in operation since 1955 (famous locally for this musical jingle in their television advertisements), but they closed suddenly in 2025 a few days ago. Even people in the company didn't know it was going to happen. This YouTube video, from roofers here in the Twin Cities, describes the situation from a local industry perspective. As this news page from University of Minnesota explains, they were bought out from the former owners in 2022, sold to Renovo Home Partners in Dallas TX... which itself became owned in 2024 by BlackRock TCP Capital Corp of New York.

Yes, that BlackRock. It sure seems like all of those companies with the "BlackRock" name are in a financially incestuous relationship with each other, everything some subsidiary of the original, with this story getting into tedious details of the financial dealings of the company. BlackRock is also now a majority owner of a power company here in Minnesota. Our legislature approved that sale, as if nothing could go wrong with that arrangement. Ugh.

You already know how opposed I am to the concept of making wealth the point of living. With everything else going sour in the USA, we still idly watch as capitalists extend control into every part of daily life, from home repairs to power infrastructure. I really need to buy solar panels. Between Trump tariffs driving up costs of Minnesota electricity to whatever capitalists are about to do to force additional scarcity (which drives up value for investors), I just need my own independent power source. I feel like we can't have a nice society, because we bow to the gods of wealth.

my vote card for Minneapolis 2025

Nov. 2nd, 2025 06:51 pm
mellowtigger: (vote)
[personal profile] mellowtigger

The one downside to instant-runoff voting is that you need to identify 3 candidates that you want to give your vote, instead of just 1. It takes longer to make such a list. On the plus side, though, it seems to mean a lot more choices for political offices, since everyone has a better chance at gaining attention. Sample ballots for your street address are always available at this Minnesota Secretary Of State website.

Click to read about some Minneapolis candidates and my choices...

There are a lot of new political parties represented in the Mayor's race, for instance. Some are serious candidacies, while some... are not.

  • For example, peruse this expletive-laden page from the Momunist candidate.
  • I do appreciate the cleverness behind the Nobody's Party candidate ("Red and Blue don't care about you, but everybody knows that Nobody cares!", "Antifa", and "Burn flags not books!"), but I need a page that describes an actual policy platform rather than just slogans.
  • That same lack-of-specifics applies to the Socialist Workers Party candidate, even though I'm normally in favor of anti-capitalism slogans.
  • I also give a warm shout-out to the Protecting Tomorrow's Dreams candidate. They have not only a Babylon 5 reference in their website name, but they're the only candidate of the whole lot that I saw advocate for flattening the pay scale in city government. Kudos. As I've said a few times before about Minnesota politics, "That's my kind of crazy." If I had 4 slots to vote, you'd definitely get that final slot.

In making my decisions, I did appreciate this list of endorsements from a progressive PAC. I started there, to make sure I still liked the candidates they recommended. There are still a lot of offices and candidates, though, so next I relied on these review pages from the reputable Naomi Kritzer. Each race is hyperlinked to a detailed review of candidates, although the mayoral race focused only on the "likely" candidates.

I don't mind writing up my choices here, so I have it handy for use on Tuesday.

  • Mayor: 1) Davis, 2) Hampton, and 3) Fateh
    I originally planned to put Fauki in the 3rd slot, but Naomi's review of Fateh's controversies convinced me to accept Fateh as the last choice on my list.
  • Ward 5: 1) Burnett, 2) Young, 3) none of the others.
    I really wanted to give Ward a second chance, but my thoughts twist into knots trying to justify such a choice to the victims from 15 years ago. I'm willing to give taxpayer money to people trying to turn their lives around, but I'm less willing to give them authority over other people's lives. I'm leaving this 3rd slot blank instead.
  • Board of Estimate and Taxation: 1) Bernstein, and 2) Brandt (incumbent).
  • Park and Recreation Commissioner At Large: 1) Schneider (endorsed by both Green party and DSA!), 2) Olsen (incumbent), and 3) Wilson (also DSA and even Stonewall endorsed!).
  • Park and Recreation Commissioner District 2: 1) Rucker (unopposed).

So, for an "off year", it's still a busy list of people that voters need to sort through. I'm ready for Tuesday!

Page generated Nov. 16th, 2025 08:07 am
Powered by Dreamwidth Studios