OEB23 Presentation on LiaScript
OEB23 Presentation in the Live Editor
- Introduction & Motivation
- LiaScript & Markdown Cookbook
- Progressive Web Apps
- Decentralized Content-Storage
- Peer^2^Peer in da Browser & LiaScript-Classrooms
- Sharing Laboratories
Name | ||
---|---|---|
Prof. Dr. Sebastian Zug | sebastian.zug@informatik.tu-freiberg.de | |
Dr. AndrΓ© Dietrich | LiaScript@web.de | @an_dietrich |
# Headline
_a text with **bold** and italic highlighting_
* Point A
* Point B
| A | Table |
|---------|:-------:|
| with | two |
| rows | ... |
And another line with some simple math notation $ a= \frac{1}{cos(b)} $!
{{1}}
a text with bold and italic highlighting
- Point A
- Point B
A | Table |
---|---|
with | two |
rows | ... |
And another line with some simple math notation $ a= \frac{1}{cos(b)} $!
{{2}}
Prompts:
- Generate a table of the 5 most important Learning Management Systems.
- Generate an ASCII-art sequence diagram for cooking a soup.
-
- Project-Website: https://LiaScript.github.io
- Code: https://github.com/liascript
- YouTube: https://www.youtube.com/channel/UCyiTe2GkW_u05HSdvUblGYg
- Blog: https://aizac.herokuapp.com/
-
- Editor: https://code.visualstudio.com/Download
- Liascript-Preview: https://marketplace.visualstudio.com/items?itemName=LiaScript.liascript-preview
- Liascript-Snippets: https://marketplace.visualstudio.com/items?itemName=LiaScript.liascript-snippets
- Online LiveEditor: https://liascript.github.io/LiveEditor/
- Exporter: https://www.npmjs.com/package/@liascript/exporter
- Development-Server: https://www.npmjs.com/package/@liascript/devserver
-
-
Templates: https://github.com/topics/liascript-template
-
Tutorial:
- eMail: LiaScript@web.de
- Twitter: https://twitter.com/LiaScript
- Chat: https://gitter.im/LiaScript/community
A. Basics
Preparation / Working time approximately 10 minutes / Cooking time approximately 25 minutes
Total time approximately 35 minutes
Chop or slice the onions and then sautΓ© them in a large pot with olive oil. Douse the soup with water and start boiling while adding the peeled carrots directly to the pot. Once the water is boiling, add the broth. Chop or slice the zucchini into cubes or halves and then mix it with the noodles into the soup. Let it simmer for about 10 minutes and then add the finely chopped tomatoes and peppers. If needed, add some water. Let it simmer for another 10 minutes and season with spices, salt, and pepper.
A.1 Ingredient List
100 g Instant noodles (Alphabet noodles) 2 TL, heaping Vegetable broth powder, instant 1 Liter Water, possibly more 1 Zucchini 2 Red bell peppers 2 Carrots 1 Onion 3 Tomatoes Optionally Fresh, dried or TK herbs Salt and pepper Sweet paprika powder 1 EL Olive oil
A.2 Tables and Amounts
Nutritional values per serving: 160 kcal
Substance Grams Protein 6.31 g Fat 2.75 g Carbohydrates 26.48 g
A.3 Correct Citing
Alphabet soup is a noodle soup with alphabet noodles as an ingredient. Often, small carrot pieces and various spices are also added to the ingredient. Alphabet noodles are up to one centimeter in size and have the form of the letters A-Z and seldom also the numbers 0-9 or the @ sign. Alphabet noodles and alphabet soup have been available since at least 1867 in the United States, in Germany no later than since 1884. Alphabet noodles are usually offered in the trade as soup ingredients, alphabet soups as canned soups or as canned goods.
Wikipedia: https://de.wikipedia.org/wiki/Buchstabensuppe
B. External References
Source: https://www.chefkoch.de/rezepte/2166951347805623/Buchstabensuppe-mit-frischem-Gemuese.html
B.1 Pictures
https://upload.wikimedia.org/wikipedia/commons/0/09/Buchstabensuppe.jpg
https://www.verbformen.de/deklination/substantive/Buchstabensuppe.png
https://upload.wikimedia.org/wikipedia/commons/e/e9/Alphabet_soup%2C_empty.jpg
B.2 Music for Cooking
https://open.spotify.com/track/24fdXLWNsc6LJZrbE8wLaJ
https://soundcloud.com/sitzhupe/barbier-von-sevillia
B.3 Videos for Cooking
https://www.youtube.com/watch?v=U_UW69w0uHE
B.4 Augmented Reality and More
https://phet.colorado.edu/sims/html/states-of-matter/latest/states-of-matter_all.html
C. Recipe Formats
Interactive books, folios, presentations
C.1 Animations & Comments
Today we are going to make an alphabet soup and for that we need the following ingredients:
First, chop the onions small to sautΓ© them in a large pot with olive oil.
Then douse the soup with water and start boiling while adding the peeled carrots directly to the pot.
Once the water is boiling, add the broth. The zucchini is chopped into cubes or halves and then mixed with the noodles into the soup. Let it simmer for about 10 minutes.
Finally, add the finely chopped tomatoes and peppers. Add some water if needed and let it simmer for another 10 minutes and season with spices, salt, and pepper. And then serve hot.
https://www.youtube.com/watch?v=V6paiDYJmOo&autoplay=1&mute=1
E. Programming in Cooking
var Guests = 4 const People = 4
var Ingredient = { AlphabetNoodles: 100, // Grams VegetableBroth: 2, // TL Water: 1, // L Zucchini: 1, BellPeppers: 2, Carrots: 2, Onions: 1, Tomatoes: 3, Oil: 1 // EL }
for (const Name in Ingredient) { Ingredient[Name] = (Ingredient[Name] / People) * Guests }
JSON.stringify(Ingredient, null, 2)
% audio: true
% autoplay: false
% channel: 0
% debug: false
% notes: true
% program: 60
% responsive: true
% tablature: [{"instrument": "violin","tuning": ["G,", "D", "A", "e"]}]
% voicesOff: false
% chordsOff: false
% stereo: true
X: 1
T: Cooley's
M: 4/4
L: 1/8
K: Emin
|:D2|"Em"EBBA B2 EB|~B2 AB dBAG|"D"FDAD BDAD|FDAD dAFD|
"Em"EBBA B2 EB|B2 AB defg|"D"afe^c dBAF|"Em"DEFD E2:|
|:gf|"Em"eB B2 efge|eB B2 gedB|"D"A2 FA DAFA|A2 FA defg|
"Em"eB B2 eBgB|eB B2 defg|"D"afe^c dBAF|"Em"DEFD E2:|
@ABCJS.eval
<!--
import:
https://raw.githubusercontent.com/liaTemplates/ABCjs/main/README.md
-->
Explore some of the availibe extensions at:
A __P__rogressive __W__eb __A__pplication (PWA), or progressive web app, is a type of application software delivered through the web, built using common web technologies including HTML, CSS, JavaScript, and WebAssembly. It is intended to work on any platform with a standards-compliant browser, including desktop and mobile devices...
Source: Wikipedia
{{1}}
- Allow to store the website in the browser
- Can be installed like a native App
- Support for advanced caching strategies
{{2}}
Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers. It was originally created by Linus Torvalds in 2005 for development of the Linux kernel, and has become the most popular version control system.
Source: Wikipedia
{{1}}
The __I__nter__P__lanetary __F__ile __S__ystem (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system ... supported by Opera, Brave-Browser, Agregore, and more to come
The Tor Network is a system that allows users to anonymize their online activities and their identity by routing the data traffic through multiple servers, thereby hiding the source of the data. The network consists of thousands of voluntary servers worldwide that act as "nodes" and encrypt the data traffic to protect the privacy of the users.
Tor Browser: For anonymous browsing
-
Download & Install: https://www.torproject.org/download/
-
Disable private browsing to enable IndexedDB for caching LiaScript courses:
Settings >> Privacy & Security >> History >> Always use private browsing mode (disable)
-
Enable CORS:
Settings >> Extensions & Themes >> Search for "CORS Unblock" >> Click on "CORS Unblock" >> Install (Add to Firefox)
If you have disabled private browsing mode, enable "CORS Unblock".
Otherwise, enable the plugin first to be used in private mode: Settings >> Extensions & Themes >> "CORS Unblock" >> Run in Private Windows (Allow)
OnionShare for anonymous hosting and sharing
- Download & Install: https://onionshare.org
- Open and "Connect to Tor"
- Share data: Start Hosting >> Add Files or Add Folder >> Start sharing
- Send the Onion-Address and the Private-Key to your students
- Open the Onion-Address within the Tor-Browser, enter the private key and select "Remember this key"
- Open the README.md of the course and copy this URL
- Goto https://LiaScript.github.io and paste this URL "click on Load URL"
WebTorrent is a peer-to-peer (P2P) streaming torrent client written in JavaScript, from the same author, Feross Aboukhadijeh, of YouTube Instant, and the team at WebTorrent and on GitHub, for use in web browsers, as well as a WebTorrent Desktop stand alone version able to bridge WebTorrent and BitTorrent serverless networks.
Source: Wikipedia
Try it on: https://instant.io
{{1}}
{{1-2}}
π¨πΎβπ» --. .-- π©βπ»
\ /
π©βπ» ------ π₯οΈ ------ π¨πΎβπ»
/ \
π¨πΎβπ» --' '-- π©βπ»
{{2}}
- - - --π¨πΎβπ»-----π©βπ»
/ \
/ \
π©βπ»------+-----π¨πΎβπ»- - -
\ / /
\ / /
π¨πΎβπ» π©βπ»- - - -
go to:
select share >> Classroom >> GunDB >> OEB23
The Web Real-Time Communication is a free and open-source project providing web browsers and mobile applications with real-time communication (RTC) via application programming interfaces (APIs). It allows audio and video communication to work inside web pages by allowing direct peer-to-peer communication, eliminating the need to install plugins or download native apps...
Source: Wikpedia
{{0-1}}
(WebRTC)
Alice π©βπ» <------------------------------> π¨πΎβπ» Bob
{{1}}
(Signaling Server)
.-------------> π₯οΈ --------------.
| "{1}{}" / A "{2}{}" |
| / \ |
| / \ V
/ \
Alice π©βπ» <--------' '--------- π¨πΎβπ» Bob
"{4}{}" "{3}{}"
A A
| |
'----------------------------------'
A "{5}{Direct Communication}" A
| |
'-- - - - - - - - - - - - - - - - -'
"{6}{InDirect via TURN}"
{{7}}
More confusing information on WebRTC:
!?WebRTC
A Conflict-free Replicated Data Type (CRDT) is a new type of data structure1 that can be replicated across multiple instances in a network with the following guarantees:
{{1}}
-
A replica can be updated independently, concurrently and without coordinating with other replicas.
-
Inconsistencies can be resolved automatically.
-
Although replicas may have different state, they are guaranteed to eventually converge.
{{2}} Task: Implement an distributed counter
{{3}}
Alice π©βπ»
[0]---------*-->[5]--[+1 = 6]--------*-->[8]-- - - - - - - - - - - -
/ \ / \
A V A \
/ / \
[0]---[+5 = 5]-----------------[+2 = 7]-- - - - --*- - - - - - - - - -
Bob π¨πΎβπ»
{{4}}
Solution: Use Sets and Unions instead...
{{5}}
Alice π©βπ»
{(a,0)}----------*-->{(a,0),(b,5)}->{(a,1),(b,5)}---*-->{(a,1),(b,7)}
/ \ /
A V A
/ /
{(b,0)}---{(b,5)}----------------------------{(b,7)}-----------------
Bob π¨πΎβπ»
{{6}}
__ Implementations__
TODO
Edrys is an open-source app that helps you teach remotely: https://edrys.org
- Live classrooms with video chat, breakout rooms, and more.
- Allow your students to remotely control live equipment (Remote Labs).
- Customize your classes by adding modules (explore Edrys Modules).
{{1}}
Footnotes
-
The CRDT concept was defined in 2011 by Marc Shapiro, Nuno Preguiça, Carlos Baquero and Marek Zawirski.
See also: https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type β©