Jump to content

TheUnInvestedCremling

Members
  • Posts

    122
  • Joined

  • Last visited

Blog Entries posted by TheUnInvestedCremling

  1. TheUnInvestedCremling

    Rocky.js -- The Whole Story
    So basically, a fortnight ago, I read and watched Andy Weir’s Project Hail Mary. 
    Due to a rock shaped alien called Rocky’s special characteristics, me and my friend @KaladinsSenseOfHumourSpren were always conversing in Grace’s highly questionable Eridian to English translator. We would use phrases like Amaze! And What are you doing right now, question? For some joy in our day to day conversation. Me (being very lazy) decided my fingers were getting more sore after typing the added PHM english, so I set out to make a js script that’d do it for me.
     
    Day 1.
    Why am I doing this, question?
    I had little to none knowledge of javascript and I DID NOT want to vibe code 😁!! I knew the basics so i laid out my starting code
     
    (function() {
     
    What to do now….
     
    Day 2.
    I spend most of day one researching and found stuff that would help me greatly. I just now have finished my draft code.
     
    (function() {
        'use strict';
     
        (function() {
        'use strict';
     
     
        document.addEventListener('keyup', function(e) {
            const target = e.target;
            if (target.getAttribute('contenteditable') === 'true' && target.innerText.includes('?')) {
                const selection = window.getSelection();
                const cursorPos = selection.anchorOffset;
                if (target.innerText.endsWith('?')) {
     
                    const newValue = target.innerText.replace(/\?$/, ', question?');
                    target.innerText = newValue;
                    const range = document.createRange();
                    const sel = window.getSelection();
                    range.setStart(target.childNodes[0], newValue.length);
                    range.collapse(true);
                    sel.removeAllRanges();
                    sel.addRange(range);
                }
            }
        });
    })();
    })();
     
    I was using Tampermonkey and I tested it.

    Nothing.
    Why?
     
    Day 3.
    After the roadblock, I tinkered with it (Did nothing) and sighed. WHYY, QUESTION? WHYYY.
    Then, my deepfried brain had an idea and i got my js, and pasted it onto the console
    (Do not paste any code that you don’t know about on the console or you may get hacked)
    AMAZE! AMAZE! AMAZE!
    It worked.
     
    Day 4.
    It worked on the console.. YES. 
    Buttttt….

    The questions always came twice..
    Why?
    At this point, I needed some help.
    @KaladinsSenseOfHumourSpren was/is really good at javascript, so I gave him the code and the problem.
    @KaladinsSenseOfHumourSpren, being @KaladinsSenseOfHumourSpren, figured it out immediately.

    Well.. After taunting me first 😡

    There it was. The magic fix!
    And I’m going to fix this n-
    I slept.
     
    Day 5. 
    I added the check and everything the code looks fine.
    (function() {
        'use strict';
     
        (function() {
        'use strict';
     
     
        document.addEventListener('input', function(e) {
            const target = e.target;       
            if (target.getAttribute('contenteditable') === 'true' && target.innerText.includes('?') && target.innerText.endsWith('?') && !target.innerText.includes(', question?')) {           
                const newValue = target.innerText.replace(/\?$/, ', question?');
                target.innerText = newValue;           
                const rangWhat’s here, question???);
                const sel = window.getSelection();
                range.setStart(target.childNodes[0], newValue.length);
                range.collapse(true);
                sel.removeAllRanges();
                sel.addRange(range);
            }
        });
    })();
    })();
    (OOH cOlOur)
     
    It was time for the BIG TEST!!!
    I added it to my console
    AND AMAZE, AMAZE, AMAZE!!!

    I’m finally done. Yippee.
    I’m content
     
    Day 6.
    I'm not content.
    I wish it was automatic
    So I scoured the Chrome Web Store.
    Orangemonkey
    Yes.
    It was calling to me.
    I installed it, added my code…
     
    My work… Was done.


    (also bdw how to remove the autobold, as i type my blogs in docs and then paste here:)

     
  2. TheUnInvestedCremling

    Place 1 - Log 1
    I climbed up the jagged rocky wall with my bare hands–because apparently my survival instincts are dramatic like that. Once I reached the top, I saw that, well…
    I was stranded.
    Truly splendid.
    My first hour into the cosmere and I’ve already achieved the impressive feat of being lost, confused, and perched on a small rock mound like some kind of underprepared mountain hermit.
    Surrounded by a red sea.
    Wait.
    Red sea.
    I opened my leather notebook and flipped through the pages. I hadn’t researched anything about the red sea.
    Of course I hadn’t.
    Why would Past Me ever think Present Me might need that information about the Secret Projects? That would be far too convenient. 
    Well, I couldn’t do anything about it now.
    I grabbed my spectacles and put them on.
    I was wrong.
    The sea wasn’t red.
    The sea wasn’t–well–a sea.
    It was actually a giant group of spores.
    Rose‑coloured spores.
    Huh. Fascinating.
    You know, in the “this is beautiful but also probably wants to kill me” sort of way.
    After my brief moment of curiosity (and mild existential dread), came the realisation that I was stuck.
    “ZORCK.”
    Yes, that was the noise I made. It’s my native slang–i’m not human, okay? What are you going to do about it?
    I decided it was time for an experiment. I climbed back down and threw a stone into the sea.
    (Yes, I know it’s not a sea. No, I’m not inventing a new name for it. I’m already traumatised enough.)
    The stone sat on top for a bit, like it was thinking about sinking, then–out of nowhere–rose vines shot up from within the spores and wrapped around it like it was a teddy bear.
    I gulped.
    Loudly.
    I needed to find a town.
    Quick.
    Preferably one without murderous rose oceans.
    Or at least one with a pamphlet titled “So You’ve Accidentally Entered A World In The Cosmere Which You Didn't Research About.”
  3. TheUnInvestedCremling
    Skyward.
    The book that first sparked my love for Brandon Sanderson’s writing. I read it around this time last year, and to be honest… I didn’t really care much for books back then. Sure, there were some good ones, Harry Potter, The Hunger Games-but none of them felt like something I’d carry with me forever.
    Skyward was that something.
    I finished it in two days.
    Two scudding days.
    It was intense, gripping, and constantly surprising, every page brought something new.
    I loved it.
    Brandon absolutely nailed worldbuilding, giving everything depth and purpose.
    And the characters.
    Oh. My. God.
    First of all, Spensa. She was someone I could genuinely relate to. From the beginning to the end, she felt like a character who was meant to exist.
    Then there’s M-Bot—the wonderful, charming AI in a rundown spaceship. Forget ChatGPT; this guy is way ahead.
    The rest of the cast added a warm, homey feeling to the story. The little bursts of humour sprinkled throughout made the adrenaline-filled plot so much easier to devour.
    My ratings:
    Plot: 4/5
    Humour: 3.2/5
    Suspense: 4.1/5
    Continuation (Book 2 setup): 2.6/5
    World-building: 3.9/5
    Character development: 3.85/5
    Other: 3.5/5
    Final: 21.15/35
    A great start to the BrandonVerse.
    Favourite quote:
    “When this is done, Jerkface, I will hold your tarnished and melted pin up as my trophy as your smoldering ship marks your pyre, and the final resting place of your crushed and broken corpse!”
×
×
  • Create New...