<?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 Patricia Atiti Osifo-Iduorobo on Medium]]></title>
        <description><![CDATA[Stories by Patricia Atiti Osifo-Iduorobo on Medium]]></description>
        <link>https://medium.com/@patriciaosifo?source=rss-5d14294b0b85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0rESgjVVjsm0bfZEP7UZYA.jpeg</url>
            <title>Stories by Patricia Atiti Osifo-Iduorobo on Medium</title>
            <link>https://medium.com/@patriciaosifo?source=rss-5d14294b0b85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:26:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patriciaosifo/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[Getting Started with PostgreSQL 16 on Git Bash]]></title>
            <link>https://patriciaosifo.medium.com/getting-started-with-postgresql-16-on-git-bash-9b83d87f3589?source=rss-5d14294b0b85------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b83d87f3589</guid>
            <category><![CDATA[git-bash]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[psql]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Patricia Atiti Osifo-Iduorobo]]></dc:creator>
            <pubDate>Wed, 11 Oct 2023 09:02:17 GMT</pubDate>
            <atom:updated>2023-10-18T11:17:28.559Z</atom:updated>
            <content:encoded><![CDATA[<h4>Setting up for the Udacity SQL for Data Analysis course</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*YSxRuwhms_e4hv0fgfVpJQ.png" /></figure><h4>Introductory and Preliminary Notes</h4><p>I am going through a tutorial for creating your first PostgreSQL database. And while we are on the topic, I need to give a shoutout to <a href="https://medium.com/@itayperry91">Itay Perry</a>. A similar article of his here on Medium helped me and it also contains some useful information as well: the reason for using Git Bash, a background, etc. It’s a fun read — go check it out <a href="https://medium.com/@itayperry91/get-started-with-postgresql-on-windows-a-juniors-life-4adfa6dd10e">here</a>!</p><p>I’d prefer to use a cloud-based database so I can always have access to it no matter what device I’m working from. It makes more sense if I want my database to be preserved and to have remote access. However, that comes with the expense of procuring that service from the cloud provider. Hence… for this tutorial, I’m using a local database. This mandated having to use a Unix environment on my non-Unix Windows system as a sub for a typical Unix like a Linux or a MacOS. There is also the fact that I’m trying to get more DevOps learning done. So, my two choices are <strong>Ubuntu WSL</strong> or <strong>Git Bash</strong>.</p><p>Let me know in the comments if you have any other great ideas.</p><p>If you are using Ubuntu WSL, then, you should have already installed PostgreSQL 16 on it. For more information about how to do this, check <a href="http://digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-22-04-quickstart">here</a>.</p><p>I will be using GitBash for this article as insinuated in the title. Apart from the need for familiarity with it, I also have further work with this down the line for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*M8OO1PSM2S85mYFEs9a36g.jpeg" /></figure><p><em>If you are installing PostgreSQL to a Windows OS like I did, then just follow tutorials </em><a href="https://medium.com/@itayperry91/get-started-with-postgresql-on-windows-a-juniors-life-4adfa6dd10e"><em>1</em></a><em> and </em><a href="https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql/"><em>2</em></a><em>. Make sure to install PgAdmin and when prompted for a password for Postgres, the superuser, set a password and (please, be wise and …) note it. Also, note other things like the port and the data directory since that’s where your databases will be stored. Usually, this is the </em><em>C:\Program Files\PostgreSQL\16\bin folder. But it could also be the </em><em>C:\Program Files\PostgreSQL\16\data directory. Either way works. But do your research on which is best.</em></p><p>I have the table’s data already provided, thanks to Udacity. (In fact, the actions I will be doing in this tutorial are following Udacity’s SQL for Data Analysis course so you can check that out <a href="http://udacity.com/course/sql-for-data-analysis--ud198">here</a>).</p><h4>Helpers and Warnings</h4><ol><li>Now, in my first article, I talked about the importance of the Internet (Google Search) for resolving matters. You can always find aid in how friends who were in the same troubled boat as you have resolved their issues, or the docs provided by the developer communities (e.g. StackOverflow, GitHub) and/or software websites and tutorial sites (e.g. <a href="https://www.postgresqltutorial.com/">Postgresql Tutorial</a>, DigitalOcean, W3Schools, etc). However, always make sure to try and get the full gist first before you crash your system. Sometimes important details are mentioned after the fact.</li><li>Well, let me add here, now (… and in the article, later), the importance of AI tools for searching out answers. In particular, Bing. It basically helps you summarize information from sources. But beware: <strong>Bing can also think up lots of wrong information</strong>! It is a generative AI, so it is expected that it has a very imaginative mind. I’ll tell you about my experience <strong>in this article</strong>.</li></ol><h4>Back to Topic</h4><p>Now, let’s back into things.</p><p>After you have installed Postgresql according to the instructions in the above links, then, we can go ahead and begin to set things up.</p><p>First, confirm that PostgreSQL has been installed by checking for installed programs from your <em>Start Menu &gt; All Apps</em>. If successful, PgAdmin4, PostgreSQL 16 (or whatever is the latest version), etc. will all be available in a Folder for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*abOOj_cPRZXWJHphAtyoGQ.png" /><figcaption>Check for PostgreSQL applications and/or Add-ons</figcaption></figure><p>You can also always use these commands in the Git Bash terminal: which psql OR postgres --version to check for the version and location of psql or the version of the Postgres respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fFd4c8-a_Jj7on-7814ZGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*jGBgeRuUn6hyRhZ3QkwrDA.png" /><figcaption>Check for the version on Git Bash</figcaption></figure><p>Check your current file directory in Git Bash by using the command pwd. This is where all your bash files will get saved. It is essential to know where you are both on the CLI and GUI so you can easily get what you need. Especially if you will be downloading the parch_and_posey.sql file like I did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*3ynaaVn-uawrMuUJ3Tvpiw.png" /></figure><p>Next, ensure that the environment variables are right (<em>Remember the data directory from the first paragraph</em>). Try running psql in your current directory. If it fails, close the terminal. It may be that the environment variables have not been set yet. Use these articles (<a href="https://www.alphr.com/set-environment-variables-windows-11/">1</a>, <a href="https://www.google.com/search?q=how+to+change+environment+variables+in+windows+11&amp;oq=How+to+chenage+Eniv&amp;gs_lcrp=EgZjaHJvbWUqCQgIEAAYDRiABDIGCAAQRRg5MgkIARAAGA0YgAQyCQgCEAAYDRiABDIJCAMQABgNGIAEMgkIBBAAGA0YgAQyCQgFEAAYDRiABDIJCAYQABgNGIAEMgkIBxAAGA0YgAQyCQgIEAAYDRiABDIJCAkQABgNGIAE0gEIOTI4OGoxajeoAgCwAgA&amp;sourceid=chrome&amp;ie=UTF-8#ip=1">2</a>) to go through the steps. <em>Note that System Variables are configured for your PC itself and not you, the current specific user (This is concerned with User Settings).</em> After adding the path, you may go ahead and reopen the Git Bash. Restarting it should have helped to update the settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*85ih67kTVVhIW7PYd47eZQ.png" /></figure><p>When you type psql in Git Bash, PostgreSQL assumes that you are trying to log in as that user into a database with that name. But since this is the first time logging in, that user and database will not be found. And so, we need the superuser.</p><figure><img alt="Failed authentication for nonexistent user ‘littlr’" src="https://cdn-images-1.medium.com/max/1024/1*Tc--sx37ywiysHW6QFiwyQ.png" /><figcaption>Failed authentication for nonexistent user ‘littlr’</figcaption></figure><p>You remember the password of your superuser, <strong>postgres</strong>, right? We will use it when we run this command:</p><pre>psql -U postgres</pre><p>If have correctly entered the right password, you should have a screen like this.</p><figure><img alt="Successful validation for superuser, ‘postgres’ allows entry into psql." src="https://cdn-images-1.medium.com/max/1024/1*oWYHgN0hVaREYvors5Cm4A.png" /><figcaption>Successful validation for superuser, ‘postgres’ allows entry into psql.</figcaption></figure><p>A successful validation via the password will take you to the PostgreSQL special SQL Shell, psql. It is generally indicated by the prompt indicating the current user/database you are on and a =&gt; or for the superuser, postgres,<em> </em>and =#. You can find out more about SQL Shells <a href="https://sl.bing.net/bzodSAzbUku">here</a>.</p><blockquote>Random facts —</blockquote><blockquote>Remember to always end your PostgreSQL commands with a semicolon, ;. Entering the command without a semicolon will take the prompt to a new line indicated by a <strong><em>‘</em></strong><strong><em>-#’/‘</em></strong><strong><em>-&gt;’</em></strong> instead of the usual <strong>‘</strong><strong>=#’/ ‘</strong><strong>=&gt;’.</strong> But in this case, you can complete your SQL statements in Postgres accurately by inputting the semicolon and pressing the Enter key.</blockquote><blockquote>To exit the psql shell and return to the Git Bash CLI, simply use either the exit command (semi-colons are not necessary) or use \q. If you need more help on the commands in psql you can use \? or use the <a href="https://www.postgresql.org/docs/">PostgreSQL Docs</a>.</blockquote><blockquote>To switch from one database to another while logged in as a user, simply enter \c and the database name, parchand the user’s name to connect to that database as the user, say, postgres.</blockquote><blockquote>(You may want to try this <strong>after </strong>you have created another database: you might get an error otherwise).</blockquote><p>Now, exit the psql shell.</p><p>Download the parch_and_posey.sql file and take note of its directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*mhwJ9NsJgCIho9K18xCmLw.png" /></figure><p>Next, we will run this command on Git Bash to <strong>interactively</strong> run the SQL script contained in the parch_and_posey. Usually, we couldn’t run</p><p>Substitute &lt;your-username&gt; for the username you see in the Git Bash CLI. The username is found in the syntax:</p><p><strong><em>&lt;your-username&gt;@DESKTOP-M611VOK MINGW64</em></strong></p><p>or something similar.</p><pre># To run in a TTY terminal:<br>psql parch &lt; parch_and_posey.sql <br># Running &#39;psql parch &lt; parch_and_posey.sql&#39; in a non-tty terminal gives error: stdin is not a tty<br><br># To run in a terminal that does not have a TTY device, such as Git Bash:<br>psql -h localhost -p 5432 -U &lt;your-username&gt; -d parch -f Documents/workouts/parch-posey/parch_and_posey.sql</pre><p>You will also have to use the actual file path of your parch_and_posey.sql file. Notice how the folders in the directory are indicated by forward slashes instead of backslashes as is expected in file paths.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*Meg0kh1PlFkrJcWfDMjjDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*rRDPpXvL7Lo0RBzKT_t7SA.png" /></figure><p>Now the command runs. But since there are a lot of inputs being made, you may only really see the end but not the beginning of the script run.</p><p><a href="https://clipchamp.com/watch/zV4jmz7O4G0">Loading SQL script files into a DB in Git Bash - Create and share your videos with Clipchamp</a></p><p>Outputs of the command:</p><figure><img alt="A screenshot of the command being run" src="https://cdn-images-1.medium.com/max/1024/1*ftXdVoobGlf_TDGA68pVOA.png" /><figcaption>A screenshot from the video: the beginning of the command being run</figcaption></figure><p>Now, we will look into our parch database from the psql shell. You can also see your database and tables in PgAdmin 4 as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wgt_M47AQU8VjksXbbR9KA.png" /><figcaption>Exploring the newly created tables in psql</figcaption></figure><p><a href="https://clipchamp.com/watch/t4tQPglrzjQ">Exploring PgAdmin 4 - Create and share your videos with Clipchamp</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xY7uOILRAVMAfScYocAuNQ.png" /><figcaption>Using the \c in psql</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b83d87f3589" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My first technical article, Intro to everything technical.]]></title>
            <link>https://patriciaosifo.medium.com/my-first-technical-article-intro-to-everything-technical-ecc9edbb6ebf?source=rss-5d14294b0b85------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecc9edbb6ebf</guid>
            <category><![CDATA[intro]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[technical]]></category>
            <dc:creator><![CDATA[Patricia Atiti Osifo-Iduorobo]]></dc:creator>
            <pubDate>Sun, 28 May 2023 18:34:37 GMT</pubDate>
            <atom:updated>2023-05-29T00:42:20.981Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Taking it all in" src="https://cdn-images-1.medium.com/max/635/1*ZTaeRPi3xsap4s5f2emATg.jpeg" /><figcaption>Talking it all in</figcaption></figure><h3>Introduction</h3><p>Hi there! I am Patricia Osifo-Iduorobo, a handful already without my middle name included. I know. So, let’s go with Pat for the sake of informal communication. I’m pleased to meet you. I am a beginner in tech in some ways, a novice in others and an expert in some. Also vague, I know. Ha-ha. You’ll get to understand this later. I have always wanted to start writing technical articles, but excuses and little lies will kill you quickly every time. Procrastination is a vice that keeps you fixed in quicksand and blinds you as a sandstorm. If we are both going to make the most of this article and the ones to follow, we must avoid it!</p><p>The point of this article is to have something that keeps you learning and a means for me to remember. Yes, may seem somewhat selfish, but the truth is that any form of education ought to be reciprocal. Also, if you are into tech, you will need ships that carry you to your destination. They may have many stops on the way, but be sure to explore and quickly board the ship again with your destination in mind. What’s your destination? Naturally, only you can answer that. I’m yet to figure it out, but I find that that’s no cause for alarm. Why? Because an open mind and a willing student makes for the best ideas. And if anything, I find and come to appreciate it all albeit to various degrees. After all, distractions are not much worth especially when they delay your set goals.</p><p>I know one thing: the sort of person I am, shapes the sort of way I learn. I’m a Mathematician: I studied it at the university. Apart from that, it intrigues me greatly enough that I wish to understand it. Nevertheless, upon understanding, I would much rather apply it and teach all of it: science and application to others. Note the word, <em>wish.</em></p><h3>Some philosophical nonsense?</h3><blockquote>Inspiration of all kinds: understanding, knowledge and application, is available to those that find the source of it all. As for finding that source, well, it has to call you. Yet, it calls many and many-a-times too. As to the final matter, willingness to teach does not ensure the willingness of the counterpart nor the immediate capture of the knowledge.</blockquote><p>If you are like me, if you don’t get something, you don’t get it. If you are also like me, sometimes focusing too hard only causes obscurity and a bad migraine. <em>Aww! Help! </em>I have faced this issue with mathematical concepts, calculations or proofs, debug errors, installation (even if there is a manual there for you) and a whole lot of other technical topics. All it usually takes is a break, another path, or switching platforms. Or my favourite, cancelling everything out and starting again. <em>Heh! Hee-hee!</em> I do this a lot but found that starting all over again without knowing what to guard against will leave you a greater fool than yesterday.</p><p>For example, I began to get interested in handling Linux systems recently. I mean, most guys in some of my previous cohorts just bragged about it being the best OS out there — yet, it’s annoying when people trash-talk the easy-to-work-with and affordable OS you have, but who cares! Some people do actually. In any case, I ignored all of that when I could and instead, focused on using the Linux commands that I did know to solve issues I could while learning what was required from the <em>dudes that love to brag</em>. I stayed satisfied with my Windows PC for a while until I did begin to get interested in automation. Then, I went and installed Ubuntu Windows Subsystem for Linux (WSL). Turns out, that copies are not the same thing as the original, yeah, bite me! Ha-ha! It wasn’t so bad, it was just that I began to realize some differences in how files were stored and say, the way ports on the main system Windows OS affected ports used for the Ubuntu WSL. Sure, all of this was for the safety of the machine and the sanity of man, but for crying out loud, do you know how much damage you can do by running the wrong commands? All that’s in the past though.</p><h3>Back to topic</h3><p>Reverting to the point of focus, you may not learn the same as everybody. Or you may. Try it out first though, and be patient and persistent. Also, never imagine you’ve become an expert in everything. Every expert is a continuous and ready learner. The things I’d love to think I’m an expert in are the things that utilize my ability to keep an open mind to learning and to attempt it.</p><p>The reason for this is sometimes, a problem requires focus, and other times, the <em>right</em> distraction, <strong><em>inspiration </em></strong>or <strong><em>guidance</em></strong>. An example, consider the <strong>Pomodoro technique</strong>. So, that’s what I tend to do. That can be surfing the net to find solutions: watching a play-by-play YouTube video or course video or an article that gives you a manual, and reminds you that you aren’t the only one who’s faced that mountain. The key is keeping your eye on the prize and when you need rest, find the right one.</p><h3>In conclusion …</h3><p>Once it’s been overcome, I bet you are all the better for it. Just make sure to practice, practice, and practice a lot. Like mathematics, you won’t gain anything by crying that you don’t have the answer or thinking that you never will. All it takes most of the time is finding the right textbook or the best teacher to put things plain for you. Once you’ve laid the foundations of your warfare, you can go ahead and attack the bigger-looking monsters!</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecc9edbb6ebf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>