Posts

smart pointers in C++

Smart Pointers To understand smart pointers we must understand normal pointers.  By default, objects in C++ are placed on the stack. The stack is sequential, quick-access storage that also doesn’t have a ton of room. It is LIFO, like a pancake stack. The memory management is automatic.  What do we do when we need more room? We go to the heap. The heap is dynamically allocated memory. That means that we choose when to use it, and when to release it.  A pointer is how we put things on the heap. It’s an object in the stack that HAS A REFERENCE to a heap location.  With raw pointers, we create them ourselves, and delete them ourselves. However, there is a risk of leaking memory caused by  Freeing up heap memory that didn’t need to be freed  Forgetting to free up heap memory Now, we get to smart pointers. These remove us from the responsibility of manually getting rid of memory, but they are still more effective than garbage collection in other lang...

Advent of Code and Advent of Cyber

TryHackMe is down right now BUT  Maybe I should attempt both challenges this year.  Other challenges I try annually are Art Fight and Drawtober.  I don't usually nail them. But with practice I will get there.  I keep thinking I should do the Rough Draft Challenge in November for writing (replacing NaNo), but I'm never at a good stopping point with my current WIP to just crank out words. 

All versions of "jack of all trades" quotes are BS

" Jack of all trades, master of none, but oftentimes better than master of one" LOL No That's still complete crap. I will not be a "jack of all trades". I will be a master of MANY skills and pursuits. My SELECTED BAND of topics.  Why do people think this is not possible? "Oh, the old polymaths had servants to do their chores!"  Yeah okay so  I'll doordash and eat EASY meals otherwise.  I'll clean while listening to audiobooks (improving writing skill) I'll ditch random social obligations that aren't with close friends and have a low likelihood of romantic ROI.  I'll push most leisurely fun stuff to Saturday late morning.  I will sleep 7 hours instead of 8 some nights.  I will order my groceries in advance and pick up in store so I don't have to pay delivery fees. Or waste time wandering the aisles. BO-RING.  ???????? That's it.  I do not try to quit anything. I doomscroll. I've never quit social media. I like my "sp...

Who wrote this 😂

Image
Whoever wrote this is my G. From Dinopit. 

A road trip day in snacking

I was so tired of feeling sick on road trips.  I don't get motion sick. I do have mild IBS (I Be Suffering) but I don't get motion sick on its own.  Headaches though? Yep, a problem. And as anyone who has lived with me or ridden roller coasters with me knows,  I'm always peeing because I'm always hydrated.  So I decided to make like a HAES influencer and intuitively eat after breakfast.  Read: EAT WHATEVER THE HELL YOU WANT AAAAA WHATEVER I FEEL LIKE EATING, GOSH! It seems to have worked. 2 hours remaining and I'm not sick.  FOOD BEFORE GoMacro bar (peanut butter chocolate)  Men's multivitamin gummies (up&up) Protein shake: orgain, collagen peptides, silk soymilk PB&J Crystal light energy x3: 180mg caffeine  FOOD DURING Propel Energy drink Bacon breakfast burrito (Cafe Feellove) Reese's Big Cup with Reese's pieces x2 Muscle Milk Plant Protein: Caramel Vanilla Pizza Hut: Personal Pan Pepperoni with Parm and Red Pepper Fatburger Vanilla Vega...

The big fat redo

One of the objectives of this current slew of self-study is to basically "redo college", not from a social perspective as much as an academic perspective (since the former is less important / is more difficult to re-create).  I'm trying to learn everything the RIGHT way, in a more correct order.  Right now I'm in the pre-college phase, meaning the stuff I wish I had come into the CS Animation premajor already knowing, in order to hit the ground running better. The real application of this is filling in any knowledge gaps that I have.  But I can't progress on basic coding, and you know why? because I need to finish my dad's site.  Yep. I told him I'd redo it and it has taken years. I am forcing myself to get it done. obviously I love web programming but turns out it's not as fun when you're dealing with a family member who just needs it done ASAP.  my personal coding block should be for ME, but I legitimately do not have any more room for additional...

Introspection time

I've delved back into personality theory fake-science and finally figured out my whole enneagram trifix. I may or may not have involved Claude AI in this discussion because the internet wasn't helping. Yep. I knew my core type as 4w5 instantly. But the rest? It took me years. I initially tested with a 7w6 -head fix (yep...LOL), and thought for years that maybe it was accurate because 1) I can be silly?  2) I have a LOT of pursuits compared to the average person 3) I am vaguely introverted-7ish at amusement parks if I am with an energetic group. I get along decently well with 7s overall.  4) I have generalized anxiety disorder (w6...????) But no. That's SUPER counterintuitive for me. It was obvious all along. A 5-head fix can still have an anxiety disorder, and a 5-head fix can still be somewhat polymathic, especially in the 541 tritype. I am constantly screaming MASTERY. This is competency.  My love for theme parks and roller coasters is from the SX seeking intensity. The...