[-] onlinepersona@programming.dev 2 points 3 hours ago

Get fucked, suck.

[-] onlinepersona@programming.dev 5 points 4 hours ago

It's not called "correct" coding for a reason.

That's why people are wrong so often: they feel like something is right, but don't check. That's how you get anti -vaxxers, manospere people, MAGA, QAnon, Brexit, etc.

[-] onlinepersona@programming.dev 1 points 18 hours ago

CSS is terrible, no doubt about it, but the problem is exactly that: native GUI frameworks haven't changed in the way they work. Why else do you think electron became popular? Obviously there was reason for it

[-] onlinepersona@programming.dev 5 points 23 hours ago

Let's be honest, it's the easiest. I've been trying to write UIs in pure rust and python recently and let me tell you, it's a drag.

Some frameworks don't even support writing your own components, some don't allow reusing parts of the UI, some don't even have proper layout engines you can modify, theming can be difficult, others dont have reactive values, most don't have a fast dev loop (make a change, see it, repeat), and so on. I've even tried using game engines like Godot and Bevy.

We like complaining about Electron, but let's be serious, as bad as it is, the other stuff is worse.

[-] onlinepersona@programming.dev 11 points 1 day ago

If the rich keep taking and not giving, it's bound to happen.

Looks like we have to delay the year of the linux desktop another year, until france is done.

[-] onlinepersona@programming.dev 29 points 1 day ago

Someone shoots a CEO, another sets a warehouse on fire due to low wages, this dude sets fire to a gate of a billionaire... What will the next thing be?

It could've been a random list of accounts with similar passwords

Yes, the companies that kowtow to the pedophile with the finger over the red button are upset about child protection.

3rd hint: their passwords are...

[-] onlinepersona@programming.dev 35 points 2 days ago

I am that niche! Me, all alone 🦄

[-] onlinepersona@programming.dev 17 points 2 days ago

Hello @eff@mastodon.social 👋

4

People's websites get pummeled by LLM companies scraping the web. I bet they don't use nor scrape I2P though. Would using eepsites be a remedy?

44

And that without calling in twice. Laptop cameras as normally very crap. They say "1080p", but most of the time they are 720p or less and have maybe 2 megapixels or less. Phones have way more and can be connected to the laptop via USB. There must be a way to use their camera over USB, right?

I know of USB over LAN, so surely this is possible.

18

Can't wait for the virus that uses this to replace a windows install with a Linux install that's riced to look like windows. Will the normies even notice?

273

Why aren't people moving away from Github? There's Codeberg, Gitlab, and radicle. What's holding them back?

364
submitted 1 month ago* (last edited 1 month ago) by onlinepersona@programming.dev to c/pcgaming@lemmy.ca

To make it clear to those who are misunderstanding: that's a list of companies that host matrix for you. They do it at a good price.

If you and your friends chip, it'll be a few bucks a pop per month to have your own private server with voice chat rooms and video chat rooms.

It's all opensource and contributes to the ecosystem. Best of all, no age verification because the data is yours.

8

This is a question regarding the frontend framework Slint

Let's take a web frontend framework as an example like React, Vue, Svelte, and so on. They allow you create components with their own distinct logic and expose an interface with which parents or siblings can react.

(I don't actually write Vue, this is just an example from memory)

<script>
let status = ref("Unknown");
async function onClick(){
  let result = await fetch("https://somewhere.org/");
  status.value = result.json()?status;
  emit("status", status);
}
</script>
<template>
<button @onClick="onClick">Check status</button>
<p>{{ status}}</p>
</template>

How can this be achieved in slint + another language (cpp, python, rust, ...)?

Say, I'm writing a desktop application and have a window, with a 3 column layout, and somewhere deep in the component tree, I have a StatusButton. This button, upon clicking is supposed to execute an IO call in my language of choice and its parent component should react to that. For the sake of the example, make it an HTTP network request that calls a server, expects a JSON with a status field.

How do I create the StatusButton component and use it in slint?

For what it's worth, I use rust, but whichever language the solution is presented in, it can probably be adapted to work in rust.

What I've found (that doesn't work)

slint::slint!( some slint in here ) in rust. This just moves the .slint file into rust but I haven't found out how to use the new component in a .slint file or in another slint::slint!(...) macro

The examples seem to suggest that any non-slint actions have to be passed all the way up to the main component / app window (see example)

Maybe @slint@fosstodon.org can help?

5

I was hoping for thousands of responses. The EU Commission better not dismiss it all.

20

I just ran into the wonderful error message

the trait is not dyn compatible because method publish_video is async

and boy, what a rabbit hole. I found out about async_trait which resolves this by turning async methods into fn method() -> Pin<Box<dyn Future + Send + 'async_trait>>, but I thought that's what the async fn was syntax sugar for??? Then I ran into this member-only medium post claiming

Rust Async Traits: What Finally Works Now

Async functions in traits shipped. Here’s what that means for your service interfaces.

But I clicked through every rust release since 1.75.0 where impl AsyncTrait was shipped and couldn't find a mention of async. Now I'm just confused (and still using async_trait). Hence the question above...

3

Isn't a "click" just physically making two connectors touch so that a circuit is made to send the signal of an action? There doesn't have to be any noise associated does there?

For example, if we used 2 springs, one to hold up the button and another to make the contact with the circuit, the click would be silent. Or maybe something already exists that I can swap out into my mouse?

-6
submitted 3 months ago* (last edited 3 months ago) by onlinepersona@programming.dev to c/security@programming.dev

I stumbled upon this video and it's mostly about using AI to fight against scammers and hackers that use AI themselves.

Hidden inside Romania is a real cyber-crime-fighting team almost no one knows about: the Draco team. These are elite malware analysts, forensics experts, and penetration testers who volunteer to hunt down cybercriminals. In this video, we go behind the scenes with Bitdefender to uncover how the Draco team helped dismantle massive ransomware groups like GandCrab and REvil, saving victims over $1 billion. We also talk about deepfakes, voice-cloning scams, and multi-platform attack chains in the next era of cybercrime.

27

cross-posted from: https://programming.dev/post/43351044

https://media.ccc.de/ is the publication website for the Chaos Computer Club, the largest hacking collective in the world based in Germany.

GrayJay is an application to consume media from anywhere a plugin has been written for (Youtube, Peertube, SoundCloud, TED Talks, BitChute, BillBilli, ...). Think yt-dlp with a frontend and subscription features.

Installation

Add a new source and use the URL of the JSON manifest on radicle

https://seed.radicle.garden/raw/rad%3AzWzu5sgdan7wuErGDRz1u4JTFEF7/head/MediaCCCConfig.json

18
view more: next ›

onlinepersona

0 post score
0 comment score
joined 2 years ago
MODERATOR OF