First pass at a first blog pos

main
Andrew Coleman 2023-02-03 14:10:24 -05:00
parent 55b5b782de
commit 9db0b92f88
15 changed files with 46 additions and 146 deletions

View File

@ -22,6 +22,6 @@ juice_logo_name = "penguincoder"
juice_logo_path = "/tux.png" juice_logo_path = "/tux.png"
juice_exclude_menu = [] juice_exclude_menu = []
juice_extra_menu = [ juice_extra_menu = [
# { title = "Blog", link = "/blog" }, { title = "Blog", link = "/blog/" },
] ]
repository_url = "https://git.penguincoder.org/penguincoder/penguincoder-org" repository_url = "https://git.penguincoder.org/penguincoder/penguincoder-org"

View File

@ -7,8 +7,16 @@ date = "2023-01-10"
tags = ["rust", "blog"] tags = ["rust", "blog"]
+++ +++
This is a first post. # New beginnings
For the first time in more than a decade, I have decided to revive my online presence.
<!-- more --> <!-- more -->
This is the rest of the story. ## Writing
In a professional setting, I tend to write an awful lot of documentation. I tell stories about the software we use and the choices made during development. I can't really describe why I haven't composed more work for myself.
## Puzzles
This is a place for me to write about the problems I solve, the many accomplishments on the farm, and anything else that suits my fancy.

View File

@ -1,14 +0,0 @@
+++
title = "Second Post"
description = "second post"
date = "2023-01-09"
[taxonomies]
tags = ["rust", "blog", "one"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Eleventh Post"
description = "post 11"
date = "2022-12-31"
[taxonomies]
tags = ["christmas", "blog"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "third Post"
description = "third post"
date = "2023-01-08"
[taxonomies]
tags = ["rust", "five", "blog"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Post 4"
description = "fourth post"
date = "2023-01-07"
[taxonomies]
tags = ["andrew"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Fifth Post"
description = "post 5"
date = "2023-01-06"
[taxonomies]
tags = ["blog"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Sixth Post"
description = "sixth post"
date = "2023-01-05"
[taxonomies]
tags = []
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Seventh Post"
description = "seventh post"
date = "2023-01-04"
[taxonomies]
tags = ["python"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Eighth Post"
description = "eighth post"
date = "2023-01-03"
[taxonomies]
tags = ["blog"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Ninth Post"
description = "post 9"
date = "2023-01-02"
[taxonomies]
tags = ["calculators"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -1,14 +0,0 @@
+++
title = "Tenth Post"
description = "11 post"
date = "2023-01-01"
[taxonomies]
tags = ["two", "blog"]
+++
This is a first post.
<!-- more -->
This is the rest of the story.

View File

@ -0,0 +1,32 @@
+++
title = "A story about the logo"
description = "Automatically generated art"
date = "2023-01-19"
[taxonomies]
tags = ["stable-diffusion", "blog"]
+++
# The existing logo
I have used the same image in my Gravatar for many years, but the thing is... I can't find the source image any more. It has long since been lost to the sands of time and `format C: /q`. If you are unfamiliar with it, basically it is a diamond-shaped yellow road sign with Tux, the Linux mascot on it. I think that I found the original in a Linux magazine in the early 2000's, but there is no telling any more. It's time for a fresh look, anyways.
<!-- more -->
# My home setup
I like to work on my desktop when I am at home. I have a wonderful [Dell Ultrasharp U4320Q](https://www.dell.com/en-us/shop/dell-ultrasharp-43-4k-usb-c-monitor-u4320q/apd/210-avke/monitors-monitor-accessories) display, a still-decent [i9-9900k](https://ark.intel.com/content/www/us/en/ark/products/186605/intel-core-i99900k-processor-16m-cache-up-to-5-00-ghz.html) processor, 64GB of DDR4 memory, and 2TB of NVMe primary storage. I recently used my Juno points (a self-help like service that gives you money each month to do something for yourself) to buy a used NVidia RTX 3090 GPU. This is kind of a big card; it requires something like 400W of power, two-and-a-half slots, and sports 24GB of GDDR5 memory. At the time of purchase, the RTX 4000 series was just announced, so while not quite top-of-the-line, it was still the newest available at the time. To make availability possible, Etherium had recently forked to a proof-of-stake model rather than the existing proof-of-work. This effectively made all of the at-home miners obsolete and there was a corresponding flood of GPUs on eBay.
With the new GPU, I can finally run games at the native 4K resolution and respectable framerates to boot.
# Stable Diffusion
I was incredibly excited to hear about the announcement of DALL-E. The prospect of having a computer "just" make me an image was exciting. However, once I got an invite to the platform I realized that I was not impressed with the pricing model or the ineptitude of the generator. With having to pay-per-image generated and then having to cycle through so many images to get one good render, it seemed like a waste. But then I discovered [Stable Diffusion](https://github.com/Stability-AI/stablediffusion). It was __**magical**__. I made it work in Windows `git-bash` and now I have a self-hosted generator running on my GPU that can make an image in something like 4 seconds.
Self-hosting also has the benefit of being able to load _different_ models like Stable Diffusion 1.4, SD 2.0, Waifu Diffusion, etc. I also have a choice in what interface to run. The in-built interface with the core Stable Diffusion is a CLI python script. It works great, but not so good unless you are sitting in front of a keyboard. For my current situation I have settled on [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui). It's got a lot of knobs to twist and options to change.
# Final Result
For this particular image, I had to generate around 50 different images to get one of "tux the penguin" on a "four sided yellow road sign" without too much in the background or whatever strange characters it thinks are words.
![Tux on a road sign](/blog/2023-01-19-tux.png)

BIN
static/blog/2023-01-19-tux.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View File

@ -41,9 +41,9 @@
{{ page.summary | safe }} {{ page.summary | safe }}
</div> </div>
<div class="text post-tags"> <div class="text post-tags">
<span class="icon"><i class="fas fa-tag"></i></span> tagged with
{% for tag in page.taxonomies["tags"] %} {% for tag in page.taxonomies["tags"] %}
<span> <span class="tag">
<a href="/tags/{{ tag }}"> <a href="/tags/{{ tag }}">
{{ tag }} {{ tag }}
</a> </a>
@ -51,7 +51,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="read-more"> <div class="read-more">
<a href="{{ page.permalink }}">Read more</a> <a href="{{ page.permalink }}">Read more...</a>
</div> </div>
</article> </article>
{% endfor %} {% endfor %}