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


  • 9pjnfW <a href="http://wxoqntefatbr.com/">wxoqntefatbr</a>, [url=http://fkwbwjkinplr.com/]fkwbwjkinplr[/url], [link=http://ovyughjrmdde.com/]ovyughjrmdde[/link], http://ydanfntgsbno.com/
    - Anonymous, 2020-04-06 21:32:00.043975
  • 9pjnfW <a href="http://wxoqntefatbr.com/">wxoqntefatbr</a>, [url=http://fkwbwjkinplr.com/]fkwbwjkinplr[/url], [link=http://ovyughjrmdde.com/]ovyughjrmdde[/link], http://ydanfntgsbno.com/
    - Anonymous, 2020-04-06 21:31:58.848749
  • 9pjnfW <a href="http://wxoqntefatbr.com/">wxoqntefatbr</a>, [url=http://fkwbwjkinplr.com/]fkwbwjkinplr[/url], [link=http://ovyughjrmdde.com/]ovyughjrmdde[/link], http://ydanfntgsbno.com/
    - Anonymous, 2020-04-06 21:31:57.638737
  • mbrAMk <a href="http://fnoyygrmhyff.com/">fnoyygrmhyff</a>, [url=http://loyknwjgbvgv.com/]loyknwjgbvgv[/url], [link=http://ufrvznveohxt.com/]ufrvznveohxt[/link], http://nltjhvkpmhja.com/
    - Anonymous, 2020-04-06 14:20:53.442599
  • mbrAMk <a href="http://fnoyygrmhyff.com/">fnoyygrmhyff</a>, [url=http://loyknwjgbvgv.com/]loyknwjgbvgv[/url], [link=http://ufrvznveohxt.com/]ufrvznveohxt[/link], http://nltjhvkpmhja.com/
    - Anonymous, 2020-04-06 14:20:52.523287
  • mbrAMk <a href="http://fnoyygrmhyff.com/">fnoyygrmhyff</a>, [url=http://loyknwjgbvgv.com/]loyknwjgbvgv[/url], [link=http://ufrvznveohxt.com/]ufrvznveohxt[/link], http://nltjhvkpmhja.com/
    - Anonymous, 2020-04-06 14:20:51.419877
  • Hello from Austria. I'm glad to came across you. My first name is Grady. I live in a small city called Purgstall in western Austria. I was also born in Purgstall 39 years ago. Married in July year 2001. I'm working at the the office. http://aaa-rehab.com
    - Anonymous, 2020-03-27 16:05:22.445602
  • Hello from Austria. I'm glad to came across you. My first name is Grady. I live in a small city called Purgstall in western Austria. I was also born in Purgstall 39 years ago. Married in July year 2001. I'm working at the the office. http://aaa-rehab.com
    - Anonymous, 2020-03-27 16:05:20.865930
  • Hello from Austria. I'm glad to came across you. My first name is Grady. I live in a small city called Purgstall in western Austria. I was also born in Purgstall 39 years ago. Married in July year 2001. I'm working at the the office. http://aaa-rehab.com
    - Anonymous, 2020-03-27 16:05:19.272455
  • Hello from Austria. I'm glad to came across you. My first name is Grady. I live in a small city called Purgstall in western Austria. I was also born in Purgstall 39 years ago. Married in July year 2001. I'm working at the the office. http://aaa-rehab.com
    - Anonymous, 2020-03-27 16:05:17.654537

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 an advertising service that charges less than $49 per month and sends tons of people who are ready to buy directly to your website? Visit: http://www.trafficmasters.xyz
    - Anonymous, 2020-04-05 10:03:41.086650
  • Looking for fresh buyers? Get thousands of people who are ready to buy sent directly to your website. Boost your profits fast. Start seeing results in as little as 48 hours. To get info Visit: http://bit.ly/trafficmasters2020
    - Anonymous, 2020-04-04 09:43:31.830616
  • No charge advertising for your website here: http://www.submityourfreeads.xyz
    - Anonymous, 2020-04-02 00:03:58.835137
  • Hello! I can't complete my order in your store! Why don't you setup more stable processing like paypal.com or paymenthub.online? PayPal.com charges 3%, Paymenthub.online just 0.1% and setup is free.
    - Anonymous, 2020-03-28 10:53:57.846406
  • Promote your site for free here!: http://bit.ly/submityourfreeads
    - Anonymous, 2020-03-26 22:27:59.122574
  • Looking to melt pounds quickly and without any major diet or exercising? You're gonna love this: http://bit.ly/fixbellyfateasy
    - Anonymous, 2020-03-21 20:36:46.151154
  • Tired of paying for clicks and getting lousy results? Now you can post your ad on 5000 ad sites and it'll cost you less than $40. Get unlimited traffic forever! For details check out: http://bit.ly/adpostingrobot
    - Anonymous, 2020-03-17 07:10:43.153045
  • Say no to paying tons of cash for overpriced online advertising! I have a platform that requires only a tiny bit of money and results in an almost indefinite amount of traffic to your website For more information just visit: http://www.adpostingrobot.xyz
    - Anonymous, 2020-03-06 05:34:37.969390
  • In the past 15 years we have built over 400 websites and generated over 500,000 leads for our clients. We are a US company – with tons of references, testimonials and happy clients – and we want to be your go to marketing agency! So, here is our offer 15% off any of our services PLUS a FREE review of your: -Website (speed, SEO, look and feel, mobile compliance – everything) -Social media pages -Directory listings (are you showing up on google? What about Alexa and Siri?) -Landing pages -Email newsletters -Even your promotional products and printed materials…! The goal here is to make sure your brand is consistent – and your business grows! We are offering a 15% off voucher for your business Email me back with your contact information and website link at DebbieSilver2112@gmail.com You will not be sorry! Regards, Debbie Silver Branding & Marketing Specialist
    - Anonymous, 2020-03-05 07:39:44.455206
  • Need to find effective advertising that doesn't charge a fortune and gets amazing resuts? I apologize for sending you this message on your contact form but actually that's exactly where I wanted to make my point. We can send your ad message to websites through their contact pages just like you're reading this message right now. You can specify targets by keyword or just fire off mass blasts to sites in the location of your choice. So let's say you're looking to send an ad to all the contractors in the USA, we'll grab websites for only those and post your advertisement to them. Providing you're advertising some kind of offer that's relevant to that business category then you'll be blessed with awesome results! Write a quickie email to frank5860har@gmail.com for the full details
    - Anonymous, 2020-03-04 21:30:48.871836