Category Archives: .NET

All .NET SDKs for download in one place

From the series “links you should bookmark”, today Microsoft launched a very useful page with all the .NET SDKs and Targeting Packs by Visual Studio version and by category.

Posted in .NET | Tagged , | Leave a comment

Disable ALL CAPS Menus in Visual Studio 2013

An aspect of the new Visual Studio 2013 that a good number of developers don’t like (myself included) is the fact that all menus are displayed in ALL CAPS, which (for some people) makes it harder to read and looks … Continue reading

Posted in .NET, Visual Studio | Tagged , , , | Leave a comment

Fake/Mock HttpContext without any special mocking framework

When writing unit tests, we often need to find a way to mock concrete classes of the .NET Framework in order to make our tests truly unit tests rather than integration tests, and although there are frameworks which allows one … Continue reading

Posted in .NET, Unit Testing | Tagged , , , , , , | 8 Comments

Get the ASP .NET authentication mode in Web.config

I’ve recently had to implement an HTTP module in an ASP .NET application that would have different behaviours depending on the authentication mode defined in the authentication section of the Web.config (i.e. Forms, Windows, Passport, None).

Posted in .NET, ASP .NET | Tagged , , | Leave a comment

Get the network machine name in a Windows Store app

When developing Windows Store apps that support receiving push notifications, besides getting the application ID and hardware ID, I also like to get other useful information about the machine/device that can ease the management of the push notifications service. The … Continue reading

Posted in .NET, JavaScript, Windows 8 | Tagged , , , , | Leave a comment

Get the version number of a Windows Store app

Recently, during the development of a Windows Store app, I needed to dynamically get the current version numbers of the app to show in the “about” screen.

Posted in .NET, JavaScript, Windows 8 | Tagged , , , , | Leave a comment

Disable ALL CAPS Menus in Visual Studio 2012

Update 2013-10-18: Read the updated post for Visual Studio 2013: Disable ALL CAPS Menus in Visual Studio 2013. An aspect of the new Visual Studio 2012 that a good number of developers don’t like (myself included) is the fact that … Continue reading

Posted in .NET, Visual Studio | Tagged , , , | 1 Comment

Decrease the chances of your email being considered SPAM

Sometimes we send e-mails automatically through our website or web application, that are considered SPAM by the SPAM filter o the destination e-mail server, or even client application used to read the e-mails.

Posted in .NET | Tagged , , , | Leave a comment

You can’t parse [X]HTML with RegEx – or a true work of art

Regular expressions are great for parsing, well, regular content. It’s fine if one wants to, for instance, extract (or replace) some text inside a particular HTML tag, but if we need to locate a specific tag in the HTML tree … Continue reading

Posted in .NET | Tagged , , , | Leave a comment

Programatically Change the Default Printer on Windows using C#

Sometimes we need to change the default printer on Windows programatically from a Windows application, like it happened with this developer in one of the MSDN Brazil forums.

Posted in .NET | Tagged , , , , , | 2 Comments

Data Structures and Algorithms (DSA) – Free e-Book

Granville Barnett and Luca Del Tongo just released the free e-Book “Data Structures and Algorithms“, where they explain how several algorithms and data structures work.

Posted in .NET, Algorithms | Tagged , | Leave a comment