Lev Lazinskiy

Integrating Openring into this Blog

| programming | python | blogging |

I just did the jenkiest thing ever.

Openring is a cool little library written by Drew DeVault which allows you to add articles from feeds that you follow to your own blog. It’s kind of like a dynamic blog roll.

It was designed for static site generators, but since (for some reason) this blog is not statically generated, I was thinking of the best way to include it and came up with something that is either a horrible RCE waiting to happen, or a clever hack.

I set up a cron job to run openring every eight hours and pop the output to a file. Then in flask, I made a simple utility function to go find and read this file and insert it into a Jinja variable which is then rendered on every post page (look down at the bottom).

This allows readers to check out other interesting content and also has the added benefit of being fresh several times per day.

Articles from blogs I follow around the net

Pluralistic: Even if you think AI search could be good, it won't be good (15 May 2024)

Today's links Even if you think AI search could be good, it won't be good: It's just too goddamned easy to cheat. Hey look at this: Delights to delectate. This day in history: 2004, 2009, 2014, 2019, 2023 Upcoming appearances: Where to find me…

via Pluralistic: Daily links from Cory Doctorow May 15, 2024

My Podcast History

How I got started listening to podcasts

via Robb Knight • Posts • Atom Feed May 15, 2024

Managing Energy.

OriginalMacGuy Jim Eager wrote an excellent blog entry about Introverts (hi!) and their need to carefully manage their energy. You can read the blog post here....

via Life Is Such A Sweet Insanity. May 14, 2024

Generated by openring