<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: parrotypoisson</title>
    <description>The latest articles on DEV Community by parrotypoisson (@parrotypoisson).</description>
    <link>https://dev.to/parrotypoisson</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F835177%2F24f94e8d-6366-4c6b-b3e7-2feb48bbfe3a.jpg</url>
      <title>DEV Community: parrotypoisson</title>
      <link>https://dev.to/parrotypoisson</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/parrotypoisson"/>
    <language>en</language>
    <item>
      <title>External plugins in draw.io</title>
      <dc:creator>parrotypoisson</dc:creator>
      <pubDate>Mon, 27 Mar 2023 01:30:51 +0000</pubDate>
      <link>https://dev.to/parrotypoisson/external-plugins-in-drawio-25hd</link>
      <guid>https://dev.to/parrotypoisson/external-plugins-in-drawio-25hd</guid>
      <description>&lt;p&gt;&lt;a href="https://drawio-app.com/" rel="noopener noreferrer"&gt;draw.io&lt;/a&gt; is an app that helps you create diagrams. There are different ways to access the app, but I will be talking about the desktop app specifically.&lt;/p&gt;

&lt;p&gt;Sometimes the default functionality isn't enough, and so there is a mechanism to add more abilities through plugins.&lt;/p&gt;

&lt;p&gt;Plugins can be accessed through the Extras&amp;gt;Plugins... menu. The modal that pops up shows the plugins that are enabled.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7i35cvsesnrr6fmwqae.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff7i35cvsesnrr6fmwqae.PNG" alt="Plugin pop up" width="434" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to add more plugins you can select the Add button and pick from some built-in plugins.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fja8pnf91xuwetjonsgvj.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fja8pnf91xuwetjonsgvj.PNG" alt="External plugins disabled" width="369" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By default external (custom) plugins are not allowed. To allow external plugins you need to start the app with an option that enables them. Here is an example of the command I used in Windows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./draw.io.exe &lt;span class="nt"&gt;--enable-plugins&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After starting the app again, going to the plugin modal, and clicking the Add button; the ui should have a drop down to select a local plugin file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr9pptfh6zz09cilzlaok.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr9pptfh6zz09cilzlaok.PNG" alt="External plugins enabled" width="373" height="197"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/jgraph/drawio-desktop/releases/tag/v19.0.3" rel="noopener noreferrer"&gt;Here&lt;/a&gt; is the release that disabled the external plugins by default.&lt;/p&gt;

</description>
      <category>diagrams</category>
      <category>drawio</category>
    </item>
    <item>
      <title>Python Comprehensions</title>
      <dc:creator>parrotypoisson</dc:creator>
      <pubDate>Thu, 09 Mar 2023 06:44:52 +0000</pubDate>
      <link>https://dev.to/parrotypoisson/python-comprehensions-489h</link>
      <guid>https://dev.to/parrotypoisson/python-comprehensions-489h</guid>
      <description>&lt;h4&gt;
  
  
  List comprehension
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# [0, 1, 2, 3, 4]
&lt;/span&gt;&lt;span class="n"&gt;listt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Dictionary comprehension
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# {0: 0, 1: 1, 2: 2, 3: 3, 4: 4}
&lt;/span&gt;&lt;span class="n"&gt;dictt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Set comprehension
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# {0, 1, 2, 3, 4}
&lt;/span&gt;&lt;span class="n"&gt;sett&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Generator comprehension
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# generator object
&lt;/span&gt;&lt;span class="n"&gt;generator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>python</category>
    </item>
    <item>
      <title>Regex Of The Week #1</title>
      <dc:creator>parrotypoisson</dc:creator>
      <pubDate>Wed, 23 Mar 2022 03:56:12 +0000</pubDate>
      <link>https://dev.to/parrotypoisson/regex-of-the-week-1-82p</link>
      <guid>https://dev.to/parrotypoisson/regex-of-the-week-1-82p</guid>
      <description>&lt;p&gt;&lt;code&gt;(?&amp;lt;=([^=]))=[^=]+$&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This regex is for selecting/removing build numbers from conda packages in conda environment files.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Text:   python=3.8.12=hb1234_2_cpython
Match:               ^^^^^^^^^^^^^^^^^
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>regex</category>
    </item>
  </channel>
</rss>
