April 2010 - Posts
The Life Hacker Review About Bluetooth Radar
I’ve just saw that my Bluetooth project got a review (and hundreds of downloads :-D) from “The Life Hacker” site.
Life Hacker ||| Life Hacker.au ||| Addictivetips ||| Bluetooth Radar

Ultimate Offer Expires in 4 Days!
Couple of months before Visual Studio 2010 Released I blogged about The Ultimate Offer – TFS For Everyone, your way to upgrade to a newer and more advanced version of Visual Studio.
This is the last remainder – Don’t Miss This Opportunity
Purchase one of the following subscriptions from a retail or Volume Licensing reseller by April 30, 2010 and you’ll automatically be upgraded to a higher level Visual Studio 2010 with MSDN subscription:
- Visual Studio Team System 2008 Development Edition with MSDN Premium
- Upgrades to Visual Studio 2010 Ultimate with MSDN

- Visual Studio 2008 Professional with MSDN Premium
- Upgrades to Visual Studio 2010 Premium with MSDN

If you have any questions or need help with the purchase of Visual Studio feel free to contact me
Where Is “Create or extend Web Application” Link?
I just post about Install MOSS On Windows 7 and stuck with another problem, Where Is “Create or extend Web Application” Link?
To add a new collection to MOSS I need to have a Web Application but I can’t create one because the link is missing.
All you need to do is launch IE with "run as administrator" to see the "Create or extend Web Application".

Enjoy
Install MOSS On Windows 7
In couple of days I’m going to lecture about MOSS\WSS Load Testing using Visual Studio 2010, for that reason I need to install MOSS on my computer – Lot’s Of Cool Demos!
So after a very fast search I found this great article on how to do it - For more information here is the full article
So how to get started?
First you need to download the SharePoint installation -
Windows SharePoint Services 3.0 with Service Pack 1 or Windows SharePoint Services 3.0 x64 with Service Pack 1
But you’ll notice that this message popup, this because MOSS \ WSS can only be installed on Windows Server 2003/2008.
Every Things Is Alright Thanks to Bamboo
Using Bamboo Setup Helper file you can install MOSS \ WSS on Windows Vista \ 7!
Run the setup (next next next).

When the installation has finished placed the SharePoint installation you downloaded before and placed it in the same folder as “SetupLauncher”.
When you run “SetupLauncher” a console window will appears,select SharePoint setup file and run it.
And Walla!

For more information here is the full article
Enjoy
Bluetooth Radar 2.2 - Update

Bluetooth Radar is WPF 4.0 application built in Visual Studio 2010 (RTM) and based on 32feet.net shared source library.
Why?
In the past couple of years Bluetooth become an important protocol for computers and mobile devices, many times I find my self need to transfer an Image or Song to my device and What is the Best way for that? ..:: Bluetooth ::..
You may plug a cable between your device and computer but why to bother when you can use Bluetooth to transfer those items between you computer and mobile device much more faster and easier.
- Add Settings window
- Get installed services on the device
- Check if Object Exchange is installed and changed properties.
- Add Windows Bluetooth search window.
- Add Setup Project


Team Foundation Server 2010 Power Tools Available For Download
More related posts on PowerTools
Here are the links:
TFS Power Tools April 2010 release
http://visualstudiogallery.msdn.microsoft.com/en-us/3e8c9b68-6e39-4577-b9b7-78489b5cb1da
TFS MSSCCI Provider 2010 release
· Visual Studio .NET 2003
· Visual C++ 6 SP6
· Visual Visual Basic 6 SP6
· Visual FoxPro 9 SP2
· Microsoft Access 2007
· SQL Server Management Studio
· Enterprise Architect 7.5
· PowerBuilder 11.5
· Microsoft eMbedded VC++ 4.0
http://visualstudiogallery.msdn.microsoft.com/en-us/bce06506-be38-47a1-9f29-d3937d3d88d6
TFS Build Extension Power Tool April 2010 release
Provide the ability to execute Ant or Maven 2 builds from Team Foundation Server and publish the results of the build along with any associated JUnit test results back to Team Foundation Server.
Prerequisites
You must have the following installed on the same server that is hosting the Team Foundation Build Agent:
· Java JDK (the latest one available from your JDK vendor is recommended)
· Ant (if Ant support is required).
· Maven 2 (if Maven support is required)
http://visualstudiogallery.msdn.microsoft.com/en-us/2d7c8577-54b8-47ce-82a5-8649f579dcb6
Office 2010 available from MSDN downloads right now
Just to let you know that Office is available for download on MSDN.
Getting Started Developing with Office 2010 Training on Channel9 Office 2010: Developer References Enjoy.

Bluetooth Radar 2.1 – Change Your Bluetooth RadioMode
Last week I’ve publish a major release of Bluetooth Radar 2.0 with couple of major features like send file to remote Bluetooth devices.
Bluetooth Radar version 2.1 comes with more features and infrastructure and performance changes to allow you to do MORE!
Release Notes
- Fix - "Right Click Crashes the application" bug
- Change OBX to push send
- Add current bluetooth device information + change device radiomode
- Add new window to display current bluetooth device information.
- Remove 32feet.net reference for Bluetooth.dll IrDA.dll ObjectExchange.dll and add Personal.dll (contains all dll's in one) , Version 2.5
- add send action under different thread update version number add new menu item to show current bluetooth device information
Diagnostic Data Adapter (Data Collectors) Sample
I just post about how you can create your own Data Collector and what is Data Collector
How To Create Custom DataCollector – Part 1(Demo Included) | How To Create Custom DataCollector – Part 2 (Demo Included)
Beside on how to create your own Microsoft Just release a sample of Custom Data Collector which allows you to call Process Monitor when you run a test and the collected log is uploaded to the test results.

Enjoy
How To Create Custom DataCollector In Visual Studio 2010 – Part 2
In the previous post (How To Create Custom DataCollector In Visual Studio 2010 – Part 1)I showed how to create a Custom Data Collector using Visual Studio 2010, Here we continue improving our Data Collector using external Xml Configuration files.
Instead of add hardcoded values into your code use the Xml to take and save user settings.
Download Demo Project
Step 1 – Add Configuration File
To collect a log file when a test finishes based on what the user configured in test settings, you must create an App.config file and add it to your solution
Copy below format into the app config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="DataCollectorConfiguration"
type="Microsoft.VisualStudio.TestTools.Execution.DataCollectorConfigurationSection,
Microsoft.VisualStudio.QualityTools.ExecutionCommon,
Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
<DataCollectorConfiguration xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<DataCollector typeUri="datacollector://ShaiRaiten/LocalLogsCollector/1.0">
<DefaultConfiguration>
<Folder Path="C:\Logs\"/>
<Folder Path="C:\Logs2\"/>
</DefaultConfiguration>
</DataCollector>
</DataCollectorConfiguration>
</configuration>
Make sure the DataCollector typeUri attribute is the same as [DataCollectorTypeUri("datacollector://ShaiRaiten/LocalLogsCollector/1.0")] from the Data Adapter class.
Step 2 – Initialize Configuration Element
In the Initialize method make sure to Initialize the Configuration XmlElement .
private XmlElement configurationSettings;
public override void Initialize(XmlElement configurationElement, DataCollectionEvents events, DataCollectionSink sink,
DataCollectionLogger logger, DataCollectionEnvironmentContext environmentContext)
{
configurationSettings = configurationElement;
events.SessionEnd += new EventHandler<SessionEndEventArgs>(events_SessionEnd);
}
Step 3 – Use Configuration Element
void events_SessionEnd(object sender, SessionEndEventArgs e)
{
// Get any files to be collected that are
// configured in your test settings
List<string> files = getFilesToCollect(e.Context);
// For each of the files, send the file to the data sink
// which will attach it to the test results or to a bug
foreach (string file in files)
{
dataSink.SendFileAsync(e.Context, file, false);
}
}
// A private method that returns the file names
private List<string> getFilesToCollect(DataCollectionContext context)
{
XmlNodeList folders = configurationSettings.GetElementsByTagName("Folder");
// Build the list of folder to collect from the
// "Path" attributes of the "Folder" nodes.
List<string> result = new List<string>();
foreach (XmlNode folder in folders)
{
XmlAttribute pathAttribute = folder.Attributes["Path"];
if (pathAttribute != null && !String.IsNullOrEmpty(pathAttribute.Value))
{
if (Directory.Exists(pathAttribute.Value))
{
string[] files = Directory.GetFiles(pathAttribute.Value);
foreach (string file in files)
result.Add(file);
}
}
}
return result;
}
Download Demo Project
How To Create Custom DataCollector In Visual Studio 2010 – Part 1
What is DataCollector - Team System 2010 Beta 2 – Diagnostic Data Adapters – No More No Repro!
If you remember I’ve already wrote on how to create a custom data collector:
VSTS 2010 Beta 2 – Diagnostic Data Adapters – Custom Adapter – Part 1, VSTS 2010 Beta 2 – Diagnostic Data Adapters – Custom Adapter – Part 2
but between Beta 2 and RTM there were couple of changes with Data Collectors.
Download Demo Project
Step 1 – Getting Started
Create a Class library project and add two references:
- Microsoft.VisualStudio.QualityTools.Common
- Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll
You can find those assemblies C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0
(If you are not using 64bit operation system - C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0
Step 2 – Create Data Collector Class
1. Add new class to your project with the Data Collector name, make sure the class defined as Public and add both using to the class:
using Microsoft.VisualStudio.TestTools.Execution;
using Microsoft.VisualStudio.TestTools.Common;
2. Add the Data Collector attributes
[DataCollectorTypeUri("datacollector://ShaiRaiten/LocalLogsCollector/1.0")]
[DataCollectorFriendlyName("Local Logs Collector")]
3. Add DataCollector interface and implement it. (Beta 2 – IDataCollector)
This is what you should see:
public override void Initialize(XmlElement configurationElement, DataCollectionEvents events, DataCollectionSink sink,
DataCollectionLogger logger, DataCollectionEnvironmentContext environmentContext)
{
}
Step 3 – Implement Custom Data Adapter
Using the DataCollectionEvents add the desire events for the Custom Data Adapter.
CustomNotification Raised when a custom notification occurs.
DataRequest Raised to request intermediate data.
SessionEnd Raised when a test session ends.
SessionPause Raised when a test session pauses.
SessionResume Raised when a test session resumes.
SessionStart Raised when a test session starts.
TestCaseEnd Raised when a test case ends.
TestCasePause Raised when a test case pauses.
TestCaseReset Raised when a test case resets.
TestCaseResume Raised when a test case resumes.
TestCaseStart Raised when a test case starts.
TestStepEnd Raised when a test step ends.
TestStepStart Raised when a test step starts.
And define DataCollectionSink for storing files as attachments.
For Example:
private DataCollectionEvents dataEvents;
private DataCollectionLogger dataLogger;
private DataCollectionSink dataSink;
public override void Initialize(XmlElement configurationElement, DataCollectionEvents events, DataCollectionSink sink,
DataCollectionLogger logger, DataCollectionEnvironmentContext environmentContext)
{
dataEvents = events; // The test events
dataLogger = logger; // The error and warning log
dataSink = sink; // Saves collected data
// Configuration from the test settings
events.SessionEnd += new EventHandler<SessionEndEventArgs>(events_SessionEnd);
}
Now write the code to collect the logs from the specified folder.
void events_SessionEnd(object sender, SessionEndEventArgs e)
{
string LogPath = @"C:\Logs";
try
{
if (Directory.Exists(LogPath))
{
string[] files = Directory.GetFiles(LogPath);
foreach (string f in files)
{
dataSink.SendFileAsync(e.Context, f, false);
}
}
}
catch (Exception ex)
{ throw ex; }
}
Download Demo Project
Bluetooth Radar 2.0 – Scan and Send
I’ve just upload another update for the “Blutooth Radar” on codeplex. (Download Latest Version | Source)
This is a BIG Release with the ability to send files through Blue Radar.
Enjoy

Visual Studio\TFS 2010 Is Pre-Pidded Installation – How To Separate Product Key From Setup
If you download the Visual Studio\TFS 2010 installation from MSDN you will notice that all Setup’s are Pre-Pidded, this means you don’t need to enter Product Key manually after or before you can complete the installation.
This good for some people and not good for me, As part of a customer service I need to have the installations ready (Always some customers forget to download before I come). – Of course customer most have a unique Product Key for his company.
How To Separate Product Key From Setup
- Extract ISO file (Visual Studio \ TFS) to a folder on your computer.
- For Team Foundation Server Installation
- If you need 64bit installation enter “TFS-x64” Folder, for 32bit “TFS-x86”
- For Visual Studio Installation
- Enter “Setup” Folder.
- Find “setup.sdb” and open it for Edit
- Find “[Product Key]” and remove the value (marked with black).
- Save “setup.sdb” and Run Visual Studio \ TFS Setup – In the end of the setup you will need to enter the Product Key.
Enjoy.
Bluetooth Radar V1.9 – Update
I’ve just upload another update for the “Blutooth Radar” on codeplex. (Download Latest Version | Source)
This is one last version before the Release version that will include File Send feature.
Enjoy

Visual Studio 2010 – What Version Is For Me?

As you know Visual Studio 2010 Is Released and Available for Download on MSDN.
If you look at your MSDN download section you’ll notice there couple of versions available for download,
In Visual Studio Team System 2005/2008 we had Testing version, Developer (DB) version Architecture version and Suite that contains all.
Visual Studio 2010 comes with 4 editions with more global names (not Tester or Developer):
|  |  | |
| Test Professional | Professional | Premium | Ultimate |
On my previous posts I talked about Visual Studio 2010 Licensing and Upgrades (See Links).
The Ultimate Offer – TFS For Everyone | TFS 2010 Server Licensing
I Don’t Know Which Version Is Enough For Me?
So Let’s find the right version for you!
Developer & DB Professional
- If all you need is Visual Studio for Code and Unit Test you need –> Professional edition
- Want to manage your DB using Source Control –> Premium
- Writing Code and using Profiler to find performance problem inside your code – > Premium
For other cool and important features please look and the table below.
| Features | Premium | Ultimate |
| IntelliTrace (Historical Debugger) | | X |
| Code Metrics | X | X |
| Profiling | X | X |
| Static Code Analysis | X | X |
| Database Deployment | X | X |
| Database Change Management | X | X |
| Database Unit Testing | X | X |
| Database Test Data Generation | X | X |
Tester:
- As a manual tester without any need of automation of any kind you need –> Test Professional.
- As Automation Tester writing CodedUI tests without Web Test and Load Test you need –> Premium
- For Load Testing and Web Testing you need –> Ultimate
- As Manual and Automation Tester you need – > Ultimate
- Using Lab Manager(Hyper-V \ VmWare) – > Test Professional \ Ultimate
Architecture:
This one is very simple – Only Ultimate will give the you the ability to work with the new Architecture features.
Premium will only allow you to View diagrams without changing them.
| Features | Premium | Ultimate |
| Architecture Explorer | | X |
| UML® 2.0 Compliant Diagrams (Activity, Use Case, Sequence, Class, Component) | | X |
| Layer Diagram and Dependency Validation | | X |
| Read-only diagrams (UML, Layer, DGML Graphs) | X | |
For Any question please feel free to contact me!
Enjoy.
More Posts
Next page »