Segunda Publicación Semestre i

--Originally published at Coding with jared

El último día de clases oficialmente fue el jueves 3 de mayo, sin embargo siempre al final de cada semestre se acumula la tensión y estrés debido a los proyectos finales, exámenes y otros pendientes que los estudiantes puedan tener, no solo escolares si no también familiares o incluso personales, en una edad todavía crítica para la vida, combinando todos estos “problemas” pueden ser útiles de manera constructiva o negativos en la búsqueda de identidad personal y como desea ser un futuro no lejano. En fin, regresando a lo escolar, las dos o quizá tres últimas semanas de clases son las más pesadas y más para el estudiante mexicano promedio que suele procrastinar bastante, a pesar de que está característica esté escrita en mi ADN, he intentado cambiar mi actitud en los últimos años y durante este semestre i creo que puedo decir he mejorado un poco más la manera en que me administro. No solo uno es más consiente de esto mientras va creciendo, sino también le sirven los consejos y buenos hábitos de las demás personas.

El tiempo pasó demasiado rápido este semestre, quizá el más rápido de todos debido a los puentes, días festivos, etc. Junto a este tiempo también se llevó a cabo la lectura completa de Tom DeMarco Deadline, la cual a pesar de haber sido una novela (incluyendo drama, acción y romance) tiene unos puntos clave muy sólidos en cuanto a la realización de proyectos, tareas o cualquier meta que se quiera proponer una persona, a pesar de que el libro fue publicado por vez primera en 1997,  hay consejos, teorías y maneras estratégicas de manejar aspiraciones que todavía aplican muy bien para el 2018, aunque si pueda haber algún contexto histórico grabado en el libro el cual no se mantiene muy bien Continue reading "Segunda Publicación Semestre i"

Primera Publicación Semestre i

--Originally published at Coding with jared

Justo antes de empezar con esta publicación, no tenía idea de cual sería el medio para publicarla, podría ser un archivo en Google Docs, un blogspot o algo por el estilo. tiempo después recordé que tenía un blog para mi primer semestre de universidad, cuando cursé la materia de Fundamentos de Programación (#TC101) con Ken Bauer, así que decidí reciclar la página creada para compartir este escrito.

Muchas cosas han cambiado desde aquel semestre agosto-diciembre 2016, fue durante ese tiempo cuando escuché por primera vez el concepto del nuevo proyecto que el Tec quería implementar a sus estudiantes, nuestro director de carrera dijo que no nos escaparíamos de el “Semestre i”, me llevé una impresión bastante fuerte, ya que al momento de ver las reacciones de mis compañeros de carrera en semestres más elevados pareciera que estaban asustado o inconformes.

Esta actitud sigue siendo la misma, pero ahora somos nosotros, los estudiantes de ISC e ITE de cuarto semestre. Ya que al momento de hacer nuestro turno de horario el semestre pasado, notamos de imprevisto que llevábamos materias muy elevadas para nuestro siguiente semestre, lo siguiente que supimos es que era porque seríamos los primeros candidatos en tener Semestre i respecto a la carrera de ITE. A mi en lo personal no me molestó para nada, pero si se me hizo algo raro haber visto que las demás carreras llevan Semestre i cuando tienen más experiencia respecto a su ámbito laboral, por ahí del séptimo o quizá sexto semestre en adelante. Si me puse a pensar como que no podríamos ofrecer algo de igual calidad como nuestros compañeros con más experiencia.

El primer día de clases de este semestre se presentaron los maestros y tutora ante nosotros para darnos a conocer cómo se llevaría a cabo todo este rollo, tanto Continue reading "Primera Publicación Semestre i"

#TC101

--Originally published at Coding with jared

Siento que es raro decirle semestre a este largo viaje que recorrimos cuando en realidad solo duro 3 meses y medio, he aprendido bastante desde principios de agosto sobre programación, suelo entender todos los conceptos y funciones de comandos, pero lo que me falta desarrollar es la creatividad al momento de escribir un código y es por eso que aprecio a las personas que se dedican a programar, son demasiado ingeniosas y les sobra imaginación. Con #TC101 vi lo básico de Python3, gracias a esto también aprendí a usar de una mejor manera Ubuntu, ya que tuve que instalar varios programas para poder realizar todos los códigos. Con Ken aprendí que no necesitamos de alguién enfrente de nosotros tratandonos de enseñar algo, sino debemos de tratar de enseñarnos a nosotros mismos por mera voluntad propia.


Range

--Originally published at Coding with jared

Range is a value given from a sequence, it s hard to explain but i´llt try. We have two sets of parameters, range(stop) and range(start, stop, step.

 

In the first one range stop, there are number of intgers to generate starting from zero.

And we have other range(start,stop,step)

the Start indicates the starting number of the sequence, the stop number indicates til which number to make a procedure, but it does not include that number, it is very important to take in mind that, it may be confusing at the beginning but it´s something to get use to., and at the end we have the step, which is the difference between each number in the sequence. Here are some requisitoss to remember, all of the parameters used in range must be integers (positive or negative it doesn´t matter).

screenshot-from-2016-11-23-22-45-21

screenshot-from-2016-11-23-22-43-20

screenshot-from-2016-11-23-22-43-32

Learned it from: http://pythoncentral.io/pythons-range-function-explained/

 


Writing

--Originally published at Coding with jared

There´s another way to write down notes without using Word, LibreOffice, Notepad or any other famous text editors…..

Resultado de imagen para libreoffice writer

Resultado de imagen para wordResultado de imagen para no more

You can now create your very own text files with Python3, and it is pretty easy, you may only need a command o do it which is .write(“Whatever You Want”)

You may also wanto to create a .txt file, so in order to do this we need to make a variable

You need the command open(), and inside the parentheses you can name your file, but it has to end with .txt, then you use a comma , parentheses and “w”, the w means that you are able to write on that file.

screenshot-from-2016-11-23-19-58-21

You may run this code on the terminal , but the terminal won´t show anything, but the file will be created, here appears mine on my desktop.

screenshot-from-2016-11-23-20-02-21

 

Now to write on the new file you need to write the name of the variable plus .write(), and inside the parentheses between brackets you write whaterver you want.

screenshot-from-2016-11-23-20-03-17

Be sure to save the file and run it again on the terminal, once again it will show nothing on it…

screenshot-from-2016-11-23-20-04-03

 

but if you double click your .txt file. the text you wrote on python will appear on the text editor.

screenshot-from-2016-11-23-20-04-47

?

I learned to create and modify text files from this video:

 

Cheers to Computer Science UK for making great videos.

 

 


Reading

--Originally published at Coding with jared

Just learned how to open .txt files on the terminal using python 3, it is very easy to use, you will feel like a hacker just to open a file for reading it.

the comand we need is open(“filename.txt”)

VERY IMPORTANT!

The .txt files and the .py file must be in the same directory in order to proceed.

Screenshot from 2016-11-20 20-13-25.png

My .py and .txt files are in my Desktop, you cans see that I got two books, the Bible and a book of Harry Potter, now let´s move on to the code

Screenshot from 2016-11-20 20-14-45.png

Here I am making a menu of the books available, and also I am asking the user to enter not the number, but the name of the book. if the name of the book is equal to Harry Potter or The Bible, the code will continue, we must name a variable, I called it “text” equal to open(“nameofbook.txt”).

After that wee need to print the file in the terminal so we write this, print (text.read()).

Here is how it works on the terminal…

Screenshot from 2016-11-20 20-15-15.png

Screenshot from 2016-11-20 20-15-31.png

Now I can read Harry Potter and the chamber of secrets on my ubuntu terminal..

Watch where i learned about opening filess.


You can´t do that

--Originally published at Coding with jared

Today´s blog is about validation of the user input, before starting with this topic, we need to know what is data validation.

data validation: Making sure that a program operates based on clean, correct and useful data.

data validation in programming is needed to continue procedures, for example if a program is asking for an integer, and a the user gives a string as answer the program, may crashed or send an error message that the answer given is nott a correct option in order to continue the program.

The errors are handled with try and except.

Try works as the follow

try: ´´´ Instructions …´´´

except : ´´´Ínstructins…´´´

first all the instructions from try to except are executed, but if no exception is find that block ends and now we continue to the block except.

For example, in this program of my calculator in Spanish, i am giving the user the option to select an what operations he/she wants to do, but there are only four options, numbered from 1 to 4, and to select it you just have to select the number and press enter, but what if the user is a smart ass and instead of give as answer the given options he/she decides to enter another number…

Screenshot from 2016-11-20 19-06-11.png

know i am able, to outsmart the smartass

 

Screenshot from 2016-11-20 19-12-21.png

 

This is where I learned about validations, try and except statements :9

https://docs.python.org/3/tutorial/errors.html


Whats My Age Again?

--Originally published at Coding with jared

On last Friday October 21th the band Blink-182 posted a music video of their new song “She’s Out Of Her Mind” which is a tribute to their famous music video from 1999 “What’s My Age Again”, which is very known video because of it’s funny content of the members of the band Tom, Mark, and Travis running naked through the city of Los Angeles

blink-182-whats-my-age-again-video-1464872950-list-handheld-0

 

The new music video is the same thing, the only difference is that the protagonists in this one are three famous girls from the social media Vine.

cvqscrlumaaxwdj

 

blink-182-shes-always-on-my-mind-video-1

 

If you like Blink-182 like I do, go right now and see the video, it brings so much nostalgia.?

 


El IQ no lo es todo #FactorTec

--Originally published at Coding with jared

El-IQ-no-lo-es-todo-campus.jpg

Una alumna Licenciatura en Animación y Arte Digital  (LAD) del Tec de Monterrey se mostró ofendida por una imagen publicitaria de esta institución, mostrando la frase “El IQ no lo es todo”  acompañada de la imagen de una mujer apreciando una colección de obras plásticas, la estudiante incluso define su carrera como “una carrera alternativa” puesto que su carrera está más vinculada con las humanidades que a las tecnologías, dando a entender que ella se ve en un punto o “nivel” de categoría menor que las demás carreras que la institución ofrecen, ya que que según ella tienen que hacer valer su trabajo y deben sobrevivir con un salario “decente”.

Siento que esta publicidad fue más como una pequeña excusa para esta estudiante junto a ExaTecs y empleados para dar a conocer sus opiniones y quejas sobre la condición actual de la carrera que al parecer no es nada buena en comparación a las demás, sin embargo la estudiante quiere que reconozcan su carrera y que ya no sea una carrera “alternativa”, pero ¿Qué hubiera pasado si esta publicidad no hubiera salido a la luz?, la estudiante seguiría molesta puesto que nada hubiera cambiado, y tal vez le hubiera molestado que ninguna de las imágenes en las publicidades de #FactorTec incluyera estuviera relacionado con las artes.

No se puede tener al todo mundo contento, e igual no se puede hacer el bien en alguna parte sin hacer mal en otra, pero todo es relativo y depende del punto de vista de las personas, sin embargo ofenderse con algo que supuestamente es “bueno” y trata de representar a sus estudiantes, significa que no estás de acuerdo con tu alma mater y que está tal vez no sea la ideal para ti.

Artículo leído deÑ

[],(),{}

--Originally published at Coding with jared

What are lists, tuples and dictionaries in Python 3?

Lists:

Like we already know a list in python is a list of values, each value is numbered starting from 0, it is possible to modify these lists by adding or removing informaiton.

You use this []

Students = [“juan”,”pedro”,michael”,”jackson”]

 

Tuples:

Pretty similar to lists, the only difference is that you can’t add or remove values form it.

You use this ()

meses = (‘Enero’,’Febrero’,’Marzo’,’Abril’,’Mayo’,’Junio’,’Julio’,’Agosto’,’Septiembre’,’Octubre’,’Noviembre’,’Diciembre’)

 

Dictionaries:

A dictionary is also like a list but the difference is that you make variables and you give them a value or a definition.

Name = key

definition = value

The keys and values that are put respectively aren’t numbered, you also can add, remove and even modify the values and keys from it.

You use this {}

oxxo = {‘gansito’:8,’sabritas’:10,’agua’:9}

 

I learned all this on this page, check it out: http://sthurlow.com/python/lesson06/