#🍁・general-2

1 messages · Page 133 of 1

median trail
#

oh because it's closer

fossil cipher
#

It's more "complicated"

#

And that too

#

They want to see you work a bit harder than just use 2 of the same colors next to each other, lol

#

You could also give him more answers, right?

#

55k, 57k, 57.1k.

#

color codes of all of them

lavish estuary
#

Cómo han viajado a Europa hasta ahora? Qué se necesita? Sólo el pasaporte?

median trail
#

it depends on your country's passport

lavish estuary
#

Oh apparently it's something called the Schengen Agreement

median trail
#

yes

lavish estuary
#

''U.S. citizens may enter for up to 90 days for tourist or business purposes without a visa. Your passport should be valid for at least three months beyond the period of stay''

fossil cipher
#

You don't even need a visa to enter EU?

fathom flame
#

@shrewd pendant funcionó peepohappy

shrewd pendant
#

Que funcionó?

rotund pawnBOT
#

The bot is already processing a Wolfram|Alpha query for this server.
Try again in a moment.

sweet cape
#

=wolf derivative (tan(x))^(1/x)

rotund pawnBOT
past harbor
sweet cape
#

Debería ir esto en bot?

#

Oka

median trail
#

AAAAAAaaaaaaaaa

#

I feel like someone is stalking me on minecraft

#

Even after I told them it's not for sale

#

;-;

#

(I had already told the guy that my land was not for sale before the screenshot was taken)

#

10k sounds awesome, but I know they want to buy it because it's close to the spawn, like it's located in a nice spot

#

that's why I know I can set up a shop that could succeed

ashen mist
#

No deberías estar estudiando? Jajaka

median trail
#

I finished studying like one hour ago

ashen mist
#

Hour

#

Y genial

#

Hay que comprar algo para jugar Minecraft?

#

Quiero jugarlo con vos

median trail
#

yes, you have to buy it, but if you don't want to we can just use a non-premium server

old shell
#

Premium servers are for fancy people sadcat

smoky comet
#

What is it?

lusty widget
#

Una película

#

De miedo

tepid plank
#

Yo tengo energia de clara.

#

Completo algo mi tarea! 😄

covert owl
#

¿Qué tal amigos?

#

Soy muy cansado

fallow dock
#

estás* muy cansado

#

por qué estás cansado?

covert owl
#

Trabajé mucho hoy en una universidad

#

Soy un profesor

fallow dock
#

oh

#

qué enseñas?

covert owl
#

Geografía y ciencias de la computación

fallow dock
#

:o

#

interesante

#

son dos disciplinas totalmente diferentes

covert owl
#

si

#

lol

#

Donde trabajas?

fallow dock
#

actualmente no trabajo

covert owl
#

o

fallow dock
#

estoy dedicándome a mis estudios casi totalmente

#

y al tiempo libre lo dedico a cosas relacionadas con desarrollo de software

covert owl
#

Qué admirable. Tú eres muy sabio. 👍🏻

fallow dock
#

eh, no sé si tanto 😓 pero intento aprender todo lo que pueda aprender, y no rechazar nada

#

gracias ofc :3c

median trail
#

context: there's this cjeff guy who wants to buy a land I claimed on a minecraft server, and he's offering me a lot of money for it since it's a great spot close to the spawn.

He waited for me to log into the server, and he answered the how have you been question without realizing I didn't say anything

#

I'm lmattius btw

#

I've already told them it's not for sale like 4 times

#

and he keep on offering more and more money

#

He realized what I realized when I claimed that place

covert owl
#

Is he offering you real world money @median trail ?

exotic kiteBOT
covert owl
#

I would take it, lol

median trail
#

No, the currency of the server

#

we call it money too

covert owl
#

Tell him to wire you $1000 USD jajaja 🤑

#

I understand how that might be frustrating though

#

In all seriousness

storm creek
#

@short garden

#

prueba prueba

tardy stag
#

@median trail what do you use as currency in that Minecraft server?

median trail
#

it's called money too

tardy stag
#

yeah but what
or it's money literally

#

i thought you were using a resource as currency
i don't know... diamonds for example

gusty ermine
#

squero dinero

median trail
#

no, it's just imaginary money that you can only use on the server

old charm
#

bro what

#

110

gusty ermine
#

yeah sad to say i cannot help with that

glass dragon
#

Don't you just count up all the weights?

eager wagon
#

y cuánto pesa H?

glass dragon
#

H=1

eager wagon
#

entonces es 87?

glass dragon
#

so you have 4 C total, so 4x12=48

#

then you have 7 H, so 7

eager wagon
#

4x12 + 7x1 + 2x16?

glass dragon
#

2 O, so 16x2=32

#

and then one Na, so 23

eager wagon
#

ah sí 23

#

110

glass dragon
#

then the total is 48+7+32+23

#

@old charm

eager wagon
#

no entiendo eso, ama

glass dragon
#

oops, I don't know where that 4 came from

eager wagon
#

😄

glass dragon
#

omg this new fucking interface

eager wagon
vestal pine
glass dragon
#

i emoted to my own fucking comment instead of editing

vestal pine
#

that’s a big F

exotic kiteBOT
#

🆙 | Nilfirith has given @glass dragon a reputation point!

vestal pine
#

why doesn’t anyone ever rep meturtleverysad

glass dragon
#

maybe you never help anybody

#

maybe you never emote to your own comments instead of editing them

vestal pine
#

i always help peopleblurryeyes

old charm
#

yeee I know

#

it was the - and + that threw me off

glass dragon
#

damnit eclipse, I did all that work for nothing

vestal pine
#

fuck sake eclipse

old charm
#

I said the answer

glass dragon
#

srsly

#

oh I didn't know that 110 was the answer

eager wagon
glass dragon
#

I thought it was just something random

#

lol

old charm
#

nahhh

#

thanks anyway

glass dragon
vestal pine
#

Oi eclipse look at ur dm I’m gonna send you something

old charm
#

okie

alpine cradle
#

really no one rept you?

#

t!profile bizzle

exotic kiteBOT
alpine cradle
glass dragon
#

F

vestal pine
#

that’s my alt

#

t!profile

exotic kiteBOT
vestal pine
#

not much of a difference but yeah

median trail
#

My thorns enchantment almost kills it thinky

smoky comet
#

Just started New Vegas. Any ideas what skills should I develop first?

copper fox
#

You're gonna end up being the strongest person in the wasteland no matter what you choose

#

So choose whatever suits you the most

smoky comet
#

It is hard.

fallow dock
#

Life is.

alpine cradle
#

Oh, two accounts thonk

#

I should have around 14 reps because people love me yas

molten axle
#

@grim lava no puedo esta tarde, Deli

grim lava
#

ok, está bien karina, y mañana? sabés si podés?

molten axle
#

Yo creo que mañana sí

ashen mist
#

hermoso

median trail
#

I got 100/100 on the first chapter test UWU @ashen mist

#

starting off like this really sets the tone

exotic kiteBOT
ashen mist
#

@median trail congrats!!! Bien hecho

#

@median trail congrats!!! Bien hecho

#

@median trail congrats!!! Bien hecho

#

@median trail congrats!!! Bien hecho

split nova
#

Sweaty bastard

median trail
#

I like your hair

split nova
#

Oooh! Alright

median trail
#

I think you have to have a role to see that channel. I just gave it to you if necessary

#

Hugo and Luis are acceptable in my opinion

#

loulou is so cute awwwwww

#

drowns in French cuteness

calm flax
#

Do people not say paco outside of Spain?

median trail
#

no

#

that's not a thing outside Spain

#

Well in my country we use that word to mean Police but other than that I don't know

calm flax
#

Is there a short form of Francisco then?

median trail
#

Yes

#

Pancho would be in my country

calm flax
#

Huh

median trail
#

that may change in every country thinky

calm flax
#

I wonder how they came to be called that if nobody says Paco then?

median trail
#

yeah it's weird

calm flax
#

Maybe they used to say it? Duck Tales is quite old now

#

It was on when I was a kid

#

And I’m old af

median trail
#

maybe

ocean otter
#

We still say it, and I dont see that changing any time soon xD

median trail
#

yes, in Spain

#

America is like "we don't do that here"

ocean otter
#

In fact, the big burd from sesame street was called "paco pico" here xD

#

And this is true

median trail
#

wait

#

let me turn the photo

queen trail
#

I see

#

I really don't understand you homework

#

Ohm's

median trail
#

I like it, I learned the color code using a phrase

Big Boys Race Our Young Girls But Violet Gray Wins

queen trail
#

How is called the science where you are studying about that?

median trail
#

It's called physics

#

what is the science you are studying called?*

#

I'm majoring in systems engineering at university :)

queen trail
#

what is the science you are studying called?*
@median trail the tittle is called "computer engineer" but it's really focused on the branch of the computer science.

median trail
#

you mean my degree?

queen trail
#

No, I'm talking about me.

icy pollen
#

Al menos aquí "computer engineer" es lo que edsel está haciendo

thin copper
#

My science is called: Eating engineer

#

Engineering*

grizzled hedge
#

Are you in phys 2/EandM edsel? @median trail or like circuit analysis

median trail
#

Yes, circuit analysis @grizzled hedge

#

I'm going to take EandM the next semester

grizzled hedge
#

Ah gotcha

royal ingot
#

help me

#

I need headset recommendations

#

I don't want it to be "gamer". Just very durable because I need it to study

calm flax
#

Most cheap headsets will work for what you want

#

don't treat it bad and it should last

#

I like the USB ones personally

junior thicket
#

Is a math person online

#

Alguien sabe cómo convertir decimales mixtos a fracción? peepoCry

kind flax
#

Cuál es el problema?

junior thicket
#

You know how theres three types of decimal numbers? And there's one that has both numbers that aren't repeated and numbers that are? (Like, say, 4.21888888...)
I need to figure out how to turn them into fractions

kind flax
#

Irrational numbers continue forever (1/3 and pi for example) when in decimal form

junior thicket
#

I was actually talking about "ultimely periodic numbers", apparently?
But I figured it out peepoyay thank you

old charm
#

can the cosine rule be used on right angled triangles?

#

i assume it can

ashen mist
#

@kind flax 1/3 is not irrational

#

irrational numbers cannot be expressed as the quotient of two integers

#

has nothing to do with whether or not the decimals repeat

#

1/3 (0.3333...) goes on forever, but is rational because 1 and 3 are integers

#

pi is not rational because you can't express pi as a/b, where a and b are both integers

#

In mathematics, a rational number is a number that can be expressed as the quotient or fraction p/q of two integers, a numerator p and a non-zero denominator q. Since q may be equal to 1, every integer is a rational number. The set of all rational numbers, often referred to as...

hybrid hull
#

Anyone familiar with object detection? Trying to do some pretty simple stuff, but looking for some better methods

#

Using python btw

#

And OpenCV currently

#

It's working basically

#

But only on white or alpha layer images

fallow dock
#

white or alpha layer images
if what you're doing is detecting contours, that's how you're supposed to do it - you need to process your images to grayscale (or more precisely a single 8-bit channel), then do the detections you want

#

I have not worked with the Python bindings, only Java, and I don't remember much of it, but the usual rules for computer vision are "do whatever that works"

#

when I used it I had to juggle with all sorts of filters

#

but applying a threshold was the most important iirc

#

if you want to actually detect objects, then you need to do ML instead lol

hybrid hull
#

Well currently it does convert the image to grayscale first. But regardless of that it still highlights contours that are not part of the object I need. What I want to do is kind of object detection, but I don't want to know what object is there. I want to extract the vertices of the object relative to the image. It seems like this is the only way.

fallow dock
#

mmmmmmm

hybrid hull
#

What hardware did you use for that?

#

That's cool

fallow dock
#

just my notebook

#

it's nothing special

hybrid hull
#

Ah

#

Some people do that type of stuff with kinects is why i asked

fallow dock
#

that's not ML if that's what you're asking

hybrid hull
#

No

fallow dock
#

no, that was done with a regular camera and blob detection

hybrid hull
#

Very nice

fallow dock
#

but I was doing my own background substraction

hybrid hull
#

That part sounds the most interesting imo lol

fallow dock
#

background substraction?

hybrid hull
#

Yes

fallow dock
#

did you ask in Creative Coders? there are probably people who have done similar things, and small details always matter for these things

hybrid hull
#

I haven't yet

fallow dock
#

Yes
that was because it was a video, I would set the "original" image and then the next frames would check the difference

hybrid hull
#

Ah okay

fallow dock
#

that can get really tricky as well

hybrid hull
#

Just for some background. This project is for my computational creativity class and we're trying to implement a system that will take a photo of space for input and output and constellation with a name.

#

So we're trying to maintain/create a "knowledge base" of shapes for the system

#

So far this seems like a very naïve approach, but this is the most immediate thing we have come up with.

fallow dock
#

you want to detect which costellation is?

hybrid hull
#

No we want it to "create" a constellation out of nothing

fallow dock
#

ah, I see

hybrid hull
#

The biggest issue is creating a sense of autonomy

fallow dock
#

protip: you can use an image editor first to check what filters would work better lol

#

I used to do that, applying adjustment layers in Photoshop and changing blend modes, etc.

#

OpenCV does some magic but those algorithms do the same, so if you want for example "a black and white image that covers X type of things", you could see in an editor first how well it would change the image

hybrid hull
#

That's a good idea! I'll have to mention that to my group

noble lichen
#

Por qué no tiene los subtítulos en español el Disney+

shadow blade
#

Creo que aún no lo habilitan en otras regiones, en mi país aún no lo habilitan.

fallow dock
#

oh, el nuevo switch de Java 13 se ve bien

#
String someName = switch(number) {
    case 1, 2:
        // línea
        yield "Manusaurio";
    case 3:
        // línea
        yield "Manuyardo";
    default:
        // línea
        yield "Manubastardo";
}```
#

vs el viejo java case 1: case 2: ... = ... break;horrible

median trail
ashen mist
#

Ew

#

Hay que memorizar todo eso?

median trail
#

this is just a [borrador] to remember the commands of the console*

abstract scaffold
#

draft

ashen mist
#

No me gusta memorizar cosas

abstract scaffold
#

read that as rubber as first... then remembered that can mean draft as well

icy pollen
#

If you use them a lot, you will remember most of the common ones. Like password encryption and enabling a secret you should do on every switch/router/ you ever setup*

median trail
#

I didnt understand what layer 2 ports are

icy pollen
#

But you do now?*

median trail
#

Nope

ashen mist
#

Like an Ethernet port

#

@median trail te enseñaron OSI?

icy pollen
#

Hopefully. It's important*

ashen mist
#

Recién empezó la clase así que no sé qué tan lejos han avanzando

icy pollen
#

I just meant that if they are teaching about layer 2 ports they should explain what the "layer 2" part means. *

ashen mist
#

Ah sí

median trail
#

@ashen mist no

icy pollen
#

they are making it harder on you *

ashen mist
#

Wat

median trail
#

why

ashen mist
#

Ok, el modelo OSI es un modelo de referencia para los protocolos de las redes

#

Y básicamente divide los protocolos en 7 capas

#

Capa 1 es la capa física, o sea trata de las conexiones físicas y cómo se transmite la información y los datos a través del medio físico

#

Eh

#

Bueno, te mando un recurso porque no lo voy a explicar muy bien ajaja

#

Me sorprende que te hayan dicho algo de layer 2 ports sin explicar qué es Layer 2 y todo eso

icy pollen
#

yo tmb.

median trail
#

I don't understand why we have a general config mode and some specific ones

ashen mist
#

Supongo que puedo explicarlo en inglés

#

En vez de buscar todos estos nombres en español ajajaja

#

Ok

#

Edsel, cómo funciona el sistema de correos en tu país

#

Ponés un sobre en el buzón o algo así, y alguien se encarga de ello, no?

#

O sea, de alguna forma la carta llega a su destino

#

Pero vos no tenés que preocuparte por exactamente cómo llega el sobre

#

O sea, si el sobre va en un auto o en un tren o en avión

#

En qué calle va a viajar, detalles así

median trail
#

No, I have to go to a post office and give them whatever I want to send

#

ah

#

yes

ashen mist
#

Lo que haces es escribir tu carta, ponerla en el sobre, escribir la dirección del recipiente

#

Hay un protocolo de entregar un sobre a la oficina de correos, no?

#

"escriban la dirección, incluyan X e Y información, usen un sello, lo que sea"

#

Al sistema de correo no le importa qué hay en tu sobre (siempre que no sea una bomba o algo peligroso jaja)

#

Y, al entregar tu sobre, no tenés que pensar en los detalles de cómo va a viajar el sobre

#

La oficina de correos va a decidir cómo llega, en qué auto, etc

#

Y, yendo un poco más dentro del tema, el conductor del auto va a tomar una ruta para llegar a destino X

median trail
#

yes

ashen mist
#

Puede tomar carretera A, calle B, lo que sea

#

A la oficina de correos no le importa qué ruta toma el conductor, siempre que las cartas lleguen a tiempo

#

El conductor puede cambiar la ruta por el tráfico, tal vez quiere pasar un rato en la tienda para comer algo durante el viaje, no importa

#

Vos no sabés qué hace el conductor

#

Y no te importa

#

Y finalmente tu recipiente recibe el sobre

#

Nota que el sobre lleva su nombre, lo abre, y lee el contenido

#

El punto es que, durante ese viaje de los datos, cada participante se preocupa por una parte de todo lo que pasa

#

Vos tenés que escribir la carta y usar el protocolo de entregar un sobre a la oficina de correos

median trail
#

ashen mist
#

La oficina de correos tiene que decidir cuando el sobre va a salir y con qué método de transportación

#

El que se encarga de la transportación tiene que decidir la ruta exacta y todos esos detalles

#

Y el recipiente de tu carta tiene que leerla y procesar la información

#

En las redes, pasa algo así

#

Las aplicaciones en tu computadora quieren enviar datos a otras aplicaciones u otras computadoras

median trail
#

Oh I see

ashen mist
#

Esas computadoras pueden estar en tu propia red, en otro país, en donde sea

median trail
#

They want to talk to each other? aww that sounds cute

ashen mist
#

Hay protocolos de enviar datos en cada pasl

#

Paso

#

O sea, hay protocolos para enviar datos entre un cable, entre dos computadoras en la misma red, entre dos redes diferentes

#

Y cuando una aplicación quiere enviar datos, esa aplicación no sabe exactamente cómo esos datos van a llegar al destino

#

La aplicación va a decir "ok, quiero enviar datos, y voy a usar protocolo X". Y protocolo X va a usar otro protocolo para tomar el siguiente paso, y sigue así

#

Y a cada protocolo no le importa qué información envía el protocolo anterior

median trail
#

Hmmm interesting

ashen mist
#

A la oficina de correos no le importa qué querés decir a tu amigo

#

Tampoco al conductor del auto con los sobres

median trail
#

oops

ashen mist
#

En el modelo OSI, hay un concepto que se llama "encapsulation"

#

Cada capa del modelo OSI provee servicios para recibir y enviar datos

#

La oficina de correos provee servicios de recibir y entregar sobres, el conductor provee servicios de recibir y entregar cosas en su auto, las carreteras y calles proveen servicios del flujo de tráfico

#

Cada capa del modelo provee servicios para la capa de arriba, y pide servicios de la capa de abajo

#

O sea, vos pedís servicios de la oficina de correos (una capa abajo), la oficina de correos pide servicios del conductor del auto, el auto pide servicios de la carretera

#

La carretera deja que el conductor pueda viajar con el correo. El conductor deja que la oficina de correos pueda mantener su sistema de correo, y la oficina te deja mandar cartas a tus amigos

median trail
#

I'm really impressed. Your Spanish is very clean

ashen mist
#

En el modelo OSI, capa 7 (la capa más arriba) pide servicios de capa 6 cuando quiere enviar datos, capa 6 pide servicios de capa 5 para transferir los datos de capa 7 (pero a capa 5 no le importa los datos de capa 7)
Y siguiendo así, capa 5 pide servicios de capa 4, ... , Y al fin, capa 2 pide servicios de capa 1

#

Jaja gracias(?

median trail
#

Ohhh

#

I see

#

and what does that have to do with layer 2 interfaces?

ashen mist
#

Son los lugares donde los datos entran y salen

median trail
#

like the road that the person who receives the package from the post office takes?

ashen mist
#

Ehh, más como la ubicación de la oficina de correos

#

Porque hay muchas oficinas

#

Por ejemplo, los ethernet ports son un ejemplo

#

Mantienen una conexión entre dos máquinas, y así la información fluye

median trail
#

so... ethernet ports are roads?

ashen mist
#

Son como una puerta física

#

O sea, la puerta de tu casa

#

La puerta de la casa de tu amigo

median trail
#

hmmmmm so what are the roads? the media of the network?

#

Aaaaaa wait

#

you mean ethernet port

#

not like the copper cable we plug there

#

ah yes I get it

ashen mist
#

Yeah the port

median trail
#

oh okay

ashen mist
#

Ojalá estos artículos expliquen el tema mejor que yo jaja

#

Quise usar un ejemplo para empezar, pero me temo que te ha confundido más jaja

median trail
#

no, I got what you mean

#

Basically every layer uses the other to transmit data, and none of the layers care of the data that's being transmitted

#

and they do it using protocols

#

that's just a fancy way to say "standarization of a process that's always the same"

#

peepoCozy is that correct?

#

hahahaha I missed the station I wanted to be in? because of paying attention to discord

ashen mist
#

Uh oh jajaja

#

Un protocolo es como un proceso estándar con reglas, sí

median trail
ashen mist
#

Lo siento :(

median trail
#

No no, it's not your fault

#

You taught me something

#

And I really appreciate it

#

OwO

ashen mist
#

Y cada capa tiene protocolos para transmitir información. Esos protocolos usan contenedores para los datos

#

Así que dentro el contenedor de capa 1 está toda la información de capa 2, que tiene la información de capa 3, que tiene la información de capa 4, etc etc

#

Eso como esos muñecas rusas

#

Abrís una, y dentro hay otra más pequeña

abstract scaffold
#

@median trail you missed your stop?

median trail
#

yes @abstract scaffold I wasn't sure if I could use station there 😁

ashen mist
#

"Layer 2 port" se refiere a las interfaces que capa 2 usa para transmitir y recibir información

#

Station es más como el lugar completo, o sea los edificios de la estación,

#

En una estación puede haber muchas líneas de tren , por ejemplo

abstract scaffold
#

using station there sounds a bit weird.

just be short and succint "I was basically distracted that I missed my stop"

median trail
#

oh ok

ashen mist
#

Sí, se usa "stop" para eso. (parada?)

median trail
#

yes

#

And how do you say 'tome la parada correcta' "I took the correct stop"?

abstract scaffold
#

... take sounds weird

ashen mist
#

"I got off at the right stop"

abstract scaffold
#

^that's better

median trail
#

Oh

#

okay it's 'to go on a train' right?

ashen mist
#

Diría "go by train"

#

O "take a train"

#

"I took a train to New York"

abstract scaffold
#

I went to New york by train.

ashen mist
#

Si hablás de la acción de abordar el tren, diría "go on the train". "He got on the train just in time"

#

Or "board"

#

"he boarded the train"

#

Por eso dicen "all aboard!!"

abstract scaffold
#

im going loco

#

@median trail a more formal way for "getting off the train" is

"I alighted at the right stop"

This word I tend to hear on the train announcements etc...

e.g.: "Next stop, Central. Please alight on the right, in the direction of travel."

#

This might be more British though

icy pollen
#

definitivamente.

#

nunca he oi eso

median trail
#

oh alighted

#

solderless breadboard Owo

gusty ermine
#

@past harbor ayudame en android xfavor peepoCry

eager wagon
#

@gusty ermine wolf no está, tiene que estudiar por sus exámenes

old charm
abstract scaffold
#

what have u done so far?

severe vortex
#

Wouldn't you just multiply each term by dividend/dividend so you can add them together?

#

Or is there a faster way?

old charm
#

nothing, i dont know how to do it

abstract scaffold
#

multiply both sides by (x+3)(2x-1) and see where that leads you

old charm
#

aight

#

aighht

#

so we have a quadratic now

#

gonna put it in the quadratic formula

#

is it

#

x = 4

#

and x = -1 ?

#

@abstract scaffold

abstract scaffold
#

ok

#

so what do you think you need to do with those solutions?

#

are they both valid?

old charm
#

oh yeah

#

try them in the original equation

#

wait

#

idk

abstract scaffold
#

what's wrong?

old charm
#

nothing aha

#

i got it right

#

just looked at the answer

#

thanks

abstract scaffold
#

👍

severe vortex
#

Nice

#

Yeah that's a lot of what calculus is

abstract scaffold
#

so whenever you see questions like that. multiply the denominators out and you get polynomials instead

severe vortex
#

Restating things in a form you can solve

abstract scaffold
#

and it's much easier to work with polynomials than things like hyperbolas

severe vortex
#

My calc professor called it "massaging the equation"

abstract scaffold
#

either method works

#

method 2 may be safer, since you don't have to clarify why your solutions work.

#

but it's always good to sense check by subbing them back in ur original eqn

old charm
#

wait is this calculus?

abstract scaffold
#

i wouldn't say it's calc

old charm
#

algebra?

abstract scaffold
#

it's just algebra

old charm
#

yeah thats what i thought

glass dragon
#

Sorry @old charm

#

Did you get it figured out?

old charm
#

yeaaa

abstract scaffold
#

yeah. they did. just got stuck at the initial step

old charm
#

^

glass dragon
#

Ok cool

abstract scaffold
#

but then it became quadratics after that

#

which is a no-brainer afterwards

gusty ermine
#

@eager wagon pero necesito su ayuda peepocry no sabes como puedo contactar con el tengo examen manana

grizzled hedge
#

I have my calc 2 midterm in like 20 mins guys - wish me luckkkkk

old charm
#

L

glass dragon
#

calc 2 was the hardest class I took in math

#

calculus was just a striggle for me for some reason

old charm
#

what even is calculus

vestal pine
#

I stg we don’t do it here

#

But some brits are saying we do

old charm
#

we do do it

#

but like

#

we aren't told what it is

#

like we dont have separate classes for different maths

#

its all bundled into one

#

at least i think we do it

#

maybe not

glass dragon
#

it's all about slopes and the area of a shape defined by a curve

#

slopes = differentiation and areas = integration

old charm
#

hmm

#

maybe not

#

idk

#

if its not here

#

then i dont do it

grizzled hedge
#

Man what a test

#

Holy moly

#

I’m not sure about this one 😬

#

Ugh

#

When you int by parts and get an even harder looking integral, but to solve it you just have to by parts it again.... even though all signs point not to

#

So then you waste like 30 mins trying the fuckin double/half/etc angle formulas and other garbage but it’s just wrong

#

And then the test is over and u feel like a big l0ser

#

Meanwhile you have like 9 other questions to attend to

old charm
#

just get it right lOl

grizzled hedge
#

I mean I guess 🙄

#

=tex int e^(2theta))(sin(3theta)d(theta)

old charm
#

of course

#

no clue what that means

grizzled hedge
#

I don’t know how to do the thing 😔

old charm
#

the thing

mortal dagger
#

=tex \int e^{(2\theta)(\sin(3\theta)d\theta)}

rotund pawnBOT
grizzled hedge
#

=tex \int({e}^{2\theta})({sin({3\theta})}) {d\theta}

rotund pawnBOT
grizzled hedge
#

There we go

#

I’m sad thougj... I fucked up pretty bad I think

old charm
#

L

grizzled hedge
#

I just hope he’s a lenient grader

#

I mean as a review, he literally just said “go through the chapters we covered and practice like all of the practice problems”

#

What kinda review is that

#

I mean like

#

I wasn’t expecting it to be that hard and sneaky.... like “here’s a by parts question, can you show it?” Not like “here’s a by parts question (but secretly there’s another hidden by parts that you just have to fuggin guess)”

ashen mist
#

Derivatives to me are more about rates of change rather than just "calculating slope". Calculating slopes of tangent lines is one application, but there's more to it than that

median trail
abstract scaffold
#

@grizzled hedge yeah, when you see an exponential and a trig multiplied together, it's standard integration by parts, but like the "repeat case" where using IBP twice will "get you back where you started, but with the sign flipped"

abstract scaffold
#

Or any two functions multiplied together and other integration techniques like u-sub don't work, then use by parts.

Integration can be tricky.

#

When I was in year twelve, integration by parts and partial fractions never really got to my head, it was only when I was in first year of uni when I started to get the hang of it

grizzled hedge
#

Ah gotcha, yeah that’s really helpful to think about

#

I need to practice bleh

abstract scaffold
#

Exp and trig together are classic integrals that I've just done a billion of them to know what to do

#

So I always know I get the "repeat case"

grizzled hedge
#

Yeah I didn’t really think of that trick of moving the two like integrals to one side, then making the coefficient one in front of the integral to solve

#

This:

#

Kinda neat haha

abstract scaffold
#

Yeah, that's what I call the "repeat case", move to lhs(left hand sidE)

grizzled hedge
#

Ah gotcha

#

Well now I’ll probably remember it for future cases I suppose

abstract scaffold
#

Since it looks like you just "repeated" back to the start and gone nowhere, but the sign is different or the coefficient is different on each side, so it actually helped

grizzled hedge
#

Right

abstract scaffold
#

Yeah, you learn from mistakes. This shit ain't easy

grizzled hedge
#

Yeah

#

Like you learn the rules and basic techniques, but there’s so much that just requires experience with solving em

abstract scaffold
#

Sometimes you just got to pull shit out of your arse, as seen in MIT integration bees

grizzled hedge
#

Jaja i see 🤔

gentle heath
#

MIT integration bee is my favourite sport

abstract scaffold
#

one of the integrals in the pdf file, I did a different way. I get an equivalent solution, despite it looking different.

#

red and blue curve exactly the same. green which is the soln in the pdf you can see is off by a constant, thus equivalent.

abstract scaffold
#

i could've approached it a different way. so yeah, there's no one way of doing an integral.

abstract scaffold
placid flicker
median trail
junior thicket
#

Best time to study

#

And with the teacher looking at you its even better

median trail
#

hahahaha

#

my teacher doesn't even care

past harbor
#

@gusty ermine Dime

median trail
#

and I had to find the resistance from A to B

#

to C*

eager wagon
#

Ri

keen sundial
#

Those are all resistors? That's a weird way to label them lol

#

this is the symbol that I learned

median trail
#

Yes, those are

#

it's just that my professor told us that the resistor in your image is like the old way to represent them

eager wagon
#

ahora me siento vieja

fallow dock
median trail
#

I haven't used that feature yet

fallow dock
#

it looks like a sentinel from The Matrix now

#

Discord Status hasn't registered the incident yet

keen sundial
#

oof

#

I'm old I guess lol

median trail
#

CryingPanda no

#

I'm sorry if what I said sounded insulting

keen sundial
#

lol no no no

#

There will always be things that I learned that will change

#

it's just the way it is

#

anyways... that's a pretty fun schematic you have there

median trail
#

blobheart true

keen sundial
#

finding the resistance will be fun

median trail
#

it was difficult to solve haha

calm flax
#

how old are you wolf, if you don't mind me asking?

keen sundial
#

I'll be 34 at the end of March

calm flax
#

ok

keen sundial
#

I was an Electrical Engineering major

median trail
#

The only way I could solve it was by looking at the nodes and realizing which resistors are in parallel or in series(?

#

Ohhhhhh

keen sundial
#

so that's why It caught my attention

median trail
#

that's awesome!!!

#

My mom's degree is Electronic Engineer

keen sundial
#

Electronic or Electrical?

#

I did 4 years of electronics and 2 years of electrical

median trail
#

electronic(s?)

keen sundial
#

Electronics has a focus on low voltage circuitry and things like ICs

#

Electrical is more along the lines of medium to high voltage... you know, like the wiring in your house

median trail
#

I see, interesting :)

keen sundial
#

It's been awhile though

#

I used to build stuff like crazy. That's an old hobby for me

median trail
#

is majoring in some branch of engineering worth it in the US?

keen sundial
#

Hmm.

#

Yes and no

#

it really depends

median trail
#

ow

keen sundial
#

If you have a serious interest and feel like it would be something you're interested in then yeah. I mean... you can make a good amount of money in electrical / electronic positions

#

you really have to want it though

#

school isn't cheap

#

That being said, there are other cheaper paths as well, like certifications

median trail
#

hmmmm... I see

#

I'm a bit skeptical about certifications though

#

But I can understand why they are useful

ashen mist
#

Este trozo de papel dice que soy un experto

median trail
#

Uwu

keen sundial
#

what is this UwU" I keep seeing

median trail
#

It's an emoji that's popular amongst internet users because people use it to represent a blushing face, but I use it to shitpost and make fun of those who use it non ironically

keen sundial
#

OK thanks. I needed it spoken in old internet 🙂

median trail
calm flax
#

jeje

#

podría ser del muro de mi tía

median trail
#

that was gotten from my whatsapp stories

calm flax
#

como los problemas de mates en plan "3 + 0 x 5 = ?"

#

vi algún boomer (uno de verdad) que respondió "si lo calculas como el ordenador son 3, pero si lo calculas como un ser humano son 15"

median trail
#

hahaha "algún boomer"*

#

that means I won extra points for the next exam UwU

median trail
#

@ashen mist do you want to play minecraft uwu

eager wagon
#

y ejercicio 3?

vague charm
#

@median trail yes

median trail
#

pandasad do you have an account?

eager wagon
#

👀

bronze burrow
#

Te llamas edsel di meo en la vida real?

eager wagon
#

bronze burrow
#

Jaja bueno

ashen mist
#

No puedo ahora :( @median trail

lusty widget
#

Ajaja

#

Asagi sorprendido

#

De donde viene el apellido?

eager wagon
#

Es italiano, tiene familia de Italia

#

no sé nada más

gilded magnet
#

let's solve it
@median trail 6 people.

alpine cradle
#

tenemos 3 Lices en el servidor whatthink

#

Te llamaré Liz verde #2 whatthink

eager wagon
#

Lices?

#

Jajajaja

alpine cradle
gusty ermine
#

@past harbor an cambiado mi examen puedes ayudarme con java de android peepoCry no entiendo los fragmentos ni como hacen clic

vague charm
#

ewwww

#

java es mal

lavish estuary
#

Por qué?

median trail
#

every command is too wordy

past harbor
#

Vale, @gusty ermine

#

@ashen mist Cuando puedas, podemos repasar python?

past harbor
#

Los fragmentos son trozos / partes que puedes ir pegando sobre los layouts de tus actividades. Son muy útiles ya que puedes reutilizarlos en donde quieras sin necesidad de crear cincuenta mil actividades.
Tienes que tener en cuenta que los fragments son "partes" que vas pegando sobre los layouts de actividades, para que puedas pegarlos en algún trozo de la actividad te recomiendo que uses un ScrollView y le des un "id". Yo suelo llamarlos "content_fragment". Los fragments al formar parte de la actividad, no pueden encargarse de administrar, por lo que se tendrá que comunicar con la actividad.
Por ejemplo, cuando creas un fragmento de tipo Lista como es el RecyclerView, necesitas de un Listener. Este escuchador servirá para decirle a su padre (a su actividad), oye me han tocado dicha posición, es ésta, tómala y encárgate tú de hacer lo que tengas que hacer con ella, ya sea abrir una nueva actividad, mostrar un diálogo, etc.
Para tener este escuchador, tendrás que crear una interfaz:

#
private MiFragmentItemListener miEscuchador;

public interface MiFragmentItemListener {
        // Puedes pasarle datos del Fragment a la actividad por parámetros, ya sea una posición, un texto, o lo que tú quieras.
   void miEscuchador(int posicionItem);
}

// Sirve para pegar ese escuchador al fragmento
@Override
    public void onAttach(Context context) {
        super.onAttach(context);
        if (context instanceof MiFragmentItemListener) {
            miEscuchador = (MiFragmentItemListener) context;
        } else {
            throw new RuntimeException(context.toString()
                    + " must implement MiFragmentItemListener");
        }
    }

// Desenlaza ese escuchador 
    @Override
    public void onDetach() {
        super.onDetach();
        miEscuchador = null;
    }
#

Ya cuando quieras usar ese escuchador de ese fragmento, simplemente lo debes de implementar en la actividad

#
public class MainActivity extends AppCompatActivity implements MiFragmento.MiFragmentItemListener
#

Y pones el método, y ya.

#

@gusty ermine

ashen mist
#

@past harbor sí, dame unos minutos para arrancar mi computadora

past harbor
#

Voy buscando lo que tengo que estudiar, y lo que no entienda te digo

ashen mist
#

Ok

past harbor
#

Entonces cada vez que alguien toque una posición de ese Recycler, el fragmento dirá algo como "Uy, alguien me ha tocado un dato. Toma, Main, aquí lo tienes, encárgate tú de él", @gusty ermine

#

Le pasará la posición del dato tocado y ya en la main haces lo que te dé la gana

#

Todo lo que sea trabajar con datos, siempre a la actividad, jamás al fragmento

#

Él sólo se tiene que quedar escuchando y pasar datos cuando alguien interactúe con él

median trail
#

do you think I can learn how to use JFrame to design interfaces in Java in just one week?

past harbor
#

@ashen mist Ya estoy

#

En mi teoría dice esto, quería asegurarme que es cierto

#

dice que py no puede realizar asignaciones en línea

#
[a=b=c=3], [if((a = nextRecord()) = !null)]
#

es cierto?

ashen mist
#

= !null no tiene sentido, debería decir != None pero igual, creo que hay que decir a = nextRecord(); if a != None: o más sencillamente, a = nextRecord(); if a:

past harbor
#

Gracias

ashen mist
#

no creo que puedas realizar asignaciones en la condición de if

#

en python, digo

past harbor
#

"Py no declara variables para usarlas pero sí que hay que inicializar"

#

o sea no puedes hacer esto?

ashen mist
#

para usaras?

past harbor
#

em.. en java es "int numero;"

#

ups

ashen mist
#

ah

past harbor
#

en py no puedes hacer eso?

#

siempre es

#

num = 5

#

?

ashen mist
#

sí, y python sabe que num tiene que ser un int, ya que le diste el valor de 5

past harbor
#

"Py te permite crear clases y objetos pero no limita el acceso a sus propiedades o métodos"

#

qué sentido tiene que sea un poo pero te deje acceder a propiedades privadas?

ashen mist
#

si intentás decir int x; o int x = 5, te grita

past harbor
#

Espero que no me grite en el examen y me acuerde 😄

ashen mist
#

ehhh eso es cosa de python creo

#

a ver si puedo encontrar la explicación

past harbor
#

no te preocupes por la explicación, sólo quería saber si realmente

#

se trabaja así o..?

#

leí que usan una cosa llamada

#

property

#

y después trabajan con las propiedades "privadas"

#

sin realmente acceder a ellas

ashen mist
#

se puede acceder a ellas, pero hay maneras de decir "hey, no debés usar esto como una función o propiedad pública"

#

Private methods are those methods that should neither be accessed outside the class nor by any base class. In Python, there is no existence of Private methods that cannot be accessed except inside a class. However, to define a private method prefix the member name with double underscore “__”.

#

o sea, __funcionprivada

fallow dock
#

qué sentido tiene que sea un poo pero te deje acceder a propiedades privadas?
Raymond Hettinger definía a Python como un lenguaje "for consenting adults", ni siquiera el doble underscore te asegura algo privado

ashen mist
#

ah sí, eso fue la explicación graciosa "somos todos adultos acá" o algo así

#

sí, no te lo asegura, sino que es como una costumbre(?

past harbor
#

Vale, gracias

#

Los "tipos de datos" dicen que hay enteros, enteros largos, decimales o coma flotante y que depende de el intérprete y la plataforma la capacidad que puedes almacenar

#

es cierto o?

#

ni idea?

fallow dock
#

eso es cierto en Python 2

ashen mist
#

no combinaron los enteros y los enteros largos hace mucho tiempo?

hybrid hull
#

mmmm python

past harbor
#

ah

#

vale, gracias

fallow dock
#

en Py3 los enteros son unbound

#

pueden ser infinitos hasta que se te acabe la memoria

past harbor
#

¿Los operadores numéricos son estos? No estoy seguro de la división entera

#
+ SUMA
- RESTA
* MULTIPLICACIÓN
/ DIVISIÓN
// DIVISIÓN ENTERA 
** EXPONENCIACIÓN
% MÓDULO
#

cambia según la versión?

fallow dock
#

acordate de que en realidad es floor division más que integer division

ashen mist
#

creo que son iguales en Py3

#

// hace floor division, sí

#

5 // 2 te da 2

fallow dock
#

2 // 1.5 te devuelve un float

ashen mist
#

sí, con / y //, si uno de los operandos es un float, la respuesta es un float también

past harbor
#

Entendido

ashen mist
#

5 // 2 te da 2, pero 5 // 2.0 te da 2.0

#

no te da 2.5, eso puede ser confuso

#

pero 5 / 2.0 sí te da 2.5

past harbor
#
& AND
| OR
/\ XOR
NOT ~ 
<< DESPLAZAMIENTO IZQUIERDA
>> DESPLAZAMIENTO DERECHA

No entiendo los 3 últimos

#

cómo los utilizas?

#

o sea, ni sé de qué van

ashen mist
#

mientras que 5 / 2 te da 2

#

esos son los operadores bitwise

#

o sea, el número 5 en binary se ve como 00000101 (4 + 1). <<, o el desplazamiento izquierda hace que esos bits se deslicen a la izquierda

#

así que si todos los bits de 5 van una posición a la izquierda, tenés 00001010 (hay que añadir otro 0 a la derecha), lo que vale 10 (8 + 2)

#

así que 5<<1 dice "mueve los bits de 5 una posición a la izquierda"

#

o, para decirlo en una manera más general, a<<b significa "mueve los bits de a a la izquierda por b posiciones"

#

lo que es interesante es que ya que se trata del binario, el desplazamiento izquierda de n posiciones multiplica el número por 2^n

#

y el desplazamiento derecha de n posiciones divide el número por 2^n

past harbor
#

explicas mejor que mi profe

#

esos bits se deslicen *

ashen mist
#

si querés más ejemplos (5 es 0000 0101 en binario, y 8 es 0000 1000 en binario)

0000 0101 # un 5 normal
0000 1010 # 5 << 1 = 10
0001 0100 # 5 << 2 = 20
0000 0010 # 5 >> 1 = 2 porque 5 / 2 = 2 (hay que redondearlo, y notá cómo el 1 de la derecha despareció)
0000 0001 # 5 >> 2 = 1 porque 5 / 4 = 1

0000 1000 # un 8 normal
0010 0000 # 8 << 2 = 32, o sea 8 * 2^2
0000 0010 # 8 >> 2 = 2, o sea 8 / 2^2 = 8/4 = 2
past harbor
#

Muchísimas gracias

#

Dicen que en Py los String se pueden representar como 'String' o "String"

#

cuál es la diferencia?

#

o es lo mismo

ashen mist
#

oh, no te expliqué lo de ~

past harbor
#

ah, es cierto

#

tómate tu tiempo

ashen mist
#

bueno, con 'String', podés incluir " en tu string sin usar secuencias de escape(?

#

por ejemplo, si querés usar " en un String de forma "String", tenés que decir /", no?

#

mystring = "digo \"hola\""

past harbor
#

ashen mist
#

si usás la forma de 'String', podés decir mystring = 'digo "hola"'

past harbor
#

Perfecto

#

para qué es \n? sé que \r es retorno de carro

ashen mist
#

y creo que funciona al revés también, o sea si tu string va en forma de "String", podés incluir ' sin secuencias de escape

#

y si tu string va en forma de 'String', hay que usar la secuencia de escape \' para incluir un '

#

\n es newline. técnicamente es otro carácter, y no sé cómo explicar la diferencia

#

pero en un sistema de windows, se usa \r\n para ir a una nueva línea, mientras que en unix se usa sólamente \n

median trail
#

vera is the real mvp

past harbor
#

Ah, okay

ashen mist
#

okay, regresando al tema de ~ en cuanto a los operadores bitwise

#

~ cambia los valores bit de tu número. o sea, los 0 se convierten en 1, y los 1 se convierten en 0

#

en inglés se llama "bitwise not"

#

voy a copiar el ejemplo de wikipedia porque me da flojera teclear todo jaja

NOT 0111  (decimal 7)
  = 1000  (decimal 8)
#

el wiki de python nos da esta explicación Returns the complement of x - the number you get by switching each 1 for a 0 and each 0 for a 1. This is the same as -x - 1.

#

por eso, si decís ~5 en python, te da -6

#

y si usás ~ otra vez, tenés tu número original (porque deshacés los cambios anteriores)

past harbor
#

Gracias

#

En cuanto a las cadenas, no entiendo esto

#

'''cadena'''

#

ejecuté esto pero rompe

#

dice en la teoría que te permite varias líneas

#

quizás sea idiota y no sepa cómo va

ashen mist
#

cómo lo usaste?

past harbor
#

print('''cadena''')

ashen mist
#

dije str = '''cadena''' y funcionó

#

eso funciona igual jaja

past harbor
#

no sé cómo va esto lmao

#

puse

#

print('''hola, soy juan. test''')

#

y sólo imprime hola

ashen mist
past harbor
#

????

#

dónde está "cadena"

#

😄

ashen mist
#

tf

past harbor
#

cambiaré el nombre del fichero

#

debe empezar por mayuscula

#

pero no creo q sea eso

ashen mist
past harbor
#

umm

#

voy a probar

ashen mist
#

tu ejemplo desde un fichero funciona para mí también

#

estás usando la versión correcta de tu fichero?

#

o sea, guardaste tus cambios?

past harbor
#

debo limpiar todo el rato la consola

ashen mist
#

jaja

past harbor
#

de primeras nunca va, ns por qué 😄

#

Dicen que * es para crear una copia de lo que sea

#

de una variable o cómo?

ashen mist
#

wat

past harbor
#

esto

#

no sé cómo va

ashen mist
#

ohhhh

#

para repetir

past harbor
#

ashen mist
#

also, eso es una tupla

past harbor
#

o hay que acceder a una componente?

#

ah lmao

#

en la teoría pone

#

"array de cadenas"

#

xDD

#

gracias por decirme

fallow dock
#

tu editor te odia

past harbor
#

tuplas = ()

#

array = [] ?

ashen mist
#

LOL acabo de darme cuenta de que no imprimió nada

past harbor
#

o {}?

#

#

xDD

ashen mist
#

[] es una lista, la versión de array en python

median trail
#

[] list I think

#

Lists work the same in both java and python

ashen mist
#

{} puede ser un conjunto o un diccionario

past harbor
median trail
#

dictionaries aww I love them

past harbor
#

Ya funciona

#

Entonces esto es una tupla

#

lo cambiaré

fallow dock
#

btw, lo que hace a una tupla no son los paréntesis, sino las comas

ashen mist
fallow dock
#

(sin símbolos que encierren, las comas sólo tienen el efecto de alterar el orden de evaluación, y dan claridad)

#

so

ashen mist
#

oh wait, no repetí la lista lmao

fallow dock
#
>>> a = 1, 2, 3
>>> type(a)
<type 'tuple'>```
ashen mist
#

eso no es copiar, porque te da algo que es diferente de tu cosa original

fallow dock
#

y también se vuelven necesarias cuando lo que querés es pasar una tupla, pero podría ser interpretado como diferentes argumentos, ej, algo(1, 2, 3) en vez de algo((1, 2, 3))

ashen mist
fallow dock
#

creo que la mayoría de las terminales te dejan copiar con ctrl shift c

ashen mist
#

algo así

#

yeah idk por qué estoy capturando la pantalla jajajaja

#

gracias por recordármelo

past harbor
#

em

#

tengo que probar unas funciones de cadena

ashen mist
#

ok

#

esto es divertido

#

nunca tomé una clase oficial de python así que es genial repasar estas cosas

past harbor
#

capitalize

#

funciona así?

#

porque he visto que sólo capitaliza la primera letra

#

no toda la cadena

fallow dock
#

creo que podrías estar buscando .upper()

#

o .title(), hacen cosas diferentes

#

capitalize para mayúscula inicial, luego minúsculas,
upper para todas mayúsculas,
title para mayúscula al comienzo de cada palabra

past harbor
#

tengo que aprender capitalize, center, rjust, ljust, count, find, upper, strip, split, splitlines, len, join, format y lower

fallow dock
#

por qué te hacen memorizar eso lol :C

past harbor
#

mi profesor .. 😄

#

sólo puedo utilizar esas en el examen

ashen mist
#

no sabía que capitalize existía jajaja

#

nunca tuve que hacer algo así

fallow dock
#

o sea, de hecho

#
>>> dir(str)
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']```
ashen mist
#

sólo usé upper()

#
>>> micadena = "hola, mundo"
>>> micadena.capitalize()
'Hola, mundo'
>>> micadena.upper()
'HOLA, MUNDO'
>>> micadena.title()
'Hola, Mundo'
>>> 
past harbor
#

Lo que hace es coger la longitud de la cadena

#

y repartir los espacios entre los dos lados?

#

o sea, la cadena es 6 y puse 8

#

pone uno delante y otro detrás

ashen mist
#

parece que pone la cadena en el medio de un espacio de longitud 8 (o lo que pongas como el argumento)

#

ya que tu cadena mide 6 y querés ponerla en el centro de un espacio que mide 8, puede caber un espacio a cada lado

#

pero no hay que limitarte con solamente los carácteres de espacios como filler

#

podés usar otro carácter

#

a ver, esto es interesante cuando usás upper, capitalize, y title en una cadena con números

#
>>> cadena2 = "2hola, 2mundo"
>>> cadena2.title()
'2Hola, 2Mundo'
>>> cadena2.capitalize()
'2hola, 2mundo'
>>> cadena2.upper()
'2HOLA, 2MUNDO'
#

y no te olvides de lower

#
>>> "HOLA".lower()
'hola'
#
>>> "fruta".center(9, "-")
'--fruta--'
#
>>> "fruta".center(10, "-") # no cabe perfectamente en el medio
'--fruta---'
past harbor
#

gracias

ashen mist
#

de nada

past harbor
#

elimina sólo espacios por delante

#

y detrás?

ashen mist
#

no sólo los espacios, creo

past harbor
#

es como el trim?

ashen mist
#

creo que sí

#

espacios, \t, \n, \r, esas cosas también

#

no sé si hay más que elimina

#
>>> cadena = '\n\r\t cosa\n \r \r\t'
>>> cadena.strip()
'cosa'
past harbor
#

estoy intentando usar split y splitlines pero no tengo ni idea de cómo van

ashen mist
#

si querés eliminar whitespace en sólo un lado, podés usar rstrip() y lstrip()

past harbor
#

estoy mirando mis apuntes pero añadí que ni el profesor

ashen mist
#
>>> cadena = '    cosa    '
>>> cadena.rstrip()
'    cosa'
>>> cadena.lstrip()
'cosa    '
past harbor
#

sabía cómo usarlos y que no lo corrigió

#

tienes alguna idea de cómo va?

ashen mist
#

ok, lo que split hace es desintegrar tu cadena depende del separador

#

y te da una lista de las partes de la cadena entre del separador

past harbor
#

A ver

fallow dock
#

necesitás aprender lo que hacen los métodos de str sin argumentos, wolf? o tenés que aprender qué argumentos pueden recibir?

ashen mist
#

por ejemplo

>>> "1 2 3   5".split()
['1', '2', '3', '5']

por defecto, el separador es whitespace (espacios, \t, \n, \r, esas cosas)

past harbor
#

tengo esto

#

split(caracter) / splitlines() / len(cadena) / join(cadena) / format(valores)

ashen mist
#
>>> "a#b#c#d".split('#')
['a', 'b', 'c', 'd']

puedo usar otro carácter para desintegrar la cadena

past harbor
#

con argumentos

ashen mist
#

exacto

past harbor
#

Funciona como el split de java

#

a ver

ashen mist
#

y si tu separador no existe en tu cadena, conseguís una lista con un solo elemento - tu cadena original

fallow dock
#

si querés regex, import re (?)

ashen mist
#
>>> "abc".split('d')
['abc']
#

hay otro argumento de split, al parecer

#

el segundo argumento determina cuántas separaciones va a hacer

past harbor
ashen mist
#

por defecto, es -1, o sea todas las veces

#

sí, eso

past harbor
#

splitlines

icy pollen
#

estoy aprendiendo muchas palabras en español sobre programación hoy

past harbor
#

a ver cómo va esto

#

muchas palabras en español *

ashen mist
#

also, el argumento de split no tiene que ser un solo carácter

#
>>> "abcd".split('bc')
['a', 'd']
past harbor
#

fallow dock
#

@icy pollen no tenemos palabra para yield, pls help us

ashen mist
#

splitlines toma tu cadena y te da una lista de cada línea en tu cadena

past harbor
#

umm

#

así?

ashen mist
#
>>> cadena = "linea1\nlinea2\nlinea3"
>>> cadena.splitlines()
['linea1', 'linea2', 'linea3']
past harbor
#

bueno, también lo tuyo

ashen mist
#

sí, podés hacerlo así también