Posts

  • WARDOGS: a mortar range calculator

    In WARDOGS the mortar and the artillery tank have no ballistics computer. You get a direction marker and a RNG dial, and it’s up to you to work out the range. You can guess and walk your shells onto the target, but every miss tells the enemy where your mortar is.

  • A little UI for the rails new command

    rails new is the first command you run on any Rails project — and also the one with the most flags nobody quite remembers. --skip--this, --css=-that, and the list keeps shifting between versions: --skip-solid, --skip-kamal and --skip-thruster are Rails 8.0; --skip-rubocop, --skip-brakeman and --skip-ci arrived in 7.2; --skip-docker and --database=trilogy in 7.1.

  • Car Plates In Poland

    Car Plates In Poland

  • Rubymine foreman run configuration

    New Rails apps with JS and CSS bundling need yarn watches to recompile assets during development. This is resolved by shipping with bin/dev script and a Procfile that installs and starts foreman.

  • Rails 7 Turbo Drive breaking change

    You might encounter it when upgrading to rails >= 7.

  • Setup Heroku app on naked domain with SSL using DNS registrar not supporting ALIAS record via Cloudflare

    Intro

    Apps hosted on Heroku does not have static IP addresses assigned to them so it is impossible to simply setup A type DNS record (it requires IP). Most DNS registrars does not allow setting CNAME (also called ALIAS) to root domain (also called naked domain). Cloudflare allows such setting using, as they call it, CNAME flattening. Another features of Cloudflare are protection against various attacks and caching.

  • Backup and restore data from server PostgreSQL using pg_dump and pg_restore

    Bunch of commands that will let you move data bettwen postgres instances.

subscribe via RSS