From 15290ea9129236abc00f978b550881acd32ccfe5 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 11 Oct 2018 11:17:07 +0300 Subject: [PATCH] Update notes for 2018-10-11 --- content/posts/2018-10.md | 35 +++++++++++++++++++++++++++++++- docs/2018-10/index.html | 44 ++++++++++++++++++++++++++++++++++++---- docs/sitemap.xml | 10 ++++----- 3 files changed, 79 insertions(+), 10 deletions(-) diff --git a/content/posts/2018-10.md b/content/posts/2018-10.md index 408f96223..780cbfa8e 100644 --- a/content/posts/2018-10.md +++ b/content/posts/2018-10.md @@ -174,7 +174,6 @@ org.im4java.core.InfoException: org.im4java.core.CommandException: org.im4java.c - This works, but I'm not sure what ImageMagick's long-term plan is if they are going to disable ALL image formats... - I suppose I need to enable a workaround for this in Ansible? -- Also I note that for a few days the item views on DSpace Test are broken... I think Sisay must have been doing something ## 2018-10-11 @@ -186,4 +185,38 @@ dspace=# \COPY (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE me COPY 1500 ``` +- Give WorldFish advice about Handles because they are talking to some company called KnowledgeArc who recommends they do not use Handles! +- Last week I emailed Altmetric to ask if their software would notice mentions of our Handle in the format "handle:10568/80775" because I noticed that the [Land Portal does this](https://landportal.org/library/resources/handle1056880775/unlocking-farming-potential-bangladesh%E2%80%99-polders) +- Altmetric support responded to say no, but the reason is that Land Portal is doing even more strange stuff by not using `` tags in their page header, and using "dct:identifier" property instead of "dc:identifier" +- I re-created my local DSpace databse container using [podman](https://github.com/containers/libpod) instead of Docker: + +``` +$ mkdir -p ~/.local/lib/containers/volumes/dspacedb_data +$ sudo podman create --name dspacedb -v /home/aorth/.local/lib/containers/volumes/dspacedb_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine +$ sudo podman start dspacedb +$ createuser -h localhost -U postgres --pwprompt dspacetest +$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest +$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;' +$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2018-10-11.backup +$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;' +$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest +``` + +- I tried to make an Artifactory in podman, but it seems to have problems because Artifactory is distributed on the Bintray repository +- I can pull the `docker.bintray.io/jfrog/artifactory-oss:latest` image, but not start it +- I decided to use a Sonatype Nexus repository instead: + +``` +$ mkdir -p ~/.local/lib/containers/volumes/nexus_data +$ sudo podman run --name nexus -d -v /home/aorth/.local/lib/containers/volumes/nexus_data:/nexus_data -p 8081:8081 sonatype/nexus3 +``` + +- With a few changes to my local Maven `settings.xml` it is working well +- Generate a list of the top 10,000 authors for Peter Ballantyne to look through: + +``` +dspace=# \COPY (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE metadata_field_id = 3 AND resource_type_id = 2 GROUP BY text_value ORDER BY count DESC LIMIT 10000) to /tmp/2018-10-11-top-10000-authors.csv WITH CSV HEADER; +COPY 10000 +``` + diff --git a/docs/2018-10/index.html b/docs/2018-10/index.html index f3ff72b9e..92f696e5b 100644 --- a/docs/2018-10/index.html +++ b/docs/2018-10/index.html @@ -9,7 +9,7 @@ - + @@ -24,9 +24,9 @@ "@type": "BlogPosting", "headline": "October, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-10/", - "wordCount": "1092", + "wordCount": "1368", "datePublished": "2018-10-01T22:31:54+03:00", - "dateModified": "2018-10-10T13:33:00+03:00", + "dateModified": "2018-10-11T09:32:54+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -289,7 +289,6 @@ org.im4java.core.InfoException: org.im4java.core.CommandException: org.im4java.c

2018-10-11

@@ -303,6 +302,43 @@ org.im4java.core.InfoException: org.im4java.core.CommandException: org.im4java.c COPY 1500 + + +
$ mkdir -p ~/.local/lib/containers/volumes/dspacedb_data
+$ sudo podman create --name dspacedb -v /home/aorth/.local/lib/containers/volumes/dspacedb_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine
+$ sudo podman start dspacedb
+$ createuser -h localhost -U postgres --pwprompt dspacetest
+$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest
+$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;'
+$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2018-10-11.backup
+$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;'
+$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest
+
+ + + +
$ mkdir -p ~/.local/lib/containers/volumes/nexus_data
+$ sudo podman run --name nexus -d -v /home/aorth/.local/lib/containers/volumes/nexus_data:/nexus_data -p 8081:8081 sonatype/nexus3
+
+ + + +
dspace=# \COPY (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE metadata_field_id = 3 AND resource_type_id = 2 GROUP BY text_value ORDER BY count DESC LIMIT 10000) to /tmp/2018-10-11-top-10000-authors.csv WITH CSV HEADER;
+COPY 10000
+
+ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 03802010a..eb28fc59a 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-10/ - 2018-10-10T13:33:00+03:00 + 2018-10-11T09:32:54+03:00 @@ -189,7 +189,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-10-10T13:33:00+03:00 + 2018-10-11T09:32:54+03:00 0 @@ -200,7 +200,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-10-10T13:33:00+03:00 + 2018-10-11T09:32:54+03:00 0 @@ -212,13 +212,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2018-10-10T13:33:00+03:00 + 2018-10-11T09:32:54+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-10-10T13:33:00+03:00 + 2018-10-11T09:32:54+03:00 0