<?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 Klajddd on Medium]]></title>
        <description><![CDATA[Stories by Klajddd on Medium]]></description>
        <link>https://medium.com/@kkcom?source=rss-2f2fd227c5fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*z4cq_lQ1x89FpQLZOtdJtw.png</url>
            <title>Stories by Klajddd on Medium</title>
            <link>https://medium.com/@kkcom?source=rss-2f2fd227c5fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:04:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kkcom/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[SYSTEMS DESIGN — CACHING]]></title>
            <link>https://kkcom.medium.com/systems-design-caching-4e37a2f1edf9?source=rss-2f2fd227c5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e37a2f1edf9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Klajddd]]></dc:creator>
            <pubDate>Fri, 16 Jun 2023 02:54:43 GMT</pubDate>
            <atom:updated>2023-06-16T07:01:56.769Z</atom:updated>
            <content:encoded><![CDATA[<h3>SYSTEMS DESIGN — CACHING</h3><h4>Caching is a computing technique used to improve a system’s performance by storing frequently accessed data in a cache. Caching reduces latency and minimizes the workload on the underlying storage system by ensuring that frequently accessed data is readily accessible.</h4><h3>WHAT IS CACHING</h3><p>Caching is a process used in computer systems to improve the performance of storing and accessing data.</p><p>This is achieved by storing <strong>frequently</strong> <strong>accessed</strong> <strong>data</strong> in a <strong>temporary</strong> <strong>storage</strong> location - a cache - so that it can be accessed quickly.</p><p>A cache is a high-speed, relatively small memory that sits between the main storage, such as a disk or database, and the requesting component, such as a processor or application.</p><p>Web browsers store HTML and image files and JavaScript scripts in their cache in order to load websites faster.</p><p>CDN servers store content in their cache to reduce latency.</p><p>DNS servers store DNS records in their cache for faster lookups.</p><h3><strong>TYPES OF CACHES</strong></h3><p>Caches can be implemented at various levels in a distributed system, within a single server, across multiple servers, or on the client side.</p><p>Distributed systems commonly use various types of caches.</p><h4><strong>📟 MEMORY CACHES</strong></h4><p>These caches store frequently accessed data in a <strong>high-speed memory location, such as RAM</strong>, which is closer to the processing units.</p><p>This arrangement decreases the time needed to retrieve data from slower storage devices, such as hard disks or databases.</p><h4><strong>💿 DISK CACHES</strong></h4><p>Disk caches, sometimes referred to as buffer caches, store recently accessed data from disks in memory.</p><p>This <strong>enhances disk I/O performance</strong> by minimizing the need for frequent physical reads or writes.</p><h4><strong>🌐 WEB CACHES</strong></h4><p>Web caches, commonly referred to as <strong>proxy</strong> <strong>caches</strong>, store duplicates of web content that has been requested by clients.</p><p>When subsequent requests for the same content are made, the cache can directly serve the data, reducing the load on backend servers and enhancing response times.</p><h4>🌎 CONTENT DELIVERY NETWORKS (CDNs)</h4><p>CDNs (Content Delivery Networks) represent a type of distributed caching where copies of content, such as images, videos, or web pages, are stored in <strong>servers spread across different geographic locations</strong>.</p><p>When a user requests content, the CDN reduces network latency by serving the content from the server that is closest to the user.</p><h4>⌗ DATABASE CACHES</h4><p>Database caches store frequently accessed data or <strong>query results in memory</strong> to speed up database operations.</p><p>By keeping this data readily available, databases significantly improve response times and reduce the load on the database server.</p><h3>THIS STORY IS CONSISTENTLY UPDATED WITH ADDITIONAL INFORMATION TO IMPROVE THE QUALITY OF THE LEARNING AND READING EXPERIENCE 📚</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e37a2f1edf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vim Cheat Sheet, The Complete Beginners Guide for Vim]]></title>
            <link>https://kkcom.medium.com/vim-cheat-sheet-learn-vim-from-zero-to-hero-the-complete-beginner-guide-for-vim-bfc6e9833dba?source=rss-2f2fd227c5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfc6e9833dba</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Klajddd]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 15:28:26 GMT</pubDate>
            <atom:updated>2023-06-16T07:12:39.627Z</atom:updated>
            <content:encoded><![CDATA[<h4>Vim is a popular and powerful text editor that has been around for several decades. It’s a command-line-based editor, which means it runs in a terminal or console window rather than having a graphical user interface like most modern text editors. Vim offers a range of features that make it a favorite among many programmers, writers, and power users.</h4><h3><strong>MOVEMENT</strong></h3><pre><br>h or ←   #===&gt; Move cursor left.<br><br>j or ↓   #===&gt; Move cursor down.<br><br>k or ↑   #===&gt; Move cursor up.<br><br>l or →   #===&gt; Move cursor right.<br><br>w        #===&gt; Move to the beginning of the next word.<br><br>b        #===&gt; Move to the beginning of the previous word.<br><br>e        #===&gt; Move to the end of the current word.<br><br>0        #===&gt; Move to the beginning of the current line.<br><br>$        #===&gt; Move to the end of the current line.<br><br>gg       #===&gt; Move to the first line of the document.<br><br>G        #===&gt; Move to the last line of the document.<br><br>Ctrl + F #===&gt; Move forward one page.<br><br>Ctrl + B #===&gt; Move backward one page.</pre><h3><strong>EDITING</strong></h3><pre>i        #===&gt; Insert text before the cursor.<br><br>a        #===&gt; Append text after the cursor.<br><br>o        #===&gt; Insert a new line below the current line.<br><br>O        #===&gt; Insert a new line above the current line.<br><br>x        #===&gt; Delete the character under the cursor.<br><br>dd       #===&gt; Delete the current line.<br><br>yy       #===&gt; Copy the current line.<br><br>p        #===&gt; Paste the copied or deleted text below the current line.<br><br>P        #===&gt; Paste the copied or deleted text above the current line.<br><br>u        #===&gt; Undo the last change.<br><br>Ctrl + R #===&gt; Redo the last change.<br><br>.        #===&gt; Repeat the last command.</pre><h3>SEARCH AND REPLACE</h3><pre>/pattern.     #===&gt; Search forward for the specified pattern<br><br>?pattern.     #===&gt; Search backward for the specified pattern<br><br>n             #===&gt; Jump to the next occurrence of the search pattern<br><br>N             #===&gt; Jump to the previous occurrence of the search pattern<br><br>:%s/old/new/g #===&gt; Replace occurrences of &quot;old&quot; with &quot;new&quot; in the entire file<br><br>:s/old/new/g  #===&gt; Replace occurrences of &quot;old&quot; with &quot;new&quot; in the current line<br><br>:s/old/new/gc #===&gt; Replace occurrences of &quot;old&quot; with &quot;new&quot; in the current line with confirmation</pre><h3><strong>SAVING AND QUITTING</strong></h3><pre>:w         #===&gt; Save the file<br><br>:q         #===&gt; Quit Vim<br><br>:wq or :x  #===&gt; Save and quit Vim<br><br>:q!        #===&gt; Quit Vim without saving changes</pre><h3><strong>VISUAL MODE</strong></h3><pre>v         #===&gt; Enter character-wise visual mode<br><br>V         #===&gt; Enter line-wise visual mode<br><br>Ctrl + V  #===&gt; Enter block-wise visual mode<br><br># Use movement commands to select text, then perform operations like deletion or copy/paste</pre><h3><strong>THE STORY IS CONTINUOUSLY BEING UPDATED…</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfc6e9833dba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Linux terminal, from zero to hero: the complete beginner Linux guide for command line mastery]]></title>
            <link>https://kkcom.medium.com/learn-linux-terminal-linux-shell-from-zero-to-hero-the-complete-beginner-linux-guide-for-e99874c34c50?source=rss-2f2fd227c5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e99874c34c50</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Klajddd]]></dc:creator>
            <pubDate>Thu, 08 Jun 2023 16:01:40 GMT</pubDate>
            <atom:updated>2026-01-22T04:09:39.254Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Linux terminal, also known as the command line or shell, is a text-based interface that allows users to interact with the operating system using commands.</h4><h3>SCROLL FOR EXAMPLES</h3><h3>FILE COMMANDS</h3><pre>$ ls                  #===&gt; Directory listing<br>$ ls -al              #===&gt; Formatted listing with hidden files<br>$ ls -lt              #===&gt; Sorting the Formatted listing by time modification<br>$ cd dir              #===&gt; Change directory to dir<br>$ cd                  #===&gt; Change to home directory<br>$ pwd                 #===&gt; Show current working directory<br>$ mkdir dir           #===&gt; Creating a directory dir<br>$ cat &gt;file           #===&gt; Places the standard input into the file<br>$ more file           #===&gt; Output the contents of the file<br>$ head file           #===&gt; Output the first 10 lines of the file<br>$ tail file           #===&gt; Output the last 10 lines of the file<br>$ tail -f file        #===&gt; Output the contents of file as it grows, starting with the last 10 lines<br>$ touch file          #===&gt; Create or update file<br>$ rm file             #===&gt; Deleting the file<br>$ rm -r dir           #===&gt; Deleting the directory<br>$ rm -f file          #===&gt; Force to remove the file<br>$ rm -rf dir          #===&gt; Force to remove the directory dir<br>$ cp file1 file2      #===&gt; Copy the contents of file1 to file2<br>$ cp -r dir1 dir2     #===&gt; Copy dir1 to dir2;create dir2 if not present<br>$ tar                 #===&gt; Zip/unzip a file</pre><h3>PROCESS MANAGEMENT COMMANDS</h3><pre>$ ps                #===&gt; Display the currently working processes<br>$ top               #===&gt; Display all running process<br>$ pkill pattern     #===&gt; Kill all processes matching the pattern<br>$ bg                #===&gt; List stopped/background jobs, resume a stopped job in the background<br>$ fg                #===&gt; Bring the most recent job to foreground<br>$ fg n              #===&gt; Bring job n to the foreground</pre><h3>SEARCHING COMMANDS</h3><pre>$ grep pattern file       #===&gt; Search for pattern in file<br>$ grep -r pattern dir     #===&gt; Search recursively for pattern in dir<br>$ command | grep pattern  #===&gt; Search pattern in the output of a command<br>$ locate file_name        #===&gt; Find all instances of file_name<br>$ find . -name filename   #===&gt; Search in the current directory and below it, for files<br>                                # and directories with names starting with filename<br>$ pgrep pattern           #===&gt; Search all named processes that match with the pattern and return their ID</pre><h3>SYSTEM INFO COMMANDS</h3><pre>$ date                    #===&gt; Show current date and time<br>$ cal                     #===&gt; Show this month&#39;s calender<br>$ uptime                  #===&gt; Show current uptime<br>$ w                       #===&gt; Display who is online<br>$ whoami                  #===&gt; Who you are logged in as<br>$ finger user             #===&gt; Display information about the user<br>$ uname -a                #===&gt; Show kernel information<br>$ cat /proc/cpuinfo       #===&gt; CPU information<br>$ cat proc/meminfo        #===&gt; Memory information<br>$ man command             #===&gt; Show the manual for the &#39;command&#39; command<br>$ df                      #===&gt; Show the disk usage    <br>$ du                      #===&gt; Show directory space usage<br>$ free                    #===&gt; Show memory and swap usage<br>$ whereis app             #===&gt; Show possible locations of app<br>$ which app               #===&gt; Show which application will run by default</pre><h3>NETWORKING</h3><pre>$ ping host               #===&gt; Ping host and output results<br>$ whois domain            #===&gt; Get whois information for domains<br>$ dig domain              #===&gt; Get DNS information for domain<br>$ dig -x host             #===&gt; Reverse lookup host<br>$ wget file               #===&gt; Download file<br>$ wget -c file            #===&gt; Continue a stopped download</pre><h3>SHORTCUTS</h3><pre>$ ctrl+c                  #===&gt; Halts the current command<br>$ ctrl+z                  #===&gt; Stops the current command, resume with &quot;fg&quot; in the foreground or &quot;bg&quot; in the background<br>$ ctrl+d                  #===&gt; Logout the current session, similar to exit<br>$ ctrl+w                  #===&gt; Erase one word in the current line<br>$ ctrl+u                  #===&gt; Erase the whole line<br>$ ctrl+r                  #===&gt; Type to bring up a recent command<br>$ !!                      #===&gt; Repeat the last command<br>$ exit                    #===&gt; Logout the current session</pre><h3><strong>LISTING FILES AND DIRECTORIES:</strong></h3><p>ls Lists the files and directories in the current directory</p><p>ls -l Displays information about files and directories like:</p><ul><li>permissions</li><li>owner</li><li>size</li><li>modification time</li></ul><p>ls -a Shows all files and directories, including hidden ones starting with ‘.’</p><h3><strong>NAVIGATING DIRECTORIES</strong></h3><p>cd Changes the current directory</p><pre># Moves to the &#39;Documents&#39; directory<br>cd Documents</pre><p>cd ..Moves up one directory level</p><p>pwd Prints the current working directory</p><h3><strong>CREATING AND DELETING FILES/DIRECTORIES</strong></h3><p>mkdir: Creates a new directory</p><pre># Creates a directory named &#39;new_directory&#39;<br>mkdir new_directory</pre><p>touch: Creates a new empty file</p><pre># creates a file named &#39;new_file.txt&#39;<br>touch new_file.txt</pre><p>rm Removes (deletes) files and directories</p><pre># deletes the file named &#39;file.txt&#39;<br>rm file.txt<br><br># deletes the &#39;directory&#39; and its contents (files/folders) recursively<br>rm -r directory</pre><p>tar Zip or unzip a file</p><pre># zip file into a tar file<br>tar -cvf file_name src_folder<br><br># unzip tar file<br>tar -xvf file_name</pre><h3><strong>VIEWING FILE CONTENTS:</strong></h3><p>cat Displays the contents of a file.</p><pre># prints the contents of &#39;file.txt&#39; to the terminal<br>cat file.txtba</pre><p>less Allows scrolling through large files.</p><pre># opens &#39;big_file.txt&#39; for browsing<br>less big_file.txt</pre><h3><strong>COPYING, MOVING, AND RENAMING FILES/DIRECTORIES:</strong></h3><p>cp Copies files and directories</p><pre># copies &#39;file.txt&#39; to the specified destination<br>cp file.txt /path/to/destination</pre><p>mv Moves or renames files and directories</p><pre># moves &#39;file.txt&#39; to the &#39;new_location&#39; directory<br>mv file.txt new_location/file.txt</pre><h3><strong>Running programs and executing scripts:</strong></h3><p>./ Executes a script or program in the current directory</p><pre># Runs the shell script named &#39;script.sh&#39;<br>./script.sh</pre><h3>THE STORY IS BEING UPDATED…</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e99874c34c50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn SQL, From Zero to Hero: The Complete Beginner SQL Guide for Database Mastery]]></title>
            <link>https://kkcom.medium.com/learn-sql-from-zero-to-hero-the-complete-beginner-sql-guide-for-database-mastery-7d6adde1f954?source=rss-2f2fd227c5fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d6adde1f954</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Klajddd]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 20:46:26 GMT</pubDate>
            <atom:updated>2023-06-10T01:09:49.172Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5kfKaHgeMNOYszSBVtU-fA.png" /></figure><h3><strong>INTRODUCTION</strong>:</h3><p>Structured Query Language (SQL) is a tool for managing and relational databases.</p><p>Whether you’re a software engineer, data analyst, or aspiring database administrator, having a solid understanding of SQL is essential.</p><p>In this article, we’ll explore the basics of learning SQL, focusing on MySQL as our database management system.</p><h3><strong>1. CREATE A DATABASE:</strong></h3><p>The CREATE command in MySQL is used to create database objects such as:</p><ul><li>databases</li><li>tables</li><li>views</li><li>indexes</li></ul><p>The CREATE DATABASE statement followed by the name of the database creates a database in MySQL.</p><pre>CREATE DATABASE mydatabase;</pre><h3><strong>2. CREATE A TABLE</strong></h3><p>Tables are used to store data in a structured manner within a database.</p><p>To create a table use CREATE TABLE and the name of the table and its column definitions.</p><p>Below we create a table named users with 3 columns: id, name, and age. The column definitions specify the data type associated with each column:</p><p>id integer</p><p>age integers</p><p>name a string of a maximum of 50 characters</p><p>MySQL offers various data types such as:</p><ul><li>integers</li><li>floats</li><li>strings</li><li>dates</li></ul><pre>CREATE TABLE users (<br>    id INT,<br>    name VARCHAR(50),<br>    age INT<br>);</pre><h3><strong>3. INSERT DATA INTO THE TABLE</strong></h3><p>The INSERT command is used to insert new records or rows into a table.</p><p><strong>SYNTAX</strong></p><pre>INSERT INTO table_name (column1, column2, ...)<br>VALUES (value1, value2, ...);</pre><p><strong>INSERT 1 ROW</strong></p><pre>INSERT INTO users (name, age)<br>VALUES (&#39;John Doe&#39;, 25);</pre><p><strong>INSERT MULTIPLE ROWS</strong></p><pre>INSERT INTO users (name, age)<br>VALUES (&#39;John Doe&#39;, 25), (&#39;Jane Smith&#39;, 30);</pre><h3><strong>4. UPDATE DATA</strong></h3><p>The UPDATE command is used to modify existing records in a table.</p><p>In the table named users with columns id, name, and age to update the age of user with id=1, the UPDATE command would look like this:</p><p><strong>UPDATE 1 COLUMN</strong></p><pre>UPDATE users<br>SET age = 26<br>WHERE id = 1;</pre><p><strong>UPDATE MULTIPLE COLUMNS</strong></p><pre>UPDATE users<br>SET age = 26, name = &#39;John Smith&#39;<br>WHERE id = 1;</pre><h3>5. SELECT DATA</h3><p>The <strong>SELECT</strong> statement is used to get data from one or multiple tables in a database.</p><pre>SELECT name FROM users;</pre><pre>SELECT age FROM users;</pre><pre>SELECT name, age FROM users;</pre><p><strong>SELECT</strong> all columns using the asterisk character:</p><pre>SELECT * FROM users;</pre><blockquote>WORKING</blockquote><blockquote>WITH</blockquote><blockquote>STRING</blockquote><blockquote>DATA</blockquote><h3><strong>6. SUBSTR — SELECT A SUBSTRING OF THE STRING DATA</strong></h3><p>The substring function allows you to extract a specific portion of a string based on its position or length.</p><pre>-- SYNTAX<br>SUBSTR(string, start, length)</pre><pre>-- Returns: Hello<br>SELECT SUBSTR(&#39;Hello, world!&#39;, 1, 5);</pre><p>The example below selects the first 5 characters of the entries in the name column in the users table and shows the result in a column called substring_name</p><pre>SELECT SUBSTR(name, 1, 5) as substring_name from users;</pre><h3><strong>7. LENGTH — GET THE LENGTH OF A STRING DATATYPE ENTRY</strong></h3><pre>SELECT name, length(name) FROM users;<br><br><br><br>/*<br>  Returns the list of names and their length, for example:<br><br>  name       | length(name)<br>  John Doe   | 8<br>*/</pre><blockquote>WORKING</blockquote><blockquote>WITH</blockquote><blockquote>INTEGER</blockquote><blockquote>DATA</blockquote><h3>8. ROUND — ROUND NUMBERS SPECIFIED TO DECIMAL PLACES</h3><pre>-- Returns: 235.42<br>SELECT ROUND(235.415, 2);</pre><h3><strong>STORY IS BEING UPDATED…</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d6adde1f954" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>