Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Debugging Lambda Expression in Visual Studio 2015 – Watch Windows, Immediate Windows and also in Data Tips

AddThis Social Bookmark Button
Debugging  Lambda expression is one of the coolest feature of Visual Studio 2015 and that’s bring lot of productivity among developers during debugging and release lot of pain. Using lambda expression is pretty often in code, mostly when we writes lots of LINQ statements. Priory to Visual Studio 2015, there was no direct and easy way, [...]

Processing HBASE data with Rx

AddThis Social Bookmark Button
HBase is good at many things but adhoc querying is not one of them. You can query by key, or you can scan over a range of keys. Sometimes it is handy to be able to monitor a table and process rows as they are added. This kind of processing over a stream is what Reactive Extensions (Rx) is good at, so why not combine hbase querying with Rx Observables? I’ll be using the Microsoft Hbase client and an Azure HBase cluster. What I want is to convert an Hbase table into an Rx observable, so that I can
filter, transform, group and fold. Step 1 is to fetch my observable: var hotRows = HBaseToObservable.Build(new Uri("https://redacted.azurehdinsight.net"), "????", "??????", "tablename","start_key") .Select(r => new { key = Encoding.UTF8.GetString(r.key), data = r.values.ToDictionary( v => Encoding.UTF8.GetString(v.column), v=> Encoding.UTF8.GetString(v.data))}); hotRows is now an observable reading forward over the hbase table tablename from the key start_key. As new records are appended to the table they will be pushed through the observable. Why do we want an observable view of an hbase table? This is most useful for a table storing data such as timeseries data, where we want a live, forward-only stream. With an observable we can do things like: hotRows ...(Read whole news on source site)

The Morning Brew #1911

AddThis Social Bookmark Button
Software CSLA .NET version 4.6 just around the corner – Rockford Lhotka ReSharper 9.1.3 to the Rescue – Jura Gorohovsky – JetBrains Information Swapping type-safety for high performance using compiler directives & F# decompiled into C# – Scott Wlaschin "No such interface supported" in Visual Studio 2015 on Windows 10 – Charles Willis Win2D 0.0.23 […]

Ingredients for well-designed OWIN middleware components - Part 6

AddThis Social Bookmark Button
In the fifth post of this series I talked about some PowerShell tips to align the versions of all NuGet packages. In this sixth post, I'd like to show you how you can make your HTTP API much easier to use.

Ingredient 7: Swagger-enabled documentation
If your component exposes an HTTP API based on WebAPI, I would suggest you add support for Swagger documentation. Swagger has become the ad-hoc WSDL equivalent for HTTP-based API. Adding this to your WebAPI controllers is as easy as referencing the Swashbuckle NuGet package and attaching the following lines of code to
your HttpConfiguration.

private static void EnableSwagger(HttpConfiguration configuration)
{
  configuration.EnableSwagger(c =>
  {
    c.SingleApiVersion("v1", "Piercer; easily diagnose run-time assemblies and threads");
    c.RootUrl(req => SwaggerDocsConfig.DefaultRootUrlResolver(req) + "/api");
    c.IncludeXmlComments(GetXmlCommentsPath());
  }).EnableSwaggerUi();
}

private static string GetXmlCommentsPath()
{
  return Assembly.GetExecutingAssembly().CodeBase.ToLower().Replace(".dll", ".xml");
}

In the case of Piercer, starting the Test Host and browsing to http://localhost:12345/api/swagger/docs/v1returns the following JSON that you can use directly to generate code using swagger-codegen.

{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "Piercer; easily diagnose run-time assemblies and threads"
},
"host": "localhost:12345",
"basePath": "/api",
"schemes": ["http"],
"paths": {
"/piercer/assemblies": {
"get": {
"tags": ["Piercer"],
"summary": "Returns all the run-time assemblies of the host process.",
"operationId": "Piercer_GetAssemblies",
"consumes": [],
"produces": ["application/json",
"text/json",
"application/xml",
"text/xml"],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
},

CSLA .NET version 4.6 just around the corner

AddThis Social Bookmark Button
I am very excited about the upcoming CSLA .NET 4.6 release – just a few days away now. Thanks to Jason Bock we'll now have analyzers in Visual Studio 2015 to help you identify and fix some of the most common coding errors when building business classes. And of course we've added support for .NET 4.6, Universal Windows Platform, and the latest Xamarin iOS/Android versions. Here’s a list of the existing/planned changes.

How do I disable C# 6 Support in Visual Studio 2015?

AddThis Social Bookmark Button
Intro Some developers are not yet ready to take the plunge to C# 6, whereas others would like to play with C# 6 without installing Visual Studio 2015. In this episode, I address both issues. For those looking for a quick breakdown: How do I disable C# 6 Support in Visual Studio 2015? Question: We’ve already internally adopted Visual Studio 2015 for some of the new features that it has, but we don’t want to use C# 6 just yet. Can we disable C# 6, so that our contract developers can open the project in Visual Studio 2013 without any problems and prevent
them from using any of the new C# 6 features? Answer: You can set the language feature for each project separately by going to Properties => Build tab => Language Version and set your preferred version. From here, you can switch it to whatever C# version you would like. (ex. C# 5.0) How do I explore C# 6 features without installing Visual Studio 2015? As described in the video, you can use tryroslyn.azurewebsites.net. This is what I used for testing new C# 6 features as Visual Studio 2015 was being built. Wrap-up I hope this clears things up and don’t forget...(Read whole news on source site)

How To customize PerfTips Colors in Visual Studio 2015 ?

AddThis Social Bookmark Button
In the previous post we have learned PerfTips – Easiest way to get Performance Information during Debugging in Visual Studio 2015 . You have seen how PerfTips helps to view the performance information during debugging and how to take those information deep dive using Diagnostic tool window. The PerfTips in the Visual Studio editor displayed [...]

Windows Phone, Surface, and Fanboydom

AddThis Social Bookmark Button
I admit it, I don’t know if that last word in the title is real, but anyway. I’ve used a Windows Phone since betas of Windows Phone 7. Like some of you I have the question of whether to believe the new Microsoft’s lukewarm support for the platform. Will Win10 be the savior of the platform or final coffin nail? I don’t have an answer to that. I like to think that all that time has given me perspective, but I am not sure that’s true. I liken myself to a detached observer, but the reality is that I
own a Windows Phone, a Windows Laptop, an Xbox One (and 360 before it), a Microsoft Band, and I even have a Spot Watch somewhere in a box. Does that make me a fanboy? I hope not, but certainly not a detached observer with a honest perspective. Where does that leave me? That’s for my readers to judge. I am sure it’s somewhere in the middle but certainly leaning towards being a Microsoft fanboy. Phones When the recent information about the 950/950XL came out, I was interested, but not excited. The problem is...(Read whole news on source site)

How To customize PerfTips Color in Visual Studio 2015 ?

AddThis Social Bookmark Button
In the previous post we have learned PerfTips – Easiest way to get Performance Information during Debugging in Visual Studio 2015 . You have seen how PerfTips helps to view the performance information during debugging and how to take those information deep dive using Diagnostic tool window. The PerfTips in the Visual Studio editor displayed [...]

PerfTips – Easiest way to get Performance Information during Debugging in Visual Studio 2015

AddThis Social Bookmark Button
It had been always a pain point for developers to find out execution time, performance issues for different code block. Most of the time we Get time of Code Execution Using StopWatch , or other logging mechanism, profiler tool etc. However, they are time consuming and sometime does not add values to check for a [...]

Home