Messages - PhilKC [ switch to compact view ]

Pages: prev1 2 [3] 4 5 6 7 8 ... 19next
11
General Software Discussion / Re: download monitoring in network
« on: June 23, 2006, 09:24 AM »
I've just been doing normal surfing to 3 forumn sites, and the program says i've download 1.2 mb of data. Is that normal?? for 20 mins of forum surfing???

Depending on your client (and forum) settings... Yes...

If you want to save some bandwidth, disable avatars, and sigintures, consider disabling images (Or only allows those from the originating site)...

As for the rouge client, unless your routing devices has some functionality to show bandiwdth consumtion, I think you're out of luck.. (Short of installing an app to do so on every PC)

PhilKC

12
Post New Requests Here / Re: Start Delay
« on: June 20, 2006, 09:24 PM »
Brother_S (A user on this forum) has a program to do just that, I can't remember it's name...

Anyone with a less crap memory recall it?

PhilKC

13
Windows task schedular (Start->Run    tasks) can be set to run anything when the computer has been idle x number of minutes... I know it's not exactly what you want... But similar...

PhilKC

14
I need a job or something >_>

http://bluescreenofdeath.co.uk/DC/RPS%2025.exe

Code: C++ [Select]
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void fillArrays();
  6. int getHand(bool);
  7. int findWinner(int, int);
  8.  
  9. const int maxValue = 25;
  10. static char* names[maxValue];
  11. static int values[maxValue];
  12.  
  13. int main()
  14. {
  15.     cout << endl;
  16.     srand (time(NULL));
  17.     fillArrays();
  18.     int player = getHand(false);
  19.     int cpu = getHand(true);
  20.     int win = findWinner(player, cpu);
  21.     if (win == 0)
  22.        cout << "YOU WIN!";
  23.     else if (win == 1)
  24.        cout << "I WIN!";
  25.     else
  26.        cout << "Draw :(";
  27.     cout << endl;
  28.     system("PAUSE");
  29.     return EXIT_SUCCESS;
  30. }
  31.  
  32. int findWinner(int player, int cpu)
  33. {
  34.     if (player == cpu)
  35.        return 2;
  36.     if (player > 12)
  37.     {
  38.        if ((player < cpu) && (player > (cpu - 12)))
  39.           return 1;
  40.        return 0;
  41.     }
  42.     if (cpu > (player + 12))
  43.        return 0;
  44.     return 1;
  45. }
  46.  
  47. int getHand(bool cpu)
  48. {
  49.     int hand = 0;
  50.     if (cpu)
  51.     {
  52.        hand = rand() % maxValue;
  53.        cout << "I picked " << names[hand] << endl;
  54.     }
  55.     else
  56.     {
  57.         cout << "Pick your hand! (By number): ";
  58.         cin >> hand;    
  59.         cout << endl << "Ok, you picked " << names[hand] << endl;
  60.     }      
  61.     return hand;  
  62. }
  63.  
  64. void fillArrays()
  65. {
  66.      names[0] =         "Gun";
  67.      names[1] =         "Dynomite";
  68.      names[2] =         "Nuke";
  69.      names[3] =         "Lightning";
  70.      names[4] =         "Devil";
  71.      names[5] =         "Dragon";
  72.      names[6] =         "Alien";
  73.      names[7] =         "Water";
  74.      names[8] =         "Bowl";
  75.      names[9] =         "Air";
  76.      names[10] =        "Moon";
  77.      names[11] =        "Paper";
  78.      names[12] =        "Sponge";
  79.      names[13] =        "Wolf";
  80.      names[14] =        "Cockroach";
  81.      names[15] =        "Tree";
  82.      names[16] =        "Man";
  83.      names[17] =        "Woman";
  84.      names[18] =        "Monkey";
  85.      names[19] =        "Snake";
  86.      names[20] =        "Axe";
  87.      names[21] =        "Scissors";
  88.      names[22] =        "Fire";
  89.      names[23] =        "Sun";
  90.      names[24] =        "Rock";
  91.      int i;
  92.      for (i=0;i<25;i++)
  93.      {
  94.          values[i] = i;
  95.          cout << i << " - " << names[i] << endl;
  96.      }
  97.      cout << endl;    
  98. }

PhilKC

15
Personally I think memory usage is a better goal to aim for. With careful pruning of services I used to get sub 70mb for XP usage after boot.

*cough*

http://bluescreenofdeath.co.uk/vmware.jpg

PhilKC

Pages: prev1 2 [3] 4 5 6 7 8 ... 19next
Go to full version