google chrome extension – Firebase re-authenitcate user. How to get correct token?

I’m working on chrome extension (provides main functionality) and the complementary website (mostly profile and billing related functionality) both backed with firebase backend.

I’m wondering if it’s possible to implement the below scenario:

  • user logs in with the extension using firebase authentication (with firebaseUI lib)
  • I store a token that I can use to reauthenticate that user (is there such a token?)
  • when user opens the website, I login that user automatically with the token.

While both the extension and the website has their login/signup forms I’m wondering if it’s possible to login user in the extension and to somehow automatically login that same user on the website so they don’t have to enter their credentials twice?

So far I was hoping that I could use something like below:

firebase.auth().currentUser.getIdToken(true).then(function(idToken) {
            console.log("idToken = ", idToken)

And then to use that idToken like this, since if I understand correctly, it’s an AWT:

firebase.auth().signInWithCustomToken(idToken).catch(function(error) {
    // Handle Errors here.
     var errorCode = error.code;
     var errorMessage = error.message;
     console.log("signInWithCustomToken: error = ", error)

But it gives the following error:

code: "auth/invalid-custom-token"
message: "The custom token format is incorrect. Please check the documentation."

I can parse the token on which shows all the user information but in the end it says “invalid signature”

So I guess this token can be only used to check authentication (like admin.auth().verifyIdToken(idToken)) but not to login user. Am I right?

I know I can create a custom token, but is there any straightforward way to workaround that and to login user from one place only using firebase funstionality? (of course without storing username/password)

لینک منبع

google cloud bigtable – BigQuery External Data Source Query Quotas

I have a BigQuery table set up with a Cloud BigTable external data source. This works fine, and I’m able to run queries joining my BigTable data to some of my other BigQuery data. However, when I run too many queries against this table simultaneously, I get the following error:

Error encountered during job execution:
Exceeded rate limits: too many concurrent queries that read Cloud Bigtable data sources for this project. For more information, see

I can’t find any documentation about the limits on concurrent queries on the linked page or on the BigQuery Quotas and Limits page. I’m not running that many queries here – max 10 at a time. Has anyone run into this before who knows what the actual concurrent query limit is?

لینک منبع

javascript – Google Maps is opening all info windows when clicking on one marker

I have created an ACF Google Map and have integrated this with spiderfier.

When clicking on one of the markers, the spiderfier works correctly, however all the info windows open at the same time. I would also like any info windows to close when another marker is clicked.

Any help would be much appreciated.

My code is:

<script type="text/javascript">
(function($) {

/* new_map */
function new_map( $el ) {
var $markers = $el.find('.marker');

var args = {
    zoom        : 16,
    center      : new google.maps.LatLng(0, 0),
    mapTypeId   : google.maps.MapTypeId.ROADMAP

var map = new google.maps.Map( $el[0], args);

var oms = new OverlappingMarkerSpiderfier(map);

/* add_marker */
function add_marker( $marker, map ) {
    var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );

    var marker = new google.maps.Marker({
        position    : latlng, 
        map: map
    map.markers.push( marker );

    if( $marker.html() )
        var iw = new google.maps.InfoWindow({
            content     : $marker.html()

        oms.addListener('click', function(marker, event) {
  , marker);
        oms.addListener('spiderfy', function(markers) {


map.markers = [];

    add_marker( $(this), map );

center_map( map );
return map;

/* center_map */
function center_map( map ) {
var bounds = new google.maps.LatLngBounds();

$.each( map.markers, function( i, marker ){
    var latlng = new google.maps.LatLng(, marker.position.lng() );
    bounds.extend( latlng );

if( map.markers.length == 1 )
    map.setCenter( bounds.getCenter() );
    map.setZoom( 16 );
      map.setCenter( bounds.getCenter() );
    map.setZoom( 2 );



/*This function will render each map when the document is ready (page has loaded) */
var map = null;

    map = new_map( $(this) );


<?php $args = array( 'post_type' => 'post' );  $the_query = new WP_Query($args); ?>
<div class='acf-map' id='acf-map'>
    <?php while ( $the_query->have_posts() ) : $the_query->the_post();
    $location = get_field('google_map');
    $title = get_the_title(); ?>
    <?php if( !empty($location) ) : ?>
        <div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>">
            <h4><a href="<?php the_permalink(); ?>" rel="bookmark"> <?php the_title(); ?></a></h4>
            <p class="address"><?php echo $location['address']; ?></p>
    <?php endif; endwhile; ?>
<script src=""> </script>

<script defer src=""></script>

I think my issue is with this part:

if( $marker.html() )
        var iw = new google.maps.InfoWindow({
            content     : $marker.html()

        oms.addListener('click', function(marker, event) {
  , marker);
        oms.addListener('spiderfy', function(markers) {

But I’m not completely sure.

لینک منبع

android – Is it possible to place an app in Google Play Store with translated app name?

We want to place an android app in Google Play Store. Is it possible to change the name of the app depending from language or country?
I know that it is technically possible (by using “string.xml”) but somebody told me that it is not possible to give different names to the same app if placing it in Google Play Store.
I searched in the internet already and looked in help pages of Google Store but was not able to find an appropriate answer.

لینک منبع

r – How add Google Analytics in markdown on GitHub Pages

i can`t add Google Analytics on my GitHub page –

All files –

I add html with GA code – ga.html –

I add next rows in _config.yml

title: ""
       in_header: GA_Script.html

This i find in – How to include Google Analytics in an RMarkdown generated GitHub Page?

But Google Analytics does`t work, what is my error?

لینک منبع

grep – How to hightlight text search results like google?

The following is one way to hightlight grep results with n context characters. And each match is broken into a line.

Google is more intelligent, such that it shows the match separated by .... Also, sometimes it respect sentence boundary. Is there any code that grep text by hightlight matches similar to the google way?

لینک منبع

Javascript coding for Google Sheets and Google Forms

I would be most grateful if someone could explain line by line what the following pieces of codes do. There are general overviews of what the codes below do, but I need a line by line explanation to understand what is going on. Thank you.

Code snippet 1

* Creates a Google Form that allows respondents to select which conference
* sessions they would like to attend, grouped by date and start time.
* @param {Spreadsheet} ss The spreadsheet that contains the conference data.
* @param {String[][]} values Cell values for the spreadsheet range.
function setUpForm_(ss, values) {
// Group the sessions by date and time so that they can be passed to the 
var schedule = {};
for (var i = 1; i < values.length; i++) {
var session = values[i];
var day = session[1].toLocaleDateString();
var time = session[2].toLocaleTimeString();
if (!schedule[day]) {
  schedule[day] = {};
if (!schedule[day][time]) {
  schedule[day][time] = [];

Code snippet 2

// Create the form and add a multiple-choice question for each timeslot.
var form = FormApp.create('Conference Form');
form.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());
for (var day in schedule) {
var header = form.addSectionHeaderItem().setTitle('Sessions for ' + day);
for (var time in schedule[day]) {
  var item = form.addMultipleChoiceItem().setTitle(time + ' ' + day)

لینک منبع

Google rankings are hard to master, but this SEO app can help

Get an SEO report card, find tons of keywords, and see how you're doing on social media.
Get an SEO report card, find tons of keywords, and see how you’re doing on social media.

Image: pexels

You can have the best content out there, but if your site is not search engine optimized, you can pretty much forget about anyone seeing it. The top five results on Google get 75% of the clicks, the top three get 60%, and even paying for your site to be up there in the results won’t help much — ۷۰-۸۰% of users ignore paid ads in favor of organic results. That’s tough if you own your own business, whether it’s a consumer product, an e-commerce site, a brick and mortar store, or even a porn site.

So how do you make sure that your business shows up at the top of the search results for what you specialize in? You can hire an SEO team like the big companies do. Or you can turn to SEOPop. The app can be your SEO secret weapon (the secret being that you don’t know anything about SEO). Not only does it analyze your website and give you an SEO report card to let you know how you’re doing, it goes on to fix all the SEO mistakes you’re making — a process that would be time-consuming and expensive if done manually. Increase your SEO score, see how your site performs compared to the competition, keep track of all of your rankings by keyword, and even analyze issues like slow load time so your site is at the top of its game.

So yeah, you could hire a team for all that. But we’re guessing you’re going to spend more than $9.99 — the price for a lifetime subscription to SEOPop if you grab it at the Mashable Shop. Snag it while it’s 93% off.

لینک منبع

How to add View Image Button In Google Image Search

Google image search engine has been a strong tool of the internet for more than a decade. But recently it got a little less useful: in addition to making the reverse image search tool harder to find, the “Show Image” button has disappeared which is in this article, we introduce a method to add View Image Button In Google Image in few steps.

How to Add View Image Button In Google Image

The button formerly functioned as a direct link to the image in question, allowing users to bypass the hosting web site itself. Its disappearance is apparently due to an agreement Google has made with the stock image provider Getty Images, in order to get the latter’s photo content included in image search results.

The “View Image” button was a direct link to image files stored on web servers.


The “View Image” button was a direct link to image files stored on web servers.
The “View Image” button was a direct link to image files stored on web servers.

But have no fear, web image junkies. Only a few hours after the news broke, an independent developer released a Chrome extension that returns the button to its proper place. “View Image” from developer Joshua Butt returns the button to the Google Images interface, restoring the direct link function that Google and Getty are apparently no longer interested in supporting.



Using the extension is simple: just click “Add to Chrome” in the Chrome Web Store page, and the next time you search Google Images, the “View Image” button will be back in its familiar home.


the updated interface, sans “View Image” button.
the updated interface, sans “View Image” button.


We’re generally wary of recommending brand new extensions for Chrome or other browsers, but Butt has published the extension as an open source project on GitHub, and it appears to be free of the adware that’s been gradually infecting popular free extensions for the last year or so.


button restored with extension.
button restored with extension.


We’ll update this article if and when similar extensions are added to the public repositories for Firefox and Opera. And if you don’t feel like using an extension for this very basic functionality, remember that you can always access the original image by right-clicking the Google Images result, then select “Open image in new tab.”

It won’t give you the original, full-size image every time (sometimes it’ll give you a scaled-down thumbnail), but it’s worth a shot.

لینک منبع

How to set up Google Home

So you bought a Google Home recently. That’s awesome because this is a killer little smart speaker that can do a lot of different things—in fact, it can be a little overwhelming. The good news is that we’ve got you covered. Here are some ideas on where to get started with your new Google Home. In this article, we present how to set up google home step by step. Stay with Big E Tek!

Set Up Google Home from scratch!

First things first: you have to set your Google Home up because it’s basically useless in the box. But before we get into that, I want to take a quick minute to address something that is constantly on users’ minds when they get an always-listening device like Google Home: it’s not spying on everything you say. It only listens for the hot term ( like “OK Google” or “Hey Google”), but that’s it. Nothing is recorded or transmitted back to Google until it hears those words. I promise. You also can check the privacy policy of Google Home!

With that out of the way, let’s get your new Google Home set up. The first thing you’ll want to do is plug your Home up and download the Google Home app for iOS or Android.

Launch it and run through the tutorial—it’s all pretty straightforward. Once the phone has connected to the Home, it’ll play a sound and you’ll confirm.


First step to set up Google Home
First step to set up Google Home


From there, you’ll establish a room and connect the Home to Wi-Fi. After it’s all connected, you’ll sign in to your Google account—assuming you’ve set up Google Assistant on your phone, your voice settings will automatically be imported. That’s cool.


Finally, you’ll set the location where the Google Home will be used, link your music services, and run through a quick tutorial on how to use Home.



With all the simple stuff out of the way, you’re ready to really start using your new Google Home.



Add Another Account



If you plan on sharing your Home with someone else in the house (or multiple people, even), you’ll want to add everyone else’s Google account. Why? Because the Google Assistant will be able to differentiate people by their voices, therefore offering personalized results.

For example, if I tell my Google Home to add an event to my calendar, it will match my voice to my account and add it only to my personal calendar, not my wife’s. It works the same way for her.

To add a second (or third, fourth, etc.)  account to an existing Google Home, the person who you’d like to add will need to install the Home app on their phone. When they launch it and sign in, it will look for new devices.

Since everything is already set up, it should just jump straight into the app’s main screen, where you’ll need to tap the Devices button in the top right corner.



From there, find the Home you’d like to add the account to and tap the “Link Your Account” button. From there, just follow the prompts and you’re good to go.




Get the Tunes Flowing

I mean, Google Home is a speaker, so using it for music is a pretty good thing to do with it. There are a couple of ways to get your tunes rolling with Home:

  • Cast it from your phone
  • Play it over Bluetooth
  • Say “Hey Google, Play <music you like>”

Cool, right? Yeah. But if you took the time to add multiple accounts to your Home like outlined above, there are a couple of things you’ll want to take a look at.

First off, every account can set their own preference for music service—Google Play Music, Pandora, YouTube Music, and Spotify are all supported, though you can only use one at a time. It’s a weird quirk, but alas, there’s nothing you can do.

To change your music preferences, open the Google Home app and tap the Devices button in the top right corner. Find your Home, tap the three dots in the top corner of its card, then select Settings.



From there, choose the Music option. You’ll see a list of Your Services, as well as other available options.



But let’s say you have a premium Spotify account and your significant other doesn’t. You can actually let him/her use your account by choosing the last option here: “No Default Provider.” This will automatically default all music playing to the other person’s settings.

Set Up Your Smarthome

Aside from being a speaker that you can talk to, Google Home is basically the hub of your entire smart home. If you have other smart devices—like Philips Hue lighting, Nest thermostats or cameras, and the like—then you’ll want to set those up in Google Home. Even Chromecast and Android TV can be added to your home for easy control using your voice.

To set up your smart home, open the Google Home app, slide open the menu on the left side, and choose “Home Control.”



From there, you can add a device by tapping the plus in the bottom corner. Alternatively, you can also customize your rooms by sliding over to the Rooms tab.

Just follow the instructions to set your stuff up, and if you hit any songs along the way, check out our primer on setting up your smart home with Google Home.

Make Phone Calls in Set Up Google Home

Your Google Home can also double as a pretty legit speakerphone—and it can do so without you ever having to touch your actual phone. Just say “Hey Google, call <person or place>” and poof: like magic, it’ll initiate a call.

It’s also bad because you can set it to use an anonymous number, your Google Voice number (if you have one), or even your personal phone number. All of these things can be set in the Google Home app under More Settings > Calls on Speakers.

Get Cooking Instructions, Buy Things, and All Sorts of Other Stuff

My “main” Google Home is in the kitchen because that’s where I find it to be the most useful. Cleaning up? Play some music. Baking something? Set a timer (you can also change the volume of the timer alarm). Cooking? Get step by step instructions without ever having to touch your phone. Seriously, that’s a game changer.

Getting recipes is super easy to do, too: search for what you want, then send it to Google Home. But wait, there’s more! You can also tell your Google Home to buy stuff for you, and it will. It does this using Google Express, but you’ll also have to set your shipping and payment preferences up in the Google Home app.

Of course, since your Google Home is basically just Google Assistant in a speaker, you can also do all of the cool stuff you do with Assistant on your phone, like ask it questions, get a daily briefing, keep a shopping list, and a lot more.

If there’s a function you want and can’t seem to find, you can also set up custom commands using Android and Tasker. It’s not the simplest setup, but the given the time and patience, you can make it happen.

لینک منبع