Sunday, November 3, 2013

Using canned scripts

Most HTML web page developers don't start off from scratch, rather they use existing free scripts obtainable on the Internet. The site below is a good one for various scripts. Click on it for a closer look.



Monday, October 21, 2013

Make use of existing templates

There are templates available for you to use on the Internet so that you don't have to start off from scratch each time. You can check out the source code and make changes to a basic design until it's to your satisfaction. This page below came from the quackit template page. You download the template you like, then run it and look at the source code. Start off with one of the simple templates first and make some small changes.





Monday, August 26, 2013

Sunday, August 25, 2013

Tuesday, August 20, 2013

Maths for CIT

Lesson 1. Scope of what we’re doing.
Short history of numbers.
Patterns in numbers.
Random numbers. Generating random numbers in Excel using RND() and RNDBETWEEN()
Eg 1,2,3
5,10,15,20
3,9,27,81,
Visualising patterns
Linear graphs and others.
Factors, multiples, divisor. The MOD function in Excel.
LCM GCD  functions in Excel.

Tasks:
1.)
Project. Create a stand-alone web page that illustrates some part of the history of numbers. It should have at least 5 pictures and contain tables, lists and a small form. (You do not have to use the results of the form.) A total of 10 different tags should be used.  Be prepared to talk to the class about your page. Think about colour, layout, style, tone, grammar  and spelling. This is worth 5% of the final assessment. Due Monday 2nd September 5pm.

2)Write a spreadsheet which graphs y=3*x from x=0 to x=20.

3)Also do y = x+4, y=x-2, y=2*x, y=2*x + 1, y = 3*x, y= 3*x +2, y= 3*x – 2, y= 5*x, y = 100*x, y = -2*x.

4)Randoms
Generate a list 200 random numbers between 0 and 100 using RANDBETWEEN()
Add up the numbers in your list. What is the average number? Can you work out how to graph this list.

5) Do the same as above but this time use600  random numbers between 1 and 6. This is simulation for dice. Use COUNTIF() to count the number of 1’s, 2’s, … 6’s thrown . Copy your results into a HTML table for your blog and add a sentence about what’s in the table. What were you expecting?

6) Repeat, but this time simulate 1000 tosses of a coin. (So you just want a big list or 0,s and 1,s). Write up your results in the same way.

7) Make a list of 100 random numbers between 0 and 100. Add them up and divide by 100 to give you the average. You can recalculate several times by pressing F9. Put in your blog three different averages with a suitable sentence.

8) Same as 7 but this time use 1000 numbers between 0 and 100. Your averages should be a bit closer to 50.

9) Make a list of 1000 random numbers and beside each number calculate the remainder when divided by 5 by using =MOD(number,5). Draw a graph of your results and put into your blog with a suitable message.

10) Same as 9 but this time test divisibility by 4 and by 6 in two extra columns. Graph and blog your results.

11) List all the factors of 12. Repeat for 13, 14, and 15. Which of the last 4 numbers is prime?

12) If there was a random number in A2 that was less than 100, how could I test whether it was prime or not using the =MOD() function. You don't have to do it, just say what you would do.

13) This site has a list of the first 64K primes in Excel format. Download and find a way of displaying all or some of this list in your blog.

14) Do a Google seacrh for some prime number sites, list 3 and then inert 4 prime number displays that look interesting. I quite liked the diagram here.

15) Find out what these words mean and give examples in your blog. Factor, multiple, prime, least common multiple, greatest common divisor, composite and twin prime.

16) Write a sentence about how each of these Excel functions work: MOD(), LCM(), GCD(), ROMAN(), INT().

17) Standard form. Have a look at this site and put the following numbers into standard form:
  123    56    14,300   31.4    3.1415.

18) If I had a random number in cell A2, how could I get it into standard form using Excel functions. (Hint: check out formatting of cells. Another name for standard form is "scientific" notation.

19) Write a paragraph in your blog explaining how the Sieve of Eratosthanes works. Construct a table that shows the Sieve and write down the first 20 prime numbers. If possible use colour and fonts to show the number patterns.

20) Areas. Circles. Have a go at these problems on areas of circles.Take a screen shot of the page and put into your blog.

21) Find a web page that deals with Pi. Take a screen shot of one that interests you.

22) What does Excel say that Pi is?

23) Construct a cell in Excel that gives a random radius between 0 and 10. Beside it calculate the area of a circle with that radius.

24) Write a blog post that illustrates the area of a rectangle. You'll need a diagram, formula and explanation.

25) Repeat 24 for the area of a triangle.

26) Repeat 24 for the area of a circle.

27) Squares and square roots. You should be able to do the task sheet in this site mostly without a calculator. Check your answers and put a screen shot of the site into your blog.

28) How does Pythagoras theorem work. Give a diagram with an example of how you work it out.

29) Some people learn maths from You Tube. Here is a quick clip on Pythagoras theorem . Write a quick comment on this and put links into your blog for two more sites that you liked that explain Pythagoras theorem. Write a quick comment on why you liked your two sites.

29.1) Check out the site where you can search for numbers inside pi. Here it is. Take a screen shot of the page when it tells you where your telephone number is in pi.








Random Numbers

random plots


Some excellent visualisations of numbers This one is for prime number visualisation.







Monday, August 19, 2013

Some deep number issues

Some numbers make a pattern.



  • x  y
  • 1  1
  • 2  2
  • 3  3 
  • 4  4
  • 5  5







Some numbers are random




The sieve of Eratosthanes

Some we have to check for patterns

There are all sorts of ways to generate (pseudo) random numbers.


Number systems

Current systems

Some older systems



One to one correspondence came first.





Monday, August 12, 2013

HTML lab. Due Friday 16 August 5pm.

21. Make a web page that is called Student Life in Dunedin. Give it a heading, some original text, a table and at least two pictures. It should contain too at least three different formatting tags.

Monday, August 5, 2013

What's the main problem with Internet Explorer?

Below is a site that tries to explain why IE is so unpopular with some people. Read over what is in this site and do the associated task.


Saturday, August 3, 2013

The best browser is ....?

Have a look at this site ( the best browser is ..) and do the associated task. This has made some people review their favorite browser.


Monday, July 29, 2013

Editors

There are people who always use special HTML editors to write their HTML scripts. Others use only simple text editors.


We often write HTML scripts in a text editor. There are many available and most are free.




Others are Notepad++, EditPlus and Ultra Edit. There is not a "best one" , they all have their own set of features. A lot of people just stick with Notepad in Windows and TextEdit on Macs. One of your tasks is to explore different text editors.


W3Schools is a good html site


Monday, July 22, 2013

First full script

The first full HTML script.


<html> 
  <head>
    <title>The first page!</title>
  </head>
  <body>
    <p>Well, hello world</p>
  </body>
</html>

Tasks

Respond to these tasks by writing any answers or code into your own blog. Please number your responses so they can be found.

1. Start your blog in Blogger. Write a sentence about yourself, with a graphic that represents you, say, a photo or something that you like. Remember the address of your blog. This is where all the feedback on tasks will be given.

2. What does HTML stand for. Paste in a few lines of HTML.

3. Define Tag, Element and Attribute. Give examples if you can.

4. What does this do:     <p> Hello world! </p>

5.  Copy this in to Notepad and run it through a browser.


<html>
  <head>
    <title>My First Page</title>
  </head>
</html>

Where does the text "My First Page" appear?

6. Same as 5 but this time,  change the text to your name. Put your full HTML program into your blog.

6a. Go to this page and run the example called "A very simple HTML document" from the HTML basic section. Run their example, think about the tags then alter their script in some interesting way. eg. include your name in the script somewhere. Run your new script and copy the HTML into your blog with a suitable comment.

6b. Same as 6a, but this time run the HTML headings script.

6c. Same as 6a, but this time run the HTML paragraphs script.

6d. How do we wrte comments in HTML?

6e. Why do we write comments?

6f. Run the script called "Insert comments into HTML source code" from the same page as in 6a. Then write your own script with two original comments. Make sure it works. Put the whole script into your blog.

7. Look at this page and run the "try it yourself" options on the green buttons. Do this for Headings, Paragraphs, Links, Images. Change each of the scripts in some creative way, make sure they work then write the scripts into your blog.

8. Start your talk on an interesting tag by picking one that appeals to you and preparing a two (or more) page PowerPoint. Put your name and tag onto the Wiki in Moodle.

9. Do an Internet search on at least two HTML Editors. Take a screen shot of each editor and write a comment on what people say about it and what you think too.

10. Check out the post in this blog called:  "And the best browser is..". Read over the results. A bit surprising to some people. Do you think this is a fair assessment? Does it include all the features important to web users?Did it change your opinion of your most-used browser? Write some sentences that respond to the previous questions in your blog.

11. Blogger is a kind-of HTML editor. Start with a blank post page and switch to HTML. (Fine the botton top left next to Compose.) Write a simple HTML script the puts your name on three different lines and in three different sizes. When you switch back to Compose you should be able to see your result. Capture your HTML script in a screen shot and add to your blog. (A screen shot of Blogger in Blogger sounds a bit Matrix-like?)

12. Write an HTML script that uses all the header tags <h1>, <h2>, ..., <h6>. It also should use three different buttons that output a different alert box for each button.

13. Write 100 words in good English on a how a person can write HTML using Notepad to make it look good in a browser. Pretend they don't know anything, and give good instructions. Make sure spelling is good.

14. Write a HTML script with two different buttons. Put a comment into your code near each button. Make one of your comments a multi-line one.Write a final comment in your script on why we need comments.

15. Look at a blog post above called "What's the main problem with Internet Explorer?". Read over what the author had to say and list three problems he has with IE. Put a link into your response so that readers can click straight to this site. Find a site or a blog on the Internet where someone likes or defends IE. Write three good things they say about it and put a link to one of these sites too.

16. Write a web page on the subject of Dunedin. It should contain a heading, a picture and some text. Put your files into a folder and zip it up into a single file. Put this file into the assignment drop box in Moodle.

17. Subscript. Write a script that contains the <sub> tag. Also include the chemical formula for amonium phosphate (look it up) , with all the subscripts in the right place.

18. Tables. Check out the w3 Schools page on HTML tables. Run the three examples on the page then make some interesting changes (words, colours, borders, fonts etc.)  and make sure the scripts work. Then copy these scripts into your blog with a comment about what you've changed. Just small changes are OK.

19. Look at this movie site on some popular movies of 2012. Make a table out of the top five giving the ranking and the number of stars this site awards each movie. Can you also copy out some of the graphics and put them on your page too?

20. Check out this page of lists. Find a list that interests you and make a web page that includes a table with at least 5 rows and two columns with headings and a caption on the table. Add at least two graphics.

21. Make a web page that is called Student Life in Dunedin. Give it a heading, some original text, a table and at least two pictures. It should contain too at least three different formatting tags.

22. Use the HTML list method to make a list of 6 different HTML tags.

23. Same as 22 but this time use a differnet set of bullets and have at least one nested list.

24. Go to the page of lists in question 20 and use it to create a 10-item list with an appropriate heading and some interesting graphics.

25) Technical Writing. Write 100 words in your blog about your life so far. Call it "My Career So Far ..". Print of a Notepad copy in class and show your teacher. make sure you've got good sentences, spelling and structure. Think about vocabulary and the right tone which should be technical and formal.

26) Repeat 24 above for these topics: My Ideal Job, My family, Favorite Animal. 100 words on each.

The next few tasks involve image maps. You will need to find an image editor that can tell you about your image's pixel coordinates. I used Pixlr, an extension in Chrome but there are others.

27) Check out the image map explanations in w3 schools here and in quackit here. Try both examples and make sure you understand what the the script does.Take a screen shot of both of them for your blog.

28) Take the w3 schools planetary example and change it so that there are just two regions: the sun and the planets. Use two rectangles to cut up the picture into two parts. Put the code with comments into your blog.

29) Take the quackit example and change the area around the person to be a circle around his head. Put the code with comments into your blog.

30) Find a good picture of the solar system with all the planets and make your own image map so that clicking on a planet gives a close-up of each planet with its name. Code in blog.

31) Same as 30 but this time your click should take you to the appropriate Wikipedia page. Code in blog.

32) Make an image of the map of Europe here. Draw an imaginary north-south line through Prague. Everything to the left of this line we will call "West" and everthing to the right of the line we'll call "East". Make an image map so that clicking anywhere will output a box with East or West correctly. One way to do the box is to look at the quackit example that produces "Me" when you click on the person. There are other ways.

33) Repeat 33 so that clicking on France outputs  the words "Bonjour, monsieur" and nothing if you click elsewhere. Code in blog.

34) Use four different countries so that when you click on them in the map they say "hello" in their own language. Just like 33 above but for four countries. Code in blog.

35) Do the assignment on an HTML page on a country of your choice. Details are in our Moodle page at the start of the Course Documents section. Output into the associated drop box in Moodle. Maximum of 20MB. Bigger than that? See your teacher.

36) iFrames. Check out the quackit iFrame example here. Change the code slightly to give a new size, style or effect and put this code into your blog with a comment on what you've changed.

37) Create a web page on a country of your choice that contains three iFrames with slightly different attributes like size or borders. They can be a mixture of web pages and pictures.

38) Character entity references. Check out these pages in w3 schools and quackit for information on writing special characters. Then write a short blog post that uses ten of these characters.

39) Div and layouts. Check out the quackit page on layouts. Run both the scripts mentioned there. There's one that uses a table to format the page and there's one that uses div. Div is more powerful but harder to use. Make some changes to the div version, comment what you've done, perhaps a colour change, and then save your code to your blog.

40) Technical writing task. Take 200 of your own words to describe something technical. It could be a computer or a piece of software or a gadget. Like a little manual. Make sure it sounds ok with good spelling and editing. There will be a test like this during test week.












Welcome to our class, CT422 Professional Skills, second semester 2013. Here you'll learn skills that will give you an extra edge in IT.


Keep an eye on this blog and do the tasks in the tasks page. Do the answers to any questions, or written code in your own blog.


So your first task is to create a blog in Blogger. When you have done this remember you blog address so it can be pasted into our wiki in Moodle.