<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Christopher Cinq-Mars Jarvis on Medium]]></title>
        <description><![CDATA[Stories by Christopher Cinq-Mars Jarvis on Medium]]></description>
        <link>https://medium.com/@ccj242?source=rss-26d16883ab38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PdC_N455pZXZtJPWVEkVSA.jpeg</url>
            <title>Stories by Christopher Cinq-Mars Jarvis on Medium</title>
            <link>https://medium.com/@ccj242?source=rss-26d16883ab38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 07:33:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ccj242/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Push Once, Publish Twice: Open Source without the headache]]></title>
            <link>https://blog.cinqmarsmedia.com/push-once-publish-twice-open-source-without-the-headache-8834825feb68?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/8834825feb68</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Fri, 22 Aug 2025 09:55:14 GMT</pubDate>
            <atom:updated>2025-08-23T08:35:27.912Z</atom:updated>
            <content:encoded><![CDATA[<h4>Dupligit is a Free Git Tool to Simplify Maintaining Public Repos</h4><p>Our non-profit, <a href="https://cinqmarsmedia.com/">Cinq-Mars Media</a>, has always been committed to open source. Since our founding in 2015, every project we’ve released has been published under an open license — and we plan to keep it that way. But let’s be honest: maintaining open-source repositories can be a real pain. Open sourcing has of course been worth it (we’ve gained invaluable community feedback and insights we’d never have gotten otherwise), but the process has been messy, time-consuming, and easy get pushed to the backburner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWCA5SrpM05ZTcKb51Mq9w.png" /><figcaption>Dupligit is a free new tool to make open sourcing repos more convenient</figcaption></figure><h4>The Challenge</h4><p>Our real, working codebases are almost always private. That’s because development involves API keys, internal notes, or sensitive details that simply don’t belong in a public repo.</p><p>For the past decade, our solution has been to maintain separate public repositories and update them manually whenever we had time. The reality? Updates only happened sporadically, usually around major releases. Worse, we often pushed something sensitive by mistake and had to spend time cleaning it up. A huge time sink.</p><h4>Our Solution</h4><p>To solve this, we built an internal tool that we now use across all projects — past, present, and future. It’s been such a game-changer for us that we decided to release it under the MIT license so others can benefit too. We call it <a href="https://github.com/cinqmarsmedia/dupligit"><strong>Dupligit</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-_eZ4sA7A62nbyvxAhmcQ.jpeg" /><figcaption>As a GitHub Action, the tool automatically pushes a sanitized copy of your private codebase to your public repo</figcaption></figure><h4>How It Works</h4><p>You can install Dupligit via <a href="https://www.npmjs.com/package/dupligit"><strong>npm</strong></a> or run it as a <a href="https://github.com/marketplace/actions/dupligit-sync"><strong>GitHub Action</strong></a> directly in your private repository. With a simple config, it automatically sanitizes and mirrors your private repo to a designated public one on every push. Perfect for anyone who wants to maintain a clean public repo without exposing sensitive data.</p><p><strong>Features at a glance:</strong></p><ul><li>🧽 Replace secrets + internal comments with simple <strong>regex rules</strong></li><li>🚫 Skip files with <strong>ignore globs</strong></li><li>🔁 <strong>Push</strong> the sanitized tree to a target repo/branch</li><li>🧰 Works as a <strong>CLI</strong> or <strong>GitHub Action</strong></li><li>🪶 Lightweight: only one dependency (minimatch)</li></ul><pre>{<br>  &quot;targetRepo&quot;: &quot;https://github.com/you/your-public-mirror&quot;,<br>  &quot;targetBranch&quot;: &quot;main&quot;,<br>  &quot;rules&quot;: [<br>    {<br>      &quot;pattern&quot;: &quot;API_KEY=.*&quot;,<br>      &quot;replacement&quot;: &quot;API_KEY=YOUR_API_KEY_HERE&quot;,<br>      &quot;flags&quot;: &quot;g&quot;<br>    },<br>    {<br>      &quot;pattern&quot;: &quot;password\\s*=\\s*[\&quot;&#39;][^\&quot;&#39;]+[\&quot;&#39;]&quot;,<br>      &quot;replacement&quot;: &quot;password = \&quot;REDACTED\&quot;&quot;,<br>      &quot;flags&quot;: &quot;gi&quot;<br>    }<br>  ],<br>  &quot;ignore&quot;: [<br>    &quot;*.env&quot;,<br>    &quot;*.env.*&quot;,<br>    &quot;.env*&quot;,<br>    &quot;secrets/&quot;,<br>    &quot;private/&quot;,<br>    &quot;*.key&quot;,<br>    &quot;*.pem&quot;,<br>    &quot;config/production.*&quot;,<br>    &quot;dupligit.config.json&quot;<br>  ]<br>}</pre><h3>The Payoff</h3><p>Setup takes about five minutes. After that, your public repo updates automatically every time you push to your private one. No manual intervention. No accidental leaks. Even commit messages are sanitized before publishing.</p><p>For us, this has been transformative. Instead of dreading repo maintenance, it just happens in the background.</p><p>We hope Dupligit makes it easier for other organizations — and individual developers — to keep public repositories active, clean, and up to date!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8834825feb68" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/push-once-publish-twice-open-source-without-the-headache-8834825feb68">Push Once, Publish Twice: Open Source without the headache</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reinventing Magic Squares: The Math Puzzle Equate 8]]></title>
            <link>https://blog.cinqmarsmedia.com/reinventing-magic-squares-equate-8-1b7b731e4ae7?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b7b731e4ae7</guid>
            <category><![CDATA[puzzle]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 05:29:02 GMT</pubDate>
            <atom:updated>2025-08-17T00:33:02.274Z</atom:updated>
            <content:encoded><![CDATA[<p>Like many math enthusiasts at one time or another, I found myself obsessed with magic squares. The internet, as it does, eagerly led me down a long and satisfying rabbit hole. For the uninitiated, a magic square is a charming number theory construct: a square grid in which distinct integers are arranged so that every row, column, and diagonal adds up to the same “<strong>magic constant</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3aOkSQAl2oW3BPh_cl3KA.png" /><figcaption>A traditional Lo Shien Magic Square with 15 as a magic constant</figcaption></figure><p>Solving magic squares as puzzles — filling in missing numbers — is not only recreational but also an excellent exercise in algorithmic thinking and algebraic reasoning. In a 1998 paper, one of my personal heroes, Martin Gardner, described a remarkable generalization that works for any 3×3 magic square, allowing for their exhaustive enumeration. Unfortunately, this method applies only to traditional 3×3 grids so an algorithmic approach would be necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRrWAUYQqY4DEk-iGrTqIw.png" /><figcaption>Math Horizons, February 1998</figcaption></figure><p>The <strong>Siamese method</strong> (or De la Loubère’s method) is perhaps the most infamous approach: it has you begin in the middle of the top row, place the number 1, then move up and right. If that move is outside the grid, wrap to the opposite side. If occupied, move down one. Repeat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*GGZGSFGLccjiKpbCNYqI2g.png" /><figcaption>Siamese method, perhaps the most well known magic square algorithm</figcaption></figure><p>For even-order grids, hybrid methods are used, such as the <strong>singly-even</strong> approach (where the Siamese method is applied to quadrants). Using the Siamese method, I wrote a Python script, available <a href="https://gist.github.com/ccj242/2255623af57d6680fd8db349caf1856e">here</a>, capable of generating magic squares of any order <em>N</em>. On my laptop, it successfully built squares with sizes well beyond <em>N</em> = 10,000. For example, <a href="https://www.cinqmarsmedia.com/equate8/1001_MagicSquare.csv">here</a> is a square of order 1,001, filled with consecutive integers from 1 to 1,00¹², yielding a magic constant of 501,502,001.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQ-ehe2xqsQ4a5Z97GzmsQ.png" /><figcaption>Formula for the magic constant in a traditional magic square</figcaption></figure><p>As promising as this was, the Siamese method remained limited, producing only a single instance of a magic square, whereas I sought an exhaustive construction. Moreover, traditional magic squares rely on consecutive integers, which makes the magic constant trivial to compute with a simple formula. I wanted to move beyond that convention. Instead, I explored puzzles built from non-consecutive integers — even allowing duplicates — under a looser rule: the magic constant would be defined as the sum of all <em>N</em> integers divided by <em>N</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*setORZAUk9z0WsO5PK5Puw.png" /></figure><p>I could then simply use a brute force algorithm and reject any randomly generated set of integers that did not divide the above formula evenly or failed any one of the row/column/diagonal checks. This quickly became painfully slow, especially for grids where <em>N</em> &gt; 5, but backtracking methods helped. You can view that code <a href="https://gist.github.com/ccj242/a9e6d601ad184741d69ce8bbd77de450">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zsBUY6v9-0Xi8PnULdgJQw.png" /><figcaption>I will always go out of my way to reference xkcd</figcaption></figure><p>This exercise left me wondering what was possible. What about nontraditional variants? <strong>Bordered magic squares </strong>have<strong> </strong>smaller magic squares sharing the same magic constant nested within a larger one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*kn0AFJMTPVFmj9IhUfMPtg.png" /><figcaption>The outermost square has a magic constant of 260 whereas each of the four has a magic constant of 130</figcaption></figure><p><strong>Blockwise magic squares have </strong>multiple magic squares are arranged side by side that don’t necessarily share a magic constant. These approaches are often combined to produce magic squares of extraordinary complexity and scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYBstydf-B07wrL355Zbug.png" /></figure><p>Then there are the truly unconventional types…</p><ul><li><strong>Semi-magic</strong>: Diagonals don’t need to sum to the constant (think Sudoku).</li><li><strong>Bimagic</strong>: Both numbers and their squares form valid magic squares.</li><li><strong>Panmagic</strong>: Diagonals, including “wrapped” ones, also match the constant.</li><li><strong>Toroidal</strong>: Rows and columns wrap like a torus.</li><li><strong>Multiplication</strong>: Uses multiplication rather than addition to calculate the magic constant</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*lqdUscvE-C_I_vr0ErzgiA.png" /><figcaption>Example squares using multiplication rather than addition to calculate the magic constant</figcaption></figure><p>I was captivated by the idea of mixing different operators, but couldn’t find any existing sub-type that did so. That led me to experiment with designs in which each row, column, and diagonal formed a valid equation by threading mathematical operators between the cells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlrQm3ZIC_j9P_iKlggNww.png" /><figcaption>Rows and columns equal 9, (still working on diagonals and pretty messy)</figcaption></figure><p>I could then fill in the blanks with operators such that each diagonal also equaled the magic constant, although there is no such solution for the above example. I seemed to be in novel territory here, as I could find no defined name for such a puzzle (once I tweaked the algorithm to accommodate diagonals):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWWbJey_UI2kn2hoxtFUvA.png" /><figcaption>All 8 equations now equal 9, but it looks pretty bad, huh?</figcaption></figure><p>I was feeling a bit unsatisfied. The aesthetics of this were clunky at best, skipping rows and columns composed entirely or operators was inelegant — and I felt the constraint of a magic constant stifling. It felt an arbitrary loose screw in an otherwise cohesive structure. I wanted the puzzle to be entirely self contained and not limited by a single integer that all eight equations must equal.</p><p>To remedy this, I began playing with the idea of embedding the result of all eight equations inside the square itself, as a fluid component, rather than showing it outside the grid. I began including the equals symbol and the format began shifting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Jpad3p9CgO-8qxJG6l4RA.png" /><figcaption>No less aesthetically displeasing but definitely an improvement</figcaption></figure><p>This small design decision changed everything. The computed result was now part of the ecosystem of numbers in the grid, not an external constant outside the puzzle, and like Gardner’s observed generalization from earlier, there was an algebraic interdependency as the results of many equations are used in others <em>(the third column and row)</em>. I was building toward something new, and after months of tinkering, I arrived at a format that redefined what a magic square could be. The structure was this:</p><ul><li>Numbers <strong>and operators</strong> share the grid</li><li>All 8 equations (3 rows, 3 columns, 2 diagonals) must be <strong>valid</strong></li><li>The result of these equations are also <strong>inside</strong> the grid</li></ul><p>I had taken the ancient form of a magic square and reimagined it as a logic puzzle with arithmetic no longer being its only mechanic. I just had to fix the chaotic aesthetic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qmjIWAuUxF-JnQjXJekD2w.png" /><figcaption>The layout I decided on — while operators share the grid, they are spaced and sized to be distinct</figcaption></figure><p>Just as traditional magic squares become intriguing puzzles when certain numbers are omitted, I saw the potential to apply a similar idea to this new creation. But leaving cells blank felt too simple — too dull. So instead, I shuffled all the numbers, turning the challenge into a game of reordering them into the correct configuration. Sounds easy, right? Trust me, it’s not. After all, 9! equals 362,880 possible combinations.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FiKiZxnlcK68%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiKiZxnlcK68&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FiKiZxnlcK68%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/74a51350bae2c1ad2828bdaa92fdb232/href">https://medium.com/media/74a51350bae2c1ad2828bdaa92fdb232/href</a></iframe><p>Equate 8 is Sudoku meets algebra meets spatial logic and it’s the proud successor to <a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a> as our non-profit’s second math game.</p><p><a href="https://www.cinqmarsmedia.com/equate8/">Equate 8: Free Math Puzzle Game | Logic Puzzle Like Sudoku</a></p><p>Before I could build Equate 8, I first had to build an algorithm that could generate valid puzzles and at the time I had no idea how many existed (if any at all). I was able to amend the backtracking logic from earlier to make a program (this time in node.js) that would generate an exhaustive list of puzzles based on certain parameters. You can download that code <a href="https://gist.github.com/ccj242/e976281325a3e682fbf6bdf9f667cbf8">here</a> and see a snippet of the parameters below:</p><pre>let numLims=[1,9]; // Numbers allowed onthe grid<br>let minMaxUniqueNum=[7,9] // Set to 9,9 for no duplicates<br>let minMaxUniqueOp=[6,10] // Min/Max unique operators<br>let ops=[&quot;+&quot;,&quot;-&quot;,&quot;*&quot;,&quot;/&quot;,&quot;^&quot;,&quot;%&quot;] // Allowed Operators</pre><p>Observations for puzzles with integers <em>under 10 and greater than 1</em>:</p><ul><li><strong>0</strong> grids with no duplicate numbers and any operators.</li><li><strong>8</strong> grids with 1 duplicate number and any basic operators.</li><li><strong>143</strong> grids with 1 duplicate number and any operators. (including exponentiation and modulo)</li><li><strong>120</strong> grids with 1 duplicate number and any basic operators.</li><li><strong>2,288</strong> grids with 2 duplicate numbers and any operators.</li><li><strong>392</strong> grids with 1 duplicate number and any basic operators.</li><li><strong>17,678</strong> grids with at most 2 duplicate numbers and any operators.</li><li><strong>4</strong> grids with 1 duplicate number and <strong>all</strong> basic operators <em>[1]</em></li><li><strong>16 </strong>grids with at most 7 duplicate numbers and any <strong>1</strong> basic operator: <em>[2]</em></li><li><strong>16</strong> grids with at most 3 duplicate numbers and any <strong>1</strong> operator: <em>[3]</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sr2M9o2Ke0w1sVqoHAJb1g.png" /><figcaption>Grid Examples, [1], [2] and [3]</figcaption></figure><p>Observations for puzzles with integers <em>under 100 and greater than 1</em>:</p><ul><li><strong>0 </strong>grids with no duplicate numbers and any <strong>1</strong> unique operator.</li><li><strong>240</strong> grids with no duplicate numbers and any basic operators (<strong>38</strong> additional grids include exponentiation)</li><li><strong>151</strong> grids with no duplicate numbers and <strong>all</strong> basic operators <em>[4]</em></li><li><strong>15</strong> grids with no duplicate numbers and all basic operators along with exponentiation. <em>[5]</em></li><li><strong>2,129</strong> with 1 duplicate number and any basic operators</li><li><strong>266</strong> with 1 duplicate number and <strong>all</strong> basic operators</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSu7uREoLJN9DECzK98QCQ.png" /><figcaption>Grid Examples, [4] and [5]</figcaption></figure><p>Allowing duplicates significantly moderates the puzzle’s difficulty. Permitting just one duplicate reduces the number of possible grid combinations from 9! to 8! — an 88% reduction, resulting in <strong>medium</strong> difficulty. Introducing two duplicates narrows the field even further to just 6! combinations, or 5,040 in total, making for <strong>easy</strong> challenges. These difficulty levels reflect the nearly<strong> five thousand</strong> unique puzzles this algorithm has generated for the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2aGNYqWwT3bDLecS8Hycw.png" /></figure><p>Inventing Equate 8 has been one of the most creatively fulfilling projects I’ve undertaken. What started as a fascination with magic squares evolved into a deeper exploration of logic, programming, puzzle design, and user experience. Whether the result still qualifies as a true “magic square” is debatable — it reimagines the meaning of “balance” in the grid not as numerical equality, but as <strong>equational integrity</strong>.</p><p>Just as early mathematicians explored symmetry through sums, Equate 8 invites players to explore logic through spatial arithmetic. More than that, it reminded me that <strong>puzzles are a form of expression</strong>. They’re a language where rules and imagination meet.</p><p>I hope <strong>Equate 8</strong> does for others what magic squares once did for me: spark curiosity, challenge the mind, and inspire joy in the act of solving.</p><p>This article was the basis for a talk at the Museum of Mathematics 2025 MOVES conference and can be see here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4u4cxPKXdaA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4u4cxPKXdaA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4u4cxPKXdaA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6f3b63a30254d9b9474a8d8795d89653/href">https://medium.com/media/6f3b63a30254d9b9474a8d8795d89653/href</a></iframe><p>Read more about Equate 8 <a href="https://www.cinqmarsmedia.com/equate8/">here</a> &amp; download free for <a href="https://apps.apple.com/us/app/equate-8/id6738832528">iOS</a>, <a href="https://play.google.com/store/apps/details?id=com.cinqmarsmedia.equate8">Android</a> &amp; <a href="https://store.steampowered.com/app/3693730/Equate_8">Steam</a>.</p><p><a href="https://www.cinqmarsmedia.com/equate8/">Equate 8: Free Math Puzzle Game | Logic Puzzle Like Sudoku</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b7b731e4ae7" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/reinventing-magic-squares-equate-8-1b7b731e4ae7">Reinventing Magic Squares: The Math Puzzle Equate 8</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does Technical Analysis really work? I built a stock simulator game to find out]]></title>
            <link>https://blog.cinqmarsmedia.com/is-technical-analysis-stock-astrology-i-built-a-market-sim-game-to-find-out-a2a9902717a6?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2a9902717a6</guid>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[stock-simulation-games]]></category>
            <category><![CDATA[technical-analysis]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[simulation]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Sun, 18 Jun 2023 05:57:15 GMT</pubDate>
            <atom:updated>2023-06-19T09:54:09.204Z</atom:updated>
            <content:encoded><![CDATA[<p>My mother was ranked in the Barron’s top 100 several times throughout her brokerage career. Her success came both from an intuition bred from a lifetime of experience with the market and a strict adherence to fundamental trading. Fundamental trading is what comes to mind when most people think of investing: evaluate the intrinsic value of a security within the context of the current economic and political climate — who or what is leveraged to benefit from what we can anticipate coming around the bend, along with underlying financials. For a long time, I believed this to be the only approach one could take towards trading, until I learned about something magical called Technical Analysis.</p><blockquote>Technical analysis is a trading discipline employed to evaluate investments and identify trading opportunities in price trends and patterns seen on charts. (It supposes) past trading activity and price changes of a security are valuable indicators of the security’s future price movements. — Investopedia</blockquote><p>In stark contrast to fundamental analysis, technical analysts believe they can predict future price movement based on numeric patterns in historical data. As a math and puzzle enthusiast this idea particularly fascinated me. The notion that there can exist some formula or algorithm that optimizes market returns using only historic price data feels like modern-day alchemy. Magic, even.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fC0j2kweS3B8EH0CemGAEQ.jpeg" /><figcaption>Ever wonder what all these weird stock charts were? Technical Indicators.</figcaption></figure><p>A cursory google search showed just how divisive technical analysis can be. Some claim using historic data on trends to predict future price action is analogous to using the stars above to predict the future, dismissing the practice as nothing more than ‘stock astrology’. (not <em>literal</em> ‘stock astrology’, which is amazingly a real thing some people believe) So is technical analysis BS or a worthwhile tool? I decided to do a little experiment.</p><p>I lead a modest non-profit that makes educational video games — most deal with some form of pattern recognition and the reverse engineering of those patterns. A good example is our game, <a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a>, a Webby award winner and one of the top 10 indie games of 2019 as named by PAX . In the game, players use a calculator with unknown functions they must solve through interpolation. It occurred to me that this same gameplay could be applied to a stock trading simulation game, letting the player use technical analysis concepts to try and find the perfect algorithm to beat the market.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGNbWApp3VYs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGNbWApp3VYs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGNbWApp3VYs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dac92da0c341a2760ce908934f28995e/href">https://medium.com/media/dac92da0c341a2760ce908934f28995e/href</a></iframe><p>In <a href="https://store.steampowered.com/app/1899350/Trade_Bots_A_Technical_Analysis_Simulation/">Trade Bots</a>, our new trading simulation game on steam, players begin at a random time in history (that they are blind to), along with an unknown asset (stock, crypto, etf). Using only technical indicators and pattern recognition, they make trades to raise their net worth and work their way up an elaborate upgrade tree that culminates in the creation of extremely sophisticated trading bots.</p><p>These bots require no programming experience whatsoever and are made using an intuitive and simple node-based logic flow UI. With this system, players can create bots of theoretically infinite complexity, even incorporating machine learning and neural network AIs they train from within the simulation. These bots can make trades on up to 2,000 ticks of data per second on newer hardware, allowing players to test their algorithm on hundreds of stocks per minute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZx-fBo1v6qeUKFFGWaBZA.png" /><figcaption>A bot named “Robin” built by one of our early users (detorum) that performed remarkably well in backtesting tests, better than anything I came up with In my two years of development.</figcaption></figure><p>So what are the results of our little experiment? By blinding players from knowing the date, price and name of the asset they are trading, we effectively control for these variables that fall under the umbrella of fundamentals. Algorithms designed by the community consistently out-perform the market historically. Both seem to suggest that Technical Analysis is the real deal, but there’s a problem of semantics we must contend with.</p><p>I would come to learn with <a href="https://store.steampowered.com/app/1899350/Trade_Bots_A_Technical_Analysis_Simulation/">Trade Bots</a> that I essentially gamified a process known as ‘backtesting’ in economics, where you test a trading strategy against historic data with the presumption that it will be useful to predict future price action. This is actually considered to be less technical analysis and more something called “quantitative analysis”. Many people use these terms interchangeably, though <a href="https://www.investopedia.com/ask/answers/050515/it-better-use-fundamental-analysis-technical-analysis-or-quantitative-analysis-evaluate-longterm.asp">investopedia</a> makes their differences more clear.</p><p>Having invested two years in a gaming experiment to find out whether technical analysis has merit, you might be surprised to learn that I now do not believe technical analysis in and of itself is a terribly effective tool at predicting future market trends. That being said, I strongly believe quantitative analysis <em>is</em>. You may then ask — why is your game’s subtitle “A <em>technical</em> analysis simulation and learning game”?</p><p><a href="https://store.steampowered.com/app/1899350/Trade_Bots_A_Technical_Analysis_Simulation/">Trade Bots: A Technical Analysis Simulation on Steam</a></p><p>In order to gamify an extremely cerebral and erudite subject like quantitative analysis, easing players into the simulation is essential. The idle game model fits this like a glove, — players take shots in the dark, they get further up the upgrade tree, and learn basic technical analysis concepts including technical indicators and how they function. Having this foundation of understanding is essential before diving into quantitative analysis, backtesting and algorithmic trading as it allows players to test for themselves if any trading strategy they develop based solely on technicals actually works.</p><p>Even within our own development team, this strategy has been controversial and I encourage anyone with differing viewpoints to comment and engage in lively discussion with us as we have done both in our <a href="https://discord.gg/9xgC2hv35F">discord server</a> and our <a href="https://steamcommunity.com/app/1899350">steam community</a>. In fact, as a subtle nod to this controversy, advanced players will notice that the subtitle in the game will change to “ Trade Bots: A <em>Quantitative</em> Analysis Simulation Game” once the upgrade tree is surmounted.</p><p>To summarize my view, Technical Analysis is valuable tool in the context of Quantitative Analysis, and the danger comes when people believe that, on its own, it is capable of alchemy. That being said, we encourage you to decide for yourself and try the <a href="https://store.steampowered.com/app/1899350/Trade_Bots_A_Technical_Analysis_Simulation/">free demo</a> of Trade Bots on <a href="https://store.steampowered.com/app/1899350/Trade_Bots_A_Technical_Analysis_Simulation/">Steam</a> and <a href="https://cinqmarsmedia.itch.io/tradebots">itch.io</a>.</p><p>Cinq-Mars Media is a 501(c)3 non-profit devoted to education through technology and gaming. Read more about our organization below.</p><p><a href="https://www.cinqmarsmedia.com/">Cinq-Mars Media | Steam Indie Games | Non-Profit Education Games Technology Software</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2a9902717a6" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/is-technical-analysis-stock-astrology-i-built-a-market-sim-game-to-find-out-a2a9902717a6">Does Technical Analysis really work? I built a stock simulator game to find out</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Copy Editor: Answer/Star Guide]]></title>
            <link>https://blog.cinqmarsmedia.com/copy-editor-answer-star-guide-b47d1f06e663?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/b47d1f06e663</guid>
            <category><![CDATA[game-guide]]></category>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[steam]]></category>
            <category><![CDATA[regex]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Wed, 22 Sep 2021 11:16:51 GMT</pubDate>
            <atom:updated>2024-10-22T07:17:28.190Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><strong><em>* SPOILERS **</em></strong><em> This contains solutions for all levels in the game.</em></li><li>Updated for version 1.5 and the two new levels in this release.</li><li><em>Skipping levels is not officially supported, but if it is attempted three times, the ability becomes unlocked (must repeat each time).</em></li><li><em>I am by no means an expert on RegEx, I’m sure there are more elegant and optimized solutions to those below and I’m excited to hear about what everyone comes up with!</em></li></ul><p>Levels: <a href="#f941">5–10</a>, <a href="#2f99">11–15</a>, <a href="#e07a">16–20</a>, <a href="#686d">21–25</a>, <a href="#d50a">26–30</a>, <a href="#9bc6">31–35</a>, <a href="#1f30">36–40</a>, <a href="#3b30">41–45</a></p><h4>Level 1: What the Dickens?</h4><p>This level introduces the player to the primary find/replace mechanics of the game along with one regex token, the matching of a space using “<strong><em>\s</em></strong><em>”. Use this token with “</em><strong><em>is</em></strong><em>” to avoid matching substrings, i.e. “fool</em><strong><em>is</em></strong><em>hness”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GesUJUx0l2SFPXgMxo8qGw.jpeg" /></figure><p>Later on, when you learn the “<strong><em>\b</em></strong><em>” token, you can save one character, the space in the replace field next to “was”. This will get your char total to 21 and get you all three stars.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uTaoVBSQ9kULmcpq20mlBA.jpeg" /></figure><h4>Level 2: Forward March</h4><p>This level reinforces the concept of using “<strong>\s</strong>”and replacing spaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJ7RDiFUbxbUb7Z0vV4ujw.jpeg" /></figure><p>Once you learn about match groups, capturing and \b, you can consolidate rules and find a solution with 40 chars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f1-0EJ8r55y562sCXvr5Ng.jpeg" /></figure><h4>Level 3: Let There Be Light</h4><p>This level introduces the second regex token, \d, which matches a digit in the same way \s matches a space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99tLchqJ-TplFFNjevMEiw.jpeg" /></figure><p>Once you discover ? and +, you can optimize the following way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*onzAJhW1hcvB74KNwOHbFA.jpeg" /></figure><h4>Level 4: Wherefore Art Thou</h4><p>This level is much more of a logic challenge, as no regex tokens are needed for a solution. It requires substituting a name with a placeholder, which you then overwrite later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G07tHra2h5-T5e6DYUgbFA.jpeg" /></figure><p>An optimized solution is below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdOCDRulk23dxT2tpAv6uQ.jpeg" /></figure><h4>Level 5: The ASCII to my Heart</h4><p>The challenge here is matching multiple tokens in succession, in this case, \s, in order to repair the “heart”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XKGd55YalqDd5bXJrx2Vg.jpeg" /></figure><p>Once you discover {} and | you can optimize the solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qsTLFbrdAUYCTCBQGhk-aQ.jpeg" /></figure><h4>Level 6: Veni Vidi Vici</h4><p>This level is rather straightforward but for the “corruption” of your keys being subjected to the cipher in question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNLjCvsKurccmOff7bEThA.jpeg" /></figure><p>It can be optimized by tinkering with it in this way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LkR2kuUeITfvQt3qBOVaA.jpeg" /></figure><h4>Level 7: Sentimental Education</h4><p>This challenge introduces the concept of <strong>\b</strong> and how it is distinct from <strong>\s</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjqND_oSc2kofSaqwr6C9Q.jpeg" /></figure><p>Once capture groups and match groups are discovered, along with |, the solution can be consolidated to 5 rules and 81 characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biaVW7oc1ZN7sJs4DGnMdw.jpeg" /></figure><h4>Level 8: A CApitAl Offense</h4><p>Here, we learn that by capitalizing the letter of the tokens we’ve learned so far, we can match their NOT counterpart. i.e. \S matches anything that is NOT a whitespace and \D matches anything that is NOT a digit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7l_IoU8tQaLjWMz_YVFsOA.jpeg" /></figure><p>Once capture groups are learned along with |, char count and rule count can be optimized in the following ways respectively:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oc5e6hCdc96S_cbTS2HFwA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAmkVvyy1Y7fmbdNXtS17A.jpeg" /></figure><h4>Level 9: Love Thy Neighbor</h4><p>Here, we reinforce the NOT concept</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzGZufnyLcI5nmgCg_r9ow.jpeg" /></figure><p>and capture groups along with match groups can optimize the solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQ9SiKXK1UDNqOcs2Xdtpg.jpeg" /></figure><h4>Level 10: Hugs &amp; Kisses</h4><p>An introduction to the <strong>? </strong>token, an optional match of the previous character:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wAtQPq52mZgF4pO0SIkYFQ.jpeg" /></figure><p>And can be optimized once <strong>+</strong> and <strong>.</strong> are uncovered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDX-7oj9ErMZ2jngI4ZX-g.jpeg" /></figure><h4>Level 11: Cholesterol Catastrophe</h4><p>It can be a bit tricky, but using your new <strong>?</strong> token and everything you’ve learned up till now, a valid solution might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiEQvPtbn-JzYb2DJl_yAg.jpeg" /></figure><p>Match groups and <strong>*</strong> will help you optimize a solution like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jB1a0wNLY5zmwIf1qwTitQ.jpeg" /></figure><h4>Level 12: Sticky Situation</h4><p>Here we are introduced to the <strong>+</strong> token, which matches an unlimited number of the previous token. Use it in this way to remove the extra letters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncBPtX85NTP64tZMtqI1rg.jpeg" /></figure><p>Once more tokens have been discovered, the following strategy will earn all three stars:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uW_0666C08m6Gae76kVviA.jpeg" /></figure><h4>Level 13: No Notes!</h4><p>Making tokens literal is big part of regex, do this for the parentheses in this way to earn a star:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDeqeDsS-rndtJDiLJxPqQ.jpeg" /></figure><p>Save one additional character when learning the <strong>.</strong> token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rwNWui-PPlmnrq4XTYv-g.jpeg" /></figure><h4>Level 14: Corruption Malfunction</h4><p>By using the | (or) token, you can string together multiple logical operations like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eC9OncA_U-TnrGT_fOR6hQ.jpeg" /></figure><p>Use capture groups to optimize:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OD6FAmuMujfgVk_bGRql8w.jpeg" /></figure><h4>Level 15: Suffix Fools Gladly</h4><p>Capture groups are perhaps the most essential concept in the game and this level introduces them. Once discovered, the star progression gets more difficult requiring players to return to previous levels to optimize their solutions with the new tokens they’ve learned about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xk2UnWr6E_idUNzr8Vs3Dg.jpeg" /></figure><p>Some tinkering with existing concepts can optimize a solution for this puzzle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zv1eI5yIb8spO6CzR4k7Mw.jpeg" /></figure><h4>Level 16: ssA Backwards</h4><p>Further reinforcement of capture groups, reshuffle the order of the words:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UHINMhvH897fZU6Oars4Xg.jpeg" /></figure><p>And save characters by using <strong>.</strong> when discovered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m-VA5LvH8nnBsXGezsePQQ.jpeg" /></figure><h4>Level 17: Oxford Coma</h4><p>Further reinforcement of capture groups, can be optimized without later concepts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyPedkVK3Am91IFrm4UVhw.jpeg" /></figure><h4>Level 18: The Devil’s Calculator</h4><p>Cholesterol Catastrophe part II, extending numeral processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PXhjZFJDxA8mjOSDrnpDyg.jpeg" /></figure><p>The following solution can reduce the solution to 4 rules and 48 chars once $ has been understood:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdODL78d1AQJdZMwPmmgQA.jpeg" /></figure><h4>Level 19: ………………</h4><p>And introduction to the <strong>.</strong> token, a wildcard that matches any character. No later concepts needed to optimize:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3t6e1qqEZ9pg9KqoRCiAQ.jpeg" /></figure><h4>Level 20: Alpha &amp; Omega</h4><p>The <strong>^</strong> and <strong>$</strong> tokens match the beginning and end of texts respectively. Use them to shuffle the paragraphs and solve the puzzle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJB7sUG9LTQjgsfOv0G6Aw.jpeg" /></figure><p>Quantifiers <strong>{}</strong>, when discovered, will allow you to cut down on some characters and rules:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yltTRBLO5TBIwuu_ibW3tw.jpeg" /></figure><h4>Level 21: Aye Before E</h4><p>In this level, we learn about another of the most important concepts in RegEx, match groups <strong>[]</strong>. This capability will enable you to go back and optimize many older solutions. ** NOTE: As some users have pointed out, [A-z] also matches[, \, ], ^, _, and `, use [a-zA-Z] to ignore those characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XWI1yPoAdfI_r5tQ8Ri2ag.jpeg" /></figure><h4>Level 22: Contraction Action</h4><p>Here we reinforce the concept of match groups. An optimized solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WB87wo-4XzWZE81KWZKM6Q.jpeg" /></figure><h4>Level 23: Nag a Ram</h4><p>The<strong> {</strong>X<strong>}</strong> token is introduced where we specify the number of occurrences (x) for the proceeding match, or a range <strong>{</strong>X,Y<strong>}</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mFOo1DSWAcbpK02Z9zSWsg.jpeg" /></figure><h4>Level 24: Eek!</h4><p>The token * is very similar to <strong>+</strong>but can match 0 occurrences of the proceeding character as well. This puzzle demonstrates how that might be useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OlD_AACzSoc0CEpB59Giw.jpeg" /></figure><h4>Level 25: Possessive Problems</h4><p>We reinforce many of the recently learned tokens in a slightly more complex challenge, once <strong>[^] </strong>is learned, a few trivial characters can be shaved off to optimize the solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nN36nrAQHXGq2YZNXLEphA.jpeg" /></figure><h4>Level 26: Impluralusable</h4><p>We continue to reinforce the recently learned tokens and see how using them together can escalate difficulty. No later concepts needed to optimize:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zBvONBcBdDLKLAY7jRLLiw.jpeg" /></figure><h4>Level 27: Unfordeliverable</h4><p>We are finally introduced to the <strong>\n</strong> token, that matches a newline/return. This is one of the more practical levels in the game, but note that it is a simplified case — real regex email validation is much more complicated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KO_BFZSdiOs6b9Em9oY87Q.jpeg" /></figure><h4>Level 28: Mother’s Day Rex</h4><p>Reinforcement of \n and combining use of many concepts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AuoOVTK0DxU9VAohy9GUmw.jpeg" /></figure><h4>Level 29: Baby Shark</h4><p>A silly little level where you really need to get creative to get the input to match the output and save on any extraneous characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vyuxmVoBgA28Jw4RINs8yw.jpeg" /></figure><h4>Level 30: Gi-bb4&#39;2ero%ish</h4><p>An escalation of difficulty where many of the previously introduced concepts must be used in tandem with one another</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*105j1Cglyo05U_mHdnRCTg.jpeg" /></figure><h4>Level 31: Just FENtastic</h4><p>This requires some understanding of what FENs are and how they’re formatted. While it may seem daunting, it’s really just a matter of understanding that some board positions in chess are impossible. You can’t have two Kings, nor can you have more than 8 pieces in a single row or column (because chess is played on an 8x8 board).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YL56QLPdAsi80Z3l9OME2A.jpeg" /></figure><h4>Level 32: Consonant Consequences</h4><p>Here we’re introduced to <strong>[^], </strong>not to be confused with the beginning token, this makes anything inside the capture group, match negatively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xKEwx__48ErHS2-Co6tWQ.jpeg" /></figure><h4>Level 33: Space Barbs</h4><p>Here we realize that the <strong>\s</strong> token didn’t really match whitespaces alone all along, but also newlines. Some players were upset that this wasn’t explained at the outset, but we felt it was better to let the player’s understanding of <strong>\s</strong> evolve rather than throw that complexity at them from the start of the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hpJO7YrP9-r5B3dCN_knzg.jpeg" /></figure><h4>Level 34: Deduplicitous</h4><p>Here’s where the game kicks into another gear. Backreferencing was always the concept I was most excited about integrating into the game because it opens up such a world of possibility. The idea is that by using <strong>\1</strong> within the find input, you can self-reference the first capture group in that same input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAGPg14MwVFZtRafX9EL5g.jpeg" /></figure><h4>Level 35: Do Geese See God?</h4><p>We continue to escalate the complexity of backreferencing by showing you can use it with multiple capture groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NIH7MOE4d-fotFokmGs2Sg.jpeg" /></figure><h4>Level 36: Alliterate Illiterate</h4><p>We combine backreferencing with more complex concepts previously learned</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CsZMCexi-OFBeAoIB6WnQ.jpeg" /></figure><h4>Level 37: Walt’s Fault</h4><p>My favorite level, I think. I’m not sure why. Expanding backreference possibilities and complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6RnJ0d2Pe4hQj0QATCehbw.jpeg" /></figure><h4>Level 38: Spaced Out</h4><p>The most difficult and tedious use of backreferencing with older concepts yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htL7rg-AI79iHUQNFI2Veg.jpeg" /></figure><h4>Level 39: Ohh Baby!</h4><p>Lookaheads add a whole new dimension to Copy Editor, and we weren’t originally sure whether we’d add them in the game. A positive lookahead requires its contents to follow the previous expression, without actually matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-mmr5iOi8dwwij5reHLTQ.jpeg" /></figure><h4>Level 40: Comma Chameleon</h4><p>Reinforcing the concept of positive lookaheads and having to deal with the not adding commas after decimal points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqQpIe5xkE6imvIl0ZzdDA.jpeg" /></figure><p>This can be solved more elegantly and efficiently once you learn about negative lookaheads, combining both positive and negative:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBVZzqbvOQGDr_2iREagvw.jpeg" /></figure><h4>Level 41: Love &amp; Laughter</h4><p>Same idea as positive lookaheads, but negative, requires content to precede without actually matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fK_aFP8T634fYZM8W53pjQ.jpeg" /></figure><h4>Level 42: Replication Admiration</h4><p>A complex escalation of lookaheads and backreferences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Yf_cRWnSrcBnay_3XzQ5A.jpeg" /></figure><h4>Level 43: Color Me Confused</h4><p>Condenses much of what you’ve learned up to this point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LORuXqy40uIXT9ernbhVAg.jpeg" /></figure><h4>Level 44: Prime ttttttttime</h4><p>This one is a doozy. I’ve been wanting to integrate this for awhile, ever since I read about it <a href="https://stackoverflow.com/questions/3296050/how-does-this-regex-find-primes">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wF1iCOyhSS0MQCSaYe_2dA.jpeg" /></figure><h4>Level 45: Pseudo-ku</h4><p>To celebrate the release of our new game, CrossAbout, we wanted to add a new level teasing an upcoming game of ours! We felt we had to try and exceed the difficulty of the last level (no easy task) so our journey of scouring the internet for devilish regex puzzles took us <a href="https://codegolf.stackexchange.com/questions/78210/regex-golf-verify-a-sudoku-solution">here</a>.</p><pre>/^(?=((?=.{0,8}1)(?=.{0,8}2)(?=.{0,8}3)(?=.{0,8}4)(?=.{0,8}5)(?=.{0,8}6)(?=.{0,8}7)(?=.{0,8}8)(?=.{0,8}9).{9})+$)(?=((?=(.{9}){0,8}1)(?=(.{9}){0,8}2)(?=(.{9}){0,8}3)(?=(.{9}){0,8}4)(?=(.{9}){0,8}5)(?=(.{9}){0,8}6)(?=(.{9}){0,8}7)(?=(.{9}){0,8}8)(?=(.{9}){0,8}9).){9})(((?=.?.?(.{9}){0,2}1)(?=.?.?(.{9}){0,2}2)(?=.?.?(.{9}){0,2}3)(?=.?.?(.{9}){0,2}4)(?=.?.?(.{9}){0,2}5)(?=.?.?(.{9}){0,2}6)(?=.?.?(.{9}){0,2}7)(?=.?.?(.{9}){0,2}8)(?=.?.?(.{9}){0,2}9)...){3}.{18})+$/</pre><p><strong><em>We are hoping to include guest puzzles in the future; if you would like to contribute, please contact us at info@cinqmarsmedia.org. Look for more levels to be released in the future and thank you for all your support and feedback!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b47d1f06e663" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/copy-editor-answer-star-guide-b47d1f06e663">Copy Editor: Answer/Star Guide</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Impartiality in Politics: An Analysis of iSideWith.com’s Popular Quiz]]></title>
            <link>https://blog.cinqmarsmedia.com/impartiality-in-politics-an-analysis-of-isidewith-coms-popular-quiz-bb6c9f4a8d3a?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb6c9f4a8d3a</guid>
            <category><![CDATA[political-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[partisanship]]></category>
            <category><![CDATA[bias]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 09:36:56 GMT</pubDate>
            <atom:updated>2019-12-19T09:40:26.297Z</atom:updated>
            <content:encoded><![CDATA[<p>The popular political quiz website iSideWith.com, created by <a href="https://medium.com/u/1f5e51c44f66">Taylor Peck</a> and <a href="https://medium.com/u/decfe7f06e0c">Nick Boutelier</a>, boasts that more than 53 million voters have used their tool to find a candidate or party affiliation. Visitors can fill out over a hundred yes-no questions on their political stances that will then match them with candidate and party positions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7FFR2E9HWz3p84FYJiUfg.jpeg" /><figcaption>Example of Quiz Results from iSideWith.com</figcaption></figure><p>It’s a clever way to encourage clinical politics — divorcing emotions and identifying with candidates purely on principles and policy. Having to gather my thoughts to fill out the questions was rewarding in its own right — and I encourage those who might be interested to <a href="https://www.isidewith.com/">try it</a> (<em>I see it as an especially helpful tool for lower-level elections</em>). What fascinates me about the site, however, is not so much its conceit, but rather its claim to be “nonpartisan” and impartial.</p><p>The ideal of impartiality is evasive when it comes to politics. One of my non-profit’s first projects, a <a href="https://blog.cinqmarsmedia.com/how-gaming-can-save-us-from-our-apathy-cee34578b9e4">video game about misinformation</a> we did in partnership with the Pulitzer Prize winning organization <a href="https://medium.com/u/e2c91a75057f">PolitiFact</a>, aspires to this ideal. Described by some as “Tinder for fake news”, you’re presented with a statement made by a politician and asked to swipe left if you believe it is factually inaccurate or right if you believe the claim has verity. Like iSideWith.com, the questions are dichotomous, binary, true or false, yes or no — and while that may sound simple enough, I can attest that more time was spent building bots to play my game randomly or semi-randomly to capture invisible and subconscious bias than was spent programming the game itself.</p><p><a href="https://blog.cinqmarsmedia.com/how-gaming-can-save-us-from-our-apathy-cee34578b9e4">How Gamification Can Save us from Apathy and how to “game for good”</a></p><p>To this end, I thought it would be interesting to subject iSideWith.com’s popular quiz to one of the most basic of these tests, not because I believe they are acting in bad faith or pursuing a partisan agenda, but rather because having worked on something vaguely similar, I am floored by the logistical magnitude of how one would design such a quiz around minimizing intractable bias.</p><p>So first let us run a simple experiment. If you recall from above, results in the quiz return a percent match with each candidate, 0–100%. I submit that if the quiz were truly nonpartisan and impartial in the ideal sense, the following statement would be true:</p><blockquote>If all of the yes-no questions are filled out randomly, no one candidate would have a statistically significant advantage over another.</blockquote><p>This seems reasonable, however, we will need to repeat the test many thousands of times to ensure any differences are not a result of chance and chance alone. For this, I created a short bookmarklet, a way to quickly inject javascript into a page client-side. This code is below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a03e78e80c1e5975f98ad64cc4967874/href">https://medium.com/media/a03e78e80c1e5975f98ad64cc4967874/href</a></iframe><p>It simply exposes all of the questions in the quiz and fills them out randomly. Out of respect for iSideWith.com I will not document how I used this in tandem with a web scraper to repeat many thousands of times, as I don’t wish for their servers to be overburdened, but if you’re curious about the process for another project you have in mind, feel free to DM me. I will also mention I was careful to only use one ID the whole time so that their metrics were unaffected (equivalent to re-taking the quiz and and changing the answers). Here is the <a href="http://cinqmarsmedia.com/politifact/iSideWith.xlsx">raw data in excel</a> with almost 3000 results, and embedded below, the averages and standard deviations for each candidate and party affiliation:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f7153891c2a5385da993c67558a7625/href">https://medium.com/media/1f7153891c2a5385da993c67558a7625/href</a></iframe><p>The first thing I noticed was that all candidates (except for Marianne Williamson, more on her later) are over 50% and very significantly so,- given the nature of the quiz I expected all the candidates to converge toward 50%, but this overage may actually be an indication of iSideWith attempting to correct biases. In my own little thought experiment of how I might approach building the mechanics of the quiz, a consideration I had was to just repeat our random test many hundreds of thousands of times, and then artificially compensate a candidate’s match percentage globally for whatever the differences were. You wouldn’t necessarily want the added complication of lowering other candidate’s scores around each adjustment, so this methodology could explain why the averages are so much higher than 50%.</p><p>First thing first, we don’t need a t-test to see that the differences between democrats and republicans aren’t significant. This is truly impressive given the fact that with a republican incumbent, you have many more, and much more diverse, democratic candidates on the ballot. Next, we’ll do a simple ANOVA:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/98bfce319b2aebf0e594dcaf2d15bf51/href">https://medium.com/media/98bfce319b2aebf0e594dcaf2d15bf51/href</a></iframe><p>While there is some variation, only two results stand out to me as being significant. T-tests between each candidate’s average and the global average reveal the following disadvantages are statistically remarkable: Andrew Yang whose two-tailed P-value is about 0.0111, and Marianne Williamson whose two-tailed P-value is a exceptional 0.0001. To say this another way, the chance that Williamson’s “disadvantage” here is fair and only a result of chance is less than .01%. Still, take this with a grain of salt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*IgmbwlLTYwpIdvV5wbg3eA.png" /><figcaption>The always wonderful xkcd</figcaption></figure><p>All in all, these discrepancies are relatively nit-picky and the consistency of the results both surprised and heartened me. I also imagine that the resulting percentage we get is rounded (and understandably so), adding to overall error. I repeated the test (with a smaller sample size of around 1,000) for the 2016 election and found no significant differences between candidates (other than a slight advantage to Jill Stein that was barely statistically relevant). I should also mention I noticed that both Donald Trump and Gary Johnson’s scores (candidates who are involved in both the 2016 and 2020 elections) were slightly different between the 2016 and 2020 quizzes with the same questions filled out, which may further support the possibility that there is a behind-the-scenes biasing mechanism in place to balance all the candidates.</p><p>As sensible as this seems, one must also ask the more fundamental question of whether this balancing act is, in fact, an act of partiality in itself. Perhaps the initial hypothesis put forth, that purely random answers should generate perfectly representative results across the board, is a flawed foundation since it presupposes all questions should equally represent all candidate’s positions.</p><p>I know what you’re thinking — wait, isn’t that the whole point? Isn’t that the very definition of being impartial and why you ran this little experiment? Well, if you’ll permit me a gratuitous example, suppose someone were to run for president with objectively revolting policies — eating puppies, let’s say. Is it then incumbent on iSideWith, and us as a nation in general, to tip the scales in the name of nonpartisanship to grant this candidate a platform mathematically equivalent to that of the rest of the field? If Marianne Williamson is, in fact, objectively disadvantaged as seen in our little experiment, couldn’t that result, in theory, be entirely reasonable and not evidence of bias in the least?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qPVC65da2VUM5Y9FHPZfQ.jpeg" /></figure><p>I would argue that instead of expecting questions to represent all candidates positions fairly, equally representing topics that Americans find relevant according to recent polls, or even relativizing the representation of a candidate’s position by their current polling numbers would be effective alternatives, albeit sadly impractical in today’s political climate. Imagine the scandal, if, say, the results above showed a significant p-value that Trump was disadvantaged. I’m just as guilty — I was myself salivating to find some discordance in the results of this modest little experiment until I found the results almost suspiciously equitable.</p><p>The balancing and counter-biasing mechanisms I used to adjust my <a href="http://cinqmarsmedia.com/politifact/">PolitiFact Game</a> and the similar methods I <strong>suspect </strong><em>(again, I do not know, but the results of a sophisticated relational database are rarely that neat in my experience) </em>were in some way utilized in iSideWith’s true or false quiz are important and useful, but I worry we may be letting our fear of being perceived as bias compromise some degree of journalistic and scientific integrity. I know for myself, I consciously implemented these measures partially to better defend against inevitable accusations of bias and partisanship. Despite the (undeserved) accusations of its left-leaning bias, I think an argument can be made that <a href="https://medium.com/u/e2c91a75057f">PolitiFact</a> possess, if anything, a conservative bias simply because they want so badly to defend themselves against attacks on their legitimacy. It’s natural to imagine how this fear could weigh heavily and influence how they curate content.</p><p>There are those who say that bias and subjectivity, especially of the political variety, is unavoidable — that we are compelled by our nature towards partiality. While this may be true in some abstract sense, I’ve witnessed too many lazily embrace this notion without any careful consideration for what <em>should</em> constitute journalistic and scientific bias, even in something as simple as a binary quiz. And whether you agree, I hope you’ll at the very least acknowledge that it’s never quite as simple as true or false.</p><p><em>I am in no way affiliated with iSideWith.com. I hope they’re not upset with me for scraping some of their data.</em></p><p><a href="https://blog.cinqmarsmedia.com/true-synonymy-in-the-english-language-the-relationship-of-words-to-each-other-9ab1006f3715">What a Synonym is and how Languages Shape their Meaning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb6c9f4a8d3a" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/impartiality-in-politics-an-analysis-of-isidewith-coms-popular-quiz-bb6c9f4a8d3a">Impartiality in Politics: An Analysis of iSideWith.com’s Popular Quiz</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Math Puzzles and Logic Games Can Survive Martin Gardner]]></title>
            <link>https://blog.cinqmarsmedia.com/math-puzzles-and-logic-games-can-survive-martin-gardner-c5175385a422?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5175385a422</guid>
            <category><![CDATA[puzzle]]></category>
            <category><![CDATA[mathematics-education]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[math-games]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 21:53:06 GMT</pubDate>
            <atom:updated>2019-10-15T07:12:32.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Great Math Puzzles and Logic Games Can Survive Martin Gardner</h3><p>Unlike most, math was always my favorite subject in school. For the longest time, I didn’t understand the negative clichés surrounding it — a comedian would do a self-depricating bit about how bad they were at geometry, or a friend would traumatically reminisce about their calculus class, and I would smile, nod and fake like I knew why. Well now I know why. It’s simply because they were never introduced to Martin Gardner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*Z6Vu8b28md7dO4CmV_dy-A.jpeg" /><figcaption>One of Martin Gardner’s THOUSANDS of puzzles</figcaption></figure><p>That anyone would not have heard of this man was unfathomable to me, as his math puzzles were so instrumental in cultivating my love for mathematics and game theory. I implore those who don’t yet know him to read his many contributions to <a href="https://medium.com/u/34faca88e257">Scientific American</a> and any of his countless puzzle books. (<a href="https://medium.com/u/ec1538004a25">The Guardian</a> has a great introduction <a href="https://www.theguardian.com/science/alexs-adventures-in-numberland/2014/oct/21/martin-gardner-mathematical-puzzles-birthday">here</a>, given by Alex Bellos, an excellent puzzle designer in his own right)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*BclfaN8t5CauZHHvU9-65Q.png" /><figcaption>You are to make one cut (or draw one line) — of course it needn’t be straight — that will divide the figure into two identical parts (see <a href="https://www.theguardian.com/science/alexs-adventures-in-numberland/2014/oct/21/martin-gardner-mathematical-puzzles-birthday">link</a> above)</figcaption></figure><p>When I made my first game, <a href="http://synonymy-game.com/">Synonymy</a>, I had the privilege of having the project narrated by <a href="https://medium.com/u/1808bec34000">Richard Dawkins</a>, whose writings had shaped my love of words, thereby inspiring the project. As I began work on <a href="http://cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a>, my newly released Math Puzzle game — and in many ways, <a href="http://synonymy-game.com/">Synonymy’s</a> spiritual successor — I soberly realized I could not similarly share the undertaking with the one man responsible for inspiring my passion for math.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*ooRiOR8UFCCt7dMG1lCohA.jpeg" /></figure><p>Fortunately, many have taken it upon themselves to contribute new math puzzles since Gardner’s posthumous autobiography published in 2014. Several are uninspired, others are derivations of Gardner (which can’t be all bad), but some manage to distinguish themselves remarkably. The aforementioned <a href="http://www.alexbellos.com/writer/">Alex Bellos</a> is uniquely gifted in the art of storytelling and puzzle design (“<a href="https://www.amazon.co.uk/Puzzle-Ninja-Against-Japanese-Masters/dp/1783351365/ref=as_li_ss_tl?ie=UTF8&amp;linkCode=sl1&amp;tag=alebel-21&amp;linkId=45257816ae0d262e00cac06926dd50b1">Puzzle Ninja</a>” and “<a href="https://www.amazon.co.uk/Can-You-Solve-Problems-perplexing/dp/1783351144/ref=as_li_ss_tl?ie=UTF8&amp;linkCode=sl1&amp;tag=alebel-21&amp;linkId=dc491719893c1fa7e35457f79a9a21cf">Can You Solve My Problems</a>?” stand out), as is Presh Talwalkar, curator of the popular YouTube channel “<a href="https://www.youtube.com/channel/UCHnj59g7jezwTy5GeL8EA_g">MindYourDecisions</a>” and author of “<a href="https://www.amazon.com/Math-Puzzles-Counting-Geometry-Probability/dp/1517421624?pldnSite=1">MathPuzzles</a>”.</p><blockquote>“one thousand years ago the main role of mathematics — with the exception of dull commercial tasks like counting and measuring — was to provide intellectual diversion and amusement.” ― Alex Bellos, “Can You Solve My Problems”</blockquote><p>My own attempt to follow suit takes the form of a video game, a collaboration with <a href="https://medium.com/u/35db73904f76">Wolfram</a> called <a href="http://cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a>. I knew from the start I wanted to make a game of interpolation, in which players were presented a mystery function that required them to work backwards. For cohesion, I wanted the same integer to resulting calculation for each level, while the content of the mystery function(s) would change — and the most memorable number for the math layman is assuredly 666.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUkZqFtYtqaI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUkZqFtYtqaI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUkZqFtYtqaI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8052695f7e41e3013da17e3848721653/href">https://medium.com/media/8052695f7e41e3013da17e3848721653/href</a></iframe><p><a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a> is a game of calculating this infamous number using unknown functions. Presented as a possessed calculator, all normal arithmetic operators <em>(addition, multipication, etc…)</em> are replaced by a strange diamond symbol, “<strong>◇</strong>”. This represents an evil mathematical operation, a function that does something unknown to its input.</p><blockquote>example: 5◇=6 : ◇ is adding one to the input, expressed ◇=f(x)=x+1</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*IQtCaPtnapax0lNKP83OBQ.png" /></figure><p>You objective is to uncover the “◇” function and then work backwards to use it in calculating 666. Once the number 666 has been calculated using the ◇ key, the level is won, however keys that light on fire and additional operators, help makes conquering the game a <em>diabolical</em> challenge.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAQ9rM5GmTjc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAQ9rM5GmTjc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAQ9rM5GmTjc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/54a1b084b545e50a363ea79ea43e2b95/href">https://medium.com/media/54a1b084b545e50a363ea79ea43e2b95/href</a></iframe><p>Our greatest ambition with <a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a> is to effectively undermine the often deserved stigma that educational gaming is banal — and to do this, it was essential for the game’s mechanics and puzzles to not be didactic, attempting to stay out of the player’s way and provide them a sandbox with no lose state where they could gather data at their own pace and make rewarding inferences for themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOTFpOI3i71H9RxTLPgvlg.png" /><figcaption>The Devil’s Calculator was named one of the 10 best indie games of 2019 by PAX. It was the only educational game given the distinction.</figcaption></figure><p>No better example of this came at PAX this past August, where a ten-year-old girl yet to take basic algebra sat and played the game for two hours, stubbornly working out mathematical precepts no one expected her to grasp. Getting further than most adults, she taught herself the very concept of a binary number system on graph paper, and then scratched over all her work, destroying it so no one else there could stand on her shoulders. Designing for and encouraging this kind of ingenuity was our greatest challenge and our largest point of pride.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s5DUDfb-OeG6QSqbtgVYUg.jpeg" /><figcaption>The graph paper that ten year old used to teach herself binary. Yes, I saved it.</figcaption></figure><p>It is only fitting then that we value and showcase this ingenuity by encouraging players to develop their own puzzles using a sophisticated level creation system built directly in the game. Modeled after the community emphasis in games like Super Mario Maker, <a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a> provides all the tools needed to build and upload your own math puzzles, including a realtime upvote and feedback system. Some of the world’s leading mathematicians have even gotten in on the fun, including Grant Sanderson of the wildly popular 3Blue1Brown YouTube channel, aforementioned bestselling author and <a href="https://medium.com/u/ec1538004a25">The Guardian</a> puzzle editor Alex Bellos, Numberphile’s James Grime, James Tanton of the Global Math Project and popular physicist and lecturer Anthony Padilla.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*90GaSDw2L_DT4oVuv6mtzg.jpeg" /><figcaption>Super Mario Maker 2, the latest example of how modern games are relying on the creativity and ingenuity of their players.</figcaption></figure><p>There will never be another puzzle virtuoso so prolific or adept as Martin Gardner, but if we unite to pool our puzzle making instincts for the good of stimulating our mathematical brains, perhaps we can do him some small honor, and help his legacy to endure. Let’s build a community to make this possible.</p><p><a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a> is free to play for <a href="https://itunes.apple.com/us/app/the-devils-calculator/id1447599858?ls=1&amp;mt=8">iOS</a>, <a href="https://play.google.com/store/apps/details?id=com.cinqmarsmedia.devilscalc">Android</a> and <a href="https://store.steampowered.com/app/1014280/The_Devils_Calculator/">Steam</a>. To submit a level for the game without playing it on these platforms, please visit <a href="https://docs.google.com/forms/d/e/1FAIpQLScus7RsqSwMvQsQXMHwt_H4cEi6TJgJuNGhUp8r21MAFqJrYQ/viewform?usp=sf_link">this link</a> and we will gratefully consider the puzzle for inclusion.</p><p><a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil&#39;s Calculator is a non-profit math puzzle game by the creator of Synonymy.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5175385a422" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/math-puzzles-and-logic-games-can-survive-martin-gardner-c5175385a422">Math Puzzles and Logic Games Can Survive Martin Gardner</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a Transparent Video Player App in Electron that changed the way I Multitask]]></title>
            <link>https://blog.cinqmarsmedia.com/up-your-multitasking-game-how-i-built-a-transparent-video-player-app-with-electron-that-be2d5ba7f898?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/be2d5ba7f898</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[video-player]]></category>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[desktop-app]]></category>
            <category><![CDATA[multitasking]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Tue, 27 Mar 2018 06:13:18 GMT</pubDate>
            <atom:updated>2018-05-02T02:57:41.962Z</atom:updated>
            <content:encoded><![CDATA[<h3>Up Your MultiTasking Game: How I Built a Transparent Video Player App with Electron that Transformed the Way I Work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*uKea4WqfqBozdMKLdC-Ymw.jpeg" /></figure><p>My mother always drilled into me that there’s nothing more precious in this world than time. As a result, I’m a bit of multitasking junkie, — like most other computer users my age, I’ll binge my favorite shows or watch online class lectures all while writing code, checking email and browsing online. Problem is, since I work on a laptop, screen real estate becomes a major issue and even with the second monitor in my office, it’s difficult to maintain focus on two separate screens. I’ll try making the video window super small, or I’ll “float” it atop the desktop <em>(a cool feature in VLC)</em> but it always seems to get in the way of my other computer tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*X0ufIAYLtgf1MXzNGFpJMg.png" /></figure><p>Now what if, <em>(run with me on this</em>), what if you could have your cake and eat it too? Play your videos full screen AND have your full desktop at your disposal all at the same time? Well now you can…. Sort of… Teaching myself <a href="https://electronjs.org/">electron</a>, I built a utility that allows you to play video files fullscreen, transparently atop the desktop with full control of the apps beneath. I think of it a little like bifocals, — you can focus on your work and selectively shift to video playback by adjusting your eyes, though I often prefer to leave my focus on the background and register the movement and action of the video peripherally.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvhTlnjp7fdU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvhTlnjp7fdU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvhTlnjp7fdU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/809430949a4b826ed614a76d59704130/href">https://medium.com/media/809430949a4b826ed614a76d59704130/href</a></iframe><p>This little app has completely changed the way I work. I’ve fit an extra <a href="https://medium.com/u/6e8411791314">edX Team</a> course into my monthly routine and was able to catch up on the latest season of Rick and Morty with little drop in my work productivity. I also play the occasional PC game <em>(shenzhen and opus magnum are some of my favorites)</em> and being able to watch videos in the background while gaming on Steam is a tremendous benefit. I would often mute these games and listen to <a href="https://medium.com/u/5bae95e9ccf8">WNYC</a> or other educational podcasts, but opening this up to videos as well changes everything. Try the latest version of Chameleon Video Player for free <a href="http://www.cinqmarsmedia.com/chameleon/">here</a>.</p><p><a href="https://store.steampowered.com/app/834170/Chameleon_Video_Player/">Chameleon Video Player on Steam</a></p><p>This whole experiment was built using <a href="https://electronjs.org/">Electron</a>, an amazingly simple yet powerful Javascript framework. Getting started is <a href="https://electronjs.org/docs/tutorial/first-app">simple</a> — a breeze for anyone the least bit familiar with web design. The conceit of this particular project, the fundamental idea of floating a fullscreen window atop the desktop and enabling click-through while registering keyboard input, was made possible by the versatility of Javascript, the ability to capture keystrokes and mouse events that are then forwarded to the parent window. I have attached an elegant demo illustrating this to the bottom of the article. This example, written by Will Knowles (@StickyCube), was extremely helpful for tinkering with this concept and ultimately developing my app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*3vVkOYMtEDKMFL_R9vNMlw.png" /><figcaption>The always brilliant xkcd</figcaption></figure><p>I believe there’s a fertility to the idea of semi-transparent comptuer windows and pass-through mouse and keystroke events. I can imagine several novel applications that extend far beyond a simple video player, software that could allow us to absorb an amalgam of information at a much faster rate. Your template for getting started is below, (<em>courtsey of Will Knowles, @StickyCube) </em>and if you manage to build something cool, be sure to let me know!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bce0c16e464debe99377cbc2fc158156/href">https://medium.com/media/bce0c16e464debe99377cbc2fc158156/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be2d5ba7f898" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/up-your-multitasking-game-how-i-built-a-transparent-video-player-app-with-electron-that-be2d5ba7f898">How I Built a Transparent Video Player App in Electron that changed the way I Multitask</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the Mona Lisa Sounds Like or what a Song Looks Like: Grammars of Binary Data]]></title>
            <link>https://blog.cinqmarsmedia.com/what-the-mona-lisa-sounds-like-or-what-a-song-looks-like-grammars-of-binary-data-64b4d21316bf?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/64b4d21316bf</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[language]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Wed, 26 Jul 2017 17:31:00 GMT</pubDate>
            <atom:updated>2017-07-26T17:31:00.980Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>I took an epigenetics class recently through the University of Melbourne. I had always been told that DNA is never changed or altered over the course of your life, so I was interested in how this could be reconciled with the study of how certain traumas and experiences can be passed to children. As it turns out, the DNA remains the same, but the grammar with which it is encoded by histone proteins, changes. As an introductory course, the prevailing analogy was how punctuation can change the meaning in a given sentence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*qkhSav0n1Awqt6HScRg8kg.jpeg" /></figure><p>In other words, if your DNA were a written book, experiences throughout your life can recontextualize the meaning of its content, much like the above meme, to provide your children a slightly more apt biological footprint for the environment they’ll presumably grow up in. While a remarkable simplification, this idea that grammar is the important variable, not the data itself, is fascinating to me.</p><p>Take for example this very article you’re reading — it, like all movies, music and pictures across the internet it must be expressable as binary data. The cliche’, “it’s just 1s and 0s”, is true to an extent. So if all digital data can be expressed as binary, the only thing that distinguishes any one file from any other must be its grammatical structure.</p><p>This concept fascinated me and led me to create a free website, <a href="http://www.frankenbit.com/"><strong>Frankenbit</strong></a>, where uploaded files are represented in other digital contexts. Take this iconic picture Mona Lisa, painted by Leonardo Da Vinci.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*6t0pN0ayYMJDN4V-.jpg" /><figcaption>1100 0000 0101 0110 0111 1010 1100 1100 0110 1000 1000 0000 11001…..</figcaption></figure><p>The data within this file can be expressed in several <a href="http://t.umblr.com/redirect?z=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FRadix&amp;t=ZTA3MTc0MTU3MzFlNDVkZTc1NjJkZGY1YjFhMzUwMzY3YTdjMjk4Myw0c3lxQVJtcQ%3D%3D&amp;b=t%3A1607Uz18BU200sfHz-Bj1A&amp;p=https%3A%2F%2Ffrankenbit.tumblr.com%2Fpost%2F113469536863%2Fmona-lisa-example-1&amp;m=1">bases</a>, including <a href="http://t.umblr.com/redirect?z=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FHexadecimal&amp;t=YmY0YTE0OGY0ODAyNWNmZDI4ODYxOTU2NGYxMzNhZTVmZTRkMGQ5YSw0c3lxQVJtcQ%3D%3D&amp;b=t%3A1607Uz18BU200sfHz-Bj1A&amp;p=https%3A%2F%2Ffrankenbit.tumblr.com%2Fpost%2F113469536863%2Fmona-lisa-example-1&amp;m=1">hexadecimal</a> (base 16) :</p><blockquote><em>60 2B 3D 66 34 40 62 18 1F 3A 2B 2F 41 1A 1C 27 1B 1E 23 32 35 39 37 38 3C 35 36 3A 28 24 29 31 2D 32 34 30 35 2C 28 2D 2B 2A 2C 32 34 35 29 2B 2C …</em></blockquote><p>This picture is a bitmap, (a very uncompressed picture file format), so each six consecutive hex characters refers to a RBG level for a pixel in the above image. The data can also, of course, be expressed as <a href="http://t.umblr.com/redirect?z=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBinary_number&amp;t=MDEyNGE3ZjRhOGM0NWYxZjc3NmRmMWExNDc0ZTQzMWM0NWQyNjE5ZCw0c3lxQVJtcQ%3D%3D&amp;b=t%3A1607Uz18BU200sfHz-Bj1A&amp;p=https%3A%2F%2Ffrankenbit.tumblr.com%2Fpost%2F113469536863%2Fmona-lisa-example-1&amp;m=1">binary</a> (base 2) :</p><blockquote>1100 0000 0101 0110 0111 1010 1100 1100 0110 1000 1000 0000 11001…..</blockquote><p>Or <a href="http://t.umblr.com/redirect?z=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FASCII&amp;t=NWViMmQwMGM2NWQ2MmNhZjNlODBkODhiODk3MzRkN2M0MGVlYmE4ZCw0c3lxQVJtcQ%3D%3D&amp;b=t%3A1607Uz18BU200sfHz-Bj1A&amp;p=https%3A%2F%2Ffrankenbit.tumblr.com%2Fpost%2F113469536863%2Fmona-lisa-example-1&amp;m=1">ASC-II</a>, a common text encoding format (base 128) :</p><blockquote><em>+=f4@b:+/A’#25978&lt;56:($)1–2405,(-+*,245)+,134–222,,,666999;;; “”…</em></blockquote><p>There is nothing special about the content of these 1s and 0s, or these particular ASC-II characters, so we are free to use this data to construct another type of file, say a .wav audio file:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F334488994%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-653313440%2Fmona-lisa-frankenbit&amp;image=http%3A%2F%2Fi1.sndcdn.com%2Fartworks-000234842384-vbjph9-t500x500.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/7149ba2e6bf39a96d95da5ab12a58c6b/href">https://medium.com/media/7149ba2e6bf39a96d95da5ab12a58c6b/href</a></iframe><p>The above audio reads each pixel linearly throughout the image, left to right, top to bottom. To demonstrate this, we can order the pixels horizontally in the picture below. In other words, when the ‘wrapping’ of pixels around the above image has been disabled, you are left with one long image, one pixel in height:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtSZ8ufWLIEH7s9Oj2QmFA.jpeg" /><figcaption>The image has been stretched vertically</figcaption></figure><p>Can we take an audio file and represent its content as a picture? Absolutely!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F253479546%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fcat-stevens-official%2Fthe-wind&amp;image=http%3A%2F%2Fi1.sndcdn.com%2Fartworks-PvsPnWu06Ae8-0-t500x500.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fea9662c775924b174977a218e6c4e0/href">https://medium.com/media/1fea9662c775924b174977a218e6c4e0/href</a></iframe><p>Just like with the Mona Lisa, data for this Cat Stevens file can be expressed in several bases, including hexadecimal, binary and ASCII. When we use this data to construct an image file, we get the following result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*U3xo0juVLFEcC6Mg.jpg" /><figcaption>The Wind, by Cat Stevens</figcaption></figure><p>If you re-upload this picture file into <a href="http://www.frankenbit.com/"><strong>Frankenbit</strong></a>, and play its corresponding audio, you will hear the original song. You can imagine each of the pixels as a groove in a vinyl record. You can also identify patterns, such as the repeating chorus in the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rrqOmcWtAg40DyavUMUyqA.jpeg" /></figure><p>Finally, above is the resulting timeline image where patterns may reveal themselves over time. The duration of the file is 43 seconds, so the direct center of timeline view would correspond to 22.5 seconds into the file.</p><p><a href="http://www.frankenbit.com/"><strong>Frankenbit</strong></a> was my first foray into programming and was my final project for <a href="https://medium.com/u/cb35da43ade5">Harvard</a> CS50x several years ago. Beyond the superficial novelty, there is an important lesson for how the digital data we often take for granted functions, and beyond that still are applications in analytics and cyber security. Data visulaization is instantaneous, for example, If you were to upload a song, you would be able to identify the chorus by like pixels in the resulting image. Taking this resulting image and then uploading it to Frankenbit will generate audio from the image, that will be almost identical to the original audio file. This would make it so sensitive text data, for example, could be hidden inside and across movie files, audio files etc… which would allow for a whole new level of security. Not only would potential hackers need to break encryption, they would need to find a needle a trillionth the size of the haystack.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSa_Qg5TmVsg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSa_Qg5TmVsg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSa_Qg5TmVsg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0811ba319cec7399cdf5a809353caf48/href">https://medium.com/media/0811ba319cec7399cdf5a809353caf48/href</a></iframe><p><a href="https://blog.cinqmarsmedia.com/true-synonymy-in-the-english-language-the-relationship-of-words-to-each-other-9ab1006f3715">What a Synonym is and how Languages Shape their Meaning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64b4d21316bf" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/what-the-mona-lisa-sounds-like-or-what-a-song-looks-like-grammars-of-binary-data-64b4d21316bf">What the Mona Lisa Sounds Like or what a Song Looks Like: Grammars of Binary Data</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make a Social Impact Twitter Bot and Get Thousands of Followers]]></title>
            <link>https://blog.cinqmarsmedia.com/how-to-social-impact-twitterbot-tutorial-487e06e0f93f?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/487e06e0f93f</guid>
            <category><![CDATA[twitterbots]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[twitter-marketing]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 13:02:39 GMT</pubDate>
            <atom:updated>2017-07-04T18:17:32.486Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>A lot has been made lately of bots compromising the integrity of elections, undermining online dating and diluting the already scarce substance on social media. One of many reasons I love <a href="https://medium.com/u/504c7870fdb6">Medium</a> and the great job the <a href="https://medium.com/u/a32c340ea342">Medium Staff</a> does is the depth with which ideas and concepts can be communicated on its platform. By contrast, the sophistication of language in an average tweet is incredibly generic and can be easily reproduced by even the simplest Natural Language Processing algorithm.</p><h3>Donald J. Trump on Twitter</h3><p>I am extremely pleased to see that @CNN has finally been exposed as #FakeNews and garbage journalism. It&#39;s about time!</p><p>Let’s take this example that just happened to be at the top of my timeline. The adverb could be randomly generated as well as the adjective depending on the positive or negative sentiment of the tweet. We then have the subject, a related hashtag and a judgement which again depends on sentiment. Finally, a short conclusory phrase reinforcing sentiment. Now let’s examine the tweet directly before it:</p><h3>Donald J. Trump on Twitter</h3><p>Numerous states are refusing to give information to the very distinguished VOTER FRAUD PANEL. What are they trying to hide?</p><p>Despite the absence of hashtags or twitter handles we see a familiar structure, but before indicting Trump for being imitative, look elsewhere and you’ll begin to see these or similar derivative patterns, even in heartfelt, sincere messages.</p><h3>Taylor Swift on Twitter</h3><p>My thoughts, prayers and tears for all those affected by the Manchester tragedy tonight. I&#39;m sending all my love.</p><p>It quickly becomes clear this is not so much the fault of twitter users as it is a major consequence of the 140 character restriction that twitter is famous for, the sawtooth double-edged sword that makes it so accessible at the expense of much of any substantive content. Brevity may be the soul of wit, but twitter proves a spectacular exception.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqvWgy48t4MZ5Pjq9vNOXg.jpeg" /><figcaption>Low lexical expectations on Twitter make it ideal for simple AI bots</figcaption></figure><p>If you disagree, I propose a simple challenge: try this free game for <a href="https://itunes.apple.com/us/app/whotweeted/id1217091564?ls=1&amp;mt=8"><strong>iOS</strong></a><strong> </strong>or <a href="https://play.google.com/store/apps/details?id=com.jarvisfilms.whotweeted"><strong>Android</strong></a>. Some context: I lectured at a local high school recently where I lead an app-development workshop and because Twitter is like catnip for teenagers, everyone wanted to build a game that interfaced with their API <a href="https://github.com/ccj242/WhoTweeted-A-Twitter-Game"><em>(code here)</em></a>. The result was <a href="https://github.com/ccj242/WhoTweeted-A-Twitter-Game">WhoTweeted</a>, a stupid little game where you guess which of five possible celebrities tweeted a given statement. The students handpicked these celebrities from a pool of their own followers and <em>still</em>, the class averaged about a 30 percent success rate, marginally better than if they were picking at random!</p><blockquote>Brevity may be the soul of wit, but twitter proves a spectacular exception.</blockquote><p>If it seems as though I have contempt for twitter, I’d like to stress I don’t — well, not anymore. Due to many of the reasons outlined above, I’ve come to appreciate the platform as ideal for AI bots, in particular ones that automate the proliferation of socially conscious content. I had been volunteering at a local animal shelter for some time, so it followed to construct a twitter bot that helped spread awareness by sharing <a href="https://medium.com/u/9f3e41995c2d">Petfinder</a> adoptions in the New York area. It’s called <a href="https://twitter.com/nyshelterpets">@nyshelterpets</a>.</p><h3>NY Shelter Pets on Twitter</h3><p>🐾 Come pick up #SAWYER before it&#39;s too late! #puppylove He&#39;s the sweetest! #AnimalLove ❤️ https://t.co/e1zfBmONHb</p><p>Start to finish, it only took about three hours to complete using PHP. I first <a href="https://apps.twitter.com/">registered</a> a new app for the twitter account and then forked this <a href="https://github.com/pinceladasdaweb/Twitterbot"><strong>repo</strong></a> to get started. I commented out the DB code, plugged my credentials in inc/twitter_credentials.php and I was off and running.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/41d0ab257df6d223987e0a13a09b7e40/href">https://medium.com/media/41d0ab257df6d223987e0a13a09b7e40/href</a></iframe><p>With these six lines of code I was able to tweet the string on line 3 each time this file was navigated to in a browser. Setting up a <a href="http://mycuteblog.com/setting-a-cron-job-to-visit-a-url/">cron job</a>, you can schedule when your script is executed on a custom interval. Now all that’s left is developing the content of that tweet. For this project, it was a breeze — I requested a <a href="https://medium.com/u/9f3e41995c2d">Petfinder</a> API key and made the following call to get a JSON object of nearby adoptions.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f48ddadd0c219e9596e1318c9e3c9d1/href">https://medium.com/media/2f48ddadd0c219e9596e1318c9e3c9d1/href</a></iframe><p>From here I had all the info I needed and the rest was a simply matter of iterating through the animals, attaching their pictures and randomly choosing hardcoded platitudes variable to gender. The full code is open source and available now on <a href="https://github.com/ccj242/nyshelterpets"><strong>GitHub</strong></a>. As you’ll see on line 3 in the above gist, making this bot tweet animals in <em>your</em> hometown is as easy as changing the zip code, so I’m hopeful to see the project appropriated for different communities outside of New York.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qi9vmYLMdjCBJZtxdG9yIg.jpeg" /></figure><p>Building a follower base around your bot requires a bit more effort, automating tasks like favoriting, retweeting and following other users based on hashtags you want to target is essential to get eyes on your account. For these automations, this <a href="https://github.com/mrbellek/twitterbot"><strong>repo</strong></a> offers several plug and play resources to get you going and your bot noticed. If that seems like a lot to deal with, <a href="https://medium.com/u/f0eaec48c46b">Amit Agarwal</a> makes an awesome and simple bot augment that can help you gain a following quick and easy with no coding required. Check it out <a href="https://www.labnol.org/internet/write-twitter-bot/27902/">here</a>.</p><p>And that’s all there is to it! Painless, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*WrwFNp_ig1pPOiEsQLJQ8g.png" /><figcaption>xkcd, Randall Munroe</figcaption></figure><h4><strong>Thanks for reading! If you enjoyed this article, please make sure to hit that heart button. It means a lot to know people are benefiting in some small way from my writing.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*emxDrmtEiMy6h5JXecj-Og.gif" /></figure><p><a href="https://blog.cinqmarsmedia.com/how-gaming-can-save-us-from-our-apathy-cee34578b9e4">How Gamification Can Save us from Apathy and how to “game for good”</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=487e06e0f93f" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/how-to-social-impact-twitterbot-tutorial-487e06e0f93f">How to make a Social Impact Twitter Bot and Get Thousands of Followers</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Gamification Can Save us from Apathy and how to “game for good”]]></title>
            <link>https://blog.cinqmarsmedia.com/how-gaming-can-save-us-from-our-apathy-cee34578b9e4?source=rss-26d16883ab38------2</link>
            <guid isPermaLink="false">https://medium.com/p/cee34578b9e4</guid>
            <category><![CDATA[politifact]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[fake-news]]></category>
            <category><![CDATA[gamification]]></category>
            <category><![CDATA[indie-game]]></category>
            <dc:creator><![CDATA[Christopher Cinq-Mars Jarvis]]></dc:creator>
            <pubDate>Tue, 13 Jun 2017 06:14:02 GMT</pubDate>
            <atom:updated>2019-02-12T07:29:28.222Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>My first year of college I made friends with a roommate trio in an adjacent dorm. They began to withdraw socially and academically after about a month, — skipping classes and holing up in their room day after day, night after night, playing the game <em>World of Warcraft</em>. They had a system — sleep four hours a night, play for twenty. Take turns going to the grocery store once a week to replenish microwavable foods and to get fresh buckets. The latter was especially important, for as you must understand, their dormitory had communal bathrooms, and one cannot be bothered to abandon their Elfin quest simply because nature calls. All three dropped out before the end of our first semester.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*wmJLvcC6kIhET62d6m6Vkw.jpeg" /></figure><p>A history of addiction runs in my family. I have never taken drugs or so much as sipped alcohol, though I might happily do either before ever considering booting up <em>World of Warcraft</em>. I was angry, and still am, that three charming and intelligent young men could be reduced to such apathetic caricatures. I remember thinking back to my childhood — all the hours spent mashing the ‘b’ button to launch homing grenades at friends or running pedestrians over on my way to a bank heist. Imagine all the books I could have read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obaH-rkkfS8WDN1BzP4H0A.jpeg" /><figcaption>I was permitted 1 hour of video games every non-school day from age 7 — aprox. 2,250 hours? Average book takes 2.14 hours to read so in the ballpark of 1,051 books. and a half.</figcaption></figure><p>There is <a href="https://www.ted.com/talks/daphne_bavelier_your_brain_on_video_games">credible research</a> to suggest that even the crudest video games can yield positive results for the brain, but without prejudice or judgment these games do not interest me. I credit several RPGs I played in my youth for cultivating a love and affinity for narrative fiction, but these were eventually overshadowed by the discovery of great films and books. As a result I studied filmmaking and continue to receive accolades and exposure for my movies— so why have I since shifted my professional focus toward software and games?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2rI_em4MscE%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2rI_em4MscE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2rI_em4MscE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4053270cddbc971b92b976a5e58488a2/href">https://medium.com/media/4053270cddbc971b92b976a5e58488a2/href</a></iframe><p>The answer is simple, and one that any parent knows well. Want your child to eat their veggies? Make it a game. Need them to keep quiet on a long flight? Make it a game. Games have the promise of motivating even the most mundane exercises. To put it another way, twisting a boring or obligatory task into a compelling game can combat a world awash with indifference. While <em>World of Warcraft</em> bred apathy in those three young men, I believe different games have the power to do just the opposite.</p><blockquote>Twisting a boring or obligatory task into a compelling game can combat a world awash with indifference</blockquote><p>In that spirit, I teamed up with the Pulitzer Prize winning organization <a href="https://medium.com/u/e2c91a75057f">PolitiFact</a> to make my latest non-profit game, <a href="http://www.cinqmarsmedia.com/">PolitiTruth</a>. Combatting fake news and lies in politics may not be sexy, but it’s more important than ever to fact-check sources and challenge your own preconceptions about the truth. Making this into a game was natural —utilizing our competitive nature as fuel to fight misinformation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*bOG_nrZhhlrXwuJdsHQpGA.png" /><figcaption>The always brilliant XKCD</figcaption></figure><p>Guesses are anonymously saved online to show how your political awareness compares to other participants and to help identify the stories people get wrong most often. Data on public misconceptions in politics are highly reliant on surveys and subject to hosts of biases including small sample sizes and the spotlight effect. It is my hope that PolitiTruth’s statistics provide a beneficial augment to these analyses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yIbcx2MddfdMS9Mid0paIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cyZhJ_qptPOB6vXLDjrz-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*874n8Q1wWB9Z5oKYvtfI9g.png" /></figure><p>Games like <a href="https://fold.it/portal/">Fold It</a>, that not only possess educational value but meaningfully contribute to research are the kinds of games I aspire to make. My last game, <a href="https://blog.cinqmarsmedia.com/true-synonymy-in-the-english-language-the-relationship-of-words-to-each-other-9ab1006f3715">Synonymy</a>, was designed to contribute to a new “perceived natural language processing” metric in NLP, a subjective measure of how closely related people believe two words to be. As I’m on the expo floor about to showcase <a href="http://www.cinqmarsmedia.com/">PolitiTruth</a> at E3 2017 through IndieCade, I’m encouraged by how many new projects I see that possess legitimate academic and scientific value. Best of all, they’re intoxicatingly fun, combating the (historically deserved) stigma of educational games being boring. Even the phrase “educational game” conjures thoughts of <em>Mario Teaches Typing</em> and <em>Oregon Trail, </em>instead of their brilliant modern counterparts, masterful works like <a href="http://www.zachtronics.com/infinifactory/">InfiniFactory</a>, <a href="https://tomorrowcorporation.com/humanresourcemachine">Human Resource Machine</a>, <a href="https://kerbalspaceprogram.com/">Kerbal Space Program</a> and <a href="http://www.zachtronics.com/shenzhen-io/">Shenzhen IO</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpz71O3CGpSKcnquoVtqUg.png" /><figcaption>Shenzhen IO: An AMAZING and profoundly educational circuit building game</figcaption></figure><p>These new games do so much more than instruct, they breathe life into studies most would consider banal in a more traditional academic context. Expanding on this, <a href="https://medium.com/u/49da885c857c">Full Frontal</a> with Samantha Bee investigates how building games around important institutions like journalism and voting can dramatically increase efficacy. The results speak for themselves.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwQ3bRiuV3bw%3Ffeature%3Doembed%26start%3D24&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwQ3bRiuV3bw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwQ3bRiuV3bw%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/18086e690fd5f2aeadd55f0d19cfdc1b/href">https://medium.com/media/18086e690fd5f2aeadd55f0d19cfdc1b/href</a></iframe><p>Our desire to play and compete certainly has harmful potential, but if we’re careful and clever, I truly believe we can appropriate these impulses for the collective good. It can start small — setting little goals for ourselves and sparring playfully with friends (fitness trackers are a great example of this), and soon you might find these exercises have the potential to engender interest, awareness and even philanthropy.</p><p>PolitiTruth is available free on the <a href="https://itunes.apple.com/us/app/polititruth/id1217091559?ls=1&amp;mt=8">iOS App Store</a> and the <a href="https://play.google.com/store/apps/details?id=com.cinqmarsmedia.polititruth">Google Play Store</a>. As a quick aside, I would like to express my sincere gratitude and thanks to Aaron Sharockman and the entire <a href="https://medium.com/u/e2c91a75057f">PolitiFact</a> team. I am a great admirer of their important work and am proud to help their mission in this small way.</p><p><a href="https://blog.cinqmarsmedia.com/true-synonymy-in-the-english-language-the-relationship-of-words-to-each-other-9ab1006f3715">What a Synonym is and how Languages Shape their Meaning</a></p><p>If you like PolitiTruth, check out our non-profit’s new Math Puzzle Game, <a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil’s Calculator</a>:</p><p><a href="https://www.cinqmarsmedia.com/devilscalculator/">The Devil&#39;s Calculator is a non-profit math puzzle game by the creator of Synonymy.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cee34578b9e4" width="1" height="1" alt=""><hr><p><a href="https://blog.cinqmarsmedia.com/how-gaming-can-save-us-from-our-apathy-cee34578b9e4">How Gamification Can Save us from Apathy and how to “game for good”</a> was originally published in <a href="https://blog.cinqmarsmedia.com/">Cinq-Mars Media</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>