The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for April, 2011

Mono for Android 1.0 released: develop .NET software that runs on Android

Posted by jpluimers on 2011/04/07

Just released: Mono for Android.

This – like MonoTouch for iOS – allows you to develop, debug and deploy Android applications using .NET

Mono for Anroid includes Visual Studio 2010 integration.

If you have a MonoTouch license, you temporarily get a discount on Mono for Android.

Now you can use .NET for the major mobile platforms: iOS, Android and Windows Phone 7 sharing major portions of your code across those platforms.

–jeroen

Posted in .NET, Development, Mono for Android, MonoTouch, Software Development | Leave a Comment »

Visual Studio 2010 “Solution Explorer Tools” addin: Collapse all, Select current item, Collapse all except current item. Highly recommended.

Posted by jpluimers on 2011/04/07

When you have lots of projects in a solution, quickly the tree in the Solution Explorer gets a mess, especially if you have “Track Active Item in Solution Explorer” enabled.

“Solution Explorer Tools” addin for Visual Studio 2010 helps with that.

It adds three buttons to solution explorer

  1. Select current item
  2. Collapse all
  3. Collapse all except current item

The first one basically means you will never need to enable “Track Active Item in the Solution Explorer” again.

The second and third quickly get rid of the mess in the Solution Explorer.

Highly recommended!

–jeroen

via: Solution Explorer Tools.

Posted in .NET, Development, Software Development, Visual Studio and tools | Leave a Comment »

Visual Studio 2010: some entries in the Error List are not Errors, Warnings or Messages, but are still indicating a problem

Posted by jpluimers on 2011/04/06

The below message in my Error List is not an error: it has a red exclamation mark, which falls outside the category Error (Red bullit with white cross), Warning (Yellow triangle with black exclamation mark) or Message (White bullet with blue lowercase i).

Bit it is still indicatint something was wrong:

1 Failed to copy project output to file C:\tfs.root\MyServiceApplication\ClientBin\MySilverlight.Client.Test.xap. Access to the path ‘C:\tfs.root\MyServiceApplication\ClientBin\MySilverlight.Client.Test.xap’ is denied. 0 0 MyServices

What it indicates is that the .xap file is readonly, and cannot be overwritten.

The reason is that during checkin in TFS, by accident all the .XAP files were added (by default, .XAP files are not on the binary exclusion list), and I found the answer in this thread.

At the end of the build process, the above message disappeared, but the .XAP file was not replaced, so the project output was not up-to-date.

Ergo: the build should have failed.

The solution was simple:

  1. Remove the .XAP files from TFS
  2. Delete the read-only .XAP files from disk
  3. Rebuild

Now Visual Studio 2010 can regenerate the .XAP files and your project output is correct again.

NB: .XAP files can be in two places, be sure to check both:

  1. The bin\debug or bin\release folder of a SilverLight project
  2. The ClientBin folder of an ASP.NET web project

–jeroen

 

Posted in .NET, ASP.NET, Development, SilverLight, Software Development | Leave a Comment »

Recommended blog post: Favorite C# Idioms | Blue Onion Software

Posted by jpluimers on 2011/04/05

While browsing for some less used but useful C# features, I came across a great post by Michael (Mike) Ward from Blue Onion Software on Favorite C# Idioms based on the great Hidden Features of C# thread on StackOverflow.

Mike starts with

There’s a great post on Stackoverflow about hidden features in C#. I prefer to think of these as idioms rather than hidden features since most are actually documented. Here are my favorites.

Then he continues with some nice examples of C# idioms.

Recommended reading!

–jeroen

via Favorite C# Idioms | Blue Onion Software.

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Development, Software Development | Leave a Comment »

Entity Framework 4 “Error 3004: Problem in mapping fragments starting at line” means you must generate your DB from your model first (Stack Overflow)

Posted by jpluimers on 2011/04/05

Entity Framework 4 is nice, but has very confusing  error messages.

Maybe it is just me, but getting a feel for what each error message means, and how to cure the underlying mistake(s) is time consuming.

For instance, it took me quite a while to find out why this error occurred during a project build:

Error 3004: Problem in mapping fragments starting at line 569: No mapping specified for properties MyEntity.MyValue in Set MyEntities. An Entity with Key (PK) will not round-trip when: Entity is type [MyEntities.MyEntity]

The solution was simple, I had forgotten to manually perform the “Generate Database from Model…” step before building my solution and was glad I found it in this Stack Overflow answer:

Have since discovered that after I add/change/delete properties on my entities I must “Generate Database from Model” before I compile otherwise I get 3004 mapping errors.

Note that this generation is always a manual step; I haven’t found a way to automate that (if you have found a way: please add a comment below).

–jeroen

via: .net – Entity Framework 4 mapping fragment error when adding new entity scalar – Stack Overflow.

Posted in .NET, Development, EF Entity Framework, Software Development | 5 Comments »

Cool Software of the Day: ManyCam – Home – webcam graphics plus use your webcam with multiple programs simultaneously!

Posted by jpluimers on 2011/04/04

Maybe I should start a “Cool Software of the Week” series<g>

About ManyCam:

What is ManyCam?

– Use your webcam with multiple programs simultaneously.

– Add text to your webcam video window with any application.

– Add cool animations to your video window.

– Show your local day and date in your video window.

– Add live CGI graphics like fire and water effects. You can even make it appear as if it is snowing inside your house!

–jeroen

via ManyCam – Home – webcam graphics plus use your webcam with multiple programs simultaneously!.

Posted in Power User | Leave a Comment »

Download Time Calculator | File Transfer Time | Data Transfer Speed

Posted by jpluimers on 2011/04/04

Very simple page to use:

  1. Two easy steps to fill out your fiel size and size units
  2. One simple step to select the transfer speed
  3. Instant time-estimate

The speed list has a nice balance between number of selections, and covering a broad enough magnitude, so it is easy to get a good estimate.

From the speed calculator page:

Use this calculator to estimate file upload, download or transfer speed.  Actual transfer speeds may be a bit slower than these times due to reasons described below.

–jeroen

via: Download Time Calculator | File Transfer Time | Data Transfer Speed.

Posted in Power User | Leave a Comment »

VMware Workstation 7.1.4 and VMware Player 3.1.4 released (Build 385536) #vmware

Posted by jpluimers on 2011/04/01

Earlier this week, VMware released Build 385536 of both VMware Workstation 7.1.4 and VMware Player 3.1.4.

Since I use a lot of USB equipment, I love the fixes they did in that area.

Also, since I use Windows 7 a lot, I appreciate the support for Windows 7 SP1 as well.

–jeroen

Posted in Power User, VMware | Leave a Comment »

Blokkeren premium-sms-diensten is vanaf 1 april gratis | Mobile | Tweakers.net Nieuws

Posted by jpluimers on 2011/04/01

Eindelijk, en geen 1 april grap!

Het gaat niet alleen om kinderen, maar ook voor bijvoorbeeld mensen met een verstandelijke beperking.

Je wilt niet weten hoe lasig het is om – als curator, bewindvoerder, mentor, ouder, voogd – om zaken ongedaan te krijgen die – wettelijk gezien – niet rechtsgeldig zijn.

Ik snap dat SMS-diensten-providers een verdienmodel willen hebben, maar de manier waarop het tot nu toe ging was lastig, tijdrovend en daardoor kostbaar.

Dit is weer een stapje in de goede richting:

Het blokkeren van dure sms-diensten is vanaf 1 april gratis en gebeurt vanaf dan ook verplicht binnen 24 uur. Daarvoor is de telecomwet gewijzigd. […]

Tot nu moest een gebruiker die sms-diensten wil blokkeren nog 25 cent betalen. Om die laatste drempel weg te nemen, is de Telecomwet gewijzigd en is per 1 april het blokkeren van premium-sms-diensten gratis.

Veel mensen willen die blokkade, bijvoorbeeld om te voorkomen dat hun kinderen een ringtone downloaden en ongemerkt vastzitten aan een duur sms-abonnement.Providers lichten inmiddels klanten in over de komende wetswijziging, omdat de algemene voorwaarden worden aangepast.

Het gratis maken van de sms-blokkade via de site Smsdienstenfilter is geregeld in artikel 7.7 van de gewijzigde Telecomwet.

De tijd die het maximaal kost om premium-sms-diensten te blokkeren voor een mobiel nummer is verkort van drie dagen tot 24 uur.

–jeroen

via Blokkeren premium-sms-diensten is vanaf 1 april gratis | Mobile | Tweakers.net Nieuws.

Posted in Opinions | Leave a Comment »