the (32,549)


performance What is the fastest way to get the value of π?

performance What is the fastest way to get the value of π?

I'm looking for the fastest way to obtain the value of π, as a personal challenge. More specifically, I'm using ways that don't involve using#define constants like M_PI,or hard-coding the number in. T…


Check for changes to an SQL Server table?

How can I monitor an SQL Server database for changes to a table without using triggers or modifying the structure of the database in any way? My preferred programming environment is.NET and C#. I'd l…


c++ Should I use nested classes in this case?

I am working on a collection of classes used for video playback and recording. I have one main class which acts like the public interface, with methods like play(), stop(), pause(), record() etc... Th…


c++ Build for Windows NT 4.0 using Visual Studio 2005?

An MFC application that I'm trying to migrate uses afxext.h, which causes_AFXDLL to get set, which causes this error if I set/MT: Please use the/MD switch for_AFXDLL builds My research to date…


algorithm Efficiently get sorted sums of a sorted list

You have an ascending list of numbers, what is the most efficient algorithm you can think of to get the ascending list of sums of every two numbers in that list. Duplicates in the resulting list are…


sql server Editing database records by multiple users

I have designed database tables(normalised, on an MS SQL server) and created a standalone windows front end for an application that will be used by a handful of users to add and edit information. We…



svn Why is Git better than Subversion?

I've been using Subversion for a few years and after using SourceSafe, I just love Subversion. Combined with TortoiseSVN, I can't really imagine how it could be any better. Yet there's a growing nu…


language agnostic Internationalization in your projects

How have you implemented Internationalization(i18n) in actual projects you've worked on? I took an interest in making software cross-cultural after I read the famous post by Joel, The Absolute Minimu…


vb6 How to use a mutex in Visual Basic

I have imported the kernel32 library so I have the createMutex function available but I am not quite sure of the various parameters and return values. This is classic Visual Basic, not Visual Basic.N…


How do I delete a file which is locked by another process in C#?

I'm looking for a way to delete a file which is locked by another process using C#. I suspect the method must be able to find which process is locking the file(perhaps by tracking the handles, althou…




how not for and from with what java example error