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


  • Incredible a good deal of fantastic facts. <a href="https://cialistl.com/">Levitra Vs Cialis Vs Herbal</a> <a href="https://canadianonlinepharmacytrust.com/">canada viagra</a> <a href="https://canadianpharmacyopen.com/">canada drugs online</a> <a href="https://safeonlinecanadian.com/">canadian pharmacies shipping to usa</a> <a href="https://trustedwebpharmacy.com/">top rated canadian pharmacies online</a> <a href="https://viagradocker.com/">viagra results before and after</a> <a href="https://cbdproductstrust.com/">cbd hemp oil</a>
    - Anonymous, 2020-01-26 18:10:56.520378
  • You said it very well.! <a href="https://hydrochlorothiazide25mgtab.com/">Cost Of Hydrochlorothiazide Tablets</a>
    - Anonymous, 2020-01-26 18:08:34.013567
  • Awesome content, Cheers. <a href="https://cbdhempoiltrust.com/">kratom for sale</a>
    - Anonymous, 2020-01-26 18:08:32.726587
  • Nicely put, Thanks a lot. <a href="https://trustedwebpharmacy.com/">canada online pharmacies</a>
    - Anonymous, 2020-01-26 18:08:32.213315
  • You actually suggested that wonderfully! <a href="https://viagradjango.com/">generic viagra online</a> <a href="https://cbdhempoiltrust.com/">cbd oil benefits webmd</a> <a href="https://canadianpharmaceuticalsonlinerx.com/">canadian pharmacies-24h</a> <a href="https://buymodafinilntx.com/">Side Effects Of Long Term Use Of Provigil</a>
    - Anonymous, 2020-01-26 18:06:16.804160
  • You actually explained it fantastically! <a href="https://canadianpharmacyntv.com/">northwest pharmacy</a>
    - Anonymous, 2020-01-26 18:06:02.926654
  • Cheers, I appreciate this! <a href="https://amoxicillincaamoxil.com/">amoxicilina</a>
    - Anonymous, 2020-01-26 18:06:02.410711
  • You made your point. <a href="https://canadianonlinepharmacytrust.com/">no prior prescription required pharmacy</a>
    - Anonymous, 2020-01-26 18:06:01.909453
  • Wonderful facts. Cheers! <a href="https://canadianonlinepharmacytrust.com/">north west pharmacy canada</a> <a href="https://canadianpharmacyntv.com/">canadian pharcharmy online no precipitation</a> <a href="https://cbdproductstrust.com/">600 mg cbd oil</a> <a href="https://buymodafinilntx.com/">Provigil Cause Sleepiness</a> <a href="https://canadianpharmaciescubarx.com/">canadian pharmacies</a> <a href="https://trustedwebpharmacy.com/">drugs from canada with prescription</a> <a href="https://cbdhempoiltrust.com/">cbd oil interactions with medications</a>
    - Anonymous, 2020-01-26 18:04:42.801669
  • Thanks a lot. Lots of posts. <a href="https://cbdproductstrust.com/">where to buy cbd oil for dogs</a> <a href="https://viagradjango.com/">generic viagra 100mg</a> <a href="https://canadianpharmacyopen.com/">canada viagra</a> <a href="https://viagrapython.com/">viagra challenge</a> <a href="https://canadianpharmaceuticalsonlinerx.com/">canadian pharmacy</a> <a href="https://canadianpharmacyntv.com/">global pharmacy canada</a>
    - Anonymous, 2020-01-26 18:03:56.501454

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


  • Thanks, Ample info! <a href="https://rxdiflucan.com/">diflucan</a>
    - Anonymous, 2020-01-04 08:53:34.589415
  • <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


  • With thanks. Ample data! <a href="https://rxdiflucan.com/">diflucan</a>
    - Anonymous, 2020-01-03 12:37:10.208854
  • Seriously loads of good tips. <a href="https://rxdiflucan.com/">fluconazole tablets</a>
    - Anonymous, 2020-01-02 19:53:22.678198
  • <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


  • Amazing plenty of awesome information! <a href="https://rxdiflucan.com/">diflucan</a>
    - Anonymous, 2020-01-04 04:51:27.382850
  • 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


  • Thanks, A good amount of postings. <a href="https://rxdiflucan.com/">diflucan generic</a>
    - Anonymous, 2020-01-03 19:12:36.489908
  • Nicely spoken genuinely. ! <a href="https://rxdiflucan.com/">fluconazole 100 mg</a>
    - Anonymous, 2020-01-03 03:57:26.341063
  • <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


  • Effectively spoken really. . <a href="https://rxdiflucan.com/">fluconazol 150 mg</a>
    - Anonymous, 2020-01-03 11:26:01.005471
  • Thank you, Loads of knowledge! <a href="https://rxdiflucan.com/">diflucan 150 mg</a>
    - Anonymous, 2020-01-02 18:41:25.357765

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


  • Kudos! I appreciate it. <a href="https://rxdiflucan.com/">fluconazole</a>
    - Anonymous, 2020-01-04 04:27:52.888356

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


  • Interested in advertising that charges less than $39 every month and sends thousands of people who are ready to buy directly to your website? Have a look at: http://www.moreleadsandsales.xyz
    - Anonymous, 2020-01-25 22:50:27.801713
  • Looking for powerful online marketing that delivers real results? Sorry to bug you on your contact form but actually that's exactly where I wanted to make my point. We can send your promotional copy to sites via their contact pages just like you're getting this note right now. You can specify targets by keyword or just fire off mass blasts to sites in any country you choose. So let's assume you need to blast an ad to all the mortgage brokers in the USA, we'll scrape websites for just those and post your ad message to them. As long as you're promoting something that's relevant to that type of business then your business will get an awesome result! Type up a quick note to ethan3646hug@gmail.com to find out how we do this
    - Anonymous, 2020-01-08 03:40:44.900514
  • This is nicely put. . <a href="https://rxdiflucan.com/">fluconazol</a>
    - Anonymous, 2020-01-04 06:59:10.404316
  • Do not forget! Such Once a year! ### https://cutt.us/Discount ### The biggest sale of clothing, shoes, electronics, phones, auto, health and beauty products, products for children and adults, and much more %%% http://bit.do/Your_2019_Discount %%%
    - Anonymous, 2019-12-04 04:55:09.036071
  • 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