Search Results - VBForums

Search:

Type: Posts; User: Evil_Giraffe

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    8
    Views
    187

    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)
  2. 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...
  3. Replies
    26
    Views
    319

    Re: Justifying text

    Have you checked the RTB's options as tg suggested?
  4. 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...
  5. Replies
    8
    Views
    187

    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...
  6. Replies
    26
    Views
    319

    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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. Replies
    4
    Views
    206

    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...
  12. Replies
    4
    Views
    267

    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...
  13. 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
    ...
  14. 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...
  15. Replies
    6
    Views
    174

    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,...
  16. Replies
    8
    Views
    348

    VS 2010 Re: Scrolling map Conundrum

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

    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...
  18. Replies
    6
    Views
    136

    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...
  19. Replies
    6
    Views
    136

    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...
  20. Replies
    14
    Views
    500

    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...
  21. Replies
    14
    Views
    500

    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...
  22. Replies
    9
    Views
    331

    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...
  23. Replies
    14
    Views
    500

    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...
  24. Replies
    5
    Views
    201

    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...
  25. Replies
    4
    Views
    162

    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?
  26. Replies
    13
    Views
    333

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

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

    Hmm, I was thinking that that was ideal. :)
  28. 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...
  29. Replies
    9
    Views
    319

    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:
    ...
  30. Replies
    2
    Views
    118

    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...
  31. 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...
  32. 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...
  33. Replies
    8
    Views
    304

    Re: Help on Union of Arrays

    :confused:
  34. 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...
  35. Replies
    9
    Views
    304

    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...
  36. VS 2013 Re: Tcp Client/Server - Client messages problem?

    Nope, you're barking up the wrong tree there. Take a look at what you do when a client connects:


    Private Sub Listening(ByVal Port As Integer)
    Try
    Listener = New...
  37. Re: [RESOLVED] Adding data to a varuble textbox

    Well I was going to post a snarky comment about how that would be documented in the language spec and post a link to the relevant page of the language reference on MSDN, but what do I see when I look...
  38. Re: Adding data to a varuble textbox

    No, what you should do is stop storing application state in user controls.

    You should not retrieve the current value from the string that appears in a textbox; you should store the current value...
  39. Replies
    2
    Views
    205

    VS 2010 Re: vb.net facebook poster

    What you should do is use the API rather than trying to emulate a browser. The Facebook site doesn't obviously link to any .NET client libraries, so you might need to do a search for one that you can...
  40. Replies
    31
    Views
    670

    VS 2010 Re: Help me understand Generics

    Maybe you meant that you've never needed to define your own generic class, but I can assure there are plenty of use cases for doing so.
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.