<?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 Shae on Medium]]></title>
        <description><![CDATA[Stories by Shae on Medium]]></description>
        <link>https://medium.com/@shaewat?source=rss-fa44132838e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*k_88zt-t_aaZ4Ko9uiEVkA.jpeg</url>
            <title>Stories by Shae on Medium</title>
            <link>https://medium.com/@shaewat?source=rss-fa44132838e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:14:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaewat/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[Blursday strawberries]]></title>
            <link>https://shaewat.medium.com/blursday-strawberries-2bf6b85f728d?source=rss-fa44132838e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bf6b85f728d</guid>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[shelter-in-place]]></category>
            <category><![CDATA[grief-and-loss]]></category>
            <dc:creator><![CDATA[Shae]]></dc:creator>
            <pubDate>Sun, 11 Apr 2021 20:35:45 GMT</pubDate>
            <atom:updated>2021-07-20T06:31:01.057Z</atom:updated>
            <content:encoded><![CDATA[<p>The day is Blursday, the time is the anthropause of the COVID-19 pandemic. Having never been a homebody for so many continuous months, I enjoy settling into a restorative grounding routine. I flip through Gardening Youtube as a way of seeing others work in the dirt- dirt that I wish would fill the empty planters in my yard. Gardening sweeps away each day’s anxiety cobwebs from the Trump timeline doomscrolling.</p><p>Fast forward a few months, to another blursday. This time everything is different, the moonshot realization of complete Trump silence. Outside in my backyard there is now a barrel garden sprouting kale and broccoli, my home life having filled up while working remote. One day in spring I buy strawberry plants from the local Sloat Garden Center with cute white flowers, putting one in a hanging pot- a Pinterest dream fulfilled.</p><p>“Pluck off the flowers of the small, newly planted strawberry plant so that it grows deeper roots and more leaves” instructs Gardening Youtube.</p><p>I pause the TV. When my roommates moved out I lost my pod. It was painful to be alone as I continued to self-isolate, it was like losing my blooming parts. What if the pain I felt now was the deeper parts of myself extending, working through the soil? The workation away from the office had allowed me to be raw without having to mask as I normally did in the office- I only had to worry about accidentally being unmuted and zoombombing. In this way I grew deeper roots to my home and my self.</p><p>For the strawberry plants cultivated to produce the most fruit, losing flowers means more energy goes into growing the root system. One Blursday when the roots are deep and the plant is bushy- there will be even more flowers and eventually sweet, red fruit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NzT7LSG5k8sQGRV6" /><figcaption>Pinterest dream hanging strawberry plant</figcaption></figure><p>Written as an exercise for Crafting Your Nonfiction Book writing group, which had the following prompt:</p><p>Spend ~ 15 mins writing a piece that uses the following words:</p><ul><li>Anthropause</li><li>Blursday</li><li>Doomscrolling</li><li>Moonshot</li><li>Pod</li><li>Remote</li><li>Unmute</li><li>Self-isolate</li><li>Workation</li><li>Zoombombing</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bf6b85f728d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The accidental rollback before the holidays]]></title>
            <link>https://shaewat.medium.com/the-accidental-rollback-before-the-holidays-dfe1ae31e80e?source=rss-fa44132838e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfe1ae31e80e</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[poetry]]></category>
            <dc:creator><![CDATA[Shae]]></dc:creator>
            <pubDate>Mon, 21 Dec 2020 21:35:43 GMT</pubDate>
            <atom:updated>2020-12-21T21:35:43.463Z</atom:updated>
            <content:encoded><![CDATA[<p>Twas the day before holiday break, when all through the repo,</p><p>Not a pull request was stirring, not even a fix for a typo;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B4bVoG2l0R25ZALw" /></figure><p>The week’s feature updates were shipped early in the week with care,</p><p>In hopes that Friday would be a day without deployment fare;</p><p>The new chart behind a feature flag, while the backend fixed data strays,</p><p>And Sofia shipping new design work, and I with one last polish pre-holidays,</p><p>Had just settled in for a Friday of meetings,</p><p>Thinking the only things to send were holiday greetings-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P8763Gv37oV9Q55t" /></figure><p>When out of the feedback Slack channel there arose such a clatter,</p><p>That Sofia and I sprang to see what was the matter.</p><p>Through the code we traced like a flash,</p><p>Threw open the deployment logs, threw up the Rollbar dash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*Sfc1l79cF0jt6bXM" /></figure><p>Tall bars shadowed the day the network config change was shipped,</p><p>Gave the illusion that a change on a different platform had slipped,</p><p>When, what to the clouding platforms and services view would clear,</p><p>But a different version of the network config in the deployment logs would appear;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lo9DVt0fMHpexSEX" /></figure><p>With some help of a publishing yaml file with a developer email,</p><p>We learned who the rollback had come from, the specific individual;</p><p>More rapid than eagles the @ tags they came,</p><p>To the person who deployed, did you mean to make this change?</p><p>With the questions, so lively and quick,</p><p>The person knew they had messed up with that one click.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KNlhiorTgFkSHf8y" /></figure><p>As dry leaves before the wild hurricane fly,</p><p>So after releasing the latest version, the error report was dry;</p><p>Such holiday cheer to not be stuck in an error trance,</p><p>Of each little failed network POST request,</p><p>As I drew in my head, and again the merge request board was clear,</p><p>Happy Holidays, and the accidental rollback was fixed before the New Year!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q-eKkAIK63h6Bf13" /></figure><p>Based on “A Visit from St. Nicholas”, by Anonymous in 1823</p><p>Original digital art using XP-PEN and Krita</p><p>Featuring Sofia Levin, my teammate</p><p>Dedicated to Johnathan Angarita: To my teammate in the international worker struggle, Happy Holidays!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfe1ae31e80e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What can women who code learn from Cecilia Payne?]]></title>
            <link>https://shaewat.medium.com/i-was-to-blame-for-not-having-pressed-my-point-b052966370ad?source=rss-fa44132838e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b052966370ad</guid>
            <category><![CDATA[women-in-stem]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[codelikeagirl]]></category>
            <category><![CDATA[women-who-code]]></category>
            <category><![CDATA[astronomy]]></category>
            <dc:creator><![CDATA[Shae]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 15:07:18 GMT</pubDate>
            <atom:updated>2019-10-23T02:42:05.369Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Peers play a crucial role in success</li><li>Nevertheless, work defines the role</li><li>Contributions to the field define greatness</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*dF9P2pFXKR3i0xi4tWc9dw.jpeg" /></figure><p><em>“I was to blame for not having pressed my point. I had given in to authority when I believed I was right. ... I note it here as a warning to the young. If you are sure of your facts, you should defend your position.” ― </em><a href="https://www.goodreads.com/work/quotes/1063912"><strong><em>Cecilia Payne-Gaposchkin: An Autobiography and Other Recollections</em></strong></a></p><p>Before Copernicus published ideas to the contrary, people thought the world was central to the solar system. Astronomers thought stars were composed of the same materials as Earth when Cecilia Payne began studying stars in the early 1900’s. Like Copernicus before her, Cecilia’s work would fly in the face of these accepted ideas about the universe and then go on to change humankind’s understanding of the cosmos forever.</p><h4><strong>Peers play a crucial role in success</strong></h4><p>Part of Cecilia’s success lies in the influence of those who surrounded her.</p><p>After studying astronomy at Cambridge, she did not receive a degree because only one gender was awarded degrees at that time [1]. However, during her studies at Cambridge, she came across the work of an astronomer named Meghnad Saha. Meghnad Saha had recently established that spectral sequences corresponded to quantifiable stellar temperatures with an equation relating the ionization states of an element in a star to temperatures [2]. This work inspired Cecilia and became the solid ground on which Cecilia could base her own future theories.</p><p>At Harvard, Annie Jump Cannon and a team of researchers were sorting the spectra of several hundred thousand stars [3]. Based on visual data like brightness, size, and color the team established seven distinct classes of stars. At the time no research could make sense of this ordering of the stellar spectral classes, but then Cecilia came along and produced work relating spectra to temperature. This made sense of Cannon’s ordering as a sequence of decreasing temperatures. Together their work created a plot of luminosity versus spectral class of the stars, called the Hertzsprung-Russell diagram, one of the most powerful analytical tools in stellar astrophysics [5].</p><p>The star classification efforts of the Harvard College Observatory team and progressive work in thermal ionization by Meghnad Saha gave Cecilia two pieces of the puzzle for describing the spectra of stars relative to star temperatures and material compositions.</p><h4><strong>Nevertheless, work defines the role</strong></h4><p>Cecilia’s career began at Cambridge in England. However, she immediately hit a glass ceiling in the astronomy classes there [1]. By immediately rejecting her contributions on the basis of her gender, Cambridge lost her valuable skills and future contributions to a place that would accept her: Harvard in the United States.</p><p>Though her thesis was destined to go on to great success, her Harvard advisor’s initial reaction was to reject it because it did not match the groupthink of the astronomy department and was approached with assumptions from peers that it would be flawed [5]. After such a hard let down at the end of her doctorate studies, Cecilia got another kick in the ovaries when she then was blocked from pursuing the position of a Harvard professor because of her gender and could not continue her career alongside her peers.</p><p>Cast down into low position where her salary was classified under “equipment expenses” [4], Cecilia nevertheless continued with her work and made her thesis into book. It was this book, <em>Stellar Atmospheres</em>, that was finally accepted by the astronomy community [5]. Her peers and former advisor realized that her research and conclusions were fundamentally correct despite their feelings about it and biases against her.</p><p>Even after the delayed but overwhelming success of her doctorate work, Cecilia was still not allowed to become a professor because she did not have the preferred gender. The director of the observatory at Princeton University referred to Payne as the best candidate in America to be his successor in 1934, but wrote that she “alas, is a woman!” [4]. Nevertheless, she diligently continued to publish astronomy books. As soon as the Harvard College Observatory got a new director 31 years later, the change in leadership immediately led to cascading changes that resulted in Cecilia receiving the much deserved promotion to professor [4].</p><h4><strong>Contributions to the field define greatness</strong></h4><p>Cecilia Payne derived the quantities of elements in stars and the universe by studying their stellar spectra. Her thesis has since famously been described by astronomers as “the most brilliant PhD thesis ever written in astronomy” [1, 3, 4, 5].</p><p>Cecilia’s work revolutionized astronomy by proving that stars are predominantly made of helium and hydrogen [1] and after gaining acceptance, her discoveries immediately reached far in impact. Concurrent work categorizing the spectra of stars could stand on new sound science, allowing for 225,000 classified stars to fit on a temperature scale and create one of the most powerful analytical tools in stellar astrophysics. By publishing work that both confirmed ongoing projects and gave grounds for new projects to stand on, Cecilia became a vital point of growth in the understanding of the universe.</p><p>Cecilia was a game-changing astronomer because she contributed directly to the advancement of the field of astronomy. She produced this work without the entitlement given to the preferred gender of her field, advancing in positions as soon as blocks against her were lifted. Imagine how much more she could have contributed to science if there had not been enforced cultural limits working hard to slow her down.</p><p>She is known and remembered for paving the way to modern astrophysics and establishing our current understanding of the universe’s composition.</p><h3><strong>#rememberHer</strong></h3><p><strong>[1]</strong> <em>Contributions of 20th Century Women to Physics</em>, Copyright © CWP and Regents of the University of California 1995–1998. <a href="http://cwp.library.ucla.edu/Phase2/Payne-Gaposchkin,_Cecilia_Helena@861234567.html">http://cwp.library.ucla.edu/Phase2/Payne-Gaposchkin,_Cecilia_Helena@861234567.html</a></p><p><strong>[2] </strong><em>Saha and His Formula</em>, G Venkataraman. Universities Press. 1995</p><p><strong>[3]</strong> <em>Annie Jump Cannon.</em> Biography.com, Astronomer, Scientist (1863–1941) <a href="https://www.biography.com/people/annie-jump-cannon-9236960">https://www.biography.com/people/annie-jump-cannon-9236960</a></p><p><strong>[4]</strong> HowStuffWorks\Science\Dictionary\Famous Scientists\Astronomers. <a href="http://science.howstuffworks.com/dictionary/famous-scientists/astronomers/cecilia-helena-payne-gaposchkin-info.htm">http://science.howstuffworks.com/dictionary/famous-scientists/astronomers/cecilia-helena-payne-gaposchkin-info.htm</a></p><p><strong>[5]</strong> <em>Profile: Cecilia Payne and the Composition of the Stars</em> <a href="https://www.amnh.org/explore/resource-collections/cosmic-horizons/profile-cecilia-payne-and-the-composition-of-the-stars/">https://www.amnh.org/explore/resource-collections/cosmic-horizons/profile-cecilia-payne-and-the-composition-of-the-stars/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b052966370ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-Platform User Interface Testing with Selenium and Sauce Labs]]></title>
            <link>https://shaewat.medium.com/multi-platform-user-interface-testing-with-selenium-and-node-js-567b8fb624e8?source=rss-fa44132838e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/567b8fb624e8</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[selenium-webdriver]]></category>
            <category><![CDATA[sauce-labs]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Shae]]></dc:creator>
            <pubDate>Sun, 15 Jan 2017 01:48:01 GMT</pubDate>
            <atom:updated>2018-10-25T04:56:56.115Z</atom:updated>
            <content:encoded><![CDATA[<p>Selenium tests allow a series of interactions to run over a user interface on a web browser. The tests can check for the presence of text, click buttons, and input data into forms- mimicking how a user would interact with a website. This post discusses how to run Selenium tests across multiple platforms and browsers for testing a website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMwq9eKH5W81ApD3COLuTw.png" /></figure><h4><strong>Sauce Labs Platform Suite</strong></h4><p>Using the Sauce Labs service, tests can be run across a suite of PC, Mac, iOS, and Android platforms. Without Sauce’s service one would need to run Selenium tests on various machines that support the browsers and versions desired for the tests. Sauce supports a webdriver that launches a range of browser, platform, and version instances, allowing for a multi-platform test suite to run over various browser instances.</p><h4><strong>Selenium for Node.js</strong></h4><p>The npm module <em>selenium-webdriver</em> allows Selenium to be defined as the test runner within a Node.js application. The webdriver will build the desired instance and launch it within Sauce’s Automated Tests Platform. The common Javascript testing framework mocha and along with assertion library chai are convenient to use with the Selenium driver.</p><h4><strong>Testing for React</strong></h4><p>The Selenium tests in this post were written in ES6 and were developed for the end-to-end testing of a React application. With this setup, React developers can easily write a new user interaction test after creating a component then verify that component performs across various platforms and browsers.</p><pre>import chai from &#39;chai&#39;;<br>import chaiAsPromised from &#39;chai-as-promised&#39;;<br>chai.use(chaiAsPromised);<br>const expect = chai.expect;<br><br>import webdriver from &#39;selenium-webdriver&#39;;<br>import test from &#39;selenium-webdriver/testing&#39;;</pre><h4><strong>Browser Capabilities</strong></h4><p>Capabilities are defined then passed to the selenium webdriver, specifying the platform, browser, and version to launch. For testing on Sauce Labs, the instance of the specified browser and platform will be launched within Sauce Labs testing suite. To configure the capabilities desired and to see the range of platforms, browsers, and versions that Sauce Labs supports, check out Sauce’s <a href="https://wiki.saucelabs.com/display/DOCS/Platform+Configurator">Platform Configurator</a>.</p><pre>let capabilities = {<br>  &quot;Safari: El Capitan&quot;: {<br>    &#39;browserName&#39;: &#39;safari&#39;,<br>    &#39;platform&#39;: &#39;OS X 10.11&#39;,<br>    &#39;version&#39;: &#39;10.0&#39;,<br>  },<br>  &quot;Safari: Mavericks&quot;: {<br>    &#39;browserName&#39;: &#39;safari&#39;,<br>    &#39;platform&#39;: &#39;OS X 10.9&#39;,<br>    &#39;version&#39;: &#39;7.0&#39;,<br>  },<br>  &quot;Chrome: Windows 10&quot;: {<br>    &#39;browserName&#39;: &#39;chrome&#39;,<br>    &#39;platform&#39;: &#39;Windows 10&#39;,<br>    &#39;version&#39;: &#39;54.0&#39;,<br>  },<br>  &quot;IE: Windows 10&quot;: {<br>    &#39;browserName&#39;: &#39;internet explorer&#39;,<br>    &#39;platform&#39;: &#39;Windows 10&#39;,<br>    &#39;version&#39;: &#39;11.103&#39;,<br>  },<br>  &quot;Safari: iPhone5&quot;: {<br>    &#39;browserName&#39;: &#39;safari&#39;,<br>    &#39;platform&#39;: &#39;iOS&#39;,<br>    &#39;version&#39;: &#39;8.1&#39;,<br>    &#39;deviceName&#39;: &#39;iPhone 5 Simulator&#39;,<br>    &#39;deviceOrientation&#39;: &#39;portrait&#39;,<br>    &#39;appiumVersion&#39;: &#39;1.5.3&#39;,<br>  },<br>  &quot;Android(Nexus)&quot;: {<br>    &#39;browserName&#39;: &#39;Browser&#39;,<br>    &#39;platformName&#39;: &#39;Android&#39;,<br>    &#39;platformVersion&#39;: &#39;4.4&#39;,<br>    &#39;deviceName&#39;: &#39;Google Nexus 7C Emulator&#39;,<br>    &#39;deviceOrientation&#39;: &#39;portrait&#39;,<br>    &#39;appiumVersion&#39;: &#39;1.5.3&#39;,<br>  },<br>}</pre><h4><strong>Build the Webdriver and Launch the Browser</strong></h4><p>The Automated Testing platform on Sauce Labs allows the selenium webdriver to build any platform or browser supported by Sauce Labs. In mocha’s before all hook, tell the webdriver to build the browser instance using a server that connects it to your Sauce Labs account. Sauce’s Automated Testing platform will launch the browser, handling the platform requirements. Once the webdriver has launched the project on an instance of a browser within Sauce Labs, the tests can be run on Sauce’s platform!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a026c3c423141cf256e172b52440f41/href">https://medium.com/media/6a026c3c423141cf256e172b52440f41/href</a></iframe><h4><strong>Find Elements</strong></h4><p>The tests that selenium will run are based on finding webpage elements within the browser’s view. In the test below, the elements needed for the user interaction of logging in are defined first. The majority of these elements are identified by their classnames, since the project it runs against complies its CSS into names that are unique. Selenium webdriver’s findElement can also find elements based on other identifying properties, such as an id or tag.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b3fcb327ef780e481324d6dae1908c6/href">https://medium.com/media/8b3fcb327ef780e481324d6dae1908c6/href</a></iframe><h4><strong>Test UI Features</strong></h4><p>Using these elements, Selenium opens a login modal, inputs its username and password, and clicks the submit button. The test then conditionally passes based on whether the logged in state for a user is discovered. Specifically, the test checks that the page shown after submit has the expected username displayed in the “handle” div.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QN8sIQhMuzfzOvzXeqRpLA.png" /></figure><h4><strong>Multi-Platform UI Testing</strong></h4><p>By writing a user interface test in Selenium, one gains the ability to run that test on any browser and platform using the selenium webdriver within the Sauce Labs platform. Sauce’s Automated Tests will show tests in the passed/failed state on the dashboard. Each run has information collected about it so one can watch a recording of the run or checkout screenshots collected with each command Sauce received.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f57f05cc5c5466424b2bb0644b98a2d4/href">https://medium.com/media/f57f05cc5c5466424b2bb0644b98a2d4/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=567b8fb624e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local User Interface Testing with Selenium]]></title>
            <link>https://shaewat.medium.com/local-user-interface-testing-with-selenium-and-node-js-75be104c729f?source=rss-fa44132838e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/75be104c729f</guid>
            <category><![CDATA[selenium-webdriver]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[sauce-labs]]></category>
            <dc:creator><![CDATA[Shae]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 18:09:06 GMT</pubDate>
            <atom:updated>2018-03-27T16:26:49.563Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Selenium</strong> tests allow a series of interactions to run over a user interface on a web browser. The tests can check for the presence of text, click buttons, and input data into forms, mimicking how a user would interact with components of a website. This post discusses how to run selenium tests locally on one’s machine for front-end web testing on the local browser.</p><h4><strong>Selenium for JS</strong></h4><p>The npm module <em>selenium-webdriver</em> allows selenium to be defined as the test runner within a Node application.The common JS testing framework mocha and along with chai assertions are convenient to use with the selenium driver.</p><h4><strong>Testing for React</strong></h4><p>The selenium tests in this post were written in ES6 and were developed for the end-to-end testing of a React application. With this setup, React developers can easily write a new user interaction test after creating a component or updating an existing component.</p><pre>import chai from &#39;chai&#39;;<br>import chaiAsPromised from &#39;chai-as-promised&#39;;<br>chai.use(chaiAsPromised);<br>const expect = chai.expect;<br><br>import webdriver from &#39;selenium-webdriver&#39;;<br>import test from &#39;selenium-webdriver/testing&#39;;</pre><h4><strong>Local Browser Launch</strong></h4><p>A selenium run local to one’s machine will see the driver launching a new instance of the specified browser on the machine. Npm includes modules such as <em>chromedriver</em> and <em>geckodriver</em> that enable that launch. Only browsers compatible with the local operating system can be run. An Internet Explorer browser instance cannot be run on Mac, for example.</p><h4><strong>Browser Capabilities</strong></h4><p>Capabilities are defined then passed to the selenium webdriver, specifying the platform, browser, and versioning desired for the browser that the webdriver will launch. For local testing, this instance of the specified browser will be launched on the user’s machine.</p><pre>let capabilities = {<br>  &quot;Chrome: El Capitan&quot;: {<br>    &#39;browserName&#39;: &#39;chrome&#39;,<br>    &#39;platform&#39;: &#39;OS X 10.11&#39;,<br>    &#39;version&#39;: &#39;54.0&#39;,<br>  },<br>  &quot;Firefox: El Capitan&quot;: {<br>    &#39;browserName&#39;: &#39;firefox&#39;,<br>    &#39;platform&#39;: &#39;OS X 10.11&#39;,<br>    &#39;version&#39;: &#39;50.0&#39;,<br>  },<br>};</pre><h4><strong>Build the Webdriver and Launch the Browser</strong></h4><p>In mocha’s before all hook, tell the webdriver to build the browser instance. This example tests against a localhost instance already running on port 3000, which is awesome because selenium can test against development as it occurs.</p><pre>test.before((done)=&gt; {<br>  driver = new webdriver.Builder()<br>  .withCapabilities(capability)<br>  .build();<br>      <br>  driver.get(&#39;http://127.0.0.1:3000&#39;)<br>  .then(()=&gt;done());<br>});</pre><pre>test.after((done)=&gt;{<br>  driver.quit()<br>  .then(()=&gt;done());<br>});</pre><p>Once the webdriver has launched the project on an instance of a browser, the tests can be run!</p><h4><strong>Find Elements</strong></h4><p>The tests that selenium will run are based on finding webpage elements within the browser’s view. In the test below, the elements needed for the user interaction of logging in are defined first. The majority of these elements are identified by their classnames, since the project it runs against complies its CSS into names that are unique. Selenium webdriver’s findElement can also find elements based on other identifying properties, such as an id or tag.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b3fcb327ef780e481324d6dae1908c6/href">https://medium.com/media/8b3fcb327ef780e481324d6dae1908c6/href</a></iframe><h4><strong>Test an Interface Feature</strong></h4><p>Using these elements, the selenium bot opens a login modal, inputs its username and password, and clicks the submit button. The test then conditionally passes based on whether the logged in state for a user is discovered. Specifically, the test checks that the page shown after submit has the expected username displayed in the “handle” div.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/955a0b1b563f6eee1a914d3c8efbb421/href">https://medium.com/media/955a0b1b563f6eee1a914d3c8efbb421/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75be104c729f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Consciousness considered in light of Ray Kurzweil’s Pattern Recognition Theory of Mind]]></title>
            <link>https://shaewat.medium.com/consciousness-considered-in-light-of-ray-kurzweils-pattern-recognition-theory-of-mind-d93e3276ffcc?source=rss-fa44132838e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d93e3276ffcc</guid>
            <category><![CDATA[ethics]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[lisp]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Shae]]></dc:creator>
            <pubDate>Sat, 05 Nov 2016 18:21:54 GMT</pubDate>
            <atom:updated>2018-09-26T21:14:33.400Z</atom:updated>
            <content:encoded><![CDATA[<p>This is an essay reviewing <a href="http://www.amazon.com/gp/product/B007V65UUG">Ray Kurzweil’s <em>How To Create a Mind</em></a>. I completed this essay for UT Austin’s <a href="http://www.cs.utexas.edu/~dana/outline2.html">Computational Brain course (CS378</a>) taught by <a href="https://en.wikipedia.org/wiki/Dana_H._Ballard">Dana Ballard</a> spring 2013. I earned recognition for many of my essays in this course during Ballard’s pen ceremonies, and went on to work in Ballard’s Embodied Cognition/VR Lab at UT Austin during the summer of 2013.</p><h4><strong>Consciousness considered in light of Ray Kurzweil’s Pattern Recognition Theory of Mind</strong></h4><p>Ray Kurzweil is a futurist and a reductionist. His Pattern Recognition Theory of Mind (PRTM) describes the fundamental unit of the neocortex as a pattern recognizer that computes and relays hierarchical information. By the physical wiring of pattern recognizers to one another, Kurzweil states that a mind is created with increasing linkage correlating to higher levels of abstraction in thinking and perception. His theory of the mind reduces consciousness to a physical system, thus one he believes can be rebuilt. However, applying computation to create a hypothesized consciousness crosses the bounds of science into the realm of philosophy. Issues arise over existence of the soul and acceptance of such technology as equivalent to its naturally occurring biological form. Either way, Kurzweil successfully applies his Pattern Recognition Theory of Mind’s computational axioms in a manner supported by modern neuroscience to construct a theory of mind that he believes could one day offer mankind infinite lifespans. If he is right the potentially enhanced person of the future will be exponentially different from the modern human being.</p><h4>Gödel’s incompleteness theorems</h4><p>Gödel’s incompleteness theorems state that every system will reduce to fundamental truths, or axioms, that are improvable within the system and disable it from exhibiting its own consistency. This means that in mathematics, “1 + 1” cannot be accepted to be “2” without applying two axioms. First, a numerical quantity “1” must be assumed to exist. Second, someone must be able to perform the computational action of “addition”. The incompleteness theorems hold that even after assuming “1” and “addition” exist, one cannot prove their existence through application of the mathematical system containing these entities. Thus, Kurzweil’s scientific depiction of the mind begins by establishing axioms that must be accepted in order to continue the application of his theory. He identifies the most reduced unit of his theory to be a pattern recognizer, a block of neural tissue that has a set behavior acting to compute an output signal after receiving input. These pattern recognizers are repeated throughout the neocortex, aligning with American neuroscientist Vernon Mountcastle’s hypothesis that the neocortex consists of a single repetitive component. Mountcastle proposed this repeating unit to be the cortical column, but modern research has shown repeating units to exist within the cortical columns themselves [Kurzweil 36]. These pattern recognizers therefore constitute Kurzweil’s first axiom in his theory. The repetitive units are interwoven within the cortical columns, and their connectivity to other pattern recognizers is a reflection of their function in the communication of thoughts. Completing this logic, Kurzweil’s second axiom is that these units must be able to communicate with each other. This is realized in the biological brain as physical connections between the dendrites of neurons, which are known to conduct signals with magnitude information. Therefore, Kurzweil’s PRTM assumes that pattern recognizers must exist and that these recognizers can create connections with other pattern recognizers. These assumptions are supported by modern research and understanding in neuroscience.</p><h4>Categorical learning</h4><p>The unit issue of the mind stems from the Hebbian learning model. This model is well known for introducing the maxim “cells that fire together wire together.” The model was introduced by Donald Hebb in his book <em>The Organization of Behavior</em>, and assumes the neuron to be the smallest assembly to adapt to new connections and strengthen or weaken them based cellular activity [2]. Hebb’s central assumption of the cell as the basic unit of learning is incorrect under Kurzweil. In his PRTM an assembly of about one hundred neurons learn by creation of connections with other groups of neurons, applying the Hebbian learning mechanic but not just applying it to a single neuron. It can therefore be concluded that Kurzweil rejects the idea of a Halle Berry cell. His interpretation of Quiroga et al’s findings in their paper “Invariant visual representation by single neurons in the human brain” [3] would be that they were measuring a neuron performing within the context of its pattern recognizer. Under his PRTM, this cell could simply be described as part of the pattern recognition sequence holding the concept of Halle Berry. The reason this cell also fired to a textual written version of her name is that the cell’s pattern recognizer is a part of a higher conceptualization of Halle Berry. Therefore, Kurzweil’s theory holds in the context of this neuroscience experiment that drew information from functioning biological brains. The existence of pattern recognition units is also supported by research conducted by Henry Markram, who searched for the smallest unit of the cortex that could act as a Hebbian assembly to support research for his Blue Brain Project ‘s simulation of the entire brain. He describes finding “elusive assemblies [whose] connectivity and synaptic weights are highly predictable and constrained” within the human brains [Kurzweil 80]. He hypothesized that these assemblies act as “Lego block” pieces in the construction of the incredibly complex mind. Markram originally guessed his “Lego blocks” to be the neocortex’s cortical columns structures, but held intuition that these have the possibility of containing sub-blocks. With the advantage of modern research, Kurzweil gladly refines Markram’s original hypothesis to describe each block as a group of neurons within the cortical column acting as a pattern recognition unit. In this way, each pattern recognizer under his PRTM possesses the ability to compute a behavioral response to its input, allowing different recognizer blocks to combine to create the experience of percepts. In light of the paper “A Continuous Semantic Space Describes the Representation of Thousands of Object and Action Categories across the Human Brain,” which demonstrates that the brain discriminates between objects by processing them through different physical maps in the brain [4], Kurzweil’s depiction of pattern recognizers piecing themselves together into a structured thought receives vast support. The published research team found it curious that certain categorical objects were not identified as having a localized point of response in the brain. Instead, their research demonstrated continuous semantic spaces to hold processing maps that elicited responses to several related categories. Kurzweil’s theory readily reasons with this phenomenon. Of course, similar objects run through similar pattern recognizers in the brain. And indeed, the mapping between pattern recognizers does not need to be constrained to a single focal point. Thus a categorical object is not understood in the mind within a physical chunk of the brain, but instead it elicits a range of pattern recognizers whose spread throughout the brain is continuous and dependent on the locations of the utilized pattern recognizers.</p><h4>LISP</h4><p>An experience is recalled as a sequence of events, or a one-dimensional list of actions. This is intuitive since humans remember things in the order they happened. Kurzweil claims that input to a pattern recognizer is one-dimensional as well. The items of the lists represent outputted magnitudes of relevant patterns in the cortical hierarchy, with the ordering depicting a remembered sequence of modules the memory passed through in the creation of its experience. In order to fill these one-dimensional lists, pattern information must be reduced from its original form into one that can be definitively named. In the PRTM, this is depicted as an evoked pattern recognizer adding its magnitude of stimulation to a recallable list. When consciously evoked, this list runs from the top down the program that codes the experience of a concept. Kurzweil finds the reduction of a stimulated neural firing pattern to a magnitude quantity analogous to the mathematical practice of vector quantization, where a large number of vectors is reduced to a smaller number of cluster points. These points compress information into namable entities whose identities can then be identified and communicated. In a similar way, the mind compresses information in order to relay this information through the established pattern recognizers in the mind. To the computer scientist, Kurzweil’s explanation of thinking seems programmable. Indeed, the commonly misunderstood (as outdated) programming language of LISP captures the functionality, pattern recognition, and recursive elements of the PRTM’s pattern recognizer. Kurzweil explains that “each pattern in the neocortex can be regarded as a LISP statement –each one constitutes a list of elements and each element can be another list” [Kurzweil 153].</p><h4>Higher-level experiences</h4><p>Kurzweil describes the neocortex of the mammalian brain as a biological system designed to understand hierarchical patterns. A message, directed by a list, relays through layers of consciousness to create the experiences of sensory perception, recognition, movement, spatial orientation reasoning, and rational thought. Connections pass the message between levels of pattern recognizers whose degree of interconnectivity determines the abstract nature of the message being conducted. This organization allows for the lowest conceptual level, sense perception, to create higher-level experiences. For example, light pattern input is received by the photoreceptive cells in the eye to relay useful information about the visual experience the owner of the eyeballs. However, the sensory information is initially rudimentary and must be strung through the conscious wiring of the viewer to create the final perceived image. Therefore, pattern information becomes confabulated by the mind in the creation of a conscious experience or thought. In humans, this confabulation has lead to the experience of higher-level concepts such as humor, metaphoric meaning, and love. These concepts do not exist apart from the mind, instead they depict the use of the outermost and therefore most abstract layers of the neocortex. In religions such as Hinduism, these higher abilities are personified in god and goddess forms to depict their transcendental nature. The Hindu goddess Saraswati, for example, anthropomorphized the expression of science, arts, and music –which are all higher-level human abilities. In order to establish higher-level connections, a human must believe in their possibility of existence and practice their elicitation. In spiritual terms, this could be realized as having faith in a higher power*. In terms of the PRTM, transcendental experiences promoted by religious beliefs can be supported by amazing rationality and simplicity. Kurzweil could describe such phenomena by claiming they draw on the outermost, and therefore highest, categorical levels of human understanding and represent huge amounts of pattern recognizers uniting together to provide an ultimate truth or understanding. Cultivation of such unity in mental action is the goal of yoga, which seeks to unite the practitioner with the absolute truth or Divine through focus and the re-dedication (to higher purposes) of the lower-level pattern recognizers attached to the material world.</p><h4>I think –therefore I am</h4><p>Kurzweil claims that application of his PRTM’s mechanics holds the potential to create a form of consciousness. Currently, no one believes their cell phone or computer is conscious and would not consider themselves a murderer if they happened to drop and break such merchandise. However, as computational systems become more and more like humans a conceptual muddle is created within the gray-areas surrounding the definition of consciousness. Kurzweil refers to the capacities of self-reflection and metacognition as parameters for determining consciousness, but states that the definition of consciousness cannot be scientifically ascertained because it is essentially a philosophical question. Philosophy holds many views on consciousness, but the ability of an individual to have a subjective experience is a commonly upheld baseline. Rene Descartes embodied this principle with “I think –therefore I am.” Descartes was a 17th century French philosopher who tried to scientifically prove the existence of anything without assuming any preconceived axioms, only to find that he could not prove the existence of anything (as further proof of the incompleteness theorems). Ultimately, Descartes realized he could only conclude the existence of one thing –himself, the person attempting to prove anything. This, in its essence, depicts subjective experience. Descartes could conclude that his mind elicited a thought to create his conscious experience and this proves his existence. Kurzweil contends that the “qualia,” or subjective experiences of an individual imply that a mind acts with a brain to create a unique conscious. Under this logic, cell phones and supercomputers of the future that can reason their own existence will be conscious and will be considered to have minds of their own. When Data was to be pulled apart on <em>Star Trek: The Next Generation</em>, his belief in his existence lead him and others to fight for his ‘life’.</p><h4>A supercomputer of human knowledge could be considered more conscious than an individual human being</h4><p>Assuming the existence of consciousness, the true depiction of consciousness is still debatable. One school of thought, dualism, claims that mind and consciousness are completely separate and hold different forms. Under this theory, material bodies hold spiritual souls that are composed of a different substance that may or may not interact with the material world. Dualistic theory implies that machines implementing Kurzweil’s PRTM will never achieve consciousness unless the spiritual element necessary for consciousness is somehow injected into the mechanical parts. This view thereby holds that technological devices will never be able to recreate or replace the essential soul essence located in the material brain that enables it to have subjective experience and be truly conscious. Another theory is panprotopsychism, which views all physical systems with the capacity for action as conscious. Under this theory, a rock that lacks any systematic abilities within itself is practically unconscious. However, a light switch that turns an electrical system on and off is slightly conscious in its ability to influence the material world. This philosophical theory depicts the experience of physical systems in the real world accurately, but can be said to have an ominous air. In George Orwell’s <em>Animal Farm</em>, the animal community is devastated and exploited after one of the observed Seven Commandments of Animalism changes to read, “All animals are equal, but some animals are more equal than others” [5]. Regarding all physical systems to be conscious, yet recognizing that some are more conscious than others rings with the same tone and could be detrimental when applied to society. None-the-less, Kurzweil supports panprotopsychism and states, “consciousness is an emergent property of a complex physical system” [Kurzweil 203]. In his view, physical systems can achieve different levels of consciousness, such that a mechanically efficient colony of ants can be considered more conscious than an individual ant. Kurzweil’s ant example puts the effect of humans creating consciousness within infinitely resourceful computational devices into perspective: that one day a supercomputer of human knowledge could be considered more conscious than an individual human being. Such a machine has the potential to dominate the world, just as the pigs grew to dominate their animal farm, by exploiting the fact that it is “more conscious than others.”</p><h4>The ultimate limit of biology</h4><p>Kurzweil sees the ultimate application of recreating mental abilities with technology as overcoming the inherent limitations of being bound to a biological body. He brings up the phenomena of the natural turnover of cells that continuously takes place in the body, with cellular layers being shed and replaced continuously. In this light, bodies are not statically the same from day to day but instead are dynamically changing. Animals with typically long lifespans are known to do this more effectively, demonstrating that it is healthy for the material “self” to change while completely retaining its identity. Therefore, Kurzweil concludes, the natural process of gradual replacement can be optimized by upcoming technology to replace mortal biological parts with immortal devices that perform the same functions. He does not think the individual’s identity will be altered differently than what is already experienced in the natural turnover within the biological self. Instead, the conversion to a new technological form will enable the replaced biological systems to be copied, backed-up, and re-created if ever a problem were to arise. In essence, no one could lose their memories or mental functionality and no one could ever die by losing their conscious identity. With this sentiment, Kurzweil crosses the line from friendly scientist into setting the stage for the human race to play God. The implications of life not subject to biological mortality will change everything about the world, and could lead to its destruction in many ways. What if people like Hilter never saw their time come to an end? Without natural biological turnover, Mother Earth would not be able to support her children. And finally, can technology bear the weight of trusting it to emulate the current experience of an essentially spiritual personality capable of subjective experience? Under these considerations, it is highly possible that a mechanical device replacing the neural tissue will not fully capture an essential element required to remain human. A missing component in this regard may abstract one away from being truly human. If Kurzweil really thinks people should replace the neurons in their brain with devices, he is placing a huge gamble on the accuracy of his theory of mind or any other theory applied to this endeavor. It can be argued that a human being will never recreate humanities’ true essence, that reductionists like Ray Kurzweil can shrink an image down to its parts but when they re-expand the image they will find it to be fuzzy, pixelated, and dissatisfying in essence. Obviously, this is bad when applied to human lives and the future of the species.</p><h4>The context of a disprovable theory</h4><p>Kurzweil’s Pattern Recognition Theory of Mind first establishes that “1 + 1” can be justified to equal “2” by outlining essential axioms assumed in application of the theory. The first axiom describes the theory’s fundamental component of a pattern recognizer, which Kurzweil describes as one hundred or so cells within a cortical column of the neocortex. His second axiom is that wirings between such pattern recognition units create a hierarchical ability in thinking. Implemented behavior in a system runs as lists through patterns in a manner similar to the programming language LISP. The sequential elicitation of conceptual patterns is capable of creating subjective experience and is Kurzweil’s proposed model for describing the computational behavior of the neocortex. Kurzweil offers a beautifully articulate theory of mind that resonates deeply with the human experience and its causative mental functions. His model may prove to withstand the test of time for the next decade or two, but if it is ever utilized in the replacement of a human brain, these brain-replacement people will be putting their souls on the line in the context of a disprovable theory. Kurzweil’s Pattern Recognition Theory of Mind is mathematically solid and seemingly accurate even in the philosophical context, but it is uncertain whether its application would actually capture humanities’ transcendental nature.</p><p>*This “higher power” is not an oppressive authority figure. Though it is worth noting that higher power can potentially be about connection in the same way a computer is more powerful with access to the internet.</p><p><strong>Works Cited</strong></p><p><strong>[Kurzweil page#] </strong>Kurzweil, Ray. How to Create a Mind: The Secret of Human Thought Revealed. 2012. Viking Penguin. Kindle Edition.</p><p><strong>[2]</strong> Hebb, Donald. <em>The Organization of Behavior.</em> 1949.</p><p><strong>[3]</strong> Quiroga et al. “Invariant visual representation by single neurons in the human brain.” June 2005. Nature.</p><p><strong>[4]</strong> Huth et al. A Continuous Semantic Space Describes the Representation of Thousands of Object and Action Categories across the Human Brain. Dec 20, 2012. Neuron 76.</p><p><strong>[5]</strong> Orwell, George. <em>Animal Farm. </em>1945.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d93e3276ffcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>