rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The el5/6/7 images are Enterprise Linux (Red Hat and clones) only. There are Windows-specific installation packages. They include the appropriate guest additions package which you access via the VM's Devices menu.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

From my reading on Microsoft's support site I have to suspect that there is a communication error between the system and device you are trying to connect with. If this is a built-in port, then go to the computer manufacturer's web site and see if they have a diagnostic program to run on your computer to look at the hardware and make sure it is running properly. If it is, then it may be a cable problem, remote device problem, or simply a driver bug (not unknown).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. CPU - either an AMD or Intel 64-bit chip with 4+ cores and runs at 3+GHz.
  2. RAM - 8+GB
  3. Video - Either an nVidia GeForce GT/GTX 730+, or an AMD Radeon card. I'm not familiar with Radeon cards so I can't specify which to get. In any case, get a card with 2+GB of video RAM.
  4. Power supply - at least 750-1000 watts (video cards suck up a lot of RAM).
  5. Good system cooling - water cooling only needed in most extreme cases.
  6. Suitable motherboard and computer case/enclosure.
  7. Decent size HD - 2TB @ 7200rpm is good. SSD's are somewhat faster (not always), smaller, and more costly.
  8. Big (24-27") HD display of at least 1920x1080 pixels. Some games are better with dual displays.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please explain the situation, operating system (Windows I presume), what caused this - I presume error code. What you have provided is not sufficient to help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What L7Sqr said, plus add formal logic. Without strong skills in boolean logic you are lost! I was an engineering major back before dinosaurs, and my philosophy class in formal logic has served me better than any programming or other software engineering or math class did for my career as a top-level software architect and engineer. And yes, I do "data science" also, having been very involved with Hadoop and data analytics.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Leap years are irrelevant here if you follow my comments previously posted. You can calculate the number of days from a base for any date. Subtract the older from the later, and you get the correct number of days between the two dates. I have implemented this algorithm multiple times for multiple employers when we needed accurate date calculations. In fact, you can even use it down to the second! I could post the C++ code here, but the header file is 10K and the source is another 40K. Contact me via private email of you need more information. My date class has a lot of functionality you do not need. The math in the wikipedia article I referenced has everything you need for a simple implementation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Schol-R-LEA - I'm guessing that HLA means "High Level Assembler"? IE, an abstract assembly language?

@lexd - real assembly languages are very processor dependent. x86 vs ARM vs Power-PC, vs Sparc, et al. FWIW, we don't do your homework for you. Post your efforts (code), errors that the compiler/assembler gives you, provide details of your programming environment, and we may be able to help you, but not at this point.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Prolog! Prolog! Prolog! :-) Time for me to re-read Clocksin and Mellish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at the code again. You are setting the variable 'i' to what the user inputs, so if it is > 5 (or >= 10 in your example) then it will break out of the loop. Sorry, but I missed that on the first pass! Use a local variable, and add that to the array. IE,

for (int i = 0; i < 5; i++)
{
    int foo = 0;
    cin >> foo;
    location[i] = foo;
}

This is not to say there are not other errors in your code. You still need to do some serious code inspection. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As one old (very old) programmer to another (I started with Fortran on punch cards in the 1960's) you might want to check out Eclipse. It supports most languages and is a decent open source IDE (no cost, source code available). Here is what may be a helpful link: http://marketplace.eclipse.org/content/pydev-python-ide-eclipse

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time for a new printer? 5 years is an antique in internet time. I think my last HP printer lasted about 5 years as well before it self-destructed.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Huh? Reading first but need to read all 5? Do you only need to read the first value, or do you need to read all 5? If all five, then the loop invariant would be for (i = 0; i < 5; i++). What specifically are you trying to say? Do you want to optionally take less than 5 values? That's another problem entirely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Initialize the variable a to 0.
  2. Since this is C++, don't pass pointers, but better to use references. IE: void addition (int& b) called as addition (a); - that eliminates the need to check for void pointers. Your task is to fix up the code for the functions.
  3. Remember the KISS (keep it short and simple) principal.

Post corrected code here again for more help, nagging, whatever.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The simplest way is to convert the dates to Julian dates (days since start of "time"), and subtract one from the other. Bingo, done... Wikipedia has some good articles about this: http://en.wikipedia.org/wiki/Julian_day - skip to "Converting Julian or Gregorian calendar date to Julian Day Number".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This should not be a problem at all with VBox. How have you configured the virtual network adapter for your VM? Is it nat'd or bridged? If bridged, are you using a static or dhcp address? I have run VM's on dozens of VBox installations in both Windows and Linux hosts, and never have had this problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I never advise a software firewall, but a hardware one. Most personal LAN routers provide this service quite reasonably. Set your computers to use DHCP, or a local static IP address, and your router will use NAT (Network Address Translation) to map local->internet->local addresses. That way, unless you configure the router to tunnel specific ports to local servers (such as HTTP requests to a web server on port 80 or 443), nothing from outside can connect to your systems and compromise your network.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So you have 100 users. What is your internet connection speed? If 100 users are hitting the internet pretty constantly, divide that speed by 100 and you will get what your personal throughput would be. IE, 6mbps / 100 == 60kbps. Timeouts and retries increase exponentially as well. You need at least a 25mbps link to support 100 users at a reasonable level of service. More is better. Even at 25mbps internet download speed, that is only 250kbps per user at peak loads, and if some are uploading (cloud storage), then that drops significantly.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think this is as good of a forum as any for that. If we think your posts are off-topic, we'll let you know.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A major part of the problem why we can't help you is this:

if (user.likes.get(e).equals(Stranger.likes.get(e)))
{
    if ((Stranger.howDoYouLike(likes.get(e)))== 1 && user.howDoYouLike(likes.get(e))==1)
    {
        numOfCommonLikes=numOfCommonLikes+1; }
    }
    else if (user.dislikes.get(e).equals(Stranger.dislikes.get(e)))
    {
        if ((Stranger.howDoYouLike(dislikes.get(e)))== -1 && user.howDoYouLike(likes.get(e))==-1)
.
.
.

There is no way to tell if the objects 'user' or 'Stranger' have been properly initialized since you don't show the code for those.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

JorgeM pretty much hit this on the head. All the data in a VirtualBox VM are stored in system files. You do want to use the incremental expansion option for the virtual drive though, since it will not take up more space on your system disc than necessary - growing the file only when needed. So, if you allocate 50GB of space, but are only using 20, then it will only take 20GB of space (more or less). Also, with snapshots, you can roll the VM back to an earlier state very easily if needed, such as a bad update or such.

So, if you decide you don't want CentOS on the system any longer, VirtualBox has a "delete" option for your VM's that will give you the opportunity to get rid of the VM as well as all associated files.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is a command escape sequence that you can use with bash to set your prompt. Read the bash man page for information on how to set this. The default version can be seen in /etc/bashrc. It is likely that ssh is configured to use another rc or login file to set the prompt.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please provide more information. Does it work when you first boot the computer and attach the modem? If so, how long before it stops working?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try leaving the Curve attached to the computer. Shut the computer off (cold shutdown - not a restart). Then reboot the computer and see if the device is detected. Note that many mobile devices have two USB modes. One is to have it seen as a usb storage device. The other is to see it as a mobile device, such as a tether. Check the device configuration. You should be able to enable the usb storage option from the system settings if necessary.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If your relative got your system infected with malware then you will need at the least to do a factory reset. Unfortunately, that will mean losing all your data on the system. Contact your nearest Apple store to make an appointment with their "gurus" to do a scan of the system, and possible backup of desired data, first.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As pointed out by the other posters here, most VM managers have tools that you can install to deal with this cursor "stickyness". With VirtualBox it is the "guest additions" package which you can easily install after you get your VM running. VMware has its own tools to install to help with this. Even if you don't install such tools, each VMM (virtual machine manager) has a hot key to unpin the cursor. This is the right control key for VirtualBox. I'm not sure what it is for VMware.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you want to get rid of the "and" and leave the spaces, then do this: $s/ and/ /
If you want to get rid of the "and" and the leading space then this: $s/ and//

No rocket science required! :-)

JasonHippy commented: definitely not rocket science! :) +9
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you want to run this as a native mobile application, or as a web application? If native, then iOS and Android use very different programming languages. If web, then use standard web application tools such as html + css, javascript, jsp, php, etc. which will run on just about any web browser, including mobile ones. You can use standard web services to interrogate the device (mobile or desktop) type, browser, and such in order to scale the output to the capabilities of the device.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Let's start with this:

cout << "Enter 5 integers: ";
for (i = 0; i <= 10; i++)
{
    cin >> i;
}

First, you loop for 10, not 5 integer values. Second, the terminating condition should not be <= but should be <. Third, you never add the input (i) to the array.

Score? 20%. You need to do serious review of your own code and understand the logic you are trying to express. So far, not good... In my class, you'd get an 'F'. :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Did you initialize WindowMain to NULL when you created it? If not, then it contained arbitrary data from the stack and it would not be NULL in your test in the WM_CREATE switch.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Man, this is getting boring! How many times do we have to tell folks that we do NOT do your homework for you! Make an effort. Post your code (with errors) and we may be able to help you, but until then... Have a nice day!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

On my TV I have to select the port for display using the control pad. Some might auto-discover the ports connected, and others may not.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look on the Fujitsu web site for bios updates for this system. You might find what you need here: http://support.ts.fujitsu.com/Download/Index.asp

This is a new system, just released this year as I understand. I don't see a BIOS update on the site listed above. There are diagnostic programs, documentation, and such, but no BIOS updates. Why do you think you need a BIOS update?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look on the Fujitsu web site for bios updates for this system. You might find what you need here: http://support.ts.fujitsu.com/Download/Index.asp

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this related to your reported HP notebook overheating problem? Again, we need more information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we need more details. By heating, I assume you mean overheating. And what do you mean by "when power goes off it starts struck..."? We can't provide solutions or advice without adequate information. This is not enough.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do you mean by "internal fragmentation"? Memory fragmentation? Disc fragmentation? Other?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, I have found that upon occasion (though not often) a do ... while() loop has advantages over a simple for(;;) or while() construct, just as the goto statement, while deprecated in most languages, is still useful upon occasion.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yes, I've been there! In my opinion, less is more, and simpler is better. Good naming conventions are very useful, such as m_Varname for scalar member variables of a class, and m_pVarname for member variables that are pointers. It keeps them from becoming conflated with other variables such as Varname. You can easily go overboard with this, but the principal is appropriate.

So, corporate/group standards or not, you need to have your own standards for coding and adhere to them. Since you are working with a team, you need to make them compatible for the most part, or at least not too incompatible! :-) I have found that an occasional personal discussion with the other developer(s) about these issues can help to level the playing field and come to some sort of agreement as to what would work for the team in general. I try to start the discussion like this - "What do you think about using this construct?" or "Can you explain to me why you want to do this that way?". In any case, treat them with respect and you will probably get some in return.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My advice is to read the entire line - not just one word - and parse that. You can easily scan the string from right-to-left to get the last name, and left-to-right to get the first name. See getline().

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this a VMware, or a VirtualBox VM? You say that the VM is using a bridged network. If so, then it should get its IP address from the local network's dhcp server. IE, it should be 80.xxx.xxx.xxx or something like that unless your host as an externally addressable static IP address. The 192.168.xxx.xxx address your VM has is a local unroutable address. If you want outside entities to access the web server on it, then you need to configure your router/firewall to route port 80 (for http requests) and/or 443 (https) to those ports on the 192.168... address.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

After the cout (and add an << endl to the line), you need to pause the problem. Usually this is done by taking some input, such as a line like char avar; cin >> avar;. That should keep the window open until you hit the Enter key.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. We don't do your homework for you (this is a repeat from my post on your other thread).
  2. Show your work. If you don't make an effort, we can't help.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. We don't do your homework for you.
  2. Why Turbo-C? It is so out-of-date that it probably won't work on most modern machines.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why do you think SDL is dependent upon Code::Blocks? It is a development library with standard headers. Have you been to the SDL web site? Here is a link: http://libsdl.org/

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It's a start at least. Take the input. Print it out to verify what you got. This may be what the teacher of the class wants at this point. So Winston, do you have a problem here?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, your 33 lines of C code generates 383 lines of assembler. And you expect us (most of us have day jobs) to analyze it? You set both ax and ay to the same value, and then call the atan2f() function with both variables. If atan2f() is a system library function, then you won't see the assembler code for it since it is already binary - just the function calls you observe.

In addition, you do nothing with the return values, such as printing them out. How do you know you aren't getting valid results?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What ddanbe said. Start with the math. Then code. Then when you have some problems with the code, post it here and we may be able to help you sort it out.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Really, the only significance between "pure" Java and Android is the virtual machine that runs the byte code the respective compilers generate. For Android, that is called Dalvik. Its compiler generates different byte-code than that of native Java, and so requires a different virtual machine to interpret it. The source code can be the same, but the pseudo machine code that the compilers generate is different.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Python is a run-time compiled scripting language. C++ is a compiled machine-level language. With python, you can edit your source code and run/test it immediately. With C++, you have to compile and re-link your application after editing the source code.

A lot of people like python, and it is used for a lot of system tools. C++ is mostly used for the most complex and critical systems since it is rigorously defined and supports native C code for low-level hardware access. IE, I know of C++ used for real-time applications such as aircraft and nuclear power plant control systems, but python for such? Not likely!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And what happens when you press the "any key"? Is this a new problem with the system? Was it working ok before this started? Have you tried booting into the recovery partition and running the recovery tools?

In any case, it sounds like you have a disc or disc controller issue and the BIOS is not recognizing the disc or cannot read it. That sounds like you need to send it in for repair. Hopefully it is still under warranty.