rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you would like us to do your paper for you? Do we get credit for that? Please, even if you have no hands-on experience, you should have the theoretical underpinnings well enough in-hand at this point to do the work. That is the point, isn't it? To use your brain to work out the scenarios as well as you can, and then let the professor grade you on your work, which will help you learn where you went wrong. If we give you all the answers, then what DO you learn? As far as I'm concerned, that is simple cheating!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends. Both are very competitive and work hard to leapfrog the other. So, it kind of depends upon the day of the week, phase of the moon, and whether you are wearing briefs or boxers...

AMD is generally cheaper. Currently, Intel is faster. Either will give you a good computing experience.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Can you access the database server from the 64-bit machine using sqlplus? If not, perhaps you have not properly installed the Oracle client tools/code on the 64-bit machine?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at http://www.mono-project.com/ - you can get source code there. Actually, source is available here: http://monodevelop.com/Download

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you using IP V4, or V6?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I myself learned Prolog with Shapiro's book and consider it quite a respectable job.

That looks like a great book (although rather co$tly). If I were to get back into serious Prolog work again, I would definitely consider it for the library. Thanks for pointing it out! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show how you are using the call, including variable definitions. It may be something as simple as passing a const char* argument to the proxy() function, which requires a non-const char* argument.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good question. That can mean many things to many people. I would suggest that you ask one of the people who are uttering this phrase what they mean by it. In fact, ask several. You might be surprised to find that many of them don't apply the same definition to the phrase. If they do substantially agree, then you have the answer, and then a question here to interpret the explanation may be more appropriate.

One thing as a new member to a pre-existing team should NOT do is sit there quietly without asking such questions. People will assume you understand them, and then get on your case when you go off and do the "wrong thing". In technical and engineering teams, a common terminology is essential for success in your work. I know that when I start my new position in January as a senior performance engineer for a major world-wide telecom engineering corporation I will be asking a LOT of these questions and clarification of terminologies. That's the sign of a good engineer - to keep asking questions until the problem is clear in their minds.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, if I understand you correctly, you want to implement a web server to run on your micro-controller so you can stream your webcam directly to it. That's what open source is good for, but there are two parts to this: 1) the web server and 2) the video display tool. I assume your Arduino board has a video output capability? And adequate RAM to run these tools? Also, what OS are you running on the board? How much RAM does it have? etc...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You might want to look at the source code for Mono, the open source implementation of Microsoft's .NET environment, VM, and languages/compilers. Also, you would learn a lot by inspecting the Java VM source code as well as languages such as Python.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ask Amazon for your $$ back due to defective merchandise.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

One presumes this is a CRT and not a flat panel display? If so, then take it to your local TV repair shop (if you can find one). If it is a CRT, then the symptoms sound like the flyback transformer has gone snafu. FWIW, in the USA you can pick up a decent LCD flat panel for well under $150 USD. Example, on buy.com you can get a 20" LCD monitor (various manufacturers such as Samsung or Acer) for $110 to $150, shipping included. I just did a price check on their web site, so these are current prices.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

They should work identically. I can't speak for Windows systems, but with Linux you can run 32-bit apps on a 64-bit system if you need to.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

They won't show up with df unless they have been partitioned and there are valid file systems installed in those partitions. These devices should show up in /dev however.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try this instead:

find path-to-dir -maxdepth 1 -type d -exec cp -rfp {} path-to-backup-dir \;
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When you input the host name, did you include the domain part, or did you just put in the server name. Example: myserver1 vs. myserver1.mydomainname.com

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, in the 1990's up to about 2005, I used C++ exclusively for similar work, though you have to do a LOT of preliminary class development in order to get the same efficiencies as Prolog provides "out-of-the-box". I have a patent for adaptive systems that allows you to declaratively define new classes, or extensions to these or existing compiled C++ classes, and determine their behavior with a set of rules, without compiling any of the new classes or behaviors, yet these can be integrated with existing compiled C++ programs without compiling. You store the class and rule definitions in a database (flat file or relation database such as Oracle), and tell the system to load the new information and behaviors. This technology is used to customize very complex manufacturing execution systems for most of the semiconductor, disc drive, and flat panel display manufacturers in the world today.

If it wasn't for the fact that the MES in question was written in C++, I may have chosen Prolog for the task.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would use it (prolog) for natural language processing functions without another thought. One of my favorite books EVER was Terry Winograd's "Language as a Cognitive Process - Syntax" that used Prolog exclusively for language processing. Published by Addison-Wesley in 1983. Winograd was a major force at Stanford University in AI studies back then. At that time, I was working as a software engineer and consultant for Stanford, Ford Aerospace, NASA Ames Research Center, and other companies in the Silicon Valley.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

i am also very interested in how to do this,

i have thought about installing one of the extra PCI sound cards i have, but it just seems like it would be a waste of time...

is it a waste of time?

You would probably have to disable one of the cards. I use the HD card that came with my Intel motherboard, and I can switch between front and back, or bluetooth device, as necessary, at least in my Linux system!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I tried to be as clear as I could so that you could understand the flow. You need to study and understand truth tables to really get this stuff, which is what you learn in formal logic classes. Sorry, but my studies in this were so long ago (45 years) that I don't have any texts to refer you to, but there are myriads, which should show up in a Google or Wikipedia search.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The short answer is, NO. Nothing is instantaneous. My point was that if you can determine what is, to a high probability, to be requested, then you can download it before it is requested, resulting in an apparent instant transfer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, prolog is a relatively old language. I was studying it in the 1980's. Clocksin and Mellish was my Prolog bible back "in the day", and it still holds a place of honor on my bookshelf in the AI section. So, I have to think there are C++ to Prolog (and vice-versa) cross-compilers available. I think that there are a lot of links to such tools on the gprolog.org web site. Anyway, remember that Google is your friend! :-)

Also, FWIW, I haven't used Prolog since the early 90's. I segued to Smalltalk around 1992.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but my local Mac resource (my wife) is out of town for the week and I don't use them - Linux only. :-( My suggestion is to register with the user forums or email threads on the gprolog site and ask the question there.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Only for the Doctor, who can start the download before you ask for it... :-)

That said, tongue in cheek, it would be theoretical possible to anticipate what you are going to ask for, based upon your history and current dialog with the system, and download that in the background, to be deleted if you terminated your session without actually asking for it. So, if your were to ask for it while still in session, then it will either already exist on your system, ready to move to your desired directory, or the download will be in progress, greatly speeding up the process. The rules and algorithms to determine this are EXTREMELY advanced mathematically - the sort of stuff that people with PhD's in predictive analytics might work on.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Check out GNU Prolog @ www.gprolog.org, which has an OS X package.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

1) (true && true) || false
2) (false && true) || true
3) (false && true) || false || true
4) (5 > 6 || 4 > 3) && (7 > 8)
5) !(7 > 6 || 3 > 4)

Assuming A is first term evaluation, B is second, and C is third (etc), then look at it this way (remember, multiple terms inside the parens are evaluated together so that the entire expression generates a result).

1) if both (A is true AND B is true) OR if C is false, then exprn == true
2) if both (A is false AND B is true) OR if C is true, then exprn == true
3) if both (A is false AND B is true) OR if C false OR if D is true, then exprn == true
4) if either (5 > 6 OR 4 > 3) AND (7 > 8), then exprn == true (note that since 7 is NOT greater than 8, then this is ALWAYS false)
5) if either (7 > 6 OR 3 > 4), then exprn == NOT true == false

Hope this helps. Pick up a book on formal logic (in the philosophy section of the library). That was my most useful undergraduate class for my programming career.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you right-click on the sound icon in your docking bar, and select "adjust audio properties", then you should be able to go to the "Audio->Speakers" tab and setup the speakers as you prefer. At least this is what you do with XP (I don't have Win7), although I expect Win7 has similar controls. If that doesn't work for you, I expect to get a Win7 system later this week for my new job, so I should be able to determine if there are changes to what you do to get the other speaker port to work properly.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

For a portable development system, definitely go with the Pro. It accepts much more RAM, faster (and more powerful) CPUs, more disc space, better video hardware, and significantly better peripheral support. My wife, a professional developer and physicist at FermiLab, uses hers as a desktop replacement. Yes, it is bigger and heavier than the Air, and there may be times when travelling where you want a smaller, lighter system to take with you - my wife has a netbook that she uses for that, but if she is going on the road and needs all of her tools, then it is the Pro that goes into the backpack.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Once a system is compromised and an attacker has admin access to your system, there is literally nothing they cannot do. As for what you call "random code", I think you refer to what we know as Captchas. They can certainly mirror or redirect your web pages and then "solve" the question. If this were a banking application, for example, it would allow them to access your bank account, and $$, while appearing to be you for all intents and purposes.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Thanks for the Info. I just want to give an example. Actually I need to find out Idle users in our lab environment where we use PUTTY to connect to the server.

That makes sense, and is the most common use for terminating idle connections. You also might want to check into the "who" command instead of finger. It will provide a lot of useful information, including old connections if you use the "-a" option. Anyway, read the man page.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Bear in mind that console windows or tabs in the UI are represented by the *pts/0...n devices. In this case, ravikumar is logged in on the console and has two virtual terminals open, one of which has been idle for some time. I also keep a number of virtual terminals open on my system, each for different purposes, so in my case I have a couple with no idle time, and 2 with 5 day idle times. They don't take much memory or other resources, so it is usually best to leave them alone. Remote logins are another issue, and those are what you need to look for because they do take up network bandwidth just to keep the connection alive.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, bear in mind that thumb (usb flash) drives are a VERY common vector for getting virus infections these days... :-( IE, you might have got this from the device itself!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

After some searching on the terms pjview and pjveaw (as spelled in your captures), I have to think you have a virus infection... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I presume that is 96c, not 96f. 96f is not a problem. Under high load, my CPU core temps may get to 50c (Intel 3GHz Penryn E5450 processors). I've had more issues with memory temperatures, where they actually would overheat to the extent that the system (Enterprise Linux) would drop one out of use. By re-arranging the SIMM positions, I was able to get the heat down to manageable levels without replacing the stick.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, the only thing that VLC can't run that MP will, are encrypted videos.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Don't run Media Player. Download and install VLC - trust me, you will be a LOT happier!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are no member functions in a C struct, which is a bit of a huge difference.

True, but you can "wrap" a C struct in a C++ class and give it member functions and such.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It should be noted in my example above that the members of struct foo were not initialized. This should ABSOLUTELY be done in the constructors in order to avoid "bad things" from happening... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, an example:

extern "C" struct foo
{
    int memberA;
    float memberB;
};

class bar : private struct foo // Structure foo is now a private part of class "bar"
{
private:
    const char* name;
public:
    bar();  // Default constructor
    bar( const bar& ); // Copy constructor
    virtual ~bar(); // Destructor
    bar& operator=(const bar&); // Assignment operator

    int getMemberA() const { return foo::memberA; }
    float getMemberB() const { return foo::memberB; }
};

Member functions in class "bar" can change or read values in struct "foo", but because it is private to class "bar", external entities cannot access or modify its values. Note the getter methods shown will provide access to the data, but not allow them to be changed. This is a useful construct when using C++ to access computer hardware.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

C does not have classes, per se. However, it does have structs, which are something like C++ classes, although all members and functions are public by default. So, you can use a C struct as an element of a C++ class (I've done than upon occasion).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It may be due to interference from a neighbor's WiFi access point. By default, most AP's use channel 6 (of 11) for transmissions. You might want to change your AP to use another channel instead.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends, but basically you can do that. What is your operating system? What are you doing to configure your audio output?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do you mean by the term "home plug"? Are you referring to a powerline network adapter? Or something else?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What do you mean by the term "vps"? In any case, for CentOS/RHEL/etc there are a number of Apache packages that you may want/need to install. I would suggest that you go to the www.apache.org web site for more information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, remember that although most C headers are now "C++ safe", if you want to link a C function of your own to C++ code, you need to declare and/or define it as a "C" function. Example:

extern "C" void myCfunction(int arg); // Declaration

extern "C" void myCfunction(int arg) // Definition - not required if compiled with
// C compiler, but needed if compiled with C++ compiler.
{
   // Do something with arg
}
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A number of keyboards are "user programmable", by hitting various keys. Go to the Dell web site and see if there is a "reset" sequence available to reset the keyboard to factory settings.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I would up the power supply to 750W, and I personally prefer nVidia graphics cards to AMD Radeons. Nothing wrong with the Radeon video cards, it's just that I use Linux a lot and their drivers are just plain better for that. I only run Windows in a virtual machine, so I can't say what their game performance is like, other than what I read in various reviews. Those basically say that nVidia and AMD play leapfrog with each other in the price/performance game, so who is better/cheaper depends upon the day of the week... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The internals of ethernet is a CSMA/CD (Carrier Sense Multiple Access w/ Collision Detection) protocol. Basically that is like where you have a door wide enough for 1 person, but more than one person wants to go through at a time - collision! So, everybody backs off for some random period of time and then they go though again. If another collision occurs, then they try again... When ethernet switches came into vogue, they could not change this protocol, but they could buffer and gate data between nodes over the switch so that collisions rarely, if ever, occur. In any case, ethernet itself does not change the underlying csma/cd protocol, but modern switches and NICs are smart enough to deal with it more efficiently. FWIW, this is why bus-based ethernet was never suitable for real-time factory controls, and most factory networks were either ARCnet or Token-Ring, which used collision avoidance and token passing, so deterministic behavior required for hard real-time networked systems was feasible. In fact, modern switches are so efficient that deterministic timing is now reasonable, allowing ethernet to pretty much take over the factory.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Boot linux (either an installed copy or a live cd/dvd/usb drive), go to the command line and look at the drives detected in /dev, such as /dev/sda, /dev/sdb, etc. Do this before you attach the flash drive. Then attach the flash drive and see what its new drive specifier is, such as /dev/sdx. You can then run "fdisk /dev/sdx" to see or change the partition table, or even write a new boot loader (mbr) to the device.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is the important sentence on the first link that caperjack gave: The designers of SATA aimed for backward and forward compatibility with future revisions of the SATA standard.

IE, it confirms what I said about all sata devices no matter their version, will work with any sata controller and port. AFAIK, the cables are all identical. I have sata-1 and sata-2 controllers and ports in my computer, and sata-1 and sata-2 devices (including RAID-5 arrays) connected to both.