How to create a video from images with FFmpeg?

See the Create a video slideshow from images – FFmpeg If your video does not show the frames correctly If you encounter problems, such as the first image is skipped or only shows for one frame, then use the fps video filter instead of -r for the output framerate Alternatively the format video filter can be added to the filter chain … Read more

C++ identifier is undefined

Reducing to three lines (the other errors are analogous): While wall is defined, gallons is not. And where do you want to get gallons from anyway? The result is hidden deep inside another function. How do you want to get it out from there? Well, you need a return value: This way, you can use your function like this: Analogously for … Read more

Git and nasty “error: cannot lock existing info/refs fatal”

For me this worked (won’t change in remote): git remote prune origin Since this answer seems to help a lot of people, I dug a little bit into what actually happens here. What this will do is remove references to remote branches in the folder .git/refs/remotes/origin. So this will not affect your local branches and it … Read more

How to calculate a logistic sigmoid function in Python?

This should do it: And now you can test it by calling: Update: Note that the above was mainly intended as a straight one-to-one translation of the given expression into Python code. It is not tested or known to be a numerically sound implementation. If you know you need a very robust implementation, I’m sure there are … Read more

Custom Tumblr theme wont save because of non-https urls?

Just had the same problem. Tumblr updated their Encryption policies. If you’re a theme developer and you’d like to ensure your themes support HTTPS, make sure that any externally hosted resources, such as Cascading Style Sheets (CSS) or Javascript files, and even images, are served using HTTPS. As we now know that Tumblr requires that we … Read more