<?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: kobecow</title>
    <description>The latest articles on DEV Community by kobecow (@kobecow).</description>
    <link>https://dev.to/kobecow</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%2F91049%2F3c3bd86c-2c5e-42d6-8726-e2278bd16777.jpeg</url>
      <title>DEV Community: kobecow</title>
      <link>https://dev.to/kobecow</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kobecow"/>
    <language>en</language>
    <item>
      <title>Tips of Command Line</title>
      <dc:creator>kobecow</dc:creator>
      <pubDate>Fri, 07 Feb 2020 07:21:21 +0000</pubDate>
      <link>https://dev.to/kobecow/tips-of-command-line-5ch2</link>
      <guid>https://dev.to/kobecow/tips-of-command-line-5ch2</guid>
      <description>&lt;h1&gt;
  
  
  1. !!
&lt;/h1&gt;

&lt;p&gt;Got permission error. like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod +x /usr/local/bin/ecs-cli
chmod: Unable to change file mode on /usr/local/bin/ecs-cli: Operation not permitted

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Solution is just add sudo.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo chmod +x /usr/local/bin/ecs-cli

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;And you don't have to type &lt;code&gt;chmod +x /usr/local/bin/ecs-cli&lt;/code&gt; again.&lt;br&gt;&lt;br&gt;
Type &lt;code&gt;!!&lt;/code&gt; . Like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo !!
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;!! means one before command executed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To be continued ..&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>cli</category>
      <category>bash</category>
      <category>zsh</category>
    </item>
    <item>
      <title>This is the time to check your knowledge of regex or Regular Expression</title>
      <dc:creator>kobecow</dc:creator>
      <pubDate>Sat, 01 Feb 2020 09:34:09 +0000</pubDate>
      <link>https://dev.to/kobecow/this-is-the-time-to-check-your-knowledge-of-regex-or-regular-expression-3mfb</link>
      <guid>https://dev.to/kobecow/this-is-the-time-to-check-your-knowledge-of-regex-or-regular-expression-3mfb</guid>
      <description>&lt;h1&gt;
  
  
  Why I wrote this article?
&lt;/h1&gt;

&lt;p&gt;Because I googled &lt;code&gt;regex&lt;/code&gt; again, and again.&lt;br&gt;
I thought I needed to clarify what I know about parts of regex.&lt;br&gt;
I will add my knowledge of regex in this post.&lt;/p&gt;
&lt;h2&gt;
  
  
  No.0 environment
&lt;/h2&gt;

&lt;p&gt;useful web tool to test regex &lt;a href="https://rubular.com/"&gt;https://rubular.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;sample sentences from Wiki &lt;a href="https://en.wikipedia.org/wiki/Computer"&gt;https://en.wikipedia.org/wiki/Computer&lt;/a&gt;.&lt;br&gt;
In this case, using first two paragraphs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A computer is a machine that can be instructed to carry out sequences of arithmetic or logical operations automatically via computer programming. Modern computers have the ability to follow generalized sets of operations, called programs. These programs enable computers to perform an extremely wide range of tasks. A "complete" computer including the hardware, the operating system (main software), and peripheral equipment required and used for "full" operation can be referred to as a computer system. This term may as well be used for a group of computers that are connected and work together, in particular a computer network or computer cluster.

Computers are used as control systems for a wide variety of industrial and consumer devices. This includes simple special purpose devices like microwave ovens and remote controls, factory devices such as industrial robots and computer-aided design, and also general purpose devices like personal computers and mobile devices such as smartphones. The Internet is run on computers and it connects hundreds of millions of other computers and their users.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  No.1 Global match
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Global match&lt;/code&gt; means to return not only first match word or char also others.&lt;/p&gt;

&lt;p&gt;ie.&lt;br&gt;
search &lt;code&gt;in&lt;/code&gt; in sample text.&lt;br&gt;
Below code written in JavaScrip.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const sample_text = "A computer is a machine ...";// &amp;lt;-- must include whole sample sentences.
console.log(sample_text.match(/in/g));
/*
// return
[
  'in', 'in', 'in',
  'in', 'in', 'in',
  'in', 'in', 'in',
  'in', 'in'
]
*/

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  To be continued
&lt;/h1&gt;

</description>
      <category>regex</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to update NPM Module for vulnerability</title>
      <dc:creator>kobecow</dc:creator>
      <pubDate>Mon, 09 Dec 2019 02:37:55 +0000</pubDate>
      <link>https://dev.to/kobecow/how-to-update-npm-module-for-vulnerability-3d99</link>
      <guid>https://dev.to/kobecow/how-to-update-npm-module-for-vulnerability-3d99</guid>
      <description>&lt;h1&gt;
  
  
  Github Shows security alert!?
&lt;/h1&gt;

&lt;p&gt;After tiny push, I saw security alert on Github.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PC4667v5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4tf2e252kwoanmnye91h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PC4667v5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4tf2e252kwoanmnye91h.png" alt="security_alert image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;WOW. I've never seen it before. What should I do?&lt;/p&gt;

&lt;h1&gt;
  
  
  Step one-by-one.
&lt;/h1&gt;

&lt;p&gt;This is what I did after googling.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Look at your security alert.
&lt;/h3&gt;

&lt;p&gt;On my case, It said &lt;code&gt;clean-css&lt;/code&gt; needed update.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_J_Ks8Vo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6o7ewk77rwga3ewby0tm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_J_Ks8Vo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6o7ewk77rwga3ewby0tm.png" alt="details of security alert"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Check your module
&lt;/h3&gt;

&lt;p&gt;On project directory, &lt;code&gt;npm audit&lt;/code&gt; executed.&lt;br&gt;
The result was &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tViuai81--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/41niqud8t9luy8cet1qo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tViuai81--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/41niqud8t9luy8cet1qo.png" alt="output of npm audit"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  3. npm audit fix
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;npm audit fix&lt;/code&gt; executed.&lt;/p&gt;

&lt;p&gt;a part of result was&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+ pug@2.0.4
removed 3 packages and updated 9 packages in 5.479s

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Check your module again.
&lt;/h3&gt;

&lt;p&gt;On project directory, &lt;code&gt;npm audit&lt;/code&gt; executed.&lt;br&gt;
The result was&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
                       === npm audit security report ===                        

found 0 vulnerabilities

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;That's it. Pretty easy pattern.&lt;br&gt;
Let's go back developing.&lt;/p&gt;

</description>
      <category>howto</category>
      <category>node</category>
      <category>npm</category>
      <category>vulnerability</category>
    </item>
  </channel>
</rss>
