diff --git a/config.toml b/config.toml index e6edf98..07bba47 100644 --- a/config.toml +++ b/config.toml @@ -22,6 +22,6 @@ juice_logo_name = "penguincoder" juice_logo_path = "/tux.png" juice_exclude_menu = [] juice_extra_menu = [ -# { title = "Blog", link = "/blog" }, + { title = "Blog", link = "/blog/" }, ] repository_url = "https://git.penguincoder.org/penguincoder/penguincoder-org" \ No newline at end of file diff --git a/content/blog/first-post.md b/content/blog/first-post.md index 9e067cc..586b12b 100644 --- a/content/blog/first-post.md +++ b/content/blog/first-post.md @@ -7,8 +7,16 @@ date = "2023-01-10" 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. -This is the rest of the story. \ No newline at end of file +## 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. \ No newline at end of file diff --git a/content/blog/post-1.md b/content/blog/post-1.md deleted file mode 100644 index f91a04b..0000000 --- a/content/blog/post-1.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Second Post" -description = "second post" -date = "2023-01-09" - -[taxonomies] -tags = ["rust", "blog", "one"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-10.md b/content/blog/post-10.md deleted file mode 100644 index 781d783..0000000 --- a/content/blog/post-10.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Eleventh Post" -description = "post 11" -date = "2022-12-31" - -[taxonomies] -tags = ["christmas", "blog"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-2.md b/content/blog/post-2.md deleted file mode 100644 index 0aa5085..0000000 --- a/content/blog/post-2.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "third Post" -description = "third post" -date = "2023-01-08" - -[taxonomies] -tags = ["rust", "five", "blog"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-3.md b/content/blog/post-3.md deleted file mode 100644 index 697f2d7..0000000 --- a/content/blog/post-3.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Post 4" -description = "fourth post" -date = "2023-01-07" - -[taxonomies] -tags = ["andrew"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-4.md b/content/blog/post-4.md deleted file mode 100644 index 9111e43..0000000 --- a/content/blog/post-4.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Fifth Post" -description = "post 5" -date = "2023-01-06" - -[taxonomies] -tags = ["blog"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-5.md b/content/blog/post-5.md deleted file mode 100644 index 3cd3994..0000000 --- a/content/blog/post-5.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Sixth Post" -description = "sixth post" -date = "2023-01-05" - -[taxonomies] -tags = [] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-6.md b/content/blog/post-6.md deleted file mode 100644 index 525668f..0000000 --- a/content/blog/post-6.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Seventh Post" -description = "seventh post" -date = "2023-01-04" - -[taxonomies] -tags = ["python"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-7.md b/content/blog/post-7.md deleted file mode 100644 index 4c0d43c..0000000 --- a/content/blog/post-7.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Eighth Post" -description = "eighth post" -date = "2023-01-03" - -[taxonomies] -tags = ["blog"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-8.md b/content/blog/post-8.md deleted file mode 100644 index 264efb5..0000000 --- a/content/blog/post-8.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Ninth Post" -description = "post 9" -date = "2023-01-02" - -[taxonomies] -tags = ["calculators"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/post-9.md b/content/blog/post-9.md deleted file mode 100644 index 9406b65..0000000 --- a/content/blog/post-9.md +++ /dev/null @@ -1,14 +0,0 @@ -+++ -title = "Tenth Post" -description = "11 post" -date = "2023-01-01" - -[taxonomies] -tags = ["two", "blog"] -+++ - -This is a first post. - - - -This is the rest of the story. \ No newline at end of file diff --git a/content/blog/website-logo.md b/content/blog/website-logo.md new file mode 100644 index 0000000..ae5cb07 --- /dev/null +++ b/content/blog/website-logo.md @@ -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. + + + +# 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) diff --git a/static/blog/2023-01-19-tux.png b/static/blog/2023-01-19-tux.png new file mode 100755 index 0000000..c0fa9ac Binary files /dev/null and b/static/blog/2023-01-19-tux.png differ diff --git a/templates/section.html b/templates/section.html index 51a0b08..4e1496a 100644 --- a/templates/section.html +++ b/templates/section.html @@ -41,9 +41,9 @@ {{ page.summary | safe }}
{% endfor %}