I was recently working on a program that needed to get the duration of MP4 files and I really didn't want to call an external program like ffprobe and parse the output. The code as it's currently standing is below, but maybe the information along side it may be more useful. Now, this code isn't 100% accurate and I coded it only for speed, lower IO usage and the videos I had to parse all were encoded under the same conditions.
When developing a site, it's usually best to work on it on a local sandbox (development) server. This will allow you to quickly test the site without having to upload the files. Also, when working on a sandbox server, you have full control of the software that is running. This lets you test the code on various platforms, servers, PHP versions, and all sorts of other stuff.
I have once again started using Linux while working away from my main office. And it seems that every time I start using Linux after a break, I come across an issue that I have to resolve. I shouldn't really complain though since it does give me something to write about. This time was a fairly odd issue with a very simple fix. Whenever I would plug in my flash drive or external media (such as a hard drive), my operating system would mount normally and show the Desktop icon, but the flashdrive appeared twice under "Devices." For me, I see the "Devices" when looking at folders on the side pane.
Today while working I was watching the Microsoft Press Conference and all of the normal things were announced, such as Windows 10 updates, various integration with Xbox One and Windows and the Windows Surface Hub which is a TV like device for conference rooms. But what really got my attention was the Windows HoloLens. It will probably be compared to Google Glass or various VR headsets that are already released, but it actually a lot different from what I can tell.