I’m still waiting to hear back about my car. This is taking so long and it is making me nervous. Maybe they just have so many cars that they haven’t gotten to mine. I hope the cost of repairs aren’t too much. Even if my insurance is paying, I still don’t want repairs to be too much. I hope there isn’t too much damage to the undercarriage of my car. I would just like it fixed and have it back. Ok, I’m being impatient.
Merlin, the puppy, is getting taller. He’s only 5 months old. He is going to be a big dog.
Karissa did her Spring registration this morning. She only has three more classes left so her Fall semester next year will be her last. I believe she is going for her bachelor’s degree next.
Gosh I’m not sure what more to write about today. It’s a calm day. The weather is definitely Fall. Partly cloudy and slightly windy. Temperature is only up to 64 today. I think I will have some hot tea later. And Halloween is near! I do like Halloween, I’m just not always dressing up for it. Maybe I will wear my Nightmare Before Christmas onesie. That is such a warm onesie. I didn’t get any of my Halloween decorations out this year. Not sure why. Oh, maybe it’s cause we have a new puppy. How is Christmas going to be with Merlin? Lol. Several family have already decorated for Christmas. Especially for those who do not celebrate Halloween. I understand their views, I just don’t completely agree. Let kids have fun and dress up and eat candy. It’s not a sin to celebrate Halloween. And if you don’t celebrate it, that’s ok, but let others have their day.
Not sure what Karissa will be doing for Halloween. I know Alexis will be trunk o’ treating at her school and watching horror films. Even though I’m into true crime; I’m not totally into horror films. I understand the psychology behind horror films. Horror films cause people to have the fight or flight response, which comes with a boost in adrenaline, endorphins, and dopamine. I am on the opposite spectrum where it gives me anxiety. Oh, true crime does that for me as well, though I’m still so curious about it. Horror films make me feel fear that I’m going to be a victim…even though I do know it’s fake. True crime does do quite the same for me, and that is real. But for some reason I still like true crime shows and documentaries. I don’t watch much now because of my anxiety. I do like reading ghost stories though. I find them fun. I’m in the middle where I believe and don’t believe in ghosts. I’m sure there has to be an afterlife. And I’ve experienced some things after Kevin had passed. But how often do they conjure up the energy to speak or contact us? How much of it is real and how much of it is us wanting it to be real?
Lately after my coding sessions I’ve been leveling all the jobs I have in Final Fantasy xiv. I’m finishing up Reaper and now onto Sage…which is a healer. Healers are difficult to level, especially solo. I definitely would not bring Sage into a dungeon because I don’t heal. I’m a redmage main so I dps. I can resurrect cause redmage is a baddass but redmage is not a healer. But leveling Sage…Sage is all about mitigation, but relatively poor at actually healing large amounts of HP. With that in mind, your goal would be to prevent more damage than you heal. So bringing Sage into a dungeon is fruitless. And soloing a Sage is a cruel joke because she can’t fight much. So I’ve resolved into just doing tribal quests with Sage. It will be a little slow. But I see no other way. After Reaper is done; only 8 more levels to go, I will start Summoner to go along with Sage at the same time. Then Scholar…another healer. At least when I get to my White Mage she has some dps tendencies. Oh, and why are all of Sage’s spell names transliterated Greek medical terms? I’m hoping by early next year I will get back to the main scenario quests in time for the next expansion.
JavaScript kicked my butt today. I’m still learning how to set up for and if loops and trying to code a program that does Pig Latin is Latin to me. This, again, is why I wish this JavaScript program would have us to more work on the basics than have us do it once and move on. I’m in the middle of understanding and wishing I can learn more of the basics.
I typed a lot for not having much to talk about today. I’m going to make myself some hot tea and get back to coding.
JavaScript notes…
————————————
Pig Latin is a way of altering English Words. The rules are as follows:
– If a word begins with a consonant, take the first consonant or consonant cluster, move it to the end of the word, and add ay to it.
– If a word begins with a vowel, just add way at the end.
Translate the provided string to Pig Latin. Input strings are guaranteed to be English words in all lowercase.
function translatePigLatin(str) { return str; } translatePigLatin("consonant");
function translatePigLatin(str) { let consonantRegex = /^[^aeiou]+/; let myConsonants = str.match(consonantRegex); return myConsonants !== null ? str .replace(consonantRegex, "") .concat(myConsonants) .concat("ay") : str.concat("way"); } translatePigLatin("consonant");
Perform a search and replace on the sentence using the arguments provided and return the new sentence.
First argument is the sentence to perform the search and replace on.
Second argument is the word that you will be replacing (before).
Third argument is what you will be replacing the second argument with (after).
Note: Preserve the case of the first character in the original word when you are replacing it. For example if you mean to replace the word Book with the word dog, it should be replaced as Dog
function myReplace(str, before, after) { return str; } myReplace("A quick brown fox jumped over the lazy dog", "jumped", "leaped");
function myReplace(str, before, after) { // Find index where before is on string var index = str.indexOf(before); // Check to see if the first letter is uppercase or not if (str[index] === str[index].toUpperCase()) { // Change the after word to be capitalized before we use it. after = after.charAt(0).toUpperCase() + after.slice(1); } else { // Change the after word to be uncapitalized before we use it. after = after.charAt(0).toLowerCase() + after.slice(1); } // Now replace the original str with the edited one. str = str.replace(before, after); return str; } // test here myReplace("A quick brown fox jumped over the lazy dog", "jumped", "leaped");
Pairs of DNA strands consist of nucleobase pairs. Base pairs are represented by the characters AT and CG, which form building blocks of the DNA double helix.
The DNA strand is missing the pairing element. Write a function to match the missing base pairs for the provided DNA strand. For each character in the provided string, find the base pair character. Return the results as a 2d array.
For example, for the input GCG, return [[“G”, “C”], [“C”,”G”], [“G”, “C”]]
The character and its pair are paired up in an array, and all the arrays are grouped into one encapsulating array.
function pairElement(str) { return str; } pairElement("GCG");
Category: Uncategorized