Archive for the ‘programming’ Category
wp.com Stats Helper Plugin 0.5.5
Written by Vlad on October 5, 2008 – 2:35 pmThanks 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
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).
Tags: plugin, stats, wordpress
Posted in programming | No Comments »
stackoverflow launches
Written by Vlad on September 15, 2008 – 3:51 pmstackoverflow.com: Joel and Jeff’s latest project opens up to public today (public beta). It’s a Q&A forum for programmers with a strong accent on usability and community driven ranking.
Tags: forum, programming
Posted in programming | No Comments »
Slow InnoDB MySQL?
Written by Vlad on July 9, 2008 – 2:24 pmReinstalled 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:
Tags: innodb, mysql, optimization, performance
Posted in programming | No Comments »
Stats Helper Plugin 0.5.4 – Fixes for Post Title, URL, cache
Written by Vlad on June 12, 2008 – 9:25 pmI 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!
Tags: plugin, stats, wordpress
Posted in programming | 2 Comments »
Yahoo Maps Error: YAHOO.util.CustomEvent is not a constructor
Written by Vlad on May 28, 2008 – 4:21 pmUPDATE: 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!
Tags: error, javascript, maps, yahoo
Posted in programming | 5 Comments »


