1

Lots of cleanup

This commit is contained in:
Evan Pratten 2022-11-25 14:58:40 -05:00
parent d9c0478069
commit 72e6a39f40
37 changed files with 103 additions and 28 deletions

View File

@ -5,6 +5,7 @@ description: "I3wm makes everything 10x harder than it should be"
date: 2019-08-12 date: 2019-08-12
tags: notes languages tags: notes languages
aliases: [/blog/2019/08/12/setting-up-ja] aliases: [/blog/2019/08/12/setting-up-ja]
draft: true
--- ---
I am currently working with [Hiragana](https://en.wikipedia.org/wiki/Hiragana), [Katakana](https://en.wikipedia.org/wiki/Katakana), and, [Kanji](https://en.wikipedia.org/wiki/Kanji) in some projects, and needed a more reliable way to write than running some [romaji](https://en.wikipedia.org/wiki/Romanization_of_Japanese) through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for [i3wm](https://i3wm.org/), because it does not obey system settings for languages and inputs. I am currently working with [Hiragana](https://en.wikipedia.org/wiki/Hiragana), [Katakana](https://en.wikipedia.org/wiki/Katakana), and, [Kanji](https://en.wikipedia.org/wiki/Kanji) in some projects, and needed a more reliable way to write than running some [romaji](https://en.wikipedia.org/wiki/Romanization_of_Japanese) through an online translator. So, this post will detail what I did to enable native inputs on my laptop. This guide is specifically for [i3wm](https://i3wm.org/), because it does not obey system settings for languages and inputs.

View File

@ -9,7 +9,7 @@ redirect_from:
- /ef7b3166/ - /ef7b3166/
aliases: [/blog/2019/09/11/buildingimgfrombin] aliases: [/blog/2019/09/11/buildingimgfrombin]
extra: extra:
uses_twitter: true uses: [twitter]
--- ---
During a computer science class today, we were talking about embedding code and metadata in *jpg* and *bmp* files. @exvacuum was showing off a program he wrote that watched a directory for new image files, and would display them on a canvas. He then showed us a special image. In this image, he had injected some metadata into the last few pixels, which were not rendered, but told his program where to position the image on the canvas, and it's size. During a computer science class today, we were talking about embedding code and metadata in *jpg* and *bmp* files. @exvacuum was showing off a program he wrote that watched a directory for new image files, and would display them on a canvas. He then showed us a special image. In this image, he had injected some metadata into the last few pixels, which were not rendered, but told his program where to position the image on the canvas, and it's size.

View File

@ -9,7 +9,7 @@ redirect_from:
- /ebsdjtd9/ - /ebsdjtd9/
aliases: [/blog/2020/04/20/ludumdare46] aliases: [/blog/2020/04/20/ludumdare46]
extra: extra:
uses_twitter: true uses: [twitter]
--- ---
Over the past weekend I teamed up with @rsninja722, @wm-c, @exvacuum, @marshmarlow, and our friends Sally and Matt to participate in the [LudumDare46](https://ldjam.com/events/ludum-dare/46) game jam. This post will outline the game development process. Over the past weekend I teamed up with @rsninja722, @wm-c, @exvacuum, @marshmarlow, and our friends Sally and Matt to participate in the [LudumDare46](https://ldjam.com/events/ludum-dare/46) game jam. This post will outline the game development process.

View File

@ -6,7 +6,7 @@ tags = ["frc"]
aliases = ["/blog/2020/08/03/joystick-to-voltage"] aliases = ["/blog/2020/08/03/joystick-to-voltage"]
[extra] [extra]
uses_katex = true uses = ["katex"]
+++ +++
I am starting a new little series here called "Notes from FRC". The idea is that I am going to write about what I have learned over the past three years of working (almost daily) with robots, and hopefully someone in the future will find them useful. The production source code I based this post around is available [here](https://github.com/frc5024/lib5k/blob/cd8ad407146b514cf857c1d8ac82ac8f3067812b/common_drive/src/main/java/io/github/frc5024/common_drive/calculation/DifferentialDriveCalculation.java). I am starting a new little series here called "Notes from FRC". The idea is that I am going to write about what I have learned over the past three years of working (almost daily) with robots, and hopefully someone in the future will find them useful. The production source code I based this post around is available [here](https://github.com/frc5024/lib5k/blob/cd8ad407146b514cf857c1d8ac82ac8f3067812b/common_drive/src/main/java/io/github/frc5024/common_drive/calculation/DifferentialDriveCalculation.java).

View File

@ -9,7 +9,7 @@ extra:
This post is a continuation on my "Notes from FRC" series. This time, This post is a continuation on my "Notes from FRC" series. This time,
I cover an extremely simple, yet very effective way to get a I cover an extremely simple, yet very effective way to get a
tank-drive robot from A to B autonomously. tank-drive robot from A to B autonomously.
uses_katex: true uses: [katex]
aliases: [/blog/2020/08/13/drivetrain-navigation] aliases: [/blog/2020/08/13/drivetrain-navigation]
--- ---

View File

@ -6,7 +6,7 @@ date: 2021-12-03
tags: reference tags: reference
draft: false draft: false
extra: extra:
uses_katex: true uses: [katex]
excerpt: This post is an overview of Quaternions for Rust programmers, and anyone willing to learn. excerpt: This post is an overview of Quaternions for Rust programmers, and anyone willing to learn.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-01-06
tags: random tags: random
draft: false draft: false
extra: extra:
uses_katex: false
excerpt: My GitHub profile is a bit like an iceberg. At the time of writing, I have made nearly 8 and a half thousand commits to nearly a thousand repositories. This post covers the hidden failed projects. excerpt: My GitHub profile is a bit like an iceberg. At the time of writing, I have made nearly 8 and a half thousand commits to nearly a thousand repositories. This post covers the hidden failed projects.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-01-19
tags: random 3d-pipeline tags: random 3d-pipeline
draft: false draft: false
extra: extra:
uses_katex: false
excerpt: This post covers the process I went through to write a Neural-Network-assisted Blender plugin for converting monocular images into 3D textured meshes. excerpt: This post covers the process I went through to write a Neural-Network-assisted Blender plugin for converting monocular images into 3D textured meshes.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-02-14
tags: project pbx tags: project pbx
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-02-26
tags: project keyboard tags: project keyboard
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
--- ---

View File

@ -7,7 +7,7 @@ tags: reference
draft: false draft: false
extra: extra:
excerpt: This document is written for my PROG10082 classmates as a quick reference for some Java concepts that were skipped over in the course. excerpt: This document is written for my PROG10082 classmates as a quick reference for some Java concepts that were skipped over in the course.
uses_katex: false
hidden: true hidden: true
auto_center_images: true auto_center_images: true
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-04-06
tags: random tags: random
draft: false draft: false
extra: extra:
uses_katex: false
excerpt: A project review post covering my work on remote-control for the UDM-Pro cooling system excerpt: A project review post covering my work on remote-control for the UDM-Pro cooling system
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-04-11
tags: robotics tags: robotics
draft: true draft: true
extra: extra:
uses_katex: true uses: [katex]
excerpt: In this post, I take a look at a mathematical problem commonly encountered with relative rotation offset calculation in robotics. excerpt: In this post, I take a look at a mathematical problem commonly encountered with relative rotation offset calculation in robotics.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-05-10
tags: music tags: music
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: Release notification for Space & Time Vol. 1 excerpt: Release notification for Space & Time Vol. 1
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-05-18
tags: random tags: random
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: This post covers how to keep your commit graph alive across multiple GIT instances by syncing your commit history to magic repos. excerpt: This post covers how to keep your commit graph alive across multiple GIT instances by syncing your commit history to magic repos.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-05-21
tags: radio random nanovna tags: radio random nanovna
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: I went out in the field and tried out my brand new NanoVNA. excerpt: I went out in the field and tried out my brand new NanoVNA.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-06-08
tags: networking tags: networking
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: I used multiple layers of IP encapsulation to evade an upstream firewall in the name of IPv6. excerpt: I used multiple layers of IP encapsulation to evade an upstream firewall in the name of IPv6.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-06-13
tags: random tags: random
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: A quick guide on launching Visual Paradigm on Fedora 36 excerpt: A quick guide on launching Visual Paradigm on Fedora 36
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-06-23
tags: random tags: random
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: How to flash custom firmware to the Steam Controller, allowing it to connect to the Nintendo Switch excerpt: How to flash custom firmware to the Steam Controller, allowing it to connect to the Nintendo Switch
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-06-26
tags: random as398057 tags: random as398057
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: This post covers some of the logistics behind rickrolling the internet with some clever routing tricks. excerpt: This post covers some of the logistics behind rickrolling the internet with some clever routing tricks.
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-07-02
tags: story tags: story
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: From 2016 to 2021, I dedicated most of my time to robotics and control systems programming. This is my journey excerpt: From 2016 to 2021, I dedicated most of my time to robotics and control systems programming. This is my journey
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-08-17
tags: networking tags: networking
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: I recently started AS398057, a low cost Autonomous System. This post talks about how its going excerpt: I recently started AS398057, a low cost Autonomous System. This post talks about how its going
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-09-09
tags: website tags: website
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: A small update post about some website changes excerpt: A small update post about some website changes
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-10-02
tags: website network tags: website network
draft: false draft: false
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: A look at the usage of personal ASNs based on freely available data excerpt: A look at the usage of personal ASNs based on freely available data
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-10-17
tags: amprnet network tags: amprnet network
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: A tutorial for AMPRNet operators who are BGP announcing their first prefix to Vultr excerpt: A tutorial for AMPRNet operators who are BGP announcing their first prefix to Vultr
--- ---

View File

@ -6,7 +6,7 @@ date: 2022-10-17
tags: amprnet network tags: amprnet network
draft: true draft: true
extra: extra:
uses_katex: false
auto_center_images: true auto_center_images: true
excerpt: A tutorial for AMPRNet operators who are BGP announcing their first prefix to Vultr excerpt: A tutorial for AMPRNet operators who are BGP announcing their first prefix to Vultr
--- ---

View File

@ -3,7 +3,7 @@ title: Meme Appreciation Month
description: "Come chat with young hams, and join the meme madness!" description: "Come chat with young hams, and join the meme madness!"
aliases: [/yeet] aliases: [/yeet]
extra: extra:
uses_flags: true uses: [flags]
--- ---
***This event has passed. Page preserved for nostalgia.*** ***This event has passed. Page preserved for nostalgia.***

View File

@ -1,7 +1,7 @@
--- ---
title: IP Addressing Plan title: IP Addressing Plan
extra: extra:
uses_graphviz: true uses: [graphviz]
--- ---

View File

@ -2,7 +2,7 @@
title: "A10U8R: Signal Attenuator" title: "A10U8R: Signal Attenuator"
description: "A small, but helpful module for VCV Rack 2" description: "A small, but helpful module for VCV Rack 2"
extra: extra:
uses_katex: true uses: [katex]
--- ---
[![Download Plugin](https://img.shields.io/badge/-download-darkgreen)](https://github.com/Ewpratten/A10U8R/releases/latest) [![Download Plugin](https://img.shields.io/badge/-download-darkgreen)](https://github.com/Ewpratten/A10U8R/releases/latest)

View File

@ -0,0 +1,3 @@
.footer {
text-align: center;
}

View File

@ -43,3 +43,11 @@ body {
} }
border-bottom: 1px double rgb(171, 167, 167); border-bottom: 1px double rgb(171, 167, 167);
} }
.page #content {
img {
display: block;
margin-left: auto;
margin-right: auto;
}
}

View File

@ -3,6 +3,8 @@
{% set title = "NO TITLE SET" %} {% set title = "NO TITLE SET" %}
{% set description = "" %} {% set description = "" %}
{% set is_article = false %} {% set is_article = false %}
{% set feature_flags = [] %}
{% set redirect_target = "" %}
{% endblock variable_wormhole %} {% endblock variable_wormhole %}
<!DOCTYPE html> <!DOCTYPE html>
@ -17,6 +19,11 @@
{% include "components/metadata/advertise-rss.html" %} {% include "components/metadata/advertise-rss.html" %}
{% include "components/metadata/opengraph.html" %} {% include "components/metadata/opengraph.html" %}
{# Redirect support #}
{% if redirect_target != "" %}
<meta http-equiv="refresh" content="0; url={{redirect_target}}" />
{% endif %}
{# Page title #} {# Page title #}
<title>{{title}} | {{config.title}}</title> <title>{{title}} | {{config.title}}</title>
@ -48,6 +55,9 @@
{# Component styles #} {# Component styles #}
{% block component_styles %} {% block component_styles %}
{% endblock component_styles %} {% endblock component_styles %}
{# Enable features #}
{% include "components/metadata/page-features.html" %}
</head> </head>
<body> <body>

View File

@ -0,0 +1,13 @@
{% block component_styles %}
{{ super() }}
<link rel="stylesheet" href="/styles/components/footer.css">
{% endblock component_styles %}
<div class="footer">
<br>
<span class="gray">-- EOF --</span>
<p>
Site design & content by: <a href="/contact">Evan Pratten</a><br>
Consider <a href="/donate" target="_blank">supporting my work</a> if you like what you see<br>
</p>
</div>

View File

@ -0,0 +1,28 @@
{% for feature in feature_flags %}
{# KATEX #}
{% if feature == "katex" %}
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], displayMath: [ ['$$','$$'], ['\[','\]'] ]}});
</script>
{% endif %}
{# Flags #}
{% if feature == "flags" %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/6.4.3/css/flag-icons.min.css"
integrity="sha512-uvXdJud8WaOlQFjlz9B15Yy2Au/bMAvz79F7Xa6OakCl2jvQPdHD0hb3dEqZRdSwG4/sknePXlE7GiarwA/9Wg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
{% endif %}
{# Twitter embed #}
{% if feature == "twitter" %}
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %}
{# Mermaid #}
{% if feature == "mermaid" or feature == "graphviz" %}
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
{% endif %}
{% endfor %}

View File

@ -5,6 +5,9 @@
{{ super() }} {{ super() }}
{% set title = section.title %} {% set title = section.title %}
{% set description = config.description %} {% set description = config.description %}
{% if section.extra.uses %}
{% set feature_flags = section.extra.uses %}
{% endif %}
{% endblock variable_wormhole %} {% endblock variable_wormhole %}
{# Page content #} {# Page content #}

View File

@ -6,6 +6,12 @@
{% set title = page.title %} {% set title = page.title %}
{% set description = page.description %} {% set description = page.description %}
{% set is_article = true %} {% set is_article = true %}
{% if page.extra.uses %}
{% set feature_flags = page.extra.uses %}
{% endif %}
{% if page.extra.redir_to %}
{% set redirect_target = page.extra.redir_to %}
{% endif %}
{% endblock variable_wormhole %} {% endblock variable_wormhole %}
{# Page content #} {# Page content #}

View File

@ -5,6 +5,9 @@
{{ super() }} {{ super() }}
{% set title = section.title %} {% set title = section.title %}
{% set description = section.description %} {% set description = section.description %}
{% if section.extra.uses %}
{% set feature_flags = section.extra.uses %}
{% endif %}
{% endblock variable_wormhole %} {% endblock variable_wormhole %}
{# Page content #} {# Page content #}