Google Earth plugin key not required, and not working either - google-earth

The Google Earth browser plugin apparently no longer requires a key and it's impossible to request one.
The problem is when I run their sample code (Chrome 18 and FireFox 10) found here I get an error message:
The Google Maps API key used on this web site was registered for a different web site. The developer of this web site can generate a new key here.
When I check their plugin page it tells me:
Good news, you already have the Google Earth Plug-in installed. (Version 6.0.3.2197)
So no key is required, but when I try to run the code sans key I'm told to get one, and I can't because Google has removed the ability to request one or download the update. I read online that 6.2 is the newest version but the key has not been required since 6.
Any advice is appreciated.

After trying a force refresh, emptying the cache, and upgrading the browser, Google Chrome still wouldn't allow my example that doesn't use a key to work. I've figured out how to fix the issue.
The problem was that Chrome wasn't automatically updating the Google Earth browser plugin, regardless of the browser. Additionally, their plugin page confirmed I had an old version (6.0.3) but wouldn't allow me to manually update either. So I deinstalled the plugin following these instructions, and then downloaded the newest version (6.2.2) and installed it. One final thing I had to do (on my MacBook Pro): the new plugin installed in Library in my user directory
~/Library/Internet Plug-Ins/
but to get it working correctly I had to move the "Google Earth Web Plug-in" file to the root's library and then restart Chrome.
/Library/Internet Plug-Ins/

The Earth API doesn't require a key - your sample code appears to be working properly. In case you do see an error message in the future, make sure that there's no key= parameter when loading the Google JS:
<script src="http://www.google.com/jsapi?key=ABQIAAAAwbkbZLyhsmTCWXbTcjbgbRSzHs7K5SvaUdm8ua-Xxy_-2dYwMxQMhnagaawFo7L1FE1-amhuQxIlXw"></script>
The keys are specific to a domain, so if you copy old sample code from somewhere (such as from the Demo Gallery, for example) you should just strip out the key=xxx portion:
<script src="http://www.google.com/jsapi"></script>

Despite it saying you don´t need an API key for Google Earth at various official places, your problem is solved, if you create one on https://code.google.com/apis/console (under "API access" and then click on "Create new browser key") and include in the jsapi include: <script src="//www.google.com/jsapi?key=yourkeyhere" type="text/javascript"></script>

Related

OpenUI5: offline documentation in SDK not working?

When I download "Latest stable release: 1.28.16 (2015-08-18)" from here the documentation is not working. By clicking on \openui5-sdk-1.28.16\index.html the page opens up with empty content.
With older versions I also had non working offline documentation, the navigation page was showing, but the "details pane" was empty.
Is it only with me (using windows 8.1 and chrome Version 44.0.2403.157 m) or is this something general?
It is related to the browser security when index.html loads its resources (Same-Origin Policy)
So you have two options:
deploy the content on a (local) web server (as already pointed in the readme.txt) and open the index.html via http (for instance http://localhost:/openui5-sdk-1.28.16/index.html>)
run your browser with disabled web security and directly open the index.html

Ionic + IBM MobileFirst

I've found a few post on this topic but have not been able to find the best solution.
Attempted to integrate Ionic into IBM MobileFirst (Worklight).
At the moment - I have built a normal Ionic project and moved the WWW folder in the 'common' folder. Also added in the initOptions, main.js and messages.js.
MobileFirst has an awful build process - I hate having to deploy to a mobilefirst development server + preview app for any code changes. I am hoping to get some type of auto reload working within mobileFirst, or at least develop with ionic normally and hav ea job to bring my changes into my worklight project... something that is better than me current situation.
Does anyone have a sample project that actually auto-builds or picks up code changes automatically?
Any and all help is greatly appreciated.
Not sure what do you mean by "auto-reloading"; if you make any changes to the web resources to your project inside the Studio plug-in (in Eclipse) and reload the preview in the browser, it will show the changes.
You are not required to Run As > Run on MobileFirst Development Server for each change. As long as you work on the resources in your workspace, the "auto-reloading" as you call it, should work (make sure you are using the latest available MobileFirst Studio version from the Eclipse Marketplace).
There is also a rudimentary Starter Application that is based on Ionic.
You can download it from here.
There are also several results on the subject matter when searching in Google.
The need to rebuild in order to see changes in your Web components (CSS, JavaScript, HTML) did used to be an annoyance in early versions of what was then Worklight and is now MobileFirst. I forget when the need for a rebuild was removed but certainly in Worklight 6.2 and beyond you now simply need to refresh in your browser.
UPDATE: If using MobileFirst 6.3 you need to ensure that you are on a
suitable patch level. I find that simple refresh does not work in
6.3.0.00-20150106-1717, but if I update (Help->Check for Updates) to 6.3.0.00-20150214-1702 then edit/save/refresh works as
expected.
My personal practice is always to have Mobile Web environment in my project and then choose that from the Console. This loads the application in the browser-based Mobile Simulator that you can tailor to fit your target form-factor. This has a "Go/Refresh" button that immediately reflects your edits.
Alternatively, some folks these days do not use Studio, instead they use the Command Line Interfacer. Possibly this may be more to your taste. You can download it here.
there is a solution with using staff like ionic-cli serve command + symbolic links that will replace common folder.
check here an example https://www.dropbox.com/s/4pvaulo6yo47kb9/lab_7.2.mp4?dl=0
(you just can disable sound, cause i've recorded it in russian) 7-15 minutes of this video
Other option is to organize live-preview yourself using IDE features and/or nodejs
This will work as long as you are working on front-end (mostly non-worklight api) part.
You need to include this lines in the index.html
<!-- ionic bundle & css -->
<link href="www/ionic/css/ionic.css" rel="stylesheet">
<script src="www/ionic/js/ionic.bundle.js"></script>

GWT - DevMode: 'gwt.google.com not found' - 'Cannot display web page'

really need some help.
I have been working for the past 3 days trying to get a webpage to open when I run my web based Java-GWT-eclipse program. IE gives me error "Internet Explorer cannot display webpage" and chrome says "The webpage is not available- The server at gwt.google.com can't be found, because the DNS lookup failed."
I have tried this project on multiple other computers with an older eclipse-gwt plugin installed and it works great. All of these computers are dev boxes and do not have internet access. It does, however, have a solid connection to the database (SQL dev works fine).
what i have tried
copied eclipse and gwt plugin files from another dev box and installed. Gave me above error.
deleted/ uninstalled everything and installed newest version eclipse and gwt plugin. I was able to install gwt in eclipse but it could not locate GWT-user.jar file and would not allow me to create project.
Tried #2 again, same problem. Tried again on another computer, same problem.
Applied older version SDK to newer eclipse version. Gave same error as posted above/ #1.
ran wireshark on a working dev and the problem dev and the problem dev box was trying to communicate with google while the good one was going to some local IP address.
messed around with every setting in eclipse and nothing has worked.
What is left to try??? I am going insane.
What is the web page you are trying to open: http://gwt.google.com ?
Does this page load if you write the url directly in the address box of your browser ?
Does Internet work in that computer? try to access google or any other page.
This error is a clear case of a miss-configuration on your PC internet stack:
The server at gwt.google.com can't be found, because the DNS lookup failed.
What does return this command in your console?
nslookup gwt.google.com
EDITED:
After reading your comments I figure out what is happening: your browser has not the gwt-plugin installed, so the first time it connects to a gwt-dev-mode app, the app redirects it to the gwt site to download the plugin and install it.
You have either, connect this computer to the internet to install the plugin the first time it is requested, or download the plugin and install it manually.

Hosting chrome extension in github

I have developed a chrome extension and want to know how to host the .crx in github.
I also saw this that's similar to mine (i.e. hosted in github):
https://github.com/franverona/MarkAsRead-Chrome-Extension
but the installation instructions seem complicated (haven't tested even that will work).
Q:
Has anyone succeeded in hosting .crx in github and have users install it with just a click?
(basically satisfying header constraints given by google at
http://developer.chrome.com/extensions/hosting.html)
ok, so this is what ended up:
Hosting in our own server doesn't work in latest versions of chrome. It directed me to google chrome's support section stating that they have disabled it altogether for security reasons
So the only option left (as i didn't want to host it in chrome web store) is manual install - users have to download my extension and drag and drop it onto chrome://extensions page
I chose google code (downloads section) as compared to github for hosting my .crx because in github download is not straightforward.
More details: in github user has to download in 'raw'. It may not be straightforward for users - if they say 'Save as' against .crx without going to raw view then they end up getting git mashed up file (in other words not the original file we upload)

Grails Facebook-Graph Plugin Oauth2

We have been using the Grails Facebook-graph plugin for a while now - it has been working perfectly until earlier this month when FB apparently turned off their old authentication scheme, and indirectly forced everybody to use oauth2 instead.
This post from FB https://developers.facebook.com/blog/post/525/ describes the changes, and the issue in the Grails plugin seems to be that it does not comply with the new standard.
The main issue appears to be in the way the active user data is being maintained in the plugin. This is currently based on the FB provided cookie "fbs", which contains all the necessary session data related to the active user. Unfortunately, this is no longer provided by FB (apparently replaced by a "fbsr" cookie instead).
I have searched the FB documentation, and in various forums for details on how to upgrade the plugin, but unfortunately without luck.
Can anyone help with a hint or two on what steps should be performed in order to get the plugin updated?
EDIT: I think the updated version of the plugin (0.14) has been pushed the public repository. You should try grabbing that one first before reading the rest of my answer.
It looks like the plugin maintainer, Jesus Lanchas, made some updates over the last few days to enable oauth2 support. It has not been pushed to the plugin repository yet, but I was able to get it working with my project. Here's what I did:
#Install a local copy of the plugin WITHIN my project
mkdir plugins-local
cd plugins-local
git clone git://github.com/chechu/grails-facebook-graph.git
mv grails-facebook-graph facebook-graph
Update BuildConfig.groovy and tell grails where to load the plugin from. I put this line before grails.project.dependency.resolution
grails.plugin.location.'facebook-graph' = "plugins-local/facebook-graph"
Uninstall the existing facebook-graph plugin from my project
grails uninstall-plugin facebook graph
This is a temporary solution for me until the offical update hits the repo, but it allows me to make sure I'm using the same new code everywhere.
EDIT: we released our Facebook Grails SDK on GitHub :
https://github.com/benorama/facebook-grails-sdk.
Currently only tested on Grails 2.0…
Any feedback is welcome before we release it officially to Grails.org.
Indeed, it looks like Grails Facebook-graph plugin does not support OAuth2 Facebook authentication (which is required since October 1st 2011).
We have already ported the official PHP SDK V3.1.1 to ColdFusion 9 (https://github.com/affinitiz/facebook-cf-sdk).
Last month, we started to implement it as a plugin in Grails 2.0.
It is currently at an alpha stage so we have not released it yet, but it is working on our prototype.
To connect to the Facebook Graph API, it uses RestFB internally.
If you want to give it a try and give us some feedbacks, let me know, I'll sent it to you by email.