I’m just about ready for a new release of Granny Squares. I did all my tests and development, merged with the master branch, and ran my tests again.
And one failed.
A trivial case–ensure that there’s one instance of the form in the formset on the main page of the site.
It certainly works. But the response object’s context is None, even though the content, status code, etc., are on point.
I’m not releasing the damn thing until the tests pass, but it’s a pain the ass, because I wanted to already be full tilt on August’s project.
Many moons ago, I debuted my Granny Squares Color Pattern Generator, a utility to help crocheters randomize their blankets, which can be a daunting task.
I recently got a request for a way to help visualize the blanket that’s generated. It’s hard to work from a list of “r/h/p”-type entries. Not very user-friendly.
So I added in a color picker today, and the generator now shows the colors of the squares. As a warning, if you have a lot of very similar colors, the generated image may be difficult to work from. Then again, if your blanket’s in 15 shades of purple (yes, please!), you may not need this utility.
Continue reading Granny Squares, Now in Color
My knitting colleague E. made the (arguably) goofy decision to refresh her crocheting skills by taking on a granny squares blanket.
It’s a great idea for using up a ton of scrap yarn.
It’s not a great idea if you enjoyed the level of sanity you had when you started.
She quickly ran into the classic self-randomizing problem: given 20 different colored yarns of different weights, how do you put 3 different ones in each square while trying to keep the colors as random as possible? Sounds easy enough, but after 15 or so squares, it gets tricky. If you’re aiming for randomization, the last thing you want is a big diagonal of purple in your blanket when you’re done.
So E. appealed to me and asked me to write her a “script” to randomize her colors. I was on board, look forward to some Python/Django fun before I realized that what I’d been handed was a graph coloring problem with some fun restraints. (Turns out it was easy, but fun to think through.)
Before I get into the technical bits, go make a blanket or two. Then go find some esoteric method to contact me (or comment here) and let me know what you think, especially if you run into an issue.
Continue reading Chewing on Granny Squares