Search:
Type: Posts; User: Evil_Giraffe
Search:
Search took 0.11 seconds.
-
Why do you need to change it? Why can't you declare/instantiate it as a List(Of classA) to start with?
[Edit: Do you understand why what you're trying to do isn't allowed?]
-
I'd suggest perhaps not making it entirely self-contained. If you have many instances of the class then they will all have their own timer. It would be better to have a single object containing a...
-
Hmmm, utterly off-topic, but....
Legally, yes. The copyright covers the "work" - you haven't created a different "work", you've copied it in a different format.
No, not if you created...
-
If you have a process that, given a reference, returns an image (and crucially, returns the same image each time you give it the same reference), in what fundamental way has that image not been...
-
And when we realise we're talking about propagation of thread-local updates, you can see that it is much more likely to happen with a simple type like a bool than a complex object, because those are...
-
Um, not exactly. The language makes no guarantees that the code posted earlier will EVER show the updated value to the reading thread, because there are no memory barriers. Both threads are entirely...
-
You'll also need to know that altering a variable from one thread doesn't necessarily mean that another thread reads the updated value of that variable. Which puts a rather nasty...
-
That's not a bad attempt, good work. One thing to note: the assignment asked for the "Inventory" class to not be a Form, but just a Class.
Now on to your problem: I'm thinking from reading through...
-
Depending on which version you're using, you may have access to the Rename Variable command in the Refactor menu. I don't quite know where you'd look for it, as I use R# in place of the VS supplied...
-
I'm still not seeing why you'd need to if you've designed your database properly. This suggests you are creating new columns in the table as the system is run, which is the wrong approach. I'd love...
-
I'm sorry, but I don't see how why you'd need to do that, unless you're using a database badly... I think you should have a think about what you're actually querying and how you're storing it.
And...
-
You can't parameterise the column or the table. That's not how parameterisation of SQL works. What are you trying to do that you think parameterising these things is the right approach?
-
The term you're looking for would be Procedural Generation. If you're looking for something like a giant land mass, I'd suggest searching for something like 'procedural generation continent'
The...
-
Another option is to spin the dependency around. Have the TranslationManager expose an Event that it raises when the language should be changed.Create your TranslationManager instance, and pass it to...
-
Apologies if I came across as harsh. I did a back-of-the-napkin estimate for the amount of memory required just to store 36^10 10-character strings and it came out as tens of thousands of petabytes. ...
-
I find it much more likely that you're writing someone's password cracker for them, but fortunately this is a very naive approach that wouldn't make an effective cracker.
As to your...
-
The test code should have been placed in a Console Application project. And yes, that sorting algorithm will produce a non-biased result. There are basically three common ways to correctly shuffle:...
-
Ummmm, not sure what you mean here. A PRNG of the sort provided by the Random class is perfectly sufficient for shuffling a reasonably sized data set. All the shuffling algorithms presented here rely...
-
Nice try, but nope:
1, 2, 3: 18634
1, 3, 2: 17262
2, 1, 3: 17202
2, 3, 1: 14768
3, 1, 2: 14839
3, 2, 1: 17296
other : 0
-
Do you know which sorting algorithm Array.Sort uses under the hood? Is it one that would come out with a significant bias if you just randomly pick with a flat distribution for each comparison of...
-
Whoops. After berating others for not reading the OP properly I misread this sentence. You aren't introducing a second form, it's a second textbox on the same form :$
So, what you are after is to...
-
So is the part that you are stuck on converting a number to this "Roman Numerals" format? Or is it how the second form interacts with the first form?
-
Not for this assignment, they aren't using "proper" Roman Numerals. It might help to actually read the description from the OP:
IV is invalid because the letter values are in ascending order.
-
Presumably that snippet you posted was just typed off the top of your head, given the lack of casing that the VB IDE would do. How about, if you can't show us the code that exhibits the problem, you...
-
There are several ways. Yes, you could use locking primitives.
You could go lock-free and keep allocating more buffers and treat-them as write-once and leave the reading code to release the memory....
-
That StackTrace tells you exactly which method the exception is being thrown from. It's a little obscured because the method won't actually be called 'ctor', but that refers to the constructor of...
-
Why not, from the points of your hull, for each of those calculate a set of n points in a circle around each point (you may need to experiment to find the best value of n for your needs).
Now you...
-
If you have to convert to/from strings (And I would agree with SS that you really should try and avoid this if possible), there is a Round Trip Format that you can use specifically for this scenario:...
-
This is essentially suggesting to have all code that actually writes to the field be funnelled through a single place, for which there are other techniques than properties. If you have a publicly...
-
I think your teacher may be looking for you to demonstrate some sort of algorithm to calculating it, rather than just enumerating all the possible values. For example, if the first digit is 1, and...
-
Well, perhaps, but the way I look at it, the correct way to write a reminders app wouldn't involve comparing datetimes to Now. You'd maintain a list of datetimes, calculate how long it is until the...
-
I'll give you a hint: these lines do not do what you think they do
RES1.Equals(Convert.ToInt32(RND1) + Convert.ToInt32(RND2))
RES2.Equals(RND3 + RND4)
RES3.Equals(RND5 + RND6)
(The...
-
Well you'll have to show your code to let us know which method you are using to draw the circle, however assuming it is this method:...
-
The exception is because you are trying to assign an IEnumerable(Of Double) to a variable that holds a List(Of Double). You could convert the sequence to a list by calling ToList on it, but why...
-
Think of it like this:
You have a dictionary containing the following key/value pairs:
{ K1: A1, K2: A2, K3: A3 }
Now you say you want to iterate over all the entries in the dictionary (and...
-
A few points.
1) You don't need to define an explicitly named delegate for this, you can represent it as a function that takes a Sample and returns a Double, there is the Function(Of T1, TResult)...
-
You can pass in an object that represents a function taking a Sample and return a Double. I know you know how to do this because you've already done it in your code, although it's possible you didn't...
-
Since this is for a class, your aim here is to make it as easy as possible for the teacher to see that you've done what the assignment has asked for. I am assuming that the description you posted is...
-
The other thing to consider is that if you are calling DateTime.Now multiple times in an expression and expecting it to return a DateTime that represents the same day for each one, then you'd be...
-
What are you trying to achieve?
No it's not possible to do what you describe. Either you need to be able to calculate the key from the value or you need a separate lookup that stores them the...
|
Click Here to Expand Forum to Full Width
|