<?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 OlegZ on Medium]]></title>
        <description><![CDATA[Stories by OlegZ on Medium]]></description>
        <link>https://medium.com/@ol.keene?source=rss-5620131e1dfa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*m9_cuWV9Gi9BmpsbyJunkw.jpeg</url>
            <title>Stories by OlegZ on Medium</title>
            <link>https://medium.com/@ol.keene?source=rss-5620131e1dfa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:47:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ol.keene/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[Working from Home: Productivity, Mental Health and Staying Healthy]]></title>
            <link>https://medium.com/@ol.keene/working-from-home-productivity-mental-health-and-staying-healthy-6b7c61b35e2e?source=rss-5620131e1dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b7c61b35e2e</guid>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[work-from-home]]></category>
            <dc:creator><![CDATA[OlegZ]]></dc:creator>
            <pubDate>Mon, 30 Mar 2020 23:24:38 GMT</pubDate>
            <atom:updated>2020-03-30T23:24:38.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*m1lmbKYsfiVPbaKtz70E0w.jpeg" /></figure><p>The <a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/events-as-they-happen">COVID-19 pandemic</a><a href="https://blog.malwarebytes.com/social-engineering/2020/02/battling-online-coronavirus-scams-with-facts/"> </a>and resulting lockdown in many parts of the world have forced a large number of employees into unfamiliar territory — not just remote work, but full-time working from home (WFH).</p><p>Remote work may seem very convenient until our personal life gets in its way. It can be easily ignored while sitting in the office, but at home it can be difficult to distinguish between personal and working time.</p><h3>1. Technologies, software and <strong>bandwidth</strong></h3><p><strong>Hardware and software.</strong> If your employer plans to provide a computer, work with your IT department to get everything set up and troubleshoot any issues before you leave the office. Once you’re working remotely, you can’t just call IT to come to you when something goes awry.</p><p>Make sure you and your team have all the technology you need. Below is the brief list of the most commonly used services:</p><p><strong>Messengers:</strong> <a href="https://slack.com/">Slack,</a> <a href="https://discordapp.com/">Discord,</a> <a href="https://teams.microsoft.com/downloads">Microsoft Teams</a><br><strong>Video calls:</strong> <a href="https://zoom.us/">Zoom,</a> <a href="https://www.skype.com/en/">Skype,</a> <a href="https://meet.google.com/">Google Meet,</a> <a href="https://www.teamspeak.com/en/">Teamspeak</a><br><strong>Cloud office:</strong> <a href="https://www.google.com/docs/about/">Google Docs,</a> <a href="https://www.office.com/">Microsoft Office 365</a><br><strong>Tasks managers:</strong> <a href="https://www.atlassian.com/software/jira">Jira,</a> <a href="https://trello.com/">Trello,</a> <a href="https://basecamp.com/">Basecamp,</a> <a href="https://www.notion.so/">Notion,</a> <a href="http://monday.com/">Monday.com</a><br><strong>Time trackers:</strong> <a href="https://toggl.com/">Toggl,</a> <a href="https://www.getharvest.com/">Harvest,</a> <a href="https://www.freshbooks.com/">FreshBooks,</a> <a href="https://everhour.com/">Everhour</a></p><p>Make sure all your technology actually works from home. If you need a secure line or a security key to log in ask your supervisor or IT department.</p><p><strong>High-Speed Internet Access. </strong>There’s no way around it. You need high-speed Internet access to communicate. If you don’t already have a high-speed connection at home, it’s time to upgrade.</p><p>Many conferences and almost all nonessential work travel are being canceled right now, so people want to use online video conferencing, which requires a good Internet connection.</p><p>If your bandwidth is low and you’re on a video call, try shutting down other programs to lighten the load on your connection. If your connection is really choppy, you can often shut off the video portion of a call and participate with audio only, which defeats the purpose of seeing your team but will still allow you to participate in the conversation.</p><h3>2. Workspace</h3><p>Working from home requires a dedicated space that’s separate from the rest of the activities you do at home, like cooking, hanging out with your family, and relaxing.</p><p>Even if you don’t have the square footage to dedicate a whole room to a home office, figure out how to make a space that communicates to you — and the rest of your family — that while you’re there, you’re at work. It can be anything from a transformed closet to a corner of your living room that has a desk, chair, and computer monitor.</p><p>Whatever it is, setting space aside helps prevent you from blurring the lines between work and life and maintain a good work-life balance.</p><h3>3. Consistent routines and rituals</h3><p>When you physically go to work, you are naturally forced into a routine: get up, shower, maybe grab something to eat, commute, and start your work day. When working from home, things can get a bit fuzzy — and that’s not good for your productivity. It may feel artificial, but it’s crucial to establish routines and rituals when working from home.</p><p><strong>Don’t jump straight into work.</strong> People working from an office have a bit of time between the moment they open their eyes and when they need to do actual work. Give yourself some headspace in the morning. Don’t rush. Not having to commute doesn’t mean you need to start working earlier.</p><p><strong>Put everything in your calendar.</strong> Schedule everything you want or need to do. Don’t rely on in-the-moment motivation to get things done. When working from home, it’s easy to lose track of time and realise late in the afternoon that you haven’t done half of what you set out to do. Add to your calendar meetings, lunch breaks, focused time, everything should go in there with a specific time and duration. Some remote workers use the <a href="https://pomodoro-tracker.com/">Pomodoro</a> technique to manage their time. You can use what works for you, but make it a proactive process.</p><p><strong>Create boundaries.</strong> Change your online status to “here” or “away” depending on whether you are available. Decide what time you will be starting work and when you will close your laptop, communicate your schedule with your teammates, and try to stick to it. When the work day is over, it’s over. If you find yourself working longer hours, ask yourself: is it because this project requires the extra work, or because I’m home and figured it doesn’t really matter if I work a bit more? Very often you will realise you’re still working just because you didn’t force yourself to get up and do something else.</p><h3>4. Our body physical condition</h3><p>Working from home, when not done probably, can have a terrible impact on both your mental and physical health. But long-time remote workers have some strategies you can apply.</p><p><strong>Proactively tackle loneliness.</strong> You won’t have serendipitous watercooler conversations when working from home. Scheduling short phone check-ins with coworkers throughout the week helps you stay connected and feel less isolated. Book some time with your colleagues during the day for a video chat, and book some time with friends and family after work.</p><p><strong>Take breaks.</strong> There won’t be anyone to tap on your shoulder and invite you to grab a coffee. When working from home, you are responsible for taking breaks. Make these proper breaks: close your laptop, go for a walk, do whatever helps you recharge your batteries.</p><p><strong>Exercise.</strong> Working from home means you’ll be moving less, which is not great for your health. Make sure to work out, ideally once a day and at least a few times a week. It doesn’t matter whether you do workouts, go for a run, or do some yoga, just book some time to shake that booty.</p><p><strong>Eat healthy.</strong> Except if you live in a huge mansion, chances are you will be sitting less than a minute away from your fridge, which can be extremely tempting. If you are going to work from home for a while, it may be worth stoking up on healthy snacks every time you feel a bit peckish. It’s also a good idea to cool your meals. Not only will the food be healthier, but it will be another excuse to take a proper break away from your screen.</p><h3>5. Socialize and stay connected</h3><p>One undeniable loss is the social, casual “water cooler” conversation that connects us to people — if you’re not used to that loss, full-time remote work can feel isolating.</p><p>To fill the gap, some co-workers are scheduling online social time to have conversations with no agenda. Use a messenger for chats and things like that if you miss real-time interaction.</p><p>Again, embrace video calling and webcams so you can see your colleagues. Try an icebreaker over your team chat: What’s everyone’s favorite TV show right now? What’s one good thing that someone read that day?</p><h3>Conclusion</h3><p>Working from home can be a blessing, but it can also come with challenges. While telecommuting requires some adjustments in habits and routines, it’s important that employees of all kinds work to understand how to life, and work, healthily — both from the office and from the home.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b7c61b35e2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerization of old production application]]></title>
            <link>https://medium.com/@ol.keene/example-of-dockerization-of-old-application-dfd2f5905483?source=rss-5620131e1dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfd2f5905483</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[OlegZ]]></dc:creator>
            <pubDate>Tue, 17 Jan 2017 12:25:16 GMT</pubDate>
            <atom:updated>2017-02-04T13:00:52.779Z</atom:updated>
            <content:encoded><![CDATA[<p>Dockerizing of old application have the same way as for any other application, it’s straight-forward, but have own bottlenecks.</p><p>Before pushing to CI and production, we need to make it work locally in dev mode and then prepare it for CI and production.</p><p>Our application is using non-standard Sphinx build, wkhtmltopdf, NPM and Resque, so for initial step we’ll keep them within the application and move to own containers lately.</p><h3><strong>The plan:</strong></h3><ul><li>Keep 100% forward compatibility with devs who not using docker</li><li>Make the app use an environment variables for configuration</li><li>Use a basic container, build Sphinx, install nodejs and wkhtmltopdf</li><li>Keep Application and Resque in same container</li><li>Simplify Procfile for docker</li><li>Create base docker-compose configuration file and extend it for development and CI envs</li><li>Write README</li></ul><p>For this specific example we will create a full contained <a href="http://rubyonrails.org/">Ruby on Rails</a> development environment alongside with isolated common services it usually communicates with, namely: <a href="https://www.mysql.com/">Mysql</a> and <a href="https://www.mongodb.com/">Mongo</a> databases, <a href="http://sphinxsearch.com/">Sphinx</a> search server, <a href="https://redis.io/">Redis</a> data structure store with Resque background worker.</p><p>For creating and managing the isolated Linux containers we will use a combination of:</p><ul><li><a href="https://www.docker.com/">Docker</a>: the tool that will allow us to run lightweight isolated containers for our app</li><li><a href="https://www.docker.com/products/docker-compose">Docker Compose</a>: a tool that will help us manage multiple containers for the multiple services</li></ul><h3>Prerequisites</h3><p>Make sure you have installed docker and nfs plugin (missed in docs below)</p><p><strong><em>OSX</em></strong> native: <a href="https://docs.docker.com/docker-for-mac/">https://docs.docker.com/docker-for-mac/</a><br><strong><em>OSX</em></strong> via Brew and VirtualBox:</p><pre>brew install caskroom/cask/brew-cask<br>brew cask install virtualbox<br>brew install docker docker-machine docker-compose</pre><pre># create the vm<br>docker-machine create -d virtualbox default</pre><pre># import environment variables for the docker-cli<br>eval &quot;$(docker-machine env default)&quot;</pre><p>For Ubuntu: (<a href="https://docs.docker.com/engine/installation/linux/ubuntulinux/">install docker</a>) (<a href="https://docs.docker.com/compose/install/">install docker-compose</a>)</p><p>Now that we have Docker installed and running, it is time to get our application running on it. Docker applications are configured via a <a href="https://docs.docker.com/reference/builder/"><strong>Dockerfile</strong></a>, which defines how the container is built.</p><h3>Database and Secrets</h3><p>As mentioned, our App is old and still have hard-coded config files under the version control. Don’t ask why.</p><p>Avoiding the storage of secrets inside the image is a well-known Docker principle.</p><p>Let’s modify this file to unify configuration. Hash#fetch helps to get the default values which are used by others.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b32d8e194b0825c2a9aad7bfdc32ec1/href">https://medium.com/media/9b32d8e194b0825c2a9aad7bfdc32ec1/href</a></iframe><h3>Advanced security concerns</h3><p>Storing extremely sensitive data in environment variables may not always be acceptable. The appropriate values are exposed to the container’s metadata and could be revealed to anyone who has access to the Docker server.</p><p>For additional protection, consider storing critical data in online storage with advanced access control. Applications can use a one-time authentication token (provided in an environment variable, as described above) to fetch sensitive secrets during initialization.</p><h3>Docker part</h3><p>Now let’s start with <strong>Dockerfile</strong>.</p><p>We’ve used light-weighted <a href="https://hub.docker.com/_/ruby/"><strong>ruby:2.1</strong></a> as base image and changed <a href="http://bundler.io/v0.9/bundle_install.html">BUNDLE_PATH</a> to get it cached via volume.</p><p>Check detailed article about BUNDLE_PATH and why gems install must be on latest step <a href="https://medium.com/@fbzga/how-to-cache-bundle-install-with-docker-7bed453a5800">https://medium.com/@fbzga/how-to-cache-bundle-install-with-docker-7bed453a5800</a></p><p>Docker supports what it calls <a href="http://documentation.codeship.com/docker/docker-volumes/">volumes</a>. These are mount points which let you access data from either the native host or another container. In our case, we can mount our bundled gems folder into the container.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5656882db9e52114b9ff35685e4c7093/href">https://medium.com/media/5656882db9e52114b9ff35685e4c7093/href</a></iframe><p>All command now are walking thought <strong>bin/docker-entrypoint.sh</strong> entrypoint .</p><p>Before executing anything in app’s container we need to sure that old pid files are gone and the database is available:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14238de7276645cae2b511686b565807/href">https://medium.com/media/14238de7276645cae2b511686b565807/href</a></iframe><p>The small step which lefts is to orchestrate it with mysql, mongo, redis, volumes and expose the env variables.</p><p>As additional step we’ll create docker-compose-base.yml which will be extended in compose file for dev and ci/prod.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/57c09354233a8f71d0cd5a895bcd9917/href">https://medium.com/media/57c09354233a8f71d0cd5a895bcd9917/href</a></iframe><h3>Application start</h3><p>docker-compose up</p><p>Point browser to <a href="http://localhost:3000/">http://localhost:3000</a> or <a href="http://192.168.99.100:3000/">http://192.168.99.100:3000</a></p><p>*<strong><em>Note:</em></strong> Default docker machine’s ip is 192.168.99.100, to make sure run:</p><p>docker-machine ip docker</p><h4>Bash to app container</h4><pre>docker-compose run app bash</pre><h4>Specs</h4><pre>docker-compose run app bundle exec rspec</pre><h3>What is left:</h3><ul><li>Sending application logs to STDOUT/STDERR when it defaults to files in the container’s file system</li><li>Integrate into a <a href="http://jasonwilder.com/blog/2012/01/03/centralized-logging/">centralized logging system</a></li><li>Move Sphinx, nodejs, resque, wkhtmltopdf and schedule-based tasks and processes to own containers</li><li>Create compose file for CI and prod</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfd2f5905483" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>