• Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Detect USB insertion/Removal

    Don't re-invent the wheel :) [VB SysInfo control](http://vb.mvps.org/samples/SysInfo/)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Want to program in C++, finding the process of preparation too difficult

    If you want to program for MS Windows, and you want a desktop application that's not using something like OpenGL or DirectX, then you really don't want C++. The framework …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in webbrowser control not loading webpage properly(fully)

    IE != Visual Studio browser control. It's a very thin shim only really used for rendering pure HTML. If you want more advanced functionality I would look at using [WebKit](http://webkitdotnet.sourceforge.net/basics.php) …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in How to receive and call from dll service

    If you're in kernel mode (driver level) then this will register a method that will be executed when a new process on the machine starts. If you want to do …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in basic game engine in c# without 3rd party software

    If you really really want to go ahead with C# as your single language, you should look up [TAO GL](http://en.wikipedia.org/wiki/Tao_Framework) Without making the COM calls to the Windows API yourself, …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Replacing the for loop, using extensions

    There is no functional benefit, you are correct. But it does mean that some things compress down nicely so instead of being 5 lines they're only 1. That's pretty much …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Replacing the for loop, using extensions

    Actually we use a similar construct here; it's great for doing something X times but be warned that there are three levels of indirection and a delegate object construction plus …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in The name 'matches' does not exist in the current context

    Make sure you're running it in Debug mode. In Release this could have been optimised away because you're not using the variable.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in I'm newbie in C# little help please.. :(

    If you have an image in code then you should be able to get the byte array out of the object that contains the data. It might be called `GetBytes()` …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in C# question

    Have a try at doing it first. If you enjoy it then there's no problem! Right? :) If you get stuck come back with what you've done and what your …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in database table security with varchar column

    Ok so the only way this would really provide security is if you used some unknown password (referred to as salt) to generate the hashes. Otherwise, anyone would be able …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in c# vector

    In C# you can think of all classes as references (pointers) Like ddanbe said above, if you *really* want the pointer, you can use the `unsafe` keyword and then use …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Storing a list of objects

    Like I said, uniqueness may not be relevant for your scenario, however, you should look at ways to stop things being duplicated (such as constraints against having the same `Name` …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Storing a list of objects

    Only two things strike me as a little off. 1. You have no way of uniquely identifying a single "Fact". This could be important, might not be, up to you. …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Storing a list of objects

    If you don't want to be able to "read" your serialised list, or to be able to import from a common format, don't use XML. It can be quite slow …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Storing a list of objects

    Depends what you want to do with it. What scenarios are you looking for?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in DisplayAttribute.Order in derived class

    Have you tried making the properties in the base class virtual?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in DisplayAttribute.Order in derived class

    Try setting the order weights to a negative number in your base class.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Need Help With CheckList program in C#

    If you look at the available constructors for `StreamWriter` you will see that one of them can be used to indicate you want to append to the file.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WCF server to server security

    You could use Username/Password based authentication over TLS, but that's not as secure as having a certificate solution in my opinion. But it's a better solution if money is a …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WCF server to server security

    There's a couple of ways. As well as using TLS (standard SSL solution) you can also use Certificate based authentication (effectively enforcing that both client and server have valid certificates) …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in WCF web host

    You need to add it as an application in IIS. If you upload the code files using FTP, you can use IIS Manager to add the WCF application (as an …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Reading Data From a txt file that is being written by another program

    You might be better using a small database like SQLExpress to write your data to rather than a text file. Sharing read/write access is a dangerous game...
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in How to secure connections over the internet?

    > DHEC alone wont authenticate the server. For example, after establishing a key, you still need to make sure you established it with the right person! Though it is often …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in How to secure connections over the internet?

    They don't get installed into a browser, they're installed in the computers certificate store. (either by user or by machine) Certificate/SSL Certificate no difference. Certificates are produced to a well …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in 4th dimension

    In terms of geometry isn't a dimension simply an axis that is perpendicular to all other axes? Quaternion mathematics for rotation for example. Also I don't believe in time as …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Gave Reputation to deceptikon in Get and Set Modifier

    > Why can a private variable be accessed by a get and set modifier if its supposed to be private? Isnt a private variable supposed to be protected from modification …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Object with highest ID in LINQ

    Aggregate is incredibly useful. As an explanation to Chris, Aggregate takes the result of the function and passes it as the parameter into the next iteration of the function. This …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Object with highest ID in LINQ

    You could use `Custom item = data.OrderByDescending(obj => obj.Index).FirstOrDefault();` Does the same thing but looks tidier :)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in circular dependency issue

    If you won't include a third library with common functionality/types, you need to re-design your application so that you no longer have the circular dependency. How you do that is …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Structs

    In C# objects and structs are treated differently by what basic type they are. An Object (class) in C# is a reference type and so whenever you pass an instance …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Associate String With Socket From External Application?

    > Ok. I was going to do that as a last resort since multiple people might connect at once and mix up the names. Thanks anyway. You can't. Data comes …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in 4K file size?

    Depends what you're talking about (again). Unfortunately there are two meanings for "4K". One is the industry standard, 4096x2160 and the other is UHDTV which is 3840x2160. I will continue …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in How to add a new record (XAML/EF/LINQ)

    It depends how you've implemented you view, which I can't see from the code there. If you're using a datagrid then if you make the control editable, adding new lines …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in How to add a new record (XAML/EF/LINQ)

    Well it should all work the same way, how are you initiating the "Create New" logical task? It should be as simple as adding the data object to your context …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Saving dates using EF/LINQ within XAML/C#

    You can use a [Binding Converter](http://msdn.microsoft.com/en-us/library/system.windows.data.binding.converter(v=vs.110).aspx) to get what you need. It will allow you to do pretty much anything to the data before it is used. Very useful, very …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Saving dates using EF/LINQ within XAML/C#

    When you set up EF, did you use Code First or Database First design methods? It looks like `hex_srv_start` is the wrong variable type for what you're trying to enter. …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Home Page Not Working

    Yep =)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in C# application behaving weird on different computers

    Are there any hard coded paths? You need to list what the runtime errors are.
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Saving dates using EF/LINQ within XAML/C#

    What does the EntityValidationErrors property contain?
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Created Home Page Not Working

    Not sure if it's just me but the home page doesn't work. It's just presenting the background colour but no content. The following is received by the browser: <!DOCTYPE HTML> …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Online Database?

    If the host doesn't have any documentation, find another host. If you pay for a simple development website that uses ASP.NET, they often come with database hosting. i realise you're …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Coding Challenge: String to Date

    The actual approach would be fairly easy (although long-winded) if it weren't for the following case: *112014* *11***20***14* 20th Nov 2014 or; *1***1***2014* 1st Jan 2014 or; *1***12***014* 12th Jan …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Application Blows Error ONLY when running on its own

    Hi AoD, I think it's because you're disposing of something that's being passed to your method. This is pretty much a big no-no. You don't know what happens to that …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Member's Photos

    > blackmiau > Nope... it's fried. t'was a joke :)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Blurry Visual Studio Form?

    It looks like you're using a high dpi setting for your fonts and the DirectX layer migh be trying to anti-alias it (this can give the experience of blurred lines …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in To Record the actions on a browser (IE) and save the recorded file

    This sounds very much like [Coded UI](https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CDoQFjAA&url=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fdd286681(v%3Dvs.100).aspx&ei=CP9-U92UMcm70QWw94GgCQ&usg=AFQjCNGpqAIy_caRWTNBIvSNUFZw6RGzEg&sig2=1oOfTD2C6WZrA-rqYCn5aQ&bvm=bv.67720277,d.d2k) So it might be worth checking that out first. Otherwise, I'd recommend that you decide on what possible actions you can have. Examples …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Member's Photos

    Give it a bit of a clean and it'll be fine ;)
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Member's Photos

    They are my babies and I love them so! :) I've never had great luck with Panoramic shots. This one isn't great, the lighting isn't very good, probably needed some …
  • Member Avatar for Ketsuekiame
    Ketsuekiame

    Replied To a Post in Member's Photos

    Here's a few of my photos :) http://puu.sh/8TOCA <--- So relaxed. When I picked my camera up she was on her back, but she rolled onto her side as I …

The End.