<?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 Jason Overby on Medium]]></title>
        <description><![CDATA[Stories by Jason Overby on Medium]]></description>
        <link>https://medium.com/@jasonoverby?source=rss-f50ab6e5b964------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WFv-4VtgdIOjXWpm28gwpQ.png</url>
            <title>Stories by Jason Overby on Medium</title>
            <link>https://medium.com/@jasonoverby?source=rss-f50ab6e5b964------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 10:18:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jasonoverby/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[Building bam-lambda.com using BAM!]]></title>
            <link>https://medium.com/bam-lambda/building-bam-lambda-website-1a28a3b53f6a?source=rss-f50ab6e5b964------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a28a3b53f6a</guid>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Jason Overby]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 11:14:24 GMT</pubDate>
            <atom:updated>2019-01-03T15:42:24.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wi9SffEVa24Iba5PUyg6jg.jpeg" /><figcaption>bam-lambda.com</figcaption></figure><p>BAM! is a lightweight, <a href="https://bam-lambda.com/#serverless">serverless</a> framework used to quickly build and deploy applications with Node.js and <a href="https://aws.amazon.com/">Amazon Web Services</a> (AWS). We built BAM! to make it simpler for developers to launch <a href="https://aws.amazon.com/lambda/">AWS Lambdas</a> that can be triggered by <a href="https://aws.amazon.com/api-gateway/">AWS API Gateway</a> endpoints, which can be accomplished using the deploy command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*t1ZStAhUUmme9qcROmBG8w.gif" /><figcaption>BAM! deploy command</figcaption></figure><p>We’d love for you to try out BAM!. Install the <a href="https://www.npmjs.com/package/bam-lambda">bam-lambda</a> package globally with npm, and give it a test ride!</p><p>One of the many uses for lambdas integrated with endpoints is to serve static web pages. As such, it only made sense for us to use the framework we had just built to deploy a <a href="https://bam-lambda.com/">site</a> for the BAM! <a href="https://bam-lambda.com/#case-study">white paper</a>, which discusses the development of the project.</p><p>To start, we issued the command bam create bam, passing in the--html flag to create a local directory named “bam”, which contains the templated lambda file bam.js as well as HTML, CSS, and JavaScript files that can be accessed from the lambda code. This template has been optimized for this use case as you can see in the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/725fb424b9cab33b05cc9fdcae02d0c4/href">https://medium.com/media/725fb424b9cab33b05cc9fdcae02d0c4/href</a></iframe><p>Instructional comments (such as those in the code above) can be included within any BAM! template by using the --verbose flag when issuing the create command. In addition to hints related to the specific template, these comments explain how to access query parameters, path parameters, and support different HTTP methods.</p><p>With those files in place, we fired up our <a href="https://www.vim.org/">favorite code editor</a> and wrote the HTML, CSS, and JavaScript for the bam-lambda website. After the site was looking and functioning as we’d like, it was ready to be prepared for deployment. To do this, we replaced links to any local CSS and JavaScript files with placeholders, similar to what is shown in the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/059f3a327430d19e05c5916b0cd9cbb5/href">https://medium.com/media/059f3a327430d19e05c5916b0cd9cbb5/href</a></iframe><p>For local stylesheets, a &lt;style&gt; tag was included in the appropriate place. For local JavaScript files, a &lt;script&gt; tag was used.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f75417fc169be4dc69a4ec5656838451/href">https://medium.com/media/f75417fc169be4dc69a4ec5656838451/href</a></iframe><p>AWS exposes files within the zipped directory of the deployed lambda using process.env.LAMBDA_TASK_ROOT (line 12 above). This allows the contents of the HTML, CSS, and JavaScript files to be accessed. Within the lambda, said contents can be converted to a string using a <a href="https://nodejs.org/dist/latest-v8.x/docs/api/util.html#util_util_promisify_original">promisified</a> version of Node’s native readFile method with the <a href="https://developer.mozilla.org/en-US/docs/Glossary/UTF-8">utf8</a> option (line 13). These strings can be stored in local variables such as html, css, and js (lines 17–23).</p><p>Once the contents of the files have been converted to strings, the replacePlaceholder (lines 25–32) function can be used to, as its name suggests, replace the placeholders within the html string with &lt;style&gt; and &lt;script&gt; tags containing the appropriate text (lines 36–40). Setting the content-type of the response headers to text/html (line 9) will allow this string to be parsed as HTML and rendered correctly in a browser window.</p><p>Finally, we typed bam deploy bam and deployed our site!</p><p>Of course, we wanted to use a custom domain. Once our Lambda and API Gateway were in place, we followed <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-edge-optimized-custom-domain-name.html">these instructions</a> to enable the endpoint to be called using <a href="https://bam-lambda.com./">bam-lambda.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a28a3b53f6a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bam-lambda/building-bam-lambda-website-1a28a3b53f6a">Building bam-lambda.com using BAM!</a> was originally published in <a href="https://medium.com/bam-lambda">bam-lambda</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The final push]]></title>
            <link>https://medium.com/@jasonoverby/the-final-push-1ff4ebe38dd6?source=rss-f50ab6e5b964------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ff4ebe38dd6</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Jason Overby]]></dc:creator>
            <pubDate>Sun, 19 Mar 2017 14:59:11 GMT</pubDate>
            <atom:updated>2017-03-19T14:59:11.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*L8u_wiMtJdrMTpUHEfmpqA.png" /></figure><pre>PLAYERS = { 1 =&gt; &#39;Player&#39;, 2=&gt; &#39;Computer&#39; }</pre><p>Recently I was building a simple tic-tac-toe application in Ruby. I got it to a serviceable solution, but there were some additional features I wanted to add that wouldn’t work with the way I’d modeled the board. I knew I needed to mostly start again from square one, but that idea seemed daunting. I had spent hours getting this thing to function, and the last thing I wanted to do was to rework everything. I wanted to be finished, to keep moving forward, to <em>progress</em>.</p><p>So I took a break for the day.</p><p>The next morning I jumped back in, and I felt refreshed. This time I had the energy to go the extra mile.</p><p>To succeed at maintaining momentum for larger projects, you have to establish a working rhythm that is about constant progress without an end. It feels good to be solving small problems. But it’s extremely important to move out of that rhythm and look at the project holistically to make it better. What needs to be cut out? What has to be redesigned from the ground up to connect better with the other pieces?</p><p>When you get to that point a break will usually help you get off the inertial freight train of task mode. It’s easy to feel like you’re making progress when you’re busy, but the goal of motion is accomplishing something. If what you are accomplishing is faulty, half-baked, or doesn’t completely meet requirements then what seems like progress is just motion.</p><p>When I finished building the second iteration of tic-tac-toe and everything worked with all the new features added, I felt like I had made something good (albeit small). I felt a greater sense of satisfaction, and I was then able to make a clean break and move to the next thing.</p><p>As much as maintaining <a href="https://www.ted.com/talks/mihaly_csikszentmihalyi_on_flow">flow is addictive</a>, taking a break can often give you a fresh perspective and result in better work. It allows you to move into a more <a href="https://www.sciencefriday.com/articles/how-pinball-helps-explain-ways-we-think-and-learn/">diffuse mode of thinking</a> and experience the joy of exploration and conceptualization.</p><p>I proceeded from the tic-tac-toe application to ‘twenty-one’, a game based on Blackjack. I worked on it for a few hours and got to a workable solution. This time I consciously took a break before trying to tackle any additional features. And this time I actually savored reworking the application. It didn’t feel like a chore. It was actually fun.</p><p>In summary, with any larger project, it’s unlikely that you will build something really decent without taking the time to separate yourself from the constant urge to push ahead.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ff4ebe38dd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fuzzy Machines]]></title>
            <link>https://medium.com/@jasonoverby/fuzzy-machines-d6facec8dd32?source=rss-f50ab6e5b964------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6facec8dd32</guid>
            <category><![CDATA[consciousness]]></category>
            <category><![CDATA[artficial-intelligence]]></category>
            <category><![CDATA[short-story]]></category>
            <dc:creator><![CDATA[Jason Overby]]></dc:creator>
            <pubDate>Sat, 26 Dec 2015 23:33:20 GMT</pubDate>
            <atom:updated>2019-01-03T12:33:40.951Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*BIEtz__NjMVvjy1NySAz8A.jpeg" /></figure><p>golden times, dark times…</p><p>Your consciousness is an object. Induce a state of receptivity to your own words. Let them recombine and form new patterns that you will suss out the meaning of. Instead of Burroughs-ian cut-up, use temporal and spatial proximity to words and phrases to force them to be integrated into your immediate consciousness, which you will jumble up and reconstitute into new roles.</p><p>Your consciousness is an object that you will interact with, ignore the boundaries of, allow separate parts of your brain to act outside of to achieve things that an integrated self-identifying object couldn’t.</p><p>You program yourself to react a certain way.</p><p>“There is a me associated with this constellation of thoughts,” I thought, “but it’s less cohesive than I was brought up to believe.”</p><p>I am a connective tissue for these experiences.</p><p>I needed to forget.</p><p>(This is a memory).</p><p>Ribbons of darkness swirl around me as I hop onto my bike and ride. The wheels grip the pavement, my blood pumps, and stardust riddles my vision as I plow into the night. I think of my ghost, the spectral fragments of my selfhood, the forms building and dissolving. I missed the feeling of connection, seeing the patterns of my movements caught up in eddies of interdependent information. The rubber from my bike’s tires was transmitting evidence of the chemical transaction in bright bursts. Where was I going?</p><p>Nowhere, just riding to ride, feeling the stillness of the evening envelop me, transmuting my raw selfhood into some neutral vessel that can commingle with the great expanse of nature by the force of the road.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6facec8dd32" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>