rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Understood. As each drive is detected by Linux, it is assigned the next available device id/slot. The boot device should be /dev/sda. Assuming /home is in an LVM group, then each physical drive will be /dev/sdb.../dev/sdx. On my system, the /home lvm is a 4 drive group, so it goes from /dev/sdb.../dev/sde. Then I have a 4 drive array which is detected next, and each physical drive is /dev/sdf.../dev/sdi. Finally, my other drives are /dev/sdj.../dev/sdm. After the system was started, I plugged in a USB thumb drive, which registered as /dev/sdn. Are we confused yet? :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

only new when it come to linux ,and only use a live Linux ,but i think /dev/sdb is the second disk in the boot menu ,and a usb would show as sdd1 because it a removable device and not hard disk

No, not really. With current systems, usb drives appear as /dev/sdx where x depends upon what slots are available. If you have one physical drive and then boot, then it is /dev/sda. If you then plug in a USB drive (hard drive, thumb drive, it doesn't matter) it will be /dev/sdb.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I would still recommend the nVidia drivers. They generally are a generation ahead of the system vendor's version.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Class/lab problem? How do you see yourself solving this problem? 1) how to create a map of the environment. 2) how to project position information (xy coordinates) on the map. 3) transforming raw data from sensors (waspmote input) to xy coordinates.

This is a great engineering exercise. Assuming it is an engineer school classroom lab problem, then you really need to think this through. You have all the bits you really need to solve the problem (assuming you didn't flunk basic algebra, geometry, and trig - no calculus should be required here).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, C++ and PHP have very similar constructs and syntax. Get a C++ reference book, such as Ellis and Stroustrup's "Annotated C++ Reference Manual" (ARM for short). Stroustrup was the inventor of C++, so you can't go wrong there! :-) I have two copies on my bookshelf - one is the original, and the second is the one they updated to the ANSI C++ standard.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what does the linker documentation say that an Error 3 represents? If there were no compilation time errors, then this is probably a linker error, as your title to the post suggests. You could try installing cygwin, and using their gnu compiler to build this. Gnu compiler tools tend to be more informative as to the errors you encounter.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Did you place it in the EXACT same location in the file system?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

See my answer to your other question...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The num[] array is a local variable to main(). You need to make it global for this to work. Just move the declaration outside of main, as in:

void test(char[]);
void test2(char[]);

char num[10];
 
int main(void)
{
  test(num);
  test2(num);
}
 
void test()
{
   num[0] = '1';
   num[1] = '2'
}
 
 
void test2(int num[])
{
  for(a = 0; a < 10; a++)
 {
  printf("%c",num[a]);
 
 
  printf("%c",num[0]);
 
 
 }
}

It's still beginner's code, but it should work (not tested, not certified).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I'm not sure I'd go as far as Rik and accuse you of downloading "illegal" software, but it appears you were infected with a virus. Rolling back the system probably removed them, as should have the Malware Bites A/V software. Consider yourself lucky if that is all that happened to you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are no end of choices for this project. What do YOU think may be interesting and important? Find a topic that interests you, and do the best job you can on implementing it. That's the only way to an 'A' grade that I know of! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What OS are you running? If Linux, then I recommend using the proprietary nVidia Linux drivers, rather than the default open source Nouveau nVidia driver, especially if you are going to run videos, games, or other graphics-intensive software.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

/dev/sdb tells me you are running a Linux system, not windows. And dban is a "secure" disc wiper program. Finally, /dev/sdb is not necessarily a USB device. Since nothing in your post indicates that this is a USB device, why did you make that assumption?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, in order to map a bt device in two dimensions, you do need two sensors (radios) in order to triangulate their position. So, perhaps it is time to learn how to do some programming? :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The desktop is your GUI. If you have access to your task bar, and other programs, then the desktop is working. I think you have inadvertently changed some desktop settings. What happens when you right-click on an empty portion of the screen? Do you get the menu with the entries "View, Sort by, Refresh,..." etc? If so, then your desktop is working fine and you need to select the "Personalize" option to fix whatever you did to it before.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Bogus info, AFAIK! Avast has been around for quite awhile, and has been considered one of the better A/V programs out there. I haven't used it myself, but I think that if such rumors are circulating, that you should, until you know otherwise, take them with a very large grain of salt!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not really. There are many reasons why a process may be started without your input, so to speak. In Unix/Linux terms, these may be daemons - processes that run on a regular basis in order to do system cleanup/maintenance duties, or to provide other services. The explorer.exe process for Windows is your user interface. In fact, if you shut it down, it will probably be restarted, and (initially at least) may require more CPU and RAM than it did before, simply in order to get back to a "steady state".

So, may I ask where this question is coming from? Do you think you have a virus? If so, what have you done to determine what it is, and what has been infected (beyond the system in general)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have a Dell D630 (now about 4 years old) and I bought my wife a Toshiba netbook a couple of years ago. Both are good. I've had to get the Dell repaired (not so the Toshiba), but it gets more use than the Toshiba. I got the 3 year warranty (new systems are only 1 year, unless you pay a premium), and everything was fixed for free. The battery and/or charging system on this unit has a design flaw, so the battery has gone bye-bye twice since I bought it. I had to put their tech support people in a headlock to get it replaced the second time (less than a year after the first one failed), but so far the newest one is still fine. I don't think the battery problems are just Dell's - a lot of LiON batteries have these problems. In any case, if they last more than a couple of years, consider yourself lucky.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have a Lenovo laptop for work. Nice system. Bought an Acer netboot for my grandson last year, and he's had nothing but trouble with it (mostly overheating issues)... Other people I know have had good results with Acer systems (desktops, mostly). My philosophy is to purchase the best system you can affort. My own is a custom-built server/workstation with Intel motherboard, dual quad-core processors, 8GB of ram, a tonne of disc space, and dual display nVidia graphics. It cost me an arm and half a leg, but after 4 years, it works a treat and still out-performs most new systems. I'll get a new system when this one goes (knock on wood) belly up! FWIW, I paid at least $2000USD less than an Apple Mac Pro that was equivalently (almost exactly - the Apple had less disc space) configured at the time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The thing I like about RHEL and clones (I use SL at home, a Nokia-modified RHEL at work) is that it is built to be dead-bang reliable. We use it on a lot of software development workstations, and exclusively in our data centers. We have to service literally millions of users world-wide, so that is not an unimportant thing... :-) Yes, newer Linux distributions have more bells and whistles, but honestly I would not trade reliability for eye-candy. I am posting this on a Scientific Linux 6.x system (RHEL 6.x clone) and I only need to reboot it when I update the kernel. If I wasn't interested in all of the latest security "fixes", then I could reboot about once a year or even less frequently. I do audio/video processing, software development, embedded systems development (targeting ARM processors), Android development (using an Android phone emulator), Nokia S40 phone development (using Nokia emulator), email, accounting, and a lot of other stuff on this system. All of my software is FOSS (Free and Open Source) with two exceptions - my business Google Apps subscription, and subscription to an industrial strength virus scanner that I use to remove viruses and trojans from my clients' Windows systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

From the bash man page about the read command:


-p prompt
Display prompt on standard error, without a trailing newline, before attempting to read any
input. The prompt is displayed only if input is coming from a terminal.

It may be that since you say it works when running in a terminal, I have to assume that this is not the case when the error occurs? Just how are you running the script then? Please explain in detail.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My guess it that the port you want to use is the one used by the modem for remote access/diagnostics. You can either select another port, or alter the router's settings so that remote access to the router is disabled.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, IMHO WinME was a kluge of the worst sort! If anyone is still using it, they should be taken out to the woodshed and given a great big whack up their backside! However, considering that just about 3 people in the world are probably still using it today, the good thing is that most viruses won't bother with it!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually bobbyraw, that's not quite true. I have seen this trick blow motherboards in the past, and FWIW, I was a factory trained tech by Apple, IBM, Compaq, AT&T, and Zenith in my past (with certs to prove it), and I am an EE and 20+ year member of the IEEE... It won't hurt the power supply in this case, most likely, but it WILL wreak havoc with the system in most situations. Switching power supplies vary quite a bit in their capabilities and safeguards. Yes, they can deal with a fairly large range of input voltages, and still provide a stable output voltage and current. However, they are NOT designed to deal with a 2x delta between design input voltage and actual input voltage, which is what happened when he applied a 110v input to a power supply set to handle 230v. It may well cause a surge in the output current before the circuit breaker or fuse trips that can damage the mobo, and it is the current that kills you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Thanks a lot but does this mean that there's no root terminal in ubuntu 11.10

Don't know. Don't use 11.10, though I installed it in a VM on my system at home in order to answer another question about 11.10. You can enable root logins if that is what you mean, but somehow I don't think so. Myself, when I used earlier versions (7.04, 8.04, 9.04, and 10.10) I didn't even look for a "root terminal". It never occurred to me that such a thing existed... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. But to me, pagination (especially in context of implementing an operating system) refers to memory (RAM and VM) in that memory is sectioned off into pages. I wasn't sure if that was what you were referring to or not (apparently NOT), so I wanted you to clarify your question so we could give you the appropriate help. A spiel on virtual memory and memory paging would not have helped you! :-) So, let me re-read your original post with the fact in mind that you are talking about text pagination and when I have a bit of free time today I'll get back to you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Great! Sometimes, just jabbing a person in the ribs is enough to get them to solve their own problems! :-) IMHO, NOT asking for help, is worse than asking for it, and often not getting the answer handed to you on a plate is preferable, in that it forces you to reconsider your code. You did that, and solved your own problem, gaining knowledge in the process. Good work!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

EEEEEEEEEEE! Arrrrrgh! ROFLMAO!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I didn't say it would. Just that the expression inside the loop was incorrect! :-) You need to analyze the code line by line to be sure it is doing what you think it is!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

400+ lines of code is a LOT to ask people to analyze who do this in their spare time... Focus on the areas that you think may be problematic. You haven't received any responses yet, probably because we all have better things to do than analyze this amount of complex code.

I have to do this at work, but then I am paid well over $100K per year to do so. Call it about $60USD / hour... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You use the -> (pointer-to) operator to dereference a member of a pointer to an object/struct. You use the . (dot) operator to dereference a member of an object (not a pointer to the object), or a reference to an object. In your example, the operator * is what makes the change, in that it means something like "this is a reference to an object, not a pointer to the object). So, using the member "this" which is a pointer to the currently scoped object, you would use the pointer-to operator (->) such as "this->in", but if you use "*this" (which means a reference to the thing "this" points to), you would do "(*this).in". Confused yet? :-) This distinction between pointers and references is one of the things that causes the most difficulty for emerging C++ programmers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do YOU know about pagination? Don't ask for the answers. Ask questions that will help you find the answers on your own!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Shouldn't

for (int i = 1; i < n; i++) {
        	e = ( e + (1/(factorial( n + 1 ))) );
        }

be

for (int i = 1; i < n; i++) {
        	e = ( e + (1/(factorial( i + 1 ))) );
        }
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

For root access, try "sudo su", or "sudo su -". The first preserves your environment variables, the second does not.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As some hippie-era comic character once said, just keep on truckin'! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

ALL 16-year old kids have unshaved beards! :-)

That said, your advise about Brasero was generally spot-on! :-) Also, my 18-year old grandson is a Linux wizard. I don't think he is shaving yet either! I have no prejudice regarding HS kids. My previous cube-mate at 22-years is the same age as my granddaughter, and he is definitely a competent engineer. I ask him for help at least as often as he asks me for mine, and my grandson can do stuff with aircraft design that I can only dream about.

So, in my not-so-humble-opinion, age is not as important as ability and knowledge!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is NOT a shallow subject. What are you MOST interested in learning about? For general knowledge, you can find out a lot on Wikipedia, but for more in-depth knowledge, that requires extensive study. I've been working professionally with this stuff for 30+ years, and am still clueless about a lot of it! Consider that I have been factory trained by IBM, Compaq, AT&T, Sun, Apple, and others, and have been a systems-level software engineer for most of those 30 years, and am currently Senior Systems Engineer for a tier-one mobile phone manufacturer!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Every processor has an instruction set. One common one is to take the contents of one register (a bit of named memory in the processor), and add that to the contents of another register, placing the results in a third register. It doesn't have to do it that way, but that is a common method. Going into more detail requires defining what processor you are interested in (they all differ), and some knowledge of assembly programming.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a number of CD/DVD burners for Linux, including Brasero as mentioned, as well as K3b. I generally use K3b because it gives me better control over disc write speed and other factors than Brasero does. Both of these tools use command-line programs under-the-covers such as mkisofs, which is why if you want the best control over what the system is doing, you need to master the command line, though it is not necessary. Point in fact, that after almost 15 years of using Linux professionally, I still use the GUI CD/DVD writer tools, simply because it is easier! :-) In case you are interested, I am a Linux system programming professional. I work as a performance engineer on systems that support well over a million concurrent users.

Although those are on a number of data centers, world-wide... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please show your code, completely! Without seeing the context in which your problem exists, anything we say is just conjecture!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I haven't written an x86 boot loader since about 1986 or 1987... Since there isn't anything at line 29, the assembler has probably skipped over the empty lines, meaning that the error is really at (just a guess) line 34 or 35 in your code. However, I see that you are using the 32bit eax and similar registers. Standard BIOS's boot in 16-bit mode (still, AFAIK), which means you have ax, bx, cx, and dx 16-bit registers at boot, so even if it compiles (assembles), it may not work as a boot loader. I am right now looking at my Intel 8086 User's Manual from October 1979... :-) In any case, once you load the boot code from disc, you can switch to 32-bit mode (setting up the GDT and such as I see you are doing) on todays' computers and go from there. The general operation as I recall it was simply to call the disc load bios interrupt (13h) which will load the sector read (512 bytes) into memory at a specific location, which you then jump to + the current offset, and continue executing the instructions found there. As I said, I haven't done this for about 25 years so 1) things change, and 2) I don't remember all of the details, though somewhere in my boxes of old floppies I have the original code. Less the partition table on a HD, it is amazing how much you can do in 512 bytes of pure machine …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

At this point, find something you are passionate about that you can apply your interest in computer software development to. My grandson (now 18) is passionate about aircraft design, both fixed wing and rotary. He designs and builds remote and computer guided craft and does all of the systems programming for their control systems, incorporating wireless controls, GPS, and inertial guidance systems. If they lose contact with the base station, he has programmed them to use the GPS or inertial guidance systems to return to base and land on their own. Doing this, he has learned to program down to the kernel device driver level, as well as higher level functions. His stuff is so good that he has to get a government export license to take any of them out of the country... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It sounds like you need to speak with a good ophthalmologist about this, and take the laptop for them to examine. Perhaps something with the colors, or other mostly imperceptible things are going on. Just one question. Is the backlight fluorescent based, or LED based? That will affect the colors, and also if there is a subtle problem with a fluorescent bulb, it could cause this sort of eye problem. Again, the eye doctor may be able to determine if this could be causing the problem, in which case you should be able to force the manufacturer to replace the light(s) under threat of suit for causing bodily harm (product liability)...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why are you running WinMe? Is that the latest Windows OS your hardware will support? As for the CPU usage, look at the services running to determine which are possibly taking up your CPU. My guess is that if you have some sort of anti-virus program installed that does on-access scanning, then that is your culprit. Those tools can totally suck the performance out of a system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since the system has a DVI and not HDMI adapter, I don't think it will give you audio over the link. You will probably have to use the computer's audio mini jack to output audio to wherever. You should be able to find mini-to-regular stereo coax cables that will connect the computer to a stereo, monitor, or TV with audio capabilities. Assuming the MacBook has the mini-dvi port, then you need to determine what input devices your tv/monitor supports. If DVI, or HDMI, then get the appropriate cable for that. If only VGA and/or s-video/coax, get those cables. If both, then go for the digital connection - mini-dvi to dvi or hdmi as needed.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

One is a valid network address (the second one) + subnet mask, the other is not.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

All LCD displays have color differences. There is software that can help you to adjust it to some standards, but in many cases this requires specialized tools to actually see the colors and provide adjustment settings to use with the display driver software. I have two Dell displays that are "in theory" identical (though different models manufactured at different times), and I have to go into the monitor configuration settings to adjust them to be as close to the same as I can, although I never get it quite perfect! As they say, sometimes good enough, is good enough... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, from what I read there for AutoFix, this is not an uncommon situation. Glad you are back to "normal". Myself, I only run Windows when I absolutely have to. Mostly I run Linux, and happier for it, for sure! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No, I don't use Alcohol 120. Lets see if Google can save the day.

Had to ask! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Googling the terms "Windows shell hardware detection boot time" results in a number of possibly useful posts. BTW, I don't suppose you have Alcohol 120% installed on your system? I found one posting that indicates it (which installs virtual CD/DVD drives) can interact with the shell hardware detection service to cause this problem. Just looking at unlikely possibilities. FWIW, I use Alcohol 120 on my Windows systems - best CD/DVD burner I've found for Windows, and for mounting ISO and other disc images in virtual drives.