Daily Post Image from Upsplash

July: 27

2024

Virtual Joystick

The next update for laser would be to add a virtual joystick to each scene. This will make playing the games easier on mobile as well! I was debating over either having a click to move or a virtual joystick to move the character.

Funding

There seems to be a bit of a mistake when it comes to funding, I think we might need to fix that up! For now we will accept funding through Pateron and Github, but we can expand upon that in a later time.

Sanitize Container Image

For deploying the container image, we need to make sure that we also sanitize the image name. This is the function that I am going to add into the sanitization.ts.


/**
 * Sanitizes the container image name ensuring it is alphanumeric and can include underscores, slashes, colons, and periods.
 * @param image - The container image name to sanitize.
 * @returns Sanitized container image name or throws an error if the name is invalid.
 */
export function sanitizeContainerImage(image: string): string {
  const sanitizedImage = image.replace(/[^a-zA-Z0-9_:/.]/g, '');

  if (!sanitizedImage || sanitizedImage.length === 0) {
    throw new Error('Invalid container image name. Image name must be alphanumeric and can include underscores, slashes, colons, and periods.');
  }

  return sanitizedImage;
}

After adding this function, we can go ahead and add the test code for it via vitest / jest. Then we will test the library using our nx command.

./kbve.sh -nx devops:test

Quest

Came across an interesting idea for the quests, maybe we could make the first quest as a way to self improve? We could look at different situations that a person is in and maybe give them some advice to handle it? So let us think about the feeling of being angry and then have the player choose amoung a bunch of cards, one of them could be to “sing”? Or if the case is that the person is feeling anxious, then we could display a couple cards with one of them being to “take deep breaths”? I am still thinking through how I would handle the quests.

2023

  • 2:30pm - Going through the base scene on the RogueJester aka RentEarth, trying to resolve the bug issue with Vuplex. The bug is being triggered by two points of interest, it seems to be related to a CORS policy, which is the No Access-Control-Allow-Origin header, yet instead of it being a yellow caution, it seems be a red warning. The other issue is that the mouse is not being registered by the frame, so the mouse clicks are not passing through. I believe both of these can be resolved within a week or so, hopefully we can get it resolved sooner so we can move forward.
  • 2:57pm - As I am writing these notes down, I think it would be wise to publish this patch out and then sync the codebase? Hopefully it will not cause any major error, ah shit as I was writing this, I see that there is a merge conflict that is already appearing. Sometimes I do wish working with git would be easier. We need that AI agent to come in and do some general git cherry picking for us.
  • 3:49pm - Okay there are a couple issues that we have to address with how we want to handle the scenes within RJ. I am thinking we would do a couple, maybe around 3-5 scenes within the base scene. As for the mission selection, we will try to display that through the UI/UX.
  • 4:00pm - I suppose the market draw back from the increased rates, maybe we might see more 25bps rate increases throughout the year.
  • 11:06pm - Going to push the generic blog post patch and rotate over to the patch for tomorrow. On my test list, I need to research a bit more about a couple different topics, including microwave pyrolysis and how it can be used to recycle plastics.

Quote

TV and the Internet are good because they keep stupid people from spending too much time out in public. — Douglas Coupland


Tasks

  • Finish loading the base scene inside of the RJ.
  • Finish DevOps Library sanitization functions.