Fast random post in WordPress (with Apache’s help)

In this tutorial, I’m going to walk through how to use mod_rewrite‘s RewriteMap directive to redirect to a random WordPress post any time a visitor visits a specific URL, in this case /random. This technique is very fast, requires no PHP overhead beyond that which is normally needed to serve pages from WordPress, so it should be compatible with any caching methods being employed within WordPress. If you are using an upstream cache, like Varnish, you’ll need to exclude the URL you set up in the rewrite. Continue reading “Fast random post in WordPress (with Apache’s help)”

How to convert videos for the VTech Innotab 3 on Mac and Linux via the terminal

Innotab 3 Photo

I picked up an Innotab 3 for my son’s 3rd birthday, and one of the selling points for this, aside from being a rugged (hopefully) kid-proof tablet, was that I could encode his favorite movies and put them on there for him. A Google search yielded tons of how-to videos on this subject, but the problem with them all is that they’re either not free, only for Windows, or some convoluted single-purpose bloatware. That being said, I took it upon myself to solve the problem. Continue reading “How to convert videos for the VTech Innotab 3 on Mac and Linux via the terminal”