This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@9f85ddc6532d:/var/lib/parsoid# echo '[[File:script_step2b.png|1200px]]' | bin/parse.js --config ./config.yaml --trace apirequest | |
/var/lib/parsoid/node_modules/prfun/lib/index.js:424 | |
setTimeout(function() { throw e; }, 0); | |
^ | |
Error: No API URI available for prefix: null; domain: en.wikipedia.org | |
at Function.<anonymous> (/var/lib/parsoid/lib/config/MWParserEnvironment.js:489:9) | |
at Generator.next (<anonymous>) | |
at tryCatchNext (/var/lib/parsoid/node_modules/prfun/lib/index.js:783:28) | |
at continuer (/var/lib/parsoid/node_modules/prfun/lib/index.js:800:24) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo '[[File:script_step2b.png|1200px]]' | bin/parse.js --trace apirequest | |
in/parse.js --trace apirequestsoid# echo '[[File:script_step2b.png|1200px]]' | bi | |
[ApiRequest] | #1 Starting HTTP request: {"method":"GET","followRedirect":true,"uri":"https://en.wikipedia.org/w/api.php","qs":{"format":"json","action":"query","meta":"siteinfo","siprop":"namespaces|namespacealiases|magicwords|functionhooks|extensiontags|general|interwikimap|languages|languagevariants|protocols|specialpagealiases|defaultoptions|variables","rawcontinue":1},"timeout":40000,"agent":{"_events":{},"_eventsCount":1,"defaultPort":443,"protocol":"https:","options":{"maxSockets":15,"connectTimeout":5000,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":15,"maxFreeSockets":256,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}},"headers":{"X-Request-ID":null,"User-Agent":"Parsoid/0.9.0","Connection":"close"},"strictSSL":true} | |
[ApiRequest] | #1 Received HTTP 200, 134743 by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
</section><section data-mw-section-id="24" data-parsoid="{}"><h3 id="Step_2b:_Create_a_new_page" data-parsoid='{"dsr":[7060,7094,3,3]}'> Step 2b: Create a new page </h3> | |
<p data-parsoid='{"dsr":[7096,7129,0,0]}'><figure-inline typeof="mw:Error mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"1200px"}],"dsr":[7096,7129,null,null]}' data-mw='{"errors":[{"key":"apierror-unknownerror","message":{}}]}'><a href="./File:Script_step2b.png" data-parsoid='{"a":{"href":"./File:Script_step2b.png"},"sa":{"href":"File:script_step2b.png"}}'><img resource="./File:Script_step2b.png" src="./Special:FilePath/Script_step2b.png" height="1200" width="1200" data-parsoid='{"a":{"resource":"./File:Script_step2b.png","height":"1200","width":"1200"},"sa":{"resource":"File:script_step2b.png"}}'/></a></figure-inline></p> | |
</section><section data-mw-section-id="25" data-parsoid="{}"><h3 id="Step_2c:_create_the_model" data-parsoid='{"dsr":[7131,7164,3,3]}'> Step 2c: create the model </h3> | |
<p data-parsoid='{"dsr":[7166,7248,0,0]}'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# zmqc: a small but powerful command-line interface to ZMQ. | |
## Usage: | |
# zmqc [-0] (-r | -w) (-b | -c) SOCK_TYPE [-o SOCK_OPT=VALUE...] address [address ...] | |
## Examples: | |
# zmqc -rc SUB 'tcp://127.0.0.1:5000' | |
# | |
# Subscribe to 'tcp://127.0.0.1:5000', reading messages from it and printing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:figure-caption: Figure | |
:toc: left | |
:docinfo: shared | |
:docinfodir: {assetdir} | |
:docinfosubs: attributes | |
:safe-mode-unsafe: | |
:iconfont-remote!: | |
:stylesheet: asciidoctor.css | |
:scriptsdir: {assetdir} | |
:linkcss!: |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="generator" content="Asciidoctor 1.5.6"> | |
<meta name="author" content="Transpower New Zealand Ltd"> | |
<title>Test Package</title> | |
<style> |
NewerOlder