<?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 Udith Shalinda on Medium]]></title>
        <description><![CDATA[Stories by Udith Shalinda on Medium]]></description>
        <link>https://medium.com/@udithshalinda?source=rss-b4ec0ccc725b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MzUme9rim4eHsOQ1.jpg</url>
            <title>Stories by Udith Shalinda on Medium</title>
            <link>https://medium.com/@udithshalinda?source=rss-b4ec0ccc725b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:14:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@udithshalinda/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[Future of User Interface Design]]></title>
            <link>https://medium.com/@udithshalinda/future-of-user-interface-design-1c5b65dd0de5?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c5b65dd0de5</guid>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 13:56:13 GMT</pubDate>
            <atom:updated>2022-03-29T13:56:03.191Z</atom:updated>
            <content:encoded><![CDATA[<p>The process of designing user interfaces in software or computerized devices with a focus on appearance or style is known as user interface (UI) design. Designers strive to design user interfaces that are simple to use and enjoyable to use. Graphic user interfaces and various forms of user interface design are referred to as UI design.</p><p>The concepts UX (user experience) and UI (user interface) are mutually exclusive. While UI is concerned with how people interact with computer systems, software, and applications, UX is more broadly concerned with a user’s whole experience with a brand, product, or service.</p><h3>Different user interface designs in future</h3><h4>1. Voice User Interfaces</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*MjAfkiu3Zja3vPvu.jpg" /></figure><p>Voice User Interfaces’s main benefit is that it allows for a highly natural, life-like interaction, which opens up a lot of options. VUIs allow users to communicate with a system using voice or speech instructions. VUI’s include virtual assistants like Siri, Google Assistant, and Alexa.</p><h4>2. Augmented Reality</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*F9YRhGsonPEr4Ups.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*zsvs3KuDM1Yzp0l1.jpeg" /></figure><p>The AR experience seamlessly connects the digital and physical worlds in real-time, and all interactions should feel like they are taking place in a real-world setting. Apps such as Google Translate, Pokemon Go, and Lenskart are available. Keeping this in mind, existing navigation design patterns may become obsolete, and AR may help usher in a new era of user interface design.</p><h4>3. Virtual Reality</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VCP5igeY4ySuPWVl.jpg" /></figure><p>VR is a simulated experience that can be similar to or completely different from the real world. Applications of virtual reality can include entertainment (eg: Gaming) and educational purposes (eg: Medical or Military training). Currently, these systems use either VR headsets or multi-projected environments to generate realistic images, sounds and other sensations that simulate a user’s physical presence in a virtual environment. There are brands like Facebook, Microsoft and Google that offer these headsets now.</p><h4>4. Utilizing 3D</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ver5HKSowMYONNXv.png" /></figure><p>3D has been around for a while and is steadily gaining popularity. Fortunately, we live in an era where technical advances, such as rapid advancements in semiconductor fabrication and software optimization over the previous decade, have made even low-end devices capable of handling complex pictures in real time. As a result, using dynamic 3D UI is no longer a hassle.</p><h4>5. Designing for fold-able</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*Mc1CoZagfsSf6tvX.jpg" /></figure><p>We need to create new designs that are suitable and responsive to the screens since Samsung released fold-able phones like the Galaxy Z Fold3 5G.</p><h3>Next-generation UI design tools</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HcY5xINfsA6iysFC.jpeg" /></figure><p>To generate design components, current tools rely on bespoke programming models. These models aren’t as robust as CSS, and they don’t let designers see the auto-generated code that lies behind their design files — code that must be exported to HTML, CSS, or JavaScript at some point. It would be a lot easier if our tools supported HTML and CSS right out of the box.</p><p>Mock-ups leave far too many unsolved questions. It’s impossible to produce one for every digital environment. Designers today create layouts for screen widths of 320 pixels, 834 pixels, and 1440 pixels; however, what if a portion of the layout breaks on a 1220 pixel view-port? Why not optimize for 375 pixels, which is a common screen size for today’s larger phones?</p><p>It’s impractical to make an art board for every circumstance, especially when all breakpoints and perspectives are taken into account, not to mention dark themes. Designing for all of these variables inexorably increases the number of art boards.</p><h3>Impact on everyday life</h3><p>Science fiction has a lot of influence on the world of technology because it shows us what is impossible.</p><p>Miniature projectors are used in the <strong>Skin Buttons</strong> project to show interactive icons on the skin around the watch face. This technology allows a smartwatch’s interaction zone to grow without physically expanding it. The projector parts are less than $2 and can even extend the life of the battery by moving the effort away from the primary display.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*EaNJJqoJSIaWFIVu" /></figure><p>The <strong>FlexSense</strong> is a translucent sheet of plastic with inbuilt piezoelectric sensors that detect the form in which it is placed. This enables a wide range of natural, paper-like interactions. Toggling layers in maps or drawings, for example, flipping up a corner to reveal something underlying. Consider phone cases that react when the cover is peeled back. Alternatively, interactive books or children’s books that react as the page is turned.</p><p><strong>HaptoMime</strong> creates tactile feedback in midair using ultrasonic, making it appear as if you’re touching a hovering image when there isn’t one at all. A concealed LCD and an angled transmissive mirror create it. Any public show could benefit greatly from this technique.</p><h4>Ref:</h4><p><a href="https://medium.com/17seven/the-past-present-and-future-of-user-interfaces-2df669dc63e3">The Past, Present and Future of User Interfaces</a></p><p><a href="https://www.toptal.com/designers/ui/future-ui-design">https://www.toptal.com/designers/ui/future-ui-design</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c5b65dd0de5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Licenses]]></title>
            <link>https://medium.com/@udithshalinda/software-licenses-a7b4cb1a5b52?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7b4cb1a5b52</guid>
            <category><![CDATA[software-license]]></category>
            <category><![CDATA[software-licensing]]></category>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 10:58:41 GMT</pubDate>
            <atom:updated>2020-09-08T11:07:30.634Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*fPvzPW0vU3GcNLk0" /></figure><p>In this guide we introduce all the different types of software licensing models, including the most commonly used and also some of the more complex types of software license models.</p><p>Hopefully this guide will clear up certain misunderstandings surrounding license models, as we often see them being talked about quite loosely. You may learn that some of them aren’t actually even licensing models to begin with.</p><p>If you write and distribute software, it will typically come with a license model attached to it. This may be a non-commercial license that relies on the end user complying with the license terms, as is the case with most open-source or freeware licenses. If you write software for fun and profit, it is more likely that you’ll rely a licensing engine to help enforce compliance with the specific license model and terms on which you sell your software.</p><h3><strong>The most common types of software licensing models</strong></h3><h4>Perpetual License</h4><p>A <a href="https://www.10duke.com/software-licensing-models/perpetual-software-license/">perpetual license</a> is one where a software application is sold on a one-time basis and the licensee can then use a copy of the software forever.</p><p>The perpetual license normally applies to a specific version of the software product. It does not normally include subsequent software patches, fixes or enhancements, although in some cases the one-off perpetual license fee may include these items for one year.</p><p>Historically, the perpetual licensing model has been very common as it is one of the original license models. However, software vendors are moving away from it, as there are more effective licensing models that allow software vendors to improve how they monetize their software applications.</p><h4>Floating License</h4><p>A floating license allows you to define a specific number of licenses to an application that are shared among a specific group of people. For example, you may provide 10 floating licenses to a company, but that company may have 30 people who may request a license from the floating pool of 10 licenses. Once all 10 licenses are checked out, no other access is permitted until a license is returned to the pool.</p><p>A floating license works on a ‘first come first served basis’ and is a great way to allow your customer to share licenses between a group of people.</p><p>It is also useful to note that when you track license usage in a floating pool, if users try to check out a license but all licenses have been consumed, it creates a great sales opportunity for you as the vendor as it demonstrates that there is more demand for licenses.</p><h4>Subscription License</h4><p>A subscription license is one in which the end user licenses the application on a re-occurring basis for a defined period. This might be 30 days (a monthly subscription) or 365 days (an annual subscription.)</p><p>Subscriptions typically have no defined end or termination date and they automatically renew after the initial term.</p><p>The subscription license is one of the most common license types. One of its advantages is that it is easy for the customer to understand while making a purchasing decision, as so many people have become used to them with mainstream services such as Netflix.</p><h4>More advanced types of software licenses</h4><h4>Metered License</h4><p>This is one of the most versatile and configurable licensing models.</p><p>Metered license means that as a licensor you can license your application with a limited access to any aspect/feature of the application that can be metered. For example, you might meter the use-time of the application or you could meter access by a user to a particular feature of an application.</p><h4>Use-Time License</h4><p>As mentioned, in the use time licensing model a license is defined by the time the user is given access to an application.</p><p>The time can be metered to a certain point, after which the license is no longer valid and the application cannot be accessed. The user can then be prompted to purchase another use-time license, or to switch to another type of license that has no time restraints. Alternatively, the user can be notified ahead of time that the license should be renewed soon.</p><p>Another term you may have heard about is consumption-based licensing, where the user pays for the actual usage of the software. However, in practice the consumption-based license is just one way to implement the metered licensing model.</p><h4>Aggregate Use-time License</h4><p>An aggregate use time license is used to limit the overall time an application is used for. The main idea of the aggregate use time license model is that it counts the accumulated time taken to accomplish a task and refers to the total hours consumed by one sector or group of workers. It is also a subset of the metered licensing model, time again being what is metered.</p><p>Providing an aggregate use time license is very appealing for enterprise customers as it allows them to better control spending on complex projects. For dynamic projects where the progression of each element has third-party dependencies, delays can often force organisations into a state of software over licensing — software that’s being paid for but not used.</p><p>With an aggregate use time license the software may still sit redundant while work streams are coordinated, however, the key difference is that software is not consuming budget. Some lower-end prospects won’t be using your product continuously, and extending the lease period may be too expensive with some prospects only willing to pay for the amount of your product they actually use — regardless of how long they possess your product.</p><h4>Feature License</h4><p>The feature license model is used to limit the use of a specific feature of an application. In feature based licensing you, the software vendor, can control which features of your software the end user can and cannot use. The feature license can also be used to limit the number of times a specific feature of an application is used.</p><h4>Fixed Duration License (FDL)</h4><p>As the name suggests, a fixed duration license is simply a license to a piece of software for a defined period of time.</p><h4>Trial License</h4><p>A trial license is like a fixed duration license, but with the main difference that you are allowing access for a user to allow them to test your application with the hope that they will ultimately purchase a license. Users expect to be able to try out a software application before they buy it. This trial period might be a few days or a few weeks, but with the recent explosion in both consumer and business-focused online products, offering a free or ‘moneyback’ trial has become the expectation.</p><p>The trial period is normally defined in advance. The trial license also allows you to control what features or aspects of your application can be accessed during the trial period.</p><h4>Project-based License</h4><p>A project-based license is designed to support collaboration between multiple people who work for different companies.</p><p>In the project-based licensing model, the customer purchases a main license from the licensor and then grants entitlements to access the licensed application on to project team members. These team members can then access the application under the main license, even if they are part of a different company or organisation.</p><h4>Company Fixed Duration License</h4><p>This is kind of a combination of a fixed duration license and a floating license.</p><p><em>Example:</em></p><p>Company ABC buys a 1-year license to Product X. Multiple authorised employees can use the license on several different machines, but Product X will only run on one machine at a time. There is no distinct ‘license check-out’ workflow.</p><h4>These are some of the most common open source licenses</h4><ol><li>MIT, 25%</li><li>GPL 3.0, 19%</li><li>Apache 2.0, 15%</li><li>GPL 2.0, 15%</li><li>BSD 3, 6%</li><li>LGPL 2.1, 6%</li><li>Ms-Pl, 5%</li><li>BSD 2, 3%</li><li>Zlib, 1%</li><li>Eclipse 1.0, 1%</li><li>BSD 4, 1%</li><li>Other, 5%</li></ol><h3>Types of licenses</h3><p><strong>Commercial software</strong>: Copyrighted software developed, usually by a commercial company, for sale to others</p><p><strong>Shareware</strong>: Copyrighted software distributed on the honor system; consumers should either pay for it or uninstall it after the trial period</p><p><strong>Freeware</strong>: Copyrighted software that may be used free of charge</p><p><strong>Public domain software</strong>: Software that is not copyrighted and may be used without restriction</p><p><strong>Open source software</strong>: Programs with source code available to the general public</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7b4cb1a5b52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethical whistle blowing]]></title>
            <link>https://medium.com/@udithshalinda/ethical-whistle-blowing-b72fffcfb16?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b72fffcfb16</guid>
            <category><![CDATA[whistleblowing]]></category>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Sat, 25 Jul 2020 13:41:45 GMT</pubDate>
            <atom:updated>2020-07-25T13:41:45.352Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is whistle blowing?</h4><p>Whistleblowing is when a person closely associated with the organisation, often an employee, but also sometimes a supplier or a customer, observes behaviour or actions that they believe to be misconduct, criminal and not in line with the company’s code of conduct, and reports that suspicion. Whistleblowing is a preventive tool to reduce the risks of malpractice and irregularities. It allows organisations to efficiently monitor their policies and business principles, by obtaining information on irregularities that<br>should be acted upon at an early stage.</p><h4>Elements of Ethical Whistle blowing</h4><ul><li>Seek legal advice, other advice,</li><li>Make sure you have all facts and if possible, proof,</li><li>Try to mobilise an appropriate organisation to take up the cause — eg Professional Body</li><li>Plan the method of disclosure — for max effort with minimum potential damage</li><li>Whistleblow anonymously if possible,</li><li>Be prepared to be ignored, even victimized,</li><li>Remember — you are the one behaving ethically.</li></ul><h4>Whistle Blowing Procedure</h4><p><strong>How to raise a concern</strong></p><ul><li>If you are unsure about raising a concern at any stage you can get<br>independent advice from your trade union representative or Public Concern at work. However, we do ask that you explain as fully as you can the information or circumstances that gave rise to your concern.</li></ul><p><strong>Internal Stages</strong></p><ul><li>Once you have reported your concern, we will assess it and consider what action may be appropriate. This may involve an informal review, an internal inquiry or a more formal investigation. We will tell you who will be handling the matter, how you can contact them and what further assistance we may need from you. When you raise the concern it will be helpful to know how you think the matter might best be resolved. If you have any personal interest in the matter, we do ask that you tell us at the outset. If we think your concern falls more properly within our grievance, harassment and bullying or other relevant procedure, we will inform you accordingly.</li><li><strong>Stage 1 :- </strong>If you have a concern about a risk, malpractice or wrongdoing at work, we hope you will feel able to raise it firstly with your line manager or lead clinician. This may be done verbally or in writing. [N.B. the term Manager/Line Manager is generic and includes all clinicians with responsibility for staff and also any staff with supervisory roles]. You may involve a Trade Union Representative, a friend or a colleague at this stage, providing that that person is not involved in the investigation. Managers must help to create a climate where staff feel able to talk in confidence without the threat of disciplinary action being taken against them. The manager will identify the nature of the issue by undertaking a preliminary investigation.</li><li><strong>Stage 2 :-</strong> If stage 1 of the investigation and any resultant action does not resolve the matter, or if a concern involves the immediate line manager, the member of staff should raise the concerns with their Human Resources Consultancy Service who will refer the case to a designated officer, who will be the point of contact for employees under this policy. Where concerns are raised with the designated officer, they will arrange an initial interview which will, if requested, be confidential to ascertain the areas of concern. At this stage, you will be asked whether you wish your identity to be disclosed and will be reassured about protection from possible victimisation. You will also be asked if you wish to make a written statement. In either case, the designated officer will write a brief summary of the interview, which will be agreed by both parties. The designated officer will report to the Chief Executive who will be responsible for the commission of any further investigation within the Trust.</li></ul><p><strong>The Formal Investigation</strong></p><ul><li>If the concern raised is very serious or complex, a formal investigation may be held. The investigation may need to be carried out under the terms of strict confidentiality i.e. by not informing the subject of the complaint until it becomes necessary to do so. In certain cases, however, such as allegations of illtreatment of patients/clients, suspension from work may have to be considered immediately. Protection of patients/clients is paramount in all cases.</li></ul><p><strong>Following the investigation</strong></p><ul><li>The Chief Executive will advise the designated officer as to the possible options open to the Trust as a result of the outcome of the investigation. The designated officer will then arrange a meeting with the member of staff (where the identity has been disclosed) to give feedback on any action taken. (This will not include details of any disciplinary action, which will remain confidential to the individual concerned). The feedback will be provided as soon as possible.</li></ul><p><strong>Raising Concerns with outside bodies</strong></p><p>The purpose of this policy is to ensure that staff are aware of the way to raise<br>their concerns in-house and for staff to see that action is taken promptly to<br>remedy a particular situation. It is hoped that this procedure will give Trust<br>staff the confidence to raise concerns internally.</p><p>However, it is recognized that there may be circumstances where staff may<br>feel they wish to report matters to outside bodies such as the Police, the<br>Secretary of State for Health or, if the concern is about fraud and corruption,<br>the NHS Fraud Hotline. A full list of persons/bodies can be found in The<br>Public Interest Disclosure (Prescribed Persons) Order 1999 which sets out the<br>full prescribed persons list and a description of the matters to which issues of<br>concern could be referred. An extract from the Order can be obtained from<br>the Director of Communications.</p><p>If members of staff are contemplating making a wider disclosure they are<br>strongly advised to first seek further specialist guidance from professional or<br>other representative bodies.</p><p>The Trust also recognises that staff may, after taking account of advice, wish<br>to continue to raise their concerns using other avenues. These might include<br>MPs or the Media. Staff should bear in mind that this action, if done<br>unjustifiably could result in disciplinary action and could undermine public<br>confidence in the service.</p><p><strong>Independent Advice</strong></p><p>If you are unsure whether to use this policy or you want confidential advice at any stage, you may contact any of the following:</p><ul><li>Trade Union or Professional Organisation</li><li>A statutory body such as the NMC for Nursing, Midwifery and Health Visitors, the GMC or the Health Professions Council</li><li>The independent charity Public Concern at Work on 020 7404 6609 or by email at helpline@pcaw.co.uk. Their lawyers can talk you through your options and help you raise a concern at any stage about how to raise a concern about serious malpractice or wrongdoing at work.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b72fffcfb16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State management in vuejs/Vuex]]></title>
            <link>https://medium.com/@udithshalinda/state-management-in-vuejs-vuex-5512aeb3566f?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5512aeb3566f</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[vuex]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Thu, 07 May 2020 13:59:25 GMT</pubDate>
            <atom:updated>2020-05-07T13:59:25.134Z</atom:updated>
            <content:encoded><![CDATA[<p>When we are developing a website or a mobile application it’s really really important how you manage the state or data of your application.</p><p>Let’s say that you have a your personal profile details in your application and you load that data when you open your profile page. Think of a situation where you need your personal information in else where in your application. If you load that same data in order to get that data that’s a bad practice. Best way to do it is load that data once and save it in a temporary storage and get that data from the temporary storage when you need them.</p><p>To manage the state inside a vuejs application, vuejs offers us a nice library called <a href="https://www.npmjs.com/package/vuex">vuex </a>to manage the state more easily and have a good architectural pattern. And also it is much similar to redux but easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ROtQY0XW1itY-76_ufVHww.png" /></figure><p>To use vuex in your vuejs application, first you need to install vuex in your application.</p><pre>npm i vuex</pre><p>And then in your src folder create a folder names store or whatever the name you want. In that folder you need to have index.js file that file should look like this.</p><pre>import Vue from &#39;vue&#39;<br>import Vuex from &#39;vuex&#39;<br>import User from &#39;./modules/User&#39;;   //we will create this file in next step</pre><pre>Vue.use(Vuex) <br>export default new Vuex.Store({<br>  modules: {    <br>    User<br>}})</pre><p>This user is just one state. You can add more states as you wish. To do that I have created modules folder inside my store folder and let’s create a file called User.js inside that module folder.</p><p>In the file you need to have four things to be exported.</p><ul><li>state</li><li>getters</li><li>actions</li><li>mutations</li></ul><pre>//initial state<br>const state = {  <br>   userDetails: {<br>      &quot;email&quot;:&quot;&quot;,<br>      &quot;password&quot;:&quot;&quot;<br>    },<br>};</pre><pre>const getters = {<br>  userDetails: state =&gt; state.userDetails,<br>};</pre><pre>const actions = {<br>//will describe below<br>}</pre><pre>const mutations = {<br>  setUser: (state, user) =&gt; (state.userDetails = user),<br>};</pre><pre>//this is how we export the state module<br>export default {<br>  state,<br>  getters,<br>  actions,<br>  mutations};</pre><p>Inside actions you can add your methods that load or update or delete data. And action method will look like this.</p><pre>loginUser({ commit },{data}) {</pre><pre>     //save state (&#39;setUser&#39; should be in mutations)<br>     commit(&#39;setUser&#39;, {data});<br>}</pre><p>If you need to have to make a async function you can simply add asnyc keyword in front of the function name. And remember the state will only get updated if and only if you commit a mutation. And also when you add modules you should add them into index.js inside store folder.</p><p>To add the store to the application you need to do one last thing. Update the main.js file in src folder and add following lines.</p><pre>//make sure to import store</pre><pre>new Vue({<br>  //add store here<br>  store,<br>  render: h =&gt; h(App)}).$mount(&#39;#app&#39;)</pre><p>Now the store is working perfectly. Let’s see how to access data and the actions in the vuex store.</p><pre>&lt;script&gt;<br>import { mapGetters, mapActions } from &quot;vuex&quot;;</pre><pre>export default {<br>    name:&quot;MyProfile&quot;,<br>    methods: {<br>    //add action names that you will use in this component<br>    ...mapActions([&quot;loginUser&quot;]), <br>    },<br>    <br>    //add the states that you will use in this component<br>    computed: mapGetters([&quot;userDetails&quot;]),}<br>&lt;/script&gt;</pre><p>In that component</p><pre>&lt;button @click=&quot;loginUser()&quot;&gt;Login&lt;/button&gt;<br>&lt;h3&gt;{{userDetials.email}}&lt;/h3&gt;</pre><p>You can access them like that.</p><p>It’s pretty simple right. Enjoy vuejs state management.</p><h4>Thank you!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5512aeb3566f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter state management with bloc pattern]]></title>
            <link>https://medium.com/@udithshalinda/flutter-state-management-with-bloc-pattern-d790e173aca1?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d790e173aca1</guid>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[bloc-pattern]]></category>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Sun, 22 Dec 2019 18:07:33 GMT</pubDate>
            <atom:updated>2019-12-22T18:16:45.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dbXNQ35AvORG3HxwUDG2Fw.png" /></figure><p>When the scale of your flutter app gets higher or when you wants to share application states between screens across the application, it’s better if you can use state management pattern. For that you can use bloc pattern or <a href="https://pub.dev/packages/provider">provider</a> library.</p><p>Let’s talk about bloc pattern here.</p><p>First we need to have these dependencies.</p><pre>dependencies:   <br> bloc: ^2.0.0   <br> flutter_bloc: ^2.0.0<br> equatable: ^0.6.0</pre><p>In here I’m going to show you how to manage the state string list.</p><p>To create a simple todo list,first you need to have a model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*U7gMD4_Xpfb28PMmDiLPAg.png" /></figure><p>To manage the state,NameState.dart file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*ozFdiSDXS1APJ5FcJchUMw.png" /></figure><p>Like the initialTodo state you can add any states as you wish.</p><p>The event file will look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*molXh2Rud4gjXWa6oeSyqw.png" /></figure><p>In AddTodoEvent we need to pass a Todo instance.In UpdateTodoEvent I get the index of the todo element from the todo list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*r-Y_kXzBJ-waI-7JfQtmqw.png" /></figure><p>In the TodoBloc file you need to override the initial state as you want.Using if ladder we can execute different methods like I did above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrC2RKSaSN5OfoQzPTXXVQ.png" /></figure><p>In _mapAddTodoToState method I add a Todo to the existing list.And by “yield” we can change the state or the state’s data. You can read the state property of the state as state.something.</p><p>In ui ,If you have only one Bloc then you can use BlocProvider.</p><pre>home: Scaffold(         <br>  appBar: AppBar(           <br>  title: Text(&#39;Posts&#39;),         <br>  ),         <br>  body: BlocProvider(           <br>    create: (context) =&gt;               <br>      PostBloc(httpClient: http.Client())..add(Fetch()),           <br>    child: HomePage(),         <br>  ),       <br>),</pre><p>If you have multiple blocs to deal with ,then you can use below approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RPRFadJ3-2Fm0Y07WrID5A.png" /></figure><p>You can use MultiBlocProvider.And you can use your widget as child component of the multiBlocProvider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9zA7pcXdux-7c6HXN9y9A.png" /></figure><p>You can show the todo list using listView builder like above.</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d790e173aca1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to work with web socket using react js and spring boot frame works]]></title>
            <link>https://medium.com/@udithshalinda/how-to-work-with-web-socket-using-react-js-and-spring-boot-frame-works-ddceb9e2a8b1?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddceb9e2a8b1</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[websocket]]></category>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Tue, 19 Nov 2019 13:49:17 GMT</pubDate>
            <atom:updated>2019-11-19T13:49:17.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5GLNPRUp3uCorxeaAoTDg.jpeg" /></figure><p>If you are using maven in spring boot application you have to include below dependencies in pom.xml file</p><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.springframework/spring-websocket">https://mvnrepository.com/artifact/org.springframework/spring-websocket</a> --&gt;<br>&lt;dependency&gt;<br>   &lt;groupId&gt;org.springframework&lt;/groupId&gt;<br>   &lt;artifactId&gt;spring-websocket&lt;/artifactId&gt;<br>&lt;/dependency&gt;<br></pre><pre>&lt;!-- RabbitMQ Starter Dependency (Not required if you&#39;re using the simple in-memory broker for STOMP) --&gt;<br>&lt;dependency&gt;<br>   &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>   &lt;artifactId&gt;spring-boot-starter-amqp&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><pre>&lt;!-- Following dependency is required for Full Featured STOMP Broker Relay --&gt;<br>&lt;dependency&gt;<br>   &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>   &lt;artifactId&gt;spring-boot-starter-reactor-netty&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><p>If you are using gradle your build.gradle file should have this dependencies.</p><pre>dependencies {<br>   compile(&quot;org.springframework.boot:spring-boot-starter-websocket&quot;)<br>   compile(&quot;org.webjars:webjars-locator-core&quot;)<br>   compile(&quot;org.webjars:sockjs-client:1.0.2&quot;)<br>   compile(&quot;org.webjars:stomp-websocket:2.3.3&quot;)<br>//other dependencies</pre><pre>}</pre><p>if you want more details about this,please refer the <a href="https://spring.io/guides/gs/messaging-stomp-websocket/">spring-boot documentation</a> on dependencies for the web socket.</p><p>Then you have to configure the web socket end points and enables a simple in-memory broker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*r6jfCgTfC3xfqzLAHA0jxQ.png" /></figure><p>Controller class looks like this.</p><pre>@MessageMapping(&quot;/sendMessage&quot;)<br>@SendTo(&quot;/topic/public&quot;)<br>public ChatMessage sendMessage(@Payload ChatMessage chatMessage) {<br>    return chatMessage;<br>}</pre><p>Since I use app prefix in web socket config file this method maps to “app/sendMessage” and then it returns the message content to the path “/topic/public”.In the front end we can subscribe this path (“/topic/public”) and then we will be able to execute any function when it gets a message.</p><p>First in front end we should have some dependencies</p><pre><a href="https://www.npmjs.com/package/sockjs-client">npm i sockjs-client</a></pre><pre><a href="https://www.npmjs.com/package/stompjs">npm i stompjs</a></pre><p>import these things on your web socket subscribing file</p><pre>import SockJS from &#39;sockjs-client&#39;;</pre><pre>import Stomp from &#39;stompjs&#39;;</pre><p>You have to execute below lines and to subscribe that path.</p><pre>var sock = new SockJS(&#39;http://localhost:8102/api/ws&#39;);</pre><pre>let stompClient = Stomp.over(sock);</pre><pre>sock.onopen = function() {</pre><pre>  console.log(&#39;open&#39;);</pre><pre>}</pre><pre>stompClient.connect({}, function (frame) {</pre><pre>   console.log(&#39;Connected: &#39; + frame);</pre><pre>   stompClient.subscribe(&#39;/topic/public&#39;, function (greeting) {</pre><pre>     console.log(greeting);<br>     //you can execute any function here</pre><pre>   });</pre><pre>});</pre><p>When you want to send the message</p><pre>stompClient.send(&quot;/app/sendMessage&quot;, {},&quot;your message here&quot;);</pre><p>Thank you!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddceb9e2a8b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Simple Os using Assembly language in windows]]></title>
            <link>https://medium.com/@udithshalinda/creating-a-simple-os-using-assembly-language-in-windows-881483bfb27c?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/881483bfb27c</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Thu, 13 Jun 2019 13:17:50 GMT</pubDate>
            <atom:updated>2019-06-13T13:17:50.559Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This is the easiest way to create your own “operating system” using windows. And I create my os to show the booted device’s hardware information. First we need to have install few thing in our windows computer.</p><p>First <strong>ImDisk Virtual Disk Driver</strong> is needed since Windows does not have a built-in mechanism for loopback drives. You can get it in <a href="http://www.ltr-data.se/files/imdiskinst.exe">here</a>.</p><p>Next we need to have nasm for convert our <strong>.asm </strong>file to <strong>.bin</strong> files.</p><p>And a virtual box.</p><h3>Creating Operating System</h3><p>In order to create an operating system you need to have two files. Which is “Bootloader.asm” file and “kernel.asm” file.</p><p>Bootloader file’s task is to boot the kernel file. And this bootloader.asm file and kernel.asm file will be converted to .bin file later.</p><p>In order to convert bootloader.asm file run following command in command prompt in relative path.</p><pre>nasm -O0 -f bin -o bootload.bin bootload.asm</pre><p>After that we have to convert the kernel.asm file to kernel.bin.</p><pre>nasm -O0 -f bin -o kernel.bin kernel.asm</pre><p>Then adding boot sector to disk image</p><pre>dd count=2 seek=0 bs=512 if=bootload.bin of=.\myos.flp</pre><p>Then we need to create a floppy disk image. Then you can clone the myos.flp file from <a href="https://github.com/udith-shalinda/MyOs">here</a>.After that run the following code in command prompt.</p><pre>imdisk -a -f myos.flp -s 1440K -m B:</pre><p>Then you will see a floppy disk drive is created.After that you have to copy your kernel.bin file and paste into the B: disk drive.</p><p>Use following code to dismount the B: disk drive.</p><pre>imdisk -D -m B:</pre><p>Then you can try your os using virtual box.</p><h3>Description</h3><p>The assember will work in 16-bit real mode. This bios will load the os in 0x7c00 memory location.</p><p>These are some of defined strings</p><pre>strmemory  db &quot;Base Memory size: &quot;, 0x00<br> strsmallextended db &quot;Extended memory between(1M - 16M): &quot;, 0x00<br> strbigextended  db      &quot;Extended memory above 16M: &quot;, 0x00<br> strCPUVendor  db &quot;CPU Vendor : &quot;, 0x00<br> strCPUdescription db &quot;CPU description: &quot;, 0x00<br> strNotSupported  db &quot;Not supported.&quot;, 0x00<br> strhdnumber  db &quot;Number of hard drives: &quot;,0x00<br> strserialportnumber db &quot;Number of serial ports: &quot;, 0x00<br> strserialport1  db &quot;Base I/O address for serial port 1 (communications port 1 - COM 1): &quot;, 0x00<br> strtotalmemory  db &quot;Total memory: &quot;, 0x00</pre><p>Reading base memory</p><pre><br> push ax<br> push dx<br> <br> int 0x12  ; call interrupt 12 to get base mem size<br> mov dx,ax <br> mov [basemem] , ax<br> call _print_dec  ; display the number in decimal<br> mov al, 0x6b<br>        mov ah, 0x0E            ; BIOS teletype acts on &#39;K&#39; <br>        mov bh, 0x00<br>        mov bl, 0x07<br>        int 0x10<br> <br> pop dx<br> pop ax</pre><p>Reading extended memory</p><pre> call _display_endl<br>        mov si, strsmallextended<br>        mov al, 0x01<br>        int 0x21</pre><pre>xor cx, cx  ; Clear CX<br> xor dx, dx  ; clear DX<br> mov ax, 0xE801<br> int 0x15  ; call interrupt 15h<br> mov dx, ax  ; save memory value in DX as the procedure argument<br> mov [extmem1], ax<br> call _print_dec  ; print the decimal value in DX<br> mov al, 0x6b<br>        mov ah, 0x0E            ; BIOS teletype acts on &#39;K&#39;<br>        mov bh, 0x00<br>        mov bl, 0x07<br>        int 0x10</pre><pre>xor cx, cx  ; clear CX<br>        xor dx, dx  ; clear DX<br>        mov ax, 0xE801<br>        int 0x15  ; call interrupt 15h<br> mov ax, dx  ; save memory value in AX for division<br> xor dx, dx<br> mov si , 16<br> div si   ; divide AX value to get the number of MB<br> mov dx, ax<br> mov [extmem2], ax<br> push dx   ; save dx value</pre><pre>call _display_endl<br>        mov si, strbigextended<br>        mov al, 0x01<br>        int 0x21<br> <br> pop dx   ; retrieve DX for printing<br> call _print_dec<br> mov al, 0x4D<br>        mov ah, 0x0E            ; BIOS teletype acts on &#39;M&#39;<br>        mov bh, 0x00<br>        mov bl, 0x07<br>        int 0x10</pre><pre>call _display_endl<br> mov si, strtotalmemory<br> mov al, 0x01<br> int 0x21</pre><pre>; total memory = basemem + extmem1 + extmem2<br> mov ax, [basemem] <br> add ax, [extmem1] ; ax = ax + extmem1<br> shr ax, 10<br> add ax, [extmem2] ; ax = ax + extmem2<br> mov dx, ax<br> call _print_dec<br> mov al, 0x4D            <br> mov ah, 0x0E            ; BIOS teletype acts on &#39;M&#39;<br> mov bh, 0x00<br> mov bl, 0x07<br> int 0x10</pre><p>CPU information</p><pre>call _display_endl<br> mov si, strCPUVendor<br> mov al, 0x01<br> int 0x21<br> mov eax, 0x00000000  ; set eax register to get the vendor<br> cpuid    <br> mov eax, ebx  ; prepare for string saving<br> mov ebx, edx<br> mov edx, 0x00<br> mov si, strVendorID<br> call _save_string</pre><pre>mov si, strVendorID  ;print string<br> mov al, 0x01<br> int 0x21</pre><pre>call _display_endl<br> mov si, strCPUdescription<br> mov al, 0x01<br> int 0x21</pre><pre>mov eax, 0x80000000  ; First check if CPU support this <br> cpuid<br> cmp eax, 0x80000004<br> jb _cpu_not_supported  ; if not supported jump to function end<br> mov eax, 0x80000002  ; get first part of the brand<br> mov si, strBrand<br> cpuid<br> call _save_string<br> add si, 16<br> mov eax, 0x80000003  ; get second part of the brand<br> cpuid<br> call _save_string<br> add si, 16<br> mov eax, 0x80000004  ; get third part of the brand<br> cpuid<br> call _save_string</pre><pre>mov si, strBrand  ; print the saved Brand string<br> mov al, 0x01<br> int 0x21<br> jmp _hard_info</pre><p>Number of hard drivers</p><pre>_hard_info:<br> call _display_endl<br> mov si, strhdnumber<br>        mov al, 0x01<br>        int 0x21</pre><pre>mov ax,0040h             ; look at 0040:0075 for a number<br> mov es,ax                ;<br> mov dl,[es:0075h]        ; move the number into DL register<br> add dl,30h  ; add 48 to get ASCII value            <br> mov al, dl<br>        mov ah, 0x0E            ; BIOS teletype acts on character <br>        mov bh, 0x00<br>        mov bl, 0x07<br>        int 0x10</pre><p>About serial ports and print them</p><pre>_serial_ports:<br> call _display_endl<br> mov si, strserialportnumber<br> mov al, 0x01<br> int 0x21</pre><pre>mov ax, [es:0x10]<br> shr ax, 9<br> and ax, 0x0007<br> add al, 30h<br> mov ah, 0x0E            ; BIOS teletype acts on character<br> mov bh, 0x00<br> mov bl, 0x07<br> int 0x10</pre><pre>; Reading base I/O addresses<br> ;Base I/O address for serial port 1 (communications port 1 - COM 1)<br> mov ax, [es:0000h] ; Read address for serial port 1<br> cmp ax, 0<br> je _end<br> call _display_endl<br> mov si, strserialport1<br>        mov al, 0x01<br>        int 0x21</pre><pre>mov dx, ax<br> call _print_dec</pre><h3>Code</h3><p>Get the code from <a href="https://github.com/udith-shalinda/MyOs">here</a>.</p><h3>Screen shot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Rf0wa7ZSrK56s6GlKNYcDg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=881483bfb27c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The dining philosophers solution in java]]></title>
            <link>https://medium.com/@udithshalinda/the-dining-philosophers-solution-in-java-534e2f89e126?source=rss-b4ec0ccc725b------2</link>
            <guid isPermaLink="false">https://medium.com/p/534e2f89e126</guid>
            <dc:creator><![CDATA[Udith Shalinda]]></dc:creator>
            <pubDate>Sat, 04 May 2019 17:01:25 GMT</pubDate>
            <atom:updated>2019-05-04T17:01:25.278Z</atom:updated>
            <content:encoded><![CDATA[<h4>1.The problem</h4><p>The dining philosophers problem states that there are 5 philosophers sharing a circular table and they eat and think alternatively. There is a bowl of rice for each of the philosophers and 5 forks. A philosopher needs both their right and a left forks to eat. A hungry philosopher may only eat if there are both forks available. Otherwise, a philosopher puts down their forks and begin thinking again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*2kb8zfXxNOJDZBwhTGjUoA.jpeg" /></figure><p>In here I assume each philosopher has ten foods and soon after everyone eat all foods , the process will be stopped. Otherwise this process will be endless.</p><h4>2. Solution</h4><p>pseudo code for this problem</p><pre>foodLeft=10;</pre><pre>while(foodLeft &gt; 0){<br>   thinking();</pre><pre>   pickUpLeftFork();<br>   pickUpRightFork();<br>   <br>   eat();<br>   foodLeft--;</pre><pre>   putDownRightFork();<br>   putDownLeftFork();}</pre><p>First each philosopher is thinking and after certain amount of time they will get hungry.So they pick left fork first and check whether the right fork is available or not. If it’s available he will eat and once the eating is done , he will put both forks down. If it’s not available he will put down the other fork as well.</p><pre>public class Philosopher implements Runnable{<br>    private Object leftFork;<br>    private Object rightFork;<br>    private int foodLeft = 10;<br><br>    public Philosopher(Object leftFork,Object rightFork){<br>        this.leftFork= leftFork;<br>        this.rightFork= rightFork;<br>    }<br><br>    public void doAction(String action) throws InterruptedException{<br>        System.<em>out</em>.println(<br>            Thread.<em>currentThread</em>().getName()+&quot; &quot;+action);<br>        Thread.<em>sleep</em>((int)(Math.<em>random</em>()*100));<br><br>    }<br><br><br>    @Override<br>    public void run() {<br>        try{<br>            while(foodLeft&gt;0){<br>                doAction(<br>                  &quot;Food left : &quot;+this.foodLeft+&quot;   : Thinking&quot; );<br>                synchronized (leftFork){<br>                    doAction(<br>                     &quot;Food left : &quot;+this.foodLeft+<br>                      &quot; : Picked up left fork&quot;);<br>                    synchronized (rightFork){<br>                        doAction(<br>                          &quot;Food left: &quot;+this.foodLeft+<br>                           &quot; : Picked up right fork and <br>                            started eating&quot;);<br>                        doAction(<br>                          &quot;Food left : &quot;+this.foodLeft+<br>                           &quot; : Put down right fork&quot;);<br>                        this.foodLeft-=1;<br>                    }<br>                    doAction(<br>                       &quot;Food left : &quot;+this.foodLeft+<br>                       &quot; : Put down left fork and start thinking&quot;);<br>                }<br>            }<br>        }catch(InterruptedException e){<br>            Thread.<em>currentThread</em>().interrupt();<br>            return;<br>        }<br>    }<br>}</pre><p>Since each philosopher has a left fork and right fork in philosopher class has rightFork and leftFrok instance variables and they are initialized when philosopher object created.</p><p>Inside run method above pseudo code is implemented using java. And specially philosophers take left fork and right fork synchronized way .</p><pre>public class Main {<br><br>    public static void main(String[] args) throws  Exception{<br>        Philosopher philosopher[] = new Philosopher[5];<br>        Object fork[] = new Object[5];<br><br>        for(int i=0;i&lt;philosopher.length;i++){<br>            fork[i] = new Object();<br>        }<br><br>        for(int i=0;i&lt;philosopher.length;i++){<br>            Object leftFork = fork[i];<br>            Object rightFork = fork[(i+1)%5];<br>        </pre><pre>          //use this if condition to avoid dead lock<br>            if(i == philosopher.length-1){<br>                philosopher[i] = new                      <br>                  Philosopher(leftFork,rightFork);<br>            }else{<br>                philosopher[i] = new     <br>                  Philosopher(rightFork,leftFork);<br>            }<br>            Thread t = new Thread(<br>                 philosopher[i] ,&quot; Philosopher &quot;+(i+1));<br>            t.start();<br><br>        }<br>    }<br>}</pre><p>If we don’t use if condition as above we may have to face a deadlock situation. In here deadlock means all philosophers pickup left fork at the same time and put them down at the same time. So they will never get a chance to eat.To avoid that we use if condition as above.</p><pre>//The result of deadlock<br>Philosopher 1 Food left : 10   : Thinking<br> Philosopher 3 Food left : 10   : Thinking<br> Philosopher 4 Food left : 10   : Thinking<br> Philosopher 2 Food left : 10   : Thinking<br> Philosopher 5 Food left : 10   : Thinking<br> Philosopher 2 Food left : 10 : Picked up left fork<br> Philosopher 1 Food left : 10 : Picked up left fork<br> Philosopher 5 Food left : 10 : Picked up left fork<br> Philosopher 3 Food left : 10 : Picked up left fork<br> Philosopher 4 Food left : 10 : Picked up left fork</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=534e2f89e126" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>