bloggingthumb

A blog of interesting things for which the Internet has little, or no, help.


Recently I was working on a web App that required some date comparisons in Javascript.  Developing with both Chrome and Firefox, everything looked fine and with a date of the form YYYY-MM-DD HH:MM:SS (for example 2017-08-21 14:00:03) everything worked fine using this line of code: var dd = new Date(device.last_modified); […]

Safari and Javascript Date format


I recently needed to extract a 30 second video clip, and remove the audio, from a 2 hour mkv video.  The easiest way was to use the command line tool ffmpeg as follows: ffmpeg -ss HH:MM:SS.FFF -i movie.mkv -t 00:30 -qscale 0 -an out.mp4 Where HH:MMSS:FFF was the starting time […]

Extract video clip using Ffmpeg