Here’s a quick and basic script for generating a sitemap XML file for robots to index your site:
At the top of your access file, next line after RewriteEngine On: RewriteRule ^(dir_name|file_name\.extension|and_so_on) – [L]
Open the .odt file in a zip extractor like 7-Zip – you should find a folder with all the images in. Here’s where I got the details from.
1) Load the “latest” CND jquery. 2) Add a local fall-back version.
Thanks to Tom Henningam for documenting these options. I’ve only tried the first one and it worked fine. Should work from a bash shell.
Thanks to Jon Bishop for this one:
One way to test is to use cURL to get a HTTP response. It’s quick because you don’t need to return the body of the file – just the head – using CURLOPT_NOBODY. The second way is to try PHP fopen on the remote file. For this to be a valid test you need to… Read more »
On a webserver you might want the path of the current directory (the directory the script is running from) but as a relative path not absolute. Relative, eg: Absolute, eg: Try this: NB: __DIR__ is PHP 5.3 or greater. For PHP < 5.3 use dirname(__FILE__);
Here are the SQL queries to update a WordPress database from one domain to another: # define var for old site SET @old_path = ‘http://oldsite.com’; # set var for new site SET @new_path = ‘http://newsite.com’; UPDATE wp_options SET option_value = replace( option_value, @old_path, @new_path ) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts… Read more »
Here’s where to look: http://ottopress.com/2009/wordpress-settings-api-tutorial/
Problem: The dropdown ULs are positioned behind the content instead of on top of it, which is also causing it to ‘disappear’ when you try to move the mouse onto it. Answer: See http://jonathanstegall.com/2009/01/15/ie-z-index-bug-with-css-dropdown-menu/
If you want opacity to work in IE versions < 9, the order should be: -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; // first! filter: alpha(opacity=0); // second! The first line is for IE8, the second for IE5-7. Link: http://www.quirksmode.org/css/opacity.html
Sass and Less allow you to be more programmatic about your CSS by introducing variable, conditional operators and basic if-for-each logic (Sass only for the latter, at the moment anyway.) I had a few problems setting up Sass on my PC, but that was more to do with me rushing without reading. I’m sure no… Read more »