Ebachour Week 3

From LMU BioDB 2017
Revision as of 06:45, 20 September 2017 by Ebachour (talk | contribs) (Finished..i think)
Jump to: navigation, search

Edward Bachoura: Journal Week 3

Hack-A-Page

Hacked Page

With Console

"DM'ing" the Server with Curl

Final curl code:

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

Using the Command Line to Extract Just the Answers

Final curl code for answers:

curl -X POST -d "submit=Submit&pre_text=cgatggtacatggagtccagtagccgtagtgatgagatcgatgagctagc&output=Verbose&code=Standard" http://web.expasy.org/cgi-bin/translate/dna_aa | grep -E '<(BR|PRE)>' | sed 's/<[^>]*>//g'

Electronic Notebook

I used the LMU page out of laziness to find another one with easily accesible data. I used a website called upsidedowntext.com to flip all of the text on the page upside down. And in honor of It, I changed all the images to a picture of a movie ad for It. The first part of the curl assignment, once I understood what I was actually being asked to do, didn't take that long. I simply looked at the notes on the BioDB 2017 homepage and adpated some of the code examples. The next part took a lot of process of elimination. I got the first part (grep) pretty easily, but it took a lot of attempts to get the sed to properly clean the output to just the answers.

Acknowledgements

Hayden Hinsch & I met in person and texted regarding the Week 3 Journal Assignment.

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

References

LMU BioDB 2017. (2017). Week 3. Retrieved September 19, 2017, from https://xmlpipedb.cs.lmu.edu/biodb/fall2017/index.php/Week_3
ExPASy - Translate tool. (2017). Retrieved September 19, 2017, from http://web.expasy.org/translate/
StackOverflow. (2017). Retrieved September 19, 2017, from https://stackoverflow.com/questions/13096469/using-sed-delete-everything-between-two-characters

Navigate to the Rest of my Pages

Eddie Bachoura

Biological Databases Homepage

Assignment Pages

Journal Entries

Shared Journal Entries