<?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: Pablo</title>
    <description>The latest articles on DEV Community by Pablo (@rochapablo).</description>
    <link>https://dev.to/rochapablo</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%2F442944%2Ff847137a-9620-4e0f-b7af-8c95aadbe9fc.jpeg</url>
      <title>DEV Community: Pablo</title>
      <link>https://dev.to/rochapablo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rochapablo"/>
    <language>en</language>
    <item>
      <title>Links</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Thu, 15 Sep 2022 16:27:24 +0000</pubDate>
      <link>https://dev.to/rochapablo/links-3ek3</link>
      <guid>https://dev.to/rochapablo/links-3ek3</guid>
      <description>&lt;p&gt;Services&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=W-ukSOhcrjo"&gt;https://www.youtube.com/watch?v=W-ukSOhcrjo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://refactoring.guru/refactoring/techniques"&gt;https://refactoring.guru/refactoring/techniques&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/MoienTajik/AspNetCore-Developer-Roadmap"&gt;https://github.com/MoienTajik/AspNetCore-Developer-Roadmap&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Things I Was Unprepared For As A Lead Developer</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Thu, 11 Nov 2021 16:10:11 +0000</pubDate>
      <link>https://dev.to/rochapablo/things-i-was-unprepared-for-as-a-lead-developer-3m1d</link>
      <guid>https://dev.to/rochapablo/things-i-was-unprepared-for-as-a-lead-developer-3m1d</guid>
      <description>&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=AwuqJ1qORag"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KSTYL963--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/http://img.youtube.com/vi/AwuqJ1qORag/0.jpg" alt="Things I Was Unprepared For As A Lead Developer" width="480" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>video</category>
    </item>
    <item>
      <title> Need to store some data? </title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Fri, 27 Aug 2021 18:59:42 +0000</pubDate>
      <link>https://dev.to/rochapablo/need-to-store-some-data-18ee</link>
      <guid>https://dev.to/rochapablo/need-to-store-some-data-18ee</guid>
      <description>&lt;p&gt;&lt;a href="https://blog.codepen.io/2018/06/07/need-to-store-some-data/"&gt;https://blog.codepen.io/2018/06/07/need-to-store-some-data/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Karma Chromium Driver</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Mon, 07 Jun 2021 16:05:54 +0000</pubDate>
      <link>https://dev.to/rochapablo/karma-chromium-driver-d0c</link>
      <guid>https://dev.to/rochapablo/karma-chromium-driver-d0c</guid>
      <description>&lt;p&gt;The problem: &lt;code&gt;karma "ChromeHeadless have not captured"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;As a solution try to:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;brew install --cask chromium&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;==&amp;gt; Installing Cask chromium
==&amp;gt; Moving App 'Chromium.app' to '/Applications/Chromium.app'
==&amp;gt; Linking Binary 'chromium.wrapper.sh' to '/opt/homebrew/bin/chromium'
🍺  chromium was successfully installed!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember to allow Chromium at &lt;code&gt;Security &amp;amp; Privacy&lt;/code&gt;.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Debugging PHP with XDebug and VsCode</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Mon, 31 May 2021 14:24:45 +0000</pubDate>
      <link>https://dev.to/rochapablo/debugging-php-with-xdebug-and-vscode-45i6</link>
      <guid>https://dev.to/rochapablo/debugging-php-with-xdebug-and-vscode-45i6</guid>
      <description>&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=LNIvugvmCyQ"&gt;https://www.youtube.com/watch?v=LNIvugvmCyQ&lt;/a&gt;&lt;br&gt;
&lt;a href="http://xdebug.org/wizard"&gt;http://xdebug.org/wizard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At .bash_profile add &lt;code&gt;export XDEBUG_CONFIG="idekey=VSCODE"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;.vscode/launch.json&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9000
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000,
            "runtimeExecutable": "/Applications/MAMP/bin/php/php8.0.0/bin/php"
        }
    ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;/Applications/MAMP/bin/php/php8.0.0/conf/php.ini&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[xdebug]
  zend_extension = /Applications/MAMP/bin/php/php8.0.0/lib/php/extensions/no-debug-non-zts-20200930/xdebug.so
  xdebug.mode=debug
  xdebug.start_with_request=yes
  xdebug.remote_enable=1
  xdebug.remote_autostart=1
  xdebug.client_port = 9000
  xdebug.client_host = "127.0.0.1"
  xdebug.idekey = VSCODE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>node modules</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Fri, 12 Feb 2021 22:11:25 +0000</pubDate>
      <link>https://dev.to/rochapablo/node-modules-2h62</link>
      <guid>https://dev.to/rochapablo/node-modules-2h62</guid>
      <description>&lt;h1&gt;
  
  
  &lt;a href="https://www.npmjs.com/package/madge"&gt;madge&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Madge is a developer tool for generating a visual graph of your module dependencies, finding circular dependencies, and give you other useful info. Joel Kemp's awesome dependency-tree is used for extracting the dependency tree.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;a href="https://www.npmjs.com/package/npm-check-updates"&gt;npm-check-updates&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Upgrades your package.json dependencies to the latest versions, ignoring specified versions.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>WiFi Boost?</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Mon, 31 Aug 2020 13:55:20 +0000</pubDate>
      <link>https://dev.to/rochapablo/wifi-boost-43h0</link>
      <guid>https://dev.to/rochapablo/wifi-boost-43h0</guid>
      <description>&lt;p&gt;I'm having a bad time with my WiFi connection when I'm attending to video calls.&lt;/p&gt;

&lt;p&gt;I'm not sure the main issue, I have two laptops (Windows and Mac) and the problem seems to happen mostly on Windows, where I constantly have lags when I start to speak (not so much when I'm just listening).&lt;/p&gt;

&lt;p&gt;I did some changes on Windows, but it still crap. Now I'm doing some changes on my modem:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Disable: Enable Energy Saving (System Tools &amp;gt; Advanced Power Management)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Change from Automatic Channel to 1, 6 or 11. &lt;a href="https://www.metageek.com/training/resources/why-channels-1-6-11.html"&gt;Why Channels 1, 6 and 11?&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's see what will happen.&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

&lt;h3&gt;
  
  
  Test Speed
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://fast.com"&gt;https://fast.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://speedtest.att.com"&gt;https://speedtest.att.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.speedtest.net"&gt;https://www.speedtest.net&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://beta.simet.nic.br"&gt;https://beta.simet.nic.br&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>wifi</category>
    </item>
    <item>
      <title>Angular Tests</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Wed, 05 Aug 2020 13:29:31 +0000</pubDate>
      <link>https://dev.to/rochapablo/show-what-s-been-tested-3cf4</link>
      <guid>https://dev.to/rochapablo/show-what-s-been-tested-3cf4</guid>
      <description>&lt;p&gt;I'm trying to figure it out why I'm getting DISCONNECTED while running my tests.&lt;/p&gt;

&lt;h5&gt;
  
  
  So I did this to see what's been tested:
&lt;/h5&gt;

&lt;p&gt;&lt;code&gt;npm i karma-spec-reporter --save-dev&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;karma.conf.js&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins: [require('karma-spec-reporter'), ...],
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;reporters: ['spec', ...],
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;specReporter: {
    maxLogLines: 5, // limit number of lines logged per test
    suppressErrorSummary: true, // do not print error summary
    suppressFailed: false, // do not print information about failed tests
    suppressPassed: false, // do not print information about passed tests
    suppressSkipped: true, // do not print information about skipped tests
    showSpecTiming: false // print the time elapsed for each spec
},
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://stackoverflow.com/a/58202615/1958882"&gt;https://stackoverflow.com/a/58202615/1958882&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;
  
  
  And added this:
&lt;/h5&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;captureTimeout: 210000,
browserDisconnectTolerance: 3, 
browserDisconnectTimeout : 210000,
browserNoActivityTimeout : 210000,
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/jasmine/jasmine/issues/1413#issuecomment-334247097"&gt;https://github.com/jasmine/jasmine/issues/1413#issuecomment-334247097&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;browsers: ["Chrome-headless"],
customLaunchers: {
    "Chrome-headless": {
        base: 'Chrome',
        flags: [
            '--no-sandbox',
            '--disable-gpu',
            '--enable-logging',
            '--no-default-browser-check',
            '--no-first-run',
            '--disable-default-apps',
            '--disable-popup-blocking',
            '--disable-translate',
            '--disable-background-timer-throttling',
            '--disable-renderer-backgrounding',
            '--disable-device-discovery-notifications',
            '--remote-debugging-port=9222',
            '--disable-web-security',
            '--watch=false'
        ]
    }
},
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/jasmine/jasmine/issues/1413#issuecomment-432112670"&gt;https://github.com/jasmine/jasmine/issues/1413#issuecomment-432112670&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And still, this damn thing it's not working... 😡&lt;/p&gt;

&lt;h5&gt;
  
  
  Avoid karma tests running twice on autoWatch
&lt;/h5&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;autoWatch: false,
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://pracucci.com/avoid-karma-tests-run-twice-on-autowatch.html"&gt;https://pracucci.com/avoid-karma-tests-run-twice-on-autowatch.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>angular</category>
    </item>
    <item>
      <title>Bitbucket Pipeline: Heroku</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Sat, 01 Aug 2020 15:50:42 +0000</pubDate>
      <link>https://dev.to/rochapablo/bitbucket-pipeline-heroku-5a1j</link>
      <guid>https://dev.to/rochapablo/bitbucket-pipeline-heroku-5a1j</guid>
      <description>&lt;p&gt;In my little cozy world, for many times just because it's working I keep doing it the lazy way.&lt;/p&gt;

&lt;p&gt;When I knew about Heroku and how to deploy a app, I thought that nothing could get better and for a long time I was deploying from my terminal.&lt;/p&gt;

&lt;p&gt;Today I tried deploy through Bitbucket Pipelines and as dumb as it seems it took me a while to figure it out how to setup the bitbucket-pipelines.yml file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// get the `HEROKU_API_KEY`
$ heroku auth:token
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# https://bitbucket-pipelines.prod.public.atl-paas.net/validator&lt;/span&gt;

&lt;span class="na"&gt;clone&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
 &lt;span class="na"&gt;depth&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;full&lt;/span&gt;

&lt;span class="na"&gt;pipelines&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
 &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
   &lt;span class="na"&gt;master&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
     &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;step&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
         &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deploy&lt;/span&gt;
         &lt;span class="na"&gt;caches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
           &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;node&lt;/span&gt;
         &lt;span class="na"&gt;script&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
           &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;git push -f https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master --no-verify&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;With this, you'll get to &lt;code&gt;Build succeeded!&lt;/code&gt; in a way that your mom would be very proud (because she doesn't understand a thing but she thinks that only you could have done it).&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How do you keep your NPM packages update?</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Fri, 31 Jul 2020 10:17:38 +0000</pubDate>
      <link>https://dev.to/rochapablo/how-do-you-keep-your-npm-packages-update-11p8</link>
      <guid>https://dev.to/rochapablo/how-do-you-keep-your-npm-packages-update-11p8</guid>
      <description>&lt;p&gt;You have multiple projects going on and if you keep them always update to the last version, sometimes you expend some precious time trying to figure it out what and why your build broke (after the update).&lt;/p&gt;

&lt;p&gt;Normally when I update I run npm-update, which it's a package that search for all last versions from your dependencies.&lt;/p&gt;

&lt;p&gt;I don't know if this is a good practice, but I like to keep my dependencies always at the last version.&lt;/p&gt;

&lt;p&gt;So... how do you manage this?&lt;/p&gt;

</description>
      <category>npm</category>
    </item>
    <item>
      <title>React Native</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Wed, 29 Jul 2020 12:21:11 +0000</pubDate>
      <link>https://dev.to/rochapablo/react-native-42oa</link>
      <guid>https://dev.to/rochapablo/react-native-42oa</guid>
      <description>&lt;h2&gt;
  
  
  Some Stones Catch Along the Ride
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Image not Showing
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd android/app/src/main/res/ &amp;amp;&amp;amp; rm -rf drawable-*/src_assets_images_*.png drawable-*/node_modules_*.png
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Task :react-native-{lib}:compileDebugJavaWithJavac
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt; Task :react-native-firebase:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.
&amp;gt; Compilation failed; see the compiler error output for details.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h4&gt;
  
  
  This is a AndroidX issue, workaround to fix
&lt;/h4&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cp -n app/android/gradle.properties app/node_modules/react-native-{lib}/android/gradle.properties
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h4&gt;
  
  
  Change those two values to false and reply to broken libs
&lt;/h4&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cp -n app/node_modules/react-native-{lib}/android/gradle.properties app/node_modules/react-native-{lib}/android/gradle.properties
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
    </item>
    <item>
      <title>GIT Tips</title>
      <dc:creator>Pablo</dc:creator>
      <pubDate>Wed, 29 Jul 2020 12:12:21 +0000</pubDate>
      <link>https://dev.to/rochapablo/git-best-practices-l5b</link>
      <guid>https://dev.to/rochapablo/git-best-practices-l5b</guid>
      <description>&lt;h3&gt;
  
  
  Naming Branches
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/273695/what-are-some-examples-of-commonly-used-practices-for-naming-git-branches"&gt;https://stackoverflow.com/questions/273695/what-are-some-examples-of-commonly-used-practices-for-naming-git-branches&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Removing Untrack Files
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clean -d -n
git clean -d -f
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://linuxize.com/post/how-to-remove-untracked-files-in-git/"&gt;font&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
