You can use the scripts makethumbs.sh and rotate.sh provided by http://www.molenda.com/makethumbs/. The basic procedure is given below.
STEP 1.
Download makethumbs.sh and rotate.sh to a directory, ~/mytools say, from http://www.molenda.com/makethumbs/.
STEP 2.
Change the modes of the files makethumbs.sh and rotate.sh by typing command:
chmod +x ~/mytools/*.shSTEP 3.
Create a directory, ~/myphoto say. And copy all your jpg files in this directory. This directory only contains the photos you want to post.
STEP 4.
Run the following command in the directory ~/myphoto:
~/mytools/makethumbs.shSTEP 5.
Make a hyperlink to ~/myphoto/index.html.
That's simple!
Notes:
- If you want to change the title of the photo webpage, captions and descriptions of the photos, you can modify the file ~/myphoto/description.txt and re-type the command ~/mytools/makethumbs.sh.
- If you want to rotate some photos, use the script rotate.sh. For example, the command cp photo1.jpg photo1.jpg.bak cp photo2.jpg photo2.jpg.bak ~/mytools/rotate.sh r photo1 photo2 ~/mytools/makethumbs.sh will rotate photo1.jpg and photo2.jpg anti-clockwise 90 degree. Since rotate.sh may modify the original file, it's better to make a backup for the file you want to rotate. You can type rotate.sh --help to obtain the usage of the script rotate.sh. The following is the copy of the usage information: bash-2.04$ ./rotate.sh --help Usage: rotate.sh [-p|-o] <-r|-l> file1.jpg file2.jpg file3.jpg ... -p | --preserve Do not touch original image, even if we can do so safely. -r | --rotate-right Rotate images to the right (90 deg clockwise) -l | --rotate-left Rotate images to the left (90 deg counter clockwise) rotate.sh tries to rotate images losslessly if possible. Lossless rotation is possible on this system, so it is the default. You can override this behavior with -o (overwrite) or with -p (preserve) Filenames can be any unique part of the filename. e.g. if DSCN0532.jpg exists, 'rotate.sh r 32' will rotate it 90 degrees clockwise. You can find the latest version of this program at http://www.molenda.com/ This is version v1.22 of rotate.sh.
- Each time you make some changes (e.g. adding new photos, modifying the descriptions, or rotating photos), you have to re-run the command ~/mytools/makethumbs.sh.
Use "be.stat.ubc.ca"
$ssh username@stat.ubc.ca
Here are the simplified instructions on how to make a password protected web folder for our site:
1) Create the private web folder in your web directory. This is the directory for which you want to curtail access to.
$mkdir -p /nfs/fil-data/username/public_html/private $mkdir -p /nfs/fil-data/username/keys
2) Within this private web directory, create a file called
.htaccess
which contains the following text:
AuthType Basic
AuthName "Title of your protected folder"
AuthUserFile /nfs/fil-data/username/keys/.htpasswd
DONOT use "SSLRequireSSL" and "ErrorDocument 403 https://www.ugrad.stat.ubc.ca/~myusername/private/"
3) To create a password file with an initial user and password, use this command:
$/usr/local/bin/htpasswd -c /nfs/fil-data/username/keys/.htpasswd user1
... enter password for users1 To add additional users, run this command: $/usr/local/bin/htpasswd /nfs/fil-data/username/keys/.htpasswd user2
... enter password for users2 Note: There is no "-c" for creating second users To delete users $/usr/local/bin/htpasswd -D /nfs/fil-data/username/keys/.htpasswd users
4) Make sure your files and directories have the correct permissions:
$chmod 0711 /nfs/fil-data/username/public_html/private
$chmod 0644 /nfs/fil-data/username/public_html/private/.htaccess
$chmod 0711 /nfs/fil-data/username/keys
$chmod 0644 /nfs/fil-data/username/keys/.htpasswd
Test the setup by using a browser and going to your private web folder:
http://www.stat.ubc.ca/~username/private/
It is important to note that this will offer some protection of your web files against unauthorized access via a web browser, but it does not protect you from StatNet users reading your files since they can go directly to your web directory via regular filesystem commands like 'cd' and 'less' and access your files.
In this case, you ought to encrypt your files (for example, by using the zip utility to created an encrypted zip archive). This is for for highly confidential information that need to be desseminated.
Yes, if you have credit for Math 200 and Math 221 (or their equivalents), and can fit in the Science breadth requirements and the thematic concentation requirements.
For example, take STAT/MATH 302, Stat 300, Stat 344 in term 1 of year 3; STAT 305, Stat 306 in term 2 of year 3. Then you have the prerequisites for Stat 400 level courses.
Take them as soon as possible but not necessarily by the end of year 2 if there are registration issues.
Credit for CPSC 110 and one of CPSC 210 or Math 210 is required for promotion to year 4.
STAT 305 and STAT 306 (or ECON 326 for the BA Combined Major in Econ/Stat) must be completed for promotion to year 4. Please also see the Faculty of Science general requirements for promotion. For example:
http://www.calendar.ubc.ca/vancouver/index.cfm?tree=12,215,410,1467#18475
For Major in Statistics and Combined Major with Statistics: an average of at least 60% on their first attempts in their best 3 of the 5 "named" courses in Year 2. These five "named" courses in Year 2 are: MATH 200, MATH 220, MATH 221, STAT 200, and STAT/MATH 302. STAT 200 (or equivalent) must be completed for promotion to year 3.
If you are in year 3, there is a deadline in early October. If you are in year 2, there is a deadline in early March.
Please see web site https://sciencecoop.ubc.ca/prospective/apply/statistics for instructions, qualifications and possible schedules for co-op terms.
You would have to apply to the CPSC Department. For the form, please see https://www.cs.ubc.ca/students/undergrad/prospective/switching/computer-.... It opens in April, and is closed for parts of the year.