<?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 UvinduHerath on Medium]]></title>
        <description><![CDATA[Stories by UvinduHerath on Medium]]></description>
        <link>https://medium.com/@uvherath?source=rss-76e320af154a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NdVoZxqoLHeTn4di76P0SA.png</url>
            <title>Stories by UvinduHerath on Medium</title>
            <link>https://medium.com/@uvherath?source=rss-76e320af154a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:19:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@uvherath/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[North Star Architecture]]></title>
            <link>https://medium.com/@uvherath/north-star-architecture-3bffce11a152?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bffce11a152</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[technical-leadership]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 06:08:12 GMT</pubDate>
            <atom:updated>2026-09-23T06:08:12.972Z</atom:updated>
            <content:encoded><![CDATA[<p>A Direction for Systems That Keep Changing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-m3kMGTacXuMaq6zcRDeaw.jpeg" /></figure><p><em>How to make better technical decisions without pretending you can predict the future.</em></p><p>Software architecture has a strange relationship with certainty. We draw diagrams, choose technologies, and describe how components should fit together. Then the product changes. Traffic grows in an unexpected place. A team splits in two. A “temporary” integration becomes critical.</p><p>The problem is not that the original architecture was poorly designed. The problem is that architecture is often treated as a destination.</p><p><strong>North Star Architecture</strong> offers a different approach</p><p>define the qualities your system should move toward, then use them to guide decisions as the system evolves.</p><h3>What is a North Star Architecture?</h3><p>A North Star Architecture is a clear, shared description of the system you are trying to build over time. It is specific enough to influence today’s choices, but flexible enough to survive changes in products, teams, and technology.</p><p>For example, a team’s North Star might be</p><blockquote><em>Each business capability has a clear owner. Teams can change and deploy their services independently. Data moves through explicit, observable interfaces, and critical user journeys remain reliable when one dependency fails.</em></blockquote><p>That statement does not prescribe a particular database, cloud provider, or number of services. It describes properties the team can work toward and use to judge tradeoffs.</p><p>It also creates a useful test</p><p><strong>Does this decision move us closer to those properties, or further away?</strong></p><h3>Why teams need one</h3><p>Without a shared direction, architecture can become a collection of local optimizations. One team introduces a service to gain independence. Another adds direct database access to ship faster. A third builds a second event pipeline because the first one is hard to use.</p><p>Each decision may make sense on its own. Together, they can produce a system that is difficult to understand and change.</p><p>A North Star gives teams a common basis for decisions. It does not eliminate tradeoffs. It makes them visible.</p><p>Suppose the goal is independent deployment, but two services must always be released together. That dependency is now something the team can name and address. Perhaps it is worth fixing this quarter. Perhaps another problem matters more. Either way, the choice is deliberate.</p><h3>The North Star is not the next milestone</h3><p>This distinction matters. A North Star describes the direction. A roadmap describes the steps.</p><p>Imagine a growing commerce platform with a tightly coupled checkout flow. Its North Star calls for clear ownership of payments, inventory, and orders, with reliable behavior when one system is unavailable.</p><p>The next step probably is not to rewrite checkout as three new services. It could be much smaller</p><ol><li>Document which component owns each piece of checkout data.</li><li>Replace one direct database read with an explicit interface.</li><li>Add tracing across the checkout journey.</li><li>Define what the customer sees when inventory cannot be confirmed.</li></ol><p>Those changes create progress without requiring the team to reach the final design all at once.</p><h3>How to create one</h3><p>Start with the pain your team actually experiences. Ask what makes changes slow, incidents hard to resolve, or ownership unclear. Then describe the system qualities that would address those problems.</p><p>A useful North Star usually answers four questions</p><ul><li><strong>Ownership:</strong> Who can change each part of the system?</li><li><strong>Boundaries:</strong> How do components interact and share data?</li><li><strong>Reliability:</strong> What happens when a dependency fails?</li><li><strong>Change:</strong> How easily can the system adapt to a new requirement?</li></ul><p>Keep the result short enough that people can remember it. Pair it with a few concrete principles, such as “one clear owner for each business concept” or “critical workflows must be observable end to end.”</p><p>Then use those principles in design reviews, planning, and incident follow-ups. If the North Star only appears in an architecture document, it will have little effect.</p><h3>Leave room for reality</h3><p>A North Star is a guide, not a rule that overrides every constraint. Sometimes a deadline justifies a shortcut. Sometimes the technically cleaner option costs more than the problem warrants.</p><p>The useful habit is to record the tradeoff :- what you chose, why you chose it, and what would cause you to revisit it. That keeps a short-term decision from quietly becoming permanent architecture.</p><p>The North Star itself should be revisited, too. When the business changes, the team should ask whether its desired system qualities still serve the product.</p><h3>A direction worth sharing</h3><p>Good architecture is not a perfect diagram waiting to be implemented. It is a series of decisions that help a system remain useful as its surroundings change.</p><p>A North Star Architecture gives those decisions a direction. It helps teams make progress today while staying honest about where they want to go next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bffce11a152" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI-Driven Copilot for Applications Using Crow AI]]></title>
            <link>https://medium.com/@uvherath/building-an-ai-driven-copilot-for-applications-using-crow-ai-255ec3571998?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/255ec3571998</guid>
            <category><![CDATA[crew-ai]]></category>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 08:08:55 GMT</pubDate>
            <atom:updated>2026-01-20T08:08:55.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*rS2nGpU_1H05ta51Rh3_Ug.png" /></figure><p>As organizations accelerate their adoption of AI, one of the highest-impact opportunities is integrating intelligent assistants directly into existing systems. These assistants should not only respond to user queries but also initiate actions, retrieve data, and execute workflows. Crow provides a streamlined and secure way to add these capabilities to any application by connecting an AI agent to your existing APIs.</p><p>In this guide, we’ll walk through how to</p><p>✳️ Set up a Crow project<br> ✳️ Integrate your existing backend APIs<br> ✳️ Generate callable tools for your AI agent<br> ✳️ Deploy and embed a fully functional copilot<br> ✳️ Test the assistant’s operational behavior</p><p>This approach enables teams to bring AI-native functionality to production systems without major architectural changes.</p><h4>Structure</h4><p>A typical setup may look like the following</p><pre>Copilot-app/<br>│<br>├── backend/<br>│   ├── main.py         # Example API (FastAPI)<br>│   └── requirements.txt<br>│<br>├── crow/<br>│   ├── crow.json       # Crow project configuration<br>│   └── tools.json      # Auto-generated API tools<br>│<br>└── frontend/<br>    └── index.html      # Embedded Crow widget</pre><p>Your existing backend remains the source of truth. Crow acts as a secure intelligence layer on top of it.</p><h4>Install the Crow CLI</h4><p>Crow provides a CLI that handles project initialization, tool generation, and deployment.</p><p><em>Install globally</em></p><pre>npm install -g @crow-ai/cli</pre><p><em>Authenticate</em></p><pre>crow login</pre><p><em>Initialize a new project</em></p><pre>crow init</pre><p>This creates a baseline crow.json configuration file.</p><h4>1.Create a Simple API (Fast API Example)</h4><p>Below is a minimal API that Crow will integrate with:</p><p>backend/main.py</p><pre>from fastapi import FastAPI</pre><pre>app = FastAPI()</pre><pre>items = {<br>    1: {&quot;name&quot;: &quot;Keyboard&quot;, &quot;price&quot;: 50},<br>    2: {&quot;name&quot;: &quot;Mouse&quot;, &quot;price&quot;: 25}<br>}</pre><pre>@app.get(&quot;/items/{item_id}&quot;)<br>def get_item(item_id: int):<br>    return items.get(item_id, {&quot;error&quot;: &quot;Item not found&quot;})</pre><pre>@app.post(&quot;/items&quot;)<br>def create_item(item: dict):<br>    new_id = max(items.keys()) + 1<br>    items[new_id] = item<br>    return {&quot;id&quot;: new_id, &quot;item&quot;: item}</pre><p>Run the API</p><pre>uvicorn backend.main:app --reload</pre><p>Crow will consume the automatically generated OpenAPI schema.</p><h4>2.Generate Tools for the Copilot</h4><p>Crow can analyze your API’s OpenAPI documentation and convert endpoints into structured “tools” that the AI can call safely.</p><p>Execute</p><pre>crow generate tools --openapi http://127.0.0.1:8000/openapi.json</pre><p>This produces a tools.json mapping</p><p>crow/tools.json</p><pre>{<br>  &quot;get_item&quot;: {<br>    &quot;method&quot;: &quot;GET&quot;,<br>    &quot;endpoint&quot;: &quot;/items/{item_id}&quot;,<br>    &quot;params&quot;: {<br>      &quot;item_id&quot;: &quot;number&quot;<br>    }<br>  },<br>  &quot;create_item&quot;: {<br>    &quot;method&quot;: &quot;POST&quot;,<br>    &quot;endpoint&quot;: &quot;/items&quot;,<br>    &quot;body&quot;: {<br>      &quot;name&quot;: &quot;string&quot;,<br>      &quot;price&quot;: &quot;number&quot;<br>    }<br>  }<br>}</pre><p>These tools define exactly how the assistant can interact with your system.</p><h4>3.Configure Your Crow Project</h4><p>Your configuration file links the assistant, its tools, and your backend.</p><p>crow/crow.json</p><pre>{<br>  &quot;name&quot;: &quot;Inventory Copilot&quot;,<br>  &quot;description&quot;: &quot;An operational copilot that queries and updates product data.&quot;,<br>  &quot;api_base_url&quot;: &quot;http://127.0.0.1:8000&quot;,<br>  &quot;tools_file&quot;: &quot;./tools.json&quot;<br>}</pre><p>Deploy the assistant</p><pre>crow deploy</pre><p>Once deployed, the Crow dashboard provides analytics, logs, and test tools.</p><h4>4.Embed the Copilot into Your Frontend</h4><p>Crow supplies a lightweight embeddable widget.</p><p>frontend/index.html</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;Inventory Application&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;h1&gt;Inventory Dashboard&lt;/h1&gt;<br>    &lt;div id=&quot;crow-chat&quot;&gt;&lt;/div&gt;</pre><pre>    &lt;script src=&quot;https://cdn.crow.ai/sdk.js&quot;&gt;&lt;/script&gt;<br>    &lt;script&gt;<br>      Crow.init({<br>        element: &quot;#crow-chat&quot;,<br>        projectId: &quot;YOUR_PROJECT_ID&quot;<br>      });<br>    &lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Now your users have access to a fully capable AI copilot directly inside your application.</p><h4>5. Test Operational Behavior</h4><p>Once embedded, the assistant can</p><h4><strong>Query existing data</strong></h4><blockquote><em>“Retrieve item 1.”</em></blockquote><p>Which maps to</p><pre>GET /items/1</pre><p><strong>Create new records</strong></p><blockquote><em>“Add a new product called ‘keyboard’ priced at 75.”</em></blockquote><p>Which triggers</p><pre>POST /items<br>{<br>  &quot;name&quot;: &quot;keyboard&quot;,<br>  &quot;price&quot;: 1000<br>}</pre><p>All actions are executed through your API, ensuring security and auditability.</p><p>Crow enables these outcomes without forcing a rewrite of existing infrastructure. It will bridge the gap between traditional backend systems and intelligent, action-capable AI services.</p><p><strong><em>If you enjoyed this post, please click the clap button and share your thoughts. Thank you for reading! 👏</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=255ec3571998" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build and Share a Machine Learning Model with FastAPI — Simple Guide]]></title>
            <link>https://python.plainenglish.io/build-and-share-a-machine-learning-model-with-fastapi-simple-guide-355eb5b01f5c?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/355eb5b01f5c</guid>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ml-model-deployment]]></category>
            <category><![CDATA[api-development-companies]]></category>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Sun, 06 Jul 2025 15:40:03 GMT</pubDate>
            <atom:updated>2025-07-13T00:41:17.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build and Share a Machine Learning Model with FastAPI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQpQJjVtSuUFxXmb64hqYw.png" /></figure><p>If you building machine learning models and testing new things that’s awesome! But to make your work useful to others, you need to share it. The best way is to build an API so other programs or people can send data and get predictions.</p><p>In this guide, we’ll show you how to</p><p>✳️ Train a machine learning model<br>✳️ Build a FastAPI web app to serve it<br>✳️ Validate inputs, log requests, and avoid delays<br>✳️ Test your API using Swagger UI or CURL</p><p>Let’s get started!</p><h3>Project Structure</h3><p>Your folder should look like this</p><pre>ml-api/<br>│<br>├── model/<br>│   ├── train_model.py        # Train and save ML model<br>│   └── iris_model.pkl        # Saved model file<br>│<br>├── app/<br>│   ├── main.py               # FastAPI app<br>│   └── schema.py             # Input format<br>│<br>├── requirements.txt          # Python packages<br>└── README.md                 # (Optional) Instructions</pre><h3>Install Required Packages</h3><p>Use pip to install what we need</p><pre>pip install fastapi uvicorn scikit-learn joblib pydantic</pre><p>Then save your environment</p><pre>pip freeze &gt; requirements.txt</pre><h3>Train and Save the ML Model</h3><p>Let’s train a simple model using the famous <strong>Iris flower dataset</strong>.</p><p>Create model/train_model.py and paste this</p><pre>from sklearn.datasets import load_iris<br>from sklearn.ensemble import RandomForestClassifier<br>from sklearn.model_selection import train_test_split<br>import joblib, os<br><br># Load data and train model<br>X, y = load_iris(return_X_y=True)<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)<br><br>clf = RandomForestClassifier()<br>clf.fit(X_train, y_train)<br><br># Save the model<br>os.makedirs(&quot;model&quot;, exist_ok=True)<br>joblib.dump(clf, &quot;model/iris_model.pkl&quot;)<br><br>print(&quot;Model saved!&quot;)</pre><p>Run it once</p><pre>python model/train_model.py</pre><h3>Define Input Format</h3><p>We need to tell FastAPI what kind of data the user should send.</p><p>Create app/schema.py</p><pre>from pydantic import BaseModel, Field<br><br>class IrisInput(BaseModel):<br>    sepal_length: float = Field(..., gt=0, lt=10)<br>    sepal_width: float = Field(..., gt=0, lt=10)<br>    petal_length: float = Field(..., gt=0, lt=10)<br>    petal_width: float = Field(..., gt=0, lt=10)</pre><p>This checks the input is between 0 and 10.</p><h3>Build the FastAPI App</h3><p>Create app/main.py</p><pre>from fastapi import FastAPI, HTTPException, BackgroundTasks<br>from fastapi.responses import JSONResponse<br>from app.schema import IrisInput<br>import numpy as np, joblib, logging<br><br># Load model<br>model = joblib.load(&quot;model/iris_model.pkl&quot;)<br><br># Setup logging<br>logging.basicConfig(filename=&quot;api.log&quot;, level=logging.INFO,<br>                    format=&quot;%(asctime)s - %(message)s&quot;)<br><br># Create FastAPI app<br>app = FastAPI()<br><br>@app.post(&quot;/predict&quot;)<br>def predict(input_data: IrisInput, background_tasks: BackgroundTasks):<br>    try:<br>        # Convert input to array<br>        data = np.array([[input_data.sepal_length,<br>                          input_data.sepal_width,<br>                          input_data.petal_length,<br>                          input_data.petal_width]])<br>        <br>        # Predict<br>        pred = model.predict(data)[0]<br>        proba = model.predict_proba(data)[0]<br>        species = [&quot;setosa&quot;, &quot;versicolor&quot;, &quot;virginica&quot;][pred]<br><br>        # Log in background<br>        background_tasks.add_task(log_request, input_data, species)<br><br>        return {<br>            &quot;prediction&quot;: species,<br>            &quot;class_index&quot;: int(pred),<br>            &quot;probabilities&quot;: {<br>                &quot;setosa&quot;: float(proba[0]),<br>                &quot;versicolor&quot;: float(proba[1]),<br>                &quot;virginica&quot;: float(proba[2])<br>            }<br>        }<br><br>    except Exception:<br>        logging.exception(&quot;Prediction failed&quot;)<br>        raise HTTPException(status_code=500, detail=&quot;Something went wrong&quot;)<br><br>def log_request(data: IrisInput, prediction: str):<br>    logging.info(f&quot;Input: {data.dict()} | Prediction: {prediction}&quot;)</pre><h3>Run and Test the API</h3><p>Start the server</p><pre>uvicorn app.main:app --reload</pre><p>Visit: <a href="http://127.0.0.1:8000/docs">http://127.0.0.1:8000/docs</a></p><p>Try this input</p><pre>{<br>  &quot;sepal_length&quot;: 6.1,<br>  &quot;sepal_width&quot;: 2.8,<br>  &quot;petal_length&quot;: 4.7,<br>  &quot;petal_width&quot;: 1.2<br>}</pre><p>You’ll get</p><pre>{<br>  &quot;prediction&quot;: &quot;versicolor&quot;,<br>  &quot;class_index&quot;: 1,<br>  &quot;probabilities&quot;: {<br>    &quot;setosa&quot;: 0.0,<br>    &quot;versicolor&quot;: 1.0,<br>    &quot;virginica&quot;: 0.0<br>  }<br>}</pre><p>Or use CURL</p><pre>curl -X POST &quot;http://127.0.0.1:8000/predict&quot; -H &quot;Content-Type: application/json&quot; -d \<br>&#39;{<br>  &quot;sepal_length&quot;: 6.1,<br>  &quot;sepal_width&quot;: 2.8,<br>  &quot;petal_length&quot;: 4.7,<br>  &quot;petal_width&quot;: 1.2<br>}&#39;</pre><p><strong><em>If you enjoyed this post, please click the clap button and share your thoughts. Thank you for reading! 👏</em></strong></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=355eb5b01f5c" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/build-and-share-a-machine-learning-model-with-fastapi-simple-guide-355eb5b01f5c">Build and Share a Machine Learning Model with FastAPI — Simple Guide</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Research Methods in UX Design.]]></title>
            <link>https://medium.com/@uvherath/understanding-research-methods-in-ux-design-a3df455be1f5?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3df455be1f5</guid>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 06:02:34 GMT</pubDate>
            <atom:updated>2025-01-30T23:01:03.129Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qV2viS1rDuhZYuQQIjSmqg.jpeg" /></figure><p>Understanding your users is one of the most essential parts of UX design. You’ve already learned about the problems that can arise when designers make assumptions about their users and their needs. So, how do you avoid making those assumptions? By doing research! In this blog post, you’ll explore some common research methods used by UX designers.</p><h4>Types of Research</h4><p>Research can be categorized in two main ways</p><ol><li>who conducts the research</li><li>the type of data collected.</li></ol><h3>Who Conducts the Research</h3><ol><li>Primary Research</li></ol><p>This is research you conduct yourself. Information from direct interactions with users, like <strong>interviews</strong>, <strong>surveys</strong>, or <strong>usability studies</strong>, falls into this category.</p><p>2. Secondary Research</p><p>This type of research uses information someone else has put together. For example, using information from sources like <strong>books</strong>, <strong>articles</strong>, or <strong>journals</strong>.</p><h3>Type of Data Collected</h3><ol><li>Qualitative Research</li></ol><p>This type of research is collected through observations and conversations. It focuses on understanding users’ needs and aims to answer questions like <strong>“why”</strong> or <strong>“how did this happen?”</strong></p><p>2. Quantitative Research</p><p>This research focuses on numerical data that can be gathered by counting or measuring, often collected from large-scale surveys. It aims to answer questions like <strong>“how many?”</strong> and <strong>“how much?”</strong></p><p>Then let us clear one by one methods.</p><h3>Primary Research Methods</h3><h3><strong><em>Interviews</em></strong></h3><p>Interviews are a method used to collect in-depth information on people’s <strong>opinions</strong>, <strong>thoughts</strong>, <strong>experiences</strong>, and <strong>feelings</strong>. They can be conducted one-on-one or in a group setting, like a focus group.</p><p><em>Advantages</em></p><ol><li>Better understanding of what a user thinks and why.</li><li>Ability to adjust questions or refocus the discussion based on the user’s answers.</li><li>Real-time follow-up questions.</li><li>Specific to a user’s needs.</li><li>Direct suggestions from users.</li></ol><p><em>Disadvantages</em></p><ol><li>Time-consuming.</li><li>Expensive due to participant compensation and space rental.</li><li>Smaller sample sizes due to constraints.</li><li>Group interviews can suffer from the bandwagon effect.</li></ol><p>For more details on interviews, check out this article about <a href="https://www.nngroup.com/articles/user-interviews/">user interviews from the Nielsen Norman Group.</a></p><h3><strong><em>Surveys</em></strong></h3><p>A survey is an activity where many people are asked the same questions to understand what most people think about a product. Surveys are useful for measuring the success of your product during development and after its launch.</p><p><em>Advantages</em></p><ol><li>Larger sample sizes.</li><li>Quick results and insights.</li><li>Inexpensive and can be done remotely.</li></ol><p><em>Disadvantages</em></p><ol><li>Limited in-depth feedback.</li><li>Not suitable for all types of research questions.</li><li>Lack of personalization.</li></ol><p>For more information on surveys, check out <a href="https://digital.gov/topics/usability/">usability.gov’s article</a> about online surveys.</p><h3><strong><em>Usability Studies</em></strong></h3><p>Usability studies evaluate a product by testing it on users. They help determine if a product is on the right track or needs adjustments. Recording these sessions can provide valuable data for future design decisions.</p><p><em>Advantages</em></p><ol><li>First-hand user interaction and observation.</li><li>Can challenge assumptions about your product.</li><li>In-depth feedback from users.</li></ol><p><em>Disadvantage</em></p><ol><li>Only measures product usability.</li><li>Can be expensive, especially in person.</li><li>Differences between controlled and real-life user experiences.</li></ol><p>For more on usability tests, check out the <a href="https://www.nngroup.com/articles/usability-testing-101/">Nielsen Norman Group’s article on usability testing.</a></p><h3><strong>Secondary Research Methods</strong></h3><p>Secondary research can be conducted at any phase of the project since it uses information from external sources. It might lay a foundation for your primary research or supplement its findings.</p><p><em>Advantages</em></p><ol><li>Generally cheaper and faster.</li><li>Easily accessible via online searches and publications.</li><li>Good supplement to primary research findings.</li></ol><p><em>Disadvantages</em></p><ol><li>No first-hand user interaction.</li><li>Not specific to your product.</li><li>Can be misleading if not done appropriately.</li></ol><p>To learn more about secondary research, check out <a href="https://www.formpl.us/survey-forms">this article from Formplus.</a></p><h3><strong>Research in Practice</strong></h3><p>As you move forward in your UX design career, you’ll likely use several different types of research methods. Knowing the advantages and disadvantages of each method, and when to use each, can make your research more effective and improve your product’s design.</p><p>For further exploration, check out<a href="https://www.nngroup.com/articles/which-ux-research-methods/"> this user-experience research methods article from NN Group</a>. It guides you through choosing the best research method for you out of 20 popular options.</p><p><strong><em>If you enjoyed this post, please click the clap button and share your thoughts. Thank you for reading! 👏</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3df455be1f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A* Algorithm]]></title>
            <link>https://medium.com/@uvherath/a-algorithm-d4ed9084f13a?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ed9084f13a</guid>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 11:53:17 GMT</pubDate>
            <atom:updated>2024-12-27T15:36:06.259Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of computer science, algorithms are the unsung heroes that power much of the technology we use daily. Among them, the A* (A-star) algorithm stands out as a powerful and efficient tool for pathfinding and graph traversal. Whether you’re navigating a map in your GPS or coding AI for a video game, A* is a go-to algorithm. In this blog, we’ll explore what makes A* so special, how it works, and where it’s applied.</p><h3>What is the A* Algorithm?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYfdtd642TLeuVfqp4GgjQ.png" /></figure><p>The A* algorithm is a popular search algorithm used to find the shortest path between two points. It combines the strengths of Dijkstra’s algorithm (which guarantees the shortest path) and Greedy Best-First Search (which uses heuristics to guide the search). By balancing these two approaches, A* achieves both efficiency and accuracy.</p><h3>How Does A* Work?</h3><p>At its core, A* uses a priority queue to explore nodes on a graph. It evaluates each node using the formula</p><ul><li><strong>f(n) -</strong> Total estimated cost of the cheapest path through node.</li><li><strong>g(n) -</strong> Cost of the path from the starting point to node.</li><li><strong>h(n) -</strong> Estimated cost (heuristic) from node to the goal.</li></ul><p>The algorithm prioritizes nodes with the lowest, ensuring a balance between the shortest known path and the estimated distance to the goal.</p><h3>Steps of the A* Algorithm</h3><p><strong>Initialization</strong></p><ul><li>Start with an open list (nodes to be evaluated) and a closed list (nodes already evaluated).</li><li>Add the starting node to the open list.</li></ul><p><strong>Node Evaluation</strong></p><ul><li>While the open list is not empty, choose the node with the lowest .</li><li>If this node is the goal, reconstruct and return the path.</li></ul><p><strong>Expand Neighbors</strong></p><ul><li>For each neighbor of the current node, calculate , , and .</li><li>If the neighbor isn’t in the open list or has a better , update its values and add it to the open list.</li></ul><p><strong>Repeat</strong></p><ul><li>Move the current node to the closed list and repeat until the goal is reached or the open list is empty.</li></ul><h3>Heuristics in A*</h3><p>The choice of heuristic greatly affects the algorithm’s performance. A good heuristic is</p><ol><li><strong>Admissible -</strong> Never overestimates the actual cost to reach the goal.</li><li><strong>Consistent - </strong>For any two nodes and , the estimated cost from to should not exceed the direct cost between them plus the heuristic from to the goal.</li></ol><p>Common heuristics include</p><ul><li><strong>Manhattan Distance - </strong>For grid-based maps.</li><li><strong>Euclidean Distance -</strong>For continuous spaces.</li><li><strong>Chebyshev Distance -</strong>When diagonal movements are allowed.</li></ul><h3>Example Use Case - Maze Navigation</h3><p>Imagine you are tasked with programming a robot to navigate a maze and reach the goal. The robot starts at a predefined point, and the maze contains walls, open spaces, and a goal node.</p><p>Using the A* algorithm</p><ol><li><strong>g(n)</strong> represents the distance the robot has traveled from the start node.</li><li><strong>h(n)</strong> is calculated using the Manhattan distance to the goal.</li><li><strong>f(n)</strong> combines the actual distance and the heuristic to guide the robot efficiently.</li></ol><p>Below is a diagram illustrating how A* explores the maze</p><blockquote>S = Start, G = Goal, X = Wall, O = Open Node</blockquote><blockquote>Before Exploration<br>S O O X X<br>X O X X G<br>O O O O X</blockquote><blockquote>Exploration Process<br>1. Explore nodes closest to S with the lowest f(n).<br>2. Gradually expand outward toward G, avoiding walls.<br>3. Final path is reconstructed once G is reached.</blockquote><h3>Coding Example</h3><p>Here is a Python implementation of the A* algorithm</p><pre>import heapq<br><br>def a_star_algorithm(start, goal, graph, h):<br>    open_list = []<br>    closed_list = set()<br>    g_cost = {start: 0}<br>    heapq.heappush(open_list, (h[start], start))<br>    came_from = {}<br><br>    while open_list:<br>        _, current = heapq.heappop(open_list)<br><br>        if current == goal:<br>            path = []<br>            while current in came_from:<br>                path.append(current)<br>                current = came_from[current]<br>            path.append(start)<br>            return path[::-1]<br><br>        closed_list.add(current)<br><br>        for neighbor, cost in graph[current]:<br>            if neighbor in closed_list:<br>                continue<br><br>            tentative_g_cost = g_cost[current] + cost<br>            if neighbor not in g_cost or tentative_g_cost &lt; g_cost[neighbor]:<br>                came_from[neighbor] = current<br>                g_cost[neighbor] = tentative_g_cost<br>                f_cost = tentative_g_cost + h[neighbor]<br>                heapq.heappush(open_list, (f_cost, neighbor))<br><br>    return None<br><br># Define the graph and heuristic<br>graph = {<br>    &#39;A&#39;: [(&#39;B&#39;, 1), (&#39;C&#39;, 3)],<br>    &#39;B&#39;: [(&#39;D&#39;, 1), (&#39;E&#39;, 4)],<br>    &#39;C&#39;: [(&#39;E&#39;, 2)],<br>    &#39;D&#39;: [(&#39;G&#39;, 4)],<br>    &#39;E&#39;: [(&#39;G&#39;, 1)],<br>    &#39;G&#39;: []<br>}<br><br>heuristic = {<br>    &#39;A&#39;: 6,<br>    &#39;B&#39;: 4,<br>    &#39;C&#39;: 4,<br>    &#39;D&#39;: 2,<br>    &#39;E&#39;: 2,<br>    &#39;G&#39;: 0<br>}<br><br>start = &#39;A&#39;<br>goal = &#39;G&#39;<br>path = a_star_algorithm(start, goal, graph, heuristic)<br>print(&quot;Shortest Path:&quot;, path)</pre><h3>Advantages of A*</h3><ul><li><strong>Guaranteed Optimality -</strong>Finds the shortest path if the heuristic is admissible.</li><li><strong>Efficiency -</strong> Focuses on the most promising paths, reducing unnecessary computations.</li><li><strong>Flexibility -</strong> Adapts well to various problem spaces with appropriate heuristics.</li></ul><h3>Limitations of A*</h3><ul><li><strong>High Memory Usage -</strong> Stores all evaluated nodes, which can be problematic for large graphs.</li><li><strong>Performance Dependent on Heuristic -</strong> Poor heuristic choices can make the algorithm inefficient.</li></ul><h3>Applications of A*</h3><ol><li><strong>Game Development</strong></li></ol><ul><li>AI characters use A* for pathfinding, navigating complex environments efficiently.</li></ul><p><strong>2. Robotics</strong></p><ul><li>Robots use A* to plan movements in real-world spaces while avoiding obstacles.</li></ul><p><strong>3. Navigation Systems</strong></p><ul><li>GPS applications use A* to calculate optimal routes.</li></ul><p><strong>4. Logistics and Planning</strong></p><ul><li>Warehouse robots and delivery drones rely on A* to optimize routes.</li></ul><p><strong><em>If you enjoyed this post, please click the clap button and share your thoughts. Thank you for reading! 👏</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ed9084f13a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Data Management in Decentralized Applications-A Guide to IPFS Cluster and Pinata Cloud]]></title>
            <link>https://medium.com/@uvherath/enhancing-decentralized-data-management-with-ipfs-cluster-and-pinata-cloud-010195c3a4ed?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/010195c3a4ed</guid>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 18:09:33 GMT</pubDate>
            <atom:updated>2024-10-31T18:27:18.574Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="ipfs logo" src="https://cdn-images-1.medium.com/max/1024/1*KI_bXIfnByBQZXE-AfyICg.jpeg" /></figure><p>The Interplanetary File System (IPFS) has paved the way for decentralized storage, enabling the storage, sharing, and access of data globally through a peer-to-peer network. However, as applications scale, managing and replicating data with IPFS alone can present challenges, especially concerning reliability and node coordination. In this post, we’ll explore how IPFS Cluster simplifies distributed data management and how Pinata Cloud enhances IPFS with managed storage solutions.</p><h3><strong>What is IPFS Cluster</strong></h3><p>IPFS Cluster is designed to work with IPFS by adding an essential layer of control over content distribution across multiple nodes. Instead of relying on a single node, IPFS Cluster replicates data across a network, balancing load and ensuring redundancy. Here’s how it strengthens IPFS<br><strong>Data Replication:</strong> IPFS Cluster automatically replicates data, which prevents data loss if a node goes offline.<br><strong>Automated Pinning: </strong>With IPFS, pinning files across nodes can be time-consuming. IPFS Cluster simplifies this, automating pin management and keeping content reliably available.<br><strong>Scalability and Flexibility:</strong> As your network expands, IPFS Cluster scales to keep data distribution balanced, making it easy to add nodes as storage needs increase. <br><strong>API and CLI Access:</strong> IPFS Cluster provides a Command Line Interface (CLI) and REST API, allowing for seamless data management and integration with other systems.</p><h3><strong>Setting Up IPFS Cluster</strong></h3><p>If you’re ready to try IPFS Cluster, here’s a quick guide to get started<br>1. <strong>Install IPFS</strong>: Begin by installing IPFS on each machine you’ll add to the cluster.</p><pre>ipfs init<br>ipfs daemon</pre><p>2. Install IPFS Cluster: You can download IPFS Cluster from its GitHub page and set it up on each node. 3. Connect Nodes: To link nodes, get the multi-address from Node 1 and join other nodes using:</p><pre>ipfs-cluster-ctl peers add &lt;Node1-multiaddr&gt;</pre><p>4. <strong>Pin Content Across the Cluster</strong>: Now you can pin files across all nodes with a single command:</p><pre>ipfs-cluster-ctl add &lt;file&gt;</pre><p>5. <strong>Manage Your Cluster</strong>: Use the CLI or REST API to check the status, add more files, or adjust configurations as needed.</p><h3><strong>Leveraging Pinata Cloud for IPFS</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*Wa0GWsHFQzE56T_Oac6NDQ.png" /></figure><p>For developers who want a more managed IPFS storage solution, Pinata Cloud offers a user-friendly option that eliminates the need to maintain IPFS infrastructure. With Pinata, you can pin files reliably without setting up your own IPFS nodes. Here’s what makes it appealing</p><p><strong>Fast Pinning Service:</strong> Pinata lets you pin content to IPFS efficiently, guaranteeing that your data remains accessible without node maintenance.<br><strong>Simple API Integration</strong>: Pinata’s API makes it easy to integrate IPFS storage into applications, making it especially useful for production environments.<br><strong>Enhanced Security</strong>: Data uploaded to Pinata is private by default, so you can control who accesses your data.<br><strong>Analytics and Monitoring:</strong> Pinata provides detailed insights into how your content is used and its availability, helping you track and manage IPFS content effectively.</p><h3><strong>Real-World IPFS Use Case</strong></h3><p>In my own experience using IPFS in projects Health Hive-a blockchain-based health and lab report management system-IPFS has been vital for ensuring decentralized data integrity. We initially implemented Dockerized cluster services to manage our IPFS nodes effectively. However, we faced challenges with resource consumption when running these containers in the cloud. To optimize our setup, we decided to move to Pinata Cloud, which provided us with the reliability and efficiency we needed for data availability and security across platforms.</p><p>This combination of IPFS and Pinata Cloud offers a robust way to manage IPFS content, making it an ideal setup for decentralized applications, data-sharing projects, or IoT solutions where redundancy and resilience are crucial.</p><p>For those interested in exploring my approach, I’ve created a GitHub repository that includes sample Dockerized cluster services. You can check it out <a href="https://github.com/herathua/IPFS-Avatar-Cluster">here</a>.</p><p>IPFS Cluster and Pinata Cloud bring much-needed enhancements to IPFS, each tailored to different user needs. With IPFS Cluster, developers have a powerful way to manage self-hosted, distributed storage. Meanwhile, Pinata Cloud provides a managed solution with security and scalability, perfect for applications that need reliable IPFS access with minimal infrastructure overhead. Whether you’re building dApps, decentralized data solutions, or simply need resilient storage, these tools expand what’s possible with IPFS and decentralized storage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=010195c3a4ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New UX/UI Design Trends]]></title>
            <link>https://medium.com/@uvherath/new-ux-ui-design-trends-6597ead35aec?source=rss-76e320af154a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6597ead35aec</guid>
            <dc:creator><![CDATA[UvinduHerath]]></dc:creator>
            <pubDate>Wed, 28 Aug 2024 10:27:55 GMT</pubDate>
            <atom:updated>2024-08-28T10:27:55.241Z</atom:updated>
            <content:encoded><![CDATA[<p>As the digital world continues to evolve, so do the trends in UX/UI design. Staying updated with these trends is crucial for creating user-friendly and visually appealing designs. In this post, we’ll explore 7 trends in the UX/UI landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wz3_MbYjw-zQdb4Bp4BYgQ.png" /></figure><h4>1. Minimalism with a Twist</h4><p>Minimalism continues to dominate the design world, but it’s no longer just about clean, simple lines.minimalism is getting a bold makeover with vibrant colors, asymmetrical layouts, and unique typography. Designers are pushing the boundaries of simplicity by adding unexpected elements that grab users’ attention while maintaining a clean aesthetic.</p><p><strong>Example:</strong> Look at apps like <a href="https://music.apple.com/us/browse">Apple Music</a> and websites like <a href="https://stripe.com/">Stripe</a>. They use minimalist designs but with splashes of bright colors and unconventional layouts that make the experience feel fresh and modern.</p><h4>2. Dark Mode Everywhere</h4><p>Dark mode has been a favorite feature for users, and it’s here to stay. Not only does it look sleek, but it also reduces eye strain, making it a practical choice for many. expect to see more apps and websites offering dark mode options as part of their design standard.</p><p><strong>Best Practices:</strong> Ensure your dark mode designs have enough contrast to maintain readability. Avoid using pure black; instead, opt for dark shades of gray to create a softer, more comfortable look.</p><h4>3. Microinteractions: Small but Powerful</h4><p>Microinteractions are the tiny animations and design elements that enhance user experience without overwhelming the interface. These subtle details, like a button changing color when hovered over or a slight vibration when an action is completed, make interfaces more intuitive and enjoyable.</p><p><strong>Why It Matters:</strong> Microinteractions guide users through the experience and provide feedback, making the interaction smoother and more engaging. For instance, Youtube,s “Subscribe” button animation is a simple micro interaction that adds a fun element to the user experience.</p><h4>4. 3D and Immersive Design</h4><p>3D elements are becoming more prominent in UX/UI design, adding depth and realism to the user experience. With advances in technology, integrating 3D graphics and immersive design elements is becoming more accessible and can make a design stand out.</p><p><strong>Future Perspective:</strong> As AR and VR technologies continue to develop, expect to see even more immersive experiences in apps and <a href="https://threejs.org/">websites</a>, where users can interact with 3D elements in real-time.</p><h4>5. Neomorphism: The New Skeuomorphism</h4><p>Neomorphism, a blend of skeuomorphism and flat design, is gaining traction. This trend uses soft shadows and highlights to create a semi-realistic, 3D effect, making buttons and cards appear as if they’re extruding from the background.</p><p><strong>Pros and Cons:</strong> While neomorphism looks visually appealing, it can sometimes compromise accessibility, especially for users with visual impairments. It’s essential to balance the aesthetic with usability.</p><h4>6. Voice User Interface (VUI)</h4><p>With the rise of voice-activated devices like Alexa and Siri, Voice User Interfaces (VUIs) are becoming more prevalent. Designing for voice requires a different approach, focusing on simplicity and clarity since users won’t be interacting with a visual interface.</p><p><strong>Design Considerations:</strong> When creating a VUI, prioritize clear prompts and responses. Ensure your design accommodates various accents and speech patterns to make the experience more inclusive.</p><h4>7. Accessibility and Inclusivity</h4><p>Designing with accessibility in mind is no longer optional — it’s a necessity. More companies are focusing on creating inclusive designs that cater to a wide range of users, including those with disabilities.</p><p><strong>Best Practices:</strong> Use high-contrast colors, readable fonts, and ensure your website is navigable by keyboard. Making your design accessible not only broadens your audience but also improves the overall user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6597ead35aec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>