<?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 shrimali senevirathna on Medium]]></title>
        <description><![CDATA[Stories by shrimali senevirathna on Medium]]></description>
        <link>https://medium.com/@shrimaliasi?source=rss-bed365872a66------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*x9Ue_6n8ZJLeZb-OGXs3sA.jpeg</url>
            <title>Stories by shrimali senevirathna on Medium</title>
            <link>https://medium.com/@shrimaliasi?source=rss-bed365872a66------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:03:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shrimaliasi/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[From Evidence to Enterprise security: My journey through three cybersecurity mini projects]]></title>
            <link>https://shrimaliasi.medium.com/from-evidence-to-enterprise-security-my-journey-through-three-cybersecurity-mini-projects-a9d9232cf375?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9d9232cf375</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 18:33:51 GMT</pubDate>
            <atom:updated>2025-08-15T19:04:30.409Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QQVPHxATsYX6GaWcUlfeoQ.png" /></figure><p>Cybersecurity isn’t just about theory, it’s about rolling up your sleeves, thinking like an attacker, and responding like a defender.</p><h4>1. Cracking the Case: Digital Forensics Investigation</h4><p>In this project, I explored digital forensics by analysing a forensic disk image without making any changes to it. My goal was to uncover the smallest details that would reveal the hidden clues and construct a clear narrative that would stand up in court.</p><p>The process breaks down when verifying data integrity through MD5 and SHA-1 hashing to ensure the authenticity of the data. During the investigations, forensic tools were deployed to locate hidden files, examine logs, and recover deleted data. Also decrypted a volume with sensitive financial data that is suspicious of financial fraud. Throughout the investigation, the focus was on connecting the dots between activities to identify suspicious behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05Ahvot2gJ47gCyfIYwZ0A.png" /></figure><p>I used several tools in analysing the evidence. Mainly, I used Autopsy to analyse parts and TrueCrypt for decryption parts. This was my first time working with those tools, and I found them quite amazing and interesting.</p><p><strong>Outcome</strong><br>I recovered important deleted files and maintained a detailed record of the evidence, ensuring that everything could be used in court. Created a detailed report that is presentable with all the data found during the investigation.</p><p>What I learned in forensics is that being accurate and keeping careful records is just as important as the technical work. Even the best analysis doesn’t matter if you can’t demonstrate a clear and trustworthy record</p><p><strong>Can AI replace this digital forensics analysis?</strong></p><p>The answer is still NO. But AI can help in the process..Let’s see where AI can interfere in digital forensics.</p><p>The usage of AI is to make our work easier. So simply the receptive task can be automated. AI can quickly sort through huge amounts of log data, emails, or image files to flag suspicious patterns. Considering machine learning, it can help prioritise which devices, files, or activities to investigate first.</p><p>Specifically, AI algorithms will be able to detect anomalies, file similarities, and timeline correlations that a human might miss. Computer vision can recognise objects, faces, or text in large datasets much faster than manual review.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DqHnMOKmmKbRgC2GoDJpcw.png" /></figure><p><strong>Natural language processing</strong> (NLP) can scan and interpret communications for potential criminal intent or insider threat indicators. However, human interaction remains essential. Especially considering the Contextual understanding, Legal &amp; procedural requirements, Ethical decision-making, and Creative problem-solving.</p><p>AI can identify unusual patterns, but it does not understand why something might be suspicious in a broader investigation. Forensic work adheres to strict guidelines for handling evidence, maintaining accurate records, and ensuring its admissibility in court. These steps still require oversight. Deciding if evidence matters, is sensitive, or can be used in court is a judgment call that AI cannot make on its own. Criminals quickly adapt their tactics, and forensic experts often need to devise new methods, which AI cannot accomplish effectively unless it is specifically trained.</p><h4>2. Understanding the Enemy Within: Behaviour-Driven Insider Threat Management for a company</h4><p>The most significant risks often originate within an organisation, rather than from external sources. Insider threats are particularly challenging to address, so companies must pay close attention to them. In this project, we explored the human aspect of cybersecurity and sought<strong> ways to identify, understand, and mitigate</strong> insider threats.</p><p>We did a case study analysis focused on a large tech company. Understanding different behaviour profiles goes beyond just running reports. In this project, we identified patterns of insider threats that often go unnoticed in various industries. For example, an employee might start working odd hours or download large amounts of data without explanation. Sometimes, someone becomes withdrawn after missing a promotion or starts speaking negatively about the company in everyday conversations. The reasons for these actions were rarely simple. For instance, someone might secretly sell confidential designs to a competitor for money. Employees who feel mistreated by management could be pressured by outsiders to steal information. Sometimes, personal beliefs clash with company policies or client needs, which can lead to intentional sabotage.</p><p>Considering all the facts, a security plan combining technology with predictive analytics to detect unusual activity patterns before they become serious threats was suggested as a technical solution.</p><p>The technical solution’s name was<strong> IRAE, </strong>which stands for Insider Threat Analysis Engine, utilising several technologies. A custom-built internal system that integrates user behaviour analytics (UBA), real-time monitoring, access governance, and machine learning to detect, classify, and respond to insider threats within Amazon’s vast ecosystem Below is the suggested Architecture for the tool</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ffe7HFSLBsypU_ABpnwrLA.png" /></figure><p>This tool uses several technologies for analysis, monitoring, and displaying data. We were familiar with the technologies currently used by the company we selected for our case study analysis.</p><p>This tool consists of different layers, such as the Data Ingestion layer, which uses AWS CloudTrail, IAM logs, endpoint telemetry, and HR data to collect all user behaviour signals. Next, the Analytics Engine uses Machine Learning (Sage Maker) + UBA for the normal behaviour of the Profile and flags deviations. The next layer, the Risk Scoring Engine, uses Internal rules and ML output to classify actions as benign, negligent, or malicious. The Control Integration layer uses DLP, IAM restrictions, AWS Config to Automate security response (block, alert, isolate). The Dashboard layer uses Amazon QuickSight or custom UI to show real-time threat heatmaps &amp; investigation trails. The Audit &amp; Compliance Layer USES Immutable logs (AWS S3 + Lambda triggers) for legal reporting and post-breach analysis</p><p>This tool enables the company to identify and take appropriate action based on the insider threat type.</p><p><strong>Outcome</strong></p><p>We were able to develop a strategy that safeguards company assets without compromising trust. Technology alone is insufficient to prevent insider threats. Building a culture of trust and awareness is just as important.</p><h4>3. Defending the Fortress: Cybersecurity Strategy for a Financial Firm</h4><p>In security, every layer counts. We simulated a cyberattack on a mid-sized financial company. The scenario was tested in a controlled Lab environment set up on our local PC, utilising several technologies and tools, including VMware and VirtualBox. Linux and Windows machines were used. The main goal was to identify weak spots and develop a defence plan that would work in real-life situations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*bc-2VGXJL2o072_oYKfEeg.png" /></figure><p>The process consisted of a vulnerability scan, which we used to assess Linux and Windows systems for weaknesses and misconfigurations. As the next phase, I applied the <strong>DREAD framework</strong> to prioritise risks in Threat Modelling. In shorter form, DREAD is a structured, quantitative threat-assessment model originally developed by Microsoft. It helps teams evaluate and prioritise security threats by scoring them across five key dimensions:</p><ul><li><strong>Damage (D) — </strong>Potential severity if exploited</li><li><strong>Reproducibility (R)</strong> — How easily the attack can be repeated</li><li><strong>Exploitability (E)</strong> — Effort or skill required to launch the attack</li><li><strong>Affected Users (A)</strong> — Number or criticality of users impacted</li><li><strong>Discoverability (D)</strong> — How easy it is for attackers to find the vulnerability</li></ul><p>Each category is typically rated from 0 to 10, and the average score represents the overall threat level. For the Attack Mapping, the attack trees were used to visualise how an attacker could advance through the system. In the Defensive Layers, technical suggestions included Multi-Factor Authentication, IDS/IPS deployment, and patch management. Organisational suggestions encompassed Security policy updates, awareness campaigns, and incident response drills.</p><p><strong>Outcome</strong></p><p>Security is strongest when there are several layers of protection. If one fails, another should be ready to take over. Human factors are often more crucial than we think in cybersecurity.</p><p>I hope this article will help everyone to raise their knowledge on some of the cybersecurity concepts.</p><p><em>Disclaimer: Opinions expressed are solely my own and do not express the views or opinions of my employer or any institution.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9d9232cf375" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is CloudOps ?]]></title>
            <link>https://shrimaliasi.medium.com/what-is-cloudops-1144d942d29c?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/1144d942d29c</guid>
            <category><![CDATA[aws-service]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[techonology]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 14:15:58 GMT</pubDate>
            <atom:updated>2023-03-06T14:15:58.670Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is CloudOps ?</h3><p>Cloud Operations, also known as CloudOps, refers to the set of practices and processes involved in the management and maintenance of cloud-based systems and applications. As more and more organizations adopt cloud-based infrastructure, CloudOps has become a critical function for ensuring the availability, performance, and security of these systems.</p><p>CloudOps comprises several key components that work together to ensure the smooth functioning of cloud-based infrastructure. These components include cloud infrastructure management, cloud application management, cloud security, and cloud monitoring and analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaZHR5Gd_0aE5jFXoUk49g.jpeg" /></figure><p>Cloud Infrastructure Management involves provisioning, configuring, and monitoring cloud resources such as servers, storage, and network infrastructure to ensure optimal performance and availability. This component ensures that the cloud environment can easily scale to meet changing demands without the need for extensive capital investments in hardware or infrastructure.</p><p>Cloud Application Management involves the management of cloud-based applications, including the deployment, configuration, and monitoring of applications to ensure their availability, performance, and security. This component ensures that cloud-based applications are deployed and configured in a consistent manner, and that they can be easily scaled to meet changing demands.</p><p>Cloud Security involves the implementation of security controls to protect the cloud environment from unauthorized access, data breaches, and other security threats. This includes the management of access controls, encryption, and identity and access management (IAM) policies. Cloud security ensures that the cloud environment is protected from security threats and that sensitive data is kept secure.</p><p>Cloud Monitoring and Analytics involves the use of monitoring tools to track the performance and availability of cloud-based resources and applications. Cloud monitoring and analytics tools provide insights into usage patterns, performance trends, and potential issues, enabling CloudOps teams to take proactive steps to optimize the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVtbHaKa7DTAGPy1TXZx-g.jpeg" /></figure><p>The adoption of Cloud Operations provides several benefits to organizations, including scalability, reduced cost, improved efficiency, and better performance. CloudOps enables organizations to easily scale their infrastructure to meet changing demands without the need for extensive capital investments in hardware or infrastructure. It also reduces the cost of managing and maintaining IT infrastructure by outsourcing these responsibilities to cloud service providers. CloudOps improves efficiency by automating many of the processes involved in managing and maintaining cloud-based infrastructure, reducing the risk of human error. Finally, CloudOps enables organizations to optimize the performance of their cloud-based resources and applications, ensuring optimal availability and performance.</p><p>Cloud Operations involves the use of several tools to manage, monitor, and maintain cloud-based resources and applications. These tools include Infrastructure-as-Code (IaC), configuration management, cloud monitoring and analytics, and security tools such as firewalls, intrusion detection systems, and vulnerability scanners.</p><p>AWS (Amazon Web Services) is a popular cloud platform that offers a wide range of cloud services to support various business needs. Here are some examples of cloud operations on AWS:</p><ol><li>Deploying virtual servers (EC2 instances) — Cloud operations teams can use AWS EC2 (Elastic Compute Cloud) to deploy virtual servers in the cloud. They can select the appropriate instance types, operating systems, and storage options based on their requirements.</li><li>Configuring load balancers — AWS provides load balancing services such as Elastic Load Balancer (ELB) and Application Load Balancer (ALB) to distribute incoming traffic across multiple instances. Cloud operations teams can configure these load balancers to ensure high availability and scalability.</li><li>Monitoring resource utilization — AWS CloudWatch provides monitoring and logging services to help teams monitor resource utilization and performance metrics. Cloud operations teams can set up alarms and alerts to notify them when certain thresholds are exceeded.</li><li>Automating deployments — AWS provides tools like AWS CodeDeploy, AWS CodePipeline, and AWS CloudFormation to automate the deployment of infrastructure and applications. Cloud operations teams can use these tools to create repeatable, automated deployment processes.</li><li>Managing databases — AWS provides managed database services like Amazon RDS (Relational Database Service) and Amazon DynamoDB to simplify database management tasks. Cloud operations teams can use these services to create, configure, and manage databases in the cloud.</li></ol><p>In conclusion, Cloud Operations is a critical function for organizations that rely on cloud-based infrastructure. It involves the management and maintenance of cloud-based systems and applications, and comprises several key components that work together to ensure the smooth functioning of the environment. The adoption of Cloud Operations provides several benefits to organizations, including scalability, reduced cost, improved efficiency, and better performance. CloudOps involves the use of several tools to manage, monitor, and maintain cloud-based resources and applications, and it will continue to evolve as organizations increasingly rely on cloud-based infrastructure. Happy Reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1144d942d29c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basics of CI/CD with GitLab]]></title>
            <link>https://towardsdev.com/basics-of-ci-cd-with-gitlab-d4e2ba23440e?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4e2ba23440e</guid>
            <category><![CDATA[cicd-pipeline]]></category>
            <category><![CDATA[gitlab-runner]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Wed, 23 Feb 2022 10:01:58 GMT</pubDate>
            <atom:updated>2022-02-24T08:19:08.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k44ZhPz8SJ9gCVJdU90WlA.png" /></figure><h3>What is GitLab?</h3><p>GitLab is a source and version control system. GitLab provides a feature to use as a platform where it brings DevOps into practice. The Development Operations and Security teams can work as a single team. GitLab is powerful as it accelerates software delivery reducing extra costs and ensuring the security of the applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*sghmR_oQ1LWEBeKjpVcQuA.png" /></figure><h3>What is CI/CD?</h3><p>CI/CD is a method of continuously delivering applications to customers by introducing automation into the stages of application development. CI is Continous Delivery and CD is continuous delivery or continuous deployment.</p><h3>GitLab CI/CD?</h3><p>GitLab provides an automation engine where it enables teams to perform DevOps practices. As mentioned above the effectiveness of the CI/CD process is high when using a CI/CD tool. GitLab is comparable to Jenkins which is another mostly used CI/CD tool. GitLab CI/CD will automatically build test and deploy using a GitLab pipeline</p><h3>GitLab pipeline</h3><p>According to GitLab, “pipelines are the top-level component of continuous integration, delivery, and deployment”. The GitLab pipeline includes a version control <strong>YAML file</strong> that lives at the root directory of the GitLab project. Simply it is an automated set of sequential steps to build, test, and deliver/deploy your code. GitLab pipelines are made of two main components such as <strong>jobs</strong> and <strong>stages</strong>. Jobs are the tasks that need to be done and the stages are the order in which jobs will be completed. The pipeline is a simple set of instructions for a program to execute. That program that executes the job and the GitLab pipeline is called a GitLab runner</p><h3>Git Lab runner</h3><p>GitLab Runner is a separate program that can be run on a localhost VM or even in a docker container. And this is very similar to the concept of the Jenkins agent. GitLab assigns pipeline jobs to available runners at pipeline runtime.</p><h3>Creating your First CI/CD pipeline</h3><p>Create a project in GitLab and clone it to the local folder. Then go to the left navigation pane in the GitLab UI and select <strong>CI/CD option</strong> which is shown below. There you can see there&#39;s an option to use sample CI/CD templates as well. Check that option and you can use that by choosing the relevant template that suits your project. I am using the editor option to create a customized pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tf-LqnO20DvrHViZf44B1w.png" /><figcaption>fig 1.0 CI/CD option in the left navigation bar in the GitLab UI</figcaption></figure><p>Select the<strong> editor tab </strong>and then you can see the option to create a new CI/CD pipeline as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMjNmPg_A2xL1Qf6bl0M5w.png" /><figcaption>Fig 2.0 Editor Option to create a new CI/CD pipeline</figcaption></figure><p>Click on the create new pipeline and it will create a <strong>.gitlab-ci.yml</strong> file which is a simple test pipeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*r-x8ShsyObjoKywZOsA2tg.png" /><figcaption>fig 3.0 creating the simple test pipeline</figcaption></figure><p>As figure 4.0 shows a pipeline has stages and jobs. <strong>build-job</strong> which runs first at the build stage does not depend on the stage. That is a unique feature compared to other ci/cd pipelines. The <strong>script command</strong> which is under the build-job is required and it allows us to specify commands that a GitLab runner assigns to this job to execute. These commands execute in the order in which they are listed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*W66PuLc4ovxGKX2U5RtnLQ.png" /><figcaption>4.0 Stages and build-job scripts</figcaption></figure><p>As shown in fig 5.0 the pipeline have other jobs like has The <strong>unit-test-job</strong> runs in the test stage and only starts if the build stage is completed successfully. The <strong>lint-test job</strong> can run parallel with the unit-test job in the test stage. <strong>deploy-job</strong> runs in the deploy stage where both test jobs are successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0Z2FcDx8JfsWxsUcvYoJA.png" /><figcaption>5.0 pipeline script</figcaption></figure><p>Then let&#39;s modify the build-job. The output of the build-job is a binary application that can be run and will be used by the test jobs. Let‘s make a new directory first. Then inside that folder, the executable produced will be written into a file as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*jCoREVEXgZXiRy-wpzQJAA.png" /><figcaption>6.0 Adding the executable file</figcaption></figure><p>Modify the unit-test-job to utilize and consume the executable file generated in the build job. cat commands check what is written in the above binary file. <strong>CI_PROJECT_DIR</strong> is a predefined environmental variable that is provided by GitLab made available to GitLab runners when executing. Specify the build directory and the file name as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*OpDA4Zy0zM1ZcjeP5cZssQ.png" /><figcaption>7.0 Adding CI_PROJECT_DIR</figcaption></figure><p>The important thing to notify in GitLab is that jobs run independently of each other and have a fresh environment in each job. To pass the artifacts we should use the <strong>artifacts keyword</strong> and the <strong>dependencies keyword</strong>. To make available the above binary file to unit-test-job we need to add the artifact keyword and the path to the build-job as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*89-OpY_crCBcsqaRThmtfw.png" /><figcaption>8.0 Adding artifacts</figcaption></figure><p>The GitLab runner when executing the artifact keyword will be uploading the binary file to the GitLab and downstream jobs like unit-test-job will download it and execute. Please find the code <a href="https://github.com/shriasi/samplegitlabpipelines/blob/main/samplegitlabci.yml">here</a>.</p><p>To run the pipeline commit the changes and then the pipeline will start to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*AWVP1_JdEzZRkZ7Mjw94_A.png" /><figcaption>9.0 Running the pipeline</figcaption></figure><p>If you have validated your GitLab account, the above pipeline will run successfully. Instead, you can use your own runners after configuring them.</p><h3>Learn More…</h3><p>As we all know referring to the documentation is the best approach to learning new technology as it updates about the latest features and versions that are released. GitLab also has an amazingly easy learning kind of documentation. <a href="https://docs.gitlab.com/ee/">Here</a> is the link. Try to use your own way of learning since it differs from one to another. Enjoy Learning!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bV7ChEBc5QIYT5OCHjDYIQ.jpeg" /></figure><p><em>Disclaimer: Opinions expressed are solely my own and do not express the views or opinions of my employer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4e2ba23440e" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/basics-of-ci-cd-with-gitlab-d4e2ba23440e">Basics of CI/CD with GitLab</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Pull Request on GitHub]]></title>
            <link>https://shrimaliasi.medium.com/a-simple-pull-request-on-github-217afd34a601?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/217afd34a601</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[pull]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[simple]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 08:10:17 GMT</pubDate>
            <atom:updated>2021-03-07T08:13:39.841Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi all… Learning has become an essential thing in our lives. As we are more techy people , we have to learn new technologies every day and keep updated as much as we can.</p><p>Specially, If we are trying to learn a new technology, it’s a great idea to practice our skills by contributing to a project on GitHub that uses that technology.</p><p>To do that we should know how to interact with the project. Simply this includes how to collaborate to the project and send bug fixes, how to make sure that your fixes are applied, and even how to figure out which fixes are needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*O9pYXOq8roaoJsVzBdH_OQ.jpeg" /></figure><p>In GitHub we can look at other people’s codes to learn and collaborate with them. But we are restricted to edit a file in a project that we don’t have a right access to. But , we can fork a project to our GitHub account of the project where we can commit our changes to. when we submit changes to this file, it will create a new branch so that we can send a pull request.</p><p>But what exactly is a fork?</p><p>Forking is a way of creating a copy of the given repository so that it belongs to that specific person who owns the repository. But the person who is going to contribute to the project is able to push changes to the forked copy, even when that person can’t push changes to the original repo.</p><p>So the typical workflow of contributing a GitHub Project is given below.</p><pre>1.create a fork of the repo, and then work on that local fork.</pre><p>When you go in to the repository that you want to contribute , in the upper right corner there is a button as given in the image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*J78FEKGtoxazyamp5FHi-Q.png" /></figure><p>A forked repo is just like a normal repo, except GitHub knows which repo it forked from. So we can eventually merge our changes back into the main repo by creating a pull request.</p><pre>2. Do the changes or the fixes related to the codes</pre><p>Now you can do changes on the forked repo and make a change proposal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*woJRyCifnUCE-yEPvD8x0A.png" /></figure><p>This will create a commit in the forked repo. So as we discussed earlier , it will send the changes in a branch. Then we can compare the changes too. To merge it to the main repo , we need to create a pull request.</p><pre>3. Create a pull request by clicking the Pull request button</pre><p>Click pull request button as given the image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*P59mLgW2HiV4I05ZNI7n3w.png" /></figure><p>After clicking, we will get a text box to write about our changes. After that we should make the pull request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*xZly40U3p2vopxv5YJ3iFg.png" /></figure><p>Since a pull request is a commit or series of commits that you send to the owner of the repository so that they incorporate it into their tree , the owners of the repo will review the changes before merging them. Checking that they match the development guidelines for the project and that the license is valid and so on.</p><pre>4. Owner decides  whether they want to merge it to the project or not.</pre><p>Then the owner/owners of the repository will decide whether they want to merge this changes to the main branch. Accordingly it can be merged or discard.</p><p>So this overall process is done through the GitHub interface. With this knowledge we can start contributing to projects on GitHub.</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=217afd34a601" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Login UI with Angular and Material Design]]></title>
            <link>https://shrimaliasi.medium.com/simple-login-ui-with-angular-and-material-design-5e7390ca404a?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e7390ca404a</guid>
            <category><![CDATA[material-design]]></category>
            <category><![CDATA[simple]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[login-and-registration]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Sun, 03 Jan 2021 05:13:26 GMT</pubDate>
            <atom:updated>2021-01-03T05:13:26.520Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi my friends. This article is going to be an introduction to the usages of angular material. What is this angular material?. It is a UI component library for Angular JS developers. Angular is a JavaScript framework. If you want to know more about frameworks please read my article on Frameworks from <a href="https://shrimaliasi.medium.com/frameworks-ddba4fe5a2b3"><strong>Here</strong></a>. Continuing the post , we are going to build a very simple Login User interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*0CfJxvepEYw98My2U4RHZA.jpeg" /></figure><p>Prerequisites</p><ul><li>Node JS must be installed on your PC. If not Open your browser and navigate to: <a href="https://nodejs.org/en/">https://nodejs.org/en/</a> than Download the current version of Node JS.</li><li>Choose your favorite IDE</li><li>Check whether you have downloaded the Angular CLI from the command below.(The specific command Line interface for Angular)</li></ul><pre>ng --version</pre><p>This <strong>command</strong> returns the details of version of Angular CLI if it is installed.</p><p>If it is not installed install the Angular CLI from the below command</p><p><strong>npm install @angular/cli -g</strong></p><p>(for more info: npm is the node package manager for the Node JavaScript platform)</p><p>Okay , now we will make our simple app.</p><p>We have to setup our project. To setup our project , run this command.</p><pre>ng new [*project Name]</pre><p>(* Enter your project name here without braces)</p><p>While downloading the packages , it will prompt some questions to answer and set the answer like I have mentioned below.</p><pre># ? Would you like to add Angular routing? = Yes<br># ? Which stylesheet format would you like to use? = CSS</pre><p>(*Angular Routing is a web app that loads a single HTML page and dynamically updates that page as the user interacts with the web app. When a user requests a specific URL, the <strong>routing</strong> engine captures that URL and renders the view based on the defined <strong>routing</strong> rules.)</p><p>Next , go to the project folder.</p><pre>cd [project name]</pre><p>Then we have to generate *<strong>components</strong> using the Angular CLI.</p><p>(*Angular component is a <strong>reusable piece of code </strong>and can be created using a single command)</p><p>Since we are creating Login and a Registration we have to consider them as two components. So create our two components, run the below commands.</p><pre>ng g component components/log-in — module app</pre><pre>ng g component components/register — module app</pre><p>Now it is the best part coming. Next we are going to install the material UI and implement the Angular Material UI.</p><pre>ng add <a href="http://twitter.com/angular/material">@angular/material</a></pre><p>Next it will point you to select either of the material design pre-built theme.. You can select either one , but I have used the <strong>Indigo/Pink</strong> Theme.</p><p>Then select Yes to the for including Angular Material Typography and Animations packages.</p><pre># ? Set up global Angular Material typography styles? Yes<br># ? Set up browser animations for Angular Material? Yes</pre><p>Then create a custom angular material module file.</p><p>Go to src/app folder and create a .ts file and place the below code.</p><p>Next we will import and register the AngularMaterialModule in <strong>app.module.ts</strong></p><pre>.......<br>import { AngularMaterialModule } from &#39;./angular-material.module&#39;;<br>import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from &#39;<a href="http://twitter.com/angular/core">@angular/core</a>&#39;;</pre><pre><a href="http://twitter.com/NgModule">@NgModule</a>({<br>  declarations: [...],<br>  imports: [<br>    AngularMaterialModule,<br>  ],<br>  providers: [...],<br>  bootstrap: [...],<br>  schemas: [CUSTOM_ELEMENTS_SCHEMA]<br>})</pre><pre>export class AppModule { }</pre><pre>.....<br>import { AngularMaterialModule } from &#39;./angular-material.module&#39;;<br>import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from &#39;@angular/core&#39;;</pre><pre>@NgModule({<br>  declarations: [...],<br>  imports: [<br>    BrowserAnimationsModule,<br>    AngularMaterialModule,<br>  ],<br>   ,<br>  schemas: [CUSTOM_ELEMENTS_SCHEMA]<br>})</pre><pre>export class AppModule { }</pre><p>Then we initialize routing in our design. This routes allows users to navigate from one component another. So include the below code statements in your <strong>app-routing.module.ts.</strong></p><pre>......<br>import { Routes, RouterModule } from &#39;<a href="http://twitter.com/angular/router">@angular/router</a>&#39;;<br>import { LogInComponent } from &#39;./components/log-in/log-in.component&#39;;<br>import { RegisterComponent } from &#39;./components/register/register.component&#39;;</pre><pre>const routes: Routes = [<br>  { path: &#39;&#39;, pathMatch: &#39;full&#39;, redirectTo: &#39;login&#39; },<br>  { path: &#39;login&#39;, component: LogInComponent },<br>  { path: &#39;register&#39;, component: RegisterComponent }<br>];</pre><pre><a href="http://twitter.com/NgModule">@NgModule</a>({<br>  imports: [RouterModule.forRoot(routes)],<br>  exports: [RouterModule]<br>})</pre><pre>export class AppRoutingModule { }</pre><p>Then we will install Angular flex layout</p><pre>npm i -s <a href="http://twitter.com/angular/flex-layout">@angular/flex-layout</a> <a href="http://twitter.com/angular/cdk">@angular/cdk</a></pre><p>Then, import the flex layout module in main app module.</p><pre>import { FlexLayoutModule } from &#39;@angular/flex-layout&#39;;<br>...</pre><pre>@NgModule({<br>    ...<br>    imports: [ FlexLayoutModule ],<br>    ...<br>});</pre><p>Next we have to enable Angular forms.For that enter the following code in the app.module.ts</p><pre>import { FormsModule, ReactiveFormsModule } from &#39;<a href="http://twitter.com/angular/forms">@angular/forms</a>&#39;;<br>...</pre><pre><a href="http://twitter.com/NgModule">@NgModule</a>({<br>    ...<br>    imports: [ FormsModule, ReactiveFormsModule ],<br>    ...<br>});</pre><p>Now we will create the login form in the log-in.component.html.</p><pre>&lt;div class=&quot;login-wrapper&quot; fxLayout=&quot;row&quot; fxLayoutAlign=&quot;center center&quot;&gt;</pre><pre>&lt;mat-card class=&quot;box&quot;&gt;<br>    &lt;mat-card-header&gt;<br>      &lt;mat-card-title&gt;Log in&lt;/mat-card-title&gt;<br>    &lt;/mat-card-header&gt;</pre><pre>&lt;form class=&quot;example-form&quot;&gt;<br>      &lt;mat-card-content&gt;<br>        &lt;mat-form-field class=&quot;example-full-width&quot;&gt;<br>          &lt;input matInput placeholder=&quot;Username&quot;&gt;<br>        &lt;/mat-form-field&gt;</pre><pre>&lt;mat-form-field class=&quot;example-full-width&quot;&gt;<br>          &lt;input matInput placeholder=&quot;Password&quot;&gt;<br>        &lt;/mat-form-field&gt;<br>      &lt;/mat-card-content&gt;<br>      &lt;button mat-stroked-button color=&quot;accent&quot; class=&quot;btn-block&quot;&gt;Log in&lt;/button&gt;<br>    &lt;/form&gt;<br>  &lt;/mat-card&gt;</pre><pre>&lt;/div&gt;</pre><p>Then you can add your style sheet according to your preference. Here is the style.css file I used.</p><pre>html,<br>body {<br>  height: 100%;<br>}</pre><pre>body {<br>  margin: 0;<br>  font-family: Roboto, &quot;Helvetica Neue&quot;, sans-serif;<br>  min-height: 100vh;<br>  background: #e2e2e2;<br>}</pre><pre>.app-header {<br>  justify-content: space-between;<br>  position: fixed;<br>  top: 0;<br>  left: 0;<br>  right: 0;<br>  z-index: 2;<br>  box-shadow: 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12);<br>}</pre><pre>.login-wrapper {<br>  height: 100%;<br>}</pre><pre>.positronx {<br>  text-decoration: none;<br>  color: #ffffff;<br>}</pre><pre>.box {<br>  position: relative;<br>  top: 0;<br>  opacity: 1;<br>  float: left;<br>  padding: 60px 50px 40px 50px;<br>  width: 100%;<br>  background: #fff;<br>  border-radius: 10px;<br>  transform: scale(1);<br>  -webkit-transform: scale(1);<br>  -ms-transform: scale(1);<br>  z-index: 5;<br>  max-width: 330px;<br>}</pre><pre>.box.back {<br>  transform: scale(.95);<br>  -webkit-transform: scale(.95);<br>  -ms-transform: scale(.95);<br>  top: -20px;<br>  opacity: .8;<br>  z-index: -1;<br>}</pre><pre>.box:before {<br>  content: &quot;&quot;;<br>  width: 100%;<br>  height: 30px;<br>  border-radius: 10px;<br>  position: absolute;<br>  top: -10px;<br>  background: rgba(255, 255, 255, .6);<br>  left: 0;<br>  transform: scale(.95);<br>  -webkit-transform: scale(.95);<br>  -ms-transform: scale(.95);<br>  z-index: -1;<br>}</pre><pre>.login-wrapper .example-form {<br>  min-width: 100%;<br>  max-width: 300px;<br>  width: 100%;<br>}</pre><pre>.login-wrapper .example-full-width,<br>.login-wrapper .btn-block {<br>  width: 100%;<br>}</pre><pre>.login-wrapper mat-card-header {<br>  text-align: center;<br>  width: 100%;<br>  display: block;<br>  font-weight: 700;<br>}</pre><pre>.login-wrapper mat-card-header mat-card-title {<br>  font-size: 30px;<br>  margin: 0;<br>}</pre><pre>.login-wrapper .mat-card {<br>  padding: 40px 70px 50px;<br>}</pre><pre>.login-wrapper .mat-stroked-button {<br>  border: 1px solid currentColor;<br>  line-height: 54px;<br>  background: #FFF7FA;<br>}</pre><pre>.login-wrapper .mat-form-field-appearance-legacy .mat-form-field-infix {<br>  padding: 0.8375em 0;<br>}</pre><p>Then create the UI of the registration page in the register.component.html.</p><pre>&lt;div class=&quot;login-wrapper&quot; fxLayout=&quot;row&quot; fxLayoutAlign=&quot;center center&quot;&gt;<br>  &lt;mat-card class=&quot;box&quot;&gt;<br>    &lt;mat-card-header&gt;<br>      &lt;mat-card-title&gt;Register&lt;/mat-card-title&gt;<br>    &lt;/mat-card-header&gt;</pre><pre>&lt;form class=&quot;example-form&quot;&gt;</pre><pre>&lt;mat-card-content&gt;<br>        &lt;mat-form-field class=&quot;example-full-width&quot;&gt;<br>          &lt;input matInput placeholder=&quot;Username&quot;&gt;<br>        &lt;/mat-form-field&gt;</pre><pre>&lt;mat-form-field class=&quot;example-full-width&quot;&gt;<br>          &lt;input matInput placeholder=&quot;Email&quot;&gt;<br>        &lt;/mat-form-field&gt;</pre><pre>&lt;mat-form-field class=&quot;example-full-width&quot;&gt;<br>          &lt;input matInput placeholder=&quot;Password&quot;&gt;<br>        &lt;/mat-form-field&gt;</pre><pre>&lt;mat-form-field class=&quot;example-full-width&quot;&gt;<br>          &lt;mat-label&gt;Choose a role...&lt;/mat-label&gt;<br>          &lt;mat-select&gt;<br>            &lt;mat-option [value]=&quot;roles&quot; *ngFor=&quot;let roles of Roles&quot;&gt;{{roles}}<br>            &lt;/mat-option&gt;<br>          &lt;/mat-select&gt;<br>        &lt;/mat-form-field&gt;</pre><pre>&lt;/mat-card-content&gt;</pre><pre>&lt;button mat-stroked-button color=&quot;accent&quot; class=&quot;btn-block&quot;&gt;Register&lt;/button&gt;</pre><pre>&lt;/form&gt;<br>  &lt;/mat-card&gt;<br>&lt;/div&gt;</pre><p>Then add the code in the app/register.component.ts file.</p><pre>import { Component, OnInit } from &#39;<a href="http://twitter.com/angular/core">@angular/core</a>&#39;;</pre><pre><a href="http://twitter.com/Component">@Component</a>({<br>  selector: &#39;app-register&#39;,<br>  templateUrl: &#39;./register.component.html&#39;,<br>  styleUrls: [&#39;./register.component.css&#39;]<br>})</pre><pre>export class RegisterComponent implements OnInit {</pre><pre>Roles: any = [&#39;Admin&#39;, &#39;Author&#39;, &#39;Reader&#39;];</pre><pre>constructor() { }</pre><pre>ngOnInit() {<br>  }</pre><pre>}</pre><p>Okay.. now we are finished editing our codes. Let’s run our code.</p><pre><strong>ng serve — open</strong></pre><p>Okay finally you can see this UI. By default it will run on the localhost::4200 port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-JS_-S6xXx7OEARdbPkShg.png" /></figure><p>Hope this helped you in some way to get some idea bout material UI design in Angular. To get the full code go directly to GitHub Repository : <a href="https://github.com/shriasi/AngularMaterialLogin">AngularMaterialLogin</a>. Enjoy your coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e7390ca404a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important Linux Commands for general knowledge — 2]]></title>
            <link>https://shrimaliasi.medium.com/important-linux-commands-for-general-knowledge-2-48c9ef045305?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/48c9ef045305</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ownership]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[permission]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Mon, 14 Dec 2020 17:07:25 GMT</pubDate>
            <atom:updated>2020-12-14T17:11:36.454Z</atom:updated>
            <content:encoded><![CDATA[<h3>Important Linux Commands for general knowledge — 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39TPLHY9mSLFKutEKDe3KA.jpeg" /></figure><p>Linux is a <strong>multi-user operating system </strong>which can be accessed by many users. As Linux systems can be used in servers without modifications, it leads to major security concerns as unauthorized users can corrupt , change or remove data. So to make the system more secure Linux provides two authorization levels to customize.</p><ol><li>Ownership</li><li>Permission</li></ol><p>Here we are focusing on how to change the Permissions and about how to change the ownerships.</p><h3>Checking permissions</h3><p>Before begin changing the permission of a file or folder, first need to check the permissions of the specific file/folder.</p><p>To display ownership and permissions for a file,</p><p><strong>ls -1 [FILENAME]</strong></p><h3><strong>Changing file permissions</strong></h3><p>To change the permissions of the file to grant the execution permission to the user ,</p><p><strong>sudo chmod 700 [FILENAME]</strong></p><p>Check the permissions from the below command. Now the execution permission has been added.</p><p><strong>ls -1 [FILENAME]</strong></p><h3>Changing folder permissions</h3><p>move to the directory where the file is placed that you are going to change the permission</p><p><strong>cd [folder]</strong></p><p>Check the current permissions using <strong>ls</strong>, this time with the <strong>-ld</strong> because we are viewing a directory instead of a normal file.</p><p><strong>ls -ld [folder/]</strong></p><p>Now we could see the permission types which has been already granted.</p><p>e.g: read and write permission , read only permission</p><p>Let us assume that we need to have below permissions to one of our folders.</p><p>To add execute(If owner should have all permissions) to the owner’s permissions,</p><p><strong>sudo chmod u+x [folder/]</strong></p><p>To fix the group’s permission to have only write permission,</p><p><strong>sudo chmod g+w [folder/]</strong></p><p><strong>sudo chmod g-r [folder/]</strong></p><p>To remove read permissions from everyone else using the command below,</p><p><strong>sudo chmod o-r [folder/]</strong></p><h3>Changing owners</h3><p>First check the current owner of the specific folder that you need to change the ownership.</p><p><strong>ls -ld [folder/]</strong></p><p>To change the owner ,</p><p><strong>sudo chown [file path]</strong></p><p>Now we can use <strong>ls</strong> again to see that the owner of the file has been changed or not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48c9ef045305" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic facts on Amazon Rekognition]]></title>
            <link>https://shrimaliasi.medium.com/basic-facts-on-amazon-rekognition-a762067a19ea?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/a762067a19ea</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[rekognition]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Thu, 10 Dec 2020 08:11:22 GMT</pubDate>
            <atom:updated>2020-12-10T08:11:22.439Z</atom:updated>
            <content:encoded><![CDATA[<p>Rekognition is an AWS offering in Artificial Intelligence. It is a cloud-based Software as a service. It allows to easily analyze images. It recognizes faces , landscapes and even moods of a person. It also allows you to search and compare faces. Here are some benefits you can gain by using Rekognition Service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*0W3bY_v4cor_SC-rx0rA3A.png" /></figure><p><strong>Easy to Use</strong></p><p>It does not require a massive technological knowledge because it is simply uploading images to the S 3 bucket and all the other behind the scenes are handled by the engine as it provides image recognition at the push of a button. The best part is the available API s which are used to automate the processes.</p><p><strong>Low Cost</strong></p><p>Rekognition currently offers free tier access, up to 5,000 API calls per month. After that, you will be charged per image call according to the latest pricings.</p><p>Scalable</p><p>It provides the facility to send thousands of images in a small time to check it faster.</p><p>Below are the main services provided by the AWS rekognition.</p><ol><li><strong>Object Scene detection</strong></li><li><strong>Facial Analysis</strong></li><li><strong>Face comparison</strong></li><li><strong>Facial rekognition</strong></li><li><strong>Confidence scores on processed images</strong></li></ol><p>From object Scene detection is accurately determines what is in an image. For example, a photo of a person on a beach may contain labels such as Swimwear (objects), Beach (scene).So we can say that it simply recognizes and labels Objects and Scenes (landscapes).</p><p>In summary facial recognition, it compares the features to the provided image and finds the perfect match and in face comparison , it compares and differentiates the given image to the set of images to find out the most similar one. In that situation it provides and confidence score to get a conclusion whether the accuracy of the process is high or low. And also facial analysis can detect the mood of a person’s image.</p><p>Here is a common and a simple use case of Rekognition.</p><p>Image moderation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*WHZborRHH8atjNtSVBKd6A.jpeg" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.slideshare.net%2FAmazonWebServices%2Faws-rekognition-aws-summit-tel-aviv-2017&amp;psig=AOvVaw2h4jADahuIhxwmzfL8ZM7I&amp;ust=1607673405656000&amp;source=images&amp;cd=vfe&amp;ved=0CAIQjRxqFwoTCODj2KT4wu0CFQAAAAAdAAAAABAf">Resource</a></figcaption></figure><p>Image moderation is a process that provides a space for the moderators to ensure that inappropriate content is not posted. The process is clearly displayed in the above image. When uploading an image the S3 bucket object upload triggers Lambda function. Lambda calls rekognition which examines for the content. If there were no any inappropriate content detected the image is posted and can be viewed. But if any inappropriate content is detected ,the post is rejected or else it could be posted as a manual view.</p><p>It is amazing how the technologies are becoming more powerful. Not only Rekognition , there are many platforms that we can use for our future researches and for our developments in organizations and in services.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a762067a19ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important Linux Commands for general knowledge — 1]]></title>
            <link>https://shrimaliasi.medium.com/important-linux-commands-for-general-knowledge-1-c4cbe18f01b8?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4cbe18f01b8</guid>
            <category><![CDATA[commands-list]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[help]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[begginer]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Wed, 09 Dec 2020 17:30:15 GMT</pubDate>
            <atom:updated>2021-02-02T10:29:50.908Z</atom:updated>
            <content:encoded><![CDATA[<h3>Important Linux Commands for general knowledge — 1</h3><p>The most possible reason to <strong>learn</strong> the <strong>commands is because </strong>there are some commands<strong> </strong>accessible only via shell that can control very complex operations on Unix/Linux and Windows machines. Here we are considering some important Linux commands that could help. It is categorized in to several instances where we can use them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*iaPMVMc9I5G30kulzBz39Q.jpeg" /></figure><h3>View Directories/content</h3><p>Check the content on current directory</p><pre><strong>ls</strong></pre><p>You can view more details about the files, like ownership and permissions, by adding the flag <em>-l</em> to the <em>ls</em> command.</p><pre><strong>ls -1</strong></pre><p>To see the hidden files in the current directory</p><pre><strong>ls -a</strong></pre><p>To find out where you are in relation to the rest of the file system</p><pre><strong>pwd</strong></pre><p>To navigate to different directories</p><pre><strong>cd /path/to/other/direcotry</strong></pre><p>To check out the contents of a file</p><pre><strong>cat /path/to/file/file_name</strong></pre><h3>Create new Folders</h3><p>To make a new folder</p><pre><strong>mkdir dir_name</strong></pre><p>To make two or three folders</p><pre><strong>mkdir dir1 dir2 dir3</strong></pre><h3>Remove Folders</h3><p>To remove a directory</p><pre><strong>rmdir dir_name</strong></pre><p>To remove directories</p><pre><strong>rmdir dir1 dir2 dir3 dir4</strong></pre><h3>Copy Files</h3><p>To Copy a file to a specific directory</p><pre><strong>cp /home/user/source_file /home/user/duplicates/target_file</strong></pre><p>To copy multiple files</p><pre>cp /home/usr/dir/{file1,file2,file3,file4} /home/usr/destination/</pre><h3>Move Files</h3><p>To move one or more files or directories into a different location, or rename them to a new name</p><pre><strong>mv /home/user/source_file /home/user/moved_files/target_file</strong></pre><h3>Search Files</h3><p>To search through files for the occurrence of a string of characters that matches a specified pattern</p><pre><strong>grep -rw /home/user/Downloads -e “vacation”</strong></pre><h3>Edit files</h3><p>to open the Nano editor and modify an existing file, or create a new one</p><pre><strong>nano /path/to/existing/file</strong></pre><p>To save modifications to the file</p><pre><strong>Ctrl+O</strong></pre><p>To close and exit the program using</p><pre><strong>Ctrl+X</strong></pre><p>To get help using</p><pre><strong>Ctrl+G</strong></pre><p>To exit help mode</p><pre><strong>Ctrl+X</strong></pre><p>From Next Article, Create, Modify, and Remove File and Folder Permissions in Linux.Go <a href="https://shrimaliasi.medium.com/important-linux-commands-for-general-knowledge-2-48c9ef045305"><strong>here</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4cbe18f01b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 12 Tips For Online Learners]]></title>
            <link>https://shrimaliasi.medium.com/top-12-tips-for-online-learners-5be6aad6474e?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/5be6aad6474e</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[self-learning]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[online-learning]]></category>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 11:23:48 GMT</pubDate>
            <atom:updated>2020-09-08T12:57:02.296Z</atom:updated>
            <content:encoded><![CDATA[<h3>(01)Create a routine(Schedule)</h3><p>Deciding you’ll sit down at your desk and start work at a certain time is one thing. Creating a routine that guides you into the chair is another. So, I am having a<strong> to-do list</strong> before I get started my works. It is very efficient in this period because at the end of the day you will have a tangible report of your works. Make it yours. Use your own colours, designs and ideas to make you use the list book attractive. So, you are prompted to use it the next day too.</p><p>When creating your to-do list, use a technique like the <strong>Eisenhower Matrix</strong>(priority matrix)to prioritize the tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpghSy-3ml9PkG-wt2iJQQ.png" /></figure><h3>(02)Maintain Regular Hours</h3><p>Set a schedule and stick to it…most of the time. Having clear guidelines for when to work and when to call it a day helps many remote learners to maintain a balance in the day to day life. If not like that we will not have a clear idea about what we are planning to do and you can not count how much you have worked or wasted.</p><h3>(03)Keep a Dedicated Learning space</h3><p>Keep our own dedicated workspace. Where we can meet fewer distractions. Most of the times it’s better you can have a place with more light. Like near a window … your own desk and a chair. Even a small space is enough but should consider the surrounding. If it is a more distracting area your routine will not flow as we wish. So choosing the study area is very important. But you may change this space-time to time when you are getting boring, you can go to your garden chair and study.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*G7eePqrVFy3EB-a5qJ3CeQ.jpeg" /></figure><h3>(04)Set Ground Rules with the People and things in Your Space</h3><p>When comes to this we have to consider the people and things. People means sometimes you may spend more time with your siblings. You have to have a control in this and also consider when cuddling the pets. Time wasting may occur when using Social media like Facebook and Whatsapp. So keep a limit.example: I am checking my social media in the morning within 10 minutes.</p><h3>(05)Schedule Breaks (Have a leisure time)</h3><p>Take regular breaks or intervals. You can go outside and look around or go for a small walk around your garden. Or else you can try your leisure time activities. You can listen to songs, draw a painting and listen to mind healing music, do meditation and so on. I wrote some articles on medium.com during that period. Because this is refreshing your day and the mood. Most probably we are working while sitting in a chair whole the day. At that time the productivity becomes low. Because sometimes concentration can be break or you may feel tired as your brain and eyes are tired or you may feel sleepy. So, this is the best way to avoid that kind of time-wasting situations.</p><h3>(06)Keep Socialization online</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*JNx2v7NJDEFp8wQyQpNkAg.jpeg" /></figure><p>Most of the times students are used to get together with friends and work together. But that COVID quarantine period separated all of us from working together. Sometimes we may suffer from loneliness stress, depression. So, talk with your friend. Have a group chat in WhatsApp. There are so many social media platforms now a day so definitely you all can stay connected. So it may lead to refreshing your day and also you will get to know about new events and important things within the discussion.</p><h3>(07)Take Sick Days or time</h3><p>When you’re not well, take the sick time you need. Because if you are trying to keep working with the sickness, it will become more verse and it may lead you to lose your working time from weeks to months. So better have some medicines and get some rest in the very beginning of the illness. Because in this period it is essential to concern about the medical aspects like immunity. So, I drank various herbal water to become stronger in this period. So, this is important to the productivity of the routine.</p><h3>(08)Look for Learning Opportunities</h3><p>During the quarantine period, most of the online education providers like Coursera, UDEMY offered some important and costly courses for free. I grabbed the chance and I completed some important coursers to skill up and also we can share what we have learned from the courses with our friends. That will add you a colour that you have successfully managed your time without wasting a minute of our time.</p><h3>(09)Use different study and learning methodologies</h3><p>There are so many technologies that you can manage your time and do studies. As examples, you can use <strong>POMODORO technique </strong>to study effectively.<strong>SQ5R method</strong> is also used by students and those methods are scientifically proven to be a successful learner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1inU487Um4qI2a64SHXWQ.jpeg" /></figure><h3>(10)Be Positive</h3><p>Learning alone, without the help of the lecturers is not easy for everyone as there are different types of learners. So sometimes it can be hard. Eg: Subjects like Statistics. So at that time, you should make the mindset positively to complete your works. If not that may lead to procrastination and procrastination is the base for failures. So try to be positive in every situation.</p><h3>(11)Don’t Be Too Hard on Yourself</h3><p>Some are saying that most successful remote students are having a reputation for being extremely disciplined. But some students who are likely to have a customizable routine will not like a tough schedule. According to my opinion students do not need a hard schedule. When I am working as a teacher at Kandy Royal International School and when I was teaching as a science math tutor, I experienced that most of the students are likely to have a customizable routine rather than a tough routine and also it is very productive. So during this online learning period, do not be too hard on yourself. As it may lead to some acute like depression.</p><h3>(12)End Your Day with a Routine</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmYSEgx6vvRX-Rn1ZgmYmQ.jpeg" /></figure><p>Just as you should start your day with a routine, create a habit that signals the close of the workday. At the end of the day, we can check our to-do list. How productive it was. You can get a clear idea about what are the points you should consider to become more productive m]by managing the time. If you could not complete some tasks, you can analyze how did it happen and what are the causes. So from the next day, you can get rid of the mistakes you have done on the previous day and go to bed as a satisfied person.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5be6aad6474e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Folders inside a repository in Github]]></title>
            <link>https://shrimaliasi.medium.com/create-folders-inside-a-repository-in-github-ae81b9ab003b?source=rss-bed365872a66------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae81b9ab003b</guid>
            <dc:creator><![CDATA[shrimali senevirathna]]></dc:creator>
            <pubDate>Wed, 22 Jul 2020 06:48:13 GMT</pubDate>
            <atom:updated>2020-07-22T12:55:20.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QWMn0DApM4jmbubKuCmNA.png" /></figure><p>This is a<strong> common question</strong> if you are<strong> new to Github </strong>and if you want to create more folders on different topics inside your repository to categorize some your projects.</p><p>So how we can create folders. So this is simple and here I have explained how I created folders in step by step.</p><p>When you search for GitHub we can see the link go through it and log in to your account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*AszMndBnigQgVOZi-R6K8Q.png" /></figure><p>After a successful login, you can see your dashboard and on the dashboard there we can see some famous repositories.</p><p>Then<strong> go to the repository</strong> that you want to create new folders which are already created or else <strong>create a new repository</strong> with the name you need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*eNxeGdlvtdc_gUHrZyhJzQ.png" /></figure><p>For this example, I will create a repository called <strong>Test.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*qFhf0rb9J7wAXKqkZslU8g.png" /></figure><p>Inside the Test repository, Click create <strong>Add file</strong> and then create a new file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*DpCURnpSSTPXw_BXRJMCcQ.png" /></figure><p>Here <strong>give the folder name </strong>you want to create with a ‘/ ’ mark and then <strong>add a file ( As Git doesn’t store empty folders) </strong>for it. Here as the example, I am adding a text file called filename.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*X4-F25cQIEnWpGaDSBdGHQ.png" /></figure><p>Then <strong>commit the changes</strong>. So after that, you can see the folder we created inside your repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*ME4QNV3vxz7EoM4tDrbnkQ.png" /></figure><p>So like this, you can make many folders inside your repository as you like. Hope this will help you in your works to maintain a quality repository in Github.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae81b9ab003b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>