From 81b7d7f07c85d014212546d598ed1d6bb91f1f41 Mon Sep 17 00:00:00 2001 From: Aaron Bloomfield Date: Sun, 3 Sep 2023 22:37:14 -0400 Subject: [PATCH] Updates for tomorrow's lecture --- hws/maketabs.py | 3 ++- markdown.css | 17 +++++++++++++++-- slides/ics.css | 14 +++++++++++++- uva/daily-announcements.html | 25 +++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/hws/maketabs.py b/hws/maketabs.py index 3a31e7c..68d3dcc 100755 --- a/hws/maketabs.py +++ b/hws/maketabs.py @@ -105,4 +105,5 @@ def handle_data(self, data): print(body,file=fout) # add in the 'tabbed version' link back into the source -os.system("sed -i s_'

Go up to the ICS HW page (md)

'_'

Go up to the ICS HW page (md) | view tabbed version

'_g " + sys.argv[1]) +os.system("sed s_'

Go up to the ICS HW page (md)

'_'

Go up to the ICS HW page (md) | view tabbed version

'_g " + sys.argv[1] + " > tmp.foo; /bin/mv -f tmp.foo " + sys.argv[1]) diff --git a/markdown.css b/markdown.css index 9da9dc0..d4b4dae 100644 --- a/markdown.css +++ b/markdown.css @@ -1,4 +1,4 @@ -/* This file is part of the http://github.com/uva-cs/pdr +/* This file is part of the http://github.com/aaronbloomfield/ics * repo, and has the same license as the rest of the repo (CC BY-SA) * * The formatting is loosely based on that of github.com's README.md @@ -180,5 +180,18 @@ img.formulabig { div.cclogos img { width: 50px; max-height: 50px; +} + +.copy_img { + background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBzdHlsZT0iZmlsbDojODA4MDgwIiBkPSJNNDMzLjk0MSA2NS45NDFsLTUxLjg4Mi01MS44ODJBNDggNDggMCAwIDAgMzQ4LjExOCAwSDE3NmMtMjYuNTEgMC00OCAyMS40OS00OCA0OHY0OEg0OGMtMjYuNTEgMC00OCAyMS40OS00OCA0OHYzMjBjMCAyNi41MSAyMS40OSA0OCA0OCA0OGgyMjRjMjYuNTEgMCA0OC0yMS40OSA0OC00OHYtNDhoODBjMjYuNTEgMCA0OC0yMS40OSA0OC00OFY5OS44ODJhNDggNDggMCAwIDAtMTQuMDU5LTMzLjk0MXpNMjY2IDQ2NEg1NGE2IDYgMCAwIDEtNi02VjE1MGE2IDYgMCAwIDEgNi02aDc0djIyNGMwIDI2LjUxIDIxLjQ5IDQ4IDQ4IDQ4aDk2djQyYTYgNiAwIDAgMS02IDZ6bTEyOC05NkgxODJhNiA2IDAgMCAxLTYtNlY1NGE2IDYgMCAwIDEgNi02aDEwNnY4OGMwIDEzLjI1NSAxMC43NDUgMjQgMjQgMjRoODh2MjAyYTYgNiAwIDAgMS02IDZ6bTYtMjU2aC02NFY0OGg5LjYzMmMxLjU5MSAwIDMuMTE3LjYzMiA0LjI0MyAxLjc1N2w0OC4zNjggNDguMzY4YTYgNiAwIDAgMSAxLjc1NyA0LjI0M1YxMTJ6Ii8+PC9zdmc+'); +} -} \ No newline at end of file +.copylink { + height:13px; + width:13px; + display:inline-block; + margin-right:5px; + vertical-align:middle; + background-repeat:no-repeat; + cursor:pointer; +} diff --git a/slides/ics.css b/slides/ics.css index 930cbf3..4da3832 100644 --- a/slides/ics.css +++ b/slides/ics.css @@ -459,6 +459,18 @@ img.cclogomed, div.cclogomed img, img[src$='#cclogomed'] { box-shadow: none !important; } +/* In a slide, but smaller than the previous one */ +img.cclogosmall, div.cclogosmall img, img[src$='#cclogosmall'] { + width: 70px; + max-height: 70px; + float: left; + background-color: transparent !important; + margin-right: 10px !important; + margin-top: 0 !important; + margin-bottom: 0 !important; + box-shadow: none !important; +} + /* on a slide column heading page, it appears above the

title and very large */ img.cclogotitle { width: 200px; @@ -545,4 +557,4 @@ div.twitter-tweet { padding: 0 !important; } -span.hotpink { color:hotpink; } \ No newline at end of file +span.hotpink { color:hotpink; } diff --git a/uva/daily-announcements.html b/uva/daily-announcements.html index f4b151c..d75c5e8 100644 --- a/uva/daily-announcements.html +++ b/uva/daily-announcements.html @@ -70,6 +70,31 @@

+ + +
+ +
+

Smart Home Security

Smart Home Security

xkcd # 1966

+
+ +
+## Lecture 6: Mon, September 4th +- Office hours are underway and listed on the [Canvas landing page](https://canvas.its.virginia.edu/courses/79086) +- Support requests are now open +- Canvas now has anonymous feedback! +- Homeworks + - [Homework 2: Ethics](../hws/hw-ethics-tabbed.html) is out and due next Fri, Sep 8th by midnight + - Homework 3: RSA (not yet ready) will be out late this week + - This homework will have a week and a half to complete, and will be due Tuesday, September 19th +- Readings: due today: [ACM Code of Ethics](https://www.acm.org/code-of-ethics), [Reflections on Trusting Trust](https://dl.acm.org/citation.cfm?id=358210), [Morris Worm Wikipedia page](https://en.wikipedia.org/wiki/Morris_worm) +- Everybody has to sign the Ethics Honor Pledge; the link is on the [Canvas landing page](https://canvas.its.virginia.edu/courses/59093) +- Today we will start [encryption](../slides/encryption.html#/) + - We'll come back to [policy](../slides/policy.html#/) +
+ +
+