#voice-chat-text-0
1 messages · Page 95 of 1
ok
!e
import math
print(type(math.nan))
@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'float'>
hello @somber heath
Amazon AWS charges quite high for one single db instance . I was making a project in python in django
I was thinking of using MongoDB atlas what are your recommendation
🙌
how you doin?
pretty well hbu
little sick
from gas?
just a cold
ah fair
but good overall
nice
finished my آموزشی سربازی
nice how much left?
2 years 🙂
so starting?
?!?
not too cold here though - its good
anfolanza?
cant expect much when their income is cents
Am not complaining
It was a good experience for me after all
Tho the useless classes did annoy me a lot
!voicemute @amber valley
:incoming_envelope: :ok_hand: applied voice mute to @amber valley permanently.
i cannot stream ughhhhh
what else is new
am looking through psycopg2

Hi opal
@golden sonnet Are you good at the python?
I thought you were off
Not really 👀
😄
@heavy sinew look ```from pythonopensubtitles.opensubtitles import OpenSubtitles
from pythonopensubtitles.utils import File
ost = OpenSubtitles()
ost.login('', '')
movie_name = input("Enter movie/show name: ")
Search for subtitles
data = ost.search_subtitles([{'query': movie_name, 'sublanguageid': 'tur'}])
if not data:
print("No subtitles found.")
Display the list of found subtitles
print("Found subtitles:")
for i, subtitle in enumerate(data):
print(f"{i + 1}. {subtitle['SubFileName']}")
while True:
# Let the user select a subtitle
subtitle_index = int(input("Enter the number of the subtitle you want to download: ")) - 1
id_subtitle_file = data[subtitle_index].get('IDSubtitleFile')
# Download the selected subtitle
url = f"https://dl.opensubtitles.org/tr/download/file/{id_subtitle_file}.srt"
print(url)
i looked
A lambda is a kind of function object.
i know i was making a joke
When I search for subtitles, no more than 5 results come up. Is there any way to increase this?
api docs
hi @obsidian dragon
I found it on github, I just added some code.
just use google to find subtitles 👀

https://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC#SearchSubtitles array limit 500? What is this
@obsidian dragon no offense BUT GOD YOU MIC IS SO LOUD
YUH
wait
whats the volume on ma pc-
one sec
oh shit i had my volume on max
my bad
elaborate?
honestly i dont know what to code anymore
i need subtitles to understand you people 🙂
therer are classes in the camp
some were good
most were trash
More than 5 subtitles are not output.
@frank walrus👋
hi

does anybody know how i can export a transparent video from moviepy for kdenlive? or chroma key would be best?
no
you dont need more then 5 tbh
a... process?
let's try that again, i haven't seen anybody else replied for almost an entire day
https://www.opensubtitles.org/en/search/sublanguageid-tur/idmovie-500831 Normally more than 5.
yea, i said you dont need more than 5
tbh
So there is no bypass path?
Wassup x10, hem
how much do you think i should put in learning sql?
its quite important
i would argue nosql is more important though
i know it's important
i just don't know how deep to go
do you have a point here?
Email sent out to the firm today:
I have had two clients in the last couple of days mention having hacks because of emails that show a secure link for you to click on and just one click is giving them all of your saved passwords in Chrome. Good reason to never ever “save” a password within a browser. Be careful as we are getting a lot of emails with secure links that we should always be verifying before click on.
./.
&Xt
Command "Xt" is not found
imma cry
Hi👋
Hey doc
Hi
Just unstable net in general?
that's me!
from conan import ConanFile
class Chip8Recipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeToolchain", "CMakeDeps"
options = {
"static": [True]
}
def requirements(self):
self.requires("sfml/2.5.1")
@orchid crown Your internet is jittering.
is system parameters a better term?
Can't hear shit, captain.
sorry!
Damn
fuck my ISP
@midnight agate 👋
LMAO
it's stuck
I'm stuck on joining
fuck this shitty internet
!e ```py
from abc import ABC, abstractmethod
class MyBaseClass(ABC):
def init(self):
print("Hello, world. I am MyBaseClass.")
@abstractmethod
def my_method(self):
pass
class MyClass(MyBaseClass):
def init(self):
print("Hello, world. I am MyClass.")
def my_method(self):
pass
a = MyClass()
b = MyBaseClass()```
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Hello, world. I am MyClass.
002 | Traceback (most recent call last):
003 | File "<string>", line 18, in <module>
004 | TypeError: Can't instantiate abstract class MyBaseClass with abstract method my_method
@somber heath Looks like my terrible internet is not fixing itself anytime soon :(
Hopefully I can catch ya at a better time!
!e ```py
class A:
def my_method(self):
print("A")
class B:
def my_method(self):
super().my_method()
print("B")
class C(B, A):
def my_method(self):
super().my_method()
print("C")
c = C()
c.my_method()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
003 | C
Python docs explain this really well!
!e ```py
class A:
def my_method(self):
print("A")
class B(A):
def my_method(self):
super().my_method()
print("B")
class C(B):
def my_method(self):
super().my_method()
print("C")
c = C()
c.my_method()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | A
002 | B
003 | C
C inheirts from B and A
when a call to super().my_method() is made, to resolve the method, dynamic ordering takes place where the algorithm linearizes the search order in a way to preserve the left to right ordering in each class so parent is called only once!
Today I learned!
!e ```py
def decorator(cls):
class C(cls):
def init(self):
print("Decorated.")
super().init()
return C
@decorator
class MyClass:
def init(self):
print("Hello, world.")
instance = MyClass()```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Decorated.
002 | Hello, world.
@somber heath mixin class is design pattern where you use the inherited method instead of defining it
I found this
my knowledge about python is that of a newbie
class A:
def method(self):
pass
class B(A):
pass
b = B()
b.method()```
Like that, I suppose, then.
as a matter of fact I just got out of high school 
@somber heath that's Indian mobile internet for you!
phew, am I gonna be glad after moving to Canada
@willow lynx yes I am from India
if you didn't catch
@willow light Is there significant overlap between fluidynamics and epidemiology?
somewhat. but in terms of international policy it should be 1:1
ah, PhD students
ahahahah
I guess they replied immediately?
Nope, email reached everyone ~12:13
and how is whoever Silvia is supposed to know they replied immediately or not

At least they didn't reply all.
I was saying I'm starting my degree this september :)
DOES ANYONE KNOW HOW TO INSTALL PYTHON ON WINDOWS?
download the installer and run it
(fr)Agile development
and turn off caps lock
@willow light can you come look at this pls
@rugged root ping me when back

They are expensive, but just from personal experience they seem to last a long time.
Although it might be just that my family always bought really crappy windows laptops 😄
People who use GNOME: "If it works, it works." And there's nothing wrong with that.
gnome is just good, wdym
exactly

@amber raptor I got some interviews

Congrats
Nothing like that one week per year when all the execs come up from Texas, see the words "winter weather advisory" and panic.
While us locals just sit there and laugh.
one is with kyndryl, the other with a tiny company (<50 employees). and I made it to the second round of a third company
You'll probably smash the technical interviews with all the leetcode etc. you've done 😄
yeah I hope so. I'm just trying to get more confident so I don't get rolled in behavioral interviews
Ah, well good luck!
Gtg 👋 (sorry Opal 😄)
Excuses, excuses, excuses
I think he meant like discord written in aecor

I'm here, but talking to co-workers
@rugged root remember the interview i had earlier this week. i got to the second round. 30 minute technical interview. but like, no white board/leetcode problem
Why do I see the channel
Oh dude, that's cool
Oh I'll fix it
We had to adjust some permissions
also i got 2 other interviews. one with kyndryl and one with a company with <50 employees
it's the atmosphere @molten pewter
yeah
also, it's in a desert
VC is basically a great podcast
hard disagree
Hurtful
it's hit or miss
this is the first episode i have listened to
the best days are when rabbit is bitching about office politics
I'm excited to hear about that lol
Ohhhh boy
"Everything sucks, all businesses suck, you're going to be stuck doing terrible jobs, fuck corporate bullshit."
every job ever
that's because rabbit works in a big company
He gives us the big company perspectives. Which, in fairness, that's a big portion of jobs
two of the companies i'm interviewing at are tiny. the other one is like 90k employees lol
Even small companies kinda suck, I used to work for a company with 4 employees. I would open the office at 9 and work alone untill 3 then leave at 5
I like smaller places
i'd like to get the big one since it pays more i think, but it'll definitely have more competition
But I'm also IT, so it's different challenges
it's also a more well known name
but that also means i might not be able to have like, an impact on anything
Depends on if that's something that drives you
resume content is what drives me 😩
Fair enough
Small companies it is easy to be seen and big companies it is easy to be left alone
yeah but big companies might also have more support
one thing is that one company is looking for spring interns, and it would end after the start date of the other ones
yeah so I worked for a big company and they were very supportive but my impact was less tangible unlike in a small company, I was able to develop a whole new section of the business and know exactly how much money I made the company
how much extra work in that type of UI ?
is*
*can't get employed*
*sad*
fortunately, found out I have a document that may help me leave the country (until this June)
huh
When are you doing one? Isn't summer, may-aug typical?
yeah. but one company wants a spring intern
well i don't actually have any offers yet, so that's like, not a problem i have yet
for what?
wdym
?
I think it was in relation to the photoshop convo
@stoic cloud What was your question? Type it here first. Typically, VC is more of a general chat.
Oh no worries, I was going to ask, for an application that will be used by other people, something that can be made modern and implement for example machine learning into it, is Tkinter module the best choice? I was going to use Tkinter, perhaps a version of tkinter called customtkinter, that is more modern. But perhaps there is a better way to do this.
No
most of apps of that sorts I've seen didn't do this
they were just websites
like, if there's no need to distribute the thing, idk if there's a lot of need for packaged/compiled UI thing
I'm reading ØMQ and Greenstalk docs right now
(learning to use message queues in place of some less adequate solutions)
API in Python, UI in JS
!charinfo Ø
\u00d8 : LATIN CAPITAL LETTER O WITH STROKE - Ø
if I'm not mistaken, sometimes equivalent to Ö (oe/œ)
rainbow six siege has a character with that character in the name
(yes, that's an intentional tautology)
maybe host it as a proper service
with separate microservices for back-end
ah okay
to decouple closer-to-front-end API from the heavy-load compute
im guessing buying hosting from like a company that hosts websites is not enough
in Docker or something
even locally it may be fine
anyone good at py to exe?
why do you need it?
just trying to help someone #1081280702621962361
thanks for help, ill head out now
hey I cant talk yet lol @lapis hazel
Yeah super new lol
Nice! are you Irish?
Oh sorry I misheard your accent is sounded slightly irish
I am Scottish so I know the accent well I guess lol
How long have you been using python?
btw I am a slowww typer. thats awesome
I have been using it for like 13 weeks lol
first
so i started because i was thought a little in a 2 week intro to cyber course
yeah but after starting it in college. I think I want to either do development or data science
I cannot stand networking. Data science and machine learning seems way more fun
I just finished my first bit of python code without a tutorial
of course
I learn best by doing. So I just made a text RPG that uses the openai api. Reading through the documentation was actully really fun
Tutorials were good to help me understand the purpose of things
i have vc access so ill leave then rejoin
i could hear you before not now though
@tranquil knoll 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I dont qualify for that sadly
I got a question
You familiar with python?
I need help with my homework assignment can I paypal you to do it ❓
Its for computer science
fuck
!rule 9
Oh
!rule 8
8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.
Then its fine
I hate this shit
I'm a sophomore and they put me in this class
Teacher hasn't caught me up yet with everything
No its not anything specific i'm just behind because I joined mid semester
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
ya please
I'ma head out and try to watch tutorials
Welcome to my Channel. This channel is focused on creating tutorials and walkthroughs for software developers, programmers, and engineers. We cover topics for all different skill levels, so whether you are a beginner or have many years of experience, this channel will have something for you.
We've already released a wide variety of videos on to...
what!!
ikr
feels great man
@midnight agate may i leave?
m just chilling in here
either ways
ohkk
aight imma head out ...good luck maro...bye:]
@midnight agate hello
is the input going to be a list
@ maro
@midnight agate is the input going to be a list
quite respectable
hi does anyone know if there is a good way to format code in google docs which includes the line numbers? (without the dark background as well)
i've tried code blocks but it does not include line numbers
like how do i get the code to look like this
<@&831776746206265384>
what's up
Yes ?
@finite radish👋
yoo, I didn;t know how to get voice perms, but I just found it lol nvm
gotta rejoin
yes
maybe make a project that you'd benefit from as a user
there's two ways it disappears
the channel 1) is hidden by default 2) if you're verified, you don't have access to it
@olive ermine👋
I'm looking though one of my projects directories to identify what falls under this category
@little kite👋
I made a script to more easily register users on a remote OpenVPN server
(to hide all the complex stuff like connecting to ssh and altering the generated config)
there's two projects (an E2EE messenger and a password manager) which exist only because I don't trust third parties enough
one bot to help managing roles in a certain server
(it was easier to write our own bot instead of integrating some ready solution)
well, with fake accounts this sounds fine
before OpenVPN we had FreeLAN
which is less reliable but allows for easy setup of something more closely resembling a LAN (specifically, it allowed broadcast)
and for its authentication I had to write a separate service (built-in password auth got deprecated at some point)
and that service at one point ran on a custom API framework
that API framework, at the time of making, was one of the biggest and best-quality projects I had
now it's pretty-much useless because now I know existing solutions for the same thing
so, "as a user" may also mean "as a user of a library" (if there's another project already being created)
or of a tool
like, for example, you can create your own debugging tools
Hello Opal, AF, Dean
some tools for debugging aren't called "debuggers"
for example, tracing frameworks like dtrace
dtrace can work with more or less any program
(it's independent of the language)
It was developed by Sun i think
yes
now it's available more or less everywhere
not only in SunOS/Solaris derivatives
although, illumos probably has the best support for it
isnt it dead illumos?
still active
including forks like SmartOS
OpenSolaris may be dead
became so when it got "reproprietarized"
Sun was way ahead of its time
@indigo lagoon
not yet
@indigo lagoon
@hollow shore 👋
hi
i gotta wait until it lets me speak
yup lol
django is giving me a headache
lol
yeah they're really inactive
its a lonely world for us django developers LOL
you have a cool accent man
i try to work on my word articulation
hm
initial thought UK but i dont think thats it
kenya?
hmm
is it somewhere in eruope
canada?
australia
australia seems like a lovely sunny country but i willl never step foot there because of the snakes and spiders
in the uk i freak out at the tiniest harvester spider on my ceiling
what about those trapdoor spiders
if ur walking
its interesting
i remember i got bitten by a spider in the uk
the false widow it was called
and my entire veins across my arm went brown / black
and then i had to have op
snakes and rats are my worst nightmare
its interesting
the amount of wildlife around us
and the way all of these evolved from simple life forms
whats your opinion on todays society
and where its heading
in terms of socialising, politics, etc
the world is going downhill
ive decided to atempt to become one with my mind and escape this mix of chaos that the world is in
ive put my phone away for good and havent touched it in a month
and its made me feel incredible
initially started as a 7day no phone challenge
indeed
let me ask you something
what searates humans from the rest of the animals on this planet
because we too, like them, have instinct, make decisions
so what makes us so powerful
there is one key difference
a humans ability to deceive, seduce, lie
often you will see animals dont do this
dogs?
in what aspect
do you read books
Dog casually hides food from Master @portraitxan on Instagram #shorts #dogs #pets #funny #viral #shortsvideo #shortsyoutube #shortsfeed #dog #puppy
is this an example of decption though
or is this instinctive decisoon making
in the sense he wanted food
i think an animals understanding of words is very much like a python dictionary
they cant distinguish the logic of the words but they know the value of certain keywords
{walk: time for a wal}
and perhaps its tone too
you can make your pet happy with expression and no words
wavelengths to their ear or something
ive always wondered if they hear as we do
i get what ur saying but i dont believe that its deception
however
imagine a tiger placing a lump of meat and then hiding behind a tree waiting for prey
then there is deception
but in the simple manner of hiding its just a hunting strat
i just mean that
since the beginning of time
humans have used deception to control other humans
and create a working society
but in a wolf pack, for example, you rarly see it happen
its more of an equal thing
everyone gets the same amount of food
but with humans they tend to be more selfish
one with 'less value' in their books would starve while the others eat til their heart is content
anyway was cool talking man but its 1am for e so i gotta get going
safe travels
@thin galleon 👋
!e py for _ in range(5): print('*', end='')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
*****
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
*****
@whole bear
got it
@main widget 👋
hi
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i want to learn python
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Corey Schafer, YouTuber, playlists.
ok thx
easythreed x1 mini
Fortran (; formerly FORTRAN) is a general-purpose, compiled imperative programming language that is especially suited to numeric computation and scientific computing.
Fortran was originally developed by IBM in the 1950s for scientific and engineering applications, and subsequently came to dominate scientific computing. It has been in use for ove...
boof.. whats printing?
shower drain strainer
nice.. think my next prints are going to be magnetic gutter extension holders.. so the stay up 🙂
how are you going to make them magnetic?
ill have an inset nut of the ground side since thats closest to dirt etc.. then on the down leg ill just hotglue a small 3x6mm magnet as the catch
xXPLOGMR313Xx
@delicate jungle👋
heloo
hows ya doin
i guess so, if you asked me i would have no idea how to answer
thats a nice method:)
i hope you're doing well:))
also you seem pretty smart tbh
unbelievable
i dont believe you
yea he seems wise to me
i will attempt to remember tht
im good:))
i found a teddy bear i havent seen since i was six:)
he says his cat is taking a shit
whats the cat's name?
@obsidian dew
who doesnt love cats?
also i forgot every single thing i knew about python
as expected
i dont even remember how to make a hello world program
iirc, it doesn't access the web in any way, it's purely a language model
syntactic??
ah
AWWW
thsats so cute!!
that woudl be adorble
aW
we all do
i dont have a cat but i love cats
or bop
cats like bop stuff they like, i hear
she seems like a nice cat
beep beep
i like making that sound
cycle!!!
opal you seem to be like, really good at python and stuff, what advice would you give to an absolute beginner in the python coding language?
https://yodelblodel.com/abacus.jpg```Here's a URL I just made up. The domain doesn't exist at the time I'm sending this message and nor does the jpg. Ask it this.
oh i feel stupid all the time anyway🤣
seems like a good idea:)
yeaa!
question for a specific thing, if you don't mind?
im trying to make a random number generator, how would i even start with that?
wait holdo n im writing this down
!e py import random result = random.randint(1, 6) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
#main.py
print("Hello, world.")
print("Goodbye.")``````sh
python3 main.py```
command promt just had a stroke
and it lagged my discord a lot
could you repeat the last few sentences?
can i be fully honest with you?
i completely forgot every single thing i knew about python
and if you gave me that advice three weeks ago, it would be incredibly useful to me
(also don't worry your accent is actually really easy to understand)
coOl!/gen
i feel pretty damn stupid listening to that but im going to try and retain that information!!!
mhm!
you're super nice!!
evntually a brick wall comes tumbling down when you hit it with your head enough:)
yea!
i feel like this metaphor got away from both of us🤣
thats very interesting actually
you seem super cool
@sharp sandal👋
Hi
kinda like how i use most of my hyperfixations and special interests to use as a kind of framework for how i approach things!!
i mean yea, programming is interesting as fuck!
yknow opal, you are a very interesting person and you seem very fun to talk to
@blazing herald 👋
they left the call the second you said hi
HA
Hi
yea its nice that i dont have random kids giving me misleading mental health advice for no reason:)
how to get started in python?
thats literally exactly what they said'
not verbatim but thats basically what they said
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Corey Schafer, YouTuber, playlists.
Thanks
the WHAT
thats
something
i made a playlist a couple days ago
ive been playing it in the background while i write stories for a while:)
oh wow1!
excuse me, where do you come from? I just attempted to use Discord due to midjourney.
exactly! i live with a chronic phobia and im no longer afraid to be rude when people tell me to just "not let it get to you"
like if i could just stop having a phobia i would've done it years ago🤣
me too!
i don't quite have tics
but i get that "something in me broke" feeling
im so sorry:(
yea, like im a system and i can pass as a single person, but people notice what they think are mood swings often
really its way more than they thought it was
me too!
yea its like!
whats wrong with someone who doesn't give a shit!
exactly!
people seem incredibly unresponsive to the idea that people around them struggle with things they dont
yea its like, if a normal person is like a slightly cracked vase, im a shattered vase that someone just kept stepping on after knocking it off a table
i tell what i think are wholesome stories and get told to go to inclinic or therapy
sorta odd how my brain works/doesnt work
yep
plus its the only organ that k n o w s i t e x i s t s
and the only organ with a sense of ego
i mean the brain is completely insane
but its also really funny
like we form such bizarre thoughts that make us think we are more than the meatsack that makes us think
i like the human brain, its an odd thing
plus like, the human brain aint that unique
we think a lot of things are inherently human traits
when they're actually something a lot of creatures experience
oof ive got so many damn mosquitos in my house
its kind of a bother to murder them all
you ever get really attached to a sound you make and then just realize its kind of an impulse to make the sound?
also did you know lavender is apparently the gayest color?
i just learned that
its and odd fact
an*
@cobalt tiger 👋
yo mate
@still frigate 👋
Yoo broo 👋
@verbal slate 👋
@delicate jungle Could you remind me of the microwave name, please?
Michealwave
Michealwave the microwave, if you want I can DM you so ya don't forget:)
No, all good. Thanks!
No problem!
what's the question?
does pip install RPi.GPIO fail with an error?
if you're not using venv, then yes
ok but still erorr
what's the error?
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> RPi.GPIO
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure
Hey @willow gate!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
does "/usr/bin/clang" exist?
yes
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
same thing happens with my friend also
he use window
what python version?
Python 3.10.5
isn't RPi.GPIO supposed to be installed on raspberry pi itself?
the module apparently can only work on Linux
ok in ubuntu?
I have successfully installed it in python:3.11 Docker image
https://hub.docker.com/_/python
Python is an interpreted, interactive, object-oriented, open-source programming language.
what is this?
and if I try to run it:
RuntimeError: This module can only be run on a Raspberry Pi!
ok
today i have practical exam for iot
i think for this i have to use raspberry pi os?
you need to run this module on Raspberry Pi itself (so, definitely not Mac/Windows)
or somehow inside an emulator
ok got it
which I have no idea how to setup or whether it exists
ok i will check
ok bye thanks for help
iirc it doesn't
you need a pi
for gpio support anyway
there are several emulators which support the chipset, but none which support the gpio pins
!e py things = ["apple", "pear", "grape"] for iv in enumerate(things): print(iv) @grim trellis
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | (0, 'apple')
002 | (1, 'pear')
003 | (2, 'grape')
!e py things = ["apple", "pear", "grape"] for i, v in enumerate(things): print(i, v) #i and v as seperate variables. "variable unpacking"
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 apple
002 | 1 pear
003 | 2 grape
!e py a, b, c = (1, 2, 3) print(a) print(b) print(c)Another example of variable unpacking.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
The tuple is unpacked into the separate variables.
I run this on label list
!e py things = {"apple", "pear", "orange"} for i, v in enumerate(things): print(i, v)i is not index here. It comes from enumerate, not from the index position of things.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 apple
002 | 1 orange
003 | 2 pear
so every itreable in python is a secretly a tuple?
I understand that
Iterable means it can be iterated over with a for loop.
yeah like list, set or map
If the object's type implements __iter__, it's iterable.
that all can be enumerate am I right?
tuples are iterable
strings are iterable
Any object whose type implements __iter__ is iterable, so there's no real upward limit.
Thanks I understand
!e ```py
import random
class MyClass:
def iter(self):
while True:
value = random.randint(1, 6)
yield value
if value == 6:
break
instance = MyClass()
for value in instance:
print(value)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 4
002 | 5
003 | 1
004 | 3
005 | 1
006 | 5
007 | 6
@serene condor👋
Guys, What are u doing?
@midnight agate https://i.imgur.com/0j5XN1a.jpeg
Thumbnail fail. Oh well.
@twilit reef 👋
no
suffering is necessary
and an integral part of the life
@warm jackal
switz
is on the list as well
!e py import random choices = 'good', 'bad', 'better', 'worse' print('Good', *random.choices(choices, k=10), sep = ' to ', end = '.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Good to good to better to good to bad to bad to worse to good to good to worse to good.
Hello
hii
Guys Can u solve tree question here
Trees is difficult for me
@warm jackal https://www.youtube.com/watch?v=9lsUNON81Z4
Provided to YouTube by Universal Music Group
I Don't Feel Like Dancin' · Scissor Sisters
Ta Dah
℗ 2006 Polydor Ltd. (UK)
Released on: 2006-01-01
Producer, Studio Personnel, Co- Mixer: Scissor Sisters
Associated Performer, Piano: Elton John
Studio Personnel, Recording Engineer, Associated Performer, Bass Guitar, Keyboards, Additional ...
@urban perch👋
I am going to go now I enjoyed listening to these conversations, see you guys another time.
Most epic quote by Cave Johnson. Made with Adobe After Effects
Alright, I've been thinking. When life gives you lemons, don't make lemonade. Make life take the lemons back! Get mad! I don't want your damn lemons! What am I supposed to do with these?! Demand to see life's manager! Make life rue the day it thought it could give C...
No.
@silk tartan👋
@cold prawn👋
@whole bear👋
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how did you get the access to speak in VC? @somber heath
ok
I need 50 messages in the server to be able to speak
😦
ok
o my days
What's up
Can anyone shares the code how I make this
@somber heath hi
How do you measure a fish in sea?
👋
@light osprey👋

i thought you were a bot my bad
Beep beep boop boop.
!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 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.
@whole bear 👋
sorry for disturbing, what time do you guys usually go on live here?
Just whenever someone has something either to work on or needs help with or what have you
There's no real set time, @light osprey
@swift pumice Yo
i could not hear anything hi 😄
All good all good
yo
great chan: https://youtu.be/uCyU97MoHFM
Please support me on Patreon
https://www.patreon.com/machinethinking
Website
http://machinethinking.co
Contact me
http://machinethinking.co/contact
Patreons at the Megafan or Machine Thinker Tier:
Adrian Van Allen
BurningChrome
Cam
Cy 'kkm' K'Nelson
Elliott Wade
H Peter Doble
herethererainbows
History4Real
jared jeanotte
John & Becki Johnston...
he uploads rarely but always good content
bbl i got to zzzz
brb, bio
Some people play with trained models, other people play with model trains.
yeah, but there are places like paperswithcode and huggingface, where you can find such pretrained models @rugged root
also true
Stan asks Clyde for dating advice, in an all-new episode titled, “Deep Learning”, premiering Wednesday, March 8 at 10/9c on Comedy Central.
Subscribe to South Park: https://www.youtube.com/channel/UC7R27sAWc_DqOldtI1JcYhQ?sub_confirmation=1
Watch more South Park: https://www.youtube.com/southpark
About South Park: South Park is the Emmy and...
@solar swallow @nimble rain 👋
hello
But can they out perform a group of pigeons
Hello, can someone please help me with this - #1082330417417425016 message
It will be very appreciated 🙂
sometimes, I have to switch over to my work vm.. and it pauses the stream
If nothing else I thought this was neat
any c dev here
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
I need some help
Objective-C not C, I guess? or just wrong extension?
c
it is a c program not objective c
(was asking because of this)
im late so .. is there a linke to this PDF on Transformers @rugged root
"Well, this math can either detect cancer or send us to the moon. It's a toss-up."
lol it is generated by hastebin
bbl, had some work come up...
?
do you have the code with indentation?
(I can format myself but that will take some time)
there is a new branch of ML stuff , caqlled transformers
called
there was a discord link a while back to , stanford uni research
CS25 : Transformers United , its a stanford university onleine learning room kinda
leeches and pidgeons .... going backwards yes
C
something went wrong
idk what
whats transformers @limpid umbra , do you possibly mean transfer learning
transformers are new ,
can we create code language translator using nlp
python to c viceversa
pain
like we create language translator in nlp
it is optimus prime
Lord Optimus!
natural language processing
they post some lecture papers on there discord channel
parker nlp basically converts texts into numbers , even cnn {covolution nueral nets } uses nlp layers underneeth it , basically nlp is everywhere
i remember reading it somewhere'
@rugged root thank you zombie christ ..... really
we do have code converters using nlp , actually you can use chatGPT to code , but i dont recomend it though
code is included in that to some extent
but, like, human-written code only
is chatgpt able to convert python code into c?
pain part 2
i havent tried , but it interprets the code so beautifully
reliably, no
@winged shard You've background noise.
i used to trace the logic of python 2.7
lol forget that
well what do I try next
using chat gpt
coding taught me one thing , nothing in this universe is truely random ,
wdym
search random.seed()
and then you run into cosmic ray induced bit flip
ml is too vast and difficult for me
@vocal basin can emmisions from a cesium source ( smoke detector ) flip a bit in 2K sram chip
ml is not that difficult , codding a model is easy : reserch is the most difficult part
nowdays lot of competition in this field so much hype
I started ml from kaggle after a year i shifted ml to web dev
hahaha .. random dosent exist , that but uncertainity does exist , there is a difference between random and uncertain
when randomness is sampled from radioactive decay, they're sampled with proper sensors not with hope that it will flip something random
to flip a bit in memory with one particle, you need quite a lot of energy
i accidently got introduced to codding two years ago, if it was not python that i decided to start codding , i would have left codding long time ago
may be 3 years ago
@high acorn do you grow your own herbs also ?
yeah .. i do 🙂
nvm I compiled on a different distro
@high acorn cool , i wan tt o grow cooking herbs inside
your code segfaults on pthread_create
bro dont put that on your cv as hobbie , hr people normally misinterpret that usually.
@high acorn i assume that also , but then i do lots of cooking so it usually goes with it
haha
and on join
lately im doing lots of math in pygame drawing it out
take data from a uC then draw a graph
What is an escape hatch?
this is beautiful project
The Dark Arts of Advanced and Unsafe Rust Programming
@rugged root that os looks nice
What does unsafe and safe mean ?
So in Rust, you can mark things as "unsafe", which means it doesn't get run through the regular rigorous protections that it puts your code through at compile time
whats the system architecture , is it systemd free
So it's potentially error prone
@lavish rover would be the one to ask
Thank you
it still provides the same memory protection for safe parts of unsafe code
but it allows to do more (like, dereferencing a pointer or running something marked unsafe, or use FFI)
depends
in some cases you'll be able to write Rust code that'll run faster than C just thanks to simplicity
Ah gotcha gotcha. I haven't touched Rust much, so I haven't dug that deep
i havent also gotten my hands dirty with rust
void main??
Plus terminology from Java threw me off
Since it's all classes, you only really talk about methods and attributes
It is so rewarding!
yeah
@silent sequoia Whatcha workin' on?
@noble solstice
I got it to work somehow
https://hastebin.com/share/qoxadekeka.c
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
list of changes:
changed size of b
long *numbers = malloc(num_threads * sizeof(long));
pthread_create(threads + tid, NULL, sieveoferatosthenes, numbers + tid)
there's some typos/style issues
(and I'm too lazy to fix)
learn doubly-linked lists in C and then do them in Rust
"when 1/8 of the kernel is HTML"
https://github.com/oxidecomputer/hubris
hi
Yo
hola
Hemmy!!!
Brolock
Aecoros.
don't lock up your bros
If I tell you what I did to fix the code, your going to say.. Ohh..
stupid vscode feature I absolutley hate is it auto fills tags.. there was an extra </form> tag when I built the site form selection..
"may be a good answer if you go work for Oracle"
most of machine learning is binding to C/C++/Fortran/CUDA
the python thing around those binding doesn't take much time compared to the underlying code
(usually)
Neat
@mild quartz https://skylineprof.github.io/
Interactive in-editor computational performance profiling, visualization, and debugging for PyTorch deep neural networks.
oh, wow, these benchmarks are almost a year out of date:
https://klen.github.io/py-frameworks-bench/
Python frameworks benchmarks
Flask isn't ASGI, yes
there's Quart
(if you want Flask for async)
Flask is simplistic, but only to some extent
but now that there's FastAPI
and other things
and if you're too lazy to type "async def", FastAPI also supports sync handlers
benchmarks aren't the only measure of whether to choose a certain framework/library
same for starlite
there's also tornado which has this for some reason:
https://www.tornadoweb.org/en/stable/gen.html
FastAPI seems to be built on top of Starlette to some extent
(where I first encountered that)
afternoon
(so, like, an extra layer of abstraction and less speed)
Parody created using clips from Downfall (Der Untergang)
Discord: https://hitlerrantsparodies.com/discord
Patreon: https://www.patreon.com/hitlerrantsparodies
This video is a parody and is covered by the “fair use” doctrine of U.S. copyright law.
Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use"...
a Hitler meme\ about Hitler memes.
does it get any more meta?
Shut up and eat!
Too bad, no bon appetit!
Shut up and eat!
You know my love is sweet!
Yes, I'm cooking for my son and his wife
It's his thirtieth birthday
Pour berries into my bowl
Add milk of two months ago
'It's moldy mom, isn't it?'
I don't give a flying fuck though
Shut up and eat!
Cibo Matto - Birthday Cake
Too bad...
aiohttp is an impostor there
@molten pewter
from what I've heard Rouble stabilisation involved a lot of spending by the government or other not-so-easy/safe measures
from day-to-day things that a regular person may notice inside Russia: meat quality dropped significantly
(after roughly 8 months shortages seem to have started)
Russian branch of McDonald's just got renamed
some time ago
Russian car sales decrease 63.1% in January 2023. The 32,499 new cars and light commercial vehicles sold in Russia in January 2023 represented a decrease of 63.1% compared to the same month in 2022 according to the Association of European Business (AEB)
this abomination
similar for Burger King
Hm
for Burger King, they just transliterated it and said "we're independent now lmao"
Gotta love it
Russian Urals oil futures were trading around $60 a barrel, closing in on their highest level since December 2022 and narrowing the Urals-Brent discount, as demand remained robust despite the twin price cap sanctions imposed by the West. Russian oil production and exports have held better than expected in recent months, as Russian Urals crude, t...