Thu Jan 23 03:12:04 UTC 2020 modifications

master
Tait Hoyem 4 years ago
parent be18e6807c
commit 960443264d

@ -0,0 +1,14 @@
---
author: tait
title: "RSA: what is it?"
layout: post
---
In this article I will explain what RSA is, and where it is used at a high level. The next parts to this will focus more on what RSA is at a technical level: how it uses numbers to store secrets in the open. Here, I plan to explain simple the idea.
Let's imagine we have two people. Bob, and Alice. Bob wants to send Alice a love letter. But Eve, the sneaky wreetch, wants to listen in on Alice and Bob's conversation. How can we avoid sending messeges between Alice and Bob like postcards would be sent in the mail: the postman, sorters, and the delivery man can all read it?
We could, in theory, use a Ceaser Cipher to do this. So Alice can send a messege with a key like A=B, meaning that all A's get converted to B's, B's to C's, C's to D's, et cetera. However, this solution fails when we realize that Bob and Alice would have to agree on some key to make this work. Either A=B, or 1, meaning shift the letters by one character. How can we get them to share this key without meeting in person, where Alice could just tell Bob in person, removing he need for a key.
Well, what if we used something called asymetric encryption? This would mean we have two keys. A and B, A can decrypt any messeges encrypted with B, and B can decreypy any messeges encrypted with A. But A cannot decrypt its own messeges, and neither can B. You choose one of these keys, it doesn't matter which one, to be your "public key" (although it acts more like a lock), and one to be your private key. The key that you do not share anywhere. You give anyone your lock. You put it on your email signatue, you put it on your blog. You share this! Then anyone who wants to send a secret messege to you can send you a messege and use your public lock (key) to encrypt the messege.
In this scenario, we could get Alice to have one set of these keys, and Bob to have one set of these keys. They can exchange public keys, allowing Bob to communicate with Alice and vice-versa. Now Alice can send "Bob, I ove you!" over the wire! It will look like "iU0oo--!@EFb` z" or some such other nonesense to anyone else, and Eve especially, listening in.

@ -2,5 +2,7 @@
link: /
- name: Blog
link: /blog.html
- name: Podcast
link: /podcast.html
- name: Code
link: https://github.com/TTWNO/

@ -1,13 +0,0 @@
---
layout: post
author: jill
title: (For Testing Purposes) Bananas
---
A banana is an edible fruit botanically a berry produced by several kinds
of large herbaceous flowering plants in the genus Musa.
In some countries, bananas used for cooking may be called "plantains",
distinguishing them from dessert bananas. The fruit is variable in size, color,
and firmness, but is usually elongated and curved, with soft flesh rich in
starch covered with a rind, which may be green, yellow, red, purple, or brown
when ripe.

@ -1,6 +0,0 @@
---
author: tait
title: "RSA: what is it?"
layout: post
---
Scary sounding title isn't it? I promise it is not as scary as it sounds. In this article I will explain the basic premis behind RSA encryption, why we need it, how it is vulnerable, and to what extent we can mitigate these vulnerabilities.

@ -0,0 +1,32 @@
---
layout: post
author: tait
title: Padding And Margin
---
Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.
Here is an image from the World Wide Web Consortium (W3C) who sets the standards for the web.
![The W3C standard for padding, margin, borders and width. Width encompases the inner element + padding; the border then encompases it. The margin is the space beyond the border and in between other elements.](/assets/img/w3c-padding-margin.png "W3C border, padding, margin standard.")
Now although this image shows all the different types of spacing as equal, the majority of the time these will mostly be padding (inner) and margin (outer). Padding is the inner space between the element and its border; margin is the outer space between two different elements.
Within the margin the user is unable to press any links or execute any javascript code. It is *empty* space. If each `<link>` on your navigation bar has 10 pixels of margin, then there would be 20 pixels in between each `<link>` that would *not* be clickable by the user.
If you have `<link>`s on your navigation bar with *padding* set to 20 pixels, however, then there will be 20 pixels on each side of the `<link>` text where the user *is* able to click.
If that part is confusing, try thinking about it in terms of whether `background-color` would apply.
Attribute | **Padding** | **Margin**
--- | --- | ---
Spacing | within element | between elements
`background-color` applies | Yes | No
In summary:
* **Padding**: the space within a tag which is still part of the same tag. `background-color` applies.
* **Margin**: the space in between two seperate tags. `background-color` does not apply; it is empty space.
* **Border**: the space in between the two; it surrounds the padding, but is not the margin. It looks nice somtimes, but it has no non-visual function. `background-color` does not apply.
I hope this covers the basics of margin and padding! Happy coding!

@ -35,10 +35,10 @@ nav {
margin: 0px;
}
nav > a:first-of-type {
padding-left: 0;
margin-left: 0;
}
nav > a {
padding: 1em;
margin: 1em;
color: $nav-link-color;
font-weight: bold;
font-family: helvetica, arial, sans-serif;
@ -82,6 +82,35 @@ label {
font-size: .8em;
}
table,
table tr,
table td,
table th{
border: 1px solid rgba(0, 0, 0, 0.5);
border-collapse: collapse;
padding: 5px;
font-weight: normal;
}
table {
width: 75%;
margin: auto;
}
table.post-list,
table.post-list tr,
table.post-list td {
width: 100%;
border: none;
padding-left: 0;
}
img {
display: block;
width: 55%;
margin-left: auto;
margin-right: auto;
}
@media screen and (max-width: 600px){
body {
width: 90%;

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RSA: what is it?</title>
<link rel="stylesheet" href="/assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<nav>
<a href="/" >Home</a>
<a href="/blog.html" >Blog</a>
<a href="/podcast.html" >Podcast</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>
<h1>RSA: what is it?</h1>
<h4 class="post-date line-under"></h4>
<div class="article">
<p>In this article I will explain what RSA is, and where it is used at a high level. The next parts to this will focus more on what RSA is at a technical level: how it uses numbers to store secrets in the open. Here, I plan to explain simple the idea.</p>
<p>Lets imagine we have two people. Bob, and Alice. Bob wants to send Alice a love letter. But Eve, the sneaky wreetch, wants to listen in on Alice and Bobs conversation. How can we avoid sending messeges between Alice and Bob like postcards would be sent in the mail: the postman, sorters, and the delivery man can all read it?</p>
<p>We could, in theory, use a Ceaser Cipher to do this. So Alice can send a messege with a key like A=B, meaning that all As get converted to Bs, Bs to Cs, Cs to Ds, et cetera. However, this solution fails when we realize that Bob and Alice would have to agree on some key to make this work. Either A=B, or 1, meaning shift the letters by one character. How can we get them to share this key without meeting in person, where Alice could just tell Bob in person, removing he need for a key.</p>
<p>Well, what if we used something called asymetric encryption? This would mean we have two keys. A and B, A can decrypt any messeges encrypted with B, and B can decreypy any messeges encrypted with A. But A cannot decrypt its own messeges, and neither can B. You choose one of these keys, it doesnt matter which one, to be your “public key” (although it acts more like a lock), and one to be your private key. The key that you do not share anywhere. You give anyone your lock. You put it on your email signatue, you put it on your blog. You share this! Then anyone who wants to send a secret messege to you can send you a messege and use your public lock (key) to encrypt the messege.</p>
<p>In this scenario, we could get Alice to have one set of these keys, and Bob to have one set of these keys. They can exchange public keys, allowing Bob to communicate with Alice and vice-versa. Now Alice can send “Bob, I ove you!” over the wire! It will look like “iU0oo!@EFb` z” or some such other nonesense to anyone else, and Eve especially, listening in.</p>
</div>
</div>
</body>
</html>

@ -1,38 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>(For Testing Purposes) Bananas</title>
<link rel="stylesheet" href="/assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<nav>
<a href="/" >Home</a>
<a href="/blog.html" >Blog</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>
<h1>(For Testing Purposes) Bananas</h1>
<h4 class="post-date line-under">Wednesday, January 01 2020</h4>
<div class="article">
<p>A banana is an edible fruit botanically a berry produced by several kinds
of large herbaceous flowering plants in the genus Musa.</p>
<p>In some countries, bananas used for cooking may be called “plantains”,
distinguishing them from dessert bananas. The fruit is variable in size, color,
and firmness, but is usually elongated and curved, with soft flesh rich in
starch covered with a rind, which may be green, yellow, red, purple, or brown
when ripe.</p>
</div>
</div>
</body>
</html>

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RSA: what is it?</title>
<link rel="stylesheet" href="/assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<nav>
<a href="/" >Home</a>
<a href="/blog.html" >Blog</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>
<h1>RSA: what is it?</h1>
<h4 class="post-date line-under">Friday, January 10 2020</h4>
<div class="article">
<p>Scary sounding title isnt it? I promise it is not as scary as it sounds. In this article I will explain the basic premis behind RSA encryption, why we need it, how it is vulnerable, and to what extent we can mitigate these vulnerabilities.</p>
</div>
</div>
</body>
</html>

@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Padding And Margin</title>
<link rel="stylesheet" href="/assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<nav>
<a href="/" >Home</a>
<a href="/blog.html" >Blog</a>
<a href="/podcast.html" >Podcast</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>
<h1>Padding And Margin</h1>
<h4 class="post-date line-under">Wednesday, January 22 2020</h4>
<div class="article">
<p>Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.</p>
<p>Here is an image from the World Wide Web Consortium (W3C) who sets the standards for the web.</p>
<p><img src="/assets/img/w3c-padding-margin.png" alt="The W3C standard for padding, margin, borders and width. Width encompases the inner element + padding; the border then encompases it. The margin is the space beyond the border and in between other elements." title="W3C border, padding, margin standard." /></p>
<p>Now although this image shows all the different types of spacing as equal, the majority of the time these will mostly be padding (inner) and margin (outer). Padding is the inner space between the element and its border; margin is the outer space between two different elements.</p>
<p>Within the margin the user is unable to press any links or execute any javascript code. It is <em>empty</em> space. If each <code class="highlighter-rouge">&lt;link&gt;</code> on your navigation bar has 10 pixels of margin, then there would be 20 pixels in between each <code class="highlighter-rouge">&lt;link&gt;</code> that would <em>not</em> be clickable by the user.</p>
<p>If you have <code class="highlighter-rouge">&lt;link&gt;</code>s on your navigation bar with <em>padding</em> set to 20 pixels, however, then there will be 20 pixels on each side of the <code class="highlighter-rouge">&lt;link&gt;</code> text where the user <em>is</em> able to click.</p>
<p>If that part is confusing, try thinking about it in terms of whether <code class="highlighter-rouge">background-color</code> would apply.</p>
<table>
<thead>
<tr>
<th>Attribute</th>
<th><strong>Padding</strong></th>
<th><strong>Margin</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>Spacing</td>
<td>within element</td>
<td>between elements</td>
</tr>
<tr>
<td><code class="highlighter-rouge">background-color</code> applies</td>
<td>Yes</td>
<td>No</td>
</tr>
</tbody>
</table>
<p>In summary:</p>
<ul>
<li><strong>Padding</strong>: the space within a tag which is still part of the same tag. <code class="highlighter-rouge">background-color</code> applies.</li>
<li><strong>Margin</strong>: the space in between two seperate tags. <code class="highlighter-rouge">background-color</code> does not apply; it is empty space.</li>
<li><strong>Border</strong>: the space in between the two; it surrounds the padding, but is not the margin. It looks nice somtimes, but it has no non-visual function. <code class="highlighter-rouge">background-color</code> does not apply.</li>
</ul>
<p>I hope this covers the basics of margin and padding! Happy coding!</p>
</div>
</div>
</body>
</html>

@ -12,9 +12,9 @@ a { text-decoration: none; color: #444; }
nav { padding: 1em 0px; margin: 0px; }
nav > a:first-of-type { padding-left: 0; }
nav > a:first-of-type { margin-left: 0; }
nav > a { padding: 1em; color: #333; font-weight: bold; font-family: helvetica, arial, sans-serif; }
nav > a { margin: 1em; color: #333; font-weight: bold; font-family: helvetica, arial, sans-serif; }
nav > a.on-page { color: #888; }
@ -34,6 +34,14 @@ p.post-excerpt { margin-top: 0; padding-top: 10px; }
label { font-style: italic; font-size: .8em; }
table, table tr, table td, table th { border: 1px solid rgba(0, 0, 0, 0.5); border-collapse: collapse; padding: 5px; font-weight: normal; }
table { width: 75%; margin: auto; }
table.post-list, table.post-list tr, table.post-list td { width: 100%; border: none; padding-left: 0; }
img { display: block; width: 55%; margin-left: auto; margin-right: auto; }
@media screen and (max-width: 600px) { body { width: 90%; }
#info { margin: 0 7px; } }

@ -7,8 +7,8 @@
],
"sourcesContent": [
"@import \"main\";\n",
"$normal-text-color: #111;\n$nav-link-color: #333;\n$nav-link-hover-color: black;\n$link-color: #444;\n$last-p-padd: 1.5em;\n$nav-padd: 1em;\n\nbody {\n background-color: #fefefe;\n padding: 15px;\n margin: auto;\n max-width: 600px;\n}\n#wrapper {\n color: $normal-text-color;\n font-family: arial;\n font-size: 14px;\n}\nh1, h2, h3, h4, h5, h6 {\n font-family: helvetica, arial, sans-serif;\n}\nh1 {\n font-size: 1.5em;\n}\nh2 {\n font-size: 1.3em;\n}\na {\n text-decoration: none;\n color: $link-color;\n}\n\nnav {\n padding: $nav-padd 0px;\n margin: 0px;\n}\nnav > a:first-of-type {\n padding-left: 0;\n}\nnav > a {\n padding: 1em;\n color: $nav-link-color;\n font-weight: bold;\n font-family: helvetica, arial, sans-serif;\n}\nnav > a.on-page {\n color: #888;\n}\nnav > a:hover {\n text-decoration: underline; \n}\n\n#main-img {\n width: 100%;\n}\np {\n padding: .5em 0;\n line-height: 1.4em;\n}\n.line-under {\n padding-bottom: $last-p-padd;\n border-bottom: 1px solid #aaa;\n}\n.article {\n font-family: -apple-system, Helvetica, arial, sans-serif;\n}\n\n.post-date {\n font-family: -apple-system, Helvetica, arial, sans-serif;\n text-transform: uppercase;\n font-weight: bold;\n color: rgba(0, 0, 0, 0.5);\n}\n\np.post-excerpt {\n margin-top: 0;\n padding-top: 10px;\n}\n\nlabel {\n font-style: italic;\n font-size: .8em;\n}\n\n@media screen and (max-width: 600px){\n body {\n width: 90%;\n }\n #info {\n margin: 0 7px;\n }\n}\n\n"
"$normal-text-color: #111;\n$nav-link-color: #333;\n$nav-link-hover-color: black;\n$link-color: #444;\n$last-p-padd: 1.5em;\n$nav-padd: 1em;\n\nbody {\n background-color: #fefefe;\n padding: 15px;\n margin: auto;\n max-width: 600px;\n}\n#wrapper {\n color: $normal-text-color;\n font-family: arial;\n font-size: 14px;\n}\nh1, h2, h3, h4, h5, h6 {\n font-family: helvetica, arial, sans-serif;\n}\nh1 {\n font-size: 1.5em;\n}\nh2 {\n font-size: 1.3em;\n}\na {\n text-decoration: none;\n color: $link-color;\n}\n\nnav {\n padding: $nav-padd 0px;\n margin: 0px;\n}\nnav > a:first-of-type {\n margin-left: 0;\n}\nnav > a {\n margin: 1em;\n color: $nav-link-color;\n font-weight: bold;\n font-family: helvetica, arial, sans-serif;\n}\nnav > a.on-page {\n color: #888;\n}\nnav > a:hover {\n text-decoration: underline; \n}\n\n#main-img {\n width: 100%;\n}\np {\n padding: .5em 0;\n line-height: 1.4em;\n}\n.line-under {\n padding-bottom: $last-p-padd;\n border-bottom: 1px solid #aaa;\n}\n.article {\n font-family: -apple-system, Helvetica, arial, sans-serif;\n}\n\n.post-date {\n font-family: -apple-system, Helvetica, arial, sans-serif;\n text-transform: uppercase;\n font-weight: bold;\n color: rgba(0, 0, 0, 0.5);\n}\n\np.post-excerpt {\n margin-top: 0;\n padding-top: 10px;\n}\n\nlabel {\n font-style: italic;\n font-size: .8em;\n}\n\ntable,\ntable tr,\ntable td,\ntable th{\n border: 1px solid rgba(0, 0, 0, 0.5);\n border-collapse: collapse;\n padding: 5px;\n font-weight: normal;\n}\ntable {\n width: 75%;\n margin: auto;\n}\n\ntable.post-list,\ntable.post-list tr,\ntable.post-list td {\n width: 100%;\n border: none;\n padding-left: 0;\n}\n\nimg {\n display: block;\n width: 55%;\n margin-left: auto;\n margin-right: auto;\n}\n\n@media screen and (max-width: 600px){\n body {\n width: 90%;\n }\n #info {\n margin: 0 7px;\n }\n}\n\n"
],
"names": [],
"mappings": "ACOA,AAAA,IAAI,CAAC,EACH,gBAAgB,EAAE,OAAO,EACzB,OAAO,EAAE,IAAI,EACb,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,KAAK,GACjB;;AACD,AAAA,QAAQ,CAAC,EACP,KAAK,EAda,IAAI,EAetB,WAAW,EAAE,KAAK,EAClB,SAAS,EAAE,IAAI,GAChB;;AACD,AAAA,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EACrB,WAAW,EAAE,4BAA4B,GAC1C;;AACD,AAAA,EAAE,CAAC,EACD,SAAS,EAAE,KAAK,GACjB;;AACD,AAAA,EAAE,CAAC,EACD,SAAS,EAAE,KAAK,GACjB;;AACD,AAAA,CAAC,CAAC,EACA,eAAe,EAAE,IAAI,EACrB,KAAK,EA1BM,IAAI,GA2BhB;;AAED,AAAA,GAAG,CAAC,EACF,OAAO,EA5BE,GAAG,CA4BO,GAAG,EACtB,M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AAS,EACzB,WAAW,EAAE,IAAI,EACjB,KAAK,EAAE,kBAAkB,GAC1B;;AAED,AAAA,CAAC,AAAA,aAAa,CAAC,EACb,UAAU,EAAE,CAAC,EACb,WAAW,EAAE,IAAI,GAClB;;AAED,AAAA,KAAK,CAAC,EACJ,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,IAAI,GAChB;;AAED,AAAA,KAAK,EACL,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,EAAE,CAAA,EACN,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,kBAAkB,EACpC,eAAe,EAAE,QAAQ,EACzB,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,GACpB;;AACD,AAAA,KAAK,CAAC,EACJ,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,IAAI,GACb;;AAED,AAAA,KAAK,AAAA,UAAU,EACf,KAAK,AAAA,UAAU,CAAC,EAAE,EAClB,KAAK,AAAA,UAAU,CAAC,EAAE,CAAC,EACjB,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,YAAY,EAAE,CAAC,GAChB;;AAED,AAAA,GAAG,CAAC,EACF,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,GAAG,EACV,WAAW,EAAE,IAAI,EACjB,YAAY,EAAE,IAAI,GACnB;;AAED,MAAM,CAAC,MAAM,MAAM,SAAS,EAAE,KAAK,IACjC,AAAA,IAAI,CAAC,EACH,KAAK,EAAE,GAAG,GACX;EACD,AAAA,KAAK,CAAC,EACJ,MAAM,EAAE,KAAK,GACd"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

@ -14,27 +14,19 @@
<a href="/blog.html" class="on-page">Blog</a>
<a href="/podcast.html" >Podcast</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>
<table>
<tr>
<td>
<h2><a href="/2020/01/10/rsa1.html">RSA: what is it?</a></h2>
<span class="post-date">10 January 2020</span>
<div class="post-excerpt"><p>Scary sounding title isnt it? I promise it is not as scary as it sounds. In this article I will explain the basic premis behind RSA encryption, why we need it, how it is vulnerable, and to what extent we can mitigate these vulnerabilities.</p>
</div>
</td>
</tr>
<table class="post-list">
<tr>
<td>
<h2><a href="/2020/01/01/bananas-for-testing.html">(For Testing Purposes) Bananas</a></h2>
<span class="post-date">01 January 2020</span>
<div class="post-excerpt"><p>A banana is an edible fruit botanically a berry produced by several kinds
of large herbaceous flowering plants in the genus Musa.</p>
<h2><a href="/2020/01/22/padding-and-margin.html">Padding And Margin</a></h2>
<span class="post-date">22 January 2020</span>
<div class="post-excerpt"><p>Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.</p>
</div>
</td>
</tr>

@ -1,8 +1,44 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.0.0">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2020-01-21T17:25:20+00:00</updated><id>http://localhost:4000/feed.xml</id><entry><title type="html">RSA: what is it?</title><link href="http://localhost:4000/2020/01/10/rsa1.html" rel="alternate" type="text/html" title="RSA: what is it?" /><published>2020-01-10T00:00:00+00:00</published><updated>2020-01-10T00:00:00+00:00</updated><id>http://localhost:4000/2020/01/10/rsa1</id><content type="html" xml:base="http://localhost:4000/2020/01/10/rsa1.html">&lt;p&gt;Scary sounding title isnt it? I promise it is not as scary as it sounds. In this article I will explain the basic premis behind RSA encryption, why we need it, how it is vulnerable, and to what extent we can mitigate these vulnerabilities.&lt;/p&gt;</content><author><name>tait</name></author><summary type="html">Scary sounding title isnt it? I promise it is not as scary as it sounds. In this article I will explain the basic premis behind RSA encryption, why we need it, how it is vulnerable, and to what extent we can mitigate these vulnerabilities.</summary></entry><entry><title type="html">(For Testing Purposes) Bananas</title><link href="http://localhost:4000/2020/01/01/bananas-for-testing.html" rel="alternate" type="text/html" title="(For Testing Purposes) Bananas" /><published>2020-01-01T00:00:00+00:00</published><updated>2020-01-01T00:00:00+00:00</updated><id>http://localhost:4000/2020/01/01/bananas-for-testing</id><content type="html" xml:base="http://localhost:4000/2020/01/01/bananas-for-testing.html">&lt;p&gt;A banana is an edible fruit botanically a berry produced by several kinds
of large herbaceous flowering plants in the genus Musa.&lt;/p&gt;
&lt;p&gt;In some countries, bananas used for cooking may be called “plantains”,
distinguishing them from dessert bananas. The fruit is variable in size, color,
and firmness, but is usually elongated and curved, with soft flesh rich in
starch covered with a rind, which may be green, yellow, red, purple, or brown
when ripe.&lt;/p&gt;</content><author><name>jill</name></author><summary type="html">A banana is an edible fruit botanically a berry produced by several kinds of large herbaceous flowering plants in the genus Musa.</summary></entry></feed>
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.0.0">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2020-01-23T03:10:24+00:00</updated><id>http://localhost:4000/feed.xml</id><entry><title type="html">Padding And Margin</title><link href="http://localhost:4000/2020/01/22/padding-and-margin.html" rel="alternate" type="text/html" title="Padding And Margin" /><published>2020-01-22T00:00:00+00:00</published><updated>2020-01-22T00:00:00+00:00</updated><id>http://localhost:4000/2020/01/22/padding-and-margin</id><content type="html" xml:base="http://localhost:4000/2020/01/22/padding-and-margin.html">&lt;p&gt;Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.&lt;/p&gt;
&lt;p&gt;Here is an image from the World Wide Web Consortium (W3C) who sets the standards for the web.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/assets/img/w3c-padding-margin.png&quot; alt=&quot;The W3C standard for padding, margin, borders and width. Width encompases the inner element + padding; the border then encompases it. The margin is the space beyond the border and in between other elements.&quot; title=&quot;W3C border, padding, margin standard.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Now although this image shows all the different types of spacing as equal, the majority of the time these will mostly be padding (inner) and margin (outer). Padding is the inner space between the element and its border; margin is the outer space between two different elements.&lt;/p&gt;
&lt;p&gt;Within the margin the user is unable to press any links or execute any javascript code. It is &lt;em&gt;empty&lt;/em&gt; space. If each &lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;link&amp;gt;&lt;/code&gt; on your navigation bar has 10 pixels of margin, then there would be 20 pixels in between each &lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;link&amp;gt;&lt;/code&gt; that would &lt;em&gt;not&lt;/em&gt; be clickable by the user.&lt;/p&gt;
&lt;p&gt;If you have &lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;link&amp;gt;&lt;/code&gt;s on your navigation bar with &lt;em&gt;padding&lt;/em&gt; set to 20 pixels, however, then there will be 20 pixels on each side of the &lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;link&amp;gt;&lt;/code&gt; text where the user &lt;em&gt;is&lt;/em&gt; able to click.&lt;/p&gt;
&lt;p&gt;If that part is confusing, try thinking about it in terms of whether &lt;code class=&quot;highlighter-rouge&quot;&gt;background-color&lt;/code&gt; would apply.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Padding&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Margin&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Spacing&lt;/td&gt;
&lt;td&gt;within element&lt;/td&gt;
&lt;td&gt;between elements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;background-color&lt;/code&gt; applies&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;In summary:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Padding&lt;/strong&gt;: the space within a tag which is still part of the same tag. &lt;code class=&quot;highlighter-rouge&quot;&gt;background-color&lt;/code&gt; applies.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Margin&lt;/strong&gt;: the space in between two seperate tags. &lt;code class=&quot;highlighter-rouge&quot;&gt;background-color&lt;/code&gt; does not apply; it is empty space.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Border&lt;/strong&gt;: the space in between the two; it surrounds the padding, but is not the margin. It looks nice somtimes, but it has no non-visual function. &lt;code class=&quot;highlighter-rouge&quot;&gt;background-color&lt;/code&gt; does not apply.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope this covers the basics of margin and padding! Happy coding!&lt;/p&gt;</content><author><name>tait</name></author><summary type="html">Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.</summary></entry></feed>

@ -17,7 +17,7 @@
<br>
<a href="https://sait.ca/">Southern Alberta Insitute of Technology (SAIT)</a>
<br>
<a href="https://www.sait.ca/programs-and-courses/full-time-studies/diplomas/information-technology">Information Technology - Software Development major</a>
<a href="https://www.sait.ca/about-sait/who-we-are/sait-schools/school-of-information-and-communications-technologies">School of Information and Communication Technologies</a>
<br>
tait.hoyem@edu.sait.ca
<br>
@ -32,6 +32,8 @@
<a href="/blog.html" >Blog</a>
<a href="/podcast.html" >Podcast</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="/assets/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="wrapper">
<nav>
<a href="/" >Home</a>
<a href="/blog.html" >Blog</a>
<a href="/podcast.html" class="on-page">Podcast</a>
<a href="https://github.com/TTWNO/" >Code</a>
</nav>
<p>This is not ready yet. Come back February 2020.</p>
</div>
</body>
</html>

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://localhost:4000/2020/01/01/bananas-for-testing.html</loc>
<lastmod>2020-01-01T00:00:00+00:00</lastmod>
<loc>http://localhost:4000/2020/01/22/padding-and-margin.html</loc>
<lastmod>2020-01-22T00:00:00+00:00</lastmod>
</url>
<url>
<loc>http://localhost:4000/2020/01/10/rsa1.html</loc>
<lastmod>2020-01-10T00:00:00+00:00</lastmod>
<loc>http://localhost:4000/2020-01-10-rsa1.html</loc>
</url>
<url>
<loc>http://localhost:4000/blog.html</loc>
@ -14,4 +13,7 @@
<url>
<loc>http://localhost:4000/</loc>
</url>
<url>
<loc>http://localhost:4000/podcast.html</loc>
</url>
</urlset>

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

@ -2,8 +2,7 @@
layout: default
title: Blog
---
<table>
<table class="post-list">
{% for post in site.posts %}
<tr>
<td>

@ -11,7 +11,7 @@ layout: home
<br>
<a href="https://sait.ca/">Southern Alberta Insitute of Technology (SAIT)</a>
<br>
<a href="https://www.sait.ca/programs-and-courses/full-time-studies/diplomas/information-technology">Information Technology - Software Development major</a>
<a href="https://www.sait.ca/about-sait/who-we-are/sait-schools/school-of-information-and-communications-technologies">School of Information and Communication Technologies</a>
<br>
tait.hoyem@edu.sait.ca
<br>

@ -0,0 +1,5 @@
---
layout: default
---
<p>This is not ready yet. Come back February 2020.</p>
Loading…
Cancel
Save