<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nikki Veen on Medium]]></title>
        <description><![CDATA[Stories by Nikki Veen on Medium]]></description>
        <link>https://medium.com/@nikkiveen?source=rss-9bcf0da08bda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ddWWr8X-KCaQ_zkIcbxyWw.jpeg</url>
            <title>Stories by Nikki Veen on Medium</title>
            <link>https://medium.com/@nikkiveen?source=rss-9bcf0da08bda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:25:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikkiveen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PostgreSQL — could not connect to server: No such file or directory]]></title>
            <link>https://medium.com/@nikkiveen/postgresql-could-not-connect-to-server-no-such-file-or-directory-4f146aa81b34?source=rss-9bcf0da08bda------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f146aa81b34</guid>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Nikki Veen]]></dc:creator>
            <pubDate>Mon, 20 Mar 2017 17:46:57 GMT</pubDate>
            <atom:updated>2017-03-20T17:46:57.049Z</atom:updated>
            <content:encoded><![CDATA[<p>Occasionally, when my server does not shut down properly, a .pid (or process id) file will block PosgreSQL from connecting to the server when I attempt to restart and I get the following error:</p><pre>could not connect to server: No such file or directory<br>    Is the server running locally and accepting<br>    connections on Unix domain socket &quot;/tmp/.s.PGSQL.5432&quot;?</pre><p>The solution I’ve successfully been using to remedy this situation is directly removing the .pid file:</p><pre>rm /usr/local/var/postgres/postmaster.pid</pre><p>After this, I am typically able to start up my server again right away, however a restart of your computer may be required.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f146aa81b34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Sh*t Done — The Basics of Using Git]]></title>
            <link>https://medium.com/@nikkiveen/git-sh-t-done-the-basics-of-using-git-28a100531f88?source=rss-9bcf0da08bda------2</link>
            <guid isPermaLink="false">https://medium.com/p/28a100531f88</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Nikki Veen]]></dc:creator>
            <pubDate>Fri, 02 Sep 2016 21:37:20 GMT</pubDate>
            <atom:updated>2016-09-02T21:37:20.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Git — some love it, some love to hate it. I’m not really sure how I feel about it yet.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*caWUWJ9gVSYXgdMI7IkfaQ.png" /><figcaption>Git Logo</figcaption></figure><h4>What exactly is Git?</h4><p>Git is an open source version control software. Version control software (or VCS) allows for multiple versions of a program to be saved while tracking the changes in the code made over time. Typically these changes are annotated for further clarification.</p><p>Each time a version of the program is saved, Git creates and stores in a local file on your computer what is basically considered a ‘snapshot’ of the project at that specific time for future reference.</p><h4>Why use Git?</h4><p>Git provides you with the ability to access all old versions of all your files. This can come in handy if something in your code completely blows up and you need to back up a bit.</p><p>Git also allows for many people to easily work together on the same project using the same files. Everyone can work on their code separately without interfering with their teammates, and without fear of losing any of the changes made by others.</p><h4>How does Git work?</h4><p>Git can be thought of as a three-step process:</p><ol><li>Working Directory — this is the folder in which all the files for the program are stored. This is where the editing takes place!</li><li>Staging Area — this is where the changes that were made to the working directory are tracked.</li><li>Repository — this is where the ‘snapshots’ are permanently stored as different versions of the project.</li></ol><h4>Setting up Git</h4><p>First, you’ll need to initialize Git so that it can track changes within the desired directory. The initializing process will set up all the tools that Git will need to track the changes to your project.</p><p>You’ll be using Terminal to interact with Git.</p><p>To begin, navigate to the specific directory for which you want to track changes.</p><p>Next, to initialize Git enter:</p><pre>$ git init</pre><p>Your computer will create hidden Git files within your program directory to store everything. Only files located within the same directory as the Git repository will have their changes tracked and saved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/0*1yl_OiAbjNCOwqNy." /></figure><p>It’s important to note that it’s critical to initialize Git in the correct place. Since all changes within the directory are tracked, if you were to initialize Git in your home directory, all changes in every file or folder on your computer would be tracked which can cause some serious conflicts later on down the road.</p><h4>Tracking Changes</h4><p>In order to track, and eventually save, the changes that are being made you must first add your files to the staging area.</p><p>To see if you have added anything to the staging area:</p><pre><br>$ git status</pre><p>If you see ‘nothing to commit’:<br>You have not made any changes to your file, therefore, there is nothing new for Git to save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*T7TwaQPaOaHD3-Hg." /></figure><p>If you see ‘changes not staged for commit’ and your file is red:<br>You have not yet moved your file into the staging area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kFL_VKyGXdwquAru." /></figure><p>Adding your file(s) to the staging area can be done in two ways.</p><p>To add one specific file to the staging area:</p><pre>$ git add filename</pre><p><em>* filename </em>should be replaced with the name of your file</p><p>To add all the files within your directory to the staging area:</p><pre><br>$ git add — all</pre><p>Once your file has been added to the staging area, you can also use the status command to make sure that your file has been moved.</p><p>If you see ‘changes to be committed’ and your file is green:<br>Your file is located in the staging area and is ready for you to save the changes that Git has tracked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*4tMsvSyPiZ28hB8d." /></figure><h4>Saving the ‘Snapshot’</h4><p>In order to save the snapshot of your program at this point in time, you will need to commit your changes. This will save them into the Git repository that was created when you initialized Git.</p><p>To commit your changes:</p><pre>$ git commit -m “annotations”</pre><p><em>*annotations</em> should be replaced with your notes about the changes that were made</p><p>Always be sure to include annotations about what changes were made. These annotations should always be in quotation marks and should always be brief, simple, and to the point. The annotations will come in handy if you later need to find and reference an older version of the program.</p><p>Once you’ve committed your changes, you’ll receive a confirmation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/0*xyc1TcIElRSHnu9U." /></figure><h4>Now what?</h4><p>From here, the process starts over each time you make changes to your program. The initialize step is only required once upon initial set-up. After that, each time you make a change, you’ll need to add your file(s) to the staging area and commit the changes.</p><blockquote><em>COMMIT YOUR SH*T!</em></blockquote><p><strong>Remember to shoot for small changes (only one thing at a time), and commit frequently! There’s no limit to how many commits you can or should make!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28a100531f88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails Server Already In Use]]></title>
            <link>https://medium.com/@nikkiveen/rails-server-already-in-use-c7f04770a10c?source=rss-9bcf0da08bda------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7f04770a10c</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby-on-rails-development]]></category>
            <dc:creator><![CDATA[Nikki Veen]]></dc:creator>
            <pubDate>Fri, 02 Sep 2016 21:22:04 GMT</pubDate>
            <atom:updated>2016-09-02T21:22:04.628Z</atom:updated>
            <content:encoded><![CDATA[<p>When my server gets shut down improperly, I often find myself unable to re-start on the same port. This is because, when the server crashed or was shut down unexpectedly, Terminal may have closed but the processes that are running in the background remain active.</p><p>The following error will display after the server fails to start:</p><pre><strong>Address already in use — bind(2) for “::1” port 3000 (Errno::EADDRINUSE)</strong></pre><p>As an immediate work around, a new server can be started on a different port.</p><pre><strong>rails server -p 3001</strong></pre><p>This would allow me to view my app on localhost:3001.</p><p>However, the better option, is to find and kill the processes that are still running in the background .</p><p>In order to find the list of all the processes that are currently running, enter the following command in Terminal:</p><pre><strong>lsof -wni tcp:3000</strong></pre><p>This command will list all open files that are running on the specified port (3000 is the most common, but should be changed if the port experiencing issues is different).</p><p>The results will be a table listing each of the open processes.</p><pre><strong>COMMAND PID USER      FD TYPE DEVICE          SIZE/OFF NODE NAME<br>ruby 49925 nikkiveen 11u IPv6 0xe2a6b6f6d0a27a37 0t0 TCP [::1]:hbci (LISTEN)<br>ruby 49926 nikkiveen 11u IPv6 0xe2a6b6f6d0a27a37 0t0 TCP [::1]:hbci (LISTEN)</strong></pre><p>In order to stop an individual process, determine it’s process ID (or PID) in the column and kill it:</p><pre><strong>kill -9 49925</strong></pre><p>Once you kill all related processes, you can then resume using your standard server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7f04770a10c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>