#ot1-perplexing-regexing

1 messages ¡ Page 170 of 1

spare prawn
#

yep

#

im

#

now I'm playing honkai star rail

foggy wagon
spare prawn
#

yes good game

foggy wagon
spare prawn
#

I am also learning excel too

#

and making projects

foggy wagon
#

cool

spare prawn
#

yep

#

see my profile @foggy wagon

foggy wagon
ripe birch
#

is that kafka girl from honkai?

#

i like her vivaldi inspired theme

#

*song

spare prawn
#

she's castorice her dragon is so cute and beautiful @ripe birch

#

I will show you

ripe birch
#

i didnt ask if she is her lol

#

i asked which game kafka is from

spare prawn
ripe birch
#

how come no one from genshin got themes

spare prawn
rough sapphire
#

I willing to make a Linux app in python for the freshmen who came into linux
in python
Anyone how is willing to contribute, DM me

jagged gyro
#

I'm just wondering, does this server have an official position on using AI personally for helping with coding? not talking about vibe coding, but more something to assist you, and answer questions. getting back into coding after stopping for 5 or so years and I want to get up to speed quickly

paper quest
#

I don't think there's an "official position", but most people's advice would probably be never trust, always verify, use tools responsibly. If you think you can do that, go nuts IMO.

woeful phoenix
# jagged gyro I'm just wondering, does this server have an official position on using AI perso...

I don't think we have an "official" position
but a common sentiment among experienced folks here (which I agree with) is that it's better to not use it if the goal is learning, since using it to provide you code or debug your code, even if it's "just" pointing out the problem, robs you of opportunities to exercise that thinking on your own and learn.
and if you have questions, you'll get much more accurate answers asking humans (here) than AI.

jagged gyro
#

yeah, it definitely comes down to the way in which you're using it. theres a fine line between having it explain a library or principles to you vs having it do thinking/work you would've otherwise had to do in building something

#

and for me personally, I want to rebuild a strong foundation, but at the same time it looks like these tools could potentially make me much more efficient

paper quest
#

I guess one litmus test you could use is, are you planning to use AI to bridge gaps in your knowledge, or to jump chasms? The latter is hard to do safely.

jagged gyro
#

thats a good way to look at it

paper quest
#

Apart from the fact that it can be hard to evaluate, yeah 😛

jagged gyro
#

it definitely requires honesty with yourself lol

pseudo zephyr
#

I pretty much stopped using AI besides for tab auto complete. It wasn't making me smarter and the time savings were debatable

rough sapphire
#

Try new new app : clue

tardy rain
rough sapphire
#

to avoid visual issues

#

but did you try it

tardy rain
#

no

rough sapphire
#

just try it

tardy rain
#

i have no use for it

#

and also im on windows

willow kayak
lament cairn
#

i propose a new measure of code quality

#

docs to code ratio

#

@rough sapphire

>>> len(clue_code)
1999
>>> len(clue_docs)
2009
>>> len(clue_docs) / len(clue_code)
1.0050025012506254

You: ✅ Passed

#

seriously though i dont think anyone's gonna "just try" a script that connects to some random API

#

like i didnt know about cheat.sh until 5 mins ago when i saw your repo

vale raven
# lament cairn docs to code ratio

What about the 10 line function that needs three pages of docs or the 1500 lines of models for an API spec that have autogenerated schemas so nothing is hand written?

lament cairn
#

count em anyways

#

who told you to make such big apis

#

L

#

/j btw

shell raptor
royal lakeBOT
#

main.py lines 14 to 16

if pltform == "win32":
    running = False
    print("This program only runs on Linux")```
lament cairn
#

based

vale raven
lament cairn
#

arbitrary platform restriction in linux's favor

tropic ore
uneven pine
#

Submitting a PR to make it work only on windows

#

Vast improvement

quasi blaze
#

A great tip

thick ore
#

this is so redundant

#

keezy are you on linkedin again

quasi blaze
#

I see nothing wrong with the suggested code structure

young shoal
thick ore
#

i mean the API_VERSION part is good

#

but the endpoints object is redundant

#

i see no advantage

marble bay
#

once you have a large enough number of endpoints, having them all in one place is better for reference

young shoal
# thick ore i see no advantage

with the latter, you get editor support. no possibilities of typos. if you want to change an endpoint, you don't have to rewrite all the calls

thick ore
#

ok i see

young shoal
#

you can of course go even further and abstract out the api.method functions

thick ore
#

yea

#

at that point you can write something that registers the routes for you

grave cove
#

that is one way to do it

jade oar
#

@crystal spruce how are you doing with uni?

#

Top class?

rough sapphire
lament cairn
#

there's a man command

#

it shows docs for whatever command has one (practically all of the frequently-used ones)

rough sapphire
thick ore
rough sapphire
#

Relax, BRO, Relax

#

can u just try the app

#

without making fun of me for God's sake

ripe birch
#

Hello Viv the vive coded coder

rustic thistle
ripe birch
#

Ah i think i can understand what technique it uses for the coloring

rustic thistle
ripe birch
#

Hopefully the last one

#

Forever

thick ore
#

like... shouldnt the black text be black

thick ore
rustic thistle
ripe birch
rustic thistle
#

k

#

ill put it in spoilers if any1 wants to see

ripe birch
# thick ore nice

@ripe birch
@scientific.method
@fathom musk
And other 2 not in this server lol

Gosh im such a uhhhh degenerate for having this many accounts

thick ore
#

relatable

#

i had like 5 previous online personas before having to stick to interrrp because it's attached to too many things

rustic thistle
#

||first i used pillow to make a thumbnail, then saved the image and switched to ski to get the individual pixels in a np array, switched those to hsv, then used the hue to chose between the 6 different hues in a terminal (8 counting black and white), the saturation to switch between the more or less saturated versions or just straight up black, and then finally i used the value to switch between different opacity unicode block characters, all of which had a white backgroundç||

ripe birch
#

Oh, its different than what i guessed

rustic thistle
#

rlly?

#

what did u guess?

#

i also || tried making it work with higher values by having a decimal exponential to the value that had a range between 0-1 but for some reason didnt wanna work||

ripe birch
#

My guess was quite wrong tho
I guessed that some spots were not colored at all but some had lots of dots and some had a solid block of color

So depending on how dark a color is, the more dots it will have
This explained why the black/grey were solid color blocks instead of dots but i also spotted some green blocks which are solid instead of dots so there goes that theory

rustic thistle
#

the value u got right

#

thats the value

ripe birch
rustic thistle
#

ill check it out later

#

i got class now

ripe birch
#

It will teach you about contours n stuff

#

Sure

rustic thistle
#

i got a couple mins b4 class

#

but ye at least u guessed better than my cs teach who thought itd be best to use rgb values

rustic thistle
#

cuz id have to switch out the block characters with the line characters

#

and therfore lose the current method of determining value

#

and i cant be arsed to redo rhe whole thing

#

i spose the next thing to do is render video

thick ore
#

i prefer python for now

upper flower
#

java will remember this forever...

#

💔

#

oh java.. oh java.. thou gave rise to a traitor amongst thou'

sharp jasper
#

*gavest
also "amongst thou" is incoherent, "amongst" expects a group but thou is singular

languid cargo
#

Should "amongst thou" be replaced with "Amongst ye" instead?

I haven't read any Shakespeare for 30 years, but I like that. It sounds piratey.

spare prawn
#

i wanted 100 wpm

marble bay
spare prawn
late orchid
rustic thistle
grave cove
languid cargo
rustic thistle
#

thee is both plural and singular

#

@languid cargo

languid cargo
tranquil elm
foggy wagon
#

@viral parrot bro

ebon shell
#

incredible researhc

worthy oracle
#

of course it's japanese authors on soy sauce

honest star
#

also yes, the issue is the sodium

ebon shell
#

yeah its just fuck ton of sodium

honest star
#

too much of it starts fucking with your brain function

ebon shell
#

admittedly i totally would OD on soy sauce while eating sushi

low chasm
#

what's the ld50 of buldak instant ramen

turbid oyster
ebon shell
# honest star 2011: <https://pubmed.ncbi.nlm.nih.gov/21315305/> 2020: <https://pmc.ncbi.nlm.ni...

A 40‐year‐old woman presented to the emergency department with seizures and remarkable hypernatremia with a serum sodium concentration of 183 mEq/L. The initial brain computed tomography scan showed brain shrinkage, which could occur during the acute phase of hypernatremia. We reduced her serum sodium level rapidly, rather than at the recommended slow rate. On day 3, the patient’s brain computed tomography scan showed widespread low‐density areas and edema. The patient died 8 days after admission.
WAIIT THIS IS A REAL CASE

#

i thought it was on like rats or smth

turbid oyster
#

but hey, 10.5g of protein and 60kcals

ebon shell
#

japanese people fr be ODing on soy sauce

turbid oyster
#

tren is still better tho

ebon shell
#

no

turbid oyster
ebon shell
#

oh wait no im turning invisible

#

welp cya

worthy oracle
turbid oyster
low chasm
#

soy sauce is used in pretty much every east/southeast asian country isn't it

#

although i do think their soy sauces differ somewhat

low chasm
#

yeah

turbid oyster
#

some have alcohol even kek

honest star
#

there are nuances to soy sauces

turbid oyster
#

theres sweet ones and bitter ones

#

the sweet ones are usually halal

ebon shell
#

soy sauce is soy sauce

#

theres good soy sauce and bad soy sauce

honest star
#

One of my fave and most trusted recipe creators gets super specific when saying what kind you need

low chasm
#

they can differ regionally, based on country/cuisine, or in their seasonings and whatnot

honest star
ebon shell
#

bad soy sauce (maggi)

honest star
#

Everything on recipetineats is amazing, Nagi is GOAT

ebon shell
low chasm
#

my goat nagi

#

i love recipetin

honest star
ebon shell
#

thats why i said barely

honest star
#

It's literally very solidly soy sauce though

#

Like no one is calling dark soy sauce barely soy sauce

#

It's just soy sauce

ebon shell
#

i once accidentally put dark soy sauce instead of soy sauce

turbid oyster
#

this guy has the absolute most sweaty techniques i've seen

ebon shell
#

tasted completely different

#

therefore

#

not soy sauce

#

qed

honest star
#

yeah, there are different types of soy sauce. Just because they're different from each other doesn't make it not soy sauce

#

The point is that there are different kinds of soy sauce

turbid oyster
honest star
#

What kinda "no true scotsman" argument is this even?

ebon shell
#

there are different types of soy sauce i juts barely consider dark soy sauce a different type of soy sauce :)

harsh tundra
low chasm
#

indonesian soy sauce is pretty sweet isn't it

turbid oyster
#

then i fry 2 eggs and sprinkle the yellow liquid with salt

turbid oyster
low chasm
#

i see

ebon shell
turbid oyster
#

chinese arent halal, because they contain alcohol, which is why they taste bitter

turbid oyster
ebon shell
#

i mean like japanese soy sauce and what you get from like

#

a chinese restaurant

#

is different

#

but like slightly different

turbid oyster
#

p*nda e*press

ebon shell
#

sorry i dont speak american

turbid oyster
#

we dont even have that where im at rn

tardy rain
#

Pandas would never actually make or deliver food

turbid oyster
ebon shell
#

ez the crane makes the food

turbid oyster
#

bruh

turbid oyster
#

i love seafood

#

mainly because im in northern morocco

#

we get a shit ton of seafood here

plush rain
turbid oyster
turbid oyster
ebon shell
#

mfs when fourier transform

turbid oyster
#

fr

ebon shell
# turbid oyster fr

WAIT A SECOND I KNOW ONE OF THE POEPLE IN THAT THREAD FORM A DISCORD SERVER

brazen ingot
#

pokemon players are furries

ebon shell
ebon shell
turbid oyster
quasi blaze
#

Let’s talk about grammar.

How would you correctly use “God forbid” in a sentence?

For example:

“God forbid, no murders in my community this year.”

Wouldn’t that be a double negative?

Should it be written as:

“God forbid a murder in my community this year.” ?

grave cove
#

Bro might actually just be the bay harbor butcher

jaunty wraith
#

It's usually a vent

quasi blaze
grave cove
#

Yeah these days it is usually used sarcastically

grave cove
#

it is not the proper usage but it is common and people will know what you mean & it has a humorous tone

sharp jasper
jaunty wraith
#

English is a language with more exceptions than rules
Don't look for sense it it
||Linguists, don't @ me)||

grave cove
#

Chemistry type shit

tardy rain
quasi blaze
grave cove
woeful phoenix
sharp jasper
#

These examples seem strange to me because I rarely hear "God forbid" as a standalone sentence. It's usually parenthetical, like, "Nobody likes to pay for insurance, but if (God forbid) some bozo t-bones you in an intersection, you'll be glad to have it!"

#

it's a thing people say almost superstitiously, like some people knock on wood when talking about a bad thing that might happen

raw zephyr
sharp jasper
#

I guess I've seen the sarcastic version standalone? it's probably regional

raw zephyr
#

I think it's basically saying that you'd like to do something

#

but you're facing obstacles put forward by other people

#

or at least that's how I've seen it used

#

"obstacles" could be anything, anyone trying to prevent you from doing [thing]

#

or could be the universe, you wear a nice suit and then stumble and fall on a puddle

#

god forbid i try to look good

sharp jasper
#

this is sarcasm, not the superstitious use I mentioned earlier

turbid oyster
#

idk why but irl i feel ashamed to talk to rich people unless theyre family because duh

sharp jasper
turbid oyster
#

it being their wealth

warped sentinel
turbid oyster
#

and it's always some real estate investor or some shark

warped sentinel
turbid oyster
warped sentinel
#

how would you recognize them if they don't flaunt it?

turbid oyster
#

or ipads and whatever

warped sentinel
turbid oyster
warped sentinel
#

if they don't like to flaunt it, why would they care about always having the latest and greatest phone?

warped sentinel
warped sentinel
#

Sure, there are nouveau riche and people trying to make up for shortcomings.
But these aren't the people who don't care about flaunting it in the first place. So why would they care about abiding by the poors' social constructs?

turbid oyster
warped sentinel
#

and all the examples provided were examples of people flaunting their wealth

turbid oyster
#

i'm not a native speaker

warped sentinel
#

yeah something like that

turbid oyster
#

people getting picked up in porsches, limos, etc

#

i'm an intern at the school meaning im at a dorm

warped sentinel
turbid oyster
warped sentinel
#

if anything, you should feel pride of reaching the level where you can mingle with high worth people

turbid oyster
#

im the only one in a dorm

#

my class calls me intern but i just shrug

warped sentinel
#

it's about you, not them

woeful phoenix
turbid oyster
#

at least in this context

#

basically "dorm kid"

woeful phoenix
#

I see

turbid oyster
#

yeah i guess

woeful phoenix
#

is this a university?

turbid oyster
woeful phoenix
#

you have comp sci specialization at the HS level?

turbid oyster
warped sentinel
turbid oyster
#

so i cant really do anything other than wake up, cook, shower, go to my classes and go to my dorm

turbid oyster
#

but hey, i get 500Mbps fiber optic here

turbid oyster
warped sentinel
turbid oyster
#

but janitors' folds are acceptable, they don't get paid as much

turbid oyster
# warped sentinel what about them?

they fold under monetary influence, so if i talk shit about one of the rich kids to their faces, they'll just cry about it and ruin my scholarship

warped sentinel
#

how would that happen? Do you live in an authoritarian state?

woeful phoenix
#

I guess they'd get kicked out of the school

turbid oyster
turbid oyster
#

also corruption is wild here

#

you can kill multiple people with your car or a machete and get away with it if you bribe the cops

#

guns arent allowed here, only cops get to have 9mm pistols

warped sentinel
#

well, if you live in an authoritarian state, then sure

turbid oyster
#

im in a corrupt country

young shoal
#

unlucky

woeful phoenix
tardy rain
#

all countries are corrupt

turbid oyster
raw zephyr
#

what is this country if you don't mind me asking

#

i legit thought myanmar

snow pebble
#

?

latent scaffold
raw zephyr
#

hmm

#

don't know much about morocco to be honest

mossy mango
#

any of y'all use haskell

#

I'm trying to learn it lol

#

any suggestions on a good resource to start r with

mossy mango
mossy mango
vale raven
vale raven
upper flower
#

grrrrr

#

guys

#

vish me luck

undone granite
#

good luck

upper flower
#

aren't u gonna ask for what

undone granite
#

the interview

#

right?

upper flower
#

huh

#

how do u know??

undone granite
#

I was reading the chat this morning

upper flower
#

dang

#

nvm

#

thx

#

im a little nervous since idk what is gon be in the interview

#

and idk how to prepare for it

balmy oriole
#

i am so tired

#

but i do not desire to sleep

#

what shall i do?

vale raven
#

Haskell is all strict, R is all dynamic

vapid nymph
#

Hai all

#

And those who use star imports

jade oar
#

Hey @crystal spruce are you using nvim on windows or are you using linux

crystal spruce
#

neither

thick ore
#

yooo terminal desmos

#

bit nicer visuals

brazen ingot
thick ore
brazen ingot
#

i mean theres no coordiantes elsewise its good if it can plot non elementary functions

#

the script?

thick ore
#

uh it's rust

thick ore
#

atm it only takes in y=??? or x=??? functions

#

i have no idea how i'm gonna do more complex ones

brazen ingot
#

just 2d? oh then i can see how my projectiles go

thick ore
#

the code is bad but it works

#

in hindsight i should've done this in python so i could use eval

woeful phoenix
thick ore
young shoal
#

oh there is evalexpr

acoustic moss
thick ore
#

what

marble bay
#

I didn't read through the code 💀

turbid oyster
crystal timber
turbid oyster
thick ore
#

it can draw (thick) hyperbola now

worn stream
#

@foggy wagon kinda of like this so the game will be on one side or an app and u do changes on left

cerulean mica
worn stream
foggy wagon
#

u still need to run it

#

manually

worn stream
#

i see

#

thanks

turbid oyster
spare ravine
#

sleep

#

sleeeeep

honest star
#

fedora KDE users... for some reason the scroll via touchpad in just discord is wildly fast. Is there any way to adjust this?

woeful phoenix
lofty bolt
#

and I think it is a setting in the settings(system) to change scroll speed

bleak lintel
naive stump
raven cipher
#

decided to check 9gag again

#

Now, Iremembered why I deleted my 9gag account

uneven pine
#

9gag still exists?!

#

Man nobody who was cool ever went on that site

#

That was the site for losers even during its heyday.

solemn tulip
#

TIL that's how heyday is spelled

harsh tundra
#

Well, it's not about hay

turbid oyster
shell raptor
#

"The blue wire goes to..."
checks labels
"...blue, and the purple wire goes to..."
checks labels
"purple. I see"

harsh tundra
shell raptor
#

oh I see

#

I missed the next message

#

you could color code radio networks by broadcasting them over visible spectrum...

harsh tundra
#

The labels are "up(stairs)", name of sib (that's why I censored it), "heat pump" (meaning just basement, but cable exits just by the heat pump and was originally connected directly), "kitchen", and then those two rooms.
This panel is in our main bedroom, so we just connect directly to switch there if needed

#

Upstairs labels are not that clear as before we renovated downstairs, we just had two cables with silver and gold sharpie (and later grey and yellow sleeve) to mark which is which... So two labels are "silver" and "gold", lol. (Both run downstairs, but one is currently connected inside the wall)

harsh tundra
#

I'm home and this is NOT my cat XD

#

(We had a cat move into our barn. Then she showed us 2 kittens. One disappeared at some point... It's now 3 months later. This is the kitten who's still here. And who decided to try to hang out with our cats.
Today I was joking he got replaced bc he was never this cuddly!)

paper sequoia
harsh tundra
#

Yeah. His mommy was easier to dissuade from coming to us, but she's cuddly to everyone who can offer food.
But she managed to understand how to get down our kitty ladder. (We have a wooden construction to allow our cats to come and go onto our 1st floor balcony. Previous summers, we'd just leave the balcony open.)

This kitty can go up, but can't go down, so we had to let him in via balcony and let him out downstairs. XD
So far he was kinda reserved, fleeing from humans unless you cornered him or caught him when he was eating... So this behaviour today is really weird.

tardy rain
#

The audacity of cats smh

#

If i walk in some random's house and sit down and chill on the couch with them i get yelled at and escorted away by police

harsh tundra
#

Well, they first let us get familiar with them in the barn, it's not like they just decided to get into our home instantly

marble bay
uneven pine
#

The bounciest man on the internet!

solemn tulip
#

also good to know I'm in good company with techdif readers

#

I need to make some website with transcribed episodes where I can look up techdif quotes when I want to refer to them

#

techdifomicon

#

techdifnomicon?

uneven pine
#

Shit you're right

#

Now I feel awful

solemn tulip
#

I have acquired subtitles

timid latch
solemn tulip
#

for legal reasons I will say yes

timid latch
#

or does that not expose transcripts

solemn tulip
#

only like 7MB of stuff

solemn tulip
languid cargo
#

Matt's a legend

raw zephyr
#

so that people can make their own transcripts for whatever channel they like

solemn tulip
#

the logic involved is quite easy, if you manage to get video metadata and the subtitle files, generating something like this is pretty trivial

#

like, my python code is ~100 lines

raw zephyr
#

yeah but you already did it

solemn tulip
#

and includes a quick and dirty srt parser

raw zephyr
#

maybe I can use the SRT parser I wrote a few months ago

solemn tulip
#

the only info needed to generate this stuff is an srt file (+ the video title and video id)

solemn tulip
#

bring your own data, adapt what you need

#

(the only other stuff left out is my stylesheet and an 8-line makefile that would do the data gathering)

lament cairn
#

bonus content

shell raptor
#

is that a... cog?

#

dat?

lament cairn
#

fops

green breach
#

It's not a gato nor a perro; it's a Pato!

languid cargo
#

They look like a cat wolf

wooden silo
#

Spanish logic.

willow narwhal
#

You get a cog, obviously

wooden silo
#

Different languages have different views on grotesque unethical genetic experimentation, it seems.

languid cargo
solemn tulip
#

cag dot

upper flower
#

dog cot

#

kitkat

rough sapphire
#

coat dod

green breach
wooden silo
#

I got other stuff going on sometimes, but I pop in here now and again

frozen crane
#

@pseudo zephyr Washington DC has excellent public transit

pseudo zephyr
frozen crane
frozen crane
bleak maple
#

In re: a different Discord server where I'm helping out, is there a super-lightweight way to implement a #roles channel where users can 'react' / 'un-react' to things to opt into roles? Or is that always a whole persistent bot I need to host?

#

It's a friend's server and I want to be really careful about opting him into dependencies he doesn't understand.

turbid oyster
turbid oyster
#

not necessarily reactions but it does give roles based on what you select

bleak maple
#

Thanks to you both.

#

Oh, dang, requires Community mode. Not sure if my buddy is going to be down for that.

#

Or is this saying that despite the name of the feature, it's now available to all servers?

#

The sentence about it isn't that wonderful.

turbid oyster
#

but not many people are gonna join since the discovery tool is dogshit

#

so inv links are your main way

#

@shadow jetty

#

fyi this is inside the windows terminal, fully in python

shadow jetty
turbid oyster
turbid oyster
#

couldnt figure out video playback using sixels

#

the dollar is for the image which could be considered a frame

shadow jetty
#

lol

#

💵

turbid oyster
#

lol im making my own rules

turbid oyster
latent scaffold
#

Is this just a terminal with an insane amount of cells?

shadow jetty
#

no, it's sixel

#

Sixel, short for "six pixels", is a bitmap graphics format supported by terminals and printers from DEC. It consists of a pattern six pixels high and one wide (in black and white), resulting in 64 possible patterns. Each possible pattern is assigned an ASCII character, making the sixels easy to transmit on 7-bit serial links.
Sixel was first int...

latent scaffold
#

yeah I'm reading this and not quite sure I understand but very cool I guess

shadow jetty
#

it just a way to transmit bitmaps with ansi

latent scaffold
#

this is so hard to read

#

my poor brain

woeful phoenix
#

@rough sapphire as far the LKMP selection process goes, I think if you complete all the tasks successfully you have nothing to worry about, you'll get in

rough sapphire
bleak maple
#

You know what is super weird? I promise this is about programming, and maybe even Python.

#

I am not trying to insult anybody, but the way most (Japan-based) Japanese devs I've worked with write code is.. Not that pretty?
Like.. crazy sometimes?

...and I have always struggled to reconcile this with how intentional my beloved Japanese peers are in all other parts of life?

Like, this is the culture that has two sites for their holiest shrines so they can tear them down and rebuild them every 20 years in parallel to ritually purify them?

#

I have no mental model for why their code isn't aiming at similar targets.

#

You wouldn't believe the Matz code in old Ruby etc.

#

(I love Matz and would jump in front of a bullet for him maybe, but no I wouldn't hire him)

raw zephyr
#

have you seen japanese websites

wooden silo
#

Like, they love humanoid robots, but efficient and easy ways to pay for stuff is not cool enough.

#

I imagine that this translates into training for tech jobs.

tardy rain
#

Blame gurren lagann for their mecha obsession

wooden silo
#

It exists due to their mecha obsession, it didn't cause it

#

The first gundam came out in 1979

tardy rain
#

Dang i thought gurren lagan was older than 2007

#

😔

#

Ok im blaming gundam youre right

wooden silo
#

Nothing that looks that good is that old

#

There were several popular mecha works that predated Gundam even, though

tardy rain
#

I dont like mechas, havent watched any

wooden silo
#

The first widespread manga seems to have been released in the 50s

tardy rain
#

How old are power rangers

#

Super sentai is 1975

bleak maple
#

Fun fact; the "missile swarm" trope from anime, where you fire a ton of small ones and they fly around etc, is called an "Itano Circus", because Itano invented it for Gundam and then it went huge in Macross/Robotech

#

Ultraman is 1966

wooden silo
bleak maple
#

This is actually the real OG though https://en.wikipedia.org/wiki/Ambassador_Magma

Ambassador Magma (マグマ大使, Maguma Taishi) is the title and protagonist of a manga and tokusatsu TV series created by Osamu Tezuka. The TV series, produced by P Productions, aired on Fuji TV from July 4, 1966, to June 26, 1967, lasting a total of 52 episodes. It is the first color tokusatsu TV series in Japan, beating Tsuburaya Production...

#

M A G U M A ~ T A I S H I

#

Slightly before Ultraman, and Osamu Tezuka is lord.

stark prawn
raw zephyr
#

i've never watched super sentai

bleak maple
#

Super Giant (スーパージャイアンツ, Sūpā Jaiantsu; literally translated as "Super Giants") is a Japanese superhero featured in a successful series of serial-like tokusatsu short feature films produced between 1957 and 1959 by Shintoho (the non-union branch of Toho). He is also known in Japan as Giant of Steel (鋼鉄の巨人, Kōtets...

raw zephyr
#

but sentai looks more fun

wooden silo
#

Seems like the actual power rangers was an American franchise based on the sentai genre rather than a specific Japanese work, didn't know that

bleak maple
#

I grew up on Science Ninja Team Gatchaman

#

Science Ninja Team Gatchaman (科学忍者隊ガッチャマン, Kagaku Ninja-tai Gatchaman, lit. Science Ninja Squad Gatchaman), also simply titled as Gatchaman is a 1972 Japanese anime television series produced by Tatsunoko Production which aired on Fuji Television and its affiliates from October 1, 1972 to September 29, 1974 for 105 episodes...

stark prawn
#

It was gonna be today but just found out they delayed it 😩

raw zephyr
#

or is that more recent

wooden silo
#

There isn't a Japanese original of the show the power rangers

#

There's just the genre

raw zephyr
#

perhaps the original mighty morphin

wooden silo
#

Oh, no, wait, you're right

#

Super Sentai is a franchise

raw zephyr
#

but a lot of the power rangers are based on japanese Super Sentai seasons

wooden silo
#

Tokusatsu is the genre

wooden silo
upper flower
#

@wooden silo

#

up for it?

wooden silo
#

Might be back later tonight

upper flower
#

ight

crystal spruce
#

me when i go to prove a lemma about some object for a part of the question, realize that the object involved was defined in a prior part of the question, scroll up to the prior part, and realize the prior part is literally the lemma i am proving

amber sigil
#

Anyone knows any API I can use to get animes (like MAL, but not being MAL, their API is just bad and incomplete)?

late orchid
amber sigil
#

most animes don't even have synopsis or their number of episodes... which is what I want from the api

late orchid
amber sigil
#

Kimetsu

#

Naruto

#

Sakurasou

#

any of them :d

tardy rain
#

Naruto, one of the biggest mist popular anime, missing a synopsis?

late orchid
# amber sigil ye

are you sure you didn't just forget to specify it in the returns fields parameter?

amber sigil
#

Pretty sure ```py
MAL_API_FIELDS = [
"id",
"title",
"main_picture",
"start_date",
"end_date",
"synopsis",
"num_episodes",
"status",
"genres",
"media_type",
]

late orchid
amber sigil
#

wat

late orchid
#

which ID did you search for?

amber sigil
#

I only get that when I try to search for it

#

Like using the /animes?q=Kimetsu

late orchid
#

that is just from ```py
import httpx
import os
client = httpx.Client(headers={"X-MAL-CLIENT-ID": os.environ["MAL_CLIENT_ID"]})
fields = [
"title",
"start_date",
"end_date",
"synopsis",
"num_episodes",
]
resp = client.get("https://api.myanimelist.net/v2/anime/38000", params={"fields": ",".join(fields)})
print(resp.json())

#

(idk why it included fields I didn't ask for but TPF_02_Shrug )

amber sigil
#

there are some default fields

#

also no idea what httpx is there :d

harsh tundra
amber sigil
#

but when I use that route /anime/{id}, it always comes with num_episodes and synopsis as null

harsh tundra
#

Show code?

amber sigil
#

erm

#

project is kinda...

harsh tundra
#

That's not code, that's your file list

amber sigil
#

yes, but I dunno what to show, lol

harsh tundra
amber sigil
# harsh tundra My guess: Did you pass the fields you had above somewhere when doing the request...

class MalService:
    def search_anime(self, query: str, page: int = 1) -> MALPagedData:
        env = get_env()
        client_id = env.MAL_CLIENT_ID

        params = {
            "q": query,
            "limit": MAL_API_LIMIT,
            "fields": ','.join(MAL_API_FIELDS),
            "offset": (page - 1) * MAL_API_LIMIT,
        }

        res = fetch(
            MAL_API_URL,
            headers={"X-MAL-CLIENT-ID": client_id},
            params=params,
            schema=MALPagedData,
        )

        if not isinstance(res, MALPagedData):
            return res.json()
        return res

    def find_anime(self, id: int) -> MALNode:
        env = get_env()
        client_id = env.MAL_CLIENT_ID

        params = {
            "fields": ','.join(MAL_API_FIELDS),
        }

        res = fetch(
            f"{MAL_API_URL}/{id}",
            headers={"X-MAL-CLIENT-ID": client_id},
            params=params,
            schema=MALNode,
        )

        if not isinstance(res, MALNode):
            return res.json()
        return res
        
```yes, yes
#

the search one works, the find one doesn't

#

same fields and params

harsh tundra
late orchid
harsh tundra
#

Don't give the fields

amber sigil
#

that's how requests works

harsh tundra
amber sigil
harsh tundra
late orchid
amber sigil
#

if I don't have it, I'll get jsut the default ones

harsh tundra
late orchid
amber sigil
#

I'm also storing the other ones though

#

this is fetcher, before anyone asks ```py
import requests
from typing import Optional, Type, Dict
from pydantic import BaseModel
from fastapi import status
from app.exceptions.fetch import FetchException

def fetch[T : BaseModel](
url: str,
method: str = "GET",
headers: Optional[Dict[str, str]] = None,
schema: Optional[Type[T]] = None,
**kwargs
) -> requests.Response | T:
try:
response = requests.request(method, url, headers=headers, **kwargs)
data = response.json()
except requests.RequestException as exc:
raise FetchException() from exc

if response.status_code == status.HTTP_418_IM_A_TEAPOT:
    raise FetchException(status.HTTP_418_IM_A_TEAPOT, "The given api was too silly.")
elif not response.ok:
    raise FetchException(response.status_code, data)

if schema != None:
    return schema.model_validate(data) 
else:
    return response
late orchid
#

weird, seems to work for me
double check if your schema thingie isn't messing it up?

#

show the schema class

amber sigil
#
from pydantic import BaseModel
from typing import List, Optional

class MainPicture(BaseModel):
    medium: str
    large: str

class Genre(BaseModel):
    id: int
    name: str

class MALNode(BaseModel):
    id: int
    title: str
    main_picture: Optional[MainPicture] = None
    start_date: Optional[str] = None
    end_date: Optional[str] = None
    num_episodes: Optional[int] = None
    synopsis: str
    status: Optional[str] = None
    genres: List[Genre] = []
    media_type: Optional[str] = None

class MALPageInfo(BaseModel):
    next: Optional[str] = None

class MALPageNode(BaseModel):
    node: MALNode

class MALPagedData(BaseModel):
    data: List[MALPageNode]
    paging: MALPageInfo```optional everything
#

even the ones that doesn't make sense are optional here

late orchid
#

yeah weird, does it really not gives you the synopsis if you server.find_anime(38000)?
you're usinghttps://api.myanimelist.net/v2/ for MAL_API_URL right?

amber sigil
#
MAL_API_URL = "https://api.myanimelist.net/v2/anime"
MAL_API_LIMIT = 9
MAL_API_FIELDS = [
    "id",
    "title",
    "main_picture",
    "start_date",
    "end_date",
    "synopsis",
    "num_episodes",
    "status",
    "genres",
    "media_type",
]
```yeap
late orchid
#

show what exactly it responds?

amber sigil
#

2 sec

#

anyone gimme an id

late orchid
#

38000

amber sigil
#

wait, sec, I changed some stuff and somehow I broke everything

#
synopsis
  Field required [type=missing, input_value={'id': 38000, 'title': 'K...'}], 'media_type': 'tv'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.11/v/missing``` bc I removed the optional from synopsis (kinda important, so I'd rather just have an error rn)
#
                                      ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspaces/thonk/backend/.venv/lib/python3.12/site-packages/tortoise/models.py", line 735, in _set_kwargs
    raise ValueError(f"{key} is non nullable field, but null was passed")
ValueError: num_episodes is non nullable field, but null was passed
```If I add that optional, then it just fails on the db
#

it's both fields

late orchid
amber sigil
#

is there a python debugger for that?

#

debug printing doesn't seem that fun to me

late orchid
#

they're fields in the response

amber sigil
#
{'id': 38000, 'title': 'Kimetsu no Yaiba', 'main_picture': {'medium': 'https://cdn.myanimelist.net/images/anime/1286/99889.webp', 'large': 'https://cdn.myanimelist.net/images/anime/1286/99889l.webp'}, 'start_date': '2019-04-06', 'end_date': '2019-09-28', 'status': 'finished_airing', 'genres': [{'id': 1, 'name': 'Action'}, {'id': 46, 'name': 'Award Winning'}, {'id': 13, 'name': 'Historical'}, {'id': 27, 'name': 'Shounen'}, {'id': 37, 'name': 'Supernatural'}], 'media_type': 'tv'}
```I just printed on the fetcher
harsh tundra
#

In the search query animes?q=<name> or the direct anime/<id> query?

amber sigil
#

detailed route with id

late orchid
#

yeah I really don't get why that wouldn't include the synopsis if you have it in the fields

e.g. running with VSCode's debugger, it errors and pauses here
using the Debug Console, I can print the request url (including params) and response

maybe triple check if you didn't make a typo somewhere? idk

amber sigil
late orchid
#

just create a new file, import the class and run it directly

late orchid
amber sigil
#
{
    "id": 38000,
    "title": "Kimetsu no Yaiba",
    "main_picture": {
      "medium": "https://cdn.myanimelist.net/images/anime/1286/99889.webp",
      "large": "https://cdn.myanimelist.net/images/anime/1286/99889l.webp"
    },
    "start_date": "2019-04-06",
    "end_date": "2019-09-28",
    "num_episodes": 26,
    "synopsis": "Ever since the death of his father, the burden of supporting the family has fallen upon Tanjirou Kamado's shoulders. Though living impoverished on a remote mountain, the Kamado family are able to enjoy a relatively peaceful and happy life. One day, Tanjirou decides to go down to the local village to make a little money selling charcoal. On his way back, night falls, forcing Tanjirou to take shelter in the house of a strange man, who warns him of the existence of flesh-eating demons that lurk in the woods at night.\n\nWhen he finally arrives back home the next day, he is met with a horrifying sight—his whole family has been slaughtered. Worse still, the sole survivor is his sister Nezuko, who has been turned into a bloodthirsty demon. Consumed by rage and hatred, Tanjirou swears to avenge his family and stay by his only remaining sibling. Alongside the mysterious group calling themselves the Demon Slayer Corps, Tanjirou will do whatever it takes to slay the demons and protect the remnants of his beloved sister's humanity.\n\n[Written by MAL Rewrite]",
    "status": "finished_airing",
    "genres": [
      {
        "id": 1,
        "name": "Action"
      },
      {
        "id": 46,
        "name": "Award Winning"
      },
      {
        "id": 13,
        "name": "Historical"
      },
      {
        "id": 27,
        "name": "Shounen"
      },
      {
        "id": 37,
        "name": "Supernatural"
      }
    ],
    "media_type": "tv"
  },```This is from search (yes it's from swagger)
late orchid
#

!e import urllib.parse ; print(urllib.parse.unquote("?fields=id%2Ctitle"))

royal lakeBOT
jaunty wraith
late orchid
amber sigil
#

jk, don't do that

late orchid
jaunty wraith
#

does the client ID include your MAL ID somehow? if not, I don't see how it could leak much

amber sigil
vale raven
raw zephyr
#

on an unrelated note

#

how am I supposed to implement searching from these anime sites?

#

MAL and Anilist both have this problem (although I think Anilist is a bit better?). But god.

#

All the API endpoints use anime IDs, how am I supposed to give the user a list of shows based on a string search?

vale raven
#

Store a map of ID to name

raw zephyr
#

that sounds like a hack

#

Surely the API sin't that crude, but idk anymore.

#

I gave up lol.

#

That was a 3-4 years ago.

harsh tundra
lofty bolt
#

What do I tell my boss if I deleted their source code commited and pushed and deleted all their git history and backups?

#

by accident ofc

raw zephyr
raw zephyr
#

i'd count on that

lofty bolt
raw zephyr
#

name is self-explanatory i guess

lofty bolt
raw zephyr
#

depends on the company i guess

lofty bolt
raw zephyr
#

i don't know anything about it

lofty bolt
#

I mean I only dleted source code for their Payment/checkout stuff

#

so nothing major

#

this is just a joke btw

raw zephyr
#

I know

bleak maple
#

Huh. I had never noticed somehow that the OS/2 Warp source code got released on a BSD license.

#

I wonder if anybody has taken the ball and run with it.

#

Oh, never mind, this is a cleanroom rewrite as BSD, not useful to me.

#

Must be something spooky in the code:

mossy mango
#

have you guys read about the kepler telescope

#

it's really interesting how it detected about 700 new planets

#

I'm not sure if they are 100% sure if they are planets or not

#

but it detected by looking for light dimming when a planet went in front of a star it was orbiting

#

was watching a nova documentary on it

#

the documentary is on possible life on other planets

#

they also said they've found no organism on earth that can survive without liquid water

#

which is interesting 🤔

#

they said that the more frequently a planet transits (which kepler tells us) the hotter it will be, so they are looking for ones that orbit about as often as earth

bleak maple
#

Kepler owns

mossy mango
#

kepler-22b is one they found

bleak maple
#

Chris Cornell was so ahead of his time.

mossy mango
#

sorry for the bad quality

#

i think that's supposed to be the relative size of jupiter/saturn, kepler-22b, and earth

mossy mango
bleak maple
#

I'm on this fun server and interesting news like this comes across there pretty often.

mossy mango
#

oh that looks cool

bleak maple
#

It's called Asymptotes | Technological Singularity, not sure if it's community browsable actually..

#

I would hope so?

mossy mango
#

that's a funny server name

#

i think one thing that makes them a little unsure about kepler-22b is that it might not be wobbling

#

and I think the more it wobbles, the more likely it is to be solid?

#

i didn't know how they detect black holes, interesting

#

A Balmer break is a sharp change in the spectrum of an object in space occurring in the ultraviolet part of the spectrum, where shorter-wavelength light on one side of the line is much lower in intensity than the higher-wavelength light on the other side of the line.

#

i wonder if any of the kepler data is available to download pithink

bleak maple
#

Actually I ran into another fun space thing that it sounds like you might be interested in

#

An unexplained flood of antimatter was bombarding our planet, and scientists have finally identified the culprit.
To try out Brilliant’s online courses, head to http://brilliant.org/astrum for a 30-day free trial, and 20% off a premium annual subscription.

▀▀▀▀▀▀

The search for the source of the cosmic particle shower hitting the...

▶ Play video
#

Not to spoil the video, but the fascinating thing I learned here is that "what a pulsar looks like" to us is just the orientation of it relative to us.. like, whether we see it as an X-ray source, a gamma source, etc.

#

They turn out to spray different things at different angles

mossy mango
#

ooh

#

gonna watch that

#

watching it now

#

what does a positron do?

bleak maple
#

Usually run into an electron and get annihilated as far as I understand.

bleak maple
#

If anybody has ever told you that "size", "cardinality", "extent", "volume", and "probability" were different ideas, they lied or were misinformed.
Check out Measure Theory to know more. BURN

bleak maple
thick ore
#

i have come to the conclusion that everything is contextual

bleak maple
#

It depends.

thick ore
#

EXACTLY

bleak maple
#

Man, sometimes you just know you are on the right Discord:

mild abyss
#

hi

crystal spruce
#

i tab out for one second and my desmos fucking explodes

bleak maple
worldly ice
#

dad?

bleak maple
pseudo zephyr
sullen delta
sullen delta
bleak maple
bleak maple
vapid nymph
#

because its in preview

bleak maple
#

OK yeah so "loss leader" tricks

vapid nymph
#

Yeah

#

I tend to use it to write code but then it does such a bad job that i end up rewriting the whole thing

#

git checkout HEAD -- file/it/modified

#

is a common command

bleak maple
#

Maybe you could have it do that for you automatically haha

#

This is kinda funny, re: LLMs.. This has been one of my test prompts since I guess like 2022, right?

#

and I just tried it with the latest ChatGPT:

#

...and ChatGPT is just garbage now haha

timid latch
bleak maple
little zephyr
#

hi, I am using python for the first time and I am trying to make my own Jarvis from scratch, I have the Text to speech finished I need help into making his modle lable and brain

bleak maple
#

I guess if I add "from Terminator" to the prompt it would work better etc.

timid latch
#

I mean it's being more and more optimized for actual work task, which in most cases a PR refers to a real pr

bleak maple
#

Yeah, I guess that's a big difference vs 2022

#

But actually, the "before it goes live" clearly describes a future event, so I feel like it's unambiguous still if it had read me carefully.

#

I didn't say "before it went live" etc.

shell raptor
#

Any suggestions for books/blogs/etc. if I want to learn LaTeX?
I've used LaTeX for a bit but it was mostly a patchwork of copying StackOverflow answers into the document. I feel like I'm lacking some fundamentals or a coherent mental model of what's going on

#

would it be a good idea to learn TeX first? Since, as I understood it, LaTeX is a collection of hacks on top of TeX

bleak maple
#

As a software engineer already, you have some power moves you can use, by way of analogy..

shell raptor
#

I have successfully conquered installing latex in the past

low chasm
shell raptor
bleak maple
#

One way to think of LaTeX commands (\command{argument}) is as function calls and of environments (\begin{environment}...\end{environment}) as scoped blocks of code. Your doc's preamble, where the packages and settings go, is like an import section in a program.

low chasm
#

granted all I use it for is typesetting math in my school notes, as opposed to writing anything like an actual paper.

bleak maple
#

The latter is quite good.

shell raptor
bleak maple
#

I haven't really used the former but I'll read it now.

shell raptor
bleak maple
#

Porting your resume to LaTeX can be a "fun" way to grind out learning it.

#

I personally do mine in self-contained single-file html+css

#

But LaTeX is popular too

bleak maple
#

Oh snap, when does Astral cut me the check?

vale raven
vale raven
bleak maple
vale raven
#

is for jobs

bleak maple
bleak maple
vale raven
#

When did LinkedIn become Facebook?

grave cove
#

always

#

hate it now that im actively applying for jobs 💔

bleak maple
#

I had my job title set to “Philosopher” until recently to avoid recruiter spam

vale raven
#

LOL, I just pulled up my LinkedIn and I see KRRT replying to someone bitching about how bad AI code generation is, with an advertisement for AI code review

grave cove
#

wild shit

grave cove
#

tis recruiting season

vale raven
#

nice

#

Oh look here's Aboo

#

Oh shit LinkedIn gives birthday wishes now

woeful phoenix
bleak maple
bleak maple
#

This is so good. Super crunchy but both dudes are incredibly smart.

undone granite
#

It seems like I have to setup multiple runners in the same machine, and each runner will be assigned a job, what a waste

wicked haven
uneven pine
#

They're far better than if they were using vim

thick ore
#

dude thats like 60 years

uneven pine
#

Let them cook

wicked haven
# lament cairn you good?

I'm thinking about writing a library for arbitrary length binary rationals

Does that answer your question

lament cairn
#

fair enough

wicked haven
jovial oriole
#

Another 32g of protein

#

30 more to hit daily intake

tardy rain
#

Based technique

#

Tuna kinda bad tho

#

I prefer sardines

jovial oriole
#

also based

#

Game recognizes gamd

#

insane protein/weight ratio

#

i also really like the selenium

tardy rain
#

I tolerate tuna in sandwiches, but its kinda yucky by itself 😔

jovial oriole
#

yeah

#

Mayo and tuna sandwich slaps

uneven pine
#

I like tuna in general

#

But eating a can of it alone is real sad hours

lament cairn
hollow badge
#

raw meat is based

worldly ice
lament cairn
#

I meant without seasoning

worldly ice
#

I ate a can of refried beans once just on its own

bleak maple
#

Actually the best steak I've ever had was raw; wagyu carppaccio at a yakiniku place in Tokyo.

turbid oyster
timid latch
#

(that's a good thing right? Cold pillows are nice)

bleak maple
vale raven
#

"love"

#

@bleak maple I trusted you

#

Where BlueSky??

bleak maple
#

I have some mutuals on X that are impossible to replicate on the modern web, so I use both.

#

Still working on building up the BSky thing.

vale raven
#

Quick question

#

How do you pronounce your name

bleak maple
#

"Bill Koh Vitch"

#

very phonetic

#

I guess it's "Bohemian" or modern Czechia etc?

#

Oddly my genetics are from elsewhere but there was some re-marriage going on.

#

Genetically I'm basically the people that the Milesians found already living in Ireland in the mythic age haha

vale raven
#

The other part

bleak maple
#

"Will Sun"?

vale raven
#

"whilesone"?

bleak maple
#

Oh I been plaaaayed

vale raven
#

(I'm just bored and making dumb jokes)

bleak maple
vale raven
bleak maple
#

There's a great anime (Maison Ikkoku) where one of the characters has a name that can be pronounced in a few different ways, based on the characters it is written with..
...and every time he hands his business card to someone, he says "It's written XYZ, but pronounced ZYX", in some different way haha

#

Never the same way twice

#

This type of video is why YouTube is still a thing for me: https://www.youtube.com/watch?v=Q8WXvDLofL8

Go to my sponsor https://betterhelp.com/mattias for 10% off your first month of therapy
with BetterHelp and get matched with a therapist who will listen and help.

Buy the Hammer Klavier VST (the hammer piano) and play with it today! https://bit.ly/hammerklavier So cool don’t forget to use the code ENGINEER15
Download the FREE 88E ...

▶ Play video
#

This kid needs a real-time OS so badly in this video it's scary, see if you can count the number of times his Arduino's non-determinism bites him

vale raven
# bleak maple This type of video is why YouTube is still a thing for me: https://www.youtube.c...

Have you seen this channel?
https://www.youtube.com/watch?v=3KS02q0BUnY

Star Wars Theme / Imperial March (by John Williams) cover by The Floppotron 3.0, computer hardware orchestra.
Which song would you like to hear next? Write it in comments!
More details on how it works - http://silent.org.pl/home/2022/06/13/the-floppotron-3-0/
Patreon: https://www.patreon.com/floppotron

▶ Play video
bleak maple
#

The floppotron doesn't risk bodily harm every time you work on it haha

vale raven
bleak maple
#

It's fiiiiiiiine

#

Analogies to the dot-com bubble are totally unfounded, who even said that?

mossy mango
#

@cerulean mica

#

guess where this is from

cerulean mica
undone thorn
#

looks like a cake

gaunt yew
#

Here is how I explain the galilean transformation "I am just going to repeat it one more time. x' and x represent the same object just one is in the moving frame and the other is the stationary frame position? I apologize if I got it wrong"

For the Lorentz transformation the same logic applies as the Galilean transformation, just the object shrinks in size for the moving object compared to the stationary frame. And time gets longer for the moving frame vs stationary frame? Please ping on reply

high verge
# gaunt yew Here is how I explain the galilean transformation "I am just going to repeat it ...

Here’s a clearer explanation.


Galilean Transformation

In Galilean relativity, space and time are absolute. If you have two frames:

  • S (stationary frame)
  • S′ (moving frame with constant velocity (v))

The position of the same object in the two frames relates as:
[
x' = x - vt
]

  • (x): position in stationary frame
  • (x'): position in moving frame
  • (t): time, the same in both frames

Key point:
Both observers see the same object at the same time, but they assign it different coordinates because one frame is moving relative to the other. Space and time don’t change between frames in Galilean transformation.


Lorentz Transformation

Special relativity changes the picture because the speed of light (c) is constant for all observers. Space and time mix together. The Lorentz transformation is:
[
x' = \gamma (x - vt), \quad t' = \gamma \left(t - \frac{vx}{c^2}\right)
]
where
[
\gamma = \frac{1}{\sqrt{1 - v^2/c^2}}
]

Differences from Galilean case:

  • Time is not the same in both frames. Observers disagree about when events happen.
  • Lengths along the direction of motion contract in the moving frame.
  • Time intervals dilate for the moving clock.

Your Statement Adjusted

You were right that (x) and (x′) describe the same object, just in different frames.

But for Lorentz transformation:

  • Length contraction: A moving object’s length (measured along the direction of motion) appears shorter to the stationary observer.
  • Time dilation: A moving clock ticks slower as seen by the stationary observer.

So, the logic is similar in that both transformations relate two coordinate systems, but in Lorentz transformation, both space and time coordinates change in a coupled way due to relativity.

Would you like me to give a simple example with numbers, like a rod moving at high speed, to show how length contraction and time dilation appear?

bleak maple
#

Oh, and indeed there's a long writeup above.. but for me it's just "t is different for the two frames, and that changes everything"

gaunt yew
#

Just give me a second to absorb the info

bleak maple
#

Also that writeup above looks like AI-generated to me

#

Which we don't love having people post here

#

At least in the context of Python answers

gaunt yew
#

Isn't that basically what I said above just less detailed

bleak maple
#

Well, if you wanted a Yes/No answer, "Yes".

#

Enjoy!

gaunt yew
#

The one thing about the Galilean transform and the Lorentz transform is how do I change from a stationary to a moving object?
I will use the Galilean transform because it is easier to manipulate the equation. x' = x - vt and x' represent the moving object position and speed/velocity and time. If I go x = x' + vt I changing x to the moving object and x' stationary object. Is this correct?

#

@high verge sorry to bother you but I have a new question

mossy mango
solemn tulip
mossy mango
#

i didn't know if anyone would actually scan it

solemn tulip
#

one nice thing about the circle to search thingy on pixel

marble bay
# mossy mango til duck.ai exists

I question the whole no data is stored but we still provide you all these LLMs free of cost, but I still use it for the convenience of it

bleak maple
undone granite
woeful phoenix
undone granite
polar wolf
#

Hi

blissful cave
#

Hi I new member

torn tusk
#

Ddd

#

Ddddd

#

d

turbid oyster
bleak maple
#

Speaking of slopware..

upper flower
#

@viral parrot do you know whats the point of learning these?

viral parrot
#

what do you think the point is?

upper flower
#

and apparently the ones with less steps are efficient

woeful phoenix
#

isn't it important to write efficient software?

viral parrot
#

this iiis part of analytics, where you the developer analyses your code

#

why it is important to know how your code runs?

upper flower
#

why learn all of them

upper flower
viral parrot
#

well.. what do you think speed in the question above means?

woeful phoenix
#

the complexity describes your program

bleak maple
woeful phoenix
#

so you learn it to be able to talk about the efficiency of your program more precisely

upper flower
bleak maple
#

So sure you want O(1) all the time, but you can't get that in this universe.

#

So it's worth learning to understand what the best you can do IS.

upper flower
#

ok

bleak maple
#

O(N!) is so gnarly

#

When you understand what that is saying, you will not be happy

woeful phoenix
#

there are many tasks you need to perform as part of a program, and those tasks have different algorithms, different approaches. each of those has a different complexity.
how do you determine that? how do you quantify/describe those differences? that's what you learn complexity analysis for.

bleak maple
viral parrot
#

if you have 100 things, how long would it take to count each one of those thhiings?

viral parrot
#

yes

upper flower
#

probably 100 seconds

viral parrot
#

good

#

and if you have 1 million things

#

how long?

upper flower
#

1 million seconds

viral parrot
#

yes

#

how does this problem scale?

upper flower
#

that as the number of things to count increase, it also takes way too much time to count

bleak maple
#

I agree 1000% with what eivl is doing right now and will shut up.

viral parrot
viral parrot
#

this term has a name

#

it is called linear scale

upper flower
#

mm

viral parrot
#

what is a faster way to count these thiings?

upper flower
#

as humans?

viral parrot
#

yes

#

this is all human language

#

big O is something we human thinks about

#

its not really accurate or actually real

#

its just a thought experiment

upper flower
#

well we could lets say if theres 100 things i could count them as 10 in the first second. so 10 10 10 10 10 and so on and reach 100 so thats 10 seconds but 100 things

viral parrot
#

lets say every thing weigh 1 gram

#

would that info help you to make a faster solution?

upper flower
#

no

viral parrot
#

what if you have a scale and weigh all the things at once?

upper flower
#

yeah then probably

viral parrot
#

thhe scale will tell you they weigh 600kg

#

meaning it is 600 000 thiings

#

i get the answer right away

#

so that is the best way to solve this problem

#

you cant get any faster than the correct answer right away

#

agree?

upper flower
#

yes

viral parrot
#

contant time we call this

#

and its the best

#

what is worse then what we did earlier?

upper flower