Sunday, February 24, 2019

Everyone Can Code, Part 2: Schedule

The ECC 180 hour series will be mostly review of the 90 hour series for units 1 and 2. So we will expect to do the lessons at a pace of about one per hour. For the morning class, this means two lessons per day. For the afternoon class, we can do three lessons per day.

Some lessons have new or difficult concepts, and we will allow extra time for those lessons.

AM Schedule


Week 7
Monday Feb 25Developer Account
Lesson 1.2: Constants and Variables
Lesson 1.3: Operators
Tuesday Feb 26Lesson 1.4: Control Flow
Lesson 1.5: Xcode App
Wednesday Feb 27Lesson 1.6: Debugging
Thursday Feb 28Lesson 1.8: Interface Builder
Unit 1 App: Guided Light
Friday March 1Lesson 2.1: Strings
Lesson 2.2: Functions
Week 8
Monday March 4Lesson 2.3: Structures
Lesson 2.4: Classes
Tuesday March 5Lesson 2.4: Classes (continued)
Lesson 2.5: Collections
Wednesday March 6No class?
Thursday March 7Lesson 2.6: Loops
Lesson 2.7: UIKit
Friday March 8Lesson 2.7: UIKit
Lesson 2.8: Data
Week 9
Monday March 11Lesson 2.9: Controls
Lesson 2.10: Auto Layout
Tuesday March 12Unit 2 App: Apple Pie


PM Schedule


Week 7
Monday Feb 25Developer Account
Lesson 1.2: Constants and Variables
Lesson 1.3: Operators
Lesson 1.4: Control Flow
Tuesday Feb 26Lesson 1.5: Xcode App
Lesson 1.6: Debugging
Wednesday Feb 27Lesson 1.8: Interface Builder
Unit 1 App: Guided Light
Thursday Feb 28Lesson 2.1: Strings
Lesson 2.2: Functions
Lesson 2.3: Structures
Friday March 1Lesson 2.4: Classes
Lesson 2.5: Collections
Week 8
Monday March 4Lesson 2.6: Loops
Lesson 2.7: UIKit
Lesson 2.8: Data
Tuesday March 5Lesson 2.9: Controls
Lesson 2.10: Auto Layout
Wednesday March 6Unit 2 App: Apple Pie
Thursday March 7Lesson 3.1: Optionals
Lesson 3.2: Type Casting
Friday March 8Lesson 3.3: Guard
Lesson 3.4: Scope

Saturday, February 9, 2019

Grades at Progress Report One

Monday night, 9:55 pm

GradeAM ClassPM Class
A65
B94
C112
D20
F13
Median8181
Highest9899
Lowest5326

AM class: Median came up from 73 to 81.

PM class: Median came up from 73 to 81 as students turned in the App Journals.





Tuesday, February 5, 2019

Create a free developer account for Xcode

Please follow the steps of this quick tutorial today.


HVAC App?

This is a dictionary of symbols used in HVAC (Heating, ventilation, and air conditioning). We have an HVAC class at SVCTE. The class needs to learn all these symbols. Could you write an app that helps these students?

HVAC Symbols Information Sheet


Friday, February 1, 2019

App Journal (PM Class only)

PM Class Only

Write up App Journal for lessons 4, 5, 6, and 7.

Due on Monday, Feb. 4.

Share your app journal with me from Google Docs. DO NOT print it out.


Why Morse Code?

Morse code … has become an efficient tool for people that struggle with communication. Tania Finlayson struggled with communication for most of her life due to cerebral palsy. ~ Anthony

Recently Google added the ability to type in Morse code, which to most seems like more of a gimmick rather than a feature. However, to a person with cerebral palsy or others who have trouble keeping their hands steady, using Morse code must be more convenient to use since there are only two buttons to press. ~ Randy

This system may be effective for those with issues in either speaking or typing. Tania Finlayson, an assistive tech developer with cerebral palsy, is a major beneficiary of this app because it has allowed her to communicate. ~ Ayush

Morse code seems inefficient in the sense that a majority of the population do not understand it. 

Finlayson was born with cerebral palsy, which made it difficult for her to talk with others. ~ Catherine

Morse code allows people with speech disabilities to communicate faster than just using a standard keyboard. ~ Huy

The target audience for this app are people who are not able to talk. ~ Brian

Tania’s life was really hard because she has a head stick to point until she got two switches near her head that help her to communicate with other people. ~ Dat

The invention is important because it translates Morse code and speaks out the words aloud in English, giving the user a voice of their own. It allows people with limited mobility to operate a cell phone. ~ Jaiya

This app’s target audience is people who cannot speak and have poor motor skills. It removes communication as a burden for those with cerebral palsy or similar conditions. ~ David


Wednesday, January 23, 2019

Google Adds Morse Code Accessibility Feature to Gboard on iOS

Read the following article about a Morse Code app for iOS. It includes a link to a Google Blog post. Read that article also; it is a more complete version. Your response should demonstrate that you read both whole articles (not just the headline or first paragraph) and understand it.

https://www.macrumors.com/2018/07/12/google-adds-morse-code-to-gboard-on-ios/

In your response, consider answering these questions:

What is Morse Code?
Is Morse Code an efficient way to communicate?
Who is the target audience for this invention or app?
What do you think about this invention or app?
Why is this invention or app important?
What did you learn by reading this article?
What did you find particularly interesting in this article?
Any other issues you find interesting or appropriate.

Your assignment should be written in paragraphs, not bullet points, and the above questions should not appear anywhere in your response.

Rubrics for this assignment are posted here: 

http://mobileapps1819.svctestudents.org/lessons/m0/Writing_Rubrics.pdf

Write up this assignment however you like (Google Docs, MS Word, or ???) but you must print out the assignment (preferably at home) and turn in the printout. Do not share your work with me on Google Docs. If you share with me on Google Docs, I will reduce your grade. This assignment is due on Friday, Jan. 26.


Tuesday, January 15, 2019

Santa Clara student creates DNA test for food allergies

Read the following article and respond. Your response should demonstrate that you read the whole article (not just the headline or first paragraph) and understand it.

https://www.sfchronicle.com/health/article/Why-is-there-not-something-better-Teen-13525123.php

In your response, consider answering these questions:
  1. How did this person learn how to do this?
  2. What purpose does this invention or app serve?
  3. Who is the target audience for this invention or app?
  4. What do you think about this invention or app?
  5. Why is this invention or app important?
  6. What did you learn by reading this article?
  7. What did you find particularly interesting in this article?
Rubrics for this assignment are posted here: http://mobileapps1819.svctestudents.org/lessons/m0/Writing_Rubrics.pdf

Write up this assignment however you like (Google Docs, MS Word, or ???) but you must print out the assignment (preferably at home) and turn in the printout. Do not share your work with me on Google Docs. If you share with me on Google Docs, I will reduce your grade. This assignment is due on Thursday, Jan. 17.


Monday, January 7, 2019

Welcome to Mobile Apps Spring 2018

Focus

This semester, we will focus on learning Swift and Xcode with the objective of making iPhone and iPad apps.

Overview

  1. Basics: Constants, Variables, Data Types, Operators
  2. Control Flow (decisions)
  3. Xcode and Interface Builder
  4. Strings
  5. Functions
  6. Structures and Classes
  7. Collections and Loops
  8. Data
  9. Controls
  10. Auto Layout and Stack Views
  11. Segues and Navigation Controllers
  12. Tab Bar Controllers
  13. Model View Controller (MVC)
  14. Scroll Views and Table Views
  15. Saving Data

Grading

  • 1/3 = Career Readiness: Participation and professionalism.
  • 1/3 = Technical competence: Writing code and turning in a final app.
  • 1/3 = Academic preparation: App planning, research, and idea generation.

Tentative Schedule

WeekAM ClassPM Class
190-hour lessons 9-1690-hour lessons 1-8
290-hour lessons 17-20
180-hour lessons 1.1-1.3
90-hour lessons 9-20
3180-hour lessons 1.4-1.6180-hour lessons 1.1-1.5
4180-hour lessons 1.7-1.8; 2.1-2.2180-hour lessons 1.6-1.8
5180-hour lessons 2.3-2.5180-hour lessons 2.1-2.4
6180-hour lessons 2.6-2.9180-hour lessons 2.5-2.8
7180-hour lessons 2.10-2.11; 3.1180-hour lessons 2.9-2.11
8180-hour lessons 3.2-3.4180-hour lessons 3.1-3.4
9180-hour lessons 3.5-3.7180-hour lessons 3.5-3.7
10180-hour lessons Unit 4...180-hour lessons Unit 4...
11-12Additional TutorialsAdditional Tutorials
13-18Final App ProjectFinal App Project

And more ...

You will also write more in your App Journal. You will study apps written by other students. You will do more app tutorials than those above. And you will plan and create your own useful app from beginning to end.



Tuesday, January 1, 2019

Homework Policies

Sharing Google Docs

Share your Google Docs with me at this email address:

mbrautigam@metroed.net

Please do not use any email address that appears to be MetroED but is actually Gmail. That email address has been decommissioned.

Turning in multi-file projects using ZIP/compress

This applies to:
  • Web sites with multiple files 
  • Logos (multiple formats) 
  • Xcode projects 
  • Perhaps others ... 
You must put all the files together into a folder and zip them up, then upload them to the server.

Playgrounds must be zipped up but you do not need to put them into a folder first.

Resubmit Policy

Written Assignments

You can upgrade written assignments at any time by turning in a new printed copy with the old version (or versions) attached behind.

The reason for this is that we want you to have every opportunity to improve your English skills.

Web and Xcode Assignments

Don't bother turning in a technical assignment if you got 80% (usually 8 points) or more on it. I can revise your grade upward, but then I'll have to assess a late penalty.

The lesson is: turn in all your technical assignments on time.

SVG code template

Use this code to get started using SVG:

<svg width='600' height='400' viewBox='0 0 600 400'
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink= "http://www.w3.org/1999/xlink">

    <!-- the clipping paths and masks will go here -->

    <defs>
    </defs>

    <!-- the shapes and stuff will go here -->

    <rect x='0' y='0' width='600' height='400' fill='beige' />

</svg>

Radial gradients:

http://www.w3schools.com/svg/svg_grad_radial.asp

HTML Code Template

Here is a template for the minimal complete HTML page. If your page doesn't have all these elements, you should edit your page to include all of them. When you start a new page, you can copy and paste this code to get started.

<!DOCTYPE html>
<html>
<head>
    <!--
    YOUR NAME HERE, date, project name, class, etc.
    -->
    <meta charset='utf-8' />
    <title>My Web Page</title>
    <style type='text/css'>
    /* styles go here */

    </style>
</head>

<body>
    <h1>My Web Page</h1>
    <!-- page content will go here -->

    <script type='text/javascript'>
    // scripts will go here

    </script>
</body>
</html>

Add this line in the <head> section if you use responsive design:
    <meta name="viewport" content="width=device-width" /> 

Here is the code for a bullet list:

<ul>
    <li>Mission College
    <li>Ohlone College
    <li>West Valley College
    <li>Foothill College
</ul>

Here is the code for a table:

<table>
    <tr>
        <th>Key</th>
        <th>Command</th>
    </tr>
    <tr>
        <td>Cmd-Space</td>
        <td>Spotlight</td>
    </tr>
    <tr>
        <td>Cmd-S</td>
        <td>Save</td>
    </tr>
</table>

Here is an excellent tutorial on HTML tables (thank you to the student who linked this to your page):

http://www.w3schools.com/html/html_tables.asp

Spring 2018

Any posts beyond this point are from Spring 2018 and are here for informational purposes only.

Friday, May 4, 2018

Tips

Hide status bar

You apparently need to put this in every view controller where you want the status bar hidden.
override var prefersStatusBarHidden: Bool {
    return true
}


Incorporating video into your iOS app

Introduction

This tutorial should take 20 to 30 minutes to complete. Yes, it's really quick.

Apple does not have a widget or view for playing a video in. Instead, starting a video using the AVPlayerViewController will cause a segue to a popup where your video will play full screen. So, you'll probably want to have a button that initiates the popup and playback of your video.

You can play a video that is on the internet through its URL. You can also play a video that you store as a local file within your app. (Just like you store other files such as images, sounds, and fonts within your app.)

Materials needed

  1. Do the iOS section of Tutorial #1 above. Note that the page has instructions for both iOS and MacOS. Do only the iOS portion, about half the web page. When you get to the middle of the web page, and it says "Your app is complete" and then it goes on to Mac OS, you're finished with this step.
  2. Run the app and verify that the video plays when you tap the button.

Part 2

  1. Tutorial #2 above is similar to the first tutorial, but it has a different link to a different video. In the app you already made, add a second button that plays this video instead: https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4. You could make a second action method to play the video, but instead, just use the same action method, and distinguish between the buttons using their tags. When you tap the button with the other tag, it should trigger the playback of the alternate video URL.
  2. Run the app and verify that both videos play.

Part 3

  1. Download the nature.mp4 video file and drag it into your project. Make sure to check the "Add to targets" checkbox. 
  2. Look at the project settings (blue folder at the top of the Project navigator). Look at the Build Phases. Look at the Copy Bundle Resources. Check that nature.mp4 is in the list. (See the tutorial for pictures of how this works.)
  3. Create a third button to play the local nature.mp4 file.
  4. Create an action for the third button and use Tutorial #3 above to write the code. See the green checkmark for the appropriate code to write. It's best to type in this code instead of copy and paste. The code to play a local file is similar to the code for playing a remote URL. It is also similar to the code for playing audio (c.f. the Noise Maker project). 
  5. Run the app and verify that all three videos play properly.



Thursday, April 19, 2018

Game of Life, Part 1

Step one: Storyboard

  1. Create a new Xcode app from scratch, iOS Single View Application, Swift.
  2. In the project settings, uncheck the landscape orientations so the app will work only in portrait mode.
  3. On the storyboard, add a UIView (View).
    1. Give it 1:1 aspect ratio
    2. Give it a background color so you can see where it is
  4. Add a caption above the square UIView that says Game of Life or something appropriate.
  5. Below the UIView, put 6 buttons in a row that say: Clear, Start, Stop, Step, +, and –. 
  6. Put the 6 buttons into a Stack View.
  7. Put the buttons, the UIView, and the caption into a Stack View.
  8. Add constraints to the main stack view, using the I-beam tool, to keep it 8 px away from the right and left edges of the screen.

Step two: Code

  1. Add a new file: 
    1. Cocoa Touch Class, 
    2. Derived from UIView,
    3. call it CellView. Be careful of upper and lower case letters here.
  2. Attach the new CellView class to the UIView on the storyboard.

Step three: figure out how to draw a grid.

  1. Math

Wednesday, March 7, 2018

Color Mix with Stack Views

How I did it:

  1. Make sure each slider has a width
  2. Make sure the color view has a height
  3. Make the stack views
  4. Test in landscape orientation and also on smaller and larger devices.
Questions to ask next:
  1. What, if anything, is clunky in this app? (Think: redundant)
  2. Could you make the app better?

Monday, February 26, 2018

Lesson 21: What's next?

With all you’ve learned in this course, you now have the skills to write lots ​
of apps.
You might wonder what kind of apps to write. Here are some suggestions ​
to get you started:
  • Look through your app journal for ideas. What are apps that you think ​
you can write with your current skill set?
  • Redo an app from the course without looking at the directions (except when you need to).
  • Brainstorm some fun ways to use combinations of images, text, buttons, and any other controls you’ve used.
You can also try making changes to the apps you wrote during the course:
  • Write a version of ElementQuiz about something more personal to you, or with questions and answers.
  • Keep track of the moves a user makes in Rock, Paper, Scissors, so the app can make better guesses.
  • Expand AnimalSounds to include more animal buttons and animal sounds.
In the end, you’ll improve your skills if you work on an app that hooks up actions and outlets, uses stack views and constraints, and uses Swift code to make something happen. After enough time, these challenges will become second nature to you.

What’s Next?
  • What app should you build next?​

  • What problem do you want to solve?​

  • What game do you want to create?

What now?
  • The answer is up to you.


Wednesday, February 14, 2018

Things to think about

Could you make an adaptive interface for the Color Sliders (Lesson 17) so that it will run on a smaller or larger phone, and in both landscape and portrait orientations?

How could you make the Color Sliders app look better on an iPad, which has a much larger screen than a phone?

How could you add more elements to the element quiz (Lesson 18) without making graphics for each element?

Can you add more animals to the animal sounds app? (Lesson 18)

Find me an online lesson/tutorial (perhaps a game) we have sufficient knowledge to do together.

Find me an online Apple Watch lesson/tutorial that we have sufficient knowledge to do together.

How could we make any of these apps even better, in addition to the ideas above?