There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

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

m_f ,

Somewhere smaller than a tiger, that would win 100% of the time. I’d guess 30 lbs is where things start to get serious

m_f ,

I just had a POS machine recommend 20%, 25%, or 30% for percentages. It seems like it’s increasing

m_f ,

There’s at least one example you can look at, the Jenkins CI project had code like that (if (name.startsWith(“windows 9”)) {):

issues.jenkins.io/secure/…/PlatformDetail

Microsoft, for all their faults, do (or at least did) take backwards compatibility very seriously, and the option of “just make devs fix it” would never fly. Here’s a story about how they added special code to Windows 95 to make SimCity’s broken code work on it:

Windows 95? No problem. Nice new 32 bit API, but it still ran old 16 bit software perfectly. Microsoft obsessed about this, spending a big chunk of change testing every old program they could find with Windows 95. Jon Ross, who wrote the original version of SimCity for Windows 3.x, told me that he accidentally left a bug in SimCity where he read memory that he had just freed. Yep. It worked fine on Windows 3.x, because the memory never went anywhere. Here’s the amazing part: On beta versions of Windows 95, SimCity wasn’t working in testing. Microsoft tracked down the bug and added specific code to Windows 95 that looks for SimCity. If it finds SimCity running, it runs the memory allocator in a special mode that doesn’t free memory right away. That’s the kind of obsession with backward compatibility that made people willing to upgrade to Windows 95.

m_f ,

In case anyone hasn’t seen it yet:

neal.fun/infinite-craft/

It’s pretty fun. Similar to OP, I was able to get all the way to crafting specific Mario Kart DS courses.

m_f , (edited )

The collect’s in the middle aren’t necessary, neither is splitting by ": ". Here’s a simpler version


<span style="font-weight:bold;color:#a71d5d;">fn </span><span style="font-weight:bold;color:#795da3;">main</span><span style="color:#323232;">() {
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> text </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#183691;">"seeds: 79 14 55 13</span><span style="color:#0086b3;">n</span><span style="color:#183691;">whatever"</span><span style="color:#323232;">;
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> seeds: Vec<</span><span style="font-weight:bold;color:#a71d5d;">_</span><span style="color:#323232;">> </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> text
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">lines</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">next</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">unwrap</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">split_whitespace</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">skip</span><span style="color:#323232;">(</span><span style="color:#0086b3;">1</span><span style="color:#323232;">)
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">map</span><span style="color:#323232;">(|x| x.parse::<</span><span style="font-weight:bold;color:#a71d5d;">u32</span><span style="color:#323232;">>().</span><span style="color:#62a35c;">unwrap</span><span style="color:#323232;">())
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">collect</span><span style="color:#323232;">();
</span><span style="color:#323232;">    println!(</span><span style="color:#183691;">"seeds: </span><span style="color:#0086b3;">{:?}</span><span style="color:#183691;">"</span><span style="color:#323232;">, seeds);
</span><span style="color:#323232;">}
</span>

It is simpler to bang out a [int(num) for num in text.splitlines()[0].split(’ ')[1:]] in Python, but that just shows the happy path with no error handling, and does a bunch of allocations that the Rust version doesn’t. You can also get slightly fancier in the Rust version by collecting into a Result for more succinct error handling if you’d like.

EDIT: Here’s also a version using anyhow for error handling, and the aforementioned Result collecting:


<span style="font-weight:bold;color:#a71d5d;">use </span><span style="color:#323232;">anyhow::{anyhow, </span><span style="color:#0086b3;">Result</span><span style="color:#323232;">};
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">fn </span><span style="font-weight:bold;color:#795da3;">main</span><span style="color:#323232;">() -> Result<()> {
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> text </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#183691;">"seeds: 79 14 55 13</span><span style="color:#0086b3;">n</span><span style="color:#183691;">whatever"</span><span style="color:#323232;">;
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">let</span><span style="color:#323232;"> seeds: Vec<</span><span style="font-weight:bold;color:#a71d5d;">u32</span><span style="color:#323232;">> </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> text
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">lines</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">next</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">ok_or</span><span style="color:#323232;">(anyhow!(</span><span style="color:#183691;">"No first line!"</span><span style="color:#323232;">))</span><span style="font-weight:bold;color:#a71d5d;">?
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">split_whitespace</span><span style="color:#323232;">()
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">skip</span><span style="color:#323232;">(</span><span style="color:#0086b3;">1</span><span style="color:#323232;">)
</span><span style="color:#323232;">        .</span><span style="color:#62a35c;">map</span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">str</span><span style="color:#323232;">::parse)
</span><span style="color:#323232;">        .collect::<Result<</span><span style="font-weight:bold;color:#a71d5d;">_</span><span style="color:#323232;">, </span><span style="font-weight:bold;color:#a71d5d;">_</span><span style="color:#323232;">>>()</span><span style="font-weight:bold;color:#a71d5d;">?</span><span style="color:#323232;">;
</span><span style="color:#323232;">    println!(</span><span style="color:#183691;">"seeds: </span><span style="color:#0086b3;">{:?}</span><span style="color:#183691;">"</span><span style="color:#323232;">, seeds);
</span><span style="color:#323232;">    </span><span style="color:#0086b3;">Ok</span><span style="color:#323232;">(())
</span><span style="color:#323232;">}
</span>
m_f ,

Because there were not enough justices for a quorum—the court needs at least six and only Justices Elena Kagan, Sonia Sotomayor and Ketanji Brown Jackson remained—the court affirmed the judgment of a lower court to dismiss the lawsuit.

Clever. Appearing to do the right thing at face value coincides nicely with getting the case against you dropped. It’s likely impossible to sue a majority of the Supreme Court if they don’t care to be sued.

m_f ,

Sure, but do you think if the lower court decided that the case could move forward, the justices would’ve sat out? I doubt it.

m_f ,

I find it pretty amazing how someone figured out how to make cassava edible. It’s got enough cyanide to kill you unless it goes through some complex process of mashing and boiling. Who thought to themselves “this killed Greg, but maybe it’ll be delicious if I boil it for a little longer”?

m_f ,

The ideal solution is not a Netflix monopoly, it’s one where content providers must pick a single price, and any streaming service can pay that price and provide access to the content. That way you can pay for only Netflix, but get access to everything. Netflix wouldn’t end up with a monopoly though, because anybody else could offer a better service and people could switch to it and not lose access to anything.

This is unlikely to happen anytime soon due to the intentional clusterfuck of laws like copyright, but it would solve the problem neatly.

m_f ,

Undoubtedly. It’s getting harder to tell, though.

I hate how everything requires you to download a shitty proprietary data harvesting app nowadays when everything can be done just fine without an app.

I have recently started a new position and am required to use an app that has three Facebook trackers, one of them being a Facebook location tracker according to Exodus App Privacy in order to get your food when it would literally work perfectly fine ordering to a real cashier or shit even a website rather than having to...

m_f ,

Good, that’s the only way people like that will change

m_f ,

For anyone else wondering, this is a medal given to the Chernobyl liquidators

I hate it that I miss all interesting low volume communities posts

I wish Lemmy had the Mastodon functionality to create your own lists of communities. I subscribe to a ton of communities and I have a couple of them which are very low volume but I’m very interested in seeing each and every post there. Right now I have to remember them and go to them specifically once every couple of days to...

m_f ,

Which communities are so high volume? I sort by new and don’t have any issues reading every single post from my subscriptions

m_f ,

Everything’s visible for HTTP, and in fact some ISPs inject their own ads into HTTP content. HTTPS is harder for malicious actors, but your ISP can tell when you’re visiting pornhub.com, and will happily provide that to the government. With encrypted SNI it’s somewhat harder, but if you’re visiting an IP address of 1.2.3.4, and that IP address is solely used by pornhub.com, it’s not hard to guess what you’re up to.

m_f ,

If a VPN is big enough, you can’t really do that sort of correlation due to the level of traffic involved. I guess that would work for visitors to woman-inflates-a-balloon-and-sits-on-it-and-pops-…, but wouldn’t work at all for google.com

m_f ,

VPNs are great for avoiding the nastygrams that your ISP forwards to you from media companies. They get sent to some company that doesn’t care about US laws instead, and probably laughed at before being deleted

m_f ,

Not everything is. HTTP and unencrypted SNI are still around.

Linux 6.6 To Better Protect Against The Illicit Behavior Of NVIDIA's Proprietary Driver (www.phoronix.com)

Luis Chamberlain sent out the modules changes today for the Linux 6.6 merge window. Most notable with the modules update is a change that better builds up the defenses against NVIDIA’s proprietary kernel driver from using GPL-only symbols. Or in other words, bits that only true open-source drivers should be utilizing and not...

m_f ,

Get pissed at NVIDIA. They’re the problem.

m_f ,

Ignoring the downvotes, what do you mean? I can’t parse what you’re trying to say. Is it a joke of some sort?

m_f ,

To be pedantic, all of the parts were written to be unisex

The crew is unisex and all parts are interchangeable for men or women.

m_f ,

They used to care quite a bit. Now they don’t. The Windows UI designers are all now using macbooks and don’t dogfood the UI they’re building, and it doesn’t really matter anyways because Windows isn’t the big untouchable moneymaker it once was.

m_f ,

That’s 👏 what 👏 CI 👏 is 👏 for

Warn in dev, enforce stuff like this in CI and block PRs that don’t pass. Go is just being silly here, which is not surprising given that Rob Pike said

Syntax highlighting is juvenile. When I was a child, I was taught arithmetic using colored rods. I grew up and today I use monochromatic numerals.

The Go developers need to get over themselves.

m_f ,

It’s not a half-arsed copy, it’s borrowing a limited subset of HKT for a language with very different goals. Haskell can afford a lot of luxuries that Rust can’t.

m_f ,

You probably wouldn’t be committing this, unless you’re backing up a heavily WIP branch. The issue is that if you’re developing locally and need to make a temporary change, you might comment something out, which then requires commenting another now-unused variable, which then requires commenting out yet another variable, and so on. Go isn’t helping you here, it’s wasting your time for no good reason. Just emit a warning and allow CI to be configured to reject warnings.

m_f ,

Cool, does that mean I can join the X-Men with my mutant power of milk-drinking?

m_f ,

That’s a big-ass sword. 7 or 8 feet tall?

m_f ,

Are there any good services like bandcamp, but for video? Even if it doesn’t have blockbuster/popular movies I’d be interested. I spend a lot of money on bandcamp because it’s easy and simple: I give them money and in return get bits that I do what I want with.

m_f ,

Thanks! That’s the sort of thing I’m looking for

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines