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.
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”
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”
Here’s a fun trick for all you VBA grammar enthusiasts out there. All 6 of you.
There exists something called a SynonymInfo Object. It lets you access things like definitions, synonyms, antonyms, and parts of speech in Word. Cool beans, right?
Continue reading “VBA: How to Extract Parts of Speech in Word”
Did you know you can create an array of images?! I just learned this. And the really exciting part is that you can rig up Processing to look through your Sketch folder to get the names of images to load into that array.
Continue reading “Processing: How to Load All Images in a Sketch Folder”