Week 4 Flashcards
What is a web server?
A computer that delivers (serves up) web pages
What is a client?
- The computer that is requesting to
see/visit the web page - Can be from different parts of the world
- When they go to your webserver to look at your webpage, webpage gets downloaded onto their machine
Give an ex of clients visiting a web server?
- Many clients will visit one web server, for ex. 20,000 students might visit Western’s web server to see the page: http://publish.uwo.ca
- We will put/post our web pages on the Western web server so clients can see our pages.
In order for webpage to get up on server, what needs to happen?
It needs to be uploaded
What are the 3 advantages of a web server?
- Connected
- Always available
- Well maintained
How is a web server being connected an advantage?
Computer is on all the time and connected to the Internet
(if computer is turned off, connection turns off)
How is a web server always available?
Since it never gets turned off, your website will always be available
How is web server well maintained?
The people running the servers will take care of security and computer maintenance issues
What are examples of File Transfer Protocal programs?
- WinSCP
- FileZilla
- Cyberduck – THIS IS A GREAT ONE FOR MAC USERS!
- WS-FTP
- Fugu (for Mac)
What does an FTP program do?
It takes files from one folder and puts it on another folder
Normally takes it from your laptop and putting it on a webserver computer
What 4 pieces of info needs to be given during an FTP transfer?
- cs1033.gaul.csd.uwo.ca (webserver/name of computer)
- Your userid (allows you onto computer)
- Your password
- Port 1033 (default is 22)
What are the permission settings for a file to be visible to everyone on internet?
Upside down U or 0755
How do you set permissions for file settings not be visible to everyone on internet?
Uncheck others or 0750
- File is still there but ppl on internet can’t see it anymore
What are 2 ways to do a file transfer in FTP?
- Right click and create new folder
- Drag and drop folder from remote side
What is an important step when handing in an assignment with FTP?
Checking if your link works
What are the 2 big ideas for week 4 lecture?
1: Size Matters –> Squishing is important in computer science!
2: Gif vs Jpg vs Png –> Make the right choice!
How many ways are there to do compression and what does it depend on?
Several different ways to do compression depend on the type of image
What do you have to consider when choosing to use a lossy method?
Are you willing to do a lossy compression and lose some of the original information?
What is an example of packing a suitcase that relates to compression methods?
A. Folding carefully and sitting on the case! = Lossless
B. Leaving some unimportant stuff at home and using a smaller case! = Lossy
How can you do compression for images with large blocks of the same colour?
Co-ordinate system and breaking image into blocks
Lossless compression (not losing quality, still storing info on every pixels colour)
How does a raw file store
images with large blocks of the same colour?
Ex. 100 pixel x 200 pixel yellow rectangle with 30 by 30 green square
We would have to store info about
20,000 pixels. We need to store the color of every pixel (24 bits or 3 bytes)=60,000 bytes of info
A RAW stores the information about each pixel, one at a time
How can you do compression for images with large blocks of the same colour using a coordinate system and breaking it into blocks?
Split block up into large sections using coordinates to distinguish those sections and their size
Store:
startx= | byte
starty = I byte
endx = 1 byte
endy = I byte
color = 3 byte
Each shape: record 7 bytes
Multiply by 5 shapes = 35 bytes!
Why does the method of using coordinates with big blocks of colour well and when is it effective?
35 bytes vs 60,000 bytes! (in lecutre example)
Works great with rectangular shapes but gets a lot more complicated when curves are involved!
GIF compressions are, in reality, a lot more complicated
Compression aids with making smaller file size helps to do what faster?
Downloads faster images