Difference between revisions of "Johnllopez Week 3"

From LMU BioDB 2017
Jump to: navigation, search
m (Quickly changed 'option' to output)
(I added the responses to the two questions involving "Studying the curl'd codes")
Line 1: Line 1:
 
==Hack-a-Page==
 
==Hack-a-Page==
 +
===Question 1===
 
In this portion of the assignment, I decided to modify the following webpage:
 
In this portion of the assignment, I decided to modify the following webpage:
 
  http://www.laloyolan.com/news/reflecting-on-the-u-s-constitution-and-immigrants-rights-advocacy/article_4d76c1d7-6cbd-5cdf-a6c6-cb2e42a4221e.html
 
  http://www.laloyolan.com/news/reflecting-on-the-u-s-constitution-and-immigrants-rights-advocacy/article_4d76c1d7-6cbd-5cdf-a6c6-cb2e42a4221e.html
Line 24: Line 25:
 
I developed this method thanks to assistance from the following online source:
 
I developed this method thanks to assistance from the following online source:
 
  CURL and click a button in a website. (n.d.). Retrieved September 18, 2017, from https://stackoverflow.com/questions/2366549/curl-and-click-a-button-in-a-website
 
  CURL and click a button in a website. (n.d.). Retrieved September 18, 2017, from https://stackoverflow.com/questions/2366549/curl-and-click-a-button-in-a-website
 +
 +
 +
==Study the Curl'ed Code==
 +
# Within the ExPASy translation server's responses, there are several links. Within the header portion of the page, the following links can be found:
 +
*http://www.isb-sib.ch/
 +
*http://www.expasy.org/
 +
*http://web.expasy.org/translate (this can be found twice)
 +
*http://web.expasy.org/contact
 +
 +
The body contains several links, which link to a wikipedia page and several pages that follow the translated results URI. These appear to display data specifically to the reading frame mentioned in the text of that link.
 +
*http://en.wikipedia.org/wiki/Open_reading_frame
 +
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,1
 +
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,2
 +
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,3
 +
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,4
 +
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,5
 +
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,6
 +
 +
Finally, there is a footer area which contains the following links:
 +
*http://www.isb-sib.ch/
 +
*http://www.expasy.org/disclaimer.html
 +
 +
===Question 2===
 +
It would appear that several of the links have unique resource identifiers, listed below:
 +
 +
*http://web.expasy.org/contact
 +
*http://web.expasy.org/cgi-bin/translate/
 +
*http://www.expasy.org/disclaimer
 +
 +
These identify where in the main server (http://web.expasy.org) you can find these webpages. However, six of the links contain both URIs and local IDs, which lead to parts of a database that store translation responses.
 +
 +
*/work/expasy/tmp/http/seqdna.31977,1
 +
*/work/expasy/tmp/http/seqdna.31977,2
 +
*/work/expasy/tmp/http/seqdna.31977,3
 +
*/work/expasy/tmp/http/seqdna.31977,4
 +
*/work/expasy/tmp/http/seqdna.31977,5
 +
*/work/expasy/tmp/http/seqdna.31977,6

Revision as of 01:28, 20 September 2017

Hack-a-Page

Question 1

In this portion of the assignment, I decided to modify the following webpage:

http://www.laloyolan.com/news/reflecting-on-the-u-s-constitution-and-immigrants-rights-advocacy/article_4d76c1d7-6cbd-5cdf-a6c6-cb2e42a4221e.html

I did this by right clicking on the heading that read "Reflecting on the U.S. Constitution and immigrants’ rights advocacy", selecting "Inspect", and between the span tags, I changed the text. I did this with the first paragraph as well by changing the area within the paragraph tags. For the image, I right clicked on it, selected "Inspect", and found the 'src' attribute which led to the original image. I replaced that image with the one found here:

tvtropes.org (n.d.) Rick and Mortys 1. Retrieved from http://static.tvtropes.org/pmwiki/pub/images/rickandmortys1.png


JohnLopezWeek3Screenshot1.png
Without the developer panel, it looks like this:
JohnLopezWeek3Screenshot2.png

"DMing" The Server with Curl

I found that the best way to implement curl is through using this formulaic command:

  • Let x = the sequence you want to translate
  • Let y = one of the three output formats (within the drop down menu)
  • Let z = one of the sixteen genetic codes (within the drop down menu)
curl -d "pre_text=x&output=y&code=z" http://web.expasy.org/cgi-bin/translate/dna_aa

I developed this method thanks to assistance from the following online source:

CURL and click a button in a website. (n.d.). Retrieved September 18, 2017, from https://stackoverflow.com/questions/2366549/curl-and-click-a-button-in-a-website


Study the Curl'ed Code

  1. Within the ExPASy translation server's responses, there are several links. Within the header portion of the page, the following links can be found:
*http://www.isb-sib.ch/
*http://www.expasy.org/
*http://web.expasy.org/translate (this can be found twice)
*http://web.expasy.org/contact

The body contains several links, which link to a wikipedia page and several pages that follow the translated results URI. These appear to display data specifically to the reading frame mentioned in the text of that link.

*http://en.wikipedia.org/wiki/Open_reading_frame
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,1
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,2
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,3
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,4
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,5
*http://web.expasy.org/cgi-bin/translate/dna_sequences?/work/expasy/tmp/http/seqdna.31977,6

Finally, there is a footer area which contains the following links:

*http://www.isb-sib.ch/
*http://www.expasy.org/disclaimer.html

Question 2

It would appear that several of the links have unique resource identifiers, listed below:

*http://web.expasy.org/contact
*http://web.expasy.org/cgi-bin/translate/
*http://www.expasy.org/disclaimer

These identify where in the main server (http://web.expasy.org) you can find these webpages. However, six of the links contain both URIs and local IDs, which lead to parts of a database that store translation responses.

*/work/expasy/tmp/http/seqdna.31977,1
*/work/expasy/tmp/http/seqdna.31977,2
*/work/expasy/tmp/http/seqdna.31977,3
*/work/expasy/tmp/http/seqdna.31977,4
*/work/expasy/tmp/http/seqdna.31977,5
*/work/expasy/tmp/http/seqdna.31977,6