Parker Glynn-Adey

Simple Stop Motion with ffmpeg

Posted in Computers, Uncategorized by pgadey on 2020/09/12

Andrew Lindesay has a nice script for simple script for using ffmpeg to do stop motion:


ffmpeg -framerate 10 \
-pattern_type glob -i '*.JPG' \
-vf scale=640:-1 -c:v libx264 -pix_fmt yuv420p \
out.mp4

This works great for compiling photos shot by a GoPro!
The shots are labelled chronologically by frame number:


G0107340.JPG
G0107341.JPG
G0107342.JPG
G0107343.JPG
G0107344.JPG
G0107345.JPG
G0107346.JPG
G0107347.JPG
G0107348.JPG
G0107349.JPG

So, the -pattern_type glob -i '*.JPG' argument picks them up in order.

The argument scale 640:-1 automatically resizes frames to 640xY and preserves the aspect ratio. This might not be what you want, but it makes for small videos.

Tagged with: , ,

Interview with Conway

Posted in Math, Uncategorized by pgadey on 2020/04/21

The Simons Foundation has a lovely series of interview with John Conway.
Lots of stories and insights. He lead a storied life.

John Conway

https://www.simonsfoundation.org/2014/04/04/john-conway/

Polya on Guessing

Posted in Math, Uncategorized by pgadey on 2019/04/19
Tagged with:

Math Club Geometry Training Session

Posted in Uncategorized by pgadey on 2019/01/31

These are some questions that I prepared for Math Club. The problems follow Paul Zeitz’s excellent book The Art and Craft of Problem Solving. You can find this hand-out is here:
https://pgadey.ca/teaching/2019-math-club/geometry-training-talk/geometry-training-talk.pdf (tex)

1. Advice and Suggestions

  • Draw big diagrams. Lots of them.
  • Use multiple colours to keep track on information.
  • Draw several examples with different lengths/angles.
  • Avoid coordinates.

2. Facts and Questions

Fact 1 Congurence conditions for triangles: (SAS, ASA, SSS, AAS)
Side-angle-side, angle-side-angle, side-side-side, angle-angle-side.

Question 2 Why is angle-side-side not a congruence condition?

Fact 3 If an angle {\angle A} measures a straight line, then {\angle A = \pi = 180^\circ}.

Question 4 Show that {\angle ECD = \angle ACB} using the Fact~3.

vertical-angles

Fact 5 (Transversals) {AB} and {CD} are parallel iff {\angle B = \angle D}.

transversal

Question 6 Show that the sum of the interior angles of a triangle is {\pi}. (Idea: Add a new parallel line.)

Question 7 For any triangle {\triangle ABC}, the exterior angle at {A} is the sum of the interior angles at {B} and {C}.

Question 8 (Parallelograms) Use congruence and parallels to show:

  • The opposite sides of a parallelogram have the same length.
  • The opposite angles of a parallelogram are equal, and adjacent angles are “supplementary” (sum to {\pi}).
  • The diagonals of a parallelogram bisect each other.
    (Idea: Introduce triangles.)

Question 9 (Isoceles triangles) A triangle {\triangle ABC} is isoceles if {|AB| = |AC|}. Show that: If {\triangle ABC} is isoceles then {\angle B = \angle C = 90^\circ - (\angle A)/2}.

Question 10 Let {\triangle ABC} be a triangle. Let {D}, {E}, and {F} be the midpoints of {BC}, {AC}, and {AB} respectively. Show that the lines: {DE}, {EF}, and {FD}, dissect {\triangle ABC} in to congruent triangles.

(Big Idea: Introduce parallels to {BC} and {AC} at {D}. These will create new “phantom points” on {BC} and {AC}. These new points will be very helpful because of our theory of parallelograms.)

Fact 11 (Circles and Chords) If any two are true, then all three are true.

  • The line passes through the center of the circle.
  • The line passes through the midpoint of the chord.
  • The line line is perpendicular to the chord.

Fact 12 (Circles and Tangents) A tangent to a circle is perpendicular to the radius at the point of tangency. Also, a perpendicular to a tangent line placed at the point of tangency, will pass through the center of the center of the circle.

Question 13 Suppose that {A} is outside a circle. If {AX} and {AY} are tangent to the circle, then {|AX|=|AY|}.

Question 14 (Inscribed Angle Theorem) Consider a circle centered at {O} with points {A,B,C} on the perimeter of the circle. Show that {\angle ABC = 2\angle AOC}. (Idea: Chase angles.)

inscribed-angle-theorem

Question 15 Consider a semi-circle with base {AC}.
If {B} is on the perimeter of the semi-circle, show that {\angle ABC = 90^\circ}.

Question 16 (Circumcircles) The circumcircle of a triangle {\triangle ABC} is a circle passing through {A}, {B}, and {C}.

  • Suppose that a circumcircle exists. Show that its center is the intersection point of the perpendicular bisectors of the sides of the triangle. (If a circumcircle exists, then it has a unique center.)
  • Given a triangle, any two perpendicular bisectors will intersect in a point equidistant from all three vertices. (Any triangle has a circumcenter.)
  • All three perpendicular bisectors intersect in a unique point, the “circumcenter”.

Question 17 (Incircles) The incircle of a triangle {\triangle ABC} is a circle tangent to {AB}, {BC}, and {AC}.

  • Suppose that an incircle exists. Show that its center is the intersection of any two angle bisectors.
  • Show that the intersection of any two angle bisectors is the center of an incircle and this point is unique.
  • All three angle bisectors intersect in a unique point, the “incenter”.

3. Contest Problems

Question 18 (Canada 1991) Let {C} be a circle and {P} a point in the plain. Each line through {P} that interesects {C} determines a chord of {C}. Show that the midpoints of these chords form a circle.

Question 19 (Rochester 2012) Let {\triangle ABC} be an isoceles triangle with {AC = BC} and {\angle ACB = 80^\circ}. Consider and interior point of this triangle such that {\angle MBA = 30^\circ} and {\angle MAB = 10^\circ}. Find with proof, the measure {\angle AMC}.

Question 20 (Rochester 2013) Let {\triangle ABC} be a triangle with {\angle BAC = 120^\circ}. Suppose the bisectors of {\angle BAC}, {\angle ABC}, and {\angle ACB} meet {BC}, {AC}, and {AB} at points {D}, {E}, {F}, respectively. Prove that {\triangle DEF} is a right angled triangle.

MAT B41 — Week 8

Posted in 2018 -- MAT B41, Lecture Notes, Uncategorized by pgadey on 2018/07/03
Parker comes back! Public lecture on Friday in IC 200 at 11am.

Additional resources:

Suggested Exercises:

  • Course Notes: Quadratic forms and determinants
  • 3.3 Extrema of Real-Valued Functions: 1,2,3,11,13,21,29,31,52

Past Finals:

  • Final 2015: Let f(x,y,z) = x^3 + x^2 + y^2 + z^2 - xy - zx. Find and classify the critical points of f.
  • Final 2016: Let f(x,y,z) = z^3 - x^2 + y^2 - 6yz + 4x + 4y + 6z + 1. Find and classify the critical points of f.

Notes:

Tagged with: ,

MAT B41 — Week 7

Posted in 2018 -- MAT B41, Lecture Notes, Uncategorized by pgadey on 2018/06/26
unnamed
Midterms are graded! New list of suggested exercises is available!

There is a new list of suggested exercises available here.

Suggested Exercises

  • Chapter 1 Review (p. 71): 1, 4, 5, 7, 8, 16, 18, 20
  • Chapter 2 Review (p. 145): 1, 2, 3, 5, 6, 10, 15, 25
Tagged with: ,

STLHE 2018 — Day 0 — Introduction

Posted in Teaching and Learning, Uncategorized by pgadey on 2018/06/19

I am currently at Scholarship of Teaching and Learning in Higher Education 2018 in Sherbrooke, QC. The plan is to post a short little video everyday of the conference to keep people updated on how things are going. Stay tuned!

Tagged with: , ,

Mid-Course Survey

Posted in Uncategorized by pgadey on 2018/06/14

800px-Electrodynamics_vector_calculus_review_gradient.svg

The mid-course survey is available here.

MAT B41 — Week 6

Posted in 2018 -- MAT B41, Lecture Notes, Uncategorized by pgadey on 2018/06/12

Term Test is this Friday. Reading week is next week!

We have a modified class schedule this week.

  • Tuesday: Taylor Series and Review.
  • Thursday: Class Survey and Work Period, everyone is invited to bring problems to practice.
  • Friday: Term Test, will be held Friday afternoon.

mat-b41-term-test-info

Term Test Policy

From the Course Syllabus, we have the following policy:

The Term Test will be written outside of regular lecture hours. If you cannot attend reasons of creed or religion, then you will must contact Parker as early as possible to arrange for an alternative sitting. If you miss the midterm test for medical reasons, you must contact Parker within 24 hours of the test.

You will need to send a UTSC Verification of Student Illness or Injury form:

Students who miss the midterm test will be asked to provide the Verification Form and a timetable for the next five days. You will be given only one opportunity to write the make-up test.

Parker scheduled to the midterm to avoid Ramadan, but he forgot about Eid Al-Fitr. If you want to celebrate Eid with your family, instead of writing the midterm at the usual time, please contact Parker immediately.

The Week after Reading Week!

Parker will be traveling to STLHE 2018 and the IBL Workshop.

Our Tuesday evening lecture will be delivered by Ivan Khatchatourian.
ivan

Our Thursday morning lecture will be delivered by Ray Grinnell.
Ray_Grinnel

Tagged with: ,

MAT B41 — Mock Midterm!

Posted in Uncategorized by pgadey on 2018/06/08

mock-midterm

Mock Midterm was today in IC 130. Midterm Test next week!