<?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 mugagga Joseph24 on Medium]]></title>
        <description><![CDATA[Stories by mugagga Joseph24 on Medium]]></description>
        <link>https://medium.com/@mugaggaj989?source=rss-1fc3d67ecf15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2TJ1-TPhYk0b1ibp</url>
            <title>Stories by mugagga Joseph24 on Medium</title>
            <link>https://medium.com/@mugaggaj989?source=rss-1fc3d67ecf15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:51:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mugaggaj989/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[Can a Robot Turn Rubbish into Power? What I’m Learning While I Design One]]></title>
            <link>https://medium.com/@mugaggaj989/can-a-robot-turn-rubbish-into-power-what-im-learning-while-i-design-one-7302c814d030?source=rss-1fc3d67ecf15------2</link>
            <guid isPermaLink="false">https://medium.com/p/7302c814d030</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[mugagga Joseph24]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 09:20:05 GMT</pubDate>
            <atom:updated>2026-10-26T09:20:05.455Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By Mugagga Joseph Mary | Final-year engineering student</em></p><p><em>Written for engineering and environmental-science students, and anyone curious about how technology could help African cities deal with their waste.</em></p><p>Picture a small robot rolling across a market yard at dusk. It spots a banana peel, picks it up, and drops it into a chamber where bacteria quietly turn it into a trickle of electricity. A few steps later it finds a plastic bottle and sets it aside for recycling instead of letting it go anywhere near a fire.</p><p>That is the idea behind my final-year project. I want to be upfront about one thing: it is still a design, on paper and in simulation, not a finished machine. This post is about why I think the idea is worth building, what the evidence actually says, and where I could be wrong.</p><h3>Quick takeaways</h3><p>· The world is heading for far more waste, and Sub-Saharan Africa is where the growth will be steepest.</p><p>· In Kampala, roughly four-fifths of the waste is organic, which is exactly the kind of waste that bacteria can feed on.</p><p>· Cheap AI models can already recognise waste on a Raspberry Pi. The hard part is making them work on <em>our</em> waste.</p><p>· Microbial fuel cells make real electricity, but only a little. My project is about measuring honestly, not promising miracles.</p><h3>The problem is bigger than it looks</h3><p>Start with the global picture. The World Bank’s <em>What a Waste 2.0</em> report estimated that the world produced 2.01 billion tonnes of municipal solid waste in 2016 and could reach 3.40 billion tonnes a year by 2050 if nothing changes [1]. Waste in Sub-Saharan Africa is expected to more than triple over that period [1]. In low-income countries, over 90 percent of waste ends up mismanaged, meaning openly dumped or burned [2].</p><p>Now zoom in. Kampala generates about 2,500 tonnes of waste a day, according to the Kampala Capital City Authority (KCCA), and around 80 percent of it is organic [3]. There is good news in that story: KCCA reports that the collection rate climbed from 35 percent in 2016 to 59 percent in 2023 [3]. But that still leaves a large share uncollected, and the waste that <em>is</em> collected has its own problems. Researchers from Makerere University and KCCA recently described the Buyala disposal facility, which receives roughly 1,500 tonnes a day and produces an estimated 58,000 litres of leachate daily [4].</p><p>A much earlier study of Kampala’s waste found that food and yard waste made up 92.7 percent of what was delivered to the old Kiteezi landfill [5]. Different studies, different years, same message: our waste is overwhelmingly organic.</p><h3>Why organic waste is the interesting part</h3><p>Plastic gets most of the headlines, but for a city like Kampala the real mass is in peels, scraps and market leftovers. Organic matter holds chemical energy, and when it is dumped in a landfill that energy is simply lost, along with a lot of smell and pollution.</p><p>That is where the microbial fuel cell (MFC) comes in. In plain English, it is a container where specially adapted bacteria eat organic material and, as they do, pass electrons to an electrode. Collect those electrons through a circuit and you have electricity.</p><p>I have to be honest about how modest this is. Reviews of the field describe low energy output, material costs and scale-up difficulties as the main limits today [8][9]. Most studies are still lab-scale, and pilot or industrial examples remain rare [9]. So I am not claiming my robot will power a village. I am building a system that can <em>measure</em> what a small MFC really produces from real waste, run after run.</p><h3>The idea in plain English</h3><p>I think of the robot as having four body parts.</p><p><strong>Eyes.</strong> A camera and a lightweight AI model called YOLOv8n look at each item and decide what it is. This is not science fiction any more. One recent study trained YOLOv8n for waste sorting, ran it on a Raspberry Pi 5 connected to an Arduino, and reported an mAP@0.5 of 0.888 [6]. Another benchmark of small models on recycling images reported roughly 0.76 for YOLOv8n [7]. The gap between those numbers is the lesson: results depend heavily on the dataset. A model trained on tidy photos of bottles and cans may stumble on matooke peels, sachets and jerrycans. So building a <em>local</em> dataset is one of the most important parts of my plan.</p><p><strong>Brain.</strong> A state machine on the Raspberry Pi decides what happens next: search, classify, approach, collect, route. If the AI is not confident, the robot does not guess. It holds the item aside.</p><p><strong>Hands.</strong> An Arduino drives the motors and the gripper, and reads the ultrasonic sensors. The two boards talk over a simple serial link, with each command confirmed by an acknowledgement.</p><p><strong>Stomach.</strong> Organic waste goes to the MFC, where I measure voltage and current and calculate power and energy. A small, carefully monitored thermal demonstrator handles suitable dry material. Anything unknown, hazardous or recyclable goes to a hold-and-reject bin.</p><p>All of it streams to a web dashboard, so an operator can watch the robot, see the energy readings and hit an emergency stop.</p><h3>How an AI actually learns to see waste</h3><p>Watch youtube video <a href="https://youtu.be/mcdANbBfr2w">https://youtu.be/mcdANbBfr2w</a></p><p>Training sounds mysterious, but it is closer to teaching a child with flashcards than to magic. Here is the whole journey, one step at a time.</p><p><strong>1. Decide what it must recognise.</strong> Every model needs a clear list of classes. Mine has five: organic, dry, recyclable, hazardous and unknown. “Unknown” matters most, because it gives the robot a safe place to put anything it is unsure about.</p><p><strong>2. Collect photos of real waste.</strong> The model only knows what it has seen, so variety is everything: different light, angles and backgrounds, wet items and dirty ones. Public datasets show the trade-off. TrashNet has 2,527 photos in six classes, taken on a white poster board [10]. TACO has litter photographed in woods, on roads and on beaches, and its original paper described 1,500 images with 4,784 labelled items [11]. The first is tidy. The second looks like real life.</p><p><strong>3. Label every item.</strong> I draw a box around each item and give it a class name. The computer stores each box as one line in a text file: a class number, then the box’s position and size. Thousands of these lines become the model’s answer key.</p><p><strong>4. Train.</strong> YOLOv8n looks at the labelled images, makes a guess, and compares it with the answer key. Each time it is wrong, it adjusts itself slightly and tries again. The images are split so that most teach the model, some check it while it learns, and some stay hidden until the end. TACO’s own experiments, for example, used an 80/10/10 split [11].</p><p><strong>5. Test honestly.</strong> The hidden images show how the model copes with things it has never seen. Scores vary a lot with the data: one YOLOv8n study reported an mAP@0.5 of 0.888 [6], while another benchmark reported about 0.76 [7]. I will look closely at which classes get confused, not just at the headline number.</p><p><strong>6. Deploy, then keep improving.</strong> The trained model runs on the Raspberry Pi, and every camera frame returns a class, a box and a confidence score. When the robot makes a mistake in the field, that photo becomes new training data, and the loop starts again.</p><p>The big lesson is that the data matters at least as much as the model. That is why I plan to build a local dataset of matooke peels, sachets and jerrycans, rather than trust a model trained on someone else’s waste.</p><h3>Three design choices I’m proud of</h3><p><strong>1. Safety does not depend on software.</strong> The emergency stop and the overtemperature cut-off work on hardware. If the Pi crashes or the Wi-Fi drops, the robot still stops.</p><p><strong>2. Measured and estimated energy stay separate.</strong> Electricity from the MFC is measured. Heat from the thermal demonstrator can only be estimated from temperature and assumptions. Every reading in my database is labelled one or the other, so I can never accidentally blend them into one impressive-looking number.</p><p><strong>3. The robot is allowed to say “I’m not sure.”</strong> It would be easy to force every item into an energy pathway to make the numbers look better. I would rather have a robot that rejects a doubtful item than one that burns something it should not.</p><h3>What this project cannot do</h3><p>A robot is not the answer to Kampala’s waste problem. Collection trucks, sorting at source, composting and the work of informal waste pickers matter far more. The World Bank notes that more than 15 million waste pickers and recyclers work worldwide [2], and any technology that ignores them is missing half the picture. I see my project as a small, testable piece of the puzzle and a teaching platform, not a replacement for people.</p><p>There are also open questions I cannot answer yet. How accurate will the model be on local waste? How much power will a small MFC really deliver from mixed market scraps? Will the gripper cope with wet, messy items? These are exactly what the testing phase is for, and I plan to report the results whether they flatter the idea or not.</p><h3>Why I think it’s still worth doing</h3><p>Two reasons. First, the numbers say waste will keep growing, so cheap, local, measurable approaches to recovering value from it deserve to be tested rather than dismissed. Second, a design that is honest about its limits is more useful to the next student than one that overpromises. If someone builds on my work and does it better, that counts as success.</p><h3>Your turn</h3><p>I would love to hear from you, especially if you work with waste, study engineering or simply live with this problem every day.</p><p>· Which local waste items should a robot like this learn to recognise first?</p><p>· What would make you trust (or distrust) energy figures from a project like this?</p><p>· If you have worked with fuel cells, composting or edge AI, what mistakes should I avoid?</p><p>Leave a comment or send me a message. The best ideas in this project have come from other people’s questions.</p><h3>Sources</h3><p>1. Kaza, S., Yao, L., Bhada-Tata, P., &amp; Van Woerden, F. (2018). <em>What a Waste 2.0: A Global Snapshot of Solid Waste Management to 2050</em>. World Bank. <a href="https://hdl.handle.net/10986/30317">https://hdl.handle.net/10986/30317</a></p><p>2. Waste Dive (2018). Coverage of the World Bank’s <em>What a Waste 2.0</em> report. <a href="https://www.wastedive.com/news/world-bank-global-waste-generation-2050/533031/">https://www.wastedive.com/news/world-bank-global-waste-generation-2050/533031/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7302c814d030" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Developers Can Prepare For and Protect Against Cyber Attacks
By: Mugagga Joseph Mary
In today’s…]]></title>
            <link>https://medium.com/@mugaggaj989/how-developers-can-prepare-for-and-protect-against-cyber-attacks-by-mugagga-joseph-mary-in-todays-2c807b0b7771?source=rss-1fc3d67ecf15------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c807b0b7771</guid>
            <dc:creator><![CDATA[mugagga Joseph24]]></dc:creator>
            <pubDate>Fri, 27 Jun 2025 15:17:36 GMT</pubDate>
            <atom:updated>2025-06-27T15:17:36.940Z</atom:updated>
            <content:encoded><![CDATA[<p>How Developers Can Prepare For and Protect Against Cyber Attacks<br>By: Mugagga Joseph Mary<br>In today’s digital landscape, developers are frontline defenders of cybersecurity. Every line of code written, every API exposed, and every system integrated becomes a potential entry point for malicious actors. With threat vectors evolving rapidly—from zero-day exploits to supply chain attacks—developers must go beyond functionality and deeply embed security into the software development lifecycle (SDLC).</p><p>This blog outlines field-tested strategies developers can use to anticipate and defend against cyber attacks, with references to industry standards and tools.</p><p>🧠 1. Shift Left: Think Security from Day One<br>“Security is not a feature. It’s a design principle.”</p><p>Most vulnerabilities are cheaper and easier to fix early in development. By adopting the Shift Left Security model, security is integrated into the development pipeline—not bolted on later.</p><p>Actionable Tactics:</p><p>Implement Threat Modeling during planning stages (e.g., using OWASP Threat Dragon).</p><p>Conduct static code analysis (SAST) early with tools like SonarQube or Semgrep.</p><p>Define secure coding standards for your team.</p><p>🧰 2. Use Security-Focused Tooling in CI/CD<br>Continuous Integration/Continuous Deployment (CI/CD) without security checks is a recipe for disaster. Integrate security scans in your pipelines to catch issues before they reach production.</p><p>Recommended Practices:</p><p>Include dependency vulnerability scanning (e.g., Snyk, Dependabot).</p><p>Automate container scanning (e.g., Trivy).</p><p>Run Dynamic Application Security Testing (DAST) with tools like OWASP ZAP.</p><p>🔐 3. Validate All Inputs: No Exceptions<br>If you’re accepting user input, assume it’s malicious.</p><p>Real-world Example:<br>A React frontend accepted a username field and failed to validate input. An attacker injected a script that hijacked sessions in production, exploiting weak client-side sanitization.</p><p>Defense Strategies:</p><p>Use whitelisting, not blacklisting.</p><p>Apply strict data validation libraries (e.g., Joi for Node.js).</p><p>Sanitize all inputs at both client and server ends.</p><p>🔒 4. Secure Authentication and Authorization<br>Misconfigured authentication is a major breach vector. Use battle-tested identity providers and never write your own crypto.</p><p>Best Practices:</p><p>Implement OAuth2.0/OpenID Connect with providers like Auth0, Okta, or Firebase.</p><p>Enforce Multi-Factor Authentication (MFA).</p><p>Use RBAC (Role-Based Access Control) or ABAC (Attribute-Based Access Control) for complex applications.</p><p>See OWASP’s guide on Authentication Best Practices.</p><p>🛡️ 5. Keep Dependencies Updated and Audited<br>One compromised package = complete system failure.</p><p>Example: The infamous Event-Stream npm attack where a widely-used library was backdoored due to weak package maintenance.</p><p>Mitigation Steps:</p><p>Use package lock files to pin versions.</p><p>Run audits frequently: npm audit, pip-audit, or cargo audit.</p><p>Prefer signed packages and verify their maintainers.</p><p>🏗️ 6. Apply the Principle of Least Privilege<br>Do not give systems or users more permissions than they need.</p><p>Key Guidelines:</p><p>Docker containers should not run as root.</p><p>Serverless functions must use scoped IAM roles.</p><p>Enforce API gateway throttling and authorization rules.</p><p>🌐 7. Monitor and Log Everything (But Securely)<br>You can&#39;t protect what you can&#39;t see. Monitoring and logs help detect anomalous behavior and early-stage attacks.</p><p>Best Practices:</p><p>Log authentication attempts, permission changes, and sensitive API usage.</p><p>Use log aggregation tools like ELK Stack or Datadog.</p><p>Secure logs (no passwords, tokens, or PII should appear in plaintext).</p><p>🔄 8. Perform Regular Security Testing<br>Run routine internal pentests and engage external security audits.</p><p>Tools:</p><p>Use Burp Suite for web vulnerability testing.</p><p>Simulate attacks with Metasploit and Kali Linux.</p><p>Conduct bug bounty programs via HackerOne or Bugcrowd.</p><p>🧑‍🏫 9. Stay Educated<br>Cybersecurity is dynamic. What was secure last year could be vulnerable today.</p><p>Resources:</p><p>Follow OWASP Top Ten and update your practices.</p><p>Read CISA Alerts for emerging threats.</p><p>Join devsec communities on Reddit or Stack Overflow.</p><p>🧪 10. Prepare for Incidents: Have a Plan<br>Despite best efforts, breaches can occur. What matters is how fast and effectively you respond.</p><p>Incident Readiness Checklist:</p><p>Have a documented incident response playbook.</p><p>Keep offsite encrypted backups.</p><p>Use tools like Wazuh for endpoint threat detection.</p><p>Regularly conduct Tabletop Exercises to test your team’s readiness.</p><p>Final Thoughts<br>As a developer with years of practical experience in full-stack engineering and DevSecOps integration, I’ve seen breaches caused by one missed validation or a forgotten configuration flag. Cybersecurity must be treated as a continuous process, not a one-time checklist.</p><p>Security is everyone’s responsibility, but developers are often the first and last line of defense.</p><p>References &amp; Further Reading<br>OWASP Official Website</p><p>NIST Secure Software Development Framework</p><p>SANS Secure Coding Practices</p><p>Metasploit Framework</p><p>GitHub Security Best Practices</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c807b0b7771" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>