All Stories

Enabling Hardware accelerated video decoding or GPU activity in electron app for Linux

As chrome or chromium browser does not support hardware accelerated video decoding for Linux OS. Though there is a pending PR in chromium repository to merge but google has no...

How to run any process on single core or set CPU affinity in Linux

Linux user can set or retrieve a process’s CPU affinity from terminal. If you want to limit some process/program to only user single or more core then task-set can do...

Best way to get the current date and time in JavaScript

If you are working with date and times then here are the best way to get dates and time with JS.

Best way to get the full URL or query string of current page in JavaScript.

Handling URL in javascript can be easy if you know following methods.

Best way to check if an element is hidden or visible in JavaScript

If you are having hard time to figure out if element in hidden in Dom then here are the best way to check if an element is hidden or visible...

What is web workers & it's implements in JavaScript?

Web workers is API in JavaScript which enables JavaScript code to run on background. In simple word, it is a piece of code which will execute in background as separate...