#voice-chat-text-0

1 messages ยท Page 125 of 1

vocal basin
#

!e

import bisect
grades = [
    (65, "D"),
    (70, "C"),
    (80, "B"),
    (90, "A"),
]
def grade_of(score: int) -> str:
    ix = bisect.bisect_right(grades, (score,))
    if ix:
        *_, grade = grades[ix - 1]
        return grade
    else:
        return "F"
print(grade_of(64), grade_of(65), grade_of(66))
print(grade_of(69), grade_of(70), grade_of(71))
print(grade_of(79), grade_of(80), grade_of(81))
print(grade_of(89), grade_of(90), grade_of(91))
wise cargoBOT
#

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

001 | F F D
002 | D D C
003 | C C B
004 | B B A
vocal basin
#

this is what happens without the second element

#

bisect doesn't support reverse

#

and making a custom key would be too much effort

#

and same for checking F

#

your code was almost working before

#
for grade_score, grade_text in grades:
    if x >= grade_score:
        return grade_text
return "F"
#

your code ignores BCD

#

totally

#

@lunar haven ordering

#

explicitly determined

#

also, for inserting new grades

#

or changing them

#

list is a more fit construct for arbitrary-sized sequences, generally

#

tuple's meaning is different

#

it's not the most optimal data structure

#

a tree is

#

probably

#

tree, generally, is the closest you can get to optimally inserting in a sorted sequence

#

but here it's useless anyway

vocal basin
#

next returns the first element of the iterator

vocal basin
#

@lunar haven write tests to check the function

#

your doesn't work

#

inline if just doesn't work there

#

because return isn't supposed to happen on each iteration

#
grade_of = toGrade
print(grade_of(64), grade_of(65), grade_of(66))
print(grade_of(69), grade_of(70), grade_of(71))
print(grade_of(79), grade_of(80), grade_of(81))
print(grade_of(89), grade_of(90), grade_of(91))
#

(to get all important results)

vocal basin
#

or that, yes

vocal basin
#

next is fine

#

if used like this

maiden skiff
#

hi

wise cargoBOT
whole bear
#

YOOO

willow light
#

!pip httpx

wise cargoBOT
willow light
#

!docs aifc

wise cargoBOT
#

Source code: Lib/aifc.py

Deprecated since version 3.11, will be removed in version 3.13: The aifc module is deprecated (see PEP 594 for details).

This module provides support for reading and writing AIFF and AIFF-C files. AIFF is Audio Interchange File Format, a format for storing digital audio samples in a file. AIFF-C is a newer version of the format that includes the ability to compress the audio data.

willow light
#

!pip FastAPI

wise cargoBOT
#

FastAPI framework, high performance, easy to learn, fast to code, ready for production

willow light
#

but what if I want to make a SOAP API

whole bear
#

YOO

plain shadow
#

@lunar haven can't even talk bruh

#

aii

#

aii as in Ok

#

Lol

#

damn

#

nope

#

what is it

#

!t finally

#

!d finally

wise cargoBOT
#

8.4.4. finally clause

If finally is present, it specifies a โ€˜cleanupโ€™ handler. The try clause is executed, including any except and else clauses. If an exception occurs in any of the clauses and is not handled, the exception is temporarily saved. The finally clause is executed. If there is a saved exception it is re-raised at the end of the finally clause. If the finally clause raises another exception, the saved exception is set as the context of the new exception. If the finally clause executes a return, break or continue statement, the saved exception is discarded...

plain shadow
#

I have to send 50 messages to talk

#

๐Ÿ’€

#

continue is easy

#

Lol

#

I have 20 messages remaining

#

to talk in vc

#

sadly i have to play message simulator

#

ong

#

on god

#

LOL

#

wish i could talk rn

#

๐Ÿ˜‰

#

hm?

#

haven't heard of it

#

oh

#

nah

#

no

#

ofc

#

crazy

#

lol

#

damn

#

almost there boiss, 5 more messages

#

lmao

#

what the

#

I have 50 messages but the bot says i need 50

#

nooo

#

๐Ÿ˜ญ

#

ayy i got it

#

ima rejoin

whole bear
#

i did an virus with python

#

to catch an racist guy

#

the python get the chrome gmail and password

#

then send to my email

#

no

#

yes

#

but he didn't click

#

but i tested and worked

wind raptor
#

!stream 764365008460841000

wise cargoBOT
#

โœ… @plain shadow can now stream until <t:1683074361:f>.

wind raptor
whole bear
#

:(

wind raptor
#

Please delete the pics

wind raptor
whole bear
#

im sorry

#

but it was to a good cause

#

the guy that im hacking is racist

wind raptor
#

No worries.

whole bear
#

but anyways im sorry

#

where i can send my malicious codes ?

wind raptor
#

I understand your viewpoint, but we can't promote illegal stuff here

whole bear
#

in the server ?

#

or the chat ?

wind raptor
#

both

whole bear
#

okay

wind raptor
#

Thanks. There may be security servers that would be more interested in it

whole bear
#

that was really difficult to make my python v1Ru2

whole bear
#

bcz google now needs api security to accept sending emails from third party's apps

#

@wind raptor can you help me with it ?

#

not the virus

#

but help me send emails with python

wind raptor
#

!timeout 525367330213986335 1d I asked really nice that you stop talking about your virus. Please read our #code-of-conduct and #rules while you have a break

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1683161078:f> (1 day).

lavish rover
#
input_expr.chars().collect::<Vec<_>>();
#

"hello this is a string"

#

strcat

#
void strcpy(char *src, char *dst) {
   while (*dst++ = *src++);
}
#

100[arr]

#

arr[100]

#

a[b] === *(a+b) == *(b+a) == b[a]

steep juniper
#
#include <stdlib.h>
#include <string.h>
#include <stdio.h>


char *name = malloc(sizeof(char * length))

char *are_you_playing_banjo(const char *name) {
  char i = name[0];
    if(strcmp(i, "R") == 0 || strcmp(i, "r") == 0)
  {
    char *yp = malloc();
    return yp;
  } 
    char np = ("%s does not play banjo", name);
    return np;
}

int main(){
    return 0;
}
lavish rover
#

i == 'R'

whole bear
#

hey can u send me a code in c to dynamically allocate an array of strings .. like every string in an array shouldnt waste space ..we are taking input of strings .so we cant put value before hand

#

and explain as well

#

alright

#

thanks i will send my code soon

stuck furnace
#

\0

lavish rover
#
np[100] = '\0';
np[100] = 0
#

malloc(sizeof(char) * some_length)

wind raptor
#

!stream 313415567354757121

wise cargoBOT
#

โœ… @steep juniper can now stream until <t:1683077756:f>.

stuck furnace
#
int sprintf(char *str, const char *format, ...);
whole bear
#

not like that we gave a really huge arr[3][100] meaning the largest possible string can be of length 100 so if i input a four letter word then the rest goes waste

vocal basin
#

it often goes worse than to waste (overflows)

stuck furnace
#

It's a nice tool for learning C.

dark mural
#

just the process

stuck furnace
#

Try it ๐Ÿ˜„

#

It lets you step through the code and visualise the memory.

#

Oh, are you asking how to use sprintf?

#

That would be the template string.

#

Sorry I think you've gotten confused. I pasted that to remind Mustafa what arguments that function takes.

stuck furnace
stuck furnace
#

If you need a good book, The C Programming Language (2nd edition) is what I'd recommend. Even though it's like 30 years old now, it's still pretty good.

#

for loops in c have the form: ```c
for (<setup>; <condition>; <update>) {
<body>
}

#

Which expressed as a while loop would be: ```c
<setup>
while (<condition>) {
<body>
<update>
}

wind raptor
#

Have a great night!

vocal basin
# vocal basin not exactly
{  // scope to isolate setup
    <setup>
    while (<condition>) {
        <body>
        // let's pretend `continue` and `break` never happen, or else we'll have to use `goto`
        <update>
    }
}
lucid blade
#

bf

#

ts

#

bs

#
Ulefone Mobile

Dimensity 900 5G | FLIR Lepton 3.5 Thermal Imaging | 108MP Main Camera | 6.58-inch 120Hz Display | 9600mAh battery | 66W Charge | 12GB+256GB | WiFi 6 | Corning Gorilla Glass 5 ย Local warehouse for fast delivery ย Order Processing Time:1-3 working days ย 100% secure payment with the reliable refund policy ย Official direct selling, 100% authentic ...

lucid blade
lucid blade
#

.

#

LOL

#

sorry i tagged for chris

#

didnt mean to ping

#

lol peace too im going to get some zzzs

somber heath
#

@fallow musk ๐Ÿ‘‹

last rose
#

@somber heath @midnight agate @dense meadow hello

#

need to send like 50 messages

#

so like

#

breh

#

not really

#

more like a more happy version of the grumpy BBBBBBRRRRRRRRRRRRAAAAAAAAAAAAHHHHHHHHHHH

#

sonic what accent is that?

#

no

#

lmao

#

thats why i asked

#

oh no

#

20

#

you wait till you get the sheer brut of the aussie

#

soemthing like tha t

#

i mean, locals fight the bin chickens @somber heath

#

they drink what?

somber heath
last rose
#

dont get me starte don stingrays

last rose
#

kangaroo meat is quite nice

#

@somber heath they do that becasue they make more money. tax inported products

#

government litterally is just the people that can make the most money, in the sketchiest way possible

vocal basin
#

meh I wrote in the wrong channel

somber heath
#

@whole bear post here

#

@whole bear as you would have it

whole bear
vocal basin
#

10+5+5

last rose
#

@vocal basin what you mean. wasnt providing or requesting assistance

#

you can dm if ya want

vocal basin
#

just reminding not to talk too much about ToS-violating technology, especially in the context of "having problems with it" which often could be interpreted as indirect request for help;
and if you know it's ToS-violating and you explicitly don't want any extra engagement with what you said, disclose it upfront;

last rose
#

ah i see

vocal basin
#

rest is important
thinking while being away from the computer is important too
there are some other nuances why taking from working "directly" is necessary

#

idk how to make a diagram out of it more properly

dense meadow
#

oops

#

lmao

vocal basin
#

there's too many different visual representations of what's happening there

#

or it could be something like this to highlight scope

#

trying to figure out whether or not those f/x/f(x) annotations will make it clearer

#

formal diagrams require knowing what special types of arrows/boxes mean

#

the idea here is to make it understandable for someone who never saw the formal ones

somber heath
#

!print-return

wise cargoBOT
#
Print and return

Here's a handy animation demonstrating how print and return differ in behavior.

See also: /tag return

vocal basin
#

yes, was just thinking about using AST for pre-processing

#

maybe injecting something into AST might help

somber heath
#

@zinc owl ๐Ÿ‘‹

zinc owl
#

Im muted on VC. Probably have to complete some id process that Im too lazy about

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

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

zinc owl
#

ooook, 48 messages to go

vocal basin
#

continuing to explore things similar to mdBook;
I wonder if there's an alternative to it but for Python

#

ig mdbook test can be configured to test Python code too

#

same for pre-processing

#

Rust has a common way to hide code from docs
idk how that'd work in Python

#
# println!("this is hidden");
println!("this is shown");
#

how would that be in Python

#

ah, also Python has indentation

#
# fn main() {
println!("example");
# }

^ doesn't work well in Python

#

as expected

#

isn't Sekiro beginning by unwinnable but survivable fight?

#

I should reinstall Code Vein
hasn't played since December

vocal basin
somber heath
#

@bold rock ๐Ÿ‘‹

bold rock
#

hi

bold rock
somber heath
#

A little chilly.

bold rock
#

oookay

#

Are you always so quiet?

somber heath
#

No

#

I'll be in a position to talk in a short while.

bold rock
#

its good

#

Enjoy your meal

wind raptor
#

@potent quiver here

potent quiver
#

ah

#

okay

#

heyy

vocal basin
#

there's also pnpm

vocal basin
#

I'm not using VPNs generally

vocal basin
molten pewter
vocal basin
#

make your own JS build chain

#

make the world a more complicated place

#

.xkcd 927

viscid lagoonBOT
#

Fortunately, the charging one has been solved now that we've all standardized on mini-USB. Or is it micro-USB? Shit.

vocal basin
# vocal basin .xkcd 927

I was trying to find another quote about that
but I found this instead:

peak gaming humour

@app.get("/win/")
async def win():
    raise HTTPException(402)
molten pewter
somber heath
#

@potent quiver ๐Ÿ‘‹

#

!voice

wise cargoBOT
#
Voice verification

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

molten pewter
somber heath
#

@molten pewter You mean like today's day and age?

wind raptor
vocal basin
rugged root
#

@turbid sandal We can hear you

somber heath
#

I recently discovered touch-slide typing on my phone keyboard.

molten pewter
somber heath
#

I was using a different keyboard app because this one doesn't have tab.

#

Also yes.

molten pewter
somber heath
#

Also, Def, If, For, etc.

molten pewter
#

I wonder if the same

turbid sandal
#
vocal basin
vocal basin
#

USB devices are supposed to be hot-swappable

#

given that also, like, it requires drivers to work in the first place

molten pewter
#

Hot swapping is the replacement or addition of components to a computer system without stopping, shutting down, or rebooting the system; hot plugging describes the addition of components only. Components which have such functionality are said to be hot-swappable or hot-pluggable; likewise, components which do not are cold-swappable or cold-plugg...

turbid sandal
vocal basin
#

very wrong terminology

vocal basin
rugged root
vocal basin
#

"no, he did it for Jesus"

#

I don't understand auto-play

#

pre-made -- yes

#

there's also music streaming platforms which force to use auto-play on free plans

#

which is like

#

???

rugged root
#

Yeah that's always been weird

dense meadow
#

hello

vocal basin
#

I've done that multiple times

molten pewter
vocal basin
#

first one should actually be 32

#

but, apparently, one video is unavailable now

vocal basin
molten pewter
vocal basin
#
docker run -it --rm node:19 bash
vocal basin
rugged root
molten pewter
willow light
rugged root
#

I know nothing about AI stuff

#

Seems neat

willow light
#

It seems to be a superset of python.

vocal basin
#

here being on any side of politics calls for liability
because of how laws are structured

willow light
rugged root
#

I don't think it's superset

vocal basin
willow light
vocal basin
willow light
#

well, then i guess I'll just stick to python, julia, and scala for that

vocal basin
#

at this point I'd rather just write Rust

willow light
#

for ai and data stuff I prefer julia to rust

vocal basin
#

well, yes for AI

vocal basin
#

@verbal zenith maybe responses should be a queue?

#

with handlers being stored in a dictionary

#

(not responses)

vocal basin
#

so, for example, you can limit the queue to length 1

#

there is actually a concept which is roughly equivalent to a queue of length 0
idk how to implement it properly with async

#

like

#

how TTY works actually

#

yes doesn't print y unless prompted for it

#

so it's lazy in some sense

#

read and write need to meet

#

write doesn't proceed until read happens

#

there is something coffee-themed or whatever

#

I forgot

#

yes that

vocal basin
#

@verbal zenith asyncio.Queue

#

you can just .get() on it to wait until something arrives

#

they will

#

order of .put() is preserved by .get()

willow light
#

I kinda have to wonder what prompted this message from the apartment complex management office.

vocal basin
#

there is also something which I forgot how it's called

#

to yield earliest things

#

!d asyncio

wise cargoBOT
#

Hello World!

import asyncio

async def main():
    print('Hello ...')
    await asyncio.sleep(1)
    print('... World!')

asyncio.run(main())
```...
vocal basin
#

!d asyncio.as_completed

wise cargoBOT
#

asyncio.as_completed(aws, *, timeout=None)```
Run [awaitable objects](https://docs.python.org/3/library/asyncio-task.html#asyncio-awaitables) in the *aws* iterable concurrently. Generators yielding tasks are not accepted as *aws* iterable. Return an iterator of coroutines. Each coroutine returned can be awaited to get the earliest next result from the iterable of the remaining awaitables.

Raises [`TimeoutError`](https://docs.python.org/3/library/exceptions.html#TimeoutError "TimeoutError") if the timeout occurs before all Futures are done.

Example:

```py
for coro in as_completed(aws):
    earliest_result = await coro
    # ...
```   Changed in version 3.10: Removed the *loop* parameter...
vocal basin
#

node 14?

#

guess which version runs on my host server

#

hint: not 14

vocal basin
willow light
#

!pip certifi

wise cargoBOT
rugged root
vocal basin
#

I don't think I use it for anything other than VSC

#

and it might be using a bundled node

#

fixed-ish

#

I'm waiting for the day when I no longer need node on my server

#

sounds poisonous

#

"just use depleted uranium instead"

willow light
#

use osmium

willow light
vocal basin
#

is it more expensive?

#

(depleted uranium)

vocal basin
#

micrograms not nanograms?

#

ig

#

(might be wrong)
(I was)

willow light
#

Let's not forget the romans used lead instead of sugar.

vocal basin
#

there's also lead replacing calcium over time or something similar

#

"that's not tenderising, that's pulverising"

vocal basin
somber heath
#

People put pens in their mouths all the time.

#

I never did as a habit, but I probably have at some point.

molten pewter
#

https://www.who.int/news-room/fact-sheets/detail/lead-poisoning-and-health The WHO "estimate that nearly half of the 2 million lives lost to known chemicals exposure in 2019 were due to lead exposure."

Lead is a naturally occurring toxic metal found in the Earthโ€™s crust. Its widespread use has resulted in extensive environmental contamination, human exposure and significant public health problems in many parts of the world.

rugged root
#

Bread poisoning

vocal basin
#

Russian politics aren't based on benefits anymore

rugged root
#

Fair

vocal basin
#

with pipelines* price being included in the discount
*which Russia has no money for, so China has to build it

rugged root
#

True

molten pewter
#

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6675757/ "the findings summarised above indicate that B-Pb of humans tends to increase in association with consumption of game meat containing ammunition-derived lead"

PubMed Central (PMC)

It has been known for centuries that lead is toxic to humans. Chronic exposure to lead, even at low levels, is associated with an elevated risk of cardiovascular and chronic kidney disease in adults and of impaired neurodevelopment and subsequent cognitive ...

vocal basin
#

burn the coal burn the coal

molten pewter
#

"comparative studies indicate that the B-Pb of people who eat game animals killed using lead ammunition is elevated compared to that of people who do not consume game meat and some of these show that the degree of elevation of B-Pb is related to the amount of game meat eaten."

#

"We conclude that a considerable proportion of the ammunition-derived lead present in food ingested by consumers is absorbed into their blood and that this results in elevated B-Pb of game consumers"

gentle flint
limpid umbra
#

coal burns mighty fine , especially for BBQ!!!!

#

resident chemist is making - crack -

molten pewter
willow light
limpid umbra
#

is metallic ice a condensate

willow light
vocal basin
#

just follow what numbers on axes say
especially useful when it's not linear/logarithmic

limpid umbra
#

plasma = ionized

vocal basin
#

(and they keep the numbers just to say "technically, we didn't exactly lie")

willow light
#

it does get interesting when people remember the richter scale is logarithmic and they say "but log curves are supposed to flatten out after a while" and you inform them that yes it does, but the number is so high that it has never been observed even in the fossil record.

#

the theoretical maximum on this planet is 15.

#

the maximum observed was 9.5

limpid umbra
#

isnt warp factors using LOG scales ?

willow light
#

I like this version of the phase diagram

#

oh also for earthquakes it is on a log scale, but it's log base 30 instead of log base 10

limpid umbra
#

ice can turn metallic , but needs lots of help to get there

rugged root
#

What?

limpid umbra
#

condensates

#

its really weird shit

willow light
#

phase-changes are also pretty fun. deposition is when the vapor goes directly to a solid. this happens with water on mountaintops.

#

the ice is in the direction of the wind

limpid umbra
#

hmmmm mighty frosty , keep your zipper up

willow light
#

you need to be in an exposure suit for those conditions

#

I've worn one of these exactly once, and I hope I never need to again

limpid umbra
#

how cold is outer space

#

conduction thingy

vocal basin
#

there are ways to measure "temperature" of space because there are some particles still
but idk if it matters

#

there's also the "temperature" of CMB

willow light
#

but the number of collisions per second is so low that 99.99999% of thermometers are rendered useless

#

because temperature is actually a measure of the average velocity of the atoms/molecules in the substance

vocal basin
vocal basin
willow light
#

via thermal radiation, yes

#

but we perceive as temperature is us receiving the thermal radiation which causes our own particle velocities to increase

limpid umbra
#

if its raining ash you need a brolly like - wile e coyote

vocal basin
#

with the average subtracted

#

because average velocity is just velocity of the particles as a collective not temperature

#

*too much time passed since I knew anything about this*

willow light
#

I'm going by average according to reynold's averaging, boundary layer meteorology textbook is my source on this one

#

which, i know, is meant for turbulent fluid flow, but I'm adapting it for temperature

#

but we can't go too far down that rabbithole because you reach tensor calculus way too quickly for my liking

limpid umbra
#

did you ever model physics events in pygame

rugged root
#

I have not

willow light
rugged root
willow light
#

!docs shutil

wise cargoBOT
#

Source code: Lib/shutil.py

The shutil module offers a number of high-level operations on files and collections of files. In particular, functions are provided which support file copying and removal. For operations on individual files, see also the os module.

Warning

Even the higher-level file copying functions (shutil.copy(), shutil.copy2()) cannot copy all file metadata.

On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type and creator codes will not be correct. On Windows, file owners, ACLs and alternate data streams are not copied.

willow light
#

!docs linecache

wise cargoBOT
#

Source code: Lib/linecache.py

The linecache module allows one to get any line from a Python source file, while attempting to optimize internally, using a cache, the common case where many lines are read from a single file. This is used by the traceback module to retrieve source lines for inclusion in the formatted traceback.

The tokenize.open() function is used to open files. This function uses tokenize.detect_encoding() to get the encoding of the file; in the absence of an encoding token, the file encoding defaults to UTF-8.

The linecache module defines the following functions:

willow light
#

rime ice is so cool. pun intended.

limpid umbra
#

SPACEBALL physics via Chef Boy Ar dee

molten pewter
limpid umbra
#

i think there is a special room for that suit , LATEX discord

vocal basin
#

log scale

vocal basin
willow light
limpid umbra
#

thats a great book cover

vocal basin
#

"if you started with JS, you can claim you started with Lisp"

#

I should make a counter
but I'd have to go back through all my messages to start it a correct number

rugged root
vocal basin
#

WRF?

willow light
vocal basin
#

first thing on google showing up for me:

elfin flicker
#

how do you get VC perms

vocal basin
#

!voice

wise cargoBOT
#
Voice verification

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

willow light
#

weather research and forecasting model

#

and you can tell who the target audience is when the tutorial includes "how to install using cygwin"

#

including directions on how to download and install cygwin

vocal basin
#

I wonder if there are project which require both cygwin and mingw to work

limpid umbra
#

executive garbage collection

#

filling drives with games

vocal basin
#

crawler?

limpid umbra
#

beautiful soup ?

elfin flicker
#

i hate it 2animeCrying

willow light
#

it's perfectly reasonable

#

we want people to participate

limpid umbra
#

any topic can be offerd in this room .. all roads lead to PYTHON eventually

elfin flicker
rugged root
#

It's for a good reason

#

We had hit and run trolls. Folks who would join the server, join voice chat, scream, and then leave

vocal basin
#

why have restriction on compiler recursion limit?

rugged root
#

That was happening around a dozen times a day

vocal basin
rugged root
#

@elfin flicker So I get it sucks, but it's for a good cause

elfin flicker
#

BRUH

willow light
#

some people just want things immediately and get all pissy when they don't get their way

somber heath
#

@elfin flicker We freely acknowledge that, in itself, it is a negative, but it is a negative which negates a far greater negative. We're better off with it, I'm afraid. ๐Ÿ™‚

elfin flicker
#

in

#

becuse i need 50 and thats the only req im missing

rugged root
#

!stream 373160837151719424

wise cargoBOT
#

โœ… @lime vale can now stream until <t:1683133181:f>.

elfin flicker
#

@rugged root i have the rest of them

rugged root
#

Ohhhhhhhhhhhhhh

#

Sorry, I misread your join date

limpid umbra
#

group effort insantity abounds

rugged root
#

I'm out of it

elfin flicker
#

yeah i have sent a message in 3 different 10 min blocks aswell

vocal basin
#

I don't think I have something like ADHD
but I do have focus issues (as in, I don't get interested in things rather than getting distracted)

rugged root
#

Gotcha gotcha

elfin flicker
#

just not enough total messages

vocal basin
#

"challenge"
"variety"

rugged root
#

Been working on any projects?

vocal basin
elfin flicker
#

im an idiot i made an alternate identity and it had 2fa with a phone but i have no clue what the email phone or username is kek. and its not linked with any of my other account.

rugged root
#

That suuuuuucks

#

Done that before

elfin flicker
#

i did such good opsec i secured myself out

rugged root
#

Maybe you were the real intruder all along

elfin flicker
#

i put it some where not sure where though

elfin flicker
vocal basin
#

"go wild"

rugged root
#

Not sure if that's something to brag about?

limpid umbra
#

thats cute

elfin flicker
#

im sad still not 50 only 38

rugged root
#

Slows and steady.

elfin flicker
#

bruh

#

@lime vale ur fowl coffee

vocal basin
#

acidic coffee?
sounds not very right

limpid umbra
#

the evil brew ....

#

has anyone automated via code , the coffee bean roasting process - roasting is very involved

elfin flicker
#

ahhhh we are to much of an infuance

rugged root
#

Right?

gentle flint
elfin flicker
#

merica

vocal basin
#

so far I just avoid RT and its offsprings like Ria

rugged root
#

Makes sense

elfin flicker
#

wtf

#

yall are terible

rugged root
#

Puns for days

#

It's how we roll

vocal basin
elfin flicker
#

46 now

whole bear
#

YOOO

vocal basin
#

well
red wine could've been coloured with bugs

whole bear
#

Bro I have the voice verification but its not working Im muted

vocal basin
#

reconnect

#

if you just got it

whole bear
vocal basin
#

leave the VC
join the VC

elfin flicker
#

im so dead i keep forgeting i dont have VC perms

#

terible

#

ooooh i got 50

vocal basin
#

is there a way to use spotify as a web page still?

#

spotify does some weird things which are allowed by it being an app

#

for example:
if it detects a discord stream, it stops

#

sometimes

#

for some people

whole bear
willow light
#

rm -rf / is one of my vices

vocal basin
#

rm -fr remove for real

willow light
#

tar xzvf the mnemonic I use is "eXtract Ze Vucking File"

limpid umbra
#

@gentle flint mmm you want to zapp those cracks with a ARC welder??

vocal basin
#

does rm -rf --no-preserve-root / inside a container actually increase used space?

#

due to how the layered filesystem works

limpid umbra
#

blowtorch = cigar lighter

willow light
#

blowtorch: how i cook my halibut steaks. wicked rare.

limpid umbra
#

i need a tiny torch to make crispy crusts

willow light
#

Waiter: "How do you like your swordfish cooked?"
Me: "Lightly spritzed with a flamethrower."

limpid umbra
#

mmm slow cooked fatty halibut steak , with a cripy crust

amber raptor
willow light
#

for shits and giggles

amber raptor
#

Err, ok, carry on

willow light
#

to see what happens

amber raptor
#

Sure, combining Mentos and Diet Coke is fun as well but isn't really practical

vocal basin
limpid umbra
#

the madness .... begins

rugged root
limpid umbra
#

i have a pine64 - sitting in the corner

#

pine 64 also has , 2 GPU cores

willow light
#

if you hear sus grunting, I'm doing pull ups

vocal basin
#

there is something with getting file metadata but I forgot the proper method to get it

vocal basin
amber raptor
#

docker inspect

vocal basin
#

from Python I mean

limpid umbra
#

usually for GPIO activity , you enable it - run code - do some clean up on exit code , otherwise it will hang onto a prior GPIO pin config

vocal basin
#

I have Odroid H2 single board computer
which is x86-64, not ARM

#

so, like, usable

willow light
#

Meanwhile, all of my stories are still blocked. Gotta love scrum.

vocal basin
#

!d pathlib.Path.stat

wise cargoBOT
#

Path.stat(*, follow_symlinks=True)```
Return a [`os.stat_result`](https://docs.python.org/3/library/os.html#os.stat_result "os.stat_result") object containing information about this path, like [`os.stat()`](https://docs.python.org/3/library/os.html#os.stat "os.stat"). The result is looked up at each call to this method.

This method normally follows symlinks; to stat a symlink add the argument `follow_symlinks=False`, or use [`lstat()`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.lstat "pathlib.Path.lstat").

```py
>>> p = Path('setup.py')
>>> p.stat().st_size
956
>>> p.stat().st_mtime
1327883547.852554
```   Changed in version 3.10: The *follow\_symlinks* parameter was added.
vocal basin
#

this thing

#

> st_
you can see how much C it is

willow light
vocal basin
#

"as opposed to what?? fictional size?"

maiden skiff
#

im good

vocal basin
#

!d os.stat_result.st_fstype

wise cargoBOT
vocal basin
#

and this is Solaris only

#

I'd guess it to be size on disk

#

but can't be sure

maiden skiff
#

Is it better to study English by reading a book or watching Netflix? I'm studying while watching sitcom dramas on Netflix

#

Someone told me to study while watching Netflix without subtitles

vocal basin
#

there's an option to watch programming/engineering talks on topics you are interested in

#

like
research things you're interested in
there is some information gated by the language
go and read that information anyway, with translation if needed

willow light
#

The seasoning is going well

vocal basin
#

@verbal zenith encode?

#

!d str.encode

wise cargoBOT
#

str.encode(encoding='utf-8', errors='strict')```
Return the string encoded to [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes").

*encoding* defaults to `'utf-8'`; see [Standard Encodings](https://docs.python.org/3/library/codecs.html#standard-encodings) for possible values.

*errors* controls how encoding errors are handled. If `'strict'` (the default), a [`UnicodeError`](https://docs.python.org/3/library/exceptions.html#UnicodeError "UnicodeError") exception is raised. Other possible values are `'ignore'`, `'replace'`, `'xmlcharrefreplace'`, `'backslashreplace'` and any other name registered via [`codecs.register_error()`](https://docs.python.org/3/library/codecs.html#codecs.register_error "codecs.register_error"). See [Error Handlers](https://docs.python.org/3/library/codecs.html#error-handlers) for details.

For performance reasons, the value of *errors* is not checked for validity unless an encoding error actually occurs, [Python Development Mode](https://docs.python.org/3/library/devmode.html#devmode) is enabled or a [debug build](https://docs.python.org/3/using/configure.html#debug-build) is used.

Changed in version 3.1: Added support for keyword arguments.
vocal basin
#

!d bytes.decode

wise cargoBOT
#

bytes.decode(encoding='utf-8', errors='strict')``````py

bytearray.decode(encoding='utf-8', errors='strict')```
Return the bytes decoded to a [`str`](https://docs.python.org/3/library/stdtypes.html#str "str").

*encoding* defaults to `'utf-8'`; see [Standard Encodings](https://docs.python.org/3/library/codecs.html#standard-encodings) for possible values.

*errors* controls how decoding errors are handled. If `'strict'` (the default), a [`UnicodeError`](https://docs.python.org/3/library/exceptions.html#UnicodeError "UnicodeError") exception is raised. Other possible values are `'ignore'`, `'replace'`, and any other name registered via [`codecs.register_error()`](https://docs.python.org/3/library/codecs.html#codecs.register_error "codecs.register_error"). See [Error Handlers](https://docs.python.org/3/library/codecs.html#error-handlers) for details.

For performance reasons, the value of *errors* is not checked for validity unless a decoding error actually occurs, [Python Development Mode](https://docs.python.org/3/library/devmode.html#devmode) is enabled or a [debug build](https://docs.python.org/3/using/configure.html#debug-build) is used.

Note

Passing the *encoding* argument to [`str`](https://docs.python.org/3/library/stdtypes.html#str "str") allows decoding any [bytes-like object](https://docs.python.org/3/glossary.html#term-bytes-like-object) directly, without needing to make a temporary `bytes` or `bytearray` object.
limpid umbra
#

love cast iron ....

maiden skiff
#

What's that command? Is it a command to describe a function?

vocal basin
#

!e

from sys import getsizeof
print(getsizeof(""))
rugged root
#

It grabs details about the library or function from the Python Documentation

wise cargoBOT
#

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

49
rugged root
#

Pretty handy

vocal basin
#
     ---encode-->
str                bytes
     <--decode---
#

!e

from sys import getsizeof
print(getsizeof([""] * 1000))
wise cargoBOT
#

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

8056
maiden skiff
vocal basin
#

!e

from sys import getsizeof
print(getsizeof(["a"] * 1000))
print(getsizeof(["a" for _ in range(1000)]))
print(getsizeof([chr(i) for i in range(1000)]))
wise cargoBOT
#

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

001 | 8056
002 | 8856
003 | 8856
rugged root
#

Yep, we've also got one for looking up external libs

#

!pip pendulum

wise cargoBOT
willow light
maiden skiff
willow light
#

um...

vocal basin
#

!e

from os import urandom as u
from sys import getsizeof as sizeof
print(sizeof([u(1000).hex()]))
rugged root
#

External libraries

#

3rd party packages

wise cargoBOT
#

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

64
rugged root
#

Things that wouldn't be in the standard library

maiden skiff
vocal basin
#

randomised paths

#

never know what happens

willow light
#

The path is like a box of chocolates, you never know what you're going to get.

maiden skiff
#

oh?

vocal basin
#

!d dict.get

wise cargoBOT
#

get(key[, default])```
Return the value for *key* if *key* is in the dictionary, else *default*. If *default* is not given, it defaults to `None`, so that this method never raises a [`KeyError`](https://docs.python.org/3/library/exceptions.html#KeyError "KeyError").
vocal basin
#

!d typesseq-mutable

wise cargoBOT
#

Mutable Sequence Types

The operations in the following table are defined on mutable sequence types. The collections.abc.MutableSequence ABC is provided to make it easier to correctly implement these operations on custom sequence types.

In the table s is an instance of a mutable sequence type, t is any iterable object and x is an arbitrary object that meets any type and value restrictions imposed by s (for example, bytearray only accepts integers that meet the value restriction 0 <= x <= 255).

vocal basin
maiden skiff
#

Is there anything else you do besides programming? Hobbies or side jobs

amber raptor
maiden skiff
vocal basin
# amber raptor https://12factor.net/config

"if config for a service is too big that it looks impractical to have it as env variables and you're tempted to use files to organise configs, it should probably be multiple services"?

#

I was doing file based config for some time
it was not very good, for multiple reasons

#

I made a very clever solution for a very unnecessary problem
and now I despise frameworks, after making one myself

amber raptor
sweet lodge
rugged root
#

No more than the largest number

#

Which is 2

sweet lodge
#

I'm up to...... 34

willow light
willow light
sweet lodge
vocal basin
vocal basin
#

I tried raw sockets once

#

it was enough not to repeat it for now

rugged root
#

Fair

vocal basin
vocal basin
#

@verbal zenith get where the class is initialised

#

as in used

#

*instantiated

#

I have spellcheck turned off in IntelliJ-based IDEs

#

@verbal zenith pydantic?

#

you can typehint that json

#

maybe as in Optional?

#

!d typing.TypedDict

wise cargoBOT
#

class typing.TypedDict(dict)```
Special construct to add type hints to a dictionary. At runtime it is a plain [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict").

`TypedDict` declares a dictionary type that expects all of its instances to have a certain set of keys, where each key is associated with a value of a consistent type. This expectation is not checked at runtime but is only enforced by type checkers. Usage...
vocal basin
#

and this for dict typing

median hill
#

btw I am using arch rn ๐Ÿ˜ถ

rugged root
#

Arch is fine

rugged root
whole bear
vocal basin
#

!rule 5 @turbid sandal this rule

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

vocal basin
#

make a bot instead

#

or an app

#

definitely not a macro

vocal basin
vocal basin
#

obviously

vocal basin
willow light
gentle flint
vocal basin
gentle flint
#

memory usage by the daemon

vocal basin
#

meanwhile, according to task manager (that just almost crashed) on my windows pc:

dwm.exe: 2.5 GB VRAM
explorer.exe: 2.1 GB VRAM

this is fine

#

this is not as bad as 0.2 TB VRAM (2500% of available) used by Discord

#

(alleged to be used, because task manager is not a reliable piece of software)

gentle flint
#

that's not the same thing

vocal basin
#

*reserved

#

yes

median hill
vocal basin
gentle flint
vocal basin
#

typing is once per half the period required, I guess

#

if typing stops after 10s

#

so sending the thing each 5s is enough

gentle flint
maiden skiff
#

I'm cleaning right now, but I'm so tired

limpid umbra
#

gonna add some DRAM because .... timing is difficult to code

#

i just shut Depeche Mode off - you talking now

verbal zenith
#

what is depeche mode?

gentle flint
#

a band

limpid umbra
#

on data bus - all wires same length - grouped together

#

techno - synth band

#

remixes !!!

gentle flint
#

Depeche Mode are an English electronic band formed in Basildon in 1980. The band currently consists of Dave Gahan (lead vocals, co-songwriting) and Martin Gore (keyboards, guitar, co-lead vocals, primary songwriting).
Depeche Mode, originally formed by the lineup of Gahan, Gore, Andy Fletcher and Vince Clarke, released their debut album Speak & ...

limpid umbra
#

ya - also had to set up slow cooker - coconut curry pork

#

top right corner is a - hi speed optocoupler USB to serial to converter

#

so i dont blow up my computer

#

breadboard and PC is isolated

#

the v regualtors have a thermal shutdown

#

all is fine -runs well - python code takes longer to learn

maiden skiff
#

It's break time until 6am

rugged root
#

Nice

#

How's work?

limpid umbra
#

its a junky kitchen table in a bedroom full of PCs

#

its no longer a bedroom

maiden skiff
limpid umbra
#

full of cables on the floor

#

audio - ether - opto -

rugged root
#

@maiden skiff Yeah you might need to mute, we're getting tons of background noise

limpid umbra
#

coax

maiden skiff
#

WHY?

#

oh sorry

#

I didn't realize it at all

#

This is so embarrassing lol

limpid umbra
#

i gave up trying to run multiple monitors - so i got a 4K 55 inch

#

was on sale had to get it

maiden skiff
#

I cleaned the fryer today and my whole body is covered with oil.

limpid umbra
#

55 inch takes less than 50 W

gentle flint
rugged root
limpid umbra
#

they have a faster P2 chip , was clocked at 400 Mhz

maiden skiff
gentle flint
#

.xkcd 2757

viscid lagoonBOT
#

"Hi, what you do is fly over a designated zone and detach the--" "WE'RE SORRY, THE MOBILE CUSTOMER YOU ARE TRYING TO REACH IS OUT OF SERVICE"

rugged root
still olive
#

I am not voice verified yet :)

rugged root
#

All good, still glad to have you here

unborn storm
limpid umbra
#

running servos on left - isolated

#

thermocouple interface is top left

maiden skiff
#

Break time is over

#

I'm going back to work

limpid umbra
#

y a 3V , 5V and 12V ,

#

i was running solenoids , servos -- isolated power

#

noisy stuff resets a MCU

#

Q - if you run python socket code on a RP3B+ ( ubuntu ) is it secure or wide open

#

just a local 192. address

#

the black arts of networking code

#

Q - isnt there a exception error list for some of this inner code stuff in network code

rugged root
#

!pep8

wise cargoBOT
#
PEP 8

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
โ€ข PEP 8 document
โ€ข Our PEP 8 song! :notes:

unborn storm
stuck furnace
#

@velvet tartan I think you're cutting in and out pithink

velvet tartan
#

Thanks for letting me know, sorry about that @stuck furnace

unborn storm
#

@stuck furnace I think I remember you are using vim,
Do you use the folds ? If so, how (with what foldmethod) ?

stuck furnace
#

And I don't think I really used code folding when I did use vim.

unborn storm
#

haha ok

#

because it is a bit different from other editors

stuck furnace
#

Too complicated for me ๐Ÿ˜„

unborn storm
#

and I always hesitate between having the folds restricted to indentation-wise folds, and completely free folds (zf is the folding operator, so you can fold anything)

stuck furnace
#

Is it z because it looks kind of folded? ๐Ÿค”

unborn storm
#

no

#

wait

#

idk ๐Ÿค”

#

it is true that all folding shortcuts start with z

vocal basin
#

rewrite it in Erlang/Go

#

one way to guarantee the order may be to not send more requests until response to the current one is received

limpid umbra
#

dynamic cueing ?

#

kinda like , first come - first serve but with exceptions , my primitive understanding

#

there must be a fancier name for that

#

pre-emption ?

vocal basin
#

queuing

limpid umbra
#

i cant spell worth shit - maybe i can do a auto chat GPT spellcheck thing..... ohhh i would need to know how to program first , never mind

vocal basin
#

I already proposed queues some time ago
though, if at any point more than one request is made simultaneously, this will involve keys/nonce/ids to differentiate responses

limpid umbra
#

maybe your idea , can be used for a core scheduler ( MCU scale cores ) , to hand a task off or split timing ( 1 core , 2 or 3 jobs )

#

i assume in python , there are modules that track this automatically

vocal basin
#

you don't need an account

#

there's a VS Code plugin

#

I have it installed as a PWA

#

(just a separate window for a site)

#

this thing in Chrome

#

it's open-source mostly

#

Chrome/Edge are both Chromium anyway

#

PWA

#

progressive web app

#

iirc

#

from what I remember, PWAs have a little bit more permissions
mostly related to CPU and memory usage

#

also it enables service workers
(background processes)

#

not exactly

vocal basin
#

left to right

#

ah

#

that one

#

yes

#

it's not left-to-right/right-to-left
it's condition-to-value

#

inside-out in case of the ternary

#

!e

bound = ""
unbound if False else bound
bound if True else unbound
wise cargoBOT
#

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

[No output]
vocal basin
#

!e

bound = ""
unbound if False else bound
bound if True else unbound
False and unbound
True or unbound
wise cargoBOT
#

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

[No output]
vocal basin
#

none of those raise errors despite unbound being unbound

#

!e

class Ignore:
    def __enter__(self): ...
    def __exit__(self, _, err, *_args):
        if err is not None: print("error:", err)
        return True
bound = ""
with Ignore(): unbound if True else bound
with Ignore(): bound if False else unbound
with Ignore(): True and unbound
with Ignore(): False or unbound
wise cargoBOT
#

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

001 | error: name 'unbound' is not defined
002 | error: name 'unbound' is not defined
003 | error: name 'unbound' is not defined
004 | error: name 'unbound' is not defined
vocal basin
#

time to test contextlib

#

!e

from contextlib import contextmanager
@contextmanager
def ignore():
    try:
        yield
    except Exception as err:
        print("error:", err)
    return True
with ignore(): unbound
wise cargoBOT
#

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

error: name 'unbound' is not defined
vocal basin
#

oh, it works

lavish rover
#

That's... Interesting

vocal basin
#

ig, return can be moved up once

#

!e

# how few lines can is be?
@__import__("contextlib").contextmanager
def ignore():
    try: yield
    except Exception as err: print("error:", err); return True
with ignore(): unbound
with ignore(): unbound
wise cargoBOT
#

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

001 | error: name 'unbound' is not defined
002 | error: name 'unbound' is not defined
vocal basin
#

you could've just removed ['properties'] on the thing you're maxing over

#

and move it to the lambda

#

map it to properties first

fierce wigeon
#

there is a control of decisions in this

limpid umbra
#

its a interesting problem

frank surge
#

Hi

ornate gulch
open fractal
#

Un mute me

somber heath
wise cargoBOT
#
Voice verification

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

somber heath
#

In response to voice trolls, a voice gate was put in place. It is a regrettable measure, but the voice chats are better with it, as it's a minor inconvenience that eliminates a far greater disruption.

somber heath
#

@oak matrix ๐Ÿ‘‹

somber heath
#

@hoary cradle ๐Ÿ‘‹

somber heath
#

@spark sun ๐Ÿ‘‹

spark sun
somber heath
#

!voice

wise cargoBOT
#
Voice verification

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

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

hi my voice is supressed

#

the powers that be have successfully silenced me

#

I feel like a 9mm handgun with a 0.5/28 threaded barrel and this server is the adapted oil filter from Autozone

somber heath
wise cargoBOT
#
Voice verification

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

whole bear
#

apparently I haven't sent enough messages to please the robot

somber heath
#

A regrettable measure, but an effective one. It's a speed bump, nothing more. ๐Ÿ™‚

#

Better than having people screaming all the time.

#

Which used to happen.

whole bear
#

Screaming is annoying

somber heath
#

Mm.

#

Made more unbearable by the number of times per hour it would happen.

whole bear
#

Anyone been messing with vector databases? Just came across it on YouTube.

neon dagger
#

hi @somber heath

somber heath
#

Chalkboards.

whole bear
#

you just need to use it responsibly

somber heath
#

Chalk on chalkboards, fine.

whole bear
#

Yes that's what they're made for after all

somber heath
#

@spark sun I'll bbiab.

somber heath
#

Bbl

wind raptor
#

Hey @onyx lagoon

onyx lagoon
#

mic

#

i am not authorized to speak in the field b u

wind raptor
#

!voice

wise cargoBOT
#
Voice verification

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

onyx lagoon
#

I couldn't

#

!voice

wise cargoBOT
#
Voice verification

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

onyx lagoon
#

what

#

i am not authorized to speak in the field b u

#

i am not authorized to speak on this channel

#

i'm getting some mistakes about python can you help

#

import pyqt5

wind raptor
#

!paste

wise cargoBOT
#
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.

onyx lagoon
#

Traceback (most recent call last):
File "C:\Users\รœzeyir ร–ฤžรœR\Desktop\Python Kod\PyQt5\sil.py", line 3, in <module>
from PyQt5 import QtWidgets, QtGui # QtWidgets pencere buton gibi รถzellikleri barฤฑndฤฑrฤฑr
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'QtWidgets' from 'PyQt5' (C:\Users\รœzeyir ร–ฤžรœR\Desktop\Python Kod\PyQt5_init_.py)

wind raptor
#

!code

wise cargoBOT
#
Formatting code on discord

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.

For long code samples, you can use our pastebin.

onyx lagoon
#

ImportError: cannot import name 'QtWidgets' from 'PyQt5' (C:\Usersรœzeyir ร–ฤžรœR\Desktop\Python Kod\PyQt5__init__.py)

#

i downloaded pyqt5 and installed it, but I'm still getting this error

#

how can I fix this

#

ฤฑฤฑiii i'm Turkish, but I don't know much English, if you write, I translate from translation

#

can you help

#

if you are available, shall I call privately and share the screen?

#

if you are available, shall I call privately and share the screen?

wind raptor
#

run this on your terminal py -0p

onyx lagoon
#

okey

#

later ?

#

what should be the next step

#

please write

#

i translate from translation english

#

i am little english

wind raptor
#

ok, one moment then

onyx lagoon
#

thanks i am waiting

wind raptor
#

Try reinstalling pyqt5

#

python3 -m pip install --upgrade --force-reinstall PyQt5

onyx lagoon
#

okey

#

dovrei scriverlo nel terminale

#

or cmd ?

wind raptor
#

in pycharm terminal

onyx lagoon
#

error python was not found

wind raptor
#

try with py instead of python3

onyx lagoon
#

okeyy

#

he gave these results

wind raptor
#

perfect. try to run it now

onyx lagoon
#

okey one minute

#

oh my got pufff

#

i'm going crazy, same mistake again

wind raptor
#

try running the program from the terminal using python program_name.py

onyx lagoon
#

okey

#

oh no mistake again

wind raptor
#

Actually, I think you need to import it differently. from PyQt5.QtWidgets import QWidget, etc

onyx lagoon
#

okey ฤฑ am trying

#

mistake error :(((

#

python.i wonder if exe file pyqt5 can be in different places

wind raptor
#

Yeah, PyCharm makes a virtual environment for you. It's possible it is not activated and is causing you problems

onyx lagoon
#

how to fix it

wind raptor
#

One sec while I find the more permanent solution again

onyx lagoon
#

okey i am waiting

#

hello guys

#

going to and from the toilet

#

i came

wind raptor
#

Ok, found the more permanent solution

onyx lagoon
#

did you find it

#

okey

wind raptor
#

Run this in your terminal Set-ExecutionPolicy Unrestricted -Scope CurrentUser

onyx lagoon
#

what should I do

#

okey

#

it did not give any results

wind raptor
#

Now close that terminal window and open it again

#

with the x, not the -

onyx lagoon
#

okey

#

i can't get results

wind raptor
#

There is no displayed result

#

but it worked

#

just close the terminal and open it again

onyx lagoon
#

running the code again

wind raptor
#

it won't work yet

#

still a few more steps

onyx lagoon
#

okeyh

wind raptor
#

did you close and reopen the terminal?

onyx lagoon
#

i turned it off and on

#

yess

wind raptor
#

You should see PS (venv)

onyx lagoon
wind raptor
#

next you need to set your default interpreter in the bottom right corner of PyCharm

onyx lagoon
#

is it from here

wind raptor
#

Click in Python 3.11 -> Add Interpreter -> local interpreter -> Existing

onyx lagoon
#

there are no results

wind raptor
#

ok, check out new

onyx lagoon
#

so what should I choose from the new browse

wind raptor
#

oh, actually, it is in existing

#

sorry

#

click the 3 dots

onyx lagoon
#

i can't press ok

#

ok, i clicked

wind raptor
#

You need to navigate to your project folder and then go into \venv\Scripts and click on python.exe

onyx lagoon
#

do I need to go to one of these two

wind raptor
#

Mine looks like this:

onyx lagoon
#

is this true ?

wind raptor
#

No, that's the default python

#

you want the python in your project

molten pewter
onyx lagoon
#

okey one minute

wind raptor
#

lol

onyx lagoon
#

oh guys thankss aahahahah

rugged root
#

Minor weather headache but beyond that alright

onyx lagoon
#

C:\Users\รœzeyir ร–ฤžรœR\Desktop\Python Kod\venv\Scripts\python.exe

#

i think I have to write this, don't I

wind raptor
onyx lagoon
#

guys there is no pythonexe here

wind raptor
onyx lagoon
#

okey

wind raptor
#

pip install virtualenv

onyx lagoon
#

i think the process is complete