Firefox 15 with built-in PDF plugin

Firefox, though I like it, I still feel a lot of limitations of using it, especially reading the PDF using the plugin from Adobe Reader. This is really a drawback. Because the plugin in Linux I feel that it is not very stable. That is why, normally I open the online PDF with Chromium, because Chromium (Google Chrome) has built-in PDF plugin.

Now, Firefox 15 has a built-in PDF plugin as well. By default, it is disabled. So, we need to enable it manually.

At the address bar, enter “about:config”. Then you are able to edit some configurations of the Firefox. So, search “pdfjs.disabled”, change the value to “false”. Yes, now, it is enabled. I forgot whether restart is required or not. Just try any PDF, then you will see the difference.

However, if comparing the viewing quality with Chromium, the text in Firefox is quite rasterised (pixelated). Yet, I am still enjoy with this new feature.

aMule high CPU usage solution

I use aMule. But even with the SVN version from Arch Linux, it produces the same problem as I was using Linux Mint, high CPU usage problem. It works well at the beginning, but will suddenly high CPU usage, causes my laptop battery drain very fast.

So, I try to find the solution. Then, I found one solution, not like using MLDonkey or other alternatives before.

Using the aMule daemon, amuled from command line.

amuled --ec-config

Then you will be asked for entering password for mule connection. Enter anything you like.

In my case, the amuled will be terminated after a while with

*** buffer overflow detected ***: amuled terminated

I think this is the bugs. So, to solve if, after entering password, wait a while before terminated, press Ctrl+C to exit. Then run amuled as above again.

Okay, assuming amuled is running perfectly. Now there are two options for the aMule client, one is amulegui, another is amuleweb. Just run the amulegui, you will be asked for the password as you entered above. The interface is almost same as normal amule. The only difference is even you exit the amulegui, the amuled is still running.

Another way is the amuleweb. Actually amuleweb is considered as another daemon, running it, then you can access aMule through the web browser. To run the amuleweb,

amuleweb --password=AbovePassword --admin-pass=WebPassword

AbovePassword is the password you used in amuled. WebPassword is the password that you are going to login in the web interface.

Then, we can access aMule through the web browser with http://localhost:4711.

amuled, amulegui, amuleweb
The screenshot of runnign amuled, amulegui, amuleweb, and web browser.

Grace, grace, grace, which I always confused

When I read Catechism, the term “grace” is quite confusing. There are at least four types of grace I read: sanctifying grace, habitual grace, actual grace, and special grace. So, recently, I tried to solve my confusion by going through these differences. By reading the Catechism again and again (the related part only), and also some other resources, so, I simplify them,

Sanctifying (or deifying) grace = 圣化恩宠, permanent state of grace.
Habitual grace = 常居的恩宠(宠爱), is also sanctifying grace.
Actual grace = 现时的恩宠(宠佑), transient help to act (intervention of God), different from habitual grace. Also called “gratuitous grace” in Summa Theologica.
Special grace = 特别的恩宠(神恩), also charism, oriented to sanctifying grace. Considered actual grace.

So, conclusion, grace is actually divided into two: sanctifying grace and actual grace.

But I also found something about sacramental grace. Sacramental grace is the grace received when receiving sacraments. So, the grace can be sanctifying grace for permanent or actual grace.

Linux shutdown battery draining problem solved

My HP laptop always has a shutdown problem. This problem affected the hibernation. That is, after I shutdown in Linux, my laptop battery will keep draining, and the battery is still warm after shutting down.

To solve this problem untechnically, there are two ways. Never shutdown, but restart. Because I have dual boot, there is a grub menu when startup the computer. So, during the grub menu, press the power button, this will shutdown the computer without battery draining.

However, sometimes the shutdown is accidentally selected. In this case, even boot into Windows and shutdown does not solve the problem. To solve this problem, when the laptop is shutdown, make sure the AC adapter is unplugged. Then, remove the battery and place it back. Then the battery will not drain.

This problem can be significantly noticed with a USB cooler. Because if the cooler is plugged in, after shutting down the laptop, and if the AC adapter is also plugged off, then the cooler will still running. But once we plug in AC adapter (with electricity), the cooler will stopped. So, the only solution is remove the battery and place it back when the electricity is off.

I still can tolerate with the problem with the first solution (power off in grub menu). However, I cannot tolerate with the problem in hibernation. This is because if hibernation, the battery is still draining, and there is no grub menu as restart. So, I found the best solution.

Actually, this is the problem due to Wake-on-LAN. To solve this, we need to turn off this feature of the laptop. To turn off, some said can be done in BIOS. But my case cannot. So, to solve it, need to install “ethtool“. Then check whether Wake-on-LAN is enabled or not,

cat /sys/class/net/eth0/device/power/wakeup

If it is “enabled” and you have the same problem, try to turn it off.

sudo ethtool -s eth0 wol d

Yes, now I solved this problem. I am using Arch Linux, so, I added the following statement to /etc/rc.local

/usr/sbin/ethtool -s eth0 wol d