Print Kiosk

From Beyond Social
Revision as of 14:33, 13 January 2020 by Angeliki (talk | contribs)

pad

List of material to purchase

WORK SESSION 4 - TAKEOVER ELAINE

13 January 2020 🐆

solve issues

We checked the https://github.com/wdka-publicationSt/print-kiosk-ii/blob/master/README.md and updated pandoc to the latest version (2.9.1.1) because the latex didn't work so to create a pdf from html. It worked!

To do:

  • Check printer
  • Create template
  • Edit dialogue
  • Possibility for irc


WORK SESSION 3 🐸

@Andre: how to render templates?

A1: using the render address: http://beyond-social.org/wiki/index.php?title=BS_SHADOW_LIBRARY&action=render

A1.1: same result seems to be possible when using the api with action=parse http://beyond-social.org/wiki/api.php?action=parse&page=BS_SHADOW_LIBRARY

A.1.1.1: mwclient Site.parse() https://github.com/mwclient/mwclient/pull/147 ???

According to the documentation

Outputs the HTML rendering of the entire page content; similar to the view action, but only the unstyled article text is output, not any part of the user interface (additional toolboxes, search box, stylesheets, etc.).Note: For more stable programmatic access or to retrieve the HTML of only a piece of page content, you should use the parse API with page or pageid parameters.

@Clara: review metadata on JSON + write test questions for survey

WORK SESSION 2 🐸

21 September 2018 Andre, Clara, Manetta

Python interface to wiki API

  • mwclient
  • dowload all content pages's content (NS 0) - to make word analysis
  • search: pages with term in title/content
  • pages created/last edited in given month

mw client

Tutorial https://github.com/mwclient/mwclient/wiki/Tutorial:Querying-Wikipedia-with-mwclient


Prototype workflows

page index

   > i guess we need an index of pages on before hand?
   < yes! this creates a python data object > dict {} > listing all the pages (andré is working on this)

questions

Type 1 - Are you a morning or an evening person? (API metadata)

   Q1
   > each question makes the list smaller ...
   
   Q2
   > and smaller ...
   
   Q3
   > and smaller ...
   
   > list of pages > article index

Type 2 - What topic are you interested in? (API search)

Type 3 - ? (Liberian chat, IRC, manual selection)

article index (to come)

api content gathering (next step)

layouts (far future)

Links & tools that can be useful

Hardware printer screen interface?

  • inspiration from the fancy printers here?
  • or inspiration from the riso print (has a more interesting interface)
  • use curses?

Wdka-printer-interface-secure-queue.jpg


WORK SESSION 1 🤯

18 September 2018 Manetta, Andre, Clara

👽 🤖 💩 (in no particular order)

  • poop is kyute

Books / websites / ...

Working with Mediawiki by Yaron Koren http://www.workingwithmediawiki.com/book/

For next session

  • questionnaire translated to API calls (even using python when necessary)
    • prototype
  • all pages content download and identifying most common words

http://www.workingwithmediawiki.com/wwm-2ed-cover.png

TO DOs - quick n dirty

  • Andre: API overview.
  • Manetta: style
  • Clara: a glossary of the categories: what do they mean, this could be a yearly task for a student editorial board (!)


Interwiki: https://www.mediawiki.org/wiki/Manual:Interwiki


Questions

  • server: hosted by ICT @ wdka > 194.61.64.188
    • ssh access: ssh key
    • backups? > We genereren momenteel 1x per week een snapshot, verder worden er (nog) geen backups aangemaakt.
    • check email address > wdka.beyondsocial@hr.nl (sent an email to it, let's see if someone replies)
    • looking at the article forms, maybe good to do together?

API

=Page Properties

https://www.mediawiki.org/wiki/API:Properties

https://www.mediawiki.org/w/api.php?action=help&modules=query

Property queries get various data about a list of pages specified with either the titles=, pageids=, or revids=

To use the propery query, specify prop=property1|property2... in the url.

'page's metadata


Pages revisions

http://beyond-social.org/wiki/api.php?format=json&action=query&titles=BS%20SHADOW%20LIBRARY&prop=revisions&rvprop=timestamp%7Cuser%7Cids&rvdir=newer&rvlimit=1

Comparing revisions / diffs (Note: the html format of the revision seems a bit messy. Python lib mwclient has nice revisions query implementation)

Using action=compare between 2 revisions ids. Exampe: http://beyond-social.org/wiki/api.php?format=json&action=compare&fromrev=12550&torev=12561

Example: http://beyond-social.org/wiki/api.php?format=json&action=compare&fromtitle=BS%20SHADOW%20LIBRARY&totitle=BS%20SHADOW%20LIBRARY&


wiki search 👻

https://www.mediawiki.org/wiki/API:Search

http://beyond-social.org/wiki/api.php?format=json&action=query&list=search&srnamespace=0%7C6&srsearch=sharing

Search the term "sharing" in title http://beyond-social.org/wiki/api.php?format=json&action=query&list=search&srwhat=title&srsearch=sharing

Search the term "sharing" in text http://beyond-social.org/wiki/api.php?format=json&action=query&list=search&srwhat=text &srsearch=sharingi

Search the term "sharing" in title & text of files (namespace 6) http://beyond-social.org/wiki/api.php?format=json&action=query&list=search&srwhat=title%7Ctext&srnamespace=6&srsearch=sharing

A few more API requests examples:

Non-Ether Pad

Full Scan FULL SCAN Developer Non-Ether Pad.jpg



Detail DETAIL Developer Non-Ether Pad.jpg





https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Transclusion_simple.svg/250px-Transclusion_simple.svg.png

'server side things

  • give andre account -- DONE
  • back up > check > 1x/week there is a snapshot made
  • server = ubuntu
  • ubuntu updates?
  • wiki update to latest version (now 1.29 > 1.31)
  • future: explore cargo

From Q's to print (q2print workflow)

... Start of 'session' ...

The person is walking to the printer ... Questionair for the text based interface ... which is a list of questions ...

  • using 'useless' information made useful
    • morning/evening person (page edited in the morning/evening)
    • star sign (page edited in a certain month)
  • questions based on interest, we can ask for a desctiption of a topic for example. What then happens .... options:
    • but respond with topics that are different (non echo-chamber)
    • respond with one echo-chamber + one non echo-chamber
  • librarian chats

... will generate a list of articles.

Each question in the questionair triggers a specific API request, and returns the wiki information back wiki information = link to an article (in the form of a revid or a section of an article)

Then ....

API content gathering script

  • requests for each article:
    • content
    • first edit
    • last edit
    • contributors
      • sub-API-request: last 10 articles edited by this person
    • categories
      • sub-API-request: all articles in the same category (eg. for one of the categories of this page)
    • revision diffs
    • links to other articles (inside the BS wiki, or outside if we use that)

Then ... this goes to the print layout(s)

  • html-to-print
  • latex
  • dot-matrix layout

> How can we include the q&a mechanism into the flow? And bring it back into the print layout(s).

What can we feed back into the wiki?

  • how often a page is printed

Tools to prepare the questionair

  • nltk most common words counter script (+- 1hour)


DEVELOPMENT MEETING

7 September 2018 Manetta, Kimmy, Andre, Clara

SUMMARY

General Impressions

Students don’t understand the page, find it hard to contribute, constraining in terms of format.

Content needs a lot of wetnursing, it doesn't organically appear, you need to "chase" after people to get them to contribute.

It is not fully integrated into class/course material.

It needs a critical mass to sustain it on its own.

Needs freshness, wildness, unpredictability, but still an underlying structure that makes it easy to navigate.

Events page is important.


Concept ELIA

PROMISCUOUS PRINT SERVICE?
CHATTY PRINT SERVICE?

Continuing the idea of what BS looks like in physical form, how does it become human, material, present in a space, able to engage with its community.

Can the platform be made to speak? How can a digital platform give and be given a human voice?

Three printers, serving three layers of information in the form of a personalized magazine.

The content of the magazine is served to each visitor in three ways.


Printer Types

DOT MATRIX Cover
LASER Guts
RECEIPT Metadata (Chatroom Transcript)


Modes of Content Service

1. VIA METADATA (Limited Answer Survey)

Automated survey chat with questions related to metadata. Making useful to humans information that is usually readable only for machines. Answers are Y/N, multiple choice.

2. VIA CATEGORIES (Free Answer Survey)

Automated survey that allows visitors to help define categories in the wiki. The content they are served corresponds to keywords the have typed in.

3. VIA HUMAN INTERACTION (Chatroom)

Talk to a Librarian — Shadow Chat

Volunteers of the BS Shadow Library chat with visitors, quizzing them briefly on what they are working on, interested in, not interested in, lacking or having too much of in their research. Based on this interaction, the librarian will serve content from the BS Shadow Library. Blurring the line between machinic and human voice, technoanimism as reality!

To Be Determined

1. TIME LIMIT FOR LIBRARIAN CHAT?

Shall the shadow chat be timed? 3 min limit? Productivity goals, as in call centers? A 3-min time limit that the librarians can choose to respect or not respect. Perhaps for the visitor the librarian "breaking the rules" for them and extending chat more than 3 min could be humanizing.

2. SHADOW SHADOW CHAT? (Maybe too much?)

Shall we include the feature of more than one librarian, having a secret shadow chat about the visitor to help serve them information? Then this shadow shadow chat (which appears and reappears in different sizes and locations at all BS physical event spaces, gathering material from students and teachers of the WdKA Social Practice Department's network)

3. SIMPLIFY?

Three printers too much? Probably necessary at some point to pull ideas back. Would be fine with pre-printing the covers on the dot matrix. But I dunno. For now, this is a wish list. Let's see how far we can go.

Task List

1. Use content that is there, write or commission (probably write) an introductory essay

2. To make the schematic, need metadata

3. Printer to Wiki conversation : make a schematic/ write the interview

4. Designing Print Pages - LaTeX… playing with printers, formats, fonts, image treatments

5. Trace of the print history + chat

Schedule

LOCATION

Publication Station

TIME

10–16h

DATES

Sept 18 TUES

Sept 21 FRI

Sept 25 TUES

Oct 5 FRI

Oct 12 FRI

Oct 19 FRI

Nov 2 FRI

Nov 9 FRI

Nov 14 WED ------- PROTOTYPE TEST or FEEDBACK DAY?

Nov 16 FRI ------- PROTOTYPE TEST or FEEDBACK DAY?

Nov 23 FRI ------- DEADLINE: ELIA DAY


NOTES

FRIDAY / TUESDAY Andre Free

Spend 60 hours now

Spend 30 hours for HNI February / Graduation Show

Schedule is 6 hours work on Friday, some Tuesdays depending on availability

10 am - 4 pm