Which language(s) is Bing and Google written in? - programming-languages

Which language(s) is Bing and Google written in? I heard Google's back end (the part which does the actual search) was written in C++? How accurate is that? And what about Bing?

It is indeed in C++.
Google uses ctemplate.

Related

Embed kml tool deprecated?

HI I am trying to embed google earth map in my website at the moment, but because the "embed kml tool has been deprecated" I am unsure of how to do so ? I have tried using fake embed kml tools, but they don't seem to work as they are relying on Google APIs.
Has anyone had similar experience in embedding google earth in html?
The Google Earth Plugin javascript API still works for now. Google even has "adapter" code that will let you place an "Earth" toggle button next to the "Map" and "Satellite" toggles and sync a Google Map javascript API V3 implementation to the Google Earth plugin. I've got it working even now on my own website, and I put it together only two months ago.
However, it will stop working in December this year, so I know I'm going to have to replace that. You should note that the new Google Maps My Maps engine (aka Google Maps Engine Lite) now has a native Earth mode instead of a Satellite mode. It is widely hoped that Google will soon release a Google Maps javascript API V4 that accesses this new maps engine, and give everyone a more uniform API interface to both Maps and Earth (and is consistent with the Mobile API implementations)
So for now, if you are just learning and the map added to your site is not critical long-term, go ahead and use the Google Earth plugin API to learn how to use both Maps and Earth APIs even together. It really won't be time wasted. But you will have to rework and replace it before year's end.
If however you are building something long-term for a customer or that map is the key aspect of your site, you should start researching alternatives. There are all sorts of discussions and recommendations (just do a search) and Google itself is making recommendations to use other (non-free) replacement products for commercial uses.
And keep watching Google's own developer's site for announcements about the APIs. Likely there will soon be a way to access the new Earth interface.

How to Tell if Click Came from Google Search

I'd like to know if there is a way to detect whether the user has entered the website from an Organic Link from Google on certain key words?
What I am trying to do is provide additional information to appear to those who found my site via Google?
Thanks!
Use Google Analytics
Sign up for an account and just add a small snippet of Javascript to your site. It's really easy to set up and track links from google and even the exact search terms used!

google image search: search similar images

I want to write a mobile app which takes a picture and searches google images for similar pictures and then displays the results.
However, with google image search I can only search for text strings, and with the search API it seems there's no possibility to search for similar pictures; this feature seems to be available only through the web interface.
Any idea how I can solve this problem?
thanks,
Christoph
There is a way you can do this now, but its not officially supported, and there are probably some restrictions on the number of queries you can perform. Update
http://images.google.com/searchbyimage?hl=en&biw=1060&bih=766&gbv=2&site=search&image_url={{URL To your image}}&sa=X&ei=H6RaTtb5JcTeiALlmPi2CQ&ved=0CDsQ9Q8
There is also a google image search API, which is being officially deprecated, but it will work for now.
http://code.google.com/apis/imagesearch/
The Google Vision API.
https://cloud.google.com/vision/
This is very simple and easy and powerful.
I had done something like that recently for a mobile app, this is the code for it, it uses google search by image feature, and returns the "best guess" or the whole page
you could use that and modify it to do what you want, but once you get the best guess of the image you could search for any image with that title, etc
https://github.com/hbattat/search-by-image
I don't think it's possible. If you click the link to find similar images from the images result page you get a link with the original query included:
google.com/images?q=ORIGINAL_QUERY&imgtype=i_similar&sa=...
If you remove that GET param manually, the search does not work, it only shows the images search form.
I dont think it is possible to find similar images with google if you do not know what's on it.
I was looking for an answer to this some time ago, and found tineye. You have to pay for it, though. Currently (Jan 2012) USD300 for 5K searches, USD1.5K for 30K searches...
SerpAPI enables to search through Google Images and returns a clean JSON.
URL example:
https://serpapi.com/search.json?q=Apple&tbm=isch&ijn=0
Documentation:
https://serpapi.com/images-results
This service is integrated with most of the programming languages: python, php, java, golang, nodejs...
Google limit the number of search per day. but this service provides unlimited searches...

Does Google Prettifier Supports Syntax highlightation of C#?

I've started working on google prettifier to highlight the syntax. Just had a doubt whether google prettifier supports C# syntax highlightation or not. If yes, which .js file i need to include in my application?
I assume you're talking about this, right?
From the documentation, it says it supports "C-like" languages, of which C# is one such language.

How to add google search results on your site?

Is there any way to add google search results into your site such that the results appear under your domain (and the page doesn't get redirected to google.com)? I know about google cse but this is not a free solution. Is paying for CSE the only way? Thanks.
Use the Google AJAX Search API (my emphasis):
The Google AJAX Search API lets you
put Google Search in your web pages
with JavaScript. You can embed a
simple, dynamic search box and display
search results in your own web pages
or use the results in innovative,
programmatic ways.
You just need JavaScript - nothing server-side.
You could use Google Search API.
You could also query Google search engine through a Web Service. Here's the WSDL and here's the FAQ. But I think this will be discontinued in favor of the first suggestion I gave.
I've never used this but if you're into python check out Python Library for Google Search from Peteris Krumins’ blog.
What about this? http://code.google.com/apis/ajaxsearch/web.html
And there should be even API for PHP etc.

Resources