<?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 Serhiy Andrejev on Medium]]></title>
        <description><![CDATA[Stories by Serhiy Andrejev on Medium]]></description>
        <link>https://medium.com/@serhiy.andrejev?source=rss-2b2e83ac831c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PDnnEs2LPLp9zaIfV5288A.jpeg</url>
            <title>Stories by Serhiy Andrejev on Medium</title>
            <link>https://medium.com/@serhiy.andrejev?source=rss-2b2e83ac831c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 22:23:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@serhiy.andrejev/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[Bad impact of the growing popularity of generative AI(and ChatGPT) on the machine learning job…]]></title>
            <link>https://medium.com/@serhiy.andrejev/bad-impact-of-the-growing-popularity-of-generative-ai-and-chatgpt-on-the-machine-learning-job-1fe62b13851?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fe62b13851</guid>
            <category><![CDATA[recruiting]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 15:38:49 GMT</pubDate>
            <atom:updated>2023-02-01T15:38:49.983Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bad impact of the growing popularity of generative AI(and ChatGPT) on the machine learning job market</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GUo9EWok57V3FAi1JMFT9g.png" /><figcaption>Generated by DALLE</figcaption></figure><p>The rise of artificial intelligence and machine learning has disrupted a variety of industries, including job markets. The growing popularity of generative AI has the potential to further revolutionize the job market, but it also raises concerns about the negative impact on the demand for certain skills and jobs. In this story, we will explore the effects of the growing popularity of generative AI on the machine learning job market, focusing on the challenges and opportunities it presents for professionals in this field.</p><h3>Main</h3><p>The field of artificial intelligence is constantly evolving, with new technologies and applications emerging all the time. One of the latest trends in AI is the growing popularity of generative AI, which has the ability to create new content and data without human intervention. This technology is rapidly gaining traction in a variety of industries, from art and design to healthcare and finance.</p><h4>Generative AI in Different Industries</h4><p>Generative AI has already had a significant impact on a variety of industries, including art and design, where it has been used to create new styles and forms of expression. In the healthcare industry, generative AI has the potential to revolutionize drug discovery and medical diagnosis, while in the financial industry, it can be used to generate new investment strategies and to analyze large amounts of financial data. Now, we are have GPTs, that make possible to make a thousands of similar blogs and articles.</p><h4>Impact on the Job Market</h4><p>As the popularity of generative AI continues to grow, it is likely to have a profound impact on the job market. On one hand, the demand for skilled professionals with expertise in generative AI is expected to increase, creating new job opportunities and demand for certain skills and job roles. On the other hand, the rise of generative AI may also result in the automation of certain tasks and job roles, which could have a negative impact on certain segments of the job market.</p><p><strong>But</strong></p><h3>Why the hype around generative AI could be dangerous for the widespread development of new technologies?</h3><p>In recent years, the popularity of artificial intelligence (AI) has skyrocketed, with many new job applicants in the field of machine learning eager to jump into the exciting world of generative AI. While this is certainly a commendable ambition, the truth is that many of these new candidates come to the field with incomplete knowledge and an over-reliance on the perceived perfection of AI. This can lead to a lack of understanding in critical areas such as statistics, mathematics, and programming, which are the fundamental building blocks of machine learning.</p><p>One of the reasons for this incomplete knowledge is the widespread belief that AI is a one-size-fits-all solution to problems. Many new job applicants believe that AI is a kind of magic wand that can solve any problem with a single wave. They do not understand that AI is only as good as the data it is fed and the algorithms it is built upon. They also do not understand that AI is far from perfect and that it requires ongoing monitoring and improvement to ensure that it remains effective and relevant.</p><p>In addition to a lack of understanding of the limitations of AI, many new job applicants are also unaware of the critical importance of statistics, mathematics, and programming in machine learning. These subjects are essential to the development of effective AI systems and cannot be skipped over in the pursuit of generative AI. Without a solid foundation in these areas, new candidates will not be able to understand the intricacies of machine learning and will struggle to make meaningful contributions to the field.</p><p>In conclusion, the growing popularity of generative AI has led to an influx of new job applicants in the field of machine learning, but it has also created a situation where many of these candidates come to the field with incomplete knowledge and unrealistic expectations. It is crucial that new job applicants in this field understand the importance of statistics, mathematics, and programming, and that they work to build a strong foundation in these areas if they hope to make meaningful contributions to the field of machine learning and AI.</p><p>On top of that, would-be machine learning engineers are heavily distracted from the rather trivial and boring tasks that really move us towards the objective progress of civilisation. Instead of an increased demand for AI solutions in medicine, security, energy and action research — we are generating heaps of pictures, and now heaps of huge text “just because we can”.</p><p>The average person does not understand AI and starts to think that AI is perfect and already solves most of humanity’s problems.</p><p>Here’s a list of very good queries for the GPT.</p><ul><li>OK, GPT, how do we feed all the suffering children of third world countries and stop wars?</li><li>OK, GPT, solve environmental problems.</li><li>OK, GPT, how to achieve positive fusion efficiency?</li><li>OK, GPT, where are the as-yet-unknown deposits of uranium?</li><li>OK, GPT, how to optimise energy with all the needs of the population in mind?</li><li>OK, GPT, stop inflation.</li></ul><p>Feel free to contact me with questions and recommendations in any way you like at the link below.</p><p><a href="https://linktr.ee/serhiy.andrejev">All My Links</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fe62b13851" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accurately Forecast the Future with fbprophet(or just prophet) and Python]]></title>
            <link>https://medium.com/@serhiy.andrejev/accurately-forecast-the-future-with-fbprophet-or-just-prophet-and-python-9cd391828ffd?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cd391828ffd</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[future]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 15:46:50 GMT</pubDate>
            <atom:updated>2023-01-31T15:46:50.946Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9G-Tt85XaWKbz2EGBDa2A.png" /><figcaption>Image generation by Author</figcaption></figure><p>In the age of big data, predicting the future with accuracy is now possible using Machine Learning algorithms. One such algorithm is fbprophet, a library developed by Facebook specifically for forecasting time-series data. In this blog, we will discuss the basics of fbprophet, its benefits, advantages, and how to use it with Python to create a forecasting model.</p><h3>What is fbprophet?</h3><p>fbprophet is a python library designed to make forecasting time-series data easier and more accurate. It is based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. fbprophet was developed by Facebook and is open source, meaning it can be used by anyone. It is designed to be fast and accurate and can automatically detect changes in trends and seasonality.</p><p>The forecasting component uses the additive and multiplicative model to create a forecast using the existing data.</p><h3>Benefits of fbprophet</h3><p>fbprophet is a powerful tool for forecasting time-series data. It is easy to use and can be implemented quickly without a lot of prior knowledge. It is also capable of automatically detecting changes in trends and seasonality, which makes it very useful for analyzing time-series data.</p><p>fbprophet is also designed to be fast and efficient. It is designed to be able to handle large amounts of data in a short amount of time, making it ideal for data-intensive tasks. It is also designed to be able to handle missing data points, which is common in time-series data.</p><h3>Advantages of fbprophet over traditional time series forecasting methods</h3><p>fbprophet has several advantages over traditional time series forecasting methods. First, it is designed to be fast and efficient. It can handle large amounts of data in a short amount of time, making it ideal for data-intensive tasks.</p><p>Second, it is designed to be able to handle missing data points, which is common in time-series data. This makes it much easier to use in real-world applications. Third, it is capable of automatically detecting changes in trends and seasonality, which is not possible with traditional methods. Finally, it is open source and free to use, making it accessible to anyone.</p><h3>How to install and use fbprophet</h3><p>fbprophet is easy to install and use. It is available on GitHub and can be installed using pip. Once it is installed, it can be imported into a python program with the following command:</p><p>import fbprophet</p><p>Once it is imported, you can use it to create a forecasting model. The process consists of two steps: creating a forecast and interpreting the results.</p><h3>Creating a fbprophet forecast model</h3><p>Creating a fbprophet forecast model is a simple process. First, you need to create a DataFrame containing the time-series data. This DataFrame should include a column for the date or time and a column for the values.</p><p>Once the DataFrame is created, you can use the fbprophet.Prophet() method to create a forecast model. This method takes several parameters, including the DataFrame, the length of the forecast, and the frequency of the data.</p><p>Once the model is created, you can use the model.fit() method to fit the data to the model. This will create the forecast based on the data.</p><h3>Interpreting the results of a fbprophet forecast</h3><p>Once the model is fit, you can use the model.predict() method to generate the forecast. This will return a DataFrame containing the predicted values for each time-step in the forecast.</p><pre># Importing the libraries and the dataset<br>import pandas as pd<br>from fbprophet import Prophet<br><br># Reading the dataset<br>df = pd.read_csv(&#39;dataset.csv&#39;)<br><br># Creating the Prophet model<br>m = Prophet()<br>m.fit(df)<br><br># Making predictions<br>future = m.make_future_dataframe(periods=365)<br>forecast = m.predict(future)<br><br># Visualizing the results<br>fig1 = m.plot(forecast)<br>fig2 = m.plot_components(forecast)</pre><p>To interpret the results, you can compare the predicted values to the actual values. You can then use various metrics, such as mean absolute error or root mean square error, to evaluate the accuracy of the forecast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g31iFYXnlmIpAi6onHQtnA.png" /><figcaption>Example of prophet model plot using plotly lib</figcaption></figure><h3>Tuning fbprophet parameters</h3><p>fbprophet has several parameters that can be tuned to improve the accuracy of the forecast. These parameters include the changepoint prior, the seasonality mode, the seasonality prior scale, the changepoint range, and the holidays.</p><pre># Define tuning parameters<br>changepoint_prior_scale = 0.5<br>holidays_prior_scale = 10.0<br><br># Tune the model<br>m.changepoint_prior_scale = changepoint_prior_scale<br>m.holidays_prior_scale = holidays_prior_scale<br><br># Fit the tuned model<br>m.fit(df)<br><br># Make predictions<br>forecast = m.predict(df)</pre><p>Tuning these parameters can help improve the accuracy of the forecast. For example, increasing the changepoint prior can help the model better detect changes in trends, while decreasing the seasonality prior scale can help the model better capture seasonal patterns.</p><p>It has several key parameters that can be used to customize the model and achieve better results.</p><p><strong>changepoint<em>prior</em>scale:</strong> This parameter controls the strength of the seasonality component of the model. A value of 0.05 means that the seasonality component will be weighted less, whereas a value of 2.0 means that the seasonality component will be weighted more.</p><p><strong>seasonality<em>prior</em>scale:</strong> This parameter controls the strength of the trend component of the model. A value of 0.05 means the trend component will be weighted less, whereas a value of 2.0 means that the trend component will be weighted more.</p><p><strong>holidays<em>prior</em>scale:</strong> This parameter controls the strength of the holiday component of the model. A value of 0.05 means that the holiday component will be weighted less, whereas a value of 2.0 means that the holiday component will be weighted more.</p><p><strong>growth:</strong> This parameter controls the growth rate of the model. A value of “linear” means that the growth rate is constant over time, whereas a value of “logistic” means that the growth rate decreases over time.</p><p><strong>yearly_seasonality:</strong> This parameter controls whether or not the model should account for yearly seasonality. A value of “True” means that the model will account for yearly seasonality, whereas a value of “False” means that the model will not account for yearly seasonality.</p><p><strong>weekly_seasonality:</strong> This parameter controls whether or not the model should account for weekly seasonality. A value of “True” means that the model will account for weekly seasonality, whereas a value of “False” means that the model will not account for weekly seasonality.</p><p><strong>daily_seasonality:</strong> This parameter controls whether or not the model should account for daily seasonality. A value of “True” means that the model will account for daily seasonality, whereas a value of “False” means that the model will not account for daily seasonality.</p><p>So. These parameters can be used to customize the model and achieve better results.</p><h3>Train-test Splitting</h3><p>The training data is used to fit the model and generate predictions, while the testing data is used to compare the prediction with the expected values. A good fit will result in an accurate model that is able to make reliable predictions on new data. By making a train-test split, we can evaluate the accuracy of the model and gain insight into how well the data is represented by the model.</p><pre>train = df.iloc[:int(len(df)*0.8)]<br>test = df.iloc[int(len(df)*0.8):]</pre><h3>Advanced forecasting techniques with fbprophet</h3><p>fbprophet can also be used for more advanced forecasting techniques. For example, it can be used to detect outliers in the data, which can be useful for anomaly detection. It can also be used to create in-sample forecasts, which can be useful for forecasting future values in a time-series. Or make and A/B testing using model predictions as “A” if model accuracy is enough.</p><h3>Conclusion</h3><p>fbprophet is a powerful tool for forecasting time-series data. It is easy to use and can be implemented quickly without a lot of prior knowledge. It is also capable of automatically detecting changes in trends and seasonality, which makes it very useful for analyzing time-series data. It is also designed to be fast and efficient and can handle large amounts of data in a short amount of time.</p><p>fbprophet has several advantages over traditional time series forecasting methods. It is designed to be fast and efficient, can handle missing data points, and is open source and free to use. It can also be used for more advanced forecasting techniques, such as anomaly detection and in-sample forecasting.</p><p>If this article gains traction, I will begin to dive into each of the topics mentioned in this article. Feel free to contact me with questions and recommendations in any way you like at the link below.</p><p><a href="https://linktr.ee/serhiy.andrejev">linktr.ee/serhiy.andrejev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cd391828ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging Data Science for Marketing]]></title>
            <link>https://medium.com/@serhiy.andrejev/leveraging-data-science-for-marketing-268348103a0a?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/268348103a0a</guid>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 01:28:51 GMT</pubDate>
            <atom:updated>2023-01-31T01:30:05.747Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leveraging Data Science for Marketing Strategies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WDD_-knMzNjnefiO" /><figcaption>Photo by <a href="https://unsplash.com/@waldemarbrandt67w?utm_source=medium&amp;utm_medium=referral">Waldemar</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As technology progresses and data-driven decision making becomes the norm, marketers are increasingly turning to machine learning to optimize their strategies. Machine learning is essentially a set of algorithms that allow machines to analyze data sets and identify patterns, trends, and correlations.</p><p>With the help of machine learning, marketers can gain valuable insights into customer behavior, such as what type of content resonates with their audience and what message they should be communicating. By understanding customer behavior, marketers can tailor their messaging and offer the right product or service at the right time.</p><h3>Customer Segmentation</h3><p>Machine learning can also help marketers track customer engagement and segment their audience. This type of segmentation allows marketers to target their messaging to specific audiences, increasing the chance of conversions.</p><p>And let me just show you how easy such tasks look in code. I’m joking, it often looks much more complicated. I just want to show you that these technologies are not that complicated and are realizable if you have the proper specialist.</p><pre>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>import seaborn as sns<br>from sklearn.cluster import KMeans<br><br># Load the data<br>df = pd.read_csv(&#39;customer_data.csv&#39;)<br><br># Check for missing values<br>print(df.isnull().sum())<br><br># Clean the data<br>df.fillna(df.mean(), inplace=True)<br><br># Select features<br>x = df[[&#39;Age&#39;,&#39;Income&#39;,&#39;Spending Score&#39;]]<br><br># Cluster the data<br>kmeans = KMeans(n_clusters=4, random_state=0).fit(x)<br><br># Assign labels<br>df[&#39;labels&#39;] = kmeans.labels_<br><br># Plot the clusters<br>plt.scatter(df[&#39;Income&#39;], df[&#39;Spending Score&#39;], c=df[&#39;labels&#39;], cmap=&#39;rainbow&#39;)<br>plt.xlabel(&#39;Income&#39;) <br>plt.ylabel(&#39;Spending Score&#39;)<br>plt.show()<br><br># Print the summary<br>print(df.groupby(&#39;labels&#39;).mean())</pre><p>In addition to segmenting their audience, marketers can also use machine learning to automate their campaigns. Machine learning algorithms can be used to optimize bidding for ad campaigns, allowing marketers to get the most out of their advertising budget. Machine learning can also be used to optimize email marketing campaigns, allowing marketers to tailor their messaging to specific customers. This led on recommnedation systems</p><h3>Recommendation Systems in Data Science</h3><p>Recommendation systems in data science are algorithms that generate a set of product or service recommendations to a user. These algorithms can be divided into two categories: content-based and collaborative filtering.</p><p>Content-based recommendation systems use content from the user’s past behavior to generate new recommendations. This content can include anything from products viewed to reviews or ratings. These recommendation systems search for products with similar attributes to the products that the user has previously interacted with.</p><p>Collaborative filtering recommendation systems use previous user interactions to generate new recommendations. This can include ratings, reviews, likes, and purchases. These systems search through millions of user interactions to find patterns and similarities between users. They then use these similarities to generate product recommendations.</p><p>The main advantages of recommendation systems in data science are their ability to provide personalized product recommendations and to increase engagement. Personalization is key to providing a good customer experience and can lead to increased customer loyalty. By providing personalized recommendations, businesses can increase customer engagement and satisfaction.</p><h3>The Abilities and Advantages of Data Science in Forecasting</h3><p>Data science has become an integral part of forecasting and its ability to provide accurate future predictions has made it an invaluable tool for businesses. Through the use of data science, companies are able to make more informed decisions that can lead to improved profits, increased efficiency, and better customer service.</p><p>Data science allows for the gathering and analyzing of large amounts of data in order to make predictions about the future. By leveraging advanced algorithms and data mining techniques, data scientists are able to uncover patterns and insights that would normally be invisible to the human eye. This data can then be used to forecast future trends, identify potential opportunities, and create predictive models that can offer valuable insights into possible outcomes.</p><p>Data science also has the ability to automate forecasting processes. By using automated forecasting techniques, businesses can save time and money by eliminating the need for manual forecasting processes. Automated forecasting also eliminates the possibility of human error, which can often lead to inaccurate predictions.</p><p>So.</p><h3>Conclusion</h3><p>Data science is a powerful tool for forecasting and it offers a number of advantages over traditional forecasting methods. Data science allows businesses to gain deeper insights into their data, automate forecasting processes, and make more accurate predictions about the future.</p><p>And overall, machine learning is an incredibly powerful tool for marketers. By utilizing the power of machine learning, marketers can gain valuable insights into their customers, optimize their campaigns, and increase their chances of making conversions and driving sales.</p><p>If this article gains traction, I will begin to dive into each of the topics mentioned in this article. Feel free to contact me with questions and recommendations in any way you like at the link below.</p><p><a href="https://linktr.ee/serhiy.andrejev">linktr.ee/serhiy.andrejev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=268348103a0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A second brain for the developer. Part One. Obsidian.]]></title>
            <link>https://medium.com/@serhiy.andrejev/a-second-brain-for-the-developer-part-one-obsidian-bf26588e60bb?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf26588e60bb</guid>
            <category><![CDATA[brainstorming]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[notes]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 16:47:47 GMT</pubDate>
            <atom:updated>2022-08-11T16:47:47.801Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>And not just for the developer.</blockquote><p><em>Level of difficulty: Battle with prostration</em></p><p><em>Stack: ???</em></p><p><em>For whom: For everyone</em></p><p>I’m trying to start writing articles on the medium again, so meet my new micro-series of articles about notepads. In each article, we’ll look at separate notebooks for taking notes both during work and in everyday life.</p><p>And guys, nothing motivates me to write anything further than your subscriptions. I have no monetization and write only for the purpose of helping you. I try not to write on some trivial topics with the title “Top 5 Libraries for the Machine Learning Engineer” where it will always be just simple pandas, numpy, scikit-learn, matplotlib and tensorflow. I’m serious, I experience constant deja vu as soon as I open my recommendation feed on Medium.</p><h3>Introduction</h3><p>And so. When you wake up, you can not gather your thoughts and start staring at useless and not so useful videos on YouTube, waiting for the daily call. You got drunk on redbull or some other local energy drink. Your thoughts start flying after that, but you still can’t concentrate. You still can’t start anything, or you forget your plans for the day after the daily call with the team. There is a way out of this extremely depressing cycle. <strong>Writing</strong>.</p><p><strong>Lots of writing.</strong></p><p>Imho, it works. To everyone I advised it works, then why not write an article about it on Medium?</p><p>Personally, I have tried many different ways to organize my thoughts. There was<strong> OneNote</strong> and <strong>Obsidian</strong> and <strong>Typora</strong> and <strong>Notion</strong>. When I realized that I couldn’t do without sketching, I bought myself a tablet with a stylus, which helped for a while. Now I have so many notes in <strong>Concepts</strong> and <strong>Samsung Notes</strong> that I want to organize them like in Obsidian, but unfortunately there is no such solution at the moment and they are all lying haphazardly on my tablet. If anyone wants to create something like that, then write me, I’ll be happy to help.</p><p>Moving smoothly from my desperate cry in all this chaos to our main topic of this article. Notebooks. Today we’re going to look at different ways of organizing your second brain. We’re going to look at the ones that are more useful for students, creators, and developers alike. At the end we will even make a table with comparisons.</p><p><strong>Disclamer. We are considering standard solutions without various plugins, but we will also mention the presence of plugins where possible.</strong></p><p>We all care about the time it takes to use something. We want to time-optimize everything possible. And it is the low indicator of time spent on recording that for many people is the most important criterion in notepads. Therefore I propose to introduce a description of the required actions in order to make a record. I will give pictures and jokes in them to make it easier for you to understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*6CN2-iS9DANzSh3o" /></figure><p>And so. It’s a 20-minute adventure, Morty, in and out.</p><h3>Obsidian</h3><p>Let’s start immediately with the heavy artillery.</p><p>Obsidian is the benchmark for oppressing perfectionists. Obsidian is awesome with its graphs, but for first-time users it will be time-consuming to figure it all out.</p><p>Osidian has <strong>many plugins and color palettes,</strong> allowing you to customize the application to your needs and preferences.</p><p>A key feature of Obsidian is the ability to <strong>build a map of your knowledge</strong> by linking each file to others. This is very useful in documentation and when taking notes at university. It allows you to organize your knowledge on a whole new level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHn7Exr6s4vX21tHGd3AgQ.png" /><figcaption>Knowledge graph</figcaption></figure><p>There’s <strong>tagging for pages</strong>, lots of different plugins for integrations, so there’s pretty much everything you need for a Markdown editor. The only thing missing is some stylus integration and no editing interface. I’m serious. It’s just not there, or I haven’t found it (after a year of using it). It’s a <strong>fully Markdown</strong> editor and all the formatting you do yourself <strong>using Markdown syntax</strong>, which is fine <strong>for documentation</strong> purposes but sometimes you might forget something, so you go and look it up on Google.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*endK5ngwcA3ouXlW" /><figcaption>What u will se in editor</figcaption></figure><p>And so, let’s look at our <strong>work algorithm</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UcLToR28hRDnCGXZ" /></figure><h3>Automation.</h3><p>Another big advantage of Obsidian is that it is a <strong>Markdown editor</strong>, which means that it <strong>is easy to automate</strong> with fairly simple programming. I use <strong>Python</strong> to create individual templates based on the directory, create graphs based on the page position in the hierarchy, and create multiple pages just by feeding a list of names I need for them.</p><h3>Sound Recording</h3><p>Obsidian <strong>allows you</strong> to take notes with your voice. I don’t think there’s much more to say about this item.</p><h3>Plugins</h3><p>There are a lot of them. There’s an<strong> enormous </strong>amount of them. They allow you to integrate <strong>Excalidraw, Github</strong>, a bunch of different innovations for better text layout, <strong>working with code</strong>, etc. By using plugins you can greatly expand the functionality of Notepad to suit your needs. Sometimes they are not very convenient to work with, but then again, Obsidian<strong> is not for people who just take quick notes</strong>.</p><h3>Summing up</h3><p>Obsidian fits well::</p><ul><li>Scientists</li><li>Writers (just writers, journalists, investigators, etc.)</li><li>Developers</li><li>Students</li><li>Perfectionists with OCD</li></ul><p>All of the people on this list can devote a lot of time to this notebook because the very writing of text, reports, etc. is closely related to their activities.</p><p>Obsidian takes quite a long time to fill it out, even when using shortcuts. Therefore, it is not very suitable for those who want to keep their notes quickly, fixing their thoughts so as not to forget them. For this purpose other notebooks will be more suitable, which we will talk to you about next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf26588e60bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How explosions sounds. I hope it won’t be as useful as it is now to Ukraine.]]></title>
            <link>https://medium.com/@serhiy.andrejev/how-and-explosions-sound-i-hope-it-wont-be-as-useful-as-it-is-now-to-ukraine-2f1ca45ff149?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f1ca45ff149</guid>
            <category><![CDATA[conflict]]></category>
            <category><![CDATA[russia]]></category>
            <category><![CDATA[war]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[ukraine]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Sun, 20 Mar 2022 13:29:02 GMT</pubDate>
            <atom:updated>2022-03-20T13:37:29.739Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>There may be a situation in your life where you hear artillery shots N times, but only hear N-1 explosions. Well, perhaps you no longer exist, or you should consider falling to the floor immediately.</blockquote><p><em>I sincerely apologize in advance for any humor that may offend someone, but in this situation humor is the best way to protect your psyche.</em></p><p>Trying to distinguish between explosions of different ammunition is more like trying to tell the difference between sour and round. However, one way or another, it is possible to distinguish between types of artillery and to take certain actions to keep yourself safe. Safety is a big word, but increasing your chance of survival by 1–2 percent will also make you very happy.</p><h3>The main caveat.</h3><p>Explosion has conditionally three types of basic damage.</p><p>The “central” blast wave damage. Instant death guaranteed.</p><p>Damage caused by fragments of shells, buildings, or other objects. At best, you’ll have injuries to non-critical organs that have yet to be dealt with.</p><p>Being hit by a blast wave outside of its “center”. You are very likely to be concussed.</p><p>Next, in all cases, try to keep your mouth open, if very scared you can scream. Perhaps this will help you get out of the stupor. This will increase the chance that you will not be deaf for life if you have a concussion.</p><h3>Indirect fire</h3><h4>Mortar.</h4><p>If you hear a long, long whistle, it’s a mine. Immediately fall into any pit or hole or just on the ground. You have 2–3 seconds to do this. Usually a mortar bomb explodes when it lands and fragments from it fly in different directions along the ground line. It is possible that a fragment that originally flew upwards might catch you, but it will lose its killing power when it reaches its apocenter of trajectory.</p><p>However, it is possible that there is a special fuse on the mine, which will detonate it above ground. In this case, the shrapnel hits a large area and shelters below the ground. In such a case, it is advisable to remember the prayer of your chosen religion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a1UymHMp9G_rtjZDN9wa6A.png" /><figcaption>Draw in excalibur</figcaption></figure><p>There is a chance that the mortar itself will be standing somewhere nearby, so you can hear it. It’s a pretty dry, short and muffled shot. It’s like a cork coming out of a bottle of sparkling wine. Naturally, it’s louder.</p><p>The survival instructions are still the same. Even if you don’t hear the whistle, it’s best to take cover immediately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*uAtdYfTjJ3Dx0A_9.gif" /></figure><h4>Howitzer.</h4><p>Almost the same sound is made by howitzers, but they fly faster. So it’s in your best interest to hit the ground as quickly as possible. The blast from a howitzer will be creepy and very large in area, so remember to open your mouth. May the theory of probability will keep you safe.</p><p>Sounds of the shot can be heard at a fairly long distance, often up to 10–15 km, but the shell itself flies a much greater distance. The difference between an explosion and a shot is simple. In an explosion, the ground will shake, and you can clearly feel it. The shot will only make a sound. Unless, of course, you are standing very close to the cannon. <br>If you hear the shot, and you know that it might be fired at your area, you have an extra 10 seconds to lie down in the deepest place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*76Q1gBbSrepkcVX2.gif" /></figure><h4>MLRS — <strong>multiple launch rocket system.</strong></h4><p>The sound of the missiles of such systems is similar to the very loud rustling of plastic bags. In addition, you may be able to see them launch if the system itself was not located very far away. In the sky you will see large white lines coming from right near the ground and tapering off at the end. If you can see these lines vertically and not tilted to the side, then seek shelter immediately. You have 5–10 seconds to do this (actually there may be more, but it’s better to count on 5–10). Perhaps they will fly further away or fall closer to the system itself, but it is better to take cover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*2V-y5_d5iQam2ZMK.gif" /></figure><h4>Ballistic missile</h4><p>Did you hear an airplane taking off? Multiply that sound by 100. Add the bass.</p><p>Just get down. As fast as you can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*i8KDjy8VV6H_OoMq.gif" /></figure><h3>Direct fire guns</h3><h4>Tanks</h4><p>You will not hear the flight of the projectile. The explosion occurs almost immediately after the shot is fired. You have a chance to take cover while the tank is reloading. You have about 3–4 seconds for this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Pt6VO2C3YyzWaxq6.gif" /></figure><h4>Small caliber cannon.</h4><p>Sounds like a series of small explosions. It is relatively safe if the explosions are more than 100 meters away, but you must take cover in any case. After all, at any moment you might see the same thing as in the gif image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*Zi5ENgPJnMqthzI2.gif" /></figure><h3>Conclusion.</h3><p>Thank you all for your attention, and I hope you never hear any of the above. Since there is fighting in my country at the moment, I do not have the full opportunity to focus on writing technical articles and guides, but I will try. <br>Maybe you’ll see a few more guides here on how to survive in war being a civilian. For the most part, I’m only going to write them so I don’t lose my practical English skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f1ca45ff149" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLID Principles in Python]]></title>
            <link>https://python.plainenglish.io/solid-principles-in-python-d5798a20c50c?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5798a20c50c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 12:41:19 GMT</pubDate>
            <atom:updated>2022-02-16T11:15:17.791Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0s2qDI0pDj5WBH3P" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Indiana Jones hates snakes, but when he found out about Python, he changed his mind.</p><p>Hi, all. Not so long ago, I wrote about SOLID principles and this article became my most popular one. That’s why I decided to show it to you in code, so that you understand how it works in practice.</p><p><a href="https://medium.com/@serhiy.andrejev/solid-principles-how-do-you-organize-your-code-18bdaa19bb7c">Previous part</a></p><p>Let’s start</p><p>Sing me a song about <strong>Single Responsibility Principle.</strong></p><p>So.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UuAr67q1vyPF3igpXS5Odg.png" /><figcaption>Image by author</figcaption></figure><p>As I said in a previous article, this principle tells us that the object should do ONLY one job. Let’s take a look at a class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0be7425d6838624bcab526c623e7c68/href">https://medium.com/media/e0be7425d6838624bcab526c623e7c68/href</a></iframe><p>As you can see, we can take out of our box some object lying inside. This function works with the properties of the box. In the same class, we can sell the box. Have you ever seen a box that sells itself?</p><p>To do this, we’ll apply division, and create a seller class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae64ce24108e924486dfb03be3758662/href">https://medium.com/media/ae64ce24108e924486dfb03be3758662/href</a></iframe><p>Oh. There is Open-Closed Principle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTPvDkytuWqx81279pDnGw.png" /><figcaption>Image by author</figcaption></figure><p>I could make it more complicated, but in its essence, this principle is still a division of objects, and the main thing is to do it prematurely. Let’s get to the code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bcf39a83aa1326a966e5acccf9930699/href">https://medium.com/media/bcf39a83aa1326a966e5acccf9930699/href</a></iframe><p>As you can see, we did not make a separate property of the class, whether it is a crisis period or not. Consequently, we did not do any additional processing.</p><p>Liskov says “The entities that exist in our program must be easily replaceable into subtypes and the program must work correctly.”</p><p>Since we are already attached to classes, let us formulate this principle in relation to them.</p><p>The child class must match their parent class. That’s all, folks.</p><p>For example, we have a main class box, and its subclasses “box with something”. If we need to count all items inside boxes, we shouldn’t have a problem with some class not matching the box. To do this, we must specify the “get objects” function in each class. After all, if the box is closed and there is no such possibility, we will not be able to count.</p><p>Into the Interface Segregation Principle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*VR5UXvKltsGo3shXoGINxA.png" /></figure><p>Let’s be brief. The “client” should not suffer if you decide to return multiple entities in the same function at once. Try to separate your code into separate interfaces, each returning a different value.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5faf7e5230d316f46105c1c691a2cf1/href">https://medium.com/media/f5faf7e5230d316f46105c1c691a2cf1/href</a></iframe><p>Diving into <strong>dependency inversion principle.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*CBTFApDz8RE5o1aQZ_y_KQ.png" /></figure><p>It’s a pretty simple principle. Let me give you an analogy right away. Regardless of whether the death star has that vulnerable hole or not, in one way or another, it remains a death star. Even if the death star has a different color but is still a death star, it will still be a death star.</p><p>Top-level modules should not depend on lower-level modules. Both upper-level and lower-level classes must depend on the same abstractions. Abstractions should not depend on parts. Parts must depend on abstractions.</p><p>Using the box as an example. We have a class “container” that can hold some objects. However, a container can be either a box or a bottle. So we inherit from the container the ability to contain something, but we also give certain new properties and functions to the box and bottle.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/239952f88c93de05e1abb859466632f1/href">https://medium.com/media/239952f88c93de05e1abb859466632f1/href</a></iframe><h3>Conclusion</h3><p>Attention! Thank you for your attention. Stick to these principles and your code will be much better structured, allowing you to avoid mistakes when you have to rewrite everything from scratch.</p><p>Friends, the number of subscribers is very important to me at the moment. This is a great incentive for me to write new articles. So, subscribe &amp; share.</p><p>Good luck with your technical creativity.</p><p><em>Let’s stay in touch. </em><a href="https://www.linkedin.com/in/serhiy-andrejev/"><em>LinkedIn</em></a><em> | </em><a href="https://medium.com/@serhiy.andrejev"><em>Medium</em></a></p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Get exclusive access to writing opportunities and advice in our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>community Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5798a20c50c" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/solid-principles-in-python-d5798a20c50c">SOLID Principles in Python</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLID Principles. How do you organize your code?]]></title>
            <link>https://medium.com/@serhiy.andrejev/solid-principles-how-do-you-organize-your-code-18bdaa19bb7c?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/18bdaa19bb7c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[solid]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Sun, 23 Jan 2022 16:36:05 GMT</pubDate>
            <atom:updated>2022-01-23T16:36:05.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqOJta8YqmJ1jLWFL-yBVA.jpeg" /><figcaption>Creepy image by author.</figcaption></figure><p>Hi all. Today we are going to figure out how to organize our code. Let’s go over the rules of SOLID principles.</p><p>Simon says <strong>SINGLE RESPONSIBILITY PRINCIPLE</strong>.</p><p>I think it sounds pretty hard, but any of those people who can boast of perfectionism in their directories on a computer will be able to adhere to this principle quite easily.</p><p>Let’s imagine simple boxes. You have bananas, potatoes, and nuts. You put bananas in the first box, potatoes in the second, and nuts in the third. Then they bring you apples and carrots. Throwing apples to bananas and carrots to potatoes sounds like a perfectionist’s nightmare. We’ll have two more boxes where we put apples and carrots separately. And then we’ll put boxes of fruit in the left corner of the room, vegetables in the center, and the “other stuff” category on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EQGgX8bJBtF7JKZEKxoNJw.jpeg" /><figcaption>image by author</figcaption></figure><p>With the folders on the computer, it’s about the same. We’ll put different episodes of different seasons of our favorite show in the ‘season #’ folder, then in the ‘series_name’ folder, and then in the ‘media’ folder.</p><p>This way we achieve orderliness and class-independence.</p><p>One more complicated principle. <strong>Open-closed Principle</strong></p><p>I think you see that our coconut itself is a nut? So, if we put a huge pile of different boxes of nuts in the “other,” and then we have to put a box of mushrooms in there. What would happen? <strong>Chaos would reign over our land. Eventually space-time collapse will begin, and we will no longer be able to live normally.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-4TZk5YBTAPqpCc3Ete0Q.jpeg" /><figcaption>image by author</figcaption></figure><p>We have a fairly simple conclusion. Prepare for such “upgrades” in advance. Think in advance about what will be in your system.</p><p>Liskov says “The entities that exist in our program must be easily replaceable into subtypes and the program must work correctly.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFuSGOi6-OD-CYg9ixNbJw.jpeg" /><figcaption>Boxlin wall. 1984. Image by author</figcaption></figure><p>To be extremely simple in my statements, just don’t put vegetables in the fruit. If your program expects to get fruit, then let it have bananas, apples, pears, and everything is fine, but as soon as you feed it a tomato, nothing will work right away. Your tomato should only lie in vegetables, and even though it tastes, tastes, and colors like a red apple, don’t put it in the vegetable folder under any circumstances.</p><p>Indiana Jones suffers from the missing of the <strong>Interface Segregation Principle</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RK7E9Gc3RS-2soA3hiapCA.jpeg" /><figcaption>Indiana tries to buy apples. Image by author.</figcaption></figure><p>Let’s get right to the analogy. If we need to cook potatoes and apples, we don’t have to create a “get apples and potatoes” function. We have to get the apple through a separate interface (the lid) of the apple box, and we have to get the potato out of the potato box in the same way.</p><p>Don’t make Indiana sad.</p><p>Diving into <strong>dependency inversion principle.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWrcP1Khzl38JDruD3zEfw.jpeg" /><figcaption>Deathstars. Image by author</figcaption></figure><p>It’s a pretty simple principle. Let me give you an analogy right away. Regardless of whether the death star has that vulnerable hole or not, in one way or another, it remains a death star. Even if the death star has a different color but is still a death star, it will still be a death star.</p><h3>Conclusion</h3><p>Attention! Thank you for your attention. Stick to these principles and your code will be much better structured, allowing you to avoid mistakes when you have to rewrite everything from scratch.</p><p>Good luck with your technical creativity.</p><p><em>Let’s stay in touch. </em><a href="https://www.linkedin.com/in/serhiy-andrejev/"><em>LinkedIn</em></a><em> | </em><a href="https://medium.com/@serhiy.andrejev"><em>Medium</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18bdaa19bb7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deal with the pet-proejct. Preparing stage.]]></title>
            <link>https://medium.com/@serhiy.andrejev/how-to-deal-with-the-pet-proejct-preparing-stage-54195377596e?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/54195377596e</guid>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Fri, 14 Jan 2022 20:27:59 GMT</pubDate>
            <atom:updated>2022-01-14T20:27:59.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YX_TVNRj9FA_r30gQ5SrPg.png" /><figcaption><a href="https://www.pexels.com/ru-ru/@tranmautritam">Author</a> of photo. Edited by author of article</figcaption></figure><p>Hello all. In this article we’re going to find out what a pet-project is, why you need one and how to start one and implement it in a comfortable way. My advice may seem trivial to you, but many people don’t pay attention to it. First of all, let’s understand what a pet-project, aka side project, is.</p><p>A pet-project is a project that you do on your own or with a team in addition to your main job/study for your soul or for extra practice.</p><p>What can it do for you?</p><ul><li>Pet-project helps you gain <strong>new skills</strong> and <strong>reinforce</strong> those you have already acquired.</li><li>Helps demonstrate your skills to <strong>employers</strong> if you do not yet have commercial experience</li><li>It helps to create <strong>initial versions</strong> of a larger product.</li></ul><h3>Introduction</h3><p>There is a definite list of problems that many professionals are likely to encounter and that newcomers are likely to encounter. These problems often lead to the project simply becoming forgotten by the author at the outset. These problems are mostly related to non-technical aspects of implementation. We will now talk about them.</p><h4>Time</h4><p><strong>T</strong>his is probably the most acute problem if you are working 9–5. Especially if you do not work remotely and the journey to work and preparation for the day takes several more hours. However, the problem is not just a lack of time, but on the contrary, its illiterate management. Often people start devoting <strong>too much time </strong>to a project, which leads to rather rapid <strong>fatigue</strong> and a loss of <strong>inspiration</strong>.</p><h4>Inspiration</h4><p>The second problem is inspiration. It can appear quickly during the idea formation phase, but it can also end quickly. Missing inspiration can disrupt your normal work schedule, and blindly following the impulse of inspiration can quickly lead to fatigue.</p><h4>Energy</h4><p>I believe each of us has begun to procrastinate on the basis of fatigue. Fatigue can discourage any inspiration, and it will take you a long time to get back to the project, because you’ll just decide to rest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7-AqRZOybLziY80opyg8Q.png" /></figure><p>I hope that I have emphasized the relationship between these issues as much as possible. In order for the project to be successful, we must try to keep track of each of our indicators. It’s like an RPG or a Sims game.</p><p>Let’s move on to the process of preparing to create our project.</p><h3>Preparing to run a project.</h3><h4>Formation of an idea.</h4><p>The very first remark at this point. You shouldn’t do it lying on the bed before you go to sleep obeying your fantasy. It is better to write it down and continue the next day. Immediately we move on to the process of “note-taking”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3bzEltoKyHuEkvHZrhxog.jpeg" /><figcaption><a href="https://www.pexels.com/ru-ru/photo/iphone-696887/">Author</a></figcaption></figure><p>It is worth doing this at the start of your project, because changing the idea during implementation can be time-consuming. By writing down your task, you are <strong>fixing the result </strong>you want, which you will move towards with more fractional tasks. Overall, the process is pretty simple:</p><ul><li><strong>Write</strong></li><li><strong>Read</strong></li><li><strong>Upgrade</strong></li></ul><p>After a few iterations you will already know what you want to do. Decide what it will be: web application, mobile/PC application, API, research.</p><p>Describe the tasks your product will solve. Add new functionality, but try not to go overboard. Remember that you’re either alone or with a small team, you’re pretty short on time, and working long hours without results will put out the fire of your inspiration.</p><p>Try to break up your project into a large number of <strong>small</strong> tasks that you will perform. This will help you allocate your time more flexibly. But, <strong>don’t get stuck</strong> at this point.</p><h4>Technical questions</h4><p>Try to decide on the basic technologies that you will also apply at the start. Finding information about a new one and redoing the code may discourage you.</p><p>Get the documentation links together in one place. Collect interesting implementation ideas and guidelines that you may find useful as you implement your project.</p><p>It is likely that you will find a similar project on <a href="https://github.com/">GitHub</a>, from which you can borrow some elements of your product.</p><h4>Time management</h4><p>As I mentioned earlier, the problem with time is not only due to its lack, but also to its poor organization. With the lack of time is not likely to cope and I will not suggest getting up at 5 am. But you can try to divide tasks into even smaller chunks, for which you might have <strong>15–30 minutes</strong> a day to complete them.</p><p>The other side of the problem, this huge desire to do everything at the same minute. The fact that you sit through the weekend for a project only increases the risk of abandoning the project. Prolonged work hours are likely to lead you to procrastination and loss of attention. Pretty clichéd tip from me, but:</p><blockquote>A well-organized workflow of an hour or two a day will yield far more results than midnight attempts to find the answer you need on StackOverflow.</blockquote><p>Try to observe your optimal <strong>mode of work</strong>. You’ll want to spend time with friends or a boyfriend/girlfriend anyway. And if you had plans to work that day from morning till night, you’re more likely to just do nothing and pretend for yourself that you “forgot”. Taking at least <strong>15–30 minutes</strong> is <strong>better than nothing</strong>.</p><h3>Conclusion</h3><p>Let’s take a quick recap. The best way not to quit running your pet-project is at the very beginning. Try not to give yourself a reason to quit.</p><ul><li>Try to anchor your task at the very beginning.</li><li>Choose a schedule that is comfortable for you, and at the same time as stable as possible.</li><li>Try not to be overworked, it leads to loss of interest.</li></ul><p>Good luck with your technical creativity.</p><p><em>Let’s stay in touch. </em><a href="https://www.linkedin.com/in/serhiy-andrejev/"><em>LinkedIn</em></a><em> | </em><a href="https://medium.com/@serhiy.andrejev"><em>Medium</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54195377596e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSMnx: The Fastest Way to Get Data from OpenStreetMap]]></title>
            <link>https://python.plainenglish.io/osmnx-the-fastest-way-to-get-data-from-openstreetmaps-731419d4dc31?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/731419d4dc31</guid>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Mon, 10 Jan 2022 14:32:53 GMT</pubDate>
            <atom:updated>2022-01-12T14:58:39.987Z</atom:updated>
            <content:encoded><![CDATA[<h4>Handle geodata in Python using the <a href="https://osmnx.readthedocs.io/en/stable/">OSMnx</a> library and <a href="https://geopandas.org/en/stable/">GeoPandas</a>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YwMQxMb7e1wbMUZWmGRbkg.png" /><figcaption>Kyiv, Ukraine. Image by author</figcaption></figure><blockquote><em>level: easy | language: Python | tech-stack: OSMnx, GeoPandas</em></blockquote><p>Hello, World! In this article, we’ll look at handling geodata using the <a href="https://osmnx.readthedocs.io/en/stable/">OSMnx</a> library and <a href="https://geopandas.org/en/stable/">GeoPandas</a>. We will get the data from <a href="https://www.openstreetmap.org/">OpenStreetMap</a> (later called OSM) and draw beautiful maps that you can easily print and hang on your wall. Or use black magic and use them for your DS project.</p><p>First, let’s find out what OSMnx is. It’s like networkx only for OSM with blackjack and data. *facepalm*</p><p>According to the official OSMnx documentation, this is:</p><blockquote>OSMnx is a Python package that lets you download geospatial data from OpenStreetMap and model, project, visualize, and analyze real-world street networks and any other geospatial geometries. You can download and model walkable, drivable, or bikeable urban networks with a single line of Python code then easily analyze and visualize them. You can just as easily download and work with other infrastructure types, amenities/points of interest, building footprints, elevation data, street bearings/orientations, and speed/travel time.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ln-FO3Z-PUOCGSic7E1chA.png" /><figcaption>Image by Author</figcaption></figure><h4>Installing</h4><p>Let’s install this library. The installation will be a little tricky for beginners, but by following the instructions you should be fine. I use Windows and Anaconda to manage my environments. These are the environments the instructions will be for, as on Linux everything is a bit easier, and just use a search engine to find installation information.</p><p>To begin with, we need <a href="https://gdal.org/">GDAL</a> and <a href="https://pypi.org/project/Fiona/">Fiona</a>. To date, I have never been able to install them through conda without errors, and every time I have to come to download the WHL files and install them manually. Each time I got the source files from <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal"><strong><em>this site</em></strong></a><strong><em> (Look here if you just try to find a link)</em></strong>. Find the right version of python for you and your system. Download the files and install them one by one using the command:</p><pre>pip install path/to/file/GDAL_file.whl<br>pip install path/to/file/Fiona_file.whl</pre><p>If you have problems installing Fiona after installing GDAL and GDAL itself is not found during the installation process, try simply restarting your computer. Then all paths will be updated and you will be able to install Fiona.</p><p>After you and I have prepared, install OSMnx using the command:</p><pre>pip install osmnx</pre><h4>Using</h4><p>Congratulations on the hard way of samurai, you have successfully installed GDAL and installed OSMnx. Let’s start exploring the library. Let’s try to get to any city.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/53e3b27cb8d2ef6b80c4c62278710a3d/href">https://medium.com/media/53e3b27cb8d2ef6b80c4c62278710a3d/href</a></iframe><p>Enter the name of the region you are looking for and pass it to the geocoder function. The output is <strong>geopandas.DataFrame</strong> with all the object’s characteristics and its geometry/coordinates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*lUI8_7zSKo4ZnF7pzp7rxw.png" /></figure><p>We can collect data within a region with the function <strong>geometries_from_place</strong>, passing in our <strong>region_name</strong> as well, but I’ll demonstrate another option with a polygon restriction so that you can consider more of the library’s functionality. Also, we will get roads by graph module.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0319cf028ea9811669bff9cb7882ee8d/href">https://medium.com/media/0319cf028ea9811669bff9cb7882ee8d/href</a></iframe><p>For a complete list of tags and categories, visit the <a href="https://wiki.openstreetmap.org/wiki/Tags">OpenStreetMap</a> website.</p><h4>Plotting</h4><p>Let’s put all our data on one card and get a nice image to print out and hang as a poster in your room. <br>We will plot the graphs using the built-in graphing tools in <strong>GeoPandas</strong>. They work the same way as in pandas.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4df298d3347df855fe93959fd1347d4/href">https://medium.com/media/e4df298d3347df855fe93959fd1347d4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OdAmNDM0CKWWXMDpgiezlA.png" /><figcaption>Oklahoma City, USA. Image by Author</figcaption></figure><h4>Conclusion</h4><p>In this article we met a very cool library, <a href="https://osmnx.readthedocs.io/en/stable/">OSMnx</a>, which makes working with the OpenStreetMap source very easy. No more pasta code is needed to get the information. I suggest you read the full functionality using the official <a href="https://osmnx.readthedocs.io/en/stable/">documentation</a> of the library and you will see that it can almost completely replace requests and string queries.</p><p>Colleagues, I’m just beginning my journey as a writer on this platform and I’d really appreciate it if you’d leave feedback on the article and also subscribe.</p><p><em>Let’s stay in touch. </em><a href="https://www.linkedin.com/in/serhiy-andrejev/"><em>LinkedIn</em></a><em> | </em><a href="https://medium.com/@serhiy.andrejev"><em>Medium</em></a></p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Get exclusive access to writing opportunities and advice in our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>community Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=731419d4dc31" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/osmnx-the-fastest-way-to-get-data-from-openstreetmaps-731419d4dc31">OSMnx: The Fastest Way to Get Data from OpenStreetMap</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a Python Telegram Bot the Easy Way Using the Telebot Library]]></title>
            <link>https://python.plainenglish.io/python-telegram-bot-in-an-easy-way-90b52276fb2c?source=rss-2b2e83ac831c------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b52276fb2c</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Serhiy Andrejev]]></dc:creator>
            <pubDate>Thu, 06 Jan 2022 13:14:54 GMT</pubDate>
            <atom:updated>2022-01-07T13:11:28.533Z</atom:updated>
            <content:encoded><![CDATA[<h4>A complete guide on how to build a Telegram bot with the telebot library using Python.</h4><blockquote>level: easy | language: python | tech-stack: telebot</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*3KNNFfm-L4rs0ewrp-IfqQ.jpeg" /><figcaption>image by author</figcaption></figure><p>Very quick answers to “why” questions.</p><ul><li>There is an idea, but do you understand that the functionality will be too small for the application? — bot</li><li>Do you need to make a prototype quickly? — bot</li><li>Want to make something small for your daily needs in python? — bot</li></ul><p>So, hello everyone, I’m new here and set out to fill in the lack of information I’ve been looking for here, but haven’t found. Today we’re going to take a look at creating a telegram bot using the <a href="https://github.com/eternnoir/pyTelegramBotAPI">telebot</a> library.</p><p>First, you need to get a token from the bot: @BotFather. After that, you should install the library.</p><pre>pip install pyTelegramBotAPI</pre><p>And so. Let’s start coding. First, we need to respond to the bot’s start command.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/119ef87f5b4e9f44b51a7de4eaec5da7/href">https://medium.com/media/119ef87f5b4e9f44b51a7de4eaec5da7/href</a></iframe><p>Let’s try to write a bot game for guessing numbers from 0 to 5. Let’s start by processing the greeting and displaying the “Play” button after the greeting. Let’s get acquainted with the <strong>register_next_step_handler</strong> command to move to a new “step”. We will also get acquainted with the keyboard markup, which will simplify the work with the bot for our users.</p><p>First, we need to determine what we should have in the code. Totally trivial hint, but if you are a novice programmer, or you find it difficult to navigate in the vast number of tasks being, then draw diagrams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJN2hbnUj1cTdChxejpajQ.png" /><figcaption>user-flow diagram</figcaption></figure><p>Keep all the code at once with comments. A more detailed description of the code comes after the gist.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f582770c462a1da8aab11a6ba2f80897/href">https://medium.com/media/f582770c462a1da8aab11a6ba2f80897/href</a></iframe><p>Let’s write the text about our bot in a separate variable to output it to the user.</p><p>In our initial send_hello function, we create a keyboard and fill it with the “Play” and “About” buttons on lines 25–27. We receive a message from the user, which he will write by pressing our buttons. This is done simply by assigning the value from the bot.reply_to function to the message variable. In the same function, we pass our keyboard markup to reply_markup.</p><p>Then, in line 32 we set the following play_or_about handler and pass our message from the user to it.</p><p>In the play_or_about function, we make a simple separation with conditional constructs. If the function receives “Play” or “One more try” (which we will send further if the user wants to try his luck again), we generate a random number and ask the user for his guess.</p><p>If the user wants to know about the bot, we display information about it and ask what he wants to do again, then we loop the play_or_about handler.</p><p>Sometimes users decide not to use the keyboard and try to type some messages of their own which we don’t know how to respond to. We reply that we don’t know what to do and suggest that he use our buttons again. Again we return his response to the same play_or_about handler.</p><p>We determine whether our user won or lost with simple conditional constructs. Suggest that the user try to play again, or display information about the bot. We pass his response to the play_or_about function, so we don’t have to write new handlers.</p><h4>Conclusion</h4><p>Well, I propose to summarize. Today we took apart the telebot library on an extremely simple level.</p><p>I suggest that you look at it in more detail by examining its documentation. <br>The capabilities of this library allow you to quickly develop bots for telegram for your daily tasks, client work, etc.</p><h4>A little bit about the author</h4><p>I am just beginning my journey as a writer on this site and will try to stick to the schedule: 1 week = 1 article, except when the work involves a detailed, exhaustive description. The main focus will be Data Science, as this is my main profession. This article was a “warm up” article :)</p><p>I will be glad of criticism and advice. Let’s stay in touch and subscribe so you don’t miss anything!</p><p><a href="https://www.linkedin.com/in/serhiy-andrejev/">LinkedIn</a> and the <a href="https://medium.com/@serhiy.andrejev">Medium</a>.</p><p><em>More content at </em><a href="http://plainenglish.io/"><em>plainenglish.io</em></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><em>free weekly newsletter</em></a><em>. Get exclusive access to writing opportunities and advice in our </em><a href="https://discord.gg/GtDtUAvyhW"><em>community Discord</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b52276fb2c" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/python-telegram-bot-in-an-easy-way-90b52276fb2c">Create a Python Telegram Bot the Easy Way Using the Telebot Library</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>