<?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[Project Heuristics - Medium]]></title>
        <description><![CDATA[A colorful mixbag - Medium]]></description>
        <link>https://medium.com/heuristics?source=rss----83d9ba98af3b---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Project Heuristics - Medium</title>
            <link>https://medium.com/heuristics?source=rss----83d9ba98af3b---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:28:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/heuristics" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Collaborative form editor using WebSockets | Web Sockets in Golang and React]]></title>
            <link>https://medium.com/heuristics/collaborative-form-editor-using-websockets-web-sockets-in-golang-and-react-20d123f40447?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/20d123f40447</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Uddeshya Singh]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 09:00:34 GMT</pubDate>
            <atom:updated>2021-03-26T06:19:51.513Z</atom:updated>
            <content:encoded><![CDATA[<p>Want real-time communication across clients and asynchronously handle every incoming event across client modules and broadcast it to multiple registered services <strong>without long polling </strong>for the data? Want to create a chatting application? <strong>Websockets</strong> might just be your best friend for this particular use case!</p><p>Psst. You are at the first post of a three-part series if you are interested in deep diving in one of the technically intensive posts, feel free to check out part 2 and (or) 3.</p><ol><li>Collaborative form editor using WebSockets | Web Sockets in Golang and React</li><li><a href="https://medium.com/geekculture/designing-a-websocket-server-in-golang-reformers-golang-implementation-strategy-bcd2dc9e368e">Designing a WebSocket server in Golang | Reformers backend implementation strategy</a></li><li><a href="https://medium.com/geekculture/designing-a-websocket-client-with-notifications-in-reactjs-reformers-reactjs-implementation-c669daf27d46">Designing a WebSocket client with notifications in ReactJS | Reformers frontend implementation strategy</a></li></ol><h3>What is WebSocket? 🤓</h3><p>In Wikipedia terms, <strong>WebSocket</strong> is a computer communications protocol, providing full-duplex communication channels over a single TCP connection, which is the best definition one could give, but allow me to water it down a little.</p><p>I’ll be citing this amazing blog written by <a href="https://blog.teamtreehouse.com/an-introduction-to-websockets">Matt West</a>[1] for Treehouse</p><blockquote>WebSockets provide a persistent connection between a client and server that both parties can use to start sending data at any time.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*cj7XRRO2AMYS4wekcAgxRQ.jpeg" /><figcaption>WebSockets image from <a href="https://www.vaadata.com/blog/websockets-security-attacks-risks/">https://www.vaadata.com/blog/websockets-security-attacks-risks/</a></figcaption></figure><p>So, for real-time interaction between two parties, you don’t need to periodically fetch data via GET requests or long poll the server for any updates, the server will push it to you using the established <strong>TCP</strong> connection directly. You can read the Treehouse blog link given above to understand the entire working of WebSocket protocol as it demands an entire post of its own.</p><h3>Pros and Cons of WebSockets</h3><h4>Cons</h4><p>Bad things first, once your connection is terminated, you can’t recover it automatically. You have to periodically check for connection establishments (a cron checker would be nice here)</p><h4>Pros</h4><ol><li>It keeps a unique connection open, hence eliminating the latency issue</li><li>WebSockets generally won’t use XMLHttpRequest and headers won’t be sent every time we need to get more information from the server.</li><li>You don’t need to send multiple HTTP requests to fetch new messages, hence no polling is required ❤</li></ol><h3>What was your product again? 😮‍💨</h3><p>Glad you asked. Allow me to introduce you to a fun project named <strong>Re-Formers</strong>. A collaborative form editor with live interaction user interaction, something like google forms minus the vast variety of question format (and the support, of course).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujzagG3ltEWbBau6NQ_WoA.png" /></figure><p>Let me explain, it’s a simple room where you can insert a question, edit existing ones or delete the ones you don’t like. A client will log you into the room with a <strong>color + name</strong> combination for 30 minutes.</p><ol><li>Create a new question with a title.</li><li>Editing the existing questions written by other members</li><li>See the version history of a question and check what was changed when.</li><li>Delete an existing question.</li></ol><p>What it can’t do is saving the form and persist actual user login authentication and accept responses for the form (because the aim is to provide a working UI and the user broadcast feel, hence no databases used)</p><h3>But we have Google Docs / Sheets / Slides etc too so why only forms? 📃</h3><p>Document editing and synchronization have been performed millions of times before on the web. Slides and Sheets are more complex use cases when your entire goal of making the product is trying out WebSockets, and chatting applications are again common picks for beginner projects, hence, the google forms.</p><h3>Current Engineering (Proof of Concept level) 👷</h3><p>The current high-level workflow can be seen in the diagram depicted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lE7I867tx9N26puLbFcOpg.jpeg" /><figcaption>High-level architecture</figcaption></figure><p>Multiple React JS Clients connect to a single Golang server (maximum 30 at once for now) and they all interact to a single list of questions and perform the desired operations or just watch as the room unfolds, while the server broadcasts the updates in real-time.</p><h3>Destination Product Architecture 🏗️</h3><p>The diagram below is the final architecture this product would like to reach, even though it’s a far cry from the current arch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7icRTze0XFOolPvLIAs7nQ.png" /></figure><p>A client will request an available TCP connection to a deployed pod and once the user is authenticated, a secure WebSocket connection is established to a certain deployed server, where the client will be granted entry to a form editing room. All the data will be persistent and stored in a database (and the updates will be written in batches, with a consumer built specifically for that role in Redis)</p><h3>What’s Further? 🍂</h3><p>You can find the technical implementation of the project in-depth for environment-specific components, i.e. the client-facing component and the server in the next two blogs.</p><p>This post was to elaborate on the basic layout of the Re-Formers project and what it’s all about, and why WebSockets make sense to be used instead of classic REST APIs.</p><h3>Resources 📚</h3><ol><li><a href="https://blog.teamtreehouse.com/an-introduction-to-websockets">Why is WebSockets amazing?</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20d123f40447" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/collaborative-form-editor-using-websockets-web-sockets-in-golang-and-react-20d123f40447">Collaborative form editor using WebSockets | Web Sockets in Golang and React</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Android Emulators on AWS EC2 [1/3] | ARM Architecture and Genymotion | Solutions for a…]]></title>
            <link>https://medium.com/heuristics/deploying-android-emulators-on-aws-ec2-1-3-arm-architecture-and-genymotion-solutions-for-a-2ef3238542d5?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ef3238542d5</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[emulator]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Uddeshya Singh]]></dc:creator>
            <pubDate>Sun, 29 Nov 2020 13:19:15 GMT</pubDate>
            <atom:updated>2021-02-18T18:51:23.696Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploying Android Emulators on AWS EC2 [1/3] | ARM Architecture and Genymotion | Solutions for a Solo Developer</h3><p>Exploring the use cases where android emulators come in handy, how to set them up on the EC2 instances, what variants you can run on cheap t2 instances, and what a solo developer should expect when planning to use AWS instances for cloud emulator deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vAz7UHyEcR1RvRun" /><figcaption>Photo by <a href="https://unsplash.com/@gilleslambert?utm_source=medium&amp;utm_medium=referral">Gilles Lambert</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Disclaimer: The author of this blog post documents his opinions and experiences towards android ROM and kernel in particular, anything other than that like android app development and gradle builds are not his forte and any pieces of advice will not be found under this post. Thank you for the patience, Read on!</blockquote><p>Psst: This post is also available with cod embeddings on <a href="https://dev.to/uds5501/deploying-android-emulators-on-aws-ec2-1-3-arm-architecture-and-genymotion-solutions-for-a-solo-developer-32p3">dev.to!</a></p><p>This post is a part of the series <strong>Deploying Android Emulators on AWS EC2</strong>.</p><ul><li>You are at part 1.</li><li>Link to Part 2 <a href="https://medium.com/heuristics/deploying-android-emulators-on-aws-ec2-2-3-bare-metal-instances-and-hardware-acceleration-a33e1f8ae79d">Bare Metal instances and Hardware acceleration| Solutions for an organization</a></li><li>Link to Part 3 <a href="https://singhuddeshyaofficial.medium.com/deploying-android-emulators-on-aws-ec2-3-3-autoscaling-bare-metal-instances-cost-optimizations-8fc4e636b81d">Autoscaling Bare Metal Instances| Cost optimizations for organization</a></li></ul><h3>Introduction and Use Cases 😌</h3><p>3 Months into Trell and I have a pretty interesting project in my hand, albeit it was on the tech which was completely alien to me, the fabled android kernel, and all the complications which come with it. The task is a simple automation pipeline for application testing on multiple new devices, a purpose which android emulators can serve pretty well. But this kind of pipeline can serve multiple purposes like :</p><ul><li>Thorough testing of apps via background pipeline while not consuming your system’s resources and you can carry on with your development.</li><li>Testing of applications on android smartphones that you do not physically possess.</li><li>Logging and Monitoring the behavior of your firebase event tags on multiple devices at once.</li><li>CI/CD pipeline loves an android emulator and all your unit tests would pass through them.</li></ul><h3>What is an Android Emulator? 🥧</h3><p>I am around 3 years late to this party (but definitely in sync with the time in terms of the use case) but still, let&#39;s get done with the formality and move on to the good stuff.</p><p>Taking the definition directly out of Android’s book, we can define the Android Emulator as a tool that simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device.</p><p>The emulator provides almost all of the capabilities of a real Android device. You can simulate incoming phone calls and text messages, specify the location of the device, simulate different network speeds, simulate rotation and other hardware sensors, access the Google Play Store, and much more.</p><h3>Setting Up the Emulator Environment 🧑🏾‍💻</h3><p>Now, let’s move on to setting up the emulator environment and the instances we would need along with it!</p><p>I’ll be using a classic t2.medium instance (Ubuntu 18.04, 64 bit, x86 arch) for our purpose, with adding 25 GB storage to the instance (believe me, classic 8GB won’t cut it), make sure you have the authentication (.pem) key for logging into your instance and let it bootup!</p><p>One important thing to note about this entire usage is that you can’t access your emulator using GUI interfaces (actually, you can but that’s something I have planned for some later post :P ), so we need to make sure that anything and everything we do is done solely by CLI (aka, our good old terminal!)</p><p>Now, once you have logged into your t2.medium instance, you’ll need to clone this repository: <a href="https://github.com/uds5501/Emulator-Environment-Setup">Emulator-Environment-Setup</a> into your instance. This will contain your command-line tools zip file. (currently hosted version by android doesn’t work for me :/)</p><p>Now follow the commands step by step.</p><pre>$ sudo apt update &amp;&amp; sudo apt install default-jdk unzip -y<br>$ cd Emulator-Environment-Setup<br>$ unzip commandlinetools-linux-6609375_latest.zip<br>$ mkdir ../cmdline-tools<br>$ mv tools ../cmdline-tools</pre><p>By now you have taken care of the basics, now we need to set the path variables (which would save us the pain of writing the entire path every time we want to call sdkmanager or emulator etc.)</p><pre>$ nano ~/.bashrc</pre><p>Now make sure your bashrc file looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHpUEV6i3x0oVf6uwnyjRg.png" /><figcaption>bashrc file</figcaption></figure><p>Save this file (Ctrl + S) and get out (Ctrl + X)</p><p>Now, load the preferences and you are good to use the SDK tools, and accept all the licenses by typing y .</p><pre>$ source ~/.bashrc<br>$ sdkmanager --licenses</pre><p>You shall witness a screen like this!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shb1vUcXB6PHUBqRnHcclA.png" /></figure><p>Now, we just need to set up the emulator, platform-tools and we can create our own Android Virtual Device!</p><pre>$ sdkmanager &quot;emulator&quot;<br>$ sdkmanager &quot;platform-tools&quot;<br>$ mkdir platforms</pre><p>With this, your basic environment setup is done! Now let’s take care of creating a virtual device.</p><h3>Android Virtual Device on AWS 😁</h3><p>To create an AVD, you need to first select the system image it will be built on, you can list all the SDK images by typing:</p><pre>$ sdkmanager --list | grep system-images</pre><p>You will find multiple system images tailored to multiple devices, with a general format of</p><blockquote>“system-images;&lt;version&gt;;&lt;gapi_setting&gt;;&lt;emulator_architecture&gt;”</blockquote><p>Take a look at the given configurations, they are all of android-25 (Nougat) and come in variants of android_tv, default, google_apis etc, with 2 architectures namely ARM and Intel’s x86 which further bifurcates into 32 bit and 64-bit variants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fResGkPcAjFLmONsM0MyHA.png" /></figure><p>But we will specifically be using <strong>system-images;android-25;google_apis;armeabi-v7a </strong>version. Now let me justify this choice.</p><h4>Why android-25? 🤔</h4><p>This is something which Trell needed for checking firebase event logging, anything less than android-29, so picking a decently lower version made sense to observe backward portability of the app.</p><h4>Why the google_api version? 🙇🏽‍♂️</h4><p>We can perform a wide variety of operations on our android emulator if they are rooted by default (we have the superuser access). To connect into root mode and access emulator shell using the command line, we need this version to be “default” or “<em>google_apis”</em> because <em>google_apis_playstore </em>won’t allow root connection from the android debugging bridge (in intel architectures) but in ARM (like this one) you can take anyone, all will be rooted by default!</p><h4>Why armeabi-v7a architecture? 💁🏾‍♂️️</h4><p><strong>v7a</strong> represents a 32-bit version of the ARM architecture (something which is required for the trell app). Now, why ARM? because Intel (x86) architecture requires hardware acceleration to work, and this can be done with either Intel HAXM (in windows) or KVM (in Ubuntu). You can try this sequence of commands to check if KVM can be enabled on your instance or not.</p><pre>$ sudo apt install cpu-checker -y<br>$ kvm-ok</pre><p>This would greet you with the following message.</p><pre>INFO: Your CPU does not support KVM extensions<br>INFO: For more detailed results, you should run this as root<br>HINT:   sudo /usr/sbin/kvm-ok</pre><h4>Why do intel emulators not work in these EC2 instances? 😭</h4><p>Before we get into this, let’s take a quick look at how emulators work. QEMU is a tool that mimics guest device hardware and it then translates the <strong>Application Binary Interface (ABI) </strong>of the guest device to match that of the host device.(<em>armeabi-v7a </em>to <em>intel x86_64</em> in this case). Now to speed up this complex and slow process, <strong>hypervisors</strong> are introduced.</p><p>Intel’s HAXM (Hardware Acceleration Execution Manager) is a hypervisor component for Windows and macOS. There’s KVM (Kernel-based Virtual Machine) for Linux. With hardware-acceleration, the Android emulator can run virtual devices at speeds similar to that of your workstation CPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9_z6yIBay3Sri-njzl0lw.png" /><figcaption>2 layer virtualization</figcaption></figure><p>When we choose <strong>system-images;android-25;default;x86</strong> we are trying to run a virtual machine <em>within</em> a virtual machine. It is a second level or <em>nested virtualization</em> that we are trying to achieve which, unfortunately, is not yet supported. The Intel hardware supports only a single level of hardware-assisted virtualization, adding support for efficient (i.e., not painfully slow) nesting requires a lot of clever software engineering in hypervisors.</p><h3>Run a Testing Device 🏃🏽‍♂️</h3><p>All the theory currently stated as to what will and what won’t work, let’s focus on creating a test virtual device. Follow the steps to do so!</p><pre>$ sdkmanager &quot;system-images;android-25;google_apis;armeabi-v7a&quot;<br>$ echo &quot;no&quot; | avdmanager create avd --name &quot;testDevice&quot; -k &quot;system-images;android-25;google_apis;armeabi-v7a&quot;</pre><p>So, you just created an AVD, how to check that out? You can use avdmanager to check your virtual android devices.</p><pre>$ avdmanager list avd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*evmJM3yvdiZOFZ5jM53hxA.png" /><figcaption>virtual devices</figcaption></figure><p>Now, let’s run this virtual device!</p><pre>$ emulator -ports 5554,5555 -avd testDevice -writable-system -no-window -no-audio -gpu swiftshader_indirect -show-kernel &amp;</pre><p>-ports 5554,5555 define the connection ports on which the android debug bridge will connect to this emulator (in this case, 5554) and they have to be consecutive!</p><p>-writable-system would give you access to modify any file or push any file as you wish in root settings.</p><p>-no-window would simply run the emulator headless (without this flag, it won’t work because we don’t have any OpenGL based graphics setup on a CLI)</p><p>-no-audio would take away it’s audio support (something I’d suggest you do)</p><p>-gpu swiftshader_indirect to prevent a boot loop.</p><p>-show-kernel something for you to maintain your sanity and check the kernel’s progress as it boots up because it WILL take forever (60–90 minutes) to boot up properly.</p><p>These are the testimonials on why you should <strong>not </strong>go for something this slow because this would be counterproductive, you can rather test on your local devices rather on a device which will take 1 hour to function properly and still give you an average of 2.5 minutes to install a normal APK!</p><h3>Why Genymotion and how good is it? 📱</h3><p>If you are a solo developer and can afford the Genymotion PaaS subscription ($0.5 + amazon instance charges), it’s your way to go. For example, I am using m4.xlarge with Genymotion PaaS on top, it’ll cost you <strong>$0.7/hr </strong>and it will be a decent deal if you can afford it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F476891197%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F476891197&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F990798350_640.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="640" height="360" frameborder="0" scrolling="no"><a href="https://medium.com/media/49e2f98a2536ec1d0bd1f3c253a6e1d2/href">https://medium.com/media/49e2f98a2536ec1d0bd1f3c253a6e1d2/href</a></iframe><p>Genymotion is a go-to emulator for many organizations still and the amazing support and speed which their emulators provide are good enough for the purpose we want to solve, if and only if, your pocket allows you that much freedom.</p><p>But, still, $0.7/hr per emulator is a bit too costly, at least if you wanna do testing on a large scale.</p><h3>Closing thoughts and what to expect from the upcoming post? 👨🏽‍🏫</h3><p>In this post, we explored the basic setup of an emulator environment and how to set up a simple AVD. What works in a general t2 instance and what are the alternatives.</p><p>In the next one, we’ll explore how to set up multiple emulators in a single instance and explore the android debug bridge in depth while customizing our device and run simple applications with intel emulators (which are at least 10x faster than these ones)!</p><h3>References and Links🔗</h3><ul><li><a href="https://github.com/uds5501/Emulator-Environment-Setup">Github Repository for Tools</a></li><li><a href="https://developer.android.com/studio/run/emulator">Official Android Emulator Documentation</a></li><li><a href="https://gist.github.com/atyachin/cf1690085173e1fabc07b9acc7af3de6">Atyachin’s Gist on Environment Setup</a></li><li><a href="https://www.browserstack.com/android-emulators#how-do-android-emulators-work">How do emulators work?</a></li><li><a href="https://stackoverflow.com/a/48742008/9870229">Nested virtualization not working in EC2 instance</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ef3238542d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/deploying-android-emulators-on-aws-ec2-1-3-arm-architecture-and-genymotion-solutions-for-a-2ef3238542d5">Deploying Android Emulators on AWS EC2 [1/3] | ARM Architecture and Genymotion | Solutions for a…</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Android Emulators on AWS EC2 [2/3] | Bare Metal instances and Hardware acceleration|…]]></title>
            <link>https://medium.com/heuristics/deploying-android-emulators-on-aws-ec2-2-3-bare-metal-instances-and-hardware-acceleration-a33e1f8ae79d?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/a33e1f8ae79d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[emulator]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Uddeshya Singh]]></dc:creator>
            <pubDate>Sun, 29 Nov 2020 13:18:59 GMT</pubDate>
            <atom:updated>2021-02-18T18:49:43.802Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploying Android Emulators on AWS EC2 [2/3] | Bare Metal instances and Hardware acceleration| Solutions for an organization</h3><p>“You can invest more into android emulator hosting hardware (i.e. get bare metal instances) and reap the benefits later” will be the tagline I would start with because that really is the gist of this entire post (minus some really cool demonstration scripts I’ve got for you)</p><p>This post is a part of the series <strong>Deploying Android Emulators on AWS EC2</strong>.</p><ul><li>Link to part 1 (<a href="https://medium.com/swlh/deploying-android-emulators-on-aws-ec2-1-3-arm-architecture-and-genymotion-solutions-for-a-2ef3238542d5">ARM Architecture and Genymotion | Solutions for a Solo Developer)</a></li><li>You are at part 2.</li><li>Link to part 3 (<a href="https://singhuddeshyaofficial.medium.com/deploying-android-emulators-on-aws-ec2-3-3-autoscaling-bare-metal-instances-cost-optimizations-8fc4e636b81d">Autoscaling Bare Metal Instances| Cost optimizations for organization</a>)</li></ul><p>Psst. This post with code embeddings is also available at <a href="https://dev.to/uds5501/deploying-android-emulators-on-aws-ec2-2-3-bare-metal-instances-and-hardware-acceleration-solutions-for-an-organization-47l9">dev.to</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AGsm-84pfStujdl2" /><figcaption>Photo by <a href="https://unsplash.com/@shauste?utm_source=medium&amp;utm_medium=referral">Sven</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Make your emulators Faster! 💥</h3><p>Let’s pick up from where we left off and talk about making your emulators <strong>faster</strong>. In the normal t2 instances, as we know, there is a hypervisor layer on top of the instance hardware, hence abstracting the hardware layer from the emulator we want to run on it, and thus, we can’t use out good old hardware acceleration on top of it.</p><p>But <strong>what if,</strong> we take away the hypervisor layer? No, you can’t do it with a piece of code but you can definitely get it by investing some odd $4 per hour and get a machine that can run 40 emulators at once (tried and tested statistic).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIgL4g1KOSVSOag8f0Gy8Q.png" /><figcaption>How virtualization works in bare metal</figcaption></figure><p>That’s exactly how we pulled off a mass testing fleet with a variety of emulators all running simultaneously on a single machine. Since the hypervisor layer is stripped away, you get an emulator which is at least <strong>10 times </strong>faster than the old <strong>armeabi 64bit</strong> models.</p><h3>Isn’t it too costly? 💸</h3><p>It’ll definitely take investment and on-demand instances are really costly by amazon (or really any cloud provider) as far as bare metal instances are concerned, but let’s really do the math.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQm1trAou5c5ngax91XRRw.png" /><figcaption>some financial math :P</figcaption></figure><p>A high performing Genymotion PaaS setup would cost you: $ 0.7 per emulator</p><p>A bare metal instance at maximum load would cost you: $ 4.8/40 = $0.12 per emulator.</p><p>See? Simple maths. To get a profitable testing fleet, you really do need to splash the cash (hence the title, solutions for an organization)</p><h3>Soo, which system image to pick? 🤔</h3><p>I’ll recommend android-28’s google API version (that too x86 64-bit version) for further checking out the emulators. To get that system image, please run the following commands</p><pre>$ sdkmanager &quot;system-images;android-28;default;x86_64&quot;</pre><p>But why?</p><ul><li>This system image has a fairly functioning Google Apps support.</li><li>Enabling root access isn’t much of a pain, a simple command (adb root) would do the trick.</li><li>You can play around with your emulator configurations and convert this AVD into whatever device you wish (I mean the identity, of course)</li></ul><h3>Enabling hardware acceleration in bare metal 🏃‍♂️</h3><p>In any bare metal instance (let’s say m5.metal), we need to follow the old instructions which we did so far in the first post. Now follow the following commands to set up the KVM hypervisor in ubuntu 18.</p><pre>$ sudo apt-get install qemu-kvm libvirt-bin virtinst bridge-utils cpu-checker</pre><pre>$ sudo usermod --append --groups kvm &#39;echo $USER&#39;<br>$ echo &#39;KERNEL==&quot;kvm&quot;, GROUP=&quot;kvm&quot;, MODE=&quot;0666&quot;, OPTIONS+=&quot;static_node=kvm&quot;&#39; \<br>    | sudo tee /etc/udev/rules.d/99-kvm4all.rules<br>$ sudo udevadm control --reload-rules<br>$ sudo udevadm trigger --name-match=kvm</pre><p>and this should be it. Now you can start any emulator by a simple command</p><pre>$ emulator @emulatorName</pre><p>and this will automatically utilize KVM hypervisor to boot your emulator (PS, if you are using the system image of android-28 and x86_64 architecture, you should see your emulator booting up within 20 seconds).</p><p>And this wraps us our parts on how to run fast emulators, how about, we try how to maybe install, run and uninstall apps in our emulator programmatically?</p><h3>Setup the repository for demo 🏢</h3><p>The aim of this repository is to empower anyone to set up the emulators and try them out in order to witness the beauty (and the pain, if you have &lt; 8 GB of RAM in your system) these Android emulators carry with them.</p><p>Head over to<a href="https://github.com/uds5501/Emulator-CLI-Autocompleter"> Emulator CLI Autocompleter</a> and follow the instructions in Readme to set it up!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_N1dF05tXWPE_kSBI45DA.png" /></figure><pre>$ sdkmanager &quot;build-tools;30.0.2&quot;<br>$ export PATH=$PATH:~/path-to-built-tools/build-tools/30.0.2</pre><p>The following CLI tool gives you an auto-completion feature in certain areas like system image picking, AVD boot, and APK choices. The repository has been created with python as the scripting tool and <a href="https://github.com/prompt-toolkit/python-prompt-toolkit">python-prompt</a> as the auto-completion support.</p><p>Psst… the following demonstrations have been done on an 8 GB, i7 system, So the results are at least 30–40 seconds slower than in actual systems.</p><h3>Creating an AVD programmatically ⚙️</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F484529556%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F484529556&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1003674726_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1840" height="1010" frameborder="0" scrolling="no"><a href="https://medium.com/media/6026643567a679c1be540105650fbef4/href">https://medium.com/media/6026643567a679c1be540105650fbef4/href</a></iframe><p>Here we can create an AVD programmatically using a script, currently, 3 options are provided for system images which you have to pre-install using standard SDK manager installation commands.</p><p>The python prompt helps in selecting the SDK image you would like to pick, saving all the words you would’ve to type xD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vIOYa1QLc28cbEEos55AmA.png" /></figure><h3>Running an entire demo loop on created AVD 💎</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F484529596%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F484529596&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1003674723_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1840" height="1010" frameborder="0" scrolling="no"><a href="https://medium.com/media/08be4ba5bca0fbf945629d42967dac59/href">https://medium.com/media/08be4ba5bca0fbf945629d42967dac59/href</a></iframe><p>In this particular loop, we are going to install our good old Twitter app in one of AVDs and see how smoothly it installs, runs, and finally gets uninstalled on 8 GB of host RAM.</p><p>In the demonstration, it’s a Twitter application, you can run any apk you want but you would need to put the APK in the apk/ directory for the prompt to load the suggestion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7D6qnT1SorfvRTpIe7-yQ.png" /><figcaption>AVD autosuggestion</figcaption></figure><p>In the above image, you can see that the tool captured 7 AVDs on the local system and proceeds to suggest the ones which match the name you are typing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLoerAmFipY7clirbpAs4Q.png" /><figcaption>APK suggestion</figcaption></figure><p>In the above image, the auto-completion suggests the APK and the package name it carries, the size of the application, and release versioning.</p><p>… and that would be the end of the demonstration ✨</p><h3>What to expect from the next post? 🎓</h3><p>In simple bullet points</p><ul><li>A more robust demonstration script for easily playing around with your emulators</li><li>Improvement in costing solutions and how to scale up the current solution so that it costs us 5 times cheaper but is easier to scale.</li></ul><h3>Resources 🔗</h3><ul><li><a href="https://github.com/uds5501/Emulator-CLI-Autocompleter">Github CLI Autocompleter</a> demonstration script</li><li><a href="https://github.com/prompt-toolkit/python-prompt-toolkit">Python prompt</a> tool kit</li><li>AWS instance <a href="https://aws.amazon.com/ec2/pricing/on-demand/">pricing guide</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a33e1f8ae79d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/deploying-android-emulators-on-aws-ec2-2-3-bare-metal-instances-and-hardware-acceleration-a33e1f8ae79d">Deploying Android Emulators on AWS EC2 [2/3] | Bare Metal instances and Hardware acceleration|…</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our Solitary Condition]]></title>
            <link>https://medium.com/heuristics/our-solitary-condition-f65a9959d5fc?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/f65a9959d5fc</guid>
            <category><![CDATA[solitude]]></category>
            <category><![CDATA[creative-writing]]></category>
            <dc:creator><![CDATA[Anshika Sharma]]></dc:creator>
            <pubDate>Mon, 19 Oct 2020 18:30:44 GMT</pubDate>
            <atom:updated>2020-10-19T18:30:44.760Z</atom:updated>
            <content:encoded><![CDATA[<p>The other day, my friend introduced me to her home buddy, &quot;The Pencil Wall&quot;. The name came as unpretentious as it could, it was indeed a wall; it had pencil sketches pasted all over. She told me of how she sketched something of every person she had found interesting in the past one year. This giant section of her room was basically a gallery to her interactions which she was cataloguing meticulously in her own hand. For most she had drawn faces, few were reconstructed snippets of conversations, and some were just single words she thought of as mementoes. I told her this was interesting. We then both looked at the wall for some time, drank a little rum, and dozed off to &quot;Eleanor Rigby&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*TKaf4yRI-bjAf11OAQnt-A.jpeg" /></figure><p>We are lonely. This is a realisation that I am beginning to bump-in every day as I move about and around- from my bedroom to the kitchen, from a friend to another friend, from Sundays to Mondays, and so on. We will always be lonely, I chant out loud, because it is too difficult to crack through the weights on our eyes and look onto the uncracked others. There is a lack of empathy. Its encounter saddens some of us, perhaps more than others, but what would one say to the impossibility of it, I often wonder in desperation.</p><p>Our urbanised lifestyles, to begin with, demand more from us than what meets the eye. When one side of the internet opens ways for playful connection with strange and known people, the other side continues to pull us in competitive tornadoes. We are constantly torn among various states of busy-ness. The options are laid down before us quite categorically, quite strategically. To react to that Instagram meme or to accept that LinkedIn connection, that’s a forever question. In the trade between the two, we spend ourselves.</p><p>Along with our favourite late-night shows, we have also borrowed something from the west that now runs deeper in our psyche. A French philosopher, Derrida, calls it ‘the metaphysics of presence’, I’m explaining it as an obsession to be present. We want to be present at all times. We want to be constantly occupied, we are after a tangibility of our being- in spaces, in language, in our acts. We are unable to accept ourselves outside of graphs, spreadsheets, and for some, art.</p><p>There is no empathy. There is an impossibility of empathy.</p><p>We are stranded voluntarily in the spaces we buy every day with our hours and our sighs. We don’t belong in those spaces, spaces that we occupy, spaces that come eat us at night.</p><p>Sometimes we realise this. We carry out an occupation, and call it home decor. Look at those action figures on your table, those crappy pictures sticking against your closet, perhaps you have plants hanging by the window, or a cat on your lap. We do it. We do it all the same. We constantly make efforts to diffuse our bodies into the environment we inhabit. We break ourselves a little to stick a piece on our walls. We realise the solidity of our bodies is the tyranny of our lives.</p><p>And what keeps us alone amidst this awareness is precisely our collectivity. We are alone because we are in this together. This pandemic has been teaching us the art of video calls. For work, for love, for friendship. And we have been religiously following suite, thinking maybe this could help us. But how could it solve something that has become one with our modern essence? Those calls we make, they die before one could even fix the internet. We play with hope at the end of those calls. The lags linger for long enough to seep through our bones and define us as hollow men dressed in coats and ties. Interestingly, together.</p><p>To our dismay, &#39;we&#39; remains &#39;we&#39; in isolation. The togetherness of solitude is never felt together. It is a solo act. An &#39;I&#39; could&#39;ve gone to another &#39;I&#39; with its pieces in hands, but &#39;we&#39; couldn&#39;t possibly do it. Our spaces are far too filled to be crossed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f65a9959d5fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/our-solitary-condition-f65a9959d5fc">Our Solitary Condition</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solon]]></title>
            <link>https://medium.com/heuristics/solon-ef19a9b26c4c?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/ef19a9b26c4c</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[relativism]]></category>
            <category><![CDATA[existentialism]]></category>
            <category><![CDATA[creative-writing]]></category>
            <dc:creator><![CDATA[KravMazov]]></dc:creator>
            <pubDate>Mon, 12 Oct 2020 16:37:08 GMT</pubDate>
            <atom:updated>2020-10-16T04:39:07.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NnAeOtZd8U4ieQsRSf-7w.jpeg" /></figure><p>Let me begin with a simple tale from the past and then slowly work my way to the heavy dissertation that my mind has prepared for my worthy gentlefolk. They say the statesman Solon was on a journey through Egypt when he arrived at Sais, that ancient city of the Goddess Neith, who legends say had spun a tapestry of blessings on its antique walls. Now the man was stretched thin with the travails of the travels and was in no hurry to place another step ere his parched throat had found sweet water. So he hurried to the temple of the Goddess where he met the Grand priest, of whom he importuned a pitcher of water to drink.</p><p>Now in those days, men who knew their letters were inclined to discuss the world and its will; Perhaps talk of <strong>natural philosophy</strong> as it was called back in the day. Whatever be the case morals were flung like cards on the table and every man went home supposedly wiser, or so it has been portrayed.</p><p>Anyway, the two men sat in the quiet of the sanctuary hoping that they could trade what words of wisdom they knew. The priest, in particular, was a masterful orator it turned out, with him transporting the twain to the old days of<strong> Pyrrha </strong>whose mother had opened the fabled box of misery and blight, and that old king <strong>Phoroneus</strong> who as the tales say had brought us fire. But the man’s narrative had space enough to include the tales of several other famous men and women who walked the world before the deluge with such precision and form that the marvelled Solon dropped to his knees as he attempted to count the generations of lore the priest had related. Seeing him bring forth his fingers like a tyke the old priest smiled and replied, “Oh Solon, you Hellenes are yet in the infancy of your mind. Count me one grey beard amongst you whose eyes can reminisce the old days and I shall have Neith bless them and yea.”</p><p>“I believe wise priest that not one of my fellow Greeks can look as far back <strong>across the yard</strong> as you did?”, Solon replied evidently struck by the man’s stateliness in the narration of the antiquities.</p><p>“The thing about wine or human thought for that matter,” said the priest raising a toast, “is with age it only gets better and more cured of blandness. And this is why I find your kind lacking in that treatment a thing of concern. I have yet to meet a Hellene who has his reaches far in the past. And truth is, I attribute it to the two elements,<strong> fire</strong> and <strong>water</strong>.”</p><p>“Fire and water?”, asked the confounded statesman. The priest smiled profoundly and nodded.</p><p>Solon found this statement very perplexing but knowing the man’s mettle he awaited in silence to be assuaged by some fine reasoning of his. “Your myth of Phaeton is the prime example for instance. The child of the Sun-god steals his chariot goes too close to the world and burns it in flames. It is an amusing tale as much as it is an analogy of the torment that the element brings.</p><p>And then there is the tale of Deucalion’s deluge. How he witnessed the age of Bronze wiped by the flood of Zeus. That is how water plays its part.</p><p>Now my ancient land is blessed with the Nile, so no amount of fire can ever harm its verdant banks. And neither does the land of Khem receive aught of rainfall so there lies no question of a flood. Thus antiquity lays bare all her secrets on our walls without having to fear the ravages of fire or water.”</p><p>And thus Solon was satisfied, but I was not. I understand that all these figurative talks have some nuanced meaning underlying them and it is of import that I dwell less on the verbatim and more on ideas and feelings it evokes in me, but truth be told I still felt a need to dive deep in this. So I decided to mull over the issue and arrive at what conclusions that were satisfactory enough to me.</p><p>Look, as far as I can gaze back the only thing that I have relied upon without a doubt of faith are the words that I learnt over the years. Somehow my dysfunctional existence was abetted by these monologues I had with myself for hours. In order that my <strong>soliloquies</strong> had some plinth to build upon I began to take the aid of <strong>old bearded men</strong> who had died ages ago, ere I was even there to witness the world. Now the thing about these ancient curmudgeons is that they were very particular about their <strong>rivets</strong>.</p><p>“Rivets?” You must ask confounded. Let me expand on that last line a thimbleful.</p><p>I shall begin by deconstructing everything that exists and then I shall unartfully do God’s job in a span of minutes. I shall however not bypass the fundamental inquiry which ontological inclinations make us do while also choosing to not be explicit about it.</p><p>Let us say <strong>truth</strong> is concrete. Let us assume likewise that while the<strong> antecedent immutable reality </strong>of <strong>truth </strong>(I shall explain it soon)<strong> </strong>has not been backed by sufficient evidence yet some form of an objective incorruptible entity must exist that shall both envelop all beings capable of thought and also hold strings of their fate. All the property that this entity hath shall be labelled <strong>truth</strong>. Also, this entity need not prove its usefulness since all its desirability is a quality intrinsic to it.</p><p>Where do I go from here?</p><p>Well, my options are narrow and as is known I shall try to emulate this <strong>truth</strong>, hoping that in seeking it I shall perhaps increase my chances at longevity. True that my senses are unsure as to why I must please the elements (which are naught but the attributes of the truth in question) but something intrinsic to me tells me I should. Something that is ingrained in the very fibre of my being and it tells me I must try to understand this<strong> truth </strong>because it is desirable anyway<strong>. </strong>Now as I have established the <strong>truth </strong>I am trying to understand, being immutable, is independent of my knowledge of it, neither has my awareness of it got anything to do with the purpose I have in mind for it since its immutability precedes my intention to know it. I seek it simply because I have to.</p><p>Now I am armed with two things to put into perspective the attributes that this entity holds, translating thus into how close a description I can form of this <strong>truth</strong>. It is with these two tools that I shall try to seek this absolute truth that is desirable to me. The first, my emotions are the product of my sensibilities churning in the machine that is my mind. The second the words with which I form the instrument of art with which I shall label things and discern the <strong>truth</strong>. These two fundaments shall help me build a <strong>scaffolding of thought</strong> that shall then branch and grow as my understanding of the <strong>antecedent immutable reality</strong> of<strong> truth</strong> begins turning concrete.</p><p>Further, there are two methods to understand these truths if art and words are to be considered. The first is through the study and development of the appendages of natural philosophy and the second through practical observations. I shall not dwell on which of these two methods should take a higher place in the pedestal of <strong>normative considerations</strong> since that in itself shall occupy the space of another article and therefore I shall focus on the utilities of the aforesaid.</p><p>So far I am doing great methinks, but some people shall still find a thing or two lacking in my machinery of discernment. Take <strong>Hobbes</strong> for example. The man wrote that our senses decay once the stimuli that causes movement within us is gone. This <strong>decay</strong> leads to what I would prefer terming as <strong>perversion</strong>. Thus <strong>truth</strong> shall always be distorted no matter how well I peel my eyes. This knowledge makes my scaffolding slightly weaker in itself and therefore I must rely on some alternative to strengthen it. As I have related to you before, the scaffolding of human thought is made of emotions and words(or art as some may put it) where the emotions form its matter and the words act as rivets that hold the structure together. The more the words, the more the props for a thought to form a neat picture that approaches<strong> truth</strong>, thus establishing why rivets were such a thing amongst the old men I mentioned of ere. But it goes beyond this.</p><p>If each man produces his own scaffolding of thought, combined they must form something even more remarkable and of grander scale. Imagine all these seekers of truth coming together with their own attempts at explanations of reality. But with their versions of <strong>truth</strong>, they also bring their <strong>perversions</strong> on the table making thus our reliance on the rivets even more pertinent. This relativism is in of itself a vast domain to ponder upon but I digress. Also, this compels us to share images of reality making us agree on some universals.</p><p>If I were to agree with <strong>Kant</strong> for a while concerning human reasoning, I shall be wont to expose myself to the idea that there are some universals which all our rational banter collectively agrees upon. We all agree that to kill someone who poses us no harm is a crime. Or it is wrong to, if not lie, spread misinformation. And there is a good reason for it. Everything that is man-made is said to be artificial. If I were to apply the same ideology to a colony of ant all the spit and slime that is used to build the anthill would be to the ant-Socrates an artificial construct. K-ant (apologies for this excuse of a pun) would then state, “It is imperative that some universals be agreed upon concerning all this artificial construct which the society of ants have built.”</p><p>It seems our spit and slime are the tales we use to build the human society. And to preserve its scaffolding certain universals have to be agreed upon. Which Kant artfully calls the categorical imperative. Upon these imperatives, the society of man forms his contract. Together the scaffolding of thought and these categorical imperatives create what we call a culture. An element of the culture is called a meme. And memes can be transferred by heredity just like genes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMSyMOHYqmYXBRFzPq91CQ.jpeg" /></figure><p>In the vicinity lies my interpretation of the <strong>Hand of Sabazios</strong>. This odd-looking hand is an element of culture, a meme that was passed in the ancient world giving us wonderful stories and myths and gods and new words like Deus and Zeus. I cannot count how many Gods from how many more civilizations have been represented at some point of time by this hand. This hand dear gentlefolk is a strange element of culture that exemplifies how shared and small and predictable our existence is.</p><p>Speaking of <strong>small</strong>, <strong>predictable existence</strong> I must cascadingly ponder on how fragile our world is. Which brings into mind the two elements of destruction the priest spoke of, fire and water.</p><p><strong>Phaeton’s fire</strong> is an appendage of that <strong>magnanimous element</strong>.</p><p>Phaeton the son of the Sun-god Apollo was wagered by his friends to prove that he was indeed the son of God. So he coaxed his father into handing him the solar chariot which he couldn&#39;t handle well putting every mortal in danger of burning by the sun’s glare. In the end, Zeus struck him with the lightning bolt that killed him.</p><p>Now here comes my interpretation. Apollo was the God of Wisdom in the ancient world, the light that enlightened, the bringer of reason. It was through him that<strong> truth</strong> was realized. And his son was a <strong>Demigod</strong>, a middle ground between God and man. And relying upon all that I have related so far it can be assumed that Apollo is <strong>truth</strong> and Phaeton our<strong> interpretation of truth</strong> albeit <strong>perverted</strong>. And Phaeton’s fatal gamble our attempt at emulating the truth even though we are aware of the failure that will eventually be our fate.</p><p>Thus Phaeton’s path is that of err and an internal mechanism of injury at that. I call it internal because this kind of destruction has more to do with the untamed emotions(the matter of our scaffolding of thoughts) with which we hope to admire and please the<strong> truth</strong> and imitate its perfection. This pathetic attempt at emulation is what leads to the destruction of the worlds we have so carefully built.</p><p>The priest next spoke of a deluge. The <strong>deluge which Deucalion witnessed </strong>from the mound. This is the destruction that happens from the outside. The story of the deluge is common to many cultures. God the imparter of wisdom has made humans who eventually become corrupt. Whatever they acquire inside their minds is corrupt. Their culture is corrupt. And thus God wipes the entire humanity out of the face of the earth with a flood. But this flood has more to do with the rivets than anything else if you ask me.</p><p>I have reasons to assume that when Zeus witnessed the<strong> Bronze age</strong> heading towards deprecation it was something he had anticipated from the start. Let us take the other instrument which man has to access truth. I always place faith in the art of natural philosophy since what it acquires even if by the method of <strong>empiricism</strong> is yet a contender to become concrete and near-perfect description of truth. But the fact remains that while natural philosophy in itself is an object without flaw the one who applies it is full of it.</p><p>It cannot be emphasized more how natural philosophy is still <strong>apathetic</strong> to the mould wherein all the scaffolding of the human thoughts are shaped. In its search for concreteness the props it secures is rigid and heading towards a direction which owing to its marked success at arriving near man’s desirable <strong>truth</strong> leads to nought but <strong>accumulation</strong>. This accumulation will soon manifest itself as a flood. A deluge that wipes the very thing that conceived it.</p><p>Thus the priest’s elements, these two appendages of destruction are in truth the very two appendages of the man whose search for <strong>truth</strong> eludes him further from the path of discerning the truth whose inherent appeal he is so unexplainably drawn to. And it is only from swinging to either extreme or avoiding them altogether that the walls in the city of Sais stood long enough for them to bear witness to the annals of history, with Phaeton’s fire and Deucalion’s deluge becoming nothing more than mere props to be spread via eloquent words and poesies.</p><p>Written and illustrated by <strong>Ashish Pai</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef19a9b26c4c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/solon-ef19a9b26c4c">Solon</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Le fou]]></title>
            <link>https://medium.com/heuristics/le-fou-a639188c2db1?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/a639188c2db1</guid>
            <category><![CDATA[poem]]></category>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[poetry-on-medium]]></category>
            <category><![CDATA[creative-writing]]></category>
            <dc:creator><![CDATA[KravMazov]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 20:00:07 GMT</pubDate>
            <atom:updated>2020-09-27T20:06:59.781Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*3zJnfx2UgWzGQavV5Nz0Sg.jpeg" /></figure><p>A few bottles rest on mine mantlepiece</p><p>and I wonder is this How I stay warm</p><p>Is aught that prolongs mine smile</p><p>naught but the drink’s charm?</p><p>‘No’, she said, ‘thou art not that fou;</p><p>not a slave yet thou art to this call.’</p><p>‘I am afraid’, I said with conviction,</p><p>‘I am by this melancholy world appalled.</p><p>And this here God bled</p><p>for me to stay nigh Eden’s gate</p><p>and assured I am I shall to sweet wine</p><p>forever faithful stay.’</p><p>She looked at a bottle there</p><p>‘I like this one, what’s it for?’</p><p>’Tis naught now but a kin alike’, I quoth</p><p>‘a souvenir from times yore.’</p><p>‘Family?’, she asked a wry smile alongside.</p><p>‘You have a lot of them around, don’t you?</p><p>Both in bottles and people</p><p>Do you even look at your choices all through?’</p><p>I looked her straight in the eyes.</p><p>The first proper glance after so many drunken nights.</p><p>A lot of emotions mingled in that sweet cocktail,</p><p>that in them were forever in fight.</p><p>And that conflict interests me, for it moves me</p><p>and in an eternal debate, I care to engage.</p><p>Perhaps a chance to break free</p><p>of the bondage that liquor hath placed.</p><p>‘Thy words are Gospel’, I say</p><p>She smiles, ‘Drink softly is all I pray;</p><p>for many amongst you have words of wisdom sold</p><p>but none have managed to their liquors hold.’</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a639188c2db1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/le-fou-a639188c2db1">Le fou</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Locked Down]]></title>
            <link>https://medium.com/heuristics/locked-down-b49b56892ceb?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/b49b56892ceb</guid>
            <category><![CDATA[poem]]></category>
            <category><![CDATA[creative-writing]]></category>
            <dc:creator><![CDATA[Anukriti]]></dc:creator>
            <pubDate>Thu, 24 Sep 2020 18:21:15 GMT</pubDate>
            <atom:updated>2020-09-24T18:21:15.086Z</atom:updated>
            <content:encoded><![CDATA[<p>It takes a while to hear the cries</p><p>of the land so subdued,</p><p>to sift through the many voices and</p><p>discern the rising cadence,</p><p>Our riots must have been too many,</p><p>The uproarious bickering to maintain our illusions,</p><p>too engrossing,</p><p>For what else could have ever justified</p><p>The insouciance of our lot?</p><p>In a teeming world, humdrum too has a voice,</p><p>A voice so dauntless, it has never known reverence</p><p>A voice so unconfounded, it has never ventured</p><p>to discover what it always knew.</p><p>In our sequestered abodes now we sit,</p><p>We have begun to hear you, in all your forms,</p><p>Dumbfounded and scared by turns,</p><p>Only because we are learning to be your children again,</p><p>On your sufferance yet again,</p><p>We are desorbing our filth</p><p>With the selfish love of a child,</p><p>Who has never seen nor ever known</p><p><em>how</em>,</p><p>The udder at which it feeds</p><p>Knows relief only when it has been sucked dry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*58w-TvaYFqH6x1rBeqd86A.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b49b56892ceb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/locked-down-b49b56892ceb">Locked Down</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Old Man on the Road]]></title>
            <link>https://medium.com/heuristics/the-old-man-on-the-road-71db3f28395?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/71db3f28395</guid>
            <category><![CDATA[creative-writing]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[covid-diaries]]></category>
            <category><![CDATA[empathy]]></category>
            <category><![CDATA[compassion]]></category>
            <dc:creator><![CDATA[robinjabraham]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 14:54:16 GMT</pubDate>
            <atom:updated>2020-09-21T14:54:16.591Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*sJDWUmPihGwKx1I1tzA0-Q.jpeg" /></figure><p>It was a journey into the unknown,<br>Through roads that scarcely held a milestone.<br>These were paths few had trodden,<br>Amid the ghats and valleys, they lay forgotten.<br>The wheels of our cars squealed often,<br>Along these rain-battered tracks as we proceeded, with caution.</p><p>He stood by a bend in the road,<br>Clutching a stick, his back slightly bowed.<br>His garb was aged and so was he,<br>Wrinkled in time, life had seldom let him be.<br>Owlishly, through his thickly rimmed glasses he peered,<br>As we in our cars, towards him, steered.</p><p>Stretching out his wrinkly hand, he bade us to stop,<br>A few miles further, was his village. Would we offer him a drop?<br>The afternoon sun had been relentless,<br>And the road back home seemed endless.<br>In this heat so fierce, he barely could stand,<br>Would we be so kind as to lend him a hand?</p><p>The noise of our silence was deafening,<br>The clamour of our thoughts, all too revealing.<br>The pandemic was running rife,<br>Anyone could be a hazard to life.<br>They said keeping a safe distance was necessary,<br>Being uncharitable was simply, precautionary.</p><p>So off we drove, leaving him to his fate,<br>Our hearts carrying an odd heavyweight.<br>A lonely old man on the road,<br>To whom no mercy we showed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71db3f28395" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/the-old-man-on-the-road-71db3f28395">The Old Man on the Road</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving]]></title>
            <link>https://medium.com/heuristics/moving-3b11468e8b5?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/3b11468e8b5</guid>
            <category><![CDATA[love]]></category>
            <category><![CDATA[poem]]></category>
            <category><![CDATA[moving]]></category>
            <category><![CDATA[starting-over]]></category>
            <category><![CDATA[creative-writing]]></category>
            <dc:creator><![CDATA[shelly]]></dc:creator>
            <pubDate>Fri, 21 Aug 2020 17:07:56 GMT</pubDate>
            <atom:updated>2020-08-21T17:07:55.608Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AuMT-c3kzxRrxFheVRxy2A.jpeg" /></figure><p>I never liked the place,</p><p>That city just wasn’t for me.</p><p>It brimmed with tourists;</p><p>Teeming crowds,</p><p>Nesting on the colored streets.</p><p>Bathing in the sun,</p><p>Drowning in the neon lights</p><p>And you know me,</p><p>Crowds make me reek.</p><p>People came there</p><p>From grey cities dissolved</p><p>In gallons of smog;</p><p>To watch rivers merge and bleed</p><p>And to view the red trees in bloom,</p><p>Or to witness the sun set</p><p>Between pointed peaks.</p><p>Yes, it was all too beautiful</p><p>But sightseeing has</p><p>never been a priority.</p><p>I, for one,</p><p>Couldn’t live there</p><p>If it rained gold instead of acid.</p><p>It lacked a certain charm</p><p>Maybe a Starbucks or a zoo,</p><p>Or maybe a little less sulfur</p><p>Would have been good too.</p><p>maybe, I could even say perhaps</p><p>The city is clean and serene</p><p>It was just that it lacked you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b11468e8b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/moving-3b11468e8b5">Moving</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Contemporary Thoth]]></title>
            <link>https://medium.com/heuristics/contemporary-thoth-60bec88a0762?source=rss----83d9ba98af3b---4</link>
            <guid isPermaLink="false">https://medium.com/p/60bec88a0762</guid>
            <category><![CDATA[creative-writing]]></category>
            <dc:creator><![CDATA[KravMazov]]></dc:creator>
            <pubDate>Thu, 30 Jul 2020 18:51:32 GMT</pubDate>
            <atom:updated>2020-07-30T18:51:32.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0DUxyogb8KrTQ4pZx7dmpg.jpeg" /></figure><p>I have a <strong>confession</strong> to make; I may have arrived at a juncture whence I can declare solemnly that all the <strong>transgressions</strong> or <strong>deficiencies</strong> that plague our race cannot escape my <strong>all-seeing eyes</strong>, even to its remotest subtleties. This I say without a <strong>hint of hubris</strong>, though I may seem possessed by it. Also, I have fair reasons to assume that the aforesaid statement may have made me eligible to be scorned, scrutinized, and sneered upon by my worthy contemporaries; but rest assured my declarations are backed by meritorious claims. Claims, I say, for they are entirely subjective, and I respect the diversity of opinions that, though I have little reasons to follow through the mist of ideas, are abundant enough to be not trodden upon or overlooked.</p><p>Now when I say I have the privilege of <strong>omniscience</strong> I say so of it being so, in <strong>relativistic terms</strong>. What that means is, there is a fringe of knowledge that even I have not trudged beyond.</p><p>Let me be a bit more clear. As it happens of all the powers vested in a divine being (which I am contending to be) be it omnipotence, omnipresence<strong> </strong>or omniscience; it is the latter that is the least understood. It is perhaps evident that all-knowing does not mean absolute awareness of totality, but rather a point of vantage whence all that happens can be seen (of course the prejudices of this viewer shall be a necessary variable, but its a discussion for the later days). This brings into perspective the element of <strong>altitude</strong> as a necessity for the awareness of things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*RO2_HPc4U_ax2ODMbMlHEA.png" /><figcaption>The <strong>intellectual</strong></figcaption></figure><p>It has been agreed upon, and I quote <strong>Swift</strong> to aid my cause, that for a man to be heard by the gentry, he must climb to an altitude of exaltation rewarding, thus, his otherwise insignificant faculties the power of being above the conventions. Now with altitude comes a general sense of credibility. The crowd of man has always been bowing to men standing at high places, be it a <strong>pulpit</strong> or <strong>barrel of rum</strong>. It matters not what we stand on to deliver our sermons as long as we can count the heads that surround us. But for you to climb said <strong>position of exaltation</strong> you must be exalted in the first place or your claims are as baseless as the ravings of a bedlam. Unfortunately, the process of climbing this altitude, while being the most important part in deciding the worth of the exalted, has been thoroughly ignored. This has resulted in rather empty minds to climb atop and spout trite on the public.</p><p>All the mediocrity that you see surrounding the culture that entombs your existence is the product of this ignorance, the margin of error being wide enough to be a bit concerning. Also what of the magnitude of this altitude? What is the distance one needs, to earn hallowed status? Things are suddenly becoming more complex as the argument proceeds.</p><p>So here comes my exposition. I must declare that as a man of reading I have perused through cultures and philosophies of men spanning the Mundus. I have poured over tomes of thoughts <strong>modern </strong>and<strong> ancient</strong>. I have read dissertations on the bygones and conjecture on those to come. I have amassed enough data of relevance to be called aware enough to be on point about what I wish to utter. To be brief all the necessities of calling myself an intellectual, I have duly fulfilled. My neuroses are glamorous enough to let me pose as eccentric while not debilitating enough to buy me a bed in bedlam. This I trust shall suffice for me to be credible enough to be trusted at face value. I can vouch that my words have merit to them, affording thus the exaltation needed to ascend the <strong>pulpit of permanence</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jaGAdyAS20qBmkj1dkcqLg.jpeg" /><figcaption>The <strong>epiphany</strong> that spawned the <strong>clyster</strong></figcaption></figure><p>Now hear, good gentry folk, <strong>my</strong> <strong>sermon</strong>. In my earlier years, I was much inclined towards the study of the<strong> culture</strong>, <strong>myths</strong> and<strong> society</strong> of <strong>Ancient Egypt</strong>. I was interested in its pantheon of gods. It was a fairly simple one, to my pleasure, without many intricacies to twist my young mind. The symbols they employed were so generously simple and yet so meaningful that I cannot laud enough their ingenuity. They used <strong>animals to represent Gods</strong>; Clever I would say because it makes these deities so familiar and yet different from us at the same time. Also, the animals representing their gods were so thoughtfully done you can explain the deity’s role just by gazing at the animal. For instance, <strong>Sekhmet</strong> the fierce was a<strong> lioness</strong>. Fits her theme, she was the goddess of war after all. The<strong> sun god Ra</strong> and the <strong>all-seeing Horus</strong> were <strong>falcons</strong>. Again very becoming to the theme.<strong> Khemnu</strong> of the Nile was a <strong>crocodile</strong> because, and you assumed correct, the crocodiles rule the Nile. <strong>Apep the destroyer</strong> was<strong> a snake</strong>. Helps antagonise the bastard, doesn’t it? Adds a bit of fear too. In short, they summarized the functions of their gods and very well too I might add.</p><p>But what of Thoth? What does an<strong> ibis</strong> teach you about the <strong>god of wisdom</strong>?</p><p>For those who are unfamiliar with the ibis, I shall describe it a bit. Rely on my words dear readers for I am going to do it justice.</p><p>The sacred ibis is a rather unremarkable<strong> </strong>bird with a white body<strong> </strong>plumage and black feathers on the rump. The feather pattern is unflatteringly simple. Its head is bald, black like a turkey covered in soot with a thick curved beak equally black like a crescent. Nothing reminiscent of a Lord of wisdom right?</p><p>What of its voice then? It must be imbued with vocal qualities to match the vocation, I reckon?</p><p>Contrary to expectations it has one of the harshest voice a bird was ever bestowed with. Its croaking is particularly unpleasant to the ears and it is only a blessing that the bird is mostly silent. I cannot intimate more how farfetched this bird’s cult status is, at this point.</p><p>So what justifies its ascension to the status of divinity?</p><p>To explain that let me paint a picture of the times of yore. You see, back then the magnificent land of the pyramids was an agricultural economy with hardworking farmers tending to their fields as the grand vistas of their ancestor’s otherworldly tombs laid its grace on them. Simple times they were, with men and women knee-deep in the mud planting corn and lilies. But what else do we see? There are cattle true, but trotting in their midst is also a flock of ibises. These resourceful birds were content eating on cow dung and agricultural wastes or whatever muck these farmers threw at them. And not to end here these birds also cleared the fields off pests. So it is clear that this bird was nothing less of a swiss army knife to these simple farming folk.</p><p>Naturally, the thankful Egyptians were already considering in the back of their mind as to what god should the humble yet competent Ibis represent.</p><p>And then the ibis performed a task so magnificent, so novelle, and so daunting that it earned the cult status it was eventually to acquire. As it happens of all the noble tasks it had hitherto performed, though not enough to exalt it over all the animals, its <strong>magnum opus</strong> was to have been the inspiration of enema.</p><p>You see the beaks of this crafty birds was like unto a sword in the sheath when it came to the rump of a hippopotamus, and I am not even riffing here folks. Even anatomists as late as in the 17th century were vouching for this fact. Now it does not surprise me to see the god of wisdom bill deep in a hippo’s arse. After all, with the amount of shit that was being consumed by it on a daily basis, it had to find respite in some warm hole without straying too far from its niche. But what use could a bird, that gives enema to a hippo, be to the wondrous builders of the pyramids?</p><p>Here I shall appear a bit unsavoury but I must bear the brunt for being truthful. Meticulous findings have ascertained that the ancient Egyptians ate a kind of bread that was not particularly well for their teeth or the bowels. As it happens the diet they entertained didn’t go well for the motion that was to enfold in the loo with the majority of people suffering from brittle teeth and beguiled guts. Naturally, for a civilization troubled with constipation, an epiphany like a clyster was likely to come from the God of Wisdom himself.</p><p>I may have digressed too far at this juncture for which I apologize. To be fair all these expositions were necessary for the analogy I am now going to so unartfully construct ere the worthy readers.</p><p>The consumption of <strong>bad bread</strong> is not good for our bowels.</p><p>Let me rephrase that; the consumption of bad bread which is today’s mainstream prevalent art form is likely to cause indigestion to the consumers of it.</p><p>All the pop culture that the people are consuming without a second opinion is going to clog inside and you have only as much of an outlet as you can think of from the aforementioned example of the hippo to get rid of all of that. And I can only do as much as this humble bird in its time did for its beneficiary.</p><p>I am also aware that this role I shall play for but a few moons, as the work of a <strong>curator</strong> is like walking through a muddy street. You try to wade through the muck as artfully as possible so your breeches are not soiled. And if they do(and they eventually do) what remains of them is not worth the position of exaltation.</p><p>Our Ibis was to see this downfall too. As Egypt transformed from an agricultural to an industrial kingdom the status of the ibis changed from that of a god to that of the annoying pestilence it is. The Muslim adventurers described it as a dispenser of piss and shit rather than humble wisdom. And this was inevitable, for all that gorging of mediocrity and trite would eventually take its toll on the mightiest of beings.</p><p>So I come to the point. You see the Ibis was a curator of sorts, shielding the rather unled and directionless public from the mist of mediocrity. This will seem like an uneventful effort on my part, but I assure you, diligent readers, I am not tilting at the windmills, but rather employing my pragmatism by slaying my interests for the collective good of humankind. It is by sharing the burden that poses over our minds that the weight of our words shall not crush the mellow minds of the gentry.</p><p>As it happens our world is in a state of primitiveness where all we care about is making convenience omnipresent. With artists rising from dust trying to make their chaff pass off as the staple and that too without censor and the audience only seeking to prolong the distraction that can afford them escapism, I am content to say that I am the bird that shall chug on their collective droppings and refuse. I shall be the ibis to this modern world until my time shall come when I shall be rendered useless, called a bin chicken or somesuch. But till then I expect you all to bow ere me, the Thoth of contemporary times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60bec88a0762" width="1" height="1" alt=""><hr><p><a href="https://medium.com/heuristics/contemporary-thoth-60bec88a0762">Contemporary Thoth</a> was originally published in <a href="https://medium.com/heuristics">Project Heuristics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>