<?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>Forem: tyler-wel</title>
    <description>The latest articles on Forem by tyler-wel (@tylerwel).</description>
    <link>https://forem.com/tylerwel</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%2F289285%2F828403ce-779f-4071-8537-6cdb8f788f6d.jpg</url>
      <title>Forem: tyler-wel</title>
      <link>https://forem.com/tylerwel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tylerwel"/>
    <language>en</language>
    <item>
      <title>How do you keep up with technologies and programming news?</title>
      <dc:creator>tyler-wel</dc:creator>
      <pubDate>Thu, 22 Oct 2020 03:57:33 +0000</pubDate>
      <link>https://forem.com/tylerwel/how-do-you-keep-up-with-technologies-and-programming-news-1gm9</link>
      <guid>https://forem.com/tylerwel/how-do-you-keep-up-with-technologies-and-programming-news-1gm9</guid>
      <description>&lt;p&gt;I feel a bit overwhelmed by all different news, blog, and tutorial sites, I have no idea where to look for the new trends, releases, etc.&lt;/p&gt;

&lt;p&gt;How and where does everyone keep up with the news and trends?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Setting up Laravel and React in WSL</title>
      <dc:creator>tyler-wel</dc:creator>
      <pubDate>Mon, 24 Feb 2020 10:27:02 +0000</pubDate>
      <link>https://forem.com/tylerwel/setting-up-laravel-and-react-in-wsl-1l42</link>
      <guid>https://forem.com/tylerwel/setting-up-laravel-and-react-in-wsl-1l42</guid>
      <description>&lt;p&gt;Recently I was given an assignment to build a simple web app using Laravel. Having never used PHP before, this was an interesting challenge! Because setting up environments is never fun, I decided to write this post to summarize my notes and hopefully help out anyone else looking to get Laravel up and running. I setup my environment using WSL, but this guide should work for any Unix system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisite
&lt;/h2&gt;

&lt;p&gt;If you're a Windows user, first you're going to want to get WSL setup and running. For more information please see: &lt;a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10"&gt;Windows Subsystem for Linux Installation Guide for Windows 10&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;From a fresh WSL install, we'll want to install the following packages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Apache 2.4.29&lt;/li&gt;
&lt;li&gt;PHP 7.2.24&lt;/li&gt;
&lt;li&gt;Node 8.10.0&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1 - Node, Apache, PHP
&lt;/h2&gt;

&lt;p&gt;The following commands will get the above packages, and other dependencies installed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade
sudo apt install apache2 curl openssl zip unzip git libonig-dev nodejs npm

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

&lt;/div&gt;



&lt;p&gt;Check nodejs and npm were installed correctly with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ node --version
v8.10.0
$ npm --version
3.5.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After confirming nodejs and npm are ok, confirm apache is ok, and if not, get it running&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built:   2019-09-16T12:58:48
$ sudo service apache2 status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can confirm the server is running and restart/start/stop it with the following commands when needed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo service apache2 status
sudo service apache2 restart
sudo service apache2 start
sudo service apache2 stop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that apache2 is up and running, it's time to get all the required php packages installed! In this tutorial, we're going to go with PHP 7.2.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install php7.2 libapache2-mod-php php-cli php-cgi php-mbstring php-zip php7.2-gd php-xml php7.2-sqlite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can visit &lt;a href="https://www.php.net/manual/en/funcref.php"&gt;PHP Function Reference&lt;/a&gt; for more info on some of the above packages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 - Composer and Laravel
&lt;/h2&gt;

&lt;p&gt;The composer installation guide comes with an SHA-384 installer check, so I recommend visiting the installation guide for more information. If the second step of the following commands fail, please see the guide.&lt;br&gt;
&lt;a href="https://getcomposer.org/download/"&gt;Download Composer&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Summarized Composer Installation (Feb 2020)
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=~/.composer/vendor/bin/ --filename=composer
php -r "unlink('composer-setup.php');"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If the composer-setup.php command fails, please create the directory yourself and re-run.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir -p ~/.composer/vendor/bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure composer is added to your &lt;code&gt;.bashrc&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;echo 'PATH=$PATH:$HOME/.composer/vendor/bin/' &amp;gt;&amp;gt; ~/.bashrc
source ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, confirm composer installed correctly&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ composer --version
Composer version 1.9.3 2020-02-04 12:58:49
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Laravel install is much simpler! Just run the following commands and you're good to go&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer global require laravel/installer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ laravel --version
Laravel Installer 3.0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3 - React Framework
&lt;/h2&gt;

&lt;p&gt;Laravel comes with VueJS scaffolding as default, but I personally prefer working with React. Luckily, switching over to React is very simple! Just run the following commands in the directory of your choice and you'll be good to go.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;laravel new project_name
cd project_name
php artisan preset react
npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above commands will create a new Laravel project named &lt;code&gt;project_name&lt;/code&gt; in a directory of the same name. It will set the preset scaffolding to React and install all the required node modules. &lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4 - Build and Go!
&lt;/h2&gt;

&lt;p&gt;We're almost there! To get your new Laravel app running, run the following commands&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer install
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once those are finished, you will want to duplicate the provided &lt;code&gt;env.example&lt;/code&gt; and rename it to &lt;code&gt;.env&lt;/code&gt; and setup you're preferred database.&lt;/p&gt;

&lt;p&gt;If you want something lightweight and simple, you can just set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DB_CONNECTION=sqlite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and delete the other &lt;code&gt;DB_&lt;/code&gt; lines. This will use the database file in the default directory &lt;code&gt;database/database.sqlite&lt;/code&gt; (make sure to create this file yourself!)&lt;/p&gt;

&lt;p&gt;Lastly, get our API_KEY filled in with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan key:generate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that should be it!! If everything went smoothly, you can run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php serve artisan --port=8181
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and you're good to go! Open up the basic site at &lt;code&gt;localhost:8181&lt;/code&gt; and have fun working with Laravel and React!&lt;/p&gt;

&lt;h3&gt;
  
  
  Final Comments
&lt;/h3&gt;

&lt;p&gt;If you have any questions, advice, or found something wrong in this explanation, please let me know down below!&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>react</category>
      <category>laravel</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Morning Routine Analysis!</title>
      <dc:creator>tyler-wel</dc:creator>
      <pubDate>Sat, 08 Feb 2020 22:00:15 +0000</pubDate>
      <link>https://forem.com/tylerwel/morning-routine-analysis-omf</link>
      <guid>https://forem.com/tylerwel/morning-routine-analysis-omf</guid>
      <description>&lt;p&gt;So when trying to figure this week's post topic, I went back to last week's post and had an epiphany. Lately I've been getting more into Data Science and Machine Learning..... so why not take the comments about everyone's morning routine and extract some data! Well... there was only 22 people who responded but, hey! It's still data! Not a big enough sample size to make any real conjectures, but still was fun to look at the data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data!
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Kids/Animals (Care): This category was for anyone who cared for a pet or child. There weren't many responses dealing with children, so I decided to lump this as a "care for".&lt;/li&gt;
&lt;li&gt;Coffee/Tea: Anyone who needed to start off the day with some coffee or tea&lt;/li&gt;
&lt;li&gt;Exercise/Stretching: Exercising and stretching was commonly together, so also lumped these two together&lt;/li&gt;
&lt;li&gt;Yoga/Meditate: Same as above but less hardcore&lt;/li&gt;
&lt;li&gt;Study: Bit of studying in the morning is always good!&lt;/li&gt;
&lt;li&gt;Shower: Gotta get clean. I was surprised to see 3 respondents saying they took cold showers!&lt;/li&gt;
&lt;li&gt;Read/Podcast/Music: Anyone who did any reading/listening at home/on commute&lt;/li&gt;
&lt;li&gt;Work Prep/Todo: Prepping today's todo was pretty common!&lt;/li&gt;
&lt;li&gt;Eat: Most important meal of the day&lt;/li&gt;
&lt;li&gt;Emails/Blogs/Messaging: Anyone checking their emails, blogs, messaging, and/or social media&lt;/li&gt;
&lt;li&gt;Other: This includes anything that I couldn't find a good classification for&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With a total number of 22 respondents, here's the data!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nW0DKA8Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4io3vb01fcnlrypx92qi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nW0DKA8Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4io3vb01fcnlrypx92qi.png" alt="Donut Chart"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3R-wBQak--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/s9edqz5hq4offaey9hnk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3R-wBQak--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/s9edqz5hq4offaey9hnk.png" alt="Bar Chart"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;Overall it's interesting! Of course there is not enough data to make any conclusions. If anything it's interesting to see what people wrote. Coffee/Tea and Showering seem to have come out on top! I wonder if there is any bias? Maybe reading another person's comment effects how one responds?&lt;/p&gt;

&lt;p&gt;I would love to do more surveys/data collection in the future! Still a beginner in the world of data science.&lt;/p&gt;

&lt;p&gt;If you have any advice, please let me know down below!&lt;/p&gt;

</description>
      <category>watercooler</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What is your morning routine?</title>
      <dc:creator>tyler-wel</dc:creator>
      <pubDate>Sat, 01 Feb 2020 22:30:23 +0000</pubDate>
      <link>https://forem.com/tylerwel/what-is-your-morning-routine-5672</link>
      <guid>https://forem.com/tylerwel/what-is-your-morning-routine-5672</guid>
      <description>&lt;p&gt;So I wanted to try and do &lt;em&gt;at least&lt;/em&gt; a post a week, and I didn't have much time to prepare one this week. So I wanted to open up another discussion!&lt;/p&gt;

&lt;p&gt;So, to any of you glorious readers stumbling upon this post, what is YOUR morning routine? Wake up and sit on reddit until you're almost late to work? Make sure you got that cup of coffee before attempting anything?  Immediately get up and get to coding? &lt;/p&gt;

&lt;p&gt;I personally spend a bit too long reddit before stumbling into the shower, getting ready &lt;em&gt;just&lt;/em&gt; in time, and racing off to work. On the train to work, listen to some DnD podcasts and study Japanese. Right before arriving to work I make sure to get some tea or water for the day and a coffee. Upon arriving at my desk, it's off to coding right away! Who needs to check emails or read chat anyways.&lt;/p&gt;

&lt;p&gt;Here's a few threads from the past I dug up if you're interested in reading more about routines!&lt;br&gt;
&lt;a href="https://dev.to/lukewestby/do-you-have-a-morning-routine-3j39"&gt;Do you have a morning routine?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/justinhhorner/planning-my-daily-routine-32hn"&gt;Planning My Daily Routine&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/_patrickgod/the-miracle-of-a-morning-routine-1eho"&gt;The Miracle of a Morning Routine&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>watercooler</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What’s a blog?</title>
      <dc:creator>tyler-wel</dc:creator>
      <pubDate>Sat, 25 Jan 2020 02:50:29 +0000</pubDate>
      <link>https://forem.com/tylerwel/what-s-a-blog-469a</link>
      <guid>https://forem.com/tylerwel/what-s-a-blog-469a</guid>
      <description>&lt;p&gt;So what IS a blog? I’ve never been much of a social media person, and this is my first blog. I've always just been more of a lurker. An overwhelming majority of blogs these days seem to be tutorials, or maybe I'm just in the wrong places. To anyone reading this, what is a blog to you? A place to learn new skills or perspectives on things? Discussion zones? &lt;/p&gt;

&lt;p&gt;I’m sure it’s going to take me awhile to get the hang of being a &lt;em&gt;blogger&lt;/em&gt;, and I’ll be surprised if more than a single person ever reads this. But I guess you gotta start somewhere!&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
