Compare commits

...

6 Commits

12 changed files with 211 additions and 144 deletions

View File

@ -2,7 +2,7 @@
<head>
<meta charset="utf-8">
<title>chmod777's tilde</title>
<meta name="description" content="">
<meta name="description" content="">
<meta name="author" content="chmod777">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -13,11 +13,8 @@
<header>
<h1>~chmod777</h1>
<nav>
<ul>
<li>
<a href="/">home</a>
</li>
<ul>
<a href="/~chmod777/">Home</a>
</nav>
</header>
<main>
@ -26,6 +23,15 @@
</main>
<footer>
<nav>
<span>~</span>
<a href="#">Top</a>
<span>~</span>
<a href="/~chmod777/">Home</a>
<span>~</span>
</nav>
<br>
<a id="page-source" href="https://tildegit.org/chmod777/my_blog">Page source</a>
</footer>
</body>
</html>

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
drafts/*
botany_builder/*

View File

@ -1,25 +1,60 @@
:root {
--background-color: #111;
--border-color: #222;
--text-color: #fb5;
--link-color: #f70;
--link-highlight-color: #f20;
--header-color: #ccc;
}
body {
background-color: #111;
color: #fb5;
background-color: var(--background-color);
color: var(--text-color);
display: block;
}
@media screen and (min-width: 800px) {
body {
margin-left: auto;
margin-right: auto;
width: 800px;
}
}
h1, h2, h3, h4, h5, h6 {
color: #ccc;
@media screen and (min-width: 1000px) {
body {
margin: auto;
display: grid;
width: 1000px;
grid-template-columns: 200px auto 200px;
grid-template-areas:
'head head head'
'nav main .'
'foot foot foot';
}
body > header {
grid-area: head;
}
body > nav {
grid-area: nav;
position: sticky;
top: 0;
height: min-content;
}
body > main {
grid-area: main;
}
body > footer {
grid-area: foot;
}
}
h1, h2, h3, h4, h5, h6 {
color: var(--header-color);
}
body > header {
text-align: center;
}
a {
color: #f70;
color: var(--link-color);
font-weight: bold;
}
a:hover {
color: #f20;
color: var(--link-highlight-color);
}
img {
@ -31,3 +66,15 @@ img {
width: 64px;
height: 64px;
}
pre {
background-color: var(--border-color);
color: var(--header-color);
max-width: min-content;
padding: 20px;
border-radius: 5px;
}
footer {
margin: 20px 0px 200px 0px;
text-align: center;
}

View File

@ -13,56 +13,66 @@
<body>
<header>
<nav>
<h1 id="title">~chmod777</h1>
<p>You can also find this blog on gemini at</p>
<a href="gemini://tilde.club/~chmod777">gemini://tilde.club/~chmod777</a>
<ul>
<li><a href="#introductions">Introductions</a></li>
<li><a href="#contact-info">Contact info</a></li>
<li><a href="#what-you-will-find-here">What you will find here</a></li>
<li><a href="#posts">Posts</a></li>
</ul>
</nav>
<h1 id="title">~chmod777</h1>
<p>You can also find this blog on gemini at</p>
<a href="gemini://tilde.club/~chmod777">gemini://tilde.club/~chmod777</a>
</header>
<section>
<h2 id="intorductions">Introductions</h2>
<p>Hello!</p>
<p>On the internet I go by chmod777. Feel free to ask me anything.</p>
<p>A recent computer science graduate with no clue what they are doing in life.</p>
<p>I just set this up so there is more to add.</p>
</section>
<section>
<h2 id="contact-info">Contact info</h2>
<nav>
<ul>
<li>fediverse/mastodon: @chmod777@linuxrocks.online</li>
<li>irc.tilde.chat: chmodrwx</li>
<li>gitea: tildegit.org/chmod777</li>
<li><a href="#introductions">Introductions</a></li>
<li><a href="#contact-info">Contact info</a></li>
<li><a href="#find-here">What you will find here</a></li>
<li><a href="#posts">Posts</a></li>
<li><a href="#botany">My Botany Plant</a></li>
</ul>
</section>
</nav>
<section>
<h2 id="what-you-will-find-here">What you will find here</h2>
<p>Blog posts about</p>
<ul>
<li>Software dev</li>
<li>Hardware dev</li>
<li>Aluminium casting</li>
<li>Gardening</li>
<li>Baking</li>
<li>Other hobby projects</li>
<li>Ramblings</li>
</ul>
</section>
<main>
<section id="introductions">
<h2>Introductions</h2>
<p>Hello!</p>
<p>On the internet I go by chmod777. Feel free to ask me anything.</p>
<p>A recent computer science graduate with no clue what they are doing in life.</p>
<p>I just set this up so there is more to add.</p>
</section>
</section>
<h2 id="posts">Posts</h2>
</section>
<section id="contact-info">
<h2>Contact info</h2>
<ul>
<li>fediverse/mastodon: @chmod777@tilde.zone</li>
<li>irc.tilde.chat: chmodrwx</li>
<li>gitea: tildegit.org/chmod777</li>
</ul>
</section>
<section id="find-here">
<h2>What you will find here</h2>
<p>Blog posts about</p>
<ul>
<li>Software dev</li>
<li>Hardware dev</li>
<li>Aluminium casting</li>
<li>Gardening</li>
<li>Baking</li>
<li>Other hobby projects</li>
<li>Ramblings</li>
</ul>
</section>
<section id="posts">
<h2>Posts</h2>
</section>
</main>
<footer>
<a href="#title">Top</a>
<nav>
<span>~</span>
<a href="#">Top</a>
<span>~</span>
</nav>
<br>
<a id="page-source" href="https://tildegit.org/chmod777/my_blog">Page source</a>
</footer>
</body>
</html>

33
posts/Casting_an_Aluminium_Settlers_of_Catan_Board.html Executable file → Normal file
View File

@ -14,31 +14,42 @@
<header>
<h1>~chmod777</h1>
<nav>
<ul>
<li>
<a href="/~chmod777/">home</a>
</li>
<ul>
<a href="/~chmod777/">Home</a>
</nav>
</header>
<main>
<h2 id="settlers-catan-casting">Casting Aluminium Settlers of Catan Board</h2>
<p>A couple years ago now I started casting Settlers of Catan game tiles in aluminium. I have only gotten as far as casting the mountain(ore) tiles but I plan on eventually casting the rest.</p>
<p>To start I model a tile using Blender. Modeling the base is faily straight forward. Create a hexagon, scale it to the size you want, extrude it upwards, and then use a difference modifier to create cutouts for towns and roads. The mountains are created using an image as a height map on a seperate plain and then combined with the base using a union modifier.</p>
<p>After modeling the tile in blender I export the file then print it on a 3D printer. The print will be the form for the mold that I will cast into. The smaller the layers in the print the better as the sand tends to cling to the ridges.</P>
<p>Now that I have the form I can place it in the mold and pack sand around it. There are techniques to this but its all rather boring.</p>
<p>After modeling the tile in blender I export the file then print it on a 3D printer. The print will be the form for the mold that I will cast into. Using smaller layers in the print is better as the sand tends to cling to the ridges and you get smaller horizontal lines.</P>
<p>Befor I could cast the first piece I first had to make a molding box. To do this I used four pieces of 2x4 lumber for each side and screwed them together. Then I added some scrap lumber strips to the sides of each half to act as guides so the 2 sides don't shift. Now that I have the form, the casting box, and sand that I ordered I can place the mold, into the box, and pack sand around it and the sprew(form for the pouring hole).</p>
<p>My furnace setup is very low tech. It consists of a pile of rocks stacked to resemble a furnace, a bag of charcole, and a small fan. A small trench is dug under the rocks to allow for airflow while skinny rocks are placed accross the trench to prevent the charcole from falling into it.</p>
<p>The furnace is started with wood and the crucible is placed into it to heat it up gradually. Once the furnace is started charcole is added, then small ingots are placed in thecrucible. It usually takes 40 minutes from lighting the "furnace" to pouring with this "setup".</p>
<p>And here is the results. They still need to be cleaned up a bit.</p>
<p>And here are the results. They still need to be cleaned up a bit.</p>
<ul>
<li><img src="assets/jpeg/catan-mountain-1.jpeg" alt="Photo of an aluminium Settlers of Catan ore tile."></li>
<li><img src="assets/jpeg/catan-mountain-2.jpeg" alt="Photo of an aluminium Settlers of Catan ore tile."></li>
<li><img src="assets/jpeg/catan-mountain-3.jpeg" alt="Photo of an aluminium Settlers of Catan ore tile."></li>
<li><img src="assets/jpeg/catan-mountain-1.jpeg" title="Ore Tile 1" alt="Photo of an aluminium Settlers of Catan ore tile."></li>
<li><img src="assets/jpeg/catan-mountain-2.jpeg" title="Ore Tile 2" alt="Photo of an aluminium Settlers of Catan ore tile."></li>
<li><img src="assets/jpeg/catan-mountain-3.jpeg" title="Ore Tile 3" alt="Photo of an aluminium Settlers of Catan ore tile."></li>
</ul>
<p>These where my first casts so I made a lot of mistakes throughout this whole process. You can see on the third piece that instead of pouring directly into the mold I poured to the side and carved a gate in the sand to piece. The sides are so thin the sand broke away and I need to do a lot of filing to remove the excess material. This also meant that there is a large divit on the bottom because aluminium shrinks when it cools and there was no sprew to feed more aluminum into the back.</p>
<p>There are also several ways I could have improved my molds. The first being angling the cutouts in the mountains so that when the form is pulled out it doesn't catch the sand. You can see in the first piece I had to do a lot off grinding to remove the aluminium where the sand collapsed.</p>
<p>If anybody can tell my why the third tile has that texture on the flat parts that would be great. I think it's because I cast it too hot?</p>
<p>It was a great expierment and I hope to have an update this summer when I cast more of the tiles.</p>
</main>
<footer>
<nav>
<span>~</span>
<a href="#">Top</a>
<span>~</span>
<a href="/~chmod777">Home</a>
<span>~</span>
</nav>
<br>
<a id="page-source" href="https://tildegit.org/chmod777/my_blog">Page source</a>
</footer>
</body>
</html>

16
posts/Designing_a_PCB_for_a_Gamepad_rev1.html Executable file → Normal file
View File

@ -13,11 +13,8 @@
<header>
<h1>~chmod777</h1>
<nav>
<ul>
<li>
<a href="/~chmod777/">home</a>
</li>
<ul>
<a href="/~chmod777/">Home</a>
</nav>
</header>
<main>
@ -44,6 +41,15 @@
</main>
<footer>
<nav>
<span>~</span>
<a href="#">Top</a>
<span>~</span>
<a href="/~chmod777">Home</a>
<span>~</span>
</nav>
<br>
<a id="page-source" href="https://tildegit.org/chmod777/my_blog">Page source</a>
</footer>
</body>
</html>

21
posts/Icons.html Executable file → Normal file
View File

@ -14,23 +14,28 @@
<header>
<h1>~chmod777</h1>
<nav>
<ul>
<li>
<a href="/~chmod777/">home</a>
</li>
<ul>
<a href="/~chmod777/">Home</a>
</nav>
</header>
<main>
<h2>Icons</h2>
<p>Below is a list of icons I have made for various reasons. These icons are in the public domain.</p>
<ul>
<li><img class="icon" src="assets/svg/gears-icon.svg" alt="An icon with two interlocking gears."></li>
<li><img class="icon" src="assets/svg/chat-bubbles-icon.svg" alt="An icon with two overlapping chat bubbles."></li>
<li><img class="icon" src="assets/svg/paper-list-icon.svg" alt="An icon with two stacked pieces of paper and a bullet list on the top piece."></li>
<li><img class="icon" src="assets/svg/gears-icon.svg" title="Gears" alt="An icon with two interlocking gears."></li>
<li><img class="icon" src="assets/svg/chat-bubbles-icon.svg" title="Chat Bubbles" alt="An icon with two overlapping chat bubbles."></li>
<li><img class="icon" src="assets/svg/paper-list-icon.svg" title="Character Sheet" alt="An icon with two stacked pieces of paper and a bullet list on the top piece."></li>
</ul>
</main>
<footer>
<nav>
<span>~</span>
<a href="/~chmod777">Home</a>
<span>~</span>
</nav>
<br>
<a id="page-source" href="https://tildegit.org/chmod777/my_blog">Page source</a>
</footer>
</body>
</html>

44
posts/Roll_Lang.html Executable file → Normal file
View File

@ -12,33 +12,41 @@
<header>
<h1>~chmod777</h1>
<nav>
<ul>
<li>
<a href="/~chmod777/">home</a>
</li>
<ul>
<a href="/~chmod777/">Home</a>
</nav>
</header>
<main>
<h2>Roll Lang</h2>
<h3>Project links</h3>
<ul>
<li>
<a href="https://github.com/jacobguenther/roll_lang">project repository</a>
</li>
<li>
<a href="https://github.com/jacobguenther/roll_lang/wiki">project wiki</a>
</li>
<li><a href="https://github.com/jacobguenther/roll_lang">Repository</a></li>
<li><a href="https://github.com/jacobguenther/roll_lang/wiki">Wiki</a></li>
<li><a href="https://github.com/jacobguenther/projects/1">Project Board</a></li>
</ul>
<p>Roll Lang is a domain specific language for interpreting dice rolls and math operations common in tabletop rpgs.</p>
<p>Roll Lang is a domain specific language for interpreting dice rolls and math operations common in tabletop rpgs. It implements it's own variation of dice notation.</p>
<a href="https://en.wikipedia.org/wiki/Dice_notation">Wikipedia Article on Dice Notation</a>
<h3>Examples</h3>
<p>/r d20 + 5</p>
<p>(12)+5=17</p>
<br>
<p>[[d20 + 5]]</p>
<p>(17)</p>
</main>
<footer>
<h3>Related Posts</h3>
<ul>
<li>
<a href="gRollLang.html">gRollLang</a>
</li>
</ul>
<nav>
<span>~</span>
<a href="#">Top</a>
<span>~</span>
<a href="/~chmod777/">Home</a>
<span>~</span>
</nav>
<br>
<a id="page-source" href="https://tildegit.org/chmod777/my_blog">Page source</a>
</footer>
</body>
</html>

View File

@ -1,41 +0,0 @@
<!DOCYTPE html>
<html>
<head>
<meta charset="utf-8">
<title>chmod777's tilde - gRollLang</title>
<meta name="description" content="">
<meta name="author" content="chmod777">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<header>
<h1>~chmod777</h1>
<nav>
<ul>
<li>
<a href="/~chmod777/">home</a>
</li>
<ul>
</header>
<main>
<h2>gRollLang</h2>
<ul>
<li><a href="https://github.com/jacobguenther/gRollLang">Project repository</a></li>
</ul>
<p>gRollLang is a GTK app for interacting with Roll Lang. I have only just started working on it so it still needs a bit a work. When its done I will release it as a flatpak.</p
<img src="assets/png/gRollLang-screenshot.png" alt="A screenshot of gRollLang">
</main>
<footer>
<h3>Related Posts</h3>
<ul>
<li>
<a href="Roll_Lang.html">roll_lang</a>
</li>
</ul>
</footer>
</body>
</html>

7
update_all.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
SOURCE_DIR=~/blog_source
$SOURCE_DIR/update_html_posts.sh
$SOURCE_DIR/update_gemlog.sh

View File

@ -7,6 +7,12 @@ GEM_DIR=~/public_gemini
rm -r $GEM_DIR/*
mkdir -p $GEM_DIR/assets/jpeg
mkdir -p $GEM_DIR/assets/svg
cp $ASSETS_DIR/jpeg/* $GEM_DIR/assets/jpeg/
cp $ASSETS_DIR/svg/* $GEM_DIR/assets/svg/
cp $SOURCE_DIR/index.gmi $SOURCE_DIR/index.gmi.temp
LINE=`grep -Fn 'Posts' $SOURCE_DIR/index.gmi | cut -d : -f 1`
@ -15,9 +21,7 @@ LINE=$(($LINE+1))
for FILE in `ls -tr $SOURCE_DIR/posts | grep -v /`
do
NAME=${FILE%.html}
echo "source: ${FILE}"
OUT="$GEM_DIR/$NAME.gmi"
echo "out: $OUT"
~/bin/html2gemini_rs "${SOURCE_DIR}/posts/${FILE}" > "${OUT}"
SPACES=`tr -s '_' ' ' <<< "$NAME"`

View File

@ -20,7 +20,7 @@ cp $ASSETS_DIR/css/* $WEB_DIR/assets/css/
cp $SOURCE_DIR/index.html $SOURCE_DIR/index.html.temp
LINE=`grep -Fn 'id="posts"' $SOURCE_DIR/index.html | cut -d : -f 1`
LINE=`grep -Fn '<h2>Posts</h2>' $SOURCE_DIR/index.html | cut -d : -f 1`
LINE=$(($LINE+1))
for FILE in `ls -tr $SOURCE_DIR/posts | grep -v /`
@ -30,9 +30,11 @@ do
ENTRY="posts/${FILE}"
TIME_MODIFIED=`stat -c %y ${ENTRY} | grep -oE "\w{4}-\w{2}-\w{2} \w{2}:\w{2}:\w{2}"`
sed -i "$LINE i <a href=\"https://tilde.club/~chmod777/${FILE}\">${SPACES}</a><p>Last modified on: <time datetime=\"${TIME_MODIFIED}\">${TIME_MODIFIED} UTC</time></p>" $SOURCE_DIR/index.html.temp
sed -i "$LINE i \\\t\t<a href=\"https://tilde.club/~chmod777/${FILE}\">${SPACES}</a><p>Last modified on: <time datetime=\"${TIME_MODIFIED}\">${TIME_MODIFIED} UTC</time></p>" $SOURCE_DIR/index.html.temp
done
$($SOURCE_DIR/botany_builder/target/release/botany_html)
cp $SOURCE_DIR/index.html.temp $WEB_DIR/index.html
rm index.html.temp