Question:
Suppose that you have a friend who is planning to take scientific computing in the fall. Describe how you put your homework into a web page and make it available to the public.
Discussion:
First, you need to choose an appropriate editor to design your web page. There are lots of choices, some of which are CKEditor, OpenBEXI, SnapEditor, etc. I have been using BlueFish editor for a while and it works pretty well. Compared with other programming languages, HTML language is quite straight-forward. If it is your first time developing a web page, you may want to take a look at the HTML source code of any simple web page. For Mozilla Firefox users, you just need to open Mozilla Firefox, right click on the mouse, and click "Page Source". There are plenty of references about the HTML language structure, one of which I found quite useful is this. The basic principle is that it needs pairs of tags to identify the content in the web page. For example, we use < p > ... < /p > to construct a paragraph. And to place a graph in the page, we may use
< div class = "picture" > < center> < img hspace= 10 src = "ABC.jpg" width= "50%" > < h3 style= "text-align:center;" > Figure 1 </ h3> </ center> </ div>For each assignment, you will need to have a separate web page which includes the description of the question, discussion of methods, programming implementation as well as numerical results.
It's fairly easy to "publish" your Matlab code and outputs by the built-in function in the software like this.
For better looking of my C++ code in a web page, I usually use this website to turn my code into HTML language.
Once you get familiar with LaTex, it seems impossible to find a better solution to represent your idea related to math formulas. There are several options in placing Latex formulas in a web page. One approach that I find convenient is by adding a few lines of "script" in the head part of the text.
<script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { extensions: ["autobold.js"] }}); MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true } }); </script> <script type="text/javascript"> LatexIT.add('p',true); </script>Then we can input Latex formulas with $\$ \cdots \$ $ or $\$ \$ \cdots \$ \$ $ as we usually do.
If you are a graduate student in mathematics department at Duke, then you only need to follow the guidance from the Frequent Asked Questions page in the department website.
Creating Personal/Class Webpages
You can set up personal or class webpages inside your home directory
within a subdirectory called public_html.
All files and directories placed in this subdirectory will, with proper
permissions, be accessible via the web at
http://www.math.duke.edu/~username/ where username is your login name.
If you omit the filename, as in this example, the file index.html will
be displayed if present or an error given if it is not present.
To setup a personal webpage, here are the basic steps. Run these from a command prompt :
If you are not a math graduate student but you have got an account at the departmental computing center , then you can follow the above steps after login the Virtual Desktop at https://www.math.duke.edu/gde .
Last modified: