<?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 Michał Sidor/Michcioperz on Medium]]></title>
        <description><![CDATA[Stories by Michał Sidor/Michcioperz on Medium]]></description>
        <link>https://medium.com/@Michcioperz?source=rss-97351cf5bebb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vm-t3B7d7coOCRqI.jpg</url>
            <title>Stories by Michał Sidor/Michcioperz on Medium</title>
            <link>https://medium.com/@Michcioperz?source=rss-97351cf5bebb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:27:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Michcioperz/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[A public server for students except in high school]]></title>
            <link>https://medium.com/@Michcioperz/a-public-server-for-students-except-in-high-school-3d4c5b55aabf?source=rss-97351cf5bebb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d4c5b55aabf</guid>
            <category><![CDATA[high-school]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Michał Sidor/Michcioperz]]></dc:creator>
            <pubDate>Thu, 12 Jan 2017 23:48:13 GMT</pubDate>
            <atom:updated>2017-01-12T23:48:13.999Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<p>I always loved the idea of universities and colleges providing public internet space to their students, somewhere in some <em>students.someuniversity.edu/~studentslastname </em>along with a relevant email address. I might be still in high school, but, I thought, nothing could stop me from setting up this kind of service myself, especially considering how supportive my school attempts to be to programming fanatics like me. Too my surprise, it turned out that there has been a barely ever used computer with an Intel Server Board and a not-bad Xeon, sitting there in a locker, unused for the last few years.</p><p>I’d like to take a quick moment to thank my Computer Science teacher for letting me take care of that server. I admit I didn’t take enough care when handling it, for example when I gave in to my sleep deprivation and in the confused half-conscious state pushed the running server off my desk, but I’m really glad it worked out fine.</p><p>The initial goal was to just set up a simple server, nothing too complex, basic Linux stuff, userdirs (with PHP maybe), mail server. That’s why I chose latest LTS version of Ubuntu Server for that and pretty much just ticked the <em>LAMP Server</em> and <em>Mail server</em> boxes during the installation process, or something like that. We had no trouble giving it a public IP, either, because the school has a handful of them that it doesn’t use.</p><p>I’ve run into one serious issue during the installation. As it turned out, one of the hard drives had been broken since time around purchase, there was a copy of FreeBSD installed, and the server had been set up to do hardware RAID mirroring. I never really managed to understand the issue and why the computer decided against booting up my Ubuntu Server, but understanding wasn’t really necessary. The easiest solution to the problem was resetting the BIOS by moving a jumper on the board.</p><p>So it had booted up, I gave it an uncomplicated firewall, a fail2ban watching over the SSH server. It worked perfectly fine, putting aside the sudden shutdowns caused by school staff powering down the whole Computer Science classroom when I least expected, but we ironed it out.</p><p>The real test for the server was when access was given out to students.</p><p>I don’t think I understand the curriculum of Computer Science in my country, but apparently in the senior year of high school we are supposed to learn how to use Linux servers (or maybe just servers) and possibly make a small dynamic website with PHP or something. But my class has a great variety of people, from algorithms <a href="http://codeforces.com/profile/cuber2460">grand</a><a href="http://codeforces.com/profile/Mindstorm">masters</a> to <a href="https://www.youtube.com/watch?v=eT1NQjTiddI">robotics club leaders</a> to people who just don’t care about the subject and are more interested in other extended subjects that belong in our class, such as Physics and Partying.</p><p>First thing we did was just simple login over SSH using PuTTY on Windows, and that was where we ran into the first issue. fail2ban reacted perfectly — two students mistyped their passwords a few times and the server just stopped responding to connections from school’s IP. At first I thought the issue was rather in the sudden rush of connections and processes and — that didn’t make much sense, it was a Xeon of sorts, and only then I remembered that fail2ban is working. I didn’t bother to fix it properly until a few days later, when it happened again and I couldn’t be there to fix it cause I was at home studying.</p><p>And from there it went pretty fine. Everyone had a limit of 30 processes, 100 MB of disk quota, one of the first commands they were taught was write so now they had fun sending memes over.</p><p>And then one student, both a great algorithmic task solver and a practical user of Linux, allocated all the RAM the server had with a short C++ program.</p><p>I actually considered limiting the RAM usage too, but I started reading up on cgroups and haven’t finished in time, and so I had to cut the power and boot up the server again.</p><p>And what now? I think the way I set the server up was a mistake. I’ve done some obvious mistakes that I can see now.</p><p>So I’m gonna start things from scratch here and there.</p><p>Time for me to do some proper reading on virtualization!</p><p>(This article, it might sound like an incoherent and way too long “don’t try this at your high school”, but in fact it’s quite the opposite: do try this at your high school if you can.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d4c5b55aabf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cheap “async” font loading]]></title>
            <link>https://medium.com/@Michcioperz/cheap-async-font-loading-edd6b1a579c5?source=rss-97351cf5bebb------2</link>
            <guid isPermaLink="false">https://medium.com/p/edd6b1a579c5</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[async]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Michał Sidor/Michcioperz]]></dc:creator>
            <pubDate>Fri, 25 Nov 2016 15:34:27 GMT</pubDate>
            <atom:updated>2016-11-25T15:34:27.823Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been battling all afternoon today, trying to convince my school’s PHP website to cache as much as possible. Images were easy — it took a short .htaccess with <em>Cache-Control</em> set to non-zero. Instead, the time-taking part is tearing the site apart, removing dead code and getting rid of unnecessary dependencies. While trying to speed up webfonts as effortlessly as possible, I found myself writing these few lines.</p><pre>&lt;noscript id=&quot;fontloader&quot;&gt;<br>  &lt;link href=&#39;http://fonts.googleapis.com/css?family=Roboto+Condensed&amp;amp;subset=latin,latin-ext&#39; rel=&#39;stylesheet&#39; type=&#39;text/css&#39;&gt;<br>  &lt;link href=&#39;http://fonts.googleapis.com/css?family=Alegreya+Sans&amp;amp;subset=latin,latin-ext&#39; rel=&#39;stylesheet&#39; type=&#39;text/css&#39;&gt;<br>&lt;/noscript&gt;<br>&lt;script&gt;<br>  document.addEventListener(&#39;DOMContentLoaded&#39;, function() {<br>    document.getElementById(&#39;fontloader&#39;).outerHTML = document.getElementById(&#39;fontloader&#39;).innerHTML;<br>  });<br>&lt;/script&gt;</pre><p>What happens here is the fonts are loaded blocking way if the user is blocking JavaScript or they start loading after the page has loaded if JavaScript is enabled.</p><p>Obviously there might be better ways to do it, but, say, it works fine for me. Now I’ll be off to figure out why my <em>flash of unstyled content</em> breaks the menu layout.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edd6b1a579c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>