5,331 Posted Topics
Re: IC's (integrated circuits) are just that, electronic circuits constructed of a myriad number of transistors, capacitors, and resistors. Yes, if you know enough electrical engineering to design a device with discrete components (transistors, capacitors, resistors) to implement the device in question, that could be translated to an integrated circuit; however, … | |
Re: Here is a copy of the Linux C Preprocesor man page (it is a bit long): CPP(1) GNU CPP(1) NAME cpp - The C Preprocessor SYNOPSIS cpp [-Dmacro[=defn]...] [-Umacro] [-Idir...] [-iquotedir...] [-Wwarn...] [-M|-MM] [-MG] [-MF filename] [-MP] [-MQ target...] [-MT target...] [-P] [-fno-working-directory] [-x language] [-std=standard] infile outfile Only the … | |
Re: A good example of why you should not declare multiple variables together, but better one per line / declaration statement. | |
Re: It sounds like a possible firmware problem. Do a complete flash reset on the computer - not sure what the procedure is for this unit (it will be found on the manufacturer's web site most likely), but usually it is something like this: 1. Shut down computer. Unplug from wall … | |
Re: Banfa is quite correct about floating point representations. Trying to get an exact comparison of floats is not simple due to the inability to exactly represent a fractional number like you are trying to do. Integer values are a lot more precise in computer terms since they can be perfectly … | |
Re: Yes it does matter, however most *nix systems these days are running x86 processors so should have the same results, assuming that they have the same size word. That said, most *nix systems are 64-bits any longer, so you might want to specify a long long int (64-bits) instead of … | |
Re: Some systems do require manufacturer-branded disc drives for the system disc as least. HP has had this issue in the past. I don't personally know about this model. In any case, I don't purchase HP PC's any more, though my company has started to use them instead of the Lenovo … | |
Re: In truth, the return value of a constructor is the object itself, or a temporary reference to an object that will soon disappear. Whether it is assigned to a variable, or a copy (via reference) is, depends upon whether or not it is used in the declaration of the variable, … | |
Re: The dot (.) operator is to access member variables/functions of an object or reference to an object. The pointer-to (->) operator is to acces member variables/functions of a POINTER to an object. Example: class foo { public: int m_bar; foo() : bar(0) {} }; int main(void) { foo aFoo; foo& … | |
Re: It mostly has to do with the order of evaluation in your code, which is "implementation defined". IE, on one compiler it may work like you would expect, and another it won't (as this is an example). Consider this, when you call func() the first time, it outputs 0, and … | |
Re: The ntpd daemon needs to be able to set the hardware clock, and it can't do that without root permissions. What kernel are you running? I'm looking at my RHEL 6.2 system (latest 2.6.32 kernel) and there is no such configuration setting. What I have similar to that are as … | |
Re: Not having a mac I can't say how to configure Xcode to accept the new compiler; however, my wife does have one and does serious computer systems work for a major physics lab, so I'll ask her. Just be patient - she's getting ready for a family visit tomorrow... :-) | |
Re: Algorithm: if remainder < divisor then if remainder >= 1/2 divisor then round up else round down endif | |
Re: It looks like you are trying to initialize an array of integers. From the way you have coded it, the compiler should have at least issued a loud warning. In any case, you don't show what your output is... :-( | |
![]() | Re: Since this is in the subject "Shell Programming", I have to assume you are running some varient of Linux, and most likely the bash shell? Linux supports just about any character in a file name, including question marks. If an application wants to create a file with such a name, … ![]() |
Re: Not a bad starting server, but the power supply is on the meager side. You should have at least a 750W supply (instead of the included 400W one) for a server this size, especially as you add stuff to it. One other thing is that it doesn't seem to come … | |
Re: AND you need to implement all of the methods specified in the Serializable class. | |
Re: Since you reset the device, you will need to go into the setup page (using the default admin account "admin" - no password I think, or "admin" if needed) and reconfigure the router again. For most Linksys routers that would be 192.168.1.1 | |
Re: Myself, I always keep the original source in the original form, and convert that to PDF for publication. If someone needs to do additional processing and PDF isn't "convenient", then if they ask (nicely), I'll send them the original source document. If it's a book, then it may be in … | |
Re: If you are running Windows, there should be a function key combination (look for the blue FN key, and a function key at the top of the keyboard that looks like a display) to switch between monitors. That should work. Another approach is if your system supports multiple monitors, you … | |
Re: They all vary. Some use pattern recognition. Some look at what system api's are accessed and how. Others apply more more sophisticated neural network recognition software. Why do you want to know? | |
Re: The simple explanation of static members: Static members exist on their own, but are members of the class. They can be accessed by instance objects of the class, or other stuff that has permissions to access it. Non-static members only exist within an instance object of the class. They can … ![]() | |
Re: I think it means that the text it is parsing has to be in standard 8-bit ascii or utf-8 format. IE, if your locale (or the user's) is set to Chinese or such (unicode - 2 bytes / character instead of 1), then it cannot parse the text as a … | |
Re: Faster is better. 64-bits is better than 32. ECC memory is better because your computer will continue to run if there is a memory chip problem. As for 8GB of RAM for Win7-32bits? Don't bother - it can only use 4GB of ram, which is why you REALLY want to … | |
Re: My current workstation at home is 5 1/2 years old - I had it built by a local white-box vendor to my exact specs. It is still near to state-of-the-art. Intel server/workstation mobo, dual 3GHz quad-core processors, 8GB ECC RAM (I would add more if building one today, but it … | |
Re: Current Ubuntu distributions by default will require about 2GB or more of RAM. You can install versions of Ubuntu (or Debian/Mint) that use less, or other Linux distributions that are designed to run "lean and mean". That said, your browser itself will take anywhere from 200MB to 2+GB of RAM, … ![]() | |
Re: Just my opinion - Microsoft Security Essentials? See the following (short version): 1. Uninstall Windows 2. Install Linux 3. Done! | |
Re: Time to read the x86 assembler manual. You should be able to find a copy on the Intel web site... | |
Re: Google is your friend! See this wikipedia article: http://en.wikipedia.org/wiki/Virtual_terminal Or this from Microsoft: http://technet.microsoft.com/en-us/library/cc978134.aspx | |
Re: Or walk into traffic and get run over by a bus! :-) That said, do elaborate on your concerns. | |
Re: Also, argv should be a `const char*` not a `char*`. There are two main ways to process command line arguments. One is to loop from 1 to argc and process each argument (old style). The other is to call the function `getopt()` for each supported argument. These days, the preferred … | |
Re: THere is no way, effectively to "dodge" this, other than by manually patching the machine code of the application itself to jump around the "system()" call. | |
Re: Most of these plugins are shared libraries (dll's in Windows lingo) that the application can dynamically load. They need to go into a directory that the application knows about and can find them. IE, just building them may not be enough. You probably need to copy/move the dll (or .so … | |
Re: Well, we don't do your homework for you. Make an effort and we might be able to help you... | |
Re: L7Sqr gave a great synopsis of this. It is not a simple subject. If you want more info, see this wikipedia article: https://en.wikipedia.org/wiki/IEEE_754-1985 FWIW, my best college buddy, Bruce Ravenel, was the architect of the Intel 8087 math co-processor back in the late 1970's, the first implementation of the IEEE … | |
Re: Your system is running Windows? If so, then you probably are part of a bot-net... :-( | |
Re: Some newer system will require an unlock key code from the manufacturer. Go to their web site and ask their support staff. | |
Re: Often, detection is a 2 (or more) step process. You install a clean system, and take "signatures" (usually checksums) of all files and directories on the system. Then you let the virus infect the system, take it off-line, and using a different operating system, mounting the disc in a "sandbox", … | |
Re: What Mike_2K said, plus to re-emphasize that writing good serialization/deserialization (orthogonal) methods into abstract classes is very difficult. I have done such for software used to run most semiconductor fabs today (MES frameworks), so I know some of the problems you face. The frameworks I developed would work with either … | |
Re: If 3Y is an integer value (up to 64-bits), then to divide by 8 you can use a right-shift operator, shifting 3 places (2^3 == 8). IE, `int64_t result = ((3*Y) >> 3);` This won't work for floating point values, however. | |
Re: Or just type :lol:, which will bypass most spell checkers, and turn into the appropriate smiley on some web sites! :lol: :-) | |
Re: What Moschops and Banfa said. In any case, the short answer is "it is implementation dependent". This is similar to the order that arguments passed to a function are evaluated. The compiler writer is free to evaluate them right to left, or left to right. So, don't make any assumptions! | |
Re: In my words, Java == C++ with training wheels. The biggest issue is which components to "include", much like C and C++... :-) ![]() | |
Re: Template<> is pointing you in the right direction. Model the problem as classes of objects (Shuttle, Station, Passenger), define their behaviors and interactions (Shuttle arriving at station, Passenger entering shuttle, ...). Build up some finite state machines to model behavior. See where threads make the most sense. My guess is … | |
Re: SMART are diagnostics and monitoring software built into most modern discs. There are tools to view what it has discovered about the disc. However, from what you are saying, I would say that the disc is fubar and does need to be replaced. Some of the more important information SMART … | |
Re: What SQL library are you trying to use? Is it an implementation of the ODBC API's, or something specific for a particular database. For example, MySQL has its own library for C and C++ connectivity (my current project uses their C++ library). Oracle has similar. They both have ODBC and … | |
Re: Try this: bool compare_arrays(int a[], int b[], int maxcnt) { bool answer = true; for (int i = 0; i < maxcnt && answer == true; i++) { answer = (a[i] == b[i]); } return answer; // Note that you should always have a default return value. } Remember to … | |
Re: Or they could use an environment variable or user preferences to determine the browser of choice, and do that, as in `system(getenv(DEFBROWSER))`. | |
Re: Is this a Sata, or and IDE drive? If IDE, then as mentioned you will need to be sure the jumpers are set correctly. If Sata, then that will be irrelevant. Is this to be a new boot drive? If so, then you will need to reinstall the OS on … |
The End.