People use the network everywhere. Today, I learned about the scenario in real world network. This picture shows us how network make us use the internet in daily life. Connecting laptop needs to get its own IP address, address of first-hop router, address of DNS server. DNS server: use DHCP DHCP request encapsulated in UDP, encapsulated in IP, encapsulated in 802.3 Ethernet Ethernet frame broadc..
I learned how to build the object in javascript. This is our constructor for the data input. From the HTML, I got the values from user, and store them in this object. So, I don't have to make other array for store these data. It is important to have this structure in project. Our team decided to put the values in local storage temporaily like this. stringfy function is what I made in the object...
This is the exercise to make a simple number guess game. So, I get the number from html. using $_GET["guess"]. Put the value in $guess. strlen() checks whether user put the number or not. is_numeric() checks whether it is number or not. I set the random number is 55 in this time.
In this exercise, we are gonna make a bill. First, we should get the values from the HTML file. If we get the values with POST, it would be like this. We can make the case if the quantity is 0. Now, we are gonna make the bill in php file. We learned that how to use values from HTML in php file!
This is how PHP form works! $_GET array $_POST array In PHP, we can handle our data like this method. We can access to the data with this method. This is the validation of PHP.
PHP function can be defined like this. Also, we should know how to set parameters in PHP function. Here is the variable scope within funcitons. Array This is how defining and accesing an Array in PHP. This is how to use loop with PHP Array. isset() function Takes a variable name as its parameter Return true if a value has been set Return false otherwise Now, I wand to share the in-class activity..
PHP code can be embeded directly within an HTML file. A PHP file will usually have the extension .php. Comment: Multi-line block comments /* */ Single-line comments // or # PHP Tag Example Include PHP files PHP $Variables and Data Types Variables in PHP are dynamically typed. The PHP engine makes a best guess as to the intended type based on what it is being assigned. A variable can be assigned ..
Today, I solved "Reorder List." Description: It is hard to understand, but we are gonna reorder the list with rule. We can easily find the rule of the form: Before: L0 -> L1 -> L2 -> L3 -> L4 After: L0 -> L4 -> L1 -> L3 -> L2 Now, how can we change the list order without changing the value? We should make the other list to re-order the list. The recommendation is seperating the list as two lists..
Today, I learned about the VLANs. VALNs: Motivation Drawbacks of this configuration: Lack of traffic isolation: Single broadcast domain: all layer-2 broadcast traffic (APR, DHCP, switch flooding to find unknown location of destination MAC address must cross entire LAN. Secuirty/privacy, efficiency issues Inefficient use of swithches: Each small group needs a switch, while a switch has 96 ports M..
Today, I learned about the switch. What is switch?? ๐คจ Features: Hosts have dedicated direct connection to switch. Switches buffer packets. Ethernet protocol used on each incoming link, but no collisions; full duplex. Each link is its own collision domain. Example: 'A-to-A' and 'B-to-B' can transmit simultaneously, without collision. Here is the question: how does switch know A' reachable via int..