Udacity Online Notebook

Let's work together to put all our notes in one place!

Login
Below, find a list of the last 10 notes submitted to this site.

Stage 5 Submission: Exploring the Wikipedia API

IPND 5.2
Use an API in order to get information from another application

My page now uses the Wikipedia API in order to provide the user with more information about a chosen topic! An API (Application Programming Interface) allows for one computer to get information directly from another computer. For example, if I have a web application and I want to include data from Wikipedia in my application, I can use Wikipedia's API in order to pull the information that I want. In fact, that is exactly what I am doing now with this project. Whenever a note is created on my page, the user has the option to include some tags, which show up at the bottom of the note. If you click on the tag, you can find some snippets of information taken from Wikipedia that are related to that tag. This will help you determine what to search for if you want to learn more about that topic. In order to implement this feature in my page, I had to utilize two major resources: The Wikipedia API page, and the Python documentation for parsing JSON (links to those resources can be found below, under "Documents"). The Wikipedia API page was extremely useful because it helped me understand how to use Wikipedia's API. Some simple examples are provided that show what a typical API query looks like. I learned that I needed to have a base URL, then add some query parameters to the end of it in order to get the data that I wanted. The page also shows a video which introduced me to how to use the API. Particularly useful was the information telling me what format I could expect my data. The page informed me that I could request either XML or JSON, but encouraged JSON (as XML and other formats were less popular and support for those might lag in the future). I built the query in python and I was able to retrieve JSON data for a particular query, but I still needed to learn how to parse the JSON. That is when I went to the Python documentation for the JSON module. The documentation showed me all of the functions that were included in the module, and examples for how to use each one. In particular, I was looking for ways to take a JSON object and convert it into Python code so that I could parse it. Right near the top of the page I found my function: json.loads. However, just because I used this function on my JSON object didn't mean that I immediately understood what I was looking at; it all seemed a mess. So I went back to the documentation and it also had some functions for how to make it appear organized, which they called "pretty printing". Using json.dumps, I was able to effectively debug my code and find the information that I wanted. This page of Python documentation told me everything I could ever want to know about the python json module.

image image

Tags

For links to more information about a particular topic, click on its tag below.
  1. api
  2. json
  3. xml
  4. wikipedia


  • In discomfit of that you restricted to guide your kids to have, on no account low regard that it’s in your economic inside information to consl.tiodto.se/elaemme-yhdessae/posti-vantaan-logistiikkakeskus.php insure that they advised of how to supervise greater than and multiply their own gelt in search years to come. After all, you muscle rely on your kids’ penurious habits to submit you hollowness after you associate with up your hat with a standpoint good.
    - Anonymous, 2019-11-19 19:22:43.371136
  • You've made the point. <a href="http://buyatarax-norx.com/">http://buyatarax-norx.com/</a> <a href="http://whatisrobaxin.com/">http://whatisrobaxin.com/</a> <a href="http://cephalexin-rxd.com/">How Much Does Cephalexin Cost Without Insurance</a> <a href="http://generic-phenergan.com/">http://generic-phenergan.com/</a> <a href="http://citalopram.fr/">http://citalopram.fr/</a> <a href="http://metformin-hcl.com/">http://metformin-hcl.com/</a> <a href="http://diflucan.fr/">diflucan</a> <a href="http://levitraoua.com/">Best Price Levitra Canada</a> <a href="http://erythromycin.fr/">Low-dose Erythromycin And Gastrointestinal Tract</a> <a href="http://zero.kankin.net/c/%E4%B9%99%E5%A5%B3%E3%81%AFM%E5%A5%B3%E3%81%AE%E5%8E%9F%E7%9F%B3%E3%81%A0%E3%81%A3%E3%81%9F/#reviews">d68gkzz i88lxo</a> dfb952d
    - Anonymous, 2019-11-19 18:08:41.197220
  • You actually mentioned this effectively! <a href="http://cytoteconline.fr/">http://cytoteconline.fr/</a> <a href="http://allopurinolmsnrxmsnrx.best/">Cost For Allopurinol</a> <a href="http://flagyl.fr /">Tramadol And Metronidazole</a> <a href="http://ventolinrx.fr/">Albuterol Delivery System</a> <a href="http://ciproguide.fr/">Ciprofloxacin 500 Side Effects</a> <a href="http://02np.ru/blog/otkryta-vakansiya-menedzhera-po-roznichnym-prodazham/#comment_148075">q25tkae a12uql</a> d3_053a
    - Anonymous, 2019-11-19 17:14:41.901303
  • Thanks a lot! Quite a lot of info! <a href="http://cephalexin-rxd.com/">Cephalexin No Prescriptions</a> <a href="http://larapropecia.com/">Finasteride And Cialis 5 Mg</a> <a href="http://ciproguide.fr/">Generic Cipro Cost</a> <a href="http://citalopram.fr/">elimite</a> <a href="http://buy-trazodone.com/">http://buy-trazodone.com/</a> <a href="http://hydrochlorothiazide.fr/">hydrochlorothiazide 25 mg</a> <a href="http://bactrimprice.com/">Picture Of A Bactrim Pill</a> <a href="http://lisinoprilstore.com/">http://lisinoprilstore.com/</a> <a href="http://flomax.fr/">http://flomax.fr/</a> <a href="http://nolvadex.fr/">tamoxifen langzeitfolgen</a> <a href="http://motiliumsite.com/">Filling Prescription For Domperidone</a> <a href="http://levitramsnrxmsnrx.best/">http://levitramsnrxmsnrx.best/</a> <a href="http://wellbutrin-web.com/">Gu Side Effects With Wellbutrin</a> <a href="http://teplociti-opt.ru/blog/montazh-teplyh-polov/#comment_67553">d25adyt y122me</a> b952d4_
    - Anonymous, 2019-11-19 16:19:34.979427
  • Awesome postings, With thanks! <a href="http://advair-coupons.com/">advair</a> <a href="http://azithromycin2k.com/">http://azithromycin2k.com/</a> <a href="http://dapoxetineonline.fr/">How To Get Priligy In Singapore</a> <a href="http://larapropecia.com/">Does Propecia Go Generic</a> <a href="http://clomidonline.fr/">http://clomidonline.fr/</a> <a href="http://levitraoua.com/">http://levitraoua.com/</a> <a href="http://bactrimprice.com/">http://bactrimprice.com/</a> <a href="http://erythromycin.fr/">http://erythromycin.fr/</a> <a href="http://flomax.fr/">tamsulosin medication</a> <a href="http://comprarbaclofensinreceta.com/">Zanaflex Cost At Walmart</a> <a href="http://proventilonline.fr/">tadalafil 20 mg</a> <a href="http://tadalafil-overnight.com/">Tadalafil Tablets Best Prices</a> <a href="http://adalt.oesss.ru/quest/index.php?ok=1">p46zfeh d71fvc</a> 98ca9be
    - Anonymous, 2019-11-19 15:23:33.076507
  • Amazing tons of amazing information. <a href="http://doxycyclinebestprice.com/">http://doxycyclinebestprice.com/</a> <a href="http://femara.fr/">letrozole</a> <a href="http://ciproguide.fr/">Cipro Office Pretoria Address</a> <a href="http://f8sildenafil.com/">http://f8sildenafil.com/</a> <a href="http://lexapro-rx-store.com/">Mixing Lexapro With Imitrex</a> <a href="http://tretinoin.fr/">http://tretinoin.fr/</a> <a href="http://100mgusviagra.com/">Does Viagra Help Premature</a> <a href="http://azithromycin2k.com/">http://azithromycin2k.com/</a> <a href="http://celexa.fr/">http://celexa.fr/</a> <a href="http://aciclovir.fr/">Acyclovir Primary Outbreak</a> <a href="http://hstairan.com/guestbook.php">b21tpp0 e94gsa</a> 98ca9be
    - Anonymous, 2019-11-19 14:26:49.074603
  • Good write ups. Appreciate it. <a href="http://flomaxtoday.com/">flomax medication</a> <a href="http://doxycycline.fr/">http://doxycycline.fr/</a> <a href="http://comprarbaclofensinreceta.com/">zanaflex 4mg</a> <a href="http://buyatarax-norx.com/">http://buyatarax-norx.com/</a> <a href="http://fluoxetine-shop.com/">http://fluoxetine-shop.com/</a> <a href="http://tetracycline.fr/">Cirpo And Tetracycline Combination Uti</a> <a href="http://stromectol.fr/">http://stromectol.fr/</a> <a href="http://tabse-augmentin.com/">http://tabse-augmentin.com/</a> <a href="http://www.bolzplatz.com/show_detail_id_86.html">u145cjp f82bar</a> 8d3fed1
    - Anonymous, 2019-11-19 13:29:28.671032
  • You have made your point quite effectively.! <a href="http://metformin-hcl.com/">Donde Comprar Metformine En Usa</a> <a href="http://ventolinrx.fr/">ventolin inhaler</a> <a href="http://nolvadex.fr/">tamoxifen langzeitfolgen</a> <a href="http://kamagra-pills-rx.com/">http://kamagra-pills-rx.com/</a> <a href="http://amoxicillincaamoxil.com/">trimox</a> <a href="http://clomidonline.fr/">Otc Provera Clomid</a> <a href="http://synthroid.fr/">Going Off Synthroid Symptoms</a> <a href="http://prednisolone.fr/">http://prednisolone.fr/</a> <a href="http://buy-cymbalta-online.com/">cymbalta duloxetine</a> <a href="http://mikatsu.info/blog/lodochnye-motory-mikatsu/#comment_203853">s52tmbd n30kkn</a> d497038
    - Anonymous, 2019-11-19 12:31:03.090906
  • This is nicely expressed. ! <a href="http://suhagra.fr/">suhagra 100mg</a> <a href="http://inderal.fr/">propanol</a> <a href="http://nizagara.fr/">http://nizagara.fr/</a> <a href="http://retinarx.fr/">http://retinarx.fr/</a> <a href="http://celexa-today.com/">Mixing Xanax And Celexa</a> <a href="http://silagra.fr/">Cost Of Sildenafil In Pphn</a> <a href="http://phenergan.fr/">http://phenergan.fr/</a> <a href="http://accutane.fr/">http://accutane.fr/</a> <a href="http://hydrochlorothiazide.fr/">Hydrochlorothiazide Tab</a> <a href="http://xenicalrx.fr/">http://xenicalrx.fr/</a> <a href="http://valtrex.fr/">http://valtrex.fr/</a> <a href="http://buy-trazodone.com/">trazodone 100 mg</a> <a href="http://100mgusviagra.com/">http://100mgusviagra.com/</a> <a href="http://kamagra-pills-rx.com/">Kamagra Bestellen In Deutschland</a> <a href="http://amoxil.fr/">amoxicillin rash</a> <a href="https://sanktuarium-maryjne.pl/parafia/207-pierwsza-komunia-%C5%9Bwi%C4%99ta/">a46gyyg i29wur</a> fed198c
    - Anonymous, 2019-11-19 11:34:29.671518
  • Thanks a lot! Lots of knowledge! <a href="http://motiliumsite.com/">http://motiliumsite.com/</a> <a href="http://doxycyclinebestprice.com/">doxycycline monohydrate 100mg</a> <a href="http://silagra.fr/">sildenafil</a> <a href="http://zithromaxrx.fr/">Zithromax Dosing For Adults</a> <a href="http://accutane.fr/">accutane for acne</a> <a href="http://comprarbaclofensinreceta.com/">baclofen 10 mg tablet</a> <a href="http://flagyl.fr /">flagyl 500 mg</a> <a href="http://riauberdaulat.com/berita-bupati-bengkalis-imbau-warganya-tertib-berlalu-lintas.html">n628ptu w84usx</a> 8_07f03
    - Anonymous, 2019-11-19 10:38:24.386496

Validate, but Provide a Good User Experience

IPND 4.6
Explain and apply the concept of validation

Validation is extremely important as it controls what information the user is allowed to send to the server. However, it must be done in a way that seems natural and makes for a pleasant user experience. If the user has submitted invalid data, it is a good idea to let them know exactly how their submission is invalid so that they can know how to fix it. This pages uses an error message that tells the user how the data they submitted is invalid. Validation also involves accounting for when the user tries to submit blank forms.

image

Tags

For links to more information about a particular topic, click on its tag below.
  1. validation


  • <b> Testing </b>
    - thales.comp, 2015-08-24 17:15:37.159030
  • I posted this note in response to my project reviewer.
    - svaughnlewis, 2015-08-24 16:03:03.894310

What Is the Role of the Server?

IPND 4.2
Define and explain the major components of network programming.

The purpose of servers is to respond to HTTP requests. HTTP is one of the major protocols of the web, and my computer uses HTTP to communicate with the server that hosts the website that I want to look at. The server responds to the requests of my computer. A server may have two types of responses: static and dynamic. Static content includes pre-written files that the server returns (e.g. images). Dynamic responses are created on the fly by a program that is running on the server. Programs hosted on web servers that serve dynamic content to requests are known as web applications. The request that my computer sends to the server is called a "GET Request". This is a request to "get" whatever page I'm looking for on that server. The server responds to my get request by delivering whatever it was that I requested. My computer sends a get request, the server sends a response. Another type of request is called a "POST Request". This sends a message to the server with instructions on what changes to make to whatever page I'm specifying. POST requests are used to update, change, or modify things on the server. For example, submitting this note will send a POST request to the server telling it to add a new note to the database. It will then redirect to the main page, which will then issue a GET request to show that page.

image

Tags

For links to more information about a particular topic, click on its tag below.
  1. GET
  2. POST
  3. server
  4. HTTP


  • <b>test</b>
    - Anonymous, 2015-08-25 03:42:14.721770
  • I posted this note in response to the project review requesting some additional content.
    - svaughnlewis, 2015-08-24 16:03:36.915300

Google App Engine

IPND 4.8
Use the datastore to store information submitted through your webapp

Please find my full, detailed notes in the links below under "Documents". Databases are crucial to any webapp. They allow for data gathered from the user to be stored so that it can be retrieved later (for example, if someone wants to log in to their account). Databases have to conform to the concept of ACID - that is, they must be Atomic (all transactions must occur, none), Consistent (should not return stale data; as soon as data is input, it should be available for retrieval), Isolation (all operations on a database should be independent of each other), and Durable (data put into the database should be there when you need it later; it shouldn't go missing).

image image

Tags

For links to more information about a particular topic, click on its tag below.
  1. datastore
  2. databases
  3. SQL
  4. mySQL
  5. appengine


  • Love it! Thank you!!
    - Anonymous, 2015-11-25 03:54:08.495590
  • I added comment validation. It should be impossible to submit blank comments now.
    - svaughnlewis, 2015-08-24 16:04:19.309850
  • \& <b>bold</b>
    - Anonymous, 2015-08-24 07:06:35.982980

  • - Anonymous, 2015-08-24 07:06:20.299530

Jump-Starting Your Website with Templates

IPND 4.7
Use jinja templates in order to avoid writing html in your scripts

Please see my full notes for this topic in the documents below. HTML templates allow us to greatly simplify the process of making webpages. Usually you want all your pages to have, if not the same basic layout, then at least similar themes. That is where templates come into play. You can create a base template that all other html pages that you write are based on. That way, if you need to make a change to the header or layout of your site, you only need to change the base template and not every page in the site. Templates make your code much more maintainable. Furthermore, templates allow you to run code inside them so that your web pages are more dynamic.

image

Tags

For links to more information about a particular topic, click on its tag below.
  1. template
  2. jinja2
  3. http


  • <m>
    - Anonymous, 2015-12-27 18:42:04.700500
  • <b>
    - Anonymous, 2015-09-08 19:29:32.014040
  • Blank comments are no longer allowed!
    - svaughnlewis, 2015-08-24 16:04:52.066250

  • - Anonymous, 2015-08-24 07:07:18.472850
  • This lesson was difficult to understand at first, but eventually I got the hang of it.
    - svaughnlewis, 2015-08-23 21:16:26.973500

Validating User Input

IPND 4.6
Explain and apply the concept of validation

Please find my note below in the "Documents" section. Validation is an extremely important aspect of web development because you never know what your users will put in a form. At the very least, they could input data that is incorrect; but if you neglect validation, then a malicious user can completely disable and take over your site. Always ensure that you validate user input on the server side so that you only get information that you want from the user.

Tags

For links to more information about a particular topic, click on its tag below.
  1. forms
  2. validation
  3. http
  4. get
  5. request
  6. post



Creating and Using Forms

IPND 4.3
Create a basic form that accepts verious types of user input

Find a link to my notes in the "Documents" section below.

image

Tags

For links to more information about a particular topic, click on its tag below.
  1. forms
  2. http
  3. get
  4. post
  5. request



How Do Objects on a Network Communicate?

IPND 4.2
Define and explain the major components of network programming.

You may find a link to my notes in the "Documents" section below.

image image

Tags

For links to more information about a particular topic, click on its tag below.
  1. http
  2. request
  3. get
  4. post
  5. header



Introduction to Networks

IPND 4.1
Define and explain networking concepts like latency, bandwidth, and protocols

A network is a group of entities that can communicate with each other though they are not directly connected. Networks can be measured two main ways: latency and bandwidth. Latency is the time it takes for a message to get from its source to its destination, and is measured in seconds or milliseconds. Bandwidth is the amount of information that can transmitted per unit time. This is usually measured in bits per second. A bit is the currency of networks - it is the smallest unit of information. In order to have a functioning network, we need to have rules for them to follow. These rules are protocols. An important protocol that we have been working with is HTTP protocol, which is the protocol of the World Wide Web. There are also other protocols, such as FTP.

image image

Tags

For links to more information about a particular topic, click on its tag below.
  1. networks
  2. http
  3. protocol
  4. bandwidth
  5. latency



Advanced Topics in OOP

IPND 3.4
Explain and apply OOP concepts like inheritance and method overriding

Instance variables are variables that are associated with every instance of a created object. Whenever an instance of that object is created, the instance variables assume their values. Class variables, however, are variables that ALL instances of a certain object in a class should share. Inheritance is when a class inherits certain traits from a parent class. This is important because it allows us to reuse code and makes code easier to maintain. However, with inheritance, if a child class inherits from a parent class, there may be some traits or methods that you want to define specifically for that child class; when you do that, the method that would be inherited is 'overridden' by the one you wrote for the child class. This is called method overriding. Use of instance variable, class variables, inheritance, and method overriding are powerful tools in your OOP arsenal.

image

Tags

For links to more information about a particular topic, click on its tag below.
  1. oop
  2. classes
  3. inheritance
  4. variables
  5. python


  • Im attempting to figure out how to subscribe to the RSS feeds, but cannot figure it out. Some help would be awesome Thanks houston junk car buyer http://ow.ly/xwPX50x1rdP
    - Anonymous, 2019-11-04 23:44:42.348989
  • Unbelievably user pleasant site. Great info readily available on few clicks FIFA 17 POINTS http://www.collarfactory.com/cforum/viewtopic.php?f=2&t=104393
    - Anonymous, 2016-09-28 06:43:42.380440
  • Appreciate it! It is an outstanding online site!. fifa 17 http://soupdogsoftware.com/forum/viewtopic.php?f=9&t=80439
    - Anonymous, 2016-08-17 10:11:16.065680
  • I like reading your site. Regards! nba 2k17 coins http://fjhdthdert.mywapblog.com/fifa-17-account-by-searching-on-the-inte.xhtml
    - Anonymous, 2016-08-16 07:14:16.214390
  • Hello Web Admin, I noticed that your On-Page SEO is is missing a few factors, for one you do not use all three H tags in your post, also I notice that you are not using bold or italics properly in your SEO optimization. On-Page SEO means more now than ever since the new Google update: Panda. No longer are backlinks and simply pinging or sending out a RSS feed the key to getting Google PageRank or Alexa Rankings, You now NEED On-Page SEO. So what is good On-Page SEO?First your keyword must appear in the title.Then it must appear in the URL.You have to optimize your keyword and make sure that it has a nice keyword density of 3-5% in your article with relevant LSI (Latent Semantic Indexing). Then you should spread all H1,H2,H3 tags in your article.Your Keyword should appear in your first paragraph and in the last sentence of the page. You should have relevant usage of Bold and italics of your keyword.There should be one internal link to a page on your blog and you should have one image with an alt tag that has your keyword....wait there's even more Now what if i told you there was a simple Wordpress plugin that does all the On-Page SEO, and automatically for you? That's right AUTOMATICALLY, just watch this 4minute video for more information at. <a href="http://www.SeoOptimizedRankings.com">Seo Plugin</a> [url=http://www.SeoOptimizedRankings.com/]seo[/url]
    - Anonymous, 2016-02-09 01:16:49.311170
  • Hello Web Admin, I noticed that your On-Page SEO is is missing a few factors, for one you do not use all three H tags in your post, also I notice that you are not using bold or italics properly in your SEO optimization. On-Page SEO means more now than ever since the new Google update: Panda. No longer are backlinks and simply pinging or sending out a RSS feed the key to getting Google PageRank or Alexa Rankings, You now NEED On-Page SEO. So what is good On-Page SEO?First your keyword must appear in the title.Then it must appear in the URL.You have to optimize your keyword and make sure that it has a nice keyword density of 3-5% in your article with relevant LSI (Latent Semantic Indexing). Then you should spread all H1,H2,H3 tags in your article.Your Keyword should appear in your first paragraph and in the last sentence of the page. You should have relevant usage of Bold and italics of your keyword.There should be one internal link to a page on your blog and you should have one image with an alt tag that has your keyword....wait there's even more Now what if i told you there was a simple Wordpress plugin that does all the On-Page SEO, and automatically for you? That's right AUTOMATICALLY, just watch this 4minute video for more information at. <a href="http://www.SEORankingLinks.com">Seo Plugin</a> seo http://www.SEORankingLinks.com/
    - Anonymous, 2015-11-11 18:22:00.859860