Last week, I wrote a function that loops through all the characters in the first paragraph of a Google Doc. But chances are, if you’re running through all the characters in a paragraph, you’re going to need all the characters in all the paragraphs.
How the heck do you do that?
Did you know Google Docs are equipped for macros?! Meaning you can script some automation right into Google. Best thing since sliced bread.
I live in Miami.
And I can tell you from experience, the Craigslist housing listing page is the 8th circle of hell. Evil pits, horned demons, real estate agents posting fake listings as bait for new clients.
Who has the time to sift through all that?
Continue reading “Python: How to Scrape Craigslist Housing Posts”
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”
It’s not difficult to load Python scripts into Blender’s text editor, but there’s something reassuring about just getting them to populate in the space bar menu.
How do you get Blender to do that, you ask?
You make your script into an add-on.
Continue reading “PYTHON: How to Make a Blender Add-On”
Alright, take a look at the two versions of Starry Night above. They look the same, right?
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”
I have an obsession with timelines, which honestly may be bordering on manic and unhealthy. A 3D timeline has been on my back-burner for months because while I have written a function that auto-creates materials in Python, I had not yet mastered the art of applying image textures to those materials.
That’s today’s project.
Continue reading “Python: How to Bulk Load Image Textures in Blender”
Say you have a message filled with static, and you suspect there’s something off about it. The pixels appear to be random, but not quite. How, how, how might you determine if the image is indeed entirely randomized?
Continue reading “Python: How to Script a Bar Chart”
Have you ever tried to install a Python module and been stopped dead in your tracks by a rude error claiming that you’re version of pip is somehow insufficient?
Continue reading “Python: How to Upgrade to pip 10.0.1”
I’ll level with you. I rarely need to manipulate specific pixels in an image, but when those occasions come along, it’s a massive pain in the neck. One that’s preventable with Python. So here it is. A quick starter guide to coding pixel by pixel adjustments.
Continue reading “Python: How to Script Image Adjustments”