Mercurial log with one-liners

You can use hg log with a –template option, e.g.: hg log –template ‘{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n’ This should show something like this (example from the GNU Emacs trunk I converted locally to an hg repository): $ hg log –limit 5 –template ‘{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n’ 36ab2e3f8ebd | 2010-09-08 16:54:00 +0200 … Read more

Business rule validators and command handler in CQRS

It’s important to know that commands can be rejected after they are sent to the handler. At the very least, you could encounter a concurrency violation that cannot be detected until the aggregate root is touched. But also, the validation that can occur outside of the entity is simple validation. Not only string lengths, numeric … Read more

Clear Heroku logs (command)

heroku restart will clear logs – although if you’re running in production you may not want to do this on a whim 😀 Other than that you can use the advanced logging addon (Syslog drains), which gives you the ability to clear the logs: deprecated heroku logs:drains clear Update 2019/08/07 heroku drains More info: http://devcenter.heroku.com/articles/logging