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,854 other subscribers

Archive for 2011

Lenovo Support – Power Manager for Windows 7 (32-bit, 64-bit), Vista (32-bit, 64-bit) – ThinkPad

Posted by jpluimers on 2011/04/08

So I won’t forget: Lenovo Support – Power Manager for Windows 7 (32-bit, 64-bit), Vista (32-bit, 64-bit) – ThinkPad.

–jeroen

Posted in Power User | Leave a Comment »

Got my Linksys WRT54GL working as a Client Bridge using dd-wrt: Client Bridged – DD-WRT Wiki

Posted by jpluimers on 2011/04/08

My primary wireless router is at the ground floor.

They made a small error when building our house some 15 years ago: all the spare PVC pipes running up stairs that were meant for additional cabling are full of concrete, so no way to get any network cabling upstairs.

I don’t need a lot of band width upstairs, but some of the devices are wired.

Solution:

  1. dig up my old Linksys WRT54GL router with hardware version 1.1
  2. ditch the Linskys firmware from my good old
  3. install dd-wrt mini as described on the dd-wrt Linksys WRT54GL pageI installed build 13064, the currently recommended build in the router database.
  4. run the steps in the Client Bridged – DD-WRT Wiki article (this YouTube video was also instructive, but the steps are better)
  5. connect a wired appliance

In fact, I had to make one change: the primary network is on 192.168.0.X, so the Linksys dd-wrt router is now on 192.168.0.50 (which is outside of the DHCP range of the primary router).

And I took a shortcut: I joined the WLAN of the primary router (on the site survey page)  instead of entering all the WLAN info manually.

It works, and took me less than 15 minutes total.

I could have gone one step less (Client only, which puts your LAN behind a NAT) or one step further: configure it into a Repeater Bridge (instead of a Client Bridge).
That would allow WLAN clients to my WRT54GL as well as LAN clients.
Right now I don’t need that.

Another option is Repeater Mode (where the WLAN and LAN clients of the WRT54GL are on a different subnet than the primary router).

Finally, if you run into trouble, read this thread on the dd-wrt forum on Broadcom based devices it contains a truckload of info in a very concise way.

–jeroen

via: Client Bridged – DD-WRT Wiki.

Posted in Power User, WiFi | 5 Comments »

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 »