Tags:
view all tags
---#!! Example programs This page holds example programs, to give you an idea of the course context. --- *Source code*: The source code is currently under [[VersionStuff][svn]] and can be checked out from /p/compiler/repos/dingweb. The programs are written in Ruby. ---++ Show IP address * [[http://betaweb.csug.rochester.edu/cs290/dingweb/show-my-ip-address.cgi][ =http://betaweb.csug.rochester.edu/cs290/dingweb/show-my-ip-address.cgi= ]] shows the IP address of the client computer. * The program has 15 lines of code. ---++ Web-based hashtable * [[http://betaweb.csug.rochester.edu/cs290/dingweb/hashtable.cgi][ =http://betaweb.csug.rochester.edu/cs290/dingweb/show-my-ip-address.cgi= ]] allows anyone to insert key and value pairs from one computer and retrieve them from any other computer. The usage is as follows * to insert: _http://betaweb.csug.rochester.edu/cs290/dingweb/hashtable.cgi?k=key&v=val_ * to query: _http://betaweb.csug.rochester.edu/cs290/dingweb/hashtable.cgi?k=key_ * The program has 159 lines of code. The core is about 40 lines, and the rest is producing timing information such as the date/time of the insertion and the oldest entry in the table. * The table has a maximal size. Oldest entries are removed if the table becomes too large. Don't store anything that you cannot afford to lose!
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2009-01-15
-
KonstantinosMenychtas
Log In
or
Register
URCS Main Web
CS Guide
Events
People
Reading Seminars
Undergrad Program
Graduate Program
Research
Department Life
Tech Talk
Other Info
Topics
RSS
Changes
Notifications
Statistics
Preferences
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS?
Send feedback