<?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 Artem Chubaryan on Medium]]></title>
        <description><![CDATA[Stories by Artem Chubaryan on Medium]]></description>
        <link>https://medium.com/@armaxis?source=rss-634dc5fa5f1e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RuAp75PBNviP1X1Vq-TZiQ.jpeg</url>
            <title>Stories by Artem Chubaryan on Medium</title>
            <link>https://medium.com/@armaxis?source=rss-634dc5fa5f1e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:37:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@armaxis/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[Фильтрация новостей в VK/Twitter/Facebook/Instagram]]></title>
            <link>https://medium.com/@armaxis/%D1%84%D0%B8%D0%BB%D1%8C%D1%82%D1%80%D0%B0%D1%86%D0%B8%D1%8F-%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B5%D0%B9-%D0%B2-vk-twitter-facebook-instagram-d3a5ad52f071?source=rss-634dc5fa5f1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3a5ad52f071</guid>
            <category><![CDATA[социальные-сети]]></category>
            <category><![CDATA[информационный-шум]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[вконтакте]]></category>
            <category><![CDATA[соцсети]]></category>
            <dc:creator><![CDATA[Artem Chubaryan]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 06:21:07 GMT</pubDate>
            <atom:updated>2017-12-15T07:11:41.447Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bwpDXsW1eB78G3hW2EQAdA.jpeg" /><figcaption>“В печку его” — Проф. Преображенский</figcaption></figure><h3>Предисловие</h3><p><a href="https://www.washingtonpost.com/news/the-switch/wp/2017/12/12/former-facebook-vp-says-social-media-is-destroying-society-with-dopamine-driven-feedback-loops/?utm_term=.94799f2d14a0">Соцсети — зло</a>, но уйти из них сложно. К счастью, есть методы фильтрации ненужного контента, и сейчас я о них расскажу.</p><h3>Вконтакте</h3><p>Самое простое — удалить ненужных людей из друзей. Если удалять нельзя, то можно отписаться от новостей. Для этого выберите возле записи соответствующее меню:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*iuTAWbBpqHkJbN6TP1QfJw.jpeg" /></figure><p>В появившемся меню у вас будет одна или две (если это репост) опции:</p><ol><li>Не показывать новости от человека, но остаться с ним друзьями. Он об этом не узнает.</li><li>Не показывать новости сообщества.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*FseAhNQ_CFkzFx9lld5mNg.jpeg" /></figure><p>Восстановить настройки можно на странице пользователя кликнув на меню под аватаркой. Фильтруйте всех ненужных, и будет вам счастье.</p><h3>Twitter</h3><p>Аналогичный механизм существует и в Твиттере, тут он называется “Игнорировать”. Человек не узнает, что вы его игнорируете.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*YgvF0iZ0Ks2t99UxDaRzAQ.jpeg" /><figcaption><a href="http://www.poorlydrawnlines.com/">http://www.poorlydrawnlines.com/</a></figcaption></figure><p>В списке подписок потом можно будет увидеть соответствующую иконку возле игнорируемых аккаунтов. Щелчок по иконке отключает игнор.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*wwCKyN4gda94GGlcb5GOOg.jpeg" /><figcaption>Не игнорируйте Уютненькое!</figcaption></figure><h3><strong>Facebook</strong></h3><p>Лидер в области шлака и рака хуже всего поддается укрощению. Помимо обычных записей он выдает комментарии малоизвестных вам людей к записям абсолютно посторонних лиц. Куча рекламы, приложений и разноцветные <a href="http://lurkmore.to/Attention_whore">фоны у записей</a> не придают ленте чистоты. Но, к счастью, и тут можно навести небольшой порядок.</p><p>Для начала удалите подписки от всех ненужных сообществ. Это группы, им все равно.</p><p>Затем с помощью выпадающего меню можно применить аналогичную Вконтаку и Твиттеру фильтрацию без ведома самих людей. Можно скрывать записи как от самого пользователя, так и от приложений\групп которые он репостит.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*vyBuXpc4p1-dhstz7xCy5w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*CdcWDxqStPjxnL4EUfTsrA.jpeg" /></figure><p>Но теперь у вас все равно остаются комментарии к записям, реклама и прочая ерунда. Тут на помощь приходит…</p><h3>Social Fixer</h3><p><a href="http://socialfixer.com/features.html">Многофункциональный плагин</a> доступен почти для всех браузеров и добавляет ряд неоценимых улучшений в интерфейс фейсбука. Одна загвоздка: вам придется сменить интерфейс на английский язык, другие языки пока что, к сожалению не поддерживаются. <a href="https://www.facebook.com/settings?tab=language">Идете вот сюда</a> и выбираете English (US). Затем <a href="http://socialfixer.com/download.html">устанавливайте плагин</a> и после установки он вас проведет по начальной настройке уже на самом фейсбуке.</p><p>Тут я рекомендую добавить следующие фильтры:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DezMrZgk2zQDzNO8AUTSHQ.jpeg" /><figcaption>Скрываем политоту, рекламу, “Вы знаете этого товарища?” и “Вася написал “Ха-ха” под постом Пети”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*CRKR5yvMzVKz6gTuquePpg.jpeg" /><figcaption>Скрываем “Похожие истории” и убираем фон у сообщений</figcaption></figure><p>Можете посмотреть еще другие настройки, их очень и очень много. Сохраняем, перезагружаем страницу — и, о чудо! Практически весь шлак исчез!</p><p>К сожалению Social Fixer недоступен для мобильных устройств. Но с мобильными я советую поступить проще — удалить приложение Facebook и оставить лишь Messenger. В случае необходимости — всегда есть мобильная версия сайта ;)</p><p>Отдельно стоит упомянуть, что в настройках самого фейсбука можно отключить разные уведомления, выставить настройки того, кто может вас отмечать в записях и т.д. А если вас достали уведомления “Витя идет на концерт очередной группы в клубе в 5км от вас” — то щелкните на меню возле этого уведомления и отключите подобные сообщения навсегда.</p><h3>Instagram</h3><p>А вот тут облом, игнорировать никого нельзя, только отписываться. Но вы можете убирать “Истории” из ленты. Точнее, задвигать их в конец списка… В общем делаете длинное нажатие на кружочек с историей от неугодного человека и в появившемся меню выбираете “Не показывать истории X”. И на том спасибо.</p><h3>Одноклассники</h3><p>Серьезно?</p><h3>Заключение</h3><p>В соцсетях полно рекламы; ботов; людей, врущих о качестве своей жизни; годноты и мемасиков. Надеюсь благодаря этой статье вам удастся сделать так, чтобы в вашей ленте последние две категории преобладали над тремя предыдущими.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3a5ad52f071" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Studio: Mastering Debugging Tools]]></title>
            <link>https://medium.com/@armaxis/android-studio-mastering-debugging-tools-a3e577032dac?source=rss-634dc5fa5f1e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3e577032dac</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Artem Chubaryan]]></dc:creator>
            <pubDate>Fri, 09 Jun 2017 22:40:40 GMT</pubDate>
            <atom:updated>2017-06-14T02:25:04.451Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2zTQgUJmyQ2umBNMcZzD4g.jpeg" /><figcaption>“Bug debugging a bug”. © Artem Chubaryan</figcaption></figure><h3>Introduction</h3><blockquote>From then on, when anything went wrong with a computer, we said it had bugs in it. (<a href="https://en.wikiquote.org/wiki/Grace_Hopper">RADM Grace Hopper</a>)</blockquote><p>Developers spend more time debugging existing code than writing new one (different estimates give 50–80% of total time), and <a href="http://www.stevemcconnell.com/ieeesoftware/bp14.htm">studies found</a> differences of more than 20 to 1 in the time required by different developers to debug the same problem. Experience plays important role here as well as knowledge of available debug tools. So, let’s focus on those tools.</p><p>This article might seem too obvious for experienced Android developers, but I would still recommend glancing through it. If you recently started using Android Studio — this definitely worth a read!</p><p>I will cover Android Studio 2.3.3 (latest stable release at the moment). Android Studio 3.0 is coming soon, and <a href="https://www.youtube.com/watch?v=Hx_rwS1NTiI">there are more cool features</a> there!</p><h3>Basics</h3><ul><li>Learn hotkeys for <strong><em>Step Over/Into/Out; Resume</em></strong><em>. </em>Learning hotkeys in general is good idea :)</li><li>Don’t be afraid to step into source code of libraries or into decompiled classes. Reading and understanding sources helps understand how things work — and how to fix problems you have.</li><li>Print more logs and analyze those. Be sure, that <a href="https://en.wikipedia.org/wiki/Heisenbug">Heisenbugs</a> are real. Usually, if adding a breakpoint fixes the bug — then it’s threading issue. So when debugging async code — use logs.</li><li>Don’t practice <a href="https://en.wikipedia.org/wiki/Shotgun_debugging">shotgun debugging</a>. Tell yourself: “If I don’t solve the problem using this approach within the next 30 minutes, I’ll take 10 minutes to brainstorm about different approaches and try the best one for the next hour.” (Steve McConnell)</li><li>If you see a NullPointerException simply adding if (foo != null) is not enough. Investigate why the the value turned null , is it really just a missing check or is there an edge case that causes the issue. Don’t fix the symptoms, fix the problem.</li><li>Usually, the bug is in <strong>your </strong>code, not in library you’re using. But still check out issues page on Github for that library — and save yourself few hours of debugging.</li></ul><p>Several more, Android-specific:</p><ul><li><strong><em>Attach debugger to Android Process</em></strong><em> </em>button doesn’t have a default hotkey. Assign one (I use Ctrl+Alt+Shift+Z);</li><li>Putting Debug.waitForDebugger() in code will make your app wait until debugger is attached (very useful for debugging something like Application.onCreate()) Check android.os.Debug class for more cool features;</li><li>To quickly print stack trace of the current thread you can use Thread.dumpStack()</li><li>Explore <strong>Developer Options </strong>on your device and try out its features. My favorites: <strong>Pointer Location</strong>, <strong>Show layout bounds</strong>, <strong>Strict Mode</strong> (flashes screen when do long operations on main thread) and <strong>Profile GPU Rendering</strong>.</li><li>Most of the third-party libraries have debug mode or logging that can be enabled, so check out documentation. Image libraries usually have handy overlays for debugging as well (<a href="http://square.github.io/picasso/">Picasso</a> has setIndicatorsEnabled(true) , <a href="http://frescolib.org/">Fresco</a> — setDrawDebugOverlay(true).</li><li>Read <a href="https://developer.android.com/studio/debug/index.html">official user guide on debugging</a> if you haven’t done so yet.</li></ul><h3>Breakpoints</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*JbapJIJpY0HaXgOqB1y28A.jpeg" /></figure><ul><li>To add breakpoint click the left gutter along the line of code or press Ctrl+F8 (Cmd+F8). To add ‘single-hit breakpoint’ hold Alt (or Option) and click gutter. Breakpoint will be removed after being hit once. Clicking on breakpoint with Alt (Option) key held again will Enable/Disable it.</li><li>Right-click on breakpoint to see more cool features. You can add conditions for breakpoints, toggle off suspending, add custom logging to console, disable until another breakpoint is hit and much more. Custom logging feature is a great alternative to adding debugLog.d() statements in code and rerunning it, so be sure to try it out.</li></ul><h3>Variables</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*Uh4-aaRYPYSfaNhYOmpURw.jpeg" /></figure><p>After you hit breakpoints you can use <strong>Variables </strong>and <strong>Watches </strong>to get more info about variables, fields etc. Here are some extra things you can do:</p><ul><li>Mark objects using F11 (<em>or right click -&gt;</em> <em>Mark object</em>) to easily track it down during debugging session or distinguish from another similar objects.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*fzZuP_KOORN37zEXywCDHQ.jpeg" /></figure><ul><li>Edit values in memory withF2 <em>(or right-click -&gt; Set value). </em>Nullify references, change strings on the fly, etc — it’s especially helpful to execute different branches if if or switch statements without rerunning the app.</li><li>Use<strong> </strong><a href="https://www.jetbrains.com/help/idea/2017.1/evaluating-expressions.html"><strong>Evaluate Expression</strong></a><strong> </strong>( Alt+F8 or Option+F8) dialog for convenience.</li><li>toString() is used to represent objects by default, but you can customize it. Right-click on variable -&gt; View As -&gt; Create… <strong>Java Data Type Renderers </strong>dialog will pop up, where you can set ‘Use following expression when rendering a node’ to configure your custom display string. Keep in mind that instead of doing this you can actually override the default toString() in your class (which is generally a good thing to do) if you own the class.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rkth_jUOE6b9YK6wKsYYnw.png" /></figure><h3>Android Monitor</h3><p>Android monitor has <a href="https://developer.android.com/studio/profile/android-monitor.html">many useful tools</a> you should familiarize yourself with, with main tools being logcat and monitors. Here are some gotchas useful for debugging:</p><ul><li>Logcat has a gear icon on the left called <strong>Configure Logcat header. </strong>There you can select format of messages, disabled some of the info.</li><li>On left there is a set of awesome tools: <br><strong>Screen capture </strong>and <strong>Screen Record </strong>are handy when debugging UI issues like pixels aligning and animation lags. <br><strong>System Info </strong>allows to obtain info about current view hierarchy, package info, memory, databases, etc. <br><strong>Terminate Application</strong> — for cases when Android is misbehaving. <br><strong>Layout Inspector </strong>grabs screenshot and view hierarchy dump along with all view properties and presents it nicely, so you can quickly locate view on screen. Surprisingly, many people are not aware that this tool was added few releases ago. Most useful view properties in my opinion are: id, width/height, location on screen, paddings. Makes debugging layouts many times easier.</li><li><strong>Monitors </strong>section deserves a separate article, but here primarily used tool are <strong>Initiate GC, Dump Java Heap, Start Allocation Tracking</strong> and <strong>Start Method Tracing. </strong>Having some leaks, lagging UI or weird instances of objects — that’s the tools for you</li></ul><h3>Libraries and plugins:</h3><p>Here are some more tools that proved to be useful (at least for me):</p><ul><li><a href="https://facebook.github.io/stetho/"><strong>Stetho</strong></a><strong> </strong>by Facebook. Debug bridge to monitor network requests, view databases, view hierarchy, etc.</li><li><a href="https://github.com/square/leakcanary"><strong>Leakcanary </strong></a>by Square. Memory leaks detection.</li><li><a href="https://github.com/JakeWharton/hugo"><strong>Hugo</strong></a><strong> </strong>by Jake Wharton. Annotation-triggered method call logging for your debug builds.</li><li><a href="https://github.com/android10/frodo"><strong>Frodo</strong></a><strong> </strong>by Fernando Cejas. Inspired by <strong>Hugo</strong>, mainly used for logging RxJava.</li><li><a href="https://github.com/pbreault/adb-idea"><strong>ADB Idea plugin</strong></a>.<strong> </strong>Helps to Kill, Start, Restart, Uninstall App and Clear App Data with one hotkey.</li><li><a href="https://plugins.jetbrains.com/plugin/7578-adbcommander-for-android"><strong>AdbCommander plugin</strong></a>. A lot of useful tools, pretty much a GUI for adb: managing apps, text input, macros, shell. Very useful if you work with Android TV (typing with remote is pain).</li><li><a href="https://developer.android.com/studio/command-line/adb.html"><strong>adb</strong></a>. Don’t forget about you best friend — <strong>adb</strong>, which constantly gets new feature and becomes faster. Spend some time exploring its possibilities.</li></ul><h3>Conclusion</h3><p>Debugging is hard but inevitable, know your tools and become 10 times more productive.</p><p>Corrections, suggestions and comments are welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3e577032dac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>