@kogasa@programming.dev

This profile is from a federated server and may be incomplete. Browse more on the original instance.

kogasa,
@kogasa@programming.dev avatar

You can build a virtual machine in JavaScript and execute compiled code on it

kogasa,
@kogasa@programming.dev avatar

Oh yeah, you shouldn’t. But people do this for fingerprinting, bot detection, and other “adversarial” scenarios where you really don’t like the person executing your code. It’s somewhat plausible Google would use this technique to do something scummy like this (although that is not the case).

Relevant article and a great read: www.nullpt.rs/reverse-engineering-tiktok-vm-1

kogasa,
@kogasa@programming.dev avatar

Automata and formal languages were pretty much my entire “Theory of Computation” class. It’s what’s in Sipser.

kogasa,
@kogasa@programming.dev avatar

The assignment syntax is too close to comparison, which is what is more typical in that position. I would recommend


<span style="color:#323232;">const bool _isFeatureEnabled = false;
</span><span style="color:#323232;">if (_isFeatureEnabled &amp;&amp; ...)
</span>

if not a proper feature flag (or just remove the code).

kogasa,
@kogasa@programming.dev avatar

The client code can be modified depending on the request headers before being returned by the server

kogasa,
@kogasa@programming.dev avatar

Outdoors

kogasa,
@kogasa@programming.dev avatar

Wayland was barely competitive for a decade after that.

kogasa,
@kogasa@programming.dev avatar

It makes a HUGE difference in compile time. Which only matters if you’re building your own kernel anyway. It’s a solution for its own problem.

I think it’s a good learning experience though. There is genuinely a lot of stuff in there that you can easily, safely remove, and reading up on all the less obvious flags is fun.

kogasa,
@kogasa@programming.dev avatar

Swapping CPU manufacturers entirely? I’d just start my kernel config fresh. Pull up the old one next to a new (default ) one and go down line by line. Odds are there are at most a few flags that would need to be changed, but it’s a good chance to reevaluate your previous decisions too.

kogasa,
@kogasa@programming.dev avatar

This also works in a big flour tortilla. I usually skip the jelly though.

Google and major mobile carriers want Europe to regulate Apple's iMessage platform (www.engadget.com)

The long fight to make Apple’s iMessage compatible with all devices has raged with little to show for it. But Google (de facto leader of the charge) and other mobile operators are now leveraging the European Union’s Digital Market Act (DMA), according to the Financial Times. The law, which goes into effect in 2024, requires...

kogasa,
@kogasa@programming.dev avatar

RCS is not SMS and has nothing to do with the SMS standard.

kogasa,
@kogasa@programming.dev avatar

scan qr code

ERROR_SXIFKK_INV_MEM_0

troubleshooting link is just a jpg of a frowny face

kogasa,
@kogasa@programming.dev avatar

Reviewing PRs costs money/time

kogasa,
@kogasa@programming.dev avatar

That is not what that means

kogasa,
@kogasa@programming.dev avatar

I’m only a native English speaker, so guess I could be interpreting it wrong.

You should try being a native English reader.

What it means is “they will not be accepting pull requests at this time.” Whether or not they are open to changing this in the future is not specified. They have not specifically stated that this is off the table, nor have they stated this is their intent.

kogasa,
@kogasa@programming.dev avatar

No. They’re just not publicly saying it’s off the table. Whether they’re entertaining it internally is a totally different question.

kogasa,
@kogasa@programming.dev avatar

Okay? Is this supposed to change something?

kogasa,
@kogasa@programming.dev avatar

How does the opinion of your supposed internal contact at mozilla affect the basic English interpretation of the public announcement?

kogasa,
@kogasa@programming.dev avatar

You’re quite the lunatic. I’m obviously not defending GitHub PRs, or saying Mozilla should or should not use them. I said “we are not open to PRs at this time” is not the same as “we will be open to PRs in the future.” The truth of that statement has absolutely nothing to do with whether or not Mozilla is, in fact, open to using PRs in the future. But there’s no point in telling you that, because you’re clearly unhinged. Have a good life.

kogasa,
@kogasa@programming.dev avatar

Fair point. I would say on a personal level that GitHub actions is quite nice to use, especially with the marketplace. But I’d be surprised if switching version controls also entailed a CI/CD change for Mozilla, so I can’t think of a good reason.

kogasa,
@kogasa@programming.dev avatar

Eh? You can verify bit for bit that a digital transfer off an SSD was successful.

kogasa,
@kogasa@programming.dev avatar

And Star Trek and Star Wars and probably Galaxy Quest

kogasa,
@kogasa@programming.dev avatar

You can get a housing that lets you pop it in and out

kogasa,
@kogasa@programming.dev avatar

That has nothing to do with file transfer (“updating”), just long term storage. It’s also a solved problem. You can solve it at the software level with modern self-healing filesystems.

kogasa,
@kogasa@programming.dev avatar

You shouldn’t rename 2 at all. “Even” has a commonly understood meaning that is instantly recognizable from (variable %2) == 0. The bitmask is an overgeneralization.

kogasa,
@kogasa@programming.dev avatar

Extract an interface and let the consumer supply the implementation.

kogasa,
@kogasa@programming.dev avatar

IntelliJ IDEA isn’t really more generic than PyCharm. It’s a Java IDE built on the generic IntelliJ platform. You can load different language plugins in both.

kogasa,
@kogasa@programming.dev avatar

I mean IDEA has Java-specific stuff just like PyCharm has Python-specific stuff. As far as I understand, IDEA is just regarded as the default “catch-all” JetBrains IDE because it’s the oldest and most well-known, and probably most closely linked to the IntelliJ platform which spawned from it in the first place.

kogasa,
@kogasa@programming.dev avatar

I was quite surprised that they introduced a new scheduler and replaced CFS with it in the same step. I would have expected it to become available, then default, then replace CFS. But I guess this should be interpreted as indicating they have tested it extensively already, with very low chance of significant regressions.

kogasa,
@kogasa@programming.dev avatar

Never built Firefox from source but Chromium takes way longer than the kernel for me. Like half an hour on a 5800x3D. Bit much for nightly updates.

kogasa,
@kogasa@programming.dev avatar

200mg is about as much as a cup of coffee if you drink your coffee in a big mug, like many people do. Obviously not a “standard” 8oz cup (but who drinks 8oz cups of coffee?) But 4 of those is too much, even if you’re the kind of person for whom it’s tolerable.

kogasa,
@kogasa@programming.dev avatar

It’s not a lie. 30oz of the lemonade has as much caffeine as 30oz of their dark roast coffee. That’s a lot of coffee.

kogasa,
@kogasa@programming.dev avatar

It’s not flavorless, it’s bitter. You just can’t taste it over the pound of sugar.

kogasa,
@kogasa@programming.dev avatar

I take caffeine pills to regulate my dose (400mg / day, no more or less) and can’t take pills without chewing em. Pure caffeine tastes like giga-bitter dogshit. Nom nom.

kogasa,
@kogasa@programming.dev avatar

Coffee drinkers drink several times more caffeine on average than energy drink drinkers. A large coffee from Panera has over 400mg caffeine.

kogasa,
@kogasa@programming.dev avatar

“As much as our dark roast coffee” isn’t an absolute value, but I think there really should be a sticker saying “Warning: high caffeine content / approx (x mg small) (y mg med) (390mg large)”. This sticker should appear clearly next to the menu items as well as on the cups. Self-serve stations should probably be removed since kids are vastly more likely to drink a ton of lemonade compared to hot, black coffee.

I drank a few of these not sure if it was “as much as a regular coffee” or “as much as an equivalent size.” I didn’t think twice because I take a lot of caffeine anyway, but I shouldn’t have had to google it.

I can see how depending on the circumstances of obtaining the drink, one might not know there is caffeine in it at all:

  • ordering from a third party online app that doesn’t have all the right names, descriptions, and pictures
  • ordering through a third party proxy or having the item described to you by a third party (“anyone want anything? They have lemonade…”)

There really should be a clear notice right on the thing you’re about to drink from, of exactly how much caffeine is in it. No marketing crap (“it’s charged!”) or vague comparisons (“as much as our coffee”) suffices.

kogasa,
@kogasa@programming.dev avatar

It does have 390mg large on the machines, but it’s easy to miss. I do think it should be way bigger and have way more contrast, preferably a black/white standardized sticker. It doesn’t have the mg amount on the cups, or if it does, it’s really easy to miss.

kogasa,
@kogasa@programming.dev avatar

Per the sign: “30fl - 430cal - 390mg caffeine”

It does, and that is below the big ad-line about how it’s “as much caffeine as our Dark Roast Coffee”.

On the cups. The thing that people actually put up to their face and drink. There’s a billion reasons why you wouldn’t see the sign on the dispenser.

The real problem here is that they were REALLY pushing the caffeinated nature of the lemonade as a value-add, so it was (nearly?) impossible to miss.

It’s not even close to impossible to miss. It’s really quite easy.

kogasa,
@kogasa@programming.dev avatar

You mean the standard Panera cups that you use for everything from water to iced tea? Panera is self-serve.

Yes. These ones. The ones for the charged lemonade.

This really compares favorably to that because typically I get far less warning of an allergen in food than people get of beverages having a little caffeine in them.

This isn’t a little caffeine, this is an uncomfortable amount of caffeine for most people who aren’t regular coffee drinkers. Obviously a dangerous amount for people with heart conditions.

kogasa,
@kogasa@programming.dev avatar

The problem is that 400mg is not that much in the reality at the restaurant where it was purchased.

It’s literally up there with the most amount of caffeine you can get in one item from the restaurant.

Anyway, really boring argument.

kogasa,
@kogasa@programming.dev avatar

What is this article supposed to show?

kogasa,
@kogasa@programming.dev avatar

No, it wouldn’t, and the paper shows no such thing. Nightshade isn’t “Gaussian blur + sharpen.” It’s based on the use of a different diffusion model to perturb an image (with bounded difference in perceptual similarity) to minimize the distance of the embedding from that of an unrelated concept. It is mathematically optimized and highly specific to the prompt. The clever thing is that you don’t need access to the actual original text-to-image feature extractor because of the transferability between models, and the surprising thing is how few poisoned samples are required to break a model.

kogasa,
@kogasa@programming.dev avatar

Oh, blur+sharpen to mitigate Nightshade makes sense, yeah.

kogasa,
@kogasa@programming.dev avatar

“have to follow the standard for HTML”

Websites have historically been so godawful about complying with web standards that browsers had no choice but to support grossly non-standard code. Which then became standard. Now the vast majority of the web only works because of browser implementation details. So it’s Chromium and Gecko and nothing else ever again.

kogasa,
@kogasa@programming.dev avatar

In context, Microsoft has made it quite annoying over the years for users to keep using the browser they like. This is yet another nag in a long series.

kogasa,
@kogasa@programming.dev avatar

It’s based on Chromium.

kogasa,
@kogasa@programming.dev avatar

Well, there’s a bit of work to do. See Ungoogled Chromium for an example of a stripped-down Chromium.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines