I'd like to see a Sunday news show that never invited people from the following categories: members of Congress, people who work in the current administration, reporters who cover politics, celebrities with political opinions. There might be other exclusions. But I am fed up with all the self-serving lies. I couldn't bring myself to listen to a single political podcast this Sunday. #
I'd like to try What The Fox, a fictional web browser that reverses the strategies of Mozilla, Google and the EFF. For example, instead of complaining about HTTP sites, it would complain about HTTPS sites as being a silly waste of resources. Instead of making it virtually impossible to see the source of an RSS feed, it would make everything but RSS feeds virtually impossible to see the source of. Or maybe it would show the source of everything by default, and make it virtually impossible to see the rendered HTML. That might impact the usefulness of the web however, so should possibly be reconsidered.#
Can we use a GitHub repo as if it were an Amazon S3 bucket? It seems the answer is yes. The two are remarkably similar. Here's the writeup.. #
Long-term readers of this site know that I like Amazon S3 for storing public-facing web sites, and for object storage for web apps. I have support for S3 baked into a lot of my projects. I like it because it performs well, is inexpensive, and they worry about keeping the server running, so I don't have to. The more I can offload the more I can create and manage.#
So, when I did the Public Folder project, without even thinking, I used S3 as the place where the publicly-accessible content was stored. Andrew Shell wrote to ask if I had considered using GitHub as the public-facing store. I didn't even understand what he meant. He said that GitHub does what S3 does. Think of a respository as a bucket. We usually use it for storing program code and maybe some HTML and JSON, which also happens to be what we use S3 for. (Can you store an MP3 there? Yes. Verified.)#
So I put it on my to-do list, and finally got around to it this weekend. I wanted to see if I could write to a repo directly from a Node app using their API. According to the docs, you should be able to. #
A couple of days later, I have something working, a test app to see how reliable the connection is. Every night at midnight it uploads the previous day's Scripting News to the blog folder in the Scripting-News repo. It seems to work. I'm going to leave it running and come back to it after a time, to see if it's a dependable way to store and serve content. In the meantime, if you want to build something that uses this data, please do. That would be one of the reasons to use GitHub for this kind of application. #
I started a thread on the repo, seems appropriate, if there are questions, comments. I also explain what the data is that we're storing in the blog folder. Could prove useful if you want to do some experiments. #
PS: There are limits on file size and total size of a repository. #