📌 오늘의 국제 원자력 동향 2026년 3월 28일(토)

  • 대만전력이 마안산 원전 재가동과 운전면허 갱신을 위한 계획서를 원자력안전위원회에 제출하며, 탈원전 종료 이후 실제 재가동 여부는 18~24개월 추가 안전점검과 기술심사 결과에 좌우되는 단계로 진입함.
  • 핀란드 정부가 의뢰한 보고서가 대형원전 2.4GW 증설과 SMR 열·전력 활용, 기존 원전 수명연장 옵션을 함께 제시하며 신규 원전은 국가 지원 없이는 시장성 확보가 어렵다는 평가를 내놓음.
  • 인도 원자력규제위원회가 마히 반스와라 원전 1·2호기의 굴착 착수 준비를 승인하며, 700MWe급 PHWR 10기 일괄 확대 구상이 현장 착수 단계로 진입함.
  • 켄터키주와 맥크래큰 카운티가 Paducah 레이저 농축시설에 최대 9,890만달러 인센티브를 제시하며, 미국의 고갈우라늄 재농축 기반 국내 핵연료 공급망 구축이 지역산업 투자와 결합되는 양상이 강화됨.
  • IAEA가 이란 아르다칸 옐로케이크 생산시설 피격 뒤 외부 방사선 수치 상승이 없다고 밝히며, 핵연료 전단계 시설 타격이 직접 방사선 피해로 이어지지는 않았으나 추가 점검 필요성이 커짐.

VisualEditor (SoftInstall): 두 판 사이의 차이

New Atomic Wiki
둘러보기로 이동 검색으로 이동
Jhchang (토론 | 기여)
Jhchang (토론 | 기여)
69번째 줄: 69번째 줄:
                   action:
                   action:
                     # XXX Check API URL!
                     # XXX Check API URL!
                    # apiUriTemplate: http://localhost/w/api.php
                     apiUriTemplate: http://atomic.snu.ac.kr/api.php
                     apiUriTemplate: http://atomic.snu.ac.kr/api.php
                     # XXX Check the base RESTBase URI
                     # XXX Check the base RESTBase URI

2018년 2월 25일 (일) 23:36 판

Visual Editor is Java based editor. It works with Parsoid server[1], RESTbase, and SQLite DB. Parsoid is called from client side. The port, 8142 should be open to world.

Parsoid

Installation

Parsoid[2] is not included in ubuntu package repository. Following commands are required to install Parsoid.

$ sudo apt-key advanced --keyserver keys.gnupg.net --recv-keys 90E9F83F22250DD7
$ sudo apt-add-repository "deb https://releases.wikimedia.org/debian jessie-mediawiki main"
$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo apt-get update && sudo apt-get install parsoid

Parsoid is installed at /etc/mediawiki/parsoid/. Configuration file is /etc/mediawiki/parsoid/config.yaml. We need to specify location of api.php.

mwApis:
       - # This is the only required parameter,
         # the URL of you MediaWiki API endpoint.
         uri: 'http://localhost/api.php'
         # The "domain" is used for communication with Visual Editor
         # and RESTBase.  It defaults to the hostname portion of
         # the `uri` property below, but you can manually set it
         # to an arbitrary string.
         domain: 'localhost'  
  • Note that space should be used. (not tab key)

User parsoid is created.

$ sudo useradd -r -s /sbin/nologin -d /dev/null -M -c 'Unprivileged system account for Parsoid' parsoid

Daemon

Parsoid is serving TCP port 8142. Daemon is controlled by;

$ sudo service parsoid start
$ sudo service parsoid stop

Any error will be recorded at /var/log/parsoid/parsoid.log

You can check daemon status by

$ ps -ax|grep parsoid

Node js

Node.js[3] is used to install RESTbase software. Node.js is Javascript runtime platform.

Installation

$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm

RESTbase

RESTbase is installed at /var/lib/restbase. It uses SQLite database engine.

Install

$ cd /var/lib
$ sudo git clone https://github.com/wikimedia/restbase.git
$ sudo npm install
  • sqlite3 and restbase-mod-table-sqlite should be presented at node_modules directory.
  • npm requires lots of memory during execution. It is good to stop "apache2" and "mysql" before executing npm.

create config.yaml by copying config.example.yaml. Edit as follows

       paths:
         /{domain:atomic.snu.ac.kr}:
           x-modules:
             - path: projects/example.yaml
               options:
                 action:
                   # XXX Check API URL!
                   apiUriTemplate: http://atomic.snu.ac.kr/api.php
                   # XXX Check the base RESTBase URI
                   baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}"
                 parsoid:
                   # XXX Check Parsoid URL!
                   host: http://localhost:8142
                 table:
                   backend: sqlite
                   dbname: /var/lib/restbase/db.sqlite3

MediaWiki settings

LocalSettings.php should be modified as following.

wfLoadExtension( 'VisualEditor');
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
// 'url' => 'http://localhost:8000',
'url' => 'http://localhost:8142',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'atomic'
);
$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;

Problems

"편집" and "원본편집" will appear at menu tab. When parsoid is down, clicking "편집" has no effect. In this case, check running status of parsoid daemon, and fix it.

References