Salt's Tech Journal

9/02/24

Finally sort of solved an issue I'd been having with deploy-to-neocities: either uses: needed to say actions/checkout@v4 (and not @2 or even @3) and/or I needed to get rid of the zone identifiers in my images folder.

2/24/24

Uploading a batch of 27 images directly to Neocities, and then doing the same via GitHub, ran into no difficulties.

2/21/24

Two lessons for the day (or week, or month):

  1. Do not allow the perfect to the enemy of the good.
  2. If I have a stable, satisfactory page, and then I come up with something better, which might require some special work or an unfamiliar technique, and I am on a deadline, then I should run the experiment on a separate branch (whatever form that may take) rather than try to build on top of the stable version.

11/27/23

I'm having trouble with uploading even small images to Neocities via Github, but manual uploads cause no trouble. I'm going to reserve Github uploads to non-image content from here on out.

10/30/23

I may be working on updating a website in the next week or two (still waiting to hear back). It hasn't been updated in forever, and I've had to learn a bit about File Transfer Protocols in order to properly edit any files. I'm working with WinSCP, which is straightforward enough, and I've been able to add files and edit the files that I've added, but occasionally I've run into an error that states error transferring file copying files to remote side failed. I've been able to work around it and some cursory googling suggests that it might go away if I'm just patient, but I'll dig further if it continues to be a problem.

Later update: While the initial problem persists, I am permitted to rename files with abandon, so it's a simple matter of turning services.html into services1.html, and then creating a new services.html file which I'm permitted to edit.

10/28/23

For the past few months, I've been running into a problem where VS Code won't open properly and access Linux. Restarting my computer always fixes the issue. It doesn't seem to be related to permissions — today I was able to access the relevant folders in Windows Explorer even when VS Code was unable to do so, when before the problem seemed connected. Forcing a shutdown of VS Code only made things worse, but, thankfully, restarting my computer fixed everything back up again.

I would like to get this solved someday. Restarting my computer takes longer than I would like.

10/26/23

By far the most frustrating thing about Deploy to Neocities is that if the intended upload is too big, then the tool won't work and I have to manually adjust things. It's another good reason to make sure that my commits are tiny and regular, I suppose.

7/24/23

Work continues on Ultraviolet Milk Run. Right now, I'm trying to find a way to refer to variables which (1) exist outside a function and (2) are affected by variables whose value was changed in the function. For example, if the value of A is "1" and the value of B is "A + 1," then printing the value of B will initially get "2." If I call on a function which increases A by 1 and then, within that function, print B, then I want to print "3" ((B = A + 1) = (B = 2 + 1) in this case). It's not a big deal to reprint every step, but if there are too many functions or variables involved then it'll get clunky fast. I'll need to figure out an elegant if/else in order to run multiple button clicks through the same route without forgetting the origin, but that should be simpler.'

7/21/23

Worked on a class project today. I'll have more to say about it when I find out how I did, but I'm making this note here to remind Future Salt to make a comment.

Also started work on "Ultraviolet Milk Run," a little Javascript text game running on the Trade Routes table in Luka Rejec's Ultraviolet Grasslands. Figuring out how to modify a preexisting variable whose value had been stated earlier in text, which had to update as well, was a heck and a half to figure out. As usual, I was overthinking it and just needed to run document.getElementById again inside the function.

Earlier this week, I worked a little on building my own API, but I ran into some weird problems and I found out that we're going to build our own APIs later in the course, so I'll set that aside from now.

Notes for the future:

To that end:

Okay, I should probably add those Twine projects, too.

7/12/23

Tried to create an Index of /* page for one of my image archives, but this didn't quite work. Looks like it might need php, which Neocities doesn't support. One suggestion I found was to build what I needed on Glitch and then pull from Glitch via API.

Other interesting things that I found in the course of looking for a solution:

I may need to refer to this later.

7/4/23

Giving Neocities time to cool off overnight, and then uploading the images in smaller batches, solved the 500 error (just uploading in smaller batches didn't work last night). I've sort of solved the image protection issue, but I don't really know how: too many asterisks, basically, but I'll need to find out why images/writing/fannish-archaeology/* and images/writing/*/* both worked, but images/*/*/*/* did not work.

Still not sure why the images deleted from the website were still displaying on AO3, because it definitely wasn't anything to do with my browser's cache. Maybe there's a lag on AO3's end? After it did lose the images, though, it was very quick to regain them as soon as I uploaded them back to my archives.

7/3/23

Just about done with the process of reorganizing the Neocity and setting up everything on VS Code. I ran into trouble due to one particularly large image that I was trying to upload. For now, I'll have to live with manually uploading images for now, but I've successfully protected the images folder from being cleaned up, so the main problem will just be that live previews will look ugly on VS Code.

No, I haven't successfully protected the images. I'm rather confused by what's going on here, so I'll give it a few days.

Issues to handle later:

6/30/23

Been working on Javascript the past few days. A bit tricky at first, but getting the hang of loops. I also found a useful extension for VS Code, Rewrap, which improves the formatting of comments.

Discovered <samp>, which formats text like so, as well as the escapes "&lt" (lesser than) and "&gt;" (greater than), which can produce < and > (and in order to type those as text, you need to type "&amp;" (ampersand), and so on.

Making things look a little bit nicer on this page with <section> and <article>. I may want to make hotkeys for &lt (lesser than) and &gt; but that's a low priority.

6/26/23

Worked on the personal website assignment today. Messing around wth flex boxes a little more, but haven't quite gotten the hang of them yet.

Worked on a couple of Black Star items.

Bcomnes helped out with deploy-to-neocities, and I was able to get the "exit code 254" error in order to encounter a brand-new error: JSONHTTPERROR: Forbidden. I'm pretty certain that I'm not making a mistake with the API key, and that the tool is no longer looking for errant JS code that isn't there to be found, so I'm not sure what's going on there.

Update: Bcomnes said that there was probably just a problem with the API token. Lo and behold, regenerating the API token a couple times worked.

6/23/23

Worked on deploy-to-neocities today, which required me to get into Github Actions for the first time. In the fourth stage, "Install deps and build," I encountered a series of npm errors, ending with Error: Process completed with exit code 254. I posted about it in the discussion thread but I'll also do some digging on my end this weekend.

6/22/23

Started work on a project called Black Star today.

Current problems include:

Other things to do before it's complete:

This is mostly a CSS thing, so I shouldn't spend too much time on it. Ideally, one item every week or two, and only if I'm making good progress on other stuff.

Another thing that I'd like to do, maybe later this week, is work on hooking up Neocities to Github. If you can read this, then I got around to doing that.