How to Auto Publish WordPress Posts to social websites using jetpack publicize

Publishing blog posts on social media will help you to promote your blog content or landing page, increase traffic to your website, and reap the SEO benefits of being active on social media.

With Jetpack plugin, one can publish a message to all of your social media channels at once to save time.

Step 1: Logon to admin panel of you wordpress blog and go to Jetpack settings.

Step 2: Go to Sharing tab of Jetpack plugin screen and click on connect you social media account link. This will take you to wordpress website. Continue reading “How to Auto Publish WordPress Posts to social websites using jetpack publicize”

listing of node modules

Sometimes, it is useful to see the list of packages that you have installed on your system. You can do that with the following commands:

# list all installed modules with dependencies

# list all installed modules without dependencies

# list all installed globally dependencies

 

How to create Node js project

npm init is the command to create a node project.

npm init is a tool for creating (or modifying) a project’s package.json file.

When you enter the command npm init on your terminal, it will take you through a series of questions, for which, you can either go with default answers or can give different answers.

This is how it looks like in my terminal, after running npm init command. Continue reading “How to create Node js project”

Net Neutrality Matters

Have you watched the Aircel and MTS advertisements?

If not, watch it now. Listen carefully. At the end of both the advertisements, it says Free Facebook and Whatsapp or Free Whatsapp and Viber.

I always wondered, why they have to specifically mention Facebook and whatsapp are free, when they are actually free.

Now I know the answer.

Net Neutrality Matters.

If you wonder, what is net neutrality, why it is important read the following articles carefully, and do something.

Continue reading “Net Neutrality Matters”

callback

Unlike many other programming languages, JavaScript enables you to freely pass functions around to be executed at a later time. A callback is a function that is passed as an argument to another function and is executed after its parent function has completed. Callbacks are special because they patiently wait to execute until their parent finishes. Meanwhile, the browser can be executing other functions or doing all sorts of other work.
A definition taken from jquery website

Reference: Michael Vollmer

One should also understand about callback hell

conversion of px to em, % and pt

JSFIDDLE: http://jsfiddle.net/jnelsonin/ctfy158o/

This simple formula will help you to convert a px value in CSS to corresponding em, % and pt.

consider we have a pixel value of 8. Based on the above formula,

pt = (8 * 3) / 4 = 6pt

em = 8 / 12 = 0.5em

% = 0.5 * 100 = 50%