From ece0f56d29509685f9b61642056f15f84a8a0726 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Wed, 1 May 2024 14:12:17 -0400 Subject: cleanup: quick update, removing outdated items --- README.md | 28 +++++--- _posts/hello_world.html | 9 --- _posts/plato_1.html | 56 ---------------- _posts/plato_2.html | 4 -- _posts/postList.js | 16 ----- _posts/processPosts.js | 144 --------------------------------------- _posts/sitemap.org | 2 +- fonts/Iosevka-Regular.ttf | Bin 0 -> 9937672 bytes fonts/Ubuntu-M.ttf | Bin 0 -> 1072960 bytes generator/main.go | 24 ------- index.html | 9 +-- index.js | 2 +- mini-jquery.js | 124 ---------------------------------- posts.html | 1 - posts/hello.html | 164 ++++++++++++++++++++++----------------------- posts/hello_world.html | 41 ------------ posts/plato_1.html | 88 ------------------------ posts/sitemap.html | 4 +- posts/tag_books.html | 36 ---------- posts/tag_food.html | 34 ---------- posts/tag_personal.html | 36 ---------- posts/tag_programming.html | 34 ---------- resume.css | 24 ++++--- resume.html | 95 -------------------------- robots.txt | 1 - run_dev.sh | 2 +- upload.sh | 2 +- 27 files changed, 129 insertions(+), 851 deletions(-) delete mode 100644 _posts/hello_world.html delete mode 100644 _posts/plato_1.html delete mode 100644 _posts/plato_2.html delete mode 100644 _posts/postList.js delete mode 100644 _posts/processPosts.js create mode 100644 fonts/Iosevka-Regular.ttf create mode 100644 fonts/Ubuntu-M.ttf delete mode 100644 generator/main.go delete mode 100644 mini-jquery.js delete mode 100644 posts/hello_world.html delete mode 100644 posts/plato_1.html delete mode 100644 posts/tag_books.html delete mode 100644 posts/tag_food.html delete mode 100644 posts/tag_personal.html delete mode 100644 posts/tag_programming.html diff --git a/README.md b/README.md index cc72eb9..0a29a8d 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,31 @@ This contains the entirety of https://matthewkosarek.xyz, which is my personal w If you are on Github, this is a mirror of: https://git.matthewkosarek.xyz/matthew_kosarek_xyz/ ## Running -With python installed, run `./run_dev.sh` and you should be good to go. Then navigate to `localhost:8080` in your browser. +```sh +./run_dev.sh +firefox localhost:8080 +``` -## Building Themes +## Building -### Build the shaders -``` +### Themes +```sh +# Compile the shaders cd themes/src node tools/shaders.js -``` -### Compile -``` -cd themes +# Build the project +cd .. ./compile-commands.sh make ``` + +### Posts +```sh +./publish.sh +``` + +## Upload +```sh +./upload.sh +``` 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 @@ -

- Hello, world! -

-

- 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. -

-

- Expect to see some updates on books, emacs, and Linux coming soon to a website near you! -

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 @@ -

- Recently, I picked up A Plato Reader: Eight Essential Dialogues. 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 pious. 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. -

- -

- 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. -

- -

- In "9e", after being pressed for a more precise definition of "pious" by Socrates, Euthyphro says: -

- 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. -
- - To which, in "10a", Socrates responds: -
- Consider the following: is the pious loved by the gods because it's pious? Or is it pious because it's loved? -
- - 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". -

-

- 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. -

-

- Now, Socrates begins to dissect the notion of "god-loved", because Euthyphro had previously claimed that the pious is what all the gods love (i.e. piety equals god-lovability). This is the point that the text gets a bit difficult. Socrates says: -

- 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. -
- - 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: -
- 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. -
- 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). -

-

- Socrates finishes by saying: -

- 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. -
- - 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. -

- -

- 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! -
-
-
-
-
-
-
-
-

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 @@ -

Introduction

-

- Continuing in my reading of A Plato Reader: Eight Essential Dialogues, I recently came across Phaedo. -

\ 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 ` - - `; -} - -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,` - - - - - - - - Matthew Kosarek - - - -
-

Matthew Kosarek

- -
- -
-

${post.title}

-

Created ${stats.birthtime.toLocaleString()}. Last updated: ${stats.mtime.toLocaleString()}

- ${content} -
- - - `) - return '/posts/' + fileName; -} - -function createPostLink(post) { - return ` -
  • ${post.title}
  • - `; -} - -function createPostPage(outputFile, postFilter) { - const output = ` - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - - ${postFilter ? '' : `
    -

    Tags

    - -
    - ${tags.map(createTag).join('\n')} -
    - -

    Posts

    - -
    - - -` - - 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: / diff --git a/fonts/Iosevka-Regular.ttf b/fonts/Iosevka-Regular.ttf new file mode 100644 index 0000000..e623850 Binary files /dev/null and b/fonts/Iosevka-Regular.ttf differ diff --git a/fonts/Ubuntu-M.ttf b/fonts/Ubuntu-M.ttf new file mode 100644 index 0000000..f70d1a8 Binary files /dev/null and b/fonts/Ubuntu-M.ttf differ diff --git a/generator/main.go b/generator/main.go deleted file mode 100644 index d6f5c73..0000000 --- a/generator/main.go +++ /dev/null @@ -1,24 +0,0 @@ -package main - -import "fmt" - -/* - - Form of the static site generator: - 1. Define a list of static items - 2. Define a global index.css - 3. Each static site item has a content.html file - 4. Each static site item has a content.css file - 5. Each static site item can have a content.js file - 6. Each static site item can have an optional build - 7. There will be some built-in blogging functionality if we do it right -*/ - -func main() { - doWork() -} - -func doWork() { - fmt.Println("Hello, world!") - -} diff --git a/index.html b/index.html index afeff96..883f230 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,6 @@ @@ -62,9 +61,10 @@

    About Me

    - My name is Matthew Kosarek. - I am a computer programmer from northern New Jersey and I currently live Philadelphia, PA. - I keep my CV up to date on this website, and I also provide some links to the extracurriculars that I am up to. + Hi there 🌊 My name is Matthew Kosarek. + I am a computer programmer from northern New Jersey and I currently live Philadelphia, PA. I work at Canonical on the + Mir display server and I am currently building + miracle-wm, a Mir-based tiling window manager.

    @@ -73,6 +73,7 @@
  • Github: my personal github with most of my projects
  • CGit: my self-hosted git instance with a few of my projects
  • physicsforgames.com: a project that I'm currently working on in my spare time where I explore the world of realtime physics
  • +
  • LinkedIn
  • diff --git a/index.js b/index.js index fa6dddd..dc25d20 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ function imageCallbacks() { } } - // -- Set up on image clicked + // Set up on image clicked var imageList = imageContainer.children, numImages = imageContainer.children.length; diff --git a/mini-jquery.js b/mini-jquery.js deleted file mode 100644 index 1db7162..0000000 --- a/mini-jquery.js +++ /dev/null @@ -1,124 +0,0 @@ -// -// mini-jquery.js -// -// Matthew Kosarek -// -// 2021-08-08 -// -// JQuery is huge and I use the smallest portion of it. -// This is my attempt to make a JQuery lookalike that does -// enough for me, but doesn't bloat things. -// - -function MiniJQueryObject(arg) { - this.elementList = []; - if (typeof arg === 'string') { - arg = arg.trim(); - - if (arg[0] === '<' && arg[arg.length - 1] === '>') { - // Trying to create an html element - arg = arg.substring(1, arg.length - 1); - var element = document.createElement(arg); - this.elementList.push(element); - } else { - // Trying to query an html element - - switch (arg[0]) { - case '#': { - arg = arg.substring(1); - var idElement = document.getElementById(arg); - if (idElement) { - this.elementList.push(idElement); - } - break; - } - case '.': { - arg = arg.substring(1); - this.fromHTMLCollection(document.getElementsByClassName(arg)); - break; - } - default: { - this.fromHTMLCollection(document.getElementsByTagName(arg)); - break; - } - } - } - } else if (arg instanceof HTMLElement) { - this.elementList.push(arg); - } else { - console.error('Unknown object: ', arg); - } -} - -MiniJQueryObject.prototype.fromHTMLCollection = function(collection) { - for (var i = 0; i < collection.length; i++) { - this.elementList.push(collection.item(i)); - } -}; - -MiniJQueryObject.prototype.append = function(otherMinJqueryObject) { - this.elementList.forEach(function(element) { - otherMinJqueryObject.elementList.forEach(function(otherElement) { - element.appendChild(otherElement); - }); - }); - return this; -}; - -MiniJQueryObject.prototype.appendTo = function(otherMinJqueryObject) { - otherMinJqueryObject.append(this); - return this; -}; - -MiniJQueryObject.prototype.empty = function() { - this.elementList.forEach(function(element) { - element.innerHTML = ''; - }); - return this; -}; - -MiniJQueryObject.prototype._set = function(field, value) { - this.elementList.forEach(function(element) { - element[field] = value; - }); - return this; -}; - -MiniJQueryObject.prototype.type = function(type) { - return this._set('type', type); -}; - -MiniJQueryObject.prototype.val = function(val) { - return this._set('value', val); -}; - -MiniJQueryObject.prototype.disabled = function(val) { - return this._set('disabled', val ? 'true' : undefined); -}; - -MiniJQueryObject.prototype.on = function(event, callback) { - this.elementList.forEach(function(element) { - element.addEventListener(event, callback); - }); - - return this; -}; - -MiniJQueryObject.prototype.addClass = function(className) { - this.elementList.forEach(function(element) { - element.classList.add(className); - }); - return this; -}; - -MiniJQueryObject.prototype.removeClass = function(className) { - this.elementList.forEach(function(element) { - element.classList.remove(className); - }); - return this; -}; - -var $ = function(arg) { - return new MiniJQueryObject(arg); -}; -window.$ = $; diff --git a/posts.html b/posts.html index ad14cfa..d63d29a 100644 --- a/posts.html +++ b/posts.html @@ -16,7 +16,6 @@ diff --git a/posts/hello.html b/posts/hello.html index ea52aaa..8469f4e 100644 --- a/posts/hello.html +++ b/posts/hello.html @@ -28,9 +28,9 @@ -
    -

    TLDR

    -
    +
    +

    TLDR

    +
    -
    -

    Introduction

    -
    +
    +

    Introduction

    +

    I've recently fallen in love with org-mode, specifically when I use it with org-roam. I find the whole workflow of creating, tagging, and - later on - searching for information on my computer to be very elegant. On top of that, now that I have the time, I want to begin writing blog posts to better work out my thoughts. With both of these things in mind, I am again turning to the universal tool for human prospering: org-mode. This time, I want to see how it can help me turn a simple org file into a blog post on my website. My requirements are:

    @@ -71,9 +71,9 @@ And that's pretty much it for now. Without further ado, let's jump into getting
    -
    -

    Basic HTML File

    -
    +
    +

    Basic HTML File

    +

    As a pilot, we are going to use this org file that I am currently writing (hello.org) as our guinea pig. The goal is to have this org file be our very first blog post.

    @@ -114,9 +114,9 @@ We then do a chmod +x publish.sh to make it an executable and run i
    -
    -

    Disabling features that we don't want

    -
    +
    +

    Disabling features that we don't want

    +

    The next thing will be to remove some of the generated items that I didn't ask for, namely the table of contents, author, section numbers, creation time stamp, and the validation link.

    @@ -146,9 +146,9 @@ The next thing will be to remove some of the generated items that I didn't ask f
    -
    -

    Styling & Code Highlighting

    -
    +
    +

    Styling & Code Highlighting

    +

    Next thing on our list is custom styling. This can be achieved by first installing the htmlize package from melpa / elpa. The EmacsWiki describes this as "a package for exporting the contents of an Emacs buffer to HTML while respecting display properties such as colors, fonts, underlining, invisibility, etc" (reference). If used "out-of-the-box", the buffer will be exported to HTML with all of the styles inlined (e.g. if you underline something in your org file, you will generate a <span style="text-decoration: underline">...</span>). However, we are more interested in styling everything by ourselves: we don't want htmlize making assumptions about what underlining means to us! Luckily, htmlize gives us the option to export with class names instead of inline styles so that we can specify each style for ourselves.

    @@ -206,54 +206,54 @@ Now that our generated elements have class names, we can define the style for ea

    -
    pre {
    +
    pre {
         background-color: #FEFEFE;
         border: 1px solid #D5D5D5;
         border-radius: 2px;
         padding: 1rem;
     }
     
    -code {
    +code {
         font-family: "Consolas" sans-serif;
         color: #D0372D;
     }
     
    -.underline {
    +.underline {
         text-decoration: underline;
     }
     
     /* Taken from: https://emacs.stackexchange.com/questions/7629/the-syntax-highlight-and-indentation-of-source-code-block-in-exported-html-file */
    -pre span.org-builtin                     {color:#006FE0;font-weight:bold;}
    -pre span.org-string                      {color:#008000;}
    -pre span.org-keyword                     {color:#0000FF;}
    -pre span.org-variable-name               {color:#BA36A5;}
    -pre span.org-function-name               {color:#006699;}
    -pre span.org-type                        {color:#6434A3;}
    -pre span.org-preprocessor                {color:#808080;font-weight:bold;}
    -pre span.org-constant                    {color:#D0372D;}
    -pre span.org-comment-delimiter           {color:#8D8D84;}
    -pre span.org-comment                     {color:#8D8D84;font-style:italic}
    -1pre span.org-outshine-level-1           {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-2            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-3            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-4            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-5            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-6            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-7            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-8            {color:#8D8D84;font-style:italic}
    -pre span.org-outshine-level-9            {color:#8D8D84;font-style:italic}
    -pre span.org-rainbow-delimiters-depth-1  {color:#707183;}
    -pre span.org-rainbow-delimiters-depth-2  {color:#7388d6;}
    -pre span.org-rainbow-delimiters-depth-3  {color:#909183;}
    -pre span.org-rainbow-delimiters-depth-4  {color:#709870;}
    -pre span.org-rainbow-delimiters-depth-5  {color:#907373;}
    -pre span.org-rainbow-delimiters-depth-6  {color:#6276ba;}
    -pre span.org-rainbow-delimiters-depth-7  {color:#858580;}
    -pre span.org-rainbow-delimiters-depth-8  {color:#80a880;}
    -pre span.org-rainbow-delimiters-depth-9  {color:#887070;}
    -pre span.org-sh-quoted-exec              {color:#FF1493;}
    -pre span.org-css-selector                {color:#0000FF;}
    -pre span.org-css-property                {color:#00AA00;}
    +pre span.org-builtin                     {color:#006FE0;font-weight:bold;}
    +pre span.org-string                      {color:#008000;}
    +pre span.org-keyword                     {color:#0000FF;}
    +pre span.org-variable-name               {color:#BA36A5;}
    +pre span.org-function-name               {color:#006699;}
    +pre span.org-type                        {color:#6434A3;}
    +pre span.org-preprocessor                {color:#808080;font-weight:bold;}
    +pre span.org-constant                    {color:#D0372D;}
    +pre span.org-comment-delimiter           {color:#8D8D84;}
    +pre span.org-comment                     {color:#8D8D84;font-style:italic}
    +1pre span.org-outshine-level-1           {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-2            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-3            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-4            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-5            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-6            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-7            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-8            {color:#8D8D84;font-style:italic}
    +pre span.org-outshine-level-9            {color:#8D8D84;font-style:italic}
    +pre span.org-rainbow-delimiters-depth-1  {color:#707183;}
    +pre span.org-rainbow-delimiters-depth-2  {color:#7388d6;}
    +pre span.org-rainbow-delimiters-depth-3  {color:#909183;}
    +pre span.org-rainbow-delimiters-depth-4  {color:#709870;}
    +pre span.org-rainbow-delimiters-depth-5  {color:#907373;}
    +pre span.org-rainbow-delimiters-depth-6  {color:#6276ba;}
    +pre span.org-rainbow-delimiters-depth-7  {color:#858580;}
    +pre span.org-rainbow-delimiters-depth-8  {color:#80a880;}
    +pre span.org-rainbow-delimiters-depth-9  {color:#887070;}
    +pre span.org-sh-quoted-exec              {color:#FF1493;}
    +pre span.org-css-selector                {color:#0000FF;}
    +pre span.org-css-property                {color:#00AA00;}
     
    @@ -319,9 +319,9 @@ If we run the publish again, we can see that we have full styling on our code sn
    -
    -

    Images

    -
    +
    +

    Images

    +

    Our first two criteria have been met! Next on the list is solving images. As an example, let's use this squirrel image that I found online with an open source license. The ideal situation would be:

    @@ -366,7 +366,7 @@ So what's the fix here? Well, we have two options, but I am going to go with the That's all there is to it! There are simpler ways as well, but that should do it:

    -
    +

    squirrel.jpg

    Figure 1: A Cute Squirrel

    @@ -375,9 +375,9 @@ That's all there is to it! There are simpler ways as well, but that should do it
    -
    -

    Creation Date

    -
    +
    +

    Creation Date

    +

    Let's add the creation date below the title next. To start, we will modify the publish command to remove the title (:with-title nil) and, in its place, show a preamble bit of HTML that contains a formatted div with the title and the "last modified" span.z

    @@ -417,11 +417,11 @@ On top of this, we can modify our posts/post.css file to make the t

    -
    .org-article-title > h1 {
    +
    .org-article-title > h1 {
         margin-bottom: 0;
     }
     
    -.org-article-title > span {
    +.org-article-title > span {
         color: #707183;
     }
     
    @@ -437,9 +437,9 @@ Note that the downside of this is that the created date will change whenever you
    -
    -

    Generating the Directory

    -
    +
    +

    Generating the Directory

    +

    For every org file in my _posts folder, I would like to create a link to the generated HTML file at the /posts.html page of my website. You can think of this as the "directory" of all posts. My criteria is:

    @@ -500,9 +500,9 @@ From here, you may customize it however you like. The following are my customiz

    -
    -

    Sitemap Title

    -
    +
    +

    Sitemap Title

    +

    I changed the title to "Matthew's Blog Posts".

    @@ -526,9 +526,9 @@ I changed the title to "Matthew's Blog Posts".
    -
    -

    Format blog entries in the list

    -
    +
    +

    Format blog entries in the list

    +

    I like to include the creation date on the blog posts. To do this, we can use org-publish-find-property to find the date property of the org file. Afterward, we can format a string that includes our formatted timestamp and the org-publish-sitemap-default-entry, which is just a link with the title of the post.

    @@ -550,9 +550,9 @@ I like to include the creation date on the blog posts. To do this, we can use
    -
    -

    Tags & Filtering

    -
    +
    +

    Tags & Filtering

    +

    I use Org-roam for all of my note-taking and, in the next blog post, I plan to demonstrate how I will hook up my Org-roam note-taking workflow to my blogging. In the meantime, just know that we can add tags to the top of our org files like this:

    @@ -596,7 +596,7 @@ We extract the "filetags" from the org file, concatenate them into a comma-delim

    -
    .sitemap_tag {
    +
    .sitemap_tag {
         display: none;
     }
     
    @@ -717,14 +717,14 @@ Finally, let's append the following to posts/posts.css so that our

    -
    #tag-filter-container {
    +
    #tag-filter-container {
         display: flex;
         flex-direction: row;
         column-gap: 8px;
         margin-top: 1rem;
     }
     
    -.tag-filter-item {
    +.tag-filter-item {
         display: flex;
         flex-direction: row;
         align-items: center;
    @@ -736,7 +736,7 @@ Finally, let's append the following to posts/posts.css so that our
         background-color: #fffed8;
     }
     
    -.tag-filter-item button {
    +.tag-filter-item button {
         background: none;
         border: none;
         outline: none;
    @@ -746,25 +746,25 @@ Finally, let's append the following to posts/posts.css so that our
         font-size: 1.5rem;
     }
     
    -.tag-filter-item button:before {
    +.tag-filter-item button:before {
         content: '\00d7';
     }
     
    -.tag-filter-item.disabled button:before {
    +.tag-filter-item.disabled button:before {
         content: '+';
     }
     
    -.tag-filter-item.disabled {
    +.tag-filter-item.disabled {
         background-color: #f2f2f2;
         color: gray;
         border-color: gray;
     }
     
    -.tag-filter-item.disabled button {
    +.tag-filter-item.disabled button {
         color: green;
     }
     
    -.tag-filter-item button:hover {
    +.tag-filter-item button:hover {
         cursor: pointer;
         opacity: 0.8;
     }
    @@ -773,9 +773,9 @@ Finally, let's append the following to posts/posts.css so that our
     
    -
    -

    Conclusion

    -
    +
    +

    Conclusion

    +

    There are many more customizations that I plan to do on this system in the future, but I plan to leave this for now so that I can actually get to some blogging. I will proofread and fix my mistakes as time goes on, but this should be a good jumping off point for anyone interested in using org for their own blogging system.

    diff --git a/posts/hello_world.html b/posts/hello_world.html deleted file mode 100644 index 3b9e721..0000000 --- a/posts/hello_world.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - -
    -

    Hello, World!

    -

    Created 11/12/2022, 8:48:06β€―PM. Last updated: 11/15/2022, 7:49:33β€―AM

    -

    - Hello, world! -

    -

    - 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. -

    -

    - Expect to see some updates on books, emacs, and Linux coming soon to a website near you! -

    - -
    - - - \ No newline at end of file diff --git a/posts/plato_1.html b/posts/plato_1.html deleted file mode 100644 index 13b5def..0000000 --- a/posts/plato_1.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - -
    -

    Euthyphro: the pious and the god-loved

    -

    Created 12/14/2022, 7:03:59β€―PM. Last updated: 12/14/2022, 8:25:54β€―PM

    -

    - Recently, I picked up A Plato Reader: Eight Essential Dialogues. 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 pious. 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. -

    - -

    - 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. -

    - -

    - In "9e", after being pressed for a more precise definition of "pious" by Socrates, Euthyphro says: -

    - 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. -
    - - To which, in "10a", Socrates responds: -
    - Consider the following: is the pious loved by the gods because it's pious? Or is it pious because it's loved? -
    - - 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". -

    -

    - 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. -

    -

    - Now, Socrates begins to dissect the notion of "god-loved", because Euthyphro had previously claimed that the pious is what all the gods love (i.e. piety equals god-lovability). This is the point that the text gets a bit difficult. Socrates says: -

    - 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. -
    - - 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: -
    - 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. -
    - 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). -

    -

    - Socrates finishes by saying: -

    - 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. -
    - - 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. -

    - -

    - 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! -
    -
    -
    -
    -
    -
    -
    -
    -

    - -
    - - - \ No newline at end of file diff --git a/posts/sitemap.html b/posts/sitemap.html index b8292f1..31ec52d 100644 --- a/posts/sitemap.html +++ b/posts/sitemap.html @@ -21,7 +21,7 @@

    Matthew's Blog Posts

    - Last modified: 2023-06-20 at 11:51 + Last modified: 2024-05-01 at 14:07
    @@ -29,7 +29,7 @@
  • Hello, Org created on June 20, 2023

    -
    +

    technology,home

    diff --git a/posts/tag_books.html b/posts/tag_books.html deleted file mode 100644 index afd2247..0000000 --- a/posts/tag_books.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - - - -
    -

    Posts

    - -
    - - diff --git a/posts/tag_food.html b/posts/tag_food.html deleted file mode 100644 index 332900c..0000000 --- a/posts/tag_food.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - - - -
    -

    Posts

    -
      - -
    -
    - - diff --git a/posts/tag_personal.html b/posts/tag_personal.html deleted file mode 100644 index 801fd7c..0000000 --- a/posts/tag_personal.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - - - -
    -

    Posts

    - -
    - - diff --git a/posts/tag_programming.html b/posts/tag_programming.html deleted file mode 100644 index 332900c..0000000 --- a/posts/tag_programming.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - Matthew Kosarek - - - -
    -

    Matthew Kosarek

    - -
    - - - -
    -

    Posts

    -
      - -
    -
    - - diff --git a/resume.css b/resume.css index 050a0c0..0bccb2b 100755 --- a/resume.css +++ b/resume.css @@ -1,3 +1,8 @@ +@font-face { + font-family: Iosevka; + src: url(fonts/Ubuntu-M.ttf); + } + html { overflow-y: overlay; font-size: 16px; @@ -20,7 +25,7 @@ header { text-align: left; background-color: white; color: black; - font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + font-family: 'Iosevka', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.325rem; } @@ -49,14 +54,13 @@ header { } .resume_header_name { - font-size: 3rem; - line-height: 3rem; + font-size: 2rem; + line-height: 2rem; font-variant: small-caps; word-wrap: break-word; padding: 0; margin: 0; - font-weight: 500; - margin-bottom: 2rem; + margin-bottom: 1rem; } #resume_header_contact { @@ -91,9 +95,9 @@ header { font-weight: bold; padding: 0; margin: 0; - padding: 0.25rem; - background-color: #2E4C6D; - color: white; + padding: 0.25rem; + background-color: #583759; + color: white; } .resume_section_content { @@ -106,6 +110,10 @@ header { justify-content: space-between; } +.experience-item:hover { + color: #583759; +} + .experience-item ul { margin-top: 0.5rem; } diff --git a/resume.html b/resume.html index 2202d78..0ee34d4 100755 --- a/resume.html +++ b/resume.html @@ -18,7 +18,6 @@ @@ -49,100 +48,6 @@ πŸ‡ΊπŸ‡Έ United States Citizen
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Languages
    JavaScript/ TypeScript5 yrs
    C#2Β½ yrs
    Python2Β½ yrs
    C/C++1 yr
    Java1 yr
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Technologies
    React5 yrs
    node.js2Β½ yrs
    Unity2Β½ yrs
    ASP.NET2Β½ yrs
    OpenGL1 yr
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Tools
    Git5 yrs
    Linux5 yrs
    VSCode2Β½ yrs
    Visual Studio2Β½ yrs
    Webpack2Β½ yrs
    Docker1 yr
    -
    diff --git a/robots.txt b/robots.txt index a69d19b..d0cab32 100644 --- a/robots.txt +++ b/robots.txt @@ -1,6 +1,5 @@ User-agent: * Sitemap: https://www.matthewkosarek.xyz/sitemap.txt -Disallow: /posts Disallow: /download Disallow: /themes Disallow: /favicon \ No newline at end of file diff --git a/run_dev.sh b/run_dev.sh index 68d5ee7..ebf4ca7 100755 --- a/run_dev.sh +++ b/run_dev.sh @@ -1 +1 @@ -python -m http.server 8080 \ No newline at end of file +python3 -m http.server 8080 \ No newline at end of file diff --git a/upload.sh b/upload.sh index b02c6b5..437402c 100755 --- a/upload.sh +++ b/upload.sh @@ -1 +1 @@ -rsync -a ./ root@physicsforgames.com:/var/www/matthewkosarek +rsync -a ./ root@matthewkosarek.xyz:/var/www/matthewkosarek -- cgit v1.2.1