Search Results - VBForums

Search:

Type: Posts; User: Evil_Giraffe

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    10
    Views
    121

    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")
    ...
  2. Replies
    10
    Views
    121

    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"?
  3. Replies
    10
    Views
    121

    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?
  4. 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...
  5. Replies
    11
    Views
    321

    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...
  6. Replies
    11
    Views
    321

    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)
  7. 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...
  8. Replies
    50
    Views
    990

    Re: Justifying text

    Have you checked the RTB's options as tg suggested?
  9. 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...
  10. Replies
    11
    Views
    321

    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...
  11. Replies
    50
    Views
    990

    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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. Replies
    4
    Views
    218

    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...
  17. Replies
    4
    Views
    278

    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...
  18. 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
    ...
  19. 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...
  20. Replies
    6
    Views
    177

    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,...
  21. Replies
    8
    Views
    356

    VS 2010 Re: Scrolling map Conundrum

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

    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...
  23. Replies
    6
    Views
    138

    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...
  24. Replies
    6
    Views
    138

    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...
  25. Replies
    14
    Views
    510

    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...
  26. Replies
    14
    Views
    510

    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...
  27. Replies
    9
    Views
    337

    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...
  28. Replies
    14
    Views
    510

    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...
  29. Replies
    5
    Views
    203

    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...
  30. Replies
    4
    Views
    163

    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?
  31. Replies
    13
    Views
    340

    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...
  32. Replies
    9
    Views
    325

    VS 2013 Re: Why can;t VB.net do simple division?

    Hmm, I was thinking that that was ideal. :)
  33. VS 2010 Re: InvalidOperationException error was unhandled..

    Okay, lots of things to address here, I'll start with this one:



    I assume that you're referring to the practice of making the fields of a class Public. As you've figured, Public means that a...
  34. Replies
    9
    Views
    325

    VS 2013 Re: Why can;t VB.net do simple division?

    Don't multiply by 100, instead use the Percentage numeric formatter. This takes a fractional value and displays it as a percentage respecting the user's culture settings:
    ...
  35. Replies
    2
    Views
    119

    Re: place holder

    I believe you're referring to what I've mostly heard called a watermark, but on searching for some implementation, one of these links also claims the "official" name is cue banner. The WinForms...
  36. Re: [Help] Code locked for some reason but msgbox unlock it what the **** ?

    If the MsgBox call is allowing your program to continue then I would hazard a guess that the code is being allowed to continue by the processing of another event on the UI thread - does this event...
  37. Re: Using a generic list to store a collection of class objects

    Because that's what was asked for:



    Also, for a real-world reason, you would potentially be enumerating the collection of CommunityEvents multiple times over the course of time. If you don't...
  38. Replies
    8
    Views
    307

    Re: Help on Union of Arrays

    :confused:
  39. Re: Using a generic list to store a collection of class objects

    Since the instructions refer to "using LINQ" to load the collection, you probably don't want to ToArray the ReadAllLines, and you don't want to use a For Each loop either.

    ReadAllLines returns an...
  40. Replies
    9
    Views
    305

    Re: Need some help with a function

    Are you supposed to be drawing a square with the # characters? If so you will need to add n-2 spaces between the two # characters (since you've figured out how to write n # characters then this...
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.