View Source


<html>
<head>
<title>advice for graduate students</title>

<style>
li {margin-top:.5em;}
body {margin-left: 10% ; margin-right: 10%}
</style>

<script src="/lib/list.js"></script>
<script src="/lib/grammar.js"></script>

<script>
var grammar = [
	       ["sentence","->", ["pre","imperative","noun-phrase"]],

	       ["pre","->","stop trying to","try not to","don't","before you do anything else,",null,null,null,null],

	       ["imperative","->","figure out what it takes to become","pay for","look for","find out about","think twice about","worry about","think long and hard about", "watch what you say about", "make friends with","try fixing up","do research on","run through the halls naked with","teach with","study"],

	       ["noun-phrase","->", ["Article","Adj","Noun","PP"]],

	       ["Article","->","a","a","a","a","a","a","your"],


	       ["Adj", "->", "easy","valuable","expensive","deluded","sorry","boring","sought-after","original","exciting","interesting", "lazy","ambitious","insecure"],

	       ["Noun","->","topic","education","student","instructor","doctorate degree","course","exam","lecture","department chair","advisor","corporate donor","diploma","dissertation"],

	       ["PP","->", null,["Prep","noun-phrase"],null,null,null,null,null,null],
	       ["Prep", "->","for","to","about","before","over","for","for","about","for"]

	       ] ;

	      
</script>
</head>

<body bgcolor=white>
<h1>advice for graduate students</h1>

a JavaScript program by <a href="http://www.kantz.com/jason/">Jason Kantz</a>
<hr>

<p>Take this advice at your own risk; it was generated by a computer program:
<ul>
<q>
<script language="JavaScript">
  document.write("<li>" + random_sentence());
  document.write("<li>" + random_sentence());
  document.write("<li>" + random_sentence());
</script>
</q>
</ul>

Do you want more advice? 
[<b><a href="random.html">Yes, try again</a></b>]

<p>
If you want to see
how this is an example of a data-driven program, <b><a href="randomsrc.html">view the source
code</a></b>.  This
program was hand translated into javascript from a Common Lisp
program in Peter Norvig's book <a href="http://www.norvig.com/paip.html">PAIP</a>.


<p>
Other things to ponder:

<ul>

<li><a href="http://philip.greenspun.com/careers/four-random-people.tcl">Aid to Evaluating Your Accomplishments</a>
</ul>

<hr>

<address><a href=mailto:jason@kantz.com>jason@kantz.com</a></address>


</body>
</html>

jason@kantz.com