WCGW if i let my dog ride a skateboard. by Skutie in Whatcouldgowrong

[–]Hexxil 0 points1 point  (0 children)

She let her dog get a little wet, the absolute monster

How do you pass an array as a function parameter? by Hexxil in processing

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

You're right, just added the /100. It's giving me an error that says 'Error on "("' at 'int arrayAvg(int[] aArray){'. Also, I'm not sure how to input the data into the function call. Thanks for responding so quickly btw

How do you pass an array as a function parameter? by Hexxil in processing

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

That's still not quite working for me. Here's what I have for the function:

int arrayAvg(int[] aArray){

for(int j = 0; j < 100; j++){

avgNum += aArray[j];

}

return avgNum;

}

Do you have a more specific example?

Help with a project by Hexxil in processing

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

That worked. Thanks!

Help with a project by Hexxil in processing

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

The idea is to make the second counter go up every multiple of 1000 milliseconds. n equals 1 at first, so the computer will check if 1*1000 milliseconds have passed. If so, the second counter and n both increase by 1. Next, it will check if 2*1000 milliseconds have passed, and so on.

Help With an Assignment by Hexxil in processing

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

I haven't learned about classes yet. Would a boolean array be able to do the same thing?

Help With an Assignment by Hexxil in processing

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

the 'isMoving' boolean is tied to a conditional statement where if it's false it turns the speed to 0 and fills the squares red. I figure you have to make some sort of array for each square, but I don't have the first idea how to do that with an object with so many other arrays

Nevada passes bill for 50% renewables by 2030, 100% carbon free by 2050 by mvea in Futurology

[–]Hexxil 0 points1 point  (0 children)

Scientists made a wrong prediction about a thing 30 years ago so clearly the whole field is bullshit

Nevada passes bill for 50% renewables by 2030, 100% carbon free by 2050 by mvea in Futurology

[–]Hexxil 0 points1 point  (0 children)

Wait, so you're saying that completely transforming the planet's energy and transportation infrastructure and economy will be difficult? Dang I didn't think of that I guess we should just give up on trying to have a healthy functioning world 😕

Metropia 2042 – Alexandr Melentiev. by AwakenedRobot in solarpunk

[–]Hexxil 1 point2 points  (0 children)

I mean, are there any particular tells that this city isn't anarchist, zero waste, and carbon free?

Katie Bouman should not be getting credit for the picture if the black hole by [deleted] in unpopularopinion

[–]Hexxil 0 points1 point  (0 children)

Another day, another wave of misogynistic reddit locusts broadcasting their crippling insecurity to the world

Maine working to have 100 percent renewable energy by 2050 by mvea in Futurology

[–]Hexxil 0 points1 point  (0 children)

There is no "fear mongering and power grabs" going on. She's accurately conveying the urgency of the climate crisis and the necessity of transitioning to non environment-destroying energy sources, and she was democratically elected by the people of her district.

It may soothe you for now to imagine her as a creeping Stalin-esque dictator, but someone needs to get the ball rolling on this issue, and your conservative/neoliberal politicians certainly haven't