JavaScript: How to Automate a Google Doc

Header

Did you know Google Docs are equipped for macros?! Meaning you can script some automation right into Google. Best thing since sliced bread.

Google Apps Script is based on JavaScript, so if you already know that, you’re well ahead of the game.

I know nothing about JavaScript. But I know other stuff. So… Consider this a beginner’s guide for users of other languages.

Continue reading “JavaScript: How to Automate a Google Doc”

PYTHON: How to Script Speech Recognition

Speech Recognition Options

SpeechRecognition is a module that to helps Python scripts interact with outside Speech-to-Text engines. It’s important to note here that the module doesn’t actually transcribe audio on its own—it’s more like a sports agent, connecting you with talent.

And some of that talent can be had or tried free of charge. Today, I’ll be looking exclusively at those.

Continue reading “PYTHON: How to Script Speech Recognition”

PYTHON: How to Use Try and Except

Header

You know how sometimes when the charger on your phone gets old, it won’t work unless it’s leaned at a 35 degree angle to the right while the device is hanging upside down from the cord? Duck tape. Duck tape is how I solve that problem. Same deal when the fridge handle breaks or when my rain coat gets holes or when my laptop screen gets dislodged from the body.

Duck tape.

Try and Except is the duck tape of Python. Everyone should be aware of its power.

Continue reading “PYTHON: How to Use Try and Except”

Processing: How to Hide Messages in Images

Can you spot the difference?

Alright, take a look at the two versions of Starry Night above. They look the same, right?

WRONG.

There’s a Shel Silverstein poem in one of them. It’s chilling out in the different red values of the pixels in the upper left hand corner on the second Starry Night. I love this method of hiding messages.

If you convert letters into numbers, you can use those to make pixel color changes that are pretty darn subtle. Then when you send your encoded image to anyone with the original, they can use Processing to pull the message out.

Continue reading “Processing: How to Hide Messages in Images”