rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What virtual machine manager are you using? What is the host operating system? Did you verify the ISO or DVD that you used to install Vista - the disc checksum (usually an md5 or sha256 checksum)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a case where you need to incorporate multiple threads - one to handle the character, and another to play the music. In a single thread, only one activity can go on at a time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do YOU mean by "an updateable program"? Any program you have the source code for can be updated. So, please clarify what you want to accomplish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Pick either and do your best! :-)

@Mike2K - I spent a couple of months sitting in front of a computer in a huge hangar sized warehouse where the PC board lines and CNC machines were in Charleston, SC working on this stuff! That was in the early 1990's. A great experience, for sure! I'm still more proud of the US Patent I got for adaptive systems software about 10 years after that (US Patent #7,185,325) as sole inventor. Check it out. It is currently owned by Applied Materials, the 800lb gorilla of semiconductor equipment. Seems that a number of Java patents cited my work as well. :-)

naqvi.s.bukhari commented: i too struck in these difficulties ,, both i probably bachelor degree have similarities +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And that is just the start! :-) Remember, PHP is an object-oriented language. If you approach it that way (C++ for web sites), then you will do well. If not, then I have a gazillion examples of failed PHP projects that forgot that maxim!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No. We don't do your homework for you. You do the work, post your code with errors when you are stuck. Then we may help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These are "abstract" types that express certain types that are compatible with the architecture of the CPU you are running on. For example, size_t is the size of an unsigned integer, a 64-bit value on 64-bit systems, and a 32-bit value on 32-bit systems. An ssize_t is a signed value, the same size (bit-wise) as size_t, but signed. loff_t is a long offset used for very big files in order to seek beyond a 32-bit boundary (4GB). It should be a 64-bit value, so on 32-bit systems it would probably be a long long type, and on 64-bit systems a long type.

Many C functions, such as calloc, malloc, realloc, memset, memcpy, etc that allocate or manipulate memory, use a size_t value to specify how big a value you are allocating, setting, copying, etc. This allows those functions to handle anything up to the maximum size that the operating system will support in memory.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And don't be afraid of the math! In any case, formal logic is a subject you should take for either CS or SE. I took it in engineering school, and that one class has been of more benefit to me than all the engineering and programming classes I ever took!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think that CS is more academically oriented, and SE is more application oriented. Science vs. Engineering. You can't have engineering without the science. :-) IE, it is not hard for someone with a degree in CS to get a job as a software engineer. One of my best friends and colleagues was a professor of CS at a major east coast university. He decided to explore more practical applications of his studies. As as result, we were both software engineers together for many years and developed some really advanced systems. He and I together, implemented the entire TCP/IP protocol suite for a real-time operating system, from the Department of Defense DDN protocol handbooks that define TCP/IP and related protocols. That was used by the US Navy in their RAMP (Rapid Aquisition of Manufactured Parts) program that enabled the Navy to reduce time in dry dock for a battleship or destroyer from months to weeks when getting new parts. We also built a lot of the manufacturing software systems for that program to build electronic assemblies, machine drive shafts and propellers, etc.

mike_2000_17 commented: TCP/IP suite for DoD RTOS... OMG! That's beyond impressive! +14
Slavi commented: (y) +6
iamthwee commented: genius +14
JorgeM commented: Nice! +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming that your modem provides a real ethernet connection/port, then it should be capable of use by any of the ports on your router. So, if the WAN port is bad, you would see the behavior you did. Assuming that when you restarted the laptop and that the modem was connected back to the WAN port, then I don't know what is going on, other than a temporary glitch. Shut everything off. Turn on the modem, wait a little time (30 seconds or so), then turn on the router (another 30 seconds or so), and then your laptop. What happens then. If all is good, then don't worry about it. It would, in such a situation, likely be a race condition where things were not stable before you tried to use them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

dd is a great tool, but as with all great tools, its proper use requires great responsibility! All the other posts are right on - Rev. Jim, Gerbil, and Mike2k. I use dd to create bit-image backups of my system on a regular basis, and only use it to copy back if something has seriously munged my system image. I keep data backed up via rsync so if I do have to restore the system image, my data is reasonably recent. What you did blew away your Windows 8.1 system drive and file system, but as noted, there are tools that can help you recover your data, considering that the first part of the disc would be system files from when the OS was first installed.

Good luck, and let us know how your recovery process goes.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Huh? Please elaborate.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What tinstaafl said. Look at the function definition on line 43: int SingleGame(char file_letter);

You want to remove the semicolon as that makes the compiler pretty much ignore the rest of the code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Or more simply, "killall firefox"

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Agree 98% with Mike2K, except the 2% that is the fact that EXT4 is a journalled file system. :-) Minor point, but agree - btrfs is still too new to rely upon for a reliable system. Ext3 and ext4 are both based upon the old ext2 file system, but with better (and faster) recoverability. The good thing is that they all can use the ext2 utilities.

mike_2000_17 commented: Thanks, I didn't know ext4 was a journaling FS. +14
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to post your code before we can help you. Just generalities like you posted are not helpful to determine the cause of your problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can use your virtual machine(s) to access external systems without difficulty. I do this frequently. I do like VirtualBox as a virtual machine manager since it allows me to make snapshots of a VM so that if it gets a virus or some such it won't infect the host OS and is simple to roll back to the pre-virus state.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm not sure it is possible to call shell scripts from PL/SQL. You can call embedded java code which in turn can call a shell script. I had to do that in the past to solve this problem. Here is a link that may help: http://stackoverflow.com/questions/4068816/how-to-call-a-shell-script-from-plsql-program

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why don't you just use qsort() to do this? It is a standard C function that works fine with scalar arrays like this in C++. I use it all the time, if needed. It is fast, proven, efficient (if the array is not already sorted).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a compiler, not a linker error. You are not including the header that has declared Swprintf.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To make a long story short, we don't do your homework for you! Make an honest effort, show us your code, show use where you are getting errors or unexpected results, and then we may decide to help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How do they differ? When you login with RDP / terminal services, you are getting logged into the session that your ID did last time. If they didn't log out, then you get the open windows and configurations active when they left. If you log out, then they get reset to the default login settings, which also may differ.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And what? What is the problem? What is the error? ??? You are NOT providing enough information to help you in any tangible way... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

With appropriate driver support, the 946GX does support OpenGL 2.0, which should have the shader support you need. Go to the Intel web site support page for these GPUs and see what they say.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Instead of "ping", use "nslookup" instead. That will provide 1 or more IP addresses for the domain name, any one of which may, or may not, be available.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To remember: if you install Windows after Linux, you will have to reinstall the Grub bootloader and reconfigure it to know about both your Linux and Windows installation. Windows seems to think that it "owns" your system... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. You have to process the incoming data, such as verifying that it is legal for your program's needs/design.
  2. You are responsible to format the data so that it can be reasonably displayed on the terminal.
  3. This assumes a cursor-addressed terminal/display. You can use curses/ncurses libraries, or similar for MS-DOS/Windows.

It sounds like he wants to know what programming language and version you are using, such as GCC 4.4, etc.

Finally, we don't do your homework for you. This is the best I can provide you under the circumstances.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good explanation Moschops. Now on to nit-picking and some common new C++ programmer errors.

  1. Always initialize member variables that do not have default constructors, such as pointers. See code below.

  2. DO NOT use NULL for null pointers in C++. Always use 0 (as shown below). NULL is usually defined as a void* and if your compiler is set to fail on warnings, or set to observe strict C++ standards, then using NULL as you did will cause a compiler error since your pointers are char* types and not void* types. You cannot (or should not) expect an automatic cast of a pointer from void to char. The C++ standards allow, and encourage, the use of 0 to initialize or set any pointer type.

    MyString(const char* InitialInput) : Buffer(0)
    {
        cout << "Default constructor: creating new MyString" << endl;
        if(InitialInput != 0)
        {
            Buffer = new char [strlen(InitialInput) + 1];
            strcpy(Buffer, InitialInput);
            // Display memory address pointed by local buffer
            cout << "Buffer points to: 0x" << hex;
            cout << (unsigned int*)Buffer << endl;
        }
    }
    
    // Copy constructor
    MyString(const MyString& CopySource) : Buffer(0)
    {
        cout << "Copy constructor: copying from MyString" << endl;
        if(CopySource.Buffer != 0)
        {
            // ensure deep copy by first allocating own buffer
            Buffer = new char [strlen(CopySource.Buffer) + 1];
            // copy from the source into local buffer
            strcpy(Buffer, CopySource.Buffer);
            // Display memory address pointed by local buffer
            cout << "Buffer points to: 0x" << hex;
            cout << (unsigned int*)Buffer << endl;
        }
    }
    
…
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

According to Intel it does. http://www.intel.com/p/en_US/support/highlights/graphics/intel946gz shows that is supports OpenGL, and another article indicates that as of Vista, Intel had OpenGL 2.0 drivers for the chip set.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@iamthwee - well, Microsoft is releasing the source code to .NET and the CLR needed to run C# applications. Graphics? Well we shall see! :-) At this point, I think that Mono runs on the Mac.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Access to / (root of the apache directory tree - not the system root folder) is very dangerous! You should set it up to require a userid and password to access, as in: https://host.domain.com/?user=foo&password=bar - so, index.html in / should validate these GET variables.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@ youssefmanm - harde har har har! I like my Samsung Galaxy 5... :-)

Amrita, the best monitor is what you like the best, at a price you can afford. I have dual Dell 1920x1200 monitors that have been going for years and are good for what I do. The older of the two (over 10 years old now) may have to be replaced at some time (it is starting to get some burn-in). Higher resolution? That won't buy me much in terms of usability, at a higher price.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Does the original Mac mouse work ok? What about the Magic Mouse? If the Mac mouse works, then it is likely not a computer problem, but a faulty mouse. If it also behaves erratically, then it is likely there is a problem with the USB or wireless controller in the computer, in which case you need to take it to the "Gurus" at your local Apple store.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Rik said is pretty correct, though it may be a bad solder joint in the power or battery connector. Unless you are a capable electronics technician, take it or send it in for repair by qualified people.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Boot a live linux CD/DVD/USB drive and you can reformat/erase the device without any problem. To erase the drive completely, use the command (assume the SD card is /dev/sdb) "dd if=/dev/zero of=/dev/sdb bs=1M". That will happily zero out the entire device, in 1MB increments. Of course, it is easier to just erase the boot sector and partition table with the command "dd if=/dev/zero of=/dev/sdb count=1". That would take about 0 seconds... And will not force the TRIM service to wear level the rest of the drive, which is a BIG issue for SD cards and USB thumb drives.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why specifically MSI? There are other motherboards that support the AMD FX series processors. Try some Google searches.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why did you install Ming under Wine? That is a Windows version of the Gnu compiler. If you are running Linux, you need to install the native GCC suite.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Static methods are NOT instance methods! An instance method will operate on instance variables typically, and require an instance to run. A class static method is like a global function, but associated more closely with a class, especially if the class has static member variables.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you are running Windows, there are none. Myself, I will not run Windows natively on my personal systems. When I need to run a Windows application, I do it in a virtual machine running Windows under Linux. My work system is Windows, but it is the responsibility of my company to provide proper security, including full-disc encryption. We are using the enterprise version of McAfee AV.

RikTelner commented: True. If you want best antivirus, I'd say, go Linux. +2
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A PDF form should not require writer to input the signature and fill out the form. The standard Acrobat viewer should work just fine for that, and it is available for most all Linux systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to install the GNU compiler suite for your system. That will include gcc, g++, and such. You may also need to install make and cmake.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not enough information. Does this happen when you boot? After leaving computer alone for some time? What?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Contact Dell tech support. They can probably help you. They have a good internet chat tool so you don't have to wait on hold.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you are saying your code is correct? Yet it dumps core. You are suffering from a severe case of near-sightedness. Step back a bit and look at your code again.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And? You want us to do your homework for you? Make an effort if you want help here. We don't get your degree - you don't get our help unless you try to solve the problem first.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show how you are using getopt() in your code. Just talking about it isn't helpful without something tangible to work from.

FWIW, the Linux getopt() man page has several pages of documentation and examples to help. Here is one of the examples:

       /* The following trivial example program uses getopt() to handle two  program  options:  -n,  with  no  associated
       value; and -t val, which expects an associated value. */

       #include <unistd.h>
       #include <stdlib.h>
       #include <stdio.h>

       int
       main(int argc, char *argv[])
       {
           int flags, opt;
           int nsecs, tfnd;

           nsecs = 0;
           tfnd = 0;
           flags = 0;
           while ((opt = getopt(argc, argv, "nt:")) != -1) {
               switch (opt) {
               case 'n':
                   flags = 1;
                   break;
               case 't':
                   nsecs = atoi(optarg);
                   tfnd = 1;
                   break;
               default: /* '?' */
                   fprintf(stderr, "Usage: %s [-t nsecs] [-n] name\n",
                           argv[0]);
                   exit(EXIT_FAILURE);
               }
           }

           printf("flags=%d; tfnd=%d; optind=%d\n", flags, tfnd, optind);

           if (optind >= argc) {
               fprintf(stderr, "Expected argument after options\n");
               exit(EXIT_FAILURE);
           }

           printf("name argument = %s\n", argv[optind]);

           /* Other code omitted */

           exit(EXIT_SUCCESS);
       }
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

NP. And congratulations! I know how much sacrifice people make trying to juggle family, job, school. Been there, done that! Anyway, keep posting here when you need help, and I at least will help you as much as reasonable. "Don't just give them a fish. Teach them to fish." :-) Yeah, not the original quote, but it works for me!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is just the machine playing with itself. What about real user input? This is a situation where a proper description of the flow of the game is required. Pseudo code is ok, or just text descriptions of how the game should flow, and how user input is interpreted to control the flow of the game. If this were a class assignment, I don't think you'd get much more than a D- (if I were feeling generous the day I graded your work).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

KISS - keep it short and simple. The sum() function should be simply this:

int sum( int x, int y)
{
    return x + y;
}

This results in this output:

-1
-11
7
1
26

Unless your definition of "sum" and mine differ! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What topic is interesting to you? If you have no idea, change to another degree area - CS is not for you. CS has a huge number of subject areas that need investigation and work. Find something that is of interest to you.

I have worked in development framework architecture, design, and implementation along with garbage collection (having implemented a deterministic real-time garbage collector in C++), performance engineering (wrote tools to collect 10 billion data points per day from 5000+ servers to store in a hadoop database, along with many analytical tools for that data), parsers, database-neutral API's (ODBC before ODBC), TCP/IP implementations from the White Book specifications, etc.

Picking a topic that interests you is the key here. If you aren't passionate about the topic, or at least interested/curious, then you won't produce a paper that will do you credit. That, we cannot help you with.