rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. I just downloaded and installed the PF_RING 4.6.0 source code and was able to build it on my RHEL (Scientific Linux) 6.0 system without problems, so it should build ok on your CentOS 6 system also. There is no configure script for that version. Haven't tried the SVN (bleeding edge) version yet. Will do that and report back.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are packages already built into a binary format, such as you normally get via your system's package manager - synaptic/apt-get in Ubuntu/Debian distributions, or yum/rpm in Red Hat distributions, etc, and then there are source packages that you build on your system directly. Both are "packages", but in one case they are pre-built for you, and in the other case you build them yourself from source code. Some are not available pre-built, so in that case you will have to configure/build them yourself.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Dear Rubberman,
Thank you actually usr/local is for user apps right? Thank you.

Not really. It is for locally installed applications, but it is still owned by root. That is why most Linux source packages install themselves there by default. You should build a package as a regular user, but then run "make install" as root, or sudo.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

OK. I'll have to download and try this on my system. It seems to be wanting to create a file in /usr/local which you don't have permissions for. This should not happen until you try to execute "make install". I'll get back to you about this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As root, go to pf_ring source directory where you tried to build the package, and execute the command "make clean" first, which will remove all the results of the original compilation. Next, switch back to a normal user, and go to the pf_ring source directory and execute the command "make". What is the result of that?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Creating a B+ or AVL tree program is not trivial. Having documentation (book or online form) available is most helpful. Here is the Wikipedia link for AVL trees: http://en.wikipedia.org/wiki/AVL_tree

Note that there is a link to a C++ implementation of the algorithm at the bottom of the article.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Indeed, nobody claimed otherwise. As a prime example, our super moderator ~s.o.s~ is both a skilled programmer and from India.

FWIW, some of my most skilled software engineering colleagues are from India. There is no corner on the "market" for smarts. Just look at the accomplishments of such Indian scientific luminaries as:

Sir Chandrasekhara Venkata Raman - 1930 Nobel Prize for Physics (known for Raman scattering of radiation) and his nephew
Subrahmanyan Chandrasekhar, 1983 Nobel Prize for Physics, for whom the Chandrasekhara Limit is named for.

These are two people who were major influences on the careers of such as Einstein and Hoyle.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

anyway, im in a programming languages course at college and my instructor DOES NOT HAVE A DEGREE IN PROGRAMMING!!!

A degree does NOT == competence to teach a subject. I have no engineering degree (yet a lot of graduate level course studies), yet the IEEE recognizes me as an engineer due to my experience and accomplishments, AND I have taught software engineers with PhD's in the subject. In fact, I am the chairman of an IEEE affiliate organization. I have taught accredited courses in C++, wireless telephony, and networking to employees of AT&T. So, just because your teacher does not have a BS/MS/PhD (BS == Bull Stuff, MS == More of the Same, PhD == MS + Piled Higher and Deeper), does not mean they cannot teach you anything! Software that I designed and wrote currently runs about 80% of the semiconductor FAB's in the world, so if it is good enough for IBM, Motorola, Samsung, Philips, etc al...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't know - please list errors/warnings when you build as regular user. FWIF, you MAY need to first execute "make clean" as root since you started building as root originally. As a result, a lot of the files will be owned by root, resulting in the permission errors that you are seeing - likely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, I just went on to Amazon.com and ordered the complete 5 volume set of volume 4 - only set me back about $80USD... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

thanks you have been a great mentor or "help"

Sorry, but sometimes I get a bit sarcastic... :-) In any case, just remember the KISS principle. There are a lot of binary tree types. Some allow only one member element per node (a proper binary tree), some that allow more than one member element per node (B+ tree - common in database systems for indexes), and then there are the insert/delete/balance algorithms. This is a complex and complicated domain which is why I referred you to Knuth, who covers all of this in Volume 3 of his seminal work "The Art of Computer Programming".

My opinion is that EVERY computer programmer should have a copy of this set on their book shelf. Also, he recently released volume 4, after about 30 years... I still have to get that one, or a complete copy of the current set. It will only set me back about $172USD on Amazon.com today... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

"Like this?" - Not really... "This" is pretty crufty. A pointer to a reference in tht treeInsert() method? Come on. Where did you learn C++? I think that it is time that you spend a few $$ and some time with Lord Knuth, Volume 3, Sorting and Searching...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Two good books that I have on my shelf are:

Crafting a Compiler, Fischer & LeBlanc
Compiler Design in C, Holub

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your question is not particularly clear. Please explain the problem scope more specifically. A binary tree has only one item in each node. A B+ tree can have multiple items in each index node. So, if you want 5 strings/items in each node, you need to implement a B+ or AVL tree. Read Knuth Volume 3, "Sorting and Searching" for good algorithms on doing this. FWIW, Knuth is the "bible" of software engineering.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, the power supply may be insufficient. If increasing the cooling (air flow) doesn't help, then you might try a new power supply, with greater capacity.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is likely due to component (RAM and/or CPU) overheating. Is their any way to increase the air flow over the motherboard to help remove the heat?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As the warning said, compile your applications as a normal, not root, user. Once it has built successfully, execute the command "make install" as root.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well using the extracted URL http://youtu.be/ugiANaZQSkI I was able to get this to play in Chrome on my Linux (RHEL 6) system. I can't find the actual file URL to download however, so it may be protected. I'll repost if I find a way to access it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sometimes you have to reset your BIOS to avoid using the build-in graphics hardware.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sometimes I have to set my browser to display the raw html code so I can see what the real URL is for the video. Then, I can download from that URL directly to an FLV file. That I can either play with a suitable video player such as VLC, or I can convert it to another more usable format (mpg2, etc) using a video transcoder such as ffmpeg.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Cout is the same as the C language stdout. Output goes to the console/terminal where the program was run, or to the file stdout was redirected to by the shell. The << operator is an input operator, and basically does nothing with cout/stdout. It is used with cin/stdin (standard input - usually the keyboard, or file if redirected by the shell). From the command line, the stty command uses << to read the status of the specified file/stream descriptor to determine what it's settings are, such as baud rate, etc. In any case, I think it is time you read some documentation/manuals/books on Unix/Linux I/O systems to better understand this stuff.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try to be more specific and provide examples of your problem. FWIW, you can install the gnu compiler tools on OSX, which will probably work better for building applications for Linux and such.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What version of PF_RING are you trying to build? Where did you download it from (ntop)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A client of mine had the same problem on his HP ToughBook tablet computer. Nothing would bring it back. The only conclusion is that the system is fubar. The drive was ok and I was able to use my Linux system to backup his data files, but nothing would bring the tablet back to life (running Windows Vista). We could not even access the BIOS and run the restore partition. Since it is out of warranty (1 year - 2 years since purchased with no extended warranty), it will be cheaper to replace than to repair.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Run video conversion tools natively, unless the OS you are using on the VM can run the conversion MUCH more efficiently than the equivalent tool on the host OS. I use ffmpeg on Linux to convert videos from one format to another. I always run them on the native OS, not in a virtual machine, but then my host OS is Linux, not Windows... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to know the password for the system oracle account, which you specify I think when you install the database, though it may just default to "oracle". Login to the oracle account, and you can create any number of new dba accounts in the database.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Username/Password for what? For your local Oracle database and/or user account?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming this is 32-bit XP, you can't use more than about 3.5GB of RAM (about 0.5GB of the 4GB max is reserved). This means you can't have more swap space than that. Newer systems that support PAE (Physical Address Extension) can address more RAM than 4GB, but the OS also has to support it, which XP does not AFAIK.

Anyway, if you have rebooted the system with the swap file set back to 3.5GB or less and it still happens, then I think you have a hardware problem, which is likely just coincidental with your increasing the swap space.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most programs/packages contain executables, scripts, libraries, configuration settings, and possibly databases or other files. They need to be where the program expects them to be, such as in /usr/bin, /etc, /opt, /usr/share, /usr/lib, etc. When you use a package manager, such as apt-get, dpkg, synaptic, etc to install the package, the files are put in their appropriate places by the package installation tool according to the instructions it finds in the package.deb file. You can then manually move the files or installed directories such as /opt/package-name to your USB drive, and create links in their original location back to their new location on the thumb drive. There are other methods as well.

If you install from source, most source packages have a configure script which normally allows you to tell it where to install the package or parts thereof. If you do that, then you will probably have to change your PATH and possibly LD_LIBRARY_PATH environment variables so the system can find the executables and/or libraries.

So, clear as mud, right? :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to set up the routing tables on .10.x to access the .30.x subnet. Are you running Windows, Linux, or OSX?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think your second approach is better, but you might want to change what is connected to each switch more from the fault tolerance perspective than performance. IE, move one of the PC's and NAS drives to switch #2 and the XBOX to switch #1. From the raw performance perspective, your proposed setup should work well for you. In any case, neither configuration will affect your internet speed much, if at all.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Oracle has a java-based GUI for server installation. There are some scripts that need to be run as root, which you will be informed of during the installation process. Read the Oracle installation documentation. It is not simple, but the docs are generally quite thorough.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The structure and syntax of PHP and C++ are very similar. Myself, if I were already proficient in PHP, then C++ won't be that difficult to learn, and more useful than Python if you want to get into systems programming. Python is a great tool for building utilities, but for the really heavy lifting, C++ is, IMHO, hands-down a better choice.

Fbody commented: Would have said the same thing, but I don't know Python. +13
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Glad you got a work-around functioning. There are a lot of gutenburg drivers for various printers, most of which work ok. I'd still suggest visiting the openprinting.org site when it is back online to see if there may be something better for your situation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yeah i found that same site and used the wayback machine to view the page, but had no luck with the download

The site is still down. It is maintained by The Linux Foundation and they had a serious security breach last month, requiring them to revamp all of their web sites (kernel.org, linuxfoundation.org, linux.com, openprinting.org, et al). It may be that they haven't finished fixing the openprinting site yet - some of the others just got back online this past week. So, you may have to wait a bit to get a current/valid download. Not much I can do about that other than to suggest you keep trying the openprinting.org link from time-to-time until it is back in operation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The controller is the adapter (usually). You need the optical cable(s) to connect the drive to the controller/adapter. If you go to the IBM (drive) and Emulex (controller) sites and reference these product numbers, you should be able to access technical specification documents (usually pdf files) that will give you more information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need a controller card and cables, obviously. From what I can find, the controller is going to cost you somewhere from $280+ (single port) to $1400+ USD (2 or more ports). A cable will run you about $150+ (duplex cable) - at least this what I found on the www.buy.com web site, which usually has very competitive pricing for this sort of stuff. I buy most of my hardware from them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Current Linux systems use the CUPS printer system. You need to find a CUPS driver set for the Savin. What model is this printer?

Edit: Ok, I looked on the savin web site to see if there are Linux drivers for this printer (Savin 4022), but only found ones for Windows and Mac. I did find with google search a link for open source drivers on the Linux Foundation site, but when I tried to access the information it came up as "site down for maintenance. Try again later". Here is a link so you can try later: http://www.openprinting.org/driver/pxlmono-Savin

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A bad power supply can easily fry a motherboard, and other components (disc drives, add-in boards, etc). How? The computation for power is A (power) = V (volts) x I (amps of current). The power requirements of a component is linear or dependent upon load. If the voltage drops because of a bad power supply, the current increases in order to keep the power stable or deliver the power the components require. At some point, the current (producing heat) is too great, and "snap, crackle, pop" goes your system... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well if you have a array of 100000 doubles it would only need about 8mb of ram so I'm not sure why you wouldn't be able to create an array of 10000 elements unless they use a lot of memory. What is the error that you are getting and what compiler/IDE are you using?

Actually, an array 100000 doubles would take less than 1MB (800KB @ 8bytes / double).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Showing your code that is having this problem would be helpful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

right click on folder

On Windows that will probably work, but bear in mind that it may extract and add it back to the archive in truth, even if the user does not see the operation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Usually these adapters are a single chip, housed in one connector of the cable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Probably a tool like Visio would be appropriate, since I think you can define your own diagram elements with it. I use Sparx Enterprise Architect for UML modeling/design myself, and can find no "fuzzy" reference in the documentation. I no longer have Rational Rose or Tau-G2 (both now owned by IBM) to see if they support it. In any case, you might try IBM's web site. If their UML tools support fuzzy constructs then you can get a copy from them for evaluation purposes that may help. Anyway, here is a link to an article that may help as well: http://www.medwelljournals.com/fulltext/?doi=ijscomp.2009.32.38

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I've seen viruses lately that also infect files in the recovery/restore partition, resulting in reinfection after restoring the system. Some also infect the MBR (master boot record). Cleaning these sort of infections is difficult and time-consuming. Sometimes the only solution is to wipe the drive completely and reinstall the system from CD/DVD. This is why when I purchase a Windows machine I pay the extra $$ for a complete system installation disc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Cables like that generally have an adapter built in. As to why it didn't work I cannot speculate.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

VirtualBox should also work with Solaris. If you have a VBox virtual machine image in Windows or Linux, you should be able to move it to Solaris without much difficulty. The best way is to export it from the current system, and import it into the new system, but if you are clever, you may not need to do that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have a similar video card (its the one that comes in core i3 - based laptops)

I couldn't get it to work under RHEL 6 when it was newly released but it worked out of the box in 6.1 - so maybe you should try to update?

The latest kernel for RHEL 6.0 is the same kernel as 6.1, so the video drivers should be the same. The current Xorg server will auto-detect the video hardware and load the appropriate driver without the old method of manually changing the xorg.conf file in /etc/X11. You can still use that method, but you need to know what you are doing.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have a dual quad-core (8 cores + 8GB RAM) Linux system and regularly run two virtual machines (XP and Solaris or QNX) at the same time. XP gets 2 GB and Solaris/QNX gets 1GB RAM. The system runs quite snappy on all accounts, real and virtual systems. Anyway as LaMouche said, Wine is just for running Windows applications inside Linux, not for installing the Windows operating system directly. I run a number of utilities and applications that way, but sometimes I have to run Windows applications in the XP virtual machines since they don't play nicely with Wine.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Simple enough.

1) Reinstall the Windows MBR (master boot record).
2) Use fdisk to remove the Linux partition.
3) Use the Windows disk manager to merge the partitions.

Since this will change the system signature pretty significantly, Windows will have to re-authenticate itself with Microsoft on the next boot.

Narinder Bamrah commented: Very Good +0