rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why are you using malloc() in your C++ classes? Have you tried operator new?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To output the valuu LH as an address, you need to use the hex output manipulator, as in cout << hex << LH << endl;

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Read this article for detailed information: https://en.wikipedia.org/wiki/IEEE_floating_point

FWIW, my close friend, Bruce Ravenel when he architected the Intel 8087 math processor, implemented the first IEEE 754 device in hardware, back in the late 1970's. Here is another wikipedia article about the Intel 8086/8087 development, citeing Bruce for his work on the architecture of the 8087: http://en.wikipedia.org/wiki/Intel_8086, and here is the article on the 8087: http://en.wikipedia.org/wiki/Intel_8087

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the connection is physically secure and this problem occurs with more than one drive, then you have to assume there is some problem on the system board - a bad connector, controller, or whatever. In such a case, just replacing components is not likely going to fix the problem. You may need a new system board.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not sure. A ground wire perhaps?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Makhetha, please don't hijack another's thread. Please start your own and we will attempt to answer your question. That said, please provide more information, such as system to connect with, the device you are trying to connect, the operating system you are using, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What JorgeM says, plus this: Explanation of TCP/IP takes BOOKS, not just chapters of same... I have several linear feet of books on my shelf that are all required to really understand the protocols. I should know, since in the past I have implemented an entire TCP/IP stack for a real-time operating system from the DDN Protocol handbooks (a foot of that shelf space) which define the underpinnings of TCP/IP. Other books (such as Comer and Stevens) get into socket programming and such.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

See my answer to your previous posting. And please don't ask us to do your homework for you... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The answer is "it depends". Android IS Linux, with some additional cruft, such as the Dalvik virtual machine (Google's version of Java). If the kernel has been compiled with the appropriate drivers, then you should be fine. If not, then you may need to spin a custom kernel build, and install the needed support tools for the device. Most should be seen by the OS as a serial device. Contact the manufacturer and see what they say about generic Linux support.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a good explanation: http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Window_scaling
The left shift is only for the size field. IE: each shift multiplies the window size by 2x. It doesn't (or shouldn't) affect the data already in the window buffer, but as mentioned in the article, the resulting mismatch between sender and receiver window sizes can negatively affect performance.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Several problems.

  1. In struct reco, the money field is an int, not a float.
  2. You need to return an int from main() - at least for current compilers and systems.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you have the default nouveau driver installed, or the proprietary nVidia driver? You REALLY need the proprietary one, and that requires blacklisting the nouveau driver so it doesn't get loaded at boot time.

Once you have the proprietary driver installed, you will see in the System->Preferences menu the entry "Nvidia X Server Settings". To install it, download the nVidia*.run file, and then edit the file /etc/modprobe.d/blacklist.conf, adding the entry "blacklist nouveau". Next, switch to non-gui mode. You should be able to do that with the command "telinit 3" which will set you to console mode (at least for Red Hat distributions - not sure about Ubuntu, but there is something similar for that". Then, you can install the proprietary nVidia driver. Once that is successfully done (don't use the drivers in the Ubuntu package managers...), then you can reboot, and you should be able to configure your displays with the nVidia X server settings.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Consider a virtual machine as just that, a machine where you install an operating system and software. IE, you boot/install the OS you want in the VM and then install stuff you want to run on that "device". I run Linux on a VM on my work Windows 7 system, and run Windows XP in a VM on my personal Linux workstation at home, as well as Solaris, QNX, DOS, and other operating systems as needed, each in their own virtual machine (computer). The cool thing is that I can run more than one at a time, and with the network interfaces properly configured, I can communicate between them all.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

All well and good, being able to specify Linux/Unix file permissions with octal encodings, but these days there are much better options, such as the symbolic permissions supported by chmod, such as "chmod ugo+rw file/dirname", etc. Why force users to know octal permission encodings when they can use much simpler, and more easily understood, dialects? FWIW, I have been working with Unix since the early 1980's, and Linux since the 90's. I almost NEVER use octal encodings any longer for file/directory permissions any longer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As for the homework thing, I appreciate your candid answer. Do continue to post your questions on these forums. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Re. asp.net - certainly, but if you want a browser-based solution that can run on any system (mobile or otherwise), then you might want to consider WebApps, Java Script, or HTML5 instead.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

:-) Yeah, I've been bitten by that one a few times in the past 30+ years! Good find, and do not be shy to post here again when you have a "real" problem! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, Makefiles are typically Linux/Unix cruft. I use them on Windows inside the Cygwin environment. For Windows-only code, I do use VS instead, pain in the butt it may be! :-) If in a "linux" environment (including Cygwin), then you can use bash shell commands in the make file for complex processing requirements. Do you have an example of what you want to do? That would help us to better advise you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I wrote a prime factorization algorithm in C many years ago (in 1985) using the Sieve of Aristostenes. You can create a small (say about 10K elements) array of prime numbers (1 == prime, 0 == not), and use recursion to determine if a number is prime or not, reducing by orders of magnitude the amount of memory required - that was on a 16-bit i286 system with only 256K of RAM. See the article on Goedel numbers for more hints and information: http://en.wikipedia.org/wiki/Goedel_numbers

Also, without resorting to special code, I could handle numbers up to that supported by an 80 bit value (that supported by the 8087 chip, which I had in my system). Factorization of these required sub-second times on my old 4MhZ Compaq "portable" computer (sewing machine in size, with handle).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And FWIW, I have written numerous date processing functions over the years, in language ranging from BASIC to dBase II to C++ and Java date/time classes. They all properly dealt with leap years/seconds, days of week, etc. So, first convert the date to a Julian value. Then, the rest is simple math.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not wanting to go through all this code, I have one suggestion - use julian date values. There are standard expressions to take a julian date (either unsigned integer for y/m/d, or double float for y/m/d/h:m:s) and extract the day of the week, accomodating leap years, and even leap-seconds (if necessary).

Also this:

    if(day==911){
        cout << "The Program has Ended" << endl;
    }

should be this:

    if(day==911){
        cout << "The Program has Ended" << endl;
        return 0;
    }
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These days, a civil engineering degree will require quite a bit of math, and computer programming skills. If you want to be "just" a software engineer, then change your major from CE to computer science or (if available) software engineering. FWIW, having multiple skills is an asset. IE, you could stay in civil engineering, but add a minor in software engineering or programming.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And your question is? PLEASE DO NOT ask us to do your homework for you. See the TOS (Terms of Service/Use) for this site. Make an effort, and we can help you fix errors, but you still have to do the work!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you installed the Urdu language pack for the OS, as well as (if necessary) .net? It (they) will also have to be installed on the shop's machine(s).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. We don't do your school work for you.
  2. If you don't understand the question, see your professor.
  3. If you make a concerted effort to solve the problem, but have coding issues/errors, then we may help you.

Good luck!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have used cygwin for many years and never had a problem installing gcc with it (multiple versions of gcc in one cygwin instance, just like my linux systems). Have you tried uninstalling, and reinstalling cygwin, and when you have the package page showing as to which packages to install, did you enable gcc then, or did you try it after cygwin was installed?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Java 6.x on one and 7.x on the other? I know that there were a lot of "security" changes in Java 7, many of which could break applications such as yours. What the specific issue is I am not certain. We have not yet migrated to Java 7 for just this sort of reason - it would impact about 2 billion users... :rolleyes:

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. (with laptop shut down) connect hdmi cable to TV.
  2. Boot laptop.
  3. If TV still shows "no signal", go into nvidia x-server settings and set the system to use the hdmi monitor.

If #3 doesn't work... I'm at a loss. :-( Try it, in any case. Often, booting with the device attached will let the system "see" it and enable it on boot.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And, FWIW, I would still rather write a Makefile to build software than use an IDE such as VS or Eclipse, though I have extensively used all of them over the years.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is one of those arcane fields of knowledge where you have to sit at the foot of a master for 20 years before you are ready to go and create your own Makefiles from scratch... :-)

Actually, RTFM (the GNU make docs are very thorough), remember that cmake is NOT make (they are very different animals - make will damage you, but cmake will have you for lunch - and not in a good way!).

Also, study other make files. The FOSS community has a gazillion examples of good (and some bad) ones. Myself, after 30 years writing make files, I consider myself marginally compitent, and am still learning / re-learning the tricks all the time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

School problem. Not allowed according to site's TOS. If you make an honest effort to solve this yourself, we can help you, but DO NOT ask us to do your work for you! :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you REALLY want us to do your homework for you? Please, don't cheat. Try to code this yourself, and we might help you debug it... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have experience and domain knowledge in-house? Use open source.
Don't? Use commercial.

There is a REAL learning curve here, and having the (hopefully) hand-holding provided by a decent commercial organization can be a real help in getting started. Just remember the caveates about vendor lock-in (difficult to change down-stream when you finally think you know what you are doing), on-going support costs (N users x $N per year), etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

With Cat5, no link (between active terminations) can be more than 100 ft. (33 meters), at least reliably... :-) FWIW, shielded cable ONLY protects your signal from transient surges (static, local EMF, etc.), but NOT from large active EM strikes, such as lightning. For outdoor cable runs, you REALLY do need active surge protection at all terminations (switches) that may be susceptible.

FWIW, I am a director of an IEEE consultant's network.

Anyway, the saying is, "Better safe than sorry".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Mostly, this sort of problem exists because the application is checking the permissions of the files/directories they use to be sure that they have not been "hacked". Change the permissions back to the defaults, and either switch to the root account (su - root) to view them, or set up your sudo permissions to view them. Check the /etc/sudoers file for your specific permissions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And yes, there are a large number of good A/V scanners for Linux, since Linux systems with these scanners are used for most network-edge and email scanners. Most frequently, they are used to scrub data being sent to Windows systems...

Free: ClamAV (known as ClamWin on Windows systems). A good, open source A/V tool available for just about any system today, including Windows, Linux, and OSX.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What cereal is says is that you should RTFM! Linux man pages are there so you can figure out simple stuff by yourself...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

For Unix/Linux systems (that should include OSX), you would use the inotify tools and api's. I don't know what the equivalent would be on Windoze systems. You need to do some searching in the MSDN documentation or Google it.

FWIW, I have a fair amount of experience with inotify on a variety of systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you provide 142 lines of Java code, yet don't indicate where your problem occurs... :-( Please be more specic as to where the problem occurs, and why YOU think it may be happening. I'll teach you to fish, but I won't do your fishing for you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is basic computer science. There are abundant resources that explain how to do this online or in the literature. Please DO NOT ask us to do your homework for you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What AoD said - the term for this is "steganography". There is an abundant amount of literature on the subject that can be accessed online. Remember, Google is your friend! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

PLEASE DO NOT ASK US TO SOLVE YOUR HOMEWORK PROBLEMS! This is cheating, pure and simple! The other posters have given you great hints about what may be your problem(s), yet you want them to finish the work... If I could, I'd give you a great big dope slap upside your head!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, assembly language depends ENTIRELY upon the target processor. The assembly instructions for an x86 processor are totally different from an ARM chip, MIPS, uC, PowerPC, Sparc, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your school work for you. Make an attempt and we might be able to critique your work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do you mean by "manually"? Do you mean from source code? Or do you mean using the various Ubuntu package manager tools (apt-get, synaptic, dpkg)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

From the command line, add an ampersand (&) at the end of the command.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Yes.
  2. Google is your friend.
  3. Don't ask us to do your homework/schoolwork research for you.
  4. If not schoolwork, go to #2.
  5. A good reference text is David E. Goldberg's "Genetic Algorithms in Search, Optimization, & Machine Learning", published by Addison-Wesley.

FWIW, scheduling systems often are more effectively built using CLIPS (Constraint-based rule processing in C) tools. See the Ilog Scheduler tool for an example - it was used to implement the French railway scheduling system as I recall (I studied that system about 20 years ago).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

While Linux is not Unix, it is a Posix-compliant operating system, so most of what you learn about Unix is relevant. I have used both Unix and Linux (and related systems such as QNX) for many years. This is a good book - probably worth getting for general background information and knowledge. Kernighan was one of the original Unix developers at Bell Labs, and he was, with Dennis Ritchie, the author of the C language, still at the heart of most operating system development, especially Linux.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I deal with this cruft all the time.

  1. Boot from a live Linux CD/DVD/USB device.
  2. Assuming your system root (/) file system is /dev/sda1 (on Red Hat systems, it may be /dev/sda3, then you need to run this command: fsck -f /dev/sda1 (or fsck -f /dev/sda3)

The command "fdisk -l" will show your disc partitions, so you can know to run fsck on all of them, except for the "swap" partitions.

So, for more specific instructions, post here the output of "fsck -l".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good start. Your declaration/definition on line 24 should be:

test* sArray[] = {

Why, you may ask? Because naming an array by its simple name (such as sArray1 or sArray2) is actually a pointer to the array; hence, the use of the pointer type for sArray[]. IE, you have an array of pointers to arrays. Clear as mud yet? :-)