cPanel: How to block visitor by country through GeoIP

To block a certain country IP range, you do not need to know which IP range it is and what you need is to use the GeoIP feature.

To install GeoIP, refer to the following URL,
http://www.mickgenie.com/cpanel-how-to-install-mod_geoip

Next, you will need to insert the following command to the .htaccess file,

RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
RewriteRule ^(.*)$ http://www.google.com [L]

The command use to redirect China IP to google.com***

***This is an example only and it is not to abuse any user/visitor reside in China.

Microsoft Download Manager for large file

To download Microsoft RTM Build, it might take you for years 😛 , maybe several hours. This might be facing interruption during the download process.

Microsoft come with a solution which Microsoft Download Manager where it is simple enough to use.

1. Download Microsoft Download Manager from here.
2. Just select the New Download button and you may now able to paste the URL to the Microsoft Download Manager.
3. You may do the setting as image above.

Microsoft Download Manager works on Windows XP, Windows Vista, Windows 7 and Windows Server 2008. Windows Server 2003 has not been specified as a supported operating system on the Microsoft website and supported browsers currently mentioned include Internet Explorer and Mozilla Firefox.

Encode or Decode base64 encoding with Notepad++ Part 2

Referring to previous article on how to encode or decode base64 encoding with URL of http://www.mickgenie.com/encode-or-decode-base64-encoding-with-notepad/, I have found out the default NotePad++ do not come with this plugin and you are not able to done it directly.

To make it done, follow the step as below.
1. Open NotePad++.
2. Open Plugins tab and click on Plugin Manager then expand the Show Plugin Manager.
3. Look for MIME Tools and install it.

 

Install HTC ADB driver with Windows 7

ADB driver stand for Android Debug Bridge which could be easily install through Android SDK, but for some reason you are not able to install it easily from Windows 7. Hence you may install it as this article.

With these article, I will provide HTC driver for ADB.

Firstly, you may get the driver as URL below.

Local Download
http://www.mickgenie.com/download/HTC Driver.rar

Next, connect your mobile to the PC and install the ADB  driver for your HTC device.

URLVoid, check Website for Viruses, malware and Phishing

For many reason, you might want to check a site reputation if they have been infected by the viruses, malware or phishing scam previously.

Now, you can easily scan the bad reputation site with just enter your domain name from URLVoid website. Simply access to the URL of www.urlvoid.com and you may now check the website reputation.

As the attached image above, you may see that mickgenie.com is clean from the status.

WordPress remove comment autolinks

For many reason, you do not want to allow your user to post a comment with a URL that could easily convert to a proper hyperlink, you may actually perform the step as below to disallow autolink from your comment.

Open your function.php and insert the following code and you will find out comment with URL do not come with autolink.

remove_filter('comment_text', 'make_clickable', 9);

Install Your Apps from Android Market through web

Recently, Android’s Market come out new feature that allow you to install your Apps through web with URL of http://market.android.com.

Now, you do not need to install the Market Apps from your Android but you may directly install it through the Android’s Market.

MGe did tested several apps and below is the example step for my readers.

1. Go to Android’s Market.
2. Search any Apps that you needed.

3. Select on your device and hit on the Install button.

4. Now you will see the Apps is downloading and install to your Android’s phone without any extra step.

With the above step, be sure that you have your phone connected to the Internet.

how to update Rubygems

Today, I got another challenge from @thebosscat to help out the Ruby on Rails case.

Symptoms: the server using RubyGems 1.2.0 and all of the ruby gems could not able updated through “gem update” or even “gem update –system”.

To overcome the problem, I was trying to update the rubygems as step below.
1. Download rubygems version from URL below.
http://rubyforge.org/frs/?group_id=126
2. Extract the file (in this case, I used the version 1.3.1).

tar -xvf rubygems-1.3.1.tgz

3. Then enter to the path,

cd rubygems-1.3.1

4. Run the setup.

ruby setup.rb

5. Verify from the shell again.

gem environment

Could not find gem rack locally or in a repository

I was trying to install Ruby on Rails Gem and it is failed with error of “could not find gem rack locally or in a repository”.

–Error–
===================
[email protected] [~]# gem install rack
ERROR:  could not find gem rack locally or in a repository
===================

I did try to overcome the issue and found out there are two solutions for it.

Solution 1:
Change the gem source.

To show the gem source installed in the server,
===================
[email protected] [~]# gem source
*** CURRENT SOURCES ***

http://gems.rubyforge.org/
===================

1. Change the gem source to allow http://rubygems.org/.
===================
[email protected] [~]# gem sources -a http://rubygems.org/
http://rubygems.org/ added to sources

===================
2. Check the gem source again and it is added.
3. Install your gem again.
===================
[email protected] [~]# gem install rack
===================

Solution 2:
Download the Gem source to your server and install it locally and let say I am referring to rack gems.

Download the source file from URL below.
http://rack.rubyforge.org/

===================
[email protected] [~]# wget http://rubyforge.org/frs/download.php/71197/rack-1.2.0.tar.gz
[email protected] [~]# tar zxf rack-1.2.0.tar.gz
[email protected] [~]# gem install rack

===================

Brothersoft.com Link Exchange

Yesterday, I was invited by brothersoft.com which known as Top Three professional software download websites in this industry and they claim that it is a software download site with over 63,000,000 unique visitors per month.

If you have never visited brothersoft.com, you may do it by now.

While waiting them to provide me a more professional ads unit, I have started this post in advance and added the free link article as my site top right hand site ads.

It is good to have link exchange as I could help brothersoft to promote their site to my visitor and they could get me to be more famous as their promise to get my site to their useful link as URL below.
http://www.brothersoft.com/info/usefullink/