<?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 Alexander Sulim on Medium]]></title>
        <description><![CDATA[Stories by Alexander Sulim on Medium]]></description>
        <link>https://medium.com/@soulim?source=rss-e0a3459cceca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1DSZGn9KaQBJz0ArLCw-KQ.jpeg</url>
            <title>Stories by Alexander Sulim on Medium</title>
            <link>https://medium.com/@soulim?source=rss-e0a3459cceca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:56:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soulim/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[AWS Lambda or Amazon Lambda?]]></title>
            <link>https://medium.com/@soulim/aws-lambda-or-amazon-lambda-bbee6eff2ff0?source=rss-e0a3459cceca------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbee6eff2ff0</guid>
            <category><![CDATA[vale]]></category>
            <category><![CDATA[linting]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Alexander Sulim]]></dc:creator>
            <pubDate>Mon, 14 Sep 2020 11:57:23 GMT</pubDate>
            <atom:updated>2020-09-14T11:57:23.461Z</atom:updated>
            <content:encoded><![CDATA[<p>As a cloud platform <a href="https://aws.amazon.com/what-is-aws/">Amazon Web Services</a> (AWS) offers over 175 services. If you pay attention, you’ll notice that people often do mistakes in the names of these services. For example they say <em>Amazon</em> Lambda instead of , or <em>AWS</em> DynamoDB instead of <a href="https://aws.amazon.com/dynamodb/"><em>Amazon</em> DynamoDB</a>.</p><p>While it’s important to use correct names and terms, it’s also hard or at least tricky sometimes. I’ve created a little tool to help with that and made it open source.</p><p>The tool is an extension for prose linter called <a href="https://docs.errata.ai/vale/about">Vale</a>. If you work with text, this linter is <em>highly</em> recommended.</p><h3>Some details about Vale</h3><p>Vale is a syntax-aware linter for prose built with speed and extensibility in mind.</p><p>Unlike most writing-related software, Vale’s primary purpose isn’t to provide its advice; it’s designed to enforce an existing style guide through its YAML-based extension system.</p><p>Vale uses a plain-text (INI and YAML) configuration system that makes it possible to share configurations across platforms, applications, and users.</p><p>And the best of all Vale is open source. That means you have a chance not just to look into well-written code (Go), but also contribute 😉</p><h3>A little challenge</h3><p>To extend Vale it’s necessary to craft a configuration file. A <a href="https://docs.errata.ai/vale/styles#substitution">substitution style</a> helps to achieve this goal because then the linter <em>suggests</em> correct options and not just complains about mistakes.</p><p>Turns out it isn’t easy to find a list of all AWS services in a machine-readable format. Also, it MUST include correct names. <a href="https://github.com/juanibiapina">@juanibiapina</a> suggested a brilliant idea to use <a href="https://status.aws.amazon.com/">the AWS status page</a> 💡</p><h3>A small discovery</h3><p>The phase of testing and polishing the substitution style revealed a fact, that the AWS status page uses the name “Auto Scaling” (without any prefix) which is incorrect as the service name is <a href="https://aws.amazon.com/de/autoscaling/"><em>AWS Auto Scaling</em></a>.</p><h3>Results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AlCGE45G6q1IAIYk.png" /></figure><p>You can find <a href="https://github.com/soulim/vale-aws">AWS style for Vale on GitHub</a>. Grab the latest release if you aren’t interested in technical details.</p><h3>Bonus</h3><p>If you use GitHub Actions, there is <a href="https://github.com/soulim/vale-aws-demo/pull/1/checks?check_run_id=1078148144">an example</a> of how AWS style for Vale helps to avoid mistakes in each commit.</p><p><em>Originally published at </em><a href="https://sul.im/blog/aws-or-amazon/"><em>https://sul.im</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbee6eff2ff0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LGTM: a Chrome extension]]></title>
            <link>https://medium.com/@soulim/lgtm-a-chrome-extension-82164c0b45a3?source=rss-e0a3459cceca------2</link>
            <guid isPermaLink="false">https://medium.com/p/82164c0b45a3</guid>
            <category><![CDATA[chrome-extension]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Alexander Sulim]]></dc:creator>
            <pubDate>Tue, 15 May 2018 12:39:24 GMT</pubDate>
            <atom:updated>2018-05-15T12:39:24.664Z</atom:updated>
            <content:encoded><![CDATA[<p>If you don’t know <em>LGTM</em> is an initialism of “looks good to me”.</p><p>A few days ago, while going through my Twitter timeline, I spotted one tweet that turned on the bulb above my head. I was instantly inspired! 💡</p><p>There is the tweet, btw:</p><h3>David Jones on Twitter</h3><p>Mail me your PRs for review 🍍</p><p>I was inspired to create <a href="https://chrome.google.com/webstore/detail/lgtm-looks-good-to-me/mbiaidjlljbijjfbeekcocinpfamgkcl">a Chrome extension that prints stamps on GitHub pull request overview pages</a>. The problem didn’t look very complex even if I had no idea how to write an extension.</p><h3>The making of LGTM</h3><p>I didn’t have much time and didn’t want to turn this tiny little project into something big. The main goal was (and still is) to some experience of making an extension by doing something small, but useful.</p><p>Google provides <a href="https://developer.chrome.com/extensions">nice documentation</a>, so it doesn’t take much time to understand the basics.</p><p>The biggest challenge and the most interesting part was to decide how exactly these stamps should look on the page. These are options I was experimenting with:</p><ol><li>Put stamps on above the reviewers block in the sidebar.</li><li>Replace existing review statuses with stamps.</li><li>Do not modify anything existing on the page and put stamps on top.</li></ol><p>After few experiments, I decided to go with the third option because it was the easiest one to implement and actually the closest one to the idea from the tweet.</p><p>Intentionally I didn’t want to give the extension to much power and ask the user for too many permissions. That would be silly for such a tiny extension. So after about half an hour, the first draft was ready to roll. The extension used information already available on the page (existing review statuses in the sidebar) and printed stamps based on that information.</p><p>Results looked great, but then I discovered that the extension does print stamps in some cases. GitHub doesn’t reload pages when one navigates through the website. It uses <a href="https://github.com/defunkt/jquery-pjax">pjax</a> to load page parts, put them on the page, and modify URL in the address bar of the browser. That does not play nicely with Chrome extension because they are activated when a page is actually (re)loaded.</p><p>After some research and experimentation, I’ve ended up with a hack — a proxy function for History#replaceState method.</p><pre>// The extension is activated and this script is executed<br>// when the page is reloaded. However GitHub uses PJAX to<br>// load and replace just part of the page, so there is no<br>// actual page reload happening.<br>//<br>// Because PJAX is using `History.replaceState` and<br>// `History.popState` to manipulate URL and update<br>// the page parts, this scripts acts as a proxy<br>// for `History.replaceState`. It might look a a hack, but<br>// it is the best solution I have found so far. var addHistoryStateProxy = function () {<br>  var replaceState = history.replaceState;<br>  history.replaceState = function () {   <br>    window.postMessage(&#39;lgtm:pageUpdated&#39;, &#39;*&#39;);<br>    return replaceState.apply(this, arguments);<br>  };<br>};</pre><p>The next tricky step was to figure out where and when to add the hack. There is what I decided to do:</p><pre>// The extention is running in a sandbox, so<br>// the `History.replaceState` proxy script must be<br>// injected on the page.<br>var script = document.createElement(&#39;script&#39;);<br>var parent = document.documentElement;<br>script.textContent = &#39;(&#39;+ addHistoryStateProxy +&#39;)();&#39;; parent.appendChild(script);</pre><p>Once I was happy with the extension running in the local browser, it was time to release it. You should <a href="https://chrome.google.com/webstore/detail/lgtm-looks-good-to-me/mbiaidjlljbijjfbeekcocinpfamgkcl">give it a try too</a>.</p><p>It was a nice weekend project. The source code is open and you could find on GitHub — <a href="https://github.com/soulim/lgtm">https://github.com/soulim/lgtm</a>. Feel free to <a href="https://chrome.google.com/webstore/detail/lgtm-looks-good-to-me/mbiaidjlljbijjfbeekcocinpfamgkcl/reviews">rate or leave a review of the extension on the Chrome Web Store</a>, report an issue or open a pull request on GitHub.</p><p>Also, I would like to say one more time “Thank you!” to <a href="https://twitter.com/d_jones">David Jones</a> for the inspiration 😄</p><p><em>Originally published at </em><a href="https://sul.im/blog/lgtm/"><em>https://sul.im/blog/lgtm/</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82164c0b45a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passwordless authentication: one step further]]></title>
            <link>https://medium.com/@soulim/passwordless-authentication-one-step-further-fd06833e785f?source=rss-e0a3459cceca------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd06833e785f</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Alexander Sulim]]></dc:creator>
            <pubDate>Wed, 16 Nov 2016 14:15:36 GMT</pubDate>
            <atom:updated>2016-11-18T09:30:08.250Z</atom:updated>
            <content:encoded><![CDATA[<p>Today it is hard to image an app or a website on the internet that does not require authentication. Usually a sign-up form have at least two fields — email and password. That immediately brings two problems:</p><ol><li>The password should be strong enough otherwise it does not make sense to have it at all.</li><li>The email address must be kept secure because it is user’s private information.</li></ol><p>The first problem is easy to fix. There are many password managers that help generate strong passwords and keep them safe.</p><p>Another solution for the password problem is <a href="https://medium.com/@ninjudd/passwords-are-obsolete-9ed56d483eb">the passwordless authentication</a>. What could solve the issue better than absence of the password? Medium and Slack’s magic links are good examples.</p><blockquote>“The basic idea is that instead of using a password to authenticate each user, a temporary secret code is sent to them over a secure channel. Email or SMS is that (mostly) secure channel. It’s almost as if the backend server makes up a temporary, one-use password each time a user wants to log in and whispers it in their ear.” — <a href="https://medium.com/@ninjudd/passwords-are-obsolete-9ed56d483eb">“Passwords are Obsolete”</a> , @Justin Balthrop</blockquote><p>However the email address is still there and needs to be treated well. Of course many services uses these addresses not just for authentication, but anyway there is a huge number of cases when the email is just a convenient replacement for a unique username and nothing more than that.</p><p>So if you are a developer of an app or a website that uses email addresses just for authentication and you care about privacy, ask yourself: <em>“Do I </em><strong><em>really</em></strong><em> need to keep the email address to authenticate the user?”</em></p><h4>Implementation</h4><p>That exact question I asked myself of few days ago and realised I could answer <em>“No.”</em> on it. Let me explain the idea of <em>“emailless authentication”</em> :)</p><p>In cases of password and passwordless authentications the email address is used as an easy to remember and unique string. It is also used to send a password recovery link or an authentication link (aka “magic links”).</p><p>The emailless authentication is a possible implementation of the passwordless authentication for cases when the email address is used just for user lookup. Here is how it works in details:</p><ol><li>The app or website asks users for an email address.</li><li>A unique string based on the given email is generated and used to find the user. (If the used is not found, then she is treated as a new one. It is up to you how to deal with these new users.)</li><li>A temporary authentication code is stored on the found user’s account.</li><li>An email is sent to the address given on the step 1. This email contains an authentication link.</li><li>The users clicks on the link and follows general passwordless authentication procedure.</li></ol><p>As you could see it is totally possible to implement authentication that requires neither an email address nor a password in the database of the app or website.</p><h4>Summary</h4><p>As a software engineer I like to challenge myself with questions like <em>“Do I really need this field/attribute/method/etc?”</em> or <em>“Is that </em><strong><em>really</em></strong><em> simple enough?”</em>. The idea of the emailless authentication is an answer to one of these questions. At the moment it exists only on paper, but I am definitely going to try it for a real app soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd06833e785f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meet Habitica — the productivity app with a magic twist]]></title>
            <link>https://medium.com/@soulim/meet-habitica-the-productivity-app-with-a-magic-twist-735315aaa6d0?source=rss-e0a3459cceca------2</link>
            <guid isPermaLink="false">https://medium.com/p/735315aaa6d0</guid>
            <category><![CDATA[habitica]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Alexander Sulim]]></dc:creator>
            <pubDate>Wed, 20 Apr 2016 12:11:15 GMT</pubDate>
            <atom:updated>2016-04-20T12:15:24.638Z</atom:updated>
            <content:encoded><![CDATA[<p>For years I am looking for a perfect text editor and an ideal todo manager.</p><p>However the search for the editor is still in progress, two years ago I thought I found the todo manager that fits my needs on 100%. Things (the app) made me so happy. Everyday! The concept, design, and implementation are perfect in this app (well… at least on my personal opinion).</p><p><a href="https://culturedcode.com/things/">Things</a></p><p>A few weeks ago I stopped using Things.</p><p>It is all started on March 10th at 09:20 when <a href="https://twitter.com/markusschwed">Markus</a> introduced <a href="https://habitica.com/">Habitica</a> on our Slack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_UnVXI8gAf0knNdCzzz1dQ.png" /><figcaption>The first meet of Habitica</figcaption></figure><p>Habitica is an online productivity app, but it is also a game. You play the game working on your dailies :)</p><p>Gamification is a powerful thing, and Habitica uses gamification for a good. The game is full of tiny little tricks that tease you and gently “force” to finish more todos or work harder on good habits.</p><p><a href="https://en.wikipedia.org/wiki/It&#39;s_dangerous_to_go_alone!#/media/File:It&#39;s_dangerous_to_go_alone!_Take_this..png">It&#39;s dangerous to go alone!</a></p><p>Almost any game is boring if you play it alone. Social aspect is very important in Habitica. As a part of the team you can take part in quests and have much more fun doing you daily routines.</p><p>Are you software developer? Then there is a good news. Habitica is <a href="https://github.com/habitrpg/habitrpg/">an open source project</a>! Everyone is encouraged to participate and make the game even better.</p><p>After weeks of using Habitica I can highly recommend it. The game is a great fun and absolutely positive experiece.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=735315aaa6d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>