#ot2-the-original-pubsta

652 messages Β· Page 82 of 1

steel eagle
#

Okay okay but like

graceful ocean
#

I feel we need a topic lol

steel eagle
#

The knobs in my Jetta are really nice but they have a FATAL FLAW

odd sphinx
#

car knobs are very nice

hazy laurel
#

I love car knobs

graceful ocean
odd sphinx
#

lol

steel eagle
#

the power button/volume knob has the power icon on it... And the ICON ROTATES WITH IT...

This wouldn't be an issue BUT

THERE ARE VOLUME BUTTONS ON THE STEERING WHEEL
SO WHEN YOU CHANGE THE VOLUME THE KNOB IS IN THE INCORRECT ORIENTATION

graceful ocean
#

Bruh

#

That's...

odd sphinx
#

lol

steel eagle
#

it drives me insane to not have the dash on the power icon facing straight up.
It's a serious crime to touch the volume knob in my car. You can ask me to turn it up or down but touch the knob and you get hurt

#

Y'know I was gonna type something more, but nevermind lol

graceful ocean
#

Probably a bad idea lol

hazy laurel
#

I'm just now realizing that I might have some form of weird OCD with tons of things

graceful ocean
#

Welcome to the club

hazy laurel
#

like... thinking about it, I realize I'm finicky with so many random things

steel eagle
#

I definitely have some sort of ocd or ocpd

#

I will go out of my way to do all the prep at work in a very specific order

graceful ocean
#

My favorite number is 2916

hazy laurel
#

I feel like for me it's OCD without the O

steel eagle
#

And if I'm asked to do something out of order because we're out or something, it throws me off for the whole day

hazy laurel
graceful ocean
dusky cliff
#

4097

hazy laurel
#

OUCH

steel eagle
#

My favorite number is 8192

#

Either that or 8675309

graceful ocean
#

Why starting with 8?

odd sphinx
#

no one likes negative numbers?

steel eagle
#

I dunno, it's just nice

hazy laurel
#

8192 is like 8 GB RAM, no?

steel eagle
#

Mhm

graceful ocean
#

Fuck negative numbers

steel eagle
#

I mean if you insist

hazy laurel
#

well

odd sphinx
hazy laurel
#

8 Gibibytes, technically

steel eagle
#

Nice edit zee

#

I was about to comment

hazy laurel
#

damn it. I didn't pay attention

#

I always miss everything

steel eagle
#

He added the to do

hazy laurel
#

oh.

#

that doesn't fix it

dusky cliff
#

adding the to do was on his to do list rofl

graceful ocean
#

lol

hazy laurel
#

._.

steel eagle
#

Oofer nanners

odd sphinx
#

aha

odd sphinx
dusky cliff
#

thanks bro!!

graceful ocean
#

I appreciate shit humor

hazy laurel
steel eagle
#

I felt that pun in my 0o644

dusky cliff
hazy laurel
#

ugh what is 644 octal

graceful ocean
steel eagle
#

420

graceful ocean
hazy laurel
#

420 haha

graceful ocean
#

Better number is 621

hazy laurel
#

oh damn it. as soon as I figured that out, you already said it

#

I'm so slooowwww

steel eagle
#

I don't actually use 621

odd sphinx
#

speed up

steel eagle
#

Unless I'm looking for something very specific

graceful ocean
#

Interesting.

hazy laurel
#

wha

dusky cliff
#

wha

graceful ocean
#

You two wouldn't get it

steel eagle
#

If you know you know, otherwise don't look into it lol

hazy laurel
#

oh yes. MSG

graceful ocean
#

That's a joke too

steel eagle
#

Monosodium glutamate?

graceful ocean
#

Monosodium Glutamate.

#

E621 chemical

steel eagle
#

Oh yeah I remember that now

dusky cliff
graceful ocean
#

^Confused

steel eagle
#

Man I can finally breathe normally again

graceful ocean
#

Yay!

#

Breathing is nice

steel eagle
#

Hate that lingering stiffness after a night terror

hazy laurel
#

I'm so confused

#

surely the joke is not about MSG

graceful ocean
#

It's not

#

But don't look into it

hazy laurel
#

oh wait

#

that's funny

graceful ocean
#

Welcome to the conversation lol

dusky cliff
#

enlighten me

graceful ocean
#

You don't wanna know

dusky cliff
#

no

odd sphinx
#

no

graceful ocean
#

no

steel eagle
#

No

hazy laurel
#

haha funny testing

odd sphinx
#

seen 4000 times

unreal sigil
#

@simple snow No thanks

odd sphinx
#

lol

dusky cliff
#

lo

simple snow
#

lo

graceful ocean
#

Here come the mods

odd sphinx
#

lo

graceful ocean
#

Here come the mods

hazy laurel
#

quick, stop talking about MSG

graceful ocean
hazy laurel
#

the what

graceful ocean
#

Then you will see why I said it twice

#

Silence ensues
Come on, guys (and gals). I was having fun talking!

steel eagle
#

Bark

graceful ocean
#

Murrawr

steel eagle
#

Ye

graceful ocean
#

I just wanna say this:
I hate Wisconsin

#

I wanna move to the UK

steel eagle
#

UK laws make me sad

graceful ocean
#

How so?

steel eagle
#

I don't think I could reasonably live anywhere else in the world to be honest

#

Maybe Geneva

#

I'd rather got get into it, it'll get way too political if I start that Convo

graceful ocean
#

The US is just falling apart, in my opinion.

#

But yeah. Let's not go there.

steel eagle
#

Whole world is

graceful ocean
#

I'll drink to that one if I could legally drink.

steel eagle
#

I got way too drunk on the 4th of July

#

Haven't drank since

#

Spent the whole day sick as a mother fucker the 5th

graceful ocean
#

I had a single shot of vodka once.
Found out I'm reeeeeaaaaaaallllllyyyyyy lightweight.

steel eagle
#

Actually I'm wrong I had one drink when we had some people over a couple of weeks ago

graceful ocean
#

Β―_(ツ)_/Β―

steel eagle
#

I've just realized that my workstation is louder running than our 2U rack mount

graceful ocean
#

That a good or bad thing?

steel eagle
#

Probably bad lol

#

But under load it has like 600w of heat to dissipate so

#

The server is only like a couple hundred

graceful ocean
#

Listen. If we were a company, you'd probably be the person doing the physical computer stuff, and I'd be a fucking secretary. I don't know shit about how computers work physically, I just know some basic code.

steel eagle
#

RTX 3070 Ti, Ryzen 7 5800x, 32gb RAM, a metric handful of drives

#

LOL

graceful ocean
#

No idea what that means lol

hazy laurel
#

good stuff

graceful ocean
#

I know RTX is good and the more RAM the better

steel eagle
#

Imho you should have a decent handle on what hardware is if you're a programmer

steel eagle
#

Everything is overclocked too

hazy laurel
#

I don't much understand CPU specs, honestly

steel eagle
#

So more power draw

#

4.6ghz all core on the 5800x

#

Which is funny because it's actually a 0.2v UNDERVOLT

graceful ocean
#

Wat about the omnipresent "Intel Inside"?

steel eagle
#

Stomks

hazy laurel
#

I've got an RTX 2060 Mobile and Ryzen 4600H with 16 GB RAM

steel eagle
#

Intel is losing the CPU game pretty hard right now

hazy laurel
#

the SSD is quite tiny, though... only 512 GB

echo flower
#

hope they do well there

steel eagle
#

My 400 dollar Ryzen has so far beat every single Intel CPU guy the generation it was released and the generation after

graceful ocean
#

.-.

#

That's worth more than I am

steel eagle
hazy laurel
#

just kidding

echo flower
steel eagle
#

Hell their first card can't even run a handful of games, like literally they will not even launch

#

It's like gt1030 performance, sightly worse, in the games it does launch

echo flower
#

it's their first gpu cut them some slack

steel eagle
#

Intel has even stated they won't be going after the gaming market

#

Their market is office and business

hazy laurel
#

tbh I can't exactly afford to care about specs too much

steel eagle
#

And probably ML later

graceful ocean
#

And this is my cue to tune out, cause this shit's waaaaaaaaay outta my league.

hazy laurel
#

The laptop I've got is probably one I'll have for years

steel eagle
#

Lol

#

I'm going back to bed anyway

#

I have to have good enough hardware to run new games at 1440p165hz

#

Max settings

#

The 3070 ti is actually just a temporary card for me

#

I'll be getting a 4080 ti likely

graceful ocean
#

I need to bother my bf anyways.
And Goodnight to you. Don't have night terrors.
Catch y'all later

steel eagle
#

Its just impossible to get a card right now and I had the chance for it

hazy laurel
#

not to flex or anything

steel eagle
#

And I was waiting but my 1070 started to die

graceful ocean
#

Oh noes.

#

My Master is offline. ;-;

hazy laurel
#

oh boy

#

what ever shall you do

prisma anvil
#

Hi

median blade
#

and the lowest end will be near a 1650 super or soo but apparently with ray tracing support

severe trout
median blade
hazy laurel
#

I read design as "endian" and I don't know why

lunar vine
#

.topic

rustic harborBOT
#
**What is your favorite media genre?**

Suggest more topics here!

lunar vine
#

RandomπŸ‘€

hazy laurel
#

What exactly is a media genre

exotic hound
#

do you think flutter app is so bloated

#

i build a simple counter app, it takes about 10 seconds to start, takes more than 20mb ram, and a bit laggy

hazy laurel
#

20 Mb is like nothing, though

exotic hound
#

i modified it a bit, it becomes a random face app, which calls to an API every time a button is pressed, i run it, it eats 100mb ram

#

i'm not sure i'll make a complex app using flutter

exotic hound
#

yes

odd sphinx
#

linux?

exotic hound
#

i use release build

odd sphinx
#

hm

#

ive made a flutter app

#

and its pretty smooth on my computer

#

do u have the latest flutter

exotic hound
#

i have 2.5.0 i just downloaded it yesterday

odd sphinx
#

well

#

desktop flutter is still in beta

#

but it should still be fast

#

maybe ur code slows it own

#

if ur fetching from a network are u using async to its full power?

hazy laurel
#

it looks like of like the system monitor on KDE but... GNOME

exotic hound
odd sphinx
#

hm

#

ive built a flutter app on linux too

#

and it ran pretty smoothly

#

this is weird

#

are u in the flutter server

#

u will probably get bettr help there

exotic hound
#

thanks

shadow elk
#

nah, it's not valid

odd sphinx
#

yea

#

hm

sterile nymph
#

hello people and bots

jovial island
#

Hello, am a bot

hollow heart
#

@hidden kernel what he says around 47m in, don't you find it really hard to throw away code πŸ˜”

#

even if it doesn't work or isn't the correct way to go about solving your problem

hidden kernel
#

I don't anymore, but I remember the feeling of "it almost works I just need one change" and being super wrong about that

mental idol
hollow heart
#

omg me!

#

just 1 line!

#

then I'm sure it'll work

hidden kernel
#

what's funny is that there's a minority of noobies who will just wipe their whole file if they get like two errors in a row

hollow heart
#

nothing is wrong with my original thought process non

hidden kernel
#

should start telling people to just start a new file

hollow heart
#

original.py

mental idol
#

I did some "work" today and eliminated an entire requirement of my project

hidden kernel
#

you gotta disperse those in your other commits to make it look like you know what you're doing and not writing pages of useless code smh

mental idol
#
347a1ac (HEAD -> main, origin/main) Enforce Python3.9 in pre-commit
b9f8249 Test for missing character
3cb9c4a Create test to load fixture
897f7b7 Destroy unused files
1f65aab Refactor characterclient into a controller
08865ec Implement len() dunder
1cddb62 Refactor LucyItemClient into controller
a05fd46 Impliment len() dunder
70c6dc0 Refactor character inventory loading to provider
1832bc4 Deleted code
2c9fbc4 Refactor fileutil
879746c Refactor Lucy item downloader/manager into provider
f37e411 Refactor file loading of Lucy items into a provider

From the bottom up you can tell the moment I realized I'd just refactored the entire database out of existence.

#

narrator voice And it was at that moment they realized; "Oh".

hidden kernel
#

lol

mental idol
#

But hey, the code is a lot cleaner now

hidden kernel
#

git branches as epistolary storytelling

steel eagle
#

Bro why do cars have to do this now

round moss
#

I am in awe that outlook is somehow not a correct IMAP/SMTP client

#

it just doesn't work

round moss
#

gradually forcing the support person to acnowledge that this is an outlook issue and not me failing to configure things

round moss
#

the funniest part is that port of the debugging process was adding it to some random mail app and that took me literally 5s

#

oh, there was a secret setting that needed switching to make it work

#

that's fun

tribal tinsel
#

I had similar weirdness with one vpn. Why even have a Linux client if the connection fails, while it works with exactly the same config on Windows?

#

I still haven't made it work. I just... Use my Windows VM for it

#

Previous vpn this client had didn't have Linux client anyway, so I'm used to using Windows for their vpn anyway

round moss
#

I want to tell the support person it worked, but IDK how to open support without the error msg

#

well, IG they will just live forever not knowing

tall temple
#

lmao, maybe they'll try to improve

sterile nymph
#

vpn is getting closer

echo flower
#

wat

wide totem
#

please no, i have spent all day on "one change'

sharp spoke
median blade
#

VW Jetta

steel eagle
sharp spoke
sterile nymph
#

it's 2.0 turbo?

steel eagle
#

No that's the GLI

#

Or actually I think the GLI is a 1.8 on the mk7s

#

I have an S, 1.4T. 148hp/184lb-ft tq

#

6 speed manual

#

Quite peppy for what it is, I love the car

#

Best new car you can get under $20k imho

#

I drove basically every new car available in manual before I bought it

#

Buying an automatic wasn't an option for me

keen burrow
#

@somber belfry when are you going to conquer GoLang?

wide totem
#

@mental idol hey, we had a discussion on .env files a while ago, so I figure I'd ask you.
Do you use ' or " for string literals in env files?

steel eagle
#

Single quote string literals feel like a crime

sharp spoke
#

it quite frankly is πŸ’€

#

single quotes is meant to be used only for nested strings

sterile nymph
#

are you a cowgirl?

somber belfry
median blade
#

why is that emoji so weird

#

\🌝

#

ah

elfin vine
#

Help I think I accidentally selected all my mail and marked it as important

hazy laurel
#

how have you managed

keen burrow
#

Uh oh

#

Imagine using important tags

lunar vine
#

.topic

rustic harborBOT
#
**What is your favourite food?**

Suggest more topics here!

echo flower
#

look at this little terminal

#

for scale

jade bolt
sharp spoke
echo flower
mental idol
sterile nymph
#

monday day to work a lot

haughty gale
#

Please leak gorilla tag mod

tribal tinsel
compact dagger
#

@reef kayak What kind of issues did you bump into?

reef kayak
#

Things like scroll speed being annoyingly slow, audio issues, and so on

#

Just niggling things that were annoying me

#

TBH I could probably deal with most of them but the scroll speed issue kills me

#

No way to change scroll wheel speed in regular settings

compact dagger
#

Scroll speed one is pretty painful at times. But there are a lot of tools to help fix that.

reef kayak
#

True. I tried imwheel but it didn't feel right

compact dagger
#

imwheel?

reef kayak
#

yeah, command line tool for it

#

I could crudely increase the scroll wheel speed but it felt off somehow

compact dagger
#

Usually you can force it with things like libinput Accel Speed

reef kayak
#

like it was accelerating far more that it should

#

Well, I found out that the option will appear in regular settings if I use KDE and Wayland together

compact dagger
#

And if its only one or two applications, like Firefox. There is actually spessific settings in the browser for it.

reef kayak
#

True but I would really want a global fix for it

compact dagger
#

Annoyingly, Firefox does not want to follow the standard mouse scroll and implements its own

reef kayak
#

I did consider fixing it only for Chrome

#

and then it was a pain using Discord XD

compact dagger
reef kayak
#

is that actually scroll wheel speed though?

#

looks more like mouse speed

compact dagger
#

Wow thats actually not included in there

#

Woah.

reef kayak
#

yeah

#

In Windows, this is a regular system setting

compact dagger
#

It should be in linux as well. But nobody has dared to touch it. Xorg is a real mess.

reef kayak
#

It kinda killed me to find that on Linux, an OS famed for its customisability, it was a pain to just change scroll wheel speed

compact dagger
#

Wayland might help it see it come trough.

reef kayak
#

Yes - Wayland + KDE apparently has it. Kubuntu has that in unsupported mode

compact dagger
#

What mouse is it by the way

#

The mouse driver itself might have the config setting you are looking for

reef kayak
#

eh, bog standard Logitech

#

G305

compact dagger
#

Tahts the exact one i have xD

reef kayak
#

Ahaha

#

Good mouse but my last one developed horrible double-clicking issue

compact dagger
#

I have gotten used to PGUP and PGDN keys for fast scroll.

reef kayak
#

so I am on a warranty replacement

compact dagger
reef kayak
#

LOL

#

is it under warranty

compact dagger
#

Why is this so common logitech

compact dagger
reef kayak
#

lol

#

rip

compact dagger
#

Not warranty i can use because i moved lol

reef kayak
#

ahhh

#

that's a shame

#

Tbh I got mine replaced through Logitech themselves

#

so might be worth a try

compact dagger
#

I have 2 4TB drives that are dead in warranty. But they wont take it because i dont live in the same country anymore.

#

Tldr: Never fucking buy Toshiba.

reef kayak
#

ha, that's a shame

#

buy from Amazon instead

compact dagger
#

I thought i was being smart. I didnt listen to smart people.

reef kayak
#

I once ordered an SSD

compact dagger
#

And now i have 2 of my drives dead

reef kayak
#

I got 10 in the post

compact dagger
#

in a 6 month window each

reef kayak
#

Oof horrible

compact dagger
reef kayak
#

XD

#

I was a good Samaritan though

compact dagger
#

ono

reef kayak
#

sent 9 back

#

coworkers couldn't believe me

compact dagger
#

But why.

reef kayak
#

Good Samaritan XD

compact dagger
#

Not really. Companies are pretty effing evil.

#

Them doing a slip up in my favor is a nice day in my book.

reef kayak
#

true but two wrongs and all that stuff

compact dagger
#

You didnt do a wrong. They messed up their ordering system.

#

Usually they dont even want them back because it costs too much money to check them. So its better to take the hit than to even try to sell them again.

reef kayak
#

This time they definitely wanted it back lol

#

Though the Amazon rep apologised for the "inconvenience" whilst trying not to laugh

compact dagger
#

Did you get anything for helping out a billion dollar company?

reef kayak
#

Err

#

Β£10 XD

compact dagger
#

Yeah. Learned a lesson there

#

When 10 SSDs come to your door. Stay silent.

#

Theres rights for them not to be able to demand them back either.

#

They shipped it to you. So its yours.

#

Even if its not the "ordered" products.

reef kayak
#

People I talked to seemed disappointed I only got Β£10 back, but i didn't really do it to get a reward anyway

compact dagger
#

Companies are bad. They wont respect you or do any "good samatarin" back.

#

Everything they do is money and legal

#

So treat them the same level basically :P

reef kayak
#

Definitely could have made a nice profit by flipping them XD but eh, it's fine

steel eagle
#

Especially Amazon

#

You've essentially just helped out a corporation that runs LABOR CAMPS

compact dagger
steel eagle
#

So, if anything, you've hurt a lot of people by helping them

reef kayak
#

Every purchase is a profit for them

steel eagle
#

Yeah you should never buy from Amazon

reef kayak
steel eagle
#

Ever

compact dagger
#

And most SSD deaths just make the drives read only

reef kayak
#

lol fair enough. Yup, my SSD has been pretty solid

compact dagger
#

And not a "aw crap i dont have data anymore"

#

In other news. I am REALLY good at doing backups now.

reef kayak
#

ah yes

compact dagger
#

Having 2 drive failures have learned me to encapsulate my data. And not make it be relied upon for my computer.

#

I can literally unmount my drives right now and nothing will happen

reef kayak
#

For the moment I'm just using cloud storage

#

I do wonder - should I do a local backup? What's the advantage over just have a regular cloud backup

#

I have two copies of the data, including an offsite backup which is key if my home burns down. And I have ransomware protection through the cloud provider

compact dagger
#

Or well, i get a really angry home folder lol

#

But my pc still runs fine

#

I should write a blog post about how its set up

reef kayak
#

for my data

compact dagger
#

That is vauge, and also what would the local backup do?

reef kayak
#

Like, just document data. Let's say - data for uni studies.

#

and yeah, no idea why I need a local backup, but I read people say you need your data in three places, including a local backup

compact dagger
#

Like i use git for most my important repos for "backup" in the code sense. I can revert to any time if i lost anything.

I also have local borg backups to get versioned backups of the minecraft server im running. To stop greifing and corruption taking over.

And restic to get versioned push backups nightly.

turbid lagoon
#

I wanted to ask something

compact dagger
#

The most important thing is to know your backup system.

#

Flick out a laptop and try to recover without the pc.

turbid lagoon
#

Should I give my ip address to someone?

compact dagger
#

Make a file. Back it up. Delete it. And try to recover it.

reef kayak
#

Right. Yeah, my backup recovery is just sign into OneDrive XD

#

but it does work

turbid lagoon
reef kayak
#

it did mess up my folder structure once, but otherwise been flawless

compact dagger
turbid lagoon
#

Its a friend of mine

compact dagger
#

IP addresses are like saying "im at the cafe x in my hometown". They can send 1000 people to harass you. But you can just move to a different seat in that cafe, and theyd be none the wiser until you say that you moved to that seat.

turbid lagoon
#

So its basically my address

#

Oh

compact dagger
#

How you move seats is usually restarting the router, or calling the ISP to ask them to do give you a new one.

turbid lagoon
#

Hmm

compact dagger
turbid lagoon
#

I think its one of his shenanigans

#

I wont give it

compact dagger
turbid lagoon
#

Alright thanks

compact dagger
#

Valid reasons to give out an ip is whitelisting by IP. But thats rare to do as IPs move around alot

turbid lagoon
#

Ohh

#

I see

compact dagger
#

And youd need to spessificly ask your ISP to give you a static one for that.

#

(Funnily enough some ask for extra payment for that)

turbid lagoon
#

Isnt that like a scam?

compact dagger
#

To ask for extra payment for something that does almost nothing? Pretty much.

#

But sometimes its just absolutely needed to have that.

turbid lagoon
#

Hmm

#

Alright mate thanks for the help

#

Have a nice day

compact dagger
#

Does OneDrive have versioned writes. Or just a meme "We keep you safe" promise that can fall apart when a ransom does come around.

reef kayak
#

They have versioned history, and apparently it lasts for longer somehow if you are attacked by ransomware

#

I've not actually tested it though. Probably should do that

compact dagger
#

Yeah thats the kind of "uhhhh" feeling i dont enjoy about user facing backups.

reef kayak
#

When I was with Dropbox the equivalent functionality did work pretty well

#

In fact for more than one friend I helped get back file data using Dropbox history

#

But yes, will test for OneDrive

compact dagger
#

Im very annoyed that something like restic or borg style backups dont exist for user facing tools.

#

There are some. But not great integrated ones.

#

Okay so

#

I have triggers for backups to happen at 12am.

#

And i can watch my backup logs that my sleep schedule get trash this past week.

reef kayak
#

OK - just checked my OneDrive

#

It has version history for a month at least

#

so that's good

#

PyCharm autosaves my Python files and then OneDrive keeps a copy of that

#

only for a month, roughly speaking, but that's fine for ransomware attack

compact dagger
#

Move to linux. We dont really have ransomware attacks.

#

And then theres also a whole set of tools that can make that be pointless.

#

having copy on write partitions go brrr

reef kayak
#

When the scroll wheel thing is fixed, I'll reconsider XD

compact dagger
#

Authors note: Do not run a CoW system for backups. Its a sure way to nuke both your performance and corrupt your entire drive.

#

Authors note 2: Do not run btrfs. Its really bad for anything more than a basic filesystem.

#

Love the authors of btrfs. "WE HAVE THE MOST ADVANCED FILESYSTEM". but also "Please dont use any of our advanced features, it will corrupt your entire drive beyond recovery"

languid osprey
#

I expect this otn to be accurate

mental idol
lofty loom
#

https://rclone.org/ Speaking of backups

wide totem
#

@mental idol yo where are all of your roo emojis, I need an invite πŸ₯Ί

#

(only if its a public server ofc)

mental idol
wide totem
#

interesting

#

vanity invites are not case sensitive....

#

that means that this server also has Python pYthon, and every permutation...

mental idol
#

Shouldn't be. I'm just used to typing rooSip

wide totem
#

and I forgot how to calculate that permutation

mental idol
#

URIs in general, to my understanding, are case agnostic.

#

or should be

wide totem
#

well

#

discord invites have been case sensitive for a while

#

should have expected that lmao

mental idol
#

I know they aren't natively agnostic. But, in my opinion, if you want case sensitivity in your URI or routes.... something's wrong. rooSip

wide totem
#

lmfao

lofty loom
#

funky link

mental idol
wide totem
#

different member counts why

mental idol
wide totem
#

yes

#

half figured you would have dmed me tho glare

lofty loom
wide totem
#

rather than making me open t-twitch

mental idol
#

You expect me to remember how to open up a DM to someone? Bold.

wide totem
mental idol
#

They aren't closed. Just friend requets because I'm angy egg and have no friends EggDab

wide totem
#

lol

mental idol
#

The majority of pings I get in DMs are python questions so I just close them. vvShrug

wide totem
#

lmao

lofty loom
#

Panda colored egg that sends panda emojis

dusky cliff
#

fun fact panda3d uses a file format called .egg for 3d models

mental idol
#

okay... OKAY... CTRL + Tab works to move through the server list on the left.....

lofty loom
#

e g g

mental idol
#

my life is changed

lofty loom
#

πŸ₯š

mental idol
#

well, yeah

wide totem
#

and alt left / alt right to switch political sides go back and forth (this is fairly recent)

mental idol
wide totem
#

ctrl alt right to switch from dms to server

#

alt up / down to go up and down with channels

mental idol
#

I can't hit ctrl alt right on this keyboard

#

Need to twist my left wrist too much

wide totem
#

uh

#

you don't have a ctrl alt on the right of the keyboard?

mental idol
#

I do, it's just an awkward combo

#

I guess it's not that bad. Just not used to it

#

and it makes my left hand do this tiny little twist that doesn't feel right

lofty loom
#

Is that one of those ergonomic keyboards?

mental idol
#

I love it

dusky cliff
#

why is the spacebar so sma-
wait
why are ordinary spacebars so big??

mental idol
#

Gonna mod it out this winter.

lofty loom
#

If I could buy a keyboard for myself I'd just like my keys light and snappy, like how I'm used to a laptop

mental idol
#

So many options out there for that too @lofty loom

mental idol
#

HOWEVER.... learning to use my right thumb for space..... that took weeks

lofty loom
#

You made me notice how I don't use my right thumb for typing on physical keyboards

#

Only my left thumb for space

echo flower
wide totem
#

@mental idol where in the world is the spacebar?

dusky cliff
#

i think i use my right thumb for the arrow keys sometimes

echo flower
dusky cliff
mental idol
echo flower
#

lmfao

wide totem
#

that was hard to find

#

ugh

mental idol
#

Thumbs rest naturally on backspace (left) and space (right)

wide totem
#

tbh those feel backwards

mental idol
#

It's very common to remap them

#

Especially if you play games. Cause normally your left hand is on the keyboard and right on the mouse.

lofty loom
#

My right thumb doesn't rest on any key

#

It just rests on the bottom lip of my keyboard

mental idol
#

But my keyboard has a builtin mapping tool. I can remap any key with a few presses of the functions. It's neat. The only keys I remapped though is to switch escape and capslock

mental idol
#

Left hand did all the work. Right hand just twisted and contorted for hitting Home, End, Ctrl+Shift+Insert and all manner of unhealthy combos.

lofty loom
#

Left hand did all the work
Even typing?

mental idol
#

well, except for typing

wide totem
#

imagine having 2 hands

lofty loom
#

Yeah you have four hands

lofty loom
#

You're that alien from the cartoon

mental idol
#

I, for one, can't wait to replace my meat arms

lofty loom
#

Fingers literally made out of fingers

#

If these kind of hands existed irl then I'd be pretty terrified

wide totem
#

cya @mental idol

mental idol
#

Night y'all rooSleep

jovial island
#

can we use input statements in if-elif-else statement?

mental idol
#

sure the heck can

lofty loom
#

And I have arachnophobia :D

jovial island
echo flower
storm birch
#

!otn a meat arms

clever salmonBOT
#

:ok_hand: Added meat-arms to the names list.

wide totem
#

hmmmm

#

does someone want to take a stab at reviewing one of my projects?

echo flower
#

how many names are in the otn list so far

#

some 500?
1000?

echo flower
wide totem
#

oop

echo flower
#

yes

#

very yes

wide totem
#

discord-modmail/modmail#69

rustic harborBOT
echo flower
#

I see

#

nice

wide totem
#

that might be a little big lol

#

there's not much on that repo which is small right now

echo flower
#

might want to hide the token

wide totem
#

where?

echo flower
wide totem
#

entirely a fake token

echo flower
#

I see

wide totem
#

NjQzOTQ1MjY0ODY4MDk4MDQ5.342b.4inDLBILY69LOLfyi6jk420dpyjoEVsCoModM

#

first part is referring to the official discord system account

#

and well

#

4inDLBILY69LOLfyi6jk420dpyjoEVsCoModM memes galore

echo flower
#

mostly a cosmetic (and very minor) thing but
would it be nice to change the first sentenc ein plugins.md

#

it feels weird to read

wide totem
#

@echo flower

Modmail, in its most basic form, is simple: relay messages to and from users to staff members.

echo flower
#

sorry i did not complete my sentence

#

it feels weird to read because it is in 2 files

#

which are linked to each other btw

wide totem
#

spins up local documentation server

#

oh yeah

wide totem
echo flower
#

rest of the docs are nice

wide totem
#

hmm

echo flower
#

after reading your plugin system i might implement a similar thing in my parser

wide totem
#

or like

#

the entire thing? πŸ‘€

echo flower
#

idk ill just rip off the concept

wide totem
#

ah lol

#

its a fairly common concept πŸ˜›

echo flower
#

and maybe the plugin getter

#

so far my parser's really simple

wide totem
#

pytest flake8, etc, all support plugins. They just do it a different way which is arguably better for your usecase

#

my way is built to be least user interaction, but comes at the expense of modifying the environment during runtime (very bad)

echo flower
#

hmmmm okay

wide totem
#

flake8 and pytest plugins are installed into the environment via a manager like pip or something

echo flower
#

how does flake8 recognize plugins hmm

#

if PYTHON_INTERPRETER is None:
raise FileNotFoundError("Could not locate python interpreter.")
i wonder how this is even possible

#

surely you need a python executable to run the python file itself right

fluid plank
#

helpers are omniscient

#

should i... worship them?

#

can they really help me?

lofty loom
fluid plank
#

who should i worship?

#

there are too many

echo flower
#

worship poop

lofty loom
dusky cliff
#

someone called

fluid plank
wide totem
#

WHY DID THEY CHANGE THE THUMBNAIL https://www.youtube.com/watch?v=dQw4w9WgXcQ

The official video for β€œNever Gonna Give You Up” by Rick Astley

β€œNever Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100. It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which w...

β–Ά Play video
#

wait what

#

this is what I get

echo flower
#

me 2

#

damn they changed it

graceful nimbus
#

Hey ??

#

@vital crown hey

vital crown
#

Hey

graceful nimbus
#

@vital crown hey I ordered meditations by Marcus aurelius it's going to be delivered today

#

So do u follow or believe in stoicism ?

vital crown
#

I don't.

graceful nimbus
#

Oh okay

vital crown
#

<- This is Epicurus.

#

He was a philosophical hedonist.

graceful nimbus
#

Great I only know epictedus

#

So where do u work at ??

vital crown
#

A financial technology company

graceful nimbus
#

Great

autumn hornet
#

how do the helpers find things?

barren marsh
autumn hornet
#

The channel name - when a question is asked, how is a helper with knowledge summoned?

barren marsh
#

They're omniscient; they know when they're needed :p

#

(If it's a serious question, they don't get "summoned". It's just a case of browsing through the channels until they find something they can help with, so same as everyone else)

#

Sometimes we ask in one of our internal channels for assistance from a specific user we know is knowledgeable in the needed area of a help channel, but generally it's just a matter of perusing

#

@autumn hornet ^

autumn hornet
#

That's interesting, but thanks.

jovial island
#

they also have tap of knowledge water installed at their places. Usually lemon takes care of installing it at new helper's house.
The setting is very similar to Rashid Khalifa (professionally known as Shah of Blah).
The only difference is that Rashid has tap of stories installed at his place, while helpers have tap of knowledge water installed.

Hope this also helps @autumn hornet

autumn hornet
#

Thanks, will drinking the Water of Knowledge turn me into the Kwisatz Helperach?

jovial island
#

Unfortunately I am not yet fortunate to taste the water of knowledge, however some professional helper or lemon himself might answer that more accurately.

ember oar
languid osprey
lofty loom
jade bolt
turbid pulsar
severe trout
wheat aurora
# ember oar https://discord.com/channels/267624335836053506/267624335836053506/8897179951595...

So when the server was much smaller we did 2 code jams a year. A summer one and a winter one. The issue is that in that form they didn't scale, like at all. Every single entry had a code review and the team forming process was manual. One of my big tasks stepping into the Event Lead role was to make the code jams scale-able and sustainble (i.e. don't burn out the people working on the code jam). So one of my recommendations was just to do 1 yearly one as it's quite a bit of effort both on the planning side and the participating side.

placid patrol
#

makes sense

ember oar
#

Thanks for the answer

zinc dome
#

How programming started

placid patrol
#

someone was lazy and wanted to automate something

#

automated quick maffs

hidden kernel
#

to punish some dickheads using security-through-obscurity

compact dagger
tribal tinsel
#

That would actually be interesting

#

Now I wonder how I'd do that... I'd need to listen on all those ports, so it's kinda obvious that something's up with them

#

Then probably checking some logs or something

#

To finally add IP to some whitelist

#

The easiest thing I can think of will be just using a webserver on many ports and using one backend - I'll have the ips in one place to check the current chain of requests

steel eagle
#

passwordless ssh login but it requires port knocking, a private key, and an automated question/response audio drill akin to dialup

hollow heart
#

how's everyone tonight?

#

i had to pick up my dad from the train station, first time since the pandemic, and taking a different route from my usual A>B commute really messed me up and I missed an exit and made another exit too early πŸ˜”

hidden kernel
#

feelin pretty good, hbu?

hollow heart
#

good good otherwise. work is slow and quiet bc people are ooo. it feels like the quiet before the storm

hidden kernel
#

i spent most of today configuring powershell and vscode

hollow heart
#

do share

#

what is there to configure for powershell?

#

im also trying out vs code (coming from pycharm) and it feels very different

hidden kernel
#

well for one thing windows put some alias over where.exe

#

im also relatively new to VSC, but its been pretty smooth so far

steel eagle
#

VS code is absolutely wonderful

#

only editor I can use nowdays, aside from emacs

#

but I'm rarely stuck in a terminal-only environment anymore, so emacs rarely gets touched

#

VS Code has enough features to be a lightweight IDE for all the languages I use...at once

hollow heart
#

i'm kinda lost in how the git stuff works in vs code

#

i don't think pycharm has a "staging" equivalent. or is that what they call "adding" πŸ€”

mental idol
#

staging and adding are basically the same.

#

"on stage" means changes will be part of the next commit

steel eagle
#

^ VS code's git is actually pretty intuitive

mental idol
#

i was struggling today. I hit esc :w SO many times in vscode today. My mind was just "you're in vim" mode

steel eagle
#

There are vim plugins for it, y'know

hidden kernel
hollow heart
#

okie. and if im opening projects in 2 editors as i experiment and stage/commit things in both IDEs throughout the day is that potential for disaster or should be fine?

steel eagle
#

should be fine as they go off the .git folder

hollow heart
#

@mental idol look:

mental idol
#

Being on Discord is a relief simply to have my emoji again. Teams is so dull during work hours.

#

Nobody knows what rooHappy means

hollow heart
#

ive definitely not started using :emote_names: when messaging people outside discord

mental idol
#

Teammate: We're going to need to rebuild that deploy
Me: :rooCry:
Teammate: What?
Me: That's so sad

hollow heart
#

so do roo emotes follow camelCase apparently

mental idol
#

Twitch emotes do, in general.

ornate scroll
#

whats a roo emote anyways

mental idol
median blade
#

The panda

#

I like capoo more

jade bolt
hollow heart
#

@copper tartan https://www.youtube.com/watch?v=mRMmlo_Uqcs i found your alt youtube πŸ‘€

What I use to learn (the BEST IT training): https://ntck.co/itprotv (30% off FOREVER) *affiliate link

πŸ”ŽπŸ”ŽFREE Python Lab: https://ntck.co/pythonep1
Support the course: https://ntck.co/pythonrightnow

πŸ”₯πŸ”₯Join the NetworkChuck membership: https://ntck.co/Premium

**Sponsored by ITProTV

SUPPORT NETWORKCHUCK
-----------------------------------...

β–Ά Play video
jade bolt
#

πŸ‘€

#

time to create a video named you need to quit Python RIGHT NOW!!

steel eagle
#

just have it be an unedited cut of getting a native executable of a large program using nuitka

#

no direct commentary, just whatever swearing you do in the process

#

and any monologue to yourself

#

"Why isn't this working? What thE FUCK. WHY DO I NEED PYTHON 3.4 DLLS?"

hollow heart
#

lol so im actually watching the video now and his justification for learning python is bc it's mentioned on various job listings, meanwhile every listing he shows also mentions perl, java and javascript oh my

#

he's very enthusiastic πŸ˜…

tiny onyx
#

is integer data type abstract or concrete?

wide totem
hollow heart
#

no wdym im learning python so i can become a millionaire in 2 years ANGERY

echo flower
#

im learning python for world domination

jade bolt
dusky cliff
#

int is a "concrete" type in python, numbers.Integral is abstract

#

Integer is abstract in julia, Int32, Int64 are concrete

tiny onyx
#

in java, int is concrete and Integer is abstract?

dusky cliff
#

an abstract type is mainly for defining the interface of the type, such as the names of the methods that are going to be available
how these methods are implemented is left to the concrete types

java.util.List would be an ADT, java.util.ArrayList, java.util.LinkedList etc would be concrete implementations of this ADT

dusky cliff
dusky cliff
tiny onyx
#

makes sense, so abstract data types are just another word for interface types (or abstract classes)?

dusky cliff
#

yeah

tiny onyx
#

thanks

sharp spoke
#

What does abstract mean here pithink

vital crown
#

Abstract in the context of computing generally refers to a thing that defines an interface but does not specify a particular implementation of that interface.

#

So, it's basically a black box that says it does a thing, and you can rely on it doing that thing without having to worry about how it does the thing.

#

It's a way to manage complexity. The thing can be super complicated on the inside, but abstraction allows you to ignore all of that and just treat it as a thing that takes inputs and spits out outputs.

sharp spoke
#

Ahhh

#

Ohkay

tribal tinsel
#

It's basically an inheritance without implementation in the base class. Because base class knows nothing about how children would implement it.

Eg let's say we have a Shape class. We know every shape has area and perimeter. But each shape has a different formula for that.
Also, we don't want to have any object that's directly a Shape. Shapes know their own areas. So we want everyone to inherit from it.

You can see programming abstraction quite literally - abstraction as in existing as a concept and not physically.

Class that's not instantiable and is only to be inherited from is called an abstract class.
Method in that class that only defines an interface (ie show that this method exists) but has no implementation is called an abstract method.

In Python we have duck typing, so that we don't really have to have defined abstraction. But it helps in more complex projects.
Abstract classes are handled nicely using abc module (abc because abstract base classes, i love that acronym ❀️) and its abstractmethod decorators.

fluid plank
#

me who sends messages in fragments. also Nicky ^

exotic hound
#

i moved files from linux to windows, then moved them again from windows to linux, now all files become executable and folders can't be accessed from terminal, what to do now to get the files as before?

#

chmod -x file works, but not for folder

#

when I cd into the folder, it says permission denied

fluid plank
echo flower
#

i had the same problem

fluid plank
#

sudo chown yourusername -R somedirectoryandfiles

jovial island
fluid plank
#

-R is to recursively own people

jovial island
#

Sudo apt windows

echo flower
#

i kinda cheated because i had like 12 files only though
all i did was cat {file} > temp.txt && rm -f {file} && cat temp.txt > {file} && rm -f temp.txt

fluid plank
#

well you are lucky to see the contents of the file

#

otherwise just chown it blyat

echo flower
#

true i didnt know about chown πŸ˜…

exotic hound
echo flower
#

so i did it the only way i knew how

tribal tinsel
copper tartan
fluid plank
#

nah i doubt. i might have messed the command

exotic hound
#

i do chmod -R 777 folder now i can cd into that folder, but folder and the contents still colored green

fluid plank
steel eagle
#

lemon is now a raspberry

tribal tinsel
fluid plank
#

very handy

tribal tinsel
exotic hound
#

thanks.
weird thing is i didn't do anything, i got permission denied again πŸ™‚

keen burrow
#

Good ol' find

fluid plank
#

Find Good Ol

echo flower
#

this otn is fake

grim seal
#

@jovial island raycast

keen burrow
#

How many things called raycast are there

hazy laurel
#

I count... raycast amount of raycasts named raycast

languid osprey
#

Hm

frozen remnant
#

can som1 help me find the error here pls

mental idol
#

so if I called you by your name you wouldnt answer
@vague hound If you were rude to me I wouldn't answer. Otherwise, chances are I would. My pronouns just reflect the fact that I have no strong attachment to one identification. I'm very much just me.

vague hound
#

or are pronouns names

mental idol
#

the answer is a vague "yes". I get called by Preocts, he, him, they, and them. I even get called she or her online. Since I don't draw a hard definition, others are welcome to use what they are comfortable associating me with.

vague hound
#

how do pronouns work

#

grmatically

#

like

#

Preocots likes dogs he enjoys petting them

#

or would it be he likes dogs he enjoys petting them

mental idol
#

Yup. Or "Preocts likes dogs, they enjoy petting them."

vague hound
#

ok

#

makes sense

#

thx

mental idol
#

rooLove Welcome.

vague hound
mental idol
#

A honking good time in here.

compact dagger
tranquil ridge
hexed nacelle
sterile nymph
#

progress untill you can break something

#

Oh, no

#

Maybe I can fix

keen burrow
#

Hello @clever barn! We saw that you have been opening and closing help channels with the message "test". Are you looking for something in particular?

sudden swallow
keen burrow
#

It is a new feature

#

If you look at the devops role, you'll see it has the icon itself

sudden swallow
keen burrow
#

That's a normal Discord role

#

That feature is slowly rolling out to tier two guilds I believe

sudden swallow
#

oh damn

unreal sigil
#

Pretty sure I saw it popup as a new feature in my test server with only me and a few bots

#

So might be available now with the latest update

keen burrow
#

don't you need 5 boosts for it

unreal sigil
#

ah, you baited me discord

keen burrow
#

lol

sudden swallow
keen burrow
#

wow, we are down to 50 boosts

sudden swallow
sudden swallow
unreal sigil
#

You might need to update, pretty sure I got an update this morning and it only popped up after that

sudden swallow
#

lol I got 12 updates today

keen burrow
#

Try to guess when epic gave away three months of nitro

wheat rock
#

6/11

tribal tinsel
#

That drop

odd sphinx
#

wow

echo flower
#

imagine going from 200 to 60 in 5 days

jade bolt
jade bolt
#

what wsl distro should i choose

odd sphinx
#

as u wish

lofty loom
#

Any

jovial island
#

who joe

lofty loom
#

I just use Alpine

keen burrow
#

Haha

jade bolt
jovial island
#

Ohh i did that first??

#

Thought of that

echo flower
tribal tinsel
#

sits there without cancelling their Epic nitro

echo flower
#

imagine having money lemon_fingerguns_shades

tribal tinsel
#

Imagine paying taxes fox_cry

sharp spoke
#

@tribal tinsel remember the talk about generators being looped back and shit...
so guess i did some fooling around (took inspiration from tee implementation too) and here i guess i am satisfied with it ig
https://paste.pythondiscord.com/izekuluzoh.yaml if you wanna see the fuckery πŸ‘€
idk why i am telling this to u.. just feeling good to finally get done with this uwhieuhewih

median blade
#

uwhieuhewih

grim seal
#

joe talk so deep

median blade
#

noted

jade bolt
simple coral
#

hi

jovial island
echo fern
#

Like, merge min/max calls into one loop?

jovial island
#

no. possibly store them beforehand.

echo fern
#

fairly sure not, esp. considering you can't even know beforehand if the objects in the list are comparable, or if their comparisons are deterministic, etc

#

python is too free to have good things πŸ˜…

jovial island
#

oh i see.

#

i thought they may be using augmenting. for max and min too. because you know i think they do for length.

echo fern
#

len is stored, yeah

#

but that's all that can be stored in general, since the objects are arbitrary

jovial island
#

makes sense.

#

and list is too 'free' for other things in py. makes sense.

ionic locust
#

@jovial island I don't know what to think about your status message... 🍏

placid patrol
#

🍎

jovial island
#

lirikEat 🍎

daring jay
#

but people started actually claiming it more over the next couple days

mental idol
#

Me: I shouldn't download that library/program/whatever. It's rather bulky.
Also me: Usage of /: 2.9% of 250.98GB

hidden kernel
#

34.1 GB free of 931 GB I can probably put a few more games on there

hollow heart
#

nice, like keeping low cc utilization rates

frozen remnant
#

hey can any1 here help me w my java homework,, level begginer really easy stuff

hollow heart
hidden kernel
hollow heart
#

is there any truth to ssds "getting slow" if you utilize too much of the storage? if so how much is too much?

steel eagle
echo flower
#

rich

ornate scroll
#

bro how do u have that much storage space

#

i have 512 gb and i barely have any left

mental idol
#

How can't you lift without that much space?

echo flower
#

oh my god

storm birch
#

my 4tb is on my server πŸ˜”

echo flower
#

i did have a 1tb laptop before

#

but it hasnt been booted up in 2 years

#

and i dont know where the charger is

#

and it's a hdd

storm birch
#

My manjaro on my laptop died and I have been too lazy to fix

mental idol
#

I thought I had a 1.5tb but only seeing the 1tb and 4tb. The 1.5 was either moved to the server or I unplugged it rooHmm

gaunt dirge
#

so

#

is any ody good at math

#

bc wtf is b

storm birch
#

Looks to me like a graded assignment cool

hidden kernel
#

i think they're looking for constant values of k and b

turbid pulsar
#

Whenever i type google in my address bar, it makes it google search which i think is very annoying. Any way to fix this?

jovial island
#

Assuming that that is Firefox, I think you have a keyword set to the search engine

#

I think you can disable that in the settings by removing the keyword

#

…I think

#

I partly remember not being able to remove builtin search engine keywords

mental idol
#

I didn't like that feature of google search so I switched to duckduckgo and never looked back. rooBlank

jovial island
#

Thinking about it, I might be wrong about that being Firefox, but I think they can still disable it in the settings

jovial island
#

You can replace that entirely with DuckDuckGo's bangs feature

mental idol
#

the bang search flags are amazing.

jovial island
#

Yeah

whole rock
#

Hello, I am new to coding and need help. I want to start with python as my first language.
As you all are experienced, can you pls tell how and from where should I learn. And what mistakes not to make

placid patrol
#

..

turbid pulsar
#

we live in the dark side
-Programmeers

hidden kernel
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.

jovial island
hidden kernel
#

As for mistakes:

  • Don't think you can't google things or ask questions, you don't need to memorize stuff
  • The basic syntax is only the first step; writing code is primarily about designing algorithms
  • Don't compare yourself to others too much, it's rarely productive
  • Don't push yourself too hard, it's easy to burnout
  • Personally I think video tutorials are a trap, I'm not convinced people learn much from them
whole rock
jovial island
echo flower
#

@zealous hazel

#

python server anti monke confirmed

zealous hazel
echo flower
#

look at the ot name

zealous hazel
#

MONKE ANGRY

#

unacceptable

jovial island
#

.uwu willy wonka made a nice chocolate thingy on the chocolaty rivers

rustic harborBOT
#

wiwwy wonka made a nice chocowate fingy on de chocowaty wivews

#

i ate wiwwy wonka and chawwie

jade bolt
jovial island
#

@Moderators sir lancebot is being evil now. keep your eyes open.
no one should eat willyπŸ˜”

jovial island
#

Hey @magic atlas
can you give me refs of how this thing works?
Like what exactly is valid and what is not?
#python-discussion message

#

i mean this works like this but with - it had different behaviour and with _ it gave error i think

elfin vine
#

!string-formatting

clever salmonBOT
#

String Formatting Mini-Language
The String Formatting Language in Python is a powerful way to tailor the display of strings and other data structures. This string formatting mini language works for f-strings and .format().

Take a look at some of these examples!

>>> my_num = 2134234523
>>> print(f"{my_num:,}")
2,134,234,523

>>> my_smaller_num = -30.0532234
>>> print(f"{my_smaller_num:=09.2f}")
-00030.05

>>> my_str = "Center me!"
>>> print(f"{my_str:-^20}")
-----Center me!-----

>>> repr_str = "Spam \t Ham"
>>> print(f"{repr_str!r}")
'Spam \t Ham'

Full Specification & Resources
String Formatting Mini Language Specification
pyformat.info

elfin vine
#

We made a tag about it

jovial island
elfin vine
#

Yes?

jovial island
#

im used to fstring in simple use cases but i mean, this(typing)

#

!e

a=5
print(f'{a = }')
print(f'{a=}')
print(f'{a := }')
print(f'{a =: }')
# print(f'{a === }') invalid
clever salmonBOT
#

@jovial island :white_check_mark: Your eval job has completed with return code 0.

001 | a = 5
002 | a=5
003 |  5
004 | a = 5
magic atlas
#

Hello? I was summoned πŸ‘€

#

From the depths.

jovial island
#

yes sir.

magic atlas
#

Oh, Bluenix has gotchu sorted.

jovial island
#

oh i see, so format was optional and if we don't give it, we get the usual print

round moss
#

@jovial islandso, this is mildly odd, but placing = as the last element in an fstring gives you a = value of a. Then, you place a : after it to give it a format specifier, e.g.

a = 1.5245624352
f'{a = :.2f}' == 'a = 1.52'
```if you do `{a :=}`, then you are using `=` as the format specifier, which when given `:= ` adds a leading space. An empty format string is the default, which generally falls back to `__str__`. However `f'{a}'` does `format(a, '')`, not `str(a)`, so the output can differ
jovial island
#
When the equal sign '=' is provided, the output will have the expression text, the '=' and the evaluated value. Spaces after the opening brace '{', within the expression and after the '=' are all retained in the output.
#

!e
print(format(5,''))

clever salmonBOT
#

@jovial island :white_check_mark: Your eval job has completed with return code 0.

5
jovial island
#

@round moss thanks a lot for help, Im kinda still confused about := case

clever salmonBOT
#

@thorn dragon :white_check_mark: Your eval job has completed with return code 0.

001 | x = 5
002 | x/10 = 0.5
round moss
#

!e
@jovial island= is a format specifier as well, see

a = 10
print(format(a, '= '), format(a, '0=4'), format(a, '=3'), sep='\n')
clever salmonBOT
#

@round moss :white_check_mark: Your eval job has completed with return code 0.

001 |  10
002 | 0010
003 |  10
round moss
#

honestly couldn't tell you why it works the way it does, but that's what it does

jovial island
#

oh!!
so okay hence we gave :=
so py took = for formatter
and if we assume that = adds a space before(which can be sorted later about how)
we get 5

round moss
#

yup

jovial island
#

ah i see i see makes sense. I didnt know f strings do stuff like this too!

round moss
#
>>> a = 10
>>> f'{a =:= 3}'
'a = 10'
```amazing
jovial island
#

!e

a = 10
print(f'{a =:= 5}')
print(f'{a =:= 3}')
print(f'{a =:= 1}')
print(f'{a =:=}')
clever salmonBOT
#

@jovial island :white_check_mark: Your eval job has completed with return code 0.

001 | a =   10
002 | a = 10
003 | a = 10
004 | a =10
hazy laurel
#

what on Earth

jovial island
#

wow i guess I'll need to read more on format now!

dusky cliff
#

!e symmetric!

f'{8 =:= 8}'
clever salmonBOT
#

@dusky cliff :warning: Your eval job has completed with return code 0.

[No output]
hazy laurel
#

epic

dusky cliff
#

just the output i wanted