<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>corvi</title>
  <link>https://corvi.dreamwidth.org/</link>
  <description>corvi - Dreamwidth Studios</description>
  <lastBuildDate>Sat, 08 Jun 2013 02:56:58 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>corvi</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/7965313/184229</url>
    <title>corvi</title>
    <link>https://corvi.dreamwidth.org/</link>
    <width>85</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://corvi.dreamwidth.org/4863.html</guid>
  <pubDate>Sat, 08 Jun 2013 02:56:58 GMT</pubDate>
  <title>for June</title>
  <link>https://corvi.dreamwidth.org/4863.html</link>
  <description>Back to tinkering with simulated snowflake growth. This time I am using Game-of-Life type growth rules. Next up is to write a more complicated set of rules that will shift with simulated temperature and humidity.&lt;br /&gt;&lt;br /&gt; &lt;img src=&quot;http://clockworksquid.com/Shared/ljcorvi/snow/snow1.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Something about summer makes me want to tinker with fake snow. :)&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/ljcorvi/snow/snow2.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/ljcorvi/snow/snow3.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br type=&quot;_moz&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=corvi&amp;ditemid=4863&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://corvi.dreamwidth.org/4863.html</comments>
  <category>snow</category>
  <category>processing</category>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://corvi.dreamwidth.org/2182.html</guid>
  <pubDate>Tue, 12 Feb 2013 20:35:53 GMT</pubDate>
  <link>https://corvi.dreamwidth.org/2182.html</link>
  <description>I have a boring &lt;a href=&quot;http://lazyevaluationranch.tumblr.com&quot;&gt;tumblr account&lt;/a&gt; where I keep track when we worm the goats and how long the bees hibernate and that kind of stuff, plus a daily picture taken while I am out doing chores from the nice point and shoot camera&amp;nbsp;&lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://juli.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://juli.dreamwidth.org/&apos;&gt;&lt;b&gt;juli&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;got me, because I do a better job actually having the motivation to keep records when I am convinced someone else might see it somehow. :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I was curious if there were seasonal color patterns in the daily pictures - more grey in winter, flower colors in spring, etc - so I wrote a Processing sketch that downloaded a year&apos;s worth of pictures and extract colors from them and put them in a circle.&lt;br /&gt;&lt;br /&gt;Winter = right, fall = down, summer = left, spring = up, each radial line is a day.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://media.tumblr.com/f8b4c7d7e6b5cdbbc8b494b3d6d8098c/tumblr_inline_mi3mq8iavs1qz4rgp.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;So the answer is ... not really. I basically post pictures of grey things and green things no matter what time of year it is. Probably living somewhere with actual seasons would help.&lt;br /&gt;&lt;br /&gt;So now I have this script, I thought I would hit a couple other people&apos;s picture-happy tumblr accounts and see what it looked like.&lt;br /&gt;&lt;br /&gt;&lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://juli.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://juli.dreamwidth.org/&apos;&gt;&lt;b&gt;juli&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&apos;s &lt;a href=&quot;http://caladri.tumblr.com&quot;&gt;last year of images&lt;/a&gt;:&lt;br /&gt;&lt;img src=&quot;http://media.tumblr.com/c4cfa3363398439a54f42293b315b7e9/tumblr_inline_mi3mqupumG1qz4rgp.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;A tumblr devoted to exploring (dark) &lt;a href=&quot;http://dropcop.tumblr.com&quot;&gt;abandoned buildings&lt;/a&gt;:&lt;br /&gt;&lt;img src=&quot;http://media.tumblr.com/1c0625ec95a8ec0ffe1d612d65b7ad55/tumblr_inline_mi3mrmu4oW1qz4rgp.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;The National Archives &lt;a href=&quot;http://todaysdocument.tumblr.com&quot;&gt;official tumblr&lt;/a&gt;, lots of old yellow paper and black and white photos.&lt;br /&gt;&lt;img src=&quot;http://media.tumblr.com/14003c3c518d427ed01761188607d4aa/tumblr_inline_mi3ms2CkKq1qz4rgp.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;A tumblr &lt;a href=&quot;http://cheesenotes.tumblr.com&quot;&gt;about cheese&lt;/a&gt;:&lt;br /&gt;&lt;img src=&quot;http://media.tumblr.com/4e259040d53474efa8ac2a2f20939afc/tumblr_inline_mi3mt7rspD1qz4rgp.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;Haven&apos;t been able to find a tumblr with a good seasonal color variation, though, which was the whole point.&lt;br type=&quot;_moz&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=corvi&amp;ditemid=2182&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://corvi.dreamwidth.org/2182.html</comments>
  <category>seasons</category>
  <category>tumblr</category>
  <category>processing</category>
  <category>visualization</category>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://corvi.dreamwidth.org/1384.html</guid>
  <pubDate>Sat, 29 Dec 2012 21:10:51 GMT</pubDate>
  <title>Faro shuffle</title>
  <link>https://corvi.dreamwidth.org/1384.html</link>
  <description>&lt;p style=&quot;margin: 0px; font-family: Helvetica; &quot;&gt;&lt;img src=&quot;http://www.dreamwidth.org/img/silk/identity/user.png&quot; alt=&quot;[personal profile] &quot; width=&quot;17&quot; height=&quot;17&quot; style=&quot;vertical-align: text-bottom; border: 0; padding-right: 1px;&quot; /&gt;&lt;b&gt;&lt;a href=&quot;http://juli.dreamwidth.org/&quot;&gt;juli&lt;/a&gt;&amp;nbsp;&lt;/b&gt;and I have been talking about &lt;strong&gt;Faro&lt;/strong&gt; or &lt;strong&gt;Pharaoh Shuffles&lt;/strong&gt;, which is a common shuffling technique for card games or magic tricks. It goes like this:&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;    &lt;li&gt;Divide the 52-card deck into two half-decks of 26 cards, deck A and deck B.&lt;/li&gt;    &lt;li&gt;Merge the two half-decks together so that cards alternate, one from half-deck A, one from half-deck B, but the individual half-decks stay in order.&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;So if your deck starts out numbered like this:&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px 0px 0px 40px; &quot;&gt;&lt;strong&gt;1, &amp;nbsp; 2, &amp;nbsp; 3, &amp;nbsp; 4, &amp;nbsp; 5, &amp;nbsp; 6, &amp;nbsp; 7, &amp;nbsp; 8 &amp;hellip; 49, &amp;nbsp; 50, &amp;nbsp; 51, &amp;nbsp; 52&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;You divide it into two decks, 1-26, and 27-52, and then merge them together like this:&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px 0px 0px 40px; &quot;&gt;&lt;strong&gt;1, &amp;nbsp; 27, &amp;nbsp; 2, &amp;nbsp; 28, &amp;nbsp; 3, &amp;nbsp; 29, &amp;nbsp; 4, &amp;nbsp; 30, &amp;hellip; 25, &amp;nbsp; 51, &amp;nbsp; 26, &amp;nbsp; 52&lt;/strong&gt;.&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;If you do this perfectly eight times with a deck of 52 cards, you will get back to the original order. I had trouble believing that, so we sat in a diner and carefully shuffled cards. Six cards return to their original positions after four shuffles. Eight cards take three, twelve takes ten shuffles and three restarts after losing my place.&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;Of course we both announced we would write a script when we got home, but Juli got hers done first. &lt;a href=&quot;http://people.freebsd.org/~jmallett/pharaoh.html&quot;&gt;Go look at it here&lt;/a&gt;.&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;A graph of how many perfect faro shuffles it takes to bring a deck of N cards back into its original order:&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/farochart.png&quot; alt=&quot;bar graph of how many perfect faro shuffles are required to get a deck of X cards back to its original order&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;br /&gt;And here is an image of the patterns formed by shuffling 52 cards. Each horizontal line is the deck before or after shuffling, and each rectangle is a card. Black is card #1, red is card #52.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro52.png&quot; alt=&quot;Grid image of the positions of 52 cards over the course of 8 perfect faro shuffles.&quot; /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;What about some other sized decks of cards? Decks that contain a power of two cards return to their original state in log-2 shuffles. Here are the patterns for decks of &lt;strong&gt;16 (4 shuffles), 32 (5 shuffles), 64(6 shuffles), and 128(7 shuffles)&lt;/strong&gt; cards:&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro16.png&quot; alt=&quot;shuffling 16 cards&quot; /&gt;&amp;nbsp;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro32.png&quot; alt=&quot;shuffling 32 cards&quot; /&gt;&amp;nbsp;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro64.png&quot; alt=&quot;shuffling 64 cards&quot; /&gt;&amp;nbsp;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro128.png&quot; alt=&quot;shuffling 128 cards&quot; /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;Decks with two more cards than a power of two take twice as many shuffles as the power of two. First the shuffling arranges every card in the deck except the first and last (which never move) in reverse order, then it turns them around again. Here are &lt;strong&gt;18(8 shuffles), 34(10 shuffles), and 66 cards (12 shuffles) &lt;/strong&gt;card decks:&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro18.png&quot; alt=&quot;shuffling eighteen cards&quot; /&gt;&amp;nbsp;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro34.png&quot; alt=&quot;shuffling 34 cards&quot; /&gt;&amp;nbsp;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro66.png&quot; alt=&quot;shuffling 66 cards&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;The slowest decks take two less shuffles than they have cards. Here&apos;s 84 (82 shuffles required to return to original state), which does include a &amp;quot;reversed-except-for-the-outside&amp;quot; state, but I don&apos;t know how to characterize any of the rest of it.&lt;br /&gt;&lt;img src=&quot;http://clockworksquid.com/Shared/dreamwidth/faro/faro84.png&quot; alt=&quot;shuffling 84 cards&quot; /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; min-height: 14px; &quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin: 0px; &quot;&gt;There is some discussion of the math &lt;a href=&quot;http://mathworld.wolfram.com/RiffleShuffle.html&quot;&gt;here&lt;/a&gt;, but I wish it went into more detail.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=corvi&amp;ditemid=1384&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://corvi.dreamwidth.org/1384.html</comments>
  <category>processing</category>
  <category>card tricks</category>
  <category>math</category>
  <lj:mood>cold</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
</channel>
</rss>
