If you have recently updated your Android device to the latest Android version 5 “Lollipop”, you may have noticed that the “Gallery” app has been replaced by Google's brand-new “Photos” app which depends on Google Plus. If you don't like the idea of linking your photos to Google's social network, or if you have disabled/uninstalled the Google Plus app altogether, there is a way to get back the familiar Gallery app without compiling it yourself: by pulling it from a CyanogenMod rom image. Here is how.
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.
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 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.
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 been using Gnome Shell with Ubuntu's Ubuntu-mono-dark theme for some time. However, since the release of Ubuntu 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 some 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.