How to uninstall npm packages?

To uninstall a npm package we use the npm uninstall command.


npm uninstall [<@scope>/]<package>[@<version>]

To uninstall a globally installed package we need to use the -g or –global option:


npm uninstall -g [<@scope>/]<package>[@<version>]

Continue reading »

What is HSRP (High Security Registration Plate) and Colored Coded Sticker? How and from where to buy them? Complete Details here.

HSRP and Color Code sticker have been in talks and news for a long time now. In this article, we have tried to put down all the information together so that it helps someone who is still looking for it.

  • Why am I being asked to change my vehicle number plate?
  • How does it benifit me?
  • From where can I buy it and how much I will have pay?

These are some of the questions that pop up in mind. We will try to answer all these.

Continue reading »

How to print multiple files at once?

In this article, we will tell you how you can print multiple files at once in Windows 10. We will not ask you to install any new software but use the out of box functionality available in Windows 10.

You need to remember 2 points before you proceed to print files:

  • File types like .exe, .mp3, .mp4, .mov, .zip are not printable, the can be called non-paper friendly.
  • File of same type can only be together. That’s means you can print all .jpg files or .docx together but cannot select .jpg file along with .docx to print.

Continue reading »

FASTag mandatory in INDIA. Let’s understand FASTag, how to get it, activate & recharge, it’s benefits – all that you need to know.

FASTag

FASTag is a device affixed on the windscreen of the vehicle which enables automatic electronic payment of toll charges at National Highways directly from the customers linked prepaid or savings/current account. FASTag uses Radio Frequency Identification (RFID) technology for carrying out the transactions at toll plazas.

FASTag is a part of National Electronic Toll Collection (NETC) program developed by National Payments Corporation of India (NPCI). Currently the program is live on 600+ toll plazas across the country.

Continue reading »

How to Link PAN Card to Aadhaar Card

The Government of INDIA has made it a mandate to link your PAN card to your Aadhaar card. In case you do not link your PAN with your Aadhaar, then your PAN will become ‘inoperative’.

In order to do the linking, your ‘name’, ‘gender’ and ‘date of birth’ should match in both the documents else you can get them rectified before linking. However, in case of minor mismatch of name, you will get One Time Password (Aadhaar OTP) on your mobile registered with Aadhaar.

You can link your PAN card to your Aadhaar:

  • Through income tax e-filing website
  • By sending a SMS to either 567678 or 56161

Continue reading »

How to find the latest stable npm version and upgrade npm?

In order to find the npm latest stable version, you need to visit the npm documentation web page and check the footer.

Earlier it used to mention the version number in footer but now it provides a link to the GitHub hosted repository https://github.com/npm/cli/releases/latest; so, you can directly check go to this link and check the latest stable npm version available.

Continue reading »

Should I install npm package locally or globally?

If I am beginner with npm, then this question will definitely come to my mind. To get an answer to this, you should ask the following questions to yourself:

  • How will I use the installed npm package?
  • Will I use it as a dependency in my module or will I use it as a command line tool?

 

Install locally

 

If you are going to include the package (say “slick-carousel”) using statement like “require” in node.js and then use it in your module.


npm install <package_name>

Continue reading »

How to enable the MySQL slow query log

MySQL slow query log can be to used to determine queries that take a longer time to execute in order to optimize them. The slow query log consists of SQL statements that took more than `long_query_time` seconds to execute, required at least `min_examined_row_limit` rows to be examined and fulfilled other criteria specified by the slow query log settings.

Before enabling the MySQL slow query log, we must decide criteria for SQL statements that will be logged and also select the location where they will be logged.

Continue reading »

How to fix WordPress 404 Error on saving a new post or updating a post?

I was working on a blog post and had written a part of it and saved it. After some days, I visited the post again to complete it but it would not save, clicking on “Save Draft” button displayed a 404 not found page.

I tried to edit the post with same new content multiple times but same 404 error. Then, since I already had some post content saved, I tried to save it again with no update; it worked. So, I started updating the post content in steps, it was working and content was saving.

Continue reading »

How to use cookies in JavaScript?

A Cookie is a piece of information that is stored locally on users browser and is sent with each HTTP request to the server. HTTP being a stateless protocol, cookies provide a mechanism by which we can remember user preferences and share information between web pages.

The cookies have a limit of 4KB thus when this limit is reached, you will likely be unable to create a new cookie. To make it more clear, size of all cookies under a specific domain cannot exceed 4KB.

Continue reading »

Back to top