Cannot get projections to work - google-shared-contacts

For a while I've been trying to make projections work for a google contacts api call (v3). My reference is: https://developers.google.com/google-apps/contacts/v3/reference#projection-values
From OAuth 2.0 Playground (as well as my real app) I'm trying:
www.google.com/m8/feeds/contacts/default/full?v=3.0&max-results=10
www.google.com/m8/feeds/contacts/default/thin?v=3.0&max-results=10
Actually I'm only interested in contacts (with) mail:
www.google.com/m8/feeds/contacts/default/property-email?v=3.0&max-results=10
No matter what I do, I always seem to get the FULL projection returned.
Am I missing somewhat here?
Kind regards,
Joris

Related

How to specify gender in Google Cloud Translation API

I am using Google Cloud Translation API in one of my projects. I want to specify the gender for the translation. I am unable to find about this in Google Cloud Translation. I have also searched a lot on the Internet but not found any way to do this. I know how to specify the gender in Google Text to Speech API using the SSML, but I need it for the translation. Any help will be highly appreciated.
After much searching I have discovered that there is currently no way to do this.
I have made a feature request along these lines at the invitation of GCP support.
The documentation indicates that feature requests are prioritised by how often an issue is starred, so for now my best answer is to star the issue here so that they know how many people are interested in this.
Looking for the same...
As it is NMT (Neural Machine Translation), it reacts to context.
I tried many combinations and found that this works well so far (says, not 'to', not 'talk').
Examples are EN > ES
However, sometimes its effect doesn't reach far in the translation.
So you have to stick the 'prefix' before each sentence.
Sometimes you get irregular behavior (see lower case "estoy"). And when you change something irrelevant (to you, but not to the model) ... buala!
So the final version (for now) is:
I guess the point is:
Understanding how it works (Machine Learning Language Models)
The Model (Algorithm) they use is evolving, so you need to keep an eye, as what works today may break tomorrow.
Once you get the response you will have to filter out you 'prefix', but that is not too difficult.
Please comment if you find better ways (or the API gets updated).
Related info: https://ai.googleblog.com/2018/12/providing-gender-specific-translations.html

How do I use texStorage2D?

Does anyone have a working, end-to-end example of this API in WebGL 2 or could point me to one? I did a search already and couldn't find anything but the API documentation.
I'd like to know how the calls would differ from what I currently do? Do I still need the following calls? Are there equivalents for them for Storage 2D?
createTexture
bindTexture
texSubStorage2D? (how do i upload data?)
activeTexture
framebufferTexture2D
readPixels

extracting polygon from googlemaps URL

How can I read the polygon from a search result like this:
https://www.google.ca/maps/place/Joliette,+QC/#46.0108031,-73.4916076,12z/data=!3m1!4b1!4m5!3m4!1s0x4cc8bdb99340567b:0xc6448884fc5822a6!8m2!3d46.014012!4d-73.4177961
Should I use a layer in my map? Or use the map.Data ?
I know there is a google: libraries=places but I cannot see how to use it.
Is Google actually forbidding us to read their precious database?
What's the use of a such a API if we cannot do such a simple thing!
I saw at least 2 posting from guys wanting to do exactly the same thing!
Thanks in advance
Francois
You cannot get polygons for map features via Google APIs.
Actually, there is a feature request for this in the public issue tracker:
https://code.google.com/p/gmaps-api-issues/issues/detail?id=109
However, it doesn't look like this has a priority.

Querying location fel in freebase from Google Refine returns error

I am fairly new to Google (Open) Refine and Freebase, and I am trying to find tutorials (aside from their video) on data augmentation. I have a fairly simple table with states of the US, which would like to augment with population data and other fields. The images below describe the process.
Does anybody have any idea why I get the error?
Is there a way to perform the same operation directly with Freebase, or a good tutorial out there?
If you're using Refine 2.5, Google turned off the APIs that it uses for augmentation from Freebase.
OpenRefine 2.6 which will start alpha/beta testing shortly adds support for the new APIs.

Freebase with own data?

I have been looking for an autosuggest search script and I have finally found one that I like, the only problem is that I cannot find a way to get it to run off our database results.
Is there any way to customize this script so that it runs from our own database, and not off the freebase pre-defined data types?
http://www.freebase.com/docs/suggest
Have you tried overriding service_url and service_path ? There are also the corresponding params for the flyout service. It's documented in the docs that you pointed to.
As masouras says, you can override service_url and service_path, but that's not particularly helpful unless you have another service which provides the same APIs as Freebase.
Dae Park recently posted a recipe to the Freebase mailing list which might help - however, I'm not aware of anyone who's actually managed to get Suggest working with anything other than Freebase.

Resources