Important changes related to URL shortener Chrome Extension/Firefox addon.

Hi All!!
 I hope that the URL shortener chrome extension/Firefox addon is helping you. As many of you know that Google URL shortener is stopping its services by next year. 
In the upcoming update we will be changing to another URL service is.gd a simple and feature rich service.

We considered moving to bit.ly but its being a costlier one and it has very low rate limits.
So we thought it is better to switch to is.gd service.

I you know some other service as reliable as others please let us know your suggestions.

I you want to help us by paying some bills please consider donation in the below link

Thanks for using the extension.


How to download Youtube, Vimeo video thumbnails?

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
Sample Webpage Image


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
Various download options.




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.

var product = input => {
let sum = input.reduce((acc, cval) => {
return acc + Math.log(cval);
}, 0);
let result = input.map(x => {
return Math.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.

function findElement (array, result) {
var hash = new Object();
for (let [loop, val] of array.entries()) {
if (typeof hash[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.

Features of URL Shortener Extension.

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 DonateDonate . It would help me in paying bills for this and some other projects.















Featured Post

IRCTC 120 days ticket date calculator.

IRCTC Ticket Date App IRCTC 120 days advance ticket date calculator.