-
‹ Home
FRIENDS
VACCINATION
MY SITES
CONTACT ME
CODE+SOFTWARE
STUFF
-
Archives
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003
- August 2003
- July 2003
- June 2003
- May 2003
- April 2003
- March 2003
- February 2003
- January 2003
- December 2002
- November 2002
- October 2002
- September 2002
- August 2002
- July 2002
- June 2002
- May 2002
- April 2002
- March 2002
- February 2002
- January 2002
- December 2001
- November 2001
- October 2001
- September 2001
- August 2001
- July 2001
- June 2001
- May 2001
- April 2001
- March 2001
-
RSS Feeds
-
Meta
Twelve Blocks?
Nefarious and I went on her first long-distance bike ride and biked to the park and back. Yes, I have tassels too but it’s because I am riding Caitlin’s bike… After that adventure we sowed a planter full of her pick, moonflowers (a climbing vine with huge white flowers), and a second one full of sunfowers, my pick. There’s another planter with chives and other herbs that survived the winter already growing nicely…
Extreme Apnea
My ability to hold my breath maxes out at around five minutes if I relax and focus (which I think is pretty impressive), and about half that on a normal high-on-taurine-and-caffeine sort of day. David Blaine just held his breath for 17 minutes and 4 seconds… Wow…!
Fail Peanuts!
The following submissions did not quite meet Caitlin and my strict criteria for things that look like ducks. Click that link to see what has made the cut lately (I added a few new ones today), and please email me your things that look like ducks at duckpeanut@gmail.com!
Colour Sequencing / Combinatorics Tool
Caitlin needed a tool for creating lists of every possible combination of a set of variables (including the ability to limit the list length) so I wrote her a quick command line tool for doing that. She’s using it to output lists of every combination of yarn to make sure that every panel in a quilt-like thing (watch for it here in the future perhaps). Here’s how it works:
SEQUENCES
Note: you can also enter your variables on the command line, comma separated
Enter your variables now:
-->red,green,blue,black
Depth limitation? (Blank for no)
-->3
red, green, blue
red, green, black
red, blue, green
red, blue, black
red, black, green
red, black, blue
green, red, blue
green, red, black
green, blue, red
green, blue, black
green, black, red
green, black, blue
blue, red, green
blue, red, black
blue, green, red
blue, green, black
blue, black, red
blue, black, green
black, red, green
black, red, blue
black, green, red
black, green, blue
black, blue, red
black, blue, green<press any key to exit>
So it outputs every possible combination, with order being important, with no repetition of colour inside the set, with the length of list limited as you desire (if at all). You can run it either by clicking it or running it from a prompt, or you can enter the list as the command line variables and redirect it to a file since it writes to stdio.
Source code* (PBCC) is included; download it here:
https://zentastic.me/code/sequences.zip [12k]
* It’s actually a useful piece of code for people looking to learn about how to write recursive software… this type of combinatorial processing is a great use for recursion. I should mention that the length limitation is a kind of sloppy add-on that uses global variables which is kind of frowned upon.