<?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 Paul Chubatyy on Medium]]></title>
        <description><![CDATA[Stories by Paul Chubatyy on Medium]]></description>
        <link>https://medium.com/@xobb?source=rss-94ee8a468264------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AY5Ih45kX-4qqoNA.jpeg</url>
            <title>Stories by Paul Chubatyy on Medium</title>
            <link>https://medium.com/@xobb?source=rss-94ee8a468264------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:21:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@xobb/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[Help you DevOps, use Make]]></title>
            <link>https://medium.com/@xobb/help-you-devops-use-make-aebedd33c40f?source=rss-94ee8a468264------2</link>
            <guid isPermaLink="false">https://medium.com/p/aebedd33c40f</guid>
            <category><![CDATA[make]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Paul Chubatyy]]></dc:creator>
            <pubDate>Mon, 21 Aug 2017 21:37:54 GMT</pubDate>
            <atom:updated>2017-08-21T21:48:48.548Z</atom:updated>
            <content:encoded><![CDATA[<p>So as a DevOps I’m used to developing multiple small services following UNIX philosophy: <em>do one thing and do it good</em>. These services are written in different programming languages that solve the particular problem well. But it’s a nightmare to support all the possible types of building/compiling your each app as programming languages have different tools for that. Once you have to run pip install -r requirements.yml &amp;&amp; ./manage.py test or composer install --no-dev --prefer-dist you start memorizing those flags and commands. Though most of the time you will have to dig into the code and figure them out once again.</p><h3>Auto ma(t/k)e</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*2NImh7gkw_AaWUN5ujLezQ.png" /></figure><p>Instead of memorizing these commands let’s automate it with <a href="https://www.gnu.org/software/make/manual/make.html#Introduction">Make</a>. It is an automation tool that is installed on most linux/unix based systems. Most of the time even your shiny mac will have the tool installed.</p><p>To start using Make you will have to add the Makefile to your source code and add the targets there. Target is the particular intention that you would like to automate. Here’s an example of Makefile for python:</p><pre>install-deps:<br>    pip install -r requirements.yml</pre><pre>test: install-deps<br>    python manage.py test</pre><p>This example describes two make targets:</p><ul><li>install-deps obviously to install the dependencies</li><li>testobviously to run the tests. Also this target will require execution of install-deps before it actually starts running the test</li></ul><p>Very neat automation we come with for now. So the next time you will be working on the app you will have to run make install-deps or make test in order to run the tests. You will not need to remember all those cryptic flags any more.</p><p>Although make can do so much more than the example above (you may have got it from the manual), adding even this simple script will greatly help with automation. Once you will be deploying your application or creating the Continuous Integration pipelines for it your DevOps will spend less time to figure out how things should work. Also the newcomers to the project will get up and running much easier.</p><p>Also this will be exceptionally impressive when you provide Makefile with the solution of the test quiz if there’s any in your interview process. Most of the time interviewers will have to figure out from the README how to run or test your code and make will allow them to start really quickly, as it supports autocomplete of all the targets you specify in Makefile.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aebedd33c40f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Map LDAP Groups to Symfony Security Roles]]></title>
            <link>https://medium.com/@xobb/map-ldap-groups-to-symfony-3-security-roles-eb3ff09934a9?source=rss-94ee8a468264------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb3ff09934a9</guid>
            <category><![CDATA[symfony]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Paul Chubatyy]]></dc:creator>
            <pubDate>Sat, 17 Dec 2016 07:46:07 GMT</pubDate>
            <atom:updated>2016-12-17T07:50:05.386Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<p>So since 2.8 release Symfony project has added a <a href="http://symfony.com/doc/current/components/ldap.html">LDAP component</a> with the ability to handle <a href="http://symfony.com/doc/current/security/ldap.html">authentication against ldap server.</a> This is particularly useful for development of the internal services for your company that usually rely on some kind of LDAP authentication mechanism.</p><p>When the company grows the you end up having a lot of departments, groups and other <em>ou</em>s. What is <em>ou</em>? Well, it stands for Organization Unit I believe. Also it would be nice to reuse those <em>ou</em>s when mapping security roles for you application.</p><p>This code below would not be a solution for your problem, but will provide you a good basis and guidance how to implement things specifically for your task.</p><h4>Redefine LDAP User Provider</h4><p>Symfony does not support ldap group to security role mapping so we will have to override core class to add that functionality. Symfony developers did great job both creating the elegant overriding mechanism for any part of the framework and <a href="http://symfony.com/doc/current/bundles/override.html#services-configuration">documenting things in a simple way</a>. If you don’t feel like reading the docs please do the following:</p><p>Let’s create a Compiler Pass to use our class instead of the one distributed with Symfony. Put this in <em>src/AppBundle/DependencyInjection/Compiler/LdapCompilerPass.php:</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dfd6836d068caf64ff3b99e89492b8a/href">https://medium.com/media/6dfd6836d068caf64ff3b99e89492b8a/href</a></iframe><p>And add the compiler pass to your bundle definition in <em>src/AppBundle/AppBundle.php</em>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c90654030e989d35d5e8e109b5dc0351/href">https://medium.com/media/c90654030e989d35d5e8e109b5dc0351/href</a></iframe><p>When this is done we’re ready to do the actual business and map the groups to the roles.</p><h4>Mapping Groups to Roles</h4><p>Now let’s concentrate on the `LdapUserProvider` we’ve created previosly:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4fde9596a446fb8baeb66b4d1e28ae3/href">https://medium.com/media/f4fde9596a446fb8baeb66b4d1e28ae3/href</a></iframe><p>Now when you log in to your symfony application the user will have the roles according to the groups assigned on the ldap server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb3ff09934a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Малий бізнес VS стартап?]]></title>
            <link>https://medium.com/@xobb/%D0%BC%D0%B0%D0%BB%D0%B8%D0%B9-%D0%B1%D1%96%D0%B7%D0%BD%D0%B5%D1%81-vs-%D1%81%D1%82%D0%B0%D1%80%D1%82%D0%B0%D0%BF-524141462433?source=rss-94ee8a468264------2</link>
            <guid isPermaLink="false">https://medium.com/p/524141462433</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[enterpreneurship]]></category>
            <dc:creator><![CDATA[Paul Chubatyy]]></dc:creator>
            <pubDate>Tue, 22 Dec 2015 11:14:03 GMT</pubDate>
            <atom:updated>2015-12-22T11:14:03.592Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*F8fD6308FteaJhgdHaRNLA.jpeg" /><figcaption>Розказую як все було</figcaption></figure><p>Хоч підприємці сьогодні в Україні зацікавились рухом “стартапів”, взялись за пошук ідей та продуктів, які захоплять галактику і будуть в кожного в телефоні, ми чомусь опустили зовсім ідею малого бізнесу як дуже вдалої форми підприємницької діяльності. Часом обговорюючи ідеї для нової справи запитуємо себе: “<em>а як воно масштабується? і чи масштабується взагалі? як ми будемо рости? де взяти інвестицій для росту?</em>”. Такі питання є чи не в стандартній анкетці венчурного інвестора, вони доцільні і абсолютно логічні. Зі сторони інвестора. Ніхто не буде інвестувати в “Мама і Тато LLC”, що продають пряники на куті дітлахам, бо продажа випечених тьотьою Зіною пряників не мастабуються. Але ви підприємець, а не інвестор! У вас інші цілі, інші можливості і підходи. Ваша ідея може бути унікальною і вирішувати проблему на власній вулиці. Уявіть: тьотя Зіна не відкрила свій магазинчик по випічці ваших улюблених пряників, які ви купували в дитинстві по дорозі з школи. Тепер, перед новорічними святами, вам нікуди зайти і купити цих самих смачних пряників для своїх дітей. А якось, будучи вже пенсійного віку, сидячи на лавочці в сквері почуєте розповідь тої самої тьоті Зіни “ех, я не відкрила свій магазин пряників, бо бізнес-ангели не одобрили мою ідею”. Це ж дурня повна.</p><p>Тому не кожна ідея повинна виростити транс-національну корпорацію, зібрати мільйонні інвестиції, заробити мільярдни прибутків. Деякі ідеї мають залишитись малим бізнесом, який дбає про своїх клієнтів, знає як в них справи і зі всіх сил хоче надати найкращий сервіс, не зважаючи на корпоративну політику і настільну книгу оператора колл-центру.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*svq4iKPJqpGcBPXRi3-1WA.jpeg" /><figcaption>Багато бізнесів в цих хмарочосах, та не всі.</figcaption></figure><p>Почавши малий бізнес ви не отримаєте допомоги від інвесторів, але вона вам і не потрібна. Мабуть ви не заробите мільярдів, але зможете заробити мільйон — цілком можливо. У вас буде можливість самому визначати пріоритети в своїй роботі, мати можливість направити справу в те русло, яке вам цікаве, без пресингу того ж інвестора за спиною, який хоче зробити вихід (читай гроші) та вмити руки, а вже потім змінити світ вашими ідеями і вашими руками.</p><p>Часто розглядають інвестора неначе помічника і порадника по бізнесу. Безумовно, досвідчений інвестор не залишить студента-стартапера з горою кешу на одинці, він буде і порадою допомагати, і зв’язками, і знайде людей з ким говорити, тільки він не потрібно забувати, що інвестор перш за все бізнесмен, а не ідейний активіст. Власне такий підхід інвестора до справи допоможе вам не залізти в ті дебрі, звідки важко буде вилізти, допоможе знайти ту нішу, яка дійсно буде потребувати ваш продукт чи сервіс і буде з вдячністю за це платити.</p><p>Отримавши досвід ведення малого бізнесу ви глибше зрозумієте можливі проблеми, з якими зіштовхнеться в майбутньому ваш стартап, отримаєте можливість бутстрапитись не залазячи в кишеню своєї сім’ї, так як малий бізнес згенерує вам достатньо доходів для реінвестування.</p><p>Тому наступного разу, коли будете відкидати ідею, бо вона не масштабується і не має потенціалу росту, то подумайте чи вам потрібно саме стартап, мільярди і проблеми росту.</p><p>Дякую за Ваш час, це мій перший пост на тему підприємництва. Підписуйтесь, щоб не пропустити наступних.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=524141462433" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>