<?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[Mammoth Stories - Medium]]></title>
        <description><![CDATA[Musings from people building Mammoth - Medium]]></description>
        <link>https://medium.com/mammoth-stories?source=rss----53cba933addf---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Mammoth Stories - Medium</title>
            <link>https://medium.com/mammoth-stories?source=rss----53cba933addf---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:59:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/mammoth-stories" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Sub-Domain Recipe for Heroku]]></title>
            <link>https://medium.com/mammoth-stories/a-sub-domain-recipe-for-heroku-24eca44450a9?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/24eca44450a9</guid>
            <dc:creator><![CDATA[Amit Narayanan]]></dc:creator>
            <pubDate>Tue, 07 Jul 2015 23:26:26 GMT</pubDate>
            <atom:updated>2015-07-08T07:29:34.006Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQnUKhylmcFN2SEfWIytKA.jpeg" /></figure><h2>A Sub-domain Recipe for Heroku</h2><h3>Quickly add sub-domains to a web-app</h3><h3>A step-by-step process</h3><p>As apps grow bigger, a nice way to achieve logical and physical separation is to dice it up into sub-domains. And run each as a separate app with its own monitoring and performance thresholds. This way, the metrics for each are also split (api.yoursite.com, admin.yoursite.com, app.youresite.com, etc.) and become more fine grained. So that slow query joining several tables for a dashboard view will no longer gunk up the stats for say, APIs.</p><p>This could mean the spinning off of orthogonal things like admin features and dashboards, or separating the app’s core (say publicly available parts from private ones), or something else entirely.</p><h3>Two Kinds Of Separation</h3><p>Sub-domains can be either logically or physically separate depending on how it is configured.</p><p>Logical separation allows dynamically creating as many sub-domains as needed (like a sub-domain per customer) all pointing back to same DNS host.</p><p>Physically separating the app (i.e. running the app on different DNS hosts) requires setting up the actual hosts, running the app on these hosts, and configuring DNS so each sub-domain points to / resolves to the correct host.</p><h3>Heroku</h3><p>For <a href="https://mammothhq.com/">Mammoth</a>, I needed a quick, reliable, and repeatable process for separating an app into sub-domains, but couldn’t really find one. And each time I attempted it, there was always something that ended up getting missed.</p><p>Given the nature of the beast, it isn’t really possible for anyone to remember exactly all of the steps involved along with all the gory little details, so I decided to collect them into a ‘recipe’ of sorts. I hope this helps anyone trying to do the same thing on <a href="https://heroku.com/">Heroku</a>. Here we go.</p><h4>Create New Heroku App</h4><pre># create new heroku app to run on the new subdomain</pre><pre>heroku apps:create SUBDOMAIN-APP-NAME</pre><h4>Add Heroku “SSL Add-On”</h4><p>Of course, you’ll need this only if your app supports HTTPS. If not, skip this and the next.</p><pre># get the heroku &quot;ssl add-on&quot; for the new app</pre><pre>heroku addons:create ssl:endpoint -a SUBDOMAIN-APP-NAME</pre><h4>Add SSL Certs</h4><p>Point to note here is that this cert must necessarily be a <a href="https://en.wikipedia.org/wiki/Wildcard_certificate">wildcard cert</a> which verifies anything under yourwebsite.com (*.yourwebsite.com).</p><pre># add wild card cert to new heroku app</pre><pre>heroku certs:add STAR_CERT.pem STAR_CERT.key -a SUBDOMAIN-APP-NAME</pre><h4>DNS</h4><p>Within your DNS provider’s interface, add a new CNAME record pointing to the newly generated <a href="https://addons.heroku.com/SSL">Heroku SSL Endpoint</a> (or the naked Heroku app endpoint if not using the Heroku SSL Add-on) in the above step.</p><p>This may need a bit of time to propagate, so continue with the rest of the config while letting this bake. We can test this at the very end.</p><h4>Install Config Var Plugin</h4><p>Manually copying config vars just blows. <a href="https://heroku.com/">Heroku</a> plugins to the rescue. This one makes it dead simple to copy config vars from one <a href="https://heroku.com/">Heroku</a> app to another.</p><p>Of course, you can skip this step if you already have this plugin or another one that does the same thing.</p><pre># install plugin to copy config vars</pre><pre>heroku plugins:install <a href="https://github.com/set5think/heroku-config-copy.git">https://github.com/set5think/heroku-config-copy.git</a></pre><h4>Copy Config Vars</h4><pre># copy config vars to the new heroku app </pre><pre>heroku config:copy --dst_app SUBDOMAIN-APP-NAME -a ROOT-APP-NAME</pre><h4>Tweak Config Vars</h4><p>Once you’ve copied all config vars, you most likely want to tweak a few. At the minimum you’ll want to tweak the Heroku and NewRelic app name configurations. You may have more depending on your app.</p><pre># tweak config vars</pre><pre>heroku config:set HEROKU_APP=SUBDOMAIN-APP-NAME NEW_RELIC_APP_NAME=SUBDOMAIN-APP-NAME -a SUBDOMAIN-APP-NAME</pre><h4>Set Canonical Host</h4><pre># set canonical host. rack config can no longer default to <br># your-production-app.com or your-staging-app.com each physically<br># separate app needs to configure it&#39;s own canonical host</pre><pre>heroku config:set CANONICAL_HOST=subdomain.yourapp.com -a SUBDOMAIN-APP-NAME</pre><h4>Configure Heroku Custom Domain</h4><p>Do this to change the default <a href="https://devcenter.heroku.com/articles/custom-domains">Heroku custom domain</a> (that is added automatically by Heroku when an app is provisioned) to your actual domain (yoursite.com)</p><pre># configure heroku app with custom domain</pre><pre>heroku domains:add subdomain.yourwebsite.com -a SUBDOMAIN-APP-NAME</pre><h4>Configure Heroku Remote</h4><p>Add a new <a href="http://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes">git remote</a> endpoint so you can push the latest code base to this new app (the one that’ll run on your sub-domain)</p><pre># add a git remote to newly created heroku app so you can <br># push code to it</pre><pre>git remote add SUBDOMAIN-APP-NAME <a href="https://git.heroku.com/sp-XXXX-YYYY.git">https://git.heroku.com/RELEASE-BRANCH-NAME.git</a></pre><h4>Push</h4><pre># push<br>git push SUBDOMAIN-APP-NAME master</pre><h4>Test DNS config</h4><p>Finally we want to test if the new CNAME record that we created before with the DNS provider actually resolves to the correct host.</p><pre>dig NS +short subdomain.yourwebsite.com</pre><p>Somewhere in response to this command should be the new sub-domain name (CNAME) and the <a href="https://devcenter.heroku.com/articles/ssl-endpoint">Heroku SSL endpoint</a> that it points to.</p><pre>blah1-1234.herokussl.com.<br>1234567890.us-west-1.elb.amazonaws.com.</pre><p>If CNAME points to the correct Heroku SSL endpoint, we’re basically done. Try curl-ing https://subomain.yoursite.com and if it responds in the affirmative, we’re off to the races.</p><h3>Local Development</h3><p>This is great, but what happens to our local development environments? We could muck with our /etc/hosts file, but there’s an even easier way.</p><p>And that is to use lvh.me (local virtual host). On this, thanks are due to <a href="https://twitter.com/levicook">@levicook</a> for registering this domain, so we don’t all have to reconfigure our computers.</p><pre>SlimJim:mammoth $ whois lvh.me<br>Registrant Name:Levi Cook</pre><p>All we really need to do is configure the HOST_NAME param in development.rb.</p><pre>HOST_NAME = &quot;lvh.me:3000&quot;</pre><p>Now, all sub-domains like admin.lvh.me:3000, api.lvh.me:3000, etc. will, by default, resolve to localhost:3000.</p><p>Alternatively, we could also use something like <a href="https://ngrok.com/">ngrok</a>.</p><h3>Split the App?</h3><p>Since we now have functional sub-domains that can run our app, we have two options on what to do with the original code base. Ideally, we would also split up the code base so each sub-domain runs only what’s relevant. But this isn’t easy. Indeed, this is a lot of work and something deserving of it’s own post. Splitting the code base means all kinds of refactorings to extract functionality and ensuring that code isn’t duplicated while doing so. Do all common classes become their own Gems? How about models? Do they also become Gems? You see where I’m going and how it could become a can of worms.</p><p>I have an easier way. And this is to not bother separating the code base, but have the exact same app running on all the sub-domains. And instead, create more sophisticated routes with sub-domain constraints that, depending on the request, can be smartly routed to the correct sub-domain.</p><p>Here’s an example of how to always route a request to “some_request_path” to a subdomain:</p><pre>get &#39;some_request_path&#39;, to: redirect(subdomain: &#39;subdomain&#39;, path: &#39;some_request_path&#39;)</pre><p>Granted, this has the redirect ugliness which slows down the first request (the redirect makes it 2 HTTP requests instead of one), but all subsequent requests to this sub-domain will work as always. I’m all ears if someone’s got a neat solution to circumvent even the initial redirect (<a href="https://twitter.com/amitnarayanan">Hit me up!</a>)</p><p>This way though, the code base stays the same which makes it infinitely easier to manage. It also makes deployment a cake with <a href="https://devcenter.heroku.com/articles/github-integration">git connector</a>.</p><h3>Got Connectors?</h3><p>Sorry, couldn’t resist. I meant <a href="https://devcenter.heroku.com/articles/github-integration">Git connectors</a> of course, which are absolutely brilliant. And here’s why.</p><p>With multiple sub-domains, we’ll need to push the latest code base to each host. But pushing the app manually to each separate host gets old really fast. But the good folk at <a href="https://heroku.com/">Heroku</a> already thought of this and added <a href="https://devcenter.heroku.com/articles/github-integration">git connectors</a>. In short, it’s a separate git branch (or repo, if you like) for (stage or production) releases that <a href="https://heroku.com/">Heroku</a> can monitor. And whenever said branch (or repo) is updated, the latest code in that branch is auto-deployed to all configured hosts. It’s simple and elegant. The best part is that the logs from the deployment is piped straight into the <a href="https://dashboard.heroku.com/">Heroku dashboard</a> (under the “Activities” tab—all logging is live). Indeed, I found this sole feature alone so neat that I sent them a <a href="https://mammothhq.com/boards/123538">quick note</a> about it (it was beyond midnight or something, so excuse my French :).</p><p>With <a href="https://devcenter.heroku.com/articles/github-integration">git connector</a> hooked up, we can now push the latest app to all hosts with a single command:</p><pre># push to all hosts with a single command</pre><pre>git push STAGE-RELEASE-BRANCH master<br>git push PROD-RELEASE-BRANCH master</pre><p>Happy <em>sub-domaining!</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FN8UmUxcepQM%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DN8UmUxcepQM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FN8UmUxcepQM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf5b9cdd3a9f6086115ddf665a20558e/href">https://medium.com/media/cf5b9cdd3a9f6086115ddf665a20558e/href</a></iframe><p><em>I’m </em><a href="https://twitter.com/amitnarayanan"><em>@amitnarayanan</em></a><em> on Twitter.</em></p><p><strong><em>Also, check out </em></strong><a href="https://mammothhq.com/"><strong><em>Mammoth</em></strong></a><strong><em>, a cool app I’m currently building.</em></strong></p><p><strong><em>On the </em></strong><a href="https://mammothhq.com/"><strong><em>web</em></strong></a><strong><em> and in the </em></strong><a href="https://itunes.apple.com/us/app/mammothhq/id898069776"><strong><em>AppStore</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24eca44450a9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/a-sub-domain-recipe-for-heroku-24eca44450a9">A Sub-Domain Recipe for Heroku</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Inside Look At AngelPad, The Top Startup Accelerator Of 2015]]></title>
            <link>https://medium.com/mammoth-stories/an-inside-look-at-angelpad-the-top-startup-accelerator-of-2015-4e2e5895eb15?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/4e2e5895eb15</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Karan MG]]></dc:creator>
            <pubDate>Fri, 22 May 2015 17:22:26 GMT</pubDate>
            <atom:updated>2015-05-22T17:24:54.085Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0hnNbnldfqmxHE5vQs90g.jpeg" /></figure><p><em>This story was originally published on </em><a href="http://www.forbes.com/sites/briansolomon/2015/05/21/an-inside-look-at-angelpad-the-top-startup-accelerator-of-2015/"><em>Forbes</em></a><em>.</em></p><p>AngelPad was recently <a href="http://www.forbes.com/sites/briansolomon/2015/03/17/the-best-startup-accelerators-of-2015-powering-a-tech-boom/">ranked the #1 startup accelerator in the US</a>. This news makes me especially proud since I just went through the program. However, before I got in, like thousands of other applicants I didn’t have any idea what it was about. While there are several articles about YCombinator, TechStars, and 500 Startups, little information is out there about AngelPad. In this post, I will explain how the program works, the people behind it, and how it helped me and my company.</p><p>As it turns out, AngelPad applications for the next session have already opened up. If you’re looking to apply, you probably have questions, and I’m going to tell you everything you need to know.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*hrWhW_PzHQ5XKWQ2zNcx9g.jpeg" /><figcaption>Karan, Amit &amp; Ashish of Mammoth at AngelPad</figcaption></figure><h3>What is Angelpad?</h3><p>AngelPad is a technology startup accelerator. It’s currently based out of New York, with strong connections to Silicon Valley. AngelPad focuses on producing long-lasting companies, usually B2B, with well-defined revenue streams. The batch is intentionally small: while thousands apply, only 12–14 companies are selected. None of the companies compete with each other. StrictlyVC called it <a href="http://www.strictlyvc.com/2014/04/17/demo-day-angelpad-anti-y-combinator/">the “Anti-YC”.</a></p><h3><strong>Who runs AngelPad?</strong></h3><h4><strong>Founders &amp; Friends</strong></h4><p>Thomas Korte was an early employee of Google and he founded AngelPad in 2010. Today, he and (his wife) Carine Magescas run the program. They work beside you, understanding everything about you, your business, and your vision. In New York, and on your trips to SF, you’ll also meet many Friends of AngelPad, such as Wesley Chan, Naval Ravikant, Dave McClure, Bryan Schrier, Keval Desai, Brendan Baker, Tom Tunguz and many more. These guys will rip apart your business and pitch, but will heap on you a ton of knowledge and give you helpful tactical feedback.</p><h4><em>AngelPad Alumni</em></h4><p>Probably the best part about AngelPad is the community of entrepreneurs that you become a part of. These are successful people who’ve been in your shoes, and are on the same journey, just further ahead. Prepare to be pleasantly surprised by how many AngelPad alums will open their doors to you, helping with your pitch, investor introductions, fund-raising advice, and a drink when you need one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*wCDAh7vTMArKRnXvXS-TSg.jpeg" /><figcaption>Sharing notes &amp; getting advice — Leo (of <a href="http://buffer.com/">Buffer</a>) and Karan</figcaption></figure><h3><strong>What happens in AngelPad?</strong></h3><p>You’ll spend 3 months in a beautiful office in Manhattan, New York. It’s a great location in Greenwich Village, with superb restaurants, bars and cafes — but don’t plan on getting out much, you’ll be working your butt off day and night.</p><p>Every week starts with the Monday morning meeting. It’s supposed to start at 9am, but you’ll learn pretty soon that 9 means 8:45. Thomas and Carine set the stage for the week, and each company books a slot for a one-on-one meeting with them.</p><p>During the meeting you work directly with “TKCM” on questions about the company and take in their advice. This is not a general advice and affection session: prepare to be steamrolled. They roll up their sleeves and work with you on the whiteboard, give direct feedback on your product (they beta test it). My advice: don’t fuss about what you think, you’re here to learn from them, and if you apply most of what they say, you’ll come out better at the other end.</p><p>Monday evenings are a 4-hour ask-me-anything session with Thomas that doesn’t usually end until close to midnight. There’s endless beer, pizza and answers to every one of your flaming questions on fundraising, hiring, legal, customer acquisition, visas and more. You’ll hear lessons learned by other companies, investor insider stories, tactical tips, and meet many AngelPad alums.</p><p>On Tuesday, be in the office by 9am. This is the day when you’ll realize how open the batch is.</p><p>One of the companies springs for breakfast, and this breakfast meeting focuses on them. They pitch, demo or ask specific questions, and everyone shares feedback. There’s no secrecy within the batch–you’ll be working together, in the same office for months, you’ll help each other, whether it’s someone’s deck or javascript. Many of the companies in our batch were using Mammoth and we got a ton of valuable feedback from them.</p><p>Tuesday or Wednesday is also when you generally schedule a follow-up one-on-one meeting with TKCM, and then spend the rest of the week working on your business, your product, customer interviews, applying all that you’ve learned from TKCM and your peers.</p><p>Friday evening around 9pm we would generally head out for dinner &amp; drinks. But Saturday you’re back in the office–do you honestly have something better to do?</p><p>Around once a month, you’ll head to San Francisco with the entire corps. These are long days with working sessions morning to night. You’ll meet some of the Friends of AngelPad and alums. If you’re lucky, you might even go on a boa tride into a very real storm with the entire batch to get drunk in Tiburon.</p><h3><strong>Demo Day</strong></h3><p>Demo day is in San Francisco. Here, in a 3-minute presentation, you’ll showcase your wares to 200 carefully selected investors such as Accel, Homebrew, and Redpoint.</p><p>Three weeks prior to demo day you begin working on your deck. You take all the feedback you’ve received so far and formulate a concise 5–10 slide deck. The goal is to get the point across without overwhelming the audience with too much information. Before demo day you’ll pitch internally to the batch several times. If you’re the nervous type, this is when you can say goodbye to that forever.</p><p>Demo day is equivalent to a mother bird kicking her little hatchlings out of the nest so they learn to fly on their own. You’ll now set up several investor meetings, pitch everyday, continually tweak the deck and the pitch, and at the same time build your company.</p><p>The good thing is you’ll always have your batch, AP alums, and TKCM to reach out to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*cGdY2O-XLV5tEUMYCK2kVQ.jpeg" /><figcaption>AngelPad Demo Day</figcaption></figure><h3><strong>Should I apply?</strong></h3><p>Short answer: yes. The form’s easy enough, it’s primarily factual. The only thing you’re really going to have to think about is the video. My advice: just get the team together and be yourself, be cool, be truthful. This is the big leagues, don’t be a joker. Your personality should shine through, and it’s what’ll help you get selected. Good luck!</p><p>Please recommend this story so someone else can benefit from it ☺. Happy to discuss in the comments or email karan [at] mammothhq.com.</p><p>Invite me to a board on <a href="https://mammothhq.com/">Mammoth</a> at <a href="https://mammothhq.com/karan">@karan</a> or follow me on Twitter at <a href="https://twitter.com/karanmg">@karanmg</a>. I build <a href="https://mammothhq.com/">Mammoth</a>. <a href="https://mammothhq.com/">Sign up</a> or see it in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FN8UmUxcepQM%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DN8UmUxcepQM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FN8UmUxcepQM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fab63310e02093dfe7e56441aec5ff08/href">https://medium.com/media/fab63310e02093dfe7e56441aec5ff08/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e2e5895eb15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/an-inside-look-at-angelpad-the-top-startup-accelerator-of-2015-4e2e5895eb15">An Inside Look At AngelPad, The Top Startup Accelerator Of 2015</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Process Inbound Emails to Your App]]></title>
            <link>https://medium.com/mammoth-stories/process-in-bound-emails-to-your-app-b9713d30e36d?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/b9713d30e36d</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Amit Narayanan]]></dc:creator>
            <pubDate>Thu, 16 Apr 2015 08:23:06 GMT</pubDate>
            <atom:updated>2015-04-20T19:16:24.197Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3r2AxR94SuV_9UbUwaV6Eg.jpeg" /></figure><h2>Inbound Emails?</h2><h3>There’s a gem for that</h3><p>(sharing notes &amp; thoughts from handling inbound emails to <a href="https://mammothhq.com/">Mammoth</a> boards.)</p><h3>Background</h3><p><a href="https://mammothhq.com/">Mammoth</a> now has a really cool feature. In addition to myriad existing ways, you can now post content to a board by just sending it an email. Got an interesting blog post on <a href="http://www.tomtunguz.com/">SaaS sales</a> from <a href="https://twitter.com/ttunguz">Tomasz Tunguz</a>? An article from <a href="https://twitter.com/jaltucher">James Altucher</a>? A <a href="http://techcrunch.com/2014/02/18/aws-for-life-science-with-4-1m-in-the-bank-transcriptic-wants-to-reinvent-scientific-research/">new way to run lab experiments</a>? Just forward the email to the board and keep the relevant people upto date.</p><h3>The Plot</h3><p>Generally speaking, in many instances, it’s great to be able to automatically handle and do something useful with inbound emails.</p><p>Email infrastructure services like <a href="https://sendgrid.com/">SendGrid</a>, <a href="http://www.cloudmailin.com/">Cloudmailin</a>, <a href="https://postmarkapp.com/">Postmark</a> or <a href="https://mandrillapp.com/">Mandrill</a> etc. all have the ability to parse inbound emails and hand it off to webapps via web-hooks. Each of them slightly different (the params, etc.), but the basic plot is the same.</p><h3>Griddler</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05Zia1O-oFxwEgk_NEXY5A.png" /><figcaption>Image From <a href="http://griddler.io/">http://griddler.io</a></figcaption></figure><p>A great gem to standardize this interface across services, is <a href="http://griddler.io/">Griddler.IO</a>. Griddler supports the above 4 out of the box, but for other services it seems fairly straightforward to write an adapter (<a href="https://github.com/thoughtbot/griddler#writing-an-adapter">see this section of the docs</a>). I like the way it’s designed. Turns out we’re using Mandrill (lucky), so I got to add the readily available <a href="https://github.com/wingrunr21/griddler-mandrill">mandrill adapter</a> without having to write one myself.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b57b382696199012e30bb7374f899a3c/href">https://medium.com/media/b57b382696199012e30bb7374f899a3c/href</a></iframe><p>Griddler automatically adds a default /email_processor route to the app (run bundle exec rake routes and it’ll show up). But it’s fairly trivial to override this and send it to your own controller if you must. Griddler docs are fairly comprehensive, so I won’t belabor this.</p><h3>DNS Config</h3><p>It’s best to use a dedicated subdomain for inbounds. This, allowing for variations depending on DNS providers, looks something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SCKJStt8illPdlcd02AaGQ.png" /><figcaption>Add SubDomain as an A Record in DNS</figcaption></figure><p>Of course, to do anything useful with this subdomain, we’ll need to add MX records for it, but to do that we need to jump to our email provider.</p><h3>Mandrill</h3><p>Configuring Mandrill (and I would imagine others are similar in this regard) to start receiving emails is relatively easy. This is where our newly minted subdomain goes and, in Mandrill’s case, it looks a little something like this. (Hitting “Test” should result in an “MX: valid”)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LXngjGc77fqd-Van3xMToQ.png" /><figcaption>Configure Mandrill with subdomain at which inbound emails will arrive</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*OgRpLOgmz6_IYBQeF2CLFw.jpeg" /><figcaption>Server hostnames that need to go back into DNS provider as MX Records</figcaption></figure><p>Hitting “DNS Settings” reveals the MX records that we need add to DNS config (so it knows where to route these requests). To the left is what that looks like, give or take.</p><p>The values under “Server” and the attendant priority needs to back into our DNS config.</p><p>The final step is to configure the webhook in Mandrill, so Mandrill (or whatever email provider) knows where to POST the email to.</p><p>Once done, Griddler steps in nicely, parses this email, discards reply-chains, and makes a first class <a href="https://github.com/thoughtbot/griddler#griddleremail-attributes">Email object</a> available to our email processor to do whatever we’d like with it. Quickly looking at the code for <a href="https://github.com/thoughtbot/griddler/blob/master/lib/griddler/email.rb">email.rb</a> and <a href="https://github.com/thoughtbot/griddler/blob/master/lib/griddler/email_parser.rb">email_parser.rb</a> was really useful to wrap my head around all that’s available.</p><h3>Attachments</h3><p>While documentation around most of these are fairly comprehensive across the board, what is not immediately clear is the best way to handle attachments.</p><p>The good part is that most email services have file-size limits in the low MB (Mandrill’s is 25MB). The better part is that invoking #attachments on Griddler’s <a href="https://github.com/thoughtbot/griddler#griddleremail-attributes">email object</a> returns an <a href="http://api.rubyonrails.org/classes/ActionDispatch/Http/UploadedFile.html">ActionDispatch::Http::UploadedFile</a> object straight up. Why’s this awesome? Because we could just turn around and pass it as-is as an argument into <a href="https://github.com/fog/fog">Fog’s</a> <a href="https://github.com/fog/fog/blob/01202f61327392142fa3a28b2cda7f870199214e/lib/fog/openstack/requests/storage/put_object.rb#L18">#put_object</a> method. All the 3rd argument to this method really needs is an object with a #read method that returns contents of the attachment in chunks.</p><p>When you distill this down (minus logging and exception handling etc.) it is almost trivially simple. The pseudo code ends up looking a little something like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c5b9ac6a0917c8d703093bf2e7debc8/href">https://medium.com/media/0c5b9ac6a0917c8d703093bf2e7debc8/href</a></iframe><h3>Queing Attachment Processing?</h3><p>I’m just musing here, so nothing concrete. If you have thoughts, or have successfully done this, I’d love to hear more about it.</p><p>As best possible, we want to avoid writing files to disk and then processing them, particularly with apps running on ephemeral file systems (<a href="https://www.heroku.com/">Heroku</a> for sure, but also most cloud platforms, right?), apps configured to run on multiple servers behind an <a href="https://en.wikipedia.org/wiki/Load_balancing_(computing)">LB</a>, or apps that process files in background jobs that run in separate VMs from web processes. Ephemeral file systems don’t survive restarts and are hidden from other VMs, so what one process can see, another may not. I doodled this to help explain... do be kind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6K1D1sxTbCoFQHVquHgWkg.png" /><figcaption>File systems are independent silos</figcaption></figure><p>One solution that I want to explore is <a href="http://aws.amazon.com/efs/">AWS’ EFS</a>. Since it’s basically an <a href="https://en.wikipedia.org/wiki/Network_File_System">NFS</a>, it would be a persistent and distributed file system that is mounted on all VMs, so all processes (web or otherwise) have a consistent view of all files. And surviving restarts is no longer an issue, since the file systems are not wiped. Have you explored this already? Let me know!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vuf5ewqBn3fJYlNH.jpg" /></figure><p><em>I’m </em><a href="https://twitter.com/amitnarayanan"><em>@amitnarayanan</em></a><em> on Twitter.</em></p><p><strong><em>Also, check out </em></strong><a href="https://mammothhq.com/"><strong><em>Mammoth</em></strong></a><strong><em>, a communication and publishing tool I’m currently building.</em></strong></p><p><strong><em>On the </em></strong><a href="https://mammothhq.com/"><strong><em>web</em></strong></a><strong><em> and in the </em></strong><a href="https://itunes.apple.com/us/app/mammothhq/id898069776"><strong><em>AppStore</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9713d30e36d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/process-in-bound-emails-to-your-app-b9713d30e36d">Process Inbound Emails to Your App</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free (almost) Performance]]></title>
            <link>https://medium.com/mammoth-stories/free-almost-performance-ee0a9be34341?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/ee0a9be34341</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Amit Narayanan]]></dc:creator>
            <pubDate>Fri, 13 Mar 2015 02:12:15 GMT</pubDate>
            <atom:updated>2016-03-09T04:28:45.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W27joAbRRUx6OFE11kua3A.jpeg" /></figure><h3>Speed (I mean the Web)</h3><p>Almost any non-trivial web app stands to make gains of several orders of magnitude in performance by simply allowing a professional to take control of delivery of static assets. And by professional, I mean a Content Delivery Network, or CDN ☺.</p><p>CDNs allow requests for static content to be handled well before it reaches the app servers, freeing them up to handle more requests that they are better suited (and truly needed) for. In addition, good CDNs have edge locations all over the world, each with it’s own copy, making static asset delivery even quicker for users closer to those locations.</p><p><strong><em>N.B.</em></strong><em> CDNs typically work well ONLY when asset filenames are </em><a href="http://guides.rubyonrails.org/asset_pipeline.html#what-is-fingerprinting-and-why-should-i-care-questionmark"><em>fingerprinted</em></a><em> (that funny hash value appended to the end of the filename). Once a file is cached, it will never hit the app server again. If not </em><a href="http://guides.rubyonrails.org/asset_pipeline.html#what-is-fingerprinting-and-why-should-i-care-questionmark"><em>fingerprinted</em></a><em>, that CSS change you make is never going to be seen by the user. Rails’ asset pipeline fingerprints automatically, but for frameworks that don’t, caveat emptor.</em></p><h3>Content Delivery Networks (CDNs)</h3><p>These things come in lots of shapes and sizes. Here are a <a href="http://www.cdnplanet.com/cdns/">few</a>. Good ones, obviously have low latency, high throughput, more edge locations among others. Below’s a comparison. <a href="https://duckduckgo.com/?q=content+delivery+network+comparison">Google’s</a> your best friend here for more such.</p><p><strong><em>N.B.</em></strong><em> POP = Point Of Presence. More the better, usually.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zYBqJ4h3g8rAVtfL_PSUEg.png" /><figcaption>A List of CDNs. Source: http://www.cdnplanet.com</figcaption></figure><p><em>Fig 1. List of CDNs. Source: </em><a href="http://www.cdnplanet.com/"><em>http://www.cdnplanet.com/</em></a></p><h3>AWS CloudFront</h3><p>We already use AWS for so many things so it just made good sense to add one more AWS service to the kitty. And CloudFront, anecdotally at least, is well regarded, which sealed it.</p><p>There were only two key things that we needed to configure (I think most anyone will need to configure the first, while the second is largely optional), ORIGINs and CNAMEs.</p><h4>ORIGIN</h4><p>A newly provisioned <a href="https://aws.amazon.com/cloudfront/">CloudFront</a> distribution starts out empty. When configured with an ORIGIN, the very first request for a static asset is passed thru’ to the app server by <a href="https://aws.amazon.com/cloudfront/">CloudFront</a> and cached. All subsequent requests to this asset will now be handled by the <a href="https://aws.amazon.com/cloudfront/">CloudFront</a> distribution directly, without needing to involve the app server anymore.</p><h4>CNAME</h4><p>CNAMEs just allow assets to be accessed through a custom domain instead of the CDN’s domain. This is more of a nice to have.</p><p>Here’s how this looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrCjl_MU6bokURZTjgqotQ.png" /><figcaption>Fig 2. A screenshot of an AWS CloudFront Distribution</figcaption></figure><h3>RAILS makes it a Cinch (Of Course)</h3><p>There are two primary ways to integrate a CDN into a Rails app (Rails 4).</p><p>One way is to use a file storage service like <a href="http://aws.amazon.com/s3/">AWS S3</a> to store asset files and configure the S3 bucket as the CDN’s ORIGIN. <a href="https://github.com/rumblelabs/asset_sync">Asset_Sync</a> is an excellent gem for Rails apps that intelligently syncs assets with an S3 bucket.</p><p>The other, even simpler, way is to just let the app server be the ORIGIN and handle the very first request for an asset (if you never update that asset, that is the only single time the app server will ever be involved in serving that request for the life of the app)</p><p>Typical apps have hundreds of assets and not all of them are updated on every build, so the app server will barely see a blip. And secondly, the build process won’t be tied to the availability of a file storage service. These combined with the minimal tradeoffs involved make this choice more than worth it.</p><h4>Configuring the App</h4><p>Rails makes this ridiculously simple. The only configuration that needs to be added is:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2f5c223535ecb64f85adeedfe1b6c46/href">https://medium.com/media/d2f5c223535ecb64f85adeedfe1b6c46/href</a></iframe><p>in production.rb and staging.rb (if you have a staging ENV, and you likely do)</p><p><strong><em>N.B.</em></strong><em> https is not required, but for the love of all things good…</em></p><p>And voila, you should start seeing something like this (200s the first time around and 304s subsequently).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*d3LNgY-sD_eEGXi7SixUHw.png" /></figure><p>You can now issue GET requests for asset names directly against the CloudFront URL and see it being delivered. So doing this…</p><pre>curl -I -H &quot;Accept-Encoding: gzip, deflate&quot; https://CLOUDFRONT_KEY.cloudfront.net/assets/YOUR_ASSET_NAME.css</pre><p>…should net a response (redacted for brevity) like so:</p><pre>HTTP/1.1 200 OK<br>Content-Type: text/css<br>Content-Length: 225578<br>Connection: keep-alive<br>Status: 200 OK<br>Strict-Transport-Security: max-age=31536000<br>Last-Modified: Tue, 10 Feb 2015 17:35:17 GMT<br>Cache-Control: public, max-age=2592000<br>Age: 196227<br>X-Cache: Hit from cloudfront</pre><p>But wait a minute. Why doesn’t the response header have this</p><pre>Content-Encoding: gzip</pre><p>in it?</p><h3>Tightening it Up…</h3><p>So we can still tweak this a bit more. Long story short, <a href="https://www.gnu.org/software/gzip/">GZIP</a> is your friend. The CPU cycles it consumes to zip and unzip at both ends are trivial while gains in content size reduction and speed are outsized. But this post is already getting long, so I’ll write more about this in Part 2.</p><h3>…Even more</h3><p>Browsers load static assets via multiple threads in parallel. But most if not all, restrict number of simultaneous threads that hit a single domain. In some cases, multiple CNAMEs that all point to the same CDN distribution is a neat work around to eke out a bit more. Will add this to Part 2 as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vuf5ewqBn3fJYlNH.jpg" /></figure><p><em>I’m </em><a href="https://twitter.com/amitnarayanan"><em>@amitnarayanan</em></a><em> on Twitter.</em></p><p><strong><em>Also, check out </em></strong><a href="https://mammothhq.com/"><strong><em>Mammoth</em></strong></a><strong><em>, a communication and publishing tool I’m currently building.</em></strong></p><p><strong><em>On the </em></strong><a href="https://mammothhq.com/"><strong><em>web</em></strong></a><strong><em> and in the </em></strong><a href="https://itunes.apple.com/us/app/mammothhq/id898069776"><strong><em>AppStore</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0a9be34341" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/free-almost-performance-ee0a9be34341">Free (almost) Performance</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Save Time, Start your App With Foreman]]></title>
            <link>https://medium.com/mammoth-stories/save-time-start-your-app-with-foreman-d624d8a56852?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/d624d8a56852</guid>
            <dc:creator><![CDATA[Amit Narayanan]]></dc:creator>
            <pubDate>Fri, 13 Mar 2015 02:12:00 GMT</pubDate>
            <atom:updated>2015-07-17T00:36:36.690Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lq8m3s2QLnJiHZyTj13ntw.jpeg" /></figure><h2>Save Time,</h2><h2>Start your App With Foreman</h2><h4>Managing Multiple Environments</h4><p>One of the best advantages to give yourself is to keep multiple environments as similar as possible (ideally they’re exactly the same, but something or the other quickly makes that a pipe dream). Foremost in this consolidation is simplifying and standardizing the way an app is started.</p><h4>Running Locally</h4><p><a href="https://mammothhq.com/">Mammoth</a> is built on Rails (among a fleet of other things). It is the Rails app that is the focus of this post.</p><p>Over time, our app got more complicated to run since it needed several different services to be functional.</p><pre>rails start </pre><p>is fine and dandy, but for anything non-trivial, we want to do better. We needed multiple web process, multiple workers, a <a href="https://lucene.apache.org/solr/">SOLR</a> server, a <a href="http://redis.io/">Redis</a> backed queue for workers, and 2 separate <a href="http://memcached.org/">memcached</a> instances (don’t ask☺). And starting each of these services manually gets old fast.</p><h4>Foreman</h4><p>A great gem that simplifies and makes this process elegant is <a href="http://blog.daviddollar.org/2011/05/06/introducing-foreman.html">Foreman</a>. As added bonus, if you’re on <a href="https://heroku.com/">Heroku</a>, <a href="https://devcenter.heroku.com/articles/procfile#developing-locally-with-foreman">Foreman</a> is automatically installed as part of <a href="https://toolbelt.heroku.com/">Heroku Toolbelt</a>.</p><blockquote><a href="http://blog.daviddollar.org/2011/05/06/introducing-foreman.html">Foreman</a> is a command-line tool for running Procfile-backed apps. It’s installed automatically by the <a href="https://toolbelt.heroku.com/">Heroku Toolbelt</a>.</blockquote><p>It looks something like this:</p><pre>web1:           bundle exec unicorn -p $PORT -c ./config/unicorn.rb</pre><p>To simplify it to the point of nothingness, on the left is what you want to call the process (call it anything) and to the right is how it needs to be started. Starting a worker ends up looking like this:</p><pre>worker1:        bundle exec sidekiq -q default -c 2</pre><p>And memcache(d) like so:</p><pre>frag-cache:     memcached -vv -m 25 -p 11211<br>snippet-cache:  memcached -vv -m 100 -p 11212</pre><p>And <a href="http://lucene.apache.org/solr/">SOLR</a> (we do want our local environment fully indexed and searchable)</p><pre>search:         bundle exec rake sunspot:solr:run</pre><p>And finally Redis</p><pre>redis:          redis-server /usr/local/etc/redis.conf</pre><h4>The Whole Nine Yards</h4><p>Here’s the full <a href="https://gist.github.com/amitnarayanan/031a039d1791f12bbcd3">Procfile</a> for reference.</p><pre># I don&#39;t want to manually start everything I need... so<br><br>#<br># Two web processes <br>#<br>web1:           bundle exec unicorn -p $PORT -c ./config/unicorn.rb<br>web2:           bundle exec unicorn -p $PORT -c ./config/unicorn.rb<br><br>#<br># Workers<br>#<br>worker:         bundle exec sidekiq -q default -c 2<br><br>#<br># Two memcache instances, one for frags and another for snippets<br>#<br>frag-cache:     memcached -vv -m 25 -p 11211<br>snippet-cache:  memcached -vv -m 100 -p 11212<br><br>#<br># One SOLR instance (run the one bundled within rails sunspot)<br>#<br>search:         bundle exec rake sunspot:solr:run<br><br>#<br># And finally Redis<br>#<br>redis:          redis-server /usr/local/etc/redis.conf</pre><p>Save this as <a href="https://gist.github.com/amitnarayanan/031a039d1791f12bbcd3">Procfile</a> in the app’s root dir, and now a simple</p><pre>foreman start</pre><p>boots up everything that our app needs. Brilliant.</p><p>We could even go further and call it <a href="https://gist.github.com/amitnarayanan/031a039d1791f12bbcd3">Profile.dev</a> (for obvious reasons) and now, it just changes to</p><pre>foreman start -f Profile.dev</pre><p>Finally, foreman defaults to port 5000. This shouldn’t matter for most purposes, but if it does, it’s trivial to change this with the -p option.</p><pre>foreman start -p 3000 -f Procfile.dev</pre><p>Thanks to foreman, one more spoke in our app dev is now elegant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FwrDBqLv9biZiIMgvtSwLw.jpeg" /></figure><p><em>I’m </em><a href="https://twitter.com/amitnarayanan"><em>@amitnarayanan</em></a><em> on Twitter.</em></p><p><strong><em>Also, check out </em></strong><a href="https://mammothhq.com/"><strong><em>Mammoth</em></strong></a><strong><em>, a communication and publishing tool I’m currently building.</em></strong></p><p><strong><em>On the </em></strong><a href="https://mammothhq.com/"><strong><em>web</em></strong></a><strong><em> and in the </em></strong><a href="https://itunes.apple.com/us/app/mammothhq/id898069776"><strong><em>AppStore</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d624d8a56852" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/save-time-start-your-app-with-foreman-d624d8a56852">Save Time, Start your App With Foreman</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Things I Learned in AngelPad]]></title>
            <link>https://medium.com/mammoth-stories/five-things-i-learned-in-angelpad-46c721afc9?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/46c721afc9</guid>
            <dc:creator><![CDATA[Karan MG]]></dc:creator>
            <pubDate>Wed, 04 Feb 2015 18:52:31 GMT</pubDate>
            <atom:updated>2015-08-12T17:06:08.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_u9o0Voj7Bsa28mXWljqA.jpeg" /></figure><h3>Five Things I Learned at AngelPad</h3><p><em>This story was originally published </em><a href="http://www.forbes.com/sites/briansolomon/2015/05/28/5-startup-lessons-from-angelpad-2015s-top-accelerator/"><em>on Forbes</em></a><em>.</em></p><p>October of last year on a Sunday morning, I wake up and see this email:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*ha8Uk3VLxuCTIs_MSttPww.png" /></figure><p>A little befuddled and somewhat groggy, I called him up, and he said,</p><blockquote>“You guys are in.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*bKBaj3mBAcBxY_-MpzAWYQ.jpeg" /></figure><p>What followed was a whirlwind 3 months with <a href="https://twitter.com/amitnarayanan">Amit</a>, <a href="https://twitter.com/specx">Ashish</a> and <a href="https://twitter.com/karanmg">me</a> in New York, taking <a href="https://mammothhq.com/">Mammoth</a> to the next level — under the watchful guidance of AngelPad’s partner duo <a href="https://angel.co/thomask">Thomas Korte</a> and <a href="https://angel.co/carine">Carine Magescas</a>. I worked harder than I ever had, learned more than I had in a long time, and discovered a camaraderie in my fellow <a href="http://angelpad.org/a/cat/portfolio-companies/fall-2014/">AngelPad founders</a>. On our frequent trips back to San Francisco, we received guidance from some of the smartest people in the Valley.</p><p>Now that we have just gone through demo day, I have several boards full of notes, pics of whiteboards, and voice memos sitting in <a href="https://mammothhq.com/">Mammoth</a>, from many meetings, late night whiteboard sessions and guest lectures. It’s difficult to distill everything I learned at <a href="http://angelpad.org/">AngelPad</a> into just a few points — here’s a few things that have really stuck with me.</p><h3>1. Just Keep Pushing</h3><blockquote>“The companies that succeed are the ones that work harder than others. That come in earlier, leave later, that plan ahead, that iterate.”</blockquote><p>For weeks, I worked 18 hours a day, taking a break for just a few hours on Sunday. I didn’t know I could physically or mentally sustain that — but I did. Through it I managed to laugh, read, exercise, sleep, talk to family and friends and even step out for drinks. It’s an amazing feeling to realize you can do a lot more in a day than you thought.</p><p>The only thing standing between your company’s success or failure is you. So work harder and don’t stop pushing. Yes, luck plays a role, but its small — the key difference between companies that succeed and those that don’t, is how hard their founders worked.</p><h3>2. Move Fast</h3><blockquote>“Recognize the <strong>extreme urgency</strong> of building your company.”</blockquote><p>Get rid of distractions. Walk faster. Delegate what you can. Use <a href="http://odesk.com/">oDesk</a>. Need news? Find an app or service that summarizes it for you once a day. Subscribe to newsletters and blogs catered to specific things you want to read about. These are my favorites for <a href="http://rubyweekly.com/">ruby</a>, <a href="http://javascriptweekly.com/">javascript</a>, <a href="http://tomtunguz.com/">business</a>, <a href="http://andrewchen.co/">startups</a>, <a href="https://growthhackers.com/">growth</a>, and <a href="http://mattermark.com/blog/">funding</a>.</p><p>The biggest distraction: TV — just cut it out. To rejuvenate — go for a walk, grab a beer with a friend, spend time with family, <a href="http://www.amazon.com/Everything-Bullshit-greatest-scams-revealed/dp/0692224963">read a book</a>, <a href="https://itunes.apple.com/us/artist/kula-shaker/id1189127">enjoy music</a>, exercise, play an instrument, or just get away for the weekend.</p><h3>3. Have Zero Ego</h3><p>Be open to learning, be open to criticism, be open to asking for help. Do not let anything block you from reaching out — especially to your co-founders, but also to investors, potential customers, influencers and advisors.</p><p>Once people know you’re willing to listen — they will come to you. They will tell you about your product, your company, openly share their different perspective and their ideas, and one of them could be a golden nugget.</p><p>Most companies in our AngelPad batch use <a href="https://mammothhq.com/">Mammoth</a>. We got so much feedback and superb ideas from them. I still listen to a voice memo by <a href="https://twitter.com/ankuriam">Ankur</a> telling me:</p><blockquote>“I love Mammoth because it encourages my creative side, for some reason. I’m not sure what it is . It’s the feeling of it, the feeling of being surrounded by it.”</blockquote><p>Makes me smile every time.</p><h3>4. If You Don’t Ask, the Answer is “No”</h3><p>You have to speak up. You’re not going to get help if you don’t ask. You’re not going to make a sale if you don’t talk about the pain. You’re not getting funded unless you push for the meeting.</p><p>It’s possible you have a shy personality and that’s OK — you’re only exerting yourself on a topic you’re very familiar with, your idea, and you’re already passionate about it. If you think you need help with public speaking or approaching people, join a ToastMasters group — it’s really great. Sometimes just practicing what you’re going to say helps too: I practiced our demo day pitch alone in the conference room for 3 nights, more than a 100 times, before I finally felt it was coming out naturally.</p><h3>5. Think Big. Really Big.</h3><p>You’re playing in the venture-backed startup world — anything less than a billion-dollar market, with an awesome team, with a killer product, just doesn’t cut it.</p><p>Fund-raising is just the first step. You’re getting started on the journey to build a long-lasting successful business that solves a real pain, has a global impact, provides value to customers and livelihood and satisfaction to many employees. While it is arduous to get just a 100,000 users and then the first million, or a big number of customers — aim for HUGE and follow a plan to get there. The first plan will likely be wrong, just keep iterating, learning and adjusting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*LFNf5tar06PylBLt1bNPUw.jpeg" /></figure><p>AngelPad is a unique program. From thousands of companies that apply only 12–14 are selected. They don’t compete with each other. Carine &amp; Thomas are fully vested in each company’s success from day one and even after demo day — they’re just a call away.</p><p>I hope this post helps shed some light on the program. Going through AngelPad is nothing short of life-changing.</p><p>Happy to discuss in the comments or email karan [at] mammothhq.com.</p><p>Please recommend this story so someone else can benefit from it ☺</p><p>Invite me to a board on <a href="https://mammothhq.com/">Mammoth</a> at <a href="https://mammothhq.com/karan">@karan</a> or follow me on Twitter at <a href="https://twitter.com/karanmg">@karanmg</a>. I build <a href="https://mammothhq.com/">Mammoth</a>, a beautiful communication &amp; publishing product. <a href="https://mammothhq.com/">Sign up</a> or see it in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FN8UmUxcepQM%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DN8UmUxcepQM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FN8UmUxcepQM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf5b9cdd3a9f6086115ddf665a20558e/href">https://medium.com/media/cf5b9cdd3a9f6086115ddf665a20558e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46c721afc9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/five-things-i-learned-in-angelpad-46c721afc9">Five Things I Learned in AngelPad</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Did you hear?]]></title>
            <link>https://medium.com/mammoth-stories/did-you-hear-f911ac79b0d?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/f911ac79b0d</guid>
            <dc:creator><![CDATA[Ashish]]></dc:creator>
            <pubDate>Fri, 12 Sep 2014 05:32:16 GMT</pubDate>
            <atom:updated>2014-09-12T05:33:36.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJlPpRI9p6CK-HuVvcp1rw.jpeg" /></figure><p>Your boards on <a href="http://www.mammothhq.com/">Mammoth</a> now go <em>bob-pop-bobbity-pop</em>! Type something in a board to check it out. And when someone writes on a board, you’ll hear it too.</p><p>Oh, we also added a few other things:</p><p><strong>Author Pics<br></strong>Your pic now shows up next to your messages. Makes the interactions just a little more…human.</p><p><strong>Timestamps<br></strong>Hover on any message, image or file and you’ll be able to see when it was added to the conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*95jQpfNHZC1tNl5ZdLMGuw.png" /><figcaption>Author Pics and Timestamps</figcaption></figure><p><strong>Board Settings<br></strong>Open any board’s settings (top-right gear icon) and you can see when someone last visited the board.</p><p><a href="http://www.mammothhq.com/">What are you doing this beautiful weekend? Plan it out on Mammoth.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FwrDBqLv9biZiIMgvtSwLw.jpeg" /></figure><p><strong><em>Follow me </em></strong><a href="http://twitter.com/specx"><strong><em>@specx </em></strong></a><strong><em>and </em></strong><a href="https://twitter.com/mammothhq"><strong><em>@mammothhq</em></strong></a><strong><em>.</em></strong></p><p>Do you use 5 different services for notes, files and collaborating but still end up emailing? <a href="https://mammothhq.com/">Mammoth</a> is the best way to research &amp; get stuff done together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f911ac79b0d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/did-you-hear-f911ac79b0d">Did you hear?</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Talk]]></title>
            <link>https://medium.com/mammoth-stories/lets-talk-e919e476a533?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/e919e476a533</guid>
            <dc:creator><![CDATA[Karan MG]]></dc:creator>
            <pubDate>Thu, 04 Sep 2014 23:40:47 GMT</pubDate>
            <atom:updated>2014-09-04T23:45:27.457Z</atom:updated>
            <content:encoded><![CDATA[<p>We had the opportunity to visit Anvil Biosciences a few days ago. It was amazing to see how this superb team uses <a href="https://mammothhq.com/">Mammoth</a> and we learned so much (thanks guys!).</p><blockquote>“Our team needs to deal with fast moving data in various formats from which we make informed rapid decisions. Before it was a challenge herding data stored in DropBox, Gmail emails, Asana tasks, and conversations from meetings, and in formats ranging from spreadsheets, to PDFs, to web links.</blockquote><blockquote>Mammoth was the project collaboration tool that put all of this data in one place so our team members can quickly get up to date, comment on, and internalize the info for each project within its own living editable board. <strong>Now we spend less time organizing and more time seeing the big picture with Mammoth.</strong>”</blockquote><blockquote><em>— Jack Lin (CEO, Anvil Biosciences)</em></blockquote><p>We’re always trying to understand how people collaborate and get work done. We’d love to talk to you too. Email us at <a href="/service/mailto:hello@mammothhq.com">hello@mammothhq.com</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FwrDBqLv9biZiIMgvtSwLw.jpeg" /></figure><p><strong><em>Follow me </em></strong><a href="https://twitter.com/karanmg"><strong><em>@karanmg</em></strong></a><strong><em> and </em></strong><a href="https://twitter.com/mammothhq"><strong><em>@mammothhq</em></strong></a><strong><em>.</em></strong></p><p>Do you use 5 different services for notes, files and collaborating but still end up emailing? <a href="https://mammothhq.com/">Mammoth</a> is the best way to research &amp; get stuff done together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e919e476a533" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/lets-talk-e919e476a533">Let’s Talk</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sending Board Invites to Your Celebrity Crush is Now Easier Than Ever]]></title>
            <link>https://medium.com/mammoth-stories/sending-board-invites-to-your-celebrity-crush-is-now-easier-than-ever-1b713420a7e3?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b713420a7e3</guid>
            <dc:creator><![CDATA[Joseph Maher-Edgin]]></dc:creator>
            <pubDate>Wed, 27 Aug 2014 01:58:49 GMT</pubDate>
            <atom:updated>2014-08-27T01:58:19.525Z</atom:updated>
            <content:encoded><![CDATA[<p>Okay, let’s be realistic here: even with the correct contact information, the odds of grabbing the attention of your favorite celebrity, sports star, or VIP are slim to none. But regardless, if you’re looking for the quickest way to make the attempt, invite them to your beautiful Mammoth board.</p><p>Inviting new participants to your board has never been easier, thanks to a recent redesign. Check it out.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9Xy8bwkVHGE%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9Xy8bwkVHGE&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2F9Xy8bwkVHGE%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/58adc8c285b6a3572e11734bab53f225/href">https://medium.com/media/58adc8c285b6a3572e11734bab53f225/href</a></iframe><p>How to Add Participants?</p><p>Whether you’re adding teammates, colleagues, friends, or family to your latest Mammoth board sending invitations is simple. In fact, your Mammoth compadres don’t even need to sign up for an account — invite anyone with a username or without, using their current email address.</p><p>For your friends with Mammoth usernames you’ll be able to invite them faster than ever before. If you’re ever unsure about how to spell someone’s handle, no worries. Get it close and Mammoth will compile a list of potential participants that should include exactly who you’re looking for.</p><h4>Why Share?</h4><p>Why not? Mammoth is the best way to collaborate on projects or documents. Are you a student? One of your teammates can be searching for references while another begins drafting a paragraph. Are you a journalist? Communicate with your team while out in the field with messages, including key facts and any pictures you take while you report.</p><p>The best part about sharing and collaborating on Mammoth is that there is no limit to just how big your collaborative party can be. Invite a couple of co-workers from your team or a couple hundred from your poli-sci lecture.</p><p><strong><em>Follow me </em></strong><a href="http://twitter.com/jomaedge"><strong><em>@jomaedge</em></strong></a><strong><em> and </em></strong><a href="https://twitter.com/mammothhq"><strong><em>@mammothhq</em></strong></a><strong><em>.</em></strong></p><p>Haven’t looked at Mammoth yet? Do you use 5 different services for notes and cloud storage and still end up emailing? <a href="https://mammothhq.com/">Mammoth</a> is the best way to research &amp; get stuff done together. Become more productive in less than 2 mins.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FN8UmUxcepQM%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DN8UmUxcepQM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FN8UmUxcepQM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf5b9cdd3a9f6086115ddf665a20558e/href">https://medium.com/media/cf5b9cdd3a9f6086115ddf665a20558e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b713420a7e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/sending-board-invites-to-your-celebrity-crush-is-now-easier-than-ever-1b713420a7e3">Sending Board Invites to Your Celebrity Crush is Now Easier Than Ever</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I increased my productivity by 200% in 3 weeks]]></title>
            <link>https://medium.com/mammoth-stories/how-i-increased-my-productivity-by-200-in-3-weeks-70121e62d32f?source=rss----53cba933addf---4</link>
            <guid isPermaLink="false">https://medium.com/p/70121e62d32f</guid>
            <dc:creator><![CDATA[Ashish]]></dc:creator>
            <pubDate>Fri, 22 Aug 2014 04:42:23 GMT</pubDate>
            <atom:updated>2014-08-22T05:09:47.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObdORHL3bsdmbhICN20NmA.jpeg" /></figure><p>I have been unproductive, really unproductive and I never realized that! Its only when I got to know about 2 simple apps and ran a ‘<em>before and after</em>’ test; I found out how bad I was.</p><p>I made an effort to fix it and in the past 3 weeks I increased my productivity by ~200%. So how did it?</p><p><strong>Read on…</strong></p><ol><li>Installed <a href="https://www.rescuetime.com/">Rescue Time </a>and measured my ‘time’ spent infront of my macbook. Even though I was spending nearly 62 hours in front of it, I was ‘working’ for only 30% of the time. That means ~18 hrs. I was wasting precious time on browsing, emailing, youtube, twitter and what not.</li><li>Installed <a href="https://itunes.apple.com/in/app/alinof-timer/id512464723?mt=12">Alinof Timer</a> and set up timer for shorter 40 minute super-focussed work sessions. No Browser, no email, no chat, no notifications!</li><li>Put my phone on silent for those 40 mins, no distractions, Only work !</li><li>Kept my bottle of water and a plant on the table. Water, so that I don’t have to get up; plant — I don’t know why, they always make me calmer and much more focussed (I think that’s true for most of us).</li><li>Next 20 minutes, took a break! Listen to music, watch TV, play with my kid, drink some wine.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s5ST1FATSnOTejJ9gvgpsA.jpeg" /><figcaption>current setup</figcaption></figure><blockquote><strong><em>In 3 weeks, from 18 hours, my score went up to 37 productive hrs! Up by roughly 200% !</em></strong></blockquote><blockquote>What’s your score, would you like to change it too?</blockquote><p><strong><em>If you found this post helpful, </em></strong><a href="https://twitter.com/specx"><strong><em>follow me on Twitter</em></strong></a><strong><em> where I tweet about Product Design.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*UOq7f2o9kj08roqdZfztOQ.jpeg" /></figure><p><em>Also make sure to check out </em><a href="https://mammothhq.com/"><em>Mammoth</em></a><em> a collaboration/ productivity tool I’m currently building.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70121e62d32f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mammoth-stories/how-i-increased-my-productivity-by-200-in-3-weeks-70121e62d32f">How I increased my productivity by 200% in 3 weeks</a> was originally published in <a href="https://medium.com/mammoth-stories">Mammoth Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>