Bond market returns are typically analysed as time series data (where changes in yield are tracked over time) or across maturities (where interest rates on different contract lengths are chained together to produce the yield curve for any given date). For the US government bond market, the St. Louis Fed's FRED database provides data for a whole range of US Treasury Bonds and US Treasury Bills, allowing you to do either of these exercises. Sometimes, however, it can be useful to get a sense of how the shape of the yield curve evolves over time in a 3D graph. Here is how to create one using plotly in R.
The AsianBondsOnline portal of the ASEAN+3 Asian Bond Markets Initiative (ABMI) provides a wealth of information on Asian bond markets, including market size, currency of denomination, pricing information, and liquidity statistics, among others. I need to get a quick overview of the market every few months, so I put together a little R script to do the job for me. The script gets the latest data on local currency bonds and foreign currency bonds from AsianBondsOnline, aggregates the data for government bonds and corporate bonds and outputs the result as static and interactive graphs.
It was time to update to the latest Ubuntu LTS (Long Term Support) release again recently, and it turned out that setting up Fcitx wasn’t quite as simple this time around. Here is what I had to do to get it to work.
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 ties in with Google Plus. For users who prefer to keep their gallery separate from Google's social network, 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.