#voice-chat-text-0
1 messages ยท Page 543 of 1
if you want to get out of it quicker
don't even try to let it "help" you, it won't
cisco networking academy good and alot of its free
use starlette or litestar if performance is of concern
(responding to VC) AI will just lie to you
confidently
less performance as ik something like rust alot faster more wondering if it would be secure enough using fastapi and if the securitys good enough for an auth
FastAPI's bundled OAuth2 support is good enough
@subtle musk you'll have to stop relying on structured courses at some point
thankyou
if you want an ordered list of what to learn in case of Python, then see Python tutorial
open the Python tutorial, go through it in order;
once you understand all that's there, start doing projects;
starting at that point, the primary source of knowledge will be the documentation
the only big things that the official tutorial lacks is automated testing
the main critical requirement for any course to be considered more useful than it is automated testing and linting
one very bad "source" for learning, for example, is w3schools
true
, because of the total disregard for code quality
get a linter
get an autoformatter
whats that
PyCharm comes with those bundled
linter checks your code
autoformatter formats your code
ruff does both of those
so either ruff+VSCode/other IDE or PyCharm
so basically an IDE
VSCode's Python extension pack doesn't come with a linter or an autoformatter
it only has a language server
Generally it's K-5 is Elementary, 6-8/9 is Middle, and 9/10-12 is High School
oh
9th can be middle or high school
depending on the school district and if they start the high school with 9th or 10th
linting and formatting isn't one of those cases where you learn to spot it yourself first, and then rely on tools
instead, you get tools, they beat you over the head over and over, until you yourself can't look at bad code without getting annoyed
Interesting how it's a jump from junior to senior, no mid level education ranks
seemingly resets at some point?
what's that system called with bachelor's, master's?
Bologna Process
ah, it's specifically the European-ish one
theory is great
whats that
very European country: Kazakhstan
lmao
@heavy zenith Bachelor's and Master's kind of coexist, but in this thing Bachelor's often comes before Master's
yeah but in austria we start at master
lmao
(when remembering geography judging only by country mergers)
Russia has very little in terms of regional laws as far as I know, so the size of the country doesn't necessary influence it
meanwhile Switzerland is quite split legislatively, from what I understand
it's a confederation, 26 parts
@heavy zenith also Albania, probably
that one has bunkers too
~0.75 million bunkers for ~2.7 million people
so it all depends on whether they can fit 4 people in each bunker
@subtle musk aggressive prosecution of drug use makes things worse very directly
including how it makes the criminal part of the business more profitable
when you jail users, you prosecute victims and put money in criminals' hands
oh
get a specific project to build
but i wont know how to make it
irrelevant, if you want to build projects, you need to pick what to build
wdym
you want to make stuff => decide what stuff to make
yeah then how will i make it if dont know what to type
if you can't decide what project to build, then definitely you can't even start doing that
like i wont even know basics on how to build xyz
the coding doesn't matter at all, for this question
get a goal of what to create, then work towards that rather than guessing what you'll need
got it
I would request Git history
I usually judge by the style of comments if they are present
no, AI could do that
especially if it gets into context of doing that and the session is reused
are the comments grammatically proper sentences?
I've done more in a single file, 1300 lines and 6 classes isn't critically lot
@heavy zenith by the description of the problem, this sounds more like something someone would choose to do with AI
tedious to write by hand
eh
regex isn't necessarily explainable
I don't think in natural language/logical constructs when I construct regexes, I think in regex
I wonder how bad AI scores on the "mixed levels of abstraction" thing
(of the most fundamental code quality rules: don't mix levels of abstraction)
I don't think I'm using any extensions other than the python one
don't open separate files
open whole directories
as in "edit with VSCode" thing sometimes disables certain things
Win10
I usually fix stuff like that with just reloading the window
also it happens to me on Linux more often than on Windows
also Git sometimes goes colourless
Ya, that's what I usually do, is just reload it
are you using WSL?
the thing is it happens to me on different computers too
it's installed but not working
i tried to st it up but for some reason it's bugged
also
important thing
you might have your search exclusions fucked up
so it indexes your venv
and gets stuck
I've ran into that before
i use uv, it should exclude the venv automatically right? hold on, I'm reloading vs code
python.analysis.exclude should include **/venv and **/.venv
what I have
"python.analysis.exclude": ["**/node_modules", "**/__pycache__", "**/build/lib", "**/.venv"],
also
"search.exclude": {
"**/venv": true
}
no, not gitignore
this prevents searching the venv
this prevents analysing the venv
the latter is mostly to make rename actions not take forever
idk if they fixed it, but it used to be the case that, on each rename, it would re-scan the whole venv
ctrl+shift+p, then this
or just bash it
thzt loooks insane
@vocal basin like this?
autoformat
(somehow)
((just so it doesn't look weird))
there might be a difference from person to person on what light is more or less problematic
I know there definitely is a difference on whether it's safer to sit in a lit room or not
for me indoor lighting is very bad
that red is too close to purple
as in not close to orange
(though shouldn't matter, because it's not actual purple wavelengths)
just too much blue to be the "night light" colour
yes I do spot the difference of just 3
I have this theme
though I am a bit displeased with it
but still I prefer it over the rest
I picked this in part because it's less colourful than others
like there are just two main colours: blue and yellow
keywords and some operators are very like background, yes
it helps a lot with reading when I'm tired, which I found out at some point
like
all the parts worth reading are bright yellow or very light blue
I would probably prefer if arguments and local variables weren't styled different
what theme is that
Abyss
oh
should come with VSCode itself
@calm heron wasn't it 3?
I have to re-issue each 3 months
you know how Monokai has its iconic red for keywords and stuff?
there is Monokai Dimmed where that is replaced with grey which blends with the background just like with the theme I use
this is what Sublime Text uses
Visual Studio flashbacks
@primal shadow that is pain on the screenshot
yes
somehow I didn't notice how bad it is in the IDE itself
orange
I've seen this "in the wild"
blue blue blue
pastel-ish
this I can use
this I'll go insane but can get used to
for some reason TLA+ has very little yellow on this theme
.
ugh I uninstalled Rust Rover already
I got way too annoyed with it, can't see what it looks there
sign out
explosion
incident
the se is slightly different
GitHub; red keywords like with Monokai
seems to purplify calls
255 255 255 and 252 252 252
meanwhile the spellcheck during all this: quietly screaming in the corner about lenght
make comments RED
make comments BURN YOUR EYES
there is an argument for the opposite:
comments are excuses and warnings, they shouldn't be in code, so they should stand out because they're an exception to the common guideline of avoiding them
(for languages where this makes sense)
citing sources in code via comments is good
but the rest of comments are kind of mostly useless
enforcing documenting everything via lint rules is quite problematic too
imo better to have metrics than checks there
(i.e. show % documented and alert on sub 100% instead of blocking on sub 100%)
better to have it left undocumented than have an empty-ish doc comment that is barely enough to appease the linter
@heavy zenith put the links to websites you looked up when you were solving something
this is very useful
when you need to edit that code, you can reference the original source
yes
see their license
can't copy then
it's all rights reserved by default
(including sources which ended up being less useful)
for referencing code:
use permalinks
linking to a specific commit
file might get moved
within the repo
GitHub/GitLab/Forgejo
and Git in general
with some languages, can also link to the package registry instead of git
in that case, locking the version is recommended too
I don't do much of this because most of my code eventually reduces down to things where documentation is trivial to look up
(so, in certain circumstances, it might be a better decision to forget the search trace, because it complicates debugging)
I joined in 2019, but left some number of times
I don't remember the exact date, but it's somewhere in the mod logs
oldest messages for me would be October 2022, but I deleted quite a lot of them
latest still alive messages are from this date
Hemlock was staff on some other server
which got merged into here
I started using Python only in 2017
(and Pascal somewhere between 2006 and 2009)
Latin of programming
Rust was the language I learned the most quickly
we had proper automated testing and linting for assignments in school and university
(and in general those two had somewhat similar system setup)
like in both places we had personal accounts which were accessible from any computer
I used to own a typewriter
around 1 year from properly starting to getting paid for writing it
cba ?
can't be arsed
more family-friendly version of cbf
9years in can't land an internship ig.
i didnt even really had time to learn rust
i tried to write mcts without knowing anything in rust
I switched to Rust from Haskell
now i need to make a full-stack project for my coursework
full circle back to js yey ๐ซ
fuck web dev fr
i dont like it
imho a bit boring for me
doing everything: from C to CSS
I like CSS, it just works most of the time for me
ok fairs
idgaf so i used it
like for a few competitions i needed to make a website to host my stuff so bootstrap it is
giant side margins are good for some sites, but just not for the things I make
I hate bootstrap
like i had to host my online simulations online for example
pumpkin
๐
tailwindcss?
pump-king
(((e.g. if you wanted to shorten "for example" prior to edit)))
ye
ik some ppl do "par ex" in french but i got a bit mixed up the second i sent it
oh wait im supposed to be in english so
e[xempli] g[ratia] is Latin, and I'm not sure if it even works at the end of the sentence
RAS Syndrome
@night tiger are you here ?
not yet
Wikipedia article on RAS syndrome used to include the recent addition to the list, a certain game's name
@somber heath are you here ?
whereas the company needed me to rewrite something in Rust which used to be in C++, because it didn't work
can't compare performance when C++ one crashes all the time
- cat ears
ok i sort of know a little bit of opencl stuff
but not good enough to claim that i can write a kernel without looking at the docs
did you just gain cat ears
yes
how
I am now.
when do you gain ears
I downloaded python
what was that scream lol
abruptly cut scream
videos that end too soon
we'll be right back
lol
it's gonna get annoying
it's quite rare that i can pop in vc now
half term now
im usually quite busy with school stuff
how can i replace my crappy pylint shit
ik theres a really fast rust one
i saw today
astral sh
im on vscode
knee-high is just the default for me~~, though that isnt as outstanding style-wise here given me being a girl~~
ruff
no, the pylint joke is too slow that i havent heard it yet
ye
astral-sh lol
they made it
crewmate front view
amogus
Hello
the main reason not to use Rust for Python tooling:
it's not Python
@somber heath C++ but better
Zig is C but better
Zig is a C compiler, and also an extension of the language
do you use it lol
is it like 100% free
or is there some sort of catch
C# and Java ventured off from C++ quite far
@heavy zenith Rust code isn't necessarily more complex
@jaunty socket VC1
no hiring though
other chat
astral.sh are planning to monetise via this https://astral.sh/pyx
this to uv is what Vercel is to Next.js
oh, another new thing
https://github.com/astral-sh/ty
@heavy zenith the absolutely worst part of Rust currently is compilation times
I have a project which takes ~40 minutes to release (with caching)
it's mostly because of big dependencies
large part of that is also link time
async Rust is great but needs to be used correctly
need to always keep in mind that .await is a potential return point
@jaunty socket what do you wanna do>
macros in Rust are another great part, where C++ still needs to catch up
wrong chat
C++ is gradually getting reflection
ah fuck
Rust isn't getting reflection any time soon
ik about uv
one of the metaprogramming approaches
i then look more into the project
and i saw ruff
in fact i was browsing the company website this morning
pyx will do two things to uv:
- extra funding for development
- proprietary-only features
(see the Vercel remark)
this builds for 4 platforms
ah
two separate Windows builds
GNU and MSVC
for now, Linux only for x86_64 and aarch64
or is it more like tailwindcss and you get to buy stuff
(will start doing riscv64gc soon)
for now, the builds are proprietary but I'm gradually open-sourcing the components
I have something like 5 or 6 RISC-V computers, for experiments
(all from the same company, for now)
i have like a few raspberry pis
but im too shit at hardware to do some dumb diy project
my frail programmer arms are shit
the more experienced you are in rust the higher the socks go
I stopped using pre-made ethernet cables at some point, mostly because I need specific lengths,
so at least putting the wires into connectors I do myself now
I wonder how much damage doing it incorrectly can potentially cause
bold
-# smol
what
Header
- list 1
- list 2
ye i knew about this
this is not entirely guessable how to do
specifically putting ` in code things
\` won't work there
same as ~ on US layout
`code`
this will just do code
`` `code` ``
(`` works just like ` but allows ` inside)
finally can do weird JS: `${[] + []} ${[] + {}} ${{} + []} ${{} + {}}`
(can try to guess the output)
' [object Object] [object Object] [object Object][object Object]'
- cat ears
lol
the naive answer would be ' [object Object] 0 NaN'
[]+[] is ''
[]+x is mostly x.toString()
{}+x is mostly +x
(just turns x into a number)
[]+{} and {}+[] are different
only first two align with the outside-template logic
so we only have `${{} + []} ${{} + {}}` to solve
+ for some reason gets treated differently
for something that's roughly stringifiable and not a number it just concatenates always
stop already you're going crazy
@slow urchin https://youtu.be/ftomw87g61Y?si=NEO9Sl3spl6q9vd_
Provided to YouTube by Universal Music Group
Eric The Half A Bee ยท Monty Python
Monty Python's Previous Record
โ 1972 Virgin Records Limited
Released on: 2014-01-01
Composer Lyricist, Performer, Producer, Associated Performer: Eric Idle
Performer, Producer, Associated Performer: Michael Palin
Producer: Alan Bailey
Studio Personnel, Asst....
eCONomist
econOMics
eCONomy
If you want to know something the common ancestor between cats and dogs must have been very happy because they're relative was the
|| -#smilodon||
Hi
Has Jassy ever done anything in his life except for cutting jobs?
Amazon.com plans to eliminate roughly 14,000 corporate jobs just months after Chief Executive Officerย Andy Jassyย warned that AI will shrink the companyโs workforce. Theย downsizingย marks Amazonโs second round of reductions in recent years. Besides his ongoing war on bureaucracy,ย Jassyย signaledย in June that the companyโs staff count w...
I really don't know what he ever did. Every time I read about him, I don't know what he does.
why can't I chat?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
We have a voice gate. It sucks, but needs must.
@plain salmon ๐
@urban ledge ๐
Hello, Player.
Hi hi, Jik.
A...player?
They are voice permissioned.
They ought to know
Yes.
I rejoined shortly after, because they went.
@sick ledge ๐
Every waking moment feels suffocating.
But the other day there was an echidna, which was nice.
It walked over to where I was and walked under me.
Like, if I sat down, I would have been picked in my mhm.
Because I was squatting down
Well, these things wear ruts, like rain over earth.
You communicated your hopes for me the other day when you were saying goodbye. Do you remember what you said?
Things you wanted for me.
About my enemies.
That made me smile.
It was like..."Oooh....yeah. That feels good."
Like goosebumps.
There's an alternate ending to Breaking Bad where he wakes up as Hal of Malcom in the Middle and it was all a dream.
Robin Williams.
The humanest human.
Funny, yes, but killed the serious stuff, too.
๐ ๐
Howdy
Another exciting day in the office
Quiet morning here today
internal
Yea
business tool
Do lotteries elsewhere not take a cut?
I think the difference might be in how the jackpot is advertised
in the US we often advertise pre-tax
elsewhere they often advertise post-tax
taxes on eurojackpot
they do tax it
Governments LOVE lotteries
...
from the winnings
instead of giving someone 100mil and sayign give me back 50 mil
they get 50 mil
6 of one, half dozen the other
"good causes"
taxes
The government collects money and spends it
In Canada
The government takes their cut from the ticket sales
off the top
so for every $x paid in, only $y makes it in
$x - $y = taxes collected
So instead of calling the jackpot 200 mil
it's a 100 mil jackpot
Not tax the sale
IF we ran a fair lottery between the three of us
each throws in $5
and the jackpot is 15
yes?
In America I'd pay tax on my $15 won
in Canada the jackpot would be less than $15
You say it's untaxedx because you didn't see $15 ever
I say the government already took their cut
What happened to the other money?
If I win a $100 scratcher, there's no way I'm paying taxes on it
turn ticket in at counter, get cash
๐คท
I'm talking lotteries that have jackpots
and the concept of them being taxed
in different ways
Yes, the big difference is WHEN Taxes are paid, not IF
The jackpot for US lotteries is generally some inflated annuity payout figure anyways
not the actual amount of dollars up for grabs
I am
๐
have a lovely day
Hello guys
That's why
People want to flex, even if it doesn't make sense.
QUANTUM ENCRYPTION!
we
the human race
We are one
dafuq?
What does that mean?
When the last website?
Is everything quantum encrypted now?
All computers are based on physics....
that's how they work... in this world
You've got bold claims
What do you use it for on your bot
100 billion years
How are you using htis
"customer data"
Why do you need encryption to know if someone is subbed?

of the quantum variety
to maintain a flag
True False Both
It's super important
THey are schrodinger's subscribers
I took a bootcamp at Elavon to learn about merchant processing when I was in banking
Down to their HQ
It all sounds illegit
Square's API?:
Why are you saving card numbers
You are in major violation of PCI compliance, Stripe is not gonna be happy
I bet you their TOS says you CANNOT store customer cards
They say use AES 256
Why is stripe sending you customer data? You should be sending them...
You wanna test that?
Smart
this man
lmao
He's got a decade of professional work experience Chris, get off his back.
lol
None of this makes any sense
Why is sam so sad?
They just went for profit
lol?
Are you for real?
I see you're new, might wanna check out #rules
That's exciting, where's the third option, I do what I do, but so do others, and I cannot control them.
I don't read fiction all like that
hahahaa
Code, lots of it to review today
Oh, I missed this
hahaha
Is it me or is Darth a robot?
?
I think I've got bt bud issues
you were coming in all robotic, but now others are too
so it's likely me
!ban1342508721804414996 racism
forgot the space
!ban 1342508721804414996 racism
but they can see it coming
:incoming_envelope: :ok_hand: applied ban to @elder quarry permanently.
so that was fun
woops
Are you muted for never having been unmuted or for doing bad? If the former, #voice-verification if the latter @rapid crown
You were using a soundboard in chat and when asked to stop, you didn't
Even with PCI compliance, it's a risk
chat gpt
Transcendence is a 2014 American science fiction thriller film directed by Wally Pfister (in his directorial debut) and written by Jack Paglen. The film stars Johnny Depp, Morgan Freeman, Rebecca Hall, Paul Bettany, Kate Mara, Cillian Murphy and Cole Hauser, and follows a group of scientists who race to finish an artificial intelligence project ...
!rule 10
What?
huh
!clban 341072861617717248 Just here to troll it seems
:ok_hand: applied ban to @valid vortex permanently.
lmao
Maybe they're a pair
yes
Note the mutes
my model taking forever to do inference ....because i forgot to turn on KV cache prolly
fingers crossed i get better than 0% accuracy
huh haha
nice
vscode is better than pycharm for beginners
yeah
Learn the basic
Fundamental Variables
dominates the basic data types: Integers, floating and strings. Learn arithmetic operations and type conversion.
Data Collections
Explore lists and dictionaries. Learn methods such as append, pop, index, and data structure manipulation.
Loops and Conditionals
masters flow control with for, while loops and if/elif/else structures. Solve problems with complex logic.
the proyect i making is a Python-AI-Assistant
it depends on the time you dedicate to it
I don't see why people answer these unanswerable questions
I don't understand what you mean
do you mean e-commerce?
yeh
yes
Lmao
only when configured correctly
yup
VSCode needs to have ruff installed and enabled
(or some equivalent, but those are very likely to less trivial to use)
Voice Lord
yess ruff is what makes VSCode viable; without it, it's much less trivial and PyCharm wins
yup
!cpban 794749897910911016
:incoming_envelope: :ok_hand: applied ban to @neat estuary until <t:1762099538:f> (4 days).
compban
those all went to VK and Pixiv already instead
and Telegram
@wind raptor I only remember one that got blocked from mm
chief overpromising officer
boredom-to-boredom sadness-as-a-service
B2B SaaS
and dedicate a lot of time to it. Too much.
It's not impossible, but you have to spend a lot of time on it
To reach a Minecraft audience, you need to participate in streamer event, you need contacts for that
shorts are great funnel for your main channel make shorts..
or build a processor in minecraft
hey is anyone here in cloud related roles? need some guidance on where to start...
hshshshs why are you laughing like this
Start at entry level, gain experience
example: Data analyst
what you guys talked about i didnt understand much other than vm thing but is a bit overwhelming i was figuring out where to start like to build a base and fundamentals i have no exposure to this field.. i have been doing dsa and core cs subject for some time so....
u pick a cloud?
cloud networking, IAM, appengine, storage buckets, monitoring, VMs, artifact registry
like aws google cloud etc?
ya aws was the most popular so that prob
what are you guying working on the jobs what is it like is it exhausting?? i am a going to be a fresher in couple of years searching for a job..
Gotta head out. Cheers ๐
Explore, copy, and remix thousands of high-quality React components published to the 21st.dev Community by designers and developers.
anyone do api broker with .py
also multi devices
i wanna logorythmically trade with a like reg broker ui for live view. i got it connected but my skills lame
backtesting with agents
deepseek ocr is fire
Door kickers?
The sequeol
It's like hte game on iPhone called Door Kickers
I don't believe the game is MP
hello everyone I am new here. what's the fastest way to get voice privileges
Factorio!
Talking
lol
so engage with us, and then you can get past the gate
You've been here a month and a half and that's your first message?
Welcome!
Yes i have and its my first message
im looking to learn and meet like minded individuals
I am studying CS and currently in my second year of university also studying to get my sec+ certification
That sounds fun. Is Python your preferred language?
I learned a little bit of C and java but now I am learning python
how about yourself? what is you preferred language?
Python is fun
Professionally I'm full stack, so I do that for $
But when I wanna make something quick I generally prefer Python
Thats amazing
Do you enjoy your work? Is it difficult
i am interested in web application security. I really like the idea of defending/breaking into things legally. I use to work physical security in the military and id really love to apply the concepts from military to the computer side of things
Not difficult, just a bunch of CRUD
I am less motivated to program outside work since I got the job
its funny i just learned about the CRUD acronym on Monday
would you say most developers program less outside of work or is that specific to you?
I can only speak for myself
There are plenty who code 9-5 and then some more from 5-9
hello
hello
hi
Wouldnโt you do passport renewal via embassy if you are out of country?
Mutual combat, a term commonly used in United States courts, occurs when two individuals intentionally and consensually engage in a fair fight, while not hurting bystanders or damaging property. There have been numerous cases where this concept was successfully used in defense of the accused. In some cases, mutual combat may result in killings.
@amber raptor
https://www.youtube.com/watch?v=Jd1r89Y3ofM @dry jasper
Superhelden gibt es nicht nur im Comic. Auch im echten Leben begegnen uns immer wieder Menschen, die durch ihre selbstlosen Taten รผber sich hinauswachsen. Wir haben sieben auรergewรถhnliche Persรถnlichkeiten ausfindig gemacht. Hier sind ihre Geschichten.
โบMehr Galileo: http://www.galileo.tv/
โบGalileo auf YouTube abonnieren: http://www.yo...
bug = unexpected error
@crude nova
debug = looking for and fixing an unexpected error
What if I expected the error?
Let's pretend I work for Bethesda
is it really buggy if I expect it?
not only that, but generally observing what the program does
(through means other than its primary output)
gathering the information about the program at or after runtime; not acting upon such information
@wise loom , @crude nova , @normal marsh , @stark crow anyone there ?
terminal @dry jasper
IDLE
what is bug in context programen
What is a bug in context to programming
what is a bug in context to programming
You are not allowed to use that command here. Please use the #bot-commands channel instead.
I make music too! Check it out! https://open.spotify.com/artist/3A8e5sP7H3v7b308yWygAu
A short film for THTR 1020. (Speaking begins at 1:17)
For clarification: Many words spoken in the video are actual English words. When put together, however, the sentences make little to no sense. While many non-English speakers can pick out words they recog...
class customer_information:
def __init__(self, customer_name, customer_phone_number, customer_address)
self.__customer_name
customerName = input ("Enter Customer Name ")
self.__customer_phone_number
customerNumber = input ("Enter Customer Phone Number ")
self.__customer_address
customerAddress = input ("Enter Customer Address ")
class car_information:
def __init__(self, porsche, mercedes, bmw):
pass
1 self.__porsche
2 self.__mercedes
3 self.__bmw
class service_pricing_information:
def (self, parts_charge, labor_charge, tax_charge, part, part_cost)
self.__parts_charge
part = input ("Enter the name of the part used ")
part_cost = input ("Enter the price for the part ")
self.__labor_charge
float (input("Enter the number of hours worked"))
labor_charge = 5.00 #("dollars per hour")
self.__tax_charge
def main():
print ("Joe's Autoshop")
fn:customer_information
fn:car_information
fn:service_pricing_information
#end```
Hi
def __init__(self, customer_name, customer_phone_number, customer_address)
1 self.__porsche
2 self.__mercedes
3 self.__bmw
def main():
print ("Joe's Autoshop")
fn:customer_information
fn:car_information
fn:service_pricing_information
'''```
def pause_game():
is_paused = True
# creates pause loop
while is_paused:
for event in pyg.event.get():
if event.type == pyg.KEYDOWN:
if event.key == pyg.K_CAPSLOCK:
is_paused = False
if event.type == pyg.QUIT:
is_paused = False
pyg.quit()
UnboundLocalError: cannot access local variable 'event' where it is not associated with a value
In this video we'll learn how to pause our game for PyGame and Python.
Inside of our Game class, we'll build a function to pause our game.
We'll call it from the Update function whenever a user presses the 'p' key on the keyboard.
#pygame #codemy #JohnElder
Timecodes
0:00โโ - Introduction
1:00 - Press P for Pause
1:55 - Create pause_Gam...
if menu[pyg.K_ESCAPE]:
screen.blit(menu_font,(435, 428))
pause_game()
hey guys ๐ anyone here played Rocket League?
Iโve been experimenting with automating one of the tougher in-game mechanics โ kinda like those precise dashes or movement combos that usually take crazy timing to pull off.
so I wrote a small Python script that does it automatically using keyboard + mouse inputs. it basically simulates the same quick key presses a player would do, just perfectly timed by code ๐
curious if anyone else has tried something similar or played around with scripting for game mechanics?
Hi, i'm new to coding and Python
#==={defs}===#
def pause_game(font):
is_paused = True
# creates pause loop
while is_paused:
font.render(f"Paused", True, (255, 0, 120))
for event in pyg.event.get():
if event.type == pyg.KEYDOWN:
if event.key == pyg.K_TAB:
is_paused = False
if event.type == pyg.QUIT:
is_paused = False
pyg.quit()
#===========#
is this code ok?
you can simplify
@woeful blaze switch the if statements to be booleans, then set is_paused to them
is_paused = not (event.type ==pyg.KEYDOWN and event.key == pyg.K_TAB)
is_paused = event.type == pyg.QUIT
Well it is Dana that I was falling from a tutorial
sorry
eh, just noticed the for loop... if statements are actually good for preventing thrashing
im trying to have a text renderd when this loop is active
hi totem ๐
bounce bounce
Iโm procrastinating on the stuff I have to do ๐ฃ๏ธ๐ฃ๏ธ๐ฃ๏ธ๐ฃ๏ธ๐ฃ๏ธ
with same resonance as the trampoline
im thinking if you have perfect match with resonance as the trampoline can you go fast enough to escape the earth gravity...
unity use c# right?
yup
supersonic!!!!
hello
just make sure you have strong trampoline ๐
trust
it will work (source : me)
my throat is not working today
very advanced stuff you're seeing right year
100%%%%
figuring out unity took me 2 hours
hello @normal marsh
Cool. Just woke up and saw this.
@austere horizon ๐
print("Circle Calculator")
def from_radius(r: float):
A = 3.14 * r * r
L = 2 * 3.14 * r
D = 2 * r
return A, L, D
def from_diameter(D: float):
r = D / 2
return from_radius(r)
def input_type():
print("1. Enter as an integer")
print("2. Enter as a decimal (float)")
try:
choice = int(input("Enter your choice (1 or 2): "))
if choice == 1:
return int(input("Enter your value: "))
elif choice == 2:
return float(input("Enter your value: "))
else:
print("Please enter 1 or 2 only.")
return input_type()
except ValueError:
print("Error: Numbers only, please.")
return input_type()
def main():
print("Choose your calculation method:")
print("1. Calculate using radius")
print("2. Calculate using diameter")
try:
choice = int(input("Enter your choice (1 or 2): "))
if choice == 1:
print("Enter the radius value:")
r = input_type()
A, L, D = from_radius(r)
elif choice == 2:
print("Enter the diameter value:")
D = input_type()
A, L, D = from_diameter(D)
else:
print("Please enter 1 or 2 only.")
return
print(f"\nโ
Area of the circle: {A}")
print(f"โ
Circumference: {L}")
print(f"โ
Diameter: {D}")
except ValueError:
print("Error: Please enter a valid number.")
if name == "main":
main()
Please read this.
@edgy mortar
Do you have a specific question?
Heya
Yes, we're still in the situation.
Well, I don't mind led.
Because what's a day without cat butt?
@half sonnet ๐
Hi @somber heath I'm back
Hello, back, I'm front.
Opal I've verified my voice but still I my voice is being suppressed
is there any solution or any bot server where I can get help?
Leave voice and rejoin.
Now unmute.
Hello. Your mic is a bit iffy. Keep talking.
Yeah, it's not great.
You might want to listen to it.
Stop stop stop.
Stop talking.
Stop stop stop.
@half sonnet
IT'S NOT YOUR FAULT BUT PLEASE STOP TALKING.
@half sonnet
@half sonnet
You need to listen to your mic.
what happened?
Severe distortion. Overloudness. Poor quality.
I did something wrong?
sorry guys for this, I'll try to fix it
Ungh.
@upper basin
Why would you do this?
Oh, Ace being here is very welcome.
I like Ace.
What I don't like is Ace doing that phrase in that voice.
It sets my teeth on edge
tre this
import time
print("โ welcome to the pomodorp timer ๐
minutes= input("entre time in min ๐
minutes= int(minutes)
total_sec =minutes*60
while total_sec>0:
minutes=total_sec//60
secs=total_sec%60
clock =f"{minutes:02d}:{secs:02d}"
print( f"\r time remeining: {clock}",end="")
time.sleep(1)
total_sec-=1
print("\ntime`s up , take a break")
lol
!code
yoooo @coarse apex
Vibe coding has been everywhere lately, and yet the user counts for these companies seems to be going down? What's going on here...
Thank you WorkOS for sponsoring! Check them out at: https://soydev.link/workos
I thought of sharing this on release, but reconsidered, given how Theo doesn't really like to broaden his audience through less tech meaningful videos like this
hey guys, does anyone have any NSL-KDD datasets?
how or where to download?
it's a dataset of a network algorithm used in Intrusion Detection System in 4g/5g/6g
I should've done that first, thank you for your suggestion
Here's a VSCode getting started guide for Python
๐
If you have specific questions / issues please do ask
It's not meant to be pronounced anyways ๐
Depends on the vowel
Fik/
Fok?
Fak?
Fek
All seem fine to me
๐
I was just thinking of that
hu was the president of china?
Love that trilogy
see #voice-verification for instructions
follow the Feynman problem solving algorithm
it says i can't
cause of the active thing
i can't have the opportunity to talk at all now?
You gotta get through the voice gate, you do that via text messages
if you need help you can ask for help, and we can try to help
or you can check out #โ๏ฝhow-to-get-help
You are presently not permitted to use voice chat (it's easy enough to get past), keeps the server happy our ears blood free. The gate is great.
Write down the problem carefully here in text chat.
how urgent can it be?
It's a myth
The most difficult thing to get people new to coding to do to get help is to be very careful in their formulation of the question, otherwise they tend to say things like "I have a problem with blah" where blah is some thing, but they don't really say what they want to accomplish, how to reproduce the problem, various ideas they've already tried, etc...
this still sounds like quick switching between tasks
ok, so basically I'm on search for the most efficient pedagogy to teach kids how to code.
and i was looking to have some conversations over that topic
teach them they need to sleep
teach them they need to take breaks
cheat codes for programming efficiency
our CTO classifies multitasking as an anti-pattern/scheduling failure if we have >1 specific non-backlog business task worked on in a day
(and an absolute disaster, if more than three)
pick something to do, get it done, do next thing
I might have a slow brain
Which is why multitasking is a myth
context switching is seemingly where the cost comes from
(I haven't read what that article says on that)
The point really is we don't multitask
we pause a task and do a different one
then go back
And ultimately, it slows us down
hence I said multitasking is a myth
Shit, rotate your right hand clockwise and your right foot counter clockwise
good luck ๐
swing? IDK the word
rotate ain't right hte more I think about it
brain does process certain types of information and does some thinking in parallel;
but, yeah, anything, which directly hits the conscience/speech processing, needs to get linearised seems like
can surpass that limit with โจlobotomyโจ
and other forms of brain damage
turn?
I don't think I'm capable of doing the second one consistently even without the first one messing with it
lmao
i am within 10 miles of us-east-1, should i pay my respects?
Swing em both the same way, should be easy enough
then swap one, the other should immediately follow
the problem is that it can't even do that
I can do the hand part only
Swing your arm counterclockwise while twirling your finger clockwise
or swing your arm,then try to twirl the finger
similarly, can do them in the same direction, but try to mix it up
and brain says no thankws
@rugged root I have a question, im working on a search engine, and I need a web crawler that listens to robot.txt and indexes pages and then I need to develop a somewhat basic ranking system
how does one achive this
hard relative to arm + arm is doable, but that is from keeping the end of the hand at a fixed point
ah, no
it's same direction then too
hmm
difficult geometry
Yea, twirl em both, then switch the finger direction and watch the arm stop
it's so strange
like a fatal error in a program, it just crashes
he is driving a car, does not read the chat
meep morp
okay I can technically do right arm clockwise + index finger of right hand counter-clockwise but the arm rotation needs to be quite slow
notn't
HI