Interesting Links for 16-05-2023
May. 16th, 2023 12:00 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
- 1. The racist history of the sex binary
- (tags:racism gender history transgender viaSwampers science )
- 2. Lib-Lab "Coalition of Chaos" seen as more stable than a Conservative majority
- (tags:politics UK libdem labour coalition )
- 3. I'm curious what makes Jeff Bezos' new yacht a yacht, rather than a schooner. Or a frigate.
- (tags:boats money )
- 4. Games developers say mandatory return-to-office policy has 'cost us some amazing people'
- (tags:office work games )
no subject
Date: 2023-05-16 11:02 am (UTC)Also, now I look more closely, yesterday's post doesn't number the links. Some kind of multifaceted confusion?
no subject
Date: 2023-05-16 11:20 am (UTC)The issue is that the timezone of the feeds server is wrong. And, I think, varying. I *was* applying a 4 hour timezone difference, as it was claiming to be in GMT while actually being in New York. It's now actually in GMT. But, I think, switched back to New York time a few days ago, before returing to actual GMT.
And when it goes wrong, I then run the day's post manually. And when I did that yesterday I forgot to include the "NumberEntries" parameter.
(You can see the line that's doing that work here: https://github.com/andrewducker/AzurePowershellLinkPoster/blob/master/PostLinks/PostLinks.ps1#L29 )
no subject
Date: 2023-05-16 11:23 am (UTC)I'm congenitally unable to read any text or code without also proofreading it, so have a bonus drive-by nitpick: "DeletetionTrigger" on line 72 looks like a typo.
no subject
Date: 2023-05-16 11:30 am (UTC)But yes, it is a spelling mistake, but it's mostly there because the line of hyphens tells Dreamwidth that the email footer is about to begin and therefore to chop off anything after that point. Vital when I was running the code manually from a corporate location, otherwise the post had a thirty line disclaimer on the end.
no subject
Date: 2023-05-16 12:18 pm (UTC)Sorry! I wasn't 100% sure whether there might be code elsewhere that recognised exactly that string and would need to be changed in sync, or some such.
no subject
Date: 2023-05-16 12:24 pm (UTC)And no other code depending on it - pretty much all of the code is in that one file. The rest is all the stuff that Azure requires in order to get a function running on a schedule.
no subject
Date: 2023-05-17 07:58 pm (UTC)no subject
Date: 2023-05-18 08:19 am (UTC)Most of the things I actually know about Powershell came from a book called "Learn Windows PowerShell 3 in a Month of Lunches" (Jeffrey Hicks). That's approaching PS almost exclusively from the angle of "look at all the things Powershell can talk directly to": it's not until chapter 21 (out of 28) that the author even starts talking about saving PS commands in a script file instead of just entering them at the interactive prompt, and even then, the first subheading stresses "Not programming, more like batch files". I think there's one full-length script in the whole book that shows an example of an actual program, with function definitions, try-catch blocks and a while loop. And that's in chapter 26 "Using someone else's script", and none of that stuff is even explained – that was the first hint in the whole book that exceptions are even a thing in Powershell. "Loop" and "exception" don't even appear in its index!
no subject
Date: 2023-05-19 09:51 am (UTC)no subject
Date: 2023-05-19 10:04 am (UTC)I presume there's some entirely different book out there which teaches the other half of the language!
no subject
Date: 2023-05-19 10:29 am (UTC)no subject
Date: 2023-05-25 06:29 pm (UTC)Yeah -- when I first learned Powershell, I was completely blown away by the idea of being able to actually program the shell, in a respectably real language.
Been many years since I've touched it (I generally use Ammonite these days, to do the same sorts of things in Scala), but at the time it was pretty amazing, and it really surprises me that so few people take real advantage of it.
no subject
Date: 2023-05-25 06:46 pm (UTC)