Screenshot: Untrust CNNIC from Mac OS's Keychain Access

If you use Firefox/Thunderbird in Mac OS, you still need to untrust the CNNIC certs follow the steps in Screenshot: Remove CNNIC from Firefox and Thunderbird.

In Mac OS X: Click Applications -> Utilities -> Keychain Access -> Certificates -> (expand with V button below) -> System Roots -> (Unlock, top left) -> Double-click the cert -> Trust -> When using this Certificate -> Never Trust.

Screenshot: Remove CNNIC from Firefox and Thunderbird

Instead of removing CNNIC certificates from your system, we should mark them as "untrusted". This way, when your system updates its cerficates, they will not slip in. As a precaution, you might need to form the habit of checking the trusted certficates installed in your system periodically.

WWW::Curl

I tried to install this module WWW::Curl via cpan, but failed on both Centos 4 and Centos 5. Instead of digging for the fix, I just enabled rpmforge repository, and installed through yum:

# yum install perl-WWW-Curl

Remove CNNIC CA

Mozilla and Microsoft have added CNNIC root CA to the browser's Authorities and CA directory. Chinese users are in a rush removing them from their computers. Here is a post on how to do it (in Chinese).

Discussions can be found here:

LWP with Proxy

LWP Cookbook has the example on how to use proxy for HTTP request.

Here are some more examples:

To connect to an HTTP proxy using LWP, here is what you do:

dev-java/sun-jdk-1.6.0.17 (masked by: dlj-1.1 license(s))

After upgrading the portage to 2.1.7, I started to get things like below when running emerge:

Install PHP-uploadprogress on CentOS

To install the PECL package uploadprogress on CentOS, we do:

  1. Yum up some packages:
    # yum install php-pear php-devel httpd-devel
  2. Install uploadprogress through PEAR:
    # pear install pecl/uploadprogress
  3. Tell PHP to load uploadprogress:
    # echo extension=uploadprogress.so > /etc/php.d/uploadprogress.ini
  4. Restart Apache:
    # /sbin/service httpd graceful

 

 

Install Erlang

You could download the source package from http://www.erlang.org/download.html, then follow the README in the package and install. You will need at least these packages: ncurses-devel, openssl-devel, unixODBC, java-1.xx-openjdk-devel.

Or, you could use the pre-packaged ones. On CentOS 5, you can install the fedora repos, and then yum install the Erlang from there:

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarc...

Getting Started with Erlang

 Books:

Articles and blogs:

Drupal and Squid

Here are some posts on setting up Squid in front of Drupal: