#ot1-perplexing-regexing
1 messages ยท Page 498 of 1
Kord-extensions
Kord does the protocol, caching, low level stuff
Kord-extensions provides an extensions system, a bunch of utils, a commands framework with rich argument parsing
It's been fun to write honestly
Couldn't really do that in Python, everyone yells at you for not using discord.py
hahaha
are you going to make like a documentation for it so other people can use it
It is fully documented and in production right now
i see
Although I am redoing the docs atm
๐
You can find it at https://kord-extensions.docs.(LANG)discord.com for the time being
That's the old version though, I'm moving from Orchid to dokka and mkdocs
The command parsing stuff is totally different now though
I've been going all in on the idea of "if it compiles, then it probably works"
i see adding it to my bookmarks
the site is pretty cool
f
is the site up
yeah i get teh same
I'll double check, it's on GH pages though
About to hit my desk anyway
oh, it seems discord added a / or something
that'll be it
yeah, see, it put a slash before the bracket
docs work for me
found it
just remove the / before (LANG) and replace (LANG) ofc
anyway, feel free to yell at me on the discord if you need me
or here, ping me, whatever works
I've gotta get back to docs haha
good luck with the server ๐
thanks \o/
hmmm i have pings here
I'm curious about your per hour activity graph @bleak lintel
@solid pollen
Do you... sleep?
...when?
well, this is since August 25th bear in mind
so there are dates in there where I went to bed at a normal hour and woke up at 6 or 7 legitimately
you need more than 4 hours of sleep !!
I get more than 4 hours, don't worry!
sometimes
It's just that the schedule shifts over time
#the-what-is-going-on-in-here-lounge
Vivek
I changed my date and time using sudo date --set="<Date>" but when I reboot it is messed up again
actually you should use timedatectl
not that haha
also i should sleep now
it is 11PM here
goodnight
Gn
@scarlet wind you can search timedatectl in the forums or google. it is ez to understand. goodluck

Is it timedatectl-restorer?
ah no just timedatectl
let me see
it is not there
not in ubuntu?
Manjaro xfce
no type timedatectl in the terminal
Is it timedatectl-restorer?
@scarlet wind where is this though?
i never heard that option before
new things i see
also goodnight
datetimectl cmd worked in terminal thx
@mild abyss banana girl
oh soz
lol
Isnโt it that, but with Joe on top?
And they just call it Shrek for some strange reason?
Is it joe on shrek on mike wazowski?
I would think so
joe shronk?
Yeeees
i cant tell which type of long yes that is. a yeEhhEs??? or a YEEEES?
I don't even know what the first one is so I'll go with the second
Who KNows
.uwu I knows
I knows
XD
You knows?
I need to set the expectations with my boss that he's never going to get more than one new feature a day >.>
He's like "That's really awesome, what about this other feature?"
dies
Welp. That sounds kind of smart
At least I was able to set the expectation that I cannot improve run time without sacrificing performance
That's at least something ยฏ_(ใ)_/ยฏ
a feature a day is a lot
It really is
maybe aim for one a week :^)
Yeah, I was just so surprised when I showed him the completion of a feature weeks ahead of schedule that the first thing he asked about was another new feature
I mean, it's next on my docket, but...
I'm not THAT good
what do you mean, you dont have both done??
It depends on what feature it is @rough sapphire
cries
By the way, did you notice the new server icon?
Oh nice, it's different
Oh, sweet! It looks really cool
Thankss
@eternal wing, they told me 550/mnth with just me on the payments. Wife had to work so I went to see what if anything could happen first.
But they also said it would end up being a 2021 corolla or camry
thats why the payments would be that much
because of me being 5k under on my car
That is pretty high.
Ohhhh, that makes sense for a 2021.
Yeah, I mean, that is what they go for at that price. I exclusively buy pre-owned. I do not consider a jee car really worth it.
But that process is pretty decent for that car.
Crazy mpg on those camries too
yeah, but too thats with my bankruptcy and only my income on the app, not my wifes or her income. And if we had a little for a down payment it would help too he said. They are going to look for me and see what they can get me in for 200-300
I originally asked them about older cars, like the 2012 prius and the camry but they said with the negative equity on our car it would be hard
New topic, the 3060ti specs are looking pretty spicy. Think it would be a good leap from older cards?
You could try to save cash and buy a car outright. Like keep current car and save cash to buy your next car. I guess $3000+ or so.
That's what Dave Ramsey would say lol. Check him out on Youtube
I want to buy samsung mobile phone
Oh you should see mine. I got it for $150 and looks much better/modern than iPhone.
Samsung A20
A20 is older thought
Released April 2019
Now the new releases is A51
Dave Ramsey is great for some debt advice, his investing advice isn't all that great
Whos dave
personal money-management expert
Aha
He is also radio host. He post videos on youtube
Yes i dont need new one i can do usuall staff with my current mobile phone
yea, mobile phones have long hit "good enough point" for most people
Yeah that's what I would do
iPhone 12 has brand new A12X PROCESSOR! Yea, what am I going to do with that? My youtube videos already look fine and I doubt it will make my discord audio sound any better
Make no sense spending 400+ for a phone.
I dont need slow motion and tgat camera
I'm still rocking iPhone7+
Well A20 has great camera and has virtual reality feature thingy on Youtube. I didn't know that when I bought it tho.
for Android devices, you can't go wrong with Pixels
Yeah a20 is fail enough to buy
Python software foundation. A company owns it I guess
Aha
Yesterday, I bought raspbeerpi.com, but I realized I can get in trouble because of trademarks lol
Hmm, it's selling for $6000.
sup
Same
:c
I prefer python lol
Same, I was learning some intermediate concepts to start some projects in Cybersec
oof
They don't make much of a profit to begin with...
He didn't like teslamotors.com lol
Teslaelon
Damn
Just wanted to say but I just bought raspberrypi.ai lol. Idk why there's no parking page tho
your site is nt hosted
it's active. weird
Whatever i buy domains, they are already hosted on namecheap. Maybe smth to do with .ai
Names here are nice
Continuing this convo, how much profit would the average person make from buying and re-selling domains?
How much would the average person make from buying and reselling houses?
It depends on a lot
okay
I donโt have any real knowledge in that specific area though
Thatโs more of a general statement
hello, I finally got my docker setup playing nice with apache and I am happy.
That is all
lol discord rich presence is sometimes stupid to use ngl
is your username halo as in the game, or halo-halo
wait, were you doing docker stuff too? lol
vester said my username is too long so i omitted some letters and changed the spelling
@eternal wing thats not me haha
sudo?
sudo docker ps
if it is not configured to run without sudo. The error message is not clear either
anyway, friendo site is now up properly
it is like me first time using pacman and not using sudo
What's the site?
lmao
so it is https://www.friendo.us/api
so it is still empty i see
to actually get to the useful part
but it is up
the site is far from empty, there just is no front end except for admin and the api playground
I will probably make a landing page with an invite link one of these days
maybe today? who knows
it is just a backend for the bot, so the site does not need any real front end
i see. also... this week... i think i will have a lot of reqs to wreck me
๐
fuck college imma go sleep and procrastinate lololol
if you sleep now, we will be near the same sleep schedule
life > college
college life ใ school life
Yes. Espically >> high school life
Yup
Dang, now I can't imagine 7 hrs a day of school work.
Sorry fell, I avoid youtube like the plague. I hate it lol but thanks for the advice.
Also, does anyone know of they allow loud laughing in Hawaii? Or is it just a low ha
LOL great pun
The enterprise!
starwars > startrek ๐
I like both, but the humor in Startrek is better imo lol
I need to watch more startrek, it is a bit too dry for me most the time though
I'm watching DC's Legends of Tomorrow. Their humors are pretty good.
Ugh closing shift takes forever, waiting on wifey
I can't wait till they make another movie. I really enjoy the current cast
I definitely do. Enough to buy all three instead of sailing the high seas >~>
yarrr, yes. Who even sails anyways hides peg leg
Ya sailing the high seas is bad! I never do it ever. Nope not me. That's why my middle name is straight edge
I have been really enjoying the mandalorian with my disney+ "membership"
I should shut up before I get in trouble lol
down the drain
Ugh, been sitting here 24 minutes waiting for that girl.
LOL, I know that feel
Closing shift are lazy asses x.x
My ex worked at a hair salon for a bit, and they were so lazy there, it took so long for her to get out lol
That's okay, I'm sitting in the parking lot. Music up blasting some Journey, Don't stop believing
It's 46f out tho, kinda chilly lol
lol, listening to metal in parking lots has gotten me some stares before... today even
Ya I normally get stares when I listen to EDM like this lol
those genres make me drive fast lol
Same! It's well one of the reasons I can't have a fast car
im safe at home, so I am questioning if I should drink whiskey
I easily could do 120+ without thinking T.T
my car can get me in a bit of trouble, not too much though
my roommates drank way too much rum once and now they wont touch it.
I am just not a huge fan
@robust briar can confirm
Okay now I got looks. But now Foghat is blaring lol
hell yeah
Oop there she is. Bbs!
drive safe, haha
Even I'm too scared to drive a 2010 sedan car.
you just need to get good lol, why scared?
Too fast lmao. That's why I'm still driving 2002.
I'm sure I can get used to it if I had one.
you should get a mustang
Also one of the reasons why I don't like CVT transmission
Yeah someday
Weird when you cannot feel the gear shifting
yeah, I drive manual haha. Automatics makes me mad
@clever hinge add a microwave death ray LOL
well its a dungeon
Lol. Like the ray in COD zombie
So like simple design?
i mean ig that could work somehow?
yeah
its for a school project i just wasnt coming up with any ideas
What's the melee weapon for?
a dungeon word game I am coding into python
i have an inv system, now i just need to check the weapons for the inv system
Oh I see
I am also going to add a drops function I just want to finish the inv function first
and I need ideas for melee weapons for the word game
Does swords, spears, flails, boomerangs count?
Banana sword
I don't rly have any ideas, but the list from here are really cool asdf
lol I forgot how to do that
Bruh
what a nerd
Sigh.
its not even halloween yet
It's over lol
not sure, i dont have github
Weirdest thing i have ever seen
Do you have it too?
I have no idea what you mean lol. I just went to github.com like normally
click on your profile picture
Top right? It gives me a list of repos, profile, gists, etc.
Otherwise, just a profile settings
click on feature preview
should be a feature to try out there
last time i got the new UI changes i think
wonder what it is this time
Yeah you are right. I clicked on feature preview and enabled container update. The blue dot went away.
Improved container support
ahh cool
i guess it'd be more intuitive if there was a blue dot next to feature preview as well
Yeah lol. Was confusing af
Hey I have one question
my D drive is full of photos and it will take a lot of time to back them up any other thing I can do? to save them
I guess get an external drive or save them to cloud.
Google drive has 15GB free. I think there are better optoins.
It takes a lot of time
Good idea
Oh I remember you from the other day. How did the linux stuff go?
Not good
Win7 ded
But now I am backing up the C drive and D drive and then re install linux manjaro with all the space
Oh I see. What happened to Win7?
very cool
ohhh, you were the one that bought that domain, right?
that actually looks reallyyyyyyyyy good
raspbeerpi?
Thanks! Should I add any more?
Yeah, but cuz of trademarks. It's raspibeer
I own both
hmm tbh i find the placement of the raspberry awkward
Ya. 1 sec
It's done. Looks pretty good with your idea.
Time to come up with the template for my site
Why does adding a . to the end of a full file/folder name breaks it on windows?
Fair enough
what does a microwave death ray sound like
the sound of death
I assume it probably sounds like kpop
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
i just want to share something
if you want ranger image previews to work when youre using fish as the shell, install fish-git in the aur rather than fish
it is still being rolled out slowly
i wonder if it is good or bad, i mean we do have quote
reply looks a lot better
I wonder if embeds will still be shown when replying to a link
hmmm i c i c
how so?
this is a different type of formatting
Certain bots and servers use this to display information
I do as well, in some places, iirc
so if they remove that formatting, I'll rain hell down on discord HQ
our precious uwu command uses this
.uwu dont remove this pls
dont wemove dis pws
see
it is definitely a nice feature
can't you still copy the message contents?
hey that name is..
of fisher ๐
yes
he knows that ๐
yes i remember now, you were asking him for perms to use it
he said its ok as long as you dont pretend to be him
yep
@gleaming citrus I made this one in Procreate on my iPad. Quite fun to just play around with
eyyy i have that program too!
Aah, nice
Procreate is great
it is
It's very... pro to create with
hmm, teach a man to fish and he will ping 99000 people
๐
@edgy crest Yes, we had a slight issue with the help channels because of connections errors to Discord
ah i see
ok and?
nothing it's just a meme
Off-topic discussion. Please keep it clean and respect ongoing conversations. See https://pythondiscord.com/pages/resources/guides/off-topic-etiquette/
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.
off topic is not a meme dump
@green loom
I don't purport for either of my methods to be optimum here. But it seems deleting every nth character may be a whole order of magnitude faster than keeping the rest
setup = """\
def drop_nth_chars(thestr, n=4):
l = list(thestr)
del l[n-1::n]
return ''.join(l)
def keep_nth_chars(thestr, n=4):
newstr = []
for i, c in enumerate(thestr, 1):
if i % n != 0:
newstr.append(c)
return ''.join(newstr)
"""
>>> timeit.timeit("drop_nth_chars('HelloWorld'*100)", setup=setup, number=10000)
0.13867702799996096
>>> timeit.timeit("keep_nth_chars('HelloWorld'*100)", setup=setup, number=10000)
1.0399814239999614
The first solution will inevitably be faster regardless in most cases
Just because of how it's executed
@marsh hatch
The second function you're forcing it to iterate in python byte code, instead of just calling native functions that will execute in C
Yeah. I can't say I'm exactly surprised
Similar to how sum(myList) will be much faster than writing your own implementation of sum:
total = 0
for x in myList:
total += x
I just don't know if either of those solutions are actually "good"
Haven't had a good look at what you're trying to achieve so can't really comment any further than I have
@green saffron this is not the server to post random memes in.
Welcome to the community then!
I think our mods already have enough work for that haha
democracy at work
itll open up more mod spots
people get more money and raises in the promo, economy moves better as more meme money in the flow
everyone wins
basic economics 101
;D
Yeah no. We have way too young of a general audience here for a meme channel
yea
It would take the time of all the mods plus more, believe me, I have been an admin in that situation, and I see that situation unfold every day
I am scrolling though meme channels on other servers I am in rn and like 99% of it breaks CoC.
For example on tbe r6 siege server, constant spew of racism, homophobia, transphobia, etc in the memes channel
It's pretty unsightly
breaks chain of command?
yup
wat
Code of conduct
oh
...
dont ... me because i dont know your acronym and know it to mean something else ๐
๐ฆ
Also discord moderates heavily partnered servers
lol
So all it takes is one report to lose partnership
yea ^
It's a huge risk for servers like this
its very fragile
fair enough
and really, what would we gain?
nothing
if programmerhumor can't have more than like 6 overused jokes for months at a time, we probably can't do any better
we can just use the reddit spot i linked lol
thats y a discord called r/programing discussions is not partnered
it has a meme channel
Whenever I dive deeper into the realm of Python I realize how much natural sciences relies on CS
My grades are good in my programming class but it could be better in electric circuits and technical drawing
For me itโs just finding the motivation to study something I donโt enjoy that is hard
my brain is like "why do 3d modeling when you can play a game or do some coding instead"
what is the thing i'm constantly saying about offtopic?
speaking of funny memes
that spike is all from last night
I think I'm starting to understand why I'm always tired
lol
glowstik
please don't dump random videos or memes into off topic
this is not a thing this server approves of
Off-topic discussion. Please keep it clean and respect ongoing conversations. See https://pythondiscord.com/pages/resources/guides/off-topic-etiquette/
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.
please read the etiquette guide in the topic.
@uncut coral do read the off topic etiquette as per ^
k srry
the one from a couple years ago?
no the one today
did any of the old wrinkly farts asking questions have a fucking clue what they were doing?
that was the case last time zuck went to a senate hearing
^ that's what I meant by 'the same'
old people in power with no idea how technology works trying to quiz someone about technology
it's like.... you have an entire office full of aides
couldn't they look into this for you?
pre-write some questions?
so you don't look like an out of touch moron at the very least
during the first set of hearings AOC was pretty good at asking questions
they were well structured and targeted
but then again she's like 31 and knows wtf a phone is
i remember one senator asking Zuck about that conspiracy where Google is listening to you through the microphone on your phone and i was just like
this dude seemed to think that Facebook could do something about that? idk. it was weird.
Does anyone know stuff about logic gates
What's up with those?
I need help
Well, what do you exactly need assistance with?
You can ask here
Hey, everyone! My professor and I developed a simulator for swarm robots in C/C++ and had a fair bit of success. Now I am thinking of implementing a buddy system for the robots where the 2 robots will work together within the swarm and would be considered as a single entity. I am looking for someone who would be interested in mentoring/collaborating with me towards my objective.
Objective : Develop a new kilobot simulator rather than using vrep simulator. Kilobots are these amazing small and really cheap robots with limited capabilities but work amazingly for academic purposes. We are currently trying to study the emergent swarm behavior of agents working in a "buddy system" aka pairs within a swarm. The objective is to study the emergent behavior of the swarm resulting from robots working in pairs within a swarm and develop a decentralized control algorithm
Good luck!
Asking in a C++ server could get you a better response, if you haven't already
hey guys
can someone recommend me a working andriod emulator for pop os :((
How are you?
@rough sapphire I'm doing good how about yourself ?
Hm, Limbo is a good one.
okay let me check it out
@rough sapphire I'm doing good how about yourself ?
@undone harbor I'm good, thanks
okay let me check it out
@undone harbor They only have an APK to on their website
bluestacks
@undone harbor ohh
Like that
yeah
You can get the android studio app
Than you can run an android emulator
would that give me what's app?
When you isntall the unsatble build you can get android 11
would that give me what's app?
@undone harbor android studio
so i should download andriod studio?
Yep
is it for developing...?
It is designed to do that, yes.
But it has an build in android emulator
okay
another silly question
but why doesn't discord have spellcheck on linux
@rough sapphire
sorry
sorry for ping idky that happend
but why doesn't discord have spellcheck on linux
@undone harbor Idk, Ubuntu 20.10 has support. Pop os is based on Debian like Ubuntu.
sorry for ping idky that happend
@undone harbor Oh, it's fine ๐
okay
Maybe try using a different client like https://lightcord.github.io/https://lightcord.github.io/
Lightcord is a Discord Client. It supports themes and plugins !
Sorry for spamming that link
No, you can install it and see if that works. Otherwise delete lightcord.
You can keep the normal discord client
Save it
then unzip it right?
git clone https://github.com/Lightcord/Lightcord
cd Lightcord
npm run devInstall
npm test
Is jou use npm
If you use npm*
use of alternative discord client is likely against their rules
since it's "Selfbot"
those things break every update anyways
like 2 years ago a ton of people used betterdiscord but literally every update it would break and have to be reinstalled
but its not even fair man
its so bs
why doesn't linux have that spell check
that's like so stupid to not implement
look at how many updates they have per day
like 2
Hello
why don't they make an actual useful update
and enable spell check on their discord
like its been making me so stupid making these spell mistakes
and everyone's trying to correct my spelling acting like they're my english teacher or some bs
When you make a server And make a spell mistake on a channel it doesn't fix the mistake.
Lots of things like when you make a discord channel you cant put any of the words in caps it only works with VCs that was bothering me a lot today.
Hunter are you saying the discord client on linux doesnt have spell check? weird
It happens often
I think itโs because discord plug-ins native spell check provided in respective OS and Linux doesnโt provide that natively
@frozen crane do you use type hinting much?
Well I've just written a program at work and I want to actually document/test it properly since its a proper suite rather than just a few scripts like I have most often
*Yeah I know it's easier to do that stuff from the start, but here we are
Just every time I start with type hints I get rapidly put off by how much detail I need
hey, I've been working on a library as a side project, and the tests are written after the fact and have low coverage
at least for now
here's the question though: how extensively are you using them?
What do you mean?
because I only really use them for function/method signatures
I don't do it for every variable
Oh right, yeah I was intending it to be for functions/methods/class inits
Sort of a "self-documenting code" deal
I'm contracted and I want the code to be easy to grasp for whoever takes it on next
And I come from a scientific research background where standards were secondary to results, but I really want to get into more proper SE/Dev roles so I'm trying to work on my standards
well, here's something I wrote relatively recently (two weeks ago) https://github.com/swfarnsworth/bratlib/blob/statistical_significance/bratlib/calculators/relation_statistical_significance.py
it's not done btw
but I think it's a pretty good indicator of when I do and don't use type annotations
huh, this needs more docstrings
What's going on here:
class RelationLookupDict(UserDict, t.Dict[t.Tuple[bd.Entity, bd.Entity], str]):
```?
@marsh hatch it indicates that the whole class is a dict where those are the key-value types you can expect
that looks like a Typehint is part of the inheritance tree
yes
I actually brought this up in #internals-and-peps earlier. I'll show you
!e
import typing as t
class SomeDict(t.Dict[t.Tuple[int, int], str]): pass
print(SomeDict.__mro__)
@frozen crane :white_check_mark: Your eval job has completed with return code 0.
(<class '__main__.SomeDict'>, <class 'dict'>, <class 'typing.Generic'>, <class 'object'>)
huh, this isn't too interesting
!e
import typing as t
class SomeDict(t.Mapping[t.Tuple[int, int], str]): pass
print(SomeDict.__mro__)
@frozen crane :white_check_mark: Your eval job has completed with return code 0.
(<class '__main__.SomeDict'>, <class 'collections.abc.Mapping'>, <class 'collections.abc.Collection'>, <class 'collections.abc.Sized'>, <class 'collections.abc.Iterable'>, <class 'collections.abc.Container'>, <class 'typing.Generic'>, <class 'object'>)
some of the aliases cause you to inherit from certain ABCs
So what is the purpose of this
I'm pretty sure that, given class RelationLookupDict(UserDict, t.Dict[t.Tuple[bd.Entity, bd.Entity], str]):, a linter would assume that all keys need to be that kind of tuple and all values need to be str, and that's why I didn't type hint the methods for that class.
Ah ok
Well that seems like a tricksy sort of case
Can I show you this for example:
def map_credentials(
credentials: Dict[str, Any],
creddict: Dict[str, str] = None
) -> Dict[str, Any]:
So basically. I don't actually know if Any is right, but the values just have to be coercible to str, so they could be almost anything
Then with creddict I default it to be None but I haven't put Optional and I don't know whether that is right?
that I'm not sure about. We use type hinting in the bot and I think anything with a default argument gets wrapped in Optional
!source
Hmm ok
And import typing as t is that a sort of accepted norm now?
Kind of like import pandas as pd?
Anyone here good with logic gates?
@marsh hatch it actually depends.
On what?
also google colabs is cool
@marsh hatch depends on how you wanna rename it. i rename it based on convenience, and for people to read the code
most people use pd for pandas, so i also do that as well
okay i gotta eat breakfast
Ah I see what you mean
@rough sapphire please don't post your question into every off topic channel. There are 3 so that multiple conversations may happen at once
just finished going through this... really interesting, if anyone's bored and has 30 minutes to spare
Nicky does a lot of good social games. Another example: https://ncase.itch.io/wbwwb
it's 20ยฐC and I feel cold
it can if you download a 3.8 wheel and rename it
it's 20ยฐC and I feel cold
@gleaming thicket get a blanket
do you live on the equator???? thatโs not that cold
for my american friends. 20 cel is 68 fahrenheit
20 is coldish
fells cold cause i am used to 30 C
do you live on the equator???? thatโs not that cold
yes
wow
for my american friends. 20 cel is 68 fahrenheit
@quick bay i feel called out
seriously, though, why doesn't america switch to metric
i had to check to understand so i just felt as though i could help
ye, I know, thanks for that
helo
wtf

We ain't making this emoji chat okay
UwU
Lol
Not acceptable
Do you even know the adequate chat rules
._. gotta revise them...
@upper epoch English speaking server read rules


What happened here?
i use arch btw
If anyone wants a game about growing trees to get points, and the person with the most points win. Photosynthesis is your game.
There's a game using that name?
theres a game for every name
That got me confused for a second there
my bad, theres a name for every game
Not a good marketing strategy to name a game under an actual process not relevant to the slightest to what happens in the game
It feels out of place
Name doesn't matter
It's kinda fun lol and was 39.99 at my local game store
has Catan vibes
We ain't making this emoji chat okay
The reactions to this is cancer
Ya my lgs has a crap ton of games. I love going there. They do DnD adventures league, MTG, Pokemon, Gundam and more
Do you love playing card games?
I kinda do. We have a few magic cards from the core2021 set and 2019 set I think. I mostly play and DM DnD
have you ever played Crazy Eights?
I think, I have
too complicated lol
Oh fav card game is phase10, trade card game fav is magic
Usually a 52 card deck, and you have to finish first
Well, I mostly just play alot of solitaire and UNO
i love uno flip
I just play UNO to make other players suffer
lol
@Fisher I think I'm a tiny bit addicted. Watching the new StarTrek movies again lol.
Wait what, some servers I can use the new reply function and some I cant
Ya, works in a DnD server but not here :(
we just havent implemented it yet.
Eye sea
These puns lol ๐คฆ
eyes see*
@eternal wing I think I'm a tiny bit addicted. Watching the new StarTrek movies again lol.
@ancient stream LOL, not a real ping!? and niiice, I am going to do something similar and rewatch all of mando I think
Yeah idk, for some reason it hasn't been letting me ping some times
shadow banned haha
Probably. I seen f1re eyeballing that ban button on me :p
LOL, yes if f1re is anything, he is ban happy.
And he is not awake to dispute this, so it is fact
Banning self-bots on sight 
when you don't wanna say "69"
Slight change of topic, anyone eat microwave popcorn, but put hot sauce on too and garlic powder?
Do it with movies and it's so good
Wait, that would be a first I've seen a musician not want to say 69 lol
Also I kinda think the red matter would make a much larger Black hole than it does when the vulcan science vessel blows up inside if it with l the red matter. Since a tiny drop creates a decent size blackhole. It would seem to me that a large amount would make a super massive Black hole at least.
Simp \/
I have seen a cashier call out order names by the number
Guess what the lucky number was
Genius decided to go to every table, asking each and every customer for their order number privately, to confirm the order
What lol
lol Arven
Huh?
I have never had that on popcorn.
but doritos + lime + tapatio == amazing
what
Simp \/
LOL
every 5 min
F
this is why windows is OP
lol i just used it as a meme, that combination was too weird
doritos + soda == epik
the doritos thing I said is a real thing. It is great
what I said is also true
I would keep those two separate while they are outside of my body
hah not me lol
Oh the doritos drink? I have that meme on my phone but this server is not for maymays
can u set env varibales in json?
@simple sand you can load variables like they are env vars as constants using json.
you can also use something like a .env file if you just want a file for env vars.
how?
well, if you are using something like pipenv, it will automatically load environment variables from a .env file.
Json is fine for defining constants as well though. you would just load them into python how you would normally load json.
but the values in json can be viewed
what do you mean by that?
you can put the values in a .env and load it using a library named dotenv ( pip install python-dotenv )
@quick ledge but I need that to be in the json file, and u can still see your_token in the json file, or can't u?
why do you need it to be in the json?
{
"some thing":"Env variable"
}
btw, do not upload the
.envto github
@quick ledge k
likewise, if you put secrets in the json, do not upload it to github.
add it to .gitignore
The nice thing about the .env file is that it is automagically parsed by most tools
oooooh
likewise, if you put secrets in the json, do not upload it to github.
add it to .gitignore
@quick ledge so, I only want 2 values in that json to be a secret
and rest are not secret?
no
do not use the json to store the secrets
oh
anyway, you have a xy problem
hmm
Also, I wouldnโt recommend you to use json to store configs
oh
They are new formats made for that, such as yaml and toml
Those are more human-friendly compared to json
bah, humans
hmm
Json is made for machines to create and parse
while uploading the file to github
what if I replace the values which I don't want others to see with
a and b are supposed to be secret values
{
"a":"-------------------------",
"b":"-------------------------",
"c":"hey ther",
"d":"how are u?"
}
yes, that is fine
that would be very bad practice imo, a little risky
Others can get an example of what it looks like
but do you really want to use a json for secrets that bad?
Others can get an example of what it looks like
@quick ledge well what if I make it null
what if you commit without censoring by mistake?
hmmm
I create template .env file so people can copy them and see how it should be formatted.
The big issue with removing your secrets in a tracked file is: what if you forget to delete the secrets one time?
i think it's easier to use a .env and just add it to the .gitignore
It isnโt a good idea to have a template file, since the file will be tracked
wdym
It would be pretty easy to accidentally commit the env file
why couldn't the person who made json, allow us to add env variables
no that's not what we meant
If you do a commit -a for instance, youโd commit the env file, since it is tracked
or the json file
you have filled the json with the secrets on your pc
mhm
and if you commit without censoring it, it will be on display for everyone to see
Yes, and git would show you as an uncommited change
you don't need to worry about this if you just make a .env and add it to .gitignore
hmm
But if you add a censored version to your repo, it will track it no matter what
It is @eternal wingโs fault
:<
noooooooooooooooo
dont ruin the hair, its the only pic i found which has similar hair like mine 
and now it is christian, yw

so I should not use json for config?
I use .env for all my config. I would not really recommend json anymore.
it would do the job, but it is not a great way to do it
they usually are. But they can be used for general config. The important thing is that the file is not supposed to be shared or uploaded to git
well what i want is that 2 values should be a secret and other should not
We use it some for user-specific config with @median dome
you can use the .env for the secrets
@quick ledge but they should be able to see the keys not the values
cause they need to set their own values for it
And also to override some config options with the website
hmmm
if it's just two values, you can mention that that in your readme
hmm
I do templates for that purpose.
I.e, for my .env I have something like template.env that can be copied and pasted by users
ok then
https://github.com/fisher60/Friendo_Bot this does not have a template .env, but you can see in the readme there is a block where a user could copy and paste
Ugh reddit is getting to damn much with he ads.. 4 ads in a span of 17 posts
urllib vs requests discuss? ๐
flexibility ?
Basically, it has alot of features that requests is unable to do or perform poorly in
ah ok cool
And requests handles things for you, in opposition to urllib giving you full control over the requests you send to a website
is nesting try except blocks bad practice guys ?
it must be ok right ?
also โค๏ธ JSON
time to go back using firefox
aah browser hopping is great
@shell grove imma find the answer for you
ty ๐
@shell grove https://stackoverflow.com/questions/17015230/are-nested-try-except-blocks-in-python-a-good-programming-practice#:~:text=Nesting them isn't bad,the first one that works.
https://docs.python.org/3/glossary.html#term-eafp
i should of thought of checking stack overflow first , ty ๐
quite a thorough answer on that page ๐
someone said in python general that it is bad practice
It depends on the context, as always
yes
EAFP says it is okay
doesnt it depend on raising two exceptions is meaningful in the context ie it goes through a try block then a nested except block
EAFP ? whose that
but like akarys said, it depends on context
EAFP ? whose that
@shell grove https://docs.python.org/3/glossary.html#term-eafp
doesnt it depend on raising two exceptions is meaningful in the context ie it goes through a try block then a nested except block
@shell grove this is pretty weird though, maybe you should rework your logic
!pep 20
hehe


closing