|
You are here |
makandracards.com | ||
| | | | |
goodenough.us
|
|
| | | | | We're building some software where we'd like to display avatars for email contacts even if they aren't users of our software. While Gravatar is a relic of Web 2.0, we've found that there are still a significant number of people who have their email addresses in that system. Here's how I streamlined displaying an avatar for an email address if it exists in the Gravatar system. | |
| | | | |
tenderlovemaking.com
|
|
| | | | | TL;DR: Rack API is poor when you consider streaming response bodies. class FooApplication class ErbPage def to_a head = "the head tag" sleep(2) body = "the body tag" sleep(2) [head, body] end end def call(env) [200, {}, ErbPage.new.to_a] end end class FakeRack def serve(application) status, headers, body = application.call({}) p :status => status p :headers => headers body.each do |string| p string end body.close if body.respond_to?(:close) end end app = FooApplication.new rack = FakeRack.new rack.serve app $ time ruby foo.rb {:status=>200} {:headers=>{}} "the head tag" "the body tag" real 0m4.008s user 0m0.003s sys 0m0.003s class ResponseTimer def initialize(app) @app = app end def call(env) now = Time.now status, headers, body = @app.call(env) headers['X-R... | |
| | | | |
rkrishnan.org
|
|
| | | | | Posted on 2023-09-26 Motivation A friend of mine wanted some help in creating a mirror of his blog hosted on Blogspot for archival. It has been fed into archive.org but he observed that sometimes, certain images are not shown in the archive.org snapshot. The blog has been running for a long long time. Blogspot was a good choice at that time. Blogspot provides a way to download the blog as an xml. However, the images are just links to the image hosting site. This is not idea for anyone who wants to make a... | |
| | | | |
www.latinorebels.com
|
|
| | | Host Julio Ricardo Varela is joined by Futuro Media editorial director Fernanda Santos for a roundtable discussion with Dr. Aria Halliday, an associate professor of gender and women's studies at the University of Kentucky, for a breakdown of the legacy of Black Barbie. | ||