Author: Kavit


Update the publically published NPM package

Once you have made your changes in the local repository, npm version update_type where update_type is one of the semantic versioning release types, patch, minor, or major. npm publish Note: If this local repository...


How to cut/edit/trim videos in vlc on mac?

Follow three simple steps to trim a video in vlc : 1) Set the default directory location where you want to store the trimmed video by going to Go to VLC Preferences —> Input...


error: pathspec did not match any file(s) known to git

Have you encountered the following error while checking out a branch. error: pathspec ‘foo’ did not match any file(s) known to git. Solution: git fetch It will synchronizes your local repository with the remote...


Selenium and xpath – locate an element using class attribute

Issue : Locate the following element using its Class. <div class=”globalContainer”> <div> … </div> </div> Resolution : You can write the following query in the browser console. $x(//div[@class=”globalContainer”]) Further Reading xPath locator Practical Examples