MailCatcher is a Ruby gem that acts as a sendmail/postfix replacement and displays outgoing emails in a friendly web GUI. It is useful if you want to run someone else’s code and be sure of what emails are being sent.
Here’s how to use it with PHP and Laravel Homestead.
Continue reading “Installing MailCatcher in Laravel Homestead”
When sizing HTML table columns I used to use the colgroup and col tags to give a table column a specific width. I’ve learned this is not best practice with HTML5 although you will still see plenty of articles recommending this approach.
Continue reading “CSS table column width with HTML5”
If you’ve used my tyre fuel saving calculator you may want to find the best deal on tyres with good ratings for fuel efficiency (rolling resistance) and wet grip. I’ve looked at some of the most popular websites for the UK and rated them for the tyre search features they provide. Filtering for tyres that are run flat and have rim protectors were also important for me.
Continue reading “Best website to buy fuel efficient tyres”
You may want to add a default configuration file to Git so that if someone else picks up the code they only have to enter their particular details – however once you’ve configured it yourself you don’t want those changes tracked.
The solution is to use:
git update-index --assume-unchanged path/to/file
To check which files in your repo are marked in that way use:
git ls-files -v | grep ^[a-z]
If you need to set a default for a timestamp field and your server settings don’t allow the use of a zero timestamp (see my article on NO_ZERO_DATE) then the next best option is ‘1970-01-01 00:00:01’. I was trying to do this recently and the server was preventing the creation of a table Continue reading “MySQL minimum timestamp not allowed”