#ot2-the-original-pubsta

652 messages Β· Page 92 of 1

small pivot
#

quick math fail?

jovial island
#

Hmm.. I wonder if you could make proof of work based appeals

elfin vine
#

I messed up between Swedish miles, kilometers and English miles

jovial island
#

Need to show you put enough efforts into the appeal message

jovial island
small pivot
#

this is why metric system was invented, yikes πŸ˜›

elfin vine
#

I don't understand this person, are they for or against this report?

elfin vine
#

That's the unit that was used in the paper, very common here in Sweden

jovial island
small pivot
#

thats a long mile

jovial island
small pivot
#

i mean... i feel like some people could do with a bit more googling compared to the policies they enact..so.. uhm.. yeah

hidden kernel
odd sphinx
#

am i trippin or is that infinite tabs

echo fern
#

yeah, firefox mobile starts showing infinity when you exceed, like, 100 tabs

dusky cliff
#

yeah

echo fern
#

pathetic, really

dusky cliff
#

well

echo fern
#

i want to know how many hundred I have

dusky cliff
#

sane people tend to keep it under 10

#

i have 7 open tabs 😎

tribal tinsel
odd sphinx
#

bruh

#

lol

#

that is funny

odd sphinx
tribal tinsel
#

Hm... Counted mine. 226

#

But scrolling through tab view, I found some i can close for sure, even without looking

jovial island
#

I have 14 in mine, but most of them are tab groups

#

I just counted 140 tabs

#

So not too sane of a person

daring jay
#

I always have <= 3 tabs, I'm weird about it

#

*on mobile

jovial island
#

Yeah, mine's also on mobile

carmine herald
#

do u get infinite power from infinite tabs?

median blade
ornate scroll
#

usually i have at mos t20

#

but thats only for projects for school which require a lot of googling

#

on average i usuually have 5-6

#

rn i have 3 (one of which i just xed out i never needed it)

snow forum
clever salmonBOT
#

:incoming_envelope: :ok_hand: applied mute to @jovial island until <t:1636219104:f> (9 minutes and 59 seconds) (reason: mentions rule: sent 6 mentions in 10s).

jovial island
jovial island
#

anyone wants to help

#

not related to ciding

#

coding

jovial island
#

@jovial islandWassup?

jovial island
#

@minor wedge you can look at the source of it to see what it does

halcyon coyote
#

Can someone please help me I tried every channel 😒

hollow heart
halcyon coyote
clever salmonBOT
#

failmail :ok_hand: applied mute to @buoyant hawk until <t:1636246700:f> (9 minutes and 58 seconds) (reason: newlines rule: sent 22 consecutive newlines in 10s).

magic atlas
#

!unmute 765506588474867753

clever salmonBOT
#

failmail :ok_hand: pardoned infraction mute for @buoyant hawk.

magic atlas
#

Don't deliberately trip the spam-filter please @buoyant hawk

buoyant hawk
#

I was seeing if it muted me

magic atlas
#

Ah, well there you go πŸ˜„

buoyant hawk
#

Yep

#

I did it in this channel because no discussion going on

magic atlas
#

πŸ‘

hollow heart
#

maybe you need a lot of xp to get to wizard level

jade bolt
#

nah they just casted a magic on themselves to make themselves look old

#

ah i didn't watch that show

#

not avaliable in my region ig

carmine herald
lusty brook
#

man are terminals pretty :)

#

also windows is a less terrible os than I remember πŸ˜„

hollow heart
#

pretty pretty p_sparkles3

lusty brook
#

although my touchpad has the weirdest acceleration curve I've ever used πŸ€”

hazy laurel
lusty brook
#

bien oui!

hazy laurel
#

lol I love Rich

lusty brook
#

I'm sorry, I can speak some french and therefore I have to use it sometimes as it's so fun to do so

hazy laurel
#

wait

#

rich is in your name πŸ‘€

lusty brook
#

haha c'est vrai

#

honestly now back on windows I do miss it surprisingly enough

#

the shell experience is less good than linux IMO but ignoring that it's pretty damn good

hazy laurel
#

only thing I miss is software support

#

other than that, totally fine sticking to openSUSE for the rest of my days

lusty brook
#

eh I rarely game so that wasn't really an issue when I moved to ubuntu

hazy laurel
#

yeah games is the big thing, for me

lusty brook
hazy laurel
#

I like using the rich handler for logging

#

and the traceback handler too

lusty brook
#

oh yeah it's so the traceback handler

#

although I just use the console object instead

#

I've never really liked logging

#

I like logging style output but not the logging API

hazy laurel
hazy laurel
lusty brook
#

sorry you've discovered my magical ability to forgot to write certain words

#

I mean "oh yeah it's so nice the traceback handler"

hazy laurel
#

oh lol

lusty brook
#

I honestly have no idea why I just forget to write certain words, I used to not to do it πŸ˜•

hazy laurel
#

I do it all the time

lusty brook
#

I originally thought having your style inline would be a downgrade when I switched from click's output utilities

#

and while sometimes I do wish I could do bold=True in general the inline styles are way nicer to work with

hazy laurel
#

Can't you kind of do that?

#

style="bold" or something

lusty brook
#

off-topic, but who decided that integrating gitlens into the source version control panel was a good idea

lusty brook
hazy laurel
#

I think there's another way to set the default style for a while

#

idk lol

lusty brook
#

probably, I'm still rather new to rich

hazy laurel
#

Admittedly, I've not used it in a while

#

no interesting projects that need to be pretty lemon_pensive

lusty brook
#

I should probably look into setting up custom styles

hazy laurel
#

the highlighters seem cool

lusty brook
#

btw how much overhead does rich have?

hazy laurel
#

I doubt it's much

#

it's glorified string formatting, with some regex

lusty brook
#

Yeah in most instances probably very little, I've just noticed diff-shades (the program I showed above) a multi-core program suffering a 5-12% performance drop in verbose mode

#

to be fair it's very chatty in verbose mode

hazy laurel
#

I figure the most performance intensive things are the handlers

#

handlers? highlighters

wide totem
#

i would like to see more of the / in general

#

its a cool concept

#

in some cases, people need to use it more

#

but in other cases, i think they're overused

#

and yes, I say this as a neurodivergent person

#

eg /half-serious or things like, where they aren't widespread to use yet

lusty brook
#

yeah one day I'll be getting an OTN along the lines of #off-topic-richard-in-black-fmt πŸ˜„ /hj

wide totem
#

dude that's what i initially used the channel for

#

it was basically offtopic of black users

hazy laurel
#

jeez

#

I was confused for a second

wide totem
#

i'm not kidding, either

hazy laurel
#

"black users"

#

lol

wide totem
#

!pypi black

clever salmonBOT
wide totem
hazy laurel
#

yes, I understand now

wide totem
#

for context lol

lusty brook
# wide totem its a cool concept

I agree! they're so useful even as (edit: a | case in point ahhhhhhhh) neurotypical as I misread / write poorly thought-out messages constantly

wide totem
wide totem
#

there's one server that takes everything i say as passive agressive, when its supposed to be a kind of support server/school club

lusty brook
#

d'aw that sucks :( /g

wide totem
#

smh i asked a clarifiying question its not my fault you said you took your girl to the vet and only by the end of the message i realised it was a dog.

lusty brook
#

actually one question I've had about tone indicators is whether using a full emotion / tone word is acceptable

wide totem
#

IMO yes

#

and i do that

lusty brook
#

I've used /joke before but I got quickly corrected to use /j

wide totem
#

i mean, if its common, no IMO

#

oh yeah, some times i actually have used html tags

lusty brook
#

<rant type="minor">me too</rant>

wide totem
#

uh, before i get to that, some times i use /hsrs or /halfserious so i'd just use the full words

wide totem
hazy laurel
#

<rant /> fuck

wide totem
#

and often the first tag gets edited in after I realise I've written a rant

lusty brook
#

$insert-aggravating-topic

wide totem
#

i am a person of lpn

#

least punctuation necessary

#

eg

lusty brook
#

what's funny is how different "fuck" and "oh no" hit

wide totem
#

i actually think oh no hits harder

lusty brook
#

(btw I typically avoid using the word fuck)

#

I do have an OTN fwiw

wide totem
# wide totem eg

ugh something happened today and it had to do with cw badcode ||isort breaking coveragepy|| and now i did some oopsie and doopsie and reinstalled it yay

Note: this is an example and not serious

#

lpn

#

least punctuation necessary

wide totem
lusty brook
wide totem
#

yeah i recall that.

lusty brook
#

I still use punctuation but I'm wayy more lax about capitalization

wide totem
#

oh lmao

#

you can tell when i'm on pc or mobile

#

mobile has no typos and great caps

#

okay that's uh, not true

#

mobile will sometimes screw up my messages so bad i just send them anyways

#

mobile either has no typos or insanely bad typos ^^

wide totem
lusty brook
wide totem
#

i swear way too fucking much

#

:)

lusty brook
wide totem
#

but so far never pushed a commit with a swear word in it in anywhere to anywhere

#

i think

#

there may have been one

lusty brook
#

i feel like that's a lie.

wide totem
#

but that would have been to a branch and fork of my own project that was because fucking github actions

#

although

#

i have now taken a liking to yaml

#

so uh

#

yeah

wide totem
lusty brook
#

yaml would be nice if there weren't a million ways to do any one thing

wide totem
#

I think the worst way

#

ooooh lol

lusty brook
#

also the fact 3.10 == 3.1 bothers me way more than it should

wide totem
#

the worst english I've commited so far is a comment that was just

# message deletion events are messed up
above 3 defined dictionaries

#

that was it. that was the whole comment.

lusty brook
#

well HAVE FUN FIGURING WHAT'S MESSED UP 😀

wide totem
#

its more accurate now

#
        # message deletion events are messed up, so we have to use these sets
        # to track if we deleted a message, and if we have already relayed it or not.
        # these lists hold the ids of deleted messages that have
        # been acted on before a on_msg_delete event is received
#

#FuckDiscord

hazy laurel
#

nx?

lusty brook
#

I am learning so many new tone indicators today

wide totem
hazy laurel
#

.-.

#

wtf

#

wasn't expecting that

lusty brook
#

d'oh

wide totem
#

lmao

#

i feel like including that made it actually the opposite

hazy laurel
#

yes.

wide totem
#

removed it

lusty brook
#

yeaa...

wide totem
#

and deleted the definition smh

#

y'all have dirty minds i just wanted to use the tone indicators smh

lusty brook
#

!otn add add-sexy-wrong-assumptions

hazy laurel
#

I wouldn't never guessed

wide totem
#

i love how assumptions was mispelled

lusty brook
#

f.warn 717983911824588862 we don't talk about that

wide totem
#

LOL

lusty brook
#

(that's my bot's prefix fyi)

wide totem
#

figured it was

hazy laurel
#

banned for self-bot

lusty brook
wide totem
#

fuckblack?

hazy laurel
#

f...un

lusty brook
#

no.

#

also try guessing my bot's name

hazy laurel
#

friendship

lusty brook
#

also no.

wide totem
#

Flower?

#

DayLilly?

hazy laurel
#

dang. what did I miss

lusty brook
wide totem
#

i searched your history lmao

lusty brook
#

well close

#

daylily

#

there's only one l in lily

wide totem
#

i had remembered you sending screenshots of your bot in #dev-contrib

hazy laurel
#

lily was a little girl

wide totem
#

but i couldn't remember the username for like, 15 seconds ;-;

lusty brook
wide totem
#

oh are you ready for the bot logging to be really weird for an hour?

lusty brook
#

no I should be asleep by now honestly.

wide totem
#

oh wait nvm it doesn't use EST

#

nvm

#

i should modify my bot to use UTC only as well... hmmm

hazy laurel
wide totem
lusty brook
wide totem
#

what timezone are you in again?

hazy laurel
#

yep

lusty brook
#

utc-4

wide totem
#

i have a stomach ache, a sore throat, a stuffy nose, and I think im gonna go have a bunch of milk now because i like pain

hazy laurel
#

uh oh

lusty brook
#

:>

wide totem
#

no tone indicator because imma leave you guessing if im serious or not about liking pain

lusty brook
#

i view it as /s

hazy laurel
#

definitely serious

#

/s for /serious \😩

wide totem
#

but then again, i don't read documentation until i've done it the hard way first so.... take that as you will

lusty brook
wide totem
hazy laurel
#

\:weary: is my own personal tone indicator \😩

#

I end up typing it everywhere :faint:

wide totem
#

ok

#

got my pain

#

i mean icecream

#

night @lusty brook

dim root
#

sorry offtopic but @wide totem look at this

#

metadata description included in the auto generated config

#

the problem is atoml/pyyyaml don't support comments, so i need to manipulate the config using regex

wide totem
#

atoml does support comments

dim root
#

i looked into ruanamel.yaml but it just didn't work and was talking too much time

#

it does πŸ‘€

wide totem
#

as of version 1.0 atoml is a fork of tomlkit which is a style preserving toml parser

#

however, it comes at huge speed costs

#

i would only use atoml if you're editing user's files and need to keep the style the same

dim root
#

welp, this is fast and sure though, so I shouldn't worry

wide totem
#

its pretty noticiable on larger toml files

#

eg modmail's poetry lock takes 12 seconds to be parsed by tomlkit/atoml

#

tomli takes 0.25 seconds ;-;

dim root
#

uhh isn;t it frostming/atoml

wide totem
#

!pypi atoml

clever salmonBOT
wide totem
#

ye

clever salmonBOT
#

tests/test_build.py line 11

doc.add(comment("This is a TOML document. Boom."))```
dim root
#

ok yeah

#

it does support

wide totem
#

it's part of the tomlkit requirements

#

since poetry modifies pyproject.toml to add dependencies

#

it can't be a culprit of removing the comments that a user added!

#

however, if not needing comments, and style, eg an automatically generated file, tomli and tomli_w are very much worth it

dim root
#

ah πŸ‘

wide totem
#

!pypi tomli_w

clever salmonBOT
dim root
#

should we add this to modmail?

#

the metadata description comments

wide totem
#

discord-modmail/modmail#75 rewrites the configuration system

rustic harborBOT
wide totem
#

although, you have given me some ideas for it, hmmmm

dim root
#

currently I make use of eval for the metadata generation, need to figure out a better way

wide totem
#

πŸ’€

wide totem
#

@dim roottldr the configuration system i have works in reverse.
everything is stored in the code itself. I realise now that isn't terribly the best, but i wanted it all in one place at the time

jovial island
#

SO PROUD!!!

#

I MADE A SLASH COMMAND

#

I BEAT THE PYTHON ERROR!!!!

echo flower
echo flower
hazy laurel
median blade
fluid plank
#

and the creator is a shark

#

;)

hazy laurel
#

lol

#

love bat

#

makes for a great man pager too

wicked hollow
#

Does it conbatenate?

wide totem
#

ugh

#

this

#

i now have an unexplainable error

#

this line

#

gets removed on github, but not locally

wicked hollow
#

Different versions of the module being used for toml writing, maybe?

wide totem
#

should be the same....

#

unless the cache wasn't updated and it was

#

nope didn't hit the cache

#

well, did hit the other cache ig

#

would you believe i had to write the diff function right now just for debugging purposes ;-;

wide totem
wide totem
jovial island
# echo flower what error?

I mean the error where you can't use slash commands for no reason. The module must have been made in a different way or version.

#

Anyway, I found a new module!

jovial island
#

lamo

jovial island
#

ur using dc in bright mode?

shrewd lance
#

Flashbang edition

dim root
#

I am making a twitter TUI client, aiming it to be a drop-in replacement for the web version, it would mostly be using textual and tweepy. If someone is interested in helping out... Lemme know.

weary elk
#

eww

jovial island
pliant trench
#

bruh

jovial island
#

I use light mode

#

It's quite soothing

#

Your eyes, hurt but the embeds and everything look kinda organized.

#

bruh fine

#

I turned on dark mode

fluid plank
#

i like it

#

come join me into the light boi

carmine herald
#

this is cursed

pliant trench
#

as f

slow valve
odd sphinx
#

your eyes

frosty blaze
#

ah shit im blind now

slow valve
frosty blaze
#

russian anthem playin

#

your eyes

#

your grey liquid

pliant trench
jovial island
proper python
mental idol
#

I love this site's UI. Tell me I should be writing without telling me I should be writing.

daring jay
#

NaNoWriMo?

mental idol
#

The graph dips back to 0 each day instead of being a day behind.

#

Yup

daring jay
mental idol
#

I look at it and my brain goes "Oh no, that needs to be fixed" rooScared

#

It's also the only visual reminder of "have you written today?" on the dashboard.

#

Oh.. no, other than this

#

Weird... my brain attaches to the graph far more heavily than the big 0

daring jay
#

24620 πŸ₯΄ that's a lot

mental idol
#

It was so hard not to force another 380 words last night to be at the mid-way point.

#

But nothing forced ever fits well, in my experience, so I stopped when the scene felt concluded.

wide totem
#

why am i about to write this

#

;-;

tepid oak
#

Hi, Does someone have a headphone recommendation to online meetings?

tribal tinsel
#

anything, really. anything can get you through a call, it's not like you need some special quality like you do with music

hollow heart
#

o i want recs too, ive not been happy with anything

slate leaf
#

We have a coffee gulag?

vague shadow
copper tartan
#

except on leap years

#

then it's nonce a year

slate leaf
#

I feel like the Geneva Conventions prevent this

hidden kernel
#

how are you supposed to form your addiction then..?

mental idol
#

This actually summarizes my experiences with Twitter's dev docs quite accurately. I'm either in-and-out with the info I need or left physically angry that they made me read multiple pages of fluff and still didn't provide the answer rooMadSip

#

At first I was curious why the angy face and not a confused face... now I know.

wide totem
#

I just realised that over a period of time, healthcare will become more in demand as success rates increase because the hereditary traits that ended up causing the need will be passed down

#

Survival of the fittest no more

wicked hollow
#

Vaccines and sanitation have likely made much more impact on who survives to breed than any recent health care breakthroughs.

echo fern
#

that's a good point

wide totem
#

eh, i guess i speak as someone who's had cancer twice, a transplant, and several other things so I'm a little bit biased

wicked hollow
#

Maybe adopt πŸ˜„

wide totem
#

actually I don't have a choice if i want kids /shrug

wicked hollow
#

The effect you point to is definitely real - but we've been removing selection pressures for a long time

echo fern
#

not that there aren't other terrifying patterns in this venue - like, say, that there seems to be a weak but statistically significant negative correlation between intelligence and number of (surviving) children, which should result in a selection pressure against intelligence

wide totem
#

yeah...

wicked hollow
#

Hm. You're missing some major positives, though. Better nutrition and the removal of lead from environments where children spend time has greatly increased average intelligence

wide totem
#

removal of lead
response: flint michigan

wicked hollow
echo fern
#

Even if both of these effects exist, the former is still worth worrying about, because the latter is inherently limited - there's only so much you can improve conditions, after all

wicked hollow
#

Hell, the Romans used lead as a sweetener.

wicked hollow
wide totem
wicked hollow
#

We are. Lead pipes weren't the biggest source of lead exposure, lead paint and leaded gasoline were.

#

We've made massive, gigantic strides towards removing a source of brain damage that all children were being exposed to.

#

At least 50% of intelligence is attributed to environmental factors rather than genetic ones, and we've made very large strides towards improving some of those factors for all children

dusky cliff
wicked hollow
#

Yep. Selection pressures don't really apply past breeding age, whether for helpful or harmful traits.

#

And further complicating things: one trait can be both helpful and harmful. The trait that causes sickle cell anemia is selected for because it helps prevent death by malaria.

dusky cliff
#

dang

junior moat
#

removing selection pressures is a positive thing for humanity as a whole anyway. more gene variety means greater chances of some subset of humanity surviving should new, unremovable selection pressures arrive

wicked hollow
#

That's a good point.

foggy flicker
#

change your nick to hspv5

#

nice

dim root
#

ping pithink

carmine herald
autumn hornet
#

Not really

buoyant hawk
#

@unreal sigil sorry for the ping, but good luck for your exams

jovial island
#

@tight stag actually I can reproduce it.

#

(and obviously updating settings.json as suggested fixes it)

#

but that's definitely a bug with code runner, and a pretty awkward one at that

#

I bet it's writing the output to file before displaying it, and that's causing python to use the system default's encoding, which may be cp1252

rare moat
#

@grand pollen because, C is a much smaller language than C++, and is often faster than it because of its smaller size.

grand pollen
#

nice

#

is it as hard as java

wicked bramble
#

Oo

rare moat
#

C++ is great, do not get me wrong, but i would be lying if i said C++ was not a massive language.

rare moat
#

i find C incredibly simple most of the time.

wicked bramble
#

I tried to learn input in java after a while i quited

rare moat
#

both in complexity and language features.

#

i do most of my coding in C, and i am coding in C right now.

wicked bramble
#

I am dumb so i will learn c now instead of c++

rare moat
#

and i am kind of this server's resident C programmer, so.

rare moat
wicked bramble
#

Oh

#

Now i will learn c++

#

Lol

rare moat
#

i do not see how that makes you dumb though.

wicked bramble
#

No i mean that i cant learn something for a long time

grand pollen
#

practicing makes everything easy

languid osprey
#

C is nice

grand pollen
#

maybe i'll learn c for fun

rare moat
#

you heard it here first, from the Rust programmer.

grand pollen
#

but i need to finish js

languid osprey
wicked bramble
#

Console.log

#

Why ppl say js dont make sense

grand pollen
#

what is Rust useful for it look pretty intersting

wicked bramble
#

I found js cool

rare moat
#
struct CtVector3 ct_vector3_scale(struct CtVector3 vector, double scalar) {
    struct CtVector3 new_vector;

    new_vector.vec_x = vector.vec_x * scalar;
    new_vector.vec_y = vector.vec_y * scalar;
    new_vector.vec_z = vector.vec_z * scalar;

    return new_vector;
}

double ct_vector3_magnitude(struct CtVector3 vector) {
    return sqrt(pow(vector.vec_x, 2) +
                pow(vector.vec_y, 2) +
                pow(vector.vec_z, 2));
}

struct CtVector3 ct_vector3_unit(struct CtVector3 vector) {
    double vector_magnitude = ct_vector3_magnitude(vector);

    return ct_vector3_divide(vector, ct_vector3_init(vector_magnitude,
                                                     vector_magnitude,
                                                     vector_magnitude));
}

languid osprey
rare moat
#

Rust is a systems programming language. it is much, much safer than C.

languid osprey
#

Concurrent programming

wicked bramble
#

What is rust used for

grand pollen
languid osprey
#

Depends

rare moat
#

Rust also actually has a type system instead of the shit show that is C's type system.

languid osprey
#

I wouldnt say there's a best

grand pollen
#

i use python for backend rn

languid osprey
#

Sure, python is great

rare moat
#

i beg to differ

grand pollen
#

is there any language i should look forward to

wicked bramble
#

Django is complicated i dont undeestand anything

#

*understand

languid osprey
wicked bramble
languid osprey
wicked bramble
#

And then i lack in motivation

#

And leaves my project

grand pollen
#

work on small projects

wicked bramble
#

I said i am dumb i need someone to slap my as* to get work done

grand pollen
#

if u lose motivation really fast then coding is not your thing lol

rare moat
#

not necessarily

wicked bramble
#

Maybe

rare moat
#

it could just mean that what you are doing with coding does not interest you.

#

speaking from experience.

wicked bramble
#

I just compare myself to other and thats a big problem

grand pollen
#

yes exactly work on stuff you like

grand pollen
wicked bramble
rare moat
#

i was talking to HERO.

wicked bramble
wicked bramble
grand pollen
languid osprey
#

I've lost motivation on quite a few of my projects

grand pollen
#

yes but if someone lose interest a lot in general thats a problem

wicked bramble
#

Dont ww3

grand pollen
#

?

wicked bramble
#

Nothing

#

Though at what age did u start programming

rare moat
#

Aboo is a professional

#

he knows what he is talking about. all Rust users suffer from chronic demotivation.

#

it is just a fact of life.

sinful sun
#

Hello?

odd sphinx
#

hi

wheat rock
#

mariosis searching for signal since 1969

rare moat
#

Hm

languid osprey
#

Perhaps

rare moat
#

Perhaps

carmine herald
#

hm

sinful sun
#

Is it me you're looking for?

#

Just put down an offer for a flat, these bitches surprised me with an extra 200Β£ bills

#

Can we eat landlords yet

languid osprey
#

Can we what

sinful sun
#

aboo are you struggling with the concept of eating fat landlord pigs

#

I guess youre right youre not supposed to eat that much fat

#

This landlord im talking to wants me to pay Β£1800 for a 1 bedroom apartment

#

Heck no, what the fuck

carmine herald
#

dude sometimes i find a costco pizza and eat like 7 slices

#

or 3 burgers

#

or like 5 kfc chicken pieces 😩

#

and christmas is coming soon rip

languid osprey
#

Costco pizza is fantastic

mental idol
#
@classmethod
    def build_obj(cls, obj: Dict[str, Any]) -> "Tweet":
        """Builds object from dictionary"""
        tweet = cls()
        tweet.id = obj["id"]
        tweet.text = obj["text"]
        tweet.created_at = obj.get("created_at")
        tweet.author_id = obj.get("author_id")
        tweet.conversation_id = obj.get("conversation_id")
        tweet.in_reply_to_user_id = obj.get("in_reply_to_user_id")
        tweet.possibly_sensitive = obj.get("possibly_sensitive")
        tweet.lang = obj.get("lang")
        tweet.reply_settings = obj.get("replay_settings")
        tweet.source = obj.get("source")
        tweet.errors = obj.get("errors")
        tweet.referenced_tweets = (
            [ReferencedTweets.build_obj(rt) for rt in obj.get("referenced_tweets")]
            if obj.get("referenced_tweets")
            else None
        )
        tweet.attachments = Attachments.from_obj(obj.get("attachments"))
        tweet.geo = Geo.from_obj(obj.get("geo"))
        tweet.context_annotations = ContextAnnotations.from_obj(
            obj.get("context_annotations")
        )
        tweet.entities = Entities.from_obj(obj.get("entities"))
        tweet.withheld = Withheld.from_obj(obj.get("withheld"))
        tweet.public_metrics = PublicMetrics.from_obj(obj.get("public_metrics"))
        tweet.non_public_metrics = NonPublicMetrics.from_obj(
            obj.get("non_public_metrics")
        )
        tweet.organic_metrics = OrganicMetrics.from_obj(obj.get("organic_metrics"))
        tweet.promoted_metrics = PromotedMetrics.from_obj(obj.get("promoted_metrics"))
        tweet.includes = Includes.from_obj(obj.get("includes"))
        tweet.meta = Meta.from_obj(obj.get("meta"))
        return tweet
ionic locust
#

Ah, the joys of complex APIs

hollow heart
mental idol
#

If I can get half of this object completely mapped before dinner I'll be happy.

#

dinner immediately arrives
....
rooMadSip

tribal tinsel
#

aren't there already existing twitter api wrappers around?

ionic locust
#

But not Preocts\β„’ twitter APIs 🍏

mental idol
jovial island
#

@latent oxide update: I didn't finish before midnight lmao

junior pike
#

@chilly pawn nice username πŸ™‚

placid charm
#

hahaha

mental idol
#

rooH

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   twitterapiv2/model/__init__.py
        new file:   twitterapiv2/model/tweet/__init__.py
        new file:   twitterapiv2/model/tweet/annotations.py
        new file:   twitterapiv2/model/tweet/attachments.py
        new file:   twitterapiv2/model/tweet/cashtags.py
        new file:   twitterapiv2/model/tweet/context_annotations.py
        new file:   twitterapiv2/model/tweet/coordinates.py
        new file:   twitterapiv2/model/tweet/domain.py
        new file:   twitterapiv2/model/tweet/entities.py
        new file:   twitterapiv2/model/tweet/entity.py
        new file:   twitterapiv2/model/tweet/geo.py
        new file:   twitterapiv2/model/tweet/hashtags.py
        new file:   twitterapiv2/model/tweet/includes.py
        new file:   twitterapiv2/model/tweet/mentions.py
        new file:   twitterapiv2/model/tweet/meta.py
        new file:   twitterapiv2/model/tweet/non_public_metrics.py
        new file:   twitterapiv2/model/tweet/organic_metrics.py
        new file:   twitterapiv2/model/tweet/promoted_metrics.py
        new file:   twitterapiv2/model/tweet/public_metrics.py
        new file:   twitterapiv2/model/tweet/referenced_tweets.py
        new file:   twitterapiv2/model/tweet/tweet.py
        new file:   twitterapiv2/model/tweet/urls.py
        new file:   twitterapiv2/model/tweet/withheld.py
#

23 files changed, 485 insertions(+)

#

That was thought provoking.

dusky cliff
#

atomic commits πŸ‘

mental idol
#

Yup, nothing small about that commit hash vvSmug

mental idol
median blade
#

neater

mental idol
#

Okay rooDerp I've been supposed to be writing for NaNoWriMo for the last two hours.... time to do that.

mental idol
# mental idol Hmm... refactor goes brrr I feel like I could push this idea further but I thin...

Such as:

  • Pull the class attributes
  • Determine if they are a nested object (how?)
  • Determine if they are an array or an array of an object (how?)
  • Assume their name is the key in the incoming dict/json data
  • iterate over them taking the actions needed
  • nested objects would need to inherit/have the same method (interface?)
  • all this just for a model that is already written feels overkill (fun)
radiant socket
#

make a branch and put that in separate commits lol

jovial island
#

Editor design:

print("Hello world")|
#

The | is the text cursor

#

And the quote is the embed!

#

lmao

hexed iris
#

Interesting.

keen burrow
fluid plank
#

@limber pollen did you natively compile your emacs?

limber pollen
#

I recompile every 2 weeks to pull in changes

steel eagle
#

Well your power level is massive

fluid plank
#

πŸ€” i guess i have to do it later in the weekend then

tribal tinsel
latent oxide
keen burrow
#

how long has been your sleep?

#

bleh, english

carmine herald
#

imagine having a good sleep schedule instead of waking up at 2 am every day because your country is dumb and hates you

tribal tinsel
#

I go to sleep at 2am, then have problems falling asleep for at least an hour...

latent oxide
#

I think my average sleep, excluding weekends is around 7 hours

keen burrow
#

7h is fiiiine

#

We got like 5h

fluid plank
#

whats sleep

echo flower
#

whats life

slate leaf
#

A terminal, self-replicating STD

dusky cliff
#

wait a minute

slate leaf
#

lol

jade bolt
echo flower
jade bolt
echo flower
jade bolt
sterile nymph
sinful sun
#

What

fresh reef
#

i sent a message to the wrong oft

queen plover
#

!resources

clever salmonBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

spiral ember
#

whoa who's vivek and why does he want my kidneys?!

worldly harness
daring jay
#

vivek likes kidneys, duh

#

very, very, much

#

Does anyone else hate plagiarism checking software? I'm getting matches on my paper for websites I've never visited in my life.

magic blade
#

ok_handbutflipped Sus channel

sterile nymph
#

what is sus?

worldly harness
#

(also my teachers applies them in submission but doesn't actually check them lemon_tongue)

carmine herald
sterile nymph
#

sorry, what?

daring jay
#

It's someone's title, so fair enough

#

The other one is some student's paper, so I dunno what matched there.

dim root
#

which plagiarism checking tool?

daring jay
hollow heart
#

omg flashback

somber belfry
worldly harness
# daring jay turnitin.com's

does it check for actual quote/references? I think it's legal to use someone's text if it's referenced in bibliography but not all plagiarism checkers can recognize it

daring jay
#

No idea

#

And like, neither of those are actually copies that do anything, regardless of whether I meant it or not, so it doesn't really matter.

#

But it's still kind of annoying

carmine herald
#

plagiarism is when u write a southamerican person's full name 😩

#

first name middle name father's last name mom's last name and then whatever other additions ppl think are necessary Β―_(ツ)_/Β―

visual isle
#

hi
anyone really good at assembly language?

somber belfry
dusky cliff
somber belfry
#

True

dim root
#

lol

fluid plank
full haven
#

@frank lark soo

frank lark
#

Ok oreo is a copy of hydrox

echo flower
#

matpat?

frank lark
#

But worse quality

#

Wait i am finding the link

full haven
#

@wheat rock are you bad for health?

#
  • are you copy of hydrox?
wheat rock
shrewd lance
wheat rock
#

system bad

#

self taught >>>>>>

full haven
wheat rock
#

read till example word @full haven

#

:superiority:

full haven
#

Ah I see Oreos are perfect

#

but after word example I think it's fake news

frank lark
#

https://youtu.be/Kc2DAJV12E8

Pretty sure this is the link

Grab Atlas VPN for $1.39/mo before the deal expires: https://atlasv.pn/Hook

Oreo is the best-selling cookie in the world.

You probably know of the tradition of twisting, licking or dunking the cookie, but few know the dark side of its history.

That’s because many of its secrets have been buried for over 100 years, starting with the cookie bei...

β–Ά Play video
full haven
#

You are wrong, oreos are perfect.

full haven
echo flower
frank lark
#

Also i have disabled my youtube

full haven
#

why

wheat rock
#

i can literally cite the source of it being fake

frank lark
full haven
#

Fake news are so bad

frank lark
#

This is not fake news

full haven
frank lark
#

Same here

full haven
#

well I have made 1/5 of essay in 40 minutes so not too bad

frank lark
#

Philosophically youtube and discord are just sources of dopamine

echo flower
#

that hit very close to home

full haven
#

Addicted to discord + coding at school == good (not really pls help)

frank lark
echo flower
#

so discord == diluted heroine

frank lark
#

This all fun and discord and youtube and facebook is just addiction loop, i have reached Enlightnment

exotic hound
#

hey, i'm confused between these two words, "expected" and "desired".
when to use it?

#

or just give an example

#

for variable name, which do you think is more suitable? expected_result or desired_result

exotic hound
#

owh ok

ionic locust
#

Those aren’t always the same, even if the phrases are used relatively interchangeably

tribal tinsel
dim root
#

πŸ˜‹

tribal tinsel
#

Last pizza this year, probably. It was around 0 degrees Celsius outside when we started the fire in the oven

carmine herald
#

gib pizza
im god and require pizza offerings

#

I AM THE NYA GOD
gib pizza pls πŸ₯Ί

tribal tinsel
#

There are no volunteers for red part, only one person. With hot peppers

wide totem
#

@small pivot what is pah?

daring jay
#

I think that was just expressing dislike. Like "bah"

small pivot
#

yeah, should be. what's the context?

small pivot
wide totem
small pivot
#

ah!

#

i joined accidentally

wide totem
#

it was an accident! why do invites just go through pah

#

was wondering if pah was a different server or something πŸ‘€

small pivot
#

oh nah, just meant it like "ick" or "gosh"

wide totem
#

lmao

tribal tinsel
wide totem
#

yes, you're in it smh

carmine herald
#

pah!

daring jay
#

is that you

carmine herald
#

Β―_(ツ)_/Β―

#

its the minion i keep caged in my basement and use to record mp3 dont worry

#

or it might just be me -w-

daring jay
#

haha

slate leaf
#

!ot what does this command do

clever salmonBOT
mental idol
#

Any thoughts on a cleaner / easier way to process this? Parameters represent the fields of a URL query string. They need to be translated into the field dict for urllib3 to use. This works, only defining fields that were provided in the parameters, but I can't help but feel there's a better way.

def search_recent(
        self,
        query: str,
        *,
        max_results: Optional[int] = None,
        next_token: Optional[str] = None,
        start_time: Optional[datetime] = None,
        end_time: Optional[datetime] = None,
        since_id: Optional[str] = None,
        until_id: Optional[str] = None,
        expansions: Optional[str] = None,
        media_fields: Optional[str] = None,
        place_fields: Optional[str] = None,
        poll_fields: Optional[str] = None,
        tweet_fields: Optional[str] = None,
        user_fields: Optional[str] = None,
    ) -> List[Tweet]:
        """Search tweets from up to the last seven days matching parameters"""
        fields: Dict[str, Any] = {"query": query}
        fields.update({"max_results": max_results} if max_results else {})
        fields.update({"next_token": next_token} if next_token else {})
        fields.update({"start_time": str(start_time)} if start_time else {})
        fields.update({"end_time": str(end_time)} if end_time else {})
        fields.update({"since_id": since_id} if since_id else {})
        fields.update({"until_id": until_id} if until_id else {})
        fields.update({"expansions": expansions} if expansions else {})
        fields.update({"media.fields": media_fields} if media_fields else {})
        fields.update({"place.fields": place_fields} if place_fields else {})
        fields.update({"poll.fields": poll_fields} if poll_fields else {})
        fields.update({"tweet.fields": tweet_fields} if tweet_fields else {})
        fields.update({"user.fields": user_fields} if user_fields else {})
rare moat
mental idol
#

Hell ya! rooDuckDance

#

We got searches and a working model rooH

fluid plank
#

πŸ‘€

mental idol
fluid plank
#

ah i see. sad. it looks good but i have to use JuliaMono

mental idol
#

vvThink It looks good! I might try it at work tomorrow.

proper python
mental idol
#

Got lost in the sauce and only have 2 hours to get my writing goal in rooScreaming

dim root
dusky cliff
#

defaulting to a mutable arg is risky

mental idol
dim root
#

I might use your lib for my project - twitter.tui which has no TUI as of now lol

elfin vine
#

That said, why not just default it and clear the values that are None?

#
def clean_dict(mapping):
    return {k: v for k, v in mapping.items() if v is not None}
jovial island
#

Definitive Edition ℒ️

elfin vine
#

What do you call a part in an expression? lemon_sweat

If I have 5 + 3 then what do you call 5 and 3?

elfin vine
#

Oh that's perfect!

round moss
#

@elfin vineterm may also be useful depending on context

elfin vine
#

Ah right for multiplication

mental idol
tawny moon
#

boop

ionic locust
#

beep

mental idol
#
def search_recent(
self,
query: str,
*,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
since_id: Optional[str] = None,
until_id: Optional[str] = None,
expansions: Optional[str] = None,
media_fields: Optional[str] = None,
place_fields: Optional[str] = None,
poll_fields: Optional[str] = None,
tweet_fields: Optional[str] = None,
user_fields: Optional[str] = None,
) -> Recent:
"""Search tweets from up to the last seven days matching parameters"""
fields = {
    "query": query,
    "max_results": max_results,
    "next_token": next_token,
    "start_time": str(start_time),
    "end_time": str(end_time),
    "since_id": since_id,
    "until_id": until_id,
    "expansions": expansions,
    "media.fields": media_fields,
    "place.fields": place_fields,
    "poll.fields": poll_fields,
    "tweet.fields": tweet_fields,
    "user.fields": user_fields,
}
clean_fields = {key: value for key, value in fields.items() if value}

result = self.http.request("GET", self.RECENT, clean_fields, self._headers())
self._last_response = ResponseHeader.build_from(result)

return Recent.build_obj(self.data2dict(result.data))

Still a lot but easier to read by leaps and bounds. Quick little line for cleaning and this feels good. rooDuckDance

#

ugh, discord just ate all the indents at the top. rooCookieEat

echo fern
#

that would actually look quite poggers with a builder pattern

#

imagine

#
RecentQuery(query).from_time(31231231).to_time(645625422).since_id(173423).search()
mental idol
#

Hmmm, that's an interesting model.

#

So RecentQuery is a factory and it's just chaining the resulting object. Mutating itself at each step?

echo fern
#

Either that, or returning changed copies, but the former is obviously a bit less wasteful

mental idol
#

!bm 908575309283074100

#

rooDerp Not how that works.

echo fern
#

.bm, iirc

daring jay
#

That's a Lance command, not Python haha

cedar turtle
mental idol
cedar turtle
echo fern
#

usually one uses chaining, like

(RecentQuery(query)
.from_time(31231231)
.to_time(645625422)
.since_id(173423)
.search())
#

This is totally not a common pattern in Rust libraries, no sir πŸ‘€

mental idol
#

... I could use a context manager too.

with QueryBuilder() as query:
    query.from_time = ...
    query.search = ""
    results = query.run()
echo fern
#

hmm, interesting, what'd the manager do?

cedar turtle
mental idol
#

I agree... just playing with the thoughts

cedar turtle
#

but writing builders is kinda a pain, you gotta have attributes and methods for all of them

mental idol
#

have.... you seen the data model for this alone? I'm in for the pain

cedar turtle
mental idol
#

.bm 908575309283074100

daring jay
#

I wonder if you could build a tool to do something similar

cedar turtle
#

exactly my idea

daring jay
#

for classes though, not structs

cedar turtle
#

may be using some sick ast manipulation with exec

#

thats doesn't sound nice

daring jay
#

hmm but I wonder syntactically how you'd do it

#

Well, how you'd make it not icky at all

unreal sigil
#

When in doubt, abuse future annotations

cedar turtle
#
@Builder(name='LolBuilder')
class Lol:
  x: int
  y: int

myobject = LolBuilder().x(0).y(0).build();
daring jay
#

Do decorators work on classes?

cedar turtle
daring jay
#

If so, that would make it much easier

cedar turtle
cedar turtle
#

!e ```py
@lambda c: print(f"Hello, {c}")
class Bruh:
...

clever salmonBOT
#

@cedar turtle :white_check_mark: Your eval job has completed with return code 0.

Hello, <class '__main__.Bruh'>
unreal sigil
cedar turtle
mental idol
#

Will it write my novel for me? vvSmug

unreal sigil
#

Future annotations are stringified

cedar turtle
#

o sorry

#

THATS SICK BRUH

unreal sigil
#

Which opens up all sort of cursed opportunities

cedar turtle
#

OMG HOW DID I NOT KNOW THIS

mental idol
#

Future annotations do make the process of things easier.

unreal sigil
#

!e

from __future__ import annotations

@lambda c:c()
class __annotations__:
    def __setitem__(self, k, v):
        if k == "For":
            self.condition = v.split(",")[1].strip()
            self.var = v.split(",")[0].strip("(")
            globals()[self.var] = 0

        elif k == "_":
            code = v.strip("{").strip("}").strip().split(", ")
            code_string = "\n".join(stuff.strip("'") for stuff in code)

            while eval(self.condition):
                exec(code_string)
                globals()[self.var] += 1

For:(x, x < 4, ++x);_:{
    print("Hello world"),
    print(x)
}
clever salmonBOT
#

@unreal sigil :white_check_mark: Your eval job has completed with return code 0.

001 | Hello world
002 | 0
003 | Hello world
004 | 1
005 | Hello world
006 | 2
007 | Hello world
008 | 3
mental idol
#

I wrote a wrapper that leveraged them... then wrote it to not use them and just.... ugh.

cedar turtle
#

this is so cool

#

im going to abuse this to my heart's content

cedar turtle
#

although i imagine this future trick may break existing annotations on classes

unreal sigil
#

!e

from __future__ import annotations

def _(func):
    code = "\n".join(func.__annotations__["return"][1:-1].split(", "))
    def wrapper():
        exec(code)
    return wrapper

@_
def test()->{
    print("test"),
    print("hello world")
}:...

test()
clever salmonBOT
#

@unreal sigil :white_check_mark: Your eval job has completed with return code 0.

001 | test
002 | hello world
unreal sigil
#

It will break everything

cedar turtle
#

let the world burn

daring jay
#

did you just use return type to write code

unreal sigil
#

Perhaps

cedar turtle
#

mayhaps

daring jay
#

I am concerned for your sanity Jack

hidden kernel
#

wait but thats illegal

unreal sigil
#

!e

from __future__ import annotations

@lambda c:c()
class __annotations__:
    def __setitem__(self, name, value):
        globals()[value] = globals()[name]

class Number:
    def __init__(self, value):
        self.value = value

    def __pos__(self):
        self.value += 0.5
        return self
    
    def __str__(self):
        return str(self.value)

class console:
    def log(*args, **kwargs): 
        print(*args, **kwargs)

let: i = Number(5);

++i;
console.log(i);
clever salmonBOT
#

@unreal sigil :white_check_mark: Your eval job has completed with return code 0.

6.0
mental idol
#

and yet, there it is.

unreal sigil
#

I do love my future annotatinos

daring jay
#

omg

cedar turtle
cedar turtle
unreal sigil
#

πŸ‘€

mental idol
#

Go all out, yeet: globals()[name]

cedar turtle
#

yeetscript

mental idol
#

I need to yeet myself to bed. Thanks for the feed backs @daring jay rooLove
Night you code breakers you. rooHack

daring jay
#

globals have been yeeted

#

uhh, I gave you no advice, that was Reptile

#

But good night, Preocts

mental idol
#

@echo fern thanks for the advice/suggestion! rooLove

#

I'm very tired...

#

but I'm telling myself it's Friday and I only work in 4 hours and only for 7 hours at that so I coooould just stay up and play around with a builder model instead

daring jay
#

woah it's midnight already I should sleep too

cedar turtle
#

damn

echo fern
# daring jay I wonder if you could build a tool to do something similar

I was going to post this 15 minutes ago, but my internet went out πŸ˜”

@generate_builder()
@dataclass
class RecentQuery:
    query: str
    max_results: Optional[int] = None
    next_token: Optional[str] = None
    start_time: Optional[datetime] = None
    end_time: Optional[datetime] = None
    since_id: Optional[str] = None
    until_id: Optional[str] = None
    expansions: Optional[str] = None
    media_fields: Optional[str] = None
    place_fields: Optional[str] = None
    poll_fields: Optional[str] = None
    tweet_fields: Optional[str] = None
    user_fields: Optional[str] = None

cedar turtle
#

i have tons of frogs shouting at me

echo fern
#

^ you can probably make a decorator to autogenerate the builder methods like this

daring jay
#

yeah I didn't realize decorators worked on classes. Now why I thought that, I couldn't tell you.

dusky cliff
#

tbf dataclass is the only class decorator ive seen

#

dunno if there's any other in the stdlib at all

elfin vine
echo fern
#

lol

odd sphinx
#

bruh

tepid hamlet
#

long live visual studio code

echo fern
#

is this really how you uninstall stuff on mac lmao

tepid hamlet
#

I figured it was the best way to tell Pycharm CE that it ain't welcome on my system

#

Get off my Mac, Jetbrains!

hazy laurel
dusky cliff
#

😒

tepid hamlet
# hazy laurel how rude πŸ˜”

Pycham has been 10,000 times as rude, it almost overheated my mac, I had to yeet the poor laptop into the freezer because pycharm was heating it up

hazy laurel
#

How did you manage that? \πŸ€”

tepid hamlet
#

Death to Pycharm. Glory to VS Code.

pliant trench
#

Glory to emacs

tepid hamlet
#

death to emacs

#

and glory to vs code

pliant trench
#

nah

hazy laurel
#

love JetBrains IDEs

dusky cliff
#

same

pliant trench
#

bruh wtf, my fans are working even if I have nothing opened

#

always the same on windows

tepid hamlet
hazy laurel
#

Sound like a mac problem I guess

#

Meanwhile I open like 3 different IDEs at once and have no problems :faint:

tepid hamlet
#

Well, I have the bad feeling it's going to happen again even when I make the switch to Ubuntu

#

No contest, death to PyCharm. No joke.

#

98% of pycharm is bloat

hazy laurel
#

._.

pliant trench
#

yk PyCharm is not that bad,
but vs code is enough for me

#

on windows at least

tepid hamlet
pliant trench
#

Your mac is broken.

tepid hamlet
pliant trench
#

linux is not gonna be that good too

jovial island
#

is linux really that better

#

than widnows for programming?

hazy laurel
#

just imagine doing C/C++ development without UNIX tooling

jovial island
#

what are linux plus points?

jade bolt
#

is linux really that worse

#

than widnows for progaming?

odd sphinx
#

eh

daring jay
#

I'd say better tbh, since there are so many more tools geared towards *nix than Windows

jade bolt
#

but how many games out there actually supports linux

daring jay
#

Oh wait, you said progaming not programming

#

I didn't even realized you typoed

#

Idk about gaming

dim root
#

yes linux not really good for gaming

hazy laurel
#

Linux is great for gaming

#

the only problem is that games deliberately choose not to work

#

namely because of anticheats

#

AFAIK and IIRC, Linux also actually outperforms Windows in a good chunk of Proton benchmarks

jade bolt
#

ooo, that is why most ctf requires linux, linux is a cheat tool

#

ooo

hazy laurel
#

._.

#

This is slowly changing, however

#

More anticheats are pushing to support Linux via Proton

jade bolt
#

in my region they only sell windows/macos

hazy laurel
#

I know Dell and Lenovo have Linux computers

jade bolt
hazy laurel
#

yeah me neither LMAO

#

but tbh the best we have is Wal-Mart

lapis plinth
#

make one

#

its like 1.5-2x cheaper usually

pliant trench
#

do they?

#

interesting

hazy laurel
#

they do

pliant trench
#

das good

jade bolt
# lapis plinth make one

idk how do i craft a laptop, id like to have a desktop crafted, but uh i want everything to be easy cariable

lapis plinth
#

oh laptops :/

jade bolt
#

so that i can drop database and run away

lapis plinth
#

you could get a random laptop then just install linux on it

jade bolt
#

yeah, ive been using windows for too long im afraid that changing an os isnt an easy task

hazy laurel
#

just get one without a preloaded OS

jade bolt
jade bolt
#

uh i mean for .iso files

hazy laurel
#

oh

#

well of course

lapis plinth
#

just build your iso before getting the new one

hazy laurel
#

oh, I understand now

#

yeah you'd want to go into this with installation media available beforehand

#

but hey, it cuts down on the price. No paying for a Windows license or whatever

lapis plinth
#

you can run a test version of windows at least with a bootable iso without actually installing it im guessing you can with linux but ive never tried, just to test it

#

lol i totally didnt get a windows key for 3$ on ebay

#

that would be baddddd

hazy laurel
#

banned.

#

waste of $3

lapis plinth
#

but ye always test an iso first as building one for the first time is usually sort of confusing, i tried for an hour to use an iso i never made bootable so..

hazy laurel
#

huh?

#

How'd you manage that

#

it's literally just like... plug in USB, select iso, click epic button, reboot into one time boot menu, select USB

#

done

lapis plinth
#

idk i looked up how to use an iso and they said download it, make it bootable, then put it in the pc but never actually said how to make it bootable

#

but the weird thing was it wasnt getting to bios so I thought my mobo had broke as i dropped it on fabric the other day

pliant trench
#

Saint IGNUcius

#

great

ionic flax
#
[Unit]                                                               
Description=Home assistant                                           
                                                                     
[Service]                                                            
Type=simple                                                          
Restart=on-failure                                                   
ExecStart=cd /home/darren/homeassistant && bash start.sh             
CPUAccounting=yes                                                    
MemoryAccounting=yes                                                 
                                                                     
[Install]                                                            
WantedBy=default.target
```Whats wrong with my config?
pliant trench
#

config of what

jovial island
#

which linux os should i get (new to programming, first time linux)

round moss
#

ubuntu

pliant trench
#

would be good

steel eagle
#

Ubuntu for sure

echo fern
#

how's it called again when you merge two meanings of a word in a sentence?

#

like, I dunno, "I hanged my coat and up on him"

somber belfry
dusky cliff
#

portmanteau is just joining two words into one

echo fern
dusky cliff
#

like brunch

somber belfry
#

oh wait
you hanged your coat and you hanged up on him

echo fern
#

yeah

somber belfry
#

that took me a while

echo fern
#

there's a word for this, and I forgot it

carmine herald
#

confusion

echo fern
#

zeugma is what I'm looking for, I think

#

Zeugma (often also called syllepsis, or semantic syllepsis): a single word is used with two other parts of a sentence but must be understood differently in relation to each.[6][7][8][9] Example: "He took his hat and his leave." The type of figure is grammatically correct but creates its effect by seeming, at first hearing, to be incorrect by its exploiting multiple shades of meaning in a single word or phrase.

#

You held your breath and the door for me

carmine herald
#

is zeugma like ligma

dusky cliff
#

I KNEW IT

#

someone had to bring it up

carmine herald
#

im sowwy uwu

sinful sun
#

Zeugma breath and door

shrewd lance
#

He took his hat and his deez

sinful sun
#

Oooh zeugma is greek, nice

#

Related to ΢Ρυγάρι, which means "couple"

carmine herald
#

deez what?

fluid plank
#

interesting

mental idol
clever salmonBOT
#

twitterapiv2/search_client.py lines 175 to 188

nanotag = (
    SearchClient()
    .start_time("2021-11-10T00:00:00Z")
    .end_time(datetime.utcnow() - timedelta(seconds=10))
    .expansions("author_id,attachments.poll_ids")
)
for idx in range(2):
    result = nanotag.search(
        "#NaNoWriMo",
        max_results=10,
        page_token=nanotag.next_token,
    )
    for tweet_text in result.data:
        print(tweet_text.text)```
mental idol
#

cc: @echo fern

hazy laurel
#

um

#

that is some syntax I've never seen before

#
In [1]: foo = (
   ...:     "foo"
   ...:     .split()
   ...: )

In [2]: foo
Out[2]: ['foo']

wow and it works \πŸ€”

#

Why has nobody brought this to my attention lol

mental idol
#

#PEP8

#

I think it would look better with the method calls indented another block but I understand why they aren't.

hazy laurel
#

yeah that's how Rust does it

#

I think

mental idol
#

Not sure I have a strong preference of

nanotag = (
    SearchClient()
    .start_time("2021-11-10T00:00:00Z")
    .end_time(datetime.utcnow() - timedelta(seconds=10))
    .expansions("author_id,attachments.poll_ids")
)

over

nanotag = SearchClient(
    start_time="2021-11-10T00:00:00Z",
    end_time=datetime.utcnow() - timedelta(seconds=10),
    expansions="author_id,attachments.poll_ids",
)

But having the builder method makes docstrings far more useful

#

Which helps devs and users.... so I think that sells me on it.

clever salmonBOT
#

twitterapiv2/search_client.py lines 102 to 109

def tweet_fields(self, tweet_fields: Optional[str]) -> "SearchClient":
    """
    Define tweet_fields of query. Comma seperated with no spaces:
        attachments, author_id, context_annotations, conversation_id,
        created_at, entities, geo, id, in_reply_to_user_id, lang,
        non_public_metrics, public_metrics, organic_metrics,
        promoted_metrics, possibly_sensitive, referenced_tweets,
        reply_settings, source, text, withheld```
mental idol
#

@rocky coyote , couldn't you use .replaceAll()? (per the JS question from pygen)

rocky coyote
jovial island
#

@tepid hamlet lol there we go

#

i guess cmd doesnt like utf8

daring jay
#

If your terminal isn't using utf8 by default on Windows, you should be able to change the encoding of the current session with chcp 65001

jovial island
jovial island
#

oh chcp 65001

hazy laurel
#

this is font dependent usually

#

you'll need a monospace font that supports these symbols

jovial island
#

still same tho

#

windows terminal seems fine with them

daring jay
#

oh

#

winterm is great, anyway

jovial island
#

yeah, i was just checking this for pycharmkiller.py 's question.