<?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 Osipov on Medium]]></title>
        <description><![CDATA[Stories by Alexander Osipov on Medium]]></description>
        <link>https://medium.com/@shuraosipov?source=rss-e3a45525b472------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_YQl3Z1yuoZmvW3lL5MVIw.png</url>
            <title>Stories by Alexander Osipov on Medium</title>
            <link>https://medium.com/@shuraosipov?source=rss-e3a45525b472------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:54:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shuraosipov/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[Transforming AI Assistants from Passive to Proactive]]></title>
            <link>https://medium.com/@shuraosipov/transforming-ai-assistants-from-passive-to-proactive-0f80830839dc?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f80830839dc</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-assistant]]></category>
            <category><![CDATA[time]]></category>
            <category><![CDATA[ai-adoption]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Sun, 12 Jan 2025 19:39:43 GMT</pubDate>
            <atom:updated>2025-01-12T19:39:43.482Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How Proactive AI Saves Your Most Precious Resource: Time</em></p><p>I’ve spent years working with AI assistants — from the early days of Google Assistant on my Nexus phone to today’s advanced tools like GitHub Copilot, ChatGPT, Claude, and Gemini. Throughout this evolution, one persistent limitation has stood out: <strong>these AI assistants remain fundamentally passive</strong>, waiting for explicit instructions despite their sophisticated capabilities.</p><p>This passive approach falls short of what we should expect from a true assistant. Consider hiring a human assistant who sits idle until given detailed instructions for each task, never anticipating needs or planning ahead. Such an assistant would quickly prove inefficient and frustrating. Why should we accept less from our AI assistants?</p><p>My vision is not about replacing human work but rather enhancing our capabilities. AI assistants should operate proactively in the background, handling routine tasks and organizational overhead while we focus on work that demands human creativity, judgment, and emotional intelligence. By automating the mundane, we free ourselves to engage more deeply with complex problems and meaningful interactions.</p><p>This shift from passive to proactive assistance represents the next crucial evolution in AI tools. Whether we call them Smart Assistants, Digital Assistants, or Personal Assistants, these systems should function as true partners in productivity — anticipating needs, suggesting improvements, and continuously working to support our goals. The following principles outline <strong>my framework for developing AI assistants</strong> that don’t just respond to commands but actively enhance our daily lives and work:</p><ol><li>Proactive background assistance</li><li>24/7 operation (“Nandor the Relentless”)</li><li>Integration into familiar interfaces (“AI Injection”)</li></ol><h3>Principle 1: AI Assistants Should Be Proactive and Work in the Background to Help You Manage Your Time</h3><p><strong>Time is an Irreplaceable Resource</strong>. Time is one of the few constants in life. No matter who you are — rich or poor, young or old — we all have the same 24 hours in a day. Unlike other resources, time cannot be saved, stored, or replenished. Once it’s gone, it’s gone forever. This makes time uniquely valuable, and any tool or approach that helps us use it more effectively or reclaim it for meaningful activities is incredibly important.</p><p>A <strong>proactive </strong>AI Assistant should address these challenges by working <em>behind the scenes</em> to manage your schedule, organize your tasks, and streamline your workflows. Rather than waiting for you to initiate every action or give step-by-step instructions, a truly proactive AI Assistant would predict your needs, handle mundane tasks, and equip you with the information you need — exactly when you need it.</p><p>Here are a few examples to illustrate what proactive assistance looks like:</p><ul><li><strong>Email Management<br></strong>Your AI Assistant should review incoming emails, summarize, categorize them, and provide actionable recommendations. In its simplest form, it could flag urgent messages, suggest replies, and draft responses based on context.</li><li><strong>Daily Scheduling<br></strong>The assistant should organize your day for maximum productivity, balancing work, family time, rest, and deep focus sessions.</li><li><strong>Knowledge Consolidation<br></strong>It could analyze email threads, meeting notes, and shared documents to maintain an updated knowledge base, ensuring you never miss critical information.</li><li><strong>Meeting Preparation<br></strong>Imagine joining every meeting with a pre-prepared agenda and talking points tailored to the discussion. Wouldn’t it be nice if everyone came prepared?</li></ul><p>Imagine a day where you can fully focus on meaningful conversations, deep thinking, and active listening — devoting your energy to solving important problems. Meanwhile, your AI Assistant handles the organizational tasks: summarizing information, scheduling follow-ups, tracking next steps, and updating JIRA tickets.</p><p>You remain the driving force — the one who ideates, creates, and acts — while the assistant handles the routine work that keeps projects moving forward and helps you achieve the flow.</p><p>If you’re looking for simple, practical business cases to demonstrate the value of AI Assistants, here are a few examples:</p><ul><li><strong>Personal Planner<br></strong>An assistant that organizes your calendar to ensure efficient work and collaboration, tailored to your personal preferences and productivity patterns.</li><li><strong>Automated To-Do List<br></strong>A daily task list automatically generated at the start of each day, prioritized based on deadlines and importance.</li><li><strong>Team Vacation Scheduler<br></strong>A tool that schedules vacations to ensure full business coverage while maximizing each team member’s time for family and personal recharge.</li><li><strong>JIRA Project Manager<br></strong>An AI assistant that ensures all JIRA tickets meet the definition of done, provides accurate work estimates, and keeps tasks updated in real time.</li></ul><p>Thank you for reading! This is the first part of my essay on AI Assistants, and I’d love to hear your thoughts.</p><p>– Alex</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R36OS70drQLE2sTw_cVXlA.jpeg" /><figcaption>Sleeping geese…</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f80830839dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aggressive Push and Domination: Mastering Treant Protector in Dota 2]]></title>
            <link>https://medium.com/@shuraosipov/aggressive-push-and-domination-mastering-treant-protector-in-dota-2-253f1781a3f7?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/253f1781a3f7</guid>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[dota-2]]></category>
            <category><![CDATA[cybersport]]></category>
            <category><![CDATA[videogames]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 19:33:39 GMT</pubDate>
            <atom:updated>2023-12-12T19:33:39.876Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been playing multiplayer online battle arena video games since the dawn of the Internet. Today, I would like to share a strategy that I recently came up with. This strategy will help you gain control of the map and put a lot of pressure on your opponents in the early game. I will also show you how to snowball this advantage and ultimately close out the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MP6L3lfzMIDaFslA-2GKSQ.png" /><figcaption>Trean Protector</figcaption></figure><h3>Non-stop aggression</h3><p>Treant Protector is one of the most versatile supports in the game. He can heal teammates and give them additional armor, he can disable opponents, and he has a bonus for navigating in the forest. He doesn&#39;t need much gold and artifacts to be useful. He has strong damage at the beginning of the game. All you need is mana, so you can start the game by jumping onto your opponent&#39;s head, making it difficult for opponents to take any action, forcing them under their tower, and keeping them away from any farm.</p><p>If they choose to ignore you, they will suffer significant damage. If they decide to fight you, they will exhaust their resources without gaining any gold. Any line you appear in will be a pain for them. That said, it creates an enormous amount of pressure so that they will start questioning themselves, what to do on the map, and where to hide from you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DHpPLU-6ptU3Tznotx5Sbg.png" /><figcaption>Constant team fight and pressure right from the beginning.</figcaption></figure><p>Let me reiterate. Do not give an inch on the map, not a single moment of a free farm, to your opponent. Don&#39;t be afraid to take extra damage or give a frag to the opponent as well — for every second they spend on you, they are not getting the resources they need.</p><h3>Snowball — Heal, Push, Repeat</h3><p>After getting an initial advantage, one common mistake many players make is to start playing passively. They could go to THEIR jungle or back to the line to get more farm, <strong>creating undesired space for the opponents to recover and come back</strong>. This is where you should take control in your hands.</p><p>By strategically placing wards around the map and creating a necessary vision, your team is able to start pushing even harder — your objective is to get as many towers as possible and to push opponents away to their base.</p><p>Note that your teammates will be out of resources soon, so this is crucial to heal them and restore mana. Once teammates start trusting you, they can also play more aggressively with even more confidence. Do buy utility items like mango, clarity, or healing salve. You have one goal here — provide your teammates the ability to fight and stay on the line continuously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*jsUsG1ntcc_SJUdxMwsejA.png" /><figcaption>Early game artifacts to support non-stop push</figcaption></figure><p>Having only these artifacts, you are able to push the line, destroy towers, constantly draw opponents&#39; attention to you, and distract them. If your teammates had a tough line, this would create a space for them to get necessary artifacts since the opponent will be busy trying to protect their building. If they do not, the entire line will be destroyed in a few minutes.</p><h3>Team fight</h3><p>When facing a team, it can be a nightmare to deal with Treant’s abilities. You can initiate a team fight against the entire team, disable them, and continue stunning them with the meteor hammer. As the game progresses, you can use the refresh orb to prolong the disable even further. My strategy involves disabling, slowing down, and distracting the enemy team as much as possible. Remember, with Aghanim’s shard, you are invisible in the trees, and this can be super annoying for the opponents to get you out of the woods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4D1II5ZBhDFJLN-RGa--LQ.png" /><figcaption>Setting up a fight and disabling opponents</figcaption></figure><h3>Vision</h3><p>De-ward opponents&#39; vision, do not save on entry wards; you do not need that much money to be useful. But vision will help you find opponents and organize gangs and necessary kills. Remember the idea of constant pressure. You must control the map, even if you will die a few times by de-warding.</p><h3>Trust and Communication</h3><p>I noticed that even in a game, some people are afraid to move forward, and they choose to play super passive. Your goal is the opposite, and you want to impose a constant team fight. You want to slowly but inevitably run on the opponent. You cannot do it alone, so you need to show your teammates that you support their back right from the beginning, start healing them, and start pressing the opponent yourself. You will see how your mates will join you, and you will all have fun.</p><h3>Results</h3><p>Here is how this strategy works in practice, I won 16 out of 20 games using that approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYNEZ56GPvXoE2IyzfqtcQ.png" /></figure><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=253f1781a3f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Know what you eat. Analysis of groceries receipts in AWS.]]></title>
            <link>https://medium.com/@shuraosipov/know-what-you-eat-analysis-of-groceries-receipts-in-aws-b445d7b60007?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/b445d7b60007</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[document-processing]]></category>
            <category><![CDATA[textract]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Fri, 18 Nov 2022 22:18:15 GMT</pubDate>
            <atom:updated>2022-11-19T03:48:04.034Z</atom:updated>
            <content:encoded><![CDATA[<p>Useful data is everywhere, but sometimes this data is entrapped in a physical world. To extract meaning from that data, you first need to digitize it.</p><p>This article explains how to extract text from grocery receipts using Amazon Textract and save the results in tabular form to the S3 for further processing and analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ot22mDABIScp6gSEOXANeA.jpeg" /></figure><h3>Solution Overview</h3><p>This solution is built upon serverless services and relies on Amazon Textract for extracting data from receipt images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nkah4cYA4zKbyWyFMOaRcg.png" /></figure><ol><li>Processing starts when you take a picture of a grocery store receipt and upload it to the S3 landing bucket.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeiKwjyw6Qlxe26QqYjYiA.png" /></figure><p>2. This upload event will trigger a Lambda Parser function, which has three main methods:</p><ul><li>Invoke Amazon Textract and provide an image location in the /landing bucket;</li><li>Process Textract’s JSON response, extract item names, prices, dates, and store names, and save results into a tabular format;</li><li>Upload the resulting file to the S3 /staging bucket;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRTy8Hm9CXQZJmJgtvciIw.png" /></figure><p>3. Processed data tables will be stored on S3 as separate files. To analyze the entire dataset, you can use Amazon Athena to query against the /staging bucket and save results to the /processed bucket.</p><p>By running this pipeline, you will be able to convert the image from the left to the table on the right:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FELxLF6rUxHl0s1MYXb8xA.png" /></figure><h3>Processing Amazon Textract response</h3><p>As it turned out, the most complicated part of this solution was converting Amazon Textract response, a JSON formatted document, into a tabular form that could be easily consumed, processed, and analyzed.</p><p>I used <a href="https://docs.aws.amazon.com/textract/latest/dg/API_AnalyzeExpense.html">AnalyzeExpense API</a> to analyze an input document for financially related relationships between text. Unfortunately, the default response syntax is relatively complex and contains a lot of data. For instance, the response containing extracted text for the sample image from this article contains about 4000 rows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YMGAiSJYvUiuSX5uvwRpRQ.gif" /></figure><p>So I used a <a href="https://github.com/aws-samples/amazon-textract-textractor/tree/master/prettyprinter">Textract-PrettyPrinter wrapper</a> that provides functions to format the output received from Textract in more easily consumable formats such as CSV or Markdown.</p><p>With the PrettyPriner, the initial response was converted to the following structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVp-yt9tr7XaELo0X1HZjg.png" /></figure><p>After that, it was pretty easy to convert it to the pandas data frame:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96JcTnJvw3nmjZnjmnp6ug.png" /></figure><p>After all manipulations, the resulting table had a following look:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHbACrf_R9uo8QC7J49t8Q.png" /></figure><p>And here is a quick demonstration to show how it works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U3DMp6N-hlaZx1pF9nF7KQ.gif" /></figure><h3>Deployment</h3><p>You can try this solution yourself. This project is written in Python, and I used AWS CDK for templating and resource provisioning. Follow the instructions in <a href="https://github.com/shuraosipov/receipt-parser">my GitHub repository</a> to deploy this solution to your account.</p><p>Enjoy!</p><p>Thanks,<br>Alex</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b445d7b60007" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[\Visual explanation of OAuth 2.0 Authorization Code Flow with Amazon Cognito]]></title>
            <link>https://medium.com/@shuraosipov/visual-explanation-of-oauth-2-0-authorization-code-flow-with-amazon-cognito-e5e9ab5d86cf?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5e9ab5d86cf</guid>
            <category><![CDATA[oauth2]]></category>
            <category><![CDATA[cognito]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 22:52:14 GMT</pubDate>
            <atom:updated>2022-11-20T14:41:06.659Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf. — <a href="https://www.rfc-editor.org/rfc/rfc6749">RFC-6749</a></blockquote><p>Let&#39;s say you have a mobile or web application and want to allow your users to see events in Google Calendar inside your app. How can your app securely get access to users&#39; calendars?</p><p>This article explains how to get an access token using OAuth 2.0 Authorization Code Flow. With practical examples and visual support, we&#39;ll cover the core concepts of the protocol, and I will show you how to implement it in a sample application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSBvVMOMSeqLX4_QYfwyAw.gif" /></figure><p>You can find a complete example of implementing this flow in <a href="https://github.com/shuraosipov/myrobot">my GitHub repository</a>.</p><h3>What makes Auth Code Flow worthwhile?</h3><p>While learning how Auth Code Flow works, I identified the following concepts that make this flow so useful:</p><ul><li>The end-users (the resource owner) <strong>credentials are never shared</strong> with the app (the client). It becomes possible by using an authorization server as an intermediary between the client and the resource owner. The client only ever receives an authorization code, which it can then exchange for an access token.</li><li>In OAuth, the client (the app) requests access to resources controlled by the resource owner (the user) and hosted by the resource server (Google Calendar) and is issued a different set of credentials (an access token) than those of the resource owner (username and password).</li><li>The concept of Redirect URL allows the client to receive an authorization code after the resource owner completes authentication and grants content.</li></ul><h3>Important concepts</h3><p>Here are some important things that we need to know to understand the process fully:</p><ul><li><strong>Authorization Code</strong> — is a form of the <strong>authorization</strong> <strong>grant. </strong>It tells that the resource owner (a user) grants the access request to the client (an app). The authorization code is issued by the authorization server and delivered to the client via Redirect URL. The client uses an authorization code to request the access token.</li><li><strong>Redirection Endpoint (Redirect URL)</strong> — Auth Code Flow specification uses HTTP redirections extensively. After authenticating the resource owner and getting an authorization grant, the authorization server directs the resource owner&#39;s user-agent (browser) back to the client&#39;s Redirection Endpoint. It includes an authorization code in the response.</li></ul><h3>Auth Code Flow Step-by-Step</h3><p>Using the official terminology, OAuth 2.0 is an authorization framework that enables clients to use resource servers on behalf of resource owners. And this is how it works.</p><p>Step 1. It starts when a user wants to access external data through your service. In OAuth terms, your app is the client, and I am the resource owner (I&#39;m the owner of my own Google Calendar):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cgYoSJxtuAM3WRTikap4aA.png" /></figure><p>Step 2. Initially, your app (the client) does not have an access token for Google Calendar (the resource server):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VX0LXWVeihPAfvBQ6SC7IA.png" /></figure><p>Steps 3 and 4. So, to get one, it will initiate an authorization flow by redirecting my browser to the login page, where I need to sign in (authenticate myself) using my social profile or email and authorize (grant consent) your app to access my Google Calendar&#39;s data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-b2YBuvs9nXwK6g4yCHs4Q.png" /></figure><p>Your app also specifies the list of requested permissions it is needed (the scope), and a redirection URI, where the authorization code will be sent later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MfHUREnZ27R5z7JpDIuRxA.png" /></figure><p>Step 5. Once I signed in and provided consent, the authorization server authenticates me (the resource owner) and establishes whether I granted or denied the client&#39;s access request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-trCjm1zRWvuKYF9sZV0DA.png" /></figure><p>6. Assuming access is granted, the authorization server redirects my browser to your app using URI redirection. The redirection URI includes an authorization code and any local state provided by the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGXPdkN1Ap-oh6G_gRazPA.png" /></figure><p>7. Your app requests an access token from the authorization server&#39;s token endpoint by including the authorization code received in the previous step. When making the request, your app authenticates with the authorization server. Your app also includes the redirection URI used to obtain the authorization code for verification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2SPJ5ar5Ain_MZbArhD_w.png" /></figure><p>8. The authorization server authenticates your app, validates the authorization code, and ensures that the redirection URI received matches the URI used to redirect your app in the previous step. If valid, the authorization server responds with an access token and, optionally, a refresh token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MewT7kbcz63ycM3Vjc10RQ.png" /></figure><p>9. Finally, the client requests the data from the resource server, including a new access token. The resource server returns data if the token is valid and has proper permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kIw-XLX1B6j9e_KxhfGvHw.png" /></figure><h4>Prerequisites</h4><p>Setting up OAuth2 requires some preliminary work. Here is the list of prerequisites we would need to have to make Auth Code Flow work properly:</p><ol><li>First of all, we need to have a user pool created in Amazon Cognito and an app client registered like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dBszOAR5B6oX99pvl3bxQ.png" /></figure><p>2. We will be using Google to sign in users in our application, so we should link it to our Cognito user pool like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HXRpG0IJmSdEZ_tYr_Tn0Q.png" /></figure><p>3. Also, we need to configure attribute mapping between Cognito and Google so that we can access Google-provided attributes in Cognito tokens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SInLoSy5MNGdhsFtU2iZwA.png" /></figure><p>4. Finally, we link the Google Identity provider, configure the callback URL, and specify allowed OAuth flows and scopes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5z0sqfwE9kmOVrEvYYVWw.png" /></figure><p>Now we are ready for testing!</p><h3>Implementing Auth Code Flow in a sample app</h3><p>To better understand the concepts we&#39;ve just discussed, let&#39;s implement them in practice.</p><p>Our app is a simple python script that will connect to Google Calendar API and retrieve the list of users&#39; calendars. And it requires an access token to be able to access Google API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETyrjzbuwnnAQa2R52n2Ew.png" /></figure><p>To get an access token, we need to define a client_id, and client_secrets of our app registered in Cognito, a redirect_url, where Cognito will send an authorization code, as well as token and authorize endpoints from Cognito Hosted UI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zScVuR8KC7ZFKlxjSOETxQ.png" /></figure><p>Most providers will request that you ask for access to a specific scope. In this example, we will ask Google for access to the user&#39;s calendar and profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOdLjES_Maq9FrOvnaM-Ng.png" /></figure><p>User authorization works through redirection. So, first, we will create an authorization URL from the base URL given by the provider and the credentials previously obtained:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lALxMqEnHmYpVuix-Vs6oQ.png" /></figure><p>You will be prompted to open the authorization URL and sign in using your Google account. Once you have completed authentication, copy the entire redirect URL and paste it back to the console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knHzTiE-R6fR6sOW5i1IeQ.png" /></figure><p>After obtaining an authorization code, we can get an access token:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Ob5mR6kEZbZKDoNFbF69A.png" /></figure><p>There is one trick here. Remember, we have configured attribute mapping between the Google Identity provider and Cognito User Pool? So, Google&#39;s access token (which provides you access to Calendar API) has been added as an attribute inside the id_token issued by Cognito. So, to be able to access Google Calendar API, we need to extract that token first:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-qkxp9GmoCpq9mt_nE799A.png" /></figure><p>Finally, we can call our app, pass an access token to it and see all our calendars in the output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3zTKQ6OV0bn7DvuIeh16Q.png" /></figure><p>Here is how it all looks in practice:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z2Ls1XSP6Rlxespp92zvlg.gif" /></figure><h3>Conclusion</h3><p>Confusing and may be hard to appreciate initially, this flow gives you a flexible way to access any OAuth-protected APIs.</p><p>With Cognito, you can include multiple identity providers and hide them behind a single interface. Also, you can use OAuth to get access to AWS resources and get temporary credentials via IAM.</p><p>I hope this article is useful and helps you better understand the protocol&#39;s internals.</p><p>Thanks,<br>Alex</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5e9ab5d86cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laying the foundation for digital assistants: authentication, integrations, and early decisions]]></title>
            <link>https://medium.com/@shuraosipov/laying-the-foundation-for-digital-assistants-authentication-integrations-and-early-decisions-2463ccccf2da?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/2463ccccf2da</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[digital-assistant]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 22:50:50 GMT</pubDate>
            <atom:updated>2022-11-17T22:50:50.560Z</atom:updated>
            <content:encoded><![CDATA[<p>I get fascinated every time I think about how accessible modern technologies have become. Just think for a second that now you can explore the most advanced tools and services previously affordable only for corporations and governments. And all of that can be used on-demand, with the casualty of your familiar messenger.</p><p>As digital assistants become more and more commonplace, it&#39;s important to lay out a foundation for how they will be used and what role they will play. Here, I explore the technical aspects of building a digital assistant focusing on components integration and user authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRjs8CF3VyYHX7boxlDxSA.png" /></figure><h3>Solution Overview</h3><p>I want to build a bot that can keep conversations, help me discover and explore new topics, and answer any questions I may have. I plan to run this bot in the cloud and access it via Telegram messenger. Security is a priority for me, as well as keeping costs low.</p><p>With that idea in mind, I came up with the following design:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFNMBVC1Pj0ONH4EJK80Tw.png" /></figure><ol><li>Telegram provides a native way for <strong>building bots via HTTP-based Bot API</strong>. By running entirely within the Telegram app, these bots can provide a variety of services, from simple chatbots to complex AI assistants.</li><li>My Telegram bot is hosted on <strong>AWS Fargate</strong> and is responsible for getting incoming updates from my chat using the Telegram Bot API via the <strong>long polling</strong> technique. It also forwards new messages to Amazon Lex and returns Lex&#39;s responses back to Telegram. No domain logic is implemented here.</li><li>The bot&#39;s basic functionality will be available for all Telegram users. However, I want to ensure that some features can be accessed by <strong>authorized users only</strong>. To support that, we will use Amazon Cognito and the OAuth 2.0 authorization framework with Google as our Identity Provider to authenticate users using their social profiles.</li><li><strong>Amazon Lex</strong> will be used to provide a <strong>conversational interface</strong> for our bot. It will handle users&#39; input, understand intents (an action the user wants to perform), elicit slot values (required data), and complete actions by integrating with Lambda. Again no, complex or domain logic here. Lex only plays an integration role; it understands users&#39; input and invokes a proper fulfillment function. However, what makes Amazon Lex interesting is its ability to handle natural language. This is made possible by Lex&#39;s Natural Language Understanding (NLU) capabilities under the hood.</li><li>In addition, Lex is integrated with the <strong>Lambda Router</strong> function, which is responsible for forwarding Lex&#39;s input event to a proper Lambda fulfillment function. This allows extending Lex capabilities incrementally, overcoming the limitation of one fulfillment function per Lex bot and making it more scalable.</li><li>Finally, our <strong>bot&#39;s logic</strong> is implemented using <strong>intent-specific Lambda functions</strong>. Some functions are simple, like saying hello, while others are more sophisticated and involve many services and calls to different APIs. In this example, the bot uses Lambda, which talks to the OpenAI API based on GPT-3 autoregressive <strong>language model</strong> that uses deep learning to produce human-like text.</li></ol><h3>Shift left security</h3><p>Your application could take many different shapes and forms. It could be running on a mobile app, an IoT device, or a Lambda function. It could be accessed interactively by users or headless by other services. Your app might also need to talk to external APIs to access data.</p><p>Planning for authentication early on is essential to ensuring the necessary security controls are in place from the start. This will make the authentication process efficient and user-friendly.</p><p>In this example, a requirement to authenticate Telegram users using OAuth led to these two decisions:</p><ul><li>Use a long polling technique to fetch updates from telegram API instead of using a push technique and receiving updates via a webhook.</li><li>Run Telegram Bot on AWS Fargate instead of using API Gateway and Lambda.</li></ul><p>I initially tried to use a webhook and run it on Lambda and API Gateway. But I found that I couldn&#39;t authenticate requests to the API Gateway endpoint using the native Telegram interface in webhook mode. To workaround that limitation, I would expose some of the API to the Internet without authentication or implement a custom Telegram Web App that handles initial authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y7Ot8YhcX12N56qmGZR72Q.png" /></figure><p>Instead, I switched to a pull model, where my Telegram Bot runs on AWS Fargate and gets updates from Telegram API using a long polling mechanism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CY6fM6Av7GPGY_wtqo0CTQ.png" /></figure><p>In this setup:</p><ol><li>When a user is trying to access protected resources,</li><li>One will be asked to complete authentication in Cognito Hosted UI using her social profile,</li><li>After authenticating the user, Cognito sends an authorization code back to Telegram, which can be used to validate the user.</li></ol><h3>Router function</h3><p>Amazon Lex supports only one fulfillment function per bot. However, a bot could have many intents, and we do not want to keep all this logic inside a single function, as it will make our bot more fragile, complicate the testing process, and make the process of making changes riskier.</p><p>For this reason, we will add a router function as a target fulfillment function, the sole purpose of which would be to forward requests to intent-specific Lambda functions. This way, we can plug new intent-based functions without affecting the rest of the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EPzkC_cLyGFux7i-41m9A.png" /></figure><p>The router function is straightforward:</p><ol><li>It is invoked by Lex,</li><li>Then it parses an event, extracts the intent name, and calls the fulfillment function synchronously based on the intent name,</li><li>Waits for the fulfillment function to complete and then sends a response back to a Lex bot.</li></ol><p>By introducing Lambda Router, we can extend bot capabilities gradually without affecting the rest of the app. Also, fulfillment logic can be tested and deployed independently.</p><h3>Fulfillment function</h3><p>So far, we have defined the foundation of our bot and configured integrations and authentication. Now we can add some skills to the bot and make it more useful.</p><p>While other components are responsible for integration and communications, the fulfillment function handles user input, calls external APIs, formats a response so Lex can understand it, and sends it back to Lex through the Router Function. You can think of a fulfillment function as a way to implement domain logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4kgrLYWSU1_OAKfKun4kw.png" /></figure><p>Our fulfillment function has the following responsibilities:</p><ol><li>Parsing input events from Lex and extracting intent, session information, and slots data,</li><li>Performing fulfillment logic based on the provided information. In our case, slots provided by the user will be sent to OpenAI API.</li><li>Constructing a response for Lex and sending it back to the router function.</li></ol><p>The beauty of bots is the ability to extend their capabilities gradually. You can start with a simple hello world bot and add more advanced skills later. Your interface remains the same, but logic can evolve in the background.</p><h3><strong>Demo</strong></h3><p>Stichting everything that we’ve discussed together and we get the following result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*calKDOV1qaazKgC8G5fMSw.gif" /></figure><h3>Deployment</h3><p>Each component of this solution can be deployed individually using AWS CDK. You can find a source code and detailed deployment instructions in my GitHub <a href="https://github.com/shuraosipov/myrobot">repository</a>.</p><h3>Conclusion</h3><p>I believe in technology. And I love the idea of AI augmenting our capabilities, helping us, humans, to be more productive, creative, thoughtful, and happy. I believe we should spend more time thinking, dreaming, learning, and creating.</p><p>This is how I see it. And while we are far from the singularity, we are already living in a world where AI is real. We are already living in a world where we can have a digital assistant that can help us with our daily tasks and even help us to be more creative and productive.</p><p>Thanks,<br>Alex</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2463ccccf2da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building data analytics pipelines on AWS]]></title>
            <link>https://medium.com/@shuraosipov/building-data-analytics-pipelines-on-aws-ed49560335db?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed49560335db</guid>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Thu, 03 Nov 2022 19:00:23 GMT</pubDate>
            <atom:updated>2022-11-03T19:00:23.899Z</atom:updated>
            <content:encoded><![CDATA[<p>A data analytics pipeline is a set of steps that are followed in order to extract meaning from data. It is used to ensure that data is processed consistently and efficiently. By following such steps, teams can avoid errors and ensure they can glean the most insights from their data.</p><p>This article describes the design process, best practices, and implementation details for building analytics applications on AWS. I will show the thinking process and reasoning behind the solution and highlight the most critical decisions that would drive the final design of your data analytics pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xiAeubMweFUXPyF5_1oGxQ.png" /></figure><p>To make this example more real, I will be using data from the AWS RSS feed and the <a href="https://github.com/shuraosipov/aws_rss_feed_analysis">solution I built</a> to analyze AWS release notes for the last few months.</p><h3><strong>Understanding Data Analytics on AWS</strong></h3><p>Every analytics solution consists of four general stages: data collection, storage, processing, and visualization and analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3d2QXbyb1rYSNb92G9pZEQ.png" /></figure><p><strong>Decoupling</strong> these stages can decrease pipeline vulnerability and make it <strong>less expensive</strong> and <strong>easier to manage</strong> because you can build each tool to exact specifications, <strong>avoid overprovisioning</strong>, and <strong>handle failures gracefully</strong>. Failure handling is crucial in the collection/ingestion phase, as losing large data sets can be difficult to recover.</p><h3>Requirements gathering</h3><p>I usually start with planning and working with requirements. To begin, I try to understand the following characteristics:</p><ul><li>the amount of data I will be dealing with,</li><li>the source of the original data and where it is located,</li><li>how often this data will be generated (real-time or batch),</li><li>the original data type (structured, semi-structured, unstructured),</li><li>the quality and accuracy of data,</li><li>and if there are any security, technology, administrative, compliance, or regulatory requirements that can impose additional limitations or restrictions.</li></ul><p>All of the above might drastically affect the shape of the future solution. Therefore it is always good to ask these questions in advance while the cost of the change is cheap, and you can easily update your design.</p><h3>Documenting Requirements</h3><p>By analyzing the initial requirements, I identified the following:</p><ul><li>the data source is the AWS RSS Feed — What’s New, which might be updated daily.</li><li>it is important to keep costs for this solution as low as possible (ideally free), so I will try to use serverless options as much as possible.</li><li>the size of the changed items is small, only about a few KB per item.</li><li>data is publicly available and is not subject to any regulations or compliance.</li><li>original data is semi-structured and available in XML format.</li><li>the feed contains only 100 last records, and there is no way to get more historical data, so we need to keep older records for a long time.</li></ul><h3>Collecting Data</h3><p>The first stage in building a data analytics workload is data collection. The collection phase focuses on ingesting raw data from different sources, such as transactions, logs, Internet of Things (IoT) devices, click-stream data, or anything else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wr0ywFKaR8RKDs9VGfmbDQ.png" /></figure><p>In our case, new entries appear in AWS Feed daily, the size of each new item can be measured in KB, and we do not anticipate a very high request rate (the collector will be running periodically, a few times per day, based on scheduled rule).</p><p>So, I will use Amazon Lambda to get the feed data and load it to S3. It is cheap, it is fast, and it is easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4PbqYjeXwGRIKzVr8Wiqmw.png" /></figure><p>In the diagram above:</p><ol><li>A Lambda function loads AWS RSS data using the feedparser library,</li><li>Checks if there are new entries and filters out any records older than one day (we will be saving only an increment to the bucket), and converts the feedparser data to the pandas dataframe,</li><li>Saves dataframe to S3 as CSV file without any further modifications.</li></ol><h4>Data Collection Best Practices</h4><p>Here are some time-proven practices for better data collection:</p><ul><li>First, save raw, unprocessed source data to the S3 landing bucket as is, without any modifications<strong> </strong>(this does not apply to every case, for example, when dealing with sensitive personal data, as the best way to deal with that is not to store it all).</li><li>Automate the collection process.</li><li>Start collection as early as possible.</li></ul><h3>Storing Data</h3><p>The second step in an analytics pipeline is securely storing data in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnq-r9t5IYx5AJ2Ss-RkAA.png" /></figure><p>With plenty of AWS data storage options, S3 is the most versatile, cheap, and common. In addition, Amazon Glue, Athena, EMR, and Redshift services can read directly from S3, so necessary computations can be performed without moving the data.</p><p>Also:</p><ul><li>Saving ingested data to S3 allows me to process it individually as new data arrives.</li><li>I can define/redefine the data model (schema) later — so-called Schema-On-Read, instead of identifying all columns and types in advance (Schema-On-Write).</li><li>S3 is cheap.</li></ul><p>In this example, I use Lambda to save the pandas dataframe directly to S3. In more complex scenarios requiring aggregation, failover, repeats, and checkpoints, you can use the Kinesis Producer Library and Kinesis Firehose to ingest data to S3. But, doing so would overcomplicate this solution so that we can achieve data ingestion with Lambda and direct calls with S3.</p><h3>Processing Data</h3><p>The goal of the processing phase is to transform data and make it more consumable for further analysis and visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qjk2gQF7ReC7tDV8qnFdIA.png" /></figure><p>Every day our solution will save new feed entries on the S3 landing bucket as a separate file. And we would need to “merge” these files before processing and cleansing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElMZ4RVeEjirp_kL9vRqMQ.png" /></figure><p>Fortunately, Athena can query S3 directly. So all we need to do is to create a table in AWS Glue and point it to our landing bucket. After that, you can use SQL to query the data as you would typically do with relational databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sv-PI9FH2JM4RjkmP085_A.png" /></figure><p>Our dataset is small, so we will use Glue Python Shell Job to do all these tasks (for large datasets, you can use AWS Glue Spark or Amazon EMR). Python Shell Job is a simple non-distributed Python script running on AWS Glue which is a perfect fit for running small to medium-sized generic tasks. It also includes pre-built analytics packages like pandas, so we do not need to manage additional dependencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxQcT2srvQpBgSwplsOJSA.png" /></figure><p>This job also will be triggered every time new data appears in the S3 landing bucket, merge all existing files into a single report, perform cleansing, add new columns and categories, and upload the resulting file into another S3 bucket for processed files.</p><p>After all transformations, our dataset changed from this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7IfBA4FKLER5MdqY_RXv9A.png" /></figure><p>To this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gS1ZH_08lM89uJE9vBeQtw.png" /></figure><h3>Analyzing and Visualizing your Data</h3><p>The analysis and visualization stage involves using the data you’ve collected, processed and transformed to generate actionable insights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M33zmoZqMY5GJfp3PltukA.png" /></figure><p>The visual representation of data allows us, humans, to spot patterns, trends, and anomalies. It also improves collaboration and communication processes allowing explaining topics in a simple and approachable way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8z7fE7oZrEd0neYwKnDviw.png" /></figure><p>I analyzed AWS Release Notes in <a href="https://medium.com/@shuraosipov/do-you-know-whats-cooking-in-aws-f4e8a8b0d4fa"><strong>my previous article</strong></a>, so you can refer to it for an example of how to do storytelling with data. Here, I provide an example visualization showing all AWS releases over the last five months.</p><h3>Deploying Solution</h3><p>Below you can see the resulting architecture diagram. Following the <a href="https://aws.amazon.com/devops/what-is-devops/">best DevOps practices</a>, every component described previously was modeled using AWS Cloud Development Kit (CDK).</p><p>The solution can be deployed using the CDK command line interface tool. You can also test each component, the Collector function, and Processor scripts locally before deploying changes to the Cloud.</p><p>Please find detailed deployment instructions in my GitHub <a href="https://github.com/shuraosipov/aws_rss_feed_analysis">repository</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XTOXnx9jL82ZvhV_u3zLsg.png" /></figure><h3>Conclusion</h3><p>Data analysis is a collaborative, iterative process comprising multiple stages — collection, storage, processing, analysis, and visualization.</p><p>With AWS&#39;s dynamic, elastic, and event-driven nature, it is possible to apply automation to every piece of data that is ingested into the Cloud.</p><p>Analytics applications are used to find insights from data, develop shared understanding, and improve decision-making and collaboration.</p><p>Thanks,<br>Alex</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed49560335db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do you know what’s cooking in AWS?]]></title>
            <link>https://medium.com/@shuraosipov/do-you-know-whats-cooking-in-aws-f4e8a8b0d4fa?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e8a8b0d4fa</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 16:15:27 GMT</pubDate>
            <atom:updated>2022-10-21T19:52:18.107Z</atom:updated>
            <content:encoded><![CDATA[<p>The only constant thing in our lives is change. And Amazon is living proof of that statement.</p><p>In this post, I try to summarize all changes introduced in AWS over the last six months in a visual way so that you can quickly get an idea of what is happening in AWS and where they put their attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLLtLAk97E_Vq6gJhRzGGw.png" /></figure><h3>What is this about?</h3><p>I will review the data from the “<a href="https://aws.amazon.com/about-aws/whats-new/recent/feed/">AWS What’s New</a>” RSS feed, which I carefully collected for several months and prepared for analysis.</p><p>The data processing is built on AWS and composed of the following components:</p><ul><li>AWS Lambda collector function, which is triggered by an Amazon EventBridge Rule every night and collects the RSS Feed data and stores it in the S3 landing bucket</li><li>AWS Glue table that pointed to the S3 landing bucket</li><li>AWS Athena query engine that allows querying the data in S3</li><li>AWS Glue Python shell job processes the data queries Athena and stores results in a tabular format in S3 for processed data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBdl--MXhjcy6zmVhgCcXA.png" /></figure><p>You can find a detailed overview and deployment guide for this solution in my GitHub <a href="https://github.com/shuraosipov/aws_rss_feed_analysis">repository</a>.</p><p>The data set is also publicly available and published <a href="https://raw.githubusercontent.com/shuraosipov/aws_rss_feed_analysis/main/_reports/AWS_RSS_FEED_DATA_PROCESSED_LATEST.csv">here</a>, so, you can explore it yourself.</p><h3>Bird’s eye view</h3><p>Over the last five months, Amazon Web Services made over 600 updates to 195 products, with 120 updates per month on average. Pretty impressive!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TpxMTFPsM0-Ymja0JLhRfA.png" /></figure><p><strong>More than half of all updates</strong> were made to the services in six categories —</p><ul><li>artificial intelligence</li><li>analytics</li><li>databases</li><li>management and governance</li><li>compute</li><li>security, identity, and compliance</li></ul><p>I would expect to see the serverless and containers categories among those six. But it looks like this is just my personal feeling, and it has nothing to do with the actual status of things in Amazon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQYsmyNUDe_1BfieqQkbbw.png" /></figure><p>Now, let us switch from the category view and see the products and services that received the most updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXiDrDapp_p3TyS3jFFbyg.png" /></figure><p>Amazon SageMaker, Amazon GovCloud US, Amazon Connect, and Amazon QuickSight are among the top five services and cloud regions that received the most changes! So, let us take a closer look at each service.</p><h3>Amazon SageMaker — the most updated service</h3><p>It is not a surprise to see Amazon SageMaker at the top of the list, as AWS continues investing heavily in extending machine learning capabilities, adding more features and algorithms, and simplifying model development and tuning.</p><p>Once promised to “put machine learning in the hands of every developer,” Amazon keeps its promise and continues evolving its AI ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*El3kjY_Zg5Vk2DSANRUDrQ.png" /></figure><p>With 36 updates (45 if count updates to MLOps, Studio, Data Wrangler, and Canvas capabilities), Amazon SageMaker has become the most updated service in the Artificial Intelligence category and the entire AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thrdUGFfEO-2OWpJNn6yMA.png" /></figure><p>Amazon is trying to democratize and generalize ML and make it available for non-data scientists or ML professionals, by simplifying the machine learning process, automating model creation and evaluation, providing greater visibility into model predictions, and making the ML process faster, more accurate, and more robust.</p><p>Here are the most notable changes I would like to mention:</p><ul><li>Identify and limit bias in model predictions and training data with <a href="https://aws.amazon.com/about-aws/whats-new/2022/10/amazon-sagemaker-clarify-provides-near-real-time-explanations-ml-predictions/">real-time explanations</a> for ML predictions.</li><li>Improved machine learning testing and deployment workflows by adding <a href="https://aws.amazon.com/sagemaker/pipelines/">local testing</a> to the SageMaker Pipelines (CI/CD for machine learning) and <a href="https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-sagemaker-pipelines-sharing-pipeline-entities-across-accounts/">cross-account pipeline sharing</a>.</li><li><a href="https://aws.amazon.com/about-aws/whats-new/2022/09/amazon-sagemaker-autopilot-experiments-faster-ensemble-training-mode-powered-autogluon/">Improved accuracy and speed of ML</a> predictions by introducing a new ‘Ensemble’ training mode for SageMaker Autopilot, reduced job start-up time by <a href="https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-sagemaker-automatic-model-tuning-reuses-sagemaker-training-instances-reduce-start-up-overheads/">reusing training instances</a>, and faster experiments using <a href="https://aws.amazon.com/about-aws/whats-new/2022/07/amazon-sagemaker-autopilot-experiments-2x-faster/">new hyperparameter initialization methods</a>.</li></ul><h3>Amazon EC2</h3><p>Amazon continues introducing new EC2 instance types, promoting the adoption of Graviton2-based instances, and making them available in different regions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUpaGArwt2zfoSvL0O8A7w.png" /></figure><p>Also, EC2 is used as a foundation service for many managed services in AWS. So, it is expected to see more updates to one of the oldest services in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82uXA6GimqOA_Ww43DAKJA.png" /></figure><p>The most interesting changes are:</p><ul><li><a href="https://aws.amazon.com/about-aws/whats-new/2022/10/amazon-ec2-automated-connection-solution-ec2-instance-rds-database/">Automated connection set-up</a> between EC2 and RDS (Relational Database Service).</li><li><a href="https://aws.amazon.com/about-aws/whats-new/2022/09/aws-controllers-kubernetes-ack-rds-lambda-step-functions-prometheus-kms/">5 new AWS Controllers for Kubernetes (ACK)</a> are generally available (with ACK you can manage AWS resources right from Kubernetes using kubectl).</li></ul><h3>AWS GovCloud (US)</h3><p>AWS wants to secure itself as an official Cloud provider for the US government agencies, educational institutions, and other U.S. customers that run sensitive workloads in the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*psmJQOkt1Iq5R8aLCbWQjA.png" /></figure><p>This region has received 31 updates in almost every product category, including Blockchain and Serverless. With most of the changes focused on Compute, Databases, and Security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nv1w0_fpe9VzHXQsH6k42Q.png" /></figure><p>Amazon makes a steady effort to bring more services to the GovCloud US region, to make them, compliant and support stringent U.S. government security and compliance requirements.</p><p>Here are the most interesting changes that I would like to highlight:</p><ul><li>Amazon Lambda functions <a href="https://aws.amazon.com/about-aws/whats-new/2022/07/aws-lambda-supports-aws-x-ray-govcloud-us-regions/">now support</a> X-Ray tracing.</li><li>Events from multiple regions can be combined into one central Region with Amazon EventBridge <a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-eventbridge-cross-region-routing-aws-govcloud-regions/">cross-Region routing</a>.</li><li><a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-dynamodb-standard-infrequent-access-table-class-govcloud-us/">Added support</a> for Amazon DynamoDB Standard Infrequent Access table class, which should lower storage costs for long-term storage of data that is infrequently accessed.</li></ul><h3>Amazon Connect</h3><p>A cornerstone service for initiatives like Digital Front Door or Omnichannel Strategy, an Omnichannel Contact Center, Amazon Connect, had received 24 updates in the last five months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JmkhbwD3iH2uHmw_qTX-Rw.png" /></figure><p>It also became the most updated service in the Business Applications category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Au7in-BFVzPXFM5qXApKIw.png" /></figure><p>Looks like Amazon sees many opportunities in the customer and patient experience segment. And wants to help customers streamline and customize the call center experience and provide easier integration with AWS.</p><p>The range of changes is wide. The most prominent of them are the following:</p><ul><li>Security improvements with voice spoofing <a href="https://aws.amazon.com/about-aws/whats-new/2022/09/amazon-connect-voice-id-detects-fraud-risk-voice-spoofing-customer-calls/">detection</a> during customer calls.</li><li>The focus is on agent productivity (<a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-connect-wisdom-integrate-agent-assistance-capabilities-applications/">integration with Wisdom</a>, <a href="https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-connect-schedule-adherence-preview/">schedule adherence</a>). And visibility into the agent’s performance and bottlenecks (<a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-connect-launches-15-minute-scheduled-reports/">15 minutes scheduled reports</a>, <a href="https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-connect-schedule-adherence-preview/">adherence</a>, <a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-connect-launches-api-retrieve-agents-current-activity/">agent’s current activity</a>).</li><li>Personalization of the customer experience based on <a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-connect-supports-branching-flows-lex-confidence-scores/">confidence scores</a> and <a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-connect-supports-personalization-customer-experience-lex-sentiment-analysis-flows/">sentiment analysis</a>.</li><li>Automated merging of duplicated customer records based on <a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-connect-customer-profiles-confidence-scores-help-merge-duplicate-customer-records/">confidence scores</a>.</li></ul><h3>Amazon QuickSight</h3><p>A data visualization service, Amazon QuickSight is at the top in the Analytics category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acJ8OBtC-usyMWA3RZqKPg.png" /></figure><p>This service has received 20 updates and closes the top five of the most updated service in AWS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbUKTJhsHQsLPOix4-la8Q.png" /></figure><p>Multiple updates to Amazon QuickSight Q (a natural language query capability), region expansion, improvements to the UI and dashboard experience, and admin-level improvements to simplify and automate user and platform management.</p><p>Interesting new features:</p><ul><li>It is possible to identify questions that <a href="https://aws.amazon.com/about-aws/whats-new/2022/09/amazon-quicksight-q-authors-identify-questions-q-did-not-answer-required-user-disambiguation-generate-answer/">Q did not answer</a> and enhance topic language coverage over time.</li><li>You can now use Q Embedding SDK to <a href="https://aws.amazon.com/about-aws/whats-new/2022/06/amazon-quicksight-q-embedding-sdk-programmatic-question-submission/">ask questions programmatically</a>.</li><li>You can now embed QuickSight visualizations into your web site with <a href="https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-quicksight-announces-fine-grained-visual-embedding/">fine-grained visual embedding</a>.</li></ul><h3>Conclusion</h3><p>It is interesting to see how AWS is changing and where they focus their attention. ML, Data, Compute, and Security are the main competencies that Amazon is developing right now.</p><p>Development in the US GovCloud region means more public sector companies will be using and utilizing cloud capabilities, providing better, secure services with a focus on customer experience.</p><p>Machine Learning will become more available for non-experts, so you only need to bring your data. The rest AWS will do for you.</p><p>Focus on staff performance and productivity managed by AI could become a thing soon, so we can expect more (AI managers or assistants) to appear in the near future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e8a8b0d4fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to thrive in the Knowledge Economy?]]></title>
            <link>https://medium.com/@shuraosipov/how-to-thrive-in-the-knowledge-economy-eecceffb36c8?source=rss-e3a45525b472------2</link>
            <guid isPermaLink="false">https://medium.com/p/eecceffb36c8</guid>
            <category><![CDATA[society]]></category>
            <category><![CDATA[knowledge-economy]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Alexander Osipov]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 23:26:45 GMT</pubDate>
            <atom:updated>2022-08-08T23:26:45.286Z</atom:updated>
            <content:encoded><![CDATA[<p>While reading an article called “Putting your company’s whole brain to work” from Harvard Business Review, I found the interesting term “the knowledge economy”… I got curious and decided to understand this concept better, explain it to myself and extract key factors that make you benefit from the knowledge economy.</p><p>This article attempts to answer a simple question — “How to be successful in the knowledge economy?”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-njUPHEufayemeQlwuJOvg.jpeg" /></figure><h3>What is the knowledge economy?</h3><p>The knowledge economy is an economy where knowledge is the most important resource. In this type of economy, businesses and individuals can create value by using their knowledge to create new products, services, and processes.</p><p>Compared to a traditional economy driven by natural <strong>resources and labor</strong>, the knowledge economy is based on <strong>intellectual capital and knowledge</strong>. Knowledge and information are the primary drivers of economic activity and growth. In this type of economy, businesses and organizations focus on creating and using knowledge to generate value rather than on traditional factors of production such as land, labor, and capital (to which we, regular people, have no access).</p><p>Here is a definition from Investopedia. The knowledge economy is <strong>a system of consumption and production that is based on intellectual capital</strong>. In particular, it refers to the ability to capitalize on <strong>scientific discoveries and applied research</strong>. The knowledge economy represents a large share of the activity in most highly developed economies.</p><p>The knowledge economy has been growing recently, as technology has made it easier for people to access and share information. This has led to a new breed of businesses and industries that are based on knowledge and information rather than natural resources and labor. The knowledge economy is often called the “new economy” or the “information economy.”</p><h3>How to thrive in the knowledge economy as a business?</h3><p>There are a few key things that businesses and organizations need to do to thrive in the knowledge economy:</p><ul><li>They need to create an environment that encourages and supports creativity and innovation.</li><li>They need to invest in human capital, and in particular, in the development of their employees’ skills and knowledge.</li><li>They need to have the right organizational structures and processes in place to capture, share, and use knowledge effectively.</li><li>They need to create a culture of continuous learning so that employees are constantly updating their skills and knowledge.</li><li>They need to use technology effectively to support all of the above.</li></ul><p>In other words, organizations will become people-centric and will invest heavily in human development and treat us like capital.</p><h3>How to thrive in the knowledge economy as an employee?</h3><p>The best way to thrive in the knowledge economy as an employee is to be proactive and constantly learn new things. Be open to new ideas and ways of doing things, and always be willing to learn new skills. Be adaptable and able to work in a fast-paced, ever-changing environment. And lastly, be a good team player and be able to communicate with others effectively.</p><p>In a nutshell:</p><ul><li>Soft skills over hard skills</li><li>An open mind and willingness to learn new things over a lifetime</li><li>Comfortable to work without full information</li><li>Be good at collaboration and networking — build bridges, not walls</li></ul><h3>How to thrive in the knowledge economy as an individual?</h3><p>As an individual, you can also thrive in the knowledge economy by doing the following:</p><ul><li>Investing in your own human capital — make sure you constantly learn and update your skills.</li><li>Being creative and innovative — come up with new ideas and solutions to problems.</li><li>Working in an environment that supports and encourages creativity and innovation.</li><li>Being part of an organization that has the right structures and processes in place to capture, share, and use knowledge effectively.</li></ul><h3>How to stay independent in the knowledge economy?</h3><p>There are a few ways to stay free in the knowledge economy. First, you can make sure that you are in control of your own data and information. Second, you can be careful about how much information you share online and with whom you share it. Finally, you can make sure to keep your personal and professional life separate.</p><p>In a new world, an individual should possess the following skills:</p><ul><li>Understanding of information security and data privacy</li><li>Basic data literacy</li><li>Be fluent and open to new technologies (AI, Cloud)</li><li>Be a creator</li></ul><h3>How to monetize knowledge in the knowledge economy?</h3><p>You can <strong>sell your knowledge and expertise</strong> to businesses or other individuals. You can <strong>create and sell products</strong> or services that are based on your knowledge. You can <strong>teach others</strong> how to use their knowledge to create value.</p><h3>What are the drawbacks of the knowledge economy?</h3><p>There are a few drawbacks of the knowledge economy:</p><ul><li>Keeping up with the ever-changing knowledge landscape can be difficult.</li><li>The knowledge economy can encourage a race to the bottom in terms of wages.</li><li>It can lead to a more individualistic and competitive society.</li></ul><h3>What would be the next stage in the economic development after the knowledge economy?</h3><p>The next stage in the economy after the knowledge economy would be the creative economy. In the creative economy, businesses and individuals would create value by using their creativity to create new products, services, and processes.</p><p>The stages of the economy starting from the hunter-gathering are:</p><ul><li>Hunter-gatherer Culture</li><li>Agricultural Economy</li><li>Industrial Economy</li><li>Service Economy</li><li>Knowledge Economy (* we are here)</li><li>Creative Economy</li></ul><h3>Summary: How to be successful in the knowledge economy?</h3><p>The key to success in the knowledge economy is to be able to create and add value through the use of knowledge. This means being able to generate new ideas and insights and apply them in ways that create value for businesses or other organizations. It also requires communicating effectively and collaborating with others to solve problems and create new opportunities.</p><ul><li><strong>Generate new ideas and insights</strong> — One of the most important things you can do to be successful in the knowledge economy is to generate new ideas and insights. This means constantly challenging yourself to come up with new ways of looking at things and new solutions to problems. It also means being open to new ideas and perspectives from others, and being willing to experiment and take risks.</li><li><strong>Apply knowledge to create value</strong> — The knowledge economy is all about creating value. This means taking the ideas and insights you generate and applying them in ways that create value for businesses or other organizations. This could involve developing new products or services, improving processes or developing new business models. It might also involve applying your knowledge to help solve social or environmental problems.</li><li><strong>Communicate and collaborate effectively</strong> — Another key to success in the knowledge economy is to be able to communicate and collaborate effectively with others. This means being able to share your ideas and insights with others, and to work together to solve problems and create new opportunities. It also requires being able to build relationships and networks, and to influence others.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eecceffb36c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>