Difference between revisions of "Johnllopez Week 3"

From LMU BioDB 2017
Jump to: navigation, search
(Added the "DMing the server with curl" section)
m (Quickly changed 'option' to output)
Line 20: Line 20:
 
*Let z = one of the sixteen genetic codes (within the drop down menu)
 
*Let z = one of the sixteen genetic codes (within the drop down menu)
  
  curl -d "pre_text=x&option=y&code=z" http://web.expasy.org/cgi-bin/translate/dna_aa
+
  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:
 
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

Revision as of 01:46, 19 September 2017

Hack-a-Page

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