Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Dabir
Nov 10, 2012

Has-beenley Freeman

Adbot
ADBOT LOVES YOU

Dabir
Nov 10, 2012

https://twitter.com/flying_rodent/status/1439641323955499010?s=19
Pointless country.

Dabir
Nov 10, 2012

Bobby Deluxe posted:

L. G. B. T. Long ago, the four nations lived together in harmony. Then, everything changed when the transphobic Nation attacked.

B for effort but that does kind of imply the other nations are also kinds of bigotry and since when have they not lived in harmony?

Dabir
Nov 10, 2012

I'm sure it's been recommended here before, but Kay and Skittles did a deep(ish) dive into the politics of each season of Korra. They also have a bunch of other good videos, it's worth checking them out.

https://www.youtube.com/watch?v=ModX151Ipgs
https://www.youtube.com/watch?v=6alQz2CEsz0
https://www.youtube.com/watch?v=-DyKwTXPar4
https://www.youtube.com/watch?v=RGX2rRAlNME

Dabir
Nov 10, 2012

Bobby Deluxe posted:

It was a course about c# for unity on udemy.

https://www.udemy.com/share/101Wjs3@Tq87F8TodlDQWLNs5_IA4wabyr7MzOYr9XxMBs27KFxuNSO9PlIgpjhRZiqnj2Cu/

Video by someone else about the code in question:

https://www.youtube.com/watch?v=fGUJlfE5jrw

It's a simple terminal program that 'guesses' a number between 1 and 1000, and you press up or down to confirm if the number you're thinking of is higher or lower. It amends the maximum and minumum values based on if the player pressed up or down to gradually narrow the field and keeps picking a number between the two until it's right.

I don't 100% remember how it fits in without watching the whole thing, but there was a bit in the udemy video I watched (they've since restructured and reshot most of the course) where they explain that you need to add "max = max + 1" to the startup so that it goes all the way up to 1000 properly in case someone chooses an edge case.

Again, without going through that entire section of the course I can't find where they explain why: I scanned a few videos but they just keep saying max+1 without explaining why, or how that doesn't make the new max 1001, or increase the guesses by +1; and my dog is going to eat my leg if I don't head out soon.

But in the version I watched they explained that it's because unity counts wrong or counts from zero or something. IIRC they then have to remove the +1 again at a later stage to stop the upward guesses from creeping past the correct number.

If you set the max to 1000 it should treat 1000 as the max right? You shouldn't have to wedge the +1 in there.

It's probably a bad course, they basically didn't teach anything about structure, functions, variables etc when I did it; just how to copy chunks of code from the unity manual / forum.

That is a very bad course. The vast majority of programming courses count from zero, as in, if you declare a list of 100 items, they're indexed 0 to 99. I don't know the exact details of what it was asking you to do but there was definitely a better way.

Dabir
Nov 10, 2012

rand(6) gives you one of six numbers, where the first is 0.

Thinking about it another way, if you want to cover every integer percentage including 100, there's actually 101 possibilities, 1-100 and 0. A 1 in 100 chance would cover either 1-100 or 0-99.

Here's how I'd do it (pseudocode as I don't know C#)

code:

int min = 1
int max = 1000
int guess = 0
int input = 1

do
{
    guess = rand(min, max+1)
    input = getInput() // Negative means number is lower, Positive means number is higher, zero means you got it
    if input >= 0
        min = guess
    if input <= 0
        max = guess
}
while (min != max)

print ("Your number is " + guess + "!")

Dabir
Nov 10, 2012

https://twitter.com/socialist_app/status/1440308880089645065?s=19
This sounds pretty bad. What do we know about it?

Dabir
Nov 10, 2012

Ronya is posting about how Corbyn was Blair with left wing branding, the sky is blue, bears poo poo on the Pope, etc

Dabir
Nov 10, 2012

NotJustANumber99 posted:

unsure how to respond.

Just a big thing for me to go all in on a family thing like that. But then I became a venture scout having wanted to leave 1st beavers meeting cos I couldn't argue with mum and dad.

Sounds healthy

Dabir
Nov 10, 2012

The fruit pickers should simply eat everything they pick. The worker is entitled to the full value of their labour after all.

Dabir
Nov 10, 2012

peanut- posted:

It really can’t be overstated how much the regulator deserves to be strung up.

I found a consultation process doc from 2019 where a bunch of energy companies told OFGEM that’s it’s insane there are no minimum capital requirements for energy companies, given the arrangement that the losses from any failure are mutualised across the industry.

OFGEM’s response was setting a capital requirement is outside their expertise and it’s not their job to assess ‘business viability’ (their quote marks), it’s the job of private investors to judge if an energy company is sustainable. Plus if they set financial viability requirements like that it would discourage new entrants to the market.

I’m imagining putting statements like that in front of someone from the FCA and watching their brain explode.

Dabir
Nov 10, 2012

It also nicely takes their bragging about kicking out Corbyn and anyone who ever liked him and throws it back in their faces.

Dabir
Nov 10, 2012

lol
lmao

who could have seen this coming

Dabir
Nov 10, 2012

Who the hell is Ilsa Goode

Dabir
Nov 10, 2012


He did.
https://bywire.news/articles/exclusive-mysterious-deleted-tweet-about-keir-starmers-relationship-with-his-personal-assistant

Adbot
ADBOT LOVES YOU

Dabir
Nov 10, 2012

Be nice to Keith. It's not his fault that he hears "cops on the beat" and thinks it means like being on the pull.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply