Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mark Churchill

@Mark Churchill
About
Posts
574
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Draw railway using Graphics GDI+
    M Mark Churchill

    You'll probably have to draw over the line twice. Read up on the compoundarray to get it to draw a double line (your railway lines). Then draw over that with a thick line and custom dash style to get sleepers.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# graphics winforms data-structures regex help

  • HOW CAN I COUNT A TRANSACTION FROM XML DOM???
    M Mark Churchill

    Also you should initialize the count with 1. You can use a different number, and subtract that later, but its not as efficient as just starting with 1.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    .NET (Core and Framework) question html database xml

  • is there any decrpting algorithm that uses a dictionary to decrypt an encrypted file?
    M Mark Churchill

    ETOALIN.... The encryption algorithm is very weak, and you are expected to attack it using letter-frequency analysis. For example, in an substitution cipher for english the most common letter would correspond to E. I'd assume that they have given you an Italian dictionary text file to use. I guess they want you to try with the English dictionary to see it not work (or maybe work), so you can discuss it.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms question algorithms security help

  • Component for comparing VB codes in c# program
    M Mark Churchill

    It seems like part of the supervisory routines are going to be somehow embedded in the database. I had the horrible thought of live process data being pumped thru embedded VB which affects more than just setpoints. Usually I find these kind of decisions embedded in a supervisory PLC. Or maybe I'm just paranoid...

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# csharp help tutorial

  • Component for comparing VB codes in c# program
    M Mark Churchill

    So... you are doing SCADA by embedding VBA into Access databases? I'm concerned.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# csharp help tutorial

  • Justification is requested. please help me resolve this problem. Phd and Prof
    M Mark Churchill

    No, not at all. If this test fails, then its a very strong sign that your algorithm is weak. If this test passes then it definitely doesnt prove the algorithm in any way...

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms algorithms security help database question

  • Passing data from a child thread
    M Mark Churchill

    Also take a peek at the SynchronisationContext class. The documentation is good.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    .NET (Core and Framework) csharp c++ help tutorial question

  • Justification is requested. please help me resolve this problem. Phd and Prof
    M Mark Churchill

    Then you encode the data. Pack 4 8bit ascii characters into each word. Normally you'd compress data before encryption too, but in this case its important that you don't. If your algorithm takes non-random data, encrypts it, and the result doesn't look random (it has things like high autocorrelation), then the algorithm is most likely seriously broken.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms algorithms security help database question

  • Writing a basic virus scanner
    M Mark Churchill

    Then just add foreach in signatures, byte[].Contains, and MessageBox.Show. I *knew* those guys at norton were overcharging! ;)

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# question xml help

  • Justification is requested. please help me resolve this problem. Phd and Prof
    M Mark Churchill

    Take some text, like an ebook or something, and encrypt it with your scheme. If the encryption is strong, then the encrypted text should look random and come close to passing the NIST test suite. If your encryption scheme is weak, it will leave entropy in the output, which the NIST test may pick up on.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms algorithms security help database question

  • Justification is requested. please help me resolve this problem. Phd and Prof
    M Mark Churchill

    Probably easier to prove its broken. Encrypt some plaintext with your scheme and then feed the results into the NIST random number test suite. If your results aren't random then the scheme is probably weak.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms algorithms security help database question

  • Hi
    M Mark Churchill
    1. ATM used by blind drivers side passenger. 2) Why manufacture two types of keypads?

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms question

  • Which one is faster ?
    M Mark Churchill

    If you are really concerned you should take a look at the MSIL output of both approaches. This behaviour is not specified by the compiler - I'd suggest looking for algorithmetic speedups over "cargo-cult" coding kind of tricks. Either that or switch to an unmanaged compiler for absolute maximum peformance. Take a look at the Mono.SIMD library as well.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# question

  • Which one is faster ?
    M Mark Churchill

    It doesnt matter. Most likely both of those examples will JIT down to identical code. If they don't now, then they might later. Performance difference of those examples comes down to the platform implementation, which is really none of your business in a high level language like C#. You don't need to worry about performance at that level. If your application is running slowly, I can guarantee its not due to trivial things like this.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# question

  • Empty abstract method override -- good or bad design?
    M Mark Churchill

    :D

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Design and Architecture design oop question

  • Empty abstract method override -- good or bad design?
    M Mark Churchill

    It seems like you have a list of things, and you want to go through the list and perform an action which is only relevant to some things in it. In this case you could consider exposing an interface, and then when you iterate thru the list you can use if(item is INeedToBeNotifiedAboutEclipses) ((INeed..)item).YoItsALittleDarkOutHere();

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Design and Architecture design oop question

  • How Can I Hide String Key
    M Mark Churchill

    Good call. If you were using crypto appropriately, then you wouldnt need to hide the key that the user is going to use. Alice can't send a secret message to Bob and then have Bob read it sometimes, but not other times. Maths doesnt work that way...

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    C# question dotnet security

  • Very advanced Computer Graphics library
    M Mark Churchill

    You could take a look at the Paint.Net source code.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Algorithms graphics regex question

  • Communicating the Reason for Method Failure
    M Mark Churchill

    Generally I'd go with throwing on any failure - it definitely leads to cleaner code (especially with errors bubbling up the stack and being handled at a convenient place). How you define "failure" then determines the behaviour. "Entry not found in that file" would depend for me on your model. If every client must have a phone number then GetPhoneNumber(Client) should throw if there isn't one in the file. Either you are throwing an ArgumentException for an invalid client, or you are throwing because there is no phone number for the client - and *something* went wrong, which needs to be fixed. If they might not have a phone number then returning null to indicate "none" is probably appropriate. If it returns null when it detects an error, then you are moving the error detection to the client code, which is kinda silly. Theres probably lots of "client" code for the library - and this means you are duplicating a bunch of code. It also means you have created some pretty close coupling as well. Whatever you do, make sure its clearly documented.

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    Design and Architecture testing beta-testing help

  • Calculating the cheksum of code in memory
    M Mark Churchill

    Why? Sign your assemblies and let the runtime do that for you...

    Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
    Entanglar: .Net game engine featuring automatic networking and powerful HLSL gfx binding.

    .NET (Core and Framework) csharp performance help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups