Jump to content

dejai

Active Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by dejai

  1. Has anyone here had any experience with Clark Connect its meant to be a really nice linux distribution that comes pre installed with firewalls, proxies, mail servers, dns servers, web servers etc etc. Its something I think would be a really good idea to put in one of the new episodes check it out.

  2. Breaking into systems is not hacking, it is cracking. If you wish to use hacking in its original and correct term it may only be given to great programmers, who have been referred to as hackers by the culture. Breaking into systems makes you a cheap script kiddy or cracker. You will never be a hacker if you crack systems. Now discuss! I believe the above.

  3. The best thing to do would be to try WUBI a windows installer for Ubuntu, get used to it learn how do some basic terminal and then maybe install Lubi and mess around with a bunch of installations. I have settled on Fedora Core 8 but just experiment and have fun. You can't really say ones better than another, they have their own purpose. Ubuntu is made friendly to beginners. Its one of their goals. Thus you should take a look.

    If your a fan boy of live usbs you could install a fedora live usb! Or a ubuntu live cd either way.

  4. I have some time to muck around with.. Any ideas for a program I should make? I have a fair knowledge of C++.. Classes, Objects, Virtual Functions + Pure, Pre -Post Processors, Pointers, Copy Constructors, Link Lists, Templates, members, constructors, destructor's, statics, inheritance.. Don't know to much STL but I am getting there. Anyway any ideas would be much appreciated.

  5. If your trying to write cross platform take note that windows loves to fuck around standards so if you learn windows C or C++ its probably not the actual language. E.g if you use anything like system("cls"); or system("pause"); you have already done something that will not work on unix - like machines.

    Try using :

    getchar();

  6. I am quite sure he is not trying to package the file. I think he wants to run a .exe from within a .exe.. You can't "Include" a .exe binary in a source file. The reason? Because it is not the original source it has been compiled, boiled down. You would need the source. Correct me if I am wrong but you would either have to decompile it or use its original source in compilation..

    If you want to run a .exe from within a .exe with C++ :

    system("my.exe");

  7. I am working on trying to generate Pi with C++. How it should work is it gets the ratio of area in a circle to the area outside a circle within a square where the diameter of the circle is the same as the width of the square (it seems to be about 3.66:1).

    I want to know if there is formula to find Pi using this.

    // I will foo your bar
    
    #include <iostream>
    using namespace std;
    #include <cmath>
    #include <time.h>
    
    
    int main ()
    {
        cout << "Setting variablesn";
        int range = 32768,pointamount = 259499, z = 0;
        cout << "Done setting variables nSetting up float variablesn";
        float distance, x[pointamount], y[pointamount], pie, incircle = 0, outcircle = 0;
        cout << "Done setting float variables n";
        
        srand ( time(NULL) );
        cout << "Starting. n";
        while(z <= pointamount) 
        {
                x[z] = rand() % range;
                y[z] = rand() % range;
                cout << z << "n";
                z++;
        }
        cout << "Done with generating x[z] and y[z]n";
        z = 0;
        
        while(z <= pointamount)
        {
                //find distance
                distance = sqrt( pow(x[z], 2) + pow(y[z], 2) );
                if( distance <= range)
                {
                    incircle++;
                } 
                else
                { 
                    outcircle++;
                }
                z++;
        } 
        
        cout << "Amount inside circle: " << incircle <<"n";
        cout << "Amount outside circle: " << outcircle <<"n";
        cout << "incircle / outcircle = " << incircle / outcircle <<"n";
        cout << "inside + circle = " << incircle + outcircle <<"n";
        system("PAUSE");
        return 0; //guess what
    }

    Trying to decipher this. Do you mean you wish to know the forumla for Pi?  ... C/D      Circumference over diameter. You could just find a predefined circle circumference and diameter but hey :D

  8. The user would need administration privileges, you would have to learn DOS and learn how to check the system constantly for applications meeting certain criteria.  You would then get this to print out in the console window, or GUI if your a bit fancy.  You would have to look for application access privilege's.  Infact you could just use DOS. .  Hmm maybe C or C++ would be a better option to take, Keep it simple.  Use the system(""); function for accessing the system. .  Java should would similarly. .  I hope this helps in some way.  Doing something with your keyboard drivers might also work :D

×
×
  • Create New...