<?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 Samaran on Medium]]></title>
        <description><![CDATA[Stories by Samaran on Medium]]></description>
        <link>https://medium.com/@samaran.s?source=rss-ef50e8d25fe5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UkI2aI14UkBjMjIs</url>
            <title>Stories by Samaran on Medium</title>
            <link>https://medium.com/@samaran.s?source=rss-ef50e8d25fe5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:30:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samaran.s/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 Understand Recursion]]></title>
            <link>https://medium.com/@samaran.s/how-to-understand-recursion-e474049e9547?source=rss-ef50e8d25fe5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e474049e9547</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[recursion]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[data-structure-algorithm]]></category>
            <dc:creator><![CDATA[Samaran]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 15:59:59 GMT</pubDate>
            <atom:updated>2026-07-05T16:01:33.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IXqtA6OjiXQXT2Xd" /><figcaption>recursion</figcaption></figure><p>Today I’m going to talk about recursion:)</p><p>To Understand recursion, we need to understand how we solve problems normally.</p><p>For example, when we asked to find 5!, how we do?</p><p><strong>5! = 1*2*3*4*5</strong></p><p>Mathematically, we are finding every next number from the current number and multiplying with the current number.</p><p>in a code:</p><pre>def fact(number):<br>  if number == 0:<br>    return 1<br>  fact = 1<br>  for i in range(2,number+1):<br>    fact = fact * i<br>  return fact</pre><p>Basically, using for loop, we are iteratively finding the next number and multiplying it to factorial.</p><p>Technically, the time complexity is <em>O(n)</em>.</p><h3>Now We come to Recursion. Let&#39;s See the Same Example, but in a Different Approach.</h3><p>To find the 5!, we say,<strong><em> 5! = 5* 4!, just imagine.</em></strong></p><p>Now a question may arise, then who solves 4!. Imagine that this 4! will be solved by some other guy! And your role is to just keep the 5 ready and someone will give you 4! , then you just multiply with your 5. that&#39;s it!</p><p>Basically in recursion, we should think in a perspective of a selfish or a selfish programmer. Don&#39;t care about how the other part will be solved. That will be take care of the base case.</p><p>let’s see another example:</p><h4>you are a person X.</h4><h4>you have a group of workers who works for you.</h4><h4>you only take care of starting an work and ending the work</h4><p>keep this 3 in your mind.</p><p>To illustrate this concept further, consider a scenario where you and your team are tasked with emptying a bucket of water.</p><p>Now using recurion you do 3 things:</p><ol><li>You take one cup of water out of the bucket, handling just your portion of the task.</li><li>You delegate the remaining portion of the task to your team.</li><li>When there is only one cup of water left in the bucket, you handle it yourself and pour it out, representing the base case that terminates the recursion.</li></ol><p>This is how RECURSION works!!</p><p>let&#39;s take the factorial problem.</p><pre>def fact(number):<br>  <br>  #base case<br>  if number &lt;=0: #your last work<br>    return 1<br><br>  #recursive case<br>  result = number * fact(number-1) #did your work and giving your work to some other guy!<br>  <br>  <br>  return result</pre><p>As a programmer, your only responsibility is to complete your specific portion of the task and delegate the remainder to a replica of yourself. In recursion, that replica is simply another instance of the same function, operating under the exact same logic.</p><p>Factorial is one of the simplest example of recursion.</p><p>Recursion is mainly used in trees, graphs, and a lot of complex problems</p><p>Thank You!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e474049e9547" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to detect the drive and mount it to any folder in Linux?]]></title>
            <link>https://medium.com/@samaran.s/how-to-detect-the-drive-and-mount-it-to-any-folder-in-linux-831086b17688?source=rss-ef50e8d25fe5------2</link>
            <guid isPermaLink="false">https://medium.com/p/831086b17688</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[drive]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[mount]]></category>
            <dc:creator><![CDATA[Samaran]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 18:53:59 GMT</pubDate>
            <atom:updated>2026-06-21T18:53:59.293Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d98ppxSDvSzwQvdZ.jpg" /><figcaption>from: <a href="https://www.makeuseof.com/tag/mounting-hard-disks-partitions-using-linux-command-line/">https://www.makeuseof.com/tag/mounting-hard-disks-partitions-using-linux-command-line/</a></figcaption></figure><p>In this blog, we’ll see how we can detect a drive and mount it to any directory in Linux operating system</p><p>use this below command to see the drives connected to your pc.</p><h3>Step 1:</h3><pre>lsblk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rcHbaIEAF6RhBiFEUEgWw.png" /><figcaption>here we can see the available drives and the sdc1 is the one which i want to mount.</figcaption></figure><h3>Step 2:</h3><p>Basically you can mount your drive anywhere in the computer.</p><p>Now I am mounting it in a folder <strong>/srv/docker</strong>-storage.</p><p>and my drive is avaibable in <strong>/dev/sdc1.</strong></p><p>Your desired mounting location and your name of the drive may varies.</p><h3>Step 3:</h3><p>mount it to your location</p><pre>mount /dev/sdc1 /srv/docker-storage</pre><h3>Step 4:</h3><p>now I can access my data inside the folder “docker-storage”</p><p>Thank You!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=831086b17688" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Download YouTube Videos for Free (Legally) – Complete Guide With an Open-Source Tool]]></title>
            <link>https://medium.com/@samaran.s/how-to-download-youtube-videos-for-free-legally-complete-guide-with-an-open-source-tool-8ae892ef6a7b?source=rss-ef50e8d25fe5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ae892ef6a7b</guid>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[download]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Samaran]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 17:41:11 GMT</pubDate>
            <atom:updated>2026-03-09T17:41:11.731Z</atom:updated>
            <content:encoded><![CDATA[<p>Official open-source repository:<br><a href="https://github.com/deniscerri/ytdlnis">https://github.com/deniscerri/ytdlnis</a></p><p>If you have ever wanted to watch a YouTube video without internet, you’re not alone. Many people look for ways to download YouTube videos for free so they can watch them later, save educational content, or keep tutorials offline.</p><p>However, there is a big problem with most guides on the internet.</p><p>They often recommend random downloader websites or apps without explaining whether downloading YouTube videos is actually legal or safe.</p><p>In this guide, you’ll learn:</p><p>When downloading YouTube videos is legal</p><p>Safe ways to download videos</p><p>A powerful open-source Android tool</p><p>Important legal and safety considerations</p><p>Let’s start with the most important question.</p><p>---</p><p>Is It Legal to Download YouTube Videos?</p><p>The answer is yes and no, depending on how you do it.</p><p>According to YouTube policies, users should normally watch videos within the platform itself.</p><p>Downloading videos outside the platform may violate their Terms of Service, unless one of the following conditions is met:</p><p>Situations Where Downloading Is Allowed</p><p>Downloading YouTube videos can be legal when:</p><p>The video belongs to you</p><p>The creator gives explicit permission</p><p>The video uses a Creative Commons license</p><p>The platform provides an official download feature</p><p>If none of these conditions apply, downloading may break platform rules.</p><p>So the key is to download responsibly.</p><p>---</p><p>Why People Download YouTube Videos</p><p>There are many legitimate reasons people want offline access to videos.</p><p>Some common use cases include:</p><p>Watching tutorials without internet</p><p>Saving coding lectures or study materials</p><p>Archiving research or educational videos</p><p>Downloading public domain or Creative Commons content</p><p>Keeping a backup of personal uploads</p><p>Offline access is especially helpful in regions with limited internet connectivity or expensive data plans.</p><p>---</p><p>Official Ways to Download YouTube Videos</p><p>1. Using the Built-In Download Feature</p><p>The easiest way to download videos legally is through the official YouTube mobile app.</p><p>Steps:</p><p>1. Open a video in the app</p><p>2. Tap the Download button</p><p>3. Select the quality</p><p>4. Watch it offline inside the app</p><p>However, these downloads are not saved as files on your device. They remain inside the app.</p><p>---</p><p>2. Download Your Own Videos</p><p>If you uploaded a video yourself, you can download it anytime.</p><p>Steps:</p><p>1. Open YouTube Studio</p><p>2. Go to the Content section</p><p>3. Click the menu next to your video</p><p>4. Select Download</p><p>Because you own the video, downloading it is completely allowed.</p><p>---</p><p>3. Download Creative Commons Videos</p><p>Some creators publish their videos using Creative Commons licenses.</p><p>These licenses allow others to reuse or download the content.</p><p>To check:</p><p>Open the video description</p><p>Look for License information</p><p>Verify if it says Creative Commons</p><p>Many educational channels publish content this way.</p><p>---</p><p>An Open-Source Tool for Downloading Videos: YTDLnis</p><p>One interesting tool used by developers and tech enthusiasts is YTDLnis.</p><p>YTDLnis is an Android application that provides a graphical interface for the powerful downloading engine yt-dlp.</p><p>yt-dlp is a well-known command-line tool capable of extracting media from many supported websites.</p><p>YTDLnis simply makes this technology easier to use on Android.</p><p>The project is completely open source, meaning anyone can inspect the code and verify how it works.</p><p>Official repository:<br>https://github.com/deniscerri/ytdlnis</p><p>---</p><p>Key Features of YTDLnis</p><p>YTDLnis offers many advanced capabilities compared to typical downloader apps.</p><p>Some notable features include:</p><p>Download video or audio files</p><p>Support for 1000+ websites</p><p>Playlist downloads</p><p>Automatic subtitle downloading</p><p>Format selection (MP4, MP3, etc.)</p><p>Metadata and thumbnail embedding</p><p>Download scheduling and queues</p><p>Custom filename templates</p><p>Because it relies on the yt-dlp engine, it inherits many features used by developers and power users.</p><p>---</p><p>Why Open-Source Download Tools Are Safer</p><p>Many “free video downloader” websites are filled with ads, trackers, or malware.</p><p>Open-source software is different.</p><p>When software is open source:</p><p>Anyone can audit the code</p><p>Security issues can be identified by the community</p><p>There is usually better transparency</p><p>This makes open-source tools like YTDLnis significantly more trustworthy compared to unknown downloader apps found online.</p><p>---</p><p>Important Legal and Ethical Considerations</p><p>Before using any downloader tool, remember this important rule:</p><p>The tool itself is not illegal — but how you use it matters.</p><p>Follow these best practices.</p><p>Safe and Responsible Usage</p><p>Use downloader tools when:</p><p>Downloading your own content</p><p>Accessing Creative Commons videos</p><p>Downloading videos with creator permission</p><p>Avoid Doing This</p><p>Do not:</p><p>Download copyrighted videos without permission</p><p>Reupload downloaded videos as your own</p><p>Distribute copyrighted media</p><p>Respecting creators ensures that content platforms remain sustainable for everyone.</p><p>---</p><p>Final Thoughts</p><p>Downloading YouTube videos can be incredibly useful for offline learning, research, and personal archiving.</p><p>But it should always be done responsibly and within legal boundaries.</p><p>The safest approach is to:</p><p>1. Use official download features when possible</p><p>2. Download content you own or have permission to use</p><p>3. Use transparent tools instead of suspicious downloader sites</p><p>If you prefer open-source software, YTDLnis is a powerful Android tool that offers advanced downloading capabilities while remaining transparent and community-driven.</p><p>Used properly, it can help students, developers, and researchers access valuable content even without internet access.</p><p>---</p><p>Project Repository:<br><a href="https://github.com/deniscerri/ytdlnis">https://github.com/deniscerri/ytdlnis</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ae892ef6a7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is Multiplication Means in Real Life? What is X*Y means? Why do we need multiplication?]]></title>
            <link>https://medium.com/@samaran.s/what-is-multiplication-means-in-real-life-what-is-x-y-means-why-do-we-need-multiplication-ff5aab995f10?source=rss-ef50e8d25fe5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff5aab995f10</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[mathematics-education]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Samaran]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 18:21:42 GMT</pubDate>
            <atom:updated>2026-03-05T18:45:51.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Is Multiplication Really Means? What Is X*Y in Real Life?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZPdUsZIMGwuY5sy2lTq7g.png" /></figure><p>Hello everyone! I’m Samaran.</p><p>From our childhood, we would have learned <strong>multiplication </strong>in maths<strong>. </strong>We use it every day<strong>. </strong>But still many of us really don’t know what does it real means? in real life.</p><p>If you are a person like me, who like to know WHY? WHAT? And HOW? Does things work around us? This is for YOU!</p><p>In this Article, <strong>We’ll see what does it really means?</strong></p><p><strong>What is multiplication?</strong></p><p><strong>Why do we need multiplication?</strong></p><p><strong>How it make sense in our life?</strong></p><p>Let’s Start!!!</p><h3>What Is Multiplication?</h3><p>So, when we say <em>“something” multiply by “something” </em>, usually our brain won’t imagine it. We just do the multiplication based on our school maths. But when we deeply think what does it mean? it feels like stuck in a limbo</p><p>To understand What is multiplication, we need to understand that <strong>“multiplication”</strong> means “<strong>scaling” or “growing”.</strong></p><p><strong>For example</strong>, if I have an Apple. When i say “apple <strong>x</strong> 2 ” it means that we are scaling from 1 apple to 2 apples, i.e when I say “apple <strong>x</strong> 4” it means we are scaling from 1 to 4 apples.</p><p>So, we need at least one object to multiply. With respect to that object only we can multiply. Like that one apple. Without a single object, we cannot multiply. It’s like asking “increase my number of apples” without even having a single apple.</p><p>When we say 2 x 2, imagine like we are having 2 apple before doubling , and we are scaling/growing the existing apples 2 times/ double. And it becomes 4 apples.</p><p>Its basically like a <strong>XEROX MACHINE</strong>, where you put one paper inside and ask for 10 copies, it can be represented as 1* 10 or scaling from 1 to 10 , which is equals to 10. <strong><em>Here without that 1 copy we cannot take xerox, or multiply.</em></strong></p><p><em>Always remember, Addition is Collecting, and Multiplication is scaling.</em></p><h3>Why Do We Need Multiplication?</h3><p>Even though we can represent multiplication as addition,like 2x2 can be represented as 2+2 = 4 , we cannot maintain heavy collections of numbers as additions. <strong>2+2 = 4 means 2 is collected<em> twice</em> to get 4</strong>.</p><p>So its easy to represent — <strong>no.of.time is collected</strong><em> </em><strong><em>times</em></strong> <strong>what is collected </strong>which is <strong>2 x 2</strong></p><h3>How It Makes Sense in Our Life?</h3><p>In real life, Multiplication is used to represent long/ big collections in terms of<strong> (* or x ).</strong></p><blockquote><strong>For Example</strong>, When we say 200 x 10, imagine like this as a timeline, this makes your thinking process easier.</blockquote><blockquote><strong>1st</strong> from 1, 1 is scaled to 200 (or from 1 to 200 is growth)</blockquote><blockquote><strong>2nd</strong>, this 200 is grown 10 times . Which is 1 x 200 x 10.</blockquote><p>Imagining the multiplication with respect to time will help us understand easier and simpler.</p><p>Like this there are lot of use cases in real life,</p><p>Like increasing a growth of a company can be represented as “10x” times , “4x” times, etc.</p><h3>Conclusion</h3><p>I hope this article will help you to understand how multiplication really works? How it should be understand? How multiplication can be imagined? And more.</p><p><em>Thank You — Samaran</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff5aab995f10" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>