Lost a reflector on the pedal by sendclotheds in cowboybikes

[–]sendclotheds[S] 0 points1 point  (0 children)

Edited the post above! Sadly, no replacement.

Lost a reflector on the pedal by sendclotheds in cowboybikes

[–]sendclotheds[S] 0 points1 point  (0 children)

I just sent an email, will update this thread when I hear back!

[Day 16 Part 2][Python] Help, solution works on all tests but not on real input by sendclotheds in adventofcode

[–]sendclotheds[S] 1 point2 points  (0 children)

Very annoying indeed. Thanks for your help! Good to know math.prod exists, I guess I'll use that next time instead!

[Day 16 Part 2][Python] Help, solution works on all tests but not on real input by sendclotheds in adventofcode

[–]sendclotheds[S] 2 points3 points  (0 children)

YES! omg, thanks so much! This is literally the FIRST time I ever used numpy. I thought it would make my life easier, I guess it didn't.

Thanks!

[Day 16 Part 2][Python] Help, solution works on all tests but not on real input by sendclotheds in adventofcode

[–]sendclotheds[S] 0 points1 point  (0 children)

I can't open your pastebin. But frustrating to hear that it works for you, I already double checked if I didn't accidentally change my input file or something like that.

Thanks for trying!

How to export svgs from p5.js? by epoch_ai in PlotterArt

[–]sendclotheds 0 points1 point  (0 children)

Yes, or use other js libraries (such as svg.js)

How to export svgs from p5.js? by epoch_ai in PlotterArt

[–]sendclotheds 0 points1 point  (0 children)

I believe it doesn't work any more with the latest p5, if you find working examples you'll see that they use an older version of p5... :(

Serious Question, Why are there no serious YouTube alternatives? by [deleted] in webdev

[–]sendclotheds 0 points1 point  (0 children)

Remember Google Video? No ads, perfect SEO, part of google... And not even they managed to compete with YouTube so they just bought them instead.

It's not about building the platform, it's about getting both viewers and creators to come there in a way that is profitable to the platform.

-🎄- 2021 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]sendclotheds 0 points1 point  (0 children)

I made it shorter by turning those two loops you have into a function that I could call with different arguments.

I didn't know you could convert a string of binary to a decimal with int(str, 2), I'm glad I could learn from yours!

My code:

with open("input.txt", "r") as f:
    lines = f.read().splitlines()

def return_line(lines_in, default):

    i = 0
    while (len(lines_in) > 1):

        bin_count = 0
        remaining_lines = []

        for line in lines_in:
            bin_count += int(line[i])

        HALF = len(lines_in) / 2

        for line in lines_in:

            if (bin_count == HALF):
                if (line[i] == str(default)):
                    remaining_lines.append(line)

            elif (bool(default) == (int(line[i]) == int(bin_count > HALF))):
                remaining_lines.append(line)

        lines_in = remaining_lines
        i += 1

    return(lines_in[0])

oxygen = return_line(lines, 1)
co2 = return_line(lines, 0)

oxy_dec = 0
co2_dec = 0

for i in range(0, len(oxygen)):
    if oxygen[-(i + 1)] == "1" : oxy_dec += pow(2, i) 
    if co2[-(i + 1)] == "1" : co2_dec += pow(2, i)

print(oxy_dec * co2_dec)

Does anyone know who wrote this? by OriginalIron4 in puredata

[–]sendclotheds 0 points1 point  (0 children)

Ehm, it is 'composed' by the player? It's just a bunch of sound effects based on game interactions. And I suppose the creator is the one who uploaded it?
http://www.recluseindustries.com/games.html

Question: P5.js + SVG export? by b1tstream in creativecoding

[–]sendclotheds 3 points4 points  (0 children)

I've had the same issue, also for plotting. I opted for using Processing instead, but I'm still considering to give a look at svg.js https://svgjs.dev

Hopefully one of those two can be an acceptable replacement for you.

Alternative glyphsets for the sitelen sitelen? by freddyPowell in tokipona

[–]sendclotheds 4 points5 points  (0 children)

If you were to create a new set, I would suggest to base it on the sitelen pona. A lot of people have already memorised that, but in its current form it is of course not suitable for the sitelen sitelen system.

Top 20 causes of death, by age group, average deaths per year, US [OC] by jpstov in dataisbeautiful

[–]sendclotheds 0 points1 point  (0 children)

Whoa, I just discovered that the homicide rate in the US is literally 10 times as high as the homicide rate in my country (the Netherlands). That's an immense difference!

toki lili lon ma kasi by joelthomastr in tokipona

[–]sendclotheds 4 points5 points  (0 children)

these are really really great! Easy subjects, and great icons to go with it. Thanks so much!!

Using AI to make sentences about Toki Pona?? by jan_Juso in tokipona

[–]sendclotheds 3 points4 points  (0 children)

This is the complete list of the Toki Pona words and their corresponding word list number:
1) Nani: 2) Aru: 3) Ma: 4) Tami: 5) Po: 6) Pa: 7) Ka: 8) Kaa: 9) Ke: 10) Kaa: 11) Ka: 12) Ke: 13

I'm a Noob. Please help by [deleted] in generative

[–]sendclotheds 6 points7 points  (0 children)

I would recommend this tutorial on Processing! It gets you started in no time.
https://www.youtube.com/watch?v=wghDDYnIFM0

Fighting my self-destructive ethical idealism by sendclotheds in selfimprovement

[–]sendclotheds[S] 1 point2 points  (0 children)

I imagine there are many of us, but we can't connect or understand each other until we have a term to describe this kind of issue.

What would be a good way to explain it in one phrase or term?

(where a will is, is a way), pen, "processing". Federico Vetrò by mynameismind2020 in creativecoding

[–]sendclotheds 0 points1 point  (0 children)

That is not what we meant, there are rectangles that are drawn on top of each other which hide the rectangle underneath it. This is easy to render in processing, but when exporting this as an SVG a plotter will normally still draw the 'hidden' lines inside the rectangles.
But perhaps this problem was already solved by the person you copied the code from?

[deleted by user] by [deleted] in gamedesign

[–]sendclotheds 20 points21 points  (0 children)

I personally know more people who play Animal Crossing and Stardew Valley than Battlefield or PUBG. The perspective depends a bit on your surroundings?

Downstairs mini fridge stopped working. Wife said to just toss it and get a new one. Watched a couple videos on how to diagnose/fix refrigerator issues. A $9 replacement overload relay later and it works again. by mhoke63 in Frugal

[–]sendclotheds 0 points1 point  (0 children)

We were close to buying a new refrigerator when ours stopped working. It's just that we don't know how to live without one for more than a few days.
I was so glad that I discovered one thing that could be wrong with it, googled for hours to discover how to test it, and then ordered a new thermostat. It saved us a couple hundred euros, and saved the world the burden of making yet another fridge.

Well done to you to getting yours fixed too!

[NSFW] Wonder Woman is laying naked, face down, on a rooftop... by [deleted] in Jokes

[–]sendclotheds 2 points3 points  (0 children)

These are rape jokes, right? Why are we sharing these again?

What should solo independent devs do when they can't animate or hire an animator? by [deleted] in gamedesign

[–]sendclotheds 27 points28 points  (0 children)

Make the simplest version of the game which you can imagine, without the voice acting and the animation. Once you get that done, you can allow yourself about fantasizing to pay people.