rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a lot of free system testing tools to do this. Try Googling for that!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Coller pretty much has it nailed. If you have a try/catch block that fails, then allocated code that was allocated before the try/catch block will no longer be valid.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It mostly depends upon the video card you are going to use. I have dual monitor support on my server (a Linux CentOS system with nVidea 1800GT card w/ 2 ports). My laptop has an HDMI and VGA ports, and runs an nVidia GTX card. Unfortunately, it will display the same output on both monitors... :-( I will report back if I can overcome this problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I've had similar problems when either the CPU or RAM would overheat. As a Linux user, I had access to the sensors tool and could monitor the temperature of these parts. I found that the RAM was overheating, but because I was only using 1/2 of the available slots, I staggered the spacing and the problem went away. Now, it runs nice and cool! At 10+ years old, it is still a kick-### server! Dual quad-core Intel chips and 8GB of RAM. Also, it, being custom built, has a 1000 watt PS. Never go cheap on the power supply!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Calling main(int c) is just plain wrong. Acceptable forms are main(void), main(), and main(int c, char[]). If you are trying to ask the system to evaluate the char[] argument using an int c that is not smaller than the size of the array, then you will get a SEGFAULT.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These sound like school/class questions. All of them can be answered by reading the appropriate books and/or internet articles. We are not here to do your homework for you. :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, make sure the directory and associated files are readable. If they aren't readable, then you can have this problem. I have had similar issues in the past. Make sure the directory also has full rwx permissions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Re. Tinstaafl's suggestion. Just make sure you guard the header from being included multiple times, or you will will have the same problem. Do you know how that works?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not enough information. Need server specs, operating system, and a lot of other stuff. With this "nugget" of information, you are on your own!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The pointer just points to NULL. It has no storage space. you need to allocate space. You could use strdup to do that. IE, sentence = strdup("helloworld"); strdup will allocate space for the string (including terminating NUL character) and copy the string to the newly allocated space that "sentence" now owns.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I always cap them because then you can detect them in your code a LOT easier! Also, I am not sure, but they may need to be all caps anyway. I'd have to refer to the reference documentation to be sure.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need an encrypt method that takes a list or array of files argument so it can encrypt each and put the output into the output file.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try using a live DVD instead of USB drive. That way, any faulty software on the live image can't break the media. Also, I am guessing that the ISO you built your live image from is faulty. Have you run a checksum on it and compared that to what is on the system you got it from? Also, did you get it from the Ubuntu web site, or somewhere else?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you have a primary key or any unique keys defined for this table? If so, that is how you would do this deleting by primary key (unique) or another unique key.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You will find some useful stuff in http://www.cplusplus.com/
If you plug "recursion" into their search bar you get a lot of articles that cover the subject.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And no, I am not going to correct your code. This is too simple of a problem, and you should have no problem solving it!

JamesCherrill commented: Not helpful -3
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Simple two-dimensional matrix. First column is the ticket price. Second is the number of tickets were sold at that price. To compute the income, iterate through the matrix, row by row, multiplying the price by number of tickets. Got it? If not, go back to your basic maths.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to post your errors and where they are coming from if you want any reasonable help. Asking for people to analyze 250+ lines of code is not usually received well. In any case I don't have time as I am currently out of the country until after the first of the year and have little time for such.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ouch! Not sure what you can do as the system is remote. Have you run chkdsk on the system to see if there are file system problems? You can do that without rebooting, or on reboot if you wish. Anyway, a reboot may be necessary. Given the user directory is gone and the user account isn't there any longer, I'm not sure what you can do. If you had a recent system backup and you were on site, then not so much an issue, though if the backup disc is online you might be able to restore the user data after recreating the user account. You will lose anything done in the interim however. :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

25 % 2 == 1. The modulus is the remainder after the division, so 25 / 2 == 12 with a remainder of 1. So, if i % 2 == 1, it is odd. If 0, then it is even.

The bit-wise operation, if the language supports that, is a nice hack though.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is always the speed of light to consider, plus switching time in the necessary optical cable repeaters. That's about 135ms to traverse the world without repeaters, routers, switches, etc. From Amsterdam to NYC you still are looking a 20ms just to cover the distance. There there are all of the routers, spy systems, switches, etc. Longer if you go via satellite. These are barriers that cannot be avoided. So, if your packet from Amsterdam to NYC takes less than 100 ms, consider it a win. Try pinging a server across the Atlantic like that with Speedtest.net to see what is your likely best bet.

Aeonix commented: I see now. Thanks. I guess next "breakthrough" is when we will find out how to travel faster than light. Only 500 billion years to go! +4
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, how are you calculating that?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What rproffitt said. Also, this is an indication that either the file system is munged, or the disc has too many bad sectors. Back up the data and get a new thumb drive, as advised.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to read up on sed and Linux/Unix regular expressions. The dot (.) has a special meaning - ie, any character. You need to preface each with an escape back slash (in a shell, two back slashes) to tell the tool to consider only a dot. Also, forward slashes are expression separators. They also need to be escaped like the dots. Try some experimentation until the output reflects your intention.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Basic programming stuff. Show your code and I'll show you where you are in error.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

All you show is the XML file. Please show your code (php and laravel) and errors you are getting. Also, read the terms of use for this site. We don't do your work/homework for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Persuant to my comment about recursive exceptions, that tool found that a lot of C++ compilers in the early 1990's had major exception handling issues! I had written a solid recursive fib function in C years before for a contract I had with the Mellon Bank to balance their S&P 500 index funds daily after the market closed. It was used to determine which of the "smaller" equities would be included in the bag of stocks, so the appropriate buy/sell orders would be placed before the market open the following day.

At the time, they had over $50 billion in investments - retirement funds from states, major corporations, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rproffitt commented: !] +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Date and time output formatting can easily be done with a format string in the query. Check the MySQL online documentation for your version for details: www.mysql.com

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My first custom build was almost 10 years ago - an Intel workstation/server MB socketed for dual processors, 8GB RAM, 350GB system drive, nVidia graphics card, 4 1TB data drives. It still works for my daily development tasks and only has had a couple of disc failures that I was able to pull the data from to install on new discs - the SMART interfaces of the disc warned me when they were starting to go bad.

One bit of advice - make sure your power supply is beafier than you think you need. For a system such as you describe, a 750-1000watt supply is called for - better too much than too little capacity for this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends. If the embedded system is not real-time constrained, then any such can use cloud resources for database, heavy duty application processing, etc. If they are real-time constrained, then the question is whether that is "soft" or "hard" real-time. Hard real-time is not a suitable situation to use cloud resources as communications and other latencies are unknowable, hence distinctly not real-time. Soft real-time depends upon a worst-case latency factor, and must have alternate computing/database resources if the cloud resources are unavailable due to network, cloud provider, or other issues.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Knowing more fully what you are trying to acccomplish would be useful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Regular expressions like this can be more difficult to specify than doing something simple and obvious. IE, iterate over the string character by character and the first non-whitespace character has to be '?'. That is what you want, isn't it?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What does the IDE log file tell you? Your post doesn't have enough information to help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is standard stuff. The main things are these: security, accessibility, security, security, security... :-) IE, don't try to do this if you are inexperienced in setting up internet network accessible servers in a secure manner. Accessibility is not so much a problem. You can either make your server fully internet accessible (not a good idea), or poke a hole in your firewall for the ports you need to make your system accessible. In any case, you will start getting probes almost immediately to find weaknesses in your network and server that will allow malware criminals unfettered access to your systems, data, and other resources. These are reasons why using hosting services with good security practices is a great idea when starting out. Trust me, I do this for a living! And the game changes so quickly that even if I were setting up an internet-accessible network server myself, I would use a reliable service provider. When I was at Nokia, we had thousands of servers that were internet accessible, and we had an entire IT security team to deal with this cruft. Even when we migrated from our proprietary server farms to Amazon EC2 systems, our security team worked closely with Amazon experts to secure access to our servers that supported over 100 million customers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to use a good graphics library that may have downloadable extensions to do what you want. Check out Qt. There are also some good gaming development platforms, but not being a game developer I can't personally recommend any. The good thing about Qt is that it is fully cross-platform and open source.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What happens if you boot from a Windows install CD/DVD?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you tried restarting the server? Did your system crash while SqlServer was running? You also might run a disk check to see if you have disc / file system problems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not suer, but try C:\ProgramData\MySQL instead of C:\ProgramsData\MySQL. I only use MySQL on Linux and since it is a standard package installation all of that cruft is taken care of for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

it should be if (&anA != p). Sorry, my bad. Dagnabbit keyboard! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can add an assignment operator in class b that takes a reference to an a object:

const b& operator=( const a& anA )
{
    if (&a != p)
    {
        delete p;
        p = new a(anA);
    }
    return *this;
}

Also, your b class copy constructor should return a reference to *this instead of obj.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@CimmerianX - I prefer to name the partitions so I can mount them in /etc/fstab by name instead of UID. Why? Because if I have to clone the drive due to incipient failure of a drive, I can clone it and the system will immediately recognize the partitions, whereas the UIDs will have changed with the new device - at least that has happened to me in the past.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Standard boot/partition sectors (old style DOS ones) cannot handle more than 2.2TB disc sizes. As the warning states, you need to use a GPT partition table type. I don't know if Windows supports that or not. Also, RHEL systems (5.x and later) can handle NTFS file systems just fine. What version of RedHat are you using? FWIW, Windows may ignore the partition table type in this case, but I don't think you can use FAT for a 3+TB file system - NTFS will be required I think.

CimmerianX commented: Correct, You need a GPT +9
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. You need to be sure that the str variable is big enough to handle your input. You might want to consider using getline() instead. Read the man pages. Are you using this in Windows, or Linux/Unix systems?
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to study object-oriented design and development a LOT more before you can deal with this. Consider PHP to be C++ for web programming. In any case, the answer to your question would require a 500 page book to cover in detail... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Suzie999 - you are definitely NOT a noob! In any case, the problem has a couple of components. One is the loading of the DLL in your code - for Linux it is dlopen(), for Windows it is LoadLibrary(). Then there is code to map functions in the shared library to your environment. In most cases, due to name-mangling issues mostly, you can't just use classes in the shared library, but usually only C-style functions. Congratulations, you have just graduated to the next level of software absurdity! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not sure - not my domain of expertise - but don't you need to oauth the facebook site on yours?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a number of issues with this, besides the fact that it is a Windows program. You need to create your main window: win = newwin(nlines, ncols, y0, x0);
Before that, you need to call the initscr(); function. Without those things, when I fixed it up (removed the Windows functions) I could build it on Linux, but as expected it dumped core.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please post the contents of the node class.