Replacing OpenJDK with JRE 6 in Arch Linux
In Arch Linux Wiki page, it mentioned that OpenJDK is nearly perfect which we need not to install Oracle proprietary Java. But sadly to know, there are some Java applet which needs Java Runtime Environment version 6 instead of 7. That means, neither OpenJDK nor Oracle proprietary Java 7 works.
Therefore, I need to replace the jdk7-openjdk, jre7-openjdk, and jre7-openjdk-headless with AUR jre6 and jdk6. Besides that, icedtea-web-java7 is also no needed.
Android game hacking
[Added 2012-10-16] Read this first: Quite a lot of readers asked me how to hack this game or hack that game. Sorry to say, I am not that expert in hacking those games, and I don’t have much time to play and hack the games. And what I shared here is only how to hack the games in general way, without permanent root the Android. So, if you are asking about a specific game, please find it on other channel. Thank you.
CJK fonts in Wine and also works with IBus input
CJK (Chinese, Japanese, Korean) fonts in Wine was really troublesome for me. Today, I have solved it totally. Before explaining the solution, just to say about the system environment I am using.
Arch Linux
wine 1.3.37
winetricks 20111115
ibus 1.4.0
ibus-pinyin 1.4.0
ibus-qt 1.3.1
ibus-table 1.3.9.20110827
ibus-table-extraphrase 1.3.9.20110827
ibus-table-wubi-git 20110410
Problem
I have installed all the fonts using winetricks with allfonts. I have also used winetricks to set fakechinese, fakejapanese, fakekorean. But none of these tricks work fine on my Wine.
Accidentally rename a currently downloading file
This was a small problem I faced, just to share how I solved it.
I was downloading a large file with JDownloader, around 700MB. But while downloading at around 600MB, I renamed the file (with extension “.part”) in the file browser. I didn’t notice it, until I finished downloading the file. Then I have 2 files something like this:
My_target_file_name.part 628647283 original_file_name.avi 734171136
From here, I knew that I renamed the file “original_file_name.part” to “My_target_file_name.part” during the file size was 628647283. But JDownloader continued to download the file until finish at 734171136 size.
The way of data recovery
Beginning
Recently, I accidentally dropped down my 320G USB external hard disk. This make me very sad. Because I got some precious data in the hard disk. The hard disk is unable to be detected on Windows 7. Then I tried to connect with two USB ports to provide more power to the hard disk, hopefully it was detectable. Yes, it was detected. Then I immediately used
[code] CHKDSK /v /f /x f: [/code]
Managing contacts and calendar
I am always looking for a good solution (not a software, but a solution) to manage all my contacts and calendar. Actually I separate both of them, even they are under PIM (personal information management).
I was using an excel file to manage all my contacts. But we know, a file is different from an application, the interface is not usable, and I had the difficulty to find the contacts that I want.
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.
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.
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.