5,331 Posted Topics

Member Avatar for mah300274

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, …

Member Avatar for mike_2000_17
0
176
Member Avatar for christinetom

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 …

Member Avatar for rubberman
0
190
Member Avatar for pooh1234qwerty

A good example of why you should not declare multiple variables together, but better one per line / declaration statement.

Member Avatar for JasonHippy
0
177
Member Avatar for zalax

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 …

Member Avatar for zalax
0
178
Member Avatar for pooh1234qwerty

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 …

Member Avatar for nullptr
0
141
Member Avatar for nitin1

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 …

Member Avatar for nitin1
0
147
Member Avatar for kak_kulubob

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 …

Member Avatar for BigPaw
0
252
Member Avatar for maalaakhantaurux

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, …

Member Avatar for rubberman
0
305
Member Avatar for irfan_ncp

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& …

Member Avatar for rubberman
-1
169
Member Avatar for mahesh113

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 …

Member Avatar for rubberman
1
131
Member Avatar for leghorn

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 …

Member Avatar for rubberman
0
207
Member Avatar for WanderingCoder

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... :-)

Member Avatar for rubberman
0
345
Member Avatar for holyboy.makescence
Member Avatar for caperjack
0
214
Member Avatar for aVar++

Algorithm: if remainder < divisor then if remainder >= 1/2 divisor then round up else round down endif

Member Avatar for aVar++
0
139
Member Avatar for nitin1

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... :-(

Member Avatar for pooh1234qwerty
0
138
Member Avatar for Rahul47

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, …

Member Avatar for Rahul47
0
209
Member Avatar for sirlink99

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 …

Member Avatar for sirlink99
0
217
Member Avatar for tanmay.majumdar2

AND you need to implement all of the methods specified in the Serializable class.

Member Avatar for pbj.codez
0
170
Member Avatar for Dani

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

Member Avatar for Dani
0
443
Member Avatar for Stuugie

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 …

Member Avatar for BigPaw
0
324
Member Avatar for Gofferxd

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 …

Member Avatar for BigPaw
0
231
Member Avatar for killer88

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?

Member Avatar for rubberman
0
77
Member Avatar for Abhinisha

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 …

Member Avatar for MonsieurPointer
0
211
Member Avatar for cleve23

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 …

Member Avatar for JamesCherrill
0
200
Member Avatar for oldman1943

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 …

Member Avatar for oldman1943
0
268
Member Avatar for aVar++

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 …

Member Avatar for BigPaw
0
205
Member Avatar for mah300274

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, …

Member Avatar for iamthwee
0
901
Member Avatar for menchie07

Just my opinion - Microsoft Security Essentials? See the following (short version): 1. Uninstall Windows 2. Install Linux 3. Done!

Member Avatar for caperjack
0
64
Member Avatar for rakesh.menon.16

Time to read the x86 assembler manual. You should be able to find a copy on the Intel web site...

Member Avatar for CarolJ
0
253
Member Avatar for chie07

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

Member Avatar for BigPaw
0
158
Member Avatar for menchie07
Member Avatar for rubberman
0
80
Member Avatar for Abhinisha

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 …

Member Avatar for NathanOliver
0
213
Member Avatar for usamaasghar.asghar

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.

Member Avatar for pritaeas
0
188
Member Avatar for christinetom

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 …

Member Avatar for christinetom
0
128
Member Avatar for omidex
Member Avatar for omidex
0
161
Member Avatar for nitin1

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 …

Member Avatar for rubberman
0
205
Member Avatar for Leo G
Member Avatar for Leo G
0
337
Member Avatar for jgduplessis7

Some newer system will require an unlock key code from the manufacturer. Go to their web site and ask their support staff.

Member Avatar for rubberman
0
610
Member Avatar for killer88

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", …

Member Avatar for rubberman
0
277
Member Avatar for CPT

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 …

Member Avatar for mike_2000_17
0
516
Member Avatar for johans22

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.

Member Avatar for rubberman
0
97
Member Avatar for jbadda

Or just type :lol:, which will bypass most spell checkers, and turn into the appropriate smiley on some web sites! :lol: :-)

Member Avatar for rubberman
0
222
Member Avatar for mahesh113

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!

Member Avatar for rubberman
0
138
Member Avatar for hackoman96

In my words, Java == C++ with training wheels. The biggest issue is which components to "include", much like C and C++... :-)

Member Avatar for iamthwee
0
275
Member Avatar for John Linux

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 …

Member Avatar for Sergio_1
0
513
Member Avatar for jainshubham2592

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 …

Member Avatar for Rik_
0
122
Member Avatar for anitha av

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 …

Member Avatar for sai subhashini
0
127
Member Avatar for eldiablo1121

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 …

Member Avatar for Moschops
0
198
Member Avatar for Ajay krishna

Or they could use an environment variable or user preferences to determine the browser of choice, and do that, as in `system(getenv(DEFBROWSER))`.

Member Avatar for nksridevi
0
524
Member Avatar for hiboy1952

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 …

Member Avatar for moon321
0
261

The End.