LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

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

Posted 11-21-2011 at 05:42 AM by TheIndependentAquarius
Updated 01-10-2012 at 09: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
    virtual
    " function.
  • A "pure virtual
...
Senior Member
Views 1866 Comments 0 TheIndependentAquarius is offline
Old

Stress testing a new hard drive...

Posted 11-20-2011 at 11:38 PM by sag47
Updated 11-20-2011 at 11: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 12723 Comments 0 sag47 is offline
Old

removing extra console terminals

Posted 11-20-2011 at 07: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 404 Comments 0 neonsignal is offline
Old

virus scanning

Posted 11-20-2011 at 07:02 PM by neonsignal
Updated 11-20-2011 at 07: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:
Code:
freshclam
To scan...
Senior Member
Posted in Uncategorized
Views 424 Comments 0 neonsignal is offline
Old

Useful linux basic commands

Posted 11-20-2011 at 09:36 AM by ted_chou12
Updated 11-20-2011 at 09: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)
Member
Posted in Uncategorized
Views 1166 Comments 0 ted_chou12 is offline

  



All times are GMT -5. The time now is 06:09 PM.

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