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

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘#mastery02’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 26 Nov 2015 05:48:58 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Mastery 2 https://kenscourses.com/tc101fall2015/2015/mastery-2-10/ Thu, 26 Nov 2015 05:48:58 +0000 http://andreandradec.wordpress.com/?p=368

]]>
https://creativecommons.org/licenses/by/4.0/
#Mastery1 and #Mastery2 #TC1017 https://kenscourses.com/tc101fall2015/2015/mastery1-and-mastery2-tc1017/ Thu, 26 Nov 2015 05:04:13 +0000 https://eduardotorresb.withknown.com/2015/mastery1-and-mastery2

Link

and

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery 2 https://kenscourses.com/tc101fall2015/2015/mastery-2-7/ Wed, 25 Nov 2015 22:30:44 +0000 http://luisgarciadaniel01.wordpress.com/?p=245 ]]> Ability to create C++ project in IDE and run inside IDE

Too easy, it can not come out wrong. Here’s the video

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery #2 – Ability to create Python project in IDE and run inside the IDE https://kenscourses.com/tc101fall2015/2015/mastery-2-ability-to-create-python-project-in-ide-and-run-inside-the-ide-3/ Wed, 25 Nov 2015 20:35:47 +0000 http://dragv.wordpress.com/?p=139 ]]> Here’s my video of me explaining mastery #2.

Enjoy.

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery 2 https://kenscourses.com/tc101fall2015/2015/mastery-2-6/ Wed, 25 Nov 2015 04:37:12 +0000 http://opezaimd.tumblr.com/post/133908220850 On this mastery I’ll show you how to program in an online compiler and how to run your program in the same online tool.

There’s an online compiler and debugging tool called Ideone, which allows us to code online and then test it right there. So, go ahead and open ideone.com

Once you opened the webpage, something similar to this will appear on your screen. On the centre of the webpage is where our programs are written, On the bottom left , we have the language of the source code (which can be changed) and on the bottom right we have the run button.

Let’s create a “Hello World” program and run it:

As you can observe, our program was successful and it did output the desired outcome. 

Now, just to have fun, let’s see what happens if our program has a mistake:

This online tool is great, and now you know how to use it. Congrats!

]]>
On this mastery I’ll show you how to program in an online compiler and how to run your program in the same online tool.

There’s an online compiler and debugging tool called Ideone, which allows us to code online and then test it right there. So, go ahead and open ideone.com

Once you opened the webpage, something similar to this will appear on your screen. On the centre of the webpage is where our programs are written, On the bottom left , we have the language of the source code (which can be changed) and on the bottom right we have the run button.

Let’s create a “Hello World” program and run it:

As you can observe, our program was successful and it did output the desired outcome. 

Now, just to have fun, let’s see what happens if our program has a mistake:

This online tool is great, and now you know how to use it. Congrats!

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery 1,2: IDLE Graphic User Interface Python https://kenscourses.com/tc101fall2015/2015/mastery-12-idle-graphic-user-interface-python/ Thu, 29 Oct 2015 04:40:23 +0000 http://charliegdrummer.wordpress.com/?p=149 Continúa leyendo Mastery 1,2: IDLE Graphic User Interface Python]]> Here is a post that explains how to create and tun a python file from the GUI of Python

The first thing you have to do is to run the GUI of python; when the screen shows up, you can create a new project by the command ctrl+n, or to click file new as shown on the pictures:

idle fileidle select new

A new screen will open, is a text processor, as notepad, and there you can start typing your code. When you are done, you can run it by pressing F5, or the run tab then Run Module as shown on the pictures   run runmodule

Everytime you want to run a file through GUI, it will request you to save the file; to save it just press ctrl+s or file save as in the picture:

saverunrunsave

When you save it, make sure you add     .py      at the end of the title of your file, otherwise it won’t start

PS   What you may want to avoid is to type your filename with spaces, “ñ“s, or characters that are not numbers, nor letters; a good replacer of the space is the character    _

And there you have it! it worked! 😀

wuwuwu

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery02 https://kenscourses.com/tc101fall2015/2015/mastery02/ Fri, 18 Sep 2015 20:20:03 +0000 http://5nbppkkyj.wordpress.com/?p=100

]]>
https://creativecommons.org/licenses/by/4.0/
Mastery 2: Ability to create C++ project in IDE and run inside the IDE https://kenscourses.com/tc101fall2015/2015/mastery-2-ability-to-create-c-project-in-ide-and-run-inside-the-ide/ Sun, 13 Sep 2015 04:23:20 +0000 http://samanthariverac.wordpress.com/?p=61 ]]> This is the mastery number 2 … here I made the program in IDEONE and run it in the same page.

Here is the VIDEO that shows what I did

mastery 2

]]>
https://creativecommons.org/licenses/by/4.0/
Masteries 01 and 02 – How to create, open and execute a Python file on Windows https://kenscourses.com/tc101fall2015/2015/masteries-1-and-2-how-to-create-open-and-execute-a-python-file-on-windows/ Fri, 11 Sep 2015 16:00:00 +0000 http://kenscourses.com/tc101fall2015/?guid=fbe3f1957756f8c6002cfc060fffee3e To create a new file:To create a file in python first you have to open the Python IDLE, to do this you have to go to the search bar and look for "python", there you willl see the IDLE exe.

The IDLE is like a comand line, you can´t write code on in, its just for testing. What you need to do to open a new blank space to write python code is to press "Ctrl+N  or to go to the corner and open a new file.

Now that you know how to create a new file, once you have your code written be sure to save it. It will be saved with a ".py" termination. 

To open/edit a file:

Once you have your file (you can even create it or download it) you will sometimes want to edit it, to write some extra code, finish your work or even correct somehing that was wrong. To do this first you have to localize your file: 
On the example I want to open the WSQ07.py file that I have in a folder in my desktop. 

I recommend you to memorize the files locations because if you want to execute it through the command line you will have to write the hole file adress. If you are bad at memorizing you should organize your files in jerarchised folders, this helps you to localize the file without not even knowing the exact location. Example: World/Continent/Country/State/City
This extructure will help you to go from something general to something specific without memorizing the exact adress. By the way, try not to use complicated names like "Masd123". Use something easy to remember that follows the logic of the jerarchy.

Continuing with the tutorial. The next step is to right-click on the file and select "Edit with IDLE". If you just open the file by double-clicking on it it will execute in the console or of it´s not finished it will not open anything. You should avoid opening .py files by double-clicking because the console that it launches will instantly run your code and when it ends it will close, you will not be able to see the prints or the results.
This will open the script so that you can continue writing on it.

To execute a file:

There are two ways of executing a file, through the command line and though the IDLE.
In my opinion opening it with the IDLE it´s a lot easier and you save a lot of time but it´s necessary that you know how to execute it with the command line because some text editors don´t have this option.

To execute the file with the command line(windows):

The first thing that you need to do is to open the CMD, look for it in the search bar and open it.
It will look like this:
Masteries 01 and 02 - How to create, open and execute a Python file on Windows

Now you have to write the folder directory of your file, I highly recommend you to save the file on c:/ so that you don´t have to write the location every time you run the program. 

To find the root directory open documents go to C:/ users / (name of the user), there is where the CMD will start. Here is an example:


Now, once that you have localized your file location and you are ready to put it down on the CMD be sure to write "python" before the file separated with a space. This tells the CMD to excute the file with python (if you installed it correctly of course), the CMD will imitate the python console and execute the file you selected with it. 


Always remember to write the file termination, in this case is ".py".

To execute the file with the IDLE:

This is going to be really simple. First you need to open the file with the edit option that I teached you.

This is my WSQ07 and if want to run it while i´m using the IDLE I just have to pres F5... yes, just that. The console will open the file automatically.


As you can see it atomatically star asking me for the first number, that means that the program is running. 

Just as simple as that you can execute the file and test it without pressing more that 3 buttons, have in mind that in some computers you need to press Fn+F5.



]]>
To create a new file:

To create a file in python first you have to open the Python IDLE, to do this you have to go to the search bar and look for “python”, there you willl see the IDLE exe.

The IDLE is like a comand line, you can´t write code on in, its just for testing. What you need to do to open a new blank space to write python code is to press “Ctrl+N  or to go to the corner and open a new file.
Now that you know how to create a new file, once you have your code written be sure to save it. It will be saved with a “.py” termination. 

To open/edit a file:

Once you have your file (you can even create it or download it) you will sometimes want to edit it, to write some extra code, finish your work or even correct somehing that was wrong. To do this first you have to localize your file: 
On the example I want to open the WSQ07.py file that I have in a folder in my desktop. 
I recommend you to memorize the files locations because if you want to execute it through the command line you will have to write the hole file adress. If you are bad at memorizing you should organize your files in jerarchised folders, this helps you to localize the file without not even knowing the exact location. Example: World/Continent/Country/State/City
This extructure will help you to go from something general to something specific without memorizing the exact adress. By the way, try not to use complicated names like “Masd123”. Use something easy to remember that follows the logic of the jerarchy.
Continuing with the tutorial. The next step is to right-click on the file and select “Edit with IDLE”. If you just open the file by double-clicking on it it will execute in the console or of it´s not finished it will not open anything. You should avoid opening .py files by double-clicking because the console that it launches will instantly run your code and when it ends it will close, you will not be able to see the prints or the results.
This will open the script so that you can continue writing on it.

To execute a file:

There are two ways of executing a file, through the command line and though the IDLE.
In my opinion opening it with the IDLE it´s a lot easier and you save a lot of time but it´s necessary that you know how to execute it with the command line because some text editors don´t have this option.

To execute the file with the command line(windows):

The first thing that you need to do is to open the CMD, look for it in the search bar and open it.
It will look like this:
Now you have to write the folder directory of your file, I highly recommend you to save the file on c:/ so that you don´t have to write the location every time you run the program. 
To find the root directory open documents go to C:/ users / (name of the user), there is where the CMD will start. Here is an example:
Now, once that you have localized your file location and you are ready to put it down on the CMD be sure to write “python” before the file separated with a space. This tells the CMD to excute the file with python (if you installed it correctly of course), the CMD will imitate the python console and execute the file you selected with it. 

Always remember to write the file termination, in this case is “.py”.

To execute the file with the IDLE:

This is going to be really simple. First you need to open the file with the edit option that I teached you.
This is my WSQ07 and if want to run it while i´m using the IDLE I just have to pres F5… yes, just that. The console will open the file automatically.

As you can see it atomatically star asking me for the first number, that means that the program is running. 
Just as simple as that you can execute the file and test it without pressing more that 3 buttons, have in mind that in some computers you need to press Fn+F5.
]]>
https://creativecommons.org/licenses/by/4.0/
MASTERY 02: Ability to create C++ project in IDE and run inside the IDE https://kenscourses.com/tc101fall2015/2015/mastery-02-ability-to-create-c-project-in-ide-and-run-inside-the-ide/ Wed, 09 Sep 2015 22:09:33 +0000 http://delusionalpieceofdust.wordpress.com/?p=174 ]]> MASTERY2(The credit of the background image goes to https://flic.kr/p/9buVdv)

So this is  Mastery #2

It was pretty easy!!!

I just did almost exactly everything I did in my mastery #1 (https://delusionalpieceofdust.wordpress.com/2015/09/09/mastery-01-ability-to-create-c-file-and-run-from-command-line/).

Here’s the summary of the steps I followed for this assigment:

  1. I went to https://ideone.com/
  2. I picked C++ as the programming languange.
  3. I wrote the code.
  4. I clicked in ‘Run’.

It was the same I did for my Mastery #1, but instead of using Atom and Cygwin, everything can be done inside the IDE!!!

Also, instead of writing the “Hello, world” string, I decided to give you a little fact about me. That I like hot wings.

Here’s my video to prove it:

]]>
https://creativecommons.org/licenses/by/4.0/