How to convert an SVG image to PNG on a MacOS using QuickLook
I needed a high quality PNG version of an SVG logo for a ScreenFlow movie because ScreenFlow doesn’t support SVG graphics.
deliver. iterate. repeat.
I needed a high quality PNG version of an SVG logo for a ScreenFlow movie because ScreenFlow doesn’t support SVG graphics.
Lazy loading charts in Grafana 6.2+ is very cool - only rendering items as required is a saving which in most cases is helpful.
A while back, on Stack Overflow someone asked how to access SharePoint List items from the Microsoft Graph - this is my answer.
On updating my macOS 10.13.6, I just got a black screen with the mouse visible. No amount of restarting and retrying would fix it.
I recently noticed some old presentations that I’d not put online. The first comes from IBM Connect in February of this year.
Filed under note to self as I keep forgetting this. Here’s a very simple way to pretty print a com.fasterxml.jackson.databind.JsonNode
:
Looping through arrays is easy:
The simplest way to create custom error pages is to edit the files at /application/views/errors/html/error_*.php
such as error_404.php
(for 404s), error_db.php
(for database errors) and error_general.php
(for most other errors).
A reminder for when you really want to destroy a whole bunch of stuff...
Find out what tags you have locally:
david$ git tag
v1.0.0
v1.0.1
v1.1.0
Delete them all:
david$ git tag -d v1.0.0 v1.0.1 v1.1.0
Push all those deletes to the remote system:
david$ git push origin :refs/tags/v1.0.0 :refs/tags/v1.0.1 :refs/tags/v1.1.0
That's it. Destruction complete.
Sometimes I need to concatenate several mp4 files together. ffmpeg is a good tool for this job.
On OSX, it's easy to install using Homebrew:
brew install ffmpeg
If you have MP4 files, these could be losslessly concatenated by first transcoding them to mpeg transport streams.
Source – https://trac.ffmpeg.org/wiki/Concatenate
Say we have 2 mp4 files to concatenate or join together, first we transcode each of these into an intermediate format:
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
After that we can concatenate these together using the following:
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
For more files, just pipe separate the additional files here:
"concat:intermediate1.ts|intermediate2.ts"