Project

General

Profile

1
Installation:
2
	Check out svn: svn co https://code.nceas.ucsb.edu/code/projects/bien
3
	cd bien/
4
	Install: make install
5
		WARNING: This will delete the current public schema of your VegBIEN DB!
6
	Uninstall: make uninstall
7
		WARNING: This will delete your entire VegBIEN DB!
8
		This includes all archived imports and staging tables.
9

    
10
Maintenance:
11
	on a live machine, you should put the following in your .profile:
12
		umask ug=rwx,o= # prevent files from becoming web-accessible
13
		unset TMOUT # TMOUT causes screen to exit even with background processes
14
	to synchronize vegbiendev, jupiter, and your local machine:
15
		WARNING: pay careful attention to all files that will be deleted or
16
			overwritten!
17
		install put if needed:
18
			download https://uutils.googlecode.com/svn/trunk/bin/put to ~/bin/ and `chmod +x` it
19
		when changes are made on vegbiendev:
20
			on vegbiendev, upload:
21
				env overwrite=1             src=. dest='aaronmk@jupiter:~/bien' put --no-group --exclude=.svn --exclude=install.log.sql --exclude='*.backup' --exclude='/backups/analytical_aggregate.*.csv' --exclude='inputs/GBIF/**.data.sql' --exclude='bin/dotlockfile'
22
					then rerun with env l=1 ...
23
				env overwrite=1 del=        src=. dest='aaronmk@jupiter:~/bien' put --no-group --exclude=.svn --exclude=install.log.sql --exclude='inputs/GBIF/**.data.sql'
24
					then rerun with env l=1 ...
25
			on your machine, download:
26
				env overwrite=1      swap=1 src=. dest='aaronmk@jupiter:~/bien' put            --exclude=.svn inputs/VegBIEN/TWiki
27
					then rerun with env l=1 ...
28
				env overwrite=1 del= swap=1 src=. dest='aaronmk@jupiter:~/bien' put            --exclude=.svn --exclude=install.log.sql --exclude='*.backup' --exclude='/backups/analytical_aggregate.*.csv' --exclude='inputs/GBIF/**.data.sql' --exclude='bin/dotlockfile'
29
					then rerun with env l=1 ...
30
	to synchronize a Mac's settings with my testing machine's:
31
		download:
32
			WARNING: this will overwrite all your user's settings!
33
			env overwrite=1 swap=1 src=~/Library/ dest='aaronmk@jupiter:~/Library/' put --exclude="/Saved Application State"
34
				then rerun with env l=1 ...
35
		upload:
36
			do step when changes are made on vegbiendev > on your machine, download
37
			env overwrite=1        src=~ dest='aaronmk@jupiter:~' put --exclude="/Library/Saved Application State" --exclude="/.Trash" --exclude="/bin" --exclude="/bin/pg_ctl" --exclude="/bin/unzip" --exclude="/Documents/BIEN/large_files" --exclude="/Documents/BIEN/svn/backups/*.backup" --exclude="/Documents/BIEN/svn/backups/analytical_aggregate.*.csv" --exclude="/Dropbox/home"
38
				then rerun with env l=1 ...
39
			env overwrite=1        src=~ dest=~/Dropbox/home      put --exclude="/Library/Saved Application State" --exclude="/.Trash" --exclude="/.dropbox" --exclude="/Documents/BIEN" --exclude="/Dropbox" --exclude="/software" --exclude="/VirtualBox VMs/**.sav" --exclude="/VirtualBox VMs/**.vdi" --exclude="/VirtualBox VMs/**.vmdk"
40
				then rerun with env l=1 ...
41
	to backup files not in Time Machine:
42
		env inplace=1 src=/ dest=/Volumes/Time\ Machine\ Backups/ put Users/aaronmk/VirtualBox\ VMs/
43
			then rerun with env l=1 ...
44
		stop the PostgreSQL server
45
		sudo env src=/ dest=/Volumes/Time\ Machine\ Backups/ put Library/PostgreSQL/9.1/data/
46
			then rerun with env l=1 ...
47
		start the PostgreSQL server
48
	VegCore data dictionary:
49
		Regularly, or whenever the VegCore data dictionary page
50
			(https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore)
51
			is changed, regenerate mappings/VegCore.csv:
52
			make mappings/VegCore.htm-remake; make mappings/
53
			svn di mappings/VegCore.tables.redmine
54
			If there are changes, update the data dictionary's Tables section
55
			When moving terms, check that no terms were lost: svn di
56
			svn ci -m "mappings/VegCore.htm: Regenerated from wiki"
57
	Important: Whenever you install a system update that affects PostgreSQL or
58
		any of its dependencies, such as libc, you should restart the PostgreSQL
59
		server. Otherwise, you may get strange errors like "the database system
60
		is in recovery mode" which go away upon reimport, or you may not be able
61
		to access the database as the postgres superuser. This applies to both
62
		Linux and Mac OS X.
63

    
64
Single datasource import:
65
	(Re)import and scrub: make inputs/<datasrc>/reimport_scrub by_col=1
66
	(Re)import only: make inputs/<datasrc>/reimport by_col=1
67
	(Re)scrub: make inputs/<datasrc>/rescrub by_col=1
68
	Note that these commands also work if the datasource is not yet imported
69

    
70
Full database import:
71
	WARNING: You must perform *every single* step listed below, to avoid
72
		breaking column-based import
73
	On jupiter: svn up --force
74
	On local machine:
75
		./fix_perms
76
		do steps under Maintenance > "to synchronize vegbiendev, jupiter, and
77
			your local machine" above
78
		make inputs/upload test=1
79
		make inputs/upload
80
		make test by_col=1
81
			See note under Testing below
82
	On vegbiendev:
83
	Ensure there are no local modifications: svn st
84
	svn up
85
	make inputs/download test=1
86
	make inputs/download
87
	For each newly-uploaded datasource above: make inputs/<datasrc>/reinstall
88
	Update the auxiliary schemas: make schemas/reinstall
89
		The public schema will be installed separately by the import process
90
	Delete imports before the last so they won't bloat the full DB backup:
91
		make backups/vegbien.<version>.backup/remove
92
		To keep a previous import other than the public schema:
93
			export dump_opts='--exclude-schema=public --exclude-schema=<version>'
94
	Make sure there is at least 150GB of disk space on /: df -h
95
		The import schema is 100GB, and may use additional space for temp tables
96
		To free up space, remove backups that have been archived on jupiter:
97
			List backups/ to view older backups
98
			Check their MD5 sums using the steps under On jupiter below
99
			Remove these backups
100
	screen
101
	Press ENTER
102
	set -o ignoreeof #prevent Ctrl+D from exiting `screen` to keep attached jobs
103
	unset TMOUT # TMOUT causes screen to exit even with background processes
104
	unset version
105
	Start column-based import: . bin/import_all by_col=1
106
		To use row-based import: . bin/import_all
107
		To stop all running imports: . bin/stop_imports
108
		WARNING: Do NOT run import_all in the background, or the jobs it creates
109
			won't be owned by your shell.
110
		Note that import_all will take up to an hour to import the NCBI backbone
111
			and other metadata before returning control to the shell.
112
	Wait (overnight) for the import to finish
113
	To recover from a closed terminal window: screen -r
114
	When there are no more running jobs, exit the screen
115
	Get $version: echo $version
116
	Set $version in all vegbiendev terminals: export version=<version>
117
	Upload logs (run on vegbiendev): make inputs/upload
118
	On local machine: make inputs/download-logs
119
	In PostgreSQL:
120
		Check that the provider_count and source tables contain entries for all
121
			inputs
122
	Check that TNRS ran successfully:
123
		tail -100 inputs/.TNRS/tnrs/logs/tnrs.make.log.sql
124
		If the log ends in an AssertionError
125
			"assert sql.table_col_names(db, table) == header":
126
			Figure out which TNRS CSV columns have changed
127
			On local machine:
128
				Make the changes in inputs/.TNRS/schema.sql
129
				rm inputs/.TNRS/tnrs/header.csv
130
				make inputs/.TNRS/reinstall schema_only=1
131
				make schemas/public/reinstall
132
				If there are errors "column ... does not exist", etc.:
133
					Make the necessary changes in schemas/vegbien.sql
134
					make schemas/public/reinstall
135
				make schemas/remake
136
				inputs/test_taxonomic_names/test_scrub
137
				In inputs/test_taxonomic_names/_scrub/TNRS.sql, copy the
138
					"COPY tnrs ..." statement to inputs/.TNRS/data.sql
139
				Commit
140
			On vegbiendev:
141
				If dropping a column, save the dependent views
142
				Make the same changes in the live TNRS.tnrs table on vegbiendev
143
				If dropping a column, recreate the dependent views
144
				Restart the TNRS client: make scrub by_col=1 &
145
	tail inputs/{.,}*/*/logs/$version.log.sql
146
	In the output, search for "Command exited with non-zero status"
147
	For inputs that have this, fix the associated bug(s)
148
	If many inputs have errors, discard the current (partial) import:
149
		make schemas/$version/uninstall
150
	Otherwise, continue
151
	Publish the new import:
152
		WARNING: Before proceeding, be sure you have done *every single*
153
			verification step listed above. Otherwise, a previous valid import
154
			could incorrectly be overwritten with a broken one.
155
		make schemas/$version/publish
156
	unset version
157
	backups/fix_perms
158
	make backups/upload
159
	On jupiter:
160
		cd /data/dev/aaronmk/bien/backups
161
		For each newly-archived backup:
162
			make -s <backup>.md5/test
163
			Check that "OK" is printed next to the filename
164
	On nimoy:
165
		cd /home/bien/svn/
166
		svn up
167
		export version=<version>
168
		make backups/analytical_stem.$version.csv/download
169
		In the bien_web DB:
170
			Create the analytical_stem_<version> table using its schema
171
				in schemas/vegbien.my.sql
172
		make -s backups/analytical_stem.$version.csv.md5/test
173
		Check that "OK" is printed next to the filename
174
		env table=analytical_stem_$version bin/publish_analytical_db \
175
			backups/analytical_stem.$version.csv
176
	If desired, record the import times in inputs/import.stats.xls:
177
		Open inputs/import.stats.xls
178
		If the rightmost import is within 5 columns of column IV:
179
			Copy the current tab to <leftmost-date>~<rightmost-date>
180
			Remove the previous imports from the current tab because they are
181
				now in the copied tab instead
182
		Insert a copy of the leftmost "By column" column group before it
183
		export version=<version>
184
		bin/import_date inputs/{.,}*/*/logs/$version.log.sql
185
		Update the import date in the upper-right corner
186
		bin/import_times inputs/{.,}*/*/logs/$version.log.sql
187
		Paste the output over the # Rows/Time columns, making sure that the
188
			row counts match up with the previous import's row counts
189
		If the row counts do not match up, insert or reorder rows as needed
190
			until they do. Get the datasource names from the log file footers:
191
			tail inputs/{.,}*/*/logs/$version.log.sql
192
		Commit: svn ci -m "inputs/import.stats.xls: Updated import times"
193
	To run TNRS:
194
		export version=<version>
195
		make scrub by_col=1 &
196
		To view progress:
197
			tail -100 inputs/.TNRS/tnrs/logs/tnrs.make.log.sql
198
	To remake analytical DB:
199
		export version=<version>
200
		bin/make_analytical_db &
201
		To view progress:
202
			tail -100 inputs/analytical_db/logs/make_analytical_db.log.sql
203
	To back up DB (staging tables and last import):
204
		export version=<version>
205
		If before renaming to public: export dump_opts=--exclude-schema=public
206
		make backups/vegbien.$version.backup/test &
207

    
208
Backups:
209
	Archived imports:
210
		Back up: make backups/<version>.backup &
211
			Note: To back up the last import, you must archive it first:
212
				make schemas/rotate
213
		Test: make -s backups/<version>.backup/test &
214
		Restore: make backups/<version>.backup/restore &
215
		Remove: make backups/<version>.backup/remove
216
		Download: make backups/download
217
	TNRS cache:
218
		Back up: make backups/TNRS.backup-remake &
219
		Restore:
220
			yes|make inputs/.TNRS/uninstall
221
			make backups/TNRS.backup/restore &
222
			yes|make schemas/public/reinstall
223
				Must come after TNRS restore to recreate tnrs_input_name view
224
	Full DB:
225
		Back up: make backups/vegbien.<version>.backup &
226
		Test: make -s backups/vegbien.<version>.backup/test &
227
		Restore: make backups/vegbien.<version>.backup/restore &
228
		Download: make backups/download
229
	Import logs:
230
		Download: make inputs/download-logs
231

    
232
Datasource setup:
233
	umask ug=rwx,o= # prevent files from becoming web-accessible
234
	Add a new datasource: make inputs/<datasrc>/add
235
		<datasrc> may not contain spaces, and should be abbreviated.
236
		If the datasource is a herbarium, <datasrc> should be the herbarium code
237
			as defined by the Index Herbariorum <http://sweetgum.nybg.org/ih/>
238
	For MySQL inputs (exports and live DB connections):
239
		For .sql exports:
240
			Place the original .sql file in _src/ (*not* in _MySQL/)
241
			Follow the steps starting with Install the staging tables below.
242
				This is for an initial sync to get the file onto vegbiendev.
243
			On vegbiendev:
244
				Create a database for the MySQL export in phpMyAdmin
245
				Give the bien user all database-specific privileges *except*
246
					UPDATE, DELETE, ALTER, DROP. This prevents bugs in the
247
					import scripts from accidentally deleting data.
248
				bin/mysql_bien database <inputs/<datasrc>/_src/export.sql &
249
		mkdir inputs/<datasrc>/_MySQL/
250
		cp -p lib/MySQL.{data,schema}.sql.make inputs/<datasrc>/_MySQL/
251
		Edit _MySQL/*.make for the DB connection
252
			For a .sql export, use server=vegbiendev and --user=bien
253
		Skip the Add input data for each table section
254
	For MS Access databases:
255
		Place the .mdb or .accdb file in _src/
256
		Download and install Access To PostgreSQL from
257
			http://www.bullzip.com/download.php
258
		Use Access To PostgreSQL to export the database:
259
			Export just the tables/indexes to inputs/<datasrc>/<file>.schema.sql
260
			Export just the data to inputs/<datasrc>/<file>.data.sql
261
		In <file>.schema.sql, make the following changes:
262
			Replace text "BOOLEAN" with "/*BOOLEAN*/INTEGER"
263
			Replace text "DOUBLE PRECISION NULL" with "DOUBLE PRECISION"
264
		Skip the Add input data for each table section
265
	Add input data for each table present in the datasource:
266
		For .sql exports, you must use the name of the table in the DB export
267
		For CSV files, you can use any name. It's recommended to use a table
268
			name from <https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCSV#Suggested-table-names>
269
		Note that if this table will be joined together with another table, its
270
			name must end in ".src"
271
		make inputs/<datasrc>/<table>/add
272
			Important: DO NOT just create an empty directory named <table>!
273
				This command also creates necessary subdirs, such as logs/.
274
		If the table is in a .sql export: make inputs/<datasrc>/<table>/install
275
			Otherwise, place the CSV(s) for the table in
276
			inputs/<datasrc>/<table>/ OR place a query joining other tables
277
			together in inputs/<datasrc>/<table>/create.sql
278
		Important: When exporting relational databases to CSVs, you MUST ensure
279
			that embedded quotes are escaped by doubling them, *not* by
280
			preceding them with a "\" as is the default in phpMyAdmin
281
		If there are multiple part files for a table, and the header is repeated
282
			in each part, make sure each header is EXACTLY the same.
283
			(If the headers are not the same, the CSV concatenation script
284
			assumes the part files don't have individual headers and treats the
285
			subsequent headers as data rows.)
286
		Add <table> to inputs/<datasrc>/import_order.txt before other tables
287
			that depend on it
288
	Install the staging tables:
289
		make inputs/<datasrc>/reinstall quiet=1 &
290
		For a MySQL .sql export:
291
			At prompt "[you]@vegbiendev's password:", enter your password
292
			At prompt "Enter password:", enter the value in config/bien_password
293
		To view progress: tail -f inputs/<datasrc>/<table>/logs/install.log.sql
294
		View the logs: tail -n +1 inputs/<datasrc>/*/logs/install.log.sql
295
			tail provides a header line with the filename
296
			+1 starts at the first line, to show the whole file
297
		For every file with an error 'column "..." specified more than once':
298
			Add a header override file "+header.<ext>" in <table>/:
299
				Note: The leading "+" should sort it before the flat files.
300
					"_" unfortunately sorts *after* capital letters in ASCII.
301
				Create a text file containing the header line of the flat files
302
				Add an ! at the beginning of the line
303
					This signals cat_csv that this is a header override.
304
				For empty names, use their 0-based column # (by convention)
305
				For duplicate names, add a distinguishing suffix
306
				For long names that collided, rename them to <= 63 chars long
307
				Do NOT make readability changes in this step; that is what the
308
					map spreadsheets (below) are for.
309
				Save
310
		If you made any changes, re-run the install command above
311
	Auto-create the map spreadsheets: make inputs/<datasrc>/
312
	Map each table's columns:
313
		In each <table>/ subdir, for each "via map" map.csv:
314
			Open the map in a spreadsheet editor
315
			Open the "core map" /mappings/Veg+-VegBIEN.csv
316
			In each row of the via map, set the right column to a value from the
317
				left column of the core map
318
			Save
319
		Regenerate the derived maps: make inputs/<datasrc>/
320
	Accept the test cases:
321
		make inputs/<datasrc>/test
322
			When prompted to "Accept new test output", enter y and press ENTER
323
			If you instead get errors, do one of the following for each one:
324
			-	If the error was due to a bug, fix it
325
			-	Add a SQL function that filters or transforms the invalid data
326
			-	Make an empty mapping for the columns that produced the error.
327
				Put something in the Comments column of the map spreadsheet to
328
				prevent the automatic mapper from auto-removing the mapping.
329
			When accepting tests, it's helpful to use WinMerge
330
				(see WinMerge setup below for configuration)
331
		make inputs/<datasrc>/test by_col=1
332
			If you get errors this time, this always indicates a bug, usually in
333
				the VegBIEN unique constraints or column-based import itself
334
	Add newly-created files: make inputs/<datasrc>/add
335
	Commit: svn ci -m "Added inputs/<datasrc>/" inputs/<datasrc>/
336
	Update vegbiendev:
337
		On jupiter: svn up
338
		On local machine:
339
			./fix_perms
340
			make inputs/upload
341
		On vegbiendev:
342
			svn up
343
			make inputs/download
344
			Follow the steps under Install the staging tables above
345

    
346
Datasource refreshing:
347
	VegBank:
348
		make inputs/VegBank/vegbank.sql-remake
349
		make inputs/VegBank/reinstall quiet=1 &
350

    
351
Schema changes:
352
	When changing the analytical views, run sync_analytical_..._to_view()
353
		to update the corresponding table
354
	Remember to update the following files with any renamings:
355
		schemas/filter_ERD.csv
356
		mappings/VegCore-VegBIEN.csv
357
		mappings/verify.*.sql
358
	Regenerate schema from installed DB: make schemas/remake
359
	Reinstall DB from schema: make schemas/public/reinstall schemas/reinstall
360
		WARNING: This will delete the current public schema of your VegBIEN DB!
361
	Reinstall staging tables:
362
		On local machine:
363
			sudo -E -u postgres psql <<<'ALTER DATABASE vegbien RENAME TO vegbien_prev'
364
			make db
365
			. bin/reinstall_all
366
			Fix any bugs and retry until no errors
367
			make schemas/public/install
368
				This must be run *after* the datasources are installed, because
369
				views in public depend on some of the datasources
370
			sudo -E -u postgres psql <<<'DROP DATABASE vegbien_prev'
371
		On vegbiendev: repeat the above steps
372
			WARNING: Do not run this until reinstall_all runs successfully on
373
			the local machine, or the live DB may be unrestorable!
374
	Sync ERD with vegbien.sql schema:
375
		Run make schemas/vegbien.my.sql
376
		Open schemas/vegbien.ERD.mwb in MySQLWorkbench
377
		Go to File > Export > Synchronize With SQL CREATE Script...
378
		For Input File, select schemas/vegbien.my.sql
379
		Click Continue
380
		In the changes list, select each table with an arrow next to it
381
		Click Update Model
382
		Click Continue
383
		Note: The generated SQL script will be empty because we are syncing in
384
			the opposite direction
385
		Click Execute
386
		Reposition any lines that have been reset
387
		Add any new tables by dragging them from the Catalog in the left sidebar
388
			to the diagram
389
		Remove any deleted tables by right-clicking the table's diagram element,
390
			selecting Delete '<table name>', and clicking Delete
391
		Save
392
		If desired, update the graphical ERD exports (see below)
393
	Update graphical ERD exports:
394
		Go to File > Export > Export as PNG...
395
		Select schemas/vegbien.ERD.png and click Save
396
		Go to File > Export > Export as SVG...
397
		Select schemas/vegbien.ERD.svg and click Save
398
		Go to File > Export > Export as Single Page PDF...
399
		Select schemas/vegbien.ERD.1_pg.pdf and click Save
400
		Go to File > Print...
401
		In the lower left corner, click PDF > Save as PDF...
402
		Set the Title and Author to ""
403
		Select schemas/vegbien.ERD.pdf and click Save
404
		Commit: svn ci -m "schemas/vegbien.ERD.mwb: Regenerated exports"
405
	Refactoring tips:
406
		To rename a table:
407
			In vegbien.sql, do the following:
408
				Replace regexp (?<=_|\b)<old>(?=_|\b) with <new>
409
					This is necessary because the table name is *everywhere*
410
				Search for <new>
411
				Manually change back any replacements inside comments
412
		To rename a column:
413
			Rename the column: ALTER TABLE <table> RENAME <old> TO <new>;
414
			Recreate any foreign key for the column, removing CONSTRAINT <name>
415
				This resets the foreign key name using the new column name
416
	Creating a poster of the ERD:
417
		Determine the poster size:
418
			Measure the line height (from the bottom of one line to the bottom
419
				of another): 16.3cm/24 lines = 0.679cm
420
			Measure the height of the ERD: 35.4cm*2 = 70.8cm
421
			Zoom in as far as possible
422
			Measure the height of a capital letter: 3.5mm
423
			Measure the line height: 8.5mm
424
			Calculate the text's fraction of the line height: 3.5mm/8.5mm = 0.41
425
			Calculate the text height: 0.679cm*0.41 = 0.28cm
426
			Calculate the text height's fraction of the ERD height:
427
				0.28cm/70.8cm = 0.0040
428
			Measure the text height on the *VegBank* ERD poster: 5.5mm = 0.55cm
429
			Calculate the VegBIEN poster height to make the text the same size:
430
				0.55cm/0.0040 = 137.5cm H; *1in/2.54cm = 54.1in H
431
			The ERD aspect ratio is 11 in W x (2*8.5in H) = 11x17 portrait
432
			Calculate the VegBIEN poster width: 54.1in H*11W/17H = 35.0in W
433
			The minimum VegBIEN poster size is 35x54in portrait
434
		Determine the cost:
435
			The FedEx Kinkos near NCEAS (1030 State St, Santa Barbara, CA 93101)
436
				charges the following for posters:
437
				base: $7.25/sq ft
438
				lamination: $3/sq ft
439
				mounting on a board: $8/sq ft
440

    
441
Testing:
442
	On a development machine, you should put the following in your .profile:
443
		umask ug=rwx,o= # prevent files from becoming web-accessible
444
		export log= n=2
445
	Mapping process: make test
446
		Including column-based import: make test by_col=1
447
			If the row-based and column-based imports produce different inserted
448
			row counts, this usually means that a table is underconstrained
449
			(the unique indexes don't cover all possible rows).
450
			This can occur if you didn't use COALESCE(field, null_value) around
451
			a nullable field in a unique index. See sql_gen.null_sentinels for
452
			the appropriate null value to use.
453
	Map spreadsheet generation: make remake
454
	Missing mappings: make missing_mappings
455
	Everything (for most complete coverage): make test-all
456

    
457
Debugging:
458
	"Binary chop" debugging:
459
		(This is primarily useful for regressions that occurred in a previous
460
		revision, which was committed without running all the tests)
461
		svn up -r <rev>; make inputs/.TNRS/reinstall; make schemas/public/reinstall; make <failed-test>.xml
462
	.htaccess:
463
		mod_rewrite:
464
			IMPORTANT: whenever you change the DirectorySlash setting for a
465
				directory, you *must* clear your browser's cache to ensure that
466
				a cached redirect is not used. this is because RewriteRule
467
				redirects are (by default) temporary, but DirectorySlash
468
				redirects are permanent.
469
				for Firefox:
470
					press Cmd+Shift+Delete
471
					check only Cache
472
					press Enter or click Clear Now
473

    
474
WinMerge setup:
475
	Install WinMerge from <http://winmerge.org/>
476
	Open WinMerge
477
	Go to Edit > Options and click Compare in the left sidebar
478
	Enable "Moved block detection", as described at
479
		<http://manual.winmerge.org/Configuration.html#d0e5892>.
480
	Set Whitespace to Ignore change, as described at
481
		<http://manual.winmerge.org/Configuration.html#d0e5758>.
482

    
483
Documentation:
484
	To generate a Redmine-formatted list of steps for column-based import:
485
		make schemas/public/reinstall
486
		make inputs/ACAD/Specimen/logs/steps.by_col.log.sql
487
	To import and scrub just the test taxonomic names:
488
		inputs/test_taxonomic_names/test_scrub
489

    
490
General:
491
	To see a program's description, read its top-of-file comment
492
	To see a program's usage, run it without arguments
493
	To remake a directory: make <dir>/remake
494
	To remake a file: make <file>-remake
(3-3/8)