Cas Spicer

Cas Spicer

Let's engineer the world we want to live in.

  • PDF Test

    This is a test pdf.

    May 14th, 2024
  • I Hacked My Chat App!

    I noticed a pattern of my Chat App sending a 'socket hang up' error message every couple of days.
    pic of UptimeKuma logs I figured out that this is an exception being thrown by the server, and found this article outlining possible reasons for a socket hang up error when using websockets in node.js and express.js.

    Right off the bat, I noticed that my server's source code - which I wrote back in the Spring of last year - is using http. This works fine for running the app locally in port 3000 during development. However, the production app is receiving requests for a https connection. *but then why wouldn't I see this exception all the time in the logs?

    Wait a minute, could it be that the hang up is happening on the front - end side somehow? I ask this because uptimekuma is simply grabbing the response being sent to the web browser over the network.

    wait a minute, perhaps this is the 'expected heartbeat'. But if that is the case, then why is it taking hours to show 200 OK again after the 'web socket hangup' in the wee hours?

    I decided to see if I could monitor the websocket activity in wireshark.Also , I am going to try to manually re-create this the next time I see a 'down' message showing 'socket hang up' from uptimekuma.

    10/9/23: I woke up to a 'socket hang up' down message in uptime kuma. I went to where I had the app open in chrome and refreshed the browser. it worked fine. uptimeKuma notifed 'app back up'. ?

    October 4th, 2023
  • My Attempt to Install Kali Linux on an Old Chromebook

    A harrowing and detailed account of my first ever attempt at installing Kali Linux on an old Chromebook

    September 18th, 2023
  • How I Set Up Network Monitoring on my Home Network Using Uptime-Kuma, a Free Open Source Tool

    Monitor your applications, servers, websites, and more using Uptime Kuma. You can even have it send notifications to your phone!

    September 12th, 2023
  • I Hacked My Home Network

    I just hacked my home network for the first time using some basic tools from nmap, a free open source network security scanning tool

    September 3rd, 2023
  • Book Your Stay at AwesomeHotel! (A C#/.NET/Dapper Hotel Booking App)

    I built a hotel booking app using C#/.NET/Dapper inspired by Tim Corey's C# Masterclass (check it out at iamtimcorey.com)! Read on for some info I've learned recently on both Dapper and Entity Framework.

    P.S. Bonus points for anyone who spots the Star Trek reference in one of the gifs! Live long and prosper y'all!

    August 10th, 2023
  • An Algorithm a Day Keeps the Brain Fuzz Away

    Check out these perfectly imperfect solutions I developed for some LeetCode problems.

    September 22nd, 2022
  • I Built a Client VPN in AWS by Following Adrian Cantrill's Video Series Tutorial, and This is What I Learned

    Follow the steps in Adrian Cantrill's AWS Client VPN tutorial miniseries to build a Client VPN and view the long-awaited CATBREAD gif.

    August 15th, 2022
  • Preventing Reflected XSS in Your React Application

    Learn some basics about reflected XSS (cross site scripting) and how to prevent this common attack as a developer.

    April 10th, 2022
  • Hackable Chat

    Hackable Chat, a tool for understanding the basics of SQL injection.

    April 5th, 2022
  • 15 Minutes

    How will you use your 15 Minutes?

    January 29th, 2022
    javascript
    static-sites