Skip to content

Commit

Permalink
Migrate all other posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve0Greatness committed Jan 2, 2024
1 parent 3cdd6e6 commit ca922bd
Show file tree
Hide file tree
Showing 27 changed files with 290 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
# this Action should follow steps to set up Python build environment
Expand Down
5 changes: 5 additions & 0 deletions blog-posts/Changing_the_Light-mode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Changing the light-mode
date: 2021 Sep 11
---
As of currently, the light mode on this site doesn't live up to what I want it to be.<br>I want it to be something that is the opposite of the dark mode, and it really isn't that. Expect it to change. But, in case you do still want to view it, here are the current css variable colors:<br><div class="code">html.l {<div style="margin-left: 1em;">--navCo: #0F0089;<br>--headCo: #3700FF;<br>--linkCo: #F7E45D;<br>--maCo: #0044F7;<br>--maTxtCo: #C2FFBA;<br>--buCo: #F09;<br>--buTxtCo: #0FF;<br>--buBoCo: #fff;<br>--noteCo: #f25;<br>--noteTxtCo: #ccc;<br>--inCo: #0bf;<br>--inlinkCo: #05c;<br>--selCo: #f51;<br>--selTxtCo: #059;<br>--taCo: #cf4;<br>--taTxtCo: black;</div>}</div>
5 changes: 5 additions & 0 deletions blog-posts/Creating_HTML_DD_List.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Creating a HTML drop-down list
date: 2021 Oct 01
---
Inorder to create a drop-down selection list in HTML, we must first understand why they are important.<br>Drop-down lists can be used in lots of ways, from creating a way for people to chose from a strict set of options, to making an on-off switch(even though you should use buttons for that)<br>Before we start, here is an example:<table><td style="font-weight: bolder; text-align: right; font-size: 1em;">Select Image: </td><td><select id="selcet" onchange="document.getElementById('img').src = document.getElementById('selcet').value"><option value="https://upload.wikimedia.org/wikipedia/commons/a/a2/Paul_von_Hindenburg_%281914%29_von_Nicola_Perscheid.jpg" selected>Img 1</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d4/Wilfried_Gruhn.jpg/121px-Wilfried_Gruhn.jpg">Img 2</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Blackcap_%28Sylvia_atricapilla%29_male.jpg/129px-Blackcap_%28Sylvia_atricapilla%29_male.jpg">Img 3</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Lt._Gen._Nguy%E1%BB%85n_V%C4%83n_Thi%E1%BB%87u_at_Cam_Ranh_Base%2C_October_26%2C_1966.jpg/116px-Lt._Gen._Nguy%E1%BB%85n_V%C4%83n_Thi%E1%BB%87u_at_Cam_Ranh_Base%2C_October_26%2C_1966.jpg">Img 3</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Steve_Stricker.jpg/157px-Steve_Stricker.jpg">Img 4</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Aegotheles_chrisoptus_-_Catlereigh_Nature_Reserve.jpg/350px-Aegotheles_chrisoptus_-_Catlereigh_Nature_Reserve.jpg">Img 5</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Michael_Whelan_-_Lucca_2017.jpg/118px-Michael_Whelan_-_Lucca_2017.jpg">Img 6</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/St_Pancras_Railway_Station_2012-06-23.jpg/152px-St_Pancras_Railway_Station_2012-06-23.jpg">Img 7</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Mae_La_refugee_camp_TFA.jpg/162px-Mae_La_refugee_camp_TFA.jpg">Img 8</option><option value="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/JimmyCarterPortrait_%28cropped%29.jpg/121px-JimmyCarterPortrait_%28cropped%29.jpg">Img 9</option></select></td></table><img id="img" src="https://upload.wikimedia.org/wikipedia/commons/a/a2/Paul_von_Hindenburg_%281914%29_von_Nicola_Perscheid.jpg" style="width: auto; height: 10em;"><div style="font-size: 10px;">Images from <a style="color: inherit;" href="https://en.wikipedia.org">Wikipedia</a>, on <a style="color: inherit;" href="https://web.archive.org/web/20211001135954/https://en.wikipedia.org/wiki/Main_Page">Oct. 2nd & </a><a style="color: inherit;" href="https://web.archive.org/web/20211002095505/https://en.wikipedia.org/wiki/Main_Page">1st, 2021</a></div>For some weird reason, it's not in<div class="code">&lt;input&gt;</div>It has it's own tags, know as <span class="code">&lt;select&gt;</span> and <span class="code">&lt;option&gt;</span>. Using these is alittle like making a list, if you've ever made one. Here's an example bit of HTML.<div class="code">&lt;select&gt;<div style="text-indent: 1em;">&lt;option&gt;op 1&lt;/option&gt;</div><div style="text-indent: 1em;">&lt;option&gt;op 2&lt;/option&gt;</div>&lt;/select&gt;</div>Next we want to add values to <span class="code">&lt;options&gt;</span>, and an id(#) to <span class="code">&lt;select&gt;</span>.<br>You most-likely already know how to do ids, and maybe also values(if you have used input in any way), so I'll leave it up to you.<br>However, you may not know some things that could be useful here, such as preselections, or making things update upon being changed, well, you can do preselections with <span class="code">selected</span> in the <span class="code">&lt;option&gt;</span> that you want to be preselected. Changes done the page upon the change of the selection in the drop-down(or anything else that can be changed by the user) is <span class="code">onchange="submitFunction()"</span> being placed in the <span class="code">&lt;select&gt;</span>.<br>Let's check back on the code that we made at the code example:<div class="code" id="finished">&lt;select onchange="submitFunction()" id="selection"&gt;<div style="text-indent: 1em;">&lt;option value="op1" selected&gt;op 1&lt;/option&gt;</div><div style="text-indent: 1em;">&lt;option value="op2"&gt;op 2&lt;/option&gt;</div>&lt;/select&gt;</div>Inorder to access the selected option with JavaScript, use <span class="code">document.getElementById("selection").value</span><br>That's basically it, feel free to <span class="code">CTRL + C</span> <span class="code">CTRL + V</span> it. /s
5 changes: 5 additions & 0 deletions blog-posts/How-To-make-mockups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: How to make mockups
date: 2021 Apr 22
---
<div class="notice">This post isn't very good, and I'm not proud of it.</div>The first step to making a mockup is to open up the inpect menu, you may be able to do this using <t>ctrl+shifT+i</t>(or <t>f12</t>)<div class="Notice">this will be different from browser to browser.</div>once you see inspect element open, simply go to the page you're making a mockup for(ex. <a href="https://Scratch.mit.edu/mystuff">MyStuff</a>; or if you're making a new page, go to the page that looks the closest.), and press <t>ctrl+shifT+c</t>, and click on the area that you want to change(ex. the <t>+ New Project</t> button.<p>now that you've selected the element, let's learn how to edit it! You should see the element that you clicked on(using the <t>ctrl+shifT+c</t> command) highlighted in blue. Inside of the element(if you selected text, or even an image), you should see a darker area, that isn't red, <t>double click</t> on it, it should now be hilighted, now type in whatever you want(if it's an image, make sure to put in an image link, ex. https://imagehoster.com/png/png.png; if you clicked on a link(in the "" in "a href=''", unselect it and select the part "<a href='link'>"here"</a>").</p>anyways... if you don't have the monna lisa yet, just give up /s
35 changes: 35 additions & 0 deletions blog-posts/How-to-Store-Passwords.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: How to Store a Passwords
date: 2023 Nov 2
---
**Disclaimer**: The world of cyber-security is an incredibly complex and constantly evolving topic, and I am not a cyber-security researcher; I create projects for fun.

Storing a password in a server can be intimidating. Password management is incredibly tricky, as anything you mess up could compromise your users' password(s). Thankfully, random websites you've never visited before have a pure HTML blog post from 2023 about that exact topic, and how to do it properly.

Basically, it's just this sequence of steps:

* Generate a long random sequence of characters, this is called a *[salt](https://en.wikipedia.org/wiki/Salt_(cryptography))*(generate for each user, do not use a master salt)
* Prepend(or append, it doesn't matter, just keep it consistent) this to the user's password
* Use a [hashing algorithm](https://en.wikipedia.org/wiki/Hash_function), such as [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2), to generate a unique sequence of characters that will uniquely identify that password.
* Store the salt and hash in the same place, *do not* store the password on it's own.

And to check if a password is right, repeat the steps, except rather than generating a random sequence of characters, get the sequence of characters that you've stored along with the hash.

## Why Do *This*?
You might be thinking: *That's a bit arbitrary innit?* And if you aren't then you can stop reading now.

This method of storing passwords is the only way to ensure that you are securely storing them. So let's go through some other ways, and why they aren't so good.

### Plaintext Passwords

Storing your passwords in plaintext allows anyone who can get into your server to easily take any password they want, as no matter how good your users' password is, their account will be hacked if an unauthorized or malicious individual is able to get in.

### Encrypted Passwords

This is basically just plaintext with additional steps. As long as your master-key is stored somewhere, it will get stolen as soon as somebody manages to get into your system.

### Bare Hashing

A hash isn't able to be undone, meaning theoretically you should be able to *just* hash your password. This, while a fair assumption, has unfortunately been incorrect for quite some time. There are databases online that store every word in the english language(or just some words) in addition to common passwords and their hashes, and users will often use words for their passwords, even though it's insecure.

This is where salts come in. Due to the nature of hashes, even a single change in a string will entirely change it's hash, as such, if you add a random sequence of characters to a string, then you can entirely change it's hash.
5 changes: 5 additions & 0 deletions blog-posts/How-to-copy-and-paste-on-mobile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: How to Copy & Paste on mobile
date: 2021 May 05
---
<div class="notice">This post isn't very good, and I'm not proud of it.</div>Recently, I've been seeing a lot of people coming up with one excuse for not linking the dupelicate topic in the suggestions forum. They say something like,<div style="background-color: #979797;color: black;padding: 3px;">I'm on mobile!!!!! &#128534;&#128557;&#128555;</div>this is not a correct argument, so I've decided to make this post to prove it.<h1>Safari/iOS</h1>the way that you copy and paste on Safari is by double taping on the text, then dragging until you've selected all the text<span style="color: #FF0000;">(the next bit works for links, not this)</span><h2>Coping links</h2>tap and hold on the link until you see:<img src="https://i.ibb.co/9cYsfcP/IMG-5938.jpg" alt="open, open in background, open in new window, download link file, add to reading list, *copy*, share" border="0" width="130" height="105"><h2>Paste</h2>going to any textbox, in the top-lefT-hand conner, you should see a little clipboard icon(as long as you aren't selecting any text), press it. tap "copy(circled in <span style="color: #FF0000;">red</span>)"<div style="background-color: #ff0004; color: #00FFFF; text-align: center;">🏷Note: I don't own an android tablet or phone, so take this with a grain of salt</div><h1>Chrome/Android</h1>press and hold until a few selection boxes come up(might work for links)<h2>pasting</h2>tap and hold int the text box, you should see "paste," now click that(boxed in <span style="color: #FF0000;">:<img src="https://u.cubeupload.com/Steve_Greatness/Screenshot2021050571.png" width="300" height="60"><span style="font-size: 10px;"><a href="https://www.businessinsider.com/how-to-copy-and-paste-on-android?op=1">Image Source</a></span>
5 changes: 5 additions & 0 deletions blog-posts/How_To_Make_Tea.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: How to Make the perfect Tea.
date: 2021 Sep 28
---
<div class="notice">this is opinion based, there's no perfect tea</div>Tea is the perfect fit for most meals, breakfast, 2nd breakfast, morning tea, lunch, afTernoon tea, dinner, or supper.<br>But how do I make it? Here's how I make my tea.<h2 id="step1">Step 1</h2>The first step is to get the brand of tea you like. I personally like stuff such as Mighty Leaf, it tastes strong, and your able to use it 3 times without it getting weaker, and even then, you can still use it more, it really doesn't lose it's weakness.<h2 id="step2">Step 2</h2>Get a mug, or tea cup. I personally like mugs, as they are normally bigger, meaning you don't have to refill as much as a tea cup.<h2 id="step3">Step 3</h2>Get your tea, if you're using loose leaf, I'd use a smaller cup to make it, then use a strainer to the leaves out, as it adds texture that I don't like personally, otherwise just put the tea bag in, it is at this point that I like to stir it.<h2 id="step4">Final Step</h2>Enjoy.<br>You can add sugar and <span style="text-decoration: line-through;">milk</span> cream, if you're into those kinda things... even lemon if you really want.<br><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/English_teaware.jpg/1280px-English_teaware.jpg" title="src: Wikipedia" width="250">
5 changes: 5 additions & 0 deletions blog-posts/Is_Kris_the_Knight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Is Kris the Knight?
date: 2021 Oct 23
---
Is Kris <span style='color: hotpink; font-style: italic;'>the Knight</span>? At face value, this seemes insain. Right? Well, let's look at the evidence<br>First and formost, <span style='color: hotpink; font-style: italic;'>the Knight</span> opens <span style='color: red; font-style: italic;'>Dark Fountains</span>. Now, what does Kris do at the end of Chapter 2? They create a <span style='color: red; font-style: italic;'>Dark Fountain</span>.<br>Second, what does Kris look like in <span style='color: red; font-style: italic;'>Dark Worlds</span>? That's right, a Knight.<br><img src='https://static.wikia.nocookie.net/deltarune/images/9/96/Kris_overworld_darkworld.png' width='100' align='left'>This is what Kris looks like in a <span style='color: red; font-style: italic;'>Dark World</span>, they're wearing plated armor. They even have a sword(not shown in image).<br>We know that Kris made a <span style='color: red; font-style: italic;'>Dark Fountain</span> at the end of Chapter 2, so is it really that far off to assume that they also made the one in the librarby's computer lab? Or the on in the closet for that matter. Well, we know that they had thier knife at the <a href='https://youtu.be/wBS1MNkVPGw'>end of chapter 1</a>, and only Toby Fox knows what they did before chapter 1.<br>In the end of chapter 2, they rips they soul out before creating the new fountain, and shuffeling around outside; and slashing Torial's tires. Infact, they rips out their heart in the end of chapter 1, too. Afterward, they presumably went to librarby and made a fountain in the computer lab.<br>This is a really common thereoy, but it really needs more evidence to be collected, and more speculating to be done.<br clear='left'><span style='color: grey; font-size: 13px;'>taken from <a href='https://deltarune.fandom.com/wiki/'>Fandom</a>.</span>
5 changes: 5 additions & 0 deletions blog-posts/Merging_Blog_to_the_main_site.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Merging the Blog repo in the main one
date: 2021 Sep 16
---
The blog for the repository has recently been merged into the main one, it used to be it's own repository, but now it's part of <a href="https://github.com/steve0greatness/steve0greatness.github.io">this repo</a>.<br>I hope this change isn't horrible, I did it for the simple fact that it makes the whole site easier to make, just because of the fact that I don't need to make 2 repls that have the same look, and are for the same site.<br>The <a href="https://github.com/steve0greatness/blog">blog repo</a> is now read only, or archived, and has been unpinned from my <a href="https://github.com/steve0greatness">profile</a>. This shouldn't cause any slowdowns for the site.
5 changes: 5 additions & 0 deletions blog-posts/The_song_that_we_didnt_get_in_undertale.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: The Song we didn't get in Undertale
date: 2021 Dec 20
---
<p>Undertale is an amazing game. I really enjoyed my time playing it. I listen to the sound track a lot(I'm doing it as I write this). I even read a fanmade <a href="https://undertale-au.fandom.com/wiki/Category:AUs">AU</a> called <a href="https://invertedfate.com/chapters">Inverted Fate</a>. The only thing that I haven't done(and don't intend on doing) is a <a href="https://undertale.fandom.com/wiki/Genocide_Route">Genocide Run</a>. But, there's one thing that's kinda been bugging me since it first found out about it. It's the fact that their's a version of <a href="https://undertale.fandom.com/wiki/Undertale_(Soundtrack)">Undertale(the song)</a> that wasn't added, and instead was replaced with the version we have now.</p><h1>The Current Version</h1><p>The version we got of Undertale was a pretty good one. It's a little sad, while also filled with hope(just like the monsters in the neutral route. It is kinda the song of their hope, since it only plays during the end of the neutral route). Below is the version we got in the game.</p><audio controls><source src="https://static.wikia.nocookie.net/undertale/images/6/66/Undertale_%28Soundtrack%29_music_1.ogg" type="audio/ogg"><source src="https://ia902907.us.archive.org/29/items/undertaleost_202004/Undertale%20-%20Lossless%20Soundtrack%20%28toby%20fox%29/toby%20fox%20-%20UNDERTALE%20Soundtrack%20-%2071%20Undertale.mp3" type="audio/mpeg"><source src="https://ia802907.us.archive.org/29/items/undertaleost_202004/Undertale%20-%20Lossless%20Soundtrack%20%28toby%20fox%29/toby%20fox%20-%20UNDERTALE%20Soundtrack%20-%2071%20Undertale.flac" type="audio/flac">It looks like your browser doesn't support the audio tag. <a href="https://static.wikia.nocookie.net/undertale/images/6/66/Undertale_%28Soundtrack%29_music_1.ogg">This is a link to the audio so that you can download it if you so choose.</a></audio><h1>The One that could have been</h1><p>This one is also greate, and I personally think I like it a lot better than the one we have. I feel like it's more happy in tone. Even if it might not fit with what the game would have been trying to fit it's context into, it's still a good song on it's own.</p><audio controls><source src="https://static.wikia.nocookie.net/undertale/images/6/64/Undertale_%28Soundtrack%29_music_unused.ogg" type="audio/ogg"><source src="https://a.tumblr.com/tumblr_odg4sv0r3Z1s58ev6o1.mp3" type="audio/mpeg">Again, it looks like you're browser doesn't support audio, so you can <a href="https://static.wikia.nocookie.net/undertale/images/6/64/Undertale_%28Soundtrack%29_music_unused.ogg">download the song</a> to listen to it. </audio>
5 changes: 5 additions & 0 deletions blog-posts/What-about-the-second-site.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: What about the second site?
date: 2021 Sep 01
---
So you may know about <a href="https://stevesgreatness.repl.co">StevesGreatness.Repl.Co</a>, or, the second site.<br>It contains more than what this one does, but also less. It doesn't have a blog, information about my alts on Scratch, or even addition projects. However, it does have a page for testing, an about me, a list of my accounts on other sites, and a list of my repls(which I want to eventually turn into a list of my repos, and Scratch projects as well).
Loading

0 comments on commit ca922bd

Please sign in to comment.