#voice-chat-text-0
1 messages ยท Page 395 of 1
Onion: trump signs bible
meanwhile reality right after: pastor promotes trump coin
I think Onion's story look more sane
they really need to catch up with their coverage
well accounting firm has confidential info - you have to be the guardian because many bizz peeples are slack in a most unforgivable way , you must change your net passwords immedietly @rugged root
@rugged root helps to calm down not progress ig
well, didn't help Matt Mullenweg with either
Encouraging
owee , metal filings , not good for pooters either @gentle flint
use canned air outside - since metal filings know how to fly through the air with the greatest of ease
Oh, I have to mention this
The name of the person who did this and doubled down on "it wasn't labled properly"?
Her name is Karen
I she is her namesake
ooooof , Kareeen
speaking of power supplies,
I recently considered buying an UPS for the PC
the conclusion was "too loud, too heavy, too expensive"
I think for both big computers and everything else (1~2kW power) it's somewhere around 10~20kg
UPS protects your machine from brown outs and other mayhem @vocal basin
@rugged root I literally didn't hear it
it cut out on plome's phrase
they all have some amount of noise
just low frequency
mine are silent , I know there worth the hard way ( UPS )
fits in a back pack - 1000W for 90 minutes
okay, looking at cheapest >1500W just to get general characteristics
I mean you still want to give it breathing room
40 dB
10 kg
$100
even has a option to tell PC to do a proper shutdown
well, 40 dB seems to be the norm
I do remember seeing louder ones
oh wait I'm filtering it wrong
50 dB
25 kg
$300
this
(I was filtering by full output instead of effective output)
ig it's not too audible
that makes sense
an older linear power supply is already around 25 kg with the transformer and capacitors
early versions of W10 installs , allowed on data sticks for faster setups
hyperthreading just lets you not context-switch as much
One of our folks (Karen) sent our primary internal wifi password to a client for them to log in so they could do some work here or to get some documents. I'm going to be contacting [REDACTED] to see if there's any current procedure for changing our wifi password, as well as sending out an email to clarify which wifi name is for internal use and which one is for guest use.
This is the best I can do. If I say anymore I'm going to get more crabby
if your CPU's thread of execution count isn't exactly 1 or 2 times the core count, it might be one of those weird hybrid perf/eco ones
๐ฆ๐ฆ
encrabify yourself
carcinise yourself
hello
Yo
Embrace the Rust
create sacrificial passwords that you can track - just for Mzzzz Karreeen @rugged root
whereisspace
@rugged root https://en.wikipedia.org/wiki/Carcinisation
Hypercarcinisation
hyperencrabbification
@wind raptor pep7
for C
and, since that'd be C, << would be optimised out there
if (!a) cout << (a=b);
iF
there should be an obnoxious version of camelCase where you're required to alternate each char
camel_Snake_Case
Nim let's you choose ๐
Names are case-insensitive and ignore underscores, except for the first character.
So, I think the idea is that you can stick to the same convention even if you're using a library that uses a different convention.
E.g. logging in python.
_a == _A?
Erm, I think so
or "names are case-insensitive (except for the first character) and ignore underscores"?
@gentle flint there's a user you might know that claims they've invented both Zig and Zag
oh
there's some FFI standard
I'm trying to remember the name
either pyo3 or maturin target it
I think the latter
According to the docs:
Two identifiers are considered equal if the following algorithm returns true:
proc sameIdentifier(a, b: string): bool =
a[0] == b[0] and a.replace("_", "").toLowerAscii == b.replace("_", "").toLowerAscii
https://github.com/pvieito/PythonKit/tree/master
https://github.com/vapor/vapor
https://developer.apple.com/documentation/cktooljs
Swift framework to interact with Python. Contribute to pvieito/PythonKit development by creating an account on GitHub.
๐ง A server-side Swift HTTP web framework. Contribute to vapor/vapor development by creating an account on GitHub.
binds, not converts
UniFFI supports exposing async Rust functions over the FFI. It can convert a Rust
Future/async fnto and from foreign native futures (async/awaitin Python/Swift,suspend funin Kotlin etc.)
suspend fun is funny
no fun for a while
for async-Rust-Python I'm writing my own bindings
because eventfd seems to perform a bit better for my usecase compared to pyo3's experimental builtin
ah, they gave up on the idea of such classification when they reached fifth
I don't like this category template
why is there two??
I'm discovering things about this part of Wikipedia I didn't want or need to discover
I don't remember if I've read about eventfd
that's what event loops use anyway
And for some reason, when I read fd, all I can think about is Fierce Deity from Majora's Mask
loop.add_reader(fd, callback, *args)```
Start monitoring the *fd* file descriptor for read availability and invoke *callback* with the specified arguments once *fd* is available for reading.
Any preexisting callback registered for *fd* is cancelled and replaced by *callback*.
Neat
linear algebra:
Library Genesis is a scientific community targeting collection of books on natural science disciplines and engineering.
(was away when 4 dimension stuff was mentioned, now back)
higher dimension things are taught and user a lot
Library Genesis is a scientific community targeting collection of books on natural science disciplines and engineering.
In Scotland they actually start university at 17
I dropped out of university at 17, speedrun speedrun speedrun
so I don't even understand where the question is coming from
"learn everything" is just a university thing
compared to institute
Differential equations with power series
https://libgen.is/book/index.php?md5=E636CB2F390D2114C791E0970306B9F6
https://libgen.is/book/index.php?md5=1C37AC6F56F8AA859416EE23A3310D54
https://libgen.is/book/index.php?md5=3CCB1B546F6D9FB31E3BC49F8268BECE
Laplace transforms
https://libgen.is/book/index.php?md5=956E61D0D5ADE160380A2C917A43415E
https://libgen.is/book/index.php?md5=314C8BECB0576342A67239B2A7BE7BC6
calculus 1, 2, and 3:
https://libgen.is/book/index.php?md5=5D69E803A6F89866BD779BB83796EB28
https://libgen.is/book/index.php?md5=F746D4A394D607C30FB1F1B270B0FF5D
https://libgen.is/book/index.php?md5=8E642BB8AE9A62891C0524E660C089B0
Library Genesis is a scientific community targeting collection of books on natural science disciplines and engineering.
Library Genesis is a scientific community targeting collection of books on natural science disciplines and engineering.
Library Genesis is a scientific community targeting collection of books on natural science disciplines and engineering.
Library Genesis is a scientific community targeting collection of books on natural science disciplines and engineering.
@gentle flint our university included English, but that was very much tech-centric in its study material
(just for comparison)
@soft axle hey!
hey!! lets catch up
what question?
hey
can tiktok talk to your planes while in airplane mode?
sorry guys, ill be back later maybe i just need to focus on coding for a bit so im gonna hop out, my ears are not able to focus on the code all the time.
wth is the dbh community in here
what do you mean be talk to your airplane?
jfc
it's not really about what the salute was intended to be;
the appeal and what everyone will think is important in this case
learn basic geometry ยฏ_(ใ)_/ยฏ
!tvmute 765580444615573546 1d Do not be disrespectful of others, do not constantly get into arguments, yelling at people saying that they're wrong saying that their opinion is wrong while being offended when other people question your own opinion. If this behavior continues after the mute expires, you will have your voice permissions removed permanently.
:incoming_envelope: :ok_hand: applied voice mute to @smoky delta until <t:1737573249:f> (1 day).
also posting images that literally disprove your point
If you wish to appeal the infraction, please message the @rapid crown bot
Mhm I don't really care to be fair it just isn't a nazi salute, stop lying to yourselves you all look like you need to feel superior
Lol okay, no-one cares apart from you lot trying to make something out of nothing, laughable really
Genuinely don't care. I'm just tired of you being disruptive in chat. And not just in this particular instance
This just ended up being the last ounce of patience I have
@cloud fulcrum one of the OOP patterns;
very easy to get wrong, avoid it if you don't know enough of OOP yet, unless the usecase absolutely demands it
Yeah if your chums political beliefs didn't align with yours maybe you'd be less one sided
See ya later
I hope not
when you look to a cross nowadays, you will associate to a christ and not a symbol of torture or smt, right?
elon know exactly what he doing
If that's what you believe then I'm sorry you have missed the point.
Deranging yourself
He's autistic
He probably did it
Panicked, did it again
Have a nice day
And went shit I need to explain it off
Others, please don't add any fuel to the fire
It's all accept other beliefs until it isn't your belief
It has been handled
If seed is None, return the RandomState singleton used by np.random.
gasolina
@dusk raven @cloud fulcrum
if you're getting into OOP patterns, and, more specifically, pythonic OOP @classmethods for creating instances of the classes are quite a good starting point
Tasty drink right there
@rugged root you alive
Love that film
what is that film?
actually your method that loads stuff from disk may be better expressed as a classmethod that returns an instace of Self
Avatar the Last Airbender
what belief, specifically, are you referring to here? That Elon Musk isn't competent?
@peak depot Zoolander
hahahaha
sklearn/utils/validation.py line 1488
def check_random_state(seed):```
and what you currently have as a field would be a parameters class
hey @e
What belief are you specifically refering too? The belief that autistic people can't be competent?
Seems like projection
i believe
netflix did a great job in serie btw
So that would be a conflict of interest.
I know I inferred that
no
Ish
What's up
@chilly wolf @smoky delta Do not continue this, please
if i continue like this i am done at 0:00 about
i finally got it installed
I was done
guys, listen to mr, he just tryin to handle this
Apologies
I'm just a tired old man
:))))
no youre not an ond man you are a f ing legend
np.random.mtrand._rand
They're not mutually exclusive
when you get stucket in a line of code and fall in that bait: just one more pomodoro
and spent 10 hours
legends often grow with age
Returns
-------
:class:`numpy:numpy.random.RandomState`
The random state object based on `seed` parameter.
Examples
--------
>>> from sklearn.utils.validation import check_random_state
>>> check_random_state(42)
RandomState(MT19937) at 0x...
"""
if seed is None or seed is np.random:
return np.random.mtrand._rand
if isinstance(seed, numbers.Integral):
return np.random.RandomState(seed)
if isinstance(seed, np.random.RandomState):
return seed
raise ValueError(
"%r cannot be used to seed a numpy.random.RandomState instance" % seed
)
if seed is None or seed is np.random:
return np.random.mtrand._rand
Hello
Please I want to read about the bytecode in python
what you often listen to(anyone) ?
Anything in particular? #internals-and-peps might be able to shed more light on that, actually
if you are asking me : https://open.spotify.com/track/22GbAGb80ZZNgm2yrBMnpR?si=c9dff3bfbe074d42
speaking of "understanding" "lyrics" in "music",
I recently rediscovered VKVKSP (marrow explosion)
truly a cultural phenomenon
unfortunately I do tell apart words, even though it's grindcore
๐ธ Elevate your guitar skills with exclusive guitar lessons & tips at http://JustinJohnsonGuitar.com Whether you're picking up a guitar for the first time or looking to master advanced techniques, I'll share with you everything I've learned in my guitar journey ๐ธ
โ ๏ธ Justin Johnson Signature 3-String Shovel Guitars Available Here: https://justinj...
Provided to YouTube by PIAS
Moondance ยท Nightwish
Oceanborn
โ Spinefarm Records under exclusive license to Vertigo/Capitol, a division of Universal Music GmbH under exclusive license to Vertigo/Capitol, a division of Universal Music GmbH
Released on: 1998-01-01
Producer: Tero Kinnunen
Producer: Tuomas Holopainen
Bass Guitar: Sami Vรคnskรค
Dru...
Sorry, I have to hop off
See ya later!
I'm listening to whatever this is
so only half-here
Is it ok to stream just the output from my code? My coding process is embarrassing
tetris thing?
Ye
!stream 99041425483653120
โ @chilly wolf can now stream until <t:1737489000:f>.
Oh, thank you!
@whole bear look up "everything is priced in" copypasta;
you can't get competitive advantage using others' knowledge
also
!rule 9
potentially
(this covers any monetary incentive including shares of profit)
rule 5 depends on ToS, I haven't read trading websites' ToS either
so not yet clearly rule 5 issue
algorithmic trading is a thing
you can lose half a billion in 45 minutes
my bad G
see Knight Capital
oh i love this
ai based compiler for compiling pseudocode?? Why not happen yet??
dreamberd compiler when
thoughts python?
@amber raptor come tell me why im stupid and hate on me for saying something so stupid ^^^
@nocturne marsh
Hi
I can help you with crypto
@nocturne marsh I have answer to you question
salary
formal employment?
I saw a video
exactly about the same problem
But it was about russia
how he bypassed the ban
and used usdt
Na
exactly
they use loophole
@nocturne marsh I found it
๐ Let our paid partner BetterHelp connect you to a therapist who can support you - all from the comfort of your own home. Visit https://betterhelp.com/realreporter and enjoy a special discount on your first month
In Russia, Visa and MasterCard are useless, SWIFT transfers donโt work, and even U.S. dollars might be rejected. Instead, people rely...
(crypto is not necessary in Russia case; just for extended context of how it's done here)
yeah
watch it, he used the trick to bypass such a hurdle
ask whoever is expected to send you the money, if that's a company
and don't break laws, preferably
it's either the company or you that has to pay taxes at some point
either before it's exchanged into crypto (by the employer),
or when it's exchanged back (by you, the employee)
do not commit tax fraud, especially if you're formally employed
@nocturne marsh What exactly is your problem?
Are you unable to withdraw.
from wallet?
I'm trying to look up regional tax laws
So does it banned to russia
Have a look
skip to crypto part
seems like there is indeed an income tax that's expected to be paid by the employee
5~15%
(once you get your money in local currency in any form, it becomes taxable)
I mean if it worked in Russia it should work in Iraq as well !
from what I'm reading about the region, cryptocurrencies are not even in grey area, they are very much illegal according to the central bank
... but the statement is from 2017, who knows if they've ever backtracked
no currency stores value on its own, it's all fundamentally worthless, that's the whole point of money whether digital or physical
if it has realistic intrinsic value, it's not currency-for-something exchange, it's barter
now back to Russia
I mean traditional method doesn't work?
No not at all
Russian government, to my knowledge, either never clearly stated any bans of cryptocurrency or backtracked on them
Here's a thing:
Your client could be in trouble, if its illegal to transfer money to iraq
yeah, that too
Russia might not even be as strictly excluded from the financial system as Iraq
Russia is cut from SWIFT, and specific companies are sanctioned,
and blanket-ban restrictions are put on receiving money from Russia instead,
at least from what I've heard and encountered myself
Make sense they did same with russia
and those that are not banked they take about 7% of your transfer money
and sometimes more than that
for a while, only select few Russian banks were sanctioned
Your getting 5 grand, so 7% would be?
Big deal for you?
only 7% on the whole income?
for me that 7% is a big deal first and sometimes the wire transfer will be rejected
and it takes weeks
Damn if you where in my country you won't mind 7%
in Russia domestically it's 13% regardless of however little you get
so they need to send it again if the money was rejected, so another 7% will go
if you somehow manage >$50K annual it becomes 15%
okay, that is cursed
@south flicker ๐
someone at some point of architecturing that did something very wrong
In that case ask to send small amount
And then ask them remaining amount
but we don't know if the money will be rejected or not
@scenic nova ๐
expected value is same assuming a fixed chance of rejection
Hey guys
@night grail ๐
At this point, people believing this should jsut be sold more meme coins
put AI onto blockchain, waste compute at scale never seen before
you'd think I was coding a smoothie if you could see my output.
@solid frigate ๐
@somber heath at least the grammar is relatively strict
compared to some other natural languages
I do that both to Russian and English
just preferring to structure grammatically half the time
ending up with structure being a mix of the two
@copper perch pyinstaller?
are you running the .exe form the terminal?
run it from the terminal
so you can see the error
might be missing hidden_imports
if pyinstaller is unable to find some compiled libraries which packages bind to, for example
program is starting well and no error happen in the cmd
but some feature are not working
xD
@chilly wolf As crazy as Woman making woman
self reproduction
Been working on this since 8am
bro what
Is there a mod here? I would love to show everyone my finally finished product
ban
lol
oom what
RuntimeError: Install Flask with the 'async' extra in order to use async views.
pip install flask[async]
@carmine abyss ๐
Trying to be.
@hollow helm
just dm me when u wanna teach me stuff
I don't DM.
Would you like to come into the voice chat here?
i cant sorry
Very well. Grab a help post then. #โ๏ฝhow-to-get-help @ me in it.
there
@sacred lake go to #bot-commands and type !user
I AM HERE!
@chilly wolf
@somber heath
@tacit crane
hi connor
I am good
It was my first coding language
This year
02 Jan
I cant talk , but we can text
k
Hello
Hey
Weight converter
On it
@tacit crane We have one common friend
@tacit craneYeah I joined this server today lol
Im trying to learn python yk
Okayy
Bro ik the basics off python and i want to improve but i dont have any clear roadmap
That's why im in this server
ty bro
I made alot of project by the help of youtube and im still working on one
What do you want to specialize
AI
Then learn machine learning
Should also stream your projects to get feedback
I want to but I can't rn cuz im not verified yet maybe after two days i will be able to do that
Look
What do you think about this?
It is working completely fine with no errors
Looks good , add conditions such if you under-weight you should eat more
Alr! Let me add it real quick
bro how can i do that?
by making new if else condition?
Bro what should i do?
Should I add new condition or just fix this one
Look at this
@storm dock What do you think about this?
Good
Hello
@round frost ๐
Hru bro?
hi
hey
@daring raptor ๐
hello
@pseudo anvil ๐
woah
Do you use other engines
@chilly wolf hi
Hi guys!
How can I test a code using python compiler in the chat?
!e
print("Hello! Is everyone sleeping")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello! Is everyone sleeping
!e
n=5
for i in range(n):
print("sleep")
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 4
002 | print("sleep")
003 | ^
004 | IndentationError: expected an indented block after 'for' statement on line 3
!e
n=5
for i in range(n):
print("sleep")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | sleep
002 | sleep
003 | sleep
004 | sleep
005 | sleep
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | sleep
002 | sleep
003 | sleep
004 | sleep
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 5
002 | print("sleep")
003 | ^
004 | IndentationError: unindent does not match any outer indentation level
!e
for letter in "fake you":
print(letter)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | f
002 | a
003 | k
004 | e
005 |
006 | y
007 | o
008 | u
noice
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[0. 0.]
002 | [0. 0.]
003 | [0. 0.]
004 | [0. 0.]]
!e
import numpy as np
print(np.random.rand(10,10))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[0.92276356 0.13713582 0.24154389 0.49245816 0.10878469 0.66386437
002 | 0.26014666 0.25050678 0.39589542 0.96584857]
003 | [0.72538831 0.27939636 0.28043502 0.57531166 0.54554897 0.58120075
004 | 0.46026623 0.2079054 0.07818846 0.56325987]
005 | [0.36468341 0.43079435 0.94585499 0.31955667 0.38680412 0.39610648
006 | 0.18029495 0.00924294 0.76578521 0.0536362 ]
007 | [0.26181626 0.58960526 0.30162671 0.62307383 0.40448003 0.48679745
008 | 0.29934303 0.199548 0.67257403 0.7169676 ]
009 | [0.14048513 0.65454907 0.78057792 0.48871607 0.93188396 0.61514593
010 | 0.18457226 0.37117145 0.51257615 0.95602533]
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/63MM6JHVFVUSWYOUAIWUQTAAZM
!e
def this():
return "I'm this!"
def that():
return "No, I'm that!"
print(this())
print(that())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | I'm this!
002 | No, I'm that!
#bot-commands ๐
๐ ๐
Who what?
Not really, no.
I do enjoy the Python programming language.
I find myself playing around with Numpy, mostly.
@peak depot Maybe he's really a Korean Starcraft player.
kekekeke
and what do you focus on?
Numpy is Noice
Texture / Pattern / Fractal generation. Images that look pretty.
Specifically not ML/AI/Stable Diffusion
Focusing on Python's speed is a common mistake that people make.
mb
Python is fast. All things being equal, compared to some other compiled languages, it is often slower. Well written Python can be faster than poorly written code in other languages. However, where Python shines is its common use as a wrapper around compiled code.
Thus you can have the ease of use of Python's syntax combined with the speed of the compiled stuff.
What today takes the most compute?
Or a large chunk of it.
Aside from bitcoin....
AI stuff.
ML stuff.
Stable diffusion.
You know what's underneath pretty much all of that?
AI frameworks which...
python
Python.
Wrapping compiled code.
It hasn't been an overly hot day.
So saying "Python slow" is an oversimplification and misrepresentation of the actual situation.
It's often something said by hotshot C users who think they're God's gift to programming.
im writing in python
Python's magical power is friendship. We can work together and get along.
Python isn't suited to all applications, there's no argument there.
But it's good at a lot of things, too.
but hes slow (
See previous argument.
fast libraries written in other languages, but python itself is slow
Python isn't slow.
Python is fast.
It's not as fast as some other languages under equal conditions.
See. Previous. Argument.
Additionally, optimisations have been and are being implemented as versions are released.
oke
Ok. My. Bad.
(not stream-style or manually orchestrating epoll) concurrency in Python is more performant than in some other, even AOT-compiled, languages
wtf?
Some days, I think it's a good idea to give the shovel a rest.
I'm almost dead, so who cares?
Busy Voice chat
Osyrawr-xd
Osyramosis
:incoming_envelope: :ok_hand: applied timeout to @left flower until <t:1737557682:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
is 90 degrees c too hot for a cpu?
The bullshit
:incoming_envelope: :ok_hand: applied timeout to @round hound until <t:1737644014:f> (1 day).
!pban 762458172870361128 Ban speedrun perhaps
:incoming_envelope: :ok_hand: applied ban to @round hound permanently.
AMDใฎCPUใง็ผ่ใใพใใใๅๆตท้็ฃใฎ้ปๆฏๅ็ใงใใ
ใใฎๆไปฃใฎCPUใฏ็ฐกๅใซๆญปใชใชใใฆใใใงใใญใ
ไปๅใฎ็ผ่ใใฌใผใใฏPhenom II X4 970 Black Editionใงใใ
ๅไฝฟใฃใฆใPhenom II X4ใฏ็ผใๆญปใซใพใใใ
CPU็ผ่ไปฅๅคใซใไฝใใชใฏใจในใใใใพใใใใใณใกใณใใใใฉใใใ
โ่ชไฝPCใง่ฒใ ้ใใงใพใใใใใใใ้กใใใพใ๏ผโ
โMy Channelโ
https://www.youtube.com/channel/MerryNightmare7710
โMy Outdoor Channelโ
https://www.youtube.com/channel/UCMmyxmuJBeE49M81EMtPcEA
โMy Twitterโ
ใht...
This video is old as hell but it's still fun to watch https://youtu.be/NxNUK3U73SI?si=0agi0zIqOfERfDgK
What really happens when you run a CPU without a heatsink. Not like that fake when the CPU exploded.
Still better than some of my old rigs
def detect_file_extension(file_bytes) -> str:
"""Detect the file extension based on the file content"""
try:
mime = magic.Magic(mime=True)
file_type = mime.from_buffer(file_bytes)
if file_type == "image/jpeg":
return ".jpg"
elif file_type == "image/png":
return ".png"
elif file_type == "image/gif":
return ".gif"
elif file_type == "image/bmp":
return ".bmp"
elif file_type == "video/mp4":
return ".mp4"
elif file_type == "video/x-msvideo":
return ".avi"
elif file_type == "application/zip":
return ".zip"
elif file_type == "application/x-rar-compressed":
return ".rar"
elif file_type == "audio/mpeg":
return ".mp3"
elif file_type == "application/pdf":
return ".pdf"
elif file_type == "text/html":
return ".html"
elif file_type == "application/json":
return ".json"
elif file_type == "application/vnd.ms-excel":
return ".xls"
elif file_type == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
return ".xlsx"
elif file_type == "application/vnd.ms-powerpoint":
return ".ppt"
elif file_type == "application/vnd.openxmlformats-officedocument.presentationml.presentation":
return ".pptx"
elif file_type == "application/msword":
return ".doc"
elif file_type == "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
return ".docx"
else:
return None
except ImportError:
return None```
ANY IDEA TO IMPROVE IT?
mime = magic.Magic(mime=True)
MIME_TYPE_MAP = {
"image/jpeg": lambda: ".jpg",
"image/png": lambda: ".png",
"image/gif": lambda: ".gif",
"image/bmp": lambda: ".bmp",
"video/mp4": lambda: ".mp4",
"video/x-msvideo": lambda: ".avi",
"application/zip": lambda: ".zip",
"application/x-rar-compressed": lambda: ".rar",
"audio/mpeg": lambda: ".mp3",
"application/pdf": lambda: ".pdf",
"text/html": lambda: ".html",
"application/json": lambda: ".json",
"application/vnd.ms-excel": lambda: ".xls",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": lambda: ".xlsx",
"application/vnd.ms-powerpoint": lambda: ".ppt",
"application/vnd.openxmlformats-officedocument.presentationml.presentation": lambda: ".pptx",
"application/msword": lambda: ".doc",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": lambda: ".docx",
}
def detect_file_extension(file_bytes) -> str:
"""
Detect the file extension based on the file content.
"""
try:
file_type = mime.from_buffer(file_bytes)
return MIME_TYPE_MAP.get(file_type, lambda: None)()
except ImportError:
raise RuntimeError("The `magic` library is not installed. Please install it to use this function.")
Like This?
YAH
return MIME_TYPE_MAP.get(file_type) is sufficient
It'll return the value, and by default if .get() can't find it, it returns None
I Suddenly Got Dumb
You don't need lambdas at all with this
That'll add unnecessary function calls for all of t-
See, this is why we don't trust the AI
Remember... you are the pilot

RTXXX 200000
is minesweeper legalised in Canada?
this was a dust issue
mine is prob a mix of both tbh
I haven't dusted my pc since I replaced my parts a year and a half ago
I replaced the CPU and the cooler and now it's at 30~50
What did the admin say Magey
hello!๐
A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called vertices, are zero-dimensional points while the sides connecting them, also called edges, are one-dimensional line segments. A triangle has three internal angles, each one bounded by a pair of adjacent edges; the sum of angle...
illuminati resident evil baby
@potent root can u help me plz ?
TELL ME bro
https://paste.pythondiscord.com/UT3Q
in my program idk how to change the background color, i cant talk in the channel ?
u cant talk cuz u need to be here for 3 days
nah i need 50 messages
@potent root or @chilly wolf can anyone help me with yolov8 and pynput
whats the problem
im trying to create a script when a human is detected on my screen in a screen of 1920x1080 when i hold shift it will lock the ingame cursor on the human but its not working correctly it doesnt lock the ingame reticle on the player only the default windows crosshair im also using yolov8 for human detecton it was made by chatgpt im to stupid to do it myself
Bill Cypher ๐
!rule 5 such game cheats are far beyond what we consider acceptable or approriate to ask help on
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 minesweeper 1v1?
( https://ccms.parrrate.ru if you've lost the link )
hmm
for some reason it's not saving the audio volume on one of the browsers
will need to look into that
or rather on one of the domains
... though that might be just because it was saved before
found the bug, recompiling
oh, I broke something else
great
2 more minutes
word in greetings.lower() for word in valid_greetings
!e
print("Wow! we are discussing Biology here!")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Wow! we are discussing Biology here!
I hope the operation went well
started
!paste
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
from sklearn.utils import sparsefuncs_fast as sf
scikit-learn
@vocal basin gg#
alisa do you think I am decent for starting last year
yes
rip my cookies
truly balanced
games played: 42
games won: 42
mines opened: 42
(stats are only including games from version 0.1.3 and above)
๐
@main comet i'll join vc if you do!
!paste
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
hello
anybody know how to open a toplevelwindow without a button or something with customtkinter
;-;
im trying to make a loading screen
um
my intuition says
if you already have code that works with a button
find the code that called under the button
maybe I am WAAAAAAY oversymplifying
but that would be my first guess
its just that when i run my code it take a bit to load up and so i wanted to make a loading screen for
how do i fix it
i am using mac
@twilit forge I mean this in the kindest way possible but that description can mean 10.000's of things
did you homebrew python?
its also helpful to. give the error message when asking for help
but sorry dude imma boun ce coded 14 hours today
aah
damn
hmmm
aah
cwd
Change Working Directory
you are trying to change the working dir
on a file
file != dir
Gonna bounce for real now
alright bye
@main comet
do you know how to open a toplevelwindow without a buttong
no
like a loading screen
no
connor died
well i dont really know whats going on
like
i do have a mic but im too scared to speak
i dont even speak on games
are you trying to run a file from a terminal from visual studio?
nah im a dude
im like 18
boutta turn 19 this year
calculator
the final project
connor dead again
just make it into 1 line
i cant even run print ("hello world")
rip
you will need to open the actual file and run it in visual code or use command promt or whatever the equivalent is on mac and type the name of the file with the extension with .py
like cancer
hell no
i dont even know what half of those are
damn
you use all of that
i beg your pardon
not something i was expecting to hear tonigh
"those are balls"
"where is the shaft"
CFD of a rocket
thats looks ridiculous
why do you need to know this
also
getting back to my toplevelwindow question
instead of making a loading screan how can i make my GUI from customtkinter load quicker
ah i see
i bet you make your GUI using assembly
that sounds difficult
i see
yeah lets not mess with that
what would you use instead?
PyQt5
thanks
yh it already done
still does not work
kinda funny how the documentation looks like from 2000s
damn
anyone wants to buy an m4 max from me
its quite for me to undersand and its kinda too late for me too change my code with how close the deadline is
nah
i dont think you are allowed to advertise things here
be careful the mods dont give you a warning or something
if False then True else False=True
E
is that connor speaking?
the story of why USA doesnt use the metric system is kinda funny
man thats not how i expected connnors voice to sound like
you speaking to me?
is this your brother @main comet
hahaha
ridickulous
an interestin fellow
later
@scenic nova hi
!cban 730132812711198854
:incoming_envelope: :ok_hand: applied ban to @blazing marlin permanently.
@wind raptor hi
@wind raptor Cant talk in mic because ban
new so dont know the rule
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@wind raptor
i was doing some dumb stuff so got ban
now asking mod to forgive me an give me
around 12 days remaining
@wind raptor i am student trying to learn in public and make new connections
@wind raptor what about you
yes
bro i tried to learn it 2 days ago cant even run hello world xd
yes
i was using this as reference
ok noice
i was thinking to make ai agents using zig because it fast and robust
i have basic knowledge of rust like i can understand the code but cant write complex code
my main programming tools i use is python
brb 5min
@wind raptor like i started learning c and c++ in high school for building 3d printer
no i was marlin firmware for 3d printer
i was making changes in it to make it compatible with my 3d printer
hello guys, iโm a college student who really sucks at python and i just need like a tutor or something. i try to study on my own but i dont really know how. im currently in Advanced Python Application Class but i dont remember a lot from Python Scripting Class, please help
@ornate chasm i think you can ask here
https://discord.com/channels/267624335836053506/709904092280914030
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
i think the tutor channel is missing
Hi
@torn yarrow howdy
@wind raptor i was on call cant listen you properly
from past 2 years yes
i am learning that thing but right now i am an backend dev
mainly working in django and rest api
it good and easy
its make development faster and easy
@wind raptor what you do mainly
@wind raptor Noice this means you are multi talented
Hello hello!
@upper basin howdy
@carmine tangle i never went to Starbucks
i make my coffee thats cheap and healthy
tea>
i like tea too but in morning
@wind raptor @somber heath @carmine tangle have you send your project to elon ??
sell the car, maybe?
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
@upper basin I moved you because there was a lot of robotic sounds coming through your mic.
Are there any live coding events to practice leetcode questions?
all good
just wanna ask what are good projects to start when learning django or flask?
For upskilling and learning with a group of people
!kindling
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.
Blood test for getting visa?
Interesting
I need some learning partner to practice python
I am between basics to intermediate
classes! I have to revise๐ฅน
I just remember those diagrams! init and self are only words that I remember
what is relation between functions and classes? I remember they have few similarities
Nice
I assume that these methods are pre created in the python software source code then
Nice point
https://www.codewars.com @sacred lake
I used to dive deep into how data is stored and what happens in the memory and cpu few years back but source code is something which i didn't think of! It is nice to know
Disclaimer: My focus is on data analytics using Python! (ML in future)
so, I have been focusing on numpy and pandas
@wind raptor I work as a data analyst and use sql and powerbi majorly in my day to day job. I am planning to revise and learn python skills related to data analytics and ML
Kaggle is the worldโs largest data science community with powerful tools and resources to help you achieve your data science goals.
Yeah, I need to start using it.
How do I find good team/group of people to take part in competition?
wow
I like professional people
That's cool
I need to take my breakfast. Bye guys and Thanks for all the suggestions and inputsโจ
Epoch 30/32, Training Loss: 0.009116, Validation Loss: 0.004099
Epoch 31/32, Training Loss: 0.009268, Validation Loss: 0.004774
Epoch 32/32, Training Loss: 0.008767, Validation Loss: 0.004769
thats... thats impressive
Does anybody here know how to compile Cython code? I am a pretty stuck and all I can find is the .pyx code. I know I ahve to complie it with a build system btu it just kinda confuses me how and such
pain
yes
i am so stuid
myabe its a problem I can help with
its ok
eveyrone is stupid sometimes
I am waiting rn for someone who gets Cython, so I get some tom to help if you want
as long as its not super obscure
i have raise an ticket but the mod told me that i can talk after 12 days they cant change the rule for one
@cloud fulcrum by the way what is cython
mostly to link something already written in C
can i make ai agents and web crawlers using this cpython
CPython itself is written in C, so that's one of the most natural choices for extension
that would be realy fast then
with Cython
ok thats nice
what are you making with cython
I am currently taking some things from for a research project
but I CANNOT figure out how to use
so far I found Rust to be the easiest to link into Python
maybe in your case it could be an appropriate choice too
you can use claude or deepseek for some context
@vocal basin I wish I could
But I am trying to link this
It already exists as is
