How to clean the fan in a Lenovo U550

If you own any Notebook for longer than one year then there comes a time when the cooling fan starts to run constantly and the device starts to get hot even in everyday tasks. My U550 is now 1 and a half years old and has started to use the fan all the time so I decided it was time for some maintenance, so cleaning the fan.

After searching the internet high and low I wasn’t able to find any guide on how to open the actual case of the U550. I actually got some results about how to repair a tractor but that’s a different story.

So I decided to do it myself, and after 2 hours here are the results.

Read more

How To Permanent Redirect (301 Redirect) NON WWW to WWW and viceversa on apache, nginx and lighttpd

Since I’ve met a lot of people having issues redirecting www to non-www, using 301 redirect to avoid duplicate content on google, I decided it would be a nice thing to post the best methods used for some of the most used http servers.

1. Apache

Apache is one of the most used http servers, has a lot of features and can be customized in so many ways. Actually, for this web server, there basically 2 ways you can do this, using httpd.conf directives or using a .htaccess file. Some people prefer using .htaccess files, because these reside in the website’s directory and can be modified by the website owner, which is not the case for the daemon configuration file (httpd.conf). So I will present both methods:

How to permanent redirect (301 redirect) NON WWW to WWW using apache server configuration directives:


    ServerName yourdomain.tld
    RedirectMatch permanent ^/(.*) http://www.yourdomain.tld/$1

    DocumentRoot /path/to/your/site
    ServerName www.yourdomain.tld

How to permanent redirect (301 redirect) WWW to NON WWW using apache server configuration directives:


    ServerName www.yourdomain.tld
    RedirectMatch permanent ^/(.*) http://yourdomain.tld/$1

    DocumentRoot /path/to/your/site
    ServerName yourdomain.tld

How to permanent redirect (301 redirect) NON WWW to WWW using .htaccess directives:
Create a file named .htaccess and append the following content:

Read more