Posts

Featured Post

How to download Youtube, Vimeo video thumbnails?

Image
There are bunch of tools available to download thumbnails of youtube, vimeo sites which you could use for various purposes.
The favourite tool I use most of the time is youtube-thumbnial-grabber.com

Just head on to the site using above link. It could be some thing like this


Just paste the url in the input box and just click the Download Thumbnail Images button thats it. It will fetch for you all kinds of thumbnails of various sizes like this
As you can see in the above image you could download images of various size quality. If you are frequent user of downloading thumbnails there are chrome extension and firefox addon  which will help you. Using chrome extension is simple you just need to head over to the youtube video you need to download and click the extension, thats it it will take you to the above download page.

Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. Example : arr[] = {1,2,3,4,5} prod[] = {120, 60, 40, 30, 24 }

This one would be done using calculating the product of all numbers in an array and then dividing the current element value. Since it could also be done using log and exp without using any divide operation.

varproduct=input=> { letsum=input.reduce((acc, cval) => { returnacc+Math.log(cval); }, 0); letresult=input.map(x=> { returnMath.round(Math.exp(sum-Math.log(x))); }); console.log(result); }; product([1, 2, 3, 4, 5]);
If you know other way of solving this problem of O(n). Please discuss in comments section.

Find two numbers in an array whose sum is equal to k.

Find two numbers in an array whose sum is equal to k. There are multiple way to solve this problem
1. Find the elements using a brute force approach. Which is a costlier operation(O(n2). 2. We can sort the list and search for the values in a linear way. But still it would also cost O(nlogn). 3. The most efficient way of doing this is using hash map.
functionfindElement (array, result) { varhash=newObject(); for (let [loop, val] ofarray.entries()) { if (typeofhash[result-val] !=="undefined") { console.log( loop, hash[result-val]); } if (!hash.val) { hash[val] =loop; } } } findElement([10, 123, 0, 4, 5, 5], 10);

Reference: http://www.scielo.br/scielo.php?script=sci_arttext&pid=S0101-74382015000200423

Suggest a feature.

If you have any suggestions or requirement which will help us to understand you better.

Loading...

Features of URL Shortener Extension.

Image
Feature list of url shortener extension.:
1. We care about your privacy, We don't ask for browser history permission. We just ask for Clipboard copy and paste permission to copy and paste the values to your clipboard.
2. Just click the extension you will get shortened url of the current page. Click copy button to copy the shortened url value.

 3. Paste the url you have copied from mail or from the chat your friend send to you through facebook or slack and shorten it.


4. Get history of shortened links so far and its analytics values by History/Analytics button.                    5. Just right click on a link to shortern the URL and get copied to the clipboard.                                     

If you have any feature request please update in this link You can even donate here in the link Donate . It would help me in paying bills for this and some other projects.














Update for Chrome URL Shortener extension.

Image
Latest updates for URL Shortener Extension.
The chrome extension gets updated automatically, and in this update i have made the below changes. Everyone cares about privacy, So I have made changes related to permission now you are not require browser history for using the extension.But simply clipboard write/read permission for copy the values to clipboard on button click.Added button for donate. It would help me to pay the bills. You can even donate here in the link Donate. If you have any feature request please update in the below link.

Chrome Extension and Firefox addon to Shortern the URL.

Chrome Extension and Firefox addon the shortern the URLs.

1.Chrome Extension Link

2. Firefox addon Link 

1. Both of the extension has the same set of features which make the life of the user simpler. Content menu(Right click on a link to shortern it).
2. Paste the URL copied and get shorerned.
3. Analytics for the shorterned URL