<?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: Jim Segal</title>
    <description>The latest articles on DEV Community by Jim Segal (@jsegal205).</description>
    <link>https://dev.to/jsegal205</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%2F230745%2F52fcf9d8-8f74-46a9-8be6-2881eb31b460.jpeg</url>
      <title>DEV Community: Jim Segal</title>
      <link>https://dev.to/jsegal205</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jsegal205"/>
    <language>en</language>
    <item>
      <title>31 days of commits complete!</title>
      <dc:creator>Jim Segal</dc:creator>
      <pubDate>Sat, 01 Feb 2020 18:15:13 +0000</pubDate>
      <link>https://dev.to/jsegal205/31-days-of-commits-complete-2fp8</link>
      <guid>https://dev.to/jsegal205/31-days-of-commits-complete-2fp8</guid>
      <description>&lt;h1&gt;
  
  
  I did it.
&lt;/h1&gt;

&lt;p&gt;Coming into 2020, I wanted to challenge myself to commit every day for the month of January. This was a harder challenge than I thought. I had a lot of ideas coming into the challenge. They kept flowing while I was making things, but I often found that the hard part was the gaining motivation to get into a project after a long day at work. As the process became more routine, it became easier to motivate myself and do more than a few commits a day.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Highlights
&lt;/h2&gt;

&lt;p&gt;Looking through the data, I made 126 commits in 7 different repositories, which calculates down to about 4 commits a day. That's a lot more than what I initially set out to do. My top day was January 19th with 21 commits, I was really jamming out updates that day.&lt;/p&gt;

&lt;p&gt;You can check out everything that I did throughout the month on &lt;a href="https://github.com/jsegal205?tab=overview&amp;amp;from=2020-01-01&amp;amp;to=2020-01-31"&gt;Github&lt;/a&gt;. Here are a few examples of the larger projects I did:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Added darkmode toggle throughout &lt;a href="https://jimsegal.com"&gt;jimsegal.com&lt;/a&gt; and saved it to a cookie. &lt;/li&gt;
&lt;li&gt;Created a &lt;a href="https://github.com/jsegal205/jimsegal-api"&gt;Nodejs api&lt;/a&gt; served on Heroku. Check it out at &lt;a href="https://api.jimsegal.com"&gt;api.jimsegal.com&lt;/a&gt;!

&lt;ul&gt;
&lt;li&gt;This allowed me to move a lot of the json data files to a Postgres database. &lt;/li&gt;
&lt;li&gt;I was also able to have single network requests instead of multiple for my &lt;a href="https://jimsegal.com/IsChicagoColderThanAnchorage/"&gt;/IsChicagoColderThanAnchorage&lt;/a&gt; project. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Consolidated a handful of &lt;a href="https://github.com/jsegal205/scripts"&gt;scripts&lt;/a&gt; and &lt;a href="https://github.com/jsegal205/dotfiles"&gt;dotfiles&lt;/a&gt; for my multiple computer setup.&lt;/li&gt;
&lt;li&gt;Added Sentry error logging and Google tagging for more insights into how people use my site.&lt;/li&gt;
&lt;li&gt;I also started documenting my progress via this blog.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next?
&lt;/h2&gt;

&lt;p&gt;I don't think I'll stop coding but I might not be as stringent on how often I code. There are still two bigger projects that are on the docket for February: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Move all of the reading list json files to postgres and served from api.jimsegal.com.&lt;/li&gt;
&lt;li&gt;Create a web version of tic tac toe.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Feedback
&lt;/h2&gt;

&lt;p&gt;Seeing as this is my first &lt;a href="https://github.com/jsegal205/jimsegal-api"&gt;Nodejs app&lt;/a&gt;, I'm looking for any reviews / comments / critiques on the app as a whole. Comment or shoot me an email about your thoughts. I would love to hear them. &lt;/p&gt;

</description>
      <category>challenge</category>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>Associating your git commits with a different email</title>
      <dc:creator>Jim Segal</dc:creator>
      <pubDate>Thu, 23 Jan 2020 04:25:09 +0000</pubDate>
      <link>https://dev.to/jsegal205/associating-your-git-commits-with-a-different-email-3i2i</link>
      <guid>https://dev.to/jsegal205/associating-your-git-commits-with-a-different-email-3i2i</guid>
      <description>&lt;p&gt;If you have multiple computers or multiple github accounts like I do sometimes you get the commits associated to the wrong account. &lt;/p&gt;

&lt;p&gt;I'm currently in the middle of my &lt;a href="https://dev.to/jsegal205/31-days-of-commits-4kga"&gt;31 days of commits&lt;/a&gt; challenge and have done this a few times already. Each time I had to look up the set of commands for how to do this, so I figured I would just document it for the next time I need it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Here we go
&lt;/h2&gt;

&lt;p&gt;Check the git information:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;  git log
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



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

&lt;h2&gt;
  
  
  Alter multiple commits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Find that commit
&lt;/h3&gt;

&lt;p&gt;Find the commits that you want update and then copy the next commit hash. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VLwkGNW_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qzsdlf5tf36gz6bixlwl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VLwkGNW_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qzsdlf5tf36gz6bixlwl.png" alt="git log highlighting commit to rebase to"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Start the rebase
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;  git rebase &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; &amp;lt;commit_hash&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;If you haven't updated your default editor, you are in vi. &lt;/p&gt;

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

&lt;p&gt;Don't be scared. I'll help you through this with the following commands: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;i&lt;/code&gt; to get into insert mode&lt;/li&gt;
&lt;li&gt;use arrow keys to move around and change the words &lt;code&gt;pick&lt;/code&gt; to &lt;code&gt;edit&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;esc&lt;/code&gt; to get out of insert mode&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;:wq&lt;/code&gt; to save and quit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qFNLLrhO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/18bmdi81h3ku1pwfeljh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qFNLLrhO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/18bmdi81h3ku1pwfeljh.png" alt="git rebase final look before saving"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Update each individual commit
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;  git commit &lt;span class="nt"&gt;--amend&lt;/span&gt; &lt;span class="nt"&gt;--author&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Your Name &amp;lt;email@email.com&amp;gt;"&lt;/span&gt; &lt;span class="nt"&gt;--no-edit&lt;/span&gt;

  &amp;lt;enter&amp;gt;

  git rebase &lt;span class="nt"&gt;--continue&lt;/span&gt;

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



&lt;h2&gt;
  
  
  Verify things are changed
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;  git log
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



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

&lt;p&gt;Celebrate!&lt;/p&gt;

</description>
      <category>git</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Streak broken</title>
      <dc:creator>Jim Segal</dc:creator>
      <pubDate>Sun, 19 Jan 2020 04:31:57 +0000</pubDate>
      <link>https://dev.to/jsegal205/streak-broken-5foh</link>
      <guid>https://dev.to/jsegal205/streak-broken-5foh</guid>
      <description>&lt;h2&gt;
  
  
  whelp.
&lt;/h2&gt;

&lt;p&gt;So I was going really well on &lt;a href="https://dev.to/jsegal205/31-days-of-commits-4kga"&gt;my 30 day challenge&lt;/a&gt; and I broke the streak. &lt;/p&gt;

&lt;p&gt;I can make all the excuses in the world but honestly I forgot / preoccupied.&lt;/p&gt;

&lt;p&gt;What actually happened was I had a late night deploy the night prior so I was up late which lead to me taking a nap. Then I had to rush to get ready to meet some family for dinner &lt;strong&gt;AND&lt;/strong&gt; after dinner I had another late night deploy that was top of mind. &lt;/p&gt;

&lt;h2&gt;
  
  
  Regardless
&lt;/h2&gt;

&lt;p&gt;I'm going to continue on and aim to finish out the month strong with commits for updating my site. I have lots of ideas to finish out the month strong and maybe beyond :fingers_crossed:.&lt;/p&gt;

&lt;p&gt;I'm very proud that I'm able commit to committing way more than I initially thought I would this month.&lt;/p&gt;

&lt;p&gt;I'll likely have a "how did Jim do on the challenge" write at the end of the month.  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>31 days of commits</title>
      <dc:creator>Jim Segal</dc:creator>
      <pubDate>Wed, 01 Jan 2020 20:22:52 +0000</pubDate>
      <link>https://dev.to/jsegal205/31-days-of-commits-4kga</link>
      <guid>https://dev.to/jsegal205/31-days-of-commits-4kga</guid>
      <description>&lt;p&gt;As a personal challenge, I want to try and commit to my personal github at least once a day for the next 31 days.&lt;/p&gt;

&lt;p&gt;I think that this will help me to prioritize a bunch of the small improvements and new things that I would like to build instead of playing video games or mindlessly zoning out to twitch. &lt;/p&gt;

&lt;p&gt;Here's my &lt;a href="https://github.com/jsegal205?tab=overview&amp;amp;from=2020-01-01&amp;amp;to=2020-02-01"&gt;Github Progress&lt;/a&gt; for the month.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/jsegal205/streak-broken-5foh"&gt;UPDATE&lt;/a&gt;&lt;/p&gt;

</description>
      <category>challenge</category>
      <category>github</category>
    </item>
  </channel>
</rss>
