<?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 Gihantha Kavishan on Medium]]></title>
        <description><![CDATA[Stories by Gihantha Kavishan on Medium]]></description>
        <link>https://medium.com/@gihanthakavishan?source=rss-22ce1902a980------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*anEqt3fW7tQFoSGUpnqgdg.jpeg</url>
            <title>Stories by Gihantha Kavishan on Medium</title>
            <link>https://medium.com/@gihanthakavishan?source=rss-22ce1902a980------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:15:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gihanthakavishan/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 FOSS Sytems with association with Onion Model.]]></title>
            <link>https://medium.com/@gihanthakavishan/evolution-of-foss-sytems-with-association-with-onion-model-b5189a54ae6b?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5189a54ae6b</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[foss]]></category>
            <category><![CDATA[onionarchitecture]]></category>
            <category><![CDATA[tecnology]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 20:02:09 GMT</pubDate>
            <atom:updated>2024-07-13T20:02:09.723Z</atom:updated>
            <content:encoded><![CDATA[<p>With the wide range of uses of technology within day-to-day life to ease ourselves with quite a long work chain in a day it is beneficial, so when it comes to the software world software applications are the most useful tools. When using software there are some limitations, one of them is most of the time they are not free to use. So Today we are going to talk about somewhat free-to-use which is called FOSS or Free and Open Source Software.</p><p>It allows users to freely read, alter, and distribute the source code, providing FOSS with previously unheard-of transparency and flexibility. It describes software whose source code is freely accessible for anyone to see, alter, and distribute. It is also free to use. Collaboration, openness, and community-driven development are encouraged by the guiding principles of FOSS. Important FOSS system components are as follows:</p><ul><li><strong>Freedom to Use</strong>: The software can be used for any purpose by users without any limitations.</li><li><strong>Access to Source Code</strong>: Anyone can learn how the software operates by obtaining the source code.</li><li><strong>Freedom to Modify</strong>: The programme can be altered by users to fit their needs.</li><li><strong>Freedom to Distribute</strong>: Users are free to share modified or unmodified copies of the software.</li></ul><p><strong>History and GNU project of Foss Systems</strong></p><p>The GNU Project has played a crucial part in shaping the current computing landscape, and the history of the Free and Open Source Software (FOSS) system is replete with noteworthy turning points. With the audacious aim of creating a free operating system akin to Unix, Richard Stallman launched the GNU Project in 1983. This was a reaction to the increasing prevalence of proprietary software, which limited user autonomy and impeded teamwork. With the GNU General Public Licence (GPL), the GNU Project and the Free Software Foundation (FSF), established by Richard Stallman in 1985, introduced the idea of copyleft. The software remained free for all users to examine, alter, and distribute thanks to this licence. Building on the GNU Project’s progress, Linus Torvalds eventually released the Linux kernel in 1991. When paired with other GNU components, this kernel produced a completely working free operating system. The strong and viable nature of community-driven software development was demonstrated by the widespread adoption and expansion of FOSS, which was fueled by the great synergy between GNU and Linux. Currently, the GNU Project’s guiding principles still shape the culture of FOSS, encouraging openness, creativity, and mutual advancement.</p><p><strong>Benefits of FOSS Sytems</strong></p><p>There are several advantages of using FOSS systems such as,</p><p><strong>1. Cost Savings -</strong>FOSS lowers the total cost of software ownership by doing away with the requirement for costly licensing fees. Organisations are able to direct funding towards other important areas because there are no upfront charges and lower ongoing expenses.</p><p>2. <strong>Security and Reliability-</strong>The ability to thoroughly review the source code through open access facilitates the identification and repair of vulnerabilities. The code is constantly reviewed and improved by a sizable user and development community, resulting in software that is more reliable and secure. The community is adept at spotting and fixing bugs and security issues, which lowers risk and downtime.</p><p>3. <strong>Innovation and Quality</strong>- Since developers from all around the world offer fresh concepts and advancements, the collaborative nature of FOSS fosters creativity. Software that has undergone extensive testing and continuous peer review is of the highest calibre.</p><p>4. <strong>Ethical and Social Impact-</strong> FOSS gives users the flexibility to use, alter, and share software in any way they see fit. FOSS contributes to closing the digital divide by lowering barriers to software access, enabling people and businesses of all income levels to use it. Software development approaches that are sustainable are supported by FOSS’s transparent and collaborative character.</p><p>5. <strong>Scalability and Performance- Numerous</strong> free and open-source software solutions are extremely flexible and adaptable to various settings and needs, ranging from small startups to major corporations.FOSS can be tailored by users to meet particular performance needs, resulting in more effective and efficient software solutions.</p><p><strong>Association with Onion model</strong></p><p>The Onion Model is a conceptual framework that is used in many different fields to represent layered structures that are protective, abstract, or sophisticated. It is modelled after the layers that surround the core of an onion. It serves as an example of a multi-layered defence technique in computer security, where each layer adds an extra layer of protection, making it harder for attackers to get through. The Onion Model is a technique used in software development that divides code into layers to improve maintainability and separate concerns. The core layer, which is surrounded by service and interface layers, often represents domain entities and business logic.</p><p>The same ideas of layered structure and flexibility between Free and Open Source Software (FOSS) systems and the Onion Model are the reason for their relationship. To provide a clear separation of concerns, improve maintainability, and promote collaborative development, the Onion Model is frequently used into the development process of FOSS systems. In a free and open source software system, each layer may represent a separate functionality. For example, the core layer may handle application services and user interfaces, while the outer layers may handle domain entities and the necessary business logic. In keeping with the open-source ethos, this tiered approach enables developers to concentrate on particular software components without upsetting the entire system. Moreover, FOSS systems can use strong, multi-layered defence mechanisms in the context of security by using the Onion Model. This way, even in the event that one layer of security is breached, subsequent layers of protection will shield the essential components. Therefore, the modular, transparent, and collaborative aspects of FOSS are enhanced by the Onion Model’s framework for managing and safeguarding big systems, which encourages both strong architecture and community-driven innovation.</p><p>Finally, the analysis of FOSS (Free and Open Source Software) systems demonstrates how revolutionary they have been for the software sector. GNU Project’s founding and the emergence of the Linux operating system highlight the history of FOSS, which points to a movement in the direction of increased openness and community-driven innovation. Furthermore, layered architectures are crucial to creating reliable, maintainable, and secure software solutions, as demonstrated by the connection between FOSS systems and the Onion Model. FOSS systems can further increase their dependability and resilience by utilising the Onion Model to enforce unambiguous separation of concerns and multi-layered defence mechanisms. FOSS systems, in general, are a dynamic and sustainable approach to software innovation, demonstrating the power of structured development and open collaboration.</p><p>Hope you guys have some idea about FOSS systems as well as the onion model as well. So keeping touch for reading to these kinds of interesting blogs.</p><p><strong>References</strong></p><ol><li>Wikipedia (2024) <a href="https://en.wikipedia.org/wiki/Free_and_open-source_software"><strong>https://en.wikipedia.org/wiki/Free_and_open-source_software</strong></a><strong>.</strong></li><li>Heimdal Security <a href="https://heimdalsecurity.com/blog/foss-software/"><strong>https://heimdalsecurity.com/blog/foss-software/</strong></a><strong>.</strong></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5189a54ae6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tools for software process management.]]></title>
            <link>https://medium.com/@gihanthakavishan/tools-for-software-process-management-106d86715109?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/106d86715109</guid>
            <category><![CDATA[software-process]]></category>
            <category><![CDATA[project-management-tool]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Tue, 20 Feb 2024 12:02:11 GMT</pubDate>
            <atom:updated>2024-02-20T12:02:11.085Z</atom:updated>
            <content:encoded><![CDATA[<p>In the modern world software development is one of the key global reached industry. In there, a lot of techniques and processes are used to enhance the quality of the software development industry. One of the major methodologies used there is called software process management. Software process management involves systematic planning, implementation, monitoring, and improvement of the development and maintenance of software systems. Software process management is mainly focused on enhancing the efficiency, effectiveness, and quality of the software development life cycle. there are a few key aspects in this process such as process planning, process implementation, process monitoring, process control, process improvement and documentation.</p><p>So, there are lot of stuff to do in process management. Well, if there is a helper to do so then that would be a great relief. Then that is where the software process management tools come into play. So, what are these software process management tools? let’s dig in, Software process management tools are applications or platforms designed to assist organizations in planning, implementing, monitoring, and improving their software development processes. There are different types of software process management tools such as Project Management Tools, Version Control Systems, Continuous Integration/Continuous Deployment (CI/CD) Tools, Issue Tracking and Bug Tracking Tools, Collaboration Tools, Metrics and Analytics Tools, Process Modeling and Workflow Tools, Documentation Tools and Configuration Management Tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*x4h5Jvv2fZlMc365-tN0Bw.png" /></figure><p>Today let’s talk about software project management tools, their features, advantages and limitations. There are so many software management tools like Jira, Click Up, Clarizen, Trello, Basecamp, Asana etc.</p><h3>Jira</h3><p>Jira was developed by Atlassian in 2002 focusing on bug tracking. However, around 2012 it started to be used for project management. Then Jira started to be involved in bug tracking, Agile developers to customize the workflow, and the help desk system and track project-level issues like documentation and environmental issues.</p><p><strong><em>Features</em></strong></p><p><strong>· Issues Tracking</strong> — helps to create, track and manage issues within the project.</p><p><strong>· Agile Boards</strong> — used to plan, track, and manage the task using agile methods.</p><p><strong>· Roadmaps</strong> — support to plan and communicate the progress over time.</p><p><strong>· Advanced search and filters </strong>— provide powerful query language to searching and filtering.</p><p><strong>· Automation </strong>— enables to automation of repetitive tasks and processes.</p><p><strong><em>Pros</em></strong></p><p><strong>· Customization and high scalability.</strong></p><p><strong>· Agile methods support.</strong></p><p><strong>· Integration capabilities</strong></p><p><strong>· Regular updates and marketplace add-ons.</strong></p><p><strong>· Good level of security and permissions provides.</strong></p><p><strong><em>Boundaries</em></strong></p><p><strong>· Complexity for new users.</strong></p><p><strong>· Cost.</strong></p><p><strong>· Dependency and add-ons.</strong></p><p><strong>· Steep server requirements.</strong></p><p><strong>· Mobile app and agile limitations.</strong></p><h3>Click Up</h3><p>This is a cloud-based project management tool which is used for task management, collaboration, documentation and more.</p><p><strong><em>Features</em></strong></p><p><strong>· Task management</strong> — helps manage tasks and processes.</p><p><strong>· Gantt charts </strong>— to track the timeline of the project</p><p><strong>· Goal and object and key results tracking</strong> — can be used to track the goal and help teams to align with them.</p><p><strong>· Views and dashboards </strong>— provide multiple views and customize the dashboard to track the progress.</p><p><strong>· Automation and Mobile accessibility </strong>— provide automation for processes as well as mobile accessibility to the platform.</p><p><strong><em>Pors</em></strong></p><p><strong>· High customization availability.</strong></p><p><strong>· Versatile task management.</strong></p><p><strong>· Provide Integration and automation.</strong></p><p><strong>· Provides Kanban boards for linear task view.</strong></p><p><strong>· Provides documentation management.</strong></p><p><strong><em>Boundaries</em></strong></p><p><strong>· Too many notifications.</strong></p><p><strong>· Difficult learning curve.</strong></p><p><strong>· Feature overloads.</strong></p><p><strong>· Performance issues with large data sets.</strong></p><p><strong>· Expensiveness.</strong></p><h3>Clarizen</h3><p>This is an online project management software tool with an engaging social interface as well. Its interface is much easy to configure and personalize and it helps to improve the efficiency and effectiveness of use.</p><p><strong><em>Features</em></strong></p><p><strong>· Interactive Gantt charts</strong> — enables advanced project scheduling with planning and dependencies.</p><p><strong>· Customizable dashboards</strong> — provide real-time visibility into key metrics to enable data-driven decisions.</p><p><strong>· Collaboration tools</strong> — improves team communication and collaboration.</p><p><strong>· Resource management</strong> — helps to optimize the resource allocation.</p><p><strong>· API and integration</strong> — seamless integration with existing systems to maximize ROI.</p><p><strong><em>Pros</em></strong></p><p><strong>· Comprehensive project management.</strong></p><p><strong>· Portfolio management.</strong></p><p><strong>· Collaboration and effective communication.</strong></p><p><strong>· Effective dashboards and reporting methods.</strong></p><p><strong>· Integration and automation capabilities.</strong></p><p><strong><em>Boundaries</em></strong></p><p><strong>· Complexity for small projects.</strong></p><p><strong>· Dependency on internet connectivity.</strong></p><p><strong>· Limited reporting customization.</strong></p><p><strong>· Difficult learning curve.</strong></p><p><strong>· Expensiveness.</strong></p><h3>Trello</h3><p>Trello is a tool which may perform web-based project management and collaboration. that uses boards, lists, and cards to help individuals and teams organize and manage their work. This is easy to use because of its’ simplicity and flexibility making it suitable for a variety of projects.</p><p><strong><em>Features</em></strong></p><p><strong>· Boards, Lists and Cards </strong>— organize work using boards, lists and cards.</p><p>·<strong> Visual Kanban Style</strong> — allows users to move cards across lists on a board with a clear overview of the progress of tasks.</p><p><strong>· Integration with third-party tools</strong> — can connect with third-party tools like Google Drive, Dropbox and Slack.</p><p><strong>· Card voting</strong> — can be used to gather input from team or stakeholders.</p><p><strong>· Simple drag and drop interface </strong>— helps to easily move cards between lists and boards, updates due dates and changes the task details.</p><p><strong>· Searching and Filtering</strong> — supports to find cards, boards and other information immediately.</p><p><strong><em>Pros</em></strong></p><p><strong>· Instantaneous Real-time updates.</strong></p><p><strong>· Effortless member addition.</strong></p><p><strong>· Adaptive responsive design.</strong></p><p><strong>· Efficient Kanban system.</strong></p><p><strong>· Simple and affordable pricing.</strong></p><p><strong>· Exceptional User Friendliness.</strong></p><p><strong><em>Boundaries</em></strong></p><p><strong>· Insufficiently advanced features.</strong></p><p><strong>· Scalability and data security concerns.</strong></p><p><strong>· Dependency on external integration.</strong></p><p><strong>· Limited customizability.</strong></p><p><strong>· Risk of Information overload.</strong></p><h3>Basecamp</h3><p>Basecamp is a web-based project management, and team collaboration tool with provides communication, collaboration, and project organization. Which is built by LLC, Basecamp company and is well known for its simplicity and effectiveness in use.</p><p><strong><em>Features</em></strong></p><p><strong>· Project and teams</strong> — organize work as projects and each of them includes teams or groups.</p><p><strong>· To-Do Lists </strong>— within each project users can create to-do lists to outline tasks and activities.</p><p><strong>· Message Boards </strong>— By using this members can post updates, announcements and discussions.</p><p><strong>· File sharing</strong> — provides file storage and sharing capabilities.</p><p><strong>· Check-ins</strong> — allow users to set up automatic check-ins for members to provide status updates.</p><p><strong>· Document Versioning </strong>— automatically tracks versions of documents, ensuring the update of those documents.</p><p><strong><em>Pros</em></strong></p><p><strong>· Ease of learning and use.</strong></p><p><strong>· Ability to create client-specific projects.</strong></p><p><strong>· Excellent customer support and affordable pricing.</strong></p><p><strong>· Data backup</strong></p><p><strong>· Effective communication features.</strong></p><p><strong><em>Boundaries</em></strong></p><p><strong>· No time tracking</strong></p><p><strong>· No tags and labels.</strong></p><p><strong>· Limitations in customization.</strong></p><p><strong>· Lack of advanced features.</strong></p><p><strong>· Limited chat management.</strong></p><p>Today we discuss software project management under software process management. Here we get to know about various project management tools, their several key features which are good to know before use, their advantages of use in use with compare to others and their boundaries. So that is the end of today’s blog and keep in touch for more of this kind of articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=106d86715109" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s get to know about APIs.]]></title>
            <link>https://medium.com/@gihanthakavishan/lets-get-to-know-about-apis-a4130881844d?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4130881844d</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 11:20:02 GMT</pubDate>
            <atom:updated>2023-11-25T11:20:02.617Z</atom:updated>
            <content:encoded><![CDATA[<p>Today we are going to look into a very vulnerable topic in software development. It is none other than the APIs or Application Programming interfaces.</p><h3><em>So What is an API?</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oCRSrwpKlc2AHO-XdYV7kw.jpeg" /></figure><p>The application programming interface is a set of protocols or rules used by programs or applications to communicate with each other. API is an intermediate layer to process and transfer data among the systems. then it lets companies to available their company data to external developers, business patterns and internal departments within the company. Simply, API helps programs to communicate with each other by providing essential tools and functionalities to do so.</p><h3>How does API work?</h3><p>The easiest way to understand how API works is to take an example;</p><p>When you are doing online shopping and making payments then it comes to third-party payment processing gateways. this process relies on the APIs to make the connection.</p><p>When you click the payment button, API call or request to retrieve information, the application makes a request to the server via the Uniform resource identifier it includes request verbs, header and sometimes request body. Next after receiving a valid request from the product page API makes a call to the third-party payment system. Then the server sends a response to the API with the requested information. After that API transfers data to the product website.</p><p>there are a few types of APIs categorized on how they work,</p><ol><li><strong><em>SOAP APIs</em>: —</strong> simple object access protocol, that is used to send messages between client and server using XML.</li><li><strong><em>RPC APIs</em></strong>: — remote producer calls, the client finishes a function on the server, and then the server sends back outputs to the client.</li><li><strong><em>Websocket APIs</em></strong>: — uses Jason object to pass data, this helps two-way communication between client and server. the server can send callback messages to the connected server it more efficient than the rest APIs.</li><li><strong><em>Rest APIs</em></strong><em>:</em> — most popular and flexible API, the client sends a request to the server as data and the server uses that data to start internal functions and sends back output data to the client.</li></ol><h3>How to create an API.</h3><p>there are several steps in this process, let’s go through them one by one.</p><p><strong>[!]</strong> <strong><em>Plan the API</em></strong> — define the specifications, such as OpenAPI, and create the blueprint for API design. It is better to think of various use cases and ensure API development standards.</p><p><strong>[!!] <em>Build the API</em> — </strong>boilerplate code is used to create the API’s prototype. Then developer can customize the internal specification of the tested prototype.</p><p><strong>[!!!]<em>Test the API</em> —</strong> testing ensures the API is free of bugs and defects as well as strengthens the API against cyber attacks.ex:- Jmeter, Postman,Apigee.</p><p><strong>[!V]<em>Document the API</em> — </strong>well-documented APIs can improve usability, offer a wide range of functionality and use cases in service-oriented architecture.</p><p><strong>[V]Market the API —</strong> Marketplaces exist for developers to purchase and sell their APIs. ex:- Amozon.</p><h3>Types of APIs.</h3><p><strong><em>A. Open APIs</em></strong>: — open source APIs or public APIs, users can access using HTTP protocols. Users define the endpoints, requests and response types.</p><p><strong><em>B. Partner APIs:</em></strong> — connect strategic business partners. developers access these APIS in self-service mode via a public API developer portal. but they must finish an onboarding process and get login credentials to access partner APIs.</p><p><strong><em>C. Internal APIS: — </em></strong>private APIs, that are not available for outside users of the company and remain hidden from external users. it is intended to improve productivity and communication across different internal development teams.</p><p><strong><em>D. Composite APIs:</em></strong> — combine multiple data or service APIs. Using a single call developers can access several endpoints. Composite APIs are useful in microservices architecture where performing a single task may require information from several sources.</p><h3>Common Usages of APIs.</h3><p>APIs allow open access to the company resources while maintaining security and control, so they have been taken as the most useful asset in the modern business world and personal applications. followings are a few popular use cases,</p><ol><li><strong><em>Universal login;</em></strong></li></ol><p>API enables users to log in to websites by using their Facebook, Twitter, or Google profile login details. With the help of this useful feature, any website may quickly authenticate users by utilising an API from a well-known provider, saving them the time and trouble of creating new profiles for each new online application or member.</p><p><strong><em>2. Internet of Things (IoT)</em></strong></p><p>By means of APIs, these “smart devices” provide extra features like touchscreens that can access the internet and data collection capabilities. A smart refrigerator, for instance, can transmit notes to mobile phones or link to recipe apps.</p><p><strong><em>3. Travel booking comparisons</em></strong></p><p>Websites for planning travel compile thousands of airline alternatives and display the most affordable choices for each day and location. By enabling application users to access the most recent availability data from hotels and airlines through a web browser or the travel booking company’s own application, APIs enable this service.</p><p><strong><em>4. Mapping apps</em></strong></p><p>These apps leverage additional features and APIs in addition to the main ones that show static or live maps to give users information like traffic alerts, directions, speed limits, and sites of interest. When creating trip routes or tracking moving objects, such as delivery vehicles, users interact with an API.</p><p><strong><em>5. SaaS applications</em></strong></p><p>Software-as-a-service (SaaS) product growth is mostly due to APIs. Numerous built-in APIs are frequently included in platforms like CRMs (customer relationship management tools), which enable businesses to interact with programs they currently use, such as email, social media, and messaging.</p><p><strong>Additional Points</strong></p><ul><li><em>The final touchpoints in the API communication are called the API endpoints, those may include server URLs, services, and other specific digital locations from where information is sent and received between systems. API endpoints ensure the security of the system vulnerable to attack and monitoring to avoid misuse. then system performance is affected by the high-traffic endpoints.</em></li><li><em>A tool for managing APIs used by enterprise clients that utilise a variety of back-end services is called an API gateway. Common tasks that are applicable to all API calls, such as rate management, statistics, and user authentication, are usually handled by API gateways.</em></li></ul><p>So today We talked about some information about APIs and got started with knowing the APIs, one of the best ways to gain knowledge is reading so read and improve your knowledge and keep in touch with me to read this kind of interesting stuff.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4130881844d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation techniques for interactive systems]]></title>
            <link>https://medium.com/@gihanthakavishan/evaluation-techniques-for-interactive-systems-43831f45d385?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/43831f45d385</guid>
            <category><![CDATA[design-techniques]]></category>
            <category><![CDATA[systems-development]]></category>
            <category><![CDATA[interactive]]></category>
            <category><![CDATA[interaction-design]]></category>
            <category><![CDATA[evaluation-techniques]]></category>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 17:22:13 GMT</pubDate>
            <atom:updated>2023-03-27T17:22:13.936Z</atom:updated>
            <content:encoded><![CDATA[<p>To begin with, today’s article is about evaluation techniques for interactive systems. First of all, let’s look at what the evaluation is.</p><h4><strong>Evaluation</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-AUEGnjHvSm6Omn7W8Z2Q.png" /></figure><p>The evaluation identifies as reviewing, trying out, or testing a design idea in a software product or service to whether it covers essential criteria in the systems. The main role of the evaluation is to check if the system covers all the user requirements and behaves according to the expected way. the evaluation must proceed within the whole life cycle of the design process. so then by going through the results or feedback we are able to necessary modifications to the design. Apart from that evaluation must test the usability and functionality of the system, and evaluates both design and implementation. After getting an idea of what is evaluation now see what are the major goals of it.</p><h4><strong>Goals of evaluation</strong></h4><p>when it comes to the goals of the evaluation we can categorize those into three main sectors.</p><ol><li><strong>Assess system functionality and usability</strong></li></ol><p>System design always must have easy ways to perform the user-expected task. it concludes that the appropriate functionality is available within the system, and also how easily the user reaches out in terms of the actions that the user must proceed with the task. then this involves system use must cover the user expectations.</p><p>2. <strong>Asses the effect of the interface on a user</strong></p><p>It is always important to get the feedback on user’s experiences upon the interaction and its impacts on the user. So this includes how easily the system can learn, system usability, and user satisfaction with the system. it sometimes includes emotional responses of the user when it depends o the user’s leisure or entertainment.</p><p>3. <strong>Identify problems related to both the functionality and usability of the design</strong></p><p>In some situations, the indented context may cause unwilling results or it will create confusion among the user. This may include functionality and usability. However when the trouble identifies then it can be corrected.</p><h4><strong>Evaluation through expert analysis</strong></h4><p>It is always expensive and inaccurate the get user testing upon an incomplete design or prototype. So there are a few methods that can be evaluated through expert analysis. those depend on the designer or a human factors expert. These methods can use at any stage of the process and they are somewhat cheap than user testing.</p><ol><li><strong>Cognitive Walkthrough.</strong></li></ol><p>A cognitive walkthrough is proposed by Polson and his colleagues. This always needs a detailed review of a sequence of actions. The steps a user must take through an interface in order to complete a specific task are referred to as the sequence of actions. This focuses on learning through exploration and usually, this is performed by experts in cognitive psychology. Walkthroughs are designed to recognize potential problems using psychological principles.</p><p>To do a walk-through;</p><ol><li><strong>A specification or prototype of the system</strong>(must be detailed like location..).</li><li><strong>A description of the task the user is to perform on the system</strong>(mostly performed task).</li><li><strong>A complete, written list of the actions needed to complete the task with the proposed system.</strong></li><li><strong>An indication of who the users are and what kind of experience and knowledge the evaluators can assume about them</strong>.</li></ol><p>After gathering this information the evaluators build a believable story about usability. To do this evaluator must answer the following in each step of the sequence questions.</p><ol><li><strong>Is the effect of the action the same as the user’s goal at that point?</strong></li><li><strong>Will users see that the action is available?</strong></li><li><strong>Once users have found the correct action, will they know it is the one they need?</strong></li><li><strong>After the action is taken, will users understand the feedback they get?</strong></li></ol><p>2. <strong>Heuristic Evaluation</strong></p><p>Heuristic evaluation is proposed by Nielsen and Molich.Method for organizing a system critique utilizing a collection of straightforward and all-purpose heuristics. Design is examined for heuristics violations. There are ten heuristics to follow in the design process.</p><ol><li><strong>Visibility of system status</strong></li><li><strong>Match between the system and the real world</strong></li><li><strong>User control and freedom</strong></li><li><strong>Consistency and standards</strong></li><li><strong>Error prevention</strong></li><li><strong>Recognition rather than recall</strong></li><li><strong>Flexibility and efficiency of use</strong></li><li><strong>Aesthetic and minimalist design</strong></li><li><strong>Help users recognize, diagnose and recover from errors</strong></li><li><strong>Help and documentation</strong></li></ol><p>3. <strong>Review-based evaluation</strong></p><p>Review-based evaluation or model-based evaluation, In here results from the literature were utilized to confirm or deny various design elements. Cognitive models use for filter design options, e.g:- GOMS and lower-level modeling techniques. Design rationale provides important evaluation data. Dialog models implement to evaluate dialog sequences for problems and complexity. State transition networks are helpful in evaluating designs prior to implementation.</p><h4>Evaluation through user participation</h4><p>Although evaluation through expert analysis is good, it is not better than usability testing with the real users of the system. When it comes to evaluation through user participation, there are a few methods here,</p><p><strong>Styles of evaluation</strong></p><p>There are two methods of evaluation such as</p><ol><li><strong>Laboratory studies </strong>— In the first type of evaluation studies, where users are in a controlled environment and separate from the normal environment. This approach is good but sometimes their situation here differs from real-world situations.</li><li><strong>Field studies</strong> — the next one is field studies, In here evaluator or the designer approaches the user’s work environment and then checks how the system works.</li></ol><p><strong>Empirical methods: experimental evaluation</strong></p><p>One of the most effective methods of design evaluation is a controlled experiment. It can be used to investigate a wide range of topics at various levels of depth.</p><p>in this method followings are the most important components to consider,</p><ol><li><strong>Participants</strong> — The participants should be selected to closely reflect the anticipated user population. They ought to fairly represent the user base.</li><li><strong>Variables </strong>—In order to test the hypothesis, these variables are changed and measured in carefully supervised settings.</li><li><strong>Hypotheses</strong> — a forecast of the experiment’s result.</li></ol><p><strong>Observational techniques</strong></p><p>One of the famous ways to collect information about the real use of a system is to observe users interacting with it. The evaluator observes and takes the necessary note about the user’s performance. Simple observation is rarely adequate to establish how well the system satisfies the users’ expectations because it does not always provide insight into their decision processes or attitude. Let’s see some of techiques ,</p><ol><li><strong>Think-aloud and cooperative evaluation</strong> — This is a type of observation in which the user is asked to explain what he is doing while being observed. Cooperative evaluation is a version on think aloud that encourages the user to perceive himself as a collaborator in the evaluation rather than just an experimental subject.</li><li><strong>Protocol analysis</strong> — Researchers use this strategy to observe and assess participants’ verbal and nonverbal actions as they complete a task or interact with a product. this may include such as paper and pencil, audio recording, video recording, Computer logging, and user notebooks.</li><li><strong>Automated analysis</strong> — In this method using automatic analysis tools for supporting the task. These provide a method for editing, annotating, and synchronizing video, audio, and system logs for in-depth study. These include the programs EVA and DRUM.</li><li><strong>Post-task walkthroughs </strong>— This method allows researchers to understand how consumers think and identify areas for improvement. Participants are asked to reflect on their experience with a product or service after completing a task.</li></ol><p><strong>Query techniques</strong></p><p>The next evaluation techniques are query technique in which here evaluator asks directly about the interfaces from the user. This may give an idea about the user&#39;s view of the system. there are two types of query methods such as interviews and questionnaires.</p><ol><li><strong>Interviews —</strong> this is a well-organized method of gathering data from the user here evaluator directly asks to communicate with the user and get feedback on interactions with interactive systems.</li><li><strong>Questionnaires — </strong>this is the next method of query techniques, here evaluator provides a set of questions for the user and then get their feedback on them but this is not comfortable in interviews inhere always user gets a set of question which are already noted down.</li></ol><h4>Evaluation through monitoring physiological responses</h4><p>Most evaluation approaches have the disadvantage of relying on user reports of what they are doing and feeling, as well as observation. What if we are able to measure these things directly? there are two types of these measures that can measure directly,</p><ol><li><strong>Eye tracking for usability evaluation — </strong>Although eye tracking has been possible for many years, new advances in hardware and software have made it more viable as a method of gauging usability.</li><li><strong>Physiological measurements — </strong>Physiological changes are directly linked to emotional responses. Changes in heart rate, respiration, and skin secretions are examples. Measuring these physiological responses may thus be beneficial in determining an interface’s emotional response.</li></ol><p>To conclude the article here we look at to wide range of evaluation techniques depending on various circumstances, evaluation is one of the most important parts of the design process that should take place throughout the design life cycle. so thank you for reading and keep in touch with me for more valuable articles.</p><p><strong><em>References</em></strong></p><p>Alan Dix, Janet Finlay, Gregory D. Abowd, Russell Beale Third Edition Human-Computer Interaction (Third Edition)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43831f45d385" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GWos simple operating system to show the hardware details of a machine.]]></title>
            <link>https://medium.com/@gihanthakavishan/simple-os-to-display-hardware-information-gwos-e35d6714a746?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/e35d6714a746</guid>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Fri, 11 Nov 2022 12:07:02 GMT</pubDate>
            <atom:updated>2022-11-11T16:14:03.619Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s start the journey to build a small operating system, today I am going to build a small operating system called <strong><em>GWos</em></strong> which is able to hardware information about the computer. Here I used JOSH operating system to build this and JOSH is an operating system for educational purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*JRneo2eW2pdOhYmVgv0rKg.png" /></figure><p>A basic understanding of some assembly language functions and operations is required to complete this operating system. This operating system can be run in a virtual box or with the QEMU emulator. As a result, before beginning the creation of the OS, a compiler called Nasm is sometimes required for compiling. To install both of them in Ubuntu, run the following command:</p><pre>sudo apt-get install build-essential qemu nasm</pre><p>This is the root folder of the GWos;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*MYSqtmval16uIrlMsL8IEw.png" /></figure><p><strong><em>‘source’</em></strong><em> </em>folder<em> </em>Contains the Main Assembly code of the OS</p><p><strong><em>source/bootload</em></strong> folder contains <strong>bootload.asm</strong> file which will create <strong>bootload.bin</strong> . Actually, <strong>bootload.bin </strong>file was created when the disk image was building.</p><p><strong>source/kernel.asm</strong> —<strong> Kernel.asm</strong> is the main kernel source file, and it contains the source code required to display hardware information. Following the compilation of the source code, the <strong>kernel.asm</strong> file will generate the<strong> kernel.bin</strong> file.</p><p><strong><em>disk_image</em></strong> — This folder contains <strong>GWos.iso </strong>and<strong> GWos.flp </strong>file and those are the files to boot the os.</p><p><strong><em>build-linux.sh</em></strong> — This is the main build script for the <strong>GWos.</strong></p><p>Next, we have created all of the necessary files (refer to this page), we can boot our operating system from a pen drive or floppy disk. Mount a pen drive with the mmpos.iso file from the disk images folder and use it to boot the virtual machine. Alternatively, you can boot the OS by mounting the <strong>GWos.flp </strong>file to a floppy disk.</p><p>As I previously stated, there is an alternative method. using the QEMU emulator We have already installed it using the above command, which was mentioned in the prerequisites section.</p><p>To boot with QEMU we need to run the below command,</p><pre>sudo bash ./build-linux.sh</pre><p>After that, you can investigate. Several bin files should have been created, including<strong> kernal.bin, bootload.bin</strong>, <strong>GWos.iso,</strong> and <strong>GWos.flp</strong> in the disk images folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*Pj1998OHXraSucCO5EBWhQ.png" /></figure><p>Now in the <strong>disk_images</strong> folder, we run the below command.</p><pre>qemu-system-i386 -fda ./disk_images/GWos.flp</pre><p>Then QEMU emulator shows the below results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCfvi_FZR-WEjFXc0X9eFg.png" /></figure><p>Then in the QEMU emulator, you can write the<strong><em> help</em></strong> command it shows available commands. With using <strong><em>Show</em></strong> command we can see the hardware information in the computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*ZJSapq3v703W0D3SkcN3ag.png" /></figure><p>Cheers ..!! now we achieve the our goals , now our operating system showa the required hardware details in the machine.</p><p><strong>Source code;</strong></p><p><a href="https://github.com/gihanthakavishan/GWos-new-version">GitHub - gihanthakavishan/GWos-new-version: primitive simple operating system</a></p><p><strong>References;</strong></p><p><a href="https://littleosbook.github.io/">The little book about OS development (littleosbook.github.io)</a></p><p><a href="https://thiluxan.medium.com/simple-operating-system-tlux-os-ac6c6a4fe2dc">Simple Operating System — TLUX_OS | by Thiluxan | Medium</a></p><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><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e35d6714a746" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your Primitive OS (03)]]></title>
            <link>https://medium.com/@gihanthakavishan/build-your-primitive-os-03-adb33e9ce3b6?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/adb33e9ce3b6</guid>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Fri, 28 Oct 2022 19:51:46 GMT</pubDate>
            <atom:updated>2022-11-02T18:13:16.863Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s start today&#39;s discussion on building primitive operating systems last we talked about how to use c language and implement the operating system. Today we are going to talk about how to use those features and assembly language to integrate outputs into our OS.</p><p>First, we have to create a driver for the <em>frame buffer </em>to show text on the console.</p><h4>The Framebuffer</h4><p>A hardware component called the frame buffer can project a memory buffer onto the screen. With 25 rows and 80 columns, the frame buffer’s row and column indices begin at 0. (So, rows are labeled 0–24).</p><p>The hardware will be updated with the new data if you write to a specified memory address using the frame buffer’s memory-mapped I/O. The frame buffer’s memory mapped I/starting O’s address is 0x000B8000. The 16 bits in each 16-bit cell — which make up the memory — determine the character as well as the foreground and background colors.</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>then comes the available colors and you can pick whatever you want.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6498fa5220f1332459f022607b0d36ba/href">https://medium.com/media/6498fa5220f1332459f022607b0d36ba/href</a></iframe><p>So, if you write the value <strong>0x7141</strong> to address 0x000B8000, you will see the letter A in cyan color on a black background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*UUow3BqoxblULuiCyol3lA.jpeg" /></figure><p>The first cell on the console corresponds to row 0 and column 0. We can see that the letter “A” is represented by the ASCII code 0x41, or 65. In order to write the character A at position (0,0) with a green foreground (2) and a dark grey background (8), the following assembly code instruction is used:</p><pre><strong>mov [0x000B8000], 0x7141</strong></pre><p>Writing to the frame buffer can also be done in C by treating the address 0x000B8000 as a char pointer.</p><pre><strong>char *fb = (char *) 0x000B8000</strong></pre><p>Using the function below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/822b179f061c375a8b3b875b76298bda/href">https://medium.com/media/822b179f061c375a8b3b875b76298bda/href</a></iframe><h4>Moving the Cursor</h4><p>So far we have only been able to write one single character. But if you want to write more than that you simply need to move the curse to the next location on the frame buffer.</p><p>Moving the cursor of the frame buffer is done through two different I/O ports. Therefore, we need to use the assembly code instructions out and in to communicate with the hardware.</p><p>Now we can’t directly execute the out assembly code instruction in C. So, we wrap it in a function in assembly code which can be accessed from C through the cdecl calling standard.</p><p>Now create<strong> io.s</strong> file and header file <strong>io.h.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/67cec5939324bb36f1886460bd965399/href">https://medium.com/media/67cec5939324bb36f1886460bd965399/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73bf01871d4a72be963be7db756bb0de/href">https://medium.com/media/73bf01871d4a72be963be7db756bb0de/href</a></iframe><p>We built the io.h and io.s files here, but how do we link them to make a file? All that is required is the addition of one word to the Makefile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*sgLmfNo3FVH-IOGXnuvZAg.png" /></figure><p>Now, add the c function to your <strong><em>framebuffer.c </em></strong>file and “make run”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb9b582662ebcd7d0d62f866cc247f65/href">https://medium.com/media/fb9b582662ebcd7d0d62f866cc247f65/href</a></iframe><p>Now you can see this blinking line,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*zSxyYN9TP6JswZ8UdKxClg.png" /></figure><h4>The Driver</h4><p>The driver ought to offer an interface so that other OS codes can communicate with the frame buffer. In terms of what features the interface should offer, there is no right or wrong answer. You can do this by creating your own C function. This is how I see things.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17d0e35fbe1df4e6ed01a1bee855d772/href">https://medium.com/media/17d0e35fbe1df4e6ed01a1bee855d772/href</a></iframe><p>Now you can enter anything for the buffer and it will be displayed on the console.</p><h4>The Serial Ports</h4><p>Let’s now examine the process of developing a serial port driver. A communication channel for hardware components is the serial port. We are only using one of the serial ports supported by a computer, which typically supports many serial ports. This is so that the serial ports will only be utilized for output and logging. So that the operating system has a logging system, Bochs can then save the output from the serial port in a file.</p><p>Through the I/O ports, the serial ports are also managed. This is how a serial port is configured.</p><h4>1) Configuring the Serial Port</h4><p>Configuration data is the first thing that must be delivered to the serial port. Two hardware components need to agree on a few key points in order to communicate with one another.</p><ul><li>The speed used for sending data (bit or baud rate)</li><li>If any error checking should be used for the data (parity bit, stop bits)</li><li>The number of bits that represent a unit of data (data bits)</li></ul><h4>2) Configuring the Line</h4><p>To do this, the data transmission protocol must be set up. A configuration I/O port on the serial port is called the line command port. We shall first set the data transmission speed. 115200 Hz is the frequency of the internal clock in the serial port. A divisor must be sent to the serial port to adjust the speed.</p><h4>3) Configuring the Buffers</h4><p>The serial port uses buffers to store data that is sent and received. This is so that data won’t be buffered if it is sent to the serial port more quickly than it can be transmitted over the wire. FIFO queues serve as the buffers.</p><p>The FIFO queue configuration bit is set to 0xC7 = 11000111 so that,</p><ul><li>Enables FIFO</li><li>Clear both receiver and transmission FIFO queues</li><li>Use 14 bytes as the size of the queue</li></ul><h4>4) Configuring the Modem</h4><p>Through the Ready To Transmit (RTS) and Data Terminal Ready (DTR) pins, the modem control register is utilized for very simple control hardware flow. RTS and DTR should both be set to 1 when configuring the serial port, indicating that data transmission is ready.</p><p>Here’s how. You can find the completed <strong><em>serial.c</em></strong> and<strong><em> serial.h</em></strong> file below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad2d2622c0f62ee03ac06210dfe4de07/href">https://medium.com/media/ad2d2622c0f62ee03ac06210dfe4de07/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b843eb0cb0a36644a14633a44a4d6d60/href">https://medium.com/media/b843eb0cb0a36644a14633a44a4d6d60/href</a></iframe><h4>Writing Data to the Serial Port</h4><p>Through the data I/O port, you can write data to the serial port. To ensure that the transmit FIFO queue is empty, however, before writing (all previous writes must have finished). In the event that bit 5 of the line status I/O port is equal to one, the transmit FIFO queue is empty. I’ve previously written a method to check this, as you can see if you go back and look at the serial.c and serial.h files. If the transmit FIFO queue is not empty, spinning is required when writing to a serial port before the data is written to the data I/O port.</p><p>The in-assembly code instruction is used to read an I/O port’s contents. The same assembly code that we used earlier is used for this as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a43ab662d8b898ddc7d031ed837a8db7/href">https://medium.com/media/a43ab662d8b898ddc7d031ed837a8db7/href</a></iframe><p>This is the header file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1e89408a80c098d62fb114517b0ce40/href">https://medium.com/media/b1e89408a80c098d62fb114517b0ce40/href</a></iframe><h4>Configuring Bochs</h4><p>To save the output from the serial port, you must modify the Bochs configuration file bochsrc.txt. The first serial port’s handling is specified by the com1 setting for Bochs. To the bochsrc.txt file, add this.</p><pre>com1: enabled=1, mode=file, dev=com1.out</pre><p>The output from serial port one will now be stored in the file <strong>com1.out</strong>.</p><h4>The Driver</h4><p>Let’s now create a serial port write function that is akin to the driver’s write function for the frame buffer.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/822d04d46f51b0e14d5dab1af76deaed/href">https://medium.com/media/822d04d46f51b0e14d5dab1af76deaed/href</a></iframe><p>An implementation of a printf-like function completes the process. Choosing which device to write the output to requires a second justification (frame buffer or serial). Thus, this is how the finished version of kmain.c will look.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97ff3282bad2f53f09fc73dcb1ee4bc4/href">https://medium.com/media/97ff3282bad2f53f09fc73dcb1ee4bc4/href</a></iframe><p>Hope you have kept in touch with today’s work, let’s meet in next week.</p><p>Thank You!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adb33e9ce3b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your Primitive OS(02)]]></title>
            <link>https://medium.com/@gihanthakavishan/build-your-primitive-os-02-8b5c3849129e?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b5c3849129e</guid>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 12:13:33 GMT</pubDate>
            <atom:updated>2022-11-02T05:57:48.973Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s get back to week two of creating your own primitive OS.</p><p>Last week we talked about how to set up the environment and boot the os that we can build. First article We talked about the small os that can be applied with GRUB. In there we are able to write 0xCAFEBABE to the eax register.</p><p>Okay, Now start today&#39;s discussion, This article discusses the use of<strong> C</strong> <strong>language</strong> <strong>instead of assembly code</strong> as the programming language for the OS. If it is really easy to contact with <strong>CPU using</strong> assembly but c is a user friendly than assembly for programmers. there are many codes to write to the kernel and it is not easy to write all them with assembly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*tUiZCTIhunPM3EurUGaiLg.jpeg" /></figure><h3><strong>Stepping up with a stack</strong></h3><p>A stack is required for using C because it is used in all non-trivial C programs. Setting up a stack is as simple as setting the esp register to the end of a correctly aligned free memory area.</p><p>Because the only things in memory right now are GRUB, BIOS, the OS kernel, and some memory-mapped I/O, we could point to a random memory location. This is a bad idea because we don’t know how much memory is available or whether the area to which esp would refer is already occupied. A better solution is to reserve some uninitialized memory in the bss section of the kernel’s ELF file. It is preferred.</p><p>Insert the following code segment into the loder.sfile.</p><pre>KERNEL_STACK_SIZE equ 4096                  <em>; size of stack in bytes</em><br><br>    <strong>section</strong> .bss<br>    <strong>align</strong> 4                                     <em>; align at 4 bytes</em><br>    kernel_stack:                               <em>; label points to beginning of memory</em><br>        resb KERNEL_STACK_SIZE                  <em>; reserve stack for the kernel</em></pre><p>The stack pointer must then be initialized by directing esp to the end of the kernel stack memory. To accomplish this, include the following statement in the loader: block in your loader.s file.</p><pre><strong>mov</strong> <strong>esp</strong>, kernel_stack + KERNEL_STACK_SIZE   <em>; point esp to the start of the</em><br>                                                <em>; stack (end of memory area)</em></pre><p>Then loader.s the file should like blown.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a40e57c2d38d48d9e2cd1cd3d98b548/href">https://medium.com/media/6a40e57c2d38d48d9e2cd1cd3d98b548/href</a></iframe><h3>Calling C code from Assembly</h3><p>Now we are going to call a C function from the assembly code. There are a few ways to conventions for how to call C code from assembly code.</p><pre><em>/* The C function */</em><br>    int sum_of_three(int arg1, int arg2, int arg3)<br>    {<br>        <strong>return</strong> arg1 + arg2 + arg3;<br>    }</pre><p>now we call the function below way.</p><pre><em>; The assembly code</em><br>    external sum_of_three   <em>; the function sum_of_three is defined elsewhere</em><br><br>    <strong>push</strong> dword 3            <em>; arg3</em><br>    <strong>push</strong> dword 2            <em>; arg2</em><br>    <strong>push</strong> dword 1            <em>; arg1</em><br>    <strong>call</strong> sum_of_three       <em>; call the function, the result will be in eax</em></pre><p>Now we create the kmain.c file</p><p><em>Packing Structs</em></p><p>Then we will often come across “configuration bytes” which are a collection of bits in a very specific order. Below follows an example with 32 bits:</p><pre>Bit:     | 31     24 | 23          8 | 7     0 |<br>Content: | index     | address       | config  |</pre><p>It is much easier to use packed structures instead of using Unsigned integers.</p><pre><strong>struct</strong> example {<br>        unsigned char config;   <em>/* bit 0 - 7   */</em><br>        unsigned short address; <em>/* bit 8 - 23  */</em><br>       unsigned char index;    <em>/* bit 24 - 31 */</em><br>    };</pre><p><strong>Compiling the C code</strong></p><p>When compiling C code for the OS, many flags to GCC must be used, or the C code may assume the presence of a standard library.</p><p>Flags that are used for compiling.</p><pre>-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles<br>    -nodefaultlibs</pre><p>When writing C code all warnings and treat as errors.</p><h4><strong>Builds Tools</strong></h4><p>Here, we use the <strong><em>make a </em></strong>build system.</p><p>Create the <strong>Makefile</strong> given below<strong>.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/08c295c647b12009d32de972abaf71bc/href">https://medium.com/media/08c295c647b12009d32de972abaf71bc/href</a></iframe><p>Now working directory should be like below.</p><pre>|-- bochsrc.txt<br>    |-- iso<br>    |   |-- boot<br>    |     |-- grub<br>    |       |-- menu.lst<br>    |       |-- stage2_eltorito<br>    |-- kmain.c<br>    |-- loader.s<br>    |-- Makefile</pre><p>Now we are able to start the OS with the simple command <strong>make run</strong> . This will compile the kernel and boot it up in Bochs.</p><h4>Writing to EAX from C function</h4><p>Let us now make our C function return a value that will be stored in the EAX.</p><p>First, let’s change our kmain function to return the sum of three arguments.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dde57b329ad49a2a10dcdfea919b1148/href">https://medium.com/media/dde57b329ad49a2a10dcdfea919b1148/href</a></iframe><p>Let’s now pass some parameters to our kmain function. We use the cdecl calling convention because GCC does. It also specifies that function arguments should be passed through the stack (on x86) and pushed on the stack in a right-to-left order.</p><p>Now <strong><em>loader.s</em> </strong>file should be like this below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a0b9966646fe37695547c4959083287/href">https://medium.com/media/3a0b9966646fe37695547c4959083287/href</a></iframe><p>Now when you boot up the Bochs and then display the log produced by Boch (using cat bochslog.txt), you will find the summation EAX=6 written in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFKwWx4adZSUZxGCJo3bng.jpeg" /></figure><p>You can change the arguments pushed to the stack with any number and the summation will be written on EAX in hexadecimal.</p><p>In this way we complete week two work, let’s meet on next week.</p><p>Thank You!</p><p>Reference :<em>Helin, E., &amp; Renberg, A. (2015). </em><a href="https://littleosbook.github.io/#getting-to-c"><em>The little book about OS development</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b5c3849129e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a software license?]]></title>
            <link>https://medium.com/@gihanthakavishan/what-is-a-software-license-cc7d11a6d5ed?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc7d11a6d5ed</guid>
            <category><![CDATA[software-licensing]]></category>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Sun, 09 Oct 2022 19:22:16 GMT</pubDate>
            <atom:updated>2022-10-09T19:22:16.263Z</atom:updated>
            <content:encoded><![CDATA[<p>As futuristic people, we always move with technology. When we work on technology software applications are the most significant feature of it. So, we work with software applications when we first install it, we come across terms and conditions. we must agree apart from using that application. So, without a second thought, we agree with them as we want to use them. So, in that way, we come across software licenses in a practical situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*TXX3jTL9JBmZPadJBDUhJg.jpeg" /></figure><p>Now let’s look at what defines a software license. In commonly software license explains the bond between the end user and the software. Then it is a text document that is the intellectual property of developers, so it helps them to avoid any against claims through using it. Not only that, it provides the user right such as installation, warranties, and liabilities.</p><p>When it comes to types of software licenses there are mainly two categories according to the copyright law. Those are proprietary ( commercial), Free and open-source software. Proprietary software licenses do not allow users to use software code and do modifications. But open source software licenses allow users to share and do modifications. Apart from these two types, there are other five categories that cover different agreements and software.</p><p><strong>1. PUBLIC DOMAIN LICENSE</strong></p><p>When a software license is in the public domain it means that it is free for the end-user to modify, distribute, commercialize and share without any restrictions. When using the public domain organizations must consider their security standards as the modified code may not be in the standards.</p><p><strong>2. GNU/LGPL — GNU LESSER PUBLIC LICENSE</strong></p><p>This type of license, allows developers to link open-source libraries within their own software and user can use code under any type of license here.</p><p><strong>3. PERMISSIVE</strong></p><p>This type of license is the most popular among open-source software licenses. There are some restrictions with requirements for distribution or modification. There are requirements for preserving license notices, copyrights, and trademarks. The permissive license has variations such as Apache and BSD(Berkeley Source Distribution) and MIT licenses.</p><p><strong>4. COPYLEFT</strong></p><p>A copyleft license or reciprocal license permits to modify or distribution as a part of a software project if new code is distributed under the same software license. This simply means that if the code defines it as personal use only then the new product should include the same designation.</p><p><strong>5. PROPRIETARY</strong></p><p>These types of licenses are the most restricted licenses. Those do not allow users to copy, modify or distribute. Those are protected from unauthorized access to the developer. Most IT companies work with these kinds of licenses as there secured than others.</p><p><strong>What is copyright?</strong></p><p>When you create or develop something with your effort and then someone comes and takes that work without asking from you and presents it as what has been done by him. Then definitely you will get angry with him. So here comes the copyright law, copyright is simply the right to copy. Here creator or the person who gets authorization from the owner are the only parties who can reuse or reproduce the work. Copyright law gives the owner legal rights to his intellectual property.</p><p><strong>How copyrighting works</strong></p><p>If someone does work that needs a large amount of mental activity then it becomes the intellectual property and it avoids access by another party. According to copyright law creator does something from free thoughts without duplications this type of work considers an original work of authorship(OWA). Anyone with OWA has the copyright to that work. On the other hand, all types of works may not able to be copyrighted. Ideas, Discoveries, theories, or concepts are not protected under copyright.</p><p><strong>Ownership vs Licensing</strong></p><p>When we look at ownership it gives users the to use software and code for the work and the creator allows all rights to him. Then licensing is different from ownership, licensing allows you to do certain things under several terms and conditions. If a user buys software he only gets a copy of it and licenses to use it. He was never able to take ownership of the product and it still owns by the software company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*Q0J3amK84dQLRdttfGOaWg.jpeg" /></figure><p>The software license provides a complete understanding among the end-user and software provider. when it clarifies the bond between these two parties then it will help for the quality and reliable product when it comes to using.</p><p>So let’s meet with a new article.</p><p>Thank You!</p><p><strong>References</strong></p><ul><li><a href="https://www.techtarget.com/searchcio/definition/software-license">What is a Software License? Everything You Need to Know</a></li><li><a href="https://snyk.io/learn/what-is-a-software-license/">What is a software license? 5 Types of Software Licenses | Snyk</a></li></ul><p><a href="https://www.investopedia.com/terms/c/copyright.asp">https://www.investopedia.com/terms/c/copyright.asp</a>\</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc7d11a6d5ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your Own Primitive OS(01)]]></title>
            <link>https://medium.com/@gihanthakavishan/build-your-own-primitive-os-01-f871b015efa5?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/f871b015efa5</guid>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Sat, 01 Oct 2022 20:27:09 GMT</pubDate>
            <atom:updated>2022-10-01T20:27:09.403Z</atom:updated>
            <content:encoded><![CDATA[<p>Set up a development environment and boot a primitive operating system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*Cmd0luHocBzMJ9lPFZ4-1Q.jpeg" /></figure><p>So let’s start the new journey of creating a new operating system step by step. Developing an operating system is not easy to process. It is quite difficult and troublesome work. So here onward I am going to guide you to build up your own OS week by week. If you keep in touch with my blog series you are definitely able to have your own OS end of this blog series. So let’s not wait for too much and let’s start this interesting journey.</p><p>As the first step of our work, we are going to install Ubuntu as the host operating system and set up Virtualbox as the testing environment of OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*STRrsX_W4Zk060pnTemrUQ.png" /></figure><p>Once we finish our basic setup, now we should add some essential packages using the following code using the terminal.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b137eaaa0a3f848dcdaaa2c1e448398b/href">https://medium.com/media/b137eaaa0a3f848dcdaaa2c1e448398b/href</a></iframe><p>We will use the C Programming language with GCC compiler to develop our OS. To take precise control over the generated code and for direct memory access we use the C language. Then NASM uses as the assembler for assembly code and Bash uses as the scripting language.</p><p>In order to create an operating system, it is essential to understand how it boots up an operating system. This booting process involves a series of small programs, each one being more powerful than the previous. The main programs in this process include BIOS, Bootloader, and OS. The operating system is the final and the most powerful one.BIOS program is normally kept on the PC’s motherboard on a read-only memory chip. The BIOS looks after a few early diagnostics and then the bootloader is separated into two parts with hardware restrictions, when the process comes to the second part then it hands over to the OS. Here uses an existing bootloader the GNU GRAND Unified Bootloader (GRUB). Once GRUB has completed the transition, the OS has complete control over the computer. Here OS is writing <strong>OxCAFEBABE</strong> to the <strong>EAX</strong> register.</p><p><strong>Writing and Compiling OS</strong></p><p>This part is written in assembly language and it writes in a file called loader.s.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a24b74ff2b33d80c5f0977a72d93516/href">https://medium.com/media/6a24b74ff2b33d80c5f0977a72d93516/href</a></iframe><p>Now to compile the code we use the following code line.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3af0bfb585e2924f3b8152065e8dab3/href">https://medium.com/media/e3af0bfb585e2924f3b8152065e8dab3/href</a></iframe><p>Now you can see there is automatically created the loader.o file.</p><p>Now code is necessary to be linked for creating an executable file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aea6893bcd02d9e0f1dca411e0f46a56/href">https://medium.com/media/aea6893bcd02d9e0f1dca411e0f46a56/href</a></iframe><p>The following command uses for linking the executable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1675fb4a0cd61522b8dc42d17306edd2/href">https://medium.com/media/1675fb4a0cd61522b8dc42d17306edd2/href</a></iframe><p>Now executable becomes kernel.elf.</p><p>In this step, we create the ISO file by including generated Kernal file, stage2_eltorito bootloader as well as a special configuration file. The below command would create the folder by including related files for ISO.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e66361a251b958c791a6aafd1a74e92b/href">https://medium.com/media/e66361a251b958c791a6aafd1a74e92b/href</a></iframe><p>Then we create a GRUB configuration file called menu.lst and which says the location of the kernel and some options.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1f08184ad6a02e25cef10190b5412c0/href">https://medium.com/media/f1f08184ad6a02e25cef10190b5412c0/href</a></iframe><p>Using this command now create the iso file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2bade9a5aa0b44191ffe9dcdccdaa58b/href">https://medium.com/media/2bade9a5aa0b44191ffe9dcdccdaa58b/href</a></iframe><p>Using os.iso we can boot our OS in the Bochs emulator. To do that we need a configuration file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8afb31b3620df65093bdd5cbb8a26987/href">https://medium.com/media/8afb31b3620df65093bdd5cbb8a26987/href</a></iframe><p>Now we can run the operating system on the Bochs emulator with the previously created iso file. We this command to do that,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1198ff6be058149e3d6d75a5442721a2/href">https://medium.com/media/1198ff6be058149e3d6d75a5442721a2/href</a></iframe><p>After quite the Bochs, now shows the log generatted with the below command.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/458e5bfaaf222ebed81751c4de23840c/href">https://medium.com/media/458e5bfaaf222ebed81751c4de23840c/href</a></iframe><p>we should now see the contents of the registers of the CPU simulated by Bochs somewhere in the output. If you find RAX=00000000CAFEBABE or EAX=CAFEBABE . We successfully boot the OS.</p><p>So we now come to the end our today&#39;s blog then keep in touch with me to continue this series with a successful operating system.</p><p>References.</p><p><a href="https://littleosbook.github.io/book.pdf">https://littleosbook.github.io/book.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f871b015efa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event Driven Programming Versus Command Line Programming]]></title>
            <link>https://medium.com/@gihanthakavishan/event-driven-programming-versus-command-line-programming-efc54b0f1f71?source=rss-22ce1902a980------2</link>
            <guid isPermaLink="false">https://medium.com/p/efc54b0f1f71</guid>
            <category><![CDATA[event-driven-programming]]></category>
            <category><![CDATA[command-line-interface]]></category>
            <dc:creator><![CDATA[Gihantha Kavishan]]></dc:creator>
            <pubDate>Sat, 06 Aug 2022 18:39:08 GMT</pubDate>
            <atom:updated>2022-08-06T18:39:08.345Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is an Event-Driven Programming ?</strong></p><p>Let’s look at what is event driven programming ?, Event driven programs or event driven applications are hugely responsive to the user event or user inputs. Here program execution is on new user functions( mouse click, keypress),output from sensors or messages from other programs. Event driven programs are mostly used on graphical user interface and applications which reacts on user inputs. On the other words event driven programming is way of creating new programs. Then in the necessary function of the process, the main even is clearly spotlighted in the code. There are two main functions in this process, event handling or controlling and event fetching. In this programming method main loop listens to the events and when even is identified then recalls the functions.</p><p><strong>Key Features of Event driven Programming</strong></p><p>· Service oriented</p><p>· Time driven</p><p>· Tigger functions</p><p>· Events</p><p>· Simplicity and Easy to develop</p><p><strong>Command Line Programming</strong></p><p>Command line or command line interface is a text-based interface where user can write his or her command using text and then those function with the central processing unit. It is the way of communication among user and computer. To write commands users have different types of interfaces such as shell, command prompt and terminal and those interfaces base on the operating systems such as Linux, Windows, and Mac. But there are differences also between those. When user uses CLI then it helps him to do some work very rapidly without using mouse. For example, users can rename large number of files in quickly and navigate through files and folders.</p><p><strong>Difference Between Event Driven Programming and Command Line Programming</strong></p><p>The user can use command line interface or graphical user interface to build up the interaction between computer. However, there are some differences when using CLI and GUI. When programmer use graphical user interface certain buttons perform certain tasks on the computer. Programmer can perform those tasks also with the CLI. When user use the CLI , he or she types the text or word and press enter key, then shell or terminal interprets those and interact with the OS kernel and files to execute the command. CLI supports more than GUI to manipulate with the system’s internals and with the code regardless on type of the operating system user has. Command presents the intention and target with specific audience. Because of that user should inform with recipient and expects the request to be executed. Event, it presents the fact in the past and it brings details about something fulfilled. Events include asynchronous and commands include synchronous. Programmer usually sends command through rest API and events through queues. When user push a command, he or she keens to known whether it finish or not or occurred an error or not. Internet has queues so commands must wait for the chance to come. This is an asynchronous process. So, like wise there may be few differences between event driven and command line programming. However, what is the easiest way to interact with the computer ? that question seems to be dependent on the user. So, it cannot choose the best way.</p><p><strong>References</strong></p><p>· <a href="https://www.techopedia.com/definition/7083/event-driven-program">https://www.techopedia.com/definition/7083/event-driven-program</a></p><p>· <a href="https://studybay.com/blog/event-driven-development-features/">https://studybay.com/blog/event-driven-development-features/</a></p><p>· <a href="http://www.linfo.org/command_line_program.html">http://www.linfo.org/command_line_program.html</a></p><p>· <a href="https://eventdriven.io/en/whats_the_difference_between_event_and_command/">https://eventdriven.io/en/whats_the_difference_between_event_and_command/</a></p><p>· <a href="https://learntocodewith.me/learn/command-line/">https://learntocodewith.me/learn/command-line/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efc54b0f1f71" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>