How to called google earth function using vb - vb.net

i build a software using vb , and now , i want to call some function in google earth ,
what can i do ,
thanks

The Google Earth API is JavaScript based, so it doesn't matter what your server is written in; just write the JavaScript you want in your client web-pages.
If you are not writing a web page, this is probably the wrong API. For rich clients, consider things like MapPoint.

If you are using winforms then you could always add the type library and then call the COM functions as required.
http://earth.google.com/comapi/
That said the COM API is now depreciated so developing for it might be a waste of time...
http://www.gearthblog.com/blog/archives/2010/09/the_google_earth_com_api_is_being_p.html
It is now recommended to use the javascript api for Google Earth applcations - you can see an example control library for windows applications using the js api here, it is .NET but c# rather than VB -
http://code.google.com/p/winforms-geplugin-control-library/

Google seems determined to push people off the COM API, as every "link" to documentation gets redirected to the same "Sunset for the Google Earth COM API" Google Geo Developers Blog.
8-/
I'm curious why Google hasn't developed a better and clearer API to GE. I presume it's something marketing related. It seems to me they'd really capture a larger development audience with a straight-forward, simplistic API. I find some of the calls a little head scratching.
In any event, has someone created any kind of .NET wrapper class to abstract the JS API? I've been rooting around looking for one, but so far no go.

Related

How to integrate wit.ai With my own chatbot application

I would like to create my own web chatbot and i like to integrate my app with wit.ai for natural language classification.I need to know how to integrate wit.ai service(through api call) with my application(any language in backend).i am using C# in front end.I have gone through the integration part Which posted in wit.ai website.But i don't know how to connect it .Could anyone send me a integration details little briefly
I think the short answer is its similar to how you would call any other APIs from your application server components. Wit exposes multiple APIs like message, speech and converse which you can call by passing the Authorization token and other payloads and make use of the API response in your application.
You can use message API if you are only interested in extracting
intent and other atributes of the sententense
Use speech for building voice based application and
Converse if you want to build a little more smarter app. Currently you can only pass text for converse APIs.Hoping they will introduce voice option for this soon.
Now to make things simpler, they have also provided SDKs in various languages like node-wit, pywit etc. So if you want to build your server side logic using on nodejs or python you can use these SDKs. The advantage is that you dont have to manage raw APIs calls and instead it is all managed by SDK. Also, other big advantage is that you can make use of runActions method which encapsulates converse API and make things simpler. If you want to build in nodejs then the messenger example is a good starting point. You can borrow all this logic/concept in your app and replace FB related calls etc with your custom bot. For Python you can look at the below link
https://github.com/wit-ai/pywit/pull/55
Also, you can explore the options like using other frameworks like botkit if you plan to integrate wit with other chatbots like FB messenger or slackbot as these frameworks provide more flexibility and ability to easily switch to different chatbots in future. But they don't seem to properly support the converse API of wit.
You are specifically looking for integration details. Since you are using c# for frontend app, natuarally the best option would be to use c# for backend as well. In which case you will be left with directly calling wit APIs from your backend as I think there are no SDKs in c#. If you want to make use of SDK in node or python etc then you will have to build a rest based backend (for example) which can be invoked from your c# application. I am currently working on a nodejs app and integrating it with wit using node-wit. I can share some code once its ready but i dont know when I will be able to finish it. For bootstrapping my application I have used this node application. If you have some understanding of node then you can look at the /server/controllers logic. Similar to this application I have built a witController which uses runAction to interact with wit and I am calling this from front-end when user submits a message to your bot. The biggest challenge in runAction is to figure-out a way to send back the wit response to your front-end and get follow up response from user. Wit sends the response in Send method as you can see in the node-wit's messanger example.
Hope this helps!

Kimono Desktop Stopped Working?

Anyone having trouble building API's with the new Kimono Desktop app. When I click create API the browser just stays on create API screen loading but nothing happens.
I even tried building an API that is the same as one I built when Kimono was still in business and no luck.
My existing api's still run and pull data fine.
Working just fine here.
Just a shot in the blue...did you install the new extension specifically for the desktop app? The old one can't work anymore since Kimono disabled the online service.
You can't build new APIs I think - only existing ones. :( Said something like it was not the acquiring company's policy to provide this publiclu available service but since they did not know how many businesses depended on their APIs they decided to allow existing APis to run.
You can also use their software for replace the online API. But it's an abandonware.
It's working great but on some website I can create new API because of an error.
I just find a possible (free) product that can replace Kimono : Datascraping.co.
They will include an REST FULL API within few days / weeks, as they said here.
It's a good software, but comparing to Kimono Desktop it's a little much more complicated.
Kimono got bought out and it's not working anymore.
Import.io is good but it kinda expensive for me. I've tried the free trial before but see the price starts from $249, so... https://www.import.io/standard-plans/
I don't have any progamming skills so I know very little about some web scraping frameworks like Scrapy.
You may want to look at this new web scraping software called Octoparse.
In case you want to know, here is the link:http://www.octoparse.com/
It takes a little time to begin. But they have rich tutorials on the website. Plus it doesn't require programming skills.
They provide cloud-based scraping service and API access.
You can use it to create API but you have to pay for the service. Free version doesn't have the API and cloud service.
I've been using it for 2 month with the Standard plan $89, which a lot cheaper than import.io. So far so good.
Hope it would be helpful for you.

VB.Net and Soundcloud

I haven't see anywhere how to get a song to the vb.net
I wanted create a player after pasting a soundcloud link that would play it
Anyone can help?
SoundCloud exposes an API you can use to leverage your VB.NET application. It's pretty easy to get up and running with. You can read more about it here.
All you have to do is make a HTTP request to the SoundCloud API which will process your request and return some JSON that will contain the information you requested.
I happen know of a guy who developed an application called SoundCloud Desktop using VB.NET.
The source code is not available for free but he was kind enough to release a VB.NET wrapper for the SoundCloud API.
Personally, I have not used it but it should be simple enough to get it working.
SoundCloud VB.NET Wrapper on Pastebin
VB.NET HTTP Wrapper on Pastebin (you need this too!)
Here's a screen shot of SoundCloud desktop:
Using a SoundCloud API wrapper written in .NET will provide the quickest route to accessing the functionality you're after, for example:
SoundCloud.Api.Net

What is the difference between Google Apps Scripts and Gadgets in Google Sites

I am getting familiar with Google Sites. What I want is, building a Site front-end for a Google Spreadsheet.
I want to Display data from the Spreadsheet in the Google Site, later maybe some graphics as well. To my knowledge there are two ways to accomplish this, Apps Scripts and Gadgets. Building a Gadget seemed much more easy in the beginning, however gives me some trouble. After reading more about Apps Scripts I finally found a way to access the Spreadsheet and display data.
But reading a lot of google documentation, I wonder what really is the difference? In what cases should one use Gadgets and in what case Apps Scripts?
Maybe I am just a little overwhelmed but it would be nice to get some feedback from experiences developers in that field!
Thanks a lot.
Cheers,
Daniel
Google Apps Script is javascript, but run in server side. So it is not client side javascript like javascript Gadget or any HTML.
Google Apps Script use GWT, which generate client side Javascript.
Gadget is XML code containing HTML inside
which means gadget is text.
Google Apps Script is kinda JavaScript
which means GAS is code.
Might be the main difference.

Set instant messenger display message programmatically

Would a script that sets display messages for instant messengers be simple or complex? After some searching, there doesn't seem to be any information about this at all.
For the sake of an example, if I had a text file of quotations, would it be possible to have the google talk display message change to a different quotation hourly?
Depends on which client you're using. As far as I know, Google's client doesn't offer any interface for plugins, but the open source instant messenger Pidgin does. I think there already is a plugin for what you want to do, but you can write your own using the documentation and examples they give you.
The complexity of writing something like this is based on how much C or Perl you know, since you can program in either of those for Pidgin. Reading code from other people's plugins, you should be able to figure out the Pidgin API.
You can use Kik API to programmatically send rich content and files between mobile applications. It is available for iPhone and Android platforms and takes only about 5 lines of code to integrate into your app. There is more info at the API website: http://www.kik.com/dev
Disclaimer: I'm on of the developers behind Kik API :)