Archive for September, 2010

12 Tips to Speed Up Windows 7

1. Uninstall Bloatware

Uninstall bloatware that came with your laptop or PC.
Or even apps you installed but no longer want. Head to Control Panel | Programs | Uninstall a program and take the hatchet to anything, such as unwanted games, that you’ll never need. Many programs will load processes at boot time and take up valuable RAM and CPU cycles. While you’re in here, you can also click “Turn Windows Features On or Off” and scan the list to see if there’s anything you don’t use.

1. Uninstall Bloatware

2. Limit Startup Processes

Limit startup processes.
In the Start button’s search box, type MSCONFIG, then head to the Startup tab. You’ll likely see a slew of apps, mostly for system support, but you’ll be able to identify some that clearly aren’t necessary. There’s absolutely no need to have GoogleUpdate or even QuickTime running all the time, for example. Don’t delete those that support your hardware or security, but anything blatantly nonproductive can go. You may have to check the program names online with a site like to see what they are—they may even be malware. If you want to get more granular, run Microsoft’s Autoruns utility.

2. Limit Startup Processes

3. Add More RAM

Add more RAM.
Windows 7 isn’t has much of a hog as Vista, but if you’re moving from XP, the memory requirements are greater. Here’s a great article to show you how to add RAM

4. Turn Off Search Indexing

Turn off search indexing.
In Vista I, would only do this if I saw the search indexing icon in the system tray and noticed a performance lag, but that notification isn’t present in Windows 7. Of course, if you do a lot of searching, this won’t appeal to you, as some searches will be slower. To turn off indexing, open the Indexing Options Control Panel window (if you just type “index” in the Start button search box, you’ll see that choice at the top of the start menu), click “Modify” and remove locations being indexed and file types, too. If you want to leave search indexing on, but find that it occasionally slows you down, you can stop its process when you need extra speed. Right-click on Computer either in the Start menu or on the desktop, choose Manage. Then double-click Services and Applications, then Services. Find Windows Search, and double click on that. From this properties dialog, you can choose a Startup type of Manual or Disabled to have the process silent by default.

4. Turn Off Search Indexing

5. Defrag

Defragment your hard drive.
Your disk stores data in chunks wherever there’s space on disk, regardless of whether the space is contiguous for one file. Defragging tidies everything up and blocks a program’s bits together so that the reader heads don’t have to shuttle back and forth to read a whole executable or data file. While this is less of a problem with today’s huge hard drives and copius RAM, a slow system can still benefit from defragmenting the disk. Windows 7 comes with a built-in defragger that runs automatically at scheduled intervals. Mine was set by default to run Wednesdays at 1:00 AM, when my PC is usually turned off; so it never got defragged. If you’re in a similar boat, you can either change the scheduled defrag, or defrag on demand. Just type “defrag” in the Windows Start Menu search bar, and click on “Disk Defragmenter.” The version of the utility is improved in Windows 7, and shows more information about what’s happening on your disk than Vista did. The Windows 7 engineering team posted a very in-depth, informative article on the Engineering
5. Defrag

6. Change Power Settings

Change power settings to maximum performance.
Of course, this isn’t a good choice if you want to save electricity, but it could boost your computing. Head to Control Panel / System and Security / Power Options. From here, click on the left-panel choice “Create a power option” and choose “High Performance.
6. Change Power Settings

7. Clean Up Your Disk

Clean up Your Disk.
From the Start menu, choose All Programs, Accessories, System Tools, and Disk Cleanup. This finds unwanted junk and files such as temporary, offline Web pages, and installer files on your PC and offers to delete them all at once. You may even find that your Recycle Bin is bulging at the seams: Mine had 1.47GB I didn’t know was there! This will generally only have a noticeable affect on speed if your machine is getting close to full, however.
7. Clean Up Your Disk

8. Check for Viruses & Spyware

Check for Viruses and Spyware.
You can run the built in Windows Defender or a third-party app. You could start with our Editors’ Choice, Spyware Doctor with AntiVirus 2010. If you don’t want to pay, though, there are plenty of free antimalware options.

9. Performance Troubleshooter

Use the Performance Troubleshooter.
In Control Panel’s search box, type “troubleshooting” and under System and Security, you’ll see the choice “Check for performance issues.” Run the troubleshooter and it may find the root cause of your slowdown.

10. Turn Off Desktop Gadgets

Turn off Desktop Gadgets.
Now we come to the tips that require shutting down some of the operating system’s bling. Windows 7 ditched the actual visual sidebar of Vista, but there’s still a sidebar process running. Turn it off by typing “gadgets” in the start menu search bar, choosing “View list of running gadgets” and select each in turn and click Remove to shut any gadgets you can live without.

11. Don’t Use a Beautiful Desktop Background

Don’t use a beautiful desktop background.
This will free up extra RAM and therefore boost speed slightly. Right-click on the desktop and choose Personalize, then Desktop Background at the bottom of the resulting dialog window. Set it to a solid color.

12. Turn Off Aero Eeffects

Turn off Aero effects.
Head to the Control Panel’s Performance Information and Tools section, and choose Adjust Visual Effects. Here you’ll find a long list of effects, but simply choosing “Adjust for best performance” will turn everything off. You’ll feel like you stepped back into a decade ago.
12. Turn Off Aero Eeffects
By Vijay Nayani


Leave a comment

Top 10 Most Frequently Asked Questions on Domain Name Registration

Here are the top ten most frequently asked questions regarding on Internet domain name registration:

Q1. Which characters are allowed in Internet domain names?

A: For normal ASCII domain names, the letters a-z, the numbers 0-9, and one special character, the hyphen or dash “-”. Note that domains cannot start or end with a hyphen. For the new tested IDNs (Internationalized Domain Names), the full range of Unicode characters are available. This allows nearly all of the languages on the planet to be represented within domain names, including Thai, Arabic, Lao, Hebrew, French, German etc.

Q2. How many characters can a Internet domain name have?

A: Generic domains (gTLDs) can have 63 characters in the second level, plus the top level domain, .com, .net etc.

Q3. How long can I register a Internet domain name for?

A: In most cases, you are allowed to register a Internet domain name for period of one to ten years. Longer periods are not currently allowed by the registry.

Q4. How long do Internet domain registrations take to make & process?

A: Typically ten minutes or so. Once you have chosen the name and paid the fee, most registration systems will register your name in near real-time.

Q5. Do I “own” a domain name I register?

A: Not really, it is more like a rental agreement. But importantly, you have the exclusive right to renew the agreement with the registry at the end of the initial registration period, so effectively you can keep the name as long as you want.

Q6. Why does my Internet domain name still show as unregistered in a WHOIS tool?

A: WHOIS tools are meant to show the nameserver / contact information for domain names held by a particular ICANN registrar. They are typical not updated in real-time and thus are not good indicators of current domain registration status.

Q7. How will I know if a Internet domain registration attempt has been successful?

A: WHOIS tool takes anything up to 48 hrs to be updated so can’t be relied on. A better indicator is whether you receive a confirmation e-mail from the domain registrar. You could also try registering the name again. By doing so, the registrar will do a “live” availability check on the name, which will indicate to you whether the name has been registered or not. This is not the same as a WHOIS look-up.

Q8. How long do domain names take to be active after registration?

A: Approximately 24 – 48 hrs, though because nameservers work as a distributed network, it can take up to 72 hrs or more before your domain name is accessible to all Internet users worldwide.

Q9. Can I register a Internet domain for later use?

A: There is no problem in registering domain names first, and using them later on. In fact, it is estimated that among 80% to 90% of all domain names are “idle”.

Q10. Can I get a refund if I make a mistake & register the wrong name?

A: Nearly all domain registrars operate a strict no refund policy. This is because they are charged a non-refundable fee by the registry to perform the registration.

By Vijay Nayani

Leave a comment

How to Limit The CPU Usage of Any Process in Linux

cpulimit-mainHave you ever experienced the situation where you open one particular application (such as Firefox) and it brings the whole system to a standstill? If you are running a web server, the last thing that you want to see is to have an application crashes the whole system and bring all the websites down.

Cpulimit is an application for Linux that can limit the CPU usage of a process. It is useful if you want to restrict a particular application from taking up too much CPU resources and thereby crashing the system. This can also be useful when you need to run several intensive programs simultaneously.

Note: cpulimit should work for all Linux distro. In this tutorial, we will be using Ubuntu for illustration.


In Ubuntu, you can install

cpulimit via the Ubuntu Software Center, click here to install, or type the following command in terminal:

1 sudo apt-get install cpulimit


To restrict a process, use the command

1 sudo cpulimit -p PID -l CPU%

The PID is the process ID of the running application and CPU% is the percentage (0-100, number only) of CPU resources allowed for the app. You can obtain the PID from System -> Administration -> System Monitor .


From the screenshot above, you can see that the Swiftfox application (a variant of Firefox) takes up 68% of the CPU resources before the CPU limit is set. Let’s see what happen when we limit the CPU usage to 20%.



The % CPU instantly drop below 20% and never did it cross the 20% mark again.

Extending cpulimit – Automating the whole process

Cpulimit is useful when you encounter an application that take up lot of CPU resources, or need to carry out batch job. In addition, you can also set it up to monitor the system for any misbehaving application. This is especially useful in a server setup.

abcuser from Ubuntu Forum has come up with a great script that automates the monitoring of your system and restricts any process that exceed a preset CPU limit. The script also allows you to set blacklist/whitelist for specific applications.

Before we start, make sure you have cpulimit and gawk installed.

1 sudo apt-get install cpulimit gawk

Download the scripts here. Extract the tar file to your Home folder. You should have two files inside the cpulimit folder: and cpulimit.

Open the file in your text editor (gEdit) and change the following:


CPU_LIMIT: This is the maximum CPU resources available to each application. The default value is 20%.

DAEMON_INTERVAL: This is the interval for the script to check the system. The default is set to 3 seconds.

BLACK_PROCESS_LIST: This contain the list of items that specifically want to monitor. You can use the “|” delimiter to include multiple processes. For example, “mysql|firefox|gedit“.

WHITE_PROCESSES_LIST: This contain the list of items that you DON’T WANT to monitor. You can use the “|” delimiter to include multiple processes. For example, “mysql|firefox|gedit“.

Note: One or both of the variables BLACK_PROCESSES_LIST and WHITE_PROCESSES_LIST has to be empty. You can’t have a blacklist and a whitelist at the same time.

Setting up

Copy the file to the /usr/bin/ folder

1 sudo cp ~/cpulimit/ /usr/bin
2 sudo chmod 700 /usr/bin/

Copy the cpulimit file to /etc/init.d/folder, set the necessary permission and make it run during statup.

1 sudo cp ~/cpulimit/cpulimit /etc/init.d/
2 sudo chown root:root /etc/init.d/cpulimit
3 sudo chmod +x /etc/init.d/cpulimit
4 sudo update-rc.d cpulimit defaults

Now, reboot your system. The cpulimit daemon should start automatically.

You can open a terminal and type:

1 sudo service cpulimit status

to check if the cpulimit daemon is running. If it is not running, start it with the command

1 sudo service cpulimit start

Alternatively, stop it with:

1 sudo service cpulimit stop


To uninstall, here’s what you need to do:

1. Stop cpulimit daemon

1 sudo service cpulimit stop # Stop cpulimit daemon and all cpulimited processes

2. Remove daemon from boot-up procedure

1 sudo update-rc.d -f cpulimit remove # Remove symbolic links

3. Delete boot-up procedure

1 sudo rm /etc/init.d/cpulimit # Delete cpulimit boot-up script

4. Delete cpulimit daemon

1 sudo rm /usr/bin/ # Delete cpulimit daemon script

5. Uninstall cpulimit program

1 sudo apt-get remove cpulimit

Optionally, uninstall gawk program

1 sudo apt-get remove gawk

For more info, refer to the Ubuntu Forum for more detail.

Code credit: abcuser from Ubuntu Forum

Leave a comment

HowTo Run ASP.NET on Linux With Apache Web Server (Mono + Mod_Mono)

Mono is an open source project led by Novell (formerly by Ximian) to create an Ecma standard compliant, .NET-compatible set of tools, including among others a C# compiler and a Common Language Runtime. Mono can be run on Linux, BSD, UNIX, Mac OS X, Solaris and Windows operating systems. With Apache mod_mono we can run ASP.NET with C# on Linux machine. Mono is not just an ASP.NET interpreter, it also build a windows form and run on Linux, BSD, UNIX, Mac OS X, Solaris and Windows operating systems. But for now i just want to show you how to run an ASP.NET application on Linux machine.

Ok, get let’s start. Follow these steps (for ubuntu):
1. You need to install several library for mono. Type this command:

# sudo apt-get install mono-xsp2 mono-apache-server2 libapache2-mod-mono mono-gmcs mono-utils

2. After it finish you need to edit your mod_mono.conf. The easiest way to run Asp.Net application is using
 AutoHosting configuration as example below:
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
DirectoryIndex index.aspx
MonoAutoApplication enabled
MonoServerPath "/usr/bin/mod-mono-server2"

You can read more about AutoHosting here or manual hosting configuration here, for ubuntu user please refer to this documentation.
3. Save the file and restart your apache.
4. Now let’s start write the first Asp.Net application. You can copy the text below:
Filename: hello.aspx

<%@ Page language="c#" src="hello.aspx.cs"
Inherits="HelloApp.HelloPage" AutoEventWireup="true" %>
	<title>First Mono ASP.NET Application</title>
	<form  runat="server">
	  Enter your name: <asp:TextBox id="name" runat="server" />
	  <asp:Button id="greet" Text="Greet" onClick="OnGreetClick" runat="server"/>
	<br /><strong><asp:Label id="message" runat="server">Hello, World!

Filename: hello.aspx.cs

using System;
using System.Web.UI.WebControls;
namespace HelloApp
public class HelloPage : System.Web.UI.Page
protected Label message;
protected Button greet;
protected TextBox name;
public void OnGreetClick(Object sender, EventArgs e)
message.Text = "Hello, " + name.Text;

5. Ok now save file to your web server. Mine is at the /var/www/firstaspnet/

6. And you will see your first Asp.Net application run on Linux OS.

If you like this post, please leave me a comment. Have a nice day.

Article by Vijay Nayani

1 Comment

Beginners Guide: Change ls command Text Color

One thing i like from Linux is it have full customization. You can change your text color on your command line. And especially for “ls” command. ls command is to list information about the files or directory in Linux CLI (Command Line Interface). ls command is one of the most frequent use command in Linux CLI.

The result of the ls command will have text color to make different of files type, directory, symbolic links and etc. And in some Linux distro have different color than others. And sometimes they have same default color for all. So it is hard to find the difference between directories and files.

To change ls command text color you can find it in /etc/DIR_COLORS. You can edit it with vim:

vim /etc/DIR_COLORS

Default colors for Ubuntu or CentOS:
* Executable files: Green
* Normal file : Normal
* Directory: Blue
* Symbolic link : Cyan
* Pipe: Yellow
* Socket: Magenta
* Block device driver: Bold yellow foreground, with black background
* Character device driver: Bold yellow foreground, with black background
* Orphaned syminks : Blinking Bold white with red background
* Missing links ( – and the files they point to) : Blinking Bold white with red background
* Archives or compressed : Red (.tar, .gz, .zip, .rpm)
* Image files : Magenta (.jpg, gif, bmp, png, tif)

The file will store in this following format:
FILE-TYPE Attribute_codes: Text_color_codes:Background_color_codes

FILE-TYPE: file type or directories. sample: jpg (for image file), DIR (for directories)
* 00=none
* 01=bold
* 04=underscore
* 05=blink
* 07=reverse
* 08=concealed
* 30=black
* 31=red
* 32=green
* 33=yellow
* 34=blue
* 35=magenta
* 36=cyan
* 37=white
* 40=black
* 41=red
* 42=green
* 43=yellow
* 44=blue
* 45=magenta
* 46=cyan
* 47=white

Sample command:
DIR 01;34
Will make directories will bold and yellow text.

Customize it until you meed your favorite color.  Save it and restart your session. It will change the color.

Article by Vijay Nayani

Leave a comment

%d bloggers like this: