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


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)

Product Recommendation -SaneBox for Email

AddThis Social Bookmark Button
I don’t usually write about individual cool products, but if email is making you crazy this is a product you really want to check out.  It is called SaneBox and it separates your mail for you automagically into inbox, BuilkMail, View … Continue reading → For the complete article and hyperlinks, please visit my blog at

Entity Developer Review, Part 2

AddThis Social Bookmark Button
Here’s my second post on Entity Developer, this time, focused on NHibernate. You can find the first part here.I created a new model item of type NHibernate and chose the option to generate from the database:Mind you, you need to have the database providers installed for the databases you want to access, Entity Developer does not include them.I was then presented with a list of database objects:After I selected a few, Entity Developer shows the class and properties naming rules dialog:Next, some more options, pretty complete.
Very useful is the option to detect many-to-many associations and table per type inheritances. These will be the default settings, but we can override them on a class by class basis:Interesting, the next dialog gives an opportunity to split entities among different diagrams according to the database object’s schema:Finally, we get to choose the template that will be used to generate the classes (the only included one is for HBM.XML) and set some of its properties, like, generate a single file or one file per entity, implement standard methods such as Equals or GetHashCode,...(Read whole news on source site)

The Top 5 Mistakes AngularJS Developers Make Part 4: Hacking the DOM

AddThis Social Bookmark Button
This is the fourth part in a five-part series that covers common AngularJS mistakes. To recap, the top five mistakes I see people make are: Heavy reliance on $scope (not using controller as)  Abusing $watch Overusing $broadcast and $emit Hacking the DOM Failing to Test In the previous posts I’ve covered some nuances around controllers and how they communicate with each other and expose information for data-binding. In this post I’ll elaborate on the importance of data-binding and share why it’s important to avoid hacking the DOM when writing an Angular application. Hacking the DOM... [[
This is a content summary only. Visit my website for full links, other content, and more! ]]
...(Read whole news on source site)

What’s new in C# 6.0? - Exception Filters

AddThis Social Bookmark Button
C# 6.0 brought another great new feature named “Exception Filters” along with Visual Studio 2015 and .NET 4.6. If you didn’t try yet the preview version of the new IDE, go and grab it to get your hands dirty with the new features before it actually releases. Today in this post, we will discuss about the new feature “Exception Filters”. Read more to learn about it. Don’t forget to share the feature links in your network.   Don’t forget to read my previous posts on this series: What’s new in C# 6.0? - Setting default
values to Auto Properties. What’s new in C# 6.0? - String Interpolation. What’s new in C# 6.0? - nameof Expressions. What’s new in C# 6.0? - Null-conditional operators. What’s new in C# 6.0? - Exception Filters.Exception filters” is a CLR capability which is already present in Visual Basic and F#, but was not present in C#. In C# 6.0, Microsoft included this feature for CSharp developers to use in their code. If you want to use Exception Filter, you have to declare it in the same line where you declared the...(Read whole news on source site)

Visual Studio and WebStorm: Am I Mad?

AddThis Social Bookmark Button
I might be. In many of the projects I help with we have to handle back-end and front-end coding for web projects. This means I need the best in breed in tools no matter where I’m writing code. In many cases this is Visual Studio. I love this tool and have for years. While it’s not without it’s own foibles, it does most things really well. But not everything. Web development in Visual Studio used to be pretty painful. The JavaScript, CSS and HTML support was substandard. Since the introduction of Visual Studio 2012 as well as Web
Essentials things have gotten really good. If you’re not using Web Essentials yet, go get it now! It includes great support for a variety of things that help with your day to day development including: Browser Link Bundling Support for JavaScript, CSS, and HTML CSS Helpers to add vendor specific styles, browser validation, color pickers and more… Improved JavaScript intellisense HTML Editing including ZenCoding, LoremPixel and more… Support for languages like TypeScript, Markdown and even format-specific editors (i.e. Robots.txt) But even with this great support, I still find the JavaScript editing in Visual Studio to be less...(Read whole news on source site)

Saving information on a computer boosts human memory resources for new information | KurzweilAI

AddThis Social Bookmark Button
Saving information on a computer boosts human memory resources for new information | KurzweilAI

The simple act of saving something, such as a file on a computer, may
improve our memory for the information we encounter next, according to
new research published in Psychological Science, a journal of the Association for Psychological Science.
The research suggests that the act of saving helps to free up cognitive
resources that can be used to remember new information.