Posted on Leave a comment

What do you do to stay sharp?

In addition to my regular programming study for work, I do some daily mental exercises. I am practicing Spanish daily. I am practicing Morse code daily. I try to work a non-work related programming challenge daily https://www.codewars.com/ I’m studying ham radio to upgrade to my Amateur Extra class license. I try to get some daily reading in even if it is just a paragraph or listening to an audiobook. And I’m now adding a daily math problem from https://www.mathopolis.com/questions/day.php where I’m doing one math problem from every grade (yes, I got cocky and missed the 2nd grade math problem) and topic. I want to see math like Neo sees the Matrix. I’m failing a bit at my daily physical exercise but motivated to change that.
What do you do to stay sharp?

Posted on Leave a comment

An active mind is a healthy mind

Knocking the plaques off the brain. Began the day with some Spanish practice and some Morse code practice. Then jumped into codewars.com and the first challenge I was given was…”write a Morse code decoder!”
Here’s my passing code (wordpress stripped the indentions):
function decode_morse(string $code): string {
$returnstring = ”;

//break the input string into words based on three spaces between words
$morsewords = explode(‘ ‘,$code);
foreach($morsewords as &$word){

//translate each letter of each word from Morse using the built-in library
$morse = explode(‘ ‘,$word);
foreach($morse as &$value){
$returnstring .= MORSE_CODE[$value];
}
$returnstring .= ‘ ‘;
}

//clean up return string by removing any leading or trailing spaces we added or that were in the original input string
return trim($returnstring);

}
Now to return to becoming a PowerApps and Azure expert. Light the incense, dim the lights, and turn up the cyberpunk. I’m going in!

Posted on Leave a comment

Communing with nature

When I was a child
I used to sit in the woods
I fell asleep in a tree
One time more than I probably should’ve
I’d awake slowly
Fifteen feet above the ground
Calm in the breeze
With no one around
My mind at peace
My life calm
Then I’d leave nature
To find everything wrong.

-dm2022-04-30