Hugo is a blazing fast static site generator with a great
architecture for managing content. However asset pipeline à la
Middleman or Jekyll is something I have
been missing especially for generating images with cache busting hashes in
I solved that by configuring Webpack for something similar.
This is an update to earlier post where MessagePack body
was parsed to controller params using Rack middleware. That approach
relied on ActionDispatch::ParamsParser which got deprecated in 5.1 while
custom mime type params parsing got simpler.
During holidays I finished book CSS Secrets by Lea Verou. I think its the best CSS book I have encountered. It presents 47 everyday design problems with well thought out alternative solutions using latest CSS features.
First chapter gives short introduction on how CSS standards are formed and presents some best practices for writing CSS. That introduction chapter itself changed the way how I have been thinking the DRY principle regarding CSS.
Update ActionDispatch::ParamsParser has been deprecated in Rails 5.0.
Below solution works for Rails versions before 5.1 where ActionDispatch::ParamsParser got removed.
Checkout this post for similar implementation in current Rails versions.
Recently I had to develop Ruby on Rails app which would handle MessagePack formatted request bodies as well as JSON. By default Rails makes parsed JSON available at the params object, and I wanted MessagePack content to be handled just like that.
Lately I have been pushing to a couple git repository over https instead of
usual git+ssh and the workflow felt a little bit tedious because by default git
asks for http auth credentials before every action.
Fortunately I stumbled upon gitcredentials which allows git to
use gnome-keyring among other possible storages.
I’m using Disqus commenting service for both my blogs, which
has been great. However the Finnish one lies under
IDNA domain name (niemelä.fi) and that has been
causing some problems. I noticed that some of the comments were
missing and that seemed to depend on which web browser was used.