#voice-chat-text-0
1 messages · Page 290 of 1
open-source alternative to gitbook
(gitbook used to be open-source but not anymore, afaik)
we do use 3rd party doc viewers that would support this most likely.
Rust's designed specifically to be reliable in terms of upgrades through time too
i've had the rust book sat next to me for months, should probably crack it open some time
with the language getting into the niche of C programs that live for decades without modifications and still just work
@vocal basin Just a simple eval() function solved that problem btw, I just didn't know that.
Why?
arbitrary code execution
eh
I forgot what ast thing was called
!d ast.literal_eval
ast.literal_eval(node_or_string)```
Evaluate an expression node or a string containing only a Python literal or container display. The string or node provided may only consist of the following Python literal structures: strings, bytes, numbers, tuples, lists, dicts, sets, booleans, `None` and `Ellipsis`.
This can be used for evaluating strings containing Python values without the need to parse the values oneself. It is not capable of evaluating arbitrarily complex expressions, for example involving operators or indexing.
You got a physical one?
use this instead of eval
yep, not a fan of reading for too long on a big screen
I also have seen this but what is the difference?
Fair. What version of Rust does it cover?
!e
eval("print(5)")
@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.
5
!e
import ast
ast.literal_eval("print(5)")
@vocal basin :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | ast.literal_eval("print(5)")
004 | File "/lang/python/default/lib/python3.12/ast.py", line 112, in literal_eval
005 | return _convert(node_or_string)
006 | ^^^^^^^^^^^^^^^^^^^^^^^^
007 | File "/lang/python/default/lib/python3.12/ast.py", line 111, in _convert
008 | return _convert_signed_num(node)
009 | ^^^^^^^^^^^^^^^^^^^^^^^^^
010 | File "/lang/python/default/lib/python3.12/ast.py", line 85, in _convert_signed_num
011 | return _convert_num(node)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/GPUIFOKX2KM5P2GTF5AU6JCGR4
Looks fine
!e
import ast
ast.literal_eval("5")
@near smelt We're here.
@vocal basin :warning: Your 3.12 eval job has completed with return code 0.
[No output]
I'm just back to being Mutelock since my co-worker is back here
it's not, because it allows executing arbitrary code
What is an arbitrary code?
Yeah normally I'm talking everyone's ears off but yeah
Also what do you define as a problem?
eval("steal_passwords()")
^ probably a problem
hey
@near smelt The PyDis Podcast
Where who the fuck knows what we're going to talk about
Oh I'm just saying VC
It can be.... interesting here
I actually still don't get the difference
I got a lisp parsed in your favourite language Hemlock https://github.com/jbutcher5/haskell-lisp
ast.literal_eval only allows data
True dat
Nah, not like that
I just don't like being rude and talking when they're here
eval("steal_passwords()") # calls steal_passwords()
ast.literal_eval("steal_passwords()") # raises an exception
i'm guessing the method only allows literals not functions
Oh, so only the difference is this ast.literal_eval doesn't allow you to parse functions as strings. Is it like that?
Okay that's actually really cool KJ
the parser is so beautiful, I feel like I have reached monad enlightenment
how big are your monads?
JavaScript is Lisp
Okay, fair enough. But not a big deal for my local n self-beneficial project
@terse needle Okay that's actually really elegant looking
Props
But ah
It's unpure, sooooooooooooooo
Have to take marks off for that
it's a bitch to read but at least it looks nice
Eh not that bad to read
I might just be getting too used to it, though
@urban abyss Your typin's coming through
I will end you
IO is kind of impure but we just consider that the IO monad changes the state of the world itself
keychron q1
That's a scary thought... I don't want my life to be controlled by a Haskell program
One way of viewing the IO monad is to consider IO a as a computation which provides a value of type a while changing the state of the world by doing input and output. Obviously, you cannot literally set the state of the world; it is hidden from you, as the IO functor is abstract (that is, you cannot dig into it to see the underlying values, a situation unlike what we have seen in the case of Maybe).
https://en.wikibooks.org/wiki/Haskell/Understanding_monads/IO
@whole bear Space ships?
phase shifts?
And here I present, my phase shift space ship
Phase shifts can be tough! Use your period formula (T = 2pi / b ) and think about what point was the "original" y-intercept. Feel free to try this with desmos.
Oh speaking of space ships...
yeah it's cool, I use it
spaceship operator
Microsoft 2FA handling
@upper basin That's the one I was more familiar with
When it shifts between the different states of matter based on pressure and temp
Makes sense
That's anything
New terminology always trips stuff up
Whelp, my curiosity is going into stupid stuff again
Looking to see what shells work on windows
Like PowerShell does obviously
But curious about other ones
Things like Fish or bash, etc.
Yep
It's great
It's my goto on Linux
A smart and user-friendly command line shell
Yeah same actually
Oh dear god, I just realized what font they used on the site
Magnificent bastards
Comic Sans
But yeah, Fish is my fave
I probably won't replace powershell because I also love it
But I'm just curious now
Yeah, most of what I'm seeing is "Well you'd be using those in WSL, Cygwin, or MSYS2"
(not back yet, lots of folks asking me things at work)
😦 i need to make flatbread n i'm out of dough
real actual dough
That's unfortunate
Hey I found something that might interest you the other day. Apparently reddit was originally written in Common Lisp and the source is available on github: https://github.com/reddit-archive/reddit1.0/tree/master
This is awesome, I would like to get my feet wet with CL but I find the tooling and package managers awfully confusing
like CIDER just fucking works for me
It is tasty
SLY is so tempermental
bitter > all
I just like things that taste good. I want to enjoy my drink as opposed to have to acquire a taste for it
yk I never knew what a bitter was until now, I am right in thinking copper ale is a bitter
acquiring a taste for something is awesome though, imagine overcoming something that tastes like ass through sheel will
you drink tonic water by itself don't you or is that someone else, I'd call that an aquired taste
Fair point, you and I are strange in that regard
But I didn't even really acquire it, I always liked it
I drink tonic water by itself... it's an aquired taste
But I also love gin and tonics
it's taking me a while to acquire it
olives is one i'm overcoming
immediately acquired taste
so do i
HA
try black olives, they're less strong
i think i am 😄 putting in food is kinda cheating i guess ]
If it's the only pizza there, I'll eat it
Not huge on tuna
olives on pizza are so good
what's your opinion on capers @rugged root
i have friends that have cucumber on their pizza
Can't remember what those are
the fuck
@still herald Sup
what the fuck
ikr
@upper basin Wrong person
ex friends
I've only really recently started enjoying bitter foods. I could never understand how my friend could enjoy drinking tonic water when I was younger 😄
I don't know if I've ever tried it, actually
amazing seeing "access denied" when trying to read an article starting with "why you can't"
I think it's something you like more when you're older
just like you stop liking very sweet things like white milk chocolate
Yeah I think you get less sensitive to bitterness as you age.
when pure quinine sweets
(I'm trying to figure out how hard it is to buy raw olives)
Which I guess makes sense evolutionarily, because as you get older you can rely more on experience to decide what's safe to eat 🤔
they're quite disgusting raw
I really don't recommend it
could never get into dark chocolate though, I'm not sure if people who like it actually like it or are masochists
I speak from personal experience
now I want to buy them even more
90% is ok
break off a piece and put it in your mouth, then sip hot tea to slowly melt it
in before "don't put it in your nose"
you know youre supposed to eat it right
ha
ugh
gottem
don't try to just chomp it though, then it's unbearably bitter
elderflower is gross also
as for canned ones, I guess I just ate them often enough as a kid, so I don't really get the distaste for them
nah its fine
around 98~99% is where the real masochism starts
Explore the top jobs in data analysis with these ten careers. Discover the skills you’ll need to get started, plus the salaries and career prospects for these analytics careers.
do people eat the 99% shit?? that's for putting in cakes and chilli imo
Oh the tree bark?
How can I have permission to share my screen?
Just have to ask. At first, it's on an as needed basis
Then as we get more comfortable with folks we'll give them a 3 week probationary period where they have the perm for that amount of time. After that, if they've shown to be responsible, they'll get perma
same amount of nausea for way less calories -- what a deal
lol
@still herald It takes practice
Writing it out, and by that I mean on paper, can sometimes help
Actually sketching out the process and what all you have to deal with
That might just be me, though
100 percent.
Pretty much the defacto, yeah
@still herald You're learning, you're growing. And everyone is always still learning
There's always going to be things you don't know
I'm finding out new crap daily
Always, that's part of the fun.
It's like an unlimited game.
You can grind achievements until the end.
opinions on my doctor script interface? readable enough?
(.venv) root@960b00c9c633:/repo# ./repo-doctor
[✓] Developer setup
[✓] Pip PyPI config
[✓] Artifactory: connected and authenticated
[✓] Build system: installed
[✓] Supported platform: ubuntu x86_64
[✓] ubuntu version: 22.04
[✓] Build system version: 2.17.0
[✓] Python on PATH: python3 python3.9 python3.10
↳ python3: /repo/.venv/bin/python3 (3.9.18)
↳ python3.9: /repo/.venv/bin/python3.9 (3.9.18)
↳ python3.10: /usr/bin/python3.10 (3.10.12)
↳ python3.11: /usr/bin/homebrew/python3.11 (3.11.18)
[✓] Python (Linux): 3.10 (default) 3.9
[✓] Build system PyPI config
[✓] private_py_bindings: Found 898 available versions via priv PyPI. Latest: 129.0.0rc1, Latest release: 123.10.0
[✓] .netrc config
[x] .env
↳ Cannot find file '.env' - this may cause issues with Python imports in VSCode and Jupyter Notebooks
Generate the .env file by running: ./build-support/generate_dotenv.sh
[x] Pyenv: not installed (optional)
↳ Pyenv is not installed. Install it by following: https://docs.atlassian.net/l/cp/z023F4D9f1"
Finished! All requested checks have been run.
I like it. Do you have those colored?
That'd help with clarity
Even if it's just making the checks green and the x's red
color is WIP 😎
oh that's nice
ty
private_py_bindings: Found 898 available versions via priv PyPI. Latest: 129.0.0rc1, Latest release: 123.10.0
Does latest mean latest on the system?
no it doesn't but our release process is borked at the mo, so ignore that 😆
I CLEAN data, don't mess with me!!
Was it more just about the general layout?
when i joined this place they spent so much time fixing environmental issues, so I just wrote checks for everything and automated the fixes or pointed to relevant fix in docs
aye just general layout and readability
Right right
now we're finally getting to the point of supporting a strict minimal set of environments so this ideally won't be needed
but it makes deployment testing easy
Gotta start somewhere
i had a really funny moment in the slack channel for the build system i used where somebody else mentioned they had to write an almost identical check script, so we shared with eachother 😆
Niiiiiice
both too polite
More like annoying highschool sweethearts.
"No you hang up first!"
"No you hang up" "No YOU hang up" "No YOU hang up"
HEHEHEEHE
Great minds
Think alike
sentences
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
i love codiene
And it loves you
were you trying to spell "cocaine"?
Not in this case, no
Codeine is an opioid pain reliever used to treat mild to moderately severe pain.
codiene 🫶
It was meant to be a dumb pun
cocaine🫶
@whole bear Check out the #voice-verification channel
That'll tell you what you need to know about the voice gate
@stark river We're getting static from your mic
every year yelp releases its 25GB dataset
My brain is breaking this into SQL tables, and I'm trying to figure out if that's way overkill
no need. just cast to pandas df
Fair point
had you use emailjs?
use ctrl + f and select Use regular expression and then use this:
"""(.|\n)*?"""
its a javascript library use to send emails
!d collections.Counter
class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter) class is similar to bags or multisets in other languages.
Elements are counted from an *iterable* or initialized from another *mapping* (or counter):
```py
>>> c = Counter() # a new, empty counter
>>> c = Counter('gallahad') # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2}) # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8) # a new counter from keyword args
My Life as a Software Engineer/Computer Science Student 🖥️
Hey everyone! Welcome back to my channel. In this video, I'm taking you behind the scenes of my life as a software engineer and computer science student. From late-night coding sessions to the thrill of solving complex algorithms, I'll share the highs, the lows, and everything in betwee...
don't use it
why?
I'd never even heard of it
same reasons why smtpjs is unsafe
use Nodemailer for emails
i use smtplib library to send mail but it not work
ok i try
basically: any email sending from web is architecturally impossible
then any other option?
you must not do that from the browser
as for smptlib:
are you sending via gmail?
or what service?
whatever you're using likely doesn't allow password authentication
you'll need API keys
yes i am sending using gmail
in email js i am reciving link from server but the data is not get avavible to email
I don't remember if gmail still supports sending email via smtp
can't find the article they used to have on it
i just want to send the tweet link on gmail
to yourself or to users?
yeah, that's a subscription service -- not trivial to implement
it may be better to rely on an existing service that specialises on mass-sending
mass-sending being over 10
I'm gonna hop off, I'll see ya Monday Hemlock! I'll try not do die from missing you too much, I understand it's not allowed.
@still herald Life is more fulfilling when you've earned it for yourself
also you already have a mechanism for subscriptions: twitter
Hi everyone
When things are just handed to you, then nothing has flavor
for now it's probably a reasonable assumptions that users will follow there
twitter provides free 1500 perm
works for hunter biden.. and jared trump
is jared the son or the son in law?
Jared's the son in law
free gmail daily limit is 100, unless you want to expose all user emails to all other users
@frozen owl Sup
(well, it's 100 anyway, but if you send one email per user you'll run out of limits early)
but it will work?
and rightful victor
tuples 🫶
how many emails per day do you expect to send?
(for the python discord april fools event)
10-15 only coz i just want to submit the project in college
correction: it's not 100, I have no idea what it is, I misread
i will later think to deploy it
500 allegedly
Are mail gun and mail chimp still good options?
like per month or only 500
daily
its ok
@upper basin Converting it into a dataframe will give more control
But yeah.. maybe we should go simple first
yeah, originally she imported the data on a dataframe if i understand correctly from yesterday
(things might have changed since but yeah)
so it's easier to do it directly on a df
Fo sho
i personally dont like pandas but i think i know how to use it
thank my ml courses lol
it was so tempting to skip over those
but to this day idk how to use matplotlib properly
What's wrong with Pandas?
better questions is why deque isn't Deque
numpy is mid
Because it's a function like int() and str() I thought
i prefer to use GUI sometimes for data stuff, that's all
Right but what do you think those use under the hood
true
@willow light Sup
i used it before
also, for my use case, polars was too slow
i know, it's supposed to be fast
but still
trying to figure out how to take some of the items in my resume and rewrite it in the type of evasive doublespeak neurotypicals seem to like
which has 500 sending limit gmail? or email js?
use chadgpt
don't send mail from web browser -- it never ends well
thank you
then what's the better option
builtins are lowercase
itertools classes are lowercase because they try to appear as generator functions
deque and others just try to appear similar to builtins I think
!d smtplib
Source code: Lib/smtplib.py
The smtplib module defines an SMTP client session object that can be used to send mail to any internet machine with an SMTP or ESMTP listener daemon. For details of SMTP and ESMTP operation, consult RFC 821 (Simple Mail Transfer Protocol) and RFC 1869 (SMTP Service Extensions).
Availability: not Emscripten, not WASI.
This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly platforms for more information.
or whatever you tried to use
better debug that
if there are login errors -- that's a separate question
@upper basin Later bud
i tried this module but it didn't work
what do you mean by "it didn't work?"
@still herald That he what?
hello
Maybe it's just what he does?
Yo
@still herald I'm here, but I just can't talk outloud
Remember the patience thing?
Maybe that's just what he does to keep his DMs clean?
I assure you he didn't do that out of rudeness
He's not that kind of person
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8 https://support.google.com/mail/?p=BadCredentials i16-20020aa78b50000000b006e6795932a4sm1180705pfd.80 - gsmtp')
Sorry not sorry
username/password normally don't work
you need to either set up API keys or enable password auth
Because it's a dick thing to send
don't you get a message from the bot explaining why it's blocked?
People would reply to people here with that only
I was sending it as an example, but okay
But I guess I'm not allowed to explain Slack etiquette
Just months worth of on-call trauma hitting all at once
There there
This was a serious question - I thought the bot sends a DM when it deletes a message, explaining why it did so - am I wrong about that?
It does
I block bots on sight
Human only in my DMs
O....kay?
Side effect of being spammed with crypto bots a few years ago
Sure, but the Python bot isn't that
flask_mail is good?
if smtplib doesn't work, that won't work either
the problem isn't with smtplib
it's with how you try to login
Okay I unblocked the bot, let's try this again
well, it's pretty unwise to block @wise cargo and @rapid crown. We use those bots to reach out to users about problematic behaviors before escalating to mutes or bans. If people don't give the moderation team a way to privately reach out to them, the first they find out about a problem might be a mute or a ban.
"You're using a blocked domain"
Okay, that tells me nothing. Now draw the rest of the fucking owl.
Clari...
mm, that's not a great explanation indeed...
True
flask_mail.py line 18
import smtplib```
morse code has plenty of hassle during carrington events
The hell's a carrington event
ever hear about the people who got electrocuted by the telegraph terminals during the last one?
was that the solar flare thing?
imagine a quarter of the outermost layer of the sun suddenly blasting off towards the earth and hitting all at once
@still herald I mean, yes. Ideally we don't treat other people poorly
@still herald Get over that prejudice about age. There's plenty of people younger here that know way more
Trust me
Soooo trust me
THAT REMINDS ME
why i cant talk?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
See the #voice-verification channel, that'll tell you what you need to know about the voice gate
thx
@frozen owl You need patience too
oh cool no link preview
You're both so high strung, jesus
whats dat
High strung?
You think they're high strung? I'm off my meds today lol
HAHAHAHAHHAHAHA i slept at 2 last night
You're just speaking quietly
im 100% in US timezones fr
@still herald We could hear you
but speaking about things relating to age: https://www.boston.com/news/local-news/2024/04/02/new-hampshire-man-to-be-awarded-more-than-134k-in-age-discrimination-lawsuit-against-market-basket/
Patience
Ah that one worked
mailchimp
interestingly, in the US, discriminating based on someone being too old is illegal, but discriminating based on someone being too young is not
the US has 4 tz.. .. and the pst is the best one
"it's for grown ups sorry"
probs the new york one
4 hours behind
however, discriminating based on an invisible disabilty, while illegal, is still almost impossible to prove.
"he's just lazy, he doesn't want to come into the office" yes because the office is sensory hell so I cannot get anything done
Do you guys know each other?
Only through here
No one is replying to me
Oh
Ya
winter i can hear you but i wasn't responding because i had no responses
Okie
Just have patience, people tend to talk over or don't respond if they don't have much to say
We're not slighting you
Guyz you all are so good in coding
Eh. I have room for improvement
Not me
@stark river Water
Yooooooo
water is not a sauce
Ok I'll join
It is if you BELIEVE it is
Mic drop @willow light
HA
No you're good too you just have to believe it
Which one
Water
Yeah like cooking the meat and using its own juice to make the sauce with cream or stock or wine
@willow light
they added sugar to water too
Can i join
couldn't stand anything without sugar
balsamic vinegar has sugar in it
Yeah
anything derived from plants has some level of sugar
I prefer for people to learn than get infracted
I want to encourage people to have better behavior.
You're gonna be a great father
I'm fixed, so no kids for me
Wym by fixed?
fixed
ConnectionRefusedError: [Errno 61] Connection refused
I need to get fixed tbh
I couldn't justify having a kid that would have my genes with all the mental health stuff I have going on. I couldn't put a kid through that
Vasectomy
Also, having kids in a world like this is probably child abuse by default
Well I want to have kids for sure
No man
I love kids
Kids are annoying. I would love a quiet flight just once in my life.
Mine wasn't out of a lack of love, just couldn't mentally justify it
i would get fixed... but i'm so anti surgery
It's an office visit
When you would have wife, you'll understand how to love a kid
it's surgery
I would be anti-surgery, but that ship sailed a long time ago
I am married
Omg
Fair enough
Not doubting that
I would much prefer being a cool uncle than risk being a bad father.
sweet child o mine
There are kids that need to be adopted, that don't have homes, that need someone to care for them
imagine having enemies when you are popcat
I don't see a purpose of having a kid of my own genes
Exactly
@still herald It is when there's a possibilty of passing on my crippling depression, anxeity, etc. to a kid
@willow light Lobster hands?
Defeated by rubber bands
Oh for sure
They're crazy strong bands
Potentially
Pinch
@near smelt Sup
Well I think everyone is capable of loving someone doesn't matter if it's your own child or an adopted one
Sure, no argument there
But I was simply saying why I didn't want to have my own kid
A miniature version of me is not desirable
popcat > poopcat?
Adopting is better, there are people who need help.
Yep
apparently hong kong is STILL number 1 for popcat
I would have kids if there were no people needing help, and that includes me.
@still herald We're all different with different desires
I respect your want for kids, I just don't want that
thailand is creeping closer
want people to get kids => get governments to make life easier for kids and parents not at expense of everyone else
jeez i think i need a VPN to help
Ok i'll type then
In the so-called third world countries there is a much stronger sense of community than in America, where we worship isolation.
So the needs for supporting a family are less there.
You guys are my family and kids
This is one of the few cases where organic is cheaper.
If I can help people learn and grow, then that's what I care about
is popcat part of the fam
ie me
am popcat
I am a people pleaser, I cannot raise a child with my current problems.
Yes ALKK
hence, not a crow
What about a raven?
@whole bear Still way more than I make
Goodnight guys
My battery is about to die
Catch you later
gn
I'll sleep
RIP Battery
I think she said there was a power outage
from the earthquake or the noreaster?
No idea
Hemlock did you feel the quake this morning?
When
unhot take: company issued macbook pros are ssh machines
I don't think I've ever felt one here
theres one is taiwan
@near smelt That's why I help folks here
I meant the one this morning in New Jersey
so yeah there must be a second earthquake elsewhere in teh world
can you ever feel a quake in the midwest?
I'm hardly amazing, I help because it's fun
for every constructive earthquake there is a destructive earthquake
yes, oklahoma gets them on a regular basis due to fracking
geography moment
true
so much geography
where i live we get earthquakes due to postglacial rebound
i like how i take social sciences rn but by september it's gonna be double maths cs and physics ready for uni
sup
@near smelt your mic has pretty bad static
I think he has me muted given how many times he talked over me midsentence
either that or my mic broke
We could hear you
interesting
Word
it shouldnt be allowed to have ppl muted and talk over them
either the person should be banned from chat
I take sociology and geography lol
Yeah I'm starting to think that
or you should have to listen to them
This is getting annoying
@stark river Its disruptive when people have others muted
It causes a lot of people getting talked over and just general noise
i have my reasons for muting people
I just don't like being talked over midsentence, and D2S has been doing that since he joined the call.
I get that, but then turn their volume low
So you at least know when they're talking to prevent the cross talk
yeah but you don't talk that much in VC
I only have one person muted on here but that's because he makes a point out of specifically insulting me in particular.
yeah
and never shows up on vc
yes that is a block
i dont remember why
Please can you kindly unblock lol (and if you want, accept my friend request pls)
@near smelt I know you have your reasons, but can you unmute Clari? You can turn him down to zero on your end, but it at least lets you know when he's talking so that we don't have cross talk issues
hmm thats probably why
no i'm heading to vc1, i'm done
Ah sorry
no Anokhi's wrong
@willow light Please come back, my apologies. I don't know why I have you muted
Yay :D
@near smelt typing speed?
If it causes cross talk, then it's a problem.
It's disruptive
and it is very annoying to the person who keeps getting interrupted and ignored. i get that enough from my former coworkers.
You may not agree about having to have someone unmuted, but you have to at least agree that it almost always causes confusion and disruption
@willow light It's been rectified
It was an accident, I am sorry
All good
I genuinely don't know why u were muted
like
want to talk for a long time and not just a short response => unmute everyone, talk, mute back;
even if you really don't like them and want to interrupt them, still remember: you're being talked over too just like them
i aslo stop playing
why
don't have much time also the new updates make it more bore like i was playing from 5-6 years
Then turn their volume down low so you can at least see their light
Like I'm not asking people to listen to them, just know when the other person is speaking at the very least
Again I get the frustration
ok we could give it a try... although ysk the green lights up even when ppl are muted
It doesn't show the green circle on desktop
not on the phone
That's bizarre
must be browser only
My damn desk phone is rebooting and it's throwing my internet connection out of wack
Stupid phone pass-thru
Yeah if this phone reboots then it takes my net down for a bit
@near smelt I don't care so long as it's not like every other word
Which
Which position?
Oh I have no idea
I'm not affiliated with them
Or rather the server isn't
Nope, we're independant
We've done stuff with them, mind you
That pays for itself
I'll be back in a bit
@dry lake
Anyone know how to make libs?
what particularly about making libs?
libraries are really just code that you can import, not particularly different from "not libs" code
Perhaps the greatest hurdle is knowing where to place the __init__.py files
everywhere
Even so, what does one write inside of them.. that is the very next question
you don't have to write anything
they just serve as markers for a package, depending on what you're doing the library can just involve importing whichever file you want
Interesting
hey sazk
"I can finally sign all the bad code so I won't be able to say it wasn't me who wrote it"
@lavish rover well, depends on the region
"when are you not working on a ray tracer?"
@shrewd ibex have you looked into ZeroMQ yet? quite useful experience for understanding just how powerful socket APIs can be
hi
there's also this thing which I've encountered but haven't tried yet:
https://socket.io/
I haven't tried low level socket programming
I did before when I made that chat app
though
wow
@jade badger slightly adjusted version of minesweeper
it's PvP
yeah, it's based on that
but with timers and premoves
and with synchronisation across tabs thanks to this thing:
https://github.com/parrrate/ruchei/blob/main/src/multicast/replay.rs
yeah, 1.5 years later than it got released
before that used whatever chat thing Curse had
it was never used
it was a library for another mod
but we never integrated it
because of packaging/bundling issues
I mostly do non-game stuff
lately was working on infrastructure software
only properly worked on one mod and one game
similar to cloud
I was offered to work on drivers too but I didn't have enough experience with hardware
I don't remember what they exactly needed to integrate and where
(only that it was aarch64 system with some peripheral stuff)
yes
difficulties start when you need to cross-compile it
idk if their ToS allows that
(ed.: vc question about debugging iPhones)
(iOS's)
never worked with iPhones, but likely Apple do have their internal tools
@idle epoch post again in #1035199133436354600
@elder crater 👋
@elder crater #voice-verification Go here to be able to talk by clicking the clicky button.
Them you
Them me?
Thank you *
Can you explain more about this?
Thank you*
it evaluates the input after checking if the datatype is valid
I mean the whole import
I wanna learn stuff
Then I wanna ask anything I see in general
To learn more thing
I'm beginner
do you have a specific question regarding importing? because its very straight forward
The ast
What is ast?
Love this quote, no need to notice me:
"If you're not willing to learn, no one can help you. If you're determined to learn, no one can stop you."
- Zig Ziglar
@somber heath hello
@idle epoch I'm going to go fiddle with a thing.
Produkte
Kategorien,Motive,X,XL
Sights,Brandenburger Tor,Rechteckig,Höhe,Breite,Höhe,Breite
Statue of Liberty,studs,72,48,96,64
Big Ben,cm,57,6,38,4,76,8,51,2
Sydney Opera House,Steinezahl,3456,6144
Eiffel Tower,Platten
Golden Gate Bridge,Quadratisch,Höhe,Breite,Höhe,Breite
Skylinies,New York Ci...
@idle epoch did you fix the error?
What language is this btw
@somber heath my friend likes hearing u talk, chat w her 
I'm currently throwing gunk at walls to see what sticks.
Programming-wise.
girl interested in Opal's voice
Opal: "im throwing shit at the wall do u think itll stick?"
Did not mean to reply here
not a C++ programmer?
why do I have to send 50 texts in order to speak lol
don't really want to spam so am I just here to observe lol
ah right that makes sense
I joined the server in 2021 lol
still haven't said anything here
right right
wait can I ask a question
about code
so like I just started learning python and am trying to understand some projects that other people have made
this is like the beginning segmant of a texas hold em game
card_values = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
suits = ["clubs", "diamonds", "hearts", "spades"]
face_cards = {
"J": 11,
"Q": 12,
"K": 13,
"A": 14,
11: "J",
12: "Q",
13: "K",
14: "A"
}
class Card:
def init(self, value, suit):
self.value = value
self.suit = suit
def generate_cards():
cards = []
for value in card_values:
for suit in suits:
if value in face_cards:
_card = Card(face_cards[value], suit)
else:
_card = Card(value, suit)
cards.append(_card)
return cards
cards = generate_cards()
I don't really know how to share this code other than just ctrl c and v sry
main question: is generate_cards() acting as a list or?
so cards is the list?
ah okok
ah that makes so much more sense
thx
!pastebin
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
ah yes hello my mute brother
I'm not mute
I'm talking about Sandy
wait this
yes
hahaha
hello Sandy
hello
we must make conversation
anyone wanna help me with some code
so we can actually talk
Sure
k so should i send it to you privat or here
!pastebin
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
I am sending this message to send a message
If it's small you can just copy paste
Don't do this they'll get on your ass for that lmao
100 is a lot right
XD I won't lol
100 lines is a lot yes
k
You can also just send the block u need help with
so it dosent work i cant just copy it
🤷
Forgot to mention (had to google this) the _ in _card is a naming convention. It pretty much tells you that you’ll use this internally in the function.
@lilac herald ^
@vague steeple 👋
hello everyone
can ı ask a question about a module
fbprophet
no not facebook
it s a module can run with python
to estimate future price prediction of stocks currencies
Allrighty thank you so much
@rugged ember 👋
Want more natural history and wildlife videos? Visit the official BBC Earth channel: http://bit.ly/BBCEarthWW
BBC Earth
The BBC Earth YouTube channel is home to over 50 years-worth of the best animal videos from the BBC archive. With three new videos released every week there’s something for all nature loves from astounding animal behaviour to ...
!e ```py
def func(a, b):
b = (b - .5) % 1
return .5 - abs(a - b)
print(*[func(v / 10, 1) for v in range(11)])```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
0.0 0.09999999999999998 0.2 0.3 0.4 0.5 0.4 0.30000000000000004 0.19999999999999996 0.09999999999999998 0.0
@idle epoch
This is what I was tinkering with
Shortest distance between two points around a circle, think 0-1 like 0-360
The furthest away two points can be from each other is halfway, .5, around the circle.
ah got it!
from django.shortcuts import render
from django.views.generic import TemplateView
# Create your views here.
class HomePageView(TemplateView):
template_name = 'home.html'
class DashboardPageView(TemplateView):
template_name = 'dashboard.html'
def tile_one():
return "response'
/ul>
<div class="nav-item">
<a class="nav-link dropdown-toggle" href="#" id="userMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="color: #ff8f00">
{{ user.username }}
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userMenu">
<a class="dropdown-item" href="{% url 'password_reset'%}">Change password</a>
<div class="dropdown-divider"></div>
<form method="post" action="{% url 'logout' %}">
{% csrf_token %}
<button class="btn btn-link" type="submit" style="color: #ff8f00">Log Out</button>
</form>
</div>
</div>
</ul>
class HomePageView(TemplateView):
template_name = "home.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["latest_articles"] = Article.objects.all()[:5]
return context
def some_view():
return render("template_name", context = {'a' : 1,})
Django: Hello World
@loud sierra 👋
{{latest_articles[0].name}}
@sly timber 👋
hey
Welcome to a day in the life of an 18-year-old full-stack developer, UK edition! Join me on this exhilarating journey as I navigate through the highs and lows of being a young coder in the bustling tech scene of the United Kingdom. From sunrise to sunset, witness the behind-the-scenes of my life as I tackle lines of code, attend meetings, collab...
where are you from
@mild quartz my friend @graceful kelp ,loves ur voice alot 
Tf?
Romanze?
sus
thats what i saying
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
❓
builtins internals
methods are functions.. functions that are defined inside classes are called methods
no i dont understand
for an absolute value just multiply the number by -1
you are passing the value via self
i'm not sure what you are talking about
internals work just like normal methods
__something__ is just a convention
if you are in vscode you can right click and go to definition
if you want to see the source code of __init__ you can also see it on the net.. just search for the right term.. e.g. __init__ source code python
anyone know how i can put my python kivy app frome pc to phone so i can use it on my phone
glhf
hi
hello
@mint karma 👋
ello
I am new to programming (I only ever did mini roblox stuff like 10 years ago) and I thought joining this would be good
I don't have a python interpreter in pycharm, how do I do thatttttttt sorry if I am not meant to ask for help here
No no, you're good. So, you need to first download and install python itself.
Then you can set it up in pycharm.
Alright I did I assume I just need to link it now, I appreciate it
Just the first vid I am watching didnt cover that
Thank you
Before:py def foo(): if this: return print("Hello") After: ```py
def bar():
if this:
return
def foo():
bar()
print("Hello")
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
if inside(445,125,495,175,mousex,mousey) and tools[0] != 0:
...
if inside(445,185,495,235,mousex,mousey) and tools[1] != 0:
...
some one pleas epl me with this code if your willing to help pleas dm me
Kindly ask your question here.
We'll help if we can.
Hola Guys!
@upbeat plinth 👋
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
how dose this work
def func(args):
if inside(445,125,495,175,mousex,mousey) and tools[0] != 0: #is pickaxe clicked?
clear_dice_prev()
if tools[0] == 2:
tools[0] = 1
clear_toast()
clear_selection()
return
play_sound_effect(sfx_on,sounds["toolselected"])
if selcolor != 0:
pit = [selcolor if elem==0 else elem for elem in pit]
selcolor = 0
canplace = False
draw_pit()
c.itemconfig(selected,image=tool_images["pickaxe"])
tools = [1 if elem==2 else elem for elem in tools]
tools[0] = 2
toast("The Pickaxe clears the square you click on.")
return
how do i seend code like this
func(args)
l = [] l[1] = "h"
you surround your code with ```
```py
Enter code here
```
gotta use them backticks, normally above tab
The py isn't required, but enables syntax hylighting for python
"explicit is better than implicit"
List comprehensions have entered the chat.
👍
Whatcha workin' on?
C++
Omg. Did you know https://pythontutor.com does C++?
is that your site?
so you get a commission for it
No way, they're ad supported and I have zilch<nil connections to them
@hallow warren Can I use a key from another dictionary to represent a value inside a list which is same as the value inside the dictionary where is the key from?
[{
foo: "val",
bar: "value",
}]
yes you can lookup values from a dict and append it to list
I was responsible for it being listed on https://www.pythondiscord.com/resources/?payment-tiers=free&difficulty=beginner&search=tutor which is my only connection
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
aDict = [{
'foo': 1,
'bar': "value",
}]
aList = ['a', 'b', 'value']
print(aList[1])
@hallow warren
aList.append(aDict[bar])
or was it aDict['bar'] idk i use js
!e
aDict = [{
foo: 1,
bar: "value",
}]
aList = ['a', 'b', 'value']
print(aList[1])
@stark river :x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | foo: 1,
004 | ^^^
005 | NameError: name 'foo' is not defined
"
!e
aDict = [{
'foo': 1,
'bar': "value",
}]
aList = ['a', 'b', 'value']
print(aList[1])
@stark river :white_check_mark: Your 3.12 eval job has completed with return code 0.
b
but these two vars aDict and aList have no connection
For free English pronunciation intelligibility remediation, please try https://talknicer.com
if you want aList to lookup values from aDict
!e
aDict = [{
foo: 1,
bar: "value",
}]
aList = ['a', 'b']
aList.append(aDict['bar'])
print(aList)
smh.. it's a list
Hi Plome and Annimo
hi milien