#voice-chat-text-0
1 messages ยท Page 163 of 1
Flask doesn't support ASGI
you will have severe performance issues once you start serving complex requests (that rely on other services)
@lunar haven hii
sorry guys I went to the toilet
hello guys
hi @whole bear
hi zera are you fine ?
Hello!
Hello @lunar haven
I did say here
You were busy
I guess
No problem
What are you doing today?
Isn't the debugger in vs irritating
hey man, I am fine
I like pycharm
Haha
I have no clue
I started w python
Pycharm*
I googled i guess
vs code is the only option
Yes hahaha
I do use vs for js
I don't know I'm used to pycharm i guess
There's a lot of setup needs to be done for vs i guess
I love to edit .md in vs tho
keptchup
i miss tacos
this guy on fiverr asked me to make him a sneaker bot on discord
im still doing it
thats a thing?
You should update dict
Yes
@lunar haven
The initialized dict is empty
I'm guessing you want to rows of csv as dict?
Yes
What are you trying to do here?
F it's 3AM
Byee
I don't think so
You have to use update function
My bad
Hi @midnight agate
Haha
@lunar haven sorry for confusing
Why so?
Ohh okay
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.
sup
what are you guys workin' on?
hi all o/
sup yoozik
its 330am something
i can barely read chat
im 17, i live with my parents, i live in india, i have asian parents, my life sad, if i use my mic and talk, mom's gonna wakeup and imma get grounded
bhai
mujhe hindi nahi aati
i telugu speak
oh shit nvm
@lunar haven that
scared me
um
its supposed to open yt or wat ๐ญ
lol
indian instructors always why
i learned java first
then python, now js
interesting gofek
there are different types of lollypop ๐
loooooooooooooooooooooooooooooooooooooooooooooooooooollypop
chuppa chups โค๏ธ
bruuuh that was what i used to eat all day when i was a kid
i listen watch js tutorials on spotify
pc
yes
bro i can talk the weirdest shit rn im having a burnout
yes
thats fuckin awesome
yk no server is moderated
wish i had those abilities lol
not sure about that...
aight send it
ok see now again, i had vscode in my activity so you couldn't see
ikr
also how is
that
allowed on spotify
๐
its a good song bro fr ๐ญ
Hey yaa
this is actually on spotify...
lol
does anyone have good experience with react+vite
um
just webdev?
fullstack webdevs
hi?
oh
tkinter
pretty sure that question needs to go to the javascipt server
but why tkinter
oh yes
oh
i feel so tired
yes just
lmao
2more songs and i go
working on your own game?
what time is it for you guys?
bruh... 3 am.....
i'll sleep at 430 ig
same here
you need to get some sleep bro fr ....
nope
Nope.
oh nvm
its not the same
i jus wanna learn fullstack asap cuz my college gonna start next month and i wont' get enough time ๐ญ and i have some webapp ideas
its actually amazing how the python server is actually alive and people participate in vc's and stuff
monkeytype/
bro you dont learn things in one night
i've screwed up 11th and 12th grade playing valorant bro
im filled with regrets and guilts upto the brim
but still sleep is essential
well 10th grade was cool python101 cp101
hm
noice
you might consider playing with one hand if you know what i mean lol
valorant
i think lollypop knows and has done it
yea bro get some rest
ok bro
we all have, everyone in the vc les just agree and gn
i slep
have
gud
DAY
nah imma sleep as well
wa
not me tho lol
wait wait
almost got my ass whooped today so imma need some sleep ๐ฅฒ
uhuh
discord threads
ohhhhhhh
๐ nvm
lmao i understand lizardman now ๐คฃ
nah that guy in the illuminati ๐
lmao
lmao hell nah ๐คฃ ๐
but fr tho what's with these lizards?
man bought instagram, snatch the stories from snap, put the reels like in tiktok making it tiktok v0.5 now he has his own twitter
and owns whatsapp
social media hell
lets hope its for the good...
aight bro gn ๐ด
did he actually go to buy lollypop? ๐
not seeing anything bad :/
lmao they drownin'
cya man
ayo @glacial dragon no mic?
nope
still the same
meh
a lil bit better now
but still not hearable
bro this is the inventory?
no art and stuff?
just plain buttons?
dont give up yet lol
oof
why would you use tkinter for games anyways?
like you got pygame bro
oh so you just used tkinter for the inventory
what module then did you use
oh cool
for rendering, visuals, audio and stuff
ok that explains
but switching from such amazing game art into this save editor is a big bruh moment lol no offense tho
nah but guessing it has good art
well if it wasn't a game why would it have a save editor anyways
ay thats cool
why...just why ๐
oh, think it's not worth the time?
sheeesh
ooof
barely even work with GUI
not at all actually
yea but i use UI mostly
make*
um not sure if I can call them the same
if its UI its basically the texts, the images
if its GUI its the buttons, the links and stuff
when its GUI the user can make interaction
yea you can say its like an HUD
for example in a game you will have the player's icon, the player's health that would be UI
the pause button, the play button and stuff would be GUI
so HUD can have both UI and GUI i tihnk
ohhhhhh like games?
used to work with web development
not sure if i have them now
but let me look
its been a while tho
yea i used to get so fucking irritated when working with web dev
i would have to manually code the positions
of each single fucking element
but i could have made things easier
just didn't know :/
now im trying to work on game dev
mixing Python with Lua maybe
bro im sure you want me dead
yea but cpp is just a bit steep
not saying its impossible to learn
hmmm
like what features
๐
did you make this?
yeah i think it's cool as well
btw
have you ever tried using panda3d
alright what about pyopengl?
oh so you must know lua if you are a modder
lua is like the top most used for modding
oh
like what
thats pretty amazing
and you used python for all of these?
yes please
whats' your github?
you got +1 follower now ;))
lmao these are some decent repo names XD
yea can totally relate
so you know JS?
C, C#?
but you made an SDK for psp as i see here
oh it was forked...
btw which one is better for SDL C or C++
or maybe SFML as well
ow k
you can't use c++?
cool
yea but its easier to use c++ than using c right...
cause c++ has more features than c
yep
have you tried modding for fnf(friday night funkin')?
alright
you got itch account?
bro are you fr?
no game jams and stuff?
oh yea... my memory problems...
thats a long name for a file
sheesh
should i go ez ?
what i mean is ez for you to make the mod in that game
alright nice
hmmmmm
does it have to be sth that no one has made a mod for it
alright bet
aight
mc has voice chat right?
yea
no the official doesnt have
but i think there are mods
so leave that
hmmmm
alright this is gonna get you really busy
imma get you out of your comfort zone
i was thinking but yeah?
risky's revenge... is that a game?
ahem
so you are trying to add levels into it?
the game doesnt have?
is it story mode?
ohhhhh
wait
make a new world lol
like for minecraft there is nether and end
make a new world in risky's revenge
yes fr fr
we gon' see
better be a piece of cake
or not tbh
to the backrooms we go lol
pointer?
c or c++
its gonna be fun then ๐
so what you say?
or should i make it a bit easier
aight imma make it easier then
so that's a yes?
aight bro
gn
aight
byeee
@hot torrent kammy what happened!?
cute puppy!
I was disgusted by the people there.
There ya go, be satisfied.

I did it, I added generics to my language!
In any case, this goofiness is also valid code lol
sorry my microphone were supressed
i think i don't really active on python discord
they require 50 words to unlock
yeah
how long have you been working on python?
wow, i just start from scratch
i want to learn for cybersecurity
and help me with routine job
yea
what did you do with python?
ai development?
not machine learning?
software engineering is it?
really?
i will be right back
that's an incredibly bad use of colon
dereference as as is nnice
define is a bit wordy and so is public...
i like it
do higher-order generics work?
something similar to this:
struct Example<T> {
field: T<i32>,
}
who here is really familiar with the openpyxl module
really familiar
now that's rather a lot to ask
how really does really familiar have to be @fossil anvil ?
i guess good enough
but good enough for what?
this is why you should just ask your question itself right away, using the help system #1035199133436354600 , not asking in random voice text channels if someone is familiar with your specific library
so I suggest you go and do that
you'll probably get better help there
i cant get no satisfaction
thank you
when next attempt at solving rustlings?
@whole bearHey there i have so many fond memories,
im glad
yeah but, i had even fonder memories of netscape
your age is showing ๐
yup
your youth is apparent
the oldest software i used to frequent is probably msn
oldest software? shoot, we talking commador?
or basic?
i dont know what those are
my experience is why i am aged.
might be better to start over rather than continue from last solved
when microsoft word used to have that animated paperclip
when computers that barely do anything today are worth 3 thousand dollars
smartphones that costs 2 thousand dollars but are practically just glowing rectangles
nitro money spotted
don't you need nitro to use stickers
i dont know maybe im wrong you dont need nitro to use stickers
ok
what is nitro?
a form of pament ? a digital currency? what?
nope
no money neccessary here
there are some free stickers
you need nitro to use external stickers, i.e. from other servers
thank makes sense
unlike with animated emojis, which are always paid
How dare you insult the hemshake
@rugged root Hello
@willow ruin Talk in here. Makes it easier on my lazy old ways
First machine learning project which predicts how likely a piece of text contains a error message or just a normal text message. - GitHub - RealAnimmo/Detect_Error_Message: First machine learning p...
I am not sure how to implement the minimax algorithm
oh
@somber heath wbu
hi
Sorry, I was afk.
ahhhh
bbl
cool
you said you need to build a neural network?
yes
that's why i need my pro computer to do it
i live abroad so
i need to use some sort of way to remotely run it
oh
Why not use something like GoToMyPC
if you need help with the code i have a neural network here https://github.com/herchi05/Transformer/tree/main
and i have a multiperceptron there too
why not just ssh
amazing
It's not gooey enough
@tidal shard Suuuuuup
@gentle flint Suuuuuup
Back in a moment, going to quickly skim through this video
what's the video on?
how r u?
meh. been sick for almost a week. getting better though
Good
https://pypi.org/project/python-pdf/
this ?
but I am not sure whether the package is still maintained, last update was Nov 2021.
it is safe to look for another option.
@ Mr. Hemlock ___ Thank You for the Welcome. Voice still suppressed. Listening.
Put all of this in notepad (update each time for new template and new method)
3x templates
3x methods
(Based on previous templates and methods)
new template = x
create new method with x template
class PDFView(APIView):
def post(self, request, sifaris_id, *args, **kwargs):
from .models import GenerateTemplate
template = GenerateTemplate.objects.all()
template.content.replace("{{palika}}")
user_detail = User.objects.get(id=request.user.id)
organization = AdminOrganization.objects.all().first()
ward_detail = Ward.objects.get(id=user_detail.ward.id)
sifarish = Sifaarish.objects.get(id=sifaris_id)
active_fiscal_year = FiscalYear.objects.get(status=True)
my_data = "jpt"
context = {
'ward_number': ward_detail.ward_number,
'ward_address': ward_detail.ward_address,
'org_name_np': organization.name_np,
'org_address': organization.address,
'org_logo': organization.logo_image,
'active_fiscal_year': active_fiscal_year.name,
}
# Render the HTML template to a string
template = get_template('sifarishpage_one.html')
html_string = template.render(context)
# Generate the PDF from the HTML string
pdf_file = HTML(string=html_string).write_pdf()
# Create the HTTP response with PDF content
response = HttpResponse(pdf_file, content_type='application/pdf')
response['Content-Disposition'] = 'attachment; filename="output.pdf"'
return response
!stream 533226806686384128
โ @devout bloom can now stream until <t:1689005059:f>.
I dont see why they wouldnt. If you use a generic it doesnt do any codegen until you pass the types in somewhere. Then it reruns the codegen, type checking, etc for the entire struct. That means it should work
I can test it when i get done mowing the lawn
Avoid abiguity
Easier to know you have it correct
in Rust and C#, for example, it doesn't work;
I think even F# doesn't support that without extensions;
reason being: arguments to generics are required to be types (or constants)
there's a gap between weaker type systems which don't care and stronger type systems which allow higher order generics in a reliable way;
and that gap contains quite a lot of popular languages
I made my generics in a possibly dumb way idk. I did it as simple as i could
rep... no, DITTO
Rust has a different way of supporting it which was stabilised in 1.65
same for Aecor/Ocen (what mustafa is developing)
iirc, last time higher-order generics were re-introduced, it was just a check getting removed
Gluten? Hail Seitan!
Apply for a Grant and get paid to find out...Hampster vs. Electricity Study
Original CNN report by Science Editor Kevin Sanders.on 5- megawatt Nitinol Engine designed by .Mcdonnell Douglas
"Nitinol power plants for the conversion of low-grade thermal energy may have significant economic advantage over conventionally-fueled power plants. A plant of five Nitinol modules could produce 5 megawatts of power.""
McDonnel...
flashback to the air force hoisting an unshielded nuclear reactor fifty feet above a forest in georgia to test the environmental impact of nuclear airplanes
LOL @willow light
@lucid jolt Can you mute your mic or turn on noise reduction? We're getting all kinds of background noise from you like chewing
have you ever seen one of the engines @willow light ?
@amber raptor https://youtu.be/nOGAkRkCWfA
Stan Meyer with the original Water Fuel Cell, which he successfully demonstrated to the USPTO, in his Sec. 101 hearing, which resulted in the issuance of U.S. Patent 4,936,961, a fundamental "Methods" patent on the process. This patent, along with another on the device architecture, both expire on June 26th of 2007. As a result, this technology...
I'm sitting here with an assigned story this sprint: "Create a Dockerfile for Development Environment as Code"
None of the stakeholders have been able to adequately answer my first question: "But why?"
You mean the ones in Idaho in the parking lot for EBR-1?
My uncle worked on EBR-1. I got quite the tour.
Reproducible development
There is a ton of cool energy things but again, being better then current system is generally huge.
Dismissing or laughing off concerns about what it does to a person to know critical secrets does not lessen the impact when those secrets build a different map of reality than "normals" use and one has to calibrate narratives to what another believes. The cognitive dissonance that inevitably causes is managed by some with denial who live as if r...
Be Well, Good Day.
if __name__ == '__maine__':
...```
Not to be confused with another foundation, "Preppers On Our Planet"
Anti-gravity: The Secret Space Race.
Best of Earth Lab: http://bit.ly/EarthLabOriginals
Best of BBC Earth: http://bit.ly/TheBestOfBBCEarthVideos
Gravity, we've all heard of the word, but do you realise it might be able to be manipulated. So much so that the race to be able to control gravity started. This doesn't mean the pathway to the fini...
The great storm of 1987 was a violent extratropical cyclone that occurred on the night of 15โ16 October, with hurricane-force winds causing casualties in the United Kingdom, France, and the Channel Islands as a severe depression in the Bay of Biscay moved northeast. Among the most damaged areas were Greater London, Kent, the East Anglian coast, ...
Hard to find footage of the famous forecast. Thanks to BBC for showing it recently.
2017 counts for tropical cyclone hitting Scotland, a tropical depression
The Braer Storm was the most intense extratropical cyclone ever recorded over the northern Atlantic Ocean. Developing as a weak frontal wave on 8 January 1993, the system moved rapidly northeast. The combination of the absorption of a second low-pressure area to its southeast, a stronger than normal sea surface temperature differential along its...
GIRL SLIPS INTO A VOLCANO
Incineration of organic waste in Erta Ale Volcanoes lava lake as simulation of what would happen if a person would fall into the lava lake (since both are organic and contain water and would thus be expected to trigger similar response).
It is frequently discussed whether it is possible to sink in lava. Due to its high density, a person would g...
What does fast moving lava look like? USGS takes us to the edge of fissure #8. Wow!!
!e
x = 2
print(x.__sizeof__())
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
28
@willow light :white_check_mark: Your 3.11 eval job has completed with return code 0.
28
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
72
GOTO ur mom
Why does it exist?
Why not?
Temple OS has entered the chat.
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed
return y;
}
Imma join the vc in another 20 minutes or so btw
some madlad rewrote it in c++
# include <bit>
# include <limits>
# include <cstdint>
constexpr float Q_rsqrt(float number) noexcept
{
static_assert(std::numeric_limits<float>::is_iec559); // (enable only on IEEE 754)
float const y = std::bit_cast<float>(
0x5f3759df - (std::bit_cast<std::uint32_t>(number) >> 1));
return y * (1.5f - (number * 0.5f * y * y));
}
and it seems to work better
the only flakes I know about involve flake8
@gentle flint o/
I showed vim to my father and asked him to try to exit it.
He pressed and held the power button for eight seconds.
"There, I exited."
@ancient scarab Would you mind changing your nickname to something more appropriate for the server? I'd appreciate it
and the bio too
@rocky yewdude im mute can u help me?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

i can't
told me u are less than 3 days in the server
Sounds about right
@whole bear #1035199133436354600 check this out for your problem
@tender shore
this has a patch
Abcdefghijklmnopqrstuvwxz.
yeah
@tender shore you should learn object oriented programming
It is the most advanced paradigm
It reduces boilerplate
Its easy to read
@gentle flint Just remember, when you go, don't use the keys.
On the plus side, you can get into the nooks and crannies easier
lmao
@tender shore you should learn arm
@tender shore did you know that F# was the first imperative language released in 86โ?
what is vim?
A text/code editor
Virtual interactive mcdonalds
share a link to use it
Linux was a mainframe related piece of software
im indian
Go buy my merch at https://mrbeast.store and if you're looking to set up an online store, it should be on a .Store domain. Thanks for sponsoring this video!
Thank you to Warped Perception for helping with Jet Car https://www.youtube.com/@WarpedPerception
Fireworks provided by https://americanwholesalefireworks.com/
and https://www.PyroStaren...
Anyone know why this would happen
lto1: fatal error: bytecode stream in file โassembly.oโ generated with LTO version 12.0 instead of the expected 13.0
compilation terminated```
Sir Vers.
turns out I need to use LTO
@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.
{'Austin': 91185, 'Portland': 110123, 'Dallas': 89123, 'Atlanta': 112000}
zip(*iterables, strict=False)```
Iterate over several iterables in parallel, producing tuples with an item from each one.
Example:
```py
>>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']):
... print(item)
...
(1, 'sugar')
(2, 'spice')
(3, 'everything nice')
```...
it seems to me that my code is too long to post on python help what do i do
hey
?
!e ```python
stringlol = 'abcdefg'
if 'bcd' in stringlol:
print(True)
else:
print(False)
@scarlet halo :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
!e ```python
coollist = ['a','b','c']
if 'b' in coollist:
print(coollist.index('b'))
else:
print(False)
@scarlet halo :white_check_mark: Your 3.11 eval job has completed with return code 0.
1
async def filter_message():
'some string' in message.content
@lunar haven
[(wordone)(wordtwo)]
for item in my_list:
print(item)
range(10)
if message_module:
for word in filter_words:
# your logic here
is it just me or does it feel like discord is constantly updating
Hellooo @lunar haven
Doing good, how about you?
return should be under for or message.delete
if you want it to check it once place it under message.delete()

you need params
Why is it not putting in the log that the message was deleted
lol
kek
@wintry pier help?
hi theree
winged monster with the head of an eagle and the body of a lion
hi
Replit?
saw it in preview
playing a game: replit
voice chat 0
oh it's Pregamer
Replit W
ok i gtg i just saw replit and had to join
hey
yea, atlast
what are u guys upto
can you explain recursion?
explain me like iam 5 years
yea
while True:
print()
hahaha
i can
@lunar haven :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).
001 | sugar
002 | sugar
003 | sugar
004 | sugar
005 | sugar
006 | sugar
007 | sugar
008 | sugar
009 | sugar
010 | sugar
011 | sugar
... (truncated - too many lines)
Full output: too long to upload
limit
how many time it will run
True
I get what recursion is, but can u show some handy tips, like most times my codes goes hammm
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
@fleet sedge :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | def r(a):
003 | IndentationError: expected an indented block after function definition on line 1
@lunar haven :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e ```py
def p()
print()
p()
p()```
@fleet sedge :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | def p()
003 | IndentationError: unexpected indent
@lunar haven :x: Your 3.11 eval job has completed with return code 1.
001 | sugar
002 | sugar
003 | sugar
004 | sugar
005 | sugar
006 | sugar
007 | sugar
008 | sugar
009 | sugar
010 | sugar
011 | sugar
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/luwerelunu.txt?noredirect
Fibonacci
Fibonacci (/หfษชbษหnษหtสi/; also US: /หfiหb-/, Italian:ย [fiboหnattสi]; c.โ1170 โ c.โ1240โ50), also known as Leonardo Bonacci, Leonardo of Pisa, or Leonardo
Fibonacci sequence
mathematics, the Fibonacci sequence is a sequence in which each number is the sum of the two preceding ones. Numbers that are part of the Fibonacci sequence are
!e py def fib(a,b): print(a,b) fib(a+b,a+2b) fib(1,1)
@fleet sedge :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 3
002 | fib(a+b,a+2b)
003 | ^
004 | SyntaxError: invalid decimal literal
@fleet sedge :x: Your 3.11 eval job has completed with return code 1.
001 | 1 , 1
002 | 2 , 3
003 | 5 , 8
004 | 13 , 21
005 | 34 , 55
006 | 89 , 144
007 | 233 , 377
008 | 610 , 987
009 | 1597 , 2584
010 | 4181 , 6765
011 | 10946 , 17711
... (truncated - too many lines)
Full output: too long to upload
did it work?
how?
only one line code?
!e```py
def fib(n):
if n < 3:
return 1
return fib(n-1) +fib(n-2)
fib(4)
@fleet sedge :warning: Your 3.11 eval job has completed with return code 0.
[No output]
one line?
!e py def fib(n): if n < 3: return 1 return fib(n-1) +fib(n-2) print(fib(4))
@fleet sedge :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | py
004 | ^^
005 | NameError: name 'py' is not defined
def fib(n):
if n < 3:
return 1
return fib(n-1) +fib(n-2)
print(fib(4))```
!e ```py
def fib(n):
if n < 3:
return 1
return fib(n-1) +fib(n-2)
print(fib(4))
@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
would ya lick like a cat then
are you speaking about code ?
na our butt

u should get a agronomic chair
of or relating to ergonomics
that is agronomic chair for stay 16H a day
the branch of engineering science in which biological science is used to study the relation between workers and their environments
def fib(n):
return 1 if n < 3 else fib(n-1) +fib(n-2)
print(fib(4))
!e ```py
def fib(n):
return 1 if n < 3 else fib(n-1) +fib(n-2)
print(fib(4))
@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
so the series first n=1 is 0?
this is the challenge of codewars ?
Because on codewars there is also a fibonacci challenge
!e ```py
def fib(n):
return 1 if n < 2 else fib(n-1) +fib(n-2)
print([fib(i) for i in range(10)])
@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
do you also want the zero?
if you want different conditions foe the two base cases (n=1, = 1, n=2, = 1) then it will be not 1 line
i dont know that
<=
?
๐ฅณ
@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/qevulukica.txt?noredirect
thats the same as (< 3) == ( <= 2)
eurekaaa!!!!
nahh ur code, it can do it in one line
this works
!e ```py
def fib(n):
return n if n <= 1 else fib(n-1)
print([fib(i) for i in range(10)])
@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1]
ohh silly me
!e ```py
def fib(n):
return n if n <= 1 else fib(n-1) + fib(n-2)
print([fib(i) for i in range(10)])
@fleet sedge :white_check_mark: Your 3.11 eval job has completed with return code 0.
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
nahh, forgot that
lamda always seems complicated to me, never use it, use it but chatgpt does that for me
ever or odd?
@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/tufifilofa.txt?noredirect
unrealistic: JVM started too fast
thats all for today!!! thanks guyz, see ya later
10 seconds ยท Clipped by Alisa Feistel ยท Original video "Software Engineering โ: Greatest Hits 1947 2047 Mark Rendle & Dylan Beattie" by NDC Conferences
@whole bear :warning: Your 3.11 eval job has completed with return code 0.
[No output]
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
184553472
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
8
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
4096
@whole bear :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | print(int('0x001000',2))
004 | ^^^^^^^^^^^^^^^^^
005 | ValueError: invalid literal for int() with base 2: '0x001000'
Hi everyone
to each their own tbh
what's the stream about?
Hi there!
Oh, the core basics; cool
it's a way to express you support/agree with something in english (e.g someone says something in chat and you're like "this, yes")
yep
where's the class at?
lol
data types?
yea
can i get some help
i need to uninstall all my python interpreters from my mac
hi
what? data types is a thing in CS in general, what are you talking about
What are u doing here?
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'type'>
I was reffering back to this
I just need one of them for which I can easily pip install <packages> and run my python files
bruh
the libraries doesn't work with that
all except 3.10.6 64-bit
yea ik
but also idk
look
the matplotlib and other libraries aren't working with this
this is the only one which is working with 3.10.6 64-bit
im talking about this
aight
@lunar haven so what are you going to screenshare btw?
PEACEEEEEEEEEEE
how?
still showing an error
u meant like in the terminal?
it says no module found matplotlib
named*
this
but the other one is just working fine with all modules
without .2
this?
/usr/local/bin/python3 -m pip install matplotlib
that's the VScode's terminal cuz im running it on VScode
ok
ran successfully
the error's gone
vs code often does weird stuff to env vars
but this specific way shouldn't be affected
there's another way how you can ensure you run the right pip command:
run it from inside python itself
!e
from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "list"], text=True))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Package Version
002 | ----------------- ------------
003 | anyio 3.7.0
004 | arrow 1.2.3
005 | async-generator 1.10
006 | attrs 22.2.0
007 | beautifulsoup4 4.12.2
008 | contourpy 1.0.7
009 | cycler 0.11.0
010 | einspect 0.5.16
011 | fishhook 0.2.8.post10
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/aqinetibuk.txt?noredirect
woah okay
and now the question arises
if that's the one working fine
then how do I delete the others
the right way seems to be:
select recommended
restart terminal
run pip install matplotlib
ok
did you run pip install after restarting the terminal?
(just using pip without python path)
in my macOS terminal it's showing satisfied
sure
it must be ran from VS Code terminal not external terminal
i.e. type pip install matplotlib here
well, that looks quite odd
does python -m pip install matplotlib show the same?
very unusual if it shows that
i use the control+option+n
class collections.OrderedDict([items])```
Return an instance of a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass that has methods specialized for rearranging dictionary order.
New in version 3.1.
and this one is the proper ordered dictionary
tl;dr:
what's shown on this screenshot shouldn't happen
idk why it happens at all
so venv?
Pomodoro Technique
The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. It uses a kitchen timer to break work into intervals
Pomodoro
Pomodoro (Italian for "tomato") may refer to: Arnaldo Pomodoro (born 1926), Italian sculptor Giรฒ Pomodoro (1930โ2002), Arnaldo's brother, another sculptor
SS-N-3 Shaddock
eight-wheel truck (ZIL-135KM) as coastal defense missiles. These were designated SPU-35V "Redut" or NATO "SSC-1 Sepal". Length: 10.20 m (a/b) or 11.75 m (model
Soraya Phomla
Runner-Up, with SPU Volleyball Club 2016 CH7 Championship 2016 - Champion, with SPU Volleyball Club 2017 CH7 Championship 2017 - Runner-Up, with SPU Volleyball
originally it was a CPython implementation detail
then it got standardised
generally, hashmaps are unordered
my python interpreter
im pain
if you don't really care about venv => select interpreter you had selected before;
if you need venv => call all python executables by their full/relative path (./venv/bin/python -m pip, for example) or call pip from python, as mentioned before;
for some reason venv doesn't get properly activated;
I have no idea if it's because of zsh or because of VSC or something else;
unless you're extremely low on disk space, probably not yet
but i want to
if you're not using venv, you can remove it safely
how
rm -rf .venv, I'd guess
in VSC or in my main terminal?
wherever
just make sure you're in the right working directory
as for other interpreters, there might be something relying on them (so you need to check what's running on your system before removing);
with near 100% probability, default python 3.9 and 3.10 are not safe to delete
It removed the one which was working fine
oh no
nvm
it did remove the venv thing
idk i just ran it and it did what it was supposed to do so i think im gud
doesn't macOS already has it's pre-installed python?
anyways
thanks a lot
why is it highlighting it like that
it might be confusing it as a docstring
regular Jupyter highlights all the same
(as it is simpler generally)
fun fact:
jupyterlab has almost the same exact colours for light and dark theme
(for demonstration)
I totally forgot I added this to the plugin
one day I decided that 2 second response time isn't justified by 2 second preview generation time
I don't like how string colour gets rendered with Gitea's dark theme
but too lazy to change that now
that turned out to be a lie
different parsing of in is triggered by for
yes, list.__contains__ seems to have linear complexity
!d operator.contains
operator.contains(a, b)``````py
operator.__contains__(a, b)```
Return the outcome of the test `b in a`. Note the reversed operands.
whereas for-in calls __iter__+__next__
yes, in as part of for construct isn't an operator in normal sense
iirc, in Rust, even for is extremely context-dependent
at least three separate meanings
impl Trait for
for<'a>
for _ in
there are too many "fundamentals";
you will have to specialise, and quite early on
for Python (and many other languages) there's many packages outside of the standard library which are definitely more "fundamental" for real programming experience, compared to certain parts of the standard library itself
@lunar haven :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | None + 1
004 | ~~~~~^~~
005 | TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
!e
None | int
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
!e
print(None | int)
print(type(None | int))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | None | int
002 | <class 'types.UnionType'>
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{1, 2, 3, 4, 5}
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{3}
!e
print({1, 2, 3} ^ {3, 4, 5})
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{1, 2, 4, 5}
intersection
symmetric difference
union\intersection
!e
print(({1, 2, 3} | {3, 4, 5}) - ({1, 2, 3} & {3, 4, 5}))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
{1, 2, 4, 5}
union - intersection
top right
!e
print({5, 4, 3, 2, 1})
print({1, 2, 3, 4, 5})
print({-1, -2})
print({-2, -1})
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {1, 2, 3, 4, 5}
002 | {1, 2, 3, 4, 5}
003 | {-1, -2}
004 | {-2, -1}
fun fact
first two are same order
last two aren't
reason:
most of small integers have hash(x)==x
except for -1
!e
print(hash(0))
print(hash(-1))
print(hash(-2))
print(hash(-3))
print(hash(-4))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | -2
003 | -2
004 | -3
005 | -4
@undone frost well, for some dialects you might need a course
something broken like Oracle's one
extensions are where the difficulties are
of which there are a lot
postgres
mysql/mariadb
oracle
microsoft
sets => set theory
!d set
class set([iterable])``````py
class frozenset([iterable])```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset "frozenset") objects. If *iterable* is not specified, a new empty set is returned.
Sets can be created by several means:
โข Use a comma-separated list of elements within braces: `{'jack', 'sjoerd'}`
โข Use a set comprehension: `{c for c in 'abracadabra' if c not in 'abc'}`
โข Use the type constructor: `set()`, `set('foobar')`, `set(['a', 'b', 'foo'])`...
relational databases aren't dealing exactly with sets, they use some sort of more difficult algebra/whatever
should be unique
first normal form, iirc
no
not first
I don't remember
one of two things implied by first normal form
!d uuid
Source code: Lib/uuid.py
This module provides immutable UUID objects (the UUID class) and the functions uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5 UUIDs as specified in RFC 4122.
If all you want is a unique ID, you should probably call uuid1() or uuid4(). Note that uuid1() may compromise privacy since it creates a UUID containing the computerโs network address. uuid4() creates a random UUID.
@undone frost usually they just use ids not uuids
theoretically, there might not be any numeric id at all
primary key itself might be enough
but for performance/other reasons, numeric ids are often associated with rows anyway
"is IndexedDB front-end or back-end?"
JavaScript is fast now
Copilot and others propagate existing frequent code issues
unlike "making programmers lazy", this is an actual problem
same with normalising boilerplate and repetitive code
the problem isn't that programmers find a solution to writing repetitive code
the problem is programmers having to write repetitive code in the first place
(which is quite systemic, there's no "cure" to this)
"google until pulling the thing out of memory is faster than googling it"
you can memorise it as a result of googling
i.e. without memorising intentionally
@lunar haven :warning: Your 3.11 eval job has completed with return code 0.
[No output]
@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.
120
it actually has rich display for last expression in the cell
beyond what print can do
hello
pandas tables, for example
!e
from functools import reduce
from operator import mul
print(reduce(mul, range(1, 5 + 1), 1))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
120
@rapid flame practice is better than study and they're probably more experienced that's most likely why they'll know more
from functools import reduce
from operator import mul
print(reduce(mul, range(1, 5 + 1), initializer=1))
``` if you're trying to make the output to be 120
I already got it working
ok
works without keyword argument too
I like this call
very chill people
I never tried github co pilot what engine or what generator does their machine work on @undone frost @rapid flame
I only heard about it
rarely use openai tbh
its kinda trashy
Factorial
the factorial of a non-negative integer n n , denoted by n ! n! , is the product of all positive integers less than or equal to n n . The factorial of
Double factorial
In mathematics, the double factorial of a number n, denoted by nโผ, is the product of all the positive integers up to n that have the same parity (odd
for information-oriented disciplines (including software engineering),
there's not much principal difference between practice and study when both are done well;
good practice provides gaining new knowledge,
good study involves a lot of practice
but that's an idealistic "done well" world
be careful of what botnet you use!! @rapid flame
they sometime sell your data to somewhere u would not want it to be
always instead of sometimes, I'd expect
not all of them tbh


