Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



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

Follow us on FB


Gossip much? The gossip epidemic and other issues in polite society

AddThis Social Bookmark Button
In my previous post, I talked about the Hybrid Partial View protocol, and showed a visualization about how it actually works. Something that is important to note about this protocol, it is mostly meant to create a gossip topology that is resilient to failure. It is not meant to actually send messages, it is meant to serve as the backbone topology (the peer sampling service) for figuring out what are the nodes. The reason for that can be seen in the following 10 node cluster (after running heartbeat enough times to get to a stable state: Let
us assume that we want to disseminate a message across the cluster. We select node A as our root, and then send a message. The rules are as follow: Each node send the message to all its active connections (except the sender, of course). A node that got the same message twice will ignore the message. Based on those rules, and the topology above, we’re going to have the following chain of messages: F – initial broadcast F -> E, G, J E -> G, I G -> E, H J -> I, H, J H ->...(Read whole news on source site)

The Morning Brew #1758

AddThis Social Bookmark Button
Links only again today as Christmas shopping (in the rain) beckons. Software ODataLib 6.9.0 Release – Layla Liu Grunt and Gulp Intellisense in Web Essentials 2015 – Mads Kristensen Available now: December 2014 cumulative time zone update for Windows operating systems – ‘M3 Sweatt’ Orleans Goes Open Source – David Gristwood Information Razor views pre-compilation […]

Build for the cloud, using the cloud: A look at Visual Studio Online

AddThis Social Bookmark Button
At TechEd Australia 2014 in Sydney this year I presented a session titled “Build for the cloud, using the cloud: A look at Visual Studio Online”. This video is available on Microsoft’s Channel9 property for anyone interested in watching it. Here’s the session abstract. Configuring a development environment, including a version control repository and build environment, can be complicated and time consuming. Using Visual Studio Online, you can go from zero to online in just 40 minutes! Developers will love just how quick and easy getting started really is. In this demo-heavy session, we start from scratch and quickly build
up a solution using Microsoft Visual Studio, Team Foundation Server, and Microsoft Azure. We’ll store […] The post Build for the cloud, using the cloud: A look at Visual Studio Online appeared first on My ALM Blog....(Read whole news on source site)

SPD2013 Workflow - how to check user is member of group

AddThis Social Bookmark Button
  I want to describe a method that I use to check if a user is a member of a group.   Steps Call a REST webservice Reference MSDN for the correct API Build a RequestURL and a basic RequestHeader Figure out what the results mean Wrap it up in a Workflow Custom Activity   API MSDN (
href=""> - this needs to be a SharePoint Developer's home page) documents a few REST end points that I use for this. Says you can get to a sharepoint group via: http:///_api/web/sitegroups() http:///_api/web/sitegroups() The group also has a Users property that points to a Users Collection. This expands our example to: http:///_api/web/sitegroups()/users For example:'john Owners')/users/ redirects to...(Read whole news on source site)

What Is The Difference Between FileFlags.Random (FILE_FLAG_RANDOM_ACCESS) And FileFlags.SequentialScan (FILE_FLAG_SEQUENTIAL_SCAN)?

AddThis Social Bookmark Button
Originally posted on: you want fast and efficient File IO in Windows you can specify a myriad of flags to CreateFile. But which of these many flags help in which scenarios? MSDN says that some read ahead buffering is enabled if Sequential Scan is done. First a little look into the docs can help:   FILE_FLAG_SEQUENTIAL_SCAN  0x08000000 Access is intended to be sequential from beginning to end. The system can use this as a hint to optimize file caching. This flag should not be used if read-behind (that
is, reverse scans) will be used. This flag has no effect if the file system does not support cached I/O and FILE_FLAG_NO_BUFFERING. For more information, see the Caching Behavior section of this topic. Under Caching Behavior is more information: Specifying the FILE_FLAG_SEQUENTIAL_SCAN flag can increase performance for applications that read large files using sequential access. Performance gains can be even more noticeable for applications that read large files mostly sequentially, but occasionally skip forward over small ranges of bytes. If an application...(Read whole news on source site)

Lesser-Known NHibernate Features: Validation and Lifecycle Interfaces

AddThis Social Bookmark Button
NHibernate offers two interfaces that can be used to validate an entity before it is saved or updated or to cancel its saving, updating and deleting: IValidatable and ILifecycle. They are an alternative to events, and don’t need anything else to work other than be implemented by some entity. Here’s what IValidatable looks like:
New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"> 1: public class Product : IValidatable 2: { 3: ...(Read whole news on source site)

Spinning the wheel: clustering and near misses

AddThis Social Bookmark Button
The previous post showed a simple model casinos use to manipulate the odds. Instead of relying on the physical wheel for randomness, they rely on a virtual list of indexes that maps to the physical wheel.

Using that same model, it's easy to fiddle with the virtual indexes so that they map to misses right next to the winning pocket, creating "near misses". "Near misses" make players feel less like losing, since you "almost won". Casinos use this technique to get the next spin out of you.

Let's create more specific labels - a label for
each individual pocket.

The winning pocket is in the physical wheel at index two. We need the virtual indexes to make clusters next to the winning label. Four indexes map to Miss2, one maps to Win and three map to Miss3. We intentionally ignore Miss1.

Spinning the wheel one million times reveals the pattern; Miss1 gets ignored, while we hardly ever win but very often "just" miss.

Since the law states that randomness and visualization are two separate concepts, casinos are free to operate in this gray zone, as long as randomness stays untouched....(Read whole news on source site)

A behavior to deal with UI consequences of full screen and Software Keys in Windows Phone 8.1

AddThis Social Bookmark Button
This week I was presented with an interesting challenge. Using this technique, I used the whole screen for my app. The problem was I had not anticipated a Denim feature for the so called software buttons. For those unfamiliar with that – on the newest low and mid-tier phones the back, start and search buttons are not necessarily hardware buttons anymore, but can be a dedicated piece of screen that shows buttons. This enables hardware manufacturers to make phones for all platforms in one (hardware) package. Now the Denim firmware – that comes with the Lumia 73x and
83x - enables users to make those software buttons disappear – so the extra piece of screen can be used by the app itself. Pretty awesome. This can be done by using pressing a little arrow that appears on the left of the button bar:
It can be brought up again by swiping in from the bottom of the screen. Pretty cool, but with a side effect I had not anticipated. If the application view bound mode is set to ApplicationViewBoundsMode.UseCoreWindow in App.Xaml.cs the phone reports the whole screen size – not only the part that...(Read whole news on source site)