Friday, May 15, 2015

Day 4

Today, I was able to get both my personality insights and question and answer application to work in Eclipse and was able to push them online. I also began to get started working on doing the same thing with the Alchemy API.

One of the most helpful things I have learned so far this week is that there are very few instances in which you need to start coding from scratch. Most of the time, you can take code from what you already have written or find source code online at sites like github. For example in my project, I needed to write a personality insights servlet class in order to get my application to respond to the statement you give it, so I just took a lot of the code from the question and answers class and the demo wrapper class to make it. This is a very helpful strategy to consider.

I encountered a couple of surprising problems that come to mind right now. When I went to Bluemix today, the bar at the top of the page containing dashboard, catalog, etc. was missing. To fix this, I had to log out and log back in to Bluemix. Another problem I encountered was getting the personality insights servlet to post a response to the statement on my web page. Initially, I was trying to use a System.out.println statement, but instead, I needed create a PrintWriter object in order for it to print on the page.

If what I am saying is a bit unclear, don't worry. I am going to begin creating a video of how to complete the tasks I have talked about. I hope this will make it easier and straightforward to all the downloading, coding, etc. that comes with the project as without the help of my mentor, I wouldn't have been able to do this project at all. I hope my video can explain everything you need to do well so you can successfully complete this project without the need of any outside help. I will post it here when it is finished.

No comments:

Post a Comment