summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorMatthew Kosarek <matt.kosarek@canonical.com>2024-05-01 14:12:17 -0400
committerMatthew Kosarek <matt.kosarek@canonical.com>2024-05-01 14:12:17 -0400
commitece0f56d29509685f9b61642056f15f84a8a0726 (patch)
tree3882ad898a80ec498f406ce99cacf12cc94658b6 /_posts
parent9262b5c798e1921c759addb492b592f3ccf64980 (diff)
cleanup: quick update, removing outdated items
Diffstat (limited to '_posts')
-rw-r--r--_posts/hello_world.html9
-rw-r--r--_posts/plato_1.html56
-rw-r--r--_posts/plato_2.html4
-rw-r--r--_posts/postList.js16
-rw-r--r--_posts/processPosts.js144
-rw-r--r--_posts/sitemap.org2
6 files changed, 1 insertions, 230 deletions
diff --git a/_posts/hello_world.html b/_posts/hello_world.html
deleted file mode 100644
index 0b563c5..0000000
--- a/_posts/hello_world.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<p>
- Hello, world!
-</p>
-<p>
- This is the first test of my simple, static blogging system. My goal is to avoid using anything too heavy and, instead, provide a simple script that will get run whenever I update a blog post. Heck, I could even set it up to a cronjob to refresh them everyday. But perhaps that is overkill for today 😆. I am satisfied with how it current works.
-</p>
-<p>
- Expect to see some updates on books, emacs, and Linux coming soon to a website near you!
-</p>
diff --git a/_posts/plato_1.html b/_posts/plato_1.html
deleted file mode 100644
index f65d519..0000000
--- a/_posts/plato_1.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<p>
- Recently, I picked up <cite>A Plato Reader: Eight Essential Dialogues</cite>. The book opens with "Euthyphro", a dialogue between Socrates and a man named Euthyphro. Socrates is on his way to the courthouse to hear charges against him when he runs into Euthyphro, who, by Socrates' standard, is in a bit of a moral pickle (although Euthyphro doesn't see it that way). Euthyphro is on his way to prosecute his father for the murder of a day laborer who according to the story had murdered a slave before being killed. Euthyphro is carrying out the prosecution because he believes it to be <b>pious</b>. The remainder of the dialogue features Socrates trying to uncover what "pious" is by dissecting Euthyphro's definition of "piety". Quick warning: Socrates is very smug.
-</p>
-
-<p>
- While the dialogue features many arguments on the part of Socrates, I found the language used in one to a bit challenging, so I wanted to dissect it further.
-</p>
-
-<p>
- In "9e", after being pressed for a more precise definition of "pious" by Socrates, Euthyphro says:
- <blockquote>
- All right, I'd say that the pious is what all the gods love, and its opposite, what all the gods hate, is the impious.
- </blockquote>
-
- To which, in "10a", Socrates responds:
- <blockquote>
- Consider the following: is the pious loved by the gods because it's pious? Or is it pious because it's loved?
- </blockquote>
-
- This brainteaser obviously stumps the poor Euthyphro, but Socrates takes him by the hand. Socrates' argument is that the quality of a "loved" thing isn't that it is innately a "loved thing". Rather, a thing is "loved" because someone "loves" it. In other words, the action of loving a thing changes it: it transforms it from a "thing" to a "loved thing". A "thing" cannot be innately "loved".
-</p>
-<p>
- With this in mind, we can turn our eyes back to Euthyphro's statement that piety is loved by all of the gods. We now see that it isn't pious because it's loved. The action of loving a "thing" make it a "loved thing", not a "pious thing". Hence, it must be the case that piety is loved because it's pious. Or, in other words, piety has some intrinsic nature that makes it lovable.
-</p>
-<p>
- Now, Socrates begins to dissect the notion of "god-loved", because Euthyphro had previously claimed that <q>the pious is what all the gods love</q> (i.e. piety equals god-lovability). This is the point that the text gets a bit difficult. Socrates says:
- <blockquote>
- Then, the god-loved is not what's pious, Euthyphro, nor is the pious what's god-loved, as you claim, but one differs from the other.
- </blockquote>
-
- Obviously, Socrates has some explaining to do. He starts off by restating that the pious has an intrinsic quality that makes it lovable (10e). Afterward, he argues:
- <blockquote>
- The god-loved, on the other hand, is so because it is loved by the gods; it's god-loved by the very fact of being loved. But it's not because it's god-loved that it's being loved.
- </blockquote>
- This is to say that a "thing" is not intrinsically "god-loved" in the same way that a "thing" is "pious". Why is this? As Socrates argued earlier, a "thing" is not a "loved thing" because it is intrinsically a "loved thing". Rather, a "thing" is a "loved thing" because someone is loving that "thing". The same goes for a "god-loved thing". A god must be loving the "thing" for it to become a "god-loved thing". In this way, the quality of being "god-loved" is NOT the same as being "pious", because the attribute (pious or god-loved) is achieved through opposite means (piety by internal forces and god-lovability by external forces).
-</p>
-<p>
- Socrates finishes by saying:
- <blockquote>
- But if the god-loved and the pious were really the same thing... then, if the pious were loved because it's pious, what's god-loved would in turn be loved because it's god-loved; and if what's god-loved were god-loved because it was loved by the gods, the pious would in turn be pious because it was loved by them.
- </blockquote>
-
- The quality of a thing being "pious" and the quality of a thing being "god-loved" are different because they come about by different means. Hence, what is "pious" is not what is "god-loved" because they fundamentally differ in nature.
-</p>
-
-<p>
- Perhaps it is the wording that got in the way of my initially understanding this one, but I hope that this helps anyone who happens to stumble across these passages with the same questions!
- <br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <br/>
- <br/>
-</p>
diff --git a/_posts/plato_2.html b/_posts/plato_2.html
deleted file mode 100644
index 25ceec6..0000000
--- a/_posts/plato_2.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<h2>Introduction</h2>
-<p>
- Continuing in my reading of <cite>A Plato Reader: Eight Essential Dialogues</cite>, I recently came across <i>Phaedo</i>.
-</p> \ No newline at end of file
diff --git a/_posts/postList.js b/_posts/postList.js
deleted file mode 100644
index bc0f919..0000000
--- a/_posts/postList.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = [
- {
- url: "_posts/hello_world.html",
- title: "Hello, World!",
- tags: [ "personal" ]
- },
- {
- url: "_posts/plato_1.html",
- title: "Euthyphro: the Pious and the God-loved",
- tags: [ "books" ]
- },
- {
- url: "_posts/plato2.html",
- title: "Phaedo: Death and the Soul"
- }
-];
diff --git a/_posts/processPosts.js b/_posts/processPosts.js
deleted file mode 100644
index 2bd6ff1..0000000
--- a/_posts/processPosts.js
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-const fs = require('fs');
-const path = require('path');
-const posts = require('./postList');
-
-const tags = [
- {
- id: 'personal',
- title: 'Personal 👨'
- },
- {
- id: 'programming',
- title: 'Programming 💻'
- },
- {
- id: 'books',
- title: 'Books 📖'
- },
- {
- id: 'food',
- title: 'Food 🍲'
- }
-]
-
-function createTagFile(tag) {
- const dir = path.resolve(path.join(__dirname, '..', 'posts'));
-
- if (!fs.existsSync(dir)) {
- fs.mkdirSync(dir);
- }
-
-
- const tagFileName = `tag_${tag.id}.html`
- createPostPage(path.join(__dirname, '..', 'posts', tagFileName), tag.id)
- return `/posts/${tagFileName}`;
-}
-
-function createTag(tag) {
- return `
- <a href="${createTagFile(tag)}"><button id="${tag.id}">${tag.title}</button></a>
- `;
-}
-
-function createPostServableFile(post) {
- const dir = path.resolve(path.join(__dirname, '..', 'posts'));
-
- if (!fs.existsSync(dir)) {
- fs.mkdirSync(dir);
- }
-
- const baseFilePath = path.join(__dirname, '..', post.url);
- const stats = fs.statSync(baseFilePath);
- const content = fs.readFileSync(baseFilePath);
- const fileName = post.url.substring(post.url.lastIndexOf('/') + 1);
- const filePath = path.join(dir, fileName);
- fs.writeFileSync(filePath,`
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta charset="utf-8">
- <link rel="stylesheet" href="/index.css">
- <link rel="stylesheet" href="/posts.css">
- <title>Matthew Kosarek</title>
- <link rel="shortcut icon" href="/favicon/favicon.ico" type="image/x-icon">
- </head>
- <body>
- <header>
- <h1>Matthew Kosarek</h1>
- <nav>
- <ul>
- <li><a href='/'>&#127969; Home</a></li>
- <li><a href='/resume.html'>&#128216; CV</a></li>
- <li><a href="https://www.linkedin.com/in/matthew-kosarek/">🏢 LinkedIn</a></li>
- <li><a href='/posts.html'>&#128221; Posts</a></li>
- </ul>
- </nav>
- </header>
-
- <article>
- <h2>${post.title}</h2>
- <h3>Created ${stats.birthtime.toLocaleString()}. Last updated: ${stats.mtime.toLocaleString()}</h3>
- ${content}
- </article>
- </body>
-</html>
- `)
- return '/posts/' + fileName;
-}
-
-function createPostLink(post) {
- return `
- <li><a href="${createPostServableFile(post)}">${post.title}</a></li>
- `;
-}
-
-function createPostPage(outputFile, postFilter) {
- const output = `
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta charset="utf-8">
- <link rel="stylesheet" href="/index.css">
- <link rel="stylesheet" href="/posts.css">
- <title>Matthew Kosarek</title>
- <link rel="shortcut icon" href="/favicon/favicon.ico" type="image/x-icon">
- </head>
- <body>
- <header>
- <h1>Matthew Kosarek</h1>
- <nav>
- <ul>
- <li><a href='/'>&#127969; Home</a></li>
- <li><a href='/resume.html'>&#128216; CV</a></li>
- <li><a href="https://www.linkedin.com/in/matthew-kosarek/">🏢 LinkedIn</a></li>
- <li><a href='/posts.html'>&#128221; Posts</a></li>
- </ul>
- </nav>
- </header>
-
- ${postFilter ? '' : `<section>
- <h2>Tags</h2>
-
- <div id='tag_list'>
- ${tags.map(createTag).join('\n')}
- </div>
- </section`}
-
- <section>
- <h2>Posts</h2>
- <ul id='post_list'>
- ${posts.filter(post => !postFilter || post.tags.includes(postFilter)).map(createPostLink).join('')}
- </ul>
- </section>
- </body>
-</html>
-`
-
- fs.writeFileSync(outputFile, output);
-}
-
-createPostPage(path.join(__dirname, '..', 'posts.html'));
diff --git a/_posts/sitemap.org b/_posts/sitemap.org
index 8665ca3..b5e96d9 100644
--- a/_posts/sitemap.org
+++ b/_posts/sitemap.org
@@ -1,6 +1,6 @@
#+TITLE: Matthew's Blog Posts
-#+DATE: 2023-06-20 at 11:51
+#+DATE: 2024-05-01 at 14:07
#+HTML_LINK_HOME: /