#dev
How to: Web server with nginx and Raspberry Pi
to do :)
all the things i am trying to do would be so much easier than what i am doing now if i just had the hypothetical server that i talk about building.
like, self-hosting my database for one (obviously). but also, if i had my own email server running it would be more simple to implement my mobile posting solution. and there are others, i am sure, but i would need to think about it more.
i mean ya i brought the raspb pi out of storage, however!! inb4 this xkcd:

i hope this enforces url consistency
If this works...
...then I will have posted to my database from my posting GUI. Well, both my prod and local backup database. Database? Databases?
Just ported all my .md files into my SQL database by hand. And, well, I guess after I finish using the GUI to make this post, then I have to do it for this post, too.
Then, back to database integration on the blog.
Database Integration Blues
I know that I am smart enough or competent enough to be attempting things that someone with my raw software-dev skills might not even attempt. Database integration with this blog is one of those things. Like, how do I connect a PostgresSQL server to my next develpment on localhost? Do I need to integrate Supabase and Prisma to Vercel?
But where someone like a new grad SDE would have a manager to help with upskilling, I am trying to learn from documentation that was probably intended for those with a more well-equipt toolbox. It's like trying to learn from a journal article instead of from a textbook!
Adding Mobile Layout Functionality
Come back to this 🤪
Markdown-to-HTML woes
Sigh, it looks like whatever I am doing here puts each block of markdown text inside of a
<p>tag. Which, fair enough. It just looks bad to have the extra linebreak between the content, and both the title (if it exists) and date/permalink.Ok, but the chain of events to post this is so cool to me
I made a menu bar shortcut on my computer, that ran the shell script I wrote, to run the posting GUI I made with Python, that makes posts, and the posts go on my blog. And I wrote all the code for the blog itself, too. Like, I'm really proud of it.
Idea for tweet-like text-only mobile upload: use iPhone to run SSH script that lives on raspberry pi that can push to github. What are the security issues with that? Research later
How To: Run a Script Over SSH on iPhone
Write this later :)
So, the iPhone can natively run scripts over SSH...
I was poking around in the Shortcuts app this morning lazily in bed and discovered that the capacity for this already exists. Probably -- if I eventually get this blog hosted on either Travis's or my raspberry pi -- I can simply ("simply" lol) run this write-post.py whenever I want to blog. And there is the mobile solution that I was trying to dream up!
How I Built This (unfortunately not ft. Guy Raz)
I guess it is a feature of each person's blog that they have a post in which that person details how the building blocks of their blog were put into place.
Feature I don't have:
- Readmore option on pages (eh, a trade off between long posts like these and the format I wanted)
- Separate types of posts
