<?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: d</title>
    <description>The latest articles on Forem by d (@parkerrobert).</description>
    <link>https://forem.com/parkerrobert</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%2F1322237%2F86a8eb43-f036-4ea4-a771-e2be0713abee.png</url>
      <title>Forem: d</title>
      <link>https://forem.com/parkerrobert</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/parkerrobert"/>
    <language>en</language>
    <item>
      <title>Plotting out SORA</title>
      <dc:creator>d</dc:creator>
      <pubDate>Sat, 30 Nov 2024 13:13:38 +0000</pubDate>
      <link>https://forem.com/parkerrobert/plotting-out-sora-2d0g</link>
      <guid>https://forem.com/parkerrobert/plotting-out-sora-2d0g</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faaom2puo10orihb7vm4r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faaom2puo10orihb7vm4r.png" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's generate a graph using SORA 3M and SORA 1M data. First download the dataset, it should come in the form of a csv.&lt;br&gt;
Then proceed to clean the dataLet's generate a graph using SORA 3M and SORA 1M data. &lt;/p&gt;

&lt;p&gt;First download the dataset, it should come in the form of a csv.&lt;br&gt;
Then proceed to clean the data&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd

df = pd.read_csv("sora.csv")
df = df[df["Compount SORA - 1 month"] != '-']
df = df[df["Compount SORA - 3month"] != '-']
df = df.drop(columns=["SORA Value Date", "year", "month"])
df.to_csv("sora (edited).csv", index=False)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then plot out the data&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd
import plotly.graph_objects as go

df['Compound SORA - 3 month'] = pd.to_numeric(df['Compound SORA - 3 month'], errors="coerce")

fig = go.Figure()

fig.add_trace(
    go.Scatter(
        x=df['SORA Publication Date'],
        y=df['Compound SORA - 3 month'],
        marker=dict(color="Blue", symbol="circle", size=2),
        name="SORA - 3M"
    )
)

fig.add_trace(
    go.Scatter(
        x=df['SORA Publication Date'],
        y=df['Compound SORA - 1 month'],
        marker=dict(color="Black", symbol="circle", size=1),
        name="SORA - 1M"
    )
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should then give you the result&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9zulr74x2pwmx39jm336.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9zulr74x2pwmx39jm336.png" alt="Image description" width="800" height="470"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The original version of this &lt;a href="https://parkerrobert.medium.com/plotting-out-sora-d08551b12a26" rel="noopener noreferrer"&gt;article&lt;/a&gt; was published on medium.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Manual Workflows in GitLab</title>
      <dc:creator>d</dc:creator>
      <pubDate>Sun, 03 Mar 2024 16:14:51 +0000</pubDate>
      <link>https://forem.com/parkerrobert/manual-workflows-in-gitlab-55db</link>
      <guid>https://forem.com/parkerrobert/manual-workflows-in-gitlab-55db</guid>
      <description>&lt;p&gt;GitLab's manual workflows offers users the control to decide when the workflow should commence. The workflow is often defined in a gitlab-ci.yml file. The simplest template looks like the following.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;stages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;deploy
git_status:
stage: deploy
script:

&lt;ul&gt;
&lt;li&gt;echo "hello"&lt;/li&gt;
&lt;li&gt;ls&lt;/li&gt;
&lt;li&gt;pwd&lt;/li&gt;
&lt;li&gt;git pull origin main&lt;/li&gt;
&lt;li&gt;git status
when: manual
allow_failure: true&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;stages: Defines the stages in our CI/CD pipeline. In this scenario, we have a single stage named "deploy," signifying the final phase before deployment.&lt;/li&gt;
&lt;li&gt;git_status: The identifier for our job, customizable to suit our project's needs.&lt;/li&gt;
&lt;li&gt;script: Specifies the commands to be executed by GitLab upon job activation&lt;/li&gt;
&lt;li&gt;when: manual: mandates manual intervention before proceeding &lt;/li&gt;
&lt;li&gt;allow_failure: true: Provides leniency in the event of job failure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once the above changes have been committed, head over to the pipelines section. Build &amp;gt; Pipelines and click on the "Play" button adjacent to the job.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7butxgnmpf1le1e0a0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq7butxgnmpf1le1e0a0m.png" alt="Image description" width="438" height="278"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;This can be used to create a release for a project or for any other manual inspecting of the project such as running a lighthouse evaluation on a reactjs project.&lt;/p&gt;

&lt;p&gt;This article is also published in &lt;a href="https://parkerrobert.medium.com/manual-workflows-in-gitlab-d6addb70d389" rel="noopener noreferrer"&gt;https://parkerrobert.medium.com/manual-workflows-in-gitlab-d6addb70d389&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>VSCode Shortcuts</title>
      <dc:creator>d</dc:creator>
      <pubDate>Sun, 03 Mar 2024 15:19:14 +0000</pubDate>
      <link>https://forem.com/parkerrobert/vscode-shortcuts-319g</link>
      <guid>https://forem.com/parkerrobert/vscode-shortcuts-319g</guid>
      <description>&lt;p&gt;A good rule of thumb to being an efficient programmer is trying to be one with the tool you are using. For most people one of the most popular IDEs out there at the moment is VSCode.&lt;/p&gt;

&lt;p&gt;In order to supercharge your VSCode usage here are some shortcuts that go a long way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ur29t5jg49yw5zae894.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ur29t5jg49yw5zae894.png" alt="Image description" width="800" height="534"&gt;&lt;/a&gt;&lt;br&gt;
Photo by Mohammad Rahmani on Unsplash&lt;/p&gt;

&lt;h2&gt;
  
  
  Multiple cursors
&lt;/h2&gt;

&lt;p&gt;In order to enable multiple cursors in VSCode, press ALT + SHIFT + up/down or OPTION + COMMAND + up/down on a MAC. This is especially useful for writing duplicated code such as switch statements for example.&lt;br&gt;
multiple cursors&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1w98jqpjub2roe1u3im7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1w98jqpjub2roe1u3im7.png" alt="Image description" width="800" height="391"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Go to a specific line
&lt;/h2&gt;

&lt;p&gt;This works wonder when trying to fix linting errors or compiling errors. If the compiler tells you there is a problem in line 7, then hitting CTRL + p or COMMAND + p, followed by ":" and the line number allows you to quickly head to that line.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv1xtczmilbhc57att747.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv1xtczmilbhc57att747.png" alt="Image description" width="800" height="97"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Go to a file
&lt;/h2&gt;

&lt;p&gt;This is similar to the one above, but instead of adding a colon at the end simply type the file name. CTRL + p or COMMAND + p followed by the file name that you would like.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frkej3tpwc4hzy90bskrf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frkej3tpwc4hzy90bskrf.png" alt="Image description" width="800" height="112"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Search through all files
&lt;/h2&gt;

&lt;p&gt;If there is a term that you would like to find in all the files just to a CTRL + SHIFT + f or COMMAND + SHIFT + f&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fve92ola2qs14cqxv99rm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fve92ola2qs14cqxv99rm.png" alt="Image description" width="800" height="1036"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Search through current file
&lt;/h2&gt;

&lt;p&gt;If there is a term that you would like to find in the current file just to a CTRL + f or COMMAND + f&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvcd26ifpgljwcbz7huo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvcd26ifpgljwcbz7huo.png" alt="Image description" width="800" height="153"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Change next few occurences of the word
&lt;/h2&gt;

&lt;p&gt;If there is a term that you would like to find in the current file just to a CTRL + d or COMMAND + d multiple times&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frkdq3fn9qt7kkuwqrgr2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frkdq3fn9qt7kkuwqrgr2.png" alt="Image description" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Open README View
&lt;/h2&gt;

&lt;p&gt;It can be difficult to read READMEs at times. Instead of reading the markdown directly try this instead. CTRL + k followed by v&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbac7ya732vfr5l2iqqzb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbac7ya732vfr5l2iqqzb.png" alt="Image description" width="800" height="801"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above article was originally published on &lt;a href="https://parkerrobert.medium.com/vscode-shortcuts-57a145a7772f" rel="noopener noreferrer"&gt;https://parkerrobert.medium.com/vscode-shortcuts-57a145a7772f&lt;/a&gt;&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>shortcuts</category>
      <category>keyboard</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
