Jump to content

SomethingToChatWith

Active Members
  • Posts

    448
  • Joined

  • Last visited

Posts posted by SomethingToChatWith

  1. Yeah, it was here

    digips response from that thread was:

    You would probably be required to be networked to the pc with windows file sharing/microsoft family login, with admin rights over the pc in question(not simple file sharing, but prompted to login when trying to open a share or the machine). Usually via domain controller and activie directory, you would have admin rights over machines and could send shutdown, reboot, etc, type commands to a machine.

    If you are not part of a domain or have access in such a manner, you could just enable RDP on the target machine and then login to shut them down or reboot them via RDP.

  2. Ok with the way I was writing it I would've had a gigantic function or 5-6 functions and no support for ()'s. I think I'll stick with the code from the link than. Now to convert it to C# since I've gotten into that as well lately...

    Update: somethings up with the function. I had a whole bunch of not delcared errors until I imported System.Math but I still got one more error for the single line using "m_Primatives". Its not declared ovbiously. I wonder what its there for or if theres another namespace I need imported.

    C# definetly does have an advantage over VB, paticuarly that being of size of the compiled assembly. On a few test apps I've thrown together the C# versions were only half the size of the vb ones. Anyone know why that is if its all supposed to compile to MSIL anyway?

  3. So i'm taking on C# as my second programming language and its been pretty fun so far. Having experience in VB has helped a lot, so much so I think everything I know about C# I've learned in the last week or so, but...

    C#'s not as easy to transfer to as I thought. I'm doing a fun little console application that creates two string collections that reference a single array (one for names and one for colors), assigns the string values, and than finally outputs each person's favorite color to the console. I did it first in VB and its working fine:

    Module Module1

    Public
    Structure
    Lists

    'Holds a list of strings

    Dim
    ItemsList
    As
    System.Collections.Generic.List(
    Of
    String
    )

    End
    Structure

    Public
    Sub
    Main()

    'Create an reference to the Lists structure

    Dim
    NewLists(1)
    As
    Lists

    'Create two new instances to the List structure and two new

    'instances of System.Collections.Generic Lists for the ItemsList

    'member of Lists.

    NewLists(0) =
    New
    Lists
    'List of names

    NewLists(1) =
    New
    Lists
    'List of colors

    NewLists(0).ItemsList =
    New
    System.Collections.Generic.List(
    Of
    String
    )
    NewLists(1).ItemsList =
    New
    System.Collections.Generic.List(
    Of
    String
    )

    'Assign the names to the first list. Assign the favorite colors of

    'each person to the second.

    NewLists(0).ItemsList.Add(
    "Jim"
    )

    NewLists(1).ItemsList.Add(
    "Blue"
    )

    NewLists(0).ItemsList.Add(
    "Jack"
    )

    NewLists(1).ItemsList.Add(
    "Black"
    )

    'Output what color each person likes.

    Console.WriteLine(NewLists(0).ItemsList(0) &
    " likes "
    & NewLists(1).ItemsList(0))

    Console.Write(NewLists(0).ItemsList(1) &
    " likes "
    & NewLists(1).ItemsList(1))

    Console.Read()
    'So I can see the output when debugging

    End
    Sub

    End Module

    So basically when I run the app, I get two lines:

    Jim likes Blue

    Jack likes Black

    I seem to be having trouble with C# array declarations of a custom type (in my case a structure). Anyone know what I'm doing wrong here? C# version:

    using System;

    using System.Collections.Generic;

    namespace ConsoleApplication2

    {

    class
    Program

    {

    public
    struct
    Lists

    {

    //Holds a list of strings

    public
    List
    <
    String
    > ItemsList;

    }

    static
    void
    Main()

    {

    //Create two references to the Lists structure

    //Error: "; expected"

    Lists
    [2] NewLists;

    //Rest of program appears to have been written correctly?...

    //Create two new instances to the List structure and two new

    //instances of System.Collections.Generic Lists for the ItemsList

    //member of Lists.

    NewLists[0] =
    new
    Lists
    ();

    NewLists[1] =
    new
    Lists
    ();

    NewLists[0].ItemsList =
    new
    List
    <
    String
    >();

    NewLists[1].ItemsList =
    new
    List
    <
    String
    >();

    //Assign the names to the first list. Assign the favorite colors of

    //each person to the second.

    NewLists[0].ItemsList.Add(
    "Jim"
    );

    NewLists[1].ItemsList.Add(
    "Blue"
    );

    NewLists[0].ItemsList.Add(
    "Jack"
    );

    NewLists[1].ItemsList.Add(
    "Black"
    );

    //Output what color each person likes.

    Console
    .WriteLine(NewLists[0].ItemsList[0] +
    " likes "
    + NewLists[1].ItemsList[0]);

    Console
    .Write(NewLists[0].ItemsList[1] +
    " likes "
    + NewLists[1].ItemsList[1]);

    Console
    .Read();
    //So I can see the output when debugging

    }

    }

    }
  4. Ok I did a little searching on the topic. Autoplay/autoruns not going away, its just that they've changed its behavior. See here under the section entitled: "Improvements to AutoPlay".

    Basically to sum it up here, unless whats been inserted is optical media you well still get an autorun/autoplay prompt, but only the installed default actions of the system well be displayed to you. Unfortunately, they're keeping it the way it is for optical media due to user habit of expecting the installer for their software or their dvd to start playing immediately when they insert a disc into their systems.

    Regardless its still exciting to know you wont haft to worry about somebody's latest usb infection unless these u3 drives and what have you become more popular. They already are I suppose, but its going to only get worse. Really we need to start training users to manually find the installers on thier discs or launch thier favorites movies with the programs they want to play them in, so MS can put an end to autorun/autoplay for good regardless of what type of storage device it is.

  5. Concentrate on Windows 7/Sever 08 (I think they've got the cert for 08 now). Skip Vista alll together. With the negativity Vistas been getting I doubt any company's going to be upgrading to Vista. Assuming they don't f-up Windows 7's release most well probably be upgrading from XP to Windows 7 in the coming years.

  6. Well by accident I came across Dotfuscator. I'm wondering how good it actually is... anyone? I found out that they actually install it along side VS for all versions except the express so sure enough it showed up in my tools menu in VS. Registered the community edition (here comes the spam :( ). Supposedly all a beginner needs to do is to select the input tab, import the assembly they want to use, select the build tab, and hit build according to thier help file, but when I attempt to build I get a brief flash of status at the bottom of the screen and nothing but empty directories (see attachment).

    Its canceling the build for no reason. I've changed the output directory and even specified a temp directory. Nothing appears on the output tab. I can't figure out whats going on here and getting really frustrated having had to register. Anyone know what I'm doing wrong?

    Update: Expanded the details pane at the bottom after setting build output to verbose (see second attachment). Apparently its requiring a VS file or version I don't have, but I don't see how that can be. I'm using VS Pro 2008.

  7. Great little stegonography app there. At first I wasnt all that impressed but to figure out that stuff is compressed and can be encrypted... went and got it :)

    Its a shame though, cause it doesnt appear as if the project well be going for much longer. The last version was like 0.5.1 or something released back in 2003, but hey, you can get the source code and tweak it to you're liking... at least for the moment anyway. Get it while you can everyone, cause knowing SF it might not be there in a few months.

  8. If you already got a media center pc for the living room its worthless unless you like the game offerings, though backing up your games is cool, but like drop said you haft to flash the xbox with special firmware to play the copied discs. After seeing in the hak5 ep that you could backup your games to an sd card it doesn't compare to the wii's possibilities.

  9. Check out systeminfo /?

    Have your app save the output to a file and than have it post the contents of the file onto something say like a textbox on your application's form for viewing. The last bit or similars required cause the console well just open and immediately close after systeminfo is done and you won't see anything. There's various other system information gathering commands. Look at the batch files the usb hacks here use.

  10. Ok, we went from the average episode feeback thread to an OS debate, great stuff guys :angry:

    Anyway, I havent seen the ep yet but I'm sure it'll be great as usual. I was wondering when we'd see the enterprise virtualzation segments Matt, great job on those :)

×
×
  • Create New...