<?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 Vinay Nadig on Medium]]></title>
        <description><![CDATA[Stories by Vinay Nadig on Medium]]></description>
        <link>https://medium.com/@vinaynadig?source=rss-5dc2af406cb3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-Jzjo9oY4EX_3gfQ7O8xVA.jpeg</url>
            <title>Stories by Vinay Nadig on Medium</title>
            <link>https://medium.com/@vinaynadig?source=rss-5dc2af406cb3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 19:19:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vinaynadig/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[Omnisearch — Wrangling with Elasticsearch]]></title>
            <link>https://vinaynadig.medium.com/omnisearch-wrangling-with-elasticsearch-80dc34f997f5?source=rss-5dc2af406cb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/80dc34f997f5</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Vinay Nadig]]></dc:creator>
            <pubDate>Mon, 22 Nov 2021 21:57:45 GMT</pubDate>
            <atom:updated>2021-11-22T21:57:45.900Z</atom:updated>
            <content:encoded><![CDATA[<h3>Omnisearch — Wrangling with Elasticsearch</h3><p>At Quadzig, we make it easy for people working with AWS to explore and gain insights about their AWS Infrastructure. When an organization’s infrastructure grows beyond a few AWS Accounts, it’s often difficult to figure out exactly which AWS Account &amp; AWS Region a particular resource belongs to.</p><p>For example, let’s say your organization uses 6 AWS Accounts and you get the following hypothetical alert from your monitoring system:</p><pre>Instance with IP 10.8.32.127 has sustained high CPU!</pre><p>If you are lucky, the message also contains details about the AWS Account &amp; Region in which the EC2 Instance is located. If you are not, it will probably take you a few minutes to figure out which AWS Account &amp; Region the resource is located in. People who work with AWS Infrastructure(think SREs, DevOps Engineers, Architects etc) face this issue on a daily basis.</p><p>Now, imagine if there was a place where you could just go and type a query</p><pre>resource_type:ec2_instance, private_ip_address:10.8.32.127</pre><p>And it would magically show you the exact resource along with its attributes and give you a handy link to open the resource in a AWS Console. Wouldn’t that be cool? Well, that’s exactly what Omnisearch functionality does. Here it is in action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A8n9CQDVjsA6QhVCyRXq4g.gif" /></figure><h3>Implementation</h3><p>Elasticsearch is used to store all searchable data. An example document for an EC2 instance may look like this.</p><pre># Example document showing metadata about an EC2 Instance<br>{<br>  &quot;_index&quot;: &quot;aws_infrastructure&quot;,<br>  &quot;_type&quot;: &quot;_doc&quot;,<br>  &quot;_id&quot;: &quot;039b031d-db46-4ff0-9b76-8e5ce041bbab&quot;,<br>  &quot;_version&quot;: 1,<br>  &quot;_score&quot;: 0,<br>  &quot;_routing&quot;: &quot;7d43c421-9c10-41bc-a3e4-1f1c3e9eecb1&quot;,<br>  &quot;_source&quot;: {<br>    &quot;image_id&quot;: &quot;ami-06ce3edf0cff21f07&quot;,<br>    &quot;instance_id&quot;: &quot;i-fbb15fdbb47f24a7c&quot;,<br>    &quot;instance_type&quot;: &quot;t2.micro&quot;,<br>    &quot;key_name&quot;: &quot;default&quot;,<br>    &quot;private_dns_name&quot;: &quot;ip-172-27-38-123.eu-west-1.compute.internal&quot;,<br>    &quot;private_ip_address&quot;: &quot;172.27.38.123&quot;,<br>    &quot;public_dns_name&quot;: &quot;ec2-86-231-55-76.eu-west-1.compute.amazonaws.com&quot;,<br>    &quot;public_ip_address&quot;: &quot;86.231.55.76&quot;,<br>    &quot;state&quot;: &quot;running&quot;,<br>    &quot;subnet_id&quot;: &quot;subnet-a3285adc&quot;,<br>    &quot;vpc_id&quot;: &quot;vpc-8dcde570&quot;,<br>    &quot;architecture&quot;: &quot;x86_64&quot;,<br>    &quot;iam_instance_profile_arn&quot;: &quot;arn:aws:iam::111111111111:instance-profile/production-instance-role&quot;,<br>    &quot;iam_instance_profile_id&quot;: &quot;AIPA451D7D52F3DBFB2CC&quot;,<br>    &quot;region_code&quot;: &quot;eu-west-1&quot;,<br>    &quot;source_dest_check&quot;: true,<br>    &quot;root_device_type&quot;: &quot;ebs&quot;,<br>    &quot;virtualization_type&quot;: &quot;hvm&quot;,<br>    &quot;Name&quot;: &quot;production-app-instance&quot;,<br>    &quot;aws_account_id&quot;: &quot;111111111111&quot;,<br>    &quot;aws_account_name&quot;: &quot;Quadzig Production&quot;,<br>    &quot;rt&quot;: &quot;ec2_instance&quot;,<br>    &quot;user_id&quot;: &quot;d46b50d3-8051-4091-afb1-ac0a4867c69e&quot;<br>  }<br>}</pre><p>As you can see, the document contains most of the relevant info about the instance along with the following additional metadata</p><ol><li><strong>rt</strong> — The resource type(ec2_instance, rds_instance, vpc etc)</li><li><strong>user_id</strong> — The user to which the resource belongs</li><li><strong>aws_account_id</strong></li><li><strong>aws_account_name</strong></li><li><strong>_routing</strong> — This is used to support multitenancy on Elasticsearch. We will cover Elasticsearch &amp; Multitenancy in a different blog post.</li></ol><p>Now, this EC2 Instance is searchable through any of its attributes. We just need a way to acquire user input and search Elasticsearch with the query.</p><h3>The Naive Approach</h3><p>The easiest way to implement this would be to add a &lt;input&gt; tag in the frontend and let users type in Lucene queries that we pass to <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html">Elasticsearch search API</a>.</p><p>While this gives users a lot of flexibility while querying, it also gives them a lot of power over your Elasticsearch Cluster. This is a <em>REALLY</em> bad idea for a couple of reasons.</p><ol><li>Your end customers can trigger expensive queries and bring down the cluster.</li><li>The <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html">Elasticsearch search API</a> is not fault tolerant and will fail when users input invalid Lucene queries.</li></ol><p>This is explicitly documented by Elasticsearch <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.1/modules-scripting-security.html#modules-scripting-other-layers">here</a>.</p><h3>The Better Way ᵗᵐ</h3><p>A better approach would be to strictly control the queries end users can write. We can then construct strict performant queries in our application that is then passed on to Elasticsearch. For Omnisearch, we wanted to keep the query <em>dead</em> simple. So, we only allow the following query syntax for attribute based search.</p><pre># Syntax<br>attribute_key:attribute_value, attribute_key:attribute_value ...<br>​<br># Example<br>rt:rds_instance, multi_az:false</pre><p>Users can combine any number of such attribute value key pair separated by the comma character(‘,’). All such supported attributes for Omnisearch are <a href="https://docs.quadzig.io/resource-and-attribute-support.html">documented here</a>.</p><p>In addition, we also wanted to support simple full text search so that customers don’t necessarily have to remember the exact attribute name for every resource.</p><p>For example, a user could just search for ec2 i-fbb15fdbb47f24a7c and the system should still provide the most relevant results. This is trivial to implement with Elasticsearch&#39;s <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html">Simple Query String</a> feature.</p><h3>Simple Query String</h3><p><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html">Simple Query String</a> on Elasticsearch lets you write <em>fault tolerant queries</em>. This basically means that we can write arbitrary queries and Elasticsearch ignores the invalid parts of the query while performing the search.</p><p>This is perfect to expose to end users who might write arbitrary queries. In addition, it also gives you some amount of flexibility while writing queries with the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#simple-query-string-syntax">Simple Query String Syntax</a>.</p><h3>Implementation</h3><p>This is the high level steps to be performed to support the 2 syntaxes.</p><h4>User Input</h4><p>Provide a &lt;input&gt; tag for users to submit their queries.</p><h4>Query Parsing</h4><p>Try to parse the query in the attribute_key:attribute_value syntax. If this succeeds, build a <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.12/query-dsl-bool-query.html">boolean query</a> with a must clause. For example, if the user enters, the following query:</p><pre>rt:rds_instance, multi_az:false</pre><p>We would like to convert the query into the following boolean query</p><pre>{<br>  &quot;query&quot;: {<br>    &quot;bool&quot;: {<br>      &quot;must&quot;: {<br>        &quot;term&quot;: { &quot;rt&quot;: &quot;rds_instance&quot; }<br>      },<br>      &quot;must&quot;: {<br>        &quot;term&quot;: { &quot;multi_az&quot;: &quot;false&quot; }<br>      }<br>    }<br>  }<br>}</pre><p>To do this, we will write a parser using the awesome <a href="https://github.com/kschiess/parslet">Parslet gem</a></p><pre>class SearchParser &lt; Parslet::Parser<br>  rule(:spaces)  { match(&#39;\s&#39;).repeat(1) }<br>  rule(:spaces?) { spaces.maybe }<br>  rule(:comma)   { spaces? &gt;&gt; str(&#39;,&#39;) &gt;&gt; spaces? }<br>​<br>  rule(:value) {<br>    ((str(&#39;,&#39;).absent? &gt;&gt; any).repeat).as(:value)<br>  }<br>​<br>  rule(:valid_keys) {<br>    str(&#39;rt&#39;) |<br>    str(&#39;multi_az&#39;) |</pre><pre>}<br>​<br>  rule(:key) {<br>    spaces? &gt;&gt; (<br>      str(&#39;:&#39;).absent? &gt;&gt; valid_keys<br>    ).repeat.as(:key) &gt;&gt; str(&#39;:&#39;)<br>  }<br>​<br>  rule(:query) {<br>    (<br>      key &gt;&gt; value<br>    ).as(:query) &gt;&gt; spaces?<br>  }<br>​<br>  rule(:queries) {<br>    spaces? &gt;&gt; (<br>      query &gt;&gt; (<br>        comma &gt;&gt; query<br>      ).repeat<br>    ).as(:queries) &gt;&gt; spaces?<br>  }<br>​<br>  root(:queries)<br>end<br>​<br># Parse queries with the parser<br>tree = SearchParser.new.parse(&quot;rt:rds_instance, multi_az:false&quot;)<br>puts tree.inspect<br>{<br>  :queries=&gt;<br>    [<br>      {:query=&gt;{:key=&gt;&quot;rt&quot;@0, :value=&gt;&quot;rds_instance&quot;@3}},<br>      {:query=&gt;{:key=&gt;&quot;multi_az&quot;@17, :value=&gt;&quot;false&quot;@26}}<br>    ]<br>}</pre><p>We will not go into details on how this parser works. If you are interested in understanding the Parslet gem and it’s usage, you can find a bunch of <a href="http://kschiess.github.io/parslet/documentation.html">tutorials here</a>. Basically, if you provide the instance of this class a query, it will parse and provide us structured data or it raises an error if the query string does not match the syntax.</p><p>Next, we need to transform this structured data into an Elasticsearch boolean query. We will also add an extra match query to make sure that only the resources belonging to the specific user is matched. This is a sample ruby code that will convert the parsed output into an elasticsearch query</p><pre>query = {<br>  query: {<br>    bool: {<br>      must: tree[:queries].map { |q| {match: {q[:query][:key] =&gt; q[:query][:value]}} }<br>    }<br>  }<br>}</pre><pre># Only match this user&#39;s resources<br>query[:query][:bool][:must].append({<br>  {:match=&gt;{&quot;user_id&quot;=&gt;&quot;&lt;user id&gt;&quot;}<br>})</pre><pre>puts query.inspect<br>{<br>  :query=&gt;{<br>    :bool=&gt;{<br>      :must=&gt;[<br>        {:match=&gt;{&quot;rt&quot;=&gt;&quot;rds_instance&quot;}},<br>        {:match=&gt;{&quot;multi_az&quot;=&gt;&quot;false&quot;}}<br>      ]<br>    }<br>  }<br>}</pre><p>Now we can pass this query to to Elasticsearch</p><pre>client = Elasticsearch::Client.new</pre><pre># Results will contain a list of hits<br>results = client.search body: query.to_json</pre><h4>Parsing Failures</h4><p>We talked about full text search with <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html">Simple Query String</a> earlier. We can now implement it. If a user enters a search query that does not match the attribute_key:attribute_value format, then the SearchParser.new.parse method will throw a Parslet::ParseFailed error. We can then rescue this error and perform a simple query string search instead of a boolean search.</p><p>We will also <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#simple-query-string-boost">boost</a> the user_id field’s relevance by 100. This is so that only the current user’s resources are returned in the search results. Even with this boost, the search results may include some results that may not belong to the user. See the Security section for more details on how to tackle this issue.</p><pre>search_string = “ec2 quadzig-production-instance”<br>begin<br>  tree = SearchParser.new.parse(search_string)<br>rescue Parslet::ParseFailed =&gt; e<br>  search_string_with_user_id = “#{search_string} #{user.id}”<br>  query = {<br>    “query”: {<br>      “simple_query_string” : {<br>        “query”: search_string_with_user_id,<br>        “fields”: [“user_id^100”, “*”],<br>        “default_operator”: “and&quot;<br>      }<br>   }<br>}<br> <br>  client = Elasticsearch::Client.new<br> <br>  # We will NOT return these results directly to the user<br>  results = client.search body: query.to_json<br>end</pre><p>There you have it. We can now query the Elasticsearch cluster on the user’s behalf and return the results. There is one last thing we need to take care of which is Security.</p><h3>Security</h3><p>If you are a SaaS business and you are implementing a search functionality for your users with Elasticsearch, you will most likely be implementing Multitenancy in some way or the other. One of the recommended ways of achieving this is through _routing field - <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-routing-field.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-routing-field.html</a></p><p>For a more details discussion on Elasticsearch &amp; Multitenancy, <a href="https://www.elastic.co/blog/found-multi-tenancy">see here</a>. The basic idea is to store all your user’s data in a single Elasticsearch Cluster and then have access controls at the application layer to ensure that users can access only their data much the same way we do with databases.</p><p>So, with the above implementation, while it’s faster to just return the search results from Elasticsearch to the users directly, this may lead to security issues where users may gain unauthorized access with full text search. To fix this, we will only use Elasticsearch to perform searches and use our Relational Database to actually provide the user with results. These are the high level steps.</p><ol><li>Search Elasticsearch with a query</li><li>From the results, extract the unique id associated with each record. This id is assumed to be present in the database as well.</li><li>Query the application database for the resources using the unique id.</li><li>For each resource, verify that the resource actually belongs to the user. If it does not, drop those resources.</li><li>Return the filtered resources to the user.</li></ol><p>This way, even if malicious users try to construct queries trying to query other user’s data, these will be filtered out at the application layer.</p><h3>Conclusion</h3><p>There you have it. We have seen how to implement an end-user facing full text search based on Elasticsearch in a secure way. If you are interested in more tech topics, you can <a href="https://medium.com/newsletter%20link">subscribe to our newsletter here</a>.</p><p>And of course, if you use AWS on a daily basis, you <a href="https://app.quadzig.io/sign_up">should give Quadzig a shot</a>. It will supercharge your workflow and we have a lot more handy features in the pipeline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80dc34f997f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Engineer’s guide to starting up — 0 to 3 Months]]></title>
            <link>https://vinaynadig.medium.com/an-engineers-guide-to-starting-up-0-to-3-months-eebb740af829?source=rss-5dc2af406cb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/eebb740af829</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[bootstrapping]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Vinay Nadig]]></dc:creator>
            <pubDate>Wed, 30 Jun 2021 20:11:09 GMT</pubDate>
            <atom:updated>2021-07-05T17:36:41.924Z</atom:updated>
            <content:encoded><![CDATA[<h3>An Engineer’s guide to starting up — 0 to 3 Months</h3><p>Hi! I’m Vinay and I’m the founder of <a href="https://quadzig.io/">Quadzig</a>. Building a product and a business as a solo founder has come with a lot of learnings and I wanted to document these somewhere. This is as much a note to my future self if I decide to build another product as it is unsolicited advice to others.</p><p>The advice here is specifically aimed at developers/engineers who want to start up on their own but might not know how to get started. This is an opinionated guide to starting up and I have listed the things that have worked for me. I am sure there are other(and maybe better) ways to build a product as well. But, this is the path I took and it is working for me so far. A lot of the advice here focuses on avoiding common pitfalls as an engineer. With that disclaimer out of the way, let’s get started.</p><h3>Step 1: Don’t build the product.</h3><p>I know that sounds weird. But, your first step in the startup journey should not be building a full fledged product. Instead, test the waters with a small demo and a marketing page. In some cases, you might need to build a small proof of concept to check the feasibility which is fine. But, that is all it should be. Just a barebones proof of concept(no user registration, no fancy UI etc)</p><p>There are a few reasons why this is more valuable than starting to work on the product straight away.</p><ol><li>When you start building a product, you spend considerable amount of time(months usually) and effort on the implementation and its draining to keep asking yourself “Will people use/pay for this?”. I have personally abandoned 2 to 3 ideas after spending 3 to 6 months building a product because I was not sure if people would pay for it and I could not push through the uncertainty.</li><li>When you build a marketing page, you will be forced to think about the value proposition of the product from a customer’s perspective. How can I get a customer excited? What pain points am I solving for my customers? What are the key features that my product will deliver on? What will the pricing look like? If you have a POC already, you can also create a polished demo video. Videos are much better at communicating ideas and it’s a safe way to showcase your product.</li><li>Building a marketing page is a few orders of magnitude easier than building an actual polished product/MVP.</li></ol><p>If you have trouble building a marketing page, it usually means one of these 2 things.</p><ol><li>Your idea is good but you suck at writing marketing content. The only advice I can give here is to go look at marketing pages of other early stage startups and try to imitate them.</li><li>You have not thought out your product idea well enough and you need to spend more time figuring out the value proposition.</li></ol><p>Now that you have a marketing page, stick an email sign up form in there. It’s super easy to build this with a service like <a href="https://mailchimp.com/features/landing-pages/">Mailchimp</a>.</p><p>If you are still not convinced, here are a few examples.</p><ul><li>Doordash started as a marketing page — <a href="https://startupclass.samaltman.com/courses/lec08/">https://startupclass.samaltman.com/courses/lec08/</a></li><li>Dunzo started as a WhatsApp group — <a href="https://startuptalky.com/dunzo-success-story/">https://startuptalky.com/dunzo-success-story/</a></li></ul><h4>Some tactical advice</h4><ol><li>Don’t spend a lot of time building a website from scratch. Either buy a template from <a href="https://themeforest.net/">ThemeForest</a> or use a tool like <a href="https://mailchimp.com/features/landing-pages/">Mailchimp</a> to build the marketing page. The whole point is to spend as less effort as possible.</li><li>Put a chat bot on the page(but don’t make it annoying). Make it as easy as possible for people to get in touch with you. You can use the free tier of <a href="https://www.userlike.com/de/">Userlike</a> to get started.</li><li>Don’t spend a lot of time/money on finding the perfect domain name. The way I landed on “Quadzig” is by randomly uttering pronounceable gibberish and checking if the domain name is available. You just need a pronounceable name that sounds vaguely modern.</li><li>You don’t need a logo for the product yet.</li></ol><h3>Step 2: Do a Demo Launch</h3><p>So, now that you have a fancy marketing page with a sign up form and maybe a video, it’s time to test the waters. Try finding a community where a considerable number of your prospective customers reside. This could be Reddit, Indie Hackers, Discord, Slack channel, Instagram, Twitter etc etc. Basically, any place that has a sizeable number of prospective customers/users who have the problem that you are trying to solve.</p><p>Most online communities are very forgiving and friendly to indie starters and will happily provide you with good feedback if they think that the product will solve a pain point they have. The happy path here would be that you get a lot of people excited and they sign up for the product.</p><p>Congratulations! You now have a mailing list! We talked about self doubt a bit earlier, this mailing list is the cure for that self doubt. When you are spending long gruelling hours working on the product alone, you no longer have to worry if people will use/pay for the product. You already know that at least <em>some</em> people are interested.</p><p>You can make the marketing page as elaborate as you want. You can add privacy policies, terms and conditions, a screenshot gallery, a video, a contact us page etc etc. It completely depends on what kind of product you are building. If you are building a B2C product, it’s probably enough to just build a simple page. If you are building an enterprise B2B product, people <em>will</em> look for a terms and conditions page and prefer that you are incorporated.. Fortunately, templates for these are also easy to find with services like <a href="https://avodocs.com/">Avodocs</a>(but always get it reviewed by lawyers as well if you are doing B2B business).</p><h3>Step 3: Build a MVP</h3><p>You now have people excited about the product. Your next aim should be to deliver a working MVP as quickly as possible.</p><h3><strong>Avoid these mistakes</strong></h3><p>Here are some common pitfalls that I as an engineer fell into the first few times I tried building a product.</p><h4>Over-engineering for Scale</h4><p>Don’t build the product for 100,000 users. Building a product for 100,000 users is hard. As soon as you have that number in your head, you start thinking about a lot of evil things like <strong>optimizations</strong>, <strong>caching</strong>, <strong>CDNs</strong>, <strong>horizontal scaling</strong>, <strong>microservices</strong>(oh god please don’t do this).</p><p>No! What you want to build is crappy technical product that works for 10 to 15 simultaneous users. As soon as you start planning for those small numbers, a plethora of technical shortcuts open up and your speed of development increases drastically. You will no longer spend an afternoon fixing a N+1 query. Instead, you will spend that time building a cool new feature(or better yet, talking to customers).</p><p>As an engineer, you are wired to not accept sub-optimal technical solutions. Fight that instinct. Build shitty backends and beautiful frontends. If your next question is “Well, what if my product takes off and I am not able to scale?”. Well, first of all, that’s a good problem to have. Secondly, you would be surprised at how many scale problems can be solved by just throwing servers at the problem.</p><p>Here is the thought process: “Build a product that works for 100 users. When I get 1000 users, I will throw servers at the problem. When I get to 10,000 users, I will hire someone to scale and optimize the product for 10,000 users. When I get to 100,000 users, I will pay a team of engineers to rewrite the product in a month”.</p><h4>Don’t build to learn</h4><p>Don’t use technology you are unfamiliar with. I keep joking that if I only knew Fortran when I started building Quadzig, I would have built Quadzig in Fortran. While that’s a hyperbole, it’s also not far from the truth.</p><p><strong>Do not fall into the trap of thinking “I will build this product using X technology that I want to learn. If the product does not succeed, then I would have learnt something new at least”.</strong></p><p>Building a product is hard enough as is. Don’t set yourself up for failure by adding additional obstacles. Besides, the domain expertise and the breadth of experience you gain while building a product is much more valuable than a new language or framework you might pick up. You either build a product or a project. Decide on one and stick to it. Seriously, do not go for fancy new frameworks and languages because you want to learn it.</p><p>If you are unsure of a stack to use, here is a safe bet that you cannot go wrong with.</p><ol><li><strong>Ruby on Rails</strong> for backend with server side rendering</li><li><a href="https://getbootstrap.com/"><strong>Bootstrap</strong></a><strong>/</strong><a href="https://coreui.io/"><strong>CoreUI</strong></a> as frontend framework</li><li><strong>Postgres/MySQL</strong> as database</li><li><strong>Sidekiq</strong> for background processing(if you need one)</li></ol><p>This stack will get you <strong><em>far</em></strong><em> </em>in terms of productivity. Google any question related to these technologies and you will most likely find the answer you are looking for. If you are from a python background, there are equivalents like Django &amp; Celery that are pretty mature.</p><h4>Don’t start off with Microservices</h4><p>You do not understand your product’s technical requirements well enough yet to plan for microservices. The overhead of managing multiple processes will kill your productivity. Aim to run as few services as possible(preferably one process for the application and one database).</p><p>Ideally, you deploy your MVP to a single EC2 Instance or a Digital Ocean droplet. Or just use a PaaS offering like <a href="https://www.heroku.com/">Heroku</a> and be done with it. If you are asking “But what if my product takes off and I am stuck with Heroku which everyone tells me does not scale?”, see the point on “Don’t build for 100,000 users.”</p><h4>Don’t separate backend &amp; frontend</h4><p>Don’t separate backends and frontends by writing APIs and choosing a client side framework. You will spend a lot of time crafting the APIs and managing two separate codebases will bring down your productivity. Of course, if you are more productive building products this way, go for it. But don’t do this just for the reason that it’s a “best practice” or because every other company is building this way.</p><p>That’s a lot of bad engineering advice. But, they are also good “I want to build a MVP” advice. Just keep in mind that <strong>Security &amp; Privacy are two areas which are non-negotiable</strong>. Avoid shortcuts in these two areas.</p><p>Here are some things that you <em>should</em> do</p><h4>Aggressively negotiate the scope of the MVP with yourself.</h4><p>It’s easy to lose track of features and start building all sorts of functionalities that you think are essential. Your aim should be to release a lean MVP as early as possible.</p><p>Here are some common features that you most likely do not need in your MVP.</p><ol><li>SSO</li><li>Full fledged user management system</li><li>Granular billing(hourly/per minute etc)</li></ol><h4>Minimum Viable Product</h4><p>I am going to stress the MVP concept again because it’s such a easy trap to fall into. Your goal should be to release a lean MVP and <strong>start customer conversations</strong>. This is important because you have to validate all of your assumptions about your product and customer base as early as possible. If you take 3 weeks to build a feature only to realize that no customer of yours is going to use it, that’s a lot of wasted productivity. Instead, release a MVP, get customers interested and start talking to them about what else they expect from your product or start pitching them more features <em>before</em> you build them.</p><h4>Favour SaaS offerings</h4><p>Favour other SaaS offerings for non differentiating features. Non differentiating features are those that are essential for your product but are not your core offerings. Examples are User authentication system, User management systems, Billing, Mailing etc. Don’t build any of these yourself. Pick a SaaS offering that already solves this and run with it. Here are some common offerings that you should use.</p><ol><li>Authentication — <a href="https://www.okta.com/">Okta</a>, <a href="https://aws.amazon.com/cognito/">Cognito</a>(AWS)</li><li>Billing — <a href="https://stripe.com/docs/payments/checkout">Stripe Checkout</a>. <em>It’s just so good.</em></li><li>Mailing — <a href="https://aws.amazon.com/ses/">AWS SES</a>, <a href="https://mailchimp.com/">Mailchimp</a></li><li>Feedback — <a href="https://www.userback.io/">Userback</a></li></ol><h3>Step 2.1 — Stop Building</h3><p>I know this is clichéd, but I want to really stress this point. Even though I already had a bunch of customers interested in the product, it was still difficult for me to stop building and decide on a MVP launch date. Part of the reason was the fear of failure. “I have spent so much time and effort on this. What if no one uses it? Worse, what if it’s not received well?”.</p><p>With that thought rattling around in my head, I suddenly had a new idea for a feature that I <em>absolutely</em> had to build before launch. And once that feature was built, there was one more feature that popped up that was just as necessary. This can easily get out of hand and before long, you have spent 6 months on the MVP without talking to a single customer.</p><p><strong><em>Do not do this</em></strong><em>. </em>Either time-box or draw a hard line on the features that you will build and once you are done building them, stop building. As soon as your MVP is ready, your focus should be to talk to as many customers as possible and to sell the product.</p><h3>Step 2.2 Build the Business Front</h3><p>If you are building a technical product or a B2B enterprise product, just a simple marketing page will not cut it for a product launch. Your product is not just the server that’s running the application. It’s the combination of the technical implementation, documentation, the marketing pages, support channels, incorporated business etc. So, here are some todos before the final launch.</p><ol><li>Set up some common emails for the company. The usual ones are support@yourcompany, security@yourcompany, yourname@yourcompany, sales@yourcompany. These 4 should be good enough to get started. I used <a href="https://www.zoho.com/mail/zohomail-pricing.html">Zoho’s</a> free tier initially and it works well.</li><li>Set up a terms &amp; conditions and privacy page. Use a service like <a href="https://www.avodocs.com/">Avodocs</a> to generate these.</li><li>Set up a separate subdomain for documentation if you are building a technical product. Write as much documentation as you humanely can. I use <a href="https://www.mkdocs.org/">Mkdocs</a> to build Quadzig’s documentation and it works wonderfully.</li><li>Add a contact us page and stick your support@yourcompany email there.</li><li>If you are building a B2B product, you will need to incorporate. Incorporation is a painful process if you are doing it for the first time. Thankfully, there is Stripe Atlas and it takes away 90% of the pain and streamlines most of the process. Be aware that incorporation can take up to 2 months. So, if you have a release date in mind, start planning for this well in advance.</li><li>Set up some channels for feedback. We already talked about emails and chatbots. You can also set up tools like <a href="https://www.userback.io/">Userback</a> that will let users provide contextual feedback while using your application.</li></ol><h4>Pricing your product</h4><p>Your pricing can vary wildly depending on the nature of the product. But here are some general guidelines.</p><h4>Do not charge based on what it costs</h4><p>Do not charge based on what it costs you to keep the product up. As an example, if your product is a SaaS solution and it costs you 100 USD/month to run the business and you estimate that with this 100 USD, you can support 100 users, do not charge 2 USD/customer and consider it a 50% margin.</p><p>No! You should charge customers based on the value you deliver to them. This value of course is subjective. For example, by using my product, if a company is able to save 10 man hours every month for their software developers, then I would try to calculate my pricing based on the average hourly rate of said software developer. If my product improves a customer’s conversion rate, I would try to calculate my pricing based on what my customer charges their customer.</p><h4>Do not price low</h4><p>It’s tempting to think “If I charge high, no one will use my product”. Don’t do this. If the product delivers enough value, customers will pay for it. Besides, low price is sometimes associated with “cheap”. Acquiring customers is hard. If you charge high, you have to acquire a smaller number of customers to meet the same revenue targets.</p><h4>Keep pricing simple</h4><p>Don’t make pricing complicated on day 1. You should ideally be able to explain your product’s pricing in a couple of sentences. Anything more and you will turn away prospective customers. One of the first things customers do when they visit your SaaS product website is to look at the pricing section. If they are not able to figure out the pricing quickly, they will just leave. Aim to have nice round numbers based on a simple dimension like “Number of users”.</p><p>With all that said, pricing the product is really an art and it’s not something you will get right on day one. Just keep in mind that predictable &amp; simple pricing is good.</p><h4>Do not Incorporate unless absolutely necessary</h4><p>If you are not building an Enterprise B2B product or if you don’t really care about pricing yet, you can also decide not to incorporate. This will save you a ton of time, effort and money. You can just stick a “Donate” or a “Support me on Patreon” button on your website to get an idea of whether customers will pay for the product. You can always decide to incorporate and start charging customers at a later date. There are a number of advantages to go this route.</p><ol><li>With an unpaid product, there is no longer an obligation to do customer support diligently(though you should take as many opportunities as you can get to talk to customers). You don’t “owe” anything to anybody.</li><li>You avoid the painful process of incorporation</li><li>When you eventually start charging customers, you will have some data points on how much customers are willing to pay for your product.</li></ol><h3>Step 3: Release the Kraken! Or the MVP in this case.</h3><p>So, you have worked hard over the past couple of months and you now have a working product that users can actually use and you have a billing page where people can pay. Great! It’s time to release now. Go back to the same community where you initially did a demo and make another post talking about the product. Get in touch with all those users who signed up from your demo.</p><p>If you are lucky, a large percentage of them will convert to paying customers. In this case, you have overcome the first major hurdle. Your plan should now be to aggressively iterate over the product through customer feedback.</p><p>If you are unlucky, and as is the case most of the time, you fail to convert any customers at all. This is fine. It takes a large amount of trust and value proposition to persuade a customer to start paying for a product. If you do not convert any customers, do not lose heart. Most startups go through months or years of having no revenue at all before finding the right product market fit. You can either choose to pivot(don’t do this too early) or you can choose to continue building the product while simultaneously trying to sell the product until the product reaches enough maturity that customers are willing to pay.</p><h3>Some closing thoughts</h3><p>While building a product is a lot of fun as an engineer, building a business might not be as much fun. This is something to keep in mind early on when you decide to start up. You will be spending at least 30% to 40% of time doing non technical work that you might not enjoy. Here are some examples tasks that I did not enjoy but still had to do because it’s part of building a business.</p><ol><li>Talk to lawyers to make sure that the terms &amp; conditions and privacy page were good enough(was pricey as well).</li><li>Fill out a 300 column excel sheet(don’t ask me why).</li><li>Write technical documentation.</li><li>Polishing the product — The last 10% of the work is polishing and it’s usually just grunt work trying to find that perfect UI/UX.</li><li>Write marketing content for the website</li><li>Fill out a fairly long application form &amp; record a video pitching my product for YCombinator(did not get selected).</li><li>Promote Quadzig on public forums. I always felt a bit unclean(for a lack of a better word) doing this.</li></ol><p>That said, there are also a lot of things that are non technical that I still enjoy</p><ol><li>Talking to prospective customers is always fun. Extra fun if they have something nice to say about the product.</li><li>Planning the UI/UX for a particular feature from start to finish.</li></ol><p>The point I am trying to make is that if you just build the product and do nothing else, it’s very unlikely that your product will take off. Sales and other non-technical work is an essential part of starting up and if you are averse to it, your chances of success drops. You should be ready to spend significant amount of time on non-technical tasks and these will only increase if you gain traction(which is good).</p><h4>Starting up as a solo founder?</h4><p>If you can, you should ideally find a co-founder early on. Ideally, the co-founder has the same(or better) level of excitement, commitment &amp; domain expertise that you have. I will not go into details on why this is important. It has been covered well <a href="https://www.ycombinator.com/library/8h-how-to-find-the-right-co-founder">here</a></p><h4>Full time or part time?</h4><p>If you already have a full time job that you are already invested in, then it’s better to work part time on your product at least till you find some traction. But, if you are looking to switch jobs or if you are in between jobs, then it’s probably better to take a break and focus on your product full time for a few months at least. If it does not work out, you will have a new set of skills and at least one more line item on your resume for your next prospective employer.</p><p>Just keep in mind that if you are working part time on the product, you will spend long hours working in evenings and weekends. This can take a toll on your personal relationships if you don’t manage your time well.</p><h4>Finances</h4><p>It’s surprisingly cost effective to keep a software SaaS business running. I probably spent around a 100 USD/month for the first few months on the overall cost(which is already quite high). Most of these were subscriptions to other SaaS services like Mailchimp, Calendly etc.</p><p>For the infra cost, you can apply for credits on most major cloud platforms and they should provide you enough runway for at least a few months. AWS can provide you credits through their <a href="https://aws.amazon.com/activate/">AWS Activate program</a> and there are similar offerings for other cloud platforms.</p><h3>Conclusion</h3><p>And that brings me to the end of the blog post. If you find this post helpful or have any feedback, let me know on <a href="https://twitter.com/vinay_nadig_an">Twitter</a>! And of course, while you are here, do checkout <a href="https://quadzig.io/">Quadzig</a>. If you use AWS as your cloud provider, Quadzig can help you save time &amp; money by giving you insights about your Cloud Infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eebb740af829" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Colors of Death]]></title>
            <link>https://medium.com/trench-full-of-dead-men/the-colors-of-death-eee82a50af35?source=rss-5dc2af406cb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/eee82a50af35</guid>
            <category><![CDATA[world-war-i]]></category>
            <category><![CDATA[history]]></category>
            <dc:creator><![CDATA[Vinay Nadig]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 13:03:39 GMT</pubDate>
            <atom:updated>2019-07-26T05:44:05.515Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Colours of Death</h3><p>Once in a great while, you come across a decision so absurd, so irrational in hindsight, it seems incredible that the decision was made at all.</p><p>One such decision was made by the French army when they decided to enter the WW1 in their resplendently coloured army uniforms. These uniforms of the Napoleonic era comprised of red trousers, bright blue coats and red cloth caps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*vPt1TfLW8HvEJIw0DZEJzA.jpeg" /></figure><p>Any modern military strategist would call it suicide to wear those colors to war. But, we have the benefit of hindsight that the French lacked in 1911.</p><h3>Europe — 1911</h3><p>It was 1911 and everyone in Europe could feel the storm gathering on the horizon as the great powers of Europe hurtled towards the coming conflict. Every major power was busy devising mobilization plans and field regulations to deploy millions of troops.</p><p>The British had just concluded the Boer war and switched to Khaki coloured field uniforms after realizing the importance of camouflage in the era of rifles and machine guns. The ever efficient Germans had adapted the drab field grey colours for their uniforms without a second thought. Meanwhile, there was a fierce debate raging in the French Military circles about the colours to adopt for the French field uniforms.</p><p>Adolphe Messimy, who was then the Minister of War for France proposed grey-green and grey-blue colours for the French Army. In fierce opposition to this, the conservatives were hell bent on retaining the brilliant colours from the Napoleonic era. These uniforms were the pride of the French Army and the conservatives bristled at the notion of having to give up their cherished colours. Whatever shortcomings the French Army colours had in the era of modern warfare, the French <em>elan</em> or the <em>will of the French soldier</em> was expected to make up for it. The French army by this time had been deeply indoctrinated with the <em>spirit of the offensive</em> — the idea that victory could only be achieved by inflicting quick crippling defeats on the enemy and that offensive was the only true way to victory. Messimy’s words were soon drowned out amidst such hot headed ideas.</p><p>In the end, the conservatives won and Messimy ruefully remarked — “This stupid blind attachment to the most visible of colours will have cruel consequences”. The French would soon pay a terrible price for not heeding those words as they clashed against Germans in the Battle of the Frontiers.</p><h3>Battle of the Frontiers — 1914</h3><p>World War 1 broke out and on 7th August, the French launched their first major offensive against Germany in the heavily wooded Alsace Lorraine area. The French engaged the Germans on a front that was 150 KM wide and plunged into battle with bayonets fixed on to their rifles. With a supreme disdain for the defensive and a belief that offensive is the one true way to victory, waves of soldiers crashed against the well entrenched Germans who had dug in with machine guns.</p><p>Thick fog lay across the battlefield in Ardennes when full scale battle broke out. The German field grey melted away in the fog while the French soldiers were blue and red beacons in a sea of grey. The German machine guns razed through entire French divisions as they mounted wave after wave of frontal attacks against the entrenched positions. The French <em>elan</em> coupled with outdated field regulations had disastrous consequences for the French army.</p><h3>Aftermath</h3><p>By 1915, the illusions of a quick and decisive victory had given way to the grim prospect of a long war of attrition. The French had finally acknowledged the need for less conspicuous uniforms and proposed a cloth woven from red, white &amp; blue threads which resulted in a drab purple colour but still symbolized the national colours of France to appease the conservatives. In an almost comical revelation, It was soon discovered that the dye needed to colour the threads red was only manufactured in Germany. Finally, only white and blue threads were adopted which resulted in a blue-grey uniform known as “horizon-blue” uniforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*AfJGKmVMrwiOmI8SzIM_gw.jpeg" /></figure><p>When the dust finally settled after the Battle of the Frontiers, the French had suffered 329,000 casualties in a span of just a month with 75,000 dead. Of the 75,000 dead, 27,000 were killed in just one day of battle. Within a month of the opening of the war, the French army had suffered unsustainable casualties and the offensive was broken off. Instead of the quick crippling defeat that it had hoped to inflict on Germany, the entire French front was in full retreat before the German onslaught. The war was to soon devolve into a battle of trenches as millions of soldiers dug in and waited for an end to the war. An end that was not to come for another five long years.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eee82a50af35" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trench-full-of-dead-men/the-colors-of-death-eee82a50af35">The Colors of Death</a> was originally published in <a href="https://medium.com/trench-full-of-dead-men">Trench Full of Dead Men</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Franco-British Union]]></title>
            <link>https://medium.com/trench-full-of-dead-men/the-franco-british-union-6e73fbe25639?source=rss-5dc2af406cb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e73fbe25639</guid>
            <category><![CDATA[war]]></category>
            <dc:creator><![CDATA[Vinay Nadig]]></dc:creator>
            <pubDate>Tue, 18 Sep 2018 17:01:38 GMT</pubDate>
            <atom:updated>2018-09-18T17:01:38.023Z</atom:updated>
            <content:encoded><![CDATA[<p>A little known fact about the Second World War is that it almost resulted in the creation of a Franco-British nation — the union of Great Britain &amp; France as a single nation with a single citizenship. If this was achieved, the nation would have been the largest colonial empire at the time occupying more than half of Africa and significant chunks of South &amp; South East Asia. It would have combined the largest and the fourth largest Navy at the time to create a colonial behemoth.</p><h4>Battle of France</h4><p>On May 10th, 1940, the Battle of France started when the Germans attacked the Western Front. By the end of May, the French were reeling from the German Blitzkrieg and the entirety of the French Army was cut in half. The northern armies were hemmed in near Dunkirk &amp; the southern armies were falling back towards Paris. On June 14th, Paris fell and the morale of the French Government which was so low already, was nearing collapse.</p><p>The British at this junction faced a frightening prospect. The fall of France would leave her the sole opposing force against the might of the Nazi Empire. United States stood aloof and could not commit militarily yet. Stalin was on the brink of annexing the Baltic States and was happy to let Hitler dominate Eastern Europe. Italy had declared war on the Allies just 4 days prior(10th June) and Japan could enter the war on the Axis side at any moment. Hitler had just completed his 4th military conquest of the war and France would be the 5th and the most powerful country to fall yet.</p><p>To add to the agony, the French Navy was the 4th largest Navy at the time and in grave peril of falling into the Nazi hands. If the Germans were to lay their hands on the French Naval resources, the seaborne invasion of Britain would be considerably easier.</p><h4>Franco-British Union</h4><p>With such bleak prospects on the horizon, the British were desperate to stiffen France and urged her to continue the war from her colonies if France itself was to fall. To further show her commitment to the survival of France, they offered the unconditional <a href="https://en.wikipedia.org/wiki/Franco-British_Union#World_War_II_.281940.29">unification of Britain &amp; France</a>. The relevant text from the proposal is provided below.</p><blockquote>France and Great Britain shall no longer be two nations, but one Franco-British Union. The constitution of the Union will provide for joint organs of defence, foreign, financial and economic policies. Every citizen of France will enjoy immediately citizenship of Great Britain, every British subject will become a citizen of France.</blockquote><p><a href="https://en.wikipedia.org/wiki/Paul_Reynaud">Prime Minister Reynaud</a> presented the proposal to the French Cabinet meeting on 16th June. Far from seeing it as a helping hand, the overwhelming majority of the cabinet rejected the proposal with allegations that it was a plan of the British to bring France under her dominion and to steal her colonies. <a href="https://en.wikipedia.org/wiki/Philippe_P%C3%A9tain">Pétain</a>, the leader of the defeatists faction, called the unification a ‘<em>fusion with a corpse</em>’ believing that the war was effectively over and that Britain would fall in the near future. Thus passed the last chance of France to continue the war and to resist the Nazi tyranny.</p><h4>Aftermath</h4><p>The French surrendered on June 21st and the <a href="https://en.wikipedia.org/wiki/Armistice_of_22_June_1940">Armistice</a> with France was signed on 22nd at <a href="https://en.wikipedia.org/wiki/Forest_of_Compi%C3%A8gne">Compiègne</a>. The Armistice called for the disarming but not the surrender of the French Navy. This ensured on paper at least that the Germans would not be able to use the French Navy against the Allies. But, like so many of Hitler’s promises, this too would soon be broken.</p><p>The Germans set up a puppet government with <a href="https://en.wikipedia.org/wiki/Philippe_P%C3%A9tain">Pétain</a> at its head. This is popularly known as the <a href="https://en.wikipedia.org/wiki/Vichy_France">Vichy regime</a>. If France had accepted the Union of Britain &amp; France, they could have no doubt continued the war from Great Britain and from her colonies. Generations to come would have lauded her sacrifice of her homeland and a prelude to a united Europe would have been set after the war. Instead, the ignominious Vichy regime came into power which not only abandoned the Allied cause, but in some cases, actively opposed it militarily.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e73fbe25639" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trench-full-of-dead-men/the-franco-british-union-6e73fbe25639">The Franco-British Union</a> was originally published in <a href="https://medium.com/trench-full-of-dead-men">Trench Full of Dead Men</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Pettiness of Great Men]]></title>
            <link>https://medium.com/trench-full-of-dead-men/the-pettiness-of-great-men-928118436052?source=rss-5dc2af406cb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/928118436052</guid>
            <category><![CDATA[wib-history]]></category>
            <dc:creator><![CDATA[Vinay Nadig]]></dc:creator>
            <pubDate>Tue, 18 Sep 2018 16:57:37 GMT</pubDate>
            <atom:updated>2018-09-18T16:57:37.089Z</atom:updated>
            <content:encoded><![CDATA[<h4>Armistice of Compiègne — 1918</h4><p>The 11th hour of the 11th day of the 11th month of 1918 marked the end of the <strong>World War 1</strong>. The Armistice was signed earlier that day in the carriage of Commander Foch in the forest of Compiègne between the victorious Allies &amp; the defeated Germany. The Germans formally accepted defeat and all hostilities between the Allies &amp; Germany ceased.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*OWyPvdU3VwZj3keP.jpg" /><figcaption>The Allied &amp; the German Delegation at the Armistice of Compiègne — 1918</figcaption></figure><h4>Treaty of Versailles — 1919</h4><p>Six months later, on 28th June, 1919, the Germans were forced to sign the Treaty of Versailles. The terms imposed on Germans in this treaty is one of the harshest that were ever imposed on a defeated nation in recent history. Poland &amp; Czechoslovakia were formed at the expense of German &amp; Austro-Hungarian territory. Germany was stripped of its colonies which were split between the Allied nations.</p><p>The German Army, arguably the finest the world had seen up till that point was reduced to a meager 100,000 in number. The German Navy was irretrievably ruined after surrendering the majority of its Battleships &amp; U-Boats to the Allies. Germany was banned from having an Air-force of their own. Reparations were to be paid by Germany to the Allied nations which amounted to 50 Billion Gold marks.</p><p>The Allied Commander Foch called for the permanent occupancy of the Rhineland on Germany’s west so that a buffer could be created between Germany &amp; France. At the end, the efforts of the Britain &amp; USA prevailed and the Rhineland was left unoccupied but de-militarized. This outraged Foch who called the Treaty of Versailles a ‘Treason’. His belief was that only the permanent weakening of Germany through the occupation of Rhineland would prevent further war between France &amp; Germany. When the Treaty of Versailles was being signed, he spoke the prophetic words — “This is not peace! It is an armistice for 20 years”. 20 years later, his words would come true and the world would witness the greatest bloodletting it had seen till date.</p><p>Such harsh conditions were bound to embitter the Germans. The Germans felt they had a score to settle with the Allies. Hitler felt he had a score to settle with the Allies.</p><h4>The Defeat of France — 1940</h4><p>When the Germans launched the Western Offensive against against France, they were counting on a quick defeat of the France before they could turn to the conquest of Britain. Their hopes were realized beyond their wildest dreams after France accepted defeat in just 6 weeks. Hitler had expected that a million Germans would die in the Battle of France. The actual German casualties were a relatively paltry 27,000 dead &amp; 18,400 missing. The French Army, which had deployed more than 2 Million men along its front against Germany formally accepted defeat and the French Government asked the Germans for an Armistice.</p><h4>Armistice of Compiègne — 1940</h4><p>When Hitler had to select the venue for the signing of the Armistice, he chose the carriage of Commander Foch in the forest of Compiègne — The very same carriage in which the Germans had signed the Armistice back in 1918. He even had it removed from the museum and had it placed at exactly the same place it had occupied in 1918.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*JdTsBgdAWrJEaxQL.jpg" /><figcaption>The Carriage after being removed from the Museum at Hitler’s order</figcaption></figure><p>To humiliate the French further, Hitler attended the meeting and seated himself at the same chair that Foch had occupied in 1918. Exactly like Foch 20 years ago, he left after hearing the preamble in a show of disdain towards France. Further negotiations were turned over to his Chief of Staff — <a href="https://en.wikipedia.org/wiki/Wilhelm_Keitel">Wilhelm Keitel</a>.</p><p>After the surrender, he ordered that the site be razed to the ground and the Carriage be taken back to Germany. Everything except General Foch’s statue was ordered to be demolished so that Foch could preside over the ruins of his life’s work for all of eternity. Such was the pettiness of Hitler, the conqueror of 6 nations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=928118436052" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trench-full-of-dead-men/the-pettiness-of-great-men-928118436052">The Pettiness of Great Men</a> was originally published in <a href="https://medium.com/trench-full-of-dead-men">Trench Full of Dead Men</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Compassionate Killers]]></title>
            <link>https://medium.com/trench-full-of-dead-men/the-compassionate-killers-2006a6976865?source=rss-5dc2af406cb3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2006a6976865</guid>
            <category><![CDATA[history]]></category>
            <category><![CDATA[ww2]]></category>
            <category><![CDATA[holocaust]]></category>
            <dc:creator><![CDATA[Vinay Nadig]]></dc:creator>
            <pubDate>Fri, 09 Dec 2016 14:18:43 GMT</pubDate>
            <atom:updated>2016-12-10T12:14:18.202Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s amazing how simultaneously fragile and resilient the human body can be. You can go weeks without food and days without water and endure hostile environments and still recover from the rigors to almost full health. You can subsist on the barest of rations for years as your body slowly cannibalizes on it’s own flesh and fat.</p><p>All this &amp; more occurred on an almost unprecedented scale during the second World War. The official though unannounced policy of Germany was to exterminate all local population from occupied territory largely by starvation. This would pave way for the Germans to move into the territory for settlement —<a href="https://en.wikipedia.org/wiki/Lebensraum"> Lebensraum</a></p><p>Only after the tide of the war turned in favor of the Allies did Germany realize the importance of the Human Labor which was so scarce and vital for the German economy as the war progressed. It was later decided that instead of starving the occupied population to death, they would be worked to death in the concentration camps while being fed on the barest of rations.</p><p>People survived years on bread that had more saw-dust than flour in it. <a href="https://www.google.co.in/search?q=concentration+camp&amp;source=lnms&amp;tbm=isch&amp;sa=X&amp;ved=0ahUKEwjB4eeApefQAhUFQ48KHfhXAf8Q_AUICCgB&amp;biw=1123&amp;bih=655">Innumerable pictures</a>(NSFW) show the skeletal frames of the concentration camp inmates who were forced to work in the bitter cold of the winter with barely a rag to cover themselves. Under these conditions, the body gets used to the lack of the nutrients.</p><p>You can survive for months &amp; years in this way as long as you get some minimum amount of nourishment to sustain yourself. The surprising part is when you get back on regular diet. After a prolonged period of starvation, if you get back to a regular healthy diet abruptly, you run the risk of death. Your body is simply not equipped to handle the sudden influx of nutrients that was denied to it for so long — aptly called the <a href="https://en.wikipedia.org/wiki/Refeeding_syndrome">Refeeding Syndrome</a>.</p><p>When the Allied forces liberated occupied France &amp; entered German soil, they were appalled to discover the conditions in these concentration camps. The camps themselves were no secret, it was long known that state-sponsored &amp; systematic elimination of the Jewish race was being carried out all over Germany &amp; occupied territories. What surprised most allies was the scale at which it was happening. <a href="https://en.wikipedia.org/wiki/Auschwitz_concentration_camp">Auschwitz</a>— The most notorious of the concentration camps, was alone responsible for the death of <a href="https://en.wikipedia.org/wiki/Auschwitz_concentration_camp#Death_toll">more than a million</a> people either through starvation or murder.</p><p>Allied soldiers entering these camps were struck dumb by the pitiable state of existence of most inmates. In a show of compassion, many shared their meager rations with the liberated survivors of the camps. Nothing extravagant — a loaf of bread in many cases. Even this proved too much for the emaciated bodies of the survivors. Many dropped dead just because their body could not handle the sudden change in their diet.</p><p>It’s a tragic irony that after surviving the brutality &amp; barbarity of the concentration camps for so long, so many died from the first act of compassion they had seen for years.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2006a6976865" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trench-full-of-dead-men/the-compassionate-killers-2006a6976865">The Compassionate Killers</a> was originally published in <a href="https://medium.com/trench-full-of-dead-men">Trench Full of Dead Men</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>