<?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 Thakshila Bandara on Medium]]></title>
        <description><![CDATA[Stories by Thakshila Bandara on Medium]]></description>
        <link>https://medium.com/@thakshiladb2000?source=rss-2c39cf83fe5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-x88SScVPIDV6O0u6eNU6g.jpeg</url>
            <title>Stories by Thakshila Bandara on Medium</title>
            <link>https://medium.com/@thakshiladb2000?source=rss-2c39cf83fe5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:14:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thakshiladb2000/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[Evolution of Free and Open Source Software (FOSS) Systems]]></title>
            <link>https://medium.com/@thakshiladb2000/evolution-of-free-and-open-source-software-foss-systems-c9539c7da54b?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9539c7da54b</guid>
            <category><![CDATA[foss]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-evolution]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Thu, 04 Jul 2024 20:33:07 GMT</pubDate>
            <atom:updated>2024-07-04T20:33:07.017Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*bawcYHAD3waIHkqjrcDdcA.jpeg" /></figure><p>The way we use technology has been completely transformed by Free and Open Source Software (FOSS). Through encouraging openness, cooperation, and community-driven development, FOSS has revolutionized the software industry from its modest beginnings to its current state of broad adoption. This article will examine the development of FOSS systems as well as the onion model, a conceptualization that aids in comprehending the dynamics and organization of open source initiatives.</p><blockquote><strong><em>History</em></strong></blockquote><p>The FOSS movement traces its origins to the early days of computing. In the 1950s and 60s, software was often shared freely among researchers and developers. However, as the software industry grew, proprietary models began to dominate. The turning point came in the 1980s with the establishment of the Free Software Foundation (FSF) by Richard Stallman. The FSF aimed to promote computer user freedom and defend the rights of all software users.</p><p><strong>Key milestones</strong></p><ul><li><strong>GNU Project (1983)</strong>: Initiated by Richard Stallman, the GNU Project aimed to create a free Unix-like operating system. The project’s notable contribution was the GNU General Public License (GPL), which ensured that software remained free and open.</li><li><strong>Linux Kernel (1991)</strong>: Linus Torvalds released the Linux kernel, which combined with GNU components, formed the first complete free operating system. This marked the beginning of a significant era for FOSS.</li><li><strong>Apache HTTP Server (1995)</strong>: The release of the Apache HTTP Server demonstrated the potential of collaborative development, quickly becoming the most popular web server software.</li></ul><blockquote><strong><em>The Growth and Maturation of FOSS</em></strong></blockquote><p>Because of the early FOSS projects’ success, the power of community and collaboration was highlighted. Open source communities grew, giving developers a place to share knowledge, contribute, and improve software together. Later, platforms like GitHub and SourceForge became the hubs for FOSS development, facilitating global developer collaboration on projects.</p><p>As FOSS projects shown their scalability and dependability, businesses began to pay notice. Open source projects attracted the attention of businesses such as IBM, Red Hat, and Google, who saw their potential to spur innovation and cut expenses. In addition to providing financial support, this corporate involvement introduced professional development processes into the FOSS environment.</p><p>FOSS systems are commonplace today. The majority of technical infrastructures are built around open source software, which includes Python programming languages and operating systems like Linux. The range of FOSS projects has also increased, covering everything from sophisticated cloud computing platforms to desktop applications.</p><p>While FOSS has come a long way, it faces challenges such as sustainability, security, and inclusivity. However, these challenges also present opportunities for the community to innovate and evolve. Initiatives like open source foundations and crowdfunding are being explored to ensure the long-term viability of projects.</p><blockquote><strong><em>Onion model FOSS development structure</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*XQJR5UUwMvyjxtGJS-fsmA.jpeg" /></figure><p>The onion model is a framework used to understand the structure and dynamics of FOSS projects. It visualizes a project as a series of concentric layers, each representing different levels of contribution and involvement.</p><ul><li><strong>Project leader</strong> — At the heart of a FOSS community is sometimes a single person, who is one of the most active developers.</li><li><strong>Core members</strong> — group that coordinate the project and have been involved with it for a long time and have contributed much code.</li><li><strong>Active developers</strong> — regularly contribute new features and fix bugs.</li><li><strong>Peripheral Developers</strong> — Further out are peripheral contributors. They contribute less frequently, often focusing on specific features or bug fixes.</li><li><strong>Bug fixers and bug reporters </strong>— mainly involved in debugging.</li><li><strong>Readers</strong> — active users of the system. They try to understand how the software works but don’t contribute.</li></ul><p>The onion model emphasizes how crucial interactions are between various layers. To inform their decisions, core developers solicit input and contributions from both regular and auxiliary contributors. The improvements and fixes made by the development community also help users. Everybody, regardless of involvement level, contributes to the project’s success in this collaborative atmosphere because to the tiered structure.</p><blockquote><strong><em>Conclusion</em></strong></blockquote><p>FOSS systems have progressed from specialized initiatives to widely used solutions, demonstrating the effectiveness of community-driven development. An invaluable lens through which to view how these projects operate and prosper is the onion model. Transparency, cooperation, and inclusivity are fundamental FOSS values that will continue to drive innovation and influence technology as it develops and changes.</p><blockquote><strong><em>References</em></strong></blockquote><ul><li><a href="https://www.freecodecamp.org/news/brief-history-of-open-source/">https://www.freecodecamp.org/news/brief-history-of-open-source/</a></li><li><a href="https://www.researchgate.net/figure/The-Onion-Model-of-an-Open-Source-Community_fig1_45922099#:~:text=In%20this%20paper%20we%20apply,problems%20in%20Open%20Source%20projects">https://www.researchgate.net/figure/The-Onion-Model-of-an-Open-Source-Community_fig1_45922099#:~:text=In%20this%20paper%20we%20apply,problems%20in%20Open%20Source%20projects</a>.</li><li><a href="https://www.unapcict.org/sites/default/files/2019-01/FOSS%20-%20General%20Introduction.pdf">https://www.unapcict.org/sites/default/files/2019-01/FOSS%20-%20General%20Introduction.pdf</a></li><li><a href="https://direct.mit.edu/books/monograph/3528/For-Fun-and-ProfitA-History-of-the-Free-and-Open">https://direct.mit.edu/books/monograph/3528/For-Fun-and-ProfitA-History-of-the-Free-and-Open</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9539c7da54b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tools used in Software Process Management.]]></title>
            <link>https://medium.com/@thakshiladb2000/tools-used-in-software-process-management-e771d444be4a?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e771d444be4a</guid>
            <category><![CDATA[software-process]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Fri, 16 Feb 2024 18:35:37 GMT</pubDate>
            <atom:updated>2024-02-16T18:35:37.203Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*0gTcqyEvZx_Mg-cjVbizsA.jpeg" /></figure><p>A crucial component of software development is software process management, which guarantees productivity, teamwork, and project delivery on schedule. There are several technologies available in the current digital era to help with efficient software process management. We’ll examine some well-liked software process management tools in this article, going over their benefits, drawbacks, and capabilities.</p><blockquote><strong><em>Jira</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*iWLb4Y7VSSncr-dFRmffEA.jpeg" /></figure><p>One of the most popular software project management systems is Jira, which was created by Atlassian. Its many capabilities, which are geared toward agile approaches, make it appropriate for a wide range of teams working on business projects, IT operations, and software development.</p><p>Features:</p><ul><li><strong>Agile project management</strong>: Jira provides agile boards, including Scrum and Kanban, facilitating sprint planning, backlog management, and real-time collaboration.</li><li><strong>Customizable workflows</strong>: Users can define custom workflows to match their team’s processes, allowing for flexibility and scalability.</li><li><strong>Issue tracking</strong>: Jira allows teams to track bugs, tasks, stories, and epics throughout the development lifecycle, ensuring transparency and accountability.</li><li><strong>Integration with other tools</strong>: Jira seamlessly integrates with popular development tools like Bitbucket, GitHub, Confluence, and Slack, enhancing collaboration and productivity.</li></ul><p>Advantages:</p><ul><li><strong>Comprehensive agile support</strong>: Jira’s robust agile features empower teams to embrace agile methodologies fully, enabling iterative development and continuous improvement.</li><li><strong>Customization options</strong>: With extensive customization capabilities, teams can tailor Jira to suit their unique workflows and requirements.</li><li><strong>Integration ecosystem</strong>: Jira’s broad range of integrations allows teams to connect with their favorite tools, streamlining processes and enhancing efficiency.</li></ul><p>Limitations:</p><ul><li><strong>Complexity for beginners</strong>: The extensive feature set of Jira can be overwhelming for new users, requiring time and effort to fully grasp its capabilities.</li><li><strong>Cost</strong>: While Jira offers a free tier for small teams, larger organizations may find the pricing prohibitive, especially when integrating with other Atlassian products.</li></ul><blockquote><strong><em>Trello</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1OzExqpFyg-U8UFTvmxC_Q.png" /></figure><p>Trello is a well-liked project management application that organizes tasks and projects simply and visually. With the help of a card-based system, users can make boards for various tasks and projects and move cards between lists to monitor their progress.</p><p>Features:</p><ul><li><strong>Kanban boards</strong>: Trello’s Kanban-style boards provide a visual representation of tasks, allowing teams to prioritize work and track progress effortlessly.</li><li><strong>Customizable workflows</strong>: Users can create custom lists, labels, and card templates to tailor Trello to their specific workflows and processes.</li><li><strong>Collaboration features</strong>: Trello facilitates collaboration through comments, file attachments, checklists, and @mentions, promoting communication and transparency.</li><li><strong>Integration options</strong>: Trello integrates with a variety of third-party apps and services, including Slack, Google Drive, and GitHub, enhancing productivity and streamlining workflows.</li></ul><p>Advantages:</p><ul><li><strong>Ease of use</strong>: Trello’s intuitive interface and simple design make it easy for teams to adopt and use without extensive training or onboarding.</li><li><strong>Flexibility</strong>: Trello’s flexible structure allows teams to adapt it to different project management methodologies, including agile, Kanban, and scrum.</li><li><strong>Free tier</strong>: Trello offers a free version with basic features, making it accessible to individuals and small teams with limited budgets.</li></ul><p>Limitations:</p><ul><li><strong>Limited project tracking</strong>: While Trello excels at task management, it may lack advanced project tracking and reporting capabilities compared to more robust project management tools.</li><li><strong>Scalability</strong>: Trello may not be suitable for large-scale projects or complex workflows, as its simplicity may become a limitation as teams grow and projects become more intricate.</li></ul><blockquote><strong><em>Clarizen</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7mlGwisJj8apmPL3jRKTw.jpeg" /></figure><p>A cloud-based work management and project management tool called Clarizen was created to improve team efficiency and cooperation. The software as a service business model is used by Clarizen.</p><p>Features:</p><ul><li><strong>Project planning and scheduling</strong>: Clarizen offers robust planning tools, including Gantt charts and task dependencies, allowing teams to create and manage project schedules effectively.</li><li><strong>Resource management</strong>: Users can allocate resources efficiently, track workload, and optimize resource utilization to ensure project success.</li><li><strong>Collaboration tools</strong>: Clarizen facilitates real-time collaboration through discussion forums, file sharing, and mentions, fostering communication and teamwork.</li><li><strong>Reporting and analytics</strong>: The platform provides comprehensive reporting and analytics capabilities, enabling stakeholders to gain insights into project progress, performance, and resource allocation.</li></ul><p>Advantages:</p><ul><li><strong>User-friendly interface</strong>: Clarizen boasts an intuitive interface that simplifies project management tasks, making it accessible to users of all skill levels.</li><li><strong>Scalability</strong>: From small teams to large enterprises, Clarizen scales effortlessly to meet the evolving needs of organizations, accommodating growth and expansion.</li><li><strong>Robust integrations</strong>: Clarizen integrates seamlessly with popular business tools like Salesforce, Microsoft Project, and Google Drive, enhancing interoperability and data sharing.</li></ul><p>Limitations:</p><ul><li><strong>Limited customization</strong>: While Clarizen offers some degree of customization, it may not be as flexible as other project management tools, limiting adaptability to unique workflows.</li><li><strong>Learning curve</strong>: Despite its user-friendly interface, new users may still encounter a learning curve when familiarizing themselves with Clarizen’s features and functionalities.</li></ul><blockquote><strong><em>Asana</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MPcK6gO8un1hhwM5lJa0ZA.jpeg" /></figure><p>Asana is a flexible work management tool made to assist teams in better planning, monitoring, and controlling their workload. To accommodate different project management workflows and approaches, it provides a wide range of capabilities.</p><p>Features:</p><ul><li><strong>Task management</strong>: Asana allows users to create tasks, assign them to team members, set due dates, and track progress through customizable task lists and boards.</li><li><strong>Project planning</strong>: Asana provides timeline and calendar views, enabling teams to visualize project schedules, dependencies, and milestones.</li><li><strong>Collaboration tools</strong>: Asana facilitates collaboration through comments, attachments, and project conversations, ensuring clear communication and alignment among team members.</li><li><strong>Automation</strong>: Asana’s automation features enable users to streamline repetitive tasks, automate workflows, and increase productivity.</li></ul><p>Advantages:</p><ul><li><strong>Versatility</strong>: Asana’s flexibility makes it suitable for a wide range of teams and projects, from software development to marketing campaigns and beyond.</li><li><strong>Integration ecosystem</strong>: Asana integrates seamlessly with popular tools and services, including Slack, Google Drive, and Salesforce, enabling teams to work seamlessly across their favorite apps.</li><li><strong>Robust mobile apps</strong>: Asana offers fully-featured mobile apps for iOS and Android devices, allowing users to stay productive and connected on the go.</li></ul><p>Limitations:</p><ul><li><strong>Learning curve</strong>: Asana’s extensive feature set may require some time for new users to learn and master, particularly for teams transitioning from simpler task management tools.</li><li><strong>Price</strong>: While Asana offers a free tier with basic features, more advanced functionality, and collaboration features are available only with paid plans, which may be costly for larger teams or organizations.</li></ul><p>Proper tool selection has a big impact on project success in the field of software process management. The several tools that are available, each with unique features, benefits, and limits, include Jira, Trello, Clarizen, and Asana. You may choose the tool that most closely matches your aims and objectives by carefully assessing the needs and demands of your group or company. This will ultimately promote productivity, cooperation, and success in software development projects.</p><blockquote>References</blockquote><ul><li><a href="https://www.atlassian.com/software/jira/features">Jira Software - Features | Atlassian</a></li><li><a href="https://www.clarizen.com/product/features/">Planview AdaptiveWork</a></li><li><a href="https://trello.com/">Capture, organize, and tackle your to-dos from anywhere | Trello</a></li><li><a href="https://asana.com/features">Asana&#39;s Work Tracking &amp; Project Management Features * Asana</a></li><li><a href="https://project-management.com/the-pros-and-cons-of-using-jira-software/">Pros and Cons of Jira Software for Project Management</a></li><li><a href="https://projectmanagers.net/the-pros-and-cons-of-asana/">The Pros and Cons of Using Asana Software</a></li><li><a href="https://www.software-developer-india.com/advantages-and-disadvantages-of-trello/">Advantages and Disadvantages of Trello | Software Developer India</a></li><li><a href="https://financesonline.com/clarizen-pros-cons-top-enterprise-project-management-software/">Clarizen: Pros &amp; Cons of the Top Enterprise Project Management Software in 2024 - Financesonline.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e771d444be4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionizing Vehicle Service Reservations: A Guide to Building a Secure Web Application…]]></title>
            <link>https://medium.com/@thakshiladb2000/revolutionizing-vehicle-service-reservations-a-guide-to-building-a-secure-web-application-d28b94e7fddf?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28b94e7fddf</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[aml]]></category>
            <category><![CDATA[jsp]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[idp]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Tue, 10 Oct 2023 07:10:54 GMT</pubDate>
            <atom:updated>2024-02-16T10:22:21.736Z</atom:updated>
            <content:encoded><![CDATA[<h3>Revolutionizing Vehicle Service Reservations: A Guide to Building a Secure Web Application Integrated with Cloud-Based IDP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRAXGwiXggjVYHR0uFfKFA.png" /></figure><p>In this age of connectivity, where cloud-based solutions are at the forefront of technological innovation, integrating Identity and Access Management (IAM) solutions has become a critical component in building secure and user-friendly web applications. In this blog post, we will delve into the exciting realm of creating a cutting-edge Vehicle Service Reservation Web Application and seamlessly integrating it with a Cloud-Based Identity Provider (IDP).</p><blockquote>Tech stack</blockquote><ul><li>JSP for developing the web application.</li><li>MySQL as the DBMS</li><li>Apache Tomcat server — version 9 for running the application.</li><li>Cloud-based IDP — WSO2 ASGARDEO with SAML protocol</li><li>IntelliJ IDEA as the IDE</li></ul><blockquote>Developing the application</blockquote><p>So as the first step, we need to create a JSP project in our IDE. For that, in IntelliJ, we have to head file-&gt;new-&gt;project directory and then select the Jakarta EE project and create it. When creating it make sure to select Web application as the Template and Maven as the build system . Also, we have to select the Tomcat server as the application server for our application. After clicking next we have to select some dependencies to add to our project. Make sure to select servlet from that section. After clicking Create, it will create a new JSP project.</p><p>That’s the main thing about creating a new JSP project using IntelliJ. From now on I will explain how I created my web application.</p><p>So, when I created my web application, apart from everything including preparing IDP I first created a service reservation page to get the vehicle service reservation details. It’s just a simple HTML form combined with a few Java code lines. Then I created a Java file to establish the database connection. In that database connection file, I created the database connect method and database connection close method. For implementing a database connection in Java under the Maven build system we need to install MySQL JDBC driver to the project. We can get the jdbc driver from the Maven repository website. Here is the <a href="https://mvnrepository.com/artifact/mysql/mysql-connector-java/8.0.33">link</a> for that. We can install either from a .jar or adding as a dependency to our pom.xml file in our project.</p><p>After implementing the database connection, I created a servlet file for implementing server-side validations for our reservation details form. I already added client-side validations for the form’s input fields. But that is not enough to make our web application secure. Because client-side validation can easily be bypassed or disabled. By doing server-side validations we can prevent attacks like HTML injection, cross-site scripting, and SQL injection. After validating data I stored them in a database. For storing data I used prepared statements. It helps us to prevent sql injection attacks. Also, remember to close the database connection after performing a database operation. Otherwise, it will result in the sockets and resources being open forever until a crash.</p><p>When including database operations in to server-side validation servlet file I got some errors because the servlet version doesn’t support the Apache Tomcat version 9. So, as a solution to that error, I had to change the servlet version to 4 in the pom.xml file. Also remember, when we create a servlet file we have to add it and configure it inside the web.xml file. For that, we can use the below code snippet.</p><pre>    &lt;servlet&gt;<br>        &lt;servlet-name&gt;servlet name&lt;/servlet-name&gt;<br>        &lt;servlet-class&gt;com.path for serlet class&lt;/servlet-class&gt;<br>    &lt;/servlet&gt;<br><br>    &lt;servlet-mapping&gt;<br>        &lt;servlet-name&gt;servlet name&lt;/servlet-name&gt;<br>        &lt;url-pattern&gt;/end point that put inside of the @Webservlet&lt;/url-pattern&gt;<br>    &lt;/servlet-mapping&gt;</pre><p>Then I created another .jsp file for retrieving vehicle service data. Actually, this part should show reservation details for a specific customer using attributes that are returned from the IDP. So, next, I decided to implement IDP for my web application.</p><p>As I mentioned in the tech stack, for IDP, I used WSO2 asgardeo IDP with SAML protocol. To learn how to implement this IDP and connect it to our web application you can follow the below article.</p><p><a href="https://wso2.com/asgardeo/docs/get-started/try-your-own-app/java-ee-saml/#prerequisites">https://wso2.com/asgardeo/docs/get-started/try-your-own-app/java-ee-saml/#prerequisites</a></p><p>Also, I followed the below article.</p><p><a href="https://github.com/asgardeo/asgardeo-tomcat-saml-agent/blob/master/docs/integrating_with_java_source_project.md/#Integrating_SAML_into_your_java_source_project">asgardeo-tomcat-saml-agent/docs/integrating_with_java_source_project.md at master · asgardeo/asgardeo-tomcat-saml-agent</a></p><p>Actually, It takes too much time than I thought to implement the Asgardeo IDP. The reason for that was the errors that popped up while implementing it. When one error solved, another error was popped up. Anyway, after doing some googling and referring documentation related to WSO2 asgardeo I was able to fix a lot of them. But, after previous errors are solved there is an error name nullpointer exception popped up and it was regarding SAML authentication using asgardeo. I tried many ways to solve that error, but none of them worked. At last, I contacted my lecturer and got his help to solve that error. Actually, thanks to my lecturer I was able to solve that error. The reason for that error was a version issue of some dependencies regarding WSO2 asgardeo SAML SDK. Also, before I used an older version of .properties file. And it is also a reason for that error. Use below dependencies and .properties file below to get the latest dependencies and .properties file.</p><pre>        &lt;dependency&gt;<br>            &lt;groupId&gt;io.asgardeo.tomcat.saml.agent&lt;/groupId&gt;<br>            &lt;artifactId&gt;io.asgardeo.tomcat.saml.agent&lt;/artifactId&gt;<br>            &lt;version&gt;0.1.46&lt;/version&gt;<br>        &lt;/dependency&gt;</pre><p>Since the SDK is hosted at the WSO2 Internal Repository. Point to the repository as follows:</p><pre>  &lt;repositories&gt;<br>        &lt;repository&gt;<br>            &lt;id&gt;wso2.releases&lt;/id&gt;<br>            &lt;name&gt;WSO2 internal Repository&lt;/name&gt;<br>            &lt;url&gt;https://maven.wso2.org/nexus/content/repositories/releases/&lt;/url&gt;<br>            &lt;releases&gt;<br>                &lt;enabled&gt;true&lt;/enabled&gt;<br>                &lt;updatePolicy&gt;daily&lt;/updatePolicy&gt;<br>                &lt;checksumPolicy&gt;ignore&lt;/checksumPolicy&gt;<br>            &lt;/releases&gt;<br>        &lt;/repository&gt;<br>        &lt;repository&gt;<br>            &lt;id&gt;wso2-nexus&lt;/id&gt;<br>            &lt;name&gt;WSO2 internal Repository&lt;/name&gt;<br>            &lt;url&gt;https://maven.wso2.org/nexus/content/groups/wso2-public/&lt;/url&gt;<br>            &lt;releases&gt;<br>                &lt;enabled&gt;true&lt;/enabled&gt;<br>                &lt;updatePolicy&gt;daily&lt;/updatePolicy&gt;<br>                &lt;checksumPolicy&gt;ignore&lt;/checksumPolicy&gt;<br>            &lt;/releases&gt;<br>        &lt;/repository&gt;<br>    &lt;/repositories&gt;</pre><p>sample-app.properties file.(Remember to change the attributes in this file regarding the application that you created in WSO2 asgardeo console.)</p><pre># The URL of the SAML 2.0 Assertion Consumer<br>SAML2.AssertionConsumerURL=http://localhost.com:8080/sample-app/home.jsp<br><br># A unique identifier for this SAML 2.0 application<br>SAML2.SPEntityId=sample-app<br><br># A unique identifier for this SAML 2.0 Identity Provider<br>SAML2.IdPEntityId=localhost<br><br># The URL of the SAML 2.0 Identity Provider<br>SAML2.IdPURL=https://localhost:9443/samlsso<br><br># Adanced Properties - Only need to be changed for advanced use cases.<br><br># Url to do send SAML2 SSO AuthnRequest<br>SAML2SSOURL=samlsso<br><br># URIs to skip SSOAgentFilter; comma separated values<br>SkipURIs=/sample-app/index.html<br><br>IndexPage=index.html<br><br>ErrorPage=/error.jsp<br><br># Specify if Single Sign on is enabled/disabled<br>EnableSAML2SSOLogin=true<br><br># Specify if SingleLogout is enabled/disabled<br>SAML2.EnableSLO=true<br><br># This is the URL that is used for SLO<br>SAML2.SLOURL=logout<br><br># Specify if SAMLResponse element is signed<br>SAML2.EnableResponseSigning=false<br><br># Specify if SAMLAssertion element is signed<br>SAML2.EnableAssertionSigning=false<br><br># Specify if SAMLAssertion element is encrypted<br>SAML2.EnableAssertionEncryption=false<br><br># Specify if AuthnRequests and LogoutRequests should be signed<br>SAML2.EnableRequestSigning=false<br><br># Specify if SAML request is a passive<br>SAML2.IsPassiveAuthn=false<br><br># Pem content of the IDP public certificate<br>#IdPPublicCert=&lt;CERTIFICATE_PEM_CONTENT&gt;<br><br># Password of the KeyStore for SAML and OpenID<br>KeyStorePassword=wso2carbon<br><br># Alias of the IdP&#39;s public certificate<br>IdPPublicCertAlias=wso2carbon<br><br># Alias of the SP&#39;s private key<br>PrivateKeyAlias=wso2carbon<br><br># Private key password to retrieve the private key used to sign AuthnRequest and LogoutRequest messages<br>PrivateKeyPassword=wso2carbon</pre><p>Also, remember to add wso2carbon.jkskeystore file. It can be found in the above github article that I shared. After following the above steps we can easily integrate asgardeo IDP into our application.</p><p>Now, when we run our application it will be going to index.html page where I included the login button. When click the login button it will redirect to Asgardeo IDP login page. By default, it will show us a sign-in option only. But we can implement a sign-up option by enabling organizational settings -&gt; self registration option in the Asgardeo console. Also, we define what attributes we need to get from the user when they register by using attributes management -&gt; attributes section in the Asgardeo console.</p><p>To get to know how to implement a sign-up option for the Asgardeo login I followed another Asgardeo documentation. You can read it <a href="https://wso2.com/asgardeo/docs/guides/user-accounts/configure-self-registration/#get-the-verification-status-of-user-accounts">here.</a> Also, for configuring attributes you can refer to this article.</p><p>Next, I implemented a way to retrieve user attributes. For that, I also referred asgardeo documentation. So first we need to import the below imports to our relevant .jsp file.</p><pre>   &lt;%@ page import=&quot;io.asgardeo.java.saml.sdk.util.SSOAgentConstants&quot; %&gt;<br>   &lt;%@ page import=&quot;io.asgardeo.java.saml.sdk.bean.LoggedInSessionBean&quot; %&gt;<br>   &lt;%@ page import=&quot;io.asgardeo.java.saml.sdk.bean.LoggedInSessionBean.SAML2SSO&quot; %&gt;<br>   &lt;%@ page import=&quot;java.util.Map&quot; %&gt;</pre><p>Next, by adding the following snippets, we would be able to retrieve the user claims as provided by the Identity Provider.</p><pre>  &lt;%<br>    // Retrieve the session bean.<br>    LoggedInSessionBean sessionBean = (LoggedInSessionBean) session.getAttribute(SSOAgentConstants.SESSION_BEAN_NAME);<br><br>    // SAML response<br>    SAML2SSO samlResponse = sessionBean.getSAML2SSO();<br><br>    // Autheticated username<br>    String subjectId = samlResponse.getSubjectId();<br><br>    // Authenticated user&#39;s attributes<br>    Map&lt;String, String&gt; saml2SSOAttributes = samlResponse.getSubjectAttributes();<br><br>    // Authenticated username<br>    String username = saml2SSOAttributes.get(&quot;http://wso2.org/claims/username&quot;);<br><br>    //Authenticating user&#39;s first name<br>    String firstName = saml2SSOAttributes.get(&quot;http://wso2.org/claims/givenname&quot;);<br><br>    //Authenticating user&#39;s last name<br>    String lastName = saml2SSOAttributes.get(&quot;http://wso2.org/claims/lastname&quot;);<br><br>   %&gt;</pre><p>So, to get those attributes available through several pages when the user is active, I used session variables.</p><p>Since I used SAML protocol to authenticate with wso2 asgardeo let me explain how it works. When we click the login button on the log-in page it will send a SAML authentication request to the asgardeo server. After asgardeo server validates the request it will send a SAML authentication response including user attributes. In the SAML protocol sending token call and receiving access token parts are not included. They are related to OIDC protocol.</p><p>So next I started to implement delete upcoming reservations according to authenticated users. First, I created a .jsp page to display upcoming reservations of authenticated users with a delete button. When the user clicks the delete button it will trigger the delete reservations servlet. I created this to perform a delete operation in the database. Remember, every time you create a servlet make sure to include it into the &lt;servlet-mapping&gt; in the web.xml file as I mentioned in the beginning part of my article.</p><p>So now every functionality is implemented according to the assessment description.</p><p>Since I didn’t add CSS to my web pages in the beginning, I added some CSS to my web pages. After adding CSS, everything in my web application was almost completed. Let’s now see how my application works. You can view it by going through the below link.</p><p><a href="https://drive.google.com/file/d/1t4Ix19SGIyFngwVRa7NYthUvONEemTsC/view?usp=drive_link">demo.mkv</a></p><p>Here are a few snapshots of my application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KN5U5th5BhxYbuD3oUzzsw.png" /><figcaption>login page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xH68V54xEDu0CN9pbps5Q.png" /><figcaption>WSO2 asgardeo IDP login page.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUaa6M4cdbLTuZAlgt787w.png" /><figcaption>home page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJWwrNyZvfzZ5k1D5afQsw.png" /><figcaption>vehicle service reservation form</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKjowor5cbEBrj_1hVKqrg.png" /><figcaption>View user’s reservations page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xosEoCusJbPt_TasKqHIqQ.png" /><figcaption>delete user’s upcoming reservations page</figcaption></figure><p>So, as the next step, we have to ensure that our web application is not vulnerable to OWASP top 10 vulnerabilities. Apart from server-side input validations, I also sanitized the data. For that, I used OWASP Java HTML sanitizer. You can include this to your project as a maven dependency using the below .xml code snippet.</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.googlecode.owasp-java-html-sanitizer&lt;/groupId&gt;<br>    &lt;artifactId&gt;owasp-java-html-sanitizer&lt;/artifactId&gt;<br>    &lt;version&gt;20220608.1&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>By sanitizing data we can prevent XSS and SQL injection attacks. Also, I tried to use JSTL tags to display sanitized content in my application. But unfortunately, it didn’t work. Anyway, below I showed a code snippet related to JSTL.</p><pre>&lt;c:out value=&quot;${userComment}&quot; /&gt;</pre><p>So, that’s it. Finally, we finished making our web application. I hope this article helps you to build a web application and integrate it with a cloud-based IDP. You can access my web application’s git repository using the below link.</p><p><a href="https://github.com/Thakshila-Bandara/Vehicle-service-reservation-system.git">GitHub - Thakshila-Bandara/Vehicle-service-reservation-system: A secure vehicle service reservation application created using JSP and integrated with cloud-based IDP WSO2 Asgardeo using SAML protocol.</a></p><p>As the final thoughts, remember, the road to success in this digital age isn’t just about adopting the latest technologies — it’s about using them thoughtfully to enhance the user experience and protect their sensitive information. By building a secure web application and integrating it with a cloud-based IDP, you’re not only catering to the demands of the modern consumer but also setting a solid foundation for the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28b94e7fddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crafting My Portfolio Website Using React.js: A Beginner’s Journey]]></title>
            <link>https://medium.com/@thakshiladb2000/crafting-my-portfolio-website-using-react-js-a-beginners-journey-374e85b1a895?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/374e85b1a895</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Tue, 29 Aug 2023 03:38:04 GMT</pubDate>
            <atom:updated>2023-08-29T09:05:24.512Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jVfWkJcSWLvttb6FvaOTlw.png" /></figure><p>In the digital age, establishing an online presence is crucial for showcasing your skills and accomplishments. One effective way to achieve this is by creating a personal portfolio website. If you’re a web development enthusiast or a creative professional looking to display your work to the world, you’ve likely heard about React.js — a popular JavaScript library for building user interfaces. In this blog post, I’ll take you through my journey of crafting my very own portfolio website using React.js.</p><p>From the initial idea of having an online portfolio to the final polished website, I’ll walk you through the decisions I made, the challenges I encountered, and the triumphs I experienced during this exciting endeavor. Whether you’re a developer seeking inspiration for your own portfolio project or someone interested in learning about React.js, this article will provide you with insights into the process and the tools I used to bring my portfolio to life.</p><p>Since I am also a beginner to React.JS I decided to follow a YouTube tutorial and absorbed knowledge from it to create my portfolio. After preparing the environment by installing node.js and a suitable IDE, first I created my react project by typing the below command in the terminal.</p><pre>npx create-react-app &quot;project name&quot;</pre><p>It takes a few minutes to create the project. After creating the project you can see there will be generated files with codes. First I deleted every file included in the “public” folder and the “src” folder. Then I created index.html , index.css , index.js and App.jsx file manually. After including default code parts to above mentioned files, I started to create components that needed to be included in my website, For that I followed some kind of layered architecture. Below you can see my project structure up until now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*dtjXRbN4CZKP36CDo-_fIA.png" /><figcaption>Project structure (This can vary from the final project structure)</figcaption></figure><p>In the above structure, the “assets” folder is used to store assets that need to be used on our website. Folders that are placed inside of “components” folder include separate .jsx file and a .css file for each component. React components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML.</p><p>When including some .css attributes to my website I used .css variables. This is the first time I defined and used .css variables to a website. Here I had to find a suitable background texture for my website. First, it was a bit difficult to find a suitable one. But finally, I found this cool website that provides some beautiful background textures for free. You can visit that site by clicking <a href="https://www.transparenttextures.com/">here.</a></p><p>I planned to make this website responsive. So, as the first step, I added media queries to index.css the file. This is the first time I majorly used media queries for my web page.</p><p>When creating Header.jsx the file I used CTA.jsx file to include &lt;a&gt; tags for the download button and contact button. Do not forget to check your React App using a browser while making changes. For that, we can use the below command in the terminal.</p><pre>npm start</pre><p>Here, to edit my codes I used VS code. If you are a beginner to creating react projects using VS code don’t forget to install the “ES7+ React/Redux/React-Native snippets” extension. It helps a lot when you create react projects.</p><p>I used another react component HeaderSocials.jsx to include my social media links and icons. In that component, I used &lt;a&gt; tags with target=&quot;_blank&quot; .By using it we can open those links in a new tab of the browser. Also, remember to put rel=&quot;noreferrer&quot; after the target=&quot;_blank&quot; . rel=&quot;noreferrer&quot; is used to prevent passing the referrer information to the target website by removing the referral info from the HTTP header. In simple words, We can use the rel=&quot;noreferrer&quot;attribute on outgoing links when we don’t want other sites to know that you are linking to them. This is related to SEO. But remember to do not to use the rel=&quot;noreferrer&quot;attribute on internal links, it can mess up your Google Analytics reports. If you are interested to read more about this you can visit this <a href="https://www.reliablesoft.net/noreferrer-noopener/">site.</a></p><p>For displaying social media icons I used react icons. You can easily find those icons by visiting <a href="https://react-icons.github.io/react-icons/">this page.</a> To use those icons, first of all, you have to install react icons to your project. For that, you can use the below command.</p><pre>npm install react-icons --save</pre><p>When adding my image to the Header component I had to edit that with a suitable background. This time I used linear-gradient() to do that. Actually, this is the first time I used linear-gradient() to add a background as I remembered. Also, In the Header component, I added media queries to make the Header component responsive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*32DwSI2PY482xyvV2cfC_A.png" /><figcaption>Media queries in the `header.css` file.</figcaption></figure><p>Then I created a floating navigation bar for this website. I used react icons to display links on the nav bar. Here I planned to show an active link kind of highlited when clicking relevant links. For that, I used react useState hooks. React useState hooks allow us to track the state of a function component. Remember that, before we use useSate we need to import it. For that use the below code on the top of the .jsx file.</p><pre>import {useState} from &#39;react&#39;</pre><p>To read more about useState hooks, you can refer to this <a href="https://www.w3schools.com/react/react_usestate.asp">site.</a></p><p>When creating the “About” section I used &lt;article&gt; tags. It is used to specify independent, self-contained content. The &lt;article&gt; element does not render anything special in a browser. Also, I used &lt;small&gt; tag. That tag defines smaller text.</p><p>When making “about” section I used display: grid; CSS attribute. By using that we can make the page view display as a grid. Also, I used a CSS property called grid-template-columns . It&#39;s used to specify the size of the columns, and how many columns are in a grid layout.</p><p>When selecting suitable photos for the website I faced a problem. So, I decided to create some photos using Adobe Photoshop. It’s not a hard task. If you have a little knowledge about its tools you also can do it.</p><p>Next, I started to create the Experience section. When creating it I found a new term called ‘Tailwind CSS’. It’s a utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup. But I didn’t include them for this website.</p><p>In “myprojects” section, If we have the same elements for each article tag we can use the react data array to include data to those article tags. Even, It is easy, because of the different elements in my article tags, I didn’t use them.</p><p>For “contacts” section I implemented an email sending form. To send emails I used EmailJs. EmailJS is a backend-as-a-service that gives you the tools to send emails to the users of your application directly from your client or server-side code to fit your business requirements. To use emailJs, visit <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjc0M2ppP2AAxVCS2wGHeWsAqAQFnoECAYQAQ&amp;url=https%3A%2F%2Fwww.emailjs.com%2F&amp;usg=AOvVaw06fKxc7U0Z8Q-FQFaxJ0r8&amp;opi=89978449">this</a> website and follow the instruction. Before using emailJs, you have to install some dependencies. Type the below command in the terminal.</p><pre>npm install email-js --save</pre><p>Since I faced some compilation errors I installed the below dependency too.</p><pre>npm install @emailjs/browser</pre><p>Remember to import @emailjs/browser . Otherwise, compilation errors can occur. By creating an email service, we can get messages as emails.</p><p>Next, I created a “footer” for the website. It was also the same as the previous steps and nothing new stuff.</p><p>Finally, we came to the last stage of creating my website. That is deploy my website. For that, I used GitHub pages. When I searched for a way to deploy my react app using GitHub pages, I found this amazing video. You can also watch that video by clicking <a href="https://youtu.be/7wzuievFjrk?si=UJ3kJYmHtE5lP7l3">here.</a></p><p>So, In the deploying process first, we have to add gh-pages dependency to our package.json devDependencies . For that, we have to run the below command.</p><pre>npm install gh-pages --save-dev</pre><p>In here --save-dev is used to save that dependency in the devDependencies . After that, we need to add &quot;homepage&quot;, &quot;predeploy&quot;, &quot;deploy&quot; fields to our package.json file. By following the above video you can exactly understand what I mentioned here. After finishing everything we need to run the below command in the terminal.</p><pre>npm run deploy</pre><p>Make sure that you have a good internet connection. Otherwise, this process will break and cause more errors. When I ran the command I also faced a network issue and the deployment phase crashed. After that, I made my connection stable and ran the above command again. At that time it will keep saying the branch that we are going to create includes host files that already exist. But when checking the remote repo there is no branch named gh-pages there. So, after doing some googling I found that the solution for this problem is to delete gh-pages folder from node modules/.cache folder from our project. After deploying project is finished we can visit our website. Don’t forget to run npm run deploy every time you make changes to your website. Otherwise, it doesn’t apply to the hosted website.</p><p>Actually, If we use GitHub actions we don’t need to run npm run deploy command again and again. I tested this a few hours after this article was published. GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, and deployment pipeline. It always automatically builds and deploys your React app after every commit you make.</p><p>To use Github actions you need to go to your Github repo and select the actions tab. After that, you have to create a new workflow and configure Node.js as the workflow because this is a React app. You can find it under the continuous integration category. After that, you need to make some changes to the .yml file. Since I deleted App.test.js file in the beginning I had to remove — run: npm testfrom the .yml file. Otherwise, it will give an error.</p><p>When searching about GitHub actions, I found a very helpful video. I recommend you follow that video, So you can easily configure your workflow and deploy your React app. You can find that video by clicking <a href="https://youtu.be/mMXC8XpaR7c?si=FPH076ROI49JFVKc">here.</a> Also, follow the instructions on the gh-pages web page. You can visit it by clicking <a href="https://www.npmjs.com/package/gh-pages">here.</a></p><p>Make sure that your react app doesn’t give any warnings when compiling. Because github actions take those warnings as errors and it will break the operations. Also in the deploying stage, your workflow may give an error like below.</p><pre>ProcessError: remote: Permission to &lt;your repo link&gt; denied to github-actions[bot].fatal: unable to access &lt;your repo link&gt;: The requested URL returned error: 403</pre><p>If that error occurred you have to go to the repo Settings -&gt; Action -&gt; General -&gt; Workflow permissions and choose read and write permissions . This will fix that issue. I found this method from stackoverflow and here is the link for it.</p><blockquote><a href="https://stackoverflow.com/questions/73687176/permission-denied-to-github-actionsbot-the-requested-url-returned-error-403">https://stackoverflow.com/questions/73687176/permission-denied-to-github-actionsbot-the-requested-url-returned-error-403</a></blockquote><p>After everything is done correctly, you can make a change to your React app and commit it to the GitHub repo. After committing you can see it will automatically deploy.</p><p>So, that’s it. Finally, we came to the end of making my portfolio website. In this journey of creating my portfolio website using React.js, I’ve come to appreciate the power of modern web development tools and the endless possibilities they offer. Through the process, I learned that React.js isn’t just a library; it’s a gateway to turning your creativity into interactive web experiences. Despite the initial challenges and learning curve, the satisfaction of seeing my portfolio come to life was immensely rewarding.</p><p>So as the final thoughts, I have to say don’t hesitate to learn new things. Trust me, One day it will benefit you. When doing work you may fail the first time. But it’s okay. Always try to learn from mistakes. So, you can get a better outcome in the end.</p><p>If you are interested in seeing my portfolio website and relevant GitHub repo here are the links for that.</p><blockquote>GitHub repo: <a href="https://github.com/Thakshila-Bandara/my-portfolio">https://github.com/Thakshila-Bandara/my-portfolio</a></blockquote><blockquote>Website link: <a href="https://thakshila-bandara.github.io/my-portfolio/">https://thakshila-bandara.github.io/my-portfolio/</a></blockquote><p>So, that’s the end of my article. Hope to see you in another article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=374e85b1a895" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation techniques for interactive systems.]]></title>
            <link>https://medium.com/@thakshiladb2000/evaluation-techniques-for-interactive-systems-16cd735381?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/16cd735381</guid>
            <category><![CDATA[human-comuter-interaction]]></category>
            <category><![CDATA[interactive-systems]]></category>
            <category><![CDATA[evaluation-techniques]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Sat, 25 Mar 2023 23:47:12 GMT</pubDate>
            <atom:updated>2023-03-25T23:47:12.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*pfqSHEOU4pevb4hJHCkKZQ.png" /></figure><p>Many methods of evaluation are used by designers to create more engaging software. Evaluations can be useful for spotting possible problems, evaluating user satisfaction, and enhancing general usability. I’ll discuss the significance of this evaluation procedure in the design process in this article.</p><blockquote><strong>What is evaluation?</strong></blockquote><p>For the goal of identifying opportunities for improvement, evaluation is the process of analyzing the performance of an organization, program, project, policy, or any other intervention to determine its relevance, sufficiency, effectiveness, efficiency, and progress. In essence, it alludes to the process of weighing values and evidence to decide if a particular activity is worthwhile or significant.</p><p>We need to test our systems to ensure that they actually behave as we expect and meet user requirements and that’s the role of evaluation.</p><blockquote><strong>Goals of evaluation</strong></blockquote><p>Evaluation has three main goals.</p><ol><li><strong>Assess system functionality and usability</strong></li></ol><p>The system’s design should make it easier for users to do their intended tasks.</p><p>2. <strong>Asses effect of interface on user</strong></p><p>The system’s design should make it easy to learn about system for their users. Also need to consider about system’s usability and the user’s satisfaction under this goal.</p><p>3. <strong>Identify problems related to both the functionality and usability of the design</strong></p><p>These could be features of the design that, when used in their intended setting, lead to unexpected outcomes or user misunderstanding. This is specifically concerned with identifying trouble-spots which can then be rectified.</p><blockquote><strong>Evaluation through expert analysis</strong></blockquote><p>The evaluation phase of the design process should be continuous. A mistake is typically more expensive to fix the later in the design process it is found. In evaluation based on expertise, a designer or HCI specialist evaluates a design using well-established standard cognitive concepts or empirical findings. These methods are often known as expert analysis methods. Let’s talk about some approaches to the expert analysis below.</p><ul><li><strong>Cognitive Walkthrough</strong></li></ul><p>Cognitive walkthrough was originally proposed by Polson and colleagues. In this method, Through a series of tasks and questions posed to the user, one or more HCI experts evaluate the design and user interaction. This method’s primary objective is often to determine how simple a system is to learn. The goal of cognitive walkthrough is exploring and learning more explicitly.</p><ul><li><strong>Heuristic Evaluation</strong></li></ul><p>Heuristic evaluation, created by Jakob Nielsen and Rolf Molich, is a technique for organizing a system critique using a collection of generally applicable and straightforward heuristics. Heuristic evaluation is helpful for assessing early design because it may be done on a design specification. However, it can also be used to finished systems, storyboards, and prototypes. Therefore, it is a versatile, reasonably priced strategy. Heuristic evaluation’s main idea is that several evaluators independently assess a system to identify any potential usability issues.</p><ul><li><strong>Review-based evaluation</strong></li></ul><p>In order to calculate or simulate projected usability metrics for a proposed system, this evaluation method uses a model of how a person might use it. These predictions may take the place of or add to empirical metrics gathered from user testing. Models like the GOMS model, Keystroke-level model, Design rationale model, and Dialog models are used in these evaluations.</p><blockquote><strong>Evaluation through user participation</strong></blockquote><p>In the process of evaluation through user participation include empirical or experimental methods, observational methods, query techniques, and methods that use physiological monitoring.</p><ul><li><strong>Styles of evaluation</strong></li></ul><p>Styles of evaluation mainly divided into two distinct evaluation styles.</p><ol><li>Laboratory studies</li></ol><p>In these evaluation studies, users are removed from their typical work environment to participate in monitored testing, frequently in a specialized usability laboratory.</p><p>2. Field studies</p><p>These studies are carried out on the fields. This implies that reviewers and designers do evaluations in the user’s context.</p><ul><li><strong>Empirical methods: experimental evaluation</strong></li></ul><p>Utilizing a controlled experiment is one of the most effective ways to assess a design or a component of a design. This offers factual evidence to back up a certain assertion or premise. It can be used to research a wide range of diverse challenges at various design stages. We can quantify a hypothesis’ testing using a variety of criteria. The hypothesis is tested, the variables are examined and altered, and the participants are chosen.</p><ul><li><strong>Observational techniques</strong></li></ul><p>Observing users engaging with a system is the most popular and effective technique to learn about its real use. A number of specified tasks are requested of the users. The evaluator observes and keeps track of the users’ activities. When the observers are gathered at their home while performing their daily tasks, it is more effective. Think Aloud, Cooperative Evaluation, Protocol Analysis, Automated Analysis, and Post-task Walkthroughs are just a few examples of the different types of observational techniques.</p><ul><li><strong>Query techniques</strong></li></ul><p>This group of evaluation methods is based on directly questioning the user about the user interface. In order to obtain details of the user’s perception of a system, query techniques can be helpful. Query techniques can be mainly divide into two types.</p><ol><li>Interviews</li></ol><p>A direct and organized method of acquiring data is via interviewing users about their interactions with interactive systems. With interviews, the evaluator can go deeper into the subject of interest as it arises and the degree of questioning can be adjusted to the context.</p><p>2. Questionnaires</p><p>Giving the user a questionnaire is an additional way to querying them. Since the questions are predetermined, they are obviously less flexible than the interview technique, therefore it is likely that they will be less revealing.</p><ul><li><strong>Evaluation through monitoring physiological responses</strong></li></ul><p>This method will enable evaluation specialists to not only more clearly perceive what users do when they interact with systems, but also to quantify how the user feels it. This is due to the growing interest in ways of monitoring physiological aspects of computer system use. Utilizing methods like eye tracking and other physiological monitoring techniques, they can measure it.</p><blockquote><strong>References</strong></blockquote><p>Alan Dix, Janet Finlay, Gregory D. Abowd, Russell Beale Third Edition Human–Computer Interaction (Third Edition)</p><p><a href="https://www.evalcommunity.com/career-center/what-is-evaluation/">https://www.evalcommunity.com/career-center/what-is-evaluation/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16cd735381" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a small OS to display Hardware information (noobOS)]]></title>
            <link>https://medium.com/@thakshiladb2000/making-a-small-os-to-display-hardware-information-noobos-b333e3647bf4?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b333e3647bf4</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[assembly-language]]></category>
            <category><![CDATA[bash-script]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Fri, 11 Nov 2022 17:19:08 GMT</pubDate>
            <atom:updated>2022-11-11T17:19:08.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*5ni_CgEV2LQ0pGvpI8KZcg.png" /></figure><p>Hello Everyone !!!</p><p>This article is about how create a simple OS to display hardware information. So, it’s time to discuss about that in step-by-step.</p><p>As I previously mentioned in my article series about <a href="https://medium.com/@thakshiladb2000/developing-your-own-os-part-1-df7df4e3fa2c">Developing your own OS</a> we are using Linux based OS to build our simple OS.</p><p>First of all we have to <strong>nasm</strong> and <strong>qemu</strong> to your system. For that i used below command.</p><pre><strong>sudo apt-get install build-essential qemu genisoimage nasm</strong></pre><blockquote><strong>Bootloader</strong></blockquote><p>As the first step we need to create the bootloader of our OS. In here bootloader is used to understand the FAT12 structure and load the FAT file into memory. In the below code shows the assembly code for bootloader.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa6396475f10f9393befd060342b5e6c/href">https://medium.com/media/fa6396475f10f9393befd060342b5e6c/href</a></iframe><p>Then we need to run the following command in the terminal to compile the bootloader.asm file.</p><pre><strong>nasm bootloader.asm -o bootloader.bin -f bin</strong></pre><blockquote><strong>Kernel</strong></blockquote><p>Then we need to create the <strong>kernel</strong> of our OS. The kernel is the core of an OS. It’s performing most of the work and providing the applications with a good set of functionality.</p><p>And, here are some code snippets of the kernel.asm file.</p><ol><li>Display no. of floppy disks</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ce6bd4f4e12904dc6f60b552ddad186/href">https://medium.com/media/1ce6bd4f4e12904dc6f60b552ddad186/href</a></iframe><p>2.Display no. of serial ports</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/65ba8816ecdd614483446eae2a477e84/href">https://medium.com/media/65ba8816ecdd614483446eae2a477e84/href</a></iframe><p>3.Display no. of hard drives</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/738f4c63a578fc49073bcc5e821bfe02/href">https://medium.com/media/738f4c63a578fc49073bcc5e821bfe02/href</a></iframe><p>4.Display memory information</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad968ae2c906fe29d367df0b7e7fdc90/href">https://medium.com/media/ad968ae2c906fe29d367df0b7e7fdc90/href</a></iframe><p>5.Display CPU Vendor ID and Processor</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd398f68749495bea960e7321c3679de/href">https://medium.com/media/fd398f68749495bea960e7321c3679de/href</a></iframe><p>6. Declaring and initializing variables</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1b13b85d58730da656c6a467fb0562b/href">https://medium.com/media/a1b13b85d58730da656c6a467fb0562b/href</a></iframe><p>After finishing the kernel code, we need to compile it using below code,</p><pre><strong>nasm kernel.asm -o kernel.bin -f bin</strong></pre><p>After those steps, next we need to create a floppy image of the OS. For that here I used build-linux.sh shell scrip file. It was easy to use that file than using line-by-line commands. Here is the build-linux.sh file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db37610ea12bdd2f2e94dbf93441e345/href">https://medium.com/media/db37610ea12bdd2f2e94dbf93441e345/href</a></iframe><p>To execute build-linux.sh file we can use below command.</p><pre><strong>sudo bash ./build-linux.sh</strong></pre><p>If you willing to use line-by-coding for create floppy image here are the codes for you,</p><blockquote>To create floppy image,</blockquote><pre><strong>mkdosfs -C disk_img/noobOS.flp 1440</strong></pre><blockquote>To assemble the bootloader,</blockquote><pre><strong>nasm -O0 -w+orphan-labels -f bin -o bootloader.bin bootloader.asm</strong></pre><blockquote>To assemble our OS’ kernel,</blockquote><pre><strong>nasm -O0 -w+orphan-labels -f bin -o kernel.bin kernel.asm</strong></pre><blockquote>To add bootloader to floppy image,</blockquote><pre><strong>dd status=noxfer conv=notrunc if=bootloader.bin of=disk_img/noobOS.flp</strong></pre><blockquote>To copy our OS’ kernel,</blockquote><pre><strong>mkdir tmp-loop &amp;&amp; mount -o loop -t vfat disk_img/noobOS.flp tmp-loop &amp;&amp; cp kernel.bin tmp-loop/</strong></pre><blockquote>To unmount floppy image,</blockquote><pre><strong>umount tmp-loop</strong></pre><blockquote>To create CD-ROM ISO image,</blockquote><pre><strong>mkisofs -quiet -V &#39;MIKEOS&#39; -input-charset iso8859-1 -o disk_img/noobOS.iso -b noobOS.flp disk_images/</strong></pre><p>If the flp and ISO files already exists we need to remove them first, For that we can use below codes,</p><pre><strong>rm -f disk_img/noobOS.flp<br>rm -f disk_img/noobOS.iso</strong></pre><p>Now everything was setup. Now as final step we need to run this OS using qemu. For that, we can use below command.</p><pre><strong>qemu-system-i386 -fda ./disk_img/noobOS.flp</strong></pre><p>So, Here is our small “noobOS”,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*npBC2JBk1LSRtoz8pZFnMA.png" /></figure><p>Here is the help menu,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*e1nZ9XH98k__gZsDM3edNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*BImErS7xBalC7HYruSA6Dg.png" /></figure><p>This is the hardware information,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*xF5nR7S0c9zU838vm7DJPg.png" /></figure><p>This is the end of my article. Hope you enjoy the article. Also, you can view my full github repository of this OS from <a href="https://github.com/Thakshila-Bandara/noobOS_Extended.git">here.</a></p><p>Thank you !!!</p><blockquote>References</blockquote><p><a href="https://medium.com/setublog/hands-on-to-operating-systems-a847e9dc75f7">Hands on to Operating Systems. This article provides guidance to learn… | by Tiroshan Madushanka | setublog | Medium</a></p><p><a href="https://gimhana-ds.medium.com/simple-os-to-display-hardware-information-extend-of-josh-os-d5e06a657f0c">Simple OS to Display Hardware Information(Extend of Josh OS). | by Dineth Shan Gimhana | Medium</a></p><p><a href="https://wvganjana.medium.com/making-your-own-operating-system-f5e37baec61a">Making your own operating system. Approach for implementing an operating… | by Githmi Vithanawasam | Medium</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b333e3647bf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing your own OS — Part#3]]></title>
            <link>https://medium.com/@thakshiladb2000/developing-your-own-os-part-3-60c1c41ccdea?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/60c1c41ccdea</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[input-output]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Sat, 29 Oct 2022 06:25:21 GMT</pubDate>
            <atom:updated>2022-10-29T06:25:21.938Z</atom:updated>
            <content:encoded><![CDATA[<h3>Developing your own OS — Part#3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*iDR-C-fKX6SIjV212K0hmQ.gif" /></figure><p>This is the third article of the series of articles about how to implement your own operating system. If you are new to this article series I recommend you to start from the <a href="https://medium.com/@thakshiladb2000/developing-your-own-os-part-1-df7df4e3fa2c">#1</a> article.</p><p>Ok then. Let’s get in to work. First of all I have to say that I changed the OS that I used for creating the ‘noobOS’. Previously I used <strong>ubuntu-20.04.1-desktop-amd64 </strong>and since it started to crash in my virtual machine I changed OS to <strong>Kali Linux. </strong>From here onwards I’m using Kali Linux for developing my OS.</p><p>In this article, we discuss about how to display a text on console and writing data to the serial port.</p><p>First, let’s talk about <strong>how to display a text on console.</strong></p><p>To do that we use the <strong>Framebuffer.</strong> Framebuffer is a hardware device that is capable of displaying a memory buffer of memory on the screen. By using memory-mapped I/O we write a text to the console via framebuffer. The starting address of the memory-mapped I/O for the framebuffer is 0x000B8000 . The memory is divided into 16 bit cells, with the 16 bits determining the both the character, foreground and background color.</p><pre>Bit:     | 15 14 13 12 11 10 9 8 | 7 6 5 4 | 3 2 1 0 | <br>Content: | ASCII                 | FG      | BG      |</pre><p>Here is the available colors that we can use:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/614a9cc85da8dbbd8c3d70dd260b3fbb/href">https://medium.com/media/614a9cc85da8dbbd8c3d70dd260b3fbb/href</a></iframe><p>We can done the task writing to the framebuffer using <strong>C </strong>by treating the address 0x000B8000 as a char pointer, char *fb = (char *) 0x000B8000 .</p><p>Following code shows how we can do this using a C function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/056ba8d280042fd1e208daabce026f28/href">https://medium.com/media/056ba8d280042fd1e208daabce026f28/href</a></iframe><p>Then we can call fb_write_cell function as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2531bebef9a7f93e52717f29d23919f2/href">https://medium.com/media/2531bebef9a7f93e52717f29d23919f2/href</a></iframe><blockquote>It was easy to run if you first create fb_write_cell.c file and include it to the kmain.c file that we created in previous chapter. Also, we can call the fb_write_cell function incide of the kmain funtion.</blockquote><p>After that we can see an output like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*dl7viQrCu3c0BAECUxRTXQ.png" /><figcaption>(In here I used FB_GREEN = 3. That’s the reason for cyan color)</figcaption></figure><h4>Moving the Cursor</h4><p>Now let’s discuss about how to implement a function for moving the cursor. It is done via two different I/O ports. For the coding part we can use out assembly code. But the thing is the out assembly code instruction can’t be executed directly in C. So, we are going to create a function in assembly code to wrap out and accessed from C via the cdecl calling standard. And remeber to save this function in a file named io.s .</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac96d6e1160c71cd395527509dccde9e/href">https://medium.com/media/ac96d6e1160c71cd395527509dccde9e/href</a></iframe><p>Also, create a header io.h file too. So, we can access to the out assembly code from C.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02c1c752aa30431fb1ece2769a500d8c/href">https://medium.com/media/02c1c752aa30431fb1ece2769a500d8c/href</a></iframe><p>Moving the cursor can now be wrapped using below C function and we call it inside of the kmain function in the kmain.c file. Also, remember to update Makefile including io.o to the object section.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49c9ee0fc70d5cd448164fd9a2b63b62/href">https://medium.com/media/49c9ee0fc70d5cd448164fd9a2b63b62/href</a></iframe><p>Makefile code (changed part only):</p><pre>OBJECTS = loader.o kmain.o io.o <br>CC = gcc<br>CFLAGS = -m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector \<br> -nostartfiles -nodefaultlibs -Wall -Wextra -Werror -c</pre><p>Now you can move the cursor by calling the fb_move_cursor function inside the kmain function using below code:</p><pre>fb_move_cursor(550);  //move to the 550th position </pre><p>After booting OS again we can see the cursor like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*GH57cjTuV5sKUgbcyOEIhQ.png" /></figure><p>It’s a best practice if we make a header file to include all the c functions that related to frame buffer and call it inside of the kmain.c file without including all the functions to the kmain.c file. And the frame_buffer.h file is shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/077673e2e3e356c52ecdd0ff0f82f6bc/href">https://medium.com/media/077673e2e3e356c52ecdd0ff0f82f6bc/href</a></iframe><p>And using fb_write function we can get an output like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*USfR8ZSS5h402YiM-ebHvA.png" /></figure><p>To get an output like that we need to call fb_write function inside of kmain function.</p><h4>Writing data to the serial port</h4><p>The serial port is a port that available on almost all motherboards and it is a interface for communicating between hardware devices. The serial port is easy to use. Even though computer support for multiple serial ports, in here we only use one serial port for our work. Also, serial ports are completely controlled via I/O ports.</p><p>In here also we use a header file serial_port.h to do this task.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bff1155f2c71ede5ed5d9120976ba34e/href">https://medium.com/media/bff1155f2c71ede5ed5d9120976ba34e/href</a></iframe><p>Then we need to include below code to io.s file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/863b5fb3e9f778762b38c6f23ebd7333/href">https://medium.com/media/863b5fb3e9f778762b38c6f23ebd7333/href</a></iframe><p>Also, we need to modify io.h file using below code.</p><pre>/* in file io.h */<br> /** inb:  <br>  * Read a byte from an I/O port.  <br>  *  <br>  * @param port The address of the I/O port  <br>  * @return The read byte  <br> */ </pre><pre>unsigned char inb(unsigned short port);</pre><p>Now we can easily call serial_write function inside of the kmain.c file using serial_write.h file. In last, we need to configure our virtual machine to save the serial output from the first serial port to a file.</p><p>If you use bochs as virtual machine then modify the bochsrc.txt using below code.</p><pre>com1: enabled=1, mode=file, dev=com1.out</pre><p>If you use qemu as virtual machine, modify the Makefileusing -serial file:com1.out code part.</p><p>After that full code part for configure qemu can seen like this:</p><pre>qemu-system-i386 -boot d -cdrom os.iso -m 32 -d cpu -D logQ.txt -serial file:co1.out</pre><p>After booting our OS if we use cat co1.out command we can see the output like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*NLxVeTvR8ziRXZ4nfi8gug.png" /></figure><blockquote>That’s the end of my third article of this article series. Hope you will enjoy it. Hope to get back to you with the chapter #4.</blockquote><p>You can see the full github repository from <a href="https://github.com/Thakshila-Bandara/noobOS.git">here.</a></p><p>Thank You !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60c1c41ccdea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing your own OS — Part#2]]></title>
            <link>https://medium.com/@thakshiladb2000/developing-your-own-os-part-2-c8dd08789bd1?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8dd08789bd1</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[os-development]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 08:10:21 GMT</pubDate>
            <atom:updated>2022-10-11T09:14:25.992Z</atom:updated>
            <content:encoded><![CDATA[<h3>Developing your own OS — Part#2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*XuvIQIFZt5nzeI9lLGqJEw.jpeg" /></figure><p>This is the second article of the series of articles about how to implement our own operating system. I described how to construct the smallest OS that can be used with GRUB in the previous article. The only thing that OS did is write <strong>0xCAFEBABE </strong>to the<strong> eax </strong>register.</p><p>In this article we will talk about how to use C instead of assembly language as the programming language for the OS.</p><p>Now let’s start our work.</p><p>Firstly, we need to build a stack in assembly language before moving on to C. We could point <strong>esp</strong> in our initial approach to any random location in memory. However, this is a bad idea because we don’t know how much memory is available or if the location that <strong>esp</strong> would point to is already in use by another process. That can be avoided by making the OS executable smaller by using the <strong>bss</strong> section of the <strong>loader.s</strong> file. Using assembly language, the code below will generate a stack.</p><pre>KERNEL_STACK_SIZE equ 4096                  ; size of stack in bytes<br><br>    section .bss<br>    align 4                                     ; align at 4 bytes<br>    kernel_stack:                               ; label points to beginning of memory<br>        resb KERNEL_STACK_SIZE                  ; reserve stack for the kernel</pre><p>Then add the below code to setup the stack pointer. In here we point <strong>esp </strong>to<strong> </strong>the end of the<strong> kernel_stack </strong>memory.</p><pre>mov esp, kernel_stack + KERNEL_STACK_SIZE   ; point esp to the start of the<br>                                                ; stack (end of memory area)</pre><p>Next we try to call to a C function from assembly code. We need a basic C program called <strong>kmain.C</strong> that is independent from other files in order to complete that. This is how the function in the C file would look, and the <strong>eax</strong> register is where the function’s return value is stored.</p><pre>/* The C function */<br>    int sum_of_three(int arg1, int arg2, int arg3)<br>    {<br>        return arg1 + arg2 + arg3;<br>    }</pre><p>In the next, we can call <strong>kmain.C </strong>funtion using assembly language like below.</p><pre>; The assembly code<br>    external sum_of_three   ; the function sum_of_three is defined elsewhere<br><br>    push dword 3            ; arg3<br>    push dword 2            ; arg2<br>    push dword 1            ; arg1<br>    call sum_of_three       ; call the function, the result will be in eax</pre><p>After above steps <strong>loader.s </strong>can be seen like this,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06256b8d0824591bc714016e41647e37/href">https://medium.com/media/06256b8d0824591bc714016e41647e37/href</a></iframe><h4><strong>Compiling C code</strong></h4><p>It takes a number of flags to be used with GCC when compiling the C code for the OS. Because there isn’t a standard library available for our OS, the C code shouldn’t assume that one exists.</p><p>The flags used for compiling the C code are:</p><pre>-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles<br>    -nodefaultlibs</pre><p>When writing C programs, it is strongly advised to enable all warnings and consider them as errors. Keep this in mind.</p><h4><strong>Build Tools</strong></h4><p>To make it simpler to compile and test-run the operating system, it is a good idea to put up some build tools right away. The code below might make up a simple Makefile for the operating system.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3597a82e7eadc0fe177c5457d3b945c6/href">https://medium.com/media/3597a82e7eadc0fe177c5457d3b945c6/href</a></iframe><p>Now we can boot our operating system. To do that use a simple command <strong>make run </strong>which will compile the kernel and boot it up in qemu.</p><p>And, here is the booted OS,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*4hrQDn1ChJRRK3jm_dADcA.png" /></figure><p>After the booting up OS, when you check the log file you can find the summation EAX6=6 written in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*IEwU5SQ5cvuZaqaCrwaB3w.png" /></figure><blockquote>That’s the end of my second article of this article series. Hope you will enjoy it. Hope to get back to you with the chapter #3.</blockquote><p>If you missed the article no#1 you can read it from <a href="https://medium.com/@thakshiladb2000/developing-your-own-os-part-1-df7df4e3fa2c">here.</a></p><p>You can see the full github repository from <a href="https://github.com/Thakshila-Bandara/noobOS.git">here.</a></p><p>Thank You!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8dd08789bd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Currently available software licenses.]]></title>
            <link>https://medium.com/@thakshiladb2000/currently-available-software-licenses-6c6f0f2eb7fe?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c6f0f2eb7fe</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-licensing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Sat, 08 Oct 2022 14:26:26 GMT</pubDate>
            <atom:updated>2022-10-08T14:28:03.943Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDhFk6MU0yangpVNCeMb1Q.jpeg" /></figure><h3>What is a software license?</h3><p>A software license is some kind of agreement between an application, underlying source code, or related product and its end user under some legal terms. Legally binding definitions for the distribution and use of the software has provided by the software license. Most of the time software license is a text document that includes end-user rights such as installation, warranties, and liabilities.</p><p>The majority of software falls into one of two groups, which are treated very differently in terms of copyright law. Those groups are:</p><p><strong>· Proprietary (closed source) </strong>— Didn’t provide any authority for code modification or reuse. This category prohibits the reverse engineering of the object code.</p><p><strong>·</strong> <strong>Free and open-source software (FOSS)</strong> — Software that falls under this category provides permission to modify and reuse the source code and the freedom to inspect the software code for its users.</p><h3>Types of software license.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*fHbG3Cgg9cXPesl0IqEgGg.png" /></figure><blockquote><strong>Public domain license</strong></blockquote><p>The software that falls under a public domain license are free to use and modify without restrictions. This license allows the use of source code into other applications or projects. However, these public domain license concepts can differ in different countries. So this license type is kind of risky license type. Also, we need to be alert about software being truly public domain when we copy or reuse it because the software that does not fall under specific licensing terms is not always public domain software.</p><blockquote><strong>GNU/LGPL (GNU lesser general public license)</strong></blockquote><p>The developers that own software that falls under LGPL license have rights to link to open-source libraries within their own software. Also, the resulting code can be licensed under any other type of license. No need to license under LGPL.</p><blockquote><strong>Permissive</strong></blockquote><p>This is one of the most popular and common open-source software licenses. There are a few variations including in permissive license type.</p><p><strong>Apache 2.0</strong> — This is a permissive type of software license provided by the apache software foundation. In these licenses, users have the freedom to use the software for any purpose, modify it and distribute it under the terms of the license.</p><p><strong>BSD</strong> — This is a low-restriction open-source software license type. This license type is used for the distribution of freeware, shareware, and open-source software.</p><p><strong>MIT license</strong> — This is also a free software license created by the Massachusetts Institute of Technology (MIT). MIT license put only a few limited restrictions on reuse.</p><blockquote><strong>Copyleft</strong></blockquote><p>A copyleft license allows for the modification and distribution of licensed code as long as the new code is distributed under the same software license. Terms of the copyleft license are restrictive. This license cannot state as the best license for software developers because the resulting code also has the same copyleft license type.</p><blockquote><strong>Proprietary</strong></blockquote><p>We can state proprietary as the most restrictive software license type. The reason for this is proprietary licenses make the software ineligible for copying, modifying, or distribution. These types of licenses protect the developer from unauthorized use of the software.</p><h3>Software copyright.</h3><p>Software copyright is used to keep people away from copying intellectual property without permission from the software developers. Software copyright can be defined as legal protection for code. It is the legal right to decide who has permission to copy and distribute software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*1Jk3MnD5lXmAJlZHbEf9bg.png" /><figcaption>Copyright law (source:- <a href="https://www.uspto.gov/trademarks/basics/trademark-patent-copyright">Trademark, patent, or copyright | USPTO</a>)</figcaption></figure><h3>Ownership vs licensing.</h3><p>You get a copy of the software and a license to use it when you buy it. It doesn’t mean that you own the software. The software developer retains ownership rights, and the terms and conditions of the license continue to apply to you. That’s the difference between ownership and licensing.</p><p>Even free software, also called freeware, may come with a license that restricts how it should be used. So always read the license before installing any software.</p><blockquote>When we develop software, we should aware of the details about every software license category and copyright law. That helps us a lot to put the right software license on our product and protect our intellectual properties.</blockquote><p>That’s the end of this article. Hope you will enjoy it.</p><p>Thank You!!!</p><blockquote>References</blockquote><p><a href="https://cpl.thalesgroup.com/software-monetization/software-copyright-guide">Software Copyright Guide: Examples &amp; Protection from Infringement (thalesgroup.com)</a></p><p><a href="https://www.uspto.gov/trademarks/basics/trademark-patent-copyright">Trademark, patent, or copyright | USPTO</a></p><p><a href="https://snyk.io/learn/what-is-a-software-license/">What is a software license? 5 Types of Software Licenses | Snyk</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c6f0f2eb7fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing your own OS - Part#1]]></title>
            <link>https://medium.com/@thakshiladb2000/developing-your-own-os-part-1-df7df4e3fa2c?source=rss-2c39cf83fe5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/df7df4e3fa2c</guid>
            <category><![CDATA[operating-systems]]></category>
            <dc:creator><![CDATA[Thakshila Bandara]]></dc:creator>
            <pubDate>Sat, 01 Oct 2022 18:29:23 GMT</pubDate>
            <atom:updated>2022-10-01T19:01:36.635Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*PEdypSiKWyiQ8CN87OCpjg.jpeg" /></figure><p>This is an article series about how to implement our own operating system and this is the very first article of this series. Through these article i will explain my experience about making my own OS.</p><p>Here i’m following the guidelines of the “The little book about OS development” .</p><h3><strong>Step 1: Select a Linux based OS and a virtual machine.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*5zmmJPN500Ty-PKY1t_O8w.png" /></figure><blockquote>In here i’m used Ubuntu as the Linux based OS and the oracle virtual-box as the virtual machine.</blockquote><blockquote>In here we use a virtual machine to run Ubuntu because it is easy. it allows us to run Ubuntu as guest OS while windows run as host OS.</blockquote><h3><strong>Step 2: Launch the Ubuntu and installing necessary packages.</strong></h3><pre>sudo apt-get install build-essential nasm genisoimage qemu qemu-system-x86 </pre><p>In here i used qemu as the virtual machine to run our <em>little OS.</em></p><p><strong>Programming Languages</strong></p><p>Here I used C language as main developing language because when developing OS it requires a very precise control of the generated code and direct access to memory.</p><p>Also, for writing assembly code, I have chosen NASM.</p><h3>Step 3: Booting.</h3><p>When an operating system is booted, control is passed along a series of smaller programs, each one more “powerful” than the one before it, with the operating system acting as the final “program.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*51gyiIR-twrTcHxWHhZR2Q.png" /><figcaption>boot process</figcaption></figure><blockquote><strong>BIOS</strong></blockquote><blockquote>The BIOS program’s original purpose was to export some library features for screen printing, keyboard input reading, etc. Modern operating systems don’t use the BIOS’s features; instead, they use drivers to communicate with hardware directly, avoiding the BIOS. Currently, BIOS mostly performs some initial diagnostics (power-on-self-test) before handing off command to the boot loader.</blockquote><blockquote><strong>The Bootloader</strong></blockquote><blockquote>The bootloader’s responsibility is to hand over command to the creators of the operating system. Typically, it is divided into two sections. The first component of the bootloader will hand control over to the second component, who will then hand control over to the operating system.</blockquote><blockquote>We are not developing a bootloader in this case since doing so would require writing a lot of low-level code that communicates with the BIOS. So, we’ll employ the GNU GRand Unified Bootloader, an already-existing bootloader (GRUB).</blockquote><blockquote>The operating system can be created using GRUB as a regular ELF executable, and GRUB will load it into the appropriate memory region.</blockquote><blockquote><strong>The Operating system</strong></blockquote><blockquote>GRUB will leap to a location in memory and hand off control to the operating system. In order to confirm that it is genuinely leaping to an OS and not just some random code, GRUB will search for a magic number before the jump. The multiboot specification, to which GRUB complies, includes this magic number. The OS will have complete control over the computer once GRUB has accomplished the transition.</blockquote><blockquote>This article will describe how to implement the smallest possible OS that can be used together with GRUB. The only thing this OS will do is write 0xCAFEBABE to the eax register.</blockquote><p>First, make a folder with your name of choice. Use this folder for further works. Make sure to create all the sub-folders and files inside of this folder.</p><h3>Step 4: Compiling the OS</h3><p>Save the following assembly code in a file called <strong>loader.s</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92d747e40a04e69e7eaf6f52520f9c5b/href">https://medium.com/media/92d747e40a04e69e7eaf6f52520f9c5b/href</a></iframe><p>The file loader.s can be compiled into a 32 bits ELF object file with the following command:</p><pre>nasm -f elf32 loader.s</pre><p>The generated <strong>loader.o</strong> file will now be in the folder.</p><h3>Step 5: Linking the kernel</h3><p>Now the code needs to be linked to produce an executable file. GRUB will load the kernel at a memory address larger than or equal to 0x00100000 (1MB). Because GRUB itself, BIOS, and memory-mapped I/O all use addresses lower than 1 MB.</p><p>Save the linker script below into a file called link.ld.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5700600a0159836071c18ce7fa0eb6a3/href">https://medium.com/media/5700600a0159836071c18ce7fa0eb6a3/href</a></iframe><p>The executable file can now be linked with the following command:</p><pre>ld -T link.ld -melf_i386 loader.o -o kernel.elf</pre><p>After executing, kernel.elf file created inside the folder.</p><p>Since the OS ISO image may be created on systems utilizing both GRUB 2 and GRUB Legacy, GRUB Legacy is the version of GRUB we’ll be using. More specifically, the GRUB Legacy stage2_eltorito bootloader will be used.</p><p>The stage2_eltorito file can be downloaded from <a href="http://littleosbook.github.com/files/stage2_eltorito">here</a>.</p><p>Then copy the file stage2_eltorito to our folder.</p><h3>Step 6: Building an ISO image.</h3><p>I used ISO image files as the media. We will create the kernel ISO image with the program <em>genisoimage</em>. A folder must first be created that contains the files that will be on the ISO image. The following commands create the folder and copy the files to their correct places:</p><pre>mkdir -p iso/boot/grub          # create the folder structure cp stage2_eltorito iso/boot/grub/   # copy the bootloader cp kernel.elf cp kernel.elf iso/boot/           # copy the kernel</pre><p>A configuration file <em>menu.lst</em> for GRUB must be created. This file tells GRUB where the kernel is located and configures some options. Place the file <em>menu.lst</em> in the folder <em>iso/boot/grub/</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/255f079baac53e7c46f3b6b34c72079e/href">https://medium.com/media/255f079baac53e7c46f3b6b34c72079e/href</a></iframe><p>The contents of the iso folder should now look like the following:</p><pre>iso<br>    |-- boot<br>      |-- grub<br>      | |-- menu.lst<br>      | |-- stage2_eltorito<br>      |-- kernel.elf</pre><p>To generate ISO image, use the following command,</p><pre>genisoimage -R                              \<br>                -b boot/grub/stage2_eltorito    \<br>                -no-emul-boot                   \<br>                -boot-load-size 4               \<br>                -A os                           \<br>                -input-charset utf8             \<br>                -quiet                          \<br>                -boot-info-table                \<br>                -o os.iso                       \<br>                iso</pre><p>The ISO image os.iso now contains the kernel executable, the GRUB bootloader, and the configuration file.</p><h3>Step 7: Running the OS</h3><p>Run the following command in Ubuntu terminal:</p><pre>qemu-system-i386 -boot d -cdrom os.iso -m 32 -d cpu -D logQ.txt</pre><p>If our little OS work, you will see a screen like below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*L7zklL7p5O8sYlonYYLLlQ.png" /></figure><p>Now close the emulator window and open up the newly created file <em>logQ.txt</em>.</p><p>When you scroll down to bottom of that you can see <strong>‘cafebabe’</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ecE7tz7THb7siuqMPIp7eA.png" /></figure><p>That implies our <em>noobOS</em> has successfully booted.</p><p>You can check my github repository for this OS from <a href="https://github.com/Thakshila-Bandara/noobOS/tree/setup_booting_os">here.</a></p><blockquote><strong><em>Thank you very much for reading!</em></strong></blockquote><blockquote><strong><em>Hope to get back to you with the chapter #2.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df7df4e3fa2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>