#ot1-perplexing-regexing

1 messages · Page 204 of 1

gentle moss
#

do a stream about what

sullen thorn
#

Food *

sand goblet
#

let's see here..

#

hm, yep, it's a tracking pixel

gentle moss
#

got no food to cook today

sand goblet
sullen thorn
#

😦

#

Guess i’m just making salmon for dinner then

sand goblet
#

2no says:

Make sure that you and your website visitors or users you share our links with understand our Terms and Conditions and Privacy Policy and provided clear consent.
gentle moss
#

i had salmon the other day

#

with hollandaise sauce and new potatoes

sullen thorn
#

U make the sauce yourself?

gentle moss
#

yes

sullen thorn
#

😃 do a stream on that

#

My dad can do it but idk how

gentle moss
#

it's just like butter, eggs, vinegar, lemon juice and mustard

knotty beacon
#

It's a common breakfast sauce

#

for both eggs, fish, and toasts

gentle moss
#

its soooooooooooo good

#

i could probably drink a glass of it on its own

knotty beacon
#

I haven't had it in a bit, but it is really amazing

#

Salmon is a great choice for it, even for breakfast

sullen thorn
#

Yeah - especially eggs Benedict 😃

knotty beacon
#

Eggs Benedict uses hollondaise sauce, yes

knotty beacon
#

I think what we've all learned thus far is

#

Nothing you've done is secured lol

granite lake
#

Wait

#

whats happening now

#

you tryna find out who did it ?@rough sapphire

#

the forkbomb

knotty beacon
#

Lol if i wasn't at work I would drop the box just to teach you The Hard Way™

granite lake
#

😂

sand goblet
#

ah, you're using rextester's thing

granite lake
#

the person maybe used tor

sand goblet
#

is that so?

#

bot.eval("""
print("Hello, world!")
""")

royal lakeBOT
#

@sand goblet Your eval job has completed.

Hello, world!
sand goblet
#

maybe it's time for you to try to break something

#

have at it over in #bot-commands if you want

#

I'm not gonna leave your link in #303934982764625920 btw, because you're using a tracking pixel without the consent of the user

#

because you had those logs

knotty beacon
#

😅

sand goblet
#

those weren't webhost logs lol

#

and then I checked in chrome, and yep

knotty beacon
#

I caught a stalker with a tracking pixel

#

I forget which one I was using

sand goblet
#

okay, but I still don't see what the project has to do with us

#

it's a PHP project

#

you aren't even making the source available

#

it's making a rest api call in the browser to rextester

#

yeah, so it arguably doesn't use python

#

it uses some http api

#

why are you so desparate to post this 15-minute PHP project on the python server?

tulip palm
#

still not really python though

bleak lintel
#

PHP is not fun

sand goblet
#

you've been doing relatively sketchy stuff with it here all day

tulip palm
#

the #303934982764625920 channels are supposed to be for giving feedback and stuff like that. most people here have no experience with PHP.

sand goblet
#

you're harvesting IP addresses, you've been going through the pastes on your service

#

you don't have a privacy policy

granite lake
#

@rough sapphire its showing that the latest site is down

#

Is it true ?

sand goblet
#

I mean, sure, grats, you made a thing in PHP :P

bleak lintel
#

Show your projects isn't even for feedback and stuff

granite lake
#

btw hi joseph

bleak lintel
#

It's for python, just python or things related to python

#

A PHP paste service is not python

#

hello Jason, how are you?

granite lake
#

Great since you came online 😄

bleak lintel
#

That's been decided by most of the python community

ebon quarry
#

lol

bleak lintel
#

@granite lake well prepare to be sad again because I'm about to go lol

granite lake
#

lol

gentle moss
#

oh wow

granite lake
#

so many folks inactive lately

tulip palm
#

hi

granite lake
#

Did class start back or sumn?

bleak lintel
#

I've been inactive for 2 days

granite lake
#

Oh hi juan

#

😁

#

tulip palm
#

hello jason :D

granite lake
#

Btw isn'tjuanita a female name ?

tulip palm
#

it is.

sand goblet
#

something wrong with that? :P

tulip palm
#

haha

granite lake
gentle moss
#

yo and wot of it ay

tulip palm
#

lmao bisk

gentle moss
#

i do use biskette on a bunch of stuff where for some reason bisk is taken

sand goblet
#

use bisque instead

granite lake
#

biskette buiscuit

tulip palm
#

buiscuit, really?

gentle moss
#

bisque is a no

tulip palm
#

it's biscuit

granite lake
#

agh

#

me and spelling

gentle moss
#

no it's a biskette, which is like a dining area for serving biscuits

sand goblet
#

bisquit

granite lake
#

I expect autocorrect to help me

knotty beacon
#

u wot m8

gentle moss
#

that's what that stupid fucking penguin says in that adverts

knotty beacon
#

pop u in ur jabber

gentle moss
#

isn't it?

#

"foxes bisquits"

granite lake
#

lul

tulip palm
#

@gentle moss yes, and it's weird

gentle moss
#

he's like a weird little gangster penguin

knotty beacon
#

gangster or gangsta?

gentle moss
#

either or

knotty beacon
#

The distinction is important

gentle moss
#

no it's not, either suits me

knotty beacon
#

Al Capone - Gangster

#

Your typical whiteboy wannabe drug dealer - Gangsta

gentle moss
#

oh you gonna be gangstist now eh

#

they're all criminals, let them have their identities

knotty beacon
#

I respect neither, ultimately, just being a pedant/bad joke

#

So I've been stuck in the habit of declaring my data structures in "global scope"

#

Is there a smarter way to handle this in Python that I am missing? Apparently this is bad practice

gentle moss
#

that's probably closer to a help question

#

:D

knotty beacon
#

Kinda

#

Like in C++ I'd go plug that shit into its own file and create instances of the objects when I need them

#

public or private, but I just don't know wtf I'm doing in Python yet 😛

steel fox
#

Give that shit a class name and now you’re cooking with global variables that are okay to use

knotty beacon
#

So I can handle it the same way I would have in C++

#

I'm just dumb and haven't been doing it

gentle moss
#

holy shit my arse has gone completely numb

#

fucking sofa

tulip palm
#

honestly, that happens to me too much

bleak lintel
#

It's happening to me right now

#

1.5 hours into journey and butt has lost feeling

sand goblet
#

move once in a while

bleak lintel
#

Moving sucks

#

I have to put in effort

ebon quarry
#

I hate long train or bus trips

#

I haven't taken the train just once since I got my car

gentle moss
#

i think it's just how i perch on the edge of the sofa

#

i once fell asleep on it in a certain way, woke up, couldn't feel either of my feet

#

not cool

#

sofa's possessed

granite lake
#

Just got like 2 victory royale's

#

😁

steel fox
#

Oh wow you’re cook

#

At least you didn’t die to Known in a 1v1 like @bleak lintel did

granite lake
#

😂

robust sierra
#

fortnite ded enywey

worn kite
gentle moss
ebon quarry
#

that is very cool

steel fox
#

Very cool. Thank you bytecommander

knotty yew
#

What is arch?

#

( Will I be banned for asking that?)

tame terrace
#

it's a linux distro

#

and no, we don't generally ban people for asking questions here :P

brittle pier
#

using templeos btw

languid kelp
#

is arch an outdated distro

tulip palm
#

arch is pretty much as up-to-date as you're gonna get

languid kelp
#

"bleeding edge"

#

ok because there was a dinosaur image posted related to arch

sand goblet
#

The joke is that arch has no hands because it breaks easily

#

The real joke, though, is that whoever made the image doesn't know how to use arch :P

sullen thorn
#

Oh

#

Not sure that really makes sense - has no hands because it breaks easily?

languid kelp
#

the point is that whoever made it doesn't know how to use arch

#

so can we trust that he can make appropriate arch-related images, that make sense?

robust sierra
#

i dont understand the hands thing

gentle moss
#

i didn't give up on it

#

can't give up on something you never started

sullen thorn
#

We have a convention of overusing exceptions?

worn kite
#

"overusing" is subjective

ebon quarry
#

one thing of the zen i disagree with is "ask for forgiveness, not permission"

#

i think that was the zen..

rough sapphire
#

yeah it was zen

#

i think

#

?tag zen

#

welp

#

bot.tags['zen']

royal lakeBOT
#
zen

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

rough sapphire
#

uh i might be blind or i dont see it

ebon quarry
#

I think having code like ```py
if os.path.exists(filename): # or w/e the function was again
os.remove(filename)

is a lot more clear, because it says "if this exists, do that", and the other is "do that, and if it fails, ignore it"
#

now of course, when you wanna explicitly handle an error, i think try / except is nicer

rough sapphire
#

yeah i agree, i only use try/except when its easier to catch an error than check

tulip palm
#

i personally only use try/except when the error needs to be specially handled

#

so no py except ValueError: pass

#

as stated in the zen, "Errors should never pass silently."

rough sapphire
#

pretty sure thats referring to py except: pass

tulip palm
#

hmm

ebon quarry
#

pretty sure the zen also says "unless explicitly silenced"

tulip palm
#

@rough sapphire did you lowercase your name to get #0001? :P

rough sapphire
#

yes sir

#

i saw lemons name lowercase with #0001 so i was like

#

huh, maybe if i make my name lowercase i can get #0001

#

and i did 😎

lilac glade
#

That's interesting.

#

I personally like my discriminator because it's not anything special or meaningful.

tulip palm
#

i don't like mine because it changed :(

lilac glade
#

Provides that sense of uniqueness.

tulip palm
#

i used to have 5470

#

but now i have 3510

#

because somejuan else took it

lilac glade
#

I'm glad I have a unique name

rain spindle
#

@glass gorge GG on helper

glass gorge
#

Ty ty

worn kite
#

Huh, so the discriminator changes when you change your account name? I'd have thought that one is fixed.

#

(unless Nitro)

#

Mine is nice, 2800 is easy to remember

robust sierra
#

@tulip palm i used to have ImportError#6591

#

now 8158\

tame pier
#

KnownError#0001

sinful copper
#

@worn kite mine didn't - i assume it changes if the one you change to is taken.

sand goblet
#

Yeah it changes if the pair you changed to already exists

tame pier
#

If you have Nitro, you can choose the number 😉

proper dune
#

yeah i love being #0001

rough sapphire
#

Nice number

tame pier
#

What I really want to be, though, is #007

proper dune
#

I'd be #0000 but smalled allowed is 1

rough sapphire
#

i should try contacting the guy that has Poke#0001 and pay him to change it

#

but then if my nitro ever ends ill get fucked

sullen thorn
#

Why will u get fucked?

proper dune
#

number gets scrambled

rough sapphire
#

itll get rerolled and someone might get it

sullen thorn
#

Oh

#

It’s not possible to get #0001 by chance is it?

worn kite
#

sure

torn ridge
#

i loves free nitro!

sullen thorn
#

How u get free nitro?

rough sapphire
#

being a discord partner

torn ridge
#

^^^

sullen thorn
#

Oh

rough sapphire
#

joseph and rune have free nitro for instance

torn ridge
#

i like free

sullen thorn
#

😦

torn ridge
#

and discord hoodys 😄

rough sapphire
#

anyone watch the walking dead?

sullen thorn
#

Nope

rough sapphire
#

darn

tame pier
#

A while back

rough sapphire
#

im thinking of starting it again but i havent watched it since the season 6 finale / season 7 premiere

torn ridge
#

sorry man watched it ages ago, but not lately

tame pier
#

Like, the first two seasons and I think part of 3

torn ridge
#

i missed out on the whole negan thing!

tame pier
#

spoilers=ban

rough sapphire
#

the season 7 premiere made me salty

tame pier
#

wait, I can't ban you

rough sapphire
#

so i stopped watching

torn ridge
#

oh shoosh, its aeons old, it doesnt class as a spoiler anymore

tame pier
#

spoilers=empty_threats

torn ridge
#

you cant ban me?

tame pier
#

I can't ban poke

torn ridge
#

ahh

tame pier
#

I can ban you tho 😉

torn ridge
#

\o/

rough sapphire
#

😬

torn ridge
#

mod aboose!

ebon quarry
wild yarrow
#

lel

tulip palm
#

holy fuck yes this is my favourite channel name

granite lake
#

Lul

sand goblet
#

Blame @ebon quarry for that one

#

He was trying to think of the word "binoculars' :P

tired osprey
#

Lol

ebon quarry
#

Sorrs

#

You csn feleteciz

rough sapphire
#

we csn feleteciz?

steel fox
#

Of course we can

tame pier
rough sapphire
#

@wheat crescent I've never had to cool an RPI unless OCing it and I've never had a reason to OC it

#

Even when I was away on business and had to use it to SSH into my home network and it was running 24/7.

wheat crescent
#

Okay

rough sapphire
#

😃

wheat crescent
#

I saw these thats why I asked:

rough sapphire
#

That's just like I said, for OCing and various other reasons why your Pi might be too hot.

wheat crescent
#

Okay thanks

#

👍

rough sapphire
#

new CVE bitchessss

#

that's 4 now that I've independently found and received

languid kelp
#

@rough sapphire how much bounty for that?

rough sapphire
#

this latest once should get me 600 euros

tulip palm
#

why?

rough sapphire
#

ok

#

i scrolled up and i heard you guys flooded it

tulip palm
#

i thought those messages got deleted :P

ebon quarry
#

they were.

rough sapphire
#

before that

ebon quarry
#

what, before that?

rough sapphire
#

before banning the creator

#

i bookmarked the site because i like it's simpleness

rough sapphire
#

@tulip palm huh? responding to me?

tulip palm
#

no, don't worry about that. messages got deleted :)

rough sapphire
#

ah

tame oyster
#

how do you approach cs50 do i need to learn the code my self and do change the pseudocode they teach into c code and make that program or do i just need to just understand the pseudocode ,or do i need to do things a different way

rough sapphire
sullen thorn
#

true lol

rough sapphire
#

very true

granite lake
#

Yeah I agree

rough sapphire
#

when you have 4 adblockers and you watch a movie

worn kite
#

Just replace all that crap with uBlock Origin.

ebon quarry
#

ABP sold out, didn't they?

steel fox
#

I mean they’re a provider now for showing non intrusive ads.

rough sapphire
#

uBlock still

steel fox
#

👌 letting 👌 web 👌 admins 👌 get 👌 paid 👌 for 👌 their 👌 content 👌

granite lake
#

Noooo @steel fox

#

!ban

#

We need adblockers

#

Nsfw content keeps popping up sometimes

rough sapphire
#

Yeah

#

They get money by virusing us

#

96 popups blocks last website

granite lake
#

Lol

ebon quarry
#

i really like the debian logo

tired osprey
#

i like the debian naming convention

ebon quarry
#

i dislike you

tired osprey
#

i dont like you either

ebon quarry
steel fox
rain spindle
#

@tired osprey @ebon quarry can't we just redirect all this hate into love for me?

ebon quarry
#

2>&1

rain spindle
#

:0

#

/dev/null

tired osprey
#

/dev/loveForDull > /dev/null

tulip palm
#

~/.my_will_to_live >> /dev/null

rain spindle
#

First person to give me the form of a odd number gets 1000 gold in my discord bot game!

tulip palm
#

69

rain spindle
#

No.

tulip palm
#

:(

rain spindle
#

:(

ebon quarry
#

First person to give me 1000 Euro gets 1000 spam messages in DMs!

steel fox
#

Number %2 not 0

ebon quarry
#

:D

rough sapphire
#

2n + 1

tired osprey
#

3n + 1

rain spindle
#

Poke got it

tired osprey
#

who likes 3n + 1

steel fox
#

People who hate 4n + 1

tulip palm
#

what about 2n - 1

tired osprey
#

but 3n + 1 is actually cool

rain spindle
#

Poke

tulip palm
#

fuck you and your collatz nix >:(

tired osprey
#

no u

rain spindle
#

Do you actually want your 1000 gold?

tulip palm
#

just kidding collatz is lovely

rough sapphire
#

lol i dont really mind

steel fox
#

What’s the ratio of sharp money to shrute bucks

tulip palm
#

0:1

#

or 0:2 at best

rain spindle
#

Lmao

#

wow

tulip palm
#

:P

rain spindle
#

nice name change

#

thanks gdude

tulip palm
#

haha, finally noticed? :D

rain spindle
#

xd

tulip palm
#
>>> sharp is dull
True
>>> 
rain spindle
#

@tulip palm :(

#

I'm not dull >:(

tulip palm
#
>>> sharp is lying
True
>>> ```
rain spindle
#
>>>Juan got 100% in the exam
False
>>>
vast anchor
#

Hello! Does anyone know where I can apply for a codejam? I was told to go to #python but it doesn't look like that's a channel....

steel fox
#

We just finished the latest one a week or two ago. So now it’s kind of in the planning / waiting for the next one phase.

tame pier
#

They're isn't currently one happening

vast anchor
#

Ah, oki doki; when should I check back?

rough sapphire
#

we have one every 3 months or so

cosmic quiver
steel fox
#

Stay a part of the server. There will very likely be a everyone / announcement tag once the next one is published and

vast anchor
#

Oki doki, thanks!

rough sapphire
#

but just to give you an idea

#

our first codejam started march 20 something

#

and our second one was june 25th

vast anchor
ebon quarry
#

ava why

tame pier
#

I recognize that avatar from an ancient meme

#

Makasu2's

tulip palm
#

@cosmic quiver good use of __matmul__ :D

cosmic quiver
#

hello @mystic stormers is anyone online?

#

sorry help

tulip palm
#

haha

#

rip help

cosmic quiver
#

for real how do I write more readable code

tulip palm
#

whitespace, comments, more whitespace

cosmic quiver
#

hold up let me dig it up

#
    label = '+' + '-' * width + '+\n'
    for line in lines:
        label += '|' + line.center(width) + '|\n'
    label += '+' + '-' * width + '+'```
tame pier
#

Use f-strings

tulip palm
#

^

sullen thorn
#

oh huh known error is on

cosmic quiver
#

doesn't improve the readability one bit

tulip palm
#

hmm

tame pier
#

Yes it does

steel fox
#

It’s a little unclear what you’re doing here

cosmic quiver
#
     label = f"+{'-' * width}+\n"
     for line in lines:
         label += f'|{line.center(width)}|\n'
     label += f"+{'-' * width}+"```this is not more readable
tulip palm
#
>>> 5 <- 6
False
>>> 
steel fox
#

Maybe if you call the magic methods directly instead it becomes more readable

#

So label.setitem(...)

cosmic quiver
#

label is a string

rain spindle
#

Who has the best magic method code?

tulip palm
#

str does not implement __setitem__

rain spindle
#

send it here

cosmic quiver
#

What are you talking about 🤔

tulip palm
#

ava's @everyone code

steel fox
#

I didn’t know what the magic method was to make a new string

cosmic quiver
#

It's missing label = '' or whatever I'm initializing it to

steel fox
#

But I knew it’d get the point across

cosmic quiver
#

It's not important

steel fox
#

Neither is Juan though but he still has a use

cosmic quiver
#

<_>

tulip palm
#

clay, go jump into a bridge

worn kite
#

o_O

steel fox
#

😦

vast anchor
#

@tame pier I have over 30k tumblr followers, I might've been the one who made it :o

#

Which one are you refering to?

cosmic quiver
#

That piece of code has been bothering me more than anything this past week

tame pier
#

One sec

#

I'd put it at 5 years old at least

worn kite
#

😂

vast anchor
#

LOL
Didn't make it but I love that

tame pier
#

👍

steel fox
#

oh thats mi maymay

tame pier
#

May may?

steel fox
#

ya u know

#

pictures with top text and bottom text

snow raft
#

you know you're in too deep when pylint warns you about errors that don't actually exist

tulip palm
#
☁  py-cpp-stdio [master] ⚡  flake8 example.py 
example.py:6:5: F821 undefined name 'cout'
example.py:6:31: E703 statement ends with a semicolon
example.py:7:5: F821 undefined name 'cin'
example.py:7:12: F821 undefined name 'x'
example.py:7:13: E703 statement ends with a semicolon
example.py:9:5: F821 undefined name 'cout'
example.py:9:28: E703 statement ends with a semicolon
example.py:10:5: F821 undefined name 'cin'
example.py:10:12: F821 undefined name 'y'
example.py:10:13: E703 statement ends with a semicolon
example.py:12:18: F821 undefined name 'x'
example.py:12:27: F821 undefined name 'y'
example.py:13:5: F821 undefined name 'cout'
example.py:13:13: F821 undefined name 'x'
example.py:13:27: F821 undefined name 'y'
example.py:13:51: F821 undefined name 'endl'
example.py:13:55: E703 statement ends with a semicolon
```this is in my C++ I/O implementation, yet it still runs :P
snow raft
#

I wonder if the linter throwing errors even though the code works is a sign I'm doing something dumb

sullen thorn
#

#

😃

#

shower cap

tired osprey
#

🎩
hyperlemon

gentlehyperlemon

worn kite
#

gentlemon

sullen thorn
#

ɨ matches better with @ than i if i use ssim...

#

tf

#

i need to stick to sans serif fonts

#

nvm sans serif doesnt help

reef orchid
#

Sometimes linters have trouble with imports, especially from C libraries

#

And, in my experience, objects with nonexistent attributes, just because they haven't been instantiated yet

sullen thorn
#

if i add someone as a collaborator on a github repo, what can they do?

steel fox
#

I think it just shows up on their projects

tulip palm
#

damn, why do rubik's cubes get so damn slippery

lament bobcat
#

the real danny is not here

scarlet ridge
#

TheSnackThatSmilesBack

tame pier
#

Danny who @AngerKingz#2925

#

And gone

slate quail
#

Rapptz maybe?

tame pier
#

Oh that Danny

slate quail
#

we gotta get the Real Danny in here otherwise we're not valid

steel fox
#

ye true

#

I am here

sand goblet
#

@hallow widget Your new username doesn't comply with our nickname policy, mind setting a nickname on this server that is easy to mention?

cosmic quiver
#

sailor suit

rough sapphire
#

Using japanese characters in your global username smh

sullen thorn
#

make a bot assign nicknames in plain english to people whos global names dont conform to server standards...

sand goblet
#

Automating that is pretty rude

#

bot.hiphopify @hallow widget 1d

royal lakeBOT
#
Congratulations!

Your previous nickname, セーラー服, was so bad that we have decided to change it. Your new nickname will be Big Ed.

You will be unable to change your nickname until
Tue, 24 Jul 2018 12:28:10 GMT.

If you're confused by this, please read our official nickname policy.

bleak lintel
#

Big Ed the standard hip hopper

sullen thorn
#

lol

#

i didnt mean automating it into a random name

#

meant like if the name was Ҝ卄丨丨乃ㄖㄖㄒ丂 it got automatically changed to khiiboots or something

worn kite
#

That actually doesn't sound too bad to me.

#

Of course the person would have to be notified and informed of why it happened and that they can change it to something else suitable, of course.

#

There should be Unicode functions to get the closest ASCII letter to a symbol, I guess.

sullen thorn
#

get the bot to dm them that it happened or something

#

there is no unicode function like that lol - you can decompose the characters and remove stuff like emojis, combining characters, variation selectors etc...

#

and then you have to use imaging methods to compare the characters

sand goblet
#

I think I would probably rather deny verification

#

Or warn about it in the DM

worn kite
#
>>> s
'Ҝ卄丨丨乃ㄖㄖㄒ丂'
>>> f(s)
'KA????RRX?'
#

hmmm....

sand goblet
#

that is not gonna be easy

worn kite
#

Ayyy, I think I just found something cool...

sullen thorn
#

What function is that byte?

worn kite
#
>>> unidecode('Ҝ卄丨丨乃ㄖㄖㄒ丂 foo bär lôl ♫!!??')
"K'Nian Gun Gun Nai RRXKao  foo bar lol !!??"
#

this is cool!

sullen thorn
#

Oh that lol

#

That’s not what we want

#

That’s transliteration

worn kite
#

the f(s) was something I threw together myself

sullen thorn
#

Like it gives u the sound of he character

#

Byte can I add you to my normalisation repo in case you have something that could help?

worn kite
#

yeah, but that wouldn't be bad, no?

#

normalisation repo?

sullen thorn
#

Idk what do u call what we’re doing?

#

I have a github repo for it

worn kite
#

¯_(ツ)_/¯

#

My own function was

f=lambda s:"".join(m.group(1) if m else "?" for m in [re.search(r"LETTER (\w+)", unicodedata.name(x)) for x in s])
#

but it would e.g. replace numbers with ? too

sullen thorn
#

ok wait lemme give you something to try

#

i cant write it...

#

tf

#

bot stop deleting it

ebon quarry
#

Skoda most probably means something gross with eels and hovercrafts. hahaha

sullen thorn
#

lol what thought their logo was like a bird?

worn kite
#
>>> f=lambda s:"".join(m.group(1) if m else "?" for m in [re.search(r"LETTER (\w+)", unicodedata.name(x)) for x in s if unicodedata.category(x)[0] != "M"])
>>> f(s)
'STAMPECH'
sullen thorn
#

hmm?

#

uhhh

worn kite
sullen thorn
#

hmmm

#

lemme get another example then lol

worn kite
#

Actually this one is muuuuuch simpler:

>>> s.encode(encoding="ascii", errors="ignore").decode()
'Stampech'
#

but it probably recuires decomposing characters first

sullen thorn
#

hmm thats interesting

#

i did it a more manual way (but decomposed stuff too)

#

lemme check if my manual way is the same as checking if its a mark

worn kite
#

but that would onyl work for where the base character is ASCII, just with accents or zalgo and stuff

#

anyway, I should continue actual work now 😛

sullen thorn
#

lol k

#

does that character combine with other characters to create a single character?

#

cuz its not a mark

limpid pivot
granite lake
#

🤔

#

wym ?

old shuttle
#

hell no, even discord themselves want to make every single app to use rpc

granite lake
#

👌

#

That makes it fun

#

I feel nice having a status

limpid pivot
#

really

granite lake
#

Yeah

limpid pivot
#

k

sand goblet
#

Yeah, RPC is fine

#

I have a little Python script that uses RPC to set my "now playing" status for splatoon

limpid pivot
#

lol

granite lake
#

Btw Im waiting for fortnite android

#

Supposed to come out tommorow

bleak lintel
#

What android device do you have?

granite lake
#

Galaxy s7

bleak lintel
#

fairs

#

I don't think any of the android devices I have will support it

granite lake
#

Use bluestacks

sullen thorn
#

@worn kite

#

is there a better way of telling if a character is an emoji?

#

dont think theres an emoji category

rain spindle
#

@sullen thorn

#
# -*- encoding: utf-8 -*-
# pip install emoji

import emoji


def char_is_emoji(character):
    return character in emoji.UNICODE_EMOJI


def text_has_emoji(text):
    for character in text:
        if character in emoji.UNICODE_EMOJI:
            return True
    return False


if __name__ == '__main__':
    print(char_is_emoji(u'\u2764'))
    print(text_has_emoji(u'I \u2764 emoji'))
sullen thorn
#

thats taehoons thing no?

#

he literally does what ive done

#

get list from unicode site and use that

rain spindle
#

@sullen thorn there is a emoji module

#

That would be way more efficient to use

granite lake
#

@sullen thorn looks like you need to install the sublime text discord rp plugin

steel fox
#

Why can’t python have emoji variable names

sullen thorn
#

how would emoji module be more efficient? it literally does what i do afaik

#

although i guess it is what i asked for

#

so thnx 😃

rough sapphire
#

probably means convenient

granite lake
#

@steel fox you can probably store it in a dictionary

steel fox
#

Ew

#

I wanna just call my variable ✈️

sand goblet
#

You can only use unicode in variable names if it's an actual letter in some language

#

because python stops you from being a complete asshole

#

:P

steel fox
#

Time to open a PR and fix it

sand goblet
#

nah, they won't accept that

#

with good reason, too

granite lake
#

@steel fox Cant you do it in ruby ?

steel fox
#

Can do it in Xcode

granite lake
#

Ugh. Apple sh**

steel fox
#

👌👌👌

sinful copper
#

put all the defines and usings in #include <💩.h>

steel fox
#

Hmm

#

Honestly that’s not a terrible idea

#

This is why random deserves his yellow name honestly. He’s an idea man.

sinful copper
#

bourne was a big fan of algol - the only reason sh has a "done" keyword is because "od" was already taken by the octal dump tool

sullen thorn
#

can i be a developer too?

#

oh i am

#

everyones a developer

granite lake
#

lol

ebon quarry
#

yay

#

set up gitea + drone CI with a phoenix project

granite lake
#

@wraith umbra did you join replit server just now?

#

It's like you appeared there before me

#

I just got their email

#

🤔

steel fox
#

Been using type hinting a lot in this project and I really like it, gonna be type hinting everything from here on out

wraith umbra
#

Oh, I see

#

I'm a moderator on that server

#

I've been there for a while

granite lake
#

Oh lit

#

They should have made plenty people aware of that server long now

wraith umbra
#

I agree, however they wanted to wait

#

But it's here now 😄

granite lake
#

🔥

sullen thorn
#

@worn kite commander your category thing for unicode was helpful af - like i knew it existed, but i was too focused on sorting the unicode points through another method

#

but now im sorting them through categories

#

and its so much cleaner :)!!!

#

you helped me take a step back and look at my problem again 😃

worn kite
#

You're welcome 😄

steel fox
#

Just used raise() for the first time in a useful way im a professional developer now right?

granite lake
#

lol If you see it as that yes

sand goblet
#

Except raise isn't a function :P

tulip palm
#

don't give me ideas :)

steel fox
#

from __future__ import raise sure it is

#

it works like print right? xd

wooden kindle
#

Your first problem is using Python 2.x

steel fox
#

is no problem friend

#

ull pry 2.x out of my COLD DEAD HANDS

tulip palm
#

python 1 was hot

sullen thorn
#

was that even a thing?

bleak lintel
#

no it went straight to python 2 :^)

#

yes, it's a thing, and I've got it installed

sullen thorn
#

whats it like compared to py2?

bleak lintel
steel fox
#

gooder

bleak lintel
#

I mean obviously there were differences between the two, but I'm not aware of any because when I got into Python, Python 3 was taking off and people were dropping Python 2

sullen thorn
#

The append() method for lists can no longer be invoked with more than one argument. This used to append a single tuple made out of all arguments, but was undocumented. To append a tuple, use e.g. l.append((a, b, c)).

#

wtf u used to be able to do that?

steel fox
#

list comprehensions werent in 1.6

sullen thorn
#

python1 is better than python3

steel fox
#

agreed

#

look at that beautiful print statement

bleak lintel
#
>>> dir(tuple)
['__doc__', '__name__', '__self__']
>>> dir(list)
['__doc__', '__name__', '__self__']

#

python 1.6 everybody

sullen thorn
#

see? perfection

#

String formatting (s % args) has a new formatting option, '%r', which acts like '%s' but inserts repr(arg) instead of str(arg).

#

also is that still a thing?

steel fox
#

Augmented assignment operators, another long-requested feature, have been added to Python 2.0.

#

lul

sullen thorn
#

what are augmented assignment operators?

steel fox
#

+=

bleak lintel
#
λ python3.8        
Python 3.8.0a0 (heads/master-dirty:80e11a068b, May 29 2018, 03:39:46) 
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> class Person:
...     def __init__(self, name):
...         self.name = name
...     def __repr__(self):
...         return f"<Person name='{self.name}'>"
...     def __str__(self):
...         return f"A lovely person called {self.name}"
... 
>>> joseph = Person("Joseph")
>>> str(joseph)
'A lovely person called Joseph'
>>> repr(joseph)
"<Person name='Joseph'>"
>>> print("str: %s repr: %r" % (joseph, joseph))
str: A lovely person called Joseph repr: <Person name='Joseph'>
steel fox
#

-= etc

bleak lintel
#

yes it is still a thing

sullen thorn
#

oh

#

3.8 isnt out yet... thought 3.7 was the latest?

tulip palm
#

3.8.0a0 :D

bleak lintel
#

cpython master is currently on 3.8 alphas yeah

sullen thorn
#

oh

granite lake
#

lmao seriously joseph

#

you could've printed sumn more decent

robust sierra
#

Hi Jason

meager slate
#

hi

robust sierra
#

Bye Jason

meager slate
#

bye

robust sierra
#

Oh, hi there Jason!

meager slate
#

hi

sullen thorn
#

YAY IM BACK 😃

tulip palm
#

oh look, a brit

sullen thorn
#

rnt u a brit too?

#

"YOU CANNOT TALK !!! ONE MORE WORD AND I WILL FEED YOU TO MY CHILDREN"

tulip palm
#

yes i am

sullen thorn
#

i am kidding, we are vegetarians

#

lmao 😂

tulip palm
#

vegetarians because tea + crumpets are suitable for veggies

sullen thorn
#

lol for me its too warm for something as dry as crumpets, even with tea

tulip palm
#

nah man, drown that shit in butter and it's a fucking 👌

sullen thorn
#

also i only have blueberry jam rn - its not as like sticky or sweet, so wont stay on as well

steel fox
#

Vegetarians what

sullen thorn
#

need to get som strawberry

#

terribly quality, but thats the joke

tulip palm
#

terribly quality

sullen thorn
#

it's 30s, you'll survive

steel fox
#

If I had a Nickle for every pixel in that video I could get a $1 coke float now at Arby’s :TM:

sullen thorn
#

lmao its not that bad

tulip palm
#

if i had a nickle for every pixel in that video i'd get fuck all round here cause i'm british

steel fox
#

Fuck. My pc slept and I lost my timeit

tulip palm
#

oh yay!

#

now do it again

sullen thorn
#

u have the script lol, just run it

steel fox
#

Rip a 600,000 trial run of a string range(10**8) long

#

wha was i testing again dood

sullen thorn
#

bruh idk look at the script 😂

#

u wrote it

tulip palm
#

probably repl'd it

sullen thorn
#

u mong - why would u do that

#

can you even use timeit in repl?

tulip palm
#

well yeah

#

also lmao "u mong"

#

i should use that more

steel fox
#

unpacking is 1 less op code

#

its faster

sullen thorn
#

yeah but like is it really gonna make a difference?

#

its a tiny thing

tulip palm
#

do all opcodes take the same amount of time though?

#

it's not a tiny thing when a list(...) call is 3 opcodes

#

i believe

steel fox
#

no it wont

#

its been like .00004 seconds faster in trials

tulip palm
#

load list, load ..., call function

sullen thorn
#

woah 40 microseconds...

#

compared to the 600k lenght string

steel fox
#

list() has a function call too

tulip palm
#

that's what i was talking about

#

i wonder...

#

hmm

cosmic quiver
#

Why do you care about this performance

#

What optimiser flags do you run python with

#

Have you done benchmarks to see that list casts are your bottleneck

steel fox
#

he was just curious

#

he doesn't actually care

tough wyvern
#

i use rust

proper dune
#

me too thanks

#

good language

tough wyvern
#

oh yes

sand goblet
#

man

#

samsung are getting desperate

granite lake
#

lol

#

@tough wyvern I keep getting a error

#

In my basic wu program

tough wyvern
#

@granite lake oh yes, the print function isn't builtin yet - you'll need to bind it

#

print: extern def<T>(..T)

#

will make it a builtin function asap

granite lake
#

Okay

rough sapphire
#

uwu

tough wyvern
#

.. and finish the documentation

sinful copper
#

@sand goblet wait, what? i was supposed to get a free microsd?

#

just bought an S9 last week

sand goblet
#

Should have waited, eh?

sinful copper
#

looks like i'd have had to go to samsung and pay cash instead of paying 30 bucks a month to T-Mobile

#

and i did get to buy one get one free through t-mobile, so probably worked out better anyway

sullen thorn
#

so you got 2 s9s?

sinful copper
#

got new phone at the same time as my brothers

sullen thorn
#

ah k

knotty beacon
#

I think I'm going to make the hop to Project Fi next month

languid kelp
#

@sand goblet you think samsung is a worthy phone choice?

wild yarrow
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaahahahahahahahahahahahaha

#

no

steel fox
#

👌🏾 Apple 👌🏾

wild yarrow
#

idk about that

#

let's not get carried away

tame pier
glass gorge
#

Man I'd love to play Detroit become human FeelsBadEyes

tame pier
#

Clay go to sleep

steel fox
#

im having deep discussions about cat girls with @languid kelp

languid kelp
#

@wild yarrow what is a good phonee

wild yarrow
#

i dunno

solar zealot
#

ive always had good luck with HTC

#

but at this point

#

removable batteries lol

wild yarrow
#

i have yet to be happy with most phones, tho tbh my iphone SE has been nice

#

HTC phones are also good

#

i'd stay away from samsung and modern iphones

steel fox
#

god idk anything about this draft format at all @solar zealot lol

languid kelp
#

what is your reasoning behind staying away from modern samsung/iphones?

wild yarrow
#

lel standard is so weird right now. but it's funny. the uh. play all your artifacts and then replay them and whack for 50 is 👌

#

top tier meme combo deck

steel fox
#

ye

#

im doing hour of devastation x2, 1x amonkhet drafts rn

#

this format is so weird

wild yarrow
#

that sounds weird

languid kelp
#

are we still talking about modern phones

wild yarrow
#

no

#

we're onto MTG now

steel fox
#

ye just modern mtg phones

wild yarrow
#

specifically MTGA

#

lel Clay

languid kelp
#

what is the point of MTG

steel fox
#

self pain usually

languid kelp
#

i dont need MTG for that

wild yarrow
#

memes

#

it's memes

steel fox
#

just gonna stick to my Magic 2019 drafts

wild yarrow
#

creative stupid combo memes

solar zealot
#

i believe in you

steel fox
#

im 0-2

#

can i run it back for the 7 wins in a row

solar zealot
#

its ok Clay

wild yarrow
#

i believe in you

solar zealot
#

you are only 0-2 because you are total garbage

#

:^)

#

steel fox
#

if im so garbage

#

then explain my profile pic on fc being a dumpster

solar zealot
#

hahahaha

steel fox
#

opponent playing 5 color tho

#

maybe i'll win this

#

just got offered no real bombs

#

and my round 2 opponent played 4 defender dudes i cant kill then the white god lol

wild yarrow
#

hmm

languid kelp
#

is FTL worth $10?

wild yarrow
#

yes

#

fun game

languid kelp
#

is FTL worth paying $10 for

wild yarrow
#

but of an RNG heavy success problem, but it's not super terrible

#

you can do well p much every run

tame pier
#

Ftl is definitely worth $10

wild yarrow
#

but yeah

#

FTL is 👌

tame pier
#

Ftl is fucking amazing

steel fox
#

mr error

#

go to bed

languid kelp
#

@tame pier can you send me FTL

wild yarrow
#

they have a new game now

tame pier
#

And one of the few good games I can play on a plane

wild yarrow
#

it looks awesome

tame pier
#

@languid kelp no go buy it

languid kelp
#

@tame pier but i am poor

tame pier
#

I'm sorry

languid kelp
#

@tame pier send me a copy

tame pier
#

No

languid kelp
#

but you're sorry?

#

you won't be sorry if you send me acopy

#

i'm just kidding, that would not be legal, to send a copy.

tame pier
#

You don't understand that usage of sorry apparently...

languid kelp
#

haha i was only pretending

steel fox
#

haha it was just a joke

tame pier
#

Obviously illegal

steel fox
tame pier
#

Haha

#

Hahahah

steel fox
#

thats me when i text my ex

#

haha no i dont actually have feeling for you haha just joke haha dies inside

tame pier
#

print(10 * 'haha')

wild yarrow
#

texting your ex

solar zealot
wild yarrow
#

badidea.jpg

steel fox
#

haha was joke tho

gentle moss
#

DO WHAT YOU WANT CUZ A PIRATE IS FREE

steel fox
#

haha

tame pier
#

@solar zealot wtf

solar zealot
#

lord bisk gets it

gentle moss
#

:3

steel fox
#

YAY I WON A GAME

#

LETS GO BOYS

tame pier
#

Oh lol

wild yarrow
#

NICE

#

👍

solar zealot
tame pier
#

Ah

gentle moss
#

old memes

solar zealot
#

kinda nsfw but not really, but also kinda yes

#

im not sure what it falls under

#

you're the mod you tell me

gentle moss
#

nsfw-ish

#

like some jobs would be like "wtf u lookin at that for"

steel fox
#

market research is always the answer

solar zealot
#

feel free to delete if its too much

#

but its a tragedy you didnt know about the video

steel fox
#

seems like mono white is the good color this format

#

almost all my opponents been white/x

solar zealot
#

white and green are considered quite strong

steel fox
#

im RW

#

with an island to represent freedom

solar zealot
#

rofl

tame pier
#

Lol that video is funny lol

solar zealot
#

yes, yes it is

steel fox
#

haha funny video friend

#

thank you @solar zealot very cool

solar zealot
#

haha

tame pier
#

haha

solar zealot
#

more where that came from

tame pier
#

haha

languid kelp
#

er

#

that disappeared before i could click it

steel fox
#

party in general voice chat friends

tame pier
#

haha it's 1am haha

languid kelp
#

@solar zealot pm post pls

solar zealot
#

sorry

tame pier
#

I see a parrrrty of one lad

solar zealot
#

just de-playlisting it

#

theres the video

languid kelp
#

cool

#

is that a good anime?

solar zealot
#

i enjoyed it

#

also

#

this is one of my favorites

#

it deserves more views

#

give it one

steel fox
#

how does it fall between ghost in the shell vs cory in the house

languid kelp
#

"This is about the most american anime I have ever seen in my entire life. It's so disgustingly terrible. "

solar zealot
#

@tame pier have you seen Shelter

tame pier
#

Lol it's snoop

#

No

#

Wait

#

Yes

solar zealot
#

REALLY?

#

oh ok

tame pier
#

The song

solar zealot
#

good

tame pier
#

And the video

solar zealot
#

yes

tame pier
#

By that guy

#

The guy

solar zealot
#

yup

#

exactly

tame pier
#

Who does the music

#

With the electronic computers

solar zealot
#

Porter Robinson

#

& Madeon

#

the video is done by A-1

tame pier
#

That's the one

#

Yes

solar zealot
#

2manyfeels

tame pier
#

Do you follow Gigguk?

solar zealot
#

i don't but ive watched some of his stuff, he shows up in my recs

tame pier
#

Yeah

#

I think that's how I found out

#

Because holy shit A1 pictures

#

Alright I killed chat mission accomplished now time for sleep

steel fox
#

2-2 FRIENDS LETS GOOO

#

3-2 friendos

solar zealot
#

hes going the distance~

#

hes going for speed~

wild yarrow
#

AW YEAH

steel fox
#

last opponent was platinum i think lul

languid kelp
#

@solar zealot please send me all your memes

steel fox
#

its a trap dont do it

languid kelp
#

how is it a trap

steel fox
#

i think we both know the answer to that

languid kelp
#

i don't

solar zealot
#

i won't send all of them

#

and im not going to dump them

wild yarrow
#

👌

languid kelp
#

will you send a nice amount of them please kind sir

#

my computer accepts traditional file formats, including .zip and .tar

solar zealot
languid kelp
#

if you put them in a zip file its easier to send

solar zealot
#

I know

#

ill consider it

languid kelp
#

thank you grumpy

steel fox
wild yarrow
#

lmao thopter arms race

#

👍

#

i appreciate people who play funny decks

steel fox
#

neither my opponent nor myself have attacked in like

#

11 turns

wild yarrow
#

wat

steel fox
#

ya lol

#

just a complete stalemate on board

wild yarrow
#

lel

#

someone should just attack, fuck it

steel fox
#

my gameplan is

#

winning when his cards hit 0

languid kelp
#

is MTGA like D&D

steel fox
#

ya except for the dungeons

#

it has dragons though

wild yarrow
#

MTGA is like MTG but online :P

steel fox
#

the YOLO strategy

#

ayy he fucked up and i won

#

4-2

#

damn the dream died 4-3

#

lol doing m19 pack 1 pick 1 tezzert, pack 2 pick 2 liliana

solar zealot
#

@steel fox im going to make UG merfolk

#

fun as hell

steel fox
#

Ayy

#

Went into m19 draft with my winnings from the cheap one. Wound up 0-2 but I got a liliana and tezzeret plus a couple bad cards I wanted

solar zealot
#

you get a bunch of cards for draftin

#

win or lose

#

if you get 3 wins you get your gems back too

steel fox
#

Mulled to 4 twice first round. Second game opponent had turn 4 10/10 and then gave it trample. Lul. Feels not a good game either time man

#

I like drafting. Especially when I can do it st my own pace like you can online

solar zealot
#

right?

#

i really dig MTGA so far

#

the lack of friends list really sucks

#

I think they should do that quickly

rain spindle
worn kite
#

I recommend Lisp

bleak lintel
#

Lisp is great

worn kite
#

It should be pronounced Lithp 😛

sand goblet
#

Recommend Hy

#

:P

#

it's exactly what he wants

bleak lintel
#

Hy is pretty nice

#

elisp is great

rough sapphire
#

@worn kite That's made me chuckle too much

sand goblet
#

It's amusing to me that weechat can't relay from another weechat using its own relay protocol

south pier
tame terrace
#

oh shit pipenv support

#

I neeed thaaaat

#

oh my god the quick documentation thing looks unbelievably useful

#

and 2018.2 apparently now checks if you're correcting awaiting async code

sand goblet
#

Can't wait for that to hit the AUR

worn kite
#

You don't use the Toolbox?

cosmic quiver
#

^

tame terrace
#

I don't understand the question

cosmic quiver
#

EAPs for life

#

Jetbrain toolbox

#

You can install EAP versions

#

Which are like

#

beta releases

#

It also has RST rendering now

tame terrace
#

yes gdude and I both have toolbox licenses

#

don't have the app

#

didn't know there was an app