I realize that there’s already a lot of tutorials like this out there, but I recently needed to show a friend how to do a unique username check for a registration form via AJAX, so figured I’d share the results as it’s easier than you might think.
I recently had the need to programmatically activate and deactivate WordPress plugins from within a custom admin UI (theme). It took me quite a lot of digging to figure out exactly how, so I figured I’d share it here.
In developing an HTML5 offline app, a cache manifest is required in order to tell the app which files to cache. If a file changes, the manifest file needs to be changed as well. If a file is added, it needs to be added to the manifest. During the development process this can be quite a PITA.
Enter the dynamic cache manifest. Not only does this handle all the file adds/deletes, but it also handles changed files as it generates an MD5 hash of all files which it stores in the manifest file. So if the hash changes, the manifest changes.