Jump to content

bbq

Active Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by bbq

  1. I remember a year ago or so on one of the vids a Microsoft project was detailed whereby you take hundreds of photo's of a rooom / house and it then renders it into a 3d environment that you can walk around in virtual environment kind of thing.

    I cannot remember the name of it or the video of it for the life of me and would really appreciate a link to it if someone can remember it.

    I found this - http://research.microsoft.com/en-us/um/red...ivm/PhotoTours/

    But am not sure if this what i am after

    Cheers

  2. #include <iostream>
    #include <set>
    #include <vector>
    #include <algorithm>
    #include <iterator>
    
    typedef std::set<int> set_type;
    typedef std::set<set_type> powerset_type;
    
    powerset_type powerset(set_type const& set)
    {
      typedef set_type::const_iterator set_iter;
      typedef std::vector<set_iter> vec;
      typedef vec::iterator vec_iter;
    
      struct local
      {
        static int dereference(set_iter v) { return *v; }
      };
    
    
      powerset_type result;
      
      vec elements;
      do
      {
        set_type tmp;    
        
        std::transform(elements.begin(), elements.end(),std::inserter(tmp, tmp.end()),local::dereference);
        result.insert(tmp);
        if (!elements.empty() && ++elements.back() == set.end())
        {
          elements.pop_back();
        }
        else
        {
          set_iter iter;
          if (elements.empty())
          {
            iter = set.begin();
          }
          else
          {
            iter = elements.back();
            ++iter;
          }
          for (; iter != set.end(); ++iter)
          {
            elements.push_back(iter);
          }
        }
      } while (!elements.empty());
    
      return result;
    }
    
    int main()
    {
      int values[4] = { 2, 3, 5, 7 };
      set_type test_set(values, values+4);
    
      powerset_type test_powerset = powerset(test_set);
    
      for (powerset_type::iterator iter = test_powerset.begin();
           iter != test_powerset.end();
           ++iter)
      {
        std::cout << "{ ";
        char const* prefix = "";
        for (set_type::iterator iter2 = iter->begin(); iter2 != iter->end(); ++iter2)
        {
          std::cout << prefix << *iter2;
          prefix = ", ";
        }
        std::cout << " }\n";
        
      }
      getchar();
    }

  3. Yea if the above doesn't work

    create this file

    #include <iostream>
    
    using namespace std;
    
    int main()
    {
         cout << "Hello, World!" << endl;
         return 0;
    }

    save this using gedit (text editor) as helloworld.cpp

    then instead of using the gcc command in linux terminal

    use g++ -o hello helloworld.cpp

    this will create an executable called hello if it works. You can run the executable the same as above "./hello"

    If you are after an IDE like microsoft visual studio to make compilation simple as a click... then i would recommend an ide (integrated development environment), my personal favourite under linux is one called codeblocks

    Think the site is

    CodeBlocks

    its simple and easy to use and unlike KDevelop IDE and Eclipse its not full of stuff that confuses beginners :)

  4. Ah sweet, well when a new episode comes out i will ask for it to be mirrored and post the links for aussies to use it... if someone is with internode they probably can do the same :)

    with 25GB a month downloading movies soon eats my bandwidth up so i try to save where i can :P

  5. I can get XP from my college through the M$ Academic Alliance. Idk if thats an option for you, another option is getting a subscription to something like TechNET where you get a lot of software for free and legit, but its not supposed to be for personal use.

    If you have a name-brand computer like HP or Dell you may be able to buy a backup/recovery disc through them. And sometime you may be able to buy what is called a "media-kit" for xp, where you get an XP Cd, but you don't get a cd-key or license.

    Sorry for double post... I am certain my university does not offer that sort of service... Although it does sound like a good idea. I do software engineering and the course is leaning towards Linux and GNU for development... They steer clear of windows except to occasionally show the difference between compiler warning / error messages under different environments...

    My computer is hand built by me from parts bought individually, so there is no chance of a recovery disk being obtained... so yeah I am currently SOL

  6. Alright thanks for the information... I do not know anyone who has XP Pro as my mates either have mac notebooks or XP Home... I will ask at uni if i can borrow a mates DVD and install with my own serial... I actually did that once before on my old old pc when i had XP Home as it was a Packard-Bell and they didn't give an OS disk with the computer as most package POS computers do...

    I had a learch around some dodgy places on the net (warez)... It seems to be rather difficult to find completely untouched .iso's of my version of windows

    Windows XP SP2 OEM 2002

    You would think MS would offer some kind of .iso download so people can restore there product legitimately... Already millions of people are using pirate windows... I prefer not to as i am an advocate for open source however i don't mind paying for MS and believe there are only 2 things on a computer that are definitely worth paying for OS and Anti-virus if needed... That way you have a 'safe' basis to build from...

    I reformatted my hard drive already as dual booting from the same HDD was causing some crashing issue's for windows and the Linux partition I had previously was a little small and my HDD had no room for resizing the partitions. So i cannot restore windows from within windows in anyway as it was nuked before I realised I had broken the cd :(

    I guess i am definitely SOL... and as m0u53 said most people have already handed there hundreds if not thousands into microsoft for products and I am most certainly not re buying something i already own and have a license to use....

    Thanks for the advice and i will try to source a sp2 xp disk from a friend and do it that way.

    Cheers bbq ;)

  7. I enjoy JCreator for an IDE... however i linux Eclipse is the go... As for downloading the compiler and all that... www.java.sun.com go to downloads and then Java SE install and add environmental variables if you want to use cmd... there is a netbeans and sun java combo there to download that should automate it for you...

  8. 1) Whats would you choose?Gnome,KDE,Fluxbox,Xfce,Other

    Gnome 2.2

    2) If other what do you choose

    null

    3) What file manager: Konqueror,Krusader,Dolphin,Nautilus,xfe,Thunar,PCManFM,ROX-Filer

    Nautilus

    4) Whats your fav browser

    Opera

    5) Name 10 of your fav networking/pentesting tools

    Gnome - stock network manager : aircrack... assortment of tools from backtrack distro..

    6) Whats your fav office program

    Openoffice

    7) What programs would you like to see in linux distro's as a default

    • Codeblocks

    Eclipse

    Sun JDK pre-configured

    Eclipse

    VLC

    aMSN

    X-Chat

    k9-copy

    Brasero Disc Burning

    Netbeans IDE

    SciTe (text editor)

    Thunderbird

    Sunbird

    Opera

    8) On a rate 1-10, how important is the look of an os

    10

    9) Whats your fav audio player, movie player, burning utility

    • Audio - Banshee

    Video - VLC

    Burning - k9-copy and Brasero

    10) Whats your fav game

    On linux none, they all suck.

    Maybe Americas Army 2.5

  9. Recently i went to reformat my pc as i dual boot linux and xp... I opened my little box where i keep all my backup cd's and OS installs etc... to discover my XP Pro SP2 OEM cd had snapped in half :/

    I am not buying a new copy thats for sure... currently just running fedora linux to keep me going however some apps i use need doze and i need to get it running again on a new hdd i bought... problem being i don't have a cd anymore... i am not purchasing another... is there anyway to reinstall windows... warez is dodgy even for apparently untouched images etc... i want to reinstall with my key and all that...

    any suggestions are appreciated :mellow:

  10. Yea Americas Army used to be quite good a few years back - they started adding to many things and listened to the stupid geek old men who run all the anti-cheat sites and kiss ass on the official forums and subsequently took a fluent game and made it into some kind of mechatronically ridgit POS... Also the lovely lag and regular crashes combined with the addition of noob friendly maps complete with shitty scoped SF weapons helped decrease the skill level of players all round and lead to the collapse of any decent leagues. </endrant>

  11. I was not a fan of java whilst learning it, however once i delved into c and c++ with all the plethora of data structures and memory management issues... Java really became a programmers dream by compariso... Although cpp is a lot more powerful, java has more than enough to complete most application requirements.

×
×
  • Create New...