[Solved] Same Origin Policy, Javascript/jQuery AJAX and retrieving an RSS XML feed

There are three ways to get around the Same-Origin Policy: Proxy — as Strawberry Sheurbert did, perfectly effective but a waste of bandwidth and computing power JSONP — loading the data through the script tag. Needs cooperation from source website and basically hackish and clumsy. CORS — the “right” way, elegant and nuanced, but needs … Read more

[Solved] share a message in Linkedin via windows phone

If you want to use the LinkedIn API you’ll need to connect via OAuth. (You can do this with Hammock & a WebBrowser control.) Once connected you can call their REST API. Alternatively, or possibly as a starting point, you could look at http://linkedintoolkit.codeplex.com/ but it doesn’t look complete. solved share a message in Linkedin … Read more

[Solved] Find out if guessed number is higher, lower or equal to Random number, or guessed before etc

Store your guesses in a list private List<int> _guesses = new List<int>(); After calling MakeGuess(guess) add the guess to the list _guesses.Add(guess); Instead of the foreach loop do this if (_guesses.Contains(guess)) { return outcome.PreviousGuess; } The last else can be simplified from else if (Number > guess) { return Outcome.Low; } to else { return … Read more

[Solved] A problem with segmented file write

You don’t need StartPosition, fileStream.Seek() and Buffer = new byte[bytesLeft]; Also the lock() shouldn’t be necessary (if it is you’ve got a lot more troubles). So remove all that because the chances are you got some of it wrong. And if it then still doesn’t work, edit the question and provide more information. There is … Read more

[Solved] How to get data from C# WebMethod as Dictionary and display response using jquery ajax?

Type “System.String” is not supported for deserialization of an array. It’s not clear to me why this code is giving this error message. But you may be able to simplify some of this serialization anyway. Since the method is just expecting a string, give it just a string with the expected parameter name as the … Read more

[Solved] Unreachable code ; i dont understand why it is unreachable

First, analyse your code, Have a look at block case 3: { System.out .println(“You head towards Moat Caillin. the journey is swift and you are greeted by the Lord of Moat Caillin”); System.out .println(“The Lord of Moat Caillin offers your his company for dinner. type in your desired option”); System.out.println(“1: accept the lords offer.”); System.out.println(“2: … Read more