User:E.zn/prototyping2: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "v")
 
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
v
<div style="font-family:monospace; font-size:14px">
 
 
=__________________________________________________ [_ Jan 08 _] . Michael=
<pre>
wget -S -O - https://xpub.nl/#0/-128/128 | grep lib --color
</pre>
[[File:Screenshot from 2020-01-08 14-31-20.png|900px]]
<pre>wget -S -O - https://xpub.nl/#0/-128/128 | grep lib --color > lib.txt 2> mesages.txt
</pre>
[[File:Screenshot from 2020-01-08 14-35-53.png|900px]]
<br>
<br>__ Film [Doc]: [https://www.youtube.com/watch?v=mJgRHYw9-fU Baud]
<br>__ Film [Doc]: [https://www.youtube.com/watch?v=FYineI9Oflk FidoNet]
<br>__ Film [Doc]: [https://www.youtube.com/watch?v=Up2qnhZzNss SysOps and Users]
 
=__________________________________________________ [_ Jan 13 _] . Andre=
Pad: [https://pad.xpub.nl/p/Prototyping_2020.01.13 Prototyping_2020.01.13]
 
<br>Book: https://en.wikipedia.org/wiki/Cypherpunks_(book)
<br>Book: https://en.wikipedia.org/wiki/This_Machine_Kills_Secrets
 
<br>[http://warpweftmemory.net/#/notes warpweftmemory]
 
=__________________________________________________ [_ Jan 22 _] . Michael=
Pad: [https://pad.xpub.nl/p/22-1-2020 22-1-2020]
<br>Session on wiki: [https://pzwiki.wdka.nl/mediadesign/Digital_zines_II:_HTML_and_friends Digital zines II: HTML and friends]
 
<br>[https://pandoc.networkcultures.org Pandoc / Digital Publishing Toolkit Software Showcase]
<br>[https://en.wikipedia.org/wiki/Graphviz Graphviz]
<br>[https://pandoc.org/MANUAL.html Pandoc manual]
<br>[https://hogeschoolrotterdam.on.worldcat.org/discovery HG library search]
<br>
<br>PDF story
<br>epub2 - - 2007
<br>mimetype
<br>
<br>[https://en.wikipedia.org/wiki/Marc_Andreessen Marc Andreessen]
<br>[https://en.wikipedia.org/wiki/Guido_van_Rossum Guido van Rossum]
<br>[https://en.wikipedia.org/wiki/H%C3%A5kon_Wium_Lie Håkon Wium Lie]
<br>
<br>-- Markdown [w/A. Swartz]: [https://daringfireball.net/ Daring Fireball]
<br>-- Tim Berners-Lee - Information Management: [https://www.w3.org/History/1989/proposal.html A Proposal]
<br>-- [https://networkcultures.org/digitalpublishing/2014/04/30/mark-me-up-mark-me-down/ Mark me up, Mark me down!]
<br>
<br>__ Film [Doc]: Netscape ...Open source
<br><br>[[File:Screenshot from 2020-01-24 01-30-31.png|900px]]
----
>>> [https://en.wikipedia.org/wiki/File_Transfer_Protocol ftp://]
<br>>>> [https://en.wikipedia.org/wiki/Gopher_(protocol) gopher://]
<br>>>> [https://en.wikipedia.org/wiki/XML XML]
<br>>>> [https://en.wikipedia.org/wiki/XHTML XHTML]
----
<br>'''Command line browser'''
<pre>links</pre>
<pre>
pandoc
[txt]
[ctrl+d]
[markdown]
</pre>
[[File:PandocExp.png|900px]]
<pre>
pandoc
[txt]
[ctrl+d]
<h1 id="[txt]">[txt]</h1>
</pre>
Markup of the text in an .md file
<pre>
pandoc < [filename].md
</pre>
Pandoc manual
<pre>
man pandoc
</pre>
Produces .txt of a text in a pdf
<pre>
pdftotext <path>
</pre>
<pre>
pandoc < [filename].txt
</pre>
<pre>
less [filename].pdf
</pre>
<pre>
less [filename].txt
</pre>
<pre>
pandoc < [filename].txt > [filename].html
[pandoc -o [filename].txt [filename].html]
</pre>
Prints to terminal instead of creating a txt file
<pre>
pdftotext [filename].pdf -
</pre>
<pre>
pdftotext [filename].pdf - | pandoc
</pre>
<pre>
pdftotext [filename].pdf - | pandoc > [filename].html
</pre>
Opens the file
<pre>
evince [filename].pdf
</pre>
<pre>
=== or #
</pre>
Adds a table of contents
<pre>
pandoc --toc [filename].md -o [filename].html
</pre>
Adds standard html opening in editor
<pre>
pandoc --standalone --toc [filename].md -o [filename].html
</pre>
<pre>
pandoc --standalone --toc [filename].md -o [filename].html --toc-depth=1
</pre>
Prints a template
<pre>
pandoc -D html
</pre>
<pre>
pandoc -D html > [filename].html
</pre>
<pre>
pandoc --from markdown --to mediawiki [filename].md -o [filename].mediawiki
</pre>
<pre>
pandoc --from markdown --to html [filename].md -o [filename].html
</pre>
<pre>
pandoc --stadalone --from markdown --to html [filename].md -o [filename].html
</pre>
<pre>
pandoc --standalone --toc --from markdown --to html --css style.css FACTSHEET.md -o FACTSHEET.html
</pre>
 
=__________________________________________________ [_ Jan 27 _] . OSP & Andre=
<br>Pad: [https://pad.xpub.nl/p/OSP-css OSP css]
<br>Session on wiki: [https://pzwiki.wdka.nl/mediadesign/OSP_Workshop_SI11 OSP_Workshop_SI11]
 
web: http://osp.kitchen/
<br> Copyleft: https://en.wikipedia.org/wiki/Copyleft#Applying_copyleft
<br> Inkscape: https://en.wikipedia.org/wiki/Inkscape
 
Open Source Desktop publishing: https://www.scribus.net/
<br> Webkit: https://en.wikipedia.org/wiki/WebKit
<br>conText
<br>html2print
<br>paged.js
<pre>
#!/bin/bash
for((i=1; i<=6; i++))
do
  tesseract $i.jpg $i pdf
done
</pre>
 
Use --oem 1 for LSTM, --oem 0 for Legacy Tesseract. Please note that Legacy Tesseract models are only included in traineddata files from tessdata repo.
    tesseract input.tiff output --oem 0 -l eng
 
    for i in *.jpg; do b=`basename $i .jpg`; tesseract $i $b -l eng; done
   
Concatenate all your text files into one:
    cat *.txt > all.txt]
 
<pre>
#!/bin/bash
for i in *.jpg
do
pdf=`basename $i .jpg`
  tesseract $i $pdf pdf
done
</pre>
 
Displays in column
<pre>
-1
</pre>
 
::['render' instead of 'edit' at the end of the url]
::[view source]
::[copy and paste to [filename].html]
::[linked to css >> https://pad.xpub.nl/p/OSP-css]
 
<br>For pictures, do a search and replace:
::search for:    src="/sandbox/
::replace by:    src="http://hub.xpub.nl/sandbox/
 
=__________________________________________________ [_ Jan 28 _] . OSP=
Pad: https://pad.xpub.nl/p/OSP-css - OSP css
<br>Pad: https://pad.xpub.nl/p/rendercss - My css
 
<br>Pad: https://pad.xpub.nl/p/15-1-20
<br>Pad: https://pad.xpub.nl/p/Swarm02-29-1-20
 
<br>Pad: https://pad.xpub.nl/p/archivefever.md
<br>Pad: https://pad.xpub.nl/p/archivefever.css
 
Tool: https://gitlab.constantvzw.org/osp/tools.ether2html
 
Active Archives - http://activearchives.org/wiki/Main_Page
<br>pajedjs - https://www.pagedmedia.org/pagedjs-sneak-peeks/
<br>HTML sauce cocktail - http://blog.osp.kitchen/news/html-sauce-cocktail.html
<br>N-up & PDF Imposition - https://www.sejda.com/n-up-pdf
 
paratext [page number]
 
=__________________________________________________ [_ Feb 03 _] . Andre=
Semantic Mediawiki - https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki
<br>Mediawiki API - https://pzwiki.wdka.nl/mediadesign/Mediawiki_API
<br>Book: [https://automatetheboringstuff.com/ Automate the Boring Stuff with Python]
 
Sublime:
<pre>
#!/usr/bin/env python3
 
[var] = "no"
that = "well"
print([var])
sentence = "{} and {} went out of hand"
print(myname, that)
print(sentence)
print(sentence.format(myname, that))
 
#list & for loops
mylist = [myname, that, "z", "x", "0"]
print(mylist)
print('\n', mylist, len(mylist), mylist[0])
</pre>
Terminal:
<pre>
python3 [filename]
</pre>
 
<pre>
ls -l
</pre>
<pre>
total 4
-rw-r--r-- 1 balbla
</pre>
Change mode
<pre>
chmod +x Pth101.py [aka filename]
</pre>
<pre>
./Pth101.py
</pre>
 
=__________________________________________________ [_ Feb 10 _] . Andre=
Push to ezn branch
<pre>
git checkout ezn
git add .
[git add <file>]
[git add <dir>]
[git add -p]
git commit -m'x'
git push origin ezn
</pre>
 
Pull from master
<pre>
git checkout master
git pull origin master
</pre>
 
=__________________________________________________ [_ Mar 04 _] . Michael=
RSS - https://en.wikipedia.org/wiki/RSS
<br>Mediawiki API - https://www.mediawiki.org/wiki/API:Main_page
<br>PZIwiki Api = https://pzwiki.wdka.nl/mw-mediadesign/api.php
 
<br>Funkwhale - https://funkwhale.audio/
----
 
all_pull.py
<br>url="https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=query&list=allimages&format=json"
<pre>
from urllib.request import urlopen
import json
 
data = json.load(urlopen(url))
 
print (json.dumps(data,indent=2))
 
for x in data ['query']['allimages']:
#Sprint (x['name'])
print (f"<img src=\"{x['url']}\">")
print ("done")
</pre>
<pre>
python3 all_pull.py | less
python3 all_pull.py > imgs.txt
python3 all_pull.py > imgs.html
</pre>
site.py
<pre>
import mwclient
from mwclient import Site
from secrets import BOTPASSWORD
 
site = Site("hub.xpub.nl", path="<path>")
site.login("Bot", BOTPASSWORD)
</pre>
<pre>
python3 -i site.py
</pre>
>>> site. [tap tab twice]
 
=__________________________________________________ [_ Mar 09 _] . OSP & Andre=
<pre>
python3 -m http.server or python -m SimpleHTTPServer
</pre>
In browser: http://localhost:8000/zzzz.html
 
=_________________________________________________ [_ Mar 11 _] . Jérémie=
Pad: https://pad.xpub.nl/p/11-3-20
<br>https://mamot.fr/@jz
 
=_________________________________________________ [_ x _]=
 
:[https://youtu.be/4Q7FTjhvZ7Y Project Code Rush - The Beginnings of Netscape / Mozilla Documentary]
:[https://youtu.be/XMm0HsmOTFI The Code: Story of Linux]
:[https://youtu.be/4vW62KqKJ5A Revolution OS]
:[https://www.youtube.com/watch?v=DDH4m6M-ZIU&feature=youtu.be Carey Nachenberg - Dissecting Stuxnet]
:[https://vimeo.com/114093718 Ingrid Burrington - Deep Lab Lecture]
 
 
:[https://youtu.be/hQWRp-FdTpc SSH Crash Course]
:[https://youtu.be/NmM9HA2MQGI Secret Key Exchange [Diffie-Hellman]]
:[https://youtu.be/GSIDS_lvRv4 Public Key Cryptography]
 
</div>

Latest revision as of 23:00, 25 April 2020


__________________________________________________ [_ Jan 08 _] . Michael

wget -S -O - https://xpub.nl/#0/-128/128 | grep lib --color

Screenshot from 2020-01-08 14-31-20.png

wget -S -O - https://xpub.nl/#0/-128/128 | grep lib --color > lib.txt 2> mesages.txt

Screenshot from 2020-01-08 14-35-53.png

__ Film [Doc]: Baud
__ Film [Doc]: FidoNet
__ Film [Doc]: SysOps and Users

__________________________________________________ [_ Jan 13 _] . Andre

Pad: Prototyping_2020.01.13


Book: https://en.wikipedia.org/wiki/Cypherpunks_(book)
Book: https://en.wikipedia.org/wiki/This_Machine_Kills_Secrets


warpweftmemory

__________________________________________________ [_ Jan 22 _] . Michael

Pad: 22-1-2020
Session on wiki: Digital zines II: HTML and friends


Pandoc / Digital Publishing Toolkit Software Showcase
Graphviz
Pandoc manual
HG library search

PDF story
epub2 - - 2007
mimetype

Marc Andreessen
Guido van Rossum
Håkon Wium Lie

-- Markdown [w/A. Swartz]: Daring Fireball
-- Tim Berners-Lee - Information Management: A Proposal
-- Mark me up, Mark me down!

__ Film [Doc]: Netscape ...Open source

Screenshot from 2020-01-24 01-30-31.png


>>> ftp://
>>> gopher://
>>> XML
>>> XHTML



Command line browser

links
pandoc
[txt]
[ctrl+d]
[markdown]

PandocExp.png

pandoc
[txt]
[ctrl+d]
<h1 id="[txt]">[txt]</h1>

Markup of the text in an .md file

pandoc < [filename].md

Pandoc manual

man pandoc

Produces .txt of a text in a pdf

pdftotext <path>
pandoc < [filename].txt
less [filename].pdf
less [filename].txt
pandoc < [filename].txt > [filename].html
[pandoc -o [filename].txt [filename].html]

Prints to terminal instead of creating a txt file

pdftotext [filename].pdf -
pdftotext [filename].pdf - | pandoc
pdftotext [filename].pdf - | pandoc > [filename].html

Opens the file

evince [filename].pdf
=== or #

Adds a table of contents

pandoc --toc [filename].md -o [filename].html

Adds standard html opening in editor

pandoc --standalone --toc [filename].md -o [filename].html
pandoc --standalone --toc [filename].md -o [filename].html --toc-depth=1

Prints a template

pandoc -D html
pandoc -D html > [filename].html
pandoc --from markdown --to mediawiki [filename].md -o [filename].mediawiki
pandoc --from markdown --to html [filename].md -o [filename].html
pandoc --stadalone --from markdown --to html [filename].md -o [filename].html
pandoc --standalone --toc --from markdown --to html --css style.css FACTSHEET.md -o FACTSHEET.html

__________________________________________________ [_ Jan 27 _] . OSP & Andre


Pad: OSP css
Session on wiki: OSP_Workshop_SI11

web: http://osp.kitchen/
Copyleft: https://en.wikipedia.org/wiki/Copyleft#Applying_copyleft
Inkscape: https://en.wikipedia.org/wiki/Inkscape

Open Source Desktop publishing: https://www.scribus.net/
Webkit: https://en.wikipedia.org/wiki/WebKit
conText
html2print
paged.js

#!/bin/bash
for((i=1; i<=6; i++))
do
  tesseract $i.jpg $i pdf
done

Use --oem 1 for LSTM, --oem 0 for Legacy Tesseract. Please note that Legacy Tesseract models are only included in traineddata files from tessdata repo.

   tesseract input.tiff output --oem 0 -l eng
   for i in *.jpg; do b=`basename $i .jpg`; tesseract $i $b -l eng; done
   

Concatenate all your text files into one:

   cat *.txt > all.txt]
#!/bin/bash
for i in *.jpg
do
 pdf=`basename $i .jpg`
  tesseract $i $pdf pdf
done

Displays in column

-1 
['render' instead of 'edit' at the end of the url]
[view source]
[copy and paste to [filename].html]
[linked to css >> https://pad.xpub.nl/p/OSP-css]


For pictures, do a search and replace:

search for: src="/sandbox/
replace by: src="http://hub.xpub.nl/sandbox/

__________________________________________________ [_ Jan 28 _] . OSP

Pad: https://pad.xpub.nl/p/OSP-css - OSP css
Pad: https://pad.xpub.nl/p/rendercss - My css


Pad: https://pad.xpub.nl/p/15-1-20
Pad: https://pad.xpub.nl/p/Swarm02-29-1-20


Pad: https://pad.xpub.nl/p/archivefever.md
Pad: https://pad.xpub.nl/p/archivefever.css

Tool: https://gitlab.constantvzw.org/osp/tools.ether2html

Active Archives - http://activearchives.org/wiki/Main_Page
pajedjs - https://www.pagedmedia.org/pagedjs-sneak-peeks/
HTML sauce cocktail - http://blog.osp.kitchen/news/html-sauce-cocktail.html
N-up & PDF Imposition - https://www.sejda.com/n-up-pdf

paratext [page number]

__________________________________________________ [_ Feb 03 _] . Andre

Semantic Mediawiki - https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki
Mediawiki API - https://pzwiki.wdka.nl/mediadesign/Mediawiki_API
Book: Automate the Boring Stuff with Python

Sublime:

#!/usr/bin/env python3

[var] = "no"
that = "well"
print([var])
sentence = "{} and {} went out of hand"
print(myname, that)
print(sentence)
print(sentence.format(myname, that))

#list & for loops
mylist = [myname, that, "z", "x", "0"]
print(mylist)
print('\n', mylist, len(mylist), mylist[0])

Terminal:

python3 [filename]
ls -l
total 4
-rw-r--r-- 1 balbla

Change mode

chmod +x Pth101.py [aka filename]
./Pth101.py

__________________________________________________ [_ Feb 10 _] . Andre

Push to ezn branch

git checkout ezn
git add .
[git add <file>]
[git add <dir>]
[git add -p]
git commit -m'x'
git push origin ezn

Pull from master

git checkout master
git pull origin master

__________________________________________________ [_ Mar 04 _] . Michael

RSS - https://en.wikipedia.org/wiki/RSS
Mediawiki API - https://www.mediawiki.org/wiki/API:Main_page
PZIwiki Api = https://pzwiki.wdka.nl/mw-mediadesign/api.php


Funkwhale - https://funkwhale.audio/


all_pull.py
url="https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=query&list=allimages&format=json"

from urllib.request import urlopen
import json

data = json.load(urlopen(url))

print (json.dumps(data,indent=2))

for x in data ['query']['allimages']:
	#Sprint (x['name'])
	print (f"<img src=\"{x['url']}\">")
print ("done")
python3 all_pull.py | less
python3 all_pull.py > imgs.txt
python3 all_pull.py > imgs.html

site.py

import mwclient 
from mwclient import Site
from secrets import BOTPASSWORD

site = Site("hub.xpub.nl", path="<path>")
site.login("Bot", BOTPASSWORD)
python3 -i site.py

>>> site. [tap tab twice]

__________________________________________________ [_ Mar 09 _] . OSP & Andre

python3 -m http.server or python -m SimpleHTTPServer

In browser: http://localhost:8000/zzzz.html

_________________________________________________ [_ Mar 11 _] . Jérémie

Pad: https://pad.xpub.nl/p/11-3-20
https://mamot.fr/@jz

_________________________________________________ [_ x _]

Project Code Rush - The Beginnings of Netscape / Mozilla Documentary
The Code: Story of Linux
Revolution OS
Carey Nachenberg - Dissecting Stuxnet
Ingrid Burrington - Deep Lab Lecture


SSH Crash Course
Secret Key Exchange [Diffie-Hellman]
Public Key Cryptography