Skip to content

Instantly share code, notes, and snippets.

@riceissa
Last active February 24, 2020 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riceissa/6e239e8828cceeed5a0bd656d3eeb697 to your computer and use it in GitHub Desktop.
Save riceissa/6e239e8828cceeed5a0bd656d3eeb697 to your computer and use it in GitHub Desktop.
The Uncertain Future

Instructions for running The Uncertain Future

I am using Ubuntu 19.10 in 2020.

Download Java (not sure how to do this, since I already had it installed). Make sure you have a command called appletviewer.

Download http://theuncertainfuture.com/UfApplet.jar

Download http://theuncertainfuture.com/commons-math-1.2.jar

Make a file called index.html with the following:

<applet code="org.singinst.uf.view.UfApplet" archive="UfApplet.jar,commons-math-1.2.jar" height="660" width="900"></applet>

Run the following in a command line:

appletviewer index.html

A window should pop up, with the applet running.

This doesn't reproduce the full experience of the applet, because the applet in addition had a way to load some preset parameter values via JavaScript. These are loaded via pages like http://theuncertainfuture.com/ufHelp/Q1.html You can find a list of all such pages at https://github.com/kanzure/uncertainfuture/tree/master/web/ufHelp I don't know how to get the JavaScript to interact with the Java applet, but this doesn't seem to be necessary: you can just look at the source code of the help pages to see what parameter values would have been loaded if you had clicked on each button, and then enter those values by hand.

@riceissa
Copy link
Author

Here is a screenshot of what it looks like:

Screenshot at 2020-02-24 01-42-33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment