FreeAntivirus

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, January 23, 2010

How to benchmark a C++ code

Posted on 12:07 AM by Unknown
As the last step of software development you should test the performance of your code. This is a simple example how to benchmark the time consumption of different procedures in a C or C++ code. We will compare two procedures: calculating sinus and exponential values for 5e7 numbers. Let write a code with name test.cpp

#include
#define LIMIT 50000000
void exponential(){
double a;
for(int i=1;
Read More
Posted in How to ... | No comments

Friday, January 22, 2010

How to Periodically remove temporary files in Linux

Posted on 12:05 AM by Unknown
To remove periodically some files from a specific directory you can easily setup a cron entry. Execute in shell

crontab -e

and add

*/60 * * * * find /home/my_home/some_dir/ -name '*.dat' -mmin +60 -exec rm {} \;

where .dat is the suffix of the files and "-mmin +60 -exec rm {}" is the option telling to remove the files with data modified more than 60 minutes ago.

If your crontab uses Vim
Read More
Posted in How to ... | No comments

Wednesday, January 20, 2010

How to Encrypt directories using EncFS

Posted on 12:03 AM by Unknown
Install EncFS:

sudo apt-get install encfs


EncFS uses the fuse kernel extension, which we need to load into the kernel

sudo sh -c "echo fuse >> /etc/modules"
sudo modprobe fuse


Add yourself into the fuse group

sudo addgroup my_login_name fuse


Log out and log in.
Create your encrypted directory:

cd ~
mkdir .encrypt
mkdir encrypt
encfs $HOME/.encrypt $HOME/encrypt

Press enter few times,
Read More
Posted in How to ... | No comments

Monday, January 18, 2010

How to change MAC address of your WIFI or Ethernet card

Posted on 11:54 PM by Unknown
Open a terminal window and type the following command



sudo ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx


replace xx:xx:xx:xx:xx:xx with the MAC address that you want to change to
Read More
Posted in How to ... | No comments

Sunday, January 17, 2010

How to Setup Transparent Squid Proxy Server in Ubuntu

Posted on 11:59 PM by Unknown
This is a short guide how to set up a transparent cache proxy on Ubuntu Server. Basically, there are two reasons why you may be interested setting up a Squid proxy: speed up your web access and save your bandwidth. Let assume that you already set up a Linux gateway using iptables. It is possible to run squid also on Windows but unfortunately it is extremely hard to find a hardware on which
Read More
Posted in How to ... | No comments

Saturday, January 16, 2010

How to convert CHM to PDF in LInux

Posted on 11:45 PM by Unknown
1. Install dependencies by running in the Terminal:
sudo apt-get install htmldoc libchm-bin python-chm


2. Download chm2pdf by clicking this.
3. Now extract the downloaded file.
4. Open your Terminal and browse to the folder you extracted and run: sudo python setup.py install


5. You’re done!

Now to use it is very simple:
In Terminal, type:
chm2pdf --book filename.chm
# (Where filename is
Read More
Posted in How to ... | No comments

Google To Switch To EXT4

Posted on 11:36 PM by Unknown
Google is in the process of migrating their EXT2 file-systems over to the modern EXT4 file-system. This was brought up in a JFS benchmarking discussion. Google's Michael Rubin shared that they chose EXT4 after benchmarking it as well as XFS and JFS. Their results showed EXT4 and XFS performing close to one another, but with it being easier to upgrade from EXT2 to EXT4 rather than EXT2 to XFS,
Read More
Posted in | No comments

Monday, January 11, 2010

How to disable KVM in running kernel to solve errors while running VirtualBox

Posted on 12:17 AM by Unknown
Issue this following commands as root or with sudo permission

rmmod kvm_intel
rmmod kvm


after that run VirtualBox

To solve the problem permenantly add these commands to scripts that will be executed when system starts like /etc/rc.local
Read More
Posted in How to ..., Kernel | No comments

Saturday, January 9, 2010

40,000 processors and 104 TB of RAM Assembled to Render Avatar

Posted on 8:58 AM by Unknown
As the special-effects-driven blockbuster AVATAR stuns audiences with its lush computer-animated fantasy scenes, a data center in Wellington, New Zealand, has played a backstage, but vitally crucial role.

New Zealand-based visual effects company Weta Digital (www.wetafx.co.nz) was able to manage the intense streams of data required to render the cutting-edge 3D animation used in movies like I,
Read More
Posted in | No comments

Tuesday, January 5, 2010

[ ubuntu ] Quick and Dirty method to remove a corruted partially installed package

Posted on 9:42 PM by Unknown
This method can be used when  commands related to aptitude or dpkg is not able to solve the problem


If you have tried everything else, a last resort is this.

1. Backup your /var/lib/dpkg/status file NB You MUST do this first, becuase if you lose this file, your system is hosed.

2. In a terminal, type in the following command: sudo gedit /var/lib/dpkg/status

3. The errant package seems to
Read More
Posted in ubuntu | No comments

Friday, January 1, 2010

How to enable file and folder listing in apache

Posted on 9:48 AM by Unknown
Option # 1: Using Apache config file

Add directory option to Apache configuration file /etc/httpd/httpd.conf or /etc/apache2/apache2.conf:
# vi /etc/apache2/apache2.conf

Add following code:

Options Indexes FollowSymLinks

Save and close the file. Restart Apache:
# /etc/init.d/httpd restart

OR
# /etc/init.d/apache2 restart

Option #2: Using .htaccess Files with Apache

You can place config
Read More
Posted in How to ... | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • Google introduced new Voice and Video Chat !!
    Google today launched Gmail voice and video chat, making it simple for people around the world to chat in high-quality video for free right ...
  • Reducing load on web server by using reverse proxy - squid
    Many large organizations use caching proxy servers to save on network bandwidth utilization (and costs) and improve browsing response times...
  • UNP a Universal File Unpacking Utility for Ubuntu / Debian
    Unp is a small perl script which makes extraction of any archive files in easy way. It support several compressors and archiver programs, ch...
  • File Access Permissions on Linux
    File protection with chmod chmod 400 file    To protect a file against accidental overwriting.chmod 500 dir     To protect yourself from acc...
  • Convert text files to MP3 under Linux
    First we would need to install festival. We can install festival with the following command :sudo apt-get install festivalNow we need to ins...
  • Linux for Kids
    LinuxKidX was, until recently, a Brazilian-only Linux distribution, but, as of March 20th 2009, it is also available in English, so a lot mo...
  • How to allow access to the mail server by individual domains - Sendmail
    The access database (normally in /etc/mail/access) allows a mail administrator to administratively allow access to the mail server by indiv...
  • Visual Browser for Wikipedia
    No matter what you think about the quality and nature of Wikipedia articles, there is no denying that the encyclopedia provides an immense ...
  • How to recover/repair lost/damage partitions
    TestDisk is a powerful free data recovery software ! It was primarily designed to help recover lost partitions and/or make non-booting disks...
  • HOW TO INSTALL ANGRY IP SCANNER ON UBUNTU
    Currently there are many security software available for Linux and Windows. The Angry IP Scanner is one of the popular open source software ...

Categories

  • administration
  • Antivirus
  • Apache
  • Apple
  • AppZ
  • Blog
  • boot
  • CentOS
  • Communication
  • Database
  • disc
  • Download
  • Drivers
  • Editor
  • encryption
  • Fedora
  • File management
  • Filesystem
  • Font
  • Fun
  • gaming
  • Gnome
  • Google
  • Gossips
  • How to ...
  • internet
  • KDE
  • Kernel
  • Kidz
  • laptop
  • Linux
  • Linux embedded Devices
  • Mail
  • Media centre
  • Memory
  • mobile
  • MS
  • multimedia
  • network
  • News
  • Oracle
  • PDF
  • pendrive
  • Perl
  • processor
  • Programming
  • proxy
  • Reviews
  • script
  • security
  • sql
  • Squid
  • ssh
  • Supercomputer
  • SuSe
  • Themes
  • trickz n tipz
  • TweakZ
  • ubuntu
  • Video
  • Video editing
  • Virus
  • zip

Blog Archive

  • ▼  2010 (62)
    • ►  June (1)
    • ►  May (6)
    • ►  April (28)
    • ►  March (11)
    • ►  February (5)
    • ▼  January (11)
      • How to benchmark a C++ code
      • How to Periodically remove temporary files in Linux
      • How to Encrypt directories using EncFS
      • How to change MAC address of your WIFI or Etherne...
      • How to Setup Transparent Squid Proxy Server in Ubuntu
      • How to convert CHM to PDF in LInux
      • Google To Switch To EXT4
      • How to disable KVM in running kernel to solve erro...
      • 40,000 processors and 104 TB of RAM Assembled to R...
      • [ ubuntu ] Quick and Dirty method to remove a corr...
      • How to enable file and folder listing in apache
  • ►  2009 (367)
    • ►  December (16)
    • ►  November (23)
    • ►  October (45)
    • ►  September (44)
    • ►  August (35)
    • ►  July (1)
    • ►  June (20)
    • ►  April (6)
    • ►  March (8)
    • ►  February (18)
    • ►  January (151)
  • ►  2008 (69)
    • ►  December (31)
    • ►  November (38)
Powered by Blogger.

About Me

Unknown
View my complete profile