<?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: Wesley Ruede</title>
    <description>The latest articles on DEV Community by Wesley Ruede (@wesleyruede).</description>
    <link>https://dev.to/wesleyruede</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%2F174425%2F0e3c37bb-d3d8-441f-9afa-6d1ebe8b69bb.jpeg</url>
      <title>DEV Community: Wesley Ruede</title>
      <link>https://dev.to/wesleyruede</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wesleyruede"/>
    <language>en</language>
    <item>
      <title>Android errors</title>
      <dc:creator>Wesley Ruede</dc:creator>
      <pubDate>Tue, 22 Oct 2019 23:12:56 +0000</pubDate>
      <link>https://dev.to/wesleyruede/android-errors-1mng</link>
      <guid>https://dev.to/wesleyruede/android-errors-1mng</guid>
      <description>&lt;p&gt;Please don't be like me:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;// a constructor which initializes items, prices, and descriptions&lt;br&gt;
    public ItemAdapter(Context, c, String[] i, String[] p, String[] d ) {&lt;br&gt;
        items = i;&lt;br&gt;
        prices = p;&lt;br&gt;
        descriptions = d;&lt;br&gt;
        // initialize LayoutInflater&lt;br&gt;
        mInflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;This error took days to get figured out because I couldn't call getSystemServices() on the context. Thankfully there is an Android slack where I was able to get help and continue on with my project. Here is the error free code:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;// a constructor which initializes items, prices, and descriptions&lt;br&gt;
    public ItemAdapter(Context c, String[] i, String[] p, String[] d ) {&lt;br&gt;
        items = i;&lt;br&gt;
        prices = p;&lt;br&gt;
        descriptions = d;&lt;br&gt;
        // initialize LayoutInflater&lt;br&gt;
        mInflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Forget about forgetting semicolons, all it takes is a comma in Java or an apostrophe in xml to throw everything off. It's always the little things, the nuances. This project is still in development so check it out in a day or so to get the complete &lt;a href="https://github.com/wesley-ruede/Android/tree/master/ListApp/app/src"&gt;source code&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;What is most funny about this project is that I made the most amatuer mistake. Forgetting to push when the project is still working and then breaking it can be detrimental and a big time waster. Today's big lesson is to always remember to push you code. Always. You don't want to be sad.&lt;/p&gt;

&lt;p&gt;Also, if it weren't for Android Studio I would never have caught this error and just kept coding away. A big shout out to &lt;a href="https://app.slack.com/client/T04PLNDMP/C04PLNE0P/user_profile/U0546QERR"&gt;Damien Diehl the Android Developer @ Twitch on Slack&lt;/a&gt; and Android Studio for keeping me moving. I was seconds from scrapping this project and he came to the rescue like a hero. I really like android development even over web development or data science. This might just be my neeche. &lt;/p&gt;

</description>
      <category>android</category>
      <category>java</category>
      <category>git</category>
      <category>slackheros</category>
    </item>
    <item>
      <title>Django user auth</title>
      <dc:creator>Wesley Ruede</dc:creator>
      <pubDate>Sun, 16 Jun 2019 22:43:37 +0000</pubDate>
      <link>https://dev.to/wesleyruede/django-user-auth-19b3</link>
      <guid>https://dev.to/wesleyruede/django-user-auth-19b3</guid>
      <description>&lt;p&gt;Today I've been learning about user authentication with Django. There is quite a bit to it so I figured I'd lay out the code to share.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TTW-_feu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/08l25ddyhaxmnhmrpsew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TTW-_feu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/08l25ddyhaxmnhmrpsew.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, here is the form that is used to POST the data as GET is unsafe. A person could just make a username with no constraints and bypass all security. Thank's to Kyle Agronick, he made me aware that it is necessary to show the front end for clarity in the logic. Here is where the user puts in an username and password :&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--i3BQE3qu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/puvtue1uhcyqh07utts8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i3BQE3qu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/puvtue1uhcyqh07utts8.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see I have gone through and notated almost everything. It is very easy to follow. If you are interested in seeing this code and understanding the steps I went through go check out the repo: &lt;a href="https://github.com/wesley-ruede/product-hunt"&gt;https://github.com/wesley-ruede/product-hunt&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the settings you will find the process I have gone through to develop the user authentication. Happy coding everyone and have a good day!&lt;/p&gt;

</description>
      <category>django</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Moving onto the next project</title>
      <dc:creator>Wesley Ruede</dc:creator>
      <pubDate>Wed, 05 Jun 2019 07:40:45 +0000</pubDate>
      <link>https://dev.to/wesleyruede/moving-onto-the-next-project-1838</link>
      <guid>https://dev.to/wesleyruede/moving-onto-the-next-project-1838</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/wesley-ruede/product-hunt"&gt;https://github.com/wesley-ruede/product-hunt&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So this one is gonna be a lot more complex as it will have user authentication and the html will be a lot cleaner as it will be extensible. As I get further through it and I go into the actual process of hosting it, I'll update it. That an all I learn.&lt;/p&gt;

&lt;p&gt;For loops in dictionaries to allow Python to work its 'magic' in the framework:&lt;/p&gt;

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

&lt;p&gt;This piece of code will parse in data from the other html document to organize it. Having to replicate the nav bar and make all changes by hand can be kinda quirky and/or time consuming. The solution is to use the for loop to extend this data as such:&lt;/p&gt;

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

&lt;p&gt;and this will take all the data between the block content and endblock, and pass that back to the base.html. As I learn new techniques I'll post them here.&lt;/p&gt;

</description>
      <category>python</category>
      <category>django</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Completed my first web stack</title>
      <dc:creator>Wesley Ruede</dc:creator>
      <pubDate>Sat, 01 Jun 2019 13:07:28 +0000</pubDate>
      <link>https://dev.to/wesleyruede/completed-my-first-web-stack-2013</link>
      <guid>https://dev.to/wesleyruede/completed-my-first-web-stack-2013</guid>
      <description>&lt;p&gt;Update: &lt;a href="http://142.93.204.153/"&gt;http://142.93.204.153/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Its up there everyone! my code is being referenced by guincorn and urls are being reverse proxied to by Nginx. The domain is next&lt;/p&gt;

&lt;p&gt;Hi Everyone, I want to introduce myself. I'm Wes a full stack Python developer. I'm onto a second Django project and just got done migrating to a server and configuring guincorn. Wow, its been a journey and I'm almost there! Nginx is coming next to wrap it up. Here she is: &lt;a href="https://www.youtube.com/watch?v=X8L4XqrR-NM&amp;amp;t=2s"&gt;https://www.youtube.com/watch?v=X8L4XqrR-NM&amp;amp;t=2s&lt;/a&gt; when I have a proper link instead of serving it over port 8000 I'll drop it here. Thanks for reading and checking out my project!&lt;/p&gt;

</description>
      <category>python</category>
      <category>django</category>
    </item>
  </channel>
</rss>
