News, Reviews, Gadget Database
cpulimit is a simple program that attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time). This is useful to control batch jobs, when you don’t want them to eat too much cpu. It does not act on the nice value or other scheduling priority stuff, but on the real cpu usage. Also, it is able to adapt itself to the overall system load, dynamically and quickly.
How it works
Note that you don’t need to read this paragraph in order to use cpulimit, you can safely skip it if you are not interested in tweaking cpulimit.
So, you are curious to know the secrets of cpulimit
Of course there is no secret if you are a C developer, but I will try to explain to everyone. The work of cpulimit is done all in userspace, so it doesn’t interfere with the Linux scheduler. Basically, the target process, which you can specify by pid, name, or command line, is continuosly paused and resumed by sending it SIGSTOP and SIGCONT signals. Signals are sent by cpulimit in appropriate moments, based on the limit specified by user and the process statistics read from /proc. Continue Reading cpulimit – Limit the cpu usage of a process
13Sep
# Backup the old Cacti database.
shell> mysqldump -l –add-drop-table cacti > mysql.cacti
Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti’s database or you will end up with an empty backup.
# Backup the old Cacti directory.
shell> mv cacti cacti_old
# Extract the distribution tarball.
shell> tar xzvf cacti-version.tar.gz
# Rename the new Cacti directory to match the old one.
shell> mv cacti-version cacti Continue Reading Upgrading Cacti
There are 3 ways to connect your PlayStation 2:
1. Direct Connection
The fast and simple way to connect your PS2.
Please note, you cannot connect your PC to the Internet when using a direct connection.
2. Router Connection
Play your PS2 online and connect your PC to the Internet at the same time.
3. Internet Connection Sharing (ICS)
Connect your PS2 to the Internet through your PC. ICS is ideal for USB and PCI modems and cheaper than buying a broadband router.
11Sep
Back Up the IIS Configuration
To back up your IIS configuration, follow these steps:
1. In the IIS snap-in on the local computer, click the Computer icon under Internet Information Services.
2. Click Action and select Backup/Restore Configuration.
3. Click Create backup, choose a name for your backup file, and then click OK.
NOTE: The default location of the backup is the %SystemRoot%\system32\inetsrv\MetaBack folder. If you want to save your backup file to another location, you can copy the file from this default location to another location. Keep a copy in the default location to allow for an easy restoration. Note that by default, C:\Winnt is the %SystemRoot% folder in Microsoft Windows 2000.
1st Method:
The first thing which you check if you forget login password. When we install Windows, it automatically creates an account “Administrator” and sets its password to blank. So if you have forget your user account password then try this:
Start system and when you see Windows Welcome screen / Login screen, press <ctrl>+<alt>+<del> keys twice and it’ll show Classic Login box. Now type “Administrator” (without quotes) in Username and leave Password field blank. Now press Enter and you should be able to log in Windows.
Now you can reset your account password from “Control Panel -> User Accounts“.
Same thing can be done using Safe Mode. In Safe Mode Windows will show this in-built Administrator account in Login screen.
For Example, if we want to sent email to suroboy.com, frist, we must know about MX for this domain :
# host -t mx suroboy.com
suroboy.com mail is handled by 0 suroboy.com.
# telnet suroboy.com 25
Trying 72.233.78.218…
Connected to suroboy.com.
Escape character is ‘^]’.
220-usa2.neoserver.net ESMTP Exim 4.69 #1 Fri, 04 Sep 2009 08:37:58 +0700
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
For checking email of suroboy@suroboy.com , for example, just telnet the pop server (mail.suroboy.com) port 110:
# telnet mail.suroboy.com 110
Trying 72.233.78.218…
Connected to suroboy.com.
Escape character is ‘^]’.
+OK Hello there.
Then type the user email :
user suroboy@suroboy.com
+OK Password required.
07Sep
Send yourself a test mail containing the following string of characters (in upper case and with no white spaces and line breaks):
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X