JDownloader Chinese or Japanese characters problem in Linux
When downloading the files contain Chinese or Japanese characters using JDownloader in Linux (for my case, Arch Linux), I found that all the Chinese or Japanese characters are shown with boxes. There are a lot of suggested solutions I found from Internet, especially adding !font=Dialog to the language file. I also tried to edit the fontconfig.properties file, adding path to JAVA_FONTS, etc. But all the solutions do not work.
So, my solution is, just change the user interface style to non-Synthetica style, eg, Substance or Light. Both types of style work well, allow me to see the file names with correct characters. Problem solved.
When we lose faith
As a Christian, I always think about the meaning of life. The meaning of life means the reason of living and the purpose to live. Even some Christians, they will relate everything with a meaning. That means, whatever incident is happened, there is a reason behind, the incident is happened with a purpose. If a person broke a vase, there is also a meaning, may be the vase must be broken. If a person woke up late, may be this is the reason that he could avoid from an accident.
Arch Linux Ristretto show thumbnail freeze problem
After I tried to enable show thumbnail in ristretto (image viewer), the application freeze. Whatever image I open with ristretto, all will freeze. To solve this, remove ~/.config/xfce4/xfconf/xfce-perchannel-xml/ristretto.xml, logout, and login. The application will not freeze anymore. But I don’t try to enable the thumbnail after this.
Catholic particular judgement in programming (for fun only)
[sourcecode language=“c”] int particularJudgement(State* state) { if(state->grace > state->sin) { if(state->punishment) { return PURGATORY; } else { return HEAVEN; } } return HELL; } [/sourcecode]
Beyond the time and space
We are living in a world with 3-dimensional space: width, height, and length. A point is zero dimension; a line is one dimension with length property; a rectangle is two dimensions with width and height properties; a cube is 3D with width, height, and length properties.
So, how is the fourth dimension? Normally, we will use time for fourth dimension. Why?
Now, if there is a point, with coordinate (x,y). Since it is a point, there is no length, width, or height, thus it is zero dimension. If the point is moving according to axis-y gradually with constant speed, and we record the point with time (t), then we plot the point into a graph, it will become a line as the right side of the image above. Therefore, zero dimension becomes one dimension.
Arch Linux Thunderbird export CSV encoding problem
I tried to synchronise my Thunderbird address book with GMail manually. So, I need to export the contacts into CSV format. However, there is encoding problem after exporting to CSV, because my contacts contian Chinese characters. The text file has encoding error if viewed by Gedit. I tried to import it from GMail, these errors still exist.
To solve it, I use the command-line to run Thunderbird with:
env LANG=en_US.utf8 thunderbird
This solves the problem after I tried to export the contacts to CSV format again. Actually, the Arch Linux is already set the locale (in /etc/rc.conf) as en_US.UTF-8.
Arch Linux and network printer
Actually I never tried to use Linux to print anything before. This is because of the driver problem. It is difficult to get appropriate printer driver for Linux.
Today, I tried to use Arch Linux to install a network printer. The printer is Fuji Xerox Document Centre. Firstly, I installed all the printer packages for Arch Linux based on the wiki. Then, I tried to add the printer using gnome-control-center. However, I cannot add any printer with gnome-control-center, it is GNOME3. So, I tried to find the other solution from Internet to add printer.
A math problem 6/2(1+2)
Today, I read the newspaper, and found that there were a lot of people discussing this questions. You can read it from Yahoo! Answer. And there are a lot of people answering this expression equal to 9:
6/2(1+2) = 9
I really don’t understand the possibility of answering it as 9. Some of them said based on PEMDAS, it must be 9; also other said based on distributive property, it is 1.
From LXDE to Xfce on Arch Linux
The best feature I like about Arch Linux is that it can be freely customized. Previously, I was using LXDE on Arch Linux. Then I found some problem that when I want to change the desktop background mode, LXDE will be restarted immediately. This problem causes me fail to boot properly when I am upgrading the kernel. As a result, I need to downgrade the kernel to the previous one in order to boot properly.
KOEI Romance of the Three Kingdoms and the real world
I like to play KOEI’s game, especially Romance of the Three Kingdoms (San Goku Shi). It is related to the real world management.
When playing the game, we need to first build a kingdom. Then, the player should found that, if the kingdom has only one character (officer), the kingdom can do nothing, because each character can do only one task (or limited tasks) for each month. Even the character has maximum status values: intelligence 100, war 100, politic 100, charisma 100, though the character is useful, the kingdom itself is useless. Thus, the player needs to recruit more officers to work for the kingdom.