Merge branch 'main' into drafts

This commit is contained in:
John Bowdre 2023-08-29 16:16:29 -05:00
commit b2b4ca6d1b
9 changed files with 47 additions and 21 deletions

7
.gitmodules vendored
View file

@ -1,9 +1,4 @@
[submodule "themes/risotto"] [submodule "themes/risotto"]
path = themes/risotto path = themes/risotto
url = https://github.com/joeroe/risotto.git url = https://github.com/joeroe/risotto.git
[submodule "themes/hugo-notice"]
path = themes/hugo-notice
url = https://github.com/martignoni/hugo-notice.git
[submodule "themes/hugo-cloak-email"]
path = themes/hugo-cloak-email
url = https://github.com/martignoni/hugo-cloak-email.git

View file

@ -1,7 +1,6 @@
baseURL = "https://runtimeterror.dev" baseURL = "https://runtimeterror.dev"
theme = ["hugo-cloak-email", "risotto"] theme = "risotto"
title = "runtimeterror" title = "runtimeterror"
author = "ops"
copyright = "© 2018-2023 [runtimeterror](https://runtimeterror.dev)" copyright = "© 2018-2023 [runtimeterror](https://runtimeterror.dev)"
paginate = 3 paginate = 3
languageCode = "en" languageCode = "en"

View file

@ -4,6 +4,7 @@ description = "while (true) { bugs++; }"
mainSections = ["posts"] mainSections = ["posts"]
fallBackOgImage = "images/broken-computer.svg" fallBackOgImage = "images/broken-computer.svg"
numberOfFeaturedPosts = 5 numberOfFeaturedPosts = 5
author = "John Bowdre"
indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-." indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-."
@ -21,16 +22,21 @@ palette = "runtimeterror"
title = "runtimeterror" title = "runtimeterror"
logo = "images/broken-computer.svg" logo = "images/broken-computer.svg"
taglines = [ taglines = [
"[ctrl] + [alt] + [defeat]",
"[ESC]:q!", "[ESC]:q!",
"abandon all hope, ye who code here",
"all your bugs are belong to us",
"array index out of bounds", "array index out of bounds",
"bad file descriptor", "bad file descriptor",
"better living through less shitty code", "better living through less shitty code",
"broken pipe", "broken pipe",
"buffering... and buffering... and buffering...",
"bugs are like onions, they have layers", "bugs are like onions, they have layers",
"bugs, uh, find a way", "bugs, uh, find a way",
"calm that panicked kernel", "calm that panicked kernel",
"cannot access private member declared in class", "cannot access private member declared in class",
"class/struct has no member named undefined", "class/struct has no member named undefined",
"coding crimes",
"connection reset by peer", "connection reset by peer",
"converting caffeine into code", "converting caffeine into code",
"creating new and exciting bugs", "creating new and exciting bugs",
@ -41,12 +47,17 @@ taglines = [
"error: could not stat or open file", "error: could not stat or open file",
"expression has no effect", "expression has no effect",
"file descriptor in bad state", "file descriptor in bad state",
"floating in a sea of bugs",
"from chatgpt with bugs", "from chatgpt with bugs",
"from the creators of 'undefined is not a function'", "from the creators of 'undefined is not a function'",
"function does not return a value", "function does not return a value",
"glitches, hitches, and a lot of coffee",
"god wouldn't be up this late",
"hello world, hello bugs",
"host key verification failed", "host key verification failed",
"houston, we have a bug", "houston, we have a bug",
"i ain't afraid of no code", "i ain't afraid of no code",
"i bet it looks glitchy in the dark",
"i opened vi and i can't get out", "i opened vi and i can't get out",
"i see null pointers", "i see null pointers",
"i'd tell you a udp joke but", "i'd tell you a udp joke but",
@ -56,12 +67,14 @@ taglines = [
"invalid assignment", "invalid assignment",
"invalid option", "invalid option",
"invalid username or password", "invalid username or password",
"it's not a bug, it's a feature in search of a use case",
"keep your friends close, but your breakpoints closer", "keep your friends close, but your breakpoints closer",
"kernel panic - not syncing: attempted to kill init", "kernel panic - not syncing: attempted to kill init",
"may the code be with you", "may the code be with you",
"mess with the test, fail like the rest", "mess with the test, fail like the rest",
"need input", "need input",
"no such file or directory", "no such file or directory",
"now where did i leave my null pointer...",
"out of memory: kill process or sacrifice child", "out of memory: kill process or sacrifice child",
"permission denied (publickey)", "permission denied (publickey)",
"pointer arithmetic on non-pointer type", "pointer arithmetic on non-pointer type",
@ -69,6 +82,7 @@ taglines = [
"read-only file system", "read-only file system",
"resource temporarily unavailable", "resource temporarily unavailable",
"root is not in the sudoers file. this incident will be reported", "root is not in the sudoers file. this incident will be reported",
"seeking harmony in a symphony of bugs",
"segmentation fault (core dumped)", "segmentation fault (core dumped)",
"ship things and breakfast", "ship things and breakfast",
"stale nfs file handle", "stale nfs file handle",
@ -76,6 +90,7 @@ taglines = [
"syntax error: unexpected end of file", "syntax error: unexpected end of file",
"syntax error: unexpected token", "syntax error: unexpected token",
"that's a layer 8 problem", "that's a layer 8 problem",
"the bug stops here",
"the system is down", "the system is down",
"there's no place like $HOME", "there's no place like $HOME",
"tonight we test in prod", "tonight we test in prod",
@ -83,10 +98,14 @@ taglines = [
"undefined reference to function", "undefined reference to function",
"unexpected token", "unexpected token",
"variable has already been declared", "variable has already been declared",
"when in doubt, print it out",
"where there's code, there's bugs",
"while (bugs) { fix(); }",
"while (true) { bugs++; }", "while (true) { bugs++; }",
"why did it have to be bugs", "why did it have to be bugs",
"write error: no space left on device", "write error: no space left on device",
"you can't handle the exception", "you can't handle the exception",
"you gotta stop letting your mama test you, man",
] ]
# Sidebar: social links # Sidebar: social links
@ -99,11 +118,17 @@ icon = "fa-brands fa-github"
title = "GitHub" title = "GitHub"
url = "https://github.com/jbowdre" url = "https://github.com/jbowdre"
[[socialLinks]]
icon = "fa-solid fa-circle-user"
title = "CounterSocial"
url = "https://counter.social/@john_b"
[[socialLinks]]
icon = "fa-solid fa-comments"
title = "SimpleX Chat"
url = "https://runtimeterror.dev/simplex"
[[socialLinks]] [[socialLinks]]
icon = "fa-solid fa-envelope" icon = "fa-solid fa-envelope"
title = "Email" title = "Email"
url = "mailto:ops@runtimeterror.dev" url = "mailto:ops@runtimeterror.dev"
[[socialLinks]]
icon = "fa-solid fa-circle-user"
url = "https://counter.social/@john_b"

View file

@ -1,8 +1,11 @@
--- ---
title: How to Ask For Help title: How to Ask For Help
date: 2023-08-26 date: 2023-08-26
lastmod: 2023-08-28
timeless: true timeless: true
description: There are no dumb questions - but there are smarter (and dumber) ways to ask them. description: There are no dumb questions - but there are smarter (and dumber) ways to ask them.
featured: true
aliases: ["how2ask"]
--- ---
I spend a lot of my time and energy answering technical questions, both professionally and "for fun" as a way to scratch that troubleshooting itch. How a question is asked plays a big factor in how effectively I'll be able to answer it. I spend a lot of my time and energy answering technical questions, both professionally and "for fun" as a way to scratch that troubleshooting itch. How a question is asked plays a big factor in how effectively I'll be able to answer it.
@ -31,14 +34,15 @@ We need to understand what you're trying to ask before we can answer it, and can
Once you've written your query, take the time to read back over it and make sure it makes sense. This is another chance to show us that you're serious about solving the problem. Once you've written your query, take the time to read back over it and make sure it makes sense. This is another chance to show us that you're serious about solving the problem.
Your helpers aren't going to judge you for linguistic errors but such mistakes may make it difficult for them to understand your problem. If you're not comfortable writing in English, go ahead and post in your native language. There are plenty of tools that your helper can use to translate your message, and those will be much more effective if the original message is clearly written in the original language. Your helpers aren't going to judge you for linguistic errors but such mistakes may make it difficult for them to understand your problem. If you're not comfortable writing in English, go ahead and post in your native language using short sentences and correct punctuation. There are plenty of tools that your helper can use to translate your message, and those will be much more effective if the original message is written clearly in the original language.
### Be Precise ### Be Precise
The more details you can provide about your problem, the better. The more details you can provide about your problem, the better.
- What system/device/application are you using? Be specific about the model and/or version. - What system/device/application are you using? Be specific about the model and/or version (and please don't just say "the latest version" - share the complete version number).
- What are the symptoms of the problem? Are there any error messages? If so, include those *in full*. Screenshots can be a big help here. - What are the symptoms of the problem? Are there any error messages? If so, include those *in full*. Screenshots can be a big help here.
- When did the problem start? Is this a new problem or has it never worked? What (if anything) changed before the problem started? - When did the problem start? Is this a new problem or has it never worked? What (if anything) changed before the problem started?
- What steps can we take to reproduce the problem? List the exact steps without any shortcuts.
- What steps have you already taken to try and solve the problem? Don't say "I've tried everything" (which tells us nothing); tell us *exactly* what you've tried. - What steps have you already taken to try and solve the problem? Don't say "I've tried everything" (which tells us nothing); tell us *exactly* what you've tried.
- If your research yielded other reports of the same problem but no solution, include links to those reports. - If your research yielded other reports of the same problem but no solution, include links to those reports.

View file

@ -3,6 +3,8 @@
{{ with .logo }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }} {{ with .logo }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }}
<h1 class="about__title">{{ .title }}</h1> <h1 class="about__title">{{ .title }}</h1>
{{ partial "tagline.html" . }} {{ partial "tagline.html" . }}
<br>
<i class="fa-regular fa-user"></i> {{ site.Params.Author }}
</div> </div>
{{ end }} {{ end }}

View file

@ -12,11 +12,13 @@
</header> </header>
{{ range $pages }} {{ range $pages }}
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
<article class="post"> <article class="post">
<header class="post__header"> <header class="post__header">
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> <h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<p class="post__meta"> <p class="post__meta">
<span class="date">{{ .Date.Format "2 January 2006" }}</span> <span class="date">["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]</span>
</p> </p>
</header> </header>

View file

@ -1,8 +1,9 @@
{{ if or (.Params.description) (.Params.author) (.Params.date) }} {{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
{{ if or (.Params.description) (.Params.date) }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }} {{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
<p> <p>
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} {{ with $postDate }}<table><tr><td>Posted:</td><td>{{ . }}</td></tr>{{- if ne $postDate $updateDate }}<tr><td>Updated:</td><td>{{ $updateDate }}</td></tr>{{ end }}</table>{{ end }}
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
</p> </p>
<p> <p>
{{- with .Params.tags -}} {{- with .Params.tags -}}

View file

@ -7,7 +7,6 @@
var randIndex = Math.floor(Math.random() * taglines.length); var randIndex = Math.floor(Math.random() * taglines.length);
document.getElementById("tagline").innerHTML = taglines[randIndex]; document.getElementById("tagline").innerHTML = taglines[randIndex];
} }
console.log(taglines)
window.addEventListener("pageshow", getTagline); window.addEventListener("pageshow", getTagline);
</script> </script>
<div id="tagline"></div> <div><i id="tagline"></i></div>

@ -1 +0,0 @@
Subproject commit 19e0284810127d1d56e2d813a311b0bd73bba96c