diff --git a/generasitio.sh b/generasitio.sh index 5d591297..ad98b629 100755 --- a/generasitio.sh +++ b/generasitio.sh @@ -27,19 +27,15 @@ rm web/*html rm gem/*gmi rm tmp/*gmo +# genera logs +awk -f genlog.awk src/log.txt + # copia echo "copiando archivos..." -cp src/tw.txt web/ -cp src/tw.txt gem/ - -cp src/feed.gmi gem/ - #cp src/llave_sejo.asc web/ #cp src/llave_sejo.asc gem/ -cp src/atom.xml web/ -cp src/atom.xml gem/ cp src/estilo.css web/static/ diff --git a/genlog.awk b/genlog.awk new file mode 100644 index 00000000..a9a8df20 --- /dev/null +++ b/genlog.awk @@ -0,0 +1,105 @@ +# generate the following log files: +# * twtxt gemini +# * twtxt web +# * atom feed gemini +# * atom feed web +# * gmo log +# * gmisub +# to use: +# awk -f genlog.awk log.txt + +BEGIN{ + twgempath = "gem/tw.txt" + twwebpath = "web/tw.txt" + loggmopath = "src/log.gmo" + atomwebpath = "web/atom.xml" + atomgempath = "gem/atom.xml" + gmisubpath = "gem/feed.gmi" + + loggmoheader = "log/logheader.gmi" + gematomheader = "log/gematomheader.txt" + webatomheader = "log/webatomheader.txt" + gmisubheader = "log/feedheader.gmi" + + FS = "\t" + + "date --rfc-3339=date"| getline fecha + + system("cp " loggmoheader " " loggmopath) + system("cp " gematomheader " " atomgempath) + system("cp " webatomheader " " atomwebpath) + system("cp " gmisubheader " " gmisubpath) + + updated = "" fecha "T12:00:00Z" + print updated >> atomgempath + print updated >> atomwebpath +} + +function nombre2Link( t, r ){ # convierte un nombre con espacios, a uno con r (e.g. "_" + gsub(" ",r,t); + return t +} + + +{ + # $1 es la fecha + # $2 el texto + # $3 el wikilink, opcional + twgemstring = $1 "\t" $2 + twwebstring = $1 "\t" $2 + + date = $1 + gsub(/T.+$/,"",date) # remove time from date +# print date + + print "## " date >> loggmopath + printf "%s\n", $2 >> loggmopath + + # web atom feed + printf "\n\n" >> atomwebpath + print "" $2 "" >> atomwebpath + print "" $1 "" >> atomwebpath + + # gem atom feed + printf "\n\n" >> atomgempath + print "" $2 "" >> atomgempath + print "" $1 "" >> atomgempath + + if ( match($3, /{.+}/) ){ # si hay wikilink + gsub("{","",$3) + gsub("}","",$3) + filename = nombre2Link( $3, "_" ) + + print "=> ./" filename ".gmi {" $3 "}" >> loggmopath + + print "=> ./" filename ".gmi " date " " $2 >> gmisubpath + + gemurl = "gemini://compudanzas.net/" filename ".gmi" + weburl = "https://compudanzas.net/" filename ".html" + twgemstring = twgemstring " | " gemurl + twwebstring = twwebstring " | " weburl + + print "" >> atomwebpath + print "" weburl "#" date "" >> atomwebpath + + print "" >> atomgempath + print "" gemurl "" >> atomgempath + } + else{ + print "" >> atomwebpath + print "https://compudanzas.net/log.html#" date "" >> atomwebpath + + print "" >> atomgempath + print "gemini://compudanzas.net/log.gmi#" date "" >> atomgempath + } + print twgemstring > twgempath + print twwebstring > twwebpath + + print "" >> atomwebpath + print "" >> loggmopath +} + +END { + print "" >> atomwebpath + +} diff --git a/log/feedheader.gmi b/log/feedheader.gmi new file mode 100644 index 00000000..b462c564 --- /dev/null +++ b/log/feedheader.gmi @@ -0,0 +1,9 @@ +# compudanzas + +our gemsub feed + +see also: +=> ./log.gmi log + +# entries + diff --git a/log/gematomheader.txt b/log/gematomheader.txt new file mode 100644 index 00000000..0c075ae4 --- /dev/null +++ b/log/gematomheader.txt @@ -0,0 +1,9 @@ + + + +gemini://compudanzas.net/ +compudanzas +sejo +genlog + + diff --git a/log/logheader.gmi b/log/logheader.gmi new file mode 100644 index 00000000..594ef09b --- /dev/null +++ b/log/logheader.gmi @@ -0,0 +1,7 @@ +# compudanzas log + +updates of the project + +=> ./tw.txt [twtxt] +=> ./atom.xml [atom feed] + diff --git a/log/webatomheader.txt b/log/webatomheader.txt new file mode 100644 index 00000000..f6846761 --- /dev/null +++ b/log/webatomheader.txt @@ -0,0 +1,9 @@ + + + +https://compudanzas.net/ +compudanzas +sejo +genlog + + diff --git a/src/log.gmo b/src/log.gmo index 69c45651..222bba87 100644 --- a/src/log.gmo +++ b/src/log.gmo @@ -1,147 +1,121 @@ -# the log +# compudanzas log -what's happening with compudanzas +updates of the project -=> ./atom.xml [atom feed] => ./tw.txt [twtxt] +=> ./atom.xml [atom feed] -## 12021-11-23 +## 2021-11-23 +third qiudanz technique mini workshop +=> ./qiudanz_devlog.gmi {qiudanz devlog} -had our third {qiudanz technique} mini workshop! +## 2021-11-21 +taught and enjoyed our intro to uxn programming online workshop via babycastles academy! +=> ./intro_to_uxn_programming.gmi {intro to uxn programming} -we just added some notes about it in the {qiudanz devlog} +## 2021-11-19 +first check-in meeting with slomoco fall microresidents +=> ./qiudanz_devlog.gmi {qiudanz devlog} -## 12021-11-21 +## 2021-11-17 +created a short introductory video to qiudanz mode 1 +=> ./qiudanz_mode_1.gmi {qiudanz mode 1} -taught and enjoyed our {intro to uxn programming} online workshop via babycastles academy! +## 2021-11-15 +second qiudanz technique mini workshop +=> ./qiudanz_devlog.gmi {qiudanz devlog} -video recording available at: -=> https://www.youtube.com/watch?v=LrNuq_JgaOA Babycastles Academy: Intro to Uxn Programming +## 2021-11-12 +first qiudanz technique mini workshop +=> ./qiudanz_devlog.gmi {qiudanz devlog} -## 12021-11-17 +## 2021-11-04 +announcing our intro to uxn programming online workshop, via babycastles academy! sunday, nov 21 +=> ./intro_to_uxn_programming.gmi {intro to uxn programming} -created a short introductory video to {qiudanz mode 1}! +## 2021-11-03 +preliminary notes for a workshop on qiudanz technique mode 1 +=> ./qiudanz_mode_1.gmi {qiudanz mode 1} -=> https://spectra.video/w/dtoM76wLmuQfabP8t8ou43 video: intro to qiudanz technique mode 1 +## 2021-10-24 +created an account for the fediverse: compudanzas@post.lurk.org -## 12021-11-15 +## 2021-10-19 +got accepted to develop the qiudanz technique in the slomoco fall phase! +=> ./qiudanz_technique.gmi {qiudanz technique} -we had our second {qiudanz technique} miniworkshop! +## 2021-10-12 +published uxn tutorial day 7, more devices +=> ./uxn_tutorial_day_7.gmi {uxn tutorial day 7} -we updated our {qiudanz devlog} with some notes about it. +## 2021-09-14 +applied to the fall phase of slomoco +=> ./slomoco_application.gmi {slomoco application} -also, we have been preparing the {intro to uxn programming} workshop for this sunday! +## 2021-09-14 +published uxn tutorial day 6, towards pong +=> ./uxn_tutorial_day_6.gmi {uxn tutorial day 6} -## 12021-11-12 +## 2021-08-24 +published uxn tutorial day 5, the mouse and uxntal goodies +=> ./uxn_tutorial_day_5.gmi {uxn tutorial day 5} -we had our first {qiudanz technique} miniworkshop! +## 2021-08-18 +updated the uxn tutorial with changes in the instructions and opcodes NIP, INC, and LIT +=> ./uxn_tutorial.gmi {uxn tutorial} -we updated our {qiudanz devlog} with the results and notes, including a demo video! +## 2021-08-11 +published uxn tutorial day 4, variables and animation loop! +=> ./uxn_tutorial_day_4.gmi {uxn tutorial day 4} -## 12021-11-04 +## 2021-07-31 +published uxn tutorial day 3 +=> ./uxn_tutorial_day_3.gmi {uxn tutorial day 3} -announcing our {intro to uxn programming} online workshop, via babycastles academy! +## 2021-07-27 +published uxn tutorial day 2 +=> ./uxn_tutorial_day_2.gmi {uxn tutorial day 2} -=> https://withfriends.co/event/13004513/babycastles_academy_intro_to_uxn_programming Babycastles Academy: Intro to Uxn Programming -sunday, november 21, 12021, at 3pm UTC-5 (EST) +## 2021-07-22 +published day 1 of the uxn tutorial! +=> ./uxn_tutorial.gmi {uxn tutorial} -=> ./talks_and_workshops.gmi {talks and workshops} +## 2021-07-15 +reading: starting forth. possible practice, puzzle, game, eventually dance? +=> ./forth.gmi {forth} -## 12021-11-03 +## 2021-07-12 +published the uxnería repo for uxn projects and sketches. excited about the nibble dice tracker +=> ./nibble_dice_tracker.gmi {nibble dice tracker} -we started our preliminary notes for a workshop on {qiudanz mode 1} - -and we created a {qiudanz devlog}! - -## 12021-10-19 - -our {slomoco application} got accepted for the slomoco fall phase! - -we will develop the {qiudanz technique} over there! - -## 12021-10-12 - -published {uxn tutorial day 7}, more devices! - -## 12021-09-14 - -published {uxn tutorial day 6}, towards pong! - -## 12021-08-24 - -published {uxn tutorial day 5}, the mouse and uxntal goodies! - -## 12021-08-11 - -published {uxn tutorial day 4}, variables and animation loop! - -## 12021-07-31 - -published {uxn tutorial day 3}, and updated the previous day with changes in the screen device. - -## 12021-07-26 - -published {uxn tutorial day 2} - -## 12021-07-22 - -published day 1 of the {uxn tutorial}! - -## 12021-07-12 - -just published the {uxnería} repo! - -it has our projects and sketches for the {uxn} machine. - -the project we have been working in the past few days is the {nibble dice tracker} - -## 12021-07-06 - -this past week we had the third and fourth sessions of the online compudanzas workshop {taller de compudanzas} in cuna! - -it was a great opportunity to add to the site resources related to turing machines: - -=> ./d-turing.gmi {d-turing} -=> ./máquinas_de_turing.gmi {máquinas de turing} +## 2021-07-05 +fourth session of the compudanzas workshop: we shared our máquina universal bailable => ./mub.gmi {mub} -## 12021-06-29 +## 2021-06-30 +third session of the compudanzas workshop: we learned and performed the danzasistemas-tag (first time ever!) and a turing machine in d-turing mode +=> ./las_danzas.gmi {las danzas} -we had our first two sessions of the online compudanzas workshop! {taller de compudanzas} - -these are the dances we have been learning and performing: - -=> ./ciclo_de_memoria.gmi {ciclo de memoria} -=> ./danzas_compuertas.gmi {danzas compuertas} +## 2021-06-28 +second session of the compudanzas workshop: we performed reglas de wolfram and talked a lot about emergent complexity => ./reglas_de_wolfram.gmi {reglas de wolfram} -those pages have been improved with some diagrams and illustrations. +## 2021-06-23 +first session of the online compudanzas workshop! we danced the ciclo de memoria and danzas compuertas +=> ./las_danzas.gmi {las danzas} -## 12021-06-21 - -created the compudanzas page on patreon! - -{support} us and help us achieve the goal of having this dream project as our main activity! - -## 12021-06-19 - -today was processing community day quito (1)2021, were we talked about compudanzas and had a workshop about {coloring computers}. - -see {talks and workshops} for the slide deck (in spanish), coloring computers pack, and links to the recordings. - -## 12021-06-16 - -archaeology of the project: digging through the archives, finding the main {proposals} that show the history and development of compudanzas. - -also, adding some automation to the wiki engine for the incoming links of each page. - - -## 12021-06-14 - -we started building this site, from previous blocks of executable and non-executable texts. - -there's an upcoming talk in the weekend: for a while it was seen as the closure of this project, and a recap of its history. - -now it is seen as a new beginning :) +## 2021-06-21 +created the compudanzas page on patreon: support us and help us achieve the goal of having this dream project as our main activity! +=> ./support.gmi {support} +## 2021-06-19 +pcd quito 2021: we had a talk on compudanzas and a workshop on coloring computers. => ./talks_and_workshops.gmi {talks and workshops} + +## 2021-06-17 +compudanzas.net is now available in gemini: sharing (self-hosted) space with caracolito.mooo.com :) + +## 2021-06-16 +digging through the projects archives +=> ./proposals.gmi {proposals} + diff --git a/src/log.txt b/src/log.txt new file mode 100644 index 00000000..16267967 --- /dev/null +++ b/src/log.txt @@ -0,0 +1,29 @@ +2021-11-23T20:00:00-06:00 third qiudanz technique mini workshop {qiudanz devlog} +2021-11-21T17:00:00-06:00 taught and enjoyed our intro to uxn programming online workshop via babycastles academy! {intro to uxn programming} +2021-11-19T15:00:00-06:00 first check-in meeting with slomoco fall microresidents {qiudanz devlog} +2021-11-17T17:00:00-06:00 created a short introductory video to qiudanz mode 1 {qiudanz mode 1} +2021-11-15T20:00:00-06:00 second qiudanz technique mini workshop {qiudanz devlog} +2021-11-12T16:00:00-06:00 first qiudanz technique mini workshop {qiudanz devlog} +2021-11-04T13:00:00-06:00 announcing our intro to uxn programming online workshop, via babycastles academy! sunday, nov 21 {intro to uxn programming} +2021-11-03T14:00:00-06:00 preliminary notes for a workshop on qiudanz technique mode 1 {qiudanz mode 1} +2021-10-24T17:00:00-05:00 created an account for the fediverse: compudanzas@post.lurk.org +2021-10-19T17:00:00-05:00 got accepted to develop the qiudanz technique in the slomoco fall phase! {qiudanz technique} +2021-10-12T21:00:00-05:00 published uxn tutorial day 7, more devices {uxn tutorial day 7} +2021-09-14T21:00:00-05:00 applied to the fall phase of slomoco {slomoco application} +2021-09-14T18:00:00-05:00 published uxn tutorial day 6, towards pong {uxn tutorial day 6} +2021-08-24T20:00:00-05:00 published uxn tutorial day 5, the mouse and uxntal goodies {uxn tutorial day 5} +2021-08-18T15:00:00-05:00 updated the uxn tutorial with changes in the instructions and opcodes NIP, INC, and LIT {uxn tutorial} +2021-08-11T20:00:00-05:00 published uxn tutorial day 4, variables and animation loop! {uxn tutorial day 4} +2021-07-31T17:00:00-05:00 published uxn tutorial day 3 {uxn tutorial day 3} +2021-07-27T21:00:00-05:00 published uxn tutorial day 2 {uxn tutorial day 2} +2021-07-22T21:00:00-05:00 published day 1 of the uxn tutorial! {uxn tutorial} +2021-07-15T12:00:00-05:00 reading: starting forth. possible practice, puzzle, game, eventually dance? {forth} +2021-07-12T12:00:00-05:00 published the uxnería repo for uxn projects and sketches. excited about the nibble dice tracker {nibble dice tracker} +2021-07-05T21:00:00-05:00 fourth session of the compudanzas workshop: we shared our máquina universal bailable {mub} +2021-06-30T21:00:00-05:00 third session of the compudanzas workshop: we learned and performed the danzasistemas-tag (first time ever!) and a turing machine in d-turing mode {las danzas} +2021-06-28T21:00:00-05:00 second session of the compudanzas workshop: we performed reglas de wolfram and talked a lot about emergent complexity {reglas de wolfram} +2021-06-23T21:00:00-05:00 first session of the online compudanzas workshop! we danced the ciclo de memoria and danzas compuertas {las danzas} +2021-06-21T17:00:00-05:00 created the compudanzas page on patreon: support us and help us achieve the goal of having this dream project as our main activity! {support} +2021-06-19T20:00:00-05:00 pcd quito 2021: we had a talk on compudanzas and a workshop on coloring computers. {talks and workshops} +2021-06-17T22:00:00-05:00 compudanzas.net is now available in gemini: sharing (self-hosted) space with caracolito.mooo.com :) +2021-06-16T18:00:00-05:00 digging through the projects archives {proposals}