Last year (2018) I began to work on a new way for people to run ads on their sites called Ads From Source. My main ambition behind the project was to build a privacy friendly, reasonable, yet still functional ad mechanism. The intended target were people who are privacy conscious and wanted to offer their service, blog, etc. for free; made possible by ads.
Almost four years ago I started this blog to share my journey, but aside from a few technical posts that didn’t quite pan out. Until recently I wasn’t really aware why that is, why it is so difficult for me to share my ideas. Now I think I know why and can take steps to improve.
By default the Elixir Phoenix path helpers use the
:id key. For example:
property_path(conn, :show, property) would turn into
/properties/1. If you want to use a different key inside the property use the
Phoenix.Param protocol in the
So today I was trying to get SSL working on my machine with localhost. In the process I set the HSTS headers, telling the browser to never access the non-secure
http:// version of localhost. Thus going to
http://localhost:4000 would always fail as HSTS tells the browser to only access
Lets say we have several rooms, and every room has reservations. We do not want the reservations to overlap, ever. Here’s how we add that check to a table in PostgreSQL.
When we consume food our body tries its best to extract everything in it to keep us going. Not everything gets used of course. There are limits to how much of a particular compound our body can process — or even needs on a day to day basis. The leftover leaves us as waste down the toilet and that’s it.
Over the last decade there has been a rise in everyday tools fighting for our constant attention. Smartphones gaining widespread use have been big enablers of this.
iOS 11 introduced large navigation bar titles. They look great and you should use them on main views. When you use large titles on a
UITableViewController everything works as expected. On scroll the large title hides with a nice animation and returns to a normal smaller one.
Apple only provides UITextField for inputs which always returns a string. You can define a keyboard layout (decimal pad in my case) but that is where support for numeric inputs in iOS ends.