From 54bc620c309d471989824d5de50915728b2f3afc Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 3 May 2016 14:22:07 +0200 Subject: mv --- .htaccess | 2 +- README.md | 25 ++++++++++++++++++++----- external/lfpe-apache | 8 ++++---- inc/db.inc.php | 2 +- js/interface.js | 5 +++-- static/pattr-abstracts.html | 10 +++++----- util/run_server | 22 ++++++++++++---------- 7 files changed, 46 insertions(+), 28 deletions(-) diff --git a/.htaccess b/.htaccess index a2cb1b7..cf61c47 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,5 @@ AuthName "Post-Editing Interface" AuthType Basic -AuthUserFile /fast_scratch/simianer/lfpe/.htpasswd +AuthUserFile /srv/postedit/.htpasswd require valid-user diff --git a/README.md b/README.md index 403d745..a3d4e96 100644 --- a/README.md +++ b/README.md @@ -2,20 +2,35 @@ Post-editing interface for learning from post-edited machine translations. # Setup + +` + export BASE_DIR=/srv/postedit +` + ## nanomsg lib - export LD_LIBRARY_PATH=/fast_scratch/simianer/lfpe/lib/nanomsg-0.5-beta/lib +` + export LD_LIBRARY_PATH=$BASE_DIR/lib/nanomsg-0.5-beta/lib +` ## ruby - [see $(pwd)/lib/ruby/gems/nanomsg-0.4.0/ext/extconf.rb] - gem install nanomsg -i $(pwd)/lib/ruby - export GEM_PATH=/fast_scratch/simianer/lfpe/lib/ruby/:$GEM_PATH +` + [see $BASE_DIR/lib/ruby/gems/nanomsg-0.4.0/ext/extconf.rb] + gem install nanomsg -i $BSAE_DIR/lib/ruby + export GEM_PATH=$BASE_DIR/lib/ruby/:$GEM_PATH +` ## iptables +` iptables -A INPUT -i eth0 -p tcp -m multiport --dports 50000:50100 -j ACCEPT +` ## apache +` ln -s /etc/apache2/sites-available/lfpe /etc/apache2/sites-enabled/020-lfpe +` ## python - export PYTHONPATH=/fast_scratch/simianer/lfpe/lib/python:$PYTHONPATH +` + export PYTHONPATH=$BASE_DIR/lib/python:$PYTHONPATH +` diff --git a/external/lfpe-apache b/external/lfpe-apache index e4de4be..eec5e5c 100644 --- a/external/lfpe-apache +++ b/external/lfpe-apache @@ -3,13 +3,13 @@ ServerAdmin simianer@cl.uni-heidelberg.de - DocumentRoot /fast_scratch/simianer/lfpe/lfpe + DocumentRoot /srv/postedit/lfpe - ErrorLog /fast_scratch/simianer/lfpe/lfpe/logs/apache2.error.log + ErrorLog /srv/postedit/lfpe/logs/apache2.error.log LogLevel warn - CustomLog /fast_scratch/simianer/lfpe/lfpe/logs/apache2.access.log combined + CustomLog /srv/postedit/lfpe/logs/apache2.access.log combined - + Options +FollowSymLinks AllowOverride All order allow,deny diff --git a/inc/db.inc.php b/inc/db.inc.php index f08eda5..ed45f7b 100644 --- a/inc/db.inc.php +++ b/inc/db.inc.php @@ -1,6 +1,6 @@ Abstracts -

EP-0005734-A1 (H01H)

+

EP-0005734-A1 (H01H)

Ein elektromagnetisch betätigtes Schaltgerät, z. B. ein elektrisches Schütz, hat einen magnetischen Eisenkern, der aus zwei gleichen E-förmigen Magnetteilen besteht, nämlich dem die Wicklung tragenden Magnetkern (8) und dem Anker (7).

An electromagnetically operated switchgear, e.g. an electrical contactor, has a magnetic iron core which consists of two identical E- shaped magnet parts, specifically the magnet core (8), carrying the winding, and the armature (7). @@ -38,7 +38,7 @@ div.ex:hover {
-

EP-0003301-A1 (A01N,C07C)

+

EP-0003301-A1 (A01N,C07C)

Sie weisen starke insektizide, akarizide und nematizide Eigenschaften auf.

They have strong insecticidal, acaricidal and nematicidal properties. @@ -50,7 +50,7 @@ div.ex:hover {
-

EP-0003578-A2 (F25B)

+

EP-0003578-A2 (F25B)

Die Erfindung bezieht sich auf den Kältemittelkreislauf (1) einer Wärmepumpe.

The invention relates to the refrigerant circuit (1) of a heat pump. @@ -78,7 +78,7 @@ div.ex:hover {
-

EP-0002017-A1 (C25B)

+

EP-0002017-A1 (C25B)

Anoden für Elektrolysezwecke bestehen aus einem elektrisch leitenden Trägerkörper und einer darauf aufgebrachten Schicht aus metallischem Silicium und/oder Germanium.

Anodes for electrochemical purposes are composed of an electrically conducting support body and a layer of metallic silicon and/or germanium applied thereto. @@ -94,7 +94,7 @@ div.ex:hover {
-

EP-0018427-A1 (G05B)

+

EP-0018427-A1 (G05B)

Elektrische Steuerschaltung mit einem Signalgenerator­ teil (20), der in Abhängigkeit von einem Führungssignal auf­ einanderfolgende gleichmäßige Impulse erzeugt.

Electrical control circuit comprising a signal generator section (20) which generates successive uniform pulses in dependence on a control signal. diff --git a/util/run_server b/util/run_server index 7d45583..a4b7a6c 100755 --- a/util/run_server +++ b/util/run_server @@ -1,15 +1,17 @@ #!/bin/bash -x -export LD_LIBRARY_PATH=/fast_scratch/simianer/lfpe/lib/nanomsg-0.5-beta/lib:$LD_LIBRARY_PATH -export PYTHONPATH=/fast_scratch/simianer/lfpe/lib/python:$PYTHONPATH -export GEM_PATH=/fast_scratch/simianer/lfpe/lib/ruby/:$GEM_PATH -UTIL=/fast_scratch/simianer/lfpe/lfpe/util +BASE_DIR=/srv/postedit +export LD_LIBRARY_PATH=$BASE_DIR/lib/nanomsg-0.5-beta/lib:$LD_LIBRARY_PATH +export PYTHONPATH=$BASE_DIR/lib/python:$PYTHONPATH +export GEM_PATH=$BASE_DIR/lib/ruby/:$GEM_PATH +UTIL=$BASE_DIR/lfpe/util SESSION=$1 -DIR=/fast_scratch/simianer/lfpe/sessions/$SESSION +SESSION_DIR=$BASE_DIR/sessions/$SESSION -rm $DIR/work/lockfile -rm -r $DIR/work/ -mkdir -p $DIR/work -cp $DIR/data.json.original $DIR/data.json -$UTIL/../server.rb $DIR/conf.rb &>$DIR/work/session.out +rm $SESSION_DIR/work/lockfile +rm -r $SESSION_DIR/work/ +mkdir -p $SESSION_DIR/work +cp $SESSION_DIR/data.json.original $SESSION_DIR/data.json +cp $SESSION_DIR/g/original/* $SESSION_DIR/g/ +$UTIL/../server.rb $SESSION_DIR/conf.rb &>$SESSION_DIR/work/session.out -- cgit v1.2.3