unrelenting.technology

Hi! You are viewing the archive of unrelenting.technology. This website is no longer updated, my current one is val.packett.cool. Check it out instead :)

Notes

Any sufficiently complicated network RPC API contains an ad hoc informally-specified bug-ridden implementation of HTTP/REST semantics.

That’s what the hipsters call β€œSmalltalk inspired” nowadays…

nil.empty?  # NoMethodError: undefined method `empty?' for nil:NilClass

In Objective-C, any message to nil returns nil. In Ruby? Exception :-(

Webmention endpoint discovery in Haskell. Probably the best function ever written :-)

This is how I search for it in HTML.

listToMaybe $ unsafePerformIO $ runX $ htmlDoc //> hasAttrValue "rel" isWebmentionRel >>> getAttrValue "href"

Why unsafePerformIO? Because there’s no reason for HTML parsing to depend on IO, but they’ve implemented parsing strings as parsing files with the string protocol.

So, notes on my website should be automatically posted on App.net and Twitter. Also, webmentions should be sent & webfinger works.

P.S. OAuth 1.0 is awful.