#voice-chat-text-0

1 messages ยท Page 166 of 1

scarlet halo
#

so you can paste elsewhere

#

would be cool

echo garden
#

Official 4K Video for โ€œHandyโ€ by โ€œWeird Al" Yankovic

Listen to โ€œWeird Al" โ€Œ Yankovic : https://weirdalyankovic.lnk.to/listenYD
Subscribe to the official โ€œWeird Al" โ€Œ Yankovic YouTube channel: https://weirdalyankovic.lnk.to/subscribeYD
Watch more โ€œโ€œWeird Al" โ€ŒYankovic videos: https://weirdalyankovic.lnk.to/listenYC

Follow โ€œWeird Al" โ€Œ Yank...

โ–ถ Play video
celest saffron
#

I'll be back

#

with verification

scarlet halo
#

:LETSFUCKINGGOOOO:

#

very cool emoji

#

sadly i dont have nitro

#

thats more like it

#

IStock

echo garden
#

@somber heath my lady is turned on by working guys

#

i need to find a job

scarlet halo
#

thats an amazing fix

#

true tho

#

TRUE THAT IT WAS TOO FAR

#

np

#

alright

#

alright i wonder

#

if women can choose to not date short guys

#

then can men reject overweight women

#

without getting some sort of hjate for it

#

hate*

toxic arch
scarlet halo
#

i should honestly shut up before i get banished to the shadow realm

#

? repeat that

#

true tho

toxic arch
scarlet halo
# toxic arch i am a overweight woman ๐Ÿ˜ 

ษช แด…ษชแด…ษดแด› sแด€ส ษช แดกแดแดœสŸแด… ส€แด‡แดŠแด‡แด„แด› sแดแดแด‡แดษดแด‡

#

true tho

scarlet halo
#

are you or are you not

toxic arch
scarlet halo
#

lmao

toxic arch
#

huh

#

i dont watch andrew tate

scarlet halo
#

i watch who i want

#

wait

#

that came off as rude imo

#

siorry

toxic arch
#

i think im gonna have to anaylse the executable

scarlet halo
#

executables are cool

toxic arch
#

looks like the characters are intertwined with the others like riskys revenge

#

but i have no way of copying a character so this is gonna be hard

scarlet halo
#

yay

#

isnt that fun

somber heath
#

!d tkinter

wise cargoBOT
#

Source code: Lib/tkinter/__init__.py

The tkinter package (โ€œTk interfaceโ€) is the standard Python interface to the Tcl/Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, including macOS, as well as on Windows systems.

Running python -m tkinter from the command line should open a window demonstrating a simple Tk interface, letting you know that tkinter is properly installed on your system, and also showing what version of Tcl/Tk is installed, so you can read the Tcl/Tk documentation specific to that version.

somber heath
#

I could look at your code, but I'm restricted to mobile and I'm cold and crotchety.

sage valley
#

Hey guys is it possible to ask you a question?

somber heath
#

Is is. Whether it's possible for you to receive a satisfactory answer, however, is yet to be determined. What's up?

celest saffron
#

of course

sage valley
#

I recently started learning python and covered the fundamentals and recently began webdev

proven ice
#
import time
from multiprocessing import Queue
from threading import Thread
from fastapi import FastAPI


app = FastAPI()


class Run:
    def __init__(self):
        self.run_detector = True
        self.com_queue = Queue()
        self.running_thrad = None

    def run_detect(self, queue):
        while queue:
            print("self.com_queue: ", self.com_queue.qsize())
            print("self.run-detector:: ", self.run_detector)
            print("hey there i'm running")
            time.sleep(2)

    def stop_detector(self) -> bool:
        print("stopping the detector -> ")
        self.run_etector = False
        self.com_queue.put(False)
        return True

    def run(self) -> None:
        self.running_thread = Thread(target=self.run_detect, args=[self.com_queue])
        self.running_thread.start()
        # self.running_thread.terminate()


runner = Run()


@app.get("/")
async def main() -> dict[str, str]:
    """
    main function
    """
    return {"message": "2"}


@app.get("/run")
async def run_detector() -> dict[str, str]:
    runner.run()
    return {"message": "started the thread"}


@app.get("/stop")
async def stop_detector() -> dict[str, str]:
    runner.stop_detector()
    return {"message": "detector stopped"}

Hi, Need help on the above code.
I'm trying to stop the thread but nothing is working like
I've tried to modify the run_detector directly without passing to thread
and also tried using queue but it's not working?

sage valley
#

But im having trouble picking django or flask to learn as I know the trade offs but i want to know if I have the prerequisite knowledge necessary to learn

proven ice
#

go for fastapi

sage valley
#

I see

#

If you don't mind me asking what does fastapi teach me in terms of learning webdev?

proven ice
#

You'll learn about types and async programming

sage valley
#

Interesting. Will it give me some ground and fundamentals moving forward in webdev when using frameworks like django?

proven ice
#

Django is well-suited for building large-scale, feature-rich web applications,
while FastAPI excels in building high-performance APIs with modern asynchronous capabilities.
By familiarizing yourself with these frameworks, you'll have a solid foundation to move forward in web development
and later on you can pickup any of the framework that doesn't matter once you'll have required concepts

sage valley
#

Thank you so much

#

I appreciate the help

celest saffron
#

btw

#

I wanted to ask if some of you were taught programming in school

#

@wind raptor ?

#

I learn it in school but it isn't the height level

sage valley
#

Nah Im self taught

celest saffron
#

Nice

#

in school I learned only C#
but c, c++ and python I had to learn by myself

#

life is great

#

untill you need to debug code

#

what your opinion on legalization of nuclear bombs?

sage valley
#

Definitely ok

celest saffron
#

singelton is cool

#

but it is more of a concept

#

programming isn't age restricted

#

Im 16 for example

#

i meant isnt

stoic cloud
#

same

celest saffron
#

everyone can start programming whenever they are ready

#

my first language was python but I never got too deep into it until two years ago

#

ohhh

#

Im learning it right now

#

by the way what is the difference between tenserflow and pyflow?
I read about them but I would like to hear a second opinon?

stoic cloud
#

no idea

dim dock
proven ice
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @turbid sandal until <t:1689530810:f> (10 minutes) (reason: attachments spam - sent 10 attachments).

The <@&831776746206265384> have been alerted for review.

elfin fractal
#

!unmute @turbid sandal

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @turbid sandal.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @turbid sandal until <t:1689535480:f> (10 minutes) (reason: attachments spam - sent 8 attachments).

The <@&831776746206265384> have been alerted for review.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1689538178:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

stoic chasm
#

wow everyone being warned

cinder dawn
#

macbook or windows for coding

lavish rover
#

i prefer macos

whole bear
#

yo

whole bear
#

does anyone know what code editor this is?

whole bear
stoic chasm
obsidian dragon
lucid blade
obsidian dragon
forest grove
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @obsidian dragon until <t:1689601343:f> (10 minutes) (reason: newlines spam - sent 102 newlines).

The <@&831776746206265384> have been alerted for review.

rugged root
#

!unmute 163839418623459330

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction timeout for @obsidian dragon.

obsidian dragon
amber raptor
#

The coronavirus pandemic has resulted in millions of cases across the globe. The United States has one of the highest death rates due to COVID-19 across the world, and its mortality rates will likely increase. Due to different approaches to containing the virus across countries โ€“ as well as the quality and accessibility of health [โ€ฆ]

scarlet halo
#

:O

amber raptor
#

@stoic chasm

rugged root
#

New user setup time

#

Hey Maro

lucid blade
#

๐Ÿ˜„

wind raptor
#

Hi

radiant wave
#

Can someone unmute me ?

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

lucid blade
#

hey stranger ๐Ÿ™‚

jolly terrace
#

Chris i can share my screen?

lucid blade
#

you can type in here we pay attention to text to

jolly terrace
radiant wave
#

Americas. How many burgers you eat today?

wind raptor
jolly terrace
#

web scrapping

wind raptor
#

Most web scraping projects break TOS of the site they are scraping, so we generally don't allow it as content on stream

jolly terrace
#

okay

nimble epoch
#

Helloo

#

Hemlock, Opalmist!

#

It's been a while

#

It's because of dopamine

lucid blade
#

incorrect plugin / extension use ?

versed spear
#

Looking forward to participate in the conversation once I get voice verified

scarlet halo
#

text more

lucid blade
#

programming with chat gpt be like ...

jolly terrace
versed spear
#

human meat seems like a health hazard

#

we're most likely to catch disease/parasites from human meat than any other

whole bear
lucid blade
#

use it as a tool to extend your skills

#

but dont use it as the solution

whole bear
#

Will do

gentle flint
lucid blade
#

๐Ÿ˜„

#

@gentle flint python programming be like ...

gentle flint
#

pretty sure python programming doesn't cause a fire risk

rugged root
#

Not with that attitude

#

That's quitter talk

stoic chasm
#

thats sutch a sketchy looking website

lucid blade
#

was off reddit

valid elm
valid elm
versed dagger
#

hello

#

want website?

frozen owl
#
nimble epoch
#

Hemlcokkkkk

rugged root
#

Sup

nimble epoch
#

it's been soo long

#

Ffs

#

That cut deep

#

Mr. Hemlock

#

Any environment is funny if there are enough people in it

rugged root
#

Eh

#

Potentially

nimble epoch
#

what could be wrong with a simple innocent little rar file

rugged root
#

XDXD.rawr

nimble epoch
#

8080 has a badass voice

#

I am lost

lucid blade
#

๐Ÿ˜„

nimble epoch
#

Lmaoooo @lucid blade

lucid blade
#

๐Ÿ˜„

nimble epoch
#

8080 and hemlock, you guys are a sick duo

#

You can't prove that

#

You know 8080 this was just reckless. Now you're going to have to cut us in to keep us quiet.

lucid blade
rugged root
#

@lucid blade

As explained by reddit user exteras:
"Just so people don't get confused: these are real bills, printed by the US government. He buys uncut sheets of them from the Bureau of Engraving; anyone can buy these. He then takes them to a professional printer who cuts them up into pads and perforates them.
He's not printing the bills themselves, and its not illegal."

nimble epoch
#

It wouldn't make sense to buy it if it wasn't cheaper though is it

#

Hemlock

#

Miyamoto Musashi once said, if you know the way broadly, you will see it in everything else. Do you see it in everything else?

rugged root
#

Not sure

rugged root
nimble epoch
#

Haha

#

Where are you from 80?

#

Your accent is godly

lucid blade
#

england in the midlands

nimble epoch
#

Nice

lucid blade
#

i really hide my accent

nimble epoch
#

You sound like what I imagine zeus would be like

lucid blade
#

๐Ÿ˜„

vivid jacinth
#

that means Australians are the strongest people

lucid blade
#

๐ŸŒฉ๏ธ

vivid jacinth
#

cause anything that doesn't kill you makes you stronger ๐Ÿ˜

nimble epoch
#

Are you also insanely jacked and chiseled?

lucid blade
#

no im really skinny and lanky ๐Ÿ˜„

rugged root
#

HA

vivid jacinth
rugged root
#

Come at me scrublord I'm ripped

nimble epoch
dry jasper
#

0 is still the first index

nimble epoch
#

Spectre

#

No

#

What about me

#

You've known me for 3 years

#

Lmaooooo

#

Ykw

#

8080 you sound like tom hardy

#

That's who you remind me of

#

"server acquired"

#

What is going on?

#

Lmaooooo

sweet lodge
#

Hi Hemmy

#

Long time no talk

nimble epoch
#

He's testing your java

#

lmaooooo

#

LMAOOOOO

nimble epoch
#

Are you googling jokes?

sweet lodge
#

Camp GetsShitDone

rugged root
#

How've you been bud?

#

Yeah been a while

nimble epoch
#

I have a shit joke

#

What's brown and sticky?

#

Well done

#

A stick

vivid jacinth
#

and my uncle Dinesh

sweet lodge
#

Is hard?

#

Why can't you do?

nimble epoch
#

8080 it gets boring when you're quiet

lucid blade
#

๐Ÿ˜„

nimble epoch
#

lmao okay

lucid blade
#

๐Ÿ˜‰

#

if at 1st you don't succeed .... never skydive

nimble epoch
#

What's up with these questions?

sweet lodge
# rugged root How've you been bud?

firFine
Shit

And I'm stuck with vendors that are repeatedly giving me -- like, I've got one vendor that's told me four times in a row to "just try installing our application on a different server"
_I only have one server firA _

All together I'm going insane
But I think I'm managing

#

WTF

#

30k??

lucid blade
#

might be a command to boot in to safe mode from your current session

frozen owl
lucid blade
#

bcdedit /set {current} safeboot minimal

nimble epoch
#

ah shit man 8080 you could play batman

#

Checks out

vivid jacinth
# vivid jacinth and my uncle Dinesh

Keen on more dad Jokes? Hit the subscribe button ya legends ๐Ÿ‘‡

Find us on social media:
https://www.instagram.com/yeahmadtv
https://www.tiktok.com/@yeahmadtv
https://www.facebook.com/yeahmadtv

If you're in Sydney and want to come a long to our next shoot, shoot us a message!

Sam's Socials:
https://www.instagram.com/sammywalshhh_/

Akila's Soci...

โ–ถ Play video
nimble epoch
#

Crazy how?

#

Fr?

frozen owl
nimble epoch
#

When did you first realize that something was off?

#

with the girl that is

lucid blade
#

bcdedit /set {current} safeboot network

#

shutdown /r

#

bcdedit /deletevalue {current} safeboot

frozen owl
rugged root
nimble epoch
#

8080 do you really print stickers?

lucid blade
#

yeh

nimble epoch
#

So you grew sick of programming?

lucid blade
#

just for other people

nimble epoch
#

Have you considered research?

lucid blade
#

i dont think ill get back in to programming for a living

nimble epoch
#

You'd be doing stuff for yourself and work on what you once enjoyed doing

#

What about things like google brain?

#

Do you believe in anarchy 8080?

#

Badass

#

You're like hobie brown from across the spider verse

lucid blade
#

mitch altman

nimble epoch
#

Sick accent and badass guy

#

what does that even mean

#

Oh you normally have a thicker accent?

#

I don't have a telephone voice

#

yeah but that's different

#

you don't swear as much but your accent doesn't change

#

LMAOOOOO

#

Nicee XD

#

did you also work at NASA?

#

Or is that one of the things on the internet we shouldn't believe

#

Alright, this was fun. I'm going to hop off. 8080, it was nice meeting you. I had a good laugh.

nimble epoch
lucid blade
#

yeh not far

#

Wolverhampton

#

its a shit hole ๐Ÿ˜„

nimble epoch
#

Very Tommy Shelby like

lucid blade
#

dont ever visit ... they wont let you leave ๐Ÿ˜„

nimble epoch
lucid blade
#

yeh but im building a space ship to escape ๐Ÿ˜„

#

subaruforester

#

๐Ÿ˜‰

vivid jacinth
#

spaceship with a space in between

nimble epoch
#

I guess

vivid jacinth
#

sorry ๐Ÿคฆโ€โ™‚๏ธ

lucid blade
#

its my pride and joy ๐Ÿ˜„

#

makes turbo noises

nimble epoch
#

Alright before I leave, could you please say something cool in your cool unfiltered accent

#

Yes please

#

Ah

#

Very nice

lucid blade
#

love it @somber heath

#

๐Ÿ˜„

vivid jacinth
lucid blade
#

yes 2min

#

robots are still talking

#

๐Ÿ˜„

vivid jacinth
#

@whole bear

lucid blade
#

welcome ... WHAT IS YOUR QUEST!?

#

๐Ÿ˜„

#

googles

#

Scaling neural networks has been popular in recent years. Several potent deep networks are produced with the depth largely increased for exponential expressivity. Then, the hidden dimension is effectively expanded using sparse MoE models and model parallelism techniques. As the last atomic dimension of the neural network, the sequence length sho...

nimble epoch
#

Crazy

lucid blade
#

hehe

dry jasper
nimble epoch
#

All fun and jokes until it says the same thing back to you

#

hemlockkkk

#

Hemlock

rugged root
#

Sup

nimble epoch
#

๐Ÿ˜ฆ

#

Did you say 600000?

#

That's Bugatti money

lucid blade
#

meh subaru > bugatti ๐Ÿ˜›

#

in my dreams

nimble epoch
lucid blade
#

lol ๐Ÿ˜„ youre funny too ๐Ÿ˜‰

nimble epoch
#

no, sir

#

I am only honest

#

I speak the truth and the truth alone

lucid blade
#

autism is a super power

#

๐Ÿ˜„

nimble epoch
lucid blade
#

yeh people hate the truth though in most cases ... i think im on the spectrum but never diagnosed

nimble epoch
#

I'm not on the spectrum

lucid blade
#
nimble epoch
lucid blade
#

i wish im not that clever

nimble epoch
#

You would've been the entire package had you been one

#

A god among humans

lucid blade
#

lol i run a hacker space

#

(online)

nimble epoch
#

Okay...

rugged root
#

I'll be back in like an hour

nimble epoch
#

noooo

rugged root
#

Have to have a meeting with a vendor to get our password manager up and running for the firm

nimble epoch
#

8080

#

What's your story

vivid jacinth
#

@lucid blade have you heard of this company called Sandvine?

nimble epoch
#

Or they'd form a human chain

vivid jacinth
#

1 ton isnt that much

nimble epoch
#

Wait

#

No

#

It's 1 + 2 + 3 + 4.... + 64?

#

or 1+2+4+8....?

lucid blade
#

^ this one

#

1 2 4 8 16 32 ...

nimble epoch
#

that's not 2^84

#

that's 2^64 - 1

vivid jacinth
#

1 cup = 8 oz

nimble epoch
#

that's 9e12 tonnes

lucid blade
#

OMG

nimble epoch
#

yessir

#

Assuming one grain weighs 0.05 grams

vivid jacinth
#

1 litre rice = 0.8 kg

zenith radish
#

2.8147498e+14

nimble epoch
#

ay plome

#

You're back

zenith radish
#

two hundred eighty-one trillion four hundred seventy-four billion nine hundred eighty million

dry jasper
#

Therefore, 2 to the power of 48 is 281474976710656.

zenith radish
#

56294996000

vivid jacinth
#

yes

dry jasper
#

5.629.499.534,21312 liter

zenith radish
#

13340046445 liters

somber heath
#

!e py grains = 1 total = 0 for _ in range(64): total += grains grains *= 2 print(total)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

18446744073709551615
vivid jacinth
#

1 litre rice = 0.8 kg

dry jasper
#

One kilogram of white medium rice converted to liter equals to 1.24 L

zenith radish
#

140737490

wise cargoBOT
#

@midnight agate :white_check_mark: Your 3.11 eval job has completed with return code 0.

18446744073709551615
gentle flint
#
[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 274877906944, 549755813888, 1099511627776, 2199023255552, 4398046511104, 8796093022208, 17592186044416, 35184372088832, 70368744177664, 140737488355328, 281474976710656, 562949953421312, 1125899906842624, 2251799813685248, 4503599627370496, 9007199254740992, 18014398509481984, 36028797018963968, 72057594037927936, 144115188075855872, 288230376151711744, 576460752303423488, 1152921504606846976, 2305843009213693952, 4611686018427387904, 9223372036854775808, 18446744073709551616]
lucid blade
somber heath
#

I knew there was a trick, I didn't know what it was, specifically.

dry jasper
#

!e

wise cargoBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

nimble epoch
#

so i was right

gentle flint
#
[1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 274877906944, 549755813888, 1099511627776, 2199023255552, 4398046511104, 8796093022208, 17592186044416, 35184372088832, 70368744177664, 140737488355328, 281474976710656, 562949953421312, 1125899906842624, 2251799813685248, 4503599627370496, 9007199254740992, 18014398509481984, 36028797018963968, 72057594037927936, 144115188075855872, 288230376151711744, 576460752303423488, 1152921504606846976, 2305843009213693952, 4611686018427387904, 9223372036854775808]
dry jasper
#

!e
import matplotlib.pyplot as plt

data = [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 274877906944, 549755813888, 1099511627776, 2199023255552, 4398046511104, 8796093022208, 17592186044416, 35184372088832, 70368744177664, 140737488355328, 281474976710656, 562949953421312, 1125899906842624, 2251799813685248, 4503599627370496, 9007199254740992, 18014398509481984, 36028797018963968, 72057594037927936, 144115188075855872, 288230376151711744, 576460752303423488, 1152921504606846976, 2305843009213693952, 4611686018427387904, 9223372036854775808, 18446744073709551616]

plt.plot(data)
plt.show()

wise cargoBOT
#

@dry jasper :warning: Your 3.11 eval job has completed with return code 0.

[No output]
gentle flint
#

18446744073709551615

nimble epoch
#

yessir

#

It's 2^64 -1 grains

gentle flint
#

at 0.05 grams, it's 922337203685477632 grams

nimble epoch
#

Yeah

#

so 9e12 tonnes

vivid jacinth
#

added is 2^64-1

gentle flint
#

yep

nimble epoch
#

8080

vivid jacinth
#

1 kg = 15432 grains

nimble epoch
#

noooooo

lucid blade
#

peace ๐Ÿ‘‹

nimble epoch
#

that doesn't make sense

#

A single grain of rice makes a grain

vivid jacinth
#

1 rice grain ~= 25mg

noble solstice
vivid jacinth
#

!e

grains = 2**64 - 1
weight_kg = grains * 25 * 1e-6
print(weight_kg)
wise cargoBOT
#

@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.

461168601842738.75
vivid jacinth
#

460 billion ton

vivid jacinth
noble solstice
vivid jacinth
#

yes

#

we were just calculating how much rice it is

noble solstice
#

simple words

wind roost
#

some online cybersecurity groups are like that

rugged root
wind roost
#

dubai

whole bear
#

!e

import os
wise cargoBOT
#

@whole bear :warning: Your 3.11 eval job has completed with return code 0.

[No output]
whole bear
#

hm

wind roost
#

its 0% up to 12k in the us

rugged root
amber raptor
zenith radish
#

Floating nuclear power stations (Russian: ะฟะปะฐะฒัƒั‡ะฐั ะฐั‚ะพะผะฝะฐั ั‚ะตะฟะปะพัะปะตะบั‚ั€ะพัั‚ะฐะฝั†ะธั ะผะฐะปะพะน ะผะพั‰ะฝะพัั‚ะธ, ะŸะะขะญะก ะœะœ, lit.โ€‰'floating combined heat and power (CHP) low-power nuclear power plant') are vessels designed by Rosatom, the Russian state-owned nuclear energy corporation. They are self-contained, low-capacity, floating nuclear power plants. Rosatom pl...

whole bear
#

lol

#

who's coding rn

rugged root
#

Might be shortly, but not currently

whole bear
#

alright

rugged root
#

@ionic ferry yo

#

How've you been?

ionic ferry
#

Hey @rugged root , i am doing great ๐Ÿ™‚ what about you

#

long time

late spoke
ionic ferry
#

I've travelling to overseas and not able to join discord recently

rugged root
#

Oh sick, where all have you been traveling?

ionic ferry
#

Japan

#

konichewa mina san

rugged root
#

Sick

#

Enjoying it?

ionic ferry
#

Yeah, its beautiful. Enjoyed a lot

whole bear
#

very nice call

zenith radish
whole bear
#

lol

wind roost
#

without help desk who will hold back the hoard

gentle flint
#

you mean horde

wind roost
#

yea

#

buggy app

gentle flint
#

@wind roost ivecometotalkwithyouagain

wind roost
#

thank you

#

i need to get to 50 one way or another

#

correct

rugged root
#

So long as it's not in a spammy way yeah

turbid sandal
#

@rugged root is your name daniel

rugged root
#

Correct

wind roost
#

don't worry i won't

rugged root
turbid sandal
#

and is your name Daniel Brown

rugged root
#

Yes, it's in my profile on my Spotify

wind roost
#

but there have been cuts in the tech sector esp. for contractor

rugged root
#

Mainly in big tech I thought

wind roost
#

I don't work in big tech and contractors are being cut

rugged root
#

Is it mainly businesses just going to MSPs?

wind roost
#

maybe i work in education and it mainly balancing budget and the consolidating onto one platform

#

one

rugged root
#

Yeah that makes sense. Are you US based?

wind roost
#

yes

rugged root
#

Doesn't help how much we skimp on education

rugged root
wind roost
#

yea its all about the tax dollars

amber raptor
#

Many products both within and outside Microsoft rely on .NET Framework. Beginning with version 4.5.2 and later, .NET Framework is defined as a component of the Windows operating system (OS). Components receive the same support as their parent products, therefore, .NET Framework 4.5.2 and later follows the lifecycle policy of the underlying Windows OS on which it is installed. The support lifecycle for various versions of Windows can be found on the Windows lifecycle fact sheet.

#

.NET Framework 4.8 is the latest version of .NET Framework and will continue to be distributed with future releases of Windows. As long as it is installed on a supported version of Windows, .NET Framework 4.8 will continue to also be supported.

rugged root
#

With regards to Framework

amber raptor
gentle flint
#

@zenith radish never heard you make these noises before

#

this chat

#

I'm dying

keen ingot
#

๐Ÿฅธ

rugged root
#

@somber heath We swapped to COBOL

somber heath
glad knoll
#

Anyone know about sony imx477?

rugged root
gentle flint
#

gotta go shower, back in 20 minutes

glad knoll
#

Also where is gofek

#

He left the server?

keen ingot
gentle flint
#

no lol

glad knoll
#

Why tho?

keen ingot
#

it takes max 5.5 min

raven mural
#

โš ๏ธ gas station behavior โš ๏ธ

glad knoll
#

Oh lol

keen ingot
#

waiting in the line

raven mural
#

Are the vc escapades classified as truck stop behavior or gas station behavior?

#

favorite variant btree?

#

I bet youโ€™re a huge red black tree

#

I KNEW

#

Ha!

#

The amount of over talking to silence someone is crazy, yo

rugged root
keen ingot
#

hahahhaha that oh man

#

who said testa di cazzo?

wind roost
#

i agree

rugged root
#

If you are writing a set of options on how to eat a pie, would that be a CRUST API?

#

I'm sorry, that was really forced

keen ingot
#

ehhh hahahaha

glad knoll
#

I'm a embedded developer and mac is not friendly for embedded development : )

wind roost
#

depends what kind of org and the size and your postion in the company

amber raptor
#

Yea but Embedded is few programmers

rugged root
#

On the scale of LP rage, yeah

#

Well correction

#

Modulating it now

glad knoll
#

Editor doesn't matter but let's consider i want to fash my development board and mac os won't support wide range of drivers

#

I also don't think it allows to ssh etc

wind roost
#

lets move on

tepid edge
#

no

echo garden
#

@rugged root HI how you been

amber raptor
#

Speaking of languages, it's time to halt starting any new projects in C/C++ and use Rust for those scenarios where a non-GC language is required. For the sake of security and reliability. the industry should declare those languages as deprecated.

Likes

7691

Retweets

1582

rugged root
#

@zenith radish Tokyo?

#

!zen compli

wise cargoBOT
#
The Zen of Python (line 3):

Complex is better than complicated.

rugged root
#

Well hmm

gentle flint
willow light
#

!p3p 20

#

whoops

#

!pep 20

wise cargoBOT
#
**PEP 20 - The Zen of Python**
Status

Active

Created

19-Aug-2004

Type

Informational

willow light
#

oh it won't give more than that

rugged root
# gentle flint

What better way to check the battery life than shorting the cell?

willow light
#

That's a nuclear take

#

I thought the majority in eastern europe was squatting and eating sunflower seeds

#

Isn't the groupthink here "I like to use Discord"?

gentle flint
stuck furnace
#

Whatever you say I am, that's what I'm not.

willow light
#

@zenith radish you sound like you would enjoy reading Emerson

vivid jacinth
#

I am me

#

not

gentle flint
willow light
#

Sex toys have a scent?!?

gentle flint
#

idk, but apparently they have a sent

willow light
#

the back room of spencer's has a smell but it isn't the sex toys, it's the incense and the cannabis supplies.

gentle flint
#

the spelling of the last section reminds me of Chaucer

cinder dawn
#

what did i walk in on

cinder dawn
#

ill do all of you

solemn igloo
#

@weary pivot hi

weary pivot
#

hi

#

u python?

solemn igloo
#

kinda

#

still learning llol

weary pivot
#

i need a bit of help

#

maybe ull know

solemn igloo
#

what kind

weary pivot
#

im enw

#

can i dm you?

solemn igloo
#

AH

#

so .env

solemn igloo
elfin bone
#

guys

#

@solemn igloo

#

gather around

#

i must tell you

#

something

#

let me lend you in on a tip

solemn igloo
#

huh

weary pivot
#

@elfin bone

#

can u help me with python?

elfin bone
#

A-MAZING

#

never back down

#

never give up

#

@weary pivot depends

#

on what?

#

never back down

#

never give up

#

A-mazing

#

@solemn igloo dms

weary pivot
#

import utime
from machine import Pin, PWM

Button = Pin(17,Pin.IN)
Butto = Pin(20,Pin.IN)
pwm = PWM(Pin(15))

MIN = 100000
MID = 150000
MAX = 200000

pwm.duty_ns(MID)
pwm.duty_ns(MAX)

left = Button(17)
right = Butto(20)

def move_right():
pwm.duty_ns(MAX)
utime.sleep(1)
pwm.duty_ns(MID)

def move_left():
pwm.duty_ns(MIN)
utime.sleep(1)
pwm.duty_ns(MID)

this is my current code
i am trying to achieve were when i press the left button the servo moves left
and when i press the right button the servo moves right
currently when i plug this code into it it just keeps moving in one directionm without me even clicking anything
im new to coding and really need some help

#

@elfin bone

elfin bone
#

very small error

#

so

#

basically

#

add this to the bottom:

#

move_right()

#

i dont fully get this code

#

bc im new, but it should work

#

bc u need to print the def

#

๐Ÿ‘จ๐Ÿฟโ€๐ŸŒพ ๐Ÿ‘Š ๐Ÿ‘ฎโ€โ™‚๏ธ

weary pivot
#

while True:
left.value()
move_left
right.value()
move_right()

elfin bone
#

did u fix it

#

just do it

#

see if it works

weary pivot
#

idk im so confused

#

wdym def

elfin bone
#

import utime
from machine import Pin, PWM

Button = Pin(17, Pin.IN)
Butto = Pin(20, Pin.IN)
pwm = PWM(Pin(15))

MIN = 100000
MID = 150000
MAX = 200000

pwm.duty_ns(MID)
pwm.duty_ns(MAX)

left = Button
right = Butto

def move_right():
pwm.duty_ns(MAX)
utime.sleep(1)
pwm.duty_ns(MID)

def move_left():
pwm.duty_ns(MIN)
utime.sleep(1)
pwm.duty_ns(MID)

move_right()

#

bc ur defining something

#

on move right

#

u need to use it

#

what do u mean what do i mean def

#

does it work now

#

@weary pivot

weary pivot
#

nope

solemn igloo
#

dam

elfin bone
#

GOD

#

UHH

#

@solemn igloo can u help him

#

let me think

#

whats the issue

#

explain it fully

weary pivot
#

look at dms

solemn igloo
#

lol

elfin bone
#

ru sure its not a problem with Pin,PWM

#

@solemn igloo sh

weary pivot
elfin bone
#

man

#

this guy wants to like

#

make me click on his website

#

jk

#

@weary pivot @solemn igloo

#

yo bro

#

this guy said he knows russian nuclear codes

solemn igloo
#

huh

elfin bone
#

ask him

#

huh nothing

elfin bone
#

dev

#

u said that right

solemn igloo
#

what

#

said what

elfin bone
#

nothing u said it

solemn igloo
#

i said huh

elfin bone
#

moo

elfin bone
#

what

#

it cant be so serious

#

why cant you "discuss" it

#

how serious was it

#

were you trolling

#

or inappropiate stuff

#

ok so its probably something bad

#

its ok

#

i dont care

#

its over anyway

#

just make an alt

#

if it affected you

vocal basin
#

discord client, I assume

elfin bone
#

an ALT?

#

an alternative account

#

so make a different discord account

vocal basin
elfin bone
#

@vocal basin what the fuck is your problem

#

im being nice to him

#

this isn't your buisness

#

and neither did i mention you

#

its ok

#

youdo you

vocal basin
worldly magnet
elfin bone
#

and leave me alone

worldly magnet
#

what are you talking about?

elfin bone
#

im giving a guy advice and accepting his decisions

#

and alisa is making a fuss over it

#

and giving an aggresive attitude

#

anyways goodnight

vocal basin
elfin bone
#

although

#

he isn't evading a ban

#

who said he cant make a new acc

#

no you dont need to hide

#

you can just make a new acc

#

its ok

#

moving topics

#

goodnight

#

what does grep do

worldly magnet
#

ps/top

radiant wave
orchid spindle
#

does anybody know how to open a csv in vscode?

vocal basin
#

you can open it just like a regular text file
or do you want it to be typeset as a table?

orchid spindle
#

yes as a table this is my first hw assignment and I am trying to use the data set in the csv to

#

I've tried 3 different ways but it won't budge

vocal basin
orchid spindle
#

Financial Analysis

Total Months: 86
Total: $22564198
Average Change: $-8311.11
Greatest Increase in Profits: Aug-16 ($1862002)
Greatest Decrease in Profits: Feb-14 ($-1825558)
need a script to take the data set and output this, as well as export to .txt

vocal basin
orchid spindle
#

yes

vocal basin
#

!d csv

wise cargoBOT
#
csv

Source code: Lib/csv.py

The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in RFC 4180. The lack of a well-defined standard means that subtle differences often exist in the data produced and consumed by different applications. These differences can make it annoying to process CSV files from multiple sources. Still, while the delimiters and quoting characters vary, the overall format is similar enough that it is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer.

vocal basin
#

!d pandas

wise cargoBOT
vocal basin
#

these two libraries help with handling CSV

#

first is built-in

#

second is a package

#

problematic problem

#

name doesn't fully describe what's asked of a solution

#

leetcode changed interface again

#

it took me way to long to understand my previous solution

#

I refactored it a little bit and now it's faster, allegedly

#

@midnight agate multiple most common elements?

vocal basin
valid elm
#

@midnight agate what's your opinion on how to use git through GIT bash or through GIT GUI(GITHUB Desktop/Web) for beginner who wants to learn?

vocal basin
#

GUI tools will eventually fail at something, at which point you'll have to use CLI;
but GUIs are generally more user-friendly; I'd say it's true regardless of beginner/non-beginner;

#

and "it depends" will always be true; learn what's easier to learn, then learn the other thing too

#

(or maybe learn what's harder to learn first, idk)

vocal basin
#

knowing the CLI provides the common language for the concepts that Git deals with
(so, if you were to need some functionality from a GUI you're not familiar with, you'd be able to do it quicker)

valid elm
#

I use windows lap and i really want to learn @vocal basin

vocal basin
#

many IDEs now support interaction with Git

#

() missing

#

now it's ((lambda ...), y)

#

whereas the intended one probably was (lambda ...: (..., y))

#

!e

lambda a, b: b, a
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     lambda a, b: b, a
004 |                     ^
005 | NameError: name 'a' is not defined
vocal basin
#

!e

lambda a, b: (b, a)
wise cargoBOT
#

@vocal basin :warning: Your 3.11 eval job has completed with return code 0.

[No output]
vocal basin
#

O(N) solution seems to be possible, and sorting is an unlikely element of an O(N) solution

#

||```py
from collections import Counter

class Solution:
def findShortestSubArray(self, nums: List[int]) -> int:
ctr = Counter(nums)
minidx = {}
maxidx = {}
for i, x in enumerate(nums):
minidx.setdefault(x, i)
maxidx[x] = i
return min((-freq, maxidx[x] - minidx[x]) for x, freq in ctr.items())[1] + 1

worldly magnet
#
public class Solution {
    public int FindShortestSubArray(int[] nums) {
        Dictionary<int, int> frequencyMap = GetFrequencyMap(nums);

        int maxDegree = GetMaxDegree(frequencyMap);

        int minLength = GetSmallestSubarrayLength(nums, frequencyMap, maxDegree);

        return minLength;
    }
    static Dictionary<int, int> GetFrequencyMap(int[] nums)
    {
        Dictionary<int, int> frequencyMap = new Dictionary<int, int>();

        foreach (int num in nums)
        {
            if (!frequencyMap.ContainsKey(num))
                frequencyMap[num] = 0;
            frequencyMap[num]++;
        }

        return frequencyMap;
    }

    static int GetMaxDegree(Dictionary<int, int> frequencyMap)
    {
        int maxDegree = 0;

        foreach (int frequency in frequencyMap.Values)
        {
            if (frequency > maxDegree)
                maxDegree = frequency;
        }

        return maxDegree;
    }

    static int GetSmallestSubarrayLength(int[] nums, Dictionary<int, int> frequencyMap, int maxDegree)
    {
        Dictionary<int, (int firstIndex, int count)> countMap = new Dictionary<int, (int, int)>();
        int minLength = nums.Length;

        for (int i = 0; i < nums.Length; i++)
        {
            int num = nums[i];

            if (!countMap.ContainsKey(num))
            {
                countMap[num] = (i, 0);
            }

            countMap[num] = (countMap[num].firstIndex, countMap[num].count + 1);

            if (countMap[num].count == maxDegree)
            {
                int length = i - countMap[num].firstIndex + 1;
                minLength = Math.Min(minLength, length);
            }
        }

        return minLength;
    }
}
vocal basin
#

not sure how

#

well, that can be interleaved

#

does more inequality comparisons of counts/slice lengths, seemingly

worldly magnet
vocal basin
#

something's going very wrong

#

reboot fixed it

#

very bad

#

maybe docker restart could've fixed it too

vocal basin
#

in for lists mean "is an element of"

#

same for set

#

@stoic chasm because the behaviour of the list is the question

#

don't just blindly assume the goal of someone else's action

worldly magnet
#
public class Solution {
    public bool RotateString(string s, string goal) {
        int slen = s.Length;
        for(int i = 0; i < s.Length; i++)
        {
            if(s == goal)
            {
                return true;
            }
            s = s.Substring(1) + s[0];
        }
        return false;
    }
}
vocal basin
#

result being (optional) two-number index?

#

ah, I misread

worldly magnet
stoic chasm
#

given lists needle and hay you can do needle in (hay[i:] for i in range(len(hay)))

vocal basin
stoic chasm
#

how so?

vocal basin
#

O(N^2)

stoic chasm
#

what?

#

whats N

#

i didnt give you an N

vocal basin
stoic chasm
#

they are lists

#

which one is a stirng?

vocal basin
#

(the original problem uses strings)

stoic chasm
#

okay so do needle in haystack

#

easy

vocal basin
stoic chasm
#

??? normalize it first?

vocal basin
#

chain of two strings in this case

stoic chasm
vocal basin
#

can join them, but that would involve making a new string

stoic chasm
#

yes who cares tho

#

why do you need this operation to be fast

#

what's the time limiting preasure

#

how large do you expect your input to be

vocal basin
stoic chasm
#

i gave you a solution

#

and you said it was no good

vocal basin
#

solution to what?

stoic chasm
#

so i gave you a better one

#

and you said it too was slow

vocal basin
stoic chasm
#

well what's the benchmark difference

#

have you benchmarked your hot loops yet?

#

why do you need to check this that often

#

if you can cache the list it's gonna be fast

vocal basin
#

there is this isolated question

stoic chasm
#

yes

#

the most important thing about data structures

vocal basin
stoic chasm
#

is that the ones not in hot loops

#

are fine

#

honey this is python

#

adding big enough integers

#

allocates

vocal basin
#

that's below parrot even

stoic chasm
#

it wasn't meant derogatory

#

its the style of answer

#

allocations happen

#

and the honey was meant as an example word

#

not as anything else

vocal basin
stoic chasm
#

yes > 256

vocal basin
stoic chasm
#

a word to start an example

#

an example word

#

it's literally how i speak

#

not even a gendered word

vocal basin
#

I need to find a gif that Clari sent earlier

stoic chasm
#

it wasn't an address tho

#

i wasn't addressing anyone

#

maybe you aren't from here

#

english is complex

#

and i dont see any issues

vocal basin
stoic chasm
#

you are just trying to make fun of me

#

i dont like that

#

i wasnt calling anyone anything

#

it was the form of the example

#

i want calling anyone anything

#

its just how language works

vocal basin
stoic chasm
#

i dont know what you want from me

#

you litterally bully me because of how i speak

whole bear
#

Hello @midnight agate

#

No sir i dont

whole bear
#

Ok sir

vocal basin
#

I'm surprised it's not horribly slow

vocal basin
#

with way too much OOP

#

(two classes, should've been zero)

#

it becomes harder with actual strings, because of how python stores them

#

@midnight agate if you're doing slices and concatenation, might as well just s+s

#

(in the last)

#

problem constraints seem to be to small for optimisation there

#

(+ variance in times is high for same reason)

vocal basin
#

it's a complex and data-dependent problem, just like caching

#

I'll try another method of string comparison

#

infinite hi chain?

glad sandal
#

Im having networking issues

whole bear
#

How is that a easy problem lol

vocal basin
whole bear
vocal basin
#

as in a lot of people agree

whole bear
#

@glad sandal ARCh dub

whole bear
#

I am not the best programmer but I know a medium to hard problem when I see one

vocal basin
#

each character gets assigned a permutation
hash of a sliding window is a composition of those permutations

#

||```py
class Solution:
def binaryGap(self, n: int) -> int:
return max(map(len, f"{n:b}".split("1")[1:-1]), default=-1) + 1

robust bone
#

hey @somber heath

#

can't talk !

errant night
#

Can I Teach Me Programming

#

You*

vocal basin
#

now the question is what you corrected to "you"

errant night
#

I'm a Beginner

#

I Can Program Small Programs In Problem Solving

vocal basin
errant night
#

x=42
Print(x*10)

#

Is that Right๐Ÿ‘€

vocal basin
#

wording

errant night
#

Sure

#

x="42"
Print(x*10)

#

Is that Right

#

Thank You

vocal basin
#

!e

print(int("เงชเญจ") * 10 ** 20 // 99)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

42424242424242424242
errant night
#

for i in range(1,10,-1)
Print(i)

#

I that Correct?

vocal basin
#

!e

for i in range(1, 10, -1):
    print(i)
wise cargoBOT
#

@vocal basin :warning: Your 3.11 eval job has completed with return code 0.

[No output]
vocal basin
#

doesn't print

errant night
vocal basin
#

first number in range is always the starting number

errant night
#

!e

wise cargoBOT
#
Missing required argument

code

errant night
#

I should use a function swapcase() right

somber heath
#

!d str.swapcase

wise cargoBOT
#

str.swapcase()```
Return a copy of the string with uppercase characters converted to lowercase and vice versa. Note that it is not necessarily true that `s.swapcase().swapcase() == s`.
errant night
#

x=int(input("enter a string:"))
Print(x.swapcase())

vocal basin
#

German letter

#

I'd guess otherwise

#

!e

assert "รŸ".swapcase().swapcase() == "รŸ"
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     assert "รŸ".swapcase().swapcase() == "รŸ"
004 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | AssertionError
vocal basin
#

I re-implemented my solution using abelian groups
but that's a terrible idea

#

do you know why abelian groups are bad there?

#

abelian groups are commutative

#

moving elements around doesn't change the result

#

which is not good

red vessel
#
async def reminder_message():
  print(3)
  while True:
    for i in data:
        print(i)
        if get_date() == i[1]:
            now = datetime.datetime.now()
            then = now+datetime.timedelta(days =1 )
            then.replace(hour=15, minute=24)
            wait_time = (then-now).total_seconds()
            print(1)
            await asyncio.sleep(wait_time)
            print(2)
            await print("MESSAGE HERE")
vocal basin
#

await print?

red vessel
#

yea, cant think of anything else, any suggestions

vocal basin
#

you need to execute it at a specific time, right?

red vessel
#

Yea

vocal basin
#

!e

from datetime import datetime, timedelta
now = datetime.now()
then = now.replace(hour=1, minute=0)
print(now)
print(then)
if then < now:
    then += timedelta(days=1)
print(then)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2023-07-19 10:06:54.314788
002 | 2023-07-19 01:00:54.314788
003 | 2023-07-20 01:00:54.314788
vocal basin
#

should probably use .date of now instead of replacing hour/minute

#

!e

from datetime import datetime, timedelta, time
now = datetime.now()
then = datetime.combine(now.date(), time(hour=1, minute=30), now.tzinfo)
print(now)
print(then)
if then < now:
    then += timedelta(days=1)
print(then)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2023-07-19 10:09:19.433431
002 | 2023-07-19 01:30:00
003 | 2023-07-20 01:30:00
vocal basin
#

so, this is just to find the next 01:30

#

if you need to wait until specific time

#

I'd probably make a separate function for repeating something at certain time

#

not for interval, for schedule rather

red vessel
#

so basically, what i want is to get messages(print) at 4AM, 4PM, and 7:30PM every date i've in the data last, asynchronously if feasible as the program have other functions as well

vocal basin
#

it returns new value

vocal basin
# vocal basin I'd probably make a separate function for repeating something at certain time
async def repeat_at(schedule_time: time, callback, *args):
    loop = asyncio.get_running_loop()
    now = datetime.now()
    schedule_date = now.date()

    def schedule_datetime():
        return datetime.combine(schedule_date, schedule_time, now.tzinfo)

    while schedule_datetime() < now:
        schedule_date += timedelta(days=1)
    while True:
        now = datetime.now()
        wait_time = (schedule_datetime() - now).total_seconds()
        await asyncio.sleep(wait_time)
        loop.call_soon(callback, *args)
        schedule_date += timedelta(days=1)
#

also you need to check that schedule is actually in the future

#

if I wrote it correctly, that code calls callback(*args) each day at a given time

#

schedule_date is the day when the next callback will occur

#

what version of Python are you using?

red vessel
#

3.11.4

vocal basin
#
async def do_something():
    print("doing something")

def schedule_something(tg):
    tg.create_task(do_something())

async def run_tasks():
    async with asyncio.TaskGroup() as tg:
        tg.create_task(repeat_at(time(hour=4, minute=0), schedule_something, tg)
        tg.create_task(repeat_at(time(hour=16, minute=0), schedule_something, tg)
        tg.create_task(repeat_at(time(hour=19, minute=30), schedule_something, tg)
#

(idk if any of it works, but it might)

#

tg?

#

task group
introduced in Python 3.11
simplifies management of tasks

#

there is also asyncio.create_task

#

!d datetime.time

wise cargoBOT
#

class datetime.time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)```
All arguments are optional. *tzinfo* may be `None`, or an instance of a [`tzinfo`](https://docs.python.org/3/library/datetime.html#datetime.tzinfo "datetime.tzinfo") subclass. The remaining arguments must be integers in the following ranges...
vocal basin
#

this one is passed in as an argument

#
from datetime import datetime, time, timedelta
#

creates new task to handle do_something

#

so that if, for whatever reason, do_something takes longer than a day once, it doesn't prevent next iterations from running

#

should probably try with something more frequent than once every day
idk how though

#

it will actually be easier with the date-specific solution

vocal basin
#

another variant

async def repeat_at(schedule: AsyncIterable[datetime], callback, *args):
    loop = asyncio.get_running_loop()
    async for schedule_datetime in schedule:
        now = datetime.now()
        wait_time = (schedule_datetime - now).total_seconds()
        if wait_time > 0:
            await asyncio.sleep(wait_time)
        loop.call_soon(callback, *args)
#

async for there to allow dynamically adding dates

#

schedule is just a stream of datetimes
can be just a list (if you change async for to for)

#

I'll write a more detailed explanation later

red vessel
#

cool

errant night
#

No

#

No

tepid edge
#

Can't join right this moment, will be there later

slim bobcat
#

@midnight agate Can you read your dm ?

somber heath
#

In Python, indices begin at zero.

red vessel
vivid jacinth
#

hii

rugged root
#

How's it going folks

wind raptor
#

Sorry, I just realized I wasn't scrolled down to the bottom of this chat ๐Ÿ˜ตโ€๐Ÿ’ซ

rugged root
#

@rugged tundra That's how

lucid blade
rugged root
#

Advancements in probing medical technology

#

Tiny and delicious

wind raptor
#

Can you delete that please, I don't think it's appropriate here.

#

Thanks

vivid jacinth
#

.-""""-. .-""""-.
/ \ /
/_ \ /
// \ / \ // \ / \
|_
\ //| |__\ //|
\ || / \ || /
\ / \ /
\ __ / \ __ /
'..' '..'
| | | |
| | | |

willow gate
#

@vocal basin hello

#

@vocal basin if you have time , i need some help

#

@somber heath hello

wind raptor
#

The ascii art is getting a bit spammy and if everyone starts doing it, chat would become hell. Would you mind not posting these?

willow gate
lucid blade
willow gate
#

@somber heath can you see the change when i had make this responsive to mobile view the text in shifting

#

can you help me with this?

somber heath
willow gate
#

i want when i shift to moblie view the text should me remain same as desktop like on fix on left and right side

nimble epoch
#

Eighty eightyyyyy

#

Good good

willow gate
#

can anyone help me with this?

willow gate
#

@willow ruin can you help me with this?

somber heath
nimble epoch
#

Isn't that the way to do it?

#

With css I mean

rugged root
nimble epoch
#

Lmao

wind raptor
#

I just meant don't use more

nimble epoch
#

This is becoming my favorite discord server

wind raptor
#

*sigh*

willow gate
rugged root
#

It's considered poor etiquette.

nimble epoch
#

MMMm

rugged root
#

Typically better to just ask the question and wait for a response instead of pinging lots of people individually

willow gate