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

According to a video I watched yesterday, it’s not random, it’s because they’re bored teenagers

Hilariously I left this post then scrolled down just a few posts and found this. https://www.usatoday.com/story/news/nation/2024/05/24/killer-whales-attacking-sinking-boats-are-bored-scientists-say/73558157007/

[-] snowe@programming.dev 5 points 2 years ago

Your grocery store has cell service? I lose all service the second I step inside mine

[-] snowe@programming.dev 5 points 2 years ago

It replaces all your monitors for your workstation in a single portable device. That alone is worth it for a lot of people.

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

Ruby

!ruby@programming.dev [LANGUAGE: Ruby]

I found today really easy thankfully. Hardest part was remembering the language features haha

https://github.com/snowe2010/advent-of-code/blob/master/ruby_aoc/2023/day09/day09.rb

edit: code golfing this one was easy too! man this day really worked out huh

    def get_subsequent_reading(reading)
      puts "passed in readings #{reading}"
      if reading.all?(0)
        reading << 0
      else
        readings = reading.each_cons(2).map do |a, b|
          b - a
        end
        sub_reading = get_subsequent_reading(readings)
        reading << (reading[-1] + sub_reading[-1])
        puts "current reading #{reading}"
        reading
      end
    end
    
    execute(1) do |lines|
      lines.map do |reading|
        get_subsequent_reading(reading.split.map(&:to_i))
      end.map {|arr| arr[-1]}.sum
    end
    
    
    def get_preceeding_readings(reading)
      puts "passed in readings #{reading}"
      if reading.all?(0)
        reading.unshift(0)
      else
        readings = reading.each_cons(2).map do |a, b|
          b - a
        end
        sub_reading = get_preceeding_readings(readings)
        reading.unshift(reading[0] - sub_reading[0])
        puts "current reading #{readings} #{sub_reading}"
        reading
      end
    end
    
    
    execute(2, test_only: false, test_file_suffix: '') do |lines|
      lines.map do |reading|
        get_preceeding_readings(reading.split.map(&:to_i))
      end.map {|arr| arr[0]}.sum
    end

code golf

  a=->r{r.unshift(r.all?(0)?0:(r[0]-a[r.each_cons(2).map{_2-_1}][0]))}
  l.map{a[_1.split.map(&:to_i)]}.map{_1[0]}.sum
[-] snowe@programming.dev 4 points 2 years ago

Oh no I have to mod a config file to make it do what I want…why can’t the devs just read my mind???

nobody has to read anyone's fucking mind, why can't you just make it a fucking settings menu? You're the ones making it HARDER TO EVANGELIZE FOSS. For fuck's sake! You're entirely missing the point!

[-] snowe@programming.dev 4 points 2 years ago

I making a point that you seem to be missing. If you have to point out some way to get around a problem that any given user will have with a piece of software, then that’s why your software is not being used. This is the continual problem with the Linux community, they think that everyone wants to learn this stuff. Most people just want their software to work. They don’t want to have to do any sort of googling to figure out why it’s crashing or why it’s running slow or why it doesn’t have this or that feature. Every time someone like you tries to point out that someone can just google something you lose another person that may have been willing to use FOSS in the future. Instead, maybe go try to fix their problem because they sure as hell aren’t going to.

[-] snowe@programming.dev 5 points 2 years ago

I’m sorry….

[-] snowe@programming.dev 4 points 2 years ago

75% of vehicle sales in Sweden are EVs https://cleantechnica.com/2023/01/03/plugin-evs-take-record-75-share-of-swedens-auto-market/

The two bestselling EVs in that article are the Volvo xc40 and the VW ID.4. Both of which are less than $45k usd (480,000 SEK for the xc40 and here’s a used ID.4 for 370k).

This myth that EVs are expensive has really got to go. The Nissan leaf has been available for over a decade at a super cheap price point. Here’s a Nissan leaf for sale for $8k USD/90k SEK. https://www.car.info/en-se/car-for-sale/nissan-leaf-24-kwh-109ps-2012-at-bossloh-co-bil-40876608

[-] snowe@programming.dev 5 points 3 years ago

It sounds like you’re talking about Calvin and Hobbes to me. They’re amazing and full of funny quips, quotes, and jokes. They’re also super approachable, because they’re supposed to be the perspective of a six year old.

[-] snowe@programming.dev 5 points 3 years ago

Even small electric cars are expensive in America. The Kia ev6 and Hyundai Ioniq 5 and 6 are all quite “small” for American vehicles and they’re still 45k+

[-] snowe@programming.dev 4 points 3 years ago

The search was for Asia not Africa. Then google translate it into African

[-] snowe@programming.dev 5 points 3 years ago* (last edited 3 years ago)

Paul info within

spoilerTo keep Paul alive for a long time you can put newlines in front and the newlines get removed before the food does, but it doesn't overfeed.

even with the above I couldn't ever find a video of length 24:45. the youtube timers are all a second or two off. I wasn't gonna upload one, so my final solution was (youtube url was incorrect)

96mm3nnn5pfebruarypepsitractlXXXV🌖 malaysia 0 Ne2+ 🐔🏋️‍♂️🏋️‍♂️🏋️‍♂️ I am loved FmSi

🐛

🐛

🐛

https://www.youtube.com/watch?v=9wMHUgyaY4I
view more: ‹ prev next ›

snowe

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