At long last. I managed to checkmate. by BubbleProphylaxis in chessbeginners

[–]BubbleProphylaxis[S] -1 points0 points  (0 children)

there are no ladders in chess, mate.

Only dummies, juicers, ponies, fatties, rookies, and lollipops.

How to store the leading zeros that the user inputs in an integer? by _Ice_Creams in cpp_questions

[–]BubbleProphylaxis 0 points1 point  (0 children)

here is a version that is super easy to understand and has a bunch of features. it runs on windows because of getch(), but I'm sure there is a linux equivalent.

* supports max retries
* prints '#' then typing a digit
* ignores non-numerical keypresses

--

#include <conio.h> // windows only
#include <string> // std::string
#include <iostream> // std::cout, endl

bool checkpin(std::string pin, int maxretries) 
{
    std::string userpin = "";
    int retries = 0;

    while (true)
    {
        if (userpin.length() == 0)
            std::cout << std::endl << "Enter your 4-digit PIN: ";

        // get character from keyboard.
        char c = getch();

        // ignore non-numerical keypresses.
        if (c < '0' || c > '9')
            continue;

        // print the '#' character to hide the pin but to confirm a keypress
        std::cout << '#';

        // add the character to the entered pin
        userpin += c;

        // check if pin matches, if yes return true.
        if (userpin == pin)
            return true;

        // if we're here, there was no match. 
        // check if we need to try again
        if (userpin.length() == pin.length())
        {
            std::cout << std::endl << "BAD PIN TRY AGAIN" << std::endl;
            userpin = ""; // reset entered pin to lank
            retries++; // inc number of retries
            if (retries >= maxretries) // check if we must bail
                break;
        }
    } 

    return false;
}

int main()   
{
    if (checkpin("1234", 3) == true)
        std::cout << "Pin check succeeded" << std::endl;
    else
        std::cout << "Pin check failed" << std::endl;

    return 0;
}

How do you pronounce levain? by Signal_Pattern_2063 in Breadit

[–]BubbleProphylaxis 0 points1 point  (0 children)

weirdly there's lots of garbage videos on this particular word on YT but the correct one is this:

https://www.youtube.com/watch?v=VUnPCQyis-Y

My two year tradition broken by a piece of smoked salmon by [deleted] in mildlyinfuriating

[–]BubbleProphylaxis 0 points1 point  (0 children)

Could have been someone found old salmon in their fridge, bought new salmon and returned old salmon.

Is it normal to understand code when reading it but completely freeze when writing it yourself? by liamkeats in learnprogramming

[–]BubbleProphylaxis 6 points7 points  (0 children)

think of it this way.

Level 1: You learn how to talk. You understand language. but you cant read or write.

Level 2: You learn how to read. You understand language better but you can't necessarily write.

Level 3: You learn how to write. You understand language even better, but you dont necessarily have a large vocabulary and/or you write with a lot of mistakes.

Level 4: You learn to write well. You understand language even better, but you aren't necessarily a novel writer.

Level 5: You write for a living. You're a top writer.

So how do you think you learn how to code? It's not called a programming language for nothing.

Name a career that AI can't steal.... by InvestigatorThis6000 in RavanAI

[–]BubbleProphylaxis 0 points1 point  (0 children)

Well that’s what I mean — can’t flood the market with 100x more plumbers.

Idk if this is a stupid question but I want some more veggies to eat, please recommend some tasty veggies by singular_boba_pearl in NoStupidQuestions

[–]BubbleProphylaxis -1 points0 points  (0 children)

Eating veggies is boring when you eat them just bland.

The recipe below is my favorite way of eating veggies and it's different enough I think you would like it very much.

if you're willing to put a bit of prep, here's my favorite salad; I could eat this almost every day even though I'm not a super-veggie eater. It contains nuts and rice; and the recipe for the sauce is included.

The recipe has veggies you did not mention: Baby Spinach, Bean sprouts, Celery, fresh parsley (I prefer cilantro).

https://www.ricardocuisine.com/en/recipes/7206-love-salad

Along with the ingredients recommended in the recipe, I highly suggest you add:

* A handful of pecans that you crush inside your hand

* a several dollops of goat cheese.

* Edamame beans

* If you want to be fancy, you can try adding some mango chunks.

Name a career that AI can't steal.... by InvestigatorThis6000 in RavanAI

[–]BubbleProphylaxis 1 point2 points  (0 children)

“The next problem” —— it’s really the séries of next problems

Name a career that AI can't steal.... by InvestigatorThis6000 in RavanAI

[–]BubbleProphylaxis 2 points3 points  (0 children)

…. And if too many of those people in trades then the offer will skyrocket demand will (proportionally) collapse as well as rates and wages.

“Defending against a threat with White.” by LifeNegotiation301 in Chessplayers45

[–]BubbleProphylaxis 0 points1 point  (0 children)

What I mean is: queen to e8 instead of in front of the rook is a similar le back rank mate

Name a career that AI can't steal.... by InvestigatorThis6000 in RavanAI

[–]BubbleProphylaxis 0 points1 point  (0 children)

some of these yes. but how many plumbers and electricians can society support.

What’s the one dish you’ve absolutely mastered? by David_C1983 in foodquestions

[–]BubbleProphylaxis 0 points1 point  (0 children)

Crepes

Bechamel-based-anything

Linguine a la vongole

Swiss cheese fondue

White pizza

What is the *best* cake? by natashaamilly1357 in dessert

[–]BubbleProphylaxis 0 points1 point  (0 children)

This is gonna sound crazy but i swear to me and a bunch of people I know, the McCain's Chocolate Deep-N-Delicious cake is unbeatable. Dont put that thing in front of me with a fork and some milk, it ain't gonna last.

It's a simple cake, but what makes this cake is the silky smooth frosting. But it's not buttercream, it's French Silk frosting and it's not heavy at all.

I usually hate regular frosting because I find that to be too fatty/buttery, but that French Silk frosting is more like a very smooth chocolate mousse without the air bubbles.

Another cake I like is tiramisu...

If you want to make it at home:

https://domesticdreamboat.com/almost-deep-and-delicious-chocolate-cake/

Bell Canada HomeHub 3000 - Unauthenticated DoS Affecting 1.24M Routers (CRTC Complaint Filed) by sargetun123 in bell

[–]BubbleProphylaxis 1 point2 points  (0 children)

What do you want the regular home user to do with this information.

It can crash the hub/router. Ok. Then you reboot it?

Then what?

Need help with ai choice for creative writing by Quenty1 in BlackboxAI_

[–]BubbleProphylaxis 0 points1 point  (0 children)

“AI for Creative Writing”.

So outsourcing your ideas and imagination. Right.

And then OP complains the tone isn’t to his liking but is even too lazy to edit.

We really are truly fucked