<?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 Uthayakumar Thenuja on Medium]]></title>
        <description><![CDATA[Stories by Uthayakumar Thenuja on Medium]]></description>
        <link>https://medium.com/@kethukumar36?source=rss-05478f1dd07d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tql4D4T9Xsam5C2Ons4PGw.jpeg</url>
            <title>Stories by Uthayakumar Thenuja on Medium</title>
            <link>https://medium.com/@kethukumar36?source=rss-05478f1dd07d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:03:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kethukumar36/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[JavaScript & TS]]></title>
            <link>https://medium.com/@kethukumar36/javascript-ts-a048e34c9720?source=rss-05478f1dd07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a048e34c9720</guid>
            <dc:creator><![CDATA[Uthayakumar Thenuja]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 00:56:58 GMT</pubDate>
            <atom:updated>2026-12-03T00:56:58.261Z</atom:updated>
            <content:encoded><![CDATA[<p><em>DOM Manipulation &amp; Events: A Practical Guide</em></p><p>DOM Manipulation &amp; Events: A Deep-Dive Practical Guide</p><p>To truly master front-end web development, you need to understand not just <em>what</em> methods to call, but <em>how</em> the browser works behind the scenes when JavaScript interacts with HTML.</p><p>Here is a deep, structured breakdown of <strong>DOM Manipulation and Events</strong>, designed for both deep understanding and technical blog writing.</p><p>1. How the Browser Builds the DOM</p><p>When a browser receives an HTML file from a server, it does not simply display text. It goes through a parsing pipeline:</p><ul><li><strong>Bytes -&gt; Characters -&gt; Tokens:</strong> The browser reads raw HTML bytes and breaks them into start tags (&lt;div&gt;), attributes (class=&quot;box&quot;), text, and end tags (&lt;/div&gt;).</li><li><strong>Nodes:</strong> Each token is converted into a JavaScript object called a <strong>Node</strong>.</li><li><strong>DOM Tree:</strong> The browser links these nodes together into a parent-child hierarchy called the <strong>Document Object Model (DOM</strong></li></ul><p><strong><em>Node vs. Element (Crucial Distinction)</em></strong></p><ul><li><strong>Node:</strong> Everything in the DOM tree is a Node — including HTML tags, text inside tags (Text Nodes), and even HTML comments (&lt;!-- comment --&gt;).</li><li><strong>Element:</strong> A specific type of Node that represents an actual HTML tag (&lt;div&gt;, &lt;p&gt;, &lt;button&gt;). When writing JavaScript, you almost always work with <strong>Elements</strong>.</li></ul><p><strong><em>2. Selecting Elements: Live vs. Static Collections</em></strong></p><p>Understanding what a selector returns prevents major bugs in dynamic apps:</p><p>MethodReturn TypeLive or Static?Best Use CasequerySelector()Single Element (or null)N/ASelecting one element using any CSS selector (#id, .class, [data-type]).querySelectorAll()NodeList<strong>Static</strong> (Snapshot in time)Selecting multiple elements; supports .forEach() directly.getElementsByClassName()HTMLCollection<strong>Live</strong> (Auto-updates if DOM changes)Legacy codebases; requires Array.from() before using .forEach().</p><p>javascript</p><pre>// Static NodeList: Safe to loop over even while removing elements<br>const items = document.querySelectorAll(&#39;.list-item&#39;);<br>items.forEach((item) =&gt; console.log(item.textContent));</pre><p><strong><em>3. Reading &amp; Updating Content Safely</em></strong></p><p>JavaScript gives you three properties to read or change content inside an element, each with different behavior:</p><ul><li><strong>textContent</strong> <em>(Recommended)</em>: Gets or sets <strong>all</strong> text inside an element, including hidden elements (display: none). It treats input strictly as plain text, protecting your site from <strong>Cross-Site Scripting (XSS)</strong> attacks.</li><li><strong>innerText</strong>: Similar to textContent, but triggers a browser layout check (Reflow) because it only returns <em>visible</em> text. It is slower than textContent.</li><li><strong>innerHTML</strong>: Parses the string as HTML markup. Only use this with trusted content—never pass raw user input directly into innerHTML.</li></ul><p>javascript</p><pre>const userBio = document.querySelector(&#39;#bio&#39;);</pre><pre>// Safe: Renders &lt;script&gt; as harmless literal text<br>userBio.textContent = &quot;&lt;script&gt;alert(&#39;hack&#39;)&lt;/script&gt;&quot;;</pre><p><strong><em>4. Manipulating Classes, Attributes, and Data Attributes</em></strong></p><p>Class Manipulation (classList)</p><p>Never overwrite element.className = &quot;new-class&quot; unless you want to wipe out existing classes. Use classList:</p><p>javascript</p><pre>const modal = document.querySelector(&#39;#modal&#39;);</pre><pre>modal.classList.add(&#39;is-open&#39;);<br>modal.classList.remove(&#39;is-loading&#39;);<br>modal.classList.toggle(&#39;dark-theme&#39;); // Adds if missing, removes if present<br>console.log(modal.classList.contains(&#39;is-open&#39;)); // tr</pre><p><strong><em>Custom Data Attributes (</em></strong><strong><em>dataset)</em></strong></p><p>HTML5 allows you to store custom metadata directly on elements using data-* attributes, which JavaScript accesses via .dataset:</p><p>html</p><pre>&lt;button id=&quot;calc-btn&quot; data-operation=&quot;multiply&quot; data-user-id=&quot;42&quot;&gt;Multiply&lt;/button&gt;</pre><p>javascript</p><pre>const btn = document.querySelector(&#39;#calc-btn&#39;);<br>console.log(btn.dataset.operation); // &quot;multiply&quot;<br>console.log(btn.dataset.userId);    // &quot;42&quot; (camelCase automaticall</pre><p><strong><em>5. DOM Traversal (Navigating Without Extra Selectors)</em></strong></p><p>Instead of querying the entire document repeatedly, you can move relative to an element you already selected:</p><ul><li><strong>Upwards (Parents):</strong> element.parentElement or element.closest(&#39;.card&#39;) <em>(finds the nearest ancestor matching a CSS selector)</em>.</li><li><strong>Downwards (Children):</strong> element.children <em>(only HTML elements)</em>, element.firstElementChild, element.lastElementChild.</li><li><strong>Sideways (Siblings):</strong> element.nextElementSibling, element.previousElementSibling.</li></ul><p><strong><em>6. Performance: Reflow, Repaint, and </em></strong><strong><em>DocumentFragment</em></strong></p><p>Every time you modify the DOM, the browser has to recalculate element positions (<strong>Reflow</strong>) and redraw pixels (<strong>Repaint</strong>). Appending 100 items inside a loop causes 100 separate reflows.</p><p><strong>Solution:</strong> Batch your changes using a DocumentFragment (an invisible, lightweight container in memory):</p><p>javascript</p><pre>const list = document.querySelector(&#39;#user-list&#39;);<br>const fragment = document.createDocumentFragment(); // Lives in memory, not the DOM</pre><pre>for (let i = 1; i &lt;= 100; i++) {<br>  const li = document.createElement(&#39;li&#39;);<br>  li.textContent = `User #${i}`;<br>  fragment.appendChild(li); // Zero screen reflows here<br>}</pre><pre>list.appendChild(fragment); // Single reflow for all 100 items!</pre><p><strong><em>7. Deep Dive into Events: Propagation (Capturing &amp; Bubbling)</em></strong></p><p>When you click a &lt;button&gt; inside a &lt;div&gt; inside &lt;body&gt;, the event doesn&#39;t just fire on the button. It travels through the DOM in <strong>three phases</strong>:</p><ul><li><strong>Capturing Phase (Top -&gt; Down):</strong> The event travels down from window -&gt; document -&gt; &lt;body&gt; -&gt; &lt;div&gt; to reach the target &lt;button&gt;.</li><li><strong>Target Phase:</strong> The event arrives at the &lt;button&gt; itself (event.target).</li><li><strong>Bubbling Phase (Bottom -&gt; Up):</strong> The event bubbles back up from &lt;button&gt; -&gt; &lt;div&gt; -&gt; &lt;body&gt; -&gt; document. <em>(By default, </em><em>addEventListener listens during this phase).</em></li></ul><p>event.target vs. event.currentTarget</p><ul><li><strong>event.target</strong>: The exact child element the user physically clicked (e.g., an &lt;i&gt; icon inside a &lt;button&gt;).</li><li><strong>event.currentTarget</strong>: The element that has the addEventListener attached to it (e.g., the &lt;button&gt; itself).</li></ul><p>Because events bubble up, you can attach <strong>one</strong> listener to a parent container instead of dozens of child elements:</p><p>javascript</p><pre>const operationsBox = document.querySelector(&#39;.operations&#39;);</pre><pre>operationsBox.addEventListener(&#39;click&#39;, (event) =&gt; {<br>  // Ensures clicks on inner icons still find the parent button<br>  const button = event.target.closest(&#39;button&#39;);<br>  if (!button) return;</pre><pre>  const action = button.dataset.operation;<br>  console.log(`Selected operation: ${action}`);<br>});</pre><p><strong><em>8. Essential Event Control Methods</em></strong></p><ul><li><strong>event.preventDefault()</strong>: Cancels the browser&#39;s built-in default action (e.g., stops a &lt;form&gt; from reloading the page on submit, or stops an &lt;a&gt; tag from navigating).</li><li><strong>event.stopPropagation()</strong>: Stops the event from bubbling up to parent elements (useful when clicking a button inside a clickable card without triggering the card&#39;s click event).</li></ul><blockquote><strong><em>Conclusion:</em></strong><em><br>Mastering </em><strong><em>DOM Manipulation and Events</em></strong><em> is what turns static HTML and CSS pages into dynamic, interactive web experiences. By understanding how the browser builds the DOM tree, updating content safely with </em><em>textContent, managing styles via </em><em>classList, optimizing rendering with </em><em>DocumentFragment, and scaling interactions through </em><strong><em>Event Delegation</em></strong><em>, you gain full control over the front end. Put these concepts into practice by building a small project from scratch with pure vanilla JavaScript—that hands-on experience is the strongest step toward becoming a confident full-stack developer.</em></blockquote><p>Reference:- open AI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a048e34c9720" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Today’s Ideation Session: Finding a Web App Idea That Solves a Real Problem]]></title>
            <link>https://medium.com/@kethukumar36/todays-ideation-session-finding-a-web-app-idea-that-solves-a-real-problem-90b402705ab3?source=rss-05478f1dd07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b402705ab3</guid>
            <dc:creator><![CDATA[Uthayakumar Thenuja]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 02:08:06 GMT</pubDate>
            <atom:updated>2026-11-27T06:52:35.174Z</atom:updated>
            <content:encoded><![CDATA[<p>At today’s UKI ideation session, Vithu Anna joined us via Zoom from Canada and taught us the following. Anna also taught us clearly how to approach ideation and develop ideas.</p><p>One of the most inspiring parts of the session was hearing Vithushan Anna’s journey. He spoke about how the lack of opportunities and direction after A/Ls motivated him to think beyond the problem and work towards a solution. This mindset eventually contributed to initiatives like Yarl IT Hub. His experience reminded us that every problem can be a starting point for a new idea, and encouraged us to look at challenges around us with a solution -oriented mindset.</p><p><strong>01.How Do We Identify a Problem?<br></strong>One of the most important things I learned during this session was how to identify a real problem.</p><p>Not every difficulty we see is necessarily a problem that requires a new solution. We need to observe our surroundings, understand people’s daily challenges, and identify the difficulties they face in their personal and professional lives.</p><p>For example:<br>01.What difficulties do people face in their daily activities?<br>02.What services are difficult to access?<br>03.What problems are still unsolved?<br>04.Why do people struggle with existing systems?</p><p>Is there a better way to solve these problems? these questions help us develop problems that may have real opportunities for innovation</p><p><strong>02. Asking the Right Questions to Find Better Solutions</strong></p><p>After identifying a problem, the next important step is asking the right questions. Instead of immediately jumping into developing a solution, we should deeply analyse the problem.<br>During the session, I understood that asking meaningful questions helps us look at a problem from different perspectives.<br>Some important questions include:<br>•Who is facing this problem?<br>•Why does this problem happen?<br>•How many people are affected by it?<br>•How are people currently solving this problem?<br>What are the limitations of existing solutions?<br>Can we create a simpler and more effective solution?<br>Will people actually use our solution?<br>By asking these questions, we can understand the root cause of a problem rather than simply addressing its surface-level symptoms.</p><p><strong>03.Turning Problems into Practical Solutions</strong></p><p>Identifying a problem is only the beginning. The real challenge is developing a solution that is practical, useful, and effective.<br>A solution should not just sound interesting as an idea. It should address the actual needs of the people experiencing the problem.<br><strong>We need to think about:</strong></p><ul><li>Whether the solution is technically possible</li><li>Whether it is affordable and accessible.</li><li>Whether it saves people’s time and effort.</li><li>Whether it solves the actual problem.</li><li>Whether it can be improved in the future</li></ul><p>This helped me understand that successful innovation is not about creating something complicated; it is about making people’s lives easier.</p><p><strong>04. Can This Solution Generate Income</strong>?</p><ul><li>Who would be willing to pay for this service?</li><li>Is there a business opportunity behind this problem?</li><li>Can we maintain and improve the platform financially?</li><li>Can this idea grow into a sustainable business?</li></ul><p>I learned that solving a problem and generating income can go together. However, earning money should not be the only purpose. A successful solution should first provide genuine value to its users.</p><p>05. <strong>Is the Solution Only for Developers or for Everyone?</strong></p><p>One of the most important perspectives I gained from this session was understanding who actually benefits from the solution.<br>When developing a website or application, we should not think only from a developer’s perspective.<br>We should consider different types of users:<br><strong>Developers</strong>: Does the solution make developers’ work easier, faster, or more efficient?<br><strong>Individual Users</strong>: Does it help ordinary people solve their daily problems?<br><strong>Businesses</strong>: Can small businesses, entrepreneurs, and organisations benefit from it?<br><strong>Society</strong>: Can it create a positive impact on a larger community?<br>A good solution should focus on the people who experience the problem, not just the people who build the technology.</p><p><strong>06.Thinking Beyond the Idea<br> </strong>Finally, I understood that having an idea is not enough. We need to challenge our own ideas, analyse their limitations, collect feedback, and improve them.<br>Sometimes, the first solution we think of may not be the best one. By asking more questions, discussing different possibilities, and understanding users’ needs, we can develop a much stronger solution.<br>This session encouraged me to think critically rather than simply accepting the first idea that comes to mind.</p><p><strong>What I Learned<br> </strong>Overall, this Ideation Session changed the way I think about creating websites and applications. I learned that before writing a single line of code, we should understand the problem, identify the target users, ask meaningful questions, explore possible solutions, and evaluate the value that our idea can create.<br><strong>The biggest lesson I took from this session is that great innovations do not begin with the question, “What can we build?” They begin with the question, “What problem can we solve?”<br></strong>This experience helped me realise that becoming a good developer is not just about learning programming languages or building websites. It is also about understanding people, recognising their problems, thinking creatively, and creating solutions that make a meaningful difference.</p><p>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b402705ab3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS and DOMAIN.]]></title>
            <link>https://medium.com/@kethukumar36/dns-and-domain-c9d5eca5067d?source=rss-05478f1dd07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9d5eca5067d</guid>
            <dc:creator><![CDATA[Uthayakumar Thenuja]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 14:41:43 GMT</pubDate>
            <atom:updated>2026-11-17T14:41:44.232Z</atom:updated>
            <content:encoded><![CDATA[<p>How a name like uki.lk is turned into a Server Address<br>Imagine you want to visit a website. You type:<br>https://uki.lk<br>But computers do not naturally communicate using names like uki.lk. They communicate using IP addresses, such as:<br>203.0.113.25<br>So an important question arises:<br>How does the computer turn uki.lk into the correct server IP address?<br>The answer is DNS — Domain Name System.<br>0■. <strong>WHAT IS A DOMAIN. </strong><br>A domain name is a human-friendly name used to identify a website on the Internet.<br><strong>For example:</strong><br>google.com<br>youtube.com<br>uki.lk<br>wikipedia.org<br>Instead of remembering a complicated IP address, users can remember a simple name.<br><strong>For example:</strong><br>Domain Name<br> ↓<br> uki.lk<br> ↓<br>Server IP Address<br> ↓<br>203.0.113.25<br>The domain name is basically a readable identity for an Internet destination.<br>0■.<strong>WHAT IS DNS.</strong><br>DNS stands for Domain Name System.<br>DNS works like the phonebook of the Internet.<br>Suppose your phone has:<br>Kumar → 0771234567<br>You don’t need to remember the number. You search for Kumar, and your phone finds the number.<br>DNS works in a similar way:<br>uki.lk → IP address<br>When you type:<br>uki.lk<br>DNS helps find the IP address of the server where that website is hosted.<br>0■. <strong>WHY DO WE NEED DNS?</strong><br>Computers need IP addresses to communicate.<br><strong>For example:</strong><br>uki.lk<br>is easy for humans to remember.<br>But a server might have an address such as:<br>203.0.113.25<br>Remembering IP addresses for hundreds of websites would be difficult.<br><em>Therefore:</em><br>Human<br> ↓<br>uki.lk<br> ↓<br>DNS<br> ↓<br>IP address<br> ↓<br>Web server<br>DNS acts as the bridge between a domain name and an IP address.<br>0■. <strong>WHAT HAPPENS WHEN YOU TYPE UKI.LK?</strong><br>Let’s look at the complete process.<br>You open your browser and type:<br>https://uki.lk<br>Then press Enter.<br>A lot of communication happens behind the scenes.<br><strong><em>The simplified process is</em>:</strong><br><em>You</em><br> ↓<br><em>Browser</em><br> ↓<br><em>DNS Resolver</em><br> ↓<br><em>Root DNS Server</em><br> ↓<br>.<em>lk DNS Server<br> ↓<br>Authoritative DNS Server</em><br> ↓<br><em>IP Address</em><br> ↓<br><em>Web Server</em><br> ↓<br><em>Website</em><br><strong>Let’s understand each step.</strong></p><p>0■. <strong>STEP 1- THE BROWSER CHECKS ITS CACHE.</strong></p><p>Before asking a DNS server, your device may already know the IP address.<br>The browser or operating system can store previously discovered. information in a DNS cache.<br><strong>For example</strong>:<br>uki.lk → 203.0.113.25<br>If this information is still valid, the computer can use it immediately.<br>This makes website loading faster.<br>0■.<strong>STEP 2- DNS RESOLVER. </strong><br>If the IP address isn’t available locally, your device sends a DNS request to a DNS resolver.<br>A resolver is usually provided by:<br>Your Internet Service Provider (ISP)<br>A public DNS service<br>An organization or network administrator<br>The resolver’s job is to find the answer.<br>It receives something like:<br>What is the IP address of uki.lk?<br><strong>0■.STEP 3- ROOT DNS SERVERS.</strong> <br> If the resolver doesn’t already know the answer, it starts the DNS lookup process.<br>The first important level is the Root DNS system.<br>The root doesn’t normally tell the resolver the exact IP address of uki.lk.<br>Instead, it tells the resolver where to find information about the .lk domain.<br>Conceptually:<br>Resolver<br> ↓<br>Root DNS<br> ↓<br>&quot;Ask the .lk DNS servers&quot;</p><p>0■.<strong>STEP 4- .IK TOP LEVEL DOMAIN </strong><br>Now the resolver asks the DNS infrastructure responsible for:<br>.lk<br>Here .lk is the country-code top-level domain (ccTLD) for Sri Lanka.<br>The .lk DNS system doesn’t necessarily provide the final website IP either.<br>Instead, it points the resolver toward the authoritative DNS servers responsible for the specific domain.<br><strong>For example:</strong><br><strong><em>uki.lk</em></strong><br> ↑<br> |<br>.<strong><em>lk DNS</em></strong><br> ↓<br><strong><em>Authoritative DNS server</em></strong><br>0■.<strong>STEP 5- AUTHORITATIVE DNS SERVER </strong><br>Now we reach an important part.<br>The authoritative DNS server contains the actual DNS records for the domain.<br>It may contain records such as:<br>uki.lk → 203.0.113.25<br>The resolver asks:<br>&quot;<strong>What is the IP address for uki.lk?&quot;</strong><br>The authoritative DNS server responds with the appropriate DNS record.<br>For an IPv4 address, this is usually an A record.<br>For IPv6, it would normally be an AAAA record.<br><strong>Example:</strong><br>uki.lk<br> ↓<br>A Record<br> ↓<br>203.0.113.25<br>0■.<strong>STEP 6- DNS RESOLVER RETURNS THE ANSWER </strong><br>The resolver now knows the IP address.<br>It sends the information back to your device:<br>uki.lk<br> ↓<br>203.0.113.25<br>Your computer can now use the IP address to communicate with the server.<br>0■<strong>.STEP 7 -BROWSER CONNECTED TO THE SERVER. </strong><br>Now DNS has done its job.<br>The browser knows where to connect.<br>It contacts the server associated with that IP address.<br>If the website uses HTTPS, the browser also establishes a secure TLS connection with the server.<br>Conceptually:<br>Browser<br> ↓<br>IP address<br> ↓<br>Server<br> ↓<br>HTTPS connection<br>The server then sends back the requested website resources.<br>0■<strong>.STEP 8 — WEB SITE APPEARS</strong> <br>Finally, the browser receives things such as:<br>HTML<br>CSS<br>JavaScript<br>Images<br>Fonts<br>Other resources<br>The browser processes them and displays the webpage.<br>So what looked like a simple action:<br>&quot;I typed uki.lk and the website opened.&quot;<br>actually involved several steps.<br>🔄 Complete DNS Journey<br>The whole process can be represented like this:<br>User types:</p><p>uki.lk<br> ↓<br> Browser<br> ↓<br> Local DNS Cache<br> ↓<br> DNS Resolver<br> ↓<br> Root DNS<br> ↓<br> .lk DNS<br> ↓<br>Authoritative DNS<br> ↓<br> IP Address<br> ↓<br> Web Server<br> ↓<br> Website Data<br> ↓<br> Your Browser<br> 0■.<strong>WHAT IS INSIDE UKI.LK?</strong><br>A domain name itself has different parts.<br>Consider:<br>uki.lk<br>It can be understood as:<br>uki . lk<br> ↑ ↑<br>Domain TLD<br>name<br>lk<br>This is the top-level domain (more precisely, a country-code TLD).<br>lk represents Sri Lanka.<br>uki<br>This is the domain name registered under .lk.<br>Together:<br>uki + .lk</p><p>= uki.lk<br>0■.<strong>WHAT ABOUT WWW.UKI.LK?</strong><br>Now consider:<br>www.uki.lk<br>Here:<br>www<br> ↓<br>Subdomain</p><p>uki<br> ↓<br>Domain</p><p>lk<br> ↓<br>Top-Level Domain<br>DNS can contain records for different hostnames.<br><strong>For example:</strong><br>www.uki.lk<br>mail.uki.lk<br>api.uki.lk<br>These can potentially point to different servers or services.<br><strong>For example:</strong><br><em>www.uki.lk</em> → Web server<br><em>mail.uki.lk </em>→ Mail server<br><em>api.uki.lk </em>→ Application server<br>0■.<strong>IMPORTANT DNS RECORD TYPES</strong><br>DNS doesn’t only store IP addresses.<br>It stores different types of information called DNS records.<br>A Record<br>Maps a hostname to an IPv4 address.<br>uki.lk → 203.0.113.25<br>AAAA Record<br>Maps a hostname to an IPv6 address.<br>uki.lk → IPv6 address<br>CNAME Record<br>Creates an alias from one hostname to another hostname.<br>www.uki.lk<br> ↓<br>uki.lk<br>MX Record<br>Specifies which servers handle email for a domain.<br>uki.lk<br> ↓<br>Mail server<br>TXT Record<br>Stores text information used for different purposes, including domain verification and email security policies.<br><strong>0■. WHAT IS TTL</strong>?<br>DNS information is often cached.<br>A DNS record has a value called TTL — Time To Live.<br><strong>For example:</strong><br>uki.lk<br>IP: 203.0.113.25<br>TTL: 3600 seconds<br>This means a resolver can generally cache that DNS answer for the specified period.<br>Caching reduces the number of DNS queries and makes the Internet more efficient.<br>0■. <strong>DNS DOES NOT HOST THE WEB SITE </strong><br>This is an important point.<br>DNS itself normally does not contain the website’s HTML, images, or videos.<br>Instead, DNS answers a question like:<br>&quot;<strong>Where should I connect?&quot;</strong><br>Then the browser connects to the web server and requests the website.<br>Think of it like finding a shop:<br>DNS = Finds the shop’s address</p><p>Web server = The shop</p><p>Website = Products inside the shop<br>DNS helps you find where to go; the web server provides the actual website.<br>0■. <strong>DOMAINS vs DNS vs HOSTING </strong><br>These three concepts are often confused.<br><strong><em>Domain</em></strong><br>The human-readable Internet name.<br>uki.lk<br><strong><em>DNS</em></strong><br>The system that translates names into network information.<br>uki.lk<br> ↓<br>IP address<br><strong><em>Hosting</em></strong><br>The infrastructure where the website/application actually runs.<br>Server<br> ↓<br>Website files/application<br><strong>So:</strong><br>DOMAIN<br> ↓<br>DNS<br> ↓<br>SERVER ADDRESS<br> ↓<br>HOSTING SERVER<br> ↓<br>WEBSITE</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9d5eca5067d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do images, videos and Audio work in html?]]></title>
            <link>https://medium.com/@kethukumar36/how-do-images-videos-and-audio-work-in-html-a220fcb624f6?source=rss-05478f1dd07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a220fcb624f6</guid>
            <dc:creator><![CDATA[Uthayakumar Thenuja]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 00:01:03 GMT</pubDate>
            <atom:updated>2026-11-13T00:01:03.420Z</atom:updated>
            <content:encoded><![CDATA[<p>HTML stands for HyperText Markup Language. It is a language used to create webpages. It uses tags to show text, images, videos and audio on a website. Every website we see on the internet is made with HTML.</p><p>*Introduction*</p><p>In HTML, images, videos and audio are not stored inside the HTML file itself. HTML only gives the address of the file. The browser reads that address, finds the file, and shows it on the webpage.</p><h3>1. How Do Images Work in HTML?</h3><p>We use the &lt;img&gt;` tag for images.<br>“&lt;img src=&quot;photo.jpg&quot; alt=&quot;My Photo&quot; width=&quot;300&quot;&gt;”<br> How it works:-<br>-●*src:* This tells the browser where the image is. If you write `photo.jpg`, the browser will go and bring that photo.<br>-●*alt:* If the photo does not load, this text will show instead.<br>- *width:* This controls how big the photo will be.<br>- ●`&lt;img&gt;` is an empty tag, so we do not need a closing tag.</p><p>In simple words, HTML does no. keep the photo inside it, it only shows the location of the photo.</p><h3>2. How Do Videos Work in HTML?</h3><p>We use the `&lt;video&gt;` tag for videos.<br>&lt;video src=&quot;video.mp4&quot; controls width=&quot;400&quot;&gt;&lt;/video&gt;<br>*How it works:*<br>- ●src:*This tells the browser where the video file is.<br>- ●controls: If you add this, the play, pause and volume buttons will appear. Without it, the video will not play.<br>- ●width: This controls the size of the video.<br>- ●autoplay: If you add this, the video will start playing automatically when the page opens.</p><p>Another method:<br>&lt;video controls&gt;<br> &lt;source src=&quot;video.mp4&quot; type=&quot;video/mp4&quot;&gt;<br>&lt;/video&gt;<br>This method is useful because if one video format does not work, the browser can try another one.</p><h3>I frame</h3><h4>what is the I- frame</h4><p>I-Frame stands for *Inline Frame*.</p><p>It is a tag used to show one webpage inside another webpage.</p><p>In simple words, it opens a small window inside your website, and inside that window you can show a YouTube video, Google Map, or another website.</p><p>Syntax<br>&lt;iframe src=&quot;https://www.example.com&quot;&gt;&lt;/iframe&gt;<br>Example - YouTube Video<br>&lt;iframe src=&quot;https://www.youtube.com/embed/VIDEO_ID&quot; width=&quot;500&quot; height=&quot;300&quot;&gt;&lt;/iframe&gt;<br>Important Attributes</p><p>☆</p><p>•src:The address of the website or video you want to show<br>•width: The width of the frame - how wide it should be<br>•height:The height of the frame<br>•title:Helps screen readers and is good for SEO<br>•allowfullscreen: Allows to watch in full screen</p><p>Example - Google Map<br>&lt;iframe src=&quot;https://maps.google.com/...&quot; width=&quot;600&quot; height=&quot;450&quot;&gt;&lt;/iframe&gt;<br>If you add this, the map will show inside your site itself, no need to go outside.</p><h4>What is I-Frame Used For?</h4><p>1.To show YouTube videos<br>2. To show Google Maps<br>3. To show another website inside your site<br>4.To show PDF, Forms and more</p><p>Conclusion</p><p>So, I-Frame is a frame to embed one webpage inside another webpage. By using the `&lt;iframe&gt;` tag, you can easily bring videos, maps and websites into your blog.</p><h3>File Format and How Multimedia is Displayed on Website</h3><h4>Introduction</h4><p>Multimedia means images, videos and audio. To show them on a website, we need two things - a correct file format and a correct HTML tag. If the format is wrong, the browser cannot show it.</p><h4>1. Image File Formats</h4><p>▪︎JPG / JPEG: For photos. Small file size, good quality. This is the most used format.<br>▪︎PNG: For logos and images with transparent background. Quality is very good, but file size is bigger.<br>▪︎GIF: For small animations and stickers.<br>▪︎WebP: New modern format. Small size and high quality. Best for fast websites.<br>▪︎SVG: For icons and logos. It will not blur even if you zoom it.</p><p>How to display image:<br> src=&quot;phot&lt;imgo.jpg&quot; alt=&quot;My Photo&quot;&gt;<br>2. Video File Formats</p><p>▪︎MP4: Most popular format. Works in all browsers.<br>▪︎WebM: Open format from Google. Small size, good quality.<br>▪︎OGV: Old format, now rarely used.</p><p>How to display video:<br>&lt;video src=&quot;video.mp4&quot; controls width=&quot;400&quot;&gt;&lt;/video&gt;<br>Browser reads the `src`, finds the video file, and shows it with play button.</p><p>3. Audio File Formats</p><p>°MP3: Most popular format. Small size, works everywhere.<br>°WAV: High quality, but file size is very big.<br>°OGG: Open format, good quality and small size.</p><p>How to display audio:<br>&lt;audio src=&quot;song.mp3&quot; controls&gt;&lt;/audio&gt;<br>How Does Browser Display Multimedia?</p><p>*Step 1:* HTML gives the address of the file using `src`.</p><p>*Step 2:* Browser goes to that address and downloads the file.<br>*Step 3:* Browser checks the file format - is it JPG, MP4, MP3?<br>Step 4:If the format is supported, browser shows it on the webpage. If not, it will show a blank box or error.</p><p>In simple words, HTML does not store the file, it only shows the location. The browser does all the work.</p><p>Which Format Should You Use?</p><p>- *For Photos:* JPG or WebP<br>- *For Logos:* PNG or SVG<br>- *For Videos:* MP4<br>- *For Audio:* MP3</p><p>If you use the correct format, your website will load fast and look beautiful.</p><h4>Conclusion</h4><p>So, for multimedia we need the right file format and the right HTML tag. For image we use `&lt;img&gt;`, for video we use `&lt;video&gt;`, and for audio we use `&lt;audio&gt;`. When you use MP4 for video, MP3 for audio, and JPG / WebP for image, your website will work perfectly in all browsers.*Conclusion</p><p>So, images, videos and audio make a website more interesting and easy to understand. For images we use `&lt;img&gt;`, for videos we use `&lt;video&gt;`, and for audio we use `&lt;audio&gt;`. If we use the correct file format like JPG for images, MP4 for videos and MP3 for audio, our website will load fast and work perfectly in all browsers.</p><p>So, learning multimedia in HTML is very important to create a beautiful and attractive website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a220fcb624f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Electronic mail]]></title>
            <link>https://medium.com/@kethukumar36/electronic-mail-4cd9eb80269d?source=rss-05478f1dd07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cd9eb80269d</guid>
            <dc:creator><![CDATA[Uthayakumar Thenuja]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 23:18:47 GMT</pubDate>
            <atom:updated>2026-11-05T23:18:47.864Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a technology that allows for the digital transmission of letter or message from one person to another via the internet. in the past we used postal letters to send messages to send others , a process that would take several days. with email , however, you can send a message to anyone, anywhere in the world, in a spilt second.</p><p>italic basked on the American standar code for information interchange (ASCII), Email system have evolved to support unicode,which accommodate most of the world’s languags. An email consists of two parts.The header and content. The header contains control information. Globally, 160 million emails are exchanged daily. 97 percent of which are unsolicited, such us advertisements.</p><p>A professional email follows a strict, left-justified block format with single spacing within paragraphs and a double space between sections. Organizing your communication into a predictable structure guarantees clarity, keeps your message concise, and prompts quicker replies.</p><p>Below is the standard structure of a professional email, broken down from top to bottom.</p><h3>1. Metadata &amp; Routing</h3><p>To: The primary recipient(s) who must take action or directly receive the information.</p><p>Cc (Carbon Copy): Individuals who need to stay informed but do not need to take direct action.</p><p>Bcc (Blind Carbon Copy): Recipients who receive the message invisibly, used to protect privacy or send mass announcements.</p><h3>2. The Subject Line</h3><p>The subject line must be a concise, accurate summary of the email’s purpose. Keep it under 60 characters so it does not get cut off on mobile screens.</p><p>Formal Example: Project Alpha: Q3 Budget Review</p><p>Action-Oriented Example: Action Required: Please sign the vendor contract by Friday</p><h3>3. Salutation (Greeting)</h3><p>The opening sets the tone for the entire message. Always match the level of formality to your relationship with the recipient.</p><p>Formal: Dear Mr. Davis, or Dear Dr. Lane,</p><p>Semi-Formal / Professional: Hello Sarah, or Hi Team,</p><p>Informal: Hi Mark, 1</p><h3>4. Opening Line &amp; Purpose</h3><p>State the reason you are writing in the very first sentence. Skip conversational filler like &quot;I’m writing to you today to...&quot; or &quot;I hope this email finds you well,&quot; and get straight to the point.</p><p>Example: I am following up on the proposal we discussed during Tuesday&#39;s meeting.</p><h3>5. Body Paragraphs (The Details)</h3><p>Keep the body limited to 1–2 short paragraphs. Each paragraph should ideally contain no more than 3 to 4 sentences.</p><p>Use bold text to highlight critical deadlines or metrics.</p><p>Use bulleted lists to break down multiple questions, choices, or items.</p><p>White space is your friend; extra spacing between blocks makes the text easy to skim on mobile devices. [</p><h3>6. Action Item &amp; Next Steps (Closing Line)</h3><p>Clearly state what you need the recipient to do next, or outline what your own next steps will be. [<a href="https://headwayskills.com/knowledge/communication/email-format-in-english/">1</a>]</p><p>Example: Please review the attached spreadsheet and confirm your approval by 4:00 PM tomorrow. [<a href="https://mailrelay.com/en/glossary/email-structure/">1</a>, <a href="https://headwayskills.com/knowledge/communication/email-format-in-english/">2</a>]</p><h3>7. Sign-off &amp; Signature Block</h3><p>Choose a professional closing phrase, insert a comma, leave a space, and provide your full professional contact details.</p><h3>Standard Email Template</h3><p>text</p><p>Subject: [Clear, Concise Topic].</p><p>dear [Recipient Name],</p><p>[Opening sentence stating the core purpose of the email].</p><p>[1-2 sentences providing context, background, or data details]. * Key point or requirement 1 * Key point or</p><p>[Clear call to action detailing the next steps or deadline]. Best regards, [Your Full Name] [Your Job Title] | [Company Name] [Your Phone Number] | [Link to Website].</p><p>A professional email follows a strict, left-justified block format with single spacing within paragraphs and a double space between sections. Organizing your communication into a predictable structure guarantees clarity, keeps your message concise, and prompts quicker replies.</p><h3>Metadata &amp; Routing</h3><h4>TO:</h4><p>The primary recipient(s) who must take action or directly receive the information.</p><h4>Cc (Carbon Copy):</h4><p>Individuals who need to stay informed but do not need to take direct action.</p><h4>Bcc (Blind Carbon Copy</h4><p>Recipients who receive the message invisibly, used to protect privacy or send mass announcements.</p><h4>. The Subject Line</h4><p>The subject line must be a concise, accurate summary of the email’s purpose. Keep it under 60 characters so it does not get cut off on mobile screens.</p><h4>Formal Example: Project Alpha: Q3 Budget ReviewAction-Oriented Example: Action Required: Please sign the vendor contract by Friday</h4><h4>. Salutation (Greeting)</h4><p>The opening sets the tone for the entire message. Always match the level of formality to your relationship with the recipient.</p><h4>Formal:</h4><p>Dear Mr. Davis, or Dear Dr. Lane</p><h4>Semi -Formal / Professional:</h4><p>Hello Sarah, or Hi Team,</p><h4>Informal:</h4><p>Hi Mark,</p><h3>Opening Line &amp; Purpose</h3><p>State the reason you are writing in the very first sentence. Skip conversational filler like &quot;I’m writing to you today to...&quot; or &quot;I hope this email finds you well,&quot; and get straight to the point.</p><h4>Example: I am following up on the proposal we discussed during Tuesday&#39;s meeting.</h4><h3>Main Advantages of Email</h3><h4>01. Speed and Fast Delivery:</h4><p>Messages reach the recipient in seconds, no matter where they are in the world.</p><h4>02. Cost-Effective:</h4><p>Sending an email is free (aside from your internet or device connection costs) and does not cost more for long distances or multiple people.</p><h4>03. Paperless and Eco-Friendly:</h4><p>It reduces the need for paper, printing, and physical postage, which helps protect the environment.</p><h4>04. File and Media Attachments:</h4><p>You can easily send documents, pictures, videos, and audio files along with your text.</p><h4>05. Built-in Record Keeping:</h4><p>Sent and received messages are stored automatically in your inbox, creating a searchable written paper trail for future reference.</p><h4>06. Mass Broadcasting:</h4><p>You can send the exact same message to a group of people, a team, or an entire mailing list all at once using CC or BCC.</p><h4>07. 24/7 Accessibility:</h4><p>You can send or read emails anytime, anywhere, from your computer or mobile phone.</p><h4>08. Unobtrusive Communication:</h4><p>Unlike a phone call, an email does not interrupt the recipient right away, allowing them to read and reply at a convenient time.</p><h3>main disadvantage of Email</h3><p><strong>01.Lack of Tone and Nonverbal Cues:</strong> Emails miss body language, facial expressions, and vocal tone, which frequently leads to misunderstandings or misinterpreting the sender’s mood.</p><p><strong>02. Information Overload:</strong></p><p>Inboxes easily fill up with a high volume of messages, making it difficult to focus or spot urgent tasks.</p><p><strong>03.Spam and Security Risks:</strong></p><p>Accounts are vulnerable to junk mail, phishing scams, and malware or viruses hidden in attachments.</p><p><strong>04. No Immediate Recall:</strong></p><p>Once you click &quot;send,&quot; you cannot pull the message back if you made a typo or sent it to the wrong person.</p><p><strong>05.Delayed Responses:</strong></p><p>Unlike instant messaging or a phone call, email does not guarantee a real-time reply, which slows down urgent communication.</p><p><strong>06. Privacy and Confidentiality issue</strong>s: Electronic messages can be forwarded, intercepted, or stored insecurely.</p><figure><img alt="iphone, ios, home screen, close up, pixels, retina, smartphone, icon, mail, email,
" src="https://cdn-images-1.medium.com/max/1024/0*6UW1d4fIvwUN6r9H" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cd9eb80269d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first day with uki- A new beginning]]></title>
            <link>https://medium.com/@kethukumar36/my-first-day-with-uki-a-new-beginning-93fe79cedc6c?source=rss-05478f1dd07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/93fe79cedc6c</guid>
            <dc:creator><![CDATA[Uthayakumar Thenuja]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 07:13:19 GMT</pubDate>
            <atom:updated>2026-10-30T07:17:32.566Z</atom:updated>
            <content:encoded><![CDATA[<p>The first day of the Uki journey began at 8.30 .I wasn’t particularly keen on the idea of spending the entire day.from 8.30 to 4.30 there .but,since i had already gone through the interview process.</p><p>I decided to show up.The day started with an ice-breaking session ,where we all learned each other’s names .Then we were divided into four groups . At that point , I started to get a bit worried. I wondered if they might just hand us a laptop and leave us to figure things out on our own,but that didn’t happen.</p><p>We learned about uki and discussed the various factors that influence that market for a product. I had thought about these things before,but never to this extent.Afterward,we were given A4 sheets and asked to create something based on what we knew. Then, we were provided with paints and asked to further embellish what our group had created .Since we had enough time ,we ended up making two items instead of one everyone had finished. We were asked what we liked about each other’s work.</p><p>Everyone shared different perspectives . Next,we moved on to the next activity, a tour of ‘Uki ’ . When we explored the space with abi sister moving on ,our facilitator had another plan in store. He asked each of us to explain where we live and how we would travel from our respective homes to the venue . Everyone explained . it in their own unique way, and I shared my own version too. The way everyone described their routes was quite fun!. He also taught us that when mentioning a location,we should anchor it to a major landmark or a well known area, and explained the various factors to consider.</p><p>After that, we took a 45 minute break for a meal.Once we returned, he handed us a large sheet of paper and asked us to map out the home location of all the members in our group. The entire process wasn’t quit, serious affair. It was lively and full of energy ! so, we began drawing. He gave us 30 minutes to complete it. By the time we finished, we weren’t even sure what the final drawing actually looked like, but we had managed to complete the task!And after that we had minutes for a presentation. Since we were the first group ,</p><p>We went up to the present. The instructor pointed. Out some errors in our work. But,we stood by our map, insisting that it was accurate based on our own perspective.Every group took their turn parenting, and it was fascinating to see how differently everyone had illustrated their Locations. It was a truly happy and enjoyable experience. Next came the gaming session, but as it happened there was heavy rain so,don,t even go outside play indoors our brother suggested. We had a lot of fun playing games .everythings from ‘tomato game to 7up ‘.We didn’t even notice how time flew by. I can’t quite put into words what that first day of my journey was like ,it truly felt like a happy day .At that moment ,a thought crossed my mind . I want to learn web development and eventually return as an alumnus. That day served as a joyful ,worry free first step toward making that happen.</p><p>It won’t end in just one day. It will continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xPwbvAbfe_Ubna8nsVjyg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93fe79cedc6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>