This simple Automate flow plays custom alarm-like sound, when your phone receives a SMS message which contains “alarm” word in it.

It could be useful, when you want for example play custom alarm for specific server events. As it is SMS based, it will not require mobile data transfer turned on.

How to set it up? You will need Automate app to be installed on your phone. Then you can download and import the flow from here:
https://drive.google.com/file/d/1iKlIcS-Bs6I1ElPKeZkd0j9XPzrr1vyI/view?usp=sharing

or set it up yourself following the steps from this video:

 

Using ffmpeg to convert them to prores

DaVinci Resolve in a Free version doesn’t support importing media ecnoded with popular encoding format. You can find on the internet some solutions to this problem, but they need importing the files to one program then exporting etc… This takes a lot of time. The Coding Cat found a simple solution for this. Just use ffmpeg (avconv should work also) and use a command below:

ffmpeg -i YOURFILE.mp4 -c:v prores -profile:v 3 -c:a pcm_s16le converted.mov

Replace YOURFILE.mp4 with your file name, and you will need to have ffmpeg installed on your system.

After the process is completed, there will be a new file in “mov” format, that you can import into DaVinci Resolve

Convert all files in the directory

There is a command to convert all mp4, mts, mov files in the current directory. It doesn’t convert already converted files

find . -maxdepth 1 -type f \( -iname "*.mp4" -o -iname "*.mov" -o -iname "*.mts" \) ! -iname "*-conv.mov" -exec sh -c "[ ! -f {}-conv.mov ] && ffmpeg -i {} -c:v prores -profile:v 3 -c:a pcm_s16le {}-conv.mov" \;

Note: It was tested on Linux and Mac. Videos were from Sony A5000, Nikon P900 and GoPro 7

Temporarily, We Transfer Files

tmp.wtf which stands for Temporarily, We Transfer Files, is the Coding’s Cat new web app. If you want to just quickly share a few files with your friend, without registration etc. this service is for you. The files will be removed after seven days.

 

Get the source code

The second reason why the app was created is to show use case for the planeupload.com upload widget. The whole project was created in just a few hours and if you wan’t to get the source code (NodeJS), send an email on codingcatcodes@gmail.com

I’ve had some document that I couldn’t read on Android phone or iPad showing error because of read only mode, that the mobile devices could not handle. I wanted to read it on other devices than the PC, so I wrote a little ‘hack’  in JS.

Note 1: It was tested on Chrome Browser.

Note 2: It converts pages to jpg images. I think it could be done preserving text, but he didn’t have more time for this and jpg solution was sufficient.

Note 3: If you’re getting only part of the document visible, try zooming out your browser and then run the script.

Step by step:

  1. Open the document in Google Docs
  2. Scroll to the bottom of the document, so all the pages are present
  3. Open Developer Tools on separate window and choose the Console tab
  4. Paste the code below (and hit enter)
    let jspdf = document.createElement("script");
    
    jspdf.onload = function () {
    
        let pdf = new jsPDF();
        let elements = document.getElementsByTagName("img");
        for (let i in elements) {
            let img = elements[i];
            console.log("add img ", img);
            if (!/^blob:/.test(img.src)) {
                console.log("invalid src");
                continue;
            }
            let can = document.createElement('canvas');
            let con = can.getContext("2d");
            can.width = img.width;
            can.height = img.height;
            con.drawImage(img, 0, 0, img.width, img.height);
            let imgData = can.toDataURL("image/jpeg", 1.0);
            pdf.addImage(imgData, 'JPEG', 0, 0);
            pdf.addPage();
        }
    
        pdf.save("download.pdf");
    };
    
    jspdf.src = 'https'+'://'+'cdnjs'+'.cloudflare'+'.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js'; /* had to set it like this, because disqus was breaking the link.. */
    document.body.appendChild(jspdf);
    
  5. Now the PDF should be downloaded

What it does? It iterates trough the document checking for images (Google Drive stores pages as images) then writes it’s contents to a PDF.

Leave a comment if it works for you.