<?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 Amith Mihiranga on Medium]]></title>
        <description><![CDATA[Stories by Amith Mihiranga on Medium]]></description>
        <link>https://medium.com/@lwpamihiranga?source=rss-d61e23146b06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mYm6AWgDIBMlyqy8sU86AA.jpeg</url>
            <title>Stories by Amith Mihiranga on Medium</title>
            <link>https://medium.com/@lwpamihiranga?source=rss-d61e23146b06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 00:43:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lwpamihiranga/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[How  to Schedule Tasks  in  Ubuntu using  Cron  Job]]></title>
            <link>https://medium.com/microsoft-student-champs-sri-lanka/how-to-schedule-tasks-in-ubuntu-using-cron-job-6e01581ea71f?source=rss-d61e23146b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e01581ea71f</guid>
            <category><![CDATA[scripting]]></category>
            <category><![CDATA[cron]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Amith Mihiranga]]></dc:creator>
            <pubDate>Fri, 22 Jan 2021 13:47:05 GMT</pubDate>
            <atom:updated>2021-08-29T17:52:52.906Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hmyVmOvWPVnUhPQzdY9N_A.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@olly?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Andrea Piacquadio</a> from <a href="https://www.pexels.com/photo/confused-businessman-checking-time-on-wristwatch-3760810/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h3>How to Schedule Tasks in Ubuntu using Cron</h3><p>Recently I needed to schedule a task to run everyday on a specific time in one of my servers. So, I did some research on how to do it. I thought it would be great to share with others as well. So in this article I will covers how to schedule tasks to run automatically in a Linux environment using corn jobs. I will be using Ubuntu 18.04 server here. But this will work for any Linux environment you use.</p><p>What is cron? Cron is a job scheduling daemon found in Unix-like environments. We can use it to schedule tasks to run automatically on a scheduled date and time or scheduled intervals. Here a scheduled task will be called as a cron job. There is a specific way that we can schedule the tasks in the cron job. I will describe them in the later part of this tutorial.</p><p>First we have to install cron in our system. You can follow the below commands to install cron daemon.</p><blockquote><strong>~$</strong> sudo apt update</blockquote><blockquote><strong>~$</strong> sudo apt install cron</blockquote><blockquote><strong>~$ </strong>sudo systemctl enable cron</blockquote><p>If you have run the above commands successfully then you have installed cron daemon in your machine.</p><p>Before getting it to the next job scheduling lets understand how to parameterized our job which helps us to specify the date and time we needed schedule our task. There are five fields that we can describe our scheduling time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*8DmB38Y-sTLdNtJCeaX7dg.png" /></figure><p>Below is the format of a cron job</p><blockquote>minute hour day_of_the_month month day_of_the_week command_to_run</blockquote><p>Before scheduling there is a small thing you should know. That is the cron daemon will refer you RTC time. You can check your RTC time by running the below command</p><blockquote><strong>~$</strong> timedatectl</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*aYcz6hKn3tXZGBxxQTEfbw.png" /></figure><p>To setup our cronjob we have to edit our crontab file. To do it do the following,</p><blockquote><strong>~$</strong> crontab -e</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*g-fM2_9jZALiqL1vPtlGrA.png" /></figure><p>At the first time you will be asked to select a preferred editor. You can select a editor you like by inserting the number of the editor you like to use. I am using vim editor. So I choose 2. Then the crontab file will be opened for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njOtV1rIu4m2EsqcDSHweA.png" /></figure><p>There are lot of ways that you can schedule the job time. For our easiness we can use the below site to configure the time. If you are experienced you can simply learn the timing ways by a simple google search.</p><blockquote><a href="https://crontab.guru/">https://crontab.guru/</a></blockquote><p>Here is a basic schedule that I have written</p><blockquote>30 14 * * * ./script.sh</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*EdjlIV2LSJObmSpBsnOG_Q.png" /></figure><p>The about job will run a bash script that is named as script.sh at 2.30 pm at everyday. You can use the about crontab guru web app to schedule your time easily.</p><p>Then you can save and exit according to your selected editor commands.</p><p>That’s it. Now you have successfully scheduled a cron job 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e01581ea71f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-student-champs-sri-lanka/how-to-schedule-tasks-in-ubuntu-using-cron-job-6e01581ea71f">How  to Schedule Tasks  in  Ubuntu using  Cron  Job</a> was originally published in <a href="https://medium.com/microsoft-student-champs-sri-lanka">Microsoft Student Champs — Sri Lanka</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Specialization Clarification 1.0— Software Engineering]]></title>
            <link>https://lwpamihiranga.medium.com/specialization-clarification-1-0-software-engineering-d509f86b5344?source=rss-d61e23146b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/d509f86b5344</guid>
            <category><![CDATA[software-engineer]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[university]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Amith Mihiranga]]></dc:creator>
            <pubDate>Tue, 04 Aug 2020 06:46:35 GMT</pubDate>
            <atom:updated>2020-08-04T06:46:35.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOLFirS0yJ2s28QpIQu6cA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@thisisengineering?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">ThisIsEngineering</a> from <a href="https://www.pexels.com/photo/female-software-engineer-coding-on-computer-3861972/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>I warmly welcome you all to my second medium post. This will be the first post of a series of posts that I do to clarify specializations of Information Technology degrees to undergraduate students and whoever is searching for some information to make decision choosing a specialization. My motivation behind writing this post is, I have dealt with this problem in my junior years. There was no one for me to give advice on this matter and I had to go through a lot of second-guessing myself due to the lack of understanding and information about the specializations. I have seen some of my friends in junior batches also facing this problem. Hence I thought to write this series to share my knowledge as much as possible so this will help someone even in a tiny way.</p><p>I am currently a 3rd-year 2nd-semester Software Engineering undergraduate at Sri Lanka Institute of Information Technology (SLIIT). Also, I have recently completed my 9 months internship as an Intern Software Engineer in Infor Sri Lanka. Since I am a doing Software Engineering Specialization I will try my best to clarify on Software Engineering specialization in the first post and in next post I will try to clarify other specializations as much as possible to my understanding. This posts will be mainly focused on students who are studying at my university but I hope this will be helpful to other students as well.</p><p>What is Software Engineering? To answer this let’s see what a Software Engineer do. Software Engineers are the people who engineer the software. What is Engineering? 🤔 We can consider engineering as building something with a structured way so that it will be built in a great way to provide the functionality it provides to the best as possible. I don’t want to bother you all with technical words here. I just need to clarify these words as simple as I could. Basically Software Engineering is the process of building software, so that will provide the best value possible. This is not about making a simple todo app. When large scale systems are being built there is a lot of complexity in it. Software Engineers are the people who engineer these systems so it can be built in an effective way.</p><p>Most people think Software Engineer is a person who codes all-day sitting in front of a computer screen. That’s not the way. Yeah, coding will be the main thing you do, but there’s more to do as a Software Engineer. Software Engineer has to decide how the system will be built, what technologies should be used, how to design the system. Software Engineer will have work closely with Product Managers and Business Analysts to make the necessary decisions to develop a relevant feature of a system. Coding will be the last part. Software Engineer has to involve in the process of designing the software or a function in the software. So that’s what you will be going to learn if you choose Software Engineering as your specialization. Don’t get the idea that you will be doing programming throughout your semester. For me I love programming, in early years I thought if I choose Software Engineering I will be programming all day. But after studying about the specializations I realized that programming is just a part.</p><p>For an example in my internship when I was assigned some feature to work on first I had to understand the requirements and then created an implementation plan or design the implementation. Then I had to arrange a meeting with other engineers in the team to present my implementation design and get their inputs and improve the design and do the necessary changes. After only that I had to program the implementation. So I think you can understand that there’s more you to do as a Software Engineer.</p><p>So in Software Engineering specialization what you will be going to learn is the skills you need to be a skilful Software Engineer. You will be going to learn about different technologies, different design patterns, how to architect a system, what are the ways that a system can be design etc. You will be going to learn to program as well, but as again and again I emphasize that will not the only thing. The reason I am emphasizing this is I feel like when most of the students heard the word Software Engineering they only think about programming. You will be going to learn about how a system should be tested, different testing methods, how to gather requirements, how to design databases, what are the different databases you can use, how to choose the best database for your requirements like that.</p><p>If you want to be work as a Software Engineer or you would like to learn how to build software systems in a great way you should choose Software Engineering. Just keep in mind that you will not be just coding, you will have a learn a lot more just than coding. If you are a die-hard lover programmer who chooses Software Engineering be ready for other things as well. Don’t get me wrong here, that above mentioned all the skills will be a great help for you all to be a great developer.</p><p>So I hope you all have learned something from this post. If someone expands their knowledge even a bit from this post it’s a great deal to me.</p><p>I am not a great writer actually, but I am writing these posts to share my knowledge as much as possible to the best of my ability. If there are any critiques or mistakes please do point it out without any hesitation. 😉</p><p>If anyone needs more help please contact me for anything. I will be delighted to help you out. Cheers :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d509f86b5344" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Fellow Juniors, Don’t Waste your Time]]></title>
            <link>https://lwpamihiranga.medium.com/my-fellow-juniors-dont-waste-your-time-2db3e5b07551?source=rss-d61e23146b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db3e5b07551</guid>
            <category><![CDATA[online-courses]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[internship-experience]]></category>
            <dc:creator><![CDATA[Amith Mihiranga]]></dc:creator>
            <pubDate>Sun, 12 Jul 2020 18:31:18 GMT</pubDate>
            <atom:updated>2020-07-12T18:33:20.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXHq65URgGr9CE7x-AuH-g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@bradneathery?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Brad Neathery</a> on <a href="https://unsplash.com/s/photos/time?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>So this is an article that I’m writing in hope of passing my knowledge and understanding. I’m not a great writer and I don’t like writing at all. But I’m really passionate to pass my knowledge to my fellow students. 😉</p><p>I’m a third-year Software Engineering undergraduate in SLIIT(Sri Lanka Institute of Information Technology). My objective in this article is to educate juniors in our campus about the time they have when in the second year and the first year and how to use their time usefully. So basically this is what I realized being a third-year student about the time students have as juniors. I hope this will help not only the students who are on my campus but also anyone who is reading this. I should highlight that this article is written from my personal experience and the things in this article might not be true for some people. I’m just a normal student who is trying to improve myself and share my knowledge with others as giving back to society. If you are a genius who has great self-discipline and time management this will not be your case. But I’m just a regular guy who is far from it. 🙂</p><p>In my campus, we all have to do an internship of a minimum of six months after completing the second year, and we have to it while we are studying in the third-year. So the students who are doing internships are working on weekdays and attending the lectures on weekends. As for the current, I’m on the ninth month of my internship and this is what I’ve realized about the freeness and time the juniors have in their hand.</p><p>At the moment in our world online courses have gained a lot of attention. Also as undergraduates, everyone should always work to improve their skills. Since I am doing the internship and attending weekend lectures the time I have in my hand is really small. In weekdays there is no time to study anything. In the morning I have to go to the workplace and then when I’m returning to boarding again I’m so exhaustive. So it’s really hard for me to spend time on my personal interests. Even though if I have some time it will be used to do my academic work. Then on weekends all my time will be allocated to my academics. Since there’re lot of work to cover on lectures, tutorials and labs most of the day time will be spent on that. After that later part of the day will be dedicated to group project work. Then before I know my day has gone so fast. Since I’m focusing on making this post a general, I’m not going to describe the specific project task that I have. Hope to write another post on that.</p><p>I hope now you all have a picture of what my typical week looks like. Other than the things mentioned above you’ll surely have personal stuff as well. If you’re in boarding you might have to talk to your parents, to you chores etc. Then you will have to spend time on that also. So altogether what I need to emphasize is your life will get complicated when you’re in 3rd year. You won’t be having much freedom as your earlier years. You might have not still recognized that you have a great freedom with you as juniors, but you surely have.</p><p>So, I would like to encourage you all to use your time correctly. Use the time you now have to master your craft. Since you have a lot of free time you can use it without any stress to gain more knowledge about anything. Allocate a fixed time to learn about something, and build a project from it. Watching video is great, but there is no use if you don’t build something from that. 🙂</p><p>If you sticked with my post to the last, thank you for reading this. As I said earlier this is written by the experience I gained and this is my perspective and what I feel. Hope someone will get something valuable from this.</p><p>If any junior or anyone have something to know, please feel free to contact me. I would be delighted to help you! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db3e5b07551" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>