Imagine Cup 09 results

We did not make it to the top 12. The results sourced from the imagine cup blog is:

Software Design

First place: Romania — SYTECH

Second place: Russia — Vital Lab

Third place: Brazil — Virtual Dreams

Embedded Development

First place: South Korea — Wafree

Second place: China — iSee

Third place: Ukraine — Intellectronics

Game Development

First place: Brazil — LEVV It

Second place: United States — Epsylon Games

Third place: United Kingdom — Sanquine Labs

Robotics and Algorithm

First place: Czech Republic — Lukáš Perůtka

Second place: Canada — Byron Knoll

Third place: China — Lin Fuming

IT Challenge

First place: Romania — Cosmin Ilie

Second place: China — Wu Chang

Third place: Bolivia — Miklos Cari Sivila


First place: United States — CURIOS

Second place: Poland — Monastery of Innovations

Third place: Singapore — PlanetKY


First place: Croatia —Voodoo Delirium

Second place: Singapore — Woolgathering

Third place: Japan — Terada

Short Film

First place: United Kingdom — Fulham Four

Second place: India — ChennaiCoolers

Third place: Ukraine — Just4Fun


First place: Brazil — Willburn

Second place: United States — eXchangeFun

Third place: France — Paindepices

Interoperability Award:

First Place: Brazil — Proativa Team

Second Place: Poland — Fteams

Third Place: Jordan — ECRAM

Unlimited Potential Design for Development Award:

First Place: Malaysia — COSMIC

Second Place: China — Unique Studio

Third Place: Malaysia — Capricorn

Unlimited Potential MultiPoint Education Award:

First Place: India — Trailblazers

Accessibility Award:

First Place: Saudi Arabia — ATST

Accessible Design Award:

First Place: United States — eXchangeFun

Parallel Computing Award:

•First Place: India — Biollel

Tablet Accessibility Award:

First Place: United States — Auratech

Second Place: Brazil — IC-UNICAMP

Live Services Award:

First Place: France — Help’Aged

Second Place: Serbia — BrainWave

Windows Mobile Award:

First Place: Croatia — Team Explorer

Second Place: Indonesia — Big Bang

Third Place: Brazil — Virtual Dreams

H.E. Mrs. Suzanne Mubarak Special Award:

First Place: Poland — kAMUflage

Second Place: Egypt — Big Buddy

Third Place: France — WikiChildProtect

Posted in RAIN | Tagged , , | Leave a comment

Preparation for Imagine Cup 09 Finals

Today is sunday, the finals is Saturday and I’m still coding. No presentation script has been written for the demo as yet. We have our storyboard and outline for the demo. I need to upload our Azure project to the live windows azure server and our silverlight application into the live mesh and do some testing against those.

What needs to be done for finals:

  1. Complete local and live testing.
  2. Implement Crop rotation in the map.
  3. Configure map backend to work with elastic farming logic.
  4. Hook up live data to Farm and Crop Tab.
  5. Complete Crop Adding for Advanced.
  6. Setup PDA alerts tab with Mesh.

All of this can be done in the next 3 days if i do not sleep… else, I’ll be coding on the plane to Egypt …

Posted in RAIN | Tagged , , , | Leave a comment

Silverlight/WPF – Binding object properties to multiple elements

Technical Level: Beginner

Problem: Binding an object to multiple elements/controls on a xaml page.

Solution: Very simple, just put all your controls in a container and bind the object to it using the DataContext property.

Posted in Silverlight, Windows Presentation Foundation | Tagged , , , , | Leave a comment

Generating Silverlight WCF Proxy Class Manually

Technical Level: Intermediate

Problem: For some developers, when using visual studio’s built in service reference proxy generator tool gives an error when generating the client code. This is when I try to add a service reference in the solution explorer of visual studio. Usually it would say “Not support relative URI” when it reaches the section to generate the proxy class. This problem occurred in silverlight 2.0 beta, 2.0, 3.0 beta development projects for 2 different machines.

Required Tools:

  • Silverlight Tools and SDK (Works with Silverlight 2.0 +)
  • Visual Studio

Solution: My solution only works if visual studio partially creates the webservice in the solution explorer. Meaning if you browse to the physical location of the project and view the Webservice folder in the Service References folder created by visual studio, there is a file called “Reference.cs” there.

If visual studio does not create anything at all for you, you can create this file and paste in the generated code(method shown below). You can add this file anywhere in your project.

  1. First of all, start the WCF service. Mine is hosted at “http://localhost:81/CME/CMEService.svc”.
  2. Go to this directory “C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Tools”  and make sure “SlSvcUtil.exe” exists. If that directory does not exist, just browse the silverlight directory for the SlSvcUtil.exe program. This tool generates the client/proxy code from the wsdl of your WCF Service.
  3. At the same directory as the tool, make sure that “System.Windows.dll” exists and also make a copy to the root of the C:\ drive. If you do not have this dll, search for it in the .NET folder or do a search of Program Files folder.
  4. Open command prompt ( Press Wnd + R then type ‘cmd’ ).
  5. For ease of use, change your directory to the folder of your tool, eg “cd C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Tools”
  6. Now to generate the service reference code. Type in command prompt: slsvcutil {Location of my wcf service} l /edb /namespace:”*,{Namespace in client project}” /ct:System.Collections.Generic.List`1 /r:”c:\System.Windows.dll”. For eg. –  slsvcutil http://localhost:81/CME/CMEService.svc?wsdl /edb /namespace:”*,RAINLight.CMEWService” /ct:System.Collections.Generic.List`1 /r:”c:\System.Windows.dll”. You can change your default list type to ObservableCollection or any Generic type you want to be created as data is received from the service.
  7. A C# file with the generated code will be created in the folder of the tool with the name of the WCF Service. eg. “CMEService.cs”. Copy the contents of this file into the “Reference.cs” file in your project or the file you manually created to store this proxy class.

Conclusion: I have no idea why visual studio’s tool wont work and neither do I have any idea how to fix it. This problem shows up on 2 seperate machines with each having their own installation files of visual studio and silverlight tools coming straight from Microsoft’s website.

Posted in Silverlight, Windows Communication Foundation | Tagged , , , | Leave a comment

Test Windows Mobile Device Against Localhost Webservice

Technical Level: Intermediate

Problem: To test the emulation of Windows Mobile against a web service hosted in localhost has been a problem for many developers. I have yet to find an official method of using the device emulator in visual studio to connect to a localhost web service.

The problem occurs because if you add a web service to the mobile device project in visual studio, it sets the reference URL to localhost. This will tell the application to connect to the localhost of the mobile device, whether real or emulated. Using the computer name may not work for many people because visual studio’s test environment will not allow calls from outside to call to the development’s localhost.

Required Tools: These are tools that I have worked with to get this to work.

  • Windows Vista
  • Visual Studio 2008
  • Windows Mobile SDK
  • Windows Mobile Center
  • Fiddler 2.

Solution: Assuming you have all of the above tools installed. We will add a proxy to the mobile device connection settings. We will get around to setting up fiddler to work with our mobile device.

Visual Studio

A specific port will need to be set on the Visual Studio Development Server to work correctly with fiddler. In the solution explorer pane, right click the web project that will be hosting your web service and click properties.

Visual Studio Web project

Visual Studio Web project

In the Web Tab, under Servers, select the Specific port radio button, and select a port. I am using port 81 for my development purposes.

Visual Studio Web Property

Visual Studio Web Property

In the solution explorer where you have your mobile device project, right click the web service you added, go to properties and in the Web Reference URL block, place a dot before the colon of the port number. This dot allows fiddler to intercept the messages sent.

Mobile Web Service Properties

Mobile Web Service Properties

Secondly, we are going to change the URL in proxy located in the Reference.cs generated by visual studio. Back in the solution explorer, right click the web service, click view in object browser. I have my client side projects in another solution that I am working on so the image may differ from previous solution image.

Web Service Solution Object

Web Service Solution Object

Next we have the object browser showing up. Find a generated object, right click it and select Go To Defintion. This takes you to the Reference.cs generated for that specific web service.

Visual Studio Mobile Project Object Browser

Visual Studio Mobile Project Object Browser

At the very top of the Reference.cs file where the Service class is created, there is the URL of the web service assigned to a Url property. Place the dot after the localhost, before the colon for the port and save the file. DO NOT EDIT ANY OTHER PART OF THIS FILE. If you update the service reference, you will need to come back here and change the URL manually again.

namespace RAINMobile.RMEWService {
 public partial class RMEService : System.Web.Services.Protocols.SoapHttpClientProtocol {

 /// <remarks/>
 public RMEService() {
 this.Url = "http://localhost.:81/RME/RMEService.svc";

Mobile Device Emulator

If you have not cradled or connect the device to the desktop, run the tool Device Emulator Manager which is found in visual studio, go to the device that you want to test on, right click it and select cradle. We now need to change the proxy of the emulated device that will have a connection to our desktop operating system via the  tool. Change the proxy to in the device.

Mobile Device Internet Proxy

Mobile Device Internet Proxy


We are going to add a custom script to re-route calls to the fiddler proxy to the machine’s localhost. In the toolbar, go to Rules then Custom Rules. The script will open, search for this function: “static function OnBeforeRequest(oSession: Session)”. In that function, add this piece of code:

if ("")


Apparently in Fiddler 2.2, something has changed. Now I have to programmatically remove the dot. Some random IP can be used in the windows mobile proxy settings, but the port has to be whatever port fiddler is listening on (default: 8888). This is the new source is:

if ("localhost.:81") //Intercepts the host
{""; //remove the dot and redirect to the IP for localhost

The 81 signifies the specific port set for the visual studio development server. If you change the port in visual studio, you will need to change it in fiddler script also. Ports have to be consistent in the mobile application and the web service.


Until an official solution to this problem is released by microsoft or the mobile device development team, this is one of the methods used in connecting the emulated windows mobile application to a webservice hosted in localhost.

Posted in Mobile Development | Tagged , , , , | 33 Comments