wp.com Stats Helper Plugin 0.5.5

Thanks to Michael Tyson I’m releasing a new version of the wordpress.com Stats Helper plugin. It fixes some display problems (especially evident since wp 2.6.2) and introduces some more options to the widgets, including the ability to hide the shameless promotion link :D

Well done, Mr. Mike Tyson!

Update:

Up goes 0.5.5.1, with a small fix for options handling. WordPress.org/extend takes a while to update, if you’re in hurry to test the new version you can use the SVN!

Updated (again):

Version 0.5.5.2 adds a default to $options['show'] (was causing a lot of grief among users).

Slow InnoDB MySQL?

Reinstalled MySQL (using InnoDB storage engine) and it’s slow? Most probably you forgot to set innodb_buffer_pool_size to a decent value (by default it’s very low).

For a primer on MySQL optimization make sure you check this presentation:

Read this document on Scribd: MySQL UC 2007: Innodb Performance Optimization

Stats Helper Plugin 0.5.4 – Fixes for Post Title, URL, cache

I updated the Stats Helper Plugin to version 0.5.4. It comes with two fixes:

  • Post titles and permalink/URL is read from the local WordPress database instead of using those reported by stats.wordpress.com (lately it’s been acting very strange).
  • Expired elements from the option-based cache are removed at each save (a cache too much was causing crashes on some installations).

I strongly recommend you update to this version!

Yahoo Maps Error: YAHOO.util.CustomEvent is not a constructor

UPDATE: Fixed by Yahoo!

Seems like someone messed up! Yahoo Maps’ AJAX API is broken and Firebug prints this lovely message:

YAHOO.util.CustomEvent is not a constructor

A quick workaround is to grab the output from”

http://api.maps.yahoo.com/ajaxymap?v=(version)&appid=(apikey)

and look for

http://in.maps.yahoo.com/js

Replace that with:

http://in.maps.yahoo.com/v(version)/aj

Then replace your call to the AJAX API:

<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=(version)&appid=(apikey)"></script>

with the modified output from that script:

<script type="text/javascript">
var YAHOO=window.YAHOO||{};
YAHOO.namespace=function(_1){
    if(!_1||!_1.length){ return null; }
    var _2=_1.split(".");
    var _3=YAHOO;
    for(var i=(_2[0]=="YAHOO")?1:0;i<_2.length;++i){
        _3[_2[i]]=_3[_2[i]]||{};
        _3=_3[_2[i]];
    }
    return _3;
};
YAHOO.namespace("util");
YAHOO.namespace("widget");
YAHOO.namespace("example");
var YMAPPID = "(apikey)";
function _ywjs(inc) { var o='<'+'script src="'+inc+'"'+' type="text/javascript"><'+'/script>'; document.write(o); }
_ywjs('http://in.maps.yahoo.com/v(version)/aj/y.js');
_ywjs('http://in.maps.yahoo.com/v(version)/aj/ymapapi.js?v=(full_version)');
_ywjs('http://in.maps.yahoo.com/v(version)/aj/ymic_4.js');
</script>

This is a temporary workaround, YAHOO! will probably fix this really soon!

PS: Remember to replace (apikey), (version) and (full_version) with the proper  values!