Wednesday, October 13, 2010

notes from lecture

CS12

making a web page using WinSCP

first, using notepad
c:\josh\webpage1.html

how do we specify path?
1) full path
c:\josh\subfolder\cow3.jpg
2) relative path
./subfolder/cow3.jpg
../parallelfolder/cow3.jpg
3) we can store it in the same folder
cow3.jpg
4) you can specify a URL
http://co2calculator.files.wordpress.com/2008/09/grazing-cow-1b.jpg

this is called hotlinking. NOT a nice thing to do. and dangerous.

you can host it yourself. or you can get web site hosting from elsewhere

we have:
cs12.cs.qc.cuny.edu/~yourloginname

file transfer protocol, ftp
WinSCP
for Macs (Fugu)

WinSCP lets you edit in place

create a new HTML file using WinSCP
first, create a folder called public_html

venus.cs.qc.cuny.edu/~joshwaxman/cowpic.html

chmod

VB
Dim varName as Integer

Assignment statement
varName = 7
varName = 9
that is why it is called a variable
its value varies over time

MsgBox is an output statement

Private Sub CommandButton1_Click()
    Dim TaxRate As Double
    TaxRate = 0.078
    MsgBox TaxRate
    TaxRate = TaxRate + 0.05
    MsgBox TaxRate
End Sub

No comments:

Post a Comment