Kamis, 07 April 2011

Silverlight: How to Communicate with Desktop Application via HTTP

IntroductionThis article is a free continuation of How to Receive Messages from a Desktop Application and How to Send Message to a Desktop Application where the Silverlight application communicates with the standalone .NET application via TCP. In this article, I would like to show how to implement the communication via HTTP. The example below implements a .NET application as a service and a

Android Fundamentals: Working With Content Providers

The TutList application that we’ve been working with has a pretty big flaw right now: the article data is not “live”, but static content. In this tutorial, you take several more steps towards a flexible and expandable solution by modifying the application to act as a data-backed content provider. The Android framework uses a concept called content providers to enable applications to share and use

WCF ExceptionHandling in Silverlight

I have recently done some LOB application development in Silveright in which we used a WCF service to communicate to the backend. There was an unexpected surprise that Exceptions throw in the WCF service were not transferred to the Silverlight Client! In Silverlight you always get a System.ServiceModel.CommunicationException: The remote server returned an error: NotFound.... error. We wanted to

Getting something better than “Server not found.” from WCF in Silverlight

When developing applications in Silverlight it is inevitable that you will need to perform a request back to the server for data or processing. The common practice is to use Windows Communication Foundation (WCF). I find that WCF usually handles all of my needs and it works well when everything is happy and just right. However, if anything is not in its correct place, we can have tons of problems

HttpContext.Current returning null when using NetTcpBinding in WCF4

When using NetTcpBinding, not all of the features of WCF are available, particularly those using HTTP. NetTcpBinding removes a dependency on HTTP (and IIS as a result, allowing the service to be hosted in WAS instead.) HttpContext.Current is one of the features in WCF that is not available when using NetTcpBinding.Read more: WF, WCF, and AppFabric notes Posted via email from Jasper-net

Memcached for Dummies

The other day I was chatting with a colleague about Memcached.  Eviction policy came up, and I casually mentioned that Memcache isn't strictly LRU.  But a quick Bing search said Memcache is LRU, like this Wikipedia entry.  Hmm, I was 99.9% sure Memcache is not LRU, something to do with how it manages memory, but maybe I was wrong all these years.  After reading through some Danga mailing lists

How to implement Template Binding in Silverlight Custom Control?

Continuing to our 2nd chapter of the series here on Silverlight Custom Control. In this chapter we will discuss on dynamically setting the Content and other properties to our Custom Control that we implemented earlier. After reading this article, you will be able to create properties and set content dynamically to your control.  So, lets start describing them and learn something again today.

10 Steps to Initiating an OpenStack Cloud Service

OpenStack currently consists of three main components: Nova (Compute), Swift (Object Storage), and Glance (Image Service). There are some other projects such as a dashboard and mobile apps as well. You can see the full list here. This is great start, but in order for OpenStack to compete long term, other infrastructure and platform services will need to be brought in. I’d like to talk about the

טיפ: איך לעבוד עם jQuery בתוך ויז’ואל סטודיו 2010

כדי לספק ממשק משתמש עשיר וחוויתי באפליקציות Web, קשה להמנע כיום משימוש בספריית JavaScript כלשהי. jQuery היא ספריית ה- JavaScript הפופולריות ביותר כיום, ואם עדיין לא יצא לכם להתנסות בה, כדאי שתציצו במדריך jQuery באתר וובמאסטר. פוסטים קשורים שכדאי לקרוא: NuGet – תשתית קוד פתוח לניהול ספריות ותוספות לאפליקציות Web jQuery בגירסה 1.5.1 כעת תומך באינטרנט אקספלורר 9מיקרוסופט תורמת קוד ל- jQuery (מנוע

Mono Android and iPhone Updates

Today we are happy to release Mono for Android 1.0 as well as MonoTouch 4.0.Both products allow you to use the C# language to write applications that run on Android and iOS devices. Both products are based on the latest Mono 2.10 core. The Parallel Frameworks can be used to write more elegant multi-threaded code across all devices, and automatically takes advantage of multiple cores available on