<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on Maheswaran Moothiringode</title>
    <link>https://maheswaranm.com/posts/</link>
    <description>Recent content in Posts on Maheswaran Moothiringode</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 01 Nov 2020 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://maheswaranm.com/posts/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>My website is now continuously built and deployed!</title>
      <link>https://maheswaranm.com/posts/2020/11/my-website-is-now-continuously-built-and-deployed/</link>
      <pubDate>Sun, 01 Nov 2020 00:00:00 +0000</pubDate>
      
      <guid>https://maheswaranm.com/posts/2020/11/my-website-is-now-continuously-built-and-deployed/</guid>
      <description>&lt;p&gt;This blog is now continuously built and deployed.&lt;/p&gt;
&lt;p&gt;This post will serve as a test for me to see if the deployment works fine. 😄&lt;/p&gt;
&lt;p&gt;I am using a self hosted &lt;a href=&#34;https://drone.io/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;drone-ci&lt;/a&gt; instance to build, test and deploy my site to AWS. 😎&lt;/p&gt;
&lt;p&gt;More details in a later post.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>The tech behind my sites</title>
      <link>https://maheswaranm.com/posts/2019/02/the-tech-behind-my-sites/</link>
      <pubDate>Tue, 26 Feb 2019 00:00:00 +0000</pubDate>
      
      <guid>https://maheswaranm.com/posts/2019/02/the-tech-behind-my-sites/</guid>
      <description>&lt;p&gt;Blogs have been an amazing source of learning for me in the past few years. And I have been having this keen interest in starting one and maintaining it myself.&lt;/p&gt;
&lt;p&gt;I now have created three different pages I plan to maintain with as many posts as possible. Here is what is behind each of those.&lt;/p&gt;
&lt;h5 id=&#34;my-websitehttpsmaheswaranmcom&#34;&gt;&lt;a href=&#34;https://maheswaranm.com&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;My Website&lt;/a&gt;&lt;/h5&gt;
&lt;p&gt;I remember buying the domain some time in 2009 back when I was in college. But then left it unused for quite a while. I setup a blog after a while. But then moved to using a landing page that I have right now. This was setup some time in early 2018.&lt;/p&gt;
&lt;p&gt;This is a simple static landing page which is mostly taken as is from &lt;a href=&#34;https://web.archive.org/web/20200424235234/https://html5up.net/aerial&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;HTML5Up&amp;rsquo;s Aerial template&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The site is built as a hugo static site. Using Seth MacLeod&amp;rsquo;s port (no longer public on Github) of the template. I added my own slight variations on the site and this is available on &lt;a href=&#34;https://github.com/maheswaranm/aerial&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;my github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I got rid of most of the stylings there. I loved the background color they used and decided to keep that as the base color for all my sites.&lt;/p&gt;
&lt;h5 id=&#34;my-bloghttpsblogmaheswaranmcom&#34;&gt;&lt;a href=&#34;https://blog.maheswaranm.com&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;My Blog&lt;/a&gt;&lt;/h5&gt;
&lt;p&gt;This is what I consider will be a changelog of everything that happens in my life.
This blog is also a static site. Built using &lt;a href=&#34;https://gohugo.io/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Hugo&lt;/a&gt; - the amazing static site generator.&lt;/p&gt;
&lt;p&gt;The layout is my own. Inspired by most of the blogs I read. May not be the best on all devices, but works. Hugo&amp;rsquo;s templating system makes it easy to play with the different things and create all the pages that I need.&lt;/p&gt;
&lt;p&gt;The source code is available &lt;a href=&#34;https://github.com/maheswaranm/blog.maheswaranm.com&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;on github&lt;/a&gt; if you want to go through how I created it.&lt;/p&gt;
&lt;h5 id=&#34;my-projects-homehttpsprojectsmaheswaranmcom&#34;&gt;&lt;a href=&#34;https://projects.maheswaranm.com&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;My Projects home&lt;/a&gt;&lt;/h5&gt;
&lt;p&gt;Call this a portfolio if you must. But I consider this a placeholder for all the amazing open-source projects I have created and plan to create in future. 😄&lt;/p&gt;
&lt;p&gt;This is also a static site built on Hugo. Layout is slightly different to show more details as compared to the blog. Still something I have created on my own in the quest to becoming CSS and design master.&lt;/p&gt;
&lt;h5 id=&#34;hosting&#34;&gt;Hosting&lt;/h5&gt;
&lt;p&gt;All these websites are hosted on AWS as of this post.&lt;/p&gt;
&lt;p&gt;The websites are hosted as a static site on &lt;a href=&#34;https://aws.amazon.com/s3/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;S3&lt;/a&gt;, with a &lt;a href=&#34;https://aws.amazon.com/route53/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;route 53&lt;/a&gt; domain configuration pointing to a &lt;a href=&#34;https://aws.amazon.com/cloudfront/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Cloudfront&lt;/a&gt; distribution.&lt;/p&gt;
&lt;p&gt;Most of the things I setup follow the &lt;a href=&#34;https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;AWS tutorial&lt;/a&gt; to setup a static site. The setup is not free, but the cost is very very less. Right now, I spend just half a dollar to maintain all these sites.&lt;/p&gt;
&lt;p&gt;Looks like this is my fourth hosting solution as per &lt;a href=&#34;https://completedns.com/dns-history/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Complete DNS History&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I had setup automated deployment on Travis for a while. But went back on that after moving to AWS. Have to setup that again, but that is for another post. 😄&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Halite 3 - My Python bot in Silver League</title>
      <link>https://maheswaranm.com/posts/2019/01/halite-3-my-python-bot-in-silver-league/</link>
      <pubDate>Thu, 31 Jan 2019 00:00:00 +0000</pubDate>
      
      <guid>https://maheswaranm.com/posts/2019/01/halite-3-my-python-bot-in-silver-league/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://halite.io/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Halite&lt;/a&gt; is an artificial intelligence challenge, by Two Sigma. The competition is mostly about writing a bot which then competes against other players. You are ranked based on how well you do against them.&lt;/p&gt;
&lt;p&gt;The goal is to write a program to control a set of bots that can move around on a fixed size board and collect items that are scattered across the map.&lt;/p&gt;
&lt;p&gt;I reached the silver league, which is top 25%. With a &lt;a href=&#34;https://2018.halite.io/user/?user_id=7761&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;rank of 730&lt;/a&gt; out of around 3000 competitors.&lt;/p&gt;
&lt;p&gt;As per their analysis I made 14 different versions. The first few was me just submitting the tutorial bot. Then the next few was me trying to figure out how their offline tools work and submitting from there. I spent about an hour each of the next times I played with my bot. Making small updates and pushing it out.&lt;/p&gt;
&lt;p&gt;Here is a snapshot of a game in which my bot won. My program controls all the bots in red.
View the &lt;a href=&#34;https://2018.halite.io/play/?game_id=5211549&amp;amp;replay_class=0&amp;amp;replay_name=replay-20190126-194507%2B0000-1548531693-48-48-5211549&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;full replay here&lt;/a&gt;.&lt;/p&gt;
&lt;figure class=&#34;md:m-10 my-10 object-contain&#34;&gt;
    &lt;img src=&#34;https://maheswaranm.com/images/002/halite3_screenshot.png&#34;
         alt=&#34;halite screenshot&#34; width=&#34;400&#34; height=&#34;400&#34;/&gt; 
&lt;/figure&gt;

&lt;p&gt;Most of my changes were just slight variations to handle one or two conditions that I saw happening most in the games played by my then bot. I didn&amp;rsquo;t get to make use of some components like dropoffs etc in the game.&lt;/p&gt;
&lt;p&gt;Read more about how the game works in their &lt;a href=&#34;https://2018.halite.io/learn-programming-challenge/game-overview&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;learn section&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The game is definitely a fun way to experiment with programming in a competitive environment. Didn&amp;rsquo;t get to spend a lot of time on this contest. But will definitely try to put some time away for this the next time this happens.&lt;/p&gt;
&lt;p&gt;View &lt;a href=&#34;https://gist.github.com/maheswaranm/8edbed05cb86fd1db88ede7a31d9912e&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;my implementation here&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Hello World! (Again)</title>
      <link>https://maheswaranm.com/posts/2019/01/hello-world-again/</link>
      <pubDate>Tue, 01 Jan 2019 00:00:00 +0000</pubDate>
      
      <guid>https://maheswaranm.com/posts/2019/01/hello-world-again/</guid>
      <description>&lt;p&gt;Hello World !&lt;/p&gt;
&lt;p&gt;Again. I look back at every time I wanted to jot down my thoughts and started.
Every time saying to myself &amp;ldquo;This is the one that becomes world-famous.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Then, I freeze up. The fear that I might become the next &lt;a href=&#34;https://www.goodreads.com/book/show/7725244-dork/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Dork&lt;/a&gt;,&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt;
for &lt;a href=&#34;https://www.whatay.com/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Sidin&lt;/a&gt; to write about, grips me.&lt;/p&gt;
&lt;p&gt;But then, I have so many papers with my thoughts written down. Not everything is public or will be.&lt;/p&gt;
&lt;p&gt;This blog that you are reading now is the next trial in that long line.
This is written in &lt;a href=&#34;http://gohugo.io/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Hugo&lt;/a&gt;.
And deployed on &lt;a href=&#34;https://aws.amazon.com/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;AWS&lt;/a&gt; as a static website.&lt;/p&gt;
&lt;p&gt;Here are some of my old trials that are still on the interwebs.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://web.archive.org/web/20161004130103/http://maheswaranm.com/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;My Jekyll Site&lt;/a&gt;&lt;br&gt;
I didn&amp;rsquo;t want to &amp;ldquo;migrate&amp;rdquo; this one over to Hugo.&lt;br&gt;
Let&amp;rsquo;s just say this one is best left as it is now.&lt;br&gt;
To keep the &amp;ldquo;new beginnings&amp;rdquo; philosophy that led to this site, I&amp;rsquo;ll keep the old one &amp;ldquo;archived&amp;rdquo;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://maxthestrangerinmymirror.wordpress.com/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;My Wordpress Blog&lt;/a&gt;&lt;br&gt;
The first blog where I wrote the most. Has not been updated in a while.&lt;br&gt;
My personal favourites on this blog are these two.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://maxthestrangerinmymirror.wordpress.com/2009/07/26/an-interview-with-mr-chikungunya/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;An Interview With Mr. Chikungunya&lt;/a&gt;&lt;br&gt;
&lt;a href=&#34;https://maxthestrangerinmymirror.wordpress.com/2009/08/18/the-enginner-goes-vegetable-shopping/&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;The Engineer Goes Vegetable Shopping&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Check them out if you want to get a peek into how my thought processes were back then.&lt;/p&gt;
&lt;p&gt;I pen down my thoughts on &lt;a href=&#34;https://twitter.com/maheswaranm&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;Twitter&lt;/a&gt; often.
Though that is pretty inconsistent.&lt;/p&gt;
&lt;p&gt;Or check the list of social networks that I am in.&lt;/p&gt;
&lt;p&gt;Hang around, you might get to know more of me.&lt;/p&gt;
&lt;section class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id=&#34;fn:1&#34; role=&#34;doc-endnote&#34;&gt;
&lt;p&gt;In case you have not read it, Dork is a series of books where the story is written as the author chancing upon the diary of the Dork in some fashion. &lt;a href=&#34;#fnref:1&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;
</description>
    </item>
    
  </channel>
</rss>