<?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 Dom PL on Medium]]></title>
        <description><![CDATA[Stories by Dom PL on Medium]]></description>
        <link>https://medium.com/@dompl?source=rss-2cec8c3f4533------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6vi5qQiEkuUVLFZbkkbQOA.jpeg</url>
            <title>Stories by Dom PL on Medium</title>
            <link>https://medium.com/@dompl?source=rss-2cec8c3f4533------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:52:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dompl/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[No code automated web scraping]]></title>
            <link>https://medium.com/low-code-for-advanced-data-science/no-code-automated-web-scraping-fa37638e5ba8?source=rss-2cec8c3f4533------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa37638e5ba8</guid>
            <category><![CDATA[knime]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[automate]]></category>
            <category><![CDATA[web-scrape]]></category>
            <category><![CDATA[getting-started]]></category>
            <dc:creator><![CDATA[Dom PL]]></dc:creator>
            <pubDate>Sun, 13 Mar 2022 21:47:17 GMT</pubDate>
            <atom:updated>2022-04-01T07:48:49.618Z</atom:updated>
            <content:encoded><![CDATA[<h4>GETTING STARTED | WEB SCRAPING | KNIME ANALYTICS PLATFORM</h4><h4>From retrieving Bitcoin prices to scheduling a batch script in just a few clicks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*QceTU7DGDgemGoCQv4QL1g.png" /><figcaption>KNIME workflow to scrape Bitcoin prices [Author].</figcaption></figure><h3>Automating data science using KNIME no/low code tool</h3><p>A few years back I stumbled into coding after finding the Record Macro button in Excel, and I enthusiastically set about semi-automating tasks for myself and colleagues. But for many, a few lines of code may as well be hieroglyphics, and I soon found myself inundated with requests to modify those tools. So since then I’ve kept my eye out for software that can do complex things, yet be simple enough for anyone to use.</p><p>I’ve tried numerous. Not many of them can truthfully claim to be free, open source, suitable for non-coders, and capable of performing the full suite of data science tasks. Yet <a href="https://www.knime.com/knime-analytics-platform?utm_source=medium&amp;utm_medium=social&amp;utm_term=&amp;utm_content=&amp;utm_campaign=Community">KNIME</a> is one that can. And with some simple steps you can automate it too!</p><p>In this article I’ll take a simple KNIME workflow — one that web scrapes and then tracks Bitcoin prices over time — and show how it can be automated using Windows Task Scheduler and a single line of Batch script.</p><p>You can do similar on Mac and Linux computers but this article is purely Windows focused.</p><h3>Part 1: A KNIME Workflow to web scrape bitcoin prices</h3><p>Any KNIME workflow can be automated, but in this instance I’ve decided I want to track Bitcoin prices.</p><p>I’ve shared a workflow called <em>BitcoinPrices_Local_v1</em> on the <a href="https://kni.me/s/7m-SSv8ApOvl9BJ1">KNIME Hub</a>. It scrapes the latest Bitcoin price and adds it to a CSV file. If you don’t already have KNIME you can download if from <a href="https://www.knime.com/downloads?utm_source=medium&amp;utm_medium=social&amp;utm_term=&amp;utm_content=&amp;utm_campaign=Community">knime.com/downloads</a>.</p><p>Once KNIME is open, simply drag and drop the workflow from the KNIME Hub to your LOCAL workspace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*W9FTTaERVqYXzyh4vBM_nA.png" /><figcaption>Downloading the shared workflow to KNIME [Author].</figcaption></figure><p>If you’re new to KNIME each icon is called a node, and each node performs a task. To see how a node is setup right click it and select ‘Configure’. And you can run a node by right clicking and selecting ‘Execute’. Despite KNIME being fairly intuitive I recommended this<a href="https://www.knime.com/getting-started-guide?utm_source=medium&amp;utm_medium=social&amp;utm_term=&amp;utm_content=&amp;utm_campaign=Community"> getting-started-guide</a> to provide you with some foundational knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYsoDqHTSMCDBJOGpXkjuQ.png" /><figcaption>The key elements of the shared workflow [Author].</figcaption></figure><p>Together, the nodes do the following:</p><ul><li>Create 2 columns, one showing the current date/time, the other the name of the fund (Bitcoin_USD)</li><li>‘Scrape’ all the data from the Yahoo Finance Bitcoin webpage</li><li>The XPath node then takes only the portion of the webpage that’s wanted — the latest Bitcoin value — and adds it to a column called Price</li><li>Because the webpage data is in text/string format the Price is then converted to a decimal/double data type</li><li>The row of data is then added to a CSV file in the folder C:/temp. If the file or folder doesn’t already exist then KNIME creates it</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*fW1rjXZskHf5GljKc8s-tg.png" /><figcaption>The single row output that is then added to the CSV file[Author]</figcaption></figure><p>If you’re interested there’s an <strong>Appendix with the exact steps to scrape the webpage</strong> at the end of the article<strong>.</strong> I’ll also be writing a separate article showing you how, by building on this workflow, you could scrape multiple funds or currencies and even send alerts if the price is above/below a certain threshold, so follow me to not miss out.</p><blockquote><strong><em>Note.</em></strong><em> Websites occasionally change how they’re coded so whilst the XPath node gets the right data as of March 2022 I can’t guarantee it will do so forever.</em></blockquote><h3>Part 2: Run the workflow from a single line of Batch script</h3><p>The KNIME Analytics Platform tool doesn’t have scheduling functionality built in, but you can automate it easily since KNIME workflows can be run from a Batch script, and Batch scripts <em>can</em> be scheduled.</p><p>I’ve also shared on the KNIME Hub the Batch script to run the workflow. Once downloaded you can view it by right clicking it and selecting ‘edit’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EbQptvqpOWxm2PBL0L2XA.png" /><figcaption>Image of the shared Batch script [Author]</figcaption></figure><p>The script works by:</p><ol><li>Telling your computer where the KNIME application is [The first red box]</li><li>Defining some parameters (e.g. `-nosave` means you don’t want the workflow saved after execution)</li><li>Telling KNIME where the workflow is that you wish to be run [The second red box]</li></ol><p>For <strong>#1</strong> it will almost certainly be the same as in first the red box. For <strong>#3</strong> this will vary depending on how you’ve setup KNIME. To find yours right click the LOCAL workspace in the KNIME Explorer, then copy the Local path, and paste it into the Batch script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*Rs2Ghk8g7T95yN8PWN3qrA.png" /><figcaption>Identifying the path to the KNIME workspace [Author]</figcaption></figure><blockquote><strong><em>Note.</em></strong><em> Different parts of the script require either back `\` or forward `/` slashes between folders — getting this bit right is critical.</em></blockquote><p>Now you can double-click the Batch script to run it. Prior to doing so, though, ensure the workflow is closed in KNIME otherwise it will error saying the “Workflow is locked by another KNIME instance”.</p><p>With a few extra lines of code you can make the Batch script more helpful, such as alerting you once it’s complete, informing when the workflow started/stopped, and running multiple workflows in one script. I plan to soon write about this, as well as some troubleshooting tips — do follow me if you’re interested.</p><blockquote><strong><em>DISCLAIMER.</em></strong><em> For my more complex and critical tasks I actually use the </em><a href="https://www.knime.com/knime-server?utm_source=medium&amp;utm_medium=social&amp;utm_term=&amp;utm_content=&amp;utm_campaign=Community"><em>KNIME Server</em></a><em> application on a Pay-As-You-Go basis on AWS: It’s got built in scheduling functionality, and it provides all the benefits of cloud computing (e.g,. more processing power) for minimal cost. But if you’re just starting out on your data science journey, or you just have a small task you wish to automate then this approach will be just right for you.</em></blockquote><h3>Part 3: Schedule the Batch script</h3><p>Task Scheduler is a tool that’s built into Windows. To open it press the Windows button and simply search for it. Once opened select ‘Create Basic Task…’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*SEudcQKIyeFLJ3hV08Kvjg.png" /><figcaption>Main page of Task Scheduler tool [Author].</figcaption></figure><p>Follow the wizard to give the task a name, state when you want it to start, point it to the Batch script you want to run, etc. If you want it to run multiple times a day then check the box to open the Properties dialogue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*1Z-6guzOhoRX9kf6MzoCvw.png" /><figcaption>Example setup from Basic Task Wizard [Author].</figcaption></figure><p>Within the dialogue box go to the Triggers tab, press Edit, and then define how often you wish to repeat the task, in this case every 5 minutes throughout the day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*dAj23Vi5SczaC29k35us2Q.png" /><figcaption>Defining the task should be run every 5 mins throughout the whole day [Author].</figcaption></figure><p>You should now be able to see it setup correctly with Status ‘Ready’ in the main pane of the Task Scheduler</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6mXbVMHVfbRhAQ2XrGtsQ.png" /><figcaption>Confirmation the Task is Ready to run [Author].</figcaption></figure><h3>Congratulations!</h3><p>Your workflow is now automated for the cost of nothing more than a few minutes of your time.</p><p>Hopefully my instructions have been flawless and this has prompted you to consider what else you might now wish to automate. Have a play around with KNIME and see what you can produce — suffice to say for me it’s meant my Excel macro days are thankfully well and truly in the past!</p><h4>Appendix: Steps to scrape the right part of the web page</h4><p>The following steps will enable you to scrape your desired data from a web page:</p><ol><li>Identify the part of the webpage you want data from, in my case the live Bitcoin price</li><li>Right click, select ‘Inspect’ the page, then click the ‘Select element’ button at the top left of the pane that’s opened</li><li>Navigate to the part of the webpage you want data from and click on it — this then highlights the appropriate line of code in the right hand pane</li><li>Right click that line of code then select XPath — an XPath is a way to identify the location of that portion of the web page</li><li>On the KNIME XPath node right click to configure then select ‘Add XPath’</li><li>Paste the copied XPath into the input box using Ctrl+V</li><li>Run the node to check the output. If no output value (i.e., The result is `?`) then check you’ve copied the XPath of the right element. In this case the element typically is a `fin-streamer`; if it’s a `span` it is likely to return no value.</li></ol><p>Images to support the above steps step are below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*eajIrniKyBvTIbkl3ngeVg.png" /><figcaption>Yahoo Finance Bitcoin web page with circled element that we want to scrape [Author].</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*LYImcEj3YqFD9n6nWh0-PQ.png" /><figcaption>Select element button circled of the Inspect pane [Author].</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*sr3QeKZbjzP6iVpKpEbVbA.png" /><figcaption>Highlighted code (within arrows) of the selected element [Author].</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*zGiu60hYMxhV7_IdZdeE3g.png" /><figcaption>How to copy the XPath of the selected element [Author].</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*3PDS_tb6Oi7r-giRRWrk6g.png" /><figcaption>The configuration pane of the KNIME XPath node [Author].</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*xY17DdLkDiXFFRQcJqlmwA.png" /><figcaption>Selected XPath pasted in using Ctrl+V [Author].</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa37638e5ba8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/low-code-for-advanced-data-science/no-code-automated-web-scraping-fa37638e5ba8">No code automated web scraping</a> was originally published in <a href="https://medium.com/low-code-for-advanced-data-science">Low Code for Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do you evacuate Kabul Airport?]]></title>
            <link>https://dompl.medium.com/how-do-you-evacuate-kabul-airport-a40c17f1ca56?source=rss-2cec8c3f4533------2</link>
            <guid isPermaLink="false">https://medium.com/p/a40c17f1ca56</guid>
            <category><![CDATA[afghanistan]]></category>
            <category><![CDATA[taliban]]></category>
            <category><![CDATA[evacuation]]></category>
            <category><![CDATA[military]]></category>
            <category><![CDATA[kabul]]></category>
            <dc:creator><![CDATA[Dom PL]]></dc:creator>
            <pubDate>Sat, 21 Aug 2021 20:07:11 GMT</pubDate>
            <atom:updated>2021-08-21T20:07:11.601Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-MNvfEf6FE7xyxkRtjMhg.jpeg" /><figcaption>Crowds at Kabul Airport — 16 Aug 2021 [© 2021 Maxar Technologies]</figcaption></figure><p>“<em>Sir, I’m afraid I’ve bad news. The Taliban are now entering Kabul. We need to speed up evacuation efforts, and we may need to do it under fire. And don’t forget, the President insists we’re all out by 31 August, just 16 days away.</em>”</p><p>You’re General Mark Milley (Chairman of the US Joint Chiefs of Staff), it’s 01:00 on Sunday 15 August, and you’ve just been woken up to this news.</p><p>So how might you do it?</p><h3>A hostile environment is the last thing you need</h3><p>NEOs (Non-Combatant Evacuation Operations) are complex at the best of times: Understanding who’s eligible for evacuation is rarely clear, military and diplomatic teams need to work in unison which they’re not used to, and other nations attempting to do the same can often confuse the situation.</p><p>And now it looks like you’ll be conducting NEO in a hostile environment. You’re thankful you’ve already got about 3,000 US troops at Kabul Airport with more on the way, and there are 600 British paras too, but no matter how many troops you have available the city is so close by that it drastically reduces your defensive options. You decide we must do everything possible to keep prevent conflict erupting.</p><p>You break your mission into 3 phases:<br>1. Secure Kabul Airport as an evacuation site<br>2. Evacuate all US nationals and SIV (Special Immigrant Visa) personnel and their families<br>3. Withdraw all forces from the airport and Afghanistan</p><p>You trust your ground commander to do #1. #3 can wait for now (but even thinking about it is making you feel sick), so you focus on #2, the evacuation itself.</p><h3>A ‘Quick Estimate’ of the problem</h3><p>‘Estimates’ are part of the military decision making process. How thorough your Estimate needs to be depends on the task and the time available. Right now, time is of the essence, and with ‘the enemy at the gates’ you don’t even feel you’ve time to gather your staff, so you conduct some quick analysis and put together the outline of a plan.</p><h4>How many people do I need to evacuate a day? [The Demand]</h4><p>You note the following:</p><ul><li>There are 16 days to the August 31st withdrawal deadline</li><li>You allow 2 days to secure the airport [14 days remaining]</li><li>You allow 3 days after evacuation to withdraw all troops [11 days remaining]</li><li>You take the upper estimate of <a href="https://www.reuters.com/world/asia-pacific/desperation-us-scours-countries-willing-house-afghan-refugees-2021-08-13/">80,000 US Nationals and SIVs requiring evacuation</a></li><li>You add on 25% for us helping evacuate people from other nations, and people that ‘slip through the net’ [100,000 to evacuate]</li><li>With land borders rapidly closing you assume all people need evacuating by air</li></ul><p>You therefore calculate <strong>you need to evacuate an average of 9,000 people per day</strong> [100,000 people in 11 days].</p><h4>How many can we evacuate a day? [Our Capacity]</h4><ul><li>You assume the airport is too hostile for civilian aircraft to be used</li><li>You review your aircraft options and their passenger capacities: <br> — C-5 Galaxy: About 350<br> — C-17 Globemaster: About 200<br> — C-130 Hercules: About 100<br>Whilst you know you could cram in more by removing seating you’d rather not have to do that yet. And with C-17s your preferred aircraft type you assume an average of 200 per aircraft.</li><li>It’s a 3hr flight to the nearest airbase (Qatar) from Kabul, and with an estimated 2 hour turnaround each side that’s a 10 hour round trip</li><li>Essential maintenance and crew rest means you’ll assume you can operate only 16 hours per day</li><li>Each aircraft can therefore move 320 people per day [200 passengers * 16 hours working a day / 10 hour round trip]</li></ul><p>To evacuate 9,000 per day you calculate <strong>you need 28 aircraft </strong>[9,000 people with each aircraft moving 320]. That’s possible — you’ve 220 C-17s after all — but getting them there soon will not be easy. You send a ‘Warning Order’ to your Air Force Generals that they’ll need to make them available.</p><p>9,000 a day still seems tough since you think the security situation at the airport may hamper flights out. Heck, you think that if you achieve just half that a day you’ll be doing well, so if asked by the media you’ll say you’re aiming for <a href="https://www.reuters.com/world/asia-pacific/us-press-with-afghan-evacuations-over-coming-weeks-pentagon-2021-08-17/">5,000–9,000 per day</a>.</p><h4>Planning the evacuation</h4><p>Some militaries use ‘Effects Schematics’ as a simple way to identify what ‘effects’ they want to have and where. You quickly draw one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-zeDO4DupdL5zRrSRTLhA.png" /><figcaption>Effects Schematic [Author created]</figcaption></figure><ul><li><strong>Protect/Secure:</strong> A critical enabler, the airport perimeter (and possibly beyond) needs to be secure for all other elements to take place. [<em>Ground commander led</em>]</li><li><strong>Receive:</strong> The safe reception of potential US Nationals and SIVs at the airport. [<em>Ground commander led</em>]</li><li><strong>Process/Screen:</strong> To ensure only eligible personnel are evacuated. Any ineligible that fail screening will need to be safely returned. [<em>Diplomatic team led</em>]</li><li><strong>Embark:</strong> We need aircraft available, and eligible personnel to be loaded onto them ready for take-off. Given the likely deteriorating security situation you consider this your ‘Main Effort’, namely the area that initially needs most focus and resources. [<em>USAF led</em>]</li><li><strong>Depart:</strong> Safe and speedy coordination of Air Traffic Control / Runway operations. [<em>USAF led</em>]</li><li><strong>Disembark/Onward Processing:</strong> Takes place once evacuees arrive in a safe nation. Whilst important, with people safe at this point you delegate it completely but assign Liaison Officers to keep you informed should complications arise. [<em>Diplomatic team led</em>]</li></ul><h4>Shifting the ‘bottleneck’</h4><p>Once Kabul Airport is secure the pace of the evacuation is constrained by whichever element — <em>Receive, Process, Embark, Depart </em>— is operating the slowest. This is your bottleneck, and you predict that at times the bottleneck will shift, which you’ll need to manage.</p><p>By setting up ‘holding areas’ between each stage, and by monitoring how full each holding area is you know where your ‘Main Effort’ needs to switch to. Lots of planes sat empty on the tarmac (or departing half empty) implies Processing is your problem area.</p><p>You then define missions for each element:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_723HyU1oUKXX7pE1hwCaQ.png" /><figcaption>Bottleneck management using holding areas [Author created]</figcaption></figure><h4>Considerations at each stage</h4><p>Whilst you trust your commanders to deliver their elements, you conduct high-level analysis of each element to satisfy yourself that you’re not missing anything. From this you anticipate some additional tasks will fall out.</p><p>There’s many ways to do this, but you choose to build ‘<a href="https://dompl.medium.com/stop-brainstorming-start-problem-solving-a376dafeaf38">split-trees</a>’ to break up each element. Each layer of the split-tree should feed clearly into the next, almost like a mathematical equation.</p><p><strong>‘Receive’:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h34Fr3D0qbaIgLz-gazYLQ.png" /><figcaption>Split-tree of Receive element [Author created]</figcaption></figure><ul><li>Additional Task 1: Create ‘safe lanes’ and/or collect those in Kabul who can’t get to the airport</li><li>Additional Task 2: Be prepared to ensure we can receive people that cannot get to Kabul</li></ul><p><strong>‘Process/Screen’:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X91QiluTuzfYluZg7j4_w.png" /><figcaption>Split-tree of Process element [Author created]</figcaption></figure><ul><li>Additional Task 1: Be prepared to adjust our checking rigour to speed things up if the airport is under threat</li></ul><p><strong>‘Embark’:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r70qkCHGXQ182yC_SsJRmg.png" /><figcaption>Split-tree of Embark element [Author]</figcaption></figure><ul><li>Additional Task 1: Identify and seek approval to use airports that are closer to Kabul</li></ul><p><strong>‘Depart’:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r1yO0Q7f7Amv1mhyn7DhtQ.png" /><figcaption>Split-tree of Depart element [Author]</figcaption></figure><ul><li>Additional Task 1: Be prepared to push out a cordon to permit aircraft with shallow take-off/approach angles to use the airport if anti-aircraft threat intensifies</li><li>Additional Task 2: Be prepared to consider alternate airstrip if the threat rises too much in Kabul</li></ul><h3>Issuing of orders</h3><p>You’ve quickly formulated a plan, created Missions and Tasks for the teams leading each plan, so you call an Orders Group for 0400 to brief the commanders. Relieved you now have a plan you grab a quick cold shower to freshen up, but the phrase “<em>everybody’s got a plan until they get punched in the face</em>” comes to mind, and you hope the Taliban won’t end up giving you a bloody nose.</p><h3>Disclaimer</h3><p>The above is clearly both fictional and overly-simplified but I hope it goes some way to giving you a flavour of the complexity facing our leaders, as well as an example of how they might plan for it.</p><p>I don’t proclaim to be an expert at this — I’ve never conducted Non-Combatant Evacuation Operations — but as a former British Army Officer that’s served in Afghanistan, that’s familiar with NEO doctrine, and who since leaving has somewhat specialised in operational planning, execution and complex problem solving I believe I won’t be too far away from the mark. And if nothing else, I hope this has been food-for-thought.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a40c17f1ca56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Produce great looking flowcharts in seconds]]></title>
            <link>https://dompl.medium.com/produce-great-looking-flowcharts-in-seconds-7f3bea64f2e2?source=rss-2cec8c3f4533------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f3bea64f2e2</guid>
            <category><![CDATA[flowchart]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[mermaid]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[problem-solving]]></category>
            <dc:creator><![CDATA[Dom PL]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 17:30:42 GMT</pubDate>
            <atom:updated>2021-06-20T17:30:42.134Z</atom:updated>
            <content:encoded><![CDATA[<p>Mermaid turns a few lines of text into great looking visuals</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ASrb1lbYNMnP0Z6b" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=medium&amp;utm_medium=referral">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>To illustrate my recent article <a href="https://dompl.medium.com/stop-brainstorming-start-problem-solving-a376dafeaf38">Stop Brainstorming Start Problem Solving | Medium</a> I used <a href="https://mermaid-js.github.io/mermaid-live-editor/">Mermaid</a> to rapidly produced images like the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jg1zGySbEP5-z5nD60YGfA.png" /><figcaption>Example ‘Split-Tree’ built using mermaid</figcaption></figure><p>I could have used Powerpoint — but even when using SmartArt I find it slow and clunky — and Mermaid can convert text into a variety of sophisticated charts and diagrams.</p><h3>This isn’t an introduction to Mermaid</h3><p>Mermaid produces a comprehensive suite of diagrams. I’m not going to introduce you to all that it can do — there’s some links at the end that do — but instead I shall focus on showing you how to produce flowcharts you’d be proud to share.</p><h3>But first some examples</h3><h4>A simple flowchart</h4><p>In just 7 lines of text (plus 2 lines of comments, as preceded by the %% symbol) I can create a simple flowchart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSxB5Pi7EaWR0bLp1L13rg.png" /><figcaption>Simple flowchart built using Mermaid</figcaption></figure><pre>graph LR<br>%% Nodes<br>    1([Start])<br>    2[Look for lost item]<br>    3{Did I find it?}<br>    4([Stop])<br>%% Node links<br>    1 --&gt; 2 --&gt; 3 --&gt;|Yes| 4<br>    3 -.-&gt;|No| 2 </pre><p>To produce it, I do the following:</p><ol><li><strong>Define chart type.</strong> To make this flowchart go from Left-to-Right I enter graph LR. For Top-Down use graph TD</li></ol><p><strong>2. Create the nodes.</strong></p><ul><li>Give each node an alias (for simplicity I’ve used the numbers 1 to 4)</li><li>After the alias enter the node text between brackets, with the type of brackets determining the shape of the node (eg. [Node text] creates a rectangular node, ((Node text)) creates a circular node)</li></ul><p><strong>3. Create the links.</strong></p><ul><li>To add links with arrows between the node(s) use --&gt;</li><li>To change the link style use -.-&gt; for dotted lines, ==&gt; for thicker lines, and exclude the &gt; for no end arrow</li><li>To add text to links place the text inside pipes after the link --&gt; |Link text|</li></ul><h4>A simple Gantt chart</h4><p>And in just 12 lines of text I can create a gantt chart detailing 6 tasks and 3 activities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*qWRgbp0f1YPisWsIJOH_zw.png" /><figcaption>Simple gantt chart built using Mermaid</figcaption></figure><pre>gantt<br>axisFormat %e%b<br>todayMarker on<br>section Activity 1<br>    TaskA	: TA, 2021-06-14, 4d<br>    TaskB	: TB, after TA, 2d<br>section Activity 2<br>    TaskC	: TC, after TA, 3d<br>    TaskD	: TD, after TC, 2d<br>section Activity 3<br>    TaskE	: TE, after TD, 1d<br>    TaskF	: TF, after TE, 2d</pre><p>To produce it:</p><ol><li><strong>Define chart type.</strong> Enter gantt in the top line</li><li><strong>Define axis format.</strong> %e%b shows the day of the month and the abbreviated month name. Many axis formats are available, including %Y-%m-%d for &#39;YYYY-MM-DD&#39;, or if you don&#39;t want an axis at all just use %</li><li><strong>Show time now indicator.</strong> todayMarker on places a vertical line showing the current day on the gantt chart. It can also be set to off</li><li><strong>[Optional] Define the Activities</strong>. This isn’t essential, but I find it useful to quickly see which tasks sit within certain project activities, or belong to certain teams. This is done using the section command</li><li><strong>State the tasks and their parameters.</strong> Each task should sit on its own line with:</li></ol><ul><li><strong>Visible Text.</strong> The text to be visible, such as TaskA</li><li><strong>Alias.</strong> An alias for the task, separated by the visible text using a colon, such as : TA,</li><li><strong>Dependencies.</strong> This defines when the task commences, which is typically either on a fixed date 2021-06-14, or dependent on when other activities are completed after TA</li><li><strong>Duration.</strong> How long the task is planned to take. I’ve used days (eg. 4d) but other options include weeks (eg. 1w), hours (eg. 12h), and minutes (eg. 60m)</li></ul><h3>Making smart looking flowcharts</h3><p>Throughout the rest of this article I’ll be producing a ‘Split-Tree’ — a flowchart like chart — that helps illustrate the root cause of a problem. I’ve written this so you should be able to follow along on your own computer.</p><h4>Step-1. Open the Live Editor</h4><p>Mermaid can be embedded within webpages, it’s pre-built into a number of note taking apps like Joplin, Obsidian, and Typora, and there’s also an online <a href="https://mermaid-js.github.io/mermaid-live-editor/">web editor</a> which is probably the easiest way to get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhhuXYYzC9IvWFf9lmfx5A.png" /><figcaption>Screenshot of the Mermaid Live Editor</figcaption></figure><h4>Step-2. Create the basic flowchart layout</h4><p>First I look to build the basic flowchart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-IR_3doGmXoHSvQERuhfOA.png" /><figcaption>Step-2: Produce the basic layout of the flowchart</figcaption></figure><pre>graph TD<br>%% Nodes<br>    0[Key Variable]<br>    1[Top Variable 1]<br>    2[Top Variable 2]<br>    3[Top Variable 3]<br>    31[Sub Variable 1]<br>    32[Sub Variable 2]<br>    321[Element 1]<br>    322[Element 2]<br><br>%% Links<br>    0 --- 1<br>    0 --- 2<br>    0 --- 3<br>    3 --- 31<br>    3 --- 32<br>    32 --- 321<br>    32 --- 322</pre><p>I do so by defining each node, and then linking them together. Since this flowchart is in fact a hierarchy diagram, I’ve named my aliases based on how they relate to their ‘parent’ node, hence Sub-Variables 1 and 2 have aliases 31 and 32 since their parent is node 3.</p><h4>Step-3. Add additional information below node names</h4><p>Because I’m building a ‘Split-Tree’ to help me solve problems I’m interested in <em>‘Target’</em> and <em>‘Actual’</em> values for each node.</p><p>I can add these in a new line beneath the node text using the &lt;br&gt; HTML element. [For those without coding experience HTML is the programming language that (most) webpages are written in]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6hvrYLeouX6RdQTOHc6EJQ.png" /><figcaption>Step-3: Adding additional detail to each node</figcaption></figure><pre>%% Nodes<br>    0[Key Variable&lt;br&gt;Target: 100, Actual: 80]<br>    1[Top Variable 1&lt;br&gt;Tgt: 20, Act: 20]<br>    2[Top Variable 2&lt;br&gt;Tgt: 30, Act: 30]<br>    3[Top Variable 3&lt;br&gt;Tgt: 50, Act: 30]<br>    31[Sub Variable 1&lt;br&gt;Tgt: 25, Act: 25]<br>    32[Sub Variable 2&lt;br&gt;Tgt: 25, Act: 5]<br>    321[Element 1&lt;br&gt;Tgt: 20, Act: 1]<br>    322[Element 2&lt;br&gt;Tgt: 5, Act: 4]</pre><h4>Step-4. Apply custom colours</h4><p>I want to colour the nodes Red, Amber and Green to reflect their status. I can do this by defining certain ‘styles’, and then assigning the styles to each node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XiVdDXSsuKf0mLxWgUOqBw.png" /><figcaption>Step-4: Assigning colours to each flowchart node</figcaption></figure><pre>%% Defining the styles<br>    classDef Red fill:#FF9999;<br>    classDef Amber fill:#FFDEAD;<br>    classDef Green fill:#BDFFA4;<br><br>%% Assigning styles to nodes<br>    class 3,32,321 Red;<br>    class 322 Amber;<br>    class 1,2,31 Green;</pre><p>You can set the colour by name (eg. fill:Red; or fill:Black; but for a full spectrum of colours enter the appropriate HEX color code.</p><p>I also want to change the colour of the links to make them less prominent, so I amend the default link style:</p><pre>%% Changing color of links [NOTE: Link arrows will remain black]<br>    linkStyle default fill: none, stroke: grey;</pre><h4>Step-5. Modify the link curve style</h4><p>I personally prefer a slightly different style of the links, particularly if I add text to my links. This can be controlled in the <em>‘Config’</em> tab in the Mermaid Live Editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xztgZrzC43TGOm0bB31-Q.png" /></figure><pre>{<br>  &quot;theme&quot;: &quot;default&quot;,<br>  &quot;flowchart&quot;: {<br>    &quot;curve&quot;: &quot;monotoneY&quot;<br>  }<br>}</pre><p>The config tab allows adjustment of other parameters, including:</p><ul><li><strong>Theme.</strong> Available themes include ‘default’, dark’, ‘neutral’, ‘forest’, ‘base’</li><li><strong>Curve.</strong> Available line curve options include ‘monotoneY’, ‘basis’, ‘linear’,</li></ul><h4>Step-6. [Optional] Add a title</h4><p>Gantt charts can have a title, but unfortunately there’s no title parameter for flowcharts. Since I often embed my charts within a slide which has its own title I rarely find a need for them, but there is a work-round using a ‘subgraph’.</p><h4>Step-6a. What’s a subgraph?</h4><p>A subgraph is a great way to break up a larger flowchart, or draw the eyes to focus in on a certain area of the flowchart. And subgraphs <em>do</em> have titles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-KCsXbs138rKnL9f8IX3qA.png" /></figure><pre>%% Nodes<br>    0[Key Variable]<br>    1[Top Variable 1]<br>    2[Top Variable 2]<br>    3[Top Variable 3]<br>    31[Sub Variable 1]<br>    subgraph SG32 [&quot;Subgraph: Focus in on Sub-Variable&quot;]<br>        32[Sub Variable 2]<br>        321[Element 1]<br>        322[Element 2]<br>    end</pre><h4>Step-6b. Encompassing all nodes within a subgraph</h4><p>To create a title for the flowchart, however, we need to encompass all nodes within a subgraph:</p><pre>%% Adding a title to the flowchart using the SubGraph feature<br>subgraph SGTitle [&quot;WHAT IS THE ROOT CAUSE OF THE PROBLEM?&quot;]<br><br>%% Nodes<br>    0[Key Variable&lt;br&gt;Target: 100, Actual: 80]<br>    1[Top Variable 1&lt;br&gt;Tgt: 20, Act: 20]<br>    2[Top Variable 2&lt;br&gt;Tgt: 30, Act: 30]<br>    3[Top Variable 3&lt;br&gt;Tgt: 50, Act: 30]<br>    31[Sub Variable 1&lt;br&gt;Tgt: 25, Act: 25]<br>    32[Sub Variable 2&lt;br&gt;Tgt: 25, Act: 5]<br>    321[Element 1&lt;br&gt;Tgt: 20, Act: 1]<br>    322[Element 2&lt;br&gt;Tgt: 5, Act: 4]<br><br>%% Close title subgraph<br>    end</pre><p>We then hide the subgraph using custom styling:</p><pre>%% Styling the title subgraph<br>    classDef Title fill:#FF99FF00, stroke-width:0, color:grey;<br>    class SGTitle Title;</pre><ul><li><strong>Background colour.</strong> The fill parameter controls the background colour. I want it transparent, since digits 7 and 8 of a hex code control the opacity I assign them as 00</li><li><strong>Border colour.</strong> The stroke-width and stroke parameters control the border width and colour. I do not want a border, hence I assign the width as 0.</li><li><strong>Title font colour</strong>. I set the color parameter to grey.</li></ul><h4>Step-6c. Ensuring all the title is visible</h4><p>If you want to make the title bold and/or change the font size then there is a slight bug that could cut off the end of the title.</p><p>By adding extra characters at the end, however, this can be overcome.</p><p>The title now reads:</p><pre>%% Adding a title to the flowchart using the SubGraph feature<br>subgraph SGTitle [&quot;WHAT IS THE ROOT CAUSE OF THE PROBLEM? ____&quot;]</pre><p>And the styling is now set as:</p><pre>%% Styling the title subgraph<br>    classDef Title fill:#FF99FF00, stroke-width:0, color:grey, font-weight:bold, font-size: 17px;<br>    class SGTitle Title;</pre><h4>Step-7. Export as PNG/SVG</h4><p>To export the mermaid chart open the <em>‘Action’</em> panel in the Live Editor and choose whichever option best suits you need:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*V5iRRNx7BhO3eTMvpMzXQw.png" /></figure><h3>The finished article</h3><p>The completed flowchart now looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TUavZxOCvKSQgZmToKn01A.png" /></figure><p>And the full code is:</p><pre>graph TD</pre><pre>%% Adding a title to the flowchart using the SubGraph feature<br>subgraph SGTitle [&quot;WHAT IS THE ROOT CAUSE OF THE PROBLEM? ____&quot;]</pre><pre>%% Nodes<br>    0[Key Variable&lt;br&gt;Target: 100, Actual: 80]<br>    1[Top Variable 1&lt;br&gt;Tgt: 20, Act: 20]<br>    2[Top Variable 2&lt;br&gt;Tgt: 30, Act: 30]<br>    3[Top Variable 3&lt;br&gt;Tgt: 50, Act: 30]<br>    31[Sub Variable 1&lt;br&gt;Tgt: 25, Act: 25]<br>    32[Sub Variable 2&lt;br&gt;Tgt: 25, Act: 5]<br>    321[Element 1&lt;br&gt;Tgt: 20, Act: 1]<br>    322[Element 2&lt;br&gt;Tgt: 5, Act: 4]</pre><pre>%% Close title subgraph<br>    end</pre><pre>%% Links<br>    0 --- 1<br>    0 --- 2<br>    0 --- 3<br>    3 --- 31<br>    3 --- 32<br>    32 --- 321<br>    32 --- 322</pre><pre>%% Defining node styles<br>    classDef Red fill:#FF9999;<br>    classDef Amber	fill:#FFDEAD;<br>    classDef Green fill:#BDFFA4;</pre><pre>%% Assigning styles to nodes<br>    class 3,32,321 Red;<br>    class 322 Amber;<br>    class 1,2,31 Green;<br>    <br>%% Changing color of links [NOTE: Link arrows will remain black]<br>    linkStyle default fill: none, stroke: grey;<br>    <br>%% Styling the title subgraph<br>    classDef Title fill:#FF99FF00, stroke-width:0, color:grey, font-weight:bold, font-size: 17px;<br>    class SGTitle Title;</pre><h3>Learn more about Mermaid</h3><p>Hopefully you’ve seen how easy it is to produce some great looking charts rapidly using Mermaid.</p><p>If you wish to learn more about Mermaid there’s a wealth of information available online, including via the following Medium articles:</p><ul><li><a href="https://towardsdatascience.com/mermaid-create-diagrams-quickly-and-effortlessly-d236e23d6d58">Mermaid: Create diagrams quickly and effortlessly | by Alexandra Souly | May, 2021 | Towards Data Science</a></li><li><a href="https://betterprogramming.pub/mermaid-create-charts-and-diagrams-with-markdown-88a9e639ab14">Mermaid — Create Charts and Diagrams With Markdown-like Syntax | by Trevor-Indrek Lasn | Better Programming</a></li><li><a href="https://betterprogramming.pub/making-diagrams-fun-again-with-mermaid-8a2c9ea3e471">Making Diagrams Fun With Mermaid. Sometimes, a good diagram is the best… | by Ozan Tunca | Better Programming</a></li></ul><p>Please just shout if you have any questions or wish to know more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f3bea64f2e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Brainstorming, Start Problem Solving]]></title>
            <link>https://dompl.medium.com/stop-brainstorming-start-problem-solving-a376dafeaf38?source=rss-2cec8c3f4533------2</link>
            <guid isPermaLink="false">https://medium.com/p/a376dafeaf38</guid>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[brainstorming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[thinking]]></category>
            <dc:creator><![CDATA[Dom PL]]></dc:creator>
            <pubDate>Sat, 19 Jun 2021 21:29:11 GMT</pubDate>
            <atom:updated>2021-06-19T21:29:11.676Z</atom:updated>
            <content:encoded><![CDATA[<p>Introducing Split-Solving, the one problem solving technique to rule them all!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tQPtlKIlfqup1cmQ" /><figcaption>Photo by <a href="https://unsplash.com/@olav_ahrens?utm_source=medium&amp;utm_medium=referral">Olav Ahrens Røtne</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Why not Brainstorming?</h3><p><em>Brainstorming is where a group of people meet to generate new ideas and solutions. People suggest as many spontaneous ideas as possible, without criticism, and after the brainstorming session the ideas are evaluated.</em> <a href="https://en.wikipedia.org/wiki/Brainstorming">[Wikipedia]</a></p><p>Brainstorming is proven to be a <a href="https://hbr.org/2015/03/why-group-brainstorming-is-a-waste-of-time">waste of time</a> but it’s still in widespread use, probably because it’s easy.</p><p>Brainstorming is just guessing, and it’s easy to guess lots of potential solutions. You might get lucky and guess correctly. More likely you’ll guess incorrectly and waste time wondering why your ‘solution’ isn’t working. Instead, adopt a problem solving approach that’s based on fact not opinion; a problem solving technique that’s guaranteed to get to the root cause of the problem: Split-Solving.</p><h3>Introducing Split-Solving</h3><p>Used in organisations like NASA, the US Military, and leading consultancies, Split-Solving eliminates potential sources of the problem, effectively ‘splitting’ the problem into smaller and smaller chunks for you to then really focus in on.</p><p>Key to it is identifying those variables that could contribute to the undesirable effect, and then eliminating those proven to not be causing the problem.</p><h3>Which playing card are you holding?</h3><p>Imagine you hold a playing card, and it’s my job to work out which card it is. I could simply guess, like brain-storming, or I could Split-Solve…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*xetzTtmeFZX-otmVJ1k17Q.png" /><figcaption>Split-Solving example using Playing Cards</figcaption></figure><ul><li><strong>Variable 1 — Colour:</strong> Is the card Red? Yes. I’ve just eliminated 26 cards</li><li><strong>Variable 2 — Suit:</strong> Is the card a Heart? Yes. I’ve eliminated a further 13 cards</li><li><strong>Variable 3 — High or Low cards:</strong> [Assuming Ace is low] Is the card a 7 or lower? No. I’m now down to just 6 cards</li><li><strong>Variable 4 — Picture:</strong> Is the card a picture card? Yes. Down to 3 cards</li><li><strong>Variable 5 — Sub-split of Picture:</strong> Is it a Queen or lower? Yes. Down to 2 cards</li><li><strong>Variable 6 — Sex:</strong> Is the card a male? Yes. It must be the Jack of Hearts</li></ul><p>At each stage I’ve eliminated potential options by splitting the problem in half — you can do this for any process or geographical/spatial related problem.</p><p>If you’ve a lamp that’s not working, for instance, <em>“Is there electricity at the wall socket?”</em> could be an appropriate place to start. Plugging in another lamp into the same plug socket will immediately confirm whether the fault is somewhere in the building, or a problem with the lamp itself.</p><h3>Why is my Electricity bill high?</h3><p>The playing cards example is simple because the answers are binary, meaning you’re immediately pointed down a certain route. Try and make every question have a binary result by having a ‘Target’ and ‘Actual’ value for each variable. If the ‘Actual’ is less than ‘Target’ you know your variable is out of specification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5qkIh8sHjfg5GX1xULtHA.png" /><figcaption>Split-Solving a high electricity bill</figcaption></figure><p>To work out why my electricity bill is high we:</p><ol><li><strong>Identify the ‘Key Variable’.</strong> This is the variable that best defines the problem. It can be measured, which then enables us to be objective in our problem solving. In this case it is the <em>Bill Amount</em>, measured in £.</li><li><strong>Build the ‘Top Level’ split.</strong> Here we identify the highest level variables that together control the ‘Key Variable’. This (and indeed every) level of the Split-Tree can be arranged in a mathematical equation to calculate the variable they feed into. This way we know the Split-Tree is correct: that there are <em>No Gaps</em> in any level of the split, and that there are <em>No overlaps</em> either, meaning we don’t accidentally count anything twice. This is often known as being <a href="https://en.wikipedia.org/wiki/MECE_principle">MECE</a> — Mutually Exclusive, Collectively Exhaustive.</li><li><strong>Eliminate variables from the ‘Top Level’.</strong> Any variables that are within spec can be eliminated — we know for a fact these are not contributing to the problem.</li><li><strong>Expand the Split-Tree to the next level(s). </strong>If a variable is out of spec we add another level to identify those sub-variables that contribute to it. We then continue to do this until we get to the root cause.</li></ol><h3>Why is my employee under-performing?</h3><p>Split-Solving can be used for behavioural and more abstract problems too, but it takes a bit more thought to ensure each level of the split is objective, and that it has <em>No Gaps and No Overlaps</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*l6S_zDgdHfl5XPfXYbbrLA.png" /><figcaption>Split-Solving why an employee is under-performing</figcaption></figure><p>Employee performance, for instance, can be split down into <em>Skill</em> (Are they trained, and have they ever demonstrated the necessary skills/behaviours to do the role?), <em>Will</em> (Are they sufficiently intrinsically and extrinsically motivated?), and <em>Opportunity</em> (Do they have the time and tools available to do what I am asking of them?).</p><p>We could split each level out further (eg. Intrinsic motivation could split into Autonomy, Mastery and Purpose) but the beauty of Split-Solving is that we only need to put our energy into investigating further when the problem points us that way.</p><h3>Your turn</h3><p>Split-Solving isn’t easy to master, but do persevere as once grasped it will step-change not only how you solve problems, but your overall clarity too.</p><p>So any time you are stuck or face a problem follow the mantra: <strong><em>if in doubt, Split-Solve it out!</em></strong></p><p>To help you learn, how about you try to identify the Key Variable and the Top Level Split (ie. The first level of the Split-Tree) of the following problems? Enter your thoughts in the comments, and I’ll let you know you know how you’ve got on.</p><h4>Example:</h4><ul><li><strong>Problem:</strong> Why was I late for work?</li><li><strong>Key variable:</strong> Time of arrival at work</li><li><strong>Top level split:</strong> Departure time, Distance travelled, Average speed</li></ul><h4>Problems for you to consider:</h4><ol><li>Why is the grass on my lawn so long?</li><li>Why has my phone run out of battery?</li><li>Why are today’s sales in my shop low?</li></ol><p>Happy splitting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a376dafeaf38" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>