<?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 Stepan Zharychev on Medium]]></title>
        <description><![CDATA[Stories by Stepan Zharychev on Medium]]></description>
        <link>https://medium.com/@decadentsz?source=rss-c20d68a3d16e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*LDPPmKz01zNUsvx2bmOdOw.jpeg</url>
            <title>Stories by Stepan Zharychev on Medium</title>
            <link>https://medium.com/@decadentsz?source=rss-c20d68a3d16e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:37:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@decadentsz/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[The Last of Us Part II: Metacritic bombing and magic behind reviews]]></title>
            <link>https://medium.com/@decadentsz/the-last-of-us-part-ii-metacritic-bombing-and-magic-behind-reviews-20f04c0d05aa?source=rss-c20d68a3d16e------2</link>
            <guid isPermaLink="false">https://medium.com/p/20f04c0d05aa</guid>
            <category><![CDATA[scandal]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[the-last-of-us]]></category>
            <category><![CDATA[tlou2]]></category>
            <dc:creator><![CDATA[Stepan Zharychev]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 15:01:02 GMT</pubDate>
            <atom:updated>2020-06-30T10:32:32.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQmxoxouSnUQitUci5F7wg.png" /></figure><p>I guess even people who’re pretty distanced from gaming industry heard about scandalous release of <strong>“The Last of Us Part II”</strong> — in the very beginning of the release day <a href="https://www.metacritic.com/game/playstation-4/the-last-of-us-part-ii">user ratings on Metacritic</a> were literally bombed away by <strong>0–1 rates </strong>and texts full of sorrow and hatred. So we’ve got a paradox situation <strong>94/100</strong> from professional journalists vs. <strong>3.4/10</strong> from common users.</p><p>Interesting, isn’t it? As a result the whole society of gamers was split onto <strong>2 parts</strong>: supporters of hatred towards the game (they believe that 3.4, or even lower, is objective rating for the game) and people who think that game was <em>review bombed</em> (means game was intentionally marked too low as a form of protest). It started to be highly referenced and discussed almost everywhere, so I decided to do small research and figure out if numbers from Metacritic can actually be trusted…</p><h4>How you can check something like that?</h4><p>Shortly speaking — if you have the entire base of reviews with ratings and other parameters you can analyse it as a whole. So I scrapped <em>500+ pages</em> of reviews from Metacritic for further analysis (technical aspect will be explained in the very end of the article).</p><h4>About numbers</h4><p>Further analysis will be based only on <strong>user reviews with text</strong>, rating-only are not included. We will be dealing with a state of review base scrapped at <em>~4pm CEST on 28th of June: </em><strong>51885 ratings</strong> (and connected user profiles) to be specific. So let’s see what the numbers are…</p><h4>Is review bombing real?</h4><p>That’s the question which leaded me to this entire article and idea. So how you can understand that something was review bombed except seeing absurdly low rating of the game? By ratings distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*bXJsqb7LX7MmpLCc7kg9pg.png" /><figcaption>Ratings Distribution — Release Day</figcaption></figure><p>Will you actually be surprised if I tell you that <strong>40.8% </strong>from all reviewers put <strong>0 </strong>as a score for the game on release day? I guess no, but it doesn’t proof the fact of review bombing, may be the game is just really bad. Let’s see another chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*JJV4K1Q3f7dRZlVG4_aLEg.png" /><figcaption>Edge Ratings — Release Day</figcaption></figure><p>What gives little bit clearer picture is what I call <strong>edge ratings</strong>. So you can see how many people rated game: <em>very low</em>(0–1), <em>very high</em>(9–10) or <em>in between</em>(2–8). Dominance of edge low/high values is a sign of not very objective rating generally, and yeah, you can see that <strong>55.7% </strong>of the entire pool rated it as very low. But 10 days later…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*fxDevAmoiG7UJLUizt2uIQ.png" /><figcaption>Edge Ratings — 29/06/2020</figcaption></figure><p>Part of <em>very low ratings</em> significantly decreased, to be specific on <strong>11.9% </strong>which is really a lot. There’s still a dominance of <strong>very low rates, </strong>but it decreases in advantage of medium/high rates, which is at least somehow closer to professional critics. Those 2 charts show pretty good that game was intentionally bombed by very low reviews, because something what is really bad can’t change tendency that much. By the way, about tendency:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-ut30bJ5ka_wDlRO_rxrA.png" /><figcaption>Average game rating — per day</figcaption></figure><p>Here you can see, how average game rating was changing every day, I think that’s the best representation of the entire thing. It looks like a ladder (going from 3 to 5), so every day it <strong>increases</strong>, while for something objectively bad it would be more or less flat. So here I want to stop any discussions about review bombing existence and truthfulness: it <strong>exists</strong> and it’s <strong>not objective</strong> to the game at all.</p><h4>Speaking about bad games</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OaaxzaHocPGU63oRoRYGig.jpeg" /></figure><p>But to be more representative I scrapped another game, which was a real disappointment and objectively badly rated by both critics and users. I’m talking about <strong>Mass Effect: Andromeda</strong>. Any fan of ME Trilogy was extremely disappointed by both technical side of the game (it’s face animations are still popular memes) and the plot, which wasn’t even close to previous parts. I scrapped rates for PC, and picture for this undoubtedly bad game is dramatically different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*Z8Ay5tsagI2ap-wUruohtg.png" /><figcaption>Edge Ratings — Release Day</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*UACCfiJ-wkK-UqTLnPYwwA.png" /><figcaption>Edge Ratings — 10 days later</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*nrCrK0VXVs597Zcsq-3h7A.png" /><figcaption>Edge Ratings — the entire time</figcaption></figure><p>You can see that for this game distribution is very different: from the very beginning and till nowadays <strong>the majority </strong>of rates sits in <strong>medium category, </strong>and definitely proportion of very low ratings decreased 10 days after release, but only on <strong>5.3% </strong>fairly distributing between 2 other categories. But even 3 years later you can see that almost 50% of reviews are not the edge ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oT1RnJLjIXxUoJFsLlMf7w.png" /><figcaption>Average game rating — 20 days after release</figcaption></figure><p>On the chart above you again can see absolutely different picture: game rating doesn’t constantly go in 1 direction increasing or decreasing, it balances going up and down close to average <strong>5.24 </strong>rating.</p><p>I hope this comparison will give you an impression of how ratings are normally distributed, even for very bad games.</p><h4>About users and their opinion</h4><p>So I hope that I convinced you about reality of review bombing and it’s total uselessness for proper understanding of even bad games. But what to do? I think that Metacritic should be stricter about it’s rules for writing reviews, if users had at least some timeout they would be a way more objective with their opinions, because in the end that’s what divides common gamers and professional journalists — ability to make conclusions calmly and logically.</p><p>So in short people with 0 history and newly registered account shouldn’t be allowed to rate something straightaway, and statistics of review bombed TLOU2 proofs it in the best way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*1od15-r5u_SXtqVAxfTLfw.png" /><figcaption>Old/New Voters</figcaption></figure><p>Since there’s no public registration date on Metacritic — I analysed users by number of ratings/reviews. And numbers are really shocking: only <strong>10.1% </strong>of users had an old account, which rated something before the release of TLOU2, which basically means, that majority of people registered their account just to write bad things about 1 specific game. And as a tradition, for Andromeda this chart looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*a0OLa2iiUI13DuWG0M8BVQ.png" /><figcaption>Old/New Voters — ME: Andromeda</figcaption></figure><p>I checked by ME: Andromeda release day and <strong>30%</strong> of all reviewers had account before. Combine it with more adequate ratings above and you will get the full picture.</p><h4>Instead of conclusion</h4><p>I hope that this article gives the right impression about user ratings as source of truth — it can’t be treated like the last one. I’m not saying though that you can’t trust it completely, you should just make the analysis carefully. I’m quite sure that game rating will get to normal sooner or later (at least dynamic of 10 days after the release shows it).</p><h4>Bonus</h4><p>According to <a href="https://web.archive.org/web/20200621180446/https://psnprofiles.com/trophies/10960-the-last-of-us-part-ii">PSN Network</a> on 21st of June only <strong>5%</strong> of gamers fully finished the game. It’s up to you what to do with this info, but it’s impossible to rate anything when you didn’t even complete it fully. The same goes to no proofs of even owning the game, so lots of people who rated it didn’t play it at all or didn’t finish it, which again correlates with more precise results above.</p><h4>Technical part</h4><p>As promise I will place links to <strong>scrapper</strong> and <strong>web view</strong> which were used for the data obtaining and representation:</p><ul><li><a href="https://github.com/StepanZharychev/metacritic-rate-scrapper">StepanZharychev/metacritic-rate-scrapper</a></li><li><a href="https://github.com/StepanZharychev/metacritic-rate-view">StepanZharychev/metacritic-rate-view</a></li></ul><p>If you have any questions — feel free to contact me. Thanks for the reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20f04c0d05aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snatch: without a diamond, but with virtual dogs and fake airlines]]></title>
            <link>https://medium.com/@decadentsz/snatch-without-a-diamond-but-with-virtual-dogs-and-fake-airlines-7284d2a8e1fb?source=rss-c20d68a3d16e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7284d2a8e1fb</guid>
            <category><![CDATA[fraud-detection]]></category>
            <category><![CDATA[digitalization]]></category>
            <category><![CDATA[fraud]]></category>
            <category><![CDATA[animals]]></category>
            <category><![CDATA[dogs]]></category>
            <dc:creator><![CDATA[Stepan Zharychev]]></dc:creator>
            <pubDate>Fri, 22 May 2020 13:39:59 GMT</pubDate>
            <atom:updated>2020-07-18T16:56:12.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*wl3-yaxycyvqYM2VOV8jXA.png" /></figure><p>If you try to buy a dog in Czech Republic you will find yourself in a very interesting situation: most of the posts on specialised websites lead to sold out animals, but there’re many with strangely low prices and people with even stranger explanations for such prices. It’s not a secret that in 99% of the cases people behind such publications are <em>fraudsters</em>, but scheme which they use is very interesting by itself. So have a good read and stay safe!</p><h4>So why the fraud is even possible?</h4><blockquote>The Czech Republic is definitely a dog nation. <strong>(expats.cz)</strong></blockquote><p>And that’s true, if you go to almost any park in Prague you will find yourself surrounded by those quadruped mammals. As a result it makes finding the rare breed almost impossible (joke or no, but puppies of pug or corgi can be sold out less than in an hour after the advertisement is published). And once you knock into 9 close doors and start to be little bit desperate 10th one will open with inevitable proposal: <em>“Yes, we have exactly your breed and ready to sell it”</em>. And that’s where the fraud magic begins, let’s start from the following simple scheme:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*M-87pZjGovYrz4EiU0gD3Q.png" /><figcaption>Generic fraud scheme</figcaption></figure><h4><strong>Step #2: Whetting your appetite</strong></h4><p>Here fraudsters know that you’re interested in buying a dog and will start to manipulate your attention by sending different pictures with “their” dog, telling you about all advantages of having it (including great package of the documents) and etc. But they won’t be so kind with you all the time at some point they will try to show some strictness making you worry about potentially missed chance or simply making you feel not so comfortable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*uFzPXiocdAFRixapCZ8ZfQ.png" /><figcaption>For example in those emails fraudster tries to look like as a selective seller</figcaption></figure><p>So you won’t be suspicious that everything goes too easy and most probably ask additional questions, while you actually should. Most obvious one is a request an ability to see puppies in person, but, of course, seller is already out of Czech Republic (but posts on Czech websites), and guess why? Due to <strong>COVID-19</strong>! (remember this excuse, we will need it later):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*CifbJ634Edqe7WdzeBJn8A.jpeg" /><figcaption>Example of messages which you can receive. Those ones are from corgi “seller” in WhatsApp.</figcaption></figure><p>The key point here is to avoid any personal contact because such people most of the time have no real dogs. Situation with coronavirus allows them to use closed borders to their advantage — you simply won’t be able to visit them personally. But you still can ask for the following things:</p><ol><li>Video call with dog owner to see animals for real;</li><li>Demonstration of the documents;</li></ol><p>Second point is especially actual because animal can’t be transported without papers so by the time of selling it they should have it. Still the general advice is <strong>not to buy any animals remotely if you don’t know the seller</strong>, just wait for your chance to see breeder in person. But let’s imagine that you <br>swallowed the bait…</p><h4>Step #3: Ask for a small amount money</h4><p>Sometimes literally absurdly small, dogs which cost <strong>15000 — 20000 CZK</strong> can be sold for <strong>4000 CZK or lower</strong>. Explanations for such generosity may wary, but the general theme is <strong>“We just can’t keep those dogs anymore and need distribute them to good people”</strong>: <em>(all of the emails below are provided in Czech with translation, obviously I have full versions, so I will show only interesting fragments)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uerFRb3eEFtuLGQdMnZ6sw.png" /><figcaption>Cruel and evil landlord makes them to get rid of “little angels” — I’m almost crying (No)</figcaption></figure><p>They can even pretend to be <strong>disabled people</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*ScuuY0SJmC5ZmE6bUcLG1w.png" /><figcaption>This person actually somehow sells 2 different breeds sending identical emails when you request more info, the only thing which changes is attached photos and dog description</figcaption></figure><p>Smarter fraudsters may ask you for sort of deposit which covers transportation costs with full payment on delivery let’s say. What unites all of those cases <strong>low initial amount of money, </strong>but there’s something else — they will refuse to get money themselves. And here begins one of things which inspired me to write this article: they will use <strong>fake messaging from airlines and airports</strong>.</p><h4>How to securely take money out of you?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*0uLnqrQHx86MTCBqy8Js8A.png" /><figcaption>How <strong>guarantor</strong> scheme should work</figcaption></figure><p>Fraudsters try to present their scheme as the identical one with one exception though: “<strong>guarantor” is an airline</strong>. So “seller” gives your details to the airline and registers a pet, next airline contacts you and asks for the money transfer…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*7rTMjsKGn6CCN0MgqYz0pg.png" /><figcaption>As you can see “airline” asks for transfer using third-party system, not direct payment</figcaption></figure><p>Generally email has a very strange styling: plain text almost with no CSS and law quality images. That’s not what you expect from major airlines. Now take a look at fragments which have <strong>red </strong>border. Firstly, “airline” asks you for the transfer using separate service and to the individual. Remember: <strong>it’s not possible</strong>, all services should be paid to the airline directly and if you use service of <strong>guarantor </strong>you should trust person/company which is used. Secondly, and it’s more interesting, “airline” uses very suspicious email. Why do I think so? Let’s begin with email structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*aW7mLa0Q46EQUEP70FcVqw.png" /></figure><p><strong>Local-part</strong> of the email can be whatever you want US Government, Pentagon and etc. What is really important — <strong>domain. </strong>It should have owner and you can’t sign your email with someone else’s domain (in short your SMTP server should be enlisted in domain record to do so, otherwise email won’t pass the validation of post client). Here <em>Royal Air Maroc</em> uses <strong>aircraftmail.com </strong>domain while their official website is hosted on <strong>royalairmaroc.com. </strong>Okay, may be they use some third-party provider for sending of the email? And again <strong>no</strong>, it can be easily verified by checking contacts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*zL8hFu7m0kcRvz8X4R-xTw.png" /><figcaption>Contacts on the website of the airline use the same domain as the official website</figcaption></figure><p>In combination it gives us very simple fact — email is <strong>a fake</strong> and <strong>the seller </strong>is the same person as <strong>guarantor</strong>. So there’s no security for you. But let’s go further — you didn’t pay attention and made the payment…</p><blockquote>Here I want to stop for a second and tell two things:<br>1. Always analyse emails using the suggested manner — verifying domains to be sure that they’re not fake ones;<br>2. Never send money using third-party services (like <strong>MoneyGram</strong>) to person which you don’t know because they’re not responsible for anything and you won’t be able to return the money back (they won’t even block the fraudster from receiving money again);</blockquote><h4>Step #4: Something goes wrong and you need to send more money… way more</h4><p>So after you’ve made a payment to guarantor/”airline” and there’s an approval about the beginning of delivery (from the same fake airline). But guess what? Right, your virtual dog is going to be transported to the UK! And of course in the airport they’re going to ask you for more money…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*KapbrGCcMHwiTu5OIBSs9A.png" /><figcaption>Again very poor design, pixelated picture and etc.</figcaption></figure><p>Focus your attention on red squares again:<strong> the same strange email address</strong> (which domain doesn’t match with official website’s one), <strong>attempt to ask for 3 times more money than for the actual transit </strong>and <strong>you need to do it within 1 hour </strong><em>(it is another psychological manipulation which is used by fraudsters very often — they give you limited time for decision, “Pay or get lost” in other words)</em>.</p><p>And obviously you need to pay to the “<strong>airline”</strong> (not to the “airport”) using the same <strong>MoneyGram </strong>to exactly the same person as before. So if victim pays again obviously the <strong>“airport”</strong> or the <strong>“airline”</strong> will have more problems like: <strong>document inconsistency</strong>, <strong>missing vaccinations</strong> and etc. So you’ll pay them over and over again.</p><p>Here you might want to return back to the “seller” and ask why those additional costs weren’t sounded before and etc. they will utilise <strong>COVID-19</strong> one more time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*ed_YctvCAhIUg1Jw_uc2fg.png" /><figcaption>They will also try to make you the guilty side here</figcaption></figure><p>So it’s very comfortable for them: <strong>closed borders</strong>, <strong>non-traceable flights</strong>, as a result of last —<strong> no official payments</strong>. And if finally you decide to stop and not to pay them anything else…</p><h4>Step #5: Get at least something</h4><p>So you finally started to be suspicious and decided not pay anything else. Here fraudsters will leave the innovative part of the scheme and start to use <strong>old good technics, </strong>like attempts to make you feel guilty (as above) or showing that they’re ready to help (you just need to pay at least something):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*fdLkMl9L45i-ELFQhzWMzA.png" /><figcaption>They even involve your pity into the process</figcaption></figure><p>The general theme is always the same: <strong>“Pay us at least something”</strong>. The funny part in this exact case is that “seller” actually pretended to have <strong>no knowledge</strong> about the guarantor, but somehow now he/she is ready to pay money.</p><p><strong>Step #6: Time to disappear</strong></p><p>Once fraudsters get everything what they want or they will understand that you caught them they will disappear leaving you without money and dog.</p><h3><strong>Conclusion</strong></h3><p>All names, companies and services in this history <strong>are real</strong>. Even nowadays there’re still people who are <strong>ready to utilise animals</strong> (even fake ones, it doesn’t matter), <strong>pretend to be disabled</strong> and do anything just to take money out of your pocket. They adapt to situation in the world very quickly and use it to their advance as well as modern technologies. I hope that this history will save your time and money, and let’s remember general rules again:</p><ol><li>If you want to buy an animal do it <strong>personally </strong>or order it only from <strong>verified </strong>breeder;</li><li><strong>Documents — first, money — last</strong>. Make people to prove that they really own what they sell;</li><li><strong>No transfers to unknown people and usage of third-party services</strong>. It’s very naive to make a money transfer to a person whom you don’t know, but it’s foolish to use services of companies which are not responsible for your money and keeping you safe generally;</li><li><strong>Verify data which you receive. </strong>Starting from <strong>emails</strong> (we discussed how) and ending with <strong>names</strong> verify everything, simple googling for person’s name can reveal if he’s real or not;</li></ol><p>Hope it was interesting and <strong>thanks</strong> for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7284d2a8e1fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TN3270 on MacOS Catalina: Connect to IBM Mainframe easily]]></title>
            <link>https://medium.com/@decadentsz/tn3270-on-macos-catalina-connect-to-ibm-mainframe-easily-58a97b4bc37b?source=rss-c20d68a3d16e------2</link>
            <guid isPermaLink="false">https://medium.com/p/58a97b4bc37b</guid>
            <category><![CDATA[tn3270]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[mainframe]]></category>
            <category><![CDATA[catalina]]></category>
            <dc:creator><![CDATA[Stepan Zharychev]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 10:23:20 GMT</pubDate>
            <atom:updated>2020-04-13T10:23:20.887Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article I will explain how to set up connection to IBM Mainframe from MacOS Catalina, but let’s start from small piece of history.</p><h4>Root of the problem</h4><p>With release of Catalina many things happened, including tons of bugs on its release, but one of the most groundbreaking was disabling support of <strong>32-bit</strong> applications, which for most of the Mac-based <em>mainframers</em> (here and after means users of the IBM Mainframe) meant one sad thing: they won’t be able to use <a href="http://www.brown.edu/cis/tn3270/">TN3270 from Brown University</a> anymore which was a <strong>free</strong> and <strong>recommended</strong> way to interact with mainframe. Of course there’re alternatives, like <strong>Mocha TN3270</strong> or <strong>ZOC, </strong>but they’re not free, so what should we do? Install <strong>c3270 </strong>on your Mac, of course!</p><h4>Installation</h4><p>Open <a href="https://mtm2019.mybluemix.net/references/mac_c3270_install_script.html">page with installation script</a> provided by IBM and copy it.</p><p>Open your <strong>terminal</strong> and type the following commands:</p><pre>cd ~/Downloads</pre><pre>mkdir temp</pre><pre>cd temp</pre><p>It will create temporary folder for us, now let’s create a text file where we will place our script:</p><pre>touch script</pre><pre>open script</pre><p>In opened text editor <strong>paste </strong>and <strong>save </strong>text which we’ve copied earlier. Now let’s run this script, as you can see it’s <a href="https://en.wikipedia.org/wiki/Z_shell"><strong>Z Shell</strong></a><strong> </strong>script, so we should run it accordingly:</p><pre>sudo zsh script</pre><p>After that you will see sequence of commands and, probably, the installation of <a href="https://developer.apple.com/xcode/features/">XCode Command Line Tools</a>, if don’t have it installed yet. To check that your installation has finished correctly type:</p><pre>which c3270<br>&gt;&gt;&gt; /usr/local/bin/c3270 </pre><p>If it doesn’t return you anything try to restart the terminal. After that you will be able to use <strong>c3270 </strong>so let’s do our test connection. Type the following (no http/https and ports are required, just use the <strong>hostname</strong> or <strong>ip address</strong>):</p><pre>c3270 &lt;hostname/ip address&gt;</pre><p>After that you should see the following picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*kHfyUc1fXtIoSEXKP_Qhig.png" /></figure><p>As they ask type and press enter:</p><pre>logon &lt;your userid&gt;</pre><p>Next screen will ask for your password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*SRY2lUYASjTzr4539yO3Jg.png" /></figure><p>Type it in and that’s it, you’re ready to go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*xAuaKQkb5iDOR5Yi3YTRvQ.png" /></figure><p>Now you are able to use <strong>TN3270 </strong>from your Mac, so good luck with mainframe and have fun!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58a97b4bc37b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Warcraft 3 Reforged: Chromium, performance, sadness]]></title>
            <link>https://medium.com/@decadentsz/warcraft-3-reforged-chromium-performance-sadness-bb7cb67683bf?source=rss-c20d68a3d16e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb7cb67683bf</guid>
            <category><![CDATA[chromium]]></category>
            <category><![CDATA[warcraft]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Stepan Zharychev]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 14:26:17 GMT</pubDate>
            <atom:updated>2020-02-18T14:39:27.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*PAvWmOnFC44I5iV5jDDnnw.png" /></figure><p>For people who are not on this hype train connected with recent release of Warcraft 3: Reforged and Blizzard generally: <strong>W3 </strong>(I will be naming it like that from this place) is a famous RTS game from 2002, recently it’s developer announced and released remaster which raised a wave of uncontrollable hatred towards this product (on specialised game IMBD-like website <a href="https://www.metacritic.com/game/pc/warcraft-iii-reforged">it has</a> the worst score in the entire gaming history). Argumentation for such attitude varies: some people regret that even original game was eventually broken, some complain about graphics, another part is upset about performance and some of gamers are mad because <em>“game runs web browser behind the scenes”</em>. Last argument is exactly the point of our attention.</p><p>You can easily find posts like <a href="https://www.reddit.com/r/warcraft3/comments/ewx2vu/colin_cornaby_on_twitter/">this</a> all other the Reddit or Twitter, where people are constantly complaining about web nature of W3 Main Menu. Let’s try to figure out why this kind of discussion is absolutely incorrect and where the real problem sits.</p><h3>Basics</h3><p>In essential the technology which we will be talking about is <em>Electron </em>— framework which allows you to create <strong>desktop </strong>applications using web technological stack (HTML/CSS/JS), on lower level it runs on <strong>Chromium — </strong>open-source web browser (if you want to understand difference between Chrome and Chromium better read <a href="https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/">this article</a>). So technically, yes, menu in W3: Reforged runs in web browser, but it doesn’t mean that it should work in unacceptable way.</p><h4>Proof #1</h4><p>Electron has a huge base of applications which are written using it. (see the full list <a href="https://www.electronjs.org/apps">here</a>) I believe the most understandable examples are <strong>Discord</strong>, <strong>Slack </strong>(messenger which is used by many organisations), <strong>Microsoft Teams, VSCode </strong>(open-source IDE by Microsoft). Each of those apps implements unordinary functionality and has a huge base of users, and there’re no dramatic problems with performance. More obvious thing is if this technology would be so raw nobody would use it to construct complex apps.</p><h4>Proof #2</h4><p>Specially for this article I decided to do quick exercise: write part of the W3 main menu using the same technological stack, replicating animations and other things. So far you can try the <a href="https://stepanzharychev.github.io/W3-Reforged-Menu/">demo</a> (set your resolution to something close to 1920p as I didn’t really optimise it for small screens) try to click through and visit the <strong>Campaign</strong>. Also feel free to visit <a href="https://github.com/StepanZharychev/W3-Reforged-Menu">repository</a> and check the source code. As a result on the demo website you should see something like that:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fflatinnocentbaleenwhale&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fflatinnocentbaleenwhale&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FFlatInnocentBaleenwhale-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1524" height="742" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d83c571ef67e33e5f1f3104ccc7dd79/href">https://medium.com/media/4d83c571ef67e33e5f1f3104ccc7dd79/href</a></iframe><p>Obviously in your browser it will run smoother. So the main goal here was to see if implementation of such kind of menu and connected interfaces is a problem by itself in the browser: <strong>no, it’s not. </strong>Of course my implementation is not perfect replica, because it’s missing the chat and some minor interface elements (by I will explain how it could’ve been done when we dissect the app little bit later). What we can see here animations are not interrupted and even in browser tab application asks for ridiculously small amount of resources:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fmerryspiritedjuliabutterfly&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fmerryspiritedjuliabutterfly&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FMerrySpiritedJuliabutterfly-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1524" height="906" frameborder="0" scrolling="no"><a href="https://medium.com/media/4328c56b198556c94d532cce68e69211/href">https://medium.com/media/4328c56b198556c94d532cce68e69211/href</a></iframe><p>You can see that it basically takes around <strong>12–13% of CPU</strong> at the worst (when animation is played) and we have animated background behind played at the same time. As for me it’s the great proof that web-based menus are very efficient and you can easily utilise such animations even on not very performant machines.</p><h4>Next step</h4><p>Now let’s dissect existing implementation from structural and programming point of view and try to figure out why application delivered by Blizzard can have performance issues.</p><h3>Structure</h3><p>To understand problems of the application better let’s start from fairly simple thing: structure of the UI. By analysis of the behaviour you can pretty easy split it on sort of <em>layers </em>from 0 to 4, which shows how they appear on top of each other:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*xJC22empupYnk_yBVXVBmA.png" /><figcaption>Schematic representation of Layers</figcaption></figure><p>Important thing for us here is <strong>Layer #3 </strong>is always active, because chat receive messages in parallel with all of the user’s actions in the application. Please, remember it, we will need it later. Main problems which users report (except enormous consuming CPU and RAM resources) are connected with <strong>Layer #2</strong> and <strong>Layer #4</strong>: animations there can be buggy at some point (so called “jumping window”).</p><p>So what about <strong>Layer#0</strong> and <strong>Layer#1</strong>? Why don’t we normally see problems with their animation and may be the problem sits exactly there?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Ftediousglumclam&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Ftediousglumclam&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FTediousGlumClam-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="302" height="270" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5e54a86266e530822f60e818210ba62/href">https://medium.com/media/d5e54a86266e530822f60e818210ba62/href</a></iframe><p>Let’s align ourselves with 2 facts:</p><ul><li><strong>Layer#1</strong> animation has fixed time of playing as well as <strong>Layer#0 </strong>(it’s just looped) and both of them are not interactive. Composition of those things makes me to think that we’re dealing with <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video"><strong>&lt;video&gt;</strong></a><strong> </strong>elements, which are played on-demand (in my example above I used exactly this technic);</li><li>We’re dealing with <em>Electron application</em> which stores resources and assets locally, which means if developer wants to deliver some video for background/animation it can simply be included into the app itself. So no downloading time (as for videos on common websites) exists here — we just pull file directly from local filesystem;</li></ul><p>So I would guess that we’re dealing with <strong>&lt;video&gt; </strong>elements which’re very well optimised in Chromium and don’t interrupt your browser during playing process. So generally they can’t be the reason of heavy lags and high loading of CPU.</p><h4>So, who is guilty?</h4><p><strong>Layer#2 </strong>and <strong>Layer#4 </strong>animation’s nature (I suspect it’s done in old-fashioned JS way, which will be explained later) which in combination with updates of chat (<strong>Layer#3</strong>) and some other hidden resources causes freezing.</p><h3>Something about animations</h3><p>In essence what’s the animation? Simply saying: change of some element’s parameter (like position, size, color, etc.) in given time, normally you would split change size on sort of steps and go through them with certain frequency. Smaller steps are - smoother animation is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*DltdWx976aQVpd86VjFs7g.png" /></figure><p>In the example above we change <strong>position</strong> of element every 1s, so we have animation <strong>frequency </strong>equal to <em>1 step per 1 second</em>. Obviously in the real world nobody does something like that, because animation won’t be smooth — element will just jump through the screen. (you can see <a href="https://codepen.io/stepanzharychev/pen/mdJEmpE">how it happens here</a>) Proper approach is to do much more smaller steps. For example doing <em>100 steps per 1s, </em>so every 0,01s, will give you much smoother animation. So in the example above you will have not 4 points to visit, but 400. (you can see <a href="https://codepen.io/stepanzharychev/pen/eYNzWqo">proper example here</a>)</p><p>Obviously here I just scratched the surface of this topic, because animation is not necessary <strong>linear</strong> like I tried to explain, it can use any mathematical function to distribute your values, so animation for example will start slow and end quick. For example CSS (used for styling of web pages) animations suggest you <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function">such options</a>.</p><p>So animations of the menus in W3 is nothing else rather than sprite movement through the set of points in given time. Easy enough I guess. What can go wrong?</p><h4>JavaScript is single-threaded</h4><p>What you need to understand here is the environment of the <em>Electron application </em>can’t do 2 operations at the same time. <em>(of course using certain services you can do parallel operations, but in window-related part of the app you can’t)</em> So if you start opening of the menu and at the same time try to verify list of downloaded maps for the user, they won’t happen at the same time: first operation will be interrupted by second one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*L865H6waT7dsdYZqOkQZFg.png" /></figure><p>For our case it means animation will go, parameters will be assigned, but the fact of assignment will be ignored. So let’s say you do our 300 steps, but from 100 to 175 step something heavy is going on as well, end user will see how his element stuck for a moment and after jumps to the next position. (Example can be viewed <a href="https://codepen.io/stepanzharychev/pen/vYOKZXZ">here</a>)</p><h4>Is it unavoidable?</h4><p>That’s a nature of programming language, but of course you can avoid bad user experience (UX). For example you can track that animation is in progress and freeze other operations during this process. For example the Chat (<strong>Layer#3</strong>) can be frozen to any updates during the animation, you will just receive messages after it’s unlocked. But generally you should be very careful of how you utilise resources of the app, because if you hang the app in long calculation the entire page will be unresponsive.</p><h4>Why when do we see such trivial problems?</h4><p>I can blindly guess that W3 has poor design of the app workflow, even if your app consists of simple elements and flow, when you merge them you can do lots of mistakes. I have very strong feeling that Blizzard assembled the entire thing in a huge rush (based on performance of the main game which can drop to 16–18 FPS it seems they didn’t really QA it), and obviously when you’re in a hurry you have no time to think about project’s architecture. (You can find more examples of poorly designed things in menu itself: chat overlaps menu making it not clickable in this area, table of custom games is constructed from group of buttons and cells, where cells don’t match width of header and etc.)</p><h3>Instead of conclusion</h3><p>I hope that my examples and arguments explained you:</p><ol><li><strong>Chromium</strong> as browser and <strong>Electron</strong> as framework have nothing to do with poor performance of W3 menus;</li><li>Any technology and methodology as good as you know and obey it’s cons and pros;</li></ol><p>In the case of Blizzard I hope that they will learn something from this sad experience and either give people more time or hire more professional workers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb7cb67683bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>