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

Happy Perfect Date!

via Life Is Such A Sweet Insanity. April 26, 2024

Design Systems Smashing Magazine Discussion, April 2024

I had a fantastic time chatting with a group of design system wizards,  Nathan Curtis and Ben Callahan. Geoff Graham did a great job facilitating the conversation, and we covered a lot of ground!

via Blog – Brad Frost April 25, 2024

Pluralistic: Antitrust is a labor issue (25 Apr 2024)

Today's links Antitrust is a labor issue: Banning noncompetes is huge, but it's not all the FTC is doing! Hey look at this: Delights to delectate. This day in history: 2009, 2014, 2019, 2023 Upcoming appearances: Where to find me. Recent appearanc…

via Pluralistic: Daily links from Cory Doctorow April 25, 2024

Generated by openring