I am doing a specific search for "types=cafe" and "keyword=Coffee%20Shops" and the icon returned for most establishments is the "restaurant" (fork and spoon) icon. Is there a way to format the request to receive the "cafe" icon, which is a coffee cup image? This is the url search string:
https://maps.googleapis.com/maps/api/place/search/json?location=42.25850666666667,-87.94816&sensor=false&rankby=distance&keyword=Coffee%20Shops&types=cafe&key=mykey
I have reported this as a bug and it should be fixed asap.
In the mean time you could just use http://maps.gstatic.com/mapfiles/place_api/icons/cafe-71.png for any place that has type cafe.
when does the bug that return more types or other types will be fixed, this is critical
i.e:
https://maps.googleapis.com/maps/api/place/search/json?location=42.25850666666667,-87.94816&sensor=false&rankby=distance&types=cafe&key=mykey
return other types like "store", "cafe", "food", "establishment"
why not only cafe
if i wanted more i should ask for more like types=cafe|store..
thank you.
Related
I am trying to select all pictures that do not feature people using the following content filter
{
"filters": {
"contentFilter": {
"excludedContentCategories": [
"PEOPLE",
"SELFIES",
]
}
}
}
However, I am puzzled by the results. The selection includes a lot of photos that feature people. One of the example is passport like picture of a person face front which should unmistakably fall into PEOPLE category to my mind at least. I also realise that categorising pictures is a difficult task and there bound to be some miscategorisation, so I do not expect that picture with people not showing faces, or only occupying small part of the picture might appear. However, the results I am seeing when applying the above filter is so random and not selective that it makes me think that this functionality simply is not working.
Maybe I am doing something wrong? Perhaps someone can suggest a better way of selecting pictures without people on them?
Thank you.
P.S. I am aware that pictures recently uploaded to google might not have been categorised yet. However, I was applying the filter to my photo collection that was uploaded to Google photos about a month prior to my tests. So I would assume that categorisation would have happened by then.
I can confirm that there is currently an issue with the PEOPLE content category. Unfortunately, at the moment this category is somewhat inaccurate and does not correctly include most media items with people or persons. Our apologies!
Based on your report we identified the issue and will be addressing it in the next release of the Google Photos Library API. Thank you for reporting it!
I have filed an issue on the issue tracker here: https://issuetracker.google.com/111143493
(You can "star" the issue to be notified if there are any updates.)
It keeps bothering me that I cannot manage the Keyword for "One-click search engines". The keyword could be displayed as follows in Firefox 38.0.1
Through the help link, I found ways to add/hide/remove search engines. However, it did not give any suggestion on how to modify the search engine.
The practical motivation for me to learn how to change the keyword is that:
Firefox cannot sync "search engines" across different installations. Only bookmarks and add-ons could be synced, so far.
I am using Vimperator with Firefox, where pressing o (or t) followed by TAB, then keyword for search engine, will enable the finishing a search query sequence. Example:
:open google happy 2015
will launch a Google result page searching for "happy 2015".
So, the syntax is: ":open keyword search-pattern".
Can anyone tell me how to change the "keyword" of a search engine? Or, give instruction on how to create a search engine of my own? (either on the web or locally loaded is fine.)
To edit the keyword for a search engine, double-click on the search engine's entry, or highlight it and press F2.
Solution in short, as kindly offered by Brandon Parmenter, goes as follows:
:bmark http://example.com/search#q=%s -keyword=example
Start of the longer/older answer
Though the solution inspired by the following link does not change the entries for search engine, it does offer a fully functional keyword feature.
wikiHow:How to Add a Custom Search Engine to Firefox's Search Bar
Unlike what has been suggested in the external link, no further add-on is needed. The following steps will complete the definition of a search-keyword:
Go to the page on which one can search. (Either google.com, or github.com, or whatever)
Right click the search box (through which one can type search inquiry) and select "Add a Keyword for this search"
Define the keyword and press enter
This is not defining a search engine, but rather a search-keyword. Keywords defined in this way is stored as a Bookmarks entry.
So far, it is yet unclear how would conflicting keywords between search-engines-keywords and one we just defined should be resolved. Hopefully, since Firefox is syncing Bookmarks items, search-keyword may be synced to other installations.
Since the question to modifying the search-engine-keyword is yet unsolved, I will not accept my own answer.
Additionally, if one would be interested to look into the Bookmark entry, %s is the "place-holder" in the "Location" field of such bookmark that will be subsituted by whatever one would like to search.
To programatically change the keyword of a search engine you can do it like this:
var allEngines = Services.search.getEngines()
for (var i=0; i<allEngines.length; i++) {
var currentEngine = allEngines[i];
console.log('name of current engine:', currentEngine.name);
var currentKeyword = currentEngine.alias; // is null if no current key word
}
To change the keyword programtically just set currentEngine.alias
Here is a variable viewer in browser console of allEngines you see its an array and each entry is like this, in this image here one entry is expanded:
If you know the name you can just get the engine by name with var currentEngine = Services.search.getEngineByName('Bing')
I have a tumblr account that has submission enabled, and I have a short description with a form in the "description" area that appears on the sidebar. However, this description also appears on myblog.tumblr.com/submit. I'd like to remove it.
I looked at the documentation on http://www.tumblr.com/docs/en/custom_themes#navigation, but haven't been able to figure out how to prevent the sidebar description from showing at the top of the submit page.
Can anyone help?
I'm not sure if I understood your question correctly. But if I did, a work around would be using jQuery to check if the current url contains the string /submit and simply disable the sidebar, or the element that contains the description.
I don't know jQuery but I know it's possible. I'd suggest you to look into this post:
How to check if the URL contains a given string?
and combine it with this line (replace the "alert part")
$("#sidebardescription).hide();
Another solution would be if Tumblr provided you with a way to only render for specific pages. They usually do that. I'd look into this part {block:SubmissionsEnabled} {/block:SubmissionsEnabled} before I go with the workaround.
I know I can use the Feed Dialog to post to a friend's wall by sending/using the "to" parameter... as well documented in http://developers.facebook.com/docs/reference/dialogs/feed/
I wonder if is it possible to say the Feed Dialog to show a friend selector widget/type ahead combo (as the Send Dialog does) or some thing to select the user whose he is looking... ?
Any idea.
Thanks in advance
Which approach do you all think is better?
Next to each field, highlighting each field in a distinctive color or with an easily distinguishable mark, so it's self evident where the problems are, especially on a long form. Also place a help icon next to each failure providing more information in case it's needed by some users. In addition, do not forget to preserve the data that's correct in between failures.
I put a summary of the errors at the top of the form that gives details as to why a field value is incorrect such as "Field1 is Required and must be an integer". I also add visual indicators on the field that errored, typically an asterisk next to the field or changing the color of the input area.
It will always depend on the situation, but...
I prefer to do a non-obtrusive indicator (* perhaps) beside each field and show more detailed messages or a summary message at the top (or bottom) of the form with longer forms.
If the form is shorter, you can probably get away without providing a "summary". I changed my mind on this, you should probably provide a summary.
Identifying the field with an error is important, definitely. However, a summary at the top letting the user know that there are errors below can be helpful for a long form. Additionally, you can put more details in the top summary section that you might not have room for below.
We supply a small indicator next to each field with an error. When you roll over the indicator a tool tip gives you what needs to be fixed. We then also give a summary at the smae time so they can see all of the errors they need to fix.