Skip to main content

Posts

Showing posts from February, 2019

XMLLINT: Cleaning Up The Code

I had coded quite a large number of frames in the Artes Latinae project when I hit a wall.  I kept getting an error that was preventing the project from loading on my web browser. Finally, Marco came to my rescue with the next command for me to learn in hand.... XMLLINT ! We all know what a lint roller is right?  It cleans up all of the lint from our clothes.  Weeeell... XMLLINT is a program, that is on every unix installation, that checks XML (and HTML) syntax.   So, running the XMLLINT command on your terminal for the file you are using will show you where any XML (and HTML) errors are so that you can "clean them up" and fix them! Once all of the errors have been fixed, you run the XMLLINT command again and you will see your entire XML (and HTML) code displayed in your terminal!  Here is how the XMLLINT command responded when I had errors: *(I highlighted in yellow and changed the font to red so that you can see the errors that XMLLINT was finding) Lisas-MBP:

AWS CLI: Uploading Files From The Command Window To My S3 Bucket

When I wanted to upload my media/audio/data files to my S3 Bucket , I was logging on to AWS through my web browser. Yesterday, however, I learned a more efficient way to upload files to my S3 Bucket by using the  AWS COMMAND LINE INTERFACE (AWS CLI) .  I installed and configured this onto my computer so that I would be able to upload files directly from my command window. I created a user account with administrative permission using the AWS IAM service.  I noticed a familiar thing happen.  I received two sets of keys!  That's right... a public key and a SECRET key. 😊This secret key works pretty much the same way the public and private keys work when using SSH .  Just like the SSH keys, I filed the new keys from AWS IAM in a safe place on my computer. Then I installed and configured AWS CLI onto my computer.   Once it was installed, I gave it a test run... everything worked BUT---- all of the files I was putting into my S3 Bucket were not going in as public.  So, I applied

Tables and Rows in XML For Artes Latinae

TABLES and ROWS, TABLES and ROWS I am at the section in the Artes Latinae project , where the use of tables and rows are needed.  I am familiar with using tables and rows in HTML, but I wasn't sure how to do that in XML. It turns out, the code is the same.  In frame 102  ( remember to hit "ok" when the audio error appears, select my name "lisa", and then select frame # 102 to view ), the user will need to answer the question in a specific order.  In order to achieve this, the code needed to look like this: <table> <tr> <td> this is where information would go </td><td> this is where information would go </td> </tr> <tr> <td> this is where information would go </td><td> this is where information would go</td> </tr> <tr> <td> this is where information would go </td><td> this is where information would go </td> </tr>

Moving Files That Have Dependencies

Today I had to SCP(move/copy) Maestro's HTML file over to my EC2 Instance (my AWS Private Webserver ) and it turned out that his html file had dependencies and was not stand alone .  Because of these dependencies, when I SCP'd the file over, it didn't work on my webserver. What is  stand alone ? Stand alone means that a program/code is able to be moved from location to location and will still work.  It is not dependent on another program/code in order to run correctly. What is a dependency ?  A dependency is when a program/code is dependent on another program/code.  For example, if you have an HMTL file that contains images, if you move that HTML file to another location but do not move the image files, then when you try to run that HTML file through a web browser, the images will not render. I found out that I couldn't just SCP Maestro's HTML file into the root directory of my EC2 Instance because of the file's existing two dependencies.  Those depen

Amazon S3 Bucket ---> Why Should I Use It?

                               S3 BUCKET                                Amazon Web Services' (AWS) Simple Storage Service (S3). We all use buckets to store things.  Pictures, liquid, tools, toys...they all have to be kept somewhere.  What about data? That's where an AWS S3 Bucket can come in handy.  Data can get just as messy and chaotic to organize as tools and toys, especially if you have large amounts of data you need to keep track of.  Storing that data on your hard drive is not good because it will use up your hard drive storage as well as slow down your computer.  Putting data in a cloud based storage system, however, will allow you to store many different kinds of data (such as audio, jpg, and XML files) as well as organize that data into a system that is easy to access. Organizing data into an AWS S3 Bucket is a lot like a tree as well as a file system .  S3 has it's own terminology as well.  See below for the three different analogies that are

Artes Latinae Project Update....

FRAMES.... FRAMES...FRAMES...FRAMES...FRAMES Ever since Maestro Marco showed me what the final project would look like today, marking up the content from the images he gave me into XML files has made it so much clearer for me.   I went back to the first frame in Unit 15 and cleaned up the XML some more.  I inserted the single line break tags <br/>  between the sound and picture tags as well as between the response tags. Speaking of response tags, now that I was able to see the goal of the end product, I went back and incorporated the ans="" attributes within the response tags in the appropriate places.  Here is an example of what that looks like:   Jūdex <response ans=" rēs "></response> cognōscit. The end product of what this would look like is:                                Jūdex _______   cognōscit. What is cool about this is that the user will get a chance to fill in that white highlighted blank.  If the ans

Marking Up Information Into XML Structure And Seeing The FINISHED Product

                The Light Bulb Is FINALLY Turned On! My mentor has me working on a project called " Artes Latinae ". I have been marking up the information contained in images he has given me (using the XML markup language) so that a program he has can read my XML file and recreate the original image from my XML markup. Today he showed me the end result of what all of that markup creates.   I am a very visual person, so when I see the end result - it ties everything together for me. It was AWESOME!  He is turning a language book into an interactive online teaching course.  For people who learn best by interactive methods, this is going to be a valuable course. He showed me where the <sound></sound> tags and <response></response> tags will look like when they are done AND the importance of using the ans="" attributes in all of the <response></response> tags.   They are important because when you see the finished p

Artes Latinae Project: SCPing More JPG Files To My EC2 Instance

I just finished SCPing 24 jpg files to my webserver's docroot so that my mentor can view them for the Artes Latinae project he has me working on. If you would like to see some of the jpg files, click on the different links below to view them. irontreedev.com/ elephant-with-soldiers.png irontreedev.com/ woman-holds-baby.png irontreedev.com/ doctor-washes-boys-hand.png irontreedev.com/ judge-irritated-at-man-and-men.png irontreedev.com/ monkey-pulls-ladies-dresses-and-ladys-dress.png Follow me as I learn to build my website bit by bit!     IronTreeDev.com

SCP: Secure Copy Protocol

SCP = Secure Copy Protocol.  What is it and why is it important?   SCP provides a secure way to transfer files from one computer to another. For the project that I'm working on, I needed to SCP (send a copy) the XML files, as well as the image files, from my computer to my EC2 Instance (my web server).  Once done,  my teacher was be able to view my work via my website. Here are the steps to do this: 1.  Open two command windows (the program for my computer is called Terminal). 2.  Let's say the file I want to send is called "SallysFirstDate.xml" and it is located in the "tomy" folder.  Here is where that file lives: /Documents/path/tomy/SallysFirstDate.xml I need to first issue the command to "change directory"(cd) through each folder until I reach the folder that my file is located in.   It would look like this: cd /Documents THEN I need to "cd" again into the "path" folder: cd path THEN I need to "c