<?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 Markus Wedler on Medium]]></title>
        <description><![CDATA[Stories by Markus Wedler on Medium]]></description>
        <link>https://medium.com/@mwedler?source=rss-bcc334927f8a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*U6t2FkXmR0FUmLI_.jpg</url>
            <title>Stories by Markus Wedler on Medium</title>
            <link>https://medium.com/@mwedler?source=rss-bcc334927f8a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:42:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mwedler/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[ Understanding Aspect Ratio, Width, and Height Relationships]]></title>
            <link>https://medium.com/@mwedler/understanding-aspect-ratio-width-and-height-relationships-bcd02e9aac6b?source=rss-bcc334927f8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcd02e9aac6b</guid>
            <category><![CDATA[image]]></category>
            <category><![CDATA[aspect-ratio]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Markus Wedler]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 08:45:28 GMT</pubDate>
            <atom:updated>2025-04-29T08:53:40.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-kBVg4fac77bP2YwybthQ.png" /></figure><h3>What Does Aspect Ratio Mean?</h3><p>The <strong>aspect ratio</strong> describes <strong>how wide</strong> something is compared to <strong>how tall</strong> it is. It doesn’t talk about actual size — only <strong>proportions</strong>.</p><p>It answers the question:</p><blockquote><strong><em>“If I have 1 unit of height, how many units of width do I get?”</em></strong></blockquote><p>For example:</p><ul><li><strong>Aspect ratio = 1.0</strong> ➔ width and height are the same (a square)</li><li><strong>Aspect ratio &lt; 1.0</strong> ➔ the shape is taller than wide</li><li><strong>Aspect ratio &gt; 1.0</strong> ➔ the shape is wider than tall</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*l6fbGzyiNEJ1iyz5tvxCEg.png" /><figcaption>Width Changes by Aspect Ratio</figcaption></figure><h3>How to Calculate the Aspect Ratio</h3><p><strong>When you divide:</strong></p><pre>width / height</pre><p>you <strong>ask</strong>:</p><blockquote><strong><em>“For every 1 pixel of height, how much width is there?”</em></strong></blockquote><p><strong>Example:</strong></p><ul><li>Width = 1920 pixels</li><li>Height = 1080 pixels</li></ul><p><strong>Aspect ratio:</strong></p><pre>1920 / 1080 ≈ 1.78</pre><p>This tells you: <strong>for every 1 pixel of height, there are 1.78 pixels of width</strong>.</p><h3>Setting a New Height — How to Find the Width</h3><p>When you choose a <strong>new height</strong>, you can <strong>calculate the matching width</strong> by multiplying the new height by the aspect ratio.</p><p><strong>Formular:</strong></p><pre>width = height × aspect ratio</pre><p><strong>Example:</strong></p><ul><li>New height = 200 pixels</li><li>Aspect ratio = 1.78</li></ul><p><strong>Width:</strong></p><pre>width = 200 × 1.78 = 356 pixels</pre><p><strong>Result</strong>: To keep the same proportions, if the height is 200 pixels, the width must be 356 pixels</p><h3>Visualizing Different Aspect Ratios</h3><pre>Aspect Ratio | Shape              | Explanation<br> - - - - - - | - - - - - - - - - -| - - - - - - - - - - - - - -<br>= 1.0.       | □ Square.          | Width = Height<br>&lt; 1.0.       | ▯ Tall rectangle   | Width smaller than Height<br>&gt; 1.0        | ▭ Wide rectangle   | Width greater than Height</pre><h3>5. ⚡ Problems if You Don’t Respect the Aspect Ratio</h3><p>If you change only the height <strong>without adjusting the width using the aspect ratio</strong>, your image or layout will:</p><ul><li>Look <strong>stretched</strong> or <strong>squashed</strong>.</li><li><strong>Lose its natural proportions</strong>.</li><li>Appear <strong>distorted</strong> to the eye.</li></ul><p><strong>Example:</strong></p><ul><li>You change height, but leave width fixed.</li><li>Suddenly a circle becomes an oval, or a square becomes a rectangle!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZ422_7aYaxvsk6HqoED-A.png" /><figcaption>Distorted image due to not using the correct aspect ratio</figcaption></figure><h3>💡 Final Key Ideas</h3><ul><li><strong>Aspect Ratio = Width ÷ Height</strong> (gives the shape, not size).</li><li><strong>When setting a new height</strong>, calculate the width by:</li></ul><pre>width = height × aspect ratio</pre><ul><li><strong>If aspect ratio = 1.0</strong>, width and height are the same.</li><li><strong>If aspect ratio &lt; 1.0</strong>, it is taller than wide.</li><li><strong>If aspect ratio &gt; 1.0</strong>, it is wider than tall.</li></ul><p>💬 Memory trick: “1 pixel of height gets multiplied by the aspect ratio to get the correct width.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcd02e9aac6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free Up Disk Space in Rust: A Step-by-Step Cleanup Guide]]></title>
            <link>https://medium.com/@mwedler/free-up-disk-space-in-rust-a-step-by-step-cleanup-guide-079c418d80a1?source=rss-bcc334927f8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/079c418d80a1</guid>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Markus Wedler]]></dc:creator>
            <pubDate>Thu, 30 Jan 2025 08:32:21 GMT</pubDate>
            <atom:updated>2025-01-30T08:32:21.690Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fi3oPBH7jgB9zUdZn-vUWA.jpeg" /></figure><h3>Rust regularly downloads new toolchain versions during updates but does not automatically delete old ones. Over time, this can consume <strong>several gigabytes</strong> of storage. If you’ve used multiple versions (stable, nightly, beta), you likely have <strong>unused toolchains</strong> taking up space.</h3><h3>🚀 Step 1: Check Rust Installation Size</h3><p>To see how much space Rust is using, run:</p><pre>du -sh ~/.rustup</pre><p>This will show the total disk usage of your Rust installations.</p><h3>🗑️ Step 2: Remove Old Rust Versions</h3><p>List all installed Rust versions:</p><pre>rustup show</pre><p>This will display:<br>✅ The active Rust version<br>✅ Other installed versions<br>✅ The default Rust toolchain</p><p>Now, remove the old versions you no longer need:</p><pre>rustup uninstall &lt;version&gt;</pre><h3>🛠️ Step 3: Clean Up Unused Rust Components</h3><h4>Remove Unused Targets:</h4><p>If you installed targets you no longer need (e.g., for cross-compilation), remove them:</p><pre>rustup target remove &lt;target&gt;</pre><h3>🧹 Step 4: Clear Rust’s Cache</h3><p>Rust stores cached files that accumulate over time.</p><h4>✅ Remove old cached downloads:</h4><pre>rustup self update  <br>rustup self cleanup</pre><h4>✅ Clean Cargo’s build cache:</h4><pre>cargo clean</pre><h4>⚠️ Remove all unused dependencies (Be Careful!):</h4><pre>rm -rf ~/.cargo/registry  <br>rm -rf ~/.cargo/git</pre><p>💡 <em>Only run these commands if you are sure you no longer need the cached dependencies.</em></p><h3>📌 Step 5: Confirm Disk Space After Cleanup</h3><p>Check again how much space was freed:</p><pre>du -sh ~/.rustup</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=079c418d80a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>