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


  • what are the side effects of cialis <a href=" http://tadalafilprof.com/# ">cialis vs viagra</a>
    - Anonymous, 2020-07-02 16:55:27.770494
  • 30 mg cialis what happens <a href=" http://tadalafilprof.com/# ">cialis</a> cialis vs levitra: http://tadalafilprof.com
    - Anonymous, 2020-07-02 14:21:50.388868
  • cialis vidalista <a href=" http://tadalafilprof.com/# ">cialis tadalafil</a> cialis generic: http://tadalafilprof.com
    - Anonymous, 2020-07-02 11:43:32.069585
  • herbal replacement for viagra/cialis/levitra... <a href=" http://tadalafilprof.com/# ">cialis vs viagra</a>
    - Anonymous, 2020-07-02 09:33:32.673998
  • <a href=" http://tadalafilprof.com/# ">cialis tadalafil</a> http://tadalafilprof.com - buy viagra cialis [url=http://tadalafilprof.com]buy cialis[/url]
    - Anonymous, 2020-07-02 08:05:32.685886
  • <a href=" http://tadalafilprof.com/# ">buy cialis</a> http://tadalafilprof.com - what is cialis used for [url=http://tadalafilprof.com]cialis vs viagra[/url]
    - Anonymous, 2020-07-02 05:52:24.771035
  • hard erections cialis <a href=" http://tadalafilprof.com/# ">when will cialis go generic</a>
    - Anonymous, 2020-07-02 03:46:17.579406
  • normal dose cialis <a href=" http://tadalafilprof.com/# ">cialis generic</a>
    - Anonymous, 2020-07-01 19:32:42.785614
  • Whoa a good deal of very good information. [url=https://cbd-oil-trust.com/]hemp oil cbd[/url]
    - Anonymous, 2020-07-01 10:12:39.095778
  • Helpful forum posts. Regards. [url=https://cbd-oil-trust.com/]cbd oil for back pain[/url]
    - Anonymous, 2020-06-30 14:33:11.893433

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


  • Hi there, We offer personal protective equipment to all our society, businesses and organizations that are need in of protective items. We would like to efficiently help delivering you with the highest quality of personal protection products in the shortest time. We have the below stock available and can ship them out to you right away. - Different face masks - Face mask for children - Nitrile, latex and vinyl gloves - Thermometers - Disinfection sprays, hand sanitizer gels and antibacterial wipes - Goggles - Face shields Here you can place your order online: https://bit.ly/meeedesignservices-ppe Please feel free to reach out to me at the below contact info: Fate Oliyaei Fate@meeedesignservices.com Fate.oliyaei@gmail.com Phone: (415) 795-2880
    - Anonymous, 2020-07-09 10:28:17.124686
  • Boda Medical USA would like to present the 5-Ply KN95 Mask- Visit website https://bit.ly/bodamedicalusa for more information. Or Use Coupon Code 'PRO10' for 10% additional discount with free ground shipping from US warehouse directly.
    - Anonymous, 2020-07-05 21:11:24.244646
  • You Can DOUBLE Your Productivity For Life In Under 48 Hours And when it comes to changing your life, there's nothing more important to fixing your productivity. Think about it. If you're twice as productive, then, as far as your environment supports it, you're going to make at least twice as much. However, the growth is almost always exponential. So expect even more income, free time, and the ability to decide what you want to do at any given moment. Here's the best course I've seen on this subject: https://bit.ly/michaeltips-com It's a fun and pretty short read... and it has the potential to change your life in 48 hours from now. Michael Hehn
    - Anonymous, 2020-07-03 10:23:17.183260
  • Tired of paying for clicks and getting lousy results? Now you can post your ad on 5000 advertising sites and it'll only cost you one flat fee per month. Never pay for traffic again! To get more info take a look at: https://bit.ly/free-visitors-forever
    - Anonymous, 2020-07-02 21:07:21.477555
  • Hello, I was just on your site and submitted this message via your feedback form. The "contact us" page on your site sends you messages like this to your email account which is why you're reading through my message right now right? This is half the battle with any type of advertising, making people actually READ your advertisement and that's exactly what I just accomplished with you! If you have something you would like to blast out to thousands of websites via their contact forms in the U.S. or anywhere in the world send me a quick note now, I can even focus on particular niches and my costs are very affordable. Send a reply to: Bobue67hasy57@gmail.com please take me off this list https://bit.ly/3eOn4NP
    - Anonymous, 2020-06-30 09:23:58.485473
  • TRIFECTA! A novel that starches your emotional – erotic itch! Against a background of big business, deceit, frustration, oppression drives a wide range of emotions as three generations of women from the same family, turn to the same man for emotional support and physical gratification! A wife deceives her husband while searching for her true sexuality! What motivates the wife’s mother and son-in-law to enter into a relationship? The wife’s collage age daughter, with tender guidance from her step-father, achieves fulfillment! Does this describe a dysfunctional family? Or is this unspoken social issues of modern society? BLOCKBUSTER Opening! A foursome of two pair of lesbians playing golf. A little hanky – panky, while searching for a lost ball out of bounds. Trifecta has more turns and twist than our intestines. Trifecta! Combination of my personal experiences and creativity. https://bit.ly/www-popejim-com for “CLICK & VIEW” VIDEO. Send me your commits. Available amazon, book retailers. Trifecta! by James Pope
    - Anonymous, 2020-06-28 23:34:36.879959
  • Hi, We'd like to introduce to you our explainer video service which we feel can benefit your site appspot.com. Check out some of our existing videos here: https://www.youtube.com/watch?v=oYoUQjxvhA0 https://www.youtube.com/watch?v=MOnhn77TgDE https://www.youtube.com/watch?v=NKY4a3hvmUc All of our videos are in a similar animated format as the above examples and we have voice over artists with US/UK/Australian accents. They can show a solution to a problem or simply promote one of your products or services. They are concise, can be uploaded to video such as Youtube, and can be embedded into your website or featured on landing pages. Our prices are as follows depending on video length: 0-1 minutes = $259 1-2 minutes = $369 2-3 minutes = $479 3-4 minutes = $589 *All prices above are in USD and include a custom video, full script and a voice-over. If this is something you would like to discuss further, don't hesitate to get in touch. If you are not interested, simply delete this message and we won't contact you again. Kind Regards, Barbara
    - Anonymous, 2020-06-24 22:23:07.603432
  • Good afternoon, I was just checking out your website and filled out your feedback form. The "contact us" page on your site sends you these messages via email which is why you're reading my message at this moment right? This is the holy grail with any kind of advertising, making people actually READ your advertisement and I did that just now with you! If you have an advertisement you would like to blast out to tons of websites via their contact forms in the US or to any country worldwide let me know, I can even focus on specific niches and my charges are super low. Write an email to: Benja57mik57@gmail.com
    - Anonymous, 2020-06-21 09:33:40.427944
  • Hello, I just wanted to reach out and let you know about our Online Fast Track 4 Week Certified and Accredited Trade School. If you are interested in becoming a Trained and Certified HVAC, Plumbing, Electrical or Solar Technician feel free to check us out at: https://bit.ly/dmaceducation "We look forward to your success!"
    - Anonymous, 2020-06-18 05:59:52.067104
  • Hello, We have available the following, with low minimum order requirements - if you or anyone you know is in need: -Custom Printed Masks – reusable, washable – 100% custom printed ! -3ply Disposable Masks -KN95 masks and N95 masks with FDA, CE certificate -Gloves (Nitrile and Latex) -Disposable Gowns -Sanitizing Wipes -Hand Sanitizer -Face Shields -Oral and No Touch Thermometers Details: -We are based in the US -All products are produced Vietnam, Bangladesh, China or US – depending on item and quantity. -We are shipping out every day. -Minimum order size varies by product -We can prepare container loads and ship via AIR or SEA. Please reply back to lisaconnors.2019@gmail.com Let me know the item(s) you need, the quantity, and the best contact phone number to call you Thank you, Lisa Connors PPE Product Specialist
    - Anonymous, 2020-06-12 06:42:19.640514