Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Week 13 Comments


Comments? Questions?



Prof., I am trying to start working on Lab5, however I am at my parents house. I brought the original disc that you handed out in class in order to download everything on their computer. I was able to install JAVA correctly, but, when I try to pull up JES it tells me:
Exception in thread "main" java.lang.NoClassDefFoundError:JESProgram.
Can you help me out? -Dave Williams

Dave, you'll have to use An Alternative Way to Run JES. Mark Guzdial

I was trying to be good and go ahead and start on my lab, but I can't figure out how to even make the new page!! Help please!!

Same problem as above. I don't know how to create a new page...it's like we only have one spot to manipulate html that is "ours" - so we don't have anywhere to make the link that says "Justin's Lab 5" go to. Help please. Justin Kennon
You could read the Help button at the top of every page in the CoWeb. That'll tell you to create a page by simply typing a new page name inside of *asterisks*. Save, and you'll get a Create button. Click on it, and go edit. Mark Guzdial


How can we delete attachments on our coweb? I uploaded a couple of pictures, but decided not to use them on my website, so how can I remove them from the coweb? Also, how do we change the background on our Lab 5? I've tried adding the html commands, but nothing seems to happen. Is it because you have already set the background of the coweb? Thanks, Joseph Clark
You can't. It's a safety feature. In the same way, you can't delete pages. If you're uncomfortable with that file residing on the server, send a message to swiki-bugs@cc.gatech.edu with the name of the file, the CoWeb you're using (e.g., http://coweb.cc.gatech.edu/cs1315), and the page you uploaded it to. Mark Guzdial

when click on attach to add my picture a little window asking for a name and password pops up and im not sure what password i should be putting in- anyone know the password?? :)

yep, i am having the same problem. Purposely blank

same also
Sarah Cormack

user: attach, password: carmen , thanx trey!!!!
This only comes up when you're off-campus. It's a way of preventing German and Korean (and others, but those are common) visitors from uploading files that they want to share, but we may not want on our servers. Mark Guzdial

"Your image content tag should take the form of <img src="http://coweb.cc.gatech.edu:8888/uploads/cs1315/XX/file"> where file is the name of your file and XX is the number assigned to your CoWeb page." - where do we find this XX number???
The number of your page. Look at the address for this page – this page is 261. Mark Guzdial



<a href=www.gatech.edu> Georgia Tech </a>. this is what my links look like, but they don't go where i want them to... what is wrong with them?
Sarah Cormack

never mind i got it :)
Your href's are ill-formed. To be correct HTML, the href URL's should start with "http://" and they should be in quotes. If you don't enter correct HTML, it may still work. The browser will just guess at what you want...but it may guess wrong. Mark Guzdial


how do we make a background color?
That's been struck from the assignment. Mark Guzdial



We are suppose to "build" this webpage by clicking edit on our page and then doing regular html inside the given block of work space - correct? Justin Kennon
Well, create a separate Lab5 page and do it there – yup. Mark Guzdial

I made my link to my new web page using the * * and then create. Is this ok or were we supposed to make the link using html code? -Susan Holloman
No, you have to CREATE the page with non-HTML. Mark Guzdial

german and korean?!?! weird!!!

Is it ok if our table is bigger than you requested? or does it have to be 3 columns and 4 rows - I have 4 rows plus two rows with a title and column headings - so total of 6 rows. Is this ok?
I think more is fine. Mark Gudzial

You have to type in the password even if you are on campus. Well, at least I do. Just FYI.
Anywhere where the internet address of your computer does not end in gatech.edu. Mark Guzdial

theres a lot of space in between my title and pic etc, how do i reduce that?
Do you have extra <p> or <br> tags? Mark Guzdial

I have tried putting bgcolor=red and bgcolor="red" into my statement and it dosnt work. Is that the wrong way to set the background color. I have viewed source for a lot of pages and they all do it that way. Help #9
It won't work in the CoWeb – that part of the lab has been struck. Mark Guzdial

We can use code that we find whereever right? From any webpage on the net?
Yup. Mark Guzdial

my question is not about the lab. i was interested in being a ta for this class next semester. i was just wondering, is there credit offered for being a TA or only money. also, on the application form it says that one of the requirements is a 3.0 CS/ECE Major GPA. i was just wondering if this still applies or if there will be exceptions made for us since i doubt any of us are of this major.
Only money – we're not allowed to hire TA's for credit. No, none of you are that major, so that's not a requirement. Mark Guzdial


another TA question- as far as the 3.0 gpa goes, is that up to OR including this current semester??
Including. Mark Guzdial

how much money is involved?
I think it depends on experience and age, but Allison Tew (allison@cc.gatech.edu) is the person to ask. Or go to the Information Session. Mark Guzdial

Ok, is there any way we can shrink down the uploaded pics on the coweb through code?
Yes, you know how to shrink pictures – think about the img tag and its' options. Mark Guzdial

is the quiz on wednesday going to be exactly like the prequiz you handed out today like the last quizzes have been or do we need to know all of the recent concepts we have learned in class since the last quiz for this one? also, does anyone have the pre-quiz done that can post what their answers were, i got something, but i am not sure if i did the stuff right.
The questions will be different, but on similar topics. I'm not comfortable with posting the answers on-line. I'd rather you TALK to someone about the answers. Mark Guzdial

I am confused...I uploaded a picture, but it only shows a link to the picture and not the picture itself. Is this what is supposed to happen? or is the picture supposed to show up on my page? Carol Deadwyler
I think you uploaded a .bmp file, Carol. (I know someone did – it might have been you.) You have to upload a .jpg or .gif. Also, do NOT rely on the built-in mechanism to insert it, e.g., &star+filename+&star. Use an <img> tag. Mark Guzdial

i am trying to decrease my picture size. how do I add in the height=xx% and width=xx%?- dave
It's not percentages, it's pixels. Mark Guzdial

when inserting an image...how do we know our "number assigned to our CoWeb page"? to replace the XX
READ EARLIER. I answered this question already. It's the page number. Look at the URL. This is page 261. Mark Guzdial

what would you suggest if there are no extra

or
in order to reduce the space between things?

Couldn't tell you. Are you sure that you have <html> and </html> tags? Most of the spacing decisions after headings and such are built in to the browser and are controllable with style sheets, which are beyond the scope of this course. Mark Guzdial

weird, for the above question: no extra <p> or <br>

p brackets or br brackets for the two above!

My pictures are HUGE!! Is this normal for everyone? Is there any way to scale them down? Kelly Farrell
Kelly, look at today's lecture or the HTML lecture. Remember that you can set the height or width of images in the <img> tag. Mark Guzdial


for some reason, mine doesnt display image tags like it says in the directions. It gives them asterisks and just the .jpg name. Sorry I am so stupid about this but where exactly do you put the height and width? Thanks! Kelly Farrell

nevermind, i got it!! Kelly Farrell

I changed the picture i was using to a jpg picture, but when i do this <img src="http://coweb.cc.gatech.edu:8888/uploads/cs1315/104/carolformal.jpg" width=50%>
i dont see the picture, just a little red "x" inside a box...what could i be doing wrong? Carol Deadwyler



oops, sorry about that big box, i wrote the line of code i was using, not thinking it would actually display the box. Carol


You got the page number wrong. Your named page is 104. Your lab page is 294. (See above.) I don't think that 50% stuff works. Mark Guzdial

I'm not sre how to do the title...putting it into html on the page doesn't seem to be doing anything, do we have to use the title at the top of the page before we edit anything?
In the CoWeb, you can't set the title with a <title> tag – you have to set the title by changing it from the Edit view. Mark Guzdial

can we have more than the # you suggested for columns and rows for the chart? or does it have to be exactly that 4 and 3?

nevermind... saw the response from earlier... my bad!

On the prequiz, question 1, can we use each letter more than once, or is each is letter meant to be used only once.

Only once for each. Looks like Erin and Brittany are visiting (below) :-). Mark Guzdial

All of the pictures I have uploaded onto my page are .jpg files but when I try to make them show up on my page they don't. Can I fix that? Saint Brittany
Check your <img> tag and make sure that the src URLs are right. Mark Guzdial

how do you put in extra blank lines between items on your page?







less than sign 'br' greater than sign
You can do this by typing <br>, which involves typing (in the CoWeb edit view)&lt;br&gt;. Mark Guzdial

Ok–this may be working correctly on other people's computers and just not mine because it is my page. But, when I try to click on my e-mail liek to make sure it's working, it sends me to some "Anomymous Mail" page on the CoWeb rather than popping up and Outlook think like everyone else. If y'all don't mind checking it, and if it is wrong giving me suggestions on fixing it, I would be ever so greatful! Summer McWilliams
That's weird. I'll take a peek. Mark Guzdial

BTW – ASK ABOUT PRE-QUIZ!

I didn't mean to scare everyone off from asking about the pre-quiz! Do ask about answers, and even post an answer that you're wondering about. I'm less keen on someone dumping all their answers up here and lots of people copying them – nobody gets anything out of it then. (Especially if the answers are WRONG!) But do ask, and I'll try to answer. Mark Guzdial


Summer, the protocol is "mailto" not "mail to". By saying href=mail, you pointed to the mail page here on the CoWeb. Put the URL as mailto:ssss@prism.edu, then put the URL in quotes, and I think the problem will go away. Mark Guzdial


Lab 5...there is a comment on the instructions page about adding additional info to another html page. I was just wondering if there is a limit to how much you want on our web page? how much is too much? Lindsey Martin
Nah, knock yourself out. Have fun. If you can't have fun in a computer science class, where can you have fun?!? :-) Mark Guzdial

I am a little confused about something, in the instructions for Lab 5 it says not to modify any pages that are a part of your Lab 5 until a post on .announce says I can do so, does that mean if I post an HTML code that does not work then I can't go back and modify it?
Darn – that's not supposed to be there. You can work on Lab 5 pages until class time Friday – then leave them for grading. Mark Guzdial

PRE-QUIZ
I noticed, alot of things were said in class repeatedly concerning Questions 2, 3, and 4 which are very similar to the ones in the notes, i am just wondering if there are specific answers since you stressed "in class" as in question 2.as in QUESTION 3 NOT 2

Not sure what the question is here. Yes, I am looking for specific answers on Qs 2,3,and 4. Mark Guzdial


is there any reason why there is a huge gap between my last picture and my table? i dont think i programmed it to do that...? Kelly Farrell
Did you put in <html> and </html>? If you don't, the CoWeb can get confused on plain HTML and put too much of a gap after a table. Mark Guzdial

re: the Pre Quiz

can answers on #1 on the pre-quiz have more than one answer? as in can one program be both A and B? Whitney Watts

Nope – one per. Mark Guzdial



The findTemperature is D? copyBarbsfaceLarger is C? turnRed is B? findInSrtedList is A? Any of this right, wrong, etc.? Can anyone explain why if not?

I think deffindInsort is B (binary) because here it's take the data in two different part s and search each part to find........
def turnRed is A (linear) because its searching thru the hold thing at once and not in bits, Elijah Karnley
WAY TO GO, ELIJAH! Good answer! Mark Guzdial



OK Prof Guzdial - I must have accidentally posted my picture here for a minute instead of to my webpage. OOPS! It is gone now, right? Sorry guys...I am sure a picture of Erin and I would cheer up the CoWeb, but its really not necessary!
...that was Brittany Selden commenting on the accidental pic posting!
Has the CoWeb been depressed lately? :-) Mark Guzdial

Prof. Guzdial- I still can't access the TA application on their website. I've emailed the webmaster and the help person. Neither has gotten back to me at all. Is there another way I can get the application? Am I being barred from it for a reason?
Lauren Biddle
No, of course not! I asked yesterday, and was told that it was working fine, but was getting inundated with hits, so it might be slow at times. What error are you getting? Mark Guzdial

About the pre-quiz, I agree with Elijah. I think that findInSorted list is a binary search. It is directly from the lecture slides. Also, on the lecture slides, it says something like "finding each pixel in a picture to change their color value is a linear search." Hence, turnRed is a linear search (it loops through all of them in order kind of linearly). For number 3, the Traveling Salesman problem is one example, right? For number 4, I don't understand exactly how a language like C or C++ is compiled into computer code. Can anyone clarify? Like, how does a compiler work?
Lauren Biddle
We didn't really talk too much about how a compiler works, but you have the right idea. Programs like Photoshop and Word are in machine language. But they were originally written in something like C or C++, then compiled (translated) into machine language. Traveling Salesman and optimization were both examples we gave in class of algorithms that aren't hard to write, but can't finish in reasonable time. Mark Guzdial


If I remember how Adam (my TA) explained it to me, C is a compiler. Basically, you write a program that C, the compiler, translates into machine language that the computer understands. For exactly how a compiler works, go ask Adam or Prof. Guzdial...they'll know (or at least Guzdial will). A linear search searches through only once until it finds what it's looking for.
Rebecca Phillips
I'll bet that Adam knows, too. C is actually a language, like Python. There is a program called a C Compiler (for example, a famous one is named "cc" and another one is "gcc" and another one is "Microsoft Visual C++" – catchy names, no?) that will translate C into machine language. Mark Guzdial


For those interested in putting up a webpage on Prism, you can find directions at http://faq.oit.gatech.edu/cgi-bin/submenu?prismweb. It does require you to use UNIX and enter UNIX commands (which is why we didn't get into it in this class). If you're willing to dig into it, you're welcome to – and I'd appreciate feedback if you thought it was easy, too hard for this class, or hard but really important. Thanks! Mark Guzdial

I am attaching pictures to my lab 5 page and when I put the name in for the picture and save it on my webpage it give the little box with an X in it instead of the picture. I have already attached pictures but that was a few days ago and they work. On the page for the attachments it looks like it has attached and I'm doing the same thing I was earlier. Any suggestions?? Alissa Hammontree

The pictures on the Attach page are clickable, too. Click on them there. Can you see the picture? If you can't, then, what you thought were JPEGs, really weren't. Remake the pictures or use different ones. I've sometimes seen people rename .bmp files as .jpg files – IE isn't fooled by the name. It'll try to read the data in the file, realize that it's not .jpg, and surrender. Mark Guzdial


I just checked your pages, Alissa. You've got a different problem going on. Don't use spaces in your file names. The CoWeb server (like the Prism server and a great many other Web servers) is running UNIX. UNIX computers are less comfortable with spaces in file names, so weird things happen. Rename your files and re-upload them. Mark Guzdial


I think the difficulty level for a prism page would have been fine for this class. I followed the instructions on the OIT page, and got mine up and running in 10 minutes. The hardest part was knowing which FTP program to download and use. Using telnet is pretty simple because you simply type in exactly what the instructions for the CS1321 lab say. The cool thing about the prism page is you can have a colored background. One quick question... What html tag do you use to change the font on a webpage?
Joseph Clark
Great! Thanks for the feedback! Mark Guzdial

I was looking at the next HW to try to get ahead. However, once my program has generated a file full of Jpeg images, I can't figure out how to play them in mediatools. I went to "create JPEG movie from folder of frames" and then picked out my folder - then it asks me to select a file. I don't know what to do at this point.
Lauren Biddle
Pick the FIRST file in the sequence – the one number 001. Mark Guzdial

What type of coding or language (such as the name) is the CoWeb written in?
Rebecca Phillips
Squeak – I'll introduce it during Dead Week. Mark Guzdial

I think that the functions lecture we had today was very helpful and good knowledge. It's also fairly easy to understand. I know that it can get complicated, but it not too complicated of a concept to understand.
EXCELLENT! Thanks for the feedback! Recursion is Friday – I'd like to know how you think that goes. Mark Guzdial



Professor Guzdial, on Lab 5 the only way I could get my images to show on my webpage was to access them with WITHOUT entering XX, the number assigned to my CoWeb page. Is this acceptable or do I need to upload my images differently? Thanks.-Joe Shimizu
You probably uploaded to the site rather than the page. As long as it works, it's cool. Mark Guzdial



I figured out what I was doing wrong. Thanks, though. Read the article on Moore's Law. Thanks for putting it up for reference. Joe Shimizu
I didn't – somebody else did. HOW VERY COOL! Mark Guzdial

what is wrong with the email link? it works on some computers or browsers but doesn't on some. I don't find any error in this code eigther. anyone knows why? does the link have to be prism email?
Has to do if the mailto protocol is set up correctly on the computer you're using. Mark Guzdial

I keep trying to save my page and I click save and it acts like it's saving it but stops about halfway through and it doesn't update my page. I can't figure out what to do, I can't go on with my page until this works, please help! Thanks, Lee Bauerkemper
Ooh – that's weird! Send a description of your problem to swiki-bugs@cc.gatech.edu and see if they can help you. Mark Guzdial


Lee, when did you post that question? I'm having an identical problem. I feel like something might be wrong with the page that's slowing it up. I have no idea what to do now until it fixes itself. David O'Neal

Nevermind, I got it to work. Lee

I ended up having to just delete the Lab 5 page I'd made entirely and make a new one (i.e., I deleted the page Lee Bauerkemper's Lab 5 and made a new page called Lee's Lab 5). That seemed to work, so I guess give it a try David. Lee Bauerkemper

Ok now I can't get my pictures to show. I'm almost positive I have the img tag correct but when I save the page I get a box with an x in it instead of my picture, and the picture is attached and works on the attach page, but I can't get it to show up on my page. It's a .jpg file, I can't think of what would be wrong. Lee Bauerkemper

ok sorry again, I got it to work so nevermind. Lee

Here's some code from the recitation:
import os

def indexPage(directory):
  samplesfile = starthtml(directory)
  for file in os.listdir(directory):
    if file.endswith(".jpg"):
      writeJpeg(file, directory, samplesfile)
    if file.endswith(".wav"):
      writeWav(file, directory, samplesfile)
  closeFile(samplesfile)

def closeFile(output):
  output.write("</ul>")
  output.write("</body></html>")
  output.close()

def writeWav(file, directory, output)
   output.write("<li>Filename: ")
   output.write('<a href="'+file+'"> ' + file + '</a>')
   sound = makeSound(directory + "//" + file)
   length  = getLength(sound) / getSamplingRate(sound)
   output.write(", length " + str(length) + " seconds")
   output.write("</li>\n")

def writeJpeg(file, directory, output)
   output.write("<li>Filename: ")
   output.write('<a href="'+file+'"> ' + file + '</a>')
   pic = makePicture(directory + "//" + file)
   output.write(", height " + str(getHeight(pic)) + " pixels")
   output.write(" width " + str(getWidth(pic)) + " pixels")
   output.write("</li>\n")

def starthtml(directory):
  samplesfile = open(directory + "//index.html", "wt")
  samplesfile.write(doctype())
  samplesfile.write(title("Samples from " + directory))
  samplesfile.write("<body><h1>Directory listing of sounds and images in " + directory + " </h1>\n"
  samplesfile.write("<ul>")
  return samplesfile

def doctype():
  return '<!DOCTYP...'

def title(titlestring):
  return "<head><title>" + titlestring + "</title></head>"


Are our webpages gonna exist even after the class is over? Because I worked really hard on mine and I'd be real sad if it "went away" at the end of the semester!

I plan on this CoWeb continuing to be used for CS1315 for years. Mark Guzdial




Link to this Page