2020-02-21 00:23:59 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title>CUCC Expedition Handbook: People Update</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
|
|
|
|
</head>
|
2020-05-14 22:28:13 +01:00
|
|
|
<body><style>body { background: #fff url(/images/style/bg-system.png) repeat-x 0 0 }</style>
|
2020-02-21 00:23:59 +00:00
|
|
|
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
|
|
|
<h1>The list of people on expo</h1>
|
|
|
|
|
|
|
|
<p>These are nerd-instructions. Find a nerd if you think this needs to be done.
|
|
|
|
|
|
|
|
<h3 id="import">The folk list</a></h3>
|
|
|
|
<p>This is part of the <a href="newyear.html">"new expo year"</a> preparations.
|
2022-03-01 19:44:26 +00:00
|
|
|
The folk.csv file is stored on the server under version control in the <var>:expoweb:</var> <a
|
|
|
|
href="../computing/repos.html">repository</a> in
|
2020-02-21 00:23:59 +00:00
|
|
|
<code>expoweb/folk/folk.csv</code>
|
|
|
|
|
|
|
|
<p>Before expo starts the folk.csv file is updated.
|
|
|
|
|
2022-03-01 19:44:26 +00:00
|
|
|
<p>Edit folk/folk.csv, adding the new year to the end of the header line, a new column, with just a comma (blank cell) for people
|
|
|
|
who weren't there, a 1 for people who are there, and a -1 for people who are there but didn't go caving.
|
2020-02-21 00:23:59 +00:00
|
|
|
This is adding an extra column to every line in the file.
|
|
|
|
<p>
|
|
|
|
Add new lines for new people, with the right number of columns.
|
|
|
|
|
2022-03-01 19:44:26 +00:00
|
|
|
<p>This process is tedious and error-prone and ripe for improvement especially as expo proceeds and you have many more names to
|
|
|
|
add. Adding a list of people from the bier book and their aliases (the name in brackets) would be a lot better, but some way to
|
|
|
|
make sure that names match with previous years would be good.
|
2020-02-21 00:23:59 +00:00
|
|
|
|
|
|
|
<p>
|
2022-03-01 19:44:26 +00:00
|
|
|
Contrary to what you might expect we find that it is much more reliable to edit this using a text editor rather than a spreadsheet
|
|
|
|
program.
|
2020-02-21 00:23:59 +00:00
|
|
|
|
|
|
|
<p>The nerd can log in using the 'expo' userid.
|
|
|
|
|
|
|
|
<p>The nerd needs to do this:
|
|
|
|
<ol>
|
|
|
|
<li>Upload the edited copy of folk.csv to the server using the version control system.
|
2020-04-22 19:37:10 +01:00
|
|
|
<li>Log in to the expo server and run the update script (see below)
|
2020-02-21 00:23:59 +00:00
|
|
|
<li>Watch any error messages scroll by.
|
|
|
|
<li>Look at the new folk list HTML file at <a href="http://expo.survex.com/folk/">http://expo.survex.com/folk/</a>
|
|
|
|
<li>Re-run the import script until you have got rid of all the import errors.
|
|
|
|
</ol>
|
|
|
|
<p>This is how you login and run the script:
|
|
|
|
<pre><code>ssh expo@expo.survex.com
|
2020-04-22 19:37:10 +01:00
|
|
|
cd expoweb/folk
|
|
|
|
chmod +w index.htm
|
2020-02-21 00:23:59 +00:00
|
|
|
python ../scripts/make-folklist.py <folk.csv >index.htm
|
|
|
|
</code></pre>
|
2020-04-22 19:37:10 +01:00
|
|
|
<p>If there are no errors, you will just see the prompt reappear in your ssh session
|
|
|
|
and you will see the result online at <a href="http://expo.survex.com/folk/">http://expo.survex.com/folk/</a>.
|
2022-03-01 19:44:26 +00:00
|
|
|
<p>It is recommended that the nerd does this locally on their own laptop first. It does not need to be an expo laptop, even a
|
|
|
|
Windows 10 laptop is fine if the script is run in a WSL terminal. The only software you need to install is the default python
|
|
|
|
package.
|
|
|
|
<h4>Readme</h4>
|
|
|
|
<p>The script and CSV file also have a <a href="/folk/README.txt">README.txt</a> file in the folk folder which contains more
|
|
|
|
detailed coding notes re interactions with other troggle code.
|
2020-02-21 00:23:59 +00:00
|
|
|
|
2021-02-05 20:08:22 +00:00
|
|
|
<h4>History</h4>
|
2022-03-01 19:44:26 +00:00
|
|
|
<p>This bizarre Folk update process is a relic of the pre-troggle "<a href="../website-history.html">script and spreadsheet</a>"
|
|
|
|
phase of the Expo website.
|
2021-02-05 20:08:22 +00:00
|
|
|
Another relic is <a href="../troggle/scriptsqms.html">the complex QM process</a>.
|
|
|
|
The <a href="../survey/onlinewallet.html"><var>wallets.py</var> script</a> actually post-dates troggle, but was written stand-alone
|
|
|
|
because of the steep learning curve of getting to grips with Django and because troggle in those days was undocumented.
|
|
|
|
All these will (2021+) eventually be merged into troggle - we hope.
|
2020-02-21 00:23:59 +00:00
|
|
|
<hr />
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|