QLanners Week 3

From LMU BioDB 2017
Revision as of 21:34, 19 September 2017 by Qlanners (talk | contribs) (Added rest of Links from the html command code retrieval)
Jump to: navigation, search

Hack a Webpage

Image of Hacked Webpage without the developer tools showing. Changes done to add in image and text of the Head Coach of the Minnesota Vikings.

LannersHackedWebpageWithoutDeveloper.png

Image of Hacked Webpage with the developer tools showing. Changes done to add in image and text of the Head Coach of the Minnesota Vikings.

LannersHackedWebpageWithDeveloper.png

ExPASy translation server and curl command

Command used to retrieve info at a raw-data level:

curl -X POST -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&output=Verbose&code=Standard&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa

ExPASy translation server output questions

Links for question 1:

  1. http://www.w3.org/TR/html4/loose.dtd : A HTML document "which includes presentation attributes and elements that W3C expects to phase out as support for style sheets matures"
  2. http://web.expasy.org/favicon.ico : A picture of the logo used on the page tab
  3. /css/sib_css/sib.css : A template laying out how the page should be formatted
  4. /css/sib_css/sib_print.css : A template laying out how the page should be formatted for printing
  5. /css/base.css : Another template for laying out the format of the page
  6. http://www.isb-sib.ch : Link to Swiss Institute of Bioinformatics Homepage
  7. http://www.expasy.org : Link to the ExPasy Bioinformatics Resource Portal Home
  8. http://web.expasy.org/translate : Link to the Translate Tool page (without any input in)
  9. http://en.wikipedia.org/wiki/Open_reading_frame : Wikipedia page for open reading frame
  10. http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.28321,1 : ExPASy translate tool highlighting open reading frames for frame 1
  11. http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.28321,2 : ExPASy translate tool highlighting open reading frames for frame 2
  12. http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.28321,3 : ExPASy translate tool highlighting open reading frames for frame 3
  13. http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.28321,4 : ExPASy translate tool highlighting open reading frames for frame 1
  14. http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.28321,5 : ExPASy translate tool highlighting open reading frames for frame 2
  15. http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.28321,6 : ExPASy translate tool highlighting open reading frames for frame 3
  16. http://www.isb-sib.ch : Swiss Institute of Bioinformatics link at bottom of page
  17. https://www.expasy.org/disclaimer.html : ExPASy disclaimer
  18. https://www.google-analytics.com/ga.js : Java script code used within the website


Identifiers for question 2:

  1. sib_top : The very top of the page
  2. sib_container : The container for the whole page returned
  3. sib_header_small : The small bar header at the top of the page
  4. sib_expasy_logo : The logo in the top left corner of the page
  5. resource_header : Not obvious, but possibly another formatting section for the header of the page
  6. sib_header_nav : The top right of the page with navigational buttons to home and contact
  7. sib_body : The portion of the page including the text and reading frames returned
  8. sib_footer : The footer at the bottom of the page
  9. sib_footer_content : The text/content included in the footer at the bottom of the page
  10. sib_footer_right : The text/content in the bottom right footer of the page
  11. sb_footer_gototop : The button going to the top of the page included in the footer


Command used to retrieve info at a just-the-info level:

curl -X POST -d "pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&output=Verbose&code=Standard&submit=Submit" http://web.expasy.org/cgi-bin/translate/dna_aa | sed "1,47d" | sed "13q" | sed "s/<[^>]*>//g"


Acknowledgements

  1. I met with my homework partner Dina Bashour for a three hour period outside of class to work on the more difficult command line portion of this assignment. We worked through developing the commands necessary to call the webpage along with retrieve just the answers. We also communicated through text on multiple occasions for smaller questions regarding the assignment.
  2. The Introduction to the Command Line for information on how to navigate the command line.
  3. The Web from the Command Line for information on how to communicate with a website via the command line.
  4. Dynamic Text Processing for information on how to parse through text in order to retrieve just the desired information.

While I worked with the people noted above, this individual journal entry was completed by me and not copied from another source. Qlanners (talk) 10:34, 19 September 2017 (PDT)

References

LMU BioDB 2017. (2017). Week 3. Retrieved September 18, 2017, from https://xmlpipedb.cs.lmu.edu/biodb/fall2017/index.php/Week_3