Writing
On putting AI into production, agentic development, and building software end to end. Shorter notes live in my slip-box. Subscribe with RSS.
Archive (2016–2020)
From my old blog. Kept for the record; some details are dated.
· rails
Rails Route Globbing
Wildcard segments in Rails routes, and using a globbed route as a catch-all.
· elixir
Include Arbitrary Files in an Elixir Project
Shipping files in priv/ with an Elixir app, and the module-attribute workaround for escripts.
· sql
Correlated to Complete: A SQL Subquery Refactor
Refactoring a correlated subquery into a join on a complete subquery, measured with EXPLAIN.
· ruby
Scope the Monkey: Refinements in Ruby
Limiting the reach of monkey patches with Ruby refinements, plus a couple of gotchas.
· emacs, spacemacs
YASnippet Template System for Emacs
Generating Angular boilerplate in Emacs with YASnippet tabstops, mirrors and transformations.
· angular
Setting Default Headers in Angular
Setting static and dynamic default request headers in Angular 4 by extending BaseRequestOptions.
· elixir
Concurrent Processes in Elixir
A first, tiny taste of BEAM concurrency: spawning processes and sending messages in IEx.
· rails
Rails Authenticity Token and Mobile Safari
Why Mobile Safari triggered InvalidAuthenticityToken errors in a Rails app, and the Cache-Control fix.
· ruby
What Can Daru Do For You?
Data frames in Ruby with the Daru gem: vectors, rolling means, lags and joins.