Skip to main content

Posts

Showing posts from 2009

Visual Studio 2005 debug ederken breakpointlerde durmuyorsa...

IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. You can work around this by disabling the process growth feature of LCIE. Here's how: 1) Open RegEdit 2) Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main 3) Add a dword under this key called TabProcGrowth 4) Set TabProcGrowth to 0

Random number generation using C++ TR1

Random number generation using C++ TR1 Overview This article explains how to use the random number generation facilities in C++ using the TR1 (C++ Standards Committee Technical Report 1 ) extensions. We will cover basic uniform random number generation as well as generating samples from common probability distributions: Bernoulli, binomial, exponential, gamma, geometric, normal, and Poisson. We will point out a few things to watch out for with specific distributions such as parameterization conventions. Finally we will indicate how to generate from probability distributions not directly supported in the TR1 such as Cauchy, chi-squared, and Student t. Support for TR1 extensions in Visual Studio 2008 is added as a feature pack . Other implementations include the Boost and Dinkumware . GCC added experimental support for C++ TR1 in version 4.3. The code samples in this article use fully qualified namespaces for clarity. You could make your code easier to read by adding a few using stat...