Programming

woman using google on laptop

Different Types of Google Penalties

A high-ranking website? Yes, please!  But what if you’re hit with a Google penalty that’ll turn your webmaster dreams into a nightmare. Google penalties can affect any website that fails to follow Google guidelines. In addition, algorithmic penalties are caused by Google Panda or Penguin, while manual penalties can also reduce your website traffic significantly.

Different Types of Google Penalties Read More »

WordPress Cheat Sheets collection

Working on WordPress? And you want a quick way for reference, then choose one of the following cheatsheets, they are great & helpful. 1. WordPress Cheat Sheet by Andy Wibbels Download: http://andywibbels.com/files/WordPress_Cheatsheet_v1.pdf 2. WordPress Help Sheet by WPcandy.com Download: http://wpcandy.com/wp-content/uploads/WordPress-Help-Sheet.pdf 3. WordPress Ultimate Cheat Sheet by Andy Crofford Very beautiful with great infographic Download: http://www.testking.com/techking/infographics/the-ultimate-wordpress-cheatsheet-infographic/

WordPress Cheat Sheets collection Read More »

[cheerio] TypeError: Cannot read property ‘parent’ of undefined

A beautiful autumn day and my little app threw the error 🙂 var oldParent = node.parent || node.root, ^ TypeError: Cannot read property ‘parent’ of undefined at Function.exports.update (/home/kang/apps/nodecrawler/node_modules/cheerio/lib/parse.js:55:25) at module.exports (/home/kang/apps/nodecrawler/node_modules/cheerio/lib/parse.js:17:11) at Function.exports.load (/home/kang/apps/nodecrawler/node_modules/cheerio/lib/static.js:19:14) at Request._callback (/home/kang/apps/nodecrawler/app.js:46:29) at self.callback (/home/kang/apps/nodecrawler/node_modules/request/request.js:198:22) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at Request.onRequestError (/home/kang/apps/nodecrawler/node_modules/request/request.js:867:8) at emitOne (events.js:77:13) at ClientRequest.emit

[cheerio] TypeError: Cannot read property ‘parent’ of undefined Read More »

Search comma-separated list attribute using jQuery

I have an attribute that is comma-separated list, and I want to search for a particular value in that list example: <img id=”img1” src=”somepic.jpg” tags=”nature,flower,color”> SOLUTION Using jQuery, it’s simple to do, for example, I will search for the tag “nature” in the image var exists = $.inArray(“nature”, $(“#img1”).attr(“tags”).split(‘,’)) != -1;

Search comma-separated list attribute using jQuery Read More »

Get radio group value with Jquery

Assume you have one radio group name default_lang and you want to know which one is selected <input name=”default_lang” value=”en” type=”radio” /> <input name=”default_lang” value=”fr” type=”radio” /> <input name=”default_lang” value=”de” type=”radio” /> Well, it’s easy with jQuery var default_lang = $(‘input:radio[name=default_lang]:checked’).val();

Get radio group value with Jquery Read More »