I'm a newby w.r.t. C#, and want to translate multiple text.
Previously I used the Bing translation service, but now I want to move over to the new Azure methods.
I looked at a lot of C# examples, but just cannot get it working within my Application. The bottom line what I want to do, is provide the "Key", the text, from/to language, and then receive the translated text.
Does anybody have a good example on how to do this.
I did find a workable example here: :-) https://github.com/MicrosoftTranslator/GetAzureToken
But, then I could not get this going within my application. :-(
Any help would be appreciated.
Kind regards,
Michael
Related
I've been through the forums for a few days, and I'm afraid I still haven't found an answer. So please excuse me if it's already somewhere else. And please tell me where you found it?
But I'm writing a GUI for my Master's thesis that needs to display scientific data on the biomass and catch rates of different species. Following suggestions in various forums/blogs, I'm using Interactive Data Display (previously D3). Unfortunately, I need to change the color to match the species, and the line type to match the management type. And I can't figure out the latter.
I followed this example but get my data from elsewhere in the programme.
I know D3.js lets you change the pen but C# apparently doesn't? Any help (including a different plotting package that does have the looked for functionality) to set the line-style to dashed would be appreciated.
I am working on a Xamarin iOS project trying to display a list of the most likely locations based on the user's GPS coordinates using either the Place Picker or GMSPlacePickerViewController from the google maps API, as shown in this Swift tutorial.
However I can't seem to find any decent tutorials using C#. I don't want to display the map to users I simply want to retrieve the list of most likely locations based on the coordinates.
Any guidance would be greatly appreciated as I'm at a bit of a loss about how to use the google maps API to achieve this.
Okay answering this for anyone coming after me and trying to do something similar.After lots of searching I have realised it is possible to use the nearbySearch method from the Google Places API Web Service to retrieve a list of addresses near particular coordinates within a specific radius (in metres). You can optionally specify the type of addresses you are searching for, e.g. Restaurants.
Not sure how I missed this but there is a Place Search demo at the bottom of this page;
https://developers.google.com/places/web-service/
I've been trying to see all day if it's possible to write a web app in C#/asp.net that uses the google search engine. I've been googling about it all day. I don't want the custom search api because I'm not looking to have a search engine search through a site. I want to have my web app pass input to the basic google web search that search the entire net not a particular site so I can then parse through the first page of the search results. I put that in bold because it seems like the custom search api is for searching a particular site (my own site) which is not what I want to do and yet the only thing I could find. (well for the most part at least) The closest answer I found to my question is this https://stackoverflow.com/a/4082976/5607333 Which might do the trick for me but I don't know how to do that. How do I send search input to google search and get results using html? (or in my case asp.net) If you think it's the answer to my question can you please post an example of how it's done? I say "think" because I'm not sure it's the answer to what I'm asking.
I hope this question isn't considered a dupe to the question I linked to as I have been way more specific than it.
Also if this task isn't possible in C#/asp.net but possible in another language can someone please post an example of how it's done in that language or a link to it?
Update: I figured out what an easy solution is to this it hit while I was looking at another question similar to my problem. The solution is to edit the url and then i assume you could just concatenate it in C# with the + sign.
Update: 2 Even though I figured what I specifically was having trouble with at the moment of writing this question I still doesn't why I can't find a google equivalent of this https://msdn.microsoft.com/en-us/library/dd251020.aspx that's not depreciated. I read an answer to another question on here where someone said it's because that's how they make their money off the ad results but if that's true it still surprises me.
Look this question:
Adding Google's standard search (not custom) to my website
you can use your own XML parser to customize the display for your search users.
with an http request like this:
GET /search?q=bill+material&output=xml&client=test&site=operations
But it has a limitation on number of requests per day, 500 or 1000 I guess
I want to import data by giving the searching option in c#. I am using SQL server database to save this data. Please help me what would I use and how to proceed. I think whether I would use a Google search API or a web crawler. I tried for Google search API but this is not helpful.
Very little information, you need to make sure that when you are creating posts that you clearly specify what you are attempting to do and what code you already have. You'll find that just asking how to do something isn't received well by the SO community, try and when you fail, we'll help.
Now, I'll give you a nudge in the right direction with what you are trying to do. Read up on how to incorporate SQLDataReaders into your application. Link below:
http://www.dotnetperls.com/sqlcommand
Ok. I thought I would fix this rather easy, but I'm not getting anything to work for some reason. What I want to do is simple; I want to create a web part displaying the latest tweets from a specific user. I'm coding C#.
I found a great post here but it's using php.
Can anyone help me to perform this simple task?
You can find alot examples over internet
Web:
http://www.microsoft.com/web/post/learning-the-basics-of-using-the-twitter-api-in-aspnet-web-pages-with-razor-syntax
Console:
http://www.d80.co.uk/post/2011/02/13/A-Simple-Twitter-Client-in-C-with-OAUTH-using-TweetSharp.aspx
:)