5,331 Posted Topics
Re: 1. Disconnect external power. 2. Verify that the internal power supply is properly connected, and grounded. 3. Make sure all fan electrical connections are correct. 4. Ditto motherboard, and disc drives. One assumes you have a CD/DVD player so you can install the OS? The first sign that things are … | |
Re: They's been trying to adapt the x86 family for mobile devices for some time, without a lot of success. ARM pretty much owns that business, but I think I heard that Intel may license the ARM designs. Since ARM itself doesn't manufacture anything (other than test devices perhaps), they wouldn't … | |
Re: Nothing new there, but informative for many people, I'm sure. | |
Re: Visual Studio has the means to create an install script (.msi file) for an application. Read the documentation. | |
Re: Android development is Java with a different compiler and runtime (Dalvik vs. JVM). DotNet is totally different. If you are angling for an Android job after graduation, then I would strongly suggest that you do your project for that environment. There are Android emulators available from Google for both Windows … | |
Re: Take the input into a char buffer and then allocate and copy it to a new buffer, which you assign to the struct. Also, since this is C++, you need to create a default constructor which will null the pointer and set the age to some sane value, such as … | |
Re: The answer is simple: 2^64 - 1. Why bother with the loop? | |
Re: Example (in a .cpp or .cc file): void myHelloWorld(void) { std::cout << "Hello World!" << std::endl; } int main(void) { myHelloWorld(); return 0; } | |
Re: How depends upon the operating system. If it is a simple program, then with Windows, you add it to your Start menu. If Linux, you can add it to /etc/rc.local. If it is a service, then for Windows you add it to the Services list to be autostarted. If Linux … | |
Re: One common method is to create a bunch of virtual machines, each with its own IP, and partition the job to those. That is basically how we did it for Adobe's Email Campaign software, used by many major vendors for email campaigns - and no, they aren't spam, per se! … | |
Re: You can remove the driver installation files and associated programs, probably without incident. The driver itself should be now part of the operating system, and required DLL's in the \Windows OS directories. | |
Re: Most routers have 100mbps ethernet links, so if your WiFi is 802.11n, it will have close to that speed. The advantages of a wired connection are these: 1. More reliable and stable data stream. 2. No radio interference (w/ accompanying speed degradation) from neighbors' access points (AP). 3. If someone … | |
Re: What Schol-R-LEA said. You certainly need to know the functions for i/o outputs on this system, and an 8051 cross platform compiler. I have such for my ARM embedded systems, but they can be quite different for other processor families. Do you have an 8051 emulator to run your compiled … | |
Re: First, itoa() is a non-standard C/C++ language extension. Don't use it. Normally for C++, you would use something like sprintf() instead, like this: char tpid[33]; int numchars = 0; numchars = sprintf(tpid, "%d", (int)Processes.at(pindex).pid); if (numchars > 32) { // sprintf() returns number of chars output, not // including the … | |
Re: I have done this. Try VirtualBox, and install something like CentOS 6.6 or 7.1. | |
Re: Ok. Since you are using yum as a package manager, that means that you are trying to install this on a Red Hat or clone system. Please provide the specifics of your OS, distribution, version, etc. I am running a clone of RHEL 6.6 and the 4.0.10.9-1 version (from epel) … | |
Re: A static member variable is still just a static (global) variable, that belongs to a class. All static variables have to be declared and initialized somewhere in a translation unit - them's the rules! | |
Re: Services can be disabled from autostarting in the control panel, and you can remove other auto-started applications by removing them from the Start menu's All Programs Startup folder. | |
Re: Provide your code, errors, and problems, then we may help you. That said, we DO NOT do your homework for you! | |
Re: What diafol said. Mixing html and php like that is just asking for trouble. First, build up your output html in php classes and variables. Then when you are ready, output the data. You can take the data/age input from another page, and call this one with the data you … | |
Re: I think your table name is incorrect. You are using "item" for the table name and "ITEM" for the column name. MySQL doesn't care if a column name is upper, lower, or mixed case, so you have the same name for your table and column. Are you sure the table … | |
Re: Add each new result to a vector (array) and then after the division loop, loop over the vector, and add each result for a final value. I leave the coding to you as a simple exercise. | |
Re: How are you using it? Also, have you declared "using namespace std;"? If not, then you need to prefix it with std:: as in `std::cout << std::setw(width) << std::dec << value << std::endl;` | |
Re: Adobe's cloud acrobat tools should deal with this just fine. Personal use is $12.99 / month subscription. Check on Adobe.com. | |
Re: Re. deceptikon - it works fine for me also on RHEL 6.6 Linux using the g++ version 4.4.7 compiler. | |
Re: So, is there a question here? Or are you just showing off? | |
Re: Your question is not clear. Please be more specific. Symbols are embedded in object and executable code until they are stripped, usually in order to reduce the physical size of the file(s). If you have stripped a binary, then you cannot debug it since the debugger (WinDbg in your case) … | |
Re: Quicksort is implemented in C with the qsort() function. It is fast, efficient. You aren't sorting in your code. RTFM... For C++/Java code, look here: http://www.algolist.net/Algorithms/Sorting/Quicksort FWIW, you should be able to do this in about 10-20 lines of code. A bit more if you implement all the low-level stuff … | |
Re: Never pay these thieves a penny! It's like leaving cheese out for the rats. They won't leave you alone! There are some of these malware encrypted systems that can be decrypted. Do a Google search to find out if there is a means to determine the code for the system … | |
![]() | Re: A bit on the retro side - I vote for APL! Or Prolog? Dibol? Snowbol? Smalltalk (did some good work in that)? Personally, I prefer to work with a mix of C and C++. |
Re: Some of the new mock tools are useful for unit testing software. I would like to see more of your "fuzzy" methodology that uncovered these bugs. Code is good... | |
Re: This is a great wikipedia article on the approximations of PI: https://en.wikipedia.org/wiki/Approximations_of_%CF%80 | |
Re: Homework? Sorry, but we don't do it for you. This information is easily available with a simple Google search on the Internet. | |
Re: 1. Sort the array (qsort works well for this). 2. Iterate through the sorted array and keep the pointer and incremented count in a separate array (one entry for each string). When the string changes, add the new one to the counter array with a count of 1 and then … | |
Re: The Boost libraries support arbitrarily large (and arbitrary precision) numbers. This is not available "out-of-the-box" for systems, which is why that Boost does provide this. Note that Boost was originally written for scientific computing where this was a needed capability. IE, if you want to estimate the # of protons … | |
Re: I used to do this all the time when I was researching public key encryption and Goedel algorithms. I would create an array of 10K elements that included all of the primes up to that, using the Sieve of Aratosthenes (I almost always misspell that). Look here for good coverage … | |
Re: If the PracticeTest class inherits from Task, then you can use it to initialize a Task variable. However, you won't be able to use PracticeText methods unless they were also inherited from Task. This is where interface classes can be useful. | |
Re: Your example will output the data and then return (you forgot the return statement, btw) because the condition will always evaluate to false. If you stated it as a while()... statement instead it would have to have been `while(true) {/*output;*/ break; }` which is somewhat uglier. There are times for … | |
Re: If you aren't technically astute and haven't built a system before, then either buy a pre-built one with the features you want, or find a local white-box builder (computer store) to build one to your specs. I have built a lot of systems (and am certified by IBM and others … | |
Re: And what problems, specifically are you having? From the title of this post, you seem to think that shared memory is a problem? Why do you think that? Please be more clear about your issues. I see your code - you create a shared memory segment, fork, but you don't … | |
Re: When it answers "NO", you still fall through to process the invalid handle. You need a conditional to detect that and either emit an error message, or throw an exception. | |
Re: Almost 800 lines of scan output? Please reduce it to the entries you thing are problematic. My time costs my clients $200 USD per hour. Be respectful that we are doing this gratis. | |
Re: "The nice thing about standards, is that there are so many!" So, when writing code, be clear, explicit, and consistent! | |
Re: This is not enough to go on. Are these sensors built into your computer? External sensors with some sort of network connectivity? What? Have you contacted the sensor manufacturer's web site for libraries/api's and such to communicate with them, or even to get their technical specifications? | |
Re: You can initialize a structure, or array of structures, with memset(). Example: #include <stdio.h> #include <iostream> struct MyStruct { string name; string address; string mobno; }; int main(void) { struct MyStruct aStruct; struct MyStruct arrayOfStructs[0]; ::memset((void*)&aString, 0, sizeof(struct MyStruct)); ::memset((void*)&arrayOfStructs[0], 10, sizeof(struct MyStruct)); return 0; } | |
Re: All phones should get their time from the cell tower/service (by default) which is normally syncronized to the global time service (network time protocol). So, normally, you should NOT have to deal with this. If your application needs to, because the devices are in different time zones, then adjust the … | |
Re: If you are doing this as an online project, then for the server use PHP, and DO use it as a C++ like object oriented language! On the client, you will probable use javascript graphics tools to handle the rendering. The server will emit the javascript to the client, with … | |
Re: Don't dual boot. Have a good host OS and then run other operating systems in virtual machines. Current systems, especially ones built for Windows, don't play nice for dual booting without a lot of effort, pain, and suffering on your part! | |
Re: Ok. Post your questions, code, errors, and problems (incorrect results or output) here and we will help if possible. |
The End.