#🍁・general-2
1 messages · Page 131 of 1
Lol
Por lo visto los programas para elecciones y tal todavía se escriben en COBOL
C se usa más
Conocía a una venezolana que hacía eso en madrid
Todo el mundo está loco por el python
Powershell es pretty cool también
Hasta que venga el basurero
Python t lo hace todo y no me gusta nada
Java tenía que haber sido mejor pero creo que oracle/sun impedían el progreso del lenguaje bastante
Cuando tienes los exámenes @past harbor ?
C no se parece en nada a Java
C# se parece bastante pero tiene un diseño más moderno
such as, una manera más decente de tener setters y getters, delegates, algunas pocas cosas de la sintaxis para tener un mínimo de null safety
y ciertamente una mejor forma de usar lambdas
I joined my uni's anime/gaming club. A nerd fest if I've ever seen one
They used the word otaku
Pray for me
No rezo
fellow otakus :3c
there's some warm innocence in calling themselves otakus in a non derogatory manner
although things could go horribly wrong
"opening event 14th of February".. no sé que pensar
isn't that valentines day lmao
anime screenings are always awkward
I wasn't doing anything that day so why not lol. I just hope it's not a cringefest
the anime part soundss pretty cringe fest, but the gaming side might be more chill
Hopefully it's a shounen 🤞🏿
Yeah, problem is I don't play any of those games lol. Not much of an online gamer. Hopefully they have a sports game or anything that's easy to play
yeah, that was the problem with me, i've always had a shitty laptop
Oh, man. That's true. Everybody is gonna be pulling up with gaming laptops haha Meh 
the only games i can really play with my friends are games like minecraft and 100% orange juice
the rest of the time, i'd be reading/playing vns
@calm flax en 3
el 27 de febrero empiezo los exámenes
tuple([ele * 2 for ele in tVal2 if ele % 2 != 0]))``` @ashen mist
Ah
multiplica cada valor de la tupla x 2 si da resto 0?
tVal2 contiene ints, y esa línea dice:
Si el número en tVal2 no es par, multiplicá su valor por 2, y añadilo a una lista temporal. Convertí esa lista en una tupla
has usado la REPL, Wolf?
Es como
templist = []
for ele un tVal2:
if ele % 2 != 0:
templist.append(ele*2)
mytuple = tuple(templist)
Por ejemplo, si tVal2 es [1,2,34], conseguís una tupla de (2,6)
(1*2, 3*2)
REPL significa read eval print loop, me refiero a la shell interactiva de Python en este caso
unos cuantos lenguajes tienen shells interactivas
ni idea de eso
Con Python...?
What
Vistual Studio o VSCode?
Python en visual studio?
en visual studio
sep
Rip
hmmm si tenés Python en el PATH, deberías poder ir a PowerShell o CMD
en esta basura nos hace codificar
y escribir python
Qué asco
y debería salirte algo como ```python
[manuel@v330 ~]$ python
Python 3.8.1 (default, Jan 22 2020, 06:38:00)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
y básicamente la idea de una shell interactiva es que podés tirar expresiones del programa, y te las evalúa al vuelo
mira
Genial, tenés 3.8.1
Intenté instalarlo el otro día pero me salió un error al intentar make test
ps no uso Windows
Yo tampoco
Me da flojera averiguar cuál es la causa del error
Estoy contento con mi 3.6
O 3.5, lo que sea
No me acuerdo
@past harbor anyway, la REPL es súper útil cuando querés probar cosas de un lenguaje muy específicas
funciona igual que un programa común, podés asignar variables y todo
y no tenés que abrir un editor entero para chequear cosas rápidamente
# No existe switch en Python
if iV1 == 1:
print("Uno")
elif iV2 == 0:
print("Cero")
else:
print("Distinto")
esto nos hace copiar en clase
Y podés copy paste código
ciertamente no existe switch en Python, pero podrías usar un diccionario de quererlo
igual la mejor opción es when a la Kotlin
Por alguna razón creía que sí existía. Supongo que mi conocimiento de mis lenguajes se están mezclando jaja
y el do while tampoco existe
Se puede modificar tu while loop para imitarlo
do-while nunca me ha parecido necesario
A mí tampoco
while loop = bucle while
Casi nunca lo uso
tengo pesadillas con el repeat-until
el switch en muchos casos es solo sugar syntax
hay un par de trucos con hash tables con números
el do while me da un poco igual
pero que no existiera switch en python me hizo decirle un "no" rotundo
con lo util que es .. me haces trabajar con diccionarios
ganas de complicarse la vida
mhm, son formas distintas de pensar
por ejemplo yo en mis programas nunca uso if o else
If else es básicamente igual
sí, es lo mismo
hace lo mismo sí
ademas de q en un switch puedes hacer las operaciones al salir de cualquier lugar si no me equivoco
prefiero tener un switch que 50 lineas de if
repitiendo condiciones una y otra vez
por cierto
vera
q coño significa esto
si en Python tenés 50 líneas de ifs, estás haciendo algo horriblemente mal
but anyway
absolutamente mal
y en cualquier lenguaje la verdad
>>> tVal2 = (1, 2, 3, 4, 5)
>>> tuple([ele * 2 for ele in tVal2 if ele % 2 != 0])
(2, 6, 10)
esto es algo que podés hacer en una REPL, volviendo al tema
join(cadena)
porque nos dijo qe solo habia q juntar dos cadenas
y q las unia
pero no hace eso
mezcla las letras entre si
dijo q si ponias
notá que con la REPL también podés leer documentación de todas las funciones y métodos
(aunque es medio paja)
🆙 | manusaurio leveled up!
hola.join(mundo) te imprimia "holamundo"
pero hace algo como "mholdom" no se cosas raras
no funciona así, nope
ah, pues lo dictó mal
.join lo que hace es unirte strings de algún iterable tomando como "separador" al string del que lo estás llamando
por ej.
>>> 'xxx'.join(('hola', 'buen hombre', 'estos son tres elementos'))
'holaxxxbuen hombrexxxestos son tres elementos'```
en este caso tengo 3 elementos en mi iterable (una tupla)
el .join lo que va a hacer es unirlos y poner 'xxx' entre ellos
ahora bien, los string en sí mismos son iterables
lo que te permite hacer cosas como esta```python
for char in 'hello':
... print(char)
...
h
e
l
l
o```
eso significa que en un string, cada elemento es un carácter individual
así que
si hacés 'xxx'.join('hola buen hombre') o algo similar, el iterable que estarías pasando es un string, y cada elemento es una letra
así que el .join va a agarrar cada uno de esos elementos y poner 'xxx' entre ellos
>>> 'xxx'.join('hola')
'hxxxoxxxlxxxa'```
notá que Python está lleno de iterables
a .join no le importa qué le pases, si una tupla con strings o un string con caracteres
si son iterables, va a pedir sus elementos uno por uno e intentar concaternalos
si no se entendió algo, pls preguntá
>>> '! '.join('123')
'1! 2! 3'
>>> '! '.join(['123', '456', '789'])
'123! 456! 789'```he aquí otro ejemplo
en Ruby es al revés e hice exactamente lo mismo que Wolf
mi hola mundo fue un mholauholanholadholao
>>> arrayOf("yes", "no", "maybe").joinToString("x")
res13: kotlin.String = yesxnoxmaybe```same in Kotlin
y en Java es igual que en Python:java System.out.println(String.join("X", "1", "2", "3")); // 1X2X3
pero ahí son 3 ordenes distintos po
Python
separador.join(strings)
Kotlin
strings.join(separador)
Java
String.join(separador, strings)
no es relevante para lo que mencioné, sólo comenté el orden (de separador y de iterable/string(s))
si quisieras podrías usar str.join en Python y hacer explícito al primer argumento
>>> str.join("x", "123")
'1x2x3'```
digo que Ruby y Kotlin comparten un orden y Java y Python otro
Hackers
please someone teach me about how to make tasty sandwiches, mine are boring, they only have ham and cheese
I want to use other ingredients 
Gracias manu
I like to include vegetables and boiled eggs in mine
Explicas mejor q mi profesor
np
si te surgen dudas, decime nomás
btw, anteriormente te había dicho de usar f-strings y escribir print como print(...)
ninguna de las dos cosas se aplica en Python 2
xd
I have this
en Python 2 print es un statement (igual que if, import, etc. así que en general pondrías print "argumento uno", "argumento dos")
poner paréntesis sería lo mismo que poner paréntesis en (1 + 1) en matemáticas, tendría efecto para el orden de evaluación nada más (y en cuanto a los f-strings: no existen en Python 2)
aren't there vegetables in your fridge?
hmmm I have some lettuce, tomatoes and onion
sounds good to me
I'm a newbie at cooking 
my only limit is the thickness you could end up with; thick sandwiches are the worst
huh, I guess this counts as cooking as well
I'm not but I don't know what you wanna do
it's better if you just ask your question
asking who's good at X applies some pressure on others, it's a way of filtering, and they might not want to waste your time
"math" is a broad topic, and maybe even if someone isn't good at it, they know about this specific issue you're having
^
^
cuál es la duda
How to solve it
I believe solve is the word you are looking for.
¿todo?
of course
o sea, la pregunta es basicamente "háganme la tarea por favor"
No because I'm not asking it
I just want to know the steps
I'm looking for it in aprende org
but i don't find it
No te enseñaron el cómo?
¿probaste poniendo "forma cartesiana a polar" en Google?
el primer video, del primer resultado es literalmente el ejercicio a) y c)
Ya sabemos de dónde sacaron esas preguntas
claramente jaja
"le pongo una pregunta adicional para que no se den cuenta jajajaj"
Hay otros recursos po
Literal wzrdd acaba de decirte dónde podés ver la manera
Para solucionarlas
Debería cocinar
Mejor dicho, terminar de cocinar
Pasar de forma cartesiana a polar. Si quieres practicar lo que has aprendido en este vídeo puedes descargarte ejercicios con sus soluciones en http://www.unprofesor.com/matematicas/pasar-de-forma-cartesiana-a-polar-1073.html - Además podrás hacer preguntas al profesor que ...
Dios mío, son 10 minutos y te da hasta las soluciones
if that was the case i wouldn't be asking here
para que te ayuden primero hay que saber en qué te pueden ayudar
hacerte tu tarea no es ayudar
They are a lot of exercises they wouldn't help me to do everything
Don't yothink i don't think of youtube
veo que no revisaste ni el primer resultado
una buena pregunta tiene la siguiente forma:
"Estoy tratando de hacer esto, intenté esto, esto es lo que no entiendo"
no es una foto de tu tarea
Lo gracioso es que es para mañana
does someone know how to solve this ?
I didn't say to solve it
I just want the steps
we could do it with others numbers
simple
How many times do you want me to say this xD
if i am asking someone if know math
it isn't for nothing
Por qué no querés ver ese video?
if you don't know you don't need to answer xD
Además, esos garabatos son difíciles de leer lol
Obviamente primero pregunte si alguien sabia matematica luego si alguien sabia resolver esto en ningun momento dije que me lo resolvieran,
para pasar una coordenada cartesiana de la forma (x, y) a la forma (r, theta) es solo aplicar
ademas podian enseñarme con otros numeros no con esos exactos
nunca dije qe usaran eso adems dije los pasos
=tex r = \sqrt(x^2 + y^2)
*Que te pasa @ashen mist * ?
=tex \theta = \atan(\frac{y}{x})
no hay más pasos que esos, es solo aplicar
Qué me pasa? Nada
porqe criticas esas letras acaso te crees superior?
Sólo te pregunté por qué no intentás echarle un vistazo al video que wzrdd te mandó?
Era una broma nomás
I already answered you
Preguntaste por los pasos, alguien te mandó un video con los pasos y una explicación
incluso, con las respuestas a 2 ejercicios
Mejor decir "gracias, echaré un vistazo, y volveré si tengo más preguntas después"
En vez de discutir sobre algo irrelevante
Personalmente, prefiero investigar y buscar explicaciones
*then do it *
Es más fácil si encuentro un video que puedo ver solo
Bueno, ya que intentabas buscar ayuda en aprende.org o lo que fuera, supongo que wzrdd suponía que un video así te convendría
No entiendo tu reacción
have you ever used aprendeorg ?
No porque no hablo español
then why don't you understand
Preguntaste por los pasos como ayuda, y alguien te mandó un video que se ve muy útil y que te explica los pasos de una parte de tu tarea
Pero me loenvio de una madera de toma y vete
Y tengo la impresión de que lo ignorste completamente
porque me lo enviode una manera de toma y vete
Ok es la primera vez que decís tal queja
porque no es la idea hacerte una clase completa de qué es una coordenada polar, qué es una coordenada cartesiana, cómo pasarlas de una a otra
cuando existen clases y explicaciones de 10min
en cualquier server de matemática te van a responder lo mismo y en algunos te van hasta a banear
read this plz
pon un poco de tu parte
No tengo que culpa de que me mal interpretaras
que no es nuestra culpa que tu tarea sea para mañana y la estés haciendo hoy día
Well that's really normal in young people
youknow
i think the 90% always leave homework for late
si solo quieres criticar y no ayudar no se porqe opinas porqe alguien mas inteligente ayudaria de otro modo que no sea llenando la tarea
te di la respuesta literal 2 veces
(x, y) -> (r, theta)
r = \sqrt(x^2 + y^2)
theta = arcotan(x/y)
¿de dónde sale eso? si quieres te transcribo el video de 10 min donde lo explican en 3min, y en los siguientes 5 resuelven exactamente el mismo problema que tienes
no podemos adivinar si es que sabes qué es una coordenada cartesiana y una polar, no podemos adivinar lo que sabes o no
por eso te mandamos algo que parte desde el principio
si te enojas por eso y te niegas a estudiar 10min, el problema lamentablemente no es de nosotros
Quiero papas fritas
sabias qe este canal es para ayudar no para criticar las faltas de otras personas
crees qe alguien qe pide ayuda con como usar get en english question lo mandarian a youtube y no les diria qe no es su culpa
como te vuelvo a decir, ayudar no es hacerte tu tarea
como dije nunca dije qe la llenaran
si alguien dice "quiero aprender a hablar inglés" también le darían una respuesta genérica a una pregunta genérica
"parte con Duolingo y si tienes dudas te ayudamos"
preguntas puntuales reciben respuestas puntuales, preguntas genéricas o ni siquiera preguntas reciben respuestas genéricas
no
efectivamente el primer video que te recomienda Youtube es una amable señorita explicando y resolviendo 2 de tus ejercicios
ok
Pepe ha hablado en español???
Anyone know how to do algebra? I am on the last problem of my homework and I cannot find the zeros and I have tried everything and just don’t know what I did wrong
The original problem is x^4+6x^3-3x^2+24x-28 and it wants me to find the zeros
x= 2i, -2i, 1, -7
Gracias
@frigid dock
Edsel is math god 
billy la bufanda
i dont get how synthetic division works
Oh huh oh yeah polynomial division
just did it via trial and error
it would've been faster if i just used a calculator.
so trial and error is useful. (so it actually doesn't take that long if you use a calculator)
dunno, someone said they needed help for algebra. they alreaady got help, but i just wanted to provide my way of doing it as well lol
I learnt the topic of polynomial division and stuff like that in high school.
long long time ago
sucked at it as well
forgot how to find double roots, triple roots....
had to do with some theorems and differentiation....
stuff like remainder theorem i forgot about
Wooo
Something productive to do on the toilet haha
@shrewd pendant we learn it here in algebra 2, which is what people take when they're 16 or 17
@abstract scaffold I don't either and I remember my algebra teacher telling me that the guy who discovered it just did it that way and it worked, as if he tried that method and it was okay magically
@ruby vale loco vato
@scenic chasm I practice writing by writing to friends or in here, and I practice speaking by speaking aloud. Nothing too revolutionary.
I study general linguistics, and part of that study is phonetics, so I know a bunch of technical terms, exactly where sounds are made, etc. So to practice new sounds, I just find it on Wikipedia and repeat it, over and over. Usually I can learn a new sound in a day, though some harder ones, like the French guttural R, can take a few weeks

I don't see the point tbh
I feel that, by day 500, Duolingo is obsolete
estoy aquí
I deliberately lose my streak every 7 days
Cus if i get like 500 days and then lose it, I'll probably suicide
I just don't use Duolingo anymore. I know almost everything on there, bar a few random vocab terms I haven't picked up
las vocales son muy difíciles para mí 
I tried chinese on duolingo. That shits crazy.
no puedo pronunciar ö en húngaro, por ejemplo

Wait
Vowels are super easy for me most of the time, actually.
I remember when I was studying French before basically kicking it out, I pronounced the vowel in cœur first try, and my friend who took weeks to get it down just suicided
Rai tiene el mensaje
@gusty ermine yeah man, i know people lile that. My mate just suicided cus he couldn't pass his english test
Son grupos de personas que cantan, ensayan muchos meses para poder ganar. Te hacen bailar todo el rato
Y no te preocupes por las vocales, con la práctica te saldrán* 
That's a mondo wowie moment right there
And some girl from another class killed herself too i think but that was some personal stuff
Like the 4th person this semester
alguien sabe como conectar auriculares bluetooth para que pueda escuchar en los canales de discord?
puedo oir musica y los sonidos en general, pero en discord no funciona
I'm talking to Loxi about parties and you are talking about someone killed herself Hahah
I tried myself a few years ago via overdose but they saved me :/
XD
Oh my bad, dont wanna mess up your vibe
Ight buenas noches
I send a video
no leo otros mensajes 

It's a bit difficult to hear some words because they are singing
And
This murga, there are like... 100 people singing
Aguante duki
Hahaha
@lusty widget busqué esto
When connected to discord, you can't connect bluetooth earphones without restarting.
@desert crystal is this true?
llueve = rain?
chi
grx
No sé
1 am
Me: posting 12558 tweets. Googling blue screen of death. Thinking ab coronavirus.
@median trail no sé de esa casa
pero estoy feliz de que esa casa no esté al lado mío
reproduce "singing in the rain"?
https://www.youtube.com/watch?v=R3MSOsnPAn8 no tengo auriculares ni parlantes pero se supone que acá se puede escuchar
según los comentarios
What is a parlante
no reconzco la melodía
Oh
Yes Ik that
Then correct your answer
The gametes are the possible genotypes of the reproductive cell
So like TP, Tp, tP, and tp
Ok
You already have the gametes listed in your punnet square
How did you do the "genotype" line?

Did you just make something up that worked?
Are you allowed to make #5 TTPP?
I mean I guess what you have is correct
But I wondered if you got to pick or if it has to be TtPp
They were heterozygous
Oh yeah good point
Now one more thing
The phenotypic ratio
How do I get that
Because right now I can do the rest ez
Ooh
Anyone know anything about markov models?
is this comic sans?
*
Ehhh hace mucho tiempo que hice algo con markov chains
Necesito a alguien que me pueda ayudar con Python más tarde
Got a morale boost
First screenshot highlights all of the words I didn't know like 4 months ago when I tried reading the book. Gave up after like 3 pages.
Second one is what I just went through and reread
Feels epic
: - \
Y felicidades
El título es un spoiler :o
@ashen mist no entiendo nada
Hoy nos enseñó funciones
Casi me pego un disparo en clase
Soy scion
Qué te confunde?
@past harbor un ejemplo en particular?
voy
Ok
debo buscar el pincho
pincho moruno
Qué jaja
pincho=usb
Ah
entonces
así se define una función?
def miFuncion(parametro):
if parametro > 2:
return "Mayor que dos"
else:
return "Menor o igual que dos"
print(miFuncion(2))
print(miFuncion(3))```
Pones "def", el nombre y después dentro los parámetros?
No tenés que especificar la clase de los parámetros ni del valor que devuelve la función
Creo que sí lo podés si querés, pero en Python 2.7 no sé
def funcionParametrosOptativos(par1, par2="Hola", par3=(True,2)):
print("Parámetros: ", par1, par2, par3)
¿Para qué les da valor a los parámetros dentro de la función?
Y qué es eso de "true,2"
No pillo cómo va esto de meterlos ahí
Es como un valor por defecto
O sea, decís que los parámetros par2 y par2 son opcionales
Si no los incluís explícitamente, entonces la función automáticamente usará "Hola" o (True,2)
Me estoy perdiendo
Has hecho una función con 3 parámetros. ¿El primer parámetro no tiene tipo? El segundo es un string, y el último qué es?
un boolean?
Una tupla
lol
El segundo no tiene que ser un String siempre
vale, y el primer valor qué devuelve si no tiene nada dentro?
y qué sentido tiene declarar 3 parámetros con diferente tipo si podrías usar 1 e ir cambiando dentro a tu antojo?
¿El primer parámetro no tiene tipo?
Python tiene tipado dinámico, específicamente "duck typing"
que significa que no le importa qué tipo sea
Sólo hay que asegurarte de que lo que hacés con el valor dentro de la función sigue las reglas del tipo(?)
>>> def my_func(a, b):
... return a + b
...
>>> my_func(5, 5)
10
>>> my_func('5', '5')
'55'```
Así es
pero
lo que no entiendo muy bien
es porque cuando llamas a la función le puedes pasar los parámetros que te da la gana, y no los 3 que has definido en la función
acaso no rompe?
en los ejemplos que nos dio, pasa 2 y no 3
eso es un tema de kwargs
Keyword argument
Suena a concepto de Python
de hecho, tomando como ejemplo a la función anterior
no lo he oído nunca
Es re común en Python
no he tocado ningún lenguaje que tenga eso
tomemos primero como ejemplo la función my_func de antes
vos con ```python
def my_func(a, b):
... return a + b
...```
podés hacer lo siguiente
>>> my_func(b='Hola', a='Chau ')
'Chau Hola'```
(estos no son valores por defectos, pero me parece necesario de entender)
al momento de llamar, podés especificar a qué parámetro le corresponde cada argumento
como ves, puse a b primero
Manusaurio el maestro de las explicaciones
ahora, la cuestión con los argumentos por defecto es la siguiente
hay dos tipos generales de argumentos, los posicionales y por keyword
si ves la signature de una función ya definida, como def func(a, b, c) por ejemplo
no hay valores por defecto para ninguna de ellas, así que si no especificás al momento de llamarla, se espera que los argumentos que pases sean posicionales
Se puede hacer en c# también no?
el primero con el primero, el segundo, con el segundo, etc., como harías regularmente
la parte importante tricky (no tanto) son las reglas en el caso de tener valores por defecto
si intentás hacer esto:
>>> def func(a=5, b):
... pass
... ```
Python se va a quejar
SyntaxError: non-default argument follows default argument
so, la primera regla: al definir funciones, los valores por defecto en la signature siempre van después de los posicionales
es decir, esto es válido:
def func(a, b=5):
# código```
y eso sencillamente para forzar a los que no tienen ningún valor, a tenerlos al llamarlos de forma posicional
a esa función, podrías llamarla de las siguientes formas:
func(10, 8) # a y b
func(b=8, a=10) # b y a
func(10, b=8) # a y b
func(10) # a (b pasa a ser por defecto 5)```
y ofc también podrías llamarla como func(a=10), pero no tendría mucho sentido
Para confundir a los estudiantes
Mucha información para procesar
de hecho hay más reglas, por ejemplo para obligar el uso de kwargs y cosas así en Python 3
xd
Vale, gracias
def miFunc3(*params):
for ele in params: print(ele)
No, no te preocupes. Lo entiendo sólo son diferentes formas de pensar
Aquí qué es el "*"
y por qué el "print" no está debajo del for?
Sólo debo darle un par de vueltas y se me queda
ahora el menos sé que son
Es como decir for(...) { ... } en java en una sola línea
int func(Integer a) {
return func(a, null);
}
int func(Integer a, Integer b) {
b = b != null ? b : 5;
return a + b;
}```2 slo, lo hice de todas formas (?)
O sea, para hacerlo en una manera más corta
sólo que obviamente no hay kwargs
y es un poco absurdo porque haciendo overloading podrías hacerjava int func(Integer a) { return func(a, 5); }
pero b = b != null ? b : 5; es la parte con la que quería hacer cierta analogía
mejor poner un ejemplo de *args
>>> def func(*args):
... print(args, type(args))
...
>>> func(1, 2, 3, 4)
((1, 2, 3, 4), <type 'tuple'>)```
so, el * va a agrupar argumentos posicionales en una tupla
como podrás ver en ese ejemplo
acordate siempre que hay reglas que indican desde dónde y hasta dónde podés hacerlo, según lo combines con otras reglas de definición de funciones
pero básicamente, lo que hace es eso ^
pasé los arugmentos 1, 2, 3, 4 indivudlamente, pero cayeron juntos en *args, en forma de tupla
@grim lava I had an exam where we had "collective nouns" like soccer teams or staff/government etc. and I didn't know if I should use is/are, because it's regional (to some degree)*
así que dentro de la función tenés esa tupla, que es un iterable, así que con un for, por ejemplo, podrías acceder a ellos uno a uno
o yo soy estúpido y no puedo entenderlo jaj
@past harbor si confunde el type(), lo puse ahí para denotar de qué tipo es
def func(*args):
# args será una tupla
func(1,2,3,4) # args contendrá 1, 2, 3 y 4```ejemplo más simplón
btw, sólo podés tener un parámetro de este tipo en una función
>>> def func(arg, *args):
... print(arg, type(arg))
... print(args, type(args))
...
>>> func(1, 2, 3, 4)
(1, <type 'int'>)
((2, 3, 4), <type 'tuple'>)```
la primera regla (?) es que no puede ir luego de lo que podría ser un argumento posicional individual en la definición
como podrás ver en el ejemplito
como que la función se come primero al 1, por corresponder a arg, y luego los que sigan caerán en args, en la tupla
el ejemplo para lo último que dije es que por ej., no podés definir func(*args, arg)
porque por defecto func funciona como un posicional
y no habría forma de saber qué separa a la tupla del posicional
bueno, eso es medio una mentira, ya que hay reglas de unpacking que son así
como hacer a, b = 1, 2, 3 -> a termina siendo [1, 2] y b 3
pero no hablemos de eso (?)
lo que importa es que *args va a ser una tupla con los argumentos, Wolf
con todos ellos, si es el único parámetro en la definición
but you know, in the UK it depends on the context (afaik),
whether we're focusing on the whole or the members, or at least there are no rules that would prohibit it. When it comes to the teams, I believe it's also tricky, because if there's a plural name, we would treat it as plural too "Pittsburgh Pirates have a new manager" etc.
@grim lava *
he aquí algo similar en Java:java void func(int ...numeritos) { // def func(*args): for (int numerito : numeritos) { // for arg in args: System.out.println(numerito); // print(arg) } }
en Java la regla para combinarlo con posicionales es la misma, so, teniendo void func(int whatever, int ...numeritos) -> func(1); va a terminar con 1 en whatever y numeritos vacío
y func(1, 2), con uno y uno
luego func(1, 2, 3, 4, 5);, todos luego del primero caerán en numeritos
np
Se puede hacer en c# también no?
@calm flax sí, "argumentos opcionales"
Deseo que exista en golang
me olvido de que a Wolf le hacen usar Python 2 y sigo poniendo paréntesis en el print
¯_(ツ)_/¯
Es que
nos enseñan Python 2.7 creo
pero el visual studio usa python 3.7
entonces tenemos que poner los paréntesis 😄
tonces
te obligan a usar una IDE, pero no te obligan a configurarlo
estoy confundido
por qué no dejarte usar lo que te plazca?
ya
xd
porque los ordenadores son del curso, entonces todos tenemos que tener lo mismo
y no empezar a configurar los ordenadores como queramos
mmm
he aquí una combinación de todas las ténicas ancestrales recién aprendidas, combinadas:```python
def func(a, b, c, d=10, *e):
... print a, b, c, d, e```
si tenés ganas de jugar con eso
tienes alguna interfaz para python que sea para windows
d no sirve para nada ahí
vaya
interesante
también Sublime
para VSCode tenés que bajar la extensión de Python y ya
y, desactivá el linter si te molesta, viene con Pylint
que es horrible sin configurar en mi opinión
y de todas formas no necesitás uno para aprender
grx
(presionás F1 estando en el archivo de Python, escribís enable lin y le das desactivar)
como nota de color, Python 3 te permite tener keyword arguments en la definición luego de *args
so
>>> def func(a, b, *c, d=5):
... print(a, b, c, d)
...
>>> func(1, 2, 3, 4)
1 2 (3, 4) 5
>>> func(1, 2, 3, 4, 5, 6, 7)
1 2 (3, 4, 5, 6, 7) 5
>>> func(1, 2, 3, 4, 5, 6, 7, d='Hello my darling')
1 2 (3, 4, 5, 6, 7) Hello my darling```
Anyone have experience with markov models
maybe i needa cleanse this chat with some integrals
I don't really know what markov models are.
vile sorcery
ah, it's probability shit. get that vile thing out of my vision
dont ever wanna hear markov chain again
this is no place for vile statistical sorcery
I'd rather integrate cube root of tan(x) and differentiate the answer to verify my answer then learn a little bit about markov stuff again.
nearly failed probability
Calculus is disgusting
Language generation is 
haha, yes. i hate stats
Markov models aren't hard at all tho
started a new semester so loads of new modules. but its first year so they're all intros and that sort of thing
need to leave it a few months until it starts getting fun again
but one of them is already getting stupid
financial maths
lmao
I chose that one
its rly interesting
but it has a 40% fail rate
n I'm starting to see why
Sounds like a weed em out class
nah you'd think so
I guess i would
it counts as an exemption for one of the institute for actuaries or whatever it's called's exams
Hm
so it has to hold up to their scrutiny
Weird
if the maths faculty designed it it would be much more normal
Sounds like a weed em out class
They did that to us this week. Only like 40% are allowed to take the pure Maths course, the rest of us have to take the Maths for scientists course lel I wasn't complaining though but it made some people feel like shit
pure maths dont get u any job tho, gotta do that applied maths
Yeah. But it's like that each year. The course itself has a 55% pass rate. A lot of people have to take the extended route
No thanks
Imagining walking into a class knowing there's a 50% chance you'll fail lol
just be cleverer than everyone else and its easy
hahahaha
My school was essentially doing that to the cs students with math. People would fail math classes until they switched studies. They just removed the calc III requirement here
Weenies
I had a teacher that graded based on the highest test score
ew
And purposefully made the test super long so ppl couldn't finish
Sounds like a nice person
Well she gave you the option of averaging your 2 midterm scores as your final grade
So you could in theory just skip the final
Got my 2 100s and peaced out for the last couple weeks
wise old man
Time to rob draynor bank

@marsh linden could you please explain me when the verb elegir uses j and g?
I'm a native but I don't know how to use g or j 
And I know you'll give me the correct answer uwu
it's a g if the next letter is e or i
The g is hard when the letter after it is an a, u or o
it is soft / throaty (like a j) when the letter after it is an e or an i
If you want to maintain the j-like sound but the letter after is an a, u or o then the g becomes a j
thank you uwu, nexus is better than natives now
currently going through 'Automate The Boring Stuff' trying to relearn python
yee
why does it print 'None'

1 is great but has a slow start
2 is excellent but the island subplot lowers the overall value
3 is very entertaining but some hate it for some reason
4 is still an adventure but jack feels different and is kind of just a wondering idiot here
5: Straight up wack yo. Cool villian. Jack is horrible in this. Also plot inconsistencies with rest of movies
@old charm the except clause in the method doesn't return anything
Python methods always return none by default unless you specify otherwise
Since the except clause doesnt have a return statement in it or after it, the method will return None when you get that ZeroDivisionError
De nada
is there a way to set a reminder some days before an event takes place in Google calendar?
but how ;-;
google calendar reminds me the day when the event takes place but not some days before
edsel, usás la applicación de Calendario?
porque podés elegir las notificaciones del evento o recordatorio
de lejos la chica en tu pfp se ve embarazada
no u
it's my favorite album from her
@median trail no podés crear una notifiación personalizada?
yo puedo, y puedo elegir cuantós minutos, horas, días, o semanas quiero
editar
el lápiz
parece que estás en tu computadora, así que no estoy 100% seguro del format
pero en mi celular, puedo editar el titulo, la hora, cómo se repite; puedo agregar a personas al evento, agregar una ubicación, o agregar o quitar notificaciones
y al agregar una notificación, podés poner cuándo ocurre
so should I set some notifications that end the day where the event takes place?
@grim lava you got me so addicted to wordscapes
what 
Weren't you the one who posted a wordscapes to #📘・questions-lounge a week or so ago?
umm no?

yes vera
I wonder who that was
it was myspeed
de nada señor
@glass dragon hehehe
i should try wordscapes now
do they happen to have a spanish version as well?
or just english
qué es eso
that would be cool if there were a spanish version, although I fear my vocab would be too poor
There is another app, called World of Words, with a spanish language option
It’s really hard
Also it doesn’t count verb conjugations as separate words 😠
There may be a better one, but I haven’t done a lot of buscar-ing
HAHAHAHA
@past storm
@safe igloo hahahahahah
Jajaja esa vaina aquí la tipa de la foto se quejaría por difamación @median trail
Lol eclipse
random question for the maths brethren
if I see something like:
h(x) = (f o g)(x)
Does that mean
(f o g)(x) = f[g(x)]?
@gentle heath help a brother
Thanks fam
np bb
Niebla(x)
rara vez veo esa f o g notacion, solo uso f(g(x))
function of a function
only had to use it during discrete maths
e.g. this proof https://www.youtube.com/watch?v=bTKOC3Rst8c
Please Subscribe here, thank you!!! https://goo.gl/JQ8Nys
Proof that if g o f is Surjective(Onto) then g is Surjective(Onto). Given two functions f : A to B and g: B to C, we prove that if the composition g o f: A to C is a surjective function then g is also surjective function.
i never want to do discrete again
the video, not related to sequences
👍🏿
Discrete math suuuuuucks
I don't understand this, then clients are end devices? or any device that takes part in the communication is an end device?
End device, also called "endpoint"
but what is the end device ;-;
Client just means they're receiving some kind of service
Like a typical user's computer
When you're at your university and you use one of their computers, that's a host or endpoint
Your personal computer / laptop is an endpoint/host in your home network
Basically, network communication can "end" there
Ah I thought hosts were servers because they are making the connection possible by delivering information to the client (?
A network host is a computer or other device connected to a computer network. A host may work as a server offering information resources, services, and applications to users or other hosts on the network. Hosts are assigned at least one network address.
A computer participating i...
Servers can host (verb) stuff
I guess hosts can also include servers
in a peer-to-peer network for example, right?
ah right I just read the definition in the link you sent
Any website you visit is hosted by some computer
But that's "host" as a verb
As a noun, "host" is just a device in the computer network
They typically send/receive network traffic
so any device involved in the network communication, regardless it's a client or server, is a host?
Basically any device connected to the computer network
Not that I know of(?)
Like if you view a diagram of a network, your host is basically a node of the graph
interesting
"Client" and "server" just describe the roles of a device during communication
Servers provide services, clients request those services
Doesn't matter what type of device it is
So when your computer wants to browse to a webpage, your computer acts as a client by making a request to the computer that is responsible for the website
what you mean is that any device connected to a network is a host, regardless of what it is labeled or their role during communication?
Yeah
ah
That's why devices have hostnames
To label different hosts in a network
If you run "hostname" in your Linux terminal, you'll get your own hostname
Pretty sure it's the same command for windows command prompt
Though personally, I wouldn't call every host an endpoint
That's just me
I think it's correct though?
I see, I'm doing a cisco ccna course
the first one actually
@ashen mist what is a service?
Oh Buena suerte
In computer networking, a network service is an application running at the network application layer and above, that provides data storage, manipulation, presentation, communication or other capability which is often implemented using a client-server or peer-to-peer architecture ...
Basically running an application that other machines can use
what's the difference between a physical port and an interface?
physical port is more general, and interface is a special type of physical port
Oh
Y si tenés dudas o preguntas sobre los temas, decime. No recuerdo todo, pero te ayudo como pueda @median trail

Btw Para qué querés esa certificación?
Network interface is where the computer connects to the network
Could be physical or through software
If your computer is connected to multiple networks, you'll see multiple interfaces
If you're in linux, you can run "ifconfig" or "ip addr"
Windows ,run "ipconfig"
I didn't want it, My networking class at uni is a cisco course, like they decided to make us take that course instead of a having a regular class
The "if" in "ifconfig" stands for "InterFace" I'm pretty sure
Lol interesting
Tienen que tomar el examen también?
No sé cuánto cuesta, pero si no es tan caro, puede valer la pena
No, my teacher told me that you can take it once you pass this class
Ah okay, así que es opcional
redes de datos is what the class is called
but we have to take the tests that cisco made for this course
except that one
Jaja
Bueno, al menos están usando información relevante(?
Mi clase de redes fue una mierda
No nos enseñaron muchas cosas relevantes ni útiles
exactly, I think what my uni did was actually pretty good
Nunca miramos un archivo de PCAP
Nunca analizamos esas cosas
"metan datos en el socket"
Eso fue el primer proyecto
El segundo fue otra cosa estúpida
En fin, la mayoría de la información de redes que sé ahora viene de mi trabajo o de mis estudios en mi tiempo libre
Iba a preguntar si hay una canción sobre la "Miracle of the Vistula"
los maestros nunca hable sobre tales cosas :c
I think my dad once said his grandfather fought there. My dad was always interested in history and when was a kid, tried to ask him what had been happening there, but it brought him to tears and my dad never tried asking him again*
in Wizna*
:c
de hecho cuando lo buscas en google mapa la primera cosa que sale es esto
no puedo subir la imagen wtf
Tengo que aprender más
@mortal dagger llegaré a un nuevo fondo. Voy a instalar Windows en un USB para poder jugar mi juego
@median trail estás obteniendo tu CCNA?
Va a trabajar para cisco
@icy pollen yes
SYN
hello
boys
since my friend left
can you explain to me how to find the nth term of a quadratic sequence
nvm
@gusty ermine explicate
billy la bufanda
estoy aquí para hablar
Ok, entonces deja de spamear Billy la bufanda
👍
billy soy tu fan numero 1, firma mi bufanda porfa
Bufanda espero que vayas al infierno

Lobo tranquilo, nunca haré el mismo a ti
billy la bufanda
🤦♀️
Mario sings Country Roads for around 1 hour
Are you that guy who got muted by Edsel one day
yes
Ohh
It has to be her
what's up with the illustration?
I can't read japanese so i can't read the site haha but if it's not hanamaru it's extremely close
I think it says it's Mai Kadowaki
https://twitter.com/kadomaita which is this person
Lmao
すし
X2
Sushi
But i know the kanjis for Hanamaru Kunikida
Uwu







