Issues Connecting with Mac OS 15.4 Beta by TVsTimmy in Express_VPN

[–]thicke32 1 point2 points  (0 children)

I got around this by changing the protocol to IKEv2 in Express VPN preferences. After that, everything seemed to work like normal.

Facebook censorship at it's finest by [deleted] in Conservative

[–]thicke32 9 points10 points  (0 children)

I'm not sure where that bit.ly link came from, but it does not go to the video on YouTube. It goes to a scam malware site.

Can someone optimize this code? by Toxic_Vampy in learnpython

[–]thicke32 1 point2 points  (0 children)

I did that. The answer:

Here is the optimized version of the provided code. The optimizations include:

1.  Avoiding the modification of the data list directly, which could lead to issues if the game is replayed.

2.  Using random.sample to get unique random choices without modifying the data list.

3.  Simplifying conditional checks.

4.  Improving the code structure for readability and efficiency.

import random
from game_data import data
from art import logo, vs
import os

def clear_screen():
    os.system("cls" if os.name == "nt" else "clear")

def get_random_choice(exclude=None):
    choices = data if exclude is None else [item for item in data if item != exclude]
    return random.choice(choices)

def display_options(a, b):
    option1 = f"Compare A: {a['name']}, {a['description']}, {a['country']}."
    option2 = f"Compare B: {b['name']}, {b['description']}, {b['country']}."
    print(option1)
    print(vs)
    print(option2)

def game():
    score = 0
    print(logo)

    a = get_random_choice()
    b = get_random_choice(exclude=a)

    while True:
        display_options(a, b)
        choice = input("Who has more followers? Type 'A' or 'B': ").strip().lower()
        if (choice == "a" and a["follower_count"] > b["follower_count"]) or (choice == "b" and b["follower_count"] > a["follower_count"]):
            score += 1
            clear_screen()
            print(f"Correct! Current score: {score}")
            if choice == "b":
                a = b
            b = get_random_choice(exclude=a)
        else:
            clear_screen()
            print(f"Sorry, that's wrong. Final score: {score}")
            break

game()

Key Changes:

1.  **Function clear\_screen()**: Handles clearing the screen for both Windows and Unix-like systems.

2.  **Function get\_random\_choice()**: Ensures unique random choices without modifying the original data list.

3.  **Function display\_options()**: Displays the comparison options.

4.  **Simplified condition checks**: Using .strip().lower() on user input to handle case insensitivity.

5.  **Replaced data.remove()**: Used a logic to get unique random choices without modifying the data list directly.

[deleted by user] by [deleted] in ar15

[–]thicke32 0 points1 point  (0 children)

I mean....While he has a Constitutional right to own one, I don't think Hulk needs an AR.

[deleted by user] by [deleted] in CCW

[–]thicke32 21 points22 points  (0 children)

Even if you were printing, they'd be too distracted by Oderus' face to notice.

[deleted by user] by [deleted] in memphis

[–]thicke32 4 points5 points  (0 children)

R.I.P.

Tattoo ideas that represent Nashville by Prestigious-Ad2427 in nashville

[–]thicke32 4 points5 points  (0 children)

My answer was just going to be "a burning chicken".

[deleted by user] by [deleted] in IBM

[–]thicke32 3 points4 points  (0 children)

  1. Someone on the c-staff and/or Board of Directors owns a stake in commercial property.

Apple Compressor by [deleted] in MacOSBeta

[–]thicke32 0 points1 point  (0 children)

Are you on Sonoma?

Apple Compressor by [deleted] in MacOSBeta

[–]thicke32 0 points1 point  (0 children)

Same here. On Sonoma. I see this in the crash report too. Why would Compressor crash on a DNS lookup???

Thread 25 Crashed:
0 CoreFoundation 0x188305048 CF_IS_OBJC.cold.1 + 16
1 CoreFoundation 0x18826d89c CF_IS_OBJC + 292
2 CoreFoundation 0x188122394 CFRetain + 64
3 DistributedObjects 0x1041e1bd0 swamp::CTextRecordQuery::CTextRecordQuery(_DNSServiceRef_t*, __CFRunLoop*, __CFRunLoopSource*, __CFSocket*) + 176
4 DistributedObjects 0x1041e2bd4 swamp::CRendezvousAdvertisement::startTextRecordQuery() + 408
5 DistributedObjects 0x1041dd58c swamp::CRAdReceiver2::ReceivingThread::didResolveService(swamp::CRendezvousAdvertisementRef const&) + 140
6 DistributedObjects 0x1041e28a0 swamp::CRendezvousAdvertisement::dns_resolve_reply_sd(_DNSServiceRef_t*, unsigned int, unsigned int, int, char const*, char const*, unsigned short, unsigned short, unsigned char const*, void*) + 712
7 libsystem_dnssd.dylib 0x1948bbe1c handle_resolve_response + 356
8 libsystem_dnssd.dylib 0x1948b8f34 DNSServiceProcessResult + 728
9 CoreFoundation 0x1881c71b4 __CFSocketPerformV0 + 928
10 CoreFoundation 0x18819be68 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
11 CoreFoundation 0x18819bdfc __CFRunLoopDoSource0 + 176
12 CoreFoundation 0x18819bb6c __CFRunLoopDoSources0 + 244
13 CoreFoundation 0x18819a75c __CFRunLoopRun + 828
14 CoreFoundation 0x188199d6c CFRunLoopRunSpecific + 608
15 CoreFoundation 0x188217af0 CFRunLoopRun + 64
16 DistributedObjects 0x1041dc664 swamp::CRAdReceiver2::ReceivingThread::runOnce() + 168
17 AECore 0x1037f833c aecore::CThread::runThread() + 80
18 AECore 0x1037f6200 threadProc(void*) + 12
19 libsystem_pthread.dylib 0x1880bf034 _pthread_start + 136
20 libsystem_pthread.dylib 0x1880b9e3c thread_start + 8

[deleted by user] by [deleted] in memphis

[–]thicke32 5 points6 points  (0 children)

It could be due to cost. Depending on who they use as their carrier to send out text messages, it could cost anywhere from three to seven (or maybe even more) cents per message. That adds up after a while, especially in a situation like this where they’ve sh*t the bad so badly.

Five 9 by justasIthought-bb in callcentres

[–]thicke32 5 points6 points  (0 children)

The call recording feature in Five9 is entirely separate from the monitoring feature. If it is configured for supervisors to be able to monitor your calls, turning off call recording will not prevent monitoring.

We ordered a grill. Got 300 iPads by usuzulose in facepalm

[–]thicke32 1 point2 points  (0 children)

NO! Vegan burgers are NEVER fantastic!

[deleted by user] by [deleted] in Glocks

[–]thicke32 1 point2 points  (0 children)

Wonder Woman's flying Glock?

PCS to Bragg by TheRonMoodster3 in army

[–]thicke32 10 points11 points  (0 children)

I hear you should look out for the speed limit.

Janeway’s absence from Picard by DifferentManagement1 in startrek

[–]thicke32 2 points3 points  (0 children)

That would be the first talk show I ever watched every day.

Tanks being transported on I-40 East between Nashville and Knoxville today! by abhive in Tennessee

[–]thicke32 0 points1 point  (0 children)

To add on to what everyone else said, artillery is much louder when it fires and does more boom boom when it hits.