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.

kbin.life

tal OP , (edited ) to linux in Running per-session programs in sway
@tal@lemmy.today avatar

I figured I’d also add a bit of text about why I’m using wl-paste and clipman above, for anyone interested in clipboard management.

So, the specific problem I’m trying to solve with this daemon: On Windows and (traditional, dunno if this has changed, decades out-of-date on MacOS) MacOS, the desktop environment maintains a persistent clipboard buffer. When you hit Control-C (or, on MacOS, Command-C), the program tells the OS to save a copy of the copied/cut content.

This is not actually what X11 or Wayland do. Neither X11 nor Wayland maintain a persistent clipboard. What they do is act as a broker between two X11 or Wayland programs. So, if you you launch Program A and select text (for PRIMARY) or hit Copy (for CLIPBOARD) and then in Program B, middle-click (for PRIMARY) or hit Paste (for CLIPBOARD), then Wayland tells Program B to go get data from Program A.

For X11, this was particularly important in that the system was designed to run on very low-resource thin terminals. That terminal may not have the ability to store a whole lot of clipboard data.

This becomes user-visible If someone closes Program A prior to pasting in Program B, because their content also disappears.

Some people found this obnoxious, and introduced a solution many years back, reusing an approach used by software on Windows and MacOS to solve a different issue.

On both Windows and MacOS, some people ran into the limitations of having a single clipboard. They didn’t want a “copy” to destroy whatever was already in their clipboard, wanted a history.

Some software packages dealt with this – I believe Microsoft Office was among these – by introducing its own “clipboard history”. Emacs has its own sophisticated system with a history, the kill-ring, that’s been extended in all kinds of exotic ways (e.g. to be a “kill-torus”). But while these mitigate the problem for a particular important program, these are not system-wide.

So what folks on MacOS and Windows did was introduce “clipboard managers”. The idea here is that you have a very small, simple program. It just sits and waits for the clipboard contents to change. When they do, it saves a copy. It typically saves some finite number of clipboard entries, and lets you go back in a time-ordered list and choose saved clipboard contents. Some provide more-sophisticated functionality, like searching through history. That’s nice if you just chose “copy” and realize that you just blew away some content that you’d copied. Based on a quick glance, neither MacOS nor Windows ships out-of-box with a clipboard manager in the base OS in 2024, but it’s a simple program to write, so people who want it don’t have trouble adding it on.

X11 has three clipboards (PRIMARY, SECONDARY, CLIPBOARD) and Wayland can do at least PRIMARY and CLIPBOARD, dunno about SECONDARY. That’s a bit more state that can be retained, but they aren’t really intended to provide a “history”.

Some people on X11 or Wayland also want that “clipboard manager” functionality. And a “clipboard manager” also has the nice side-benefit of providing clipboard persistence beyond the lifetime of the program from which you copied the data. You don’t have the “Program A was closed before pasting to Program B” issue, because what happens is that you copy in Program A, then the clipboard manager detects that the clipboard contents have changed and internally transfers the clipboard contents from Program A to its own memory, then announces that it has new clipboard contents, a copy of what was just stored, so when the user pastes in Program B, he’s actually asking the clipboard manager to send data to Program B. I don’t actually know how fast the clipboard managers detect new data in the clipboard – depending upon how the clipboard API works, I suppose that there might be a window for data loss, where someone copies in Program A and then immediately closes Program A – but it seems to work well-enough on a day-to-day basis.

This is particularly obnoxious for software packages like xsel on X11 and wl-clipboard on Wayland. They’re command-line programs that you can use to “copy” text. They need to provide the appearance to the user of looking like any other command-line program and exiting once they’ve run. But the X11 and Wayland protocols don’t permit for that – a program from which one is copying data has to stay alive long enough to send data to whatever program is requesting it. So xsel and wl-clipboard have to fork off a process to stay alive until the clipboard contents change, which is kind of a kludge.

I don’t personally need a clipboard manager. I don’t care about a clip history. I use emacs’ kill ring, but the overwhelming remainder of copy-pasting I do is very simple. And my experience has been that clipboard managers tend to come-and-go, and tend to be tied to a particular desktop environment or widget toolkit, and come with a bunch of library dependencies.

What I do want, though, is clip persistence past the lifetime of a given program. I don’t like having to think about whether a program is still running or not. I want the clipboard to act like my X11 server or or Wayland contains an independent clip buffer, and when I choose “copy”, it saves a copy to the thing.

The combination of clipman plus wl-paste --watch can be made to act as a very minimalist clipboard manager. It doesn’t use KDE or GNOME or GTK or Qt or anything like that. All it does is talk directly to Wayland. That fits my bill well. Note that it does store a copy of the clipboard on-disk, which some people may want (so that it lasts across sessions, which I don’t care about). That’s necessary because wl-paste doesn’t retain state and clipman doesn’t stay running. Some people may not like this in that they may not want clipboard contents sitting around on disk from session to session; stuff like passwords might be persisted there; just a heads-up. There are clipboard managers out there that won’t persist state to disk, if that’s a concern for anyone.

demoman , to asklemmy in What is an achievement in life that you're proud of?

In the past 365 days I have gained almost half a million views and more than 4000 new subscribers on youtube :)

wantedthefirstaccount OP ,

That’s cool. What the channel about?

gencha , to games in Does AAAA just mean awful triple A games now?

We need it for IPv6. Don’t hate

KomfortablesKissen ,

Mhh, DNSv6 (name doesn’t make sense but everyone still knows exactly what is said. Like “pointing toe”.)

jhoward , to showerthoughts in Vine/TikTok teaches us that anyone can be entertaining, if only for 6 seconds.
@jhoward@lemmy.sdf.org avatar

See, if anything, I think it demonstrates that most people are annoying… Even after just a few seconds.

richard3030 , to science_memes in Le p35

Is it French?

fossilesque OP ,
@fossilesque@mander.xyz avatar

Oui

AbouBenAdhem , to asklemmy in What duration of time do you connect to intellectual property?

Trademarks should be good as long as the company is in business.

Patents should be determined by weighing two factors: 1) how much sooner will the invention be produced than it would have been without the incentive of a patent, and how much will the public benefit from that earlier introduction; and 2) how much will the public be harmed by the monopoly resulting from the patent? The patent should then expire before the second factor outweighs the first.

Copyrights have been a scam since they were first introduced: the original intention (when printing was first introduced) was to police the printing of politically or morally objectionable works, but the authority appointed to do so abused the power to sell monopolies on printing specific works. Authors were originally opposed to this practice, and actually got it overturned for a time—the idea that copyrights are needed so publishers can compensate authors was a post-hoc justification publishers came up with to get authors to withdraw their objections. But it’s never been a good deal for the actual creators.

So copyright needs to be re-thought from the ground up—the amount of time that works remain under copyright is a secondary issue.

BitSound ,

I’d be fine with copyright going away altogether. People sometimes object to this on the grounds of “But Disney will just steal your ideas and make money off of them”. If their works don’t have copyright though, you can do the same right back to them.

This is also one reason that I appreciate generative AI. Short-term, yes it will help Disney and the like. Slightly longer-term, why would anyone give Disney money if you can generate your own Marvel movie yourself?

The genie also isn’t going back in the bottle. Copyright is a dead man walking. If you dislike what large companies like Disney are doing/going to do with generative AI, push for anyone training a model to be forced to let anyone whose work went into that model for free.

AbouBenAdhem ,

Yeah, “generating your own Marvel movie” was considered high art for most human cultures before copyright: from traditional epics to Greek dramas and even Shakespeare’s “serious” plays, audiences were already familiar with the characters and stories and valued the art of the re-telling. Novels (so-called because the characters and stories were “new”) were considered low-brow trash for people unfamiliar with the myths and stories that “real” literature was based on.

Now, that primal human urge to build on and re-tell familiar stories is relegated to unlicensed fan-fiction and to franchises like Marvel who only permit certain sanctioned creators to build on their “property”.

skillissuer , to science_memes in Hips Don't Lie
@skillissuer@discuss.tchncs.de avatar

yet another unrealistic body standard smh

Soup , to science_memes in Hips Don't Lie

According to Wikipedia that is because the bird-hipped ones looked like modern birds and the names came before we realized the error.

Hooray!

Zachariah ,
@Zachariah@lemmy.world avatar

The real facts are the ones we met along the comments.

snooggums ,
@snooggums@midwest.social avatar

Dinosaur translates to “terrible lizard” so retaining outdated terminology is on brand.

Viking_Hippie ,

To be fair, some of them were pretty damn terrible!

lugal ,

Was it before we know birds were related to dinosaurs at all? And while we’re at it: when did we find that out?

RandomStickman ,
@RandomStickman@fedia.io avatar

Quickly skimming Wikipedia Orthopoda (now synonymous to Ornithischia, bird hips) was coined in 1866. Birds from dinosaurs as an idea kinda gain traction during 1868. It was during 1870s when the famous full Archaeopteryx fossil was found is when it really get cemented. Missed it just by a few years.

BluJay320 , to lemmyshitpost in I was there to witness the apocalypse...
@BluJay320@lemmy.blahaj.zone avatar
Donjuanme , to science_memes in Dumb Animals

That’s cellular respiration! The mitochondria, THE POWERHOUSE OF ALL CELLS EVERYWHERE, does that one! It’s the one that keeps life living. 3 ADP -> 2 ATP iirc.

Krebs, Couldn’t live without it.

Lemminary ,

Glucose–not even once!

nooneescapesthelaw , to asklemmy in In your opinion how do countries get rid of "terrorists" either within our outside?

Declare them to be non terrorists, problem solved

Where no bell piece prize

propter_hog , to science_memes in Hips Don't Lie
@propter_hog@hexbear.net avatar

Why is it called bird hipped then? Why not like stegosaurus hipped or something?

Tolookah ,

Saving that change for a year when they don’t have any other text book updates

RandomStickman ,
@RandomStickman@fedia.io avatar

It was coined before the idea that birds evolved from (or are) dinosaurs are cemented

the_toast_is_gone , to linuxmemes in type the distro you use and is and let your keyboard finish it

Fedora on the other side of the world and the other day is a good time to go to the gym.

Drewfro66 , to science_memes in PhD Grads
@Drewfro66@lemmygrad.ml avatar

Don’t worry, you’re still serving an important role in the economy!

As part of the “reserve army of labor”, by your very existence you drive down the wages of other workers in your field, based on the threat that they could be replaced with you.

SnokenKeekaGuard OP , to lemmyshitpost in Nature is beautiful
@SnokenKeekaGuard@lemmy.dbzer0.com avatar

Turns out only Australians get austism, who woulda thunk

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