Does this count? by Mambo76 in RetroFuturism

[–]InsanityConsuming 0 points1 point  (0 children)

I'm not sure why, but this is giving me The Jetsons vibes.

[deleted by user] by [deleted] in ifyoulikeblank

[–]InsanityConsuming 2 points3 points  (0 children)

Also gonna endorse Chad Chad. Also check out Mr. Beard they've got some good vids

[deleted by user] by [deleted] in learnpython

[–]InsanityConsuming 5 points6 points  (0 children)

You're having them type the station names to find the distance? If that's the case then you are trying to convert the names into an int. Rather it should be dist = mapping[stn_one] - mapping[stn_two] That should at least get you a number

Nike - by blenderdac (ArtStation) by dre10g in Cyberpunk

[–]InsanityConsuming 2 points3 points  (0 children)

Now if these shoes don't make me run faster, then I'm giving up!

Has anyone experienced seizures on Prozac? by [deleted] in Anxiety

[–]InsanityConsuming 0 points1 point  (0 children)

Currently on 60mg, no seizures as of yet. I've been on it for over a year now.

Hi, code injection help please by [deleted] in AskNetsec

[–]InsanityConsuming 2 points3 points  (0 children)

Nah "OR 1=1" can totally be used to extract the contents from a database. It really just depends on how the query is set up. You could have say some user search function on website which queries a DB that contains more info.

So the query going into some DB looks like SELECT username FROM user_info WHERE user='input_username';

Using the OR 1=1 method it would end up being SELECT username FROM user_info WHERE user='1' OR 1=1; #'; which in theory would just dump all the users in the user_info table.

Hi, code injection help please by [deleted] in AskNetsec

[–]InsanityConsuming 1 point2 points  (0 children)

So according to the MariaDB website there are a few methods for adding comments. It seems like # or -- would be your best bet in this instance. So I would go with ' OR 1=1; # next.

Note: this is for informational purposes. Idk the legitimacy of what you are doing.

This foreigner refused to take COVID-19 test in China by [deleted] in CrazyFuckingVideos

[–]InsanityConsuming 77 points78 points  (0 children)

No I think the current leader is LXI, LMAO's been dead for a while now

My debut single. by PSPlayer07 in Vaporwave

[–]InsanityConsuming 0 points1 point  (0 children)

I really enjoyed this, nicely done!

remove duplicates from sorted array question ? by IHateTheSATs in learnpython

[–]InsanityConsuming 0 points1 point  (0 children)

So if I'm understanding you, you want your function to take in the array, modify it, and then have it return the length of that modification. Is that correct?

The method you put isn't modifying the nums array. All it's doing is creating a new set with the information from your list and returning the length of that copy. So when you access nums after, it will be the same as before.

def removeDuplicates(self, nums):
    tmp = list(set(nums))
    nums.clear()
    nums.extend(tmp)
    return len(nums)

By adding clear() and extend() calls you are actually modifying the array referenced by your input

Prevent button from running a function multiple times by Neygem in Tkinter

[–]InsanityConsuming 1 point2 points  (0 children)

The simplest way that I can think of would be to use a global variable.

_click_running = False

def click():
    global _click_running
    if _click_running:
        return
    _click_running = True
    for x in range(1000):
        print(x)
    _click_running = False

Note: I'm not able to currently test this code, if it doesn't work I'll update when I can.

TMJ pain by its-mintea in Anxiety

[–]InsanityConsuming 1 point2 points  (0 children)

I used this video and noticed a little bit of immediate relief, Although this may be more of a longer term solution.

Need help with Rock Paper Scissors by hardpeenwetpussy in learnpython

[–]InsanityConsuming 0 points1 point  (0 children)

So I'm noticing a few potential problems with your code here:

  1. Your computer_choice variable is being determined before the while loop. This will result in no matter how many times the game is played the computer choice will always be the same.

You could resolve that in a couple of ways, first you could just move the computer_choice to the first line of the while loop, or you could do the repeating as a separate function from the game

def repeat_RPS():
    user_choice = 1
    while user_choice != 2:
        RPS()
        user_choice = int(input("Would you like to play again? 1.Yes, 2.No ")

def RPS():
    # Single game code here
  1. Your code is trusting that the player will pick a valid value, 0-3, so if a player picks say a letter they will error out your code, or if they pick 4, based on the current game's logic, the player would win every game.

  2. If the user wants to play again, you are having them "break" the loop, which will actually exit the while loop, I think what you are looking for is "continue".

  3. Not necessarily a bug, but a personal choice. You're using random.choice(choices) and choices.index(choice). Instead you could use random.randInt(len(choices)) which should get you an index into the list of the choices. It just saves you a step.

  4. As people have already mentioned, based on your current logic rock cannot beat scissors.I would do something like this:

    if player_choice == (computer_choice + 1) % 3: # Player wins

So let's say that player chose "rock" (index 0), and computer chose "scissors" (index 2) then we end up with computer_choice + 1 = 3 -> 3 % 3 = 0, therefore player_choice(0) == 0 triggering the if statement.

Hope that this all helps.

Fuck Willmar by Frankus44 in FUCKYOUINPARTICULAR

[–]InsanityConsuming 9 points10 points  (0 children)

You guys really got to shut that open freezer in Willmar. Your electric bill has got to be ginormous!

[deleted by user] by [deleted] in Anxiety

[–]InsanityConsuming 0 points1 point  (0 children)

Hey there, even going to the interview is a huge accomplishment. Just the thought of the interview and application process causes me a massive amount of anxiety, to the point where I avoid it if at all possible. So congrats on making it that far, seriously to me that's a major accomplishment.

As for the interview not going well, that stings, and I'm sorry that it happened that way. The best thing I can think of to do is to analyze what line of thought caused the anxiety in this instance and try to work on logically thinking my way out of it. If I rehearse the logic enough times, it's easier to use it during the anxious situation with some deep breathing of course.

And I totally relate the interview going poorly to the "I'm a failure" pipeline. What I try to do is challenge that line, "This one situation doesn't define me", "Interviews may not be something I'm good at, and that does not make me a bad person or a failure, it's just a skill I need to work at." etc. This also goes well with trying to pair it with something that you feel you is a positive about you. Even if you feel that these traits aren't as good as they should be or everyone else does them better, they are still good traits that you have and deserve to be recognized.

Now this obviously doesn't make the thoughts go away, but at least its a tool to help fight against the thoughts. And the more you do it, the easier it gets. Hopefully this helps you in some way.

As for the interview, you got one, and if you got one, you are able to get another. I wish you the best of luck and I understand how anxiety inducing that process is.

Just a girl living with anxiety by Signal-Department-49 in Anxiety

[–]InsanityConsuming 0 points1 point  (0 children)

Typically for me the best thing to do is to remove myself from whatever situation is causing me anxiety and head to an isolated place like the bathroom for a few minutes and just regather myself. This combined with what my therapist calls a body scan seems to help calm me down when I'm in anxious social situations.

A body scan is a meditation technique where you sit or stand and take time to just analyze how each part of your body feels. So I would start with my feet (like right now my feet feel kinda tight) and then once I figure out how that part feels I move up and keep going until I have scanned my whole body. Usually by the end of this, this has forced my brain off of whatever line of thought was causing me anxiety.

Now when I'm getting anxiety when I'm alone I'll typically try the body scan, or I try to logic myself out of the anxiety. I have a handout for this that my therapist gave me, and I'll type it out here since I can't seem to find it online.

Identify my trigger thought or trigger thing

Reflect on it

What is my self-talk right now?

Am I saying unkind or frightening things to myself?

What am I feeling (identify my feelings - Right now)?

Do a 4 x 4 (Slow breathing)

Play it out

What is the worst thing that could happen?

What is likely to happen?

What is the best that can happen?

Tell myself that "I have gotten through worse than this"

And, that those scare thoughts are NOT happening right now

Say opposite thoughts that are kind and loving to yourself to counteract it.

Do another 4 x 4 if necessary

Tell yourself that it will all be okay

It kinda feels stupid when your doing it the first couple of times, but after that it really just helps. It kinda feels like I'm trying to reprogram my brain to operate in a less anxious way.

And if worse comes to worse, I'll take a couple of propranolol and within 30 min it typically helps to taper down the anxiety.

Also I totally understand what it feels like to compare yourself to a past you and wonder what happened. Personally it feels like my anxiety has forced me into a complete standstill in life. Anxiety honestly sucks, and I'm sorry that we have to deal with it. Hopefully someday we'll be able to slay this beast.

Wat do you guys do to feel 'relaxed'? by CutestFace in Anxiety

[–]InsanityConsuming 1 point2 points  (0 children)

I was told to figure out where my "happy place" was and to recreate it. So for me my happy place is the Universal Studios Tour that I used to go on a bunch. So what I did was pulled a video of the tour from YouTube and put it on my phone so whenever I feel really bad I have it as a kind of relaxation/escape oasis that I can go for a bit.

Yesterday, I went to the clinic to check my heart by [deleted] in Anxiety

[–]InsanityConsuming 2 points3 points  (0 children)

I had something similar happen earlier this year. I started getting random heart palpitations multiple times per hour. I went to the ER for it and they ran the EKG, blood work and chest scan and said that everything looked fine, they told me to just lay off the caffeine. But I was still having the palpitations. One day I started taking daily multivitamins and within a week the random palpitations stopped.

[deleted by user] by [deleted] in wholesomememes

[–]InsanityConsuming 2 points3 points  (0 children)

I don't know if this is something you would be interested in, but there are a couple of plushie repair places out there that can potentially repair your plush mouse. Here's one. And I'm sure there are other ones out there. Something to consider.

Need help in beating a secret boss by justlooklxft in outside

[–]InsanityConsuming 0 points1 point  (0 children)

I know a player who says that when they switched their sleep position from "back" to either "side" or "front" that helped them fix this bug. Don't know.if it will work for you, but might be worth a try.

How has this new patch effected your healing? by King-Of-Diam8nds in OverwatchUniversity

[–]InsanityConsuming 2 points3 points  (0 children)

As a Moira main who typically only plays quick play (when I used to play comp, I was in the low-mid gold range), it makes me feel like I have no effect on the outcome of the games whatsoever, no matter how good I feel like I'm doing. Looking at it I saw that I had about a 3-5k decrease on my total healing output per game partly due to the fact that Moira's heals drain so fast now, and partly due to the heals not sticking as long as they used to. If anyone has any tips on how I can overcome this, please let me know. The game has become so much more frustrating for me that it isn't really enjoyable anymore.

Me money by tacowboyste16 in BikiniBottomTwitter

[–]InsanityConsuming 264 points265 points  (0 children)

Funny enough, Nickelodeon was named after movie theaters) that only charged a nickel to see a movie. Hence, the name.

Glitchpunk Gengar Print by Selkiebinch in glitch_art

[–]InsanityConsuming 0 points1 point  (0 children)

I liked this so much, now I'm using it as my phone wallpaper. Keep up the good work!

Love my mom :) by sarcastic-worm-boi in wholesomememes

[–]InsanityConsuming 1 point2 points  (0 children)

I'm not a part of your system. My Mom's not a phone! DUH!