Type: Posts; User: wsmmi6674
Search took 0.01 seconds.
August 26th, 2005, 08:34 AM
That is what I figured, and I do have a handler for clicking for focus (MouseDown event), but I don't see an event for getting focus via tabbing.
I also though about watching for a click, followed...
August 25th, 2005, 03:49 PM
I have a custom control. When focus is given to this control, the Enter event is triggered. Is there any way to determine what caused focus to come to this control (Tabbed in, Shift-tabbed in, mouse...
August 17th, 2005, 03:41 PM
This is generally referred to as the "Peter Principle". See this link:http://pespmc1.vub.ac.be/PETERPR.html
It is commonly paraphrased as "One tends to rise to the level of one's incompetence"....
You should start from the outside as this will naturally lead to marking many of the interior cells as the visibility of the outside cells are determined.
The touching diagonal obstacle problem is...
I'm sure there are plenty of predefined solutions to this issue, but I'll chime in with my idea.
Rather than considering the point of view of the observer, consider instead the ability of each...
June 23rd, 2005, 12:58 PM
The Bitmap class has a nice constructor option to simplify loading one from an embedded resource. It is using the namespace from the type and combining that with the string you pass in to create the...
June 10th, 2005, 09:06 AM
I had a similar situation this week where I had nested lists of XML nodes, and I wanted to iterate over them all. Say you have a class with nested data:
public class Nestor
This assumes you are using the language's built-in random function (i.e. rand() for c++). There are plenty of algorithms available for an acceptable n-bit pseudo random number generator. And if...
I was guessing that a class was the only way to do what I want. Its a bit more work, with more overhead, but it will get the job done. Ideally, I'd like to do this:
Is it possible to overload an operator with both the addend and augend (lhs & rhs) as user defined enum types? I have two enums defined as:
public enum Rotate
It depends on how you define the terms. Assuming a perfect random function, either Robo's or my algorithm results in a completly random distribution. The best a human could do is equal it. A dealer...
Of couse! How silly of me. Note that your construction of selecting the next item to swap:
Is correct, unlike:
Assuming a "perfect" randomization function, here is some pseudo code that will return a random item from an array, one at a time, until the array is exhausted:
Fill an array...
April 22nd, 2005, 09:35 AM
Here are the areas I would focus on:
Try to get as complete a list of requirements as possible. In addition to the original developer (O.D.), also talk to the people that...
April 11th, 2005, 08:55 AM
Whereas RGB represents the Red, Green and Blue components of a color, HSV represents the Hue, Saturation, and Value (light- or dark-ness) components. Some feel it is a better match with the way...
April 11th, 2005, 08:50 AM
Jenny 8675309 is the correct answer to my question.
April 8th, 2005, 04:34 PM
An excellent guess, but wrong. Think about three orders of magnitude higher.
April 8th, 2005, 04:29 PM
I see nothing in your code that indicates successive runs of the for loop will be N-1, N-2, etc. You may be assuming that since the cap (capacity of the knapsack) value will be getting progressively...
April 7th, 2005, 04:33 PM
A bit late, but if we are allowed to use math symbols, an infinately large number can be generated with two or more ones via:
To attone for my smart a$$ answer, I offer this...
April 7th, 2005, 03:53 PM
This feels like a homework problem, but what the heck...
I believe the running time of your algorithm is limited by O(n^2). That is, for each item in the list, another loop is started over every...
April 6th, 2005, 10:08 AM
Unfortunately I cannot make the map out of graph nodes. The map already exists, and is an external component I have access to.
The reason I don't want to duplicate the mapping information in the...
March 30th, 2005, 12:18 PM
Assuming you receive pixel values in RGB form, another option is to convert the color to HSV (Hue - Saturation - Value). Pure green has (I believe) a hue value of 192.
This would make it easier to...
March 30th, 2005, 12:05 PM
I can't figure out a good way wrap a collection of objects with many links between them without losing the linkage information. Here is what I have:
There is a class representing a node....
Click Here to Expand Forum to Full Width