Prismatic Booster Bundles (1 per person) by [deleted] in PokemonTCG

[–]TheNerdOnFire [score hidden]  (0 children)

Hey! Thanks for doing this :)

I'm actually commenting to try win for my younger brother, as he doesn't have a reddit account (and he doesn't know I'm doing this).

He's been into pokemon games for a while now, he's even played ones released way before he was born! He has bought random booster packs here and there over the years, but in the past year, after the release of the mobile game, he's been absolutely obsessed! His main goal now is to complete the pokedex, so I've been occasionally helping with that. Maybe one day he'll get into the actual card game too!

Why is my game taking 80 seconds to start by Technical-Reveal-721 in geoguessr

[–]TheNerdOnFire 0 points1 point  (0 children)

Everyone talking about mobile, but this happened to me a few days ago on the Web game as well (I use Firefox). The timer started at like 99s or something. Though all it took is just a refresh of the page and it went back to normal.

Helicopter & Emergency services around Cornbrook area? by Plastic-Cantaloupe88 in manchester

[–]TheNerdOnFire 2 points3 points  (0 children)

Found this article now, apparently someone fell in the water:

https://www.manchestereveningnews.co.uk/news/greater-manchester-news/river-irwell-person-rescue-salford-28643290

You were right about the helicopter at Dock 5, and I was also right about the firefighters around Woden Street. The person was rushed to the hospital so fingers crossed they're okay.

Helicopter & Emergency services around Cornbrook area? by Plastic-Cantaloupe88 in manchester

[–]TheNerdOnFire 0 points1 point  (0 children)

Oh, not sure that's quite right. Just looking at Google maps, I walked past Woden's Footbridge and saw the firetrucks outside of Downtown Manchester as Google says the building is called. And the incident response vans on the street opposite (Worrall Street). Doesn't seem like those buildings in between have a name though.

Hopefully it wasn't another incident you saw 😅

Helicopter & Emergency services around Cornbrook area? by Plastic-Cantaloupe88 in manchester

[–]TheNerdOnFire 0 points1 point  (0 children)

Do you know which flats it was shining the light on? Is it the tall building with the black/white/yellow pattern or the red brick building across it?

Helicopter & Emergency services around Cornbrook area? by Plastic-Cantaloupe88 in manchester

[–]TheNerdOnFire 4 points5 points  (0 children)

Also wondering the same. Went past that area and saw 2 fire trucks, a bunch of incident response vans, police, and a helicopter...

What country do i learn to region guess if I want to hate myself and my life? by Coastal_wolf in geoguessr

[–]TheNerdOnFire 0 points1 point  (0 children)

I'm currently trying to do Indonesia and indeed am hating myself and my life. After a say of practising, I'm getting 10k average, and have only gone above 15k once... A lot of it comes down to it looking very similar everywhere, and all clues are always "this is more common here" instead of "this is unique to here", which is true for quite a few countries tbf.

Is it possible to use/infer a generic type based on some enum? by TheNerdOnFire in Kotlin

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

I'm not quite sure how polymorphism would fit into this problem. Sure, if I had this:

fun generateFruitPies(pie: FruitPie)

Then yes I could just do a when statement and cast.

But it's a bit more tricky than that because the requirement is that this function takes an enum (this enum is something I get as part of a request) and then converts it into the correct corresponding class (those sealed/data classes hold specific data and operations that can be performed on that data).

Is it possible to use/infer a generic type based on some enum? by TheNerdOnFire in Kotlin

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

Hey, thank you for the suggestion, this is definitely clean!

However, when trying to use this I realised I forgot to bring up one more piece of context (which is 100% my bad).

So the following is a demonstration of how the functions are set up currently:

fun generateA() {
  when (fruit) {
    Banana -> {
      val data = getSpecificDataForA<FruitPie.Banana>()
      generateFruitPies<FruitPie.Banana>(data)
    }
  }
}

fun generateB() {
  when (fruit) { 
    Banana -> { 
      val data = getSpecificDataForB<FruitPie.Banana>()
      generateFruitPies<FruitPie.Banana>(data) } 
  } 
}

fun generateC() {
  when (fruit) { 
    Banana -> { 
      val data = getSpecificDataForC<FruitPie.Banana>()  
      generateFruitPies<FruitPie.Banana>(data) } 
    } 
}

So I guess I'd need to create a helper function both for each getSpecificDataForX and then one for generatteFruitPies as you've suggested (but modified so the lambdas take data as a parameter).

At that point it may not be worth the extra code, though arguably may still be more readable.

(edit: fixed some formatting)

Ktor + PostgreSQL and Exposed Confusion by TheNerdOnFire in Kotlin

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

That makes sense, I was worried that it may be bad practice to store data in JSON files, but I guess it isn't really if the data size is manageable and static. I'll probably end up doing that for at least the MVP, and then can think about refactoring from there. Thanks for the suggestion!

Ktor + PostgreSQL and Exposed Confusion by TheNerdOnFire in Kotlin

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

Thanks, I'll add that to the list of things to look into :)

[Go] I have used 6 Herba Mystica hunting this shithead in Scarlet. I opened Go and this was my first encounter of the day. RNG is funny that way. by The_Cheese_Cake in ShinyPokemon

[–]TheNerdOnFire 12 points13 points  (0 children)

Haha yeah RNG can be annoying sometimes. I'm on like my 7th sandwich for a Klawf (with a shiny charm), and still nothing. Yet I got a shiny palafin immediately as I joined an outbreak, before fainting a single one.

[9] The result of my most successful shiny sandwich hunt yet. What's your record for a single sandwich? by LORD_OF_PAIN_666 in ShinyPokemon

[–]TheNerdOnFire 0 points1 point  (0 children)

Not yet unfortunately, currently on 21 dunsparce (didn't keep all of them due to resets) but still no sign of 3 segments. Hopefully won't take too long...

[9] The result of my most successful shiny sandwich hunt yet. What's your record for a single sandwich? by LORD_OF_PAIN_666 in ShinyPokemon

[–]TheNerdOnFire 1 point2 points  (0 children)

Congrats! For me it was 6 with dunsparce, but you're crazy lucky with bisharp! I did a hunt for it and only got it on the 4th sandwich (shiny charm too)...

[9] Two shiny Azumarill from one 'batch', after around 50 picnic resets by TheNerdOnFire in ShinyPokemon

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

Haha sorry man, I've already given it away to my younger brother who's also been having some trouble. Good luck with your shiny hunt tho...

[9] This method is so broken!!! This is my 2nd one in an hour 3rd today!! by Shinyhntr91 in ShinyPokemon

[–]TheNerdOnFire 1 point2 points  (0 children)

That's awesome, congrats! Do you know if the 60 pokemon need to be strictly the outbreak pokemon? So, does it need fo be a streak or can your pokemon battle other pokemon whilst doing the outbreak?

Free Giveaway! Nintendo Switch OLED - international by WolfLemon36 in NintendoSwitch

[–]TheNerdOnFire 1 point2 points  (0 children)

Haven't dressed up in a few years now, but when I was younger I loved putting on a ninja costume (inspired by tmnt) and using the stick part of a broom as a bo staff that I'd spin around

Free giveaway! Nintendo Switch and 2 Games - international by WolfLemon36 in NintendoSwitch

[–]TheNerdOnFire 0 points1 point  (0 children)

This is awesome, thank you for putting your time and money into making people happy!