I found good tutorial to install the gearman for ubuntu here, At the last I got the following error, I don’t found a fix, still I downgrade the gearman version and it works PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20090626+lfs/gearman.so’ – /usr/lib/php5/20090626+lfs/gearman.so: cannot open shared object file: No such file or directory […]Read more..
To select the p tag that contains image we use $(‘p:has(img)’) jquery selector. There is no hasnot function in jquery. But using jquery .not function we can do that. $(‘p:not(:has(img))’);Read more..
$(‘p:has(img)’) will select the p tags that has image inside it. Now think you want to add another condition to select p tags that contains iframe. It’s also very simple :has supports comma selection. $(‘p:has(img,iframe)’)Read more..
Using jquery function wrap, we can create the div wrapper over p tag. But we expecting to create the wrap for group of p tags. So wrapAll function is the most useful function to do the task. Example: Lorem.. Lorem.. Lorem.. $(‘p’).wrapAll(”); Result: Lorem.. Lorem.. Lorem..Read more..
Tweet button is not working after ajax request, To reload the tweet button after ajax call. We need to call this function in callback function twttr.widgets.load().Read more..