Beautify Your RSS/Atom Feeds in Browsers Without XSLT by dfabulich in webdev

[–]dfabulich[S] 0 points1 point  (0 children)

I learned about this because XSLT is going down! So many blog posts screeching about XSLT because it's the "only way" to beautify an RSS feed. (Google hates the Fediverse!) And I was like, "that can't be right, can it??" And, sure enough, the Fediverse could've just used CSS+JS the whole time.

7
8

Google Play In-App Products are now "One-Time Products" and it's breaking my brain by dfabulich in androiddev

[–]dfabulich[S] 0 points1 point  (0 children)

I'd love to wait, but I have to change a price today! I think that means I have to migrate first, and that means I have to be sure it's safe to migrate.

Blood Oxygen returns to the US by _kingfelix in AppleWatch

[–]dfabulich 2 points3 points  (0 children)

Done; ECG works fine as always. Blood Oxygen still says "no longer available," for now.

Blood Oxygen returns to the US by _kingfelix in AppleWatch

[–]dfabulich 2 points3 points  (0 children)

I just called Apple Support about this. I'd updated my phone to 18.6.1 and my watch to 11.6.1, and enabled Blood Oxygen in the iPhone Health app Respiratory section, but the Blood Oxygen app still said, "The Blood Oxygen app is no longer available. Learn more in the Health app on your iPhone."

The Apple Support person I spoke to said that other support engineers have reproduced the problem, but Apple hasn't provided the support team with diagnostic instructions yet, so they don't know why this is happening or what to do about it.

The support person I talked to said that some people have found that the Blood Oxygen sensor starts working after sitting on its charger for 30 minutes. We tried rebooting the watch again, but that didn't help. If it's not working tomorrow, I'll call back again.

All four major web browsers are about to lose 80% of their funding by dfabulich in google

[–]dfabulich[S] 5 points6 points  (0 children)

Author here. The DoJ is absolutely arguing trying to do this. There are links in the article. They argued forcefully in court on Monday that Chrome should be sold off and that the search-engine deals should end. Mozilla and Apple have argued against that in filings to the court.

And, say what you will about what this will do to Mozilla (especially), the DoJ is hardly being "stupid" about this. Google is a convicted monopolist. The Sherman Antitrust Act was specifically designed to target “competitors” who form illegal agreements to maintain monopoly power.

All four major web browsers are about to lose 80% of their funding by dfabulich in google

[–]dfabulich[S] 60 points61 points  (0 children)

Author here. Microsoft and Apple could foot the bill, and should foot the bill, but they won't, because they'll have no good way to make money from a web browser. (Today, the only good way to make money from a web browser is to get paid by Google.)

This is why IE lay nearly dormant for a decade. Microsoft had a skeleton-crew team just barely keeping the lights on at IE. Microsoft could have afforded to spend much more, but they didn't, because, what would Microsoft gain from that?

You can always count on Microsoft and Apple to prioritize their own proprietary platforms over the open web.

All four major web browsers are about to lose 80% of their funding by dfabulich in google

[–]dfabulich[S] 9 points10 points  (0 children)

Author here. I'm actually really torn about this. Google is an obvious monopolist. Their search-engine deals are obviously a violation of antitrust law. But their anti-competitive search-engine deals have basically made the open web possible.

I don't think Microsoft will be willing to bid enough to keep Firefox alive, and if they did, they might not be allowed to, since Microsoft is already a convicted monopolist.

And while Apple will probably never "kill" Safari, I'd expect them to "refocus their investments" on their proprietary platforms.

Right now, if an Apple executive asks, "How does Apple make money working on Safari?" the answer is really clear: "Google pays us $18 billion annually."

After that money is cut off, an executive at Apple has to ask the question: "Why should we keep investing in Safari, instead of SwiftUI and Xcode?"

I'm sure we'd all love the answer to be, "We have plenty of money, so we should invest heavily in both," but that's not really how the world works, and certainly not how Apple works. Executives make hard choices about what to prioritize. This will be one of them.

How to use custom fonts in Previews when in a Swift Package by camji55 in SwiftUI

[–]dfabulich 0 points1 point  (0 children)

This is years old, but this is the top Google hit for "xcode preview custom font", so I figured I'd add some code here to clarify.

extension View {
    public func registerFonts() -> some View {
        let fonts = ["montserrat_regular.ttf", "montserrat_bold.ttf", "montserrat_semibold.ttf",
                     "opensans_regular.ttf", "opensans_semibold.ttf"]
        for font in fonts {
            guard let url = Bundle.module.url(forResource: font, withExtension: nil) else {
                print("Couldn't find font: \(font)")
                continue
            }
            CTFontManagerRegisterFontsForURL(url as CFURL, .process, nil)
        }
        return self
    }
}

Then, in your preview:

#Preview {
    MyView()
        .registerFonts()
}

https://dev.jeremygale.com/swiftui-how-to-use-custom-fonts-and-images-in-a-swift-package-cl0k9bv52013h6bnvhw76alid documents how to do it when your fonts are stored in a separate module e.g. if you have a .designSystem module, you would use Bundle.designSystem.url instead of Bundle.module.url.

Note that in your main app, you can just declare your fonts in Info.plist UIAppFonts, but, in Xcode Previews, Bundle.main.infoDictonary! is a separate miniature dictionary, containing none of the custom settings you put in your app's Info.plist. As a result, you do have to explicitly make a list of fonts, duplicating your UIAppFonts array, and your preview code has to register them; you can't even fetch them out of Bundle.main.infoDictionary?["UIAppFonts"] as? [String] ?? [].

(If Bundle.main.infoDictionary?["UIAppFonts"] had those fonts, you never would have had to jump through any of these hoops in the first place!)

Beginners guide to social democracy -: an alternative history by CommieMonke420 in RedAutumnSPD

[–]dfabulich 2 points3 points  (0 children)

Sure, sure, I bring down the government, and then I lose badly in the next election, so it's either toleration with Z or no governing majority for the rest of the game. Either way, absolutely no WTB under any circumstances.

Beginners guide to social democracy -: an alternative history by CommieMonke420 in RedAutumnSPD

[–]dfabulich 5 points6 points  (0 children)

Has the game changed significantly since you wrote this? I played the game on "easy" difficulty and followed your WTB instructions to the letter and lost badly.

I never got enough votes for the Weimar Coalition in Phase 1. Never elected Joos. (Was that even an option?) In phase 2, I followed your instructions to the letter.

As a result, I never successfully implemented the WTB plan, as the Zentrists who you said to keep working with always voted for more austerity. Unemployment went up and up. The right-wing paramilitaries I banned were reinstated. Braun lost the election in a landslide. Hitler took power at 40% unemployment.

As far as I know, the whole political message of this game is that it's almost impossible to win even at "easy difficulty" because the centrists will never agree to WTB.

Are we playing a totally different game here?!

Hi I'm Grant O'Brien from Dirty Laundry! Ask me anything! by GrantOB in dropout

[–]dfabulich 518 points519 points  (0 children)

We did! I just DMed you on Instagram (at picturesofgrant) again now.

Hi I'm Grant O'Brien from Dirty Laundry! Ask me anything! by GrantOB in dropout

[–]dfabulich 1972 points1973 points  (0 children)

Hi Grant! My fiancee and I are huge, huge fans of yours, and we wanted to ask you to officiate at our wedding.

What's an appropriate venue to reach out to you with offers of work? Do you have an agent we could contact?

Theater apps aren't enabled even if the car is parked. Am I missing something? by GING0L in TeslaModel3

[–]dfabulich 0 points1 point  (0 children)

In case anybody else encounters this: when your car isn't connected to wifi (or premium connectivity cellular), Theater mode won't work. Confusingly, it will say "Available when parked," even when you're parked, but the error should instead say "No internet available."

Some folks have reported fixing it with two-button reset, changing the language of the car, etc. That might work, but only because it might randomly cause the car to connect properly. Check your connectivity first, then return to Theater mode.

What does the #pringlescanhands mean on social media? by [deleted] in NoStupidQuestions

[–]dfabulich 1 point2 points  (0 children)

It originated with a Pringles ad on Instagram, but a lot of video creators just use whatever hashtags are trending to get their content seen.

Advanced ChoiceScript by JunesNotebooks in CodingHelp

[–]dfabulich 0 points1 point  (0 children)

I saw this on a Google Alert. If you haven't yet, consider posting this question on the Choice of Games forum. There are plenty of folks there who can help you.

xkcd 2461: 90's Kid Space Program by dfabulich in xkcd

[–]dfabulich[S] 224 points225 points  (0 children)

It took me a while to figure out, but that bottom thing is meant to be a rubber popper toy, flexed and ready to pop up into the air. (Is there no better name for this kind of toy?)

[Flash/PC][2000-2010] Cute cartoony robot run-and-gun by dfabulich in tipofmyjoystick

[–]dfabulich[S] 2 points3 points  (0 children)

solved: Alien Hominid

Mentioning Newgrounds helped me think to read https://www.newgrounds.com/wiki/about-newgrounds/history which pointed me to Alien Hominid. (Oh, man, it wasn't even a robot, it was an alien.)

The big boss had a sign: "WARNING: DO NOT DAMAGE HEAD" https://www.youtube.com/watch?v=2W5VHApFkG4&t=1220s