Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs
User Name



What is: Abstract base class, and Pure Virtual function - C++

Posted 11-21-2011 at 04:42 AM by TheIndependentAquarius
Updated 01-10-2012 at 08:17 AM by TheIndependentAquarius

  • In the cases where the derived classes may share the common functionality
    but with altogether "different" definitions, it makes sense to force the
    developers to create their own definitions for those common functions in
    concerned derived classes.
    This can be achieved by making the class "abstract".
  • A class is called an "abstract" class when it contains at least one "pure
    " function.
  • A "pure virtual
Senior Member
Views 1163 Comments 0 TheIndependentAquarius is offline

Stress testing a new hard drive...

Posted 11-20-2011 at 10:38 PM by sag47
Updated 11-20-2011 at 10:40 PM by sag47
Tags hardware

You should always stress test a new harddrive when you buy it.

Some people say, "Just hook it up for a few months and keep unimportant data on it. If it breaks in that 1-3 month time then it will be good for 3 or 4 years."

While that metric is okay at best I prefer to take a more systematic approach to it. I want to fill the whole hard drive with random 1 and 0 over a constant and long period of time. I do that because you are stressing the hard drive out...
Senior Member
Posted in Uncategorized
Views 8346 Comments 0 sag47 is offline

removing extra console terminals

Posted 11-20-2011 at 06:12 PM by neonsignal

Many Linux distros are installed to have multiple consoles, selected using ctrl-alt-f1 through to ctrl-alt-f6. Where memory is extremely tight, this can be reduced to save some space, by commenting out the relevant [i/]/sbin/getty[/i] lines in /etc/inittab. This will also mean that X will be invoked from a different ctrl-alt-f sequence.

Note that this will only save around half a meg of resident memory per console, so for conventional desktop/laptop systems it is not worth changing....
Senior Member
Posted in Uncategorized
Views 325 Comments 0 neonsignal is offline

virus scanning

Posted 11-20-2011 at 06:02 PM by neonsignal
Updated 11-20-2011 at 06:03 PM by neonsignal

Although malware has not been the same problem to the same degree on Linux as on other operating systems, it is still possible to run a virus scanner.

A straightforward one is clamav, which is in the repositories of many distros. Typically the install will set up a cron job to grab daily virus signature list updates (this can be disabled by removing /etc/cron.d/clamav-freshclam). The signature list can also be updated manually:
To scan...
Senior Member
Posted in Uncategorized
Views 279 Comments 0 neonsignal is offline

Useful linux basic commands

Posted 11-20-2011 at 08:36 AM by ted_chou12
Updated 11-20-2011 at 08:42 AM by ted_chou12 (sed "s:its:it's:g")
Tags basic, commands, pdf

Hi, I found this online, it's pretty useful, I printed one out and posted on my wall XD. Cause I am not a pro, so I don't think memorizing them is necessary. But if u do frequently use them, u probably would remember, anyways, c attachment.
Attached Images
File Type: pdf linux_basics.pdf (69.1 KB, 4 views)
Posted in Uncategorized
Views 612 Comments 0 ted_chou12 is offline


All times are GMT -5. The time now is 05:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration