Do new Gmail OAuth policies affect code I’ve written for myself?

I have a Spreadsheet in my Google Drive account with my own code which accesses my mails on Gmail, searches for unread, starred mails with a certain label and forwards this mail to different receivers.

This script runs every 5 minutes (time-based execution).

Now I just got the mail w.r.t. “New Gmail OAuth policies” which should go into effect January, 2019. Does this affect my code? Do I really have to submit every script I’m writing in my own Google account (placed in my Google Drive?). Or does this only affect people writing code which get’s downloaded for execution by third party accounts?

I mean, this step really doesn’t seem necessary if I’m coding on my own within my own Google account!?

How to include detailed, long dialog in a narrative written about a few events taking place over many months

A narrator is writing a letter about the last 6 months of his father’s life, a narrative which includes around 5 individual scenes, some of which have extensive back and forth dialog. How should the dialog be integrated into the narrative which is otherwise someone commentating on their experiences.

I have written a program for Type Conversion (Primitive to class type) . When I am running this on DEV its…

#include< iostream >

#include< iomanip >

using namespace::std;

#include< string.h >

class Human

{

  char Name[20];
  int Age;
  float Weight;

  public:

Human()

{

  strcpy(Name," ");
  Age=Weight=0;

}

Human(int AGE)

{

  this->Age=Age;

}

Human(float Weight)

{

this->Weight=Weight;

}

Human(char *s)

{

  strcpy(this->Name,s);

}

void GetData()

{

  cout<>Age;

  cout<>Weight;

}

void Display()

{

  cout<

}

};

int main()

{

  Human h1;
  h1=23;                    //It will assign 23 in Age
  h1=67.45f;                //It will assign 67.45 in Weight
  h1="Jimmy Neutron";

  h1.Display();
  cin.get();

  return 0;

}

How can I include common strings (regexes) in several projects written in different languages?

I have a simple Go library (~300 lines, mostly type declarations and nice methods and compatibility methods for gomobile etc., also pretty-printing scripts). The heart of the whole project are two regexes, placed in a separate file in my Go repository.

Now I want to port that simple library to Python, Java (Android), maybe Javascript. I want the regexes to rest in a single Git repository (maybe even the Golang one).

What is the best way to include the regexes at compile/build time as string constants? In case of Golang, it seems that the only way is to use go generate, which generates source code files and could include those regexes from a plain text file. So I decided to make a separate Go source code file for easy parsing by other build tools in case of Python, Java, Javascript. I would appreciate any advice how to do it efficiently that way. I could also make a separate repository for two regexes and use git submodules (or even treat it as a sepratate Go package in Go project).

But I’ve lost my hope for a pretty solution, and that’s why I’m asking here and not on SO; how do you solve such problems? The simplest way would be to manually “cherry-pick” commits from each repository, setting author field manually.

How do I handle an answer that appears to be written by a bot?

I’m a moderator over at Robotics.SE. I’ve seen new-ish users in the past come to promote sites, products, etc. I’ve seen brand new users come in to post what is clearly spam (something along the lines of, “I think this is a great question, check out my answer at shady.url”).

The problem I had today is a user comes in with a barely coherent answer, but the length of the answer is somewhat substantial (more than just the typical one-line spam), it addresses one of the points of OP’s question, but it looks like it’s written out of a bag of keywords or something.

I may have flagged the user as a spammer, or sent a warning, etc., but the user has a small reputation on a couple other sites where they asked a couple questions that got good answers (several upvotes and accepted answers), etc.

My concern is that I don’t want to come off as insulting the person if English isn’t their first language (or especially if it is), but I’m not sure what to do about this.

The question asked about how to build a fast quadcopter, and then the user in question answered with a bunch of text, including this closing paragraph:

Can Helium Drone Armour Help reduce weight? I think it would be cool to have clowns making balloon animal drones But the wind drag might defeat the perhaps or inhouse perhaps drones that walk on the roof.

Clowns making balloon animal drones? Or inhouse perhaps drones that walk on the roof? There were comments earlier about seeing the “Kalman-filter keyword on Stack Exchange,” but nobody mentioned Kalman filter, that wasn’t what the question was about, the question wasn’t tagged with it, etc.

Should I make a notation on the user account that they’re a potential spammer? This isn’t the first time I’ve seen a user like this, where they are new and their question/comment seems to be a collage of keywords, but again I’m not sure how to handle this user in particular because they seem to be established on other sites.

:EDIT:

Here’s the full answer:

I found a Kalman-Filter keyword here on stack exchange that may have something interesting also consider: Direct Drive vs. Indirect Drive.

There is a neat hex or octal shaft that “slips” with a kind of torque like counterpart grip. This makes like a plastic flywheel; A method would a eliminate a few gears.

Experiment – Perhaps drilling holes in the frame or making your own frame will reduce weight but comes at the expense of breaks of the chassis. You might need to tape holes to prevent drag.

I like the fact that you asked about overheating problems maybe you can bring a dry ice box to quick cool it when not in flight? I saw popsicle stick frames for standard drones on youtube. I wonder if a chip of dry ice would cool it in the air.

Can Helium Drone Armour Help reduce weight? I think it would be cool to have clowns making balloon animal drones But the wind drag might defeat the perhaps or inhouse perhaps drones that walk on the roof.

This is in response to the question, which was presented as a list of questions following an introductory statement:

Will this overheat (bad consecuences) if i let it drain the full battery at 100% throttle?

Will this fly at least 4 minutes under the previous conditions?

Should i get a higher C-rating battery?

As i can’t find better motors of that size, is the only way to improve its speed by putting a 6S battery? and what would happen if i do it?

Should i put the 6inch props or 4inch? I know 4inch should get faster rpm changes but will it be noticeable at this sizes?

For reports written in present tense, which time is usually used for “citations”? Present or past tense?

In German reports, most of the time present tense is used when followed up by any kind of citation.
E.g.
– There is a need for more biocompostable plastics. The XYZ CEO says that…
– The CEO explains “…”
I have noticed that in English in most cases past tense is used
– He said that…; “….”, he explained.
So, if I have a complete text in present tense, I nevertheless HAVE to use the past tense for these examples in English? Or is it my choice?

Thanks a lot!

I have written one trigger for update child records count on parent record and it’s working fine but I want…

Trigger

Trigger ContactCountTrigger on Contact(After Insert, After Delete
, After Undelete, after Update)
{
   ContactTriggerHandler cth = new ContactTriggerHandler();
   if(trigger.isAfter)
   {
      if(Trigger.isInsert || Trigger.isUndelete)
      {
         cth.updateChlidCount(trigger.new);
      }
      else if(Trigger.isDelete)
      {
         cth.updateChlidCount(trigger.old);
      }
      else if(trigger.isUpdate)
      {
         cth.updateChlidCount(trigger.new,trigger.oldMap);
      }
   }
}

Helper Class

public class ContactTriggerHandler 
{
   Set AccounIds = new Set();
   Public Void updateChlidCount(List Lst)
   {
      for(Contact C : Lst)
      {
        if(C.AccountId != Null)
        {
            AccounIds.add(C.AccountId);
        }
      }
      if(AccounIds.size() > 0)
      {
        this.updateParentCount(AccounIds);
      }
  }

  Public Void updateChlidCount(List Lst,Map oldLst)
  {
      for(Contact C : Lst)
      {
          if(C.AccountId != Null)
          {
              AccounIds.add(C.AccountId);
          }

          if(oldLst.get(C.id).AccountId != Null)
          {
              AccounIds.add(oldLst.get(C.id).AccountId);
          }
      }

      if(AccounIds.size() > 0)
      {
        this.updateParentCount(AccounIds);
      }
  }

  private void updateParentCount(Set Acc)
  {
     List AccLst = [SELECT id,name,number_of_contacts__c 
     ,(Select  id from contacts) FROM Account WHERE Id in : Acc];
     for(Account A: AccLst)
     {
       A.number_of_contacts__c = A.contacts.Size();
     }
     update AccLst;
  }
}

Has anyone written automated tests for Looker?

We are starting a reporting project that integrates Looker and Snowflake to gather data from multiple micro services. We were wondering if anyone is doing something similar and how do / did you create automation / integration tests around this?

Currently we use postman for service level integration and write automation tests in C# for worker-related integration.

I believe this “reporting service” will be written in a worker that utilizes SNS and sqs topics to get data transferred to Snowflake.

Which version of the Ariadne Myth was written/told first?

Ariadne was a daughter of Minos. She helped Theseus traverse the labyrinth in exchange to be taken with him away.

In one version, Dionysus tells Theseus that he wants Ariadne and to leave her on an island.

In another, Theseus plain out abandons her on an island without divinity telling him to do so.