#ot1-perplexing-regexing
1 messages ยท Page 368 of 1
And I have to actively remember my audience.
it decrements by 1
So the length of the string must be less than 0?
!e
print(list(range(5, 0, -1)))
@terse sluice :white_check_mark: Your eval job has completed with return code 0.
[5, 4, 3, 2, 1]
no it must be greater than
Can anyone run !e?
how do you have strings which are shorter than 0? ๐ค
Anyone can in the #bot-commands channel
Only staff and community partners can run it elsewhere
how do you have strings which are shorter than 0? ๐ค
@rough sapphire Well I didn't know you could decrement until now, so something new
Isn't !e dangerous? How does which channel matter?
it's run in a sandbox
It's sectioned off in its own container
Ah
It's pretty locked up. Me and another user tried to break it once.
And the channel is more about keeping chat clutter down
We could not.
Sorry, but you may only use this command within #bot-commands.
can I haz !e?
Again, for clutter reasons. The people who have the command are ones we know will give solid advice; people we've vetted, essentially
There is a file that specifies what is seen as mounted.
So... things that are on the system are just not accessible
hot
HAH
Couldn't resist, sorry
yeah
Rule1 of privs in online communities: dont ask for them.
i can haz admin pl0x?
๐คท
!int e would be a nice permission to give me :)
whoops, ya broke something
Watching Ves and the others use it with such control just amazes me. I'm always terrified I'm going to bust something
"Oh well shit, there go all the roles"
what is it
It's the internal eval. THAT is the one that isn't safe
๐
It runs on the current bot process
But only... I think admins have access to it?
Maybe mods as well?
Can't remember off hand
Very tired
If you ran something that was too intense, it would just truncate it and stop.
I'd guess not as they probably wouldn't need it
That was the other thing that stops use from really doing anything
I managed to open up a socket for... a fraction of a second
Not even sure if it worked
it doesn't have internet connection
The folks who put the box together were amazing, and Mark has improved it leaps and bounds
Wait, does it not?
from what i heard, nope
Huh, interesting
one of the other admins or mark said it somewhere. i can't exactly remember
If I recall you can get exactly 500 lines of output.
Would make sense. The last bug that had to be fixed in it was related to files being kept after the command was done
Possible that cutting the net connection is part of that
I spent time trying to read out the files in the working dir before I realized they were all on github lol
(only admins have access to the internal commands, including eval)
I.... wait there are more internal commands?
indeed, it does not have internet
I'm not doing the help for it here
I often see uppercase variables, does this signify something?
Class names typically
It is a global constant
Or do you mean all caps
Oh wait
All caps
all caps are conventionally globals
Yeah, constants
Yeah, global constants
So does this disable changing them? or is it just like convention?
me doing stupid things with int e
Convention
Ah thanks
Now, an IDE like PyCharm might gripe at you if you try to change them, but functionally, they can still be changed
Meh, your bot names aren't funny
NsJail (the thing that run snekbox) is a very cool piece of software btw, I really like playing around with it
The docs sucks sadly
i made that bot account a longgg time ago lmao. i haven't changed it
It's way over my head
yeah same
It isn't really that complicated
only thing i understand is the diagram on the readme
It is messing around with Linux internals a bit
Okay, in fairness I haven't looked at it
You literally just specify which files are mounts and the rest you cant touch as far as i can tell
Snekbox in itself is pretty simple
Yeah, the hard part is just a config file, which is pretty straightforward
I only know this because i spent enough time trying to break it to realize that it cant be done.
i've heard you say that so many times ๐
lol
And you will for many days and years to come
I was playing around with NsJail and put up some config template using a jinja like syntax, it was hard to read though haha
I'll chisel it on my grave
I even had the help of someone much better than me to try to do things i didnt think of and help me execute my ideas better
It didnt happen
"TLS, died while trying to break snekbox, the snek bite them back"
haha it didnt take long to realize there was no where to go
Only one person managed to break it so far
Well in fairness, a good portion of learning is figuring out what doesn't work
Really? how did they?>
And sometimes, even if you're told it doesn't, you still have to see it for yourself
It was just a misconfigured mount point
ahh
part of the filesystem was mounted not as read only
I thought it's been broken twice
rip
The mount allowed write
The first having been quite a while ago
Does every single character have a unicode form like this \u0a82?
Maybe, I wasn't here at the time then
That was what homeboy I was working on it with was trying to do
Was mount something with write.
i've only been here like 3 months 5 months now.. time goes fast
Yeah, that got patched recently. @velvet rapids Any string character, yeah
By recently I mean like
A few months ago
What got patched?
Oh, alright
So would something like this have a unicode?
๐๐ฎ๐ต๐ต๐ธ
๏ผจ๏ฝ
๏ฝ๏ฝ๏ฝ
ollวH
!charinfo ๐๐ฎ๐ต๐ต๐ธ
\U0001d4d7: MATHEMATICAL BOLD SCRIPT CAPITAL H - ๐
\U0001d4ee: MATHEMATICAL BOLD SCRIPT SMALL E - ๐ฎ
\U0001d4f5: MATHEMATICAL BOLD SCRIPT SMALL L - ๐ต
\U0001d4f5: MATHEMATICAL BOLD SCRIPT SMALL L - ๐ต
\U0001d4f8: MATHEMATICAL BOLD SCRIPT SMALL O - ๐ธ
\U0001d4d7\U0001d4ee\U0001d4f5\U0001d4f5\U0001d4f8
Yep yep
It is indeed.
And I think Ak- yep there it is
I typed this url way too much
Knew I didn't have to snag the link
I'm going through someone else's code and I'm trying to understand stuff 
That's a good exercise
Going through code I wrote last year trying to understand stuff 
It's way too advanced for me ๐คฃ
@rough sapphire That hits too close to home for me
Is there anyway I can get to know which cog that command is in? ๐คฃ
yeah sometimes I'll be like, "Damn who is this and how is he so much smarter than me"
Is there no command for that?
But if I study it, it will come back
Ah, it's in the utils cog
Aight thanjs
yeah just search the github repo for the command name
I keep forgetting that's a thing
but anyway if you just want ot know how to get the information in python, the unicodedata module is it
I like the thrill of the hunt
returns the string in a list
Which can be really helpful for putting lists together
Return a list made out of one element, char
>>> import unicodedata
>>>
>>> def charinfo(s):
... for c in s:
... print(hex(ord(c)), unicodedata.name(c))
...
>>>
>>> charinfo('blah')
0x62 LATIN SMALL LETTER B
0x6c LATIN SMALL LETTER L
0x61 LATIN SMALL LETTER A
0x68 LATIN SMALL LETTER H
oh nice
That's cool
the formatting is a little fancier in the bot, but that's basically all you need
I can't read "char" without thinking about a pirate saying it
Can someone help me analyze this code, I'm stuck at a line. It's probably really easy for you guys
Toss the line in here
go ahead and paste it
Your mind is weirdly wired hemlock 
Line 37
char is this guy
https://tenor.com/wNn8.gif Also this guy
charmanderrrr
@solid pollen If there is a joke, my brain will try to find it
For better or for worse
which line @velvet rapids
if mapped_chars:
return mapped_chars # Returns unicode of character
if len(char) <= 1:
return [char]
return None
Haha
it doesn't us an elif
every gundam has a guy who looks like that but char is the original
and char must be one
It doesn't technically need one
there's no need because return exits the function
Yeah
So why is there a second if?
Especially because
confusable_characters(str1[0])
is passed
So it has to be 1 character
if mapped_chars is false
in this case None because of this line mapped_chars = CONFUSABLE_MAP.get(char)
No you raise a good question. Any question is good if you learn something from it
You don't have to worry about asking stuff here
That is kind of confusing to me
Ah no wait
the return None runs in this test case https://github.com/woodgern/confusables/blob/a95a908d0b1dcf3c6d2317fc3749fa081a3faa4c/tests/confusables/test_confusables.py#L43
return None is also useless because it's at the end of the function and it would automatically return None without it anyway
Ah
Yeah it's redundant
What does this mean? If the colon is at the end?
str1 = str1[length1:]
It's a slice starting at length1, ending at the end
Ah, thanks
How does this work?
https://github.com/woodgern/confusables/blob/master/confusables/__init__.py
I don't get how is_confusable is supposed to achieve this -
Any ideas?
Looks like it transforms the strings into ascii and then checks wether they are equal.
It checks only the first character though
Does it?
Hello, I'm new here. Thought I'd check back during a more high traffic (for this server) time of day and say hey.
hey welcome ๐
Anything I should know about this server that isn't obvious? Like events/day to day stuff.
the only thing that matters is that I do jackbox on saturdays :>
#welcome has some overall info to read.
we host some events year-round and one of the most prominent ones are our code jams. here is info about our latest one from a few months ago https://pythondiscord.com/pages/code-jams/code-jam-6/
all of our projects are open source, such as @royal lake , @median dome , and our website. https://pythondiscord.com/ or https://github.com/python-discord/
you can find @royal lake commands using !help in #bot-commands and @median dome commands using .help in #sir-lancebot-playground
i think i covered a lot of it
But really jackbox though
:3
A lot of great stuff happens here though, in all seriousness
i wish i could join the jackboxes :( i'm busy every saturday during it
That's a shame, but it happens
I wonder if someone will run something similar at a different time someday
That's okay, I'm sure you'll find time eventually
what's a jackbox
I haven't played jackbox in years it feels like, it might be about time I try it out again
We'll see what happens on saturday
thanks to covid-19, my ISP is very obviously suffering from capacity issues
if this keeps up I probably won't be able to do the stream
@stark prawn oh ok - also - which font do you like? I noticed the above comments
i've never really bothered with fonts
just used what I'm given
I would hope that you'd be able to, sounds like a fun time :B
The little ISP where I live serves like 3/4 of the population of my town, but the infrastructure is just... insufficient for even that
So we get a lot of weekend network congestion
Anyone uses pycharm? I need a shortcut
@velvet rapids I have before, maybe I can help
When PEP8 highlights errors/stuff that can be changed
Whats the shortcut to fix it?
It says function call can be replaced with set literal. I have no idea what a set literal is, so I'd prefer if Pycharm did it to me.. but I forgot the shortcut
Ah thanks ๐
Also, asking again -
Is making a pull request, with only PEP8 convention changes pointless/senseless/annoying?
I would imagine a lot of open source projects don't
Yeah, I meant, I've got someone elses code and there are some small PEP8 changes to be made, should I make a PR after fixing them?
good idea
Sounds like a good way to approach it
Won't know how they feel about it unless you ask
Need to get in contact with them 
Does anyone know any datasets with like the same text written in different ways? Like this - ['ฤ', 'แด', '๐ ', '๐', '๐ฐ', '๐']
I would imagine you could make one based off a section of the unicode table site
In case you need a link: https://unicode-table.com/en/
Unicode character search web service. Find, copy and paste your favorite characters: ๐ Emoji, โค Hearts, ๐ฒ Currencies, โ Arrows, โ Stars and more ๐ฉ
Could someone suggest a small python library? Searching for opensource projects to contribute to
i've been working on my own little library and it's open source if you're interested https://github.com/Den4200/pyfrost/
there's also the pydis projects which are all open source https://pythondiscord.com
@velvet rapids
Damn, the HR said yesterday that she'll try to send test task by the end of the day.
They'll probably send it today, but i feel like sitting near the kettle and waiting it to boil.
There's gotta be a first time for everything.
django is great but the way you have to define constraints is.. eh..
I'm hoping that this results in a constraint where either owner_user or owner_group must not be null
You're.. Hoping?
it's not a very readable api
Even the source isn't readable?
it's not very well documented
that's the entirety of the documentation for Q objects
F objects seem entirely unrelated
Hate bad documations
I think sometimes YouTube videos work better
Maybe check there to find what is q object
and this is the entirety of the documentation for CheckConstraint
I found a stackoverflow answer that says what I'm doing is correct
but it's stackoverflow, so the question is for django 1.8
not 3.0
Ask it yourself?
Nah, it'll be marked as a duplicate of the question I already found
Can't report it for being too old?
that's not the SO Way โข๏ธ
I think maybe I'm just going to make groups optional and always require an author
so I can avoid this silly constraint
hey gdude , if you were giving advice about java
what would it be
i'm learning concepts
๐ for example
i'm new to OOP
and i'm having hard times
how can i ease learning of oop
concepts and thinking way
There's a lot of material online, but perhaps you would benefit from reading a book about it.
Also, put what you read into practice.
Work on projects that use OOP.
Thanks @terse sluice I'll check it out
My phone is erroring out
Well played
does the request library block?
yes, use aiohttp instead
okay, i've been using requests in a background thread because i noticed marginally higher latencies when i ran in my main thread. just now pieced it together
wait, you're talking request blocking other asynchronous code right?
yes
Anyone interested in trying out a crypto challenge sorta thing?
clue1: steganography
Do you have the answer, or is this a challenge you're completing?
no matter how much database work I do, I always have trouble telling the different types of relationships apart
Platonic, romantic....
as in cardinalities? 1-1, m-1 etc?
No, like many-to-one, etc
yeah, thats what I meant
let's say I have a table, Book, and it can have any number of Pages related to it, but each Page can only belong to one Book
thats the one case where I find diagrams useful
One book has many pages
any thing thats 1-m can be looked at as m-1 from the other direction
oh, just realised django only has m-1, and not 1-m
oh, no, it just calls it something else
okay, I think I see, thanks
has to be defined as m-1 on the Page
books/pages isn't what I'm actually working with, but
somebody please tell me this is from the onion: https://www.hrw.org/news/2020/03/17/myanmar-denials-define-covid-19-response
seems that it isn't, yep
Other countries remain in denial about the dangers of the virus. The chief spokesman for the Myanmar government said on Friday that the absence of positive tests was proof that the virus has not reached Myanmar.
โCovid-19 is still not present in Myanmar,โ the spokesman, U Zaw Htay, told reporters. โThe lifestyle and diet of Myanmar citizens are beneficial against the coronavirus.โ
"He added that because Myanmar citizens generally paid for purchases with cash instead of credit cards, they were unlikely to spread the virus."
what...
โMyanmar is still lucky because itโs a Buddhist country and senior monks are always praying to be safe,โ said Dr. Win Thandar Phyu, the chief of North Okkalapa General Hospital in Yangon.
Some Buddhist figures have been promoting nonmedical remedies. One famous monk said that eating a lime and three palm seeds would keep the virus away. Another monk recommended seven ground peppercorns.
jeez.
image: Myanmar
yeah those guys can stay in myanmar.
yup
gcses cancelled :(
Have they said anything for what the contingencies are? I assume you aren't just delayed in life by a year
im worried that our predicted grades might get used instead of gcse grades
That would be bad
a lot of my friends would be happy with that, but not me
That would have fucked me over were it the case
my predicted for computer science and physics is good, but i'm not sure about maths
My brother was meant to be doing A-Levels this year but his predicted and mocks were 4 A* so he's pretty happy.
and i've been working really hard for maths
It would be terrible to use predicted for A-Levels
So much of it is dependant on whether the teachers like you or not
hopefully i get predicted a 6 at least
Do you think they will base it off predicted? I'm not sure what the alternatives are tbh
they could delay the exams for a few months
I guess they could use predicted for getting into FE, thats reasonable. But using predicted grades for A-Levels would be terrible
I wonder if universities will accept new students this year, I guess they would have to but I wonder what would happen to conditional offers
Universities would have to - it would completely fuck them moneywise if they didn't
I don't think most unis would have much of a problem letting people in just based on predicted grades - its just much much worse for a lot of people who are going to beat their predicted grades, and pretty unfair to let people like your brother in without having actually sat the exams (for good unis that is)
what sucks is that in my mock exams a lot of people found the papers we were going to do and then got high grades. i could have cheated but didn't and got shit ones
The maths department are aware that a lot of people cheated in the mock so they're most likely going to take that into consideration for predicted grades
If I was a teacher, I'd be handing out predicted 7s/8s/9s like candy
i'd lick my teacher's shoe for a 6
Are there any checks for fairness of grades given. I guess you could argue that you are just an amazing teacher and give high grades
iirc, for stuff that matters a bunch of teachers get together and discuss it - and make sure that the distribution of grades makes some degree of sense
@robust sierra https://twitter.com/lebnenex/status/1239615991501541377
I don't really think that would fly for something thats normally standardised across the country like GCSEs or A-Levels
nice prof
What's something a developer would like as a prize for a challenge or something? Preferably free because I'm broke
I mean... if it's free then the person could get it anyway, right?
Exactly, why I'm asking you ๐คฃ
i'm guessing this is for your discord server.. so maybe a cool role
I'm making a dev server, it's really small. I want to promote events and stuff like that, but people participate only if there is a prize.
and if you have multiple events, maybe make a leaderboard
That's what I'm currently doing, but need to add stuff so these roles have special perks
besides that there isn't really much else i'd think
What are some things I can add to my bot that people would want and participate for, then?
a fancy role
Doing a challenge and complete it perfect makes programmer feel winner even without getting any prize, still may not work on veterans
people will do a lot for colorful names
Doing a challenge and complete it perfect makes programmer feel winner even without getting any prize, still may not work on veterans
"I'm not getting anything out of it, I'm only wasting my time"
I mean...
Heh that's what veterans think
A lot of us do Advent of Code for the fun of it
I know I personally code because I love the puzzle solving aspect of it
I like to see how the gears move together
Leaderboard idea is great it makes people think "yeah if I was at top..." Then they try to reach top cause they feel strong
yeah, bragging rights are a good, free way to get people to do things
๐คฃ I'll try some of these, and also add some additional perks
What are some staff perks you get with @royal lake
Having a channel for showcasing challengers and maybe they could put a quote there, and giving top 3 fancy role
I mean it's not really about perks here
none
It's not that kind of server
it's bragging rights!
Using !e in help channels >:(
I suppose
That's the only one I can think of regarding bot functionality
Anything else is like staff channels that we use for communication on policies
Alright, thanks for all the ideas! ๐
The first time the walrus operator has actually been useful rather than fun
for me anyway
well. it still doesnt count. forget I even mentioned it rofl
Eh, it's hard to even say. I'll just call it Walrus Operator: 1 | Not Walrus Operator: Walrus Operator - 1
oh well nvm it didnt give me my elements :P
The first time the walrus operator has actually been useful rather than fun
@lost radish I actually found out this is the case with the walrus recently
I didn't realize that I was appending True values until I said something about it to everybody first lol
while (stuff := input('>>> ')) != 'stop':
d.append(stuff)```
Okay, it's useful_ish_ again. :P
What was your experience?@wind karma
I tend to only use it in one-offs for one major reason: compatibility
That doesn't feel like a valid reason.
It's not. I just don't like using it. There. You dragged it outta me.
Like I am sure as time passes by and I start doing even more complicated shit
the walrus operator will be useful in some cases
lol i forgot the walrus operator was a thing completely
The warlus by definition does thing that could have been done in two lines, so it doesnโt really allow new posibilities, it is just a syntax sugar
^
you can say that about python
well, yes, discord hasn't disabled dev tools
also, it's ctrl-shift-i
but that's not opening it
hack all the music
oh wait right
control shit i
I actually just did it
and I typed j instead of shift
ctrl shit i
does firefox randomly just take ages to load a page for anyone else?
got 5 tabs open
same page loads in chrome instantly
works on my machine
Question:
What's the most awesome library in Python that you've used?
||ping me with answer||
Stdlib or not? @rough sapphire
yeah, but don't spam
Yeah it's pretty easy to not try to monopolise three channels
you would've got the comments if you just posted it in ot0 as well you know. :D
yeah, but don't spam
@gentle moss did u know what I've just said?
Hmmm
suggest you drop the attitude dog
Hmm
This attitude is really not productive, imma go back to my yt video
suggest you drop the attitude dog
@rough sapphire us *
Same energy as your comments
what part of that sentence could be replaced with "us"
what
that doesn't even make any sense

No, I don't authorize him to do so 
Yeah, I don't authorize your attitude either Blazice
So I think I'll just ignore your attempts to push back against a very reasonable rule
Nice needy talkin
Yep, I'm pretty good at pushing spam far enough up the scrollback that nobody will see it
Github love open source, but not enough to make their own mobile app open source apparently >.>
github itself isn't open source either
I can maybe understand that
But the mobile app
It is just a visual interface around their api
There are no security concerns here
the ui of the github app is soooo nice
I don't really like it
It's a huge pain to navigate
They should have done what most other apps do and had a top left menu burger with slide out menu
Because of that you have to hit back a million times to move around
is it called openhub for github?
just github
and i either jsut use the home button on the bottom bar or swipe back so itโs pretty easy for me to navigate
whatโs in the Makefile?
is there no makefile? there needs to be one for make to work
So I made a pull request, and the person said this
So I downloaded make via chocolatey in Powershell and then ran make parse
I got an error saying no parse.py file found, but I remembered there was one, so I cded one director down and ran it where the parse.py was and I got that thing
repo link? like f1re mentions, there needs to be a Makefile with the target of parse.
Original - https://github.com/woodgern/confusables
My PR - https://github.com/TrustedMercury/confusables
A python package providing functionality for matching words using different characters but appearing to be a similar/the same word. - woodgern/confusables
yep. need to be in...
that. ๐
Oh, how do I change it to windows? and then back?
Wait can I just run the parse.py and it'll work? instead of using make
yeah that would be fine. make is just to make things easier
So I just do python3 parse.py?
python3 confusables/parse.py
I just moved into confusables
what you said should work then
oof
thatโs an issue with the code.. iโm not sure on that one
it uses harcoded file paths (all POSIX), and os.path. can't remember if os adjusts for windows...
you should decode the unicode_mappings in utf-8
are you still awake kiwi lol
@terse sluice no sleep
__init__.py -
from .config import CONFUSABLE_MAPPING_PATH, NON_NORMAL_ASCII_CHARS
parse.py
from config import CUSTOM_CONFUSABLE_PATH, CONFUSABLES_PATH, CONFUSABLE_MAPPING_PATH, MAX_SIMILARITY_DEPTH
iโve gotten a whole nights rest and youโre still awake lmao
try running from the root directory
Same error
ah integrals
just revisiting some old shit
you should decode the unicode_mappings in utf-8
try what kiwi said
I want to get a better understanding at integrals + imaginary numbers
@velvet rapids did u try it?
Yeah, same error
sendcode
The whole file?
!d open
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)```
Open *file* and return a corresponding [file object](../glossary.html#term-file-object). If the file cannot be opened, an [`OSError`](exceptions.html#OSError "OSError") is raised.
*file* is a [path-like object](../glossary.html#term-path-like-object) giving the pathname (absolute or relative to the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed, unless *closefd* is set to `False`.)... [read more](https://docs.python.org/3/library/functions.html#open)
the codeblock
you set encoding='utf-8' for everytime a file is open?
which errors out
Ohh
You shouldnโt set the encoding and let python figure it out
parse_new_mapping_file()
def parse_new_mapping_file():
unicode_confusable_map = {}
with open(os.path.join(os.path.dirname(__file__), CONFUSABLES_PATH), "r") as unicode_mappings:
with open(os.path.join(os.path.dirname(__file__), CUSTOM_CONFUSABLE_PATH), "r") as custom_mappings:
mappings = unicode_mappings.readlines()
mappings.extend(custom_mappings)
for mapping_line in mappings:
if not mapping_line.strip() or mapping_line[0] == '#' or mapping_line[1] == '#':
continue
mapping = mapping_line.split(";")[:2]
str1 = chr(int(mapping[0].strip(), 16))
mapping[1] = mapping[1].strip().split(" ")
mapping[1] = [chr(int(x, 16)) for x in mapping[1]]
str2 = "".join(mapping[1])
do
That's not the whole function, I couldnt paste it > 2000
mappings = unicode_mappings.readlines().decode('utf-8')
hey
That is some very dense code here hehe
I... donโt think they can
Try doing what I sent
REally?
@velvet rapids
I think monkeys can grow beards
Pycharm says, Unresolved attribute reference 'decode' for list
sorry mb
readlines returns a list
mappings = unicode_mappings.decode('utf-8').readlines()
But you shouldnโt decode it, since you donโt open it in binary mode
What does Binary mode mean
okay
Binary mode will return raw byte in a bytearray object instead of trying to put them in a string
oop
the same issue occurs with readme files during package installation because the readme was created over on linux, so it's automatically encoded in utf-8. on windows, it doesn't use utf-8 so you get a decoding error
hmm
open it in binary
how?
rb instead of r
with open(os.path.join(os.path.dirname(__file__), CONFUSABLES_PATH), "r") as unicode_mappings:
with open(os.path.join(os.path.dirname(__file__), CUSTOM_CONFUSABLE_PATH), "r") as custom_mappings:
In the first open or the second?
I guess you could insert mapping_line = mapping_line.decode('utf-8' at the beginning of your loop
But it doesnโt seem like a very good solution
with open(os.path.join(os.path.dirname(__file__), CONFUSABLES_PATH), "rb") as unicode_mappings:
with open(os.path.join(os.path.dirname(__file__), CUSTOM_CONFUSABLE_PATH), "r") as custom_mappings:```
and remove the decode
with open(os.path.join(os.path.dirname(__file__), CONFUSABLES_PATH), "rb") as unicode_mappings:
with open(os.path.join(os.path.dirname(__file__), CUSTOM_CONFUSABLE_PATH), "r") as custom_mappings:
mappings = unicode_mappings.readlines()
mappings.extend(custom_mappings)
what are you trying to do
It's not my code ๐คฃ
whilst doing integrals
I just PRed and they asked me to run make parse
Atleast thats what I think they asked me to do
uhhhhhhh
Well, did you ran it?
yes
Yep
the setup.py lies:
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
You should have some windows instructions spmewhere
what is his error?
can you send the stacktrace
But your git seems missconfigured
I have no idea what you mean
It should be checked out with Windows encoding
well that's an amusing spam email I got that somehow bypassed my spam filter
note: no files attached, image links to a diagram sharing site instead of a PDF, said diagram links to.. somewhere.. but the link isn't previewable
wonder if they're trying to take advantage of the coronavirus
it's a disclaimer used to try to fend off people suing them over the obvious spam email
you think? i view it as bait
I mean you probably wouldn't be able to track them down anyway
but if you did manage to, having downloaded their virus
they would lean on it
wouldn't be the first people to try that
those are pretty normal spam emails haha
they're fishing for accounts
if you reply, they know the account is active
it bypassed my spam filter though
i once got a spam mail (probably I'd won something) and it asked all kinds of information of me, including my fax
fax? lol
btw yes, scammers are heavily abusing coronavirus
everyone is actually
we've seen, like, four different campaigns in estonia trying to use the coronavirus as scambait
i know someone who collects donations for charity, they apparently get a lot from it too
uhm, grats? ๐
this isnโt healthy
just might be
I will sleep tonight then
i think you should
Oki
are you still not tired?
Not at all
iโm like genuinely concerned lol 48 hours w/o sleeps yikes
you've got problems, my dude
i've done 48h without sleep, and felt "fine", but it's proven to be a really bad idea medically to play with your sleep like this
I stayed up late one night
Unranked -> Bronze
On league ๐ฅด
prove them wrong
yeah, its super unhealthy. but, there are stages. the delirium stage was always my fave...
yeah, me neither, i mean, 6 to 8 am i do feel a bit down, but then it gets better, but i'm pretty sure i killed quite a few neurones sleeping less than i should have
i still certainly don't sleep enough, most of my nights are nearer of 6h than the recommended 8, but i really don't like sleeping early ๐ฆ
Yea me neither
I will be sleeping a lot in may/june so I get infinite amounts of energy for the codejam
๐
well, its not full-on hallucinations. but the shadow-people come out... and the statement "when did I get here/do that" starts happening. ๐
Yea I have seen people experience that
(but sleeping a lot to recover from previous lack of sleep doesn't seem to work, at least not completely, some effects of the lack of sleep persist long term anyway)
Never actually experienced it myself
@frosty berry that's my usual too. 6h..goto sleep late.
There was a period where I would sleep at 9am, and wake up at 6pm
for 2 days
I had actually planned it like that
I booked a hotel
for 7 days
and I slept in the 2 of them
it certainly messes with your circadian rythm
I didn't have anything besides a crappy old phone with buttons, 0 touch with tech
my best friend accidentally fell asleep on my bed at uni once, so I just left her there and played portal all night instead of sleeping
I got home for the weekend at about 4pm the next day
and promptly collapsed on my bed and slept until 6am
haha
I get about 8h sleep every day, but I'm still always tired in the morning
if you are in the middle of a cycle, yes, you'll wake up tired
I am not sure it affects my health as I go to the gym almost everyday, I casually go to marathons and generally I exercise
there's an amusing amount of psychology to alarm sounds by the way
I hate alarms (as in normal ones that make a horrible noise) so I usual wake up to the radio
it can be worth it trying to go a bit earlier or later so when the alarm rings you are in light sleep
there's an alarm sound I fucking hate because I used it when I had to get up to go to a job I hated
if I hear it today I still get mad even though that was like 8 years ago
there's an alarm sound I fucking hate because I used it when I had to get up to go to a job I hated
@sand goblet my school days
๐
were like that
school was fine for me
I know exactly what you mean, I have the same thing
Yea school is perfect for me as well, I just don't like the teachers
Let that slip, I am the most complete student not even kidding
@wind karma good for you, really, and maybe you are exceptional in that regard, in which case there are some neurologist that would love to talk to you, but usually the effects on body and mind are really worse than people think
@frosty berry is there a way to not wake up in a middle of cycle if you don't sleep at the same time everyday. Calculating the time you should wake up every day and adjusting the alarm for it?
Thanks? I am not sure how I should reply to that. @frosty berry
it certainly does help that you are young, though, it's really easier to endure that at that age, but the price can be paid later
maybe have a look at the book "why we sleep" if you want some counterpoints to your current lifestyle
yeah pretty much all of the health advice you get when you're young is about not wrecking yourself later
Right now I live for the codejam
you won't suffer for the posture until later, as I found out
so now I had to rectify it
@lime bison i do think so, though adjusting can take multiple days, a bit like jetlag, but yeah, adjusting the alarm from 10mn to 10mn to see how that works can probably help
I feel like I am gonna die at my 30s with the shit I have done
if you don't have hard constraints on your sleep schedule
I think school closing will help he get into a nice sleeping routine. I'd like to wake up at the same time every day.
I pretty much always wake up before my alarm goes of, within like, 15 minutes of it
regardless of what I set it to
not sure why
@wind karma well, let's hope not, but yeah, the 20s is a good time to get into healthier habits, the 30s is as well, it's never too late, but it's also never too soon
I will try to refactor my sleep schedule
They want me to rebuild their notifications system
As a try out
will they pay you for it?
I often wake up before my alarm goes off. I hate looking at the clock one minute before the radio goes on and waiting
it is a try out, so supposedly it is to test me before they hire me
I think I am gonna say a big fat No
That is true
don't let them take advantage of you haha
it's not unheard of to see very energetic people, overachievers, working a lot and leading apparently very healthy lives, have important health problems, in their 30s or 40s, way before they should, i don't know if there are studies of that, but it's important to leave yourself time to breath and settle down.
so many stories of devs doing real work for their "hiring exam" and then being told no after the project is done
@wheat lynx i mean, that's great, just snooze it before it rings and start your day full of energy ๐
Okay, not to sound money-hungry, but the test-project you are asking me to do is actually doing real work on your current systems. Shouldn't that be paid? Because, if by any means you do not like my coding style I get no compensation for the hours I put on the build.
What do you think of this?
I will send that
that seems fair
Right thanks
yea, looks good
I really hope they arent using crappy infrastructure
if they say no, you know they were here to take advantage all along, good riddance ๐
yep yep
Whenever I see bad network infrastructure my eyes bleed, and by the way this guy is talking I am guessing it will be
But lets wait and see
by the way, this is offtopic, but goddamn vue router is nice
well this is offtopic
What makes the router so nice?
Can you be offtopic in offtopic?
SPAs with Vue are very nice
yea
does it run openwrt?
I've not messed about much with SPA routers
bingo bango bongo
vue has a habit of making things easy ๐
Vue provides a very intuitive way of making everything easy
But Id rather go React
for bigger projects
That is the reply
I can't really think of a reason to use React when I have Vue
cool ๐
Should I take it as a yes?
I will
well, i don't think the garbled spelling would make a good plausible deniability, so i'd take that as a yes
tell them you only accept human souls as currency
Hahahaha
the screams of the damned
"oh pay, you will"
I just wanna make some side cash
To fund my domains/hosts
And save for another project I am planning
Gosh, web development can get really pricey
it can
I'm working on a project that I'll host myself to hopefully help with that
that's why I'm using vue
Yea I want to host some projects myself, but this is what I pay 30euros per month for, and I must tell you this shit aint fast at all.
you should get a kimsufi maybe
I usually use AWS
You can get 50usd free credit from DO, thats like 6months of hosting a fair amount of stuff
Digital Ocean
domains are cheap, unless you are looking for something that is short, easy to rememeber, meaningful, in a .com, etc, of course, but if you are ok with letting go of some of these criteria, it's pretty cheap. Hosting depends a lot on your needs.
I'm not a huge fan of digitalocean
Neither am I - but free is free
i've only had positive experiences with digitalocean
also some people have issues with DO's malware scanner
where it just murders all their servers but the file isn't actually malware at all
someone gotta pays for all these podcasts and youtubers
they seem to have a direct uplink to most of the common ISPs, which means shit hosted on DO servers loads pretty fast... CDN is an exception, they fucked something up there
yeah, CDN is slow as fuck for me too
it was faster for me to just serve my own static files
it's never been slow for me personally
but some people using my CDN reported that shit loaded slow
a bit less for youtube i think these days, and i stopped listening to podcasts, they seemed quite commonly sponsoring them
tbf, I watch very little YT these days, and listen to no podcasts
I do a fair bit of YT, but no podcasts right now
i only watch, like, 1-2 channels on youtube
I'd kinda like to listen to newsy podcasts - but I can't find any that seem decent
my tastes have... shifted
but i haven't found any good channels to replace the ones i used to watch
Thats pretty much the same for me
ditched clickbaity or gamery stuff, and then never replaced it - so I have like 3 channels that I watch at all
i only mostly watch speedrun shit now
dunno why, i don't personally speedrun
it's just entertainment, i guess
fascinated by the different glitches, devious techniques, and complex strategies
Btw, do any of you listen to music while coding?
never
online.net has great deals about some old hardware servers
I listen to trance
tbh slow tasks should be offloaded to celery or something
but maybe not actually celery
I'm still figuring that out because celery still doesn't support windows
so I can't easily test it
i do listen to music while coding, a lot of electronic, but sometime other things, like jazz or classical
@rough sapphire cool
I find trance to be very healing while coding
do you have some spotify playlist?
I have an apple music playlist
If I am not on my mac, which is usually not the case late night
I just search on youtube
10 hour psy trance
and I hit the first result
I still can't see the point of apple music
a smaller music catalogue with worse platform and device support
ok ๐
Not really, the quality of the music is better than spotify
did they stop backstabbing spotify btw?
they did not
I am not sure bout that
(like, taking 30% of their monthly subscription)
Oh
spotify streams at 320 kbps
Well Spotify forced their way out of this
although if quality is your thing.. tidal
They just disabled all in-app payments
my tidal experience was... lackluster
ok
You basically have to go through a browser to pay
i tried it for the high-quality memes
yeah, makes sense, that must suck for conversion though
that's also why I tried it
the library wasn't great but it's a lot better now
and plex integrates with it
I actually built a plex clone
but the app (which was a blatant spotify mimickry down to the positioning of the icons and the icons themselves) was just so buggy
last year
But I would always get a problem with the transcoder thing
And I just abandoned it
i also don't think i could even tell the difference between spotify's 320kbps and FLAC/Masters
yeah, most people can't
Its weird
Haha
haha yeah



