catch22

joined 2 years ago
27
submitted 1 month ago* (last edited 1 month 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.

 

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..

[–] catch22@programming.dev 6 points 2 months ago* (last edited 2 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/

[–] catch22@programming.dev 6 points 2 months ago (3 children)

another win brought to you by 404 media...

 

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.

1
submitted 2 months ago* (last edited 2 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)

[–] catch22@programming.dev 4 points 2 months ago* (last edited 2 months ago)

iFixit, is an amazing resource for these kinds of questions.

https://www.ifixit.com/Guide/OnePlus+Nord+2+5G+Screen+Replacement/156313

They also cover major appliances, cars, computers, power tools, and other everyday devices.

Tape required: https://www.ifixit.com/en-eu/products/tesa-61395-tape?variant=46746786496852

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

Spain here... How and what area are you referring to? Internet, Cell Phone Towers, Everything was down, no one was accepting credit cards in my neighborhood. The only thing they were accepting were IOU's (if you knew the store owner) and Euros.

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

Yeah, I would recommend having a basic understanding of the language first.

 

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.

0
submitted 6 months ago* (last edited 6 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.

 

Any ideas?

 

Microsoft, doing it's part to make the world a better place.

 

I'd like to know other non-US citizen's opinions on your health care system are when you read a story like this. I know there are worse places in the world to receive health care, and better. What runs through your heads when you have a medical emergency?

A little background on my question:

My son was having trouble breathing after having a cold for a couple of days and we needed to stop and take the time to see if our insurance would be accepted at the closest emergency room so we didn't end up with a huge bill (like 2000$-5000$). This was a pretty involved ~10 minute process of logging into our insurance carrier, and unsuccessfully finding the answer there. Then calling the hospital and having them tell us to look it up by scrolling through some links using the local search tool on their website. This gave me some serious pause, what if it was a real emergency, like the kind where you have no time to call and see if the closest hospital takes your insurance.

 

It used to be that you would do a search on a relevant subject and get blog posts, forums posts, and maybe a couple of relevant companies offering the product or service. (And if you wanted more information on said company you could give them a call and actually talk to a real person about said service) You could even trust amazon and yelp reviews. Now searches have been completely taken over by Forbes top 10 lists, random affiliate link click through aggregators that copy and paste each others work, review factories that will kill your competitors and boost your product stars, ect.... It seems like the internet has gotten soooo much harder to use, just because you have to wade through all the bullshit. It's no wonder people switch to reddit and lemmy style sites, in a way it mirrors a little what kind of information you used to be able to garner from the internet in it's early days. What do people do these days to find genuine information about products or services?

view more: next ›