[-] bastion@feddit.nl 3 points 21 hours ago

Yeah. 'lib' isn't a standard Python library, it's the name of the abomination that this person created. Since python has quite a bit of useful introspection, they can do something like:

  • get the stack
  • find the exact call to abomination.add()
  • reparse the text of that line, turn the text of the comment into actual numbers, and add them

Now, I don't know if python keeps the comments around, so it may involve getting the filename and line number, reading the file, and manually extracting the comment text from that line.

[-] bastion@feddit.nl 1 points 1 day ago* (last edited 1 day ago)

capability is fine. Conflation is stupid. You can also use code to erase itself, but thinking that's a good idea is generally wrong. But to remove that, you also remove the general ability to erase files.

[-] bastion@feddit.nl 5 points 1 day ago

Sure, but let's just clarify that this is someone going out of their way to create this problem, using Python's ability to read it's own code.

Basically, you can load any text file, including a source code file, and do whatever you want with it.

So, a function can be written that finds out whatever's calling it, reads that file, parses the comments, and uses them as values. This can also be done with introspection, using the same mechanism that displays tracebacks.

[-] bastion@feddit.nl 6 points 4 days ago

Because they don't know what i put in there.

[-] bastion@feddit.nl 6 points 6 days ago

Cursed ring of acrobatics.

Gives the player great acrobatic skill, but sticks to their finger when they wear it. And they can't stop getting around acrobatically. Any action attempted fails, unless it is done acrobatically. Player has normal or only slightly improved stamina.

Player: i'll get my rope and grappleing hook and scale the wall.

DM: lifts eyebrow you think so, do you?

Player: sigh I throw my pack into the air and leap after it. At the peak of its arc, I flip over it, grabbing my grappling hook and flinging it over the wall as I do.

DM: ok, sounds like difficulty of 15..

[-] bastion@feddit.nl 72 points 3 weeks ago* (last edited 3 weeks ago)

He followed legal advice from lawyers and removed some russians from being kernel maintainers to comply with sanctions.

[-] bastion@feddit.nl 45 points 1 month ago

No. With the notable exception of rodents, animals generally can't detect oxygen deficiency directly (though they may get loopy).

Nitrogen asphyxiation basically makes you loopy, then unconscious, then dead. It's experientially equivalent to exposure to normal air at extremely high altitudes. Military pilots are often exposed to this (in a controlled manner) precisely because it's so hard to recognize, and doesn't induce fear. Like, epic levels of hard to recognize, as in "Hey Bob, it's time to put your mask back on to keep you from dying!" Bob: snickers and clearly thinks this is a great joke, until the person straps his mask back on, and he realizes how serious the situation is

You can make a trough for a (non-starved) pig that constantly releases nitrogen gas (which it breathes as it's eating). The pig puts his head in the trough to eat, then passes out from lack of oxygen (this pulling it's snout out of the trough), then is like "what was I doing? Oh look, food.." ..and goes right back to it, passing out again.

This is completely different from the reaction to carbon dioxide asphyxiation, which the body has sensors for, and induces all kinds of panic. Try the same trough experiment with a pig using carbon dioxide, and it will stay the fuck away from the evil trough of death.

[-] bastion@feddit.nl 78 points 2 months ago

I don't agree with unrealized gains taxes in general, but the instant they are used as collateral, or if value in any way is extracted from them (even loan value), they become realized gains, and should be taxed.

[-] bastion@feddit.nl 62 points 3 months ago* (last edited 3 months ago)

This. Well said.

Kent is reasonable, and sees Linus's need to keep order. I think he just pushes it sometimes, and doesn't understand how problematic that can be.

That said - he has resubmitted an amended version of the patch, that doesn't touch code outside of bcachefs, and is less than 1/3 the size.

[-] bastion@feddit.nl 52 points 3 months ago

He accepted Linus's needs as the project head to keep order. He resubmitted the patch set without the contentious parts. It's less than 1/3 the size and doesn't touch code outside of bcachefs. Problem solved.

Honestly, Kent seems pretty reasonable (though impassioned), and bcachefs well probably make it, and Kent will get used to just submitting things at the right time in the cycle.

110
submitted 3 months ago* (last edited 3 months ago) by bastion@feddit.nl to c/whatisthisthing@lemmy.world

This awful creature was, according to my partner, found under or black walnut tree, attached to or emerging from the neck of a very-recently killed bunny that the dog had (killed within the last ~15m). Any idea what it is? More pics available.

It's not smooth like a slug/leech, but has a textured surface. It looks like a grub, but what would a grub be doing attached to a bunny? It has an obvious mouth and anus. She described the mouth part as "hexagonal", which she saw open while it was alive, coming off of or out of the Bunny's neck (it was in or by by a wound it didn't necessarily inflict).

I think it's probably just congealed evil and should be thrown into a fire, along with everything it touched except the puppy, and that's how it's going to get me.

My opinion is obviously tongue-in-cheek, but what is this really?

[-] bastion@feddit.nl 72 points 4 months ago* (last edited 4 months ago)

Wokeness is not the issue with disco, et al. It's terrible writing, poor science even for soft sci fi, and too many cringey moments.

I get that some people love it. But the emotional resolution porn is, to me, just icky.

[-] bastion@feddit.nl 40 points 1 year ago

Yep. Investing should tie you to a stock for at least a year - as soon as you decide to sell, the one-year timer starts.

view more: next ›

bastion

joined 1 year ago