#ot1-perplexing-regexing
1 messages · Page 558 of 1
:c
What were the not real contributions?
haha I barely know anything about how to use Git
git commit, git push, git pull... good enough for me
Oh
git add 
looll, come to open source projects, u will have fun with git
oh yes. but PyCharm always does that for me
I don't even know git pull
I mean yeah those are pretty much the only ones commonly used
git reset, git cherry-pick, git stash....
I just do git add, git commit, and git push
hahaha
everybody frogets clone
Oh yeah
git remote add <git> origin
I forgot about that
how get repo without clone
HAHAHA yes. Clone
but I only clone when I wanna install stuff
I don't contribute to other repos
I always do git remote [add | set-url] origin <url>
so everything's always git init on my computer
oh yes I had it reversed
git init kekw
lololol
yeah...
I'm not skilled enough for long-term projects tbh
I'm too like... scared... that I wouldn't be able to keep up with one
:T
Lol
I don't
Have enough focus to continue on one for
well I mean like I feel like I'd never be able to make anything someone wants and can use
I don't have the skill to meet my own standards
Help me rewrite modmail & @acoustic moss
hmm
\🤔
Almost sounds too easy, though
I can make a base
I wouldn't know where to go from there
oh also... did you see the plugin I pinged you with @vapid nymph
no ;-;
couldn't you just... reconnect
official: https://github.com/kyb3r/modmail
Just wanted to check the license
GNU Affero General Public License v3.0
fwiw i do intend to get this merged into the bot hopefully if i'm lucky
want one?
sure
make a cli tool, to keep your python deps fresh
if it is a venv, then the venv deps
if it is globally, then all deps
Does Windows have env
on Linux, we can do like /usr/bin/env python3 for example
yeah
to run a script with the current environment
so it should be the same process regardless when you use env
I had it my project list ideas, but you can do that if you want, i have a few more
https://github.com/antfu/taze this is the idea basically
god this bot is gonna be fucking hard to change
just rewrite it almost completely
i was wanting to write python bindings for digital datcom
but fortran makes no sense to me
why are you making a modmail, there are already so many out there
this is the source for @polar knoll
which has nearly 10k instances out there
but the code is subpar
.src
!src
umm, so you are making the source better?
yes
umm ok
but i'm support for the bot 😄
i've decided i'm not going to make tools for programmers
@vapid nymph Do you want a subclassed Discord bot?
from discord.ext.commands import Bot as BotBase
class Bot(BotBase):
pass
oh i've done that before
😔 why?
cool
no
I mean the env command
class Bot(BotBase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._init_commands()
def _init_commands(self):
@self.command()
def category(ctx, cat: str):
# TODO: Set modmail category, save to JSON(?)
pass
haha is this a weird setup
my logging levels are gonna be as follows
5 trace
10 debug
20 info
25 # This is for the level that will be shown by default for people hosting the bot
30 warning
40 error
50 critial/fatal
but i need a good name for 25
i was thinking support
booo
standard/default?
btw don't judge me but this is the level that will be configured by default so helping people when they host on heroku isn't too hard
i'm actually not entirely sure it should be below warning
i'm am thinking support but that sounds bad
👀
ideas?
hm
its not verbose.
!pypi verboselogs
what does it use
I'd just say "standard"
NOTICE
going with notice
its perfect for this use
literally this logging level is to let you know what you did wrong
lmfao I'm already tired of working on this
smh what have you done so far
👀
why are these logs
named by the token
👏
it ran
is that zsh?
from discord.ext.commands import Bot as BotBase
class Bot(BotBase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._init_commands()
def _init_commands(self):
@self.command()
def category(ctx, cat: str):
# TODO: Set modmail category, save to JSON(?)
pass
def _init_events(self):
@self.event()
def
that's literally it
lol
yes, I found out that @self.event() was not what I wanted
yert
smh
i better make that account on codetogether.…
actually that's what i should do
its midnight for me lol
almost 10 PM here
lol
i also love The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
and thankfully its not substantial
just the init file is not that much 😏
hm
i think its clogging to the file properly
hmmm
welp
yeah ;-;
https://github.com/trending/lua?since=daily all folke's plugins are on this 👀
@latent scaffold i realized i needed the satisfaction
so i actually have the entire bot running rn
as a module
yes
wat
nothing is a command
05/16/21 00:30:34 - main WARNING: CommandNotFound: Command "ping" is not found
yes
yes
uh, dropshipping?
huh
!ban 842701381390565396 Seems you're just here to promote something.
:incoming_envelope: :ok_hand: applied ban to @small jackal permanently.
lol
I was so confused, I thought it was like a "this is a really good book and it's on sale"
lol
well... that's exactly what it was — I meant like a personal recommendation
i mean yeah
if they had just
sent another message
about python
it probably woulda been fine
you wot m8
it does actually look good tbh
It said something about "Kindle Unlimited" and I was wondering what the heck that was
so I clicked it
can u unban pls
yeet
lmfao what the heck did I do
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
you're doing this all wrong
nah this is the same system that @royal lake and @median dome do
because why type pipenv run python -m bot when u can type pipenv run start
because you can just type start
what at what time each day do u change the artist name
depending on how you configure it
idk. random times per day
the problem is still when i do type start it fails
#!/usr/bin/env python3
from src.__main__ import main
from src.utils import entrypoint
@entrypoint
def entry():
main()
then this is my src/__main__.py
import wpilib
from robot import Robbie
from utils import entrypoint
@entrypoint
def main():
wpilib.run(Robbie)
not used on python or lance tho
¯_(ツ)_/¯
I have this just so that I can type robbie instead of python -m robbie
Robbie is the name of our robot 
yeet
tbh idk what this egg stuff is but it appeared out of nowhere
and so now I kind of just... have eggs
sheesh
Words of inspiration: You are not tired, you are just uninspired
Definitely not a copy paste
idk I feel fairly tired
I inspire you to sleep
I woke up
and
......
I can never sleep \😩 too hot
must be nice
Yeah
that's the case for my grandmother where she lives
Chill vibes
you can always bundle up when it's cold
I live in ireland
please bro
Yes
!pypi coloredlogs
this is nice ^
Lol
hey
hai
hoi
Idk
Will it ever be a holiday other than Easter
It's been over for like a month
but these topics have been there like all year lol
We need to PR this
Do we, though
I'd rather advocate for completely fresh topics instead of just removing the Easter ones
because truthfully who wants to talk about colors and books all the time
Just purge and rewrite everything
@vapid nymph @wraith hound Added screenshot to the github link
yo
anybody has ever though about what music should be played when they die?
none
no track?
i got a special folder saved for it
those are rookie numbers
What's that?
spotify should not have displayed another icon
uh
remove one
bruh
so pin it when it's open
Is that Windows? I can't even tell
hmm yes
I swear they have made it worse😬
yes, as does everyone else
THIS IS BROKEN
😩
i deleted python
still it is there
wanna perform a reinstallation
fuck
where banana
lmao
i can't find any python launcher in control panel
unpin both spotifys
what
;_;
and then pin the real one
ah i fixed
Windows has where, right
just do where python in cmd like cypheriel said
yes
lemme see
damn
that's two more pythons
so scoop where wasnt needed
you're getting python from msys
yeah...
so I would just... ignore that
kind of like WSL
and when i install python
but for managing packages on Windows
interesting
you'll have to change your PATH order
ye
or just delete all pythons
set path
...why
ur admin folder?
now it is clashing
which folder is that
nah i will manage
i made system32 as system 69 today
using a yt tutorial
will have to change paths
:epicgamer:
uh oh
I did a thing I don't know how to fix
How does one import a local package from... a different folder
this accounts name used to be zeeshan and then i renamed it to pc so windows just made a new folder for future files to go to
now exisiting apps can use zeesh and new apps can use pc
thats how its supposed to be when u rename ur user
instead of renaming the folder
\😢
I try to install everything I download to D:\
lmao i watched a yt video
and did what he did
bruh
same
LRAW sounds like an ASM directive ngl
what is the cwd
wait why m i even having python in msys
the file structure can be seen from PyCharm Professional
MSYS is Linux
Linux uses Python internally
oh yes
which dir are you running it from
the pwd
this is the last thing left on earth related to python 
I thought pwd was "project working directory"
it's in the venv PATH
so I can run it from whenever when the venv is active
why in the world do you have anaconda 😩
bruh
it doesnt matter lol
anaconda
fuck cbse
i use vsc in school
eh thats why i take a pen drive with vscode portable inside 😎
also i have not seen school since 2019 🤔 what the fuck it is
does it allow you to bring a dri- yeah.
be glad you are using an IDE at all
oh
lmao
I've went through highschool JS and Java in only notepad
drip 🥵
spyder ... shudders
What is this heresy calling VSCode an IDE
we write html in notepad
bruh
I'm sorry what the fuck
html in notepad is fine
Code completion, type checking, linting, autoformatting... 
who cares, its fast
reeee who broke my imports
agree
ah , fun tip, enable all the stuff in settings in spyder
true
😎
okbr
yes
yes
yes
yes
everyone uses it
ikr
use it
lol
head shaking my
head
unless you're programming in notepad
yes
every sane person uses it *
ol
ok
ok
bruh
although those lessons were actually pog
uh oh. I can't say I don't have notepad anymore
how do I know if something is hex or not
u hope for the best
🤔
is it 3/6 chars and does it have 0123456789ABCDF only
0x[0-9A-F]+
👀
reinstall windows 👍
I see this
0123456789ABCDF is a lot more fun to type 👍🏽
E
that has E, that can't be hex
WAIT
?
ty
OH YES FUCK
from microsoft store
E is not hex
what
A through F is valid hex
i don't know why i even installed it 🤔
have you ever heard of the color #EEEEEE \😩
yes
this is valid hex, yeah
🕶️
yes
abcdef, 6 digits, in addition to 0-9
10-A
11-B
12-C
13-D
14-E
15-F
yes
regex for hex i think
you know what
by the way
don't judge me... it's nearly 5 AM
http://www.pythonchallenge.com/
check this out
Python Challenge home page,
The most entertaining way to explore Python. Every puzzle can be solved by
a bit of (python) programming.
lol
ikr
ah yes fuck
a very very old Python puzzle
MicrosoftEdge
Skype

i literally told u before
store has a delete option 🤔
.
yes of course
its a store
although a bad one
it has an uninstall option
cut it some slack
no
I didn't find it
bruh
well

i deleted it from apps and features
there is no python
in control panel
store
or
apps and features
i fucked up
reinstall windows 👍
lol
so
i should change the installation folder location
that might be
interrupting
bruh
Hello, I've got a backend issue in dart language, I need a bit help
yup
gg
that's user ones, check system's
(PATH gets concatenated from the system's and the current user's)
there it is
check in that Path of yours
go on..
wanna join vc? @last mantle
nah, lets move to #ot2-never-nester’s-nightmare
those are .ink files in some special directory
i deleted all python folders from appdata\programs\python
still not able to fix this issue
mm
take a deep breath and un-install everything and restart the pc
what happens when you run "python" on console?
i literally uninstalled everything named python
reinstall windows 👍
leave windows , return to linux
what is the problem here? Just the fact the links are still in the start menu
@graceful basin problem is this
and that is a shortcut of a deleted python launcher
lmao
time for the good old 😛C:\> rg --no-ignore -g "*python*" --files
Hey. I have a doubt regarding C++ in VS CODE.
I find that to get input from the user, we have to run the program through terminal, isnt there a better way to do it?
PS: I know this is a .py server, but I just started learning c++ in VS code from python in Pycharm
tag me
I find that to get input from the user, we have to run the program through terminal, isnt there a better way to do it?
Uhh, what'd be another way?
Like, making a GUI app?
%appdata%\Microsoft\Windows\Start Menu\Programs check if it is still in this PATH
and yeah, reboot. Sometimes the indexing screws up
ok lemme reboot first
Ah, you probably meant that launching it in VSCode doesn't give you an interactive terminal. Yeah, I heard you need to do something to get that.
what is that?
cause I have been using pycharm for python and that has a interactive console
which stage are you on 👀
no start menu
yeah, then reboot, seems like windows search indexer is either down or in an invalid state
i just rebooted lmao
and it is still there?
I rushed till 13 yesterday
well, good luck getting rid of that
what
if you want to, that is
you mean i should uninstall it from control panel
I don't know how to uninstall msys tbh
DAMN
why do you want to uninstall it in the first place tho
because it isn't versioned correctly I would assume. It is the equivalent of system python on linux
try windows store python IG
should i change installation directory
oh ok
that may work as well
or just install the python zip and add it to path
though that won't add it to the py launcher
unless py comes with that zip
yo
stuck at 4 😩
smh why does urllib even exist
@graceful basin
welp how to replace it with the store's one
ah
feel free to use requests instead, I did
though it's not like they are different
fuckmsys 😔
hm
33
shows the same for me, yeah
fine for me 🤷
wait url address
yes
any helpppppp
:incoming_envelope: :ok_hand: applied mute to @solemn leaf until 2021-05-16 11:21 (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
rip
!unmute 722075505230348358
:incoming_envelope: :ok_hand: pardoned infraction mute for @solemn leaf.
please don't do that 👀
lmao sorry
i forgot it is a server
🥴
yes so i was saying
pls kill
ok so the total problem is
it is detecting msys python on typing python
it has no pip
and
store's python is ☮️
There is python on the MS store?
yes
try py -m pip
python -m pip
interesting
ok
done
wait
but
is there a way to replace this python with store's one in cmd
time to remove this
Guys how do I set pycharm as my status the playing game it ain't giving me the option
its a plugin
And not showing pycharm
What's the name?
discord presence
I don't like this mean Python challenge website
Thanks!
I'm on the 3rd one and I'm so confused
np
:)
I am one parallel universe ahead of you
4 is hilariously annoying lmao
yeah, it could have been shorter
What's the name of that website
Python Challenge home page,
The most entertaining way to explore Python. Every puzzle can be solved by
a bit of (python) programming.
ig they really wanted you to not do it manually
ikr
yeah, as a result it takes quite a bit automatically to
I loved some of the later ones though
This is a scam
lol
Thx
what did you try to get?
honestly, I didn't even use python, I just used cyberchef
lol to the first question.
10 different answers
well I tried to get 1 but I got 10
honestly, I didn't even use python, I just used cyberchef
hmm, I should check that out. not all of them are web-related though
Alright I installed it
what task are you doing, 3?
yes
no
it is
but?
huh?
my brain hurts

there's like 10 of those
yep
bruh
all of them are needed
recall the previous task
What to do now after I install the plugin?
it should work
final hint I guess: ||look only at the lowercase ones||
np
that was awful
ik how to solve 2nd one so can someone just tell the answer
no
:(
it's roughly 4 lines of code so why not do it
ffs this is annoying me now
i pronounced the thing
ah, lol
find what you need to do that with
Why do you need the zip?
embeddable package maybe
long story
But uh, which OS?
probably embeddable package ngl
ok
because i am not able to install to using installer
no python 3.9 installation found 😔
wdym no installation found
the installer is supposed to make the installation lol
@acoustic mossBy the way, I had trouble with that task due to how old the challenge is: if you do everything right and get a ||the STRING opcode argument must be quoted||, ||it's due to line endings and you need to do .replace(b"\r\n",b"\n") to convert CRLF ones to LF ones||
Whaaat
should i just add to path
Yup
yes
ok
PATH is the answer
haven't had that error yet lol
oh, you didn't get it when doing 5? strange
*i didn't get it yet
I AM
my head hurt
did you check ||the source of the fifth task||? What about ||the links in the source?||
spoilers
I actually got the same result the first time, lol
lmfao I made it somewhere but I'm in foreign territory
idk what any of this means
because I forgot to wrap around
that's the beaty of it, you get to learn new concepts
you're at 4?
thats what i thought
I don't see ||any links in the sources|| 😩
except http://www.pythonchallenge.com/ lol

one of these is sus
EDIT: whoops didn't censor fully, spoiler alert I guess.
WHAT
I am once again reminded why I stopped doing CTFs
What on Earth am I supposed to do with this
moving to DMs lol
with what? are you on 4?
no. 5
did you pronounce it?
yes
did you find the data?
yes
well, un-<term> it
I did that
ah
well, let's say that quite a few tasks in this challenge represent stuff as ASCII art
holy heck
why? 👀
YES I GOT INTO THE INNERSLOTH SERVER
they are just kind of breath first search for a solution
@gritty zinc so i did it: https://github.com/python/cpython/pull/26170
https://bugs.python.org/issue44149
This features allows you to specify a key function to extract the correct value from an element to be able to find close matches. Currently the only way to do it ...
I wonder why the hell that function isn't typed
does mypy and other type checkers have their own stubs for stdlib?..
library was probably made ages ago and not touched since
I'm not too sure, this is the first time I'm actually messing around with the source
I personally never really do typing in my code (oops)
that's why we can't have nice things, because even stdlib can't be bothered to do typing 😔
if i wanted to extract all the link addresses of all pdf in a directory how could i do??
i think the faster is gonna be jit
first make it for one file, then do it in a loop, finding pdf files with glob or just path
mypy vendors typeshed, which includes type stubs for the stdlib.
interesting. So a change to stdlib should also be a change to typeshed?
yep.
What are types stubs for the stdlib? @solid elbow @gritty zinc
the Python standard library that ships with Python doesn't have type annotations for most functions. The typeshed project provides type annotations for things from the standard library, as separate dedicated files that contain only the typing information.
60 minutes per session(2)
