The Last Days of Bootcamp

The bootcamp is just about over and I haven’t blogged in a bit.

Let’s start with a little bit about last week.

About Last Week:

Last week was mainly about planning to take the belt exam on Friday. I wrapped up a couple of assignments at the beginning of the week and by the middle of the week I was ready to work on the belt exam prep test. If I never mentioned it before – the belt exam is a test taken at the end of three weeks of every stack to test our knowledge of the stack. During the test, which are given 4 1/2 hours to complete, we get a wireframe of what we need to do and instructions of what our final product should expect to have. There’s always a login/registration page, which after a successful attempt should log a user into their page which includes things like where you can add an item such as an event, a show page – which shows more about a particular event and sometimes a table of all the events added by every user.

We took our exam Friday afternoon and I have to admit that I felt I did better at my first attempt than I have on past exams. I managed to finish deploying within the next our the test is over and was on my out the door by 7pm.

This week…so far:

The week started of with a small group in my cohort. It was our last week, which is time we spend working on a project, catching up on past material we may have didn’t grasp or couldn’t get to or retaking our belt exam if we felt the need. On Monday, there were about 5 people here from my cohort. I worked on updating my personal website and going over some stuff on my exam from Friday and making the finish product look nicer.

On Tuesday there were a couple more people that trickled in and I had a tough time concentrating because I’m very exciting for the end of the program. I received my belt exam results back and found out that I received a red belt – which in my case was 1.3 points away from a black belt. With that news, I decided I’d head home since I knew I wasn’t getting any work done. At first, I told my instructor I wasn’t going to retake but after my 30 minute train ride home, I decided to regroup and to retake on Saturday.

On Wednesday, I didn’t go in to the dojo – I wanted to stay at home to concentrate in silence so I could go over what went wrong on my exam. One of my main issues is that I had extra information in my table that didn’t need to be there – it was as if the query I had been used was looping multiple times and I found out later that that was the case. To fix this issue, I wracked my brain for hours before taking a break to run some errands since I was at home. When I returned I felt revived and went straight to my computer and got to work. Turns out I needed to to do a join and select the columns I needed from each table so I could just loop through them and get the data I needed one time instead of multiple times. Here’s the query I used:

@lend = Lender.joins(:histories).select(“lenders.first_name, lenders.last_name, lenders.email”).select(“histories.amount, histories.borrower_id, histories.lender_id”)

This query joins the Lender and History tables and selects the lender’s first and last name and email. It also selects the histories amount and id’s of both the borrower and lender. Once this was set into place, it was easy to loop through this to get the information for my table as below:

  <% @lend.each do |help| %>

      <% if help.lender_id == session[:user_id] %>

       <tr>

        <td><%= help.first_name %> <%= help.last_name %></td>

        <td><%= help.purpose %></td>

        <td><%= help.description %></td>

        <td><%= help.needed %></td>

        <td><%= help.raised %></td>

         <td><%= help.amount %></td>

      </tr>

    <% end %>

  <% end %>

I felt pretty accomplished after this – It may seem like a small feat to anyone else but it took a long process to come up with the query to use. I used my rails console to try out different queries in order to figure out which one would give me the data I needed.

Looking Back April 28, 2016- April 29, 2016

Looking Back:

Thursday April 28, 2016:

The next day, we took our belt exams, I didn’t pass but I went in knowing I probably wasn’t going to but instead, knowing the exam would be great practice for my retake. In turns out, I wasn’t the only person who did poorly, majority of the cohort with the exception of 3 had to retake the exam. We spent the day after the exam taking turns going up completing part of the exam as a group as we did as a smaller group the days before but this time using github to collaborate. This process again took much of the day so I didn’t do much additional practice on my own. I spent my weekend catching up on assignments and starting to go back over the exam on my own so I was comfortable with the entire process from creating an ERD in MySQL workbench to deploying on Amazon Web Services.

It was project week and since I had to retake my exam, I spent the week preparing for the test by redoing the exam we just took but on my own this time. This process to much of my time as I wanted to make sure I understood what was going on at each point so I wouldn’t make the same mistakes when I finally took the exam. The rest of the week was filled with algorithms featuring linked lists, folks doing their projects and others studying for their exam retake.

I decided to not go into the Dojo on Thursday so I could have some quiet to take my test. Many times, I need to talk things out and am not able to hear myself think with others having their own conversations so I stayed at home and started my test at about 8am. The whole test takes 4 1/2 hours and I know I needed to deploy my project as well, which I needed to watch the video that was prerecorded by our instructor, even though I’ve watched it in the past, I wanted to follow it step by step and knew I hadn’t learnt the instructions by heart as of yet.

I was working on a tough query when I had about an hour left, I felt confident on everything else but was unable to execute this query to get the information I had knowing that it would take me longer than I had available so I bit the bullet and decided to work on deploying since I knew it from taking the test last time that it was worth a healthy portion of our scores. I was doing well until I ran into an error with my SQL table – For Amazon Web Services, you have to change the localhost and password in order for it to work on Ubuntu server. Before I noticed this, I remember putting my files into another folder, by doing so caused the changes I had made to the database file to not take place in my current folder. Thus in such, causing the demise of me getting a black belt in the LAMP stack. I researched, couldn’t find anything and time was running out so I decided to go ahead and turn in what I had along with the ip address where my project was supposed to running on AWS. While turning in it, the exam platform didn’t recognize the zipped file I had uploaded so I rushed to e-mail it to the instructor also sending him a message on Slack explaining the situation.

I was pretty frustrated so I took a step back from the computer after the test and came back after a while to redeploy my project…I was going to get it up and running one way or another. I was able to deploy but it was under a different ip address than my instructor had so I knew it didn’t count but it did allow me to see where I made my mistakes and to ensure I did not do that again.

FRIDAY – April 29, 2016:

It was the last day of project week and I was pretty anxious considering I didn’t have a project and we didn’t have access to our next stack yet so my instructor suggested I look at AJAX, so I did. In the afternoon, there were 2 project presentations and afterwards I called it an evening.

Looking Back – Finishing up the LAMP Stack

Looking Back – Finishing up the LAMP Stack

Thursday April 28, 2016:

The next day, we took our belt exams, I didn’t pass but I went in knowing I probably wasn’t going to but instead, knowing the exam would be great practice for my retake. In turns out, I wasn’t the only person who did poorly, majority of the cohort with the exception of 3 had to retake the exam. We spent the day after the exam taking turns going up completing part of the exam as a group as we did as a smaller group the days before but this time using github to collaborate. This process again took much of the day so I didn’t do much additional practice on my own. I spent my weekend catching up on assignments and starting to go back over the exam on my own so I was comfortable with the entire process from creating an ERD in MySQL workbench to deploying on Amazon Web Services.

It was project week and since I had to retake my exam, I spent the week preparing for the test by redoing the exam we just took but on my own this time. This process to much of my time as I wanted to make sure I understood what was going on at each point so I wouldn’t make the same mistakes when I finally took the exam. The rest of the week was filled with algorithms featuring linked lists, folks doing their projects and others studying for their exam retake.

I decided to not go into the Dojo on Thursday so I could have some quiet to take my test. Many times, I need to talk things out and am not able to hear myself think with others having their own conversations so I stayed at home and started my test at about 8am. The whole test takes 4 1/2 hours and I know I needed to deploy my project as well, which I needed to watch the video that was prerecorded by our instructor, even though I’ve watched it in the past, I wanted to follow it step by step and knew I hadn’t learnt the instructions by heart as of yet.

I was working on a tough query when I had about an hour left, I felt confident on everything else but was unable to execute this query to get the information I had knowing that it would take me longer than I had available so I bit the bullet and decided to work on deploying since I knew it from taking the test last time that it was worth a healthy portion of our scores. I was doing well until I ran into an error with my SQL table – For Amazon Web Services, you have to change the localhost and password in order for it to work on Ubuntu server. Before I noticed this, I remember putting my files into another folder, by doing so caused the changes I had made to the database file to not take place in my current folder. Thus in such, causing the demise of me getting a black belt in the LAMP stack. I researched, couldn’t find anything and time was running out so I decided to go ahead and turn in what I had along with the ip address where my project was supposed to running on AWS. While turning in it, the exam platform didn’t recognize the zipped file I had uploaded so I rushed to e-mail it to the instructor also sending him a message on Slack explaining the situation.

I was pretty frustrated so I took a step back from the computer after the test and came back after a while to redeploy my project…I was going to get it up and running one way or another. I was able to deploy but it was under a different ip address than my instructor had so I knew it didn’t count but it did allow me to see where I made my mistakes and to ensure I did not do that again.

FRIDAY – April 29, 2016:

It was the last day of project week and I was pretty anxious considering I didn’t have a project and we didn’t have access to our next stack yet so my instructor suggested I look at AJAX, so I did. In the afternoon, there were 2 project presentations and afterwards I called it an evening.