explaining to my friends that i didn't build a blog (lame) but that i built a multi-user microblogging platform (believe it or not, even more lame)
Sure would be cool if DigitalOcean supported deployments from Codeberg...
implemented a couple of bugfixes this morning:
- bulleted lists should now render properly
- the previous fix introduced a minimum height to the body of a post, this has been fixed also
off to the real world ☕
look ma, no character limit!
Paul Krugman here dispels Trump's Venezuelan oil boondoggle: Venezuela's extra-heavy Orinoco crude is only worth extracting if the price per barrel rises above $80. Current business model for American producers requires oil to stay above $62. Trump allegedly wants oil to drop to $50 per barrel. Seeing a math problem? Stated more explicitly: how does a resource that costs $80 per barrel to extract get us to $50 per barrel? It doesn't: at best, Venezuelan oil must appear, from the American perspective as a hedge against high oil prices, for instance those seen during global conflict.
https://paulkrugman.substack.com/p/the-emperors-new-oil-wealth
¡hola mundo!
as of around 02:25 this morning, this microblog is LIVE. yes, this a place for me to post my thoughts on things, but it is also the test application for the authentication library i'm writing for the Scala/http4s ecosystem, Apollo (https://github.com/joshuakfarrar/apollo)! which, i can confirm here, appears to work kind of alright. i really like the scala programming language, i really don't like the open source tooling available in the scala ecosystem. unlike ruby or javascript, where there's a gem or an npm module for lots of things, especially commoditized workflows like user registration and authentication, Http4s really has no such solution. i imagine every http4s application that has auth has a custom-rolled auth implementation. having build one, i can say with confidence, understanding and trying to sort out issues with the default csrf middleware is enough to drive one mad.
anyway... features! or, at least, upcoming features for apollo:
Apollo
- consider migrating from jdbc to skunk
- to deploy more easily to this web host, i migrated from sql server, which i was using in development, to postgres
- so long as we provide the correct interfaces, it might not be an issue to use doobie for somethings and skunk for pg, but it might be annoying to maintain
- purpose of this story is to assess level of effort
- https://typelevel.org/skunk
- ability to roll apollo's migrations into your applications' migrations
- i'm looking at dumbo
- https://github.com/rolang/dumbo
- ability to roll apollo's Twirl templates into your application, so that your styles can be applied
- Maven
- i had to monorepo apollo-auth to get this microblogging platform built on the deployment server, i'd prefer to rely on maven instead, or figure out how to get maven to reference and build a dependency from github, e.g. i think gems can do this if you specify a github url to a gem
This Microblog
- link previews! image posts!
- better error handling!
- fediverse?
🎉
he-.. hello world?
hello pg
- user account creation "failed", never received e-mail but confirmation was created in the database
- manual confirmation from code in database succeeded
- password reset also does not send e-mail, there seems to be a mailgun issue of some kind
- the app still allows unverified users to log in?
- i think we still need a "resend verification e-mail" link
everything basically works
error handling could be a bit better, but flash messages will take a few hours to implement from apollo into this application and right now i'm the only person who will see them
also, i have no means by which to have apollo's forms share styling with the front-end, you get what it gives you, that's it
i'll have to do some research to re-familiarize myself with how devise handles this, i remember at least that it creates copies of templates then overrides the defaults with those from your application
link previews and image uploads are coming soon too, link previews will be first because although i'll have to write a fetcher and parse opengraph tags from html, they're easier to store than dealing with uploads and file storage
also todo is to set up a devops pipeline to... somewhere, i haven't decided yet
today the united states has illegally captured the leader of a sovereign foreign state
it has charged nicolás maduro with crimes that are beyond its jurisdiction to prosecute
it is abundantly clear that national sovereignty is contigent upon u.s. approval
which is not sovereignty at all, but the old logic of imperialism
i condemn the actions of the united states as wrong-headed, destabilizing, and nothing less than a robbery
permanent stability in latin america can only be achieved by meeting the human needs of the people who live there, not by the imposition of an extractive regime