<?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 Robin Kiplang&#39;at on Medium]]></title>
        <description><![CDATA[Stories by Robin Kiplang&#39;at on Medium]]></description>
        <link>https://medium.com/@RobinKiplangat?source=rss-6cd3a7df075b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rbH8p5RoIor3jeIvaSmNMw.jpeg</url>
            <title>Stories by Robin Kiplang&amp;#39;at on Medium</title>
            <link>https://medium.com/@RobinKiplangat?source=rss-6cd3a7df075b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 16:12:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@RobinKiplangat/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[We Can Achieve Climate-Resilient and Environmentally Sustainable Health Care — Here’s How]]></title>
            <link>https://medium.com/@RobinKiplangat/we-can-achieve-climate-resilient-and-environmentally-sustainable-health-care-heres-how-675781c9ebce?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/675781c9ebce</guid>
            <category><![CDATA[who]]></category>
            <category><![CDATA[climate-resilience]]></category>
            <category><![CDATA[sustainable-development]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 18:16:01 GMT</pubDate>
            <atom:updated>2026-09-21T10:06:30.447Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_BDyIrLE_tHzyEgNq_KdLQ.jpeg" /><figcaption>photo courtesy of @xahrashots</figcaption></figure><h3>🌍 <strong>A practical pathway for health leaders to protect continuity of care, reduce environmental harm, and build investable plans for change.</strong></h3><p>A health facility should be one of the safest places in a crisis. Yet floods can cut access roads, heat can overwhelm cooling systems, drought can interrupt water supplies, and power failures can shut down diagnostics, refrigeration, sterilization, and communications. At the same time, the health sector contributes an <a href="https://magazine.hms.harvard.edu/articles/confronting-health-cares-carbon-footprint">estimated 4.4–5.2% of global greenhouse gas emissions</a>.</p><p>This creates a dual responsibility. Health systems must prepare for the effects of climate change while reducing the environmental harm associated with delivering care.</p><p>These priorities are often handled separately. Emergency teams focus on resilience. Sustainability teams focus on emissions, waste, or energy efficiency. Procurement teams focus on cost and availability. Facility managers focus on keeping services running today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qUhCq-scbyshM25Ug_vjQ.png" /></figure><p>But the systems are connected. The energy source affects emissions and reliability. Procurement decisions affect both the carbon footprint and exposure to supply disruption. Water efficiency affects operating costs and drought preparedness. Workforce training affects whether infrastructure and emergency plans work when pressure rises.</p><p>The practical answer is not another isolated programme. It is an integrated pathway that moves from evidence to priorities, investment, implementation, and continuous learning.</p><h3>1. Begin with the dual mandate</h3><p>Climate resilience means that a health facility can anticipate, withstand, adapt to, and recover from climate-related shocks while continuing to provide essential care. Environmental sustainability means delivering that care while reducing harm across energy, water, waste, infrastructure, products, and supply chains.</p><p>A good intervention should advance both objectives whenever possible.</p><p>Consider a solar microgrid with battery storage. It can reduce dependence on fossil fuels and lower emissions. It can also maintain critical services when the grid fails. Water-efficiency measures can reduce resource use and costs while extending available supplies during drought. Sustainable procurement can lower the life-cycle impact of medical products while encouraging supplier diversification and reducing reliance on fragile supply routes.</p><p>The first shift, therefore, is conceptual: stop treating adaptation and mitigation as competing agendas. Ask instead, “How can this investment protect service continuity, reduce environmental impact, and improve value at the same time?”</p><h3>2. Assess climate risk before choosing solutions</h3><p>Facilities cannot manage risks they have not made visible. A climate vulnerability and risk assessment should establish:</p><ul><li>The hazards a facility faces now and under future climate conditions</li><li>The people, services, infrastructure, and supply chains exposed to those hazards</li><li>The sensitivity of critical operations</li><li>The facility’s ability to anticipate, absorb, respond, and recover</li></ul><p>This assessment should look beyond historical experience. A building expected to operate for decades must be designed for projected heat, rainfall, flooding, storms, drought, and other changing conditions — not only yesterday’s climate.</p><p>The process should also extend beyond the facility boundary. A hospital may remain structurally intact but still fail if roads are inaccessible, staff cannot reach work, communications are disrupted, medicines do not arrive, or surrounding communities lose water and shelter.</p><p>The output should not be a long report that sits on a shelf. It should be a prioritized risk register showing which services are most exposed, what failure would mean for patients, which communities would be affected most, and what action is required.</p><h3>3. Measure the environmental footprint — including the supply chain</h3><p>The second diagnostic task is to understand where environmental harm occurs.</p><p>For greenhouse gas emissions, this means examining:</p><ul><li><strong>Scope 1:</strong> direct emissions from sources the facility owns or controls, such as boilers, generators, and vehicles</li><li><strong>Scope 2:</strong> indirect emissions from purchased electricity, heating, or cooling</li><li><strong>Scope 3:</strong> emissions across the wider value chain, including medicines, medical devices, construction, food, transport, waste, and other purchased goods and services</li></ul><p>Scope 3 is especially important. Evidence from the United States suggests that value-chain emissions account for roughly 82–83% of the health sector’s footprint. Comparable evidence remains limited in many low- and middle-income countries, but the lesson is clear: a facility cannot understand its total impact by measuring electricity and fuel alone.</p><p>Life-cycle assessment can help compare products and technologies from raw-material extraction through manufacture, transport, use, and disposal. This is useful when deciding between single-use and reusable products, evaluating medical equipment, or setting procurement standards.</p><p>Start with available data rather than waiting for perfect information. Establish a baseline, record assumptions, identify gaps, and improve the evidence over time. The purpose of measurement is better decisions — not measurement for its own sake.</p><h3>4. Organize action across four connected domains</h3><p>Once climate risk and environmental impact are visible, facilities can organize interventions across four practical areas.</p><h3>Health workforce</h3><p>Infrastructure does not create resilience by itself. Staff must understand local climate risks, know how to act during disruptions, and have the authority and resources to improve everyday practice.</p><p>Useful actions include climate-health training, scenario exercises, clear emergency protocols, staff protection during extreme events, and practical guidance on energy, waste, water, and procurement. Training should be linked to responsibilities and tested through drills — not delivered as a one-time awareness session.</p><h3>Water, sanitation, hygiene, and waste</h3><p>Reliable water and sanitation are fundamental to infection prevention and safe care. Facilities should assess exposure to drought, floods, contamination, and service interruptions; identify backup sources; protect storage and treatment systems; and develop climate-resilient water safety plans.</p><p>Waste systems also require attention. Segregation, secure storage, safe treatment, wastewater controls, and responsible pharmaceutical disposal protect workers, patients, communities, and ecosystems. The goal is to reduce waste while ensuring that hazardous materials are managed safely.</p><h3>Energy</h3><p>Energy interventions offer some of the strongest links between resilience, sustainability, and financial performance.</p><p>Facilities can begin by reducing unnecessary consumption through efficient lighting, cooling, ventilation, equipment management, and building improvements. They can then examine renewable generation, storage, and microgrids capable of maintaining critical loads during outages. Backup equipment should be protected from hazards — for example, elevated in flood-prone locations and secured in areas exposed to strong winds.</p><p>The key question is not simply, “Do we have a generator?” It is, “Which services must continue, for how long, under which scenarios, and what energy system will sustain them?”</p><h3>Infrastructure, technologies, products, and supply chains</h3><p>Buildings should withstand projected hazards over their expected life. This may require improved drainage, passive cooling, flood barriers, stronger building standards, protected equipment, and the ability to operate independently for several days.</p><p>Supply chains should be mapped to reveal critical dependencies, single points of failure, and high-impact products. Procurement criteria can then include resilience, repairability, emissions, waste, life-cycle cost, supplier transparency, and alternative supply options — not purchase price alone.</p><h3>5. Turn assessment into an investable plan</h3><p>Many assessments identify problems without creating a credible route to implementation. To avoid this, every priority intervention should be translated into an investment case.</p><p>For each proposed action, define:</p><ul><li>The climate or operational risk it addresses</li><li>The environmental benefit it creates</li><li>The services and communities protected</li><li>The capital and operating costs</li><li>Expected savings or avoided losses</li><li>The responsible team and delivery partners</li><li>The timeline, indicators, and financing pathway</li></ul><p>Financial analysis should include more than immediate payback. It should consider avoided service disruption, infrastructure damage, emergency expenditure, fuel-price exposure, supply shortages, health impacts, and reputational risk. Return-on-sustainability-investment approaches can help express these wider benefits in terms that finance teams and decision-makers can use.</p><p>Some actions can be funded through operational savings. Others will require public budgets, concessional finance, grants, climate funds, or partnerships. A standardized assessment linked to a prioritized investment portfolio makes it easier for ministries, donors, and financing institutions to understand what is needed and why.</p><h3>6. Build a continuous improvement system</h3><p>Climate resilience and environmental sustainability are not projects with a fixed endpoint. Risks, technology, costs, infrastructure, and community needs will continue to change.</p><p>Facilities need a repeatable cycle:</p><ol><li>Assess climate vulnerability and environmental impact.</li><li>Prioritize risks and high-impact opportunities.</li><li>Develop integrated, costed interventions.</li><li>Secure financing and assign accountability.</li><li>Implement and monitor results.</li><li>Review lessons and update the plan.</li></ol><p>Digital tools can support this cycle by standardizing assessments, visualizing risk and emissions, tracking implementation, identifying supply-chain hotspots, and connecting facilities to technical and financial partners. But technology should strengthen decision-making — not replace local knowledge, professional judgment, or community participation.</p><h3>What we can do now</h3><p>A transformation strategy may take time, but practical action can begin immediately.</p><p>In the next 90 days, a health facility or system can:</p><ul><li>Form a small cross-functional team covering clinical services, facilities, WASH, procurement, finance, and emergency preparedness</li><li>Identify the three climate hazards most likely to disrupt essential care</li><li>Map the services, infrastructure, staff, communities, and suppliers most exposed</li><li>Establish an initial energy, water, waste, and emissions baseline</li><li>Select one integrated intervention with clear resilience, sustainability, and financial benefits</li><li>Prepare a costed implementation and financing plan</li><li>Define indicators and a date for reviewing progress</li></ul><p>The aim is not to solve everything at once. It is to establish a disciplined system that turns complexity into a sequence of decisions.</p><h3>A practical and achievable transition</h3><p>Climate-resilient and environmentally sustainable health care is achievable. The knowledge already exists across climate-risk assessment, greenhouse gas accounting, life-cycle assessment, facility management, public health, procurement, and sustainable finance. The challenge is bringing these disciplines together and converting them into coordinated action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cF2KnNzXqXpupsemCV35Wg.png" /></figure><p>When health systems follow this pathway, climate action becomes more than an environmental commitment. It becomes a practical strategy for protecting patients, maintaining essential services, reducing costs and pollution, strengthening equity, and preparing health facilities for an increasingly uncertain future.</p><h4><strong>An invitation for feedback</strong></h4><p>I am seeking feedback across different facility and country contexts.</p><p>Where should it be tested first — and what evidence would demonstrate meaningful success in your setting?</p><p><em>This practitioner article adapts the framework developed in A Framework for Systemic Transformation: Achieving Climate-Resilient and Environmentally Sustainable Health Care Facilities :</em><a href="https://doi.org/10.13140/RG.2.2.18132.56965/1">https://doi.org/10.13140/RG.2.2.18132.56965/1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=675781c9ebce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Politics Becomes a Weapon: How Political Actors Fuel Online Violence Against Women…]]></title>
            <link>https://medium.com/fourbic/when-politics-becomes-a-weapon-how-political-actors-fuel-online-violence-against-women-51ba385e44f5?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/51ba385e44f5</guid>
            <category><![CDATA[democracy]]></category>
            <category><![CDATA[disinformation]]></category>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[gender]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 10:16:16 GMT</pubDate>
            <atom:updated>2024-11-18T10:16:16.313Z</atom:updated>
            <content:encoded><![CDATA[<h3>When Politics Becomes a Weapon: How Political Actors Fuel Online Violence Against Women Journalists</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ug7P6D5hPQ9tgpgWg4aXqg.png" /></figure><p>The internet, once hailed as a democratizing force, has become a breeding ground for harassment and abuse, particularly for women journalists who dare to hold the powerful accountable. While online violence can come from various sources, a disturbing pattern emerges: <strong>political actors, including politicians, party officials, and extremist groups, actively contribute to and exploit this toxic online environment to silence critical voices and manipulate public discourse.</strong></p><p>Here is a short podcast created by NotebookLM:</p><p><a href="https://creators.spotify.com/pod/show/fourbic/episodes/Unmasking-Gendered-Disinformation-A-Digital-Threat-to-Womens-Voices-e2r3gl0">Unmasking Gendered Disinformation: A Digital Threat to Women&#39;s Voices by CTRL + AI + DATA</a></p><p>Political figures, often holding high office, use their platforms to incite and amplify attacks against women journalists. This isn’t just about harsh criticism; it involves <strong>deliberate attempts to discredit, intimidate, and silence these journalists, using a mix of disinformation, misogyny, and personal attacks.</strong></p><p>Here are a few examples of how this plays out:</p><ul><li><strong>Direct Attacks and Disinformation:</strong> In Brazil, President Bolsonaro and his son spread lies, claiming a journalist exchanged sexual favors for information. Such accusations not only aim to damage a journalist’s reputation but also sow seeds of doubt about the integrity of their work in the public’s mind.</li><li><strong>Public Shaming and Abuse:</strong> A UK government minister shared a journalist’s private emails, labeling her “creepy and bizarre,” exposing her to a torrent of online abuse. This tactic weaponizes the power imbalance between a government official and a journalist, effectively turning a politician’s followers into a mob.</li><li><strong>Exploiting Political Divisions:</strong> In countries like Pakistan, individuals claiming to be affiliated with the ruling party use accusations of “fake news” and anti-national sentiment to target women journalists who criticize the government. This taps into existing political tensions to legitimize attacks and silence dissent.</li></ul><p>Extremist groups, particularly those on the far-right, add another layer to this problem. They use highly organized online campaigns, often laced with misogyny and racism, to harass and intimidate women journalists who report on their activities.</p><p><strong>The consequences of this politically-driven online violence are profound:</strong></p><ul><li><strong>Erosion of Media Freedom:</strong> When journalists fear for their safety and reputation, they are less likely to report on sensitive topics, especially those that involve powerful individuals or groups. This chilling effect undermines media freedom and restricts the public’s access to vital information.</li><li><strong>Undermining Trust in Journalism:</strong> Constant attacks and accusations of “fake news” create an environment where it becomes difficult to distinguish truth from falsehood. This erosion of trust in legitimate journalism weakens democratic discourse and allows misinformation to flourish.</li><li><strong>Diminished Democratic Participation:</strong> The toxic online environment, fueled by political actors, discourages women from participating in public debate, whether as journalists or citizens. This limits diverse perspectives and weakens the foundations of a healthy democracy.</li></ul><p>This is a stark reminder that online violence against women journalists isn’t just a personal problem; it’s a <strong>direct assault on democratic values</strong>. The tactics used by political actors, often in conjunction with partisan media and extremist groups, highlight the need for a multi-pronged response that involves holding these actors accountable, promoting media literacy, and developing better platform safeguards to protect journalists and ensure the free flow of information.</p><p><em>Originally published at </em><a href="https://fourbic.notion.site/When-Politics-Becomes-a-Weapon-How-Political-Actors-Fuel-Online-Violence-Against-Women-Journalists-1422f4154da7806f9a3fdb8fcd867a37"><em>https://fourbic.notion.site</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ba385e44f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourbic/when-politics-becomes-a-weapon-how-political-actors-fuel-online-violence-against-women-51ba385e44f5">When Politics Becomes a Weapon: How Political Actors Fuel Online Violence Against Women…</a> was originally published in <a href="https://medium.com/fourbic">fourbic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stay Safe Online: Spot and Avoid Digital Scams]]></title>
            <link>https://medium.com/fourbic/stay-safe-online-spot-and-avoid-digital-scams-968242bd77c4?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/968242bd77c4</guid>
            <category><![CDATA[safety]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[online-safety]]></category>
            <category><![CDATA[scam-awareness]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Thu, 29 Aug 2024 09:35:55 GMT</pubDate>
            <atom:updated>2024-08-29T09:37:46.405Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BHc7hkmxT7g8_6MJ" /><figcaption>Photo by <a href="https://unsplash.com/@esen_aza?utm_source=medium&amp;utm_medium=referral">Azamat E</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s digital age, it’s crucial to stay vigilant when it comes to unexpected messages or links, especially in spaces like family WhatsApp groups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBHF848TP6oEzcMhR7saEQ.png" /></figure><p>Recently, a message surfaced in one such group, promoting a “<strong>Canada Visa Lottery 2024</strong>” with a link to apply. While it might seem tempting, a closer examination of this link revealed several red flags:</p><h4>1.Multiple Redirects:</h4><p>The link undergoes several URL changes before reaching its final destination, which is a common tactic used by scammers to obscure the true nature of the website.</p><h4>2. Unrelated Content:</h4><p>The final webpage has nothing to do with Canadian immigration, raising immediate suspicion about its legitimacy.</p><h4>3. Dubious Ownership:</h4><p>The site is registered to an individual in Nigeria, far from any official Canadian entity, further indicating a potential scam.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*6StEgeEJOdE4GSeY-L6tag.png" /><figcaption>These characteristics are often associated with phishing attempts or fraudulent schemes.</figcaption></figure><p>To protect yourself and your loved ones from such threats, consider the following precautions:</p><h4>Skepticism is Key:</h4><p>Be wary of unsolicited offers, particularly those that seem too good to be true, like visa lotteries or immigration opportunities.</p><h4>Avoid Clicking Unknown Links:</h4><p>If you’re unsure about the source, it’s better to err on the side of caution.</p><h4>Stick to Official Sources:</h4><p>Always verify immigration or other official information directly from government websites.</p><h4>Guard Your Information:</h4><p>Be cautious if a website requests personal or financial details, as this could be an attempt to steal sensitive information.</p><p>In a world where online scams are increasingly sophisticated, staying informed and cautious is your best defense. If something feels off, trust your instincts and avoid engaging with suspicious content. Your vigilance can help safeguard your personal information and prevent potential harm.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=968242bd77c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourbic/stay-safe-online-spot-and-avoid-digital-scams-968242bd77c4">Stay Safe Online: Spot and Avoid Digital Scams</a> was originally published in <a href="https://medium.com/fourbic">fourbic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decomposition.]]></title>
            <link>https://medium.com/@RobinKiplangat/decomposition-adbe9f2b7ad?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/adbe9f2b7ad</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Fri, 17 May 2024 19:01:30 GMT</pubDate>
            <atom:updated>2024-05-17T19:01:30.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YuhTyxr9P5_WmErf" /><figcaption>Photo by <a href="https://unsplash.com/@lunarts?utm_source=medium&amp;utm_medium=referral">Volodymyr Hryshchenko</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the world of data science, web scraping is a common method for gathering data from the internet. However, it can be a complex task, especially for those new to programming. This is where decomposition comes into play. It’s a method that helps you understand the overall structure and logic of a program by presenting it in a simplified, step-by-step manner, making it more accessible to both techies and non-techies alike.</p><p>In this post, we’ll walk you through an example of how decomposition can be used to scrape data from a website.</p><h4>What is <strong>decomposition</strong>.?</h4><p>Decomposition refers to the process of breaking down a large, complex tasks into smaller, more manageable subtasks. This approach simplifies the problem-solving process, making it easier to understand, design, and implement solutions. It involves creating a detailed plan, executing each step individually, and constantly reviewing and adjusting the plan as needed.</p><p>This method is particularly useful in programming tasks, as it allows for better error handling and debugging.</p><h4>The Task at Hand</h4><p>Our goal is to scrape data from pages on a website. We want to extract information such as the <strong>title</strong>, <strong>description</strong>, <strong>contact information</strong>, and <strong>images</strong> of each page.</p><h4>Step 1: Planning</h4><p>The first step is to create a detailed plan. For our task, the plan might look something like this:</p><p>a. <strong>Fetch</strong> the HTML content of the webpage.</p><p>b. <strong>Parse</strong> the HTML content to extract the required data.</p><p>c. <strong>Save</strong> the extracted data in a structured format.</p><p>d. <strong>Download</strong> the image of the initiative.</p><h4>Step 2: Fetching the Webpage Content</h4><p>We’ll use the requests library in Python to fetch the HTML content of the webpage. Here’s a simple function that does this:</p><pre>import requests<br><br>def fetch_page_content(url):<br>  response = requests.get(url)<br>return response.text</pre><h4>Step 3: Parsing the HTML Content</h4><p>Next, we’ll use the BeautifulSoup library to parse the HTML content and extract the required data. We’ll create a function called extract_data that takes the HTML content as input and returns a dictionary with the extracted data.</p><pre>from bs4 import BeautifulSoup<br><br>def extract_data(html_content):<br>  soup = BeautifulSoup(html_content, &#39;html.parser&#39;)<br>  # Extract the data…<br>return data</pre><h4>Step 4: Saving the Data</h4><p>Once we have the data, we can save it in a structured format. For simplicity, we’ll just print the data for now.</p><pre>for url in urls:<br>  html_content = fetch_page_content(url)<br>  data = extract_data(html_content)<br>print(data)</pre><h4>Step 5: Downloading the images</h4><p>Finally, we’ll create a function to download the image of each initiative. We’ll use the requests library again to fetch the image, and then save it to a file.</p><pre>def download_image(url, title):<br>  response = requests.get(url)<br>  with open(f&#39;{title}.png&#39;, &#39;wb&#39;) as f:<br>    f.write(response.content)</pre><h4>So Now . .</h4><p>And that’s it! With decomposition, we’ve broken down a complex task into manageable steps, making it easier to understand and execute. This method is not only useful for web scraping, but for any programming task. So next time you’re faced with a complex task, give it a try!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adbe9f2b7ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the Information Maze: Technology’s Role in Countering Disinformation in Africa]]></title>
            <link>https://medium.com/fourbic/navigating-the-information-maze-in-countering-disinfo-in-africa-6a5dda50e69e?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a5dda50e69e</guid>
            <category><![CDATA[disinformation]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[infowars]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Wed, 15 May 2024 15:15:55 GMT</pubDate>
            <atom:updated>2024-05-16T12:32:15.678Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*wOmUHQpFxCYw-KJgWr5AaQ.png" /></figure><p>In the dynamic landscape of Africa, the shadow of disinformation is vast and ever-growing. In recent years, the continent has experienced a noticeable uptick in the spread of misinformation, fueled by the rapid digitization and increased internet access. Amidst this rise, technology emerges as a beacon of hope, offering innovative solutions to tackle the proliferation of disinformation and preserve the fabric of truthful communication.</p><p><strong>The Surge of Disinformation in Africa</strong></p><p>The statistics around disinformation in Africa paint a troubling picture. Campaigns aimed at spreading falsehoods have seen a nearly fourfold increase, eroding trust in institutions and shaping political narratives. Such deliberate misinformation not only distorts public discourse but also foments social unrest, often tipping the scales during crucial events like elections and sparking divisive debates that can lead to real-world consequences.</p><p><strong>Technology’s Intervention in the Fight Against Disinformation</strong></p><p>Enter technology, with AI at the forefront, providing a new arsenal in the fight against fake news. Algorithms designed to pinpoint patterns of falsity are being deployed across platforms to prevent the viral spread of lies. These digital defenders serve as gatekeepers, working tirelessly to authenticate information and ensure that what reaches the public sphere is verified and reliable.</p><p><strong>The Role of AI and Fact-Checking</strong></p><p>AI’s ability to process vast swathes of data is invaluable; however, it is the collaboration with human fact-checkers that truly fortifies the truth. This alliance allows for the efficient handling of suspicious content while maintaining the necessary human touch to decipher context and cultural subtleties. Success stories are emerging, showcasing interventions where this partnership has thwarted disinformation effectively.</p><p><strong>Education and Media Literacy Programs</strong></p><p>Education stands as the cornerstone in building a disinformation-resilient society. Across Africa, media literacy programs are gaining momentum, aiming to arm individuals with the skills needed to discern fact from fiction. This societal enlightenment is crucial in not just countering but preemptively striking against the spread of misinformation, fostering a more critically engaged and informed public.</p><p><strong>Challenges and Opportunities</strong></p><p>As promising as these technological solutions are, they bring challenges. The specter of state-sponsored disinformation looms large, as do the political agendas that drive much of the misinformation. Moreover, the integration of these technologies poses questions around surveillance and privacy, concerns that are increasingly salient as we progress deeper into the information age.</p><p><strong>What Next?</strong></p><p>Technological interventions in dispelling disinformation in Africa showcase complex challenges and achievements. As we stand at this junction, it is clear that a path forward necessitates a symphony of technology, education, and policy-all harmonizing to guide us through the information maze. The journey ahead is collective, requiring every stakeholder’s engagement to turn back the tide of disinformation and safeguard the continent’s information integrity.</p><p><em>Originally published at </em><a href="https://insights.fourbic.com/post/navigating-the-information-maze-in-countering-disinformation-in-africa"><em>https://insights.fourbic.com</em></a><em> on May 15, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a5dda50e69e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourbic/navigating-the-information-maze-in-countering-disinfo-in-africa-6a5dda50e69e">Navigating the Information Maze: Technology’s Role in Countering Disinformation in Africa</a> was originally published in <a href="https://medium.com/fourbic">fourbic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Every Startup Needs This Guide ! : Here is Your Equity Guide in the African Landscape]]></title>
            <link>https://medium.com/@RobinKiplangat/navigating-startup-equity-in-the-african-landscape-a977b9fd705f?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a977b9fd705f</guid>
            <category><![CDATA[equity]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[fundraising]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 06:48:08 GMT</pubDate>
            <atom:updated>2024-02-09T07:56:20.725Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmLBbPRQiP3PpQKBAvKkeQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/brown-bread-on-white-table-6608542/">Geraud pfeiffer</a></figcaption></figure><h4>Founding a startup? This checklist guides you through some of the key aspects about equity while keeping things simple</h4><p>Founding a startup in Africa, particularly in Kenya, is an exciting yet challenging endeavour. One of the most critical aspects to navigate is equity: ownership, allocation, and structuring. This guide delves into the complexities of startup equity in the African context, offering insights and practical tips tailored to the Kenyan landscape.</p><p><strong>Understanding the African Startup Ecosystem:</strong></p><p><strong>Funding landscape:</strong> While the African startup ecosystem is rapidly evolving, access to funding remains limited compared to other regions. This can influence your approach to equity allocation and fundraising strategies.</p><p><strong>Legal and regulatory environment:</strong> Different countries have varying legal frameworks governing startups and equity. Familiarize yourself with regulations and seek legal counsel for compliance.</p><p><strong>Cultural considerations:</strong> Transparency, trust, and long-term relationships are often valued in African business cultures. Consider these factors when structuring your equity agreements.</p><h3><strong>Key Equity Considerations for Startups:</strong></h3><h4><strong>1. Founding Team:</strong></h4><ul><li><strong>Who’s in?</strong> List all founders and their roles (CEO, CTO, etc.)</li><li><strong>What’s fair?</strong> Allocate equity based on contributions, risk, and market benchmarks.</li><li><strong>Lock it in:</strong> Draft a founders’ agreement outlining equity percentages, vesting schedules (ownership gradually increases over time), and dispute resolution.</li></ul><h4><strong>2. Employee Equity:</strong></h4><ul><li><strong>Attract top talent?</strong> Consider offering stock options or sweat equity (equity earned through work).</li><li><strong>Keep them committed:</strong> Implement vesting schedules with cliff periods (a minimum time before ownership starts) and performance-based triggers.</li><li><strong>Stay compliant:</strong> There are specific rules for employee stock ownership plans (ESOPs). Talk to a lawyer!</li></ul><h4><strong>3. Investors:</strong></h4><ul><li><strong>What terms work?</strong> Understand common deal structures (e.g., convertible notes, SAFE agreements) and investor expectations.</li><li><strong>Valuation matters:</strong> Get a professional valuation to ensure fair terms for both you and investors.</li><li><strong>Protect yourself:</strong> Anti-dilution provisions help prevent your ownership from being watered down by future funding rounds.</li></ul><h4><strong>4. Advisors &amp; Consultants:</strong></h4><ul><li><strong>Incentivize them?</strong> Equity grants can be attractive, but clearly define their roles, responsibilities, and vesting schedules.</li><li><strong>Keep it clear:</strong> Formalize agreements outlining their services, compensation, and intellectual property rights.</li></ul><h4><strong>5. Your Cap Table:</strong></h4><ul><li><strong>Think simple:</strong> Start with a basic cap table showing ownership percentages and different share classes (if applicable).</li><li><strong>Grow with you:</strong> As your startup evolves, refine your cap table with the help of legal and financial professionals.</li></ul><h4><strong>Bonus Tips:</strong></h4><ul><li><strong>Seek legal advice:</strong> A lawyer specialising in startup law is your best friend.</li><li><strong>Network with other founders:</strong> Learn from their experiences and gain valuable insights.</li><li><strong>Stay informed:</strong> Keep up-to-date with legal and regulatory changes.</li></ul><p><strong>Remember:</strong> This guide is a starting point. Consult professionals for tailored advice. With the right approach, you can navigate equity and build a thriving startup!</p><p><strong>Sample Equity Breakdown (Example Only):</strong></p><ul><li><strong>Founders:</strong> 60% (CEO: 30%, CTO: 20%, CMO: 10%)</li><li><strong>Employees:</strong> 15% (vested over 4 years with a 1-year cliff)</li><li><strong>Investors:</strong> 20% (convertible note with a 20% discount)</li><li><strong>Advisors:</strong> 5% (vested over 2 years)</li></ul><p><strong>Keep it simple, stay informed, and get expert help when needed. Good luck!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a977b9fd705f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating building AI products: A Step-by-Step Guide]]></title>
            <link>https://medium.com/fourbic/navigating-lab-reports-with-ai-a-step-by-step-guide-8e4bd0691ceb?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e4bd0691ceb</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[digital-health]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-in-healthcare]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Tue, 26 Sep 2023 11:24:15 GMT</pubDate>
            <atom:updated>2023-09-26T18:51:02.092Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j3XysQ5ct0CcKbrv" /><figcaption>Photo by <a href="https://unsplash.com/@siderius_creativ?utm_source=medium&amp;utm_medium=referral">Gerard Siderius</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Introduction</h4><p>Imagine having to go through a stack of lab reports, each filled with complex medical jargon and lengthy explanations. It’s a daunting task, isn’t it? But what if we could use Artificial Intelligence (AI) to simplify this process?</p><p>In this blog post, I’ll guide you on how to create a tool that uses AI to read and summarize lab reports. This tool uses two key components: <a href="https://python.langchain.com/docs/get_started/introduction">Langchain</a> and <a href="https://platform.openai.com/overview">OpenAI</a>.</p><h4>What are Langchain and OpenAI?</h4><p>Before we dive into the how-to, let’s understand what Langchain and OpenAI are. Langchain is a library that allows us to combine different AI models to perform complex tasks. Think of Langchain as a master chef who knows how to combine different ingredients (in our case, AI models) to create a delicious dish (a summary in our case 😋)</p><p>OpenAI, on the other hand, is an AI research lab that provides powerful AI models. We use one of their models, GPT-3.5-turbo, to process the lab reports and generate a summary.</p><h4>The Magic Behind the Scenes</h4><p>Our tool consists of two parts: a <em>backend script</em> that processes the lab reports and a <em>frontend script</em> that provides a user interface. The backend script reads the text from a PDF file, identifies the key points using OpenAI, and then creates a summary using Langchain. The frontend script provides a user-friendly interface where you can upload your lab report, and displays the key points and the summary of the report.</p><h4>Building the AI Tool: A Step-by-Step Guide</h4><p>Now that we’ve set the stage, let’s get our hands dirty and start building this tool.</p><h4>A. Backend Script</h4><ol><li><strong>Install the necessary libraries</strong>: First, we need to install some libraries. If you’ve ever baked a cake, think of this step as gathering your ingredients. You can install the libraries using pip, which is a package manager for Python.</li></ol><pre>git clone https://github.com/robinkiplangat/LabScanner.git<br>cd LabScanner<br>pip install -r requirements.txt</pre><p><strong>2. Get your OpenAI API key</strong>: To use OpenAI, you need an API key. You can get this key from the OpenAI website after creating an account.</p><p><strong>3. Run the backend script</strong>: Once you have your ingredients ready, it’s time to start baking! You can run the backend script using Python.</p><pre>python3 scripts/reports_frontend.py</pre><h4>B. Frontend Script</h4><ol><li>Install <a href="https://streamlit.io/">Streamlit</a>: The frontend script is a Streamlit application. Streamlit is a library that allows you to create web applications using Python. You can install it using pip.</li><li>Run the frontend script: Once you have installed Streamlit, you can run the frontend script. This will open a new tab in your web browser with the application.</li></ol><pre>streamlit run scripts/reports_frontend.py</pre><p>To use the application, upload a lab report, enter your OpenAI API key, and click Submit.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FF1KWrqLwJ-8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DF1KWrqLwJ-8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FF1KWrqLwJ-8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4542fd640f6ac2c8db5b164ba40d3b4/href">https://medium.com/media/b4542fd640f6ac2c8db5b164ba40d3b4/href</a></iframe><p>The application will then display the key points and the summary of the report. All the development code and setup instructions is available on <a href="https://github.com/robinkiplangat/LabScanner/blob/main/README.md#labscanner">GitHub Here</a>. A demo of the app runs on <a href="https://umzimalabs.streamlit.app/"><strong>umzimalabs</strong>.streamlit.app</a></p><h4>Conclusion</h4><p>And there you have it! You’ve just built an AI tool that can summarize lab reports. As you can see, building AI tools can be straightforward when you have powerful tools like Langchain and OpenAI. So, the next time you’re faced with a stack of reports, let AI do the heavy lifting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e4bd0691ceb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourbic/navigating-lab-reports-with-ai-a-step-by-step-guide-8e4bd0691ceb">Navigating building AI products: A Step-by-Step Guide</a> was originally published in <a href="https://medium.com/fourbic">fourbic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up a Self Hosted Outline VPN with Amazon LightSail in 5 steps.]]></title>
            <link>https://medium.com/fourbic/how-to-set-up-a-self-hosted-outline-vpn-with-amazon-lightsail-in-5-steps-593e69406e3f?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/593e69406e3f</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[outline]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[vpn]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Fri, 14 Jul 2023 19:12:47 GMT</pubDate>
            <atom:updated>2023-07-14T19:12:47.131Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j7lA1NKyTiNadPtf8-g-1w.jpeg" /><figcaption>LightSail Robot</figcaption></figure><p><a href="https://getoutline.org/">Outline</a>, a free and open-source VPN service developed by Google, is renowned for its user-friendly design. It can be conveniently established on diverse platforms, and this blog will specifically guide you through the process of setting up a self-hosted Outline VPN using Amazon LightSail.</p><h4>Prerequisites</h4><p>Before diving into the procedure, ensure you have the basics:</p><ul><li>An active Amazon LightSail account.</li><li>A computer equipped with a web browser.</li></ul><h4>Step 1: Set Up the Outline Manager</h4><p>Kick-start your setup by downloading and installing the <a href="https://getoutline.org/get-started/#step-1">Outline Manager</a> desktop application. This is your control centre for establishing and managing your server.</p><p>Post-setup, click on the “<em>Add Server</em>” option to begin the process of creating your server , Then select the option for configuring the application on an AWS Linux server.</p><h4>Step 2: Incorporate Outline on Your Amazon LightSail Instance</h4><p>Once the instance is created, the next step would be integrating the Outline server with your instance.</p><p>For this:</p><ol><li>Head over to the <a href="https://lightsail.aws.amazon.com/">Amazon Lightsail</a> instances screen.</li><li>Select the instance you wish to host Outline on and switch to the ‘Networking’ tab.</li><li>In the ‘Firewall’ section, click ‘Add Rule’ and ;<br>- Assign ‘All Protocols’ a value of ‘All TCP+UDP’.<br>- Save the changes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVhnVpxJuIRP7obJ2nqwLA.png" /><figcaption>Steps to setup Your Amazon LightSail Instance</figcaption></figure><h4>Step 3: Establish Connection to Your Instance</h4><p>Choose your preferred method to connect to your instance; it could either be through your browser or an SSH client that aligns with your requirements.</p><p>Next, connect to your server and execute the following command that can be traced back to the setup instructions offered in the manager:</p><pre>`sudo bash -c &quot;$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)&quot;`<br></pre><p>Follow the subsequent instructions to successfully install Outline on your instance.</p><h4>Step 4: Configuring the Outline Server</h4><p>With Outline now a part of your instance, it’s time to configure it as per your requirements. To accomplish this, paste the installation output from your SSH session onto the manager and click ‘Done’ to finalize the configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OGiJ9mB9gVevQxow3BKdWw.png" /><figcaption>The code output includes the curly parenthesis {} as well.</figcaption></figure><h4>Step 5: Adding and Connecting Keys</h4><p>With the server now configured, the next move involves adding keys and establishing a connection to the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ET0qffC2tMkaMynCzml9cg.png" /></figure><p>Open the Outline application on your computer and provide the name and address of your server for this process. After successfully connecting to your server, you’ll find yourself with unhindered access to the internet through it.</p><h4>Conclusion</h4><p>This guide offers a comprehensive panorama of the process to set up a self-hosted Outline VPN with Amazon LightSail. Remember, this is a basic outline, and for more detailed understanding and troubleshooting, always refer to the <a href="https://getoutline.org/get-started/">Outline documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=593e69406e3f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourbic/how-to-set-up-a-self-hosted-outline-vpn-with-amazon-lightsail-in-5-steps-593e69406e3f">How to Set Up a Self Hosted Outline VPN with Amazon LightSail in 5 steps.</a> was originally published in <a href="https://medium.com/fourbic">fourbic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating Data Privacy in the AI Age: A User-Centric Approach]]></title>
            <link>https://medium.com/fourbic/navigating-data-privacy-in-the-ai-age-a-user-centric-approach-211016ba8f3?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/211016ba8f3</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[data-protection]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 10:32:37 GMT</pubDate>
            <atom:updated>2023-01-30T13:56:58.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*TNti8jXIK739go_3xBQPuQ.jpeg" /><figcaption>Image by <a href="https://flic.kr/p/ekSBGJ">Seema Rupani Shah</a>.</figcaption></figure><p>In today’s digital age, data is a valuable asset that organizations rely on to drive growth and innovation. However, with the increasing use of artificial intelligence (AI) and data analytics, comes the need to balance the benefits of these technologies with the need to protect user privacy.</p><p>One of the biggest challenges in this area is navigating the complex legal and regulatory landscape around data privacy. The General Data Protection Regulation (<a href="https://gdpr-info.eu/"><strong>GDPR</strong></a>) in Europe, the California Consumer Privacy Act (<a href="https://oag.ca.gov/privacy/ccpa"><strong>CCPA</strong></a>) in the United States and the <a href="https://www.odpc.go.ke/dpa-act/"><strong>Data Protection Act</strong></a> in Kenya are just a couple of examples of the many laws and regulations that organizations must comply with in order to protect user data.</p><p>However, compliance with these laws is just the first step. Organizations must also take a proactive approach to data privacy by implementing technical and organizational measures that protect user data.<br> One solution to these challenges is to adopt a <strong>user-centric approach</strong> to data privacy. This means putting the needs and preferences of the user at the center of all data-related decisions. For example, organizations can give users the ability to control how their data is used and shared, and provide clear and transparent explanations of how their data is being used.</p><blockquote>“This means putting the needs and preferences of the user at the center of all data-related decisions”</blockquote><p>Another solution is to use techniques such as <strong>data anonymization</strong> and differential privacy. These techniques help to protect user privacy by removing personal identifying information from data sets and adding noise to data to make it more difficult to re-identify individuals.</p><p>Here is a 10 steps to guide you in unlocking the potential of data balance privacy concerns.</p><h4>1. Understand the importance of data privacy:</h4><p>Before collecting, processing or storing any data, it’s essential to understand the importance of user privacy and the legal requirements surrounding data protection.</p><h4>2. Identify the types of data you collect:</h4><p>Determine what types of data you collect, process, and store, and classify them as personal identifiable information (PII) or non-PII. PII data such as name, address, and date of birth require more stringent protection measures.</p><h4>3. Implement data minimization practices:</h4><p>Collect only the data you need for your specific use case and dispose of it when it’s no longer necessary.</p><h4>4. Implement data security measures:</h4><p>Use robust data encryption techniques and access controls to protect data from unauthorized access, and regularly update software and systems to prevent data breaches.</p><h4>5. Be transparent with your users:</h4><p>Be open and transparent with your users about what data you collect, why you collect it, and how you use it. Allow users to opt-out of data collection or delete their data if they wish.</p><h4>6. Conduct regular data protection impact assessments:</h4><p>Regularly assess the risks associated with your data processing activities and implement appropriate measures to mitigate them.</p><h4>7. Implement an incident response plan:</h4><p>Prepare for data breaches and have an incident response plan in place to minimize damage and quickly contain and resolve any breaches.</p><h4>8. Consider using anonymized or pseudonymized data:</h4><p>Anonymized or pseudonymized data can be used for AI and data analysis while still maintaining user privacy.</p><h4>9. Regularly train your employees:</h4><p>Regularly train employees on data protection best practices and ensure that they understand the importance of user privacy.</p><h4>10.Seek expert advice:</h4><p>Consult with legal and data protection experts to ensure compliance with data privacy laws and regulations.</p><p>By following these guidelines, organizations can navigate the complexities of data privacy and unlocking the potential of AI and data. It is important to note that the laws and regulations surrounding data privacy are constantly evolving, so it’s essential to stay up-to-date and review your data protection practices regularly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=211016ba8f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fourbic/navigating-data-privacy-in-the-ai-age-a-user-centric-approach-211016ba8f3">Navigating Data Privacy in the AI Age: A User-Centric Approach</a> was originally published in <a href="https://medium.com/fourbic">fourbic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging Common Python Errors in Flask Applications]]></title>
            <link>https://medium.com/@RobinKiplangat/debugging-common-python-errors-in-flask-applications-96d837487fac?source=rss-6cd3a7df075b------2</link>
            <guid isPermaLink="false">https://medium.com/p/96d837487fac</guid>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Robin Kiplang'at]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 06:17:40 GMT</pubDate>
            <atom:updated>2023-01-10T06:17:40.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BQMJaxICXZ-1bokW" /><figcaption>Photo by <a href="https://unsplash.com/@mireilleraad?utm_source=medium&amp;utm_medium=referral">Mireille Raad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Flask is a popular Python web framework that makes it easy to build web applications quickly. However, like any software, Flask applications are prone to errors, and debugging them can be a challenge. In this post, we’ll look at some common errors that you might encounter when developing Flask applications, and how to troubleshoot them.</p><h3>Error: “ImportError: attempted relative import with no known parent package”</h3><p>If you see this error message when running a Flask application, it means that you are trying to use a relative import to import a module or a variable from another module, but Python doesn’t know which package the module belongs to.</p><p>To fix this error, you have a couple of options:</p><ol><li>Use an absolute import instead of a relative import. For example, if you are trying to import a variable conn from a module db_connect in the backend package, you can use the following import statement.</li></ol><pre>from backend.db_connect import conn</pre><p>2. If you want to use a relative import, you need to make sure that the script you are running is a part of a package, and not a standalone script. One way to do this is to create an __init__.py file in the directory where the script is located, and then run the script using the -m flag</p><pre>python -m backend.api.app</pre><p>This will treat the api directory as a package and allow you to use relative imports.</p><h3>Error: “InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block”</h3><p>This error occurs when you are using a PostgreSQL database and the psycopg2 library to connect to it, and a previous SQL statement in the current transaction has caused an error, causing the transaction to be rolled back. As a result, the cursor object is no longer able to execute any more queries until the transaction has been ended.</p><p>To fix this error, you can try the following:</p><ol><li>Make sure that you are handling any errors that may occur when executing your SQL statements, so that the transaction does not get rolled back.</li><li>If you want to continue executing queries after an error has occurred, you can use the conn.rollback() method to roll back the current transaction, and then start a new transaction using the conn.begin() method before executing your next query.</li><li>Alternatively, you can use the SAVEPOINT and ROLLBACK TO SAVEPOINT statements to roll back part of a transaction, rather than the entire transaction. This allows you to continue executing queries after an error has occurred, without having to start a new transaction.</li></ol><h3>Error: “UnboundLocalError: local variable ‘questions’ referenced before assignment”</h3><p>This error occurs when you are trying to <strong>access a local variable that has not been defined or initialized</strong>. In the context of a Flask application, this error might occur if you are trying to return a JSON response containing a list of items, but the list has not been defined.</p><p>To fix this error, make sure that the list is defined outside of any try blocks or other code blocks where it might not be accessible. For example:</p><pre>@app.route(&quot;/qns&quot;, methods=[&quot;GET&quot;])<br>def get_questions():<br>    # Define a list of questions <br>    questions = []<br><br># Perform some operation to populate the list<br>try:<br>    # Fetch the questions from the database<br>    result = cursor.execute(&quot;SELECT * FROM questions&quot;)<br>    for row in result:<br>        question = {<br>            &quot;id&quot;: row[0],<br>            &quot;category&quot;: row[1],<br>            &quot;question&quot;: row[2],<br>        }<br>        questions.append(question)<br>except (Exception, psycopg2.Error) as error:<br>    print(&quot;Error while fetching data from the database:&quot;, error)<br><br># Return the list as a JSON response<br>return jsonify(questions)</pre><p>By defining the questions list outside of the try block, it will be accessible in the return statement, and the error will be avoided.</p><p>I hope these examples have helped you understand how to troubleshoot some common errors in Flask applications. If you have any other questions or need further assistance, don’t hesitate to ask!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96d837487fac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>