Spyke

Posts

technology·Technologybycatch22

Thoughts on the solid project decentralized initiative?

I hadn't heard of this before, but thought it looked interesting, I was wondering if anyone else had seen it or had thoughts about it? It was initially envisioned by Sir Tim Berners-Lee who created the WWW in 1989 and "urges a decentralized web to counter AI exploitation and ad-driven abuse"

More info here about Bernes-Lee's thoughts:

https://www.techspot.com/news/109661-tim-breners-lee-urges-decentralized-web-counter-ai.html

From the website:

Imagine having your own online storage, which you control. You store information once and decide who can access what, when you need services like mortgage applications or medical care.

This is what Solid can do. It’s a bit like carrying all your data in a rucksack (backpack) with lots of pockets. To access the data, different apps can only open the pocket you allow them to open, rather than taking the whole rucksack. The rest stays private.

Solid lets people take control of their data and combine it to achieve new results. It gives creators new collaborative tools while passing power back to users. It’s technology that returns the web to its original vision of serving people.

Thoughts on the solid project decentralized initiative?https://solidproject.org/Open linkView original on programming.dev
35
scifi·Sci-Fibycatch22

The Scientist Who Keeps Science Fiction Real

As an executive producer on SyFy’s The Expanse, Naren Shankar helps to steer the spaceship Rocinante through the asteroid belt and beyond, a sci-fi journey that began, for him, in real laboratories. He’s been writing TV for nearly three decades — he began on Star Trek: The Next Generation in 1992 — but before that, he was studying at Cornell University in the School of Applied and Engineering Physics.

Older article but still interesting..

The Scientist Who Keeps Science Fiction Realhttps://www.inverse.com/article/29766-the-expanse-naren-shankar-star-trek-the-next-generation-syfyOpen linkView original on programming.dev
19
electricvehicles·Electric Vehiclesbycatch22

Kirsten Dirksen - Tetris founder's family village is collapse-proof, remote offgrid-topia

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

Thought this was interesting. A little gaming history intermixed with EVs, Off grid living, Hydrogen and a bunch of other things.

High in the hills of Hawaii’s Big Island, Henk Rogers—best known for bringing Tetris to the world—is taking on a new kind of challenge: building a fully off-grid life. On his 32-acre Pu‛uwa‛awa‛a Ranch, he’s growing his own food, producing his own energy, and working to protect Hawaii’s future.

View original on programming.dev
17
rust·Rustbycatch22

Inferred types for function calls?

Hello, I'm fairly new to Rust and came across this. Can someone explain to me how the following example is able to infer the constant value from the array length passed in? At this point, inferred type generation for function calls are a bit hand wavy, to me, does anyone know of a resource that breaks down all the different ways they can be used (for instance in this example I hadn't seen them used for consts) and what their limitations are in Rust? I often run across a 'this type can not be inferred' error without really knowing why not and just throw in the type to make it go away.

Any other examples people could point me to would be appreciated as well.

Thanks!

#[derive(Debug)]
struct Buffer<T, const LENGTH: usize> {
    buf: [T; LENGTH],
}

impl<T, const LENGTH: usize> From<[T; LENGTH]> for Buffer<T, LENGTH> {
    fn from(buf: [T; LENGTH]) -> Self {
        Buffer { buf }
    }
}

fn main() {
    let buf = Buffer::from([0, 1, 2, 3,5]);
    dbg!(&buf);
}

Edit: for some reason, the code markdown is hiding things inside of the <>'s (at least on my lemmy viewing client)

View original on programming.dev
10
programming·Programmingbycatch22

Rust Book for Devs with an OO Programming Background

I've been going through this book after looking for something that would help me learn more about some of the common design patterns and practices used in Rust. I think for people who come from an OO, C++, Java, python, ect. background this book is especially helpful because the author gives side by side examples on how some of the ideas in OOP translate to Rust and it's functional design patterns. (And how they don't). Anyways, for me it's been really helpful, I thought others might find it helpful as well.

Rust Book for Devs with an OO Programming Backgroundhttps://www.manning.com/books/idiomatic-rustOpen linkView original on programming.dev
73
languages·Languages and Linguistics | Polyglots, Language Learners and Linguists!bycatch22

I'm a native English speaker learning Spanish, I wish I had known this months ago when I first started learning....

I kept trying to make the connection between "get" in English and Spanish.

For instance "Can you get some apples at the store?".

Google translates this literally to "¿Puedes conseguir algunas manzanas en la tienda?"

Which is completely wrong, and in Spanish sounds really odd to other people, since conseguir means "to achieve" something.

In my classes, and multiple other times native English speakers had the same question as I did. Native Spanish teachers would just say "No we don't use conseguir for that."

But for me it was never really answered until it finally dawned on me...It turns out it is a stand in for an insane amount of actual verbs which is why I think I as a native speaker and others were so confused. We use it FOR EVERYTHING, without thinking about the context.

For those English speakers learning Spanish, or any language for that matter, don't make the same mistake I did! 😀 Just use the actual verb that is intended.

Quick summary of ways to use "to get":

• Obtain – I need to get a new laptop.
• Receive – She got a letter from her friend.
• Buy – I got some groceries.
• Understand – I don’t get what you mean.
• Become – He got tired after work.
• Fetch – Can you get me some coffee?
• Arrive – We got home late.
• Catch (illness) – He got the flu last week.
• Persuade – She got him to apologize.
• Prepare – I’ll get dinner ready.
• Experience – I get nervous before tests.
• Be punished – He got in trouble for cheating.
• Be affected by something – I got sunburned at the beach.
• Cause something to happen – Get the car fixed today.
• Bring – Can you get the book for me?
• Take revenge – I’ll get you for that!
• Hire – We need to get a plumber.
• Have permission – Did you get to leave early?
• Communicate with someone – I can’t get him on the phone.
• Hear/see clearly – Did you get that message?
• Be in a certain state – Things got worse over time.
• Escape/avoid – He got away with it.
• Seize/arrest – The police got the suspect.
• Move (to a place) – Get inside quickly!
• Make progress – I’m finally getting somewhere with this project.
• Be hit by something – I got hit by a snowball.
• Revenge/retaliate – You got me back for that prank!
• React emotionally – That movie really got me.
• Do something successfully – I got the door open.
• Escape from a place – Let’s get out of here.
• Make someone do something – I’ll get him to help us.
• Cause someone/something to move – Get the dog inside.
• Understand in a deep way – I finally get why she was upset.
View original on programming.dev
49
mildlyinfuriating·Mildly Infuriatingbycatch22

Anyone else have this happen after grabbing a coffee?

I grab a cup coffee from a shop and it's ruined because the barista is wearing cologne or perfume that inevitably has gotten on the cup and it's all I can smell when I take a sip. I guess 2 things, this means 1 they haven't thoroughly washed their hands, and 2 I can't drink the coffee because it smells so bad and I have to throw it out. Not sure why, but I haven't had this happen with any other type of food/drink, just coffee.

View original on programming.dev
28
technology·Technologybycatch22

Apex Legends streamers surprised to find aimbot and other hacks added to their PCs in the middle of major competition via anti-cheat software

Wow it finally happened. So glad I switched to steam running on linux mint last week. I refused to install helldivers because it wanted to install some no holds barred god level permissions anti-cheat software. Windows 11 was the last straw for me. Good times..

The volunteers at the Anti-Cheat Police Department have since issued a PSA announcing, "There is currently an RCE exploit being abused in [Apex Legends]" and that it could be delivered via from the game itself, or its anti-cheat protection. "I would advise against playing any games protected by EAC or any EA titles", they went on to say.

As for players of the tournament, they strongly recommended taking protective measures. "It is advisable that you change your Discord passwords and ensure that your emails are secure. also enable MFA for all your accounts if you have not done it yet", they said, "perform a clean OS reinstall as soon as possible. Do not take any chances with your personal information, your PC may have been exposed to a rootkit or other malicious software that could cause further damage."

Apex Legends streamers surprised to find aimbot and other hacks added to their PCs in the middle of major competition via anti-cheat softwarehttps://www.pcgamer.com/games/battle-royale/apex-legends-streamers-warned-to-perform-a-clean-os-reinstall-as-soon-as-possible-after-hacks-during-na-finals-match/Open linkView original on programming.dev
467
asklemmy·Ask Lemmybycatch22

TikTok Ban, good or bad?

As someone in the US who has had their private data leaked multiple times (ive lost count) and is extremely careful when browsing you tube as to not be drawn into a conspiracy ridden rabbit hole, I'm not sure what the point of this tik tok ban is. To me tik tok is social media business as usual. If congress is going to go this hard on a social media company and privacy concerns they should be doing this with all the other companies that pry into our private lives and try their best to manipulate us as well (car makers, appliance manufactures, phone makers, wearbales, ect...) otherwise to me this comes across as the US congress extorting a single company to make billionaires richer. It has been shown time and time again that even US based social media companies are vulnerable to influencing conspiracy theorists and swaying the votes of thousands of people.I feel like we are at the pinnacle of technological ignorance here. Thoughts?

TikTok Ban, good or bad?https://www.latimes.com/business/story/2024-03-14/former-treasury-secretary-steven-mnuchin-buy-tiktokOpen linkView original on programming.dev
52