Skip to content

Commit

Permalink
Updates for tomorrow's lecture
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbloomfield committed Sep 4, 2023
1 parent 830a9e0 commit 81b7d7f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
3 changes: 2 additions & 1 deletion hws/maketabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_'<p><a href=\"index.html\">Go up to the ICS HW page</a> (<a href=\"index.md\">md</a>)</p>'_'<p><a href=\"index.html\">Go up to the ICS HW page</a> (<a href=\"index.md\">md</a>) | <a href=\"" + outfilename + "\">view tabbed version</a></p>'_g " + sys.argv[1])
os.system("sed s_'<p><a href=\"index.html\">Go up to the ICS HW page</a> (<a href=\"index.md\">md</a>)</p>'_'<p><a href=\"index.html\">Go up to the ICS HW page</a> (<a href=\"index.md\">md</a>) | <a href=\"" + outfilename + \
"\">view tabbed version</a></p>'_g " + sys.argv[1] + " > tmp.foo; /bin/mv -f tmp.foo " + sys.argv[1])
17 changes: 15 additions & 2 deletions markdown.css
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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+');
}

}
.copylink {
height:13px;
width:13px;
display:inline-block;
margin-right:5px;
vertical-align:middle;
background-repeat:no-repeat;
cursor:pointer;
}
14 changes: 13 additions & 1 deletion slides/ics.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 <h1> title and very large */
img.cclogotitle {
width: 200px;
Expand Down Expand Up @@ -545,4 +557,4 @@ div.twitter-tweet {
padding: 0 !important;
}

span.hotpink { color:hotpink; }
span.hotpink { color:hotpink; }
25 changes: 25 additions & 0 deletions uva/daily-announcements.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,31 @@ <h4 class="xkcd"></h4>



<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<section>

<section>
<h2 class='xkcd'>Smart Home Security</h2><img src="https://imgs.xkcd.com/comics/smart_home_security.png" title="If they&#39;re getting valuable enough stuff from you, at least the organized crime folks have an incentive to issue regular updates to keep the appliance working after the manufacturer discontinues support." alt="Smart Home Security" srcset="https://imgs.xkcd.com/comics/smart_home_security_2x.png 2x" style="image-orientation:none" class='stretch'><p class='center'><a href='http://xkcd.com/1966/'>xkcd # 1966</a></p>
</section>

<section data-markdown>
## 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#/)
</section>

</section>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<section>
Expand Down

0 comments on commit 81b7d7f

Please sign in to comment.