Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152
Ricardo Newton’s Articles at TC101 Fall 2015, Page 2
Introduction to Programming Python and C++

Author Archives: Ricardo Newton

QUIZ 11

#quiz11https://github.com/ricardonewton/TC101/blob/master/quiz11-1https://github.com/ricardonewton/TC101/blob/master/quiz11-2

Project

  This thing has been hell, no other way to describe. Max and I downloaded and tested the image magic on ubuntu with the sample coding in the terminal.

here is the image in black and white…

We did some coding but we need to still debug it, it is all on our repository…

Bye.

#WSQ 15 – Final Dash

Hello this is #WSQ15 and like the title says, it is the final dash. I tried to organize myself in this calendar, I’ll do my best to follow it. We still have until november 25 to do everything but remember it is not good to leave everything for…

#WSQ17 – Scilab

Hello this is – Scilab the last WSQ of the course. I had to download a special version beacause of my operating system, which also required the Java 6 download. I also had some issues with the privacy settings on my laptop but anyway now it is all done.

 

The scilab program has many functions that can be useful for any subject for example, it can do the work of a basic calculator with the use of functions. For this, you have to be very careful with the syntax. Here is a photo of some testing I did.

 

Also, Scilab can be used for working with graphics and other stuff like that

The most important part for this course, is that you can also be working with some programming. Like using loops, for, while and stuff like that. This program can be useful for this and many other courses troughout our studies, so it is important to know a little about it.

#WSQ13 – Babylonian Method

Hey this is about getting the square root with the babylonian method. At first, I didn´t even know what was this so, I searched on the internet and watched this video that helped me a lot. https://www.youtube.com/watch?v=9BvTRoXag0w It took a while to get this work finished beacuse I wasn´t doing the loop correctly but here it is…  https://github.com/ricardonewton/TC101/blob/master/Babylonian

 

#WSQ12 – Greatest Common Divisor

Hey this is about the greatest common divisor. It took a while to understand the Euclid´s algorithm so somehow, with a little research, I did it. Here is my code in github https://github.com/ricardonewton/TC101/blob/master/GCD

 

 

FINAL PROJECT – WEEK 2

 

This has been pretty difficult to achieve, first I had too many problems on finding the library for mac. When i finally found it I couldn´t match the library with the compiler. i tried making it work with some of the examples from the manual http://www.imagemagick.org/Magick++/tutorial/Magick++_tutorial.pdf but really couldn´t make it work. I guess we will have to search deeper on the internet on how to use this stuff. I´ll leave here one of the examples I tried to run.

 

 

The guide helped me more to understand about the usage of the library, because at first, I was completely lost and didn´t even know were to begin. Now I have the bases to undestand more the process for coding on this library. It is kind of difficult though to work with something you are not completely familiarized with.

I have watched series of videos on youtube about using image magic, some of them not easy to understand, but in someway they helped me.

 

Bonus Quiz

I finished the ECOA evaluations for teachers. Remember it is very important to complete them being  honest because all opinions are read and used to evaluate the teachers and help them improve what they are doing. Remember to do them correctly. 

 

FINAL PROJECT – WEEK 1

Hello! this our first post of Max Bolaños and me for our programming , in which we are going to be working on image processing. This is new for us because it is something we have never done before. First we need to learn how to work with a library made for image processing called image magic. I read that there is a special library designed for c++ called Magick++, so we began downloading it but we are not pretty sure on what to do next. I found the library on the following page,

96

Normal
0

21

false
false
false

ES-TRAD
X-NONE
X-NONE

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Tabla normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Calibri;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-fareast-language:EN-US;}

http://www.imagemagick.org/script/index.php but I couldn’t find the version for mac. So I looked it up on another page and started downloading it. The thing is that I am not pretty sure if this is going to work for me, so I guess it will be better if I download another operating system on my computer or an online one. I guess we will have to consult it with Ken.

 

We watched some tutorials on basic usage of the library to understand a little bit more about this.

#Mastery21 – Use of recursion for repetitive algorithms

Hello this is about using recursion in algorithms. A recursion refers to the action of when a function calls itself. It is kind of like creating a loop.

96

Normal
0

21

false
false
false

ES-TRAD
X-NONE
X-NONE

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Tabla normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Calibri;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-fareast-language:EN-US;}

Why? Calling the function inside the function creates a series of events which lead to the result that is the same  using a lop with while or for.

 

  • In recursion, a function calls itself but you shouldn’t assume these two functions are same function. 
  • Local variables are defined inside a function and has scope only inside that function. In recursion, a function call itself.

 

Recursion makes it easier to express ideas in which the result of the recursive needs to complete the task.

WATCH MY VIDEO https://youtu.be/i9wo3N8tNzk

What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).