From 84492799e3c2c38cefa58f57007ced02d0013e64 Mon Sep 17 00:00:00 2001 From: endorphant Date: Sun, 4 Dec 2016 20:18:41 -0500 Subject: [PATCH] adding hardcoded bs to make global feels list load faster, re issue #11 --- bin/_ttbp.py | 4 +++- bin/ttbp.py | 4 +++- ttbp-manifesto.txt | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 ttbp-manifesto.txt diff --git a/bin/_ttbp.py b/bin/_ttbp.py index 69fb329..91fc074 100644 --- a/bin/_ttbp.py +++ b/bin/_ttbp.py @@ -39,6 +39,7 @@ import subprocess import time import json from email.mime.text import MIMEText; +import re import core import chatter @@ -808,7 +809,8 @@ def view_feed(): filenames = os.listdir(entryDir) for entry in filenames: - if core.valid(entry): + ## hardcoded bs + if core.valid(entry) and re.search("201612", entry): feedList.append(os.path.join(entryDir, entry)) metas = core.meta(feedList) diff --git a/bin/ttbp.py b/bin/ttbp.py index db6c4b4..cf619a2 100644 --- a/bin/ttbp.py +++ b/bin/ttbp.py @@ -39,6 +39,7 @@ import subprocess import time import json from email.mime.text import MIMEText; +import re import core import chatter @@ -807,7 +808,8 @@ def view_feed(): filenames = os.listdir(entryDir) for entry in filenames: - if core.valid(entry): + ## hardcoded bs + if core.valid(entry) and re.search("201612", entry): feedList.append(os.path.join(entryDir, entry)) metas = core.meta(feedList) diff --git a/ttbp-manifesto.txt b/ttbp-manifesto.txt new file mode 100644 index 0000000..e35dc9d --- /dev/null +++ b/ttbp-manifesto.txt @@ -0,0 +1,56 @@ +TTBP MANIFESTO +-------------- +ttbp: tilde town blogging platform; also known as THE FEELS ENGINE + +a history: + + in april 2016, i read a short rant by ~minerobber lamenting the lack of cli + blogging software. this struck a chord with me; years ago, i kludged myself a + perl script that generated an html blog, complete with an rss feed and a + crude tagging system. i've known other people who have done the same. what's + missing, though? + + years ago, i peeled away from livejournal and related web-based blogging + networks; partially as a participant in the general attrition, and partially + to escape some personal bad feelings that i coudn't quite put a finger on. + this is why i started writing on an independent, solo blog; i still had the + urge to publicly share some of my journaling. but it felt lonely. + + this is what happens when i log in to a unix box: i reattach my screens, and + flip through irc to catch up on chat, and alpine to check my mail. in the + past, on non-tilde machines, i've fired up zephyr to message friends. i git + pull my repos for updates. i check the nethack leaderboard. these are all + cli-based actions, but they are also based on the idea that when i wasn't + looking, things changed. those things changed because other people performed + some actions of their own. i catch up on these updates with the implicit + acknowledgement that other humans exist and do things in my environment. + + this is what i realized i missed from running my own clumsy blog scripts. i + had ways to chat, mail, and collaborate on text-based projects through the + terminal, but nothing that served as a central hub for journal-writing. + + i didn't think of myself as a strong programmer or a skilled developer, but i + had a few ideas that i thought i could try out. on april 29th, 2016, i put + out a general call in irc for people to run ~endorphant/bin/ttbp; ~sl2c + confirmed that it worked. on may 2nd, 2016, i opened it up again, and others + jumped in; ~sanqui, ~karlen, ~varscite, ~vilmibm, ~insom, ~marcus, ~nossidge, + ~jumblesale, ~krowbar. others trickled in; people sent me crash reports, + wrote to me about mysterious behaviors, lamented about broken settings when i + pushed code updates, shared with me how this fulfilled their nostalgia for an + experience that i personally never had, complained about lacking features + they wanted, yelled with delight about the interface, filled it with feelings + they didn't know how to express. + + it's now december 4th, 2016, and there are 42 users on ttbp. some of them + have never posted, many of them i've never spoken to. there are 581 entries, + which is an average of almost 14 entries per user, and a little over two and + a half entries per day. it now takes 11 seconds to load the global feed + because i implemented it sloppily, thinking i'd handle scaling issues later. + + i've loved every second of this. i'm humbled and pleased and a little + terrified at the trust and appreciation and responsibility that's been given + to me in the past seven months. + +the backend: +lessons: +future work: