RSSAmplifier

Blog

Put the knife down and take a green herb, dude.

One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

myfreakinname.blogspot.comRSS feed ↗25 posts

Latest posts

To batch rename git branches in cmd.exe

Note to self: for /f "tokens=*" %i in ('git branch --format="%(refname:short)" ^| findstr /C:"feature/"') do @echo git branch -m "%i" "old/%i" Then remove @echo to make it "really happen". (That adds old/ to the front of anything that starts with feature/ .)

The first hit of AI is always free. The second, however...

Claude Sonnet 4.6 is so much better than GPT-5 mini that I figured I'd look up how much it'd cost to swap. Right now, for $10 a month, GitHub Copilot will let you use GPT-5 mini forever, no limit. Sonnet, however, was sucking down my monthly allocation of "premium requests" so fast (it's the end of the month, so I usually splurge on the model) I was scared to look at what it'd cost. Well be even…

Git: Looking for filenames by wildcard

Note to self: To look through your git history to find files by name (and to have the files edited in each commit listed)... git log --all --name-only -- "**/*Base*" Though note that it's case sensitive , and not because I used a capital B. It's always case sensitive. Looks like there are weird workaround depending on your git version, like not including a glob for filename and piping EVERYTHING…

You built StackOverflow for free. Are you going to give away its replacement?

From github.com : Important update On April 24 we'll start using GitHub Copilot interaction data for AI model training unless you opt out. Review this update and manage your preferences in your GitHub account settings . This is an exceptionally important announcement, though it's one I've been predicting for a while. StackOverflow is dead, and the bots sucked up all of its knowledge, and GitHub…

Learning the history of text editing in the console, the hard way

Okay, I hit a rabbithole today. I'm not saying it's not fun, but probably not my smartest use of time. Long story shorter than I want, I find myself googling "SSMS equivalent on macOS" fairly often, meaning [Microsoft] SQL Server Management Studio, the Windows-specific tool you use not simply to manage SQL Servers via a GUI, but to throw raw T-SQL at it and view the results. It's barely changed…

The belated announcement of the death of StackOverflow and the retroactive obviousness of LLMs

I mean, I already knew (if only based on the hard flattening of my own reputation graph) that StackOverlow was dead, but sheesh. Today I learned... Prompt: how to mark xunit test as do not run but still allow test to be debugged xUnit v3 introduces an [Explicit] property on the [Fact] and [Theory] attributes specifically for this purpose. Explicit tests are not run by default unless specifically…

Got $100? I've got a career for you...

It's neat that you can program logic on most any computer that boots nowadays. Maybe not crazy UI libraries, but wrap properly factored middleware logic in a console interface or just write some unit tests and you can get a lot done without much compute at all. What's important in a working laptop? I used to look for stuff like replaceable batteries, but with USB-C power packs, that's not an issue…

Why isn't it rude to look at your smartwatch?

Okay, if you're Gen X or older, you grew up with watches to tell time. And not just tell time, but to keep your time. You were just as (more?) likely to hear, in the 70s and 80s, someone ask, "What time do you have?" than "What time is it?" because everyone acknowledged that, unless you had the Naval Observatory clock on the phone, that you could be a few minutes off. During a meeting, you could…

A trivial sign AI is making progress

Was writing an email to a buddy who likes sports, and mentioned that I know someone who lives in DC. The balance of the email was about the Football Team, but then I wrote... [Friend X is in DC], so it was hard to resist getting season tickets again. Might succumb to the temptation next year. We've gone to a few Nats games, but wow, another embarrassingly bad season of DC And then the textbox on…

Shaking off the WCF rust in 2025

Okay, was looking back through WCF earlier this week for a prospective client, and figured I'd leave some notes. Here's the stock code, give or take: public interface IService { [OperationContract] string GetData(int value); // ... } public class Service : IService { public string GetData(int value) { return string.Format("You entered: {0}", value); } // ... } And all that's in Service.svc is <%@…

VB.NET, HttpClient, Newtonsoft, and Async

Looking into updating a slew of VB.NET API to C# for a client, and figured I should brush off my VB.NET before getting too serious. And I figured that means I should make a console app, connect to a sample API URI at JsonPlaceholder , grab a collection of entities, serialize them, loop through, and access something on each individual entity instance. That's half (or more) of what any API does,…

Minimal Example to Read CheckoutSession Info from Stripe Payment Links with .NET

Note to self: It's pretty easy to get a Stripe CheckoutSession in .NET. I talked about writing a Chrome extension and integrating payment through Stripe a few months ago. Unfortunately the "what appears to be an amazingly well-written howto" wasn't, quite. So here's a quick bit of play with the Stripe API using .NET. This looks up information according to a "Checkout Session" id, which is what…

Declarative vs. Imperative Programing: A Mnemonic

Sometimes, I surprise myself : @Cthutu I wish " It's like the difference of [declaring] an address vs [commanding ] directions. The address is useful no matter you are. Whereas directions are invalid if you start somewhere else, " was the selected answer all by itself. ;^)

Forced Reset Triggers

I'd missed the whole Forced Reset Trigger debate over the last year or so, but caught an article about it in The Post Sunday and figured I'd see what it's about. Here's what I learned, executive summary style. The trigger makes things faster for an novice to intermediate shooter once they get the hang of it, but it does require getting the hang of it. The mechanism seems vaguely similar to a bump…

Cybersecurity: Always a house of cards

From Hacker News' Malicious npm Packages Infect 3,200+ Cursor Users With Backdoor, Steal Credentials : Cybersecurity researchers have flagged three malicious npm packages that are designed to target the Apple macOS version of Cursor, a popular artificial intelligence (AI)-powered source code editor. "Disguised as developer tools offering 'the cheapest Cursor API,' these packages steal user…

Beautiful html coverage reports in C# with Cobertura

Coverage reports in C# with Cobertura In the last contract I completed, we were building WebAPI microservices in C#, and part of our build process was to run all of our XUnit (and, depending on who originally wrote the microservice, maybe NUnit) tests and use SonarCloud to produce a pretty amazingly specific coverage report that highlighted every source file's test status, line-by-line. I've got a…

Apple&#39;s payment changes are a bigger deal than I thought

From "Amazon now has a ‘Get book’ button in its iOS Kindle app" on theverge.com : Apple has appealed the decision, but is also complying with it in the interim, prompting several companies to announce app updates making it easier for users to pay for subscriptions and services. That now includes Amazon’s iOS Kindle app. Contrary to prior limitations, there is now a prominent orange “Get book”…

Carriers can slam-install apps on your Android phone?!!

If you needed an excuse to get on your Apple high horse, I got a new one yesterday. My super old Android phone -- used essentially only when running for... reasons, mostly Pokemon Go reasons -- popped to its last page of apps after I unlocked it today just long enough to show three new apps there before it snapped back to the first page. Real useful ones like Slotomania and some tiles game. I…

Does your cat know regex?

Okay, hopefully you're not letting your cat do this, but that's funny . Any time I use regex, I worry that I shouldn't. It's good, I think, for very targeted uses, and there is a wide swath of support through multiple tools, like XUnit's Assert.Match that I'm using now, but, um, there's also the fairly famous XKCD comic about them ...

Apple Watches with LTE might be able to call 911 without a subscription

If you believe a post on reddit titled, "UPDATE: Apple Watch Series 3 LTE *CAN* Call Emergency Services without an associated phone plan" , you can call 911 with a cellular/LTE powered Apple Watch even without having an active service subscription for cell service. But you might have to wait a while for the call to go through. At first, the behavior seemed the same - it hangs on the "Emergency…

Writing a Chrome Extension (devtools, action or `document` types, and payment collection)

Okay, let's write a Chrome extension. I've done this before, but couldn't really remember how, and since "manifest version 3" for Chrome extensions is some sort of big deal that changes all the rules, I might as well start over. Google does have a "Hello World" tutorial here , but it's important to note that the "Hello, World" extension is what at least this answer at SO calls a popup extension .…

HomePod, Siri, and Music Store Songs: A Perfect Disaster

I purchase music outright because I'm old. I often buy from what at least used to be called the iTunes Music Store. The biggest advantage for me for doing so over, say, buying from Amazon or directly from the artist's site (which I often do, or buy from Bandcamp if available), is that Apple Music will stream those songs for me even if I didn't download them locally, so they're accessible any time…

Unexpected failure? InvalidOperationException.

From stackoverflow.com : Taken from MSDN's page on InvalidOperationException: "InvalidOperationException is used in cases when the failure to invoke a method is caused by reasons other than invalid arguments." – STW Commented Apr 21, 2009 at 19:44 I often forget what the "right" exception is to throw when it's not an argument issue -- and linters are getting better at reminding me not to be lazy…

Using Home Depot dowels to finish Ikea furniture

TL;DR -- If you Ikea stiffed you some 101350 fluted dowels, you can buy 5/16" dowels from Home Depot , 50 for under $4. Depending on the precise usage, however, you may have to cut them down. One of the funniest things about Ikea is that they're scamming all sorts of bougie yuppies to save Ikea the cost of actually assembling furniture. Don't get me wrong: They're maestros at making it so most…

1001 Nights of the " Reflex-Nikkor 500mm F8"

From the Nikkor - The Thousand and One Nights Collection 's 13th night (ostensibly about the <New> Reflex-Nikkor 500mm F8, which I may have recently purchased on eBay) at Nikon.com: We used to call Mr. TSUNASHIMA with affinity and respect "Boss, TSUNASHIMA". Certainly, he was a big-brother type person and took thought for younger men. His dynamic manner did not limit to work-related things. Mr.…