From e991179bbd1dadd71ab77ef41437db64ad487374 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 2 May 2023 12:00:29 +0200 Subject: [PATCH] update for last week push --- 2022/call/call.embed.js | 50 +++++++++++++++++++++++++++++++++++++ index.html | 45 ++++++++++++++++++++++++++------- index.md | 55 +++++++++++++++++++++++++++++++---------- 3 files changed, 128 insertions(+), 22 deletions(-) create mode 100644 2022/call/call.embed.js diff --git a/2022/call/call.embed.js b/2022/call/call.embed.js new file mode 100644 index 0000000..cef306b --- /dev/null +++ b/2022/call/call.embed.js @@ -0,0 +1,50 @@ +function randint (from, to) { + return from + Math.floor((Math.random() * (to-from))); +} + +function choice (arr) { + let ri = randint(0, arr.length-1); + let ret = arr[ri]; + arr.splice(ri, 1); + return ret; +} + +async function make_phrase (nn, terms, delay) { + nn.querySelector(".actor").innerHTML = choice(terms['actor']); + await sleep(delay); + nn.querySelector(".action").innerHTML = choice(terms['action']); + await sleep(delay); + if (randint(0, 2) == 0) { + nn.querySelector(".prefix").innerHTML = choice(terms['prefix'])+'-'; + } else { + nn.querySelector(".prefix").remove(); + } + nn.querySelector(".sort").innerHTML = choice(terms['sort']); + await sleep(delay); + nn.querySelector(".media").innerHTML = choice(terms['media']); +} + +const sleep = delaysecs => new Promise(resolve => setTimeout(resolve, delaysecs*1000)); + +let limit = 25; + +async function make_phrases (json, id) { + let terms = await (await fetch(json)).json(); + // console.log("terms", terms); + let call = document.querySelector(id); + let template = call.querySelector(".phrase"); + template.remove(); + let count = 0; + while (true) { + let nn = template.cloneNode(true); + call.appendChild(nn); + await make_phrase(nn, terms, 0.25); + if (terms['actor'].length == 0 || terms['action'].length == 0 || terms['prefix'].length == 0 || terms['sort'].length == 0 || terms['media'].length == 0) { + console.log("out of terms, stopping"); + break; + } + count += 1; + if (limit > 0 && count>=limit) { break }; + await (sleep(1.0)); + } +} diff --git a/index.html b/index.html index 56e4c20..9999055 100644 --- a/index.html +++ b/index.html @@ -29,19 +29,36 @@ Welcome to the XPUB homepage with links to tools and webpages we use in the course. An important part of the XPUB course is considering the implications of the technologies and tools we use, how the choices have an impact socially, environmentally, politically. In this spirit, rather than relying heavily on cloud services, XPUB (self-) hosts and maintains many of the servers and services that the course uses. Students learn and practice skills of programming and server maintenance in order to gain first hand experience with the materials of software and networks. -
-

not-just-a-fair: Friday, Saturday, and Sunday 7-9 April XPUB students + staff will be on hand at the not-just-a-fair .

-

Come meet students + staff in person, and sample recent and in-progress publications!

-

-
-
+

XPUB Call for application 2023

-

XPUB Call 2023

+

+

+
+Calling all , +

View the call

-

Applications deadlines: May 10, 2023 (EU)

+

FINAL WEEK — Applications deadlines: May 10, 2023 (EU)

Note: The deadline for non-EU applications (March 7, 2023) has passed.

+ + +

public servers

@@ -100,6 +117,16 @@ The course uses a mailing list provided by neighbor network +

2023

+
+
+

not-just-a-fair: Friday, Saturday, and Sunday 7-9 April

+

XPUB students + staff will be on hand at the
not-just-a-fair .

+

Come meet students + staff in person, and sample recent and in-progress publications!

+
+
+
+

2022

@@ -143,7 +170,7 @@ The course uses a mailing list provided by neighbor network +

2021

diff --git a/index.md b/index.md index 55b5b3a..2b8e981 100644 --- a/index.md +++ b/index.md @@ -28,33 +28,44 @@ An important part of the XPUB course is considering the implications of the tech ::: -
-not-just-a-fair: Friday, Saturday, and Sunday 7-9 April -XPUB students + staff will be on hand at the [not-just-a-fair](https://platformpost.nl/programma/events/alliances-not-just-a-fair) . - -Come meet students + staff in person, and sample recent and in-progress publications! - -[![](2023/not-just-a-fair-xpub.jpg)](https://platformpost.nl/programma/events/alliances-not-just-a-fair) - -
-
+
XPUB Call for application 2023 +[![](2022/call2023.320x.jpg)](2022/call/) -![XPUB Call 2023](./2022/call2023.320x.jpg "XPUB Call for applications") +
Calling all ,
+ [View the call](2022/call/) -**Applications deadlines**: *May 10, 2023 (EU)* +**FINAL WEEK — Applications deadlines**: *May 10, 2023 (EU)* *Note: The deadline for non-EU applications (March 7, 2023) has passed.*
+ + + public servers @@ -184,11 +195,29 @@ The [hotline](https://hotline.xpub.nl) is a self-hosted [Jitsi Meet](https://jit ::: -2022 +2023 ------ ::: {.flex} +
+not-just-a-fair: Friday, Saturday, and Sunday 7-9 April + +![](2023/not-just-a-fair-xpub.jpg) + +XPUB students + staff will be on hand at the [not-just-a-fair](https://platformpost.nl/programma/events/alliances-not-just-a-fair) . + +Come meet students + staff in person, and sample recent and in-progress publications! + + +
+ +::: + +2022 +------ +::: {.flex} +
XPUB@zinecamp