An interesting approach to testing web services: A logical way to test online software.
Category Archives: Web
Firefox 88
A new version of Firefox released: Firefox 88.
HTML5 Tips
Today via r/programming: HTML5 Tips. I think my favourite was the meter tag… or maybe the spellcheck attribute… lots of good tips over there.
CSS Tips
This on r/programming today: CSS Tips. There are a lot of good tricks in there, this one was my fav:
.center {
display: flex;
align-items: center;
justify-content: center;
}
…it centres content vertically and horizontally.
Tools for Auditing CSS
Some good tools and techniques listed over one Tools for Auditing CSS.
Font size is useless; let’s fix it
This on r/programming today: Font size is useless; let’s fix it. Interesting article, but I didn’t read it closely.
Charts.css
Kickass: Charts.css. Also of interest: Which color scale to use when visualizing data.
PHP finally blocks not run on exit
I confirmed with the following code that if you call ‘exit’ withing a ‘try’ block the ‘finally’ block does *not* execute. That’s probably what you would expect. But now we know.
register_shutdown_function( 'handle_shutdown' );
try {
exit;
}
catch ( Exception $ex ) {
echo "caught...\n";
}
finally {
echo "finally...\n";
}
function handle_shutdown() {
echo "shutdown...\n";
}
Enabling XDebug for PHP under Apache2
Putting these settings in /etc/php/7.2/apache/php.ini did the job:
[XDebug]
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = /tmp/xdebug
xdebug.profiler_output_name = cachegrind.out.%p.%u.%H.%R.xt
The cachegrind files are now written to /tmp/xdebug.
CSS property usage
This popped up on lobsters today: Chrome Platform Status: CSS usage. It’s a report on the prevalence of CSS properties as found in the wild. It’s interesting. I was surprised by some things. e.g. ‘display’ and ‘position’ are more prevalent than ‘padding’ and ‘margin’.