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)
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)
If anyone would have suggested to me a couple of years ago that Microsoft was not only going to release one of its major cash cows (e.g. Microsoft Office) on both iOS- and Android-based platforms, but would also provide developers … Continue reading →
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 http://JesseLiberty.com
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
,...(Read whole news on source site)
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...
Facebook is no longer showing Bing Web search results in Facebook search results.
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
Essentials things have gotten really good. If you’re not using Web Essentials