Как работать с другими сервисами google в окне gmail

Section 9: Liability for our APIs

a. WARRANTIES

EXCEPT AS EXPRESSLY SET OUT IN THE TERMS, NEITHER GOOGLE NOR ITS SUPPLIERS OR
DISTRIBUTORS MAKE ANY SPECIFIC PROMISES ABOUT THE APIS. FOR EXAMPLE, WE DON’T
MAKE ANY COMMITMENTS ABOUT THE CONTENT ACCESSED THROUGH THE APIS, THE SPECIFIC
FUNCTIONS OF THE APIS, OR THEIR RELIABILITY, AVAILABILITY, OR ABILITY TO MEET
YOUR NEEDS. WE PROVIDE THE APIS «AS IS».

SOME JURISDICTIONS PROVIDE FOR CERTAIN WARRANTIES, LIKE THE IMPLIED WARRANTY
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
EXCEPT AS EXPRESSLY PROVIDED FOR IN THE TERMS, TO THE EXTENT PERMITTED BY LAW,
WE EXCLUDE ALL WARRANTIES, GUARANTEES, CONDITIONS, REPRESENTATIONS, AND
UNDERTAKINGS.

b. LIMITATION OF LIABILITY

WHEN PERMITTED BY LAW, GOOGLE, AND GOOGLE’S SUPPLIERS AND DISTRIBUTORS, WILL
NOT BE RESPONSIBLE FOR LOST PROFITS, REVENUES, OR DATA; FINANCIAL LOSSES; OR
INDIRECT, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES.

TO THE EXTENT PERMITTED BY LAW, THE TOTAL LIABILITY OF GOOGLE, AND ITS
SUPPLIERS AND DISTRIBUTORS, FOR ANY CLAIM UNDER THE TERMS, INCLUDING FOR ANY
IMPLIED WARRANTIES, IS LIMITED TO THE AMOUNT YOU PAID US TO USE THE APPLICABLE
APIS (OR, IF WE CHOOSE, TO SUPPLYING YOU THE APIS AGAIN) DURING THE SIX MONTHS
PRIOR TO THE EVENT GIVING RISE TO THE LIABILITY.

IN ALL CASES, GOOGLE, AND ITS SUPPLIERS AND DISTRIBUTORS, WILL NOT BE LIABLE
FOR ANY EXPENSE, LOSS, OR DAMAGE THAT IS NOT REASONABLY FORESEEABLE.

c. Indemnification

Unless prohibited by applicable law, if you are a business, you will defend and
indemnify Google, and its affiliates, directors, officers, employees, and users,
against all liabilities, damages, losses, costs, fees (including legal fees),
and expenses relating to any allegation or third-party legal proceeding to the
extent arising from:

  1. your misuse or your end user’s misuse of the APIs;
  2. your violation or your end user’s violation of the Terms; or
  3. any content or data routed into or used with the APIs by you, those acting
    on your behalf, or your end users.

Frequently Asked Questions

What do I do if something isn’t working?

If there is a specific bug with the library, please file an issue in the GitHub issues tracker, including an example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address.

I want an example of X!

If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs — our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above!

How do I deal with non-JSON response types?

Some services return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an ‘alt’ argument to optional params that is normally the last argument to a method call:

How do I set a field to null?

The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialized properties. To work around this, set the field you want to null to . This is a placeholder that will be replaced with a true null when sent over the wire.

Android Camera2 API от чайника, часть 6, финальная Стрим видео — сначала кодировали, теперь декодируем

Tutorial

Итак, в предыдущем посте мы занимались кодированием «живого» видео формата H.264 на Android устройстве, которое затем отправляли для просмотра на персональный компьютер под виндой. Там наш видеопоток успешно раскодировывался и лицезрелся с помощью VLC плеера. А так же с помощью библиотеки VLCJ CAPRICA благополучно впихивался и в окошки JAVA приложения. Правда, каким именно образом он (VLC плеер) всё это проделывал, так и осталось загадкой. Но с другой стороны — работает, да и ладно. Подстольный настольный компьютер, ноутбук, лэптоп — всё это прекрасно, но тем не менее, всё больше народа смотрит видео и управляет разными девайсами не из-за стола, а чаще валяясь на диване, со смартфоном в руках. И соответственно, к примеру, даже нашей роботележкой ныне удобней управлять именно оттуда. Поэтому настало время выяснить, как наш закодированный видео поток принять и отобразить на экране такого же Android устройства. Естественно, как и раньше мы проделаем всё через Camera2 API, концепцию Surface, да ещё и асинхронно!
Кому интересно — вперёд.

Android Camera2 API от чайника

Tutorial

Не так давно я возился со своей роботележкой, пытаясь водрузить на нее ANDROID смартфон. Моей, то есть его задачей, было сделать тележку эволюционно продвинутой. Чтобы она, так сказать, чувствовала мир его сенсорами, смотрела его глазом (камерой), слышала микрофоном и ругалась по громкой связи. Ресурсов AVR, понятное дело, на это уже не хватало и поэтому бывший на телеге микроконтроллер переехал на уровень ниже, куда-то в район спинного мозга управлять моторчиками и разными безусловными рефлексами.
Но странное дело, когда я начал писать приложение для смартфона, нехорошая IDE ANDROID STUDIO стала постоянно зачеркивать мой код и называть его устаревшим.
camera = Camera.open();
Особенно, как вы видите, в тех частях, где я пытался работать с камерой. Это было очень обидно, потому что я прочитал в интернете и усвоил множество уроков работы с андроидом и камерой здесь, здесь, здесь и даже здесь. Там ничего не зачеркивалось. И называлось заурядно Camera API. Все там было просто и логично. Но Google упрямо толкал меня к какому-то Сamera2 API.
Я туда посмотрел и просто опупел от количества разных коллбэков, билдеров, хэндлеров и луперов на каждую строчку демонстрационного кода. Было совершенно непонятно с какой стороны к этому подступиться, если ты обычный любитель, а не android developer. Причем в сети даже на сегодня статей на тему Сamera2 API чуть, хотя вышло это обновление вроде как, аж четыре года назад. Но всё что я нашел, это статью в Хакере в 2016, пост в трех частях от украинских братьев того же года, двойной пост на Хабре в 2017 и статью Understanding Camera2 от японского мегагика Томоаки Имаи. И это я ещё имею в виду какую-то структурированную и оформленную информацию, а не раскиданные в интернете обрывки кода типа, «смотрите, как я могу» и простыни в стиле, «посмотрите код плиз, у меня ничего не работает».
А теперь, если вам всё ещё интересно зачем мне потребовалось пилить свой пост на эту тему
уже в 2019, то добро пожаловать под кат.

Section 1: Account and Registration

a. Accepting the Terms

You may not use the APIs and may not accept the Terms if (a) you are not of
legal age to form a binding contract with Google, or (b) you are a person barred
from using or receiving the APIs under the applicable laws of the United States
or other countries including the country in which you are resident or from which
you use the APIs.

b. Entity Level Acceptance

If you are using the APIs on behalf of an entity, you represent and warrant that
you have authority to bind that entity to the Terms and by accepting the Terms,
you are doing so on behalf of that entity (and all references to «you» in the
Terms refer to that entity).

c. Registration

In order to access certain APIs you may be required to provide certain
information (such as identification or contact details) as part of the
registration process for the APIs, or as part of your continued use of the APIs.
Any registration information you give to Google will always be accurate and up
to date and you’ll inform us promptly of any updates.

d. Subsidiaries and Affiliates

Google has subsidiaries and affiliated legal entities around the world. These
companies may provide the APIs to you on behalf of Google and the Terms will
also govern your relationship with these companies.

Быстрые треки на google maps

Я работаю над визуализацией парапланерных соревнований — пишу плеер просмотра гонки для Airtribune.com. В процессе работы мне попадаются интересные и нестандартные задачи. Одна из них — задача быстрой отрисовки маркеров и треков на карте google maps.
Масштабы такие: есть ~200 трекеров в довольно ограниченной области (50×50км), каждый передает данные о своем положении раз в 10 секунд. Нужно их все отрисовать на карте и плавно перемещать при изменении координат. За каждым маркером должен отрисовываться трек. Картинка примерно следующая:
Скоро обнаружилось, что встроенные объекты — google.maps.Marker и google.maps.Polyline — для данной задачи работают слишком медленно. Была куча идей по оптимизации, и в результате получилось решение на canvas-е, которое работает со скоростью 40fps даже на тысяче маркеров. Впрочем, fps вы можете померить сами — я собрал тестовое приложение для сравнения 4-х движков, в котором на лету можно подключать разные фишки и смотреть на скорость работы.

Status

These are auto-generated Go libraries from the Google Discovery Service’s JSON description files of the available «new style» Google APIs.

Due to the auto-generated nature of this collection of libraries, complete APIs or specific versions can appear or go away without notice.
As a result, you should always locally vendor any API(s) that your code relies upon.

These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

If you’re working with Google Cloud Platform APIs such as Datastore or Pub/Sub,
consider using the
Cloud Client Libraries for Go
instead. These are the new and
idiomatic Go libraries targeted specifically at Google Cloud Platform Services.

The generator itself and the code it produces are beta. Some APIs are
alpha/beta, and indicated as such in the import path (e.g.,
«google.golang.org/api/someapi/v1alpha»).

Google исполнилось 20 лет

Сегодня Гуглу официально исполнилось 20 лет! Двадцать лет, как в наш язык прочно вошло слово «гуглить».
Вот так Google выглядел два десятилетия назад:
На самом деле, дата основания компании — 4 сентября 1998 года. Но технология PageRank, легшая в основу поиска Google, родилась еще в январе 1996 года как научно-исследовательский проект Ларри Пейджа и Сергея Брина, которые тогда учились в Стэнфордском университете в Калифорнии.
Основной домен поисковика google.com был зарегистрирован 15 сентября. Но в самой компании день рождения празднуется именно 27 сентября

Примечательно, что Пейдж и Брин первоначально назвали свою поисковую систему BackRub, потому что система проверяла обратные ссылки для оценки важности сайта
В честь круглой даты компания вместо обычного дудла разместила на главной странице Youtube-ролик, собравший в себе различные знаковые события, которые «гуглили» посетители за время существования поисковика.

Section 10: General Provisions

a. Modification

We may modify the Terms or any portion to, for example, reflect changes to the
law or changes to our APIs. You should look at the Terms regularly. We’ll post
notice of modifications to the Terms within the documentation of each applicable
API, to this website, and/or in the Google developers console. Changes will not
apply retroactively and will become effective no sooner than 30 days after they
are posted. But changes addressing new functions for an API or changes made for
legal reasons will be effective immediately. If you do not agree to the modified
Terms for an API, you should discontinue your use of that API. Your continued
use of the API constitutes your acceptance of the modified Terms.

b. U.S. Federal Agency Entities

The APIs were developed solely at private expense and are commercial computer
software and related documentation within the meaning of the applicable U.S.
Federal Acquisition Regulation and agency supplements thereto.

c. General Legal Terms

We each agree to contract in the English language. If we provide a translation
of the Terms, we do so for your convenience only and the English Terms will
solely govern our relationship. The Terms do not create any third party
beneficiary rights or any agency, partnership, or joint venture. Nothing in the
Terms will limit either party’s ability to seek injunctive relief. We are not
liable for failure or delay in performance to the extent caused by circumstances
beyond our reasonable control. If you do not comply with the Terms, and Google
does not take action right away, this does not mean that Google is giving up any
rights that it may have (such as taking action in the future). If it turns out
that a particular term is not enforceable, this will not affect any other terms.
The Terms are the entire agreement between you and Google relating to its
subject and supersede any prior or contemporaneous agreements on that subject.
For information about how to contact Google, please visit our contact
page.

Except as set forth below: (i) the laws of California, U.S.A., excluding
California’s conflict of laws rules, will apply to any disputes arising out of
or related to the Terms or the APIs and (ii) ALL CLAIMS ARISING OUT OF OR
RELATING TO THE TERMS OR THE APIS WILL BE LITIGATED EXCLUSIVELY IN THE FEDERAL
OR STATE COURTS OF SANTA CLARA COUNTY, CALIFORNIA, USA, AND YOU AND GOOGLE
CONSENT TO PERSONAL JURISDICTION IN THOSE COURTS.

If you are accepting the Terms on behalf of a United States federal government
entity, then the following applies instead of the paragraph above: the laws of
the United States of America, excluding its conflict of laws rules, will apply
to any disputes arising out of or related to the Terms or the APIs. Solely to
the extent permitted by United States Federal law: (i) the laws of the State of
California (excluding California’s conflict of laws rules) will apply in the
absence of applicable federal law; and (ii) FOR ALL CLAIMS ARISING OUT OF OR
RELATING TO THE TERMS OR THE APIS, THE PARTIES CONSENT TO PERSONAL JURISDICTION
IN, AND THE EXCLUSIVE VENUE OF, THE COURTS IN SANTA CLARA COUNTY, CALIFORNIA.

If you are accepting the Terms on behalf of a United States city, county, or
state government entity, then the following applies instead of the paragraph
above: the parties agree to remain silent regarding governing law and venue.

Разрушители мифов: Автоматическое решение Google Recaptcha

Привет! Я воплощаю интересные идеи на python и рассказываю о том, что из этого вышло. В прошлый раз я пробовал найти аномалии на карте цен недвижимости. Просто так. На этот раз идея была построить систему, которая смогла бы сама решать очень популярную ныне Google Recaptcha 2.0, основываясь на некоторых алгоритмах и большой базе обучающих примеров.
Google Recaptcha 2.0 представляет собой набор изображений (9 или 16 квадратных картинок под одной инструкцией), среди которых пользователю, для подтверждения своей разумности, нужно выбрать все изображения одной категории. Речь пойдет НЕ о построении системы машинного обучения — распознавать мы будем именно капчи!

Цветовой код Вашей заметки

Когда Вы используете Keep, он может забиться всевозможными заметками. Если Вы оставите все по умолчанию в белом цвете, может возникнуть настоящая боль, чтобы разобраться и найти то, что Вы ищете. Есть функция поиска, но есть возможность упорядочить все с самого начала.

Так как Keep позволяет Вам менять цвет заметки, это отличный способ сохранить организованность. Например, Вы можете сделать все Ваши связанные с работой примечания синими, связанными с едой списками зеленым и примечания на основе хобби красным. Поэтому, когда Вам нужно быстро найти что-то, связанное с работой, Вы можете прокручивать и быстро просматривать все синие заметки. Это просто.

Чтобы изменить цвет заметки на веб-сайте, откройте заметку, а затем щелкните значок палитры внизу.

На мобильном телефоне коснитесь трех точек в правом нижнем углу, а затем выберите один из цветов внизу.

Acquiring and using an API key

Requests to the Google Sheets API for public data must be accompanied by an identifier, which can
be an API key or an
access token.

To acquire an API key:

  1. Open the Credentials page in the API Console.
  2. This API supports two types of credentials.

    Create whichever credentials are appropriate for your project:

    • OAuth 2.0: Whenever your application requests private user
      data, it must send an OAuth 2.0 token along with the request. Your
      application first sends a client ID and, possibly, a client secret to
      obtain a token. You can generate OAuth 2.0 credentials for web
      applications, service accounts, or installed applications.

      For more information, see the OAuth 2.0 documentation.

    • API keys:

      A request that does not provide an OAuth 2.0 token must send an API
      key.

      The key identifies your project and provides API access, quota, and
      reports.

      The API supports several types of restrictions on API keys. If the API key that you
      need doesn’t already exist, then create an API key in the Console by
      clicking Create credentials > API key. You can restrict the key before using it
      in production by clicking Restrict key and selecting one of the
      Restrictions.

To keep your API keys secure, follow the best practices for
securely using API keys.

After you have an API key, your application can append the query parameter
to all request URLs.

The API key is safe for embedding in URLs; it doesn’t need any encoding.

Утечки данных, убившей Google+, возможно, не было вовсе

Перевод

Месяцами компания Google пыталась откреститься от нарастающего возмущения технической общественности, но 8 октября эта дамба, наконец, рухнула, погребённая под новостями об ошибке в редко использовавшейся сети Google+, в результате которой личная информация полумиллиона пользователей могла стать достоянием общественности. В Google нашли и закрыли уязвимость ещё в марте, примерно в то же время, когда набирала обороты неприятная история с Cambridge Analytica. Однако с появлением новостей убытки нарастают. Пользовательская версия Google+ закрывается, законодатели, занимающиеся защитой частной жизни в Германии и США уже ищут возможности подавать иски, а бывшие работники Комиссии по ценным бумагам и биржам США в открытую рассуждают о том, что в Google сделали не так.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector