number (12,191)


php - How do I track file downloads

php - How do I track file downloads

I have a website that plays mp3s in a flash player. If a user clicks 'play' the flash player automatically downloads an mp3 and starts playing it. Is there an easy way to track how many times a partic…


c# - Floating Point Number parsing: Is there a Catch All algorithm?

One of the fun parts of multi-cultural programming is number formats. Americans use 10,000.50 Germans use 10.000,50 French use 10 000,50 My first approach would be to take the string, parse it backwar…


c# - Robust Random Number Generation

I'm looking for a performant, reasonably robust RNG using no special hardware. It can use mathematical methods(Mersenne Twister, etc), it can "collect entropy" from the machine, whatever. On Linux/et…



performance - Most efficient code for the first 10000 prime numbers?

I want to print the first 10000 prime numbers. Can anyone give me the most efficient code for this? Clarifications: It does not matter if your code is inefficient for n>10000. The size of the code doe…


c# - Automatically update version number

I would like the version property of my application to be incremented for each build but I'm not sure on how to enable this functionality in Visual Studio(2005/2008). I have tried to specify the Assem…


How big can a MySQL database get before performance starts to degrade

At what point does a MySQL database start to lose performance? Does physical database size matter? Do number of records matter? Is any performance degradation linear or exponential? I have what I beli…


algorithm - Followup: “Sorting” colors by distinctiveness

Original Question If you are given N maximally distant colors(and some associated distance metric), can you come up with a way to sort those colors into some order such that the first M are also rea…


c# - Convert integers to written numbers

Is there an efficient method of converting an integer into the written numbers, for example: string Written=IntegerToWritten(21); would return "Twenty One". Is there any way of doing this that doesn't…


Options for Google Maps over SSL

We recently discovered that the Google Maps API does not play nicely with SSL. Fair enough, but what are some options for overcoming this that others have used effectively? Will the Maps API work o…


c# - LinqDataSource-Can you limit the amount of records returned?

I'd like to use a LinqDataSource control on a page and limit the amount of records returned. I know if I use code behind I could do something like this: IEnumerable<int> values=Enumerable.Range(0,…




how string get with and numbers java from the python