Rants and Raves

Welcome to Rants and Raves! I kept hearing that I needed to write, so here is the blog that I ended up starting. It is mostly an accounting of my progression through creating a web site, nuances with code, and tips about what I did to make things work. In there you will find sprinkled about some gems of life, and letting loose fun. Enjoy!

JavaScript Goodies With NFCs
2023-05-09
Working on NFCs is a lot of JavaScript, some of the things I ended up including are: Replacing the class of a button to change its color. scanButton.className = "btn btn-danger"; https://stackoverflow.com/questions/195951/how-can-i-change-an-elements-class-with-javascript Replacing the label the button is using. scanButton.innerHTML = "No NFC Found"; https://www.w3schools.com/js/js_htmldom_html.asp Disabling the button. scanButton.disabled = true; https://www.w3schools.com/jsref/prop_pushbutton_disabled.asp Another thing that is good to do when working with NFCs is to stop requesting NFC data by aborting. const ctrl = new AbortController(); await ndef.scan({ signal: ctrl.signal }); ndef.addEventListener("reading", ({ message, serialNumber }) => { ... ctrl.abort(); } setTimeout(() => ctrl.abort(), 3_000); https://w3c.github.io/web-nfc/#stop-listening-to-ndef-messages I also purchased some NFC tags to play with NTAG213 https://www.amazon.com/1000pack-TimesKey-NFC-Sticker-ntag213-Diameter/dp/B09NXVL987?th=1 NTAG215 https://www.amazon.com/Timeskey-NFC-NTAG215-Stickers-round1in/dp/B09NXW93D9/?th=1
I'm Back Bitches
2023-04-28
Made the last push to get to Elko. With McKendra being only one day behind I did decide to go up to Twin to visit my older brother Mike. It made for a long day, a really long day. We did some bar hopping, met his puppies Shadow and Floyd, saw the power plant that he and his dad own, watched some movies, and finally went to bed after the sun came up. After some brunch I went back to Elko, hung with my in-laws a bit, picked up McKendra when she got into town, and went to my parents to crash for the night. We spent some time the next morning chatting with my family over breakfast before getting ready and heading to McKendra's parents to get the moving truck unloaded and returned. We met up with one of my old friends Storri (Sara) and did some shopping before going back to our parents' for some nice conversations and bed. On Monday morning we got ready and went to get some breakfast at McAdoo's before leaving, unfortunately there was a miscommunication and Knight had anticipated us leaving on Tuesday instead. So we went and watched some shows while everyone was off doing their normal stuff. In the evening we did get to talk with family even more, and crash in a nice bed one more time. Tuesday we did get a load assigned to us, so it was definitely time to make our way out of town. We got ready, unloaded everything into the truck, dropped the car off at the parentals', and OneWheeled back to the truck. There was still some time before we needed to leave so we spent it putting everything back together after the split and grocery shopping. We did end up leaving late enough that McKendra's dad and sibling were able to swing by and try out the OneWheels. It was fun getting them to learn a bit of how to ride the OneWheels. After that we were off again. The load that we picked up ended up taking us down to California, very near Venice Beach. We definitely decided to take advantage of that and spent an afternoon walking the marina looking at boats, walking along the beach and listening to the waves. We saw some cool graffiti, art for sale, and joined the crowd watching skaters practice some tricks. We ate lunch while being entertained with some live guitar and singing. After that we walked back to the truck through the boardwalk where we almost got halfway accosted by a bunch of guys peddling their music on CDs. Unfortunately I didn't have enough to give all of them a reasonable amount of money for their CDs, there were so many. It does seem though that they did hand us CDs that were not empty, as I might have feared, so we did start enjoying those. The next morning did have me breaking down a bit, the low after the high of a really nice day. I am very grateful that I do Have McKendra, she does treat me with a considerable amount of compassion during those times. And with that we are back to today.
Moving Time Part 7
2023-04-27
Went through a chunk of Wyoming today, it was rather frustrating. It was cold, windy, and hilly. That made for short outside time and struggles keeping the truck up to speed. On the bright side, I do get to sleep in a comfy bed for the night (even though it's an extra burden on the budget). It sure beats sleeping across the truck seats though.
Moving Time Part 6
2023-04-26
I had a pretty successful night in the moving truck. It was quiet where I parked, and my clothing and the seats made a decent enough bed. Moving is expensive enough as is, adding hotels would be ridiculous. Although McKendra does want me to spend one night in one. It did get a bit cold but I set the climate controls so that I would just need to turn on the truck when cold and turn it off when warm. At one of my stops today I did see a swarm of officers surround a car that was parked in the truck lot. Not sure what was up, but it was a bit exciting.
Moving Time Part 5
2023-04-25
So we did have to split and travel separately. Made pretty good distance, even with the slow moving truck. However, it did through a bigger kink in the routine and so this post is late... by a day. Not much else to put in here, at least from what I can remember. Oh well.
Moving Time Part 4
2023-04-24
Another successful drive and stop together. Unfortunately it looks like we will need to split tomorrow. With how late the pickup of the next load will be tomorrow will be basically losing a day. With the delays at the beginning of the trip it would not be a good idea for me to wait too. On the bright side, we still got to sleep together tonight.
Moving Time Part 3
2023-04-23
We started travelling today! Got a little ways in, listened to some podcasts, and managed to stop at the same place so we could sleep together. Not sure how long we will be able to do that, but it makes for a nice travelling.
Moving Time Part 2
2023-04-22
Well, we made 0 miles today. Since there was no load to pick up we just kind of chilled at our parking place. I guess that would make more sense had I already mentioned that McKendra was going to continue trucking and swing through Elko later to pick me up, because of that we wanted to leave together. Without a load to go pick up she was stationary today. Since the moving truck had 9 days there isn't a huge rush, although it is going to be a long trip. So we chilled, finished the last minute packing, and waited. It was also a bit of an adventure because we had to jump 2 vehicles this morning.
Moving Time Part 1
2023-04-21
So are storage place that we kept our car in decided to get rid of the "RV" spaces and WWE needed to do something about that quickly. Since we are anticipating moving to Alaska soon when McKendra's new job launches, and because we have a puppers in Nevada that we are going to need to pick up, we decided to advance part of our moving now. Today we spent the day gather all of our things and closing out our accounts in the area. It was a long day with some unexpected issues, like getting a broken phone screen and needing an emergency replacement. We were successful though, and even got to enjoy some last chance Jamaican, Sweet Piglet Bobba, and a visit to the mall. I even managed to backup a double trailer of sorts. All in all a good day.
NFC Needs
2023-04-20
Turns out testing NFC code is a little bit of a pain. Because it is required to have the hardware to read/write NFCs the browser support for the NDEFReader() JS function is limited to later versions of PHONE browsers. Also, because it's still experimental not all phone browsers support it. https://developer.mozilla.org/en-US/docs/Web/API/NDEFReader#browser_compatibility This means that to really check your code you need to make sure it is accessible to your phone. Another thing to keep in mind because of its experimental nature is that you are required to have a secure HTTPS connection. So your test site basically needs to be in production, no using direct IP addresses. https://stackoverflow.com/questions/67356131/ndefreader-is-not-defined https://developer.mozilla.org/en-US/docs/Web/API/NDEFReader
Id Title Body Post At