Tildizens,
I’ve waited since 2014 for my tilde account and have had a lot of fun the past couple of days.
I noticed you are all a bunch of creative people with a knack for writing terribly crafted html that looks awesome. I also noticed that we are a community. So what good is a community if we cannot work on something together?
Now while you guys were living under a rock writing goofy shell scripts and honing your html 3.2 skills something terrible happened. It was called web 2.0 and it made everything go south very quickly. So I’m thinking how about we collectively go south the tilde way and do some of that user generated co creation nonsense that in the outside world ended with the russians tipping the US presidential elections?
So, here’s what I did.
I created an empty html file and made it world writeable. You can find it here:
cd /home/martijn/public_html/thepage/
and in your browser obviously:
https://tilde.club/~martijn/thepage/
All I am asking of you is to please edit that file and leave something there. A text, an image, a gif, a piece of javascript, an invisible html comment, a story, whatever. If you stumble upon something someone else did, you may rearange, enhance or add to it, as long as you do not remove it. If you find something offensive, please do remove it. Aside from that all standard ~ rules apply.
Still with me? Good! There’s one more thing:
To prevent people overwriting eachothers edits, I’ve created a locking system. Before you edit this file, please execute
ls -lt
in the thepage directory:
total 0 -rw-rw-rw-. 1 martijn club 0 Sep 20 10:38 index.html -rw-rw-rw-. 1 martijn club 0 Sep 20 10:35 index.lock
If the output looks like the above, where index.html is above index.lock because it’s modification time was more recent, there is no lock on the file and you can proceed to lock it by touching the index.lock file.
touch index.lock
Now if you ls -lt that directory again:
ls -lt total 0 -rw-rw-rw-. 1 martijn club 0 Sep 20 10:41 index.lock -rw-rw-rw-. 1 martijn club 0 Sep 20 10:38 index.html
You’ll see that you have successfully placed a lock. You can proceed to edit index.html. Once you are done and you save your changes, the modification date of index.html will be updated and the lock will be lifted automagically.
If you find index.html to be locked, don’t touch it and wait for it to be released, unless the lock is more than 20 minutes old. In that case, by all means ravage whatever the person who locked you out for too long was trying to do.
So, I’m in europe and if you are not, it’s highly likely that I will be asleep when you are reading this. The last thing I want is to wake up tomorow morning and find the same blank canvas I am leaving you now. I want to wake up and see something special, so please don’t disappoint me.
Also: I am open to discussions and suggestions as far as what thepage can be and what it should mean, but I would appreciate if we could find a place for these discussions on thepage itself. That is to say: we do not discuss thepage outside of thepage.
So unless I goofed up and you guys are totally unable to edit these files, don’t let me know if you have any questions, ask thepage. Also, if you enjoy this kind of thing please feel free to come back ocasionally and do some rearranging of whatever state thepage is in. I envision an ever growing and improving library of god knows what all crammed into the confines of a single html file.Help me see what that could look like.
Cheers!
~martijn
Great! It reminds me of some tilde.town projects, it’s always fun!
/// roy niang https://royniang.com
Love the idea, I made a script to help manage the lock. You can see it in /home/mpnordland/scripts/python/lock_the_page.py Use
lock_the_page.py
to acquire the lock on the file. It will check the index.lock modification time and touch it if it is unlocked. If it is locked, it will notify you.
If you have the lock, and decide you don't want to change the page use
lock_the_page.py -r
to release the lock.
I had an idea to extend the lock by writing the username of the locker into index.lock. That way people could see who has locked the page and ~~harass~~ politely ask them to release the lock if they've held it for a while.
Hey ~mpnordland,
This is awesome, I was secretly hoping someone would step up and handle the lock strategy better ;). I copied your lock script over to the thepage directory and also made it world writeable so you or anyone else can improve upon it.
~martijn
On 21 Sep 2019, at 03:26, mpnordland@tilde.club wrote:
Love the idea, I made a script to help manage the lock. You can see it in /home/mpnordland/scripts/python/lock_the_page.py Use
lock_the_page.py
to acquire the lock on the file. It will check the index.lock modification time and touch it if it is unlocked. If it is locked, it will notify you.
If you have the lock, and decide you don't want to change the page use
lock_the_page.py -r
to release the lock.
I had an idea to extend the lock by writing the username of the locker into index.lock. That way people could see who has locked the page and ~~harass~~ politely ask them to release the lock if they've held it for a while.
Now we need a lock file for the lock script!
-Andy
On Sat, 21 Sep 2019, martijn wrote:
Hey ~mpnordland,
This is awesome, I was secretly hoping someone would step up and handle the lock strategy better ;). I copied your lock script over to the thepage directory and also made it world writeable so you or anyone else can improve upon it.
Having received the approbation of my peers, I went mad with power and extended the locking script.
New features: - When locking the page it writes your username into index.lock so it can tell people who currently holds the lock. - There is a new option "-s" which will print the status of the lock and exit - When releasing the lock, the script checks if you are the current lock holder if not it declines to release the lock - Lock expiration is now respected. Releasing or acquiring the lock will succeed if the lock has expired. - There is a second new option "-h" which will print out the supported options and what they do.
September 21, 2019 9:39 AM, "Andy Chase" moondog8@tilde.club wrote:
Now we need a lock file for the lock script!
-Andy
On Sat, 21 Sep 2019, martijn wrote:
Hey ~mpnordland,
This is awesome, I was secretly hoping someone would step up and handle the lock strategy better ;). I copied your lock script over to the thepage directory and also made it world writeable so you or anyone else can improve upon it.
This is fine work! I fiddled with the Help screen to make it a bit more readable.
—Kent
On Sep 21, 2019, at 12:15 PM, mpnordland@tilde.club wrote:
Having received the approbation of my peers, I went mad with power and extended the locking script.
New features:
- When locking the page it writes your username into index.lock so it can tell people who currently holds the lock.
- There is a new option "-s" which will print the status of the lock and exit
- When releasing the lock, the script checks if you are the current lock holder if not it declines to release the lock
- Lock expiration is now respected. Releasing or acquiring the lock will succeed if the lock has expired.
- There is a second new option "-h" which will print out the supported options and what they do.
September 21, 2019 9:39 AM, "Andy Chase" moondog8@tilde.club wrote:
Now we need a lock file for the lock script!
-Andy
On Sat, 21 Sep 2019, martijn wrote:
Hey ~mpnordland,
This is awesome, I was secretly hoping someone would step up and handle the lock strategy better ;). I copied your lock script over to the thepage directory and also made it world writeable so you or anyone else can improve upon it.
It seems the lock script is receiving more work than thepage itself, which is an interesting turn of events that I can only applaud. Rather than create a lock script for the lock script I would propose another flag to let the lock script lock itself. Or we just leave it to chance… Happy to see someone is guarding the accesibility here too ~kent!
Whoever is locking is now shown on thepage too.
~martijn
On 22 Sep 2019, at 18:21, Kent Brewster kentbrew@gmail.com wrote:
This is fine work! I fiddled with the Help screen to make it a bit more readable.
—Kent
Well, I'm better at inventing ways to shuffle data around than making content. I do have some art ideas for the page swirling, so expect that later this week.
Finally did that art, also fixed a few things on the lock script.
September 22, 2019 11:42 PM, "Micah N" mpnordland@tilde.club wrote:
Well, I'm better at inventing ways to shuffle data around than making content. I do have some art ideas for the page swirling, so expect that later this week.
tildeclub@lists.tildeverse.org