If you run mysqldump --all-databases you get one monolithic file which can be a pain when trying to restore one database. So it's nice to call mysqldump dbname so you get individual database backup files. To call mysqldump for each database requires that you either...
Wordpress
Locally hosted Piwik a replacement for Google Analytics
Looking at this article on Slashdot led me to an open source version of Google Analytics namely Piwik. Installation of Piwik is very easy and It has a Wordpress Module, WP-Piwik so integration into a WP blog isn't too difficult. Another benefit is you get a stats page...
Create a WordPress Page Tab that leads to a non WordPress URL
I have my Wordpress setup to display all the blog posts on the front page and the Wordpress "Pages" as tabs on the navigation at the top of the page. However I also would like the navigation to point to other non Wordpress areas of my domain and go straight there. For...
Migrating the WordPress MYSQL Database to a New Table Prefix the Hard Way.
So I have moved my domain to dreamhost.com Why? Got sick of my home computer being a VMWare Server. Couldn't reboot or upgrade when I wanted Computers are evil time suckers. Moving my website means I don't have to worry if it's up, down or sideways. dreamhost.com can...
WP-Highslide Plugin XHTML gotcha
I have the WP-Highslide plugin installed. When I attempt to validate my highslide enabled pages over at http://validator.w3.org/ I get: Line 231, Column 62: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del",...
Create a Favicon in GIMP and apply it to your WordPress Install
I have added a favicon.ico to this site. This is how I did it using GIMP. Open a picture in GIMP Image => Canvas Size (Change the canvas to be square) Unlink Width to Height Chain Increase the narrowest dimension (either width or height) to be the same as the widest...
WP-Syntax Plugin
I have been attempting to use the <pre> tag to simply copy and paste information into Wordpress but the result has been that it doesn't accept all the whitespace as being whitespace. Anyway I installed WP-Syntax plugin and attempted to insert some code and it...
IE7 Embedded Squirrelmail Login JavaScript Error
I have embedded my Squirrelmail login into the front of my wordpress blog by putting into the header.php the following function The default squirrelmail code uses the format document.forms[0]. this causes the code to see the first form on the page which may not be...
WordPress Exploit Appearing in Apache Logs
This appeared in my Apache logs this morning: //wp-content/plugins/mygallery/myfunctions ... rm%20-rf%20kk*?: 1 Time(s) Looking back through the logs the full request was: //wp-content/plugins/mygallery/myfunctions/mygallerybrowser.php?myPath=...
Getting around IE misrendering a title with forward slashes in it
On the recent posts menu I have a title: squirrelmail /usr/games/fortune is not found. Internet Explorer 7 somehow mis interpreted the forward slashes as HTML entities and I had a gap between the previous title and the "squirrelmail /usr/games/fortune is not found."...
Enlarge font for the <code> </code> tags
The font size for the <code> </code> tags was tiny using sumanasa.com's template so I did the following to improve the display. This was for firefox I don't know if it was bad in ie. Open style.css and add code { font-size: 9pt; }
Disabled comments bug on Sumanasa Design02 1.0 Theme by Sumanasa.com
Problem: Disabling comments causes right sidebar to start below left content section and to lose formatting Cause: comments-nice-bg and comments-nice divs are repeated cause the close tags to be in the wrong spot Resolution: Firstly make sure that your...
WordPress
This is what I like from an application untar and create a mysql db and then edit one file and you're away