Search Results - VBForums

Search:

Type: Posts; User: Evil_Giraffe

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2010 Re: Need a code to delay the execution of the code

    Just adding a delay won't work. You'll still raise a TextChanged event as each character is "typed" into the TextBox. If you delay long enough that the barcode scanner finishes typing you'll still...
  2. VS 2013 Re: Tic-Tac-Toe: What data structure would you use?

    A 3 by 3 array may seem the most natural way of representing this, but the best model is not the most realistic, but the one that most effectively answer the questions of the domain. You may find...
  3. Replies
    6
    Views
    192

    VS 2013 Re: "Online" Game help

    That is a massively insecure way of arranging things. Exposing the database directly to the network is a no-no. Having clients directly access the database is a no-no. Embedding credentials in the...
  4. Replies
    8
    Views
    153

    VS 2012 Re: Event handling problem

    You've got two fields typed as Example in your Form, T which you assign a new instance of Example to in its initialiser, and Log. You call the Test() method on T, but the Log_UpdateStatus event...
  5. VS 2013 Re: Stuck on the most basic of problems - Reference to a non-shared member...

    Well, yes there is. And you've actually nailed why that is earlier:



    The nested class does have access to the outer class's fields and properties (local variables are not the same).



    ...
  6. VS 2010 Re: Deleting Items In A List In A For...Next Block

    The problem is that you think you've created a temporary list, but you haven't. You've created a second way of referring to the same list. TempList is the same list as bmpList, so iterating over...
  7. Replies
    8
    Views
    194

    VS 2005 Re: Textbox - Currency without "$"

    Or, having played with this a bit more... supposing you want to keep the rest of the current culture's settings... (e.g. european countries' use of "," as the decimal point, etc, which the above code...
  8. Replies
    8
    Views
    194

    VS 2005 Re: Textbox - Currency without "$"

    Sounds like you need a custom format string so that you can specify different behaviour for positive and negative numbers ( http://msdn.microsoft.com/en-us/library/0c899ak8.aspx#SectionSeparator )....
  9. Re: I can't discover how to 'Cast' a Form.

    I think you've gone down a wrong path here. Can you show us the methods that call the PlaceMe method? It definitely feels like you're solving the wrong problem here.
  10. Replies
    17
    Views
    350

    Re: Public Class Issue ?

    What's happening there is that you're now defining a Class inside a Sub, which is not allowed. Perhaps you mean this:

    Module Module1
    Sub Main()
    Console.Writeline("Hello")
    ...
  11. Replies
    17
    Views
    350

    Re: Public Class Issue ?

    The concept in your OP does not, as you've discovered, work. I'm not sure what it is about the code that you're trying to achieve. In what way does the class "not work"?
  12. Replies
    17
    Views
    350

    Re: Public Class Issue ?

    Module1 no longer has a Sub called Main() as an entry point to the program is the problem. What are you trying to do?
  13. Re: Having some trouble with I think it's supposed to be linked lists, but I'm not su

    I'm not sure you've grokked path-finding algorithms if you think they're about graphics. They find paths through graphs, which is what your objects will be. Each room is a node in the graph, and...
  14. Replies
    11
    Views
    429

    Re: [RESOLVED] App.Config and dlls

    Whoops, well that's what I get for not reading properly.

    What I believe should be possible is for the plug-in assembly to define a Configuration Settings class, and have the main application's...
  15. Replies
    11
    Views
    429

    Re: [RESOLVED] App.Config and dlls

    The endpoint is the code that runs to work out what JSON to return. (Or, perhaps more specifically, the mapping between the URL and the function that will be invoked)
  16. Re: Where is my salted/hashed password in my DB?

    Or should it be Password+Salt? Is there a difference? Depending on the hash function, there may be.

    These things have been considered by authentication library authors, and in some cases been...
  17. Replies
    56
    Views
    1,492

    Re: Justifying text

    Have you checked the RTB's options as tg suggested?
  18. Re: Where is my salted/hashed password in my DB?

    "Roll your own" refers to both a home-brew algorithm and a home-brew implementation. It's the latter problem here.

    [Edit: And what's missing is, among other things, correct choice of hash...
  19. Replies
    11
    Views
    429

    Re: [RESOLVED] App.Config and dlls

    The plug-in shouldn't be pulling configuration, the host should push it in, surely?
    Also, having a plug-in set up endpoints seems dangerous, shouldn't the host provide the ability for the plug-in to...
  20. Replies
    56
    Views
    1,492

    Re: Justifying text

    I'd say that a Label isn't designed for the sort of text that you'd justify, but rather short descriptions to place next to input controls, and so on. If you have a large block of text to render then...
  21. Re: Where is my salted/hashed password in my DB?

    Wow, yeah, I really made a hash out of typing that sentence, eh?



    No. If you really have to stick with rolling your own security, then stop. Just stop.

    NEVER roll your own security, because...
  22. Re: Where is my salted/hashed password in my DB?

    In this particular case, there are those who know about security and those who are trying to apply "common sense" to the situation. Common sense says that storing the salt next to the hashed password...
  23. Re: Where is my salted/hashed password in my DB?

    The salt is not a key of the system, revealing it does not reduce the security guarantees. It is there to stop an attacker being able to see where two users have the same password. This has two...
  24. Re: Where is my salted/hashed password in my DB?

    Yes, that is correct. To validate the user you need to retrieve the hashed password and salt, then user the salt to hash the supplied plaintext password and check that matches the hash retrieved from...
  25. Replies
    4
    Views
    268

    Re: Adjusting Time

    What makes you think it isn't efficient enough for your purpose?

    Also, from your description of the problem with negative seconds, you're keeping the offset in a TimeSpan which you can simply add...
  26. Replies
    4
    Views
    336

    Re: Lapse Time

    Okay, the problem is multiple independent clocks in your system. There is another alternative to having a single clock: Vector Clocks (in trying to find these again (I'd read about them a couple of...
  27. Re: How to compare Date.Time.Now to a date/time range?

    In this sort of situation, you should evaluate DateTime.Now only once:

    Dim now = DateTime.Now
    If now < New DateTime(2014, 12, 6, 16, 0, 0) AndAlso now > New DateTime(2014, 12, 6, 19, 0, 0) Then
    ...
  28. Re: What's the best way to write this statement?

    I'd gently suggest that you stop right there, and start undoing that, but on the other hand personal experience is a very effective teacher so maybe you should keep going?

    But back to the original...
  29. Replies
    6
    Views
    218

    Re: Combining 2 Lists?

    Does the Customer object (seriously, unless you're on a course where getting the grade on an assessment requires you to name your classes with a Cls prefix, then please stop that naming convention,...
  30. Replies
    8
    Views
    399

    VS 2010 Re: Scrolling map Conundrum

    It would perhaps help if you showed how you were currently doing the scrolling...?
  31. Replies
    10
    Views
    429

    Re: Salt/Hash question

    A few points:
    1) The salt is not a secret, it does not need to be stored separately.
    2) Actually use a random salt per user. It must be unique across all systems, so simply using their email...
  32. Replies
    6
    Views
    180

    Re: Unit Testing

    Moq is the best mocking framework for .NET that I've ever used, but I find my units these days are written in such a way that state-based tests are more useful, so I am using stubs and fakes more...
  33. Replies
    6
    Views
    180

    Re: Unit Testing

    You don't need Moq. Moq will simply generate a mock object for you on the fly. I'm finding that I'm getting more value from a hand-rolled stub most of the time.

    But to get back to the original...
  34. Replies
    14
    Views
    591

    VS 2008 Re: Properties of sub-classes?

    It seems to me that when the user selects an attack, Fighter A (the attacker) is asked for something like an Attack object (maybe with a ChooseAttack() method?), which might just be a simple number...
  35. Replies
    14
    Views
    591

    VS 2008 Re: Properties of sub-classes?

    Sort of, yes.



    I'd start by asking why you want to get _Attack(x)._Hit(y)._Texts(z)? What has determined the values of x, y and z? What are you going to do with the return? There's behaviour...
  36. Replies
    9
    Views
    390

    Re: Creating traffic simulator ??

    So what you want to do is create an application that does basically what another application does. That's fine.

    So... the fact that you're asking about how to draw the traffic lights suggests you...
  37. Replies
    14
    Views
    591

    VS 2008 Re: Properties of sub-classes?

    Yes, this approach would work the same, where it would need to vary is if you are using Structs instead of Classes, at which point you need to take into account the pass-by-value semantics that go...
  38. Replies
    5
    Views
    231

    VS 2012 Re: Encryption

    Protecting information requires more than just "encryption". You actually need to think about the system as a whole. When and where is the information decrypted? How are you protecting the keys used...
  39. Replies
    4
    Views
    195

    VS 2012 Re: Auto Version Increment Add-In

    Does the built-in method of putting a * in the version number in the AssemblyInfo not meet your needs? Are you using a build server to produce your builds?
  40. Replies
    13
    Views
    380

    Re: Date Range

    Because it protects you against SQL injection attacks. Protecting the connection string is an entirely orthogonal matter that, agreed, needs to be considered, but a) doesn't make query parameters...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.