#ot1-perplexing-regexing

1 messages ยท Page 373 of 1

velvet rapids
rough sapphire
#

oh, it's too new

#

try this one

velvet rapids
#

oof

rough sapphire
#

should work

velvet rapids
#

How do I uninstall it?

rough sapphire
#

it didn't install

velvet rapids
rough sapphire
#

wut

#

have you actually downloaded the file yet

velvet rapids
#

Yeah

rough sapphire
#

what about dpkg -i ./chromium*

velvet rapids
#

I guess that worked

rough sapphire
#

sure

velvet rapids
#

works thanks ๐Ÿ™‚

#

My script works

rough sapphire
#

np :+1: glad you got it working

limber island
#

Well

#

It is Arch on Termux

#

But eh

#

Same thing

pearl horizon
#

Install gentoo

limber island
#

I may actually try it

marble sentinel
#

Stares at raspberry pi B on my desk

#

someday...

dense stratus
#

why do people install gentoo?

#

Ooh, that sounded wrong.

#

I mean why "specifically" do they install Gentoo, as opposed to any other distro. What is the main draw to Gentoo?

sand goblet
#

Customisable kernel I suppose

#

And some people hate systemd for whatever reason

dense stratus
#

oh, it has no systemd still

#

didn't realize that, thought slackware was the last one without

sand goblet
#

It's an option

#

You can have systemd or.. Upstart? I think?

#

Or was it rc.d

#

I can't remember

dense stratus
#

okay, been hearing several people mention gentoo the past 4 or 5 days and I hadn't heard much talk about it in so long

void salmon
#

some people use void because they dislike systemd as well

sand goblet
#

I like systemd

#

\o/

dense stratus
#

I am .... ambivalent ๐Ÿ™‚

#

I am just not good at system admin. as long as someone else keeps the machines running and the bad guys out... I can make magic

vestal briar
#

I'm meh on it

#

Would prefer it with some changes lets say

marble sentinel
#

I've tried various linux distro's over the years, but haven't stuck with one for more than a few months

#

I like Mint tho

chilly sinew
#

I've been using Ubuntu for ~6 months now

vestal briar
#

I just stick to ubuntu

#

Works nicely on desktop and servers, no need to change

chilly sinew
#

I kept windows on my desktop

#

but ubuntu laptop is great

vestal briar
#

I have windows + ubuntu vm on desktop

#

And full ubuntu on laptop

marble sentinel
#

Funny, I installed Ubuntu on a USB stick recently and it messed with the windows bootloader on my desktop

vestal briar
#

Best option for on-the-go imo

#

Unless you're that person with the 24" ยฃ1.5k gaming laptop

marble sentinel
#

Ubuntu VM for daily linux stuff on desktop sounds nice

chilly sinew
#

lmao

marble sentinel
#

That's... a big laptop

chilly sinew
#

I just use my laptop for most stuff

#

Although I have to use windows for my work atm

#

Seeming as there is no support for asp.net and iis in linux

marble sentinel
#

I like the linux CLI commands better than cmd.exe's

chilly sinew
#

everybody does

marble sentinel
#

So I use CMDer on windows

chilly sinew
#

Nobody thinks DOS > Bash

marble sentinel
#

Haha. Glad I'm not alone then :p

vestal briar
#

Some sysadmins thing ps > bash though

dense stratus
#

why not just use bash on windows

vestal briar
#

I don't see it

marble sentinel
#

bash on windows is a thing? ๐Ÿ˜ฎ

chilly sinew
#

There's a bash terminal you can get

vestal briar
#

That's WSL

chilly sinew
#

git bash

vestal briar
#

Not really a fully-fledged shell though

chilly sinew
#

ye

#

Good enuff tho

vestal briar
#

Eh yeah

marble sentinel
#

Aah, right. I think I did have git bash installed on a previous installation of win10 but had to reformat for some reason

vestal briar
#

Powershell is just.. annoying for me

#

Better than basic dos cmd.exe

#

But if you're going bash-like, just make basically a ported bash

#

Not change 20% of the commands to make it more windows-ey

dense stratus
#

WSL or Msys, or better yet Cygwin64

#

win git

marble sentinel
#

I think making the commands more windows-y is for the people that don't use bash, but if they used bash, they would like it anyways

dense stratus
#

they all come with a bash

sand goblet
#

I use clink on windows

marble sentinel
#

I will check all of those out rn, tyvm ๐Ÿ™‚

sand goblet
#

It adds readline and some bash features to cmd

vestal briar
#

Unfortunatly none of them really give nice native feel and speed

sand goblet
#

Clink does feel native

#

But it really is literally cmd with more stuff

vestal briar
#

So it's a cmd.exe shell

sand goblet
#

It's cmd but with stuff like saved command history, prefix history search, etc

#

It's basically QoL

marble sentinel
#

prefix history search is a godsend

vestal briar
#

Wait is it a full bash or just cmd.exe with what zsh is to bash

sand goblet
#

It's literally cmd.exe with extra stuff

vestal briar
#

Oh

sand goblet
#

Not the emulator

#

The shell itself

vestal briar
#

Ik

sand goblet
vestal briar
#

I'm just wanting powershell to be a bash windows rewrite tbh

marble sentinel
#

cygwin64 looks right up my alley

vestal briar
#

cygwin64 sounds good but have heard some issues with it in use

sand goblet
#

Cygwin is more of a pain in the ass than you might think it is

#

And it's mostly useless anyway now we have WSL

vestal briar
#

I'll just stick to my vm

marble sentinel
#

WSL sounds like it's more intended to give Linux installations more Windows-ish commands

#

From what I know about it, which is little

sand goblet
#

No, it's the other way around

marble sentinel
#

Ah. That seems very, very useful then

sand goblet
#

You're installing a Linux distro, a real one, under a compatibility layer within windows

#

You type bash in a terminal

#

And suddenly Linux

marble sentinel
#

Oh, that makes total sense

#

That is very, very cool

sand goblet
#

It's actually really well done

vestal briar
#

Basically an integrated vm

sand goblet
#

WSL 1 is not a VM

vestal briar
#

Mhm

sand goblet
#

WSL2 is but it's not out yet

vestal briar
#

Don't most use WSL2 anyway

void salmon
#

git bash i kinda fun i guess? linux terminals are just more comfy in general

sand goblet
#

I mean git is essential to have installed natively anyway

#

But you don't have to actually use git bash

#

And you probably shouldn't, it's not very good

limber island
marble sentinel
#

I've used git bash like once, but it was fun. Or at least friendly to users used to CLI stuff. I was not one of those people at the time, lol.

sand goblet
#

Git bash has a lot of quirks and oddities

void salmon
#

why would you need faster lolcat ๐Ÿค”

limber island
#

It doesn't work will with ArchOnTermux eheheh

sand goblet
#

You don't notice them if you're just using git

#

But if for example you tried to use the SSH executable for.. Well, SSH

#

If you wanted to use something like screen or tmux then all kinds of weird things can happen

#

(for example)

#

It just wasn't designed for anything but git

void salmon
#

i've never ssh'ed into something before

#

maybe i'll set that up for my phone? just haven't seen the need

sand goblet
#

Servers mostly

marble sentinel
#

It was useful to SSH into the headless rPi on my desk, when I had it set up and running.

sand goblet
#

Yup, that too

marble sentinel
#

Mainly used it for games, as in emulators. Was easy to open a cmd window and SSH to it to add ROMs.

rough sapphire
#

so... basically, I just want to find out which programming language is right for me. I feel like there's a language I might naturally like because it would match to my personality or something, or who knows. I've tried Python, I know everyone says python is the best. But it just doesn't 'click' with me.I just got bored easily. I'm prolly making no sense rn. Should I try and learn something else? Is there anything you guys suggest? I'm not sure. Also I'm new on discord so if I do something wrong just let me know

vestal briar
#

What kinda thing you looking for?

#

@rough sapphire

worn rampart
#

@rough sapphire what sort of things are you trying to make?

#

and what have you done so far?

pine vector
#

a bootloader, like GRUB.

#

careful... the Windows bootloader is stingy. ๐Ÿ˜„

terse sluice
#

have you disabled secureboot and and changed your boot order in bios?

rough sapphire
#

@sand goblet I use git bash all the time with no issues

#

it's literally just msys2 with a different name slapped on

solid pollen
#

Really? I thought they were used internally

rough sapphire
#

and here I thought this was common knowledge

#

but here we are

edgy magnet
#

Ah I still have my floopy Windows installation 5/980123

sand goblet
#

I knew that too!

#

Okay SwiftKey

#

We need to talk

rough sapphire
#

mc-mods

sand goblet
#

mc-mods is not an exclamation point

#

Man I wish SwiftKey wasn't simultaneously the best and the worst keyboard I can find

solid pollen
#

I quite like it, but I prefer the default keyboard on iOS

sand goblet
#

I don't like the iOS keyboard but that's okay, I'm not on iOS

solid pollen
#

I actually just like the sweepdown feature

#

But i think it is a really good design

gentle moss
#

oh god

#

are the yoof getting uppity again?

rough sapphire
gentle moss
#

i've got an 8" floppy for you

#

let me slip it in

wanton glacier
#

owo

gentle moss
rough sapphire
#

me thumb hurts :<

#

too much programming

solid pollen
#

What is the chance that this command work git clone git@github.com:EpicGames/UnrealEngine.git && cd UnrealEngine && git checkout release && patch Engine/Build/BatchFiles/Linux/SetupMono.sh /tmp/unreal-engine/use-arch-mono.patch && ./Setup.sh && ./GenerateProjectFiles.sh && make haha

#

F*** the patch command is missing the ./

#

It isn't looking very good

rough sapphire
#

wrote 300 line of code just to scrape it in the end ;-;

dense stratus
#

that's good.. Throwing away code is a good thing. People are too "precious" about code just because "I've already typed it in" Think of it like solving a maze, once you hit a dead end, you have to back up and go a different way, forget those steps you took in that specific direction

#

And now you know which 300 lines of code aren't the solution.

rough sapphire
#

@dense stratus you solve mazes by going back to the very beginning?

#

oh right, you mean backtrack just enough

dense stratus
#

no, did I say that? I said you go backwards.

rough sapphire
#

I don't know. my mind read that wrong

dense stratus
#

Just because you went 300 steps in the wrong direction, doesn't mean you need to preserve those steps

dense stratus
#

It is one of the nice things about doing TDD kata. You kind of get used to tossing code away.

gentle moss
#

woah

#

britney is a commie

#

trying to think of a pun but i'm drawing blanks

rough sapphire
#

hey bisk

#

you speak English right.. could you pop over to #career-advice for a sec

#

(by which I mean you're a native speaker)

solid pollen
#

\o/ UE4 built from source in 2h15

solid pollen
#

RealPython gave away 5 video course for free to all users subscribed to their newletter

#

That's cool

plucky ridge
#

Nifty

#

How is their paid stuff?

#

I've only read their free articles

solid pollen
#

They have video course and stuff

#

They gave anyway the pytricks book for free for christmas too

plucky ridge
#

Oh cool. I aspire to be able to explain stuff as clearly as they do

solid pollen
#

You are pretty close tbh lemon_pleased

plucky ridge
#

I fumble over topics I'm just understanding, though.

#

I want to get better about that

#

Sure I've got some of them down with the examples I have but other things I tend to just make up terms or refer to stuff as "the list thingy"

solid pollen
#

I like how one process is using 201% of my CPU right now haha

sand goblet
#

100% is one core on Linux

solid pollen
#

You break all the fun

#

I'm surprized that one process can use two cpus though

#

Hmn, a process can have multiple threads

#

Don't worry, I just need to think

rough sapphire
#

if you want to get technical, threads are a type of process

solid pollen
#

Oh interesting

velvet rapids
#

Any ideas? Selenium shooting this error

#

I get the error on my rpi but not my computer

plucky ridge
#

What's the site? Is there no API to use?

velvet rapids
#

I think the problem is I need to click on a textbox to type in it

#

Welp that didnt work

plucky ridge
#

I mean what are you even trying to do on it?

solid pollen
#

I learned today how to create C++ functions for UE4 and then access those in form of nodes inside the visual scripting interface

#

It felt like black magic

sand goblet
rough sapphire
#

how in the fuck do i make friends as an adult

compact glacier
#

no idea

rough sapphire
#

https://www.wikihow.com/Make-Friends wikihow is always here to help you

wikiHow

Meeting new people and making friends can be overwhelming, but with a little effort and willingness to step outside of your comfort zone, you can easily make friends. Start by getting yourself out there and looking for places to socialize,...

plucky ridge
#

@rough sapphire If you figure it out let me know

#

The best I have is you guys on here

rough sapphire
#

same.

plucky ridge
#

Okay, can explain something to me? I'm trying to wrap my head around why so many programs went from normal number versioning to using the current year as the major update number

rough sapphire
#

Like Ubuntu?

#

You can at a glance get an idea of how old a release is, I imagine.

#

You can see that 16.04 for example is nearly 4 years old

plucky ridge
#

Sure, except that that some get updated even within the next year but don't change the major version number

rough sapphire
#

ยฏ_(ใƒ„)_/ยฏ

plucky ridge
#

Like I get it if you're updating your stuff like clockwork, but if not then it just feels pointless and clutters up the versioning

rough sapphire
#

Oh sure. I remember when Firefox didn't follow Chrome's release cycle as well

#

So now it's just 70~ whatever rather than the slow versioning they were doing before

plucky ridge
#

Just seems stupid

#

Only update the major number when you have a major change

rough sapphire
#

That's how it should be, but idk

sand goblet
#

I am a fan of semver too but you can use the year

#

Jetbrains does it as well, and we're still on IDEA 2019.9

#

But we'll get 2020.3 soonish

plucky ridge
#

I just hate it

sand goblet
#

It's just a bit more user friendly than an arbitrary number

plucky ridge
#

Sure it gives you a general guess as to when it was last updated, but so does a date stamp

rough sapphire
#

Which no one will check

sand goblet
#

Well yeah, but users aren't always programmers

plucky ridge
#

I mean you say that but I still have to explain that to some of my coworkers when their program still says 2019 well into 2020

#

"Okay so it KIND of means the year but not really"

#

End of Hemlock McGrumpy rant

opaque anchor
#

I'm planning to work on an esolang

#

Here are my core principles

#
  1. Everything is an expression
#
  1. Objects are anonymous
#
  1. Full Evaluation Control
#
  1. Plenty of new Convenient Syntax
#
  1. Full Scope Control
#

Ok

signal bronze
#

hello

plucky ridge
#

@ashen dome Nah it's pretty sublte

#

Easy to miss

#

The icon animation gets changed periodically

vestal briar
rough sapphire
#

burp recently changed to the [year].[month].[version] system recently which caught me a bit off guard

undone berry
#

What is the advantage of that system?

vestal briar
#

Isn't it obvious?

undone berry
#

The normal way seems much easier

vestal briar
#

You know the date of the release and easier to remember

undone berry
#

I don't see any major benefit in linking the date to the version though

vestal briar
#

I'd rather have 2019.7.312 then 342.734.312r

undone berry
#

I'd prefer the latter

vestal briar
#

Dates are easier for us to remember and we can easily compare releases

rough sapphire
#

it makes it much less clear when there's been a big (and potentially compability-breaking) update though

primal spruce
#

one good argument for the latter is that it's much easier to see what comes after

vestal briar
#

Ususally they come once a year

primal spruce
#

like, bigger number, newer. hurr durr. simple.

undone berry
#

The default versioning system is very clear. Linking it to date doesn't seem to provide any intrinsic benefit

vestal briar
#

And for a regular release user-ended product for what that system is meant for, always a ton of breaking changes so having another number at the beginning doesn't matter (going from 42 to 43)

#

And easier to market

undone berry
#

I don't think its easier to market

#

I think versions 1,2,3 etc are just as clear

#

as 2018, 2019, 2020

vestal briar
#

2020-02 makes it seem newer then "woah 43.2341.1r is out!"

undone berry
#

Its more like "Wow, version 4.4 is out"

#

which is pretty understandable

vestal briar
#

Less marketable

#

As I say

rough sapphire
#

"oh, no, that doesn't run on python 2017.03.2, you need python 2020.06.3"

undone berry
#

I don't think it is

#

I don't see any marketability benefit

#

Both can be marketed well, both can be marketed poorly

vestal briar
#

To a consumer unfamiliar to a product, "Wow, version 4.4 is out" means squat

undone berry
#

no it doesn't

#

I don't know why you think

#

people can't comprehend

#

bigger number means better

#

its pretty simple

pearl horizon
#

== 16 passed in 8.96s ==

#

This makes me very happy

vestal briar
#

??

#

If a user doesnt know what number it was on before

#

"Wow, version 4.4 is out" doesn't mean anything

#

But if you hear "Wow, version 2020.03 is out" you know it's recent and can gather more context

#

It's made for marketing, that's why blurpsuite and unity used it

pearl horizon
#

Oh, you're right

#

There were 3 tests failing when I came home from work. Leftovers from last night. Got two properly fixed. Am working on one now that is still having intermittent failures

#

And all of this is still an improvement from 0 tests a couple days ago

lost radish
#

Quick bash question. How do I say "rest of the arguments except for the first one"?

#

like $* -= $1

#

$2onwards

#

$2+ $2* I feel like I'm close

#

I should have googled it first. My bad.

shift
stuff "$@"```
#

ah

#

wonder if its arg 0 that was shifted

#

ah

#

the package command is overriding my bin file command

#

bummer

#

ha

#

stupid

#

In case anyone else gets stuck with multiple python installations, and pip doesn't reflect the newest one

rough sapphire
#

bummer
@lost radish if your pip appears in $PATH before the "real one", yours will be always used instead

lost radish
#

it must not have then

#

I opted to just start taking the time and typing it out

#

less lazy, more (sorry, got lazy. todo: finish)

rough sapphire
#

haha

lost radish
#

Gotta love when you condense more than a screen full of code into a handful of lines

glass gorge
#

Man birthdays during this quarantine stuff is boring. The Reddit posts were right

bleak lintel
#

is it your birthday flops is it your birthday flops is it your birthday flops

#

happy birthday!!!!!!!!!

gentle moss
#

we should give him birthday flops

bleak lintel
#

interesting URL egg_eyebrow_raised

#

lol

gentle moss
#

rofl

stark prawn
#

๐Ÿฅณ

glass gorge
#

yes

#

yes yes yes yes yes @bleak lintel

#

Thank you guys ๐Ÿค—

rough sapphire
#

merry birfamus dingus

glass gorge
#

What a day to be locked down to writing migration sql

solid pollen
#

Happy sql migrations birthday! lemon_pika

rough sapphire
#

happy birthday ๐Ÿฅณ

undone berry
#

happy birthday ๐Ÿฐ

glass gorge
#

๐ŸŽ‚

#

Can the weekend just start already

undone berry
#

assuming you're working from home it can. Just set up some janky chatbot to reply on slack/whatever for you for the rest of the day

#

voila

glass gorge
#

Nah, gotta finish the one task i was given first

vestal briar
pine vector
#

hbd Floppy. its been a while since we had it land on a weekend...and this is what we get? ๐ŸŽ‰

urban night
#

What is this game

#

Anybody know

plucky ridge
#

Not much to go on

#

Square shaped darts?

sand goblet
#

You put reversi pieces on it

#

I forget what it's called though

plucky ridge
#

My second guess was going to be a board for axe throwing

sand goblet
#

you put them where the lines junction/corner

sinful copper
#

google image search thinks it's a blueprint for a roof

plucky ridge
#

And this is why I'm not super concerned about machines taking over the world quite yet

gentle moss
#

you see that recent proof of concept some university smart people did?

#

the way some ML packages downscale images means you could have a picture of a cat 4x the size of the allowed input with a dog hidden in the pixels

#

on the downscale the picture of a cat, becomes a picture of a dog

#

so you can poison the data

silk geode
#

@urban night it looks kinda like this
https://en.wikipedia.org/wiki/Morabaraba

Morabaraba is a traditional two-player strategy board game played in South Africa and Botswana with a slightly different variation played in Lesotho. The game is known by many names in many languages, including mlabalaba, mmela (in Setswana), muravava, and umlabalaba. The game...

sinful copper
#

doesn't sound like it uses reversi tiles [well, like, you could, but from the article there's no move where you replace one color directly with the other, so no reason to]

gentle moss
#

There are three main phases to the game:

Placing the cows
Moving the cows
Flying the cows

#

sign me the fuck up

#

If a player forms a mill, he or she may remove or "shoot" one of the opponent's cows

#

get to shoot em too

#

the rules are quite simple actually

#

cool

#

it's very fast paced

#

general sort of rule is if you get 3 in a row you can then pew pew theirs and the game ends when they either have less than 2 cows left or i guess can't form a block of 3

#

it's hard to tell what colours what in that one

rough sapphire
#

I'm in love with both extremes of programming abstraction I guess. I love both python and assembly, but hate pretty much everything in between. Can anyone relate?

pearl horizon
#

I know what you mean. Loved assembly, but have a very hard time without a CS background. I spent a good bit of time last summer learning some basic 64bit Linux assembly.

glass gorge
#

@pine vector Yours is today as well?

pearl horizon
#

For the in-between cases, I always find myself going towards one extreme or the other. Why make in Rust, what can be done in C. Or why write a bash script when python will work just as well, and be easier to implement

pine vector
#

Tis indeed.

undone berry
#

happy birthday to you as well

glass gorge
#

Happy birthday birthday sharing guy!

#

To think that was a possibility.

#

I thought I owned this day

plucky ridge
#

That's what the court document claimed, anyway

undone berry
#

There's the whole how many people in a room til your birthday clashes paradox thing

pine vector
#

I abdicated my ownership when you came about... ๐Ÿ˜‰

glass gorge
#

Are you assuming my age?

pine vector
#

well, yes. at least that its a smaller number than mine.

glass gorge
#

I am rightfully offended on a sarcastic level!

pine vector
#

hehe

glass gorge
#

You probably are, if you claim it's a high probability :P

#

I'm 24

dense stratus
#

24 really?

pine vector
#

yeah...i was driving.

glass gorge
#

Yea?

dense stratus
#

wow, is that old or young for here?

glass gorge
#

รธรธรธรธรธh

plucky ridge
#

Average

#

Ish

glass gorge
#

I suppose yeah

plucky ridge
#

Actually we probably average out to late teens early twenties

glass gorge
#

Fair share of all ages tbh

plucky ridge
#

But we have some old fogies around here that bend the curve a little

undone berry
#

you should do a survey

#

to get an idea

#

not just for age

#

but for other stuff

pine vector
#

i'd expect mean. average is prob 20's.

dense stratus
#

seems in the evenings I run in to a lot of 2nd and 3rd year HS kids and only occasional a 1st or 2nd uni

plucky ridge
#

Median is likely lower

dense stratus
#

well you can only go so low, right, have to be 13+ to be here?

plucky ridge
#

Supposed to be yeah

glass gorge
#

There's probably a few below

plucky ridge
#

But we don't do shakedowns to find out

glass gorge
#

Hiding in the shadows

velvet rapids
#

Whats the single whitespace thing in python? \r?

dense stratus
#

well in that case I am also 24

plucky ridge
#

If they slip up and let us know they are, then our policy is to just temp ban until they would be the right age

undone berry
#

I imagine the median age is somewhere in the 16-20 range

plucky ridge
#

Yep, that's my guess

undone berry
#

there seems to be a lot of youngish people

dense stratus
#

||with 31 years experience||

plucky ridge
#

Yeah you've been doing this 24 year old thing for quite a while, Abs

velvet rapids
#

You tempban them until they're 13?

plucky ridge
#

You're pretty good at it

glass gorge
#

Hey guys, is anyone born in 2007 or later? I have a special secret for you :))

plucky ridge
#

Yeah, we have in the past, Merc

dense stratus
#

You bet!

velvet rapids
#

Oh Discord TOS is above 13

dense stratus
#

I even have a picture around that age that I used for at least 15 years as an avatar

plucky ridge
#

Right

plucky ridge
#

HA

#

Single white space?

#

Like

#

A space?

#

Or

glass gorge
#

Is there a character for that?

velvet rapids
#

Yeah like

plucky ridge
#

' '

#

Literally just a space

velvet rapids
#

Yeah that ^

dense stratus
#

well it's most websites, if you have kids under 13 you have to do special things

glass gorge
#

Can't say ive used it if there is

plucky ridge
#

No I'm saying it's literally a space

velvet rapids
#

There's no like \r and stuff?

rough sapphire
#

%20

glass gorge
#

\r is cursor reset afaik

velvet rapids
#

Okay

plucky ridge
#

There might be but there's no reason not to just use a space

velvet rapids
#

Yeah, idk why I didnt just use a space

plucky ridge
#

You're over thinking it

#

It happens

glass gorge
#

I just remembered my groceries are thawing in the kitchen..

#

brb

velvet rapids
#

Why is this check returning False ๐Ÿ˜ญ

plucky ridge
dense stratus
#

\space

velvet rapids
#
    @staticmethod
    def ascii_checks(words):
        print(words)
        printable = """abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?' """

        if isinstance(words, str):
            if words.__len__() == 0:
                return False
            if not words:
                return False

            for letter in words:
                if letter not in printable:
                    return False
            return True

        elif isinstance(words, list):
            print(words)
            for word in words:
                if isinstance(word, str):
                    if words.__len__() == 0:
                        return False
                    if not words:
                        return False

                    for letter in words:
                        if letter not in printable:
                            return False
                    return True
                else:
                    raise Exception(TypeError)

            return True
        else:
            raise Exception(TypeError)
#

It returns false ๐Ÿ˜ฆ

undone berry
#

possibly the best character in the best show @plucky ridge

plucky ridge
#

Okay at that size it might be better if you use the hastebin

velvet rapids
plucky ridge
#

For sure

#

That man is amazing

velvet rapids
#

whats the thing

undone berry
#

although - I guess he was partly responsible for cabbage corp

rough sapphire
velvet rapids
#

I don't want punctuation

#

Just a few of them

plucky ridge
#

Was he? I thought he was just a scapegoat

undone berry
#

oh wait

#

yeah

#

cabbage corp were actually good

#

damn

#

or neutral I guess - no corp can be truly good

plucky ridge
#

Yeah he got unfairly shafted constantly

velvet rapids
#

Here

dense stratus
#

\N{SPACE}

rough sapphire
#

What should it do on spaces, split?

velvet rapids
#

Nothing

#

it should allow spaces

rough sapphire
#

'allow'?

velvet rapids
#

There is a space in the end of printable

#

So shouldn't cause any issues

#
if letter not in printable:
#

So it should allow

#

Because it is in printable

#

oh lmao

#

oops

glass gorge
#

@plucky ridge No cabbages, but saladheads!

rough sapphire
#

I think you're checking if the full string is in it

velvet rapids
#

Yeah

rough sapphire
#

Rather than iterating through the letters

velvet rapids
#

Not the letters

glass gorge
#

if words.__len__() == 0: just do if not words

dense stratus
#

those are not strings, those are a list of strings

lime bison
#

Just throw a breakpoint and see where it returns @velvet rapids

glass gorge
#

or to be explicit if len(words) == 0

velvet rapids
#

Actually wait, I am checking letters

#
                    for letter in words:
                        if letter not in printable:
                            return False
dense stratus
#

but you pasted lists of strings

#

not strings

velvet rapids
#

Nevermind yeah, need to make it word

dense stratus
#

["hello", "there"] is not a string

glass gorge
#
- for letter in words:
+ for letter in word:```
#

Yeah, i guess that's what you figured out

solid pollen
#

Truthiness testing (the thing that decides for an implicit if conversion) fallbacks on __len__ if __bool__ isn't defined anyway

rough sapphire
#

errr

dense stratus
#

either test each element in the list, or join them together before passing them in

rough sapphire
#

sec

solid pollen
#

_Quick, edit! _

#

Oh well

#

There is support for edited messages now

velvet rapids
#

Done, thanks ๐Ÿ™‚

glass gorge
#

it works?

rough sapphire
#

!e

printable = """abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?' """
a = ['somebody', 'once', 'told', 'me']
for each in a:
    for each2 in each:
        if each2 in printable:
            print(each2)
royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

001 | s
002 | o
003 | m
004 | e
005 | b
006 | o
007 | d
008 | y
009 | o
010 | n
011 | c
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/omuluxujus

rough sapphire
#

๐Ÿ‘ Ha-za!

#

that the world is gonna end...

dense stratus
solid pollen
#

Edited message can be re-evaluated using a little emoji that appears yep

velvet rapids
#

Works, yeah

rough sapphire
#

" Somebody once told me the world is gonna roll me"

velvet rapids
#

@royal lake eval is super cool

royal lakeBOT
#

Sorry, but you may only use this command within #bot-commands.

velvet rapids
#

I'm jealous

glass gorge
#

I aint the sharpest tool in the shed

solid pollen
velvet rapids
#

Lol

dense stratus
#

yeah, I think you have to be yellow or something to call eval in channel

plucky ridge
#

Oh right, I have got go dump some white mice into the server to feed @royal lake

velvet rapids
#

Not in a million years am I going to be able to run that myself

plucky ridge
#

She's getting hungry

solid pollen
#

Or purple

velvet rapids
#

blurple

#

lunchhhh

dense stratus
#

I am guessing the red,orange, and burnt umber get to use it too ๐Ÿ™‚

solid pollen
#

One of the color inside that little happy gradient

dense stratus
#

burnt sienna ... baby stuff

#

well you can always run a REPL and type stuff there.. ๐Ÿ™‚

undone berry
#

I should be able to use my newly bought bright colour to eval

#

thats what capitalism has taught me

#

money should give me all the powers imaginable

dense stratus
#

That is an honorific not a status ๐Ÿ™‚

#

there is a huge list of users to the right, I can't imagine being able to use it effectively for anything. And not sure now that I have scrolled it down, I can get it back up easily

#

ahhh close and open it.

rough sapphire
#

discord is something of a usability nightmare

dense stratus
#

no worse than reddit

rough sapphire
#

!internal

dense stratus
#

at least I can type code in here the first time

rough sapphire
#

ooh cool things are hidden in @royal lake

undone berry
#

discord isn't too bad I don't think

#

messages are very easy to search

#

unlike reddit posts

dense stratus
#

so that's a graphic not text, it would be amazingly annoying to try to do that for me. How do so many people constantly paste screen shots?

undone berry
#

snipping tool+paste

rough sapphire
#

we have softwares

undone berry
#

What OS are you on Absinthe?

rough sapphire
#

I use flameshot on arch
or lightshot on windows

dense stratus
#

I am in Linux

rough sapphire
#

use flameshot

undone berry
#

which distro?

#

you don't need other software

dense stratus
#

Debian Buster

rough sapphire
#

you can ctrl+v images into discord

undone berry
#

most have something built in

rough sapphire
#

from the clipboard

#

every distro have something built in

undone berry
#

something like ctrl+prtscr should let you crop a region

rough sapphire
#

but not all have a cool one

undone berry
#

and then just paste it with ctrl+v

#

maybe shift or alt

dense stratus
#

I constantly take screen shots on my machine, just not on purpose

undone berry
#

or some other combination

rough sapphire
#

deepin have ctrl + alt + a for cropping

dense stratus
#

there is some key that makes a camera noise and flashes the screen and ultimately saves a file somewhere

rough sapphire
#

print screen it is

#

took a whole three buttons to press or something

undone berry
#

goddammit I hate that blue colour

rough sapphire
#

why ?

undone berry
#

its just dumb

rough sapphire
#

role color ?

undone berry
#

my blue

glass gorge
#

How come

rough sapphire
#

whatever all the shortcuts can be found in keyboard/shortcuts

dense stratus
#

yeah I hit prtscrn and it flashed and now I have a new file in ~/Pictures called something stupid 'Screenshot from 2020-03-27 14-03-19.png'

undone berry
#

screenshotting a region is much better than screenshotting the entire desktop. I pretty much only ever want to grab a region

#

it should also be in your clipboard

#

you can ctrl+v and discord witll bring up a dialogue

rough sapphire
#

yeah it do same that if i press print screen

dense stratus
#

nope didn't put it in my paste buffer

undone berry
#

right

#

time to throw debian out the window

rough sapphire
#

windows > linux confirmed

dense stratus
#

yep, not in the paste buffer, but I have a directory filled with Pictures

undone berry
#

thats not at all useful tho

glass gorge
#

On that topic windows+v hotkey is nice

rough sapphire
#

what's that do?

dense stratus
#

winder's v

glass gorge
#

Keeps track of previous pastes

dense stratus
#

yeah, I have something like that somewhere.. ๐Ÿ™‚ On work machine (KDE) I run gnome at home

glass gorge
#

Wonder how many it actually keeps track of

dense stratus
glass gorge
#

That's spoopy

dense stratus
#

IKR ... my wife would not let me buy it

glass gorge
#

aww

#

Man i just can't get frozen pizza right

dense stratus
#

you need to heat it up

glass gorge
#

It's always watery

dense stratus
#

do you use a stone?

glass gorge
#

Nope

dense stratus
#

might be your problem, no place for the water to go

#

do you use a tray or open rail shelf

glass gorge
#

Open rails

dense stratus
#

rack,... words are hard

glass gorge
#

with baking paper under

dense stratus
#

again, no place for the water to go

#

we have a stome and a round tray that has a bunch of holes in it

glass gorge
#

But it's supposed to evaporate & and theres a vent hole?

dense stratus
sand goblet
#

don't use a stone for frozen pizza

#

that's how you wreck your stone

#

but yeah, use a tray with holes in it

#

or place it directly on the shelf if it's clean

dense stratus
#

never take the stone out of the oven

#

but frozen goes on the holey thing

glass gorge
sand goblet
glass gorge
#

That's athing people have?

sand goblet
#

yup

glass gorge
#

Can't say ive ever seen one

sand goblet
#

we have two

rough sapphire
#

where do you put that

sand goblet
#

in the oven

#

this one costs about ยฃ9

rough sapphire
#

on top of what

sand goblet
#

the shelf

rough sapphire
#

what shelf

sand goblet
#

in the oven?

glass gorge
#

I use these ๐Ÿค”

rough sapphire
#

that looks more familiar

dense stratus
sand goblet
#

yeah that's an oven shelf floppy

rough sapphire
#

okay so you put it on top of that thing

#

and that's somehow better?

sand goblet
#

have you used an oven before, world?

glass gorge
#

Oh, well i put my pizza directly on those

#

with bakin paper

sand goblet
#

yes, but the paper means the water can't escape

dense stratus
#

like parchment paper?

rough sapphire
#

well yeah but I don't see why that would make it better

sand goblet
#

well it means your pizza doesn't get covered in whatever crap is stuck to the shelf

glass gorge
#

Buuut wont the bottom of my oven get all greasy and yucky then?

sand goblet
#

It shouldn't actually leak into the oven

dense stratus
#

you can toss a handful of grits or cream of wheat on top of the paper first

sand goblet
#

if you wanna take the complicated route, yeah I guess

glass gorge
#

I am so confused, why is this a thing that nobody has ever told be before

dense stratus
#

That's what they make over cleaner for ... shoot, I have a self cleaning oven. No biggie

#

Who have you asked?

rough sapphire
#

because it's a waste of metal?

glass gorge
#

Nobody, like directly

dense stratus
#

This kind of information is on a need to know, don't ask don't tell basis

glass gorge
#

just went by what I've seen everyone use

sand goblet
#

I'm trying to source you one on murrican amazon

#

and I just

glass gorge
dense stratus
#

@sand goblet so what does frozen pizza do to hurt a stone?

sand goblet
#

stones absorb moisture

glass gorge
#

So shelft | pan | pizza?

sand goblet
#

you'll make it crack eventually

#

yeah just use it like you would any other oven tray

glass gorge
#

imma start out with not using parchment paper i think

#

I just recently started using that ๐Ÿ˜…

sand goblet
#

that'll help, but bear in mind

#

you need to make sure the pizza is supported properly by the shelf

dense stratus
#

then I will throw it away and get a new one.. I can't remembner how long the other one lasted, but I am pretty sure we had a dog and it died in that period

sand goblet
#

or it'll collapse in the middle

glass gorge
#

Oh right

#

ive seen a few pizzas just melt through the shelft

#

WHY DO I KEEP WRITING SHELFT

sand goblet
#

yeah that's basically what I mean

#

haha

#

we used to have a stone as well absinthe

dense stratus
#

because you are used to typing leFT and bereFT and soFT and loFT

sand goblet
#

but there's no point unless you're actually baking

glass gorge
#

Well, I'll toss a normal tray under the shelf the first time, just in case

sand goblet
#

safety first

glass gorge
#

if all goes to shits ill look into one of these pans

sand goblet
#

that link there is two for ยฃ14

glass gorge
#

Yeah, but it's not in norway

dense stratus
#

you can try the wheat or grits thing too

glass gorge
#

wanna try to avoid tolls if i can

sand goblet
#

oh, you're in norway

#

well you can use the .co.uk one

#

they're still in the EU, technically..

dense stratus
#

polenta... not grits

glass gorge
#

Well there's a pizza stone for $30

sand goblet
#

there's no point getting a pizza stone unless you bake a lot

#

it's for baking fresh stuff

dense stratus
#

just get some corn meal or polenta

sand goblet
#

you use them because they're great at absorbing heat

#

crank the oven as high as it'll go and preheat the stone for 10-15 mins

glacial owl
#

Damn, guys, now i want some pizza

glass gorge
dense stratus
#

sprinkle it over the pan and put the pizza on top

sand goblet
#

and you can make fresh pizza in a few minutes

glass gorge
#

That'll do i think

sand goblet
#

you guys have square pizza?

glass gorge
#

some, but does it matter what shape it is?

glacial owl
#

Do you make your own pizza dough?

sand goblet
#

not really

dense stratus
#

depends on the shape of your pizza

glass gorge
#

There's a few "homemade" frozen pizzas

#

that are square

#

My mostly round

#

I only found this one, among the 2 shops i looked at

#

i have now given up, and am satisfied with my find.

sand goblet
#

apparently they'll ship to norway too

glass gorge
#

Ye but theres still toll

#

afaik anything imported into norway has a fixed toll now

sand goblet
#

you have to pay customs from europe? dang

glass gorge
#

Im not up to date on those laws, but i believe that's how it is now

dense stratus
#

toll? do you mean like highway toll or some kind of tax

sand goblet
#

great name for that

dense stratus
#

usually call them a peal

sand goblet
#

peel yeah

#

this isn't really a peel though

dense stratus
#

but they are made of wood,

sand goblet
#

I think you just leave this thing in the oven entirely

dense stratus
#

true enough

#

you better find something to grab it with

rough sapphire
#

roligare matlagning. fuck was it handy to study swedish.

#

"more fun to make food"

glass gorge
#

I am confused by this new toll law

#

it starts 1.april

rough sapphire
#

@glass gorge do you have basically any places where you can import tax-free?

dense stratus
#

I think that is called smuggling

sand goblet
#

in Ireland you can import from anywhere in Europe without paying customs

glass gorge
#

Is customs the word

#

๐Ÿ˜…

sand goblet
#

yup

dense stratus
#

until brexit is complete

rough sapphire
#

norway isn't in the EU ๐Ÿ˜

glass gorge
#

^

sand goblet
#

yeah, unfortunately

glass gorge
#

Yeah, any thing under 350kr was custom free

#

until 1.april

#

Then everything needs to be paid for

#

This confused me

#

I closed my browser, I am done with the topic

sand goblet
#

that's not the same kr they use in denmark, is it?

glass gorge
#

No

rough sapphire
#

they use kr in denmark, sweden and norway but they're all different

dense stratus
#

@glass gorge April 13 this year... guess?

sand goblet
#

that's confusing

glass gorge
#

swe, den and nor uses Kr

#

but formally known as dkk, sek, nok.

#

Maybe finland? can't say ive shopped there

rough sapphire
#

we use EUR

sand goblet
#

EUR OP

dense stratus
#

I just imagine someone walking around in trench coat with pizza trays and other assorted accouterments "hey buddy, want to make a deal?"

sand goblet
#

..lol

glass gorge
#

Imagine using mainstream currencies!

#

Ha, I laugh!

sand goblet
#

at least it's not rupees

glass gorge
#

cries in customs

rough sapphire
#

lal

#

the swedes could start using the euros

dense stratus
#

well there is always bitcoin

glass gorge
#

That is something I have considered investing in now

#

Heard it crashed hard

rough sapphire
#

when hasn't it

#

it's a huge sham

sand goblet
#

it did crash hard recently

dense stratus
glass gorge
#

But then again I just invested like $5000 in fonds and stocks

sand goblet
#

revolut even gave me a notification

rough sapphire
#

the whole system is fraudulent to the max. that doesn't mean you can't get rich with it but don't assume you're playing a fair game.

glass gorge
#

ยฏ_(ใƒ„)_/ยฏ

#

Watch me r/wallstreetbet this shit lemon_fingerguns_shades

rough sapphire
#

lal

#

I put some hundreds of euros in some random shitcoins

#

now they're worth maybe 15 euros if lucky

glass gorge
#

Heard rumors of the norwegian government agreeing to investing more into biogas

dense stratus
#

I tried mining for like 6 months got DF

rough sapphire
#

DF?

glass gorge
#

And given one of the airtravel companies has tanked HARD, from lie 60 kr a stock to 7kr

#

have a biogas sister company that also tanked a bit

rough sapphire
#

@glass gorge that would be Norwegian?

dense stratus
#

the second word is FIST

glass gorge
#

Time to go $2000 in their biogas sister company

#

Ye

dense stratus
#

Or what do the brits say FA

#

yeah

glass gorge
#

I'm already $100 in the green on the airshuttle company, before they even resume business

glacial owl
#

I was fucking dumb. Bought ETH from Ukrainean site (the only one that I actually could use), wanted to wait for a bit, but didn't want to pay for transaction to local wallet and back. Then the owner ran with the money.

glass gorge
#

Whelp

glacial owl
#

Well, fool me once, shame on you, fool me twice, shame on me

glass gorge
#

Fool me thrice, time to quit

dense stratus
#

There was a programming puzzle, can't remember where, they had a bunch of currency and exchange rates the key was to start with some amount and come back to have more..

glass gorge
#

Yeah, investing in the norwegian KR is probably a good idea these days

#

It's losing a lot of value atm

rough sapphire
#

aren't there like instruments for everything

glacial owl
#

I think the economy is not at rock bottom yet

dense stratus
#

I think everyone is going to lose a bunch pretty soon

glass gorge
#

Yeah, im holding a good slump of cash to go deeper if the markets drop more

dense stratus
#

IDK, I just paid $1.59 for gas... that's pretty down there

glass gorge
#

if not ill just put it in som stable longterm fond

#

Guess the NOK hasnt tanked thaaat bad yet

#

its $1 to 10.4kr, it was probably around $1 to 10kr a few months ago

glacial owl
#

I'd wait and either invest in even cheaper assets or fight for rat remains in the ruins of civilisation.

dense stratus
#

candles and batteries

#

and toilet paper

glass gorge
#

The key is to invest in companies that either live, or we become a refugee civilization where money doesn't matter anymore :)

glacial owl
#

Potatoes and distillery kits.

dense stratus
#

and canned food

#

distillation requires fuel

glass gorge
#

I'd rather invest in the companies producing these

dense stratus
#

just make beer and wine

glass gorge
#

are any of you american by chance

dense stratus
#

don't dig the gold, sell the shovel

#

I am

glass gorge
#

How much is a bottle of corona?

#

And has their value changed ๐Ÿค”

glacial owl
#

I don't think that in apocalyptic settings fancy drinks would be more in demand that moonshine capable of disinfecting wounds

dense stratus
#

I heard they offered to donate 10 million for the CDC to change the name to Bud Lite Virus

glass gorge
#

Nah, i was just curious

sand goblet
#

people are avoiding it though

glass gorge
#

Like, actually curious. It's my beer of choice

dense stratus
#

Corona Beer is not affected, still more expensive than pbr, and still sucks... Good for boiling hotdogs in thoudh

sand goblet
#

it's really dumb, but.. people

dense stratus
#

Corona?

glacial owl
#

It's like if there was Twin Tower Fall beer ten years ago.

rough sapphire
#

I'd probably be drinking more of it if I drank

dense stratus
#

Where are you from?

glass gorge
#

sucks lemon_glass ?

dense stratus
#

Do you knwo why thye put limes in beer?

glass gorge
#

I've probably just grow to like it more, given most other beers make me bloated

glacial owl
#

It's not going to crash into your house, but drinking it would lead to unhappy thoughts

glass gorge
#

No i do not

#

I dont drink it with lime usually

rough sapphire
#

@glacial owl would it though

dense stratus
#

In places where beer was not kept refrigerated they would store it warm, and such. It would get crappy and smell bad. But if you jam a lime in the top all you can smell is the lime

glass gorge
#

lol

#

That's great

#

Just like how old age housewifes spiced old sour-y meat with salt and pepper for their husbands to eat it

glacial owl
#

I'm not a beer person, but i had awesome lambic with cool sour taste. Lime should go well with a refreshing drink.

dense stratus
#

If you go to a Mexican restaurant here they put lime in all beer, because that's what customers expect. I finally told my waiter that if he brought me a beer with a lime in it, I would through it at him .

glass gorge
#

oh boi

#

Fiesty

dense stratus
#

You want a nice mexican beer drink Tekate or Modelo negra

glass gorge
#

I mostly drink it cause it's not that wheat based

sand goblet
#

I'm quite partial to a 7up myself

#

:>

glass gorge
#

Do enjoy a good stout / porter from time to time though

glacial owl
#

Cider is best.

dense stratus
#

most beers are not wheat based, they are supposed to be made from barley and I think Bud uses rice for some reason

sand goblet
#

is that why everyone says it's piss?

dense stratus
#

Give me something nice and dark on Nitro... Guiness will do

#

or a good lager, Yuengling is a goto for me

glass gorge
#

I guess it could be barley i dont tolerate as well?

#

idk

#

I haven't figured it out tbh, i just tend to avoid bigger quantities of "normal" beer

dense stratus
#

that's what Scotch is for

glacial owl
#

Semi-dry, with just a hint of sweetness to balance the sour

dense stratus
#

we have a craft brew place here that does Beer, mead and ciders... all delish

glass gorge
#

Can't say I'm a scotch/whiskey etc guy

#

Might just be too young for it lemon_smug

dense stratus
#

My preference is for Rye, but a good single malt scotch will get it there

glass gorge
#

That's a really good smug emoji

#

i like it

dense stratus
#

well there's always tequilla

glass gorge
#

Oof

dense stratus
#

I do enjoy some chartreusse from time to time

glass gorge
#

I have bad experiences with tequilla i would not like to relive

glacial owl
#

Cheap spiced rum goes perfectly in a tea cocktail. Honey, tea, lemon - and perfect grog is done.

dense stratus
#

did you eat the worm?

glass gorge
#

the worm?

dense stratus
#

and of course, I do enjoy my namesake

#

the worm at the bottom of the bottle?

glacial owl
#

And there's something decadent in drinking neat vodka shots at 5 o'clock morning chasing it down with juice/cola.

glass gorge
#

the teq bottle?

#

is that a thing lemon_glass

dense stratus
glass gorge
#

eeexcuse me

dense stratus
#

yes, that's how it's done. And if you get it in your glass, it is supposed to be good luck for the year or something like that... but you have to eat it

glass gorge
sand goblet
#

considering it's been sitting in tequila for as long as it has

#

it's probably not too unpleasant to eat

glass gorge
#

I mean, it probably tastes like tequila

sand goblet
#

well, if you like tequila

glass gorge
#

eeeeem

#

Yeah id not eat that

sand goblet
#

haha

glass gorge
#

What's the most expensive alcohol ya'll can buy locally?

#

haha

dense stratus
#

probably one of the high year singlemalts

sand goblet
#

Yeah, definitely whiskey

dense stratus
glass gorge
#

Yeah i would not buy that

dense stratus
#

like a 24 year old

glass gorge
#

I love how they can sell Riesling for $5000, and not be able to have a picture of it

dense stratus
#

yeah, you drink that kind of stuff so you can brag about the cost ๐Ÿ™‚ probably tastes like @$$

gentle moss
#

worm booze

#

yay

#

i always wanted to do that one in the canadian bar

dense stratus
#

like those people drinking the coffee from the cat poop

glass gorge
#

Probably does

dense stratus
#

kopi luac

gentle moss
#

where they put a toe in a glass of whisky

glass gorge
#

I know a lot of people buy the expensive whiskes for the bottle, then refill it later with cheap whiskey

gentle moss
#

drink it fast or drink it slow but the lips must touch the toe

dense stratus
#

There is always Zafiro Aรฑejo Tequila ... but unfortunately it is fiction

sand goblet
#

The question is where the toe came from

gentle moss
#

well there is a whole toe origin story

#

but it's not the toe it started out as

#

i think it got swallowed once

#

so someone donated a new toe

dense stratus
#

I can get a nice singlemalt for about $50 that is very drinkable Edradour. Most of my other Scotches are upwards of $100 and that is pretty much where I draw the line

undone berry
#

I think they have multiple toes

#

people just send them in or something

glacial owl
#

I've heard about a giant bottle with entire tiger in some chinese restaurant. Can't remember if it was fiction, though.

undone berry
dense stratus
#

Oh Canada!

#

still better than Corona with lime

undone berry
#

whats so bad about corona?

#

I see some people shit on it, and some people who apparently love it

sand goblet
#

My mom likes it

#

That seems to be the primary demographic

undone berry
#

yeah, tbf, my mum also likes it

rough sapphire
#

https://www.youtube.com/watch?v=uSLFudKBnBI ; tl;dw : don't go out, wash your hands, and if you do go out, don't go close to other people

The SIR model is one of the simplest ways to understand the spread of a disease such as COVID-19 (Coronavirus) through a population. Allowing the movement of populations makes the model slightly more realistic and results in โ€˜Travelling Waveโ€™ solutions.

In this video, Oxford...

โ–ถ Play video
north abyss
#

talking about tequila

rough sapphire
#

Is it strange one of the songs in my workout playlist is from the movie Footloose

#

like the original movie

velvet rapids
#

Whats the difference between yield from and await

#
sql = "SELECT `id`, `password` FROM `users` WHERE `email`=%s"
        cursor.execute(sql, ('webmaster@python.org',))
        result = cursor.fetchone()
        print(result)

I looked more into aiomysql and found out PyMySQL is a dependency. This is how they formatted strings into SQL QUERIES, using the old %s, should I use this format for it or will f'{}' work?

frosty berry
#

well, yield yields, while await just awaits, it seems a bit stupid said like this, but yield is a bit like return in python, except it doesn't stop the function, what you produce is given to the code that called your function, when you await, you stays in your current context, you get what's produced by the await

dense stratus
#

ooh, I like that.. Never read about await yet

velvet rapids
#

Ah alright, thanks

dense stratus
#

just looked at an example, and either it is a stupid example or I don't get it

velvet rapids
#
    @commands.command()
    async def create_channel(self, ctx, name, description='Perfect', category='Programming'):
        query = await self.db.add_channel(
            str(ctx.author.id), name, description, category)
sinful copper
#

@velvet rapids do not use f-strings or any other string format method to build sql queries... the %s of mysql libraries isn't the same as the old % operator, for one thing it is always %s not anything type-specific, and you do not use % (args) to format it, it's just a placeholder the library uses after doing all the proper escaping needed

velvet rapids
#

Yeah, I changed that

#

Now I've got this error..

sinful copper
#

you'll notice it's "... %s", ('webmaster@python.org',) not "... '%s'" % ('webmaster@python.org',) that's an important distinction a lot of people miss the first time they see mysql queries

#

anyway, it looks like you're trying to await a function that's not async

#

i need to go but maybe someone else can help you from here, sorry

velvet rapids
#

The function is async tho

sinful copper
#

add_channel is? i can't find any information about it

#

anyway i really do need to go, sorry

rough sapphire
velvet rapids
#

Yeah, it's my own thing

#

From another cog

#
    async def add_channel(self, uid, name, description, category):
        if not self.ascii_checks([name, description, category]):
            print("Okay, I'm gonna return false because you've got some weird ass characters in your name or smthing.")
            return False
        print("Okay I'm going to check if you already have a channel. Sneaky dude.")
        await self.db.execute(
            f"SELECT * FROM users_channels WHERE user_id=%s", (uid,))
        if await self.db.fetchone():
            print("Looks like you already have a channel! Cheapo!")
            await self.db.execute(
                f"SELECT channel_name FROM channels WHERE channel_id=%s", (str(self.db.fetchone()),))
            return await self.db.fetchone()[0]
        print("Oh okay, you don't have a channel. Welcome to vlogertube!")
        await self.db.execute(
            f"INSERT INTO channels (channel_name, description, category)"
            f"VALUES (%s, %s, %s)", (name, description, category,))
        print(await self.db.lastrowid)
rough sapphire
#

The error TypeError: object int can't be used in 'await' expression says that it's an integer

rough sapphire
#

What does return await self.db.fetchone()[0] return?

velvet rapids
#

The channel name