Skip to main content

Posts

Fun fact: TFS is using Lernout and Hauspie Speech Technology

While looking through some TFS information I noticed the following fun fact. It seems that Team Foundation Server is using the Lernout & Hauspie speech technology : Remark: This is a blog post that probably only the Belgian readers will understand. It’s a long story about what happened with Lernout & Hauspie(read the wikipedia article if you want to know more).

Help! The Microsoft BIDS are gone?!

After doing a clean install of my pc I also wanted to install the BIDS(=Business Intelligence Designer Studio) to start some Microsoft Report Services development. But I couldn’t find a version for Visual Studio 2012? So where did it go and how should I develop SSIS, SSRS and SSAS stuff using VS 2012? I discovered that with the 2012 release of SQL Server, the BIDS plugin for Visual Studio was renamed to SSDT, SQL Server Data Tools. SSDT is available for both Visual Studio 2010 and 2012. You no longer need the SQL Server installation media to install it but instead you can just download it from the Microsoft Download Center : You can use this version of the Data Tools to develop applications for both SQL 2008, SQL 2008 R2 and SQL 2012(and of course SQL Azure). After installing it, some new templates are added to your Visual Studio:

The !! operator in JavaScript

While walking through a Single Page Application codebase I noticed the usage of the !! operator. No clue what it means but StackOverflow brought the rescue. “The !! operator will convert a value to a boolean first and than invert the result.” JavaScript keeps surprising me…

Entity Framework: Specify a schema name

By default when you are using Entity Framework code first, the default ‘dbo’ schema is used. But what if you want to use a different schema? There are multiple ways to do this. Option 1: Use the ModelBuilder API One way to change the schema is by using the modelbuilder API. To use this override the OnModelCreating option on your db and specify a schemaName using the Fluent API: Option 2: Use attributes Another option is the usage of Attributes on your model classes:

Xamarin AndroidRuntimeException “Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag”

In my Android application I’m using the Azure Mobile Services component to connect to Windows Azure. I want to use the authentication component and let the users login by using their Microsoft account. Here is the code I used: However when I try to run this code, it fails the moment the LoginAsync method is called. This is the exception I get: AndroidRuntimeException “Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag” I found out that I made a stupid mistake. I was passing the BaseContext instead of the Activity itself. When I updated the code to the following it worked as expected:

Enable the keyboard in an Android emulator

After creating an Android application using the great Xamarin tools, it was finally time to do some intensive testing on the Android emulator. When starting to test I noticed something really annoying, I had to type everything through the onscreen keyboard and couldn’t use the physical keyboard on my development machine. Fixing this is easy by changing the settings of a specific emulator device: Open the AVD Manager . Select an emulator device. Click on Edit… to edit the properties of this device. The Edit AVD window is loaded. In the Hardware section, click on New.. . A list is loaded with all the properties you can configure. In the Property drop-down list, select Keyboard Support and press OK . This add the property in the hardware list. Click on the value column and change it to "yes" . Click on "Edit AVD" once again to save your changes.

Android: Install an apk file on the Android emulator

A colleague created an Android apk package using PhoneGap build and asked me to test it. But how do you get this apk file on the emulator? Start the Android emulator(through the AVD manager). Open a command prompt and navigate to the SDK\platform-tools folder. Paste the APK file in the 'platform-tools' folder. Execute the following command. adb install [apk file name]