jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

An active mind is a healthy mind May 4, 2022 10:48 am

Posted by Doug McCaughan in : Philosophy, Programming, Technology
, add a comment

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!

add a comment

Error messages do not lie February 13, 2020 12:45 pm

Posted by Doug McCaughan in : Programming, Technology
, add a comment

As a programmer, you have to learn to trust the error messages. They can be cryptic and frustrating, but they usually tell you exactly where the problem is if you are willing to listen.

add a comment

Catalina Trashed My Development Environment January 10, 2020 10:46 pm

Posted by Doug McCaughan in : Hardware, Programming, Technology
, add a comment

And then made it work so much better than before! In troubleshooting, I applied updates and corrected problems with my previous development environment with lessons learned. While this was a nuisance, my machine is in better shape for it.

add a comment

Any .NET advice for this? October 11, 2017 11:38 am

Posted by Doug McCaughan in : .NET, Programming, Technology
, add a comment

Maybe you .NET experts could give me a shove in the correct direction.

I am still trying to resolve this error: "Error: Sys.InvalidOperationException: ‘DocMapUpdatePanelId’ is not a property or an existing field."

My ReportViewer won’t function and I’ve narrowed it down to system.web.extensions. I am using Framework 4.6.1 and should be using system.web.extensions 4.0.0.0. The references show it as 4.0.0.0 and when I try to add the reference I get a message that says “system.web.extensions is already referenced” I cannot remove the reference either.

When I look in the GAC, I do not see 4.0.0.0 but instead system.web.extensions 3.5.0.0.

I am working with Visual Studio 2017. I have installed all updates. No amount of uninstalling and reinstallng via NuGet makes a difference. Adding and removing dlls from the bin directory makes no difference. Solution has been cleaned. Temporary files have been cleared repeatedly.

Going to the forums with this results in a bunch of guessing, or silence.

Pretty sure I’m in Hell.

add a comment

Confessions of a programmer April 20, 2017 3:29 pm

Posted by Doug McCaughan in : Deep Thoughts, Philosophy, Programming, Technology
, add a comment

Confessions of a programmer: As a coffee drinker and programmer, I don’t want a standing desk; I want a desk with a urinal. #coap

add a comment

Developer tools November 5, 2016 11:16 am

Posted by Doug McCaughan in : Software, Technology
, add a comment

I like SourceTree so much better than Github Desktop.

add a comment

My thoughts on acts of violence June 13, 2016 9:20 am

Posted by Doug McCaughan in : Technology
, add a comment

For each person who has lived on our soil and gone on to commit an act of violence, be it Timothy McVeigh or the 9/11 hijackers or the Columbine kids or any of the others, each one of those represents a failing on us as a society to not embrace them, to make them one of us, and let them see the American Dream and our way of life as great enough to put aside their wish to do harm and to feel welcome and loved enough to put down their arms. Step out of your homes, hug your neighbors, wave at a stranger (with more than your middle finger), let that person merge in traffic, accept one another, quit labeling and name calling, resist the media and politicians’ efforts to divide us with fear and hate, and generally practice being nice.

Together we stand; divided we fall. Let love overcome!

add a comment

Here’s a thought June 12, 2016 4:08 pm

Posted by Doug McCaughan in : Technology
, add a comment

add a comment

Confessions of a programmer May 22, 2016 9:34 am

Posted by Doug McCaughan in : Programming, Technology
, add a comment

Confessions of a programmer: I never presume the previous developer was incompetent. Instead, I assume they just had a drug problem. #coap

add a comment

Virtual reality has arrived April 9, 2016 10:05 am

Posted by Doug McCaughan in : Technology, Virtual Reality (VR)
, add a comment

Not nude but boobies: https://gfycat.com/FixedTightCobra

add a comment

From the mouths of babes September 26, 2015 10:46 am

Posted by Doug McCaughan in : Communications, Daily Life, Gadgets, Technology
, add a comment

Me: “Alexa, play Dr John Radio.”
Alexa: “Playing Latin jazz on Tunein.”
Aunt Mary’s ghost: “Enunciate boy!”

add a comment

More cord cutting September 14, 2015 12:45 pm

Posted by Doug McCaughan in : Communications, Daily Life, Technology
, 2comments

I did it. I committed to being a Comcast customer for the next 2 years. $109.95 per month set in stone. 50Mbps down/ 10Mpbs up. Unlimited. $200 installation fee; $150 rebate. And yes, if I terminate in less than 24 months, I’m on the hook for 75% of the remainder. So if 6 months remain when I cancel, I’d owe $495.

Negatives? No television whatsoever. Positives? No more data cap.

My overage charges alone in July were $110.

Now, saying, “I’m going to pay $2638.80 for two years of Internet connectivity” sounds ludicrous. Add in Netflix roughly $20 a month. $3118.80 and Hulu ($7.99/mth) $3310.56. And now add cellphone service: $12,358,56. So, if my family wanted to cut out all entertainment and phone services, in two years, I could take them on one of the cheaper Disney vacations. Or, we could skip Disney and stay current with The Walking Dead.

2comments

Why did they put Doug in a padded room? September 13, 2015 9:20 pm

Posted by Doug McCaughan in : .NET, Daily Life, Programming, Technology
, add a comment

Because "The type or namespace name ‘ScriptManager’ does not exist in the namespace ‘System.Web.UI’ (are you missing an assembly reference?)"

add a comment

How to program effectively September 9, 2015 9:11 pm

Posted by Doug McCaughan in : Programming, Technology
, add a comment

Coding is so much better when it includes wine or beer.

add a comment

Inside the life of a programmer August 28, 2015 9:14 am

Posted by Doug McCaughan in : Programming, Technology
, add a comment

Some days require the environment be just right for productivity. Today, I need a darkened room, incense burning, attire that doesn’t include button down anything, bare feet, herbal tea, and very, very loud cyberpunk music. Instead, I am in Cubeville. Florescent lights burn through my eyes searing my brain. The glare is so harsh. A din of conversations float over cube walls as ambient noise but not soothing as white noise, oceans, or rain. Interruptions are imminent. Such is the live of a programmer.

add a comment