5
submitted 4 weeks ago* (last edited 4 weeks 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.

23

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

74
submitted 2 months ago* (last edited 2 months ago) by catch22@programming.dev to c/programming@programming.dev

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.

31
Great Idea for food waste (www.toogoodtogo.com)
submitted 5 months ago* (last edited 5 months ago) by catch22@programming.dev to c/green@lemmy.ml

This app doesn't seem to be as popular in the US as in Europe. But I thought it was pretty amazing how they were able to basically create a collective of retailers and stores that want to sell their day old food rather than throw it in the trash. We REALLY need something like this in the US in every city.

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

220
submitted 6 months ago by catch22@programming.dev to c/news@lemmy.world

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

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

Any ideas?

[-] catch22@programming.dev 20 points 10 months ago* (last edited 10 months ago)

By far one of the most interesting articles I've seen on Lemmy so far, thanks for the link

[-] catch22@programming.dev 69 points 11 months ago* (last edited 11 months ago)

They provide services to ALL people. So tired of reading that only the poor use the library. My kids are always begging to be taken there to get books and do activities. We just used the color printer/copier at ours the other day and the first 3 copies were free. Libraries are an amazing community resource for EVERYONE.

[-] catch22@programming.dev 31 points 1 year ago

People will find a way to get around it, I could see buffering a video for 5 mins or even downloading the entire video ala locally playing podcasts, then using AI or some type of frame analyzation technique t to skip ads. Or just skip them like good old fashion Tivo from your player.

[-] catch22@programming.dev 19 points 1 year ago* (last edited 1 year ago)

I call bs, a motorcycle provides way less protection. And which states are they illegal in? Lobbying and another money grab from corporations in our "free market" society. I would love one of these BTW.

28

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.

[-] catch22@programming.dev 52 points 1 year ago* (last edited 1 year ago)

This has happened to myself as well as other friends in the trades where you are expected to buy and maintain your own tools. Not only do you to loose thousands of dollars in tools, it also effects ongoing and new work as well as a shit load of time spent rebuying and finding the right tools again. The police just don't care, the last time it happened I didn't even bother filing a report. I consider this one of the lowest forms of petty theft. It kills people's lively hoods and takes food out of their family's mouths.

98
OpenAI loses its voice (www.platformer.news)

The company hasn’t been the same since Sam Altman’s return — and its treatment of Scarlett Johansson should worry everyone

[-] catch22@programming.dev 45 points 1 year ago* (last edited 1 year ago)

For your convenience:

https://www.goodmeat.co/

The company who's product they are banning.

Along the same vein, there was another company recently who made plant based blue cheese that was disqualified from a blue cheese contest after they were going to take first.

https://boingboing.net/2024/04/29/after-a-vegan-blue-cheese-won-the-good-food-award-panicked-dairy-cheese-makers-forced-the-foundation-to-disqualify-it.html

102
Businesses Are Getting People Killed (darrellowens.substack.com)
[-] catch22@programming.dev 22 points 1 year ago* (last edited 1 year ago)

I think a more direct translation is "The city of the future moves on a bike". Not sure what google translate says but those sites usually miss the subtleties of language.

[-] catch22@programming.dev 38 points 1 year ago

The problem with this is that companies like rabbitai are exploiting our inherent drive to teach in order to pass on knowledge and make society and life better for the next generation and ourselves. (In this case code reviews) This doesn't work in this situation because you're not actually helping out another person that will reciprocate help to you down the line. You're helping out a large company, which has no moral values and doesn't operate in society with the same values as a human being. To me a code review is more than just pointing out mistakes it's also about sharing knowledge and having meaningful dialog about what makes sense and what doesn't. There's no doubt that AI is an amazing achievement, but to me it seems that every application of this technology that involves human interaction manages to simultaneously exploit and erase the core "humanness", of the interaction. I think this is the case because these types of AI applications are purely monetarily driven, and not for the advancement of our society. OpenAI had the right idea to start with, but they have sunken into the same trope in lock step with the rest of the Googles, Apples and Amazons of the world. Imagine if one of these large companies like say Google had been given money by the us government to create the arpa net and then went on to only use the technology for profit. Would we really be in the same connected world we are now?

[-] catch22@programming.dev 25 points 1 year ago

Can't afford a used car, can't afford to send my kids to school (day care was near 25k a year for our twins) , health care costs are horrendous (life expectancy continues to be one of the worse in the developed world even though we spend the most by far), food costs are through the roof. Can someone please tell me how this economy is better? WTF are these people talking about.

[-] catch22@programming.dev 40 points 1 year ago* (last edited 1 year ago)

I have to chime in on this one, I grew up in Oregon and worked at Target a couple of years as a cashier and cart collector. This was by far the most miserable job I have ever had, it sucked. Besides leaving their nasty ass trash and dirty diapers in the carts people would leave them scattered all over the mall parking lot. It was my job to walk a mile or so around the lot that encircled the mall at closing time in the pouring rain and collect them. This was before they had the robots that push them for the workers, so we used a rope attached to the front to steer about 35-40 at once. With out fail id consantly get my sopping wet feet run over by those fucking things while trying to push them back to the store. Not to mention, we'd get the occasional wind storm and the ones that weren't corraled would blow all over the parking lot crashing into cars. Then we'd get bitched at by the customers. Trust me when you put a cart back in the corral, the people working at the store appreciate it. There's more than enough other work to get done in retail.

[-] catch22@programming.dev 23 points 2 years ago* (last edited 2 years ago)

8 Hours of defrag | hard disk defragmentation ASMR | Hard Disk Sound Effect | HDD sounds

https://m.youtube.com/watch?v=KR3TbL3Tl6M

😁

view more: next ›

catch22

joined 2 years ago