5,331 Posted Topics

Member Avatar for tubby123

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.

Member Avatar for rubberman
0
138
Member Avatar for shanki himanshu

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 …

Member Avatar for rubberman
0
234
Member Avatar for Na'Vi

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) …

Member Avatar for rubberman
0
172
Member Avatar for applet199

We aren't here to do your homework for you! Please at least make an attempt at it first if you want any help... :-(

Member Avatar for rubberman
0
63
Member Avatar for flipboi15

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 …

Member Avatar for rubberman
0
150
Member Avatar for murnesty
Member Avatar for murnesty

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.

Member Avatar for rubberman
0
161
Member Avatar for owenbear

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 …

Member Avatar for owenbear
0
273
Member Avatar for srdva59

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.

Member Avatar for rubberman
0
66
Member Avatar for ben.matthews18

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.

Member Avatar for jingda
0
168
Member Avatar for altic

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 …

Member Avatar for slacke
0
238
Member Avatar for vishalbhavsar

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 …

Member Avatar for rubberman
0
181
Member Avatar for Voidz

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) …

Member Avatar for darrylpatterson
0
165
Member Avatar for loafie55

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, …

Member Avatar for loafie55
0
3K
Member Avatar for terexberd

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".

Member Avatar for pseudorandom21
0
136
Member Avatar for Eidolon

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, …

Member Avatar for rubberman
0
261
Member Avatar for royng

Work sucks. Studying sucks. Playing music rocks! I speak as a 60+ year old geek who also plays bluegrass mandolin... :-)

Member Avatar for HiHe
0
565
Member Avatar for cretaros

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.

Member Avatar for rubberman
0
147
Member Avatar for wisedave

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 …

Member Avatar for walayt
0
210
Member Avatar for b1izzard

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.

Member Avatar for shwick
0
430
Member Avatar for altic

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.

Member Avatar for rubberman
0
197
Member Avatar for henks

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 …

Member Avatar for henks
0
274
Member Avatar for Japracool

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.

Member Avatar for Japracool
0
289
Member Avatar for hitman47
Member Avatar for Dbznut

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 …

Member Avatar for rubberman
0
169
Member Avatar for ILIDAN

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 …

Member Avatar for ILIDAN
0
144
Member Avatar for write2diba

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]

Member Avatar for rubberman
0
2K
Member Avatar for hawita

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 …

Member Avatar for rubberman
0
567
Member Avatar for dbrookins

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 …

Member Avatar for Rik_
0
231
Member Avatar for Dexxta27

[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.

Member Avatar for ravenous
0
176
Member Avatar for sha11e
Member Avatar for floatingDivs
0
104
Member Avatar for Dexxta27

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 …

Member Avatar for Dexxta27
0
135
Member Avatar for roxie148

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 …

Member Avatar for roxie148
0
184
Member Avatar for mnewsome

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 …

Member Avatar for caperjack
0
242
Member Avatar for swatipoddar

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 …

Member Avatar for swatipoddar
0
565
Member Avatar for decimus785

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 …

Member Avatar for rubberman
0
355
Member Avatar for fvdave30

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 …

Member Avatar for fvdave30
0
297
Member Avatar for mahendra maurya
Member Avatar for DAS-03590

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 …

Member Avatar for DAS-03590
0
361
Member Avatar for TySkby

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 …

Member Avatar for manojsamtani
0
325
Member Avatar for McLaren

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.

Member Avatar for McLaren
0
174
Member Avatar for rockyman12

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.

Member Avatar for rubberman
0
229
Member Avatar for mah300274

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 …

Member Avatar for rubberman
0
770
Member Avatar for honestgirl33523
Member Avatar for jonspeidel

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]

Member Avatar for Goalatio
0
178
Member Avatar for dophine

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) …

Member Avatar for Fbody
0
184
Member Avatar for jmcginny5

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 …

Member Avatar for damm
0
400
Member Avatar for enak101

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)?

Member Avatar for saxmaster49
0
79
Member Avatar for Ninjaboi

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.

Member Avatar for Ninjaboi
0
2K
Member Avatar for luislupe

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, …

Member Avatar for mike_2000_17
0
329

The End.