Difference: CS290Spring09EgProgs (1 vs. 3)

Revision 32009-01-23 - KonstantinosMenychtas

Line: 1 to 1
 
META TOPICPARENT name="CS290Spring09"
Changed:
<
<

Example programs

>
>

CSC 290A, Spring 2009: Example programs

  This page holds example programs, to give you an idea of the course context.

Revision 22009-01-15 - KonstantinosMenychtas

Line: 1 to 1
 
META TOPICPARENT name="CS290Spring09"
Changed:
<
<

Example programs

>
>

Example programs

 
Added:
>
>
This page holds example programs, to give you an idea of the course context.
 
Changed:
<
<
Source code The source code is currently under svn and can be checked out from /p/compiler/repos/dingweb. The programs are written in Ruby.
>
>
Source code: The source code is currently under svn and can be checked out from /p/compiler/repos/dingweb. The programs are written in Ruby.
 

Show IP address

Revision 12009-01-15 - KonstantinosMenychtas

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CS290Spring09"

Example programs


Source code The source code is currently under svn and can be checked out from /p/compiler/repos/dingweb. The programs are written in Ruby.

Show IP address

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/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!

META TOPICMOVED by="KonstantinosMenychtas" date="1231990370" from="Main.CS2290EgProgs" to="Main.CS290Spring09EgProgs"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback