Commit 5d90d4dd authored by GI's avatar GI

Working snapshot from fbf74e9d of sj

parents
## Redirect errors to my own error page
ErrorDocument 403 /403-forbidden.html
ErrorDocument 404 /404-not-found.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Gautam Iyer">
<title>
Access Forbidden
</title>
<link rel="stylesheet"
href="/dev/static/bootstrap/3.3.7/css/bootstrap.css">
<link rel="stylesheet"
href="/share/css/pygments-theme.css">
<link rel="stylesheet" href="/share/css/local.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.js">
</script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.js">
</script>
<![endif]-->
</head>
<body >
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://localhost:8000">Gautam Iyer</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li >
<a href="http://localhost:8000/index.html">Research</a>
</li>
<li >
<a href="http://localhost:8000/teaching">Teaching</a>
</li>
<li >
<a href="http://localhost:8000/contact.html">CV/Contact</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class='disabled'>
<a href="#">Code</a>
</li>
<li>
<a href="http://localhost:8000/blog">Blog</a>
</li>
<li>
<a href="http://localhost:8000/dev/test">Test</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class='container'>
<div>
<h1>Access Forbidden</h1>
<p>Oops. You don&rsquo;t have permission to access this resources. Here are a few reasons that might explain why.</p>
<ul>
<li>
<p>For current courses, solutions are usually restricted to enrolled students. If you&rsquo;re sitting in on the course and want access then contact me. (You will need an Andrew ID).</p>
</li>
<li>
<p>For past courses, solutions are not available to students.</p>
</li>
</ul>
<p>If none of the above apply, and you believe you reached this page due to a technical error, please contact me and I&rsquo;ll look into it.</p>
</div>
</div>
<footer>
<div class='container'>
<hr>
<div class='media'>
<div class='media-body'>
<p>
<span class='text-nowrap'>&copy; Gautam Iyer 2015.</span>
This site is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons <span class='hidden-xs'>Attribution-NonCommercial-ShareAlike 4.0 International</span> License</a>.
</p>
</div>
<div class='media-right'>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons License" class='media-object' style="border-width:0" src="/share/licence/cc-by-nc-sa-88x31.png">
</a>
</div>
</div>
<span class='text-nowrap' title='Email'>
<span class='glyphicon glyphicon-envelope' aria-hidden='true'></span>
gautam@math.cmu.edu.
</span>
&emsp;
<span class='text-nowrap' title='Office'><span class='glyphicon glyphicon-briefcase' aria-hidden='true'></span> <a title='Wean Hall' href='https://www.google.com/maps/place/Wean+Hall,+Carnegie+Mellon+University,+Pittsburgh,+PA+15213'>WEH</a> 6121.
</span>
&emsp;
<span class='text-nowrap' title='Phone'>
<span class='glyphicon glyphicon-phone-alt' aria-hidden='true'></span>
412 268 8419.
</span>
</div>
</footer>
<script src="/dev/static/jquery/1.12.4/jquery.js">
</script>
<script src="/dev/static/bootstrap/3.3.7/js/bootstrap.js">
</script>
<script src='/share/js/local.js'></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Gautam Iyer">
<title>
File not found
</title>
<link rel="stylesheet"
href="/dev/static/bootstrap/3.3.7/css/bootstrap.css">
<link rel="stylesheet"
href="/share/css/pygments-theme.css">
<link rel="stylesheet" href="/share/css/local.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.js">
</script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.js">
</script>
<![endif]-->
</head>
<body >
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://localhost:8000">Gautam Iyer</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li >
<a href="http://localhost:8000/index.html">Research</a>
</li>
<li >
<a href="http://localhost:8000/teaching">Teaching</a>
</li>
<li >
<a href="http://localhost:8000/contact.html">CV/Contact</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class='disabled'>
<a href="#">Code</a>
</li>
<li>
<a href="http://localhost:8000/blog">Blog</a>
</li>
<li>
<a href="http://localhost:8000/dev/test">Test</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class='container'>
<div>
<h1>File not found</h1>
<p>Oops. The link that got you here is probably outdated. You can try searching on Google.
Alternately, tell me how you got here, and I&rsquo;ll see if I can redirect it to the correct place.</p>
</div>
</div>
<footer>
<div class='container'>
<hr>
<div class='media'>
<div class='media-body'>
<p>
<span class='text-nowrap'>&copy; Gautam Iyer 2015.</span>
This site is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons <span class='hidden-xs'>Attribution-NonCommercial-ShareAlike 4.0 International</span> License</a>.
</p>
</div>
<div class='media-right'>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons License" class='media-object' style="border-width:0" src="/share/licence/cc-by-nc-sa-88x31.png">
</a>
</div>
</div>
<span class='text-nowrap' title='Email'>
<span class='glyphicon glyphicon-envelope' aria-hidden='true'></span>
gautam@math.cmu.edu.
</span>
&emsp;
<span class='text-nowrap' title='Office'><span class='glyphicon glyphicon-briefcase' aria-hidden='true'></span> <a title='Wean Hall' href='https://www.google.com/maps/place/Wean+Hall,+Carnegie+Mellon+University,+Pittsburgh,+PA+15213'>WEH</a> 6121.
</span>
&emsp;
<span class='text-nowrap' title='Phone'>
<span class='glyphicon glyphicon-phone-alt' aria-hidden='true'></span>
412 268 8419.
</span>
</div>
</footer>
<script src="/dev/static/jquery/1.12.4/jquery.js">
</script>
<script src="/dev/static/bootstrap/3.3.7/js/bootstrap.js">
</script>
<script src='/share/js/local.js'></script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Gautam Iyer">
<title>
Setting up ikiWiki and MathJAX
</title>
<link rel="stylesheet"
href="/dev/static/bootstrap/3.3.7/css/bootstrap.css">
<link rel="stylesheet"
href="/share/css/pygments-theme.css">
<link rel="stylesheet" href="/share/css/local.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.js">
</script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.js">
</script>
<![endif]-->
</head>
<body style='position: relative' data-spy='scroll' data-target='#col-right'>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://localhost:8000">Gautam Iyer</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li >
<a href="http://localhost:8000/index.html">Research</a>
</li>
<li >
<a href="http://localhost:8000/teaching">Teaching</a>
</li>
<li >
<a href="http://localhost:8000/contact.html">CV/Contact</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class='disabled'>
<a href="#">Code</a>
</li>
<li class='active'>
<a href="http://localhost:8000/blog">Blog</a>
</li>
<li>
<a href="http://localhost:8000/dev/test">Test</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class='container'>
<div class='row'>
<div class='col-md-9' id='col-main'>
<div class='justify'>
<h1>
Setting up ikiWiki and MathJAX
<br />
<small>2013-09-30</small>
</h1>
<p><a href="https://ikiwiki.info/">ikiWiki</a> is an awesome (minimalist) wiki engine based on Git.
Basically you can edit happily in your editor of choice (e.g. <a href="http://www.vim.org/about.php">vim</a>), preview it locally in your browser and then commit your changes and push the result to a server when you&rsquo;re happy.
I&rsquo;ve set up a couple of ikiwiki engines to serve lecture notes etc.
Usually pages are written in <a href="http://fletcherpenney.net/multimarkdown/">MultiMarkDown</a>, and the math is rendered using <a href="http://www.mathjax.org/">MathJAX</a>.</p>
<h2>Setup instructions and tips.</h2>
<ul>
<li><a class="wikilink" href="http://localhost:8000/blog/20130930-ikiwiki/000-example.html">Example of Math Rendering</a></li>
<li><a class="wikilink" href="http://localhost:8000/blog/20130930-ikiwiki/010-setup.html">Setup Instructions</a></li>
<li><a class="wikilink" href="http://localhost:8000/blog/20130930-ikiwiki/020-local-preview.html">Setting up a local preview or creating a static site</a></li>
<li><a class="wikilink" href="http://localhost:8000/blog/20130930-ikiwiki/030-latex-differences.html">Differences from LaTeX when typing Math</a></li>
</ul>
<p>Finally, if you want to use the look and feel of <a href="http://wiki.math.cmu.edu/iki/wiki/index.html">this wiki</a> look <a class="wikilink" href="http://localhost:8000/blog/20140720-ikiwiki-navbar.html">here</a>.</p>
<br />
<h3>
<span class='glyphicon glyphicon-comment' aria-hidden='true'></span>&emsp;Comments
</h3>
<h4>
<span class='glyphicon glyphicon-pencil' aria-hidden='true'></span>&emsp;Leave a comment
<small class='text-warning'>
(Spammers beware: All comments are moderated)
</small>
</h4>
<div id='comment-failed' class='alert alert-danger hidden'>
Sorry. There was an error submitting your comment. Please try again, or contact me if the problem persists.
</div>
<div id='comment-form' class='well row small'>
<form role='form' method='post'
action='javascript:submit_comment()'>
<input type='hidden' name='page' value='20130930-ikiwiki.md'>
<input type='hidden' name='comment-number' value='1'>
<div class="col-md-6 form-group">
<label class="sr-only" for="name">Name</label>
<input type="text" class="form-control" name="name" placeholder="Name (optional)">
</div>
<div class="col-md-6 form-group">
<label class="sr-only" for="email">Email address</label>
<input type="email" class="form-control" name="email"
placeholder="Email (optional, to generate an avatar; will not be published)"
title="Your email is only used to generate an avatar. It will not be published or used to contact you. Promise!">
</div>
<div class='col-md-12 form-group'>
<label class="sr-only" for="subject">Subject</label>
<input type="text" class="form-control" name="subject"
placeholder="Subject (REQUIRED)" REQUIRED>
</div>
<div class="col-md-12 form-group">
<label class="sr-only" for="email">Comment</label>
<textarea class="form-control" name="comment"
placeholder="Comment. (REQUIRED. Write your comment in Markdown)"
rows='4' REQUIRED></textarea>
</div>
<div class="col-md-12 form-group text-right">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</form>
</div>
<div id='comment-sending' class='alert alert-info hidden'>
Sending comment; please wait.
</div>
<div id='comment-success' class='alert alert-success hidden'>
Thanks. Your comment was successfully submitted.
It will appear here shortly if it isn't spam.
</div>
</div>
</div>
<div class='col-md-3' id='col-right'>
<div data-affix-after='#create'>
<br />
<h4><span class='glyphicon glyphicon-bullhorn' aria-hidden='true'></span>&emsp;Recent posts</h4>
<ol class='list-unstyled'>
<li class='hide-xoverflow'>
<a href='http://localhost:8000/blog/20160406-dropbox-git.html'>Using git and Dropbox</a>
(2016-04-06)
</li>
<li class='hide-xoverflow'>
<a href='http://localhost:8000/blog/20150807-box-webdav.html'>Using Box.com cloud storage on Linux</a>
(2015-08-07)
</li>
<li class='hide-xoverflow'>
<a href='http://localhost:8000/blog/20150324-bibtex-reverse.html'>Reverse chronological sorting with BibTeX</a>
(2015-03-24)
</li>
<li class='hide-xoverflow'>
<a href='http://localhost:8000/blog/20140914-utf8.html'>Using UTF-8 in mrxvt, even though mrxvt doesn't support it</a>
(2014-09-14)
</li>
<li class='hide-xoverflow'>
<a href='http://localhost:8000/blog/20140810-android-ftp.html'>Transfering files to Android Devices in Linux</a>
(2014-08-10)
</li>
</ol>
</div>
</div>
</div>
</div>
<footer>
<div class='container'>
<hr>
<div class='media'>
<div class='media-body'>
<p>
<span class='text-nowrap'>&copy; Gautam Iyer 2015.</span>
This site is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons <span class='hidden-xs'>Attribution-NonCommercial-ShareAlike 4.0 International</span> License</a>.
</p>
</div>
<div class='media-right'>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons License" class='media-object' style="border-width:0" src="/share/licence/cc-by-nc-sa-88x31.png">
</a>
</div>
</div>
<span class='text-nowrap' title='Email'>
<span class='glyphicon glyphicon-envelope' aria-hidden='true'></span>
gautam@math.cmu.edu.
</span>
&emsp;
<span class='text-nowrap' title='Office'><span class='glyphicon glyphicon-briefcase' aria-hidden='true'></span> <a title='Wean Hall' href='https://www.google.com/maps/place/Wean+Hall,+Carnegie+Mellon+University,+Pittsburgh,+PA+15213'>WEH</a> 6121.
</span>
&emsp;
<span class='text-nowrap' title='Phone'>
<span class='glyphicon glyphicon-phone-alt' aria-hidden='true'></span>
412 268 8419.
</span>
</div>
</footer>
<script src="/dev/static/jquery/1.12.4/jquery.js">
</script>
<script src="/dev/static/bootstrap/3.3.7/js/bootstrap.js">
</script>
<script src='/share/js/local.js'></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Gautam Iyer">
<title>
Example of Math Rendering
</title>
<link rel="stylesheet"
href="/dev/static/bootstrap/3.3.7/css/bootstrap.css">
<link rel="stylesheet"
href="/share/css/pygments-theme.css">
<link rel="stylesheet" href="/share/css/local.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.js">
</script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.js">
</script>
<![endif]-->
</head>
<body style='position: relative' data-spy='scroll' data-target='#col-right'>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://localhost:8000">Gautam Iyer</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li >
<a href="http://localhost:8000/index.html">Research</a>
</li>
<li >
<a href="http://localhost:8000/teaching">Teaching</a>
</li>
<li >
<a href="http://localhost:8000/contact.html">CV/Contact</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class='disabled'>
<a href="#">Code</a>
</li>
<li class='active'>
<a href="http://localhost:8000/blog">Blog</a>
</li>
<li>
<a href="http://localhost:8000/dev/test">Test</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class='container'>
<div class='row'>
<div class='col-md-9' id='col-main'>
<ul class='breadcrumb hidden-xs'>
<li><a href='http://localhost:8000/blog/20130930-ikiwiki.html'>Setting up ikiWiki and MathJAX</a></li>
<li class='active'>Example of Math Rendering</li>
</ul>
<div class='justify'>
<h1>
Example of Math Rendering
</h1>
<p>Here&rsquo;s an example of the math rendering:</p>
<blockquote>
<p><strong>Theorem</strong> <em>(Mean Value Property).</em>
Let <script type="math/tex">\Omega \subset \R^3</script> be a domain, and <script type="math/tex">u</script> is harmonic in <script type="math/tex">\Omega</script> (i.e. <script type="math/tex">\lap u = 0</script> in <script type="math/tex">\Omega</script>).
Suppose <script type="math/tex">B</script> is a ball of radius <script type="math/tex">R</script> and center <script type="math/tex">x_0</script> that is completely contained in <script type="math/tex">\Omega</script>.
Then
<script type="math/tex; mode=display">
u(x_0) = \frac{1}{4 \pi R^2} \int_{\partial B} u \, dS
</script>
</p>
</blockquote>
<p>This was produced by the following code:</p>
<div class="codehilite"><pre><span></span>**Theorem** *(Mean Value Property).*
Let $\Omega \subset \R^3$ be a domain, and $u$ is harmonic in $\Omega$ (i.e. $\lap u = 0$ in $\Omega$).
Suppose $B$ is a ball of radius $R$ and center $x_0$ that is completely contained in $\Omega$.
Then
$$
u(x_0) = \frac{1}{4 \pi R^2} \int_{\partial B} u \, dS
$$
</pre></div>
<br />
<h3>
<span class='glyphicon glyphicon-comment' aria-hidden='true'></span>&emsp;Comments
</h3>
<h4>
<span class='glyphicon glyphicon-pencil' aria-hidden='true'></span>&emsp;Leave a comment
<small class='text-warning'>
(Spammers beware: All comments are moderated)
</small>
</h4>
<div id='comment-failed' class='alert alert-danger hidden'>
Sorry. There was an error submitting your comment. Please try again, or contact me if the problem persists.
</div>
<div id='comment-form' class='well row small'>
<form role='form' method='post'
action='javascript:submit_comment()'>
<input type='hidden' name='page' value='000-example.md'>
<input type='hidden' name='comment-number' value='1'>
<div class="col-md-6 form-group">
<label class="sr-only" for="name">Name</label>
<input type="text" class="form-control" name="name" placeholder="Name (optional)">
</div>
<div class="col-md-6 form-group">
<label class="sr-only" for="email">Email address</label>
<input type="email" class="form-control" name="email"
placeholder="Email (optional, to generate an avatar; will not be published)"
title="Your email is only used to generate an avatar. It will not be published or used to contact you. Promise!">
</div>
<div class='col-md-12 form-group'>
<label class="sr-only" for="subject">Subject</label>
<input type="text" class="form-control" name="subject"
placeholder="Subject (REQUIRED)" REQUIRED>
</div>
<div class="col-md-12 form-group">
<label class="sr-only" for="email">Comment</label>
<textarea class="form-control" name="comment"
placeholder="Comment. (REQUIRED. Write your comment in Markdown)"
rows='4' REQUIRED></textarea>
</div>
<div class="col-md-12 form-group text-right">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</form>