mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2016-02-07
Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
@ -1,50 +1,82 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="">
|
||||
<meta name="keywords" content="">
|
||||
<meta name="author" content="Alan Orth">
|
||||
<meta name="generator" content="Hugo 0.16-DEV" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css">
|
||||
<link rel="alternate" href="/index.xml" type="application/rss+xml" title="CGSpace Notes">
|
||||
<title>February, 2016 - CGSpace Notes</title>
|
||||
<head prefix="og: http://ogp.me/ns#">
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
|
||||
<meta property="og:title" content=" February, 2016 · CGSpace Notes" />
|
||||
|
||||
<meta property="og:site_name" content="CGSpace Notes" />
|
||||
<meta property="og:url" content="/cgspace-notes/2016-02/" />
|
||||
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
|
||||
<meta property="og:article:published_time" content="2016-02-05T13:18:00+03:00" />
|
||||
|
||||
<meta property="og:article:tag" content="notes" />
|
||||
|
||||
|
||||
|
||||
<title>
|
||||
February, 2016 · CGSpace Notes
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="/cgspace-notes/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="/cgspace-notes/css/main.css" />
|
||||
<link rel="stylesheet" href="/cgspace-notes/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" href="/cgspace-notes/css/github.css" />
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css">
|
||||
<link rel="shortcut icon" href="/cgspace-notes/images/favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="/cgspace-notes/images/apple-touch-icon.png" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<a class="path" href="/cgspace-notes/">[CGSpace Notes]</a>
|
||||
<span class="caret"># _</span>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<main role="main" class="article">
|
||||
<header class="global-header" style="background-image:url(../images/bg.jpg )">
|
||||
<section class="header-text">
|
||||
<h1><a href="/cgspace-notes/">CGSpace Notes</a></h1>
|
||||
|
||||
<div class="sns-links hidden-print">
|
||||
|
||||
<article class="single" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<div class="meta">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<span class="key">published on</span>
|
||||
<span class="val"><time itemprop="datePublished" datetime="2016-02-05">February 05, 2016</time></span>
|
||||
|
||||
<a href="/cgspace-notes/" class="btn-header btn-back hidden-xs">
|
||||
<i class="fa fa-angle-left" aria-hidden="true"></i>
|
||||
Home
|
||||
</a>
|
||||
|
||||
|
||||
</section>
|
||||
</header>
|
||||
<main class="container">
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<span class="key">tags:</span>
|
||||
<span class="val">
|
||||
|
||||
<a href="/cgspace-notes/tags/notes">notes</a>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<h1 class="headline" itemprop="headline">February, 2016</h1>
|
||||
<section class="body" itemprop="articleBody">
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="text-primary">February, 2016</h1>
|
||||
<div class="post-meta clearfix">
|
||||
<div class="post-date pull-left">
|
||||
Posted on
|
||||
<time datetime="2016-02-05T13:18:00+03:00">
|
||||
Feb 5, 2016
|
||||
</time>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
|
||||
<span class="post-tag small"><a href="/cgspace-notes//tags/notes">#notes</a></span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section>
|
||||
|
||||
|
||||
<h2 id="2016-02-05:124a59adbaa8ef13e1518d003fc03981">2016-02-05</h2>
|
||||
@ -111,12 +143,22 @@ DELETE 25
|
||||
<li>For some reason when you import an Excel file into OpenRefine it exports dates like 1949 to 1949.0 in the CSV</li>
|
||||
<li>I re-import the resulting CSV and run a GREL on the date issued column: <code>value.replace("\.0", "")</code></li>
|
||||
<li>I need to start running DSpace in Mac OS X instead of a Linux VM</li>
|
||||
<li>Install PostgreSQL from homebrew and configure:</li>
|
||||
<li>Install PostgreSQL from homebrew, then configure and import CGSpace database dump:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ postgres -D /opt/brew/var/postgres
|
||||
$ createuser --superuser postgres
|
||||
$ createuser --pwprompt dspacetest
|
||||
$ createdb -O dspacetest --encoding=UNICODE dspacetest
|
||||
$ psql postgres
|
||||
postgres=# alter user dspacetest createuser;
|
||||
postgres=# \q
|
||||
$ pg_restore -O -U dspacetest -d dspacetest ~/Downloads/cgspace_2016-02-07.backup
|
||||
$ psql postgres
|
||||
postgres=# alter user dspacetest nocreateuser;
|
||||
postgres=# \q
|
||||
$ vacuumdb dspacetest
|
||||
$ psql -U dspacetest -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest -h localhost
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
@ -138,22 +180,66 @@ $ /opt/brew/Cellar/tomcat/8.0.30/bin/catalina start
|
||||
</ul>
|
||||
|
||||
<pre><code>CATALINA_OPTS="-Djava.awt.headless=true -Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8"
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>After verifying that the site is working, start a full index:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ ~/dspace/bin/dspace index-discovery -b
|
||||
</code></pre>
|
||||
|
||||
</section>
|
||||
<footer>
|
||||
|
||||
<section class="author-info row">
|
||||
<div class="author-avatar col-md-2">
|
||||
|
||||
</div>
|
||||
<div class="author-meta col-md-6">
|
||||
|
||||
<h1 class="author-name text-primary">Alan Orth</h1>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<ul class="pager">
|
||||
|
||||
<li class="previous"><a href="/cgspace-notes/2016-01/"><span aria-hidden="true">←</span> Older</a></li>
|
||||
|
||||
|
||||
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
|
||||
|
||||
</ul>
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
</main>
|
||||
<footer class="container global-footer">
|
||||
<div class="copyright-note pull-left">
|
||||
|
||||
</div>
|
||||
<div class="sns-links hidden-print">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<span class="copyright">© 2016 CGSpace Notes - <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></span>
|
||||
</div>
|
||||
</footer>
|
||||
</footer>
|
||||
|
||||
<script src="/cgspace-notes/js/highlight.pack.js"></script>
|
||||
<script>
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Reference in New Issue
Block a user