Lin Jensen's page on Osiris
Class list CS 207 (Winter 2023) with link to pages
Osiris is a server set up for the classes CS 203 and 207 at
Bishop's University. Osiris is
an ancient
Egyptian god, and also the Egyptian name of the constellation we
know
as Taurus, the Bull.
CS 203 and CSc 207
Course Outlines and references
Former Students:
Most of your accounts have been deleted.
I no longer back up deleted accounts.
If your account still exists, and you
wish to maintain it, please send me an email
(ljensen@ubishops.ca) every spring. Thanks, Lin.
Former Student pages, 2013-2017, pick one:
Examples
PHP examples
- Fruit Stand, using a Database
source code, and
action page source code
- In class example, poetry Oct. 16, 2017
uses addhtml.php and writes to log file
- In class simple form code Oct. 6, 2014
and changing. --
- Form, class example, Fall 2013 with
write to log file.
- Form with PHP result (follow
the links)
- Using cookies in PHP with
convienent function, setcookie()
-
- page that asks for name if cookie not set, namecookie.php November 27, 2013
-
Farm slide show, see source code
- Cookie for language choice
- Translations using
gettext See PHP Source
Please translate into some language using this file
and send me the result (tell me which language it is!
- XML for Schedule of courses using an
XML stylesheet for all the html.
php source code
- Cookie to stop extra votes
one file gives form, counnts votes, and simply shows latest
results thereafter. See PHP
source
- Delay extra votes using a database,
require 15 second delay for IP address
- Using a database, Goat Supplies store, with
Bridal Register
-
Lennoxville Sunrise, sunset
- PHP $_SESSION Session variables
saved between pages
- Make your own broswer example
(from "security Primer")
- Calendar, using CSS
- Download a picture we don't want to be
copied
Javascript examples
JavaScript References:
A javascript tutorial is at http://home.cogeco.ca/~ve3ll/jsintro.htm
Mozillas Javascript guide and reference at http://developer.mozilla.org/en/docs/JavaScript
The
JavaScript object, part of another excellent Tutorial. Gives a
"tree" of all the objects that may be formed by JavaScript, ckick on
anything for an explanation (which comes from JavaScript "alerts"!)
Python not currently operable on Osiris
PostgreSql database examples
Java Applets
Simple June 6, 2005 example and see
source code
Final June 6, 2005 example and see
source code
Solar system animation
Java applet example - BigText and see
source code
DateShow
DateRun source
No source code available
fill in your name, it writes it back
source
uses threads
Source (4 classes)
Pig Latin translator page Just for
fun,
uses these regular expressions:
# - - - strip off any initial consonants, add them + 'ay' at the end of word
s/^([bcdfghjklmnpqrstwxyzv]*)([a-z]+)/$2$1ay/i; #begin line
s/(\W)([bcdfghjklmnpqrstwxyzv]*)([a-z]+)/$1$3$2ay/gi;
# word starts after space or, generally, a non-word character
Lin Jensen