Aug. 2, 22: Routine, PIMP Meeting, Walking, Fall Prep, Web Work, TV, and Games
I made the (intentional) mistake of having a Red Bull later in the day than I should have. Although I did achieve my desired goal (to get to bed later), it wasn’t exactly a precise science and I didn’t fall asleep until ten. I guess that would be fine, but I was still up at five which made for a solid two hours short. I did drag after lunch, but instead of laying down for a nap, I went out for a walk.
Not much going on during the morning routine, just the usual. HIVE took a dive and is still continuing on its downward trajectory, it seems…right back to fifty cents where we were before. I’m itching more than ever to get out of Polygon, but looking at it, I’m losing like 60% of my investment in BAL, not a good place to sell. 😡 Otherwise, chatted on Discord, did some curation, monitored the SOL market, played some Wombat games, and worked on my post.
After I got my post done, I realized I was late already to the weekly PIMP meeting and so headed over to Discord for that. Was informative, as usual, and I learned that the new MINTHAGG token (the THGAMING miner) was available for public sale and I couldn’t resist:
For staking at least ten, I qualify for an NFT, and possibly some more exclusive game NFTs down the line…meanwhile, hopefully I’ll be mining some THG and adding to my bags! 💪 So many tokens, so few funds, and meanwhile I feel obligated to buy back my own token. 😭
After the meeting I got my lunch and then hit the usual wall. I’m trying to be more proactive about getting exercise, though, so instead of lazing around I decided to take the dog out for a walk.
Admittedly, I’ve pushed myself a bit hard the last few days with the Zombieruns, so I took it slow and easy today, just a walk to enjoy the day and let the doggy have some sniffs.
Was a bit cooler today, but still gorgeous. Never going to scoff at a day like this!
I saw quite a few bugs and some turtles down at the pond, but I wasn’t so worried about getting pictures today. Did get a couple of beetles doin’ it:
Lovely day down by the pond. Saw plenty of dragonflies and a turtle or two. 😁
Spent some more time in the afternoon working on going through the Calculus III material for Fall. I’m about 90% confident with the first chapter, I’d say, and now starting into the second chapter. Feeling ok with dot and cross products and now refreshing on vector valued functions. I kind of remember now why I don’t remember it…it’s super intuitive and doesn’t really require learning any new rules. I still feel a little iffy with projections, not the mechanics but the ability to explain/justify the formula…been watching some YouTube videos as well, so hopefully I’ll stumble across some proofs that I can use. 🤓
I did end up procrastinating quite a bit, but I did finally sat my sorry ass down and worked at the computer. I’d basically been doing the coding in my head for the last two or three days, so it was more just a matter of actually writing it out than anything else.
I completely refactored my code and removed every instance of if/else as well as a massive switch block by using guard clauses. It took a little time tracking down all the resulting errors that arose from removing all the curly brackets, but I got it cleaned up and all the tabulation is correct now so each of the blocks can be closed independently and correctly. The code is way slicker now and much easier to read!
I also handled the errors way differently. By just checking if the response status isn’t 200 I can fire whatever error message was sent, so I don’t need to address every possible response, just do one check and if it is 200, proceed. 😁
Went back into the server and updated all my res.send()’s to include status codes. Luckily that wasn’t too hard of a job since it’s chainable to res.status().send(). Now with that status control, my check on the front end should work niiiiice. I also added a couple more guard clauses to handle some cases I’d missed (like if the req.body doesn’t exist).
In doing that work, I kind of wanted to stick with the standards (they’re standard for a reason) and did some more research into the http codes. I guess it’s solid evidence of how nerdy I’ve become, but it cracked me up when I found the 418 I’m a teapot code. 🤣 Teapot refuses to brew a cup of coffee. 😂🤣😂 Even Google has it implemented:
I think the refactoring and error handling that was bothering me is done now, but I will admit I haven’t tried to run the servers to see what (if anything) I broke…actually, there’s one that’s still bugging me that I need to look at: I think that writing to a field in the database for an entry that doesn’t exist doesn’t fire an error, but returns 0 rows affected. If that were to be the case, it would still fail on the next check, but it would be more helpful I think to return an error message there rather than moving forward to the next operation.
Wenche made us some French toast for dinner and I took care of all the dishes except one bowl in the freezer. Cleaned up the dishes in the sink, cleaned out the dishwasher, and dumped the old leftovers in the fridge that we were never going to eat and washed those plates and containers as well.
After dinner we pretty much just chilled and watched some TV. The show we’ve been watching is People of Earth; not sure why that was so hard for me to remember. It’s entertaining enough, I suppose.
Put in my Splinterlands brawls and tried to play a little, but gave up. Played some WombPlay games and then hit the hay.
Wow! dShitty has managed to become slightly more ineffectually shitty…now I’m at negative thirty income. Why not negative infinity? Same difference.
Did a lesson today on Rising Star and got my Ego back to zero, so it’s back to missions now for as long as I can…rinse and repeat.
I did actually sit down at the computer today and it crossed my mind when I first sat down to take care of HashKings, but my code was already open and I just jumped right into working and never did. 😡
I got my brawls in for Splinterlands today and I tried to play a little. I had Dragon focus today, which should have been relatively easy, but I just continued losing, lost out of Gold II 🤬, and rage quit again.
Got my Focus rewards from yesterday. Got a bit of DEC:
Claimed my SPS drop for the day and staked it up, but having started to run a bit short on liquid, I’m considering starting to sell some off. 🤔 I did sell some more of the vouchers I had on the market in order to snag some MINTHAGG, but I do still have some left…the price is only around .7, which is majorly sucky. 😢
Got my stats for last week. Have to say I was surprised to see any green arrows at all, but those two days of not making the step goal are both the uncharacteristic and disappointing. I have been trying to kick things back into gear, though, especially when the weather is providing a great opportunity.
Average Last 7 Days: 11,865
Lifetime Average: 14,786
10k per Day Streak: 5
Longest Streak: 204
Distance on shoes: 832.21 km
Distance on hikers: 67.07 km
Highest Floors: 120
Highest Daily Steps: 41,528
Zombies evaded: 0/0
Power up and Hive on!