#voice-chat-text-0
1 messages ยท Page 65 of 1
There is no point in letting the library call asyncio.get_eventl_loop() when the loop is already known
But you are right, its not required
python library's will never move away from it, since asyncio isn't really a first prio and thus you need to pass it everywhere, which well is kinda...
and asyncio.get_running_loop() won't work if you have many event loops i think
Unless i'm wrong
But still its a function call
Return the running event loop in the current OS thread.
Right
This works if i have multiple loops?
Alright, that's useful to know.
so in conclusion u.u i cant run the node.js?
But for now i prefer explicitly passing the loop via __init__ or other methods, eg a classmethod.
I work on a lot of legacy code too
import asyncio
async def my_coroutine():
current_task = asyncio.current_task()
print(current_task)
await my_coroutine()
Oh dam
That's sick
I remember having to write some stupid magic to make it work.
coroutine asyncio.timeout(delay)```
An [asynchronous context manager](https://docs.python.org/3/reference/datamodel.html#async-context-managers) that can be used to limit the amount of time spent waiting on something.
*delay* can either be `None`, or a float/int number of seconds to wait. If *delay* is `None`, no time limit will be applied; this can be useful if the delay is unknown when the context manager is created.
In either case, the context manager can be rescheduled after creation using [`Timeout.reschedule()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Timeout.reschedule "asyncio.Timeout.reschedule").
Example:
```py
async def main():
async with asyncio.timeout(10):
await long_running_task()
```...
coroutine asyncio.wait_for(aw, timeout)```
Wait for the *aw* [awaitable](https://docs.python.org/3/library/asyncio-task.html#asyncio-awaitables) to complete with a timeout.
If *aw* is a coroutine it is automatically scheduled as a Task.
*timeout* can either be `None` or a float or int number of seconds to wait for. If *timeout* is `None`, block until the future completes.
If a timeout occurs, it cancels the task and raises [`TimeoutError`](https://docs.python.org/3/library/exceptions.html#TimeoutError "TimeoutError").
To avoid the task [`cancellation`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task.cancel "asyncio.Task.cancel"), wrap it in [`shield()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.shield "asyncio.shield").
The function will wait until the future is actually cancelled, so the total wait time may exceed the *timeout*. If an exception happens during cancellation, it is propagated...
i recently got into using raise condictons to move control flow back to the beginning
skipping a bunch of checking code
A lot of people argue that Python asyncio is hard i disagree
so i dont understand point 6
i think it's very verbose
And very controlled
unlike golang
I hope more languages follow suit
so this path C:\Users\danie\OneDrive\Documents\Scripts\Finca\venv1\Scripts
i almost never see a use for threading where asyncio cannot replace it
of course asyncio isn't entirely non blocking
Python is GiL Lockrd and thus i fail to believe it matters, multiprocessing would be correct in my understanding
if you lock up the thread then the event loop is also blocked
Since when do they release GIL, and where can i read about it?
This has been the biggest reason for believing threading is useless in Python because when locking up the thread you also lock up the main thread
multiprocessing doesn't have this issue
i dee
i see
but so
threading is preferred for io that blocks but not cpu bound?
How would you then go about processing a bs4 html page?
Since that involves both io and cpu bound
Io fetching the webpages and cpu processing the pages
I tackled this using asyncio + multiprocessing pool to scrape million's of pages from my local super market to compare product prices
I see, interesting
Maybe i should give threading another chance
coroutine asyncio.to_thread(func, /, *args, **kwargs)```
Asynchronously run function *func* in a separate thread.
Any *args and **kwargs supplied for this function are directly passed to *func*. Also, the current [`contextvars.Context`](https://docs.python.org/3/library/contextvars.html#contextvars.Context "contextvars.Context") is propagated, allowing context variables from the event loop thread to be accessed in the separate thread.
Return a coroutine that can be awaited to get the eventual result of *func*.
This coroutine function is primarily intended to be used for executing IO-bound functions/methods that would otherwise block the event loop if they were run in the main thread. For example:
The problem i just described, the supermarket idea
i could send you the code, if you like here
๐
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@vocal basin
Here is the code i wrote a while back, let me know if i could improve it!
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Bruhj
I did, this does exactly that
At the time i wrote this my boss didn't know, after asking for legal advice the project was scrapped thus no, and no
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
@final agate ๐
hi guys
uncancel()```
Decrement the count of cancellation requests to this Task.
Returns the remaining number of cancellation requests.
Note that once execution of a cancelled task completed, further calls to [`uncancel()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task.uncancel "asyncio.Task.uncancel") are ineffective.
New in version 3.11.
This method is used by asyncioโs internals and isnโt expected to be used by end-user code. In particular, if a Task gets successfully uncancelled, this allows for elements of structured concurrency like [Task Groups](https://docs.python.org/3/library/asyncio-task.html#taskgroups) and [`asyncio.timeout()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.timeout "asyncio.timeout") to continue running, isolating cancellation to the respective structured block. For example:
Hey whats going on
@rich robin ๐
I did it i got it to work
my tmobile app is working. Still more testing and everything needs to be done and optimization but it works. Im so happy
"We've been getting complaints from our customers that your program has a virus. Pack your shit, you're done. Also, expect to be hearing from our legal department and the police."
How will you respond?
what ? i can show you my code theres no virus
Python to exe packagers often produce files which trigger false positive matches for viruses.
but im literally not making any virus i dont understand why im being accused of this ?
like i made the graphics and everything
im being honest about this
Oh god dude you scared the fuck out of me lmao
I was like i didnt do anything wrong i promise lmao
but my response would be. "I have worked honestly on this project as you can look through the source code provided." However with it having the proper code signature on it as well as AES encryption it should not be flagged as a virus
oh wait sorry
i just read the rest of that
i havent really coded much in c++ or # so how would i compile it ? I mean i can figure out how to convert the code to c++ im just not sure how to compile everything after that
yoyo
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
sorry, i cant speak but i have a problem
im having a No module named error
here lemme show you
its a file i made which im trying to import
its all in the same folder strucutre
ill take a screenshot to show
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
or yeah sorry.. Idk ill take a look into it and see what i can figure out. Ill talk to the dev team at tmobile as well to see what we can figure out
Hi @somber heath
I'm surprised they don't just have a web thing on the customer portal.
im in the MenuMain folder
it just contains variables, but it says i cant import it
the stragnest thing is, the checkers one works fine, but chess dosent
by "one" i mean file
idk they might but i didnt find it. the dev account first off you have to buy api access which is 100$ and its confusing as fuck with everything they have. I just got the key for what i needed and started coding off my machine
helloooooooooooo
uhh, i dont follow; if you mean making the folder structure cleaner, then mine is already very clean.
https://peps.python.org/pep-0008/#imports
"Wildcard imports (from <module> import *) should be avoided, as they make it unclear which names are present in the namespace, confusing both readers and many automated tools. "
Python Enhancement Proposals (PEPs)
i have multiple main files which are connected to a menu main. these run the games which i have created
module
na its more like this
and they are launched from another main function called main.
i dont understand how these might affect my problem of not being able to import from chess
when i import form checkers, its fine but chess dosent work
ive put __init__.py files in all folder spaces
okay, ill try that
@somber heath yep, this is like the 3rd time ive revised my folder strucure. what can i do next time?
yea, nothing
ill come back later if i cant figure anything out, thanks for now
Re implementing wait_for would require the use of generators
and asyncio.Timeout would require the use of context managers
wait_for is a corotine and this a generator
What do you think of my cute little http rate limiter?
Actually, i just figured out why my code doesn't work
Authorization should be bot + token
My god...
If you didn't know already, i'm writing my own discord library
hey guys
both.
i don't have the permission to speak on voice chat0
and the library will support multiple instances of bots via multiple tokens.
The goal is to write it as efficiently as possible
Last time i checked it didn't inherently
without the use of shitty magic
guys
bot.start() was also limited.
i did not like it
clients = []
for token in yield_token('etc/tokens.txt'):
client = Client(token=token)
clients.append(client)
print('subscribed {} clients'.format(len(clients)))
run_clients(*clients, reconnect=True)
This is the high level implementation
1 client or many
This is how this is implemented in the lib
def get_new_loop():
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
return loop
def set_loop_on_client(client, loop):
client.loop = loop
def run_clients(*clients, loop = None, reconnect=True):
if loop is None:
loop = get_new_loop()
tasks = []
for client in clients:
set_loop_on_client(client, loop)
tasks.append(loop.create_task(client.run(reconnect)))
try:
loop.run_until_complete(asyncio.wait(tasks))
except KeyboardInterrupt:
# Gracefull shutdown
all_tasks = asyncio.gather(*asyncio.all_tasks(loop), return_exceptions=False)
all_tasks.cancel()
finally:
loop.close()
It's not what i wanted it to be, but its okay for now.
Obviously would prefer getters and setters or classmethods down the road..
passing state around like that does not work
I spend 8 hours last night trying to debug why discord was disconnecting my connection after 1 hour
shoe width is so tricky sometimes
The smallest men's size is usually the perfect width for me but too long. The women's perfect length is usually too narrow.
The solution? Hacksaw and duct tape
So I only wear birks these days cuz their width/length combination is just right
oh gosh y didnt I think of that.
Because it's dumb
And thinking of dumb things is my job
I don't need people trying to edge into my territory
So leave the derp to this guy
I'll try to be on shortly, but I've got a fuck ton of things going on this morning
duct tape tho
I met some old high school friends at a wedding. I'm not so close with them. But just to be polite I said hi. But I'm a pretty awkward person so the exchange was awkward. 3 days later I'm still haunted by the exchange. But do I regret it. Not really.
@gentle flint
oh, good
the shiny type
you can soften those with mink oil
or something similar
closer?
put the boot in the sun for 10 minutes if possible to warm up a bit (in winter that doesn't work)
then warm up the mink oil until it's not quite liquid
put some mink oil on a cloth and rub it over the boot on the outside, really properly rub it in
and let it sit for the rest of the day so it can be absorbed into the leather
preferably in a warm place
I don't.
oh there's an instructables @warm jackal
https://www.instructables.com/Help-take-the-pain-of-breaking-in-new-boots/
Pycode how is going ?
learning opencv
WoW
bye guys
bye
nice
You are working and learning like no mad
I cant learn api code becase i dont understand whole working system of the code
Flask
hi
Still is hard english to speak and understand pycode ?
hello @gentle flint
I think he is AFK
hello @thin drift
hi
function resposta(){
let resposta = document.getElementsByClassName("active");
let btn = document.getElementById("resposta");
let btn_next = document.getElementById("next_question");
let array_btn_next = btn_next.action.split("/")
let num_question = array_btn_next[array_btn_next.length-1]
btn.action = "resposta/"+(parseInt(num_question)-1)+'/'+resposta[0].name
}
very bad code
How ?
data can be manipulated to be anything theoretically
ok
why are you mics open if you dont talk...
shashank are you AFK ?
Yo
how are you doing
Hanging in there
how is your day going
Busy so far. Beginning of tax season here and a lot of weird computer issues to fix
So I'm in my element, at least
But I fucking hate printers
And especially Canon's installers
the reason being
Like, dude, I am the fucking Admin
But it has to be a LOCAL account, not network
So it's a pain in the ass
are you using window
I am. I cannot imagine trying to do this on Linux or Mac
The worst part is that you don't wanna be on amin accout
Fairly certain they don't have Linux drivers, not to mention having it support their "connect to the printer wirelessly" bs
I mean I do
it would block a certain features
in my Pc
Blocks what
it would not let you install a number of drivers
It's the opposite
and the file management in the amin account is terribel
i am talking about being in the amin account itself
Ohhhhhh oh oh oh
Not a user with admin perms
Right got it
No in this case I would just need it to be a local to the machine user
sup
Not my network user
Hey, speedro
I swear to god I'm going to type speedo every time
Sorry
Oh huh, cool
hey do you know about DRY priciple hemlock
i am asking
theres also kiss and yagni
I know KISS, but what's yagni
what what your first language
php
and yours Hemlock
First first would have been TI-Basic on my old TI-84 Plus calculator
@midnight agate Yo
But first I learned in college was.... Actually I've been saying Java but I think it was Visual Basic. It's one of the two, I can't remember the order of the classes exactly, it's been over a decade by now
@midnight agate How's your day going
Busy busy busy, mainly
Just lots of things around work. I'm a busy IT boy
So I'm in my happy place regarding work at least
I'm more of an IT person than I am a programmer
Eh
You can always learn
@woeful salmon Sup dude
@warm jackal Yo
So you say
HA
"Oh god I'm hearing voices" -Reaper probably
Fuuuuu forgot I have to add a bunch of reports
One by one
One by fucking one
Scrubstantial
Eh
Joke is putting the bar a bit high
No both are words
Not sure if there's a technical difference
Yeah
Is a non-critical mass when you could and maybe should go to church but you don't?
Catholic guilt
Back sorry
Decent, you?
@vocal abyss Depends on the favor
@lucid blade Sup
HERE IS THE LINK :
No worries
Same
Beginning of tax season plus still shifting people and tech around from the pipe burst
@vocal abyss Well... I am a normal person
I just happen to also be an admin
Immoral maybe
I grant it on a temporary basis for coding and stuff. I don't really grant it just for chat stuff
Still need to mess with Kotlin more
Been on my list for a while
Oh cool. I think you're the first person from Argentina I've met
"Happy path"?
So like
The walrus operator?
Or just null coalescing
Yeah, I'll get it with an example
See ya
Yeah a lot of energy
i shall go now and focus for a bit to finish this work cya guys later ๐
was fun listening
Later Noodle
val x = y.z?.let{
it.w?.let{
it.thingThatIwanted
}
}
That's funky
Yeah seems like null coalescing
Double checking
Nullable
"This value is potentially null"
y.z?.let => allows accessing members of z if non-null
You can kind of think of it as....
@vernal bridge Correct
Soonish, though
Possibly next week?
More likely 2 weeks, though
Eh, it's fine
I'm adaptable and easy to please
I don't mind
The null coalescing operator (called the Logical Defined-Or operator in Perl) is a binary operator that is part of the syntax for a basic conditional expression in several programming languages, including C#, PowerShell as of version 7.0.0, Perl as of version 5.10, Swift, and PHP 7.0.0. While its behavior differs between implementations, the nul...
if inner_dict := my_dict.get("ham"):
if value_from_inner := inner_dict.get("pork"):
print(value_from_inner)
Essentially the same as this
Ish
Yep
Syntactic sugar to a false case to null ternary
In a good way or bad way
Sounds exciting at least
Interesting that it suppressed you dreaming.
Wonder if it was keeping you from hitting REM sleep
Eh, different people require different amounts
The whole 8 hours things is just a ballpark average
HA
Yeah
Eh
More just actually implementing code
There's a lot of theory in comp sci
Glass blowing looks so friggin cool
Just don't inhale
You'll be fine
Oh yeah yeah
Until you build up the scar tissue
@uncut meteor Yo
@uncut meteor I will end you
gg
But with love
@timid crypt Yo
Sorry, should have said hi sooner
Yeah it's funny as hell
When all your fucks are drained by idiot society
This are our new videos .. hope you like this too
https://youtu.be/gqbKEkbnRIE
https://youtu.be/It1nuVR40YE
https://youtu.be/npH8HOCOKGE
https://youtu.be/tfD5lQuk3a8
https://youtu.be/ZR6MxsBjoUk
https://youtu.be/9bhPjtIoxSM
https://youtu.be/sc3Rle6TPH4
Originally by :https://youtu.be/Vqbk9c...
its hilarious
He looks so classy
@uncut meteor Was his English teacher? @vernal bridge Is that right?
Eh
Uni's supposed to prep you for the workplace, right?
Bigger businesses can pitch a fit
I know I know
I'm just giving an example
@amber raptor Yo
That's more US specific maybe, no? Not in my country.
Skitt
@warm jackal Getting a lot of plate scrapey noises
Derp step
Pendulum
Love it
In Silico is my favorite album from them
Haven't heard a lot of their new stuff
woah caps
Cole slaw?
I don't actually know where the term comes from
@vernal bridge You're pretty quiet
Etymology
Entomology is the study of insects
@amber raptor Welcome back
No
Nah, it's to Rabbit being a butt
I slaw what you did there
Eh, that was weak sorry
Yeah it was rough
That's what she said
"For you I'll lower my standards and tell you it was great"
Oh I know
Just wanted to make sure there was context
Since it made me crack up
US nuclear weapons are stored across Europe but their presence is neither confirmed nor denied, so Foeke Postma from Bellingcat went looking for them.
Along with Editor Maxim Edwards, they discovered that US soldiers had been leaking highly confidential locations of these nuclear weapons via flashcard apps, for years and years as well as hundr...
If you're wondering how to get another addiction, would you need some addvice?
Yeah I'm not at my best
Additional affirmitives?
Adding vices. Also useful if you do woodwork
Need to hold these planks in place while the glue sets? Take some heroine
Kills the time while you wait
#MyLatestMemeToPassAround
Well now I feel like a bastard
True that
It just smells so horrible
Pisses me off
I hate driving and suddenly my car smells like weed only because I passed by someone
Even worse when our apartment neighbors smoke and it leaks into our apartment
I don't want my clothes smelling of that shit
Good luck achieving that in an apartment
Later bud
Yeah and that's fair
Our apartment just has a clause in the lease about offensive odors, so it's just aggravating.
Yeah, saran wrap
Cut the TENDONS?
Jesus
If you tense your arm
The thin string like things that come from your wrist a bit
Very edgy
A lot I'm sure
We including vapes?
Older than me
He just wants to mooch off your supply
Don't fall for it
Wonder if it'd had an affect like "Oh, this is something dad does? That's.... kind of making it not cool"
Might on some kids
Yep
I just can't take the risk. I'm finally on a good cocktail of medication and I don't like the idea of throwing a potential firecracker in there
Yeah and that can fuck with depression
Just don't want to even think about it
@lavish rover Sup dude
work, kill me
Too much or just irritating stuff?
Neither, task is just annoying
Hello!
I just don't know how to get the role
To be able to talk
xD
Oh check out the #voice-verification channel
trying to understand how to get it
That'll tell you what you need to know how to get the gate
Is Polish Notation the one where the operator is on the left of the numbers?
Accounting does that
So kind of used to it after using one of the adding machines
That's.... dumb
+-*3443
It's not exactly the code you'd be running into on the regular
Not confusing at all
LP isn't either and he fawns over lisp like no other so idk man
Sorry
@rugged root can I be voice verified without all these criteria?
I try not to bend the rules on that
What would be the point of the criteria then
Why, what's up
oh ok
Sorry that I asked
NO no
No need to apologize, just letting you know
@vernal bridge She was 85?
Well
I got the 5 right
Legal but very ill advised
It's what is known as "creepy"
Eh
Now you know
I mean you'd expect people to not do shit like that
And nothing to say she wouldn't have lied if you asked initially
I forgot what I was doing
I'm just sitting here like a derp
Fair
Well at least you caught it before there was a much larger mistake to be had
The blood of your enemies
Ideally drank from a skull
... with blood?
Aww
Have fun with that
Only you can make that call
@crude vale Yo
sup
@surreal marlin Could always do regex
?
For the time thingy
Later Linux
You shouldn't use a slice for that either. In fact you shouldn't, as it'll return a list
Since a slice, even of one item, returns a list
So that's probably what's causing your issue
Nah
It's easy to miss something like that
But it's why I always recommend futzing with stuff on the repl so that you can get a feel for what is going on
@surreal marlin So what're you working on, if I may ask?
@median lintel Yo
I'll be back in a sec, talking to a co-worker
Well, I need to write a program that will read through the file and figure out the distribution by hour of the day for each of the messages.
Ooo neat
Yes, I already have a lot of other mistakes in it.
Right now trying to solve them
If you get stuck we're happy to help.
Started to learn python a few days ago
@median lintel what're you up to
study c#
Ooo neat
but I'm interested in the project @surreal marlin
Oh I know I know
It's just hit and miss whether the connection to their chat dies midway through waiting
With no indication that it happened
I'm just following one course and doing different assignment there : )
What site or resource are you using?
me too
If you need additional resources at some point, we've got a lot of them listed on our site
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
More waiting? ๐
Just waiting for the weekend ๐
Thank you again! To say truth, I'm looking for a site like this https://cplusplus.com, but for python.
Hmm, not sure on that
We have our help system that's the thread question style. See #โ๏ฝhow-to-get-help for more details on that
Just not sure on a site like it
No problem, you already helped me a lot : )
Happy to do it
Yeah, a sloth seems like the perfect animal for that meme
I hate this program so much
Just let me import a bunch of files at once
But no, I have to do them one at a time
Back in a sec
I'm going to watch some videos about databricks, I'll back later
And then there was one
And then there were none
Then the kingdom was abandoned and undisturbed for millennia
until one day...a vigilante from nowhere arose to disrupt the presumed everlasting peace of the kingdom
@rugged root I am in a voice channel..doing things that go against server rules :3
not sure if it counts as rule breaking if Im the only one here
@rigid nest #voice-verification
looks like you've been on the server before though right?
oh yeah, years ago. back when the help channels were generated automatically
and you'd have to !close them
@rugged root this fine person has been here a while but just joined back, any chance they can get voice perms?
(y)
@rigid nest turns out pandas dataframe has a to_json method lol
hahahaha wicked, thanks man
@ashen wave ๐
I've been experimenting a little with ChatGPT - a language algorithm you can chat to. I thought it might be interesting to have it design a cake recipe, in the style of William Shakespeare... It nearly worked. I had to help a bit.
More about ChatGPT here: https://openai.com/
Here's the 'poetic' recipe:
With eggs and sugar, in a bowl combin...
@torpid pumice ๐
hello
@distant grotto ๐
its real
some accounts work and some dont
permanent
because these are working account generated
because i wanted to show the results of a generation of working acccounts
there generated so there owned by nobody
or by python
why?
i can show u the code XD
better?
ok
@feral shard ๐
Do you have a problem you're seeking help with?
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Until I know what the problem is, I don't know if it's something I can help with or not.
You save time by leading with that.
@lilac whale ๐
@feral shard So...?
print, input, maybe a bit of ansi code fanciness...
can i screen share a pic of what im talking abt'
can i show you a pic of what im tryan figure out in the vc?
i cant send you a messgae
it no let me
ohh
lol
you see
this is js a example
how do you make projects run in a terminal looking thing like that
i wanna make a cool game with a opening like that
so when im done and i wanna make a a executable will it open like that?
wait whats it called to get that font and colors?
is it ascii
i want that font
dam
should i be using vscode or microsoft visual studio
can you do all this art in vscode?
i was gonna do it thats a open source program
should i so i can see the code?
do you know what the | lolcat command is?
theres so much i have to show you but i cant screenshare
@sinful citrus ๐
hlo sir
@somber heath
Hmm?
can we vc i need help
You don't require my permission to join.
in a personal call so i can speak, or is that not allowed
It is discouraged, but beyond that, I avoid it.
@feral shard Have you seen the #โ๏ฝhow-to-get-help channel?
all im tryan figure out is how to make a project that will run in a terminal
like when i convert my .py to a exe how can i make it stay open and run my commands inside a console
!resources Is a good place to look for places to start.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
how can i find help on that
๐ @flint plinth
๐
Hi
@sterile fable ๐
why i cant use my mic ?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thank man
F
speaking of Nokia, they still own Bell Labs
I was kind of surprised to know they acquired it in the first place
though a phone company acquiring something that was a part of another phone company
well, sounds logical
don't cards use DSAs and stuff? so, like, not very copyable?
docs are faster for getting some answers
yes, that's why "some"
@golden sonnet ๐
I miss thesee
๐
Same...I get them shipped sometimes
I was just looking at them on Amazon yesterday. I think I might ship them too
Id recommend that!
what ChatGPT, I guess, may be able to do is rephrase search queries
so, like, if you tried to google and you failed, you may try to search what it suggests
(less harmful than relaying on its answers)
"disambiguate"
12+am/pm may look kind of illogical
but it actually makes sense given how clocks are structured and what am/pm means
bees can
๐
๐
Science.
It is how I am.
For without it, I would not be.
It is a very cool story.
Hmm?
did you check "add to PATH" when installing python?
Can you not edit PATH to have that directory fall within it?
do you have this enabled in VS Code?
(if you're running this from VS Code)
that really sounds like you have two different py3.11s installed, tbh
one for system and one for user
or you "broke" your path variable
or something else broke it
those two should have similar prefixes
only different by Script\ being added to one of them
not really, if I correctly remember how python installation works
reloading VS Code should usually be enough
I don't recall python having anything that much reboot-dependent
okay then
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I have at least two people here muted for screaming/soundboard
gotta admit your accent is a little heavy for me ๐
but am trying
๐
so what's up?
unambiguous non-deterministic polynomial-time
https://en.wikipedia.org/wiki/UP_(complexity)
In complexity theory, UP (unambiguous non-deterministic polynomial-time) is the complexity class of decision problems solvable in polynomial time on an unambiguous Turing machine with at most one accepting path for each input. UP contains P and is contained in NP.
A common reformulation of NP states that a language is in NP if and only if a give...
the article has only one reference
u just script?
or something more specific?
I wouldn't be surprised if "JustScript" is another transpiled-into-JS language
oh, wow it isn't
what a rare occasion
there is a scriptwriter-hiring site with that name
or ๐๏ธ instead of a stick
yeah i feel like people having weird ideas about it makes experts to forget that it's a high technology
am not a fan of ai advancing but it's a step in that diraction whatsoever
what century was wheelchair invented in?
looks like 6~5th centuries BCE in Asia
and then 16th century CE in Europe
China
Spain
are you from england?
u don't sound american for sure
who isn't ๐
colony of uk
that's pretty much everywhere
i forgot the spelling ๐
@north rock ๐
hi
i've seen scary stuff
i'm good here at the dessert ๐
yeah but we have mostly ants here
well it's a city
but there are stuff if u go out of it
a massive amount of cats tho
(reminded of that clip)
https://youtube.com/clip/UgkxgSnrkedDekNa1c58u6a9IHw8eXjtH2hw
21 seconds ยท Clipped by Alisa Feistel ยท Original video "Bryan Cantrill on ARC: A Self-Tuning, Low Overhead Replacement Cache [PWL SF] 10/2017" by PapersWeLove
I am from India
hi almost neighbor
(the text isn't as important as what Bryan says there)
((the newspaper beating being a response to using floating point in the OS kernel))
ok bye bye
bye
@wraps(f)
def decorated(*args, **kwargs):
token = request.args.get('token')
if not token:
return jsonify ({'message':'Token is required!'}), 401
try:
data = jwt.decode(token, app.config["SECRET_KEY"],algorithm='HS256')
except:
return jsonify({'message':'Invalid token'}), 401
return f(*args, **kwargs)
return decorated
UnboundLocalError: local variable 'data' referenced before assignment
jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
what does return decorated return?
def decorated
can anyone help me with an issue i have with web scraping
can someone help me
Was there a problem with the help thread system?
Alternatively, #tools-and-devops might cover your specific issue. It was the exe maker, yes?
Absent that, the documentation on the specific tool you're using would be a good place to look.
Whenever asking for help, it's generally best to detail in brief the problem you're having, rather than asking if anyone can help.
Okay!
๐๐
Same
that's grate
hello
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@jolly kelp ๐
ok
hi
New programmers often need small projects to work on as they hone their skills. This is a list of project ideas that beginners can tackle.
@young orchid ๐
@agile grail ๐
Are you asking generally, or about something more specific?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@somber heath ๐
greetings
hello
I use wordpress just to write story ๐ @young orchid
Sup, whatcha up to?
Anybody working in curses?
@stable dew
Are you familiar with curses in python?
and is he online or not, I cannot say ๐
I dont wanna spam the chat or anything
@noble flame
just some tips for using curses in general
but want to get verified
im currently working on game in curses for my finals
yep, as it may sound weird I still chose to do it
cus I dont wanna learn C++
yea. but its really not optimized
making game in terminal was the worst idea that I had goten
I tried to recreate "angband"
with some shake and fidget style
Its really just RPG game LOTR themed
yeah
it even has some type of raycasting
but dont thing, I have enough time to redone raycasting
yeah, trying to redone my previous atempts to be flexible on changing resolution of terminal
its really hard to do game in terminal cus of that
wym
Are you familiar with args* in functions?
is it like list or tuple?
so every space is another argument
so I can just splice them by space
It allows you to pass an arbitrary number of arguments to a function as a tuple.
oh, thats handy ๐
Yes
how is it with the verification on the voice channel?
U need to say 50 Mesage i think before u can talk
I guess just talk lol
cus at this points im just using a loophole ๐
and 50 messages in 30 mins
god xd
me neither
Link for?
what do you mean?
He asked if i had link
Yes
yeah, lets finally have some meaningful conversation
cus really want to get finally verify
@icy axle wanna help me w/ verification 
voice verification?
yea, need to start communication finally to get verify
so wanna start some nice conversation
do you thing its good idea ๐
!args
ยป mutable-default-args
ยป args-kwargs
!args-kwargs
*args and **kwargs
These special parameters allow functions to take arbitrary amounts of positional and keyword arguments. The names args and kwargs are purely convention, and could be named any other valid variable name. The special functionality comes from the single and double asterisks (*). If both are used in a function signature, *args must appear before **kwargs.
Single asterisk
*args will ingest an arbitrary amount of positional arguments, and store it in a tuple. If there are parameters after *args in the parameter list with no default value, they will become required keyword arguments by default.
Double asterisk
**kwargs will ingest an arbitrary amount of keyword arguments, and store it in a dictionary. There can be no additional parameters after **kwargs in the parameter list.
Use cases
โข Decorators (see !tags decorators)
โข Inheritance (overriding methods)
โข Future proofing (in the case of the first two bullet points, if the parameters change, your code won't break)
โข Flexibility (writing functions that behave like dict() or print())
See !tags positional-keyword for information about positional and keyword arguments
@random talon You don't like what, sorry?
You sort of cut out as you were saying it then you left.
@whole bear ๐
<@&267628507062992896> Please can I get voice authorised, this is a post from 2020: #voice-chat-text-0 message
Or at least have your voice verification process take into account returning users, if possible.
@rigid nest I can pretty much just straight up say that you're going to have to go through the usual process.
In all probability.
Mr Hemlock would be the one to talk to about any exceptions, there.
He's not likely to be around for at least three or so hours, more likely four and a half if at all.
@shut ravine ๐
hi
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
That's not fair really is it.
It's not like I didn't spend tens of hours helping people in the help chat and getting involved in the community.
Talk to Hemlock. See what he says.
I've seen him say no to a few people in this situation, before, though, so, you know...
Patience is a virtue and all that bullshit.
@pale nebula ๐

@hollow phoenix ๐
so whats new?
@balmy copper ๐
@somber heath ๐
Hah
I need your help
I am from Ukraine and I do not understand you
I would like to find a code for a discord bot
I have something similar but it doesn't work.
#1035199133436354600 i guess
OK, thank you
what's up?
I have?
ha?
i don't know how to explain what's up
@hoary olive I did say hi before, but I might have been non-Discord muted and not realised it.
hi, since you would have met the requirements again in a few hours I've granted the role. please try and use @rapid crown for things like this. thank you!
G programming language?
how I can create chose game in python but I want simple game
!kindling
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
Tic tac toe, hangman. Chess isn't too hard if all you're doing is moving pieces around.
I hate quickbooks
So much
So very very very much
@zenith radish @vernal bridge Hello
See previous QuickBooks rage
It's a bookkeeping program
A program that can die in a fire
Fuck and/or you
That poor cat
You look good with your head buzzed vs shaved
It's like.... the extremes of mullet
What?
@oblique cloud Sup.
sup
All day
Oh mother fucker
I think I found the file I was looking for that potentially could have fixed something
Hostile probably isn't the right word. More like.... when you try to take a dog's food while they're eating
Erh mah gurd, Durbiurn
One sec, it's a reference to a meme
Ermahgerd, a rhotacized pronunciation of โoh my god,โ is an image macro series featuring a photo of a young woman holding several books from the childrenโs horror fiction series Goosebumps. The phonetically written captions are meant to sound like a speech impediment caused by the use of an orthodontic retainer, often using the snowclone templat...
I don't know
But it is to me
Yeah there's lots of things that I find funny that I can't explain why
I've given up trying to understand my brain
I feel called out
Linux is laying down sick burns about my Windows usage
@zenith radish It feels like a waste to do that, though
Since it won't be properly optimized
That's just my thought
Is Arm64x the same as the M2?
HA
Dude fucking
Every time it's the wifi card
So good
It used to be the case, but yeah
The prices have certainly met now
Okay but like
scissor switches

