After recently upgrading to Ubuntu 14.04 Trusty Tahr (LTS), I decided to give Fcitx, the default input method framework on Ubuntu's Chinese sister project Ubuntu Kylin, a try and I was pleasantly surprised. Not only is Fcitx rock-solid and actively developed, it also offers input methods for Japanese, Korean, Vietnamese and a bunch of other languages in addition to the default Chinese input methods. Here is how you get it to work on Ubuntu 14.04.
I recently had to work on a Matlab assignment that required the use of fminbnd() to find local extrema. As I typically work in Octave rather than Matlab I ran into some problems getting my code to work within both programmes. As it turned out, Matlab and Octave handle the function slightly differently, so I thought I'd share my findings to save others some headache.
Monitoring a server can be a lot of work, but thankfully handy tools like fail2ban or logwatch make the task a lot easier. Fail2ban, for example, monitors the log files of services running on your system and blocks incoming connections when it detects a break-in attempt (using iptables or hosts.deny). These need to be defined using a regex filter, and while a great number of templates are already available for the most-used services (Apache, SSH, etc.), OpenVPN thus far has not been included. Setting this up isn't too difficult, though.
I have recently been playing around with LyX and XeTeX, a Unicode extension for TeX, to find a set-up that allows me to switch easily between various East Asian languages without entering LaTeX code. With the help of a few friends, the xeCJK manual and Richard Heck over at the LyX Mailing List, I was able to define LyX Text Styles for Chinese (Simplified and Traditional text), Japanese and Korean that can be selected via the context menu right from within LyX itself, allowing me to focus on the content of my writing and leaving the worrying about Unihan issues to someone else.
Ever since I started using Fail2ban and Logwatch to monitor unauthorized login attempts and system logs on my server, I have been looking for an easy way to regularly receive encrypted status reports from both programmes by email. After playing around with gpg-mailgate for some time (useful tutorial here), I decided to opt for a simpler solution and told both programmes to send their reports to a specific user on my system. These messages are then retrieved by a simple cron script and emailed to me at regular intervals. Here is how I did it.
While viruses on Linux are rare, I have always found it a sensible precaution to scan incoming messages for malware. It helps me weed out the occasional Windows virus that gets sent my way and keeps me from forwarding malicious attachments to friends. A common feature to most antivirus software for Windows, email scanning can be easily set up for most email clients on Linux. Plugins for ClamAV are available for Thunderbird (here) and Claws Mail (here), so set-up is fairly straightforward here, but the same functionality can be added to Evolution and Sylpheed by use of a simple bash script.
I've always been a big fan of Gnome Shell since its release in 2011. However, one thing that always bothered me was the Gnome icon set, specifically the folder images. In contrast to the rest of Gnome Shell, which looks very clean and modern, the folder icons of the default Gnome icon theme look pretty outdated. I therefore prefer sticking with the default Ubuntu icon theme, or rather Ubuntu-mono-dark to be more precise, since its monochrome tray icons work great with the rest of Gnome Shell. However, since the release of Precise Pangolin, which ships with Gnome 3.4, I've noticed a problem with the keyboard icon, which appears next to the user menu in the upper right corner when you use input methods like iBus. Right after you log on, the keyboard icon starts jumping around, changing size every few milliseconds. This usually stops at some point, but still, it's a major annoyance and enough to put a few people off using the theme I imagine. There is a way to fix it, though.
Installing a Japanese IME on Android can be a little tricky since the semi-official OpenWnn IME (jp.co.omronsoft.openwnn), which is included in Japanese Android systems, is not available on the Android Market. Sure, there are alternatives, like Simeji or various OpenWnn derivatives, but if you look carefully, you will notice that they usually do not provide their source code and list full internet access as a requirement. If you feel uncomfortable with the thought of transmitting everything you type (including passwords) to a third party, this post is for you.
When I recently tried to open my favourite Java webcam applet in Firefox on Ubuntu Natty 11.04, I was surprised to find that it wasn't working. Issues with legacy Java applications are common now that the Java world is moving towards OpenJDK as the future standard. In certain cases you may have to use an older version of Java to get your applet to work. This will tell you how to install Sun Java 6 and set your system to use it as the default virtual machine for local Java applications and web applets in your browser.