tagged [language-agnostic]
What is a good Hash Function?
What is a good Hash Function? What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a goo...
- Modified
- 2 Sep at 12:5
Free text search integrated with code coverage
Free text search integrated with code coverage Is there any tool which will allow me to perform a free text search over a system's code, but only over the code which was actually executed during a par...
- Modified
- 8 Sep at 13:24
Converting RGB to grayscale/intensity
Converting RGB to grayscale/intensity When converting from RGB to grayscale, it is said that specific weights to channels R, G, and B ought to be applied. These weights are: 0.2989, 0.5870, 0.1140. It...
- Modified
- 19 Sep at 09:23
Followup: "Sorting" colors by distinctiveness
Followup: "Sorting" colors by distinctiveness [Original Question](https://stackoverflow.com/questions/180/function-for-creating-color-wheels) If you are given N maximally distant colors (and some asso...
- Modified
- 23 May at 12:26
Private vs Protected - Visibility Good-Practice Concern
Private vs Protected - Visibility Good-Practice Concern I've been searching and I know the theoretic difference. - - - That's all fine and well, the question is, what's the difference between them? Wh...
- Modified
- 23 Aug at 16:31
What is the preferred method for handling unexpected enum values?
What is the preferred method for handling unexpected enum values? Suppose we have a method that accepts a value of an enumeration. After this method checks that the value is valid, it `switch`es over ...
- Modified
- 6 Mar at 18:38
Best way to display default image if specified image file is not found?
Best way to display default image if specified image file is not found? I've got your average e-Commerce app, I store ITEM_IMAGE_NAME in the database, and sometimes managers MISSPELL the image name. T...
- Modified
- 28 Oct at 09:19
Smaller SpreadsheetML files through Excel 2007
Smaller SpreadsheetML files through Excel 2007 I have a SpreadsheetML file that I am generating server-side. Such files are rather large, in contrast to Excel 2007 files, which make use of zip. So, I ...
- Modified
- 7 Aug at 18:22
Getting the closest string match
Getting the closest string match I need a way to compare multiple strings to a test string and return the string that closely resembles it: (If I did this correctly) The closest st
- Modified
- 14 Nov at 01:23
What is wrong with using DateTime.Now. as main part of Unique ID?
What is wrong with using DateTime.Now. as main part of Unique ID? I used to use `RNGCryptoServiceProvider` to generate string-based Order ID's, but, there were 4 instances where `ABCDEFGHIJKLMNOPQRSTU...
- Modified
- 1 May at 18:25
Array versus linked-list
Array versus linked-list Why would someone want to use a linked-list over an array? Coding a linked-list is, no doubt, a bit more work than using an array and one may wonder what would justify the add...
- Modified
- 11 Jan at 20:9
How many parameters are too many?
How many parameters are too many? Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand a...
- Modified
- 15 Nov at 14:27
Should I avoid do/while and favour while?
Should I avoid do/while and favour while? > [Test loops at the top or bottom? (while vs. do while)](https://stackoverflow.com/questions/224059/test-loops-at-the-top-or-bottom-while-vs-do-while) [Whi...
- Modified
- 23 May at 10:33
What technology problems arise from creating a markup language for email?
What technology problems arise from creating a markup language for email? I am wondering what technology problems arise from associating a markup language to email? Without examining the language let ...
- Modified
- 7 Oct at 04:18
What does it mean to "program to an interface"?
What does it mean to "program to an interface"? I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this? I know what interfaces do, but the fact I am...
- Modified
- 22 Jan at 03:45
Do you use 1-3 letters variables EVERYWHERE?
Do you use 1-3 letters variables EVERYWHERE? I notice, in C# i use very short variable names EVERYWHERE. My code is polluted with I dont know if this is bad or ok. I can certain
- Modified
- 17 Jan at 10:56
OOP: Where to stop Abstracting
OOP: Where to stop Abstracting Where do you draw the line to stop making abstractions and to start writing sane code? There are tons of examples of 'enterprise code' such as the dozen-file "FizzBuzz" ...
- Modified
- 20 Oct at 10:11
How do you mock a Sealed class?
How do you mock a Sealed class? [Mocking sealed classes](http://www.google.com/search?q=how%20to%20mock%20sealed%20class) can be quite a pain. I currently favor an [Adapter pattern](http://en.wikipedi...
- Modified
- 30 Oct at 17:17
How to display local time of the browser in a web app
How to display local time of the browser in a web app I am writing a web app and I would like to display timestamps on the page in the user's localtime. There seems to be several ways to do this but i...
- Modified
- 20 Oct at 07:7
What's the difference between an argument and a parameter?
What's the difference between an argument and a parameter? When verbally talking about methods, I'm never sure whether to use the word or or something else. Either way the other people know what I mea...
- Modified
- 16 May at 13:34
Modelling an elevator using Object-Oriented Analysis and Design
Modelling an elevator using Object-Oriented Analysis and Design There are a set of questions that seem to be commonly-used in interviews and classes when it comes to object-oriented design and analysi...
- Modified
- 13 Sep at 06:46
Looking for examples of "real" uses of continuations
Looking for examples of "real" uses of continuations I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the [Wikipedia article](http://en.w...
- Modified
- 10 Sep at 09:27
How to robustly, but minimally, distribute items across a peer-to-peer system
How to robustly, but minimally, distribute items across a peer-to-peer system If one has a peer-to-peer system that can be queried, one would like to - - - - Given these requirements: 1. Are there any...
- Modified
- 17 Sep at 04:58
Project Euler Question 3 Help
Project Euler Question 3 Help I'm trying to work through Project Euler and I'm hitting a barrier on problem 03. I have an algorithm that works for smaller numbers, but problem 3 uses a very, very larg...
- Modified
- 22 Jan at 16:17
Using pen strokes with fuzzy tolerance algorithm as encryption key
Using pen strokes with fuzzy tolerance algorithm as encryption key How can I encrypt/decrypt with fuzzy tolerance? I want to be able to use a Stroke on an InkCanvas as key for my encryption but when d...
- Modified
- 9 Sep at 16:41