Project

General

Profile

Statistics
| Revision:

# Date Author Comment
8406 04/10/2013 07:49 AM Aaron Marcuse-Kubitza

web/**/.htaccess: handle DirectoryIndex subrequests, which append "index" to the dir

8405 04/10/2013 06:15 AM Aaron Marcuse-Kubitza

web/**/.htaccess: RewriteOptions: Removed inherit because if the destination is not found in the current dir, a 404 should be returned instead of trying to invoke the parent dir's fallback handler (which applies only to paths in the parent dir). Ideally, we would use InheritBefore to get the subdomain preprocessing, etc., but the parent dir's fallback handler would still need to be turned off somehow when the rule was being run by a subdir.

8404 04/10/2013 05:59 AM Aaron Marcuse-Kubitza

web/.htaccess: Only forward specific terms (subpaths) to VegCore, not also the dir index itself

8403 04/10/2013 05:15 AM Aaron Marcuse-Kubitza

web/**/.htaccess: RewriteOptions: Added AllowNoSlash (available in Apache 2.4) so dir paths without the trailing / can be parsed by mod_rewrite

8402 04/10/2013 05:12 AM Aaron Marcuse-Kubitza

web/.htaccess: Turned off DirectorySlash so that the dir without the trailing / can have a separate meaning (e.g. as the home page of a datasource, rather than a listing of the short URLs available for it)

8401 04/10/2013 03:33 AM Aaron Marcuse-Kubitza

web/main.conf: <Directory .>: Added `Require all granted`, which is needed by Apache 2.4 to prevent 403 Forbidden errors. This change breaks compatibility with older versions of Apache, but is unfortunately required by 2.4.

8400 04/10/2013 03:29 AM Aaron Marcuse-Kubitza

web/**/.htaccess: parse dotpath in the query string: Use just dotpath instead of dotpath.php because the extension is added automatically by MultiViews

8399 04/10/2013 03:28 AM Aaron Marcuse-Kubitza

web/**/.htaccess: parse dotpath in the query string: Remove any index.* suffix, which is added by MultiViews in Apache 2.4

8398 04/10/2013 03:28 AM Aaron Marcuse-Kubitza

web/main.conf: Updated the path of the <Directory> directive for the DocumentRoot

8397 04/10/2013 03:21 AM Aaron Marcuse-Kubitza

web/.htaccess: Set Options +Indexes because this isn't the default in Apache 2.4

8396 04/10/2013 01:46 AM Aaron Marcuse-Kubitza

web/.htaccess: DirectoryIndex: Use index instead of hardcoding index.php because MultiViews will now add the appropriate extension automatically

8395 04/10/2013 01:44 AM Aaron Marcuse-Kubitza

web/.htaccess: Turn on MultiViews to allow auto-adding of the file extension

8394 04/10/2013 12:15 AM Aaron Marcuse-Kubitza

inputs/**/.htaccess: Use a direct filesystem path rather than going through /svn (the Redmine web interface) because this loads much faster, and avoids needing to manually specify svn-web instead of svn for files that should be displayed in the browser instead of downloaded. It also adds support for files not in svn. Note that the use of a relative RewriteRule replacement requires RewriteBase when the directory is not under the document root, in order to construct the correct self-referential URL (http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase).

8393 04/09/2013 10:59 PM Aaron Marcuse-Kubitza

inputs/**/.htaccess: Removed no longer needed trailing / in paths

8392 04/09/2013 10:55 PM Aaron Marcuse-Kubitza

inputs/CTFS/*/.htaccess: Use new direct shortcuts to /Redmine subtrees

8391 04/09/2013 10:47 PM Aaron Marcuse-Kubitza

Added wiki shortcut to Redmine/wiki

8390 04/09/2013 10:43 PM Aaron Marcuse-Kubitza

web/.htaccess: use separate lowercase version when available: Support paths without a trailing /

8389 04/09/2013 10:41 PM Aaron Marcuse-Kubitza

web/.htaccess: use separate lowercase version when available: Fixed bug where need to use [last] flag, in order to rewrite in the new subdir instead of applying the rest of this dir's rules (which would forward to VegCore)

8388 04/09/2013 10:11 PM Aaron Marcuse-Kubitza

web/: datasources indexed in VegPath: Link to the corresponding inputs/ dir instead, which now stores the data and the short URLs in one place

8387 04/09/2013 10:10 PM Aaron Marcuse-Kubitza

web/.htaccess: Use %{REQUEST_URI} ("The path component of the requested URI" <http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond&gt;) instead of /$0, in order to preserve whether or not the path had a trailing slash. This also ensures that the rule functions correctly if it is invoked in a subdir context, which may occur for the "remove www subdomain" rule.

8386 04/09/2013 10:01 PM Aaron Marcuse-Kubitza

web/.htaccess: Removed "don't redirect subdir paths" because this is now handled by "don't rewrite existing paths" as described in r8375

8385 04/09/2013 09:48 PM Aaron Marcuse-Kubitza

web/: datasources indexed in VegPath: Added .htaccess files to corresponding inputs/ dir so the short URLs can also be accessed via VegBIEN's own dir for the datasource

8384 04/09/2013 09:36 PM Aaron Marcuse-Kubitza

inputs/input.Makefile: Removed .PRECIOUS from %/header.csv, %/map.csv so that these scripts are deleted on error. This is useful for the runscripts and for non-data dirs whose header.csv cannot be made.

8383 04/09/2013 09:33 PM Aaron Marcuse-Kubitza

inputs/input.Makefile: SVN: Only run %/add on subdirs with visible (non-hidden) files. Subdirs with only hidden files (e.g. .htaccess) are assumed to be non-data dirs.

8382 04/09/2013 09:23 PM Aaron Marcuse-Kubitza

inputs/input.Makefile: Staging tables installation: %/install: $(logInstall): Only use log file if log dir exists, to support non-data dirs

8381 04/09/2013 09:13 PM Aaron Marcuse-Kubitza

inputs/input.Makefile: Staging tables installation: %/install: ignore errors in $(exportHeader) and $(cleanup) if the table does not exist (i.e. a non-data dir)

8380 04/09/2013 09:11 PM Aaron Marcuse-Kubitza

inputs/input.Makefile: Staging tables installation: %/install: Don't run $(import_install_) for empty dirs because there is no data to import

8379 04/09/2013 04:37 PM Aaron Marcuse-Kubitza

lib/sql.py: parse_exception(): typed_name_re: Fixed bug where need to require the "" around the table/column name, because otherwise, the regexp will try to match as few characters as possible, causing it to match only the first letter of the name

8378 04/09/2013 04:13 PM Aaron Marcuse-Kubitza

web/**/.htaccess: Removed "handle DirectoryIndex" rule, which does not appear to be needed with the new dotpath format

8377 04/09/2013 04:10 PM Aaron Marcuse-Kubitza

web/VegBank/.htaccess: RewriteRule: Fixed bug where need to match tables by themselves as well as followed by columns

8376 04/09/2013 03:59 PM Aaron Marcuse-Kubitza

web/**/.htaccess: Added "don't rewrite existing paths" and "handle DirectoryIndex" rules to all .htaccess files, not just those for dirs that contain subdirs, to facilitate linking directly to files in the filesystem without first needing to retrofit the applicable .htaccess file.

8375 04/09/2013 03:42 PM Aaron Marcuse-Kubitza

web/**/.htaccess: Restrict redirection only of fully-existing paths, rather than of any path whose subdir exists, in order to avoid having to hardcode the absolute path to the directory containing the .htaccess file. This more restrictive approach still works because if the subdir exists and contains an .htaccess file, this (outer) .htaccess file's RewriteRules will be ignored completely until the inner .htaccess file's rules have been run, so that any subdir redirects will happen first. This "hole-punch" effect causes an existing filesystem path to always take priority over a virtual path (i.e. a redirect) defined in an outer .htaccess file.

8374 04/09/2013 02:57 PM Aaron Marcuse-Kubitza

Added web/datasources/ symlink to inputs/

8373 04/09/2013 02:49 PM Aaron Marcuse-Kubitza

web/servers/vegbiendev/fs: Updated symlink for new web/ dir nesting level

8372 04/09/2013 02:41 PM Aaron Marcuse-Kubitza

Deleted no longer used www/

8371 04/09/2013 02:36 PM Aaron Marcuse-Kubitza

Renamed www/ back to web/

8370 04/09/2013 02:34 PM Aaron Marcuse-Kubitza

Removed www/logs/ because it was actually successfully moved into main/ (but some of its files weren't)

8369 04/09/2013 02:33 PM Aaron Marcuse-Kubitza

Added www/logs/

8368 04/09/2013 02:24 PM Aaron Marcuse-Kubitza

web/: Moved auxiliary files into the main/ subdir in preparation for having just the web/ dir. Renamed web/ to www/ so it can be replaced with web/main/.

8367 04/09/2013 02:09 PM Aaron Marcuse-Kubitza

web/main/servers/vegbiendev/: Split it into db and fs forks, with db being the default. The fs fork links directly to /home/bien/svn on vegbiendev, which makes world-readable files directly web-accessible. (Permissions on /home/bien/svn and subdirs have been checked to ensure that private files are not world-readable.)

8366 04/09/2013 01:33 PM Aaron Marcuse-Kubitza

Added web/main/IH/db/

8365 04/09/2013 01:26 PM Aaron Marcuse-Kubitza

web/main/index.php: Updated fragment redirect for new dotpath format (using ? instead of a relative path)

8364 04/09/2013 01:20 PM Aaron Marcuse-Kubitza

web/main/index.php: Updated path templates for new dotpath format (using ? instead of /)

8363 04/09/2013 01:06 PM Aaron Marcuse-Kubitza

web/main/**/.htaccess: Support dotpaths in the query string instead of in the path, so that non-dotpath paths don't need to be suffixed with / to prevent their filenames from being interpreted as dotpaths. Putting dotpaths in the query string still requires only one character between the host and the path, but it's ? instead of / . ? is in many ways more natural, because the dotpath is a non-filesystem string to be parsed rather than something that's already a filesystem path. This change also avoids the need to strip trailing /s in many RewriteRules, because the dotpath mechanism is no longer appending them.

8362 04/09/2013 01:00 PM Aaron Marcuse-Kubitza

Added web/main/dotpath.php, which parses any dotpath in the query string

8361 04/09/2013 12:58 PM Aaron Marcuse-Kubitza

web/main/util.php: Added coalesce()

8360 04/09/2013 10:18 AM Aaron Marcuse-Kubitza

web/main/svn*: Fixed symlinks to use .redmine instead of Redmine

8359 04/09/2013 09:37 AM Aaron Marcuse-Kubitza

web/main/IH/.htaccess: Fixed whitespace

8358 04/09/2013 09:36 AM Aaron Marcuse-Kubitza

web/main/IH/.htaccess: RewriteRule: Fixed bug where need to \-escape % because it's a special character in the replacement string (it references a regexp group matched by the last RewriteCond)

8357 04/09/2013 09:28 AM Aaron Marcuse-Kubitza

Removed web/main/Redmine symlink so that it isn't listed in the directory listing as a visible (non-hidden) file. (There is already a .redmine symlink which matches all case variations via web/main/.htaccess logic.)

8356 04/09/2013 09:22 AM Aaron Marcuse-Kubitza

Added web/main/svn* symlinks to VegBIEN/Redmine/svn*

8355 04/09/2013 09:18 AM Aaron Marcuse-Kubitza

web/main/svn*/: Removed in preparation for replacing with symlinks, which will work now that absolute paths are used where needed

8354 04/09/2013 09:15 AM Aaron Marcuse-Kubitza

web/main/**/.htaccess: internal redirects using relative paths with .. : Use absolute paths instead so that when the directory is reached through a symlink, the redirect will still work. Note that relative paths without .. do not need to be absolute paths because the subtree structure is the same (just the parent dirs are different).

8353 04/09/2013 08:01 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Regenerated exports

8352 04/09/2013 07:26 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb legend images: resized to medium-sized squares because apparently MySQL Workbench can't handle rectangular or very large images (it distorts them or resets them to their original size when the diagram is reloaded)

8351 04/09/2013 06:08 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Legend: Added IS-A, HAS-A, and "inherits from record" entries

8350 04/09/2013 06:08 AM Aaron Marcuse-Kubitza

Added lib/MySQL_Workbench/connector.png, solid_line.png, dotted_line.png

8349 04/09/2013 05:00 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Fixed lines

8348 04/09/2013 04:59 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Renamed placename to named_place to match the table name

8347 04/09/2013 04:55 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Renamed measurement to trait because this is the more commonly used name for the entity

8346 04/09/2013 04:47 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Added VegCore logo

8345 04/09/2013 04:46 AM Aaron Marcuse-Kubitza

Added schemas/VegCore/VegCore.logo.svg

8344 04/09/2013 04:09 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: taxon: Added recursive parent fkey for (optionally) storing taxon hierarchies

8343 04/09/2013 03:42 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Repositioned taxon_determination

8342 04/09/2013 03:39 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Moved taxon next to qualified_taxon instead of above it, because inheritance (IS-A) is shown vertically while HAS-A is shown horizontally

8341 04/09/2013 03:25 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Populated legend

8340 04/05/2013 12:23 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Added exports

8339 04/05/2013 12:23 AM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Fixed lines and settings for the Linux MySQL Workbench

8338 04/04/2013 10:01 PM Aaron Marcuse-Kubitza

schemas/VegCore/VegCore.ERD.mwb: Added table colors

8337 04/04/2013 10:01 PM Aaron Marcuse-Kubitza

Removed backup file schemas/VegCore/VegCore.ERD.mwb.bak

8336 04/04/2013 09:48 PM Aaron Marcuse-Kubitza

Added schemas/VegCore/VegCore.ERD.mwb, VegCore.my.sql with first VegCore ERD and MySQL schema. All tables are in the ERD, but contain only pkey and fkey columns.

8335 04/04/2013 09:52 AM Aaron Marcuse-Kubitza

lib/sql.py: mk_select(): using subset function: Turn off enable_sort (within the transaction) to avoid unwanted slow sorts. This change (along with the subset functions themselves) should significantly reduce the long FIA.occurrence_all table subset time (~8 hours altogether) and with it the total import time, which had more than doubled as a result of the FIA refresh. Note that this issue would have been even more pronounced for larger datasets, such as the GBIF refresh, which would have taken ~2.5 days longer (400 million rows * ~30% are plants * (FIA: ~8 hours/16.7 million rows) * 1 day/24 hours).

8334 04/04/2013 09:30 AM Aaron Marcuse-Kubitza

lib/sql.py: mk_select(): Use subset function when it's available for fast querying at large OFFSET values

8333 04/04/2013 09:29 AM Aaron Marcuse-Kubitza

lib/sql.py: Added has_subset_func()

8332 04/04/2013 08:48 AM Aaron Marcuse-Kubitza

inputs/FIA/occurrence_all/import: Run mk_subset_by_row_num_func() to make the subset functions available for fast querying at large OFFSET values

8331 04/04/2013 08:43 AM Aaron Marcuse-Kubitza

schemas/util.sql: mk_subset_by_row_num_func(): regular subset function: Fixed bug where need to add 1 to the 0-based offset_ to get the 1-based row_num (which is usually a serial column)

8330 04/04/2013 08:38 AM Aaron Marcuse-Kubitza

schemas/util.sql: mk_subset_by_row_num_func(): regular subset function: Fixed bug where need to subtract 1 from the end row_num because BETWEEN limits are inclusive of the bounds

8329 04/04/2013 08:33 AM Aaron Marcuse-Kubitza

schemas/util.sql: mk_subset_by_row_num_func(): regular subset function: Fixed bug where also need to COALESCE offset_ to 0 when it's added to the limit_

8328 04/04/2013 08:20 AM Aaron Marcuse-Kubitza

schemas/util.sql: mk_subset_by_row_num_func(): subset function which turns off enable_sort: Fixed bug where need to pass ($2, $3) instead of ($1, $2) to the regular subset function

8327 04/04/2013 08:14 AM Aaron Marcuse-Kubitza

inputs/FIA/occurrence_all/import: Added occurrence_all-row_num column for use with mk_subset_by_row_num_func()

8326 04/04/2013 08:12 AM Aaron Marcuse-Kubitza

schemas/util.sql: mk_subset_by_row_num_func(): Also create subset function which turns off enable_sort. This is used for limit values greater than ~100,000 to avoid unwanted slow sorts. The regular subset function is still needed to work with EXPLAIN, so that it produces expanded output instead of just a function scan.

8325 04/04/2013 07:27 AM Aaron Marcuse-Kubitza

schemas/util.sql: Added mk_subset_by_row_num_func()

8324 04/04/2013 07:10 AM Aaron Marcuse-Kubitza

schemas/util.sql: Added type_qual_name()

8323 04/04/2013 06:33 AM Aaron Marcuse-Kubitza

schemas/util.sql: force_update_view(): Fixed bug where also need to drop view for "cannot change name of view column" errors

8322 04/04/2013 05:24 AM Aaron Marcuse-Kubitza

inputs/FIA/occurrence_all/import: Use new force_update_view(), which only drops the view if its columns have changed and otherwise just uses CREATE OR REPLACE VIEW, rather than always first running DROP VIEW IF EXISTS

8321 04/04/2013 05:20 AM Aaron Marcuse-Kubitza

schemas/util.sql: Added force_update_view()

8320 04/04/2013 04:23 AM Aaron Marcuse-Kubitza

bin/make_analytical_db: Commented out export_analytical_db because we are not yet using the analytical DB in MySQL, and it doesn't make sense to generate a large, unused CSV export each time

8319 04/04/2013 04:19 AM Aaron Marcuse-Kubitza

bin/export_analytical_db: Replaced analytical_aggregate with analytical_stem

8318 04/04/2013 03:53 AM Aaron Marcuse-Kubitza

inputs/FIA/occurrence_all/: Updated header.csv for new column order

8317 04/04/2013 03:40 AM Aaron Marcuse-Kubitza

inputs/FIA/occurrence_all/import: Use directional joins (LEFT/RIGHT JOIN) instead of inner joins to ensure that the PostgreSQL query planner always joins starting with the TREE table. Note that the directional joins are now needed for a different reason than when they were initially added, which had been to avoid slow sorts. The sorts (at least for LIMIT-only queries) went away when small tables such as COUNTY and REF_UNIT were added to the joins.

8316 04/04/2013 01:16 AM Aaron Marcuse-Kubitza

inputs/FIA/*/map.csv: Changed newlines between table and field name to - because the newlines mess up the flow of queries and also break pgAdmin's display of EXPLAIN output. The - was chosen because it's a non-whitespace character that linewraps in browsers, phpPgAdmin, and Google spreadsheets (although unfortunately not in pgAdmin). It is better than space because you can set a text editor to treat it as a word character, allowing the entire column name (<table>-<field>) to be selected by double-clicking it.

8315 04/03/2013 09:55 PM Aaron Marcuse-Kubitza

Added planning/workflow/normalized_vs_denormalized/denormalized.generic_standardizations.png (a slide from Brad's bien3_architecture_denormalized.pptx PowerPoint), which shows the staging table preprocessing particularly well

8314 04/03/2013 09:45 PM Aaron Marcuse-Kubitza

README.TXT: Full database import: record the import times in inputs/import.stats.xls: Added instructions for what to do if the rightmost imports start getting truncated due to the 255-column limit in spreadsheets. (This will occur in 8 imports.)

8313 04/03/2013 09:32 PM Aaron Marcuse-Kubitza

inputs/import.stats.xls: Removed the previous imports from the current tab because they are also in the 2012-6~9 tab, and should not be in two places

8312 04/03/2013 09:28 PM Aaron Marcuse-Kubitza

inputs/import.stats.xls: Updated import times. MO and FIA have been refreshed.

8311 04/02/2013 04:17 PM Aaron Marcuse-Kubitza

Removed no longer needed inputs/GBIF/import. Use ./run instead.

8310 04/02/2013 04:17 PM Aaron Marcuse-Kubitza

Removed no longer needed inputs/GBIF/_MySQL/import. Use ./run instead.

8309 04/02/2013 04:16 PM Aaron Marcuse-Kubitza

inputs/GBIF/_MySQL/run: import: Run make directly instead of via ./import

8308 04/02/2013 04:15 PM Aaron Marcuse-Kubitza

inputs/GBIF/_MySQL/run: Use new import.run, which defines all()

8307 04/02/2013 04:06 PM Aaron Marcuse-Kubitza

Added planning/workflow/normalized_vs_denormalized/bien3_architecture_(de)normalized.pptx