Home - The Movie

"In 200.000 years on Earth, humanity has upset the balance of the planet, estabilished by nearly four billion years of evolution. The price to pay is high, but it's too late to be a pessimist: humanity has barely ten years to reverse the trend, become aware of the full extent of its spoliation of the Earth's riches and change its patterns of consumption.

By bringing us unique footage from over fifty countries, all seen from the air, by sharing with us his wonder and his concern, with this film Yann Arthus-Bertrand lays a foundation stone for the edifice that, together, we must rebuild."


The movie features beautiful cinematography. If for no other reason, then watch it just because it's a masterpiece in showing off the beauties of Earth. Smile

How to get a list of a user's (or channel's) public YouTube videos

The process is quite simple:
  1. Get an API key for the YouTube v3 Data API.
  2. Query the https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername={user_or_channel_name}&key={your_api_key} url and substitute the channel name and api key with the proper values.
  3. Query the https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId={playlist_id}&maxResults=50&key={your_api_key} url and substitute the playlist ID with the ID of the "uploads" playlist (fetched with the prev. query) and your API key. The result will contain max. 50 videos, but if it's so, there'll be a "nextPageToken" value that you can add to the URL in the "pageToken" parameter and request the next 50 videos, etc.

How to resume/continue file transfer over SSH/SCP

To recursively copy a directory's contents, continuing previously interrupted transfers, to/from a remote server via SSH/SCP, use rsync like this:
rsync --partial --progress -avz -e ssh <source> <destination>

where either <source> or <destination> can be a local path (eg. /directory/with/files/) or a remote path (eg. youruser@example.com:/new/directory/).

Touchpad vs. keyboard (typing) madness in Ubuntu

"A long time ago in a galaxy far, far away ..." there was a touchpad that would register touches/clicks even while the user was typing. Ubuntu has a setting to compensate for this: "System Settings / Mouse & Touchpad / Disable while typing". Unfortunately it does not work (at least in Ubuntu 14.04 / Trusty).

In Ubuntu 14.04 the "Disable while typing" in touchpad settings does not work

The problem is with the "-t" option for syndaemon. It messes with syndaemon's functionality. The solution is to uncheck the "Disable while typing" checkbox in System Settings (Mouse & Touchpad) and add your own syndaemon command in Startup Applications (eg. /usr/bin/syndaemon -i 1.0 -K -R -d).

Useful FFmpeg Commands

"FFmpeg is an extremely powerful and versatile command line tool for converting audio and video files. It is free and available for Windows, Mac and Linux machines. Whether you want to join two video files, extract the audio component from a video file, convert your video into an animated GIF, FFmpeg can do it all and even more."

How to speed up / slow down an audio stream with ffmpeg

Use the "atempo" filter:
ffmpeg -i input.mp4 -filter:a "atempo=0.5" -vn output.aac

How to change the framerate of an MP4 video without reencoding

I tried to find a solution for this question using ffmpeg, but had no luck. However the MP4Box method works like a charm.

How to concatenate multiple segments of the same video into a single file

Many video recorders (eg. GoPro cameras and many phones) split video files into 2 (or 4) GB pieces. To concatenate these pieces into a single file (without reencoding them), you can use ffmpeg's "concatenate" demuxer:
ls -1 G*0060.MP4 | sed -r "s/(.*)/file '\1'/g" > list.txt
ffmpeg -f concat -i list.txt -c copy GOPR0060.joined.MP4

TLS extension to support multiple certificates for virtualhosts

Server Name Indication (SNI) means that a compatible TLS client can send a hostname (aka. "server_name" field) in it's Client Hello message to the server indicating what virtualhost it wants to connect to and a compatible server can pick the right TLS certificate from it's configuration. This extension to the TLS standard aims to solve the SSL/TLS vs. single-IP virtualhosts problem.

Syndicate content Syndicate content