5,331 Posted Topics
Re: One of the nice things about fgets() is that it deals with the terminating NUL byte for you, so you know that the string is properly terminated. | |
Re: There are techniques for building a call-tree by judicious use of macros, so in your code you can do something like this: [code] #ifdef DEBUG #define MAX_TREE_DEPTH 10000 size_t ct_level = 0; const char* call_tree[MAX_TREE_DEPTH]; #define CALLTREE_ENTER call_tree[ct_level++] = __func__; #define CALLTREE_EXIT call_tree[ct_level--] = 0; #else #define CALLTREE_ENTER #define CALLTREE_EXIT … | |
Re: Answer C is correct, but it can also be expressed like this !(A || B || C) == (!A && !B && !C) Why? Well you could generate a set of truth tables (ever take formal logic?), or just think about it. if (A is true) or (B is true) … | |
Re: We aren't here to do your homework for you! Please at least make an attempt at it first if you want any help... :-( | |
Re: Please post information about make/model of the motherboard, ram installed, CPU(s), video board, and also what other stuff you may have installed, then finally what is the capacity of the power supply. From your description of the failure, it could be an inadequate power supply, incorrect memory, CPU or RAM … | |
Re: Try 3.4.4 - it works well with 2.6.21 Debian ARM kernels. | |
Re: Go to the board manufacturer's site for instructions how to write an operating system to it's flash memory, unless it can boot from network or SD card. In any case, each board differs, and you need the tools and or process documentation from the manufacturer. | |
Re: Newer + more RAM == better. Go to the nVidia web site and their specs on all their boards will help you determine which is best/better for you. In any case, a GS 7600 is likely much better than a GT6600 as it has a lot more memory. I have … | |
Re: Most Linux video players can handle a video stream, such as VLC or Kaffeine. I've used ffmpeg as the transcoder/streamer to pipe videos to VLC and Kaffeine in FLV (flash) format before. | |
Re: You need to install clamav or clamd (depending upon your distribution and/or repositories), not clamtk. Clamtk is a toolkit for using clam in user scripts. If you install the clamav/clamd package, it should also install the appropriate cron autoupdate tools for clamav/clamd so the virus definitions will be kept up-to-date. | |
Re: CentOS (a clone of RHEL) works well and is in wide use for this purpose by many major hosting providers and major businesses, such as the Chicago options exchange. However, CentOS has fallen behind current developments, so if you are interested in a Red Hat Enterprise Linux (RHEL) version 6 … | |
Re: A 64-bit machine can access much more memory and run bigger applications. Speed may be faster, or slower, depending upon a lot of factors too complex to go into here. If your system has less than 4GB of RAM, go 32-bit. If 4GB or more, go 64-bit. FWIW, most 64-bit … | |
Re: Depends upon the OS. I use Brasero or K3b on Linux. On Windows I use Alcohol 120%, but that I paid for - fewest "coasters" of all I've worked with on Windows. I've had no problems with Brasero or K3b on Linux, but I think they both use mkisofs (genisoimage) … | |
Re: The purpose of school work is to learn how to think. To analyze problems, and come up with appropriate solutions. Break the problem up into parts. Identify classes of objects in the system, what their properties should be, and what their behaviors should be. Solve the problem intellectually and symbolically, … | |
Re: That depends entirely on the encryption and hash algorithms used. Any current strong encryption method should NOT provide pattern-based clues to the plain-text. For more information about all of this, read Bruce Schneier's book "Applied Cryptography". | |
Re: I do exactly what you are trying to accomplish. I am running a custom built system with an Intel S5000XVN motherboard w/ removable system drive carrier, so I can install whatever OS I want without "dual-booting" the system drive. I just shut down, pull one drive, plug in another, boot, … | |
Re: Work sucks. Studying sucks. Playing music rocks! I speak as a 60+ year old geek who also plays bluegrass mandolin... :-) | |
Re: Go to the nVidia web site, [url]www.nvidia.com[/url], and go to the Downloads page. It's pretty much self-explanatory, and there are links to installation instructions, etc. | |
Re: My advice would be to purchase a small NAS (Network Attached Storage) unit. They connect into the office network and allow you to do exactly what you want, at a very reasonable price. For example, a Buffalo Tech TeraStation NAS with 8TB of data is less than $900 USD on … | |
![]() | Re: Non of these settings, excepting possibly vm.swappiness or the actual filters used when your rp_filter settings are enabled, should impact network performance, and I'm uncertain about the vm.swappiness setting. |
Re: Win* Server - you pay MS taxes forever. Linux Server (Ubuntu, CentOS, et al) - you own it. RHEL charges for support (probably cheaper than MS), but CentOS and Scientific Linux are free clones of same. For production servers, CentOS, Ubuntu Server, or Scientific Linux are great choices. | |
Re: What OS is running on the server? Has it been updated recently? You also may want to see if your iptables firewall services are running, and if so, what the rules are that it is using. It may be that some of the firewall rules are affecting this. Also, have … | |
Re: So, how/where does your result generate incorrect results (other than that they differ from what your teacher provided)? We aren't going to solve your school problems. So, look at the output, and determine where in your code the error (if there is one) occurred. That is your first step. | |
Re: System is starting to fail. Get it repaired, or replaced. | |
Re: I think Rik has this spot-on. Either replace the monitor (flat panel displays w/ similar or better resolution than your old CRT are pretty cheap today), or roll up your sleeves and replace the caps that are failing, or just keep on like you are until it lets the magic … | |
Re: First, write down the rules to changing the singular case to plural. Express the text as a set of if/then/else statements. For example: if word ends in a consonant then add 's' to end of word else if word ends in 'e' then add 's' to end of word else … | |
Re: Assuming your system is running Windows of some sort? For a free one, you can get MinGW, which is a GNU compiler implementation for Windows. Look at [url]www.mingw.org[/url] | |
Re: Well, keep going... It's early to give up yet. :-) Just one comment. Test for the EOF indicator (999999999 999999999 values read in the file), which is the sign for "done reading". The question is whether you want to generate output as your read input, or wait until all input … | |
Re: There are usually a number of settings in the BIOS as to how it deals with POST (Power-On Self-Test). IE, do a full POST every time you boot, do a quick test always, or do a full POST if hardware components have changes, such as disc, memroy, etc. Most of … | |
Re: [icode]savingsBalance=+(annualInterestRate/12);[/icode] Two problems here. 1) you don't initialize savingsBalance in your constructor. 2) this should be [icode]savingsBalance+=(annualInterestRate/12);[/icode] Also, use spaces before/after operators like += and such, just for better readability and visual debugging purposes, if nothing else. | |
| |
Re: As said, the setter functions are intended to modify class member variables in a specific instance of an object of the class. Conversely, getter functions are intended to access the values of those data members. This allows you to specify that the data members are private, keeping outside code from … | |
Re: Effectively, not possible! Linux/Unix passwords are encrypted with (at the minimum) with 56-bit DES encryption, and they are one-way encrypted (no way to determine plain-text from encrypted version). My suggestion is to boot with a recovery CD/DVD/USB drive, mount your root file system, and set the user password to blank … | |
Re: If it works, don't futz with it! If CS doesn't work, set it to Master. If that doesn't work, set it to Slave. If this is the only drive in the system, you are golden. If not, then you will need to do some more futzing if CS doesn't work … | |
Re: His code is a VERY old reference implementation. I was just checking it out on my Linux system, and it requires some work to function in my environment. There are links on Schneier's TwoFish web page to other implementations that may be better to try. There are also open source … | |
Re: I disagree with saxmaster49 about this, if as you say, it happens immediately after turning the system on. In that case, it has not had time to heat up. Yes, a non-functional fan will cause the system to over-heat. That may have been the root cause of the problem. What … | |
Re: I had to remove this virus from my attorney's system earlier this year. Since I run Linux system software, I mount these Windows drives in an external enclosure or dock, run about 3 different AV scanners over the drive (they all miss something), and clean it up. I also have … | |
Re: Duh? Network statics, or do you mean statistics? | |
Re: SNAFU, FUBAR, toast. Enjoy your new doorstop! Actually, the Dell Dimensions have good cases, enclosures, power supplies, etc. You should be able to drop in a new mobo, but if you do that, the OEM version of Windows that was on the machine (unless you installed a new one that … | |
Re: It sounds like some probing going on. Make sure your web server and other stuff is up-to-date security-wise. CentOS is pretty secure itself. Have you implemented SELinux extensions? That will help keep out baddies. One final thing is that you might post this to the security forum of [url]www.linuxforums.org[/url] where … | |
Re: I sync my clock with NTP (network time protocol) servers on the internet, such as are provided by various governmental services (NIST, etc). That way, even if the clock battery is fubar, my system still keeps proper time. | |
Re: Sony Vaio systems are soooo funky when dealing with hardware that is not Sony branded, that almost anything can be the cause of this. My advice? Get your money back and purchase a system from Toshiba or someone else but Sony. | |
Re: Cooling is critical for todays' systems. Make sure you have good air flow through the case, and that it routes over the motherboard and its components and the hard drives as well. Note that Seagate drives over 500GB tend to run very hot! My 1.5TB Seagate drives, even in specially … | |
Re: Hopefully they have solved their problem by now! :-) | |
Re: You also might want to check out these two wikipedia articles, and some of the links they provide: 1. [url]http://en.wikipedia.org/wiki/CPU_design[/url] 2. [url]http://en.wikipedia.org/wiki/Stack_machine[/url] | |
Re: Narue gave a good explanation of the problem. If you don't want class derive to re-implement both functions, you should be able to do this: [code] class derive : public derive2, protected derive3 { public: derive(); derive2::foo; derive3::boo; }; [/code] That tells the compiler which terminal version of the function(s) … | |
Re: A structure keeps closely associated data together, kind of like a lump of similar stuff. Your professor wants you to start thinking about how data is associated together, and can be processed together. It simplifies your code, reduces bugs, and enables you to develop much more complex systems. The concept … | |
Re: Usually these systems have some sort of boot error indications in the audio beeps. Do you hear anything out of the system speaker (not external ones, but one built into the system enclosure)? | |
Re: FWIW, DLL's are "Dynamic Link Libraries". They are NOT suitable for static linkage. For Windows, you need to link *.lib files, not *.dll files... They may reside in directories other than where you find the .dll ones. | |
Re: Multisets are the same as sets, except that they can have multiple instances associated with a single key. They are templates, as you know, but the signature of multiset is not multiset<T>, but multiset<Key_Type, Value_Type, Key_Allocator = Allocator<Key_Type> >. IE, you need at least 2 template arguments when declaring multisets, … |
The End.