<?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: Sam</title>
    <description>The latest articles on DEV Community by Sam (@tinkeringsam).</description>
    <link>https://dev.to/tinkeringsam</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%2F766742%2F86aafe25-5804-428c-a949-b9818fe40f67.png</url>
      <title>DEV Community: Sam</title>
      <link>https://dev.to/tinkeringsam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tinkeringsam"/>
    <language>en</language>
    <item>
      <title>How to install ionCube Loader with Laravel Valet on MacOS (Intel)</title>
      <dc:creator>Sam</dc:creator>
      <pubDate>Sat, 20 Jul 2024 04:20:27 +0000</pubDate>
      <link>https://dev.to/tinkeringsam/how-to-install-ioncube-loader-with-laravel-valet-on-macos-intel-eoj</link>
      <guid>https://dev.to/tinkeringsam/how-to-install-ioncube-loader-with-laravel-valet-on-macos-intel-eoj</guid>
      <description>&lt;p&gt;Download the &lt;em&gt;macOS (64 bits)&lt;/em&gt; ZIP file from the Production Loaders section of &lt;a href="https://www.ioncube.com/loaders.php" rel="noopener noreferrer"&gt;https://www.ioncube.com/loaders.php&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Unzip the archive and move it to the parked sites folder of your computer (mine would be &lt;code&gt;~/valet/ioncube&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Now open &lt;a href="http://ioncube.test/loader-wizard.php" rel="noopener noreferrer"&gt;http://ioncube.test/loader-wizard.php&lt;/a&gt; in your browser and follow steps 1 to 3 of the local installation instructions. The specifics will vary depending on your machine, but here's an example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fq7uqwz4q2qjama3nrd3e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fq7uqwz4q2qjama3nrd3e.png" alt="ionCube Loader instructions for MacOS Intel with Laravel Valet"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can open the paths in Finder with &lt;code&gt;cd /usr/local/lib/php/pecl/20220829 &amp;amp;&amp;amp; open .&lt;/code&gt; for easy dragging and dropping of the loader files (the loaders are the files that have the ".so" extension).&lt;/p&gt;

&lt;p&gt;Restart valet (&lt;code&gt;valet restart&lt;/code&gt;) and follow the &lt;em&gt;"click here to test the loader"&lt;/em&gt; link to verify your installation.&lt;/p&gt;

&lt;p&gt;Now, depending on your Mac's security policy, you may see an alert to say that the OS has blocked the loader:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fu25y9msfbmn71e8bbds9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fu25y9msfbmn71e8bbds9.png" alt="ionCube Loader Blocked"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to your System Settings, find Privacy &amp;amp; Security, scroll to the Security section and you should see the ionCube loaders in the list with an option to allow them to be loaded:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F1ndmdy605f1gdr8drmvg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F1ndmdy605f1gdr8drmvg.png" alt="How to enable ionCube loader in MacOS Privacy &amp;amp; Security settings"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Afterward, restart Valet again and all should now be working.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F3ev8yw7zxdjs2ca6h867.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F3ev8yw7zxdjs2ca6h867.png" alt="ionCube Loader Wizard - Loader Installed Successfully"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PS: If any further security prompts pop up, choose the "Open" option.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PPS:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;WHMCS (or perhaps the ionCube loader) does not work well with the latest PHP 8 as of the time of writing. I had better luck with PHP 7, which can be installed with &lt;code&gt;brew install php@7.4&lt;/code&gt;. You may also want to take note of your current PHP version (&lt;code&gt;which php&lt;/code&gt;) before installing the older one.&lt;/p&gt;

&lt;p&gt;My aliases for switching between Valet with PHP 7 &amp;amp; Valet with PHP 8 are:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;alias &lt;/span&gt;&lt;span class="nv"&gt;php7&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"brew unlink php@8.2 &amp;amp;&amp;amp; brew link php@7.4"&lt;/span&gt;
&lt;span class="nb"&gt;alias &lt;/span&gt;&lt;span class="nv"&gt;valet7&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"php7 &amp;amp;&amp;amp; valet use php@7.4 --force"&lt;/span&gt;
&lt;span class="nb"&gt;alias &lt;/span&gt;&lt;span class="nv"&gt;php8&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"brew unlink php@7.4 &amp;amp;&amp;amp; brew link php@8.2"&lt;/span&gt;
&lt;span class="nb"&gt;alias &lt;/span&gt;&lt;span class="nv"&gt;valet8&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"php8 &amp;amp;&amp;amp; valet use php@8.2 --force"&lt;/span&gt;


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

&lt;/div&gt;

&lt;p&gt;If you run into any issues, please look to the many community guides on running multiple versions of PHP locally with Homebrew.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Solving the "Replace Hermes for the right configuration" error in React Native</title>
      <dc:creator>Sam</dc:creator>
      <pubDate>Sun, 18 Feb 2024 17:39:45 +0000</pubDate>
      <link>https://dev.to/tinkeringsam/solving-the-replace-hermes-for-the-right-configuration-error-in-react-native-48ah</link>
      <guid>https://dev.to/tinkeringsam/solving-the-replace-hermes-for-the-right-configuration-error-in-react-native-48ah</guid>
      <description>&lt;p&gt;&lt;a href="https://media.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%2F1ol7pcnruadm1loq6lox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F1ol7pcnruadm1loq6lox.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hey there, React Native devs! Ever stumbled upon the dreaded "Replace Hermes for the right configuration, if needed" error message while working on your project? It's like hitting a brick wall in your coding journey, right? But fear not, the fix is simpler than you might think.&lt;/p&gt;

&lt;p&gt;So, here's the deal: when you see that cryptic error pop up, it's usually because something's wonky with your Hermes setup. Hermes is awesome for optimizing React Native apps, but if it's not configured properly, you'll get this headache-inducing message.&lt;/p&gt;

&lt;p&gt;Here's the trick: just head over to your project's ios folder and look for a sneaky little file called .xcode.env.local. Yep, that's the culprit! It will often contain the bath to your Node binary, like &lt;code&gt;export NODE_BINARY=/usr/local/bin/node&lt;/code&gt;. But sometimes, this file will have a very wrong path altogether. To set things straight, just delete that pesky file, rebuild your project, and voilà! No more Hermes errors slowing you down. Keep coding, and remember, every error is just another chance to learn and grow!&lt;/p&gt;

&lt;p&gt;If that doesn't solve it, you can explore other ideas on Github - &lt;a href="https://github.com/facebook/react-native/issues/39903" rel="noopener noreferrer"&gt;https://github.com/facebook/react-native/issues/39903&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
    </item>
    <item>
      <title>How to use Mailhog (Docker) with Laravel 9</title>
      <dc:creator>Sam</dc:creator>
      <pubDate>Thu, 10 Nov 2022 19:42:18 +0000</pubDate>
      <link>https://dev.to/tinkeringsam/how-to-use-mailhog-docker-with-laravel-9-4j5b</link>
      <guid>https://dev.to/tinkeringsam/how-to-use-mailhog-docker-with-laravel-9-4j5b</guid>
      <description>&lt;p&gt;Get Mailhog going with:&lt;br&gt;
&lt;code&gt;docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhog&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Update your Laravel env file to have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MAIL_MAILER=smtp
MAIL_HOST=0.0.0.0
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;View your mailbox at &lt;a href="http://localhost:8025"&gt;http://localhost:8025&lt;/a&gt;.&lt;/p&gt;

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