catch22

joined 2 years ago
[–] catch22@programming.dev 4 points 1 week ago

!Technological Implosion imminent, please stand clear!

[–] catch22@programming.dev 3 points 3 weeks ago

Sherman Alexie is an amazing author.

[–] catch22@programming.dev 7 points 1 month ago* (last edited 1 month ago)

leeches, nothing else can really describe these companies

[–] catch22@programming.dev 3 points 2 months ago

What a cool space! Every community needs a space like this.

 

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

☹️

[–] catch22@programming.dev 4 points 2 months ago

Just for those wondering, it seems a bit similar to Prince Of Persia the Lost Crown which I loved. I wish listed it.

[–] catch22@programming.dev 10 points 2 months ago

Feature Visualization How neural networks build up their understanding of images

https://distill.pub/2017/feature-visualization/

[–] catch22@programming.dev 4 points 3 months ago

cool tips, but my neck is hurting just looking at that setup...😄

27
submitted 6 months ago* (last edited 6 months ago) by catch22@programming.dev to c/til@lemmy.world
 

Come and take a look at Einstein's report card from his final school year and his time studying at ETH university in Switzerland. We will learn interesting facts about his life, his teachers and the state of physics at the time.

[–] catch22@programming.dev 2 points 6 months ago

What is the medium? Very cool!

[–] catch22@programming.dev 1 points 6 months ago
[–] catch22@programming.dev 6 points 6 months ago* (last edited 6 months ago) (1 children)

404 media has been the first news outlet to break most of these tech stories, they are a small group of extremely talented journalists. (When I say small I mean 4 or 5)

https://www.404media.co/

 

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.

 

Thought this was interesting. A little gaming history intermixed with 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.

11
submitted 7 months ago* (last edited 7 months ago) by catch22@programming.dev to c/rust@programming.dev
 

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)

 

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.

 

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.
6
DJ Qbert Scratch Cards (www.youtube.com)
submitted 10 months ago* (last edited 10 months ago) by catch22@programming.dev to c/music@lemmy.ca
 

DJ Qbert is a legend, but also I hadn't seen this done anywhere else. Pretty cool concept. He's posting a new scratch technique every day for 1 year and calling them "Scratch Cards".

73
submitted 10 months ago* (last edited 10 months ago) by catch22@programming.dev to c/til@lemmy.world
 

It’s Not Just Wayfair: Why Does ALL Of Your Furniture Fall Apart?

Interesting commentary on what happened to the furniture industry in the United States.

 

I thought this would be appropriate since I see 404media's articles linked from lemmy often.

 

Any ideas?

view more: next ›